chore: update Prettier (#11372)
This commit is contained in:
parent
4bf2a09a13
commit
915eb7ff4e
@ -12,6 +12,6 @@ export type ElementFor<
|
||||
> = TagName extends keyof HTMLElementTagNameMap
|
||||
? HTMLElementTagNameMap[TagName]
|
||||
: TagName extends keyof SVGElementTagNameMap
|
||||
? SVGElementTagNameMap[TagName]
|
||||
: never;
|
||||
? SVGElementTagNameMap[TagName]
|
||||
: never;
|
||||
```
|
||||
|
23
package-lock.json
generated
23
package-lock.json
generated
@ -44,7 +44,7 @@
|
||||
"license-checker": "25.0.1",
|
||||
"mocha": "10.2.0",
|
||||
"npm-run-all": "4.1.5",
|
||||
"prettier": "3.0.3",
|
||||
"prettier": "3.1.0",
|
||||
"puppeteer": "file:packages/puppeteer",
|
||||
"semver": "7.5.4",
|
||||
"sinon": "17.0.1",
|
||||
@ -5526,6 +5526,21 @@
|
||||
"url": "https://github.com/sponsors/sindresorhus"
|
||||
}
|
||||
},
|
||||
"node_modules/gts/node_modules/prettier": {
|
||||
"version": "3.0.3",
|
||||
"resolved": "https://registry.npmjs.org/prettier/-/prettier-3.0.3.tgz",
|
||||
"integrity": "sha512-L/4pUDMxcNa8R/EthV08Zt42WBO4h1rarVtK0K+QJG0X187OLo7l699jWw0GKuwzkPQ//jMFA/8Xm6Fh3J/DAg==",
|
||||
"dev": true,
|
||||
"bin": {
|
||||
"prettier": "bin/prettier.cjs"
|
||||
},
|
||||
"engines": {
|
||||
"node": ">=14"
|
||||
},
|
||||
"funding": {
|
||||
"url": "https://github.com/prettier/prettier?sponsor=1"
|
||||
}
|
||||
},
|
||||
"node_modules/gts/node_modules/rxjs": {
|
||||
"version": "6.6.7",
|
||||
"resolved": "https://registry.npmjs.org/rxjs/-/rxjs-6.6.7.tgz",
|
||||
@ -8827,9 +8842,9 @@
|
||||
}
|
||||
},
|
||||
"node_modules/prettier": {
|
||||
"version": "3.0.3",
|
||||
"resolved": "https://registry.npmjs.org/prettier/-/prettier-3.0.3.tgz",
|
||||
"integrity": "sha512-L/4pUDMxcNa8R/EthV08Zt42WBO4h1rarVtK0K+QJG0X187OLo7l699jWw0GKuwzkPQ//jMFA/8Xm6Fh3J/DAg==",
|
||||
"version": "3.1.0",
|
||||
"resolved": "https://registry.npmjs.org/prettier/-/prettier-3.1.0.tgz",
|
||||
"integrity": "sha512-TQLvXjq5IAibjh8EpBIkNKxO749UEWABoiIZehEPiY4GNpVdhaFKqSTu+QrlU6D2dPAfubRmtJTi4K4YkQ5eXw==",
|
||||
"bin": {
|
||||
"prettier": "bin/prettier.cjs"
|
||||
},
|
||||
|
@ -148,7 +148,7 @@
|
||||
"license-checker": "25.0.1",
|
||||
"mocha": "10.2.0",
|
||||
"npm-run-all": "4.1.5",
|
||||
"prettier": "3.0.3",
|
||||
"prettier": "3.1.0",
|
||||
"puppeteer": "file:packages/puppeteer",
|
||||
"semver": "7.5.4",
|
||||
"sinon": "17.0.1",
|
||||
|
@ -67,15 +67,9 @@ export class ExposeableFunction<Args extends unknown[], Ret> {
|
||||
this.#apply = apply;
|
||||
|
||||
this.#channels = {
|
||||
args: `__puppeteer__${this.#frame._id}_page_exposeFunction_${
|
||||
this.name
|
||||
}_args`,
|
||||
resolve: `__puppeteer__${this.#frame._id}_page_exposeFunction_${
|
||||
this.name
|
||||
}_resolve`,
|
||||
reject: `__puppeteer__${this.#frame._id}_page_exposeFunction_${
|
||||
this.name
|
||||
}_reject`,
|
||||
args: `__puppeteer__${this.#frame._id}_page_exposeFunction_${this.name}_args`,
|
||||
resolve: `__puppeteer__${this.#frame._id}_page_exposeFunction_${this.name}_resolve`,
|
||||
reject: `__puppeteer__${this.#frame._id}_page_exposeFunction_${this.name}_reject`,
|
||||
};
|
||||
}
|
||||
|
||||
|
@ -96,9 +96,7 @@ export class CdpCDPSession extends CDPSession {
|
||||
if (!this.#connection) {
|
||||
return Promise.reject(
|
||||
new TargetCloseError(
|
||||
`Protocol error (${method}): Session closed. Most likely the ${
|
||||
this.#targetType
|
||||
} has been closed.`
|
||||
`Protocol error (${method}): Session closed. Most likely the ${this.#targetType} has been closed.`
|
||||
)
|
||||
);
|
||||
}
|
||||
@ -145,9 +143,7 @@ export class CdpCDPSession extends CDPSession {
|
||||
override async detach(): Promise<void> {
|
||||
if (!this.#connection) {
|
||||
throw new Error(
|
||||
`Session already detached. Most likely the ${
|
||||
this.#targetType
|
||||
} has been closed.`
|
||||
`Session already detached. Most likely the ${this.#targetType} has been closed.`
|
||||
);
|
||||
}
|
||||
await this.#connection.send('Target.detachFromTarget', {
|
||||
|
@ -107,8 +107,8 @@ export type ElementFor<
|
||||
> = TagName extends keyof HTMLElementTagNameMap
|
||||
? HTMLElementTagNameMap[TagName]
|
||||
: TagName extends keyof SVGElementTagNameMap
|
||||
? SVGElementTagNameMap[TagName]
|
||||
: never;
|
||||
? SVGElementTagNameMap[TagName]
|
||||
: never;
|
||||
|
||||
/**
|
||||
* @public
|
||||
|
@ -97,8 +97,8 @@ const compareText = (
|
||||
text += change.added
|
||||
? `<span class='ins'>${change.value}</span>`
|
||||
: change.removed
|
||||
? `<span class='del'>${change.value}</span>`
|
||||
: change.value;
|
||||
? `<span class='del'>${change.value}</span>`
|
||||
: change.value;
|
||||
return text;
|
||||
},
|
||||
`<link rel="stylesheet" href="file://${path.join(
|
||||
|
Loading…
Reference in New Issue
Block a user