mirror of
https://github.com/puppeteer/puppeteer
synced 2024-06-14 14:02:48 +00:00
chore: update Prettier (#11372)
This commit is contained in:
parent
4bf2a09a13
commit
915eb7ff4e
23
package-lock.json
generated
23
package-lock.json
generated
@ -44,7 +44,7 @@
|
|||||||
"license-checker": "25.0.1",
|
"license-checker": "25.0.1",
|
||||||
"mocha": "10.2.0",
|
"mocha": "10.2.0",
|
||||||
"npm-run-all": "4.1.5",
|
"npm-run-all": "4.1.5",
|
||||||
"prettier": "3.0.3",
|
"prettier": "3.1.0",
|
||||||
"puppeteer": "file:packages/puppeteer",
|
"puppeteer": "file:packages/puppeteer",
|
||||||
"semver": "7.5.4",
|
"semver": "7.5.4",
|
||||||
"sinon": "17.0.1",
|
"sinon": "17.0.1",
|
||||||
@ -5526,6 +5526,21 @@
|
|||||||
"url": "https://github.com/sponsors/sindresorhus"
|
"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": {
|
"node_modules/gts/node_modules/rxjs": {
|
||||||
"version": "6.6.7",
|
"version": "6.6.7",
|
||||||
"resolved": "https://registry.npmjs.org/rxjs/-/rxjs-6.6.7.tgz",
|
"resolved": "https://registry.npmjs.org/rxjs/-/rxjs-6.6.7.tgz",
|
||||||
@ -8827,9 +8842,9 @@
|
|||||||
}
|
}
|
||||||
},
|
},
|
||||||
"node_modules/prettier": {
|
"node_modules/prettier": {
|
||||||
"version": "3.0.3",
|
"version": "3.1.0",
|
||||||
"resolved": "https://registry.npmjs.org/prettier/-/prettier-3.0.3.tgz",
|
"resolved": "https://registry.npmjs.org/prettier/-/prettier-3.1.0.tgz",
|
||||||
"integrity": "sha512-L/4pUDMxcNa8R/EthV08Zt42WBO4h1rarVtK0K+QJG0X187OLo7l699jWw0GKuwzkPQ//jMFA/8Xm6Fh3J/DAg==",
|
"integrity": "sha512-TQLvXjq5IAibjh8EpBIkNKxO749UEWABoiIZehEPiY4GNpVdhaFKqSTu+QrlU6D2dPAfubRmtJTi4K4YkQ5eXw==",
|
||||||
"bin": {
|
"bin": {
|
||||||
"prettier": "bin/prettier.cjs"
|
"prettier": "bin/prettier.cjs"
|
||||||
},
|
},
|
||||||
|
@ -148,7 +148,7 @@
|
|||||||
"license-checker": "25.0.1",
|
"license-checker": "25.0.1",
|
||||||
"mocha": "10.2.0",
|
"mocha": "10.2.0",
|
||||||
"npm-run-all": "4.1.5",
|
"npm-run-all": "4.1.5",
|
||||||
"prettier": "3.0.3",
|
"prettier": "3.1.0",
|
||||||
"puppeteer": "file:packages/puppeteer",
|
"puppeteer": "file:packages/puppeteer",
|
||||||
"semver": "7.5.4",
|
"semver": "7.5.4",
|
||||||
"sinon": "17.0.1",
|
"sinon": "17.0.1",
|
||||||
|
@ -67,15 +67,9 @@ export class ExposeableFunction<Args extends unknown[], Ret> {
|
|||||||
this.#apply = apply;
|
this.#apply = apply;
|
||||||
|
|
||||||
this.#channels = {
|
this.#channels = {
|
||||||
args: `__puppeteer__${this.#frame._id}_page_exposeFunction_${
|
args: `__puppeteer__${this.#frame._id}_page_exposeFunction_${this.name}_args`,
|
||||||
this.name
|
resolve: `__puppeteer__${this.#frame._id}_page_exposeFunction_${this.name}_resolve`,
|
||||||
}_args`,
|
reject: `__puppeteer__${this.#frame._id}_page_exposeFunction_${this.name}_reject`,
|
||||||
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) {
|
if (!this.#connection) {
|
||||||
return Promise.reject(
|
return Promise.reject(
|
||||||
new TargetCloseError(
|
new TargetCloseError(
|
||||||
`Protocol error (${method}): Session closed. Most likely the ${
|
`Protocol error (${method}): Session closed. Most likely the ${this.#targetType} has been closed.`
|
||||||
this.#targetType
|
|
||||||
} has been closed.`
|
|
||||||
)
|
)
|
||||||
);
|
);
|
||||||
}
|
}
|
||||||
@ -145,9 +143,7 @@ export class CdpCDPSession extends CDPSession {
|
|||||||
override async detach(): Promise<void> {
|
override async detach(): Promise<void> {
|
||||||
if (!this.#connection) {
|
if (!this.#connection) {
|
||||||
throw new Error(
|
throw new Error(
|
||||||
`Session already detached. Most likely the ${
|
`Session already detached. Most likely the ${this.#targetType} has been closed.`
|
||||||
this.#targetType
|
|
||||||
} has been closed.`
|
|
||||||
);
|
);
|
||||||
}
|
}
|
||||||
await this.#connection.send('Target.detachFromTarget', {
|
await this.#connection.send('Target.detachFromTarget', {
|
||||||
|
Loading…
Reference in New Issue
Block a user