Skip to content

Commit

Permalink
Merge branch 'main' into beta
Browse files Browse the repository at this point in the history
  • Loading branch information
wolfy1339 committed Jul 10, 2023
2 parents ca9b795 + 64ca2b9 commit 6b5d630
Show file tree
Hide file tree
Showing 26 changed files with 92 additions and 92 deletions.
4 changes: 2 additions & 2 deletions docs/src/components/endpoint-group.js
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,7 @@ export default class EndPointGroup extends Component {
entries.forEach((entry) => {
if (entry.isIntersecting) {
console.log(
`EndPointGroup.entry.intersectionRatio: ${entry.intersectionRatio}`
`EndPointGroup.entry.intersectionRatio: ${entry.intersectionRatio}`,
);
const isAbove = entry.boundingClientRect.y < entry.rootBounds.y;
console.log(`isAbove ${isAbove}`);
Expand All @@ -41,7 +41,7 @@ export default class EndPointGroup extends Component {

if (entry.intersectionRatio >= 0.1) {
console.log(
`EndPointGroup.onIntersection ${this.props.node.fieldValue}`
`EndPointGroup.onIntersection ${this.props.node.fieldValue}`,
);
this.props.onVisibleEndPointGroup(this.props.node.fieldValue);
}
Expand Down
2 changes: 1 addition & 1 deletion docs/src/components/index-page.js
Original file line number Diff line number Diff line change
Expand Up @@ -76,7 +76,7 @@ export default class IndexPage extends Component {
<option key={id} value={sourceInstanceName}>
{sourceInstanceName}
</option>
)
),
)}
</select>
</div>
Expand Down
2 changes: 1 addition & 1 deletion docs/src/components/search.js
Original file line number Diff line number Diff line change
Expand Up @@ -60,7 +60,7 @@ export default class Search extends Component {
<SearchResults
results={this.state.results.slice(
0,
this.state.visibleResultsCount
this.state.visibleResultsCount,
)}
/>
</ul>
Expand Down
4 changes: 2 additions & 2 deletions docs/src/pages/api/00_usage.md
Original file line number Diff line number Diff line change
Expand Up @@ -189,7 +189,7 @@ const myOctokit = new MyOctokit({
throttle: {
onRateLimit: (retryAfter, options) => {
myOctokit.log.warn(
`Request quota exhausted for request ${options.method} ${options.url}`
`Request quota exhausted for request ${options.method} ${options.url}`,
);

if (options.request.retryCount === 0) {
Expand All @@ -201,7 +201,7 @@ const myOctokit = new MyOctokit({
onSecondaryRateLimit: (retryAfter, options, octokit) => {
// does not retry, only logs a warning
octokit.log.warn(
`Secondary quota detected for request ${options.method} ${options.url}`
`Secondary quota detected for request ${options.method} ${options.url}`,
);
},
},
Expand Down
6 changes: 3 additions & 3 deletions docs/src/pages/api/05_pagination.md
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@ octokit
.paginate(
"GET /repos/{owner}/{repo}/issues",
{ owner: "octokit", repo: "rest.js" },
(response) => response.data.map((issue) => issue.title)
(response) => response.data.map((issue) => issue.title),
)
.then((issueTitles) => {
// issueTitles is now an array with the titles only
Expand All @@ -45,7 +45,7 @@ octokit.paginate(
done();
}
return response.data;
}
},
);
```

Expand All @@ -70,7 +70,7 @@ for await (const response of octokit.paginate.iterator(
{
owner: "octokit",
repo: "rest.js",
}
},
)) {
// do whatever you want with each response, break out of the loop, etc.
}
Expand Down
4 changes: 2 additions & 2 deletions docs/src/pages/api/08_plugins.md
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ You can customize and extend Octokit’s functionality using plugins
const { Octokit } = require("@octokit/rest");
const MyOctokit = Octokit.plugin(
require("./lib/my-plugin"),
require("octokit-plugin-example")
require("octokit-plugin-example"),
);

// lib/my-plugin.js
Expand All @@ -21,7 +21,7 @@ module.exports = (octokit, options = { greeting: "Hello" }) => {
octokit.log.info(
`${options.method} ${options.url}${response.status} in ${
Date.now() - time
}ms`
}ms`,
);
return response;
});
Expand Down
4 changes: 2 additions & 2 deletions docs/src/pages/api/09_throttling.md
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@ const octokit = new MyOctokit({
throttle: {
onRateLimit: (retryAfter, options) => {
octokit.log.warn(
`Request quota exhausted for request ${options.method} ${options.url}`
`Request quota exhausted for request ${options.method} ${options.url}`,
);

// Retry twice after hitting a rate limit error, then give up
Expand All @@ -32,7 +32,7 @@ const octokit = new MyOctokit({
onSecondaryRateLimit: (retryAfter, options, octokit) => {
// does not retry, only logs a warning
octokit.log.warn(
`Secondary quota detected for request ${options.method} ${options.url}`
`Secondary quota detected for request ${options.method} ${options.url}`,
);
},
},
Expand Down
12 changes: 6 additions & 6 deletions package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -49,7 +49,7 @@
"fetch-mock": "^9.0.0",
"glob": "^10.2.5",
"jest": "^29.0.0",
"prettier": "2.8.8",
"prettier": "3.0.0",
"semantic-release": "^21.0.0",
"semantic-release-plugin-update-version-in-files": "^1.0.0",
"ts-jest": "^29.0.0",
Expand Down
2 changes: 1 addition & 1 deletion src/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ import { VERSION } from "./version";
export const Octokit = Core.plugin(
requestLog,
legacyRestEndpointMethods,
paginateRest
paginateRest,
).defaults({
userAgent: `octokit-rest.js/${VERSION}`,
});
Expand Down
2 changes: 1 addition & 1 deletion test/integration/agent-ca/agent-ca-test.js
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@ describe("custom client certificate", () => {
response.writeHead(200);
response.write("ok");
response.end();
}
},
);

server.listen(0, done);
Expand Down

0 comments on commit 6b5d630

Please sign in to comment.