mirror of
https://github.com/hanzoai/puppeteer.git
synced 2026-09-24 17:02:14 +00:00
chore(deps): update to tsc 6 (#14998)
This commit is contained in:
+1
-1
@@ -1694,7 +1694,7 @@ Represents the cookie's 'Priority' status: https://tools.ietf.org/html/draft-wes
|
||||
</td></tr>
|
||||
<tr><td>
|
||||
|
||||
<span id="cookiesamesite">[CookieSameSite](./puppeteer.cookiesamesite.md)</span>
|
||||
<span id="cookiesamesite_2">[CookieSameSite_2](./puppeteer.cookiesamesite_2.md)</span>
|
||||
|
||||
</td><td>
|
||||
|
||||
|
||||
@@ -174,7 +174,7 @@ Cookie Priority. Supported only in Chrome.
|
||||
|
||||
</td><td>
|
||||
|
||||
[CookieSameSite](./puppeteer.cookiesamesite.md)
|
||||
[CookieSameSite](./puppeteer.cookiesamesite_2.md)
|
||||
|
||||
</td><td>
|
||||
|
||||
|
||||
@@ -176,7 +176,7 @@ Cookie Priority. Supported only in Chrome.
|
||||
|
||||
</td><td>
|
||||
|
||||
[CookieSameSite](./puppeteer.cookiesamesite.md)
|
||||
[CookieSameSite](./puppeteer.cookiesamesite_2.md)
|
||||
|
||||
</td><td>
|
||||
|
||||
|
||||
@@ -1,8 +1,8 @@
|
||||
---
|
||||
sidebar_label: CookieSameSite
|
||||
sidebar_label: CookieSameSite_2
|
||||
---
|
||||
|
||||
# CookieSameSite type
|
||||
# CookieSameSite_2 type
|
||||
|
||||
Represents the cookie's 'SameSite' status: https://tools.ietf.org/html/draft-west-first-party-cookies
|
||||
|
||||
Generated
+73
-4
@@ -54,7 +54,7 @@
|
||||
"source-map-support": "0.5.21",
|
||||
"spdx-satisfies": "6.0.0",
|
||||
"tsd": "0.33.0",
|
||||
"typescript": "5.8.3",
|
||||
"typescript": "6.0.3",
|
||||
"typescript-eslint": "8.59.1",
|
||||
"wireit": "0.14.12",
|
||||
"yargs": "18.0.0"
|
||||
@@ -23527,6 +23527,21 @@
|
||||
"typescript": ">=4.8.4"
|
||||
}
|
||||
},
|
||||
"node_modules/eslint-plugin-tsdoc/node_modules/typescript": {
|
||||
"version": "5.9.3",
|
||||
"resolved": "https://registry.npmjs.org/typescript/-/typescript-5.9.3.tgz",
|
||||
"integrity": "sha512-jl1vZzPDinLr9eUt3J/t7V6FgNEw9QjvBPdysz9KfQDD41fQrC2Y4vKQdiaUpFT4bXlb1RHhLpp8wtm6M5TgSw==",
|
||||
"dev": true,
|
||||
"license": "Apache-2.0",
|
||||
"peer": true,
|
||||
"bin": {
|
||||
"tsc": "bin/tsc",
|
||||
"tsserver": "bin/tsserver"
|
||||
},
|
||||
"engines": {
|
||||
"node": ">=14.17"
|
||||
}
|
||||
},
|
||||
"node_modules/eslint-plugin-unused-imports": {
|
||||
"version": "4.1.4",
|
||||
"resolved": "https://registry.npmjs.org/eslint-plugin-unused-imports/-/eslint-plugin-unused-imports-4.1.4.tgz",
|
||||
@@ -28106,6 +28121,9 @@
|
||||
"arm"
|
||||
],
|
||||
"dev": true,
|
||||
"libc": [
|
||||
"glibc"
|
||||
],
|
||||
"license": "MIT",
|
||||
"optional": true,
|
||||
"os": [
|
||||
@@ -28120,6 +28138,9 @@
|
||||
"arm"
|
||||
],
|
||||
"dev": true,
|
||||
"libc": [
|
||||
"musl"
|
||||
],
|
||||
"license": "MIT",
|
||||
"optional": true,
|
||||
"os": [
|
||||
@@ -28134,6 +28155,9 @@
|
||||
"arm64"
|
||||
],
|
||||
"dev": true,
|
||||
"libc": [
|
||||
"glibc"
|
||||
],
|
||||
"license": "MIT",
|
||||
"optional": true,
|
||||
"os": [
|
||||
@@ -28148,6 +28172,9 @@
|
||||
"arm64"
|
||||
],
|
||||
"dev": true,
|
||||
"libc": [
|
||||
"musl"
|
||||
],
|
||||
"license": "MIT",
|
||||
"optional": true,
|
||||
"os": [
|
||||
@@ -28162,6 +28189,9 @@
|
||||
"loong64"
|
||||
],
|
||||
"dev": true,
|
||||
"libc": [
|
||||
"glibc"
|
||||
],
|
||||
"license": "MIT",
|
||||
"optional": true,
|
||||
"os": [
|
||||
@@ -28176,6 +28206,9 @@
|
||||
"loong64"
|
||||
],
|
||||
"dev": true,
|
||||
"libc": [
|
||||
"musl"
|
||||
],
|
||||
"license": "MIT",
|
||||
"optional": true,
|
||||
"os": [
|
||||
@@ -28190,6 +28223,9 @@
|
||||
"ppc64"
|
||||
],
|
||||
"dev": true,
|
||||
"libc": [
|
||||
"glibc"
|
||||
],
|
||||
"license": "MIT",
|
||||
"optional": true,
|
||||
"os": [
|
||||
@@ -28204,6 +28240,9 @@
|
||||
"ppc64"
|
||||
],
|
||||
"dev": true,
|
||||
"libc": [
|
||||
"musl"
|
||||
],
|
||||
"license": "MIT",
|
||||
"optional": true,
|
||||
"os": [
|
||||
@@ -28218,6 +28257,9 @@
|
||||
"riscv64"
|
||||
],
|
||||
"dev": true,
|
||||
"libc": [
|
||||
"glibc"
|
||||
],
|
||||
"license": "MIT",
|
||||
"optional": true,
|
||||
"os": [
|
||||
@@ -28232,6 +28274,9 @@
|
||||
"riscv64"
|
||||
],
|
||||
"dev": true,
|
||||
"libc": [
|
||||
"musl"
|
||||
],
|
||||
"license": "MIT",
|
||||
"optional": true,
|
||||
"os": [
|
||||
@@ -28246,6 +28291,9 @@
|
||||
"s390x"
|
||||
],
|
||||
"dev": true,
|
||||
"libc": [
|
||||
"glibc"
|
||||
],
|
||||
"license": "MIT",
|
||||
"optional": true,
|
||||
"os": [
|
||||
@@ -28260,6 +28308,9 @@
|
||||
"x64"
|
||||
],
|
||||
"dev": true,
|
||||
"libc": [
|
||||
"glibc"
|
||||
],
|
||||
"license": "MIT",
|
||||
"optional": true,
|
||||
"os": [
|
||||
@@ -28274,6 +28325,9 @@
|
||||
"x64"
|
||||
],
|
||||
"dev": true,
|
||||
"libc": [
|
||||
"musl"
|
||||
],
|
||||
"license": "MIT",
|
||||
"optional": true,
|
||||
"os": [
|
||||
@@ -30184,9 +30238,9 @@
|
||||
}
|
||||
},
|
||||
"node_modules/typescript": {
|
||||
"version": "5.8.3",
|
||||
"resolved": "https://registry.npmjs.org/typescript/-/typescript-5.8.3.tgz",
|
||||
"integrity": "sha512-p1diW6TqL9L07nNxvRMM7hMMw4c5XOo/1ibL4aAIGmSAt9slTE1Xgw5KWuof2uTOvCg9BY7ZRi+GaF+7sfgPeQ==",
|
||||
"version": "6.0.3",
|
||||
"resolved": "https://registry.npmjs.org/typescript/-/typescript-6.0.3.tgz",
|
||||
"integrity": "sha512-y2TvuxSZPDyQakkFRPZHKFm+KKVqIisdg9/CZwm9ftvKXLP8NRWj38/ODjNbr43SsoXqNuAisEf1GdCxqWcdBw==",
|
||||
"devOptional": true,
|
||||
"license": "Apache-2.0",
|
||||
"bin": {
|
||||
@@ -44648,6 +44702,21 @@
|
||||
"typescript": ">=4.8.4"
|
||||
}
|
||||
},
|
||||
"tools/eslint/node_modules/typescript": {
|
||||
"version": "5.8.3",
|
||||
"resolved": "https://registry.npmjs.org/typescript/-/typescript-5.8.3.tgz",
|
||||
"integrity": "sha512-p1diW6TqL9L07nNxvRMM7hMMw4c5XOo/1ibL4aAIGmSAt9slTE1Xgw5KWuof2uTOvCg9BY7ZRi+GaF+7sfgPeQ==",
|
||||
"dev": true,
|
||||
"license": "Apache-2.0",
|
||||
"peer": true,
|
||||
"bin": {
|
||||
"tsc": "bin/tsc",
|
||||
"tsserver": "bin/tsserver"
|
||||
},
|
||||
"engines": {
|
||||
"node": ">=14.17"
|
||||
}
|
||||
},
|
||||
"tools/mocha-runner": {
|
||||
"name": "@puppeteer/mocha-runner",
|
||||
"version": "0.1.0",
|
||||
|
||||
+1
-1
@@ -200,7 +200,7 @@
|
||||
"source-map-support": "0.5.21",
|
||||
"spdx-satisfies": "6.0.0",
|
||||
"tsd": "0.33.0",
|
||||
"typescript": "5.8.3",
|
||||
"typescript": "6.0.3",
|
||||
"wireit": "0.14.12",
|
||||
"yargs": "18.0.0",
|
||||
"glob": "13.0.6"
|
||||
|
||||
+1
-1
@@ -6,7 +6,7 @@
|
||||
|
||||
import assert from 'node:assert';
|
||||
|
||||
import {Browser, BrowserPlatform, DefaultProvider} from './main.js';
|
||||
import {Browser, BrowserPlatform, DefaultProvider} from '../../lib/main.js';
|
||||
|
||||
describe('DefaultProvider', () => {
|
||||
let provider: DefaultProvider;
|
||||
@@ -4,7 +4,8 @@
|
||||
"lib": ["ES2024.Promise"],
|
||||
"module": "ES2022",
|
||||
"moduleResolution": "Bundler",
|
||||
"outDir": "../build"
|
||||
"outDir": "../build",
|
||||
"types": ["node", "mocha"]
|
||||
},
|
||||
"references": [{"path": "../../tsconfig.json"}]
|
||||
}
|
||||
|
||||
@@ -2,7 +2,8 @@
|
||||
"extends": "../../tsconfig.base.json",
|
||||
"compilerOptions": {
|
||||
"outDir": "lib",
|
||||
"rootDir": "src"
|
||||
"rootDir": "src",
|
||||
"types": ["node"]
|
||||
},
|
||||
"include": ["src/**/*"]
|
||||
}
|
||||
|
||||
@@ -1,7 +1,6 @@
|
||||
{
|
||||
"extends": "../../tsconfig.base.json",
|
||||
"compilerOptions": {
|
||||
"baseUrl": "tsconfig",
|
||||
"module": "NodeNext",
|
||||
"moduleResolution": "NodeNext",
|
||||
"noEmitOnError": true,
|
||||
|
||||
@@ -17,8 +17,9 @@ export interface CustomQuerySelector {
|
||||
|
||||
/**
|
||||
* This class mimics the injected {@link CustomQuerySelectorRegistry}.
|
||||
*
|
||||
*/
|
||||
class CustomQuerySelectorRegistry {
|
||||
export class CustomQuerySelectorRegistry {
|
||||
#selectors = new Map<string, CustomQuerySelector>();
|
||||
|
||||
register(name: string, handler: CustomQueryHandler): void {
|
||||
@@ -54,7 +55,7 @@ class CustomQuerySelectorRegistry {
|
||||
return this.#selectors.get(name);
|
||||
}
|
||||
|
||||
clear() {
|
||||
clear(): void {
|
||||
this.#selectors.clear();
|
||||
}
|
||||
}
|
||||
|
||||
@@ -6,22 +6,27 @@
|
||||
import {Deferred} from './Deferred.js';
|
||||
import {disposeSymbol} from './disposable.js';
|
||||
|
||||
/**
|
||||
* @internal
|
||||
*/
|
||||
class MutexGuard {
|
||||
#mutex: Mutex;
|
||||
#onRelease?: () => void;
|
||||
constructor(mutex: Mutex, onRelease?: () => void) {
|
||||
this.#mutex = mutex;
|
||||
this.#onRelease = onRelease;
|
||||
}
|
||||
[disposeSymbol](): void {
|
||||
this.#onRelease?.();
|
||||
return this.#mutex.release();
|
||||
}
|
||||
}
|
||||
|
||||
/**
|
||||
* @internal
|
||||
*/
|
||||
export class Mutex {
|
||||
static Guard = class Guard {
|
||||
#mutex: Mutex;
|
||||
#onRelease?: () => void;
|
||||
constructor(mutex: Mutex, onRelease?: () => void) {
|
||||
this.#mutex = mutex;
|
||||
this.#onRelease = onRelease;
|
||||
}
|
||||
[disposeSymbol](): void {
|
||||
this.#onRelease?.();
|
||||
return this.#mutex.release();
|
||||
}
|
||||
};
|
||||
static Guard = MutexGuard;
|
||||
|
||||
#locked = false;
|
||||
#acquirers: Array<() => void> = [];
|
||||
|
||||
@@ -2,7 +2,8 @@
|
||||
"extends": "../../tsconfig.base.json",
|
||||
"compilerOptions": {
|
||||
"outDir": "./lib/puppeteer",
|
||||
"rootDir": "./src"
|
||||
"rootDir": "./src",
|
||||
"types": ["node", "chrome"]
|
||||
},
|
||||
"include": ["src/**/*"],
|
||||
"references": [{"path": "./third_party/tsconfig.json"}]
|
||||
|
||||
@@ -3,10 +3,6 @@
|
||||
"compilerOptions": {
|
||||
"outDir": "./lib/puppeteer",
|
||||
"rootDir": "./src",
|
||||
|
||||
// API extractor doesn't work well with NodeNext module resolution, so we
|
||||
// just stick with ol'fashion path resolution.
|
||||
"baseUrl": ".",
|
||||
"paths": {
|
||||
"puppeteer-core/internal/*": ["../puppeteer-core/lib/puppeteer/*"]
|
||||
}
|
||||
|
||||
@@ -6,7 +6,8 @@
|
||||
"module": "ES2022",
|
||||
"moduleResolution": "Bundler",
|
||||
"outDir": "lib",
|
||||
"rootDir": "src"
|
||||
"rootDir": "src",
|
||||
"types": ["node"]
|
||||
},
|
||||
"include": ["src"]
|
||||
}
|
||||
|
||||
@@ -4,7 +4,8 @@
|
||||
"module": "NodeNext",
|
||||
"moduleResolution": "NodeNext",
|
||||
"outDir": "build",
|
||||
"rootDir": "src"
|
||||
"rootDir": "src",
|
||||
"types": ["node", "mocha"]
|
||||
},
|
||||
"include": ["src"]
|
||||
}
|
||||
|
||||
+2
-1
@@ -4,7 +4,8 @@
|
||||
"module": "ES2022",
|
||||
"moduleResolution": "Bundler",
|
||||
"outDir": "build",
|
||||
"rootDir": "src"
|
||||
"rootDir": "src",
|
||||
"types": ["node", "mocha"]
|
||||
},
|
||||
"include": ["src"]
|
||||
}
|
||||
|
||||
@@ -8,6 +8,7 @@
|
||||
"sourceMap": true,
|
||||
"declaration": false,
|
||||
"declarationMap": false,
|
||||
"composite": false
|
||||
"composite": false,
|
||||
"types": ["node", "mocha"]
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user