Skip to content

Commit 2d2f69f

Browse files
renovate[bot]prettier-toc-me[bot]create-or-update-pull-requestkfcampbell
authored
chore(deps): update dependency prettier to v3 (#583)
* docs: update ToC for README.md * style: prettier * docs: update ToC for README.md * style: prettier * docs: update ToC for README.md * style: prettier * docs: update ToC for README.md * style: prettier * docs: update ToC for README.md * style: prettier * docs: update ToC for README.md * style: prettier * docs: update ToC for README.md * style: prettier * docs: update ToC for README.md * style: prettier * docs: update ToC for README.md * style: prettier * docs: update ToC for README.md * style: prettier * docs: update ToC for README.md * style: prettier * docs: update ToC for README.md * style: prettier * docs: update ToC for README.md * style: prettier * docs: update ToC for README.md * style: prettier * docs: update ToC for README.md * style: prettier * docs: update ToC for README.md * style: prettier * docs: update ToC for README.md * style: prettier * docs: update ToC for README.md * style: prettier * docs: update ToC for README.md * style: prettier * docs: update ToC for README.md * style: prettier * docs: update ToC for README.md * style: prettier * docs: update ToC for README.md * style: prettier * docs: update ToC for README.md * style: prettier * docs: update ToC for README.md * style: prettier * docs: update ToC for README.md * style: prettier * docs: update ToC for README.md * style: prettier * docs: update ToC for README.md * style: prettier * docs: update ToC for README.md * style: prettier * docs: update ToC for README.md * style: prettier * docs: update ToC for README.md * style: prettier * docs: update ToC for README.md * style: prettier * docs: update ToC for README.md * style: prettier * docs: update ToC for README.md * style: prettier * docs: update ToC for README.md * style: prettier * docs: update ToC for README.md * style: prettier * docs: update ToC for README.md * style: prettier * docs: update ToC for README.md * style: prettier * docs: update ToC for README.md * style: prettier * docs: update ToC for README.md * style: prettier * docs: update ToC for README.md * style: prettier * docs: update ToC for README.md * style: prettier * docs: update ToC for README.md * style: prettier * docs: update ToC for README.md * style: prettier * docs: update ToC for README.md * style: prettier * docs: update ToC for README.md * style: prettier * docs: update ToC for README.md * style: prettier * docs: update ToC for README.md * style: prettier * docs: update ToC for README.md * style: prettier * docs: update ToC for README.md * style: prettier * docs: update ToC for README.md * style: prettier * docs: update ToC for README.md * style: prettier * docs: update ToC for README.md * style: prettier * docs: update ToC for README.md * style: prettier * docs: update ToC for README.md * style: prettier * docs: update ToC for README.md * style: prettier * docs: update ToC for README.md * style: prettier * docs: update ToC for README.md * style: prettier * docs: update ToC for README.md * style: prettier * docs: update ToC for README.md * style: prettier * docs: update ToC for README.md * style: prettier * docs: update ToC for README.md * style: prettier * docs: update ToC for README.md * style: prettier * docs: update ToC for README.md * style: prettier * docs: update ToC for README.md * style: prettier * docs: update ToC for README.md * style: prettier * docs: update ToC for README.md * style: prettier * docs: update ToC for README.md * style: prettier * docs: update ToC for README.md * style: prettier * docs: update ToC for README.md * style: prettier * docs: update ToC for README.md * style: prettier * docs: update ToC for README.md * style: prettier * docs: update ToC for README.md * style: prettier * docs: update ToC for README.md * style: prettier * docs: update ToC for README.md * style: prettier * docs: update ToC for README.md * style: prettier * docs: update ToC for README.md * style: prettier * docs: update ToC for README.md * style: prettier * docs: update ToC for README.md * style: prettier * docs: update ToC for README.md * style: prettier * docs: update ToC for README.md * style: prettier * docs: update ToC for README.md * style: prettier * docs: update ToC for README.md * style: prettier * docs: update ToC for README.md * style: prettier * docs: update ToC for README.md * style: prettier * docs: update ToC for README.md * style: prettier * docs: update ToC for README.md * style: prettier * docs: update ToC for README.md * style: prettier * docs: update ToC for README.md * style: prettier * docs: update ToC for README.md * style: prettier * docs: update ToC for README.md * style: prettier * docs: update ToC for README.md * style: prettier * docs: update ToC for README.md * style: prettier * docs: update ToC for README.md * style: prettier * docs: update ToC for README.md * style: prettier * docs: update ToC for README.md * style: prettier * docs: update ToC for README.md * style: prettier * docs: update ToC for README.md * style: prettier * docs: update ToC for README.md * style: prettier * docs: update ToC for README.md * style: prettier * docs: update ToC for README.md * style: prettier * docs: update ToC for README.md * style: prettier * docs: update ToC for README.md * style: prettier * docs: update ToC for README.md * style: prettier * docs: update ToC for README.md * style: prettier * docs: update ToC for README.md * style: prettier * docs: update ToC for README.md * style: prettier * docs: update ToC for README.md * style: prettier * docs: update ToC for README.md * style: prettier * docs: update ToC for README.md * style: prettier * docs: update ToC for README.md * style: prettier * docs: update ToC for README.md * style: prettier * docs: update ToC for README.md * style: prettier * docs: update ToC for README.md * style: prettier * docs: update ToC for README.md * style: prettier * docs: update ToC for README.md * style: prettier * docs: update ToC for README.md * style: prettier * docs: update ToC for README.md * style: prettier * docs: update ToC for README.md * style: prettier * docs: update ToC for README.md * style: prettier * docs: update ToC for README.md * style: prettier * docs: update ToC for README.md * style: prettier * docs: update ToC for README.md * style: prettier * docs: update ToC for README.md * style: prettier * docs: update ToC for README.md * style: prettier * docs: update ToC for README.md * Last word on trailing comma --------- Co-authored-by: prettier-toc-me[bot] <56236715+prettier-toc-me[bot]@users.noreply.github.com> Co-authored-by: Create or Update Pull Request Action <[email protected]> Co-authored-by: Keegan Campbell <[email protected]>
1 parent b445021 commit 2d2f69f

File tree

12 files changed

+52
-52
lines changed

12 files changed

+52
-52
lines changed

README.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -83,7 +83,7 @@ const response = await octokit.graphql(
8383
}
8484
}
8585
}`,
86-
{ login: "octokit" }
86+
{ login: "octokit" },
8787
);
8888
```
8989

@@ -425,7 +425,7 @@ const { Octokit } = require("@octokit/core");
425425
const MyActionOctokit = Octokit.plugin(
426426
require("@octokit/plugin-paginate-rest").paginateRest,
427427
require("@octokit/plugin-throttling").throttling,
428-
require("@octokit/plugin-retry").retry
428+
require("@octokit/plugin-retry").retry,
429429
).defaults({
430430
throttle: {
431431
onAbuseLimit: (retryAfter, options) => {

package-lock.json

Lines changed: 9 additions & 9 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -45,7 +45,7 @@
4545
"http-proxy-agent": "^7.0.0",
4646
"jest": "^29.0.0",
4747
"lolex": "^6.0.0",
48-
"prettier": "2.8.8",
48+
"prettier": "3.0.0",
4949
"proxy": "^2.0.0",
5050
"semantic-release": "^21.0.0",
5151
"semantic-release-plugin-update-version-in-files": "^1.0.0",

src/index.ts

Lines changed: 8 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,7 @@ export class Octokit {
2020
static VERSION = VERSION;
2121
static defaults<S extends Constructor<any>>(
2222
this: S,
23-
defaults: OctokitOptions | Function
23+
defaults: OctokitOptions | Function,
2424
) {
2525
const OctokitWithDefaults = class extends this {
2626
constructor(...args: any[]) {
@@ -40,8 +40,8 @@ export class Octokit {
4040
? {
4141
userAgent: `${options.userAgent} ${defaults.userAgent}`,
4242
}
43-
: null
44-
)
43+
: null,
44+
),
4545
);
4646
}
4747
};
@@ -58,12 +58,12 @@ export class Octokit {
5858
*/
5959
static plugin<
6060
S extends Constructor<any> & { plugins: any[] },
61-
T extends OctokitPlugin[]
61+
T extends OctokitPlugin[],
6262
>(this: S, ...newPlugins: T) {
6363
const currentPlugins = this.plugins;
6464
const NewOctokit = class extends this {
6565
static plugins = currentPlugins.concat(
66-
newPlugins.filter((plugin) => !currentPlugins.includes(plugin))
66+
newPlugins.filter((plugin) => !currentPlugins.includes(plugin)),
6767
);
6868
};
6969

@@ -115,7 +115,7 @@ export class Octokit {
115115
warn: console.warn.bind(console),
116116
error: console.error.bind(console),
117117
},
118-
options.log
118+
options.log,
119119
);
120120
this.hook = hook;
121121

@@ -152,8 +152,8 @@ export class Octokit {
152152
octokit: this,
153153
octokitOptions: otherOptions,
154154
},
155-
options.auth
156-
)
155+
options.auth,
156+
),
157157
);
158158
// @ts-ignore ¯\_(ツ)_/¯
159159
hook.wrap("request", auth.hook);

src/types.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -48,7 +48,7 @@ type AnyFunction = (...args: any) => any;
4848

4949
export type OctokitPlugin = (
5050
octokit: Octokit,
51-
options: OctokitOptions
51+
options: OctokitOptions,
5252
) => { [key: string]: any } | void;
5353

5454
export type Hooks = {

test/agent-ca/agent-ca-test.test.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,7 @@ describe("custom client certificate", () => {
2020
response.writeHead(200);
2121
response.write("ok");
2222
response.end();
23-
}
23+
},
2424
);
2525

2626
server.listen(0, done);

test/auth.test.ts

Lines changed: 12 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -75,7 +75,7 @@ describe("Authentication", () => {
7575
authorization: "token secret123",
7676
"user-agent": userAgent,
7777
},
78-
}
78+
},
7979
);
8080

8181
const octokit = new Octokit({
@@ -98,7 +98,7 @@ describe("Authentication", () => {
9898
authorization: "token secret123",
9999
"user-agent": userAgent,
100100
},
101-
}
101+
},
102102
);
103103

104104
const octokit = new Octokit({
@@ -121,7 +121,7 @@ describe("Authentication", () => {
121121
authorization: "token secret123",
122122
"user-agent": userAgent,
123123
},
124-
}
124+
},
125125
);
126126

127127
const octokit = new Octokit({
@@ -146,7 +146,7 @@ describe("Authentication", () => {
146146
authorization: `bearer ${BEARER_TOKEN}`,
147147
"user-agent": userAgent,
148148
},
149-
}
149+
},
150150
);
151151

152152
const octokit = new Octokit({
@@ -179,7 +179,7 @@ describe("Authentication", () => {
179179
code: CODE,
180180
state: STATE,
181181
},
182-
}
182+
},
183183
);
184184

185185
const MyOctokit = Octokit.defaults({
@@ -224,7 +224,7 @@ describe("Authentication", () => {
224224
authorization: "token secret123",
225225
},
226226
repeat: 2,
227-
}
227+
},
228228
)
229229
.getOnce(
230230
"https://api.github.com/app",
@@ -235,7 +235,7 @@ describe("Authentication", () => {
235235
"user-agent": userAgent,
236236
authorization: `bearer ${BEARER}`,
237237
},
238-
}
238+
},
239239
);
240240

241241
const octokit = new Octokit({
@@ -272,7 +272,7 @@ describe("Authentication", () => {
272272
authorization: `token githubtoken123`,
273273
"user-agent": userAgent,
274274
},
275-
}
275+
},
276276
);
277277
const currentEnv = process.env;
278278
process.env = {
@@ -321,7 +321,7 @@ describe("Authentication", () => {
321321
metadata: "read",
322322
},
323323
repository_selection: "all",
324-
}
324+
},
325325
)
326326
.postOnce(
327327
"https://fake.github-enterprise.com/api/graphql",
@@ -330,7 +330,7 @@ describe("Authentication", () => {
330330
headers: {
331331
authorization: "token secret123",
332332
},
333-
}
333+
},
334334
);
335335

336336
const octokit = new Octokit({
@@ -366,7 +366,7 @@ describe("Authentication", () => {
366366
.getOnce(
367367
"https://api.github.com/repos/octokit/core.js",
368368
{ ok: true },
369-
{ overwriteRoutes: false }
369+
{ overwriteRoutes: false },
370370
);
371371

372372
const mockWarnLogger = jest.fn();
@@ -393,7 +393,7 @@ describe("Authentication", () => {
393393

394394
expect(mockWarnLogger.mock.calls.length).toBe(1);
395395
expect(mockWarnLogger.mock.calls[0][0]).toBe(
396-
"[@octokit/auth-app] Retrying after 401 response to account for token replication delay (retry: 1, wait: 1s)"
396+
"[@octokit/auth-app] Retrying after 401 response to account for token replication delay (retry: 1, wait: 1s)",
397397
);
398398
});
399399

test/constructor.test.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@ describe("Smoke test", () => {
1111
accept:
1212
"application/vnd.github.jean-grey-preview+json,application/vnd.github.symmetra-preview+json",
1313
},
14-
}
14+
},
1515
);
1616

1717
const octokit = new Octokit({
@@ -37,7 +37,7 @@ describe("Smoke test", () => {
3737
accept: "application/vnd.github.v3+json",
3838
"time-zone": "Europe/Amsterdam",
3939
},
40-
}
40+
},
4141
);
4242

4343
const octokit = new Octokit({

test/defaults.test.ts

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,7 @@ describe("Octokit.defaults", () => {
2020
accept: "application/vnd.github.v3+json",
2121
"user-agent": userAgent,
2222
},
23-
}
23+
},
2424
);
2525

2626
const OctokitWithDefaults = Octokit.defaults({
@@ -44,7 +44,7 @@ describe("Octokit.defaults", () => {
4444
accept: "application/vnd.github.v3+json",
4545
"user-agent": `my-app/1.2.3 ${userAgent}`,
4646
},
47-
}
47+
},
4848
);
4949

5050
const OctokitWithDefaults = Octokit.defaults({
@@ -68,7 +68,7 @@ describe("Octokit.defaults", () => {
6868
accept: "application/vnd.github.v3+json",
6969
"user-agent": `my-app/1.2.3 my-octokit.js/1.2.3 ${userAgent}`,
7070
},
71-
}
71+
},
7272
);
7373

7474
const OctokitWithDefaults = Octokit.defaults({
@@ -95,7 +95,7 @@ describe("Octokit.defaults", () => {
9595
"user-agent": userAgent,
9696
"time-zone": "Europe/Amsterdam",
9797
},
98-
}
98+
},
9999
);
100100

101101
const OctokitWithDefaults = Octokit.defaults({
@@ -120,7 +120,7 @@ describe("Octokit.defaults", () => {
120120
authorization: `token githubtoken123`,
121121
"user-agent": userAgent,
122122
},
123-
}
123+
},
124124
);
125125
const currentEnv = process.env;
126126
process.env = {
@@ -150,7 +150,7 @@ describe("Octokit.defaults", () => {
150150
accept: "application/vnd.github.v3+json",
151151
"user-agent": `my-app/1.2.3 ${userAgent}`,
152152
},
153-
}
153+
},
154154
);
155155

156156
const OctokitWithDefaults = Octokit.defaults({
@@ -176,7 +176,7 @@ describe("Octokit.defaults", () => {
176176
accept: "application/vnd.github.v3+json",
177177
"user-agent": userAgent,
178178
},
179-
}
179+
},
180180
);
181181

182182
const OctokitWithPluginAndDefaults = Octokit.plugin(() => {

test/hook.test.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -32,7 +32,7 @@ describe("octokit.hook", () => {
3232
.sandbox()
3333
.getOnce(
3434
"https://api.github.com/foo/daz/baz?qux=quux&beforeAddition=works",
35-
{ ok: true }
35+
{ ok: true },
3636
);
3737

3838
const octokit = new Octokit({

0 commit comments

Comments
 (0)