diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index 20858b82fd..34c05ba49f 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -64,6 +64,7 @@ jobs: with: node-version: ${{ env.NODE_JS }} - uses: ./.github/actions/npm + - run: npx playwright install --with-deps - run: npm run build:esm - run: npm run test:browser diff --git a/karma.conf.cjs b/karma.conf.cjs new file mode 100644 index 0000000000..be49677429 --- /dev/null +++ b/karma.conf.cjs @@ -0,0 +1,50 @@ +const webpack = require("webpack"); +const playwright = require('playwright'); + +process.env.CHROME_BIN = playwright.chromium.executablePath(); +process.env.FIREFOX_BIN = playwright.firefox.executablePath(); +process.env.WEBKIT_HEADLESS_BIN = playwright.webkit.executablePath(); + +module.exports = function (config) { + config.set({ + frameworks: ["webpack", "mocha"], + files: ["src/**/!(node).spec.ts"], + preprocessors: { + "src/**/!(node).spec.ts": ["webpack"] + }, + envPreprocessor: ["CI"], + reporters: ["progress"], + browsers: ["ChromeHeadless", "FirefoxHeadless", "WebkitHeadless"], + singleRun: true, + client: { + mocha: { + timeout: 6000 // Default is 2s + } + }, + webpack: { + mode: "development", + module: { + rules: [{ test: /\.([cm]?ts|tsx)$/, loader: "ts-loader" }] + }, + plugins: [ + new webpack.DefinePlugin({ + "process.env.CI": process.env.CI || false, + "process.env.DISPLAY": "Browser", + }), + new webpack.ProvidePlugin({ + process: "process/browser.js" + }) + ], + resolve: { + extensions: [".ts", ".tsx", ".js"], + extensionAlias: { + ".js": [".js", ".ts"], + ".cjs": [".cjs", ".cts"], + ".mjs": [".mjs", ".mts"] + } + }, + stats: { warnings: false }, + devtool: "inline-source-map" + } + }); +}; diff --git a/package-lock.json b/package-lock.json index 8ab9f7c83f..9c02c23ace 100644 --- a/package-lock.json +++ b/package-lock.json @@ -33,7 +33,14 @@ "eslint-plugin-prettier": "^5.0.0", "gh-pages": "^5.0.0", "husky": "^8.0.3", + "karma": "^6.4.2", + "karma-chrome-launcher": "^3.2.0", + "karma-firefox-launcher": "^2.1.2", + "karma-mocha": "^2.0.1", + "karma-webkit-launcher": "^2.1.0", + "karma-webpack": "^5.0.0", "lint-staged": "^14.0.1", + "playwright": "^1.38.1", "size-limit": "^9.0.0", "ts-loader": "^9.4.2", "ts-node": "^10.9.1", @@ -1545,7 +1552,7 @@ "license": "MIT" }, "node_modules/@cspell/dict-companies": { - "version": "3.0.23", + "version": "3.0.24", "dev": true, "license": "MIT" }, @@ -1600,7 +1607,7 @@ "license": "MIT" }, "node_modules/@cspell/dict-en_us": { - "version": "4.3.7", + "version": "4.3.8", "dev": true, "license": "MIT" }, @@ -1655,7 +1662,7 @@ "license": "MIT" }, "node_modules/@cspell/dict-html": { - "version": "4.0.3", + "version": "4.0.4", "dev": true, "license": "MIT" }, @@ -1695,7 +1702,7 @@ "license": "MIT" }, "node_modules/@cspell/dict-npm": { - "version": "5.0.8", + "version": "5.0.9", "dev": true, "license": "MIT" }, @@ -1743,7 +1750,7 @@ "license": "MIT" }, "node_modules/@cspell/dict-software-terms": { - "version": "3.2.5", + "version": "3.3.0", "dev": true, "license": "MIT" }, @@ -2906,11 +2913,11 @@ } }, "node_modules/@playwright/test": { - "version": "1.38.0", + "version": "1.38.1", "dev": true, "license": "Apache-2.0", "dependencies": { - "playwright": "1.38.0" + "playwright": "1.38.1" }, "bin": { "playwright": "cli.js" @@ -3004,108 +3011,6 @@ "version": "1.1.0", "license": "BSD-3-Clause" }, - "node_modules/@puppeteer/browsers": { - "version": "1.7.1", - "dev": true, - "license": "Apache-2.0", - "dependencies": { - "debug": "4.3.4", - "extract-zip": "2.0.1", - "progress": "2.0.3", - "proxy-agent": "6.3.1", - "tar-fs": "3.0.4", - "unbzip2-stream": "1.4.3", - "yargs": "17.7.1" - }, - "bin": { - "browsers": "lib/cjs/main-cli.js" - }, - "engines": { - "node": ">=16.3.0" - } - }, - "node_modules/@puppeteer/browsers/node_modules/ansi-regex": { - "version": "5.0.1", - "dev": true, - "license": "MIT", - "engines": { - "node": ">=8" - } - }, - "node_modules/@puppeteer/browsers/node_modules/emoji-regex": { - "version": "8.0.0", - "dev": true, - "license": "MIT" - }, - "node_modules/@puppeteer/browsers/node_modules/is-fullwidth-code-point": { - "version": "3.0.0", - "dev": true, - "license": "MIT", - "engines": { - "node": ">=8" - } - }, - "node_modules/@puppeteer/browsers/node_modules/string-width": { - "version": "4.2.3", - "dev": true, - "license": "MIT", - "dependencies": { - "emoji-regex": "^8.0.0", - "is-fullwidth-code-point": "^3.0.0", - "strip-ansi": "^6.0.1" - }, - "engines": { - "node": ">=8" - } - }, - "node_modules/@puppeteer/browsers/node_modules/strip-ansi": { - "version": "6.0.1", - "dev": true, - "license": "MIT", - "dependencies": { - "ansi-regex": "^5.0.1" - }, - "engines": { - "node": ">=8" - } - }, - "node_modules/@puppeteer/browsers/node_modules/tar-fs": { - "version": "3.0.4", - "dev": true, - "license": "MIT", - "dependencies": { - "mkdirp-classic": "^0.5.2", - "pump": "^3.0.0", - "tar-stream": "^3.1.5" - } - }, - "node_modules/@puppeteer/browsers/node_modules/tar-stream": { - "version": "3.1.6", - "dev": true, - "license": "MIT", - "dependencies": { - "b4a": "^1.6.4", - "fast-fifo": "^1.2.0", - "streamx": "^2.15.0" - } - }, - "node_modules/@puppeteer/browsers/node_modules/yargs": { - "version": "17.7.1", - "dev": true, - "license": "MIT", - "dependencies": { - "cliui": "^8.0.1", - "escalade": "^3.1.1", - "get-caller-file": "^2.0.5", - "require-directory": "^2.1.1", - "string-width": "^4.2.3", - "y18n": "^5.0.5", - "yargs-parser": "^21.1.1" - }, - "engines": { - "node": ">=12" - } - }, "node_modules/@rollup/plugin-commonjs": { "version": "25.0.4", "dev": true, @@ -3846,9 +3751,8 @@ }, "node_modules/@sitespeed.io/tracium": { "version": "0.3.3", - "resolved": "https://registry.npmjs.org/@sitespeed.io/tracium/-/tracium-0.3.3.tgz", - "integrity": "sha512-dNZafjM93Y+F+sfwTO5gTpsGXlnc/0Q+c2+62ViqP3gkMWvHEMSKkaEHgVJLcLg3i/g19GSIPziiKpgyne07Bw==", "dev": true, + "license": "Apache-2.0", "dependencies": { "debug": "^4.1.1" }, @@ -3872,9 +3776,8 @@ }, "node_modules/@size-limit/preset-big-lib/node_modules/@size-limit/file": { "version": "8.2.6", - "resolved": "https://registry.npmjs.org/@size-limit/file/-/file-8.2.6.tgz", - "integrity": "sha512-B7ayjxiJsbtXdIIWazJkB5gezi5WBMecdHTFPMDhI3NwEML1RVvUjAkrb1mPAAkIpt2LVHPnhdCUHjqDdjugwg==", "dev": true, + "license": "MIT", "dependencies": { "semver": "7.5.3" }, @@ -3887,9 +3790,8 @@ }, "node_modules/@size-limit/preset-big-lib/node_modules/@size-limit/time": { "version": "8.2.6", - "resolved": "https://registry.npmjs.org/@size-limit/time/-/time-8.2.6.tgz", - "integrity": "sha512-fUEPvz7Uq6+oUQxSYbNlJt3tTgQBl1VY21USi/B7ebdnVKLnUx1JyPI9v7imN6XEkB2VpJtnYgjFeLgNrirzMA==", "dev": true, + "license": "MIT", "dependencies": { "estimo": "^2.3.6", "react": "^17.0.2" @@ -3903,9 +3805,8 @@ }, "node_modules/@size-limit/preset-big-lib/node_modules/@size-limit/webpack": { "version": "8.2.6", - "resolved": "https://registry.npmjs.org/@size-limit/webpack/-/webpack-8.2.6.tgz", - "integrity": "sha512-y2sB66m5sJxIjZ8SEAzpWbiw3/+bnQHDHfk9cSbV5ChKklq02AlYg8BS5KxGWmMpdyUo4TzpjSCP9oEudY+hxQ==", "dev": true, + "license": "MIT", "dependencies": { "nanoid": "^3.3.6", "webpack": "^5.88.0" @@ -3917,11 +3818,24 @@ "size-limit": "8.2.6" } }, + "node_modules/@size-limit/preset-big-lib/node_modules/semver": { + "version": "7.5.3", + "dev": true, + "license": "ISC", + "dependencies": { + "lru-cache": "^6.0.0" + }, + "bin": { + "semver": "bin/semver.js" + }, + "engines": { + "node": ">=10" + } + }, "node_modules/@size-limit/preset-big-lib/node_modules/size-limit": { "version": "8.2.6", - "resolved": "https://registry.npmjs.org/size-limit/-/size-limit-8.2.6.tgz", - "integrity": "sha512-zpznim/tX/NegjoQuRKgWTF4XiB0cn2qt90uJzxYNTFAqexk4b94DOAkBD3TwhC6c3kw2r0KcnA5upziVMZqDg==", "dev": true, + "license": "MIT", "dependencies": { "bytes-iec": "^3.1.1", "chokidar": "^3.5.3", @@ -3952,11 +3866,6 @@ "node": ">=10" } }, - "node_modules/@tootallnate/quickjs-emscripten": { - "version": "0.23.0", - "dev": true, - "license": "MIT" - }, "node_modules/@tsconfig/node10": { "version": "1.0.9", "license": "MIT" @@ -4278,20 +4187,6 @@ } } }, - "node_modules/@typescript-eslint/eslint-plugin/node_modules/semver": { - "version": "7.5.4", - "dev": true, - "license": "ISC", - "dependencies": { - "lru-cache": "^6.0.0" - }, - "bin": { - "semver": "bin/semver.js" - }, - "engines": { - "node": ">=10" - } - }, "node_modules/@typescript-eslint/experimental-utils": { "version": "5.62.0", "license": "MIT", @@ -4524,20 +4419,6 @@ } } }, - "node_modules/@typescript-eslint/typescript-estree/node_modules/semver": { - "version": "7.5.4", - "dev": true, - "license": "ISC", - "dependencies": { - "lru-cache": "^6.0.0" - }, - "bin": { - "semver": "bin/semver.js" - }, - "engines": { - "node": ">=10" - } - }, "node_modules/@typescript-eslint/utils": { "version": "6.7.2", "dev": true, @@ -4562,20 +4443,6 @@ "eslint": "^7.0.0 || ^8.0.0" } }, - "node_modules/@typescript-eslint/utils/node_modules/semver": { - "version": "7.5.4", - "dev": true, - "license": "ISC", - "dependencies": { - "lru-cache": "^6.0.0" - }, - "bin": { - "semver": "bin/semver.js" - }, - "engines": { - "node": ">=10" - } - }, "node_modules/@typescript-eslint/visitor-keys": { "version": "6.7.2", "dev": true, @@ -5642,9 +5509,8 @@ }, "node_modules/agent-base": { "version": "6.0.2", - "resolved": "https://registry.npmjs.org/agent-base/-/agent-base-6.0.2.tgz", - "integrity": "sha512-RZNwNclF7+MS/8bDg70amg32dyeZGZxiDuQmZxKLAlQjr3jGyLx+4Kkk58UO7D2QdgFIQCovuSuZESne6RG6XQ==", "dev": true, + "license": "MIT", "dependencies": { "debug": "4" }, @@ -6054,17 +5920,6 @@ "node": "*" } }, - "node_modules/ast-types": { - "version": "0.13.4", - "dev": true, - "license": "MIT", - "dependencies": { - "tslib": "^2.0.1" - }, - "engines": { - "node": ">=4" - } - }, "node_modules/async": { "version": "3.2.4", "license": "MIT" @@ -6086,11 +5941,6 @@ "url": "https://github.com/sponsors/ljharb" } }, - "node_modules/b4a": { - "version": "1.6.4", - "dev": true, - "license": "ISC" - }, "node_modules/babel-plugin-polyfill-corejs2": { "version": "0.4.5", "license": "MIT", @@ -6165,14 +6015,6 @@ "node": "^4.5.0 || >= 5.9" } }, - "node_modules/basic-ftp": { - "version": "5.0.3", - "dev": true, - "license": "MIT", - "engines": { - "node": ">=10.0.0" - } - }, "node_modules/bcrypt-pbkdf": { "version": "1.0.2", "license": "BSD-3-Clause", @@ -6340,7 +6182,7 @@ "license": "ISC" }, "node_modules/browserslist": { - "version": "4.21.10", + "version": "4.21.11", "funding": [ { "type": "opencollective", @@ -6357,10 +6199,10 @@ ], "license": "MIT", "dependencies": { - "caniuse-lite": "^1.0.30001517", - "electron-to-chromium": "^1.4.477", + "caniuse-lite": "^1.0.30001538", + "electron-to-chromium": "^1.4.526", "node-releases": "^2.0.13", - "update-browserslist-db": "^1.0.11" + "update-browserslist-db": "^1.0.13" }, "bin": { "browserslist": "cli.js" @@ -6802,21 +6644,18 @@ "node": ">=6.0" } }, - "node_modules/chromium-bidi": { - "version": "0.4.27", - "dev": true, - "license": "Apache-2.0", - "dependencies": { - "mitt": "3.0.1", - "urlpattern-polyfill": "9.0.0" - }, - "peerDependencies": { - "devtools-protocol": "*" - } - }, "node_modules/ci-info": { - "version": "2.0.0", - "license": "MIT" + "version": "3.8.0", + "funding": [ + { + "type": "github", + "url": "https://github.com/sponsors/sibiraj-s" + } + ], + "license": "MIT", + "engines": { + "node": ">=8" + } }, "node_modules/clean-stack": { "version": "2.2.0", @@ -7578,18 +7417,16 @@ }, "node_modules/cross-fetch": { "version": "3.1.5", - "resolved": "https://registry.npmjs.org/cross-fetch/-/cross-fetch-3.1.5.tgz", - "integrity": "sha512-lvb1SBsI0Z7GDwmuid+mU3kWVBwTVUbe7S0H52yaaAdQOXq2YktTCZdlAcNKFzE6QtRz0snpw9bNiPeOIkkQvw==", "dev": true, + "license": "MIT", "dependencies": { "node-fetch": "2.6.7" } }, "node_modules/cross-fetch/node_modules/node-fetch": { "version": "2.6.7", - "resolved": "https://registry.npmjs.org/node-fetch/-/node-fetch-2.6.7.tgz", - "integrity": "sha512-ZjMPFEfVx5j+y2yF35Kzx5sF7kDzxuDj6ziH4FFbOp87zKDZNx8yExJIb05OGF4Nlt9IHFIMBkRl41VdvcNdbQ==", "dev": true, + "license": "MIT", "dependencies": { "whatwg-url": "^5.0.0" }, @@ -7869,20 +7706,6 @@ "node": ">=16" } }, - "node_modules/cspell/node_modules/semver": { - "version": "7.5.4", - "dev": true, - "license": "ISC", - "dependencies": { - "lru-cache": "^6.0.0" - }, - "bin": { - "semver": "bin/semver.js" - }, - "engines": { - "node": ">=10" - } - }, "node_modules/custom-event": { "version": "1.0.1", "dev": true, @@ -7894,14 +7717,6 @@ "node": ">=0.4.0" } }, - "node_modules/data-uri-to-buffer": { - "version": "5.0.1", - "dev": true, - "license": "MIT", - "engines": { - "node": ">= 14" - } - }, "node_modules/datastore-core": { "version": "9.2.3", "license": "Apache-2.0 OR MIT", @@ -8171,39 +7986,6 @@ "url": "https://github.com/sponsors/ljharb" } }, - "node_modules/degenerator": { - "version": "5.0.1", - "dev": true, - "license": "MIT", - "dependencies": { - "ast-types": "^0.13.4", - "escodegen": "^2.1.0", - "esprima": "^4.0.1" - }, - "engines": { - "node": ">= 14" - } - }, - "node_modules/degenerator/node_modules/escodegen": { - "version": "2.1.0", - "dev": true, - "license": "BSD-2-Clause", - "dependencies": { - "esprima": "^4.0.1", - "estraverse": "^5.2.0", - "esutils": "^2.0.2" - }, - "bin": { - "escodegen": "bin/escodegen.js", - "esgenerate": "bin/esgenerate.js" - }, - "engines": { - "node": ">=6.0" - }, - "optionalDependencies": { - "source-map": "~0.6.1" - } - }, "node_modules/del": { "version": "6.1.1", "license": "MIT", @@ -8635,6 +8417,14 @@ "url": "https://github.com/sponsors/sindresorhus" } }, + "node_modules/dotenv": { + "version": "8.6.0", + "dev": true, + "license": "BSD-2-Clause", + "engines": { + "node": ">=10" + } + }, "node_modules/dotenv-flow": { "version": "3.3.0", "dev": true, @@ -8646,14 +8436,6 @@ "node": ">= 8.0.0" } }, - "node_modules/dotenv-flow/node_modules/dotenv": { - "version": "8.6.0", - "dev": true, - "license": "BSD-2-Clause", - "engines": { - "node": ">=10" - } - }, "node_modules/duplexer2": { "version": "0.1.4", "license": "BSD-3-Clause", @@ -9043,7 +8825,7 @@ } }, "node_modules/electron-to-chromium": { - "version": "1.4.526", + "version": "1.4.527", "license": "ISC" }, "node_modules/electron-window": { @@ -9946,20 +9728,6 @@ } } }, - "node_modules/eslint-plugin-functional/node_modules/semver": { - "version": "7.5.4", - "dev": true, - "license": "ISC", - "dependencies": { - "lru-cache": "^6.0.0" - }, - "bin": { - "semver": "bin/semver.js" - }, - "engines": { - "node": ">=10" - } - }, "node_modules/eslint-plugin-import": { "version": "2.28.1", "license": "MIT", @@ -10034,19 +9802,6 @@ "eslint": "^7.0.0 || ^8.0.0" } }, - "node_modules/eslint-plugin-jsdoc/node_modules/semver": { - "version": "7.5.4", - "license": "ISC", - "dependencies": { - "lru-cache": "^6.0.0" - }, - "bin": { - "semver": "bin/semver.js" - }, - "engines": { - "node": ">=10" - } - }, "node_modules/eslint-plugin-n": { "version": "16.1.0", "license": "MIT", @@ -10312,9 +10067,8 @@ }, "node_modules/estimo": { "version": "2.3.6", - "resolved": "https://registry.npmjs.org/estimo/-/estimo-2.3.6.tgz", - "integrity": "sha512-aPd3VTQAL1TyDyhFfn6fqBTJ9WvbRZVN4Z29Buk6+P6xsI0DuF5Mh3dGv6kYCUxWnZkB4Jt3aYglUxOtuwtxoA==", "dev": true, + "license": "MIT", "dependencies": { "@sitespeed.io/tracium": "^0.3.3", "commander": "^9.1.0", @@ -10331,9 +10085,8 @@ }, "node_modules/estimo/node_modules/commander": { "version": "9.5.0", - "resolved": "https://registry.npmjs.org/commander/-/commander-9.5.0.tgz", - "integrity": "sha512-KRs7WVDKg86PWiuAqhDrAQnTXZKraVcCc6vFdL14qrZ/DcWwuRo7VoiYXalXO7S5GKpqYiVEwCbgFDfxNHKJBQ==", "dev": true, + "license": "MIT", "engines": { "node": "^12.20.0 || >=14" } @@ -10481,11 +10234,6 @@ "node": ">=6.0.0" } }, - "node_modules/fast-fifo": { - "version": "1.3.2", - "dev": true, - "license": "MIT" - }, "node_modules/fast-glob": { "version": "3.3.1", "license": "MIT", @@ -10671,9 +10419,8 @@ }, "node_modules/find-chrome-bin": { "version": "0.1.0", - "resolved": "https://registry.npmjs.org/find-chrome-bin/-/find-chrome-bin-0.1.0.tgz", - "integrity": "sha512-XoFZwaEn1R3pE6zNG8kH64l2e093hgB9+78eEKPmJK0o1EXEou+25cEWdtu2qq4DBQPDSe90VJAWVI2Sz9pX6Q==", "dev": true, + "license": "MIT", "engines": { "node": "^12.0.0 || ^14.0.0 || >=16.0.0" } @@ -11001,7 +10748,7 @@ } }, "node_modules/get-tsconfig": { - "version": "4.7.0", + "version": "4.7.2", "license": "MIT", "peer": true, "dependencies": { @@ -11011,20 +10758,6 @@ "url": "https://github.com/privatenumber/get-tsconfig?sponsor=1" } }, - "node_modules/get-uri": { - "version": "6.0.1", - "dev": true, - "license": "MIT", - "dependencies": { - "basic-ftp": "^5.0.2", - "data-uri-to-buffer": "^5.0.1", - "debug": "^4.3.4", - "fs-extra": "^8.1.0" - }, - "engines": { - "node": ">= 14" - } - }, "node_modules/gh-pages": { "version": "5.0.0", "dev": true, @@ -11617,9 +11350,8 @@ }, "node_modules/https-proxy-agent": { "version": "5.0.1", - "resolved": "https://registry.npmjs.org/https-proxy-agent/-/https-proxy-agent-5.0.1.tgz", - "integrity": "sha512-dFcAjpTQFgoLMzC2VwU+C/CbS7uRL0lWmxDITmqm7C+7F0Odmj6s9l6alZc6AELXhrnggM2CeWSXHGOdX2YtwA==", "dev": true, + "license": "MIT", "dependencies": { "agent-base": "6", "debug": "4" @@ -11834,11 +11566,6 @@ "url": "https://github.com/sponsors/sindresorhus" } }, - "node_modules/ip": { - "version": "1.1.8", - "dev": true, - "license": "MIT" - }, "node_modules/ip-regex": { "version": "5.0.0", "license": "MIT", @@ -11951,10 +11678,10 @@ } }, "node_modules/is-ci": { - "version": "2.0.0", + "version": "3.0.1", "license": "MIT", "dependencies": { - "ci-info": "^2.0.0" + "ci-info": "^3.2.0" }, "bin": { "is-ci": "bin.js" @@ -13028,6 +12755,15 @@ "which": "bin/which" } }, + "node_modules/karma-firefox-launcher": { + "version": "2.1.2", + "dev": true, + "license": "MIT", + "dependencies": { + "is-wsl": "^2.2.0", + "which": "^2.0.1" + } + }, "node_modules/karma-mocha": { "version": "2.0.1", "dev": true, @@ -13036,6 +12772,20 @@ "minimist": "^1.2.3" } }, + "node_modules/karma-webkit-launcher": { + "version": "2.1.0", + "dev": true, + "license": "Apache-2.0", + "dependencies": { + "is-ci": "^3.0.1", + "uuid": "^9.0.0" + }, + "peerDependenciesMeta": { + "playwright": { + "optional": true + } + } + }, "node_modules/karma-webpack": { "version": "5.0.0", "dev": true, @@ -13373,9 +13123,8 @@ }, "node_modules/lint-staged": { "version": "14.0.1", - "resolved": "https://registry.npmjs.org/lint-staged/-/lint-staged-14.0.1.tgz", - "integrity": "sha512-Mw0cL6HXnHN1ag0mN/Dg4g6sr8uf8sn98w2Oc1ECtFto9tvRF7nkXGJRbx8gPlHyoR0pLyBr2lQHbWwmUHe1Sw==", "dev": true, + "license": "MIT", "dependencies": { "chalk": "5.3.0", "commander": "11.0.0", @@ -13982,9 +13731,8 @@ }, "node_modules/loose-envify": { "version": "1.4.0", - "resolved": "https://registry.npmjs.org/loose-envify/-/loose-envify-1.4.0.tgz", - "integrity": "sha512-lyuxPGr/Wfhrlem2CL/UcnUc1zcqKAImBDzukY7Y5F/yQiNdko6+fRLevlw1HgMySw7f611UIY408EtxRSoK3Q==", "dev": true, + "license": "MIT", "dependencies": { "js-tokens": "^3.0.0 || ^4.0.0" }, @@ -15238,11 +14986,6 @@ "node": ">=8" } }, - "node_modules/mitt": { - "version": "3.0.1", - "dev": true, - "license": "MIT" - }, "node_modules/mkdirp": { "version": "0.5.6", "license": "MIT", @@ -19899,60 +19642,6 @@ "url": "https://github.com/sponsors/sindresorhus" } }, - "node_modules/pac-proxy-agent": { - "version": "7.0.1", - "dev": true, - "license": "MIT", - "dependencies": { - "@tootallnate/quickjs-emscripten": "^0.23.0", - "agent-base": "^7.0.2", - "debug": "^4.3.4", - "get-uri": "^6.0.1", - "http-proxy-agent": "^7.0.0", - "https-proxy-agent": "^7.0.2", - "pac-resolver": "^7.0.0", - "socks-proxy-agent": "^8.0.2" - }, - "engines": { - "node": ">= 14" - } - }, - "node_modules/pac-proxy-agent/node_modules/agent-base": { - "version": "7.1.0", - "dev": true, - "license": "MIT", - "dependencies": { - "debug": "^4.3.4" - }, - "engines": { - "node": ">= 14" - } - }, - "node_modules/pac-proxy-agent/node_modules/https-proxy-agent": { - "version": "7.0.2", - "dev": true, - "license": "MIT", - "dependencies": { - "agent-base": "^7.0.2", - "debug": "4" - }, - "engines": { - "node": ">= 14" - } - }, - "node_modules/pac-resolver": { - "version": "7.0.0", - "dev": true, - "license": "MIT", - "dependencies": { - "degenerator": "^5.0.0", - "ip": "^1.1.8", - "netmask": "^2.0.2" - }, - "engines": { - "node": ">= 14" - } - }, "node_modules/package-hash": { "version": "4.0.0", "license": "ISC", @@ -20218,6 +19907,10 @@ "url": "https://github.com/chalk/chalk?sponsor=1" } }, + "node_modules/patch-package/node_modules/ci-info": { + "version": "2.0.0", + "license": "MIT" + }, "node_modules/patch-package/node_modules/color-convert": { "version": "2.0.1", "license": "MIT", @@ -20277,6 +19970,16 @@ "url": "https://github.com/sponsors/isaacs" } }, + "node_modules/patch-package/node_modules/is-ci": { + "version": "2.0.0", + "license": "MIT", + "dependencies": { + "ci-info": "^2.0.0" + }, + "bin": { + "is-ci": "bin.js" + } + }, "node_modules/patch-package/node_modules/is-docker": { "version": "2.2.1", "license": "MIT", @@ -20742,11 +20445,11 @@ "license": "MIT" }, "node_modules/playwright": { - "version": "1.38.0", + "version": "1.38.1", "dev": true, "license": "Apache-2.0", "dependencies": { - "playwright-core": "1.38.0" + "playwright-core": "1.38.1" }, "bin": { "playwright": "cli.js" @@ -20759,7 +20462,8 @@ } }, "node_modules/playwright-core": { - "version": "1.38.0", + "version": "1.38.1", + "dev": true, "license": "Apache-2.0", "bin": { "playwright-core": "cli.js" @@ -20917,6 +20621,16 @@ "node": "^18 || >=20" } }, + "node_modules/playwright-test/node_modules/playwright-core": { + "version": "1.38.0", + "license": "Apache-2.0", + "bin": { + "playwright-core": "cli.js" + }, + "engines": { + "node": ">=16" + } + }, "node_modules/playwright-test/node_modules/signal-exit": { "version": "4.1.0", "license": "ISC", @@ -21301,55 +21015,6 @@ "url": "https://github.com/sponsors/sindresorhus" } }, - "node_modules/proxy-agent": { - "version": "6.3.1", - "dev": true, - "license": "MIT", - "dependencies": { - "agent-base": "^7.0.2", - "debug": "^4.3.4", - "http-proxy-agent": "^7.0.0", - "https-proxy-agent": "^7.0.2", - "lru-cache": "^7.14.1", - "pac-proxy-agent": "^7.0.1", - "proxy-from-env": "^1.1.0", - "socks-proxy-agent": "^8.0.2" - }, - "engines": { - "node": ">= 14" - } - }, - "node_modules/proxy-agent/node_modules/agent-base": { - "version": "7.1.0", - "dev": true, - "license": "MIT", - "dependencies": { - "debug": "^4.3.4" - }, - "engines": { - "node": ">= 14" - } - }, - "node_modules/proxy-agent/node_modules/https-proxy-agent": { - "version": "7.0.2", - "dev": true, - "license": "MIT", - "dependencies": { - "agent-base": "^7.0.2", - "debug": "4" - }, - "engines": { - "node": ">= 14" - } - }, - "node_modules/proxy-agent/node_modules/lru-cache": { - "version": "7.18.3", - "dev": true, - "license": "ISC", - "engines": { - "node": ">=12" - } - }, "node_modules/proxy-from-env": { "version": "1.1.0", "dev": true, @@ -21387,25 +21052,10 @@ "url": "https://github.com/sponsors/sindresorhus" } }, - "node_modules/puppeteer": { - "version": "21.3.1", - "dev": true, - "hasInstallScript": true, - "license": "Apache-2.0", - "dependencies": { - "@puppeteer/browsers": "1.7.1", - "cosmiconfig": "8.3.6", - "puppeteer-core": "21.3.1" - }, - "engines": { - "node": ">=16.3.0" - } - }, "node_modules/puppeteer-core": { "version": "13.7.0", - "resolved": "https://registry.npmjs.org/puppeteer-core/-/puppeteer-core-13.7.0.tgz", - "integrity": "sha512-rXja4vcnAzFAP1OVLq/5dWNfwBGuzcOARJ6qGV7oAZhnLmVRU8G5MsdeQEAOy332ZhkIOnn9jp15R89LKHyp2Q==", "dev": true, + "license": "Apache-2.0", "dependencies": { "cross-fetch": "3.1.5", "debug": "4.3.4", @@ -21424,80 +21074,6 @@ "node": ">=10.18.1" } }, - "node_modules/puppeteer/node_modules/cosmiconfig": { - "version": "8.3.6", - "dev": true, - "license": "MIT", - "dependencies": { - "import-fresh": "^3.3.0", - "js-yaml": "^4.1.0", - "parse-json": "^5.2.0", - "path-type": "^4.0.0" - }, - "engines": { - "node": ">=14" - }, - "funding": { - "url": "https://github.com/sponsors/d-fischer" - }, - "peerDependencies": { - "typescript": ">=4.9.5" - }, - "peerDependenciesMeta": { - "typescript": { - "optional": true - } - } - }, - "node_modules/puppeteer/node_modules/cross-fetch": { - "version": "4.0.0", - "dev": true, - "license": "MIT", - "dependencies": { - "node-fetch": "^2.6.12" - } - }, - "node_modules/puppeteer/node_modules/devtools-protocol": { - "version": "0.0.1179426", - "dev": true, - "license": "BSD-3-Clause" - }, - "node_modules/puppeteer/node_modules/puppeteer-core": { - "version": "21.3.1", - "dev": true, - "license": "Apache-2.0", - "dependencies": { - "@puppeteer/browsers": "1.7.1", - "chromium-bidi": "0.4.27", - "cross-fetch": "4.0.0", - "debug": "4.3.4", - "devtools-protocol": "0.0.1179426", - "ws": "8.14.1" - }, - "engines": { - "node": ">=16.3.0" - } - }, - "node_modules/puppeteer/node_modules/ws": { - "version": "8.14.1", - "dev": true, - "license": "MIT", - "engines": { - "node": ">=10.0.0" - }, - "peerDependencies": { - "bufferutil": "^4.0.1", - "utf-8-validate": ">=5.0.2" - }, - "peerDependenciesMeta": { - "bufferutil": { - "optional": true - }, - "utf-8-validate": { - "optional": true - } - } - }, "node_modules/pure-rand": { "version": "6.0.3", "funding": [ @@ -21552,11 +21128,6 @@ ], "license": "MIT" }, - "node_modules/queue-tick": { - "version": "1.0.1", - "dev": true, - "license": "MIT" - }, "node_modules/quick-lru": { "version": "5.1.1", "license": "MIT", @@ -21630,9 +21201,8 @@ }, "node_modules/react": { "version": "17.0.2", - "resolved": "https://registry.npmjs.org/react/-/react-17.0.2.tgz", - "integrity": "sha512-gnhPt75i/dq/z3/6q/0asP78D0u592D5L1pd7M8P+dck6Fu/jJeL6iVVK23fptSUZj8Vjf++7wXA8UNclGQcbA==", "dev": true, + "license": "MIT", "dependencies": { "loose-envify": "^1.1.0", "object-assign": "^4.1.1" @@ -21713,6 +21283,10 @@ "url": "https://github.com/chalk/chalk?sponsor=1" } }, + "node_modules/react-native-test-runner/node_modules/ci-info": { + "version": "2.0.0", + "license": "MIT" + }, "node_modules/react-native-test-runner/node_modules/cli-cursor": { "version": "3.1.0", "license": "MIT", @@ -21798,6 +21372,16 @@ "node": ">=8.12.0" } }, + "node_modules/react-native-test-runner/node_modules/is-ci": { + "version": "2.0.0", + "license": "MIT", + "dependencies": { + "ci-info": "^2.0.0" + }, + "bin": { + "is-ci": "bin.js" + } + }, "node_modules/react-native-test-runner/node_modules/is-interactive": { "version": "1.0.0", "license": "MIT", @@ -23275,7 +22859,7 @@ } }, "node_modules/semver": { - "version": "7.5.3", + "version": "7.5.4", "license": "ISC", "dependencies": { "lru-cache": "^6.0.0" @@ -23708,9 +23292,8 @@ }, "node_modules/size-limit": { "version": "9.0.0", - "resolved": "https://registry.npmjs.org/size-limit/-/size-limit-9.0.0.tgz", - "integrity": "sha512-DrA7o2DeRN3s+vwCA9nn7Ck9Y4pn9t0GNUwQRpKqBtBmNkl6LA2s/NlNCdtKHrEkRTeYA1ZQ65mnYveo9rUqgA==", "dev": true, + "license": "MIT", "dependencies": { "bytes-iec": "^3.1.1", "chokidar": "^3.5.3", @@ -23759,15 +23342,6 @@ "url": "https://github.com/chalk/ansi-styles?sponsor=1" } }, - "node_modules/smart-buffer": { - "version": "4.2.0", - "dev": true, - "license": "MIT", - "engines": { - "node": ">= 6.0.0", - "npm": ">= 3.0.0" - } - }, "node_modules/socket.io": { "version": "4.7.2", "dev": true, @@ -23825,48 +23399,6 @@ "node": ">=10.0.0" } }, - "node_modules/socks": { - "version": "2.7.1", - "dev": true, - "license": "MIT", - "dependencies": { - "ip": "^2.0.0", - "smart-buffer": "^4.2.0" - }, - "engines": { - "node": ">= 10.13.0", - "npm": ">= 3.0.0" - } - }, - "node_modules/socks-proxy-agent": { - "version": "8.0.2", - "dev": true, - "license": "MIT", - "dependencies": { - "agent-base": "^7.0.2", - "debug": "^4.3.4", - "socks": "^2.7.1" - }, - "engines": { - "node": ">= 14" - } - }, - "node_modules/socks-proxy-agent/node_modules/agent-base": { - "version": "7.1.0", - "dev": true, - "license": "MIT", - "dependencies": { - "debug": "^4.3.4" - }, - "engines": { - "node": ">= 14" - } - }, - "node_modules/socks/node_modules/ip": { - "version": "2.0.0", - "dev": true, - "license": "MIT" - }, "node_modules/source-map": { "version": "0.6.1", "license": "BSD-3-Clause", @@ -24095,15 +23627,6 @@ "node": ">=10.0.0" } }, - "node_modules/streamx": { - "version": "2.15.1", - "dev": true, - "license": "MIT", - "dependencies": { - "fast-fifo": "^1.1.0", - "queue-tick": "^1.0.1" - } - }, "node_modules/string_decoder": { "version": "1.3.0", "license": "MIT", @@ -24415,9 +23938,8 @@ }, "node_modules/tar-fs": { "version": "2.1.1", - "resolved": "https://registry.npmjs.org/tar-fs/-/tar-fs-2.1.1.tgz", - "integrity": "sha512-V0r2Y9scmbDRLCNex/+hYzvp/zyYjvFbHPNgVTKfQvVrb6guiE/fxP+XblDNR011utopbkex2nM4dHNV6GDsng==", "dev": true, + "license": "MIT", "dependencies": { "chownr": "^1.1.1", "mkdirp-classic": "^0.5.2", @@ -25521,7 +25043,7 @@ } }, "node_modules/update-browserslist-db": { - "version": "1.0.12", + "version": "1.0.13", "funding": [ { "type": "opencollective", @@ -25592,29 +25114,6 @@ "url": "https://github.com/yeoman/update-notifier?sponsor=1" } }, - "node_modules/update-notifier/node_modules/ci-info": { - "version": "3.8.0", - "funding": [ - { - "type": "github", - "url": "https://github.com/sponsors/sibiraj-s" - } - ], - "license": "MIT", - "engines": { - "node": ">=8" - } - }, - "node_modules/update-notifier/node_modules/is-ci": { - "version": "3.0.1", - "license": "MIT", - "dependencies": { - "ci-info": "^3.2.0" - }, - "bin": { - "is-ci": "bin.js" - } - }, "node_modules/uri-js": { "version": "4.4.1", "license": "BSD-2-Clause", @@ -25629,11 +25128,6 @@ "node": "^12.20.0 || ^14.13.1 || >=16.0.0" } }, - "node_modules/urlpattern-polyfill": { - "version": "9.0.0", - "dev": true, - "license": "MIT" - }, "node_modules/utf8-byte-length": { "version": "1.0.4", "license": "WTFPL" @@ -26363,14 +25857,9 @@ "fast-check": "^3.12.0", "ignore-loader": "^0.1.2", "isomorphic-fetch": "^3.0.0", - "karma": "^6.4.2", - "karma-chrome-launcher": "^3.2.0", - "karma-mocha": "^2.0.1", - "karma-webpack": "^5.0.0", "mocha": "^10.2.0", "npm-run-all": "^4.1.5", "process": "^0.11.10", - "puppeteer": "^21.1.1", "rollup": "^3.29.2" }, "engines": { @@ -26410,10 +25899,6 @@ "@waku/interfaces": "0.0.18", "chai": "^4.3.7", "cspell": "^7.3.2", - "karma": "^6.4.2", - "karma-chrome-launcher": "^3.2.0", - "karma-mocha": "^2.0.1", - "karma-webpack": "^5.0.0", "mocha": "^10.2.0", "npm-run-all": "^4.1.5", "rollup": "^3.29.2" @@ -26447,14 +25932,9 @@ "@waku/interfaces": "0.0.18", "chai": "^4.3.7", "cspell": "^7.3.2", - "karma": "^6.4.2", - "karma-chrome-launcher": "^3.2.0", - "karma-mocha": "^2.0.1", - "karma-webpack": "^5.0.0", "mocha": "^10.2.0", "npm-run-all": "^4.1.5", "process": "^0.11.10", - "puppeteer": "^21.1.1", "rollup": "^3.29.2", "uint8arrays": "^4.0.4" }, @@ -26500,14 +25980,9 @@ "chai": "^4.3.7", "cspell": "^7.3.2", "fast-check": "^3.12.0", - "karma": "^6.4.2", - "karma-chrome-launcher": "^3.2.0", - "karma-mocha": "^2.0.1", - "karma-webpack": "^5.0.0", "mocha": "^10.2.0", "npm-run-all": "^4.1.5", "process": "^0.11.10", - "puppeteer": "^21.1.1", "rollup": "^3.29.2" }, "engines": { @@ -26536,14 +26011,9 @@ "fast-check": "^3.12.0", "ignore-loader": "^0.1.2", "isomorphic-fetch": "^3.0.0", - "karma": "^6.4.2", - "karma-chrome-launcher": "^3.2.0", - "karma-mocha": "^2.0.1", - "karma-webpack": "^5.0.0", "mocha": "^10.2.0", "npm-run-all": "^4.1.5", "process": "^0.11.10", - "puppeteer": "^21.1.1", "rollup": "^3.29.2" }, "engines": { @@ -27658,7 +27128,7 @@ "dev": true }, "@cspell/dict-companies": { - "version": "3.0.23", + "version": "3.0.24", "dev": true }, "@cspell/dict-cpp": { @@ -27702,7 +27172,7 @@ "dev": true }, "@cspell/dict-en_us": { - "version": "4.3.7", + "version": "4.3.8", "dev": true }, "@cspell/dict-en-common-misspellings": { @@ -27746,7 +27216,7 @@ "dev": true }, "@cspell/dict-html": { - "version": "4.0.3", + "version": "4.0.4", "dev": true }, "@cspell/dict-html-symbol-entities": { @@ -27778,7 +27248,7 @@ "dev": true }, "@cspell/dict-npm": { - "version": "5.0.8", + "version": "5.0.9", "dev": true }, "@cspell/dict-php": { @@ -27817,7 +27287,7 @@ "dev": true }, "@cspell/dict-software-terms": { - "version": "3.2.5", + "version": "3.3.0", "dev": true }, "@cspell/dict-sql": { @@ -28610,10 +28080,10 @@ } }, "@playwright/test": { - "version": "1.38.0", + "version": "1.38.1", "dev": true, "requires": { - "playwright": "1.38.0" + "playwright": "1.38.1" } }, "@pnpm/config.env-replace": { @@ -28678,80 +28148,6 @@ "@protobufjs/utf8": { "version": "1.1.0" }, - "@puppeteer/browsers": { - "version": "1.7.1", - "dev": true, - "requires": { - "debug": "4.3.4", - "extract-zip": "2.0.1", - "progress": "2.0.3", - "proxy-agent": "6.3.1", - "tar-fs": "3.0.4", - "unbzip2-stream": "1.4.3", - "yargs": "17.7.1" - }, - "dependencies": { - "ansi-regex": { - "version": "5.0.1", - "dev": true - }, - "emoji-regex": { - "version": "8.0.0", - "dev": true - }, - "is-fullwidth-code-point": { - "version": "3.0.0", - "dev": true - }, - "string-width": { - "version": "4.2.3", - "dev": true, - "requires": { - "emoji-regex": "^8.0.0", - "is-fullwidth-code-point": "^3.0.0", - "strip-ansi": "^6.0.1" - } - }, - "strip-ansi": { - "version": "6.0.1", - "dev": true, - "requires": { - "ansi-regex": "^5.0.1" - } - }, - "tar-fs": { - "version": "3.0.4", - "dev": true, - "requires": { - "mkdirp-classic": "^0.5.2", - "pump": "^3.0.0", - "tar-stream": "^3.1.5" - } - }, - "tar-stream": { - "version": "3.1.6", - "dev": true, - "requires": { - "b4a": "^1.6.4", - "fast-fifo": "^1.2.0", - "streamx": "^2.15.0" - } - }, - "yargs": { - "version": "17.7.1", - "dev": true, - "requires": { - "cliui": "^8.0.1", - "escalade": "^3.1.1", - "get-caller-file": "^2.0.5", - "require-directory": "^2.1.1", - "string-width": "^4.2.3", - "y18n": "^5.0.5", - "yargs-parser": "^21.1.1" - } - } - } - }, "@rollup/plugin-commonjs": { "version": "25.0.4", "dev": true, @@ -29159,8 +28555,6 @@ }, "@sitespeed.io/tracium": { "version": "0.3.3", - "resolved": "https://registry.npmjs.org/@sitespeed.io/tracium/-/tracium-0.3.3.tgz", - "integrity": "sha512-dNZafjM93Y+F+sfwTO5gTpsGXlnc/0Q+c2+62ViqP3gkMWvHEMSKkaEHgVJLcLg3i/g19GSIPziiKpgyne07Bw==", "dev": true, "requires": { "debug": "^4.1.1" @@ -29178,8 +28572,6 @@ "dependencies": { "@size-limit/file": { "version": "8.2.6", - "resolved": "https://registry.npmjs.org/@size-limit/file/-/file-8.2.6.tgz", - "integrity": "sha512-B7ayjxiJsbtXdIIWazJkB5gezi5WBMecdHTFPMDhI3NwEML1RVvUjAkrb1mPAAkIpt2LVHPnhdCUHjqDdjugwg==", "dev": true, "requires": { "semver": "7.5.3" @@ -29187,8 +28579,6 @@ }, "@size-limit/time": { "version": "8.2.6", - "resolved": "https://registry.npmjs.org/@size-limit/time/-/time-8.2.6.tgz", - "integrity": "sha512-fUEPvz7Uq6+oUQxSYbNlJt3tTgQBl1VY21USi/B7ebdnVKLnUx1JyPI9v7imN6XEkB2VpJtnYgjFeLgNrirzMA==", "dev": true, "requires": { "estimo": "^2.3.6", @@ -29197,18 +28587,21 @@ }, "@size-limit/webpack": { "version": "8.2.6", - "resolved": "https://registry.npmjs.org/@size-limit/webpack/-/webpack-8.2.6.tgz", - "integrity": "sha512-y2sB66m5sJxIjZ8SEAzpWbiw3/+bnQHDHfk9cSbV5ChKklq02AlYg8BS5KxGWmMpdyUo4TzpjSCP9oEudY+hxQ==", "dev": true, "requires": { "nanoid": "^3.3.6", "webpack": "^5.88.0" } }, + "semver": { + "version": "7.5.3", + "dev": true, + "requires": { + "lru-cache": "^6.0.0" + } + }, "size-limit": { "version": "8.2.6", - "resolved": "https://registry.npmjs.org/size-limit/-/size-limit-8.2.6.tgz", - "integrity": "sha512-zpznim/tX/NegjoQuRKgWTF4XiB0cn2qt90uJzxYNTFAqexk4b94DOAkBD3TwhC6c3kw2r0KcnA5upziVMZqDg==", "dev": true, "requires": { "bytes-iec": "^3.1.1", @@ -29231,10 +28624,6 @@ "defer-to-connect": "^2.0.0" } }, - "@tootallnate/quickjs-emscripten": { - "version": "0.23.0", - "dev": true - }, "@tsconfig/node10": { "version": "1.0.9" }, @@ -29488,15 +28877,6 @@ "natural-compare": "^1.4.0", "semver": "^7.5.4", "ts-api-utils": "^1.0.1" - }, - "dependencies": { - "semver": { - "version": "7.5.4", - "dev": true, - "requires": { - "lru-cache": "^6.0.0" - } - } } }, "@typescript-eslint/experimental-utils": { @@ -29603,15 +28983,6 @@ "is-glob": "^4.0.3", "semver": "^7.5.4", "ts-api-utils": "^1.0.1" - }, - "dependencies": { - "semver": { - "version": "7.5.4", - "dev": true, - "requires": { - "lru-cache": "^6.0.0" - } - } } }, "@typescript-eslint/utils": { @@ -29625,15 +28996,6 @@ "@typescript-eslint/types": "6.7.2", "@typescript-eslint/typescript-estree": "6.7.2", "semver": "^7.5.4" - }, - "dependencies": { - "semver": { - "version": "7.5.4", - "dev": true, - "requires": { - "lru-cache": "^6.0.0" - } - } } }, "@typescript-eslint/visitor-keys": { @@ -29754,15 +29116,10 @@ "it-all": "^3.0.3", "it-length-prefixed": "^9.0.1", "it-pipe": "^3.0.1", - "karma": "^6.4.2", - "karma-chrome-launcher": "^3.2.0", - "karma-mocha": "^2.0.1", - "karma-webpack": "^5.0.0", "mocha": "^10.2.0", "npm-run-all": "^4.1.5", "p-event": "^5.0.1", "process": "^0.11.10", - "puppeteer": "^21.1.1", "rollup": "^3.29.2", "uint8arraylist": "^2.4.3", "uuid": "^9.0.0" @@ -29825,10 +29182,6 @@ "debug": "^4.3.4", "dns-query": "^0.11.2", "hi-base32": "^0.5.1", - "karma": "^6.4.2", - "karma-chrome-launcher": "^3.2.0", - "karma-mocha": "^2.0.1", - "karma-webpack": "^5.0.0", "mocha": "^10.2.0", "npm-run-all": "^4.1.5", "rollup": "^3.29.2", @@ -29856,14 +29209,9 @@ "cspell": "^7.3.2", "debug": "^4.3.4", "js-sha3": "^0.8.0", - "karma": "^6.4.2", - "karma-chrome-launcher": "^3.2.0", - "karma-mocha": "^2.0.1", - "karma-webpack": "^5.0.0", "mocha": "^10.2.0", "npm-run-all": "^4.1.5", "process": "^0.11.10", - "puppeteer": "^21.1.1", "rollup": "^3.29.2", "uint8arrays": "^4.0.4" } @@ -29897,14 +29245,9 @@ "debug": "^4.3.4", "fast-check": "^3.12.0", "js-sha3": "^0.8.0", - "karma": "^6.4.2", - "karma-chrome-launcher": "^3.2.0", - "karma-mocha": "^2.0.1", - "karma-webpack": "^5.0.0", "mocha": "^10.2.0", "npm-run-all": "^4.1.5", "process": "^0.11.10", - "puppeteer": "^21.1.1", "rollup": "^3.29.2" } }, @@ -29926,14 +29269,9 @@ "fast-check": "^3.12.0", "ignore-loader": "^0.1.2", "isomorphic-fetch": "^3.0.0", - "karma": "^6.4.2", - "karma-chrome-launcher": "^3.2.0", - "karma-mocha": "^2.0.1", - "karma-webpack": "^5.0.0", "mocha": "^10.2.0", "npm-run-all": "^4.1.5", "process": "^0.11.10", - "puppeteer": "^21.1.1", "rollup": "^3.29.2" } }, @@ -30613,8 +29951,6 @@ }, "agent-base": { "version": "6.0.2", - "resolved": "https://registry.npmjs.org/agent-base/-/agent-base-6.0.2.tgz", - "integrity": "sha512-RZNwNclF7+MS/8bDg70amg32dyeZGZxiDuQmZxKLAlQjr3jGyLx+4Kkk58UO7D2QdgFIQCovuSuZESne6RG6XQ==", "dev": true, "requires": { "debug": "4" @@ -30856,13 +30192,6 @@ "assertion-error": { "version": "1.1.0" }, - "ast-types": { - "version": "0.13.4", - "dev": true, - "requires": { - "tslib": "^2.0.1" - } - }, "async": { "version": "3.2.4" }, @@ -30872,10 +30201,6 @@ "available-typed-arrays": { "version": "1.0.5" }, - "b4a": { - "version": "1.6.4", - "dev": true - }, "babel-plugin-polyfill-corejs2": { "version": "0.4.5", "requires": { @@ -30915,10 +30240,6 @@ "version": "2.0.0", "dev": true }, - "basic-ftp": { - "version": "5.0.3", - "dev": true - }, "bcrypt-pbkdf": { "version": "1.0.2", "requires": { @@ -31037,12 +30358,12 @@ "version": "1.3.1" }, "browserslist": { - "version": "4.21.10", + "version": "4.21.11", "requires": { - "caniuse-lite": "^1.0.30001517", - "electron-to-chromium": "^1.4.477", + "caniuse-lite": "^1.0.30001538", + "electron-to-chromium": "^1.4.526", "node-releases": "^2.0.13", - "update-browserslist-db": "^1.0.11" + "update-browserslist-db": "^1.0.13" } }, "buffer": { @@ -31274,16 +30595,8 @@ "version": "1.0.3", "dev": true }, - "chromium-bidi": { - "version": "0.4.27", - "dev": true, - "requires": { - "mitt": "3.0.1", - "urlpattern-polyfill": "9.0.0" - } - }, "ci-info": { - "version": "2.0.0" + "version": "3.8.0" }, "clean-stack": { "version": "2.2.0" @@ -31749,8 +31062,6 @@ }, "cross-fetch": { "version": "3.1.5", - "resolved": "https://registry.npmjs.org/cross-fetch/-/cross-fetch-3.1.5.tgz", - "integrity": "sha512-lvb1SBsI0Z7GDwmuid+mU3kWVBwTVUbe7S0H52yaaAdQOXq2YktTCZdlAcNKFzE6QtRz0snpw9bNiPeOIkkQvw==", "dev": true, "requires": { "node-fetch": "2.6.7" @@ -31758,8 +31069,6 @@ "dependencies": { "node-fetch": { "version": "2.6.7", - "resolved": "https://registry.npmjs.org/node-fetch/-/node-fetch-2.6.7.tgz", - "integrity": "sha512-ZjMPFEfVx5j+y2yF35Kzx5sF7kDzxuDj6ziH4FFbOp87zKDZNx8yExJIb05OGF4Nlt9IHFIMBkRl41VdvcNdbQ==", "dev": true, "requires": { "whatwg-url": "^5.0.0" @@ -31808,15 +31117,6 @@ "semver": "^7.5.4", "strip-ansi": "^7.1.0", "vscode-uri": "^3.0.7" - }, - "dependencies": { - "semver": { - "version": "7.5.4", - "dev": true, - "requires": { - "lru-cache": "^6.0.0" - } - } } }, "cspell-dictionary": { @@ -31950,10 +31250,6 @@ "cycle": { "version": "1.0.3" }, - "data-uri-to-buffer": { - "version": "5.0.1", - "dev": true - }, "datastore-core": { "version": "9.2.3", "requires": { @@ -32104,27 +31400,6 @@ "object-keys": "^1.1.1" } }, - "degenerator": { - "version": "5.0.1", - "dev": true, - "requires": { - "ast-types": "^0.13.4", - "escodegen": "^2.1.0", - "esprima": "^4.0.1" - }, - "dependencies": { - "escodegen": { - "version": "2.1.0", - "dev": true, - "requires": { - "esprima": "^4.0.1", - "estraverse": "^5.2.0", - "esutils": "^2.0.2", - "source-map": "~0.6.1" - } - } - } - }, "del": { "version": "6.1.1", "requires": { @@ -32399,17 +31674,15 @@ "is-obj": "^2.0.0" } }, + "dotenv": { + "version": "8.6.0", + "dev": true + }, "dotenv-flow": { "version": "3.3.0", "dev": true, "requires": { "dotenv": "^8.6.0" - }, - "dependencies": { - "dotenv": { - "version": "8.6.0", - "dev": true - } } }, "duplexer2": { @@ -32659,7 +31932,7 @@ } }, "electron-to-chromium": { - "version": "1.4.526" + "version": "1.4.527" }, "electron-window": { "version": "0.8.1", @@ -33226,15 +32499,6 @@ "is-immutable-type": "^2.0.1", "semver": "^7.5.4", "ts-api-utils": "^1.0.1" - }, - "dependencies": { - "semver": { - "version": "7.5.4", - "dev": true, - "requires": { - "lru-cache": "^6.0.0" - } - } } }, "eslint-plugin-import": { @@ -33288,14 +32552,6 @@ "is-builtin-module": "^3.2.1", "semver": "^7.5.4", "spdx-expression-parse": "^3.0.1" - }, - "dependencies": { - "semver": { - "version": "7.5.4", - "requires": { - "lru-cache": "^6.0.0" - } - } } }, "eslint-plugin-n": { @@ -33390,8 +32646,6 @@ }, "estimo": { "version": "2.3.6", - "resolved": "https://registry.npmjs.org/estimo/-/estimo-2.3.6.tgz", - "integrity": "sha512-aPd3VTQAL1TyDyhFfn6fqBTJ9WvbRZVN4Z29Buk6+P6xsI0DuF5Mh3dGv6kYCUxWnZkB4Jt3aYglUxOtuwtxoA==", "dev": true, "requires": { "@sitespeed.io/tracium": "^0.3.3", @@ -33403,8 +32657,6 @@ "dependencies": { "commander": { "version": "9.5.0", - "resolved": "https://registry.npmjs.org/commander/-/commander-9.5.0.tgz", - "integrity": "sha512-KRs7WVDKg86PWiuAqhDrAQnTXZKraVcCc6vFdL14qrZ/DcWwuRo7VoiYXalXO7S5GKpqYiVEwCbgFDfxNHKJBQ==", "dev": true } } @@ -33488,10 +32740,6 @@ "version": "5.0.1", "dev": true }, - "fast-fifo": { - "version": "1.3.2", - "dev": true - }, "fast-glob": { "version": "3.3.1", "requires": { @@ -33623,8 +32871,6 @@ }, "find-chrome-bin": { "version": "0.1.0", - "resolved": "https://registry.npmjs.org/find-chrome-bin/-/find-chrome-bin-0.1.0.tgz", - "integrity": "sha512-XoFZwaEn1R3pE6zNG8kH64l2e093hgB9+78eEKPmJK0o1EXEou+25cEWdtu2qq4DBQPDSe90VJAWVI2Sz9pX6Q==", "dev": true }, "find-up": { @@ -33804,22 +33050,12 @@ } }, "get-tsconfig": { - "version": "4.7.0", + "version": "4.7.2", "peer": true, "requires": { "resolve-pkg-maps": "^1.0.0" } }, - "get-uri": { - "version": "6.0.1", - "dev": true, - "requires": { - "basic-ftp": "^5.0.2", - "data-uri-to-buffer": "^5.0.1", - "debug": "^4.3.4", - "fs-extra": "^8.1.0" - } - }, "gh-pages": { "version": "5.0.0", "dev": true, @@ -34189,8 +33425,6 @@ }, "https-proxy-agent": { "version": "5.0.1", - "resolved": "https://registry.npmjs.org/https-proxy-agent/-/https-proxy-agent-5.0.1.tgz", - "integrity": "sha512-dFcAjpTQFgoLMzC2VwU+C/CbS7uRL0lWmxDITmqm7C+7F0Odmj6s9l6alZc6AELXhrnggM2CeWSXHGOdX2YtwA==", "dev": true, "requires": { "agent-base": "6", @@ -34299,10 +33533,6 @@ "p-is-promise": "^3.0.0" } }, - "ip": { - "version": "1.1.8", - "dev": true - }, "ip-regex": { "version": "5.0.0" }, @@ -34359,9 +33589,9 @@ "version": "1.2.7" }, "is-ci": { - "version": "2.0.0", + "version": "3.0.1", "requires": { - "ci-info": "^2.0.0" + "ci-info": "^3.2.0" } }, "is-core-module": { @@ -35102,6 +34332,14 @@ } } }, + "karma-firefox-launcher": { + "version": "2.1.2", + "dev": true, + "requires": { + "is-wsl": "^2.2.0", + "which": "^2.0.1" + } + }, "karma-mocha": { "version": "2.0.1", "dev": true, @@ -35109,6 +34347,14 @@ "minimist": "^1.2.3" } }, + "karma-webkit-launcher": { + "version": "2.1.0", + "dev": true, + "requires": { + "is-ci": "^3.0.1", + "uuid": "^9.0.0" + } + }, "karma-webpack": { "version": "5.0.0", "dev": true, @@ -35250,8 +34496,6 @@ }, "lint-staged": { "version": "14.0.1", - "resolved": "https://registry.npmjs.org/lint-staged/-/lint-staged-14.0.1.tgz", - "integrity": "sha512-Mw0cL6HXnHN1ag0mN/Dg4g6sr8uf8sn98w2Oc1ECtFto9tvRF7nkXGJRbx8gPlHyoR0pLyBr2lQHbWwmUHe1Sw==", "dev": true, "requires": { "chalk": "5.3.0", @@ -35623,8 +34867,6 @@ }, "loose-envify": { "version": "1.4.0", - "resolved": "https://registry.npmjs.org/loose-envify/-/loose-envify-1.4.0.tgz", - "integrity": "sha512-lyuxPGr/Wfhrlem2CL/UcnUc1zcqKAImBDzukY7Y5F/yQiNdko6+fRLevlw1HgMySw7f611UIY408EtxRSoK3Q==", "dev": true, "requires": { "js-tokens": "^3.0.0 || ^4.0.0" @@ -36330,10 +35572,6 @@ "yallist": "^4.0.0" } }, - "mitt": { - "version": "3.0.1", - "dev": true - }, "mkdirp": { "version": "0.5.6", "requires": { @@ -39187,46 +38425,6 @@ "p-timeout": "^6.0.0" } }, - "pac-proxy-agent": { - "version": "7.0.1", - "dev": true, - "requires": { - "@tootallnate/quickjs-emscripten": "^0.23.0", - "agent-base": "^7.0.2", - "debug": "^4.3.4", - "get-uri": "^6.0.1", - "http-proxy-agent": "^7.0.0", - "https-proxy-agent": "^7.0.2", - "pac-resolver": "^7.0.0", - "socks-proxy-agent": "^8.0.2" - }, - "dependencies": { - "agent-base": { - "version": "7.1.0", - "dev": true, - "requires": { - "debug": "^4.3.4" - } - }, - "https-proxy-agent": { - "version": "7.0.2", - "dev": true, - "requires": { - "agent-base": "^7.0.2", - "debug": "4" - } - } - } - }, - "pac-resolver": { - "version": "7.0.0", - "dev": true, - "requires": { - "degenerator": "^5.0.0", - "ip": "^1.1.8", - "netmask": "^2.0.2" - } - }, "package-hash": { "version": "4.0.0", "requires": { @@ -39376,6 +38574,9 @@ "supports-color": "^7.1.0" } }, + "ci-info": { + "version": "2.0.0" + }, "color-convert": { "version": "2.0.1", "requires": { @@ -39415,6 +38616,12 @@ "path-is-absolute": "^1.0.0" } }, + "is-ci": { + "version": "2.0.0", + "requires": { + "ci-info": "^2.0.0" + } + }, "is-docker": { "version": "2.2.1" }, @@ -39677,11 +38884,11 @@ "version": "1.3.6" }, "playwright": { - "version": "1.38.0", + "version": "1.38.1", "dev": true, "requires": { "fsevents": "2.3.2", - "playwright-core": "1.38.0" + "playwright-core": "1.38.1" }, "dependencies": { "fsevents": { @@ -39692,7 +38899,8 @@ } }, "playwright-core": { - "version": "1.38.0" + "version": "1.38.1", + "dev": true }, "playwright-test": { "version": "12.3.4", @@ -39775,6 +38983,9 @@ "nanoid": { "version": "5.0.1" }, + "playwright-core": { + "version": "1.38.0" + }, "signal-exit": { "version": "4.1.0" }, @@ -40004,41 +39215,6 @@ "uint8arraylist": "^2.4.3" } }, - "proxy-agent": { - "version": "6.3.1", - "dev": true, - "requires": { - "agent-base": "^7.0.2", - "debug": "^4.3.4", - "http-proxy-agent": "^7.0.0", - "https-proxy-agent": "^7.0.2", - "lru-cache": "^7.14.1", - "pac-proxy-agent": "^7.0.1", - "proxy-from-env": "^1.1.0", - "socks-proxy-agent": "^8.0.2" - }, - "dependencies": { - "agent-base": { - "version": "7.1.0", - "dev": true, - "requires": { - "debug": "^4.3.4" - } - }, - "https-proxy-agent": { - "version": "7.0.2", - "dev": true, - "requires": { - "agent-base": "^7.0.2", - "debug": "4" - } - }, - "lru-cache": { - "version": "7.18.3", - "dev": true - } - } - }, "proxy-from-env": { "version": "1.1.0", "dev": true @@ -40062,59 +39238,8 @@ "escape-goat": "^4.0.0" } }, - "puppeteer": { - "version": "21.3.1", - "dev": true, - "requires": { - "@puppeteer/browsers": "1.7.1", - "cosmiconfig": "8.3.6", - "puppeteer-core": "21.3.1" - }, - "dependencies": { - "cosmiconfig": { - "version": "8.3.6", - "dev": true, - "requires": { - "import-fresh": "^3.3.0", - "js-yaml": "^4.1.0", - "parse-json": "^5.2.0", - "path-type": "^4.0.0" - } - }, - "cross-fetch": { - "version": "4.0.0", - "dev": true, - "requires": { - "node-fetch": "^2.6.12" - } - }, - "devtools-protocol": { - "version": "0.0.1179426", - "dev": true - }, - "puppeteer-core": { - "version": "21.3.1", - "dev": true, - "requires": { - "@puppeteer/browsers": "1.7.1", - "chromium-bidi": "0.4.27", - "cross-fetch": "4.0.0", - "debug": "4.3.4", - "devtools-protocol": "0.0.1179426", - "ws": "8.14.1" - } - }, - "ws": { - "version": "8.14.1", - "dev": true, - "requires": {} - } - } - }, "puppeteer-core": { "version": "13.7.0", - "resolved": "https://registry.npmjs.org/puppeteer-core/-/puppeteer-core-13.7.0.tgz", - "integrity": "sha512-rXja4vcnAzFAP1OVLq/5dWNfwBGuzcOARJ6qGV7oAZhnLmVRU8G5MsdeQEAOy332ZhkIOnn9jp15R89LKHyp2Q==", "dev": true, "requires": { "cross-fetch": "3.1.5", @@ -40148,10 +39273,6 @@ "queue-microtask": { "version": "1.2.3" }, - "queue-tick": { - "version": "1.0.1", - "dev": true - }, "quick-lru": { "version": "5.1.1" }, @@ -40200,8 +39321,6 @@ }, "react": { "version": "17.0.2", - "resolved": "https://registry.npmjs.org/react/-/react-17.0.2.tgz", - "integrity": "sha512-gnhPt75i/dq/z3/6q/0asP78D0u592D5L1pd7M8P+dck6Fu/jJeL6iVVK23fptSUZj8Vjf++7wXA8UNclGQcbA==", "dev": true, "requires": { "loose-envify": "^1.1.0", @@ -40254,6 +39373,9 @@ "supports-color": "^7.1.0" } }, + "ci-info": { + "version": "2.0.0" + }, "cli-cursor": { "version": "3.1.0", "requires": { @@ -40304,6 +39426,12 @@ "human-signals": { "version": "1.1.1" }, + "is-ci": { + "version": "2.0.0", + "requires": { + "ci-info": "^2.0.0" + } + }, "is-interactive": { "version": "1.0.0" }, @@ -41145,7 +40273,7 @@ "requires": {} }, "semver": { - "version": "7.5.3", + "version": "7.5.4", "requires": { "lru-cache": "^6.0.0" } @@ -41421,8 +40549,6 @@ }, "size-limit": { "version": "9.0.0", - "resolved": "https://registry.npmjs.org/size-limit/-/size-limit-9.0.0.tgz", - "integrity": "sha512-DrA7o2DeRN3s+vwCA9nn7Ck9Y4pn9t0GNUwQRpKqBtBmNkl6LA2s/NlNCdtKHrEkRTeYA1ZQ65mnYveo9rUqgA==", "dev": true, "requires": { "bytes-iec": "^3.1.1", @@ -41450,10 +40576,6 @@ } } }, - "smart-buffer": { - "version": "4.2.0", - "dev": true - }, "socket.io": { "version": "4.7.2", "dev": true, @@ -41489,38 +40611,6 @@ "debug": "~4.3.1" } }, - "socks": { - "version": "2.7.1", - "dev": true, - "requires": { - "ip": "^2.0.0", - "smart-buffer": "^4.2.0" - }, - "dependencies": { - "ip": { - "version": "2.0.0", - "dev": true - } - } - }, - "socks-proxy-agent": { - "version": "8.0.2", - "dev": true, - "requires": { - "agent-base": "^7.0.2", - "debug": "^4.3.4", - "socks": "^2.7.1" - }, - "dependencies": { - "agent-base": { - "version": "7.1.0", - "dev": true, - "requires": { - "debug": "^4.3.4" - } - } - } - }, "source-map": { "version": "0.6.1" }, @@ -41675,14 +40765,6 @@ "streamsearch": { "version": "1.1.0" }, - "streamx": { - "version": "2.15.1", - "dev": true, - "requires": { - "fast-fifo": "^1.1.0", - "queue-tick": "^1.0.1" - } - }, "string_decoder": { "version": "1.3.0", "requires": { @@ -41855,8 +40937,6 @@ }, "tar-fs": { "version": "2.1.1", - "resolved": "https://registry.npmjs.org/tar-fs/-/tar-fs-2.1.1.tgz", - "integrity": "sha512-V0r2Y9scmbDRLCNex/+hYzvp/zyYjvFbHPNgVTKfQvVrb6guiE/fxP+XblDNR011utopbkex2nM4dHNV6GDsng==", "dev": true, "requires": { "chownr": "^1.1.1", @@ -42504,7 +41584,7 @@ "dev": true }, "update-browserslist-db": { - "version": "1.0.12", + "version": "1.0.13", "requires": { "escalade": "^3.1.1", "picocolors": "^1.0.0" @@ -42545,17 +41625,6 @@ "semver": "^7.3.7", "semver-diff": "^4.0.0", "xdg-basedir": "^5.1.0" - }, - "dependencies": { - "ci-info": { - "version": "3.8.0" - }, - "is-ci": { - "version": "3.0.1", - "requires": { - "ci-info": "^3.2.0" - } - } } }, "uri-js": { @@ -42567,10 +41636,6 @@ "url-join": { "version": "5.0.0" }, - "urlpattern-polyfill": { - "version": "9.0.0", - "dev": true - }, "utf8-byte-length": { "version": "1.0.4" }, diff --git a/package.json b/package.json index 330fea3793..ec1389c73b 100644 --- a/package.json +++ b/package.json @@ -55,7 +55,14 @@ "ts-loader": "^9.4.2", "ts-node": "^10.9.1", "typedoc": "^0.25.1", - "typescript": "^5.2.2" + "typescript": "^5.2.2", + "karma": "^6.4.2", + "karma-chrome-launcher": "^3.2.0", + "karma-firefox-launcher": "^2.1.2", + "karma-mocha": "^2.0.1", + "karma-webkit-launcher": "^2.1.0", + "karma-webpack": "^5.0.0", + "playwright": "^1.38.1" }, "lint-staged": { "*.{ts,js}": [ diff --git a/packages/core/karma.conf.cjs b/packages/core/karma.conf.cjs index 6256dd375c..1acbc3dd2a 100644 --- a/packages/core/karma.conf.cjs +++ b/packages/core/karma.conf.cjs @@ -1,45 +1,3 @@ -process.env.CHROME_BIN = require("puppeteer").executablePath(); -const webpack = require("webpack"); +const config = require("../../karma.conf.cjs"); -module.exports = function (config) { - config.set({ - frameworks: ["webpack", "mocha"], - files: ["src/lib/**/!(node).spec.ts"], - preprocessors: { - "src/lib/**/!(node).spec.ts": ["webpack"] - }, - envPreprocessor: ["CI"], - reporters: ["progress"], - browsers: ["ChromeHeadless"], - singleRun: true, - client: { - mocha: { - timeout: 6000 // Default is 2s - } - }, - webpack: { - mode: "development", - module: { - rules: [{ test: /\.([cm]?ts|tsx)$/, loader: "ts-loader" }] - }, - plugins: [ - new webpack.DefinePlugin({ - "process.env.CI": process.env.CI || false - }), - new webpack.ProvidePlugin({ - process: "process/browser.js" - }) - ], - resolve: { - extensions: [".ts", ".tsx", ".js"], - extensionAlias: { - ".js": [".js", ".ts"], - ".cjs": [".cjs", ".cts"], - ".mjs": [".mjs", ".mts"] - } - }, - stats: { warnings: false }, - devtool: "inline-source-map" - } - }); -}; +module.exports = config; diff --git a/packages/core/package.json b/packages/core/package.json index f387b3f79c..354ea61030 100644 --- a/packages/core/package.json +++ b/packages/core/package.json @@ -99,14 +99,9 @@ "fast-check": "^3.12.0", "ignore-loader": "^0.1.2", "isomorphic-fetch": "^3.0.0", - "karma": "^6.4.2", - "karma-chrome-launcher": "^3.2.0", - "karma-mocha": "^2.0.1", - "karma-webpack": "^5.0.0", "mocha": "^10.2.0", "npm-run-all": "^4.1.5", "process": "^0.11.10", - "puppeteer": "^21.1.1", "rollup": "^3.29.2" }, "peerDependencies": { diff --git a/packages/dns-discovery/karma.conf.cjs b/packages/dns-discovery/karma.conf.cjs index ae373138d6..1acbc3dd2a 100644 --- a/packages/dns-discovery/karma.conf.cjs +++ b/packages/dns-discovery/karma.conf.cjs @@ -1,57 +1,3 @@ -process.env.CHROME_BIN = require("puppeteer").executablePath(); -const webpack = require("webpack"); +const config = require("../../karma.conf.cjs"); -module.exports = function (config) { - config.set({ - frameworks: ["webpack", "mocha"], - files: ["src/**/!(node).spec.ts"], - preprocessors: { - "src/**/!(node).spec.ts": ["webpack"] - }, - envPreprocessor: ["CI"], - reporters: ["progress"], - browsers: ["ChromeHeadless"], - singleRun: true, - client: { - mocha: { - timeout: 6000 // Default is 2s - } - }, - webpack: { - mode: "development", - module: { - rules: [ - { - test: /\.([cm]?ts|tsx)$/, - use: [ - { - loader: "ts-loader", - options: { - configFile: "tsconfig.karma.json" - } - } - ] - } - ] - }, - plugins: [ - new webpack.DefinePlugin({ - "process.env.CI": process.env.CI || false - }), - new webpack.ProvidePlugin({ - process: "process/browser.js" - }) - ], - resolve: { - extensions: [".ts", ".tsx", ".js"], - extensionAlias: { - ".js": [".js", ".ts"], - ".cjs": [".cjs", ".cts"], - ".mjs": [".mjs", ".mts"] - } - }, - stats: { warnings: false }, - devtool: "inline-source-map" - } - }); -}; +module.exports = config; diff --git a/packages/dns-discovery/package.json b/packages/dns-discovery/package.json index d99335af9d..4644c3bad7 100644 --- a/packages/dns-discovery/package.json +++ b/packages/dns-discovery/package.json @@ -70,10 +70,6 @@ "@waku/interfaces": "0.0.18", "chai": "^4.3.7", "cspell": "^7.3.2", - "karma": "^6.4.2", - "karma-chrome-launcher": "^3.2.0", - "karma-mocha": "^2.0.1", - "karma-webpack": "^5.0.0", "mocha": "^10.2.0", "npm-run-all": "^4.1.5", "rollup": "^3.29.2" diff --git a/packages/enr/karma.conf.cjs b/packages/enr/karma.conf.cjs index ce0b5fa337..1acbc3dd2a 100644 --- a/packages/enr/karma.conf.cjs +++ b/packages/enr/karma.conf.cjs @@ -1,45 +1,3 @@ -process.env.CHROME_BIN = require("puppeteer").executablePath(); -const webpack = require("webpack"); +const config = require("../../karma.conf.cjs"); -module.exports = function (config) { - config.set({ - frameworks: ["webpack", "mocha"], - files: ["src/**/*.ts"], - preprocessors: { - "src/**/*.ts": ["webpack"] - }, - envPreprocessor: ["CI"], - reporters: ["progress"], - browsers: ["ChromeHeadless"], - singleRun: true, - client: { - mocha: { - timeout: 6000 // Default is 2s - } - }, - webpack: { - mode: "development", - module: { - rules: [{ test: /\.([cm]?ts|tsx)$/, loader: "ts-loader" }] - }, - plugins: [ - new webpack.DefinePlugin({ - "process.env.CI": process.env.CI || false - }), - new webpack.ProvidePlugin({ - process: "process/browser.js" - }) - ], - resolve: { - extensions: [".ts", ".tsx", ".js"], - extensionAlias: { - ".js": [".js", ".ts"], - ".cjs": [".cjs", ".cts"], - ".mjs": [".mjs", ".mts"] - } - }, - stats: { warnings: false }, - devtool: "inline-source-map" - } - }); -}; +module.exports = config; diff --git a/packages/enr/package.json b/packages/enr/package.json index 220b3e2cd8..a6c9a68afd 100644 --- a/packages/enr/package.json +++ b/packages/enr/package.json @@ -71,14 +71,9 @@ "@waku/interfaces": "0.0.18", "chai": "^4.3.7", "cspell": "^7.3.2", - "karma": "^6.4.2", - "karma-chrome-launcher": "^3.2.0", - "karma-mocha": "^2.0.1", - "karma-webpack": "^5.0.0", "mocha": "^10.2.0", "npm-run-all": "^4.1.5", "process": "^0.11.10", - "puppeteer": "^21.1.1", "rollup": "^3.29.2", "uint8arrays": "^4.0.4" }, diff --git a/packages/message-encryption/karma.conf.cjs b/packages/message-encryption/karma.conf.cjs index ce0b5fa337..1acbc3dd2a 100644 --- a/packages/message-encryption/karma.conf.cjs +++ b/packages/message-encryption/karma.conf.cjs @@ -1,45 +1,3 @@ -process.env.CHROME_BIN = require("puppeteer").executablePath(); -const webpack = require("webpack"); +const config = require("../../karma.conf.cjs"); -module.exports = function (config) { - config.set({ - frameworks: ["webpack", "mocha"], - files: ["src/**/*.ts"], - preprocessors: { - "src/**/*.ts": ["webpack"] - }, - envPreprocessor: ["CI"], - reporters: ["progress"], - browsers: ["ChromeHeadless"], - singleRun: true, - client: { - mocha: { - timeout: 6000 // Default is 2s - } - }, - webpack: { - mode: "development", - module: { - rules: [{ test: /\.([cm]?ts|tsx)$/, loader: "ts-loader" }] - }, - plugins: [ - new webpack.DefinePlugin({ - "process.env.CI": process.env.CI || false - }), - new webpack.ProvidePlugin({ - process: "process/browser.js" - }) - ], - resolve: { - extensions: [".ts", ".tsx", ".js"], - extensionAlias: { - ".js": [".js", ".ts"], - ".cjs": [".cjs", ".cts"], - ".mjs": [".mjs", ".mts"] - } - }, - stats: { warnings: false }, - devtool: "inline-source-map" - } - }); -}; +module.exports = config; diff --git a/packages/message-encryption/package.json b/packages/message-encryption/package.json index 685971db9a..ddeaf024ff 100644 --- a/packages/message-encryption/package.json +++ b/packages/message-encryption/package.json @@ -89,14 +89,9 @@ "chai": "^4.3.7", "cspell": "^7.3.2", "fast-check": "^3.12.0", - "karma": "^6.4.2", - "karma-chrome-launcher": "^3.2.0", - "karma-mocha": "^2.0.1", - "karma-webpack": "^5.0.0", "mocha": "^10.2.0", "npm-run-all": "^4.1.5", "process": "^0.11.10", - "puppeteer": "^21.1.1", "rollup": "^3.29.2" }, "files": [ diff --git a/packages/message-hash/karma.conf.cjs b/packages/message-hash/karma.conf.cjs index f58788e8af..1acbc3dd2a 100644 --- a/packages/message-hash/karma.conf.cjs +++ b/packages/message-hash/karma.conf.cjs @@ -1,45 +1,3 @@ -process.env.CHROME_BIN = require("puppeteer").executablePath(); -const webpack = require("webpack"); +const config = require("../../karma.conf.cjs"); -module.exports = function (config) { - config.set({ - frameworks: ["webpack", "mocha"], - files: ["src/**/!(node).spec.ts"], - preprocessors: { - "src/**/!(node).spec.ts": ["webpack"] - }, - envPreprocessor: ["CI"], - reporters: ["progress"], - browsers: ["ChromeHeadless"], - singleRun: true, - client: { - mocha: { - timeout: 6000 // Default is 2s - } - }, - webpack: { - mode: "development", - module: { - rules: [{ test: /\.([cm]?ts|tsx)$/, loader: "ts-loader" }] - }, - plugins: [ - new webpack.DefinePlugin({ - "process.env.CI": process.env.CI || false - }), - new webpack.ProvidePlugin({ - process: "process/browser.js" - }) - ], - resolve: { - extensions: [".ts", ".tsx", ".js"], - extensionAlias: { - ".js": [".js", ".ts"], - ".cjs": [".cjs", ".cts"], - ".mjs": [".mjs", ".mts"] - } - }, - stats: { warnings: false }, - devtool: "inline-source-map" - } - }); -}; +module.exports = config; diff --git a/packages/message-hash/package.json b/packages/message-hash/package.json index 337230968a..b663edc79e 100644 --- a/packages/message-hash/package.json +++ b/packages/message-hash/package.json @@ -67,14 +67,9 @@ "fast-check": "^3.12.0", "ignore-loader": "^0.1.2", "isomorphic-fetch": "^3.0.0", - "karma": "^6.4.2", - "karma-chrome-launcher": "^3.2.0", - "karma-mocha": "^2.0.1", - "karma-webpack": "^5.0.0", "mocha": "^10.2.0", "npm-run-all": "^4.1.5", "process": "^0.11.10", - "puppeteer": "^21.1.1", "rollup": "^3.29.2" }, "files": [