mirror of
https://github.com/puppeteer/puppeteer
synced 2024-06-14 14:02:48 +00:00
chore: update dependencies (#10336)
This commit is contained in:
parent
9c35e9ab1f
commit
3552d97360
5
.github/workflows/ci.yml
vendored
5
.github/workflows/ci.yml
vendored
@ -323,11 +323,6 @@ jobs:
|
||||
with:
|
||||
node-version: ${{ matrix.node }}
|
||||
- name: Set up ${{ matrix.pkg_manager }}
|
||||
id: workaround
|
||||
if: ${{ matrix.node == '14' && matrix.os == 'windows-latest' && matrix.pkg_manager == 'npm' }}
|
||||
run: npm install -g ${{ matrix.pkg_manager }}@8.3
|
||||
- name: Set up ${{ matrix.pkg_manager }}
|
||||
if: ${{ steps.workaround.outcome == 'skipped' }}
|
||||
run: npm install -g ${{ matrix.pkg_manager }}@latest
|
||||
- name: Install dependencies
|
||||
run: ${{ matrix.pkg_manager }} install
|
||||
|
2610
package-lock.json
generated
2610
package-lock.json
generated
File diff suppressed because it is too large
Load Diff
43
package.json
43
package.json
@ -122,34 +122,33 @@
|
||||
},
|
||||
"devDependencies": {
|
||||
"@actions/core": "1.10.0",
|
||||
"@microsoft/api-documenter": "7.22.7",
|
||||
"@microsoft/api-documenter": "7.22.10",
|
||||
"@microsoft/api-extractor": "7.35.1",
|
||||
"@microsoft/api-extractor-model": "7.27.1",
|
||||
"@pptr/testserver": "file:packages/testserver",
|
||||
"@rollup/plugin-commonjs": "24.0.1",
|
||||
"@rollup/plugin-node-resolve": "15.0.1",
|
||||
"@types/debug": "4.1.7",
|
||||
"@types/diff": "5.0.2",
|
||||
"@rollup/plugin-commonjs": "25.0.0",
|
||||
"@rollup/plugin-node-resolve": "15.1.0",
|
||||
"@types/debug": "4.1.8",
|
||||
"@types/diff": "5.0.3",
|
||||
"@types/mime": "3.0.1",
|
||||
"@types/mocha": "10.0.1",
|
||||
"@types/node": "20.2.5",
|
||||
"@types/pixelmatch": "5.2.4",
|
||||
"@types/pngjs": "6.0.1",
|
||||
"@types/progress": "2.0.5",
|
||||
"@types/proxy-from-env": "1.0.1",
|
||||
"@types/semver": "7.3.13",
|
||||
"@types/sinon": "10.0.13",
|
||||
"@types/semver": "7.5.0",
|
||||
"@types/sinon": "10.0.15",
|
||||
"@types/tar-fs": "2.0.1",
|
||||
"@types/unbzip2-stream": "1.4.0",
|
||||
"@types/ws": "8.5.4",
|
||||
"@typescript-eslint/eslint-plugin": "5.59.1",
|
||||
"@typescript-eslint/parser": "5.59.1",
|
||||
"c8": "7.13.0",
|
||||
"@typescript-eslint/eslint-plugin": "5.59.9",
|
||||
"@typescript-eslint/parser": "5.59.9",
|
||||
"c8": "7.14.0",
|
||||
"commonmark": "0.30.0",
|
||||
"cross-env": "7.0.3",
|
||||
"diff": "5.1.0",
|
||||
"esbuild": "0.17.11",
|
||||
"eslint": "8.39.0",
|
||||
"esbuild": "0.17.19",
|
||||
"eslint": "8.42.0",
|
||||
"eslint-config-prettier": "8.8.0",
|
||||
"eslint-formatter-codeframe": "7.32.1",
|
||||
"eslint-plugin-import": "2.27.5",
|
||||
@ -159,8 +158,8 @@
|
||||
"eslint-plugin-tsdoc": "0.2.17",
|
||||
"eslint-plugin-unused-imports": "2.0.0",
|
||||
"esprima": "4.0.1",
|
||||
"expect": "29.4.3",
|
||||
"glob": "8.1.0",
|
||||
"expect": "29.5.0",
|
||||
"glob": "10.2.7",
|
||||
"gts": "4.0.1",
|
||||
"jpeg-js": "0.4.4",
|
||||
"license-checker": "25.0.1",
|
||||
@ -173,16 +172,16 @@
|
||||
"pngjs": "7.0.0",
|
||||
"prettier": "2.8.8",
|
||||
"puppeteer": "file:packages/puppeteer",
|
||||
"rimraf": "3.0.2",
|
||||
"rollup": "3.18.0",
|
||||
"semver": "7.3.8",
|
||||
"sinon": "15.0.1",
|
||||
"rimraf": "5.0.1",
|
||||
"rollup": "3.24.0",
|
||||
"semver": "7.5.1",
|
||||
"sinon": "15.1.0",
|
||||
"source-map-support": "0.5.21",
|
||||
"spdx-satisfies": "5.0.1",
|
||||
"text-diff": "1.0.1",
|
||||
"tsd": "0.26.0",
|
||||
"tsx": "3.12.3",
|
||||
"typescript": "5.0.4",
|
||||
"tsd": "0.28.1",
|
||||
"tsx": "3.12.7",
|
||||
"typescript": "5.1.3",
|
||||
"wireit": "0.9.5",
|
||||
"zod": "3.21.2"
|
||||
},
|
||||
|
@ -18,5 +18,5 @@ export const testChromeBuildId = '113.0.5672.0';
|
||||
export const testChromiumBuildId = '1083080';
|
||||
// TODO: We can add a Cron job to auto-update on change.
|
||||
// Firefox keeps only `latest` version of Nightly builds.
|
||||
export const testFirefoxBuildId = '115.0a1';
|
||||
export const testFirefoxBuildId = '116.0a1';
|
||||
export const testChromeDriverBuildId = '115.0.5763.0';
|
||||
|
@ -15,13 +15,13 @@
|
||||
*/
|
||||
import commonjs from '@rollup/plugin-commonjs';
|
||||
import {nodeResolve} from '@rollup/plugin-node-resolve';
|
||||
import glob from 'glob';
|
||||
import {globSync} from 'glob';
|
||||
|
||||
export default ['cjs', 'esm'].flatMap(outputType => {
|
||||
const configs = [];
|
||||
// Note we don't use path.join here. We cannot since `glob` does not support
|
||||
// the backslash path separator.
|
||||
for (const file of glob.sync(`lib/${outputType}/third_party/**/*.js`)) {
|
||||
for (const file of globSync(`lib/${outputType}/third_party/**/*.js`)) {
|
||||
configs.push({
|
||||
input: file,
|
||||
output: {
|
||||
|
@ -220,9 +220,6 @@ export class CDPElementHandle<
|
||||
element.scrollIntoView({
|
||||
block: 'center',
|
||||
inline: 'center',
|
||||
// @ts-expect-error Chrome still supports behavior: instant but
|
||||
// it's not in the spec so TS shouts We don't want to make this
|
||||
// breaking change in Puppeteer yet so we'll ignore the line.
|
||||
behavior: 'instant',
|
||||
});
|
||||
});
|
||||
|
@ -45,10 +45,7 @@
|
||||
"assets"
|
||||
],
|
||||
"dependencies": {
|
||||
"glob": "8.1.0",
|
||||
"glob": "10.2.7",
|
||||
"mocha": "10.2.0"
|
||||
},
|
||||
"devDependencies": {
|
||||
"@types/glob": "8.1.0"
|
||||
}
|
||||
}
|
||||
|
@ -17,16 +17,16 @@
|
||||
import {dirname, join, resolve} from 'path';
|
||||
import {fileURLToPath} from 'url';
|
||||
|
||||
import glob from 'glob';
|
||||
import {globSync} from 'glob';
|
||||
|
||||
export const PUPPETEER_CORE_PACKAGE_PATH = resolve(
|
||||
glob.sync('puppeteer-core-*.tgz')[0]!
|
||||
globSync('puppeteer-core-*.tgz')[0]!
|
||||
);
|
||||
export const PUPPETEER_BROWSERS_PACKAGE_PATH = resolve(
|
||||
glob.sync('puppeteer-browsers-[0-9]*.tgz')[0]!
|
||||
globSync('puppeteer-browsers-[0-9]*.tgz')[0]!
|
||||
);
|
||||
export const PUPPETEER_PACKAGE_PATH = resolve(
|
||||
glob.sync('puppeteer-[0-9]*.tgz')[0]!
|
||||
globSync('puppeteer-[0-9]*.tgz')[0]!
|
||||
);
|
||||
export const ASSETS_DIR = join(
|
||||
dirname(fileURLToPath(import.meta.url)),
|
||||
|
@ -1213,6 +1213,7 @@ describe('Page', function () {
|
||||
const thrown = await page.evaluate(async () => {
|
||||
try {
|
||||
await (globalThis as any).woof();
|
||||
return;
|
||||
} catch (error) {
|
||||
return error;
|
||||
}
|
||||
|
@ -4,7 +4,7 @@ import {mkdir, readFile, stat, writeFile} from 'fs/promises';
|
||||
import {tmpdir} from 'os';
|
||||
import {dirname, join} from 'path';
|
||||
|
||||
import glob from 'glob';
|
||||
import {hasMagic, globSync} from 'glob';
|
||||
|
||||
interface JobContext {
|
||||
name: string;
|
||||
@ -41,8 +41,8 @@ class JobBuilder {
|
||||
|
||||
inputs(inputs: string[]): JobBuilder {
|
||||
this.#inputs = inputs.flatMap(value => {
|
||||
if (glob.hasMagic(value)) {
|
||||
return glob.sync(value);
|
||||
if (hasMagic(value)) {
|
||||
return globSync(value);
|
||||
}
|
||||
return value;
|
||||
});
|
||||
|
Loading…
Reference in New Issue
Block a user