diff --git a/.ackrc b/.ackrc deleted file mode 100644 index a0ab7478bc..0000000000 --- a/.ackrc +++ /dev/null @@ -1,6 +0,0 @@ -# This sets some defaults for ack (https://beyondgrep.com/) -# that make searching the web-ext code a bit easier. - ---ignore-dir=artifacts ---ignore-dir=dist ---ignore-dir=node_modules diff --git a/.babelrc b/.babelrc deleted file mode 100644 index 0370641d39..0000000000 --- a/.babelrc +++ /dev/null @@ -1,23 +0,0 @@ -{ - "presets": [ - [ - "@babel/env", { - "targets": {"node": "14"}, - // Leave import/export statements unchanged in the babel transpiling output. - "modules": false - } - ] - ], - "plugins": [ - ["transform-inline-environment-variables", { - "include": [ - "WEBEXT_BUILD_ENV" - ] - }] - ], - "env": { - "test": { - "plugins": [ "istanbul" ] - } - } -} diff --git a/.circleci/config.yml b/.circleci/config.yml deleted file mode 100644 index 1eb503e87b..0000000000 --- a/.circleci/config.yml +++ /dev/null @@ -1,301 +0,0 @@ -# These environment variables must be set in CircleCI UI -# -# NPM_TOKEN - A valid NPM token for releases -# -# NOTE: -# - to validate changes to this file locally using the circleci CLI tool: -# -# circleci config process .circleci/config.yml -# -# - to try run jobs locally: -# -# circleci config process .circleci/config.yaml > processed.yaml -# circleci local execute -c tmp/process.yml --job build-nodejs-current -# -version: 2.1 - -orbs: - # Used in the `test-windows` job to run the test on windows. - win: circleci/windows@5.0.0 - codecov: codecov/codecov@3.2.4 - -references: - # NOTE: update the nodejs version strings that follows to change the - # set of nodejs versions that should be tested. - # The nodejs version set as `nodejs_current` is the one used to - # release the package on npm. - # - # See https://nodejs.org/en/about/previous-releases for updates to nodejs versions. - nodejs_versions: - # nvm-windows wants a full Node version, not just `.`. - - &nodejs_current "18.19.0" - - &nodejs_next "20.11.0" - - &nodejs_experimental "21.5" - - nodejs_enum: &nodejs_enum - type: enum - default: *nodejs_current - enum: - - *nodejs_current - - *nodejs_next - - *nodejs_experimental - repo_path: &repo_path ~/web-ext - defaults: &defaults - working_directory: *repo_path - -commands: - attach_project_repo: - description: attach repo from workspace - steps: - - attach_workspace: - at: *repo_path - - persist_project_repo: - description: persist repo in workspace - steps: - - persist_to_workspace: - root: *repo_path - paths: . - - restore_build_cache: - description: restore npm package cache - parameters: - suffix: - type: string - default: default - steps: - - restore_cache: - keys: - - npm-packages-{{ checksum "package-lock.json" }}-<< parameters.suffix >> - - save_build_cache: - description: save npm package cache - parameters: - suffix: - type: string - default: default - steps: - - save_cache: - key: npm-packages-{{ checksum "package-lock.json" }}-<< parameters.suffix >> - paths: - - ./node_modules - - run_npm_ci: - description: install npm dependencies - steps: - - run: npm ci - - run_npm_build: - description: build project in << parameters.node_env >> mode - parameters: - node_env: - type: enum - default: production - enum: ["production", "test"] - steps: - - run: - command: npm run build --if-present - environment: - NODE_ENV: << parameters.node_env >> - - run_functional_tests: - description: run functional tests - parameters: - retry_once: - type: enum - default: "" - enum: ["", "y"] - legacy_bundling: - type: boolean - default: false - mocha_timeout: - type: integer - # Custom mocha timeout to reduce intermittent failures triggered - # by one of the functional tests (triggered by the before all hook - # of the test.lib.imports.js). - default: 30000 - steps: - - run: - ## (See #1082 for rationale). - name: run functional tests in npm production environment - command: npm run test-functional - environment: - ## NOTE: by setting the configured python to /bin/false we are - # forcing the production mode tests to fail if any of the - # dependencies is a binary dependency that is built using node-gyp. - NODE_GYP_FORCE_PYTHON: /bin/false - TEST_PRODUCTION_MODE: 1 - CI_RETRY_ONCE: << parameters.retry_once >> - MOCHA_TIMEOUT: << parameters.mocha_timeout >> - - when: - condition: << parameters.legacy_bundling >> - steps: - - run: - ## (See #1639 for rationale). - name: run functional tests in npm legacy bundling mode - command: npm run test-functional - environment: - TEST_PRODUCTION_MODE: 1 - TEST_LEGACY_BUNDLING: 1 - CI_RETRY_ONCE: << parameters.retry_once >> - MOCHA_TIMEOUT: << parameters.mocha_timeout >> - - audit_deps: - description: audit npm deps - steps: - - run: npm run audit-deps - - lint_commit_conventions: - description: lint commit message conventions - steps: - - run: npm run github-pr-title-lint - -jobs: - build: - <<: *defaults - parameters: - node_options: - type: string - default: "" - nodejs: - <<: *nodejs_enum - docker: - - image: cimg/node:<< parameters.nodejs >> - environment: - NODE_OPTIONS: << parameters.node_options >> - steps: - - attach_project_repo - - checkout - - restore_build_cache: - suffix: << parameters.nodejs >> - - run_npm_ci - - save_build_cache: - suffix: << parameters.nodejs >> - - run_npm_build: - node_env: test - ## Skip code coverage and the additional legacy bundling tests on jobs - ## running on the next nodejs versions. - - when: - condition: - equal: [*nodejs_next, << parameters.nodejs >>] - steps: - - run: - name: run linting checks and unit tests - command: npm run test - - run_functional_tests - ## Allow npm run test to fail when running on nodejs experimental. - # TODO(https://github.com/mozilla/web-ext/issues/3015): change this to do not - # allow failures on nodejs 21 once fixed by a testdouble dependency update. - - when: - condition: - equal: [*nodejs_experimental, << parameters.nodejs >>] - steps: - - run: - name: run linting checks and unit tests (but allow failure) - command: npm run test || echo "NOTE - Unit tests failed, but allowed to fail on nodejs experimental" - - run_functional_tests - ## Steps only executed in jobs running on the current nodejs version. - - when: - condition: - equal: [*nodejs_current, << parameters.nodejs >>] - steps: - - run: npm run prettier-ci - - run: - name: run linting check and unit tests with coverage - command: npm run test-coverage - - store_artifacts: - path: coverage - - codecov/upload - - run_functional_tests: - legacy_bundling: true - - persist_project_repo - - audit_deps - - lint_commit_conventions - - test-windows: - parameters: - nodejs: - type: enum - default: *nodejs_current - enum: - - *nodejs_current - <<: *defaults - executor: - name: win/default - shell: cmd.exe - steps: - - run: - name: Update nodejs version shipped on the windows circleci worker - command: nvm install << parameters.nodejs >> - - run: - name: Activate nodejs version installed through nvm-windows - command: nvm use << parameters.nodejs >> - - checkout - - restore_build_cache: - suffix: windows-<< parameters.nodejs >> - - run_npm_ci - - save_build_cache: - suffix: windows-<< parameters.nodejs >> - - run_npm_build: - node_env: test - - run: - name: run linting checks and unit tests - command: npm run test - - run_functional_tests: - retry_once: "y" - - release-tag: - parameters: - nodejs: - <<: *nodejs_enum - <<: *defaults - docker: - - image: cimg/node:<< parameters.nodejs >> - steps: - - attach_project_repo - - run_npm_build: - node_env: production - - run: - name: npm registry auth - command: echo '//registry.npmjs.org/:_authToken=${NPM_TOKEN}' > .npmrc - - run: - name: npm registry publish - command: npm publish - -workflows: - default-workflow: - jobs: - - build: - name: build-nodejs-current - nodejs: *nodejs_current - filters: - tags: - only: /.*/ - - build: - name: build-nodejs-next - nodejs: *nodejs_next - filters: - tags: - only: /.*/ - - build: - name: build-nodejs-experimental - nodejs: *nodejs_experimental - filters: - tags: - only: /.*/ - - test-windows: - filters: - tags: - only: /.*/ - - release-tag: - nodejs: *nodejs_current - requires: - - build-nodejs-current - - build-nodejs-next - - build-nodejs-experimental - - test-windows - filters: - tags: - only: /.*/ - branches: - ignore: /.*/ diff --git a/.editorconfig b/.editorconfig deleted file mode 100644 index 0f3bb618c8..0000000000 --- a/.editorconfig +++ /dev/null @@ -1,3 +0,0 @@ -[*.js] -indent_style = space -indent_size = 2 diff --git a/.githooks/commit-msg/check-for-changelog-lint b/.githooks/commit-msg/check-for-changelog-lint deleted file mode 100755 index 608217195b..0000000000 --- a/.githooks/commit-msg/check-for-changelog-lint +++ /dev/null @@ -1,8 +0,0 @@ -#!/bin/bash -# This git-hook is not used anymore, and so we warn the user that it can be removed. - -echo "--------------------------------------------------------------------" -echo "This git-hook is not used anymore and you can now remove it from" -echo "your local git hooks dir (.git/hooks/commit-msg)" -echo "--------------------------------------------------------------------" -echo diff --git a/.github/dependabot.yml b/.github/dependabot.yml deleted file mode 100644 index 16068afbd8..0000000000 --- a/.github/dependabot.yml +++ /dev/null @@ -1,7 +0,0 @@ -version: 2 -updates: - - package-ecosystem: "npm" - directory: "/" - schedule: - interval: "daily" - open-pull-requests-limit: 99 diff --git a/.npmignore b/.npmignore deleted file mode 100644 index a6569ee3a2..0000000000 --- a/.npmignore +++ /dev/null @@ -1,2 +0,0 @@ -# The files to be included in the npm package are listed in the package.json file, -# in the `files` property (See https://docs.npmjs.com/files/package.json#files). diff --git a/.nsprc b/.nsprc deleted file mode 100644 index b5aac17ff7..0000000000 --- a/.nsprc +++ /dev/null @@ -1,3 +0,0 @@ -{ - "exceptions": [] -} diff --git a/CODE_OF_CONDUCT.md b/CODE_OF_CONDUCT.md deleted file mode 100644 index 7d0ce35d0c..0000000000 --- a/CODE_OF_CONDUCT.md +++ /dev/null @@ -1,10 +0,0 @@ -# Community Participation Guidelines - -This repository is governed by Mozilla's code of conduct and etiquette guidelines. -For more details, please read the -[Mozilla Community Participation Guidelines](https://www.mozilla.org/about/governance/policies/participation/). - -## How to Report - -For more information on how to report violations of the Community Participation Guidelines, -please read our '[How to Report](https://www.mozilla.org/about/governance/policies/participation/reporting/)' page. diff --git a/README.md b/README.md index 226bbd1694..c2c4cbc490 100644 --- a/README.md +++ b/README.md @@ -11,6 +11,10 @@ Ultimately, it aims to support browser extensions in a standard, portable, cross-platform way. Initially, it will provide a streamlined experience for developing [Firefox Extensions](https://developer.mozilla.org/en-US/Add-ons/WebExtensions). +## Fork + +This fork removes everything but the JS API for `cmd.run`. Originally created for my build tools ([`wxt`](https://github.com/aklinker1/wxt) and [`vite-plugin-web-extension`](https://github.com/aklinker1/vite-plugin-web-extension)) to open the extension during development, but without all the peer dependency issues. + ## Documentation - [Getting started with web-ext][web-ext-user-docs] diff --git a/bin/web-ext.js b/bin/web-ext.js deleted file mode 100755 index 071d0b1767..0000000000 --- a/bin/web-ext.js +++ /dev/null @@ -1,13 +0,0 @@ -#!/usr/bin/env node - -import path from 'path'; -import { fileURLToPath } from 'url'; - -import webExt from '../lib/main.js'; - -const absolutePackageDir = path.join( - path.dirname(fileURLToPath(import.meta.url)), - '..', -); - -await webExt.main(absolutePackageDir); diff --git a/commitlint.config.cjs b/commitlint.config.cjs deleted file mode 100644 index f54524da1f..0000000000 --- a/commitlint.config.cjs +++ /dev/null @@ -1,11 +0,0 @@ -module.exports = { - "extends": ["@commitlint/config-conventional"], - "rules": { - "body-leading-blank": [0, "never"], - "footer-leading-blank": [0, "never"], - "header-max-length": [1, "always", 72], - "subject-case": [0, "never"], - "subject-full-stop": [0, "never"], - "body-max-line-length": [0, "never"] - } -} diff --git a/package-lock.json b/package-lock.json index 769bec9e04..8a615c21e6 100644 --- a/package-lock.json +++ b/package-lock.json @@ -1,37 +1,30 @@ { - "name": "web-ext", - "version": "8.2.0", + "name": "web-ext-run", + "version": "0.2.2", "lockfileVersion": 2, "requires": true, "packages": { "": { - "name": "web-ext", - "version": "8.2.0", + "name": "web-ext-run", + "version": "0.2.2", "license": "MPL-2.0", "dependencies": { "@babel/runtime": "7.24.7", "@devicefarmer/adbkit": "3.2.6", - "addons-linter": "6.31.1", "bunyan": "1.8.15", - "camelcase": "8.0.0", - "chrome-launcher": "0.15.1", + "chrome-launcher": "1.1.0", "debounce": "1.2.1", - "decamelize": "6.0.0", "es6-error": "4.1.1", "firefox-profile": "4.6.0", "fs-extra": "11.2.0", "fx-runner": "1.4.0", - "https-proxy-agent": "^7.0.0", - "jose": "5.6.3", - "jszip": "3.10.1", "mkdirp": "3.0.1", "multimatch": "6.0.0", "mz": "2.7.0", - "node-fetch": "3.3.2", "node-notifier": "10.0.1", - "open": "9.1.0", "parse-json": "7.1.1", "promise-toolbox": "0.21.0", + "set-value": "4.1.0", "source-map-support": "0.5.21", "strip-bom": "5.0.0", "strip-json-comments": "5.0.1", @@ -39,12 +32,8 @@ "update-notifier": "6.0.2", "watchpack": "2.4.1", "ws": "8.18.0", - "yargs": "17.7.2", "zip-dir": "2.0.0" }, - "bin": { - "web-ext": "bin/web-ext.js" - }, "devDependencies": { "@babel/cli": "7.24.7", "@babel/core": "7.24.7", @@ -85,6 +74,7 @@ "version": "1.2.6", "resolved": "https://registry.npmjs.org/@aashutoshrathi/word-wrap/-/word-wrap-1.2.6.tgz", "integrity": "sha512-1Yjs2SvM8TflER/OD3cOjhWWOZb58A2t7wpE2S9XfBYTiIl+XFhQG2bjy4Pu1I+EAlCNUzRDYDdFwFYUKvXcIA==", + "dev": true, "engines": { "node": ">=0.10.0" } @@ -2709,6 +2699,7 @@ "version": "4.2.0", "resolved": "https://registry.npmjs.org/@eslint-community/eslint-utils/-/eslint-utils-4.2.0.tgz", "integrity": "sha512-gB8T4H4DEfX2IV9zGDJPOBgP1e/DbfCPDTtEqUMckpvzS1OYtva8JdFYBqMwYk7xAQ429WGF/UPqn8uQ//h2vQ==", + "dev": true, "dependencies": { "eslint-visitor-keys": "^3.3.0" }, @@ -2723,6 +2714,7 @@ "version": "3.3.0", "resolved": "https://registry.npmjs.org/eslint-visitor-keys/-/eslint-visitor-keys-3.3.0.tgz", "integrity": "sha512-mQ+suqKJVyeuwGYHAdjMFqjCyfl8+Ldnxuyp3ldiMBFKkvytrXUZWaiPCEav8qDHKty44bD+qV1IP4T+w+xXRA==", + "dev": true, "engines": { "node": "^12.22.0 || ^14.17.0 || >=16.0.0" } @@ -2731,6 +2723,7 @@ "version": "4.6.2", "resolved": "https://registry.npmjs.org/@eslint-community/regexpp/-/regexpp-4.6.2.tgz", "integrity": "sha512-pPTNuaAG3QMH+buKyBIGJs3g/S5y0caxw0ygM3YyE6yJFySwiGGSzA+mM3KJ8QQvzeLh3blwgSonkFjgQdxzMw==", + "dev": true, "engines": { "node": "^12.0.0 || ^14.0.0 || >=16.0.0" } @@ -2739,6 +2732,7 @@ "version": "2.1.4", "resolved": "https://registry.npmjs.org/@eslint/eslintrc/-/eslintrc-2.1.4.tgz", "integrity": "sha512-269Z39MS6wVJtsoUl10L60WdkhJVdPG24Q4eZTH3nnF6lpvSShEK3wQjDX9JRWAUPvPh7COouPpU9IrqaZFvtQ==", + "dev": true, "dependencies": { "ajv": "^6.12.4", "debug": "^4.3.2", @@ -2761,6 +2755,7 @@ "version": "6.12.6", "resolved": "https://registry.npmjs.org/ajv/-/ajv-6.12.6.tgz", "integrity": "sha512-j3fVLgvTo527anyYyJOGTYJbG+vnnQYvE0m5mmkc1TK+nxAppkCLMIL0aZ4dblVCNoGShhm+kzE4ZUykBoMg4g==", + "dev": true, "dependencies": { "fast-deep-equal": "^3.1.1", "fast-json-stable-stringify": "^2.0.0", @@ -2775,12 +2770,14 @@ "node_modules/@eslint/eslintrc/node_modules/argparse": { "version": "2.0.1", "resolved": "https://registry.npmjs.org/argparse/-/argparse-2.0.1.tgz", - "integrity": "sha512-8+9WqebbFzpX9OR+Wa6O29asIogeRMzcGtAINdpMHHyAg10f05aSFVBbcEqGf/PXw1EjAZ+q2/bEBg3DvurK3Q==" + "integrity": "sha512-8+9WqebbFzpX9OR+Wa6O29asIogeRMzcGtAINdpMHHyAg10f05aSFVBbcEqGf/PXw1EjAZ+q2/bEBg3DvurK3Q==", + "dev": true }, "node_modules/@eslint/eslintrc/node_modules/globals": { "version": "13.23.0", "resolved": "https://registry.npmjs.org/globals/-/globals-13.23.0.tgz", "integrity": "sha512-XAmF0RjlrjY23MA51q3HltdlGxUpXPvg0GioKiD9X6HD28iMjo2dKC8Vqwm7lne4GNr78+RHTfliktR6ZH09wA==", + "dev": true, "dependencies": { "type-fest": "^0.20.2" }, @@ -2795,6 +2792,7 @@ "version": "4.1.0", "resolved": "https://registry.npmjs.org/js-yaml/-/js-yaml-4.1.0.tgz", "integrity": "sha512-wpxZs9NoxZaJESJGIZTyDEaYpl0FKSA+FB9aJiyemKhMwkxQg63h4T1KJgUGHpTqPDNRcmmYLugrRjJlBtWvRA==", + "dev": true, "dependencies": { "argparse": "^2.0.1" }, @@ -2805,12 +2803,14 @@ "node_modules/@eslint/eslintrc/node_modules/json-schema-traverse": { "version": "0.4.1", "resolved": "https://registry.npmjs.org/json-schema-traverse/-/json-schema-traverse-0.4.1.tgz", - "integrity": "sha512-xbbCH5dCYU5T8LcEhhuh7HJ88HXuW3qsI3Y0zOZFKfZEHcpWiHU/Jxzk629Brsab/mMiHQti9wMP+845RPe3Vg==" + "integrity": "sha512-xbbCH5dCYU5T8LcEhhuh7HJ88HXuW3qsI3Y0zOZFKfZEHcpWiHU/Jxzk629Brsab/mMiHQti9wMP+845RPe3Vg==", + "dev": true }, "node_modules/@eslint/eslintrc/node_modules/strip-json-comments": { "version": "3.1.1", "resolved": "https://registry.npmjs.org/strip-json-comments/-/strip-json-comments-3.1.1.tgz", "integrity": "sha512-6fPc+R4ihwqP6N/aIv2f1gMH8lOVtWQHoqC4yK6oSDVVocumAsfCqjkXnqiYMhmMwS/mEHLp7Vehlt3ql6lEig==", + "dev": true, "engines": { "node": ">=8" }, @@ -2822,6 +2822,7 @@ "version": "0.20.2", "resolved": "https://registry.npmjs.org/type-fest/-/type-fest-0.20.2.tgz", "integrity": "sha512-Ne+eE4r0/iWnpAxD852z3A+N0Bt5RN//NjJwRd2VFHEmrywxf5vsZlh4R6lixl6B+wz/8d+maTSAkN1FIkI3LQ==", + "dev": true, "engines": { "node": ">=10" }, @@ -2833,23 +2834,16 @@ "version": "8.57.0", "resolved": "https://registry.npmjs.org/@eslint/js/-/js-8.57.0.tgz", "integrity": "sha512-Ys+3g2TaW7gADOJzPt83SJtCDhMjndcDMFVQ/Tj9iA1BfJzFKD9mAUXT3OenpuPHbI6P/myECxRJrofUsDx/5g==", + "dev": true, "engines": { "node": "^12.22.0 || ^14.17.0 || >=16.0.0" } }, - "node_modules/@fluent/syntax": { - "version": "0.19.0", - "resolved": "https://registry.npmjs.org/@fluent/syntax/-/syntax-0.19.0.tgz", - "integrity": "sha512-5D2qVpZrgpjtqU4eNOcWGp1gnUCgjfM+vKGE2y03kKN6z5EBhtx0qdRFbg8QuNNj8wXNoX93KJoYb+NqoxswmQ==", - "engines": { - "node": ">=14.0.0", - "npm": ">=7.0.0" - } - }, "node_modules/@humanwhocodes/config-array": { "version": "0.11.14", "resolved": "https://registry.npmjs.org/@humanwhocodes/config-array/-/config-array-0.11.14.tgz", "integrity": "sha512-3T8LkOmg45BV5FICb15QQMsyUSWrQ8AygVfC7ZG32zOalnqrilm018ZVCw0eapXux8FtA33q8PSRSstjee3jSg==", + "dev": true, "dependencies": { "@humanwhocodes/object-schema": "^2.0.2", "debug": "^4.3.1", @@ -2863,6 +2857,7 @@ "version": "1.0.1", "resolved": "https://registry.npmjs.org/@humanwhocodes/module-importer/-/module-importer-1.0.1.tgz", "integrity": "sha512-bxveV4V8v5Yb4ncFTT3rPSgZBOpCkjfK0y4oVVVJwIuDVBRMDXrPyXRL988i5ap9m9bnyEEjWfm5WkBmtffLfA==", + "dev": true, "engines": { "node": ">=12.22" }, @@ -2874,48 +2869,8 @@ "node_modules/@humanwhocodes/object-schema": { "version": "2.0.2", "resolved": "https://registry.npmjs.org/@humanwhocodes/object-schema/-/object-schema-2.0.2.tgz", - "integrity": "sha512-6EwiSjwWYP7pTckG6I5eyFANjPhmPjUX9JRLUSfNPC7FX7zK9gyZAfUEaECL6ALTpGX5AjnBq3C9XmVWPitNpw==" - }, - "node_modules/@isaacs/cliui": { - "version": "8.0.2", - "resolved": "https://registry.npmjs.org/@isaacs/cliui/-/cliui-8.0.2.tgz", - "integrity": "sha512-O8jcjabXaleOG9DQ0+ARXWZBTfnP4WNAqzuiJK7ll44AmxGKv/J2M4TPjxjY3znBCfvBXFzucm1twdyFybFqEA==", - "dependencies": { - "string-width": "^5.1.2", - "string-width-cjs": "npm:string-width@^4.2.0", - "strip-ansi": "^7.0.1", - "strip-ansi-cjs": "npm:strip-ansi@^6.0.1", - "wrap-ansi": "^8.1.0", - "wrap-ansi-cjs": "npm:wrap-ansi@^7.0.0" - }, - "engines": { - "node": ">=12" - } - }, - "node_modules/@isaacs/cliui/node_modules/ansi-regex": { - "version": "6.0.1", - "resolved": "https://registry.npmjs.org/ansi-regex/-/ansi-regex-6.0.1.tgz", - "integrity": "sha512-n5M855fKb2SsfMIiFFoVrABHJC8QtHwVx+mHWP3QcEqBHYienj5dHSgjbxtC0WEZXYt4wcD6zrQElDPhFuZgfA==", - "engines": { - "node": ">=12" - }, - "funding": { - "url": "https://github.com/chalk/ansi-regex?sponsor=1" - } - }, - "node_modules/@isaacs/cliui/node_modules/strip-ansi": { - "version": "7.1.0", - "resolved": "https://registry.npmjs.org/strip-ansi/-/strip-ansi-7.1.0.tgz", - "integrity": "sha512-iq6eVVI64nQQTRYq2KtEg2d2uU7LElhTJwsH4YzIHZshxlgZms/wIc4VoDQTlG/IvVIrBKG06CrZnp0qv7hkcQ==", - "dependencies": { - "ansi-regex": "^6.0.1" - }, - "engines": { - "node": ">=12" - }, - "funding": { - "url": "https://github.com/chalk/strip-ansi?sponsor=1" - } + "integrity": "sha512-6EwiSjwWYP7pTckG6I5eyFANjPhmPjUX9JRLUSfNPC7FX7zK9gyZAfUEaECL6ALTpGX5AjnBq3C9XmVWPitNpw==", + "dev": true }, "node_modules/@istanbuljs/load-nyc-config": { "version": "1.1.0", @@ -3050,11 +3005,6 @@ "@jridgewell/sourcemap-codec": "^1.4.14" } }, - "node_modules/@mdn/browser-compat-data": { - "version": "5.5.34", - "resolved": "https://registry.npmjs.org/@mdn/browser-compat-data/-/browser-compat-data-5.5.34.tgz", - "integrity": "sha512-e8k7+8r3jiJuP7FMH6AL1OnmfQqLyABhTM+NmRDvFeAbMgtFcNQLHpmT7uza5cBnxI01+CAU3aSsIgcKGRdEBQ==" - }, "node_modules/@nicolo-ribaudo/chokidar-2": { "version": "2.1.8-no-fsevents.3", "resolved": "https://registry.npmjs.org/@nicolo-ribaudo/chokidar-2/-/chokidar-2-2.1.8-no-fsevents.3.tgz", @@ -3075,6 +3025,7 @@ "version": "2.1.5", "resolved": "https://registry.npmjs.org/@nodelib/fs.scandir/-/fs.scandir-2.1.5.tgz", "integrity": "sha512-vq24Bq3ym5HEQm2NKCr3yXDwjc7vTsEThRDnkp2DK9p1uqLR+DHurm/NOTo0KG7HYHU7eppKZj3MyqYuMBf62g==", + "dev": true, "dependencies": { "@nodelib/fs.stat": "2.0.5", "run-parallel": "^1.1.9" @@ -3087,6 +3038,7 @@ "version": "2.0.5", "resolved": "https://registry.npmjs.org/@nodelib/fs.stat/-/fs.stat-2.0.5.tgz", "integrity": "sha512-RkhPPp2zrqDAQA/2jNhnztcPAlv64XdhIp7a7454A5ovI7Bukxgt7MX7udwAu3zg1DcpPU0rz3VV1SeaqvY4+A==", + "dev": true, "engines": { "node": ">= 8" } @@ -3095,6 +3047,7 @@ "version": "1.2.8", "resolved": "https://registry.npmjs.org/@nodelib/fs.walk/-/fs.walk-1.2.8.tgz", "integrity": "sha512-oGB+UxlgWcgQkgwo8GcEGwemoTFt3FIO9ababBmaGwXIoBKZ+GTy0pP185beGg7Llih/NSHSV2XAs1lnznocSg==", + "dev": true, "dependencies": { "@nodelib/fs.scandir": "2.1.5", "fastq": "^1.6.0" @@ -3103,15 +3056,6 @@ "node": ">= 8" } }, - "node_modules/@pkgjs/parseargs": { - "version": "0.11.0", - "resolved": "https://registry.npmjs.org/@pkgjs/parseargs/-/parseargs-0.11.0.tgz", - "integrity": "sha512-+1VkjdD0QBLPodGrJUeqarH8VAIvQODIbwh9XpP5Syisf7YoQgsJKPNFoqqLQlu+VQ/tVSshMR6loPMn8U+dPg==", - "optional": true, - "engines": { - "node": ">=14" - } - }, "node_modules/@pnpm/network.ca-file": { "version": "1.0.1", "resolved": "https://registry.npmjs.org/@pnpm/network.ca-file/-/network.ca-file-1.0.1.tgz", @@ -3231,34 +3175,17 @@ "resolved": "https://registry.npmjs.org/@types/node/-/node-20.5.1.tgz", "integrity": "sha512-4tT2UrL5LBqDwoed9wZ6N3umC4Yhz3W3FloMmiiG4JwmUJWpie0c7lcnUNd4gtMKuDEO4wRVS8B6Xa0uMRsMKg==" }, - "node_modules/@types/yauzl": { - "version": "2.10.3", - "resolved": "https://registry.npmjs.org/@types/yauzl/-/yauzl-2.10.3.tgz", - "integrity": "sha512-oJoftv0LSuaDZE3Le4DbKX+KS9G36NzOeSap90UIK0yMA/NhKJhqlSGtNDORNRaIbQfzjXDrQa0ytJ6mNRGz/Q==", - "dependencies": { - "@types/node": "*" - } - }, "node_modules/@ungap/structured-clone": { "version": "1.2.0", "resolved": "https://registry.npmjs.org/@ungap/structured-clone/-/structured-clone-1.2.0.tgz", - "integrity": "sha512-zuVdFrMJiuCDQUMCzQaD6KL28MjnqqN8XnAqiEq9PNm/hCPTSGfrXCOfwj1ow4LFb/tNymJPwsNbVePc1xFqrQ==" - }, - "node_modules/abort-controller": { - "version": "3.0.0", - "resolved": "https://registry.npmjs.org/abort-controller/-/abort-controller-3.0.0.tgz", - "integrity": "sha512-h8lQ8tacZYnR3vNQTgibj+tODHI5/+l06Au2Pcriv/Gmet0eaj4TwWH41sO9wnHDiQsEj19q0drzdWdeAHtweg==", - "dependencies": { - "event-target-shim": "^5.0.0" - }, - "engines": { - "node": ">=6.5" - } + "integrity": "sha512-zuVdFrMJiuCDQUMCzQaD6KL28MjnqqN8XnAqiEq9PNm/hCPTSGfrXCOfwj1ow4LFb/tNymJPwsNbVePc1xFqrQ==", + "dev": true }, "node_modules/acorn": { "version": "8.11.3", "resolved": "https://registry.npmjs.org/acorn/-/acorn-8.11.3.tgz", "integrity": "sha512-Y9rRfJG5jcKOE0CLisYbojUjIrIEE7AGMzA/Sm4BslANhbS+cDMpgBdcPT91oJ7OuJ9hYJBx59RjbhxVnrF8Xg==", + "dev": true, "bin": { "acorn": "bin/acorn" }, @@ -3270,285 +3197,11 @@ "version": "5.3.2", "resolved": "https://registry.npmjs.org/acorn-jsx/-/acorn-jsx-5.3.2.tgz", "integrity": "sha512-rq9s+JNhf0IChjtDXxllJ7g41oZk5SlXtp0LHwyA5cejwn7vKmKp4pPri6YEePv2PU65sAsegbXtIinmDFDXgQ==", + "dev": true, "peerDependencies": { "acorn": "^6.0.0 || ^7.0.0 || ^8.0.0" } }, - "node_modules/addons-linter": { - "version": "6.31.1", - "resolved": "https://registry.npmjs.org/addons-linter/-/addons-linter-6.31.1.tgz", - "integrity": "sha512-R9FCyVzqU/h5A2aB1t+jD8t4QKLuLxYqc1FjmjJ0nZrn1qNCna1jFOajt5R1T8pwt0H4WXgT+uwWSD2BdkBzqQ==", - "dependencies": { - "@fluent/syntax": "0.19.0", - "@mdn/browser-compat-data": "5.5.34", - "addons-moz-compare": "1.3.0", - "addons-scanner-utils": "9.11.0", - "ajv": "8.16.0", - "chalk": "4.1.2", - "cheerio": "1.0.0-rc.12", - "columnify": "1.6.0", - "common-tags": "1.8.2", - "deepmerge": "4.3.1", - "eslint": "8.57.0", - "eslint-plugin-no-unsanitized": "4.0.2", - "eslint-visitor-keys": "4.0.0", - "espree": "10.0.1", - "esprima": "4.0.1", - "fast-json-patch": "3.1.1", - "glob": "10.4.2", - "image-size": "1.1.1", - "is-mergeable-object": "1.1.1", - "jed": "1.1.1", - "json-merge-patch": "1.0.2", - "os-locale": "5.0.0", - "pino": "8.20.0", - "relaxed-json": "1.0.3", - "semver": "7.6.2", - "sha.js": "2.4.11", - "source-map-support": "0.5.21", - "tosource": "1.0.0", - "upath": "2.0.1", - "yargs": "17.7.2", - "yauzl": "2.10.0" - }, - "bin": { - "addons-linter": "bin/addons-linter" - }, - "engines": { - "node": ">=16.0.0" - } - }, - "node_modules/addons-linter/node_modules/addons-scanner-utils": { - "version": "9.11.0", - "resolved": "https://registry.npmjs.org/addons-scanner-utils/-/addons-scanner-utils-9.11.0.tgz", - "integrity": "sha512-X95V8ymnue9EHmOLz3zJTGHvHDFlWKiavlH+kJKOlv2sJDWFvD3TWeJMHJgxS9GKOqT/545mOXvX3vuuGGum+g==", - "dependencies": { - "@types/yauzl": "2.10.3", - "common-tags": "1.8.2", - "first-chunk-stream": "3.0.0", - "strip-bom-stream": "4.0.0", - "upath": "2.0.1", - "yauzl": "2.10.0" - }, - "peerDependencies": { - "body-parser": "1.20.2", - "express": "4.19.2", - "node-fetch": "2.6.11", - "safe-compare": "1.1.4" - }, - "peerDependenciesMeta": { - "body-parser": { - "optional": true - }, - "express": { - "optional": true - }, - "node-fetch": { - "optional": true - }, - "safe-compare": { - "optional": true - } - } - }, - "node_modules/addons-linter/node_modules/ansi-styles": { - "version": "4.3.0", - "resolved": "https://registry.npmjs.org/ansi-styles/-/ansi-styles-4.3.0.tgz", - "integrity": "sha512-zbB9rCJAT1rbjiVDb2hqKFHNYLxgtk8NURxZ3IZwD3F6NtxbXZQCnnSi1Lkx+IDohdPlFp222wVALIheZJQSEg==", - "dependencies": { - "color-convert": "^2.0.1" - }, - "engines": { - "node": ">=8" - }, - "funding": { - "url": "https://github.com/chalk/ansi-styles?sponsor=1" - } - }, - "node_modules/addons-linter/node_modules/brace-expansion": { - "version": "2.0.1", - "resolved": "https://registry.npmjs.org/brace-expansion/-/brace-expansion-2.0.1.tgz", - "integrity": "sha512-XnAIvQ8eM+kC6aULx6wuQiwVsnzsi9d3WxzV3FpWTGA19F621kwdbsAcFKXgKUHZWsy+mY6iL1sHTxWEFCytDA==", - "dependencies": { - "balanced-match": "^1.0.0" - } - }, - "node_modules/addons-linter/node_modules/chalk": { - "version": "4.1.2", - "resolved": "https://registry.npmjs.org/chalk/-/chalk-4.1.2.tgz", - "integrity": "sha512-oKnbhFyRIXpUuez8iBMmyEa4nbj4IOQyuhc/wy9kY7/WVPcwIO9VA668Pu8RkO7+0G76SLROeyw9CpQ061i4mA==", - "dependencies": { - "ansi-styles": "^4.1.0", - "supports-color": "^7.1.0" - }, - "engines": { - "node": ">=10" - }, - "funding": { - "url": "https://github.com/chalk/chalk?sponsor=1" - } - }, - "node_modules/addons-linter/node_modules/color-convert": { - "version": "2.0.1", - "resolved": "https://registry.npmjs.org/color-convert/-/color-convert-2.0.1.tgz", - "integrity": "sha512-RRECPsj7iu/xb5oKYcsFHSppFNnsj/52OVTRKb4zP5onXwVF3zVmmToNcOfGC+CRDpfK/U584fMg38ZHCaElKQ==", - "dependencies": { - "color-name": "~1.1.4" - }, - "engines": { - "node": ">=7.0.0" - } - }, - "node_modules/addons-linter/node_modules/color-name": { - "version": "1.1.4", - "resolved": "https://registry.npmjs.org/color-name/-/color-name-1.1.4.tgz", - "integrity": "sha512-dOy+3AuW3a2wNbZHIuMZpTcgjGuLU/uBL/ubcZF9OXbDo8ff4O8yVp5Bf0efS8uEoYo5q4Fx7dY9OgQGXgAsQA==" - }, - "node_modules/addons-linter/node_modules/eslint-visitor-keys": { - "version": "4.0.0", - "resolved": "https://registry.npmjs.org/eslint-visitor-keys/-/eslint-visitor-keys-4.0.0.tgz", - "integrity": "sha512-OtIRv/2GyiF6o/d8K7MYKKbXrOUBIK6SfkIRM4Z0dY3w+LiQ0vy3F57m0Z71bjbyeiWFiHJ8brqnmE6H6/jEuw==", - "engines": { - "node": "^18.18.0 || ^20.9.0 || >=21.1.0" - }, - "funding": { - "url": "https://opencollective.com/eslint" - } - }, - "node_modules/addons-linter/node_modules/espree": { - "version": "10.0.1", - "resolved": "https://registry.npmjs.org/espree/-/espree-10.0.1.tgz", - "integrity": "sha512-MWkrWZbJsL2UwnjxTX3gG8FneachS/Mwg7tdGXce011sJd5b0JG54vat5KHnfSBODZ3Wvzd2WnjxyzsRoVv+ww==", - "dependencies": { - "acorn": "^8.11.3", - "acorn-jsx": "^5.3.2", - "eslint-visitor-keys": "^4.0.0" - }, - "engines": { - "node": "^18.18.0 || ^20.9.0 || >=21.1.0" - }, - "funding": { - "url": "https://opencollective.com/eslint" - } - }, - "node_modules/addons-linter/node_modules/foreground-child": { - "version": "3.2.1", - "resolved": "https://registry.npmjs.org/foreground-child/-/foreground-child-3.2.1.tgz", - "integrity": "sha512-PXUUyLqrR2XCWICfv6ukppP96sdFwWbNEnfEMt7jNsISjMsvaLNinAHNDYyvkyU+SZG2BTSbT5NjG+vZslfGTA==", - "dependencies": { - "cross-spawn": "^7.0.0", - "signal-exit": "^4.0.1" - }, - "engines": { - "node": ">=14" - }, - "funding": { - "url": "https://github.com/sponsors/isaacs" - } - }, - "node_modules/addons-linter/node_modules/glob": { - "version": "10.4.2", - "resolved": "https://registry.npmjs.org/glob/-/glob-10.4.2.tgz", - "integrity": "sha512-GwMlUF6PkPo3Gk21UxkCohOv0PLcIXVtKyLlpEI28R/cO/4eNOdmLk3CMW1wROV/WR/EsZOWAfBbBOqYvs88/w==", - "dependencies": { - "foreground-child": "^3.1.0", - "jackspeak": "^3.1.2", - "minimatch": "^9.0.4", - "minipass": "^7.1.2", - "package-json-from-dist": "^1.0.0", - "path-scurry": "^1.11.1" - }, - "bin": { - "glob": "dist/esm/bin.mjs" - }, - "engines": { - "node": ">=16 || 14 >=14.18" - }, - "funding": { - "url": "https://github.com/sponsors/isaacs" - } - }, - "node_modules/addons-linter/node_modules/has-flag": { - "version": "4.0.0", - "resolved": "https://registry.npmjs.org/has-flag/-/has-flag-4.0.0.tgz", - "integrity": "sha512-EykJT/Q1KjTWctppgIAgfSO0tKVuZUjhgMr17kqTumMl6Afv3EISleU7qZUzoXDFTAHTDC4NOoG/ZxU3EvlMPQ==", - "engines": { - "node": ">=8" - } - }, - "node_modules/addons-linter/node_modules/minimatch": { - "version": "9.0.4", - "resolved": "https://registry.npmjs.org/minimatch/-/minimatch-9.0.4.tgz", - "integrity": "sha512-KqWh+VchfxcMNRAJjj2tnsSJdNbHsVgnkBhTNrW7AjVo6OvLtxw8zfT9oLw1JSohlFzJ8jCoTgaoXvJ+kHt6fw==", - "dependencies": { - "brace-expansion": "^2.0.1" - }, - "engines": { - "node": ">=16 || 14 >=14.17" - }, - "funding": { - "url": "https://github.com/sponsors/isaacs" - } - }, - "node_modules/addons-linter/node_modules/node-fetch": { - "version": "2.6.11", - "resolved": "https://registry.npmjs.org/node-fetch/-/node-fetch-2.6.11.tgz", - "integrity": "sha512-4I6pdBY1EthSqDmJkiNk3JIT8cswwR9nfeW/cPdUagJYEQG7R95WRH74wpz7ma8Gh/9dI9FP+OU+0E4FvtA55w==", - "optional": true, - "peer": true, - "dependencies": { - "whatwg-url": "^5.0.0" - }, - "engines": { - "node": "4.x || >=6.0.0" - }, - "peerDependencies": { - "encoding": "^0.1.0" - }, - "peerDependenciesMeta": { - "encoding": { - "optional": true - } - } - }, - "node_modules/addons-linter/node_modules/semver": { - "version": "7.6.2", - "resolved": "https://registry.npmjs.org/semver/-/semver-7.6.2.tgz", - "integrity": "sha512-FNAIBWCx9qcRhoHcgcJ0gvU7SN1lYU2ZXuSfl04bSC5OpvDHFyJCjdNHomPXxjQlCBU67YW64PzY7/VIEH7F2w==", - "bin": { - "semver": "bin/semver.js" - }, - "engines": { - "node": ">=10" - } - }, - "node_modules/addons-linter/node_modules/signal-exit": { - "version": "4.1.0", - "resolved": "https://registry.npmjs.org/signal-exit/-/signal-exit-4.1.0.tgz", - "integrity": "sha512-bzyZ1e88w9O1iNJbKnOlvYTrWPDl46O1bG0D3XInv+9tkPrxrN8jUUTiFlDkkmKWgn1M6CfIA13SuGqOa9Korw==", - "engines": { - "node": ">=14" - }, - "funding": { - "url": "https://github.com/sponsors/isaacs" - } - }, - "node_modules/addons-linter/node_modules/supports-color": { - "version": "7.2.0", - "resolved": "https://registry.npmjs.org/supports-color/-/supports-color-7.2.0.tgz", - "integrity": "sha512-qpCAvRl9stuOHveKsn7HncJRvv501qIacKzQlO/+Lwxc9+0q2wLyv4Dfvt80/DPn2pqOBsJdDiogXGR9+OvwRw==", - "dependencies": { - "has-flag": "^4.0.0" - }, - "engines": { - "node": ">=8" - } - }, - "node_modules/addons-moz-compare": { - "version": "1.3.0", - "resolved": "https://registry.npmjs.org/addons-moz-compare/-/addons-moz-compare-1.3.0.tgz", - "integrity": "sha512-/rXpQeaY0nOKhNx00pmZXdk5Mu+KhVlL3/pSBuAYwrxRrNiTvI/9xfQI8Lmm7DMMl+PDhtfAHY/0ibTpdeoQQQ==" - }, "node_modules/adm-zip": { "version": "0.5.9", "resolved": "https://registry.npmjs.org/adm-zip/-/adm-zip-0.5.9.tgz", @@ -3557,17 +3210,6 @@ "node": ">=6.0" } }, - "node_modules/agent-base": { - "version": "7.1.0", - "resolved": "https://registry.npmjs.org/agent-base/-/agent-base-7.1.0.tgz", - "integrity": "sha512-o/zjMZRhJxny7OyEF+Op8X+efiELC7k7yOjMzgfzVqOzXqkBkWI79YoTdOtsuWd5BWhAGAuOY/Xa6xpiaWXiNg==", - "dependencies": { - "debug": "^4.3.4" - }, - "engines": { - "node": ">= 14" - } - }, "node_modules/aggregate-error": { "version": "3.1.0", "resolved": "https://registry.npmjs.org/aggregate-error/-/aggregate-error-3.1.0.tgz", @@ -3585,6 +3227,7 @@ "version": "8.16.0", "resolved": "https://registry.npmjs.org/ajv/-/ajv-8.16.0.tgz", "integrity": "sha512-F0twR8U1ZU67JIEtekUcLkXkoO5mMMmgGD8sK/xUFzJ805jxHQl92hImFAqqXMyMYjSPOyUPAwHYhB72g5sTXw==", + "dev": true, "dependencies": { "fast-deep-equal": "^3.1.3", "json-schema-traverse": "^1.0.0", @@ -3842,14 +3485,6 @@ "node": ">= 4.0.0" } }, - "node_modules/atomic-sleep": { - "version": "1.0.0", - "resolved": "https://registry.npmjs.org/atomic-sleep/-/atomic-sleep-1.0.0.tgz", - "integrity": "sha512-kNOjDqAh7px0XWNI+4QbzoiR/nTkHAWNud2uvnJquD1/x5a7EQZMJT0AczqK0Qn67oY/TTQ1LbUKajZpp3I9tQ==", - "engines": { - "node": ">=8.0.0" - } - }, "node_modules/available-typed-arrays": { "version": "1.0.5", "resolved": "https://registry.npmjs.org/available-typed-arrays/-/available-typed-arrays-1.0.5.tgz", @@ -3928,33 +3563,6 @@ "resolved": "https://registry.npmjs.org/balanced-match/-/balanced-match-1.0.2.tgz", "integrity": "sha512-3oSeUO0TMV67hN1AmbXsK4yaqU7tjiHlbxRDZOpH0KW9+CeX4bRAaX0Anxt0tx2MrpRpWwQaPwIlISEJhYU5Pw==" }, - "node_modules/base64-js": { - "version": "1.5.1", - "resolved": "https://registry.npmjs.org/base64-js/-/base64-js-1.5.1.tgz", - "integrity": "sha512-AKpaYlHn8t4SVbOHCy+b5+KKgvR4vrsD8vbvrbiQJps7fKDTkjkDry6ji0rUJjC0kzbNePLwzxq8iypo41qeWA==", - "funding": [ - { - "type": "github", - "url": "https://github.com/sponsors/feross" - }, - { - "type": "patreon", - "url": "https://www.patreon.com/feross" - }, - { - "type": "consulting", - "url": "https://feross.org/support" - } - ] - }, - "node_modules/big-integer": { - "version": "1.6.51", - "resolved": "https://registry.npmjs.org/big-integer/-/big-integer-1.6.51.tgz", - "integrity": "sha512-GPEid2Y9QU1Exl1rpO9B2IPJGHPSupF5GnVIP0blYvNOMer2bTvSWs1jGOUg04hTmu67nmLsQ9TBo1puaotBHg==", - "engines": { - "node": ">=0.6" - } - }, "node_modules/binary-extensions": { "version": "2.2.0", "resolved": "https://registry.npmjs.org/binary-extensions/-/binary-extensions-2.2.0.tgz", @@ -3969,11 +3577,6 @@ "resolved": "https://registry.npmjs.org/bluebird/-/bluebird-3.7.2.tgz", "integrity": "sha512-XpNj6GDQzdfW+r2Wnn7xiSAd7TM3jzkxGXBGTtWKuSXv1xUV+azxAm8jdWZN06QTQk+2N2XB9jRDkvbmQmcRtg==" }, - "node_modules/boolbase": { - "version": "1.0.0", - "resolved": "https://registry.npmjs.org/boolbase/-/boolbase-1.0.0.tgz", - "integrity": "sha512-JZOSA7Mo9sNGB8+UjSgzdLtokWAky1zbztM3WRLCbZ70/3cTANmQmOdR7y2g+J0e2WXywy1yS468tY+IruqEww==" - }, "node_modules/boxen": { "version": "7.0.0", "resolved": "https://registry.npmjs.org/boxen/-/boxen-7.0.0.tgz", @@ -4028,17 +3631,6 @@ "url": "https://github.com/sponsors/sindresorhus" } }, - "node_modules/bplist-parser": { - "version": "0.2.0", - "resolved": "https://registry.npmjs.org/bplist-parser/-/bplist-parser-0.2.0.tgz", - "integrity": "sha512-z0M+byMThzQmD9NILRniCUXYsYpjwnlO8N5uCFaCqIOpqRsJCrQL9NK3JsD67CN5a08nF5oIL2bD6loTdHOuKw==", - "dependencies": { - "big-integer": "^1.6.44" - }, - "engines": { - "node": ">= 5.10.0" - } - }, "node_modules/brace-expansion": { "version": "1.1.11", "resolved": "https://registry.npmjs.org/brace-expansion/-/brace-expansion-1.1.11.tgz", @@ -4098,33 +3690,11 @@ "node": "^6 || ^7 || ^8 || ^9 || ^10 || ^11 || ^12 || >=13.7" } }, - "node_modules/buffer": { - "version": "6.0.3", - "resolved": "https://registry.npmjs.org/buffer/-/buffer-6.0.3.tgz", - "integrity": "sha512-FTiCpNxtwiZZHEZbcbTIcZjERVICn9yq/pDFkTl95/AxzD1naBctN7YO68riM/gLSDY7sdrMby8hofADYuuqOA==", - "funding": [ - { - "type": "github", - "url": "https://github.com/sponsors/feross" - }, - { - "type": "patreon", - "url": "https://www.patreon.com/feross" - }, - { - "type": "consulting", - "url": "https://feross.org/support" - } - ], - "dependencies": { - "base64-js": "^1.3.1", - "ieee754": "^1.2.1" - } - }, "node_modules/buffer-crc32": { "version": "0.2.13", "resolved": "https://registry.npmjs.org/buffer-crc32/-/buffer-crc32-0.2.13.tgz", "integrity": "sha512-VO9Ht/+p3SN7SKWqcrgEzjGbRSJYTx+Q1pTQC0wrWqHx0vpJraQ6GtHx8tvcg1rlK1byhU5gccxgOgj7B0TDkQ==", + "dev": true, "engines": { "node": "*" } @@ -4134,20 +3704,6 @@ "resolved": "https://registry.npmjs.org/buffer-from/-/buffer-from-1.1.2.tgz", "integrity": "sha512-E+XQCRwSbaaiChtv6k6Dwgc+bx+Bs6vuKJHHl5kox/BaKbhiXzqQOwK4cO22yElGp2OCmjwVhT3HmxgyPGnJfQ==" }, - "node_modules/bundle-name": { - "version": "3.0.0", - "resolved": "https://registry.npmjs.org/bundle-name/-/bundle-name-3.0.0.tgz", - "integrity": "sha512-PKA4BeSvBpQKQ8iPOGCSiell+N8P+Tf1DlwqmYhpe2gAhKPHn8EYOxVT+ShuGmhg8lN8XiSlS80yiExKXrURlw==", - "dependencies": { - "run-applescript": "^5.0.0" - }, - "engines": { - "node": ">=12" - }, - "funding": { - "url": "https://github.com/sponsors/sindresorhus" - } - }, "node_modules/bunyan": { "version": "1.8.15", "resolved": "https://registry.npmjs.org/bunyan/-/bunyan-1.8.15.tgz", @@ -4238,21 +3794,11 @@ "version": "3.1.0", "resolved": "https://registry.npmjs.org/callsites/-/callsites-3.1.0.tgz", "integrity": "sha512-P8BjAsXvZS+VIDUI11hHCQEv74YT67YUi5JJFNWIqL235sBmjX4+qx9Muvls5ivyNENctx46xQLQ3aTuE7ssaQ==", + "dev": true, "engines": { "node": ">=6" } }, - "node_modules/camelcase": { - "version": "8.0.0", - "resolved": "https://registry.npmjs.org/camelcase/-/camelcase-8.0.0.tgz", - "integrity": "sha512-8WB3Jcas3swSvjIeA2yvCJ+Miyz5l1ZmB6HFb9R1317dt9LCQoswg/BGrmAmkWVEszSrrg4RwmO46qIm2OEnSA==", - "engines": { - "node": ">=16" - }, - "funding": { - "url": "https://github.com/sponsors/sindresorhus" - } - }, "node_modules/caniuse-lite": { "version": "1.0.30001599", "resolved": "https://registry.npmjs.org/caniuse-lite/-/caniuse-lite-1.0.30001599.tgz", @@ -4337,42 +3883,6 @@ "node": "*" } }, - "node_modules/cheerio": { - "version": "1.0.0-rc.12", - "resolved": "https://registry.npmjs.org/cheerio/-/cheerio-1.0.0-rc.12.tgz", - "integrity": "sha512-VqR8m68vM46BNnuZ5NtnGBKIE/DfN0cRIzg9n40EIq9NOv90ayxLBXA8fXC5gquFRGJSTRqBq25Jt2ECLR431Q==", - "dependencies": { - "cheerio-select": "^2.1.0", - "dom-serializer": "^2.0.0", - "domhandler": "^5.0.3", - "domutils": "^3.0.1", - "htmlparser2": "^8.0.1", - "parse5": "^7.0.0", - "parse5-htmlparser2-tree-adapter": "^7.0.0" - }, - "engines": { - "node": ">= 6" - }, - "funding": { - "url": "https://github.com/cheeriojs/cheerio?sponsor=1" - } - }, - "node_modules/cheerio-select": { - "version": "2.1.0", - "resolved": "https://registry.npmjs.org/cheerio-select/-/cheerio-select-2.1.0.tgz", - "integrity": "sha512-9v9kG0LvzrlcungtnJtpGNxY+fzECQKhK4EGJX2vByejiMX84MFNQw4UxPJl3bFbTMw+Dfs37XaIkCwTZfLh4g==", - "dependencies": { - "boolbase": "^1.0.0", - "css-select": "^5.1.0", - "css-what": "^6.1.0", - "domelementtype": "^2.3.0", - "domhandler": "^5.0.3", - "domutils": "^3.0.1" - }, - "funding": { - "url": "https://github.com/sponsors/fb55" - } - }, "node_modules/chokidar": { "version": "3.5.3", "resolved": "https://registry.npmjs.org/chokidar/-/chokidar-3.5.3.tgz", @@ -4401,14 +3911,14 @@ } }, "node_modules/chrome-launcher": { - "version": "0.15.1", - "resolved": "https://registry.npmjs.org/chrome-launcher/-/chrome-launcher-0.15.1.tgz", - "integrity": "sha512-UugC8u59/w2AyX5sHLZUHoxBAiSiunUhZa3zZwMH6zPVis0C3dDKiRWyUGIo14tTbZHGVviWxv3PQWZ7taZ4fg==", + "version": "1.1.0", + "resolved": "https://registry.npmjs.org/chrome-launcher/-/chrome-launcher-1.1.0.tgz", + "integrity": "sha512-rJYWeEAERwWIr3c3mEVXwNiODPEdMRlRxHc47B1qHPOolHZnkj7rMv1QSUfPoG6MgatWj5AxSpnKKR4QEwEQIQ==", "dependencies": { "@types/node": "*", "escape-string-regexp": "^4.0.0", "is-wsl": "^2.2.0", - "lighthouse-logger": "^1.0.0" + "lighthouse-logger": "^2.0.1" }, "bin": { "print-chrome-path": "bin/print-chrome-path.js" @@ -4534,14 +4044,6 @@ "url": "https://github.com/chalk/wrap-ansi?sponsor=1" } }, - "node_modules/clone": { - "version": "1.0.4", - "resolved": "https://registry.npmjs.org/clone/-/clone-1.0.4.tgz", - "integrity": "sha512-JQHZ2QMW6l3aH/j6xCqQThY/9OH4D/9ls34cgkUBiEeocRTU04tHfKPBsUK1PqZCUQM7GiA0IIXJSuXHI64Kbg==", - "engines": { - "node": ">=0.8" - } - }, "node_modules/clone-deep": { "version": "4.0.1", "resolved": "https://registry.npmjs.org/clone-deep/-/clone-deep-4.0.1.tgz", @@ -4578,18 +4080,6 @@ "node": ">=0.1.90" } }, - "node_modules/columnify": { - "version": "1.6.0", - "resolved": "https://registry.npmjs.org/columnify/-/columnify-1.6.0.tgz", - "integrity": "sha512-lomjuFZKfM6MSAnV9aCZC9sc0qGbmZdfygNv+nCpqVkSKdCxCklLtd16O0EILGkImHw9ZpHkAnHaB+8Zxq5W6Q==", - "dependencies": { - "strip-ansi": "^6.0.1", - "wcwidth": "^1.0.0" - }, - "engines": { - "node": ">=8.0.0" - } - }, "node_modules/commander": { "version": "6.2.1", "resolved": "https://registry.npmjs.org/commander/-/commander-6.2.1.tgz", @@ -4599,14 +4089,6 @@ "node": ">= 6" } }, - "node_modules/common-tags": { - "version": "1.8.2", - "resolved": "https://registry.npmjs.org/common-tags/-/common-tags-1.8.2.tgz", - "integrity": "sha512-gk/Z852D2Wtb//0I+kRFNKKE9dIIVirjoqPoA1wJU+XePVXZfGeBpk45+A1rKO4Q43prqWBNY/MiIeRLbPWUaA==", - "engines": { - "node": ">=4.0.0" - } - }, "node_modules/commondir": { "version": "1.0.1", "resolved": "https://registry.npmjs.org/commondir/-/commondir-1.0.1.tgz", @@ -4901,6 +4383,7 @@ "version": "7.0.3", "resolved": "https://registry.npmjs.org/cross-spawn/-/cross-spawn-7.0.3.tgz", "integrity": "sha512-iRDPJKUPVEND7dHPO8rkbOnPpyDygcDFtWjpeWNCgy8WP2rXcxXL8TskReQl6OrB2G7+UJrags1q15Fudc7G6w==", + "dev": true, "dependencies": { "path-key": "^3.1.0", "shebang-command": "^2.0.0", @@ -4935,32 +4418,6 @@ "url": "https://github.com/sponsors/sindresorhus" } }, - "node_modules/css-select": { - "version": "5.1.0", - "resolved": "https://registry.npmjs.org/css-select/-/css-select-5.1.0.tgz", - "integrity": "sha512-nwoRF1rvRRnnCqqY7updORDsuqKzqYJ28+oSMaJMMgOauh3fvwHqMS7EZpIPqK8GL+g9mKxF1vP/ZjSeNjEVHg==", - "dependencies": { - "boolbase": "^1.0.0", - "css-what": "^6.1.0", - "domhandler": "^5.0.2", - "domutils": "^3.0.1", - "nth-check": "^2.0.1" - }, - "funding": { - "url": "https://github.com/sponsors/fb55" - } - }, - "node_modules/css-what": { - "version": "6.1.0", - "resolved": "https://registry.npmjs.org/css-what/-/css-what-6.1.0.tgz", - "integrity": "sha512-HTUrgRJ7r4dsZKU6GjmpfRK1O76h97Z8MfS1G0FozR+oF2kG6Vfe8JE6zwrkbxigziPHinCJ+gCPjA9EaBDtRw==", - "engines": { - "node": ">= 6" - }, - "funding": { - "url": "https://github.com/sponsors/fb55" - } - }, "node_modules/dargs": { "version": "8.1.0", "resolved": "https://registry.npmjs.org/dargs/-/dargs-8.1.0.tgz", @@ -4973,14 +4430,6 @@ "url": "https://github.com/sponsors/sindresorhus" } }, - "node_modules/data-uri-to-buffer": { - "version": "4.0.0", - "resolved": "https://registry.npmjs.org/data-uri-to-buffer/-/data-uri-to-buffer-4.0.0.tgz", - "integrity": "sha512-Vr3mLBA8qWmcuschSLAOogKgQ/Jwxulv3RNE4FXnYWRGujzrRWQI4m12fQqRkwX06C0KanhLr4hK+GydchZsaA==", - "engines": { - "node": ">= 12" - } - }, "node_modules/debounce": { "version": "1.2.1", "resolved": "https://registry.npmjs.org/debounce/-/debounce-1.2.1.tgz", @@ -5002,17 +4451,6 @@ } } }, - "node_modules/decamelize": { - "version": "6.0.0", - "resolved": "https://registry.npmjs.org/decamelize/-/decamelize-6.0.0.tgz", - "integrity": "sha512-Fv96DCsdOgB6mdGl67MT5JaTNKRzrzill5OH5s8bjYJXVlcXyPYGyPsUkWyGV5p1TXI5esYIYMMeDJL0hEIwaA==", - "engines": { - "node": "^12.20.0 || ^14.13.1 || >=16.0.0" - }, - "funding": { - "url": "https://github.com/sponsors/sindresorhus" - } - }, "node_modules/decompress-response": { "version": "6.0.0", "resolved": "https://registry.npmjs.org/decompress-response/-/decompress-response-6.0.0.tgz", @@ -5061,7 +4499,8 @@ "node_modules/deep-is": { "version": "0.1.4", "resolved": "https://registry.npmjs.org/deep-is/-/deep-is-0.1.4.tgz", - "integrity": "sha512-oIPzksmTg4/MriiaYGO+okXDT7ztn/w3Eptv/+gSIdMdKsJo0u4CfYNFJPy+4SKMuCqGw2wxnA+URMg3t8a/bQ==" + "integrity": "sha512-oIPzksmTg4/MriiaYGO+okXDT7ztn/w3Eptv/+gSIdMdKsJo0u4CfYNFJPy+4SKMuCqGw2wxnA+URMg3t8a/bQ==", + "dev": true }, "node_modules/deepcopy": { "version": "2.1.0", @@ -5072,148 +4511,6 @@ "type-detect": "^4.0.8" } }, - "node_modules/deepmerge": { - "version": "4.3.1", - "resolved": "https://registry.npmjs.org/deepmerge/-/deepmerge-4.3.1.tgz", - "integrity": "sha512-3sUqbMEc77XqpdNO7FRyRog+eW3ph+GYCbj+rK+uYyRMuwsVy0rMiVtPn+QJlKFvWP/1PYpapqYn0Me2knFn+A==", - "engines": { - "node": ">=0.10.0" - } - }, - "node_modules/default-browser": { - "version": "4.0.0", - "resolved": "https://registry.npmjs.org/default-browser/-/default-browser-4.0.0.tgz", - "integrity": "sha512-wX5pXO1+BrhMkSbROFsyxUm0i/cJEScyNhA4PPxc41ICuv05ZZB/MX28s8aZx6xjmatvebIapF6hLEKEcpneUA==", - "dependencies": { - "bundle-name": "^3.0.0", - "default-browser-id": "^3.0.0", - "execa": "^7.1.1", - "titleize": "^3.0.0" - }, - "engines": { - "node": ">=14.16" - }, - "funding": { - "url": "https://github.com/sponsors/sindresorhus" - } - }, - "node_modules/default-browser-id": { - "version": "3.0.0", - "resolved": "https://registry.npmjs.org/default-browser-id/-/default-browser-id-3.0.0.tgz", - "integrity": "sha512-OZ1y3y0SqSICtE8DE4S8YOE9UZOJ8wO16fKWVP5J1Qz42kV9jcnMVFrEE/noXb/ss3Q4pZIH79kxofzyNNtUNA==", - "dependencies": { - "bplist-parser": "^0.2.0", - "untildify": "^4.0.0" - }, - "engines": { - "node": ">=12" - }, - "funding": { - "url": "https://github.com/sponsors/sindresorhus" - } - }, - "node_modules/default-browser/node_modules/execa": { - "version": "7.1.1", - "resolved": "https://registry.npmjs.org/execa/-/execa-7.1.1.tgz", - "integrity": "sha512-wH0eMf/UXckdUYnO21+HDztteVv05rq2GXksxT4fCGeHkBhw1DROXh40wcjMcRqDOWE7iPJ4n3M7e2+YFP+76Q==", - "dependencies": { - "cross-spawn": "^7.0.3", - "get-stream": "^6.0.1", - "human-signals": "^4.3.0", - "is-stream": "^3.0.0", - "merge-stream": "^2.0.0", - "npm-run-path": "^5.1.0", - "onetime": "^6.0.0", - "signal-exit": "^3.0.7", - "strip-final-newline": "^3.0.0" - }, - "engines": { - "node": "^14.18.0 || ^16.14.0 || >=18.0.0" - }, - "funding": { - "url": "https://github.com/sindresorhus/execa?sponsor=1" - } - }, - "node_modules/default-browser/node_modules/human-signals": { - "version": "4.3.1", - "resolved": "https://registry.npmjs.org/human-signals/-/human-signals-4.3.1.tgz", - "integrity": "sha512-nZXjEF2nbo7lIw3mgYjItAfgQXog3OjJogSbKa2CQIIvSGWcKgeJnQlNXip6NglNzYH45nSRiEVimMvYL8DDqQ==", - "engines": { - "node": ">=14.18.0" - } - }, - "node_modules/default-browser/node_modules/is-stream": { - "version": "3.0.0", - "resolved": "https://registry.npmjs.org/is-stream/-/is-stream-3.0.0.tgz", - "integrity": "sha512-LnQR4bZ9IADDRSkvpqMGvt/tEJWclzklNgSw48V5EAaAeDd6qGvN8ei6k5p0tvxSR171VmGyHuTiAOfxAbr8kA==", - "engines": { - "node": "^12.20.0 || ^14.13.1 || >=16.0.0" - }, - "funding": { - "url": "https://github.com/sponsors/sindresorhus" - } - }, - "node_modules/default-browser/node_modules/mimic-fn": { - "version": "4.0.0", - "resolved": "https://registry.npmjs.org/mimic-fn/-/mimic-fn-4.0.0.tgz", - "integrity": "sha512-vqiC06CuhBTUdZH+RYl8sFrL096vA45Ok5ISO6sE/Mr1jRbGH4Csnhi8f3wKVl7x8mO4Au7Ir9D3Oyv1VYMFJw==", - "engines": { - "node": ">=12" - }, - "funding": { - "url": "https://github.com/sponsors/sindresorhus" - } - }, - "node_modules/default-browser/node_modules/npm-run-path": { - "version": "5.1.0", - "resolved": "https://registry.npmjs.org/npm-run-path/-/npm-run-path-5.1.0.tgz", - "integrity": "sha512-sJOdmRGrY2sjNTRMbSvluQqg+8X7ZK61yvzBEIDhz4f8z1TZFYABsqjjCBd/0PUNE9M6QDgHJXQkGUEm7Q+l9Q==", - "dependencies": { - "path-key": "^4.0.0" - }, - "engines": { - "node": "^12.20.0 || ^14.13.1 || >=16.0.0" - }, - "funding": { - "url": "https://github.com/sponsors/sindresorhus" - } - }, - "node_modules/default-browser/node_modules/onetime": { - "version": "6.0.0", - "resolved": "https://registry.npmjs.org/onetime/-/onetime-6.0.0.tgz", - "integrity": "sha512-1FlR+gjXK7X+AsAHso35MnyN5KqGwJRi/31ft6x0M194ht7S+rWAvd7PHss9xSKMzE0asv1pyIHaJYq+BbacAQ==", - "dependencies": { - "mimic-fn": "^4.0.0" - }, - "engines": { - "node": ">=12" - }, - "funding": { - "url": "https://github.com/sponsors/sindresorhus" - } - }, - "node_modules/default-browser/node_modules/path-key": { - "version": "4.0.0", - "resolved": "https://registry.npmjs.org/path-key/-/path-key-4.0.0.tgz", - "integrity": "sha512-haREypq7xkM7ErfgIyA0z+Bj4AGKlMSdlQE2jvJo6huWD1EdkKYV+G/T4nq0YEF2vgTT8kqMFKo1uHn950r4SQ==", - "engines": { - "node": ">=12" - }, - "funding": { - "url": "https://github.com/sponsors/sindresorhus" - } - }, - "node_modules/default-browser/node_modules/strip-final-newline": { - "version": "3.0.0", - "resolved": "https://registry.npmjs.org/strip-final-newline/-/strip-final-newline-3.0.0.tgz", - "integrity": "sha512-dOESqjYr96iWYylGObzd39EuNTa5VJxyvVAEm5Jnh7KGo75V43Hk1odPQkNDyXNmUR6k+gEiDVXnjB8HJ3crXw==", - "engines": { - "node": ">=12" - }, - "funding": { - "url": "https://github.com/sponsors/sindresorhus" - } - }, "node_modules/default-require-extensions": { "version": "3.0.0", "resolved": "https://registry.npmjs.org/default-require-extensions/-/default-require-extensions-3.0.0.tgz", @@ -5235,14 +4532,6 @@ "node": ">=8" } }, - "node_modules/defaults": { - "version": "1.0.3", - "resolved": "https://registry.npmjs.org/defaults/-/defaults-1.0.3.tgz", - "integrity": "sha512-s82itHOnYrN0Ib8r+z7laQz3sdE+4FP3d9Q7VLO7U+KRT+CR0GsWuyHxzdAY82I7cXv0G/twrqomTJLOssO5HA==", - "dependencies": { - "clone": "^1.0.2" - } - }, "node_modules/defer-to-connect": { "version": "2.0.1", "resolved": "https://registry.npmjs.org/defer-to-connect/-/defer-to-connect-2.0.1.tgz", @@ -5265,17 +4554,6 @@ "node": ">= 0.4" } }, - "node_modules/define-lazy-prop": { - "version": "3.0.0", - "resolved": "https://registry.npmjs.org/define-lazy-prop/-/define-lazy-prop-3.0.0.tgz", - "integrity": "sha512-N+MeXYoqr3pOgn8xfyRPREN7gHakLYjhsHhWGT3fWAiL4IkAt0iDw14QiiEm2bE30c5XX5q0FtAA3CK5f9/BUg==", - "engines": { - "node": ">=12" - }, - "funding": { - "url": "https://github.com/sponsors/sindresorhus" - } - }, "node_modules/define-properties": { "version": "1.2.1", "resolved": "https://registry.npmjs.org/define-properties/-/define-properties-1.2.1.tgz", @@ -5306,6 +4584,7 @@ "version": "3.0.0", "resolved": "https://registry.npmjs.org/doctrine/-/doctrine-3.0.0.tgz", "integrity": "sha512-yS+Q5i3hBf7GBkd4KG8a7eBNNWNGLTaEwwYWUijIYM7zrlYDM0BFXHjjPWlWZ1Rg7UaddZeIDmi9jF3HmqiQ2w==", + "dev": true, "dependencies": { "esutils": "^2.0.2" }, @@ -5313,57 +4592,6 @@ "node": ">=6.0.0" } }, - "node_modules/dom-serializer": { - "version": "2.0.0", - "resolved": "https://registry.npmjs.org/dom-serializer/-/dom-serializer-2.0.0.tgz", - "integrity": "sha512-wIkAryiqt/nV5EQKqQpo3SToSOV9J0DnbJqwK7Wv/Trc92zIAYZ4FlMu+JPFW1DfGFt81ZTCGgDEabffXeLyJg==", - "dependencies": { - "domelementtype": "^2.3.0", - "domhandler": "^5.0.2", - "entities": "^4.2.0" - }, - "funding": { - "url": "https://github.com/cheeriojs/dom-serializer?sponsor=1" - } - }, - "node_modules/domelementtype": { - "version": "2.3.0", - "resolved": "https://registry.npmjs.org/domelementtype/-/domelementtype-2.3.0.tgz", - "integrity": "sha512-OLETBj6w0OsagBwdXnPdN0cnMfF9opN69co+7ZrbfPGrdpPVNBUj02spi6B1N7wChLQiPn4CSH/zJvXw56gmHw==", - "funding": [ - { - "type": "github", - "url": "https://github.com/sponsors/fb55" - } - ] - }, - "node_modules/domhandler": { - "version": "5.0.3", - "resolved": "https://registry.npmjs.org/domhandler/-/domhandler-5.0.3.tgz", - "integrity": "sha512-cgwlv/1iFQiFnU96XXgROh8xTeetsnJiDsTc7TYCLFd9+/WNkIqPTxiM/8pSd8VIrhXGTf1Ny1q1hquVqDJB5w==", - "dependencies": { - "domelementtype": "^2.3.0" - }, - "engines": { - "node": ">= 4" - }, - "funding": { - "url": "https://github.com/fb55/domhandler?sponsor=1" - } - }, - "node_modules/domutils": { - "version": "3.0.1", - "resolved": "https://registry.npmjs.org/domutils/-/domutils-3.0.1.tgz", - "integrity": "sha512-z08c1l761iKhDFtfXO04C7kTdPBLi41zwOZl00WS8b5eiaebNpY00HKbztwBq+e3vyqWNwWF3mP9YLUeqIrF+Q==", - "dependencies": { - "dom-serializer": "^2.0.0", - "domelementtype": "^2.3.0", - "domhandler": "^5.0.1" - }, - "funding": { - "url": "https://github.com/fb55/domutils?sponsor=1" - } - }, "node_modules/dot-prop": { "version": "5.3.0", "resolved": "https://registry.npmjs.org/dot-prop/-/dot-prop-5.3.0.tgz", @@ -5405,25 +4633,6 @@ "resolved": "https://registry.npmjs.org/emoji-regex/-/emoji-regex-9.2.2.tgz", "integrity": "sha512-L18DaJsXSUk2+42pv8mLs5jJT2hqFkFE4j21wOmgbUqsZ2hL72NsUU785g9RXgo3s0ZNgVl42TiHp3ZtOv/Vyg==" }, - "node_modules/end-of-stream": { - "version": "1.4.4", - "resolved": "https://registry.npmjs.org/end-of-stream/-/end-of-stream-1.4.4.tgz", - "integrity": "sha512-+uw1inIHVPQoaVuHzRyXd21icM+cnt4CzD5rW+NC1wjOUSTOs+Te7FOv7AhN7vS9x/oIyhLP5PR1H+phQAHu5Q==", - "dependencies": { - "once": "^1.4.0" - } - }, - "node_modules/entities": { - "version": "4.3.1", - "resolved": "https://registry.npmjs.org/entities/-/entities-4.3.1.tgz", - "integrity": "sha512-o4q/dYJlmyjP2zfnaWDUC6A3BQFmVTX+tZPezK7k0GLSU9QYCauscf5Y+qcEPzKL+EixVouYDgLQK5H9GrLpkg==", - "engines": { - "node": ">=0.12" - }, - "funding": { - "url": "https://github.com/fb55/entities?sponsor=1" - } - }, "node_modules/env-paths": { "version": "2.2.1", "resolved": "https://registry.npmjs.org/env-paths/-/env-paths-2.2.1.tgz", @@ -5543,6 +4752,7 @@ "version": "3.1.1", "resolved": "https://registry.npmjs.org/escalade/-/escalade-3.1.1.tgz", "integrity": "sha512-k0er2gUkLf8O0zKJiAhmkTnJlTvINGv7ygDNPbeIsX/TJjGJZHuh9B2UxbsaEkmlEo9MfhrSzmhIlhRlI2GXnw==", + "dev": true, "engines": { "node": ">=6" } @@ -5570,6 +4780,7 @@ "version": "8.57.0", "resolved": "https://registry.npmjs.org/eslint/-/eslint-8.57.0.tgz", "integrity": "sha512-dZ6+mexnaTIbSBZWgou51U6OmzIhYM2VcNdtiTtI7qPNZm35Akpr0f6vtw3w1Kmn5PYo+tZVfh13WrhpS6oLqQ==", + "dev": true, "dependencies": { "@eslint-community/eslint-utils": "^4.2.0", "@eslint-community/regexpp": "^4.6.1", @@ -5724,14 +4935,6 @@ "node": ">=0.10.0" } }, - "node_modules/eslint-plugin-no-unsanitized": { - "version": "4.0.2", - "resolved": "https://registry.npmjs.org/eslint-plugin-no-unsanitized/-/eslint-plugin-no-unsanitized-4.0.2.tgz", - "integrity": "sha512-Pry0S9YmHoz8NCEMRQh7N0Yexh2MYCNPIlrV52hTmS7qXnTghWsjXouF08bgsrrZqaW9tt1ZiK3j5NEmPE+EjQ==", - "peerDependencies": { - "eslint": "^6 || ^7 || ^8" - } - }, "node_modules/eslint-scope": { "version": "5.1.1", "resolved": "https://registry.npmjs.org/eslint-scope/-/eslint-scope-5.1.1.tgz", @@ -5758,6 +4961,7 @@ "version": "6.12.6", "resolved": "https://registry.npmjs.org/ajv/-/ajv-6.12.6.tgz", "integrity": "sha512-j3fVLgvTo527anyYyJOGTYJbG+vnnQYvE0m5mmkc1TK+nxAppkCLMIL0aZ4dblVCNoGShhm+kzE4ZUykBoMg4g==", + "dev": true, "dependencies": { "fast-deep-equal": "^3.1.1", "fast-json-stable-stringify": "^2.0.0", @@ -5773,6 +4977,7 @@ "version": "4.3.0", "resolved": "https://registry.npmjs.org/ansi-styles/-/ansi-styles-4.3.0.tgz", "integrity": "sha512-zbB9rCJAT1rbjiVDb2hqKFHNYLxgtk8NURxZ3IZwD3F6NtxbXZQCnnSi1Lkx+IDohdPlFp222wVALIheZJQSEg==", + "dev": true, "dependencies": { "color-convert": "^2.0.1" }, @@ -5786,12 +4991,14 @@ "node_modules/eslint/node_modules/argparse": { "version": "2.0.1", "resolved": "https://registry.npmjs.org/argparse/-/argparse-2.0.1.tgz", - "integrity": "sha512-8+9WqebbFzpX9OR+Wa6O29asIogeRMzcGtAINdpMHHyAg10f05aSFVBbcEqGf/PXw1EjAZ+q2/bEBg3DvurK3Q==" + "integrity": "sha512-8+9WqebbFzpX9OR+Wa6O29asIogeRMzcGtAINdpMHHyAg10f05aSFVBbcEqGf/PXw1EjAZ+q2/bEBg3DvurK3Q==", + "dev": true }, "node_modules/eslint/node_modules/chalk": { "version": "4.1.2", "resolved": "https://registry.npmjs.org/chalk/-/chalk-4.1.2.tgz", "integrity": "sha512-oKnbhFyRIXpUuez8iBMmyEa4nbj4IOQyuhc/wy9kY7/WVPcwIO9VA668Pu8RkO7+0G76SLROeyw9CpQ061i4mA==", + "dev": true, "dependencies": { "ansi-styles": "^4.1.0", "supports-color": "^7.1.0" @@ -5807,6 +5014,7 @@ "version": "2.0.1", "resolved": "https://registry.npmjs.org/color-convert/-/color-convert-2.0.1.tgz", "integrity": "sha512-RRECPsj7iu/xb5oKYcsFHSppFNnsj/52OVTRKb4zP5onXwVF3zVmmToNcOfGC+CRDpfK/U584fMg38ZHCaElKQ==", + "dev": true, "dependencies": { "color-name": "~1.1.4" }, @@ -5817,12 +5025,14 @@ "node_modules/eslint/node_modules/color-name": { "version": "1.1.4", "resolved": "https://registry.npmjs.org/color-name/-/color-name-1.1.4.tgz", - "integrity": "sha512-dOy+3AuW3a2wNbZHIuMZpTcgjGuLU/uBL/ubcZF9OXbDo8ff4O8yVp5Bf0efS8uEoYo5q4Fx7dY9OgQGXgAsQA==" + "integrity": "sha512-dOy+3AuW3a2wNbZHIuMZpTcgjGuLU/uBL/ubcZF9OXbDo8ff4O8yVp5Bf0efS8uEoYo5q4Fx7dY9OgQGXgAsQA==", + "dev": true }, "node_modules/eslint/node_modules/escape-string-regexp": { "version": "4.0.0", "resolved": "https://registry.npmjs.org/escape-string-regexp/-/escape-string-regexp-4.0.0.tgz", "integrity": "sha512-TtpcNJ3XAzx3Gq8sWRzJaVajRs0uVxA2YAkdb1jm2YkPz4G6egUFAyA3n5vtEIZefPk5Wa4UXbKuS5fKkJWdgA==", + "dev": true, "engines": { "node": ">=10" }, @@ -5834,6 +5044,7 @@ "version": "7.2.2", "resolved": "https://registry.npmjs.org/eslint-scope/-/eslint-scope-7.2.2.tgz", "integrity": "sha512-dOt21O7lTMhDM+X9mB4GX+DZrZtCUJPL/wlcTqxyrx5IvO0IYtILdtrQGQp+8n5S0gwSVmOf9NQrjMOgfQZlIg==", + "dev": true, "dependencies": { "esrecurse": "^4.3.0", "estraverse": "^5.2.0" @@ -5849,6 +5060,7 @@ "version": "3.4.3", "resolved": "https://registry.npmjs.org/eslint-visitor-keys/-/eslint-visitor-keys-3.4.3.tgz", "integrity": "sha512-wpc+LXeiyiisxPlEkUzU6svyS1frIO3Mgxj1fdy7Pm8Ygzguax2N3Fa/D/ag1WqbOprdI+uY6wMUl8/a2G+iag==", + "dev": true, "engines": { "node": "^12.22.0 || ^14.17.0 || >=16.0.0" }, @@ -5860,6 +5072,7 @@ "version": "5.3.0", "resolved": "https://registry.npmjs.org/estraverse/-/estraverse-5.3.0.tgz", "integrity": "sha512-MMdARuVEQziNTeJD8DgMqmhwR11BRQ/cBP+pLtYdSTnf3MIO8fFeiINEbX36ZdNlfU/7A9f3gUw49B3oQsvwBA==", + "dev": true, "engines": { "node": ">=4.0" } @@ -5868,6 +5081,7 @@ "version": "6.0.2", "resolved": "https://registry.npmjs.org/glob-parent/-/glob-parent-6.0.2.tgz", "integrity": "sha512-XxwI8EOhVQgWp6iDL+3b0r86f4d6AX6zSU55HfB4ydCEuXLXc5FcYeOu+nnGftS4TEju/11rt4KJPTMgbfmv4A==", + "dev": true, "dependencies": { "is-glob": "^4.0.3" }, @@ -5879,6 +5093,7 @@ "version": "13.20.0", "resolved": "https://registry.npmjs.org/globals/-/globals-13.20.0.tgz", "integrity": "sha512-Qg5QtVkCy/kv3FUSlu4ukeZDVf9ee0iXLAUYX13gbR17bnejFTzr4iS9bY7kwCf1NztRNm1t91fjOiyx4CSwPQ==", + "dev": true, "dependencies": { "type-fest": "^0.20.2" }, @@ -5893,6 +5108,7 @@ "version": "4.0.0", "resolved": "https://registry.npmjs.org/has-flag/-/has-flag-4.0.0.tgz", "integrity": "sha512-EykJT/Q1KjTWctppgIAgfSO0tKVuZUjhgMr17kqTumMl6Afv3EISleU7qZUzoXDFTAHTDC4NOoG/ZxU3EvlMPQ==", + "dev": true, "engines": { "node": ">=8" } @@ -5901,6 +5117,7 @@ "version": "4.1.0", "resolved": "https://registry.npmjs.org/js-yaml/-/js-yaml-4.1.0.tgz", "integrity": "sha512-wpxZs9NoxZaJESJGIZTyDEaYpl0FKSA+FB9aJiyemKhMwkxQg63h4T1KJgUGHpTqPDNRcmmYLugrRjJlBtWvRA==", + "dev": true, "dependencies": { "argparse": "^2.0.1" }, @@ -5911,12 +5128,14 @@ "node_modules/eslint/node_modules/json-schema-traverse": { "version": "0.4.1", "resolved": "https://registry.npmjs.org/json-schema-traverse/-/json-schema-traverse-0.4.1.tgz", - "integrity": "sha512-xbbCH5dCYU5T8LcEhhuh7HJ88HXuW3qsI3Y0zOZFKfZEHcpWiHU/Jxzk629Brsab/mMiHQti9wMP+845RPe3Vg==" + "integrity": "sha512-xbbCH5dCYU5T8LcEhhuh7HJ88HXuW3qsI3Y0zOZFKfZEHcpWiHU/Jxzk629Brsab/mMiHQti9wMP+845RPe3Vg==", + "dev": true }, "node_modules/eslint/node_modules/supports-color": { "version": "7.2.0", "resolved": "https://registry.npmjs.org/supports-color/-/supports-color-7.2.0.tgz", "integrity": "sha512-qpCAvRl9stuOHveKsn7HncJRvv501qIacKzQlO/+Lwxc9+0q2wLyv4Dfvt80/DPn2pqOBsJdDiogXGR9+OvwRw==", + "dev": true, "dependencies": { "has-flag": "^4.0.0" }, @@ -5928,6 +5147,7 @@ "version": "0.20.2", "resolved": "https://registry.npmjs.org/type-fest/-/type-fest-0.20.2.tgz", "integrity": "sha512-Ne+eE4r0/iWnpAxD852z3A+N0Bt5RN//NjJwRd2VFHEmrywxf5vsZlh4R6lixl6B+wz/8d+maTSAkN1FIkI3LQ==", + "dev": true, "engines": { "node": ">=10" }, @@ -5939,6 +5159,7 @@ "version": "9.6.1", "resolved": "https://registry.npmjs.org/espree/-/espree-9.6.1.tgz", "integrity": "sha512-oruZaFkjorTpF32kDSI5/75ViwGeZginGGy2NoOSg3Q9bnwlnmDm4HLnkl0RE3n+njDXR037aY1+x58Z/zFdwQ==", + "dev": true, "dependencies": { "acorn": "^8.9.0", "acorn-jsx": "^5.3.2", @@ -5955,6 +5176,7 @@ "version": "3.4.1", "resolved": "https://registry.npmjs.org/eslint-visitor-keys/-/eslint-visitor-keys-3.4.1.tgz", "integrity": "sha512-pZnmmLwYzf+kWaM/Qgrvpen51upAktaaiI01nsJD/Yr3lMOdNtq0cxkrrg16w64VtisN6okbs7Q8AfGqj4c9fA==", + "dev": true, "engines": { "node": "^12.22.0 || ^14.17.0 || >=16.0.0" }, @@ -5966,6 +5188,7 @@ "version": "4.0.1", "resolved": "https://registry.npmjs.org/esprima/-/esprima-4.0.1.tgz", "integrity": "sha512-eGuFFw7Upda+g4p+QHvnW0RyTX/SVeJBDM/gCtMARO0cLuT2HcEKnTPvhjV6aGeqrCB/sbNop0Kszm0jsaWU4A==", + "dev": true, "bin": { "esparse": "bin/esparse.js", "esvalidate": "bin/esvalidate.js" @@ -5978,6 +5201,7 @@ "version": "1.4.2", "resolved": "https://registry.npmjs.org/esquery/-/esquery-1.4.2.tgz", "integrity": "sha512-JVSoLdTlTDkmjFmab7H/9SL9qGSyjElT3myyKp7krqjVFQCDLmj1QFaCLRFBszBKI0XVZaiiXvuPIX3ZwHe1Ng==", + "dev": true, "dependencies": { "estraverse": "^5.1.0" }, @@ -5989,6 +5213,7 @@ "version": "5.3.0", "resolved": "https://registry.npmjs.org/estraverse/-/estraverse-5.3.0.tgz", "integrity": "sha512-MMdARuVEQziNTeJD8DgMqmhwR11BRQ/cBP+pLtYdSTnf3MIO8fFeiINEbX36ZdNlfU/7A9f3gUw49B3oQsvwBA==", + "dev": true, "engines": { "node": ">=4.0" } @@ -5997,6 +5222,7 @@ "version": "4.3.0", "resolved": "https://registry.npmjs.org/esrecurse/-/esrecurse-4.3.0.tgz", "integrity": "sha512-KmfKL3b6G+RXvP8N1vr3Tq1kL/oCFgn2NYXEtqP8/L3pKapUA4G8cFVaoF3SU323CD4XypR/ffioHmkti6/Tag==", + "dev": true, "dependencies": { "estraverse": "^5.2.0" }, @@ -6008,6 +5234,7 @@ "version": "5.3.0", "resolved": "https://registry.npmjs.org/estraverse/-/estraverse-5.3.0.tgz", "integrity": "sha512-MMdARuVEQziNTeJD8DgMqmhwR11BRQ/cBP+pLtYdSTnf3MIO8fFeiINEbX36ZdNlfU/7A9f3gUw49B3oQsvwBA==", + "dev": true, "engines": { "node": ">=4.0" } @@ -6025,30 +5252,16 @@ "version": "2.0.3", "resolved": "https://registry.npmjs.org/esutils/-/esutils-2.0.3.tgz", "integrity": "sha512-kVscqXk4OCp68SZ0dkgEKVi6/8ij300KBWTJq32P/dYeWTSwK41WyTxalN1eRmA5Z9UU/LX9D7FWSmV9SAYx6g==", + "dev": true, "engines": { "node": ">=0.10.0" } }, - "node_modules/event-target-shim": { - "version": "5.0.1", - "resolved": "https://registry.npmjs.org/event-target-shim/-/event-target-shim-5.0.1.tgz", - "integrity": "sha512-i/2XbnSz/uxRCU6+NdVJgKWDTM427+MqYbkQzD321DuCQJUqOuJKIA0IM2+W2xtYHdKOmZ4dR6fExsd4SXL+WQ==", - "engines": { - "node": ">=6" - } - }, - "node_modules/events": { - "version": "3.3.0", - "resolved": "https://registry.npmjs.org/events/-/events-3.3.0.tgz", - "integrity": "sha512-mQw+2fkQbALzQ7V0MY0IqdnXNOeTtP4r0lN9z7AAawCXgqea7bDii20AYrIBrFd/Hx0M2Ocz6S111CaFkUcb0Q==", - "engines": { - "node": ">=0.8.x" - } - }, "node_modules/execa": { "version": "5.1.1", "resolved": "https://registry.npmjs.org/execa/-/execa-5.1.1.tgz", "integrity": "sha512-8uSpZZocAZRBAPIEINJj3Lo9HyGitllczc27Eh5YYojjMFMn8yHMDMaUHE2Jqfq05D/wucwI4JGURyXt1vchyg==", + "dev": true, "dependencies": { "cross-spawn": "^7.0.3", "get-stream": "^6.0.0", @@ -6070,35 +5283,26 @@ "node_modules/fast-deep-equal": { "version": "3.1.3", "resolved": "https://registry.npmjs.org/fast-deep-equal/-/fast-deep-equal-3.1.3.tgz", - "integrity": "sha512-f3qQ9oQy9j2AhBe/H9VC91wLmKBCCU/gDOnKNAYG5hswO7BLKj09Hc5HYNz9cGI++xlpDCIgDaitVs03ATR84Q==" - }, - "node_modules/fast-json-patch": { - "version": "3.1.1", - "resolved": "https://registry.npmjs.org/fast-json-patch/-/fast-json-patch-3.1.1.tgz", - "integrity": "sha512-vf6IHUX2SBcA+5/+4883dsIjpBTqmfBjmYiWK1savxQmFk4JfBMLa7ynTYOs1Rolp/T1betJxHiGD3g1Mn8lUQ==" + "integrity": "sha512-f3qQ9oQy9j2AhBe/H9VC91wLmKBCCU/gDOnKNAYG5hswO7BLKj09Hc5HYNz9cGI++xlpDCIgDaitVs03ATR84Q==", + "dev": true }, "node_modules/fast-json-stable-stringify": { "version": "2.1.0", "resolved": "https://registry.npmjs.org/fast-json-stable-stringify/-/fast-json-stable-stringify-2.1.0.tgz", - "integrity": "sha512-lhd/wF+Lk98HZoTCtlVraHtfh5XYijIjalXck7saUtuanSDyLMxnHhSXEDJqHxD7msR8D0uCmqlkwjCV8xvwHw==" + "integrity": "sha512-lhd/wF+Lk98HZoTCtlVraHtfh5XYijIjalXck7saUtuanSDyLMxnHhSXEDJqHxD7msR8D0uCmqlkwjCV8xvwHw==", + "dev": true }, "node_modules/fast-levenshtein": { "version": "2.0.6", "resolved": "https://registry.npmjs.org/fast-levenshtein/-/fast-levenshtein-2.0.6.tgz", - "integrity": "sha512-DCXu6Ifhqcks7TZKY3Hxp3y6qphY5SJZmrWMDrKcERSOXWQdMhU9Ig/PYrzyw/ul9jOIyh0N4M0tbC5hodg8dw==" - }, - "node_modules/fast-redact": { - "version": "3.5.0", - "resolved": "https://registry.npmjs.org/fast-redact/-/fast-redact-3.5.0.tgz", - "integrity": "sha512-dwsoQlS7h9hMeYUq1W++23NDcBLV4KqONnITDV9DjfS3q1SgDGVrBdvvTLUotWtPSD7asWDV9/CmsZPy8Hf70A==", - "engines": { - "node": ">=6" - } + "integrity": "sha512-DCXu6Ifhqcks7TZKY3Hxp3y6qphY5SJZmrWMDrKcERSOXWQdMhU9Ig/PYrzyw/ul9jOIyh0N4M0tbC5hodg8dw==", + "dev": true }, "node_modules/fastq": { "version": "1.13.0", "resolved": "https://registry.npmjs.org/fastq/-/fastq-1.13.0.tgz", "integrity": "sha512-YpkpUnK8od0o1hmeSc7UUs/eB/vIPWJYjKck2QKIzAf71Vm1AAQ3EbuZB3g2JIy+pg+ERD0vqI79KyZiB2e2Nw==", + "dev": true, "dependencies": { "reusify": "^1.0.4" } @@ -6107,36 +5311,16 @@ "version": "1.1.0", "resolved": "https://registry.npmjs.org/fd-slicer/-/fd-slicer-1.1.0.tgz", "integrity": "sha512-cE1qsB/VwyQozZ+q1dGxR8LBYNZeofhEdUNGSMbQD3Gw2lAzX9Zb3uIU6Ebc/Fmyjo9AWWfnn0AUCHqtevs/8g==", + "dev": true, "dependencies": { - "pend": "~1.2.0" - } - }, - "node_modules/fetch-blob": { - "version": "3.2.0", - "resolved": "https://registry.npmjs.org/fetch-blob/-/fetch-blob-3.2.0.tgz", - "integrity": "sha512-7yAQpD2UMJzLi1Dqv7qFYnPbaPx7ZfFK6PiIxQ4PfkGPyNyl2Ugx+a/umUonmKqjhM4DnfbMvdX6otXq83soQQ==", - "funding": [ - { - "type": "github", - "url": "https://github.com/sponsors/jimmywarting" - }, - { - "type": "paypal", - "url": "https://paypal.me/jimmywarting" - } - ], - "dependencies": { - "node-domexception": "^1.0.0", - "web-streams-polyfill": "^3.0.3" - }, - "engines": { - "node": "^12.20 || >= 14.13" + "pend": "~1.2.0" } }, "node_modules/file-entry-cache": { "version": "6.0.1", "resolved": "https://registry.npmjs.org/file-entry-cache/-/file-entry-cache-6.0.1.tgz", "integrity": "sha512-7Gps/XWymbLk2QLYK4NzpMOrYjMhdIxXuIvy2QBsLE6ljuodKvdkWs/cpyJJ3CVIVpH0Oi1Hvg1ovbMzLdFBBg==", + "dev": true, "dependencies": { "flat-cache": "^3.0.4" }, @@ -6174,6 +5358,7 @@ "version": "5.0.0", "resolved": "https://registry.npmjs.org/find-up/-/find-up-5.0.0.tgz", "integrity": "sha512-78/PXT1wlLLDgTzDs7sjq9hzz0vXD+zn+7wypEe4fXQxCmdmqfGsEPQxmiCSQI3ajFV91bVSsvNtrJRiW6nGng==", + "dev": true, "dependencies": { "locate-path": "^6.0.0", "path-exists": "^4.0.0" @@ -6222,14 +5407,6 @@ "node": ">= 10.0.0" } }, - "node_modules/first-chunk-stream": { - "version": "3.0.0", - "resolved": "https://registry.npmjs.org/first-chunk-stream/-/first-chunk-stream-3.0.0.tgz", - "integrity": "sha512-LNRvR4hr/S8cXXkIY5pTgVP7L3tq6LlYWcg9nWBuW7o1NMxKZo6oOVa/6GIekMGI0Iw7uC+HWimMe9u/VAeKqw==", - "engines": { - "node": ">=8" - } - }, "node_modules/flat": { "version": "5.0.2", "resolved": "https://registry.npmjs.org/flat/-/flat-5.0.2.tgz", @@ -6243,6 +5420,7 @@ "version": "3.0.4", "resolved": "https://registry.npmjs.org/flat-cache/-/flat-cache-3.0.4.tgz", "integrity": "sha512-dm9s5Pw7Jc0GvMYbshN6zchCA9RgQlzzEZX3vylR9IqFfS8XciblUXOKfW6SiuJ0e13eDYZoZV5wdrev7P3Nwg==", + "dev": true, "dependencies": { "flatted": "^3.1.0", "rimraf": "^3.0.2" @@ -6254,7 +5432,8 @@ "node_modules/flatted": { "version": "3.2.6", "resolved": "https://registry.npmjs.org/flatted/-/flatted-3.2.6.tgz", - "integrity": "sha512-0sQoMh9s0BYsm+12Huy/rkKxVu4R1+r96YX5cG44rHV0pQ6iC3Q+mkoMFaGWObMFYQxCVT+ssG1ksneA2MI9KQ==" + "integrity": "sha512-0sQoMh9s0BYsm+12Huy/rkKxVu4R1+r96YX5cG44rHV0pQ6iC3Q+mkoMFaGWObMFYQxCVT+ssG1ksneA2MI9KQ==", + "dev": true }, "node_modules/for-each": { "version": "0.3.3", @@ -6286,17 +5465,6 @@ "node": ">= 14.17" } }, - "node_modules/formdata-polyfill": { - "version": "4.0.10", - "resolved": "https://registry.npmjs.org/formdata-polyfill/-/formdata-polyfill-4.0.10.tgz", - "integrity": "sha512-buewHzMvYL29jdeQTVILecSaZKnt/RJWjoZCF5OW60Z67/GmSLBkOFM7qh1PI3zFNtJbaZL5eQu1vLfazOwj4g==", - "dependencies": { - "fetch-blob": "^3.1.2" - }, - "engines": { - "node": ">=12.20.0" - } - }, "node_modules/fromentries": { "version": "1.3.2", "resolved": "https://registry.npmjs.org/fromentries/-/fromentries-1.3.2.tgz", @@ -6339,7 +5507,8 @@ "node_modules/fs.realpath": { "version": "1.0.0", "resolved": "https://registry.npmjs.org/fs.realpath/-/fs.realpath-1.0.0.tgz", - "integrity": "sha512-OO0pH2lK6a0hZnAdau5ItzHPI6pUlvI7jMVnxUQRtw4owF2wk8lOSabtGDCTP4Ggrg2MbGnWO9X8K1t4+fGMDw==" + "integrity": "sha512-OO0pH2lK6a0hZnAdau5ItzHPI6pUlvI7jMVnxUQRtw4owF2wk8lOSabtGDCTP4Ggrg2MbGnWO9X8K1t4+fGMDw==", + "dev": true }, "node_modules/fsevents": { "version": "2.3.2", @@ -6448,6 +5617,7 @@ "version": "2.0.5", "resolved": "https://registry.npmjs.org/get-caller-file/-/get-caller-file-2.0.5.tgz", "integrity": "sha512-DyFP3BM/3YHTQOCUL/w0OZHR0lpKeGrxotcHWcqNEdnltqFwXVfhEBQ94eIo34AfQpo0rGki4cyIiftY06h2Fg==", + "dev": true, "engines": { "node": "6.* || 8.* || >= 10.*" } @@ -6550,6 +5720,7 @@ "version": "7.2.3", "resolved": "https://registry.npmjs.org/glob/-/glob-7.2.3.tgz", "integrity": "sha512-nFR0zLpU2YCaRxwoCJvL6UvCH2JFyFVIvwTLsIf21AuHlMskA1hhTdk+LlYJtOlYt9v6dvszD2BGRqBL+iQK9Q==", + "dev": true, "dependencies": { "fs.realpath": "^1.0.0", "inflight": "^1.0.4", @@ -6679,7 +5850,8 @@ "node_modules/graphemer": { "version": "1.4.0", "resolved": "https://registry.npmjs.org/graphemer/-/graphemer-1.4.0.tgz", - "integrity": "sha512-EtKwoO6kxCL9WO5xipiHTZlSzBm7WLT627TqC/uVRd0HKmq8NXyebnNYxDoBi7wt8eTWrUrKXCOVaFq9x1kgag==" + "integrity": "sha512-EtKwoO6kxCL9WO5xipiHTZlSzBm7WLT627TqC/uVRd0HKmq8NXyebnNYxDoBi7wt8eTWrUrKXCOVaFq9x1kgag==", + "dev": true }, "node_modules/growly": { "version": "1.3.0", @@ -6833,24 +6005,6 @@ "integrity": "sha512-H2iMtd0I4Mt5eYiapRdIDjp+XzelXQ0tFE4JS7YFwFevXXMmOp9myNrUvCg0D6ws8iqkRPBfKHgbwig1SmlLfg==", "dev": true }, - "node_modules/htmlparser2": { - "version": "8.0.1", - "resolved": "https://registry.npmjs.org/htmlparser2/-/htmlparser2-8.0.1.tgz", - "integrity": "sha512-4lVbmc1diZC7GUJQtRQ5yBAeUCL1exyMwmForWkRLnwyzWBFxN633SALPMGYaWZvKe9j1pRZJpauvmxENSp/EA==", - "funding": [ - "https://github.com/fb55/htmlparser2?sponsor=1", - { - "type": "github", - "url": "https://github.com/sponsors/fb55" - } - ], - "dependencies": { - "domelementtype": "^2.3.0", - "domhandler": "^5.0.2", - "domutils": "^3.0.1", - "entities": "^4.3.0" - } - }, "node_modules/http-cache-semantics": { "version": "4.1.1", "resolved": "https://registry.npmjs.org/http-cache-semantics/-/http-cache-semantics-4.1.1.tgz", @@ -6879,67 +6033,24 @@ "url": "https://github.com/sponsors/sindresorhus" } }, - "node_modules/https-proxy-agent": { - "version": "7.0.5", - "resolved": "https://registry.npmjs.org/https-proxy-agent/-/https-proxy-agent-7.0.5.tgz", - "integrity": "sha512-1e4Wqeblerz+tMKPIq2EMGiiWW1dIjZOksyHWSUm1rmuvw/how9hBHZ38lAGj5ID4Ik6EdkOw7NmWPy6LAwalw==", - "dependencies": { - "agent-base": "^7.0.2", - "debug": "4" - }, - "engines": { - "node": ">= 14" - } - }, "node_modules/human-signals": { "version": "2.1.0", "resolved": "https://registry.npmjs.org/human-signals/-/human-signals-2.1.0.tgz", "integrity": "sha512-B4FFZ6q/T2jhhksgkbEW3HBvWIfDW85snkQgawt07S7J5QXTk6BkNV+0yAeZrM5QpMAdYlocGoljn0sJ/WQkFw==", + "dev": true, "engines": { "node": ">=10.17.0" } }, - "node_modules/ieee754": { - "version": "1.2.1", - "resolved": "https://registry.npmjs.org/ieee754/-/ieee754-1.2.1.tgz", - "integrity": "sha512-dcyqhDvX1C46lXZcVqCpK+FtMRQVdIMN6/Df5js2zouUsqG7I6sFxitIC+7KYK29KdXOLHdu9zL4sFnoVQnqaA==", - "funding": [ - { - "type": "github", - "url": "https://github.com/sponsors/feross" - }, - { - "type": "patreon", - "url": "https://www.patreon.com/feross" - }, - { - "type": "consulting", - "url": "https://feross.org/support" - } - ] - }, "node_modules/ignore": { "version": "5.3.0", "resolved": "https://registry.npmjs.org/ignore/-/ignore-5.3.0.tgz", "integrity": "sha512-g7dmpshy+gD7mh88OC9NwSGTKoc3kyLAZQRU1mt53Aw/vnvfXnbC+F/7F7QoYVKbV+KNvJx8wArewKy1vXMtlg==", + "dev": true, "engines": { "node": ">= 4" } }, - "node_modules/image-size": { - "version": "1.1.1", - "resolved": "https://registry.npmjs.org/image-size/-/image-size-1.1.1.tgz", - "integrity": "sha512-541xKlUw6jr/6gGuk92F+mYM5zaFAc5ahphvkqvNe2bQ6gVBkd6bfrmVJ2t4KDAfikAYZyIqTnktX3i6/aQDrQ==", - "dependencies": { - "queue": "6.0.2" - }, - "bin": { - "image-size": "bin/image-size.js" - }, - "engines": { - "node": ">=16.x" - } - }, "node_modules/immediate": { "version": "3.0.6", "resolved": "https://registry.npmjs.org/immediate/-/immediate-3.0.6.tgz", @@ -6949,6 +6060,7 @@ "version": "3.3.0", "resolved": "https://registry.npmjs.org/import-fresh/-/import-fresh-3.3.0.tgz", "integrity": "sha512-veYYhQa+D1QBKznvhUHxb8faxlrwUnxseDAbAp457E0wLNio2bOSKnjYDhMj+YiAq61xrMGhQk9iXVk5FzgQMw==", + "dev": true, "dependencies": { "parent-module": "^1.0.0", "resolve-from": "^4.0.0" @@ -6964,6 +6076,7 @@ "version": "4.0.0", "resolved": "https://registry.npmjs.org/resolve-from/-/resolve-from-4.0.0.tgz", "integrity": "sha512-pb/MYmXstAkysRFx8piNI1tGFNQIFA3vkE3Gq4EuA1dF6gHp/+vgZqsCGJapvy8N3Q+4o7FwvquPJcnZ7RYy4g==", + "dev": true, "engines": { "node": ">=4" } @@ -7007,6 +6120,7 @@ "version": "1.0.6", "resolved": "https://registry.npmjs.org/inflight/-/inflight-1.0.6.tgz", "integrity": "sha512-k92I/b08q4wvFscXCLvqfsHCrjrF7yiXsQuIVvVE7N82W3+aqpzuUdBbfhWcy/FZR3/4IgflMgKLOsvPDrGCJA==", + "devOptional": true, "dependencies": { "once": "^1.3.0", "wrappy": "1" @@ -7048,17 +6162,6 @@ "node": ">= 0.10" } }, - "node_modules/invert-kv": { - "version": "3.0.1", - "resolved": "https://registry.npmjs.org/invert-kv/-/invert-kv-3.0.1.tgz", - "integrity": "sha512-CYdFeFexxhv/Bcny+Q0BfOV+ltRlJcd4BBZBYFX/O0u4npJrgZtIcjokegtiSMAvlMTJ+Koq0GBCc//3bueQxw==", - "engines": { - "node": ">=8" - }, - "funding": { - "url": "https://github.com/sindresorhus/invert-kv?sponsor=1" - } - }, "node_modules/is-absolute": { "version": "0.1.7", "resolved": "https://registry.npmjs.org/is-absolute/-/is-absolute-0.1.7.tgz", @@ -7197,6 +6300,7 @@ "version": "2.1.1", "resolved": "https://registry.npmjs.org/is-extglob/-/is-extglob-2.1.1.tgz", "integrity": "sha512-SbKbANkN603Vi4jEZv49LeVJMn4yGwsbzZworEoyEiutsN3nJYdbO36zfhGJ6QEDpOZIFkDtnq5JRxmvl3jsoQ==", + "dev": true, "engines": { "node": ">=0.10.0" } @@ -7213,6 +6317,7 @@ "version": "4.0.3", "resolved": "https://registry.npmjs.org/is-glob/-/is-glob-4.0.3.tgz", "integrity": "sha512-xelSayHH36ZgE7ZWhli7pW34hNbNl8Ojv5KVmkJD4hBdD3th8Tfk9vYasLM+mXWOZhFkgZfxhLSnrwRr4elSSg==", + "dev": true, "dependencies": { "is-extglob": "^2.1.1" }, @@ -7220,37 +6325,6 @@ "node": ">=0.10.0" } }, - "node_modules/is-inside-container": { - "version": "1.0.0", - "resolved": "https://registry.npmjs.org/is-inside-container/-/is-inside-container-1.0.0.tgz", - "integrity": "sha512-KIYLCCJghfHZxqjYBE7rEy0OBuTd5xCHS7tHVgvCLkx7StIoaxwNW3hCALgEUjFfeRk+MG/Qxmp/vtETEF3tRA==", - "dependencies": { - "is-docker": "^3.0.0" - }, - "bin": { - "is-inside-container": "cli.js" - }, - "engines": { - "node": ">=14.16" - }, - "funding": { - "url": "https://github.com/sponsors/sindresorhus" - } - }, - "node_modules/is-inside-container/node_modules/is-docker": { - "version": "3.0.0", - "resolved": "https://registry.npmjs.org/is-docker/-/is-docker-3.0.0.tgz", - "integrity": "sha512-eljcgEDlEns/7AXFosB5K/2nCM4P7FQPkGc/DWLy5rmFEWvZayGrik1d9/QIY5nJ4f9YsVvBkA6kJpHn9rISdQ==", - "bin": { - "is-docker": "cli.js" - }, - "engines": { - "node": "^12.20.0 || ^14.13.1 || >=16.0.0" - }, - "funding": { - "url": "https://github.com/sponsors/sindresorhus" - } - }, "node_modules/is-installed-globally": { "version": "0.4.0", "resolved": "https://registry.npmjs.org/is-installed-globally/-/is-installed-globally-0.4.0.tgz", @@ -7280,11 +6354,6 @@ "url": "https://github.com/sponsors/sindresorhus" } }, - "node_modules/is-mergeable-object": { - "version": "1.1.1", - "resolved": "https://registry.npmjs.org/is-mergeable-object/-/is-mergeable-object-1.1.1.tgz", - "integrity": "sha512-CPduJfuGg8h8vW74WOxHtHmtQutyQBzR+3MjQ6iDHIYdbOnm1YC7jv43SqCoU8OPGTJD4nibmiryA4kmogbGrA==" - }, "node_modules/is-negative-zero": { "version": "2.0.2", "resolved": "https://registry.npmjs.org/is-negative-zero/-/is-negative-zero-2.0.2.tgz", @@ -7361,7 +6430,6 @@ "version": "2.0.4", "resolved": "https://registry.npmjs.org/is-plain-object/-/is-plain-object-2.0.4.tgz", "integrity": "sha512-h5PpgXkWitc38BBMYawTYMWJHFZJVnBquFE57xFpjB8pJFiF6gZ+bU+WyI/yqXiFR5mdLsgYNaPe8uao6Uv9Og==", - "dev": true, "dependencies": { "isobject": "^3.0.1" }, @@ -7369,6 +6437,14 @@ "node": ">=0.10.0" } }, + "node_modules/is-primitive": { + "version": "3.0.1", + "resolved": "https://registry.npmjs.org/is-primitive/-/is-primitive-3.0.1.tgz", + "integrity": "sha512-GljRxhWvlCNRfZyORiH77FwdFwGcMO620o37EOYC0ORWdq+WYNVqW0w2Juzew4M+L81l6/QS3t5gkkihyRqv9w==", + "engines": { + "node": ">=0.10.0" + } + }, "node_modules/is-regex": { "version": "1.1.4", "resolved": "https://registry.npmjs.org/is-regex/-/is-regex-1.1.4.tgz", @@ -7418,6 +6494,7 @@ "version": "2.0.1", "resolved": "https://registry.npmjs.org/is-stream/-/is-stream-2.0.1.tgz", "integrity": "sha512-hFoiJiTl63nn+kstHGBtewWSKnQLpyb155KHheA1l39uvtO9nWIop1p3udqPcUd/xbF1VLMO4n7OI6p7RbngDg==", + "dev": true, "engines": { "node": ">=8" }, @@ -7499,11 +6576,6 @@ "url": "https://github.com/sponsors/sindresorhus" } }, - "node_modules/is-utf8": { - "version": "0.2.1", - "resolved": "https://registry.npmjs.org/is-utf8/-/is-utf8-0.2.1.tgz", - "integrity": "sha512-rMYPYvCzsXywIsldgLaSoPlw5PfoB/ssr7hY4pLfcodrA5M/eArza1a9VmTiNIBNMjOGr1Ow9mTyU2o69U6U9Q==" - }, "node_modules/is-weakref": { "version": "1.0.2", "resolved": "https://registry.npmjs.org/is-weakref/-/is-weakref-1.0.2.tgz", @@ -7553,7 +6625,6 @@ "version": "3.0.1", "resolved": "https://registry.npmjs.org/isobject/-/isobject-3.0.1.tgz", "integrity": "sha512-WhB9zCku7EGTj/HQQRz5aUQEUeoQZH2bWcltRErOpymJ4boYE6wL9Tbr23krRPSZ+C5zqNSrSw+Cc7sZZ4b7vg==", - "dev": true, "engines": { "node": ">=0.10.0" } @@ -7689,28 +6760,6 @@ "node": ">=8" } }, - "node_modules/jackspeak": { - "version": "3.4.0", - "resolved": "https://registry.npmjs.org/jackspeak/-/jackspeak-3.4.0.tgz", - "integrity": "sha512-JVYhQnN59LVPFCEcVa2C3CrEKYacvjRfqIQl+h8oi91aLYQVWRYbxjPcv1bUiUy/kLmQaANrYfNMCO3kuEDHfw==", - "dependencies": { - "@isaacs/cliui": "^8.0.2" - }, - "engines": { - "node": ">=14" - }, - "funding": { - "url": "https://github.com/sponsors/isaacs" - }, - "optionalDependencies": { - "@pkgjs/parseargs": "^0.11.0" - } - }, - "node_modules/jed": { - "version": "1.1.1", - "resolved": "https://registry.npmjs.org/jed/-/jed-1.1.1.tgz", - "integrity": "sha512-z35ZSEcXHxLW4yumw0dF6L464NT36vmx3wxJw8MDpraBcWuNVgUPZgPJKcu1HekNgwlMFNqol7i/IpSbjhqwqA==" - }, "node_modules/jiti": { "version": "1.21.0", "resolved": "https://registry.npmjs.org/jiti/-/jiti-1.21.0.tgz", @@ -7720,14 +6769,6 @@ "jiti": "bin/jiti.js" } }, - "node_modules/jose": { - "version": "5.6.3", - "resolved": "https://registry.npmjs.org/jose/-/jose-5.6.3.tgz", - "integrity": "sha512-1Jh//hEEwMhNYPDDLwXHa2ePWgWiFNNUadVmguAAw2IJ6sj9mNxV5tGXJNqlMkJAybF6Lgw1mISDxTePP/187g==", - "funding": { - "url": "https://github.com/sponsors/panva" - } - }, "node_modules/js-tokens": { "version": "4.0.0", "resolved": "https://registry.npmjs.org/js-tokens/-/js-tokens-4.0.0.tgz", @@ -7763,14 +6804,6 @@ "resolved": "https://registry.npmjs.org/json-buffer/-/json-buffer-3.0.1.tgz", "integrity": "sha512-4bV5BfR2mqfQTJm+V5tPPdf+ZpuhiIvTuAB5g8kcrXOZpTT/QwwVRWBywX1ozr6lEuPdbHxwaJlm9G6mI2sfSQ==" }, - "node_modules/json-merge-patch": { - "version": "1.0.2", - "resolved": "https://registry.npmjs.org/json-merge-patch/-/json-merge-patch-1.0.2.tgz", - "integrity": "sha512-M6Vp2GN9L7cfuMXiWOmHj9bEFbeC250iVtcKQbqVgEsDVYnIsrNsbU+h/Y/PkbBQCtEa4Bez+Ebv0zfbC8ObLg==", - "dependencies": { - "fast-deep-equal": "^3.1.3" - } - }, "node_modules/json-parse-even-better-errors": { "version": "2.3.1", "resolved": "https://registry.npmjs.org/json-parse-even-better-errors/-/json-parse-even-better-errors-2.3.1.tgz", @@ -7780,12 +6813,14 @@ "node_modules/json-schema-traverse": { "version": "1.0.0", "resolved": "https://registry.npmjs.org/json-schema-traverse/-/json-schema-traverse-1.0.0.tgz", - "integrity": "sha512-NM8/P9n3XjXhIZn1lLhkFaACTOURQXjWhV4BA/RnOv8xvgqtqpAX9IO4mRQxSx1Rlo4tqzeqb0sOlruaOy3dug==" + "integrity": "sha512-NM8/P9n3XjXhIZn1lLhkFaACTOURQXjWhV4BA/RnOv8xvgqtqpAX9IO4mRQxSx1Rlo4tqzeqb0sOlruaOy3dug==", + "dev": true }, "node_modules/json-stable-stringify-without-jsonify": { "version": "1.0.1", "resolved": "https://registry.npmjs.org/json-stable-stringify-without-jsonify/-/json-stable-stringify-without-jsonify-1.0.1.tgz", - "integrity": "sha512-Bdboy+l7tA3OGW6FjyFHWkP5LuByj1Tk33Ljyq0axyzdk9//JSi2u3fP1QSmd1KNwq6VOKYGlAu87CisVir6Pw==" + "integrity": "sha512-Bdboy+l7tA3OGW6FjyFHWkP5LuByj1Tk33Ljyq0axyzdk9//JSi2u3fP1QSmd1KNwq6VOKYGlAu87CisVir6Pw==", + "dev": true }, "node_modules/json5": { "version": "2.2.3", @@ -7902,21 +6937,11 @@ "url": "https://github.com/sponsors/sindresorhus" } }, - "node_modules/lcid": { - "version": "3.1.1", - "resolved": "https://registry.npmjs.org/lcid/-/lcid-3.1.1.tgz", - "integrity": "sha512-M6T051+5QCGLBQb8id3hdvIW8+zeFV2FyBGFS9IEK5H9Wt4MueD4bW1eWikpHgZp+5xR3l5c8pZUkQsIA0BFZg==", - "dependencies": { - "invert-kv": "^3.0.0" - }, - "engines": { - "node": ">=8" - } - }, "node_modules/levn": { "version": "0.4.1", "resolved": "https://registry.npmjs.org/levn/-/levn-0.4.1.tgz", "integrity": "sha512-+bT2uH4E5LGE7h/n3evcS/sQlJXCpIp6ym8OWJ5eV6+67Dsql/LaaT7qJBAt2rzfoa/5QBGBhxDix1dMt2kQKQ==", + "dev": true, "dependencies": { "prelude-ls": "^1.2.1", "type-check": "~0.4.0" @@ -7934,9 +6959,9 @@ } }, "node_modules/lighthouse-logger": { - "version": "1.3.0", - "resolved": "https://registry.npmjs.org/lighthouse-logger/-/lighthouse-logger-1.3.0.tgz", - "integrity": "sha512-BbqAKApLb9ywUli+0a+PcV04SyJ/N1q/8qgCNe6U97KbPCS1BTksEuHFLYdvc8DltuhfxIUBqDZsC0bBGtl3lA==", + "version": "2.0.1", + "resolved": "https://registry.npmjs.org/lighthouse-logger/-/lighthouse-logger-2.0.1.tgz", + "integrity": "sha512-ioBrW3s2i97noEmnXxmUq7cjIcVRjT5HBpAYy8zE11CxU9HqlWHHeRxfeN1tn8F7OEMVPIC9x1f8t3Z7US9ehQ==", "dependencies": { "debug": "^2.6.9", "marky": "^1.2.2" @@ -7967,6 +6992,7 @@ "version": "6.0.0", "resolved": "https://registry.npmjs.org/locate-path/-/locate-path-6.0.0.tgz", "integrity": "sha512-iPZK6eYjbxRu3uB4/WZ3EsEIMJFMqAoopl3R+zuq0UjcAm/MO6KCweDgPfP3elTztoKP3KtnVHxTn2NHBSDVUw==", + "dev": true, "dependencies": { "p-locate": "^5.0.0" }, @@ -8022,7 +7048,8 @@ "node_modules/lodash.merge": { "version": "4.6.2", "resolved": "https://registry.npmjs.org/lodash.merge/-/lodash.merge-4.6.2.tgz", - "integrity": "sha512-0KpjqXRVvrYyCsX1swR/XTK0va6VQkQM6MNo7PqW77ByjAhoARA8EfrP1N4+KlKj8YS0ZUCtRT/YUuhyYDujIQ==" + "integrity": "sha512-0KpjqXRVvrYyCsX1swR/XTK0va6VQkQM6MNo7PqW77ByjAhoARA8EfrP1N4+KlKj8YS0ZUCtRT/YUuhyYDujIQ==", + "dev": true }, "node_modules/lodash.mergewith": { "version": "4.6.2", @@ -8198,35 +7225,11 @@ "resolved": "https://registry.npmjs.org/make-error/-/make-error-1.3.6.tgz", "integrity": "sha512-s8UhlNe7vPKomQhC1qFelMokr/Sc3AgNbso3n74mVPA5LTZwkB9NlXf4XPamLxJE8h0gh73rM94xvwRT2CVInw==" }, - "node_modules/map-age-cleaner": { - "version": "0.1.3", - "resolved": "https://registry.npmjs.org/map-age-cleaner/-/map-age-cleaner-0.1.3.tgz", - "integrity": "sha512-bJzx6nMoP6PDLPBFmg7+xRKeFZvFboMrGlxmNj9ClvX53KrmvM5bXFXEWjbz4cz1AFn+jWJ9z/DJSz7hrs0w3w==", - "dependencies": { - "p-defer": "^1.0.0" - }, - "engines": { - "node": ">=6" - } - }, "node_modules/marky": { "version": "1.2.5", "resolved": "https://registry.npmjs.org/marky/-/marky-1.2.5.tgz", "integrity": "sha512-q9JtQJKjpsVxCRVgQ+WapguSbKC3SQ5HEzFGPAJMStgh3QjCawp00UKv3MTTAArTmGmmPUvllHZoNbZ3gs0I+Q==" }, - "node_modules/mem": { - "version": "5.1.1", - "resolved": "https://registry.npmjs.org/mem/-/mem-5.1.1.tgz", - "integrity": "sha512-qvwipnozMohxLXG1pOqoLiZKNkC4r4qqRucSoDwXowsNGDSULiqFTRUF05vcZWnwJSG22qTsynQhxbaMtnX9gw==", - "dependencies": { - "map-age-cleaner": "^0.1.3", - "mimic-fn": "^2.1.0", - "p-is-promise": "^2.1.0" - }, - "engines": { - "node": ">=8" - } - }, "node_modules/meow": { "version": "12.1.1", "resolved": "https://registry.npmjs.org/meow/-/meow-12.1.1.tgz", @@ -8242,12 +7245,14 @@ "node_modules/merge-stream": { "version": "2.0.0", "resolved": "https://registry.npmjs.org/merge-stream/-/merge-stream-2.0.0.tgz", - "integrity": "sha512-abv/qOcuPfk3URPfDzmZU1LKmuw8kT+0nIHvKrKgFrwifol/doWcdA4ZqsWQ8ENrFKkd67Mfpo/LovbIUsbt3w==" + "integrity": "sha512-abv/qOcuPfk3URPfDzmZU1LKmuw8kT+0nIHvKrKgFrwifol/doWcdA4ZqsWQ8ENrFKkd67Mfpo/LovbIUsbt3w==", + "dev": true }, "node_modules/mimic-fn": { "version": "2.1.0", "resolved": "https://registry.npmjs.org/mimic-fn/-/mimic-fn-2.1.0.tgz", "integrity": "sha512-OqbOk5oEQeAZ8WXWydlu9HJjz9WVdEIvamMCcXmuqUYjTknH/sqsWvhQ3vgwKFRR1HpjvNBKQ37nbJgYzGqGcg==", + "dev": true, "engines": { "node": ">=6" } @@ -8282,14 +7287,6 @@ "url": "https://github.com/sponsors/ljharb" } }, - "node_modules/minipass": { - "version": "7.1.2", - "resolved": "https://registry.npmjs.org/minipass/-/minipass-7.1.2.tgz", - "integrity": "sha512-qOOzS1cBTWYF4BH8fVePDBOO9iptMnGUEZwNc/cMWnTV2nVLZ7VoNWEPHkYczZA0pdoA7dl6e7FL659nX9S2aw==", - "engines": { - "node": ">=16 || 14 >=14.17" - } - }, "node_modules/mkdirp": { "version": "3.0.1", "resolved": "https://registry.npmjs.org/mkdirp/-/mkdirp-3.0.1.tgz", @@ -8613,7 +7610,8 @@ "node_modules/natural-compare": { "version": "1.4.0", "resolved": "https://registry.npmjs.org/natural-compare/-/natural-compare-1.4.0.tgz", - "integrity": "sha512-OWND8ei3VtNC9h7V60qff3SVobHr996CTwgxubgyQYEpg290h9J0buyECNNJexkFm5sOajh5G116RYA1c8ZMSw==" + "integrity": "sha512-OWND8ei3VtNC9h7V60qff3SVobHr996CTwgxubgyQYEpg290h9J0buyECNNJexkFm5sOajh5G116RYA1c8ZMSw==", + "dev": true }, "node_modules/ncp": { "version": "2.0.0", @@ -8646,41 +7644,6 @@ "type-detect": "4.0.8" } }, - "node_modules/node-domexception": { - "version": "1.0.0", - "resolved": "https://registry.npmjs.org/node-domexception/-/node-domexception-1.0.0.tgz", - "integrity": "sha512-/jKZoMpw0F8GRwl4/eLROPA3cfcXtLApP0QzLmUT/HuPCZWyB7IY9ZrMeKw2O/nFIqPQB3PVM9aYm0F312AXDQ==", - "funding": [ - { - "type": "github", - "url": "https://github.com/sponsors/jimmywarting" - }, - { - "type": "github", - "url": "https://paypal.me/jimmywarting" - } - ], - "engines": { - "node": ">=10.5.0" - } - }, - "node_modules/node-fetch": { - "version": "3.3.2", - "resolved": "https://registry.npmjs.org/node-fetch/-/node-fetch-3.3.2.tgz", - "integrity": "sha512-dRB78srN/l6gqWulah9SrxeYnxeddIG30+GOqK/9OlLVyLg3HPnr6SqOWTWOXKRwC2eGYCkZ59NNuSgvSrpgOA==", - "dependencies": { - "data-uri-to-buffer": "^4.0.0", - "fetch-blob": "^3.1.4", - "formdata-polyfill": "^4.0.10" - }, - "engines": { - "node": "^12.20.0 || ^14.13.1 || >=16.0.0" - }, - "funding": { - "type": "opencollective", - "url": "https://opencollective.com/node-fetch" - } - }, "node_modules/node-forge": { "version": "1.3.1", "resolved": "https://registry.npmjs.org/node-forge/-/node-forge-1.3.1.tgz", @@ -8758,6 +7721,7 @@ "version": "4.0.1", "resolved": "https://registry.npmjs.org/npm-run-path/-/npm-run-path-4.0.1.tgz", "integrity": "sha512-S48WzZW777zhNIrn7gxOlISNAqi9ZC/uQFnRdbeIHhZhCA6UqpkOT8T1G7BvfdgP4Er8gF4sUbaS0i7QvIfCWw==", + "dev": true, "dependencies": { "path-key": "^3.0.0" }, @@ -8765,17 +7729,6 @@ "node": ">=8" } }, - "node_modules/nth-check": { - "version": "2.1.1", - "resolved": "https://registry.npmjs.org/nth-check/-/nth-check-2.1.1.tgz", - "integrity": "sha512-lqjrjmaOoAnWfMmBPL+XNnynZh2+swxiX3WUE0s4yEHI6m+AwrK2UZOimIRl3X/4QctVqS8AiZjFqyOGrMXb/w==", - "dependencies": { - "boolbase": "^1.0.0" - }, - "funding": { - "url": "https://github.com/fb55/nth-check?sponsor=1" - } - }, "node_modules/nyc": { "version": "17.0.0", "resolved": "https://registry.npmjs.org/nyc/-/nyc-17.0.0.tgz", @@ -9168,18 +8121,11 @@ "url": "https://github.com/sponsors/ljharb" } }, - "node_modules/on-exit-leak-free": { - "version": "2.1.2", - "resolved": "https://registry.npmjs.org/on-exit-leak-free/-/on-exit-leak-free-2.1.2.tgz", - "integrity": "sha512-0eJJY6hXLGf1udHwfNftBqH+g73EU4B504nZeKpz1sYRKafAghwxEJunB2O7rDZkL4PGfsMVnTXZ2EjibbqcsA==", - "engines": { - "node": ">=14.0.0" - } - }, "node_modules/once": { "version": "1.4.0", "resolved": "https://registry.npmjs.org/once/-/once-1.4.0.tgz", "integrity": "sha512-lNaJgI+2Q5URQBkccEKHTQOPaXdUxnZZElQTZY0MFUAuaEqe1E+Nyvgdz/aIyNi6Z9MzO5dv1H8n58/GELp3+w==", + "devOptional": true, "dependencies": { "wrappy": "1" } @@ -9188,6 +8134,7 @@ "version": "5.1.2", "resolved": "https://registry.npmjs.org/onetime/-/onetime-5.1.2.tgz", "integrity": "sha512-kbpaSSGJTWdAY5KPVeMOKXSrPtr8C8C7wodJbcsd51jRnmD+GZu8Y0VoU6Dm5Z4vWr0Ig/1NKuWRKf7j5aaYSg==", + "dev": true, "dependencies": { "mimic-fn": "^2.1.0" }, @@ -9198,97 +8145,21 @@ "url": "https://github.com/sponsors/sindresorhus" } }, - "node_modules/open": { - "version": "9.1.0", - "resolved": "https://registry.npmjs.org/open/-/open-9.1.0.tgz", - "integrity": "sha512-OS+QTnw1/4vrf+9hh1jc1jnYjzSG4ttTBB8UxOwAnInG3Uo4ssetzC1ihqaIHjLJnA5GGlRl6QlZXOTQhRBUvg==", - "dependencies": { - "default-browser": "^4.0.0", - "define-lazy-prop": "^3.0.0", - "is-inside-container": "^1.0.0", - "is-wsl": "^2.2.0" - }, - "engines": { - "node": ">=14.16" - }, - "funding": { - "url": "https://github.com/sponsors/sindresorhus" - } - }, - "node_modules/optionator": { - "version": "0.9.3", - "resolved": "https://registry.npmjs.org/optionator/-/optionator-0.9.3.tgz", - "integrity": "sha512-JjCoypp+jKn1ttEFExxhetCKeJt9zhAgAve5FXHixTvFDW/5aEktX9bufBKLRRMdU7bNtpLfcGu94B3cdEJgjg==", - "dependencies": { - "@aashutoshrathi/word-wrap": "^1.2.3", - "deep-is": "^0.1.3", - "fast-levenshtein": "^2.0.6", - "levn": "^0.4.1", - "prelude-ls": "^1.2.1", - "type-check": "^0.4.0" - }, - "engines": { - "node": ">= 0.8.0" - } - }, - "node_modules/os-locale": { - "version": "5.0.0", - "resolved": "https://registry.npmjs.org/os-locale/-/os-locale-5.0.0.tgz", - "integrity": "sha512-tqZcNEDAIZKBEPnHPlVDvKrp7NzgLi7jRmhKiUoa2NUmhl13FtkAGLUVR+ZsYvApBQdBfYm43A4tXXQ4IrYLBA==", - "dependencies": { - "execa": "^4.0.0", - "lcid": "^3.0.0", - "mem": "^5.0.0" - }, - "engines": { - "node": ">=10" - }, - "funding": { - "url": "https://github.com/sponsors/sindresorhus" - } - }, - "node_modules/os-locale/node_modules/execa": { - "version": "4.1.0", - "resolved": "https://registry.npmjs.org/execa/-/execa-4.1.0.tgz", - "integrity": "sha512-j5W0//W7f8UxAn8hXVnwG8tLwdiUy4FJLcSupCg6maBYZDpyBvTApK7KyuI4bKj8KOh1r2YH+6ucuYtJv1bTZA==", - "dependencies": { - "cross-spawn": "^7.0.0", - "get-stream": "^5.0.0", - "human-signals": "^1.1.1", - "is-stream": "^2.0.0", - "merge-stream": "^2.0.0", - "npm-run-path": "^4.0.0", - "onetime": "^5.1.0", - "signal-exit": "^3.0.2", - "strip-final-newline": "^2.0.0" - }, - "engines": { - "node": ">=10" - }, - "funding": { - "url": "https://github.com/sindresorhus/execa?sponsor=1" - } - }, - "node_modules/os-locale/node_modules/get-stream": { - "version": "5.2.0", - "resolved": "https://registry.npmjs.org/get-stream/-/get-stream-5.2.0.tgz", - "integrity": "sha512-nBF+F1rAZVCu/p7rjzgA+Yb4lfYXrpl7a6VmJrU8wF9I1CKvP/QwPNZHnOlwbTkY6dvtFIzFMSyQXbLoTQPRpA==", - "dependencies": { - "pump": "^3.0.0" - }, - "engines": { - "node": ">=8" - }, - "funding": { - "url": "https://github.com/sponsors/sindresorhus" - } - }, - "node_modules/os-locale/node_modules/human-signals": { - "version": "1.1.1", - "resolved": "https://registry.npmjs.org/human-signals/-/human-signals-1.1.1.tgz", - "integrity": "sha512-SEQu7vl8KjNL2eoGBLF3+wAjpsNfA9XMlXAYj/3EdaNfAlxKthD1xjEQfGOUhllCGGJVNY34bRr6lPINhNjyZw==", + "node_modules/optionator": { + "version": "0.9.3", + "resolved": "https://registry.npmjs.org/optionator/-/optionator-0.9.3.tgz", + "integrity": "sha512-JjCoypp+jKn1ttEFExxhetCKeJt9zhAgAve5FXHixTvFDW/5aEktX9bufBKLRRMdU7bNtpLfcGu94B3cdEJgjg==", + "dev": true, + "dependencies": { + "@aashutoshrathi/word-wrap": "^1.2.3", + "deep-is": "^0.1.3", + "fast-levenshtein": "^2.0.6", + "levn": "^0.4.1", + "prelude-ls": "^1.2.1", + "type-check": "^0.4.0" + }, "engines": { - "node": ">=8.12.0" + "node": ">= 0.8.0" } }, "node_modules/os-shim": { @@ -9307,26 +8178,11 @@ "node": ">=12.20" } }, - "node_modules/p-defer": { - "version": "1.0.0", - "resolved": "https://registry.npmjs.org/p-defer/-/p-defer-1.0.0.tgz", - "integrity": "sha512-wB3wfAxZpk2AzOfUMJNL+d36xothRSyj8EXOa4f6GMqYDN9BJaaSISbsk+wS9abmnebVw95C2Kb5t85UmpCxuw==", - "engines": { - "node": ">=4" - } - }, - "node_modules/p-is-promise": { - "version": "2.1.0", - "resolved": "https://registry.npmjs.org/p-is-promise/-/p-is-promise-2.1.0.tgz", - "integrity": "sha512-Y3W0wlRPK8ZMRbNq97l4M5otioeA5lm1z7bkNkxCka8HSPjR0xRWmpCmc9utiaLP9Jb1eD8BgeIxTW4AIF45Pg==", - "engines": { - "node": ">=6" - } - }, "node_modules/p-limit": { "version": "3.1.0", "resolved": "https://registry.npmjs.org/p-limit/-/p-limit-3.1.0.tgz", "integrity": "sha512-TYOanM3wGwNGsZN2cVTYPArw454xnXj5qmWF1bEoAc4+cU/ol7GVh7odevjp1FNHduHc3KZMcFduxU5Xc6uJRQ==", + "dev": true, "dependencies": { "yocto-queue": "^0.1.0" }, @@ -9341,6 +8197,7 @@ "version": "5.0.0", "resolved": "https://registry.npmjs.org/p-locate/-/p-locate-5.0.0.tgz", "integrity": "sha512-LaNjtRWUBY++zB5nE/NwcaoMylSPk+S+ZHNB1TzdbMJMny6dynpAGt7X/tl/QYq3TIeE6nxHppbo2LGymrG5Pw==", + "dev": true, "dependencies": { "p-limit": "^3.0.2" }, @@ -9404,11 +8261,6 @@ "url": "https://github.com/sponsors/sindresorhus" } }, - "node_modules/package-json-from-dist": { - "version": "1.0.0", - "resolved": "https://registry.npmjs.org/package-json-from-dist/-/package-json-from-dist-1.0.0.tgz", - "integrity": "sha512-dATvCeZN/8wQsGywez1mzHtTlP22H8OEfPrVMLNr4/eGa+ijtLn/6M5f0dY8UKNrC2O9UCU6SSoG3qRKnt7STw==" - }, "node_modules/package-json/node_modules/semver": { "version": "7.5.4", "resolved": "https://registry.npmjs.org/semver/-/semver-7.5.4.tgz", @@ -9432,6 +8284,7 @@ "version": "1.0.1", "resolved": "https://registry.npmjs.org/parent-module/-/parent-module-1.0.1.tgz", "integrity": "sha512-GQ2EWRpQV8/o+Aw8YqtfZZPfNRWZYkbidE9k5rpl/hC3vtHHBfGm2Ifi6qWV+coDGkrUKZAxE3Lot5kcsRlh+g==", + "dev": true, "dependencies": { "callsites": "^3.0.0" }, @@ -9476,33 +8329,11 @@ "url": "https://github.com/sponsors/sindresorhus" } }, - "node_modules/parse5": { - "version": "7.0.0", - "resolved": "https://registry.npmjs.org/parse5/-/parse5-7.0.0.tgz", - "integrity": "sha512-y/t8IXSPWTuRZqXc0ajH/UwDj4mnqLEbSttNbThcFhGrZuOyoyvNBO85PBp2jQa55wY9d07PBNjsK8ZP3K5U6g==", - "dependencies": { - "entities": "^4.3.0" - }, - "funding": { - "url": "https://github.com/inikulin/parse5?sponsor=1" - } - }, - "node_modules/parse5-htmlparser2-tree-adapter": { - "version": "7.0.0", - "resolved": "https://registry.npmjs.org/parse5-htmlparser2-tree-adapter/-/parse5-htmlparser2-tree-adapter-7.0.0.tgz", - "integrity": "sha512-B77tOZrqqfUfnVcOrUvfdLbz4pu4RopLD/4vmu3HUPswwTA8OH0EMW9BlWR2B0RCoiZRAHEUu7IxeP1Pd1UU+g==", - "dependencies": { - "domhandler": "^5.0.2", - "parse5": "^7.0.0" - }, - "funding": { - "url": "https://github.com/inikulin/parse5?sponsor=1" - } - }, "node_modules/path-exists": { "version": "4.0.0", "resolved": "https://registry.npmjs.org/path-exists/-/path-exists-4.0.0.tgz", "integrity": "sha512-ak9Qy5Q7jYb2Wwcey5Fpvg2KoAc/ZIhLSLOSBmRmygPsGwkVVt0fZa0qrtMz+m6tJTAHfZQ8FnmB4MG4LWy7/w==", + "dev": true, "engines": { "node": ">=8" } @@ -9511,6 +8342,7 @@ "version": "1.0.1", "resolved": "https://registry.npmjs.org/path-is-absolute/-/path-is-absolute-1.0.1.tgz", "integrity": "sha512-AVbw3UJ2e9bq64vSaS9Am0fje1Pa8pbGqTTsmXfaIiMpnr5DlDhfJOuLj9Sf95ZPVDAUerDfEk88MPmPe7UCQg==", + "devOptional": true, "engines": { "node": ">=0.10.0" } @@ -9519,6 +8351,7 @@ "version": "3.1.1", "resolved": "https://registry.npmjs.org/path-key/-/path-key-3.1.1.tgz", "integrity": "sha512-ojmeN0qd+y0jszEtoY48r0Peq5dwMEkIlCOu6Q5f41lfkswXuKtYrhgoTpLnyIcHm24Uhqx+5Tqm2InSwLhE6Q==", + "dev": true, "engines": { "node": ">=8" } @@ -9529,29 +8362,6 @@ "integrity": "sha512-LDJzPVEEEPR+y48z93A0Ed0yXb8pAByGWo/k5YYdYgpY2/2EsOsksJrq7lOHxryrVOn1ejG6oAp8ahvOIQD8sw==", "dev": true }, - "node_modules/path-scurry": { - "version": "1.11.1", - "resolved": "https://registry.npmjs.org/path-scurry/-/path-scurry-1.11.1.tgz", - "integrity": "sha512-Xa4Nw17FS9ApQFJ9umLiJS4orGjm7ZzwUrwamcGQuHSzDyth9boKDaycYdDcZDuqYATXw4HFXgaqWTctW/v1HA==", - "dependencies": { - "lru-cache": "^10.2.0", - "minipass": "^5.0.0 || ^6.0.2 || ^7.0.0" - }, - "engines": { - "node": ">=16 || 14 >=14.18" - }, - "funding": { - "url": "https://github.com/sponsors/isaacs" - } - }, - "node_modules/path-scurry/node_modules/lru-cache": { - "version": "10.2.2", - "resolved": "https://registry.npmjs.org/lru-cache/-/lru-cache-10.2.2.tgz", - "integrity": "sha512-9hp3Vp2/hFQUiIwKo8XCeFVnrg8Pk3TYNPIR7tJADKi5YfcF7vEaK7avFHTlSy3kOKYaJQaalfEo6YuXdceBOQ==", - "engines": { - "node": "14 || >=16.14" - } - }, "node_modules/path-to-regexp": { "version": "6.2.2", "resolved": "https://registry.npmjs.org/path-to-regexp/-/path-to-regexp-6.2.2.tgz", @@ -9570,7 +8380,8 @@ "node_modules/pend": { "version": "1.2.0", "resolved": "https://registry.npmjs.org/pend/-/pend-1.2.0.tgz", - "integrity": "sha512-F3asv42UuXchdzt+xXqfW1OGlVBe+mxa2mqI0pg5yAHZPvFmY3Y6drSf/GQ1A86WgWEN9Kzh/WrgKa6iGcHXLg==" + "integrity": "sha512-F3asv42UuXchdzt+xXqfW1OGlVBe+mxa2mqI0pg5yAHZPvFmY3Y6drSf/GQ1A86WgWEN9Kzh/WrgKa6iGcHXLg==", + "dev": true }, "node_modules/picocolors": { "version": "1.0.0", @@ -9598,41 +8409,6 @@ "node": ">=6" } }, - "node_modules/pino": { - "version": "8.20.0", - "resolved": "https://registry.npmjs.org/pino/-/pino-8.20.0.tgz", - "integrity": "sha512-uhIfMj5TVp+WynVASaVEJFTncTUe4dHBq6CWplu/vBgvGHhvBvQfxz+vcOrnnBQdORH3izaGEurLfNlq3YxdFQ==", - "dependencies": { - "atomic-sleep": "^1.0.0", - "fast-redact": "^3.1.1", - "on-exit-leak-free": "^2.1.0", - "pino-abstract-transport": "^1.1.0", - "pino-std-serializers": "^6.0.0", - "process-warning": "^3.0.0", - "quick-format-unescaped": "^4.0.3", - "real-require": "^0.2.0", - "safe-stable-stringify": "^2.3.1", - "sonic-boom": "^3.7.0", - "thread-stream": "^2.0.0" - }, - "bin": { - "pino": "bin.js" - } - }, - "node_modules/pino-abstract-transport": { - "version": "1.2.0", - "resolved": "https://registry.npmjs.org/pino-abstract-transport/-/pino-abstract-transport-1.2.0.tgz", - "integrity": "sha512-Guhh8EZfPCfH+PMXAb6rKOjGQEoy0xlAIn+irODG5kgfYV+BQ0rGYYWTIel3P5mmyXqkYkPmdIkywsn6QKUR1Q==", - "dependencies": { - "readable-stream": "^4.0.0", - "split2": "^4.0.0" - } - }, - "node_modules/pino-std-serializers": { - "version": "6.2.2", - "resolved": "https://registry.npmjs.org/pino-std-serializers/-/pino-std-serializers-6.2.2.tgz", - "integrity": "sha512-cHjPPsE+vhj/tnhCy/wiMh3M3z3h/j15zHQX+S9GkTBgqJuTuJzYJ4gUyACLhDaJ7kk9ba9iRDmbH2tJU03OiA==" - }, "node_modules/pirates": { "version": "4.0.6", "resolved": "https://registry.npmjs.org/pirates/-/pirates-4.0.6.tgz", @@ -9719,6 +8495,7 @@ "version": "1.2.1", "resolved": "https://registry.npmjs.org/prelude-ls/-/prelude-ls-1.2.1.tgz", "integrity": "sha512-vkcDPrRZo1QZLbn5RLGPpg/WmIQ65qoWWhcGKf/b5eplkkarX0m9z8ppCat4mlOqUsWpyNuYgO3VRyrYHSzX5g==", + "dev": true, "engines": { "node": ">= 0.8.0" } @@ -9787,14 +8564,6 @@ "prettyjson": "bin/prettyjson" } }, - "node_modules/process": { - "version": "0.11.10", - "resolved": "https://registry.npmjs.org/process/-/process-0.11.10.tgz", - "integrity": "sha512-cdGef/drWFoydD1JsMzuFf8100nZl+GT+yacc2bEced5f9Rjk4z+WtFUTBu9PhOi9j/jfmBPu0mMEY4wIdAF8A==", - "engines": { - "node": ">= 0.6.0" - } - }, "node_modules/process-nextick-args": { "version": "2.0.1", "resolved": "https://registry.npmjs.org/process-nextick-args/-/process-nextick-args-2.0.1.tgz", @@ -9812,11 +8581,6 @@ "node": ">=8" } }, - "node_modules/process-warning": { - "version": "3.0.0", - "resolved": "https://registry.npmjs.org/process-warning/-/process-warning-3.0.0.tgz", - "integrity": "sha512-mqn0kFRl0EoqhnL0GQ0veqFHyIN1yig9RHh/InzORTUiZHFRAur+aMtRkELNwGs9aNwKS6tg/An4NYBPGwvtzQ==" - }, "node_modules/promise-toolbox": { "version": "0.21.0", "resolved": "https://registry.npmjs.org/promise-toolbox/-/promise-toolbox-0.21.0.tgz", @@ -9833,19 +8597,11 @@ "resolved": "https://registry.npmjs.org/proto-list/-/proto-list-1.2.4.tgz", "integrity": "sha512-vtK/94akxsTMhe0/cbfpR+syPuszcuwhqVjJq26CuNDgFGj682oRBXOP5MJpv2r7JtE8MsiepGIqvvOTBwn2vA==" }, - "node_modules/pump": { - "version": "3.0.0", - "resolved": "https://registry.npmjs.org/pump/-/pump-3.0.0.tgz", - "integrity": "sha512-LwZy+p3SFs1Pytd/jYct4wpv49HiYCqd9Rlc5ZVdk0V+8Yzv6jR5Blk3TRmPL1ft69TxP0IMZGJ+WPFU2BFhww==", - "dependencies": { - "end-of-stream": "^1.1.0", - "once": "^1.3.1" - } - }, "node_modules/punycode": { "version": "2.1.1", "resolved": "https://registry.npmjs.org/punycode/-/punycode-2.1.1.tgz", "integrity": "sha512-XRsRjdf+j5ml+y/6GKHPZbrF/8p2Yga0JPtdqTIY2Xe5ohJPD9saDJJLPvp9+NSBprVvevdXZybnj2cv8OEd0A==", + "dev": true, "engines": { "node": ">=6" } @@ -9864,18 +8620,11 @@ "url": "https://github.com/sponsors/sindresorhus" } }, - "node_modules/queue": { - "version": "6.0.2", - "resolved": "https://registry.npmjs.org/queue/-/queue-6.0.2.tgz", - "integrity": "sha512-iHZWu+q3IdFZFX36ro/lKBkSvfkztY5Y7HMiPlOUjhupPcG2JMfst2KKEpu5XndviX/3UhFbRngUPNKtgvtZiA==", - "dependencies": { - "inherits": "~2.0.3" - } - }, "node_modules/queue-microtask": { "version": "1.2.3", "resolved": "https://registry.npmjs.org/queue-microtask/-/queue-microtask-1.2.3.tgz", "integrity": "sha512-NuaNSa6flKT5JaSYQzJok04JzTL1CA6aGhv5rfLW3PgqA+M2ChpZQnAC8h8i4ZFkBS8X5RqkDBHA7r4hej3K9A==", + "dev": true, "funding": [ { "type": "github", @@ -9904,11 +8653,6 @@ "node": ">= 0.14.0" } }, - "node_modules/quick-format-unescaped": { - "version": "4.0.4", - "resolved": "https://registry.npmjs.org/quick-format-unescaped/-/quick-format-unescaped-4.0.4.tgz", - "integrity": "sha512-tYC1Q1hgyRuHgloV/YXs2w15unPVh8qfu/qCTfhTYamaw7fyhumKa2yGpdSo87vY32rIclj+4fWYQXUMs9EHvg==" - }, "node_modules/randombytes": { "version": "2.1.0", "resolved": "https://registry.npmjs.org/randombytes/-/randombytes-2.1.0.tgz", @@ -9945,48 +8689,6 @@ "node": ">=0.10.0" } }, - "node_modules/readable-stream": { - "version": "4.5.2", - "resolved": "https://registry.npmjs.org/readable-stream/-/readable-stream-4.5.2.tgz", - "integrity": "sha512-yjavECdqeZ3GLXNgRXgeQEdz9fvDDkNKyHnbHRFtOr7/LcfgBcmct7t/ET+HaCTqfh06OzoAxrkN/IfjJBVe+g==", - "dependencies": { - "abort-controller": "^3.0.0", - "buffer": "^6.0.3", - "events": "^3.3.0", - "process": "^0.11.10", - "string_decoder": "^1.3.0" - }, - "engines": { - "node": "^12.22.0 || ^14.17.0 || >=16.0.0" - } - }, - "node_modules/readable-stream/node_modules/safe-buffer": { - "version": "5.2.1", - "resolved": "https://registry.npmjs.org/safe-buffer/-/safe-buffer-5.2.1.tgz", - "integrity": "sha512-rp3So07KcdmmKbGvgaNxQSJr7bGVSVk5S9Eq1F+ppbRo70+YeaDxkw5Dd8NPN+GD6bjnYm2VuPuCXmpuYvmCXQ==", - "funding": [ - { - "type": "github", - "url": "https://github.com/sponsors/feross" - }, - { - "type": "patreon", - "url": "https://www.patreon.com/feross" - }, - { - "type": "consulting", - "url": "https://feross.org/support" - } - ] - }, - "node_modules/readable-stream/node_modules/string_decoder": { - "version": "1.3.0", - "resolved": "https://registry.npmjs.org/string_decoder/-/string_decoder-1.3.0.tgz", - "integrity": "sha512-hkRX8U1WjJFd8LsDJ2yQ/wWWxaopEsABU1XfkM8A+j0+85JAGppt16cr1Whg6KIbb4okU6Mql6BOj+uup/wKeA==", - "dependencies": { - "safe-buffer": "~5.2.0" - } - }, "node_modules/readdirp": { "version": "3.6.0", "resolved": "https://registry.npmjs.org/readdirp/-/readdirp-3.6.0.tgz", @@ -9999,14 +8701,6 @@ "node": ">=8.10.0" } }, - "node_modules/real-require": { - "version": "0.2.0", - "resolved": "https://registry.npmjs.org/real-require/-/real-require-0.2.0.tgz", - "integrity": "sha512-57frrGM/OCTLqLOAh0mhVA9VBMHd+9U7Zb2THMGdBUoZVOtGbJzjxsYGDJ3A9AYYCP4hn6y1TVbaOfzWtm5GFg==", - "engines": { - "node": ">= 12.13.0" - } - }, "node_modules/rechoir": { "version": "0.6.2", "resolved": "https://registry.npmjs.org/rechoir/-/rechoir-0.6.2.tgz", @@ -10131,26 +8825,6 @@ "jsesc": "bin/jsesc" } }, - "node_modules/relaxed-json": { - "version": "1.0.3", - "resolved": "https://registry.npmjs.org/relaxed-json/-/relaxed-json-1.0.3.tgz", - "integrity": "sha512-b7wGPo7o2KE/g7SqkJDDbav6zmrEeP4TK2VpITU72J/M949TLe/23y/ZHJo+pskcGM52xIfFoT9hydwmgr1AEg==", - "dependencies": { - "chalk": "^2.4.2", - "commander": "^2.6.0" - }, - "bin": { - "rjson": "bin/rjson.js" - }, - "engines": { - "node": ">= 0.10.0" - } - }, - "node_modules/relaxed-json/node_modules/commander": { - "version": "2.20.3", - "resolved": "https://registry.npmjs.org/commander/-/commander-2.20.3.tgz", - "integrity": "sha512-GpVkmM8vF2vQUkj2LvZmD35JxeJOLCwJ9cUkugyk2nuhbv3+mJvpLYYt+0+USMxE+oj+ey/lJEnhZw75x/OMcQ==" - }, "node_modules/release-zalgo": { "version": "1.0.0", "resolved": "https://registry.npmjs.org/release-zalgo/-/release-zalgo-1.0.0.tgz", @@ -10167,6 +8841,7 @@ "version": "2.1.1", "resolved": "https://registry.npmjs.org/require-directory/-/require-directory-2.1.1.tgz", "integrity": "sha512-fGxEI7+wsG9xrvdjsrlmL22OMTTiHRwAMroiEeMgq8gzoLC/PQr7RsRDSTLUg/bZAZtF+TVIkHc6/4RIKrui+Q==", + "dev": true, "engines": { "node": ">=0.10.0" } @@ -10175,6 +8850,7 @@ "version": "2.0.2", "resolved": "https://registry.npmjs.org/require-from-string/-/require-from-string-2.0.2.tgz", "integrity": "sha512-Xf0nWe6RseziFMu+Ap9biiUbmplq6S9/p+7w7YXP/JBHhrUDDUhwa+vANyubuqfZWTveU//DYVGsDG7RKL/vEw==", + "dev": true, "engines": { "node": ">=0.10.0" } @@ -10234,6 +8910,7 @@ "version": "1.0.4", "resolved": "https://registry.npmjs.org/reusify/-/reusify-1.0.4.tgz", "integrity": "sha512-U9nH88a3fc/ekCF1l0/UP1IosiuIjyTh7hBvXVMHYgVcfGvt897Xguj2UOLDeI5BG2m7/uwyaLVT6fbtCwTyzw==", + "dev": true, "engines": { "iojs": ">=1.0.0", "node": ">=0.10.0" @@ -10243,6 +8920,7 @@ "version": "3.0.2", "resolved": "https://registry.npmjs.org/rimraf/-/rimraf-3.0.2.tgz", "integrity": "sha512-JZkJMZkAGFFPP2YqXZXPbMlMBgsxzE8ILs4lMIX/2o0L9UBw9O/Y3o6wFw/i9YLapcUJWwqbi3kdxIPdC62TIA==", + "dev": true, "dependencies": { "glob": "^7.1.3" }, @@ -10253,24 +8931,11 @@ "url": "https://github.com/sponsors/isaacs" } }, - "node_modules/run-applescript": { - "version": "5.0.0", - "resolved": "https://registry.npmjs.org/run-applescript/-/run-applescript-5.0.0.tgz", - "integrity": "sha512-XcT5rBksx1QdIhlFOCtgZkB99ZEouFZ1E2Kc2LHqNW13U3/74YGdkQRmThTwxy4QIyookibDKYZOPqX//6BlAg==", - "dependencies": { - "execa": "^5.0.0" - }, - "engines": { - "node": ">=12" - }, - "funding": { - "url": "https://github.com/sponsors/sindresorhus" - } - }, "node_modules/run-parallel": { "version": "1.2.0", "resolved": "https://registry.npmjs.org/run-parallel/-/run-parallel-1.2.0.tgz", "integrity": "sha512-5l4VyZR86LZ/lDxZTR6jqL8AFE2S0IFLMP26AbjsLVADxHdhB/c0GUsH+y39UfCi3dzz8OlQuPmnaJOMoDHQBA==", + "dev": true, "funding": [ { "type": "github", @@ -10338,14 +9003,6 @@ "url": "https://github.com/sponsors/ljharb" } }, - "node_modules/safe-stable-stringify": { - "version": "2.4.3", - "resolved": "https://registry.npmjs.org/safe-stable-stringify/-/safe-stable-stringify-2.4.3.tgz", - "integrity": "sha512-e2bDA2WJT0wxseVd4lsDP4+3ONX6HpMXQa1ZhFQ7SU+GjvORCmShbCMltrtIDfkYhVHrOcPtj+KhmDBdPdZD1g==", - "engines": { - "node": ">=10" - } - }, "node_modules/sax": { "version": "1.2.4", "resolved": "https://registry.npmjs.org/sax/-/sax-1.2.4.tgz", @@ -10432,23 +9089,28 @@ "node": ">= 0.4" } }, + "node_modules/set-value": { + "version": "4.1.0", + "resolved": "https://registry.npmjs.org/set-value/-/set-value-4.1.0.tgz", + "integrity": "sha512-zTEg4HL0RwVrqcWs3ztF+x1vkxfm0lP+MQQFPiMJTKVceBwEV0A569Ou8l9IYQG8jOZdMVI1hGsc0tmeD2o/Lw==", + "funding": [ + "https://github.com/sponsors/jonschlinkert", + "https://paypal.me/jonathanschlinkert", + "https://jonschlinkert.dev/sponsor" + ], + "dependencies": { + "is-plain-object": "^2.0.4", + "is-primitive": "^3.0.1" + }, + "engines": { + "node": ">=11.0" + } + }, "node_modules/setimmediate": { "version": "1.0.5", "resolved": "https://registry.npmjs.org/setimmediate/-/setimmediate-1.0.5.tgz", "integrity": "sha512-MATJdZp8sLqDl/68LfQmbP8zKPLQNV6BIZoIgrscFDQ+RsvK/BxeDQOgyxKKoh0y/8h3BqVFnCqQ/gd+reiIXA==" }, - "node_modules/sha.js": { - "version": "2.4.11", - "resolved": "https://registry.npmjs.org/sha.js/-/sha.js-2.4.11.tgz", - "integrity": "sha512-QMEp5B7cftE7APOjk5Y6xgrbWu+WkLVQwk8JNjZ8nKRciZaByEW6MubieAiToS7+dwvrjGhH8jRXz3MVd0AYqQ==", - "dependencies": { - "inherits": "^2.0.1", - "safe-buffer": "^5.0.1" - }, - "bin": { - "sha.js": "bin.js" - } - }, "node_modules/shallow-clone": { "version": "3.0.1", "resolved": "https://registry.npmjs.org/shallow-clone/-/shallow-clone-3.0.1.tgz", @@ -10465,6 +9127,7 @@ "version": "2.0.0", "resolved": "https://registry.npmjs.org/shebang-command/-/shebang-command-2.0.0.tgz", "integrity": "sha512-kHxr2zZpYtdmrN1qDjrrX/Z1rR1kG8Dx+gkpK1G4eXmvXswmcE1hTWBWYUzlraYw1/yZp6YuDY77YtvbN0dmDA==", + "dev": true, "dependencies": { "shebang-regex": "^3.0.0" }, @@ -10476,6 +9139,7 @@ "version": "3.0.0", "resolved": "https://registry.npmjs.org/shebang-regex/-/shebang-regex-3.0.0.tgz", "integrity": "sha512-7++dFhtcx3353uBaq8DDR4NuxBetBzC7ZQOhmTQInHEd6bSrXdiEyzCvG07Z44UYdLShWUyXt5M/yhz8ekcb1A==", + "dev": true, "engines": { "node": ">=8" } @@ -10583,14 +9247,6 @@ "node": ">=6" } }, - "node_modules/sonic-boom": { - "version": "3.8.1", - "resolved": "https://registry.npmjs.org/sonic-boom/-/sonic-boom-3.8.1.tgz", - "integrity": "sha512-y4Z8LCDBuum+PBP3lSV7RHrXscqksve/bi0as7mhwVnBW+/wUqKT/2Kb7um8yqcFy0duYbbPxzt89Zy2nOCaxg==", - "dependencies": { - "atomic-sleep": "^1.0.0" - } - }, "node_modules/source-map": { "version": "0.6.1", "resolved": "https://registry.npmjs.org/source-map/-/source-map-0.6.1.tgz", @@ -10665,6 +9321,7 @@ "version": "4.2.0", "resolved": "https://registry.npmjs.org/split2/-/split2-4.2.0.tgz", "integrity": "sha512-UcjcJOWknrNkF6PLX83qcHM6KHgVKNkV62Y8a5uYDVv9ydGQVwAHMKqHdJje1VTWpljG0WYpCDhrCdAOYH4TWg==", + "dev": true, "engines": { "node": ">= 10.x" } @@ -10699,25 +9356,6 @@ "url": "https://github.com/sponsors/sindresorhus" } }, - "node_modules/string-width-cjs": { - "name": "string-width", - "version": "4.2.3", - "resolved": "https://registry.npmjs.org/string-width/-/string-width-4.2.3.tgz", - "integrity": "sha512-wKyQRQpjJ0sIp62ErSZdGsjMJWsap5oRNihHhu6G7JVO/9jIB6UyevL+tXuOqrng8j/cxKTWyWUwvSTriiZz/g==", - "dependencies": { - "emoji-regex": "^8.0.0", - "is-fullwidth-code-point": "^3.0.0", - "strip-ansi": "^6.0.1" - }, - "engines": { - "node": ">=8" - } - }, - "node_modules/string-width-cjs/node_modules/emoji-regex": { - "version": "8.0.0", - "resolved": "https://registry.npmjs.org/emoji-regex/-/emoji-regex-8.0.0.tgz", - "integrity": "sha512-MSjYzcWNOA0ewAHpz0MxpYFvwg6yjy1NG3xteoqz644VCo/RPgnr1/GGt+ic3iJTzQ8Eu3TdM14SawnVUmGE6A==" - }, "node_modules/string-width/node_modules/ansi-regex": { "version": "6.0.1", "resolved": "https://registry.npmjs.org/ansi-regex/-/ansi-regex-6.0.1.tgz", @@ -10812,18 +9450,6 @@ "node": ">=8" } }, - "node_modules/strip-ansi-cjs": { - "name": "strip-ansi", - "version": "6.0.1", - "resolved": "https://registry.npmjs.org/strip-ansi/-/strip-ansi-6.0.1.tgz", - "integrity": "sha512-Y38VPSHcqkFrCpFnQ9vuSXmquuv5oXOKpGeT6aGrr3o3Gc9AlVa6JBfUSOCnbxGGZF+/0ooI7KrPuUSztUdU5A==", - "dependencies": { - "ansi-regex": "^5.0.1" - }, - "engines": { - "node": ">=8" - } - }, "node_modules/strip-bom": { "version": "5.0.0", "resolved": "https://registry.npmjs.org/strip-bom/-/strip-bom-5.0.0.tgz", @@ -10835,33 +9461,11 @@ "url": "https://github.com/sponsors/sindresorhus" } }, - "node_modules/strip-bom-buf": { - "version": "2.0.0", - "resolved": "https://registry.npmjs.org/strip-bom-buf/-/strip-bom-buf-2.0.0.tgz", - "integrity": "sha512-gLFNHucd6gzb8jMsl5QmZ3QgnUJmp7qn4uUSHNwEXumAp7YizoGYw19ZUVfuq4aBOQUtyn2k8X/CwzWB73W2lQ==", - "dependencies": { - "is-utf8": "^0.2.1" - }, - "engines": { - "node": ">=8" - } - }, - "node_modules/strip-bom-stream": { - "version": "4.0.0", - "resolved": "https://registry.npmjs.org/strip-bom-stream/-/strip-bom-stream-4.0.0.tgz", - "integrity": "sha512-0ApK3iAkHv6WbgLICw/J4nhwHeDZsBxIIsOD+gHgZICL6SeJ0S9f/WZqemka9cjkTyMN5geId6e8U5WGFAn3cQ==", - "dependencies": { - "first-chunk-stream": "^3.0.0", - "strip-bom-buf": "^2.0.0" - }, - "engines": { - "node": ">=8" - } - }, "node_modules/strip-final-newline": { "version": "2.0.0", "resolved": "https://registry.npmjs.org/strip-final-newline/-/strip-final-newline-2.0.0.tgz", "integrity": "sha512-BrpvfNAE3dcvq7ll3xVumzjKjZQ5tI1sEUIKr3Uoks0XUl45St3FlatVqef9prk4jRDzhW6WZg+3bk93y6pLjA==", + "dev": true, "engines": { "node": ">=6" } @@ -10944,7 +9548,8 @@ "node_modules/text-table": { "version": "0.2.0", "resolved": "https://registry.npmjs.org/text-table/-/text-table-0.2.0.tgz", - "integrity": "sha512-N+8UisAXDGk8PFXP4HAzVR9nbfmVJ3zYLAWiTIoqC5v5isinhr+r5uaO8+7r3BMfuNIufIsA7RdpVgacC2cSpw==" + "integrity": "sha512-N+8UisAXDGk8PFXP4HAzVR9nbfmVJ3zYLAWiTIoqC5v5isinhr+r5uaO8+7r3BMfuNIufIsA7RdpVgacC2cSpw==", + "dev": true }, "node_modules/thenify": { "version": "3.3.1", @@ -10971,30 +9576,11 @@ "integrity": "sha512-KU3SA3TjRRM932jpNfD3u4Ec3bSvedyo5ITPI7zgWYnKep7BwQQaxlhI9qbO+lKJoRnoAbEVfMcAHRuKVYikDA==", "dev": true }, - "node_modules/thread-stream": { - "version": "2.6.0", - "resolved": "https://registry.npmjs.org/thread-stream/-/thread-stream-2.6.0.tgz", - "integrity": "sha512-t4eNiKdGwd1EV6tx76mRbrOqwvkxz+ssOiQXEXw88m4p/Xp6679vg16sf39BAstRjHOiWIqp5+J2ylHk3pU30g==", - "dependencies": { - "real-require": "^0.2.0" - } - }, "node_modules/through": { "version": "2.3.8", "resolved": "https://registry.npmjs.org/through/-/through-2.3.8.tgz", "integrity": "sha512-w89qg7PI8wAdvX60bMDP+bFoD5Dvhm9oLheFp5O4a2QF0cSBGsBX4qZmadPMvVqlLJBBci+WqGGOAPvcDeNSVg==" }, - "node_modules/titleize": { - "version": "3.0.0", - "resolved": "https://registry.npmjs.org/titleize/-/titleize-3.0.0.tgz", - "integrity": "sha512-KxVu8EYHDPBdUYdKZdKtU2aj2XfEx9AfjXxE/Aj0vT06w2icA09Vus1rh6eSu1y01akYg6BjIK/hxyLJINoMLQ==", - "engines": { - "node": ">=12" - }, - "funding": { - "url": "https://github.com/sponsors/sindresorhus" - } - }, "node_modules/tmp": { "version": "0.2.3", "resolved": "https://registry.npmjs.org/tmp/-/tmp-0.2.3.tgz", @@ -11024,21 +9610,6 @@ "node": ">=8.0" } }, - "node_modules/tosource": { - "version": "1.0.0", - "resolved": "https://registry.npmjs.org/tosource/-/tosource-1.0.0.tgz", - "integrity": "sha512-N6g8eQ1eerw6Y1pBhdgkubWIiPFwXa2POSUrlL8jth5CyyEWNWzoGKRkO3CaO7Jx27hlJP54muB3btIAbx4MPg==", - "engines": { - "node": ">=0.4.0" - } - }, - "node_modules/tr46": { - "version": "0.0.3", - "resolved": "https://registry.npmjs.org/tr46/-/tr46-0.0.3.tgz", - "integrity": "sha512-N3WMsuqV66lT30CrXNbEjx4GEwlow3v6rr4mCcv6prnfwhS01rkgyFdjPNBYd9br7LpXV1+Emh01fHnq2Gdgrw==", - "optional": true, - "peer": true - }, "node_modules/tsconfig-paths": { "version": "3.15.0", "resolved": "https://registry.npmjs.org/tsconfig-paths/-/tsconfig-paths-3.15.0.tgz", @@ -11082,6 +9653,7 @@ "version": "0.4.0", "resolved": "https://registry.npmjs.org/type-check/-/type-check-0.4.0.tgz", "integrity": "sha512-XleUoc9uwGXqjWwXaUTZAmzMcFZ5858QA2vvx1Ur5xIcixXIP+8LnFDgRplU30us6teqdlskFfu+ae4K79Ooew==", + "dev": true, "dependencies": { "prelude-ls": "^1.2.1" }, @@ -11279,23 +9851,6 @@ "node": ">= 10.0.0" } }, - "node_modules/untildify": { - "version": "4.0.0", - "resolved": "https://registry.npmjs.org/untildify/-/untildify-4.0.0.tgz", - "integrity": "sha512-KK8xQ1mkzZeg9inewmFVDNkg3l5LUhoq9kN6iWYB/CC9YMG8HA+c1Q8HwDe6dEX7kErrEVNVBO3fWsVq5iDgtw==", - "engines": { - "node": ">=8" - } - }, - "node_modules/upath": { - "version": "2.0.1", - "resolved": "https://registry.npmjs.org/upath/-/upath-2.0.1.tgz", - "integrity": "sha512-1uEe95xksV1O0CYKXo8vQvN1JEbtJp7lb7C5U9HMsIp6IVwntkH/oNUzyVNQSd4S1sYk2FpSSW44FqMc8qee5w==", - "engines": { - "node": ">=4", - "yarn": "*" - } - }, "node_modules/update-browserslist-db": { "version": "1.0.13", "resolved": "https://registry.npmjs.org/update-browserslist-db/-/update-browserslist-db-1.0.13.tgz", @@ -11382,6 +9937,7 @@ "version": "4.4.1", "resolved": "https://registry.npmjs.org/uri-js/-/uri-js-4.4.1.tgz", "integrity": "sha512-7rKUyy33Q1yc98pQ1DAmLtwX109F7TIfWlW1Ydo8Wl1ii1SeHieeh0HHfPeL2fMXK6z0s8ecKs9frCuLJvndBg==", + "dev": true, "dependencies": { "punycode": "^2.1.0" } @@ -11408,41 +9964,7 @@ "graceful-fs": "^4.1.2" }, "engines": { - "node": ">=10.13.0" - } - }, - "node_modules/wcwidth": { - "version": "1.0.1", - "resolved": "https://registry.npmjs.org/wcwidth/-/wcwidth-1.0.1.tgz", - "integrity": "sha512-XHPEwS0q6TaxcvG85+8EYkbiCux2XtWG2mkc47Ng2A77BQu9+DqIOJldST4HgPkuea7dvKSj5VgX3P1d4rW8Tg==", - "dependencies": { - "defaults": "^1.0.3" - } - }, - "node_modules/web-streams-polyfill": { - "version": "3.2.1", - "resolved": "https://registry.npmjs.org/web-streams-polyfill/-/web-streams-polyfill-3.2.1.tgz", - "integrity": "sha512-e0MO3wdXWKrLbL0DgGnUV7WHVuw9OUvL4hjgnPkIeEvESk74gAITi5G606JtZPp39cd8HA9VQzCIvA49LpPN5Q==", - "engines": { - "node": ">= 8" - } - }, - "node_modules/webidl-conversions": { - "version": "3.0.1", - "resolved": "https://registry.npmjs.org/webidl-conversions/-/webidl-conversions-3.0.1.tgz", - "integrity": "sha512-2JAn3z8AR6rjK8Sm8orRC0h/bcl/DqL7tRPdGZ4I1CjdF+EaMLmYxBHyXuKL849eucPFhvBoxMsflfOb8kxaeQ==", - "optional": true, - "peer": true - }, - "node_modules/whatwg-url": { - "version": "5.0.0", - "resolved": "https://registry.npmjs.org/whatwg-url/-/whatwg-url-5.0.0.tgz", - "integrity": "sha512-saE57nupxk6v3HY35+jzBwYa0rKSy0XR8JSxZPwgLr7ys0IBzhGviA1/TUGJLmSVqs8pb9AnvICXEuOHLprYTw==", - "optional": true, - "peer": true, - "dependencies": { - "tr46": "~0.0.3", - "webidl-conversions": "^3.0.0" + "node": ">=10.13.0" } }, "node_modules/when": { @@ -11546,71 +10068,6 @@ "url": "https://github.com/chalk/wrap-ansi?sponsor=1" } }, - "node_modules/wrap-ansi-cjs": { - "name": "wrap-ansi", - "version": "7.0.0", - "resolved": "https://registry.npmjs.org/wrap-ansi/-/wrap-ansi-7.0.0.tgz", - "integrity": "sha512-YVGIj2kamLSTxw6NsZjoBxfSwsn0ycdesmc4p+Q21c5zPuZ1pl+NfxVdxPtdHvmNVOQ6XSYG4AUtyt/Fi7D16Q==", - "dependencies": { - "ansi-styles": "^4.0.0", - "string-width": "^4.1.0", - "strip-ansi": "^6.0.0" - }, - "engines": { - "node": ">=10" - }, - "funding": { - "url": "https://github.com/chalk/wrap-ansi?sponsor=1" - } - }, - "node_modules/wrap-ansi-cjs/node_modules/ansi-styles": { - "version": "4.3.0", - "resolved": "https://registry.npmjs.org/ansi-styles/-/ansi-styles-4.3.0.tgz", - "integrity": "sha512-zbB9rCJAT1rbjiVDb2hqKFHNYLxgtk8NURxZ3IZwD3F6NtxbXZQCnnSi1Lkx+IDohdPlFp222wVALIheZJQSEg==", - "dependencies": { - "color-convert": "^2.0.1" - }, - "engines": { - "node": ">=8" - }, - "funding": { - "url": "https://github.com/chalk/ansi-styles?sponsor=1" - } - }, - "node_modules/wrap-ansi-cjs/node_modules/color-convert": { - "version": "2.0.1", - "resolved": "https://registry.npmjs.org/color-convert/-/color-convert-2.0.1.tgz", - "integrity": "sha512-RRECPsj7iu/xb5oKYcsFHSppFNnsj/52OVTRKb4zP5onXwVF3zVmmToNcOfGC+CRDpfK/U584fMg38ZHCaElKQ==", - "dependencies": { - "color-name": "~1.1.4" - }, - "engines": { - "node": ">=7.0.0" - } - }, - "node_modules/wrap-ansi-cjs/node_modules/color-name": { - "version": "1.1.4", - "resolved": "https://registry.npmjs.org/color-name/-/color-name-1.1.4.tgz", - "integrity": "sha512-dOy+3AuW3a2wNbZHIuMZpTcgjGuLU/uBL/ubcZF9OXbDo8ff4O8yVp5Bf0efS8uEoYo5q4Fx7dY9OgQGXgAsQA==" - }, - "node_modules/wrap-ansi-cjs/node_modules/emoji-regex": { - "version": "8.0.0", - "resolved": "https://registry.npmjs.org/emoji-regex/-/emoji-regex-8.0.0.tgz", - "integrity": "sha512-MSjYzcWNOA0ewAHpz0MxpYFvwg6yjy1NG3xteoqz644VCo/RPgnr1/GGt+ic3iJTzQ8Eu3TdM14SawnVUmGE6A==" - }, - "node_modules/wrap-ansi-cjs/node_modules/string-width": { - "version": "4.2.3", - "resolved": "https://registry.npmjs.org/string-width/-/string-width-4.2.3.tgz", - "integrity": "sha512-wKyQRQpjJ0sIp62ErSZdGsjMJWsap5oRNihHhu6G7JVO/9jIB6UyevL+tXuOqrng8j/cxKTWyWUwvSTriiZz/g==", - "dependencies": { - "emoji-regex": "^8.0.0", - "is-fullwidth-code-point": "^3.0.0", - "strip-ansi": "^6.0.1" - }, - "engines": { - "node": ">=8" - } - }, "node_modules/wrap-ansi/node_modules/ansi-regex": { "version": "6.0.1", "resolved": "https://registry.npmjs.org/ansi-regex/-/ansi-regex-6.0.1.tgz", @@ -11650,7 +10107,8 @@ "node_modules/wrappy": { "version": "1.0.2", "resolved": "https://registry.npmjs.org/wrappy/-/wrappy-1.0.2.tgz", - "integrity": "sha512-l4Sp/DRseor9wL6EvV2+TuQn63dMkPjZ/sp9XkghTEbV9KlPS1xUsZ3u7/IQO4wxtcFB4bgpQPRcR3QCvezPcQ==" + "integrity": "sha512-l4Sp/DRseor9wL6EvV2+TuQn63dMkPjZ/sp9XkghTEbV9KlPS1xUsZ3u7/IQO4wxtcFB4bgpQPRcR3QCvezPcQ==", + "devOptional": true }, "node_modules/write-file-atomic": { "version": "3.0.3", @@ -11718,6 +10176,7 @@ "version": "5.0.8", "resolved": "https://registry.npmjs.org/y18n/-/y18n-5.0.8.tgz", "integrity": "sha512-0pfFzegeDWJHJIAmTLRP2DwHjdF5s7jo9tuztdQxAhINCdvS+3nGINqPd00AphqJR/0LhANUS6/+7SCb98YOfA==", + "dev": true, "engines": { "node": ">=10" } @@ -11731,6 +10190,7 @@ "version": "17.7.2", "resolved": "https://registry.npmjs.org/yargs/-/yargs-17.7.2.tgz", "integrity": "sha512-7dSzzRQ++CKnNI/krKnYRV7JKKPUXMEh61soaHKg9mrWEhzFWhFnxPxGl+69cD1Ou63C13NUPCnmIcrvqCuM6w==", + "dev": true, "dependencies": { "cliui": "^8.0.1", "escalade": "^3.1.1", @@ -11805,6 +10265,7 @@ "version": "4.3.0", "resolved": "https://registry.npmjs.org/ansi-styles/-/ansi-styles-4.3.0.tgz", "integrity": "sha512-zbB9rCJAT1rbjiVDb2hqKFHNYLxgtk8NURxZ3IZwD3F6NtxbXZQCnnSi1Lkx+IDohdPlFp222wVALIheZJQSEg==", + "dev": true, "dependencies": { "color-convert": "^2.0.1" }, @@ -11819,6 +10280,7 @@ "version": "8.0.1", "resolved": "https://registry.npmjs.org/cliui/-/cliui-8.0.1.tgz", "integrity": "sha512-BSeNnyus75C4//NQ9gQt1/csTXyo/8Sb+afLAkzAptFuMsod9HFokGNudZpi/oQV73hnVK+sR+5PVRMd+Dr7YQ==", + "dev": true, "dependencies": { "string-width": "^4.2.0", "strip-ansi": "^6.0.1", @@ -11832,6 +10294,7 @@ "version": "2.0.1", "resolved": "https://registry.npmjs.org/color-convert/-/color-convert-2.0.1.tgz", "integrity": "sha512-RRECPsj7iu/xb5oKYcsFHSppFNnsj/52OVTRKb4zP5onXwVF3zVmmToNcOfGC+CRDpfK/U584fMg38ZHCaElKQ==", + "dev": true, "dependencies": { "color-name": "~1.1.4" }, @@ -11842,17 +10305,20 @@ "node_modules/yargs/node_modules/color-name": { "version": "1.1.4", "resolved": "https://registry.npmjs.org/color-name/-/color-name-1.1.4.tgz", - "integrity": "sha512-dOy+3AuW3a2wNbZHIuMZpTcgjGuLU/uBL/ubcZF9OXbDo8ff4O8yVp5Bf0efS8uEoYo5q4Fx7dY9OgQGXgAsQA==" + "integrity": "sha512-dOy+3AuW3a2wNbZHIuMZpTcgjGuLU/uBL/ubcZF9OXbDo8ff4O8yVp5Bf0efS8uEoYo5q4Fx7dY9OgQGXgAsQA==", + "dev": true }, "node_modules/yargs/node_modules/emoji-regex": { "version": "8.0.0", "resolved": "https://registry.npmjs.org/emoji-regex/-/emoji-regex-8.0.0.tgz", - "integrity": "sha512-MSjYzcWNOA0ewAHpz0MxpYFvwg6yjy1NG3xteoqz644VCo/RPgnr1/GGt+ic3iJTzQ8Eu3TdM14SawnVUmGE6A==" + "integrity": "sha512-MSjYzcWNOA0ewAHpz0MxpYFvwg6yjy1NG3xteoqz644VCo/RPgnr1/GGt+ic3iJTzQ8Eu3TdM14SawnVUmGE6A==", + "dev": true }, "node_modules/yargs/node_modules/string-width": { "version": "4.2.3", "resolved": "https://registry.npmjs.org/string-width/-/string-width-4.2.3.tgz", "integrity": "sha512-wKyQRQpjJ0sIp62ErSZdGsjMJWsap5oRNihHhu6G7JVO/9jIB6UyevL+tXuOqrng8j/cxKTWyWUwvSTriiZz/g==", + "dev": true, "dependencies": { "emoji-regex": "^8.0.0", "is-fullwidth-code-point": "^3.0.0", @@ -11866,6 +10332,7 @@ "version": "7.0.0", "resolved": "https://registry.npmjs.org/wrap-ansi/-/wrap-ansi-7.0.0.tgz", "integrity": "sha512-YVGIj2kamLSTxw6NsZjoBxfSwsn0ycdesmc4p+Q21c5zPuZ1pl+NfxVdxPtdHvmNVOQ6XSYG4AUtyt/Fi7D16Q==", + "dev": true, "dependencies": { "ansi-styles": "^4.0.0", "string-width": "^4.1.0", @@ -11882,6 +10349,7 @@ "version": "21.1.1", "resolved": "https://registry.npmjs.org/yargs-parser/-/yargs-parser-21.1.1.tgz", "integrity": "sha512-tVpsJW7DdjecAiFpbIB1e3qxIQsE6NoPc5/eTdrbbIC4h0LVsWhnoa3g+m2HclBIujHzsxZ4VJVA+GUuc2/LBw==", + "dev": true, "engines": { "node": ">=12" } @@ -11890,6 +10358,7 @@ "version": "2.10.0", "resolved": "https://registry.npmjs.org/yauzl/-/yauzl-2.10.0.tgz", "integrity": "sha512-p4a9I6X6nu6IhoGmBqAcbJy1mlC4j27vEPZX9F4L4/vZT3Lyq1VkFHw/V/PUcB9Buo+DG3iHkT0x3Qya58zc3g==", + "dev": true, "dependencies": { "buffer-crc32": "~0.2.3", "fd-slicer": "~1.1.0" @@ -11899,6 +10368,7 @@ "version": "0.1.0", "resolved": "https://registry.npmjs.org/yocto-queue/-/yocto-queue-0.1.0.tgz", "integrity": "sha512-rVksvsnNCdJ/ohGc6xgPwyN8eheCxsiLM8mxuE/t/mOVqJewPuO1miLpTHQiRgTKCLexL4MeAFVagts7HmNZ2Q==", + "dev": true, "engines": { "node": ">=10" }, @@ -11920,7 +10390,8 @@ "@aashutoshrathi/word-wrap": { "version": "1.2.6", "resolved": "https://registry.npmjs.org/@aashutoshrathi/word-wrap/-/word-wrap-1.2.6.tgz", - "integrity": "sha512-1Yjs2SvM8TflER/OD3cOjhWWOZb58A2t7wpE2S9XfBYTiIl+XFhQG2bjy4Pu1I+EAlCNUzRDYDdFwFYUKvXcIA==" + "integrity": "sha512-1Yjs2SvM8TflER/OD3cOjhWWOZb58A2t7wpE2S9XfBYTiIl+XFhQG2bjy4Pu1I+EAlCNUzRDYDdFwFYUKvXcIA==", + "dev": true }, "@ampproject/remapping": { "version": "2.2.0", @@ -13718,6 +12189,7 @@ "version": "4.2.0", "resolved": "https://registry.npmjs.org/@eslint-community/eslint-utils/-/eslint-utils-4.2.0.tgz", "integrity": "sha512-gB8T4H4DEfX2IV9zGDJPOBgP1e/DbfCPDTtEqUMckpvzS1OYtva8JdFYBqMwYk7xAQ429WGF/UPqn8uQ//h2vQ==", + "dev": true, "requires": { "eslint-visitor-keys": "^3.3.0" }, @@ -13725,19 +12197,22 @@ "eslint-visitor-keys": { "version": "3.3.0", "resolved": "https://registry.npmjs.org/eslint-visitor-keys/-/eslint-visitor-keys-3.3.0.tgz", - "integrity": "sha512-mQ+suqKJVyeuwGYHAdjMFqjCyfl8+Ldnxuyp3ldiMBFKkvytrXUZWaiPCEav8qDHKty44bD+qV1IP4T+w+xXRA==" + "integrity": "sha512-mQ+suqKJVyeuwGYHAdjMFqjCyfl8+Ldnxuyp3ldiMBFKkvytrXUZWaiPCEav8qDHKty44bD+qV1IP4T+w+xXRA==", + "dev": true } } }, "@eslint-community/regexpp": { "version": "4.6.2", "resolved": "https://registry.npmjs.org/@eslint-community/regexpp/-/regexpp-4.6.2.tgz", - "integrity": "sha512-pPTNuaAG3QMH+buKyBIGJs3g/S5y0caxw0ygM3YyE6yJFySwiGGSzA+mM3KJ8QQvzeLh3blwgSonkFjgQdxzMw==" + "integrity": "sha512-pPTNuaAG3QMH+buKyBIGJs3g/S5y0caxw0ygM3YyE6yJFySwiGGSzA+mM3KJ8QQvzeLh3blwgSonkFjgQdxzMw==", + "dev": true }, "@eslint/eslintrc": { "version": "2.1.4", "resolved": "https://registry.npmjs.org/@eslint/eslintrc/-/eslintrc-2.1.4.tgz", "integrity": "sha512-269Z39MS6wVJtsoUl10L60WdkhJVdPG24Q4eZTH3nnF6lpvSShEK3wQjDX9JRWAUPvPh7COouPpU9IrqaZFvtQ==", + "dev": true, "requires": { "ajv": "^6.12.4", "debug": "^4.3.2", @@ -13754,6 +12229,7 @@ "version": "6.12.6", "resolved": "https://registry.npmjs.org/ajv/-/ajv-6.12.6.tgz", "integrity": "sha512-j3fVLgvTo527anyYyJOGTYJbG+vnnQYvE0m5mmkc1TK+nxAppkCLMIL0aZ4dblVCNoGShhm+kzE4ZUykBoMg4g==", + "dev": true, "requires": { "fast-deep-equal": "^3.1.1", "fast-json-stable-stringify": "^2.0.0", @@ -13764,12 +12240,14 @@ "argparse": { "version": "2.0.1", "resolved": "https://registry.npmjs.org/argparse/-/argparse-2.0.1.tgz", - "integrity": "sha512-8+9WqebbFzpX9OR+Wa6O29asIogeRMzcGtAINdpMHHyAg10f05aSFVBbcEqGf/PXw1EjAZ+q2/bEBg3DvurK3Q==" + "integrity": "sha512-8+9WqebbFzpX9OR+Wa6O29asIogeRMzcGtAINdpMHHyAg10f05aSFVBbcEqGf/PXw1EjAZ+q2/bEBg3DvurK3Q==", + "dev": true }, "globals": { "version": "13.23.0", "resolved": "https://registry.npmjs.org/globals/-/globals-13.23.0.tgz", "integrity": "sha512-XAmF0RjlrjY23MA51q3HltdlGxUpXPvg0GioKiD9X6HD28iMjo2dKC8Vqwm7lne4GNr78+RHTfliktR6ZH09wA==", + "dev": true, "requires": { "type-fest": "^0.20.2" } @@ -13778,6 +12256,7 @@ "version": "4.1.0", "resolved": "https://registry.npmjs.org/js-yaml/-/js-yaml-4.1.0.tgz", "integrity": "sha512-wpxZs9NoxZaJESJGIZTyDEaYpl0FKSA+FB9aJiyemKhMwkxQg63h4T1KJgUGHpTqPDNRcmmYLugrRjJlBtWvRA==", + "dev": true, "requires": { "argparse": "^2.0.1" } @@ -13785,34 +12264,34 @@ "json-schema-traverse": { "version": "0.4.1", "resolved": "https://registry.npmjs.org/json-schema-traverse/-/json-schema-traverse-0.4.1.tgz", - "integrity": "sha512-xbbCH5dCYU5T8LcEhhuh7HJ88HXuW3qsI3Y0zOZFKfZEHcpWiHU/Jxzk629Brsab/mMiHQti9wMP+845RPe3Vg==" + "integrity": "sha512-xbbCH5dCYU5T8LcEhhuh7HJ88HXuW3qsI3Y0zOZFKfZEHcpWiHU/Jxzk629Brsab/mMiHQti9wMP+845RPe3Vg==", + "dev": true }, "strip-json-comments": { "version": "3.1.1", "resolved": "https://registry.npmjs.org/strip-json-comments/-/strip-json-comments-3.1.1.tgz", - "integrity": "sha512-6fPc+R4ihwqP6N/aIv2f1gMH8lOVtWQHoqC4yK6oSDVVocumAsfCqjkXnqiYMhmMwS/mEHLp7Vehlt3ql6lEig==" + "integrity": "sha512-6fPc+R4ihwqP6N/aIv2f1gMH8lOVtWQHoqC4yK6oSDVVocumAsfCqjkXnqiYMhmMwS/mEHLp7Vehlt3ql6lEig==", + "dev": true }, "type-fest": { "version": "0.20.2", "resolved": "https://registry.npmjs.org/type-fest/-/type-fest-0.20.2.tgz", - "integrity": "sha512-Ne+eE4r0/iWnpAxD852z3A+N0Bt5RN//NjJwRd2VFHEmrywxf5vsZlh4R6lixl6B+wz/8d+maTSAkN1FIkI3LQ==" + "integrity": "sha512-Ne+eE4r0/iWnpAxD852z3A+N0Bt5RN//NjJwRd2VFHEmrywxf5vsZlh4R6lixl6B+wz/8d+maTSAkN1FIkI3LQ==", + "dev": true } } }, "@eslint/js": { "version": "8.57.0", "resolved": "https://registry.npmjs.org/@eslint/js/-/js-8.57.0.tgz", - "integrity": "sha512-Ys+3g2TaW7gADOJzPt83SJtCDhMjndcDMFVQ/Tj9iA1BfJzFKD9mAUXT3OenpuPHbI6P/myECxRJrofUsDx/5g==" - }, - "@fluent/syntax": { - "version": "0.19.0", - "resolved": "https://registry.npmjs.org/@fluent/syntax/-/syntax-0.19.0.tgz", - "integrity": "sha512-5D2qVpZrgpjtqU4eNOcWGp1gnUCgjfM+vKGE2y03kKN6z5EBhtx0qdRFbg8QuNNj8wXNoX93KJoYb+NqoxswmQ==" + "integrity": "sha512-Ys+3g2TaW7gADOJzPt83SJtCDhMjndcDMFVQ/Tj9iA1BfJzFKD9mAUXT3OenpuPHbI6P/myECxRJrofUsDx/5g==", + "dev": true }, "@humanwhocodes/config-array": { "version": "0.11.14", "resolved": "https://registry.npmjs.org/@humanwhocodes/config-array/-/config-array-0.11.14.tgz", "integrity": "sha512-3T8LkOmg45BV5FICb15QQMsyUSWrQ8AygVfC7ZG32zOalnqrilm018ZVCw0eapXux8FtA33q8PSRSstjee3jSg==", + "dev": true, "requires": { "@humanwhocodes/object-schema": "^2.0.2", "debug": "^4.3.1", @@ -13822,40 +12301,14 @@ "@humanwhocodes/module-importer": { "version": "1.0.1", "resolved": "https://registry.npmjs.org/@humanwhocodes/module-importer/-/module-importer-1.0.1.tgz", - "integrity": "sha512-bxveV4V8v5Yb4ncFTT3rPSgZBOpCkjfK0y4oVVVJwIuDVBRMDXrPyXRL988i5ap9m9bnyEEjWfm5WkBmtffLfA==" + "integrity": "sha512-bxveV4V8v5Yb4ncFTT3rPSgZBOpCkjfK0y4oVVVJwIuDVBRMDXrPyXRL988i5ap9m9bnyEEjWfm5WkBmtffLfA==", + "dev": true }, "@humanwhocodes/object-schema": { "version": "2.0.2", "resolved": "https://registry.npmjs.org/@humanwhocodes/object-schema/-/object-schema-2.0.2.tgz", - "integrity": "sha512-6EwiSjwWYP7pTckG6I5eyFANjPhmPjUX9JRLUSfNPC7FX7zK9gyZAfUEaECL6ALTpGX5AjnBq3C9XmVWPitNpw==" - }, - "@isaacs/cliui": { - "version": "8.0.2", - "resolved": "https://registry.npmjs.org/@isaacs/cliui/-/cliui-8.0.2.tgz", - "integrity": "sha512-O8jcjabXaleOG9DQ0+ARXWZBTfnP4WNAqzuiJK7ll44AmxGKv/J2M4TPjxjY3znBCfvBXFzucm1twdyFybFqEA==", - "requires": { - "string-width": "^5.1.2", - "string-width-cjs": "npm:string-width@^4.2.0", - "strip-ansi": "^7.0.1", - "strip-ansi-cjs": "npm:strip-ansi@^6.0.1", - "wrap-ansi": "^8.1.0", - "wrap-ansi-cjs": "npm:wrap-ansi@^7.0.0" - }, - "dependencies": { - "ansi-regex": { - "version": "6.0.1", - "resolved": "https://registry.npmjs.org/ansi-regex/-/ansi-regex-6.0.1.tgz", - "integrity": "sha512-n5M855fKb2SsfMIiFFoVrABHJC8QtHwVx+mHWP3QcEqBHYienj5dHSgjbxtC0WEZXYt4wcD6zrQElDPhFuZgfA==" - }, - "strip-ansi": { - "version": "7.1.0", - "resolved": "https://registry.npmjs.org/strip-ansi/-/strip-ansi-7.1.0.tgz", - "integrity": "sha512-iq6eVVI64nQQTRYq2KtEg2d2uU7LElhTJwsH4YzIHZshxlgZms/wIc4VoDQTlG/IvVIrBKG06CrZnp0qv7hkcQ==", - "requires": { - "ansi-regex": "^6.0.1" - } - } - } + "integrity": "sha512-6EwiSjwWYP7pTckG6I5eyFANjPhmPjUX9JRLUSfNPC7FX7zK9gyZAfUEaECL6ALTpGX5AjnBq3C9XmVWPitNpw==", + "dev": true }, "@istanbuljs/load-nyc-config": { "version": "1.1.0", @@ -13959,11 +12412,6 @@ "@jridgewell/sourcemap-codec": "^1.4.14" } }, - "@mdn/browser-compat-data": { - "version": "5.5.34", - "resolved": "https://registry.npmjs.org/@mdn/browser-compat-data/-/browser-compat-data-5.5.34.tgz", - "integrity": "sha512-e8k7+8r3jiJuP7FMH6AL1OnmfQqLyABhTM+NmRDvFeAbMgtFcNQLHpmT7uza5cBnxI01+CAU3aSsIgcKGRdEBQ==" - }, "@nicolo-ribaudo/chokidar-2": { "version": "2.1.8-no-fsevents.3", "resolved": "https://registry.npmjs.org/@nicolo-ribaudo/chokidar-2/-/chokidar-2-2.1.8-no-fsevents.3.tgz", @@ -13984,6 +12432,7 @@ "version": "2.1.5", "resolved": "https://registry.npmjs.org/@nodelib/fs.scandir/-/fs.scandir-2.1.5.tgz", "integrity": "sha512-vq24Bq3ym5HEQm2NKCr3yXDwjc7vTsEThRDnkp2DK9p1uqLR+DHurm/NOTo0KG7HYHU7eppKZj3MyqYuMBf62g==", + "dev": true, "requires": { "@nodelib/fs.stat": "2.0.5", "run-parallel": "^1.1.9" @@ -13992,23 +12441,19 @@ "@nodelib/fs.stat": { "version": "2.0.5", "resolved": "https://registry.npmjs.org/@nodelib/fs.stat/-/fs.stat-2.0.5.tgz", - "integrity": "sha512-RkhPPp2zrqDAQA/2jNhnztcPAlv64XdhIp7a7454A5ovI7Bukxgt7MX7udwAu3zg1DcpPU0rz3VV1SeaqvY4+A==" + "integrity": "sha512-RkhPPp2zrqDAQA/2jNhnztcPAlv64XdhIp7a7454A5ovI7Bukxgt7MX7udwAu3zg1DcpPU0rz3VV1SeaqvY4+A==", + "dev": true }, "@nodelib/fs.walk": { "version": "1.2.8", "resolved": "https://registry.npmjs.org/@nodelib/fs.walk/-/fs.walk-1.2.8.tgz", "integrity": "sha512-oGB+UxlgWcgQkgwo8GcEGwemoTFt3FIO9ababBmaGwXIoBKZ+GTy0pP185beGg7Llih/NSHSV2XAs1lnznocSg==", + "dev": true, "requires": { "@nodelib/fs.scandir": "2.1.5", "fastq": "^1.6.0" } }, - "@pkgjs/parseargs": { - "version": "0.11.0", - "resolved": "https://registry.npmjs.org/@pkgjs/parseargs/-/parseargs-0.11.0.tgz", - "integrity": "sha512-+1VkjdD0QBLPodGrJUeqarH8VAIvQODIbwh9XpP5Syisf7YoQgsJKPNFoqqLQlu+VQ/tVSshMR6loPMn8U+dPg==", - "optional": true - }, "@pnpm/network.ca-file": { "version": "1.0.1", "resolved": "https://registry.npmjs.org/@pnpm/network.ca-file/-/network.ca-file-1.0.1.tgz", @@ -14115,225 +12560,30 @@ "resolved": "https://registry.npmjs.org/@types/node/-/node-20.5.1.tgz", "integrity": "sha512-4tT2UrL5LBqDwoed9wZ6N3umC4Yhz3W3FloMmiiG4JwmUJWpie0c7lcnUNd4gtMKuDEO4wRVS8B6Xa0uMRsMKg==" }, - "@types/yauzl": { - "version": "2.10.3", - "resolved": "https://registry.npmjs.org/@types/yauzl/-/yauzl-2.10.3.tgz", - "integrity": "sha512-oJoftv0LSuaDZE3Le4DbKX+KS9G36NzOeSap90UIK0yMA/NhKJhqlSGtNDORNRaIbQfzjXDrQa0ytJ6mNRGz/Q==", - "requires": { - "@types/node": "*" - } - }, "@ungap/structured-clone": { "version": "1.2.0", "resolved": "https://registry.npmjs.org/@ungap/structured-clone/-/structured-clone-1.2.0.tgz", - "integrity": "sha512-zuVdFrMJiuCDQUMCzQaD6KL28MjnqqN8XnAqiEq9PNm/hCPTSGfrXCOfwj1ow4LFb/tNymJPwsNbVePc1xFqrQ==" - }, - "abort-controller": { - "version": "3.0.0", - "resolved": "https://registry.npmjs.org/abort-controller/-/abort-controller-3.0.0.tgz", - "integrity": "sha512-h8lQ8tacZYnR3vNQTgibj+tODHI5/+l06Au2Pcriv/Gmet0eaj4TwWH41sO9wnHDiQsEj19q0drzdWdeAHtweg==", - "requires": { - "event-target-shim": "^5.0.0" - } + "integrity": "sha512-zuVdFrMJiuCDQUMCzQaD6KL28MjnqqN8XnAqiEq9PNm/hCPTSGfrXCOfwj1ow4LFb/tNymJPwsNbVePc1xFqrQ==", + "dev": true }, "acorn": { "version": "8.11.3", "resolved": "https://registry.npmjs.org/acorn/-/acorn-8.11.3.tgz", - "integrity": "sha512-Y9rRfJG5jcKOE0CLisYbojUjIrIEE7AGMzA/Sm4BslANhbS+cDMpgBdcPT91oJ7OuJ9hYJBx59RjbhxVnrF8Xg==" + "integrity": "sha512-Y9rRfJG5jcKOE0CLisYbojUjIrIEE7AGMzA/Sm4BslANhbS+cDMpgBdcPT91oJ7OuJ9hYJBx59RjbhxVnrF8Xg==", + "dev": true }, "acorn-jsx": { "version": "5.3.2", "resolved": "https://registry.npmjs.org/acorn-jsx/-/acorn-jsx-5.3.2.tgz", "integrity": "sha512-rq9s+JNhf0IChjtDXxllJ7g41oZk5SlXtp0LHwyA5cejwn7vKmKp4pPri6YEePv2PU65sAsegbXtIinmDFDXgQ==", + "dev": true, "requires": {} }, - "addons-linter": { - "version": "6.31.1", - "resolved": "https://registry.npmjs.org/addons-linter/-/addons-linter-6.31.1.tgz", - "integrity": "sha512-R9FCyVzqU/h5A2aB1t+jD8t4QKLuLxYqc1FjmjJ0nZrn1qNCna1jFOajt5R1T8pwt0H4WXgT+uwWSD2BdkBzqQ==", - "requires": { - "@fluent/syntax": "0.19.0", - "@mdn/browser-compat-data": "5.5.34", - "addons-moz-compare": "1.3.0", - "addons-scanner-utils": "9.11.0", - "ajv": "8.16.0", - "chalk": "4.1.2", - "cheerio": "1.0.0-rc.12", - "columnify": "1.6.0", - "common-tags": "1.8.2", - "deepmerge": "4.3.1", - "eslint": "8.57.0", - "eslint-plugin-no-unsanitized": "4.0.2", - "eslint-visitor-keys": "4.0.0", - "espree": "10.0.1", - "esprima": "4.0.1", - "fast-json-patch": "3.1.1", - "glob": "10.4.2", - "image-size": "1.1.1", - "is-mergeable-object": "1.1.1", - "jed": "1.1.1", - "json-merge-patch": "1.0.2", - "os-locale": "5.0.0", - "pino": "8.20.0", - "relaxed-json": "1.0.3", - "semver": "7.6.2", - "sha.js": "2.4.11", - "source-map-support": "0.5.21", - "tosource": "1.0.0", - "upath": "2.0.1", - "yargs": "17.7.2", - "yauzl": "2.10.0" - }, - "dependencies": { - "addons-scanner-utils": { - "version": "9.11.0", - "resolved": "https://registry.npmjs.org/addons-scanner-utils/-/addons-scanner-utils-9.11.0.tgz", - "integrity": "sha512-X95V8ymnue9EHmOLz3zJTGHvHDFlWKiavlH+kJKOlv2sJDWFvD3TWeJMHJgxS9GKOqT/545mOXvX3vuuGGum+g==", - "requires": { - "@types/yauzl": "2.10.3", - "common-tags": "1.8.2", - "first-chunk-stream": "3.0.0", - "strip-bom-stream": "4.0.0", - "upath": "2.0.1", - "yauzl": "2.10.0" - } - }, - "ansi-styles": { - "version": "4.3.0", - "resolved": "https://registry.npmjs.org/ansi-styles/-/ansi-styles-4.3.0.tgz", - "integrity": "sha512-zbB9rCJAT1rbjiVDb2hqKFHNYLxgtk8NURxZ3IZwD3F6NtxbXZQCnnSi1Lkx+IDohdPlFp222wVALIheZJQSEg==", - "requires": { - "color-convert": "^2.0.1" - } - }, - "brace-expansion": { - "version": "2.0.1", - "resolved": "https://registry.npmjs.org/brace-expansion/-/brace-expansion-2.0.1.tgz", - "integrity": "sha512-XnAIvQ8eM+kC6aULx6wuQiwVsnzsi9d3WxzV3FpWTGA19F621kwdbsAcFKXgKUHZWsy+mY6iL1sHTxWEFCytDA==", - "requires": { - "balanced-match": "^1.0.0" - } - }, - "chalk": { - "version": "4.1.2", - "resolved": "https://registry.npmjs.org/chalk/-/chalk-4.1.2.tgz", - "integrity": "sha512-oKnbhFyRIXpUuez8iBMmyEa4nbj4IOQyuhc/wy9kY7/WVPcwIO9VA668Pu8RkO7+0G76SLROeyw9CpQ061i4mA==", - "requires": { - "ansi-styles": "^4.1.0", - "supports-color": "^7.1.0" - } - }, - "color-convert": { - "version": "2.0.1", - "resolved": "https://registry.npmjs.org/color-convert/-/color-convert-2.0.1.tgz", - "integrity": "sha512-RRECPsj7iu/xb5oKYcsFHSppFNnsj/52OVTRKb4zP5onXwVF3zVmmToNcOfGC+CRDpfK/U584fMg38ZHCaElKQ==", - "requires": { - "color-name": "~1.1.4" - } - }, - "color-name": { - "version": "1.1.4", - "resolved": "https://registry.npmjs.org/color-name/-/color-name-1.1.4.tgz", - "integrity": "sha512-dOy+3AuW3a2wNbZHIuMZpTcgjGuLU/uBL/ubcZF9OXbDo8ff4O8yVp5Bf0efS8uEoYo5q4Fx7dY9OgQGXgAsQA==" - }, - "eslint-visitor-keys": { - "version": "4.0.0", - "resolved": "https://registry.npmjs.org/eslint-visitor-keys/-/eslint-visitor-keys-4.0.0.tgz", - "integrity": "sha512-OtIRv/2GyiF6o/d8K7MYKKbXrOUBIK6SfkIRM4Z0dY3w+LiQ0vy3F57m0Z71bjbyeiWFiHJ8brqnmE6H6/jEuw==" - }, - "espree": { - "version": "10.0.1", - "resolved": "https://registry.npmjs.org/espree/-/espree-10.0.1.tgz", - "integrity": "sha512-MWkrWZbJsL2UwnjxTX3gG8FneachS/Mwg7tdGXce011sJd5b0JG54vat5KHnfSBODZ3Wvzd2WnjxyzsRoVv+ww==", - "requires": { - "acorn": "^8.11.3", - "acorn-jsx": "^5.3.2", - "eslint-visitor-keys": "^4.0.0" - } - }, - "foreground-child": { - "version": "3.2.1", - "resolved": "https://registry.npmjs.org/foreground-child/-/foreground-child-3.2.1.tgz", - "integrity": "sha512-PXUUyLqrR2XCWICfv6ukppP96sdFwWbNEnfEMt7jNsISjMsvaLNinAHNDYyvkyU+SZG2BTSbT5NjG+vZslfGTA==", - "requires": { - "cross-spawn": "^7.0.0", - "signal-exit": "^4.0.1" - } - }, - "glob": { - "version": "10.4.2", - "resolved": "https://registry.npmjs.org/glob/-/glob-10.4.2.tgz", - "integrity": "sha512-GwMlUF6PkPo3Gk21UxkCohOv0PLcIXVtKyLlpEI28R/cO/4eNOdmLk3CMW1wROV/WR/EsZOWAfBbBOqYvs88/w==", - "requires": { - "foreground-child": "^3.1.0", - "jackspeak": "^3.1.2", - "minimatch": "^9.0.4", - "minipass": "^7.1.2", - "package-json-from-dist": "^1.0.0", - "path-scurry": "^1.11.1" - } - }, - "has-flag": { - "version": "4.0.0", - "resolved": "https://registry.npmjs.org/has-flag/-/has-flag-4.0.0.tgz", - "integrity": "sha512-EykJT/Q1KjTWctppgIAgfSO0tKVuZUjhgMr17kqTumMl6Afv3EISleU7qZUzoXDFTAHTDC4NOoG/ZxU3EvlMPQ==" - }, - "minimatch": { - "version": "9.0.4", - "resolved": "https://registry.npmjs.org/minimatch/-/minimatch-9.0.4.tgz", - "integrity": "sha512-KqWh+VchfxcMNRAJjj2tnsSJdNbHsVgnkBhTNrW7AjVo6OvLtxw8zfT9oLw1JSohlFzJ8jCoTgaoXvJ+kHt6fw==", - "requires": { - "brace-expansion": "^2.0.1" - } - }, - "node-fetch": { - "version": "2.6.11", - "resolved": "https://registry.npmjs.org/node-fetch/-/node-fetch-2.6.11.tgz", - "integrity": "sha512-4I6pdBY1EthSqDmJkiNk3JIT8cswwR9nfeW/cPdUagJYEQG7R95WRH74wpz7ma8Gh/9dI9FP+OU+0E4FvtA55w==", - "optional": true, - "peer": true, - "requires": { - "whatwg-url": "^5.0.0" - } - }, - "semver": { - "version": "7.6.2", - "resolved": "https://registry.npmjs.org/semver/-/semver-7.6.2.tgz", - "integrity": "sha512-FNAIBWCx9qcRhoHcgcJ0gvU7SN1lYU2ZXuSfl04bSC5OpvDHFyJCjdNHomPXxjQlCBU67YW64PzY7/VIEH7F2w==" - }, - "signal-exit": { - "version": "4.1.0", - "resolved": "https://registry.npmjs.org/signal-exit/-/signal-exit-4.1.0.tgz", - "integrity": "sha512-bzyZ1e88w9O1iNJbKnOlvYTrWPDl46O1bG0D3XInv+9tkPrxrN8jUUTiFlDkkmKWgn1M6CfIA13SuGqOa9Korw==" - }, - "supports-color": { - "version": "7.2.0", - "resolved": "https://registry.npmjs.org/supports-color/-/supports-color-7.2.0.tgz", - "integrity": "sha512-qpCAvRl9stuOHveKsn7HncJRvv501qIacKzQlO/+Lwxc9+0q2wLyv4Dfvt80/DPn2pqOBsJdDiogXGR9+OvwRw==", - "requires": { - "has-flag": "^4.0.0" - } - } - } - }, - "addons-moz-compare": { - "version": "1.3.0", - "resolved": "https://registry.npmjs.org/addons-moz-compare/-/addons-moz-compare-1.3.0.tgz", - "integrity": "sha512-/rXpQeaY0nOKhNx00pmZXdk5Mu+KhVlL3/pSBuAYwrxRrNiTvI/9xfQI8Lmm7DMMl+PDhtfAHY/0ibTpdeoQQQ==" - }, "adm-zip": { "version": "0.5.9", "resolved": "https://registry.npmjs.org/adm-zip/-/adm-zip-0.5.9.tgz", "integrity": "sha512-s+3fXLkeeLjZ2kLjCBwQufpI5fuN+kIGBxu6530nVQZGVol0d7Y/M88/xw9HGGUcJjKf8LutN3VPRUBq6N7Ajg==" }, - "agent-base": { - "version": "7.1.0", - "resolved": "https://registry.npmjs.org/agent-base/-/agent-base-7.1.0.tgz", - "integrity": "sha512-o/zjMZRhJxny7OyEF+Op8X+efiELC7k7yOjMzgfzVqOzXqkBkWI79YoTdOtsuWd5BWhAGAuOY/Xa6xpiaWXiNg==", - "requires": { - "debug": "^4.3.4" - } - }, "aggregate-error": { "version": "3.1.0", "resolved": "https://registry.npmjs.org/aggregate-error/-/aggregate-error-3.1.0.tgz", @@ -14348,6 +12598,7 @@ "version": "8.16.0", "resolved": "https://registry.npmjs.org/ajv/-/ajv-8.16.0.tgz", "integrity": "sha512-F0twR8U1ZU67JIEtekUcLkXkoO5mMMmgGD8sK/xUFzJ805jxHQl92hImFAqqXMyMYjSPOyUPAwHYhB72g5sTXw==", + "dev": true, "requires": { "fast-deep-equal": "^3.1.3", "json-schema-traverse": "^1.0.0", @@ -14540,11 +12791,6 @@ "resolved": "https://registry.npmjs.org/at-least-node/-/at-least-node-1.0.0.tgz", "integrity": "sha512-+q/t7Ekv1EDY2l6Gda6LLiX14rU9TV20Wa3ofeQmwPFZbOMo9DXrLbOjFaaclkXKWidIaopwAObQDqwWtGUjqg==" }, - "atomic-sleep": { - "version": "1.0.0", - "resolved": "https://registry.npmjs.org/atomic-sleep/-/atomic-sleep-1.0.0.tgz", - "integrity": "sha512-kNOjDqAh7px0XWNI+4QbzoiR/nTkHAWNud2uvnJquD1/x5a7EQZMJT0AczqK0Qn67oY/TTQ1LbUKajZpp3I9tQ==" - }, "available-typed-arrays": { "version": "1.0.5", "resolved": "https://registry.npmjs.org/available-typed-arrays/-/available-typed-arrays-1.0.5.tgz", @@ -14605,16 +12851,6 @@ "resolved": "https://registry.npmjs.org/balanced-match/-/balanced-match-1.0.2.tgz", "integrity": "sha512-3oSeUO0TMV67hN1AmbXsK4yaqU7tjiHlbxRDZOpH0KW9+CeX4bRAaX0Anxt0tx2MrpRpWwQaPwIlISEJhYU5Pw==" }, - "base64-js": { - "version": "1.5.1", - "resolved": "https://registry.npmjs.org/base64-js/-/base64-js-1.5.1.tgz", - "integrity": "sha512-AKpaYlHn8t4SVbOHCy+b5+KKgvR4vrsD8vbvrbiQJps7fKDTkjkDry6ji0rUJjC0kzbNePLwzxq8iypo41qeWA==" - }, - "big-integer": { - "version": "1.6.51", - "resolved": "https://registry.npmjs.org/big-integer/-/big-integer-1.6.51.tgz", - "integrity": "sha512-GPEid2Y9QU1Exl1rpO9B2IPJGHPSupF5GnVIP0blYvNOMer2bTvSWs1jGOUg04hTmu67nmLsQ9TBo1puaotBHg==" - }, "binary-extensions": { "version": "2.2.0", "resolved": "https://registry.npmjs.org/binary-extensions/-/binary-extensions-2.2.0.tgz", @@ -14626,11 +12862,6 @@ "resolved": "https://registry.npmjs.org/bluebird/-/bluebird-3.7.2.tgz", "integrity": "sha512-XpNj6GDQzdfW+r2Wnn7xiSAd7TM3jzkxGXBGTtWKuSXv1xUV+azxAm8jdWZN06QTQk+2N2XB9jRDkvbmQmcRtg==" }, - "boolbase": { - "version": "1.0.0", - "resolved": "https://registry.npmjs.org/boolbase/-/boolbase-1.0.0.tgz", - "integrity": "sha512-JZOSA7Mo9sNGB8+UjSgzdLtokWAky1zbztM3WRLCbZ70/3cTANmQmOdR7y2g+J0e2WXywy1yS468tY+IruqEww==" - }, "boxen": { "version": "7.0.0", "resolved": "https://registry.npmjs.org/boxen/-/boxen-7.0.0.tgz", @@ -14663,14 +12894,6 @@ } } }, - "bplist-parser": { - "version": "0.2.0", - "resolved": "https://registry.npmjs.org/bplist-parser/-/bplist-parser-0.2.0.tgz", - "integrity": "sha512-z0M+byMThzQmD9NILRniCUXYsYpjwnlO8N5uCFaCqIOpqRsJCrQL9NK3JsD67CN5a08nF5oIL2bD6loTdHOuKw==", - "requires": { - "big-integer": "^1.6.44" - } - }, "brace-expansion": { "version": "1.1.11", "resolved": "https://registry.npmjs.org/brace-expansion/-/brace-expansion-1.1.11.tgz", @@ -14707,33 +12930,17 @@ "update-browserslist-db": "^1.0.13" } }, - "buffer": { - "version": "6.0.3", - "resolved": "https://registry.npmjs.org/buffer/-/buffer-6.0.3.tgz", - "integrity": "sha512-FTiCpNxtwiZZHEZbcbTIcZjERVICn9yq/pDFkTl95/AxzD1naBctN7YO68riM/gLSDY7sdrMby8hofADYuuqOA==", - "requires": { - "base64-js": "^1.3.1", - "ieee754": "^1.2.1" - } - }, "buffer-crc32": { "version": "0.2.13", "resolved": "https://registry.npmjs.org/buffer-crc32/-/buffer-crc32-0.2.13.tgz", - "integrity": "sha512-VO9Ht/+p3SN7SKWqcrgEzjGbRSJYTx+Q1pTQC0wrWqHx0vpJraQ6GtHx8tvcg1rlK1byhU5gccxgOgj7B0TDkQ==" + "integrity": "sha512-VO9Ht/+p3SN7SKWqcrgEzjGbRSJYTx+Q1pTQC0wrWqHx0vpJraQ6GtHx8tvcg1rlK1byhU5gccxgOgj7B0TDkQ==", + "dev": true }, "buffer-from": { "version": "1.1.2", "resolved": "https://registry.npmjs.org/buffer-from/-/buffer-from-1.1.2.tgz", "integrity": "sha512-E+XQCRwSbaaiChtv6k6Dwgc+bx+Bs6vuKJHHl5kox/BaKbhiXzqQOwK4cO22yElGp2OCmjwVhT3HmxgyPGnJfQ==" }, - "bundle-name": { - "version": "3.0.0", - "resolved": "https://registry.npmjs.org/bundle-name/-/bundle-name-3.0.0.tgz", - "integrity": "sha512-PKA4BeSvBpQKQ8iPOGCSiell+N8P+Tf1DlwqmYhpe2gAhKPHn8EYOxVT+ShuGmhg8lN8XiSlS80yiExKXrURlw==", - "requires": { - "run-applescript": "^5.0.0" - } - }, "bunyan": { "version": "1.8.15", "resolved": "https://registry.npmjs.org/bunyan/-/bunyan-1.8.15.tgz", @@ -14801,12 +13008,8 @@ "callsites": { "version": "3.1.0", "resolved": "https://registry.npmjs.org/callsites/-/callsites-3.1.0.tgz", - "integrity": "sha512-P8BjAsXvZS+VIDUI11hHCQEv74YT67YUi5JJFNWIqL235sBmjX4+qx9Muvls5ivyNENctx46xQLQ3aTuE7ssaQ==" - }, - "camelcase": { - "version": "8.0.0", - "resolved": "https://registry.npmjs.org/camelcase/-/camelcase-8.0.0.tgz", - "integrity": "sha512-8WB3Jcas3swSvjIeA2yvCJ+Miyz5l1ZmB6HFb9R1317dt9LCQoswg/BGrmAmkWVEszSrrg4RwmO46qIm2OEnSA==" + "integrity": "sha512-P8BjAsXvZS+VIDUI11hHCQEv74YT67YUi5JJFNWIqL235sBmjX4+qx9Muvls5ivyNENctx46xQLQ3aTuE7ssaQ==", + "dev": true }, "caniuse-lite": { "version": "1.0.30001599", @@ -14865,33 +13068,6 @@ "get-func-name": "^2.0.2" } }, - "cheerio": { - "version": "1.0.0-rc.12", - "resolved": "https://registry.npmjs.org/cheerio/-/cheerio-1.0.0-rc.12.tgz", - "integrity": "sha512-VqR8m68vM46BNnuZ5NtnGBKIE/DfN0cRIzg9n40EIq9NOv90ayxLBXA8fXC5gquFRGJSTRqBq25Jt2ECLR431Q==", - "requires": { - "cheerio-select": "^2.1.0", - "dom-serializer": "^2.0.0", - "domhandler": "^5.0.3", - "domutils": "^3.0.1", - "htmlparser2": "^8.0.1", - "parse5": "^7.0.0", - "parse5-htmlparser2-tree-adapter": "^7.0.0" - } - }, - "cheerio-select": { - "version": "2.1.0", - "resolved": "https://registry.npmjs.org/cheerio-select/-/cheerio-select-2.1.0.tgz", - "integrity": "sha512-9v9kG0LvzrlcungtnJtpGNxY+fzECQKhK4EGJX2vByejiMX84MFNQw4UxPJl3bFbTMw+Dfs37XaIkCwTZfLh4g==", - "requires": { - "boolbase": "^1.0.0", - "css-select": "^5.1.0", - "css-what": "^6.1.0", - "domelementtype": "^2.3.0", - "domhandler": "^5.0.3", - "domutils": "^3.0.1" - } - }, "chokidar": { "version": "3.5.3", "resolved": "https://registry.npmjs.org/chokidar/-/chokidar-3.5.3.tgz", @@ -14909,14 +13085,14 @@ } }, "chrome-launcher": { - "version": "0.15.1", - "resolved": "https://registry.npmjs.org/chrome-launcher/-/chrome-launcher-0.15.1.tgz", - "integrity": "sha512-UugC8u59/w2AyX5sHLZUHoxBAiSiunUhZa3zZwMH6zPVis0C3dDKiRWyUGIo14tTbZHGVviWxv3PQWZ7taZ4fg==", + "version": "1.1.0", + "resolved": "https://registry.npmjs.org/chrome-launcher/-/chrome-launcher-1.1.0.tgz", + "integrity": "sha512-rJYWeEAERwWIr3c3mEVXwNiODPEdMRlRxHc47B1qHPOolHZnkj7rMv1QSUfPoG6MgatWj5AxSpnKKR4QEwEQIQ==", "requires": { "@types/node": "*", "escape-string-regexp": "^4.0.0", "is-wsl": "^2.2.0", - "lighthouse-logger": "^1.0.0" + "lighthouse-logger": "^2.0.1" }, "dependencies": { "escape-string-regexp": { @@ -15005,12 +13181,7 @@ "strip-ansi": "^6.0.0" } } - } - }, - "clone": { - "version": "1.0.4", - "resolved": "https://registry.npmjs.org/clone/-/clone-1.0.4.tgz", - "integrity": "sha512-JQHZ2QMW6l3aH/j6xCqQThY/9OH4D/9ls34cgkUBiEeocRTU04tHfKPBsUK1PqZCUQM7GiA0IIXJSuXHI64Kbg==" + } }, "clone-deep": { "version": "4.0.1", @@ -15042,26 +13213,12 @@ "integrity": "sha512-a+UqTh4kgZg/SlGvfbzDHpgRu7AAQOmmqRHJnxhRZICKFUT91brVhNNt58CMWU9PsBbv3PDCZUHbVxuDiH2mtA==", "dev": true }, - "columnify": { - "version": "1.6.0", - "resolved": "https://registry.npmjs.org/columnify/-/columnify-1.6.0.tgz", - "integrity": "sha512-lomjuFZKfM6MSAnV9aCZC9sc0qGbmZdfygNv+nCpqVkSKdCxCklLtd16O0EILGkImHw9ZpHkAnHaB+8Zxq5W6Q==", - "requires": { - "strip-ansi": "^6.0.1", - "wcwidth": "^1.0.0" - } - }, "commander": { "version": "6.2.1", "resolved": "https://registry.npmjs.org/commander/-/commander-6.2.1.tgz", "integrity": "sha512-U7VdrJFnJgo4xjrHpTzu0yrHPGImdsmD95ZlgYSEajAn2JKzDhDTPG9kBTefmObL2w/ngeZnilk+OV9CG3d7UA==", "dev": true }, - "common-tags": { - "version": "1.8.2", - "resolved": "https://registry.npmjs.org/common-tags/-/common-tags-1.8.2.tgz", - "integrity": "sha512-gk/Z852D2Wtb//0I+kRFNKKE9dIIVirjoqPoA1wJU+XePVXZfGeBpk45+A1rKO4Q43prqWBNY/MiIeRLbPWUaA==" - }, "commondir": { "version": "1.0.1", "resolved": "https://registry.npmjs.org/commondir/-/commondir-1.0.1.tgz", @@ -15287,6 +13444,7 @@ "version": "7.0.3", "resolved": "https://registry.npmjs.org/cross-spawn/-/cross-spawn-7.0.3.tgz", "integrity": "sha512-iRDPJKUPVEND7dHPO8rkbOnPpyDygcDFtWjpeWNCgy8WP2rXcxXL8TskReQl6OrB2G7+UJrags1q15Fudc7G6w==", + "dev": true, "requires": { "path-key": "^3.1.0", "shebang-command": "^2.0.0", @@ -15308,34 +13466,12 @@ } } }, - "css-select": { - "version": "5.1.0", - "resolved": "https://registry.npmjs.org/css-select/-/css-select-5.1.0.tgz", - "integrity": "sha512-nwoRF1rvRRnnCqqY7updORDsuqKzqYJ28+oSMaJMMgOauh3fvwHqMS7EZpIPqK8GL+g9mKxF1vP/ZjSeNjEVHg==", - "requires": { - "boolbase": "^1.0.0", - "css-what": "^6.1.0", - "domhandler": "^5.0.2", - "domutils": "^3.0.1", - "nth-check": "^2.0.1" - } - }, - "css-what": { - "version": "6.1.0", - "resolved": "https://registry.npmjs.org/css-what/-/css-what-6.1.0.tgz", - "integrity": "sha512-HTUrgRJ7r4dsZKU6GjmpfRK1O76h97Z8MfS1G0FozR+oF2kG6Vfe8JE6zwrkbxigziPHinCJ+gCPjA9EaBDtRw==" - }, "dargs": { "version": "8.1.0", "resolved": "https://registry.npmjs.org/dargs/-/dargs-8.1.0.tgz", "integrity": "sha512-wAV9QHOsNbwnWdNW2FYvE1P56wtgSbM+3SZcdGiWQILwVjACCXDCI3Ai8QlCjMDB8YK5zySiXZYBiwGmNY3lnw==", "dev": true }, - "data-uri-to-buffer": { - "version": "4.0.0", - "resolved": "https://registry.npmjs.org/data-uri-to-buffer/-/data-uri-to-buffer-4.0.0.tgz", - "integrity": "sha512-Vr3mLBA8qWmcuschSLAOogKgQ/Jwxulv3RNE4FXnYWRGujzrRWQI4m12fQqRkwX06C0KanhLr4hK+GydchZsaA==" - }, "debounce": { "version": "1.2.1", "resolved": "https://registry.npmjs.org/debounce/-/debounce-1.2.1.tgz", @@ -15349,11 +13485,6 @@ "ms": "2.1.2" } }, - "decamelize": { - "version": "6.0.0", - "resolved": "https://registry.npmjs.org/decamelize/-/decamelize-6.0.0.tgz", - "integrity": "sha512-Fv96DCsdOgB6mdGl67MT5JaTNKRzrzill5OH5s8bjYJXVlcXyPYGyPsUkWyGV5p1TXI5esYIYMMeDJL0hEIwaA==" - }, "decompress-response": { "version": "6.0.0", "resolved": "https://registry.npmjs.org/decompress-response/-/decompress-response-6.0.0.tgz", @@ -15386,7 +13517,8 @@ "deep-is": { "version": "0.1.4", "resolved": "https://registry.npmjs.org/deep-is/-/deep-is-0.1.4.tgz", - "integrity": "sha512-oIPzksmTg4/MriiaYGO+okXDT7ztn/w3Eptv/+gSIdMdKsJo0u4CfYNFJPy+4SKMuCqGw2wxnA+URMg3t8a/bQ==" + "integrity": "sha512-oIPzksmTg4/MriiaYGO+okXDT7ztn/w3Eptv/+gSIdMdKsJo0u4CfYNFJPy+4SKMuCqGw2wxnA+URMg3t8a/bQ==", + "dev": true }, "deepcopy": { "version": "2.1.0", @@ -15397,90 +13529,6 @@ "type-detect": "^4.0.8" } }, - "deepmerge": { - "version": "4.3.1", - "resolved": "https://registry.npmjs.org/deepmerge/-/deepmerge-4.3.1.tgz", - "integrity": "sha512-3sUqbMEc77XqpdNO7FRyRog+eW3ph+GYCbj+rK+uYyRMuwsVy0rMiVtPn+QJlKFvWP/1PYpapqYn0Me2knFn+A==" - }, - "default-browser": { - "version": "4.0.0", - "resolved": "https://registry.npmjs.org/default-browser/-/default-browser-4.0.0.tgz", - "integrity": "sha512-wX5pXO1+BrhMkSbROFsyxUm0i/cJEScyNhA4PPxc41ICuv05ZZB/MX28s8aZx6xjmatvebIapF6hLEKEcpneUA==", - "requires": { - "bundle-name": "^3.0.0", - "default-browser-id": "^3.0.0", - "execa": "^7.1.1", - "titleize": "^3.0.0" - }, - "dependencies": { - "execa": { - "version": "7.1.1", - "resolved": "https://registry.npmjs.org/execa/-/execa-7.1.1.tgz", - "integrity": "sha512-wH0eMf/UXckdUYnO21+HDztteVv05rq2GXksxT4fCGeHkBhw1DROXh40wcjMcRqDOWE7iPJ4n3M7e2+YFP+76Q==", - "requires": { - "cross-spawn": "^7.0.3", - "get-stream": "^6.0.1", - "human-signals": "^4.3.0", - "is-stream": "^3.0.0", - "merge-stream": "^2.0.0", - "npm-run-path": "^5.1.0", - "onetime": "^6.0.0", - "signal-exit": "^3.0.7", - "strip-final-newline": "^3.0.0" - } - }, - "human-signals": { - "version": "4.3.1", - "resolved": "https://registry.npmjs.org/human-signals/-/human-signals-4.3.1.tgz", - "integrity": "sha512-nZXjEF2nbo7lIw3mgYjItAfgQXog3OjJogSbKa2CQIIvSGWcKgeJnQlNXip6NglNzYH45nSRiEVimMvYL8DDqQ==" - }, - "is-stream": { - "version": "3.0.0", - "resolved": "https://registry.npmjs.org/is-stream/-/is-stream-3.0.0.tgz", - "integrity": "sha512-LnQR4bZ9IADDRSkvpqMGvt/tEJWclzklNgSw48V5EAaAeDd6qGvN8ei6k5p0tvxSR171VmGyHuTiAOfxAbr8kA==" - }, - "mimic-fn": { - "version": "4.0.0", - "resolved": "https://registry.npmjs.org/mimic-fn/-/mimic-fn-4.0.0.tgz", - "integrity": "sha512-vqiC06CuhBTUdZH+RYl8sFrL096vA45Ok5ISO6sE/Mr1jRbGH4Csnhi8f3wKVl7x8mO4Au7Ir9D3Oyv1VYMFJw==" - }, - "npm-run-path": { - "version": "5.1.0", - "resolved": "https://registry.npmjs.org/npm-run-path/-/npm-run-path-5.1.0.tgz", - "integrity": "sha512-sJOdmRGrY2sjNTRMbSvluQqg+8X7ZK61yvzBEIDhz4f8z1TZFYABsqjjCBd/0PUNE9M6QDgHJXQkGUEm7Q+l9Q==", - "requires": { - "path-key": "^4.0.0" - } - }, - "onetime": { - "version": "6.0.0", - "resolved": "https://registry.npmjs.org/onetime/-/onetime-6.0.0.tgz", - "integrity": "sha512-1FlR+gjXK7X+AsAHso35MnyN5KqGwJRi/31ft6x0M194ht7S+rWAvd7PHss9xSKMzE0asv1pyIHaJYq+BbacAQ==", - "requires": { - "mimic-fn": "^4.0.0" - } - }, - "path-key": { - "version": "4.0.0", - "resolved": "https://registry.npmjs.org/path-key/-/path-key-4.0.0.tgz", - "integrity": "sha512-haREypq7xkM7ErfgIyA0z+Bj4AGKlMSdlQE2jvJo6huWD1EdkKYV+G/T4nq0YEF2vgTT8kqMFKo1uHn950r4SQ==" - }, - "strip-final-newline": { - "version": "3.0.0", - "resolved": "https://registry.npmjs.org/strip-final-newline/-/strip-final-newline-3.0.0.tgz", - "integrity": "sha512-dOESqjYr96iWYylGObzd39EuNTa5VJxyvVAEm5Jnh7KGo75V43Hk1odPQkNDyXNmUR6k+gEiDVXnjB8HJ3crXw==" - } - } - }, - "default-browser-id": { - "version": "3.0.0", - "resolved": "https://registry.npmjs.org/default-browser-id/-/default-browser-id-3.0.0.tgz", - "integrity": "sha512-OZ1y3y0SqSICtE8DE4S8YOE9UZOJ8wO16fKWVP5J1Qz42kV9jcnMVFrEE/noXb/ss3Q4pZIH79kxofzyNNtUNA==", - "requires": { - "bplist-parser": "^0.2.0", - "untildify": "^4.0.0" - } - }, "default-require-extensions": { "version": "3.0.0", "resolved": "https://registry.npmjs.org/default-require-extensions/-/default-require-extensions-3.0.0.tgz", @@ -15498,14 +13546,6 @@ } } }, - "defaults": { - "version": "1.0.3", - "resolved": "https://registry.npmjs.org/defaults/-/defaults-1.0.3.tgz", - "integrity": "sha512-s82itHOnYrN0Ib8r+z7laQz3sdE+4FP3d9Q7VLO7U+KRT+CR0GsWuyHxzdAY82I7cXv0G/twrqomTJLOssO5HA==", - "requires": { - "clone": "^1.0.2" - } - }, "defer-to-connect": { "version": "2.0.1", "resolved": "https://registry.npmjs.org/defer-to-connect/-/defer-to-connect-2.0.1.tgz", @@ -15522,11 +13562,6 @@ "has-property-descriptors": "^1.0.0" } }, - "define-lazy-prop": { - "version": "3.0.0", - "resolved": "https://registry.npmjs.org/define-lazy-prop/-/define-lazy-prop-3.0.0.tgz", - "integrity": "sha512-N+MeXYoqr3pOgn8xfyRPREN7gHakLYjhsHhWGT3fWAiL4IkAt0iDw14QiiEm2bE30c5XX5q0FtAA3CK5f9/BUg==" - }, "define-properties": { "version": "1.2.1", "resolved": "https://registry.npmjs.org/define-properties/-/define-properties-1.2.1.tgz", @@ -15548,43 +13583,11 @@ "version": "3.0.0", "resolved": "https://registry.npmjs.org/doctrine/-/doctrine-3.0.0.tgz", "integrity": "sha512-yS+Q5i3hBf7GBkd4KG8a7eBNNWNGLTaEwwYWUijIYM7zrlYDM0BFXHjjPWlWZ1Rg7UaddZeIDmi9jF3HmqiQ2w==", + "dev": true, "requires": { "esutils": "^2.0.2" } }, - "dom-serializer": { - "version": "2.0.0", - "resolved": "https://registry.npmjs.org/dom-serializer/-/dom-serializer-2.0.0.tgz", - "integrity": "sha512-wIkAryiqt/nV5EQKqQpo3SToSOV9J0DnbJqwK7Wv/Trc92zIAYZ4FlMu+JPFW1DfGFt81ZTCGgDEabffXeLyJg==", - "requires": { - "domelementtype": "^2.3.0", - "domhandler": "^5.0.2", - "entities": "^4.2.0" - } - }, - "domelementtype": { - "version": "2.3.0", - "resolved": "https://registry.npmjs.org/domelementtype/-/domelementtype-2.3.0.tgz", - "integrity": "sha512-OLETBj6w0OsagBwdXnPdN0cnMfF9opN69co+7ZrbfPGrdpPVNBUj02spi6B1N7wChLQiPn4CSH/zJvXw56gmHw==" - }, - "domhandler": { - "version": "5.0.3", - "resolved": "https://registry.npmjs.org/domhandler/-/domhandler-5.0.3.tgz", - "integrity": "sha512-cgwlv/1iFQiFnU96XXgROh8xTeetsnJiDsTc7TYCLFd9+/WNkIqPTxiM/8pSd8VIrhXGTf1Ny1q1hquVqDJB5w==", - "requires": { - "domelementtype": "^2.3.0" - } - }, - "domutils": { - "version": "3.0.1", - "resolved": "https://registry.npmjs.org/domutils/-/domutils-3.0.1.tgz", - "integrity": "sha512-z08c1l761iKhDFtfXO04C7kTdPBLi41zwOZl00WS8b5eiaebNpY00HKbztwBq+e3vyqWNwWF3mP9YLUeqIrF+Q==", - "requires": { - "dom-serializer": "^2.0.0", - "domelementtype": "^2.3.0", - "domhandler": "^5.0.1" - } - }, "dot-prop": { "version": "5.3.0", "resolved": "https://registry.npmjs.org/dot-prop/-/dot-prop-5.3.0.tgz", @@ -15619,19 +13622,6 @@ "resolved": "https://registry.npmjs.org/emoji-regex/-/emoji-regex-9.2.2.tgz", "integrity": "sha512-L18DaJsXSUk2+42pv8mLs5jJT2hqFkFE4j21wOmgbUqsZ2hL72NsUU785g9RXgo3s0ZNgVl42TiHp3ZtOv/Vyg==" }, - "end-of-stream": { - "version": "1.4.4", - "resolved": "https://registry.npmjs.org/end-of-stream/-/end-of-stream-1.4.4.tgz", - "integrity": "sha512-+uw1inIHVPQoaVuHzRyXd21icM+cnt4CzD5rW+NC1wjOUSTOs+Te7FOv7AhN7vS9x/oIyhLP5PR1H+phQAHu5Q==", - "requires": { - "once": "^1.4.0" - } - }, - "entities": { - "version": "4.3.1", - "resolved": "https://registry.npmjs.org/entities/-/entities-4.3.1.tgz", - "integrity": "sha512-o4q/dYJlmyjP2zfnaWDUC6A3BQFmVTX+tZPezK7k0GLSU9QYCauscf5Y+qcEPzKL+EixVouYDgLQK5H9GrLpkg==" - }, "env-paths": { "version": "2.2.1", "resolved": "https://registry.npmjs.org/env-paths/-/env-paths-2.2.1.tgz", @@ -15732,7 +13722,8 @@ "escalade": { "version": "3.1.1", "resolved": "https://registry.npmjs.org/escalade/-/escalade-3.1.1.tgz", - "integrity": "sha512-k0er2gUkLf8O0zKJiAhmkTnJlTvINGv7ygDNPbeIsX/TJjGJZHuh9B2UxbsaEkmlEo9MfhrSzmhIlhRlI2GXnw==" + "integrity": "sha512-k0er2gUkLf8O0zKJiAhmkTnJlTvINGv7ygDNPbeIsX/TJjGJZHuh9B2UxbsaEkmlEo9MfhrSzmhIlhRlI2GXnw==", + "dev": true }, "escape-goat": { "version": "4.0.0", @@ -15748,6 +13739,7 @@ "version": "8.57.0", "resolved": "https://registry.npmjs.org/eslint/-/eslint-8.57.0.tgz", "integrity": "sha512-dZ6+mexnaTIbSBZWgou51U6OmzIhYM2VcNdtiTtI7qPNZm35Akpr0f6vtw3w1Kmn5PYo+tZVfh13WrhpS6oLqQ==", + "dev": true, "requires": { "@eslint-community/eslint-utils": "^4.2.0", "@eslint-community/regexpp": "^4.6.1", @@ -15793,6 +13785,7 @@ "version": "6.12.6", "resolved": "https://registry.npmjs.org/ajv/-/ajv-6.12.6.tgz", "integrity": "sha512-j3fVLgvTo527anyYyJOGTYJbG+vnnQYvE0m5mmkc1TK+nxAppkCLMIL0aZ4dblVCNoGShhm+kzE4ZUykBoMg4g==", + "dev": true, "requires": { "fast-deep-equal": "^3.1.1", "fast-json-stable-stringify": "^2.0.0", @@ -15804,6 +13797,7 @@ "version": "4.3.0", "resolved": "https://registry.npmjs.org/ansi-styles/-/ansi-styles-4.3.0.tgz", "integrity": "sha512-zbB9rCJAT1rbjiVDb2hqKFHNYLxgtk8NURxZ3IZwD3F6NtxbXZQCnnSi1Lkx+IDohdPlFp222wVALIheZJQSEg==", + "dev": true, "requires": { "color-convert": "^2.0.1" } @@ -15811,12 +13805,14 @@ "argparse": { "version": "2.0.1", "resolved": "https://registry.npmjs.org/argparse/-/argparse-2.0.1.tgz", - "integrity": "sha512-8+9WqebbFzpX9OR+Wa6O29asIogeRMzcGtAINdpMHHyAg10f05aSFVBbcEqGf/PXw1EjAZ+q2/bEBg3DvurK3Q==" + "integrity": "sha512-8+9WqebbFzpX9OR+Wa6O29asIogeRMzcGtAINdpMHHyAg10f05aSFVBbcEqGf/PXw1EjAZ+q2/bEBg3DvurK3Q==", + "dev": true }, "chalk": { "version": "4.1.2", "resolved": "https://registry.npmjs.org/chalk/-/chalk-4.1.2.tgz", "integrity": "sha512-oKnbhFyRIXpUuez8iBMmyEa4nbj4IOQyuhc/wy9kY7/WVPcwIO9VA668Pu8RkO7+0G76SLROeyw9CpQ061i4mA==", + "dev": true, "requires": { "ansi-styles": "^4.1.0", "supports-color": "^7.1.0" @@ -15826,6 +13822,7 @@ "version": "2.0.1", "resolved": "https://registry.npmjs.org/color-convert/-/color-convert-2.0.1.tgz", "integrity": "sha512-RRECPsj7iu/xb5oKYcsFHSppFNnsj/52OVTRKb4zP5onXwVF3zVmmToNcOfGC+CRDpfK/U584fMg38ZHCaElKQ==", + "dev": true, "requires": { "color-name": "~1.1.4" } @@ -15833,17 +13830,20 @@ "color-name": { "version": "1.1.4", "resolved": "https://registry.npmjs.org/color-name/-/color-name-1.1.4.tgz", - "integrity": "sha512-dOy+3AuW3a2wNbZHIuMZpTcgjGuLU/uBL/ubcZF9OXbDo8ff4O8yVp5Bf0efS8uEoYo5q4Fx7dY9OgQGXgAsQA==" + "integrity": "sha512-dOy+3AuW3a2wNbZHIuMZpTcgjGuLU/uBL/ubcZF9OXbDo8ff4O8yVp5Bf0efS8uEoYo5q4Fx7dY9OgQGXgAsQA==", + "dev": true }, "escape-string-regexp": { "version": "4.0.0", "resolved": "https://registry.npmjs.org/escape-string-regexp/-/escape-string-regexp-4.0.0.tgz", - "integrity": "sha512-TtpcNJ3XAzx3Gq8sWRzJaVajRs0uVxA2YAkdb1jm2YkPz4G6egUFAyA3n5vtEIZefPk5Wa4UXbKuS5fKkJWdgA==" + "integrity": "sha512-TtpcNJ3XAzx3Gq8sWRzJaVajRs0uVxA2YAkdb1jm2YkPz4G6egUFAyA3n5vtEIZefPk5Wa4UXbKuS5fKkJWdgA==", + "dev": true }, "eslint-scope": { "version": "7.2.2", "resolved": "https://registry.npmjs.org/eslint-scope/-/eslint-scope-7.2.2.tgz", "integrity": "sha512-dOt21O7lTMhDM+X9mB4GX+DZrZtCUJPL/wlcTqxyrx5IvO0IYtILdtrQGQp+8n5S0gwSVmOf9NQrjMOgfQZlIg==", + "dev": true, "requires": { "esrecurse": "^4.3.0", "estraverse": "^5.2.0" @@ -15852,17 +13852,20 @@ "eslint-visitor-keys": { "version": "3.4.3", "resolved": "https://registry.npmjs.org/eslint-visitor-keys/-/eslint-visitor-keys-3.4.3.tgz", - "integrity": "sha512-wpc+LXeiyiisxPlEkUzU6svyS1frIO3Mgxj1fdy7Pm8Ygzguax2N3Fa/D/ag1WqbOprdI+uY6wMUl8/a2G+iag==" + "integrity": "sha512-wpc+LXeiyiisxPlEkUzU6svyS1frIO3Mgxj1fdy7Pm8Ygzguax2N3Fa/D/ag1WqbOprdI+uY6wMUl8/a2G+iag==", + "dev": true }, "estraverse": { "version": "5.3.0", "resolved": "https://registry.npmjs.org/estraverse/-/estraverse-5.3.0.tgz", - "integrity": "sha512-MMdARuVEQziNTeJD8DgMqmhwR11BRQ/cBP+pLtYdSTnf3MIO8fFeiINEbX36ZdNlfU/7A9f3gUw49B3oQsvwBA==" + "integrity": "sha512-MMdARuVEQziNTeJD8DgMqmhwR11BRQ/cBP+pLtYdSTnf3MIO8fFeiINEbX36ZdNlfU/7A9f3gUw49B3oQsvwBA==", + "dev": true }, "glob-parent": { "version": "6.0.2", "resolved": "https://registry.npmjs.org/glob-parent/-/glob-parent-6.0.2.tgz", "integrity": "sha512-XxwI8EOhVQgWp6iDL+3b0r86f4d6AX6zSU55HfB4ydCEuXLXc5FcYeOu+nnGftS4TEju/11rt4KJPTMgbfmv4A==", + "dev": true, "requires": { "is-glob": "^4.0.3" } @@ -15871,6 +13874,7 @@ "version": "13.20.0", "resolved": "https://registry.npmjs.org/globals/-/globals-13.20.0.tgz", "integrity": "sha512-Qg5QtVkCy/kv3FUSlu4ukeZDVf9ee0iXLAUYX13gbR17bnejFTzr4iS9bY7kwCf1NztRNm1t91fjOiyx4CSwPQ==", + "dev": true, "requires": { "type-fest": "^0.20.2" } @@ -15878,12 +13882,14 @@ "has-flag": { "version": "4.0.0", "resolved": "https://registry.npmjs.org/has-flag/-/has-flag-4.0.0.tgz", - "integrity": "sha512-EykJT/Q1KjTWctppgIAgfSO0tKVuZUjhgMr17kqTumMl6Afv3EISleU7qZUzoXDFTAHTDC4NOoG/ZxU3EvlMPQ==" + "integrity": "sha512-EykJT/Q1KjTWctppgIAgfSO0tKVuZUjhgMr17kqTumMl6Afv3EISleU7qZUzoXDFTAHTDC4NOoG/ZxU3EvlMPQ==", + "dev": true }, "js-yaml": { "version": "4.1.0", "resolved": "https://registry.npmjs.org/js-yaml/-/js-yaml-4.1.0.tgz", "integrity": "sha512-wpxZs9NoxZaJESJGIZTyDEaYpl0FKSA+FB9aJiyemKhMwkxQg63h4T1KJgUGHpTqPDNRcmmYLugrRjJlBtWvRA==", + "dev": true, "requires": { "argparse": "^2.0.1" } @@ -15891,12 +13897,14 @@ "json-schema-traverse": { "version": "0.4.1", "resolved": "https://registry.npmjs.org/json-schema-traverse/-/json-schema-traverse-0.4.1.tgz", - "integrity": "sha512-xbbCH5dCYU5T8LcEhhuh7HJ88HXuW3qsI3Y0zOZFKfZEHcpWiHU/Jxzk629Brsab/mMiHQti9wMP+845RPe3Vg==" + "integrity": "sha512-xbbCH5dCYU5T8LcEhhuh7HJ88HXuW3qsI3Y0zOZFKfZEHcpWiHU/Jxzk629Brsab/mMiHQti9wMP+845RPe3Vg==", + "dev": true }, "supports-color": { "version": "7.2.0", "resolved": "https://registry.npmjs.org/supports-color/-/supports-color-7.2.0.tgz", "integrity": "sha512-qpCAvRl9stuOHveKsn7HncJRvv501qIacKzQlO/+Lwxc9+0q2wLyv4Dfvt80/DPn2pqOBsJdDiogXGR9+OvwRw==", + "dev": true, "requires": { "has-flag": "^4.0.0" } @@ -15904,7 +13912,8 @@ "type-fest": { "version": "0.20.2", "resolved": "https://registry.npmjs.org/type-fest/-/type-fest-0.20.2.tgz", - "integrity": "sha512-Ne+eE4r0/iWnpAxD852z3A+N0Bt5RN//NjJwRd2VFHEmrywxf5vsZlh4R6lixl6B+wz/8d+maTSAkN1FIkI3LQ==" + "integrity": "sha512-Ne+eE4r0/iWnpAxD852z3A+N0Bt5RN//NjJwRd2VFHEmrywxf5vsZlh4R6lixl6B+wz/8d+maTSAkN1FIkI3LQ==", + "dev": true } } }, @@ -16001,12 +14010,6 @@ } } }, - "eslint-plugin-no-unsanitized": { - "version": "4.0.2", - "resolved": "https://registry.npmjs.org/eslint-plugin-no-unsanitized/-/eslint-plugin-no-unsanitized-4.0.2.tgz", - "integrity": "sha512-Pry0S9YmHoz8NCEMRQh7N0Yexh2MYCNPIlrV52hTmS7qXnTghWsjXouF08bgsrrZqaW9tt1ZiK3j5NEmPE+EjQ==", - "requires": {} - }, "eslint-scope": { "version": "5.1.1", "resolved": "https://registry.npmjs.org/eslint-scope/-/eslint-scope-5.1.1.tgz", @@ -16027,6 +14030,7 @@ "version": "9.6.1", "resolved": "https://registry.npmjs.org/espree/-/espree-9.6.1.tgz", "integrity": "sha512-oruZaFkjorTpF32kDSI5/75ViwGeZginGGy2NoOSg3Q9bnwlnmDm4HLnkl0RE3n+njDXR037aY1+x58Z/zFdwQ==", + "dev": true, "requires": { "acorn": "^8.9.0", "acorn-jsx": "^5.3.2", @@ -16036,19 +14040,22 @@ "eslint-visitor-keys": { "version": "3.4.1", "resolved": "https://registry.npmjs.org/eslint-visitor-keys/-/eslint-visitor-keys-3.4.1.tgz", - "integrity": "sha512-pZnmmLwYzf+kWaM/Qgrvpen51upAktaaiI01nsJD/Yr3lMOdNtq0cxkrrg16w64VtisN6okbs7Q8AfGqj4c9fA==" + "integrity": "sha512-pZnmmLwYzf+kWaM/Qgrvpen51upAktaaiI01nsJD/Yr3lMOdNtq0cxkrrg16w64VtisN6okbs7Q8AfGqj4c9fA==", + "dev": true } } }, "esprima": { "version": "4.0.1", "resolved": "https://registry.npmjs.org/esprima/-/esprima-4.0.1.tgz", - "integrity": "sha512-eGuFFw7Upda+g4p+QHvnW0RyTX/SVeJBDM/gCtMARO0cLuT2HcEKnTPvhjV6aGeqrCB/sbNop0Kszm0jsaWU4A==" + "integrity": "sha512-eGuFFw7Upda+g4p+QHvnW0RyTX/SVeJBDM/gCtMARO0cLuT2HcEKnTPvhjV6aGeqrCB/sbNop0Kszm0jsaWU4A==", + "dev": true }, "esquery": { "version": "1.4.2", "resolved": "https://registry.npmjs.org/esquery/-/esquery-1.4.2.tgz", "integrity": "sha512-JVSoLdTlTDkmjFmab7H/9SL9qGSyjElT3myyKp7krqjVFQCDLmj1QFaCLRFBszBKI0XVZaiiXvuPIX3ZwHe1Ng==", + "dev": true, "requires": { "estraverse": "^5.1.0" }, @@ -16056,7 +14063,8 @@ "estraverse": { "version": "5.3.0", "resolved": "https://registry.npmjs.org/estraverse/-/estraverse-5.3.0.tgz", - "integrity": "sha512-MMdARuVEQziNTeJD8DgMqmhwR11BRQ/cBP+pLtYdSTnf3MIO8fFeiINEbX36ZdNlfU/7A9f3gUw49B3oQsvwBA==" + "integrity": "sha512-MMdARuVEQziNTeJD8DgMqmhwR11BRQ/cBP+pLtYdSTnf3MIO8fFeiINEbX36ZdNlfU/7A9f3gUw49B3oQsvwBA==", + "dev": true } } }, @@ -16064,6 +14072,7 @@ "version": "4.3.0", "resolved": "https://registry.npmjs.org/esrecurse/-/esrecurse-4.3.0.tgz", "integrity": "sha512-KmfKL3b6G+RXvP8N1vr3Tq1kL/oCFgn2NYXEtqP8/L3pKapUA4G8cFVaoF3SU323CD4XypR/ffioHmkti6/Tag==", + "dev": true, "requires": { "estraverse": "^5.2.0" }, @@ -16071,7 +14080,8 @@ "estraverse": { "version": "5.3.0", "resolved": "https://registry.npmjs.org/estraverse/-/estraverse-5.3.0.tgz", - "integrity": "sha512-MMdARuVEQziNTeJD8DgMqmhwR11BRQ/cBP+pLtYdSTnf3MIO8fFeiINEbX36ZdNlfU/7A9f3gUw49B3oQsvwBA==" + "integrity": "sha512-MMdARuVEQziNTeJD8DgMqmhwR11BRQ/cBP+pLtYdSTnf3MIO8fFeiINEbX36ZdNlfU/7A9f3gUw49B3oQsvwBA==", + "dev": true } } }, @@ -16084,22 +14094,14 @@ "esutils": { "version": "2.0.3", "resolved": "https://registry.npmjs.org/esutils/-/esutils-2.0.3.tgz", - "integrity": "sha512-kVscqXk4OCp68SZ0dkgEKVi6/8ij300KBWTJq32P/dYeWTSwK41WyTxalN1eRmA5Z9UU/LX9D7FWSmV9SAYx6g==" - }, - "event-target-shim": { - "version": "5.0.1", - "resolved": "https://registry.npmjs.org/event-target-shim/-/event-target-shim-5.0.1.tgz", - "integrity": "sha512-i/2XbnSz/uxRCU6+NdVJgKWDTM427+MqYbkQzD321DuCQJUqOuJKIA0IM2+W2xtYHdKOmZ4dR6fExsd4SXL+WQ==" - }, - "events": { - "version": "3.3.0", - "resolved": "https://registry.npmjs.org/events/-/events-3.3.0.tgz", - "integrity": "sha512-mQw+2fkQbALzQ7V0MY0IqdnXNOeTtP4r0lN9z7AAawCXgqea7bDii20AYrIBrFd/Hx0M2Ocz6S111CaFkUcb0Q==" + "integrity": "sha512-kVscqXk4OCp68SZ0dkgEKVi6/8ij300KBWTJq32P/dYeWTSwK41WyTxalN1eRmA5Z9UU/LX9D7FWSmV9SAYx6g==", + "dev": true }, "execa": { "version": "5.1.1", "resolved": "https://registry.npmjs.org/execa/-/execa-5.1.1.tgz", "integrity": "sha512-8uSpZZocAZRBAPIEINJj3Lo9HyGitllczc27Eh5YYojjMFMn8yHMDMaUHE2Jqfq05D/wucwI4JGURyXt1vchyg==", + "dev": true, "requires": { "cross-spawn": "^7.0.3", "get-stream": "^6.0.0", @@ -16115,32 +14117,26 @@ "fast-deep-equal": { "version": "3.1.3", "resolved": "https://registry.npmjs.org/fast-deep-equal/-/fast-deep-equal-3.1.3.tgz", - "integrity": "sha512-f3qQ9oQy9j2AhBe/H9VC91wLmKBCCU/gDOnKNAYG5hswO7BLKj09Hc5HYNz9cGI++xlpDCIgDaitVs03ATR84Q==" - }, - "fast-json-patch": { - "version": "3.1.1", - "resolved": "https://registry.npmjs.org/fast-json-patch/-/fast-json-patch-3.1.1.tgz", - "integrity": "sha512-vf6IHUX2SBcA+5/+4883dsIjpBTqmfBjmYiWK1savxQmFk4JfBMLa7ynTYOs1Rolp/T1betJxHiGD3g1Mn8lUQ==" + "integrity": "sha512-f3qQ9oQy9j2AhBe/H9VC91wLmKBCCU/gDOnKNAYG5hswO7BLKj09Hc5HYNz9cGI++xlpDCIgDaitVs03ATR84Q==", + "dev": true }, "fast-json-stable-stringify": { "version": "2.1.0", "resolved": "https://registry.npmjs.org/fast-json-stable-stringify/-/fast-json-stable-stringify-2.1.0.tgz", - "integrity": "sha512-lhd/wF+Lk98HZoTCtlVraHtfh5XYijIjalXck7saUtuanSDyLMxnHhSXEDJqHxD7msR8D0uCmqlkwjCV8xvwHw==" + "integrity": "sha512-lhd/wF+Lk98HZoTCtlVraHtfh5XYijIjalXck7saUtuanSDyLMxnHhSXEDJqHxD7msR8D0uCmqlkwjCV8xvwHw==", + "dev": true }, "fast-levenshtein": { "version": "2.0.6", "resolved": "https://registry.npmjs.org/fast-levenshtein/-/fast-levenshtein-2.0.6.tgz", - "integrity": "sha512-DCXu6Ifhqcks7TZKY3Hxp3y6qphY5SJZmrWMDrKcERSOXWQdMhU9Ig/PYrzyw/ul9jOIyh0N4M0tbC5hodg8dw==" - }, - "fast-redact": { - "version": "3.5.0", - "resolved": "https://registry.npmjs.org/fast-redact/-/fast-redact-3.5.0.tgz", - "integrity": "sha512-dwsoQlS7h9hMeYUq1W++23NDcBLV4KqONnITDV9DjfS3q1SgDGVrBdvvTLUotWtPSD7asWDV9/CmsZPy8Hf70A==" + "integrity": "sha512-DCXu6Ifhqcks7TZKY3Hxp3y6qphY5SJZmrWMDrKcERSOXWQdMhU9Ig/PYrzyw/ul9jOIyh0N4M0tbC5hodg8dw==", + "dev": true }, "fastq": { "version": "1.13.0", "resolved": "https://registry.npmjs.org/fastq/-/fastq-1.13.0.tgz", "integrity": "sha512-YpkpUnK8od0o1hmeSc7UUs/eB/vIPWJYjKck2QKIzAf71Vm1AAQ3EbuZB3g2JIy+pg+ERD0vqI79KyZiB2e2Nw==", + "dev": true, "requires": { "reusify": "^1.0.4" } @@ -16149,23 +14145,16 @@ "version": "1.1.0", "resolved": "https://registry.npmjs.org/fd-slicer/-/fd-slicer-1.1.0.tgz", "integrity": "sha512-cE1qsB/VwyQozZ+q1dGxR8LBYNZeofhEdUNGSMbQD3Gw2lAzX9Zb3uIU6Ebc/Fmyjo9AWWfnn0AUCHqtevs/8g==", + "dev": true, "requires": { "pend": "~1.2.0" } }, - "fetch-blob": { - "version": "3.2.0", - "resolved": "https://registry.npmjs.org/fetch-blob/-/fetch-blob-3.2.0.tgz", - "integrity": "sha512-7yAQpD2UMJzLi1Dqv7qFYnPbaPx7ZfFK6PiIxQ4PfkGPyNyl2Ugx+a/umUonmKqjhM4DnfbMvdX6otXq83soQQ==", - "requires": { - "node-domexception": "^1.0.0", - "web-streams-polyfill": "^3.0.3" - } - }, "file-entry-cache": { "version": "6.0.1", "resolved": "https://registry.npmjs.org/file-entry-cache/-/file-entry-cache-6.0.1.tgz", "integrity": "sha512-7Gps/XWymbLk2QLYK4NzpMOrYjMhdIxXuIvy2QBsLE6ljuodKvdkWs/cpyJJ3CVIVpH0Oi1Hvg1ovbMzLdFBBg==", + "dev": true, "requires": { "flat-cache": "^3.0.4" } @@ -16194,6 +14183,7 @@ "version": "5.0.0", "resolved": "https://registry.npmjs.org/find-up/-/find-up-5.0.0.tgz", "integrity": "sha512-78/PXT1wlLLDgTzDs7sjq9hzz0vXD+zn+7wypEe4fXQxCmdmqfGsEPQxmiCSQI3ajFV91bVSsvNtrJRiW6nGng==", + "dev": true, "requires": { "locate-path": "^6.0.0", "path-exists": "^4.0.0" @@ -16229,11 +14219,6 @@ } } }, - "first-chunk-stream": { - "version": "3.0.0", - "resolved": "https://registry.npmjs.org/first-chunk-stream/-/first-chunk-stream-3.0.0.tgz", - "integrity": "sha512-LNRvR4hr/S8cXXkIY5pTgVP7L3tq6LlYWcg9nWBuW7o1NMxKZo6oOVa/6GIekMGI0Iw7uC+HWimMe9u/VAeKqw==" - }, "flat": { "version": "5.0.2", "resolved": "https://registry.npmjs.org/flat/-/flat-5.0.2.tgz", @@ -16244,6 +14229,7 @@ "version": "3.0.4", "resolved": "https://registry.npmjs.org/flat-cache/-/flat-cache-3.0.4.tgz", "integrity": "sha512-dm9s5Pw7Jc0GvMYbshN6zchCA9RgQlzzEZX3vylR9IqFfS8XciblUXOKfW6SiuJ0e13eDYZoZV5wdrev7P3Nwg==", + "dev": true, "requires": { "flatted": "^3.1.0", "rimraf": "^3.0.2" @@ -16252,7 +14238,8 @@ "flatted": { "version": "3.2.6", "resolved": "https://registry.npmjs.org/flatted/-/flatted-3.2.6.tgz", - "integrity": "sha512-0sQoMh9s0BYsm+12Huy/rkKxVu4R1+r96YX5cG44rHV0pQ6iC3Q+mkoMFaGWObMFYQxCVT+ssG1ksneA2MI9KQ==" + "integrity": "sha512-0sQoMh9s0BYsm+12Huy/rkKxVu4R1+r96YX5cG44rHV0pQ6iC3Q+mkoMFaGWObMFYQxCVT+ssG1ksneA2MI9KQ==", + "dev": true }, "for-each": { "version": "0.3.3", @@ -16278,14 +14265,6 @@ "resolved": "https://registry.npmjs.org/form-data-encoder/-/form-data-encoder-2.1.4.tgz", "integrity": "sha512-yDYSgNMraqvnxiEXO4hi88+YZxaHC6QKzb5N84iRCTDeRO7ZALpir/lVmf/uXUhnwUr2O4HU8s/n6x+yNjQkHw==" }, - "formdata-polyfill": { - "version": "4.0.10", - "resolved": "https://registry.npmjs.org/formdata-polyfill/-/formdata-polyfill-4.0.10.tgz", - "integrity": "sha512-buewHzMvYL29jdeQTVILecSaZKnt/RJWjoZCF5OW60Z67/GmSLBkOFM7qh1PI3zFNtJbaZL5eQu1vLfazOwj4g==", - "requires": { - "fetch-blob": "^3.1.2" - } - }, "fromentries": { "version": "1.3.2", "resolved": "https://registry.npmjs.org/fromentries/-/fromentries-1.3.2.tgz", @@ -16311,7 +14290,8 @@ "fs.realpath": { "version": "1.0.0", "resolved": "https://registry.npmjs.org/fs.realpath/-/fs.realpath-1.0.0.tgz", - "integrity": "sha512-OO0pH2lK6a0hZnAdau5ItzHPI6pUlvI7jMVnxUQRtw4owF2wk8lOSabtGDCTP4Ggrg2MbGnWO9X8K1t4+fGMDw==" + "integrity": "sha512-OO0pH2lK6a0hZnAdau5ItzHPI6pUlvI7jMVnxUQRtw4owF2wk8lOSabtGDCTP4Ggrg2MbGnWO9X8K1t4+fGMDw==", + "dev": true }, "fsevents": { "version": "2.3.2", @@ -16390,7 +14370,8 @@ "get-caller-file": { "version": "2.0.5", "resolved": "https://registry.npmjs.org/get-caller-file/-/get-caller-file-2.0.5.tgz", - "integrity": "sha512-DyFP3BM/3YHTQOCUL/w0OZHR0lpKeGrxotcHWcqNEdnltqFwXVfhEBQ94eIo34AfQpo0rGki4cyIiftY06h2Fg==" + "integrity": "sha512-DyFP3BM/3YHTQOCUL/w0OZHR0lpKeGrxotcHWcqNEdnltqFwXVfhEBQ94eIo34AfQpo0rGki4cyIiftY06h2Fg==", + "dev": true }, "get-func-name": { "version": "2.0.2", @@ -16465,6 +14446,7 @@ "version": "7.2.3", "resolved": "https://registry.npmjs.org/glob/-/glob-7.2.3.tgz", "integrity": "sha512-nFR0zLpU2YCaRxwoCJvL6UvCH2JFyFVIvwTLsIf21AuHlMskA1hhTdk+LlYJtOlYt9v6dvszD2BGRqBL+iQK9Q==", + "dev": true, "requires": { "fs.realpath": "^1.0.0", "inflight": "^1.0.4", @@ -16560,7 +14542,8 @@ "graphemer": { "version": "1.4.0", "resolved": "https://registry.npmjs.org/graphemer/-/graphemer-1.4.0.tgz", - "integrity": "sha512-EtKwoO6kxCL9WO5xipiHTZlSzBm7WLT627TqC/uVRd0HKmq8NXyebnNYxDoBi7wt8eTWrUrKXCOVaFq9x1kgag==" + "integrity": "sha512-EtKwoO6kxCL9WO5xipiHTZlSzBm7WLT627TqC/uVRd0HKmq8NXyebnNYxDoBi7wt8eTWrUrKXCOVaFq9x1kgag==", + "dev": true }, "growly": { "version": "1.3.0", @@ -16658,17 +14641,6 @@ "integrity": "sha512-H2iMtd0I4Mt5eYiapRdIDjp+XzelXQ0tFE4JS7YFwFevXXMmOp9myNrUvCg0D6ws8iqkRPBfKHgbwig1SmlLfg==", "dev": true }, - "htmlparser2": { - "version": "8.0.1", - "resolved": "https://registry.npmjs.org/htmlparser2/-/htmlparser2-8.0.1.tgz", - "integrity": "sha512-4lVbmc1diZC7GUJQtRQ5yBAeUCL1exyMwmForWkRLnwyzWBFxN633SALPMGYaWZvKe9j1pRZJpauvmxENSp/EA==", - "requires": { - "domelementtype": "^2.3.0", - "domhandler": "^5.0.2", - "domutils": "^3.0.1", - "entities": "^4.3.0" - } - }, "http-cache-semantics": { "version": "4.1.1", "resolved": "https://registry.npmjs.org/http-cache-semantics/-/http-cache-semantics-4.1.1.tgz", @@ -16690,37 +14662,17 @@ } } }, - "https-proxy-agent": { - "version": "7.0.5", - "resolved": "https://registry.npmjs.org/https-proxy-agent/-/https-proxy-agent-7.0.5.tgz", - "integrity": "sha512-1e4Wqeblerz+tMKPIq2EMGiiWW1dIjZOksyHWSUm1rmuvw/how9hBHZ38lAGj5ID4Ik6EdkOw7NmWPy6LAwalw==", - "requires": { - "agent-base": "^7.0.2", - "debug": "4" - } - }, "human-signals": { "version": "2.1.0", "resolved": "https://registry.npmjs.org/human-signals/-/human-signals-2.1.0.tgz", - "integrity": "sha512-B4FFZ6q/T2jhhksgkbEW3HBvWIfDW85snkQgawt07S7J5QXTk6BkNV+0yAeZrM5QpMAdYlocGoljn0sJ/WQkFw==" - }, - "ieee754": { - "version": "1.2.1", - "resolved": "https://registry.npmjs.org/ieee754/-/ieee754-1.2.1.tgz", - "integrity": "sha512-dcyqhDvX1C46lXZcVqCpK+FtMRQVdIMN6/Df5js2zouUsqG7I6sFxitIC+7KYK29KdXOLHdu9zL4sFnoVQnqaA==" + "integrity": "sha512-B4FFZ6q/T2jhhksgkbEW3HBvWIfDW85snkQgawt07S7J5QXTk6BkNV+0yAeZrM5QpMAdYlocGoljn0sJ/WQkFw==", + "dev": true }, "ignore": { "version": "5.3.0", "resolved": "https://registry.npmjs.org/ignore/-/ignore-5.3.0.tgz", - "integrity": "sha512-g7dmpshy+gD7mh88OC9NwSGTKoc3kyLAZQRU1mt53Aw/vnvfXnbC+F/7F7QoYVKbV+KNvJx8wArewKy1vXMtlg==" - }, - "image-size": { - "version": "1.1.1", - "resolved": "https://registry.npmjs.org/image-size/-/image-size-1.1.1.tgz", - "integrity": "sha512-541xKlUw6jr/6gGuk92F+mYM5zaFAc5ahphvkqvNe2bQ6gVBkd6bfrmVJ2t4KDAfikAYZyIqTnktX3i6/aQDrQ==", - "requires": { - "queue": "6.0.2" - } + "integrity": "sha512-g7dmpshy+gD7mh88OC9NwSGTKoc3kyLAZQRU1mt53Aw/vnvfXnbC+F/7F7QoYVKbV+KNvJx8wArewKy1vXMtlg==", + "dev": true }, "immediate": { "version": "3.0.6", @@ -16731,6 +14683,7 @@ "version": "3.3.0", "resolved": "https://registry.npmjs.org/import-fresh/-/import-fresh-3.3.0.tgz", "integrity": "sha512-veYYhQa+D1QBKznvhUHxb8faxlrwUnxseDAbAp457E0wLNio2bOSKnjYDhMj+YiAq61xrMGhQk9iXVk5FzgQMw==", + "dev": true, "requires": { "parent-module": "^1.0.0", "resolve-from": "^4.0.0" @@ -16739,7 +14692,8 @@ "resolve-from": { "version": "4.0.0", "resolved": "https://registry.npmjs.org/resolve-from/-/resolve-from-4.0.0.tgz", - "integrity": "sha512-pb/MYmXstAkysRFx8piNI1tGFNQIFA3vkE3Gq4EuA1dF6gHp/+vgZqsCGJapvy8N3Q+4o7FwvquPJcnZ7RYy4g==" + "integrity": "sha512-pb/MYmXstAkysRFx8piNI1tGFNQIFA3vkE3Gq4EuA1dF6gHp/+vgZqsCGJapvy8N3Q+4o7FwvquPJcnZ7RYy4g==", + "dev": true } } }, @@ -16769,6 +14723,7 @@ "version": "1.0.6", "resolved": "https://registry.npmjs.org/inflight/-/inflight-1.0.6.tgz", "integrity": "sha512-k92I/b08q4wvFscXCLvqfsHCrjrF7yiXsQuIVvVE7N82W3+aqpzuUdBbfhWcy/FZR3/4IgflMgKLOsvPDrGCJA==", + "devOptional": true, "requires": { "once": "^1.3.0", "wrappy": "1" @@ -16801,11 +14756,6 @@ "integrity": "sha512-agE4QfB2Lkp9uICn7BAqoscw4SZP9kTE2hxiFI3jBPmXJfdqiahTbUuKGsMoN2GtqL9AxhYioAcVvgsb1HvRbA==", "dev": true }, - "invert-kv": { - "version": "3.0.1", - "resolved": "https://registry.npmjs.org/invert-kv/-/invert-kv-3.0.1.tgz", - "integrity": "sha512-CYdFeFexxhv/Bcny+Q0BfOV+ltRlJcd4BBZBYFX/O0u4npJrgZtIcjokegtiSMAvlMTJ+Koq0GBCc//3bueQxw==" - }, "is-absolute": { "version": "0.1.7", "resolved": "https://registry.npmjs.org/is-absolute/-/is-absolute-0.1.7.tgz", @@ -16898,7 +14848,8 @@ "is-extglob": { "version": "2.1.1", "resolved": "https://registry.npmjs.org/is-extglob/-/is-extglob-2.1.1.tgz", - "integrity": "sha512-SbKbANkN603Vi4jEZv49LeVJMn4yGwsbzZworEoyEiutsN3nJYdbO36zfhGJ6QEDpOZIFkDtnq5JRxmvl3jsoQ==" + "integrity": "sha512-SbKbANkN603Vi4jEZv49LeVJMn4yGwsbzZworEoyEiutsN3nJYdbO36zfhGJ6QEDpOZIFkDtnq5JRxmvl3jsoQ==", + "dev": true }, "is-fullwidth-code-point": { "version": "3.0.0", @@ -16909,25 +14860,11 @@ "version": "4.0.3", "resolved": "https://registry.npmjs.org/is-glob/-/is-glob-4.0.3.tgz", "integrity": "sha512-xelSayHH36ZgE7ZWhli7pW34hNbNl8Ojv5KVmkJD4hBdD3th8Tfk9vYasLM+mXWOZhFkgZfxhLSnrwRr4elSSg==", + "dev": true, "requires": { "is-extglob": "^2.1.1" } }, - "is-inside-container": { - "version": "1.0.0", - "resolved": "https://registry.npmjs.org/is-inside-container/-/is-inside-container-1.0.0.tgz", - "integrity": "sha512-KIYLCCJghfHZxqjYBE7rEy0OBuTd5xCHS7tHVgvCLkx7StIoaxwNW3hCALgEUjFfeRk+MG/Qxmp/vtETEF3tRA==", - "requires": { - "is-docker": "^3.0.0" - }, - "dependencies": { - "is-docker": { - "version": "3.0.0", - "resolved": "https://registry.npmjs.org/is-docker/-/is-docker-3.0.0.tgz", - "integrity": "sha512-eljcgEDlEns/7AXFosB5K/2nCM4P7FQPkGc/DWLy5rmFEWvZayGrik1d9/QIY5nJ4f9YsVvBkA6kJpHn9rISdQ==" - } - } - }, "is-installed-globally": { "version": "0.4.0", "resolved": "https://registry.npmjs.org/is-installed-globally/-/is-installed-globally-0.4.0.tgz", @@ -16947,11 +14884,6 @@ } } }, - "is-mergeable-object": { - "version": "1.1.1", - "resolved": "https://registry.npmjs.org/is-mergeable-object/-/is-mergeable-object-1.1.1.tgz", - "integrity": "sha512-CPduJfuGg8h8vW74WOxHtHmtQutyQBzR+3MjQ6iDHIYdbOnm1YC7jv43SqCoU8OPGTJD4nibmiryA4kmogbGrA==" - }, "is-negative-zero": { "version": "2.0.2", "resolved": "https://registry.npmjs.org/is-negative-zero/-/is-negative-zero-2.0.2.tgz", @@ -16998,11 +14930,15 @@ "version": "2.0.4", "resolved": "https://registry.npmjs.org/is-plain-object/-/is-plain-object-2.0.4.tgz", "integrity": "sha512-h5PpgXkWitc38BBMYawTYMWJHFZJVnBquFE57xFpjB8pJFiF6gZ+bU+WyI/yqXiFR5mdLsgYNaPe8uao6Uv9Og==", - "dev": true, "requires": { "isobject": "^3.0.1" } }, + "is-primitive": { + "version": "3.0.1", + "resolved": "https://registry.npmjs.org/is-primitive/-/is-primitive-3.0.1.tgz", + "integrity": "sha512-GljRxhWvlCNRfZyORiH77FwdFwGcMO620o37EOYC0ORWdq+WYNVqW0w2Juzew4M+L81l6/QS3t5gkkihyRqv9w==" + }, "is-regex": { "version": "1.1.4", "resolved": "https://registry.npmjs.org/is-regex/-/is-regex-1.1.4.tgz", @@ -17036,7 +14972,8 @@ "is-stream": { "version": "2.0.1", "resolved": "https://registry.npmjs.org/is-stream/-/is-stream-2.0.1.tgz", - "integrity": "sha512-hFoiJiTl63nn+kstHGBtewWSKnQLpyb155KHheA1l39uvtO9nWIop1p3udqPcUd/xbF1VLMO4n7OI6p7RbngDg==" + "integrity": "sha512-hFoiJiTl63nn+kstHGBtewWSKnQLpyb155KHheA1l39uvtO9nWIop1p3udqPcUd/xbF1VLMO4n7OI6p7RbngDg==", + "dev": true }, "is-string": { "version": "1.0.7", @@ -17085,11 +15022,6 @@ "integrity": "sha512-knxG2q4UC3u8stRGyAVJCOdxFmv5DZiRcdlIaAQXAbSfJya+OhopNotLQrstBhququ4ZpuKbDc/8S6mgXgPFPw==", "dev": true }, - "is-utf8": { - "version": "0.2.1", - "resolved": "https://registry.npmjs.org/is-utf8/-/is-utf8-0.2.1.tgz", - "integrity": "sha512-rMYPYvCzsXywIsldgLaSoPlw5PfoB/ssr7hY4pLfcodrA5M/eArza1a9VmTiNIBNMjOGr1Ow9mTyU2o69U6U9Q==" - }, "is-weakref": { "version": "1.0.2", "resolved": "https://registry.npmjs.org/is-weakref/-/is-weakref-1.0.2.tgz", @@ -17126,8 +15058,7 @@ "isobject": { "version": "3.0.1", "resolved": "https://registry.npmjs.org/isobject/-/isobject-3.0.1.tgz", - "integrity": "sha512-WhB9zCku7EGTj/HQQRz5aUQEUeoQZH2bWcltRErOpymJ4boYE6wL9Tbr23krRPSZ+C5zqNSrSw+Cc7sZZ4b7vg==", - "dev": true + "integrity": "sha512-WhB9zCku7EGTj/HQQRz5aUQEUeoQZH2bWcltRErOpymJ4boYE6wL9Tbr23krRPSZ+C5zqNSrSw+Cc7sZZ4b7vg==" }, "istanbul-lib-coverage": { "version": "3.2.0", @@ -17229,31 +15160,12 @@ "istanbul-lib-report": "^3.0.0" } }, - "jackspeak": { - "version": "3.4.0", - "resolved": "https://registry.npmjs.org/jackspeak/-/jackspeak-3.4.0.tgz", - "integrity": "sha512-JVYhQnN59LVPFCEcVa2C3CrEKYacvjRfqIQl+h8oi91aLYQVWRYbxjPcv1bUiUy/kLmQaANrYfNMCO3kuEDHfw==", - "requires": { - "@isaacs/cliui": "^8.0.2", - "@pkgjs/parseargs": "^0.11.0" - } - }, - "jed": { - "version": "1.1.1", - "resolved": "https://registry.npmjs.org/jed/-/jed-1.1.1.tgz", - "integrity": "sha512-z35ZSEcXHxLW4yumw0dF6L464NT36vmx3wxJw8MDpraBcWuNVgUPZgPJKcu1HekNgwlMFNqol7i/IpSbjhqwqA==" - }, "jiti": { "version": "1.21.0", "resolved": "https://registry.npmjs.org/jiti/-/jiti-1.21.0.tgz", "integrity": "sha512-gFqAIbuKyyso/3G2qhiO2OM6shY6EPP/R0+mkDbyspxKazh8BXDC5FiFsUjlczgdNz/vfra0da2y+aHrusLG/Q==", "dev": true }, - "jose": { - "version": "5.6.3", - "resolved": "https://registry.npmjs.org/jose/-/jose-5.6.3.tgz", - "integrity": "sha512-1Jh//hEEwMhNYPDDLwXHa2ePWgWiFNNUadVmguAAw2IJ6sj9mNxV5tGXJNqlMkJAybF6Lgw1mISDxTePP/187g==" - }, "js-tokens": { "version": "4.0.0", "resolved": "https://registry.npmjs.org/js-tokens/-/js-tokens-4.0.0.tgz", @@ -17280,14 +15192,6 @@ "resolved": "https://registry.npmjs.org/json-buffer/-/json-buffer-3.0.1.tgz", "integrity": "sha512-4bV5BfR2mqfQTJm+V5tPPdf+ZpuhiIvTuAB5g8kcrXOZpTT/QwwVRWBywX1ozr6lEuPdbHxwaJlm9G6mI2sfSQ==" }, - "json-merge-patch": { - "version": "1.0.2", - "resolved": "https://registry.npmjs.org/json-merge-patch/-/json-merge-patch-1.0.2.tgz", - "integrity": "sha512-M6Vp2GN9L7cfuMXiWOmHj9bEFbeC250iVtcKQbqVgEsDVYnIsrNsbU+h/Y/PkbBQCtEa4Bez+Ebv0zfbC8ObLg==", - "requires": { - "fast-deep-equal": "^3.1.3" - } - }, "json-parse-even-better-errors": { "version": "2.3.1", "resolved": "https://registry.npmjs.org/json-parse-even-better-errors/-/json-parse-even-better-errors-2.3.1.tgz", @@ -17297,12 +15201,14 @@ "json-schema-traverse": { "version": "1.0.0", "resolved": "https://registry.npmjs.org/json-schema-traverse/-/json-schema-traverse-1.0.0.tgz", - "integrity": "sha512-NM8/P9n3XjXhIZn1lLhkFaACTOURQXjWhV4BA/RnOv8xvgqtqpAX9IO4mRQxSx1Rlo4tqzeqb0sOlruaOy3dug==" + "integrity": "sha512-NM8/P9n3XjXhIZn1lLhkFaACTOURQXjWhV4BA/RnOv8xvgqtqpAX9IO4mRQxSx1Rlo4tqzeqb0sOlruaOy3dug==", + "dev": true }, "json-stable-stringify-without-jsonify": { "version": "1.0.1", "resolved": "https://registry.npmjs.org/json-stable-stringify-without-jsonify/-/json-stable-stringify-without-jsonify-1.0.1.tgz", - "integrity": "sha512-Bdboy+l7tA3OGW6FjyFHWkP5LuByj1Tk33Ljyq0axyzdk9//JSi2u3fP1QSmd1KNwq6VOKYGlAu87CisVir6Pw==" + "integrity": "sha512-Bdboy+l7tA3OGW6FjyFHWkP5LuByj1Tk33Ljyq0axyzdk9//JSi2u3fP1QSmd1KNwq6VOKYGlAu87CisVir6Pw==", + "dev": true }, "json5": { "version": "2.2.3", @@ -17395,18 +15301,11 @@ "package-json": "^8.1.0" } }, - "lcid": { - "version": "3.1.1", - "resolved": "https://registry.npmjs.org/lcid/-/lcid-3.1.1.tgz", - "integrity": "sha512-M6T051+5QCGLBQb8id3hdvIW8+zeFV2FyBGFS9IEK5H9Wt4MueD4bW1eWikpHgZp+5xR3l5c8pZUkQsIA0BFZg==", - "requires": { - "invert-kv": "^3.0.0" - } - }, "levn": { "version": "0.4.1", "resolved": "https://registry.npmjs.org/levn/-/levn-0.4.1.tgz", "integrity": "sha512-+bT2uH4E5LGE7h/n3evcS/sQlJXCpIp6ym8OWJ5eV6+67Dsql/LaaT7qJBAt2rzfoa/5QBGBhxDix1dMt2kQKQ==", + "dev": true, "requires": { "prelude-ls": "^1.2.1", "type-check": "~0.4.0" @@ -17421,9 +15320,9 @@ } }, "lighthouse-logger": { - "version": "1.3.0", - "resolved": "https://registry.npmjs.org/lighthouse-logger/-/lighthouse-logger-1.3.0.tgz", - "integrity": "sha512-BbqAKApLb9ywUli+0a+PcV04SyJ/N1q/8qgCNe6U97KbPCS1BTksEuHFLYdvc8DltuhfxIUBqDZsC0bBGtl3lA==", + "version": "2.0.1", + "resolved": "https://registry.npmjs.org/lighthouse-logger/-/lighthouse-logger-2.0.1.tgz", + "integrity": "sha512-ioBrW3s2i97noEmnXxmUq7cjIcVRjT5HBpAYy8zE11CxU9HqlWHHeRxfeN1tn8F7OEMVPIC9x1f8t3Z7US9ehQ==", "requires": { "debug": "^2.6.9", "marky": "^1.2.2" @@ -17453,6 +15352,7 @@ "version": "6.0.0", "resolved": "https://registry.npmjs.org/locate-path/-/locate-path-6.0.0.tgz", "integrity": "sha512-iPZK6eYjbxRu3uB4/WZ3EsEIMJFMqAoopl3R+zuq0UjcAm/MO6KCweDgPfP3elTztoKP3KtnVHxTn2NHBSDVUw==", + "dev": true, "requires": { "p-locate": "^5.0.0" } @@ -17502,7 +15402,8 @@ "lodash.merge": { "version": "4.6.2", "resolved": "https://registry.npmjs.org/lodash.merge/-/lodash.merge-4.6.2.tgz", - "integrity": "sha512-0KpjqXRVvrYyCsX1swR/XTK0va6VQkQM6MNo7PqW77ByjAhoARA8EfrP1N4+KlKj8YS0ZUCtRT/YUuhyYDujIQ==" + "integrity": "sha512-0KpjqXRVvrYyCsX1swR/XTK0va6VQkQM6MNo7PqW77ByjAhoARA8EfrP1N4+KlKj8YS0ZUCtRT/YUuhyYDujIQ==", + "dev": true }, "lodash.mergewith": { "version": "4.6.2", @@ -17640,29 +15541,11 @@ "resolved": "https://registry.npmjs.org/make-error/-/make-error-1.3.6.tgz", "integrity": "sha512-s8UhlNe7vPKomQhC1qFelMokr/Sc3AgNbso3n74mVPA5LTZwkB9NlXf4XPamLxJE8h0gh73rM94xvwRT2CVInw==" }, - "map-age-cleaner": { - "version": "0.1.3", - "resolved": "https://registry.npmjs.org/map-age-cleaner/-/map-age-cleaner-0.1.3.tgz", - "integrity": "sha512-bJzx6nMoP6PDLPBFmg7+xRKeFZvFboMrGlxmNj9ClvX53KrmvM5bXFXEWjbz4cz1AFn+jWJ9z/DJSz7hrs0w3w==", - "requires": { - "p-defer": "^1.0.0" - } - }, "marky": { "version": "1.2.5", "resolved": "https://registry.npmjs.org/marky/-/marky-1.2.5.tgz", "integrity": "sha512-q9JtQJKjpsVxCRVgQ+WapguSbKC3SQ5HEzFGPAJMStgh3QjCawp00UKv3MTTAArTmGmmPUvllHZoNbZ3gs0I+Q==" }, - "mem": { - "version": "5.1.1", - "resolved": "https://registry.npmjs.org/mem/-/mem-5.1.1.tgz", - "integrity": "sha512-qvwipnozMohxLXG1pOqoLiZKNkC4r4qqRucSoDwXowsNGDSULiqFTRUF05vcZWnwJSG22qTsynQhxbaMtnX9gw==", - "requires": { - "map-age-cleaner": "^0.1.3", - "mimic-fn": "^2.1.0", - "p-is-promise": "^2.1.0" - } - }, "meow": { "version": "12.1.1", "resolved": "https://registry.npmjs.org/meow/-/meow-12.1.1.tgz", @@ -17672,12 +15555,14 @@ "merge-stream": { "version": "2.0.0", "resolved": "https://registry.npmjs.org/merge-stream/-/merge-stream-2.0.0.tgz", - "integrity": "sha512-abv/qOcuPfk3URPfDzmZU1LKmuw8kT+0nIHvKrKgFrwifol/doWcdA4ZqsWQ8ENrFKkd67Mfpo/LovbIUsbt3w==" + "integrity": "sha512-abv/qOcuPfk3URPfDzmZU1LKmuw8kT+0nIHvKrKgFrwifol/doWcdA4ZqsWQ8ENrFKkd67Mfpo/LovbIUsbt3w==", + "dev": true }, "mimic-fn": { "version": "2.1.0", "resolved": "https://registry.npmjs.org/mimic-fn/-/mimic-fn-2.1.0.tgz", - "integrity": "sha512-OqbOk5oEQeAZ8WXWydlu9HJjz9WVdEIvamMCcXmuqUYjTknH/sqsWvhQ3vgwKFRR1HpjvNBKQ37nbJgYzGqGcg==" + "integrity": "sha512-OqbOk5oEQeAZ8WXWydlu9HJjz9WVdEIvamMCcXmuqUYjTknH/sqsWvhQ3vgwKFRR1HpjvNBKQ37nbJgYzGqGcg==", + "dev": true }, "mimic-response": { "version": "4.0.0", @@ -17697,11 +15582,6 @@ "resolved": "https://registry.npmjs.org/minimist/-/minimist-1.2.8.tgz", "integrity": "sha512-2yyAR8qBkN3YuheJanUpWC5U3bb5osDywNB8RzDVlDwDHbocAJveqqj1u8+SVD7jkWT4yvsHCpWqqWqAxb0zCA==" }, - "minipass": { - "version": "7.1.2", - "resolved": "https://registry.npmjs.org/minipass/-/minipass-7.1.2.tgz", - "integrity": "sha512-qOOzS1cBTWYF4BH8fVePDBOO9iptMnGUEZwNc/cMWnTV2nVLZ7VoNWEPHkYczZA0pdoA7dl6e7FL659nX9S2aw==" - }, "mkdirp": { "version": "3.0.1", "resolved": "https://registry.npmjs.org/mkdirp/-/mkdirp-3.0.1.tgz", @@ -17948,7 +15828,8 @@ "natural-compare": { "version": "1.4.0", "resolved": "https://registry.npmjs.org/natural-compare/-/natural-compare-1.4.0.tgz", - "integrity": "sha512-OWND8ei3VtNC9h7V60qff3SVobHr996CTwgxubgyQYEpg290h9J0buyECNNJexkFm5sOajh5G116RYA1c8ZMSw==" + "integrity": "sha512-OWND8ei3VtNC9h7V60qff3SVobHr996CTwgxubgyQYEpg290h9J0buyECNNJexkFm5sOajh5G116RYA1c8ZMSw==", + "dev": true }, "ncp": { "version": "2.0.0", @@ -17980,21 +15861,6 @@ } } }, - "node-domexception": { - "version": "1.0.0", - "resolved": "https://registry.npmjs.org/node-domexception/-/node-domexception-1.0.0.tgz", - "integrity": "sha512-/jKZoMpw0F8GRwl4/eLROPA3cfcXtLApP0QzLmUT/HuPCZWyB7IY9ZrMeKw2O/nFIqPQB3PVM9aYm0F312AXDQ==" - }, - "node-fetch": { - "version": "3.3.2", - "resolved": "https://registry.npmjs.org/node-fetch/-/node-fetch-3.3.2.tgz", - "integrity": "sha512-dRB78srN/l6gqWulah9SrxeYnxeddIG30+GOqK/9OlLVyLg3HPnr6SqOWTWOXKRwC2eGYCkZ59NNuSgvSrpgOA==", - "requires": { - "data-uri-to-buffer": "^4.0.0", - "fetch-blob": "^3.1.4", - "formdata-polyfill": "^4.0.10" - } - }, "node-forge": { "version": "1.3.1", "resolved": "https://registry.npmjs.org/node-forge/-/node-forge-1.3.1.tgz", @@ -18053,18 +15919,11 @@ "version": "4.0.1", "resolved": "https://registry.npmjs.org/npm-run-path/-/npm-run-path-4.0.1.tgz", "integrity": "sha512-S48WzZW777zhNIrn7gxOlISNAqi9ZC/uQFnRdbeIHhZhCA6UqpkOT8T1G7BvfdgP4Er8gF4sUbaS0i7QvIfCWw==", + "dev": true, "requires": { "path-key": "^3.0.0" } }, - "nth-check": { - "version": "2.1.1", - "resolved": "https://registry.npmjs.org/nth-check/-/nth-check-2.1.1.tgz", - "integrity": "sha512-lqjrjmaOoAnWfMmBPL+XNnynZh2+swxiX3WUE0s4yEHI6m+AwrK2UZOimIRl3X/4QctVqS8AiZjFqyOGrMXb/w==", - "requires": { - "boolbase": "^1.0.0" - } - }, "nyc": { "version": "17.0.0", "resolved": "https://registry.npmjs.org/nyc/-/nyc-17.0.0.tgz", @@ -18360,17 +16219,13 @@ "call-bind": "^1.0.2", "define-properties": "^1.2.0", "es-abstract": "^1.22.1" - } - }, - "on-exit-leak-free": { - "version": "2.1.2", - "resolved": "https://registry.npmjs.org/on-exit-leak-free/-/on-exit-leak-free-2.1.2.tgz", - "integrity": "sha512-0eJJY6hXLGf1udHwfNftBqH+g73EU4B504nZeKpz1sYRKafAghwxEJunB2O7rDZkL4PGfsMVnTXZ2EjibbqcsA==" + } }, "once": { "version": "1.4.0", "resolved": "https://registry.npmjs.org/once/-/once-1.4.0.tgz", "integrity": "sha512-lNaJgI+2Q5URQBkccEKHTQOPaXdUxnZZElQTZY0MFUAuaEqe1E+Nyvgdz/aIyNi6Z9MzO5dv1H8n58/GELp3+w==", + "devOptional": true, "requires": { "wrappy": "1" } @@ -18379,25 +16234,16 @@ "version": "5.1.2", "resolved": "https://registry.npmjs.org/onetime/-/onetime-5.1.2.tgz", "integrity": "sha512-kbpaSSGJTWdAY5KPVeMOKXSrPtr8C8C7wodJbcsd51jRnmD+GZu8Y0VoU6Dm5Z4vWr0Ig/1NKuWRKf7j5aaYSg==", + "dev": true, "requires": { "mimic-fn": "^2.1.0" } }, - "open": { - "version": "9.1.0", - "resolved": "https://registry.npmjs.org/open/-/open-9.1.0.tgz", - "integrity": "sha512-OS+QTnw1/4vrf+9hh1jc1jnYjzSG4ttTBB8UxOwAnInG3Uo4ssetzC1ihqaIHjLJnA5GGlRl6QlZXOTQhRBUvg==", - "requires": { - "default-browser": "^4.0.0", - "define-lazy-prop": "^3.0.0", - "is-inside-container": "^1.0.0", - "is-wsl": "^2.2.0" - } - }, "optionator": { "version": "0.9.3", "resolved": "https://registry.npmjs.org/optionator/-/optionator-0.9.3.tgz", "integrity": "sha512-JjCoypp+jKn1ttEFExxhetCKeJt9zhAgAve5FXHixTvFDW/5aEktX9bufBKLRRMdU7bNtpLfcGu94B3cdEJgjg==", + "dev": true, "requires": { "@aashutoshrathi/word-wrap": "^1.2.3", "deep-is": "^0.1.3", @@ -18407,47 +16253,6 @@ "type-check": "^0.4.0" } }, - "os-locale": { - "version": "5.0.0", - "resolved": "https://registry.npmjs.org/os-locale/-/os-locale-5.0.0.tgz", - "integrity": "sha512-tqZcNEDAIZKBEPnHPlVDvKrp7NzgLi7jRmhKiUoa2NUmhl13FtkAGLUVR+ZsYvApBQdBfYm43A4tXXQ4IrYLBA==", - "requires": { - "execa": "^4.0.0", - "lcid": "^3.0.0", - "mem": "^5.0.0" - }, - "dependencies": { - "execa": { - "version": "4.1.0", - "resolved": "https://registry.npmjs.org/execa/-/execa-4.1.0.tgz", - "integrity": "sha512-j5W0//W7f8UxAn8hXVnwG8tLwdiUy4FJLcSupCg6maBYZDpyBvTApK7KyuI4bKj8KOh1r2YH+6ucuYtJv1bTZA==", - "requires": { - "cross-spawn": "^7.0.0", - "get-stream": "^5.0.0", - "human-signals": "^1.1.1", - "is-stream": "^2.0.0", - "merge-stream": "^2.0.0", - "npm-run-path": "^4.0.0", - "onetime": "^5.1.0", - "signal-exit": "^3.0.2", - "strip-final-newline": "^2.0.0" - } - }, - "get-stream": { - "version": "5.2.0", - "resolved": "https://registry.npmjs.org/get-stream/-/get-stream-5.2.0.tgz", - "integrity": "sha512-nBF+F1rAZVCu/p7rjzgA+Yb4lfYXrpl7a6VmJrU8wF9I1CKvP/QwPNZHnOlwbTkY6dvtFIzFMSyQXbLoTQPRpA==", - "requires": { - "pump": "^3.0.0" - } - }, - "human-signals": { - "version": "1.1.1", - "resolved": "https://registry.npmjs.org/human-signals/-/human-signals-1.1.1.tgz", - "integrity": "sha512-SEQu7vl8KjNL2eoGBLF3+wAjpsNfA9XMlXAYj/3EdaNfAlxKthD1xjEQfGOUhllCGGJVNY34bRr6lPINhNjyZw==" - } - } - }, "os-shim": { "version": "0.1.3", "resolved": "https://registry.npmjs.org/os-shim/-/os-shim-0.1.3.tgz", @@ -18458,20 +16263,11 @@ "resolved": "https://registry.npmjs.org/p-cancelable/-/p-cancelable-3.0.0.tgz", "integrity": "sha512-mlVgR3PGuzlo0MmTdk4cXqXWlwQDLnONTAg6sm62XkMJEiRxN3GL3SffkYvqwonbkJBcrI7Uvv5Zh9yjvn2iUw==" }, - "p-defer": { - "version": "1.0.0", - "resolved": "https://registry.npmjs.org/p-defer/-/p-defer-1.0.0.tgz", - "integrity": "sha512-wB3wfAxZpk2AzOfUMJNL+d36xothRSyj8EXOa4f6GMqYDN9BJaaSISbsk+wS9abmnebVw95C2Kb5t85UmpCxuw==" - }, - "p-is-promise": { - "version": "2.1.0", - "resolved": "https://registry.npmjs.org/p-is-promise/-/p-is-promise-2.1.0.tgz", - "integrity": "sha512-Y3W0wlRPK8ZMRbNq97l4M5otioeA5lm1z7bkNkxCka8HSPjR0xRWmpCmc9utiaLP9Jb1eD8BgeIxTW4AIF45Pg==" - }, "p-limit": { "version": "3.1.0", "resolved": "https://registry.npmjs.org/p-limit/-/p-limit-3.1.0.tgz", "integrity": "sha512-TYOanM3wGwNGsZN2cVTYPArw454xnXj5qmWF1bEoAc4+cU/ol7GVh7odevjp1FNHduHc3KZMcFduxU5Xc6uJRQ==", + "dev": true, "requires": { "yocto-queue": "^0.1.0" } @@ -18480,6 +16276,7 @@ "version": "5.0.0", "resolved": "https://registry.npmjs.org/p-locate/-/p-locate-5.0.0.tgz", "integrity": "sha512-LaNjtRWUBY++zB5nE/NwcaoMylSPk+S+ZHNB1TzdbMJMny6dynpAGt7X/tl/QYq3TIeE6nxHppbo2LGymrG5Pw==", + "dev": true, "requires": { "p-limit": "^3.0.2" } @@ -18532,11 +16329,6 @@ } } }, - "package-json-from-dist": { - "version": "1.0.0", - "resolved": "https://registry.npmjs.org/package-json-from-dist/-/package-json-from-dist-1.0.0.tgz", - "integrity": "sha512-dATvCeZN/8wQsGywez1mzHtTlP22H8OEfPrVMLNr4/eGa+ijtLn/6M5f0dY8UKNrC2O9UCU6SSoG3qRKnt7STw==" - }, "pako": { "version": "1.0.11", "resolved": "https://registry.npmjs.org/pako/-/pako-1.0.11.tgz", @@ -18546,6 +16338,7 @@ "version": "1.0.1", "resolved": "https://registry.npmjs.org/parent-module/-/parent-module-1.0.1.tgz", "integrity": "sha512-GQ2EWRpQV8/o+Aw8YqtfZZPfNRWZYkbidE9k5rpl/hC3vtHHBfGm2Ifi6qWV+coDGkrUKZAxE3Lot5kcsRlh+g==", + "dev": true, "requires": { "callsites": "^3.0.0" } @@ -18574,37 +16367,23 @@ } } }, - "parse5": { - "version": "7.0.0", - "resolved": "https://registry.npmjs.org/parse5/-/parse5-7.0.0.tgz", - "integrity": "sha512-y/t8IXSPWTuRZqXc0ajH/UwDj4mnqLEbSttNbThcFhGrZuOyoyvNBO85PBp2jQa55wY9d07PBNjsK8ZP3K5U6g==", - "requires": { - "entities": "^4.3.0" - } - }, - "parse5-htmlparser2-tree-adapter": { - "version": "7.0.0", - "resolved": "https://registry.npmjs.org/parse5-htmlparser2-tree-adapter/-/parse5-htmlparser2-tree-adapter-7.0.0.tgz", - "integrity": "sha512-B77tOZrqqfUfnVcOrUvfdLbz4pu4RopLD/4vmu3HUPswwTA8OH0EMW9BlWR2B0RCoiZRAHEUu7IxeP1Pd1UU+g==", - "requires": { - "domhandler": "^5.0.2", - "parse5": "^7.0.0" - } - }, "path-exists": { "version": "4.0.0", "resolved": "https://registry.npmjs.org/path-exists/-/path-exists-4.0.0.tgz", - "integrity": "sha512-ak9Qy5Q7jYb2Wwcey5Fpvg2KoAc/ZIhLSLOSBmRmygPsGwkVVt0fZa0qrtMz+m6tJTAHfZQ8FnmB4MG4LWy7/w==" + "integrity": "sha512-ak9Qy5Q7jYb2Wwcey5Fpvg2KoAc/ZIhLSLOSBmRmygPsGwkVVt0fZa0qrtMz+m6tJTAHfZQ8FnmB4MG4LWy7/w==", + "dev": true }, "path-is-absolute": { "version": "1.0.1", "resolved": "https://registry.npmjs.org/path-is-absolute/-/path-is-absolute-1.0.1.tgz", - "integrity": "sha512-AVbw3UJ2e9bq64vSaS9Am0fje1Pa8pbGqTTsmXfaIiMpnr5DlDhfJOuLj9Sf95ZPVDAUerDfEk88MPmPe7UCQg==" + "integrity": "sha512-AVbw3UJ2e9bq64vSaS9Am0fje1Pa8pbGqTTsmXfaIiMpnr5DlDhfJOuLj9Sf95ZPVDAUerDfEk88MPmPe7UCQg==", + "devOptional": true }, "path-key": { "version": "3.1.1", "resolved": "https://registry.npmjs.org/path-key/-/path-key-3.1.1.tgz", - "integrity": "sha512-ojmeN0qd+y0jszEtoY48r0Peq5dwMEkIlCOu6Q5f41lfkswXuKtYrhgoTpLnyIcHm24Uhqx+5Tqm2InSwLhE6Q==" + "integrity": "sha512-ojmeN0qd+y0jszEtoY48r0Peq5dwMEkIlCOu6Q5f41lfkswXuKtYrhgoTpLnyIcHm24Uhqx+5Tqm2InSwLhE6Q==", + "dev": true }, "path-parse": { "version": "1.0.7", @@ -18612,22 +16391,6 @@ "integrity": "sha512-LDJzPVEEEPR+y48z93A0Ed0yXb8pAByGWo/k5YYdYgpY2/2EsOsksJrq7lOHxryrVOn1ejG6oAp8ahvOIQD8sw==", "dev": true }, - "path-scurry": { - "version": "1.11.1", - "resolved": "https://registry.npmjs.org/path-scurry/-/path-scurry-1.11.1.tgz", - "integrity": "sha512-Xa4Nw17FS9ApQFJ9umLiJS4orGjm7ZzwUrwamcGQuHSzDyth9boKDaycYdDcZDuqYATXw4HFXgaqWTctW/v1HA==", - "requires": { - "lru-cache": "^10.2.0", - "minipass": "^5.0.0 || ^6.0.2 || ^7.0.0" - }, - "dependencies": { - "lru-cache": { - "version": "10.2.2", - "resolved": "https://registry.npmjs.org/lru-cache/-/lru-cache-10.2.2.tgz", - "integrity": "sha512-9hp3Vp2/hFQUiIwKo8XCeFVnrg8Pk3TYNPIR7tJADKi5YfcF7vEaK7avFHTlSy3kOKYaJQaalfEo6YuXdceBOQ==" - } - } - }, "path-to-regexp": { "version": "6.2.2", "resolved": "https://registry.npmjs.org/path-to-regexp/-/path-to-regexp-6.2.2.tgz", @@ -18643,7 +16406,8 @@ "pend": { "version": "1.2.0", "resolved": "https://registry.npmjs.org/pend/-/pend-1.2.0.tgz", - "integrity": "sha512-F3asv42UuXchdzt+xXqfW1OGlVBe+mxa2mqI0pg5yAHZPvFmY3Y6drSf/GQ1A86WgWEN9Kzh/WrgKa6iGcHXLg==" + "integrity": "sha512-F3asv42UuXchdzt+xXqfW1OGlVBe+mxa2mqI0pg5yAHZPvFmY3Y6drSf/GQ1A86WgWEN9Kzh/WrgKa6iGcHXLg==", + "dev": true }, "picocolors": { "version": "1.0.0", @@ -18662,38 +16426,6 @@ "integrity": "sha512-uB80kBFb/tfd68bVleG9T5GGsGPjJrLAUpR5PZIrhBnIaRTQRjqdJSsIKkOP6OAIFbj7GOrcudc5pNjZ+geV2g==", "dev": true }, - "pino": { - "version": "8.20.0", - "resolved": "https://registry.npmjs.org/pino/-/pino-8.20.0.tgz", - "integrity": "sha512-uhIfMj5TVp+WynVASaVEJFTncTUe4dHBq6CWplu/vBgvGHhvBvQfxz+vcOrnnBQdORH3izaGEurLfNlq3YxdFQ==", - "requires": { - "atomic-sleep": "^1.0.0", - "fast-redact": "^3.1.1", - "on-exit-leak-free": "^2.1.0", - "pino-abstract-transport": "^1.1.0", - "pino-std-serializers": "^6.0.0", - "process-warning": "^3.0.0", - "quick-format-unescaped": "^4.0.3", - "real-require": "^0.2.0", - "safe-stable-stringify": "^2.3.1", - "sonic-boom": "^3.7.0", - "thread-stream": "^2.0.0" - } - }, - "pino-abstract-transport": { - "version": "1.2.0", - "resolved": "https://registry.npmjs.org/pino-abstract-transport/-/pino-abstract-transport-1.2.0.tgz", - "integrity": "sha512-Guhh8EZfPCfH+PMXAb6rKOjGQEoy0xlAIn+irODG5kgfYV+BQ0rGYYWTIel3P5mmyXqkYkPmdIkywsn6QKUR1Q==", - "requires": { - "readable-stream": "^4.0.0", - "split2": "^4.0.0" - } - }, - "pino-std-serializers": { - "version": "6.2.2", - "resolved": "https://registry.npmjs.org/pino-std-serializers/-/pino-std-serializers-6.2.2.tgz", - "integrity": "sha512-cHjPPsE+vhj/tnhCy/wiMh3M3z3h/j15zHQX+S9GkTBgqJuTuJzYJ4gUyACLhDaJ7kk9ba9iRDmbH2tJU03OiA==" - }, "pirates": { "version": "4.0.6", "resolved": "https://registry.npmjs.org/pirates/-/pirates-4.0.6.tgz", @@ -18757,7 +16489,8 @@ "prelude-ls": { "version": "1.2.1", "resolved": "https://registry.npmjs.org/prelude-ls/-/prelude-ls-1.2.1.tgz", - "integrity": "sha512-vkcDPrRZo1QZLbn5RLGPpg/WmIQ65qoWWhcGKf/b5eplkkarX0m9z8ppCat4mlOqUsWpyNuYgO3VRyrYHSzX5g==" + "integrity": "sha512-vkcDPrRZo1QZLbn5RLGPpg/WmIQ65qoWWhcGKf/b5eplkkarX0m9z8ppCat4mlOqUsWpyNuYgO3VRyrYHSzX5g==", + "dev": true }, "prettier": { "version": "3.3.2", @@ -18798,11 +16531,6 @@ "minimist": "^1.2.0" } }, - "process": { - "version": "0.11.10", - "resolved": "https://registry.npmjs.org/process/-/process-0.11.10.tgz", - "integrity": "sha512-cdGef/drWFoydD1JsMzuFf8100nZl+GT+yacc2bEced5f9Rjk4z+WtFUTBu9PhOi9j/jfmBPu0mMEY4wIdAF8A==" - }, "process-nextick-args": { "version": "2.0.1", "resolved": "https://registry.npmjs.org/process-nextick-args/-/process-nextick-args-2.0.1.tgz", @@ -18817,11 +16545,6 @@ "fromentries": "^1.2.0" } }, - "process-warning": { - "version": "3.0.0", - "resolved": "https://registry.npmjs.org/process-warning/-/process-warning-3.0.0.tgz", - "integrity": "sha512-mqn0kFRl0EoqhnL0GQ0veqFHyIN1yig9RHh/InzORTUiZHFRAur+aMtRkELNwGs9aNwKS6tg/An4NYBPGwvtzQ==" - }, "promise-toolbox": { "version": "0.21.0", "resolved": "https://registry.npmjs.org/promise-toolbox/-/promise-toolbox-0.21.0.tgz", @@ -18835,19 +16558,11 @@ "resolved": "https://registry.npmjs.org/proto-list/-/proto-list-1.2.4.tgz", "integrity": "sha512-vtK/94akxsTMhe0/cbfpR+syPuszcuwhqVjJq26CuNDgFGj682oRBXOP5MJpv2r7JtE8MsiepGIqvvOTBwn2vA==" }, - "pump": { - "version": "3.0.0", - "resolved": "https://registry.npmjs.org/pump/-/pump-3.0.0.tgz", - "integrity": "sha512-LwZy+p3SFs1Pytd/jYct4wpv49HiYCqd9Rlc5ZVdk0V+8Yzv6jR5Blk3TRmPL1ft69TxP0IMZGJ+WPFU2BFhww==", - "requires": { - "end-of-stream": "^1.1.0", - "once": "^1.3.1" - } - }, "punycode": { "version": "2.1.1", "resolved": "https://registry.npmjs.org/punycode/-/punycode-2.1.1.tgz", - "integrity": "sha512-XRsRjdf+j5ml+y/6GKHPZbrF/8p2Yga0JPtdqTIY2Xe5ohJPD9saDJJLPvp9+NSBprVvevdXZybnj2cv8OEd0A==" + "integrity": "sha512-XRsRjdf+j5ml+y/6GKHPZbrF/8p2Yga0JPtdqTIY2Xe5ohJPD9saDJJLPvp9+NSBprVvevdXZybnj2cv8OEd0A==", + "dev": true }, "pupa": { "version": "3.1.0", @@ -18857,18 +16572,11 @@ "escape-goat": "^4.0.0" } }, - "queue": { - "version": "6.0.2", - "resolved": "https://registry.npmjs.org/queue/-/queue-6.0.2.tgz", - "integrity": "sha512-iHZWu+q3IdFZFX36ro/lKBkSvfkztY5Y7HMiPlOUjhupPcG2JMfst2KKEpu5XndviX/3UhFbRngUPNKtgvtZiA==", - "requires": { - "inherits": "~2.0.3" - } - }, "queue-microtask": { "version": "1.2.3", "resolved": "https://registry.npmjs.org/queue-microtask/-/queue-microtask-1.2.3.tgz", - "integrity": "sha512-NuaNSa6flKT5JaSYQzJok04JzTL1CA6aGhv5rfLW3PgqA+M2ChpZQnAC8h8i4ZFkBS8X5RqkDBHA7r4hej3K9A==" + "integrity": "sha512-NuaNSa6flKT5JaSYQzJok04JzTL1CA6aGhv5rfLW3PgqA+M2ChpZQnAC8h8i4ZFkBS8X5RqkDBHA7r4hej3K9A==", + "dev": true }, "quibble": { "version": "0.9.2", @@ -18880,11 +16588,6 @@ "resolve": "^1.22.8" } }, - "quick-format-unescaped": { - "version": "4.0.4", - "resolved": "https://registry.npmjs.org/quick-format-unescaped/-/quick-format-unescaped-4.0.4.tgz", - "integrity": "sha512-tYC1Q1hgyRuHgloV/YXs2w15unPVh8qfu/qCTfhTYamaw7fyhumKa2yGpdSo87vY32rIclj+4fWYQXUMs9EHvg==" - }, "randombytes": { "version": "2.1.0", "resolved": "https://registry.npmjs.org/randombytes/-/randombytes-2.1.0.tgz", @@ -18917,33 +16620,6 @@ } } }, - "readable-stream": { - "version": "4.5.2", - "resolved": "https://registry.npmjs.org/readable-stream/-/readable-stream-4.5.2.tgz", - "integrity": "sha512-yjavECdqeZ3GLXNgRXgeQEdz9fvDDkNKyHnbHRFtOr7/LcfgBcmct7t/ET+HaCTqfh06OzoAxrkN/IfjJBVe+g==", - "requires": { - "abort-controller": "^3.0.0", - "buffer": "^6.0.3", - "events": "^3.3.0", - "process": "^0.11.10", - "string_decoder": "^1.3.0" - }, - "dependencies": { - "safe-buffer": { - "version": "5.2.1", - "resolved": "https://registry.npmjs.org/safe-buffer/-/safe-buffer-5.2.1.tgz", - "integrity": "sha512-rp3So07KcdmmKbGvgaNxQSJr7bGVSVk5S9Eq1F+ppbRo70+YeaDxkw5Dd8NPN+GD6bjnYm2VuPuCXmpuYvmCXQ==" - }, - "string_decoder": { - "version": "1.3.0", - "resolved": "https://registry.npmjs.org/string_decoder/-/string_decoder-1.3.0.tgz", - "integrity": "sha512-hkRX8U1WjJFd8LsDJ2yQ/wWWxaopEsABU1XfkM8A+j0+85JAGppt16cr1Whg6KIbb4okU6Mql6BOj+uup/wKeA==", - "requires": { - "safe-buffer": "~5.2.0" - } - } - } - }, "readdirp": { "version": "3.6.0", "resolved": "https://registry.npmjs.org/readdirp/-/readdirp-3.6.0.tgz", @@ -18953,11 +16629,6 @@ "picomatch": "^2.2.1" } }, - "real-require": { - "version": "0.2.0", - "resolved": "https://registry.npmjs.org/real-require/-/real-require-0.2.0.tgz", - "integrity": "sha512-57frrGM/OCTLqLOAh0mhVA9VBMHd+9U7Zb2THMGdBUoZVOtGbJzjxsYGDJ3A9AYYCP4hn6y1TVbaOfzWtm5GFg==" - }, "rechoir": { "version": "0.6.2", "resolved": "https://registry.npmjs.org/rechoir/-/rechoir-0.6.2.tgz", @@ -19054,22 +16725,6 @@ } } }, - "relaxed-json": { - "version": "1.0.3", - "resolved": "https://registry.npmjs.org/relaxed-json/-/relaxed-json-1.0.3.tgz", - "integrity": "sha512-b7wGPo7o2KE/g7SqkJDDbav6zmrEeP4TK2VpITU72J/M949TLe/23y/ZHJo+pskcGM52xIfFoT9hydwmgr1AEg==", - "requires": { - "chalk": "^2.4.2", - "commander": "^2.6.0" - }, - "dependencies": { - "commander": { - "version": "2.20.3", - "resolved": "https://registry.npmjs.org/commander/-/commander-2.20.3.tgz", - "integrity": "sha512-GpVkmM8vF2vQUkj2LvZmD35JxeJOLCwJ9cUkugyk2nuhbv3+mJvpLYYt+0+USMxE+oj+ey/lJEnhZw75x/OMcQ==" - } - } - }, "release-zalgo": { "version": "1.0.0", "resolved": "https://registry.npmjs.org/release-zalgo/-/release-zalgo-1.0.0.tgz", @@ -19082,12 +16737,14 @@ "require-directory": { "version": "2.1.1", "resolved": "https://registry.npmjs.org/require-directory/-/require-directory-2.1.1.tgz", - "integrity": "sha512-fGxEI7+wsG9xrvdjsrlmL22OMTTiHRwAMroiEeMgq8gzoLC/PQr7RsRDSTLUg/bZAZtF+TVIkHc6/4RIKrui+Q==" + "integrity": "sha512-fGxEI7+wsG9xrvdjsrlmL22OMTTiHRwAMroiEeMgq8gzoLC/PQr7RsRDSTLUg/bZAZtF+TVIkHc6/4RIKrui+Q==", + "dev": true }, "require-from-string": { "version": "2.0.2", "resolved": "https://registry.npmjs.org/require-from-string/-/require-from-string-2.0.2.tgz", - "integrity": "sha512-Xf0nWe6RseziFMu+Ap9biiUbmplq6S9/p+7w7YXP/JBHhrUDDUhwa+vANyubuqfZWTveU//DYVGsDG7RKL/vEw==" + "integrity": "sha512-Xf0nWe6RseziFMu+Ap9biiUbmplq6S9/p+7w7YXP/JBHhrUDDUhwa+vANyubuqfZWTveU//DYVGsDG7RKL/vEw==", + "dev": true }, "require-main-filename": { "version": "2.0.0", @@ -19128,28 +16785,23 @@ "reusify": { "version": "1.0.4", "resolved": "https://registry.npmjs.org/reusify/-/reusify-1.0.4.tgz", - "integrity": "sha512-U9nH88a3fc/ekCF1l0/UP1IosiuIjyTh7hBvXVMHYgVcfGvt897Xguj2UOLDeI5BG2m7/uwyaLVT6fbtCwTyzw==" + "integrity": "sha512-U9nH88a3fc/ekCF1l0/UP1IosiuIjyTh7hBvXVMHYgVcfGvt897Xguj2UOLDeI5BG2m7/uwyaLVT6fbtCwTyzw==", + "dev": true }, "rimraf": { "version": "3.0.2", "resolved": "https://registry.npmjs.org/rimraf/-/rimraf-3.0.2.tgz", "integrity": "sha512-JZkJMZkAGFFPP2YqXZXPbMlMBgsxzE8ILs4lMIX/2o0L9UBw9O/Y3o6wFw/i9YLapcUJWwqbi3kdxIPdC62TIA==", + "dev": true, "requires": { "glob": "^7.1.3" } }, - "run-applescript": { - "version": "5.0.0", - "resolved": "https://registry.npmjs.org/run-applescript/-/run-applescript-5.0.0.tgz", - "integrity": "sha512-XcT5rBksx1QdIhlFOCtgZkB99ZEouFZ1E2Kc2LHqNW13U3/74YGdkQRmThTwxy4QIyookibDKYZOPqX//6BlAg==", - "requires": { - "execa": "^5.0.0" - } - }, "run-parallel": { "version": "1.2.0", "resolved": "https://registry.npmjs.org/run-parallel/-/run-parallel-1.2.0.tgz", "integrity": "sha512-5l4VyZR86LZ/lDxZTR6jqL8AFE2S0IFLMP26AbjsLVADxHdhB/c0GUsH+y39UfCi3dzz8OlQuPmnaJOMoDHQBA==", + "dev": true, "requires": { "queue-microtask": "^1.2.2" } @@ -19196,11 +16848,6 @@ "is-regex": "^1.1.4" } }, - "safe-stable-stringify": { - "version": "2.4.3", - "resolved": "https://registry.npmjs.org/safe-stable-stringify/-/safe-stable-stringify-2.4.3.tgz", - "integrity": "sha512-e2bDA2WJT0wxseVd4lsDP4+3ONX6HpMXQa1ZhFQ7SU+GjvORCmShbCMltrtIDfkYhVHrOcPtj+KhmDBdPdZD1g==" - }, "sax": { "version": "1.2.4", "resolved": "https://registry.npmjs.org/sax/-/sax-1.2.4.tgz", @@ -19268,20 +16915,20 @@ "has-property-descriptors": "^1.0.0" } }, + "set-value": { + "version": "4.1.0", + "resolved": "https://registry.npmjs.org/set-value/-/set-value-4.1.0.tgz", + "integrity": "sha512-zTEg4HL0RwVrqcWs3ztF+x1vkxfm0lP+MQQFPiMJTKVceBwEV0A569Ou8l9IYQG8jOZdMVI1hGsc0tmeD2o/Lw==", + "requires": { + "is-plain-object": "^2.0.4", + "is-primitive": "^3.0.1" + } + }, "setimmediate": { "version": "1.0.5", "resolved": "https://registry.npmjs.org/setimmediate/-/setimmediate-1.0.5.tgz", "integrity": "sha512-MATJdZp8sLqDl/68LfQmbP8zKPLQNV6BIZoIgrscFDQ+RsvK/BxeDQOgyxKKoh0y/8h3BqVFnCqQ/gd+reiIXA==" }, - "sha.js": { - "version": "2.4.11", - "resolved": "https://registry.npmjs.org/sha.js/-/sha.js-2.4.11.tgz", - "integrity": "sha512-QMEp5B7cftE7APOjk5Y6xgrbWu+WkLVQwk8JNjZ8nKRciZaByEW6MubieAiToS7+dwvrjGhH8jRXz3MVd0AYqQ==", - "requires": { - "inherits": "^2.0.1", - "safe-buffer": "^5.0.1" - } - }, "shallow-clone": { "version": "3.0.1", "resolved": "https://registry.npmjs.org/shallow-clone/-/shallow-clone-3.0.1.tgz", @@ -19295,6 +16942,7 @@ "version": "2.0.0", "resolved": "https://registry.npmjs.org/shebang-command/-/shebang-command-2.0.0.tgz", "integrity": "sha512-kHxr2zZpYtdmrN1qDjrrX/Z1rR1kG8Dx+gkpK1G4eXmvXswmcE1hTWBWYUzlraYw1/yZp6YuDY77YtvbN0dmDA==", + "dev": true, "requires": { "shebang-regex": "^3.0.0" } @@ -19302,7 +16950,8 @@ "shebang-regex": { "version": "3.0.0", "resolved": "https://registry.npmjs.org/shebang-regex/-/shebang-regex-3.0.0.tgz", - "integrity": "sha512-7++dFhtcx3353uBaq8DDR4NuxBetBzC7ZQOhmTQInHEd6bSrXdiEyzCvG07Z44UYdLShWUyXt5M/yhz8ekcb1A==" + "integrity": "sha512-7++dFhtcx3353uBaq8DDR4NuxBetBzC7ZQOhmTQInHEd6bSrXdiEyzCvG07Z44UYdLShWUyXt5M/yhz8ekcb1A==", + "dev": true }, "shell-quote": { "version": "1.7.3", @@ -19387,14 +17036,6 @@ "integrity": "sha512-ZYKh3Wh2z1PpEXWr0MpSBZ0V6mZHAQfYevttO11c51CaWjGTaadiKZ+wVt1PbMlDV5qhMFslpZCemhwOK7C89A==", "dev": true }, - "sonic-boom": { - "version": "3.8.1", - "resolved": "https://registry.npmjs.org/sonic-boom/-/sonic-boom-3.8.1.tgz", - "integrity": "sha512-y4Z8LCDBuum+PBP3lSV7RHrXscqksve/bi0as7mhwVnBW+/wUqKT/2Kb7um8yqcFy0duYbbPxzt89Zy2nOCaxg==", - "requires": { - "atomic-sleep": "^1.0.0" - } - }, "source-map": { "version": "0.6.1", "resolved": "https://registry.npmjs.org/source-map/-/source-map-0.6.1.tgz", @@ -19454,7 +17095,8 @@ "split2": { "version": "4.2.0", "resolved": "https://registry.npmjs.org/split2/-/split2-4.2.0.tgz", - "integrity": "sha512-UcjcJOWknrNkF6PLX83qcHM6KHgVKNkV62Y8a5uYDVv9ydGQVwAHMKqHdJje1VTWpljG0WYpCDhrCdAOYH4TWg==" + "integrity": "sha512-UcjcJOWknrNkF6PLX83qcHM6KHgVKNkV62Y8a5uYDVv9ydGQVwAHMKqHdJje1VTWpljG0WYpCDhrCdAOYH4TWg==", + "dev": true }, "sprintf-js": { "version": "1.0.3", @@ -19495,23 +17137,6 @@ } } }, - "string-width-cjs": { - "version": "npm:string-width@4.2.3", - "resolved": "https://registry.npmjs.org/string-width/-/string-width-4.2.3.tgz", - "integrity": "sha512-wKyQRQpjJ0sIp62ErSZdGsjMJWsap5oRNihHhu6G7JVO/9jIB6UyevL+tXuOqrng8j/cxKTWyWUwvSTriiZz/g==", - "requires": { - "emoji-regex": "^8.0.0", - "is-fullwidth-code-point": "^3.0.0", - "strip-ansi": "^6.0.1" - }, - "dependencies": { - "emoji-regex": { - "version": "8.0.0", - "resolved": "https://registry.npmjs.org/emoji-regex/-/emoji-regex-8.0.0.tgz", - "integrity": "sha512-MSjYzcWNOA0ewAHpz0MxpYFvwg6yjy1NG3xteoqz644VCo/RPgnr1/GGt+ic3iJTzQ8Eu3TdM14SawnVUmGE6A==" - } - } - }, "string.prototype.trim": { "version": "1.2.8", "resolved": "https://registry.npmjs.org/string.prototype.trim/-/string.prototype.trim-1.2.8.tgz", @@ -19563,40 +17188,16 @@ "ansi-regex": "^5.0.1" } }, - "strip-ansi-cjs": { - "version": "npm:strip-ansi@6.0.1", - "resolved": "https://registry.npmjs.org/strip-ansi/-/strip-ansi-6.0.1.tgz", - "integrity": "sha512-Y38VPSHcqkFrCpFnQ9vuSXmquuv5oXOKpGeT6aGrr3o3Gc9AlVa6JBfUSOCnbxGGZF+/0ooI7KrPuUSztUdU5A==", - "requires": { - "ansi-regex": "^5.0.1" - } - }, "strip-bom": { "version": "5.0.0", "resolved": "https://registry.npmjs.org/strip-bom/-/strip-bom-5.0.0.tgz", "integrity": "sha512-p+byADHF7SzEcVnLvc/r3uognM1hUhObuHXxJcgLCfD194XAkaLbjq3Wzb0N5G2tgIjH0dgT708Z51QxMeu60A==" }, - "strip-bom-buf": { - "version": "2.0.0", - "resolved": "https://registry.npmjs.org/strip-bom-buf/-/strip-bom-buf-2.0.0.tgz", - "integrity": "sha512-gLFNHucd6gzb8jMsl5QmZ3QgnUJmp7qn4uUSHNwEXumAp7YizoGYw19ZUVfuq4aBOQUtyn2k8X/CwzWB73W2lQ==", - "requires": { - "is-utf8": "^0.2.1" - } - }, - "strip-bom-stream": { - "version": "4.0.0", - "resolved": "https://registry.npmjs.org/strip-bom-stream/-/strip-bom-stream-4.0.0.tgz", - "integrity": "sha512-0ApK3iAkHv6WbgLICw/J4nhwHeDZsBxIIsOD+gHgZICL6SeJ0S9f/WZqemka9cjkTyMN5geId6e8U5WGFAn3cQ==", - "requires": { - "first-chunk-stream": "^3.0.0", - "strip-bom-buf": "^2.0.0" - } - }, "strip-final-newline": { "version": "2.0.0", "resolved": "https://registry.npmjs.org/strip-final-newline/-/strip-final-newline-2.0.0.tgz", - "integrity": "sha512-BrpvfNAE3dcvq7ll3xVumzjKjZQ5tI1sEUIKr3Uoks0XUl45St3FlatVqef9prk4jRDzhW6WZg+3bk93y6pLjA==" + "integrity": "sha512-BrpvfNAE3dcvq7ll3xVumzjKjZQ5tI1sEUIKr3Uoks0XUl45St3FlatVqef9prk4jRDzhW6WZg+3bk93y6pLjA==", + "dev": true }, "strip-json-comments": { "version": "5.0.1", @@ -19649,7 +17250,8 @@ "text-table": { "version": "0.2.0", "resolved": "https://registry.npmjs.org/text-table/-/text-table-0.2.0.tgz", - "integrity": "sha512-N+8UisAXDGk8PFXP4HAzVR9nbfmVJ3zYLAWiTIoqC5v5isinhr+r5uaO8+7r3BMfuNIufIsA7RdpVgacC2cSpw==" + "integrity": "sha512-N+8UisAXDGk8PFXP4HAzVR9nbfmVJ3zYLAWiTIoqC5v5isinhr+r5uaO8+7r3BMfuNIufIsA7RdpVgacC2cSpw==", + "dev": true }, "thenify": { "version": "3.3.1", @@ -19673,24 +17275,11 @@ "integrity": "sha512-KU3SA3TjRRM932jpNfD3u4Ec3bSvedyo5ITPI7zgWYnKep7BwQQaxlhI9qbO+lKJoRnoAbEVfMcAHRuKVYikDA==", "dev": true }, - "thread-stream": { - "version": "2.6.0", - "resolved": "https://registry.npmjs.org/thread-stream/-/thread-stream-2.6.0.tgz", - "integrity": "sha512-t4eNiKdGwd1EV6tx76mRbrOqwvkxz+ssOiQXEXw88m4p/Xp6679vg16sf39BAstRjHOiWIqp5+J2ylHk3pU30g==", - "requires": { - "real-require": "^0.2.0" - } - }, "through": { "version": "2.3.8", "resolved": "https://registry.npmjs.org/through/-/through-2.3.8.tgz", "integrity": "sha512-w89qg7PI8wAdvX60bMDP+bFoD5Dvhm9oLheFp5O4a2QF0cSBGsBX4qZmadPMvVqlLJBBci+WqGGOAPvcDeNSVg==" }, - "titleize": { - "version": "3.0.0", - "resolved": "https://registry.npmjs.org/titleize/-/titleize-3.0.0.tgz", - "integrity": "sha512-KxVu8EYHDPBdUYdKZdKtU2aj2XfEx9AfjXxE/Aj0vT06w2icA09Vus1rh6eSu1y01akYg6BjIK/hxyLJINoMLQ==" - }, "tmp": { "version": "0.2.3", "resolved": "https://registry.npmjs.org/tmp/-/tmp-0.2.3.tgz", @@ -19711,18 +17300,6 @@ "is-number": "^7.0.0" } }, - "tosource": { - "version": "1.0.0", - "resolved": "https://registry.npmjs.org/tosource/-/tosource-1.0.0.tgz", - "integrity": "sha512-N6g8eQ1eerw6Y1pBhdgkubWIiPFwXa2POSUrlL8jth5CyyEWNWzoGKRkO3CaO7Jx27hlJP54muB3btIAbx4MPg==" - }, - "tr46": { - "version": "0.0.3", - "resolved": "https://registry.npmjs.org/tr46/-/tr46-0.0.3.tgz", - "integrity": "sha512-N3WMsuqV66lT30CrXNbEjx4GEwlow3v6rr4mCcv6prnfwhS01rkgyFdjPNBYd9br7LpXV1+Emh01fHnq2Gdgrw==", - "optional": true, - "peer": true - }, "tsconfig-paths": { "version": "3.15.0", "resolved": "https://registry.npmjs.org/tsconfig-paths/-/tsconfig-paths-3.15.0.tgz", @@ -19762,6 +17339,7 @@ "version": "0.4.0", "resolved": "https://registry.npmjs.org/type-check/-/type-check-0.4.0.tgz", "integrity": "sha512-XleUoc9uwGXqjWwXaUTZAmzMcFZ5858QA2vvx1Ur5xIcixXIP+8LnFDgRplU30us6teqdlskFfu+ae4K79Ooew==", + "dev": true, "requires": { "prelude-ls": "^1.2.1" } @@ -19898,16 +17476,6 @@ "resolved": "https://registry.npmjs.org/universalify/-/universalify-2.0.0.tgz", "integrity": "sha512-hAZsKq7Yy11Zu1DE0OzWjw7nnLZmJZYTDZZyEFHZdUhV8FkH5MCfoU1XMaxXovpyW5nq5scPqq0ZDP9Zyl04oQ==" }, - "untildify": { - "version": "4.0.0", - "resolved": "https://registry.npmjs.org/untildify/-/untildify-4.0.0.tgz", - "integrity": "sha512-KK8xQ1mkzZeg9inewmFVDNkg3l5LUhoq9kN6iWYB/CC9YMG8HA+c1Q8HwDe6dEX7kErrEVNVBO3fWsVq5iDgtw==" - }, - "upath": { - "version": "2.0.1", - "resolved": "https://registry.npmjs.org/upath/-/upath-2.0.1.tgz", - "integrity": "sha512-1uEe95xksV1O0CYKXo8vQvN1JEbtJp7lb7C5U9HMsIp6IVwntkH/oNUzyVNQSd4S1sYk2FpSSW44FqMc8qee5w==" - }, "update-browserslist-db": { "version": "1.0.13", "resolved": "https://registry.npmjs.org/update-browserslist-db/-/update-browserslist-db-1.0.13.tgz", @@ -19958,6 +17526,7 @@ "version": "4.4.1", "resolved": "https://registry.npmjs.org/uri-js/-/uri-js-4.4.1.tgz", "integrity": "sha512-7rKUyy33Q1yc98pQ1DAmLtwX109F7TIfWlW1Ydo8Wl1ii1SeHieeh0HHfPeL2fMXK6z0s8ecKs9frCuLJvndBg==", + "dev": true, "requires": { "punycode": "^2.1.0" } @@ -19981,37 +17550,6 @@ "graceful-fs": "^4.1.2" } }, - "wcwidth": { - "version": "1.0.1", - "resolved": "https://registry.npmjs.org/wcwidth/-/wcwidth-1.0.1.tgz", - "integrity": "sha512-XHPEwS0q6TaxcvG85+8EYkbiCux2XtWG2mkc47Ng2A77BQu9+DqIOJldST4HgPkuea7dvKSj5VgX3P1d4rW8Tg==", - "requires": { - "defaults": "^1.0.3" - } - }, - "web-streams-polyfill": { - "version": "3.2.1", - "resolved": "https://registry.npmjs.org/web-streams-polyfill/-/web-streams-polyfill-3.2.1.tgz", - "integrity": "sha512-e0MO3wdXWKrLbL0DgGnUV7WHVuw9OUvL4hjgnPkIeEvESk74gAITi5G606JtZPp39cd8HA9VQzCIvA49LpPN5Q==" - }, - "webidl-conversions": { - "version": "3.0.1", - "resolved": "https://registry.npmjs.org/webidl-conversions/-/webidl-conversions-3.0.1.tgz", - "integrity": "sha512-2JAn3z8AR6rjK8Sm8orRC0h/bcl/DqL7tRPdGZ4I1CjdF+EaMLmYxBHyXuKL849eucPFhvBoxMsflfOb8kxaeQ==", - "optional": true, - "peer": true - }, - "whatwg-url": { - "version": "5.0.0", - "resolved": "https://registry.npmjs.org/whatwg-url/-/whatwg-url-5.0.0.tgz", - "integrity": "sha512-saE57nupxk6v3HY35+jzBwYa0rKSy0XR8JSxZPwgLr7ys0IBzhGviA1/TUGJLmSVqs8pb9AnvICXEuOHLprYTw==", - "optional": true, - "peer": true, - "requires": { - "tr46": "~0.0.3", - "webidl-conversions": "^3.0.0" - } - }, "when": { "version": "3.7.7", "resolved": "https://registry.npmjs.org/when/-/when-3.7.7.tgz", @@ -20106,58 +17644,11 @@ } } }, - "wrap-ansi-cjs": { - "version": "npm:wrap-ansi@7.0.0", - "resolved": "https://registry.npmjs.org/wrap-ansi/-/wrap-ansi-7.0.0.tgz", - "integrity": "sha512-YVGIj2kamLSTxw6NsZjoBxfSwsn0ycdesmc4p+Q21c5zPuZ1pl+NfxVdxPtdHvmNVOQ6XSYG4AUtyt/Fi7D16Q==", - "requires": { - "ansi-styles": "^4.0.0", - "string-width": "^4.1.0", - "strip-ansi": "^6.0.0" - }, - "dependencies": { - "ansi-styles": { - "version": "4.3.0", - "resolved": "https://registry.npmjs.org/ansi-styles/-/ansi-styles-4.3.0.tgz", - "integrity": "sha512-zbB9rCJAT1rbjiVDb2hqKFHNYLxgtk8NURxZ3IZwD3F6NtxbXZQCnnSi1Lkx+IDohdPlFp222wVALIheZJQSEg==", - "requires": { - "color-convert": "^2.0.1" - } - }, - "color-convert": { - "version": "2.0.1", - "resolved": "https://registry.npmjs.org/color-convert/-/color-convert-2.0.1.tgz", - "integrity": "sha512-RRECPsj7iu/xb5oKYcsFHSppFNnsj/52OVTRKb4zP5onXwVF3zVmmToNcOfGC+CRDpfK/U584fMg38ZHCaElKQ==", - "requires": { - "color-name": "~1.1.4" - } - }, - "color-name": { - "version": "1.1.4", - "resolved": "https://registry.npmjs.org/color-name/-/color-name-1.1.4.tgz", - "integrity": "sha512-dOy+3AuW3a2wNbZHIuMZpTcgjGuLU/uBL/ubcZF9OXbDo8ff4O8yVp5Bf0efS8uEoYo5q4Fx7dY9OgQGXgAsQA==" - }, - "emoji-regex": { - "version": "8.0.0", - "resolved": "https://registry.npmjs.org/emoji-regex/-/emoji-regex-8.0.0.tgz", - "integrity": "sha512-MSjYzcWNOA0ewAHpz0MxpYFvwg6yjy1NG3xteoqz644VCo/RPgnr1/GGt+ic3iJTzQ8Eu3TdM14SawnVUmGE6A==" - }, - "string-width": { - "version": "4.2.3", - "resolved": "https://registry.npmjs.org/string-width/-/string-width-4.2.3.tgz", - "integrity": "sha512-wKyQRQpjJ0sIp62ErSZdGsjMJWsap5oRNihHhu6G7JVO/9jIB6UyevL+tXuOqrng8j/cxKTWyWUwvSTriiZz/g==", - "requires": { - "emoji-regex": "^8.0.0", - "is-fullwidth-code-point": "^3.0.0", - "strip-ansi": "^6.0.1" - } - } - } - }, "wrappy": { "version": "1.0.2", "resolved": "https://registry.npmjs.org/wrappy/-/wrappy-1.0.2.tgz", - "integrity": "sha512-l4Sp/DRseor9wL6EvV2+TuQn63dMkPjZ/sp9XkghTEbV9KlPS1xUsZ3u7/IQO4wxtcFB4bgpQPRcR3QCvezPcQ==" + "integrity": "sha512-l4Sp/DRseor9wL6EvV2+TuQn63dMkPjZ/sp9XkghTEbV9KlPS1xUsZ3u7/IQO4wxtcFB4bgpQPRcR3QCvezPcQ==", + "devOptional": true }, "write-file-atomic": { "version": "3.0.3", @@ -20198,7 +17689,8 @@ "y18n": { "version": "5.0.8", "resolved": "https://registry.npmjs.org/y18n/-/y18n-5.0.8.tgz", - "integrity": "sha512-0pfFzegeDWJHJIAmTLRP2DwHjdF5s7jo9tuztdQxAhINCdvS+3nGINqPd00AphqJR/0LhANUS6/+7SCb98YOfA==" + "integrity": "sha512-0pfFzegeDWJHJIAmTLRP2DwHjdF5s7jo9tuztdQxAhINCdvS+3nGINqPd00AphqJR/0LhANUS6/+7SCb98YOfA==", + "dev": true }, "yallist": { "version": "4.0.0", @@ -20209,6 +17701,7 @@ "version": "17.7.2", "resolved": "https://registry.npmjs.org/yargs/-/yargs-17.7.2.tgz", "integrity": "sha512-7dSzzRQ++CKnNI/krKnYRV7JKKPUXMEh61soaHKg9mrWEhzFWhFnxPxGl+69cD1Ou63C13NUPCnmIcrvqCuM6w==", + "dev": true, "requires": { "cliui": "^8.0.1", "escalade": "^3.1.1", @@ -20223,6 +17716,7 @@ "version": "4.3.0", "resolved": "https://registry.npmjs.org/ansi-styles/-/ansi-styles-4.3.0.tgz", "integrity": "sha512-zbB9rCJAT1rbjiVDb2hqKFHNYLxgtk8NURxZ3IZwD3F6NtxbXZQCnnSi1Lkx+IDohdPlFp222wVALIheZJQSEg==", + "dev": true, "requires": { "color-convert": "^2.0.1" } @@ -20231,6 +17725,7 @@ "version": "8.0.1", "resolved": "https://registry.npmjs.org/cliui/-/cliui-8.0.1.tgz", "integrity": "sha512-BSeNnyus75C4//NQ9gQt1/csTXyo/8Sb+afLAkzAptFuMsod9HFokGNudZpi/oQV73hnVK+sR+5PVRMd+Dr7YQ==", + "dev": true, "requires": { "string-width": "^4.2.0", "strip-ansi": "^6.0.1", @@ -20241,6 +17736,7 @@ "version": "2.0.1", "resolved": "https://registry.npmjs.org/color-convert/-/color-convert-2.0.1.tgz", "integrity": "sha512-RRECPsj7iu/xb5oKYcsFHSppFNnsj/52OVTRKb4zP5onXwVF3zVmmToNcOfGC+CRDpfK/U584fMg38ZHCaElKQ==", + "dev": true, "requires": { "color-name": "~1.1.4" } @@ -20248,17 +17744,20 @@ "color-name": { "version": "1.1.4", "resolved": "https://registry.npmjs.org/color-name/-/color-name-1.1.4.tgz", - "integrity": "sha512-dOy+3AuW3a2wNbZHIuMZpTcgjGuLU/uBL/ubcZF9OXbDo8ff4O8yVp5Bf0efS8uEoYo5q4Fx7dY9OgQGXgAsQA==" + "integrity": "sha512-dOy+3AuW3a2wNbZHIuMZpTcgjGuLU/uBL/ubcZF9OXbDo8ff4O8yVp5Bf0efS8uEoYo5q4Fx7dY9OgQGXgAsQA==", + "dev": true }, "emoji-regex": { "version": "8.0.0", "resolved": "https://registry.npmjs.org/emoji-regex/-/emoji-regex-8.0.0.tgz", - "integrity": "sha512-MSjYzcWNOA0ewAHpz0MxpYFvwg6yjy1NG3xteoqz644VCo/RPgnr1/GGt+ic3iJTzQ8Eu3TdM14SawnVUmGE6A==" + "integrity": "sha512-MSjYzcWNOA0ewAHpz0MxpYFvwg6yjy1NG3xteoqz644VCo/RPgnr1/GGt+ic3iJTzQ8Eu3TdM14SawnVUmGE6A==", + "dev": true }, "string-width": { "version": "4.2.3", "resolved": "https://registry.npmjs.org/string-width/-/string-width-4.2.3.tgz", "integrity": "sha512-wKyQRQpjJ0sIp62ErSZdGsjMJWsap5oRNihHhu6G7JVO/9jIB6UyevL+tXuOqrng8j/cxKTWyWUwvSTriiZz/g==", + "dev": true, "requires": { "emoji-regex": "^8.0.0", "is-fullwidth-code-point": "^3.0.0", @@ -20269,6 +17768,7 @@ "version": "7.0.0", "resolved": "https://registry.npmjs.org/wrap-ansi/-/wrap-ansi-7.0.0.tgz", "integrity": "sha512-YVGIj2kamLSTxw6NsZjoBxfSwsn0ycdesmc4p+Q21c5zPuZ1pl+NfxVdxPtdHvmNVOQ6XSYG4AUtyt/Fi7D16Q==", + "dev": true, "requires": { "ansi-styles": "^4.0.0", "string-width": "^4.1.0", @@ -20278,7 +17778,8 @@ "yargs-parser": { "version": "21.1.1", "resolved": "https://registry.npmjs.org/yargs-parser/-/yargs-parser-21.1.1.tgz", - "integrity": "sha512-tVpsJW7DdjecAiFpbIB1e3qxIQsE6NoPc5/eTdrbbIC4h0LVsWhnoa3g+m2HclBIujHzsxZ4VJVA+GUuc2/LBw==" + "integrity": "sha512-tVpsJW7DdjecAiFpbIB1e3qxIQsE6NoPc5/eTdrbbIC4h0LVsWhnoa3g+m2HclBIujHzsxZ4VJVA+GUuc2/LBw==", + "dev": true } } }, @@ -20324,6 +17825,7 @@ "version": "2.10.0", "resolved": "https://registry.npmjs.org/yauzl/-/yauzl-2.10.0.tgz", "integrity": "sha512-p4a9I6X6nu6IhoGmBqAcbJy1mlC4j27vEPZX9F4L4/vZT3Lyq1VkFHw/V/PUcB9Buo+DG3iHkT0x3Qya58zc3g==", + "dev": true, "requires": { "buffer-crc32": "~0.2.3", "fd-slicer": "~1.1.0" @@ -20332,7 +17834,8 @@ "yocto-queue": { "version": "0.1.0", "resolved": "https://registry.npmjs.org/yocto-queue/-/yocto-queue-0.1.0.tgz", - "integrity": "sha512-rVksvsnNCdJ/ohGc6xgPwyN8eheCxsiLM8mxuE/t/mOVqJewPuO1miLpTHQiRgTKCLexL4MeAFVagts7HmNZ2Q==" + "integrity": "sha512-rVksvsnNCdJ/ohGc6xgPwyN8eheCxsiLM8mxuE/t/mOVqJewPuO1miLpTHQiRgTKCLexL4MeAFVagts7HmNZ2Q==", + "dev": true }, "zip-dir": { "version": "2.0.0", diff --git a/package.json b/package.json index c70c9bb6e5..ef06585143 100644 --- a/package.json +++ b/package.json @@ -1,7 +1,7 @@ { - "name": "web-ext", - "version": "8.2.0", - "description": "A command line tool to help build, run, and test web extensions", + "name": "web-ext-run", + "version": "0.2.2", + "description": "A tool to open and run web extensions", "type": "module", "main": "index.js", "exports": { @@ -18,32 +18,23 @@ "npm": ">=8.0.0" }, "engine-strict": true, - "bin": { - "web-ext": "bin/web-ext.js" - }, "scripts": { "build": "node scripts/build", "start": "node scripts/develop", "test": "node scripts/test", "test-coverage": "node scripts/test --coverage", "test-functional": "node scripts/test-functional", - "audit-deps": "node ./scripts/audit-deps", - "changelog": "npx conventional-changelog-cli -p angular -u", - "changelog-lint": "commitlint --from master", - "changelog-lint-from-stdin": "commitlint", - "github-pr-title-lint": "node ./scripts/github-pr-title-lint", - "gen-contributing-toc": "npx doctoc CONTRIBUTING.md", "prettier": "prettier --write '**'", "prettier-ci": "prettier --list-different '**' || (echo '\n\nThis failure means you did not run `npm run prettier-dev` before committing\n\n' && exit 1)", "prettier-dev": "pretty-quick --branch master" }, - "homepage": "https://github.com/mozilla/web-ext", + "homepage": "https://github.com/aklinker1/web-ext-run", "repository": { "type": "git", - "url": "git://github.com/mozilla/web-ext.git" + "url": "git://github.com/aklinker1/web-ext-run.git" }, "bugs": { - "url": "http://github.com/mozilla/web-ext/issues" + "url": "http://github.com/aklinker1/web-ext-run/issues" }, "keywords": [ "web", @@ -60,27 +51,20 @@ "dependencies": { "@babel/runtime": "7.24.7", "@devicefarmer/adbkit": "3.2.6", - "addons-linter": "6.31.1", "bunyan": "1.8.15", - "camelcase": "8.0.0", - "chrome-launcher": "0.15.1", + "chrome-launcher": "1.1.0", "debounce": "1.2.1", - "decamelize": "6.0.0", "es6-error": "4.1.1", "firefox-profile": "4.6.0", "fs-extra": "11.2.0", "fx-runner": "1.4.0", - "https-proxy-agent": "^7.0.0", - "jose": "5.6.3", - "jszip": "3.10.1", "mkdirp": "3.0.1", "multimatch": "6.0.0", "mz": "2.7.0", - "node-fetch": "3.3.2", "node-notifier": "10.0.1", - "open": "9.1.0", "parse-json": "7.1.1", "promise-toolbox": "0.21.0", + "set-value": "4.1.0", "source-map-support": "0.5.21", "strip-bom": "5.0.0", "strip-json-comments": "5.0.1", @@ -88,7 +72,6 @@ "update-notifier": "6.0.2", "watchpack": "2.4.1", "ws": "8.18.0", - "yargs": "17.7.2", "zip-dir": "2.0.0" }, "devDependencies": { diff --git a/scripts/audit-deps.js b/scripts/audit-deps.js deleted file mode 100755 index 15e53cbb7e..0000000000 --- a/scripts/audit-deps.js +++ /dev/null @@ -1,186 +0,0 @@ -#!/usr/bin/env node - -// This nodejs script loads the .nsprc's "exceptions" list (as `nsp check` used to support) and -// and then filters the output of `npm audit --json` to check if any of the security advisories -// detected should be a blocking issue and force the CI job to fail. -// -// We can remove this script if/once npm audit will support this feature natively -// (See https://github.com/npm/npm/issues/20565). - -import shell from 'shelljs'; -import stripJsonComments from 'strip-json-comments'; - -const npmVersion = parseInt( - shell.exec('npm --version', { silent: true }).stdout.split('.')[0], - 10, -); -const npmCmd = npmVersion >= 6 ? 'npm' : 'npx npm@latest'; - -if (npmCmd.startsWith('npx') && !shell.which('npx')) { - shell.echo('Sorry, this script requires npm >= 6 or npx installed globally'); - shell.exit(1); -} - -if (!shell.test('-f', 'package-lock.json')) { - console.log('audit-deps is generating the missing package-lock.json file'); - shell.exec(`${npmCmd} i --package-lock-only`); -} - -// Collect audit results and split them into blocking and ignored issues. -function getNpmAuditJSON() { - const res = shell.exec(`${npmCmd} audit --json`, { silent: true }); - if (res.code !== 0) { - try { - return JSON.parse(res.stdout); - } catch (err) { - console.error('Error parsing npm audit output:', res.stdout); - throw err; - } - } - // npm audit didn't found any security advisories. - return null; -} - -const blockingIssues = []; -const ignoredIssues = []; -let auditReport = getNpmAuditJSON(); - -if (auditReport) { - const cmdres = shell.cat('.nsprc'); - const { exceptions } = JSON.parse(stripJsonComments(cmdres.stdout)); - - if (auditReport.error) { - if (auditReport.error.code === 'ENETUNREACH') { - console.log( - 'npm was not able to reach the api endpoint:', - auditReport.error.summary, - ); - console.log('Retrying...'); - auditReport = getNpmAuditJSON(); - } - - // If the error code is not ENETUNREACH or it fails again after a single retry - // just log the audit error and exit with error code 2. - if (auditReport.error) { - console.error('npm audit error:', auditReport.error); - process.exit(2); - } - } - - if (auditReport.auditReportVersion > 2) { - // Throw a more clear error when a new format that this script does not expect - // has been introduced. - console.error( - 'ERROR: npm audit JSON is using a new format not yet supported.', - '\nPlease file a bug in the github repository and attach the following JSON data sample to it:', - `\n\n${JSON.stringify(auditReport, null, 2)}`, - ); - } else if (auditReport.auditReportVersion === 2) { - // New npm audit json format introduced in npm v8. - for (const vulnerablePackage of Object.keys(auditReport.vulnerabilities)) { - const item = auditReport.vulnerabilities[vulnerablePackage]; - // `item.via` can be either objects or (string) names of vulnerable - // packages in the audit json report. We need to normalize the data so - // that we always deal with a list of objects. - item.via = item.via.reduce((acc, via) => { - const addAdvisoryDetails = (entries, newEntry) => { - if (entries.some((entry) => entry.url === newEntry.url)) { - // The advisory url is already listed, no need to add a new entry. - return; - } - entries.push(newEntry); - }; - - if (typeof via === 'string') { - // Resolve the actual security advisory details recursively. - const recursivelyResolveVia = (currVia) => { - const resolvedVia = auditReport.vulnerabilities[currVia].via; - for (const viaEntry of resolvedVia) { - if (typeof viaEntry === 'string') { - recursivelyResolveVia(viaEntry); - } else { - addAdvisoryDetails(acc, viaEntry); - } - } - }; - - recursivelyResolveVia(via); - } else { - addAdvisoryDetails(acc, via); - } - - return acc; - }, []); - - if (item.via.every((via) => exceptions.includes(via.url))) { - ignoredIssues.push(item); - continue; - } - blockingIssues.push(item); - } - } else { - // Old npm audit json format for npm versions < npm v8 - for (const advId of Object.keys(auditReport.advisories)) { - const adv = auditReport.advisories[advId]; - - if (exceptions.includes(adv.url)) { - ignoredIssues.push(adv); - continue; - } - blockingIssues.push(adv); - } - } -} - -// Reporting. - -function formatAdvisoryV1(adv) { - function formatFinding(desc) { - return `${desc.version}, paths: ${desc.paths.join(', ')}`; - } - const findings = adv.findings - .map(formatFinding) - .map((msg) => ` ${msg}`) - .join('\n'); - return `${adv.module_name} (${adv.url}):\n${findings}`; -} - -function formatAdvisoryV2(adv) { - function formatVia(via) { - return `${via.url}\n ${via.dependency} ${via.range}\n ${via.title}`; - } - const entryVia = adv.via - .map(formatVia) - .map((msg) => ` ${msg}`) - .join('\n'); - const fixAvailable = Boolean(adv.fixAvailable); - const entryDetails = `isDirect: ${adv.isDirect}, severity: ${adv.severity}, fixAvailable: ${fixAvailable}`; - return `${adv.name} (${entryDetails}):\n${entryVia}`; -} - -function formatAdvisory(adv) { - return auditReport.auditReportVersion === 2 - ? formatAdvisoryV2(adv) - : formatAdvisoryV1(adv); -} - -if (ignoredIssues.length > 0) { - console.log( - '\n== audit-deps: ignored security issues (based on .nsprc exceptions)\n', - ); - - for (const adv of ignoredIssues) { - console.log(formatAdvisory(adv)); - } -} - -if (blockingIssues.length > 0) { - console.log('\n== audit-deps: blocking security issues\n'); - - for (const adv of blockingIssues) { - console.log(formatAdvisory(adv)); - } - - // Exit with error if blocking security issues has been found. - process.exit(1); -} diff --git a/scripts/github-pr-title-lint.js b/scripts/github-pr-title-lint.js deleted file mode 100755 index 11122f6f93..0000000000 --- a/scripts/github-pr-title-lint.js +++ /dev/null @@ -1,241 +0,0 @@ -/* eslint max-len: 0 */ - -import https from 'https'; -import { execSync } from 'child_process'; - -import { decode } from 'html-entities'; -import shelljs from 'shelljs'; - -const { - // Set by circleci on pull request jobs, and it contains the entire url, e.g.: - // CIRCLE_PULL_REQUEST='https://github.com/mozilla/web-ext/pull/89' - CIRCLE_PULL_REQUEST, - - // To be set to test changes to the PR title linting by forcing it temporarily - // (the PR #89 linked above is one that is supposed to fail the linting, - // PR #79 title should instead pass the linting checks), e.g. the following - // command can be used to test an expected linting failure: - // - // CIRCLE_PULL_REQUEST='https://github.com/mozilla/web-ext/pull/89' \ - // TEST_FORCE_PR_LINT=1 npm run github-pr-title-lint - TEST_FORCE_PR_LINT, - VERBOSE, -} = process.env; - -const DONT_PANIC_MESSAGE = ` -Don't panic! If the CI job is failing here, please take a look at - - - https://github.com/mozilla/web-ext/blob/master/CONTRIBUTING.md#writing-commit-messages - -and feel free to ask for help from one of the maintainers in a comment; we are here to help ;-) -`; - -function findMergeBase() { - const res = shelljs.exec('git merge-base HEAD origin/master', { - silent: true, - }); - - if (res.code !== 0) { - throw new Error(`findMergeBase Error: ${res.stderr}`); - } - - const baseCommit = res.stdout.trim(); - if (VERBOSE === 'true') { - console.log('DEBUG findMergeBase:', baseCommit); - } - - return baseCommit; -} - -function getGitBranchCommits() { - const baseCommit = findMergeBase(); - const gitCommand = `git rev-list --no-merges HEAD ^${baseCommit}`; - - const res = shelljs.exec(gitCommand, { silent: true }); - - if (res.code !== 0) { - throw new Error(`getGitBranchCommits Error: ${res.stderr}`); - } - - const commits = res.stdout.trim().split('\n'); - if (VERBOSE === 'true') { - console.log('DEBUG getGitBranchCommits:', commits); - } - - return commits; -} - -function getGitCommitMessage(commitSha1) { - const res = shelljs.exec(`git show -s --format=%B ${commitSha1}`, { - silent: true, - }); - - if (res.code !== 0) { - throw new Error(`getGitCommitMessage Error: ${res.stderr}`); - } - - const commitMessage = res.stdout.trim(); - if (VERBOSE === 'true') { - console.log(`DEBUG getGitCommitMessage: "${commitMessage}"`); - } - - return commitMessage; -} - -function getPullRequestTitle() { - return new Promise(function (resolve, reject) { - const pullRequestURL = CIRCLE_PULL_REQUEST; - const pullRequestNumber = pullRequestURL.split('/').pop(); - - if (!/^\d+$/.test(pullRequestNumber)) { - reject( - new Error(`Unable to parse pull request number from ${pullRequestURL}`), - ); - return; - } - - console.log(`Retrieving the pull request title from ${pullRequestURL}\n`); - - var req = https.get( - pullRequestURL, - { - headers: { - 'User-Agent': 'GitHub... your API can be very annoying ;-)', - }, - }, - function (response) { - if (response.statusCode < 200 || response.statusCode > 299) { - reject( - new Error( - `getPullRequestTitle got an unexpected statusCode: ${response.statusCode}`, - ), - ); - return; - } - - response.setEncoding('utf8'); - - var body = ''; - response.on('data', function (data) { - try { - body += data; - - if (VERBOSE === 'true') { - console.log('DEBUG getPullRequestTitle got data:', String(data)); - } - - // Once we get the closing title tag, we can read the pull request title and - // close the http request. - if (body.includes('')) { - response.removeAllListeners('data'); - response.emit('end'); - - var titleStart = body.indexOf(''); - var titleEnd = body.indexOf(''); - - // NOTE: page slice is going to be something like: - // " PR title by author · Pull Request #NUM · mozilla/web-ext · GitHub" - var pageTitleParts = body - .slice(titleStart, titleEnd) - .replace('<title>', '') - .split(' · '); - - // Check that we have really got the title of a real pull request. - var expectedPart1 = `Pull Request #${pullRequestNumber}`; - - if (pageTitleParts[1] === expectedPart1) { - // Remove the "by author" part. - var prTitleEnd = pageTitleParts[0].lastIndexOf(' by '); - resolve(pageTitleParts[0].slice(0, prTitleEnd)); - } else { - if (VERBOSE === 'true') { - console.log('DEBUG getPullRequestTitle response:', body); - } - - reject(new Error('Unable to retrieve the pull request title')); - } - - req.abort(); - } - } catch (err) { - reject(err); - req.abort(); - } - }); - response.on('error', function (err) { - console.error('Failed during pull request title download: ', err); - reject(err); - }); - }, - ); - }).then((message) => { - return decode(message, { level: 'all' }); - }); -} - -function lintMessage(message) { - if (!message) { - throw new Error('Unable to lint an empty message.'); - } - - try { - return execSync('commitlint', { - input: message, - windowsHide: true, - encoding: 'utf-8', - }).trim(); - } catch (e) { - // execSync failure or timeouts. - if (e.error) { - throw e.error; - } - - // commitlint non-zero exit - if (e.status) { - // stderr by default will be output to the parent process' stderr and so we just throw stdout (See - // https://nodejs.org/api/child_process.html#child_process_child_process_execsync_command_options) - throw e.stdout.trim(); - } - } -} - -async function runChangelogLinting() { - try { - const commits = getGitBranchCommits(); - let message; - - if (commits.length === 1 && !TEST_FORCE_PR_LINT) { - console.log( - 'There is only one commit in this pull request,', - 'we are going to check the single commit message...', - ); - message = getGitCommitMessage(commits[0]); - } else { - console.log( - 'There is more than one commit in this pull request,', - 'we are going to check the pull request title...', - ); - - message = await getPullRequestTitle(); - } - - lintMessage(message); - } catch (err) { - var errMessage = `${err.stack || err}`.trim(); - console.error( - `Failures during changelog linting the pull request:\n\n${errMessage}`, - ); - console.log(DONT_PANIC_MESSAGE); - process.exit(1); - } - - console.log('Changelog linting completed successfully.'); -} - -if (CIRCLE_PULL_REQUEST) { - runChangelogLinting(); -} else { - console.log( - 'This isn\'t a "GitHub Pull Request" CI job. Nothing to do here.', - ); -} diff --git a/src/cmd/docs.js b/src/cmd/docs.js deleted file mode 100644 index 21839a1656..0000000000 --- a/src/cmd/docs.js +++ /dev/null @@ -1,18 +0,0 @@ -import open from 'open'; - -import { createLogger } from '../util/logger.js'; - -const log = createLogger(import.meta.url); - -// eslint-disable-next-line max-len -export const url = - 'https://extensionworkshop.com/documentation/develop/getting-started-with-web-ext/'; - -export default async function docs(params, { openUrl = open } = {}) { - try { - await openUrl(url); - } catch (error) { - log.debug(`Encountered an error while opening URL ${url}`, error); - throw error; - } -} diff --git a/src/cmd/index.js b/src/cmd/index.js index 57eddf4edd..e836aed646 100644 --- a/src/cmd/index.js +++ b/src/cmd/index.js @@ -3,34 +3,9 @@ // at the top of the file, but lazily loaded in the (exported) functions. // The latter would slow down start-up by several seconds, as seen in #1302 . -async function build(params, options) { - const { default: runCommand } = await import('./build.js'); - return runCommand(params, options); -} - -async function docs(params, options) { - const { default: runCommand } = await import('./docs.js'); - return runCommand(params, options); -} - -async function dumpConfig(params, options) { - const { default: runCommand } = await import('./dump-config.js'); - return runCommand(params, options); -} - -async function lint(params, options) { - const { default: runCommand } = await import('./lint.js'); - return runCommand(params, options); -} - async function run(params, options) { const { default: runCommand } = await import('./run.js'); return runCommand(params, options); } -async function sign(params, options) { - const { default: runCommand } = await import('./sign.js'); - return runCommand(params, options); -} - -export default { build, docs, dumpConfig, lint, run, sign }; +export default { run }; diff --git a/src/cmd/lint.js b/src/cmd/lint.js deleted file mode 100644 index fa588f384b..0000000000 --- a/src/cmd/lint.js +++ /dev/null @@ -1,53 +0,0 @@ -import { createInstance as defaultLinterCreator } from 'addons-linter'; - -import { createLogger } from '../util/logger.js'; -import { createFileFilter as defaultFileFilterCreator } from '../util/file-filter.js'; - -const log = createLogger(import.meta.url); - -// Lint command types and implementation. - -export default function lint( - { - artifactsDir, - boring, - ignoreFiles, - metadata, - output, - pretty, - privileged, - sourceDir, - selfHosted, - verbose, - warningsAsErrors, - }, - { - createLinter = defaultLinterCreator, - createFileFilter = defaultFileFilterCreator, - shouldExitProgram = true, - } = {}, -) { - const fileFilter = createFileFilter({ sourceDir, ignoreFiles, artifactsDir }); - - const config = { - logLevel: verbose ? 'debug' : 'fatal', - stack: Boolean(verbose), - pretty, - privileged, - warningsAsErrors, - metadata, - output, - boring, - selfHosted, - shouldScanFile: (fileName) => fileFilter.wantFile(fileName), - minManifestVersion: 2, - maxManifestVersion: 3, - // This mimics the first command line argument from yargs, which should be - // the directory to the extension. - _: [sourceDir], - }; - - log.debug(`Running addons-linter on ${sourceDir}`); - const linter = createLinter({ config, runAsBinary: shouldExitProgram }); - return linter.run(); -} diff --git a/src/cmd/run.js b/src/cmd/run.js index be640c8407..3b5ec3671f 100644 --- a/src/cmd/run.js +++ b/src/cmd/run.js @@ -18,12 +18,23 @@ const log = createLogger(import.meta.url); // Run command types and implementation. export default async function run( + config, { + buildExtension = defaultBuildExtension, + desktopNotifications = defaultDesktopNotifications, + firefoxApp = defaultFirefoxApp, + firefoxClient = defaultFirefoxClient, + reloadStrategy = defaultReloadStrategy, + MultiExtensionRunner = DefaultMultiExtensionRunner, + getValidatedManifest = defaultGetValidatedManifest, + } = {}, +) { + const { artifactsDir, browserConsole = false, devtools = false, pref, - firefox, + firefox = config.firefoxBinary, firefoxProfile, profileCreateIfMissing, keepProfileChanges = false, @@ -31,6 +42,7 @@ export default async function run( noInput = false, noReload = false, preInstall = false, + noReloadManagerExtension = false, sourceDir, watchFile, watchIgnored, @@ -48,18 +60,11 @@ export default async function run( firefoxApkComponent, // Chromium CLI options. chromiumBinary, + chromiumPref, chromiumProfile, - }, - { - buildExtension = defaultBuildExtension, - desktopNotifications = defaultDesktopNotifications, - firefoxApp = defaultFirefoxApp, - firefoxClient = defaultFirefoxClient, - reloadStrategy = defaultReloadStrategy, - MultiExtensionRunner = DefaultMultiExtensionRunner, - getValidatedManifest = defaultGetValidatedManifest, - } = {}, -) { + chromiumPort, + } = config; + log.info(`Running web extension from ${sourceDir}`); if (preInstall) { log.info( @@ -80,6 +85,11 @@ export default async function run( // Create an alias for --pref since it has been transformed into an // object containing one or more preferences. const customPrefs = { ...pref }; + + // Create an alias for --chromium-pref since it has been transformed into an + // object containing one or more preferences. + const customChromiumPrefs = { ...chromiumPref }; + const manifestData = await getValidatedManifest(sourceDir); const profileDir = firefoxProfile || chromiumProfile; @@ -187,6 +197,9 @@ export default async function run( ...commonRunnerParams, chromiumBinary, chromiumProfile, + customChromiumPrefs, + chromiumPort, + noReloadManagerExtension, }; const chromiumRunner = await createExtensionRunner({ diff --git a/src/cmd/sign.js b/src/cmd/sign.js deleted file mode 100644 index 4a848131e2..0000000000 --- a/src/cmd/sign.js +++ /dev/null @@ -1,165 +0,0 @@ -import path from 'path'; - -import defaultBuilder from './build.js'; -import { isErrorWithCode, UsageError, WebExtError } from '../errors.js'; -import { prepareArtifactsDir } from '../util/artifacts.js'; -import { createLogger } from '../util/logger.js'; -import getValidatedManifest, { getManifestId } from '../util/manifest.js'; -import { - defaultAsyncFsReadFile, - signAddon as defaultSubmitAddonSigner, -} from '../util/submit-addon.js'; -import { withTempDir } from '../util/temp-dir.js'; - -const log = createLogger(import.meta.url); - -export const extensionIdFile = '.web-extension-id'; -export const uploadUuidFile = '.amo-upload-uuid'; - -// Sign command types and implementation. - -export default function sign( - { - amoBaseUrl, - apiKey, - apiProxy, - apiSecret, - artifactsDir, - ignoreFiles = [], - sourceDir, - timeout, - approvalTimeout, - channel, - amoMetadata, - uploadSourceCode, - webextVersion, - }, - { - build = defaultBuilder, - preValidatedManifest, - submitAddon = defaultSubmitAddonSigner, - asyncFsReadFile = defaultAsyncFsReadFile, - } = {}, -) { - return withTempDir(async function (tmpDir) { - await prepareArtifactsDir(artifactsDir); - - let manifestData; - const savedIdPath = path.join(sourceDir, extensionIdFile); - const savedUploadUuidPath = path.join(sourceDir, uploadUuidFile); - - if (preValidatedManifest) { - manifestData = preValidatedManifest; - } else { - manifestData = await getValidatedManifest(sourceDir); - } - - const [buildResult, idFromSourceDir] = await Promise.all([ - build( - { sourceDir, ignoreFiles, artifactsDir: tmpDir.path() }, - { manifestData, showReadyMessage: false }, - ), - getIdFromFile(savedIdPath), - ]); - - const id = getManifestId(manifestData); - if (idFromSourceDir && !id) { - throw new UsageError( - 'Cannot use previously auto-generated extension ID ' + - `${idFromSourceDir} - This extension ID must be specified in the manifest.json file.`, - ); - } - - if (!id) { - // We only auto-generate add-on IDs for MV2 add-ons on AMO. - if (manifestData.manifest_version !== 2) { - throw new UsageError( - 'An extension ID must be specified in the manifest.json file.', - ); - } - - log.warn( - 'No extension ID specified (it will be auto-generated the first time)', - ); - } - - if (!channel) { - throw new UsageError('You must specify a channel'); - } - - let metaDataJson; - if (amoMetadata) { - const metadataFileBuffer = await asyncFsReadFile(amoMetadata); - try { - metaDataJson = JSON.parse(metadataFileBuffer.toString()); - } catch (err) { - throw new UsageError('Invalid JSON in listing metadata'); - } - } - const userAgentString = `web-ext/${webextVersion}`; - - const signSubmitArgs = { - apiKey, - apiSecret, - apiProxy, - id, - xpiPath: buildResult.extensionPath, - downloadDir: artifactsDir, - channel, - }; - - try { - const result = await submitAddon({ - ...signSubmitArgs, - amoBaseUrl, - channel, - savedIdPath, - savedUploadUuidPath, - metaDataJson, - userAgentString, - validationCheckTimeout: timeout, - approvalCheckTimeout: - approvalTimeout !== undefined ? approvalTimeout : timeout, - submissionSource: uploadSourceCode, - }); - - return result; - } catch (clientError) { - throw new WebExtError(clientError.message); - } - }); -} - -export async function getIdFromFile( - filePath, - asyncFsReadFile = defaultAsyncFsReadFile, -) { - let content; - - try { - content = await asyncFsReadFile(filePath); - } catch (error) { - if (isErrorWithCode('ENOENT', error)) { - log.debug(`No ID file found at: ${filePath}`); - return; - } - throw error; - } - - let lines = content.toString().split('\n'); - lines = lines.filter((line) => { - line = line.trim(); - if (line && !line.startsWith('#')) { - return line; - } - }); - - const id = lines[0]; - log.debug(`Found extension ID ${id} in ${filePath}`); - - if (!id) { - throw new UsageError(`No ID found in extension ID file ${filePath}`); - } - - return id; -} diff --git a/src/config.js b/src/config.js deleted file mode 100644 index f4c62f4195..0000000000 --- a/src/config.js +++ /dev/null @@ -1,243 +0,0 @@ -import os from 'os'; -import path from 'path'; - -import camelCase from 'camelcase'; -import decamelize from 'decamelize'; -import { fs } from 'mz'; -import parseJSON from 'parse-json'; - -import fileExists from './util/file-exists.js'; -import { createLogger } from './util/logger.js'; -import { UsageError, WebExtError } from './errors.js'; - -const log = createLogger(import.meta.url); - -// NOTE: this error message is used in an interpolated string (while the other two help -// messages are being logged as is). -export const WARN_LEGACY_JS_EXT = [ - 'should be renamed to ".cjs" or ".mjs" file extension to ensure its format is not ambiguous.', - 'Config files with the ".js" file extension are deprecated and will not be loaded anymore', - 'in a future web-ext major version.', -].join(' '); - -export const HELP_ERR_MODULE_FROM_ESM = [ - 'This config file belongs to a package.json file with "type" set to "module".', - 'Change the file extension to ".cjs" or rewrite it as an ES module and use the ".mjs" file extension.', -].join(' '); - -export const HELP_ERR_IMPORTEXPORT_CJS = [ - 'This config file is defined as an ES module, but it belongs to either a project directory', - 'with a package.json file with "type" set to "commonjs" or one without any package.json file.', - 'Change the file extension to ".mjs" to fix the config loading error.', -].join(' '); - -const ERR_IMPORT_FROM_CJS = 'Cannot use import statement outside a module'; -const ERR_EXPORT_FROM_CJS = "Unexpected token 'export'"; -const ERR_MODULE_FROM_ESM = 'module is not defined in ES module scope'; - -export function applyConfigToArgv({ - argv, - argvFromCLI, - configObject, - options, - configFileName, -}) { - let newArgv = { ...argv }; - - for (const option of Object.keys(configObject)) { - if (camelCase(option) !== option) { - throw new UsageError( - `The config option "${option}" must be ` + - `specified in camel case: "${camelCase(option)}"`, - ); - } - - // A config option cannot be a sub-command config - // object if it is an array. - if ( - !Array.isArray(configObject[option]) && - typeof options[option] === 'object' && - typeof configObject[option] === 'object' - ) { - // Descend into the nested configuration for a sub-command. - newArgv = applyConfigToArgv({ - argv: newArgv, - argvFromCLI, - configObject: configObject[option], - options: options[option], - configFileName, - }); - continue; - } - - const decamelizedOptName = decamelize(option, { separator: '-' }); - - if (typeof options[decamelizedOptName] !== 'object') { - throw new UsageError( - `The config file at ${configFileName} specified ` + - `an unknown option: "${option}"`, - ); - } - if (options[decamelizedOptName].type === undefined) { - // This means yargs option type wasn't not defined correctly - throw new WebExtError(`Option: ${option} was defined without a type.`); - } - - const expectedType = - options[decamelizedOptName].type === 'count' - ? 'number' - : options[decamelizedOptName].type; - - const optionType = Array.isArray(configObject[option]) - ? 'array' - : typeof configObject[option]; - - if (optionType !== expectedType) { - throw new UsageError( - `The config file at ${configFileName} specified ` + - `the type of "${option}" incorrectly as "${optionType}"` + - ` (expected type "${expectedType}")`, - ); - } - - let defaultValue; - if (options[decamelizedOptName]) { - if (options[decamelizedOptName].default !== undefined) { - defaultValue = options[decamelizedOptName].default; - } else if (expectedType === 'boolean') { - defaultValue = false; - } - } - - // This is our best effort (without patching yargs) to detect - // if a value was set on the CLI instead of in the config. - // It looks for a default value and if the argv value is - // different, it assumes that the value was configured on the CLI. - - const wasValueSetOnCLI = - typeof argvFromCLI[option] !== 'undefined' && - argvFromCLI[option] !== defaultValue; - if (wasValueSetOnCLI) { - log.debug( - `Favoring CLI: ${option}=${argvFromCLI[option]} over ` + - `configuration: ${option}=${configObject[option]}`, - ); - newArgv[option] = argvFromCLI[option]; - continue; - } - - newArgv[option] = configObject[option]; - - const coerce = options[decamelizedOptName].coerce; - if (coerce) { - log.debug(`Calling coerce() on configured value for ${option}`); - newArgv[option] = coerce(newArgv[option]); - } - - newArgv[decamelizedOptName] = newArgv[option]; - } - return newArgv; -} - -export async function loadJSConfigFile(filePath) { - const resolvedFilePath = path.resolve(filePath); - log.debug( - `Loading JS config file: "${filePath}" ` + - `(resolved to "${resolvedFilePath}")`, - ); - if (filePath.endsWith('.js')) { - log.warn(`WARNING: config file ${filePath} ${WARN_LEGACY_JS_EXT}`); - } - let configObject; - try { - const nonce = `${Date.now()}-${Math.random()}`; - let configModule; - if (resolvedFilePath.endsWith('package.json')) { - configModule = parseJSON( - await fs.readFile(resolvedFilePath, { encoding: 'utf-8' }), - ); - } else { - configModule = await import(`file://${resolvedFilePath}?nonce=${nonce}`); - } - - if (configModule.default) { - const { default: configDefault, ...esmConfigMod } = configModule; - // ES modules may expose both a default and named exports and so - // we merge the named exports on top of what may have been set in - // the default export. - configObject = { ...configDefault, ...esmConfigMod }; - } else { - configObject = { ...configModule }; - } - } catch (error) { - log.debug('Handling error:', error); - let errorMessage = error.message; - if (error.message.startsWith(ERR_MODULE_FROM_ESM)) { - errorMessage = HELP_ERR_MODULE_FROM_ESM; - } else if ( - [ERR_IMPORT_FROM_CJS, ERR_EXPORT_FROM_CJS].includes(error.message) - ) { - errorMessage = HELP_ERR_IMPORTEXPORT_CJS; - } - throw new UsageError( - `Cannot read config file: ${resolvedFilePath}\n` + - `Error: ${errorMessage}`, - ); - } - if (filePath.endsWith('package.json')) { - log.debug('Looking for webExt key inside package.json file'); - configObject = configObject.webExt || {}; - } - if (Object.keys(configObject).length === 0) { - log.debug( - `Config file ${resolvedFilePath} did not define any options. ` + - 'Did you set module.exports = {...}?', - ); - } - return configObject; -} - -export async function discoverConfigFiles({ getHomeDir = os.homedir } = {}) { - const magicConfigName = 'web-ext-config'; - - // Config files will be loaded in this order. - const possibleConfigs = [ - // Look for a magic hidden config (preceded by dot) in home dir. - path.join(getHomeDir(), `.${magicConfigName}.mjs`), - path.join(getHomeDir(), `.${magicConfigName}.cjs`), - path.join(getHomeDir(), `.${magicConfigName}.js`), - // Look for webExt key inside package.json file - path.join(process.cwd(), 'package.json'), - // Look for a magic config in the current working directory. - path.join(process.cwd(), `${magicConfigName}.mjs`), - path.join(process.cwd(), `${magicConfigName}.cjs`), - path.join(process.cwd(), `${magicConfigName}.js`), - // Look for a magic hidden config (preceded by dot) the current working directory. - path.join(process.cwd(), `.${magicConfigName}.mjs`), - path.join(process.cwd(), `.${magicConfigName}.cjs`), - path.join(process.cwd(), `.${magicConfigName}.js`), - ]; - - const configs = await Promise.all( - possibleConfigs.map(async (fileName) => { - const resolvedFileName = path.resolve(fileName); - if (await fileExists(resolvedFileName)) { - return resolvedFileName; - } else { - log.debug( - `Discovered config "${resolvedFileName}" does not ` + - 'exist or is not readable', - ); - return undefined; - } - }), - ); - - const existingConfigs = []; - configs.forEach((f) => { - if (typeof f === 'string') { - existingConfigs.push(f); - } - }); - return existingConfigs; -} diff --git a/src/extension-runners/chromium.js b/src/extension-runners/chromium.js index f6337fc181..f97f5c8479 100644 --- a/src/extension-runners/chromium.js +++ b/src/extension-runners/chromium.js @@ -12,6 +12,7 @@ import { launch as defaultChromiumLaunch, } from 'chrome-launcher'; import WebSocket, { WebSocketServer } from 'ws'; +import set from 'set-value'; import { createLogger } from '../util/logger.js'; import { TempDir } from '../util/temp-dir.js'; @@ -20,12 +21,20 @@ import fileExists from '../util/file-exists.js'; const log = createLogger(import.meta.url); -const EXCLUDED_CHROME_FLAGS = ['--disable-extensions', '--mute-audio']; +const EXCLUDED_CHROME_FLAGS = [ + '--disable-extensions', + '--mute-audio', + '--disable-component-update', +]; export const DEFAULT_CHROME_FLAGS = ChromeLauncher.defaultFlags().filter( (flag) => !EXCLUDED_CHROME_FLAGS.includes(flag), ); +const DEFAULT_PREFS = { + 'extensions.ui.developer_mode': true, +}; + /** * Implements an IExtensionRunner which manages a Chromium instance. */ @@ -131,7 +140,9 @@ export class ChromiumExtensionRunner { this.reloadManagerExtension = await this.createReloadManagerExtension(); // Start chrome pointing it to a given profile dir - const extensions = [this.reloadManagerExtension] + const extensions = ( + this.params.noReloadManagerExtension ? [] : [this.reloadManagerExtension] + ) .concat(this.params.extensions.map(({ sourceDir }) => sourceDir)) .join(','); @@ -202,6 +213,12 @@ export class ChromiumExtensionRunner { chromeFlags.push(...startingUrls); } + let port; + if (this.params.chromiumPort && !isNaN(this.params.chromiumPort)) { + port = this.params.chromiumPort; + log.debug(`(port: ${port})`); + } + this.chromiumInstance = await this.chromiumLaunch({ enableExtensions: true, chromePath: chromiumBinary, @@ -210,6 +227,8 @@ export class ChromiumExtensionRunner { userDataDir, // Ignore default flags to keep the extension enabled. ignoreDefaultFlags: true, + prefs: this.getPrefs(), + port, }); this.chromiumInstance.process.once('close', () => { @@ -414,4 +433,18 @@ export class ChromiumExtensionRunner { } } } + + /** + * Returns a deep preferences object based on a set of flat preferences, like + * "extensions.ui.developer_mode". + */ + getPrefs() { + return Object.entries({ + ...DEFAULT_PREFS, + ...(this.params.customChromiumPrefs || {}), + }).reduce((prefs, [key, value]) => { + set(prefs, key, value); + return prefs; + }, {}); + } } diff --git a/src/main.js b/src/main.js index a8fbf0db0c..929d0f8d1f 100644 --- a/src/main.js +++ b/src/main.js @@ -1,6 +1,5 @@ -import { main } from './program.js'; import cmd from './cmd/index.js'; -// This only exposes main and cmd, while util/logger and util/adb are defined as +// This only exposes cmd, while util/logger and util/adb are defined as // separate additional exports in the package.json. -export default { main, cmd }; +export default { cmd }; diff --git a/src/program.js b/src/program.js deleted file mode 100644 index 0e0d5a0c0c..0000000000 --- a/src/program.js +++ /dev/null @@ -1,811 +0,0 @@ -import os from 'os'; -import path from 'path'; -import { readFileSync } from 'fs'; - -import camelCase from 'camelcase'; -import decamelize from 'decamelize'; -import yargs from 'yargs'; -import { Parser as yargsParser } from 'yargs/helpers'; - -import defaultCommands from './cmd/index.js'; -import { UsageError } from './errors.js'; -import { - createLogger, - consoleStream as defaultLogStream, -} from './util/logger.js'; -import { coerceCLICustomPreference } from './firefox/preferences.js'; -import { checkForUpdates as defaultUpdateChecker } from './util/updates.js'; -import { - discoverConfigFiles as defaultConfigDiscovery, - loadJSConfigFile as defaultLoadJSConfigFile, - applyConfigToArgv as defaultApplyConfigToArgv, -} from './config.js'; - -const log = createLogger(import.meta.url); -const envPrefix = 'WEB_EXT'; -// Default to "development" (the value actually assigned will be interpolated -// by babel-plugin-transform-inline-environment-variables). -const defaultGlobalEnv = process.env.WEBEXT_BUILD_ENV || 'development'; - -export const AMO_BASE_URL = 'https://addons.mozilla.org/api/v5/'; - -/* - * The command line program. - */ -export class Program { - absolutePackageDir; - yargs; - commands; - shouldExitProgram; - verboseEnabled; - options; - programArgv; - demandedOptions; - - constructor(argv, { absolutePackageDir = process.cwd() } = {}) { - // This allows us to override the process argv which is useful for - // testing. - // NOTE: process.argv.slice(2) removes the path to node and web-ext - // executables from the process.argv array. - argv = argv || process.argv.slice(2); - this.programArgv = argv; - - // NOTE: always initialize yargs explicitly with the package dir - // to avoid side-effects due to yargs looking for its configuration - // section from a package.json file stored in an arbitrary directory - // (e.g. in tests yargs would end up loading yargs config from the - // mocha package.json). web-ext package.json doesn't contain any yargs - // section as it is deprecated and we configure yargs using - // yargs.parserConfiguration. See web-ext#469 for rationale. - const yargsInstance = yargs(argv, absolutePackageDir); - - this.absolutePackageDir = absolutePackageDir; - this.verboseEnabled = false; - this.shouldExitProgram = true; - - this.yargs = yargsInstance; - this.yargs.parserConfiguration({ - 'boolean-negation': true, - }); - this.yargs.strict(); - this.yargs.wrap(this.yargs.terminalWidth()); - - this.commands = {}; - this.options = {}; - } - - command(name, description, executor, commandOptions = {}) { - this.options[camelCase(name)] = commandOptions; - - this.yargs.command(name, description, (yargsForCmd) => { - if (!commandOptions) { - return; - } - return ( - yargsForCmd - // Make sure the user does not add any extra commands. For example, - // this would be a mistake because lint does not accept arguments: - // web-ext lint ./src/path/to/file.js - .demandCommand( - 0, - 0, - undefined, - 'This command does not take any arguments', - ) - .strict() - .exitProcess(this.shouldExitProgram) - // Calling env() will be unnecessary after - // https://github.com/yargs/yargs/issues/486 is fixed - .env(envPrefix) - .options(commandOptions) - ); - }); - this.commands[name] = executor; - return this; - } - - setGlobalOptions(options) { - // This is a convenience for setting global options. - // An option is only global (i.e. available to all sub commands) - // with the `global` flag so this makes sure every option has it. - this.options = { ...this.options, ...options }; - Object.keys(options).forEach((key) => { - options[key].global = true; - if (options[key].demandOption === undefined) { - // By default, all options should be "demanded" otherwise - // yargs.strict() will think they are missing when declared. - options[key].demandOption = true; - } - }); - this.yargs.options(options); - return this; - } - - enableVerboseMode(logStream, version) { - if (this.verboseEnabled) { - return; - } - - logStream.makeVerbose(); - log.info('Version:', version); - this.verboseEnabled = true; - } - - // Retrieve the yargs argv object and apply any further fix needed - // on the output of the yargs options parsing. - getArguments() { - // To support looking up required parameters via config files, we need to - // temporarily disable the requiredArguments validation. Otherwise yargs - // would exit early. Validation is enforced by the checkRequiredArguments() - // method, after reading configuration files. - // - // This is an undocumented internal API of yargs! Unit tests to avoid - // regressions are located at: tests/functional/test.cli.sign.js - // - // Replace hack if possible: https://github.com/mozilla/web-ext/issues/1930 - const validationInstance = this.yargs - .getInternalMethods() - .getValidationInstance(); - const { requiredArguments } = validationInstance; - // Initialize demandedOptions (which is going to be set to an object with one - // property for each mandatory global options, then the arrow function below - // will receive as its demandedOptions parameter a new one that also includes - // all mandatory options for the sub command selected). - this.demandedOptions = this.yargs.getDemandedOptions(); - validationInstance.requiredArguments = (args, demandedOptions) => { - this.demandedOptions = demandedOptions; - }; - let argv; - try { - argv = this.yargs.argv; - } catch (err) { - if ( - err.name === 'YError' && - err.message.startsWith('Unknown argument: ') - ) { - throw new UsageError(err.message); - } - throw err; - } - validationInstance.requiredArguments = requiredArguments; - - // Yargs boolean options doesn't define the no* counterpart - // with negate-boolean on Yargs 15. Define as expected by the - // web-ext execute method. - if (argv.configDiscovery != null) { - argv.noConfigDiscovery = !argv.configDiscovery; - } - if (argv.reload != null) { - argv.noReload = !argv.reload; - } - - // Yargs doesn't accept --no-input as a valid option if there isn't a - // --input option defined to be negated, to fix that the --input is - // defined and hidden from the yargs help output and we define here - // the negated argument name that we expect to be set in the parsed - // arguments (and fix https://github.com/mozilla/web-ext/issues/1860). - if (argv.input != null) { - argv.noInput = !argv.input; - } - - // Replacement for the "requiresArg: true" parameter until the following bug - // is fixed: https://github.com/yargs/yargs/issues/1098 - if (argv.ignoreFiles && !argv.ignoreFiles.length) { - throw new UsageError('Not enough arguments following: ignore-files'); - } - - if (argv.startUrl && !argv.startUrl.length) { - throw new UsageError('Not enough arguments following: start-url'); - } - - return argv; - } - - // getArguments() disables validation of required parameters, to allow us to - // read parameters from config files first. Before the program continues, it - // must call checkRequiredArguments() to ensure that required parameters are - // defined (in the CLI or in a config file). - checkRequiredArguments(adjustedArgv) { - const validationInstance = this.yargs - .getInternalMethods() - .getValidationInstance(); - validationInstance.requiredArguments(adjustedArgv, this.demandedOptions); - } - - // Remove WEB_EXT_* environment vars that are not a global cli options - // or an option supported by the current command (See #793). - cleanupProcessEnvConfigs(systemProcess) { - const cmd = yargsParser(this.programArgv)._[0]; - const env = systemProcess.env || {}; - const toOptionKey = (k) => - decamelize(camelCase(k.replace(envPrefix, '')), { separator: '-' }); - - if (cmd) { - Object.keys(env) - .filter((k) => k.startsWith(envPrefix)) - .forEach((k) => { - const optKey = toOptionKey(k); - const globalOpt = this.options[optKey]; - const cmdOpt = this.options[cmd] && this.options[cmd][optKey]; - - if (!globalOpt && !cmdOpt) { - log.debug(`Environment ${k} not supported by web-ext ${cmd}`); - delete env[k]; - } - }); - } - } - - async execute({ - checkForUpdates = defaultUpdateChecker, - systemProcess = process, - logStream = defaultLogStream, - getVersion = defaultVersionGetter, - applyConfigToArgv = defaultApplyConfigToArgv, - discoverConfigFiles = defaultConfigDiscovery, - loadJSConfigFile = defaultLoadJSConfigFile, - shouldExitProgram = true, - globalEnv = defaultGlobalEnv, - } = {}) { - this.shouldExitProgram = shouldExitProgram; - this.yargs.exitProcess(this.shouldExitProgram); - - this.cleanupProcessEnvConfigs(systemProcess); - const argv = this.getArguments(); - - const cmd = argv._[0]; - - const version = await getVersion(this.absolutePackageDir); - const runCommand = this.commands[cmd]; - - if (argv.verbose) { - this.enableVerboseMode(logStream, version); - } - - let adjustedArgv = { ...argv, webextVersion: version }; - - try { - if (cmd === undefined) { - throw new UsageError('No sub-command was specified in the args'); - } - if (!runCommand) { - throw new UsageError(`Unknown command: ${cmd}`); - } - if (globalEnv === 'production') { - checkForUpdates({ version }); - } - - const configFiles = []; - - if (argv.configDiscovery) { - log.debug( - 'Discovering config files. ' + 'Set --no-config-discovery to disable', - ); - const discoveredConfigs = await discoverConfigFiles(); - configFiles.push(...discoveredConfigs); - } else { - log.debug('Not discovering config files'); - } - - if (argv.config) { - configFiles.push(path.resolve(argv.config)); - } - - if (configFiles.length) { - const niceFileList = configFiles - .map((f) => f.replace(process.cwd(), '.')) - .map((f) => f.replace(os.homedir(), '~')) - .join(', '); - log.debug( - 'Applying config file' + - `${configFiles.length !== 1 ? 's' : ''}: ` + - `${niceFileList}`, - ); - } - - for (const configFileName of configFiles) { - const configObject = await loadJSConfigFile(configFileName); - adjustedArgv = applyConfigToArgv({ - argv: adjustedArgv, - argvFromCLI: argv, - configFileName, - configObject, - options: this.options, - }); - } - - if (adjustedArgv.verbose) { - // Ensure that the verbose is enabled when specified in a config file. - this.enableVerboseMode(logStream, version); - } - - this.checkRequiredArguments(adjustedArgv); - - await runCommand(adjustedArgv, { shouldExitProgram }); - } catch (error) { - if (!(error instanceof UsageError) || adjustedArgv.verbose) { - log.error(`\n${error.stack}\n`); - } else { - log.error(`\n${String(error)}\n`); - } - if (error.code) { - log.error(`Error code: ${error.code}\n`); - } - - log.debug(`Command executed: ${cmd}`); - - if (this.shouldExitProgram) { - systemProcess.exit(1); - } else { - throw error; - } - } - } -} - -//A definition of type of argument for defaultVersionGetter - -export async function defaultVersionGetter( - absolutePackageDir, - { globalEnv = defaultGlobalEnv } = {}, -) { - if (globalEnv === 'production') { - log.debug('Getting the version from package.json'); - const packageData = readFileSync( - path.join(absolutePackageDir, 'package.json'), - ); - return JSON.parse(packageData).version; - } else { - log.debug('Getting version from the git revision'); - // This branch is only reached during development. - // git-rev-sync is in devDependencies, and lazily imported using require. - // This also avoids logspam from https://github.com/mozilla/web-ext/issues/1916 - // eslint-disable-next-line import/no-extraneous-dependencies - const git = await import('git-rev-sync'); - return `${git.branch(absolutePackageDir)}-${git.long(absolutePackageDir)}`; - } -} - -export function throwUsageErrorIfArray(errorMessage) { - return (value) => { - if (Array.isArray(value)) { - throw new UsageError(errorMessage); - } - return value; - }; -} - -export async function main( - absolutePackageDir, - { - getVersion = defaultVersionGetter, - commands = defaultCommands, - argv, - runOptions = {}, - } = {}, -) { - const program = new Program(argv, { absolutePackageDir }); - const version = await getVersion(absolutePackageDir); - - // yargs uses magic camel case expansion to expose options on the - // final argv object. For example, the 'artifacts-dir' option is alternatively - // available as argv.artifactsDir. - program.yargs - .usage( - `Usage: $0 [options] command - -Option values can also be set by declaring an environment variable prefixed -with $${envPrefix}_. For example: $${envPrefix}_SOURCE_DIR=/path is the same as ---source-dir=/path. - -To view specific help for any given command, add the command name. -Example: $0 --help run. -`, - ) - .help('help') - .alias('h', 'help') - .env(envPrefix) - .version(version) - .demandCommand(1, 'You must specify a command') - .strict() - .recommendCommands(); - - program.setGlobalOptions({ - 'source-dir': { - alias: 's', - describe: 'Web extension source directory.', - default: process.cwd(), - requiresArg: true, - type: 'string', - coerce: (arg) => (arg != null ? path.resolve(arg) : undefined), - }, - 'artifacts-dir': { - alias: 'a', - describe: 'Directory where artifacts will be saved.', - default: path.join(process.cwd(), 'web-ext-artifacts'), - normalize: true, - requiresArg: true, - type: 'string', - }, - verbose: { - alias: 'v', - describe: 'Show verbose output', - type: 'boolean', - demandOption: false, - }, - 'ignore-files': { - alias: 'i', - describe: - 'A list of glob patterns to define which files should be ' + - 'ignored. (Example: --ignore-files=path/to/first.js ' + - 'path/to/second.js "**/*.log")', - demandOption: false, - // The following option prevents yargs>=11 from parsing multiple values, - // so the minimum value requirement is enforced in execute instead. - // Upstream bug: https://github.com/yargs/yargs/issues/1098 - // requiresArg: true, - type: 'array', - }, - 'no-input': { - describe: 'Disable all features that require standard input', - type: 'boolean', - demandOption: false, - }, - input: { - // This option is defined to make yargs to accept the --no-input - // defined above, but we hide it from the yargs help output. - hidden: true, - type: 'boolean', - demandOption: false, - }, - config: { - alias: 'c', - describe: 'Path to a CommonJS config file to set ' + 'option defaults', - default: undefined, - demandOption: false, - requiresArg: true, - type: 'string', - }, - 'config-discovery': { - describe: - 'Discover config files in home directory and ' + - 'working directory. Disable with --no-config-discovery.', - demandOption: false, - default: true, - type: 'boolean', - }, - }); - - program - .command( - 'build', - 'Create an extension package from source', - commands.build, - { - 'as-needed': { - describe: 'Watch for file changes and re-build as needed', - type: 'boolean', - }, - filename: { - alias: 'n', - describe: 'Name of the created extension package file.', - default: undefined, - normalize: false, - demandOption: false, - requiresArg: true, - type: 'string', - coerce: (arg) => - arg == null - ? undefined - : throwUsageErrorIfArray( - 'Multiple --filename/-n option are not allowed', - )(arg), - }, - 'overwrite-dest': { - alias: 'o', - describe: 'Overwrite destination package if it exists.', - type: 'boolean', - }, - }, - ) - .command( - 'dump-config', - 'Run config discovery and dump the resulting config data as JSON', - commands.dumpConfig, - {}, - ) - .command( - 'sign', - 'Sign the extension so it can be installed in Firefox', - commands.sign, - { - 'amo-base-url': { - describe: 'Submission API URL prefix', - default: AMO_BASE_URL, - demandOption: true, - type: 'string', - }, - 'api-key': { - describe: 'API key (JWT issuer) from addons.mozilla.org', - demandOption: true, - type: 'string', - }, - 'api-secret': { - describe: 'API secret (JWT secret) from addons.mozilla.org', - demandOption: true, - type: 'string', - }, - 'api-proxy': { - describe: - 'Use a proxy to access the signing API. ' + - 'Example: https://yourproxy:6000 ', - demandOption: false, - type: 'string', - }, - timeout: { - describe: 'Number of milliseconds to wait before giving up', - type: 'number', - }, - 'approval-timeout': { - describe: - 'Number of milliseconds to wait for approval before giving up. ' + - 'Set to 0 to disable waiting for approval. Fallback to `timeout` if not set.', - type: 'number', - }, - channel: { - describe: - "The channel for which to sign the addon. Either 'listed' or 'unlisted'.", - demandOption: true, - type: 'string', - }, - 'amo-metadata': { - describe: - 'Path to a JSON file containing an object with metadata to be passed to the API. ' + - 'See https://addons-server.readthedocs.io/en/latest/topics/api/addons.html for details.', - type: 'string', - }, - 'upload-source-code': { - describe: - 'Path to an archive file containing human readable source code of this submission, ' + - 'if the code in --source-dir has been processed to make it unreadable. ' + - 'See https://extensionworkshop.com/documentation/publish/source-code-submission/ for ' + - 'details.', - type: 'string', - }, - }, - ) - .command('run', 'Run the extension', commands.run, { - target: { - alias: 't', - describe: - 'The extensions runners to enable. Specify this option ' + - 'multiple times to run against multiple targets.', - default: 'firefox-desktop', - demandOption: false, - type: 'array', - choices: ['firefox-desktop', 'firefox-android', 'chromium'], - }, - firefox: { - alias: ['f', 'firefox-binary'], - describe: - 'Path or alias to a Firefox executable such as firefox-bin ' + - 'or firefox.exe. ' + - 'If not specified, the default Firefox will be used. ' + - 'You can specify the following aliases in lieu of a path: ' + - 'firefox, beta, nightly, firefoxdeveloperedition (or deved). ' + - 'For Flatpak, use `flatpak:org.mozilla.firefox` where ' + - '`org.mozilla.firefox` is the application ID.', - demandOption: false, - type: 'string', - }, - 'firefox-profile': { - alias: 'p', - describe: - 'Run Firefox using a copy of this profile. The profile ' + - 'can be specified as a directory or a name, such as one ' + - 'you would see in the Profile Manager. If not specified, ' + - 'a new temporary profile will be created.', - demandOption: false, - type: 'string', - }, - 'chromium-binary': { - describe: - 'Path or alias to a Chromium executable such as ' + - 'google-chrome, google-chrome.exe or opera.exe etc. ' + - 'If not specified, the default Google Chrome will be used.', - demandOption: false, - type: 'string', - }, - 'chromium-profile': { - describe: 'Path to a custom Chromium profile', - demandOption: false, - type: 'string', - }, - 'profile-create-if-missing': { - describe: 'Create the profile directory if it does not already exist', - demandOption: false, - type: 'boolean', - }, - 'keep-profile-changes': { - describe: - 'Run Firefox directly in custom profile. Any changes to ' + - 'the profile will be saved.', - demandOption: false, - type: 'boolean', - }, - reload: { - describe: - 'Reload the extension when source files change.' + - 'Disable with --no-reload.', - demandOption: false, - default: true, - type: 'boolean', - }, - 'watch-file': { - alias: ['watch-files'], - describe: - 'Reload the extension only when the contents of this' + - ' file changes. This is useful if you use a custom' + - ' build process for your extension', - demandOption: false, - type: 'array', - }, - 'watch-ignored': { - describe: - 'Paths and globs patterns that should not be ' + - 'watched for changes. This is useful if you want ' + - 'to explicitly prevent web-ext from watching part ' + - 'of the extension directory tree, ' + - 'e.g. the node_modules folder.', - demandOption: false, - type: 'array', - }, - 'pre-install': { - describe: - 'Pre-install the extension into the profile before ' + - 'startup. This is only needed to support older versions ' + - 'of Firefox.', - demandOption: false, - type: 'boolean', - }, - pref: { - describe: - 'Launch firefox with a custom preference ' + - '(example: --pref=general.useragent.locale=fr-FR). ' + - 'You can repeat this option to set more than one ' + - 'preference.', - demandOption: false, - requiresArg: true, - type: 'array', - coerce: (arg) => - arg != null ? coerceCLICustomPreference(arg) : undefined, - }, - 'start-url': { - alias: ['u', 'url'], - describe: 'Launch firefox at specified page', - demandOption: false, - type: 'array', - }, - devtools: { - describe: - 'Open the DevTools for the installed add-on ' + - '(Firefox 106 and later)', - demandOption: false, - type: 'boolean', - }, - 'browser-console': { - alias: ['bc'], - describe: 'Open the DevTools Browser Console.', - demandOption: false, - type: 'boolean', - }, - args: { - alias: ['arg'], - describe: 'Additional CLI options passed to the Browser binary', - demandOption: false, - type: 'array', - }, - // Firefox for Android CLI options. - 'adb-bin': { - describe: 'Specify a custom path to the adb binary', - demandOption: false, - type: 'string', - requiresArg: true, - }, - 'adb-host': { - describe: 'Connect to adb on the specified host', - demandOption: false, - type: 'string', - requiresArg: true, - }, - 'adb-port': { - describe: 'Connect to adb on the specified port', - demandOption: false, - type: 'string', - requiresArg: true, - }, - 'adb-device': { - alias: ['android-device'], - describe: 'Connect to the specified adb device name', - demandOption: false, - type: 'string', - requiresArg: true, - }, - 'adb-discovery-timeout': { - describe: 'Number of milliseconds to wait before giving up', - demandOption: false, - type: 'number', - requiresArg: true, - }, - 'adb-remove-old-artifacts': { - describe: 'Remove old artifacts directories from the adb device', - demandOption: false, - type: 'boolean', - }, - 'firefox-apk': { - describe: - 'Run a specific Firefox for Android APK. ' + - 'Example: org.mozilla.fennec_aurora', - demandOption: false, - type: 'string', - requiresArg: true, - }, - 'firefox-apk-component': { - describe: - 'Run a specific Android Component (defaults to <firefox-apk>/.App)', - demandOption: false, - type: 'string', - requiresArg: true, - }, - }) - .command('lint', 'Validate the extension source', commands.lint, { - output: { - alias: 'o', - describe: 'The type of output to generate', - type: 'string', - default: 'text', - choices: ['json', 'text'], - }, - metadata: { - describe: 'Output only metadata as JSON', - type: 'boolean', - default: false, - }, - 'warnings-as-errors': { - describe: 'Treat warnings as errors by exiting non-zero for warnings', - alias: 'w', - type: 'boolean', - default: false, - }, - pretty: { - describe: 'Prettify JSON output', - type: 'boolean', - default: false, - }, - privileged: { - describe: 'Treat your extension as a privileged extension', - type: 'boolean', - default: false, - }, - 'self-hosted': { - describe: - 'Your extension will be self-hosted. This disables messages ' + - 'related to hosting on addons.mozilla.org.', - type: 'boolean', - default: false, - }, - boring: { - describe: 'Disables colorful shell output', - type: 'boolean', - default: false, - }, - }) - .command( - 'docs', - 'Open the web-ext documentation in a browser', - commands.docs, - {}, - ); - - return program.execute({ getVersion, ...runOptions }); -} diff --git a/src/util/submit-addon.js b/src/util/submit-addon.js deleted file mode 100644 index fd72d8aba7..0000000000 --- a/src/util/submit-addon.js +++ /dev/null @@ -1,564 +0,0 @@ -import { createHash } from 'crypto'; -import { createWriteStream, promises as fsPromises } from 'fs'; -import { promises as streamPromises } from 'stream'; - -// eslint-disable-next-line no-shadow -import fetch, { FormData, fileFromSync } from 'node-fetch'; -import { SignJWT } from 'jose'; -import JSZip from 'jszip'; -import { HttpsProxyAgent } from 'https-proxy-agent'; - -import { isErrorWithCode } from '../errors.js'; -import { createLogger } from './../util/logger.js'; - -const log = createLogger(import.meta.url); - -export const defaultAsyncFsReadFile = fsPromises.readFile; - -export class JwtApiAuth { - #apiKey; - #apiSecret; - #apiJwtExpiresIn; - - constructor({ - apiKey, - apiSecret, - apiJwtExpiresIn = 60 * 5, // 5 minutes - }) { - this.#apiKey = apiKey; - this.#apiSecret = apiSecret; - this.#apiJwtExpiresIn = apiJwtExpiresIn; - } - - async signJWT() { - return ( - new SignJWT({ iss: this.#apiKey }) - .setProtectedHeader({ alg: 'HS256' }) - .setIssuedAt() - // jose expects either: - // a number, which is treated an absolute timestamp - so must be after now, or - // a string, which is parsed as a relative time from now. - .setExpirationTime(`${this.#apiJwtExpiresIn}seconds`) - .sign(Uint8Array.from(Buffer.from(this.#apiSecret, 'utf8'))) - ); - } - - async getAuthHeader() { - const authToken = await this.signJWT(); - return `JWT ${authToken}`; - } -} - -export default class Client { - apiAuth; - apiProxy; - apiUr; - validationCheckInterval; - validationCheckTimeout; - approvalCheckInterval; - approvalCheckTimeout; - downloadDir; - userAgentString; - - constructor({ - apiAuth, - apiProxy, - baseUrl, - validationCheckInterval = 1000, - validationCheckTimeout = 300000, // 5 minutes. - approvalCheckInterval = 1000, - approvalCheckTimeout = 900000, // 15 minutes. - downloadDir = process.cwd(), - userAgentString, - }) { - this.apiAuth = apiAuth; - if (apiProxy) { - this.apiProxy = apiProxy; - } - if (!baseUrl.pathname.endsWith('/')) { - baseUrl = new URL(baseUrl.href); - baseUrl.pathname += '/'; - } - this.apiUrl = new URL('addons/', baseUrl); - this.validationCheckInterval = validationCheckInterval; - this.validationCheckTimeout = validationCheckTimeout; - this.approvalCheckInterval = approvalCheckInterval; - this.approvalCheckTimeout = approvalCheckTimeout; - this.downloadDir = downloadDir; - this.userAgentString = userAgentString; - } - - fileFromSync(path) { - return fileFromSync(path); - } - - nodeFetch(url, { method, headers, body, agent }) { - return fetch(url, { method, headers, body, agent }); - } - - async doUploadSubmit(xpiPath, channel) { - const url = new URL('upload/', this.apiUrl); - const formData = new FormData(); - formData.set('channel', channel); - formData.set('upload', this.fileFromSync(xpiPath)); - const { uuid } = await this.fetchJson( - url, - 'POST', - formData, - 'Upload failed', - ); - return this.waitForValidation(uuid); - } - - waitRetry( - successFunc, - checkUrl, - checkInterval, - abortInterval, - context, - editUrl = null, - ) { - let checkTimeout; - - return new Promise((resolve, reject) => { - const abortTimeout = setTimeout(() => { - clearTimeout(checkTimeout); - - let errorMessage = `${context}: timeout exceeded.`; - if (editUrl) { - errorMessage += ` When approved the signed XPI file can be downloaded from ${editUrl}`; - } - - reject(new Error(errorMessage)); - }, abortInterval); - - const pollStatus = async () => { - try { - const responseData = await this.fetchJson( - checkUrl, - 'GET', - undefined, - 'Getting details failed', - ); - - const success = successFunc(responseData); - if (success) { - clearTimeout(abortTimeout); - resolve(success); - } else { - // Still in progress, so wait for a while and try again. - checkTimeout = setTimeout(pollStatus, checkInterval); - } - } catch (err) { - clearTimeout(abortTimeout); - reject(err); - } - }; - - pollStatus(); - }); - } - - waitForValidation(uuid) { - log.info('Waiting for validation...'); - return this.waitRetry( - (detailResponseData) => { - if (!detailResponseData.processed) { - return null; - } - - log.debug('Validation results:', detailResponseData.validation); - if (detailResponseData.valid) { - return detailResponseData.uuid; - } - - throw new Error( - [ - 'Validation failed:\n', - JSON.stringify(detailResponseData.validation, null, 2), - ].join(''), - ); - }, - new URL(`upload/${uuid}/`, this.apiUrl), - this.validationCheckInterval, - this.validationCheckTimeout, - 'Validation', - ); - } - - async doNewAddonSubmit(uuid, metaDataJson) { - const url = new URL('addon/', this.apiUrl); - const jsonData = { - ...metaDataJson, - version: { upload: uuid, ...metaDataJson.version }, - }; - return this.fetchJson( - url, - 'POST', - JSON.stringify(jsonData), - 'Submission failed (1)', - ); - } - - doNewAddonOrVersionSubmit(addonId, uuid, metaDataJson) { - const url = new URL(`addon/${addonId}/`, this.apiUrl); - const jsonData = { - ...metaDataJson, - version: { upload: uuid, ...metaDataJson.version }, - }; - return this.fetchJson( - url, - 'PUT', - JSON.stringify(jsonData), - 'Submission failed (2)', - ); - } - - async doFormDataPatch(data, addonId, versionId) { - const patchUrl = new URL( - `addon/${addonId}/versions/${versionId}/`, - this.apiUrl, - ); - try { - const formData = new FormData(); - for (const field in data) { - formData.set(field, data[field]); - } - - const response = await this.fetch(patchUrl, 'PATCH', formData); - if (!response.ok) { - throw new Error(`response status was ${response.status}`); - } - } catch (error) { - log.warn(`Upload of ${Object.keys(data)} failed: ${error}.`); - throw new Error(`Uploading ${Object.keys(data)} failed`); - } - } - - async doAfterSubmit(addonId, newVersionId, editUrl, patchData) { - if (patchData && patchData.version) { - log.info(`Submitting ${Object.keys(patchData.version)} to version`); - await this.doFormDataPatch(patchData.version, addonId, newVersionId); - } - - if (this.approvalCheckTimeout === 0) { - log.info( - [ - 'Waiting for approval and download of signed XPI skipped.', - `When approved the signed XPI file can be downloaded from ${editUrl}`, - ].join(' '), - ); - return this.returnResult(addonId); - } - - const fileUrl = new URL( - await this.waitForApproval(addonId, newVersionId, editUrl), - ); - return this.downloadSignedFile(fileUrl, addonId); - } - - waitForApproval(addonId, versionId, editUrl) { - log.info('Waiting for approval...'); - return this.waitRetry( - (detailResponseData) => { - const { file } = detailResponseData; - if (file && file.status === 'public') { - return file.url; - } - - return null; - }, - new URL(`addon/${addonId}/versions/${versionId}/`, this.apiUrl), - this.approvalCheckInterval, - this.approvalCheckTimeout, - 'Approval', - editUrl, - ); - } - - async fetchJson(url, method = 'GET', body, errorMsg = 'Bad Request') { - const response = await this.fetch(url, method, body); - if (response.status < 200 || response.status >= 500) { - throw new Error( - `${errorMsg}: ${response.statusText || response.status}.`, - ); - } - const data = await response.json(); - - if (!response.ok) { - throw new Error( - [ - `${errorMsg}: ${response.statusText || response.status}`, - JSON.stringify(data, null, 2), - ].join('\n'), - ); - } - return data; - } - - async fetch(url, method = 'GET', body) { - log.debug(`${method}ing URL: ${url.href}`); - let headers = { - Authorization: await this.apiAuth.getAuthHeader(), - Accept: 'application/json', - 'User-Agent': this.userAgentString, - }; - if (typeof body === 'string') { - headers = { - ...headers, - 'Content-Type': 'application/json', - }; - } - let agent; - if (this.apiProxy) { - agent = new HttpsProxyAgent(this.apiProxy); - } - return this.nodeFetch(url, { method, body, headers, agent }); - } - - returnResult(addonId, downloadedFiles) { - return { - id: addonId, - downloadedFiles, - }; - } - - async downloadSignedFile(fileUrl, addonId) { - const filename = fileUrl.pathname.split('/').pop(); // get the name from fileUrl - const dest = `${this.downloadDir}/${filename}`; - try { - const response = await this.fetch(fileUrl); - if (!response.ok || !response.body) { - throw new Error(`response status was ${response.status}`); - } - await this.saveToFile(response.body, dest); - } catch (error) { - log.info(`Download of signed xpi failed: ${error}.`); - throw new Error(`Downloading ${filename} failed`); - } - log.info(`Signed xpi downloaded: ${dest}`); - return this.returnResult(addonId, [filename]); - } - - async saveToFile(contents, destPath) { - return streamPromises.pipeline(contents, createWriteStream(destPath)); - } - - /* - This function aims to quickly hash the contents of the zip file that's being uploaded, - to compare it to the previous zip file that was uploaded, so we can skip the upload for - efficiency. - - CRCs are used from the zip to avoid having to extract and hash all the files. - - Two zips that have different byte contents in their files must have a different hash; - but returning a different hash when the contents are the same in some cases is acceptable - - a false mismatch does not result in lost data. - */ - async hashXpiCrcs(filePath, asyncFsReadFile = defaultAsyncFsReadFile) { - const zip = await JSZip.loadAsync( - asyncFsReadFile(filePath, { createFolders: true }), - ); - const hash = createHash('sha256'); - const entries = []; - zip.forEach((relativePath, entry) => { - let path = relativePath.replace(/\/+$/, ''); - if (entry.dir) { - path += '/'; - } - // if the file is 0 bytes or a dir `_data` is missing so assume crc is 0 - entries.push({ path, crc32: entry._data?.crc32 || 0 }); - }); - entries.sort((a, b) => (a.path === b.path ? 0 : a.path > b.path ? 1 : -1)); - hash.update(JSON.stringify(entries)); - return hash.digest('hex'); - } - - async getPreviousUuidOrUploadXpi( - xpiPath, - channel, - savedUploadUuidPath, - saveUploadUuidToFileFunc = saveUploadUuidToFile, - getUploadUuidFromFileFunc = getUploadUuidFromFile, - ) { - const [ - { - uploadUuid: previousUuid, - channel: previousChannel, - xpiCrcHash: previousHash, - }, - xpiCrcHash, - ] = await Promise.all([ - getUploadUuidFromFileFunc(savedUploadUuidPath), - this.hashXpiCrcs(xpiPath), - ]); - - let uploadUuid; - if (previousChannel !== channel || xpiCrcHash !== previousHash) { - uploadUuid = await this.doUploadSubmit(xpiPath, channel); - await saveUploadUuidToFileFunc(savedUploadUuidPath, { - uploadUuid, - channel, - xpiCrcHash, - }); - } else { - uploadUuid = previousUuid; - } - return uploadUuid; - } - - async postNewAddon( - uploadUuid, - savedIdPath, - metaDataJson, - patchData, - saveIdToFileFunc = saveIdToFile, - ) { - const { - guid: addonId, - version: { id: newVersionId, edit_url: editUrl }, - } = await this.doNewAddonSubmit(uploadUuid, metaDataJson); - - await saveIdToFileFunc(savedIdPath, addonId); - log.info(`Generated extension ID: ${addonId}.`); - log.info('You must add the following to your manifest:'); - log.info(`"browser_specific_settings": {"gecko": {"id": "${addonId}"}}`); - - return this.doAfterSubmit(addonId, newVersionId, editUrl, patchData); - } - - async putVersion(uploadUuid, addonId, metaDataJson, patchData) { - const { - version: { id: newVersionId, edit_url: editUrl }, - } = await this.doNewAddonOrVersionSubmit(addonId, uploadUuid, metaDataJson); - - return this.doAfterSubmit(addonId, newVersionId, editUrl, patchData); - } -} - -export async function signAddon({ - apiKey, - apiSecret, - apiProxy, - amoBaseUrl, - validationCheckTimeout, - approvalCheckTimeout, - id, - xpiPath, - downloadDir, - channel, - savedIdPath, - savedUploadUuidPath, - metaDataJson = {}, - submissionSource, - userAgentString, - SubmitClient = Client, - ApiAuthClass = JwtApiAuth, -}) { - try { - const stats = await fsPromises.stat(xpiPath); - - if (!stats.isFile()) { - throw new Error('not a file'); - } - } catch (statError) { - throw new Error(`error with ${xpiPath}: ${statError}`); - } - - let baseUrl; - try { - baseUrl = new URL(amoBaseUrl); - } catch (err) { - throw new Error(`Invalid AMO API base URL: ${amoBaseUrl}`); - } - - const client = new SubmitClient({ - apiAuth: new ApiAuthClass({ apiKey, apiSecret }), - apiProxy, - baseUrl, - validationCheckTimeout, - approvalCheckTimeout, - downloadDir, - userAgentString, - }); - const uploadUuid = await client.getPreviousUuidOrUploadXpi( - xpiPath, - channel, - savedUploadUuidPath, - ); - const patchData = {}; - // if we have a source file we need to upload we patch after the create - if (submissionSource) { - try { - const stats2 = await fsPromises.stat(submissionSource); - - if (!stats2.isFile()) { - throw new Error('not a file'); - } - } catch (statError) { - throw new Error(`error with ${submissionSource}: ${statError}`); - } - patchData.version = { source: client.fileFromSync(submissionSource) }; - } - - // We specifically need to know if `id` has not been passed as a parameter because - // it's the indication that a new add-on should be created, rather than a new version. - if (id === undefined) { - return client.postNewAddon( - uploadUuid, - savedIdPath, - metaDataJson, - patchData, - ); - } - - return client.putVersion(uploadUuid, id, metaDataJson, patchData); -} - -export async function saveIdToFile(filePath, id) { - await fsPromises.writeFile( - filePath, - [ - '# This file was created by https://github.com/mozilla/web-ext', - '# Your auto-generated extension ID for addons.mozilla.org is:', - id.toString(), - ].join('\n'), - ); - - log.debug(`Saved auto-generated ID ${id} to ${filePath}`); -} - -export async function saveUploadUuidToFile( - filePath, - { uploadUuid, channel, xpiCrcHash }, -) { - await fsPromises.writeFile( - filePath, - JSON.stringify({ uploadUuid, channel, xpiCrcHash }), - ); - log.debug( - `Saved upload UUID ${uploadUuid}, xpi crc hash ${xpiCrcHash}, and channel ${channel} to ${filePath}`, - ); -} - -export async function getUploadUuidFromFile( - filePath, - asyncFsReadFile = defaultAsyncFsReadFile, -) { - try { - const content = await asyncFsReadFile(filePath, 'utf-8'); - const { uploadUuid, channel, xpiCrcHash } = JSON.parse(content); - log.debug( - `Found upload uuid:${uploadUuid}, channel:${channel}, hash:${xpiCrcHash} in ${filePath}`, - ); - return { uploadUuid, channel, xpiCrcHash }; - } catch (error) { - if (isErrorWithCode('ENOENT', error)) { - log.debug(`No upload uuid file found at: ${filePath}`); - } else { - log.debug(`Invalid upload uuid file contents in ${filePath}: ${error}`); - } - } - - return { uploadUuid: '', channel: '', xpiCrcHash: '' }; -} diff --git a/src/util/updates.js b/src/util/updates.js deleted file mode 100644 index 99df8a99c4..0000000000 --- a/src/util/updates.js +++ /dev/null @@ -1,13 +0,0 @@ -import defaultUpdateNotifier from 'update-notifier'; - -export function checkForUpdates({ - version, - updateNotifier = defaultUpdateNotifier, -}) { - const pkg = { name: 'web-ext', version }; - - updateNotifier({ - pkg, - updateCheckInterval: 1000 * 60 * 60 * 24 * 3, // 3 days, - }).notify(); -} diff --git a/tests/functional/test.cli.build.js b/tests/functional/test.cli.build.js deleted file mode 100644 index c8b2202731..0000000000 --- a/tests/functional/test.cli.build.js +++ /dev/null @@ -1,38 +0,0 @@ -import { describe, it } from 'mocha'; -import { assert } from 'chai'; - -import { - minimalAddonPath, - withTempAddonDir, - execWebExt, - reportCommandErrors, -} from './common.js'; - -describe('web-ext build', () => { - it('should accept: --source-dir SRCDIR', () => - withTempAddonDir({ addonPath: minimalAddonPath }, (srcDir, tmpDir) => { - const argv = ['build', '--source-dir', srcDir, '--verbose']; - const cmd = execWebExt(argv, { cwd: tmpDir }); - - return cmd.waitForExit.then(({ exitCode, stdout, stderr }) => { - if (exitCode !== 0) { - reportCommandErrors({ - argv, - exitCode, - stdout, - stderr, - }); - } - }); - })); - - it('throws an error on multiple -n', () => - withTempAddonDir({ addonPath: minimalAddonPath }, (srcDir, tmpDir) => { - const argv = ['build', '-n', 'foo', '-n', 'bar']; - const cmd = execWebExt(argv, { cwd: tmpDir }); - return cmd.waitForExit.then(({ exitCode, stderr }) => { - assert.notEqual(exitCode, 0); - assert.match(stderr, /Multiple --filename\/-n option are not allowed/); - }); - })); -}); diff --git a/tests/functional/test.cli.lint.js b/tests/functional/test.cli.lint.js deleted file mode 100644 index f3fa9e326e..0000000000 --- a/tests/functional/test.cli.lint.js +++ /dev/null @@ -1,27 +0,0 @@ -import { describe, it } from 'mocha'; - -import { - minimalAddonPath, - withTempAddonDir, - execWebExt, - reportCommandErrors, -} from './common.js'; - -describe('web-ext lint', () => { - it('should accept: --source-dir SRCDIR', () => - withTempAddonDir({ addonPath: minimalAddonPath }, (srcDir, tmpDir) => { - const argv = ['lint', '--source-dir', srcDir, '--verbose']; - const cmd = execWebExt(argv, { cwd: tmpDir }); - - return cmd.waitForExit.then(({ exitCode, stdout, stderr }) => { - if (exitCode !== 0) { - reportCommandErrors({ - argv, - exitCode, - stdout, - stderr, - }); - } - }); - })); -}); diff --git a/tests/functional/test.cli.sign.js b/tests/functional/test.cli.sign.js deleted file mode 100644 index 72194e05c6..0000000000 --- a/tests/functional/test.cli.sign.js +++ /dev/null @@ -1,153 +0,0 @@ -import { spawn } from 'child_process'; -import path from 'path'; - -import { assert } from 'chai'; -import { describe, it, beforeEach, afterEach } from 'mocha'; -import { fs } from 'mz'; - -import { - minimalAddonPath, - fakeServerPath, - withTempAddonDir, - execWebExt, - reportCommandErrors, -} from './common.js'; - -// Put this as "web-ext-config.js" in the current directory, and replace -// "FAKEAPIKEY" and "FAKEAPISECRET" with the actual values to enable -// "web-ext sign" without passing those values via the CLI parameters. -const GOOD_EXAMPLE_OF_WEB_EXT_CONFIG_JS = ` -module.exports = { - sign: { - apiKey: "FAKEAPIKEY", - apiSecret: "FAKEAPISECRET", - }, -}; -`; - -// Do NOT use this to specify the API key and secret. It won't work. -const BAD_EXAMPLE_OF_WEB_EXT_CONFIG_JS = ` -module.exports = { - // Bad config: those should be under the "sign" key. - apiKey: "FAKEAPIKEY", - apiSecret: "FAKEAPISECRET", -}; -`; - -describe('web-ext sign', () => { - let fakeServerProcess; - - beforeEach(() => { - return new Promise((resolve, reject) => { - const newProcess = spawn(process.execPath, [fakeServerPath]); - newProcess.stdout.on('data', resolve); - newProcess.stderr.on('data', reject); - fakeServerProcess = newProcess; - }); - }); - - afterEach(() => { - if (fakeServerProcess) { - fakeServerProcess.kill(); - fakeServerProcess = null; - } - }); - - it('should accept: --source-dir SRCDIR --amo-base-url URL', () => - withTempAddonDir({ addonPath: minimalAddonPath }, (srcDir, tmpDir) => { - const argv = [ - 'sign', - '--verbose', - '--channel', - 'listed', - '--amo-base-url', - 'http://localhost:8989/fake/api/v5', - '--api-key', - 'FAKEAPIKEY', - '--api-secret', - 'FAKEAPISECRET', - '--source-dir', - srcDir, - ]; - const cmd = execWebExt(argv, { cwd: tmpDir }); - - return cmd.waitForExit.then(({ exitCode, stdout, stderr }) => { - if (exitCode !== 0) { - reportCommandErrors({ - argv, - exitCode, - stdout, - stderr, - }); - } - }); - })); - - it('should use config file if required parameters are not in the arguments', () => - withTempAddonDir({ addonPath: minimalAddonPath }, (srcDir, tmpDir) => { - fs.writeFileSync( - path.join(tmpDir, 'web-ext-config.js'), - GOOD_EXAMPLE_OF_WEB_EXT_CONFIG_JS, - ); - - fs.writeFileSync( - path.join(tmpDir, 'package.json'), - JSON.stringify({ - webExt: { - sign: { - amoBaseUrl: 'http://localhost:8989/fake/api/v5', - channel: 'listed', - }, - sourceDir: srcDir, - }, - }), - ); - - const argv = ['sign', '--verbose']; - const cmd = execWebExt(argv, { cwd: tmpDir }); - - return cmd.waitForExit.then(({ exitCode, stdout, stderr }) => { - if (exitCode !== 0) { - reportCommandErrors({ - argv, - exitCode, - stdout, - stderr, - }); - } - }); - })); - - it('should show an error message if the api-key is not set in the config', () => - withTempAddonDir({ addonPath: minimalAddonPath }, (srcDir, tmpDir) => { - const configFilePath = path.join(tmpDir, 'web-ext-config.js'); - fs.writeFileSync(configFilePath, BAD_EXAMPLE_OF_WEB_EXT_CONFIG_JS); - const argv = [ - 'sign', - '--verbose', - '--no-config-discovery', - '-c', - configFilePath, - ]; - const cmd = execWebExt(argv, { cwd: tmpDir }); - - return cmd.waitForExit.then(({ exitCode, stderr }) => { - assert.notEqual(exitCode, 0); - assert.match( - stderr, - /web-ext-config.js specified an unknown option: "apiKey"/, - ); - }); - })); - - it('should show an error message if the api-key cannot be found', () => - withTempAddonDir({ addonPath: minimalAddonPath }, (srcDir, tmpDir) => { - const argv = ['sign', '--verbose', '--no-config-discovery']; - const cmd = execWebExt(argv, { cwd: tmpDir }); - - return cmd.waitForExit.then(({ exitCode, stderr }) => { - assert.notEqual(exitCode, 0); - assert.match(stderr, /Missing required arguments: api-key, api-secret/); - }); - })); -}); diff --git a/tests/functional/test.typo.run.js b/tests/functional/test.typo.run.js index 887d1967ab..8704e1be9b 100644 --- a/tests/functional/test.typo.run.js +++ b/tests/functional/test.typo.run.js @@ -5,11 +5,11 @@ import { execWebExt } from './common.js'; describe('web-ext', () => { it('recommends matching command', async () => { - const argv = ['buld']; + const argv = ['rn']; return execWebExt(argv, {}).waitForExit.then(({ exitCode, stderr }) => { assert.notEqual(exitCode, 0); - assert.match(stderr, /Did you mean build/); + assert.match(stderr, /Did you mean run/); }); }); }); diff --git a/tests/unit/test-cmd/test.docs.js b/tests/unit/test-cmd/test.docs.js deleted file mode 100644 index fb1c3c9a97..0000000000 --- a/tests/unit/test-cmd/test.docs.js +++ /dev/null @@ -1,23 +0,0 @@ -import { it, describe } from 'mocha'; -import * as sinon from 'sinon'; -import { assert } from 'chai'; - -import defaultDocsCommand, { url } from '../../../src/cmd/docs.js'; - -describe('docs', () => { - it('passes the correct url to docs', async () => { - const openUrl = sinon.spy(async () => {}); - await defaultDocsCommand({}, { openUrl }); - sinon.assert.calledWith(openUrl, url); - }); - - it('throws an error when open fails', async () => { - const openUrl = sinon.spy(async () => { - throw new Error('pretends this is an error from open()'); - }); - await assert.isRejected( - defaultDocsCommand({}, { openUrl }), - /error from open()/, - ); - }); -}); diff --git a/tests/unit/test-cmd/test.lint.js b/tests/unit/test-cmd/test.lint.js deleted file mode 100644 index 179db622ce..0000000000 --- a/tests/unit/test-cmd/test.lint.js +++ /dev/null @@ -1,163 +0,0 @@ -import { it, describe } from 'mocha'; -import { assert } from 'chai'; -import * as sinon from 'sinon'; - -import defaultLintCommand from '../../../src/cmd/lint.js'; - -describe('lint', () => { - function setUp({ createLinter, createFileFilter } = {}) { - const lintResult = '<lint.run() result placeholder>'; - const runLinter = sinon.spy(() => Promise.resolve(lintResult)); - if (!createLinter) { - createLinter = sinon.spy(() => { - return { run: runLinter }; - }); - } - return { - lintResult, - createLinter, - runLinter, - lint: (params = {}, options = {}) => { - const mergedArgs = { sourceDir: '/fake/source/dir', ...params }; - const mergedOpts = { - createLinter, - createFileFilter, - ...options, - }; - return defaultLintCommand(mergedArgs, mergedOpts); - }, - }; - } - - it('creates and runs a linter', () => { - const { lint, createLinter, runLinter, lintResult } = setUp(); - return lint().then((actualLintResult) => { - assert.equal(actualLintResult, lintResult); - sinon.assert.called(createLinter); - sinon.assert.called(runLinter); - }); - }); - - it('fails when the linter fails', async () => { - const createLinter = () => { - return { - run: () => Promise.reject(new Error('some error from the linter')), - }; - }; - const { lint } = setUp({ createLinter }); - - await assert.isRejected(lint(), /error from the linter/); - }); - - it('runs as a binary', () => { - const { lint, createLinter } = setUp(); - return lint().then(() => { - sinon.assert.calledWithMatch(createLinter, { runAsBinary: true }); - }); - }); - - it('sets runAsBinary according shouldExitProgram option', () => { - const { lint, createLinter } = setUp(); - return lint({}, { shouldExitProgram: false }).then(() => { - sinon.assert.calledWithMatch(createLinter, { runAsBinary: false }); - }); - }); - - it('passes sourceDir to the linter', () => { - const { lint, createLinter } = setUp(); - return lint({ sourceDir: '/some/path' }).then(() => { - const config = createLinter.firstCall.args[0].config; - assert.equal(config._[0], '/some/path'); - }); - }); - - it('passes warningsAsErrors to the linter', () => { - const { lint, createLinter } = setUp(); - return lint({ warningsAsErrors: true }).then(() => { - sinon.assert.calledWithMatch(createLinter, { - config: { - warningsAsErrors: true, - }, - }); - }); - }); - - it('passes warningsAsErrors undefined to the linter', () => { - const { lint, createLinter } = setUp(); - return lint().then(() => { - sinon.assert.calledWithMatch(createLinter, { - config: { - warningsAsErrors: undefined, - }, - }); - }); - }); - - it('configures the linter when verbose', () => { - const { lint, createLinter } = setUp(); - return lint({ verbose: true }).then(() => { - sinon.assert.calledWithMatch(createLinter, { - config: { - logLevel: 'debug', - stack: true, - }, - }); - }); - }); - - it('configures the linter when not verbose', () => { - const { lint, createLinter } = setUp(); - return lint({ verbose: false }).then(() => { - sinon.assert.calledWithMatch(createLinter, { - config: { - logLevel: 'fatal', - stack: false, - }, - }); - }); - }); - - it('passes through linter configuration', () => { - const { lint, createLinter } = setUp(); - return lint({ - pretty: true, - privileged: true, - metadata: true, - output: 'json', - boring: true, - selfHosted: true, - }).then(() => { - sinon.assert.calledWithMatch(createLinter, { - config: { - pretty: true, - privileged: true, - metadata: true, - output: 'json', - boring: true, - selfHosted: true, - minManifestVersion: 2, - maxManifestVersion: 3, - }, - }); - }); - }); - - it('configures a lint command with the expected fileFilter', () => { - const fileFilter = { wantFile: sinon.spy(() => true) }; - const createFileFilter = sinon.spy(() => fileFilter); - const { lint, createLinter } = setUp({ createFileFilter }); - const params = { - sourceDir: '.', - artifactsDir: 'artifacts', - ignoreFiles: ['file1', '**/file2'], - }; - return lint(params).then(() => { - sinon.assert.calledWith(createFileFilter, params); - - assert.ok(createLinter.called); - const { shouldScanFile } = createLinter.firstCall.args[0].config; - shouldScanFile('path/to/file'); - sinon.assert.calledWith(fileFilter.wantFile, 'path/to/file'); - }); - }); -}); diff --git a/tests/unit/test-cmd/test.sign.js b/tests/unit/test-cmd/test.sign.js deleted file mode 100644 index 51a3a9d88d..0000000000 --- a/tests/unit/test-cmd/test.sign.js +++ /dev/null @@ -1,333 +0,0 @@ -import path from 'path'; -import { promisify } from 'util'; - -import copyDir from 'copy-dir'; -import { fs } from 'mz'; -import { describe, it } from 'mocha'; -import { assert } from 'chai'; -import * as sinon from 'sinon'; - -import { UsageError } from '../../../src/errors.js'; -import { AMO_BASE_URL } from '../../../src/program.js'; -import { saveIdToFile } from '../../../src/util/submit-addon.js'; -import { withTempDir } from '../../../src/util/temp-dir.js'; -import completeSignCommand, { - extensionIdFile, - getIdFromFile, -} from '../../../src/cmd/sign.js'; -import { basicManifest, fixturePath } from '../helpers.js'; - -describe('sign', () => { - function getStubs() { - const signingConfig = { - amoBaseUrl: AMO_BASE_URL, - apiKey: 'AMO JWT issuer', - apiSecret: 'AMO JWT secret', - apiUrlPrefix: 'http://not-the-real-amo.com/api/v4', - timeout: 999, - webextVersion: '12.34', - }; - - const buildResult = { - extensionPath: '/tmp/built-web-extension.xpi', - }; - const build = sinon.spy(() => Promise.resolve(buildResult)); - - const signingResult = { - id: 'some-addon-id', - downloadedFiles: [], - }; - const submitAddonResult = { ...signingResult }; - const submitAddon = sinon.spy(() => Promise.resolve(submitAddonResult)); - - return { - signingConfig, - signingOptions: { - build, - preValidatedManifest: basicManifest, - submitAddon, - }, - buildResult, - submitAddonResult, - signingResult, - }; - } - - /* - * Run the sign command with stubs for all dependencies. - */ - function sign(tmpDir, stubs, { extraArgs = {}, extraOptions = {} } = {}) { - return completeSignCommand( - { - verbose: false, - artifactsDir: path.join(tmpDir.path(), 'artifacts-dir'), - sourceDir: tmpDir.path(), - channel: 'listed', - ...stubs.signingConfig, - ...extraArgs, - }, - { - ...stubs.signingOptions, - ...extraOptions, - }, - ); - } - - it('builds and signs an extension', () => - withTempDir( - // This test only stubs out the signer in an effort to integrate - // all other parts of the process. - (tmpDir) => { - const stubs = getStubs(); - const sourceDir = path.join(tmpDir.path(), 'source-dir'); - const copyDirAsPromised = promisify(copyDir); - const apiProxy = 'https://proxy.url'; - return copyDirAsPromised(fixturePath('minimal-web-ext'), sourceDir) - .then(() => - completeSignCommand( - { - sourceDir, - artifactsDir: path.join(tmpDir.path(), 'artifacts'), - channel: 'listed', - ...stubs.signingConfig, - apiProxy, - }, - { - submitAddon: stubs.signingOptions.submitAddon, - }, - ), - ) - .then((result) => { - assert.equal(result.id, stubs.signingResult.id); - // Do a sanity check that a built extension was passed to the - // signer. - const submitAddonCall = - stubs.signingOptions.submitAddon.firstCall.args[0]; - assert.include( - submitAddonCall.xpiPath, - 'minimal_extension-1.0.zip', - ); - assert.include( - submitAddonCall.amoBaseUrl, - stubs.signingConfig.amoBaseUrl, - ); - }); - }, - )); - - it('requires a channel for submission API', () => - withTempDir(async (tmpDir) => { - const stubs = getStubs(); - const signPromise = sign(tmpDir, stubs, { - extraArgs: { - channel: '', - }, - extraOptions: { - preValidatedManifest: basicManifest, - }, - }); - await assert.isRejected(signPromise, UsageError); - await assert.isRejected(signPromise, /You must specify a channel/); - })); - - it('passes the apiProxy parameter to submissionAPI signer', () => - withTempDir((tmpDir) => { - const stubs = getStubs(); - const apiProxy = 'https://proxy.url'; - return sign(tmpDir, stubs, { - extraArgs: { apiProxy, channel: 'unlisted' }, - }).then(() => { - sinon.assert.called(stubs.signingOptions.submitAddon); - sinon.assert.calledWithMatch(stubs.signingOptions.submitAddon, { - apiProxy, - }); - }); - })); - - it('passes the uploadSourceCode parameter to submissionAPI signer as submissionSource', () => - withTempDir((tmpDir) => { - const stubs = getStubs(); - const uploadSourceCode = 'path/to/source.zip'; - return sign(tmpDir, stubs, { - extraArgs: { - uploadSourceCode, - channel: 'unlisted', - }, - }).then(() => { - sinon.assert.called(stubs.signingOptions.submitAddon); - sinon.assert.calledWithMatch(stubs.signingOptions.submitAddon, { - submissionSource: uploadSourceCode, - }); - }); - })); - it('returns a signing result', () => - withTempDir((tmpDir) => { - const stubs = getStubs(); - return sign(tmpDir, stubs).then((realResult) => { - assert.deepEqual(realResult, stubs.signingResult); - }); - })); - - it('calls the add-on submission api signer', () => - withTempDir((tmpDir) => { - const stubs = getStubs(); - const artifactsDir = path.join(tmpDir.path(), 'some-artifacts-dir'); - const applications = stubs.signingOptions.preValidatedManifest - .applications || { - gecko: {}, - }; - const userAgentString = `web-ext/${stubs.signingConfig.webextVersion}`; - const channel = 'unlisted'; - return sign(tmpDir, stubs, { - extraArgs: { artifactsDir, channel }, - }).then(() => { - sinon.assert.called(stubs.signingOptions.submitAddon); - sinon.assert.calledWithMatch(stubs.signingOptions.submitAddon, { - apiKey: stubs.signingConfig.apiKey, - apiSecret: stubs.signingConfig.apiSecret, - amoBaseUrl: stubs.signingConfig.amoBaseUrl, - downloadDir: artifactsDir, - id: applications.gecko?.id, - validationCheckTimeout: stubs.signingConfig.timeout, - approvalCheckTimeout: stubs.signingConfig.timeout, - xpiPath: stubs.buildResult.extensionPath, - channel, - userAgentString, - }); - }); - })); - - it('calls the add-on submission api signer with approval timeout', () => - withTempDir((tmpDir) => { - const stubs = getStubs(); - const artifactsDir = path.join(tmpDir.path(), 'some-artifacts-dir'); - const applications = stubs.signingOptions.preValidatedManifest - .applications || { - gecko: {}, - }; - const userAgentString = `web-ext/${stubs.signingConfig.webextVersion}`; - const channel = 'unlisted'; - const approvalCheckTimeout = 0; - const validationCheckTimeout = 123; - return sign(tmpDir, stubs, { - extraArgs: { - artifactsDir, - channel, - approvalTimeout: approvalCheckTimeout, - timeout: validationCheckTimeout, - }, - }).then(() => { - sinon.assert.called(stubs.signingOptions.submitAddon); - sinon.assert.calledWithMatch(stubs.signingOptions.submitAddon, { - apiKey: stubs.signingConfig.apiKey, - apiSecret: stubs.signingConfig.apiSecret, - amoBaseUrl: stubs.signingConfig.amoBaseUrl, - downloadDir: artifactsDir, - id: applications.gecko?.id, - validationCheckTimeout, - approvalCheckTimeout, - xpiPath: stubs.buildResult.extensionPath, - channel, - userAgentString, - }); - }); - })); - - it('passes through a signing exception from submitAddon', () => - withTempDir(async (tmpDir) => { - const stubs = getStubs(); - stubs.signingOptions.submitAddon = () => - Promise.reject(new Error('some signing error')); - - const signPromise = sign(tmpDir, stubs); - await assert.isRejected(signPromise, /signing error/); - })); - - it('parses listing metadata as JSON and passes through to submitAddon', () => - withTempDir(async (tmpDir) => { - const stubs = getStubs(); - const metaDataJson = { version: { license: 'MPL2.0' } }; - const amoMetadata = 'path/to/metadata.json'; - const asyncFsReadFileStub = sinon.spy(() => - Promise.resolve(new Buffer(JSON.stringify(metaDataJson))), - ); - - return sign(tmpDir, stubs, { - extraArgs: { - amoMetadata, - }, - extraOptions: { - asyncFsReadFile: asyncFsReadFileStub, - }, - }).then(() => { - sinon.assert.called(stubs.signingOptions.submitAddon); - sinon.assert.calledWithMatch(stubs.signingOptions.submitAddon, { - metaDataJson, - }); - sinon.assert.calledWith(asyncFsReadFileStub, amoMetadata); - }); - })); - - it('raises an error on invalid JSON', () => - withTempDir(async (tmpDir) => { - const stubs = getStubs(); - const amoMetadata = 'path/to/metadata.json'; - const asyncFsReadFileStub = sinon.spy(() => - Promise.resolve(new Buffer('{"broken":"json"')), - ); - - const signPromise = sign(tmpDir, stubs, { - extraArgs: { amoMetadata }, - extraOptions: { - asyncFsReadFile: asyncFsReadFileStub, - }, - }); - await assert.isRejected(signPromise, UsageError); - await assert.isRejected(signPromise, /Invalid JSON in listing metadata/); - sinon.assert.calledWith(asyncFsReadFileStub, amoMetadata); - })); - - describe('getIdFromFile', () => { - it('gets a saved extension ID', () => - withTempDir((tmpDir) => { - const idFile = path.join(tmpDir.path(), extensionIdFile); - return saveIdToFile(idFile, 'some-id') - .then(() => getIdFromFile(idFile)) - .then((extensionId) => { - assert.equal(extensionId, 'some-id'); - }); - })); - - it('throws an error for empty files', () => - withTempDir(async (tmpDir) => { - const idFile = path.join(tmpDir.path(), extensionIdFile); - await fs.writeFile(idFile, ''); - const getIdPromise = getIdFromFile(idFile); - await assert.isRejected(getIdPromise, UsageError); - await assert.isRejected( - getIdPromise, - /No ID found in extension ID file/, - ); - })); - - it('returns empty ID when extension file does not exist', () => - withTempDir((tmpDir) => { - const idFile = path.join(tmpDir.path(), extensionIdFile); - return getIdFromFile(idFile).then((savedId) => { - assert.strictEqual(savedId, undefined); - }); - })); - - it('throws unexpected errors', async () => { - const fakeAsyncFsReadFile = sinon.spy(async () => { - throw new Error('Unexpected fs.readFile error'); - }); - await assert.isRejected( - getIdFromFile('fakeIdFile', fakeAsyncFsReadFile), - /Unexpected fs.readFile error/, - ); - - sinon.assert.calledOnce(fakeAsyncFsReadFile); - }); - }); -}); diff --git a/tests/unit/test-extension-runners/test.chromium.js b/tests/unit/test-extension-runners/test.chromium.js index 488db24490..1496b98372 100644 --- a/tests/unit/test-extension-runners/test.chromium.js +++ b/tests/unit/test-extension-runners/test.chromium.js @@ -47,12 +47,11 @@ function prepareExtensionRunnerParams({ params } = {}) { describe('util/extension-runners/chromium', async () => { it('uses the expected chrome flags', () => { - // Flags from chrome-launcher v0.14.0 + // Flags from chrome-launcher v1.1.0 const expectedFlags = [ - '--disable-features=Translate', + '--disable-features=Translate,OptimizationHints,MediaRouter,DialMediaRouteProvider,CalculateNativeWinOcclusion,InterestFeedContentSuggestions,CertificateTransparencyComponentUpdater,AutofillServerCommunication', '--disable-component-extensions-with-background-pages', '--disable-background-networking', - '--disable-component-update', '--disable-client-side-phishing-detection', '--disable-sync', '--metrics-recording-only', @@ -66,6 +65,9 @@ describe('util/extension-runners/chromium', async () => { '--password-store=basic', '--use-mock-keychain', '--force-fieldtrials=*BackgroundTracing/default/', + '--disable-hang-monitor', + '--disable-prompt-on-repost', + '--disable-domain-reliability', ]; assert.deepEqual(DEFAULT_CHROME_FLAGS, expectedFlags); @@ -615,6 +617,75 @@ describe('util/extension-runners/chromium', async () => { }), ); + it('does pass default prefs to chrome', async () => { + const { params } = prepareExtensionRunnerParams(); + + const runnerInstance = new ChromiumExtensionRunner(params); + await runnerInstance.run(); + + sinon.assert.calledOnce(params.chromiumLaunch); + sinon.assert.calledWithMatch(params.chromiumLaunch, { + prefs: { + extensions: { + ui: { + developer_mode: true, + }, + }, + }, + }); + + await runnerInstance.exit(); + }); + + it('does pass custom prefs to chrome', async () => { + const { params } = prepareExtensionRunnerParams({ + params: { + customChromiumPrefs: { + 'download.default_directory': '/some/directory', + 'extensions.ui.developer_mode': false, + }, + }, + }); + + const runnerInstance = new ChromiumExtensionRunner(params); + await runnerInstance.run(); + + sinon.assert.calledOnce(params.chromiumLaunch); + sinon.assert.calledWithMatch(params.chromiumLaunch, { + prefs: { + download: { + default_directory: '/some/directory', + }, + extensions: { + ui: { + developer_mode: false, + }, + }, + }, + }); + + await runnerInstance.exit(); + }); + + it('does pass port to chrome', async () => { + const port = 31269; + const { params } = prepareExtensionRunnerParams({ + params: { + chromiumPort: port, + }, + }); + + const runnerInstance = new ChromiumExtensionRunner(params); + await runnerInstance.run(); + + sinon.assert.calledOnce(params.chromiumLaunch); + sinon.assert.calledWithMatch(params.chromiumLaunch, { + port, + }); + + await runnerInstance.exit(); + }); + describe('reloadAllExtensions', () => { let runnerInstance; let wsClient; diff --git a/tests/unit/test-util/test.submit-addon.js b/tests/unit/test-util/test.submit-addon.js deleted file mode 100644 index 72ec3514d4..0000000000 --- a/tests/unit/test-util/test.submit-addon.js +++ /dev/null @@ -1,1341 +0,0 @@ -import { createHash } from 'crypto'; -import { promises as fsPromises, readFileSync } from 'fs'; -import path from 'path'; - -// eslint-disable-next-line import/no-extraneous-dependencies -import CRC32 from 'crc-32'; -import { assert, expect } from 'chai'; -import JSZip from 'jszip'; -import { afterEach, before, beforeEach, describe, it } from 'mocha'; -import * as sinon from 'sinon'; -// eslint-disable-next-line no-shadow -import { File, FormData, Response } from 'node-fetch'; - -import { AMO_BASE_URL } from '../../../src/program.js'; -import Client, { - getUploadUuidFromFile, - JwtApiAuth, - saveIdToFile, - saveUploadUuidToFile, - signAddon, -} from '../../../src/util/submit-addon.js'; -import { withTempDir } from '../../../src/util/temp-dir.js'; - -class JSONResponse extends Response { - constructor(data, status) { - super(JSON.stringify(data), { status }); - } -} - -const mockNodeFetch = (nodeFetchStub, url, method, responses) => { - // Trust us... You don't want to know why... but if you really do like nightmares - // take a look to the details and links kindly provided in this comment - // that helped investigating this: - // https://github.com/mozilla/web-ext/issues/2917#issuecomment-1766000545 - const urlMatch = url instanceof URL ? url.href : url; - const stubMatcher = nodeFetchStub.withArgs( - sinon.match( - (urlArg) => urlMatch === (urlArg instanceof URL ? urlArg.href : urlArg), - ), - sinon.match.has('method', method), - ); - for (let i = 0; i < responses.length; i++) { - const { body, status } = responses[i]; - stubMatcher.onCall(i).callsFake(async () => { - if (typeof body === 'string') { - return new Response(body, { status }); - } - return new JSONResponse(body, status); - }); - } - return stubMatcher; -}; - -describe('util.submit-addon', () => { - describe('signAddon', () => { - let statStub; - let getPreviousUuidOrUploadXpiStub; - let postNewAddonStub; - let putVersionStub; - let fileFromSyncStub; - const uploadUuid = '{some-upload-uuid}'; - const fakeFileFromSync = new File([], 'foo.xpi'); - - beforeEach(() => { - statStub = sinon - .stub(fsPromises, 'stat') - .onFirstCall() - .resolves({ isFile: () => true }); - statStub.callThrough(); - getPreviousUuidOrUploadXpiStub = sinon - .stub(Client.prototype, 'getPreviousUuidOrUploadXpi') - .resolves(uploadUuid); - postNewAddonStub = sinon.stub(Client.prototype, 'postNewAddon'); - putVersionStub = sinon.stub(Client.prototype, 'putVersion'); - fileFromSyncStub = sinon - .stub(Client.prototype, 'fileFromSync') - .returns(fakeFileFromSync); - }); - - afterEach(() => { - statStub.restore(); - getPreviousUuidOrUploadXpiStub.restore(); - postNewAddonStub.restore(); - putVersionStub.restore(); - fileFromSyncStub.restore(); - }); - - const signAddonDefaults = { - apiKey: 'some-key', - apiSecret: 'ffff', - amoBaseUrl: AMO_BASE_URL, - validationCheckTimeout: 2, - approvalCheckoutTimeout: 1, - downloadDir: '/some-dir/', - xpiPath: '/some.xpi', - channel: 'some-channel', - savedIdPath: '.id-file', - savedUploadUuidPath: '.uuid-file', - userAgentString: 'web-ext/12.34', - }; - - it('creates Client with parameters', async () => { - const apiKey = 'fooKey'; - const apiSecret = '4321'; - const amoBaseUrl = AMO_BASE_URL; - const baseUrl = new URL(amoBaseUrl); - const downloadDir = '/foo'; - const clientSpy = sinon.spy(Client); - const apiAuthSpy = sinon.spy(JwtApiAuth); - const userAgentString = 'web-ext/666.a.b'; - const apiProxy = 'https://proxy.url'; - - await signAddon({ - ...signAddonDefaults, - apiKey, - apiSecret, - apiProxy, - amoBaseUrl, - downloadDir, - userAgentString, - SubmitClient: clientSpy, - ApiAuthClass: apiAuthSpy, - }); - - sinon.assert.calledOnce(apiAuthSpy); - assert.deepEqual(apiAuthSpy.firstCall.args[0], { - apiKey, - apiSecret, - }); - sinon.assert.calledOnce(clientSpy); - assert.deepEqual(clientSpy.firstCall.args[0], { - apiAuth: {}, - apiProxy, - baseUrl, - validationCheckTimeout: signAddonDefaults.validationCheckTimeout, - approvalCheckTimeout: signAddonDefaults.approvalCheckTimeout, - downloadDir, - userAgentString, - }); - sinon.assert.notCalled(fileFromSyncStub); - }); - - it('calls postNewAddon if `id` is undefined', async () => { - const xpiPath = 'this/path/xpi.xpi'; - const channel = 'thisChannel'; - const savedIdPath = '.some.id.file'; - const savedUploadUuidPath = '.some.uuid.file'; - await signAddon({ - ...signAddonDefaults, - xpiPath, - channel, - savedIdPath, - savedUploadUuidPath, - }); - sinon.assert.notCalled(putVersionStub); - sinon.assert.calledWith(postNewAddonStub, uploadUuid, savedIdPath, {}); - }); - - it('calls putVersion if `id` is defined', async () => { - const xpiPath = 'this/path/xpi.xpi'; - const channel = 'thisChannel'; - const id = '@thisID'; - await signAddon({ - ...signAddonDefaults, - xpiPath, - channel, - id, - }); - sinon.assert.notCalled(postNewAddonStub); - sinon.assert.calledWith(putVersionStub, uploadUuid, id, {}); - }); - - it('throws error if xpiPath is invalid', async () => { - statStub.restore(); - const signAddonPromise = signAddon(signAddonDefaults); - await assert.isRejected( - signAddonPromise, - `error with ${signAddonDefaults.xpiPath}: ` + - 'Error: ENOENT: no such file or directory', - ); - }); - - it('throws error if amoBaseUrl is an invalid URL', async () => { - const amoBaseUrl = 'badUrl'; - const signAddonPromise = signAddon({ ...signAddonDefaults, amoBaseUrl }); - await assert.isRejected( - signAddonPromise, - `Invalid AMO API base URL: ${amoBaseUrl}`, - ); - }); - - it('passes through metadata json object if defined', async () => { - const metaDataJson = { version: { license: 'MPL2.0' } }; - await signAddon({ - ...signAddonDefaults, - metaDataJson, - }); - sinon.assert.notCalled(putVersionStub); - sinon.assert.calledWith( - postNewAddonStub, - uploadUuid, - signAddonDefaults.savedIdPath, - metaDataJson, - ); - }); - - it('includes source data to be patched if submissionSource defined for new addon', async () => { - const submissionSource = 'path/to/source/zip'; - statStub.onSecondCall().resolves({ isFile: () => true }); - await signAddon({ - ...signAddonDefaults, - submissionSource, - }); - - sinon.assert.calledWith(fileFromSyncStub, submissionSource); - sinon.assert.calledWith( - postNewAddonStub, - uploadUuid, - signAddonDefaults.savedIdPath, - {}, - { version: { source: fakeFileFromSync } }, - ); - }); - - it('includes source data to be patched if submissionSource defined for new version', async () => { - const submissionSource = 'path/to/source/zip'; - statStub.onSecondCall().resolves({ isFile: () => true }); - const id = '@thisID'; - await signAddon({ - ...signAddonDefaults, - submissionSource, - id, - }); - - sinon.assert.calledWith(fileFromSyncStub, submissionSource); - sinon.assert.calledWith( - putVersionStub, - uploadUuid, - id, - {}, - { version: { source: fakeFileFromSync } }, - ); - }); - - it('throws error if submissionSource is not found', async () => { - const submissionSource = 'path/to/source/zip'; - const signAddonPromise = signAddon({ - ...signAddonDefaults, - submissionSource, - }); - await assert.isRejected( - signAddonPromise, - `error with ${submissionSource}: ` + - 'Error: ENOENT: no such file or directory', - ); - }); - - it('throws error if submissionSource is a directory', async () => { - await withTempDir(async (tmpDir) => { - const submissionSource = path.join(tmpDir.path(), 'someDirectory'); - await fsPromises.mkdir(submissionSource); - const signAddonPromise = signAddon({ - ...signAddonDefaults, - submissionSource, - }); - await assert.isRejected( - signAddonPromise, - `error with ${submissionSource}: ` + 'Error: not a file', - ); - }); - }); - }); - - describe('Client', () => { - const baseUrl = new URL(AMO_BASE_URL); - - const apiAuth = new JwtApiAuth({ - apiKey: 'fake-api-key', - apiSecret: '1234abcd', - }); - const clientDefaults = { - apiAuth, - baseUrl, - approvalCheckInterval: 0, - validationCheckInterval: 0, - userAgentString: 'web-ext/12.34', - }; - - const sampleUploadDetail = { - uuid: '1234-5678', - channel: 'a-channel', - processed: true, - submitted: false, - url: 'http://amo/validation-results/', - valid: true, - validation: {}, - version: '1.0', - }; - - const sampleVersionDetail = { - // Note: most of the fields are omitted here, these are just the essentials. - id: 456, - channel: 'a-channel', - edit_url: 'http://amo/devhub-url', - file: { - id: 789, - hash: 'abcd', - status: 'nominated', - url: 'http://amo/download-url', - }, - version: '1.0', - }; - - const sampleAddonDetail = { - // Note: most of the fields are ommited here, these are just the essentials. - id: 9876, - guid: '@this-guid', - slug: 'this_addon', - status: 'unreviewed', - version: sampleVersionDetail, - }; - - const getAuthHeaderSpy = sinon.spy(apiAuth, 'getAuthHeader'); - - afterEach(() => { - getAuthHeaderSpy.resetHistory(); - }); - - it('adds a missing trailing slash to baseUrl before setting apiUrl', () => { - const noSlashBaseUrl = new URL('http://url.without/trailing/slash'); - const client = new Client({ ...clientDefaults, baseUrl: noSlashBaseUrl }); - assert.equal( - client.apiUrl.href, - new URL(`${noSlashBaseUrl.href}/addons/`).href, - ); - }); - - it('drops extra characters on baseUrl before setting apiUrl', () => { - const cleanUrl = 'http://url.with/extra'; - const extraBaseUrl = new URL(`${cleanUrl}?#`); - const client = new Client({ ...clientDefaults, baseUrl: extraBaseUrl }); - assert.equal(client.apiUrl.href, new URL(`${cleanUrl}/addons/`).href); - }); - - describe('getPreviousUuidOrUploadXpi', () => { - it('calls doUploadSubmit if previous hash is different to current', async () => { - const oldHash = 'some-hash'; - const newHash = 'some-other-hash'; - const oldUuid = '{some-uuid}'; - const newUuid = '{some-other-uuid}'; - const channel = 'someChannel'; - const xpiPath = 'some/path/to/file.xpi'; - const uuidFilePath = 'some/path/to/.uploadUuid'; - const client = new Client(clientDefaults); - sinon.stub(client, 'hashXpiCrcs').resolves(newHash); - const doUploadStub = sinon - .stub(client, 'doUploadSubmit') - .resolves(newUuid); - const saveUploadUuidStub = sinon.stub().resolves(); - const getUploadUuidStub = sinon - .stub() - .resolves({ uploadUuid: oldUuid, channel, xpiCrcHash: oldHash }); - - const returnedUuid = await client.getPreviousUuidOrUploadXpi( - xpiPath, - channel, - uuidFilePath, - saveUploadUuidStub, - getUploadUuidStub, - ); - - assert.equal(returnedUuid, newUuid); - sinon.assert.calledWith(getUploadUuidStub, uuidFilePath); - sinon.assert.calledWith(doUploadStub, xpiPath, channel); - sinon.assert.calledWith(saveUploadUuidStub, uuidFilePath, { - uploadUuid: newUuid, - channel, - xpiCrcHash: newHash, - }); - }); - - it('skips doUploadSubmit if previous hash is the same as current', async () => { - const xpiCrcHash = 'some-hash'; - const uploadUuid = '{some-uuid}'; - const xpiPath = 'some/path/to/file.xpi'; - const uuidFilePath = 'some/path/to/.uploadUuid'; - const channel = 'someChannel'; - const client = new Client(clientDefaults); - sinon.stub(client, 'hashXpiCrcs').resolves(xpiCrcHash); - const doUploadStub = sinon.stub(client, 'doUploadSubmit'); - const saveUploadUuidStub = sinon.stub(); - const getUploadUuidStub = sinon - .stub() - .resolves({ uploadUuid, channel, xpiCrcHash }); - - const returnedUuid = await client.getPreviousUuidOrUploadXpi( - xpiPath, - channel, - uuidFilePath, - saveUploadUuidStub, - getUploadUuidStub, - ); - - assert.equal(returnedUuid, uploadUuid); - sinon.assert.calledWith(getUploadUuidStub, uuidFilePath); - sinon.assert.notCalled(doUploadStub); - sinon.assert.notCalled(saveUploadUuidStub); - }); - - it('calls doUploadSubmit if the channel is different to current', async () => { - const xpiCrcHash = 'some-hash'; - const oldUuid = '{some-uuid}'; - const newUuid = '{some-other-uuid}'; - const xpiPath = 'some/path/to/file.xpi'; - const uuidFilePath = 'some/path/to/.uploadUuid'; - const oldChannel = 'someChannel'; - const newChannel = 'someOtherChannel'; - const client = new Client(clientDefaults); - sinon.stub(client, 'hashXpiCrcs').resolves(xpiCrcHash); - const doUploadStub = sinon - .stub(client, 'doUploadSubmit') - .resolves(newUuid); - const saveUploadUuidStub = sinon.stub(); - const getUploadUuidStub = sinon - .stub() - .resolves({ uploadUuid: oldUuid, channel: oldChannel, xpiCrcHash }); - - const returnedUuid = await client.getPreviousUuidOrUploadXpi( - xpiPath, - newChannel, - uuidFilePath, - saveUploadUuidStub, - getUploadUuidStub, - ); - - assert.equal(returnedUuid, newUuid); - sinon.assert.calledWith(getUploadUuidStub, uuidFilePath); - sinon.assert.calledWith(doUploadStub, xpiPath, newChannel); - sinon.assert.calledWith(saveUploadUuidStub, uuidFilePath, { - uploadUuid: newUuid, - channel: newChannel, - xpiCrcHash, - }); - }); - }); - - describe('hashXpiCrcs', () => { - const buildZip = async (zipFilePath, files) => { - const zip = new JSZip(); - files.forEach((args) => { - zip.file(...args); - }); - await fsPromises.writeFile( - zipFilePath, - await zip.generateAsync({ type: 'nodebuffer' }), - ); - return zip; - }; - - it('returns a sha256 hash of the crc32 hashes of the zip entries', async () => { - await withTempDir(async (tmpDir) => { - const client = new Client(clientDefaults); - const jsFileContents = 'something();'; - const manifestContents = JSON.stringify({ manifest_version: 2 }); - const jsFileName = 'foo.js'; - const manifestFileName = 'manifest.json'; - - const files = [ - [jsFileName, jsFileContents], - [manifestFileName, manifestContents], - ]; - const zipFilePath = path.join(tmpDir.path(), 'someextension.zip'); - await buildZip(zipFilePath, files); - - const originalHash = createHash('sha256'); - originalHash.update( - JSON.stringify([ - { - path: jsFileName, - crc32: CRC32.str(jsFileContents), - }, - { - path: manifestFileName, - crc32: CRC32.str(manifestContents), - }, - ]), - ); - - assert.equal( - await client.hashXpiCrcs(zipFilePath), - originalHash.digest('hex'), - ); - }); - }); - - it('returns a different hash when a directory is added to the zip', async () => { - await withTempDir(async (tmpDir) => { - const client = new Client(clientDefaults); - const files = [ - ['manifest.json', JSON.stringify({ manifest_version: 2 })], - ['foo.js', 'something();'], - ]; - const someZipFilePath = path.join(tmpDir.path(), 'someextension.zip'); - await buildZip(someZipFilePath, files); - - const otherZipFilePath = path.join( - tmpDir.path(), - 'otherextension.zip', - ); - await buildZip(otherZipFilePath, [ - ...files, - ['dir/', null, { dir: true }], - ]); - - assert.notEqual( - await client.hashXpiCrcs(someZipFilePath), - await client.hashXpiCrcs(otherZipFilePath), - ); - }); - }); - - it('returns a different hash when a directory is replaced with an empty file', async () => { - await withTempDir(async (tmpDir) => { - const client = new Client(clientDefaults); - const files = [ - ['manifest.json', JSON.stringify({ manifest_version: 2 })], - ['foo.js', 'something();'], - ]; - const emptyName = 'dir'; - const someZipFilePath = path.join(tmpDir.path(), 'someextension.zip'); - await buildZip(someZipFilePath, [...files, [emptyName, '']]); - - const otherZipFilePath = path.join( - tmpDir.path(), - 'otherextension.zip', - ); - await buildZip(otherZipFilePath, [ - ...files, - [emptyName, null, { dir: true }], - ]); - - assert.notEqual( - await client.hashXpiCrcs(someZipFilePath), - await client.hashXpiCrcs(otherZipFilePath), - ); - }); - }); - - it('returns a different hash when a file is renamed', async () => { - await withTempDir(async (tmpDir) => { - const client = new Client(clientDefaults); - const jsFileContents = 'something();'; - const manifestContents = JSON.stringify({ manifest_version: 2 }); - const manifestFileName = 'manifest.json'; - const someZipFilePath = path.join(tmpDir.path(), 'someextension.zip'); - await buildZip(someZipFilePath, [ - [manifestFileName, manifestContents], - ['a.js', jsFileContents], - ]); - - const otherZipFilePath = path.join( - tmpDir.path(), - 'otherextension.zip', - ); - await buildZip(otherZipFilePath, [ - [manifestFileName, manifestContents], - ['A.js', jsFileContents], - ]); - - assert.notEqual( - await client.hashXpiCrcs(someZipFilePath), - await client.hashXpiCrcs(otherZipFilePath), - ); - }); - }); - - it('returns the same hash when file order changes', async () => { - await withTempDir(async (tmpDir) => { - const client = new Client(clientDefaults); - const jsFileName = 'foo.js'; - const jsFileContents = 'something();'; - const manifestContents = JSON.stringify({ manifest_version: 2 }); - const manifestFileName = 'manifest.json'; - const someZipFilePath = path.join(tmpDir.path(), 'someextension.zip'); - await buildZip(someZipFilePath, [ - [manifestFileName, manifestContents], - [jsFileName, jsFileContents], - ]); - - const otherZipFilePath = path.join( - tmpDir.path(), - 'otherextension.zip', - ); - await buildZip(otherZipFilePath, [ - [jsFileName, jsFileContents], - [manifestFileName, manifestContents], - ]); - - assert.equal( - await client.hashXpiCrcs(someZipFilePath), - await client.hashXpiCrcs(otherZipFilePath), - ); - }); - }); - }); - - describe('doUploadSubmit', () => { - it('submits the xpi', async () => { - const client = new Client(clientDefaults); - sinon.stub(client, 'fileFromSync').returns(new File([], 'foo.xpi')); - - const nodeFetchStub = sinon.stub(client, 'nodeFetch'); - mockNodeFetch( - nodeFetchStub, - new URL('addons/upload/', baseUrl), - 'POST', - [ - { - body: sampleUploadDetail, - status: 200, - }, - ], - ); - - const xpiPath = '/some/path.xpi'; - const channel = 'someChannel'; - const waitStub = sinon - .stub(client, 'waitForValidation') - .resolves(sampleUploadDetail.uuid); - - const returnUuid = await client.doUploadSubmit(xpiPath, channel); - assert.equal(sampleUploadDetail.uuid, returnUuid); - sinon.assert.calledWith(waitStub, sampleUploadDetail.uuid); - - // Verify the jwt Authorization header are included in the response. - sinon.assert.calledOnce(getAuthHeaderSpy); - const authHeaderValue = await getAuthHeaderSpy.getCall(0).returnValue; - assert.match(authHeaderValue, /^JWT .*/); - sinon.assert.calledOnceWithMatch( - nodeFetchStub, - sinon.match.instanceOf(URL), - sinon.match({ - headers: { - Authorization: authHeaderValue, - }, - }), - ); - }); - }); - - describe('waitForValidation', () => { - it('aborts validation check after timeout', async () => { - const client = new Client({ - ...clientDefaults, - // This causes an immediate failure. - validationCheckTimeout: 0, - validationCheckInterval: 1, - }); - const uploadUuid = '@some-guid'; - mockNodeFetch( - sinon.stub(client, 'nodeFetch'), - new URL(`addons/upload/${uploadUuid}/`, baseUrl), - 'GET', - [ - { - body: {}, - status: 200, - }, - ], - ); - - const clientPromise = client.waitForValidation(uploadUuid); - await assert.isRejected(clientPromise, 'Validation: timeout exceeded.'); - }); - - it('waits for validation that passes', async () => { - const client = new Client({ - ...clientDefaults, - validationCheckTimeout: 1000, - validationCheckInterval: 1, - }); - const uploadUuid = '@some-guid'; - mockNodeFetch( - sinon.stub(client, 'nodeFetch'), - new URL(`addons/upload/${uploadUuid}/`, baseUrl), - 'GET', - [ - { body: {}, status: 200 }, - { body: {}, status: 200 }, - { - body: { processed: true, valid: true, uuid: uploadUuid }, - status: 200, - }, - ], - ); - - const returnUuid = await client.waitForValidation(uploadUuid); - assert.equal(returnUuid, uploadUuid); - }); - - it('waits for validation that fails', async () => { - const client = new Client({ - ...clientDefaults, - validationCheckTimeout: 1000, - validationCheckInterval: 1, - }); - const uploadUuid = '@some-guid'; - const validationUrl = new URL('to/validation/report', baseUrl); - mockNodeFetch( - sinon.stub(client, 'nodeFetch'), - new URL(`addons/upload/${uploadUuid}/`, baseUrl), - 'GET', - [ - { body: {}, status: 200 }, - { body: {}, status: 200 }, - { - body: { processed: true, valid: false, url: validationUrl }, - status: 200, - }, - ], - ); - - const clientPromise = client.waitForValidation(uploadUuid); - await assert.isRejected(clientPromise, validationUrl); - }); - }); - - describe('doNewAddonSubmit', () => { - it('posts the upload uuid', async () => { - const client = new Client(clientDefaults); - mockNodeFetch( - sinon.stub(client, 'nodeFetch'), - new URL('addons/addon/', baseUrl), - 'POST', - [{ body: sampleAddonDetail, status: 202 }], - ); - const uploadUuid = 'some-uuid'; - const returnData = await client.doNewAddonSubmit(uploadUuid, {}); - expect(returnData).to.eql(sampleAddonDetail); - }); - - it('combines provided metaDataJson with upload uuid', async () => { - const client = new Client(clientDefaults); - const nodeFetchStub = sinon.stub(client, 'nodeFetch'); - nodeFetchStub.callsFake(async () => { - return new JSONResponse(sampleAddonDetail, 202); - }); - const uploadUuid = 'some-uuid'; - const metaDataJson = { - version: { license: 'MPL2.0' }, - categories: { firefox: ['other'] }, - }; - const body = JSON.stringify({ - version: { - upload: uploadUuid, - license: metaDataJson.version.license, - }, - categories: metaDataJson.categories, - }); - - await client.doNewAddonSubmit(uploadUuid, metaDataJson); - sinon.assert.calledWith( - nodeFetchStub, - sinon.match.instanceOf(URL), - sinon.match({ method: 'POST', body }), - ); - }); - }); - - describe('doNewAddonOrVersionSubmit', () => { - it('puts the upload uuid to the addon detail', async () => { - const client = new Client(clientDefaults); - const guid = '@some-addon-guid'; - const nodeFetchStub = sinon.stub(client, 'nodeFetch'); - mockNodeFetch( - nodeFetchStub, - new URL(`addons/addon/${guid}/`, baseUrl), - 'PUT', - [{ body: sampleAddonDetail, status: 202 }], - ); - const uploadUuid = 'some-other-uuid'; - - await client.doNewAddonOrVersionSubmit(guid, uploadUuid, {}); - sinon.assert.calledWith( - nodeFetchStub, - sinon.match.instanceOf(URL), - sinon.match({ - method: 'PUT', - body: JSON.stringify({ version: { upload: uploadUuid } }), - }), - ); - }); - - it('combines provided metaDataJson with upload uuid', async () => { - const client = new Client(clientDefaults); - const nodeFetchStub = sinon.stub(client, 'nodeFetch'); - nodeFetchStub.callsFake(async () => { - return new JSONResponse(sampleAddonDetail, 202); - }); - const uploadUuid = 'some-uuid'; - const guid = '@some-addon-guid'; - const metaDataJson = { - version: { license: 'MPL2.0' }, - categories: { firefox: ['other'] }, - }; - const body = JSON.stringify({ - version: { - upload: uploadUuid, - license: metaDataJson.version.license, - }, - categories: metaDataJson.categories, - }); - - await client.doNewAddonOrVersionSubmit(guid, uploadUuid, metaDataJson); - sinon.assert.calledWith( - nodeFetchStub, - sinon.match.instanceOf(URL), - sinon.match({ method: 'PUT', body }), - ); - }); - }); - - describe('doFormDataPatch', () => { - const addonId = 'some-addon-id'; - const versionId = 123456; - const dataField1 = 'someField'; - const dataField2 = 'otherField'; - const data = { dataField1: 'value', dataField2: 0 }; - const formData = new FormData(); - formData.append(dataField1, data[dataField1]); - formData.append(dataField2, data[dataField2]); - - it('creates the url from addon and version', async () => { - const client = new Client(clientDefaults); - const fetchStub = sinon - .stub(client, 'fetch') - .resolves(new Response('', { ok: true, status: 200 })); - await client.doFormDataPatch(data, addonId, versionId); - const patchUrl = new URL( - `addon/${addonId}/versions/${versionId}/`, - client.apiUrl, - ); - - sinon.assert.calledWith(fetchStub, patchUrl, 'PATCH', formData); - }); - - it('catches and throws for non ok responses', async () => { - const client = new Client(clientDefaults); - sinon.stub(client, 'fetch').resolves(); - const response = client.doFormDataPatch(data, addonId, versionId); - - assert.isRejected( - response, - `Uploading ${dataField1}${dataField2} failed`, - ); - }); - }); - - describe('waitForApproval', () => { - it('aborts approval wait after timeout', async () => { - const client = new Client({ - ...clientDefaults, - // This causes an immediate failure. - approvalCheckTimeout: 0, - approvalCheckInterval: 1, - }); - const addonId = '@random-addon'; - const versionId = 0; - const detailUrl = new URL( - `addons/addon/${addonId}/versions/${versionId}/`, - baseUrl, - ); - mockNodeFetch(sinon.stub(client, 'nodeFetch'), detailUrl, 'GET', [ - { body: {}, status: 200 }, - ]); - const editUrl = 'some-edit-url'; - const clientPromise = client.waitForApproval( - addonId, - versionId, - editUrl, - ); - await assert.isRejected( - clientPromise, - `Approval: timeout exceeded. When approved the signed XPI file can be downloaded from ${editUrl}`, - ); - }); - - it('waits for approval', async () => { - const client = new Client({ - ...clientDefaults, - validationCheckTimeout: 1000, - validationCheckInterval: 1, - }); - const addonId = '@random-addon'; - const versionId = 0; - const detailUrl = new URL( - `addons/addon/${addonId}/versions/${versionId}/`, - baseUrl, - ); - const url = new URL('file/download/url', baseUrl); - mockNodeFetch(sinon.stub(client, 'nodeFetch'), detailUrl, 'GET', [ - { body: {}, status: 200 }, - { body: {}, status: 200 }, - { body: { file: { status: 'public', url } }, status: 200 }, - ]); - const fileUrl = await client.waitForApproval(addonId, versionId); - assert.equal(fileUrl, url); - }); - }); - - describe('downloadSignedFile', () => { - const filename = 'download.xpi'; - const filePath = `/path/to/${filename}`; - const fileUrl = new URL(filePath, baseUrl); - const addonId = '@some-addon-id'; - - it('downloads the file to tmpdir', () => - withTempDir(async (tmpDir) => { - const client = new Client({ - ...clientDefaults, - downloadDir: tmpDir.path(), - }); - const fileData = 'a'; - - mockNodeFetch(sinon.stub(client, 'nodeFetch'), fileUrl, 'GET', [ - { body: fileData, status: 200 }, - ]); - - const result = await client.downloadSignedFile(fileUrl, addonId); - expect(result).to.eql({ - id: addonId, - downloadedFiles: [filename], - }); - const fullPath = path.join(tmpDir.path(), filename); - const stat = await fsPromises.stat(fullPath); - assert.equal(stat.isFile(), true); - assert.equal(readFileSync(fullPath), fileData); - })); - - it('raises when the response is not ok', async () => { - const client = new Client(clientDefaults); - - mockNodeFetch(sinon.stub(client, 'nodeFetch'), fileUrl, 'GET', [ - { body: 'a', status: 404 }, - ]); - - const clientPromise = client.downloadSignedFile(fileUrl, addonId); - await assert.isRejected( - clientPromise, - `Downloading ${filename} failed`, - ); - }); - - it('raises a consistent error when fetch raises', async () => { - const client = new Client(clientDefaults); - sinon.stub(client, 'fetch').rejects(new Error('some fetch error')); - - const clientPromise = client.downloadSignedFile(fileUrl, addonId); - await assert.isRejected( - clientPromise, - `Downloading ${filename} failed`, - ); - }); - - it('raises a consistent error when saveToFile raises', async () => { - const client = new Client(clientDefaults); - - mockNodeFetch(sinon.stub(client, 'nodeFetch'), fileUrl, 'GET', [ - { body: 'a', status: 200 }, - ]); - - sinon.stub(client, 'saveToFile').rejects(new Error('some save error')); - - const clientPromise = client.downloadSignedFile(fileUrl, addonId); - await assert.isRejected( - clientPromise, - `Downloading ${filename} failed`, - ); - }); - }); - - describe('postNewAddon and putVersion', () => { - const client = new Client(clientDefaults); - const xpiPath = 'foo.xpi'; - const downloadPath = '/some/file.xpi'; - const uploadUuid = sampleUploadDetail.uuid; - const addonId = sampleAddonDetail.guid; - - let nodeFetchStub; - - before(() => { - sinon.stub(client, 'fileFromSync').returns(new File([], xpiPath)); - sinon.stub(client, 'saveToFile').resolves(); - nodeFetchStub = sinon.stub(client, 'nodeFetch'); - }); - - afterEach(() => { - nodeFetchStub.reset(); - }); - - const addApprovalMocks = (versionId) => { - const url = new URL(downloadPath, baseUrl).toString(); - mockNodeFetch( - nodeFetchStub, - new URL(`addons/addon/${addonId}/versions/${versionId}/`, baseUrl), - 'GET', - [ - { - body: { file: { status: 'public', url } }, - status: 200, - }, - ], - ); - mockNodeFetch(nodeFetchStub, url, 'GET', [ - { body: `${versionId}`, status: 200 }, - ]); - }; - - it('creates new add-on; downloads the signed xpi', async () => { - const versionId = sampleVersionDetail.id; - const saveIdStub = sinon.stub(); - saveIdStub.resolves(); - const idFile = 'id.file'; - mockNodeFetch( - nodeFetchStub, - new URL('addons/addon/', baseUrl), - 'POST', - [{ body: sampleAddonDetail, status: 200 }], - ); - addApprovalMocks(versionId); - await client.postNewAddon( - uploadUuid, - idFile, - {}, - undefined, - saveIdStub, - ); - sinon.assert.calledWith(saveIdStub, idFile, sampleAddonDetail.guid); - }); - - it('creates a new version; then downloads the signed xpi', async () => { - const versionId = sampleVersionDetail.id; - - mockNodeFetch( - nodeFetchStub, - new URL(`addons/addon/${addonId}/`, baseUrl), - 'PUT', - [{ body: sampleAddonDetail, status: 200 }], - ); - - addApprovalMocks(versionId); - await client.putVersion(uploadUuid, `${addonId}`, {}); - }); - - describe('doAfterSubmit', () => { - const downloadUrl = 'https://a.download/url'; - const newVersionId = sampleVersionDetail.id; - const editUrl = sampleVersionDetail.editUrl; - const patchData = { version: { source: 'somesource' } }; - - let approvalStub; - let downloadStub; - let doFormDataPatchStub; - - before(() => { - approvalStub = sinon - .stub(client, 'waitForApproval') - .resolves(downloadUrl); - downloadStub = sinon.stub(client, 'downloadSignedFile').resolves(); - doFormDataPatchStub = sinon - .stub(client, 'doFormDataPatch') - .resolves(); - }); - - afterEach(() => { - approvalStub.resetHistory(); - downloadStub.resetHistory(); - doFormDataPatchStub.resetHistory(); - }); - - it('skips download if approval timeout is 0', async () => { - client.approvalCheckTimeout = 0; - await client.doAfterSubmit(addonId, newVersionId, editUrl); - sinon.assert.notCalled(approvalStub); - sinon.assert.notCalled(downloadStub); - }); - - it('downloads the signed xpi if approval timeout > 0', async () => { - client.approvalCheckTimeout = 1; - await client.doAfterSubmit(addonId, newVersionId, editUrl); - sinon.assert.calledWith(approvalStub, addonId, newVersionId); - sinon.assert.calledWith(downloadStub, new URL(downloadUrl), addonId); - }); - - it('calls doFormDataPatch if patchData.version is defined', async () => { - client.approvalCheckTimeout = 0; - await client.doAfterSubmit(addonId, newVersionId, editUrl, patchData); - - sinon.assert.calledWith( - doFormDataPatchStub, - patchData.version, - addonId, - newVersionId, - ); - }); - - it('does not call doFormDataPatch is patchData.version is undefined', async () => { - client.approvalCheckTimeout = 0; - await client.doAfterSubmit(addonId, newVersionId, editUrl, { - version: undefined, - }); - - sinon.assert.notCalled(doFormDataPatchStub); - }); - }); - }); - - describe('fetchJson', () => { - const client = new Client(clientDefaults); - const nodeFetchStub = sinon.stub(client, 'nodeFetch'); - - afterEach(() => { - nodeFetchStub.reset(); - }); - - it('rejects with a promise on not ok responses', async () => { - mockNodeFetch(nodeFetchStub, baseUrl, 'GET', [ - { body: {}, status: 400 }, - ]); - const clientPromise = client.fetchJson(baseUrl); - await assert.isRejected(clientPromise, 'Bad Request: 400\n{}'); - }); - - it('rejects with a promise on < 100 responses', async () => { - mockNodeFetch(nodeFetchStub, baseUrl, 'GET', [ - { body: {}, status: 99 }, - ]); - const clientPromise = client.fetchJson(baseUrl); - await assert.isRejected(clientPromise, 'Bad Request: 99.'); - }); - - it('rejects with a promise on >= 500 responses', async () => { - mockNodeFetch(nodeFetchStub, baseUrl, 'GET', [ - { body: {}, status: 500 }, - ]); - const clientPromise = client.fetchJson(baseUrl); - await assert.isRejected(clientPromise, 'Bad Request: 500.'); - }); - - it('resolves with a promise containing response json', async () => { - const resJson = { thing: ['other'], this: { that: 1 } }; - mockNodeFetch(nodeFetchStub, baseUrl, 'GET', [ - { body: resJson, status: 200 }, - ]); - const responseJson = await client.fetchJson(baseUrl); - expect(responseJson).to.eql(resJson); - }); - }); - - describe('fetch', () => { - const client = new Client(clientDefaults); - let nodeFetchStub; - - beforeEach(() => { - nodeFetchStub = sinon.stub(client, 'nodeFetch'); - }); - - afterEach(() => { - nodeFetchStub.restore(); - }); - - it('sets json content type for string type body', async () => { - nodeFetchStub.resolves(new JSONResponse({}, 200)); - - await client.fetch(baseUrl, 'POST', 'body'); - - assert.equal( - nodeFetchStub.firstCall.args[1].headers['Content-Type'], - 'application/json', - ); - sinon.assert.calledOnce(nodeFetchStub); - }); - - it("doesn't set content type for FormData type body", async () => { - nodeFetchStub.resolves(new JSONResponse({}, 200)); - - await client.fetch(baseUrl, 'POST', new FormData()); - - assert.equal( - nodeFetchStub.firstCall.args[1].headers['Content-Type'], - undefined, - ); - sinon.assert.calledOnce(nodeFetchStub); - }); - - it("doesn't set content type for no body", async () => { - nodeFetchStub.resolves(new JSONResponse({}, 200)); - - await client.fetch(baseUrl, 'POST'); - - assert.equal( - nodeFetchStub.firstCall.args[1].headers['Content-Type'], - undefined, - ); - sinon.assert.calledOnce(nodeFetchStub); - }); - - it('sends special user agent string', async () => { - nodeFetchStub.resolves(new JSONResponse({}, 200)); - - await client.fetch(baseUrl, 'POST'); - - assert.equal( - nodeFetchStub.firstCall.args[1].headers['User-Agent'], - client.userAgentString, - ); - sinon.assert.calledOnce(nodeFetchStub); - }); - - it('uses a specified proxy', async () => { - nodeFetchStub.resolves(new JSONResponse({}, 200)); - const apiProxyHost = 'proxy.url'; - const apiProxy = `https://${apiProxyHost}`; - client.apiProxy = apiProxy; - - await client.fetch(baseUrl, 'POST'); - - assert.equal( - nodeFetchStub.firstCall.args[1].agent.proxy.host, - apiProxyHost, - ); - sinon.assert.calledOnce(nodeFetchStub); - }); - }); - }); - - describe('saveIdToFile', () => { - it('saves an extension ID to file', () => - withTempDir((tmpDir) => { - const idFile = path.join(tmpDir.path(), 'extensionId.File'); - return saveIdToFile(idFile, 'some-id') - .then(() => fsPromises.readFile(idFile)) - .then((content) => { - assert.include(content.toString(), 'some-id'); - }); - })); - - it('will overwrite an existing file', () => - withTempDir((tmpDir) => { - const idFile = path.join(tmpDir.path(), 'extensionId.File'); - return saveIdToFile(idFile, 'first-id') - .then(() => saveIdToFile(idFile, 'second-id')) - .then(() => fsPromises.readFile(idFile)) - .then((content) => { - assert.include(content.toString(), 'second-id'); - }); - })); - }); - - describe('saveUploadUuidToFile', () => { - it('saves a uuid & hash to file', () => { - const data = { - uploadUuid: '{some-uuid}', - channel: 'someChannel', - xpiCrcHash: '123456', - }; - withTempDir((tmpDir) => { - const uuidFile = path.join(tmpDir.path(), 'uploadUuid.File'); - return saveUploadUuidToFile(uuidFile, data) - .then(() => fsPromises.readFile(uuidFile)) - .then((content) => { - assert.equal(content.toString(), JSON.stringify(data)); - }); - }); - }); - - it('will overwrite an existing file', () => - withTempDir((tmpDir) => { - const firstData = { - uploadUuid: '{some-uuid}', - channel: 'listed', - xpiCrcHash: '123456', - }; - const secondData = { - uploadUuid: '{other-uuid}', - channel: 'unlisted', - xpiCrcHash: '987654', - }; - const uuidFile = path.join(tmpDir.path(), 'uploadUuid.File'); - return saveUploadUuidToFile(uuidFile, firstData) - .then(() => saveUploadUuidToFile(uuidFile, secondData)) - .then(() => fsPromises.readFile(uuidFile)) - .then((content) => { - assert.equal(content.toString(), JSON.stringify(secondData)); - }); - })); - }); - - describe('getUploadUuidFromFile', () => { - it('gets an upload uuid and hash from a saved file', () => { - const savedData = { - uploadUuid: '{some-uuid}', - channel: 'someChannel', - xpiCrcHash: '123456', - }; - withTempDir((tmpDir) => { - const uuidFile = path.join(tmpDir.path(), 'uploadUuid.File'); - return saveUploadUuidToFile(uuidFile, savedData) - .then(() => getUploadUuidFromFile(uuidFile)) - .then((returnedData) => { - assert.equal(returnedData, savedData); - }); - }); - }); - - it('returns empty strings for uuid and hash if file does not exist', () => { - getUploadUuidFromFile('some/path/that/doesnt/exist/.file').then( - (returnedData) => - assert.equal(returnedData, { - uploadUuid: '', - channel: '', - xpiCrcHash: '', - }), - ); - }); - - it('returns empty strings for uuid and hash if file is malformed', () => { - withTempDir(async (tmpDir) => { - const uuidFile = path.join(tmpDir.path(), 'uploadUuid.File'); - await fsPromises.writeFile(uuidFile, 'not json'); - return getUploadUuidFromFile(uuidFile).then((returnedData) => { - assert.equal(returnedData, { - uploadUuid: '', - channel: '', - xpiCrcHash: '', - }); - }); - }); - }); - }); -}); diff --git a/tests/unit/test-util/test.updates.js b/tests/unit/test-util/test.updates.js deleted file mode 100644 index 8b00284fc0..0000000000 --- a/tests/unit/test-util/test.updates.js +++ /dev/null @@ -1,26 +0,0 @@ -import { it, describe } from 'mocha'; -import * as sinon from 'sinon'; - -import { checkForUpdates } from '../../../src/util/updates.js'; - -describe('util/updates', () => { - describe('checkForUpdates()', () => { - it('calls the notifier with the correct parameters', () => { - const updateNotifierStub = sinon.spy(() => { - return { - notify: sinon.spy(), - }; - }); - - checkForUpdates({ - version: '1.0.0', - updateNotifier: updateNotifierStub, - }); - - sinon.assert.calledWithMatch(updateNotifierStub, { - updateCheckInterval: 1000 * 60 * 60 * 24 * 3, - pkg: { name: 'web-ext', version: '1.0.0' }, - }); - }); - }); -}); diff --git a/tests/unit/test.config.js b/tests/unit/test.config.js deleted file mode 100644 index deea3249d0..0000000000 --- a/tests/unit/test.config.js +++ /dev/null @@ -1,1206 +0,0 @@ -import path from 'path'; - -import { assert } from 'chai'; -import { describe, it } from 'mocha'; -import * as sinon from 'sinon'; -import { fs } from 'mz'; - -import { Program } from '../../src/program.js'; -import { - applyConfigToArgv, - discoverConfigFiles, - loadJSConfigFile, - HELP_ERR_IMPORTEXPORT_CJS, - HELP_ERR_MODULE_FROM_ESM, - WARN_LEGACY_JS_EXT, -} from '../../src/config.js'; -import { withTempDir } from '../../src/util/temp-dir.js'; -import { UsageError, WebExtError } from '../../src/errors.js'; -import { - consoleStream, // instance is imported to inspect logged messages -} from '../../src/util/logger.js'; - -function makeArgv({ - userCmd = ['fakecommand'], - command = 'fakecommand', - commandDesc = 'this is a fake command', - commandExecutor = sinon.stub(), - commandOpt, - globalOpt, -}) { - const program = new Program(userCmd); - - if (globalOpt) { - program.setGlobalOptions(globalOpt); - } - - commandOpt = commandOpt ?? {}; - program.command(command, commandDesc, commandExecutor, commandOpt); - - const argv = program.yargs.exitProcess(false).argv; - return { - argv, - argvFromCLI: argv, - options: program.options, - }; -} - -const applyConf = (params) => - applyConfigToArgv({ - configFileName: 'some/path/to/config.js', - ...params, - }); - -describe('config', () => { - describe('applyConfigToArgv', () => { - it('preserves a string value on the command line over configured', () => { - const cmdLineSrcDir = '/user/specified/source/dir/'; - - const params = makeArgv({ - userCmd: ['fakecommand', '--source-dir', cmdLineSrcDir], - globalOpt: { - 'source-dir': { - requiresArg: true, - type: 'string', - demandOption: false, - }, - }, - }); - const configObject = { - sourceDir: '/configured/source/dir', - }; - const newArgv = applyConf({ ...params, configObject }); - assert.strictEqual(newArgv.sourceDir, cmdLineSrcDir); - }); - - it('preserves configured value over default', () => { - const params = makeArgv({ - globalOpt: { - 'source-dir': { - requiresArg: true, - type: 'string', - demandOption: false, - default: 'default/value/option/definition', - }, - }, - }); - const configObject = { - sourceDir: '/configured/source/dir', - }; - const newArgv = applyConf({ ...params, configObject }); - assert.strictEqual(newArgv.sourceDir, configObject.sourceDir); - }); - - it('preserves a string value on the command line over all others', () => { - const cmdLineSrcDir = '/user/specified/source/dir/'; - const params = makeArgv({ - userCmd: ['fakecommand', '--sourceDir', cmdLineSrcDir], - globalOpt: { - 'source-dir': { - requiresArg: true, - type: 'string', - demandOption: false, - default: 'default/value/option/definition', - }, - }, - }); - const configObject = { - sourceDir: '/configured/source/dir', - }; - const newArgv = applyConf({ ...params, configObject }); - assert.strictEqual(newArgv.sourceDir, cmdLineSrcDir); - }); - - it('preserves default value of option if not in config', () => { - const params = makeArgv({ - globalOpt: { - 'source-dir': { - requiresArg: true, - type: 'string', - demandOption: false, - default: 'default/value/option/definition', - }, - 'artifacts-dir': { - type: 'string', - demandOption: false, - }, - }, - }); - const configObject = { - artifactsDir: '/configured/artifacts/dir', - }; - const newArgv = applyConf({ ...params, configObject }); - assert.strictEqual(newArgv.sourceDir, 'default/value/option/definition'); - }); - - it('preserves value on the command line if not in config', () => { - const cmdLineSrcDir = '/user/specified/source/dir/'; - const params = makeArgv({ - userCmd: ['fakecommand', '--sourceDir', cmdLineSrcDir], - globalOpt: { - 'source-dir': { - requiresArg: true, - type: 'string', - demandOption: false, - default: 'default/value/option/definition', - }, - 'artifacts-dir': { - type: 'string', - demandOption: false, - }, - }, - }); - const configObject = { - artifactsDir: '/configured/artifacts/dir', - }; - const newArgv = applyConf({ ...params, configObject }); - assert.strictEqual(newArgv.sourceDir, cmdLineSrcDir); - }); - - it('coerces config option values if needed', () => { - const coerce = (sourceDir) => { - // coerce may have been called with the default value (undefined) - // and in that case we want to return undefined to allow the config file - // to override the empty default value. - return sourceDir != null ? `coerced(${sourceDir})` : undefined; - }; - const params = makeArgv({ - userCmd: ['fakecommand'], - globalOpt: { - 'source-dir': { - requiresArg: true, - type: 'string', - demandOption: false, - // In the real world this would do something like - // (sourceDir) => sourceDir != null ? path.resolve(sourceDir) : undefined; - coerce, - }, - }, - }); - - const sourceDir = '/configured/source/dir'; - const configObject = { sourceDir }; - - const newArgv = applyConf({ ...params, configObject }); - assert.strictEqual(newArgv.sourceDir, coerce(sourceDir)); - }); - - it('uses a configured boolean value over an implicit default', () => { - const params = makeArgv({ - globalOpt: { - 'overwrite-files': { - type: 'boolean', - demandOption: false, - // No default is set here explicitly but yargs will set it to - // false implicitly. - }, - }, - }); - const configObject = { - overwriteFiles: true, - }; - const newArgv = applyConf({ ...params, configObject }); - assert.strictEqual(newArgv.overwriteFiles, true); - }); - - it('uses a configured boolean value over explicit falsey default', () => { - const params = makeArgv({ - globalOpt: { - 'overwrite-files': { - type: 'boolean', - default: false, - }, - }, - }); - const configObject = { - overwriteFiles: true, - }; - const newArgv = applyConf({ ...params, configObject }); - assert.strictEqual(newArgv.overwriteFiles, true); - }); - - it('uses configured boolean value over explicit truthy default', () => { - const params = makeArgv({ - globalOpt: { - verbose: { - type: 'boolean', - default: true, - }, - }, - }); - const configObject = { - verbose: false, - }; - const newArgv = applyConf({ ...params, configObject }); - assert.strictEqual(newArgv.verbose, false); - }); - - it('uses a CLI boolean value over a configured one', () => { - const params = makeArgv({ - userCmd: ['fakecommand', '--overwrite-files'], - globalOpt: { - 'overwrite-files': { - type: 'boolean', - }, - }, - }); - const configObject = { - overwriteFiles: false, - }; - const newArgv = applyConf({ ...params, configObject }); - assert.strictEqual(newArgv.overwriteFiles, true); - }); - - it('can load multiple configs for global options', () => { - const params = makeArgv({ - userCmd: ['fakecommand'], - globalOpt: { - 'file-path': { - demandOption: false, - type: 'string', - }, - }, - }); - - // Make sure the second global option overrides the first. - const firstConfigObject = { - filePath: 'first/path', - }; - const secondConfigObject = { - filePath: 'second/path', - }; - - let argv = applyConf({ - ...params, - configObject: firstConfigObject, - }); - argv = applyConf({ - ...params, - argv, - configObject: secondConfigObject, - }); - assert.strictEqual(argv.filePath, secondConfigObject.filePath); - }); - - it('recognizes array config values as array types', () => { - const params = makeArgv({ - userCmd: ['fakecommand'], - globalOpt: { - 'ignore-files': { - demandOption: false, - type: 'array', - }, - }, - }); - - const configObject = { - ignoreFiles: ['file1', 'file2'], - }; - - const argv = applyConf({ ...params, configObject }); - assert.strictEqual(argv.ignoreFiles, configObject.ignoreFiles); - }); - - it('does not mistake an array config values for a sub-command', () => { - const params = makeArgv({ - userCmd: ['fakecommand'], - globalOpt: { - pref: { - demandOption: false, - type: 'array', - }, - }, - }); - - const configObject = { - pref: ['pref1=true', 'pref2=false'], - }; - - const resultArgv = applyConf({ ...params, configObject }); - assert.strictEqual(resultArgv.pref, configObject.pref); - }); - - it('uses CLI option over undefined configured option and default', () => { - const cmdLineSrcDir = '/user/specified/source/dir/'; - const params = makeArgv({ - userCmd: ['fakecommand', '--source-dir', cmdLineSrcDir], - globalOpt: { - 'source-dir': { - type: 'string', - }, - verbose: { - type: 'boolean', - demandOption: false, - }, - }, - }); - const configObject = { - verbose: true, - }; - const newArgv = applyConf({ ...params, configObject }); - assert.strictEqual(newArgv.sourceDir, cmdLineSrcDir); - }); - - it('uses a configured number value over a falsey default', () => { - const params = makeArgv({ - userCmd: ['fakecommand'], - globalOpt: { - 'number-of-retries': { - type: 'number', - default: 0, - }, - }, - }); - const configObject = { - numberOfRetries: 1, - }; - const newArgv = applyConf({ ...params, configObject }); - assert.strictEqual(newArgv.numberOfRetries, 1); - }); - - it('uses a falsey CLI number value over a configured one', () => { - const params = makeArgv({ - userCmd: ['fakecommand', '--number-of-retries=0'], - globalOpt: { - 'number-of-retries': { - type: 'number', - default: 1, - }, - }, - }); - const configObject = { - numberOfRetries: 1, - }; - const newArgv = applyConf({ ...params, configObject }); - assert.strictEqual(newArgv.numberOfRetries, 0); - }); - - it('uses configured value even when option defaults to undefined', () => { - const params = makeArgv({ - globalOpt: { - 'source-dir': { - type: 'string', - default: undefined, - demandOption: false, - }, - }, - }); - const configObject = { - sourceDir: '/configured/directory', - }; - const newArgv = applyConf({ ...params, configObject }); - assert.strictEqual(newArgv.sourceDir, '/configured/directory'); - }); - - it('throws an error when an option is not camel cased', () => { - const params = makeArgv({ - globalOpt: { - 'source-dir': { - type: 'string', - demandOption: false, - }, - }, - }); - const configObject = { - 'source-dir': 'fake/value/', - }; - assert.throws( - () => { - applyConf({ ...params, configObject }); - }, - UsageError, - 'The config option "source-dir" must be ' + - 'specified in camel case: "sourceDir"', - ); - }); - - it('throws an error when an option is invalid', () => { - const params = makeArgv({ - globalOpt: { - 'source-dir': { - type: 'string', - demandOption: false, - }, - }, - }); - const configObject = { - randomDir: 'fake/artifacts/dir', - }; - assert.throws( - () => { - applyConf({ ...params, configObject }); - }, - UsageError, - 'The config file ' + - 'at some/path/to/config.js specified an unknown option: "randomDir"', - ); - }); - - it('throws an error when a global option type is invalid', () => { - const params = makeArgv({ - globalOpt: { - retries: { - type: 'number', - default: 1, - }, - }, - }); - const configObject = { - retries: 'invalid-value', - }; - assert.throws( - () => applyConf({ ...params, configObject }), - UsageError, - 'The config file at some/path/to/config.js specified the ' + - 'type of "retries" incorrectly as "string" (expected type "number")', - ); - }); - - it('throws an error when the type of option value is invalid', () => { - const params = makeArgv({ - globalOpt: { - 'source-dir': { - type: 'string', - demandOption: false, - }, - }, - }); - const configObject = { - sourceDir: { randomKey: 'randomValue' }, - }; - assert.throws( - () => { - applyConf({ ...params, configObject }); - }, - UsageError, - 'The config file at some/path/to/config.js ' + - 'specified the type of "sourceDir" incorrectly', - ); - }); - - it('does not throw an error when the type of option value is count', () => { - const params = makeArgv({ - globalOpt: { - 'random-numeric-option': { - type: 'count', - default: 0, - }, - }, - }); - const configObject = { - randomNumericOption: 15, - }; - const newArgv = applyConf({ ...params, configObject }); - assert.strictEqual(newArgv.randomNumericOption, 15); - }); - }); - - describe('sub commands', () => { - it('preserves configured value over default', () => { - const params = makeArgv({ - userCmd: ['sign'], - command: 'sign', - commandOpt: { - 'api-key': { - requiresArg: true, - type: 'string', - demandOption: false, - default: 'pretend-default-value', - }, - }, - }); - const configObject = { - sign: { - apiKey: 'custom-configured-key', - }, - }; - const newArgv = applyConf({ ...params, configObject }); - assert.strictEqual(newArgv.apiKey, configObject.sign.apiKey); - }); - - it('preserves CLI value over default and configured', () => { - const cmdApiKey = 'api-key-cmd'; - const params = makeArgv({ - userCmd: ['sign', '--api-key', cmdApiKey], - command: 'sign', - commandOpt: { - 'api-key': { - requiresArg: true, - type: 'string', - demandOption: false, - default: 'pretend-default-value', - }, - }, - }); - const configObject = { - sign: { - apiKey: 'custom-configured-key', - }, - }; - const newArgv = applyConf({ ...params, configObject }); - assert.strictEqual(newArgv.apiKey, cmdApiKey); - }); - - it('preserves CLI value over configured', () => { - const cmdApiKey = 'api-key-cmd'; - const params = makeArgv({ - userCmd: ['sign', '--api-key', cmdApiKey], - command: 'sign', - commandOpt: { - 'api-key': { - requiresArg: true, - type: 'string', - demandOption: false, - }, - }, - }); - const configObject = { - sign: { - apiKey: 'custom-configured-key', - }, - }; - const newArgv = applyConf({ ...params, configObject }); - assert.strictEqual(newArgv.apiKey, cmdApiKey); - }); - - it('can load multiple configs for sub-command options', () => { - const params = makeArgv({ - userCmd: ['sign'], - command: 'sign', - commandOpt: { - 'file-path': { - demandOption: false, - type: 'string', - }, - }, - }); - - // Make sure the second sub-command option overrides the first. - const firstConfigObject = { - sign: { - filePath: 'first/path', - }, - }; - const secondConfigObject = { - sign: { - filePath: 'second/path', - }, - }; - - let argv = applyConf({ - ...params, - configObject: firstConfigObject, - }); - argv = applyConf({ - ...params, - argv, - configObject: secondConfigObject, - }); - assert.strictEqual(argv.filePath, secondConfigObject.sign.filePath); - }); - - it('preserves default value if not in config', () => { - const params = makeArgv({ - userCmd: ['sign'], - command: 'sign', - commandOpt: { - 'api-key': { - requiresArg: true, - type: 'string', - demandOption: false, - default: 'pretend-default-value-of-apiKey', - }, - 'api-url': { - requiresArg: true, - type: 'string', - demandOption: false, - default: 'pretend-default-value-of-apiUrl', - }, - }, - }); - const configObject = { - sign: { - apiKey: 'custom-configured-key', - }, - }; - const newArgv = applyConf({ ...params, configObject }); - assert.strictEqual(newArgv.apiUrl, 'pretend-default-value-of-apiUrl'); - }); - - it('preserves CLI value if not in config', () => { - const cmdApiKey = 'api-key-cmd'; - const params = makeArgv({ - userCmd: ['sign', '--api-key', cmdApiKey], - command: 'sign', - commandOpt: { - 'api-key': { - requiresArg: true, - type: 'string', - demandOption: false, - default: 'pretend-default-value-of-apiKey', - }, - 'api-url': { - requiresArg: true, - type: 'string', - demandOption: false, - default: 'pretend-default-value-of-apiUrl', - }, - }, - }); - const configObject = { - sign: { - apiUrl: 'custom-configured-url', - }, - }; - const newArgv = applyConf({ ...params, configObject }); - assert.strictEqual(newArgv.apiKey, cmdApiKey); - }); - - it('preserves global option when sub-command options exist', () => { - const params = makeArgv({ - userCmd: ['sign'], - command: 'sign', - commandOpt: { - 'api-key': { - requiresArg: true, - type: 'string', - demandOption: false, - }, - }, - globalOpt: { - 'source-dir': { - requiresArg: true, - type: 'string', - demandOption: false, - }, - }, - }); - const sourceDir = 'custom/source/dir'; - const configObject = { - // This global option should not be affected by the - // recursion code that processes the sub-command option. - sourceDir, - sign: { - apiKey: 'custom-configured-key', - }, - }; - const newArgv = applyConf({ ...params, configObject }); - assert.strictEqual(newArgv.sourceDir, sourceDir); - }); - - it('handles camel case sub-commands', () => { - const params = makeArgv({ - userCmd: ['sign-extension'], - command: 'sign-extension', - commandOpt: { - 'api-url': { - requiresArg: true, - type: 'string', - default: 'pretend-default-value-of-apiKey', - }, - }, - }); - const configObject = { - signExtension: { - apiUrl: 2, - }, - }; - assert.throws( - () => applyConf({ ...params, configObject }), - UsageError, - 'The config file at some/path/to/config.js ' + - 'specified the type of "apiUrl" incorrectly', - ); - }); - - it('throws an error when the option is not camel cased', () => { - const params = makeArgv({ - userCmd: ['sign'], - command: 'sign', - commandOpt: { - 'api-url': { - requiresArg: true, - type: 'string', - demandOption: false, - default: 'pretend-default-value-of-apiKey', - }, - }, - }); - const configObject = { - sign: { - 'api-url': 2, - }, - }; - assert.throws( - () => { - applyConf({ ...params, configObject }); - }, - UsageError, - 'The config option "api-url"' + - ' must be specified in camel case: "apiUrl"', - ); - }); - - it('throws an error when the option is invalid', () => { - const params = makeArgv({ - userCmd: ['sign'], - command: 'sign', - commandOpt: { - 'api-url': { - requiresArg: true, - type: 'string', - demandOption: false, - default: 'pretend-default-value-of-apiKey', - }, - }, - }); - const configObject = { - sign: { - randomOption: 'random-value', - }, - }; - assert.throws( - () => { - applyConf({ ...params, configObject }); - }, - UsageError, - 'The config file at ' + - 'some/path/to/config.js specified an unknown option: "randomOption"', - ); - }); - - it('throws an error when the type of option value is invalid', () => { - const params = makeArgv({ - userCmd: ['sign'], - command: 'sign', - commandOpt: { - 'api-url': { - requiresArg: true, - type: 'string', - demandOption: false, - default: 'pretend-default-value-of-apiKey', - }, - }, - }); - const configObject = { - sign: { - apiUrl: 2, - }, - }; - assert.throws( - () => { - applyConf({ ...params, configObject }); - }, - UsageError, - 'The config file at some/path/to/config.js ' + - 'specified the type of "apiUrl" incorrectly', - ); - }); - - it( - 'throws an error when the type of one of option values' + ' is invalid', - () => { - const params = makeArgv({ - userCmd: ['sign'], - command: 'sign', - commandOpt: { - 'api-url': { - requiresArg: true, - type: 'string', - demandOption: false, - default: 'pretend-default-value-of-apiKey', - }, - 'api-key': { - requiresArg: true, - type: 'string', - demandOption: false, - default: 'pretend-default-value-of-apiKey', - }, - }, - }); - const configObject = { - sign: { - apiUrl: 2, - apiKey: 'fake-api-key', - }, - }; - assert.throws( - () => { - applyConf({ ...params, configObject }); - }, - UsageError, - 'The config file at some/path/to/config.js ' + - 'specified the type of "apiUrl" incorrectly', - ); - }, - ); - - it('throws an error when the type of option is missing', () => { - const params = makeArgv({ - userCmd: ['sign'], - command: 'sign', - commandOpt: { - 'api-url': { - requiresArg: true, - demandOption: false, - default: 'pretend-default-value-of-apiKey', - }, - }, - }); - const configObject = { - sign: { - apiUrl: 2, - apiKey: 'fake-api-key', - }, - }; - assert.throws( - () => { - applyConf({ ...params, configObject }); - }, - WebExtError, - 'Option: apiUrl was defined without a type.', - ); - }); - - it('throws an error when type of unrelated sub option is invalid', () => { - const program = new Program(['run']); - - program.command('run', 'this is a fake command', sinon.stub(), { - 'no-reload': { - type: 'boolean', - demandOption: false, - }, - }); - - program.command('sign', 'this is a fake command', sinon.stub(), { - 'api-url': { - requiresArg: true, - type: 'string', - demandOption: false, - default: 'pretend-default-value-of-apiKey', - }, - }); - - const configObject = { - sign: { - apiUrl: 2, - }, - }; - - assert.throws( - () => { - applyConf({ - argv: program.yargs.exitProcess(false).argv, - options: program.options, - configObject, - }); - }, - UsageError, - 'The config file at some/path/to/config.js ' + - 'specified the type of "apiUrl" incorrectly as "number"' + - ' (expected type "string")', - ); - }); - }); - - describe('loadJSConfigFile', () => { - it('throws an error if the config file does not exist', () => { - return withTempDir(async (tmpDir) => { - const promise = loadJSConfigFile( - path.join(tmpDir.path(), 'non-existant-config.js'), - ); - await assert.isRejected(promise, UsageError); - await assert.isRejected(promise, /Cannot read config file/); - }); - }); - - it('throws an error if the config file has syntax errors', () => { - return withTempDir(async (tmpDir) => { - const configFilePath = path.join(tmpDir.path(), 'config.js'); - fs.writeFileSync( - configFilePath, - // missing = in two places - `module.exports { - sourceDir 'path/to/fake/source/dir', - };`, - ); - await assert.isRejected(loadJSConfigFile(configFilePath), UsageError); - }); - }); - - it('provides help message on load failure due to .js ESM config file and no package', () => { - return withTempDir(async (tmpDir) => { - const configFilePath = path.join(tmpDir.path(), 'config.js'); - fs.writeFileSync( - configFilePath, - 'export default { sourceDir: "fake/dir" };', - ); - const promise = loadJSConfigFile(configFilePath); - await assert.isRejected(promise, UsageError); - await assert.isRejected(promise, new RegExp(HELP_ERR_IMPORTEXPORT_CJS)); - }); - }); - - it('provides help message on load failure due to .js CJS config file and type module package', () => - withTempDir(async (tmpDir) => { - const cfgFilePath = path.join(tmpDir.path(), 'config.js'); - const pkgFilePath = path.join(tmpDir.path(), 'package.json'); - fs.writeFileSync(cfgFilePath, 'module.exports = {};'); - fs.writeFileSync(pkgFilePath, JSON.stringify({ type: 'module' })); - const promise = loadJSConfigFile(cfgFilePath); - await assert.isRejected(promise, UsageError); - await assert.isRejected(promise, new RegExp(HELP_ERR_MODULE_FROM_ESM)); - })); - - it('provides help message on load failure due to .js ESM config file and type commonjs package', () => - withTempDir(async (tmpDir) => { - const cfgWithExportFilePath = path.join( - tmpDir.path(), - 'config-with-export.js', - ); - const cfgWithImportFilePath = path.join( - tmpDir.path(), - 'config-with-import.js', - ); - const pkgFilePath = path.join(tmpDir.path(), 'package.json'); - fs.writeFileSync(cfgWithExportFilePath, 'export default {}'); - fs.writeFileSync( - cfgWithImportFilePath, - 'import test from "./test.js";', - ); - fs.writeFileSync(pkgFilePath, JSON.stringify({ type: 'commonjs' })); - - const promiseErrOnExport = loadJSConfigFile(cfgWithExportFilePath); - await assert.isRejected(promiseErrOnExport, UsageError); - await assert.isRejected( - promiseErrOnExport, - new RegExp(HELP_ERR_IMPORTEXPORT_CJS), - ); - - const promiseErrOnImport = loadJSConfigFile(cfgWithImportFilePath); - await assert.isRejected(promiseErrOnImport, UsageError); - await assert.isRejected( - promiseErrOnImport, - new RegExp(HELP_ERR_IMPORTEXPORT_CJS), - ); - })); - - it('parses successfully .js file as CommonJS config file', () => { - return withTempDir(async (tmpDir) => { - const configFilePath = path.join(tmpDir.path(), 'config.js'); - fs.writeFileSync( - configFilePath, - `module.exports = { - sourceDir: 'fake/dir', - };`, - ); - consoleStream.flushCapturedLogs(); - consoleStream.startCapturing(); - - const promise = loadJSConfigFile(configFilePath); - - const { capturedMessages } = consoleStream; - consoleStream.stopCapturing(); - - await assert.becomes(promise, { sourceDir: 'fake/dir' }); - assert.include( - capturedMessages.join('\n'), - `WARNING: config file ${configFilePath} ${WARN_LEGACY_JS_EXT}`, - ); - }); - }); - - it('parses successfully .mjs file as ESM config file when no package type', () => - withTempDir(async (tmpDir) => { - const cfgFilePath = path.join(tmpDir.path(), 'config.mjs'); - fs.writeFileSync( - cfgFilePath, - 'export default { sourceDir: "fake/dir" };', - ); - const promise = loadJSConfigFile(cfgFilePath); - await assert.becomes(promise, { sourceDir: 'fake/dir' }); - })); - - it('parses .cjs file as CommonJS config file when no package type', () => - withTempDir(async (tmpDir) => { - const cfgFilePath = path.join(tmpDir.path(), 'config.cjs'); - fs.writeFileSync( - cfgFilePath, - 'module.exports = { sourceDir: "fake/dir" };', - ); - const promise = loadJSConfigFile(cfgFilePath); - await assert.becomes(promise, { sourceDir: 'fake/dir' }); - })); - - it('parses package.json file correctly', () => { - return withTempDir(async (tmpDir) => { - const configFilePath = path.join(tmpDir.path(), 'package.json'); - fs.writeFileSync( - configFilePath, - `{ - "name": "dummy-package-json", - "version": "1.0.0", - "webExt": { - "sourceDir": "path/to/fake/source/dir" - } - }`, - ); - const configObj = await loadJSConfigFile(configFilePath); - assert.equal(configObj.sourceDir, 'path/to/fake/source/dir'); - }); - }); - - it('does not throw an error for an empty config', () => { - return withTempDir(async (tmpDir) => { - const configFilePath = path.join(tmpDir.path(), 'config.js'); - fs.writeFileSync(configFilePath, 'module.exports = {};'); - await loadJSConfigFile(configFilePath); - }); - }); - - it('returns an empty object when webExt key is not in package.json', () => { - return withTempDir(async (tmpDir) => { - const configFilePath = path.join(tmpDir.path(), 'package.json'); - fs.writeFileSync( - configFilePath, - `{ - "name": "dummy-package-json", - "version": "1.0.0" - }`, - ); - const configObj = await loadJSConfigFile(configFilePath); - assert.deepEqual(configObj, {}); - }); - }); - }); - - describe('discoverConfigFiles', () => { - function _discoverConfigFiles(params = {}) { - return discoverConfigFiles({ - // By default, do not look in the real home directory. - getHomeDir: () => '/not-a-directory', - ...params, - }); - } - - it('finds a config in your home directory', () => { - return withTempDir(async (tmpDir) => { - // This is actually web-ext itself's package.json file, which - // will be discovered because it's inside current working - // directory - const packageJSON = path.join(process.cwd(), 'package.json'); - const homeDirConfig = path.join(tmpDir.path(), '.web-ext-config.js'); - await fs.writeFile(homeDirConfig, 'module.exports = {}'); - assert.deepEqual( - // Stub out getHomeDir() so that it returns tmpDir.path() - // as if that was a user's home directory. - await _discoverConfigFiles({ - getHomeDir: () => tmpDir.path(), - }), - [path.resolve(homeDirConfig), packageJSON], - ); - }); - }); - - it('finds a config in your working directory', () => { - return withTempDir(async (tmpDir) => { - const lastDir = process.cwd(); - process.chdir(tmpDir.path()); - try { - const expectedConfig = path.resolve( - path.join(process.cwd(), '.web-ext-config.js'), - ); - await fs.writeFile(expectedConfig, 'module.exports = {}'); - - assert.deepEqual(await _discoverConfigFiles(), [expectedConfig]); - } finally { - process.chdir(lastDir); - } - }); - }); - - it('discovers all config files', () => { - return withTempDir(async (tmpDir) => { - const lastDir = process.cwd(); - process.chdir(tmpDir.path()); - try { - const fakeHomeDir = path.join(tmpDir.path(), 'home-dir'); - await fs.mkdir(fakeHomeDir); - const globalConfigMjs = path.resolve( - path.join(fakeHomeDir, '.web-ext-config.mjs'), - ); - const globalConfigCjs = path.resolve( - path.join(fakeHomeDir, '.web-ext-config.cjs'), - ); - const globalConfig = path.resolve( - path.join(fakeHomeDir, '.web-ext-config.js'), - ); - - await fs.writeFile(globalConfigMjs, 'export default {}'); - await fs.writeFile(globalConfigCjs, 'module.exports = {}'); - await fs.writeFile(globalConfig, 'module.exports = {}'); - - const packageJSONConfig = path.resolve( - path.join(process.cwd(), 'package.json'), - ); - await fs.writeFile( - packageJSONConfig, - `{ - "name": "dummy-package-json", - "version": "1.0.0", - "webExt": {} - }`, - ); - - const projectConfigMjs = path.resolve( - path.join(process.cwd(), '.web-ext-config.mjs'), - ); - const projectConfigCjs = path.resolve( - path.join(process.cwd(), '.web-ext-config.cjs'), - ); - const projectConfig = path.resolve( - path.join(process.cwd(), '.web-ext-config.js'), - ); - - await fs.writeFile(projectConfigMjs, 'export default {}'); - await fs.writeFile(projectConfigCjs, 'module.exports = {}'); - await fs.writeFile(projectConfig, 'module.exports = {}'); - - const projectConfigUndottedMjs = path.resolve( - path.join(process.cwd(), 'web-ext-config.mjs'), - ); - const projectConfigUndottedCjs = path.resolve( - path.join(process.cwd(), 'web-ext-config.cjs'), - ); - const projectConfigUndotted = path.resolve( - path.join(process.cwd(), 'web-ext-config.js'), - ); - - await fs.writeFile(projectConfigUndottedMjs, 'export default {}'); - await fs.writeFile(projectConfigUndottedCjs, 'module.exports = {}'); - await fs.writeFile(projectConfigUndotted, 'module.exports = {}'); - - assert.deepEqual( - await _discoverConfigFiles({ - getHomeDir: () => fakeHomeDir, - }), - [ - globalConfigMjs, - globalConfigCjs, - globalConfig, - packageJSONConfig, - projectConfigUndottedMjs, - projectConfigUndottedCjs, - projectConfigUndotted, - projectConfigMjs, - projectConfigCjs, - projectConfig, - ], - ); - } finally { - process.chdir(lastDir); - } - }); - }); - }); -}); diff --git a/tests/unit/test.program.js b/tests/unit/test.program.js deleted file mode 100644 index 15635d36cf..0000000000 --- a/tests/unit/test.program.js +++ /dev/null @@ -1,935 +0,0 @@ -import path from 'path'; - -import { describe, it } from 'mocha'; -import git from 'git-rev-sync'; -import { fs } from 'mz'; -import * as sinon from 'sinon'; -import { assert } from 'chai'; - -import { applyConfigToArgv } from '../../src/config.js'; -import { - defaultVersionGetter, - main, - Program, - throwUsageErrorIfArray, -} from '../../src/program.js'; -import commands from '../../src/cmd/index.js'; -import { onlyInstancesOf, UsageError } from '../../src/errors.js'; -import { - createFakeProcess, - fake, - makeSureItFails, - ErrorWithCode, - moduleURLToDirname, -} from './helpers.js'; -import { - consoleStream, // instance is imported to inspect logged messages - ConsoleStream, -} from '../../src/util/logger.js'; - -const { spy } = sinon; - -describe('program.Program', () => { - function execProgram(program, options = {}) { - const fakeProcess = createFakeProcess(); - const absolutePackageDir = path.join( - moduleURLToDirname(import.meta.url), - '..', - '..', - ); - if (program.absolutePackageDir == null) { - program.absolutePackageDir = absolutePackageDir; - } - return program.execute({ - getVersion: async () => 'not-a-real-version', - checkForUpdates: spy(), - systemProcess: fakeProcess, - shouldExitProgram: false, - ...options, - }); - } - - it('executes a command callback', () => { - const thing = spy(() => Promise.resolve()); - const program = new Program(['thing']).command( - 'thing', - 'does a thing', - thing, - null, - ); - return execProgram(program).then(() => { - sinon.assert.called(thing); - }); - }); - - it('reports unknown commands', () => { - const program = new Program(['thing']); - return execProgram(program) - .then(makeSureItFails()) - .catch( - onlyInstancesOf(UsageError, (error) => { - assert.match(error.message, /Unknown argument: thing/); - }), - ); - }); - - it('reports missing command', () => { - const program = new Program([]); - return execProgram(program) - .then(makeSureItFails()) - .catch( - onlyInstancesOf(UsageError, (error) => { - assert.match(error.message, /No sub-command was specified/); - }), - ); - }); - - it('exits 1 on a thrown error', () => { - const fakeProcess = createFakeProcess(); - const program = new Program(['cmd']).command('cmd', 'some command', () => { - throw new Error('this is an error from a command handler'); - }); - return execProgram(program, { - systemProcess: fakeProcess, - shouldExitProgram: true, - }).then(() => { - sinon.assert.calledOnce(fakeProcess.exit); - sinon.assert.calledWith(fakeProcess.exit, 1); - }); - }); - - it('throws an error if sub-command is given an argument', () => { - const program = new Program(['thing', 'nope']).command( - 'thing', - '', - () => {}, - ); - return execProgram(program) - .then(makeSureItFails()) - .catch((error) => { - assert.match(error.message, /This command does not take any arguments/); - }); - }); - - it('handles errors that have codes', () => { - const program = new Program(['cmd']).command('cmd', 'some command', () => { - const error = new ErrorWithCode(); - throw error; - }); - // This is just a smoke test to make sure the error code doesn't - // introduce an unexpected exception. - return execProgram(program) - .then(makeSureItFails()) - .catch((error) => { - assert.match(error.message, /pretend this is a system error/); - }); - }); - - it('lets commands define options', () => { - const handler = spy(() => Promise.resolve()); - const program = new Program(['cmd']).command( - 'cmd', - 'some command', - handler, - { - 'some-option': { - type: 'string', - default: 'default value', - }, - }, - ); - return execProgram(program).then(() => { - // This ensures that the default configuration for the option has - // been applied. - sinon.assert.calledWithMatch(handler, { someOption: 'default value' }); - }); - }); - - it('preserves global option configuration', () => { - const handler = spy(() => Promise.resolve()); - const program = new Program(['cmd']) - .setGlobalOptions({ - 'global-option': { - type: 'string', - default: 'the default', - }, - }) - .command('cmd', 'some command', handler, { - 'some-option': { - type: 'string', - default: 'default value', - }, - }); - return execProgram(program).then(() => { - // By checking the global default, it ensures that default configuration - // will be applied to sub commands. - sinon.assert.calledWithMatch(handler, { - someOption: 'default value', - globalOption: 'the default', - }); - }); - }); - - it('reads option values from env vars in sub commands', () => { - // Set an env var that mimics web-ext cmd --some-opt=value - process.env.WEB_EXT_SOME_OPT = 'value'; - let valueReceived; - const program = new Program(['cmd']).command( - 'cmd', - 'some command', - ({ someOpt }) => { - valueReceived = someOpt; - }, - { - 'some-opt': { - type: 'string', - describe: 'example option', - }, - }, - ); - return execProgram(program, { shouldExitProgram: true }).then(() => { - assert.equal(valueReceived, 'value'); - delete process.env.WEB_EXT_SOME_OPT; - }); - }); - - it('configures the logger when verbose', () => { - const logStream = fake(new ConsoleStream()); - - const program = new Program(['--verbose', 'thing']); - program.setGlobalOptions({ - verbose: { - type: 'boolean', - }, - }); - program.command('thing', 'does a thing', () => {}); - - return execProgram(program, { - getVersion: spy(), - logStream, - }).then(() => { - sinon.assert.called(logStream.makeVerbose); - }); - }); - - it('checks the version when verbose', () => { - const version = spy(); - const program = new Program(['--verbose', 'thing']); - program.setGlobalOptions({ - verbose: { - type: 'boolean', - }, - }); - program.command('thing', 'does a thing', () => {}); - return execProgram(program, { getVersion: version }).then(() => { - sinon.assert.calledWith( - version, - path.join(moduleURLToDirname(import.meta.url), '..', '..'), - ); - }); - }); - - it('does not configure the logger unless verbose', () => { - const logStream = fake(new ConsoleStream()); - const program = new Program(['thing']).command('thing', '', () => {}); - program.setGlobalOptions({ - verbose: { - type: 'boolean', - demandOption: false, - }, - }); - return execProgram(program, { logStream }).then(() => { - sinon.assert.notCalled(logStream.makeVerbose); - }); - }); - - it('logs UsageErrors into console', () => { - // Clear console stream from previous messages and start recording - consoleStream.stopCapturing(); - consoleStream.flushCapturedLogs(); - consoleStream.startCapturing(); - - const program = new Program(['thing']).command('thing', '', () => { - throw new UsageError('some error'); - }); - program.setGlobalOptions({ - verbose: { - type: 'boolean', - demandOption: false, - }, - }); - return execProgram(program) - .then(makeSureItFails()) - .catch( - onlyInstancesOf(UsageError, (error) => { - const { capturedMessages } = consoleStream; - // Stop recording - consoleStream.stopCapturing(); - assert.match(error.message, /some error/); - assert.ok( - capturedMessages.some((message) => message.match(/some error/)), - ); - }), - ); - }); - - it('throws an error about unknown commands', () => { - return execProgram(new Program(['nope'])) - .then(makeSureItFails()) - .catch((error) => { - assert.match(error.message, /Unknown argument: nope/); - }); - }); - - it('throws an error about unknown options', () => { - return execProgram(new Program(['--nope'])) - .then(makeSureItFails()) - .catch((error) => { - // Make sure that the option name is in the error message. - // Be careful not to rely on any text from yargs since it's localized. - assert.match(error.message, /nope/); - }); - }); - - it('throws an error about unknown sub-command options', () => { - const program = new Program(['thing', '--nope']).command( - 'thing', - '', - () => {}, - ); - return execProgram(program) - .then(makeSureItFails()) - .catch((error) => { - // Make sure that the option name is in the error message. - // Be careful not to rely on any text from yargs since it's localized. - assert.match(error.message, /nope/); - }); - }); - - it('passes on webextVersion', () => { - let valueReceived; - const program = new Program(['cmd']).command( - 'cmd', - 'some command', - ({ webextVersion }) => { - valueReceived = webextVersion; - }, - {}, - ); - - return execProgram(program, { shouldExitProgram: true }).then(() => { - assert.equal(valueReceived, 'not-a-real-version'); - delete process.env.WEB_EXT_SOME_OPT; - }); - }); - - it('checks for updates automatically', () => { - const handler = spy(); - const getVersion = async () => 'some-package-version'; - const checkForUpdates = sinon.stub(); - const program = new Program(['run']).command( - 'run', - 'some command', - handler, - ); - return execProgram(program, { - checkForUpdates, - getVersion, - globalEnv: 'production', - }).then(() => { - sinon.assert.calledWith(checkForUpdates, { - version: 'some-package-version', - }); - }); - }); - - it('does not check for updates during development', () => { - const handler = spy(); - const getVersion = async () => 'some-package-version'; - const checkForUpdates = sinon.stub(); - const program = new Program(['run']).command( - 'run', - 'some command', - handler, - ); - return execProgram(program, { - checkForUpdates, - getVersion, - globalEnv: 'development', - }).then(() => { - sinon.assert.notCalled(checkForUpdates); - }); - }); - - it('does remove environment vars unsupported by the selected command', async () => { - const handlerRun = spy(); - const handlerSpy = spy(); - const program = new Program(['run', '--another-run-option=from-cli']); - const fakeEnv = { - WEB_EXT_RUN_OPTION: 'from-env', - WEB_EXT_VERBOSE: 'true', - WEB_EXT_SIGN_OPTION: 'from-env', - // Also include some environment vars that miss the '_' separator - // between envPrefix and option name. - WEB_EXTANOTHER_RUN_OPTION: 'from-env', - WEB_EXTANOTHER_SIGN_OPTION: 'from-env', - }; - program.setGlobalOptions({ - verbose: { - type: 'boolean', - demandOption: false, - default: false, - }, - }); - program.command('run', 'some command', handlerRun, { - 'run-option': { - demandOption: true, - type: 'string', - }, - 'another-run-option': { - demandOption: true, - default: 'from-default', - type: 'string', - }, - }); - program.command('sign', 'another command', handlerSpy, { - 'sign-option': { - demandOption: true, - default: 'from-default', - type: 'string', - }, - 'another-sign-option': { - demandOption: true, - default: 'from-default', - type: 'string', - }, - }); - - program.cleanupProcessEnvConfigs({ env: fakeEnv }); - assert.deepEqual(fakeEnv, { - WEB_EXT_RUN_OPTION: 'from-env', - WEB_EXTANOTHER_RUN_OPTION: 'from-env', - WEB_EXT_VERBOSE: 'true', - }); - }); -}); - -describe('program.main', () => { - function execProgram( - argv, - { projectRoot = '', runOptions, ...mainOptions } = {}, - ) { - return main(projectRoot, { - argv, - getVersion: () => 'not-a-real-version', - runOptions: { - discoverConfigFiles: async () => [], - checkForUpdates: spy(), - shouldExitProgram: false, - systemProcess: createFakeProcess(), - ...runOptions, - }, - ...mainOptions, - }); - } - - function makeConfigLoader({ configObjects }) { - return (fileName) => { - const conf = configObjects[fileName]; - if (!conf) { - throw new Error(`Config file was not mapped: ${fileName}`); - } - return conf; - }; - } - - it('executes a command handler', () => { - const fakeCommands = fake(commands, { - build: () => Promise.resolve(), - }); - return execProgram(['build'], { commands: fakeCommands }).then(() => { - // This is a smoke test mainly to make sure main() configures - // options with handlers. It does not extensively test the - // configuration of all handlers. - sinon.assert.called(fakeCommands.build); - }); - }); - - it('throws an error if no command is given', () => { - const fakeCommands = fake(commands, {}); - return execProgram([], { commands: fakeCommands }) - .then(makeSureItFails()) - .catch((error) => { - assert.match(error.message, /You must specify a command/); - }); - }); - - it('can get the program version', async () => { - const fakeVersionGetter = sinon.spy(() => '<version>'); - const fakeCommands = fake(commands, { - build: () => Promise.resolve(), - }); - const projectRoot = '/pretend/project/root'; - // For some reason, executing --version like this - // requires a command. In the real CLI, it does not. - await execProgram(['--version', 'build'], { - projectRoot, - commands: fakeCommands, - getVersion: fakeVersionGetter, - }); - - sinon.assert.calledWith(fakeVersionGetter, projectRoot); - }); - - it('turns sourceDir into an absolute path', () => { - const fakeCommands = fake(commands, { - build: () => Promise.resolve(), - }); - return execProgram(['build', '--source-dir', '..'], { - commands: fakeCommands, - }).then(() => { - sinon.assert.calledWithMatch(fakeCommands.build, { - sourceDir: path.resolve(path.join(process.cwd(), '..')), - }); - }); - }); - - it('normalizes the artifactsDir path', () => { - const fakeCommands = fake(commands, { - build: () => Promise.resolve(), - }); - return execProgram( - // Add a double slash to the path, which will be fixed by normalization. - ['build', '--artifacts-dir', process.cwd() + path.sep + path.sep], - { commands: fakeCommands }, - ).then(() => { - sinon.assert.calledWithMatch(fakeCommands.build, { - artifactsDir: process.cwd() + path.sep, - }); - }); - }); - - it('passes the path of a firefox binary when specified', () => { - const fakeCommands = fake(commands, { - run: () => Promise.resolve(), - }); - return execProgram(['run', '--firefox-binary', '/path/to/firefox-binary'], { - commands: fakeCommands, - }).then(() => { - sinon.assert.calledWithMatch(fakeCommands.run, { - firefox: '/path/to/firefox-binary', - }); - }); - }); - - it('passes the url of a firefox binary when specified', async () => { - const fakeCommands = fake(commands, { - run: () => Promise.resolve(), - }); - const opts = { commands: fakeCommands }; - - await execProgram(['run', '--start-url', 'www.example.com'], opts); - sinon.assert.calledWithMatch(fakeCommands.run, { - startUrl: ['www.example.com'], - }); - - // Repeat test with multiple urls. - await execProgram( - ['run', '--start-url', 'www.example.com', 'www.example2.com'], - opts, - ); - sinon.assert.calledWithMatch(fakeCommands.run, { - startUrl: ['www.example.com', 'www.example2.com'], - }); - - await assert.isRejected( - execProgram(['run', '--start-url'], opts), - /Not enough arguments following: start-url/, - ); - }); - - it('opens browser console when --browser-console is specified', () => { - const fakeCommands = fake(commands, { - run: () => Promise.resolve(), - }); - return execProgram(['run', '--browser-console'], { - commands: fakeCommands, - }).then(() => { - sinon.assert.calledWithMatch(fakeCommands.run, { browserConsole: true }); - }); - }); - - it('opens devtools when --devtools is specified', () => { - const fakeCommands = fake(commands, { - run: () => Promise.resolve(), - }); - return execProgram(['run', '--devtools'], { commands: fakeCommands }).then( - () => { - sinon.assert.calledWithMatch(fakeCommands.run, { devtools: true }); - }, - ); - }); - - async function testWatchFileOption(watchFile) { - const fakeCommands = fake(commands, { - run: () => Promise.resolve(), - }); - - return execProgram(['run', '--watch-file', ...watchFile], { - commands: fakeCommands, - }).then(() => { - sinon.assert.calledWithMatch(fakeCommands.run, { watchFile }); - }); - } - - it('calls run with a watched file', () => { - testWatchFileOption(['path/to/fake/file.txt']); - }); - - it('calls run with multiple watched files', () => { - testWatchFileOption(['path/to/fake/file.txt', 'path/to/fake/file2.txt']); - }); - - async function testWatchIgnoredOption(watchIgnored) { - const fakeCommands = fake(commands, { - run: () => Promise.resolve(), - }); - - await execProgram(['run', '--watch-ignored', ...watchIgnored], { - commands: fakeCommands, - }); - - sinon.assert.calledWithMatch(execProgram, fakeCommands.run, { - watchIgnored, - }); - } - - it('calls run with a single watchIgnored pattern', () => { - testWatchIgnoredOption(['path/to/fake/file1.txt']); - }); - - it('calls run with a multiple watchIgnored patterns', () => { - testWatchIgnoredOption(['path/to/fake/file1.txt', 'path/to/fake/pattern*']); - }); - - it('converts custom preferences into an object', () => { - const fakeCommands = fake(commands, { - run: () => Promise.resolve(), - }); - return execProgram( - ['run', '--pref', 'prop=true', '--pref', 'prop2=value2'], - { commands: fakeCommands }, - ).then(() => { - const { pref } = fakeCommands.run.firstCall.args[0]; - assert.isObject(pref); - assert.equal(pref.prop, true); - assert.equal(pref.prop2, 'value2'); - }); - }); - - it('passes shouldExitProgram option to commands', () => { - const fakeCommands = fake(commands, { - lint: () => Promise.resolve(), - }); - return execProgram(['lint'], { commands: fakeCommands }).then(() => { - const options = fakeCommands.lint.firstCall.args[1]; - assert.strictEqual(options.shouldExitProgram, false); - }); - }); - - it('applies options from the specified config file', async () => { - const fakeCommands = fake(commands, { - lint: () => Promise.resolve(), - }); - const configObject = { - lint: { - selfHosted: true, - }, - }; - // Instead of loading/parsing a real file, just return an object. - const fakeLoadJSConfigFile = sinon.spy(() => { - return configObject; - }); - - await execProgram(['lint', '--config', 'path/to/web-ext-config.js'], { - commands: fakeCommands, - runOptions: { - loadJSConfigFile: fakeLoadJSConfigFile, - }, - }); - - const options = fakeCommands.lint.firstCall.args[0]; - // This makes sure that the config object was applied - // to the lint command options. - assert.equal(options.selfHosted, configObject.lint.selfHosted); - }); - - it('discovers config files', async () => { - const fakeCommands = fake(commands, { - lint: () => Promise.resolve(), - }); - const configObject = { - lint: { - selfHosted: true, - }, - }; - // Instead of loading/parsing a real file, just return an object. - const fakeLoadJSConfigFile = sinon.spy(() => { - return configObject; - }); - - const discoveredFile = 'fake/config.js'; - await execProgram(['lint'], { - commands: fakeCommands, - runOptions: { - discoverConfigFiles: async () => [discoveredFile], - loadJSConfigFile: fakeLoadJSConfigFile, - }, - }); - - const options = fakeCommands.lint.firstCall.args[0]; - // This makes sure that the config object was applied - // to the lint command options. - assert.equal(options.selfHosted, configObject.lint.selfHosted); - - sinon.assert.calledWith(fakeLoadJSConfigFile, discoveredFile); - }); - - it('lets you disable config discovery', async () => { - const fakeCommands = fake(commands, { - lint: () => Promise.resolve(), - }); - - const discoverConfigFiles = sinon.spy(() => Promise.resolve([])); - await execProgram(['lint', '--no-config-discovery'], { - commands: fakeCommands, - runOptions: { - discoverConfigFiles, - }, - }); - - sinon.assert.notCalled(discoverConfigFiles); - }); - - it('applies config files in order', async () => { - const fakeCommands = fake(commands, { - lint: () => Promise.resolve(), - }); - - const globalConfig = 'home/dir/.web-ext-config.js'; - const projectConfig = 'project/dir/web-ext-config.js'; - const customConfig = path.resolve('custom/web-ext-config.js'); - - const loadJSConfigFile = makeConfigLoader({ - configObjects: { - [globalConfig]: { - noInput: true, - }, - [projectConfig]: { - verbose: true, - }, - [customConfig]: { - lint: { - selfHosted: true, - }, - }, - }, - }); - const fakeApplyConfigToArgv = sinon.spy(applyConfigToArgv); - - await execProgram(['lint', '--config', customConfig], { - commands: fakeCommands, - runOptions: { - applyConfigToArgv: fakeApplyConfigToArgv, - discoverConfigFiles: async () => [globalConfig, projectConfig], - loadJSConfigFile, - }, - }); - - // Check that the config files were all applied to argv. - const options = fakeCommands.lint.firstCall.args[0]; - assert.equal(options.noInput, true); - assert.equal(options.verbose, true); - assert.equal(options.selfHosted, true); - - // Make sure the config files were loaded in the right order. - assert.include(fakeApplyConfigToArgv.firstCall.args[0], { - configFileName: globalConfig, - }); - assert.include(fakeApplyConfigToArgv.secondCall.args[0], { - configFileName: projectConfig, - }); - assert.include(fakeApplyConfigToArgv.thirdCall.args[0], { - configFileName: customConfig, - }); - }); - - it('overwrites old config values', async () => { - const fakeCommands = fake(commands, { - lint: () => Promise.resolve(), - }); - - const globalConfig = path.resolve('home/dir/.web-ext-config.js'); - const customConfig = path.resolve('custom/web-ext-config.js'); - - const finalSourceDir = path.resolve('final/source-dir'); - const loadJSConfigFile = makeConfigLoader({ - configObjects: { - // This config is loaded first. - [globalConfig]: { - sourceDir: 'first/source-dir', - }, - // This config is loaded next which overwrites the old value. - [customConfig]: { - sourceDir: finalSourceDir, - }, - }, - }); - - await execProgram(['lint', '--config', customConfig], { - commands: fakeCommands, - runOptions: { - discoverConfigFiles: async () => [globalConfig], - loadJSConfigFile, - }, - }); - - const options = fakeCommands.lint.firstCall.args[0]; - // This should equal the final configured value. - assert.equal(options.sourceDir, finalSourceDir); - }); - - it('enables verbose more from config file', async () => { - const logStream = fake(new ConsoleStream()); - const fakeCommands = fake(commands, { - lint: () => Promise.resolve(), - }); - - const customConfig = path.resolve('custom/web-ext-config.js'); - - const loadJSConfigFile = makeConfigLoader({ - configObjects: { - [customConfig]: { - verbose: true, - }, - }, - }); - - await execProgram(['lint', '--config', customConfig], { - commands: fakeCommands, - runOptions: { - discoverConfigFiles: async () => [], - loadJSConfigFile, - logStream, - }, - }); - - sinon.assert.called(logStream.makeVerbose); - }); - - it('requires a parameter after --ignore-files', async () => { - const fakeCommands = fake(commands); - return execProgram(['build', '--ignore-files'], { commands: fakeCommands }) - .then(makeSureItFails()) - .catch((error) => { - assert.match( - error.message, - /Not enough arguments following: ignore-files/, - ); - }); - }); - - it('supports multiple parameters after --ignore-files', async () => { - const fakeCommands = fake(commands, { - build: () => Promise.resolve(), - }); - return execProgram( - ['build', '--ignore-files', 'f1', 'f2', '-a', 'xxx', '-i', 'f4', 'f3'], - { commands: fakeCommands }, - ).then(() => { - const options = fakeCommands.build.firstCall.args[0]; - assert.deepEqual(options.ignoreFiles, ['f1', 'f2', 'f4', 'f3']); - assert.equal(options.artifactsDir, 'xxx'); - }); - }); - - it('does pass a custom apk component with --firefox-apk-component', async () => { - const fakeCommands = fake(commands, { - build: () => Promise.resolve(), - }); - await execProgram( - ['run', '--firefox-apk-component', 'CustomView', '-t', 'firefox-android'], - { commands: fakeCommands }, - ); - const options = fakeCommands.run.firstCall.args[0]; - assert.equal(options.firefoxApkComponent, 'CustomView'); - }); - - describe('--no-input', () => { - const fakeCommands = fake(commands, { - run: () => Promise.resolve(), - }); - - const testCases = [ - ['--no-input', { noInput: true }], - ['--no-input=false', { noInput: false }], - ['--no-input=true', { noInput: true }], - ['--input', { noInput: false }], - ['--input=false', { noInput: true }], - ['--input=true', { noInput: false }], - ['-v', { noInput: undefined }], - ]; - - for (const [cliArg, expected] of testCases) { - it(`does parse "${cliArg}" cli argument as ${JSON.stringify( - expected, - )}`, async () => { - await execProgram(['run', cliArg], { commands: fakeCommands }); - sinon.assert.calledWithMatch(fakeCommands.run, expected); - fakeCommands.run.resetHistory(); - }); - } - }); -}); - -describe('program.defaultVersionGetter', () => { - const projectRoot = path.join( - moduleURLToDirname(import.meta.url), - '..', - '..', - ); - - it('returns the package version in production', () => { - const pkgFile = path.join(projectRoot, 'package.json'); - return fs.readFile(pkgFile).then(async (pkgData) => { - const testBuildEnv = { globalEnv: 'production' }; - assert.equal( - await defaultVersionGetter(projectRoot, testBuildEnv), - JSON.parse(pkgData).version, - ); - }); - }); - - it('returns git commit information in development', function () { - return fs.exists(path.join(projectRoot, '.git')).then(async (exists) => { - if (!exists) { - this.skip(); - } - const commit = `${git.branch(projectRoot)}-${git.long(projectRoot)}`; - const testBuildEnv = { globalEnv: 'development' }; - assert.equal( - await defaultVersionGetter(projectRoot, testBuildEnv), - commit, - ); - }); - }); -}); - -describe('program.throwUsageErrorIfArray', () => { - const errorMessage = 'This is the expected error message'; - const innerFn = throwUsageErrorIfArray(errorMessage); - - it('throws UsageError on array', () => { - assert.throws(() => innerFn(['foo', 'bar']), UsageError, errorMessage); - }); -}); diff --git a/tests/unit/test.web-ext.js b/tests/unit/test.web-ext.js deleted file mode 100644 index d80b8f0e4f..0000000000 --- a/tests/unit/test.web-ext.js +++ /dev/null @@ -1,49 +0,0 @@ -import { afterEach, describe, it } from 'mocha'; -import { assert } from 'chai'; -import * as sinon from 'sinon'; - -import { mockModule, resetMockModules } from './helpers.js'; -import webExt from '../../src/main.js'; -import { main } from '../../src/program.js'; - -describe('webExt', () => { - it('exposes main', () => { - assert.equal(webExt.main, main); - }); - - describe('exposes commands', () => { - let stub; - afterEach(() => { - resetMockModules(); - stub = undefined; - }); - for (const cmd of ['run', 'lint', 'build', 'sign', 'docs', 'dump-config']) { - it(`lazily loads cmd/${cmd}`, async () => { - const cmdModule = await import(`../../src/cmd/${cmd}.js`); - stub = sinon.stub({ default: cmdModule.default }, 'default'); - - mockModule({ - moduleURL: `../../src/cmd/${cmd}.js`, - importerModuleURL: import.meta.url, - namedExports: {}, - defaultExport: stub, - }); - - const params = {}; - const options = {}; - const expectedResult = {}; - stub?.returns(expectedResult); - - const { default: webExtModule } = await import('../../src/main.js'); - const runCommand = - webExtModule.cmd[cmd === 'dump-config' ? 'dumpConfig' : cmd]; - const result = await runCommand(params, options); - - // Check whether parameters and return values are forwarded as-is. - sinon.assert.calledOnce(stub); - sinon.assert.calledWithExactly(stub, params, options); - assert.equal(expectedResult, result); - }); - } - }); -});