diff --git a/.github/actions/prepare-test/action.yml b/.github/actions/prepare-test/action.yml index a6134cc706..2cbe4626e9 100644 --- a/.github/actions/prepare-test/action.yml +++ b/.github/actions/prepare-test/action.yml @@ -2,8 +2,12 @@ name: "Prepare test" description: Performs some preparation to run tests inputs: version: - description: "The version of the CodeQL CLI to use. Can be 'latest', 'cached', 'nightly-latest', 'nightly-YYYY-MM-DD', or 'stable-YYYY-MM-DD'." + description: "The version of the CodeQL CLI to use. Can be 'latest', 'default', 'nightly-latest', 'nightly-YYYY-MM-DD', or 'stable-YYYY-MM-DD'." required: true + use-all-platform-bundle: + description: "If true, we output a tools URL with codeql-bundle.tar.gz file rather than platform-specific URL" + default: 'false' + required: false outputs: tools-url: description: "The value that should be passed as the 'tools' input of the 'init' step." @@ -24,7 +28,9 @@ runs: run: | set -e # Fail this Action if `gh release list` fails. - if [[ "$RUNNER_OS" == "Linux" ]]; then + if [[ ${{ inputs.use-all-platform-bundle }} == "true" ]]; then + artifact_name="codeql-bundle.tar.gz" + elif [[ "$RUNNER_OS" == "Linux" ]]; then artifact_name="codeql-bundle-linux64.tar.gz" elif [[ "$RUNNER_OS" == "macOS" ]]; then artifact_name="codeql-bundle-osx64.tar.gz" @@ -46,7 +52,7 @@ runs: echo "tools-url=https://github.com/github/codeql-action/releases/download/codeql-bundle-$version/$artifact_name" >> $GITHUB_OUTPUT elif [[ ${{ inputs.version }} == "latest" ]]; then echo "tools-url=latest" >> $GITHUB_OUTPUT - elif [[ ${{ inputs.version }} == "cached" ]]; then + elif [[ ${{ inputs.version }} == "default" ]]; then echo "tools-url=" >> $GITHUB_OUTPUT else echo "::error::Unrecognized version specified!" diff --git a/.github/actions/setup-swift/action.yml b/.github/actions/setup-swift/action.yml index 927d60841c..4721b10a8d 100644 --- a/.github/actions/setup-swift/action.yml +++ b/.github/actions/setup-swift/action.yml @@ -1,5 +1,5 @@ -name: "Set up Swift" -description: Sets up an appropriate Swift version if supported on this platform. +name: "Set up Swift on Linux" +description: Sets up an appropriate Swift version on Linux. inputs: codeql-path: description: Path to the CodeQL CLI executable. @@ -9,21 +9,16 @@ runs: steps: - name: Get Swift version id: get_swift_version - if: runner.os != 'Windows' + if: runner.os == 'Linux' shell: bash env: CODEQL_PATH: ${{ inputs.codeql-path }} run: | - if [[ $RUNNER_OS = "macOS" ]]; then - PLATFORM="osx64" - else # We do not run this step on Windows. - PLATFORM="linux64" - fi SWIFT_EXTRACTOR_DIR="$("$CODEQL_PATH" resolve languages --format json | jq -r '.swift[0]')" if [ $SWIFT_EXTRACTOR_DIR = "null" ]; then VERSION="null" else - VERSION="$("$SWIFT_EXTRACTOR_DIR/tools/$PLATFORM/extractor" --version | awk '/version/ { print $3 }')" + VERSION="$("$SWIFT_EXTRACTOR_DIR/tools/linux64/extractor" --version | awk '/version/ { print $3 }')" # Specify 5.x.0, otherwise setup Action will default to latest minor version. if [ $VERSION = "5.7" ]; then VERSION="5.7.0" @@ -37,6 +32,6 @@ runs: echo "version=$VERSION" | tee -a $GITHUB_OUTPUT - uses: swift-actions/setup-swift@65540b95f51493d65f5e59e97dcef9629ddf11bf # Please update the corresponding SHA in the CLI's CodeQL Action Integration Test. - if: runner.os != 'Windows' && steps.get_swift_version.outputs.version != 'null' + if: runner.os == 'Linux' && steps.get_swift_version.outputs.version != 'null' with: swift-version: "${{ steps.get_swift_version.outputs.version }}" diff --git a/.github/workflows/__all-platform-bundle.yml b/.github/workflows/__all-platform-bundle.yml new file mode 100644 index 0000000000..b0e3027659 --- /dev/null +++ b/.github/workflows/__all-platform-bundle.yml @@ -0,0 +1,67 @@ +# Warning: This file is generated automatically, and should not be modified. +# Instead, please modify the template in the pr-checks directory and run: +# (cd pr-checks; pip install ruamel.yaml@0.17.31 && python3 sync.py) +# to regenerate this file. + +name: PR Check - All-platform bundle +env: + GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} + GO111MODULE: auto + CODEQL_EXTRACTOR_JAVA_AGENT_DISABLE_KOTLIN: 'true' +on: + push: + branches: + - main + - releases/v2 + pull_request: + types: + - opened + - synchronize + - reopened + - ready_for_review + workflow_dispatch: {} +jobs: + all-platform-bundle: + strategy: + matrix: + include: + - os: ubuntu-latest + version: nightly-latest + name: All-platform bundle + permissions: + contents: read + security-events: write + timeout-minutes: 45 + runs-on: ${{ matrix.os }} + steps: + - name: Check out repository + uses: actions/checkout@v3 + - name: Prepare test + id: prepare-test + uses: ./.github/actions/prepare-test + with: + version: ${{ matrix.version }} + use-all-platform-bundle: 'true' + - name: Set environment variable for Swift enablement + if: >- + runner.os != 'Windows' && ( + matrix.version == '20220908' || + matrix.version == '20221211' + ) + shell: bash + run: echo "CODEQL_ENABLE_EXPERIMENTAL_FEATURES_SWIFT=true" >> $GITHUB_ENV + - id: init + uses: ./../action/init + with: + tools: ${{ steps.prepare-test.outputs.tools-url }} + - uses: ./../action/.github/actions/setup-swift + with: + codeql-path: ${{ steps.init.outputs.codeql-path }} + - name: Build code + shell: bash + run: ./build.sh + - uses: ./../action/analyze + with: + upload-database: false + env: + CODEQL_ACTION_TEST_MODE: true diff --git a/.github/workflows/__analyze-ref-input.yml b/.github/workflows/__analyze-ref-input.yml index 3f5a56a8b6..195a298629 100644 --- a/.github/workflows/__analyze-ref-input.yml +++ b/.github/workflows/__analyze-ref-input.yml @@ -50,11 +50,11 @@ jobs: - os: windows-latest version: stable-20230418 - os: ubuntu-latest - version: cached + version: default - os: macos-latest - version: cached + version: default - os: windows-latest - version: cached + version: default - os: ubuntu-latest version: latest - os: macos-latest @@ -81,6 +81,7 @@ jobs: uses: ./.github/actions/prepare-test with: version: ${{ matrix.version }} + use-all-platform-bundle: 'false' - name: Set environment variable for Swift enablement if: >- runner.os != 'Windows' && ( diff --git a/.github/workflows/__autobuild-action.yml b/.github/workflows/__autobuild-action.yml index 3e8e3b50d1..1b28161864 100644 --- a/.github/workflows/__autobuild-action.yml +++ b/.github/workflows/__autobuild-action.yml @@ -45,6 +45,7 @@ jobs: uses: ./.github/actions/prepare-test with: version: ${{ matrix.version }} + use-all-platform-bundle: 'false' - name: Set environment variable for Swift enablement if: >- runner.os != 'Windows' && ( diff --git a/.github/workflows/__config-export.yml b/.github/workflows/__config-export.yml index 5a8d449bcb..f0d14215c9 100644 --- a/.github/workflows/__config-export.yml +++ b/.github/workflows/__config-export.yml @@ -51,6 +51,7 @@ jobs: uses: ./.github/actions/prepare-test with: version: ${{ matrix.version }} + use-all-platform-bundle: 'false' - name: Set environment variable for Swift enablement if: >- runner.os != 'Windows' && ( diff --git a/.github/workflows/__diagnostics-export.yml b/.github/workflows/__diagnostics-export.yml index aef8a03fc0..2127957d91 100644 --- a/.github/workflows/__diagnostics-export.yml +++ b/.github/workflows/__diagnostics-export.yml @@ -57,6 +57,7 @@ jobs: uses: ./.github/actions/prepare-test with: version: ${{ matrix.version }} + use-all-platform-bundle: 'false' - name: Set environment variable for Swift enablement if: >- runner.os != 'Windows' && ( diff --git a/.github/workflows/__export-file-baseline-information.yml b/.github/workflows/__export-file-baseline-information.yml index 299e489f54..d430753230 100644 --- a/.github/workflows/__export-file-baseline-information.yml +++ b/.github/workflows/__export-file-baseline-information.yml @@ -45,6 +45,7 @@ jobs: uses: ./.github/actions/prepare-test with: version: ${{ matrix.version }} + use-all-platform-bundle: 'false' - name: Set environment variable for Swift enablement if: >- runner.os != 'Windows' && ( @@ -62,7 +63,7 @@ jobs: CODEQL_FILE_BASELINE_INFORMATION: true - uses: ./../action/.github/actions/setup-swift with: - codeql-path: ${{steps.init.outputs.codeql-path}} + codeql-path: ${{ steps.init.outputs.codeql-path }} - name: Build code shell: bash run: ./build.sh diff --git a/.github/workflows/__extractor-ram-threads.yml b/.github/workflows/__extractor-ram-threads.yml index ec013f2a43..71e43ec574 100644 --- a/.github/workflows/__extractor-ram-threads.yml +++ b/.github/workflows/__extractor-ram-threads.yml @@ -41,6 +41,7 @@ jobs: uses: ./.github/actions/prepare-test with: version: ${{ matrix.version }} + use-all-platform-bundle: 'false' - name: Set environment variable for Swift enablement if: >- runner.os != 'Windows' && ( diff --git a/.github/workflows/__go-custom-queries.yml b/.github/workflows/__go-custom-queries.yml index 999e43501f..4999271314 100644 --- a/.github/workflows/__go-custom-queries.yml +++ b/.github/workflows/__go-custom-queries.yml @@ -50,11 +50,11 @@ jobs: - os: windows-latest version: stable-20230418 - os: ubuntu-latest - version: cached + version: default - os: macos-latest - version: cached + version: default - os: windows-latest - version: cached + version: default - os: ubuntu-latest version: latest - os: macos-latest @@ -81,6 +81,7 @@ jobs: uses: ./.github/actions/prepare-test with: version: ${{ matrix.version }} + use-all-platform-bundle: 'false' - name: Set environment variable for Swift enablement if: >- runner.os != 'Windows' && ( diff --git a/.github/workflows/__go-tracing-autobuilder.yml b/.github/workflows/__go-tracing-autobuilder.yml index 71af706101..8250e766a2 100644 --- a/.github/workflows/__go-tracing-autobuilder.yml +++ b/.github/workflows/__go-tracing-autobuilder.yml @@ -42,9 +42,9 @@ jobs: - os: macos-latest version: stable-20230418 - os: ubuntu-latest - version: cached + version: default - os: macos-latest - version: cached + version: default - os: ubuntu-latest version: latest - os: macos-latest @@ -67,6 +67,7 @@ jobs: uses: ./.github/actions/prepare-test with: version: ${{ matrix.version }} + use-all-platform-bundle: 'false' - name: Set environment variable for Swift enablement if: >- runner.os != 'Windows' && ( diff --git a/.github/workflows/__go-tracing-custom-build-steps.yml b/.github/workflows/__go-tracing-custom-build-steps.yml index 9f6c8543ff..46b4df3acd 100644 --- a/.github/workflows/__go-tracing-custom-build-steps.yml +++ b/.github/workflows/__go-tracing-custom-build-steps.yml @@ -42,9 +42,9 @@ jobs: - os: macos-latest version: stable-20230418 - os: ubuntu-latest - version: cached + version: default - os: macos-latest - version: cached + version: default - os: ubuntu-latest version: latest - os: macos-latest @@ -67,6 +67,7 @@ jobs: uses: ./.github/actions/prepare-test with: version: ${{ matrix.version }} + use-all-platform-bundle: 'false' - name: Set environment variable for Swift enablement if: >- runner.os != 'Windows' && ( diff --git a/.github/workflows/__go-tracing-legacy-workflow.yml b/.github/workflows/__go-tracing-legacy-workflow.yml index f740808ee9..06b1a21b25 100644 --- a/.github/workflows/__go-tracing-legacy-workflow.yml +++ b/.github/workflows/__go-tracing-legacy-workflow.yml @@ -42,9 +42,9 @@ jobs: - os: macos-latest version: stable-20230418 - os: ubuntu-latest - version: cached + version: default - os: macos-latest - version: cached + version: default - os: ubuntu-latest version: latest - os: macos-latest @@ -67,6 +67,7 @@ jobs: uses: ./.github/actions/prepare-test with: version: ${{ matrix.version }} + use-all-platform-bundle: 'false' - name: Set environment variable for Swift enablement if: >- runner.os != 'Windows' && ( diff --git a/.github/workflows/__init-with-registries.yml b/.github/workflows/__init-with-registries.yml index 8b9faf3d39..6969454488 100644 --- a/.github/workflows/__init-with-registries.yml +++ b/.github/workflows/__init-with-registries.yml @@ -26,11 +26,11 @@ jobs: matrix: include: - os: ubuntu-latest - version: cached + version: default - os: macos-latest - version: cached + version: default - os: windows-latest - version: cached + version: default - os: ubuntu-latest version: latest - os: macos-latest @@ -58,6 +58,7 @@ jobs: uses: ./.github/actions/prepare-test with: version: ${{ matrix.version }} + use-all-platform-bundle: 'false' - name: Set environment variable for Swift enablement if: >- runner.os != 'Windows' && ( diff --git a/.github/workflows/__javascript-source-root.yml b/.github/workflows/__javascript-source-root.yml index 6657d4fe58..0eb4f09d2d 100644 --- a/.github/workflows/__javascript-source-root.yml +++ b/.github/workflows/__javascript-source-root.yml @@ -28,7 +28,7 @@ jobs: - os: ubuntu-latest version: latest - os: ubuntu-latest - version: cached + version: default - os: ubuntu-latest version: nightly-latest name: Custom source root @@ -45,6 +45,7 @@ jobs: uses: ./.github/actions/prepare-test with: version: ${{ matrix.version }} + use-all-platform-bundle: 'false' - name: Set environment variable for Swift enablement if: >- runner.os != 'Windows' && ( diff --git a/.github/workflows/__ml-powered-queries.yml b/.github/workflows/__ml-powered-queries.yml index edce39098b..cfe25b2848 100644 --- a/.github/workflows/__ml-powered-queries.yml +++ b/.github/workflows/__ml-powered-queries.yml @@ -50,11 +50,11 @@ jobs: - os: windows-latest version: stable-20230418 - os: ubuntu-latest - version: cached + version: default - os: macos-latest - version: cached + version: default - os: windows-latest - version: cached + version: default - os: ubuntu-latest version: latest - os: macos-latest @@ -81,6 +81,7 @@ jobs: uses: ./.github/actions/prepare-test with: version: ${{ matrix.version }} + use-all-platform-bundle: 'false' - name: Set environment variable for Swift enablement if: >- runner.os != 'Windows' && ( diff --git a/.github/workflows/__multi-language-autodetect.yml b/.github/workflows/__multi-language-autodetect.yml index 7adbb5823a..d11a615b03 100644 --- a/.github/workflows/__multi-language-autodetect.yml +++ b/.github/workflows/__multi-language-autodetect.yml @@ -42,9 +42,9 @@ jobs: - os: macos-latest version: stable-20230418 - os: ubuntu-latest - version: cached + version: default - os: macos-latest - version: cached + version: default - os: ubuntu-latest version: latest - os: macos-latest @@ -67,6 +67,7 @@ jobs: uses: ./.github/actions/prepare-test with: version: ${{ matrix.version }} + use-all-platform-bundle: 'false' - name: Set environment variable for Swift enablement if: >- runner.os != 'Windows' && ( diff --git a/.github/workflows/__packaging-codescanning-config-inputs-js.yml b/.github/workflows/__packaging-codescanning-config-inputs-js.yml index 27cca78bd3..6c2c8f2c27 100644 --- a/.github/workflows/__packaging-codescanning-config-inputs-js.yml +++ b/.github/workflows/__packaging-codescanning-config-inputs-js.yml @@ -32,11 +32,11 @@ jobs: - os: windows-latest version: latest - os: ubuntu-latest - version: cached + version: default - os: macos-latest - version: cached + version: default - os: windows-latest - version: cached + version: default - os: ubuntu-latest version: nightly-latest - os: macos-latest @@ -57,6 +57,7 @@ jobs: uses: ./.github/actions/prepare-test with: version: ${{ matrix.version }} + use-all-platform-bundle: 'false' - name: Set environment variable for Swift enablement if: >- runner.os != 'Windows' && ( diff --git a/.github/workflows/__packaging-config-inputs-js.yml b/.github/workflows/__packaging-config-inputs-js.yml index 6481c3ad35..e1b883feb1 100644 --- a/.github/workflows/__packaging-config-inputs-js.yml +++ b/.github/workflows/__packaging-config-inputs-js.yml @@ -32,11 +32,11 @@ jobs: - os: windows-latest version: latest - os: ubuntu-latest - version: cached + version: default - os: macos-latest - version: cached + version: default - os: windows-latest - version: cached + version: default - os: ubuntu-latest version: nightly-latest - os: macos-latest @@ -57,6 +57,7 @@ jobs: uses: ./.github/actions/prepare-test with: version: ${{ matrix.version }} + use-all-platform-bundle: 'false' - name: Set environment variable for Swift enablement if: >- runner.os != 'Windows' && ( diff --git a/.github/workflows/__packaging-config-js.yml b/.github/workflows/__packaging-config-js.yml index 1318f822ed..873e64f001 100644 --- a/.github/workflows/__packaging-config-js.yml +++ b/.github/workflows/__packaging-config-js.yml @@ -32,11 +32,11 @@ jobs: - os: windows-latest version: latest - os: ubuntu-latest - version: cached + version: default - os: macos-latest - version: cached + version: default - os: windows-latest - version: cached + version: default - os: ubuntu-latest version: nightly-latest - os: macos-latest @@ -57,6 +57,7 @@ jobs: uses: ./.github/actions/prepare-test with: version: ${{ matrix.version }} + use-all-platform-bundle: 'false' - name: Set environment variable for Swift enablement if: >- runner.os != 'Windows' && ( diff --git a/.github/workflows/__packaging-inputs-js.yml b/.github/workflows/__packaging-inputs-js.yml index 8f57756210..ba2a2c1092 100644 --- a/.github/workflows/__packaging-inputs-js.yml +++ b/.github/workflows/__packaging-inputs-js.yml @@ -32,11 +32,11 @@ jobs: - os: windows-latest version: latest - os: ubuntu-latest - version: cached + version: default - os: macos-latest - version: cached + version: default - os: windows-latest - version: cached + version: default - os: ubuntu-latest version: nightly-latest - os: macos-latest @@ -57,6 +57,7 @@ jobs: uses: ./.github/actions/prepare-test with: version: ${{ matrix.version }} + use-all-platform-bundle: 'false' - name: Set environment variable for Swift enablement if: >- runner.os != 'Windows' && ( diff --git a/.github/workflows/__remote-config.yml b/.github/workflows/__remote-config.yml index a126c041c9..d91f15137a 100644 --- a/.github/workflows/__remote-config.yml +++ b/.github/workflows/__remote-config.yml @@ -50,11 +50,11 @@ jobs: - os: windows-latest version: stable-20230418 - os: ubuntu-latest - version: cached + version: default - os: macos-latest - version: cached + version: default - os: windows-latest - version: cached + version: default - os: ubuntu-latest version: latest - os: macos-latest @@ -81,6 +81,7 @@ jobs: uses: ./.github/actions/prepare-test with: version: ${{ matrix.version }} + use-all-platform-bundle: 'false' - name: Set environment variable for Swift enablement if: >- runner.os != 'Windows' && ( diff --git a/.github/workflows/__resolve-environment-action.yml b/.github/workflows/__resolve-environment-action.yml index e33be58e8d..edf9f00cda 100644 --- a/.github/workflows/__resolve-environment-action.yml +++ b/.github/workflows/__resolve-environment-action.yml @@ -45,6 +45,7 @@ jobs: uses: ./.github/actions/prepare-test with: version: ${{ matrix.version }} + use-all-platform-bundle: 'false' - name: Set environment variable for Swift enablement if: >- runner.os != 'Windows' && ( diff --git a/.github/workflows/__rubocop-multi-language.yml b/.github/workflows/__rubocop-multi-language.yml index 3e9935c0b0..34804eea7a 100644 --- a/.github/workflows/__rubocop-multi-language.yml +++ b/.github/workflows/__rubocop-multi-language.yml @@ -26,7 +26,7 @@ jobs: matrix: include: - os: ubuntu-latest - version: cached + version: default name: RuboCop multi-language permissions: contents: read @@ -41,6 +41,7 @@ jobs: uses: ./.github/actions/prepare-test with: version: ${{ matrix.version }} + use-all-platform-bundle: 'false' - name: Set environment variable for Swift enablement if: >- runner.os != 'Windows' && ( diff --git a/.github/workflows/__ruby.yml b/.github/workflows/__ruby.yml index abf5b5519b..847c9e5610 100644 --- a/.github/workflows/__ruby.yml +++ b/.github/workflows/__ruby.yml @@ -30,9 +30,9 @@ jobs: - os: macos-latest version: latest - os: ubuntu-latest - version: cached + version: default - os: macos-latest - version: cached + version: default - os: ubuntu-latest version: nightly-latest - os: macos-latest @@ -51,6 +51,7 @@ jobs: uses: ./.github/actions/prepare-test with: version: ${{ matrix.version }} + use-all-platform-bundle: 'false' - name: Set environment variable for Swift enablement if: >- runner.os != 'Windows' && ( diff --git a/.github/workflows/__scaling-reserved-ram.yml b/.github/workflows/__scaling-reserved-ram.yml index 9b5c381d02..fa59317d74 100644 --- a/.github/workflows/__scaling-reserved-ram.yml +++ b/.github/workflows/__scaling-reserved-ram.yml @@ -42,9 +42,9 @@ jobs: - os: macos-latest version: stable-20230418 - os: ubuntu-latest - version: cached + version: default - os: macos-latest - version: cached + version: default - os: ubuntu-latest version: latest - os: macos-latest @@ -67,6 +67,7 @@ jobs: uses: ./.github/actions/prepare-test with: version: ${{ matrix.version }} + use-all-platform-bundle: 'false' - name: Set environment variable for Swift enablement if: >- runner.os != 'Windows' && ( diff --git a/.github/workflows/__split-workflow.yml b/.github/workflows/__split-workflow.yml index 8ebe390a32..21b014f29a 100644 --- a/.github/workflows/__split-workflow.yml +++ b/.github/workflows/__split-workflow.yml @@ -30,9 +30,9 @@ jobs: - os: macos-latest version: latest - os: ubuntu-latest - version: cached + version: default - os: macos-latest - version: cached + version: default - os: ubuntu-latest version: nightly-latest - os: macos-latest @@ -51,6 +51,7 @@ jobs: uses: ./.github/actions/prepare-test with: version: ${{ matrix.version }} + use-all-platform-bundle: 'false' - name: Set environment variable for Swift enablement if: >- runner.os != 'Windows' && ( diff --git a/.github/workflows/__submit-sarif-failure.yml b/.github/workflows/__submit-sarif-failure.yml index e778841a66..42038accab 100644 --- a/.github/workflows/__submit-sarif-failure.yml +++ b/.github/workflows/__submit-sarif-failure.yml @@ -28,7 +28,7 @@ jobs: - os: ubuntu-latest version: latest - os: ubuntu-latest - version: cached + version: default - os: ubuntu-latest version: nightly-latest name: Submit SARIF after failure @@ -45,6 +45,7 @@ jobs: uses: ./.github/actions/prepare-test with: version: ${{ matrix.version }} + use-all-platform-bundle: 'false' - name: Set environment variable for Swift enablement if: >- runner.os != 'Windows' && ( diff --git a/.github/workflows/__swift-custom-build.yml b/.github/workflows/__swift-custom-build.yml index 8a6b8cb3a9..f7c5aff50f 100644 --- a/.github/workflows/__swift-custom-build.yml +++ b/.github/workflows/__swift-custom-build.yml @@ -30,9 +30,9 @@ jobs: - os: macos-latest version: latest - os: ubuntu-latest - version: cached + version: default - os: macos-latest - version: cached + version: default - os: ubuntu-latest version: nightly-latest - os: macos-latest @@ -51,6 +51,7 @@ jobs: uses: ./.github/actions/prepare-test with: version: ${{ matrix.version }} + use-all-platform-bundle: 'false' - name: Set environment variable for Swift enablement if: >- runner.os != 'Windows' && ( diff --git a/.github/workflows/__test-autobuild-working-dir.yml b/.github/workflows/__test-autobuild-working-dir.yml index a230e4d571..c2a815ef7b 100644 --- a/.github/workflows/__test-autobuild-working-dir.yml +++ b/.github/workflows/__test-autobuild-working-dir.yml @@ -41,6 +41,7 @@ jobs: uses: ./.github/actions/prepare-test with: version: ${{ matrix.version }} + use-all-platform-bundle: 'false' - name: Set environment variable for Swift enablement if: >- runner.os != 'Windows' && ( diff --git a/.github/workflows/__test-local-codeql.yml b/.github/workflows/__test-local-codeql.yml index 710df8a81e..127ff679be 100644 --- a/.github/workflows/__test-local-codeql.yml +++ b/.github/workflows/__test-local-codeql.yml @@ -41,6 +41,7 @@ jobs: uses: ./.github/actions/prepare-test with: version: ${{ matrix.version }} + use-all-platform-bundle: 'false' - name: Set environment variable for Swift enablement if: >- runner.os != 'Windows' && ( diff --git a/.github/workflows/__test-proxy.yml b/.github/workflows/__test-proxy.yml index ec34b9f29f..71ca3c4c23 100644 --- a/.github/workflows/__test-proxy.yml +++ b/.github/workflows/__test-proxy.yml @@ -41,6 +41,7 @@ jobs: uses: ./.github/actions/prepare-test with: version: ${{ matrix.version }} + use-all-platform-bundle: 'false' - name: Set environment variable for Swift enablement if: >- runner.os != 'Windows' && ( diff --git a/.github/workflows/__unset-environment.yml b/.github/workflows/__unset-environment.yml index 3cfaebfb18..44d8857a62 100644 --- a/.github/workflows/__unset-environment.yml +++ b/.github/workflows/__unset-environment.yml @@ -34,7 +34,7 @@ jobs: - os: ubuntu-latest version: stable-20230418 - os: ubuntu-latest - version: cached + version: default - os: ubuntu-latest version: latest - os: ubuntu-latest @@ -53,6 +53,7 @@ jobs: uses: ./.github/actions/prepare-test with: version: ${{ matrix.version }} + use-all-platform-bundle: 'false' - name: Set environment variable for Swift enablement if: >- runner.os != 'Windows' && ( diff --git a/.github/workflows/__upload-ref-sha-input.yml b/.github/workflows/__upload-ref-sha-input.yml index 3c3580a0d0..422ddb50c1 100644 --- a/.github/workflows/__upload-ref-sha-input.yml +++ b/.github/workflows/__upload-ref-sha-input.yml @@ -50,11 +50,11 @@ jobs: - os: windows-latest version: stable-20230418 - os: ubuntu-latest - version: cached + version: default - os: macos-latest - version: cached + version: default - os: windows-latest - version: cached + version: default - os: ubuntu-latest version: latest - os: macos-latest @@ -81,6 +81,7 @@ jobs: uses: ./.github/actions/prepare-test with: version: ${{ matrix.version }} + use-all-platform-bundle: 'false' - name: Set environment variable for Swift enablement if: >- runner.os != 'Windows' && ( diff --git a/.github/workflows/__with-checkout-path.yml b/.github/workflows/__with-checkout-path.yml index 9ada2e06a9..2d2b7c12d4 100644 --- a/.github/workflows/__with-checkout-path.yml +++ b/.github/workflows/__with-checkout-path.yml @@ -50,11 +50,11 @@ jobs: - os: windows-latest version: stable-20230418 - os: ubuntu-latest - version: cached + version: default - os: macos-latest - version: cached + version: default - os: windows-latest - version: cached + version: default - os: ubuntu-latest version: latest - os: macos-latest @@ -81,6 +81,7 @@ jobs: uses: ./.github/actions/prepare-test with: version: ${{ matrix.version }} + use-all-platform-bundle: 'false' - name: Set environment variable for Swift enablement if: >- runner.os != 'Windows' && ( diff --git a/.github/workflows/codescanning-config-cli.yml b/.github/workflows/codescanning-config-cli.yml index 94d8bca94a..e070c0dd82 100644 --- a/.github/workflows/codescanning-config-cli.yml +++ b/.github/workflows/codescanning-config-cli.yml @@ -30,9 +30,9 @@ jobs: - os: macos-latest version: latest - os: ubuntu-latest - version: cached + version: default - os: macos-latest - version: cached + version: default - os: ubuntu-latest version: nightly-latest - os: macos-latest diff --git a/.github/workflows/debug-artifacts.yml b/.github/workflows/debug-artifacts.yml index b91ac304ce..2ccac6624c 100644 --- a/.github/workflows/debug-artifacts.yml +++ b/.github/workflows/debug-artifacts.yml @@ -29,7 +29,7 @@ jobs: - stable-20220908 - stable-20221211 - stable-20230418 - - cached + - default - latest - nightly-latest name: Upload debug artifacts @@ -74,7 +74,7 @@ jobs: - name: Check expected artifacts exist shell: bash run: | - VERSIONS="stable-20220615 stable-20220908 stable-20221211 stable-20230418 cached latest nightly-latest" + VERSIONS="stable-20220615 stable-20220908 stable-20221211 stable-20230418 default latest nightly-latest" LANGUAGES="cpp csharp go java javascript python" for version in $VERSIONS; do for os in ubuntu-latest macos-latest; do diff --git a/.github/workflows/test-codeql-bundle-all.yml b/.github/workflows/test-codeql-bundle-all.yml new file mode 100644 index 0000000000..c455d71a47 --- /dev/null +++ b/.github/workflows/test-codeql-bundle-all.yml @@ -0,0 +1,56 @@ +name: 'PR Check - CodeQL Bundle All' +env: + GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} + GO111MODULE: auto + # Disable Kotlin analysis while it's incompatible with Kotlin 1.8, until we find a + # workaround for our PR checks. + CODEQL_EXTRACTOR_JAVA_AGENT_DISABLE_KOTLIN: 'true' +on: + push: + branches: + - main + - releases/v2 + pull_request: + types: + - opened + - synchronize + - reopened + - ready_for_review + workflow_dispatch: {} +jobs: + test-codeql-bundle-all: + strategy: + matrix: + include: + - os: ubuntu-latest + version: nightly-latest + name: 'CodeQL Bundle All' + permissions: + contents: read + security-events: write + timeout-minutes: 45 + runs-on: ${{ matrix.os }} + steps: + - name: Check out repository + uses: actions/checkout@v3 + - name: Prepare test + id: prepare-test + uses: ./.github/actions/prepare-test + with: + version: ${{ matrix.version }} + use-all-platform-bundle: true + - id: init + uses: ./../action/init + with: + tools: ${{ steps.prepare-test.outputs.tools-url }} + - uses: ./../action/.github/actions/setup-swift + with: + codeql-path: ${{ steps.init.outputs.codeql-path }} + - name: Build code + shell: bash + run: ./build.sh + - uses: ./../action/analyze + with: + upload-database: false + env: + CODEQL_ACTION_TEST_MODE: true \ No newline at end of file diff --git a/CHANGELOG.md b/CHANGELOG.md index 9228e7f73f..45dea8fc71 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -2,6 +2,12 @@ See the [releases page](https://github.com/github/codeql-action/releases) for the relevant changes to the CodeQL CLI and language packs. +## 2.21.3 - 08 Aug 2023 + +- We are rolling out a feature in August 2023 that will improve multi-threaded performance on larger runners. [#1817](https://github.com/github/codeql-action/pull/1817) +- We are rolling out a feature in August 2023 that adds beta support for [Project Lombok](https://projectlombok.org/) when analyzing Java. [#1809](https://github.com/github/codeql-action/pull/1809) +- Reduce disk space usage when downloading the CodeQL bundle. [#1820](https://github.com/github/codeql-action/pull/1820) + ## 2.21.2 - 28 Jul 2023 - Update default CodeQL bundle version to 2.14.1. [#1797](https://github.com/github/codeql-action/pull/1797) diff --git a/README.md b/README.md index e88220bc62..d0b1ce801e 100644 --- a/README.md +++ b/README.md @@ -1,6 +1,6 @@ # CodeQL Action -This action runs GitHub's industry-leading semantic code analysis engine, [CodeQL](https://codeql.github.com/), against a repository's source code to find security vulnerabilities. It then automatically uploads the results to GitHub so they can be displayed in the repository's security tab. CodeQL runs an extensible set of [queries](https://github.com/github/codeql), which have been developed by the community and the [GitHub Security Lab](https://securitylab.github.com/) to find common vulnerabilities in your code. +This action runs GitHub's industry-leading semantic code analysis engine, [CodeQL](https://codeql.github.com/), against a repository's source code to find security vulnerabilities. It then automatically uploads the results to GitHub so they can be displayed on pull requests and in the repository's security tab. CodeQL runs an extensible set of [queries](https://github.com/github/codeql), which have been developed by the community and the [GitHub Security Lab](https://securitylab.github.com/) to find common vulnerabilities in your code. For a list of recent changes, see the CodeQL Action's [changelog](CHANGELOG.md). @@ -12,160 +12,9 @@ The underlying CodeQL CLI, used in this action, is licensed under the [GitHub Co ## Usage -This is a short walkthrough, but for more information read [configuring code scanning](https://help.github.com/en/github/finding-security-vulnerabilities-and-errors-in-your-code/configuring-code-scanning). +We recommend using default setup to configure CodeQL analysis for your repository. For more information, see "[Configuring default setup for code scanning](https://docs.github.com/en/code-security/code-scanning/automatically-scanning-your-code-for-vulnerabilities-and-errors/configuring-default-setup-for-code-scanning)." -To get code scanning results from CodeQL analysis on your repo you can use the following workflow as a template: - -```yaml - -name: "Code Scanning - Action" - -on: - push: - branches: [main] - pull_request: - branches: [main] - schedule: - # ┌───────────── minute (0 - 59) - # │ ┌───────────── hour (0 - 23) - # │ │ ┌───────────── day of the month (1 - 31) - # │ │ │ ┌───────────── month (1 - 12 or JAN-DEC) - # │ │ │ │ ┌───────────── day of the week (0 - 6 or SUN-SAT) - # │ │ │ │ │ - # │ │ │ │ │ - # │ │ │ │ │ - # * * * * * - - cron: '30 1 * * 0' - -jobs: - CodeQL-Build: - # CodeQL runs on ubuntu-latest, windows-latest, and macos-latest - runs-on: ubuntu-latest - - permissions: - # required for all workflows - security-events: write - - # only required for workflows in private repositories - actions: read - contents: read - - steps: - - name: Checkout repository - uses: actions/checkout@v3 - - # Initializes the CodeQL tools for scanning. - - name: Initialize CodeQL - uses: github/codeql-action/init@v2 - # Override language selection by uncommenting this and choosing your languages - # with: - # languages: go, javascript, csharp, python, cpp, java, ruby - - # Autobuild attempts to build any compiled languages (C/C++, C#, Go, or Java). - # If this step fails, then you should remove it and run the build manually (see below). - - name: Autobuild - uses: github/codeql-action/autobuild@v2 - - # ℹ️ Command-line programs to run using the OS shell. - # 📚 See https://docs.github.com/en/actions/using-workflows/workflow-syntax-for-github-actions#jobsjob_idstepsrun - - # ✏️ If the Autobuild fails above, remove it and uncomment the following - # three lines and modify them (or add more) to build your code if your - # project uses a compiled language - - #- run: | - # make bootstrap - # make release - - - name: Perform CodeQL Analysis - uses: github/codeql-action/analyze@v2 -``` - -If you prefer to integrate this within an existing CI workflow, it should end up looking something like this: - -```yaml -- name: Initialize CodeQL - uses: github/codeql-action/init@v2 - with: - languages: go, javascript - -# Here is where you build your code -- run: | - make bootstrap - make release - -- name: Perform CodeQL Analysis - uses: github/codeql-action/analyze@v2 -``` - -### Configuration file - -Use the `config-file` parameter of the `init` action to enable the configuration file. The value of `config-file` is the path to the configuration file you want to use. This example loads the configuration file `./.github/codeql/codeql-config.yml`. - -```yaml -- uses: github/codeql-action/init@v2 - with: - config-file: ./.github/codeql/codeql-config.yml -``` - -The configuration file can be located in a different repository. This is useful if you want to share the same configuration across multiple repositories. If the configuration file is in a private repository you can also specify an `external-repository-token` option. This should be a personal access token that has read access to any repositories containing referenced config files and queries. - -```yaml -- uses: github/codeql-action/init@v2 - with: - config-file: owner/repo/codeql-config.yml@branch - external-repository-token: ${{ secrets.EXTERNAL_REPOSITORY_TOKEN }} -``` - -For information on how to write a configuration file, see "[Using a custom configuration file](https://help.github.com/en/github/finding-security-vulnerabilities-and-errors-in-your-code/configuring-code-scanning#using-a-custom-configuration-file)." - -If you only want to customise the queries used, you can specify them in your workflow instead of creating a config file, using the `queries` property of the `init` action: - -```yaml -- uses: github/codeql-action/init@v2 - with: - queries: , -``` - -By default, this will override any queries specified in a config file. If you wish to use both sets of queries, prefix the list of queries in the workflow with `+`: - -```yaml -- uses: github/codeql-action/init@v2 - with: - queries: +, -``` - -### Configuration via `config` input - -You can alternatively configure CodeQL using the `config` input to the `init` Action. The value of this input must be a YAML string that follows the configuration file format documented at "[Using a custom configuration file](https://aka.ms/code-scanning-docs/config-file)." - -#### Example configuration - -```yaml -- uses: github/codeql-action/init@v2 - with: - languages: ${{ matrix.language }} - config: | - disable-default-queries: true - queries: - - uses: security-extended - - uses: security-and-quality - query-filters: - - include: - tags: /cwe-020/ -``` - - -#### Sharing configuration across multiple repositories - -You can use Actions or environment variables to share configuration across multiple repositories and to modify configuration without needing to edit the workflow file. In the following example, `vars.CODEQL_CONF` is an [Actions configuration variable](https://docs.github.com/en/actions/learn-github-actions/variables#defining-configuration-variables-for-multiple-workflows): - -```yaml -- uses: github/codeql-action/init@v2 - with: - languages: ${{ matrix.language }} - config: ${{ vars.CODEQL_CONF }} -``` +You can also configure advanced setup for a repository to find security vulnerabilities in your code using a highly customizable code scanning configuration. For more information, see "[Configuring advanced setup for code scanning](https://docs.github.com/en/code-security/code-scanning/automatically-scanning-your-code-for-vulnerabilities-and-errors/configuring-advanced-setup-for-code-scanning)" and "[Customizing code scanning](https://docs.github.com/en/code-security/code-scanning/automatically-scanning-your-code-for-vulnerabilities-and-errors/customizing-code-scanning)." ## Troubleshooting diff --git a/lib/actions-util.js b/lib/actions-util.js index 29eb6bfd3a..751d27569e 100644 --- a/lib/actions-util.js +++ b/lib/actions-util.js @@ -39,7 +39,11 @@ const pkg = require("../package.json"); * This allows us to get stronger type checking of required/optional inputs. */ const getRequiredInput = function (name) { - return core.getInput(name, { required: true }); + const value = core.getInput(name); + if (!value) { + throw new util_1.UserError(`Input required and not supplied: ${name}`); + } + return value; }; exports.getRequiredInput = getRequiredInput; /** diff --git a/lib/actions-util.js.map b/lib/actions-util.js.map index 3c8beb8d2d..2a51d38118 100644 --- a/lib/actions-util.js.map +++ b/lib/actions-util.js.map @@ -1 +1 @@ -{"version":3,"file":"actions-util.js","sourceRoot":"","sources":["../src/actions-util.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;AAAA,uCAAyB;AACzB,2CAA6B;AAE7B,oDAAsC;AACtC,yEAA2D;AAC3D,kEAAoD;AAIpD,iCAKgB;AAEhB,8CAA8C;AAC9C,MAAM,GAAG,GAAG,OAAO,CAAC,iBAAiB,CAAqC,CAAC;AAE3E;;;;;GAKG;AACI,MAAM,gBAAgB,GAAG,UAAU,IAAY;IACpD,OAAO,IAAI,CAAC,QAAQ,CAAC,IAAI,EAAE,EAAE,QAAQ,EAAE,IAAI,EAAE,CAAC,CAAC;AACjD,CAAC,CAAC;AAFW,QAAA,gBAAgB,oBAE3B;AAEF;;;;;GAKG;AACI,MAAM,gBAAgB,GAAG,UAAU,IAAY;IACpD,MAAM,KAAK,GAAG,IAAI,CAAC,QAAQ,CAAC,IAAI,CAAC,CAAC;IAClC,OAAO,KAAK,CAAC,MAAM,GAAG,CAAC,CAAC,CAAC,CAAC,KAAK,CAAC,CAAC,CAAC,SAAS,CAAC;AAC9C,CAAC,CAAC;AAHW,QAAA,gBAAgB,oBAG3B;AAEF,SAAgB,qBAAqB;IACnC,MAAM,KAAK,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CACV,oDAAoD,KAAK,2BAA2B,CACrF,CAAC;YACF,OAAO,QAAQ,CAAC;KACnB;AACH,CAAC;AAjBD,wCAiBC;AAED;;GAEG;AACH,SAAgB,gBAAgB;IAC9B,MAAM,mBAAmB,GAAG,IAAA,0BAAmB,EAAC,eAAe,CAAC,CAAC;IACjE,MAAM,aAAa,GAAG,QAAQ,CAAC,mBAAmB,EAAE,EAAE,CAAC,CAAC;IACxD,IAAI,MAAM,CAAC,KAAK,CAAC,aAAa,CAAC,EAAE;QAC/B,MAAM,IAAI,KAAK,CACb,yEAAyE,mBAAmB,EAAE,CAC/F,CAAC;KACH;IACD,IAAI,aAAa,GAAG,CAAC,EAAE;QACrB,MAAM,IAAI,KAAK,CACb,kEAAkE,mBAAmB,EAAE,CACxF,CAAC;KACH;IACD,OAAO,aAAa,CAAC;AACvB,CAAC;AAdD,4CAcC;AAED;;GAEG;AACH,SAAgB,qBAAqB;IACnC,MAAM,wBAAwB,GAAG,IAAA,0BAAmB,EAAC,oBAAoB,CAAC,CAAC;IAC3E,MAAM,kBAAkB,GAAG,QAAQ,CAAC,wBAAwB,EAAE,EAAE,CAAC,CAAC;IAClE,IAAI,MAAM,CAAC,KAAK,CAAC,kBAAkB,CAAC,EAAE;QACpC,MAAM,IAAI,KAAK,CACb,mFAAmF,wBAAwB,EAAE,CAC9G,CAAC;KACH;IACD,IAAI,kBAAkB,IAAI,CAAC,EAAE;QAC3B,MAAM,IAAI,KAAK,CACb,mEAAmE,wBAAwB,EAAE,CAC9F,CAAC;KACH;IACD,OAAO,kBAAkB,CAAC;AAC5B,CAAC;AAdD,sDAcC"} \ No newline at end of file +{"version":3,"file":"actions-util.js","sourceRoot":"","sources":["../src/actions-util.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;AAAA,uCAAyB;AACzB,2CAA6B;AAE7B,oDAAsC;AACtC,yEAA2D;AAC3D,kEAAoD;AAIpD,iCAKgB;AAEhB,8CAA8C;AAC9C,MAAM,GAAG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AG,IAAA,0BAAmB,EAAC,oBAAoB,CAAC,CAAC;IAC3E,MAAM,kBAAkB,GAAG,QAAQ,CAAC,wBAAwB,EAAE,EAAE,CAAC,CAAC;IAClE,IAAI,MAAM,CAAC,KAAK,CAAC,kBAAkB,CAAC,EAAE;QACpC,MAAM,IAAI,KAAK,CACb,mFAAmF,wBAAwB,EAAE,CAC9G,CAAC;KACH;IACD,IAAI,kBAAkB,IAAI,CAAC,EAAE;QAC3B,MAAM,IAAI,KAAK,CACb,mEAAmE,wBAAwB,EAAE,CAC9F,CAAC;KACH;IACD,OAAO,kBAAkB,CAAC;AAC5B,CAAC;AAdD,sDAcC"} \ No newline at end of file diff --git a/lib/analyze.js b/lib/analyze.js index 13e61d727f..02526c51f3 100644 --- a/lib/analyze.js +++ b/lib/analyze.js @@ -232,7 +232,9 @@ async function runQueries(sarifFolder, memoryFlag, addSnippetsFlag, threadsFlag, } statusReport["event_reports"].push(perQueryAlertCountEventReport); } - await runPrintLinesOfCode(language); + if (!(await features.getValue(feature_flags_1.Feature.NewAnalysisSummaryEnabled, codeql))) { + await runPrintLinesOfCode(language); + } } catch (e) { logger.info(String(e)); @@ -283,7 +285,7 @@ async function runQueries(sarifFolder, memoryFlag, addSnippetsFlag, threadsFlag, fs.writeFileSync(querySuitePath, querySuiteContents); logger.debug(`Query suite file for ${language}-${type}...\n${querySuiteContents}`); } - await codeql.databaseRunQueries(databasePath, searchPath, querySuitePath, queryFlags, optimizeForLastQueryRun); + await codeql.databaseRunQueries(databasePath, searchPath, querySuitePath, queryFlags, optimizeForLastQueryRun, features); logger.debug(`BQRS results produced for ${language} (queries: ${type})"`); return querySuitePath; } @@ -297,7 +299,7 @@ async function runQueries(sarifFolder, memoryFlag, addSnippetsFlag, threadsFlag, const querySuitePath = `${databasePath}-queries-${type}.qls`; fs.writeFileSync(querySuitePath, yaml.dump(querySuite)); logger.debug(`BQRS results produced for ${language} (queries: ${type})"`); - await codeql.databaseRunQueries(databasePath, undefined, querySuitePath, queryFlags, optimizeForLastQueryRun); + await codeql.databaseRunQueries(databasePath, undefined, querySuitePath, queryFlags, optimizeForLastQueryRun, features); return querySuitePath; } } diff --git a/lib/analyze.js.map b/lib/analyze.js.map index f9ecaec229..75e253aeb7 100644 --- a/lib/analyze.js.map +++ b/lib/analyze.js.map @@ -1 +1 @@ -{"version":3,"file":"analyze.js","sourceRoot":"","sources":["../src/analyze.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAAA,uCAAyB;AACzB,2CAA6B;AAC7B,2CAAyC;AAEzC,yEAA2D;AAC3D,8CAAsB;AACtB,8CAAgC;AAGhC,gEAAkD;AAClD,qCAA6C;AAC7C,4DAA8C;AAC9C,mDAKyB;AACzB,2CAA0D;AAE1D,mDAAuD;AACvD,6CAAuD;AACvD,6CAA+B;AAE/B,MAAa,mBAAoB,SAAQ,KAAK;IAG5C,YAAY,mBAAwC,EAAE,OAAe;QACnE,KAAK,CAAC,OAAO,CAAC,CAAC;QAEf,IAAI,CAAC,IAAI,GAAG,qBAAqB,CAAC;QAClC,IAAI,CAAC,mBAAmB,GAAG,mBAAmB,CAAC;IACjD,CAAC;CACF;AATD,kDASC;AAyDD,KAAK,UAAU,oBAAoB,CACjC,MAAc,EACd,QAA2B,EAC3B,MAAc;IAEd,MAAM,YAAY,GAAG,OAAO,CAAC,GAAG,CAAC,eAAe,CAAC,CAAC;IAClD,IAAI,YAAY,KAAK,SAAS,IAAI,YAAY,CAAC,MAAM,KAAK,CAAC,EAAE;QAC3D,+FAA+F;QAC/F,OAAO;KACR;IAED,IACE,MAAM,QAAQ,CAAC,QAAQ,CACrB,uBAAO,CAAC,0CAA0C,EAClD,MAAM,CACP,EACD;QACA,MAAM,CAAC,OAAO,CACZ,qRAAqR;YACnR,mPAAmP,CACtP,CAAC;QACF,OAAO;KACR;IAED,MAAM,aAAa,GAAG,IAAI,CAAC,OAAO,CAAC,SAAS,EAAE,iBAAiB,CAAC,CAAC;IAEjE,IAAI,MA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AAuB;AACvB,SAAgB,oBAAoB,CAAC,YAAwC;IAC3E,IAAI,CAAC,YAAY,EAAE;QACjB,OAAO,EAAE,CAAC;KACX;IAED,IAAI,CAAC,KAAK,CAAC,OAAO,CAAC,YAAY,CAAC,EAAE;QAChC,MAAM,IAAI,KAAK,CACb,2EAA2E,OAAO,YAAY,EAAE,CACjG,CAAC;KACH;IAED,MAAM,MAAM,GAAa,EAAE,CAAC;IAC5B,KAAK,MAAM,EAAE,IAAI,YAAY,EAAE;QAC7B,MAAM,IAAI,GAAG,MAAM,CAAC,IAAI,CAAC,EAAE,CAAC,CAAC;QAC7B,IAAI,IAAI,CAAC,MAAM,KAAK,CAAC,EAAE;YACrB,MAAM,CAAC,IAAI,CACT,2CAA2C,IAAI,CAAC,SAAS,CAAC,EAAE,CAAC,EAAE,CAChE,CAAC;SACH;QACD,IAAI,CAAC,CAAC,SAAS,EAAE,SAAS,CAAC,CAAC,QAAQ,CAAC,IAAI,CAAC,CAAC,CAAC,CAAC,EAAE;YAC7C,MAAM,CAAC,IAAI,CACT,qDAAqD,IAAI,CAAC,SAAS,CACjE,EAAE,CACH,EAAE,CACJ,CAAC;SACH;KACF;IAED,IAAI,MAAM,CAAC,MAAM,EAAE;QACjB,MAAM,IAAI,KAAK,CAAC,0BAA0B,MAAM,CAAC,IAAI,CAAC,IAAI,CAAC,EAAE,CAAC,CAAC;KAChE;IAED,OAAO,YAAY,CAAC;AACtB,CAAC;AAjCD,oDAiCC"} \ No newline at end of file diff --git a/lib/codeql.js b/lib/codeql.js index 3e62c59db3..739a364434 100644 --- a/lib/codeql.js +++ b/lib/codeql.js @@ -23,7 +23,7 @@ var __importStar = (this && this.__importStar) || function (mod) { return result; }; Object.defineProperty(exports, "__esModule", { value: true }); -exports.getGeneratedCodeScanningConfigPath = exports.getTrapCachingExtractorConfigArgsForLang = exports.getTrapCachingExtractorConfigArgs = exports.getExtraOptions = exports.getCodeQLForCmd = exports.getCodeQLForTesting = exports.getCachedCodeQL = exports.setCodeQL = exports.getCodeQL = exports.setupCodeQL = exports.CODEQL_VERSION_RESOLVE_ENVIRONMENT = exports.CODEQL_VERSION_BETTER_NO_CODE_ERROR_MESSAGE = exports.CODEQL_VERSION_INIT_WITH_QLCONFIG = exports.CODEQL_VERSION_EXPORT_CODE_SCANNING_CONFIG = exports.CODEQL_VERSION_SECURITY_EXPERIMENTAL_SUITE = exports.CODEQL_VERSION_BETTER_RESOLVE_LANGUAGES = exports.CODEQL_VERSION_GHES_PACK_DOWNLOAD = exports.CommandInvocationError = void 0; +exports.getGeneratedCodeScanningConfigPath = exports.getTrapCachingExtractorConfigArgsForLang = exports.getTrapCachingExtractorConfigArgs = exports.getExtraOptions = exports.getCodeQLForCmd = exports.getCodeQLForTesting = exports.getCachedCodeQL = exports.setCodeQL = exports.getCodeQL = exports.setupCodeQL = exports.CODEQL_VERSION_RESOLVE_ENVIRONMENT = exports.CODEQL_VERSION_DIAGNOSTICS_EXPORT_FIXED = exports.CODEQL_VERSION_BETTER_NO_CODE_ERROR_MESSAGE = exports.CODEQL_VERSION_INIT_WITH_QLCONFIG = exports.CODEQL_VERSION_EXPORT_CODE_SCANNING_CONFIG = exports.CODEQL_VERSION_SECURITY_EXPERIMENTAL_SUITE = exports.CODEQL_VERSION_BETTER_RESOLVE_LANGUAGES = exports.CODEQL_VERSION_GHES_PACK_DOWNLOAD = exports.CommandInvocationError = void 0; const fs = __importStar(require("fs")); const path = __importStar(require("path")); const core = __importStar(require("@actions/core")); @@ -100,6 +100,10 @@ exports.CODEQL_VERSION_INIT_WITH_QLCONFIG = "2.12.4"; * determines that no code has been found. */ exports.CODEQL_VERSION_BETTER_NO_CODE_ERROR_MESSAGE = "2.12.4"; +/** + * Versions 2.13.1+ of the CodeQL CLI fix a bug where diagnostics export could produce invalid SARIF. + */ +exports.CODEQL_VERSION_DIAGNOSTICS_EXPORT_FIXED = "2.13.1"; /** * Versions 2.13.4+ of the CodeQL CLI support the `resolve build-environment` command. */ @@ -419,7 +423,7 @@ async function getCodeQLForCmd(cmd, checkVersion) { throw new Error(`Unexpected output from codeql resolve build-environment: ${e} in\n${output}`); } }, - async databaseRunQueries(databasePath, extraSearchPath, querySuitePath, flags, optimizeForLastQueryRun) { + async databaseRunQueries(databasePath, extraSearchPath, querySuitePath, flags, optimizeForLastQueryRun, features) { const codeqlArgs = [ "database", "run-queries", @@ -439,12 +443,18 @@ async function getCodeQLForCmd(cmd, checkVersion) { if (querySuitePath) { codeqlArgs.push(querySuitePath); } + if (await features.getValue(feature_flags_1.Feature.EvaluatorIntraLayerParallelismEnabled, this)) { + codeqlArgs.push("--intra-layer-parallelism"); + } + else if (await util.codeQlVersionAbove(this, feature_flags_1.CODEQL_VERSION_INTRA_LAYER_PARALLELISM)) { + codeqlArgs.push("--no-intra-layer-parallelism"); + } await runTool(cmd, codeqlArgs); }, async databaseInterpretResults(databasePath, querySuitePaths, sarifFile, addSnippetsFlag, threadsFlag, verbosityFlag, automationDetailsId, config, features, logger) { const shouldExportDiagnostics = await features.getValue(feature_flags_1.Feature.ExportDiagnosticsEnabled, this); - // Update this to take into account the CodeQL version when we have a version with the fix. - const shouldWorkaroundInvalidNotifications = shouldExportDiagnostics; + const shouldWorkaroundInvalidNotifications = shouldExportDiagnostics && + !(await isDiagnosticsExportInvalidSarifFixed(this)); const codeqlOutputFile = shouldWorkaroundInvalidNotifications ? path.join(config.tempDir, "codeql-intermediate-results.sarif") : sarifFile; @@ -570,8 +580,7 @@ async function getCodeQLForCmd(cmd, checkVersion) { await new toolrunner.ToolRunner(cmd, args).exec(); }, async databaseExportDiagnostics(databasePath, sarifFile, automationDetailsId, tempDir, logger) { - // Update this to take into account the CodeQL version when we have a version with the fix. - const shouldWorkaroundInvalidNotifications = true; + const shouldWorkaroundInvalidNotifications = !(await isDiagnosticsExportInvalidSarifFixed(this)); const codeqlOutputFile = shouldWorkaroundInvalidNotifications ? path.join(tempDir, "codeql-intermediate-results.sarif") : sarifFile; @@ -943,4 +952,7 @@ function isNoCodeFoundError(e) { const javascriptNoCodeFoundWarning = "No JavaScript or TypeScript code found."; return e.exitCode === 32 || e.error.includes(javascriptNoCodeFoundWarning); } +async function isDiagnosticsExportInvalidSarifFixed(codeql) { + return await util.codeQlVersionAbove(codeql, exports.CODEQL_VERSION_DIAGNOSTICS_EXPORT_FIXED); +} //# sourceMappingURL=codeql.js.map \ No newline at end of file diff --git a/lib/codeql.js.map b/lib/codeql.js.map index f0082e1032..7a78b33234 100644 --- a/lib/codeql.js.map +++ b/lib/codeql.js.map @@ -1 +1 @@ -{"version":3,"file":"codeql.js","sourceRoot":"","sources":["../src/codeql.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;AAAA,uCAAyB;AACzB,2CAA6B;AAE7B,oDAAsC;AACtC,yEAA2D;AAC3D,8CAAgC;AAEhC,iDAA4E;AAG5E,+CAAuC;AACvC,mDAMyB;AACzB,2CAAyD;AAEzD,4DAA8C;AAC9C,6CAA+B;AAC/B,iCAAmC;AAuBnC,MAAa,sBAAuB,SAAQ,KAAK;IAC/C,YACE,GAAW,EACX,IAAc,EACP,QAAgB,EAChB,KAAa,EACb,MAAc;QAErB,MAAM,aAAa,GAAG,CAAC,GAAG,EAAE,GAAG,IAAI,CAAC;aACjC,GAAG,CAAC,CAAC,CAAC,EAAE,EAAE,CAAC,CAAC,CAAC,CAAC,QAAQ,CAAC,GAAG,CAAC,CAAC,CAAC,CAAC,IAAI,CAAC,GAAG,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC;aAC5C,IAAI,CAAC,GAAG,CAAC,CAAC;QACb,KAAK,CACH,4CAA4C,aAAa,KAAK;YAC5D,iBAAiB,QAAQ,mBAAmB,KAAK,CAAC,IAAI,EAAE,EAAE,CAC7D,CAAC;QAVK,aAAQ,GAAR,QAAQ,CAAQ;QAChB,UAAK,GAAL,KAAK,CAAQ;QACb,WAAM,GAAN,MAAM,CAAQ;IASvB,CAAC;CACF;AAhBD,wDAgBC;AAkMD;;;GAGG;AACH,IAAI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AYC;AAED;;;;GAIG;AACH,SAAgB,kCAAkC,CAAC,MAAc;IAC/D,OAAO,IAAI,CAAC,OAAO,CAAC,MAAM,CAAC,OAAO,EAAE,kBAAkB,CAAC,CAAC;AAC1D,CAAC;AAFD,gFAEC;AAED,SAAS,kBAAkB,CAAC,CAAyB;IACnD;;;;;;;OAOG;IACH,MAAM,4BAA4B,GAChC,yCAAyC,CAAC;IAC5C,OAAO,CAAC,CAAC,QAAQ,KAAK,EAAE,IAAI,CAAC,CAAC,KAAK,CAAC,QAAQ,CAAC,4BAA4B,CAAC,CAAC;AAC7E,CAAC;AAED,KAAK,UAAU,oCAAoC,CACjD,MAAc;IAEd,OAAO,MAAM,IAAI,CAAC,kBAAkB,CAClC,MAAM,EACN,+CAAuC,CACxC,CAAC;AACJ,CAAC"} \ No newline at end of file diff --git a/lib/feature-flags.js b/lib/feature-flags.js index 13211b68fa..1bd7d08268 100644 --- a/lib/feature-flags.js +++ b/lib/feature-flags.js @@ -23,7 +23,7 @@ var __importStar = (this && this.__importStar) || function (mod) { return result; }; Object.defineProperty(exports, "__esModule", { value: true }); -exports.logCodeScanningConfigInCli = exports.useCodeScanningConfigInCli = exports.Features = exports.FEATURE_FLAGS_FILE_NAME = exports.featureConfig = exports.Feature = exports.CODEQL_VERSION_NEW_ANALYSIS_SUMMARY = exports.CODEQL_VERSION_BUNDLE_SEMANTICALLY_VERSIONED = void 0; +exports.logCodeScanningConfigInCli = exports.useCodeScanningConfigInCli = exports.Features = exports.FEATURE_FLAGS_FILE_NAME = exports.featureConfig = exports.Feature = exports.CODEQL_VERSION_INTRA_LAYER_PARALLELISM = exports.CODEQL_VERSION_NEW_ANALYSIS_SUMMARY = exports.CODEQL_VERSION_BUNDLE_SEMANTICALLY_VERSIONED = void 0; const fs = __importStar(require("fs")); const path = __importStar(require("path")); const semver = __importStar(require("semver")); @@ -40,6 +40,10 @@ exports.CODEQL_VERSION_BUNDLE_SEMANTICALLY_VERSIONED = "2.13.4"; * Versions 2.14.0+ of the CodeQL CLI support new analysis summaries. */ exports.CODEQL_VERSION_NEW_ANALYSIS_SUMMARY = "2.14.0"; +/** + * Versions 2.14.0+ of the CodeQL CLI support intra-layer parallelism (aka fine-grained parallelism) options. + */ +exports.CODEQL_VERSION_INTRA_LAYER_PARALLELISM = "2.14.0"; /** * Feature enablement as returned by the GitHub API endpoint. * @@ -48,8 +52,10 @@ exports.CODEQL_VERSION_NEW_ANALYSIS_SUMMARY = "2.14.0"; var Feature; (function (Feature) { Feature["CliConfigFileEnabled"] = "cli_config_file_enabled"; + Feature["CodeqlJavaLombokEnabled"] = "codeql_java_lombok_enabled"; Feature["DisableKotlinAnalysisEnabled"] = "disable_kotlin_analysis_enabled"; Feature["DisablePythonDependencyInstallationEnabled"] = "disable_python_dependency_installation_enabled"; + Feature["EvaluatorIntraLayerParallelismEnabled"] = "evaluator_intra_layer_parallelism_enabled"; Feature["ExportDiagnosticsEnabled"] = "export_diagnostics_enabled"; Feature["MlPoweredQueriesEnabled"] = "ml_powered_queries_enabled"; Feature["NewAnalysisSummaryEnabled"] = "new_analysis_summary_enabled"; @@ -58,6 +64,11 @@ var Feature; Feature["UploadFailedSarifEnabled"] = "upload_failed_sarif_enabled"; })(Feature || (exports.Feature = Feature = {})); exports.featureConfig = { + [Feature.CodeqlJavaLombokEnabled]: { + envVar: "CODEQL_JAVA_LOMBOK", + minimumVersion: "2.14.0", + defaultValue: false, + }, [Feature.DisableKotlinAnalysisEnabled]: { envVar: "CODEQL_DISABLE_KOTLIN_ANALYSIS", minimumVersion: undefined, @@ -68,6 +79,11 @@ exports.featureConfig = { minimumVersion: "2.11.6", defaultValue: true, }, + [Feature.EvaluatorIntraLayerParallelismEnabled]: { + envVar: "CODEQL_EVALUATOR_INTRA_LAYER_PARALLELISM", + minimumVersion: exports.CODEQL_VERSION_INTRA_LAYER_PARALLELISM, + defaultValue: false, + }, [Feature.ExportDiagnosticsEnabled]: { envVar: "CODEQL_ACTION_EXPORT_DIAGNOSTICS", minimumVersion: "2.12.4", diff --git a/lib/feature-flags.js.map b/lib/feature-flags.js.map index b7297b63b3..0781bbc6b5 100644 --- a/lib/feature-flags.js.map +++ b/lib/feature-flags.js.map @@ -1 +1 @@ -{"version":3,"file":"feature-flags.js","sourceRoot":"","sources":["../src/feature-flags.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;AAAA,uCAAyB;AACzB,2CAA6B;AAE7B,+CAAiC;AAEjC,6CAA4C;AAE5C,0DAA4C;AAG5C,6CAA+B;AAE/B,MAAM,mCAAmC,GAAG,yBAAyB,CAAC;AACtE,MAAM,mCAAmC,GAAG,UAAU,CAAC;AAEvD;;GAEG;AACU,QAAA,4CAA4C,GAAG,QAAQ,CAAC;AAErE;;GAEG;AACU,QAAA,mCAAmC,GAAG,QAAQ,CAAC;AAgB5D;;;;GAIG;AACH,IAAY,OAUX;AAVD,WAAY,OAAO;IACjB,2DAAgD,CAAA;IAChD,2EAAgE,CAAA;IAChE,wGAA6F,CAAA;IAC7F,kEAAuD,CAAA;IACvD,iEAAsD,CAAA;IACtD,qEAA0D,CAAA;IAC1D,sDAA2C,CAAA;IAC3C,qEAA0D,CAAA;IAC1D,mEAAwD,CAAA;AAC1D,CAAC,EAVW,OAAO,uBAAP,OAAO,QAUlB;AAEY,QAAA,aAAa,GAGtB;IACF,CAAC,OAAO,CAAC,4BAA4B,CAAC,EAAE;QACtC,MAAM,EAAE,gCAAgC;QACxC,cAAc,EAAE,SAAS;QACzB,YAAY,EAAE,KAAK;KACpB;IACD,CAAC,OAAO,CAAC,oBAAoB,CAAC,EAAE;QAC9B,MAAM,EAAE,2BAA2B;QACnC,cAAc,EAAE,QAAQ;QACxB,YAAY,EAAE,IAAI;KACnB;IACD,CAAC,OAAO,CAAC,wBAAwB,CAAC,EAAE;QAClC,MAAM,EAAE,kCAAkC;QAC1C,cAAc,EAAE,QAAQ;QACxB,YAAY,EAAE,IAAI;KACnB;IACD,CAAC,OAAO,CAAC,uBAAuB,CAAC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AG,KAAK,CAAC;gBAC3C,OAAO,EAAE,CAAC;aACX;iBAAM;gBACL,kFAAkF;gBAClF,8EAA8E;gBAC9E,2FAA2F;gBAC3F,eAAe;gBACf,MAAM,IAAI,KAAK,CACb,sEAAsE,CAAC,EAAE,CAC1E,CAAC;aACH;SACF;IACH,CAAC;CACF;AAED;;;GAGG;AACI,KAAK,UAAU,0BAA0B,CAC9C,MAAc,EACd,QAA2B;IAE3B,OAAO,MAAM,QAAQ,CAAC,QAAQ,CAAC,OAAO,CAAC,oBAAoB,EAAE,MAAM,CAAC,CAAC;AACvE,CAAC;AALD,gEAKC;AAEM,KAAK,UAAU,0BAA0B,CAC9C,MAAc,EACd,QAA2B,EAC3B,MAAc;IAEd,IAAI,MAAM,0BAA0B,CAAC,MAAM,EAAE,QAAQ,CAAC,EAAE;QACtD,MAAM,CAAC,IAAI,CACT,qEAAqE,CACtE,CAAC;KACH;SAAM;QACL,MAAM,CAAC,IAAI,CACT,wEAAwE,CACzE,CAAC;KACH;AACH,CAAC;AAdD,gEAcC"} \ No newline at end of file +{"version":3,"file":"feature-flags.js","sourceRoot":"","sources":["../src/feature-flags.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;AAAA,uCAAyB;AACzB,2CAA6B;AAE7B,+CAAiC;AAEjC,6CAA4C;AAE5C,0DAA4C;AAG5C,6CAA+B;AAE/B,MAAM,mCAAmC,GAAG,yBAAyB,CAAC;AACtE,MAAM,mCAAmC,GAAG,UAAU,CAAC;AAEvD;;GAEG;AACU,QAAA,4CAA4C,GAAG,QAAQ,CAAC;AAErE;;GAEG;AACU,QAAA,mCAAmC,GAAG,QAAQ,CAAC;AAE5D;;GAEG;AACU,QAAA,sCAAsC,GAAG,QAAQ,CAAC;AAgB/D;;;;GAIG;AACH,IAAY,OAYX;AAZD,WAAY,OAAO;IACjB,2DAAgD,CAAA;IAChD,iEAAsD,CAAA;IACtD,2EAAgE,CAAA;IAChE,wGAA6F,CAAA;IAC7F,8FA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AACvE,CAAC;AALD,gEAKC;AAEM,KAAK,UAAU,0BAA0B,CAC9C,MAAc,EACd,QAA2B,EAC3B,MAAc;IAEd,IAAI,MAAM,0BAA0B,CAAC,MAAM,EAAE,QAAQ,CAAC,EAAE;QACtD,MAAM,CAAC,IAAI,CACT,qEAAqE,CACtE,CAAC;KACH;SAAM;QACL,MAAM,CAAC,IAAI,CACT,wEAAwE,CACzE,CAAC;KACH;AACH,CAAC;AAdD,gEAcC"} \ No newline at end of file diff --git a/lib/init-action.js b/lib/init-action.js index ecff5bae5c..6f21be040f 100644 --- a/lib/init-action.js +++ b/lib/init-action.js @@ -178,6 +178,16 @@ async function run() { if (await features.getValue(feature_flags_1.Feature.DisableKotlinAnalysisEnabled)) { core.exportVariable("CODEQL_EXTRACTOR_JAVA_AGENT_DISABLE_KOTLIN", "true"); } + if (config.languages.includes(languages_1.Language.java)) { + if (await features.getValue(feature_flags_1.Feature.CodeqlJavaLombokEnabled, codeql)) { + logger.info("Enabling CodeQL Java Lombok support"); + core.exportVariable("CODEQL_EXTRACTOR_JAVA_RUN_ANNOTATION_PROCESSORS", "true"); + } + else { + logger.info("Disabling CodeQL Java Lombok support"); + core.exportVariable("CODEQL_EXTRACTOR_JAVA_RUN_ANNOTATION_PROCESSORS", "false"); + } + } // Disable Python dependency extraction if feature flag set if (await features.getValue(feature_flags_1.Feature.DisablePythonDependencyInstallationEnabled, codeql)) { core.exportVariable("CODEQL_EXTRACTOR_PYTHON_DISABLE_LIBRARY_EXTRACTION", "true"); diff --git a/lib/init-action.js.map b/lib/init-action.js.map index d3a18f4743..8eae63e865 100644 --- a/lib/init-action.js.map +++ b/lib/init-action.js.map @@ -1 +1 @@ -{"version":3,"file":"init-action.js","sourceRoot":"","sources":["../src/init-action.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;AAAA,2CAA6B;AAE7B,oDAAsC;AACtC,+BAAoC;AAEpC,iDAOwB;AACxB,6CAIsB;AAGtB,iDAA6D;AAC7D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B,IAAI;QACF,MAAM,GAAG,EAAE,CAAC;KACb;IAAC,OAAO,KAAK,EAAE;QACd,IAAI,CAAC,SAAS,CAAC,uBAAuB,IAAA,gBAAS,EAAC,KAAK,CAAC,CAAC,OAAO,EAAE,CAAC,CAAC;KACnE;IACD,MAAM,IAAA,sBAAe,GAAE,CAAC;AAC1B,CAAC;AAED,KAAK,UAAU,EAAE,CAAC"} \ No newline at end of file +{"version":3,"file":"init-action.js","sourceRoot":"","sources":["../src/init-action.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;AAAA,2CAA6B;AAE7B,oDAAsC;AACtC,+BAAoC;AAEpC,iDAOwB;AACxB,6CAIsB;AAGtB,iDAA6D;AAC7D,+CAAuC;AACvC,mDAAoD;AACpD,iCAA4E;AAC5E,2CAAuC;AACvC,uCAAqD;AACrD,6CAAkD;AAClD,iDAA6C;AAC7C,iDAAmD;AACnD,iCAYgB;AAChB,yCAA8C;AAgD9C,KAAK,UAAU,yBAAyB,CACtC,SAAe,EACf,MAAsC,EACtC,uBAA2C,EAC3C,sBAA2C,EAC3C,WAAwB,EACxB,YAAoB,EACpB,MAAc,EACd,KAAa;IAEb,MAAM,gBAAgB,GAAG,MAAM,IAAA,mCAAsB,EACnD,MAAM,EACN,IAAA,+BAAgB,EAAC,KAAK,CAAC,EACvB,SAAS,EACT,KAAK,EAAE,OAAO,EACd,KAAK,EAAE,KAAK,CACb,CAAC;IAEF,MAAM,iBAAiB,GAAG,IAAA,+BAAgB,EAAC,WAAW,CAAC,CAAC;IAExD,MAAM,gBAAgB,GAAqB;QACzC,GAAG,gBAAgB;QACnB,WAAW,EAAE,IAAA,+BAAgB,EAAC,OAAO,CAAC,IAAI,EAAE;QAC5C,sBAAsB,EAAE,YAAY;QACpC,YAAY,EAAE,WAAW,IAAI,0BAAW,CAAC,OAAO;QAChD,kBAAkB,EAAE,iBAAiB,IAAI,EAAE;KAC5C,CAAC;IAEF,MAAM,uBAAuB,GAA4B,EAAE,CA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cAAc,CAAC,GAAG,EAAE,KAAK,CAAC,CAAC;aACjC;SACF;QAED,IAAI,CAAC,SAAS,CAAC,aAAa,EAAE,MAAM,CAAC,SAAS,CAAC,CAAC;KACjD;IAAC,OAAO,cAAc,EAAE;QACvB,MAAM,KAAK,GAAG,IAAA,gBAAS,EAAC,cAAc,CAAC,CAAC;QACxC,IAAI,CAAC,SAAS,CAAC,KAAK,CAAC,OAAO,CAAC,CAAC;QAC9B,MAAM,yBAAyB,CAC7B,SAAS,EACT,MAAM,EACN,uBAAuB,EACvB,sBAAsB,EACtB,WAAW,EACX,YAAY,EACZ,MAAM,EACN,KAAK,CACN,CAAC;QACF,OAAO;KACR;IACD,MAAM,yBAAyB,CAC7B,SAAS,EACT,MAAM,EACN,uBAAuB,EACvB,sBAAsB,EACtB,WAAW,EACX,YAAY,EACZ,MAAM,CACP,CAAC;AACJ,CAAC;AAED,SAAS,qBAAqB;IAC5B,0DAA0D;IAC1D,MAAM,WAAW,GAAG,IAAA,+BAAgB,EAAC,cAAc,CAAC,CAAC;IACrD,IAAI,WAAW,KAAK,SAAS;QAAE,OAAO,WAAW,KAAK,MAAM,CAAC;IAE7D,6FAA6F;IAC7F,IAAI,CAAC,IAAA,qBAAc,GAAE;QAAE,OAAO,KAAK,CAAC;IAEpC,oDAAoD;IACpD,OAAO,IAAI,CAAC;AACd,CAAC;AAED,KAAK,UAAU,UAAU;IACvB,IAAI;QACF,MAAM,GAAG,EAAE,CAAC;KACb;IAAC,OAAO,KAAK,EAAE;QACd,IAAI,CAAC,SAAS,CAAC,uBAAuB,IAAA,gBAAS,EAAC,KAAK,CAAC,CAAC,OAAO,EAAE,CAAC,CAAC;KACnE;IACD,MAAM,IAAA,sBAAe,GAAE,CAAC;AAC1B,CAAC;AAED,KAAK,UAAU,EAAE,CAAC"} \ No newline at end of file diff --git a/lib/setup-codeql.js b/lib/setup-codeql.js index 65dd31bee8..7173d25723 100644 --- a/lib/setup-codeql.js +++ b/lib/setup-codeql.js @@ -31,6 +31,7 @@ const fs = __importStar(require("fs")); const path = __importStar(require("path")); const perf_hooks_1 = require("perf_hooks"); const toolcache = __importStar(require("@actions/tool-cache")); +const del_1 = __importDefault(require("del")); const fast_deep_equal_1 = __importDefault(require("fast-deep-equal")); const semver = __importStar(require("semver")); const uuid_1 = require("uuid"); @@ -420,17 +421,22 @@ async function downloadCodeQL(codeqlURL, maybeBundleVersion, maybeCliVersion, ap const dest = path.join(tempDir, (0, uuid_1.v4)()); const finalHeaders = Object.assign({ "User-Agent": "CodeQL Action" }, headers); const toolsDownloadStart = perf_hooks_1.performance.now(); - const codeqlPath = await toolcache.downloadTool(codeqlURL, dest, authorization, finalHeaders); + const archivedBundlePath = await toolcache.downloadTool(codeqlURL, dest, authorization, finalHeaders); const toolsDownloadDurationMs = Math.round(perf_hooks_1.performance.now() - toolsDownloadStart); - logger.debug(`CodeQL bundle download to ${codeqlPath} complete.`); - const codeqlExtracted = await toolcache.extractTar(codeqlPath); + logger.debug(`Finished downloading CodeQL bundle to ${archivedBundlePath} (${toolsDownloadDurationMs} ms).`); + logger.debug("Extracting CodeQL bundle."); + const extractionStart = perf_hooks_1.performance.now(); + const extractedBundlePath = await toolcache.extractTar(archivedBundlePath); + const extractionMs = Math.round(perf_hooks_1.performance.now() - extractionStart); + logger.debug(`Finished extracting CodeQL bundle to ${extractedBundlePath} (${extractionMs} ms).`); + await cleanUpGlob(archivedBundlePath, "CodeQL bundle archive", logger); const bundleVersion = maybeBundleVersion ?? tryGetBundleVersionFromUrl(codeqlURL, logger); if (bundleVersion === undefined) { logger.debug("Could not cache CodeQL tools because we could not determine the bundle version from the " + `URL ${codeqlURL}.`); return { toolsVersion: maybeCliVersion ?? "unknown", - codeqlFolder: codeqlExtracted, + codeqlFolder: extractedBundlePath, toolsDownloadDurationMs, }; } @@ -452,9 +458,15 @@ async function downloadCodeQL(codeqlURL, maybeBundleVersion, maybeCliVersion, ap const toolcacheVersion = maybeCliVersion?.match(/^[0-9]+\.[0-9]+\.[0-9]+$/) ? `${maybeCliVersion}-${bundleVersion}` : convertToSemVer(bundleVersion, logger); + logger.debug("Caching CodeQL bundle."); + const toolcachedBundlePath = await toolcache.cacheDir(extractedBundlePath, "CodeQL", toolcacheVersion); + // Defensive check: we expect `cacheDir` to copy the bundle to a new location. + if (toolcachedBundlePath !== extractedBundlePath) { + await cleanUpGlob(extractedBundlePath, "CodeQL bundle from temporary directory", logger); + } return { toolsVersion: maybeCliVersion ?? toolcacheVersion, - codeqlFolder: await toolcache.cacheDir(codeqlExtracted, "CodeQL", toolcacheVersion), + codeqlFolder: toolcachedBundlePath, toolsDownloadDurationMs, }; } @@ -510,4 +522,22 @@ async function setupCodeQLBundle(toolsInput, apiDetails, tempDir, variant, defau return { codeqlFolder, toolsDownloadDurationMs, toolsSource, toolsVersion }; } exports.setupCodeQLBundle = setupCodeQLBundle; +async function cleanUpGlob(glob, name, logger) { + logger.debug(`Cleaning up ${name}.`); + try { + const deletedPaths = await (0, del_1.default)(glob, { force: true }); + if (deletedPaths.length === 0) { + logger.warning(`Failed to clean up ${name}: no files found matching ${glob}.`); + } + else if (deletedPaths.length === 1) { + logger.debug(`Cleaned up ${name}.`); + } + else { + logger.debug(`Cleaned up ${name} (${deletedPaths.length} files).`); + } + } + catch (e) { + logger.warning(`Failed to clean up ${name}: ${e}.`); + } +} //# sourceMappingURL=setup-codeql.js.map \ No newline at end of file diff --git a/lib/setup-codeql.js.map b/lib/setup-codeql.js.map index 3e256b1586..c8bf761a51 100644 --- a/lib/setup-codeql.js.map +++ b/lib/setup-codeql.js.map @@ -1 +1 @@ -{"version":3,"file":"setup-codeql.js","sourceRoot":"","sources":["../src/setup-codeql.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAAA,uCAAyB;AAEzB,2CAA6B;AAC7B,2CAAyC;AAEzC,+DAAiD;AACjD,sEAAuD;AACvD,+CAAiC;AACjC,+BAAoC;AAEpC,iDAAsD;AACtD,kDAAoC;AACpC,kGAAk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B,UAAU,EACV,OAAO,EACP,MAAM,CACP,CAAC;IAEF,IAAI,YAAoB,CAAC;IACzB,IAAI,YAAY,GAAG,MAAM,CAAC,YAAY,CAAC;IACvC,IAAI,uBAA2C,CAAC;IAChD,IAAI,WAAwB,CAAC;IAC7B,QAAQ,MAAM,CAAC,UAAU,EAAE;QACzB,KAAK,OAAO;YACV,YAAY,GAAG,MAAM,SAAS,CAAC,UAAU,CAAC,MAAM,CAAC,aAAa,CAAC,CAAC;YAChE,WAAW,GAAG,WAAW,CAAC,KAAK,CAAC;YAChC,MAAM;QACR,KAAK,WAAW;YACd,YAAY,GAAG,MAAM,CAAC,YAAY,CAAC;YACnC,MAAM,CAAC,KAAK,CAAC,yBAAyB,YAAY,EAAE,CAAC,CAAC;YACtD,WAAW,GAAG,WAAW,CAAC,SAAS,CAAC;YACpC,MAAM;QACR,KAAK,UAAU,CAAC,CAAC;YACf,MAAM,MAAM,GAAG,MAAM,cAAc,CACjC,MAAM,CAAC,SAAS,EAChB,MAAM,CAAC,aAAa,EACpB,MAAM,CAAC,UAAU,EACjB,UAAU,EACV,OAAO,EACP,OAAO,EACP,MAAM,CACP,CAAC;YACF,YAAY,GAAG,MAAM,CAAC,YAAY,CAAC;YACnC,YAAY,GAAG,MAAM,CAAC,YAAY,CAAC;YACnC,uBAAuB,GAAG,MAAM,CAAC,uBAAuB,CAAC;YACzD,WAAW,GAAG,WAAW,CAAC,QAAQ,CAAC;YACnC,MAAM;SACP;QACD;YACE,IAAI,CAAC,WAAW,CAAC,MAAM,CAAC,CAAC;KAC5B;IACD,OAAO,EAAE,YAAY,EAAE,uBAAuB,EAAE,WAAW,EAAE,YAAY,EAAE,CAAC;AAC9E,CAAC;AAvDD,8CAuDC"} \ No newline at end of file +{"version":3,"file":"setup-codeql.js","sourceRoot":"","sources":["../src/setup-codeql.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAAA,uCAAyB;AAEzB,2CAA6B;AAC7B,2CAAyC;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KACrD;AACH,CAAC"} \ No newline at end of file diff --git a/lib/upload-lib.js b/lib/upload-lib.js index 995782f62c..fd5485e10b 100644 --- a/lib/upload-lib.js +++ b/lib/upload-lib.js @@ -331,7 +331,10 @@ async function waitForProcessing(repositoryNwo, sarifID, logger, options = { break; } else if (status === "failed") { - throw new Error(`Code Scanning could not process the submitted SARIF file:\n${response.data.errors}`); + const message = `Code Scanning could not process the submitted SARIF file:\n${response.data.errors}`; + throw shouldConsiderAsUserError(response.data.errors) + ? new util_1.UserError(message) + : new Error(message); } else { util.assertNever(status); @@ -346,6 +349,14 @@ async function waitForProcessing(repositoryNwo, sarifID, logger, options = { } } exports.waitForProcessing = waitForProcessing; +/** + * Returns whether the provided processing errors should be considered a user error. + */ +function shouldConsiderAsUserError(processingErrors) { + return (processingErrors.length === 1 && + processingErrors[0] === + "CodeQL analyses from advanced configurations cannot be processed when the default setup is enabled"); +} /** * Checks the processing result for an unsuccessful execution. Throws if the * result is not a failure with a single "unsuccessful execution" error. diff --git a/lib/upload-lib.js.map b/lib/upload-lib.js.map index 9e61876168..1e667549d6 100644 --- a/lib/upload-lib.js.map +++ b/lib/upload-lib.js.map @@ -1 +1 @@ -{"version":3,"file":"upload-lib.js","sourceRoot":"","sources":["../src/upload-lib.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAAA,uCAAyB;AACzB,2CAA6B;AAC7B,qCAA8B;AAC9B,gDAAwB;AAExB,oDAAsC;AAEtC,wDAA+B;AAC/B,uDAAyC;AAEzC,4DAA8C;AAC9C,kDAAoC;AACpC,+CAAuC;AACvC,6DAA+C;AAE/C,6CAAiE;AACjE,6CAA+B;AAC/B,iCAAqE;AAErE,mEAAmE;AACnE,qDAAqD;AACrD,SAAS,iBAAiB,CAAC,UAAoB;IAC7C,MAAM,aAAa,GAAc;QAC/B,OAAO,EAAE,IAAI;QACb,IAAI,EAAE,EAAE;KACT,CAAC;IAEF,KAAK,MAAM,SAAS,IAAI,UAAU,EA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AAE,CAAC;AACzE,CAAC;AAED,SAAgB,mBAAmB,CACjC,KAAgB,EAChB,MAAc;IAEd,IAAI,MAAM,GAAG,CAAC,CAAC;IACf,MAAM,OAAO,GAAe,EAAE,CAAC;IAC/B,KAAK,MAAM,GAAG,IAAI,KAAK,CAAC,IAAI,IAAI,EAAE,EAAE;QAClC,IACE,GAAG,CAAC,IAAI,EAAE,MAAM,EAAE,IAAI,KAAK,QAAQ;YACnC,GAAG,CAAC,IAAI,EAAE,MAAM,EAAE,eAAe,KAAK,QAAQ,EAC9C;YACA,mEAAmE;YACnE,iEAAiE;YACjE,qEAAqE;YACrE,MAAM,UAAU,GAAkB,EAAE,CAAC;YACrC,KAAK,MAAM,MAAM,IAAI,GAAG,CAAC,OAAO,IAAI,EAAE,EAAE;gBACtC,IACE,MAAM,CAAC,MAAM,KAAK,iCAAiC;oBACnD,CAAC,MAAM,CAAC,OAAO,EAAE,IAAI,EAAE,QAAQ,CAAC,OAAO,CAAC;wBACtC,MAAM,CAAC,OAAO,EAAE,IAAI,EAAE,QAAQ,CAAC,QAAQ,CAAC,CAAC,EAC3C;oBACA,MAAM,IAAI,CAAC,CAAC;oBACZ,SAAS;iBACV;gBACD,UAAU,CAAC,IAAI,CAAC,MAAM,CAAC,CAAC;aACzB;YACD,OAAO,CAAC,IAAI,CAAC,EAAE,GAAG,GAAG,EAAE,OAAO,EAAE,UAAU,EAAE,CAAC,CAAC;SAC/C;aAAM;YACL,OAAO,CAAC,IAAI,CAAC,GAAG,CAAC,CAAC;SACnB;KACF;IACD,IAAI,MAAM,GAAG,CAAC,EAAE;QACd,MAAM,CAAC,IAAI,CACT,UAAU,MAAM,kDAAkD,CACnE,CAAC;KACH;IACD,OAAO,EAAE,GAAG,KAAK,EAAE,IAAI,EAAE,OAAO,EAAE,CAAC;AACrC,CAAC;AArCD,kDAqCC"} \ No newline at end of file +{"version":3,"file":"upload-lib.js","sourceRoot":"","sources":["../src/upload-lib.ts"],"names":[],"mappings":";;;;;;;;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AAE,EAAE;gBACtC,IACE,MAAM,CAAC,MAAM,KAAK,iCAAiC;oBACnD,CAAC,MAAM,CAAC,OAAO,EAAE,IAAI,EAAE,QAAQ,CAAC,OAAO,CAAC;wBACtC,MAAM,CAAC,OAAO,EAAE,IAAI,EAAE,QAAQ,CAAC,QAAQ,CAAC,CAAC,EAC3C;oBACA,MAAM,IAAI,CAAC,CAAC;oBACZ,SAAS;iBACV;gBACD,UAAU,CAAC,IAAI,CAAC,MAAM,CAAC,CAAC;aACzB;YACD,OAAO,CAAC,IAAI,CAAC,EAAE,GAAG,GAAG,EAAE,OAAO,EAAE,UAAU,EAAE,CAAC,CAAC;SAC/C;aAAM;YACL,OAAO,CAAC,IAAI,CAAC,GAAG,CAAC,CAAC;SACnB;KACF;IACD,IAAI,MAAM,GAAG,CAAC,EAAE;QACd,MAAM,CAAC,IAAI,CACT,UAAU,MAAM,kDAAkD,CACnE,CAAC;KACH;IACD,OAAO,EAAE,GAAG,KAAK,EAAE,IAAI,EAAE,OAAO,EAAE,CAAC;AACrC,CAAC;AArCD,kDAqCC"} \ No newline at end of file diff --git a/lib/util.js b/lib/util.js index a01c7f6e09..e602b9f4a4 100644 --- a/lib/util.js +++ b/lib/util.js @@ -109,9 +109,9 @@ function getSystemReservedMemoryMegaBytes(totalMemoryMegaBytes, platform, isScal // Windows needs more memory for OS processes. const fixedAmount = 1024 * (platform === "win32" ? 1.5 : 1); if (isScalingReservedRamEnabled) { - // Reserve an additional 2.5% of the amount of memory above 8 GB, since the amount used by - // the kernel for page tables scales with the size of physical memory. - const scaledAmount = 0.025 * Math.max(totalMemoryMegaBytes - 8 * 1024, 0); + // Reserve an additional 5% of the amount of memory above 8 GB, since the amount used by the + // kernel for page tables scales with the size of physical memory. + const scaledAmount = 0.05 * Math.max(totalMemoryMegaBytes - 8 * 1024, 0); return fixedAmount + scaledAmount; } else { diff --git a/lib/util.js.map b/lib/util.js.map index 74ab5a980e..bbf5ff4a55 100644 --- a/lib/util.js.map +++ b/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644 --- a/lib/util.test.js +++ b/lib/util.test.js @@ -73,14 +73,14 @@ const GET_MEMORY_FLAG_TESTS = [ totalMemoryMb: 64 * 1024, platform: "linux", expectedMemoryValue: 63 * 1024, - expectedMemoryValueWithScaling: 63078, // Math.floor(1024 * (64 - 1 - 0.025 * (64 - 8))) + expectedMemoryValueWithScaling: 61644, // Math.floor(1024 * (64 - 1 - 0.05 * (64 - 8))) }, { input: undefined, totalMemoryMb: 64 * 1024, platform: "win32", expectedMemoryValue: 62.5 * 1024, - expectedMemoryValueWithScaling: 62566, // Math.floor(1024 * (64 - 1.5 - 0.025 * (64 - 8))) + expectedMemoryValueWithScaling: 61132, // Math.floor(1024 * (64 - 1.5 - 0.05 * (64 - 8))) }, ]; for (const { input, totalMemoryMb, platform, expectedMemoryValue, expectedMemoryValueWithScaling, } of GET_MEMORY_FLAG_TESTS) { diff --git a/lib/util.test.js.map b/lib/util.test.js.map index 51f87312e7..b7047e5869 100644 --- a/lib/util.test.js.map +++ b/lib/util.test.js.map @@ -1 +1 @@ -{"version":3,"file":"util.test.js","sourceRoot":"","sources":["../src/util.test.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;AAAA,uCAAyB;AACzB,uCAAyB;AACzB,gDAAwB;AAExB,8CAAuB;AAEvB,uCAA4C;AAC5C,mDAAgF;AAChF,6CAA+B;AAE/B,IAAA,0BAAU,EAAC,aAAI,CAAC,CAAC;AAEjB,IAAA,aAAI,EAAC,cAAc,EAAE,CAAC,CAAC,EAAE,EAAE;IACzB,MAAM,KAAK,GAAG,EAAE,CAAC,YAAY,CAC3B,GAAG,SAAS,mCAAmC,EAC/C,MAAM,CACP,CAAC;IACF,MAAM,SAAS,GAAG,IAAI,CAAC,YAAY,CAAC,IAAI,CAAC,KAAK,CAAC,KAAK,CAAmB,CAAC,CAAC;IACzE,CAAC,CAAC,SAAS,CAAC,SAAS,EAAE,CAAC,+BAA+B,EAAE,QAAQ,CAAC,CAAC,CAAC;AACtE,C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AAC,EAAE,CAAC,QAAQ,CAAC,MAAM,EAAE,CAAC,CAAC,CAAC;IACzB,CAAC,CAAC,SAAS,CAAC,QAAQ,CAAC,CAAC,CAAC,EAAE;QACvB,IAAI,EAAE,OAAO;QACb,OAAO,EAAE,6DAA6D;KACvE,CAAC,CAAC;AACL,CAAC,CAAC,CAAC;AAEH,IAAA,aAAI,EAAC,qDAAqD,EAAE,CAAC,CAAC,EAAE,EAAE;IAChE,MAAM,QAAQ,GAAoB,EAAE,CAAC;IACrC,MAAM,MAAM,GAAG,IAAI,CAAC,uBAAuB,CACzC,+BAA+B,CAAC,CAAC,YAAY,EAAE,YAAY,CAAC,CAAC,EAC7D,IAAA,kCAAkB,EAAC,QAAQ,CAAC,CAC7B,CAAC;IACF,CAAC,CAAC,SAAS,CAAC,MAAM,EAAE,+BAA+B,CAAC,CAAC,YAAY,CAAC,CAAC,CAAC,CAAC;IACrE,CAAC,CAAC,EAAE,CAAC,QAAQ,CAAC,MAAM,EAAE,CAAC,CAAC,CAAC;IACzB,CAAC,CAAC,SAAS,CAAC,QAAQ,CAAC,CAAC,CAAC,EAAE;QACvB,IAAI,EAAE,MAAM;QACZ,OAAO,EAAE,gEAAgE;KAC1E,CAAC,CAAC;AACL,CAAC,CAAC,CAAC"} \ No newline at end of file diff --git a/node_modules/.package-lock.json b/node_modules/.package-lock.json index 5f8d055561..da95d42c31 100644 --- a/node_modules/.package-lock.json +++ b/node_modules/.package-lock.json @@ -1,6 +1,6 @@ { "name": "codeql", - "version": "2.21.2", + "version": "2.21.3", "lockfileVersion": 3, "requires": true, "packages": { @@ -416,18 +416,18 @@ } }, "node_modules/@eslint-community/regexpp": { - "version": "4.5.1", - "resolved": "https://registry.npmjs.org/@eslint-community/regexpp/-/regexpp-4.5.1.tgz", - "integrity": "sha512-Z5ba73P98O1KUYCCJTUeVpja9RcGoMdncZ6T49FCUl2lN38JtCJ+3WgIDBv0AuY4WChU5PmtJmOCTlN6FZTFKQ==", + "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" } }, "node_modules/@eslint/eslintrc": { - "version": "2.1.0", - "resolved": "https://registry.npmjs.org/@eslint/eslintrc/-/eslintrc-2.1.0.tgz", - "integrity": "sha512-Lj7DECXqIVCqnqjjHMPna4vn6GJcMgul/wuS0je9OZ9gsL0zzDpKPVtcG1HaDVc+9y+qgXneTeUMbCqXJNpH1A==", + "version": "2.1.1", + "resolved": "https://registry.npmjs.org/@eslint/eslintrc/-/eslintrc-2.1.1.tgz", + "integrity": "sha512-9t7ZA7NGGK8ckelF0PQCfcxIUzs1Md5rrO6U/c+FIQNanea5UZC0wqKXH4vHBccmu4ZJgZ2idtPeW7+Q2npOEA==", "dev": true, "dependencies": { "ajv": "^6.12.4", @@ -448,9 +448,9 @@ } }, "node_modules/@eslint/js": { - "version": "8.44.0", - "resolved": "https://registry.npmjs.org/@eslint/js/-/js-8.44.0.tgz", - "integrity": "sha512-Ag+9YM4ocKQx9AarydN0KY2j0ErMHNIocPDrVo8zAE44xLTjEtz81OdR68/cydGtk6m6jDb5Za3r2useMzYmSw==", + "version": "8.46.0", + "resolved": "https://registry.npmjs.org/@eslint/js/-/js-8.46.0.tgz", + "integrity": "sha512-a8TLtmPi8xzPkCbp/OGFUo5yhRkHM2Ko9kOWP4znJr0WAhWyThaw3PnwX4vOTWOAMsV2uRt32PPDcEz63esSaA==", "dev": true, "engines": { "node": "^12.22.0 || ^14.17.0 || >=16.0.0" @@ -906,9 +906,9 @@ "dev": true }, "node_modules/@types/sinon": { - "version": "10.0.15", - "resolved": "https://registry.npmjs.org/@types/sinon/-/sinon-10.0.15.tgz", - "integrity": "sha512-3lrFNQG0Kr2LDzvjyjB6AMJk4ge+8iYhQfdnSwIwlG88FUOV43kPcQqDZkDa/h3WSZy6i8Fr0BSjfQtB1B3xuQ==", + "version": "10.0.16", + "resolved": "https://registry.npmjs.org/@types/sinon/-/sinon-10.0.16.tgz", + "integrity": "sha512-j2Du5SYpXZjJVJtXBokASpPRj+e2z+VUhCPHmM6WMfe3dpHu6iVKJMU6AiBcMp/XTAYnEj6Wc1trJUWwZ0QaAQ==", "dev": true, "dependencies": { "@types/sinonjs__fake-timers": "*" @@ -934,16 +934,16 @@ "integrity": "sha512-kNnC1GFBLuhImSnV7w4njQkUiJi0ZXUycu1rUaouPqiKlXkh77JKgdRnTAp1x5eBwcIwbtI+3otwzuIDEuDoxQ==" }, "node_modules/@typescript-eslint/eslint-plugin": { - "version": "6.2.0", - "resolved": "https://registry.npmjs.org/@typescript-eslint/eslint-plugin/-/eslint-plugin-6.2.0.tgz", - "integrity": "sha512-rClGrMuyS/3j0ETa1Ui7s6GkLhfZGKZL3ZrChLeAiACBE/tRc1wq8SNZESUuluxhLj9FkUefRs2l6bCIArWBiQ==", + "version": "6.2.1", + "resolved": "https://registry.npmjs.org/@typescript-eslint/eslint-plugin/-/eslint-plugin-6.2.1.tgz", + "integrity": "sha512-iZVM/ALid9kO0+I81pnp1xmYiFyqibAHzrqX4q5YvvVEyJqY+e6rfTXSCsc2jUxGNqJqTfFSSij/NFkZBiBzLw==", "dev": true, "dependencies": { "@eslint-community/regexpp": "^4.5.1", - "@typescript-eslint/scope-manager": "6.2.0", - "@typescript-eslint/type-utils": "6.2.0", - "@typescript-eslint/utils": "6.2.0", - "@typescript-eslint/visitor-keys": "6.2.0", + "@typescript-eslint/scope-manager": "6.2.1", + "@typescript-eslint/type-utils": "6.2.1", + "@typescript-eslint/utils": "6.2.1", + "@typescript-eslint/visitor-keys": "6.2.1", "debug": "^4.3.4", "graphemer": "^1.4.0", "ignore": "^5.2.4", @@ -970,15 +970,15 @@ } }, "node_modules/@typescript-eslint/parser": { - "version": "6.2.0", - "resolved": "https://registry.npmjs.org/@typescript-eslint/parser/-/parser-6.2.0.tgz", - "integrity": "sha512-igVYOqtiK/UsvKAmmloQAruAdUHihsOCvplJpplPZ+3h4aDkC/UKZZNKgB6h93ayuYLuEymU3h8nF1xMRbh37g==", + "version": "6.2.1", + "resolved": "https://registry.npmjs.org/@typescript-eslint/parser/-/parser-6.2.1.tgz", + "integrity": "sha512-Ld+uL1kYFU8e6btqBFpsHkwQ35rw30IWpdQxgOqOh4NfxSDH6uCkah1ks8R/RgQqI5hHPXMaLy9fbFseIe+dIg==", "dev": true, "dependencies": { - "@typescript-eslint/scope-manager": "6.2.0", - "@typescript-eslint/types": "6.2.0", - "@typescript-eslint/typescript-estree": "6.2.0", - "@typescript-eslint/visitor-keys": "6.2.0", + "@typescript-eslint/scope-manager": "6.2.1", + "@typescript-eslint/types": "6.2.1", + "@typescript-eslint/typescript-estree": "6.2.1", + "@typescript-eslint/visitor-keys": "6.2.1", "debug": "^4.3.4" }, "engines": { @@ -998,13 +998,13 @@ } }, "node_modules/@typescript-eslint/scope-manager": { - "version": "6.2.0", - "resolved": "https://registry.npmjs.org/@typescript-eslint/scope-manager/-/scope-manager-6.2.0.tgz", - "integrity": "sha512-1ZMNVgm5nnHURU8ZSJ3snsHzpFeNK84rdZjluEVBGNu7jDymfqceB3kdIZ6A4xCfEFFhRIB6rF8q/JIqJd2R0Q==", + "version": "6.2.1", + "resolved": "https://registry.npmjs.org/@typescript-eslint/scope-manager/-/scope-manager-6.2.1.tgz", + "integrity": "sha512-UCqBF9WFqv64xNsIEPfBtenbfodPXsJ3nPAr55mGPkQIkiQvgoWNo+astj9ZUfJfVKiYgAZDMnM6dIpsxUMp3Q==", "dev": true, "dependencies": { - "@typescript-eslint/types": "6.2.0", - "@typescript-eslint/visitor-keys": "6.2.0" + "@typescript-eslint/types": "6.2.1", + "@typescript-eslint/visitor-keys": "6.2.1" }, "engines": { "node": "^16.0.0 || >=18.0.0" @@ -1015,13 +1015,13 @@ } }, "node_modules/@typescript-eslint/type-utils": { - "version": "6.2.0", - "resolved": "https://registry.npmjs.org/@typescript-eslint/type-utils/-/type-utils-6.2.0.tgz", - "integrity": "sha512-DnGZuNU2JN3AYwddYIqrVkYW0uUQdv0AY+kz2M25euVNlujcN2u+rJgfJsBFlUEzBB6OQkUqSZPyuTLf2bP5mw==", + "version": "6.2.1", + "resolved": "https://registry.npmjs.org/@typescript-eslint/type-utils/-/type-utils-6.2.1.tgz", + "integrity": "sha512-fTfCgomBMIgu2Dh2Or3gMYgoNAnQm3RLtRp+jP7A8fY+LJ2+9PNpi5p6QB5C4RSP+U3cjI0vDlI3mspAkpPVbQ==", "dev": true, "dependencies": { - "@typescript-eslint/typescript-estree": "6.2.0", - "@typescript-eslint/utils": "6.2.0", + "@typescript-eslint/typescript-estree": "6.2.1", + "@typescript-eslint/utils": "6.2.1", "debug": "^4.3.4", "ts-api-utils": "^1.0.1" }, @@ -1042,9 +1042,9 @@ } }, "node_modules/@typescript-eslint/types": { - "version": "6.2.0", - "resolved": "https://registry.npmjs.org/@typescript-eslint/types/-/types-6.2.0.tgz", - "integrity": "sha512-1nRRaDlp/XYJQLvkQJG5F3uBTno5SHPT7XVcJ5n1/k2WfNI28nJsvLakxwZRNY5spuatEKO7d5nZWsQpkqXwBA==", + "version": "6.2.1", + "resolved": "https://registry.npmjs.org/@typescript-eslint/types/-/types-6.2.1.tgz", + "integrity": "sha512-528bGcoelrpw+sETlyM91k51Arl2ajbNT9L4JwoXE2dvRe1yd8Q64E4OL7vHYw31mlnVsf+BeeLyAZUEQtqahQ==", "dev": true, "engines": { "node": "^16.0.0 || >=18.0.0" @@ -1055,13 +1055,13 @@ } }, "node_modules/@typescript-eslint/typescript-estree": { - "version": "6.2.0", - "resolved": "https://registry.npmjs.org/@typescript-eslint/typescript-estree/-/typescript-estree-6.2.0.tgz", - "integrity": "sha512-Mts6+3HQMSM+LZCglsc2yMIny37IhUgp1Qe8yJUYVyO6rHP7/vN0vajKu3JvHCBIy8TSiKddJ/Zwu80jhnGj1w==", + "version": "6.2.1", + "resolved": "https://registry.npmjs.org/@typescript-eslint/typescript-estree/-/typescript-estree-6.2.1.tgz", + "integrity": "sha512-G+UJeQx9AKBHRQBpmvr8T/3K5bJa485eu+4tQBxFq0KoT22+jJyzo1B50JDT9QdC1DEmWQfdKsa8ybiNWYsi0Q==", "dev": true, "dependencies": { - "@typescript-eslint/types": "6.2.0", - "@typescript-eslint/visitor-keys": "6.2.0", + "@typescript-eslint/types": "6.2.1", + "@typescript-eslint/visitor-keys": "6.2.1", "debug": "^4.3.4", "globby": "^11.1.0", "is-glob": "^4.0.3", @@ -1082,17 +1082,17 @@ } }, "node_modules/@typescript-eslint/utils": { - "version": "6.2.0", - "resolved": "https://registry.npmjs.org/@typescript-eslint/utils/-/utils-6.2.0.tgz", - "integrity": "sha512-RCFrC1lXiX1qEZN8LmLrxYRhOkElEsPKTVSNout8DMzf8PeWoQG7Rxz2SadpJa3VSh5oYKGwt7j7X/VRg+Y3OQ==", + "version": "6.2.1", + "resolved": "https://registry.npmjs.org/@typescript-eslint/utils/-/utils-6.2.1.tgz", + "integrity": "sha512-eBIXQeupYmxVB6S7x+B9SdBeB6qIdXKjgQBge2J+Ouv8h9Cxm5dHf/gfAZA6dkMaag+03HdbVInuXMmqFB/lKQ==", "dev": true, "dependencies": { "@eslint-community/eslint-utils": "^4.4.0", "@types/json-schema": "^7.0.12", "@types/semver": "^7.5.0", - "@typescript-eslint/scope-manager": "6.2.0", - "@typescript-eslint/types": "6.2.0", - "@typescript-eslint/typescript-estree": "6.2.0", + "@typescript-eslint/scope-manager": "6.2.1", + "@typescript-eslint/types": "6.2.1", + "@typescript-eslint/typescript-estree": "6.2.1", "semver": "^7.5.4" }, "engines": { @@ -1107,12 +1107,12 @@ } }, "node_modules/@typescript-eslint/visitor-keys": { - "version": "6.2.0", - "resolved": "https://registry.npmjs.org/@typescript-eslint/visitor-keys/-/visitor-keys-6.2.0.tgz", - "integrity": "sha512-QbaYUQVKKo9bgCzpjz45llCfwakyoxHetIy8CAvYCtd16Zu1KrpzNHofwF8kGkpPOxZB2o6kz+0nqH8ZkIzuoQ==", + "version": "6.2.1", + "resolved": "https://registry.npmjs.org/@typescript-eslint/visitor-keys/-/visitor-keys-6.2.1.tgz", + "integrity": "sha512-iTN6w3k2JEZ7cyVdZJTVJx2Lv7t6zFA8DCrJEHD2mwfc16AEvvBWVhbFh34XyG2NORCd0viIgQY1+u7kPI0WpA==", "dev": true, "dependencies": { - "@typescript-eslint/types": "6.2.0", + "@typescript-eslint/types": "6.2.1", "eslint-visitor-keys": "^3.4.1" }, "engines": { @@ -1252,6 +1252,19 @@ "dequal": "^2.0.3" } }, + "node_modules/array-buffer-byte-length": { + "version": "1.0.0", + "resolved": "https://registry.npmjs.org/array-buffer-byte-length/-/array-buffer-byte-length-1.0.0.tgz", + "integrity": "sha512-LPuwb2P+NrQw3XhxGc36+XSvuBPopovXYTR9Ew++Du9Yb/bx5AzBfrIsBoj0EZUifjQU+sHL21sseZ3jerWO/A==", + "dev": true, + "dependencies": { + "call-bind": "^1.0.2", + "is-array-buffer": "^3.0.1" + }, + "funding": { + "url": "https://github.com/sponsors/ljharb" + } + }, "node_modules/array-find-index": { "version": "1.0.2", "integrity": "sha1-3wEKoSh+Fku9pvlyOwqWoexBh6E=", @@ -1286,6 +1299,25 @@ "node": ">=8" } }, + "node_modules/array.prototype.findlastindex": { + "version": "1.2.2", + "resolved": "https://registry.npmjs.org/array.prototype.findlastindex/-/array.prototype.findlastindex-1.2.2.tgz", + "integrity": "sha512-tb5thFFlUcp7NdNF6/MpDk/1r/4awWG1FIz3YqDf+/zJSTezBb+/5WViH41obXULHVpDzoiCLpJ/ZO9YbJMsdw==", + "dev": true, + "dependencies": { + "call-bind": "^1.0.2", + "define-properties": "^1.1.4", + "es-abstract": "^1.20.4", + "es-shim-unscopables": "^1.0.0", + "get-intrinsic": "^1.1.3" + }, + "engines": { + "node": ">= 0.4" + }, + "funding": { + "url": "https://github.com/sponsors/ljharb" + } + }, "node_modules/array.prototype.flat": { "version": "1.3.1", "resolved": "https://registry.npmjs.org/array.prototype.flat/-/array.prototype.flat-1.3.1.tgz", @@ -1322,6 +1354,26 @@ "url": "https://github.com/sponsors/ljharb" } }, + "node_modules/arraybuffer.prototype.slice": { + "version": "1.0.1", + "resolved": "https://registry.npmjs.org/arraybuffer.prototype.slice/-/arraybuffer.prototype.slice-1.0.1.tgz", + "integrity": "sha512-09x0ZWFEjj4WD8PDbykUwo3t9arLn8NIzmmYEJFpYekOAQjpkGSyrQhNoRTcwwcFRu+ycWF78QZ63oWTqSjBcw==", + "dev": true, + "dependencies": { + "array-buffer-byte-length": "^1.0.0", + "call-bind": "^1.0.2", + "define-properties": "^1.2.0", + "get-intrinsic": "^1.2.1", + "is-array-buffer": "^3.0.2", + "is-shared-array-buffer": "^1.0.2" + }, + "engines": { + "node": ">= 0.4" + }, + "funding": { + "url": "https://github.com/sponsors/ljharb" + } + }, "node_modules/arrgv": { "version": "1.0.2", "integrity": "sha512-a4eg4yhp7mmruZDQFqVMlxNRFGi/i1r87pt8SDHy0/I8PqSXoUTlWZRdAZo0VXgvEARcujbtTk8kiZRi1uDGRw==", @@ -2096,9 +2148,9 @@ } }, "node_modules/define-properties": { - "version": "1.1.4", - "resolved": "https://registry.npmjs.org/define-properties/-/define-properties-1.1.4.tgz", - "integrity": "sha512-uckOqKcfaVvtBdsVkdPv3XjveQJsNQqmhXgRi8uhvWWuPYZCNlzT8qAyblUgNoXdHdjMTzAqeGjAoli8f+bzPA==", + "version": "1.2.0", + "resolved": "https://registry.npmjs.org/define-properties/-/define-properties-1.2.0.tgz", + "integrity": "sha512-xvqAVKGfT1+UAvPwKTVw/njhdQ8ZhXK4lI0bCIuCMrp2up9nPnaDftrLtmpTazqd1o+UY4zgzU+avtMbDP+ldA==", "dev": true, "dependencies": { "has-property-descriptors": "^1.0.0", @@ -2270,18 +2322,19 @@ } }, "node_modules/es-abstract": { - "version": "1.21.1", - "resolved": "https://registry.npmjs.org/es-abstract/-/es-abstract-1.21.1.tgz", - "integrity": "sha512-QudMsPOz86xYz/1dG1OuGBKOELjCh99IIWHLzy5znUB6j8xG2yMA7bfTV86VSqKF+Y/H08vQPR+9jyXpuC6hfg==", + "version": "1.22.1", + "resolved": "https://registry.npmjs.org/es-abstract/-/es-abstract-1.22.1.tgz", + "integrity": "sha512-ioRRcXMO6OFyRpyzV3kE1IIBd4WG5/kltnzdxSCqoP8CMGs/Li+M1uF5o7lOkZVFjDs+NLesthnF66Pg/0q0Lw==", "dev": true, "dependencies": { + "array-buffer-byte-length": "^1.0.0", + "arraybuffer.prototype.slice": "^1.0.1", "available-typed-arrays": "^1.0.5", "call-bind": "^1.0.2", "es-set-tostringtag": "^2.0.1", "es-to-primitive": "^1.2.1", - "function-bind": "^1.1.1", "function.prototype.name": "^1.1.5", - "get-intrinsic": "^1.1.3", + "get-intrinsic": "^1.2.1", "get-symbol-description": "^1.0.0", "globalthis": "^1.0.3", "gopd": "^1.0.1", @@ -2289,8 +2342,8 @@ "has-property-descriptors": "^1.0.0", "has-proto": "^1.0.1", "has-symbols": "^1.0.3", - "internal-slot": "^1.0.4", - "is-array-buffer": "^3.0.1", + "internal-slot": "^1.0.5", + "is-array-buffer": "^3.0.2", "is-callable": "^1.2.7", "is-negative-zero": "^2.0.2", "is-regex": "^1.1.4", @@ -2298,16 +2351,21 @@ "is-string": "^1.0.7", "is-typed-array": "^1.1.10", "is-weakref": "^1.0.2", - "object-inspect": "^1.12.2", + "object-inspect": "^1.12.3", "object-keys": "^1.1.1", "object.assign": "^4.1.4", - "regexp.prototype.flags": "^1.4.3", + "regexp.prototype.flags": "^1.5.0", + "safe-array-concat": "^1.0.0", "safe-regex-test": "^1.0.0", + "string.prototype.trim": "^1.2.7", "string.prototype.trimend": "^1.0.6", "string.prototype.trimstart": "^1.0.6", + "typed-array-buffer": "^1.0.0", + "typed-array-byte-length": "^1.0.0", + "typed-array-byte-offset": "^1.0.0", "typed-array-length": "^1.0.4", "unbox-primitive": "^1.0.2", - "which-typed-array": "^1.1.9" + "which-typed-array": "^1.1.10" }, "engines": { "node": ">= 0.4" @@ -2400,27 +2458,27 @@ } }, "node_modules/eslint": { - "version": "8.45.0", - "resolved": "https://registry.npmjs.org/eslint/-/eslint-8.45.0.tgz", - "integrity": "sha512-pd8KSxiQpdYRfYa9Wufvdoct3ZPQQuVuU5O6scNgMuOMYuxvH0IGaYK0wUFjo4UYYQQCUndlXiMbnxopwvvTiw==", + "version": "8.46.0", + "resolved": "https://registry.npmjs.org/eslint/-/eslint-8.46.0.tgz", + "integrity": "sha512-cIO74PvbW0qU8e0mIvk5IV3ToWdCq5FYG6gWPHHkx6gNdjlbAYvtfHmlCMXxjcoVaIdwy/IAt3+mDkZkfvb2Dg==", "dev": true, "dependencies": { "@eslint-community/eslint-utils": "^4.2.0", - "@eslint-community/regexpp": "^4.4.0", - "@eslint/eslintrc": "^2.1.0", - "@eslint/js": "8.44.0", + "@eslint-community/regexpp": "^4.6.1", + "@eslint/eslintrc": "^2.1.1", + "@eslint/js": "^8.46.0", "@humanwhocodes/config-array": "^0.11.10", "@humanwhocodes/module-importer": "^1.0.1", "@nodelib/fs.walk": "^1.2.8", - "ajv": "^6.10.0", + "ajv": "^6.12.4", "chalk": "^4.0.0", "cross-spawn": "^7.0.2", "debug": "^4.3.2", "doctrine": "^3.0.0", "escape-string-regexp": "^4.0.0", - "eslint-scope": "^7.2.0", - "eslint-visitor-keys": "^3.4.1", - "espree": "^9.6.0", + "eslint-scope": "^7.2.2", + "eslint-visitor-keys": "^3.4.2", + "espree": "^9.6.1", "esquery": "^1.4.2", "esutils": "^2.0.2", "fast-deep-equal": "^3.1.3", @@ -2543,9 +2601,9 @@ } }, "node_modules/eslint-module-utils": { - "version": "2.7.4", - "resolved": "https://registry.npmjs.org/eslint-module-utils/-/eslint-module-utils-2.7.4.tgz", - "integrity": "sha512-j4GT+rqzCoRKHwURX7pddtIPGySnX9Si/cgMI5ztrcqOPtk5dDEeZ34CQVPphnqkJytlc97Vuk05Um2mJ3gEQA==", + "version": "2.8.0", + "resolved": "https://registry.npmjs.org/eslint-module-utils/-/eslint-module-utils-2.8.0.tgz", + "integrity": "sha512-aWajIYfsqCKRDgUfjEXNN/JlrzauMuSEy5sbd7WXbtW3EH6A6MpwEh42c7qD+MqQo9QMJ6fWLAeIJynx0g6OAw==", "dev": true, "dependencies": { "debug": "^3.2.7" @@ -2653,26 +2711,29 @@ } }, "node_modules/eslint-plugin-import": { - "version": "2.27.5", - "resolved": "https://registry.npmjs.org/eslint-plugin-import/-/eslint-plugin-import-2.27.5.tgz", - "integrity": "sha512-LmEt3GVofgiGuiE+ORpnvP+kAm3h6MLZJ4Q5HCyHADofsb4VzXFsRiWj3c0OFiV+3DWFh0qg3v9gcPlfc3zRow==", + "version": "2.28.0", + "resolved": "https://registry.npmjs.org/eslint-plugin-import/-/eslint-plugin-import-2.28.0.tgz", + "integrity": "sha512-B8s/n+ZluN7sxj9eUf7/pRFERX0r5bnFA2dCaLHy2ZeaQEAz0k+ZZkFWRFHJAqxfxQDx6KLv9LeIki7cFdwW+Q==", "dev": true, "dependencies": { "array-includes": "^3.1.6", + "array.prototype.findlastindex": "^1.2.2", "array.prototype.flat": "^1.3.1", "array.prototype.flatmap": "^1.3.1", "debug": "^3.2.7", "doctrine": "^2.1.0", "eslint-import-resolver-node": "^0.3.7", - "eslint-module-utils": "^2.7.4", + "eslint-module-utils": "^2.8.0", "has": "^1.0.3", - "is-core-module": "^2.11.0", + "is-core-module": "^2.12.1", "is-glob": "^4.0.3", "minimatch": "^3.1.2", + "object.fromentries": "^2.0.6", + "object.groupby": "^1.0.0", "object.values": "^1.1.6", - "resolve": "^1.22.1", - "semver": "^6.3.0", - "tsconfig-paths": "^3.14.1" + "resolve": "^1.22.3", + "semver": "^6.3.1", + "tsconfig-paths": "^3.14.2" }, "engines": { "node": ">=4" @@ -2690,15 +2751,6 @@ "ms": "^2.1.1" } }, - "node_modules/eslint-plugin-import/node_modules/semver": { - "version": "6.3.1", - "resolved": "https://registry.npmjs.org/semver/-/semver-6.3.1.tgz", - "integrity": "sha512-BR7VvDCVHO+q2xBEWskxS6DJE1qRnb7DxzUrogb71CWoSficBxYsiAGd+Kl0mmq/MprG9yArRkyrQxTO6XjMzA==", - "dev": true, - "bin": { - "semver": "bin/semver.js" - } - }, "node_modules/eslint-plugin-jsx-a11y": { "version": "6.7.1", "resolved": "https://registry.npmjs.org/eslint-plugin-jsx-a11y/-/eslint-plugin-jsx-a11y-6.7.1.tgz", @@ -2801,10 +2853,26 @@ "node": ">=4.0.0" } }, + "node_modules/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, + "dependencies": { + "esrecurse": "^4.3.0", + "estraverse": "^5.2.0" + }, + "engines": { + "node": "^12.22.0 || ^14.17.0 || >=16.0.0" + }, + "funding": { + "url": "https://opencollective.com/eslint" + } + }, "node_modules/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==", + "version": "3.4.2", + "resolved": "https://registry.npmjs.org/eslint-visitor-keys/-/eslint-visitor-keys-3.4.2.tgz", + "integrity": "sha512-8drBzUEyZ2llkpCA67iYrgEssKDUu68V8ChqqOfFupIaG/LCVPUT+CoGJpT77zJprs4T/W7p07LP7zAIMuweVw==", "dev": true, "engines": { "node": "^12.22.0 || ^14.17.0 || >=16.0.0" @@ -2866,31 +2934,6 @@ "url": "https://github.com/sponsors/sindresorhus" } }, - "node_modules/eslint/node_modules/eslint-scope": { - "version": "7.2.0", - "resolved": "https://registry.npmjs.org/eslint-scope/-/eslint-scope-7.2.0.tgz", - "integrity": "sha512-DYj5deGlHBfMt15J7rdtyKNq/Nqlv5KfU4iodrQ019XESsRnwXH9KAE0y3cwtUHDo2ob7CypAnCqefh6vioWRw==", - "dev": true, - "dependencies": { - "esrecurse": "^4.3.0", - "estraverse": "^5.2.0" - }, - "engines": { - "node": "^12.22.0 || ^14.17.0 || >=16.0.0" - }, - "funding": { - "url": "https://opencollective.com/eslint" - } - }, - "node_modules/eslint/node_modules/estraverse": { - "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" - } - }, "node_modules/eslint/node_modules/find-up": { "version": "5.0.0", "resolved": "https://registry.npmjs.org/find-up/-/find-up-5.0.0.tgz", @@ -3005,9 +3048,9 @@ } }, "node_modules/espree": { - "version": "9.6.0", - "resolved": "https://registry.npmjs.org/espree/-/espree-9.6.0.tgz", - "integrity": "sha512-1FH/IiruXZ84tpUlm0aCUEwMl2Ho5ilqVh0VvQXw+byAz/4SAciyHLlfmL5WYqsvD38oymdUwBss0LtK8m4s/A==", + "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", @@ -3046,17 +3089,9 @@ "node": ">=0.10" } }, - "node_modules/esquery/node_modules/estraverse": { - "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" - } - }, "node_modules/esrecurse": { "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": { @@ -3066,9 +3101,10 @@ "node": ">=4.0" } }, - "node_modules/esrecurse/node_modules/estraverse": { - "version": "5.2.0", - "integrity": "sha512-BxbNGGNm0RyRYvUdHpIwv9IWzeM9XClbOxwoATuFdOE7ZE6wHL+HQ5T8hoPM+zHvmKzzsEqhgy0GrQ5X13afiQ==", + "node_modules/estraverse": { + "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" @@ -3360,13 +3396,14 @@ } }, "node_modules/get-intrinsic": { - "version": "1.1.3", - "resolved": "https://registry.npmjs.org/get-intrinsic/-/get-intrinsic-1.1.3.tgz", - "integrity": "sha512-QJVz1Tj7MS099PevUG5jvnt9tSkXN8K14dxQlikJuPt4uD9hHAHjLyLBiLR5zELelBdD9QNRAXZzsJx0WaDL9A==", + "version": "1.2.1", + "resolved": "https://registry.npmjs.org/get-intrinsic/-/get-intrinsic-1.2.1.tgz", + "integrity": "sha512-2DcsyfABl+gVHEfCOaTrWgyt+tb6MSEGmKq+kI5HwLbIYgjgmMcV8KQ41uaKz1xxUcn9tJtgFbQUEVcEbd0FYw==", "dev": true, "dependencies": { "function-bind": "^1.1.1", "has": "^1.0.3", + "has-proto": "^1.0.1", "has-symbols": "^1.0.3" }, "funding": { @@ -3652,12 +3689,12 @@ "integrity": "sha1-Yzwsg+PaQqUC9SRmAiSA9CCCYd4=" }, "node_modules/internal-slot": { - "version": "1.0.4", - "resolved": "https://registry.npmjs.org/internal-slot/-/internal-slot-1.0.4.tgz", - "integrity": "sha512-tA8URYccNzMo94s5MQZgH8NB/XTa6HsOo0MLfXTKKEnHVVdegzaQoFZ7Jp44bdvLvY2waT5dc+j5ICEswhi7UQ==", + "version": "1.0.5", + "resolved": "https://registry.npmjs.org/internal-slot/-/internal-slot-1.0.5.tgz", + "integrity": "sha512-Y+R5hJrzs52QCG2laLn4udYVnxsfny9CpOhNhUvk/SSSVyF6T27FzRbF0sroPidSu3X8oEAkOn2K804mjpt6UQ==", "dev": true, "dependencies": { - "get-intrinsic": "^1.1.3", + "get-intrinsic": "^1.2.0", "has": "^1.0.3", "side-channel": "^1.0.4" }, @@ -3691,13 +3728,13 @@ } }, "node_modules/is-array-buffer": { - "version": "3.0.1", - "resolved": "https://registry.npmjs.org/is-array-buffer/-/is-array-buffer-3.0.1.tgz", - "integrity": "sha512-ASfLknmY8Xa2XtB4wmbz13Wu202baeA18cJBCeCy0wXUHZF0IPyVEXqKEcd+t2fNSLLL1vC6k7lxZEojNbISXQ==", + "version": "3.0.2", + "resolved": "https://registry.npmjs.org/is-array-buffer/-/is-array-buffer-3.0.2.tgz", + "integrity": "sha512-y+FyyR/w8vfIRq4eQcM1EYgSTnmHXPqaF+IgzgraytCFq5Xh8lllDVmAZolPJiZttZLeFSINPYMaEJ7/vWUa1w==", "dev": true, "dependencies": { "call-bind": "^1.0.2", - "get-intrinsic": "^1.1.3", + "get-intrinsic": "^1.2.0", "is-typed-array": "^1.1.10" }, "funding": { @@ -3757,9 +3794,9 @@ } }, "node_modules/is-core-module": { - "version": "2.11.0", - "resolved": "https://registry.npmjs.org/is-core-module/-/is-core-module-2.11.0.tgz", - "integrity": "sha512-RRjxlvLDkD1YJwDbroBHMb+cukurkDWNyHx7D3oNB5x9rb5ogcksMC5wHCadcXoo67gVr/+3GFySh3134zi6rw==", + "version": "2.12.1", + "resolved": "https://registry.npmjs.org/is-core-module/-/is-core-module-2.12.1.tgz", + "integrity": "sha512-Q4ZuBAe2FUsKtyQJoQHlvP8OvBERxO3jEmy1I7hcRXcJBGGHFh/aJBswbXuS9sgrDH2QUO8ilkwNPHvHMd8clg==", "dev": true, "dependencies": { "has": "^1.0.3" @@ -4421,9 +4458,9 @@ } }, "node_modules/minimist": { - "version": "1.2.7", - "resolved": "https://registry.npmjs.org/minimist/-/minimist-1.2.7.tgz", - "integrity": "sha512-bzfL1YUZsP41gmu/qjrEk0Q6i2ix/cVeAhbCbqH9u3zYutS1cLg00qhrD0M2MVdCcx4Sc0UpP2eBWo9rotpq6g==", + "version": "1.2.8", + "resolved": "https://registry.npmjs.org/minimist/-/minimist-1.2.8.tgz", + "integrity": "sha512-2yyAR8qBkN3YuheJanUpWC5U3bb5osDywNB8RzDVlDwDHbocAJveqqj1u8+SVD7jkWT4yvsHCpWqqWqAxb0zCA==", "dev": true, "funding": { "url": "https://github.com/sponsors/ljharb" @@ -4644,6 +4681,18 @@ "url": "https://github.com/sponsors/ljharb" } }, + "node_modules/object.groupby": { + "version": "1.0.0", + "resolved": "https://registry.npmjs.org/object.groupby/-/object.groupby-1.0.0.tgz", + "integrity": "sha512-70MWG6NfRH9GnbZOikuhPPYzpUpof9iW2J9E4dW7FXTqPNb6rllE6u39SKwwiNh8lCwX3DDb5OgcKGiEBrTTyw==", + "dev": true, + "dependencies": { + "call-bind": "^1.0.2", + "define-properties": "^1.2.0", + "es-abstract": "^1.21.2", + "get-intrinsic": "^1.2.1" + } + }, "node_modules/object.values": { "version": "1.1.6", "resolved": "https://registry.npmjs.org/object.values/-/object.values-1.1.6.tgz", @@ -5039,14 +5088,14 @@ "dev": true }, "node_modules/regexp.prototype.flags": { - "version": "1.4.3", - "resolved": "https://registry.npmjs.org/regexp.prototype.flags/-/regexp.prototype.flags-1.4.3.tgz", - "integrity": "sha512-fjggEOO3slI6Wvgjwflkc4NFRCTZAu5CnNfBd5qOMYhWdn67nJBBu34/TkD++eeFmd8C9r9jfXJ27+nSiRkSUA==", + "version": "1.5.0", + "resolved": "https://registry.npmjs.org/regexp.prototype.flags/-/regexp.prototype.flags-1.5.0.tgz", + "integrity": "sha512-0SutC3pNudRKgquxGoRGIz946MZVHqbNfPjBdxeOhBrdgDKlRoXmYLQN9xRbrR09ZXWeGAdPuif7egofn6v5LA==", "dev": true, "dependencies": { "call-bind": "^1.0.2", - "define-properties": "^1.1.3", - "functions-have-names": "^1.2.2" + "define-properties": "^1.2.0", + "functions-have-names": "^1.2.3" }, "engines": { "node": ">= 0.4" @@ -5085,12 +5134,12 @@ } }, "node_modules/resolve": { - "version": "1.22.1", - "resolved": "https://registry.npmjs.org/resolve/-/resolve-1.22.1.tgz", - "integrity": "sha512-nBpuuYuY5jFsli/JIs1oldw6fOQCBioohqWZg/2hiaOybXOft4lonv85uDOKXdf8rhyK159cxU5cDcK/NKk8zw==", + "version": "1.22.3", + "resolved": "https://registry.npmjs.org/resolve/-/resolve-1.22.3.tgz", + "integrity": "sha512-P8ur/gp/AmbEzjr729bZnLjXK5Z+4P0zhIJgBgzqRih7hL7BOukHGtSTA3ACMY467GRFz3duQsi0bDZdR7DKdw==", "dev": true, "dependencies": { - "is-core-module": "^2.9.0", + "is-core-module": "^2.12.0", "path-parse": "^1.0.7", "supports-preserve-symlinks-flag": "^1.0.0" }, @@ -5297,6 +5346,30 @@ "queue-microtask": "^1.2.2" } }, + "node_modules/safe-array-concat": { + "version": "1.0.0", + "resolved": "https://registry.npmjs.org/safe-array-concat/-/safe-array-concat-1.0.0.tgz", + "integrity": "sha512-9dVEFruWIsnie89yym+xWTAYASdpw3CJV7Li/6zBewGf9z2i1j31rP6jnY0pHEO4QZh6N0K11bFjWmdR8UGdPQ==", + "dev": true, + "dependencies": { + "call-bind": "^1.0.2", + "get-intrinsic": "^1.2.0", + "has-symbols": "^1.0.3", + "isarray": "^2.0.5" + }, + "engines": { + "node": ">=0.4" + }, + "funding": { + "url": "https://github.com/sponsors/ljharb" + } + }, + "node_modules/safe-array-concat/node_modules/isarray": { + "version": "2.0.5", + "resolved": "https://registry.npmjs.org/isarray/-/isarray-2.0.5.tgz", + "integrity": "sha512-xHjhDr3cNBK0BzdUJSPXZntQUx/mwMS5Rw4A7lPJ90XGAO6ISP/ePDNuo0vhqOZU+UD5JoodwCAAoZQd3FeAKw==", + "dev": true + }, "node_modules/safe-regex-test": { "version": "1.0.0", "resolved": "https://registry.npmjs.org/safe-regex-test/-/safe-regex-test-1.0.0.tgz", @@ -5543,6 +5616,23 @@ "node": ">=8" } }, + "node_modules/string.prototype.trim": { + "version": "1.2.7", + "resolved": "https://registry.npmjs.org/string.prototype.trim/-/string.prototype.trim-1.2.7.tgz", + "integrity": "sha512-p6TmeT1T3411M8Cgg9wBTMRtY2q9+PNy9EV1i2lIXUN/btt763oIfxwN3RR8VU6wHX8j/1CFy0L+YuThm6bgOg==", + "dev": true, + "dependencies": { + "call-bind": "^1.0.2", + "define-properties": "^1.1.4", + "es-abstract": "^1.20.4" + }, + "engines": { + "node": ">= 0.4" + }, + "funding": { + "url": "https://github.com/sponsors/ljharb" + } + }, "node_modules/string.prototype.trimend": { "version": "1.0.6", "resolved": "https://registry.npmjs.org/string.prototype.trimend/-/string.prototype.trimend-1.0.6.tgz", @@ -5819,13 +5909,13 @@ } }, "node_modules/tsconfig-paths": { - "version": "3.14.1", - "resolved": "https://registry.npmjs.org/tsconfig-paths/-/tsconfig-paths-3.14.1.tgz", - "integrity": "sha512-fxDhWnFSLt3VuTwtvJt5fpwxBHg5AdKWMsgcPOOIilyjymcYVZoCQF8fvFRezCNfblEXmi+PcM1eYHeOAgXCOQ==", + "version": "3.14.2", + "resolved": "https://registry.npmjs.org/tsconfig-paths/-/tsconfig-paths-3.14.2.tgz", + "integrity": "sha512-o/9iXgCYc5L/JxCHPe3Hvh8Q/2xm5Z+p18PESBU6Ff33695QnCHBEjcytY2q19ua7Mbl/DavtBOLq+oG0RCL+g==", "dev": true, "dependencies": { "@types/json5": "^0.0.29", - "json5": "^1.0.1", + "json5": "^1.0.2", "minimist": "^1.2.6", "strip-bom": "^3.0.0" } @@ -5875,6 +5965,57 @@ "url": "https://github.com/sponsors/sindresorhus" } }, + "node_modules/typed-array-buffer": { + "version": "1.0.0", + "resolved": "https://registry.npmjs.org/typed-array-buffer/-/typed-array-buffer-1.0.0.tgz", + "integrity": "sha512-Y8KTSIglk9OZEr8zywiIHG/kmQ7KWyjseXs1CbSo8vC42w7hg2HgYTxSWwP0+is7bWDc1H+Fo026CpHFwm8tkw==", + "dev": true, + "dependencies": { + "call-bind": "^1.0.2", + "get-intrinsic": "^1.2.1", + "is-typed-array": "^1.1.10" + }, + "engines": { + "node": ">= 0.4" + } + }, + "node_modules/typed-array-byte-length": { + "version": "1.0.0", + "resolved": "https://registry.npmjs.org/typed-array-byte-length/-/typed-array-byte-length-1.0.0.tgz", + "integrity": "sha512-Or/+kvLxNpeQ9DtSydonMxCx+9ZXOswtwJn17SNLvhptaXYDJvkFFP5zbfU/uLmvnBJlI4yrnXRxpdWH/M5tNA==", + "dev": true, + "dependencies": { + "call-bind": "^1.0.2", + "for-each": "^0.3.3", + "has-proto": "^1.0.1", + "is-typed-array": "^1.1.10" + }, + "engines": { + "node": ">= 0.4" + }, + "funding": { + "url": "https://github.com/sponsors/ljharb" + } + }, + "node_modules/typed-array-byte-offset": { + "version": "1.0.0", + "resolved": "https://registry.npmjs.org/typed-array-byte-offset/-/typed-array-byte-offset-1.0.0.tgz", + "integrity": "sha512-RD97prjEt9EL8YgAgpOkf3O4IF9lhJFr9g0htQkm0rchFp/Vx7LW5Q8fSXXub7BXAODyUQohRMyOc3faCPd0hg==", + "dev": true, + "dependencies": { + "available-typed-arrays": "^1.0.5", + "call-bind": "^1.0.2", + "for-each": "^0.3.3", + "has-proto": "^1.0.1", + "is-typed-array": "^1.1.10" + }, + "engines": { + "node": ">= 0.4" + }, + "funding": { + "url": "https://github.com/sponsors/ljharb" + } + }, "node_modules/typed-array-length": { "version": "1.0.4", "resolved": "https://registry.npmjs.org/typed-array-length/-/typed-array-length-1.0.4.tgz", @@ -6051,17 +6192,16 @@ } }, "node_modules/which-typed-array": { - "version": "1.1.9", - "resolved": "https://registry.npmjs.org/which-typed-array/-/which-typed-array-1.1.9.tgz", - "integrity": "sha512-w9c4xkx6mPidwp7180ckYWfMmvxpjlZuIudNtDf4N/tTAUB8VJbX25qZoAsrtGuYNnGw3pa0AXgbGKRB8/EceA==", + "version": "1.1.11", + "resolved": "https://registry.npmjs.org/which-typed-array/-/which-typed-array-1.1.11.tgz", + "integrity": "sha512-qe9UWWpkeG5yzZ0tNYxDmd7vo58HDBc39mZ0xWWpolAGADdFOzkfamWLDxkOWcvHQKVmdTyQdLD4NOfjLWTKew==", "dev": true, "dependencies": { "available-typed-arrays": "^1.0.5", "call-bind": "^1.0.2", "for-each": "^0.3.3", "gopd": "^1.0.1", - "has-tostringtag": "^1.0.0", - "is-typed-array": "^1.1.10" + "has-tostringtag": "^1.0.0" }, "engines": { "node": ">= 0.4" diff --git a/node_modules/@eslint-community/regexpp/README.md b/node_modules/@eslint-community/regexpp/README.md index 5a07da3b85..9728af519c 100644 --- a/node_modules/@eslint-community/regexpp/README.md +++ b/node_modules/@eslint-community/regexpp/README.md @@ -79,7 +79,7 @@ Parse a regular expression literal. - **Return:** - The AST of the regular expression. -#### parser.parsePattern(source, start?, end?, uFlag?) +#### parser.parsePattern(source, start?, end?, flags?) Parse a regular expression pattern. @@ -87,7 +87,7 @@ Parse a regular expression pattern. - `source` (`string`) The source code to parse. E.g. `"abc"`. - `start?` (`number`) The start index in the source code. Default is `0`. - `end?` (`number`) The end index in the source code. Default is `source.length`. - - `uFlag?` (`boolean`) The flag to enable Unicode mode. + - `flags?` (`{ unicode?: boolean, unicodeSets?: boolean }`) The flags to enable Unicode mode, and Unicode Set mode. - **Return:** - The AST of the regular expression pattern. @@ -118,7 +118,7 @@ Validate a regular expression literal. - `start?` (`number`) The start index in the source code. Default is `0`. - `end?` (`number`) The end index in the source code. Default is `source.length`. -#### validator.validatePattern(source, start, end, uFlag) +#### validator.validatePattern(source, start, end, flags) Validate a regular expression pattern. @@ -126,7 +126,7 @@ Validate a regular expression pattern. - `source` (`string`) The source code to validate. - `start?` (`number`) The start index in the source code. Default is `0`. - `end?` (`number`) The end index in the source code. Default is `source.length`. - - `uFlag?` (`boolean`) The flag to enable Unicode mode. + - `flags?` (`{ unicode?: boolean, unicodeSets?: boolean }`) The flags to enable Unicode mode, and Unicode Set mode. #### validator.validateFlags(source, start, end) @@ -172,6 +172,6 @@ Please use GitHub's Issues/PRs. - `npm run watch` runs tests with `--watch` option. [`AST.Node`]: src/ast.ts#L4 -[`RegExpParser.Options`]: src/parser.ts#L539 -[`RegExpValidator.Options`]: src/validator.ts#L127 -[`RegExpVisitor.Handlers`]: src/visitor.ts#L204 +[`RegExpParser.Options`]: src/parser.ts#L743 +[`RegExpValidator.Options`]: src/validator.ts#L220 +[`RegExpVisitor.Handlers`]: src/visitor.ts#L291 diff --git a/node_modules/@eslint-community/regexpp/index.d.ts b/node_modules/@eslint-community/regexpp/index.d.ts index fb617ccc96..8ca7ecefc3 100644 --- a/node_modules/@eslint-community/regexpp/index.d.ts +++ b/node_modules/@eslint-community/regexpp/index.d.ts @@ -44,11 +44,16 @@ declare module "@eslint-community/regexpp/ast" { | CapturingGroup | CharacterClass | CharacterClassRange + | ClassIntersection + | ClassStringDisjunction + | ClassSubtraction + | ExpressionCharacterClass | Group | LookaroundAssertion | Pattern | Quantifier - | RegExpLiteral; + | RegExpLiteral + | StringAlternative; /** * The type which includes all leaf nodes. */ @@ -71,16 +76,28 @@ declare module "@eslint-community/regexpp/ast" { | Character | CharacterClass | CharacterSet + | ExpressionCharacterClass | Group | LookaheadAssertion; /** * The type which includes all character class atom nodes. */ export type CharacterClassElement = + | ClassRangesCharacterClassElement + | UnicodeSetsCharacterClassElement; + export type ClassRangesCharacterClassElement = | Character | CharacterClassRange | EscapeCharacterSet | UnicodePropertyCharacterSet; + export type UnicodeSetsCharacterClassElement = + | Character + | CharacterClassRange + | ClassStringDisjunction + | EscapeCharacterSet + | ExpressionCharacterClass + | UnicodePropertyCharacterSet + | UnicodeSetsCharacterClass; /** * The type which defines common properties for all node types. */ @@ -184,12 +201,35 @@ declare module "@eslint-community/regexpp/ast" { * The character class. * E.g. `[ab]`, `[^ab]` */ - export interface CharacterClass extends NodeBase { + export type CharacterClass = + | ClassRangesCharacterClass + | UnicodeSetsCharacterClass; + interface BaseCharacterClass extends NodeBase { type: "CharacterClass"; - parent: Alternative | Quantifier; + parent: + | Alternative + | ExpressionCharacterClass + | Quantifier + | UnicodeSetsCharacterClass; + unicodeSets: boolean; negate: boolean; elements: CharacterClassElement[]; } + export interface ClassRangesCharacterClass extends BaseCharacterClass { + parent: Alternative | Quantifier; + unicodeSets: false; + elements: ClassRangesCharacterClassElement[]; + } + /** UnicodeSetsCharacterClass is the CharacterClass when in Unicode sets mode. So it may contain strings. */ + export interface UnicodeSetsCharacterClass extends BaseCharacterClass { + parent: + | Alternative + | ExpressionCharacterClass + | Quantifier + | UnicodeSetsCharacterClass; + unicodeSets: true; + elements: UnicodeSetsCharacterClassElement[]; + } /** * The character class. * E.g. `[a-b]` @@ -249,7 +289,12 @@ declare module "@eslint-community/regexpp/ast" { */ export interface EscapeCharacterSet extends NodeBase { type: "CharacterSet"; - parent: Alternative | CharacterClass | Quantifier; + parent: + | Alternative + | CharacterClass + | ClassIntersection + | ClassSubtraction + | Quantifier; kind: "digit" | "space" | "word"; negate: boolean; } @@ -257,14 +302,92 @@ declare module "@eslint-community/regexpp/ast" { * The unicode property escape. * E.g. `\p{ASCII}`, `\P{ASCII}`, `\p{Script=Hiragana}` */ - export interface UnicodePropertyCharacterSet extends NodeBase { + export type UnicodePropertyCharacterSet = + | CharacterUnicodePropertyCharacterSet + | StringsUnicodePropertyCharacterSet; + interface BaseUnicodePropertyCharacterSet extends NodeBase { type: "CharacterSet"; - parent: Alternative | CharacterClass | Quantifier; + parent: + | Alternative + | CharacterClass + | ClassIntersection + | ClassSubtraction + | Quantifier; kind: "property"; + strings: boolean; key: string; value: string | null; negate: boolean; } + export interface CharacterUnicodePropertyCharacterSet + extends BaseUnicodePropertyCharacterSet { + strings: false; + value: string | null; + negate: boolean; + } + /** StringsUnicodePropertyCharacterSet is Unicode property escape with property of strings. */ + export interface StringsUnicodePropertyCharacterSet + extends BaseUnicodePropertyCharacterSet { + strings: true; + value: null; + negate: false; + } + /** + * The expression character class. + * E.g. `[a--b]`, `[a&&b]`,`[^a--b]`, `[^a&&b]` + */ + export interface ExpressionCharacterClass extends NodeBase { + type: "ExpressionCharacterClass"; + parent: + | Alternative + | ExpressionCharacterClass + | Quantifier + | UnicodeSetsCharacterClass; + negate: boolean; + expression: ClassIntersection | ClassSubtraction; + } + export type ClassSetOperand = + | Character + | ClassStringDisjunction + | EscapeCharacterSet + | ExpressionCharacterClass + | UnicodePropertyCharacterSet + | UnicodeSetsCharacterClass; + /** + * The character class intersection. + * E.g. `a&&b` + */ + export interface ClassIntersection extends NodeBase { + type: "ClassIntersection"; + parent: ClassIntersection | ExpressionCharacterClass; + left: ClassIntersection | ClassSetOperand; + right: ClassSetOperand; + } + /** + * The character class subtraction. + * E.g. `a--b` + */ + export interface ClassSubtraction extends NodeBase { + type: "ClassSubtraction"; + parent: ClassSubtraction | ExpressionCharacterClass; + left: ClassSetOperand | ClassSubtraction; + right: ClassSetOperand; + } + /** + * The character class string disjunction. + * E.g. `\q{a|b}` + */ + export interface ClassStringDisjunction extends NodeBase { + type: "ClassStringDisjunction"; + parent: ClassIntersection | ClassSubtraction | UnicodeSetsCharacterClass; + alternatives: StringAlternative[]; + } + /** StringAlternative is only used for `\q{alt}`({@link ClassStringDisjunction}). */ + export interface StringAlternative extends NodeBase { + type: "StringAlternative"; + parent: ClassStringDisjunction; + elements: Character[]; + } /** * The character. * This includes escape sequences which mean a character. @@ -272,7 +395,14 @@ declare module "@eslint-community/regexpp/ast" { */ export interface Character extends NodeBase { type: "Character"; - parent: Alternative | CharacterClass | CharacterClassRange | Quantifier; + parent: + | Alternative + | CharacterClass + | CharacterClassRange + | ClassIntersection + | ClassSubtraction + | Quantifier + | StringAlternative; value: number; } /** @@ -298,7 +428,9 @@ declare module "@eslint-community/regexpp/ast" { multiline: boolean; sticky: boolean; unicode: boolean; + unicodeSets: boolean; } + export {}; } declare module "@eslint-community/regexpp/parser" { @@ -318,13 +450,14 @@ declare module "@eslint-community/regexpp/parser" { */ strict?: boolean; /** - * ECMAScript version. Default is `2023`. + * ECMAScript version. Default is `2024`. * - `2015` added `u` and `y` flags. * - `2018` added `s` flag, Named Capturing Group, Lookbehind Assertion, * and Unicode Property Escape. * - `2019`, `2020`, and `2021` added more valid Unicode Property Escapes. * - `2022` added `d` flag. * - `2023` added more valid Unicode Property Escapes. + * - `2024` added `v` flag. */ ecmaVersion?: EcmaVersion; } @@ -356,6 +489,25 @@ declare module "@eslint-community/regexpp/parser" { * @param source The source code to parse. * @param start The start index in the source code. * @param end The end index in the source code. + * @param flags The flags. + * @returns The AST of the given pattern. + */ + parsePattern( + source: string, + start?: number, + end?: number, + flags?: { + unicode?: boolean; + unicodeSets?: boolean; + } + ): Pattern; + /** + * @deprecated Backward compatibility + * Use object `flags` instead of boolean `uFlag`. + * + * @param source The source code to parse. + * @param start The start index in the source code. + * @param end The end index in the source code. * @param uFlag The flag to set unicode mode. * @returns The AST of the given pattern. */ @@ -370,6 +522,12 @@ declare module "@eslint-community/regexpp/parser" { declare module "@eslint-community/regexpp/validator" { import type { EcmaVersion } from "@eslint-community/regexpp/ecma-versions"; + export type RegExpValidatorSourceContext = { + readonly source: string; + readonly start: number; + readonly end: number; + readonly kind: "flags" | "literal" | "pattern"; + }; export namespace RegExpValidator { /** * The options for RegExpValidator construction. @@ -380,13 +538,14 @@ declare module "@eslint-community/regexpp/validator" { */ strict?: boolean; /** - * ECMAScript version. Default is `2023`. + * ECMAScript version. Default is `2024`. * - `2015` added `u` and `y` flags. * - `2018` added `s` flag, Named Capturing Group, Lookbehind Assertion, * and Unicode Property Escape. * - `2019`, `2020`, and `2021` added more valid Unicode Property Escapes. * - `2022` added `d` flag. * - `2023` added more valid Unicode Property Escapes. + * - `2024` added `v` flag. */ ecmaVersion?: EcmaVersion; /** @@ -411,6 +570,7 @@ declare module "@eslint-community/regexpp/validator" { * @param flags.sticky `y` flag. * @param flags.dotAll `s` flag. * @param flags.hasIndices `d` flag. + * @param flags.unicodeSets `v` flag. */ onRegExpFlags?: ( start: number, @@ -423,6 +583,7 @@ declare module "@eslint-community/regexpp/validator" { sticky: boolean; dotAll: boolean; hasIndices: boolean; + unicodeSets: boolean; } ) => void; /** @@ -604,6 +765,7 @@ declare module "@eslint-community/regexpp/validator" { * @param key The property name. * @param value The property value. * @param negate The flag which represents that the character set is negative. + * @param strings If true, the given property is property of strings. */ onUnicodePropertyCharacterSet?: ( start: number, @@ -611,7 +773,8 @@ declare module "@eslint-community/regexpp/validator" { kind: "property", key: string, value: string | null, - negate: boolean + negate: boolean, + strings: boolean ) => void; /** * A function that is called when the validator found a character. @@ -635,8 +798,13 @@ declare module "@eslint-community/regexpp/validator" { * A function that is called when the validator entered a character class. * @param start The 0-based index of the first character. * @param negate The flag which represents that the character class is negative. + * @param unicodeSets `true` if unicodeSets mode. */ - onCharacterClassEnter?: (start: number, negate: boolean) => void; + onCharacterClassEnter?: ( + start: number, + negate: boolean, + unicodeSets: boolean + ) => void; /** * A function that is called when the validator left a character class. * @param start The 0-based index of the first character. @@ -661,6 +829,46 @@ declare module "@eslint-community/regexpp/validator" { min: number, max: number ) => void; + /** + * A function that is called when the validator found a class intersection. + * @param start The 0-based index of the first character. + * @param end The next 0-based index of the last character. + */ + onClassIntersection?: (start: number, end: number) => void; + /** + * A function that is called when the validator found a class subtraction. + * @param start The 0-based index of the first character. + * @param end The next 0-based index of the last character. + */ + onClassSubtraction?: (start: number, end: number) => void; + /** + * A function that is called when the validator entered a class string disjunction. + * @param start The 0-based index of the first character. + */ + onClassStringDisjunctionEnter?: (start: number) => void; + /** + * A function that is called when the validator left a class string disjunction. + * @param start The 0-based index of the first character. + * @param end The next 0-based index of the last character. + */ + onClassStringDisjunctionLeave?: (start: number, end: number) => void; + /** + * A function that is called when the validator entered a string alternative. + * @param start The 0-based index of the first character. + * @param index The 0-based index of alternatives in a disjunction. + */ + onStringAlternativeEnter?: (start: number, index: number) => void; + /** + * A function that is called when the validator left a string alternative. + * @param start The 0-based index of the first character. + * @param end The next 0-based index of the last character. + * @param index The 0-based index of alternatives in a disjunction. + */ + onStringAlternativeLeave?: ( + start: number, + end: number, + index: number + ) => void; } } /** @@ -691,6 +899,23 @@ declare module "@eslint-community/regexpp/validator" { * @param source The source code to validate. * @param start The start index in the source code. * @param end The end index in the source code. + * @param flags The flags. + */ + validatePattern( + source: string, + start?: number, + end?: number, + flags?: { + unicode?: boolean; + unicodeSets?: boolean; + } + ): void; + /** + * @deprecated Backward compatibility + * Use object `flags` instead of boolean `uFlag`. + * @param source The source code to validate. + * @param start The start index in the source code. + * @param end The end index in the source code. * @param uFlag The flag to set unicode mode. */ validatePattern( @@ -712,12 +937,17 @@ declare module "@eslint-community/regexpp/visitor" { CharacterClass, CharacterClassRange, CharacterSet, + ClassIntersection, + ClassStringDisjunction, + ClassSubtraction, + ExpressionCharacterClass, Flags, Group, Node, Pattern, Quantifier, RegExpLiteral, + StringAlternative, } from "@eslint-community/regexpp/ast"; /** * The visitor to walk on AST. @@ -752,6 +982,18 @@ declare module "@eslint-community/regexpp/visitor" { onCharacterClassRangeLeave?: (node: CharacterClassRange) => void; onCharacterSetEnter?: (node: CharacterSet) => void; onCharacterSetLeave?: (node: CharacterSet) => void; + onClassIntersectionEnter?: (node: ClassIntersection) => void; + onClassIntersectionLeave?: (node: ClassIntersection) => void; + onClassStringDisjunctionEnter?: (node: ClassStringDisjunction) => void; + onClassStringDisjunctionLeave?: (node: ClassStringDisjunction) => void; + onClassSubtractionEnter?: (node: ClassSubtraction) => void; + onClassSubtractionLeave?: (node: ClassSubtraction) => void; + onExpressionCharacterClassEnter?: ( + node: ExpressionCharacterClass + ) => void; + onExpressionCharacterClassLeave?: ( + node: ExpressionCharacterClass + ) => void; onFlagsEnter?: (node: Flags) => void; onFlagsLeave?: (node: Flags) => void; onGroupEnter?: (node: Group) => void; @@ -762,6 +1004,8 @@ declare module "@eslint-community/regexpp/visitor" { onQuantifierLeave?: (node: Quantifier) => void; onRegExpLiteralEnter?: (node: RegExpLiteral) => void; onRegExpLiteralLeave?: (node: RegExpLiteral) => void; + onStringAlternativeEnter?: (node: StringAlternative) => void; + onStringAlternativeLeave?: (node: StringAlternative) => void; } } } @@ -777,5 +1021,7 @@ declare module "@eslint-community/regexpp/ecma-versions" { | 2020 | 2021 | 2022 - | 2023; + | 2023 + | 2024; + export const latestEcmaVersion = 2024; } diff --git a/node_modules/@eslint-community/regexpp/index.js b/node_modules/@eslint-community/regexpp/index.js index f393aaf3cf..07146d1ad9 100644 --- a/node_modules/@eslint-community/regexpp/index.js +++ b/node_modules/@eslint-community/regexpp/index.js @@ -6,6 +6,8 @@ var ast = /*#__PURE__*/Object.freeze({ __proto__: null }); +const latestEcmaVersion = 2024; + let largeIdStartRanges = undefined; let largeIdContinueRanges = undefined; function isIdStart(cp) { @@ -142,7 +144,10 @@ const LINE_TABULATION = 0x0b; const FORM_FEED = 0x0c; const CARRIAGE_RETURN = 0x0d; const EXCLAMATION_MARK = 0x21; +const NUMBER_SIGN = 0x23; const DOLLAR_SIGN = 0x24; +const PERCENT_SIGN = 0x25; +const AMPERSAND = 0x26; const LEFT_PARENTHESIS = 0x28; const RIGHT_PARENTHESIS = 0x29; const ASTERISK = 0x2a; @@ -156,10 +161,12 @@ const DIGIT_ONE = 0x31; const DIGIT_SEVEN = 0x37; const DIGIT_NINE = 0x39; const COLON = 0x3a; +const SEMICOLON = 0x3b; const LESS_THAN_SIGN = 0x3c; const EQUALS_SIGN = 0x3d; const GREATER_THAN_SIGN = 0x3e; const QUESTION_MARK = 0x3f; +const COMMERCIAL_AT = 0x40; const LATIN_CAPITAL_LETTER_A = 0x41; const LATIN_CAPITAL_LETTER_B = 0x42; const LATIN_CAPITAL_LETTER_D = 0x44; @@ -180,6 +187,7 @@ const LATIN_SMALL_LETTER_K = 0x6b; const LATIN_SMALL_LETTER_M = 0x6d; const LATIN_SMALL_LETTER_N = 0x6e; const LATIN_SMALL_LETTER_P = 0x70; +const LATIN_SMALL_LETTER_Q = 0x71; const LATIN_SMALL_LETTER_R = 0x72; const LATIN_SMALL_LETTER_S = 0x73; const LATIN_SMALL_LETTER_T = 0x74; @@ -193,9 +201,11 @@ const LEFT_SQUARE_BRACKET = 0x5b; const REVERSE_SOLIDUS = 0x5c; const RIGHT_SQUARE_BRACKET = 0x5d; const CIRCUMFLEX_ACCENT = 0x5e; +const GRAVE_ACCENT = 0x60; const LEFT_CURLY_BRACKET = 0x7b; const VERTICAL_LINE = 0x7c; const RIGHT_CURLY_BRACKET = 0x7d; +const TILDE = 0x7e; const ZERO_WIDTH_NON_JOINER = 0x200c; const ZERO_WIDTH_JOINER = 0x200d; const LINE_SEPARATOR = 0x2028; @@ -350,41 +360,120 @@ class Reader { } class RegExpSyntaxError extends SyntaxError { - constructor(source, uFlag, index, message) { - if (source) { - if (!source.startsWith("/")) { - source = `/${source}/${uFlag ? "u" : ""}`; + constructor(srcCtx, flags, index, message) { + let source = ""; + if (srcCtx.kind === "literal") { + const literal = srcCtx.source.slice(srcCtx.start, srcCtx.end); + if (literal) { + source = `: ${literal}`; } - source = `: ${source}`; + } + else if (srcCtx.kind === "pattern") { + const pattern = srcCtx.source.slice(srcCtx.start, srcCtx.end); + const flagsText = `${flags.unicode ? "u" : ""}${flags.unicodeSets ? "v" : ""}`; + source = `: /${pattern}/${flagsText}`; } super(`Invalid regular expression${source}: ${message}`); this.index = index; } } +const binPropertyOfStringSets = new Set([ + "Basic_Emoji", + "Emoji_Keycap_Sequence", + "RGI_Emoji_Modifier_Sequence", + "RGI_Emoji_Flag_Sequence", + "RGI_Emoji_Tag_Sequence", + "RGI_Emoji_ZWJ_Sequence", + "RGI_Emoji", +]); +function isValidLoneUnicodePropertyOfString(version, value) { + return version >= 2024 && binPropertyOfStringSets.has(value); +} + +const SYNTAX_CHARACTER = new Set([ + CIRCUMFLEX_ACCENT, + DOLLAR_SIGN, + REVERSE_SOLIDUS, + FULL_STOP, + ASTERISK, + PLUS_SIGN, + QUESTION_MARK, + LEFT_PARENTHESIS, + RIGHT_PARENTHESIS, + LEFT_SQUARE_BRACKET, + RIGHT_SQUARE_BRACKET, + LEFT_CURLY_BRACKET, + RIGHT_CURLY_BRACKET, + VERTICAL_LINE, +]); +const CLASS_SET_RESERVED_DOUBLE_PUNCTUATOR_CHARACTER = new Set([ + AMPERSAND, + EXCLAMATION_MARK, + NUMBER_SIGN, + DOLLAR_SIGN, + PERCENT_SIGN, + ASTERISK, + PLUS_SIGN, + COMMA, + FULL_STOP, + COLON, + SEMICOLON, + LESS_THAN_SIGN, + EQUALS_SIGN, + GREATER_THAN_SIGN, + QUESTION_MARK, + COMMERCIAL_AT, + CIRCUMFLEX_ACCENT, + GRAVE_ACCENT, + TILDE, +]); +const CLASS_SET_SYNTAX_CHARACTER = new Set([ + LEFT_PARENTHESIS, + RIGHT_PARENTHESIS, + LEFT_SQUARE_BRACKET, + RIGHT_SQUARE_BRACKET, + LEFT_CURLY_BRACKET, + RIGHT_CURLY_BRACKET, + SOLIDUS, + HYPHEN_MINUS, + REVERSE_SOLIDUS, + VERTICAL_LINE, +]); +const CLASS_SET_RESERVED_PUNCTUATOR = new Set([ + AMPERSAND, + HYPHEN_MINUS, + EXCLAMATION_MARK, + NUMBER_SIGN, + PERCENT_SIGN, + COMMA, + COLON, + SEMICOLON, + LESS_THAN_SIGN, + EQUALS_SIGN, + GREATER_THAN_SIGN, + COMMERCIAL_AT, + GRAVE_ACCENT, + TILDE, +]); function isSyntaxCharacter(cp) { - return (cp === CIRCUMFLEX_ACCENT || - cp === DOLLAR_SIGN || - cp === REVERSE_SOLIDUS || - cp === FULL_STOP || - cp === ASTERISK || - cp === PLUS_SIGN || - cp === QUESTION_MARK || - cp === LEFT_PARENTHESIS || - cp === RIGHT_PARENTHESIS || - cp === LEFT_SQUARE_BRACKET || - cp === RIGHT_SQUARE_BRACKET || - cp === LEFT_CURLY_BRACKET || - cp === RIGHT_CURLY_BRACKET || - cp === VERTICAL_LINE); + return SYNTAX_CHARACTER.has(cp); } -function isRegExpIdentifierStart(cp) { +function isClassSetReservedDoublePunctuatorCharacter(cp) { + return CLASS_SET_RESERVED_DOUBLE_PUNCTUATOR_CHARACTER.has(cp); +} +function isClassSetSyntaxCharacter(cp) { + return CLASS_SET_SYNTAX_CHARACTER.has(cp); +} +function isClassSetReservedPunctuator(cp) { + return CLASS_SET_RESERVED_PUNCTUATOR.has(cp); +} +function isIdentifierStartChar(cp) { return isIdStart(cp) || cp === DOLLAR_SIGN || cp === LOW_LINE; } -function isRegExpIdentifierPart(cp) { +function isIdentifierPartChar(cp) { return (isIdContinue(cp) || cp === DOLLAR_SIGN || - cp === LOW_LINE || cp === ZERO_WIDTH_NON_JOINER || cp === ZERO_WIDTH_JOINER); } @@ -397,29 +486,36 @@ function isUnicodePropertyValueCharacter(cp) { class RegExpValidator { constructor(options) { this._reader = new Reader(); - this._uFlag = false; + this._unicodeMode = false; + this._unicodeSetsMode = false; this._nFlag = false; this._lastIntValue = 0; - this._lastMinValue = 0; - this._lastMaxValue = 0; + this._lastRange = { + min: 0, + max: Number.POSITIVE_INFINITY, + }; this._lastStrValue = ""; - this._lastKeyValue = ""; - this._lastValValue = ""; this._lastAssertionIsQuantifiable = false; this._numCapturingParens = 0; this._groupNames = new Set(); this._backreferenceNames = new Set(); + this._srcCtx = null; this._options = options !== null && options !== void 0 ? options : {}; } validateLiteral(source, start = 0, end = source.length) { - this._uFlag = this._nFlag = false; + this._srcCtx = { source, start, end, kind: "literal" }; + this._unicodeSetsMode = this._unicodeMode = this._nFlag = false; this.reset(source, start, end); this.onLiteralEnter(start); if (this.eat(SOLIDUS) && this.eatRegExpBody() && this.eat(SOLIDUS)) { const flagStart = this.index; - const uFlag = source.includes("u", flagStart); - this.validateFlags(source, flagStart, end); - this.validatePattern(source, start + 1, flagStart - 1, uFlag); + const unicode = source.includes("u", flagStart); + const unicodeSets = source.includes("v", flagStart); + this.validateFlagsInternal(source, flagStart, end); + this.validatePatternInternal(source, start + 1, flagStart - 1, { + unicode, + unicodeSets, + }); } else if (start >= end) { this.raise("Empty"); @@ -431,6 +527,29 @@ class RegExpValidator { this.onLiteralLeave(start, end); } validateFlags(source, start = 0, end = source.length) { + this._srcCtx = { source, start, end, kind: "flags" }; + this.validateFlagsInternal(source, start, end); + } + validatePattern(source, start = 0, end = source.length, uFlagOrFlags = undefined) { + this._srcCtx = { source, start, end, kind: "pattern" }; + this.validatePatternInternal(source, start, end, uFlagOrFlags); + } + validatePatternInternal(source, start = 0, end = source.length, uFlagOrFlags = undefined) { + const mode = this._parseFlagsOptionToMode(uFlagOrFlags, end); + this._unicodeMode = mode.unicodeMode; + this._nFlag = mode.nFlag; + this._unicodeSetsMode = mode.unicodeSetsMode; + this.reset(source, start, end); + this.consumePattern(); + if (!this._nFlag && + this.ecmaVersion >= 2018 && + this._groupNames.size > 0) { + this._nFlag = true; + this.rewind(start); + this.consumePattern(); + } + } + validateFlagsInternal(source, start, end) { const existingFlags = new Set(); let global = false; let ignoreCase = false; @@ -439,10 +558,11 @@ class RegExpValidator { let unicode = false; let dotAll = false; let hasIndices = false; + let unicodeSets = false; for (let i = start; i < end; ++i) { const flag = source.charCodeAt(i); if (existingFlags.has(flag)) { - this.raise(`Duplicated flag '${source[i]}'`); + this.raise(`Duplicated flag '${source[i]}'`, { index: start }); } existingFlags.add(flag); if (flag === LATIN_SMALL_LETTER_G) { @@ -470,8 +590,12 @@ class RegExpValidator { this.ecmaVersion >= 2022) { hasIndices = true; } + else if (flag === LATIN_SMALL_LETTER_V && + this.ecmaVersion >= 2024) { + unicodeSets = true; + } else { - this.raise(`Invalid flag '${source[i]}'`); + this.raise(`Invalid flag '${source[i]}'`, { index: start }); } } this.onRegExpFlags(start, end, { @@ -482,29 +606,43 @@ class RegExpValidator { sticky, dotAll, hasIndices, + unicodeSets, }); } - validatePattern(source, start = 0, end = source.length, uFlag = false) { - this._uFlag = uFlag && this.ecmaVersion >= 2015; - this._nFlag = - (uFlag && this.ecmaVersion >= 2018) || - Boolean(this._options.strict && this.ecmaVersion >= 2023); - this.reset(source, start, end); - this.consumePattern(); - if (!this._nFlag && - this.ecmaVersion >= 2018 && - this._groupNames.size > 0) { - this._nFlag = true; - this.rewind(start); - this.consumePattern(); + _parseFlagsOptionToMode(uFlagOrFlags, sourceEnd) { + let unicode = false; + let unicodeSets = false; + if (uFlagOrFlags && this.ecmaVersion >= 2015) { + if (typeof uFlagOrFlags === "object") { + unicode = Boolean(uFlagOrFlags.unicode); + if (this.ecmaVersion >= 2024) { + unicodeSets = Boolean(uFlagOrFlags.unicodeSets); + } + } + else { + unicode = uFlagOrFlags; + } } + if (unicode && unicodeSets) { + this.raise("Invalid regular expression flags", { + index: sourceEnd + 1, + unicode, + unicodeSets, + }); + } + const unicodeMode = unicode || unicodeSets; + const nFlag = (unicode && this.ecmaVersion >= 2018) || + unicodeSets || + Boolean(this._options.strict && this.ecmaVersion >= 2023); + const unicodeSetsMode = unicodeSets; + return { unicodeMode, nFlag, unicodeSetsMode }; } get strict() { - return Boolean(this._options.strict) || this._uFlag; + return Boolean(this._options.strict) || this._unicodeMode; } get ecmaVersion() { var _a; - return (_a = this._options.ecmaVersion) !== null && _a !== void 0 ? _a : 2023; + return (_a = this._options.ecmaVersion) !== null && _a !== void 0 ? _a : latestEcmaVersion; } onLiteralEnter(start) { if (this._options.onLiteralEnter) { @@ -609,9 +747,9 @@ class RegExpValidator { this._options.onEscapeCharacterSet(start, end, kind, negate); } } - onUnicodePropertyCharacterSet(start, end, kind, key, value, negate) { + onUnicodePropertyCharacterSet(start, end, kind, key, value, negate, strings) { if (this._options.onUnicodePropertyCharacterSet) { - this._options.onUnicodePropertyCharacterSet(start, end, kind, key, value, negate); + this._options.onUnicodePropertyCharacterSet(start, end, kind, key, value, negate, strings); } } onCharacter(start, end, value) { @@ -624,9 +762,9 @@ class RegExpValidator { this._options.onBackreference(start, end, ref); } } - onCharacterClassEnter(start, negate) { + onCharacterClassEnter(start, negate, unicodeSets) { if (this._options.onCharacterClassEnter) { - this._options.onCharacterClassEnter(start, negate); + this._options.onCharacterClassEnter(start, negate, unicodeSets); } } onCharacterClassLeave(start, end, negate) { @@ -639,8 +777,35 @@ class RegExpValidator { this._options.onCharacterClassRange(start, end, min, max); } } - get source() { - return this._reader.source; + onClassIntersection(start, end) { + if (this._options.onClassIntersection) { + this._options.onClassIntersection(start, end); + } + } + onClassSubtraction(start, end) { + if (this._options.onClassSubtraction) { + this._options.onClassSubtraction(start, end); + } + } + onClassStringDisjunctionEnter(start) { + if (this._options.onClassStringDisjunctionEnter) { + this._options.onClassStringDisjunctionEnter(start); + } + } + onClassStringDisjunctionLeave(start, end) { + if (this._options.onClassStringDisjunctionLeave) { + this._options.onClassStringDisjunctionLeave(start, end); + } + } + onStringAlternativeEnter(start, index) { + if (this._options.onStringAlternativeEnter) { + this._options.onStringAlternativeEnter(start, index); + } + } + onStringAlternativeLeave(start, end, index) { + if (this._options.onStringAlternativeLeave) { + this._options.onStringAlternativeLeave(start, end, index); + } } get index() { return this._reader.index; @@ -658,7 +823,7 @@ class RegExpValidator { return this._reader.nextCodePoint3; } reset(source, start, end) { - this._reader.reset(source, start, end, this._uFlag); + this._reader.reset(source, start, end, this._unicodeMode); } rewind(index) { this._reader.rewind(index); @@ -675,8 +840,12 @@ class RegExpValidator { eat3(cp1, cp2, cp3) { return this._reader.eat3(cp1, cp2, cp3); } - raise(message) { - throw new RegExpSyntaxError(this.source, this._uFlag, this.index, message); + raise(message, context) { + var _a, _b, _c; + throw new RegExpSyntaxError(this._srcCtx, { + unicode: (_a = context === null || context === void 0 ? void 0 : context.unicode) !== null && _a !== void 0 ? _a : (this._unicodeMode && !this._unicodeSetsMode), + unicodeSets: (_b = context === null || context === void 0 ? void 0 : context.unicodeSets) !== null && _b !== void 0 ? _b : this._unicodeSetsMode, + }, (_c = context === null || context === void 0 ? void 0 : context.index) !== null && _c !== void 0 ? _c : this.index, message); } eatRegExpBody() { const start = this.index; @@ -791,7 +960,7 @@ class RegExpValidator { this.onAlternativeLeave(start, this.index, i); } consumeTerm() { - if (this._uFlag || this.strict) { + if (this._unicodeMode || this.strict) { return (this.consumeAssertion() || (this.consumeAtom() && this.consumeOptionalQuantifier())); } @@ -860,8 +1029,7 @@ class RegExpValidator { max = 1; } else if (this.eatBracedQuantifier(noConsume)) { - min = this._lastMinValue; - max = this._lastMaxValue; + ({ min, max } = this._lastRange); } else { return false; @@ -875,23 +1043,23 @@ class RegExpValidator { eatBracedQuantifier(noError) { const start = this.index; if (this.eat(LEFT_CURLY_BRACKET)) { - this._lastMinValue = 0; - this._lastMaxValue = Number.POSITIVE_INFINITY; if (this.eatDecimalDigits()) { - this._lastMinValue = this._lastMaxValue = this._lastIntValue; + const min = this._lastIntValue; + let max = min; if (this.eat(COMMA)) { - this._lastMaxValue = this.eatDecimalDigits() + max = this.eatDecimalDigits() ? this._lastIntValue : Number.POSITIVE_INFINITY; } if (this.eat(RIGHT_CURLY_BRACKET)) { - if (!noError && this._lastMaxValue < this._lastMinValue) { + if (!noError && max < min) { this.raise("numbers out of order in {} quantifier"); } + this._lastRange = { min, max }; return true; } } - if (!noError && (this._uFlag || this.strict)) { + if (!noError && (this._unicodeMode || this.strict)) { this.raise("Incomplete quantifier"); } this.rewind(start); @@ -902,7 +1070,7 @@ class RegExpValidator { return (this.consumePatternCharacter() || this.consumeDot() || this.consumeReverseSolidusAtomEscape() || - this.consumeCharacterClass() || + Boolean(this.consumeCharacterClass()) || this.consumeUncapturingGroup() || this.consumeCapturingGroup()); } @@ -962,7 +1130,7 @@ class RegExpValidator { return (this.consumeDot() || this.consumeReverseSolidusAtomEscape() || this.consumeReverseSolidusFollowedByC() || - this.consumeCharacterClass() || + Boolean(this.consumeCharacterClass()) || this.consumeUncapturingGroup() || this.consumeCapturingGroup() || this.consumeInvalidBracedQuantifier() || @@ -1036,7 +1204,7 @@ class RegExpValidator { (this._nFlag && this.consumeKGroupName())) { return true; } - if (this.strict || this._uFlag) { + if (this.strict || this._unicodeMode) { this.raise("Invalid escape"); } return false; @@ -1049,7 +1217,7 @@ class RegExpValidator { this.onBackreference(start - 1, this.index, n); return true; } - if (this.strict || this._uFlag) { + if (this.strict || this._unicodeMode) { this.raise("Invalid escape"); } this.rewind(start); @@ -1057,52 +1225,57 @@ class RegExpValidator { return false; } consumeCharacterClassEscape() { + var _a; const start = this.index; if (this.eat(LATIN_SMALL_LETTER_D)) { this._lastIntValue = -1; this.onEscapeCharacterSet(start - 1, this.index, "digit", false); - return true; + return {}; } if (this.eat(LATIN_CAPITAL_LETTER_D)) { this._lastIntValue = -1; this.onEscapeCharacterSet(start - 1, this.index, "digit", true); - return true; + return {}; } if (this.eat(LATIN_SMALL_LETTER_S)) { this._lastIntValue = -1; this.onEscapeCharacterSet(start - 1, this.index, "space", false); - return true; + return {}; } if (this.eat(LATIN_CAPITAL_LETTER_S)) { this._lastIntValue = -1; this.onEscapeCharacterSet(start - 1, this.index, "space", true); - return true; + return {}; } if (this.eat(LATIN_SMALL_LETTER_W)) { this._lastIntValue = -1; this.onEscapeCharacterSet(start - 1, this.index, "word", false); - return true; + return {}; } if (this.eat(LATIN_CAPITAL_LETTER_W)) { this._lastIntValue = -1; this.onEscapeCharacterSet(start - 1, this.index, "word", true); - return true; + return {}; } let negate = false; - if (this._uFlag && + if (this._unicodeMode && this.ecmaVersion >= 2018 && (this.eat(LATIN_SMALL_LETTER_P) || (negate = this.eat(LATIN_CAPITAL_LETTER_P)))) { this._lastIntValue = -1; + let result = null; if (this.eat(LEFT_CURLY_BRACKET) && - this.eatUnicodePropertyValueExpression() && + (result = this.eatUnicodePropertyValueExpression()) && this.eat(RIGHT_CURLY_BRACKET)) { - this.onUnicodePropertyCharacterSet(start - 1, this.index, "property", this._lastKeyValue, this._lastValValue || null, negate); - return true; + if (negate && result.strings) { + this.raise("Invalid property name"); + } + this.onUnicodePropertyCharacterSet(start - 1, this.index, "property", result.key, result.value, negate, (_a = result.strings) !== null && _a !== void 0 ? _a : false); + return { mayContainStrings: result.strings }; } this.raise("Invalid property name"); } - return false; + return null; } consumeCharacterEscape() { const start = this.index; @@ -1112,7 +1285,7 @@ class RegExpValidator { this.eatHexEscapeSequence() || this.eatRegExpUnicodeEscapeSequence() || (!this.strict && - !this._uFlag && + !this._unicodeMode && this.eatLegacyOctalEscapeSequence()) || this.eatIdentityEscape()) { this.onCharacter(start - 1, this.index, this._lastIntValue); @@ -1137,18 +1310,31 @@ class RegExpValidator { const start = this.index; if (this.eat(LEFT_SQUARE_BRACKET)) { const negate = this.eat(CIRCUMFLEX_ACCENT); - this.onCharacterClassEnter(start, negate); - this.consumeClassRanges(); + this.onCharacterClassEnter(start, negate, this._unicodeSetsMode); + const result = this.consumeClassContents(); if (!this.eat(RIGHT_SQUARE_BRACKET)) { - this.raise("Unterminated character class"); + if (this.currentCodePoint === -1) { + this.raise("Unterminated character class"); + } + this.raise("Invalid character in character class"); + } + if (negate && result.mayContainStrings) { + this.raise("Negated character class may contain strings"); } this.onCharacterClassLeave(start, this.index, negate); - return true; + return result; } - return false; + return null; } - consumeClassRanges() { - const strict = this.strict || this._uFlag; + consumeClassContents() { + if (this._unicodeSetsMode) { + if (this.currentCodePoint === RIGHT_SQUARE_BRACKET) { + return {}; + } + const result = this.consumeClassSetExpression(); + return result; + } + const strict = this.strict || this._unicodeMode; for (;;) { const rangeStart = this.index; if (!this.consumeClassAtom()) { @@ -1174,6 +1360,7 @@ class RegExpValidator { } this.onCharacterClassRange(rangeStart, this.index, min, max); } + return {}; } consumeClassAtom() { const start = this.index; @@ -1196,7 +1383,7 @@ class RegExpValidator { this.onCharacter(start, this.index, this._lastIntValue); return true; } - if (this.strict || this._uFlag) { + if (this.strict || this._unicodeMode) { this.raise("Invalid escape"); } this.rewind(start); @@ -1210,14 +1397,14 @@ class RegExpValidator { this.onCharacter(start - 1, this.index, this._lastIntValue); return true; } - if (this._uFlag && this.eat(HYPHEN_MINUS)) { + if (this._unicodeMode && this.eat(HYPHEN_MINUS)) { this._lastIntValue = HYPHEN_MINUS; this.onCharacter(start - 1, this.index, this._lastIntValue); return true; } let cp = 0; if (!this.strict && - !this._uFlag && + !this._unicodeMode && this.currentCodePoint === LATIN_SMALL_LETTER_C && (isDecimalDigit((cp = this.nextCodePoint)) || cp === LOW_LINE)) { this.advance(); @@ -1226,7 +1413,196 @@ class RegExpValidator { this.onCharacter(start - 1, this.index, this._lastIntValue); return true; } - return (this.consumeCharacterClassEscape() || this.consumeCharacterEscape()); + return (Boolean(this.consumeCharacterClassEscape()) || + this.consumeCharacterEscape()); + } + consumeClassSetExpression() { + const start = this.index; + let mayContainStrings = false; + let result = null; + if (this.consumeClassSetCharacter()) { + if (this.consumeClassSetRangeFromOperator(start)) { + this.consumeClassUnionRight({}); + return {}; + } + mayContainStrings = false; + } + else if ((result = this.consumeClassSetOperand())) { + mayContainStrings = result.mayContainStrings; + } + else { + const cp = this.currentCodePoint; + if (cp === REVERSE_SOLIDUS) { + this.advance(); + this.raise("Invalid escape"); + } + if (cp === this.nextCodePoint && + isClassSetReservedDoublePunctuatorCharacter(cp)) { + this.raise("Invalid set operation in character class"); + } + this.raise("Invalid character in character class"); + } + if (this.eat2(AMPERSAND, AMPERSAND)) { + while (this.currentCodePoint !== AMPERSAND && + (result = this.consumeClassSetOperand())) { + this.onClassIntersection(start, this.index); + if (!result.mayContainStrings) { + mayContainStrings = false; + } + if (this.eat2(AMPERSAND, AMPERSAND)) { + continue; + } + return { mayContainStrings }; + } + this.raise("Invalid character in character class"); + } + if (this.eat2(HYPHEN_MINUS, HYPHEN_MINUS)) { + while (this.consumeClassSetOperand()) { + this.onClassSubtraction(start, this.index); + if (this.eat2(HYPHEN_MINUS, HYPHEN_MINUS)) { + continue; + } + return { mayContainStrings }; + } + this.raise("Invalid character in character class"); + } + return this.consumeClassUnionRight({ mayContainStrings }); + } + consumeClassUnionRight(leftResult) { + let mayContainStrings = leftResult.mayContainStrings; + for (;;) { + const start = this.index; + if (this.consumeClassSetCharacter()) { + this.consumeClassSetRangeFromOperator(start); + continue; + } + const result = this.consumeClassSetOperand(); + if (result) { + if (result.mayContainStrings) { + mayContainStrings = true; + } + continue; + } + break; + } + return { mayContainStrings }; + } + consumeClassSetRangeFromOperator(start) { + const currentStart = this.index; + const min = this._lastIntValue; + if (this.eat(HYPHEN_MINUS)) { + if (this.consumeClassSetCharacter()) { + const max = this._lastIntValue; + if (min === -1 || max === -1) { + this.raise("Invalid character class"); + } + if (min > max) { + this.raise("Range out of order in character class"); + } + this.onCharacterClassRange(start, this.index, min, max); + return true; + } + this.rewind(currentStart); + } + return false; + } + consumeClassSetOperand() { + let result = null; + if ((result = this.consumeNestedClass())) { + return result; + } + if ((result = this.consumeClassStringDisjunction())) { + return result; + } + if (this.consumeClassSetCharacter()) { + return {}; + } + return null; + } + consumeNestedClass() { + const start = this.index; + if (this.eat(LEFT_SQUARE_BRACKET)) { + const negate = this.eat(CIRCUMFLEX_ACCENT); + this.onCharacterClassEnter(start, negate, true); + const result = this.consumeClassContents(); + if (!this.eat(RIGHT_SQUARE_BRACKET)) { + this.raise("Unterminated character class"); + } + if (negate && result.mayContainStrings) { + this.raise("Negated character class may contain strings"); + } + this.onCharacterClassLeave(start, this.index, negate); + return result; + } + if (this.eat(REVERSE_SOLIDUS)) { + const result = this.consumeCharacterClassEscape(); + if (result) { + return result; + } + this.rewind(start); + } + return null; + } + consumeClassStringDisjunction() { + const start = this.index; + if (this.eat3(REVERSE_SOLIDUS, LATIN_SMALL_LETTER_Q, LEFT_CURLY_BRACKET)) { + this.onClassStringDisjunctionEnter(start); + let i = 0; + let mayContainStrings = false; + do { + if (this.consumeClassString(i++).mayContainStrings) { + mayContainStrings = true; + } + } while (this.eat(VERTICAL_LINE)); + if (this.eat(RIGHT_CURLY_BRACKET)) { + this.onClassStringDisjunctionLeave(start, this.index); + return { mayContainStrings }; + } + this.raise("Unterminated class string disjunction"); + } + return null; + } + consumeClassString(i) { + const start = this.index; + let count = 0; + this.onStringAlternativeEnter(start, i); + while (this.currentCodePoint !== -1 && + this.consumeClassSetCharacter()) { + count++; + } + this.onStringAlternativeLeave(start, this.index, i); + return { mayContainStrings: count !== 1 }; + } + consumeClassSetCharacter() { + const start = this.index; + const cp = this.currentCodePoint; + if (cp !== this.nextCodePoint || + !isClassSetReservedDoublePunctuatorCharacter(cp)) { + if (cp !== -1 && !isClassSetSyntaxCharacter(cp)) { + this._lastIntValue = cp; + this.advance(); + this.onCharacter(start, this.index, this._lastIntValue); + return true; + } + } + if (this.eat(REVERSE_SOLIDUS)) { + if (this.consumeCharacterEscape()) { + return true; + } + if (isClassSetReservedPunctuator(this.currentCodePoint)) { + this._lastIntValue = this.currentCodePoint; + this.advance(); + this.onCharacter(start, this.index, this._lastIntValue); + return true; + } + if (this.eat(LATIN_SMALL_LETTER_B)) { + this._lastIntValue = BACKSPACE; + this.onCharacter(start, this.index, this._lastIntValue); + return true; + } + this.rewind(start); + } + return false; } eatGroupName() { if (this.eat(LESS_THAN_SIGN)) { @@ -1249,7 +1625,7 @@ class RegExpValidator { } eatRegExpIdentifierStart() { const start = this.index; - const forceUFlag = !this._uFlag && this.ecmaVersion >= 2020; + const forceUFlag = !this._unicodeMode && this.ecmaVersion >= 2020; let cp = this.currentCodePoint; this.advance(); if (cp === REVERSE_SOLIDUS && @@ -1262,7 +1638,7 @@ class RegExpValidator { cp = combineSurrogatePair(cp, this.currentCodePoint); this.advance(); } - if (isRegExpIdentifierStart(cp)) { + if (isIdentifierStartChar(cp)) { this._lastIntValue = cp; return true; } @@ -1273,7 +1649,7 @@ class RegExpValidator { } eatRegExpIdentifierPart() { const start = this.index; - const forceUFlag = !this._uFlag && this.ecmaVersion >= 2020; + const forceUFlag = !this._unicodeMode && this.ecmaVersion >= 2020; let cp = this.currentCodePoint; this.advance(); if (cp === REVERSE_SOLIDUS && @@ -1286,7 +1662,7 @@ class RegExpValidator { cp = combineSurrogatePair(cp, this.currentCodePoint); this.advance(); } - if (isRegExpIdentifierPart(cp)) { + if (isIdentifierPartChar(cp)) { this._lastIntValue = cp; return true; } @@ -1348,7 +1724,7 @@ class RegExpValidator { } eatRegExpUnicodeEscapeSequence(forceUFlag = false) { const start = this.index; - const uFlag = forceUFlag || this._uFlag; + const uFlag = forceUFlag || this._unicodeMode; if (this.eat(LATIN_SMALL_LETTER_U)) { if ((uFlag && this.eatRegExpUnicodeSurrogatePairEscape()) || this.eatFixedHexDigits(4) || @@ -1404,7 +1780,7 @@ class RegExpValidator { if (cp === -1) { return false; } - if (this._uFlag) { + if (this._unicodeMode) { return isSyntaxCharacter(cp) || cp === SOLIDUS; } if (this.strict) { @@ -1431,11 +1807,14 @@ class RegExpValidator { eatUnicodePropertyValueExpression() { const start = this.index; if (this.eatUnicodePropertyName() && this.eat(EQUALS_SIGN)) { - this._lastKeyValue = this._lastStrValue; + const key = this._lastStrValue; if (this.eatUnicodePropertyValue()) { - this._lastValValue = this._lastStrValue; - if (isValidUnicodeProperty(this.ecmaVersion, this._lastKeyValue, this._lastValValue)) { - return true; + const value = this._lastStrValue; + if (isValidUnicodeProperty(this.ecmaVersion, key, value)) { + return { + key, + value: value || null, + }; } this.raise("Invalid property name"); } @@ -1444,18 +1823,28 @@ class RegExpValidator { if (this.eatLoneUnicodePropertyNameOrValue()) { const nameOrValue = this._lastStrValue; if (isValidUnicodeProperty(this.ecmaVersion, "General_Category", nameOrValue)) { - this._lastKeyValue = "General_Category"; - this._lastValValue = nameOrValue; - return true; + return { + key: "General_Category", + value: nameOrValue || null, + }; } if (isValidLoneUnicodeProperty(this.ecmaVersion, nameOrValue)) { - this._lastKeyValue = nameOrValue; - this._lastValValue = ""; - return true; + return { + key: nameOrValue, + value: null, + }; + } + if (this._unicodeSetsMode && + isValidLoneUnicodePropertyOfString(this.ecmaVersion, nameOrValue)) { + return { + key: nameOrValue, + value: null, + strings: true, + }; } this.raise("Invalid property name"); } - return false; + return null; } eatUnicodePropertyName() { this._lastStrValue = ""; @@ -1482,7 +1871,7 @@ class RegExpValidator { if (this.eatFixedHexDigits(2)) { return true; } - if (this._uFlag || this.strict) { + if (this._unicodeMode || this.strict) { this.raise("Invalid escape"); } this.rewind(start); @@ -1557,16 +1946,24 @@ class RegExpValidator { const DUMMY_PATTERN = {}; const DUMMY_FLAGS = {}; const DUMMY_CAPTURING_GROUP = {}; +function isClassSetOperand(node) { + return (node.type === "Character" || + node.type === "CharacterSet" || + node.type === "CharacterClass" || + node.type === "ExpressionCharacterClass" || + node.type === "ClassStringDisjunction"); +} class RegExpParserState { constructor(options) { var _a; this._node = DUMMY_PATTERN; + this._expressionBuffer = null; this._flags = DUMMY_FLAGS; this._backreferences = []; this._capturingGroups = []; this.source = ""; this.strict = Boolean(options === null || options === void 0 ? void 0 : options.strict); - this.ecmaVersion = (_a = options === null || options === void 0 ? void 0 : options.ecmaVersion) !== null && _a !== void 0 ? _a : 2023; + this.ecmaVersion = (_a = options === null || options === void 0 ? void 0 : options.ecmaVersion) !== null && _a !== void 0 ? _a : latestEcmaVersion; } get pattern() { if (this._node.type !== "Pattern") { @@ -1580,7 +1977,7 @@ class RegExpParserState { } return this._flags; } - onRegExpFlags(start, end, { global, ignoreCase, multiline, unicode, sticky, dotAll, hasIndices, }) { + onRegExpFlags(start, end, { global, ignoreCase, multiline, unicode, sticky, dotAll, hasIndices, unicodeSets, }) { this._flags = { type: "Flags", parent: null, @@ -1594,6 +1991,7 @@ class RegExpParserState { sticky, dotAll, hasIndices, + unicodeSets, }; } onPatternEnter(start) { @@ -1808,26 +2206,33 @@ class RegExpParserState { negate, }); } - onUnicodePropertyCharacterSet(start, end, kind, key, value, negate) { + onUnicodePropertyCharacterSet(start, end, kind, key, value, negate, strings) { const parent = this._node; - if (parent.type !== "Alternative" && parent.type !== "CharacterClass") { + if ((parent.type !== "Alternative" && + parent.type !== "CharacterClass") || + (strings && (negate || value))) { throw new Error("UnknownError"); } - parent.elements.push({ + const base = { type: "CharacterSet", parent, start, end, raw: this.source.slice(start, end), kind, + strings, key, - value, - negate, - }); + }; + const node = strings + ? Object.assign(Object.assign({}, base), { value: null, negate: false, strings: true }) : Object.assign(Object.assign({}, base), { value, + negate, strings: false }); + parent.elements.push(node); } onCharacter(start, end, value) { const parent = this._node; - if (parent.type !== "Alternative" && parent.type !== "CharacterClass") { + if (parent.type !== "Alternative" && + parent.type !== "CharacterClass" && + parent.type !== "StringAlternative") { throw new Error("UnknownError"); } parent.elements.push({ @@ -1856,31 +2261,66 @@ class RegExpParserState { parent.elements.push(node); this._backreferences.push(node); } - onCharacterClassEnter(start, negate) { + onCharacterClassEnter(start, negate, unicodeSets) { const parent = this._node; - if (parent.type !== "Alternative") { - throw new Error("UnknownError"); - } - this._node = { + const base = { type: "CharacterClass", parent, start, end: start, raw: "", + unicodeSets, negate, elements: [], }; - parent.elements.push(this._node); + if (parent.type === "Alternative") { + const node = Object.assign(Object.assign({}, base), { parent }); + this._node = node; + parent.elements.push(node); + } + else if (parent.type === "CharacterClass" && + parent.unicodeSets && + unicodeSets) { + const node = Object.assign(Object.assign({}, base), { parent, + unicodeSets }); + this._node = node; + parent.elements.push(node); + } + else { + throw new Error("UnknownError"); + } } onCharacterClassLeave(start, end) { const node = this._node; if (node.type !== "CharacterClass" || - node.parent.type !== "Alternative") { + (node.parent.type !== "Alternative" && + node.parent.type !== "CharacterClass") || + (this._expressionBuffer && node.elements.length > 0)) { throw new Error("UnknownError"); } + const parent = node.parent; node.end = end; node.raw = this.source.slice(start, end); - this._node = node.parent; + this._node = parent; + const expression = this._expressionBuffer; + this._expressionBuffer = null; + if (!expression) { + return; + } + const newNode = { + type: "ExpressionCharacterClass", + parent, + start: node.start, + end: node.end, + raw: node.raw, + negate: node.negate, + expression, + }; + expression.parent = newNode; + if (node !== parent.elements.pop()) { + throw new Error("UnknownError"); + } + parent.elements.push(newNode); } onCharacterClassRange(start, end) { const parent = this._node; @@ -1889,15 +2329,19 @@ class RegExpParserState { } const elements = parent.elements; const max = elements.pop(); - const hyphen = elements.pop(); + if (!max || max.type !== "Character") { + throw new Error("UnknownError"); + } + if (!parent.unicodeSets) { + const hyphen = elements.pop(); + if (!hyphen || + hyphen.type !== "Character" || + hyphen.value !== HYPHEN_MINUS) { + throw new Error("UnknownError"); + } + } const min = elements.pop(); - if (!min || - !max || - !hyphen || - min.type !== "Character" || - max.type !== "Character" || - hyphen.type !== "Character" || - hyphen.value !== HYPHEN_MINUS) { + if (!min || min.type !== "Character") { throw new Error("UnknownError"); } const node = { @@ -1913,6 +2357,111 @@ class RegExpParserState { max.parent = node; elements.push(node); } + onClassIntersection(start, end) { + var _a; + const parent = this._node; + if (parent.type !== "CharacterClass" || !parent.unicodeSets) { + throw new Error("UnknownError"); + } + const right = parent.elements.pop(); + const left = (_a = this._expressionBuffer) !== null && _a !== void 0 ? _a : parent.elements.pop(); + if (!left || + !right || + left.type === "ClassSubtraction" || + (left.type !== "ClassIntersection" && !isClassSetOperand(left)) || + !isClassSetOperand(right)) { + throw new Error("UnknownError"); + } + const node = { + type: "ClassIntersection", + parent: parent, + start, + end, + raw: this.source.slice(start, end), + left, + right, + }; + left.parent = node; + right.parent = node; + this._expressionBuffer = node; + } + onClassSubtraction(start, end) { + var _a; + const parent = this._node; + if (parent.type !== "CharacterClass" || !parent.unicodeSets) { + throw new Error("UnknownError"); + } + const right = parent.elements.pop(); + const left = (_a = this._expressionBuffer) !== null && _a !== void 0 ? _a : parent.elements.pop(); + if (!left || + !right || + left.type === "ClassIntersection" || + (left.type !== "ClassSubtraction" && !isClassSetOperand(left)) || + !isClassSetOperand(right)) { + throw new Error("UnknownError"); + } + const node = { + type: "ClassSubtraction", + parent: parent, + start, + end, + raw: this.source.slice(start, end), + left, + right, + }; + left.parent = node; + right.parent = node; + this._expressionBuffer = node; + } + onClassStringDisjunctionEnter(start) { + const parent = this._node; + if (parent.type !== "CharacterClass" || !parent.unicodeSets) { + throw new Error("UnknownError"); + } + this._node = { + type: "ClassStringDisjunction", + parent, + start, + end: start, + raw: "", + alternatives: [], + }; + parent.elements.push(this._node); + } + onClassStringDisjunctionLeave(start, end) { + const node = this._node; + if (node.type !== "ClassStringDisjunction" || + node.parent.type !== "CharacterClass") { + throw new Error("UnknownError"); + } + node.end = end; + node.raw = this.source.slice(start, end); + this._node = node.parent; + } + onStringAlternativeEnter(start) { + const parent = this._node; + if (parent.type !== "ClassStringDisjunction") { + throw new Error("UnknownError"); + } + this._node = { + type: "StringAlternative", + parent, + start, + end: start, + raw: "", + elements: [], + }; + parent.alternatives.push(this._node); + } + onStringAlternativeLeave(start, end) { + const node = this._node; + if (node.type !== "StringAlternative") { + throw new Error("UnknownError"); + } + node.end = end; + node.raw = this.source.slice(start, end); + this._node = node.parent; + } } class RegExpParser { constructor(options) { @@ -1942,9 +2491,9 @@ class RegExpParser { this._validator.validateFlags(source, start, end); return this._state.flags; } - parsePattern(source, start = 0, end = source.length, uFlag = false) { + parsePattern(source, start = 0, end = source.length, uFlagOrFlags = undefined) { this._state.source = source; - this._validator.validatePattern(source, start, end, uFlag); + this._validator.validatePattern(source, start, end, uFlagOrFlags); return this._state.pattern; } } @@ -1979,6 +2528,18 @@ class RegExpVisitor { case "CharacterSet": this.visitCharacterSet(node); break; + case "ClassIntersection": + this.visitClassIntersection(node); + break; + case "ClassStringDisjunction": + this.visitClassStringDisjunction(node); + break; + case "ClassSubtraction": + this.visitClassSubtraction(node); + break; + case "ExpressionCharacterClass": + this.visitExpressionCharacterClass(node); + break; case "Flags": this.visitFlags(node); break; @@ -1994,6 +2555,9 @@ class RegExpVisitor { case "RegExpLiteral": this.visitRegExpLiteral(node); break; + case "StringAlternative": + this.visitStringAlternative(node); + break; default: throw new Error(`Unknown type: ${node.type}`); } @@ -2070,6 +2634,44 @@ class RegExpVisitor { this._handlers.onCharacterSetLeave(node); } } + visitClassIntersection(node) { + if (this._handlers.onClassIntersectionEnter) { + this._handlers.onClassIntersectionEnter(node); + } + this.visit(node.left); + this.visit(node.right); + if (this._handlers.onClassIntersectionLeave) { + this._handlers.onClassIntersectionLeave(node); + } + } + visitClassStringDisjunction(node) { + if (this._handlers.onClassStringDisjunctionEnter) { + this._handlers.onClassStringDisjunctionEnter(node); + } + node.alternatives.forEach(this.visit, this); + if (this._handlers.onClassStringDisjunctionLeave) { + this._handlers.onClassStringDisjunctionLeave(node); + } + } + visitClassSubtraction(node) { + if (this._handlers.onClassSubtractionEnter) { + this._handlers.onClassSubtractionEnter(node); + } + this.visit(node.left); + this.visit(node.right); + if (this._handlers.onClassSubtractionLeave) { + this._handlers.onClassSubtractionLeave(node); + } + } + visitExpressionCharacterClass(node) { + if (this._handlers.onExpressionCharacterClassEnter) { + this._handlers.onExpressionCharacterClassEnter(node); + } + this.visit(node.expression); + if (this._handlers.onExpressionCharacterClassLeave) { + this._handlers.onExpressionCharacterClassLeave(node); + } + } visitFlags(node) { if (this._handlers.onFlagsEnter) { this._handlers.onFlagsEnter(node); @@ -2115,6 +2717,15 @@ class RegExpVisitor { this._handlers.onRegExpLiteralLeave(node); } } + visitStringAlternative(node) { + if (this._handlers.onStringAlternativeEnter) { + this._handlers.onStringAlternativeEnter(node); + } + node.elements.forEach(this.visit, this); + if (this._handlers.onStringAlternativeLeave) { + this._handlers.onStringAlternativeLeave(node); + } + } } function parseRegExpLiteral(source, options) { diff --git a/node_modules/@eslint-community/regexpp/index.js.map b/node_modules/@eslint-community/regexpp/index.js.map index 728e5e76f7..8dc886c456 100644 --- a/node_modules/@eslint-community/regexpp/index.js.map +++ b/node_modules/@eslint-community/regexpp/index.js.map @@ -1 +1 @@ -{"version":3,"file":"index.js.map","sources":[".temp/unicode/src/unicode/ids.ts",".temp/unicode/src/unicode/properties.ts",".temp/unicode/src/unicode/index.ts",".temp/src/reader.ts",".temp/src/regexp-syntax-error.ts",".temp/src/validator.ts",".temp/src/parser.ts",".temp/src/visitor.ts",".temp/src/index.ts"],"sourcesContent":[null,null,null,null,null,null,null,null,null],"names":[],"mappings":";;;;;;;;AAIA,IAAI,kBAAkB,GAAyB,SAAS,CAAA;AACxD,IAAI,qBAAqB,GAAyB,SAAS,CAAA;AAErD,SAAU,SAAS,CAAC,EAAU,EAAA;IAChC,IAAI,EAAE,GAAG,IAAI;AAAE,QAAA,OAAO,KAAK,CAAA;IAC3B,IAAI,EAAE,GAAG,IAAI;AAAE,QAAA,OAAO,IAAI,CAAA;IAC1B,IAAI,EAAE,GAAG,IAAI;AAAE,QAAA,OAAO,KAAK,CAAA;IAC3B,IAAI,EAAE,GAAG,IAAI;AAAE,QAAA,OAAO,IAAI,CAAA;AAC1B,IAAA,OAAO,cAAc,CAAC,EAAE,CAAC,CAAA;AAC7B,CAAC;AAEK,SAAU,YAAY,CAAC,EAAU,EAAA;IACnC,IAAI,EAAE,GAAG,IAAI;AAAE,QAAA,OAAO,KAAK,CAAA;IAC3B,IAAI,EAAE,GAAG,IAAI;AAAE,QAAA,OAAO,IAAI,CAAA;IAC1B,IAAI,EAAE,GAAG,IAAI;AAAE,QAAA,OAAO,KAAK,CAAA;IAC3B,IAAI,EAAE,GAAG,IAAI;AAAE,QAAA,OAAO,IAAI,CAAA;IAC1B,IAAI,EAAE,KAAK,IAAI;AAAE,QAAA,OAAO,IAAI,CAAA;IAC5B,IAAI,EAAE,GAAG,IAAI;AAAE,QAAA,OAAO,KAAK,CAAA;IAC3B,IAAI,EAAE,GAAG,IAAI;AAAE,QAAA,OAAO,IAAI,CAAA;IAC1B,OAAO,cAAc,CAAC,EAAE,CAAC,IAAI,iBAAiB,CAAC,EAAE,CAAC,CAAA;AACtD,CAAC;AAED,SAAS,cAAc,CAAC,EAAU,EAAA;AAC9B,IAAA,OAAO,SAAS,CACZ,EAAE,EACF,kBAAkB,aAAlB,kBAAkB,KAAA,KAAA,CAAA,G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CAAA;AACzC,SAAA;KACJ;AAEO,IAAA,kBAAkB,CAAC,IAAmB,EAAA;AAC1C,QAAA,IAAI,IAAI,CAAC,SAAS,CAAC,oBAAoB,EAAE;AACrC,YAAA,IAAI,CAAC,SAAS,CAAC,oBAAoB,CAAC,IAAI,CAAC,CAAA;AAC5C,SAAA;AACD,QAAA,IAAI,CAAC,YAAY,CAAC,IAAI,CAAC,OAAO,CAAC,CAAA;AAC/B,QAAA,IAAI,CAAC,UAAU,CAAC,IAAI,CAAC,KAAK,CAAC,CAAA;AAC3B,QAAA,IAAI,IAAI,CAAC,SAAS,CAAC,oBAAoB,EAAE;AACrC,YAAA,IAAI,CAAC,SAAS,CAAC,oBAAoB,CAAC,IAAI,CAAC,CAAA;AAC5C,SAAA;KACJ;AACJ;;ACvMe,SAAA,kBAAkB,CAC9B,MAAuB,EACvB,OAA8B,EAAA;AAE9B,IAAA,OAAO,IAAI,YAAY,CAAC,OAAO,CAAC,CAAC,YAAY,CAAC,MAAM,CAAC,MAAM,CAAC,CAAC,CAAA;AACjE,CAAC;AAOe,SAAA,qBAAqB,CACjC,MAAc,EACd,OAAiC,EAAA;IAEjC,IAAI,eAAe,CAAC,OAAO,CAAC,CAAC,eAAe,CAAC,MAAM,CAAC,CAAA;AACxD,CAAC;AAEe,SAAA,cAAc,CAC1B,IAAc,EACd,QAAgC,EAAA;IAEhC,IAAI,aAAa,CAAC,QAAQ,CAAC,CAAC,KAAK,CAAC,IAAI,CAAC,CAAA;AAC3C;;;;;;;;;"} \ No newline at end of file +{"version":3,"file":"index.js.map","sources":[".temp/src/ecma-versions.ts",".temp/unicode/src/unicode/ids.ts",".temp/unicode/src/unicode/properties.ts",".temp/unicode/src/unicode/index.ts",".temp/src/reader.ts",".temp/src/regexp-syntax-error.ts",".temp/unicode/src/unicode/properties-of-strings.ts",".temp/src/validator.ts",".temp/src/parser.ts",".temp/src/visitor.ts",".temp/src/index.ts"],"sourcesContent":[null,null,null,null,null,null,null,null,null,null,null],"names":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,CAAC,UAAU,CAAC,IAAI,CAAC,KAAK,CAAC,CAAA;AAC3B,QAAA,IAAI,IAAI,CAAC,SAAS,CAAC,oBAAoB,EAAE;AACrC,YAAA,IAAI,CAAC,SAAS,CAAC,oBAAoB,CAAC,IAAI,CAAC,CAAA;AAC5C,SAAA;KACJ;AAEO,IAAA,sBAAsB,CAAC,IAAuB,EAAA;AAClD,QAAA,IAAI,IAAI,CAAC,SAAS,CAAC,wBAAwB,EAAE;AACzC,YAAA,IAAI,CAAC,SAAS,CAAC,wBAAwB,CAAC,IAAI,CAAC,CAAA;AAChD,SAAA;QACD,IAAI,CAAC,QAAQ,CAAC,OAAO,CAAC,IAAI,CAAC,KAAK,EAAE,IAAI,CAAC,CAAA;AACvC,QAAA,IAAI,IAAI,CAAC,SAAS,CAAC,wBAAwB,EAAE;AACzC,YAAA,IAAI,CAAC,SAAS,CAAC,wBAAwB,CAAC,IAAI,CAAC,CAAA;AAChD,SAAA;KACJ;AACJ;;AClRe,SAAA,kBAAkB,CAC9B,MAAuB,EACvB,OAA8B,EAAA;AAE9B,IAAA,OAAO,IAAI,YAAY,CAAC,OAAO,CAAC,CAAC,YAAY,CAAC,MAAM,CAAC,MAAM,CAAC,CAAC,CAAA;AACjE,CAAC;AAOe,SAAA,qBAAqB,CACjC,MAAc,EACd,OAAiC,EAAA;IAEjC,IAAI,eAAe,CAAC,OAAO,CAAC,CAAC,eAAe,CAAC,MAAM,CAAC,CAAA;AACxD,CAAC;AAEe,SAAA,cAAc,CAC1B,IAAc,EACd,QAAgC,EAAA;IAEhC,IAAI,aAAa,CAAC,QAAQ,CAAC,CAAC,KAAK,CAAC,IAAI,CAAC,CAAA;AAC3C;;;;;;;;;"} \ No newline at end of file diff --git a/node_modules/@eslint-community/regexpp/index.mjs b/node_modules/@eslint-community/regexpp/index.mjs index 1c45db3473..69cbc02609 100644 --- a/node_modules/@eslint-community/regexpp/index.mjs +++ b/node_modules/@eslint-community/regexpp/index.mjs @@ -2,6 +2,8 @@ var ast = /*#__PURE__*/Object.freeze({ __proto__: null }); +const latestEcmaVersion = 2024; + let largeIdStartRanges = undefined; let largeIdContinueRanges = undefined; function isIdStart(cp) { @@ -138,7 +140,10 @@ const LINE_TABULATION = 0x0b; const FORM_FEED = 0x0c; const CARRIAGE_RETURN = 0x0d; const EXCLAMATION_MARK = 0x21; +const NUMBER_SIGN = 0x23; const DOLLAR_SIGN = 0x24; +const PERCENT_SIGN = 0x25; +const AMPERSAND = 0x26; const LEFT_PARENTHESIS = 0x28; const RIGHT_PARENTHESIS = 0x29; const ASTERISK = 0x2a; @@ -152,10 +157,12 @@ const DIGIT_ONE = 0x31; const DIGIT_SEVEN = 0x37; const DIGIT_NINE = 0x39; const COLON = 0x3a; +const SEMICOLON = 0x3b; const LESS_THAN_SIGN = 0x3c; const EQUALS_SIGN = 0x3d; const GREATER_THAN_SIGN = 0x3e; const QUESTION_MARK = 0x3f; +const COMMERCIAL_AT = 0x40; const LATIN_CAPITAL_LETTER_A = 0x41; const LATIN_CAPITAL_LETTER_B = 0x42; const LATIN_CAPITAL_LETTER_D = 0x44; @@ -176,6 +183,7 @@ const LATIN_SMALL_LETTER_K = 0x6b; const LATIN_SMALL_LETTER_M = 0x6d; const LATIN_SMALL_LETTER_N = 0x6e; const LATIN_SMALL_LETTER_P = 0x70; +const LATIN_SMALL_LETTER_Q = 0x71; const LATIN_SMALL_LETTER_R = 0x72; const LATIN_SMALL_LETTER_S = 0x73; const LATIN_SMALL_LETTER_T = 0x74; @@ -189,9 +197,11 @@ const LEFT_SQUARE_BRACKET = 0x5b; const REVERSE_SOLIDUS = 0x5c; const RIGHT_SQUARE_BRACKET = 0x5d; const CIRCUMFLEX_ACCENT = 0x5e; +const GRAVE_ACCENT = 0x60; const LEFT_CURLY_BRACKET = 0x7b; const VERTICAL_LINE = 0x7c; const RIGHT_CURLY_BRACKET = 0x7d; +const TILDE = 0x7e; const ZERO_WIDTH_NON_JOINER = 0x200c; const ZERO_WIDTH_JOINER = 0x200d; const LINE_SEPARATOR = 0x2028; @@ -346,41 +356,120 @@ class Reader { } class RegExpSyntaxError extends SyntaxError { - constructor(source, uFlag, index, message) { - if (source) { - if (!source.startsWith("/")) { - source = `/${source}/${uFlag ? "u" : ""}`; + constructor(srcCtx, flags, index, message) { + let source = ""; + if (srcCtx.kind === "literal") { + const literal = srcCtx.source.slice(srcCtx.start, srcCtx.end); + if (literal) { + source = `: ${literal}`; } - source = `: ${source}`; + } + else if (srcCtx.kind === "pattern") { + const pattern = srcCtx.source.slice(srcCtx.start, srcCtx.end); + const flagsText = `${flags.unicode ? "u" : ""}${flags.unicodeSets ? "v" : ""}`; + source = `: /${pattern}/${flagsText}`; } super(`Invalid regular expression${source}: ${message}`); this.index = index; } } +const binPropertyOfStringSets = new Set([ + "Basic_Emoji", + "Emoji_Keycap_Sequence", + "RGI_Emoji_Modifier_Sequence", + "RGI_Emoji_Flag_Sequence", + "RGI_Emoji_Tag_Sequence", + "RGI_Emoji_ZWJ_Sequence", + "RGI_Emoji", +]); +function isValidLoneUnicodePropertyOfString(version, value) { + return version >= 2024 && binPropertyOfStringSets.has(value); +} + +const SYNTAX_CHARACTER = new Set([ + CIRCUMFLEX_ACCENT, + DOLLAR_SIGN, + REVERSE_SOLIDUS, + FULL_STOP, + ASTERISK, + PLUS_SIGN, + QUESTION_MARK, + LEFT_PARENTHESIS, + RIGHT_PARENTHESIS, + LEFT_SQUARE_BRACKET, + RIGHT_SQUARE_BRACKET, + LEFT_CURLY_BRACKET, + RIGHT_CURLY_BRACKET, + VERTICAL_LINE, +]); +const CLASS_SET_RESERVED_DOUBLE_PUNCTUATOR_CHARACTER = new Set([ + AMPERSAND, + EXCLAMATION_MARK, + NUMBER_SIGN, + DOLLAR_SIGN, + PERCENT_SIGN, + ASTERISK, + PLUS_SIGN, + COMMA, + FULL_STOP, + COLON, + SEMICOLON, + LESS_THAN_SIGN, + EQUALS_SIGN, + GREATER_THAN_SIGN, + QUESTION_MARK, + COMMERCIAL_AT, + CIRCUMFLEX_ACCENT, + GRAVE_ACCENT, + TILDE, +]); +const CLASS_SET_SYNTAX_CHARACTER = new Set([ + LEFT_PARENTHESIS, + RIGHT_PARENTHESIS, + LEFT_SQUARE_BRACKET, + RIGHT_SQUARE_BRACKET, + LEFT_CURLY_BRACKET, + RIGHT_CURLY_BRACKET, + SOLIDUS, + HYPHEN_MINUS, + REVERSE_SOLIDUS, + VERTICAL_LINE, +]); +const CLASS_SET_RESERVED_PUNCTUATOR = new Set([ + AMPERSAND, + HYPHEN_MINUS, + EXCLAMATION_MARK, + NUMBER_SIGN, + PERCENT_SIGN, + COMMA, + COLON, + SEMICOLON, + LESS_THAN_SIGN, + EQUALS_SIGN, + GREATER_THAN_SIGN, + COMMERCIAL_AT, + GRAVE_ACCENT, + TILDE, +]); function isSyntaxCharacter(cp) { - return (cp === CIRCUMFLEX_ACCENT || - cp === DOLLAR_SIGN || - cp === REVERSE_SOLIDUS || - cp === FULL_STOP || - cp === ASTERISK || - cp === PLUS_SIGN || - cp === QUESTION_MARK || - cp === LEFT_PARENTHESIS || - cp === RIGHT_PARENTHESIS || - cp === LEFT_SQUARE_BRACKET || - cp === RIGHT_SQUARE_BRACKET || - cp === LEFT_CURLY_BRACKET || - cp === RIGHT_CURLY_BRACKET || - cp === VERTICAL_LINE); + return SYNTAX_CHARACTER.has(cp); } -function isRegExpIdentifierStart(cp) { +function isClassSetReservedDoublePunctuatorCharacter(cp) { + return CLASS_SET_RESERVED_DOUBLE_PUNCTUATOR_CHARACTER.has(cp); +} +function isClassSetSyntaxCharacter(cp) { + return CLASS_SET_SYNTAX_CHARACTER.has(cp); +} +function isClassSetReservedPunctuator(cp) { + return CLASS_SET_RESERVED_PUNCTUATOR.has(cp); +} +function isIdentifierStartChar(cp) { return isIdStart(cp) || cp === DOLLAR_SIGN || cp === LOW_LINE; } -function isRegExpIdentifierPart(cp) { +function isIdentifierPartChar(cp) { return (isIdContinue(cp) || cp === DOLLAR_SIGN || - cp === LOW_LINE || cp === ZERO_WIDTH_NON_JOINER || cp === ZERO_WIDTH_JOINER); } @@ -393,29 +482,36 @@ function isUnicodePropertyValueCharacter(cp) { class RegExpValidator { constructor(options) { this._reader = new Reader(); - this._uFlag = false; + this._unicodeMode = false; + this._unicodeSetsMode = false; this._nFlag = false; this._lastIntValue = 0; - this._lastMinValue = 0; - this._lastMaxValue = 0; + this._lastRange = { + min: 0, + max: Number.POSITIVE_INFINITY, + }; this._lastStrValue = ""; - this._lastKeyValue = ""; - this._lastValValue = ""; this._lastAssertionIsQuantifiable = false; this._numCapturingParens = 0; this._groupNames = new Set(); this._backreferenceNames = new Set(); + this._srcCtx = null; this._options = options !== null && options !== void 0 ? options : {}; } validateLiteral(source, start = 0, end = source.length) { - this._uFlag = this._nFlag = false; + this._srcCtx = { source, start, end, kind: "literal" }; + this._unicodeSetsMode = this._unicodeMode = this._nFlag = false; this.reset(source, start, end); this.onLiteralEnter(start); if (this.eat(SOLIDUS) && this.eatRegExpBody() && this.eat(SOLIDUS)) { const flagStart = this.index; - const uFlag = source.includes("u", flagStart); - this.validateFlags(source, flagStart, end); - this.validatePattern(source, start + 1, flagStart - 1, uFlag); + const unicode = source.includes("u", flagStart); + const unicodeSets = source.includes("v", flagStart); + this.validateFlagsInternal(source, flagStart, end); + this.validatePatternInternal(source, start + 1, flagStart - 1, { + unicode, + unicodeSets, + }); } else if (start >= end) { this.raise("Empty"); @@ -427,6 +523,29 @@ class RegExpValidator { this.onLiteralLeave(start, end); } validateFlags(source, start = 0, end = source.length) { + this._srcCtx = { source, start, end, kind: "flags" }; + this.validateFlagsInternal(source, start, end); + } + validatePattern(source, start = 0, end = source.length, uFlagOrFlags = undefined) { + this._srcCtx = { source, start, end, kind: "pattern" }; + this.validatePatternInternal(source, start, end, uFlagOrFlags); + } + validatePatternInternal(source, start = 0, end = source.length, uFlagOrFlags = undefined) { + const mode = this._parseFlagsOptionToMode(uFlagOrFlags, end); + this._unicodeMode = mode.unicodeMode; + this._nFlag = mode.nFlag; + this._unicodeSetsMode = mode.unicodeSetsMode; + this.reset(source, start, end); + this.consumePattern(); + if (!this._nFlag && + this.ecmaVersion >= 2018 && + this._groupNames.size > 0) { + this._nFlag = true; + this.rewind(start); + this.consumePattern(); + } + } + validateFlagsInternal(source, start, end) { const existingFlags = new Set(); let global = false; let ignoreCase = false; @@ -435,10 +554,11 @@ class RegExpValidator { let unicode = false; let dotAll = false; let hasIndices = false; + let unicodeSets = false; for (let i = start; i < end; ++i) { const flag = source.charCodeAt(i); if (existingFlags.has(flag)) { - this.raise(`Duplicated flag '${source[i]}'`); + this.raise(`Duplicated flag '${source[i]}'`, { index: start }); } existingFlags.add(flag); if (flag === LATIN_SMALL_LETTER_G) { @@ -466,8 +586,12 @@ class RegExpValidator { this.ecmaVersion >= 2022) { hasIndices = true; } + else if (flag === LATIN_SMALL_LETTER_V && + this.ecmaVersion >= 2024) { + unicodeSets = true; + } else { - this.raise(`Invalid flag '${source[i]}'`); + this.raise(`Invalid flag '${source[i]}'`, { index: start }); } } this.onRegExpFlags(start, end, { @@ -478,29 +602,43 @@ class RegExpValidator { sticky, dotAll, hasIndices, + unicodeSets, }); } - validatePattern(source, start = 0, end = source.length, uFlag = false) { - this._uFlag = uFlag && this.ecmaVersion >= 2015; - this._nFlag = - (uFlag && this.ecmaVersion >= 2018) || - Boolean(this._options.strict && this.ecmaVersion >= 2023); - this.reset(source, start, end); - this.consumePattern(); - if (!this._nFlag && - this.ecmaVersion >= 2018 && - this._groupNames.size > 0) { - this._nFlag = true; - this.rewind(start); - this.consumePattern(); + _parseFlagsOptionToMode(uFlagOrFlags, sourceEnd) { + let unicode = false; + let unicodeSets = false; + if (uFlagOrFlags && this.ecmaVersion >= 2015) { + if (typeof uFlagOrFlags === "object") { + unicode = Boolean(uFlagOrFlags.unicode); + if (this.ecmaVersion >= 2024) { + unicodeSets = Boolean(uFlagOrFlags.unicodeSets); + } + } + else { + unicode = uFlagOrFlags; + } } + if (unicode && unicodeSets) { + this.raise("Invalid regular expression flags", { + index: sourceEnd + 1, + unicode, + unicodeSets, + }); + } + const unicodeMode = unicode || unicodeSets; + const nFlag = (unicode && this.ecmaVersion >= 2018) || + unicodeSets || + Boolean(this._options.strict && this.ecmaVersion >= 2023); + const unicodeSetsMode = unicodeSets; + return { unicodeMode, nFlag, unicodeSetsMode }; } get strict() { - return Boolean(this._options.strict) || this._uFlag; + return Boolean(this._options.strict) || this._unicodeMode; } get ecmaVersion() { var _a; - return (_a = this._options.ecmaVersion) !== null && _a !== void 0 ? _a : 2023; + return (_a = this._options.ecmaVersion) !== null && _a !== void 0 ? _a : latestEcmaVersion; } onLiteralEnter(start) { if (this._options.onLiteralEnter) { @@ -605,9 +743,9 @@ class RegExpValidator { this._options.onEscapeCharacterSet(start, end, kind, negate); } } - onUnicodePropertyCharacterSet(start, end, kind, key, value, negate) { + onUnicodePropertyCharacterSet(start, end, kind, key, value, negate, strings) { if (this._options.onUnicodePropertyCharacterSet) { - this._options.onUnicodePropertyCharacterSet(start, end, kind, key, value, negate); + this._options.onUnicodePropertyCharacterSet(start, end, kind, key, value, negate, strings); } } onCharacter(start, end, value) { @@ -620,9 +758,9 @@ class RegExpValidator { this._options.onBackreference(start, end, ref); } } - onCharacterClassEnter(start, negate) { + onCharacterClassEnter(start, negate, unicodeSets) { if (this._options.onCharacterClassEnter) { - this._options.onCharacterClassEnter(start, negate); + this._options.onCharacterClassEnter(start, negate, unicodeSets); } } onCharacterClassLeave(start, end, negate) { @@ -635,8 +773,35 @@ class RegExpValidator { this._options.onCharacterClassRange(start, end, min, max); } } - get source() { - return this._reader.source; + onClassIntersection(start, end) { + if (this._options.onClassIntersection) { + this._options.onClassIntersection(start, end); + } + } + onClassSubtraction(start, end) { + if (this._options.onClassSubtraction) { + this._options.onClassSubtraction(start, end); + } + } + onClassStringDisjunctionEnter(start) { + if (this._options.onClassStringDisjunctionEnter) { + this._options.onClassStringDisjunctionEnter(start); + } + } + onClassStringDisjunctionLeave(start, end) { + if (this._options.onClassStringDisjunctionLeave) { + this._options.onClassStringDisjunctionLeave(start, end); + } + } + onStringAlternativeEnter(start, index) { + if (this._options.onStringAlternativeEnter) { + this._options.onStringAlternativeEnter(start, index); + } + } + onStringAlternativeLeave(start, end, index) { + if (this._options.onStringAlternativeLeave) { + this._options.onStringAlternativeLeave(start, end, index); + } } get index() { return this._reader.index; @@ -654,7 +819,7 @@ class RegExpValidator { return this._reader.nextCodePoint3; } reset(source, start, end) { - this._reader.reset(source, start, end, this._uFlag); + this._reader.reset(source, start, end, this._unicodeMode); } rewind(index) { this._reader.rewind(index); @@ -671,8 +836,12 @@ class RegExpValidator { eat3(cp1, cp2, cp3) { return this._reader.eat3(cp1, cp2, cp3); } - raise(message) { - throw new RegExpSyntaxError(this.source, this._uFlag, this.index, message); + raise(message, context) { + var _a, _b, _c; + throw new RegExpSyntaxError(this._srcCtx, { + unicode: (_a = context === null || context === void 0 ? void 0 : context.unicode) !== null && _a !== void 0 ? _a : (this._unicodeMode && !this._unicodeSetsMode), + unicodeSets: (_b = context === null || context === void 0 ? void 0 : context.unicodeSets) !== null && _b !== void 0 ? _b : this._unicodeSetsMode, + }, (_c = context === null || context === void 0 ? void 0 : context.index) !== null && _c !== void 0 ? _c : this.index, message); } eatRegExpBody() { const start = this.index; @@ -787,7 +956,7 @@ class RegExpValidator { this.onAlternativeLeave(start, this.index, i); } consumeTerm() { - if (this._uFlag || this.strict) { + if (this._unicodeMode || this.strict) { return (this.consumeAssertion() || (this.consumeAtom() && this.consumeOptionalQuantifier())); } @@ -856,8 +1025,7 @@ class RegExpValidator { max = 1; } else if (this.eatBracedQuantifier(noConsume)) { - min = this._lastMinValue; - max = this._lastMaxValue; + ({ min, max } = this._lastRange); } else { return false; @@ -871,23 +1039,23 @@ class RegExpValidator { eatBracedQuantifier(noError) { const start = this.index; if (this.eat(LEFT_CURLY_BRACKET)) { - this._lastMinValue = 0; - this._lastMaxValue = Number.POSITIVE_INFINITY; if (this.eatDecimalDigits()) { - this._lastMinValue = this._lastMaxValue = this._lastIntValue; + const min = this._lastIntValue; + let max = min; if (this.eat(COMMA)) { - this._lastMaxValue = this.eatDecimalDigits() + max = this.eatDecimalDigits() ? this._lastIntValue : Number.POSITIVE_INFINITY; } if (this.eat(RIGHT_CURLY_BRACKET)) { - if (!noError && this._lastMaxValue < this._lastMinValue) { + if (!noError && max < min) { this.raise("numbers out of order in {} quantifier"); } + this._lastRange = { min, max }; return true; } } - if (!noError && (this._uFlag || this.strict)) { + if (!noError && (this._unicodeMode || this.strict)) { this.raise("Incomplete quantifier"); } this.rewind(start); @@ -898,7 +1066,7 @@ class RegExpValidator { return (this.consumePatternCharacter() || this.consumeDot() || this.consumeReverseSolidusAtomEscape() || - this.consumeCharacterClass() || + Boolean(this.consumeCharacterClass()) || this.consumeUncapturingGroup() || this.consumeCapturingGroup()); } @@ -958,7 +1126,7 @@ class RegExpValidator { return (this.consumeDot() || this.consumeReverseSolidusAtomEscape() || this.consumeReverseSolidusFollowedByC() || - this.consumeCharacterClass() || + Boolean(this.consumeCharacterClass()) || this.consumeUncapturingGroup() || this.consumeCapturingGroup() || this.consumeInvalidBracedQuantifier() || @@ -1032,7 +1200,7 @@ class RegExpValidator { (this._nFlag && this.consumeKGroupName())) { return true; } - if (this.strict || this._uFlag) { + if (this.strict || this._unicodeMode) { this.raise("Invalid escape"); } return false; @@ -1045,7 +1213,7 @@ class RegExpValidator { this.onBackreference(start - 1, this.index, n); return true; } - if (this.strict || this._uFlag) { + if (this.strict || this._unicodeMode) { this.raise("Invalid escape"); } this.rewind(start); @@ -1053,52 +1221,57 @@ class RegExpValidator { return false; } consumeCharacterClassEscape() { + var _a; const start = this.index; if (this.eat(LATIN_SMALL_LETTER_D)) { this._lastIntValue = -1; this.onEscapeCharacterSet(start - 1, this.index, "digit", false); - return true; + return {}; } if (this.eat(LATIN_CAPITAL_LETTER_D)) { this._lastIntValue = -1; this.onEscapeCharacterSet(start - 1, this.index, "digit", true); - return true; + return {}; } if (this.eat(LATIN_SMALL_LETTER_S)) { this._lastIntValue = -1; this.onEscapeCharacterSet(start - 1, this.index, "space", false); - return true; + return {}; } if (this.eat(LATIN_CAPITAL_LETTER_S)) { this._lastIntValue = -1; this.onEscapeCharacterSet(start - 1, this.index, "space", true); - return true; + return {}; } if (this.eat(LATIN_SMALL_LETTER_W)) { this._lastIntValue = -1; this.onEscapeCharacterSet(start - 1, this.index, "word", false); - return true; + return {}; } if (this.eat(LATIN_CAPITAL_LETTER_W)) { this._lastIntValue = -1; this.onEscapeCharacterSet(start - 1, this.index, "word", true); - return true; + return {}; } let negate = false; - if (this._uFlag && + if (this._unicodeMode && this.ecmaVersion >= 2018 && (this.eat(LATIN_SMALL_LETTER_P) || (negate = this.eat(LATIN_CAPITAL_LETTER_P)))) { this._lastIntValue = -1; + let result = null; if (this.eat(LEFT_CURLY_BRACKET) && - this.eatUnicodePropertyValueExpression() && + (result = this.eatUnicodePropertyValueExpression()) && this.eat(RIGHT_CURLY_BRACKET)) { - this.onUnicodePropertyCharacterSet(start - 1, this.index, "property", this._lastKeyValue, this._lastValValue || null, negate); - return true; + if (negate && result.strings) { + this.raise("Invalid property name"); + } + this.onUnicodePropertyCharacterSet(start - 1, this.index, "property", result.key, result.value, negate, (_a = result.strings) !== null && _a !== void 0 ? _a : false); + return { mayContainStrings: result.strings }; } this.raise("Invalid property name"); } - return false; + return null; } consumeCharacterEscape() { const start = this.index; @@ -1108,7 +1281,7 @@ class RegExpValidator { this.eatHexEscapeSequence() || this.eatRegExpUnicodeEscapeSequence() || (!this.strict && - !this._uFlag && + !this._unicodeMode && this.eatLegacyOctalEscapeSequence()) || this.eatIdentityEscape()) { this.onCharacter(start - 1, this.index, this._lastIntValue); @@ -1133,18 +1306,31 @@ class RegExpValidator { const start = this.index; if (this.eat(LEFT_SQUARE_BRACKET)) { const negate = this.eat(CIRCUMFLEX_ACCENT); - this.onCharacterClassEnter(start, negate); - this.consumeClassRanges(); + this.onCharacterClassEnter(start, negate, this._unicodeSetsMode); + const result = this.consumeClassContents(); if (!this.eat(RIGHT_SQUARE_BRACKET)) { - this.raise("Unterminated character class"); + if (this.currentCodePoint === -1) { + this.raise("Unterminated character class"); + } + this.raise("Invalid character in character class"); + } + if (negate && result.mayContainStrings) { + this.raise("Negated character class may contain strings"); } this.onCharacterClassLeave(start, this.index, negate); - return true; + return result; } - return false; + return null; } - consumeClassRanges() { - const strict = this.strict || this._uFlag; + consumeClassContents() { + if (this._unicodeSetsMode) { + if (this.currentCodePoint === RIGHT_SQUARE_BRACKET) { + return {}; + } + const result = this.consumeClassSetExpression(); + return result; + } + const strict = this.strict || this._unicodeMode; for (;;) { const rangeStart = this.index; if (!this.consumeClassAtom()) { @@ -1170,6 +1356,7 @@ class RegExpValidator { } this.onCharacterClassRange(rangeStart, this.index, min, max); } + return {}; } consumeClassAtom() { const start = this.index; @@ -1192,7 +1379,7 @@ class RegExpValidator { this.onCharacter(start, this.index, this._lastIntValue); return true; } - if (this.strict || this._uFlag) { + if (this.strict || this._unicodeMode) { this.raise("Invalid escape"); } this.rewind(start); @@ -1206,14 +1393,14 @@ class RegExpValidator { this.onCharacter(start - 1, this.index, this._lastIntValue); return true; } - if (this._uFlag && this.eat(HYPHEN_MINUS)) { + if (this._unicodeMode && this.eat(HYPHEN_MINUS)) { this._lastIntValue = HYPHEN_MINUS; this.onCharacter(start - 1, this.index, this._lastIntValue); return true; } let cp = 0; if (!this.strict && - !this._uFlag && + !this._unicodeMode && this.currentCodePoint === LATIN_SMALL_LETTER_C && (isDecimalDigit((cp = this.nextCodePoint)) || cp === LOW_LINE)) { this.advance(); @@ -1222,7 +1409,196 @@ class RegExpValidator { this.onCharacter(start - 1, this.index, this._lastIntValue); return true; } - return (this.consumeCharacterClassEscape() || this.consumeCharacterEscape()); + return (Boolean(this.consumeCharacterClassEscape()) || + this.consumeCharacterEscape()); + } + consumeClassSetExpression() { + const start = this.index; + let mayContainStrings = false; + let result = null; + if (this.consumeClassSetCharacter()) { + if (this.consumeClassSetRangeFromOperator(start)) { + this.consumeClassUnionRight({}); + return {}; + } + mayContainStrings = false; + } + else if ((result = this.consumeClassSetOperand())) { + mayContainStrings = result.mayContainStrings; + } + else { + const cp = this.currentCodePoint; + if (cp === REVERSE_SOLIDUS) { + this.advance(); + this.raise("Invalid escape"); + } + if (cp === this.nextCodePoint && + isClassSetReservedDoublePunctuatorCharacter(cp)) { + this.raise("Invalid set operation in character class"); + } + this.raise("Invalid character in character class"); + } + if (this.eat2(AMPERSAND, AMPERSAND)) { + while (this.currentCodePoint !== AMPERSAND && + (result = this.consumeClassSetOperand())) { + this.onClassIntersection(start, this.index); + if (!result.mayContainStrings) { + mayContainStrings = false; + } + if (this.eat2(AMPERSAND, AMPERSAND)) { + continue; + } + return { mayContainStrings }; + } + this.raise("Invalid character in character class"); + } + if (this.eat2(HYPHEN_MINUS, HYPHEN_MINUS)) { + while (this.consumeClassSetOperand()) { + this.onClassSubtraction(start, this.index); + if (this.eat2(HYPHEN_MINUS, HYPHEN_MINUS)) { + continue; + } + return { mayContainStrings }; + } + this.raise("Invalid character in character class"); + } + return this.consumeClassUnionRight({ mayContainStrings }); + } + consumeClassUnionRight(leftResult) { + let mayContainStrings = leftResult.mayContainStrings; + for (;;) { + const start = this.index; + if (this.consumeClassSetCharacter()) { + this.consumeClassSetRangeFromOperator(start); + continue; + } + const result = this.consumeClassSetOperand(); + if (result) { + if (result.mayContainStrings) { + mayContainStrings = true; + } + continue; + } + break; + } + return { mayContainStrings }; + } + consumeClassSetRangeFromOperator(start) { + const currentStart = this.index; + const min = this._lastIntValue; + if (this.eat(HYPHEN_MINUS)) { + if (this.consumeClassSetCharacter()) { + const max = this._lastIntValue; + if (min === -1 || max === -1) { + this.raise("Invalid character class"); + } + if (min > max) { + this.raise("Range out of order in character class"); + } + this.onCharacterClassRange(start, this.index, min, max); + return true; + } + this.rewind(currentStart); + } + return false; + } + consumeClassSetOperand() { + let result = null; + if ((result = this.consumeNestedClass())) { + return result; + } + if ((result = this.consumeClassStringDisjunction())) { + return result; + } + if (this.consumeClassSetCharacter()) { + return {}; + } + return null; + } + consumeNestedClass() { + const start = this.index; + if (this.eat(LEFT_SQUARE_BRACKET)) { + const negate = this.eat(CIRCUMFLEX_ACCENT); + this.onCharacterClassEnter(start, negate, true); + const result = this.consumeClassContents(); + if (!this.eat(RIGHT_SQUARE_BRACKET)) { + this.raise("Unterminated character class"); + } + if (negate && result.mayContainStrings) { + this.raise("Negated character class may contain strings"); + } + this.onCharacterClassLeave(start, this.index, negate); + return result; + } + if (this.eat(REVERSE_SOLIDUS)) { + const result = this.consumeCharacterClassEscape(); + if (result) { + return result; + } + this.rewind(start); + } + return null; + } + consumeClassStringDisjunction() { + const start = this.index; + if (this.eat3(REVERSE_SOLIDUS, LATIN_SMALL_LETTER_Q, LEFT_CURLY_BRACKET)) { + this.onClassStringDisjunctionEnter(start); + let i = 0; + let mayContainStrings = false; + do { + if (this.consumeClassString(i++).mayContainStrings) { + mayContainStrings = true; + } + } while (this.eat(VERTICAL_LINE)); + if (this.eat(RIGHT_CURLY_BRACKET)) { + this.onClassStringDisjunctionLeave(start, this.index); + return { mayContainStrings }; + } + this.raise("Unterminated class string disjunction"); + } + return null; + } + consumeClassString(i) { + const start = this.index; + let count = 0; + this.onStringAlternativeEnter(start, i); + while (this.currentCodePoint !== -1 && + this.consumeClassSetCharacter()) { + count++; + } + this.onStringAlternativeLeave(start, this.index, i); + return { mayContainStrings: count !== 1 }; + } + consumeClassSetCharacter() { + const start = this.index; + const cp = this.currentCodePoint; + if (cp !== this.nextCodePoint || + !isClassSetReservedDoublePunctuatorCharacter(cp)) { + if (cp !== -1 && !isClassSetSyntaxCharacter(cp)) { + this._lastIntValue = cp; + this.advance(); + this.onCharacter(start, this.index, this._lastIntValue); + return true; + } + } + if (this.eat(REVERSE_SOLIDUS)) { + if (this.consumeCharacterEscape()) { + return true; + } + if (isClassSetReservedPunctuator(this.currentCodePoint)) { + this._lastIntValue = this.currentCodePoint; + this.advance(); + this.onCharacter(start, this.index, this._lastIntValue); + return true; + } + if (this.eat(LATIN_SMALL_LETTER_B)) { + this._lastIntValue = BACKSPACE; + this.onCharacter(start, this.index, this._lastIntValue); + return true; + } + this.rewind(start); + } + return false; } eatGroupName() { if (this.eat(LESS_THAN_SIGN)) { @@ -1245,7 +1621,7 @@ class RegExpValidator { } eatRegExpIdentifierStart() { const start = this.index; - const forceUFlag = !this._uFlag && this.ecmaVersion >= 2020; + const forceUFlag = !this._unicodeMode && this.ecmaVersion >= 2020; let cp = this.currentCodePoint; this.advance(); if (cp === REVERSE_SOLIDUS && @@ -1258,7 +1634,7 @@ class RegExpValidator { cp = combineSurrogatePair(cp, this.currentCodePoint); this.advance(); } - if (isRegExpIdentifierStart(cp)) { + if (isIdentifierStartChar(cp)) { this._lastIntValue = cp; return true; } @@ -1269,7 +1645,7 @@ class RegExpValidator { } eatRegExpIdentifierPart() { const start = this.index; - const forceUFlag = !this._uFlag && this.ecmaVersion >= 2020; + const forceUFlag = !this._unicodeMode && this.ecmaVersion >= 2020; let cp = this.currentCodePoint; this.advance(); if (cp === REVERSE_SOLIDUS && @@ -1282,7 +1658,7 @@ class RegExpValidator { cp = combineSurrogatePair(cp, this.currentCodePoint); this.advance(); } - if (isRegExpIdentifierPart(cp)) { + if (isIdentifierPartChar(cp)) { this._lastIntValue = cp; return true; } @@ -1344,7 +1720,7 @@ class RegExpValidator { } eatRegExpUnicodeEscapeSequence(forceUFlag = false) { const start = this.index; - const uFlag = forceUFlag || this._uFlag; + const uFlag = forceUFlag || this._unicodeMode; if (this.eat(LATIN_SMALL_LETTER_U)) { if ((uFlag && this.eatRegExpUnicodeSurrogatePairEscape()) || this.eatFixedHexDigits(4) || @@ -1400,7 +1776,7 @@ class RegExpValidator { if (cp === -1) { return false; } - if (this._uFlag) { + if (this._unicodeMode) { return isSyntaxCharacter(cp) || cp === SOLIDUS; } if (this.strict) { @@ -1427,11 +1803,14 @@ class RegExpValidator { eatUnicodePropertyValueExpression() { const start = this.index; if (this.eatUnicodePropertyName() && this.eat(EQUALS_SIGN)) { - this._lastKeyValue = this._lastStrValue; + const key = this._lastStrValue; if (this.eatUnicodePropertyValue()) { - this._lastValValue = this._lastStrValue; - if (isValidUnicodeProperty(this.ecmaVersion, this._lastKeyValue, this._lastValValue)) { - return true; + const value = this._lastStrValue; + if (isValidUnicodeProperty(this.ecmaVersion, key, value)) { + return { + key, + value: value || null, + }; } this.raise("Invalid property name"); } @@ -1440,18 +1819,28 @@ class RegExpValidator { if (this.eatLoneUnicodePropertyNameOrValue()) { const nameOrValue = this._lastStrValue; if (isValidUnicodeProperty(this.ecmaVersion, "General_Category", nameOrValue)) { - this._lastKeyValue = "General_Category"; - this._lastValValue = nameOrValue; - return true; + return { + key: "General_Category", + value: nameOrValue || null, + }; } if (isValidLoneUnicodeProperty(this.ecmaVersion, nameOrValue)) { - this._lastKeyValue = nameOrValue; - this._lastValValue = ""; - return true; + return { + key: nameOrValue, + value: null, + }; + } + if (this._unicodeSetsMode && + isValidLoneUnicodePropertyOfString(this.ecmaVersion, nameOrValue)) { + return { + key: nameOrValue, + value: null, + strings: true, + }; } this.raise("Invalid property name"); } - return false; + return null; } eatUnicodePropertyName() { this._lastStrValue = ""; @@ -1478,7 +1867,7 @@ class RegExpValidator { if (this.eatFixedHexDigits(2)) { return true; } - if (this._uFlag || this.strict) { + if (this._unicodeMode || this.strict) { this.raise("Invalid escape"); } this.rewind(start); @@ -1553,16 +1942,24 @@ class RegExpValidator { const DUMMY_PATTERN = {}; const DUMMY_FLAGS = {}; const DUMMY_CAPTURING_GROUP = {}; +function isClassSetOperand(node) { + return (node.type === "Character" || + node.type === "CharacterSet" || + node.type === "CharacterClass" || + node.type === "ExpressionCharacterClass" || + node.type === "ClassStringDisjunction"); +} class RegExpParserState { constructor(options) { var _a; this._node = DUMMY_PATTERN; + this._expressionBuffer = null; this._flags = DUMMY_FLAGS; this._backreferences = []; this._capturingGroups = []; this.source = ""; this.strict = Boolean(options === null || options === void 0 ? void 0 : options.strict); - this.ecmaVersion = (_a = options === null || options === void 0 ? void 0 : options.ecmaVersion) !== null && _a !== void 0 ? _a : 2023; + this.ecmaVersion = (_a = options === null || options === void 0 ? void 0 : options.ecmaVersion) !== null && _a !== void 0 ? _a : latestEcmaVersion; } get pattern() { if (this._node.type !== "Pattern") { @@ -1576,7 +1973,7 @@ class RegExpParserState { } return this._flags; } - onRegExpFlags(start, end, { global, ignoreCase, multiline, unicode, sticky, dotAll, hasIndices, }) { + onRegExpFlags(start, end, { global, ignoreCase, multiline, unicode, sticky, dotAll, hasIndices, unicodeSets, }) { this._flags = { type: "Flags", parent: null, @@ -1590,6 +1987,7 @@ class RegExpParserState { sticky, dotAll, hasIndices, + unicodeSets, }; } onPatternEnter(start) { @@ -1804,26 +2202,33 @@ class RegExpParserState { negate, }); } - onUnicodePropertyCharacterSet(start, end, kind, key, value, negate) { + onUnicodePropertyCharacterSet(start, end, kind, key, value, negate, strings) { const parent = this._node; - if (parent.type !== "Alternative" && parent.type !== "CharacterClass") { + if ((parent.type !== "Alternative" && + parent.type !== "CharacterClass") || + (strings && (negate || value))) { throw new Error("UnknownError"); } - parent.elements.push({ + const base = { type: "CharacterSet", parent, start, end, raw: this.source.slice(start, end), kind, + strings, key, - value, - negate, - }); + }; + const node = strings + ? Object.assign(Object.assign({}, base), { value: null, negate: false, strings: true }) : Object.assign(Object.assign({}, base), { value, + negate, strings: false }); + parent.elements.push(node); } onCharacter(start, end, value) { const parent = this._node; - if (parent.type !== "Alternative" && parent.type !== "CharacterClass") { + if (parent.type !== "Alternative" && + parent.type !== "CharacterClass" && + parent.type !== "StringAlternative") { throw new Error("UnknownError"); } parent.elements.push({ @@ -1852,31 +2257,66 @@ class RegExpParserState { parent.elements.push(node); this._backreferences.push(node); } - onCharacterClassEnter(start, negate) { + onCharacterClassEnter(start, negate, unicodeSets) { const parent = this._node; - if (parent.type !== "Alternative") { - throw new Error("UnknownError"); - } - this._node = { + const base = { type: "CharacterClass", parent, start, end: start, raw: "", + unicodeSets, negate, elements: [], }; - parent.elements.push(this._node); + if (parent.type === "Alternative") { + const node = Object.assign(Object.assign({}, base), { parent }); + this._node = node; + parent.elements.push(node); + } + else if (parent.type === "CharacterClass" && + parent.unicodeSets && + unicodeSets) { + const node = Object.assign(Object.assign({}, base), { parent, + unicodeSets }); + this._node = node; + parent.elements.push(node); + } + else { + throw new Error("UnknownError"); + } } onCharacterClassLeave(start, end) { const node = this._node; if (node.type !== "CharacterClass" || - node.parent.type !== "Alternative") { + (node.parent.type !== "Alternative" && + node.parent.type !== "CharacterClass") || + (this._expressionBuffer && node.elements.length > 0)) { throw new Error("UnknownError"); } + const parent = node.parent; node.end = end; node.raw = this.source.slice(start, end); - this._node = node.parent; + this._node = parent; + const expression = this._expressionBuffer; + this._expressionBuffer = null; + if (!expression) { + return; + } + const newNode = { + type: "ExpressionCharacterClass", + parent, + start: node.start, + end: node.end, + raw: node.raw, + negate: node.negate, + expression, + }; + expression.parent = newNode; + if (node !== parent.elements.pop()) { + throw new Error("UnknownError"); + } + parent.elements.push(newNode); } onCharacterClassRange(start, end) { const parent = this._node; @@ -1885,15 +2325,19 @@ class RegExpParserState { } const elements = parent.elements; const max = elements.pop(); - const hyphen = elements.pop(); + if (!max || max.type !== "Character") { + throw new Error("UnknownError"); + } + if (!parent.unicodeSets) { + const hyphen = elements.pop(); + if (!hyphen || + hyphen.type !== "Character" || + hyphen.value !== HYPHEN_MINUS) { + throw new Error("UnknownError"); + } + } const min = elements.pop(); - if (!min || - !max || - !hyphen || - min.type !== "Character" || - max.type !== "Character" || - hyphen.type !== "Character" || - hyphen.value !== HYPHEN_MINUS) { + if (!min || min.type !== "Character") { throw new Error("UnknownError"); } const node = { @@ -1909,6 +2353,111 @@ class RegExpParserState { max.parent = node; elements.push(node); } + onClassIntersection(start, end) { + var _a; + const parent = this._node; + if (parent.type !== "CharacterClass" || !parent.unicodeSets) { + throw new Error("UnknownError"); + } + const right = parent.elements.pop(); + const left = (_a = this._expressionBuffer) !== null && _a !== void 0 ? _a : parent.elements.pop(); + if (!left || + !right || + left.type === "ClassSubtraction" || + (left.type !== "ClassIntersection" && !isClassSetOperand(left)) || + !isClassSetOperand(right)) { + throw new Error("UnknownError"); + } + const node = { + type: "ClassIntersection", + parent: parent, + start, + end, + raw: this.source.slice(start, end), + left, + right, + }; + left.parent = node; + right.parent = node; + this._expressionBuffer = node; + } + onClassSubtraction(start, end) { + var _a; + const parent = this._node; + if (parent.type !== "CharacterClass" || !parent.unicodeSets) { + throw new Error("UnknownError"); + } + const right = parent.elements.pop(); + const left = (_a = this._expressionBuffer) !== null && _a !== void 0 ? _a : parent.elements.pop(); + if (!left || + !right || + left.type === "ClassIntersection" || + (left.type !== "ClassSubtraction" && !isClassSetOperand(left)) || + !isClassSetOperand(right)) { + throw new Error("UnknownError"); + } + const node = { + type: "ClassSubtraction", + parent: parent, + start, + end, + raw: this.source.slice(start, end), + left, + right, + }; + left.parent = node; + right.parent = node; + this._expressionBuffer = node; + } + onClassStringDisjunctionEnter(start) { + const parent = this._node; + if (parent.type !== "CharacterClass" || !parent.unicodeSets) { + throw new Error("UnknownError"); + } + this._node = { + type: "ClassStringDisjunction", + parent, + start, + end: start, + raw: "", + alternatives: [], + }; + parent.elements.push(this._node); + } + onClassStringDisjunctionLeave(start, end) { + const node = this._node; + if (node.type !== "ClassStringDisjunction" || + node.parent.type !== "CharacterClass") { + throw new Error("UnknownError"); + } + node.end = end; + node.raw = this.source.slice(start, end); + this._node = node.parent; + } + onStringAlternativeEnter(start) { + const parent = this._node; + if (parent.type !== "ClassStringDisjunction") { + throw new Error("UnknownError"); + } + this._node = { + type: "StringAlternative", + parent, + start, + end: start, + raw: "", + elements: [], + }; + parent.alternatives.push(this._node); + } + onStringAlternativeLeave(start, end) { + const node = this._node; + if (node.type !== "StringAlternative") { + throw new Error("UnknownError"); + } + node.end = end; + node.raw = this.source.slice(start, end); + this._node = node.parent; + } } class RegExpParser { constructor(options) { @@ -1938,9 +2487,9 @@ class RegExpParser { this._validator.validateFlags(source, start, end); return this._state.flags; } - parsePattern(source, start = 0, end = source.length, uFlag = false) { + parsePattern(source, start = 0, end = source.length, uFlagOrFlags = undefined) { this._state.source = source; - this._validator.validatePattern(source, start, end, uFlag); + this._validator.validatePattern(source, start, end, uFlagOrFlags); return this._state.pattern; } } @@ -1975,6 +2524,18 @@ class RegExpVisitor { case "CharacterSet": this.visitCharacterSet(node); break; + case "ClassIntersection": + this.visitClassIntersection(node); + break; + case "ClassStringDisjunction": + this.visitClassStringDisjunction(node); + break; + case "ClassSubtraction": + this.visitClassSubtraction(node); + break; + case "ExpressionCharacterClass": + this.visitExpressionCharacterClass(node); + break; case "Flags": this.visitFlags(node); break; @@ -1990,6 +2551,9 @@ class RegExpVisitor { case "RegExpLiteral": this.visitRegExpLiteral(node); break; + case "StringAlternative": + this.visitStringAlternative(node); + break; default: throw new Error(`Unknown type: ${node.type}`); } @@ -2066,6 +2630,44 @@ class RegExpVisitor { this._handlers.onCharacterSetLeave(node); } } + visitClassIntersection(node) { + if (this._handlers.onClassIntersectionEnter) { + this._handlers.onClassIntersectionEnter(node); + } + this.visit(node.left); + this.visit(node.right); + if (this._handlers.onClassIntersectionLeave) { + this._handlers.onClassIntersectionLeave(node); + } + } + visitClassStringDisjunction(node) { + if (this._handlers.onClassStringDisjunctionEnter) { + this._handlers.onClassStringDisjunctionEnter(node); + } + node.alternatives.forEach(this.visit, this); + if (this._handlers.onClassStringDisjunctionLeave) { + this._handlers.onClassStringDisjunctionLeave(node); + } + } + visitClassSubtraction(node) { + if (this._handlers.onClassSubtractionEnter) { + this._handlers.onClassSubtractionEnter(node); + } + this.visit(node.left); + this.visit(node.right); + if (this._handlers.onClassSubtractionLeave) { + this._handlers.onClassSubtractionLeave(node); + } + } + visitExpressionCharacterClass(node) { + if (this._handlers.onExpressionCharacterClassEnter) { + this._handlers.onExpressionCharacterClassEnter(node); + } + this.visit(node.expression); + if (this._handlers.onExpressionCharacterClassLeave) { + this._handlers.onExpressionCharacterClassLeave(node); + } + } visitFlags(node) { if (this._handlers.onFlagsEnter) { this._handlers.onFlagsEnter(node); @@ -2111,6 +2713,15 @@ class RegExpVisitor { this._handlers.onRegExpLiteralLeave(node); } } + visitStringAlternative(node) { + if (this._handlers.onStringAlternativeEnter) { + this._handlers.onStringAlternativeEnter(node); + } + node.elements.forEach(this.visit, this); + if (this._handlers.onStringAlternativeLeave) { + this._handlers.onStringAlternativeLeave(node); + } + } } function parseRegExpLiteral(source, options) { diff --git a/node_modules/@eslint-community/regexpp/index.mjs.map b/node_modules/@eslint-community/regexpp/index.mjs.map index d452207973..7e84ddf0dc 100644 --- a/node_modules/@eslint-community/regexpp/index.mjs.map +++ b/node_modules/@eslint-community/regexpp/index.mjs.map @@ -1 +1 @@ -{"version":3,"file":"index.mjs.map","sources":[".temp/unicode/src/unicode/ids.ts",".temp/unicode/src/unicode/properties.ts",".temp/unicode/src/unicode/index.ts",".temp/src/reader.ts",".temp/src/regexp-syntax-error.ts",".temp/src/validator.ts",".temp/src/parser.ts",".temp/src/visitor.ts",".temp/src/index.ts"],"sourcesContent":[null,null,null,null,null,null,null,null,null],"names":[],"mappings":";;;;AAIA,IAAI,kBAAkB,GAAyB,SAAS,CAAA;AACxD,IAAI,qBAAqB,GAAyB,SAAS,CAAA;AAErD,SAAU,SAAS,CAAC,EAAU,EAAA;IAChC,IAAI,EAAE,GAAG,IAAI;AAAE,QAAA,OAAO,KAAK,CAAA;IAC3B,IAAI,EAAE,GAAG,IAAI;AAAE,QAAA,OAAO,IAAI,CAAA;IAC1B,IAAI,EAAE,GAAG,IAAI;AAAE,QAAA,OAAO,KAAK,CAAA;IAC3B,IAAI,EAAE,GAAG,IAAI;AAAE,QAAA,OAAO,IAAI,CAAA;AAC1B,IAAA,OAAO,cAAc,CAAC,EAAE,CAAC,CAAA;AAC7B,CAAC;AAEK,SAAU,YAAY,CAAC,EAAU,EAAA;IACnC,IAAI,EAAE,GAAG,IAAI;AAAE,QAAA,OAAO,KAAK,CAAA;IAC3B,IAAI,EAAE,GA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B,CACjC,MAAc,EACd,OAAiC,EAAA;IAEjC,IAAI,eAAe,CAAC,OAAO,CAAC,CAAC,eAAe,CAAC,MAAM,CAAC,CAAA;AACxD,CAAC;AAEe,SAAA,cAAc,CAC1B,IAAc,EACd,QAAgC,EAAA;IAEhC,IAAI,aAAa,CAAC,QAAQ,CAAC,CAAC,KAAK,CAAC,IAAI,CAAC,CAAA;AAC3C;;;;"} \ No newline at end of file +{"version":3,"file":"index.mjs.map","sources":[".temp/src/ecma-versions.ts",".temp/unicode/src/unicode/ids.ts",".temp/unicode/src/unicode/properties.ts",".temp/unicode/src/unicode/index.ts",".temp/src/reader.ts",".temp/src/regexp-syntax-error.ts",".temp/unicode/src/unicode/properties-of-strings.ts",".temp/src/validator.ts",".temp/src/parser.ts",".temp/src/visitor.ts",".temp/src/index.ts"],"sourcesContent":[null,null,null,null,null,null,null,null,null,null,null],"names":[],"mappings":";;;;AAYO,MAAM,iBAAiB,GAAG,IAAI;;ACRrC,IAAI,kBAAkB,GAAyB,SAAS,CAAA;AACxD,IAAI,qBAAqB,GAAyB,SAAS,CAAA;AAErD,SAAU,SAAS,CAAC,EAAU,EAAA;IAChC,IAAI,EAAE,GAAG,IAAI;AAAE,QAAA,OAAO,KAAK,CAAA;IAC3B,IAAI,EAAE,GAAG,IAAI;AAAE,QAAA,OAAO,IAAI,CAAA;IAC1B,IAAI,EAAE,GAAG,IAAI;AAAE,QAAA,OAAO,KAAK,CAAA;IAC3B,IAAI,EAAE,GAAG,IAAI;AAAE,QAAA,OAAO,IAAI,CAAA;AAC1B,IAAA,OAAO,cAAc,CAAC,EAAE,CAAC,CAAA;AAC7B,CAAC;AAEK,SAAU,YAAY,CAAC,EAAU,EAAA;IACnC,IAAI,EAAE,GAAG,IAAI;AAAE,QAAA,OAAO,KAAK,CAAA;IAC3B,IAAI,EAAE,GAAG,IAAI;AAAE,QAAA,OAAO,IAAI,CAAA;IAC1B,IAAI,EAAE,GAAG,IAAI;AAAE,QAAA,OAAO,KAA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YAAY,CAAC,OAAO,CAAC,CAAC,YAAY,CAAC,MAAM,CAAC,MAAM,CAAC,CAAC,CAAA;AACjE,CAAC;AAOe,SAAA,qBAAqB,CACjC,MAAc,EACd,OAAiC,EAAA;IAEjC,IAAI,eAAe,CAAC,OAAO,CAAC,CAAC,eAAe,CAAC,MAAM,CAAC,CAAA;AACxD,CAAC;AAEe,SAAA,cAAc,CAC1B,IAAc,EACd,QAAgC,EAAA;IAEhC,IAAI,aAAa,CAAC,QAAQ,CAAC,CAAC,KAAK,CAAC,IAAI,CAAC,CAAA;AAC3C;;;;"} \ No newline at end of file diff --git a/node_modules/@eslint-community/regexpp/package.json b/node_modules/@eslint-community/regexpp/package.json index 1b6305bf5d..0531759b23 100644 --- a/node_modules/@eslint-community/regexpp/package.json +++ b/node_modules/@eslint-community/regexpp/package.json @@ -1,6 +1,6 @@ { "name": "@eslint-community/regexpp", - "version": "4.5.1", + "version": "4.6.2", "description": "Regular expression parser for ECMAScript.", "keywords": [ "regexp", @@ -53,10 +53,12 @@ "clean": "rimraf .temp index.*", "lint": "eslint . --ext .ts", "test": "nyc _mocha \"test/*.ts\" --reporter dot --timeout 10000", + "debug": "mocha --require ts-node/register/transpile-only \"test/*.ts\" --reporter dot --timeout 10000", "update:test": "ts-node scripts/update-fixtures.ts", "update:unicode": "run-s update:unicode:*", "update:unicode:ids": "ts-node scripts/update-unicode-ids.ts", "update:unicode:props": "ts-node scripts/update-unicode-properties.ts", + "update:test262:extract": "ts-node -T scripts/extract-test262.ts", "preversion": "npm test && npm run -s build", "postversion": "git push && git push --tags", "prewatch": "npm run -s clean", @@ -72,6 +74,7 @@ "@types/node": "^12.20.55", "dts-bundle": "^0.7.3", "eslint": "^8.31.0", + "js-tokens": "^8.0.1", "jsdom": "^19.0.0", "mocha": "^9.2.2", "npm-run-all": "^4.1.5", @@ -79,6 +82,8 @@ "rimraf": "^3.0.2", "rollup": "^2.79.1", "rollup-plugin-sourcemaps": "^0.6.3", + "test262": "git+https://github.com/tc39/test262.git", + "test262-stream": "^1.4.0", "ts-node": "^10.9.1", "typescript": "~5.0.2" }, diff --git a/node_modules/@eslint/eslintrc/package.json b/node_modules/@eslint/eslintrc/package.json index 34d92a1414..232f3b18cd 100644 --- a/node_modules/@eslint/eslintrc/package.json +++ b/node_modules/@eslint/eslintrc/package.json @@ -1,6 +1,6 @@ { "name": "@eslint/eslintrc", - "version": "2.1.0", + "version": "2.1.1", "description": "The legacy ESLintRC config file format for ESLint", "type": "module", "main": "./dist/eslintrc.cjs", diff --git a/node_modules/@eslint/js/package.json b/node_modules/@eslint/js/package.json index 9d9d9799f2..e5f79c7cc4 100644 --- a/node_modules/@eslint/js/package.json +++ b/node_modules/@eslint/js/package.json @@ -1,6 +1,6 @@ { "name": "@eslint/js", - "version": "8.44.0", + "version": "8.46.0", "description": "ESLint JavaScript language implementation", "main": "./src/index.js", "scripts": {}, diff --git a/node_modules/@eslint/js/src/configs/eslint-all.js b/node_modules/@eslint/js/src/configs/eslint-all.js index f3a415cce5..177ff92f31 100644 --- a/node_modules/@eslint/js/src/configs/eslint-all.js +++ b/node_modules/@eslint/js/src/configs/eslint-all.js @@ -172,7 +172,6 @@ module.exports = Object.freeze({ "no-restricted-properties": "error", "no-restricted-syntax": "error", "no-return-assign": "error", - "no-return-await": "error", "no-script-url": "error", "no-self-assign": "error", "no-self-compare": "error", diff --git a/node_modules/@types/sinon/README.md b/node_modules/@types/sinon/README.md index a66de51140..efa8fb759a 100755 --- a/node_modules/@types/sinon/README.md +++ b/node_modules/@types/sinon/README.md @@ -8,7 +8,7 @@ This package contains type definitions for Sinon (https://sinonjs.org). Files were exported from https://github.com/DefinitelyTyped/DefinitelyTyped/tree/master/types/sinon. ### Additional Details - * Last updated: Sun, 14 May 2023 04:32:51 GMT + * Last updated: Tue, 01 Aug 2023 09:02:50 GMT * Dependencies: [@types/sinonjs__fake-timers](https://npmjs.com/package/@types/sinonjs__fake-timers) * Global values: `sinon` diff --git a/node_modules/@types/sinon/index.d.ts b/node_modules/@types/sinon/index.d.ts index af919c4d13..fb9eff6611 100755 --- a/node_modules/@types/sinon/index.d.ts +++ b/node_modules/@types/sinon/index.d.ts @@ -775,7 +775,7 @@ declare namespace Sinon { } interface SinonMockStatic { - (): SinonExpectation; + (name?: string): SinonExpectation; /** * Creates a mock for the provided object. * Does not change the object, but returns a mock object to set expectations on the object’s methods. diff --git a/node_modules/@types/sinon/package.json b/node_modules/@types/sinon/package.json index c01954f185..fcb501bf92 100755 --- a/node_modules/@types/sinon/package.json +++ b/node_modules/@types/sinon/package.json @@ -1,6 +1,6 @@ { "name": "@types/sinon", - "version": "10.0.15", + "version": "10.0.16", "description": "TypeScript definitions for Sinon", "homepage": "https://github.com/DefinitelyTyped/DefinitelyTyped/tree/master/types/sinon", "license": "MIT", @@ -57,6 +57,6 @@ "dependencies": { "@types/sinonjs__fake-timers": "*" }, - "typesPublisherContentHash": "c87e5ef382887bbdb8c25d070fd87c515977fd4e28b3d8cf4293c673f5e33f2e", + "typesPublisherContentHash": "80a97a78fae8ba4177fdc4c2d9cb72ff3c90b9c29fbc7c54a1ecaa647e7128ed", "typeScriptVersion": "4.3" } \ No newline at end of file diff --git a/node_modules/@typescript-eslint/eslint-plugin/dist/rules/consistent-type-imports.js b/node_modules/@typescript-eslint/eslint-plugin/dist/rules/consistent-type-imports.js index 7d6b4147b9..d2b4ff1b2a 100644 --- a/node_modules/@typescript-eslint/eslint-plugin/dist/rules/consistent-type-imports.js +++ b/node_modules/@typescript-eslint/eslint-plugin/dist/rules/consistent-type-imports.js @@ -231,27 +231,21 @@ exports.default = util.createRule({ data: { typeImports }, }; } - else { - return { - messageId: 'aImportIsOnlyTypes', - data: { typeImports }, - }; - } + return { + messageId: 'aImportIsOnlyTypes', + data: { typeImports }, + }; } - else { - if (isTypeImport) { - return { - messageId: 'someImportsInDecoMeta', - data: { typeImports }, // typeImports are all the value specifiers that are in the type position - }; - } - else { - return { - messageId: 'someImportsAreOnlyTypes', - data: { typeImports }, // typeImports are all the type specifiers in the value position - }; - } + if (isTypeImport) { + return { + messageId: 'someImportsInDecoMeta', + data: { typeImports }, // typeImports are all the value specifiers that are in the type position + }; } + return { + messageId: 'someImportsAreOnlyTypes', + data: { typeImports }, // typeImports are all the type specifiers in the value position + }; })(); context.report({ node: report.node, diff --git a/node_modules/@typescript-eslint/eslint-plugin/dist/rules/consistent-type-imports.js.map b/node_modules/@typescript-eslint/eslint-plugin/dist/rules/consistent-type-imports.js.map index 013fa908d2..4271369b66 100644 --- a/node_modules/@typescript-eslint/eslint-plugin/dist/rules/consistent-type-imports.js.map +++ b/node_modules/@typescript-eslint/eslint-plugin/dist/rules/consistent-type-imports.js.map @@ -1 +1 @@ -{"version":3,"file":"consistent-type-imports.js","sourceRoot":"","sources":["../../src/rules/consistent-type-imports.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;AACA,oDAA0D;AAE1D,8CAAgC;AAuChC,kBAAe,IAAI,CAAC,UAAU,CAAsB;IAClD,IAAI,EAAE,yBAAyB;IAC/B,IAAI,EAAE;QACJ,IAAI,EAAE,YAAY;QAClB,IAAI,EAAE;YACJ,WAAW,EAAE,0CAA0C;SACxD;QACD,QAAQ,EAAE;YACR,aAAa,EACX,2EAA2E;YAC7E,uBAAuB,EACrB,iDAAiD;YACnD,kBAAkB,EAAE,+CAA+C;YACnE,qBAAqB,EACnB,8DAA8D;YAChE,iBAAiB,EACf,4DAA4D;YAC9D,aAAa,EAAE,8CAA8C;YAC7D,uBAAuB,EAAE,4CAA4C;SACtE;QACD,MAAM,EAAE;YACN;gBACE,IAAI,EAAE,QAAQ;gBACd,UAAU,EAAE;oBACV,MAAM,EAAE;wBACN,IAAI,EAAE,QAAQ;wBACd,IAAI,EAAE,CAAC,cAAc,EAAE,iBAAiB,CAAC;qBAC1C;oBACD,uBAAuB,EAAE;wBACvB,IAAI,EAAE,SAAS;qBAChB;oBACD,QAAQ,EAAE;wBACR,IAAI,EAAE,QAAQ;wBACd,IAAI,EAAE,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C,KAAK,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC;QACrE,CAAC;IACH,CAAC;CACF,CAAC,CAAC"} \ No newline at end of file +{"version":3,"file":"consistent-type-imports.js","sourceRoot":"","sources":["../../src/rules/consistent-type-imports.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;AACA,oDAA0D;AAE1D,8CAAgC;AAuChC,kBAAe,IAAI,CAAC,UAAU,CAAsB;IAClD,IAAI,EAAE,yBAAyB;IAC/B,IAAI,EAAE;QACJ,IAAI,EAAE,YAAY;QAClB,IAAI,EAAE;YACJ,WAAW,EAAE,0CAA0C;SACxD;QACD,QAAQ,EAAE;YACR,aAAa,EACX,2EAA2E;YAC7E,uBAAuB,EACrB,iDAAiD;YACnD,kBAAkB,EAAE,+CAA+C;YACnE,qBAAqB,EACnB,8DAA8D;YAChE,iBAAiB,EACf,4DAA4D;YAC9D,aAAa,EAAE,8CAA8C;YAC7D,uBAAuB,EAAE,4CAA4C;SACtE;QACD,MAAM,EAAE;YACN;gBACE,IAAI,EAAE,QAAQ;gBACd,UAAU,EAAE;oBACV,MAAM,EAAE;wBACN,IAAI,EAAE,QAAQ;wBACd,IAAI,EAAE,CAAC,cAAc,EAAE,iBAAiB,CAAC;qBAC1C;oBACD,uBAAuB,EAAE;wBACvB,IAAI,EAAE,SAAS;qBAChB;oBACD,QAAQ,EAAE;wBACR,IAAI,EAAE,QAAQ;wBACd,IAAI,EAAE,CAAC,uBAAuB,EAAE,qBAAqB,CAAC;qBACvD;iBACF;gBACD,oBAAoB,EAAE,KAAK;aAC5B;SACF;QACD,OAAO,EAAE,MAAM;KAChB;IAED,cAAc,EAAE;QACd;YACE,MAAM,EAAE,cAAc;YACtB,uBAAuB,EAAE,IAAI;YAC7B,QAAQ,EAAE,uBAAuB;SAClC;KACF;IAED,MAAM,CAAC,OAAO,EAAE,CAAC,MAAM,CAAC;QACtB,MAAM,MAAM,GAAG,MAAM,CAAC,MAAM,IAAI,cAAc,CAAC;Q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AAI,EAAE,CAAC,EAC9D,IAAI,CAAC,iBAAiB,CAAC,YAAY,CAAC,WAAW,EAAE,IAAI,CAAC,IAAI,CAAC,CAC5D,CAAC;YACF,MAAM,KAAK,CAAC,WAAW,CAAC,CAAC,SAAS,CAAC,KAAK,CAAC,CAAC,CAAC,EAAE,UAAU,CAAC,KAAK,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC;QACrE,CAAC;QAED,QAAQ,CAAC,CAAC,yCAAyC,CACjD,KAAyB,EACzB,IAA8B;YAE9B,iCAAiC;YACjC,uBAAuB;YACvB,MAAM,SAAS,GAAG,IAAI,CAAC,UAAU,CAC/B,UAAU,CAAC,aAAa,CAAC,IAAI,EAAE,IAAI,CAAC,aAAa,CAAC,EAClD,IAAI,CAAC,iBAAiB,CAAC,YAAY,CAAC,MAAM,EAAE,IAAI,CAAC,IAAI,CAAC,CACvD,CAAC;YACF,MAAM,UAAU,GAAG,IAAI,CAAC,UAAU,CAChC,UAAU,CAAC,aAAa,CAAC,SAAS,EAAE,EAAE,eAAe,EAAE,IAAI,EAAE,CAAC,EAC9D,IAAI,CAAC,iBAAiB,CAAC,YAAY,CAAC,WAAW,EAAE,IAAI,CAAC,IAAI,CAAC,CAC5D,CAAC;YACF,MAAM,KAAK,CAAC,WAAW,CAAC,CAAC,SAAS,CAAC,KAAK,CAAC,CAAC,CAAC,EAAE,UAAU,CAAC,KAAK,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC;QACrE,CAAC;IACH,CAAC;CACF,CAAC,CAAC"} \ No newline at end of file diff --git a/node_modules/@typescript-eslint/eslint-plugin/dist/rules/indent.js b/node_modules/@typescript-eslint/eslint-plugin/dist/rules/indent.js index c449f033fc..567e84f384 100644 --- a/node_modules/@typescript-eslint/eslint-plugin/dist/rules/indent.js +++ b/node_modules/@typescript-eslint/eslint-plugin/dist/rules/indent.js @@ -162,21 +162,19 @@ exports.default = util.createRule({ ...base, }; } - else { - return { - type, - accessibility: undefined, - declare: false, - decorators: [], - definite: false, - optional: false, - override: false, - readonly: false, - static: false, - typeAnnotation: undefined, - ...base, - }; - } + return { + type, + accessibility: undefined, + declare: false, + decorators: [], + definite: false, + optional: false, + override: false, + readonly: false, + static: false, + typeAnnotation: undefined, + ...base, + }; } return Object.assign({}, rules, { // overwrite the base rule here so we can use our KNOWN_NODES list instead diff --git a/node_modules/@typescript-eslint/eslint-plugin/dist/rules/indent.js.map b/node_modules/@typescript-eslint/eslint-plugin/dist/rules/indent.js.map index c61b1b169a..119741f7aa 100644 --- a/node_modules/@typescript-eslint/eslint-plugin/dist/rules/indent.js.map +++ b/node_modules/@typescript-eslint/eslint-plugin/dist/rules/indent.js.map @@ -1 +1 @@ -{"version":3,"file":"indent.js","sourceRoot":"","sources":["../../src/rules/indent.ts"],"names":[],"mappings":";AAAA;;;;GAIG;AACH,iGAAiG;;;;;;;;;;;;;;;;;;;;;;;;;AAGjG,oDAA0D;AAE1D,8CAAgC;AAChC,iEAA8D;AAE9D,MAAM,QAAQ,GAAG,IAAA,qCAAiB,EAAC,QAAQ,CAAC,CAAC;AAK7C,MAAM,WAAW,GAAG,IAAI,GAAG,CAAC;IAC1B,qDAAqD;IACrD,sBAAc,CAAC,kBAAkB;IAEjC,cAAc;IACd,sBAAc,CAAC,iBAAiB;IAChC,sBAAc,CAAC,YAAY;IAC3B,sBAAc,CAAC,gBAAgB;IAC/B,sBAAc,CAAC,cAAc;IAC7B,sBAAc,CAAC,eAAe;IAC9B,sBAAc,CAAC,eAAe;IAC9B,sBAAc,CAAC,eAAe;IAC9B,sBAAc,CAAC,kBAAkB;IACjC,sBAAc,CAAC,gBAAgB;IAC/B,sBAAc,CAAC,aAAa;IAC5B,sBAAc,CAAC,aAAa;IAE5B,uCAAuC;IACvC,sBAAc,CAAC,4BAA4B;IAC3C,sBAAc,CAAC,0BAA0B;IACzC,sBAAc,CAAC,WAAW;IAC1B,sBAAc,CAAC,cAAc;IAC7B,sBAAc,CAAC,0BAA0B;IACzC,sBAAc,CAAC,iB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KAAK,CAAC,+BAA+B,CAAC,CAAC;oBAC5C,IAAI,EAAE,sBAAc,CAAC,eAAe;oBACpC,QAAQ,EAAE,IAAI,CAAC,YAAmB;oBAElC,gBAAgB;oBAChB,MAAM,EAAE,IAAI,CAAC,MAAM;oBACnB,KAAK,EAAE,IAAI,CAAC,KAAK;oBACjB,GAAG,EAAE,IAAI,CAAC,GAAG;iBACd,CAAC,CAAC;YACL,CAAC;YAED,0BAA0B,CAAC,IAAyC;gBAClE,IAAI,CAAC,IAAI,CAAC,MAAM,CAAC,MAAM,EAAE;oBACvB,OAAO;iBACR;gBAED,MAAM,CAAC,IAAI,EAAE,GAAG,UAAU,CAAC,GAAG,IAAI,CAAC,MAAM,CAAC;gBAE1C,iEAAiE;gBACjE,iCAAiC;gBACjC,OAAO,KAAK,CAAC,iBAAiB,CAAC;oBAC7B,IAAI,EAAE,sBAAc,CAAC,iBAAiB;oBACtC,WAAW,EAAE,KAAK;oBAClB,IAAI,EAAE,IAAW;oBACjB,UAAU,EAAE,UAAiB;oBAC7B,aAAa,EAAE,SAAS;oBACxB,cAAc,EAAE,SAAS;oBAEzB,gBAAgB;oBAChB,MAAM,EAAE,IAAI,CAAC,MAAM;oBACnB,KAAK,EAAE,IAAI,CAAC,KAAK;oBACjB,GAAG,EAAE,IAAI,CAAC,GAAG;iBACd,CAAC,CAAC;YACL,CAAC;SACF,CAAC,CAAC;IACL,CAAC;CACF,CAAC,CAAC"} \ No newline at end of file +{"version":3,"file":"indent.js","sourceRoot":"","sources":["../../src/rules/indent.ts"],"names":[],"mappings":";AAAA;;;;GAIG;AACH,iGAAiG;;;;;;;;;;;;;;;;;;;;;;;;;AAGjG,oDAA0D;AAE1D,8CAAgC;AAChC,iEAA8D;AAE9D,MAAM,QAAQ,GAAG,IAAA,qCAAiB,EAAC,QAAQ,CAAC,CAAC;AAK7C,MAAM,WAAW,GAAG,IAAI,GAAG,CAAC;IAC1B,qDAAqD;IACrD,sBAAc,CAAC,kBAAkB;IAEjC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,CAAC,KAAK;oBACjB,GAAG,EAAE,IAAI,CAAC,GAAG;iBACd,CAAC,CAAC;YACL,CAAC;SACF,CAAC,CAAC;IACL,CAAC;CACF,CAAC,CAAC"} \ No newline at end of file diff --git a/node_modules/@typescript-eslint/eslint-plugin/dist/rules/key-spacing.js b/node_modules/@typescript-eslint/eslint-plugin/dist/rules/key-spacing.js index 168b7b2f32..ce6eb2b44c 100644 --- a/node_modules/@typescript-eslint/eslint-plugin/dist/rules/key-spacing.js +++ b/node_modules/@typescript-eslint/eslint-plugin/dist/rules/key-spacing.js @@ -116,9 +116,7 @@ exports.default = util.createRule({ typeAnnotation.range[0], ]); } - else { - return fixer.insertTextBefore(typeAnnotation, ' '.repeat(-difference)); - } + return fixer.insertTextBefore(typeAnnotation, ' '.repeat(-difference)); }, data: { computed: '', @@ -143,9 +141,7 @@ exports.default = util.createRule({ typeAnnotation.typeAnnotation.range[0], ]); } - else { - return fixer.insertTextBefore(typeAnnotation.typeAnnotation, ' '.repeat(-difference)); - } + return fixer.insertTextBefore(typeAnnotation.typeAnnotation, ' '.repeat(-difference)); }, data: { computed: '', @@ -250,9 +246,7 @@ exports.default = util.createRule({ toCheck.range[0], ]); } - else { - return fixer.insertTextBefore(toCheck, ' '.repeat(-difference)); - } + return fixer.insertTextBefore(toCheck, ' '.repeat(-difference)); }, data: { computed: '', diff --git a/node_modules/@typescript-eslint/eslint-plugin/dist/rules/key-spacing.js.map b/node_modules/@typescript-eslint/eslint-plugin/dist/rules/key-spacing.js.map index 904e9af08e..28065eb759 100644 --- a/node_modules/@typescript-eslint/eslint-plugin/dist/rules/key-spacing.js.map +++ b/node_modules/@typescript-eslint/eslint-plugin/dist/rules/key-spacing.js.map @@ -1 +1 @@ -{"version":3,"file":"key-spacing.js","sourceRoot":"","sources":["../../src/rules/key-spacing.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;AACA,oDAA0D;AAE1D,8CAAgC;AAChC,iEAA8D;AAE9D,MAAM,QAA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AAI,IAAI,iBAAiB,EAAE;gBACpC,mBAAmB,CAAC,IAAI,EAAE,EAAE,UAAU,EAAE,YAAY,EAAE,CAAC,CAAC;aACzD;QACH,CAAC;QACD,OAAO;YACL,GAAG,SAAS;YACZ,aAAa,EAAE,YAAY;YAC3B,eAAe,EAAE,YAAY;YAC7B,SAAS,EAAE,YAAY;SACxB,CAAC;IACJ,CAAC;CACF,CAAC,CAAC"} \ No newline at end of file diff --git a/node_modules/@typescript-eslint/eslint-plugin/dist/rules/no-floating-promises.js b/node_modules/@typescript-eslint/eslint-plugin/dist/rules/no-floating-promises.js index d68af20e97..87f70ffcc8 100644 --- a/node_modules/@typescript-eslint/eslint-plugin/dist/rules/no-floating-promises.js +++ b/node_modules/@typescript-eslint/eslint-plugin/dist/rules/no-floating-promises.js @@ -101,12 +101,10 @@ exports.default = util.createRule({ if (isHigherPrecedenceThanUnary(tsNode)) { return fixer.insertTextBefore(node, 'void '); } - else { - return [ - fixer.insertTextBefore(node, 'void ('), - fixer.insertTextAfterRange([expression.range[1], expression.range[1]], ')'), - ]; - } + return [ + fixer.insertTextBefore(node, 'void ('), + fixer.insertTextAfterRange([expression.range[1], expression.range[1]], ')'), + ]; }, }, ], @@ -130,12 +128,10 @@ exports.default = util.createRule({ if (isHigherPrecedenceThanUnary(tsNode)) { return fixer.insertTextBefore(node, 'await '); } - else { - return [ - fixer.insertTextBefore(node, 'await ('), - fixer.insertTextAfterRange([expression.range[1], expression.range[1]], ')'), - ]; - } + return [ + fixer.insertTextBefore(node, 'await ('), + fixer.insertTextAfterRange([expression.range[1], expression.range[1]], ')'), + ]; }, }, ], @@ -195,18 +191,14 @@ exports.default = util.createRule({ if (isValidRejectionHandler(catchRejectionHandler)) { return { isUnhandled: false }; } - else { - return { isUnhandled: true, nonFunctionHandler: true }; - } + return { isUnhandled: true, nonFunctionHandler: true }; } const thenRejectionHandler = getRejectionHandlerFromThenCall(node); if (thenRejectionHandler) { if (isValidRejectionHandler(thenRejectionHandler)) { return { isUnhandled: false }; } - else { - return { isUnhandled: true, nonFunctionHandler: true }; - } + return { isUnhandled: true, nonFunctionHandler: true }; } // `x.finally()` is transparent to resolution of the promise, so check `x`. // ("object" in this context is the `x` in `x.finally()`) @@ -224,9 +216,7 @@ exports.default = util.createRule({ if (alternateResult.isUnhandled) { return alternateResult; } - else { - return isUnhandledPromise(checker, node.consequent); - } + return isUnhandledPromise(checker, node.consequent); } else if (node.type === utils_1.AST_NODE_TYPES.MemberExpression || node.type === utils_1.AST_NODE_TYPES.Identifier || @@ -241,9 +231,7 @@ exports.default = util.createRule({ if (leftResult.isUnhandled) { return leftResult; } - else { - return isUnhandledPromise(checker, node.right); - } + return isUnhandledPromise(checker, node.right); } // We conservatively return false for all other types of expressions because // we don't want to accidentally fail if the promise is handled internally but @@ -296,9 +284,7 @@ function getRejectionHandlerFromCatchCall(expression) { expression.arguments.length >= 1) { return expression.arguments[0]; } - else { - return undefined; - } + return undefined; } function getRejectionHandlerFromThenCall(expression) { if (expression.callee.type === utils_1.AST_NODE_TYPES.MemberExpression && @@ -307,9 +293,7 @@ function getRejectionHandlerFromThenCall(expression) { expression.arguments.length >= 2) { return expression.arguments[1]; } - else { - return undefined; - } + return undefined; } function getObjectFromFinallyCall(expression) { return expression.callee.type === utils_1.AST_NODE_TYPES.MemberExpression && diff --git a/node_modules/@typescript-eslint/eslint-plugin/dist/rules/no-floating-promises.js.map b/node_modules/@typescript-eslint/eslint-plugin/dist/rules/no-floating-promises.js.map index 2d3d260a7e..1d258d17b9 100644 --- a/node_modules/@typescript-eslint/eslint-plugin/dist/rules/no-floating-promises.js.map +++ b/node_modules/@typescript-eslint/eslint-plugin/dist/rules/no-floating-promises.js.map @@ -1 +1 @@ -{"version":3,"file":"no-floating-promises.js","sourceRoot":"","sources":["../../src/rules/no-floating-promises.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;AACA,oDAA0D;AAC1D,sDAAwC;AACxC,+CAAiC;AAEjC,8CAAgC;AAChC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nC,IACE,UAAU,CAAC,MAAM,CAAC,IAAI,KAAK,sBAAc,CAAC,gBAAgB;QAC1D,UAAU,CAAC,MAAM,CAAC,QAAQ,CAAC,IAAI,KAAK,sBAAc,CAAC,UAAU;QAC7D,UAAU,CAAC,MAAM,CAAC,QAAQ,CAAC,IAAI,KAAK,OAAO;QAC3C,UAAU,CAAC,SAAS,CAAC,MAAM,IAAI,CAAC,EAChC;QACA,OAAO,UAAU,CAAC,SAAS,CAAC,CAAC,CAAC,CAAC;KAChC;SAAM;QACL,OAAO,SAAS,CAAC;KAClB;AACH,CAAC;AAED,SAAS,+BAA+B,CACtC,UAAmC;IAEnC,IACE,UAAU,CAAC,MAAM,CAAC,IAAI,KAAK,sBAAc,CAAC,gBAAgB;QAC1D,UAAU,CAAC,MAAM,CAAC,QAAQ,CAAC,IAAI,KAAK,sBAAc,CAAC,UAAU;QAC7D,UAAU,CAAC,MAAM,CAAC,QAAQ,CAAC,IAAI,KAAK,MAAM;QAC1C,UAAU,CAAC,SAAS,CAAC,MAAM,IAAI,CAAC,EAChC;QACA,OAAO,UAAU,CAAC,SAAS,CAAC,CAAC,CAAC,CAAC;KAChC;SAAM;QACL,OAAO,SAAS,CAAC;KAClB;AACH,CAAC;AAED,SAAS,wBAAwB,CAC/B,UAAmC;IAEnC,OAAO,UAAU,CAAC,MAAM,CAAC,IAAI,KAAK,sBAAc,CAAC,gBAAgB;QAC/D,UAAU,CAAC,MAAM,CAAC,QAAQ,CAAC,IAAI,KAAK,sBAAc,CAAC,UAAU;QAC7D,UAAU,CAAC,MAAM,CAAC,QAAQ,CAAC,IAAI,KAAK,SAAS;QAC7C,CAAC,CAAC,UAAU,CAAC,MAAM,CAAC,MAAM;QAC1B,CAAC,CAAC,SAAS,CAAC;AAChB,CAAC"} \ No newline at end of file +{"version":3,"file":"no-floating-promises.js","sourceRoot":"","sources":["../../src/rules/no-floating-promises.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;AACA,oDAA0D;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CAAC,IAAI,KAAK,sBAAc,CAAC,gBAAgB;QAC1D,UAAU,CAAC,MAAM,CAAC,QAAQ,CAAC,IAAI,KAAK,sBAAc,CAAC,UAAU;QAC7D,UAAU,CAAC,MAAM,CAAC,QAAQ,CAAC,IAAI,KAAK,OAAO;QAC3C,UAAU,CAAC,SAAS,CAAC,MAAM,IAAI,CAAC,EAChC;QACA,OAAO,UAAU,CAAC,SAAS,CAAC,CAAC,CAAC,CAAC;KAChC;IACD,OAAO,SAAS,CAAC;AACnB,CAAC;AAED,SAAS,+BAA+B,CACtC,UAAmC;IAEnC,IACE,UAAU,CAAC,MAAM,CAAC,IAAI,KAAK,sBAAc,CAAC,gBAAgB;QAC1D,UAAU,CAAC,MAAM,CAAC,QAAQ,CAAC,IAAI,KAAK,sBAAc,CAAC,UAAU;QAC7D,UAAU,CAAC,MAAM,CAAC,QAAQ,CAAC,IAAI,KAAK,MAAM;QAC1C,UAAU,CAAC,SAAS,CAAC,MAAM,IAAI,CAAC,EAChC;QACA,OAAO,UAAU,CAAC,SAAS,CAAC,CAAC,CAAC,CAAC;KAChC;IACD,OAAO,SAAS,CAAC;AACnB,CAAC;AAED,SAAS,wBAAwB,CAC/B,UAAmC;IAEnC,OAAO,UAAU,CAAC,MAAM,CAAC,IAAI,KAAK,sBAAc,CAAC,gBAAgB;QAC/D,UAAU,CAAC,MAAM,CAAC,QAAQ,CAAC,IAAI,KAAK,sBAAc,CAAC,UAAU;QAC7D,UAAU,CAAC,MAAM,CAAC,QAAQ,CAAC,IAAI,KAAK,SAAS;QAC7C,CAAC,CAAC,UAAU,CAAC,MAAM,CAAC,MAAM;QAC1B,CAAC,CAAC,SAAS,CAAC;AAChB,CAAC"} \ No newline at end of file diff --git a/node_modules/@typescript-eslint/eslint-plugin/dist/rules/no-inferrable-types.js b/node_modules/@typescript-eslint/eslint-plugin/dist/rules/no-inferrable-types.js index 478b973464..0781c01d54 100644 --- a/node_modules/@typescript-eslint/eslint-plugin/dist/rules/no-inferrable-types.js +++ b/node_modules/@typescript-eslint/eslint-plugin/dist/rules/no-inferrable-types.js @@ -179,10 +179,15 @@ exports.default = util.createRule({ if (ignoreParameters || !node.params) { return; } - node.params.filter(param => param.type === utils_1.AST_NODE_TYPES.AssignmentPattern && - param.left && - param.right).forEach(param => { - reportInferrableType(param, param.left.typeAnnotation, param.right); + node.params.forEach(param => { + if (param.type === utils_1.AST_NODE_TYPES.TSParameterProperty) { + param = param.parameter; + } + if (param.type === utils_1.AST_NODE_TYPES.AssignmentPattern && + param.left && + param.right) { + reportInferrableType(param, param.left.typeAnnotation, param.right); + } }); } function inferrablePropertyVisitor(node) { diff --git a/node_modules/@typescript-eslint/eslint-plugin/dist/rules/no-inferrable-types.js.map b/node_modules/@typescript-eslint/eslint-plugin/dist/rules/no-inferrable-types.js.map index 81e5ff0f55..953464cb43 100644 --- a/node_modules/@typescript-eslint/eslint-plugin/dist/rules/no-inferrable-types.js.map +++ b/node_modules/@typescript-eslint/eslint-plugin/dist/rules/no-inferrable-types.js.map @@ -1 +1 @@ -{"version":3,"file":"no-inferrable-types.js","sourceRoot":"","sources":["../../src/rules/no-inferrable-types.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;AAEA,oDAA0D;AAE1D,8CAAgC;AAUhC,kBAAe,IAAI,CAAC,UAAU,CAAsB;IAClD,IAAI,EAAE,qBAAqB;IAC3B,IAAI,EAAE;QACJ,IAAI,EAAE,YAAY;QAClB,IAAI,EAAE;YACJ,WAAW,EACT,6GAA6G;YAC/G,WAAW,EAAE,WAAW;SACzB;QACD,OAAO,EAAE,MAAM;QACf,QAAQ,EAAE;YACR,gBAAgB,EACd,mFAAmF;SACtF;QACD,MAAM,EAAE;YACN;gBACE,IAAI,EAAE,QAAQ;gBACd,UAAU,EAAE;oBACV,gBAAgB,EAAE;wBAChB,IAAI,EAAE,SAAS;qBAChB;oBACD,gBAAgB,EAAE;wBAChB,IAAI,EAAE,SAAS;qBAChB;iBACF;gBACD,oBAAoB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AAE,IAAI,CAAC,EAAE,CAAC,cAAc,EAAE,IAAI,CAAC,IAAI,CAAC,CAAC;QAChE,CAAC;QAED,SAAS,0BAA0B,CACjC,IAG+B;YAE/B,IAAI,gBAAgB,IAAI,CAAC,IAAI,CAAC,MAAM,EAAE;gBACpC,OAAO;aACR;YAEC,IAAI,CAAC,MAAM,CAAC,MAAM,CAChB,KAAK,CAAC,EAAE,CACN,KAAK,CAAC,IAAI,KAAK,sBAAc,CAAC,iBAAiB;gBAC/C,KAAK,CAAC,IAAI;gBACV,KAAK,CAAC,KAAK,CAEhB,CAAC,OAAO,CAAC,KAAK,CAAC,EAAE;gBAChB,oBAAoB,CAAC,KAAK,EAAE,KAAK,CAAC,IAAI,CAAC,cAAc,EAAE,KAAK,CAAC,KAAK,CAAC,CAAC;YACtE,CAAC,CAAC,CAAC;QACL,CAAC;QAED,SAAS,yBAAyB,CAChC,IAAiC;YAEjC,6DAA6D;YAC7D,iDAAiD;YACjD,sDAAsD;YACtD,0CAA0C;YAC1C,IAAI,gBAAgB,IAAI,IAAI,CAAC,QAAQ,IAAI,IAAI,CAAC,QAAQ,EAAE;gBACtD,OAAO;aACR;YACD,oBAAoB,CAAC,IAAI,EAAE,IAAI,CAAC,cAAc,EAAE,IAAI,CAAC,KAAK,CAAC,CAAC;QAC9D,CAAC;QAED,OAAO;YACL,kBAAkB,EAAE,yBAAyB;YAC7C,kBAAkB,EAAE,0BAA0B;YAC9C,mBAAmB,EAAE,0BAA0B;YAC/C,uBAAuB,EAAE,0BAA0B;YACnD,kBAAkB,EAAE,yBAAyB;SAC9C,CAAC;IACJ,CAAC;CACF,CAAC,CAAC"} \ No newline at end of file +{"version":3,"file":"no-inferrable-types.js","sourceRoot":"","sources":["../../src/rules/no-inferrable-types.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;AAEA,oDAA0D;AAE1D,8CAAgC;AAUhC,kBAAe,IAAI,CAAC,UAAU,CAAsB;IAClD,IAAI,EAAE,qBAAq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C,cAAc,EAAE,IAAI,CAAC,KAAK,CAAC,CAAC;QAC9D,CAAC;QAED,OAAO;YACL,kBAAkB,EAAE,yBAAyB;YAC7C,kBAAkB,EAAE,0BAA0B;YAC9C,mBAAmB,EAAE,0BAA0B;YAC/C,uBAAuB,EAAE,0BAA0B;YACnD,kBAAkB,EAAE,yBAAyB;SAC9C,CAAC;IACJ,CAAC;CACF,CAAC,CAAC"} \ No newline at end of file diff --git a/node_modules/@typescript-eslint/eslint-plugin/dist/rules/no-shadow.js b/node_modules/@typescript-eslint/eslint-plugin/dist/rules/no-shadow.js index 541673310f..5b3b1e8b3b 100644 --- a/node_modules/@typescript-eslint/eslint-plugin/dist/rules/no-shadow.js +++ b/node_modules/@typescript-eslint/eslint-plugin/dist/rules/no-shadow.js @@ -401,11 +401,9 @@ exports.default = util.createRule({ column: identifier.loc.start.column + 1, }; } - else { - return { - global: true, - }; - } + return { + global: true, + }; } /** * Checks the current context for shadowed variables. diff --git a/node_modules/@typescript-eslint/eslint-plugin/dist/rules/no-shadow.js.map b/node_modules/@typescript-eslint/eslint-plugin/dist/rules/no-shadow.js.map index ad1b542642..7c9ff5f23c 100644 --- a/node_modules/@typescript-eslint/eslint-plugin/dist/rules/no-shadow.js.map +++ b/node_modules/@typescript-eslint/eslint-plugin/dist/rules/no-shadow.js.map @@ -1 +1 @@ -{"version":3,"file":"no-shadow.js","sourceRoot":"","sources":["../../src/rules/no-shadow.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;AAIA,oEAA6E;AAE7E,oDAAoE;AAEpE,8CAAgC;AAchC,MAAM,+BAA+B,GAAG,IAAI,GAAG,CAAC;IAC9C,sBAAc,CAAC,0BAA0B;IACzC,sBAAc,CAAC,cAAc;IAC7B,sBAAc,CAAC,iBAAiB;CACjC,CAAC,CAAC;AAEH,kBAAe,IAAI,CAAC,UAAU,CAAsB;IAClD,IAAI,EAAE,WAAW;IACjB,IAAI,EAAE;QACJ,IAAI,EAAE,YAAY;QA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CAAC;oBACjC,eAAe,CAAC,KAAK,CAAC,CAAC;iBACxB;YACH,CAAC;SACF,CAAC;IACJ,CAAC;CACF,CAAC,CAAC"} \ No newline at end of file +{"version":3,"file":"no-shadow.js","sourceRoot":"","sources":["../../src/rules/no-shadow.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;AAIA,oEAA6E;AAE7E,oDAAoE;AAEpE,8CAAgC;AAchC,MAAM,+BAA+B,GAAG,IAAI,GAAG,CAAC;IAC9C,sBAAc,CAAC,0BAA0B;IACzC,sBAAc,CAAC,cAAc;IAC7B,sBAAc,CAAC,iBAAiB;CACjC,CAAC,CAAC;AAEH,kBAAe,IAAI,CAAC,UAAU,CAAsB;IAClD,IAAI,EAAE,WAAW;IACjB,IAAI,EAAE;QACJ,IAAI,EAAE,YAAY;QAClB,IAAI,EAAE;YACJ,WAAW,EACT,qFAAqF;YACvF,eAAe,EAAE,IAAI;SACtB;QACD,MAAM,EAAE;YACN;gBACE,IAAI,EAAE,QAAQ;gBACd,UAAU,EAAE;oBACV,cAAc,EAAE;wBACd,IAAI,EAAE,SAAS;qBAChB;oBACD,KAAK,EAAE;wBACL,IAAI,EAAE,QAAQ;wBACd,IAAI,EAAE,CAAC,KAAK,EAAE,WAAW,EAAE,OAAO,CAAC;qBACpC;oBACD,KAAK,EAAE;wBACL,IAAI,EAAE,OAAO;wBACb,KAAK,EAAE;4BACL,IAAI,EAAE,QAAQ;yBACf;qBACF;oBACD,sBAAsB,EAAE;wBACtB,IAAI,EAAE,SAAS;qBAChB;oBACD,qBAAqB,EAAE;wBACrB,IAAI,EAAE,SAAS;qBAChB;oBACD,0CAA0C,EAAE;wBAC1C,IAAI,EAAE,SAAS;qBAChB;iBACF;gBACD,oBAAoB,EAAE,KAAK;aAC5B;SACF;QACD,QAAQ,EAAE;YACR,QAAQ,EACN,uGAAuG;YACzG,cAAc,EAAE,0CAA0C;SAC3D;KACF;IACD,cAAc,EAAE;QACd;YACE,KAAK,EAAE,E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;gCACrB,IAAI,EAAE;oCACJ,IAAI,EAAE,QAAQ,CAAC,IAAI;oCACnB,YAAY,EAAE,QAAQ,CAAC,IAAI;oCAC3B,cAAc,EAAE,QAAQ,CAAC,MAAM;iCAChC;6BACF,CAAC;qBACP,CAAC,CAAC;iBACJ;aACF;QACH,CAAC;QAED,OAAO;YACL,cAAc;gBACZ,MAAM,WAAW,GAAG,OAAO,CAAC,QAAQ,EAAE,CAAC;gBACvC,MAAM,KAAK,GAAG,WAAW,CAAC,WAAW,CAAC,KAAK,EAAE,CAAC;gBAE9C,OAAO,KAAK,CAAC,MAAM,EAAE;oBACnB,MAAM,KAAK,GAAG,KAAK,CAAC,GAAG,EAAG,CAAC;oBAE3B,KAAK,CAAC,IAAI,CAAC,GAAG,KAAK,CAAC,WAAW,CAAC,CAAC;oBACjC,eAAe,CAAC,KAAK,CAAC,CAAC;iBACxB;YACH,CAAC;SACF,CAAC;IACJ,CAAC;CACF,CAAC,CAAC"} \ No newline at end of file diff --git a/node_modules/@typescript-eslint/eslint-plugin/dist/rules/non-nullable-type-assertion-style.js b/node_modules/@typescript-eslint/eslint-plugin/dist/rules/non-nullable-type-assertion-style.js index a6ef640fe4..b7464af3ac 100644 --- a/node_modules/@typescript-eslint/eslint-plugin/dist/rules/non-nullable-type-assertion-style.js +++ b/node_modules/@typescript-eslint/eslint-plugin/dist/rules/non-nullable-type-assertion-style.js @@ -66,9 +66,7 @@ exports.default = util.createRule({ } return false; } - else { - return ((type.flags & (ts.TypeFlags.Null | ts.TypeFlags.Undefined)) !== 0); - } + return (type.flags & (ts.TypeFlags.Null | ts.TypeFlags.Undefined)) !== 0; }; const sameTypeWithoutNullish = (assertedTypes, originalTypes) => { const nonNullishOriginalTypes = originalTypes.filter(type => (type.flags & (ts.TypeFlags.Null | ts.TypeFlags.Undefined)) === 0); diff --git a/node_modules/@typescript-eslint/eslint-plugin/dist/rules/non-nullable-type-assertion-style.js.map b/node_modules/@typescript-eslint/eslint-plugin/dist/rules/non-nullable-type-assertion-style.js.map index 02864ef795..2992c8d5e1 100644 --- a/node_modules/@typescript-eslint/eslint-plugin/dist/rules/non-nullable-type-assertion-style.js.map +++ b/node_modules/@typescript-eslint/eslint-plugin/dist/rules/non-nullable-type-assertion-style.js.map @@ -1 +1 @@ -{"version":3,"file":"non-nullable-type-assertion-style.js","sourceRoot":"","sources":["../../src/rules/non-nullable-type-assertion-style.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;AACA,oDAA0D;AAC1D,sDAAwC;AACxC,+CAAiC;AAEjC,8CAAgC;AAEhC,kBAAe,IAAI,CAAC,UAAU,CAAC;IAC7B,IAAI,EAAE,mCAAmC;IACzC,IAAI,EAAE;QACJ,IAAI,EAAE;YACJ,WAAW,EAAE,sDAAsD;YACnE,WAAW,EAAE,WAAW;YACxB,oBAAoB,EAAE,IAAI;SAC3B;QACD,OAAO,EAAE,MAAM;QACf,QAAQ,EAAE;YACR,sBAAsB,EACpB,+EAA+E;SAClF;QACD,MAAM,EAAE,EAAE;QACV,IAAI,EAAE,YAAY;KACnB;IACD,cAAc,EAAE,EAAE;IAElB,MAAM,CAAC,OAAO;QACZ,MAAM,QAAQ,GAAG,IAAI,CAAC,iBAAiB,CAAC,OAAO,CAAC,CAAC;QACjD,MAAM,UAAU,GAAG,OAAO,CAAC,aAAa,EAAE,CAAC;QAE3C,MAAM,kBAAkB,GAAG,CAAC,IAAmB,EAAyB,EAAE;YACxE,MAAM,IAAI,GAAG,QAAQ,CAAC,iBAAiB,CAAC,IAAI,CAAC,CAAC;YAE9C,IACE,OAAO,CAAC,aAAa,CAAC,IAAI,EAAE,EAAE,CAAC,SAAS,CAAC,GAAG,GAAG,EAAE,CAAC,SAAS,CAAC,OAAO,CAAC,EACpE;gBACA,OAAO,SAAS,CAAC;aAClB;YAED,OAAO,OAAO,CAAC,cAAc,CAAC,IAAI,CAAC,CAAC;QACtC,CAAC,CAAC;QAEF,MAAM,cAAc,GAAG,CAAC,IAAa,EAAW,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AAQ,CAAC,YAAY,CAAC,EAAE;oBACzC,OAAO,KAAK,CAAC;iBACd;aACF;YAED,OAAO,IAAI,CAAC;QACd,CAAC,CAAC;QAEF,MAAM,gBAAgB,GAAG,CACvB,IAAwD,EAC/C,EAAE;YACX,OAAO,CACL,IAAI,CAAC,cAAc,CAAC,IAAI,KAAK,sBAAc,CAAC,eAAe;gBAC3D,IAAI,CAAC,cAAc,CAAC,QAAQ,CAAC,IAAI,KAAK,sBAAc,CAAC,UAAU;gBAC/D,IAAI,CAAC,cAAc,CAAC,QAAQ,CAAC,IAAI,KAAK,OAAO,CAC9C,CAAC;QACJ,CAAC,CAAC;QAEF,OAAO;YACL,iCAAiC,CAC/B,IAAwD;gBAExD,IAAI,gBAAgB,CAAC,IAAI,CAAC,EAAE;oBAC1B,OAAO;iBACR;gBAED,MAAM,aAAa,GAAG,kBAAkB,CAAC,IAAI,CAAC,UAAU,CAAC,CAAC;gBAC1D,IAAI,CAAC,aAAa,EAAE;oBAClB,OAAO;iBACR;gBAED,MAAM,aAAa,GAAG,kBAAkB,CAAC,IAAI,CAAC,cAAc,CAAC,CAAC;gBAC9D,IAAI,CAAC,aAAa,EAAE;oBAClB,OAAO;iBACR;gBAED,IAAI,sBAAsB,CAAC,aAAa,EAAE,aAAa,CAAC,EAAE;oBACxD,OAAO,CAAC,MAAM,CAAC;wBACb,GAAG,CAAC,KAAK;4BACP,OAAO,KAAK,CAAC,WAAW,CACtB,IAAI,EACJ,GAAG,UAAU,CAAC,OAAO,CAAC,IAAI,CAAC,UAAU,CAAC,GAAG,CAC1C,CAAC;wBACJ,CAAC;wBACD,SAAS,EAAE,wBAAwB;wBACnC,IAAI;qBACL,CAAC,CAAC;iBACJ;YACH,CAAC;SACF,CAAC;IACJ,CAAC;CACF,CAAC,CAAC"} \ No newline at end of file +{"version":3,"file":"non-nullable-type-assertion-style.js","sourceRoot":"","sources":["../../src/rules/non-nullable-type-assertion-style.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;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gBAC/D,IAAI,CAAC,cAAc,CAAC,QAAQ,CAAC,IAAI,KAAK,OAAO,CAC9C,CAAC;QACJ,CAAC,CAAC;QAEF,OAAO;YACL,iCAAiC,CAC/B,IAAwD;gBAExD,IAAI,gBAAgB,CAAC,IAAI,CAAC,EAAE;oBAC1B,OAAO;iBACR;gBAED,MAAM,aAAa,GAAG,kBAAkB,CAAC,IAAI,CAAC,UAAU,CAAC,CAAC;gBAC1D,IAAI,CAAC,aAAa,EAAE;oBAClB,OAAO;iBACR;gBAED,MAAM,aAAa,GAAG,kBAAkB,CAAC,IAAI,CAAC,cAAc,CAAC,CAAC;gBAC9D,IAAI,CAAC,aAAa,EAAE;oBAClB,OAAO;iBACR;gBAED,IAAI,sBAAsB,CAAC,aAAa,EAAE,aAAa,CAAC,EAAE;oBACxD,OAAO,CAAC,MAAM,CAAC;wBACb,GAAG,CAAC,KAAK;4BACP,OAAO,KAAK,CAAC,WAAW,CACtB,IAAI,EACJ,GAAG,UAAU,CAAC,OAAO,CAAC,IAAI,CAAC,UAAU,CAAC,GAAG,CAC1C,CAAC;wBACJ,CAAC;wBACD,SAAS,EAAE,wBAAwB;wBACnC,IAAI;qBACL,CAAC,CAAC;iBACJ;YACH,CAAC;SACF,CAAC;IACJ,CAAC;CACF,CAAC,CAAC"} \ No newline at end of file diff --git a/node_modules/@typescript-eslint/eslint-plugin/dist/rules/prefer-optional-chain-utils/analyzeChain.js b/node_modules/@typescript-eslint/eslint-plugin/dist/rules/prefer-optional-chain-utils/analyzeChain.js index a685a92bfb..71af4088a6 100644 --- a/node_modules/@typescript-eslint/eslint-plugin/dist/rules/prefer-optional-chain-utils/analyzeChain.js +++ b/node_modules/@typescript-eslint/eslint-plugin/dist/rules/prefer-optional-chain-utils/analyzeChain.js @@ -251,15 +251,13 @@ function getFixer(sourceCode, parserServices, operator, options, chain) { right: unaryOperator + newCode, }; } - else { - const unaryOperator = lastOperand.node.left.type === utils_1.AST_NODE_TYPES.UnaryExpression - ? lastOperand.node.left.operator + ' ' - : ''; - return { - left: unaryOperator + newCode, - right: sourceCode.getText(lastOperand.node.right), - }; - } + const unaryOperator = lastOperand.node.left.type === utils_1.AST_NODE_TYPES.UnaryExpression + ? lastOperand.node.left.operator + ' ' + : ''; + return { + left: unaryOperator + newCode, + right: sourceCode.getText(lastOperand.node.right), + }; })(); newCode = `${left} ${operator} ${right}`; } diff --git a/node_modules/@typescript-eslint/eslint-plugin/dist/rules/prefer-optional-chain-utils/analyzeChain.js.map b/node_modules/@typescript-eslint/eslint-plugin/dist/rules/prefer-optional-chain-utils/analyzeChain.js.map index b42905b96a..d63745b034 100644 --- a/node_modules/@typescript-eslint/eslint-plugin/dist/rules/prefer-optional-chain-utils/analyzeChain.js.map +++ b/node_modules/@typescript-eslint/eslint-plugin/dist/rules/prefer-optional-chain-utils/analyzeChain.js.map @@ -1 +1 @@ -{"version":3,"file":"analyzeChain.js","sourceRoot":"","sources":["../../../src/rules/prefer-optional-chain-utils/analyzeChain.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;AAIA,oDAA0D;AAO1D,+CAA8C;AAC9C,+CAAiC;AAEjC,iDAAmC;AACnC,iDAAoE;AAQpE,SAAS,YAAY,CACnB,cAAiD,EACjD,IAAmB,EACnB,UAAwB;IAExB,MAAM,QAAQ,GAAG,UAAU,GAAG,EAAE,CAAC,SAAS,CAAC,GAAG,GAAG,EAAE,CAAC,SAAS,CAAC,OAAO,CAAC;IACtE,MAAM,KAAK,GAAG,IAAA,6BAAc,EAAC,cAAc,CAAC,iBAAiB,CAAC,IAAI,CAAC,CAAC,CAAC;IACrE,KAAK,MAAM,IAAI,IAAI,KAAK,EAAE;QACxB,IAAI,IAAI,CAAC,aAAa,CAAC,IAAI,EAAE,QAAQ,CAAC,EAAE;YACtC,OAAO,IAAI,CAAC;SACb;KACF;IACD,OAAO,KAAK,CAAC;AACf,CAAC;AAYD,MAAM,sBAAsB,GAAoB,CAC9C,cAAc,EACd,OAAO,EACP,KA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AC7D,CAAC;YACF,IAAI,gBAAgB,+CAAgC,EAAE;gBACpD,4DAA4D;gBAC5D,QAAQ,CAAC,IAAI,CAAC,cAAc,CAAC,CAAC;aAC/B;iBAAM,IAAI,gBAAgB,iDAAiC,EAAE;gBAC5D,oBAAoB,CAAC,iBAAiB,CAAC,CAAC;aACzC;iBAAM,IAAI,gBAAgB,6CAA+B,EAAE;gBAC1D,oEAAoE;gBACpE,qDAAqD;gBACrD,aAAa;aACd;SACF;aAAM;YACL,QAAQ,CAAC,IAAI,CAAC,cAAc,CAAC,CAAC;SAC/B;KACF;IAED,sBAAsB;IACtB,oBAAoB,EAAE,CAAC;AACzB,CAAC;AA7GD,oCA6GC"} \ No newline at end of file +{"version":3,"file":"analyzeChain.js","sourceRoot":"","sources":["../../../src/rules/prefer-optional-chain-utils/analyzeChain.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;AAIA,oDAA0D;AAO1D,+CAA8C;AAC9C,+CAAiC;AAEjC,iDAAmC;AACnC,iDAAoE;AAQpE,SAAS,YAAY,CACnB,cAAiD,EACjD,IAAmB,EACnB,UAAwB;IAExB,MAAM,QAAQ,GAAG,UAAU,GAAG,EAAE,CAAC,SAAS,CAAC,GAAG,GAAG,EAAE,CAAC,SAAS,CAAC,OAAO,CAAC;IACtE,MAAM,KAAK,GAAG,IAAA,6BAAc,EAAC,cAAc,CAAC,iBAAiB,CAAC,IAAI,CAAC,CAAC,CAAC;IACrE,KAAK,MAAM,IAAI,IAAI,KAAK,EAAE;QACxB,IAAI,IAAI,CAAC,aAAa,CAAC,IAAI,EAAE,QAAQ,CAAC,EAAE;YACtC,OAAO,IAAI,CAAC;SACb;KACF;IACD,OAAO,KAAK,CAAC;AACf,CAAC;AAYD,MAAM,sBAAsB,GAAoB,CAC9C,cAAc,EACd,OAAO,EACP,KAAK,EACL,KAAK,EACL,EAAE;IACF,QAAQ,OAAO,CAAC,cAAc,EAAE;QAC9B,mDAAmC;QACnC;YACE,OAAO,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AAC;aAC/B;iBAAM,IAAI,gBAAgB,iDAAiC,EAAE;gBAC5D,oBAAoB,CAAC,iBAAiB,CAAC,CAAC;aACzC;iBAAM,IAAI,gBAAgB,6CAA+B,EAAE;gBAC1D,oEAAoE;gBACpE,qDAAqD;gBACrD,aAAa;aACd;SACF;aAAM;YACL,QAAQ,CAAC,IAAI,CAAC,cAAc,CAAC,CAAC;SAC/B;KACF;IAED,sBAAsB;IACtB,oBAAoB,EAAE,CAAC;AACzB,CAAC;AA7GD,oCA6GC"} \ No newline at end of file diff --git a/node_modules/@typescript-eslint/eslint-plugin/dist/rules/prefer-optional-chain-utils/gatherLogicalOperands.js b/node_modules/@typescript-eslint/eslint-plugin/dist/rules/prefer-optional-chain-utils/gatherLogicalOperands.js index 0e16034d20..73845fd945 100644 --- a/node_modules/@typescript-eslint/eslint-plugin/dist/rules/prefer-optional-chain-utils/gatherLogicalOperands.js +++ b/node_modules/@typescript-eslint/eslint-plugin/dist/rules/prefer-optional-chain-utils/gatherLogicalOperands.js @@ -94,13 +94,11 @@ function gatherLogicalOperands(node, parserServices, options) { isYoda: false, }; } - else { - return { - comparedExpression: operand.right, - comparedValue: getComparisonValueType(operand.left), - isYoda: true, - }; - } + return { + comparedExpression: operand.right, + comparedValue: getComparisonValueType(operand.left), + isYoda: true, + }; })(); if (comparedValue === "UndefinedStringLiteral" /* ComparisonValueType.UndefinedStringLiteral */) { if (comparedExpression.type === utils_1.AST_NODE_TYPES.UnaryExpression && diff --git a/node_modules/@typescript-eslint/eslint-plugin/dist/rules/prefer-optional-chain-utils/gatherLogicalOperands.js.map b/node_modules/@typescript-eslint/eslint-plugin/dist/rules/prefer-optional-chain-utils/gatherLogicalOperands.js.map index 945cf82dcc..2763a797f9 100644 --- a/node_modules/@typescript-eslint/eslint-plugin/dist/rules/prefer-optional-chain-utils/gatherLogicalOperands.js.map +++ b/node_modules/@typescript-eslint/eslint-plugin/dist/rules/prefer-optional-chain-utils/gatherLogicalOperands.js.map @@ -1 +1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prefer-string-starts-ends-with.js b/node_modules/@typescript-eslint/eslint-plugin/dist/rules/prefer-string-starts-ends-with.js index 2fcb2c3460..9f62a3d536 100644 --- a/node_modules/@typescript-eslint/eslint-plugin/dist/rules/prefer-string-starts-ends-with.js +++ b/node_modules/@typescript-eslint/eslint-plugin/dist/rules/prefer-string-starts-ends-with.js @@ -161,11 +161,13 @@ exports.default = (0, util_1.createRule)({ /** * Parse a given `RegExp` pattern to that string if it's a static string. * @param pattern The RegExp pattern text to parse. - * @param uFlag The Unicode flag of the RegExp. + * @param unicode Whether the RegExp is unicode. */ - function parseRegExpText(pattern, uFlag) { + function parseRegExpText(pattern, unicode) { // Parse it. - const ast = regexpp.parsePattern(pattern, undefined, undefined, uFlag); + const ast = regexpp.parsePattern(pattern, undefined, undefined, { + unicode, + }); if (ast.alternatives.length !== 1) { return null; } diff --git a/node_modules/@typescript-eslint/eslint-plugin/dist/rules/prefer-string-starts-ends-with.js.map b/node_modules/@typescript-eslint/eslint-plugin/dist/rules/prefer-string-starts-ends-with.js.map index f9136b4c5c..d49a5ade7f 100644 --- a/node_modules/@typescript-eslint/eslint-plugin/dist/rules/prefer-string-starts-ends-with.js.map +++ b/node_modules/@typescript-eslint/eslint-plugin/dist/rules/prefer-string-starts-ends-with.js.map @@ -1 +1 @@ -{"version":3,"file":"prefer-string-starts-ends-with.js","sourceRoot":"","sources":["../../src/rules/prefer-string-starts-ends-with.ts"],"names":[],"mappings":";;AACA,uDAAyD;AAEzD,oDAA0D;AAE1D,kCASiB;AAEjB,MAAM,YAAY,GAAG,QAAQ,CAAC;AAC9B,MAAM,OAAO,GAAG,IAAI,sBAAY,EAAE,CAAC;AAEnC,kBAAe,IAAA,iBAAU,EAAC;IACxB,IAAI,EAAE,gCAAgC;IACtC,cAAc,EAAE,EAAE;IAElB,IAAI,EAAE;QACJ,IAAI,EAAE,YAAY;QAClB,IAAI,EAAE;YACJ,WAAW,EACT,8GAA8G;YAChH,WAAW,EAAE,WAAW;YACxB,oBA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AAI,KAAK,sBAAc,CAAC,OAAO;4BACvC,OAAO,CAAC,IAAI,KAAK,sBAAc,CAAC,eAAe;4BAC/C,OAAO,CAAC,IAAI,KAAK,sBAAc,CAAC,UAAU;4BAC1C,OAAO,CAAC,IAAI,KAAK,sBAAc,CAAC,gBAAgB;4BAChD,OAAO,CAAC,IAAI,KAAK,sBAAc,CAAC,cAAc,CAAC;wBAEjD,MAAM,KAAK,CAAC,WAAW,CAAC,CAAC,QAAQ,CAAC,KAAK,CAAC,CAAC,CAAC,EAAE,OAAO,CAAC,KAAK,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC;wBAC/D,IAAI,UAAU,EAAE;4BACd,MAAM,KAAK,CAAC,gBAAgB,CAAC,OAAO,EAAE,GAAG,CAAC,CAAC;4BAC3C,MAAM,KAAK,CAAC,eAAe,CAAC,OAAO,EAAE,GAAG,CAAC,CAAC;yBAC3C;wBACD,MAAM,KAAK,CAAC,eAAe,CACzB,OAAO,EACP,GAAG,IAAI,CAAC,QAAQ,CAAC,CAAC,CAAC,IAAI,CAAC,CAAC,CAAC,GAAG,GAAG,UAAU,IAAI,IAAI,CAAC,SAAS,CAC1D,IAAI,CACL,EAAE,CACJ,CAAC;oBACJ,CAAC;iBACF,CAAC,CAAC;YACL,CAAC;SACF,CAAC;IACJ,CAAC;CACF,CAAC,CAAC"} \ No newline at end of file +{"version":3,"file":"prefer-string-starts-ends-with.js","sourceRoot":"","sources":["../../src/rules/prefer-string-starts-ends-with.ts"],"names":[],"mappings":";;AACA,uDAAyD;AAEzD,oDAA0D;AAE1D,kCASiB;AAEjB,MAAM,YAAY,GAAG,QAAQ,CAAC;AAC9B,MAAM,OAAO,GAAG,IAAI,sBAAY,EAAE,CAAC;AAEnC,kBAAe,IAAA,iBAAU,EAAC;IACxB,IAAI,EAAE,gCAAgC;IACtC,cAAc,EAAE,EAAE;IAElB,IAAI,EAAE;QACJ,IAAI,EAAE,YAAY;QAClB,IAAI,EAAE;YACJ,WAAW,EACT,8G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AC,CAAC,CAAC;wBACtC,MAAM,UAAU,GACd,OAAO,CAAC,IAAI,KAAK,sBAAc,CAAC,OAAO;4BACvC,OAAO,CAAC,IAAI,KAAK,sBAAc,CAAC,eAAe;4BAC/C,OAAO,CAAC,IAAI,KAAK,sBAAc,CAAC,UAAU;4BAC1C,OAAO,CAAC,IAAI,KAAK,sBAAc,CAAC,gBAAgB;4BAChD,OAAO,CAAC,IAAI,KAAK,sBAAc,CAAC,cAAc,CAAC;wBAEjD,MAAM,KAAK,CAAC,WAAW,CAAC,CAAC,QAAQ,CAAC,KAAK,CAAC,CAAC,CAAC,EAAE,OAAO,CAAC,KAAK,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC;wBAC/D,IAAI,UAAU,EAAE;4BACd,MAAM,KAAK,CAAC,gBAAgB,CAAC,OAAO,EAAE,GAAG,CAAC,CAAC;4BAC3C,MAAM,KAAK,CAAC,eAAe,CAAC,OAAO,EAAE,GAAG,CAAC,CAAC;yBAC3C;wBACD,MAAM,KAAK,CAAC,eAAe,CACzB,OAAO,EACP,GAAG,IAAI,CAAC,QAAQ,CAAC,CAAC,CAAC,IAAI,CAAC,CAAC,CAAC,GAAG,GAAG,UAAU,IAAI,IAAI,CAAC,SAAS,CAC1D,IAAI,CACL,EAAE,CACJ,CAAC;oBACJ,CAAC;iBACF,CAAC,CAAC;YACL,CAAC;SACF,CAAC;IACJ,CAAC;CACF,CAAC,CAAC"} \ No newline at end of file diff --git a/node_modules/@typescript-eslint/eslint-plugin/dist/rules/return-await.js b/node_modules/@typescript-eslint/eslint-plugin/dist/rules/return-await.js index eee51b5428..db0b53812f 100644 --- a/node_modules/@typescript-eslint/eslint-plugin/dist/rules/return-await.js +++ b/node_modules/@typescript-eslint/eslint-plugin/dist/rules/return-await.js @@ -134,12 +134,10 @@ exports.default = util.createRule({ if (isHighPrecendence) { return fixer.insertTextBefore(node, 'await '); } - else { - return [ - fixer.insertTextBefore(node, 'await ('), - fixer.insertTextAfter(node, ')'), - ]; - } + return [ + fixer.insertTextBefore(node, 'await ('), + fixer.insertTextAfter(node, ')'), + ]; } function isHigherPrecedenceThanAwait(node) { const operator = ts.isBinaryExpression(node) diff --git a/node_modules/@typescript-eslint/eslint-plugin/dist/rules/return-await.js.map b/node_modules/@typescript-eslint/eslint-plugin/dist/rules/return-await.js.map index a0b1c3521b..abd0c3746d 100644 --- a/node_modules/@typescript-eslint/eslint-plugin/dist/rules/return-await.js.map +++ b/node_modules/@typescript-eslint/eslint-plugin/dist/rules/return-await.js.map @@ -1 +1 @@ -{"version":3,"file":"return-await.js","sourceRoot":"","sources":["../../src/rules/return-await.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;AACA,oDAA0D;AAC1D,sDAAwC;AACxC,+CAAiC;AAEjC,8CAAgC;AAChC,yEAAsE;AAYtE,kBAAe,IAAI,CAAC,UAAU,CAAC;IAC7B,IAAI,EAAE,cAAc;IACpB,IAAI,EAAE;QACJ,IAAI,EAAE;YACJ,WAAW,EAAE,gDAAgD;YAC7D,oBAAoB,EAAE,IAAI;YAC1B,eAAe,EAAE,iBAAiB;SACnC;QACD,OAAO,EAAE,MAAM;QACf,cAAc,EAAE,IAAI;QACpB,IAAI,EAAE,SAAS;QACf,QAAQ,EAAE;YACR,eAAe,EACb,kEAAkE;YACpE,sBAAsB,EACpB,8DAA8D;YAChE,oBAAoB,EAClB,2DAA2D;SAC9D;QACD,MAAM,EAAE;YACN;gBACE,IAAI,EAAE,QAAQ;gBACd,IAAI,EAAE,CAAC,cAAc,EAAE,QAAQ,EAAE,OAAO,CAAC;aAC1C;SACF;KACF;IACD,cAAc,EAAE,CAAC,cAAc,CAAC;IAEhC,MAAM,CAAC,OAAO,EAAE,CAAC,MAAM,CAAC;QACtB,MAAM,QAAQ,GAAG,IAAI,CAAC,iBAAiB,CAAC,OAAO,CAAC,CAAC;QACjD,MAAM,OAAO,GAAG,QAAQ,CAAC,OAAO,CAAC,cAAc,EAAE,CAAC;QAClD,MAAM,UAA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,EAAE,YAAY;YACvC,8BAA8B,EAAE,YAAY;YAE5C,kEAAkE;YAClE,4CAA4C,CAC1C,IAAsC;gBAEtC,IAAI,IAAI,CAAC,IAAI,CAAC,IAAI,KAAK,sBAAc,CAAC,cAAc,EAAE;oBACpD,yBAAyB,CAAC,IAAI,CAAC,IAAI,CAAC,CAAC,OAAO,CAAC,IAAI,CAAC,EAAE;wBAClD,MAAM,MAAM,GAAG,QAAQ,CAAC,qBAAqB,CAAC,GAAG,CAAC,IAAI,CAAC,CAAC;wBACxD,IAAI,CAAC,IAAI,EAAE,MAAM,CAAC,CAAC;oBACrB,CAAC,CAAC,CAAC;iBACJ;YACH,CAAC;YACD,eAAe,CAAC,IAAI;gBAClB,MAAM,SAAS,GAAG,cAAc,CAAC,cAAc,CAAC,MAAM,GAAG,CAAC,CAAC,CAAC;gBAC5D,IAAI,CAAC,SAAS,EAAE,QAAQ,IAAI,CAAC,IAAI,CAAC,QAAQ,EAAE;oBAC1C,OAAO;iBACR;gBACD,yBAAyB,CAAC,IAAI,CAAC,QAAQ,CAAC,CAAC,OAAO,CAAC,IAAI,CAAC,EAAE;oBACtD,MAAM,MAAM,GAAG,QAAQ,CAAC,qBAAqB,CAAC,GAAG,CAAC,IAAI,CAAC,CAAC;oBACxD,IAAI,CAAC,IAAI,EAAE,MAAM,CAAC,CAAC;gBACrB,CAAC,CAAC,CAAC;YACL,CAAC;SACF,CAAC;IACJ,CAAC;CACF,CAAC,CAAC"} \ No newline at end of file +{"version":3,"file":"return-await.js","sourceRoot":"","sources":["../../src/rules/return-await.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;AACA,oDAA0D;AAC1D,sDAAwC;AACxC,+CAAiC;AAEjC,8CAAgC;AAChC,yEAAsE;AAYtE,kBAAe,IAAI,CAAC,UAAU,CAAC;IAC7B,IAAI,EAAE,cAAc;IACpB,IAAI,EAAE;QACJ,IAAI,EAAE;YACJ,WAAW,EAAE,gDAAgD;YAC7D,oBAAoB,E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,CAAC,OAAO,CAAC,IAAI,CAAC,EAAE;oBACtD,MAAM,MAAM,GAAG,QAAQ,CAAC,qBAAqB,CAAC,GAAG,CAAC,IAAI,CAAC,CAAC;oBACxD,IAAI,CAAC,IAAI,EAAE,MAAM,CAAC,CAAC;gBACrB,CAAC,CAAC,CAAC;YACL,CAAC;SACF,CAAC;IACJ,CAAC;CACF,CAAC,CAAC"} \ No newline at end of file diff --git a/node_modules/@typescript-eslint/eslint-plugin/dist/rules/type-annotation-spacing.js b/node_modules/@typescript-eslint/eslint-plugin/dist/rules/type-annotation-spacing.js index 310ba767dd..1e489a99e5 100644 --- a/node_modules/@typescript-eslint/eslint-plugin/dist/rules/type-annotation-spacing.js +++ b/node_modules/@typescript-eslint/eslint-plugin/dist/rules/type-annotation-spacing.js @@ -58,9 +58,7 @@ function getIdentifierRules(rules, node) { else if ((0, util_1.isFunctionOrFunctionType)(scope)) { return rules.parameter; } - else { - return rules.colon; - } + return rules.colon; } function getRules(rules, node) { const scope = node?.parent?.parent; @@ -76,9 +74,7 @@ function getRules(rules, node) { else if ((0, util_1.isFunction)(scope)) { return rules.returnType; } - else { - return rules.colon; - } + return rules.colon; } exports.default = util.createRule({ name: 'type-annotation-spacing', diff --git a/node_modules/@typescript-eslint/eslint-plugin/dist/rules/type-annotation-spacing.js.map b/node_modules/@typescript-eslint/eslint-plugin/dist/rules/type-annotation-spacing.js.map index ddbb96ce1e..9d281da724 100644 --- a/node_modules/@typescript-eslint/eslint-plugin/dist/rules/type-annotation-spacing.js.map +++ b/node_modules/@typescript-eslint/eslint-plugin/dist/rules/type-annotation-spacing.js.map @@ -1 +1 @@ -{"version":3,"file":"type-annotation-spacing.js","sourceRoot":"","sources":["../../src/rules/type-annotation-spacing.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;AAEA,8CAAgC;AAChC,kCAQiB;AA8BjB,SAAS,WAAW,CAAC,OAAgB;IACnC,MAAM,OAAO,GAAG;QACd,GAAG,CAAC,OAAO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C;oBACb,IAAI,EAAE,oBAAoB;oBAC1B,SAAS,EAAE,uBAAuB;oBAClC,IAAI,EAAE;wBACJ,IAAI;qBACL;oBACD,GAAG,CAAC,KAAK;wBACP,OAAO,KAAK,CAAC,WAAW,CAAC;4BACvB,aAAa,CAAC,KAAK,CAAC,CAAC,CAAC;4BACtB,oBAAoB,CAAC,KAAK,CAAC,CAAC,CAAC;yBAC9B,CAAC,CAAC;oBACL,CAAC;iBACF,CAAC,CAAC;aACJ;QACH,CAAC;QAED,OAAO;YACL,YAAY,CAAC,IAAI;gBACf,IAAI,IAAI,CAAC,cAAc,EAAE;oBACvB,0BAA0B,CAAC,IAAI,CAAC,cAAc,CAAC,CAAC;iBACjD;YACH,CAAC;YACD,gBAAgB,CAAC,IAAI;gBACnB,0BAA0B,CAAC,IAAI,CAAC,cAAc,CAAC,CAAC;YAClD,CAAC;SACF,CAAC;IACJ,CAAC;CACF,CAAC,CAAC"} \ No newline at end of file +{"version":3,"file":"type-annotation-spacing.js","sourceRoot":"","sources":["../../src/rules/type-annotation-spacing.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;AAEA,8CAAgC;AAChC,kCAQiB;AA8BjB,SAAS,WAAW,CAAC,OAAgB;IACnC,MAAM,OAAO,GAAG;QACd,GAAG,CAAC,OAAO,EAAE,MAAM,KAAK,SAAS,CAAC,CAAC,CAAC,EAAE,MAAM,EAAE,OAAO,CAAC,MAAM,EAAE,CAAC,CAAC,CAAC,EAAE,CAAC;QACpE,GAAG,CAAC,OAAO,EAAE,KAAK,KAAK,SAAS,CAAC,CAAC,CAAC,EAAE,KAAK,EAAE,OAAO,CAAC,KAAK,EAAE,CAAC,CAAC,CAAC,EAAE,CAAC;KAClE,CAAC;IACF,MAAM,QAAQ,GAAG,OAAO,EAAE,SAAS,IAAI,EAAE,CAAC;IAC1C,MAAM,KAAK,GAAG;QACZ,GAAG,EAAE,MAAM,EAAE,KAAK,EAAE,KAAK,EAAE,IAAI,EAAE;QAC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YACH,CAAC;YACD,gBAAgB,CAAC,IAAI;gBACnB,0BAA0B,CAAC,IAAI,CAAC,cAAc,CAAC,CAAC;YAClD,CAAC;SACF,CAAC;IACJ,CAAC;CACF,CAAC,CAAC"} \ No newline at end of file diff --git a/node_modules/@typescript-eslint/eslint-plugin/dist/util/misc.js b/node_modules/@typescript-eslint/eslint-plugin/dist/util/misc.js index 125b768335..e51374f524 100644 --- a/node_modules/@typescript-eslint/eslint-plugin/dist/util/misc.js +++ b/node_modules/@typescript-eslint/eslint-plugin/dist/util/misc.js @@ -129,12 +129,10 @@ function getNameFromMember(member, sourceCode) { name: `"${name}"`, }; } - else { - return { - type: MemberNameType.Normal, - name, - }; - } + return { + type: MemberNameType.Normal, + name, + }; } return { type: MemberNameType.Expression, diff --git a/node_modules/@typescript-eslint/eslint-plugin/dist/util/misc.js.map b/node_modules/@typescript-eslint/eslint-plugin/dist/util/misc.js.map index d148637b0c..a8f2736494 100644 --- a/node_modules/@typescript-eslint/eslint-plugin/dist/util/misc.js.map +++ b/node_modules/@typescript-eslint/eslint-plugin/dist/util/misc.js.map @@ -1 +1 @@ -{"version":3,"file":"misc.js","sourceRoot":"","sources":["../../src/util/misc.ts"],"names":[],"mappings":";AAAA;;GAEG;;;;;;;;;;;;;;;;;;;;;;;;;;AAEH,8DAAgE;AAEhE,oDAA0D;AAC1D,+CAAiC;AAEjC,MAAM,qBAAqB,GAAG;IAC5B,EAAE,CAAC,SAAS,CAAC,GAAG;IAChB,EAAE,CAAC,SAAS,CAAC,IAAI;IACjB,EAAE,CAAC,SAAS,CAAC,IAAI;CACT,CAAC;AACX;;GAEG;AACH,SAAS,gBAAgB,CAAC,QAAgB;IACxC,MAAM,aAAa,GAAG,QAAQ,CAAC,WAAW,EAAE,CAAC;IAC7C,KAAK,MAAM,aAAa,IAAI,qBAAqB,EAAE;QACjD,IAAI,aAAa,CAAC,QAAQ,CAAC,aAAa,CAAC,EAAE;YACzC,OAAO,IAAI,CAAC;SACb;KACF;IACD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G,CAAC;SACZ;QACD,GAAG,EAAE,CAAC;KACP;IAED,OAAO,CAAC,CAAC,CAAC;AACZ,CAAC;AA8BC,sCAAa;AA5Bf,SAAS,2BAA2B,CAClC,IAAuB,EACvB,IAAY;IAEZ,OAAO,CACL,IAAI,CAAC,IAAI,KAAK,sBAAc,CAAC,cAAc;QAC3C,IAAI,CAAC,IAAI,KAAK,sBAAc,CAAC,iBAAiB;QAC9C,IAAI,CAAC,IAAI,KAAK,sBAAc,CAAC,iBAAiB;QAC9C,CAAC,IAAI,CAAC,IAAI,KAAK,sBAAc,CAAC,WAAW,IAAI,IAAI,CAAC,UAAU,CAAC,GAAG,CAAC,CAAC;QAClE,CAAC,IAAI,CAAC,IAAI,KAAK,sBAAc,CAAC,kBAAkB,IAAI,IAAI,CAAC,UAAU,CAAC,GAAG,CAAC,CAAC,CAC1E,CAAC;AACJ,CAAC;AAeC,kEAA2B"} \ No newline at end of file diff --git a/node_modules/@typescript-eslint/eslint-plugin/docs/rules/block-spacing.md b/node_modules/@typescript-eslint/eslint-plugin/docs/rules/block-spacing.md index 6a902214bb..9e6ac779d0 100644 --- a/node_modules/@typescript-eslint/eslint-plugin/docs/rules/block-spacing.md +++ b/node_modules/@typescript-eslint/eslint-plugin/docs/rules/block-spacing.md @@ -6,7 +6,5 @@ description: 'Disallow or enforce spaces inside of blocks after opening block an > > See **https://typescript-eslint.io/rules/block-spacing** for documentation. -## Examples - This rule extends the base [`eslint/block-spacing`](https://eslint.org/docs/rules/block-spacing) rule. This version adds support for TypeScript related blocks (interfaces, object type literals and enums). diff --git a/node_modules/@typescript-eslint/eslint-plugin/docs/rules/brace-style.md b/node_modules/@typescript-eslint/eslint-plugin/docs/rules/brace-style.md index 4e032c8058..66f39643dd 100644 --- a/node_modules/@typescript-eslint/eslint-plugin/docs/rules/brace-style.md +++ b/node_modules/@typescript-eslint/eslint-plugin/docs/rules/brace-style.md @@ -6,7 +6,5 @@ description: 'Enforce consistent brace style for blocks.' > > See **https://typescript-eslint.io/rules/brace-style** for documentation. -## Examples - This rule extends the base [`eslint/brace-style`](https://eslint.org/docs/rules/brace-style) rule. It adds support for `enum`, `interface`, `namespace` and `module` declarations. diff --git a/node_modules/@typescript-eslint/eslint-plugin/docs/rules/class-methods-use-this.md b/node_modules/@typescript-eslint/eslint-plugin/docs/rules/class-methods-use-this.md index 4ee075552d..cf0c20cc6f 100644 --- a/node_modules/@typescript-eslint/eslint-plugin/docs/rules/class-methods-use-this.md +++ b/node_modules/@typescript-eslint/eslint-plugin/docs/rules/class-methods-use-this.md @@ -6,8 +6,6 @@ description: 'Enforce that class methods utilize `this`.' > > See **https://typescript-eslint.io/rules/class-methods-use-this** for documentation. -## Examples - This rule extends the base [`eslint/class-methods-use-this`](https://eslint.org/docs/rules/class-methods-use-this) rule. It adds support for ignoring `override` methods or methods on classes that implement an interface. diff --git a/node_modules/@typescript-eslint/eslint-plugin/docs/rules/comma-dangle.md b/node_modules/@typescript-eslint/eslint-plugin/docs/rules/comma-dangle.md index d25ec9e0cc..80057954ff 100644 --- a/node_modules/@typescript-eslint/eslint-plugin/docs/rules/comma-dangle.md +++ b/node_modules/@typescript-eslint/eslint-plugin/docs/rules/comma-dangle.md @@ -6,8 +6,6 @@ description: 'Require or disallow trailing commas.' > > See **https://typescript-eslint.io/rules/comma-dangle** for documentation. -## Examples - This rule extends the base [`eslint/comma-dangle`](https://eslint.org/docs/rules/comma-dangle) rule. It adds support for TypeScript syntax. diff --git a/node_modules/@typescript-eslint/eslint-plugin/docs/rules/comma-spacing.md b/node_modules/@typescript-eslint/eslint-plugin/docs/rules/comma-spacing.md index 9d5424811a..ccbd468429 100644 --- a/node_modules/@typescript-eslint/eslint-plugin/docs/rules/comma-spacing.md +++ b/node_modules/@typescript-eslint/eslint-plugin/docs/rules/comma-spacing.md @@ -6,7 +6,5 @@ description: 'Enforce consistent spacing before and after commas.' > > See **https://typescript-eslint.io/rules/comma-spacing** for documentation. -## Examples - This rule extends the base [`eslint/comma-spacing`](https://eslint.org/docs/rules/comma-spacing) rule. It adds support for trailing comma in a types parameters list. diff --git a/node_modules/@typescript-eslint/eslint-plugin/docs/rules/default-param-last.md b/node_modules/@typescript-eslint/eslint-plugin/docs/rules/default-param-last.md index e5902b200c..62c3889012 100644 --- a/node_modules/@typescript-eslint/eslint-plugin/docs/rules/default-param-last.md +++ b/node_modules/@typescript-eslint/eslint-plugin/docs/rules/default-param-last.md @@ -6,8 +6,6 @@ description: 'Enforce default parameters to be last.' > > See **https://typescript-eslint.io/rules/default-param-last** for documentation. -## Examples - This rule extends the base [`eslint/default-param-last`](https://eslint.org/docs/rules/default-param-last) rule. It adds support for optional parameters. diff --git a/node_modules/@typescript-eslint/eslint-plugin/docs/rules/dot-notation.md b/node_modules/@typescript-eslint/eslint-plugin/docs/rules/dot-notation.md index e48e2c9a9b..9a40445a80 100644 --- a/node_modules/@typescript-eslint/eslint-plugin/docs/rules/dot-notation.md +++ b/node_modules/@typescript-eslint/eslint-plugin/docs/rules/dot-notation.md @@ -6,8 +6,6 @@ description: 'Enforce dot notation whenever possible.' > > See **https://typescript-eslint.io/rules/dot-notation** for documentation. -## Examples - This rule extends the base [`eslint/dot-notation`](https://eslint.org/docs/rules/dot-notation) rule. It adds: diff --git a/node_modules/@typescript-eslint/eslint-plugin/docs/rules/func-call-spacing.md b/node_modules/@typescript-eslint/eslint-plugin/docs/rules/func-call-spacing.md index c30bbface2..d9acf9fa9d 100644 --- a/node_modules/@typescript-eslint/eslint-plugin/docs/rules/func-call-spacing.md +++ b/node_modules/@typescript-eslint/eslint-plugin/docs/rules/func-call-spacing.md @@ -6,7 +6,5 @@ description: 'Require or disallow spacing between function identifiers and their > > See **https://typescript-eslint.io/rules/func-call-spacing** for documentation. -## Examples - This rule extends the base [`eslint/func-call-spacing`](https://eslint.org/docs/rules/func-call-spacing) rule. It adds support for generic type parameters on function calls. diff --git a/node_modules/@typescript-eslint/eslint-plugin/docs/rules/indent.md b/node_modules/@typescript-eslint/eslint-plugin/docs/rules/indent.md index 3d291c8b81..450b807832 100644 --- a/node_modules/@typescript-eslint/eslint-plugin/docs/rules/indent.md +++ b/node_modules/@typescript-eslint/eslint-plugin/docs/rules/indent.md @@ -14,7 +14,5 @@ Please read [Issue #1824: Problems with the indent rule](https://github.com/type ::: -## Examples - This rule extends the base [`eslint/indent`](https://eslint.org/docs/rules/indent) rule. It adds support for TypeScript nodes. diff --git a/node_modules/@typescript-eslint/eslint-plugin/docs/rules/init-declarations.md b/node_modules/@typescript-eslint/eslint-plugin/docs/rules/init-declarations.md index da086da839..3a456d36b0 100644 --- a/node_modules/@typescript-eslint/eslint-plugin/docs/rules/init-declarations.md +++ b/node_modules/@typescript-eslint/eslint-plugin/docs/rules/init-declarations.md @@ -6,7 +6,5 @@ description: 'Require or disallow initialization in variable declarations.' > > See **https://typescript-eslint.io/rules/init-declarations** for documentation. -## Examples - This rule extends the base [`eslint/init-declarations`](https://eslint.org/docs/rules/init-declarations) rule. It adds support for TypeScript's `declare` variables. diff --git a/node_modules/@typescript-eslint/eslint-plugin/docs/rules/key-spacing.md b/node_modules/@typescript-eslint/eslint-plugin/docs/rules/key-spacing.md index 35108c28f8..4a0884d60b 100644 --- a/node_modules/@typescript-eslint/eslint-plugin/docs/rules/key-spacing.md +++ b/node_modules/@typescript-eslint/eslint-plugin/docs/rules/key-spacing.md @@ -6,7 +6,5 @@ description: 'Enforce consistent spacing between property names and type annotat > > See **https://typescript-eslint.io/rules/key-spacing** for documentation. -## Examples - This rule extends the base [`eslint/key-spacing`](https://eslint.org/docs/rules/key-spacing) rule. -This version adds support for type annotations on interfaces, classes and type literals properties. +It adds support for type annotations on interfaces, classes and type literals properties. diff --git a/node_modules/@typescript-eslint/eslint-plugin/docs/rules/keyword-spacing.md b/node_modules/@typescript-eslint/eslint-plugin/docs/rules/keyword-spacing.md index 5fe8888ff9..a57774b5be 100644 --- a/node_modules/@typescript-eslint/eslint-plugin/docs/rules/keyword-spacing.md +++ b/node_modules/@typescript-eslint/eslint-plugin/docs/rules/keyword-spacing.md @@ -6,7 +6,5 @@ description: 'Enforce consistent spacing before and after keywords.' > > See **https://typescript-eslint.io/rules/keyword-spacing** for documentation. -## Examples - This rule extends the base [`eslint/keyword-spacing`](https://eslint.org/docs/rules/keyword-spacing) rule. -This version adds support for generic type parameters on function calls. +It adds support for generic type parameters on function calls. diff --git a/node_modules/@typescript-eslint/eslint-plugin/docs/rules/lines-around-comment.md b/node_modules/@typescript-eslint/eslint-plugin/docs/rules/lines-around-comment.md index a3fbb5579d..33a04c78f7 100644 --- a/node_modules/@typescript-eslint/eslint-plugin/docs/rules/lines-around-comment.md +++ b/node_modules/@typescript-eslint/eslint-plugin/docs/rules/lines-around-comment.md @@ -6,8 +6,6 @@ description: 'Require empty lines around comments.' > > See **https://typescript-eslint.io/rules/lines-around-comment** for documentation. -## Rule Details - This rule extends the base [`eslint/lines-around-comment`](https://eslint.org/docs/rules/lines-around-comment) rule. It adds support for TypeScript syntax. diff --git a/node_modules/@typescript-eslint/eslint-plugin/docs/rules/lines-between-class-members.md b/node_modules/@typescript-eslint/eslint-plugin/docs/rules/lines-between-class-members.md index 13636d07a2..3209b87f8c 100644 --- a/node_modules/@typescript-eslint/eslint-plugin/docs/rules/lines-between-class-members.md +++ b/node_modules/@typescript-eslint/eslint-plugin/docs/rules/lines-between-class-members.md @@ -6,10 +6,6 @@ description: 'Require or disallow an empty line between class members.' > > See **https://typescript-eslint.io/rules/lines-between-class-members** for documentation. -This rule improves readability by enforcing lines between class members. It will not check empty lines before the first member and after the last member. This rule will require or disallow an empty line between class members. - -## Examples - This rule extends the base [`eslint/lines-between-class-members`](https://eslint.org/docs/rules/lines-between-class-members) rule. It adds support for ignoring overload methods in a class. diff --git a/node_modules/@typescript-eslint/eslint-plugin/docs/rules/no-array-constructor.md b/node_modules/@typescript-eslint/eslint-plugin/docs/rules/no-array-constructor.md index c6b147752f..5cf1d0602a 100644 --- a/node_modules/@typescript-eslint/eslint-plugin/docs/rules/no-array-constructor.md +++ b/node_modules/@typescript-eslint/eslint-plugin/docs/rules/no-array-constructor.md @@ -6,8 +6,6 @@ description: 'Disallow generic `Array` constructors.' > > See **https://typescript-eslint.io/rules/no-array-constructor** for documentation. -## Examples - This rule extends the base [`eslint/no-array-constructor`](https://eslint.org/docs/rules/no-array-constructor) rule. It adds support for the generically typed `Array` constructor (`new Array()`). diff --git a/node_modules/@typescript-eslint/eslint-plugin/docs/rules/no-dupe-class-members.md b/node_modules/@typescript-eslint/eslint-plugin/docs/rules/no-dupe-class-members.md index 432ac55f01..3b0f00d33b 100644 --- a/node_modules/@typescript-eslint/eslint-plugin/docs/rules/no-dupe-class-members.md +++ b/node_modules/@typescript-eslint/eslint-plugin/docs/rules/no-dupe-class-members.md @@ -6,7 +6,5 @@ description: 'Disallow duplicate class members.' > > See **https://typescript-eslint.io/rules/no-dupe-class-members** for documentation. -## Examples - This rule extends the base [`eslint/no-dupe-class-members`](https://eslint.org/docs/rules/no-dupe-class-members) rule. It adds support for TypeScript's method overload definitions. diff --git a/node_modules/@typescript-eslint/eslint-plugin/docs/rules/no-duplicate-type-constituents.md b/node_modules/@typescript-eslint/eslint-plugin/docs/rules/no-duplicate-type-constituents.md index 879d0c6ca7..c240bd4582 100644 --- a/node_modules/@typescript-eslint/eslint-plugin/docs/rules/no-duplicate-type-constituents.md +++ b/node_modules/@typescript-eslint/eslint-plugin/docs/rules/no-duplicate-type-constituents.md @@ -10,8 +10,6 @@ TypeScript supports types ("constituents") within union and intersection types b However, developers typically expect each constituent to be unique within its intersection or union. Duplicate values make the code overly verbose and generally reduce readability. -## Rule Details - This rule disallows duplicate union or intersection constituents. We consider types to be duplicate if they evaluate to the same result in the type system. For example, given `type A = string` and `type T = string | A`, this rule would flag that `A` is the same type as `string`. diff --git a/node_modules/@typescript-eslint/eslint-plugin/docs/rules/no-empty-function.md b/node_modules/@typescript-eslint/eslint-plugin/docs/rules/no-empty-function.md index 529a8a2df7..c7f253b446 100644 --- a/node_modules/@typescript-eslint/eslint-plugin/docs/rules/no-empty-function.md +++ b/node_modules/@typescript-eslint/eslint-plugin/docs/rules/no-empty-function.md @@ -6,8 +6,6 @@ description: 'Disallow empty functions.' > > See **https://typescript-eslint.io/rules/no-empty-function** for documentation. -## Examples - This rule extends the base [`eslint/no-empty-function`](https://eslint.org/docs/rules/no-empty-function) rule. It adds support for handling TypeScript specific code that would otherwise trigger the rule. diff --git a/node_modules/@typescript-eslint/eslint-plugin/docs/rules/no-extra-parens.md b/node_modules/@typescript-eslint/eslint-plugin/docs/rules/no-extra-parens.md index 0c5cc21941..e0afc65731 100644 --- a/node_modules/@typescript-eslint/eslint-plugin/docs/rules/no-extra-parens.md +++ b/node_modules/@typescript-eslint/eslint-plugin/docs/rules/no-extra-parens.md @@ -6,7 +6,5 @@ description: 'Disallow unnecessary parentheses.' > > See **https://typescript-eslint.io/rules/no-extra-parens** for documentation. -## Examples - This rule extends the base [`eslint/no-extra-parens`](https://eslint.org/docs/rules/no-extra-parens) rule. It adds support for TypeScript type assertions. diff --git a/node_modules/@typescript-eslint/eslint-plugin/docs/rules/no-extra-semi.md b/node_modules/@typescript-eslint/eslint-plugin/docs/rules/no-extra-semi.md index 086bd87f45..c2d75c86ad 100644 --- a/node_modules/@typescript-eslint/eslint-plugin/docs/rules/no-extra-semi.md +++ b/node_modules/@typescript-eslint/eslint-plugin/docs/rules/no-extra-semi.md @@ -6,7 +6,5 @@ description: 'Disallow unnecessary semicolons.' > > See **https://typescript-eslint.io/rules/no-extra-semi** for documentation. -## Examples - This rule extends the base [`eslint/no-extra-semi`](https://eslint.org/docs/rules/no-extra-semi) rule. It adds support for class properties. diff --git a/node_modules/@typescript-eslint/eslint-plugin/docs/rules/no-floating-promises.md b/node_modules/@typescript-eslint/eslint-plugin/docs/rules/no-floating-promises.md index 246a50be09..d0204c8100 100644 --- a/node_modules/@typescript-eslint/eslint-plugin/docs/rules/no-floating-promises.md +++ b/node_modules/@typescript-eslint/eslint-plugin/docs/rules/no-floating-promises.md @@ -58,7 +58,7 @@ returnsPromise().then( Promise.reject('value').catch(() => {}); -Promise.reject('value').finally(() => {}); +await Promise.reject('value').finally(() => {}); ``` ## Options diff --git a/node_modules/@typescript-eslint/eslint-plugin/docs/rules/no-invalid-this.md b/node_modules/@typescript-eslint/eslint-plugin/docs/rules/no-invalid-this.md index 4d6abe81f7..9ce45891fb 100644 --- a/node_modules/@typescript-eslint/eslint-plugin/docs/rules/no-invalid-this.md +++ b/node_modules/@typescript-eslint/eslint-plugin/docs/rules/no-invalid-this.md @@ -6,7 +6,5 @@ description: 'Disallow `this` keywords outside of classes or class-like objects. > > See **https://typescript-eslint.io/rules/no-invalid-this** for documentation. -## Examples - This rule extends the base [`eslint/no-invalid-this`](https://eslint.org/docs/rules/no-invalid-this) rule. It adds support for TypeScript's `this` parameters. diff --git a/node_modules/@typescript-eslint/eslint-plugin/docs/rules/no-loop-func.md b/node_modules/@typescript-eslint/eslint-plugin/docs/rules/no-loop-func.md index e2ba64a8ec..9060422c90 100644 --- a/node_modules/@typescript-eslint/eslint-plugin/docs/rules/no-loop-func.md +++ b/node_modules/@typescript-eslint/eslint-plugin/docs/rules/no-loop-func.md @@ -6,7 +6,5 @@ description: 'Disallow function declarations that contain unsafe references insi > > See **https://typescript-eslint.io/rules/no-loop-func** for documentation. -## Examples - This rule extends the base [`eslint/no-loop-func`](https://eslint.org/docs/rules/no-loop-func) rule. It adds support for TypeScript types. diff --git a/node_modules/@typescript-eslint/eslint-plugin/docs/rules/no-loss-of-precision.md b/node_modules/@typescript-eslint/eslint-plugin/docs/rules/no-loss-of-precision.md index f8db7ef602..fb93f3819c 100644 --- a/node_modules/@typescript-eslint/eslint-plugin/docs/rules/no-loss-of-precision.md +++ b/node_modules/@typescript-eslint/eslint-plugin/docs/rules/no-loss-of-precision.md @@ -6,7 +6,5 @@ description: 'Disallow literal numbers that lose precision.' > > See **https://typescript-eslint.io/rules/no-loss-of-precision** for documentation. -## Examples - This rule extends the base [`eslint/no-loss-of-precision`](https://eslint.org/docs/rules/no-loss-of-precision) rule. It adds support for [numeric separators](https://github.com/tc39/proposal-numeric-separator). diff --git a/node_modules/@typescript-eslint/eslint-plugin/docs/rules/no-magic-numbers.md b/node_modules/@typescript-eslint/eslint-plugin/docs/rules/no-magic-numbers.md index 258af4dd4c..47a5fbd30a 100644 --- a/node_modules/@typescript-eslint/eslint-plugin/docs/rules/no-magic-numbers.md +++ b/node_modules/@typescript-eslint/eslint-plugin/docs/rules/no-magic-numbers.md @@ -6,8 +6,6 @@ description: 'Disallow magic numbers.' > > See **https://typescript-eslint.io/rules/no-magic-numbers** for documentation. -## Examples - This rule extends the base [`eslint/no-magic-numbers`](https://eslint.org/docs/rules/no-magic-numbers) rule. It adds support for: diff --git a/node_modules/@typescript-eslint/eslint-plugin/docs/rules/no-redeclare.md b/node_modules/@typescript-eslint/eslint-plugin/docs/rules/no-redeclare.md index faef214667..5496aa9053 100644 --- a/node_modules/@typescript-eslint/eslint-plugin/docs/rules/no-redeclare.md +++ b/node_modules/@typescript-eslint/eslint-plugin/docs/rules/no-redeclare.md @@ -6,8 +6,6 @@ description: 'Disallow variable redeclaration.' > > See **https://typescript-eslint.io/rules/no-redeclare** for documentation. -## Examples - This rule extends the base [`eslint/no-redeclare`](https://eslint.org/docs/rules/no-redeclare) rule. It adds support for TypeScript function overloads, and declaration merging. diff --git a/node_modules/@typescript-eslint/eslint-plugin/docs/rules/no-restricted-imports.md b/node_modules/@typescript-eslint/eslint-plugin/docs/rules/no-restricted-imports.md index 900a9cdd03..551a2c2500 100644 --- a/node_modules/@typescript-eslint/eslint-plugin/docs/rules/no-restricted-imports.md +++ b/node_modules/@typescript-eslint/eslint-plugin/docs/rules/no-restricted-imports.md @@ -6,8 +6,6 @@ description: 'Disallow specified modules when loaded by `import`.' > > See **https://typescript-eslint.io/rules/no-restricted-imports** for documentation. -## Examples - This rule extends the base [`eslint/no-restricted-imports`](https://eslint.org/docs/rules/no-restricted-imports) rule. ## Options diff --git a/node_modules/@typescript-eslint/eslint-plugin/docs/rules/no-shadow.md b/node_modules/@typescript-eslint/eslint-plugin/docs/rules/no-shadow.md index 1dfadba55a..2623eeca6d 100644 --- a/node_modules/@typescript-eslint/eslint-plugin/docs/rules/no-shadow.md +++ b/node_modules/@typescript-eslint/eslint-plugin/docs/rules/no-shadow.md @@ -6,8 +6,6 @@ description: 'Disallow variable declarations from shadowing variables declared i > > See **https://typescript-eslint.io/rules/no-shadow** for documentation. -## Examples - This rule extends the base [`eslint/no-shadow`](https://eslint.org/docs/rules/no-shadow) rule. It adds support for TypeScript's `this` parameters and global augmentation, and adds options for TypeScript features. diff --git a/node_modules/@typescript-eslint/eslint-plugin/docs/rules/no-unused-expressions.md b/node_modules/@typescript-eslint/eslint-plugin/docs/rules/no-unused-expressions.md index 4e439431d4..6bec1ef7d6 100644 --- a/node_modules/@typescript-eslint/eslint-plugin/docs/rules/no-unused-expressions.md +++ b/node_modules/@typescript-eslint/eslint-plugin/docs/rules/no-unused-expressions.md @@ -6,7 +6,5 @@ description: 'Disallow unused expressions.' > > See **https://typescript-eslint.io/rules/no-unused-expressions** for documentation. -## Examples - This rule extends the base [`eslint/no-unused-expressions`](https://eslint.org/docs/rules/no-unused-expressions) rule. It adds support for optional call expressions `x?.()`, and directive in module declarations. diff --git a/node_modules/@typescript-eslint/eslint-plugin/docs/rules/no-unused-vars.md b/node_modules/@typescript-eslint/eslint-plugin/docs/rules/no-unused-vars.md index 8fd90f74ae..eef57d3830 100644 --- a/node_modules/@typescript-eslint/eslint-plugin/docs/rules/no-unused-vars.md +++ b/node_modules/@typescript-eslint/eslint-plugin/docs/rules/no-unused-vars.md @@ -6,7 +6,22 @@ description: 'Disallow unused variables.' > > See **https://typescript-eslint.io/rules/no-unused-vars** for documentation. -## Examples - This rule extends the base [`eslint/no-unused-vars`](https://eslint.org/docs/rules/no-unused-vars) rule. It adds support for TypeScript features, such as types. + +## Benefits Over TypeScript + +TypeScript provides [`noUnusedLocals`](https://www.typescriptlang.org/tsconfig#noUnusedLocals) and [`noUnusedParameters`](https://www.typescriptlang.org/tsconfig#noUnusedParameters) compiler options that can report errors on unused local variables or parameters, respectively. +Those compiler options can be convenient to use if you don't want to set up ESLint and typescript-eslint. +However: + +- These lint rules are more configurable than TypeScript's compiler options. + - For example, the [`varsIgnorePattern` option](https://eslint.org/docs/latest/rules/no-unused-vars#varsignorepattern) can customize what names are always allowed to be exempted. TypeScript hardcodes its exemptions to names starting with `_`. +- [ESLint can be configured](https://eslint.org/docs/latest/use/configure/rules) within lines, files, and folders. TypeScript compiler options are linked to their TSConfig file. +- Many projects configure TypeScript's reported errors to block builds more aggressively than ESLint complaints. Blocking builds on unused variables can be inconvenient. + +We generally recommend using `@typescript-eslint/no-unused-vars` to flag unused locals and parameters instead of TypeScript. + +:::tip +Editors such as VS Code will still generally "grey out" unused variables even if `noUnusedLocals` and `noUnusedParameters` are not enabled in a project. +::: diff --git a/node_modules/@typescript-eslint/eslint-plugin/docs/rules/no-use-before-define.md b/node_modules/@typescript-eslint/eslint-plugin/docs/rules/no-use-before-define.md index 0350658347..3f36ef746d 100644 --- a/node_modules/@typescript-eslint/eslint-plugin/docs/rules/no-use-before-define.md +++ b/node_modules/@typescript-eslint/eslint-plugin/docs/rules/no-use-before-define.md @@ -6,8 +6,6 @@ description: 'Disallow the use of variables before they are defined.' > > See **https://typescript-eslint.io/rules/no-use-before-define** for documentation. -## Examples - This rule extends the base [`eslint/no-use-before-define`](https://eslint.org/docs/rules/no-use-before-define) rule. It adds support for `type`, `interface` and `enum` declarations. diff --git a/node_modules/@typescript-eslint/eslint-plugin/docs/rules/no-useless-constructor.md b/node_modules/@typescript-eslint/eslint-plugin/docs/rules/no-useless-constructor.md index 0f570ab9e5..df0e3ecce6 100644 --- a/node_modules/@typescript-eslint/eslint-plugin/docs/rules/no-useless-constructor.md +++ b/node_modules/@typescript-eslint/eslint-plugin/docs/rules/no-useless-constructor.md @@ -6,8 +6,6 @@ description: 'Disallow unnecessary constructors.' > > See **https://typescript-eslint.io/rules/no-useless-constructor** for documentation. -## Examples - This rule extends the base [`eslint/no-useless-constructor`](https://eslint.org/docs/rules/no-useless-constructor) rule. It adds support for: diff --git a/node_modules/@typescript-eslint/eslint-plugin/docs/rules/object-curly-spacing.md b/node_modules/@typescript-eslint/eslint-plugin/docs/rules/object-curly-spacing.md index 1b333cae45..91b2421375 100644 --- a/node_modules/@typescript-eslint/eslint-plugin/docs/rules/object-curly-spacing.md +++ b/node_modules/@typescript-eslint/eslint-plugin/docs/rules/object-curly-spacing.md @@ -6,7 +6,5 @@ description: 'Enforce consistent spacing inside braces.' > > See **https://typescript-eslint.io/rules/object-curly-spacing** for documentation. -## Examples - This rule extends the base [`eslint/object-curly-spacing`](https://eslint.org/docs/rules/object-curly-spacing) rule. It adds support for TypeScript's object types. diff --git a/node_modules/@typescript-eslint/eslint-plugin/docs/rules/padding-line-between-statements.md b/node_modules/@typescript-eslint/eslint-plugin/docs/rules/padding-line-between-statements.md index 5387cacac3..6d2904e57c 100644 --- a/node_modules/@typescript-eslint/eslint-plugin/docs/rules/padding-line-between-statements.md +++ b/node_modules/@typescript-eslint/eslint-plugin/docs/rules/padding-line-between-statements.md @@ -6,8 +6,6 @@ description: 'Require or disallow padding lines between statements.' > > See **https://typescript-eslint.io/rules/padding-line-between-statements** for documentation. -## Examples - This rule extends the base [`eslint/padding-line-between-statements`](https://eslint.org/docs/rules/padding-line-between-statements) rule. It adds support for TypeScript constructs such as `interface` and `type`. diff --git a/node_modules/@typescript-eslint/eslint-plugin/docs/rules/quotes.md b/node_modules/@typescript-eslint/eslint-plugin/docs/rules/quotes.md index b67c5dc896..62c6051c40 100644 --- a/node_modules/@typescript-eslint/eslint-plugin/docs/rules/quotes.md +++ b/node_modules/@typescript-eslint/eslint-plugin/docs/rules/quotes.md @@ -6,7 +6,5 @@ description: 'Enforce the consistent use of either backticks, double, or single > > See **https://typescript-eslint.io/rules/quotes** for documentation. -## Examples - This rule extends the base [`eslint/quotes`](https://eslint.org/docs/rules/quotes) rule. It adds support for TypeScript features which allow quoted names, but not backtick quoted names. diff --git a/node_modules/@typescript-eslint/eslint-plugin/docs/rules/require-await.md b/node_modules/@typescript-eslint/eslint-plugin/docs/rules/require-await.md index dcc86305d2..e2ca2af1d5 100644 --- a/node_modules/@typescript-eslint/eslint-plugin/docs/rules/require-await.md +++ b/node_modules/@typescript-eslint/eslint-plugin/docs/rules/require-await.md @@ -6,11 +6,11 @@ description: 'Disallow async functions which have no `await` expression.' > > See **https://typescript-eslint.io/rules/require-await** for documentation. -## Examples - This rule extends the base [`eslint/require-await`](https://eslint.org/docs/rules/require-await) rule. It uses type information to add support for `async` functions that return a `Promise`. +## Examples + Examples of **correct** code for this rule: ```ts diff --git a/node_modules/@typescript-eslint/eslint-plugin/docs/rules/semi.md b/node_modules/@typescript-eslint/eslint-plugin/docs/rules/semi.md index 16622a1d85..da30f0d9dd 100644 --- a/node_modules/@typescript-eslint/eslint-plugin/docs/rules/semi.md +++ b/node_modules/@typescript-eslint/eslint-plugin/docs/rules/semi.md @@ -6,10 +6,6 @@ description: 'Require or disallow semicolons instead of ASI.' > > See **https://typescript-eslint.io/rules/semi** for documentation. -This rule enforces consistent use of semicolons after statements. - -## Examples - This rule extends the base [`eslint/semi`](https://eslint.org/docs/rules/semi) rule. It adds support for TypeScript features that require semicolons. diff --git a/node_modules/@typescript-eslint/eslint-plugin/docs/rules/space-before-blocks.md b/node_modules/@typescript-eslint/eslint-plugin/docs/rules/space-before-blocks.md index 716de2294f..60a24043d3 100644 --- a/node_modules/@typescript-eslint/eslint-plugin/docs/rules/space-before-blocks.md +++ b/node_modules/@typescript-eslint/eslint-plugin/docs/rules/space-before-blocks.md @@ -6,8 +6,6 @@ description: 'Enforce consistent spacing before blocks.' > > See **https://typescript-eslint.io/rules/space-before-blocks** for documentation. -## Examples - This rule extends the base [`eslint/space-before-blocks`](https://eslint.org/docs/rules/space-before-blocks) rule. It adds support for interfaces and enums. diff --git a/node_modules/@typescript-eslint/eslint-plugin/docs/rules/space-before-function-paren.md b/node_modules/@typescript-eslint/eslint-plugin/docs/rules/space-before-function-paren.md index f2c1b5e846..92180ced2b 100644 --- a/node_modules/@typescript-eslint/eslint-plugin/docs/rules/space-before-function-paren.md +++ b/node_modules/@typescript-eslint/eslint-plugin/docs/rules/space-before-function-paren.md @@ -6,7 +6,5 @@ description: 'Enforce consistent spacing before function parenthesis.' > > See **https://typescript-eslint.io/rules/space-before-function-paren** for documentation. -## Examples - This rule extends the base [`eslint/space-before-function-paren`](https://eslint.org/docs/rules/space-before-function-paren) rule. It adds support for generic type parameters on function calls. diff --git a/node_modules/@typescript-eslint/eslint-plugin/package.json b/node_modules/@typescript-eslint/eslint-plugin/package.json index 3b4875c9ad..72a21db643 100644 --- a/node_modules/@typescript-eslint/eslint-plugin/package.json +++ b/node_modules/@typescript-eslint/eslint-plugin/package.json @@ -1,6 +1,6 @@ { "name": "@typescript-eslint/eslint-plugin", - "version": "6.2.0", + "version": "6.2.1", "description": "TypeScript plugin for ESLint", "files": [ "dist", @@ -57,10 +57,10 @@ }, "dependencies": { "@eslint-community/regexpp": "^4.5.1", - "@typescript-eslint/scope-manager": "6.2.0", - "@typescript-eslint/type-utils": "6.2.0", - "@typescript-eslint/utils": "6.2.0", - "@typescript-eslint/visitor-keys": "6.2.0", + "@typescript-eslint/scope-manager": "6.2.1", + "@typescript-eslint/type-utils": "6.2.1", + "@typescript-eslint/utils": "6.2.1", + "@typescript-eslint/visitor-keys": "6.2.1", "debug": "^4.3.4", "graphemer": "^1.4.0", "ignore": "^5.2.4", @@ -74,8 +74,8 @@ "@types/marked": "*", "@types/natural-compare": "*", "@types/prettier": "*", - "@typescript-eslint/rule-schema-to-typescript-types": "6.2.0", - "@typescript-eslint/rule-tester": "6.2.0", + "@typescript-eslint/rule-schema-to-typescript-types": "6.2.1", + "@typescript-eslint/rule-tester": "6.2.1", "ajv": "^6.12.6", "chalk": "^5.3.0", "cross-fetch": "*", @@ -100,5 +100,5 @@ "type": "opencollective", "url": "https://opencollective.com/typescript-eslint" }, - "gitHead": "c869aa1792ed8e3c89d5ada2df8c00f8fe36526a" + "gitHead": "948b0614626c1c737ec30106425ef4a9b8c33dbf" } diff --git a/node_modules/@typescript-eslint/parser/package.json b/node_modules/@typescript-eslint/parser/package.json index dc36e41b22..a37ff92531 100644 --- a/node_modules/@typescript-eslint/parser/package.json +++ b/node_modules/@typescript-eslint/parser/package.json @@ -1,6 +1,6 @@ { "name": "@typescript-eslint/parser", - "version": "6.2.0", + "version": "6.2.1", "description": "An ESLint custom parser which leverages TypeScript ESTree", "files": [ "dist", @@ -51,10 +51,10 @@ "eslint": "^7.0.0 || ^8.0.0" }, "dependencies": { - "@typescript-eslint/scope-manager": "6.2.0", - "@typescript-eslint/types": "6.2.0", - "@typescript-eslint/typescript-estree": "6.2.0", - "@typescript-eslint/visitor-keys": "6.2.0", + "@typescript-eslint/scope-manager": "6.2.1", + "@typescript-eslint/types": "6.2.1", + "@typescript-eslint/typescript-estree": "6.2.1", + "@typescript-eslint/visitor-keys": "6.2.1", "debug": "^4.3.4" }, "devDependencies": { @@ -77,5 +77,5 @@ ] } }, - "gitHead": "c869aa1792ed8e3c89d5ada2df8c00f8fe36526a" + "gitHead": "948b0614626c1c737ec30106425ef4a9b8c33dbf" } diff --git a/node_modules/@typescript-eslint/scope-manager/dist/referencer/ClassVisitor.js b/node_modules/@typescript-eslint/scope-manager/dist/referencer/ClassVisitor.js index 96420a6d0f..1c492a119a 100644 --- a/node_modules/@typescript-eslint/scope-manager/dist/referencer/ClassVisitor.js +++ b/node_modules/@typescript-eslint/scope-manager/dist/referencer/ClassVisitor.js @@ -150,7 +150,7 @@ class ClassVisitor extends Visitor_1.Visitor { */ if (!withMethodDecorators && methodNode.kind === 'constructor' && - __classPrivateFieldGet(this, _ClassVisitor_classNode, "f").decorators) { + __classPrivateFieldGet(this, _ClassVisitor_classNode, "f").decorators.length) { withMethodDecorators = true; } // Process parameter declarations. diff --git a/node_modules/@typescript-eslint/scope-manager/dist/referencer/ClassVisitor.js.map b/node_modules/@typescript-eslint/scope-manager/dist/referencer/ClassVisitor.js.map index d1f7bd9fd0..45a98f01c7 100644 --- a/node_modules/@typescript-eslint/scope-manager/dist/referencer/ClassVisitor.js.map +++ b/node_modules/@typescript-eslint/scope-manager/dist/referencer/ClassVisitor.js.map @@ -1 +1 @@ -{"version":3,"file":"ClassVisitor.js","sourceRoot":"","sources":["../../src/referencer/ClassVisitor.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;AACA,oDAA0D;AAE1D,8CAAyE;AAEzE,+CAA4C;AAC5C,uCAAoC;AAEpC,MAAM,YAAa,SAAQ,iBAAO;IAKhC,YACE,UAAsB,EACtB,IAA0D,EAC1D,qBAA8B;QAE9B,KAAK,CAAC,UAAU,CAAC,CAAC;QATX,0CAAiE;QACjE,2CAAwB;QACxB,sDAAgC;QAQvC,uBAAA,IAAI,4BAAe,UAAU,MAAA,CAAC;QAC9B,uBAAA,IAAI,2BAAc,IAAI,MAAA,CAAC;QACvB,uBAAA,IAAI,uCAA0B,qBAAqB,MAAA,CAAC;IACtD,CAAC;IAED,MAAM,CAAC,KAAK,CACV,UAAsB,EACtB,IAA0D,EAC1D,qBAA8B;QAE9B,MAAM,YAAY,GAAG,IAAI,YAAY,CACnC,UAAU,EACV,IAAI,EACJ,qBAAqB,CACtB,CAAC;QACF,YAAY,CAAC,UAAU,CAAC,IAAI,CAAC,CAAC;IAChC,CAAC;IAED,KAAK,CAAC,IAAsC;QAC1C,+DAA+D;QAC/D,IAAI,IAAI,IAAI,IAAI,CAAC,IAAI,IAAI,IAAI,EAAE;YAC7B,KAAK,CAAC,KAAK,CAAC,IAAI,CAAC,CAAC;SACnB;aAAM;YACL,uBAAA,IAAI,gCAAY,CAAC,KAAK,CAAC,IAAI,CAAC,CAAC;SAC9B;IACH,CAAC;IAED,mBAAmB;IACnB,mBAAmB;IACnB,mBAAmB;IAET,UAAU,CAClB,IAA0D;QAE1D,IAAI,IAAI,CAAC,IAAI,KAAK,sBAAc,CA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B;QAC5C,uBAAA,IAAI,gCAAY,CAAC,KAAK,CAAC,IAAI,CAAC,CAAC;IAC/B,CAAC;IAES,iBAAiB;QACzB,qBAAqB;IACvB,CAAC;IAES,WAAW,CAAC,IAA0B;QAC9C,uBAAA,IAAI,gCAAY,CAAC,YAAY,CAAC,yBAAyB,CAAC,IAAI,CAAC,CAAC;QAE9D,IAAI,CAAC,IAAI,CAAC,OAAO,CAAC,CAAC,CAAC,EAAE,CAAC,IAAI,CAAC,KAAK,CAAC,CAAC,CAAC,CAAC,CAAC;QAEtC,uBAAA,IAAI,gCAAY,CAAC,KAAK,CAAC,IAAI,CAAC,CAAC;IAC/B,CAAC;CACF;AAsCQ,oCAAY;;AApCrB;;;;;;;;;;;;;;;;;;;GAmBG;AACH,SAAS,uBAAuB,CAC9B,IAA+B;IAE/B,IAAI,IAAI,CAAC,QAAQ,IAAI,IAAI,CAAC,GAAG,CAAC,IAAI,KAAK,sBAAc,CAAC,OAAO,EAAE;QAC7D,IACE,OAAO,IAAI,CAAC,GAAG,CAAC,KAAK,KAAK,QAAQ;YAClC,OAAO,IAAI,CAAC,GAAG,CAAC,KAAK,KAAK,QAAQ,EAClC;YACA,OAAO,IAAI,CAAC,GAAG,CAAC,KAAK,CAAC;SACvB;KACF;SAAM,IAAI,CAAC,IAAI,CAAC,QAAQ,IAAI,IAAI,CAAC,GAAG,CAAC,IAAI,KAAK,sBAAc,CAAC,UAAU,EAAE;QACxE,OAAO,IAAI,CAAC,GAAG,CAAC,IAAI,CAAC;KACtB;IACD,OAAO,IAAI,CAAC;AACd,CAAC"} \ No newline at end of file diff --git a/node_modules/@typescript-eslint/scope-manager/package.json b/node_modules/@typescript-eslint/scope-manager/package.json index 5aed2554cd..4f9248349b 100644 --- a/node_modules/@typescript-eslint/scope-manager/package.json +++ b/node_modules/@typescript-eslint/scope-manager/package.json @@ -1,6 +1,6 @@ { "name": "@typescript-eslint/scope-manager", - "version": "6.2.0", + "version": "6.2.1", "description": "TypeScript scope analyser for ESLint", "files": [ "dist", @@ -44,12 +44,12 @@ "typecheck": "nx typecheck" }, "dependencies": { - "@typescript-eslint/types": "6.2.0", - "@typescript-eslint/visitor-keys": "6.2.0" + "@typescript-eslint/types": "6.2.1", + "@typescript-eslint/visitor-keys": "6.2.1" }, "devDependencies": { "@types/glob": "*", - "@typescript-eslint/typescript-estree": "6.2.0", + "@typescript-eslint/typescript-estree": "6.2.1", "glob": "*", "jest-specific-snapshot": "*", "make-dir": "*", @@ -69,5 +69,5 @@ ] } }, - "gitHead": "c869aa1792ed8e3c89d5ada2df8c00f8fe36526a" + "gitHead": "948b0614626c1c737ec30106425ef4a9b8c33dbf" } diff --git a/node_modules/@typescript-eslint/type-utils/dist/predicates.d.ts.map b/node_modules/@typescript-eslint/type-utils/dist/predicates.d.ts.map index 9ed94ed758..e78fb2e36e 100644 --- a/node_modules/@typescript-eslint/type-utils/dist/predicates.d.ts.map +++ b/node_modules/@typescript-eslint/type-utils/dist/predicates.d.ts.map @@ -1 +1 @@ -{"version":3,"file":"predicates.d.ts","sourceRoot":"","sources":["../src/predicates.ts"],"names":[],"mappings":"AAEA,OAAO,KAAK,EAAE,MAAM,YAAY,CAAC;AAOjC;;;GAGG;AACH,wBAAgB,cAAc,CAC5B,IAAI,EAAE,EAAE,CAAC,IAAI,EACb,EACE,UAAkB,EAClB,cAAqB,GACtB,GAAE;IAAE,UAAU,CAAC,EAAE,OAAO,CAAC;IAAC,cAAc,CAAC,EAAE,OAAO,CAAA;CAAO,GACzD,OAAO,CAYT;AAED;;;GAGG;AACH,wBAAgB,kCAAkC,CAChD,IAAI,EAAE,EAAE,CAAC,IAAI,EACb,OAAO,EAAE,EAAE,CAAC,WAAW,GACtB,OAAO,CAQT;AAED;;GAEG;AACH,wBAAgB,eAAe,CAAC,IAAI,EAAE,EAAE,CAAC,IAAI,GAAG,OAAO,CAEtD;AAED;;GAEG;AACH,wBAAgB,iBAAiB,CAAC,IAAI,EAAE,EAAE,CAAC,IAAI,GAAG,OAAO,CAExD;AAYD,wBAAgB,mBAAmB,CAAC,IAAI,EAAE,EAAE,CAAC,IAAI,GAAG,IAAI,IAAI,EAAE,CAAC,aAAa,CAM3E;AAED;;GAEG;AACH,wBAAgB,aAAa,CAAC,IAAI,EAAE,EAAE,CAAC,IAAI,GAAG,OAAO,CAQpD;AAED;;GAEG;AACH,wBAAgB,kBAAkB,CAChC,IAAI,EAAE,EAAE,CAAC,IAAI,EACb,OAAO,EAAE,EAAE,CAAC,WAAW,GACtB,OAAO,CAQT;AAED;;GAEG;AACH,wBAAgB,sBAAsB,CACpC,IAAI,EAAE,EAAE,CAAC,IAAI,EACb,OAAO,EAAE,EAAE,CAAC,WAAW,GACtB,OAAO,CAQT;AAED,oBAAY,OAAO;IACjB,GAAG,IAAA;IACH,QAAQ,IAAA;IACR,IAAI,IAAA;CACL;AACD;;;GAGG;AACH,wBAAgB,gCAAgC,CAC9C,IAAI,EAAE,EAAE,CAAC,IAAI,EACb,OAAO,EAAE,EAAE,CAAC,WAAW,GACtB,OAAO,CAST;AAED;;GAEG;AACH,wBAAgB,mBAAmB,CACjC,IAAI,EAAE,EAAE,CAAC,IAAI,EACb,UAAU,EAAE,EAAE,CAAC,IAAI,GAClB,OAAO,CAqBT;AAED,wBAAgB,uBAAuB,CACrC,IAAI,EAAE,EAAE,CAAC,IAAI,GACZ,IAAI,IAAI,EAAE,CAAC,iBAAiB,CAE9B;AAED,wBAAgB,yBAAyB,CACvC,IAAI,EAAE,EAAE,CAAC,IAAI,GACZ,IAAI,IAAI,EAAE,CAAC,mBAAmB,CAEhC"} \ No newline at end of file +{"version":3,"file":"predicates.d.ts","sourceRoot":"","sources":["../src/predicates.ts"],"names":[],"mappings":"AAEA,OAAO,KAAK,EAAE,MAAM,YAAY,CAAC;AAOjC;;;GAGG;AACH,wBAAgB,cAAc,CAC5B,IAAI,EAAE,EAAE,CAAC,IAAI,EACb,EACE,UAAkB,EAClB,cAAqB,GACtB,GAAE;IAAE,UAAU,CAAC,EAAE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;AAED,wBAAgB,yBAAyB,CACvC,IAAI,EAAE,EAAE,CAAC,IAAI,GACZ,IAAI,IAAI,EAAE,CAAC,mBAAmB,CAEhC"} \ No newline at end of file diff --git a/node_modules/@typescript-eslint/type-utils/dist/predicates.js b/node_modules/@typescript-eslint/type-utils/dist/predicates.js index 8fd37a1e02..649b252aaa 100644 --- a/node_modules/@typescript-eslint/type-utils/dist/predicates.js +++ b/node_modules/@typescript-eslint/type-utils/dist/predicates.js @@ -45,9 +45,7 @@ function isNullableType(type, { isReceiver = false, allowUndefined = true, } = { if (allowUndefined) { return (flags & (ts.TypeFlags.Null | ts.TypeFlags.Undefined)) !== 0; } - else { - return (flags & ts.TypeFlags.Null) !== 0; - } + return (flags & ts.TypeFlags.Null) !== 0; } exports.isNullableType = isNullableType; /** diff --git a/node_modules/@typescript-eslint/type-utils/dist/predicates.js.map b/node_modules/@typescript-eslint/type-utils/dist/predicates.js.map index 5c85117d3d..1be79fdc56 100644 --- a/node_modules/@typescript-eslint/type-utils/dist/predicates.js.map +++ b/node_modules/@typescript-eslint/type-utils/dist/predicates.js.map @@ -1 +1 @@ -{"version":3,"file":"predicates.js","sourceRoot":"","sources":["../src/predicates.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAAA,kDAA0B;AAC1B,sDAAwC;AACxC,+CAAiC;AAEjC,yDAAsD;AACtD,mDAA8D;AAE9D,MAAM,GAAG,GAAG,IAAA,eAAK,EAAC,6CAA6C,CAAC,CAAC;AAEjE;;;GAGG;AACH,SAAgB,cAAc,CAC5B,IAAa,EACb,EACE,UAAU,GAAG,KAAK,EAClB,cAAc,GAAG,IAAI,MACiC,EAAE;IAE1D,MAAM,KAAK,GAAG,IAAA,4BAAY,EAAC,IAAI,CAAC,CAAC;IAEjC,IAAI,UAAU,IAAI,KAAK,GAAG,CAAC,EAAE,CAAC,SAAS,CAAC,GAAG,GAAG,EAAE,CAAC,SAAS,CAAC,OAAO,CAAC,EAAE;QACnE,OA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AAE,EAAE,CAAC,SAAS,CAAC,eAAe,CAAC,CAAC;AAC3D,CAAC;AAJD,8DAIC"} \ No newline at end of file +{"version":3,"file":"predicates.js","sourceRoot":"","sources":["../src/predicates.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAAA,kDAA0B;AAC1B,sDAAwC;AACxC,+CAAiC;AAEjC,yDAAsD;AACtD,mDAA8D;AAE9D,MAAM,GAAG,GAAG,IAAA,eAAK,EAAC,6CAA6C,CAAC,CAAC;AAEjE;;;GAGG;AACH,SAAgB,cAAc,CAC5B,IAAa,EACb,EACE,UAAU,GAAG,KAAK,EAClB,cAAc,GAAG,IAAI,MACiC,EAAE;IAE1D,MAAM,KAAK,GAAG,IAAA,4BAAY,EAAC,IAAI,CAAC,CAAC;IAEjC,IAAI,UAAU,IAAI,KAAK,GAAG,CAAC,EAAE,CAAC,SAAS,CAAC,GAAG,GAAG,EAAE,CAAC,SAAS,CAAC,OAAO,CAAC,EAAE;QACnE,OAAO,IAAI,CAAC;KACb;IAED,IAAI,cAAc,EAAE;QAClB,OAAO,CAAC,KAAK,GAAG,CAAC,EAAE,CAAC,SAAS,CAAC,IAAI,GAAG,EAAE,CAAC,SAAS,CAAC,SAAS,CAAC,CAAC,KAAK,CAAC,CAAC;KACrE;IACD,OAAO,CAAC,KAAK,GAAG,EAAE,CAAC,SAAS,CAAC,IAAI,CAAC,KAAK,CAAC,CAAC;AAC3C,CAAC;AAjBD,wCAiBC;AAED;;;GAGG;AACH,SAAgB,kCAAkC,CAChD,IAAa,EACb,OAAuB;IAEvB,KAAK,MAAM,CAAC,IAAI,OAAO,CAAC,cAAc,CAAC,IAAI,CAAC,EAAE;QAC5C,IAAI,CAAC,OAAO,CAAC,WAAW,CAAC,CAAC,CAAC,EAAE;YAC3B,OAAO,KAAK,CAAC;SACd;KACF;IAED,OAAO,IAAI,CAAC;AACd,CAAC;AAXD,gFAWC;AAED;;GAEG;AACH,SAAgB,eAAe,CAAC,IAAa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;IAChC,MAAM,aAAa,GAAG,IAAI,CAAC,YAAY,EAAE,CAAC;IAE1C,IAAI,aAAa,EAAE;QACjB,gBAAgB,CAAC,IAAI,CAAC,GAAG,aAAa,CAAC,CAAC;KACzC;IAED,KAAK,MAAM,QAAQ,IAAI,gBAAgB,EAAE;QACvC,MAAM,UAAU,GAAG,QAAQ,CAAC,SAAS,EAAE,CAAC;QACxC,IAAI,UAAU,IAAI,UAAU,CAAC,IAAI,KAAK,YAAY,CAAC,IAAI,EAAE;YACvD,OAAO,IAAI,CAAC;SACb;KACF;IAED,OAAO,KAAK,CAAC;AACf,CAAC;AAxBD,kDAwBC;AAED,SAAgB,uBAAuB,CACrC,IAAa;IAEb,OAAO,IAAA,6BAAa,EAAC,IAAI,EAAE,EAAE,CAAC,SAAS,CAAC,aAAa,CAAC,CAAC;AACzD,CAAC;AAJD,0DAIC;AAED,SAAgB,yBAAyB,CACvC,IAAa;IAEb,OAAO,IAAA,6BAAa,EAAC,IAAI,EAAE,EAAE,CAAC,SAAS,CAAC,eAAe,CAAC,CAAC;AAC3D,CAAC;AAJD,8DAIC"} \ No newline at end of file diff --git a/node_modules/@typescript-eslint/type-utils/package.json b/node_modules/@typescript-eslint/type-utils/package.json index 625491aacf..827f0ed8f4 100644 --- a/node_modules/@typescript-eslint/type-utils/package.json +++ b/node_modules/@typescript-eslint/type-utils/package.json @@ -1,6 +1,6 @@ { "name": "@typescript-eslint/type-utils", - "version": "6.2.0", + "version": "6.2.1", "description": "Type utilities for working with TypeScript + ESLint together", "files": [ "dist", @@ -45,13 +45,13 @@ "typecheck": "tsc -p tsconfig.json --noEmit" }, "dependencies": { - "@typescript-eslint/typescript-estree": "6.2.0", - "@typescript-eslint/utils": "6.2.0", + "@typescript-eslint/typescript-estree": "6.2.1", + "@typescript-eslint/utils": "6.2.1", "debug": "^4.3.4", "ts-api-utils": "^1.0.1" }, "devDependencies": { - "@typescript-eslint/parser": "6.2.0", + "@typescript-eslint/parser": "6.2.1", "ajv": "^8.12.0", "typescript": "*" }, @@ -74,5 +74,5 @@ ] } }, - "gitHead": "c869aa1792ed8e3c89d5ada2df8c00f8fe36526a" + "gitHead": "948b0614626c1c737ec30106425ef4a9b8c33dbf" } diff --git a/node_modules/@typescript-eslint/types/package.json b/node_modules/@typescript-eslint/types/package.json index 926ff8f3cf..fe80f4cfc6 100644 --- a/node_modules/@typescript-eslint/types/package.json +++ b/node_modules/@typescript-eslint/types/package.json @@ -1,6 +1,6 @@ { "name": "@typescript-eslint/types", - "version": "6.2.0", + "version": "6.2.1", "description": "Types for the TypeScript-ESTree AST spec", "files": [ "dist", @@ -86,5 +86,5 @@ ] } }, - "gitHead": "c869aa1792ed8e3c89d5ada2df8c00f8fe36526a" + "gitHead": "948b0614626c1c737ec30106425ef4a9b8c33dbf" } diff --git a/node_modules/@typescript-eslint/typescript-estree/dist/convert.d.ts.map b/node_modules/@typescript-eslint/typescript-estree/dist/convert.d.ts.map index fca37ad2cb..3ddbd51c84 100644 --- a/node_modules/@typescript-eslint/typescript-estree/dist/convert.d.ts.map +++ b/node_modules/@typescript-eslint/typescript-estree/dist/convert.d.ts.map @@ -1 +1 @@ -{"version":3,"file":"convert.d.ts","sourceRoot":"","sources":["../src/convert.ts"],"names":[],"mappings":"AAEA,OAAO,KAAK,EAAE,MAAM,YAAY,CAAC;AAGjC,OAAO,KAAK,EAAE,OAAO,EAAE,MAAM,cAAc,CAAC;AA2B5C,OAAO,KAAK,EACV,aAAa,EACb,2BAA2B,EAC5B,MAAM,kBAAkB,CAAC;AAC1B,OAAO,KAAK,EAAE,wBAAwB,EAAE,MAAM,gCAAgC,CAAC;AAC/E,OAAO,KAAK,EAAE,QAAQ,EAAoB,MAAM,EAAE,MAAM,aAAa,CAAC;AAKtE,MAAM,WAAW,gBAAgB;IAC/B,eAAe,CAAC,EAAE,OAAO,CAAC;IAC1B,qBAAqB,CAAC,EAAE,OAAO,CAAC;IAChC,sBAAsB,CAAC,EAAE,OAAO,CAAC;IACjC,kCAAk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D,OAAO,CAAC,QAAQ,CAAC,qBAAqB,CAAiB;IAEvD,OAAO,CAAC,YAAY,CAAS;IAE7B;;;;;OAKG;gBACS,GAAG,EAAE,EAAE,CAAC,UAAU,EAAE,OAAO,CAAC,EAAE,gBAAgB;IAK1D,UAAU,IAAI,OAAO;IAOrB,cAAc,IAAI,QAAQ,CAAC,OAAO;IAIlC;;;;;;OAMG;IACH,OAAO,CAAC,SAAS;IA8BjB;;;;;OAKG;IACH,OAAO,CAAC,UAAU;IAkElB;;OAEG;IACH,OAAO,CAAC,uBAAuB;IAW/B;;;;;OAKG;IACH,OAAO,CAAC,cAAc;IAItB;;;;;OAKG;IACH,OAAO,CAAC,YAAY;IAIpB,OAAO,CAAC,UAAU;IAelB,OAAO,CAAC,oCAAoC;IAe5C;;;;;;OAMG;IACH,OAAO,CAAC,qBAAqB;IAsB7B;;;;;OAKG;IACH,OAAO,CAAC,sBAAsB;IAiC9B;;;;;OAKG;IACH,OAAO,CAAC,gDAAgD;IAexD;;;;OAIG;IACH,OAAO,CAAC,kDAAkD;IAmB1D;;;;OAIG;IACH,OAAO,CAAC,iBAAiB;IAgBzB,OAAO,CAAC,sBAAsB;IA4C9B;;;;OAIG;IACH,OAAO,CAAC,UAAU;IA+FlB,OAAO,CAAC,oBAAoB;IAW5B,OAAO,CAAC,+BAA+B;IAiDvC;;;;;OAKG;IACH,OAAO,CAAC,iBAAiB;IA8BzB,OAAO,CAAC,sBAAsB;IAoC9B,OAAO,CAAC,mBAAmB;IAQ3B;;;;OAIG;IACH,OAAO,CAAC,iBAAiB;IAczB,OAAO,CAAC,qBAAqB;IAsB7B;;;;;;;OAOG;IACH,OAAO,CAAC,WAAW;CAwmFpB"} \ No newline at end of file diff --git a/node_modules/@typescript-eslint/typescript-estree/dist/convert.js b/node_modules/@typescript-eslint/typescript-estree/dist/convert.js index 7c286d4e38..bd63b185a4 100644 --- a/node_modules/@typescript-eslint/typescript-estree/dist/convert.js +++ b/node_modules/@typescript-eslint/typescript-estree/dist/convert.js @@ -123,21 +123,19 @@ class Converter { exportKind: 'value', }); } - else { - const isType = result.type === ts_estree_1.AST_NODE_TYPES.TSInterfaceDeclaration || - result.type === ts_estree_1.AST_NODE_TYPES.TSTypeAliasDeclaration; - const isDeclare = 'declare' in result && result.declare === true; - return this.createNode(node, { - type: ts_estree_1.AST_NODE_TYPES.ExportNamedDeclaration, - // @ts-expect-error - TODO, narrow the types here - declaration: result, - specifiers: [], - source: null, - exportKind: isType || isDeclare ? 'type' : 'value', - range: [exportKeyword.getStart(this.ast), result.range[1]], - assertions: [], - }); - } + const isType = result.type === ts_estree_1.AST_NODE_TYPES.TSInterfaceDeclaration || + result.type === ts_estree_1.AST_NODE_TYPES.TSTypeAliasDeclaration; + const isDeclare = 'declare' in result && result.declare === true; + return this.createNode(node, { + type: ts_estree_1.AST_NODE_TYPES.ExportNamedDeclaration, + // @ts-expect-error - TODO, narrow the types here + declaration: result, + specifiers: [], + source: null, + exportKind: isType || isDeclare ? 'type' : 'value', + range: [exportKeyword.getStart(this.ast), result.range[1]], + assertions: [], + }); } return result; } @@ -230,9 +228,7 @@ class Converter { child.directive = raw.slice(1, -1); return child; // child can be null, but it's filtered below } - else { - allowDirectives = false; - } + allowDirectives = false; } return child; // child can be null, but it's filtered below }) @@ -780,12 +776,10 @@ class Converter { typeAnnotation: undefined, }); } - else { - return this.createNode(node, { - type: ts_estree_1.AST_NODE_TYPES.ArrayExpression, - elements: node.elements.map(el => this.convertChild(el)), - }); - } + return this.createNode(node, { + type: ts_estree_1.AST_NODE_TYPES.ArrayExpression, + elements: node.elements.map(el => this.convertChild(el)), + }); } case SyntaxKind.ObjectLiteralExpression: { // TypeScript uses ObjectLiteralExpression in destructuring assignment, too @@ -864,18 +858,16 @@ class Converter { kind: 'init', }); } - else { - return this.createNode(node, { - type: ts_estree_1.AST_NODE_TYPES.Property, - computed: false, - key: this.convertChild(node.name), - kind: 'init', - method: false, - optional: false, - shorthand: true, - value: this.convertChild(node.name), - }); - } + return this.createNode(node, { + type: ts_estree_1.AST_NODE_TYPES.Property, + computed: false, + key: this.convertChild(node.name), + kind: 'init', + method: false, + optional: false, + shorthand: true, + value: this.convertChild(node.name), + }); } case SyntaxKind.ComputedPropertyName: return this.convertChild(node.expression); @@ -1108,48 +1100,44 @@ class Converter { value: undefined, }); } - else { - return arrayItem; - } + return arrayItem; + } + let result; + if (node.dotDotDotToken) { + result = this.createNode(node, { + type: ts_estree_1.AST_NODE_TYPES.RestElement, + argument: this.convertChild(node.propertyName ?? node.name), + decorators: [], + optional: false, + typeAnnotation: undefined, + value: undefined, + }); } else { - let result; - if (node.dotDotDotToken) { - result = this.createNode(node, { - type: ts_estree_1.AST_NODE_TYPES.RestElement, - argument: this.convertChild(node.propertyName ?? node.name), - decorators: [], - optional: false, - typeAnnotation: undefined, - value: undefined, - }); - } - else { - result = this.createNode(node, { - type: ts_estree_1.AST_NODE_TYPES.Property, - key: this.convertChild(node.propertyName ?? node.name), - value: this.convertChild(node.name), - computed: Boolean(node.propertyName && - node.propertyName.kind === SyntaxKind.ComputedPropertyName), - method: false, - optional: false, - shorthand: !node.propertyName, - kind: 'init', - }); - } - if (node.initializer) { - result.value = this.createNode(node, { - type: ts_estree_1.AST_NODE_TYPES.AssignmentPattern, - decorators: [], - left: this.convertChild(node.name), - optional: false, - range: [node.name.getStart(this.ast), node.initializer.end], - right: this.convertChild(node.initializer), - typeAnnotation: undefined, - }); - } - return result; + result = this.createNode(node, { + type: ts_estree_1.AST_NODE_TYPES.Property, + key: this.convertChild(node.propertyName ?? node.name), + value: this.convertChild(node.name), + computed: Boolean(node.propertyName && + node.propertyName.kind === SyntaxKind.ComputedPropertyName), + method: false, + optional: false, + shorthand: !node.propertyName, + kind: 'init', + }); } + if (node.initializer) { + result.value = this.createNode(node, { + type: ts_estree_1.AST_NODE_TYPES.AssignmentPattern, + decorators: [], + left: this.convertChild(node.name), + optional: false, + range: [node.name.getStart(this.ast), node.initializer.end], + right: this.convertChild(node.initializer), + typeAnnotation: undefined, + }); + } + return result; } case SyntaxKind.ArrowFunction: { return this.createNode(node, { @@ -1238,12 +1226,10 @@ class Converter { value: undefined, }); } - else { - return this.createNode(node, { - type: ts_estree_1.AST_NODE_TYPES.SpreadElement, - argument: this.convertChild(node.expression), - }); - } + return this.createNode(node, { + type: ts_estree_1.AST_NODE_TYPES.SpreadElement, + argument: this.convertChild(node.expression), + }); } case SyntaxKind.Parameter: { let parameter; @@ -1436,24 +1422,22 @@ class Converter { assertions: this.convertAssertClasue(node.assertClause), }); } - else { - this.assertModuleSpecifier(node, false); - return this.createNode(node, { - type: ts_estree_1.AST_NODE_TYPES.ExportAllDeclaration, - source: this.convertChild(node.moduleSpecifier), - exportKind: node.isTypeOnly ? 'type' : 'value', - exported: - // note - for compat with 3.7.x, where node.exportClause is always undefined and - // SyntaxKind.NamespaceExport does not exist yet (i.e. is undefined), this - // cannot be shortened to an optional chain, or else you end up with - // undefined === undefined, and the true path will hard error at runtime - node.exportClause && - node.exportClause.kind === SyntaxKind.NamespaceExport - ? this.convertChild(node.exportClause.name) - : null, - assertions: this.convertAssertClasue(node.assertClause), - }); - } + this.assertModuleSpecifier(node, false); + return this.createNode(node, { + type: ts_estree_1.AST_NODE_TYPES.ExportAllDeclaration, + source: this.convertChild(node.moduleSpecifier), + exportKind: node.isTypeOnly ? 'type' : 'value', + exported: + // note - for compat with 3.7.x, where node.exportClause is always undefined and + // SyntaxKind.NamespaceExport does not exist yet (i.e. is undefined), this + // cannot be shortened to an optional chain, or else you end up with + // undefined === undefined, and the true path will hard error at runtime + node.exportClause && + node.exportClause.kind === SyntaxKind.NamespaceExport + ? this.convertChild(node.exportClause.name) + : null, + assertions: this.convertAssertClasue(node.assertClause), + }); } case SyntaxKind.ExportSpecifier: return this.createNode(node, { @@ -1469,13 +1453,11 @@ class Converter { expression: this.convertChild(node.expression), }); } - else { - return this.createNode(node, { - type: ts_estree_1.AST_NODE_TYPES.ExportDefaultDeclaration, - declaration: this.convertChild(node.expression), - exportKind: 'value', - }); - } + return this.createNode(node, { + type: ts_estree_1.AST_NODE_TYPES.ExportDefaultDeclaration, + declaration: this.convertChild(node.expression), + exportKind: 'value', + }); // Unary Operations case SyntaxKind.PrefixUnaryExpression: case SyntaxKind.PostfixUnaryExpression: { @@ -1491,14 +1473,12 @@ class Converter { argument: this.convertChild(node.operand), }); } - else { - return this.createNode(node, { - type: ts_estree_1.AST_NODE_TYPES.UnaryExpression, - operator, - prefix: node.kind === SyntaxKind.PrefixUnaryExpression, - argument: this.convertChild(node.operand), - }); - } + return this.createNode(node, { + type: ts_estree_1.AST_NODE_TYPES.UnaryExpression, + operator, + prefix: node.kind === SyntaxKind.PrefixUnaryExpression, + argument: this.convertChild(node.operand), + }); } case SyntaxKind.DeleteExpression: return this.createNode(node, { @@ -1546,25 +1526,23 @@ class Converter { result.expressions.push(this.convertChild(node.right)); return result; } - else { - const expressionType = (0, node_utils_1.getBinaryExpressionType)(node.operatorToken); - if (this.allowPattern && - expressionType.type === ts_estree_1.AST_NODE_TYPES.AssignmentExpression) { - return this.createNode(node, { - type: ts_estree_1.AST_NODE_TYPES.AssignmentPattern, - decorators: [], - left: this.convertPattern(node.left, node), - optional: false, - right: this.convertChild(node.right), - typeAnnotation: undefined, - }); - } + const expressionType = (0, node_utils_1.getBinaryExpressionType)(node.operatorToken); + if (this.allowPattern && + expressionType.type === ts_estree_1.AST_NODE_TYPES.AssignmentExpression) { return this.createNode(node, { - ...expressionType, - left: this.converter(node.left, node, expressionType.type === ts_estree_1.AST_NODE_TYPES.AssignmentExpression), + type: ts_estree_1.AST_NODE_TYPES.AssignmentPattern, + decorators: [], + left: this.convertPattern(node.left, node), + optional: false, right: this.convertChild(node.right), + typeAnnotation: undefined, }); } + return this.createNode(node, { + ...expressionType, + left: this.converter(node.left, node, expressionType.type === ts_estree_1.AST_NODE_TYPES.AssignmentExpression), + right: this.convertChild(node.right), + }); } case SyntaxKind.PropertyAccessExpression: { const object = this.convertChild(node.expression); @@ -1813,12 +1791,10 @@ class Converter { expression, }); } - else { - return this.createNode(node, { - type: ts_estree_1.AST_NODE_TYPES.JSXExpressionContainer, - expression, - }); - } + return this.createNode(node, { + type: ts_estree_1.AST_NODE_TYPES.JSXExpressionContainer, + expression, + }); } case SyntaxKind.JsxAttribute: { return this.createNode(node, { @@ -2252,12 +2228,10 @@ class Converter { type: ts_estree_1.AST_NODE_TYPES.TSNullKeyword, }); } - else { - return this.createNode(node, { - type: ts_estree_1.AST_NODE_TYPES.TSLiteralType, - literal: this.convertChild(node.literal), - }); - } + return this.createNode(node, { + type: ts_estree_1.AST_NODE_TYPES.TSLiteralType, + literal: this.convertChild(node.literal), + }); } case SyntaxKind.TypeAssertionExpression: { return this.createNode(node, { diff --git a/node_modules/@typescript-eslint/typescript-estree/dist/convert.js.map b/node_modules/@typescript-eslint/typescript-estree/dist/convert.js.map index 7d83376fe5..92e8147661 100644 --- a/node_modules/@typescript-eslint/typescript-estree/dist/convert.js.map +++ b/node_modules/@typescript-eslint/typescript-estree/dist/convert.js.map @@ -1 +1 @@ -{"version":3,"file":"convert.js","sourceRoot":"","sources":["../src/convert.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAAA,2DAA2D;AAC3D,oNAAoN;AACpN,+CAAiC;AAEjC,iDAA6D;AAE7D,6CAyBsB;AAOtB,2CAA6C;AAE7C,MAAM,UAAU,GAAG,EAAE,CAAC,UAAU,CAAC;AASjC;;;;GAIG;AACH,SAAgB,YAAY,CAC1B,KAA2D;IAE3D,OAAO,IAAA,wBAAW,EAChB,CAAC,SAAS,IAAI,KAAK,IAAI,KAAK,CAAC,OAAO,CAAC,IAAK,KAAK,CAAC,WAAsB,EACtE,KAAK,CAAC,IAAK,EACX,KAAK,CAAC,KAAM,CACb,CAAC;AACJ,CAAC;AARD,oCAQC;AAOD,MAAa,SAAS;IAQpB;;;;;OAKG;IACH,YAAY,GAAkB,EAAE,OAA0B;;QAXzC,0BAAqB,GAAG,IAAI,OAAO,E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AG,IAAI,CAAC;iBACf;gBAED,OAAO,IAAI,CAAC,QAAQ,CAAC,CAAC;YACxB,CAAC;QACL,GAAG,CAAC,KAAK;YACP,MAAM,CAAC,cAAc,CAAC,IAAI,EAAE,QAAQ,EAAE;gBACpC,UAAU,EAAE,IAAI;gBAChB,QAAQ,EAAE,IAAI;gBACd,KAAK;aACN,CAAC,CAAC;QACL,CAAC;KACF,CAAC,CAAC;IAEH,OAAO,IAA2D,CAAC;AACrE,CAAC,yDAEW,IAAsB,EAAE,OAAe;IACjD,IAAI,KAAK,CAAC;IACV,IAAI,GAAG,CAAC;IACR,IAAI,OAAO,IAAI,KAAK,QAAQ,EAAE;QAC5B,KAAK,GAAG,GAAG,GAAG,IAAI,CAAC;KACpB;SAAM;QACL,KAAK,GAAG,IAAI,CAAC,QAAQ,CAAC,IAAI,CAAC,GAAG,CAAC,CAAC;QAChC,GAAG,GAAG,IAAI,CAAC,MAAM,EAAE,CAAC;KACrB;IAED,MAAM,IAAA,wBAAW,EAAC,OAAO,EAAE,IAAI,CAAC,GAAG,EAAE,KAAK,EAAE,GAAG,CAAC,CAAC;AACnD,CAAC"} \ No newline at end of file diff --git a/node_modules/@typescript-eslint/typescript-estree/dist/node-utils.d.ts.map b/node_modules/@typescript-eslint/typescript-estree/dist/node-utils.d.ts.map index 1c11031ee8..e6320b0871 100644 --- a/node_modules/@typescript-eslint/typescript-estree/dist/node-utils.d.ts.map +++ b/node_modules/@typescript-eslint/typescript-estree/dist/node-utils.d.ts.map @@ -1 +1 @@ -{"version":3,"file":"node-utils.d.ts","sourceRoot":"","sources":["../src/node-utils.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,MAAM,YAAY,CAAC;AAIjC,OAAO,KAAK,EAAE,QAAQ,EAAE,MAAM,EAAE,MAAM,aAAa,CAAC;AACpD,OAAO,EAAE,cAAc,EAAE,eAAe,EAAE,MAAM,aAAa,CAAC;AAK9D,QAAA,MAAM,UAAU,sBAAgB,CAAC;AAEjC,K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,EAAE,CAAC,IAAI,GACZ,EAAE,CAAC,oBAAoB,GAAG,SAAS,CAErC;AA4BD,wBAAgB,kBAAkB,CAAC,IAAI,EAAE,MAAM,GAAG,OAAO,CAuDxD"} \ No newline at end of file diff --git a/node_modules/@typescript-eslint/typescript-estree/dist/node-utils.js b/node_modules/@typescript-eslint/typescript-estree/dist/node-utils.js index 5c002c4c5e..f3afe12d10 100644 --- a/node_modules/@typescript-eslint/typescript-estree/dist/node-utils.js +++ b/node_modules/@typescript-eslint/typescript-estree/dist/node-utils.js @@ -524,16 +524,14 @@ function convertToken(token, ast) { }, }; } - else { - // @ts-expect-error TS is complaining about `value` not being the correct - // type but it is - return { - type: tokenType, - value, - range, - loc, - }; - } + // @ts-expect-error TS is complaining about `value` not being the correct + // type but it is + return { + type: tokenType, + value, + range, + loc, + }; } exports.convertToken = convertToken; /** diff --git a/node_modules/@typescript-eslint/typescript-estree/dist/node-utils.js.map b/node_modules/@typescript-eslint/typescript-estree/dist/node-utils.js.map index f25c5d88f3..5ef6753892 100644 --- a/node_modules/@typescript-eslint/typescript-estree/dist/node-utils.js.map +++ b/node_modules/@typescript-eslint/typescript-estree/dist/node-utils.js.map @@ -1 +1 @@ -{"version":3,"file":"node-utils.js","sourceRoot":"","sources":["../src/node-utils.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;AAAA,+CAAiC;AAEjC,iDAA8C;AAC9C,yDAAqD;AAErD,2CAA8D;AAC9D,mDAA6D;AAE7D,MAAM,WAAW,GAAG,0CAA0B,CAAC,KAAK,CAAC,CAAC;AAEtD,MAAM,UAAU,GAAG,EAAE,CAAC,UAAU,CAAC;AAMjC,MAAM,iBAAiB,GAAqC,IAAI,GAAG,CAAC;IAClE,UAAU,CAAC,WAAW;IACtB,UAAU,CAAC,uBAAuB;IAClC,UAAU,CAAC,qBAAqB;CACjC,CAAC,CAAC;AAaH,MAAM,oBAAoB,GAAwC,IAAI,GAAG,CAAC;IACxE,EAAE,CAAC,UA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CACL,OAAO,CAAC,MAAM,CAAC;gBACf,MAAM,IAAI,MAAM;gBAChB,OAAO,CAAC,MAAM,CAAC,IAAI,CAAC;gBACpB,CAAC,MAAM,CAAC,IAAI,KAAK,UAAU,CAAC,WAAW;oBACrC,MAAM,CAAC,IAAI,KAAK,UAAU,CAAC,iBAAiB;oBAC5C,MAAM,CAAC,IAAI,KAAK,UAAU,CAAC,WAAW,CAAC;gBACzC,gBAAgB,CAAC,MAAM,CAAC,KAAK,IAAI;gBACjC,OAAO,CAAC,WAAW,CAAC;gBACpB,WAAW,CAAC,IAAI,KAAK,UAAU,CAAC,gBAAgB,CACjD,CAAC;SACH;KACF;IAED,OAAO,KAAK,CAAC;AACf,CAAC;AAvDD,gDAuDC"} \ No newline at end of file diff --git a/node_modules/@typescript-eslint/typescript-estree/dist/parseSettings/ExpiringCache.d.ts.map b/node_modules/@typescript-eslint/typescript-estree/dist/parseSettings/ExpiringCache.d.ts.map index 4957d9fe00..7b0102b713 100644 --- a/node_modules/@typescript-eslint/typescript-estree/dist/parseSettings/ExpiringCache.d.ts.map +++ b/node_modules/@typescript-eslint/typescript-estree/dist/parseSettings/ExpiringCache.d.ts.map @@ -1 +1 @@ -{"version":3,"file":"ExpiringCache.d.ts","sourceRoot":"","sources":["../../src/parseSettings/ExpiringCache.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,oBAAoB,EAAE,MAAM,0BAA0B,CAAC;AAErE,eAAO,MAAM,uCAAuC,KAAK,CAAC;AAG1D,MAAM,WAAW,SAAS,CAAC,GAAG,EAAE,KAAK;IACnC,GAAG,CAAC,GAAG,EAAE,GAAG,GAAG,KAAK,GAAG,IAAI,CAAC;IAC5B,GAAG,CAAC,GAAG,EAAE,GAAG,EAAE,KAAK,EAAE,KAAK,GAAG,IAAI,CAAC;CACnC;AAED;;GAEG;AACH,qBAAa,aAAa,CAAC,IAAI,EAAE,MAAM,CAAE,YAAW,SAAS,CAAC,IAAI,EAAE,MAAM,CAAC;;gBAW7D,oBAAoB,EAAE,oBAAoB;IAItD,GAAG,CAAC,GAAG,EAAE,IAAI,EAAE,KAAK,EAAE,MAAM,GAAG,IAAI;IAYnC,GAAG,CAAC,GAAG,EAAE,IAAI,GAAG,MAAM,GAAG,SAAS;IAoBlC,KAAK,IAAI,IAAI;CAGd"} \ No newline at end of file +{"version":3,"file":"ExpiringCache.d.ts","sourceRoot":"","sources":["../../src/parseSettings/ExpiringCache.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,oBAAoB,EAAE,MAAM,0BAA0B,CAAC;AAErE,eAAO,MAAM,uCAAuC,KAAK,CAAC;AAG1D,MAAM,WAAW,SAAS,CAAC,GAAG,EAAE,KAAK;IACnC,GAAG,CAAC,GAAG,EAAE,GAAG,GAAG,KAAK,GAAG,IAAI,CAAC;IAC5B,GAAG,CAAC,GAAG,EAAE,GAAG,EAAE,KAAK,EAAE,KAAK,GAAG,IAAI,CAAC;CACnC;AAED;;GAEG;AACH,qBAAa,aAAa,CAAC,IAAI,EAAE,MAAM,CAAE,YAAW,SAAS,CAAC,IAAI,EAAE,MAAM,CAAC;;gBAW7D,oBAAoB,EAAE,oBAAoB;IAItD,GAAG,CAAC,GAAG,EAAE,IAAI,EAAE,KAAK,EAAE,MAAM,GAAG,IAAI;IAYnC,GAAG,CAAC,GAAG,EAAE,IAAI,GAAG,MAAM,GAAG,SAAS;IAmBlC,KAAK,IAAI,IAAI;CAGd"} \ No newline at end of file diff --git a/node_modules/@typescript-eslint/typescript-estree/dist/parseSettings/ExpiringCache.js b/node_modules/@typescript-eslint/typescript-estree/dist/parseSettings/ExpiringCache.js index 92f0a33baa..f414ac8584 100644 --- a/node_modules/@typescript-eslint/typescript-estree/dist/parseSettings/ExpiringCache.js +++ b/node_modules/@typescript-eslint/typescript-estree/dist/parseSettings/ExpiringCache.js @@ -45,10 +45,8 @@ class ExpiringCache { // cache hit woo! return entry.value; } - else { - // key has expired - clean it up to free up memory - __classPrivateFieldGet(this, _ExpiringCache_map, "f").delete(key); - } + // key has expired - clean it up to free up memory + __classPrivateFieldGet(this, _ExpiringCache_map, "f").delete(key); } // no hit :'( return undefined; diff --git a/node_modules/@typescript-eslint/typescript-estree/dist/parseSettings/ExpiringCache.js.map b/node_modules/@typescript-eslint/typescript-estree/dist/parseSettings/ExpiringCache.js.map index 3622d71cd1..5c649e35dd 100644 --- a/node_modules/@typescript-eslint/typescript-estree/dist/parseSettings/ExpiringCache.js.map +++ b/node_modules/@typescript-eslint/typescript-estree/dist/parseSettings/ExpiringCache.js.map @@ -1 +1 @@ -{"version":3,"file":"ExpiringCache.js","sourceRoot":"","sources":["../../src/parseSettings/ExpiringCache.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;AAEa,QAAA,uCAAuC,GAAG,EAAE,CAAC;AAC1D,MAAM,YAAY,GAAqB,CAAC,CAAC,EAAE,CAAC,CAAC,CAAC;AAO9C;;GAEG;AACH,MAAa,aAAa;IAWxB,YAAY,oBAA0C;QAV7C,sDAA4C;QAE5C,6BAAO,IAAI,GAAG,EAMpB,EAAC;QAGF,uBAAA,IAAI,uCAAyB,oBAAoB,MAAA,CAAC;IACpD,CAAC;IAED,GAAG,CAAC,GAAS,EAAE,KAAa;QAC1B,uBAAA,IAAI,0BAAK,CAAC,GAAG,CAAC,GAAG,EAAE;YACjB,KAAK;YACL,QAAQ,EACN,uBAAA,IAAI,2CAAsB,KAAK,UAAU;gBACvC,CAAC,CAAC,qFAAqF;oBACrF,YAAY;gBACd,CAAC,CAAC,OAAO,CAAC,MAAM,EAAE;SACvB,CAAC,CAAC;QACH,OAAO,IAAI,CAAC;IACd,CAAC;IAED,GAAG,CAAC,GAAS;QACX,MAAM,KAAK,GAAG,uBAAA,IAAI,0BAAK,CAAC,GAAG,CAAC,GAAG,CAAC,CAAC;QACjC,IAAI,KAAK,EAAE,KAAK,IAAI,IAAI,EAAE;YACxB,IAAI,uBAAA,IAAI,2CAAsB,KAAK,UAAU,EAAE;gBAC7C,OAAO,KAAK,CAAC,KAAK,CAAC;aACpB;YAED,MAAM,UAAU,GAAG,OAAO,CAAC,MAAM,CAAC,KAAK,CAAC,QAAQ,CAAC,CAAC,CAAC,CAAC,CAAC;YACrD,IAAI,UAAU,GAAG,uBAAA,IAAI,2CAAsB,EAAE;gBAC3C,iBAAiB;gBACjB,OAAO,KAAK,CAAC,KAAK,CAAC;aACpB;iBAAM;gBACL,kDAAkD;gBAClD,uBAAA,IAAI,0BAAK,CAAC,MAAM,CAAC,GAAG,CAAC,CAAC;aACvB;SACF;QACD,aAAa;QACb,OAAO,SAAS,CAAC;IACnB,CAAC;IAED,KAAK;QACH,uBAAA,IAAI,0BAAK,CAAC,KAAK,EAAE,CAAC;IACpB,CAAC;CACF;AAlDD,sCAkDC"} \ No newline at end of file +{"version":3,"file":"ExpiringCache.js","sourceRoot":"","sources":["../../src/parseSettings/ExpiringCache.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;AAEa,QAAA,uCAAuC,GAAG,EAAE,CAAC;AAC1D,MAAM,YAAY,GAAqB,CAAC,CAAC,EAAE,CAAC,CAAC,CAAC;AAO9C;;GAEG;AACH,MAAa,aAAa;IAWxB,YAAY,oBAA0C;QAV7C,sDAA4C;QAE5C,6BAAO,IAAI,GAAG,EAMpB,EAAC;QAGF,uBAAA,IAAI,uCAAyB,oBAAoB,MAAA,CAAC;IACpD,CAAC;IAED,GAAG,CAAC,GAAS,EAAE,KAAa;QAC1B,uBAAA,IAAI,0BAAK,CAAC,GAAG,CAAC,GAAG,EAAE;YACjB,KAAK;YACL,QAAQ,EACN,uBAAA,IAAI,2CAAsB,KAAK,UAAU;gBACvC,CAAC,CAAC,qFAAqF;oBACrF,YAAY;gBACd,CAAC,CAAC,OAAO,CAAC,MAAM,EAAE;SACvB,CAAC,CAAC;QACH,OAAO,IAAI,CAAC;IACd,CAAC;IAED,GAAG,CAAC,GAAS;QACX,MAAM,KAAK,GAAG,uBAAA,IAAI,0BAAK,CAAC,GAAG,CAAC,GAAG,CAAC,CAAC;QACjC,IAAI,KAAK,EAAE,KAAK,IAAI,IAAI,EAAE;YACxB,IAAI,uBAAA,IAAI,2CAAsB,KAAK,UAAU,EAAE;gBAC7C,OAAO,KAAK,CAAC,KAAK,CAAC;aACpB;YAED,MAAM,UAAU,GAAG,OAAO,CAAC,MAAM,CAAC,KAAK,CAAC,QAAQ,CAAC,CAAC,CAAC,CAAC,CAAC;YACrD,IAAI,UAAU,GAAG,uBAAA,IAAI,2CAAsB,EAAE;gBAC3C,iBAAiB;gBACjB,OAAO,KAAK,CAAC,KAAK,CAAC;aACpB;YACD,kDAAkD;YAClD,uBAAA,IAAI,0BAAK,CAAC,MAAM,CAAC,GAAG,CAAC,CAAC;SACvB;QACD,aAAa;QACb,OAAO,SAAS,CAAC;IACnB,CAAC;IAED,KAAK;QACH,uBAAA,IAAI,0BAAK,CAAC,KAAK,EAAE,CAAC;IACpB,CAAC;CACF;AAjDD,sCAiDC"} \ No newline at end of file diff --git a/node_modules/@typescript-eslint/typescript-estree/dist/parseSettings/warnAboutTSVersion.js b/node_modules/@typescript-eslint/typescript-estree/dist/parseSettings/warnAboutTSVersion.js index 47acdcf805..d46b02fd9e 100644 --- a/node_modules/@typescript-eslint/typescript-estree/dist/parseSettings/warnAboutTSVersion.js +++ b/node_modules/@typescript-eslint/typescript-estree/dist/parseSettings/warnAboutTSVersion.js @@ -30,7 +30,7 @@ exports.warnAboutTSVersion = void 0; const semver_1 = __importDefault(require("semver")); const ts = __importStar(require("typescript")); /** - * This needs to be kept in sync with /docs/maintenance/Versioning.mdx + * This needs to be kept in sync with /docs/users/Versioning.mdx * in the typescript-eslint monorepo */ const SUPPORTED_TYPESCRIPT_VERSIONS = '>=4.3.5 <5.2.0'; diff --git a/node_modules/@typescript-eslint/typescript-estree/package.json b/node_modules/@typescript-eslint/typescript-estree/package.json index 20e65830ac..78f8c29b55 100644 --- a/node_modules/@typescript-eslint/typescript-estree/package.json +++ b/node_modules/@typescript-eslint/typescript-estree/package.json @@ -1,6 +1,6 @@ { "name": "@typescript-eslint/typescript-estree", - "version": "6.2.0", + "version": "6.2.1", "description": "A parser that converts TypeScript source code into an ESTree compatible form", "files": [ "dist", @@ -52,8 +52,8 @@ "typecheck": "tsc -p tsconfig.json --noEmit" }, "dependencies": { - "@typescript-eslint/types": "6.2.0", - "@typescript-eslint/visitor-keys": "6.2.0", + "@typescript-eslint/types": "6.2.1", + "@typescript-eslint/visitor-keys": "6.2.1", "debug": "^4.3.4", "globby": "^11.1.0", "is-glob": "^4.0.3", @@ -85,5 +85,5 @@ ] } }, - "gitHead": "c869aa1792ed8e3c89d5ada2df8c00f8fe36526a" + "gitHead": "948b0614626c1c737ec30106425ef4a9b8c33dbf" } diff --git a/node_modules/@typescript-eslint/utils/_ts4.3/dist/ts-eslint/Rule.d.ts b/node_modules/@typescript-eslint/utils/_ts4.3/dist/ts-eslint/Rule.d.ts index e6b774fd57..5cbf681781 100644 --- a/node_modules/@typescript-eslint/utils/_ts4.3/dist/ts-eslint/Rule.d.ts +++ b/node_modules/@typescript-eslint/utils/_ts4.3/dist/ts-eslint/Rule.d.ts @@ -13,7 +13,7 @@ interface RuleMetaDataDocs { /** * The recommendation level for the rule. * Used by the build tools to generate the recommended and strict configs. - * Set to false to not include it as a recommendation + * Exclude to not include it as a recommendation. */ recommended?: RuleRecommendation; /** diff --git a/node_modules/@typescript-eslint/utils/dist/ts-eslint/Rule.d.ts b/node_modules/@typescript-eslint/utils/dist/ts-eslint/Rule.d.ts index c88021db74..016b8f0ce9 100644 --- a/node_modules/@typescript-eslint/utils/dist/ts-eslint/Rule.d.ts +++ b/node_modules/@typescript-eslint/utils/dist/ts-eslint/Rule.d.ts @@ -13,7 +13,7 @@ interface RuleMetaDataDocs { /** * The recommendation level for the rule. * Used by the build tools to generate the recommended and strict configs. - * Set to false to not include it as a recommendation + * Exclude to not include it as a recommendation. */ recommended?: RuleRecommendation; /** diff --git a/node_modules/@typescript-eslint/utils/package.json b/node_modules/@typescript-eslint/utils/package.json index 932f36fb12..d4ddadc556 100644 --- a/node_modules/@typescript-eslint/utils/package.json +++ b/node_modules/@typescript-eslint/utils/package.json @@ -1,6 +1,6 @@ { "name": "@typescript-eslint/utils", - "version": "6.2.0", + "version": "6.2.1", "description": "Utilities for working with TypeScript + ESLint together", "files": [ "dist", @@ -68,16 +68,16 @@ "@eslint-community/eslint-utils": "^4.4.0", "@types/json-schema": "^7.0.12", "@types/semver": "^7.5.0", - "@typescript-eslint/scope-manager": "6.2.0", - "@typescript-eslint/types": "6.2.0", - "@typescript-eslint/typescript-estree": "6.2.0", + "@typescript-eslint/scope-manager": "6.2.1", + "@typescript-eslint/types": "6.2.1", + "@typescript-eslint/typescript-estree": "6.2.1", "semver": "^7.5.4" }, "peerDependencies": { "eslint": "^7.0.0 || ^8.0.0" }, "devDependencies": { - "@typescript-eslint/parser": "6.2.0", + "@typescript-eslint/parser": "6.2.1", "typescript": "*" }, "funding": { @@ -91,5 +91,5 @@ ] } }, - "gitHead": "c869aa1792ed8e3c89d5ada2df8c00f8fe36526a" + "gitHead": "948b0614626c1c737ec30106425ef4a9b8c33dbf" } diff --git a/node_modules/@typescript-eslint/visitor-keys/package.json b/node_modules/@typescript-eslint/visitor-keys/package.json index 0d0657e65f..9d64249061 100644 --- a/node_modules/@typescript-eslint/visitor-keys/package.json +++ b/node_modules/@typescript-eslint/visitor-keys/package.json @@ -1,6 +1,6 @@ { "name": "@typescript-eslint/visitor-keys", - "version": "6.2.0", + "version": "6.2.1", "description": "Visitor keys used to help traverse the TypeScript-ESTree AST", "files": [ "dist", @@ -45,7 +45,7 @@ "typecheck": "tsc -p tsconfig.json --noEmit" }, "dependencies": { - "@typescript-eslint/types": "6.2.0", + "@typescript-eslint/types": "6.2.1", "eslint-visitor-keys": "^3.4.1" }, "devDependencies": { @@ -62,5 +62,5 @@ ] } }, - "gitHead": "c869aa1792ed8e3c89d5ada2df8c00f8fe36526a" + "gitHead": "948b0614626c1c737ec30106425ef4a9b8c33dbf" } diff --git a/node_modules/array-buffer-byte-length/.eslintrc b/node_modules/array-buffer-byte-length/.eslintrc new file mode 100644 index 0000000000..3b5d9e90ec --- /dev/null +++ b/node_modules/array-buffer-byte-length/.eslintrc @@ -0,0 +1,5 @@ +{ + "root": true, + + "extends": "@ljharb", +} diff --git a/node_modules/array-buffer-byte-length/.github/FUNDING.yml b/node_modules/array-buffer-byte-length/.github/FUNDING.yml new file mode 100644 index 0000000000..b3b30fa8b8 --- /dev/null +++ b/node_modules/array-buffer-byte-length/.github/FUNDING.yml @@ -0,0 +1,12 @@ +# These are supported funding model platforms + +github: [ljharb] +patreon: # Replace with a single Patreon username +open_collective: # Replace with a single Open Collective username +ko_fi: # Replace with a single Ko-fi username +tidelift: npm/array-buffer-byte-length +community_bridge: # Replace with a single Community Bridge project-name e.g., cloud-foundry +liberapay: # Replace with a single Liberapay username +issuehunt: # Replace with a single IssueHunt username +otechie: # Replace with a single Otechie username +custom: # Replace with up to 4 custom sponsorship URLs e.g., ['link1', 'link2'] diff --git a/node_modules/array-buffer-byte-length/.nycrc b/node_modules/array-buffer-byte-length/.nycrc new file mode 100644 index 0000000000..1826526e09 --- /dev/null +++ b/node_modules/array-buffer-byte-length/.nycrc @@ -0,0 +1,13 @@ +{ + "all": true, + "check-coverage": false, + "reporter": ["text-summary", "text", "html", "json"], + "lines": 86, + "statements": 85.93, + "functions": 82.43, + "branches": 76.06, + "exclude": [ + "coverage", + "test" + ] +} diff --git a/node_modules/array-buffer-byte-length/CHANGELOG.md b/node_modules/array-buffer-byte-length/CHANGELOG.md new file mode 100644 index 0000000000..197fa4bc70 --- /dev/null +++ b/node_modules/array-buffer-byte-length/CHANGELOG.md @@ -0,0 +1,15 @@ +# Changelog + +All notable changes to this project will be documented in this file. + +The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.0.0/) +and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0.html). + +## v1.0.0 - 2023-02-28 + +### Commits + +- Initial implementation, tests, readme [`2db6cad`](https://github.com/inspect-js/array-buffer-byte-length/commit/2db6cad79270ab1966f5ea80160abbcd4534c91d) +- Initial commit [`b2a0c9c`](https://github.com/inspect-js/array-buffer-byte-length/commit/b2a0c9c2246514b7999d331aad868c4f32326db7) +- npm init [`376acdb`](https://github.com/inspect-js/array-buffer-byte-length/commit/376acdbd4435cb1d4c31d107cacb3b86f2363aee) +- Only apps should have lockfiles [`70cf325`](https://github.com/inspect-js/array-buffer-byte-length/commit/70cf32526fc727d0d16a12d85a4bddea70075e31) diff --git a/node_modules/array-buffer-byte-length/LICENSE b/node_modules/array-buffer-byte-length/LICENSE new file mode 100644 index 0000000000..5ea30366fa --- /dev/null +++ b/node_modules/array-buffer-byte-length/LICENSE @@ -0,0 +1,21 @@ +MIT License + +Copyright (c) 2023 Inspect JS + +Permission is hereby granted, free of charge, to any person obtaining a copy +of this software and associated documentation files (the "Software"), to deal +in the Software without restriction, including without limitation the rights +to use, copy, modify, merge, publish, distribute, sublicense, and/or sell +copies of the Software, and to permit persons to whom the Software is +furnished to do so, subject to the following conditions: + +The above copyright notice and this permission notice shall be included in all +copies or substantial portions of the Software. + +THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR +IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, +FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE +AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER +LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, +OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE +SOFTWARE. diff --git a/node_modules/array-buffer-byte-length/README.md b/node_modules/array-buffer-byte-length/README.md new file mode 100644 index 0000000000..64836c2319 --- /dev/null +++ b/node_modules/array-buffer-byte-length/README.md @@ -0,0 +1,40 @@ +# array-buffer-byte-length [![Version Badge][npm-version-svg]][package-url] + +[![github actions][actions-image]][actions-url] +[![coverage][codecov-image]][codecov-url] +[![License][license-image]][license-url] +[![Downloads][downloads-image]][downloads-url] + +[![npm badge][npm-badge-png]][package-url] + +Get the byte length of an ArrayBuffer, even in engines without a `.byteLength` method. + +## Example + +```js +const assert = require('assert'); +const byteLength = require('array-buffer-byte-length'); + +assert.equal(byteLength([]), NaN, 'an array is not an ArrayBuffer, yields NaN'); + +assert.equal(byteLength(new ArrayBuffer(0)), 0, 'ArrayBuffer of byteLength 0, yields 0'); +``` + +## Tests +Simply clone the repo, `npm install`, and run `npm test` + +[package-url]: https://npmjs.org/package/array-buffer-byte-length +[npm-version-svg]: https://versionbadg.es/inspect-js/array-buffer-byte-length.svg +[deps-svg]: https://david-dm.org/inspect-js/array-buffer-byte-length.svg +[deps-url]: https://david-dm.org/inspect-js/array-buffer-byte-length +[dev-deps-svg]: https://david-dm.org/inspect-js/array-buffer-byte-length/dev-status.svg +[dev-deps-url]: https://david-dm.org/inspect-js/array-buffer-byte-length#info=devDependencies +[npm-badge-png]: https://nodei.co/npm/array-buffer-byte-length.png?downloads=true&stars=true +[license-image]: https://img.shields.io/npm/l/array-buffer-byte-length.svg +[license-url]: LICENSE +[downloads-image]: https://img.shields.io/npm/dm/array-buffer-byte-length.svg +[downloads-url]: https://npm-stat.com/charts.html?package=array-buffer-byte-length +[codecov-image]: https://codecov.io/gh/inspect-js/array-buffer-byte-length/branch/main/graphs/badge.svg +[codecov-url]: https://app.codecov.io/gh/inspect-js/array-buffer-byte-length/ +[actions-image]: https://img.shields.io/endpoint?url=https://github-actions-badge-u3jn4tfpocch.runkit.sh/inspect-js/array-buffer-byte-length +[actions-url]: https://github.com/inspect-js/array-buffer-byte-length/actions diff --git a/node_modules/array-buffer-byte-length/index.js b/node_modules/array-buffer-byte-length/index.js new file mode 100644 index 0000000000..8e85e2526d --- /dev/null +++ b/node_modules/array-buffer-byte-length/index.js @@ -0,0 +1,13 @@ +'use strict'; + +var callBound = require('call-bind/callBound'); +var $byteLength = callBound('ArrayBuffer.prototype.byteLength', true); + +var isArrayBuffer = require('is-array-buffer'); + +module.exports = function byteLength(ab) { + if (!isArrayBuffer(ab)) { + return NaN; + } + return $byteLength ? $byteLength(ab) : ab.byteLength; +}; // in node < 0.11, byteLength is an own nonconfigurable property diff --git a/node_modules/array-buffer-byte-length/package.json b/node_modules/array-buffer-byte-length/package.json new file mode 100644 index 0000000000..ffeb2751eb --- /dev/null +++ b/node_modules/array-buffer-byte-length/package.json @@ -0,0 +1,81 @@ +{ + "name": "array-buffer-byte-length", + "version": "1.0.0", + "description": "Get the byte length of an ArrayBuffer, even in engines without a `.byteLength` method.", + "main": "index.js", + "exports": { + ".": "./index.js", + "./package.json": "./package.json" + }, + "scripts": { + "prepack": "npmignore --auto --commentLines=autogenerated", + "prepublishOnly": "safe-publish-latest", + "prepublish": "not-in-publish || npm run prepublishOnly", + "pretest": "npm run lint", + "prelint": "evalmd README.md", + "lint": "eslint --ext=js,mjs .", + "tests-only": "nyc tape 'test/**/*.js'", + "test": "npm run tests-only", + "posttest": "aud --production", + "version": "auto-changelog && git add CHANGELOG.md", + "postversion": "auto-changelog && git add CHANGELOG.md && git commit --no-edit --amend && git tag -f \"v$(node -e \"console.log(require('./package.json').version)\")\"" + }, + "keywords": [ + "shim", + "polyfill", + "ArrayBuffer", + "byteLength", + "byte", + "length", + "es-shim API", + "es-shims" + ], + "author": "Jordan Harband ", + "funding": { + "url": "https://github.com/sponsors/ljharb" + }, + "license": "MIT", + "repository": { + "type": "git", + "url": "git+https://github.com/inspect-js/array-buffer-byte-length.git" + }, + "bugs": { + "url": "https://github.com/inspect-js/array-buffer-byte-length/issues" + }, + "homepage": "https://github.com/inspect-js/array-buffer-byte-length#readme", + "dependencies": { + "call-bind": "^1.0.2", + "is-array-buffer": "^3.0.1" + }, + "devDependencies": { + "@ljharb/eslint-config": "^21.0.1", + "aud": "^2.0.2", + "auto-changelog": "^2.4.0", + "es-value-fixtures": "^1.4.2", + "eslint": "=8.8.0", + "evalmd": "^0.0.19", + "for-each": "^0.3.3", + "in-publish": "^2.0.1", + "npmignore": "^0.3.0", + "nyc": "^10.3.2", + "object-inspect": "^1.12.3", + "safe-publish-latest": "^2.0.0", + "tape": "^5.6.3" + }, + "auto-changelog": { + "output": "CHANGELOG.md", + "template": "keepachangelog", + "unreleased": false, + "commitLimit": false, + "backfillLimit": false, + "hideCredit": true + }, + "testling": { + "files": "test/index.js" + }, + "publishConfig": { + "ignore": [ + ".github/workflows" + ] + } +} diff --git a/node_modules/array-buffer-byte-length/test/index.js b/node_modules/array-buffer-byte-length/test/index.js new file mode 100644 index 0000000000..3a4107a8aa --- /dev/null +++ b/node_modules/array-buffer-byte-length/test/index.js @@ -0,0 +1,26 @@ +'use strict'; + +var test = require('tape'); +var forEach = require('for-each'); +var v = require('es-value-fixtures'); +var inspect = require('object-inspect'); + +var byteLength = require('../'); + +test('byteLength', function (t) { + forEach(v.objects.concat(v.primitives), function (nonAB) { + t.equal(byteLength(nonAB), NaN, inspect(nonAB) + ' is not an ArrayBuffer, and yields NaN'); + }); + + t.test('ArrayBuffers', { skip: typeof ArrayBuffer !== 'function' }, function (st) { + var ab32 = new ArrayBuffer(32); + st.equal(byteLength(ab32), 32, 'works on an ArrayBuffer of length 32: ' + inspect(ab32)); + + var ab0 = new ArrayBuffer(0); + st.equal(byteLength(ab0), 0, 'works on an ArrayBuffer of length 0: ' + inspect(ab0)); + + st.end(); + }); + + t.end(); +}); diff --git a/node_modules/array.prototype.findlastindex/.eslintrc b/node_modules/array.prototype.findlastindex/.eslintrc new file mode 100644 index 0000000000..af04f070f9 --- /dev/null +++ b/node_modules/array.prototype.findlastindex/.eslintrc @@ -0,0 +1,36 @@ +{ + "root": true, + + "extends": "@ljharb", + + "rules": { + "array-bracket-newline": 0, + "id-length": 0, + "new-cap": [2, { + "capIsNewExceptions": [ + "GetIntrinsic", + "Call", + "Get", + "IsCallable", + "LengthOfArrayLike", + "RequireObjectCoercible", + "ToBoolean", + "ToObject", + "ToString", + ], + }], + "no-magic-numbers": 0, + }, + + "overrides": [ + { + "files": "test/**", + "rules": { + "func-name-matching": 0, + "max-lines-per-function": 0, + "no-invalid-this": 1, + "strict": 1, + }, + }, + ], +} diff --git a/node_modules/array.prototype.findlastindex/.github/FUNDING.yml b/node_modules/array.prototype.findlastindex/.github/FUNDING.yml new file mode 100644 index 0000000000..aaf59dc3e4 --- /dev/null +++ b/node_modules/array.prototype.findlastindex/.github/FUNDING.yml @@ -0,0 +1,12 @@ +# These are supported funding model platforms + +github: [ljharb] +patreon: # Replace with a single Patreon username +open_collective: # Replace with a single Open Collective username +ko_fi: # Replace with a single Ko-fi username +tidelift: npm/array.prototype.findlastindex +community_bridge: # Replace with a single Community Bridge project-name e.g., cloud-foundry +liberapay: # Replace with a single Liberapay username +issuehunt: # Replace with a single IssueHunt username +otechie: # Replace with a single Otechie username +custom: # Replace with up to 4 custom sponsorship URLs e.g., ['link1', 'link2'] diff --git a/node_modules/array.prototype.findlastindex/.nycrc b/node_modules/array.prototype.findlastindex/.nycrc new file mode 100644 index 0000000000..bdd626ce91 --- /dev/null +++ b/node_modules/array.prototype.findlastindex/.nycrc @@ -0,0 +1,9 @@ +{ + "all": true, + "check-coverage": false, + "reporter": ["text-summary", "text", "html", "json"], + "exclude": [ + "coverage", + "test" + ] +} diff --git a/node_modules/array.prototype.findlastindex/CHANGELOG.md b/node_modules/array.prototype.findlastindex/CHANGELOG.md new file mode 100644 index 0000000000..b2fde52470 --- /dev/null +++ b/node_modules/array.prototype.findlastindex/CHANGELOG.md @@ -0,0 +1,66 @@ +# Changelog + +All notable changes to this project will be documented in this file. + +The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.0.0/) +and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0.html). + +## [v1.2.2](https://github.com/es-shims/Array.prototype.findLastIndex/compare/v1.2.1...v1.2.2) - 2022-11-02 + +### Commits + +- [meta] use `npmignore` to autogenerate an npmignore file [`f910dc6`](https://github.com/es-shims/Array.prototype.findLastIndex/commit/f910dc6e5999e6941892232810ae9b3910d925ec) +- [Deps] update `es-abstract`, `get-intrinsic` [`6e44207`](https://github.com/es-shims/Array.prototype.findLastIndex/commit/6e4420705d7435b8b9bb978e4858814ba0216fa5) +- [actions] update rebase action to use reusable workflow [`aac0471`](https://github.com/es-shims/Array.prototype.findLastIndex/commit/aac0471a0b2f0f44765ac6055211b58f26fa6636) +- [Deps] update `define-properties`, `es-abstract`, `get-intrinsic` [`c1d1d70`](https://github.com/es-shims/Array.prototype.findLastIndex/commit/c1d1d7083bfa8ab32a9e5560e4b2aa16ce9d0a6d) +- [Dev Deps] update `es-value-fixtures`, `object-inspect`, `tape` [`64c4c0f`](https://github.com/es-shims/Array.prototype.findLastIndex/commit/64c4c0f6dda4793c5d9db5110ec82c6004bcc4ef) +- [Dev Deps] update `aud`, `tape` [`603fbac`](https://github.com/es-shims/Array.prototype.findLastIndex/commit/603fbacf4d034298ff40ab6886f6af7031651acd) +- [Tests] add indication of whether it was shimmed [`7d711f6`](https://github.com/es-shims/Array.prototype.findLastIndex/commit/7d711f6e68c9c5e4e0556946d026c159f7d82f22) +- [Tests] make nullish receiver tests more robust [`335cf53`](https://github.com/es-shims/Array.prototype.findLastIndex/commit/335cf5381ec0bc7ce60de8824b736cb3b40918ae) + +## [v1.2.1](https://github.com/es-shims/Array.prototype.findLastIndex/compare/v1.2.0...v1.2.1) - 2022-04-11 + +### Commits + +- [Refactor] use `es-shim-unscopables` [`abe84ee`](https://github.com/es-shims/Array.prototype.findLastIndex/commit/abe84ee8794ce9c84180bc01cf499a7bb2494b3d) + +## [v1.2.0](https://github.com/es-shims/Array.prototype.findLastIndex/compare/v1.1.1...v1.2.0) - 2022-04-11 + +### Commits + +- [actions] reuse common workflows [`670cc4c`](https://github.com/es-shims/Array.prototype.findLastIndex/commit/670cc4c0b6f23b7f01d365a9afd2dd88ee2e4967) +- [Dev Deps] update `eslint`, `@ljharb/eslint-config`, `@es-shims/api`, `object-inspect`, `safe-publish-latest`, `tape` [`11bc460`](https://github.com/es-shims/Array.prototype.findLastIndex/commit/11bc460ab842d2a08c43b67aab182e0697d65308) +- [Dev Deps] update `eslint`, `@ljharb/eslint-config`, `aud`, `auto-changelog`, `object-inspect`, `tape` [`b076ad6`](https://github.com/es-shims/Array.prototype.findLastIndex/commit/b076ad6ed9246f3139efa72d0ddbf2e0d861f982) +- [actions] update codecov uploader [`0d62d86`](https://github.com/es-shims/Array.prototype.findLastIndex/commit/0d62d8602c2d3ecefdd0965c25cafb2a864c0903) +- [New] `shim`/`auto`: add `findLast` to `Symbol.unscopables` [`b09e4a6`](https://github.com/es-shims/Array.prototype.findLastIndex/commit/b09e4a6a194366b45945c6d65cdcc64ca786e570) +- [Deps] update `es-abstract` [`024128c`](https://github.com/es-shims/Array.prototype.findLastIndex/commit/024128c1abc5b58863859ea8b9cf4c1cb1df548b) +- [Deps] update `es-abstract` [`2dcab99`](https://github.com/es-shims/Array.prototype.findLastIndex/commit/2dcab99e3ed43546cd6610b12d489d95d8e94d90) + +## [v1.1.1](https://github.com/es-shims/Array.prototype.findLastIndex/compare/v1.1.0...v1.1.1) - 2021-10-01 + +### Commits + +- [Refactor] remove unnecessary ESM files [`35161c7`](https://github.com/es-shims/Array.prototype.findLastIndex/commit/35161c76758835dd3fbecdf0b5fbf41a3ce9f218) +- [Tests] add new tests from test262 [`e26fa25`](https://github.com/es-shims/Array.prototype.findLastIndex/commit/e26fa256601f60b1feb5918e4fbcc76d0d773d13) +- [Deps] update `es-abstract` [`5ff80b1`](https://github.com/es-shims/Array.prototype.findLastIndex/commit/5ff80b116f2e083ae72605275af0efec367f3a89) +- [readme] fix URLs [`b962fe2`](https://github.com/es-shims/Array.prototype.findLastIndex/commit/b962fe225fac8a450624d861b5d6e444526bcf32) +- [Dev Deps] update `@ljharb/eslint-config`, `@es-shims/api` [`5aa11dd`](https://github.com/es-shims/Array.prototype.findLastIndex/commit/5aa11dd23ee2bcdc9ca7d2d6007e7f44a9356743) + +## [v1.1.0](https://github.com/es-shims/Array.prototype.findLastIndex/compare/v1.0.0...v1.1.0) - 2021-08-07 + +### Commits + +- [New] add ESM entry points [`ac5ada3`](https://github.com/es-shims/Array.prototype.findLastIndex/commit/ac5ada3d359ff267e6933dd817f4106e6de2c157) +- [Fix] ES3 engines: ensure nullish receiver throws [`4c6592a`](https://github.com/es-shims/Array.prototype.findLastIndex/commit/4c6592a7962351e82bb1b06c79de496bf4bcd08d) +- [Dev Deps] update `eslint`, `@tape` [`6895166`](https://github.com/es-shims/Array.prototype.findLastIndex/commit/6895166742a738a80d19ac4eaa6f12c97a5c7814) +- [Fix] add missing entry points to `exports` [`ac2f138`](https://github.com/es-shims/Array.prototype.findLastIndex/commit/ac2f1384dcd9a9f736ce1c3c5dc7ac87e16c4f90) +- [Deps] update `es-abstract` [`c379fb7`](https://github.com/es-shims/Array.prototype.findLastIndex/commit/c379fb7681ea3bb078891bf394756b1086bc43e7) + +## v1.0.0 - 2021-07-13 + +### Commits + +- Implementation & Tests [`cf5cae1`](https://github.com/es-shims/Array.prototype.findLastIndex/commit/cf5cae1d78c0c74588a5baade5156950e17f4558) +- Initial commit [`2778f1c`](https://github.com/es-shims/Array.prototype.findLastIndex/commit/2778f1cc708cc79d3bdbc20d5b84d210b9670b8a) +- npm init [`873482d`](https://github.com/es-shims/Array.prototype.findLastIndex/commit/873482d650b6800e9484865c3b0d6d33664bcf9e) +- Only apps should have lockfiles [`b7c73ee`](https://github.com/es-shims/Array.prototype.findLastIndex/commit/b7c73ee858f01b0b1ff70800e09c0bbc2632e1a5) diff --git a/node_modules/array.prototype.findlastindex/LICENSE b/node_modules/array.prototype.findlastindex/LICENSE new file mode 100644 index 0000000000..40680dc464 --- /dev/null +++ b/node_modules/array.prototype.findlastindex/LICENSE @@ -0,0 +1,21 @@ +MIT License + +Copyright (c) 2021 ECMAScript Shims + +Permission is hereby granted, free of charge, to any person obtaining a copy +of this software and associated documentation files (the "Software"), to deal +in the Software without restriction, including without limitation the rights +to use, copy, modify, merge, publish, distribute, sublicense, and/or sell +copies of the Software, and to permit persons to whom the Software is +furnished to do so, subject to the following conditions: + +The above copyright notice and this permission notice shall be included in all +copies or substantial portions of the Software. + +THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR +IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, +FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE +AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER +LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, +OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE +SOFTWARE. diff --git a/node_modules/array.prototype.findlastindex/README.md b/node_modules/array.prototype.findlastindex/README.md new file mode 100644 index 0000000000..109ac788f5 --- /dev/null +++ b/node_modules/array.prototype.findlastindex/README.md @@ -0,0 +1,74 @@ +# array.prototype.findlastindex [![Version Badge][npm-version-svg]][package-url] + +[![github actions][actions-image]][actions-url] +[![coverage][codecov-image]][codecov-url] +[![dependency status][deps-svg]][deps-url] +[![dev dependency status][dev-deps-svg]][dev-deps-url] +[![License][license-image]][license-url] +[![Downloads][downloads-image]][downloads-url] + +[![npm badge][npm-badge-png]][package-url] + +An ESnext spec-compliant `Array.prototype.findLastIndex` shim/polyfill/replacement that works as far down as ES3. + +This package implements the [es-shim API](https://github.com/es-shims/api) interface. It works in an ES3-supported environment and complies with the proposed [spec](https://tc39.es/proposal-array-find-from-last). + +Because `Array.prototype.findLastIndex` depends on a receiver (the `this` value), the main export takes the array to operate on as the first argument. + +## Getting started + +```sh +npm install --save array.prototype.findlastindex +``` + +## Usage/Examples + +```js +var findLastIndex = require('array.prototype.findlastindex'); +var assert = require('assert'); + +var arr = [1, [2], [], 3, [[4]]]; +var isNumber = function (x) { return typeof x === 'number' }; + +assert.deepEqual(findLastIndex(arr, isNumber), 3); +``` + +```js +var findLastIndex = require('array.prototype.findlastindex'); +var assert = require('assert'); +/* when Array#findLastIndex is not present */ +delete Array.prototype.findLastIndex; +var shimmed = findLastIndex.shim(); + +assert.equal(shimmed, findLastIndex.getPolyfill()); +assert.deepEqual(arr.findLastIndex(isNumber), findLastIndex(arr, isNumber)); +``` + +```js +var findLastIndex = require('array.prototype.findlastindex'); +var assert = require('assert'); +/* when Array#findLastIndex is present */ +var shimmed = findLastIndex.shim(); + +assert.equal(shimmed, Array.prototype.findLastIndex); +assert.deepEqual(arr.findLastIndex(isNumber), findLastIndex(arr, isNumber)); +``` + +## Tests +Simply clone the repo, `npm install`, and run `npm test` + +[package-url]: https://npmjs.org/package/array.prototype.findlastindex +[npm-version-svg]: https://versionbadg.es/es-shims/Array.prototype.findLastIndex.svg +[deps-svg]: https://david-dm.org/es-shims/Array.prototype.findLastIndex.svg +[deps-url]: https://david-dm.org/es-shims/Array.prototype.findLastIndex +[dev-deps-svg]: https://david-dm.org/es-shims/Array.prototype.findLastIndex/dev-status.svg +[dev-deps-url]: https://david-dm.org/es-shims/Array.prototype.findLastIndex#info=devDependencies +[npm-badge-png]: https://nodei.co/npm/array.prototype.findlastindex.png?downloads=true&stars=true +[license-image]: https://img.shields.io/npm/l/array.prototype.findlastindex.svg +[license-url]: LICENSE +[downloads-image]: https://img.shields.io/npm/dm/array.prototype.findlastindex.svg +[downloads-url]: https://npm-stat.com/charts.html?package=array.prototype.findlastindex +[codecov-image]: https://codecov.io/gh/es-shims/Array.prototype.findLastIndex/branch/main/graphs/badge.svg +[codecov-url]: https://app.codecov.io/gh/es-shims/Array.prototype.findLastIndex/ +[actions-image]: https://img.shields.io/endpoint?url=https://github-actions-badge-u3jn4tfpocch.runkit.sh/es-shims/Array.prototype.findLastIndex +[actions-url]: https://github.com/es-shims/Array.prototype.findLastIndex diff --git a/node_modules/array.prototype.findlastindex/auto.js b/node_modules/array.prototype.findlastindex/auto.js new file mode 100644 index 0000000000..8ebf606cb0 --- /dev/null +++ b/node_modules/array.prototype.findlastindex/auto.js @@ -0,0 +1,3 @@ +'use strict'; + +require('./shim')(); diff --git a/node_modules/array.prototype.findlastindex/implementation.js b/node_modules/array.prototype.findlastindex/implementation.js new file mode 100644 index 0000000000..e8bb2b0ef3 --- /dev/null +++ b/node_modules/array.prototype.findlastindex/implementation.js @@ -0,0 +1,39 @@ +'use strict'; + +var GetIntrinsic = require('get-intrinsic'); +var $TypeError = GetIntrinsic('%TypeError%'); + +var Call = require('es-abstract/2022/Call'); +var Get = require('es-abstract/2022/Get'); +var IsCallable = require('es-abstract/2022/IsCallable'); +var LengthOfArrayLike = require('es-abstract/2022/LengthOfArrayLike'); +var ToBoolean = require('es-abstract/2022/ToBoolean'); +var ToObject = require('es-abstract/2022/ToObject'); +var ToString = require('es-abstract/2022/ToString'); + +module.exports = function findLastIndex(predicate) { + var O = ToObject(this); + var len = LengthOfArrayLike(O); + + if (!IsCallable(predicate)) { + throw new $TypeError('predicate must be a function'); + } + + var thisArg; + if (arguments.length > 1) { + thisArg = arguments[1]; + } + + var k = len - 1; + while (k >= 0) { + var Pk = ToString(k); + var kValue = Get(O, Pk); + var testResult = ToBoolean(Call(predicate, thisArg, [kValue, k, O])); + if (testResult) { + return k; + } + k -= 1; + } + + return -1; +}; diff --git a/node_modules/array.prototype.findlastindex/index.js b/node_modules/array.prototype.findlastindex/index.js new file mode 100644 index 0000000000..cb190585a7 --- /dev/null +++ b/node_modules/array.prototype.findlastindex/index.js @@ -0,0 +1,28 @@ +'use strict'; + +var define = require('define-properties'); +var callBind = require('call-bind'); +var callBound = require('call-bind/callBound'); +var RequireObjectCoercible = require('es-abstract/2022/RequireObjectCoercible'); + +var implementation = require('./implementation'); +var getPolyfill = require('./polyfill'); +var polyfill = getPolyfill(); +var shim = require('./shim'); + +var $slice = callBound('Array.prototype.slice'); + +var bound = callBind.apply(polyfill); +// eslint-disable-next-line no-unused-vars +var boundFindLast = function findLastIndex(array, predicate) { + RequireObjectCoercible(array); + return bound(array, $slice(arguments, 1)); +}; + +define(boundFindLast, { + getPolyfill: getPolyfill, + implementation: implementation, + shim: shim +}); + +module.exports = boundFindLast; diff --git a/node_modules/array.prototype.findlastindex/index.mjs b/node_modules/array.prototype.findlastindex/index.mjs new file mode 100644 index 0000000000..b83bb22f74 --- /dev/null +++ b/node_modules/array.prototype.findlastindex/index.mjs @@ -0,0 +1,18 @@ +import callBind from 'call-bind'; +import callBound from 'call-bind/callBound'; +import RequireObjectCoercible from 'es-abstract/2022/RequireObjectCoercible.js'; + +import getPolyfill from 'array.prototype.findlastindex/polyfill'; + +const bound = callBind.apply(getPolyfill()); +const $slice = callBound('Array.prototype.slice'); + +// eslint-disable-next-line no-unused-vars +export default function findLastIndex(array, predicate) { + RequireObjectCoercible(array); + return bound(array, $slice(arguments, 1)); +} + +export { default as getPolyfill } from 'array.prototype.findlastindex/polyfill'; +export { default as implementation } from 'array.prototype.findlastindex/implementation'; +export { default as shim } from 'array.prototype.findlastindex/shim'; diff --git a/node_modules/array.prototype.findlastindex/package.json b/node_modules/array.prototype.findlastindex/package.json new file mode 100644 index 0000000000..b458468bd3 --- /dev/null +++ b/node_modules/array.prototype.findlastindex/package.json @@ -0,0 +1,119 @@ +{ + "name": "array.prototype.findlastindex", + "version": "1.2.2", + "description": "An ESnext spec-compliant `Array.prototype.findLastIndex` shim/polyfill/replacement that works as far down as ES3.", + "author": { + "name": "Jordan Harband", + "email": "ljharb@gmail.com", + "url": "http://ljharb.codes" + }, + "funding": { + "url": "https://github.com/sponsors/ljharb" + }, + "contributors": [ + { + "name": "Jordan Harband", + "email": "ljharb@gmail.com", + "url": "http://ljharb.codes" + } + ], + "license": "MIT", + "bugs": { + "url": "https://github.com/es-shims/Array.prototype.findLastIndex/issues" + }, + "homepage": "https://github.com/es-shims/Array.prototype.findLastIndex#readme", + "main": "index.js", + "exports": { + ".": [ + { + "import": "./index.mjs", + "require": "./index.js", + "default": "./index.js" + }, + "./index.js" + ], + "./auto": "./auto.js", + "./polyfill": "./polyfill.js", + "./implementation": "./implementation.js", + "./shim": "./shim.js", + "./package.json": "./package.json" + }, + "scripts": { + "prepack": "npmignore --auto --commentLines=autogenerated", + "prepublishOnly": "safe-publish-latest", + "prepublish": "not-in-publish || npm run prepublishOnly", + "pretest": "npm run --silent lint", + "posttest": "aud --production", + "tests-only": "nyc tape 'test/**/*.js'", + "tests-esm": "nyc node test/index.mjs", + "test": "npm run tests-only && npm run tests-esm", + "prelint": "evalmd README.md", + "lint": "eslint --ext=js,mjs .", + "postlint": "es-shim-api --bound", + "version": "auto-changelog && git add CHANGELOG.md", + "postversion": "auto-changelog && git add CHANGELOG.md && git commit --no-edit --amend && git tag -f \"v$(node -e \"console.log(require('./package.json').version)\")\"" + }, + "repository": { + "type": "git", + "url": "git+https://github.com/es-shims/Array.prototype.findLastIndex.git" + }, + "keywords": [ + "Array.prototype.findLastIndex", + "find", + "findLast", + "findLastIndex", + "array", + "ESnext", + "shim", + "polyfill", + "last", + "es-shim API" + ], + "dependencies": { + "call-bind": "^1.0.2", + "define-properties": "^1.1.4", + "es-abstract": "^1.20.4", + "es-shim-unscopables": "^1.0.0", + "get-intrinsic": "^1.1.3" + }, + "devDependencies": { + "@es-shims/api": "^2.2.3", + "@ljharb/eslint-config": "^21.0.0", + "aud": "^2.0.1", + "auto-changelog": "^2.4.0", + "es-value-fixtures": "^1.4.2", + "eslint": "=8.8.0", + "evalmd": "^0.0.19", + "for-each": "^0.3.3", + "has": "^1.0.3", + "has-strict-mode": "^1.0.1", + "in-publish": "^2.0.1", + "npmignore": "^0.3.0", + "nyc": "^10.3.2", + "object-inspect": "^1.12.2", + "safe-publish-latest": "^2.0.0", + "tape": "^5.6.1" + }, + "testling": { + "files": [ + "test/index.js", + "test/shimmed.js" + ] + }, + "engines": { + "node": ">= 0.4" + }, + "auto-changelog": { + "output": "CHANGELOG.md", + "template": "keepachangelog", + "unreleased": false, + "commitLimit": false, + "backfillLimit": false, + "hideCredit": true + }, + "publishConfig": { + "ignore": [ + ".github/workflows" + ] + } +} diff --git a/node_modules/array.prototype.findlastindex/polyfill.js b/node_modules/array.prototype.findlastindex/polyfill.js new file mode 100644 index 0000000000..8f85d0f87a --- /dev/null +++ b/node_modules/array.prototype.findlastindex/polyfill.js @@ -0,0 +1,7 @@ +'use strict'; + +var implementation = require('./implementation'); + +module.exports = function getPolyfill() { + return Array.prototype.findLastIndex || implementation; +}; diff --git a/node_modules/array.prototype.findlastindex/shim.js b/node_modules/array.prototype.findlastindex/shim.js new file mode 100644 index 0000000000..46b30a09e3 --- /dev/null +++ b/node_modules/array.prototype.findlastindex/shim.js @@ -0,0 +1,18 @@ +'use strict'; + +var define = require('define-properties'); +var getPolyfill = require('./polyfill'); +var shimUnscopables = require('es-shim-unscopables'); + +module.exports = function shimFindLastIndex() { + var polyfill = getPolyfill(); + define( + Array.prototype, + { findLastIndex: polyfill }, + { findLastIndex: function () { return Array.prototype.findLastIndex !== polyfill; } } + ); + + shimUnscopables('findLastIndex'); + + return polyfill; +}; diff --git a/node_modules/array.prototype.findlastindex/test/implementation.js b/node_modules/array.prototype.findlastindex/test/implementation.js new file mode 100644 index 0000000000..7fdf95b7da --- /dev/null +++ b/node_modules/array.prototype.findlastindex/test/implementation.js @@ -0,0 +1,20 @@ +'use strict'; + +var implementation = require('../implementation'); +var callBind = require('call-bind'); +var test = require('tape'); +var hasStrictMode = require('has-strict-mode')(); +var runTests = require('./tests'); + +test('as a function', function (t) { + t.test('bad array/this value', { skip: !hasStrictMode }, function (st) { + /* eslint no-useless-call: 0 */ + st['throws'](function () { implementation.call(undefined); }, TypeError, 'undefined is not an object'); + st['throws'](function () { implementation.call(null); }, TypeError, 'null is not an object'); + st.end(); + }); + + runTests(callBind(implementation), t); + + t.end(); +}); diff --git a/node_modules/array.prototype.findlastindex/test/index.js b/node_modules/array.prototype.findlastindex/test/index.js new file mode 100644 index 0000000000..903ca8873d --- /dev/null +++ b/node_modules/array.prototype.findlastindex/test/index.js @@ -0,0 +1,18 @@ +'use strict'; + +var index = require('../'); +var callBind = require('call-bind'); +var test = require('tape'); +var runTests = require('./tests'); + +test('as a function', function (t) { + t.test('bad array/this value', function (st) { + st['throws'](callBind(index, null, undefined, function () {}), TypeError, 'undefined is not an object'); + st['throws'](callBind(index, null, null, function () {}), TypeError, 'null is not an object'); + st.end(); + }); + + runTests(index, t); + + t.end(); +}); diff --git a/node_modules/array.prototype.findlastindex/test/index.mjs b/node_modules/array.prototype.findlastindex/test/index.mjs new file mode 100644 index 0000000000..27696aef6e --- /dev/null +++ b/node_modules/array.prototype.findlastindex/test/index.mjs @@ -0,0 +1,31 @@ +import findLastIndex from 'array.prototype.findlastindex'; +import * as Module from 'array.prototype.findlastindex'; +import test from 'tape'; +import runTests from './tests.js'; + +test('as a function', (t) => { + t.test('bad array/this value', (st) => { + st.throws(() => findLastIndex(undefined), TypeError, 'undefined is not an object'); + st.throws(() => findLastIndex(null), TypeError, 'null is not an object'); + st.end(); + }); + + runTests(findLastIndex, t); + + t.end(); +}); + +test('named exports', async (t) => { + t.deepEqual( + Object.keys(Module).sort(), + ['default', 'shim', 'getPolyfill', 'implementation'].sort(), + 'has expected named exports', + ); + + const { shim, getPolyfill, implementation } = Module; + t.equal((await import('array.prototype.findlastindex/shim')).default, shim, 'shim named export matches deep export'); + t.equal((await import('array.prototype.findlastindex/implementation')).default, implementation, 'implementation named export matches deep export'); + t.equal((await import('array.prototype.findlastindex/polyfill')).default, getPolyfill, 'getPolyfill named export matches deep export'); + + t.end(); +}); diff --git a/node_modules/array.prototype.findlastindex/test/shimmed.js b/node_modules/array.prototype.findlastindex/test/shimmed.js new file mode 100644 index 0000000000..4970f02890 --- /dev/null +++ b/node_modules/array.prototype.findlastindex/test/shimmed.js @@ -0,0 +1,47 @@ +'use strict'; + +var orig = Array.prototype.findLastIndex; + +require('../auto'); + +var test = require('tape'); +var has = require('has'); +var defineProperties = require('define-properties'); +var callBind = require('call-bind'); +var isEnumerable = Object.prototype.propertyIsEnumerable; +var functionsHaveNames = function f() {}.name === 'f'; + +var runTests = require('./tests'); + +test('shimmed', function (t) { + t.comment('shimmed: ' + (orig === Array.prototype.findLastIndex ? 'no' : 'yes')); + + t.equal(Array.prototype.findLastIndex.length, 1, 'Array#findLastIndex has a length of 1'); + t.test('Function name', { skip: !functionsHaveNames }, function (st) { + st.equal(Array.prototype.findLastIndex.name, 'findLastIndex', 'Array#findLastIndex has name "findLastIndex"'); + st.end(); + }); + + t.test('enumerability', { skip: !defineProperties.supportsDescriptors }, function (et) { + et.equal(false, isEnumerable.call(Array.prototype, 'findLastIndex'), 'Array#findLastIndex is not enumerable'); + et.end(); + }); + + var supportsStrictMode = (function () { return typeof this === 'undefined'; }()); + + t.test('bad array/this value', { skip: !supportsStrictMode }, function (st) { + st['throws'](function () { return Array.prototype.findLastIndex.call(undefined, function () {}); }, TypeError, 'undefined is not an object'); + st['throws'](function () { return Array.prototype.findLastIndex.call(null, function () {}); }, TypeError, 'null is not an object'); + st.end(); + }); + + t.test('Symbol.unscopables', { skip: typeof Symbol !== 'function' || typeof Symbol.unscopables !== 'symbol' }, function (st) { + st.ok(has(Array.prototype[Symbol.unscopables], 'findLastIndex'), 'Array.prototype[Symbol.unscopables] has own `findLastIndex` property'); + st.equal(Array.prototype[Symbol.unscopables].findLastIndex, true, 'Array.prototype[Symbol.unscopables].findLastIndex is true'); + st.end(); + }); + + runTests(callBind(Array.prototype.findLastIndex), t); + + t.end(); +}); diff --git a/node_modules/array.prototype.findlastindex/test/tests.js b/node_modules/array.prototype.findlastindex/test/tests.js new file mode 100644 index 0000000000..3f8bad867f --- /dev/null +++ b/node_modules/array.prototype.findlastindex/test/tests.js @@ -0,0 +1,230 @@ +var hasStrictMode = require('has-strict-mode')(); +var v = require('es-value-fixtures'); +var forEach = require('for-each'); +var inspect = require('object-inspect'); + +var global = Function('return this')(); // eslint-disable-line no-new-func +var trueThunk = function () { return true; }; +var falseThunk = function () { return false; }; + +var canDistinguishSparseFromUndefined = 0 in [undefined]; // IE 6 - 8 have a bug where this returns false. +var undefinedIfNoSparseBug = canDistinguishSparseFromUndefined ? undefined : { valueOf: function () { return 0; } }; + +var createArrayLikeFromArray = function createArrayLikeFromArray(arr) { + var o = {}; + for (var i = 0; i < arr.length; i += 1) { + if (i in arr) { + o[i] = arr[i]; + } + } + o.length = arr.length; + return o; +}; + +var getTestArr = function () { + var arr = [0, false, null, 'hej', true, undefinedIfNoSparseBug, 3, 2]; + delete arr[6]; + return arr; +}; + +module.exports = function (findLastIndex, t) { + forEach(v.nonArrays, function (nonArray) { + if (nonArray != null) { // eslint-disable-line eqeqeq + t.equal( + findLastIndex(nonArray, function () { return true; }), + typeof nonArray.length === 'number' ? nonArray.length - 1 : -1, + inspect(nonArray) + ' is not an array' + ); + } + }); + + t.test('throws on a non-callable predicate', function (st) { + forEach(v.nonFunctions, function (nonFunction) { + st['throws']( + function () { findLastIndex([], nonFunction); }, + TypeError, + inspect(nonFunction) + ' is not a Function' + ); + }); + + st.end(); + }); + + t.test('passes the correct values to the callback', function (st) { + st.plan(5); + + var expectedValue = {}; + var arr = [expectedValue]; + var context = {}; + findLastIndex(arr, function (value, key, list) { + st.equal(arguments.length, 3); + st.equal(value, expectedValue, 'first argument is the value'); + st.equal(key, 0, 'second argument is the index'); + st.equal(list, arr, 'third argument is the array being iterated'); + st.equal(this, context, 'receiver is the expected value'); + return true; + }, context); + + st.end(); + }); + + t.test('does not visit elements added to the array after it has begun', function (st) { + st.plan(2); + + var arr = [1, 2, 3]; + var i = 0; + findLastIndex(arr, function (a) { + i += 1; + arr.push(a + 3); + return i > 3; + }); + st.deepEqual(arr, [1, 2, 3, 6, 5, 4], 'array has received 3 new elements'); + st.equal(i, 3, 'findLastIndex callback only called thrice'); + + st.end(); + }); + + t.test('does not visit elements deleted from the array after it has begun', function (st) { + var arr = [1, 2, 3]; + var actual = []; + findLastIndex(arr, function (x, i) { + actual.push([i, x]); + delete arr[1]; + return false; + }); + st.deepEqual(actual, [[2, 3], [1, undefined], [0, 1]]); + + st.end(); + }); + + t.test('sets the right context when given none', function (st) { + var context; + findLastIndex([1], function () { context = this; }); + st.equal(context, global, 'receiver is global object in sloppy mode'); + + st.test('strict mode', { skip: !hasStrictMode }, function (sst) { + findLastIndex([1], function () { + 'use strict'; + + context = this; + }); + sst.equal(context, undefined, 'receiver is undefined in strict mode'); + sst.end(); + }); + + st.end(); + }); + + t.test('empty array', function (st) { + st.equal(findLastIndex([], trueThunk), -1, 'true thunk callback yields -1'); + st.equal(findLastIndex([], falseThunk), -1, 'false thunk callback yields -1'); + + var counter = 0; + var callback = function () { counter += 1; }; + findLastIndex([], callback); + st.equal(counter, 0, 'counter is not incremented'); + + st.end(); + }); + + t.equal(findLastIndex([1, 2, 3], trueThunk), 2, 'returns last index if findLastIndex callback returns true'); + t.equal(findLastIndex([1, 2, 3], falseThunk), -1, 'returns -1 if no callback returns true'); + + t.test('stopping after N elements', function (st) { + st.test('no context', function (sst) { + var actual = {}; + var count = 0; + findLastIndex(getTestArr(), function (obj, index) { + actual[index] = obj; + count += 1; + return count === 4; + }); + sst.deepEqual(actual, { 4: true, 5: undefinedIfNoSparseBug, 6: undefined, 7: 2 }); + sst.end(); + }); + + st.test('with context', function (sst) { + var actual = {}; + var context = { actual: actual }; + var count = 0; + findLastIndex(getTestArr(), function (obj, index) { + this.actual[index] = obj; + count += 1; + return count === 4; + }, context); + sst.deepEqual(actual, { 4: true, 5: undefinedIfNoSparseBug, 6: undefined, 7: 2 }); + sst.end(); + }); + + st.test('arraylike, no context', function (sst) { + var actual = {}; + var count = 0; + findLastIndex(createArrayLikeFromArray(getTestArr()), function (obj, index) { + actual[index] = obj; + count += 1; + return count === 4; + }); + sst.deepEqual(actual, { 4: true, 5: undefinedIfNoSparseBug, 6: undefined, 7: 2 }); + sst.end(); + }); + + st.test('arraylike, context', function (sst) { + var actual = {}; + var count = 0; + var context = { actual: actual }; + findLastIndex(createArrayLikeFromArray(getTestArr()), function (obj, index) { + this.actual[index] = obj; + count += 1; + return count === 4; + }, context); + sst.deepEqual(actual, { 4: true, 5: undefinedIfNoSparseBug, 6: undefined, 7: 2 }); + sst.end(); + }); + + st.end(); + }); + + t.test('list arg boxing', function (st) { + st.plan(3); + + findLastIndex('bar', function (item, index, list) { + st.equal(item, 'r', 'last letter matches'); + st.equal(typeof list, 'object', 'primitive list arg is boxed'); + st.equal(Object.prototype.toString.call(list), '[object String]', 'boxed list arg is a String'); + return true; + }); + + st.end(); + }); + + t.test('array altered during loop', function (st) { + var arr = ['Shoes', 'Car', 'Bike']; + var results = []; + + findLastIndex(arr, function (kValue) { + if (results.length === 0) { + arr.splice(1, 1); + } + results.push(kValue); + }); + + st.equal(results.length, 3, 'predicate called three times'); + st.deepEqual(results, ['Bike', 'Bike', 'Shoes']); + + results = []; + arr = ['Skateboard', 'Barefoot']; + findLastIndex(arr, function (kValue) { + if (results.length === 0) { + arr.push('Motorcycle'); + arr[0] = 'Magic Carpet'; + } + + results.push(kValue); + }); + + st.equal(results.length, 2, 'predicate called twice'); + st.deepEqual(results, ['Barefoot', 'Magic Carpet']); + + st.end(); + }); +}; diff --git a/node_modules/arraybuffer.prototype.slice/.editorconfig b/node_modules/arraybuffer.prototype.slice/.editorconfig new file mode 100644 index 0000000000..eaa214161f --- /dev/null +++ b/node_modules/arraybuffer.prototype.slice/.editorconfig @@ -0,0 +1,13 @@ +root = true + +[*] +indent_style = tab; +insert_final_newline = true; +quote_type = auto; +space_after_anonymous_functions = true; +space_after_control_statements = true; +spaces_around_operators = true; +trim_trailing_whitespace = true; +spaces_in_brackets = false; +end_of_line = lf; + diff --git a/node_modules/arraybuffer.prototype.slice/.eslintrc b/node_modules/arraybuffer.prototype.slice/.eslintrc new file mode 100644 index 0000000000..963e2a847a --- /dev/null +++ b/node_modules/arraybuffer.prototype.slice/.eslintrc @@ -0,0 +1,34 @@ +{ + "root": true, + + "extends": "@ljharb", + + "rules": { + "id-length": 0, + "max-params": 0, + "max-statements": 0, + "multiline-comment-style": 0, + "new-cap": [2, { + "capIsNewExceptions": [ + "IsSharedArrayBuffer", + "ToIntegerOrInfinity", + "GetIntrinsic", + "IsDetachedBuffer", + "SpeciesConstructor", + ], + }], + }, + + "overrides": [ + { + "files": "test/**", + "globals": { + "ArrayBuffer": false, + "Uint8Array": false, + }, + "rules": { + "max-lines-per-function": 0, + }, + }, + ], +} diff --git a/node_modules/arraybuffer.prototype.slice/.nycrc b/node_modules/arraybuffer.prototype.slice/.nycrc new file mode 100644 index 0000000000..bdd626ce91 --- /dev/null +++ b/node_modules/arraybuffer.prototype.slice/.nycrc @@ -0,0 +1,9 @@ +{ + "all": true, + "check-coverage": false, + "reporter": ["text-summary", "text", "html", "json"], + "exclude": [ + "coverage", + "test" + ] +} diff --git a/node_modules/arraybuffer.prototype.slice/CHANGELOG.md b/node_modules/arraybuffer.prototype.slice/CHANGELOG.md new file mode 100644 index 0000000000..73c1378a54 --- /dev/null +++ b/node_modules/arraybuffer.prototype.slice/CHANGELOG.md @@ -0,0 +1,23 @@ +# Changelog + +All notable changes to this project will be documented in this file. + +The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.0.0/) +and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0.html). + +## [v1.0.1](https://github.com/es-shims/ArrayBuffer.prototype.slice/compare/v1.0.0...v1.0.1) - 2023-07-11 + +### Commits + +- [Fix] node < 0.11 has an own nonconfigurable `slice` property; use it [`554823c`](https://github.com/es-shims/ArrayBuffer.prototype.slice/commit/554823c92ce16d6b7184a7d0ccfe315b663584d7) +- [Dev Deps] update `@es-shims/api`, `@ljharb/eslint-config`, `aud`, `es-abstract`, `tape` [`53b0421`](https://github.com/es-shims/ArrayBuffer.prototype.slice/commit/53b04217048c645306597e2cfc55adb69c384146) +- [Deps] update `define-properties`, `get-intrinsic` [`4966b02`](https://github.com/es-shims/ArrayBuffer.prototype.slice/commit/4966b02bc25ac006709b29ca370b9f6e159f723a) + +## v1.0.0 - 2023-07-09 + +### Commits + +- Initial implementation, tests, readme [`36b4b5e`](https://github.com/es-shims/ArrayBuffer.prototype.slice/commit/36b4b5eedfa225c3086e9453b9db0088c299640a) +- Initial commit [`51499df`](https://github.com/es-shims/ArrayBuffer.prototype.slice/commit/51499dfac7d8c67c2928cb47363a4de7ff17904a) +- npm init [`8ec604e`](https://github.com/es-shims/ArrayBuffer.prototype.slice/commit/8ec604e7d3ef8d4c27376b09645f779c2244b08f) +- Only apps should have lockfiles [`ac54435`](https://github.com/es-shims/ArrayBuffer.prototype.slice/commit/ac54435161d4415e2122e3a682499f3a6df2f6de) diff --git a/node_modules/arraybuffer.prototype.slice/LICENSE b/node_modules/arraybuffer.prototype.slice/LICENSE new file mode 100644 index 0000000000..eb970aa5c9 --- /dev/null +++ b/node_modules/arraybuffer.prototype.slice/LICENSE @@ -0,0 +1,21 @@ +MIT License + +Copyright (c) 2023 ECMAScript Shims + +Permission is hereby granted, free of charge, to any person obtaining a copy +of this software and associated documentation files (the "Software"), to deal +in the Software without restriction, including without limitation the rights +to use, copy, modify, merge, publish, distribute, sublicense, and/or sell +copies of the Software, and to permit persons to whom the Software is +furnished to do so, subject to the following conditions: + +The above copyright notice and this permission notice shall be included in all +copies or substantial portions of the Software. + +THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR +IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, +FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE +AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER +LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, +OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE +SOFTWARE. diff --git a/node_modules/arraybuffer.prototype.slice/README.md b/node_modules/arraybuffer.prototype.slice/README.md new file mode 100644 index 0000000000..503585715b --- /dev/null +++ b/node_modules/arraybuffer.prototype.slice/README.md @@ -0,0 +1,61 @@ +# ArrayBuffer.prototype.slice [![Version Badge][npm-version-svg]][package-url] + +[![github actions][actions-image]][actions-url] +[![coverage][codecov-image]][codecov-url] +[![License][license-image]][license-url] +[![Downloads][downloads-image]][downloads-url] + +[![npm badge][npm-badge-png]][package-url] + +An ES spec-compliant `ArrayBuffer.prototype.slice` shim. Invoke its "shim" method to shim ArrayBuffer.prototype.slice if it is unavailable. + +This package implements the [es-shim API](https://github.com/es-shims/api) interface. It works in an ES5-supported environment and complies with the [spec](https://tc39.es/ecma262/#sec-arraybuffer.prototype.slice). + +Most common usage: +```js +var assert = require('assert'); +var slice = require('arraybuffer.prototype.slice'); + +var ab = new ArrayBuffer(1); +var arr = new Uint8Array(ab); +arr[0] = 123; + +var ab2 = slice(ab); + +var arr2 = new Uint8Array(ab2); +arr2[0] = 234; + +assert.deepEqual(arr, new Uint8Array([123])); +assert.deepEqual(arr2, new Uint8Array([234])); + +if (!ArrayBuffer.prototype.transfer) { + slice.shim(); +} + +var ab2 = ab.slice(); + +var arr2 = new Uint8Array(ab2); +arr2[0] = 234; + +assert.deepEqual(arr, new Uint8Array([123])); +assert.deepEqual(arr2, new Uint8Array([234])); +``` + +## Tests +Simply clone the repo, `npm install`, and run `npm test` + +[package-url]: https://npmjs.org/package/arraybuffer.prototype.slice +[npm-version-svg]: https://versionbadg.es/es-shims/ArrayBuffer.prototype.slice.svg +[deps-svg]: https://david-dm.org/es-shims/ArrayBuffer.prototype.slice.svg +[deps-url]: https://david-dm.org/es-shims/ArrayBuffer.prototype.slice +[dev-deps-svg]: https://david-dm.org/es-shims/ArrayBuffer.prototype.slice/dev-status.svg +[dev-deps-url]: https://david-dm.org/es-shims/ArrayBuffer.prototype.slice#info=devDependencies +[npm-badge-png]: https://nodei.co/npm/arraybuffer.prototype.slice.png?downloads=true&stars=true +[license-image]: https://img.shields.io/npm/l/arraybuffer.prototype.slice.svg +[license-url]: LICENSE +[downloads-image]: https://img.shields.io/npm/dm/arraybuffer.prototype.slice.svg +[downloads-url]: https://npm-stat.com/charts.html?package=arraybuffer.prototype.slice +[codecov-image]: https://codecov.io/gh/es-shims/ArrayBuffer.prototype.slice/branch/main/graphs/badge.svg +[codecov-url]: https://app.codecov.io/gh/es-shims/ArrayBuffer.prototype.slice/ +[actions-image]: https://img.shields.io/endpoint?url=https://github-actions-badge-u3jn4tfpocch.runkit.sh/es-shims/ArrayBuffer.prototype.slice +[actions-url]: https://github.com/es-shims/ArrayBuffer.prototype.slice/actions diff --git a/node_modules/arraybuffer.prototype.slice/auto.js b/node_modules/arraybuffer.prototype.slice/auto.js new file mode 100644 index 0000000000..8ebf606cb0 --- /dev/null +++ b/node_modules/arraybuffer.prototype.slice/auto.js @@ -0,0 +1,3 @@ +'use strict'; + +require('./shim')(); diff --git a/node_modules/arraybuffer.prototype.slice/implementation.js b/node_modules/arraybuffer.prototype.slice/implementation.js new file mode 100644 index 0000000000..4a55a8e122 --- /dev/null +++ b/node_modules/arraybuffer.prototype.slice/implementation.js @@ -0,0 +1,84 @@ +'use strict'; + +var GetIntrinsic = require('get-intrinsic'); + +var $ArrayBuffer = GetIntrinsic('%ArrayBuffer%', true); +var $TypeError = GetIntrinsic('%TypeError%'); +var $Uint8Array = GetIntrinsic('%Uint8Array%', true); + +var IsDetachedBuffer = require('es-abstract/2022/IsDetachedBuffer'); +var IsSharedArrayBuffer = require('es-abstract/2022/IsSharedArrayBuffer'); +var max = require('es-abstract/2022/max'); +var min = require('es-abstract/2022/min'); +var SpeciesConstructor = require('es-abstract/2022/SpeciesConstructor'); +var ToIntegerOrInfinity = require('es-abstract/2022/ToIntegerOrInfinity'); + +var arrayBufferByteLength = require('array-buffer-byte-length'); +var isArrayBuffer = require('is-array-buffer'); + +module.exports = function slice(start, end) { + var O = this; // step 1 + + if (!isArrayBuffer(O) || IsSharedArrayBuffer(O) || IsDetachedBuffer(O)) { + throw new $TypeError('receiver must be a non-detached, non-shared ArrayBuffer'); // steps 2-4 + } + + var len = arrayBufferByteLength(O); // step 5 + + var relativeStart = ToIntegerOrInfinity(start); // step 6 + + var first; + if (relativeStart === -Infinity) { + first = 0; // step 7 + } else if (relativeStart < 0) { + first = max(len + relativeStart, 0); // step 8 + } else { + first = min(relativeStart, len); // step 9 + } + + var relativeEnd = typeof end === 'undefined' ? len : ToIntegerOrInfinity(end); // step 10 + + var final; + if (relativeEnd === -Infinity) { + final = 0; // step 11 + } else if (relativeEnd < 0) { + final = max(len + relativeEnd, 0); // step 12 + } else { + final = min(relativeEnd, len); // step 13 + } + + var newLen = max(final - first, 0); // step 14 + + var Ctor = SpeciesConstructor(O, $ArrayBuffer); // step 15 + + var new$ = new Ctor(newLen); // step 16 + + if (!isArrayBuffer(new$) || IsSharedArrayBuffer(new$) || IsDetachedBuffer(new$)) { + throw new $TypeError('Species constructor must produce a non-detached, non-shared Array Buffer'); // steps 17-19 + } + + if (new$ === O) { + throw new $TypeError('new ArrayBuffer should not have been the same as the receiver'); // step 20 + } + + if (arrayBufferByteLength(new$) < newLen) { + throw new $TypeError('new ArrayBuffer\'s byteLength must be at least the requested length'); // step 21 + } + + if (IsDetachedBuffer(O)) { + throw new $TypeError('receiver became an detached ArrayBuffer'); // step 23 + } + + /* + 24. Let fromBuf be O.[[ArrayBufferData]]. + 25. Let toBuf be new.[[ArrayBufferData]]. + 26. Perform CopyDataBlockBytes(toBuf, 0, fromBuf, first, newLen). + */ + var sourceArr = new $Uint8Array(O); + var destArr = new $Uint8Array(new$); + for (var i = start, ii = 0; i < end; i++, ii++) { + destArr[ii] = sourceArr[i]; + } + + return new$; // step 27 +}; diff --git a/node_modules/arraybuffer.prototype.slice/index.js b/node_modules/arraybuffer.prototype.slice/index.js new file mode 100644 index 0000000000..517c4147e9 --- /dev/null +++ b/node_modules/arraybuffer.prototype.slice/index.js @@ -0,0 +1,18 @@ +'use strict'; + +var define = require('define-properties'); +var callBind = require('call-bind'); + +var implementation = require('./implementation'); +var getPolyfill = require('./polyfill'); +var shim = require('./shim'); + +var bound = callBind(getPolyfill()); + +define(bound, { + getPolyfill: getPolyfill, + implementation: implementation, + shim: shim +}); + +module.exports = bound; diff --git a/node_modules/arraybuffer.prototype.slice/package.json b/node_modules/arraybuffer.prototype.slice/package.json new file mode 100644 index 0000000000..17de7bb65e --- /dev/null +++ b/node_modules/arraybuffer.prototype.slice/package.json @@ -0,0 +1,103 @@ +{ + "name": "arraybuffer.prototype.slice", + "version": "1.0.1", + "description": "ES spec-compliant shim for ArrayBuffer.prototype.slice", + "author": "Jordan Harband ", + "funding": { + "url": "https://github.com/sponsors/ljharb" + }, + "license": "MIT", + "main": "index.js", + "exports": { + ".": "./index.js", + "./auto": "./auto.js", + "./polyfill": "./polyfill.js", + "./implementation": "./implementation.js", + "./shim": "./shim.js", + "./package.json": "./package.json" + }, + "scripts": { + "prepack": "npmignore --auto --commentLines=autogenerated", + "prepublish": "not-in-publish || npm run prepublishOnly", + "prepublishOnly": "safe-publish-latest", + "pretest": "npm run lint", + "test": "npm run tests-only", + "posttest": "aud --production", + "tests-only": "nyc tape 'test/**/*.js'", + "prelint": "eclint check $(git ls-files | xargs find 2> /dev/null | grep -vE 'node_modules|\\.git')", + "lint": "eslint --ext=js,mjs .", + "postlint": "evalmd README.md && es-shim-api --bound", + "version": "auto-changelog && git add CHANGELOG.md", + "postversion": "auto-changelog && git add CHANGELOG.md && git commit --no-edit --amend && git tag -f \"v$(node -e \"console.log(require('./package.json').version)\")\"" + }, + "repository": { + "type": "git", + "url": "git+https://github.com/es-shims/ArrayBuffer.prototype.slice.git" + }, + "homepage": "https://github.com/es-shims/ArrayBuffer.prototype.slice#readme", + "bugs": { + "url": "https://github.com/es-shims/ArrayBuffer.prototype.slice/issues" + }, + "keywords": [ + "javascript", + "ecmascript", + "ArrayBuffer.prototype.slice", + "polyfill", + "shim", + "ArrayBuffer", + "array", + "buffer", + "ArrayBuffer#slice", + "slice", + "typed array", + "es-shim API" + ], + "dependencies": { + "array-buffer-byte-length": "^1.0.0", + "call-bind": "^1.0.2", + "define-properties": "^1.2.0", + "get-intrinsic": "^1.2.1", + "is-array-buffer": "^3.0.2", + "is-shared-array-buffer": "^1.0.2" + }, + "devDependencies": { + "@es-shims/api": "^2.4.2", + "@ljharb/eslint-config": "^21.1.0", + "aud": "^2.0.3", + "auto-changelog": "^2.4.0", + "covert": "^1.1.1", + "eclint": "^2.8.1", + "es-abstract": "^1.21.2", + "es-value-fixtures": "^1.4.2", + "eslint": "=8.8.0", + "evalmd": "^0.0.19", + "for-each": "^0.3.3", + "functions-have-names": "^1.2.3", + "has-strict-mode": "^1.0.1", + "in-publish": "^2.0.1", + "npmignore": "^0.3.0", + "nyc": "^10.3.2", + "object-inspect": "^1.12.3", + "safe-publish-latest": "^2.0.0", + "tape": "^5.6.4" + }, + "testling": { + "files": "test/index.js" + }, + "engines": { + "node": ">= 0.4" + }, + "auto-changelog": { + "output": "CHANGELOG.md", + "template": "keepachangelog", + "unreleased": false, + "commitLimit": false, + "backfillLimit": false, + "hideCredit": true + }, + "publishConfig": { + "ignore": [ + ".github/workflows" + ] + } +} diff --git a/node_modules/arraybuffer.prototype.slice/polyfill.js b/node_modules/arraybuffer.prototype.slice/polyfill.js new file mode 100644 index 0000000000..a4a90ca166 --- /dev/null +++ b/node_modules/arraybuffer.prototype.slice/polyfill.js @@ -0,0 +1,21 @@ +'use strict'; + +var callBind = require('call-bind'); + +var implementation = require('./implementation'); + +var ownSlice = typeof ArrayBuffer === 'function' && new ArrayBuffer(0).slice; +var ownSliceBound = ownSlice && callBind(ownSlice); +var ownSliceWrapper = ownSliceBound && function slice(start, end) { + /* eslint no-invalid-this: 0 */ + if (arguments.length < 2) { + return ownSliceBound(this, arguments.length > 0 ? start : 0); + } + return ownSliceBound(this, start, end); +}; + +module.exports = function getPolyfill() { + return (typeof ArrayBuffer === 'function' && ArrayBuffer.prototype.slice) + || ownSliceWrapper + || implementation; +}; diff --git a/node_modules/arraybuffer.prototype.slice/shim.js b/node_modules/arraybuffer.prototype.slice/shim.js new file mode 100644 index 0000000000..cb52c07102 --- /dev/null +++ b/node_modules/arraybuffer.prototype.slice/shim.js @@ -0,0 +1,18 @@ +'use strict'; + +var define = require('define-properties'); + +var getPolyfill = require('./polyfill'); + +module.exports = function shimArrayBufferSlice() { + if (typeof ArrayBuffer === 'function') { + var polyfill = getPolyfill(); + define( + ArrayBuffer.prototype, + { slice: polyfill }, + { slice: function () { return ArrayBuffer.prototype.slice !== polyfill; } } + ); + } + + return polyfill; +}; diff --git a/node_modules/arraybuffer.prototype.slice/test/implementation.js b/node_modules/arraybuffer.prototype.slice/test/implementation.js new file mode 100644 index 0000000000..7d97bb77c3 --- /dev/null +++ b/node_modules/arraybuffer.prototype.slice/test/implementation.js @@ -0,0 +1,32 @@ +'use strict'; + +var implementation = require('../implementation'); +var callBind = require('call-bind'); +var test = require('tape'); +var hasStrictMode = require('has-strict-mode')(); +var runTests = require('./tests'); + +test('as a function', function (t) { + t.test('ArrayBuffer support', { skip: typeof ArrayBuffer === 'undefined' }, function (st) { + st.test('bad array/this value', { skip: !hasStrictMode }, function (s2t) { + /* eslint no-useless-call: 0 */ + s2t['throws'](function () { implementation.call(undefined); }, TypeError, 'undefined is not an object'); + s2t['throws'](function () { implementation.call(null); }, TypeError, 'null is not an object'); + s2t.end(); + }); + + runTests(callBind(implementation), st); + + st.end(); + }); + + t.test('no ArrayBuffer support', { skip: typeof ArrayBuffer !== 'undefined' }, function (st) { + st['throws']( + function () { implementation.call({}); }, + SyntaxError, + 'ArrayBuffer is not supported' + ); + }); + + t.end(); +}); diff --git a/node_modules/arraybuffer.prototype.slice/test/index.js b/node_modules/arraybuffer.prototype.slice/test/index.js new file mode 100644 index 0000000000..0e9dd102cd --- /dev/null +++ b/node_modules/arraybuffer.prototype.slice/test/index.js @@ -0,0 +1,29 @@ +'use strict'; + +var index = require('../'); +var test = require('tape'); +var runTests = require('./tests'); + +test('as a function', function (t) { + t.test('ArrayBuffer support', { skip: typeof ArrayBuffer === 'undefined' }, function (st) { + st.test('bad array/this value', function (s2t) { + s2t['throws'](function () { index(undefined); }, TypeError, 'undefined is not an object'); + s2t['throws'](function () { index(null); }, TypeError, 'null is not an object'); + s2t.end(); + }); + + runTests(index, st); + + st.end(); + }); + + t.test('no ArrayBuffer support', { skip: typeof ArrayBuffer !== 'undefined' }, function (st) { + st['throws']( + function () { index({}); }, + SyntaxError, + 'ArrayBuffer is not supported' + ); + }); + + t.end(); +}); diff --git a/node_modules/arraybuffer.prototype.slice/test/shimmed.js b/node_modules/arraybuffer.prototype.slice/test/shimmed.js new file mode 100644 index 0000000000..8dd4f72142 --- /dev/null +++ b/node_modules/arraybuffer.prototype.slice/test/shimmed.js @@ -0,0 +1,54 @@ +'use strict'; + +require('../auto'); + +var test = require('tape'); +var defineProperties = require('define-properties'); +var callBind = require('call-bind'); + +var isEnumerable = Object.prototype.propertyIsEnumerable; +var functionsHaveNames = require('functions-have-names')(); +var hasStrictMode = require('has-strict-mode')(); + +var runTests = require('./tests'); + +test('shimmed', function (t) { + t.test('ArrayBuffer support', { skip: typeof ArrayBuffer === 'undefined' }, function (st) { + var method = ArrayBuffer.prototype.slice; + + st.equal(method.length, 2, 'ArrayBuffer#slice has a length of 2'); + + st.test('Function name', { skip: !functionsHaveNames }, function (s2t) { + s2t.equal(method.name, 'slice', 'ArrayBuffer#slice name "slice"'); + s2t.end(); + }); + + st.test('enumerability', { skip: !defineProperties.supportsDescriptors }, function (et) { + et.equal(false, isEnumerable.call(ArrayBuffer.prototype, 'slice'), 'ArrayBuffer#slice is not enumerable'); + et.end(); + }); + + st.test('bad array/this value', { skip: !hasStrictMode }, function (s2t) { + /* eslint no-useless-call: 0 */ + s2t['throws'](function () { return method.call(undefined); }, TypeError, 'undefined is not an object'); + s2t['throws'](function () { return method.call(null); }, TypeError, 'null is not an object'); + s2t.end(); + }); + + t.test('has the correct descriptor', { skip: !Object.getOwnPropertyDescriptor }, function (s2t) { + var descriptor = Object.getOwnPropertyDescriptor(ArrayBuffer.prototype, 'slice'); + + s2t.equal(descriptor.configurable, true); + s2t.equal(descriptor.enumerable, false); + s2t.equal(typeof descriptor.value, 'function'); + s2t.equal(descriptor.writable, true); + s2t.end(); + }); + + runTests(callBind(method), st); + + st.end(); + }); + + t.end(); +}); diff --git a/node_modules/arraybuffer.prototype.slice/test/tests.js b/node_modules/arraybuffer.prototype.slice/test/tests.js new file mode 100644 index 0000000000..5416aeb9e6 --- /dev/null +++ b/node_modules/arraybuffer.prototype.slice/test/tests.js @@ -0,0 +1,81 @@ +'use strict'; + +var inspect = require('object-inspect'); +var IsDetachedBuffer = require('es-abstract/2022/IsDetachedBuffer'); + +var forEach = require('for-each'); +var v = require('es-value-fixtures'); + +var byteLength = require('array-buffer-byte-length'); + +module.exports = function runTests(slice, t) { + forEach(v.primitives.concat(v.objects), function (nonAB) { + t['throws']( + function () { slice(nonAB); }, + TypeError, + inspect(nonAB) + ' is not an ArrayBuffer' + ); + }); + + t.test('ArrayBuffers', { skip: typeof ArrayBuffer === 'undefined' }, function (st) { + var ab = new ArrayBuffer(0); + + st.equal(IsDetachedBuffer(ab), false, 'ArrayBuffer is not detached'); + + try { + var nb = slice(ab); + } catch (e) { + if (e instanceof SyntaxError) { + st.skip('Detaching ArrayBuffer is not supported'); + return st.end(); + } + console.log(e.stack); + } + + st.notEqual(nb, ab, 'new ArrayBuffer is not the same as the original'); + st.equal(IsDetachedBuffer(ab), false, 'old ArrayBuffer is not detached'); + st.equal(IsDetachedBuffer(nb), false, 'new ArrayBuffer is not detached'); + + var ab2 = new ArrayBuffer(8); + st.equal(byteLength(ab2), 8, 'original ArrayBuffer has length 8'); + try { + var nbLen = slice(ab2, 4); + } catch (e) { + if (e instanceof SyntaxError) { + st.skip('Detaching ArrayBuffer is not supported'); + return st.end(); + } + } + st.equal(IsDetachedBuffer(ab2), false, 'old ArrayBuffer is not detached'); + st.equal(IsDetachedBuffer(nbLen), false, 'new ArrayBuffer is not detached'); + + st.equal(byteLength(ab2), 8, 'original ArrayBuffer has length 8'); + st.equal(byteLength(nbLen), 4, 'newly sliced ArrayBuffer has length 4'); + + var one = new ArrayBuffer(1); + var arr = new Uint8Array(one); + arr[0] = 123; + + var two = slice(one); + + var arr2 = new Uint8Array(two); + arr2[0] = 234; + + st.deepEqual(arr, new Uint8Array([123]), 'original buffer is unchanged'); + st.deepEqual(arr2, new Uint8Array([234]), 'sliced buffer is changed'); + + return st.end(); + }); + + t.test('SharedArrayBuffers', { skip: typeof SharedArrayBuffer === 'undefined' }, function (st) { + var sab = new SharedArrayBuffer(0); + + st['throws']( + function () { slice(sab); }, + TypeError, + inspect(sab) + ' is not an ArrayBuffer' + ); + + st.end(); + }); +}; diff --git a/node_modules/define-properties/CHANGELOG.md b/node_modules/define-properties/CHANGELOG.md index 9c86b5b9e9..198a7f9bf5 100644 --- a/node_modules/define-properties/CHANGELOG.md +++ b/node_modules/define-properties/CHANGELOG.md @@ -1,3 +1,23 @@ +# Changelog + +All notable changes to this project will be documented in this file. + +The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.0.0/) +and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0.html). + +## [v1.2.0](https://github.com/ljharb/define-properties/compare/v1.1.4...v1.2.0) - 2023-02-10 + +### Commits + +- [New] if the predicate is boolean `true`, it compares the existing value with `===` as the predicate [`d8dd6fc`](https://github.com/ljharb/define-properties/commit/d8dd6fca40d7c5878a4b643b91e66ae5a513a194) +- [meta] add `auto-changelog` [`7ebe2b0`](https://github.com/ljharb/define-properties/commit/7ebe2b0a0f90e62b842942cd45e86864fe75d9f6) +- [meta] use `npmignore` to autogenerate an npmignore file [`647478a`](https://github.com/ljharb/define-properties/commit/647478a8401fbf053fb633c0a3a7c982da6bad74) +- [Dev Deps] update `@ljharb/eslint-config`, `aud`, `tape` [`e620d70`](https://github.com/ljharb/define-properties/commit/e620d707d2e1118a38796f22a862200eb0a53fff) +- [Dev Deps] update `aud`, `tape` [`f1e5072`](https://github.com/ljharb/define-properties/commit/f1e507225c2551a99ed4fe40d3fe71b0f44acf88) +- [actions] update checkout action [`628b3af`](https://github.com/ljharb/define-properties/commit/628b3af5c74b8f0963296d811a8f6fa657baf964) + + + 1.1.4 / 2022-04-14 ================= * [Refactor] use `has-property-descriptors` diff --git a/node_modules/define-properties/index.js b/node_modules/define-properties/index.js index 453afb9edc..a7874963f0 100644 --- a/node_modules/define-properties/index.js +++ b/node_modules/define-properties/index.js @@ -16,8 +16,14 @@ var hasPropertyDescriptors = require('has-property-descriptors')(); var supportsDescriptors = origDefineProperty && hasPropertyDescriptors; var defineProperty = function (object, name, value, predicate) { - if (name in object && (!isFunction(predicate) || !predicate())) { - return; + if (name in object) { + if (predicate === true) { + if (object[name] === value) { + return; + } + } else if (!isFunction(predicate) || !predicate()) { + return; + } } if (supportsDescriptors) { origDefineProperty(object, name, { diff --git a/node_modules/define-properties/package.json b/node_modules/define-properties/package.json index 215a7e93b3..4666867266 100644 --- a/node_modules/define-properties/package.json +++ b/node_modules/define-properties/package.json @@ -1,6 +1,6 @@ { "name": "define-properties", - "version": "1.1.4", + "version": "1.2.0", "author": "Jordan Harband ", "funding": { "url": "https://github.com/sponsors/ljharb" @@ -9,13 +9,16 @@ "license": "MIT", "main": "index.js", "scripts": { + "prepack": "npmignore --auto --commentLines=autogenerated", "prepublish": "not-in-publish || npm run prepublishOnly", "prepublishOnly": "safe-publish-latest", "pretest": "npm run lint", "test": "npm run tests-only", "posttest": "aud --production", "tests-only": "nyc tape 'test/**/*.js'", - "lint": "eslint --ext=js,mjs ." + "lint": "eslint --ext=js,mjs .", + "version": "auto-changelog && git add CHANGELOG.md", + "postversion": "auto-changelog && git add CHANGELOG.md && git commit --no-edit --amend && git tag -f \"v$(node -e \"console.log(require('./package.json').version)\")\"" }, "repository": { "type": "git", @@ -35,12 +38,15 @@ "object-keys": "^1.1.1" }, "devDependencies": { - "@ljharb/eslint-config": "^21.0.0", - "aud": "^2.0.0", + "@ljharb/eslint-config": "^21.0.1", + "aud": "^2.0.2", + "auto-changelog": "^2.4.0", "eslint": "=8.8.0", + "in-publish": "^2.0.1", + "npmignore": "^0.3.0", "nyc": "^10.3.2", "safe-publish-latest": "^2.0.0", - "tape": "^5.5.3" + "tape": "^5.6.3" }, "testling": { "files": "test/index.js", @@ -62,5 +68,20 @@ }, "engines": { "node": ">= 0.4" + }, + "auto-changelog": { + "output": "CHANGELOG.md", + "template": "keepachangelog", + "unreleased": false, + "commitLimit": false, + "backfillLimit": false, + "hideCredit": true, + "startingVersion": "1.1.5" + }, + "publishConfig": { + "ignore": [ + ".github/workflows", + "test/" + ] } } diff --git a/node_modules/es-abstract/.eslintrc b/node_modules/es-abstract/.eslintrc index 3d3372ac4c..d1c20db51d 100644 --- a/node_modules/es-abstract/.eslintrc +++ b/node_modules/es-abstract/.eslintrc @@ -13,7 +13,7 @@ "eqeqeq": [2, "allow-null"], "func-name-matching": 0, "id-length": [2, { "min": 1, "max": 40 }], - "max-params": [2, 4], + "max-params": [2, 5], "max-lines-per-function": 1, "max-statements": 1, "max-statements-per-line": [2, { "max": 2 }], @@ -67,8 +67,16 @@ }, }, { - "files": "*/RawBytesToNum*.js", + "files": [ + "*/Num*ToRawBytes.js", + "*/RawBytesToNum*.js", + "helpers/bytesAs*.js", + "helpers/valueToFloat*.js", + ], "rules": { + "max-lines-per-function": "off", + "max-statements": "off", + "no-redeclare": "warn", "operator-linebreak": [2, "before", { "overrides": { "=": "none" diff --git a/node_modules/es-abstract/2015/AbstractEqualityComparison.js b/node_modules/es-abstract/2015/AbstractEqualityComparison.js index c776194c1e..b56a506622 100644 --- a/node_modules/es-abstract/2015/AbstractEqualityComparison.js +++ b/node_modules/es-abstract/2015/AbstractEqualityComparison.js @@ -4,7 +4,7 @@ var ToNumber = require('./ToNumber'); var ToPrimitive = require('./ToPrimitive'); var Type = require('./Type'); -// https://ecma-international.org/ecma-262/6.0/#sec-abstract-equality-comparison +// https://262.ecma-international.org/6.0/#sec-abstract-equality-comparison module.exports = function AbstractEqualityComparison(x, y) { var xType = Type(x); diff --git a/node_modules/es-abstract/2015/AdvanceStringIndex.js b/node_modules/es-abstract/2015/AdvanceStringIndex.js index 279602b4cd..831ea96ef9 100644 --- a/node_modules/es-abstract/2015/AdvanceStringIndex.js +++ b/node_modules/es-abstract/2015/AdvanceStringIndex.js @@ -2,24 +2,24 @@ var GetIntrinsic = require('get-intrinsic'); -var IsInteger = require('./IsInteger'); var Type = require('./Type'); -var MAX_SAFE_INTEGER = require('../helpers/maxSafeInteger'); +var isInteger = require('../helpers/isInteger'); var isLeadingSurrogate = require('../helpers/isLeadingSurrogate'); var isTrailingSurrogate = require('../helpers/isTrailingSurrogate'); +var MAX_SAFE_INTEGER = require('../helpers/maxSafeInteger'); var $TypeError = GetIntrinsic('%TypeError%'); var $charCodeAt = require('call-bind/callBound')('String.prototype.charCodeAt'); -// https://ecma-international.org/ecma-262/6.0/#sec-advancestringindex +// https://262.ecma-international.org/6.0/#sec-advancestringindex module.exports = function AdvanceStringIndex(S, index, unicode) { if (Type(S) !== 'String') { throw new $TypeError('Assertion failed: `S` must be a String'); } - if (!IsInteger(index) || index < 0 || index > MAX_SAFE_INTEGER) { + if (!isInteger(index) || index < 0 || index > MAX_SAFE_INTEGER) { throw new $TypeError('Assertion failed: `length` must be an integer >= 0 and <= 2**53'); } if (Type(unicode) !== 'Boolean') { diff --git a/node_modules/es-abstract/2015/ArrayCreate.js b/node_modules/es-abstract/2015/ArrayCreate.js index cc890cafbf..0d34db9bec 100644 --- a/node_modules/es-abstract/2015/ArrayCreate.js +++ b/node_modules/es-abstract/2015/ArrayCreate.js @@ -7,7 +7,7 @@ var $RangeError = GetIntrinsic('%RangeError%'); var $SyntaxError = GetIntrinsic('%SyntaxError%'); var $TypeError = GetIntrinsic('%TypeError%'); -var IsInteger = require('./IsInteger'); +var isInteger = require('../helpers/isInteger'); var hasProto = require('has-proto')(); @@ -22,10 +22,10 @@ var $setProto = GetIntrinsic('%Object.setPrototypeOf%', true) || ( : null ); -// https://ecma-international.org/ecma-262/6.0/#sec-arraycreate +// https://262.ecma-international.org/6.0/#sec-arraycreate module.exports = function ArrayCreate(length) { - if (!IsInteger(length) || length < 0) { + if (!isInteger(length) || length < 0) { throw new $TypeError('Assertion failed: `length` must be an integer Number >= 0'); } if (length > MAX_ARRAY_LENGTH) { diff --git a/node_modules/es-abstract/2015/ArraySetLength.js b/node_modules/es-abstract/2015/ArraySetLength.js index 08db9c2e9b..45d7569e7d 100644 --- a/node_modules/es-abstract/2015/ArraySetLength.js +++ b/node_modules/es-abstract/2015/ArraySetLength.js @@ -19,7 +19,7 @@ var ToString = require('./ToString'); var ToUint32 = require('./ToUint32'); var Type = require('./Type'); -// https://ecma-international.org/ecma-262/6.0/#sec-arraysetlength +// https://262.ecma-international.org/6.0/#sec-arraysetlength // eslint-disable-next-line max-statements, max-lines-per-function module.exports = function ArraySetLength(A, Desc) { diff --git a/node_modules/es-abstract/2015/ArraySpeciesCreate.js b/node_modules/es-abstract/2015/ArraySpeciesCreate.js index 26d63b5e20..1944dfe7b8 100644 --- a/node_modules/es-abstract/2015/ArraySpeciesCreate.js +++ b/node_modules/es-abstract/2015/ArraySpeciesCreate.js @@ -9,13 +9,14 @@ var $TypeError = GetIntrinsic('%TypeError%'); var Get = require('./Get'); var IsArray = require('./IsArray'); var IsConstructor = require('./IsConstructor'); -var IsInteger = require('./IsInteger'); var Type = require('./Type'); -// https://ecma-international.org/ecma-262/6.0/#sec-arrayspeciescreate +var isInteger = require('../helpers/isInteger'); + +// https://262.ecma-international.org/6.0/#sec-arrayspeciescreate module.exports = function ArraySpeciesCreate(originalArray, length) { - if (!IsInteger(length) || length < 0) { + if (!isInteger(length) || length < 0) { throw new $TypeError('Assertion failed: length must be an integer >= 0'); } var len = length === 0 ? 0 : length; diff --git a/node_modules/es-abstract/2015/Call.js b/node_modules/es-abstract/2015/Call.js index 4b238c6916..be76246db0 100644 --- a/node_modules/es-abstract/2015/Call.js +++ b/node_modules/es-abstract/2015/Call.js @@ -7,9 +7,9 @@ var $TypeError = GetIntrinsic('%TypeError%'); var IsArray = require('./IsArray'); -var $apply = GetIntrinsic('%Reflect.apply%', true) || callBound('%Function.prototype.apply%'); +var $apply = GetIntrinsic('%Reflect.apply%', true) || callBound('Function.prototype.apply'); -// https://ecma-international.org/ecma-262/6.0/#sec-call +// https://262.ecma-international.org/6.0/#sec-call module.exports = function Call(F, V) { var argumentsList = arguments.length > 2 ? arguments[2] : []; diff --git a/node_modules/es-abstract/2015/CanonicalNumericIndexString.js b/node_modules/es-abstract/2015/CanonicalNumericIndexString.js index feb878c032..e9f386326c 100644 --- a/node_modules/es-abstract/2015/CanonicalNumericIndexString.js +++ b/node_modules/es-abstract/2015/CanonicalNumericIndexString.js @@ -9,7 +9,7 @@ var ToNumber = require('./ToNumber'); var ToString = require('./ToString'); var Type = require('./Type'); -// https://ecma-international.org/ecma-262/6.0/#sec-canonicalnumericindexstring +// https://262.ecma-international.org/6.0/#sec-canonicalnumericindexstring module.exports = function CanonicalNumericIndexString(argument) { if (Type(argument) !== 'String') { diff --git a/node_modules/es-abstract/2015/Canonicalize.js b/node_modules/es-abstract/2015/Canonicalize.js new file mode 100644 index 0000000000..8873db4c7c --- /dev/null +++ b/node_modules/es-abstract/2015/Canonicalize.js @@ -0,0 +1,55 @@ +'use strict'; + +var GetIntrinsic = require('get-intrinsic'); + +var $TypeError = GetIntrinsic('%TypeError%'); + +var callBound = require('call-bind/callBound'); +var has = require('has'); + +var $charCodeAt = callBound('String.prototype.charCodeAt'); +var $toUpperCase = callBound('String.prototype.toUpperCase'); + +var Type = require('./Type'); + +var caseFolding = require('../helpers/caseFolding'); + +// https://262.ecma-international.org/6.0/#sec-runtime-semantics-canonicalize-ch + +module.exports = function Canonicalize(ch, IgnoreCase, Unicode) { + if (Type(ch) !== 'String') { + throw new $TypeError('Assertion failed: `ch` must be a character'); + } + + if (Type(IgnoreCase) !== 'Boolean' || Type(Unicode) !== 'Boolean') { + throw new $TypeError('Assertion failed: `IgnoreCase` and `Unicode` must be Booleans'); + } + + if (!IgnoreCase) { + return ch; // step 1 + } + + if (Unicode) { // step 2 + if (has(caseFolding.C, ch)) { + return caseFolding.C[ch]; + } + if (has(caseFolding.S, ch)) { + return caseFolding.S[ch]; + } + return ch; // step 2.b + } + + var u = $toUpperCase(ch); // step 2 + + if (u.length !== 1) { + return ch; // step 3 + } + + var cu = u; // step 4 + + if ($charCodeAt(ch, 0) >= 128 && $charCodeAt(cu, 0) < 128) { + return ch; // step 5 + } + + return cu; +}; diff --git a/node_modules/es-abstract/2015/CharacterRange.js b/node_modules/es-abstract/2015/CharacterRange.js index 70e4b52355..78783a59f2 100644 --- a/node_modules/es-abstract/2015/CharacterRange.js +++ b/node_modules/es-abstract/2015/CharacterRange.js @@ -5,8 +5,8 @@ var callBound = require('call-bind/callBound'); var $fromCharCode = GetIntrinsic('%String.fromCharCode%'); var $TypeError = GetIntrinsic('%TypeError%'); -var $charCodeAt = callBound('%String.prototype.charCodeAt%'); -var $push = callBound('%Array.prototype.push%'); +var $charCodeAt = callBound('String.prototype.charCodeAt'); +var $push = callBound('Array.prototype.push'); module.exports = function CharacterRange(A, B) { if (A.length !== 1 || B.length !== 1) { diff --git a/node_modules/es-abstract/2015/CompletePropertyDescriptor.js b/node_modules/es-abstract/2015/CompletePropertyDescriptor.js index 548bf415a3..e8685197aa 100644 --- a/node_modules/es-abstract/2015/CompletePropertyDescriptor.js +++ b/node_modules/es-abstract/2015/CompletePropertyDescriptor.js @@ -8,7 +8,7 @@ var IsDataDescriptor = require('./IsDataDescriptor'); var IsGenericDescriptor = require('./IsGenericDescriptor'); var Type = require('./Type'); -// https://ecma-international.org/ecma-262/6.0/#sec-completepropertydescriptor +// https://262.ecma-international.org/6.0/#sec-completepropertydescriptor module.exports = function CompletePropertyDescriptor(Desc) { /* eslint no-param-reassign: 0 */ diff --git a/node_modules/es-abstract/2015/CreateDataProperty.js b/node_modules/es-abstract/2015/CreateDataProperty.js index 02c6cd1f8b..5bd5fc4787 100644 --- a/node_modules/es-abstract/2015/CreateDataProperty.js +++ b/node_modules/es-abstract/2015/CreateDataProperty.js @@ -4,17 +4,11 @@ var GetIntrinsic = require('get-intrinsic'); var $TypeError = GetIntrinsic('%TypeError%'); -var DefineOwnProperty = require('../helpers/DefineOwnProperty'); - -var FromPropertyDescriptor = require('./FromPropertyDescriptor'); -var OrdinaryGetOwnProperty = require('./OrdinaryGetOwnProperty'); -var IsDataDescriptor = require('./IsDataDescriptor'); -var IsExtensible = require('./IsExtensible'); var IsPropertyKey = require('./IsPropertyKey'); -var SameValue = require('./SameValue'); +var OrdinaryDefineOwnProperty = require('./OrdinaryDefineOwnProperty'); var Type = require('./Type'); -// https://ecma-international.org/ecma-262/6.0/#sec-createdataproperty +// https://262.ecma-international.org/6.0/#sec-createdataproperty module.exports = function CreateDataProperty(O, P, V) { if (Type(O) !== 'Object') { @@ -23,23 +17,11 @@ module.exports = function CreateDataProperty(O, P, V) { if (!IsPropertyKey(P)) { throw new $TypeError('Assertion failed: IsPropertyKey(P) is not true'); } - var oldDesc = OrdinaryGetOwnProperty(O, P); - var extensible = !oldDesc || IsExtensible(O); - var nonConfigurable = oldDesc && !oldDesc['[[Configurable]]']; - if (nonConfigurable || !extensible) { - return false; - } - return DefineOwnProperty( - IsDataDescriptor, - SameValue, - FromPropertyDescriptor, - O, - P, - { - '[[Configurable]]': true, - '[[Enumerable]]': true, - '[[Value]]': V, - '[[Writable]]': true - } - ); + var newDesc = { + '[[Configurable]]': true, + '[[Enumerable]]': true, + '[[Value]]': V, + '[[Writable]]': true + }; + return OrdinaryDefineOwnProperty(O, P, newDesc); }; diff --git a/node_modules/es-abstract/2015/CreateDataPropertyOrThrow.js b/node_modules/es-abstract/2015/CreateDataPropertyOrThrow.js index 2f7c410ba3..c40e69368b 100644 --- a/node_modules/es-abstract/2015/CreateDataPropertyOrThrow.js +++ b/node_modules/es-abstract/2015/CreateDataPropertyOrThrow.js @@ -8,7 +8,7 @@ var CreateDataProperty = require('./CreateDataProperty'); var IsPropertyKey = require('./IsPropertyKey'); var Type = require('./Type'); -// // https://ecma-international.org/ecma-262/6.0/#sec-createdatapropertyorthrow +// // https://262.ecma-international.org/6.0/#sec-createdatapropertyorthrow module.exports = function CreateDataPropertyOrThrow(O, P, V) { if (Type(O) !== 'Object') { diff --git a/node_modules/es-abstract/2015/CreateHTML.js b/node_modules/es-abstract/2015/CreateHTML.js index ccded1e65d..ea7633da68 100644 --- a/node_modules/es-abstract/2015/CreateHTML.js +++ b/node_modules/es-abstract/2015/CreateHTML.js @@ -12,7 +12,7 @@ var RequireObjectCoercible = require('./RequireObjectCoercible'); var ToString = require('./ToString'); var Type = require('./Type'); -// https://ecma-international.org/ecma-262/6.0/#sec-createhtml +// https://262.ecma-international.org/6.0/#sec-createhtml module.exports = function CreateHTML(string, tag, attribute, value) { if (Type(tag) !== 'String' || Type(attribute) !== 'String') { diff --git a/node_modules/es-abstract/2015/CreateIterResultObject.js b/node_modules/es-abstract/2015/CreateIterResultObject.js index eea77a5128..ed86b34f25 100644 --- a/node_modules/es-abstract/2015/CreateIterResultObject.js +++ b/node_modules/es-abstract/2015/CreateIterResultObject.js @@ -6,7 +6,7 @@ var $TypeError = GetIntrinsic('%TypeError%'); var Type = require('./Type'); -// https://ecma-international.org/ecma-262/6.0/#sec-createiterresultobject +// https://262.ecma-international.org/6.0/#sec-createiterresultobject module.exports = function CreateIterResultObject(value, done) { if (Type(done) !== 'Boolean') { diff --git a/node_modules/es-abstract/2015/CreateListFromArrayLike.js b/node_modules/es-abstract/2015/CreateListFromArrayLike.js index d1bb8b6587..4c34219206 100644 --- a/node_modules/es-abstract/2015/CreateListFromArrayLike.js +++ b/node_modules/es-abstract/2015/CreateListFromArrayLike.js @@ -14,11 +14,13 @@ var ToLength = require('./ToLength'); var ToString = require('./ToString'); var Type = require('./Type'); -// https://ecma-international.org/ecma-262/6.0/#sec-createlistfromarraylike +var defaultElementTypes = ['Undefined', 'Null', 'Boolean', 'String', 'Symbol', 'Number', 'Object']; + +// https://262.ecma-international.org/6.0/#sec-createlistfromarraylike module.exports = function CreateListFromArrayLike(obj) { var elementTypes = arguments.length > 1 ? arguments[1] - : ['Undefined', 'Null', 'Boolean', 'String', 'Symbol', 'Number', 'Object']; + : defaultElementTypes; if (Type(obj) !== 'Object') { throw new $TypeError('Assertion failed: `obj` must be an Object'); diff --git a/node_modules/es-abstract/2015/CreateMethodProperty.js b/node_modules/es-abstract/2015/CreateMethodProperty.js index 53274a5614..058c0f1760 100644 --- a/node_modules/es-abstract/2015/CreateMethodProperty.js +++ b/node_modules/es-abstract/2015/CreateMethodProperty.js @@ -12,7 +12,7 @@ var IsPropertyKey = require('./IsPropertyKey'); var SameValue = require('./SameValue'); var Type = require('./Type'); -// https://ecma-international.org/ecma-262/6.0/#sec-createmethodproperty +// https://262.ecma-international.org/6.0/#sec-createmethodproperty module.exports = function CreateMethodProperty(O, P, V) { if (Type(O) !== 'Object') { diff --git a/node_modules/es-abstract/2015/DefinePropertyOrThrow.js b/node_modules/es-abstract/2015/DefinePropertyOrThrow.js index 26f2714bb1..8fe097068d 100644 --- a/node_modules/es-abstract/2015/DefinePropertyOrThrow.js +++ b/node_modules/es-abstract/2015/DefinePropertyOrThrow.js @@ -15,7 +15,7 @@ var SameValue = require('./SameValue'); var ToPropertyDescriptor = require('./ToPropertyDescriptor'); var Type = require('./Type'); -// https://ecma-international.org/ecma-262/6.0/#sec-definepropertyorthrow +// https://262.ecma-international.org/6.0/#sec-definepropertyorthrow module.exports = function DefinePropertyOrThrow(O, P, desc) { if (Type(O) !== 'Object') { diff --git a/node_modules/es-abstract/2015/DeletePropertyOrThrow.js b/node_modules/es-abstract/2015/DeletePropertyOrThrow.js index 30d5e57c7b..581bf06ea2 100644 --- a/node_modules/es-abstract/2015/DeletePropertyOrThrow.js +++ b/node_modules/es-abstract/2015/DeletePropertyOrThrow.js @@ -7,7 +7,7 @@ var $TypeError = GetIntrinsic('%TypeError%'); var IsPropertyKey = require('./IsPropertyKey'); var Type = require('./Type'); -// https://ecma-international.org/ecma-262/6.0/#sec-deletepropertyorthrow +// https://262.ecma-international.org/6.0/#sec-deletepropertyorthrow module.exports = function DeletePropertyOrThrow(O, P) { if (Type(O) !== 'Object') { diff --git a/node_modules/es-abstract/2015/EnumerableOwnNames.js b/node_modules/es-abstract/2015/EnumerableOwnNames.js index e218edad72..b8235966ac 100644 --- a/node_modules/es-abstract/2015/EnumerableOwnNames.js +++ b/node_modules/es-abstract/2015/EnumerableOwnNames.js @@ -8,7 +8,7 @@ var keys = require('object-keys'); var Type = require('./Type'); -// https://ecma-international.org/ecma-262/6.0/#sec-enumerableownnames +// https://262.ecma-international.org/6.0/#sec-enumerableownnames module.exports = function EnumerableOwnNames(O) { if (Type(O) !== 'Object') { diff --git a/node_modules/es-abstract/2015/FromPropertyDescriptor.js b/node_modules/es-abstract/2015/FromPropertyDescriptor.js index e142ed582e..c70f0c60e1 100644 --- a/node_modules/es-abstract/2015/FromPropertyDescriptor.js +++ b/node_modules/es-abstract/2015/FromPropertyDescriptor.js @@ -5,7 +5,7 @@ var fromPropertyDescriptor = require('../helpers/fromPropertyDescriptor'); var Type = require('./Type'); -// https://ecma-international.org/ecma-262/6.0/#sec-frompropertydescriptor +// https://262.ecma-international.org/6.0/#sec-frompropertydescriptor module.exports = function FromPropertyDescriptor(Desc) { if (typeof Desc !== 'undefined') { diff --git a/node_modules/es-abstract/2015/Get.js b/node_modules/es-abstract/2015/Get.js index 297968643f..0973152222 100644 --- a/node_modules/es-abstract/2015/Get.js +++ b/node_modules/es-abstract/2015/Get.js @@ -9,7 +9,7 @@ var inspect = require('object-inspect'); var IsPropertyKey = require('./IsPropertyKey'); var Type = require('./Type'); -// https://ecma-international.org/ecma-262/6.0/#sec-get-o-p +// https://262.ecma-international.org/6.0/#sec-get-o-p module.exports = function Get(O, P) { // 7.3.1.1 diff --git a/node_modules/es-abstract/2015/GetIterator.js b/node_modules/es-abstract/2015/GetIterator.js index 892197a232..145557da42 100644 --- a/node_modules/es-abstract/2015/GetIterator.js +++ b/node_modules/es-abstract/2015/GetIterator.js @@ -11,7 +11,7 @@ var GetMethod = require('./GetMethod'); var IsArray = require('./IsArray'); var Type = require('./Type'); -// https://ecma-international.org/ecma-262/6.0/#sec-getiterator +// https://262.ecma-international.org/6.0/#sec-getiterator module.exports = function GetIterator(obj, method) { var actualMethod = method; diff --git a/node_modules/es-abstract/2015/GetMethod.js b/node_modules/es-abstract/2015/GetMethod.js index d3775178e6..e9f2854ff3 100644 --- a/node_modules/es-abstract/2015/GetMethod.js +++ b/node_modules/es-abstract/2015/GetMethod.js @@ -8,9 +8,9 @@ var GetV = require('./GetV'); var IsCallable = require('./IsCallable'); var IsPropertyKey = require('./IsPropertyKey'); -var debug = require('object-inspect'); +var inspect = require('object-inspect'); -// https://ecma-international.org/ecma-262/6.0/#sec-getmethod +// https://262.ecma-international.org/6.0/#sec-getmethod module.exports = function GetMethod(O, P) { // 7.3.9.1 @@ -28,7 +28,7 @@ module.exports = function GetMethod(O, P) { // 7.3.9.5 if (!IsCallable(func)) { - throw new $TypeError(P + ' is not a function: ' + debug(func)); + throw new $TypeError(inspect(P) + ' is not a function: ' + inspect(func)); } // 7.3.9.6 diff --git a/node_modules/es-abstract/2015/GetOwnPropertyKeys.js b/node_modules/es-abstract/2015/GetOwnPropertyKeys.js index 40c0b367fa..043fd733bd 100644 --- a/node_modules/es-abstract/2015/GetOwnPropertyKeys.js +++ b/node_modules/es-abstract/2015/GetOwnPropertyKeys.js @@ -12,7 +12,7 @@ var keys = require('object-keys'); var esType = require('./Type'); -// https://ecma-international.org/ecma-262/6.0/#sec-getownpropertykeys +// https://262.ecma-international.org/6.0/#sec-getownpropertykeys module.exports = function GetOwnPropertyKeys(O, Type) { if (esType(O) !== 'Object') { diff --git a/node_modules/es-abstract/2015/GetPrototypeFromConstructor.js b/node_modules/es-abstract/2015/GetPrototypeFromConstructor.js index 25ee12f353..0b281ef4fe 100644 --- a/node_modules/es-abstract/2015/GetPrototypeFromConstructor.js +++ b/node_modules/es-abstract/2015/GetPrototypeFromConstructor.js @@ -10,10 +10,13 @@ var Get = require('./Get'); var IsConstructor = require('./IsConstructor'); var Type = require('./Type'); -// https://ecma-international.org/ecma-262/6.0/#sec-getprototypefromconstructor +// https://262.ecma-international.org/6.0/#sec-getprototypefromconstructor module.exports = function GetPrototypeFromConstructor(constructor, intrinsicDefaultProto) { var intrinsic = GetIntrinsic(intrinsicDefaultProto); // throws if not a valid intrinsic + if (Type(intrinsic) !== 'Object') { + throw new $TypeError('intrinsicDefaultProto must be an object'); + } if (!IsConstructor(constructor)) { throw new $TypeError('Assertion failed: `constructor` must be a constructor'); } diff --git a/node_modules/es-abstract/2015/GetSubstitution.js b/node_modules/es-abstract/2015/GetSubstitution.js index a60d421366..47e5e30e6e 100644 --- a/node_modules/es-abstract/2015/GetSubstitution.js +++ b/node_modules/es-abstract/2015/GetSubstitution.js @@ -18,18 +18,14 @@ var $charAt = callBound('String.prototype.charAt'); var $strSlice = callBound('String.prototype.slice'); var IsArray = require('./IsArray'); -var IsInteger = require('./IsInteger'); var Type = require('./Type'); -var canDistinguishSparseFromUndefined = 0 in [undefined]; // IE 6 - 8 have a bug where this returns false +var isInteger = require('../helpers/isInteger'); +var isStringOrHole = require('../helpers/isStringOrHole'); -var isStringOrHole = function (capture, index, arr) { - return Type(capture) === 'String' || (canDistinguishSparseFromUndefined ? !(index in arr) : Type(capture) === 'Undefined'); -}; - -// https://ecma-international.org/ecma-262/6.0/#sec-getsubstitution +// https://262.ecma-international.org/6.0/#sec-getsubstitution -// eslint-disable-next-line max-statements, max-params, max-lines-per-function +// eslint-disable-next-line max-statements, max-lines-per-function module.exports = function GetSubstitution(matched, str, position, captures, replacement) { if (Type(matched) !== 'String') { throw new $TypeError('Assertion failed: `matched` must be a String'); @@ -41,7 +37,7 @@ module.exports = function GetSubstitution(matched, str, position, captures, repl } var stringLength = str.length; - if (!IsInteger(position) || position < 0 || position > stringLength) { + if (!isInteger(position) || position < 0 || position > stringLength) { throw new $TypeError('Assertion failed: `position` must be a nonnegative integer, and less than or equal to the length of `string`, got ' + inspect(position)); } diff --git a/node_modules/es-abstract/2015/GetV.js b/node_modules/es-abstract/2015/GetV.js index 2dcddb3513..706a9211ab 100644 --- a/node_modules/es-abstract/2015/GetV.js +++ b/node_modules/es-abstract/2015/GetV.js @@ -4,20 +4,22 @@ var GetIntrinsic = require('get-intrinsic'); var $TypeError = GetIntrinsic('%TypeError%'); +var inspect = require('object-inspect'); + var IsPropertyKey = require('./IsPropertyKey'); -var ToObject = require('./ToObject'); +// var ToObject = require('./ToObject'); -// https://ecma-international.org/ecma-262/6.0/#sec-getv +// https://262.ecma-international.org/6.0/#sec-getv module.exports = function GetV(V, P) { // 7.3.2.1 if (!IsPropertyKey(P)) { - throw new $TypeError('Assertion failed: IsPropertyKey(P) is not true'); + throw new $TypeError('Assertion failed: IsPropertyKey(P) is not true, got ' + inspect(P)); } // 7.3.2.2-3 - var O = ToObject(V); + // var O = ToObject(V); // 7.3.2.4 - return O[P]; + return V[P]; }; diff --git a/node_modules/es-abstract/2015/GetValueFromBuffer.js b/node_modules/es-abstract/2015/GetValueFromBuffer.js new file mode 100644 index 0000000000..0295846c7c --- /dev/null +++ b/node_modules/es-abstract/2015/GetValueFromBuffer.js @@ -0,0 +1,97 @@ +'use strict'; + +var GetIntrinsic = require('get-intrinsic'); + +var $TypeError = GetIntrinsic('%TypeError%'); +var $Uint8Array = GetIntrinsic('%Uint8Array%', true); + +var callBound = require('call-bind/callBound'); + +var $charAt = callBound('String.prototype.charAt'); +var $reverse = callBound('Array.prototype.reverse'); +var $slice = callBound('Array.prototype.slice'); + +var bytesAsFloat32 = require('../helpers/bytesAsFloat32'); +var bytesAsFloat64 = require('../helpers/bytesAsFloat64'); +var bytesAsInteger = require('../helpers/bytesAsInteger'); +var defaultEndianness = require('../helpers/defaultEndianness'); +var isInteger = require('../helpers/isInteger'); + +var IsDetachedBuffer = require('./IsDetachedBuffer'); + +var isArrayBuffer = require('is-array-buffer'); +var safeConcat = require('safe-array-concat'); + +var table49 = { + __proto__: null, + $Int8: 1, + $Uint8: 1, + $Uint8C: 1, + $Int16: 2, + $Uint16: 2, + $Int32: 4, + $Uint32: 4, + $Float32: 4, + $Float64: 8 +}; + +var isUnsignedElementType = function isUnsignedElementType(type) { return $charAt(type, 0) === 'U'; }; + +// https://262.ecma-international.org/6.0/#sec-getvaluefrombuffer + +module.exports = function GetValueFromBuffer(arrayBuffer, byteIndex, type) { + if (!isArrayBuffer(arrayBuffer)) { + throw new $TypeError('Assertion failed: `arrayBuffer` must be an ArrayBuffer'); + } + + if (!isInteger(byteIndex)) { + throw new $TypeError('Assertion failed: `byteIndex` must be an integer'); + } + + if (typeof type !== 'string') { + throw new $TypeError('Assertion failed: `type` must be a string'); + } + + if (arguments.length > 3 && typeof arguments[3] !== 'boolean') { + throw new $TypeError('Assertion failed: `isLittleEndian` must be a boolean, if present'); + } + + if (IsDetachedBuffer(arrayBuffer)) { + throw new $TypeError('Assertion failed: ArrayBuffer is detached'); // step 1 + } + + // 2. Assert: There are sufficient bytes in arrayBuffer starting at byteIndex to represent a value of type. + + if (byteIndex < 0) { + throw new $TypeError('Assertion failed: `byteIndex` must be non-negative'); // step 3 + } + + // 4. Let block be arrayBuffer’s [[ArrayBufferData]] internal slot. + + var elementSize = table49['$' + type]; // step 5 + if (!elementSize) { + throw new $TypeError('Assertion failed: `type` must be one of "Int8", "Uint8", "Uint8C", "Int16", "Uint16", "Int32", "Uint32", "Float32", or "Float64"'); + } + + // 6. Let rawValue be a List of elementSize containing, in order, the elementSize sequence of bytes starting with block[byteIndex]. + var rawValue = $slice(new $Uint8Array(arrayBuffer, byteIndex), 0, elementSize); // step 6 + + // 8. If isLittleEndian is not present, set isLittleEndian to either true or false. The choice is implementation dependent and should be the alternative that is most efficient for the implementation. An implementation must use the same value each time this step is executed and the same value must be used for the corresponding step in the SetValueInBuffer abstract operation. + var isLittleEndian = arguments.length > 3 ? arguments[3] : defaultEndianness === 'little'; // step 7 + + if (!isLittleEndian) { + $reverse(rawValue); // step 8 + } + + var bytes = $slice(safeConcat([0, 0, 0, 0, 0, 0, 0, 0], rawValue), -elementSize); + + if (type === 'Float32') { // step 3 + return bytesAsFloat32(bytes, true); + } + + if (type === 'Float64') { // step 4 + return bytesAsFloat64(bytes, true); + } + + return bytesAsInteger(bytes, elementSize, isUnsignedElementType(type), false); +}; diff --git a/node_modules/es-abstract/2015/HasOwnProperty.js b/node_modules/es-abstract/2015/HasOwnProperty.js index 04d28495f9..1f29ba4df1 100644 --- a/node_modules/es-abstract/2015/HasOwnProperty.js +++ b/node_modules/es-abstract/2015/HasOwnProperty.js @@ -9,7 +9,7 @@ var has = require('has'); var IsPropertyKey = require('./IsPropertyKey'); var Type = require('./Type'); -// https://ecma-international.org/ecma-262/6.0/#sec-hasownproperty +// https://262.ecma-international.org/6.0/#sec-hasownproperty module.exports = function HasOwnProperty(O, P) { if (Type(O) !== 'Object') { diff --git a/node_modules/es-abstract/2015/HasProperty.js b/node_modules/es-abstract/2015/HasProperty.js index b341654e7c..91476d208b 100644 --- a/node_modules/es-abstract/2015/HasProperty.js +++ b/node_modules/es-abstract/2015/HasProperty.js @@ -7,7 +7,7 @@ var $TypeError = GetIntrinsic('%TypeError%'); var IsPropertyKey = require('./IsPropertyKey'); var Type = require('./Type'); -// https://ecma-international.org/ecma-262/6.0/#sec-hasproperty +// https://262.ecma-international.org/6.0/#sec-hasproperty module.exports = function HasProperty(O, P) { if (Type(O) !== 'Object') { diff --git a/node_modules/es-abstract/2015/InstanceofOperator.js b/node_modules/es-abstract/2015/InstanceofOperator.js index a3c4d23755..4a34d0c20c 100644 --- a/node_modules/es-abstract/2015/InstanceofOperator.js +++ b/node_modules/es-abstract/2015/InstanceofOperator.js @@ -13,7 +13,7 @@ var OrdinaryHasInstance = require('./OrdinaryHasInstance'); var ToBoolean = require('./ToBoolean'); var Type = require('./Type'); -// https://ecma-international.org/ecma-262/6.0/#sec-instanceofoperator +// https://262.ecma-international.org/6.0/#sec-instanceofoperator module.exports = function InstanceofOperator(O, C) { if (Type(O) !== 'Object') { diff --git a/node_modules/es-abstract/2015/Invoke.js b/node_modules/es-abstract/2015/Invoke.js index d4214ee516..084e5e2825 100644 --- a/node_modules/es-abstract/2015/Invoke.js +++ b/node_modules/es-abstract/2015/Invoke.js @@ -9,7 +9,7 @@ var IsArray = require('./IsArray'); var GetV = require('./GetV'); var IsPropertyKey = require('./IsPropertyKey'); -// https://ecma-international.org/ecma-262/6.0/#sec-invoke +// https://262.ecma-international.org/6.0/#sec-invoke module.exports = function Invoke(O, P) { if (!IsPropertyKey(P)) { diff --git a/node_modules/es-abstract/2015/IsAccessorDescriptor.js b/node_modules/es-abstract/2015/IsAccessorDescriptor.js index 78563e7ecc..da64a302ac 100644 --- a/node_modules/es-abstract/2015/IsAccessorDescriptor.js +++ b/node_modules/es-abstract/2015/IsAccessorDescriptor.js @@ -2,11 +2,11 @@ var has = require('has'); -var assertRecord = require('../helpers/assertRecord'); - var Type = require('./Type'); -// https://ecma-international.org/ecma-262/6.0/#sec-isaccessordescriptor +var assertRecord = require('../helpers/assertRecord'); + +// https://262.ecma-international.org/5.1/#sec-8.10.1 module.exports = function IsAccessorDescriptor(Desc) { if (typeof Desc === 'undefined') { diff --git a/node_modules/es-abstract/2015/IsArray.js b/node_modules/es-abstract/2015/IsArray.js index 600ffa0028..c2c48c1f23 100644 --- a/node_modules/es-abstract/2015/IsArray.js +++ b/node_modules/es-abstract/2015/IsArray.js @@ -1,4 +1,4 @@ 'use strict'; -// https://ecma-international.org/ecma-262/6.0/#sec-isarray +// https://262.ecma-international.org/6.0/#sec-isarray module.exports = require('../helpers/IsArray'); diff --git a/node_modules/es-abstract/2015/IsConcatSpreadable.js b/node_modules/es-abstract/2015/IsConcatSpreadable.js index 141b33414d..10e1eab216 100644 --- a/node_modules/es-abstract/2015/IsConcatSpreadable.js +++ b/node_modules/es-abstract/2015/IsConcatSpreadable.js @@ -9,7 +9,7 @@ var IsArray = require('./IsArray'); var ToBoolean = require('./ToBoolean'); var Type = require('./Type'); -// https://ecma-international.org/ecma-262/6.0/#sec-isconcatspreadable +// https://262.ecma-international.org/6.0/#sec-isconcatspreadable module.exports = function IsConcatSpreadable(O) { if (Type(O) !== 'Object') { diff --git a/node_modules/es-abstract/2015/IsConstructor.js b/node_modules/es-abstract/2015/IsConstructor.js index fe626e1834..62ac47f6a3 100644 --- a/node_modules/es-abstract/2015/IsConstructor.js +++ b/node_modules/es-abstract/2015/IsConstructor.js @@ -12,7 +12,7 @@ try { DefinePropertyOrThrow = null; } -// https://ecma-international.org/ecma-262/6.0/#sec-isconstructor +// https://262.ecma-international.org/6.0/#sec-isconstructor if (DefinePropertyOrThrow && $construct) { var isConstructorMarker = {}; diff --git a/node_modules/es-abstract/2015/IsDataDescriptor.js b/node_modules/es-abstract/2015/IsDataDescriptor.js index 00d14a60eb..9db441e965 100644 --- a/node_modules/es-abstract/2015/IsDataDescriptor.js +++ b/node_modules/es-abstract/2015/IsDataDescriptor.js @@ -2,11 +2,11 @@ var has = require('has'); -var assertRecord = require('../helpers/assertRecord'); - var Type = require('./Type'); -// https://ecma-international.org/ecma-262/6.0/#sec-isdatadescriptor +var assertRecord = require('../helpers/assertRecord'); + +// https://262.ecma-international.org/5.1/#sec-8.10.2 module.exports = function IsDataDescriptor(Desc) { if (typeof Desc === 'undefined') { diff --git a/node_modules/es-abstract/2015/IsDetachedBuffer.js b/node_modules/es-abstract/2015/IsDetachedBuffer.js index 4b373e9ab5..01529bca2c 100644 --- a/node_modules/es-abstract/2015/IsDetachedBuffer.js +++ b/node_modules/es-abstract/2015/IsDetachedBuffer.js @@ -4,10 +4,7 @@ var GetIntrinsic = require('get-intrinsic'); var $TypeError = GetIntrinsic('%TypeError%'); -var callBound = require('call-bind/callBound'); - -var $byteLength = callBound('%ArrayBuffer.prototype.byteLength%', true) - || function byteLength(ab) { return ab.byteLength; }; // in node < 0.11, byteLength is an own nonconfigurable property +var $byteLength = require('array-buffer-byte-length'); var isArrayBuffer = require('is-array-buffer'); @@ -23,7 +20,7 @@ module.exports = function IsDetachedBuffer(arrayBuffer) { try { new global[availableTypedArrays[0]](arrayBuffer); // eslint-disable-line no-new } catch (error) { - return error.name === 'TypeError'; + return !!error && error.name === 'TypeError'; } } return false; diff --git a/node_modules/es-abstract/2015/IsExtensible.js b/node_modules/es-abstract/2015/IsExtensible.js index d6e3638401..aa19b914c2 100644 --- a/node_modules/es-abstract/2015/IsExtensible.js +++ b/node_modules/es-abstract/2015/IsExtensible.js @@ -7,7 +7,7 @@ var $isExtensible = GetIntrinsic('%Object.isExtensible%', true); var isPrimitive = require('../helpers/isPrimitive'); -// https://ecma-international.org/ecma-262/6.0/#sec-isextensible-o +// https://262.ecma-international.org/6.0/#sec-isextensible-o module.exports = $preventExtensions ? function IsExtensible(obj) { diff --git a/node_modules/es-abstract/2015/IsGenericDescriptor.js b/node_modules/es-abstract/2015/IsGenericDescriptor.js index 95b1d353c5..d43bec2b35 100644 --- a/node_modules/es-abstract/2015/IsGenericDescriptor.js +++ b/node_modules/es-abstract/2015/IsGenericDescriptor.js @@ -6,7 +6,7 @@ var IsAccessorDescriptor = require('./IsAccessorDescriptor'); var IsDataDescriptor = require('./IsDataDescriptor'); var Type = require('./Type'); -// https://ecma-international.org/ecma-262/6.0/#sec-isgenericdescriptor +// https://262.ecma-international.org/6.0/#sec-isgenericdescriptor module.exports = function IsGenericDescriptor(Desc) { if (typeof Desc === 'undefined') { diff --git a/node_modules/es-abstract/2015/IsInteger.js b/node_modules/es-abstract/2015/IsInteger.js index f4d1a2a7c5..e3d25f38e3 100644 --- a/node_modules/es-abstract/2015/IsInteger.js +++ b/node_modules/es-abstract/2015/IsInteger.js @@ -1,17 +1,9 @@ 'use strict'; -var abs = require('./abs'); -var floor = require('./floor'); +var isInteger = require('../helpers/isInteger'); -var $isNaN = require('../helpers/isNaN'); -var $isFinite = require('../helpers/isFinite'); - -// https://ecma-international.org/ecma-262/6.0/#sec-isinteger +// https://262.ecma-international.org/6.0/#sec-isinteger module.exports = function IsInteger(argument) { - if (typeof argument !== 'number' || $isNaN(argument) || !$isFinite(argument)) { - return false; - } - var absValue = abs(argument); - return floor(absValue) === absValue; + return isInteger(argument); }; diff --git a/node_modules/es-abstract/2015/IsPromise.js b/node_modules/es-abstract/2015/IsPromise.js index a551ae0c8b..411539b081 100644 --- a/node_modules/es-abstract/2015/IsPromise.js +++ b/node_modules/es-abstract/2015/IsPromise.js @@ -6,7 +6,7 @@ var $PromiseThen = callBound('Promise.prototype.then', true); var Type = require('./Type'); -// https://ecma-international.org/ecma-262/6.0/#sec-ispromise +// https://262.ecma-international.org/6.0/#sec-ispromise module.exports = function IsPromise(x) { if (Type(x) !== 'Object') { diff --git a/node_modules/es-abstract/2015/IsPropertyKey.js b/node_modules/es-abstract/2015/IsPropertyKey.js index f43ab581c7..aaeb6f9b6f 100644 --- a/node_modules/es-abstract/2015/IsPropertyKey.js +++ b/node_modules/es-abstract/2015/IsPropertyKey.js @@ -1,6 +1,6 @@ 'use strict'; -// https://ecma-international.org/ecma-262/6.0/#sec-ispropertykey +// https://262.ecma-international.org/6.0/#sec-ispropertykey module.exports = function IsPropertyKey(argument) { return typeof argument === 'string' || typeof argument === 'symbol'; diff --git a/node_modules/es-abstract/2015/IsRegExp.js b/node_modules/es-abstract/2015/IsRegExp.js index e1054813f1..33d983dc8d 100644 --- a/node_modules/es-abstract/2015/IsRegExp.js +++ b/node_modules/es-abstract/2015/IsRegExp.js @@ -8,7 +8,7 @@ var hasRegExpMatcher = require('is-regex'); var ToBoolean = require('./ToBoolean'); -// https://ecma-international.org/ecma-262/6.0/#sec-isregexp +// https://262.ecma-international.org/6.0/#sec-isregexp module.exports = function IsRegExp(argument) { if (!argument || typeof argument !== 'object') { diff --git a/node_modules/es-abstract/2015/IsWordChar.js b/node_modules/es-abstract/2015/IsWordChar.js new file mode 100644 index 0000000000..49f42eccac --- /dev/null +++ b/node_modules/es-abstract/2015/IsWordChar.js @@ -0,0 +1,39 @@ +'use strict'; + +var GetIntrinsic = require('get-intrinsic'); + +var $TypeError = GetIntrinsic('%TypeError%'); + +var IsArray = require('./IsArray'); +var IsInteger = require('./IsInteger'); + +var every = require('../helpers/every'); +var regexTester = require('safe-regex-test'); + +var isChar = function isChar(c) { + return typeof c === 'string' && c.length === 1; +}; + +var isWordCharacter = regexTester(/^[a-zA-Z0-9_]$/); + +// https://262.ecma-international.org/6.0/#sec-runtime-semantics-iswordchar-abstract-operation + +// note: prior to ES2023, this AO erroneously omitted the latter of its arguments. +module.exports = function IsWordChar(e, InputLength, Input) { + if (!IsInteger(e)) { + throw new $TypeError('Assertion failed: `e` must be an integer'); + } + if (!IsInteger(InputLength)) { + throw new $TypeError('Assertion failed: `InputLength` must be an integer'); + } + if (!IsArray(Input) || !every(Input, isChar)) { + throw new $TypeError('Assertion failed: `Input` must be a List of characters'); + } + if (e === -1 || e === InputLength) { + return false; // step 1 + } + + var c = Input[e]; // step 2 + + return isWordCharacter(c); // steps 3-4 +}; diff --git a/node_modules/es-abstract/2015/IteratorClose.js b/node_modules/es-abstract/2015/IteratorClose.js index f703ea632f..7c1076082e 100644 --- a/node_modules/es-abstract/2015/IteratorClose.js +++ b/node_modules/es-abstract/2015/IteratorClose.js @@ -10,7 +10,7 @@ var GetMethod = require('./GetMethod'); var IsCallable = require('./IsCallable'); var Type = require('./Type'); -// https://ecma-international.org/ecma-262/6.0/#sec-iteratorclose +// https://262.ecma-international.org/6.0/#sec-iteratorclose module.exports = function IteratorClose(iterator, completion) { if (Type(iterator) !== 'Object') { diff --git a/node_modules/es-abstract/2015/IteratorComplete.js b/node_modules/es-abstract/2015/IteratorComplete.js index ed4efa37d5..29f5f75fea 100644 --- a/node_modules/es-abstract/2015/IteratorComplete.js +++ b/node_modules/es-abstract/2015/IteratorComplete.js @@ -8,7 +8,7 @@ var Get = require('./Get'); var ToBoolean = require('./ToBoolean'); var Type = require('./Type'); -// https://ecma-international.org/ecma-262/6.0/#sec-iteratorcomplete +// https://262.ecma-international.org/6.0/#sec-iteratorcomplete module.exports = function IteratorComplete(iterResult) { if (Type(iterResult) !== 'Object') { diff --git a/node_modules/es-abstract/2015/IteratorNext.js b/node_modules/es-abstract/2015/IteratorNext.js index cf80655b93..d84d66edb5 100644 --- a/node_modules/es-abstract/2015/IteratorNext.js +++ b/node_modules/es-abstract/2015/IteratorNext.js @@ -7,7 +7,7 @@ var $TypeError = GetIntrinsic('%TypeError%'); var Invoke = require('./Invoke'); var Type = require('./Type'); -// https://ecma-international.org/ecma-262/6.0/#sec-iteratornext +// https://262.ecma-international.org/6.0/#sec-iteratornext module.exports = function IteratorNext(iterator, value) { var result = Invoke(iterator, 'next', arguments.length < 2 ? [] : [value]); diff --git a/node_modules/es-abstract/2015/IteratorStep.js b/node_modules/es-abstract/2015/IteratorStep.js index 41b9d1b251..85bcd95c04 100644 --- a/node_modules/es-abstract/2015/IteratorStep.js +++ b/node_modules/es-abstract/2015/IteratorStep.js @@ -3,7 +3,7 @@ var IteratorComplete = require('./IteratorComplete'); var IteratorNext = require('./IteratorNext'); -// https://ecma-international.org/ecma-262/6.0/#sec-iteratorstep +// https://262.ecma-international.org/6.0/#sec-iteratorstep module.exports = function IteratorStep(iterator) { var result = IteratorNext(iterator); diff --git a/node_modules/es-abstract/2015/IteratorValue.js b/node_modules/es-abstract/2015/IteratorValue.js index d15d8aebbf..e9b16daed5 100644 --- a/node_modules/es-abstract/2015/IteratorValue.js +++ b/node_modules/es-abstract/2015/IteratorValue.js @@ -7,7 +7,7 @@ var $TypeError = GetIntrinsic('%TypeError%'); var Get = require('./Get'); var Type = require('./Type'); -// https://ecma-international.org/ecma-262/6.0/#sec-iteratorvalue +// https://262.ecma-international.org/6.0/#sec-iteratorvalue module.exports = function IteratorValue(iterResult) { if (Type(iterResult) !== 'Object') { diff --git a/node_modules/es-abstract/2015/NewPromiseCapability.js b/node_modules/es-abstract/2015/NewPromiseCapability.js new file mode 100644 index 0000000000..e30b08811d --- /dev/null +++ b/node_modules/es-abstract/2015/NewPromiseCapability.js @@ -0,0 +1,36 @@ +'use strict'; + +var GetIntrinsic = require('get-intrinsic'); + +var $TypeError = GetIntrinsic('%TypeError%'); + +var IsCallable = require('es-abstract/2022/IsCallable'); +var IsConstructor = require('es-abstract/2022/IsConstructor'); + +// https://262.ecma-international.org/6.0/#sec-newpromisecapability + +module.exports = function NewPromiseCapability(C) { + if (!IsConstructor(C)) { + throw new $TypeError('C must be a constructor'); // step 1 + } + + var resolvingFunctions = { '[[Resolve]]': void undefined, '[[Reject]]': void undefined }; // step 3 + + var promise = new C(function (resolve, reject) { // steps 4-5 + if (typeof resolvingFunctions['[[Resolve]]'] !== 'undefined' || typeof resolvingFunctions['[[Reject]]'] !== 'undefined') { + throw new $TypeError('executor has already been called'); // step 4.a, 4.b + } + resolvingFunctions['[[Resolve]]'] = resolve; // step 4.c + resolvingFunctions['[[Reject]]'] = reject; // step 4.d + }); // step 4-6 + + if (!IsCallable(resolvingFunctions['[[Resolve]]']) || !IsCallable(resolvingFunctions['[[Reject]]'])) { + throw new $TypeError('executor must provide valid resolve and reject functions'); // steps 7-8 + } + + return { + '[[Promise]]': promise, + '[[Resolve]]': resolvingFunctions['[[Resolve]]'], + '[[Reject]]': resolvingFunctions['[[Reject]]'] + }; // step 9 +}; diff --git a/node_modules/es-abstract/2015/ObjectCreate.js b/node_modules/es-abstract/2015/ObjectCreate.js index 1f4bb16af4..d7d2d04d92 100644 --- a/node_modules/es-abstract/2015/ObjectCreate.js +++ b/node_modules/es-abstract/2015/ObjectCreate.js @@ -15,7 +15,7 @@ var SLOT = require('internal-slot'); var hasProto = require('has-proto')(); -// https://ecma-international.org/ecma-262/6.0/#sec-objectcreate +// https://262.ecma-international.org/6.0/#sec-objectcreate module.exports = function ObjectCreate(proto, internalSlotsList) { if (proto !== null && Type(proto) !== 'Object') { diff --git a/node_modules/es-abstract/2015/ObjectDefineProperties.js b/node_modules/es-abstract/2015/ObjectDefineProperties.js index f096f1edee..b47603487c 100644 --- a/node_modules/es-abstract/2015/ObjectDefineProperties.js +++ b/node_modules/es-abstract/2015/ObjectDefineProperties.js @@ -3,7 +3,6 @@ var callBound = require('call-bind/callBound'); var DefinePropertyOrThrow = require('./DefinePropertyOrThrow'); -var FromPropertyDescriptor = require('./FromPropertyDescriptor'); var Get = require('./Get'); var ToObject = require('./ToObject'); var ToPropertyDescriptor = require('./ToPropertyDescriptor'); @@ -32,7 +31,6 @@ module.exports = function ObjectDefineProperties(O, Properties) { forEach(descriptors, function (pair) { // step 5 var P = pair[0]; // step 5.a var desc = pair[1]; // step 5.b - desc = FromPropertyDescriptor(desc); // TODO: remove this once DefinePropertyOrThrow is fixed DefinePropertyOrThrow(O, P, desc); // step 5.c }); diff --git a/node_modules/es-abstract/2015/OrdinaryCreateFromConstructor.js b/node_modules/es-abstract/2015/OrdinaryCreateFromConstructor.js index e2a299eaa9..ede44ed6b7 100644 --- a/node_modules/es-abstract/2015/OrdinaryCreateFromConstructor.js +++ b/node_modules/es-abstract/2015/OrdinaryCreateFromConstructor.js @@ -7,7 +7,7 @@ var GetPrototypeFromConstructor = require('./GetPrototypeFromConstructor'); var IsArray = require('./IsArray'); var ObjectCreate = require('./ObjectCreate'); -// https://ecma-international.org/ecma-262/6.0/#sec-ordinarycreatefromconstructor +// https://262.ecma-international.org/6.0/#sec-ordinarycreatefromconstructor module.exports = function OrdinaryCreateFromConstructor(constructor, intrinsicDefaultProto) { GetIntrinsic(intrinsicDefaultProto); // throws if not a valid intrinsic diff --git a/node_modules/es-abstract/2015/OrdinaryDefineOwnProperty.js b/node_modules/es-abstract/2015/OrdinaryDefineOwnProperty.js index 34f029f7e5..70cd4fe58d 100644 --- a/node_modules/es-abstract/2015/OrdinaryDefineOwnProperty.js +++ b/node_modules/es-abstract/2015/OrdinaryDefineOwnProperty.js @@ -17,7 +17,7 @@ var SameValue = require('./SameValue'); var Type = require('./Type'); var ValidateAndApplyPropertyDescriptor = require('./ValidateAndApplyPropertyDescriptor'); -// https://ecma-international.org/ecma-262/6.0/#sec-ordinarydefineownproperty +// https://262.ecma-international.org/6.0/#sec-ordinarydefineownproperty module.exports = function OrdinaryDefineOwnProperty(O, P, Desc) { if (Type(O) !== 'Object') { diff --git a/node_modules/es-abstract/2015/OrdinaryGetOwnProperty.js b/node_modules/es-abstract/2015/OrdinaryGetOwnProperty.js index fd8035acb9..c23abe1103 100644 --- a/node_modules/es-abstract/2015/OrdinaryGetOwnProperty.js +++ b/node_modules/es-abstract/2015/OrdinaryGetOwnProperty.js @@ -17,7 +17,7 @@ var IsRegExp = require('./IsRegExp'); var ToPropertyDescriptor = require('./ToPropertyDescriptor'); var Type = require('./Type'); -// https://ecma-international.org/ecma-262/6.0/#sec-ordinarygetownproperty +// https://262.ecma-international.org/6.0/#sec-ordinarygetownproperty module.exports = function OrdinaryGetOwnProperty(O, P) { if (Type(O) !== 'Object') { diff --git a/node_modules/es-abstract/2015/OrdinaryHasInstance.js b/node_modules/es-abstract/2015/OrdinaryHasInstance.js index 85a240ca2f..996a50e070 100644 --- a/node_modules/es-abstract/2015/OrdinaryHasInstance.js +++ b/node_modules/es-abstract/2015/OrdinaryHasInstance.js @@ -8,10 +8,10 @@ var Get = require('./Get'); var IsCallable = require('./IsCallable'); var Type = require('./Type'); -// https://ecma-international.org/ecma-262/6.0/#sec-ordinaryhasinstance +// https://262.ecma-international.org/6.0/#sec-ordinaryhasinstance module.exports = function OrdinaryHasInstance(C, O) { - if (IsCallable(C) === false) { + if (!IsCallable(C)) { return false; } if (Type(O) !== 'Object') { diff --git a/node_modules/es-abstract/2015/OrdinaryHasProperty.js b/node_modules/es-abstract/2015/OrdinaryHasProperty.js index dd09ca3b1b..27e7da33ad 100644 --- a/node_modules/es-abstract/2015/OrdinaryHasProperty.js +++ b/node_modules/es-abstract/2015/OrdinaryHasProperty.js @@ -7,7 +7,7 @@ var $TypeError = GetIntrinsic('%TypeError%'); var IsPropertyKey = require('./IsPropertyKey'); var Type = require('./Type'); -// https://ecma-international.org/ecma-262/6.0/#sec-ordinaryhasproperty +// https://262.ecma-international.org/6.0/#sec-ordinaryhasproperty module.exports = function OrdinaryHasProperty(O, P) { if (Type(O) !== 'Object') { diff --git a/node_modules/es-abstract/2015/QuoteJSONString.js b/node_modules/es-abstract/2015/QuoteJSONString.js index 884afef25d..7dabf54bf2 100644 --- a/node_modules/es-abstract/2015/QuoteJSONString.js +++ b/node_modules/es-abstract/2015/QuoteJSONString.js @@ -15,7 +15,7 @@ var $strSplit = callBound('String.prototype.split'); var Type = require('./Type'); -// https://ecma-international.org/ecma-262/6.0/#sec-quotejsonstring +// https://262.ecma-international.org/6.0/#sec-quotejsonstring var escapes = { '\u0008': 'b', diff --git a/node_modules/es-abstract/2015/RegExpExec.js b/node_modules/es-abstract/2015/RegExpExec.js index 29fee1720c..cf15207415 100644 --- a/node_modules/es-abstract/2015/RegExpExec.js +++ b/node_modules/es-abstract/2015/RegExpExec.js @@ -11,7 +11,7 @@ var Get = require('./Get'); var IsCallable = require('./IsCallable'); var Type = require('./Type'); -// https://ecma-international.org/ecma-262/6.0/#sec-regexpexec +// https://262.ecma-international.org/6.0/#sec-regexpexec module.exports = function RegExpExec(R, S) { if (Type(R) !== 'Object') { diff --git a/node_modules/es-abstract/2015/SameValueZero.js b/node_modules/es-abstract/2015/SameValueZero.js index bf1a1486a1..3e2851b5ee 100644 --- a/node_modules/es-abstract/2015/SameValueZero.js +++ b/node_modules/es-abstract/2015/SameValueZero.js @@ -2,7 +2,7 @@ var $isNaN = require('../helpers/isNaN'); -// https://ecma-international.org/ecma-262/6.0/#sec-samevaluezero +// https://262.ecma-international.org/6.0/#sec-samevaluezero module.exports = function SameValueZero(x, y) { return (x === y) || ($isNaN(x) && $isNaN(y)); diff --git a/node_modules/es-abstract/2015/Set.js b/node_modules/es-abstract/2015/Set.js index 0971498879..9697031363 100644 --- a/node_modules/es-abstract/2015/Set.js +++ b/node_modules/es-abstract/2015/Set.js @@ -18,7 +18,7 @@ var noThrowOnStrictViolation = (function () { } }()); -// https://ecma-international.org/ecma-262/6.0/#sec-set-o-p-v-throw +// https://262.ecma-international.org/6.0/#sec-set-o-p-v-throw module.exports = function Set(O, P, V, Throw) { if (Type(O) !== 'Object') { diff --git a/node_modules/es-abstract/2015/SetFunctionName.js b/node_modules/es-abstract/2015/SetFunctionName.js index 03ec2227c7..f7fb0a9aab 100644 --- a/node_modules/es-abstract/2015/SetFunctionName.js +++ b/node_modules/es-abstract/2015/SetFunctionName.js @@ -12,7 +12,7 @@ var DefinePropertyOrThrow = require('./DefinePropertyOrThrow'); var IsExtensible = require('./IsExtensible'); var Type = require('./Type'); -// https://ecma-international.org/ecma-262/6.0/#sec-setfunctionname +// https://262.ecma-international.org/6.0/#sec-setfunctionname module.exports = function SetFunctionName(F, name) { if (typeof F !== 'function') { diff --git a/node_modules/es-abstract/2015/SetIntegrityLevel.js b/node_modules/es-abstract/2015/SetIntegrityLevel.js index 546f3e74f4..aaef85a0a2 100644 --- a/node_modules/es-abstract/2015/SetIntegrityLevel.js +++ b/node_modules/es-abstract/2015/SetIntegrityLevel.js @@ -15,7 +15,7 @@ var IsAccessorDescriptor = require('./IsAccessorDescriptor'); var ToPropertyDescriptor = require('./ToPropertyDescriptor'); var Type = require('./Type'); -// https://ecma-international.org/ecma-262/6.0/#sec-setintegritylevel +// https://262.ecma-international.org/6.0/#sec-setintegritylevel module.exports = function SetIntegrityLevel(O, level) { if (Type(O) !== 'Object') { diff --git a/node_modules/es-abstract/2015/SetValueInBuffer.js b/node_modules/es-abstract/2015/SetValueInBuffer.js new file mode 100644 index 0000000000..8208445890 --- /dev/null +++ b/node_modules/es-abstract/2015/SetValueInBuffer.js @@ -0,0 +1,120 @@ +'use strict'; + +var GetIntrinsic = require('get-intrinsic'); + +var $TypeError = GetIntrinsic('%TypeError%'); + +var isInteger = require('../helpers/isInteger'); + +var IsDetachedBuffer = require('./IsDetachedBuffer'); +var ToInt16 = require('./ToInt16'); +var ToInt32 = require('./ToInt32'); +var ToInt8 = require('./ToInt8'); +var ToUint16 = require('./ToUint16'); +var ToUint32 = require('./ToUint32'); +var ToUint8 = require('./ToUint8'); +var ToUint8Clamp = require('./ToUint8Clamp'); + +var isArrayBuffer = require('is-array-buffer'); +var has = require('has'); + +var table49 = { + __proto__: null, + Int8: 1, + Uint8: 1, + Uint8C: 1, + Int16: 2, + Uint16: 2, + Int32: 4, + Uint32: 4, + Float32: 4, + Float64: 8 +}; + +var TypeToAO = { + __proto__: null, + Int8: ToInt8, + Uint8: ToUint8, + Uint8C: ToUint8Clamp, + Int16: ToInt16, + Uint16: ToUint16, + Int32: ToInt32, + Uint32: ToUint32 +}; + +var defaultEndianness = require('../helpers/defaultEndianness'); +var forEach = require('../helpers/forEach'); +var integerToNBytes = require('../helpers/integerToNBytes'); +var valueToFloat32Bytes = require('../helpers/valueToFloat32Bytes'); +var valueToFloat64Bytes = require('../helpers/valueToFloat64Bytes'); + +// https://262.ecma-international.org/6.0/#sec-setvalueinbuffer + +module.exports = function SetValueInBuffer(arrayBuffer, byteIndex, type, value) { + if (!isArrayBuffer(arrayBuffer)) { + throw new $TypeError('Assertion failed: `arrayBuffer` must be an ArrayBuffer'); + } + + if (!isInteger(byteIndex)) { + throw new $TypeError('Assertion failed: `byteIndex` must be an integer'); + } + + if (typeof type !== 'string' || !has(table49, type)) { + throw new $TypeError('Assertion failed: `type` must be a Typed Array Element Type'); + } + + if (typeof value !== 'number') { + throw new $TypeError('Assertion failed: `value` must be a number'); + } + + if (arguments.length > 4 && typeof arguments[4] !== 'boolean') { + throw new $TypeError('Assertion failed: `isLittleEndian` must be a boolean, if present'); + } + + if (IsDetachedBuffer(arrayBuffer)) { + throw new $TypeError('Assertion failed: ArrayBuffer is detached'); // step 1 + } + + // 2. Assert: There are sufficient bytes in arrayBuffer starting at byteIndex to represent a value of type. + + if (byteIndex < 0) { + throw new $TypeError('Assertion failed: `byteIndex` must be non-negative'); // step 3 + } + + // 4. Assert: Type(value) is Number. + + // 5. Let block be arrayBuffer’s [[ArrayBufferData]] internal slot. + + // 6. Assert: block is not undefined. + + var elementSize = table49[type]; // step 7 + if (!elementSize) { + throw new $TypeError('Assertion failed: `type` must be one of "Int8", "Uint8", "Uint8C", "Int16", "Uint16", "Int32", "Uint32", "Float32", or "Float64"'); + } + + // 8. If isLittleEndian is not present, set isLittleEndian to either true or false. The choice is implementation dependent and should be the alternative that is most efficient for the implementation. An implementation must use the same value each time this step is executed and the same value must be used for the corresponding step in the GetValueFromBuffer abstract operation. + var isLittleEndian = arguments.length > 4 ? arguments[4] : defaultEndianness === 'little'; // step 8 + + var rawBytes; + if (type === 'Float32') { // step 1 + rawBytes = valueToFloat32Bytes(value, isLittleEndian); + } else if (type === 'Float64') { // step 2 + rawBytes = valueToFloat64Bytes(value, isLittleEndian); + } else { + var n = table49[type]; // step 3.a + + var convOp = TypeToAO[type]; // step 3.b + + var intValue = convOp(value); // step 3.c + + rawBytes = integerToNBytes(intValue, n, isLittleEndian); // step 3.d, 3.e, 4 + } + + // 12. Store the individual bytes of rawBytes into block, in order, starting at block[byteIndex]. + var arr = new Uint8Array(arrayBuffer, byteIndex, elementSize); + forEach(rawBytes, function (rawByte, i) { + arr[i] = rawByte; + }); + + // 13. Return NormalCompletion(undefined). +}; diff --git a/node_modules/es-abstract/2015/SpeciesConstructor.js b/node_modules/es-abstract/2015/SpeciesConstructor.js index 491eb9b87d..1937b9c9cd 100644 --- a/node_modules/es-abstract/2015/SpeciesConstructor.js +++ b/node_modules/es-abstract/2015/SpeciesConstructor.js @@ -8,7 +8,7 @@ var $TypeError = GetIntrinsic('%TypeError%'); var IsConstructor = require('./IsConstructor'); var Type = require('./Type'); -// https://ecma-international.org/ecma-262/6.0/#sec-speciesconstructor +// https://262.ecma-international.org/6.0/#sec-speciesconstructor module.exports = function SpeciesConstructor(O, defaultConstructor) { if (Type(O) !== 'Object') { diff --git a/node_modules/es-abstract/2015/SplitMatch.js b/node_modules/es-abstract/2015/SplitMatch.js index 8ab05355ed..d57fb691e5 100644 --- a/node_modules/es-abstract/2015/SplitMatch.js +++ b/node_modules/es-abstract/2015/SplitMatch.js @@ -5,9 +5,10 @@ var callBound = require('call-bind/callBound'); var $TypeError = GetIntrinsic('%TypeError%'); -var IsInteger = require('./IsInteger'); var Type = require('./Type'); +var isInteger = require('../helpers/isInteger'); + var $charAt = callBound('String.prototype.charAt'); // https://262.ecma-international.org/6.0/#sec-splitmatch @@ -16,7 +17,7 @@ module.exports = function SplitMatch(S, q, R) { if (Type(S) !== 'String') { throw new $TypeError('Assertion failed: `S` must be a String'); } - if (!IsInteger(q)) { + if (!isInteger(q)) { throw new $TypeError('Assertion failed: `q` must be an integer'); } if (Type(R) !== 'String') { diff --git a/node_modules/es-abstract/2015/SymbolDescriptiveString.js b/node_modules/es-abstract/2015/SymbolDescriptiveString.js index 1efd1316b2..89c253ffae 100644 --- a/node_modules/es-abstract/2015/SymbolDescriptiveString.js +++ b/node_modules/es-abstract/2015/SymbolDescriptiveString.js @@ -10,7 +10,7 @@ var $SymbolToString = callBound('Symbol.prototype.toString', true); var Type = require('./Type'); -// https://ecma-international.org/ecma-262/6.0/#sec-symboldescriptivestring +// https://262.ecma-international.org/6.0/#sec-symboldescriptivestring module.exports = function SymbolDescriptiveString(sym) { if (Type(sym) !== 'Symbol') { diff --git a/node_modules/es-abstract/2015/TestIntegrityLevel.js b/node_modules/es-abstract/2015/TestIntegrityLevel.js index 7f95a6e1d4..7cefab7017 100644 --- a/node_modules/es-abstract/2015/TestIntegrityLevel.js +++ b/node_modules/es-abstract/2015/TestIntegrityLevel.js @@ -13,7 +13,7 @@ var IsExtensible = require('./IsExtensible'); var ToPropertyDescriptor = require('./ToPropertyDescriptor'); var Type = require('./Type'); -// https://ecma-international.org/ecma-262/6.0/#sec-testintegritylevel +// https://262.ecma-international.org/6.0/#sec-testintegritylevel module.exports = function TestIntegrityLevel(O, level) { if (Type(O) !== 'Object') { diff --git a/node_modules/es-abstract/2015/ToDateString.js b/node_modules/es-abstract/2015/ToDateString.js index e636a9ba68..dabb2bb38a 100644 --- a/node_modules/es-abstract/2015/ToDateString.js +++ b/node_modules/es-abstract/2015/ToDateString.js @@ -4,12 +4,13 @@ var GetIntrinsic = require('get-intrinsic'); var $TypeError = GetIntrinsic('%TypeError%'); var $Date = GetIntrinsic('%Date%'); +var $String = GetIntrinsic('%String%'); var $isNaN = require('../helpers/isNaN'); var Type = require('./Type'); -// https://ecma-international.org/ecma-262/6.0/#sec-todatestring +// https://262.ecma-international.org/6.0/#sec-todatestring module.exports = function ToDateString(tv) { if (Type(tv) !== 'Number') { @@ -18,5 +19,5 @@ module.exports = function ToDateString(tv) { if ($isNaN(tv)) { return 'Invalid Date'; } - return $Date(tv); + return $String(new $Date(tv)); }; diff --git a/node_modules/es-abstract/2015/ToInt16.js b/node_modules/es-abstract/2015/ToInt16.js index cb8e7934bb..21694bdeb9 100644 --- a/node_modules/es-abstract/2015/ToInt16.js +++ b/node_modules/es-abstract/2015/ToInt16.js @@ -2,7 +2,7 @@ var ToUint16 = require('./ToUint16'); -// https://ecma-international.org/ecma-262/6.0/#sec-toint16 +// https://262.ecma-international.org/6.0/#sec-toint16 module.exports = function ToInt16(argument) { var int16bit = ToUint16(argument); diff --git a/node_modules/es-abstract/2015/ToInt8.js b/node_modules/es-abstract/2015/ToInt8.js index bc452d826f..e223b6c1d3 100644 --- a/node_modules/es-abstract/2015/ToInt8.js +++ b/node_modules/es-abstract/2015/ToInt8.js @@ -2,7 +2,7 @@ var ToUint8 = require('./ToUint8'); -// https://ecma-international.org/ecma-262/6.0/#sec-toint8 +// https://262.ecma-international.org/6.0/#sec-toint8 module.exports = function ToInt8(argument) { var int8bit = ToUint8(argument); diff --git a/node_modules/es-abstract/2015/ToInteger.js b/node_modules/es-abstract/2015/ToInteger.js index 2975818094..f6625796eb 100644 --- a/node_modules/es-abstract/2015/ToInteger.js +++ b/node_modules/es-abstract/2015/ToInteger.js @@ -4,7 +4,7 @@ var ES5ToInteger = require('../5/ToInteger'); var ToNumber = require('./ToNumber'); -// https://ecma-international.org/ecma-262/6.0/#sec-tointeger +// https://262.ecma-international.org/6.0/#sec-tointeger module.exports = function ToInteger(value) { var number = ToNumber(value); diff --git a/node_modules/es-abstract/2015/ToNumber.js b/node_modules/es-abstract/2015/ToNumber.js index 95bdd9ecda..3abb6a68d2 100644 --- a/node_modules/es-abstract/2015/ToNumber.js +++ b/node_modules/es-abstract/2015/ToNumber.js @@ -19,22 +19,11 @@ var nonWS = ['\u0085', '\u200b', '\ufffe'].join(''); var nonWSregex = new $RegExp('[' + nonWS + ']', 'g'); var hasNonWS = regexTester(nonWSregex); -// whitespace from: https://es5.github.io/#x15.5.4.20 -// implementation from https://github.com/es-shims/es5-shim/blob/v3.4.0/es5-shim.js#L1304-L1324 -var ws = [ - '\x09\x0A\x0B\x0C\x0D\x20\xA0\u1680\u180E\u2000\u2001\u2002\u2003', - '\u2004\u2005\u2006\u2007\u2008\u2009\u200A\u202F\u205F\u3000\u2028', - '\u2029\uFEFF' -].join(''); -var trimRegex = new RegExp('(^[' + ws + ']+)|([' + ws + ']+$)', 'g'); -var $replace = callBound('String.prototype.replace'); -var $trim = function (value) { - return $replace(value, trimRegex, ''); -}; +var $trim = require('string.prototype.trim'); var ToPrimitive = require('./ToPrimitive'); -// https://ecma-international.org/ecma-262/6.0/#sec-tonumber +// https://262.ecma-international.org/6.0/#sec-tonumber module.exports = function ToNumber(argument) { var value = isPrimitive(argument) ? argument : ToPrimitive(argument, $Number); diff --git a/node_modules/es-abstract/2015/ToObject.js b/node_modules/es-abstract/2015/ToObject.js index cb26bac064..26a007cead 100644 --- a/node_modules/es-abstract/2015/ToObject.js +++ b/node_modules/es-abstract/2015/ToObject.js @@ -6,7 +6,7 @@ var $Object = GetIntrinsic('%Object%'); var RequireObjectCoercible = require('./RequireObjectCoercible'); -// https://ecma-international.org/ecma-262/6.0/#sec-toobject +// https://262.ecma-international.org/6.0/#sec-toobject module.exports = function ToObject(value) { RequireObjectCoercible(value); diff --git a/node_modules/es-abstract/2015/ToPrimitive.js b/node_modules/es-abstract/2015/ToPrimitive.js index 0fbe9b8076..56bcf1aa9e 100644 --- a/node_modules/es-abstract/2015/ToPrimitive.js +++ b/node_modules/es-abstract/2015/ToPrimitive.js @@ -2,7 +2,7 @@ var toPrimitive = require('es-to-primitive/es2015'); -// https://ecma-international.org/ecma-262/6.0/#sec-toprimitive +// https://262.ecma-international.org/6.0/#sec-toprimitive module.exports = function ToPrimitive(input) { if (arguments.length > 1) { diff --git a/node_modules/es-abstract/2015/ToPropertyKey.js b/node_modules/es-abstract/2015/ToPropertyKey.js index fc1bf7d862..e363cd93b1 100644 --- a/node_modules/es-abstract/2015/ToPropertyKey.js +++ b/node_modules/es-abstract/2015/ToPropertyKey.js @@ -7,7 +7,7 @@ var $String = GetIntrinsic('%String%'); var ToPrimitive = require('./ToPrimitive'); var ToString = require('./ToString'); -// https://ecma-international.org/ecma-262/6.0/#sec-topropertykey +// https://262.ecma-international.org/6.0/#sec-topropertykey module.exports = function ToPropertyKey(argument) { var key = ToPrimitive(argument, $String); diff --git a/node_modules/es-abstract/2015/ToString.js b/node_modules/es-abstract/2015/ToString.js index 4d494e1e23..d86aed4ce8 100644 --- a/node_modules/es-abstract/2015/ToString.js +++ b/node_modules/es-abstract/2015/ToString.js @@ -5,7 +5,7 @@ var GetIntrinsic = require('get-intrinsic'); var $String = GetIntrinsic('%String%'); var $TypeError = GetIntrinsic('%TypeError%'); -// https://ecma-international.org/ecma-262/6.0/#sec-tostring +// https://262.ecma-international.org/6.0/#sec-tostring module.exports = function ToString(argument) { if (typeof argument === 'symbol') { diff --git a/node_modules/es-abstract/2015/ToUint8.js b/node_modules/es-abstract/2015/ToUint8.js index 2dfd97cb34..6e4e4b5add 100644 --- a/node_modules/es-abstract/2015/ToUint8.js +++ b/node_modules/es-abstract/2015/ToUint8.js @@ -10,7 +10,7 @@ var abs = require('./abs'); var floor = require('./floor'); var modulo = require('./modulo'); -// https://ecma-international.org/ecma-262/6.0/#sec-touint8 +// https://262.ecma-international.org/6.0/#sec-touint8 module.exports = function ToUint8(argument) { var number = ToNumber(argument); diff --git a/node_modules/es-abstract/2015/ToUint8Clamp.js b/node_modules/es-abstract/2015/ToUint8Clamp.js index b0b8ce8ed3..3ba2fd7119 100644 --- a/node_modules/es-abstract/2015/ToUint8Clamp.js +++ b/node_modules/es-abstract/2015/ToUint8Clamp.js @@ -5,13 +5,13 @@ var floor = require('./floor'); var $isNaN = require('../helpers/isNaN'); -// https://ecma-international.org/ecma-262/6.0/#sec-touint8clamp +// https://262.ecma-international.org/6.0/#sec-touint8clamp module.exports = function ToUint8Clamp(argument) { var number = ToNumber(argument); if ($isNaN(number) || number <= 0) { return 0; } if (number >= 0xFF) { return 0xFF; } - var f = floor(argument); + var f = floor(number); if (f + 0.5 < number) { return f + 1; } if (number < f + 0.5) { return f; } if (f % 2 !== 0) { return f + 1; } diff --git a/node_modules/es-abstract/2015/Type.js b/node_modules/es-abstract/2015/Type.js index 0bd11659c2..da5cb76250 100644 --- a/node_modules/es-abstract/2015/Type.js +++ b/node_modules/es-abstract/2015/Type.js @@ -2,7 +2,7 @@ var ES5Type = require('../5/Type'); -// https://ecma-international.org/ecma-262/6.0/#sec-ecmascript-data-types-and-values +// https://262.ecma-international.org/6.0/#sec-ecmascript-data-types-and-values module.exports = function Type(x) { if (typeof x === 'symbol') { diff --git a/node_modules/es-abstract/2015/ValidateAndApplyPropertyDescriptor.js b/node_modules/es-abstract/2015/ValidateAndApplyPropertyDescriptor.js index a7fd218ad5..134b2d5c36 100644 --- a/node_modules/es-abstract/2015/ValidateAndApplyPropertyDescriptor.js +++ b/node_modules/es-abstract/2015/ValidateAndApplyPropertyDescriptor.js @@ -16,10 +16,10 @@ var IsPropertyKey = require('./IsPropertyKey'); var SameValue = require('./SameValue'); var Type = require('./Type'); -// https://ecma-international.org/ecma-262/6.0/#sec-validateandapplypropertydescriptor -// https://ecma-international.org/ecma-262/8.0/#sec-validateandapplypropertydescriptor +// https://262.ecma-international.org/6.0/#sec-validateandapplypropertydescriptor +// https://262.ecma-international.org/8.0/#sec-validateandapplypropertydescriptor -// eslint-disable-next-line max-lines-per-function, max-statements, max-params +// eslint-disable-next-line max-lines-per-function, max-statements module.exports = function ValidateAndApplyPropertyDescriptor(O, P, extensible, Desc, current) { // this uses the ES2017+ logic, since it fixes a number of bugs in the ES2015 logic. var oType = Type(O); diff --git a/node_modules/es-abstract/2015/ValidateTypedArray.js b/node_modules/es-abstract/2015/ValidateTypedArray.js index 83df3a81cb..c7aa313938 100644 --- a/node_modules/es-abstract/2015/ValidateTypedArray.js +++ b/node_modules/es-abstract/2015/ValidateTypedArray.js @@ -5,7 +5,7 @@ var GetIntrinsic = require('get-intrinsic'); var $TypeError = GetIntrinsic('%TypeError%'); var callBound = require('call-bind/callBound'); -var $taSome = callBound('%TypedArray.prototype.some%', true); +var $taSome = callBound('TypedArray.prototype.some', true); var Type = require('./Type'); diff --git a/node_modules/es-abstract/2015/thisBooleanValue.js b/node_modules/es-abstract/2015/thisBooleanValue.js index 27075b9c4f..e93a28ce47 100644 --- a/node_modules/es-abstract/2015/thisBooleanValue.js +++ b/node_modules/es-abstract/2015/thisBooleanValue.js @@ -4,7 +4,7 @@ var $BooleanValueOf = require('call-bind/callBound')('Boolean.prototype.valueOf' var Type = require('./Type'); -// https://ecma-international.org/ecma-262/6.0/#sec-properties-of-the-boolean-prototype-object +// https://262.ecma-international.org/6.0/#sec-properties-of-the-boolean-prototype-object module.exports = function thisBooleanValue(value) { if (Type(value) === 'Boolean') { diff --git a/node_modules/es-abstract/2015/thisNumberValue.js b/node_modules/es-abstract/2015/thisNumberValue.js index 92968dcdf8..03580df26f 100644 --- a/node_modules/es-abstract/2015/thisNumberValue.js +++ b/node_modules/es-abstract/2015/thisNumberValue.js @@ -6,7 +6,7 @@ var Type = require('./Type'); var $NumberValueOf = callBound('Number.prototype.valueOf'); -// https://ecma-international.org/ecma-262/6.0/#sec-properties-of-the-number-prototype-object +// https://262.ecma-international.org/6.0/#sec-properties-of-the-number-prototype-object module.exports = function thisNumberValue(value) { if (Type(value) === 'Number') { diff --git a/node_modules/es-abstract/2015/thisStringValue.js b/node_modules/es-abstract/2015/thisStringValue.js index 8e4274d811..c7bf3da70c 100644 --- a/node_modules/es-abstract/2015/thisStringValue.js +++ b/node_modules/es-abstract/2015/thisStringValue.js @@ -4,7 +4,7 @@ var $StringValueOf = require('call-bind/callBound')('String.prototype.valueOf'); var Type = require('./Type'); -// https://ecma-international.org/ecma-262/6.0/#sec-properties-of-the-string-prototype-object +// https://262.ecma-international.org/6.0/#sec-properties-of-the-string-prototype-object module.exports = function thisStringValue(value) { if (Type(value) === 'String') { diff --git a/node_modules/es-abstract/2015/thisTimeValue.js b/node_modules/es-abstract/2015/thisTimeValue.js index 4687950f13..bd50ddd068 100644 --- a/node_modules/es-abstract/2015/thisTimeValue.js +++ b/node_modules/es-abstract/2015/thisTimeValue.js @@ -2,7 +2,7 @@ var $DateGetTime = require('call-bind/callBound')('Date.prototype.getTime'); -// https://ecma-international.org/ecma-262/6.0/#sec-properties-of-the-date-prototype-object +// https://262.ecma-international.org/6.0/#sec-properties-of-the-date-prototype-object module.exports = function thisTimeValue(value) { return $DateGetTime(value); diff --git a/node_modules/es-abstract/2016/AbstractEqualityComparison.js b/node_modules/es-abstract/2016/AbstractEqualityComparison.js index c776194c1e..b56a506622 100644 --- a/node_modules/es-abstract/2016/AbstractEqualityComparison.js +++ b/node_modules/es-abstract/2016/AbstractEqualityComparison.js @@ -4,7 +4,7 @@ var ToNumber = require('./ToNumber'); var ToPrimitive = require('./ToPrimitive'); var Type = require('./Type'); -// https://ecma-international.org/ecma-262/6.0/#sec-abstract-equality-comparison +// https://262.ecma-international.org/6.0/#sec-abstract-equality-comparison module.exports = function AbstractEqualityComparison(x, y) { var xType = Type(x); diff --git a/node_modules/es-abstract/2016/AdvanceStringIndex.js b/node_modules/es-abstract/2016/AdvanceStringIndex.js index 279602b4cd..831ea96ef9 100644 --- a/node_modules/es-abstract/2016/AdvanceStringIndex.js +++ b/node_modules/es-abstract/2016/AdvanceStringIndex.js @@ -2,24 +2,24 @@ var GetIntrinsic = require('get-intrinsic'); -var IsInteger = require('./IsInteger'); var Type = require('./Type'); -var MAX_SAFE_INTEGER = require('../helpers/maxSafeInteger'); +var isInteger = require('../helpers/isInteger'); var isLeadingSurrogate = require('../helpers/isLeadingSurrogate'); var isTrailingSurrogate = require('../helpers/isTrailingSurrogate'); +var MAX_SAFE_INTEGER = require('../helpers/maxSafeInteger'); var $TypeError = GetIntrinsic('%TypeError%'); var $charCodeAt = require('call-bind/callBound')('String.prototype.charCodeAt'); -// https://ecma-international.org/ecma-262/6.0/#sec-advancestringindex +// https://262.ecma-international.org/6.0/#sec-advancestringindex module.exports = function AdvanceStringIndex(S, index, unicode) { if (Type(S) !== 'String') { throw new $TypeError('Assertion failed: `S` must be a String'); } - if (!IsInteger(index) || index < 0 || index > MAX_SAFE_INTEGER) { + if (!isInteger(index) || index < 0 || index > MAX_SAFE_INTEGER) { throw new $TypeError('Assertion failed: `length` must be an integer >= 0 and <= 2**53'); } if (Type(unicode) !== 'Boolean') { diff --git a/node_modules/es-abstract/2016/ArrayCreate.js b/node_modules/es-abstract/2016/ArrayCreate.js index cc890cafbf..0d34db9bec 100644 --- a/node_modules/es-abstract/2016/ArrayCreate.js +++ b/node_modules/es-abstract/2016/ArrayCreate.js @@ -7,7 +7,7 @@ var $RangeError = GetIntrinsic('%RangeError%'); var $SyntaxError = GetIntrinsic('%SyntaxError%'); var $TypeError = GetIntrinsic('%TypeError%'); -var IsInteger = require('./IsInteger'); +var isInteger = require('../helpers/isInteger'); var hasProto = require('has-proto')(); @@ -22,10 +22,10 @@ var $setProto = GetIntrinsic('%Object.setPrototypeOf%', true) || ( : null ); -// https://ecma-international.org/ecma-262/6.0/#sec-arraycreate +// https://262.ecma-international.org/6.0/#sec-arraycreate module.exports = function ArrayCreate(length) { - if (!IsInteger(length) || length < 0) { + if (!isInteger(length) || length < 0) { throw new $TypeError('Assertion failed: `length` must be an integer Number >= 0'); } if (length > MAX_ARRAY_LENGTH) { diff --git a/node_modules/es-abstract/2016/ArraySetLength.js b/node_modules/es-abstract/2016/ArraySetLength.js index 08db9c2e9b..45d7569e7d 100644 --- a/node_modules/es-abstract/2016/ArraySetLength.js +++ b/node_modules/es-abstract/2016/ArraySetLength.js @@ -19,7 +19,7 @@ var ToString = require('./ToString'); var ToUint32 = require('./ToUint32'); var Type = require('./Type'); -// https://ecma-international.org/ecma-262/6.0/#sec-arraysetlength +// https://262.ecma-international.org/6.0/#sec-arraysetlength // eslint-disable-next-line max-statements, max-lines-per-function module.exports = function ArraySetLength(A, Desc) { diff --git a/node_modules/es-abstract/2016/ArraySpeciesCreate.js b/node_modules/es-abstract/2016/ArraySpeciesCreate.js index 26d63b5e20..1944dfe7b8 100644 --- a/node_modules/es-abstract/2016/ArraySpeciesCreate.js +++ b/node_modules/es-abstract/2016/ArraySpeciesCreate.js @@ -9,13 +9,14 @@ var $TypeError = GetIntrinsic('%TypeError%'); var Get = require('./Get'); var IsArray = require('./IsArray'); var IsConstructor = require('./IsConstructor'); -var IsInteger = require('./IsInteger'); var Type = require('./Type'); -// https://ecma-international.org/ecma-262/6.0/#sec-arrayspeciescreate +var isInteger = require('../helpers/isInteger'); + +// https://262.ecma-international.org/6.0/#sec-arrayspeciescreate module.exports = function ArraySpeciesCreate(originalArray, length) { - if (!IsInteger(length) || length < 0) { + if (!isInteger(length) || length < 0) { throw new $TypeError('Assertion failed: length must be an integer >= 0'); } var len = length === 0 ? 0 : length; diff --git a/node_modules/es-abstract/2016/Call.js b/node_modules/es-abstract/2016/Call.js index 4b238c6916..be76246db0 100644 --- a/node_modules/es-abstract/2016/Call.js +++ b/node_modules/es-abstract/2016/Call.js @@ -7,9 +7,9 @@ var $TypeError = GetIntrinsic('%TypeError%'); var IsArray = require('./IsArray'); -var $apply = GetIntrinsic('%Reflect.apply%', true) || callBound('%Function.prototype.apply%'); +var $apply = GetIntrinsic('%Reflect.apply%', true) || callBound('Function.prototype.apply'); -// https://ecma-international.org/ecma-262/6.0/#sec-call +// https://262.ecma-international.org/6.0/#sec-call module.exports = function Call(F, V) { var argumentsList = arguments.length > 2 ? arguments[2] : []; diff --git a/node_modules/es-abstract/2016/CanonicalNumericIndexString.js b/node_modules/es-abstract/2016/CanonicalNumericIndexString.js index feb878c032..e9f386326c 100644 --- a/node_modules/es-abstract/2016/CanonicalNumericIndexString.js +++ b/node_modules/es-abstract/2016/CanonicalNumericIndexString.js @@ -9,7 +9,7 @@ var ToNumber = require('./ToNumber'); var ToString = require('./ToString'); var Type = require('./Type'); -// https://ecma-international.org/ecma-262/6.0/#sec-canonicalnumericindexstring +// https://262.ecma-international.org/6.0/#sec-canonicalnumericindexstring module.exports = function CanonicalNumericIndexString(argument) { if (Type(argument) !== 'String') { diff --git a/node_modules/es-abstract/2016/Canonicalize.js b/node_modules/es-abstract/2016/Canonicalize.js new file mode 100644 index 0000000000..8873db4c7c --- /dev/null +++ b/node_modules/es-abstract/2016/Canonicalize.js @@ -0,0 +1,55 @@ +'use strict'; + +var GetIntrinsic = require('get-intrinsic'); + +var $TypeError = GetIntrinsic('%TypeError%'); + +var callBound = require('call-bind/callBound'); +var has = require('has'); + +var $charCodeAt = callBound('String.prototype.charCodeAt'); +var $toUpperCase = callBound('String.prototype.toUpperCase'); + +var Type = require('./Type'); + +var caseFolding = require('../helpers/caseFolding'); + +// https://262.ecma-international.org/6.0/#sec-runtime-semantics-canonicalize-ch + +module.exports = function Canonicalize(ch, IgnoreCase, Unicode) { + if (Type(ch) !== 'String') { + throw new $TypeError('Assertion failed: `ch` must be a character'); + } + + if (Type(IgnoreCase) !== 'Boolean' || Type(Unicode) !== 'Boolean') { + throw new $TypeError('Assertion failed: `IgnoreCase` and `Unicode` must be Booleans'); + } + + if (!IgnoreCase) { + return ch; // step 1 + } + + if (Unicode) { // step 2 + if (has(caseFolding.C, ch)) { + return caseFolding.C[ch]; + } + if (has(caseFolding.S, ch)) { + return caseFolding.S[ch]; + } + return ch; // step 2.b + } + + var u = $toUpperCase(ch); // step 2 + + if (u.length !== 1) { + return ch; // step 3 + } + + var cu = u; // step 4 + + if ($charCodeAt(ch, 0) >= 128 && $charCodeAt(cu, 0) < 128) { + return ch; // step 5 + } + + return cu; +}; diff --git a/node_modules/es-abstract/2016/CharacterRange.js b/node_modules/es-abstract/2016/CharacterRange.js index 70e4b52355..78783a59f2 100644 --- a/node_modules/es-abstract/2016/CharacterRange.js +++ b/node_modules/es-abstract/2016/CharacterRange.js @@ -5,8 +5,8 @@ var callBound = require('call-bind/callBound'); var $fromCharCode = GetIntrinsic('%String.fromCharCode%'); var $TypeError = GetIntrinsic('%TypeError%'); -var $charCodeAt = callBound('%String.prototype.charCodeAt%'); -var $push = callBound('%Array.prototype.push%'); +var $charCodeAt = callBound('String.prototype.charCodeAt'); +var $push = callBound('Array.prototype.push'); module.exports = function CharacterRange(A, B) { if (A.length !== 1 || B.length !== 1) { diff --git a/node_modules/es-abstract/2016/CompletePropertyDescriptor.js b/node_modules/es-abstract/2016/CompletePropertyDescriptor.js index 548bf415a3..e8685197aa 100644 --- a/node_modules/es-abstract/2016/CompletePropertyDescriptor.js +++ b/node_modules/es-abstract/2016/CompletePropertyDescriptor.js @@ -8,7 +8,7 @@ var IsDataDescriptor = require('./IsDataDescriptor'); var IsGenericDescriptor = require('./IsGenericDescriptor'); var Type = require('./Type'); -// https://ecma-international.org/ecma-262/6.0/#sec-completepropertydescriptor +// https://262.ecma-international.org/6.0/#sec-completepropertydescriptor module.exports = function CompletePropertyDescriptor(Desc) { /* eslint no-param-reassign: 0 */ diff --git a/node_modules/es-abstract/2016/CreateDataProperty.js b/node_modules/es-abstract/2016/CreateDataProperty.js index 02c6cd1f8b..5bd5fc4787 100644 --- a/node_modules/es-abstract/2016/CreateDataProperty.js +++ b/node_modules/es-abstract/2016/CreateDataProperty.js @@ -4,17 +4,11 @@ var GetIntrinsic = require('get-intrinsic'); var $TypeError = GetIntrinsic('%TypeError%'); -var DefineOwnProperty = require('../helpers/DefineOwnProperty'); - -var FromPropertyDescriptor = require('./FromPropertyDescriptor'); -var OrdinaryGetOwnProperty = require('./OrdinaryGetOwnProperty'); -var IsDataDescriptor = require('./IsDataDescriptor'); -var IsExtensible = require('./IsExtensible'); var IsPropertyKey = require('./IsPropertyKey'); -var SameValue = require('./SameValue'); +var OrdinaryDefineOwnProperty = require('./OrdinaryDefineOwnProperty'); var Type = require('./Type'); -// https://ecma-international.org/ecma-262/6.0/#sec-createdataproperty +// https://262.ecma-international.org/6.0/#sec-createdataproperty module.exports = function CreateDataProperty(O, P, V) { if (Type(O) !== 'Object') { @@ -23,23 +17,11 @@ module.exports = function CreateDataProperty(O, P, V) { if (!IsPropertyKey(P)) { throw new $TypeError('Assertion failed: IsPropertyKey(P) is not true'); } - var oldDesc = OrdinaryGetOwnProperty(O, P); - var extensible = !oldDesc || IsExtensible(O); - var nonConfigurable = oldDesc && !oldDesc['[[Configurable]]']; - if (nonConfigurable || !extensible) { - return false; - } - return DefineOwnProperty( - IsDataDescriptor, - SameValue, - FromPropertyDescriptor, - O, - P, - { - '[[Configurable]]': true, - '[[Enumerable]]': true, - '[[Value]]': V, - '[[Writable]]': true - } - ); + var newDesc = { + '[[Configurable]]': true, + '[[Enumerable]]': true, + '[[Value]]': V, + '[[Writable]]': true + }; + return OrdinaryDefineOwnProperty(O, P, newDesc); }; diff --git a/node_modules/es-abstract/2016/CreateDataPropertyOrThrow.js b/node_modules/es-abstract/2016/CreateDataPropertyOrThrow.js index 2f7c410ba3..c40e69368b 100644 --- a/node_modules/es-abstract/2016/CreateDataPropertyOrThrow.js +++ b/node_modules/es-abstract/2016/CreateDataPropertyOrThrow.js @@ -8,7 +8,7 @@ var CreateDataProperty = require('./CreateDataProperty'); var IsPropertyKey = require('./IsPropertyKey'); var Type = require('./Type'); -// // https://ecma-international.org/ecma-262/6.0/#sec-createdatapropertyorthrow +// // https://262.ecma-international.org/6.0/#sec-createdatapropertyorthrow module.exports = function CreateDataPropertyOrThrow(O, P, V) { if (Type(O) !== 'Object') { diff --git a/node_modules/es-abstract/2016/CreateHTML.js b/node_modules/es-abstract/2016/CreateHTML.js index ccded1e65d..ea7633da68 100644 --- a/node_modules/es-abstract/2016/CreateHTML.js +++ b/node_modules/es-abstract/2016/CreateHTML.js @@ -12,7 +12,7 @@ var RequireObjectCoercible = require('./RequireObjectCoercible'); var ToString = require('./ToString'); var Type = require('./Type'); -// https://ecma-international.org/ecma-262/6.0/#sec-createhtml +// https://262.ecma-international.org/6.0/#sec-createhtml module.exports = function CreateHTML(string, tag, attribute, value) { if (Type(tag) !== 'String' || Type(attribute) !== 'String') { diff --git a/node_modules/es-abstract/2016/CreateIterResultObject.js b/node_modules/es-abstract/2016/CreateIterResultObject.js index eea77a5128..ed86b34f25 100644 --- a/node_modules/es-abstract/2016/CreateIterResultObject.js +++ b/node_modules/es-abstract/2016/CreateIterResultObject.js @@ -6,7 +6,7 @@ var $TypeError = GetIntrinsic('%TypeError%'); var Type = require('./Type'); -// https://ecma-international.org/ecma-262/6.0/#sec-createiterresultobject +// https://262.ecma-international.org/6.0/#sec-createiterresultobject module.exports = function CreateIterResultObject(value, done) { if (Type(done) !== 'Boolean') { diff --git a/node_modules/es-abstract/2016/CreateListFromArrayLike.js b/node_modules/es-abstract/2016/CreateListFromArrayLike.js index d1bb8b6587..4c34219206 100644 --- a/node_modules/es-abstract/2016/CreateListFromArrayLike.js +++ b/node_modules/es-abstract/2016/CreateListFromArrayLike.js @@ -14,11 +14,13 @@ var ToLength = require('./ToLength'); var ToString = require('./ToString'); var Type = require('./Type'); -// https://ecma-international.org/ecma-262/6.0/#sec-createlistfromarraylike +var defaultElementTypes = ['Undefined', 'Null', 'Boolean', 'String', 'Symbol', 'Number', 'Object']; + +// https://262.ecma-international.org/6.0/#sec-createlistfromarraylike module.exports = function CreateListFromArrayLike(obj) { var elementTypes = arguments.length > 1 ? arguments[1] - : ['Undefined', 'Null', 'Boolean', 'String', 'Symbol', 'Number', 'Object']; + : defaultElementTypes; if (Type(obj) !== 'Object') { throw new $TypeError('Assertion failed: `obj` must be an Object'); diff --git a/node_modules/es-abstract/2016/CreateMethodProperty.js b/node_modules/es-abstract/2016/CreateMethodProperty.js index 53274a5614..058c0f1760 100644 --- a/node_modules/es-abstract/2016/CreateMethodProperty.js +++ b/node_modules/es-abstract/2016/CreateMethodProperty.js @@ -12,7 +12,7 @@ var IsPropertyKey = require('./IsPropertyKey'); var SameValue = require('./SameValue'); var Type = require('./Type'); -// https://ecma-international.org/ecma-262/6.0/#sec-createmethodproperty +// https://262.ecma-international.org/6.0/#sec-createmethodproperty module.exports = function CreateMethodProperty(O, P, V) { if (Type(O) !== 'Object') { diff --git a/node_modules/es-abstract/2016/DefinePropertyOrThrow.js b/node_modules/es-abstract/2016/DefinePropertyOrThrow.js index 26f2714bb1..8fe097068d 100644 --- a/node_modules/es-abstract/2016/DefinePropertyOrThrow.js +++ b/node_modules/es-abstract/2016/DefinePropertyOrThrow.js @@ -15,7 +15,7 @@ var SameValue = require('./SameValue'); var ToPropertyDescriptor = require('./ToPropertyDescriptor'); var Type = require('./Type'); -// https://ecma-international.org/ecma-262/6.0/#sec-definepropertyorthrow +// https://262.ecma-international.org/6.0/#sec-definepropertyorthrow module.exports = function DefinePropertyOrThrow(O, P, desc) { if (Type(O) !== 'Object') { diff --git a/node_modules/es-abstract/2016/DeletePropertyOrThrow.js b/node_modules/es-abstract/2016/DeletePropertyOrThrow.js index 30d5e57c7b..581bf06ea2 100644 --- a/node_modules/es-abstract/2016/DeletePropertyOrThrow.js +++ b/node_modules/es-abstract/2016/DeletePropertyOrThrow.js @@ -7,7 +7,7 @@ var $TypeError = GetIntrinsic('%TypeError%'); var IsPropertyKey = require('./IsPropertyKey'); var Type = require('./Type'); -// https://ecma-international.org/ecma-262/6.0/#sec-deletepropertyorthrow +// https://262.ecma-international.org/6.0/#sec-deletepropertyorthrow module.exports = function DeletePropertyOrThrow(O, P) { if (Type(O) !== 'Object') { diff --git a/node_modules/es-abstract/2016/EnumerableOwnNames.js b/node_modules/es-abstract/2016/EnumerableOwnNames.js index e218edad72..b8235966ac 100644 --- a/node_modules/es-abstract/2016/EnumerableOwnNames.js +++ b/node_modules/es-abstract/2016/EnumerableOwnNames.js @@ -8,7 +8,7 @@ var keys = require('object-keys'); var Type = require('./Type'); -// https://ecma-international.org/ecma-262/6.0/#sec-enumerableownnames +// https://262.ecma-international.org/6.0/#sec-enumerableownnames module.exports = function EnumerableOwnNames(O) { if (Type(O) !== 'Object') { diff --git a/node_modules/es-abstract/2016/FromPropertyDescriptor.js b/node_modules/es-abstract/2016/FromPropertyDescriptor.js index e142ed582e..c70f0c60e1 100644 --- a/node_modules/es-abstract/2016/FromPropertyDescriptor.js +++ b/node_modules/es-abstract/2016/FromPropertyDescriptor.js @@ -5,7 +5,7 @@ var fromPropertyDescriptor = require('../helpers/fromPropertyDescriptor'); var Type = require('./Type'); -// https://ecma-international.org/ecma-262/6.0/#sec-frompropertydescriptor +// https://262.ecma-international.org/6.0/#sec-frompropertydescriptor module.exports = function FromPropertyDescriptor(Desc) { if (typeof Desc !== 'undefined') { diff --git a/node_modules/es-abstract/2016/Get.js b/node_modules/es-abstract/2016/Get.js index 297968643f..0973152222 100644 --- a/node_modules/es-abstract/2016/Get.js +++ b/node_modules/es-abstract/2016/Get.js @@ -9,7 +9,7 @@ var inspect = require('object-inspect'); var IsPropertyKey = require('./IsPropertyKey'); var Type = require('./Type'); -// https://ecma-international.org/ecma-262/6.0/#sec-get-o-p +// https://262.ecma-international.org/6.0/#sec-get-o-p module.exports = function Get(O, P) { // 7.3.1.1 diff --git a/node_modules/es-abstract/2016/GetIterator.js b/node_modules/es-abstract/2016/GetIterator.js index 892197a232..145557da42 100644 --- a/node_modules/es-abstract/2016/GetIterator.js +++ b/node_modules/es-abstract/2016/GetIterator.js @@ -11,7 +11,7 @@ var GetMethod = require('./GetMethod'); var IsArray = require('./IsArray'); var Type = require('./Type'); -// https://ecma-international.org/ecma-262/6.0/#sec-getiterator +// https://262.ecma-international.org/6.0/#sec-getiterator module.exports = function GetIterator(obj, method) { var actualMethod = method; diff --git a/node_modules/es-abstract/2016/GetMethod.js b/node_modules/es-abstract/2016/GetMethod.js index d3775178e6..e9f2854ff3 100644 --- a/node_modules/es-abstract/2016/GetMethod.js +++ b/node_modules/es-abstract/2016/GetMethod.js @@ -8,9 +8,9 @@ var GetV = require('./GetV'); var IsCallable = require('./IsCallable'); var IsPropertyKey = require('./IsPropertyKey'); -var debug = require('object-inspect'); +var inspect = require('object-inspect'); -// https://ecma-international.org/ecma-262/6.0/#sec-getmethod +// https://262.ecma-international.org/6.0/#sec-getmethod module.exports = function GetMethod(O, P) { // 7.3.9.1 @@ -28,7 +28,7 @@ module.exports = function GetMethod(O, P) { // 7.3.9.5 if (!IsCallable(func)) { - throw new $TypeError(P + ' is not a function: ' + debug(func)); + throw new $TypeError(inspect(P) + ' is not a function: ' + inspect(func)); } // 7.3.9.6 diff --git a/node_modules/es-abstract/2016/GetOwnPropertyKeys.js b/node_modules/es-abstract/2016/GetOwnPropertyKeys.js index 40c0b367fa..043fd733bd 100644 --- a/node_modules/es-abstract/2016/GetOwnPropertyKeys.js +++ b/node_modules/es-abstract/2016/GetOwnPropertyKeys.js @@ -12,7 +12,7 @@ var keys = require('object-keys'); var esType = require('./Type'); -// https://ecma-international.org/ecma-262/6.0/#sec-getownpropertykeys +// https://262.ecma-international.org/6.0/#sec-getownpropertykeys module.exports = function GetOwnPropertyKeys(O, Type) { if (esType(O) !== 'Object') { diff --git a/node_modules/es-abstract/2016/GetPrototypeFromConstructor.js b/node_modules/es-abstract/2016/GetPrototypeFromConstructor.js index 25ee12f353..0b281ef4fe 100644 --- a/node_modules/es-abstract/2016/GetPrototypeFromConstructor.js +++ b/node_modules/es-abstract/2016/GetPrototypeFromConstructor.js @@ -10,10 +10,13 @@ var Get = require('./Get'); var IsConstructor = require('./IsConstructor'); var Type = require('./Type'); -// https://ecma-international.org/ecma-262/6.0/#sec-getprototypefromconstructor +// https://262.ecma-international.org/6.0/#sec-getprototypefromconstructor module.exports = function GetPrototypeFromConstructor(constructor, intrinsicDefaultProto) { var intrinsic = GetIntrinsic(intrinsicDefaultProto); // throws if not a valid intrinsic + if (Type(intrinsic) !== 'Object') { + throw new $TypeError('intrinsicDefaultProto must be an object'); + } if (!IsConstructor(constructor)) { throw new $TypeError('Assertion failed: `constructor` must be a constructor'); } diff --git a/node_modules/es-abstract/2016/GetSubstitution.js b/node_modules/es-abstract/2016/GetSubstitution.js index a60d421366..47e5e30e6e 100644 --- a/node_modules/es-abstract/2016/GetSubstitution.js +++ b/node_modules/es-abstract/2016/GetSubstitution.js @@ -18,18 +18,14 @@ var $charAt = callBound('String.prototype.charAt'); var $strSlice = callBound('String.prototype.slice'); var IsArray = require('./IsArray'); -var IsInteger = require('./IsInteger'); var Type = require('./Type'); -var canDistinguishSparseFromUndefined = 0 in [undefined]; // IE 6 - 8 have a bug where this returns false +var isInteger = require('../helpers/isInteger'); +var isStringOrHole = require('../helpers/isStringOrHole'); -var isStringOrHole = function (capture, index, arr) { - return Type(capture) === 'String' || (canDistinguishSparseFromUndefined ? !(index in arr) : Type(capture) === 'Undefined'); -}; - -// https://ecma-international.org/ecma-262/6.0/#sec-getsubstitution +// https://262.ecma-international.org/6.0/#sec-getsubstitution -// eslint-disable-next-line max-statements, max-params, max-lines-per-function +// eslint-disable-next-line max-statements, max-lines-per-function module.exports = function GetSubstitution(matched, str, position, captures, replacement) { if (Type(matched) !== 'String') { throw new $TypeError('Assertion failed: `matched` must be a String'); @@ -41,7 +37,7 @@ module.exports = function GetSubstitution(matched, str, position, captures, repl } var stringLength = str.length; - if (!IsInteger(position) || position < 0 || position > stringLength) { + if (!isInteger(position) || position < 0 || position > stringLength) { throw new $TypeError('Assertion failed: `position` must be a nonnegative integer, and less than or equal to the length of `string`, got ' + inspect(position)); } diff --git a/node_modules/es-abstract/2016/GetV.js b/node_modules/es-abstract/2016/GetV.js index 2dcddb3513..706a9211ab 100644 --- a/node_modules/es-abstract/2016/GetV.js +++ b/node_modules/es-abstract/2016/GetV.js @@ -4,20 +4,22 @@ var GetIntrinsic = require('get-intrinsic'); var $TypeError = GetIntrinsic('%TypeError%'); +var inspect = require('object-inspect'); + var IsPropertyKey = require('./IsPropertyKey'); -var ToObject = require('./ToObject'); +// var ToObject = require('./ToObject'); -// https://ecma-international.org/ecma-262/6.0/#sec-getv +// https://262.ecma-international.org/6.0/#sec-getv module.exports = function GetV(V, P) { // 7.3.2.1 if (!IsPropertyKey(P)) { - throw new $TypeError('Assertion failed: IsPropertyKey(P) is not true'); + throw new $TypeError('Assertion failed: IsPropertyKey(P) is not true, got ' + inspect(P)); } // 7.3.2.2-3 - var O = ToObject(V); + // var O = ToObject(V); // 7.3.2.4 - return O[P]; + return V[P]; }; diff --git a/node_modules/es-abstract/2016/GetValueFromBuffer.js b/node_modules/es-abstract/2016/GetValueFromBuffer.js new file mode 100644 index 0000000000..0295846c7c --- /dev/null +++ b/node_modules/es-abstract/2016/GetValueFromBuffer.js @@ -0,0 +1,97 @@ +'use strict'; + +var GetIntrinsic = require('get-intrinsic'); + +var $TypeError = GetIntrinsic('%TypeError%'); +var $Uint8Array = GetIntrinsic('%Uint8Array%', true); + +var callBound = require('call-bind/callBound'); + +var $charAt = callBound('String.prototype.charAt'); +var $reverse = callBound('Array.prototype.reverse'); +var $slice = callBound('Array.prototype.slice'); + +var bytesAsFloat32 = require('../helpers/bytesAsFloat32'); +var bytesAsFloat64 = require('../helpers/bytesAsFloat64'); +var bytesAsInteger = require('../helpers/bytesAsInteger'); +var defaultEndianness = require('../helpers/defaultEndianness'); +var isInteger = require('../helpers/isInteger'); + +var IsDetachedBuffer = require('./IsDetachedBuffer'); + +var isArrayBuffer = require('is-array-buffer'); +var safeConcat = require('safe-array-concat'); + +var table49 = { + __proto__: null, + $Int8: 1, + $Uint8: 1, + $Uint8C: 1, + $Int16: 2, + $Uint16: 2, + $Int32: 4, + $Uint32: 4, + $Float32: 4, + $Float64: 8 +}; + +var isUnsignedElementType = function isUnsignedElementType(type) { return $charAt(type, 0) === 'U'; }; + +// https://262.ecma-international.org/6.0/#sec-getvaluefrombuffer + +module.exports = function GetValueFromBuffer(arrayBuffer, byteIndex, type) { + if (!isArrayBuffer(arrayBuffer)) { + throw new $TypeError('Assertion failed: `arrayBuffer` must be an ArrayBuffer'); + } + + if (!isInteger(byteIndex)) { + throw new $TypeError('Assertion failed: `byteIndex` must be an integer'); + } + + if (typeof type !== 'string') { + throw new $TypeError('Assertion failed: `type` must be a string'); + } + + if (arguments.length > 3 && typeof arguments[3] !== 'boolean') { + throw new $TypeError('Assertion failed: `isLittleEndian` must be a boolean, if present'); + } + + if (IsDetachedBuffer(arrayBuffer)) { + throw new $TypeError('Assertion failed: ArrayBuffer is detached'); // step 1 + } + + // 2. Assert: There are sufficient bytes in arrayBuffer starting at byteIndex to represent a value of type. + + if (byteIndex < 0) { + throw new $TypeError('Assertion failed: `byteIndex` must be non-negative'); // step 3 + } + + // 4. Let block be arrayBuffer’s [[ArrayBufferData]] internal slot. + + var elementSize = table49['$' + type]; // step 5 + if (!elementSize) { + throw new $TypeError('Assertion failed: `type` must be one of "Int8", "Uint8", "Uint8C", "Int16", "Uint16", "Int32", "Uint32", "Float32", or "Float64"'); + } + + // 6. Let rawValue be a List of elementSize containing, in order, the elementSize sequence of bytes starting with block[byteIndex]. + var rawValue = $slice(new $Uint8Array(arrayBuffer, byteIndex), 0, elementSize); // step 6 + + // 8. If isLittleEndian is not present, set isLittleEndian to either true or false. The choice is implementation dependent and should be the alternative that is most efficient for the implementation. An implementation must use the same value each time this step is executed and the same value must be used for the corresponding step in the SetValueInBuffer abstract operation. + var isLittleEndian = arguments.length > 3 ? arguments[3] : defaultEndianness === 'little'; // step 7 + + if (!isLittleEndian) { + $reverse(rawValue); // step 8 + } + + var bytes = $slice(safeConcat([0, 0, 0, 0, 0, 0, 0, 0], rawValue), -elementSize); + + if (type === 'Float32') { // step 3 + return bytesAsFloat32(bytes, true); + } + + if (type === 'Float64') { // step 4 + return bytesAsFloat64(bytes, true); + } + + return bytesAsInteger(bytes, elementSize, isUnsignedElementType(type), false); +}; diff --git a/node_modules/es-abstract/2016/HasOwnProperty.js b/node_modules/es-abstract/2016/HasOwnProperty.js index 04d28495f9..1f29ba4df1 100644 --- a/node_modules/es-abstract/2016/HasOwnProperty.js +++ b/node_modules/es-abstract/2016/HasOwnProperty.js @@ -9,7 +9,7 @@ var has = require('has'); var IsPropertyKey = require('./IsPropertyKey'); var Type = require('./Type'); -// https://ecma-international.org/ecma-262/6.0/#sec-hasownproperty +// https://262.ecma-international.org/6.0/#sec-hasownproperty module.exports = function HasOwnProperty(O, P) { if (Type(O) !== 'Object') { diff --git a/node_modules/es-abstract/2016/HasProperty.js b/node_modules/es-abstract/2016/HasProperty.js index b341654e7c..91476d208b 100644 --- a/node_modules/es-abstract/2016/HasProperty.js +++ b/node_modules/es-abstract/2016/HasProperty.js @@ -7,7 +7,7 @@ var $TypeError = GetIntrinsic('%TypeError%'); var IsPropertyKey = require('./IsPropertyKey'); var Type = require('./Type'); -// https://ecma-international.org/ecma-262/6.0/#sec-hasproperty +// https://262.ecma-international.org/6.0/#sec-hasproperty module.exports = function HasProperty(O, P) { if (Type(O) !== 'Object') { diff --git a/node_modules/es-abstract/2016/InstanceofOperator.js b/node_modules/es-abstract/2016/InstanceofOperator.js index a3c4d23755..4a34d0c20c 100644 --- a/node_modules/es-abstract/2016/InstanceofOperator.js +++ b/node_modules/es-abstract/2016/InstanceofOperator.js @@ -13,7 +13,7 @@ var OrdinaryHasInstance = require('./OrdinaryHasInstance'); var ToBoolean = require('./ToBoolean'); var Type = require('./Type'); -// https://ecma-international.org/ecma-262/6.0/#sec-instanceofoperator +// https://262.ecma-international.org/6.0/#sec-instanceofoperator module.exports = function InstanceofOperator(O, C) { if (Type(O) !== 'Object') { diff --git a/node_modules/es-abstract/2016/Invoke.js b/node_modules/es-abstract/2016/Invoke.js index d4214ee516..084e5e2825 100644 --- a/node_modules/es-abstract/2016/Invoke.js +++ b/node_modules/es-abstract/2016/Invoke.js @@ -9,7 +9,7 @@ var IsArray = require('./IsArray'); var GetV = require('./GetV'); var IsPropertyKey = require('./IsPropertyKey'); -// https://ecma-international.org/ecma-262/6.0/#sec-invoke +// https://262.ecma-international.org/6.0/#sec-invoke module.exports = function Invoke(O, P) { if (!IsPropertyKey(P)) { diff --git a/node_modules/es-abstract/2016/IsAccessorDescriptor.js b/node_modules/es-abstract/2016/IsAccessorDescriptor.js index 78563e7ecc..da64a302ac 100644 --- a/node_modules/es-abstract/2016/IsAccessorDescriptor.js +++ b/node_modules/es-abstract/2016/IsAccessorDescriptor.js @@ -2,11 +2,11 @@ var has = require('has'); -var assertRecord = require('../helpers/assertRecord'); - var Type = require('./Type'); -// https://ecma-international.org/ecma-262/6.0/#sec-isaccessordescriptor +var assertRecord = require('../helpers/assertRecord'); + +// https://262.ecma-international.org/5.1/#sec-8.10.1 module.exports = function IsAccessorDescriptor(Desc) { if (typeof Desc === 'undefined') { diff --git a/node_modules/es-abstract/2016/IsArray.js b/node_modules/es-abstract/2016/IsArray.js index 600ffa0028..c2c48c1f23 100644 --- a/node_modules/es-abstract/2016/IsArray.js +++ b/node_modules/es-abstract/2016/IsArray.js @@ -1,4 +1,4 @@ 'use strict'; -// https://ecma-international.org/ecma-262/6.0/#sec-isarray +// https://262.ecma-international.org/6.0/#sec-isarray module.exports = require('../helpers/IsArray'); diff --git a/node_modules/es-abstract/2016/IsConcatSpreadable.js b/node_modules/es-abstract/2016/IsConcatSpreadable.js index 141b33414d..10e1eab216 100644 --- a/node_modules/es-abstract/2016/IsConcatSpreadable.js +++ b/node_modules/es-abstract/2016/IsConcatSpreadable.js @@ -9,7 +9,7 @@ var IsArray = require('./IsArray'); var ToBoolean = require('./ToBoolean'); var Type = require('./Type'); -// https://ecma-international.org/ecma-262/6.0/#sec-isconcatspreadable +// https://262.ecma-international.org/6.0/#sec-isconcatspreadable module.exports = function IsConcatSpreadable(O) { if (Type(O) !== 'Object') { diff --git a/node_modules/es-abstract/2016/IsConstructor.js b/node_modules/es-abstract/2016/IsConstructor.js index fe626e1834..62ac47f6a3 100644 --- a/node_modules/es-abstract/2016/IsConstructor.js +++ b/node_modules/es-abstract/2016/IsConstructor.js @@ -12,7 +12,7 @@ try { DefinePropertyOrThrow = null; } -// https://ecma-international.org/ecma-262/6.0/#sec-isconstructor +// https://262.ecma-international.org/6.0/#sec-isconstructor if (DefinePropertyOrThrow && $construct) { var isConstructorMarker = {}; diff --git a/node_modules/es-abstract/2016/IsDataDescriptor.js b/node_modules/es-abstract/2016/IsDataDescriptor.js index 00d14a60eb..9db441e965 100644 --- a/node_modules/es-abstract/2016/IsDataDescriptor.js +++ b/node_modules/es-abstract/2016/IsDataDescriptor.js @@ -2,11 +2,11 @@ var has = require('has'); -var assertRecord = require('../helpers/assertRecord'); - var Type = require('./Type'); -// https://ecma-international.org/ecma-262/6.0/#sec-isdatadescriptor +var assertRecord = require('../helpers/assertRecord'); + +// https://262.ecma-international.org/5.1/#sec-8.10.2 module.exports = function IsDataDescriptor(Desc) { if (typeof Desc === 'undefined') { diff --git a/node_modules/es-abstract/2016/IsDetachedBuffer.js b/node_modules/es-abstract/2016/IsDetachedBuffer.js index 4b373e9ab5..01529bca2c 100644 --- a/node_modules/es-abstract/2016/IsDetachedBuffer.js +++ b/node_modules/es-abstract/2016/IsDetachedBuffer.js @@ -4,10 +4,7 @@ var GetIntrinsic = require('get-intrinsic'); var $TypeError = GetIntrinsic('%TypeError%'); -var callBound = require('call-bind/callBound'); - -var $byteLength = callBound('%ArrayBuffer.prototype.byteLength%', true) - || function byteLength(ab) { return ab.byteLength; }; // in node < 0.11, byteLength is an own nonconfigurable property +var $byteLength = require('array-buffer-byte-length'); var isArrayBuffer = require('is-array-buffer'); @@ -23,7 +20,7 @@ module.exports = function IsDetachedBuffer(arrayBuffer) { try { new global[availableTypedArrays[0]](arrayBuffer); // eslint-disable-line no-new } catch (error) { - return error.name === 'TypeError'; + return !!error && error.name === 'TypeError'; } } return false; diff --git a/node_modules/es-abstract/2016/IsExtensible.js b/node_modules/es-abstract/2016/IsExtensible.js index d6e3638401..aa19b914c2 100644 --- a/node_modules/es-abstract/2016/IsExtensible.js +++ b/node_modules/es-abstract/2016/IsExtensible.js @@ -7,7 +7,7 @@ var $isExtensible = GetIntrinsic('%Object.isExtensible%', true); var isPrimitive = require('../helpers/isPrimitive'); -// https://ecma-international.org/ecma-262/6.0/#sec-isextensible-o +// https://262.ecma-international.org/6.0/#sec-isextensible-o module.exports = $preventExtensions ? function IsExtensible(obj) { diff --git a/node_modules/es-abstract/2016/IsGenericDescriptor.js b/node_modules/es-abstract/2016/IsGenericDescriptor.js index 95b1d353c5..d43bec2b35 100644 --- a/node_modules/es-abstract/2016/IsGenericDescriptor.js +++ b/node_modules/es-abstract/2016/IsGenericDescriptor.js @@ -6,7 +6,7 @@ var IsAccessorDescriptor = require('./IsAccessorDescriptor'); var IsDataDescriptor = require('./IsDataDescriptor'); var Type = require('./Type'); -// https://ecma-international.org/ecma-262/6.0/#sec-isgenericdescriptor +// https://262.ecma-international.org/6.0/#sec-isgenericdescriptor module.exports = function IsGenericDescriptor(Desc) { if (typeof Desc === 'undefined') { diff --git a/node_modules/es-abstract/2016/IsInteger.js b/node_modules/es-abstract/2016/IsInteger.js index f4d1a2a7c5..e3d25f38e3 100644 --- a/node_modules/es-abstract/2016/IsInteger.js +++ b/node_modules/es-abstract/2016/IsInteger.js @@ -1,17 +1,9 @@ 'use strict'; -var abs = require('./abs'); -var floor = require('./floor'); +var isInteger = require('../helpers/isInteger'); -var $isNaN = require('../helpers/isNaN'); -var $isFinite = require('../helpers/isFinite'); - -// https://ecma-international.org/ecma-262/6.0/#sec-isinteger +// https://262.ecma-international.org/6.0/#sec-isinteger module.exports = function IsInteger(argument) { - if (typeof argument !== 'number' || $isNaN(argument) || !$isFinite(argument)) { - return false; - } - var absValue = abs(argument); - return floor(absValue) === absValue; + return isInteger(argument); }; diff --git a/node_modules/es-abstract/2016/IsPromise.js b/node_modules/es-abstract/2016/IsPromise.js index a551ae0c8b..411539b081 100644 --- a/node_modules/es-abstract/2016/IsPromise.js +++ b/node_modules/es-abstract/2016/IsPromise.js @@ -6,7 +6,7 @@ var $PromiseThen = callBound('Promise.prototype.then', true); var Type = require('./Type'); -// https://ecma-international.org/ecma-262/6.0/#sec-ispromise +// https://262.ecma-international.org/6.0/#sec-ispromise module.exports = function IsPromise(x) { if (Type(x) !== 'Object') { diff --git a/node_modules/es-abstract/2016/IsPropertyKey.js b/node_modules/es-abstract/2016/IsPropertyKey.js index f43ab581c7..aaeb6f9b6f 100644 --- a/node_modules/es-abstract/2016/IsPropertyKey.js +++ b/node_modules/es-abstract/2016/IsPropertyKey.js @@ -1,6 +1,6 @@ 'use strict'; -// https://ecma-international.org/ecma-262/6.0/#sec-ispropertykey +// https://262.ecma-international.org/6.0/#sec-ispropertykey module.exports = function IsPropertyKey(argument) { return typeof argument === 'string' || typeof argument === 'symbol'; diff --git a/node_modules/es-abstract/2016/IsRegExp.js b/node_modules/es-abstract/2016/IsRegExp.js index e1054813f1..33d983dc8d 100644 --- a/node_modules/es-abstract/2016/IsRegExp.js +++ b/node_modules/es-abstract/2016/IsRegExp.js @@ -8,7 +8,7 @@ var hasRegExpMatcher = require('is-regex'); var ToBoolean = require('./ToBoolean'); -// https://ecma-international.org/ecma-262/6.0/#sec-isregexp +// https://262.ecma-international.org/6.0/#sec-isregexp module.exports = function IsRegExp(argument) { if (!argument || typeof argument !== 'object') { diff --git a/node_modules/es-abstract/2016/IsWordChar.js b/node_modules/es-abstract/2016/IsWordChar.js new file mode 100644 index 0000000000..49f42eccac --- /dev/null +++ b/node_modules/es-abstract/2016/IsWordChar.js @@ -0,0 +1,39 @@ +'use strict'; + +var GetIntrinsic = require('get-intrinsic'); + +var $TypeError = GetIntrinsic('%TypeError%'); + +var IsArray = require('./IsArray'); +var IsInteger = require('./IsInteger'); + +var every = require('../helpers/every'); +var regexTester = require('safe-regex-test'); + +var isChar = function isChar(c) { + return typeof c === 'string' && c.length === 1; +}; + +var isWordCharacter = regexTester(/^[a-zA-Z0-9_]$/); + +// https://262.ecma-international.org/6.0/#sec-runtime-semantics-iswordchar-abstract-operation + +// note: prior to ES2023, this AO erroneously omitted the latter of its arguments. +module.exports = function IsWordChar(e, InputLength, Input) { + if (!IsInteger(e)) { + throw new $TypeError('Assertion failed: `e` must be an integer'); + } + if (!IsInteger(InputLength)) { + throw new $TypeError('Assertion failed: `InputLength` must be an integer'); + } + if (!IsArray(Input) || !every(Input, isChar)) { + throw new $TypeError('Assertion failed: `Input` must be a List of characters'); + } + if (e === -1 || e === InputLength) { + return false; // step 1 + } + + var c = Input[e]; // step 2 + + return isWordCharacter(c); // steps 3-4 +}; diff --git a/node_modules/es-abstract/2016/IteratorClose.js b/node_modules/es-abstract/2016/IteratorClose.js index f703ea632f..7c1076082e 100644 --- a/node_modules/es-abstract/2016/IteratorClose.js +++ b/node_modules/es-abstract/2016/IteratorClose.js @@ -10,7 +10,7 @@ var GetMethod = require('./GetMethod'); var IsCallable = require('./IsCallable'); var Type = require('./Type'); -// https://ecma-international.org/ecma-262/6.0/#sec-iteratorclose +// https://262.ecma-international.org/6.0/#sec-iteratorclose module.exports = function IteratorClose(iterator, completion) { if (Type(iterator) !== 'Object') { diff --git a/node_modules/es-abstract/2016/IteratorComplete.js b/node_modules/es-abstract/2016/IteratorComplete.js index ed4efa37d5..29f5f75fea 100644 --- a/node_modules/es-abstract/2016/IteratorComplete.js +++ b/node_modules/es-abstract/2016/IteratorComplete.js @@ -8,7 +8,7 @@ var Get = require('./Get'); var ToBoolean = require('./ToBoolean'); var Type = require('./Type'); -// https://ecma-international.org/ecma-262/6.0/#sec-iteratorcomplete +// https://262.ecma-international.org/6.0/#sec-iteratorcomplete module.exports = function IteratorComplete(iterResult) { if (Type(iterResult) !== 'Object') { diff --git a/node_modules/es-abstract/2016/IteratorNext.js b/node_modules/es-abstract/2016/IteratorNext.js index cf80655b93..d84d66edb5 100644 --- a/node_modules/es-abstract/2016/IteratorNext.js +++ b/node_modules/es-abstract/2016/IteratorNext.js @@ -7,7 +7,7 @@ var $TypeError = GetIntrinsic('%TypeError%'); var Invoke = require('./Invoke'); var Type = require('./Type'); -// https://ecma-international.org/ecma-262/6.0/#sec-iteratornext +// https://262.ecma-international.org/6.0/#sec-iteratornext module.exports = function IteratorNext(iterator, value) { var result = Invoke(iterator, 'next', arguments.length < 2 ? [] : [value]); diff --git a/node_modules/es-abstract/2016/IteratorStep.js b/node_modules/es-abstract/2016/IteratorStep.js index 41b9d1b251..85bcd95c04 100644 --- a/node_modules/es-abstract/2016/IteratorStep.js +++ b/node_modules/es-abstract/2016/IteratorStep.js @@ -3,7 +3,7 @@ var IteratorComplete = require('./IteratorComplete'); var IteratorNext = require('./IteratorNext'); -// https://ecma-international.org/ecma-262/6.0/#sec-iteratorstep +// https://262.ecma-international.org/6.0/#sec-iteratorstep module.exports = function IteratorStep(iterator) { var result = IteratorNext(iterator); diff --git a/node_modules/es-abstract/2016/IteratorValue.js b/node_modules/es-abstract/2016/IteratorValue.js index d15d8aebbf..e9b16daed5 100644 --- a/node_modules/es-abstract/2016/IteratorValue.js +++ b/node_modules/es-abstract/2016/IteratorValue.js @@ -7,7 +7,7 @@ var $TypeError = GetIntrinsic('%TypeError%'); var Get = require('./Get'); var Type = require('./Type'); -// https://ecma-international.org/ecma-262/6.0/#sec-iteratorvalue +// https://262.ecma-international.org/6.0/#sec-iteratorvalue module.exports = function IteratorValue(iterResult) { if (Type(iterResult) !== 'Object') { diff --git a/node_modules/es-abstract/2016/NewPromiseCapability.js b/node_modules/es-abstract/2016/NewPromiseCapability.js new file mode 100644 index 0000000000..e30b08811d --- /dev/null +++ b/node_modules/es-abstract/2016/NewPromiseCapability.js @@ -0,0 +1,36 @@ +'use strict'; + +var GetIntrinsic = require('get-intrinsic'); + +var $TypeError = GetIntrinsic('%TypeError%'); + +var IsCallable = require('es-abstract/2022/IsCallable'); +var IsConstructor = require('es-abstract/2022/IsConstructor'); + +// https://262.ecma-international.org/6.0/#sec-newpromisecapability + +module.exports = function NewPromiseCapability(C) { + if (!IsConstructor(C)) { + throw new $TypeError('C must be a constructor'); // step 1 + } + + var resolvingFunctions = { '[[Resolve]]': void undefined, '[[Reject]]': void undefined }; // step 3 + + var promise = new C(function (resolve, reject) { // steps 4-5 + if (typeof resolvingFunctions['[[Resolve]]'] !== 'undefined' || typeof resolvingFunctions['[[Reject]]'] !== 'undefined') { + throw new $TypeError('executor has already been called'); // step 4.a, 4.b + } + resolvingFunctions['[[Resolve]]'] = resolve; // step 4.c + resolvingFunctions['[[Reject]]'] = reject; // step 4.d + }); // step 4-6 + + if (!IsCallable(resolvingFunctions['[[Resolve]]']) || !IsCallable(resolvingFunctions['[[Reject]]'])) { + throw new $TypeError('executor must provide valid resolve and reject functions'); // steps 7-8 + } + + return { + '[[Promise]]': promise, + '[[Resolve]]': resolvingFunctions['[[Resolve]]'], + '[[Reject]]': resolvingFunctions['[[Reject]]'] + }; // step 9 +}; diff --git a/node_modules/es-abstract/2016/ObjectCreate.js b/node_modules/es-abstract/2016/ObjectCreate.js index 1f4bb16af4..d7d2d04d92 100644 --- a/node_modules/es-abstract/2016/ObjectCreate.js +++ b/node_modules/es-abstract/2016/ObjectCreate.js @@ -15,7 +15,7 @@ var SLOT = require('internal-slot'); var hasProto = require('has-proto')(); -// https://ecma-international.org/ecma-262/6.0/#sec-objectcreate +// https://262.ecma-international.org/6.0/#sec-objectcreate module.exports = function ObjectCreate(proto, internalSlotsList) { if (proto !== null && Type(proto) !== 'Object') { diff --git a/node_modules/es-abstract/2016/ObjectDefineProperties.js b/node_modules/es-abstract/2016/ObjectDefineProperties.js index f096f1edee..b47603487c 100644 --- a/node_modules/es-abstract/2016/ObjectDefineProperties.js +++ b/node_modules/es-abstract/2016/ObjectDefineProperties.js @@ -3,7 +3,6 @@ var callBound = require('call-bind/callBound'); var DefinePropertyOrThrow = require('./DefinePropertyOrThrow'); -var FromPropertyDescriptor = require('./FromPropertyDescriptor'); var Get = require('./Get'); var ToObject = require('./ToObject'); var ToPropertyDescriptor = require('./ToPropertyDescriptor'); @@ -32,7 +31,6 @@ module.exports = function ObjectDefineProperties(O, Properties) { forEach(descriptors, function (pair) { // step 5 var P = pair[0]; // step 5.a var desc = pair[1]; // step 5.b - desc = FromPropertyDescriptor(desc); // TODO: remove this once DefinePropertyOrThrow is fixed DefinePropertyOrThrow(O, P, desc); // step 5.c }); diff --git a/node_modules/es-abstract/2016/OrdinaryCreateFromConstructor.js b/node_modules/es-abstract/2016/OrdinaryCreateFromConstructor.js index e2a299eaa9..ede44ed6b7 100644 --- a/node_modules/es-abstract/2016/OrdinaryCreateFromConstructor.js +++ b/node_modules/es-abstract/2016/OrdinaryCreateFromConstructor.js @@ -7,7 +7,7 @@ var GetPrototypeFromConstructor = require('./GetPrototypeFromConstructor'); var IsArray = require('./IsArray'); var ObjectCreate = require('./ObjectCreate'); -// https://ecma-international.org/ecma-262/6.0/#sec-ordinarycreatefromconstructor +// https://262.ecma-international.org/6.0/#sec-ordinarycreatefromconstructor module.exports = function OrdinaryCreateFromConstructor(constructor, intrinsicDefaultProto) { GetIntrinsic(intrinsicDefaultProto); // throws if not a valid intrinsic diff --git a/node_modules/es-abstract/2016/OrdinaryDefineOwnProperty.js b/node_modules/es-abstract/2016/OrdinaryDefineOwnProperty.js index 34f029f7e5..70cd4fe58d 100644 --- a/node_modules/es-abstract/2016/OrdinaryDefineOwnProperty.js +++ b/node_modules/es-abstract/2016/OrdinaryDefineOwnProperty.js @@ -17,7 +17,7 @@ var SameValue = require('./SameValue'); var Type = require('./Type'); var ValidateAndApplyPropertyDescriptor = require('./ValidateAndApplyPropertyDescriptor'); -// https://ecma-international.org/ecma-262/6.0/#sec-ordinarydefineownproperty +// https://262.ecma-international.org/6.0/#sec-ordinarydefineownproperty module.exports = function OrdinaryDefineOwnProperty(O, P, Desc) { if (Type(O) !== 'Object') { diff --git a/node_modules/es-abstract/2016/OrdinaryGetOwnProperty.js b/node_modules/es-abstract/2016/OrdinaryGetOwnProperty.js index fd8035acb9..c23abe1103 100644 --- a/node_modules/es-abstract/2016/OrdinaryGetOwnProperty.js +++ b/node_modules/es-abstract/2016/OrdinaryGetOwnProperty.js @@ -17,7 +17,7 @@ var IsRegExp = require('./IsRegExp'); var ToPropertyDescriptor = require('./ToPropertyDescriptor'); var Type = require('./Type'); -// https://ecma-international.org/ecma-262/6.0/#sec-ordinarygetownproperty +// https://262.ecma-international.org/6.0/#sec-ordinarygetownproperty module.exports = function OrdinaryGetOwnProperty(O, P) { if (Type(O) !== 'Object') { diff --git a/node_modules/es-abstract/2016/OrdinaryHasInstance.js b/node_modules/es-abstract/2016/OrdinaryHasInstance.js index 85a240ca2f..996a50e070 100644 --- a/node_modules/es-abstract/2016/OrdinaryHasInstance.js +++ b/node_modules/es-abstract/2016/OrdinaryHasInstance.js @@ -8,10 +8,10 @@ var Get = require('./Get'); var IsCallable = require('./IsCallable'); var Type = require('./Type'); -// https://ecma-international.org/ecma-262/6.0/#sec-ordinaryhasinstance +// https://262.ecma-international.org/6.0/#sec-ordinaryhasinstance module.exports = function OrdinaryHasInstance(C, O) { - if (IsCallable(C) === false) { + if (!IsCallable(C)) { return false; } if (Type(O) !== 'Object') { diff --git a/node_modules/es-abstract/2016/OrdinaryHasProperty.js b/node_modules/es-abstract/2016/OrdinaryHasProperty.js index dd09ca3b1b..27e7da33ad 100644 --- a/node_modules/es-abstract/2016/OrdinaryHasProperty.js +++ b/node_modules/es-abstract/2016/OrdinaryHasProperty.js @@ -7,7 +7,7 @@ var $TypeError = GetIntrinsic('%TypeError%'); var IsPropertyKey = require('./IsPropertyKey'); var Type = require('./Type'); -// https://ecma-international.org/ecma-262/6.0/#sec-ordinaryhasproperty +// https://262.ecma-international.org/6.0/#sec-ordinaryhasproperty module.exports = function OrdinaryHasProperty(O, P) { if (Type(O) !== 'Object') { diff --git a/node_modules/es-abstract/2016/QuoteJSONString.js b/node_modules/es-abstract/2016/QuoteJSONString.js index 884afef25d..7dabf54bf2 100644 --- a/node_modules/es-abstract/2016/QuoteJSONString.js +++ b/node_modules/es-abstract/2016/QuoteJSONString.js @@ -15,7 +15,7 @@ var $strSplit = callBound('String.prototype.split'); var Type = require('./Type'); -// https://ecma-international.org/ecma-262/6.0/#sec-quotejsonstring +// https://262.ecma-international.org/6.0/#sec-quotejsonstring var escapes = { '\u0008': 'b', diff --git a/node_modules/es-abstract/2016/RegExpExec.js b/node_modules/es-abstract/2016/RegExpExec.js index 29fee1720c..cf15207415 100644 --- a/node_modules/es-abstract/2016/RegExpExec.js +++ b/node_modules/es-abstract/2016/RegExpExec.js @@ -11,7 +11,7 @@ var Get = require('./Get'); var IsCallable = require('./IsCallable'); var Type = require('./Type'); -// https://ecma-international.org/ecma-262/6.0/#sec-regexpexec +// https://262.ecma-international.org/6.0/#sec-regexpexec module.exports = function RegExpExec(R, S) { if (Type(R) !== 'Object') { diff --git a/node_modules/es-abstract/2016/SameValueZero.js b/node_modules/es-abstract/2016/SameValueZero.js index bf1a1486a1..3e2851b5ee 100644 --- a/node_modules/es-abstract/2016/SameValueZero.js +++ b/node_modules/es-abstract/2016/SameValueZero.js @@ -2,7 +2,7 @@ var $isNaN = require('../helpers/isNaN'); -// https://ecma-international.org/ecma-262/6.0/#sec-samevaluezero +// https://262.ecma-international.org/6.0/#sec-samevaluezero module.exports = function SameValueZero(x, y) { return (x === y) || ($isNaN(x) && $isNaN(y)); diff --git a/node_modules/es-abstract/2016/Set.js b/node_modules/es-abstract/2016/Set.js index 0971498879..9697031363 100644 --- a/node_modules/es-abstract/2016/Set.js +++ b/node_modules/es-abstract/2016/Set.js @@ -18,7 +18,7 @@ var noThrowOnStrictViolation = (function () { } }()); -// https://ecma-international.org/ecma-262/6.0/#sec-set-o-p-v-throw +// https://262.ecma-international.org/6.0/#sec-set-o-p-v-throw module.exports = function Set(O, P, V, Throw) { if (Type(O) !== 'Object') { diff --git a/node_modules/es-abstract/2016/SetFunctionName.js b/node_modules/es-abstract/2016/SetFunctionName.js index 03ec2227c7..f7fb0a9aab 100644 --- a/node_modules/es-abstract/2016/SetFunctionName.js +++ b/node_modules/es-abstract/2016/SetFunctionName.js @@ -12,7 +12,7 @@ var DefinePropertyOrThrow = require('./DefinePropertyOrThrow'); var IsExtensible = require('./IsExtensible'); var Type = require('./Type'); -// https://ecma-international.org/ecma-262/6.0/#sec-setfunctionname +// https://262.ecma-international.org/6.0/#sec-setfunctionname module.exports = function SetFunctionName(F, name) { if (typeof F !== 'function') { diff --git a/node_modules/es-abstract/2016/SetIntegrityLevel.js b/node_modules/es-abstract/2016/SetIntegrityLevel.js index 546f3e74f4..aaef85a0a2 100644 --- a/node_modules/es-abstract/2016/SetIntegrityLevel.js +++ b/node_modules/es-abstract/2016/SetIntegrityLevel.js @@ -15,7 +15,7 @@ var IsAccessorDescriptor = require('./IsAccessorDescriptor'); var ToPropertyDescriptor = require('./ToPropertyDescriptor'); var Type = require('./Type'); -// https://ecma-international.org/ecma-262/6.0/#sec-setintegritylevel +// https://262.ecma-international.org/6.0/#sec-setintegritylevel module.exports = function SetIntegrityLevel(O, level) { if (Type(O) !== 'Object') { diff --git a/node_modules/es-abstract/2016/SetValueInBuffer.js b/node_modules/es-abstract/2016/SetValueInBuffer.js new file mode 100644 index 0000000000..8208445890 --- /dev/null +++ b/node_modules/es-abstract/2016/SetValueInBuffer.js @@ -0,0 +1,120 @@ +'use strict'; + +var GetIntrinsic = require('get-intrinsic'); + +var $TypeError = GetIntrinsic('%TypeError%'); + +var isInteger = require('../helpers/isInteger'); + +var IsDetachedBuffer = require('./IsDetachedBuffer'); +var ToInt16 = require('./ToInt16'); +var ToInt32 = require('./ToInt32'); +var ToInt8 = require('./ToInt8'); +var ToUint16 = require('./ToUint16'); +var ToUint32 = require('./ToUint32'); +var ToUint8 = require('./ToUint8'); +var ToUint8Clamp = require('./ToUint8Clamp'); + +var isArrayBuffer = require('is-array-buffer'); +var has = require('has'); + +var table49 = { + __proto__: null, + Int8: 1, + Uint8: 1, + Uint8C: 1, + Int16: 2, + Uint16: 2, + Int32: 4, + Uint32: 4, + Float32: 4, + Float64: 8 +}; + +var TypeToAO = { + __proto__: null, + Int8: ToInt8, + Uint8: ToUint8, + Uint8C: ToUint8Clamp, + Int16: ToInt16, + Uint16: ToUint16, + Int32: ToInt32, + Uint32: ToUint32 +}; + +var defaultEndianness = require('../helpers/defaultEndianness'); +var forEach = require('../helpers/forEach'); +var integerToNBytes = require('../helpers/integerToNBytes'); +var valueToFloat32Bytes = require('../helpers/valueToFloat32Bytes'); +var valueToFloat64Bytes = require('../helpers/valueToFloat64Bytes'); + +// https://262.ecma-international.org/6.0/#sec-setvalueinbuffer + +module.exports = function SetValueInBuffer(arrayBuffer, byteIndex, type, value) { + if (!isArrayBuffer(arrayBuffer)) { + throw new $TypeError('Assertion failed: `arrayBuffer` must be an ArrayBuffer'); + } + + if (!isInteger(byteIndex)) { + throw new $TypeError('Assertion failed: `byteIndex` must be an integer'); + } + + if (typeof type !== 'string' || !has(table49, type)) { + throw new $TypeError('Assertion failed: `type` must be a Typed Array Element Type'); + } + + if (typeof value !== 'number') { + throw new $TypeError('Assertion failed: `value` must be a number'); + } + + if (arguments.length > 4 && typeof arguments[4] !== 'boolean') { + throw new $TypeError('Assertion failed: `isLittleEndian` must be a boolean, if present'); + } + + if (IsDetachedBuffer(arrayBuffer)) { + throw new $TypeError('Assertion failed: ArrayBuffer is detached'); // step 1 + } + + // 2. Assert: There are sufficient bytes in arrayBuffer starting at byteIndex to represent a value of type. + + if (byteIndex < 0) { + throw new $TypeError('Assertion failed: `byteIndex` must be non-negative'); // step 3 + } + + // 4. Assert: Type(value) is Number. + + // 5. Let block be arrayBuffer’s [[ArrayBufferData]] internal slot. + + // 6. Assert: block is not undefined. + + var elementSize = table49[type]; // step 7 + if (!elementSize) { + throw new $TypeError('Assertion failed: `type` must be one of "Int8", "Uint8", "Uint8C", "Int16", "Uint16", "Int32", "Uint32", "Float32", or "Float64"'); + } + + // 8. If isLittleEndian is not present, set isLittleEndian to either true or false. The choice is implementation dependent and should be the alternative that is most efficient for the implementation. An implementation must use the same value each time this step is executed and the same value must be used for the corresponding step in the GetValueFromBuffer abstract operation. + var isLittleEndian = arguments.length > 4 ? arguments[4] : defaultEndianness === 'little'; // step 8 + + var rawBytes; + if (type === 'Float32') { // step 1 + rawBytes = valueToFloat32Bytes(value, isLittleEndian); + } else if (type === 'Float64') { // step 2 + rawBytes = valueToFloat64Bytes(value, isLittleEndian); + } else { + var n = table49[type]; // step 3.a + + var convOp = TypeToAO[type]; // step 3.b + + var intValue = convOp(value); // step 3.c + + rawBytes = integerToNBytes(intValue, n, isLittleEndian); // step 3.d, 3.e, 4 + } + + // 12. Store the individual bytes of rawBytes into block, in order, starting at block[byteIndex]. + var arr = new Uint8Array(arrayBuffer, byteIndex, elementSize); + forEach(rawBytes, function (rawByte, i) { + arr[i] = rawByte; + }); + + // 13. Return NormalCompletion(undefined). +}; diff --git a/node_modules/es-abstract/2016/SpeciesConstructor.js b/node_modules/es-abstract/2016/SpeciesConstructor.js index 491eb9b87d..1937b9c9cd 100644 --- a/node_modules/es-abstract/2016/SpeciesConstructor.js +++ b/node_modules/es-abstract/2016/SpeciesConstructor.js @@ -8,7 +8,7 @@ var $TypeError = GetIntrinsic('%TypeError%'); var IsConstructor = require('./IsConstructor'); var Type = require('./Type'); -// https://ecma-international.org/ecma-262/6.0/#sec-speciesconstructor +// https://262.ecma-international.org/6.0/#sec-speciesconstructor module.exports = function SpeciesConstructor(O, defaultConstructor) { if (Type(O) !== 'Object') { diff --git a/node_modules/es-abstract/2016/SplitMatch.js b/node_modules/es-abstract/2016/SplitMatch.js index 8ab05355ed..d57fb691e5 100644 --- a/node_modules/es-abstract/2016/SplitMatch.js +++ b/node_modules/es-abstract/2016/SplitMatch.js @@ -5,9 +5,10 @@ var callBound = require('call-bind/callBound'); var $TypeError = GetIntrinsic('%TypeError%'); -var IsInteger = require('./IsInteger'); var Type = require('./Type'); +var isInteger = require('../helpers/isInteger'); + var $charAt = callBound('String.prototype.charAt'); // https://262.ecma-international.org/6.0/#sec-splitmatch @@ -16,7 +17,7 @@ module.exports = function SplitMatch(S, q, R) { if (Type(S) !== 'String') { throw new $TypeError('Assertion failed: `S` must be a String'); } - if (!IsInteger(q)) { + if (!isInteger(q)) { throw new $TypeError('Assertion failed: `q` must be an integer'); } if (Type(R) !== 'String') { diff --git a/node_modules/es-abstract/2016/SymbolDescriptiveString.js b/node_modules/es-abstract/2016/SymbolDescriptiveString.js index 1efd1316b2..89c253ffae 100644 --- a/node_modules/es-abstract/2016/SymbolDescriptiveString.js +++ b/node_modules/es-abstract/2016/SymbolDescriptiveString.js @@ -10,7 +10,7 @@ var $SymbolToString = callBound('Symbol.prototype.toString', true); var Type = require('./Type'); -// https://ecma-international.org/ecma-262/6.0/#sec-symboldescriptivestring +// https://262.ecma-international.org/6.0/#sec-symboldescriptivestring module.exports = function SymbolDescriptiveString(sym) { if (Type(sym) !== 'Symbol') { diff --git a/node_modules/es-abstract/2016/TestIntegrityLevel.js b/node_modules/es-abstract/2016/TestIntegrityLevel.js index 7f95a6e1d4..7cefab7017 100644 --- a/node_modules/es-abstract/2016/TestIntegrityLevel.js +++ b/node_modules/es-abstract/2016/TestIntegrityLevel.js @@ -13,7 +13,7 @@ var IsExtensible = require('./IsExtensible'); var ToPropertyDescriptor = require('./ToPropertyDescriptor'); var Type = require('./Type'); -// https://ecma-international.org/ecma-262/6.0/#sec-testintegritylevel +// https://262.ecma-international.org/6.0/#sec-testintegritylevel module.exports = function TestIntegrityLevel(O, level) { if (Type(O) !== 'Object') { diff --git a/node_modules/es-abstract/2016/ToDateString.js b/node_modules/es-abstract/2016/ToDateString.js index e636a9ba68..dabb2bb38a 100644 --- a/node_modules/es-abstract/2016/ToDateString.js +++ b/node_modules/es-abstract/2016/ToDateString.js @@ -4,12 +4,13 @@ var GetIntrinsic = require('get-intrinsic'); var $TypeError = GetIntrinsic('%TypeError%'); var $Date = GetIntrinsic('%Date%'); +var $String = GetIntrinsic('%String%'); var $isNaN = require('../helpers/isNaN'); var Type = require('./Type'); -// https://ecma-international.org/ecma-262/6.0/#sec-todatestring +// https://262.ecma-international.org/6.0/#sec-todatestring module.exports = function ToDateString(tv) { if (Type(tv) !== 'Number') { @@ -18,5 +19,5 @@ module.exports = function ToDateString(tv) { if ($isNaN(tv)) { return 'Invalid Date'; } - return $Date(tv); + return $String(new $Date(tv)); }; diff --git a/node_modules/es-abstract/2016/ToInt16.js b/node_modules/es-abstract/2016/ToInt16.js index cb8e7934bb..21694bdeb9 100644 --- a/node_modules/es-abstract/2016/ToInt16.js +++ b/node_modules/es-abstract/2016/ToInt16.js @@ -2,7 +2,7 @@ var ToUint16 = require('./ToUint16'); -// https://ecma-international.org/ecma-262/6.0/#sec-toint16 +// https://262.ecma-international.org/6.0/#sec-toint16 module.exports = function ToInt16(argument) { var int16bit = ToUint16(argument); diff --git a/node_modules/es-abstract/2016/ToInt8.js b/node_modules/es-abstract/2016/ToInt8.js index bc452d826f..e223b6c1d3 100644 --- a/node_modules/es-abstract/2016/ToInt8.js +++ b/node_modules/es-abstract/2016/ToInt8.js @@ -2,7 +2,7 @@ var ToUint8 = require('./ToUint8'); -// https://ecma-international.org/ecma-262/6.0/#sec-toint8 +// https://262.ecma-international.org/6.0/#sec-toint8 module.exports = function ToInt8(argument) { var int8bit = ToUint8(argument); diff --git a/node_modules/es-abstract/2016/ToInteger.js b/node_modules/es-abstract/2016/ToInteger.js index 2975818094..f6625796eb 100644 --- a/node_modules/es-abstract/2016/ToInteger.js +++ b/node_modules/es-abstract/2016/ToInteger.js @@ -4,7 +4,7 @@ var ES5ToInteger = require('../5/ToInteger'); var ToNumber = require('./ToNumber'); -// https://ecma-international.org/ecma-262/6.0/#sec-tointeger +// https://262.ecma-international.org/6.0/#sec-tointeger module.exports = function ToInteger(value) { var number = ToNumber(value); diff --git a/node_modules/es-abstract/2016/ToNumber.js b/node_modules/es-abstract/2016/ToNumber.js index 95bdd9ecda..3abb6a68d2 100644 --- a/node_modules/es-abstract/2016/ToNumber.js +++ b/node_modules/es-abstract/2016/ToNumber.js @@ -19,22 +19,11 @@ var nonWS = ['\u0085', '\u200b', '\ufffe'].join(''); var nonWSregex = new $RegExp('[' + nonWS + ']', 'g'); var hasNonWS = regexTester(nonWSregex); -// whitespace from: https://es5.github.io/#x15.5.4.20 -// implementation from https://github.com/es-shims/es5-shim/blob/v3.4.0/es5-shim.js#L1304-L1324 -var ws = [ - '\x09\x0A\x0B\x0C\x0D\x20\xA0\u1680\u180E\u2000\u2001\u2002\u2003', - '\u2004\u2005\u2006\u2007\u2008\u2009\u200A\u202F\u205F\u3000\u2028', - '\u2029\uFEFF' -].join(''); -var trimRegex = new RegExp('(^[' + ws + ']+)|([' + ws + ']+$)', 'g'); -var $replace = callBound('String.prototype.replace'); -var $trim = function (value) { - return $replace(value, trimRegex, ''); -}; +var $trim = require('string.prototype.trim'); var ToPrimitive = require('./ToPrimitive'); -// https://ecma-international.org/ecma-262/6.0/#sec-tonumber +// https://262.ecma-international.org/6.0/#sec-tonumber module.exports = function ToNumber(argument) { var value = isPrimitive(argument) ? argument : ToPrimitive(argument, $Number); diff --git a/node_modules/es-abstract/2016/ToObject.js b/node_modules/es-abstract/2016/ToObject.js index cb26bac064..26a007cead 100644 --- a/node_modules/es-abstract/2016/ToObject.js +++ b/node_modules/es-abstract/2016/ToObject.js @@ -6,7 +6,7 @@ var $Object = GetIntrinsic('%Object%'); var RequireObjectCoercible = require('./RequireObjectCoercible'); -// https://ecma-international.org/ecma-262/6.0/#sec-toobject +// https://262.ecma-international.org/6.0/#sec-toobject module.exports = function ToObject(value) { RequireObjectCoercible(value); diff --git a/node_modules/es-abstract/2016/ToPrimitive.js b/node_modules/es-abstract/2016/ToPrimitive.js index 0fbe9b8076..56bcf1aa9e 100644 --- a/node_modules/es-abstract/2016/ToPrimitive.js +++ b/node_modules/es-abstract/2016/ToPrimitive.js @@ -2,7 +2,7 @@ var toPrimitive = require('es-to-primitive/es2015'); -// https://ecma-international.org/ecma-262/6.0/#sec-toprimitive +// https://262.ecma-international.org/6.0/#sec-toprimitive module.exports = function ToPrimitive(input) { if (arguments.length > 1) { diff --git a/node_modules/es-abstract/2016/ToPropertyKey.js b/node_modules/es-abstract/2016/ToPropertyKey.js index fc1bf7d862..e363cd93b1 100644 --- a/node_modules/es-abstract/2016/ToPropertyKey.js +++ b/node_modules/es-abstract/2016/ToPropertyKey.js @@ -7,7 +7,7 @@ var $String = GetIntrinsic('%String%'); var ToPrimitive = require('./ToPrimitive'); var ToString = require('./ToString'); -// https://ecma-international.org/ecma-262/6.0/#sec-topropertykey +// https://262.ecma-international.org/6.0/#sec-topropertykey module.exports = function ToPropertyKey(argument) { var key = ToPrimitive(argument, $String); diff --git a/node_modules/es-abstract/2016/ToString.js b/node_modules/es-abstract/2016/ToString.js index 4d494e1e23..d86aed4ce8 100644 --- a/node_modules/es-abstract/2016/ToString.js +++ b/node_modules/es-abstract/2016/ToString.js @@ -5,7 +5,7 @@ var GetIntrinsic = require('get-intrinsic'); var $String = GetIntrinsic('%String%'); var $TypeError = GetIntrinsic('%TypeError%'); -// https://ecma-international.org/ecma-262/6.0/#sec-tostring +// https://262.ecma-international.org/6.0/#sec-tostring module.exports = function ToString(argument) { if (typeof argument === 'symbol') { diff --git a/node_modules/es-abstract/2016/ToUint8.js b/node_modules/es-abstract/2016/ToUint8.js index 2dfd97cb34..6e4e4b5add 100644 --- a/node_modules/es-abstract/2016/ToUint8.js +++ b/node_modules/es-abstract/2016/ToUint8.js @@ -10,7 +10,7 @@ var abs = require('./abs'); var floor = require('./floor'); var modulo = require('./modulo'); -// https://ecma-international.org/ecma-262/6.0/#sec-touint8 +// https://262.ecma-international.org/6.0/#sec-touint8 module.exports = function ToUint8(argument) { var number = ToNumber(argument); diff --git a/node_modules/es-abstract/2016/ToUint8Clamp.js b/node_modules/es-abstract/2016/ToUint8Clamp.js index b0b8ce8ed3..3ba2fd7119 100644 --- a/node_modules/es-abstract/2016/ToUint8Clamp.js +++ b/node_modules/es-abstract/2016/ToUint8Clamp.js @@ -5,13 +5,13 @@ var floor = require('./floor'); var $isNaN = require('../helpers/isNaN'); -// https://ecma-international.org/ecma-262/6.0/#sec-touint8clamp +// https://262.ecma-international.org/6.0/#sec-touint8clamp module.exports = function ToUint8Clamp(argument) { var number = ToNumber(argument); if ($isNaN(number) || number <= 0) { return 0; } if (number >= 0xFF) { return 0xFF; } - var f = floor(argument); + var f = floor(number); if (f + 0.5 < number) { return f + 1; } if (number < f + 0.5) { return f; } if (f % 2 !== 0) { return f + 1; } diff --git a/node_modules/es-abstract/2016/Type.js b/node_modules/es-abstract/2016/Type.js index 0bd11659c2..da5cb76250 100644 --- a/node_modules/es-abstract/2016/Type.js +++ b/node_modules/es-abstract/2016/Type.js @@ -2,7 +2,7 @@ var ES5Type = require('../5/Type'); -// https://ecma-international.org/ecma-262/6.0/#sec-ecmascript-data-types-and-values +// https://262.ecma-international.org/6.0/#sec-ecmascript-data-types-and-values module.exports = function Type(x) { if (typeof x === 'symbol') { diff --git a/node_modules/es-abstract/2016/TypedArrayCreate.js b/node_modules/es-abstract/2016/TypedArrayCreate.js new file mode 100644 index 0000000000..ef9fbe2599 --- /dev/null +++ b/node_modules/es-abstract/2016/TypedArrayCreate.js @@ -0,0 +1,50 @@ +'use strict'; + +var GetIntrinsic = require('get-intrinsic'); + +var $SyntaxError = GetIntrinsic('%SyntaxError%'); +var $TypeError = GetIntrinsic('%TypeError%'); + +var IsArray = require('./IsArray'); +var IsConstructor = require('./IsConstructor'); +var Type = require('./Type'); +var ValidateTypedArray = require('./ValidateTypedArray'); + +var availableTypedArrays = require('available-typed-arrays')(); +var typedArrayLength = require('typed-array-length'); + +// https://262.ecma-international.org/7.0/#typedarray-create + +module.exports = function TypedArrayCreate(constructor, argumentList) { + if (!IsConstructor(constructor)) { + throw new $TypeError('Assertion failed: `constructor` must be a constructor'); + } + if (!IsArray(argumentList)) { + throw new $TypeError('Assertion failed: `argumentList` must be a List'); + } + if (availableTypedArrays.length === 0) { + throw new $SyntaxError('Assertion failed: Typed Arrays are not supported in this environment'); + } + + // var newTypedArray = Construct(constructor, argumentList); // step 1 + var newTypedArray; + if (argumentList.length === 0) { + newTypedArray = new constructor(); + } else if (argumentList.length === 1) { + newTypedArray = new constructor(argumentList[0]); + } else if (argumentList.length === 2) { + newTypedArray = new constructor(argumentList[0], argumentList[1]); + } else { + newTypedArray = new constructor(argumentList[0], argumentList[1], argumentList[2]); + } + + ValidateTypedArray(newTypedArray); // step 2 + + if (argumentList.length === 1 && Type(argumentList[0]) === 'Number') { // step 3 + if (typedArrayLength(newTypedArray) < argumentList[0]) { + throw new $TypeError('Assertion failed: `argumentList[0]` must be <= `newTypedArray.length`'); // step 3.a + } + } + + return newTypedArray; // step 4 +}; diff --git a/node_modules/es-abstract/2016/TypedArraySpeciesCreate.js b/node_modules/es-abstract/2016/TypedArraySpeciesCreate.js new file mode 100644 index 0000000000..1cf8755acc --- /dev/null +++ b/node_modules/es-abstract/2016/TypedArraySpeciesCreate.js @@ -0,0 +1,39 @@ +'use strict'; + +var GetIntrinsic = require('get-intrinsic'); + +var $SyntaxError = GetIntrinsic('%SyntaxError%'); +var $TypeError = GetIntrinsic('%TypeError%'); + +var whichTypedArray = require('which-typed-array'); +var availableTypedArrays = require('available-typed-arrays')(); + +var IsArray = require('./IsArray'); +var SpeciesConstructor = require('./SpeciesConstructor'); +var TypedArrayCreate = require('./TypedArrayCreate'); + +var getConstructor = require('../helpers/typedArrayContructors'); + +// https://262.ecma-international.org/7.0/#typedarray-species-create + +module.exports = function TypedArraySpeciesCreate(exemplar, argumentList) { + if (availableTypedArrays.length === 0) { + throw new $SyntaxError('Assertion failed: Typed Arrays are not supported in this environment'); + } + + var kind = whichTypedArray(exemplar); + if (!kind) { + throw new $TypeError('Assertion failed: exemplar must be a TypedArray'); // step 1 + } + if (!IsArray(argumentList)) { + throw new $TypeError('Assertion failed: `argumentList` must be a List'); // step 1 + } + + var defaultConstructor = getConstructor(kind); // step 2 + if (typeof defaultConstructor !== 'function') { + throw new $SyntaxError('Assertion failed: `constructor` of `exemplar` (' + kind + ') must exist. Please report this!'); + } + var constructor = SpeciesConstructor(exemplar, defaultConstructor); // step 3 + + return TypedArrayCreate(constructor, argumentList); // step 4 +}; diff --git a/node_modules/es-abstract/2016/ValidateAndApplyPropertyDescriptor.js b/node_modules/es-abstract/2016/ValidateAndApplyPropertyDescriptor.js index a7fd218ad5..134b2d5c36 100644 --- a/node_modules/es-abstract/2016/ValidateAndApplyPropertyDescriptor.js +++ b/node_modules/es-abstract/2016/ValidateAndApplyPropertyDescriptor.js @@ -16,10 +16,10 @@ var IsPropertyKey = require('./IsPropertyKey'); var SameValue = require('./SameValue'); var Type = require('./Type'); -// https://ecma-international.org/ecma-262/6.0/#sec-validateandapplypropertydescriptor -// https://ecma-international.org/ecma-262/8.0/#sec-validateandapplypropertydescriptor +// https://262.ecma-international.org/6.0/#sec-validateandapplypropertydescriptor +// https://262.ecma-international.org/8.0/#sec-validateandapplypropertydescriptor -// eslint-disable-next-line max-lines-per-function, max-statements, max-params +// eslint-disable-next-line max-lines-per-function, max-statements module.exports = function ValidateAndApplyPropertyDescriptor(O, P, extensible, Desc, current) { // this uses the ES2017+ logic, since it fixes a number of bugs in the ES2015 logic. var oType = Type(O); diff --git a/node_modules/es-abstract/2016/ValidateTypedArray.js b/node_modules/es-abstract/2016/ValidateTypedArray.js index 83df3a81cb..c7aa313938 100644 --- a/node_modules/es-abstract/2016/ValidateTypedArray.js +++ b/node_modules/es-abstract/2016/ValidateTypedArray.js @@ -5,7 +5,7 @@ var GetIntrinsic = require('get-intrinsic'); var $TypeError = GetIntrinsic('%TypeError%'); var callBound = require('call-bind/callBound'); -var $taSome = callBound('%TypedArray.prototype.some%', true); +var $taSome = callBound('TypedArray.prototype.some', true); var Type = require('./Type'); diff --git a/node_modules/es-abstract/2016/thisBooleanValue.js b/node_modules/es-abstract/2016/thisBooleanValue.js index 27075b9c4f..e93a28ce47 100644 --- a/node_modules/es-abstract/2016/thisBooleanValue.js +++ b/node_modules/es-abstract/2016/thisBooleanValue.js @@ -4,7 +4,7 @@ var $BooleanValueOf = require('call-bind/callBound')('Boolean.prototype.valueOf' var Type = require('./Type'); -// https://ecma-international.org/ecma-262/6.0/#sec-properties-of-the-boolean-prototype-object +// https://262.ecma-international.org/6.0/#sec-properties-of-the-boolean-prototype-object module.exports = function thisBooleanValue(value) { if (Type(value) === 'Boolean') { diff --git a/node_modules/es-abstract/2016/thisNumberValue.js b/node_modules/es-abstract/2016/thisNumberValue.js index 92968dcdf8..03580df26f 100644 --- a/node_modules/es-abstract/2016/thisNumberValue.js +++ b/node_modules/es-abstract/2016/thisNumberValue.js @@ -6,7 +6,7 @@ var Type = require('./Type'); var $NumberValueOf = callBound('Number.prototype.valueOf'); -// https://ecma-international.org/ecma-262/6.0/#sec-properties-of-the-number-prototype-object +// https://262.ecma-international.org/6.0/#sec-properties-of-the-number-prototype-object module.exports = function thisNumberValue(value) { if (Type(value) === 'Number') { diff --git a/node_modules/es-abstract/2016/thisStringValue.js b/node_modules/es-abstract/2016/thisStringValue.js index 8e4274d811..c7bf3da70c 100644 --- a/node_modules/es-abstract/2016/thisStringValue.js +++ b/node_modules/es-abstract/2016/thisStringValue.js @@ -4,7 +4,7 @@ var $StringValueOf = require('call-bind/callBound')('String.prototype.valueOf'); var Type = require('./Type'); -// https://ecma-international.org/ecma-262/6.0/#sec-properties-of-the-string-prototype-object +// https://262.ecma-international.org/6.0/#sec-properties-of-the-string-prototype-object module.exports = function thisStringValue(value) { if (Type(value) === 'String') { diff --git a/node_modules/es-abstract/2016/thisTimeValue.js b/node_modules/es-abstract/2016/thisTimeValue.js index 4687950f13..bd50ddd068 100644 --- a/node_modules/es-abstract/2016/thisTimeValue.js +++ b/node_modules/es-abstract/2016/thisTimeValue.js @@ -2,7 +2,7 @@ var $DateGetTime = require('call-bind/callBound')('Date.prototype.getTime'); -// https://ecma-international.org/ecma-262/6.0/#sec-properties-of-the-date-prototype-object +// https://262.ecma-international.org/6.0/#sec-properties-of-the-date-prototype-object module.exports = function thisTimeValue(value) { return $DateGetTime(value); diff --git a/node_modules/es-abstract/2017/AbstractEqualityComparison.js b/node_modules/es-abstract/2017/AbstractEqualityComparison.js index c776194c1e..b56a506622 100644 --- a/node_modules/es-abstract/2017/AbstractEqualityComparison.js +++ b/node_modules/es-abstract/2017/AbstractEqualityComparison.js @@ -4,7 +4,7 @@ var ToNumber = require('./ToNumber'); var ToPrimitive = require('./ToPrimitive'); var Type = require('./Type'); -// https://ecma-international.org/ecma-262/6.0/#sec-abstract-equality-comparison +// https://262.ecma-international.org/6.0/#sec-abstract-equality-comparison module.exports = function AbstractEqualityComparison(x, y) { var xType = Type(x); diff --git a/node_modules/es-abstract/2017/AdvanceStringIndex.js b/node_modules/es-abstract/2017/AdvanceStringIndex.js index 279602b4cd..831ea96ef9 100644 --- a/node_modules/es-abstract/2017/AdvanceStringIndex.js +++ b/node_modules/es-abstract/2017/AdvanceStringIndex.js @@ -2,24 +2,24 @@ var GetIntrinsic = require('get-intrinsic'); -var IsInteger = require('./IsInteger'); var Type = require('./Type'); -var MAX_SAFE_INTEGER = require('../helpers/maxSafeInteger'); +var isInteger = require('../helpers/isInteger'); var isLeadingSurrogate = require('../helpers/isLeadingSurrogate'); var isTrailingSurrogate = require('../helpers/isTrailingSurrogate'); +var MAX_SAFE_INTEGER = require('../helpers/maxSafeInteger'); var $TypeError = GetIntrinsic('%TypeError%'); var $charCodeAt = require('call-bind/callBound')('String.prototype.charCodeAt'); -// https://ecma-international.org/ecma-262/6.0/#sec-advancestringindex +// https://262.ecma-international.org/6.0/#sec-advancestringindex module.exports = function AdvanceStringIndex(S, index, unicode) { if (Type(S) !== 'String') { throw new $TypeError('Assertion failed: `S` must be a String'); } - if (!IsInteger(index) || index < 0 || index > MAX_SAFE_INTEGER) { + if (!isInteger(index) || index < 0 || index > MAX_SAFE_INTEGER) { throw new $TypeError('Assertion failed: `length` must be an integer >= 0 and <= 2**53'); } if (Type(unicode) !== 'Boolean') { diff --git a/node_modules/es-abstract/2017/ArrayCreate.js b/node_modules/es-abstract/2017/ArrayCreate.js index cc890cafbf..0d34db9bec 100644 --- a/node_modules/es-abstract/2017/ArrayCreate.js +++ b/node_modules/es-abstract/2017/ArrayCreate.js @@ -7,7 +7,7 @@ var $RangeError = GetIntrinsic('%RangeError%'); var $SyntaxError = GetIntrinsic('%SyntaxError%'); var $TypeError = GetIntrinsic('%TypeError%'); -var IsInteger = require('./IsInteger'); +var isInteger = require('../helpers/isInteger'); var hasProto = require('has-proto')(); @@ -22,10 +22,10 @@ var $setProto = GetIntrinsic('%Object.setPrototypeOf%', true) || ( : null ); -// https://ecma-international.org/ecma-262/6.0/#sec-arraycreate +// https://262.ecma-international.org/6.0/#sec-arraycreate module.exports = function ArrayCreate(length) { - if (!IsInteger(length) || length < 0) { + if (!isInteger(length) || length < 0) { throw new $TypeError('Assertion failed: `length` must be an integer Number >= 0'); } if (length > MAX_ARRAY_LENGTH) { diff --git a/node_modules/es-abstract/2017/ArraySetLength.js b/node_modules/es-abstract/2017/ArraySetLength.js index 08db9c2e9b..45d7569e7d 100644 --- a/node_modules/es-abstract/2017/ArraySetLength.js +++ b/node_modules/es-abstract/2017/ArraySetLength.js @@ -19,7 +19,7 @@ var ToString = require('./ToString'); var ToUint32 = require('./ToUint32'); var Type = require('./Type'); -// https://ecma-international.org/ecma-262/6.0/#sec-arraysetlength +// https://262.ecma-international.org/6.0/#sec-arraysetlength // eslint-disable-next-line max-statements, max-lines-per-function module.exports = function ArraySetLength(A, Desc) { diff --git a/node_modules/es-abstract/2017/ArraySpeciesCreate.js b/node_modules/es-abstract/2017/ArraySpeciesCreate.js index 26d63b5e20..1944dfe7b8 100644 --- a/node_modules/es-abstract/2017/ArraySpeciesCreate.js +++ b/node_modules/es-abstract/2017/ArraySpeciesCreate.js @@ -9,13 +9,14 @@ var $TypeError = GetIntrinsic('%TypeError%'); var Get = require('./Get'); var IsArray = require('./IsArray'); var IsConstructor = require('./IsConstructor'); -var IsInteger = require('./IsInteger'); var Type = require('./Type'); -// https://ecma-international.org/ecma-262/6.0/#sec-arrayspeciescreate +var isInteger = require('../helpers/isInteger'); + +// https://262.ecma-international.org/6.0/#sec-arrayspeciescreate module.exports = function ArraySpeciesCreate(originalArray, length) { - if (!IsInteger(length) || length < 0) { + if (!isInteger(length) || length < 0) { throw new $TypeError('Assertion failed: length must be an integer >= 0'); } var len = length === 0 ? 0 : length; diff --git a/node_modules/es-abstract/2017/Call.js b/node_modules/es-abstract/2017/Call.js index 4b238c6916..be76246db0 100644 --- a/node_modules/es-abstract/2017/Call.js +++ b/node_modules/es-abstract/2017/Call.js @@ -7,9 +7,9 @@ var $TypeError = GetIntrinsic('%TypeError%'); var IsArray = require('./IsArray'); -var $apply = GetIntrinsic('%Reflect.apply%', true) || callBound('%Function.prototype.apply%'); +var $apply = GetIntrinsic('%Reflect.apply%', true) || callBound('Function.prototype.apply'); -// https://ecma-international.org/ecma-262/6.0/#sec-call +// https://262.ecma-international.org/6.0/#sec-call module.exports = function Call(F, V) { var argumentsList = arguments.length > 2 ? arguments[2] : []; diff --git a/node_modules/es-abstract/2017/CanonicalNumericIndexString.js b/node_modules/es-abstract/2017/CanonicalNumericIndexString.js index feb878c032..e9f386326c 100644 --- a/node_modules/es-abstract/2017/CanonicalNumericIndexString.js +++ b/node_modules/es-abstract/2017/CanonicalNumericIndexString.js @@ -9,7 +9,7 @@ var ToNumber = require('./ToNumber'); var ToString = require('./ToString'); var Type = require('./Type'); -// https://ecma-international.org/ecma-262/6.0/#sec-canonicalnumericindexstring +// https://262.ecma-international.org/6.0/#sec-canonicalnumericindexstring module.exports = function CanonicalNumericIndexString(argument) { if (Type(argument) !== 'String') { diff --git a/node_modules/es-abstract/2017/Canonicalize.js b/node_modules/es-abstract/2017/Canonicalize.js new file mode 100644 index 0000000000..8873db4c7c --- /dev/null +++ b/node_modules/es-abstract/2017/Canonicalize.js @@ -0,0 +1,55 @@ +'use strict'; + +var GetIntrinsic = require('get-intrinsic'); + +var $TypeError = GetIntrinsic('%TypeError%'); + +var callBound = require('call-bind/callBound'); +var has = require('has'); + +var $charCodeAt = callBound('String.prototype.charCodeAt'); +var $toUpperCase = callBound('String.prototype.toUpperCase'); + +var Type = require('./Type'); + +var caseFolding = require('../helpers/caseFolding'); + +// https://262.ecma-international.org/6.0/#sec-runtime-semantics-canonicalize-ch + +module.exports = function Canonicalize(ch, IgnoreCase, Unicode) { + if (Type(ch) !== 'String') { + throw new $TypeError('Assertion failed: `ch` must be a character'); + } + + if (Type(IgnoreCase) !== 'Boolean' || Type(Unicode) !== 'Boolean') { + throw new $TypeError('Assertion failed: `IgnoreCase` and `Unicode` must be Booleans'); + } + + if (!IgnoreCase) { + return ch; // step 1 + } + + if (Unicode) { // step 2 + if (has(caseFolding.C, ch)) { + return caseFolding.C[ch]; + } + if (has(caseFolding.S, ch)) { + return caseFolding.S[ch]; + } + return ch; // step 2.b + } + + var u = $toUpperCase(ch); // step 2 + + if (u.length !== 1) { + return ch; // step 3 + } + + var cu = u; // step 4 + + if ($charCodeAt(ch, 0) >= 128 && $charCodeAt(cu, 0) < 128) { + return ch; // step 5 + } + + return cu; +}; diff --git a/node_modules/es-abstract/2017/CharacterRange.js b/node_modules/es-abstract/2017/CharacterRange.js index 70e4b52355..78783a59f2 100644 --- a/node_modules/es-abstract/2017/CharacterRange.js +++ b/node_modules/es-abstract/2017/CharacterRange.js @@ -5,8 +5,8 @@ var callBound = require('call-bind/callBound'); var $fromCharCode = GetIntrinsic('%String.fromCharCode%'); var $TypeError = GetIntrinsic('%TypeError%'); -var $charCodeAt = callBound('%String.prototype.charCodeAt%'); -var $push = callBound('%Array.prototype.push%'); +var $charCodeAt = callBound('String.prototype.charCodeAt'); +var $push = callBound('Array.prototype.push'); module.exports = function CharacterRange(A, B) { if (A.length !== 1 || B.length !== 1) { diff --git a/node_modules/es-abstract/2017/CompletePropertyDescriptor.js b/node_modules/es-abstract/2017/CompletePropertyDescriptor.js index 548bf415a3..e8685197aa 100644 --- a/node_modules/es-abstract/2017/CompletePropertyDescriptor.js +++ b/node_modules/es-abstract/2017/CompletePropertyDescriptor.js @@ -8,7 +8,7 @@ var IsDataDescriptor = require('./IsDataDescriptor'); var IsGenericDescriptor = require('./IsGenericDescriptor'); var Type = require('./Type'); -// https://ecma-international.org/ecma-262/6.0/#sec-completepropertydescriptor +// https://262.ecma-international.org/6.0/#sec-completepropertydescriptor module.exports = function CompletePropertyDescriptor(Desc) { /* eslint no-param-reassign: 0 */ diff --git a/node_modules/es-abstract/2017/CreateDataProperty.js b/node_modules/es-abstract/2017/CreateDataProperty.js index 02c6cd1f8b..5bd5fc4787 100644 --- a/node_modules/es-abstract/2017/CreateDataProperty.js +++ b/node_modules/es-abstract/2017/CreateDataProperty.js @@ -4,17 +4,11 @@ var GetIntrinsic = require('get-intrinsic'); var $TypeError = GetIntrinsic('%TypeError%'); -var DefineOwnProperty = require('../helpers/DefineOwnProperty'); - -var FromPropertyDescriptor = require('./FromPropertyDescriptor'); -var OrdinaryGetOwnProperty = require('./OrdinaryGetOwnProperty'); -var IsDataDescriptor = require('./IsDataDescriptor'); -var IsExtensible = require('./IsExtensible'); var IsPropertyKey = require('./IsPropertyKey'); -var SameValue = require('./SameValue'); +var OrdinaryDefineOwnProperty = require('./OrdinaryDefineOwnProperty'); var Type = require('./Type'); -// https://ecma-international.org/ecma-262/6.0/#sec-createdataproperty +// https://262.ecma-international.org/6.0/#sec-createdataproperty module.exports = function CreateDataProperty(O, P, V) { if (Type(O) !== 'Object') { @@ -23,23 +17,11 @@ module.exports = function CreateDataProperty(O, P, V) { if (!IsPropertyKey(P)) { throw new $TypeError('Assertion failed: IsPropertyKey(P) is not true'); } - var oldDesc = OrdinaryGetOwnProperty(O, P); - var extensible = !oldDesc || IsExtensible(O); - var nonConfigurable = oldDesc && !oldDesc['[[Configurable]]']; - if (nonConfigurable || !extensible) { - return false; - } - return DefineOwnProperty( - IsDataDescriptor, - SameValue, - FromPropertyDescriptor, - O, - P, - { - '[[Configurable]]': true, - '[[Enumerable]]': true, - '[[Value]]': V, - '[[Writable]]': true - } - ); + var newDesc = { + '[[Configurable]]': true, + '[[Enumerable]]': true, + '[[Value]]': V, + '[[Writable]]': true + }; + return OrdinaryDefineOwnProperty(O, P, newDesc); }; diff --git a/node_modules/es-abstract/2017/CreateDataPropertyOrThrow.js b/node_modules/es-abstract/2017/CreateDataPropertyOrThrow.js index 2f7c410ba3..c40e69368b 100644 --- a/node_modules/es-abstract/2017/CreateDataPropertyOrThrow.js +++ b/node_modules/es-abstract/2017/CreateDataPropertyOrThrow.js @@ -8,7 +8,7 @@ var CreateDataProperty = require('./CreateDataProperty'); var IsPropertyKey = require('./IsPropertyKey'); var Type = require('./Type'); -// // https://ecma-international.org/ecma-262/6.0/#sec-createdatapropertyorthrow +// // https://262.ecma-international.org/6.0/#sec-createdatapropertyorthrow module.exports = function CreateDataPropertyOrThrow(O, P, V) { if (Type(O) !== 'Object') { diff --git a/node_modules/es-abstract/2017/CreateHTML.js b/node_modules/es-abstract/2017/CreateHTML.js index ccded1e65d..ea7633da68 100644 --- a/node_modules/es-abstract/2017/CreateHTML.js +++ b/node_modules/es-abstract/2017/CreateHTML.js @@ -12,7 +12,7 @@ var RequireObjectCoercible = require('./RequireObjectCoercible'); var ToString = require('./ToString'); var Type = require('./Type'); -// https://ecma-international.org/ecma-262/6.0/#sec-createhtml +// https://262.ecma-international.org/6.0/#sec-createhtml module.exports = function CreateHTML(string, tag, attribute, value) { if (Type(tag) !== 'String' || Type(attribute) !== 'String') { diff --git a/node_modules/es-abstract/2017/CreateIterResultObject.js b/node_modules/es-abstract/2017/CreateIterResultObject.js index eea77a5128..ed86b34f25 100644 --- a/node_modules/es-abstract/2017/CreateIterResultObject.js +++ b/node_modules/es-abstract/2017/CreateIterResultObject.js @@ -6,7 +6,7 @@ var $TypeError = GetIntrinsic('%TypeError%'); var Type = require('./Type'); -// https://ecma-international.org/ecma-262/6.0/#sec-createiterresultobject +// https://262.ecma-international.org/6.0/#sec-createiterresultobject module.exports = function CreateIterResultObject(value, done) { if (Type(done) !== 'Boolean') { diff --git a/node_modules/es-abstract/2017/CreateListFromArrayLike.js b/node_modules/es-abstract/2017/CreateListFromArrayLike.js index d1bb8b6587..4c34219206 100644 --- a/node_modules/es-abstract/2017/CreateListFromArrayLike.js +++ b/node_modules/es-abstract/2017/CreateListFromArrayLike.js @@ -14,11 +14,13 @@ var ToLength = require('./ToLength'); var ToString = require('./ToString'); var Type = require('./Type'); -// https://ecma-international.org/ecma-262/6.0/#sec-createlistfromarraylike +var defaultElementTypes = ['Undefined', 'Null', 'Boolean', 'String', 'Symbol', 'Number', 'Object']; + +// https://262.ecma-international.org/6.0/#sec-createlistfromarraylike module.exports = function CreateListFromArrayLike(obj) { var elementTypes = arguments.length > 1 ? arguments[1] - : ['Undefined', 'Null', 'Boolean', 'String', 'Symbol', 'Number', 'Object']; + : defaultElementTypes; if (Type(obj) !== 'Object') { throw new $TypeError('Assertion failed: `obj` must be an Object'); diff --git a/node_modules/es-abstract/2017/CreateMethodProperty.js b/node_modules/es-abstract/2017/CreateMethodProperty.js index 53274a5614..058c0f1760 100644 --- a/node_modules/es-abstract/2017/CreateMethodProperty.js +++ b/node_modules/es-abstract/2017/CreateMethodProperty.js @@ -12,7 +12,7 @@ var IsPropertyKey = require('./IsPropertyKey'); var SameValue = require('./SameValue'); var Type = require('./Type'); -// https://ecma-international.org/ecma-262/6.0/#sec-createmethodproperty +// https://262.ecma-international.org/6.0/#sec-createmethodproperty module.exports = function CreateMethodProperty(O, P, V) { if (Type(O) !== 'Object') { diff --git a/node_modules/es-abstract/2017/DefinePropertyOrThrow.js b/node_modules/es-abstract/2017/DefinePropertyOrThrow.js index 26f2714bb1..8fe097068d 100644 --- a/node_modules/es-abstract/2017/DefinePropertyOrThrow.js +++ b/node_modules/es-abstract/2017/DefinePropertyOrThrow.js @@ -15,7 +15,7 @@ var SameValue = require('./SameValue'); var ToPropertyDescriptor = require('./ToPropertyDescriptor'); var Type = require('./Type'); -// https://ecma-international.org/ecma-262/6.0/#sec-definepropertyorthrow +// https://262.ecma-international.org/6.0/#sec-definepropertyorthrow module.exports = function DefinePropertyOrThrow(O, P, desc) { if (Type(O) !== 'Object') { diff --git a/node_modules/es-abstract/2017/DeletePropertyOrThrow.js b/node_modules/es-abstract/2017/DeletePropertyOrThrow.js index 30d5e57c7b..581bf06ea2 100644 --- a/node_modules/es-abstract/2017/DeletePropertyOrThrow.js +++ b/node_modules/es-abstract/2017/DeletePropertyOrThrow.js @@ -7,7 +7,7 @@ var $TypeError = GetIntrinsic('%TypeError%'); var IsPropertyKey = require('./IsPropertyKey'); var Type = require('./Type'); -// https://ecma-international.org/ecma-262/6.0/#sec-deletepropertyorthrow +// https://262.ecma-international.org/6.0/#sec-deletepropertyorthrow module.exports = function DeletePropertyOrThrow(O, P) { if (Type(O) !== 'Object') { diff --git a/node_modules/es-abstract/2017/FromPropertyDescriptor.js b/node_modules/es-abstract/2017/FromPropertyDescriptor.js index e142ed582e..c70f0c60e1 100644 --- a/node_modules/es-abstract/2017/FromPropertyDescriptor.js +++ b/node_modules/es-abstract/2017/FromPropertyDescriptor.js @@ -5,7 +5,7 @@ var fromPropertyDescriptor = require('../helpers/fromPropertyDescriptor'); var Type = require('./Type'); -// https://ecma-international.org/ecma-262/6.0/#sec-frompropertydescriptor +// https://262.ecma-international.org/6.0/#sec-frompropertydescriptor module.exports = function FromPropertyDescriptor(Desc) { if (typeof Desc !== 'undefined') { diff --git a/node_modules/es-abstract/2017/Get.js b/node_modules/es-abstract/2017/Get.js index 297968643f..0973152222 100644 --- a/node_modules/es-abstract/2017/Get.js +++ b/node_modules/es-abstract/2017/Get.js @@ -9,7 +9,7 @@ var inspect = require('object-inspect'); var IsPropertyKey = require('./IsPropertyKey'); var Type = require('./Type'); -// https://ecma-international.org/ecma-262/6.0/#sec-get-o-p +// https://262.ecma-international.org/6.0/#sec-get-o-p module.exports = function Get(O, P) { // 7.3.1.1 diff --git a/node_modules/es-abstract/2017/GetIterator.js b/node_modules/es-abstract/2017/GetIterator.js index 892197a232..145557da42 100644 --- a/node_modules/es-abstract/2017/GetIterator.js +++ b/node_modules/es-abstract/2017/GetIterator.js @@ -11,7 +11,7 @@ var GetMethod = require('./GetMethod'); var IsArray = require('./IsArray'); var Type = require('./Type'); -// https://ecma-international.org/ecma-262/6.0/#sec-getiterator +// https://262.ecma-international.org/6.0/#sec-getiterator module.exports = function GetIterator(obj, method) { var actualMethod = method; diff --git a/node_modules/es-abstract/2017/GetMethod.js b/node_modules/es-abstract/2017/GetMethod.js index d3775178e6..e9f2854ff3 100644 --- a/node_modules/es-abstract/2017/GetMethod.js +++ b/node_modules/es-abstract/2017/GetMethod.js @@ -8,9 +8,9 @@ var GetV = require('./GetV'); var IsCallable = require('./IsCallable'); var IsPropertyKey = require('./IsPropertyKey'); -var debug = require('object-inspect'); +var inspect = require('object-inspect'); -// https://ecma-international.org/ecma-262/6.0/#sec-getmethod +// https://262.ecma-international.org/6.0/#sec-getmethod module.exports = function GetMethod(O, P) { // 7.3.9.1 @@ -28,7 +28,7 @@ module.exports = function GetMethod(O, P) { // 7.3.9.5 if (!IsCallable(func)) { - throw new $TypeError(P + ' is not a function: ' + debug(func)); + throw new $TypeError(inspect(P) + ' is not a function: ' + inspect(func)); } // 7.3.9.6 diff --git a/node_modules/es-abstract/2017/GetOwnPropertyKeys.js b/node_modules/es-abstract/2017/GetOwnPropertyKeys.js index 40c0b367fa..043fd733bd 100644 --- a/node_modules/es-abstract/2017/GetOwnPropertyKeys.js +++ b/node_modules/es-abstract/2017/GetOwnPropertyKeys.js @@ -12,7 +12,7 @@ var keys = require('object-keys'); var esType = require('./Type'); -// https://ecma-international.org/ecma-262/6.0/#sec-getownpropertykeys +// https://262.ecma-international.org/6.0/#sec-getownpropertykeys module.exports = function GetOwnPropertyKeys(O, Type) { if (esType(O) !== 'Object') { diff --git a/node_modules/es-abstract/2017/GetPrototypeFromConstructor.js b/node_modules/es-abstract/2017/GetPrototypeFromConstructor.js index 25ee12f353..0b281ef4fe 100644 --- a/node_modules/es-abstract/2017/GetPrototypeFromConstructor.js +++ b/node_modules/es-abstract/2017/GetPrototypeFromConstructor.js @@ -10,10 +10,13 @@ var Get = require('./Get'); var IsConstructor = require('./IsConstructor'); var Type = require('./Type'); -// https://ecma-international.org/ecma-262/6.0/#sec-getprototypefromconstructor +// https://262.ecma-international.org/6.0/#sec-getprototypefromconstructor module.exports = function GetPrototypeFromConstructor(constructor, intrinsicDefaultProto) { var intrinsic = GetIntrinsic(intrinsicDefaultProto); // throws if not a valid intrinsic + if (Type(intrinsic) !== 'Object') { + throw new $TypeError('intrinsicDefaultProto must be an object'); + } if (!IsConstructor(constructor)) { throw new $TypeError('Assertion failed: `constructor` must be a constructor'); } diff --git a/node_modules/es-abstract/2017/GetSubstitution.js b/node_modules/es-abstract/2017/GetSubstitution.js index a60d421366..47e5e30e6e 100644 --- a/node_modules/es-abstract/2017/GetSubstitution.js +++ b/node_modules/es-abstract/2017/GetSubstitution.js @@ -18,18 +18,14 @@ var $charAt = callBound('String.prototype.charAt'); var $strSlice = callBound('String.prototype.slice'); var IsArray = require('./IsArray'); -var IsInteger = require('./IsInteger'); var Type = require('./Type'); -var canDistinguishSparseFromUndefined = 0 in [undefined]; // IE 6 - 8 have a bug where this returns false +var isInteger = require('../helpers/isInteger'); +var isStringOrHole = require('../helpers/isStringOrHole'); -var isStringOrHole = function (capture, index, arr) { - return Type(capture) === 'String' || (canDistinguishSparseFromUndefined ? !(index in arr) : Type(capture) === 'Undefined'); -}; - -// https://ecma-international.org/ecma-262/6.0/#sec-getsubstitution +// https://262.ecma-international.org/6.0/#sec-getsubstitution -// eslint-disable-next-line max-statements, max-params, max-lines-per-function +// eslint-disable-next-line max-statements, max-lines-per-function module.exports = function GetSubstitution(matched, str, position, captures, replacement) { if (Type(matched) !== 'String') { throw new $TypeError('Assertion failed: `matched` must be a String'); @@ -41,7 +37,7 @@ module.exports = function GetSubstitution(matched, str, position, captures, repl } var stringLength = str.length; - if (!IsInteger(position) || position < 0 || position > stringLength) { + if (!isInteger(position) || position < 0 || position > stringLength) { throw new $TypeError('Assertion failed: `position` must be a nonnegative integer, and less than or equal to the length of `string`, got ' + inspect(position)); } diff --git a/node_modules/es-abstract/2017/GetV.js b/node_modules/es-abstract/2017/GetV.js index 2dcddb3513..706a9211ab 100644 --- a/node_modules/es-abstract/2017/GetV.js +++ b/node_modules/es-abstract/2017/GetV.js @@ -4,20 +4,22 @@ var GetIntrinsic = require('get-intrinsic'); var $TypeError = GetIntrinsic('%TypeError%'); +var inspect = require('object-inspect'); + var IsPropertyKey = require('./IsPropertyKey'); -var ToObject = require('./ToObject'); +// var ToObject = require('./ToObject'); -// https://ecma-international.org/ecma-262/6.0/#sec-getv +// https://262.ecma-international.org/6.0/#sec-getv module.exports = function GetV(V, P) { // 7.3.2.1 if (!IsPropertyKey(P)) { - throw new $TypeError('Assertion failed: IsPropertyKey(P) is not true'); + throw new $TypeError('Assertion failed: IsPropertyKey(P) is not true, got ' + inspect(P)); } // 7.3.2.2-3 - var O = ToObject(V); + // var O = ToObject(V); // 7.3.2.4 - return O[P]; + return V[P]; }; diff --git a/node_modules/es-abstract/2017/GetValueFromBuffer.js b/node_modules/es-abstract/2017/GetValueFromBuffer.js new file mode 100644 index 0000000000..0a0d14dba7 --- /dev/null +++ b/node_modules/es-abstract/2017/GetValueFromBuffer.js @@ -0,0 +1,108 @@ +'use strict'; + +var GetIntrinsic = require('get-intrinsic'); + +var $SyntaxError = GetIntrinsic('%SyntaxError%'); +var $TypeError = GetIntrinsic('%TypeError%'); +var $Uint8Array = GetIntrinsic('%Uint8Array%', true); + +var callBound = require('call-bind/callBound'); + +var $slice = callBound('Array.prototype.slice'); + +var isInteger = require('../helpers/isInteger'); + +var IsDetachedBuffer = require('./IsDetachedBuffer'); +var RawBytesToNumber = require('./RawBytesToNumber'); + +var isArrayBuffer = require('is-array-buffer'); +var isSharedArrayBuffer = require('is-shared-array-buffer'); +var safeConcat = require('safe-array-concat'); + +var table50 = { + __proto__: null, + $Int8: 1, + $Uint8: 1, + $Uint8C: 1, + $Int16: 2, + $Uint16: 2, + $Int32: 4, + $Uint32: 4, + $Float32: 4, + $Float64: 8 +}; + +var defaultEndianness = require('../helpers/defaultEndianness'); + +// https://262.ecma-international.org/8.0/#sec-getvaluefrombuffer + +module.exports = function GetValueFromBuffer(arrayBuffer, byteIndex, type, isTypedArray, order) { + var isSAB = isSharedArrayBuffer(arrayBuffer); + if (!isArrayBuffer(arrayBuffer) && !isSAB) { + throw new $TypeError('Assertion failed: `arrayBuffer` must be an ArrayBuffer or a SharedArrayBuffer'); + } + + if (!isInteger(byteIndex)) { + throw new $TypeError('Assertion failed: `byteIndex` must be an integer'); + } + + if (typeof type !== 'string') { + throw new $TypeError('Assertion failed: `type` must be a string'); + } + + if (typeof isTypedArray !== 'boolean') { + throw new $TypeError('Assertion failed: `isTypedArray` must be a boolean'); + } + + if (typeof order !== 'string') { + throw new $TypeError('Assertion failed: `order` must be a string'); + } + + if (arguments.length > 5 && typeof arguments[5] !== 'boolean') { + throw new $TypeError('Assertion failed: `isLittleEndian` must be a boolean, if present'); + } + + if (IsDetachedBuffer(arrayBuffer)) { + throw new $TypeError('Assertion failed: `arrayBuffer` is detached'); // step 1 + } + + // 2. Assert: There are sufficient bytes in arrayBuffer starting at byteIndex to represent a value of type. + + if (byteIndex < 0) { + throw new $TypeError('Assertion failed: `byteIndex` must be non-negative'); // step 3 + } + + // 4. Let block be arrayBuffer.[[ArrayBufferData]]. + + var elementSize = table50['$' + type]; // step 5 + if (!elementSize) { + throw new $TypeError('Assertion failed: `type` must be one of "Int8", "Uint8", "Uint8C", "Int16", "Uint16", "Int32", "Uint32", "Float32", or "Float64"'); + } + + var rawValue; + if (isSAB) { // step 6 + /* + a. Let execution be the [[CandidateExecution]] field of the surrounding agent's Agent Record. + b. Let eventList be the [[EventList]] field of the element in execution.[[EventLists]] whose [[AgentSignifier]] is AgentSignifier(). + c. If isTypedArray is true and type is "Int8", "Uint8", "Int16", "Uint16", "Int32", or "Uint32", let noTear be true; otherwise let noTear be false. + d. Let rawValue be a List of length elementSize of nondeterministically chosen byte values. + e. NOTE: In implementations, rawValue is the result of a non-atomic or atomic read instruction on the underlying hardware. The nondeterminism is a semantic prescription of the memory model to describe observable behaviour of hardware with weak consistency. + f. Let readEvent be ReadSharedMemory{ [[Order]]: order, [[NoTear]]: noTear, [[Block]]: block, [[ByteIndex]]: byteIndex, [[ElementSize]]: elementSize }. + g. Append readEvent to eventList. + h. Append Chosen Value Record { [[Event]]: readEvent, [[ChosenValue]]: rawValue } to execution.[[ChosenValues]]. + */ + throw new $SyntaxError('TODO: support SharedArrayBuffers'); + } else { + // 7. Let rawValue be a List of elementSize containing, in order, the elementSize sequence of bytes starting with block[byteIndex]. + rawValue = $slice(new $Uint8Array(arrayBuffer, byteIndex), 0, elementSize); // step 6 + } + + // 8. If isLittleEndian is not present, set isLittleEndian to either true or false. The choice is implementation dependent and should be the alternative that is most efficient for the implementation. An implementation must use the same value each time this step is executed and the same value must be used for the corresponding step in the SetValueInBuffer abstract operation. + var isLittleEndian = arguments.length > 5 ? arguments[5] : defaultEndianness === 'little'; // step 8 + + var bytes = isLittleEndian + ? $slice(safeConcat([0, 0, 0, 0, 0, 0, 0, 0], rawValue), -elementSize) + : $slice(safeConcat(rawValue, [0, 0, 0, 0, 0, 0, 0, 0]), 0, elementSize); + + return RawBytesToNumber(type, bytes, isLittleEndian); +}; diff --git a/node_modules/es-abstract/2017/HasOwnProperty.js b/node_modules/es-abstract/2017/HasOwnProperty.js index 04d28495f9..1f29ba4df1 100644 --- a/node_modules/es-abstract/2017/HasOwnProperty.js +++ b/node_modules/es-abstract/2017/HasOwnProperty.js @@ -9,7 +9,7 @@ var has = require('has'); var IsPropertyKey = require('./IsPropertyKey'); var Type = require('./Type'); -// https://ecma-international.org/ecma-262/6.0/#sec-hasownproperty +// https://262.ecma-international.org/6.0/#sec-hasownproperty module.exports = function HasOwnProperty(O, P) { if (Type(O) !== 'Object') { diff --git a/node_modules/es-abstract/2017/HasProperty.js b/node_modules/es-abstract/2017/HasProperty.js index b341654e7c..91476d208b 100644 --- a/node_modules/es-abstract/2017/HasProperty.js +++ b/node_modules/es-abstract/2017/HasProperty.js @@ -7,7 +7,7 @@ var $TypeError = GetIntrinsic('%TypeError%'); var IsPropertyKey = require('./IsPropertyKey'); var Type = require('./Type'); -// https://ecma-international.org/ecma-262/6.0/#sec-hasproperty +// https://262.ecma-international.org/6.0/#sec-hasproperty module.exports = function HasProperty(O, P) { if (Type(O) !== 'Object') { diff --git a/node_modules/es-abstract/2017/InstanceofOperator.js b/node_modules/es-abstract/2017/InstanceofOperator.js index a3c4d23755..4a34d0c20c 100644 --- a/node_modules/es-abstract/2017/InstanceofOperator.js +++ b/node_modules/es-abstract/2017/InstanceofOperator.js @@ -13,7 +13,7 @@ var OrdinaryHasInstance = require('./OrdinaryHasInstance'); var ToBoolean = require('./ToBoolean'); var Type = require('./Type'); -// https://ecma-international.org/ecma-262/6.0/#sec-instanceofoperator +// https://262.ecma-international.org/6.0/#sec-instanceofoperator module.exports = function InstanceofOperator(O, C) { if (Type(O) !== 'Object') { diff --git a/node_modules/es-abstract/2017/Invoke.js b/node_modules/es-abstract/2017/Invoke.js index d4214ee516..084e5e2825 100644 --- a/node_modules/es-abstract/2017/Invoke.js +++ b/node_modules/es-abstract/2017/Invoke.js @@ -9,7 +9,7 @@ var IsArray = require('./IsArray'); var GetV = require('./GetV'); var IsPropertyKey = require('./IsPropertyKey'); -// https://ecma-international.org/ecma-262/6.0/#sec-invoke +// https://262.ecma-international.org/6.0/#sec-invoke module.exports = function Invoke(O, P) { if (!IsPropertyKey(P)) { diff --git a/node_modules/es-abstract/2017/IsAccessorDescriptor.js b/node_modules/es-abstract/2017/IsAccessorDescriptor.js index 78563e7ecc..da64a302ac 100644 --- a/node_modules/es-abstract/2017/IsAccessorDescriptor.js +++ b/node_modules/es-abstract/2017/IsAccessorDescriptor.js @@ -2,11 +2,11 @@ var has = require('has'); -var assertRecord = require('../helpers/assertRecord'); - var Type = require('./Type'); -// https://ecma-international.org/ecma-262/6.0/#sec-isaccessordescriptor +var assertRecord = require('../helpers/assertRecord'); + +// https://262.ecma-international.org/5.1/#sec-8.10.1 module.exports = function IsAccessorDescriptor(Desc) { if (typeof Desc === 'undefined') { diff --git a/node_modules/es-abstract/2017/IsArray.js b/node_modules/es-abstract/2017/IsArray.js index 600ffa0028..c2c48c1f23 100644 --- a/node_modules/es-abstract/2017/IsArray.js +++ b/node_modules/es-abstract/2017/IsArray.js @@ -1,4 +1,4 @@ 'use strict'; -// https://ecma-international.org/ecma-262/6.0/#sec-isarray +// https://262.ecma-international.org/6.0/#sec-isarray module.exports = require('../helpers/IsArray'); diff --git a/node_modules/es-abstract/2017/IsConcatSpreadable.js b/node_modules/es-abstract/2017/IsConcatSpreadable.js index 141b33414d..10e1eab216 100644 --- a/node_modules/es-abstract/2017/IsConcatSpreadable.js +++ b/node_modules/es-abstract/2017/IsConcatSpreadable.js @@ -9,7 +9,7 @@ var IsArray = require('./IsArray'); var ToBoolean = require('./ToBoolean'); var Type = require('./Type'); -// https://ecma-international.org/ecma-262/6.0/#sec-isconcatspreadable +// https://262.ecma-international.org/6.0/#sec-isconcatspreadable module.exports = function IsConcatSpreadable(O) { if (Type(O) !== 'Object') { diff --git a/node_modules/es-abstract/2017/IsConstructor.js b/node_modules/es-abstract/2017/IsConstructor.js index fe626e1834..62ac47f6a3 100644 --- a/node_modules/es-abstract/2017/IsConstructor.js +++ b/node_modules/es-abstract/2017/IsConstructor.js @@ -12,7 +12,7 @@ try { DefinePropertyOrThrow = null; } -// https://ecma-international.org/ecma-262/6.0/#sec-isconstructor +// https://262.ecma-international.org/6.0/#sec-isconstructor if (DefinePropertyOrThrow && $construct) { var isConstructorMarker = {}; diff --git a/node_modules/es-abstract/2017/IsDataDescriptor.js b/node_modules/es-abstract/2017/IsDataDescriptor.js index 00d14a60eb..9db441e965 100644 --- a/node_modules/es-abstract/2017/IsDataDescriptor.js +++ b/node_modules/es-abstract/2017/IsDataDescriptor.js @@ -2,11 +2,11 @@ var has = require('has'); -var assertRecord = require('../helpers/assertRecord'); - var Type = require('./Type'); -// https://ecma-international.org/ecma-262/6.0/#sec-isdatadescriptor +var assertRecord = require('../helpers/assertRecord'); + +// https://262.ecma-international.org/5.1/#sec-8.10.2 module.exports = function IsDataDescriptor(Desc) { if (typeof Desc === 'undefined') { diff --git a/node_modules/es-abstract/2017/IsDetachedBuffer.js b/node_modules/es-abstract/2017/IsDetachedBuffer.js index 4b373e9ab5..01529bca2c 100644 --- a/node_modules/es-abstract/2017/IsDetachedBuffer.js +++ b/node_modules/es-abstract/2017/IsDetachedBuffer.js @@ -4,10 +4,7 @@ var GetIntrinsic = require('get-intrinsic'); var $TypeError = GetIntrinsic('%TypeError%'); -var callBound = require('call-bind/callBound'); - -var $byteLength = callBound('%ArrayBuffer.prototype.byteLength%', true) - || function byteLength(ab) { return ab.byteLength; }; // in node < 0.11, byteLength is an own nonconfigurable property +var $byteLength = require('array-buffer-byte-length'); var isArrayBuffer = require('is-array-buffer'); @@ -23,7 +20,7 @@ module.exports = function IsDetachedBuffer(arrayBuffer) { try { new global[availableTypedArrays[0]](arrayBuffer); // eslint-disable-line no-new } catch (error) { - return error.name === 'TypeError'; + return !!error && error.name === 'TypeError'; } } return false; diff --git a/node_modules/es-abstract/2017/IsExtensible.js b/node_modules/es-abstract/2017/IsExtensible.js index d6e3638401..aa19b914c2 100644 --- a/node_modules/es-abstract/2017/IsExtensible.js +++ b/node_modules/es-abstract/2017/IsExtensible.js @@ -7,7 +7,7 @@ var $isExtensible = GetIntrinsic('%Object.isExtensible%', true); var isPrimitive = require('../helpers/isPrimitive'); -// https://ecma-international.org/ecma-262/6.0/#sec-isextensible-o +// https://262.ecma-international.org/6.0/#sec-isextensible-o module.exports = $preventExtensions ? function IsExtensible(obj) { diff --git a/node_modules/es-abstract/2017/IsGenericDescriptor.js b/node_modules/es-abstract/2017/IsGenericDescriptor.js index 95b1d353c5..d43bec2b35 100644 --- a/node_modules/es-abstract/2017/IsGenericDescriptor.js +++ b/node_modules/es-abstract/2017/IsGenericDescriptor.js @@ -6,7 +6,7 @@ var IsAccessorDescriptor = require('./IsAccessorDescriptor'); var IsDataDescriptor = require('./IsDataDescriptor'); var Type = require('./Type'); -// https://ecma-international.org/ecma-262/6.0/#sec-isgenericdescriptor +// https://262.ecma-international.org/6.0/#sec-isgenericdescriptor module.exports = function IsGenericDescriptor(Desc) { if (typeof Desc === 'undefined') { diff --git a/node_modules/es-abstract/2017/IsInteger.js b/node_modules/es-abstract/2017/IsInteger.js index f4d1a2a7c5..e3d25f38e3 100644 --- a/node_modules/es-abstract/2017/IsInteger.js +++ b/node_modules/es-abstract/2017/IsInteger.js @@ -1,17 +1,9 @@ 'use strict'; -var abs = require('./abs'); -var floor = require('./floor'); +var isInteger = require('../helpers/isInteger'); -var $isNaN = require('../helpers/isNaN'); -var $isFinite = require('../helpers/isFinite'); - -// https://ecma-international.org/ecma-262/6.0/#sec-isinteger +// https://262.ecma-international.org/6.0/#sec-isinteger module.exports = function IsInteger(argument) { - if (typeof argument !== 'number' || $isNaN(argument) || !$isFinite(argument)) { - return false; - } - var absValue = abs(argument); - return floor(absValue) === absValue; + return isInteger(argument); }; diff --git a/node_modules/es-abstract/2017/IsPromise.js b/node_modules/es-abstract/2017/IsPromise.js index a551ae0c8b..411539b081 100644 --- a/node_modules/es-abstract/2017/IsPromise.js +++ b/node_modules/es-abstract/2017/IsPromise.js @@ -6,7 +6,7 @@ var $PromiseThen = callBound('Promise.prototype.then', true); var Type = require('./Type'); -// https://ecma-international.org/ecma-262/6.0/#sec-ispromise +// https://262.ecma-international.org/6.0/#sec-ispromise module.exports = function IsPromise(x) { if (Type(x) !== 'Object') { diff --git a/node_modules/es-abstract/2017/IsPropertyKey.js b/node_modules/es-abstract/2017/IsPropertyKey.js index f43ab581c7..aaeb6f9b6f 100644 --- a/node_modules/es-abstract/2017/IsPropertyKey.js +++ b/node_modules/es-abstract/2017/IsPropertyKey.js @@ -1,6 +1,6 @@ 'use strict'; -// https://ecma-international.org/ecma-262/6.0/#sec-ispropertykey +// https://262.ecma-international.org/6.0/#sec-ispropertykey module.exports = function IsPropertyKey(argument) { return typeof argument === 'string' || typeof argument === 'symbol'; diff --git a/node_modules/es-abstract/2017/IsRegExp.js b/node_modules/es-abstract/2017/IsRegExp.js index e1054813f1..33d983dc8d 100644 --- a/node_modules/es-abstract/2017/IsRegExp.js +++ b/node_modules/es-abstract/2017/IsRegExp.js @@ -8,7 +8,7 @@ var hasRegExpMatcher = require('is-regex'); var ToBoolean = require('./ToBoolean'); -// https://ecma-international.org/ecma-262/6.0/#sec-isregexp +// https://262.ecma-international.org/6.0/#sec-isregexp module.exports = function IsRegExp(argument) { if (!argument || typeof argument !== 'object') { diff --git a/node_modules/es-abstract/2017/IsWordChar.js b/node_modules/es-abstract/2017/IsWordChar.js new file mode 100644 index 0000000000..5d61804925 --- /dev/null +++ b/node_modules/es-abstract/2017/IsWordChar.js @@ -0,0 +1,48 @@ +'use strict'; + +var GetIntrinsic = require('get-intrinsic'); + +var $TypeError = GetIntrinsic('%TypeError%'); + +var callBound = require('call-bind/callBound'); + +var $indexOf = callBound('String.prototype.indexOf'); + +var IsArray = require('./IsArray'); +var IsInteger = require('./IsInteger'); +var Type = require('./Type'); +var WordCharacters = require('./WordCharacters'); + +var every = require('../helpers/every'); + +var isChar = function isChar(c) { + return typeof c === 'string'; +}; + +// https://262.ecma-international.org/8.0/#sec-runtime-semantics-iswordchar-abstract-operation + +// note: prior to ES2023, this AO erroneously omitted the latter of its arguments. +module.exports = function IsWordChar(e, InputLength, Input, IgnoreCase, Unicode) { + if (!IsInteger(e)) { + throw new $TypeError('Assertion failed: `e` must be an integer'); + } + if (!IsInteger(InputLength)) { + throw new $TypeError('Assertion failed: `InputLength` must be an integer'); + } + if (!IsArray(Input) || !every(Input, isChar)) { + throw new $TypeError('Assertion failed: `Input` must be a List of characters'); + } + if (Type(IgnoreCase) !== 'Boolean' || Type(Unicode) !== 'Boolean') { + throw new $TypeError('Assertion failed: `IgnoreCase` and `Unicode` must be booleans'); + } + + if (e === -1 || e === InputLength) { + return false; // step 1 + } + + var c = Input[e]; // step 2 + + var wordChars = WordCharacters(IgnoreCase, Unicode); + + return $indexOf(wordChars, c) > -1; // steps 3-4 +}; diff --git a/node_modules/es-abstract/2017/IteratorClose.js b/node_modules/es-abstract/2017/IteratorClose.js index f703ea632f..7c1076082e 100644 --- a/node_modules/es-abstract/2017/IteratorClose.js +++ b/node_modules/es-abstract/2017/IteratorClose.js @@ -10,7 +10,7 @@ var GetMethod = require('./GetMethod'); var IsCallable = require('./IsCallable'); var Type = require('./Type'); -// https://ecma-international.org/ecma-262/6.0/#sec-iteratorclose +// https://262.ecma-international.org/6.0/#sec-iteratorclose module.exports = function IteratorClose(iterator, completion) { if (Type(iterator) !== 'Object') { diff --git a/node_modules/es-abstract/2017/IteratorComplete.js b/node_modules/es-abstract/2017/IteratorComplete.js index ed4efa37d5..29f5f75fea 100644 --- a/node_modules/es-abstract/2017/IteratorComplete.js +++ b/node_modules/es-abstract/2017/IteratorComplete.js @@ -8,7 +8,7 @@ var Get = require('./Get'); var ToBoolean = require('./ToBoolean'); var Type = require('./Type'); -// https://ecma-international.org/ecma-262/6.0/#sec-iteratorcomplete +// https://262.ecma-international.org/6.0/#sec-iteratorcomplete module.exports = function IteratorComplete(iterResult) { if (Type(iterResult) !== 'Object') { diff --git a/node_modules/es-abstract/2017/IteratorNext.js b/node_modules/es-abstract/2017/IteratorNext.js index cf80655b93..d84d66edb5 100644 --- a/node_modules/es-abstract/2017/IteratorNext.js +++ b/node_modules/es-abstract/2017/IteratorNext.js @@ -7,7 +7,7 @@ var $TypeError = GetIntrinsic('%TypeError%'); var Invoke = require('./Invoke'); var Type = require('./Type'); -// https://ecma-international.org/ecma-262/6.0/#sec-iteratornext +// https://262.ecma-international.org/6.0/#sec-iteratornext module.exports = function IteratorNext(iterator, value) { var result = Invoke(iterator, 'next', arguments.length < 2 ? [] : [value]); diff --git a/node_modules/es-abstract/2017/IteratorStep.js b/node_modules/es-abstract/2017/IteratorStep.js index 41b9d1b251..85bcd95c04 100644 --- a/node_modules/es-abstract/2017/IteratorStep.js +++ b/node_modules/es-abstract/2017/IteratorStep.js @@ -3,7 +3,7 @@ var IteratorComplete = require('./IteratorComplete'); var IteratorNext = require('./IteratorNext'); -// https://ecma-international.org/ecma-262/6.0/#sec-iteratorstep +// https://262.ecma-international.org/6.0/#sec-iteratorstep module.exports = function IteratorStep(iterator) { var result = IteratorNext(iterator); diff --git a/node_modules/es-abstract/2017/IteratorValue.js b/node_modules/es-abstract/2017/IteratorValue.js index d15d8aebbf..e9b16daed5 100644 --- a/node_modules/es-abstract/2017/IteratorValue.js +++ b/node_modules/es-abstract/2017/IteratorValue.js @@ -7,7 +7,7 @@ var $TypeError = GetIntrinsic('%TypeError%'); var Get = require('./Get'); var Type = require('./Type'); -// https://ecma-international.org/ecma-262/6.0/#sec-iteratorvalue +// https://262.ecma-international.org/6.0/#sec-iteratorvalue module.exports = function IteratorValue(iterResult) { if (Type(iterResult) !== 'Object') { diff --git a/node_modules/es-abstract/2017/NewPromiseCapability.js b/node_modules/es-abstract/2017/NewPromiseCapability.js new file mode 100644 index 0000000000..e30b08811d --- /dev/null +++ b/node_modules/es-abstract/2017/NewPromiseCapability.js @@ -0,0 +1,36 @@ +'use strict'; + +var GetIntrinsic = require('get-intrinsic'); + +var $TypeError = GetIntrinsic('%TypeError%'); + +var IsCallable = require('es-abstract/2022/IsCallable'); +var IsConstructor = require('es-abstract/2022/IsConstructor'); + +// https://262.ecma-international.org/6.0/#sec-newpromisecapability + +module.exports = function NewPromiseCapability(C) { + if (!IsConstructor(C)) { + throw new $TypeError('C must be a constructor'); // step 1 + } + + var resolvingFunctions = { '[[Resolve]]': void undefined, '[[Reject]]': void undefined }; // step 3 + + var promise = new C(function (resolve, reject) { // steps 4-5 + if (typeof resolvingFunctions['[[Resolve]]'] !== 'undefined' || typeof resolvingFunctions['[[Reject]]'] !== 'undefined') { + throw new $TypeError('executor has already been called'); // step 4.a, 4.b + } + resolvingFunctions['[[Resolve]]'] = resolve; // step 4.c + resolvingFunctions['[[Reject]]'] = reject; // step 4.d + }); // step 4-6 + + if (!IsCallable(resolvingFunctions['[[Resolve]]']) || !IsCallable(resolvingFunctions['[[Reject]]'])) { + throw new $TypeError('executor must provide valid resolve and reject functions'); // steps 7-8 + } + + return { + '[[Promise]]': promise, + '[[Resolve]]': resolvingFunctions['[[Resolve]]'], + '[[Reject]]': resolvingFunctions['[[Reject]]'] + }; // step 9 +}; diff --git a/node_modules/es-abstract/2017/NumberToRawBytes.js b/node_modules/es-abstract/2017/NumberToRawBytes.js index b26cd22fde..c85e971962 100644 --- a/node_modules/es-abstract/2017/NumberToRawBytes.js +++ b/node_modules/es-abstract/2017/NumberToRawBytes.js @@ -2,23 +2,8 @@ var GetIntrinsic = require('get-intrinsic'); -var $floor = GetIntrinsic('%Math.floor%'); -var $log = GetIntrinsic('%Math.log%'); -var $log2E = GetIntrinsic('%Math.LOG2E%'); -var $log2 = GetIntrinsic('%Math.log2%', true) || function log2(x) { - return $log(x) * $log2E; -}; -var $parseInt = GetIntrinsic('%parseInt%'); -var $pow = GetIntrinsic('%Math.pow%'); var $TypeError = GetIntrinsic('%TypeError%'); -var callBound = require('call-bind/callBound'); - -var $reverse = callBound('Array.prototype.reverse'); -var $numberToString = callBound('Number.prototype.toString'); -var $strSlice = callBound('String.prototype.slice'); - -var abs = require('./abs'); var hasOwnProperty = require('./HasOwnProperty'); var ToInt16 = require('./ToInt16'); var ToInt32 = require('./ToInt32'); @@ -29,8 +14,9 @@ var ToUint8 = require('./ToUint8'); var ToUint8Clamp = require('./ToUint8Clamp'); var Type = require('./Type'); -var isNaN = require('../helpers/isNaN'); -var isFinite = require('../helpers/isFinite'); +var valueToFloat32Bytes = require('../helpers/valueToFloat32Bytes'); +var valueToFloat64Bytes = require('../helpers/valueToFloat64Bytes'); +var integerToNBytes = require('../helpers/integerToNBytes'); var keys = require('object-keys'); @@ -72,105 +58,10 @@ module.exports = function NumberToRawBytes(type, value, isLittleEndian) { throw new $TypeError('Assertion failed: `isLittleEndian` must be a Boolean'); } - var rawBytes = []; - var exponent; - if (type === 'Float32') { // step 1 - if (isNaN(value)) { - return isLittleEndian ? [0, 0, 192, 127] : [127, 192, 0, 0]; // hardcoded - } - - var leastSig; - - if (value === 0) { - leastSig = Object.is(value, -0) ? 0x80 : 0; - return isLittleEndian ? [0, 0, 0, leastSig] : [leastSig, 0, 0, 0]; - } - - if (!isFinite(value)) { - leastSig = value < 0 ? 255 : 127; - return isLittleEndian ? [0, 0, 128, leastSig] : [leastSig, 128, 0, 0]; - } - - var sign = value < 0 ? 1 : 0; - value = abs(value); // eslint-disable-line no-param-reassign - - exponent = 0; - while (value >= 2) { - exponent += 1; - value /= 2; // eslint-disable-line no-param-reassign - } - - while (value < 1) { - exponent -= 1; - value *= 2; // eslint-disable-line no-param-reassign - } - - var mantissa = value - 1; - mantissa *= $pow(2, 23); - mantissa = $floor(mantissa); - - exponent += 127; - exponent = exponent << 23; - - var result = sign << 31; - result |= exponent; - result |= mantissa; - - var byte0 = result & 255; - result = result >> 8; - var byte1 = result & 255; - result = result >> 8; - var byte2 = result & 255; - result = result >> 8; - var byte3 = result & 255; - - if (isLittleEndian) { - return [byte0, byte1, byte2, byte3]; - } - return [byte3, byte2, byte1, byte0]; + return valueToFloat32Bytes(value, isLittleEndian); } else if (type === 'Float64') { // step 2 - if (value === 0) { - leastSig = Object.is(value, -0) ? 0x80 : 0; - return isLittleEndian ? [0, 0, 0, 0, 0, 0, 0, leastSig] : [leastSig, 0, 0, 0, 0, 0, 0, 0]; - } - if (isNaN(value)) { - return isLittleEndian ? [0, 0, 0, 0, 0, 0, 248, 127] : [127, 248, 0, 0, 0, 0, 0, 0]; - } - if (!isFinite(value)) { - var infBytes = value < 0 ? [0, 0, 0, 0, 0, 0, 240, 255] : [0, 0, 0, 0, 0, 0, 240, 127]; - return isLittleEndian ? infBytes : $reverse(infBytes); - } - - var isNegative = value < 0; - if (isNegative) { value = -value; } // eslint-disable-line no-param-reassign - - exponent = $floor($log2(value)); - var significand = (value / $pow(2, exponent)) - 1; - - var bitString = ''; - for (var i = 0; i < 52; i++) { - significand *= 2; - if (significand >= 1) { - bitString += '1'; - significand -= 1; - } else { - bitString += '0'; - } - } - - exponent += 1023; - var exponentBits = $numberToString(exponent, 2); - while (exponentBits.length < 11) { exponentBits = '0' + exponentBits; } - - var fullBitString = (isNegative ? '1' : '0') + exponentBits + bitString; - while (fullBitString.length < 64) { fullBitString = '0' + fullBitString; } - - for (i = 0; i < 8; i++) { - rawBytes[i] = $parseInt($strSlice(fullBitString, i * 8, (i + 1) * 8), 2); - } - - return isLittleEndian ? $reverse(rawBytes) : rawBytes; + return valueToFloat64Bytes(value, isLittleEndian); } // step 3 var n = TypeToSizes[type]; // step 3.a @@ -179,20 +70,5 @@ module.exports = function NumberToRawBytes(type, value, isLittleEndian) { var intValue = convOp(value); // step 3.c - /* - if (intValue >= 0) { // step 3.d - // Let rawBytes be a List containing the n-byte binary encoding of intValue. If isLittleEndian is false, the bytes are ordered in big endian order. Otherwise, the bytes are ordered in little endian order. - } else { // step 3.e - // Let rawBytes be a List containing the n-byte binary 2's complement encoding of intValue. If isLittleEndian is false, the bytes are ordered in big endian order. Otherwise, the bytes are ordered in little endian order. - } - */ - if (intValue < 0) { - intValue = intValue >>> 0; - } - for (i = 0; i < n; i++) { - rawBytes[isLittleEndian ? i : n - 1 - i] = intValue & 0xff; - intValue = intValue >> 8; - } - - return rawBytes; // step 4 + return integerToNBytes(intValue, n, isLittleEndian); // step 3.d, 3.e, 4 }; diff --git a/node_modules/es-abstract/2017/ObjectCreate.js b/node_modules/es-abstract/2017/ObjectCreate.js index 1f4bb16af4..d7d2d04d92 100644 --- a/node_modules/es-abstract/2017/ObjectCreate.js +++ b/node_modules/es-abstract/2017/ObjectCreate.js @@ -15,7 +15,7 @@ var SLOT = require('internal-slot'); var hasProto = require('has-proto')(); -// https://ecma-international.org/ecma-262/6.0/#sec-objectcreate +// https://262.ecma-international.org/6.0/#sec-objectcreate module.exports = function ObjectCreate(proto, internalSlotsList) { if (proto !== null && Type(proto) !== 'Object') { diff --git a/node_modules/es-abstract/2017/ObjectDefineProperties.js b/node_modules/es-abstract/2017/ObjectDefineProperties.js index f096f1edee..b47603487c 100644 --- a/node_modules/es-abstract/2017/ObjectDefineProperties.js +++ b/node_modules/es-abstract/2017/ObjectDefineProperties.js @@ -3,7 +3,6 @@ var callBound = require('call-bind/callBound'); var DefinePropertyOrThrow = require('./DefinePropertyOrThrow'); -var FromPropertyDescriptor = require('./FromPropertyDescriptor'); var Get = require('./Get'); var ToObject = require('./ToObject'); var ToPropertyDescriptor = require('./ToPropertyDescriptor'); @@ -32,7 +31,6 @@ module.exports = function ObjectDefineProperties(O, Properties) { forEach(descriptors, function (pair) { // step 5 var P = pair[0]; // step 5.a var desc = pair[1]; // step 5.b - desc = FromPropertyDescriptor(desc); // TODO: remove this once DefinePropertyOrThrow is fixed DefinePropertyOrThrow(O, P, desc); // step 5.c }); diff --git a/node_modules/es-abstract/2017/OrdinaryCreateFromConstructor.js b/node_modules/es-abstract/2017/OrdinaryCreateFromConstructor.js index e2a299eaa9..ede44ed6b7 100644 --- a/node_modules/es-abstract/2017/OrdinaryCreateFromConstructor.js +++ b/node_modules/es-abstract/2017/OrdinaryCreateFromConstructor.js @@ -7,7 +7,7 @@ var GetPrototypeFromConstructor = require('./GetPrototypeFromConstructor'); var IsArray = require('./IsArray'); var ObjectCreate = require('./ObjectCreate'); -// https://ecma-international.org/ecma-262/6.0/#sec-ordinarycreatefromconstructor +// https://262.ecma-international.org/6.0/#sec-ordinarycreatefromconstructor module.exports = function OrdinaryCreateFromConstructor(constructor, intrinsicDefaultProto) { GetIntrinsic(intrinsicDefaultProto); // throws if not a valid intrinsic diff --git a/node_modules/es-abstract/2017/OrdinaryDefineOwnProperty.js b/node_modules/es-abstract/2017/OrdinaryDefineOwnProperty.js index 34f029f7e5..70cd4fe58d 100644 --- a/node_modules/es-abstract/2017/OrdinaryDefineOwnProperty.js +++ b/node_modules/es-abstract/2017/OrdinaryDefineOwnProperty.js @@ -17,7 +17,7 @@ var SameValue = require('./SameValue'); var Type = require('./Type'); var ValidateAndApplyPropertyDescriptor = require('./ValidateAndApplyPropertyDescriptor'); -// https://ecma-international.org/ecma-262/6.0/#sec-ordinarydefineownproperty +// https://262.ecma-international.org/6.0/#sec-ordinarydefineownproperty module.exports = function OrdinaryDefineOwnProperty(O, P, Desc) { if (Type(O) !== 'Object') { diff --git a/node_modules/es-abstract/2017/OrdinaryGetOwnProperty.js b/node_modules/es-abstract/2017/OrdinaryGetOwnProperty.js index fd8035acb9..c23abe1103 100644 --- a/node_modules/es-abstract/2017/OrdinaryGetOwnProperty.js +++ b/node_modules/es-abstract/2017/OrdinaryGetOwnProperty.js @@ -17,7 +17,7 @@ var IsRegExp = require('./IsRegExp'); var ToPropertyDescriptor = require('./ToPropertyDescriptor'); var Type = require('./Type'); -// https://ecma-international.org/ecma-262/6.0/#sec-ordinarygetownproperty +// https://262.ecma-international.org/6.0/#sec-ordinarygetownproperty module.exports = function OrdinaryGetOwnProperty(O, P) { if (Type(O) !== 'Object') { diff --git a/node_modules/es-abstract/2017/OrdinaryHasInstance.js b/node_modules/es-abstract/2017/OrdinaryHasInstance.js index 85a240ca2f..996a50e070 100644 --- a/node_modules/es-abstract/2017/OrdinaryHasInstance.js +++ b/node_modules/es-abstract/2017/OrdinaryHasInstance.js @@ -8,10 +8,10 @@ var Get = require('./Get'); var IsCallable = require('./IsCallable'); var Type = require('./Type'); -// https://ecma-international.org/ecma-262/6.0/#sec-ordinaryhasinstance +// https://262.ecma-international.org/6.0/#sec-ordinaryhasinstance module.exports = function OrdinaryHasInstance(C, O) { - if (IsCallable(C) === false) { + if (!IsCallable(C)) { return false; } if (Type(O) !== 'Object') { diff --git a/node_modules/es-abstract/2017/OrdinaryHasProperty.js b/node_modules/es-abstract/2017/OrdinaryHasProperty.js index dd09ca3b1b..27e7da33ad 100644 --- a/node_modules/es-abstract/2017/OrdinaryHasProperty.js +++ b/node_modules/es-abstract/2017/OrdinaryHasProperty.js @@ -7,7 +7,7 @@ var $TypeError = GetIntrinsic('%TypeError%'); var IsPropertyKey = require('./IsPropertyKey'); var Type = require('./Type'); -// https://ecma-international.org/ecma-262/6.0/#sec-ordinaryhasproperty +// https://262.ecma-international.org/6.0/#sec-ordinaryhasproperty module.exports = function OrdinaryHasProperty(O, P) { if (Type(O) !== 'Object') { diff --git a/node_modules/es-abstract/2017/QuoteJSONString.js b/node_modules/es-abstract/2017/QuoteJSONString.js index 884afef25d..7dabf54bf2 100644 --- a/node_modules/es-abstract/2017/QuoteJSONString.js +++ b/node_modules/es-abstract/2017/QuoteJSONString.js @@ -15,7 +15,7 @@ var $strSplit = callBound('String.prototype.split'); var Type = require('./Type'); -// https://ecma-international.org/ecma-262/6.0/#sec-quotejsonstring +// https://262.ecma-international.org/6.0/#sec-quotejsonstring var escapes = { '\u0008': 'b', diff --git a/node_modules/es-abstract/2017/RawBytesToNumber.js b/node_modules/es-abstract/2017/RawBytesToNumber.js index 5811dae404..652471623d 100644 --- a/node_modules/es-abstract/2017/RawBytesToNumber.js +++ b/node_modules/es-abstract/2017/RawBytesToNumber.js @@ -3,7 +3,6 @@ var GetIntrinsic = require('get-intrinsic'); var callBound = require('call-bind/callBound'); -var $pow = GetIntrinsic('%Math.pow%'); var $RangeError = GetIntrinsic('%RangeError%'); var $TypeError = GetIntrinsic('%TypeError%'); @@ -15,6 +14,9 @@ var hasOwnProperty = require('./HasOwnProperty'); var IsArray = require('./IsArray'); var Type = require('./Type'); +var bytesAsFloat32 = require('../helpers/bytesAsFloat32'); +var bytesAsFloat64 = require('../helpers/bytesAsFloat64'); +var bytesAsInteger = require('../helpers/bytesAsInteger'); var every = require('../helpers/every'); var isByteValue = require('../helpers/isByteValue'); @@ -57,89 +59,16 @@ module.exports = function RawBytesToNumber(type, rawBytes, isLittleEndian) { // eslint-disable-next-line no-param-reassign rawBytes = $slice(rawBytes, 0, elementSize); if (!isLittleEndian) { - // eslint-disable-next-line no-param-reassign - rawBytes = $reverse(rawBytes); // step 2 + $reverse(rawBytes); // step 2 } - /* eslint no-redeclare: 1 */ if (type === 'Float32') { // step 3 - /* - Let value be the byte elements of rawBytes concatenated and interpreted as a little-endian bit string encoding of an IEEE 754-2008 binary32 value. -If value is an IEEE 754-2008 binary32 NaN value, return the NaN Number value. -Return the Number value that corresponds to value. - */ - var sign = (rawBytes[3] & 0x80) >> 7; // first bit - var exponent = ((rawBytes[3] & 0x7F) << 1) // 7 bits from index 3 - | ((rawBytes[2] & 0x80) >> 7); // 1 bit from index 2 - var mantissa = ((rawBytes[2] & 0x7F) << 16) // 7 bits from index 2 - | (rawBytes[1] << 8) // 8 bits from index 1 - | rawBytes[0]; // 8 bits from index 0 - - if (exponent === 0 && mantissa === 0) { - return sign === 0 ? 0 : -0; - } - if (exponent === 0xFF && mantissa === 0) { - return sign === 0 ? Infinity : -Infinity; - } - if (exponent === 0xFF && mantissa !== 0) { - return NaN; - } - - exponent -= 127; // subtract the bias - - // return $pow(-1, sign) * mantissa / $pow(2, 23) * $pow(2, exponent); - // return $pow(-1, sign) * (mantissa + 0x1000000) * $pow(2, exponent - 23); - return $pow(-1, sign) * (1 + (mantissa / $pow(2, 23))) * $pow(2, exponent); + return bytesAsFloat32(rawBytes); } if (type === 'Float64') { // step 4 - /* - Let value be the byte elements of rawBytes concatenated and interpreted as a little-endian bit string encoding of an IEEE 754-2008 binary64 value. -If value is an IEEE 754-2008 binary64 NaN value, return the NaN Number value. -Return the Number value that corresponds to value. - */ - var sign = rawBytes[7] & 0x80 ? -1 : 1; // first bit - var exponent = ((rawBytes[7] & 0x7F) << 4) // 7 bits from index 7 - | ((rawBytes[6] & 0xF0) >> 4); // 4 bits from index 6 - var mantissa = ((rawBytes[6] & 0x0F) * 0x1000000000000) // 4 bits from index 6 - + (rawBytes[5] * 0x10000000000) // 8 bits from index 5 - + (rawBytes[4] * 0x100000000) // 8 bits from index 4 - + (rawBytes[3] * 0x1000000) // 8 bits from index 3 - + (rawBytes[2] * 0x10000) // 8 bits from index 2 - + (rawBytes[1] * 0x100) // 8 bits from index 1 - + rawBytes[0]; // 8 bits from index 0 - - if (exponent === 0 && mantissa === 0) { - return sign * 0; - } - if (exponent === 0x7FF && mantissa !== 0) { - return NaN; - } - if (exponent === 0x7FF && mantissa === 0) { - return sign * Infinity; - } - - exponent -= 1023; // subtract the bias - - return sign * (mantissa + 0x10000000000000) * $pow(2, exponent - 52); - } - - // this is common to both branches - var intValue = 0; - for (var i = 0; i < rawBytes.length; i++) { - intValue |= rawBytes[i] << (8 * i); - } - /* - Let intValue be the byte elements of rawBytes concatenated and interpreted as a bit string encoding of an unsigned little-endian binary number. - */ - - if ($charAt(type, 0) !== 'U') { // steps 5-6 - // Let intValue be the byte elements of rawBytes concatenated and interpreted as a bit string encoding of a binary little-endian 2's complement number of bit length elementSize × 8. - var bitLength = elementSize * 8; - if (bitLength < 32) { - intValue = (intValue << (32 - bitLength)) >> (32 - bitLength); - } + return bytesAsFloat64(rawBytes); } - return intValue; // step 7 + return bytesAsInteger(rawBytes, elementSize, $charAt(type, 0) === 'U', false); }; diff --git a/node_modules/es-abstract/2017/RegExpExec.js b/node_modules/es-abstract/2017/RegExpExec.js index 29fee1720c..cf15207415 100644 --- a/node_modules/es-abstract/2017/RegExpExec.js +++ b/node_modules/es-abstract/2017/RegExpExec.js @@ -11,7 +11,7 @@ var Get = require('./Get'); var IsCallable = require('./IsCallable'); var Type = require('./Type'); -// https://ecma-international.org/ecma-262/6.0/#sec-regexpexec +// https://262.ecma-international.org/6.0/#sec-regexpexec module.exports = function RegExpExec(R, S) { if (Type(R) !== 'Object') { diff --git a/node_modules/es-abstract/2017/SameValueZero.js b/node_modules/es-abstract/2017/SameValueZero.js index bf1a1486a1..3e2851b5ee 100644 --- a/node_modules/es-abstract/2017/SameValueZero.js +++ b/node_modules/es-abstract/2017/SameValueZero.js @@ -2,7 +2,7 @@ var $isNaN = require('../helpers/isNaN'); -// https://ecma-international.org/ecma-262/6.0/#sec-samevaluezero +// https://262.ecma-international.org/6.0/#sec-samevaluezero module.exports = function SameValueZero(x, y) { return (x === y) || ($isNaN(x) && $isNaN(y)); diff --git a/node_modules/es-abstract/2017/Set.js b/node_modules/es-abstract/2017/Set.js index 0971498879..9697031363 100644 --- a/node_modules/es-abstract/2017/Set.js +++ b/node_modules/es-abstract/2017/Set.js @@ -18,7 +18,7 @@ var noThrowOnStrictViolation = (function () { } }()); -// https://ecma-international.org/ecma-262/6.0/#sec-set-o-p-v-throw +// https://262.ecma-international.org/6.0/#sec-set-o-p-v-throw module.exports = function Set(O, P, V, Throw) { if (Type(O) !== 'Object') { diff --git a/node_modules/es-abstract/2017/SetFunctionName.js b/node_modules/es-abstract/2017/SetFunctionName.js index 03ec2227c7..f7fb0a9aab 100644 --- a/node_modules/es-abstract/2017/SetFunctionName.js +++ b/node_modules/es-abstract/2017/SetFunctionName.js @@ -12,7 +12,7 @@ var DefinePropertyOrThrow = require('./DefinePropertyOrThrow'); var IsExtensible = require('./IsExtensible'); var Type = require('./Type'); -// https://ecma-international.org/ecma-262/6.0/#sec-setfunctionname +// https://262.ecma-international.org/6.0/#sec-setfunctionname module.exports = function SetFunctionName(F, name) { if (typeof F !== 'function') { diff --git a/node_modules/es-abstract/2017/SetIntegrityLevel.js b/node_modules/es-abstract/2017/SetIntegrityLevel.js index 546f3e74f4..aaef85a0a2 100644 --- a/node_modules/es-abstract/2017/SetIntegrityLevel.js +++ b/node_modules/es-abstract/2017/SetIntegrityLevel.js @@ -15,7 +15,7 @@ var IsAccessorDescriptor = require('./IsAccessorDescriptor'); var ToPropertyDescriptor = require('./ToPropertyDescriptor'); var Type = require('./Type'); -// https://ecma-international.org/ecma-262/6.0/#sec-setintegritylevel +// https://262.ecma-international.org/6.0/#sec-setintegritylevel module.exports = function SetIntegrityLevel(O, level) { if (Type(O) !== 'Object') { diff --git a/node_modules/es-abstract/2017/SetValueInBuffer.js b/node_modules/es-abstract/2017/SetValueInBuffer.js new file mode 100644 index 0000000000..8208445890 --- /dev/null +++ b/node_modules/es-abstract/2017/SetValueInBuffer.js @@ -0,0 +1,120 @@ +'use strict'; + +var GetIntrinsic = require('get-intrinsic'); + +var $TypeError = GetIntrinsic('%TypeError%'); + +var isInteger = require('../helpers/isInteger'); + +var IsDetachedBuffer = require('./IsDetachedBuffer'); +var ToInt16 = require('./ToInt16'); +var ToInt32 = require('./ToInt32'); +var ToInt8 = require('./ToInt8'); +var ToUint16 = require('./ToUint16'); +var ToUint32 = require('./ToUint32'); +var ToUint8 = require('./ToUint8'); +var ToUint8Clamp = require('./ToUint8Clamp'); + +var isArrayBuffer = require('is-array-buffer'); +var has = require('has'); + +var table49 = { + __proto__: null, + Int8: 1, + Uint8: 1, + Uint8C: 1, + Int16: 2, + Uint16: 2, + Int32: 4, + Uint32: 4, + Float32: 4, + Float64: 8 +}; + +var TypeToAO = { + __proto__: null, + Int8: ToInt8, + Uint8: ToUint8, + Uint8C: ToUint8Clamp, + Int16: ToInt16, + Uint16: ToUint16, + Int32: ToInt32, + Uint32: ToUint32 +}; + +var defaultEndianness = require('../helpers/defaultEndianness'); +var forEach = require('../helpers/forEach'); +var integerToNBytes = require('../helpers/integerToNBytes'); +var valueToFloat32Bytes = require('../helpers/valueToFloat32Bytes'); +var valueToFloat64Bytes = require('../helpers/valueToFloat64Bytes'); + +// https://262.ecma-international.org/6.0/#sec-setvalueinbuffer + +module.exports = function SetValueInBuffer(arrayBuffer, byteIndex, type, value) { + if (!isArrayBuffer(arrayBuffer)) { + throw new $TypeError('Assertion failed: `arrayBuffer` must be an ArrayBuffer'); + } + + if (!isInteger(byteIndex)) { + throw new $TypeError('Assertion failed: `byteIndex` must be an integer'); + } + + if (typeof type !== 'string' || !has(table49, type)) { + throw new $TypeError('Assertion failed: `type` must be a Typed Array Element Type'); + } + + if (typeof value !== 'number') { + throw new $TypeError('Assertion failed: `value` must be a number'); + } + + if (arguments.length > 4 && typeof arguments[4] !== 'boolean') { + throw new $TypeError('Assertion failed: `isLittleEndian` must be a boolean, if present'); + } + + if (IsDetachedBuffer(arrayBuffer)) { + throw new $TypeError('Assertion failed: ArrayBuffer is detached'); // step 1 + } + + // 2. Assert: There are sufficient bytes in arrayBuffer starting at byteIndex to represent a value of type. + + if (byteIndex < 0) { + throw new $TypeError('Assertion failed: `byteIndex` must be non-negative'); // step 3 + } + + // 4. Assert: Type(value) is Number. + + // 5. Let block be arrayBuffer’s [[ArrayBufferData]] internal slot. + + // 6. Assert: block is not undefined. + + var elementSize = table49[type]; // step 7 + if (!elementSize) { + throw new $TypeError('Assertion failed: `type` must be one of "Int8", "Uint8", "Uint8C", "Int16", "Uint16", "Int32", "Uint32", "Float32", or "Float64"'); + } + + // 8. If isLittleEndian is not present, set isLittleEndian to either true or false. The choice is implementation dependent and should be the alternative that is most efficient for the implementation. An implementation must use the same value each time this step is executed and the same value must be used for the corresponding step in the GetValueFromBuffer abstract operation. + var isLittleEndian = arguments.length > 4 ? arguments[4] : defaultEndianness === 'little'; // step 8 + + var rawBytes; + if (type === 'Float32') { // step 1 + rawBytes = valueToFloat32Bytes(value, isLittleEndian); + } else if (type === 'Float64') { // step 2 + rawBytes = valueToFloat64Bytes(value, isLittleEndian); + } else { + var n = table49[type]; // step 3.a + + var convOp = TypeToAO[type]; // step 3.b + + var intValue = convOp(value); // step 3.c + + rawBytes = integerToNBytes(intValue, n, isLittleEndian); // step 3.d, 3.e, 4 + } + + // 12. Store the individual bytes of rawBytes into block, in order, starting at block[byteIndex]. + var arr = new Uint8Array(arrayBuffer, byteIndex, elementSize); + forEach(rawBytes, function (rawByte, i) { + arr[i] = rawByte; + }); + + // 13. Return NormalCompletion(undefined). +}; diff --git a/node_modules/es-abstract/2017/SpeciesConstructor.js b/node_modules/es-abstract/2017/SpeciesConstructor.js index 491eb9b87d..1937b9c9cd 100644 --- a/node_modules/es-abstract/2017/SpeciesConstructor.js +++ b/node_modules/es-abstract/2017/SpeciesConstructor.js @@ -8,7 +8,7 @@ var $TypeError = GetIntrinsic('%TypeError%'); var IsConstructor = require('./IsConstructor'); var Type = require('./Type'); -// https://ecma-international.org/ecma-262/6.0/#sec-speciesconstructor +// https://262.ecma-international.org/6.0/#sec-speciesconstructor module.exports = function SpeciesConstructor(O, defaultConstructor) { if (Type(O) !== 'Object') { diff --git a/node_modules/es-abstract/2017/SplitMatch.js b/node_modules/es-abstract/2017/SplitMatch.js index 8ab05355ed..d57fb691e5 100644 --- a/node_modules/es-abstract/2017/SplitMatch.js +++ b/node_modules/es-abstract/2017/SplitMatch.js @@ -5,9 +5,10 @@ var callBound = require('call-bind/callBound'); var $TypeError = GetIntrinsic('%TypeError%'); -var IsInteger = require('./IsInteger'); var Type = require('./Type'); +var isInteger = require('../helpers/isInteger'); + var $charAt = callBound('String.prototype.charAt'); // https://262.ecma-international.org/6.0/#sec-splitmatch @@ -16,7 +17,7 @@ module.exports = function SplitMatch(S, q, R) { if (Type(S) !== 'String') { throw new $TypeError('Assertion failed: `S` must be a String'); } - if (!IsInteger(q)) { + if (!isInteger(q)) { throw new $TypeError('Assertion failed: `q` must be an integer'); } if (Type(R) !== 'String') { diff --git a/node_modules/es-abstract/2017/SymbolDescriptiveString.js b/node_modules/es-abstract/2017/SymbolDescriptiveString.js index 1efd1316b2..89c253ffae 100644 --- a/node_modules/es-abstract/2017/SymbolDescriptiveString.js +++ b/node_modules/es-abstract/2017/SymbolDescriptiveString.js @@ -10,7 +10,7 @@ var $SymbolToString = callBound('Symbol.prototype.toString', true); var Type = require('./Type'); -// https://ecma-international.org/ecma-262/6.0/#sec-symboldescriptivestring +// https://262.ecma-international.org/6.0/#sec-symboldescriptivestring module.exports = function SymbolDescriptiveString(sym) { if (Type(sym) !== 'Symbol') { diff --git a/node_modules/es-abstract/2017/TestIntegrityLevel.js b/node_modules/es-abstract/2017/TestIntegrityLevel.js index 7f95a6e1d4..7cefab7017 100644 --- a/node_modules/es-abstract/2017/TestIntegrityLevel.js +++ b/node_modules/es-abstract/2017/TestIntegrityLevel.js @@ -13,7 +13,7 @@ var IsExtensible = require('./IsExtensible'); var ToPropertyDescriptor = require('./ToPropertyDescriptor'); var Type = require('./Type'); -// https://ecma-international.org/ecma-262/6.0/#sec-testintegritylevel +// https://262.ecma-international.org/6.0/#sec-testintegritylevel module.exports = function TestIntegrityLevel(O, level) { if (Type(O) !== 'Object') { diff --git a/node_modules/es-abstract/2017/ToDateString.js b/node_modules/es-abstract/2017/ToDateString.js index e636a9ba68..dabb2bb38a 100644 --- a/node_modules/es-abstract/2017/ToDateString.js +++ b/node_modules/es-abstract/2017/ToDateString.js @@ -4,12 +4,13 @@ var GetIntrinsic = require('get-intrinsic'); var $TypeError = GetIntrinsic('%TypeError%'); var $Date = GetIntrinsic('%Date%'); +var $String = GetIntrinsic('%String%'); var $isNaN = require('../helpers/isNaN'); var Type = require('./Type'); -// https://ecma-international.org/ecma-262/6.0/#sec-todatestring +// https://262.ecma-international.org/6.0/#sec-todatestring module.exports = function ToDateString(tv) { if (Type(tv) !== 'Number') { @@ -18,5 +19,5 @@ module.exports = function ToDateString(tv) { if ($isNaN(tv)) { return 'Invalid Date'; } - return $Date(tv); + return $String(new $Date(tv)); }; diff --git a/node_modules/es-abstract/2017/ToInt16.js b/node_modules/es-abstract/2017/ToInt16.js index cb8e7934bb..21694bdeb9 100644 --- a/node_modules/es-abstract/2017/ToInt16.js +++ b/node_modules/es-abstract/2017/ToInt16.js @@ -2,7 +2,7 @@ var ToUint16 = require('./ToUint16'); -// https://ecma-international.org/ecma-262/6.0/#sec-toint16 +// https://262.ecma-international.org/6.0/#sec-toint16 module.exports = function ToInt16(argument) { var int16bit = ToUint16(argument); diff --git a/node_modules/es-abstract/2017/ToInt8.js b/node_modules/es-abstract/2017/ToInt8.js index bc452d826f..e223b6c1d3 100644 --- a/node_modules/es-abstract/2017/ToInt8.js +++ b/node_modules/es-abstract/2017/ToInt8.js @@ -2,7 +2,7 @@ var ToUint8 = require('./ToUint8'); -// https://ecma-international.org/ecma-262/6.0/#sec-toint8 +// https://262.ecma-international.org/6.0/#sec-toint8 module.exports = function ToInt8(argument) { var int8bit = ToUint8(argument); diff --git a/node_modules/es-abstract/2017/ToInteger.js b/node_modules/es-abstract/2017/ToInteger.js index 2975818094..f6625796eb 100644 --- a/node_modules/es-abstract/2017/ToInteger.js +++ b/node_modules/es-abstract/2017/ToInteger.js @@ -4,7 +4,7 @@ var ES5ToInteger = require('../5/ToInteger'); var ToNumber = require('./ToNumber'); -// https://ecma-international.org/ecma-262/6.0/#sec-tointeger +// https://262.ecma-international.org/6.0/#sec-tointeger module.exports = function ToInteger(value) { var number = ToNumber(value); diff --git a/node_modules/es-abstract/2017/ToNumber.js b/node_modules/es-abstract/2017/ToNumber.js index 95bdd9ecda..3abb6a68d2 100644 --- a/node_modules/es-abstract/2017/ToNumber.js +++ b/node_modules/es-abstract/2017/ToNumber.js @@ -19,22 +19,11 @@ var nonWS = ['\u0085', '\u200b', '\ufffe'].join(''); var nonWSregex = new $RegExp('[' + nonWS + ']', 'g'); var hasNonWS = regexTester(nonWSregex); -// whitespace from: https://es5.github.io/#x15.5.4.20 -// implementation from https://github.com/es-shims/es5-shim/blob/v3.4.0/es5-shim.js#L1304-L1324 -var ws = [ - '\x09\x0A\x0B\x0C\x0D\x20\xA0\u1680\u180E\u2000\u2001\u2002\u2003', - '\u2004\u2005\u2006\u2007\u2008\u2009\u200A\u202F\u205F\u3000\u2028', - '\u2029\uFEFF' -].join(''); -var trimRegex = new RegExp('(^[' + ws + ']+)|([' + ws + ']+$)', 'g'); -var $replace = callBound('String.prototype.replace'); -var $trim = function (value) { - return $replace(value, trimRegex, ''); -}; +var $trim = require('string.prototype.trim'); var ToPrimitive = require('./ToPrimitive'); -// https://ecma-international.org/ecma-262/6.0/#sec-tonumber +// https://262.ecma-international.org/6.0/#sec-tonumber module.exports = function ToNumber(argument) { var value = isPrimitive(argument) ? argument : ToPrimitive(argument, $Number); diff --git a/node_modules/es-abstract/2017/ToObject.js b/node_modules/es-abstract/2017/ToObject.js index cb26bac064..26a007cead 100644 --- a/node_modules/es-abstract/2017/ToObject.js +++ b/node_modules/es-abstract/2017/ToObject.js @@ -6,7 +6,7 @@ var $Object = GetIntrinsic('%Object%'); var RequireObjectCoercible = require('./RequireObjectCoercible'); -// https://ecma-international.org/ecma-262/6.0/#sec-toobject +// https://262.ecma-international.org/6.0/#sec-toobject module.exports = function ToObject(value) { RequireObjectCoercible(value); diff --git a/node_modules/es-abstract/2017/ToPrimitive.js b/node_modules/es-abstract/2017/ToPrimitive.js index 0fbe9b8076..56bcf1aa9e 100644 --- a/node_modules/es-abstract/2017/ToPrimitive.js +++ b/node_modules/es-abstract/2017/ToPrimitive.js @@ -2,7 +2,7 @@ var toPrimitive = require('es-to-primitive/es2015'); -// https://ecma-international.org/ecma-262/6.0/#sec-toprimitive +// https://262.ecma-international.org/6.0/#sec-toprimitive module.exports = function ToPrimitive(input) { if (arguments.length > 1) { diff --git a/node_modules/es-abstract/2017/ToPropertyKey.js b/node_modules/es-abstract/2017/ToPropertyKey.js index fc1bf7d862..e363cd93b1 100644 --- a/node_modules/es-abstract/2017/ToPropertyKey.js +++ b/node_modules/es-abstract/2017/ToPropertyKey.js @@ -7,7 +7,7 @@ var $String = GetIntrinsic('%String%'); var ToPrimitive = require('./ToPrimitive'); var ToString = require('./ToString'); -// https://ecma-international.org/ecma-262/6.0/#sec-topropertykey +// https://262.ecma-international.org/6.0/#sec-topropertykey module.exports = function ToPropertyKey(argument) { var key = ToPrimitive(argument, $String); diff --git a/node_modules/es-abstract/2017/ToString.js b/node_modules/es-abstract/2017/ToString.js index 4d494e1e23..d86aed4ce8 100644 --- a/node_modules/es-abstract/2017/ToString.js +++ b/node_modules/es-abstract/2017/ToString.js @@ -5,7 +5,7 @@ var GetIntrinsic = require('get-intrinsic'); var $String = GetIntrinsic('%String%'); var $TypeError = GetIntrinsic('%TypeError%'); -// https://ecma-international.org/ecma-262/6.0/#sec-tostring +// https://262.ecma-international.org/6.0/#sec-tostring module.exports = function ToString(argument) { if (typeof argument === 'symbol') { diff --git a/node_modules/es-abstract/2017/ToUint8.js b/node_modules/es-abstract/2017/ToUint8.js index 2dfd97cb34..6e4e4b5add 100644 --- a/node_modules/es-abstract/2017/ToUint8.js +++ b/node_modules/es-abstract/2017/ToUint8.js @@ -10,7 +10,7 @@ var abs = require('./abs'); var floor = require('./floor'); var modulo = require('./modulo'); -// https://ecma-international.org/ecma-262/6.0/#sec-touint8 +// https://262.ecma-international.org/6.0/#sec-touint8 module.exports = function ToUint8(argument) { var number = ToNumber(argument); diff --git a/node_modules/es-abstract/2017/ToUint8Clamp.js b/node_modules/es-abstract/2017/ToUint8Clamp.js index b0b8ce8ed3..3ba2fd7119 100644 --- a/node_modules/es-abstract/2017/ToUint8Clamp.js +++ b/node_modules/es-abstract/2017/ToUint8Clamp.js @@ -5,13 +5,13 @@ var floor = require('./floor'); var $isNaN = require('../helpers/isNaN'); -// https://ecma-international.org/ecma-262/6.0/#sec-touint8clamp +// https://262.ecma-international.org/6.0/#sec-touint8clamp module.exports = function ToUint8Clamp(argument) { var number = ToNumber(argument); if ($isNaN(number) || number <= 0) { return 0; } if (number >= 0xFF) { return 0xFF; } - var f = floor(argument); + var f = floor(number); if (f + 0.5 < number) { return f + 1; } if (number < f + 0.5) { return f; } if (f % 2 !== 0) { return f + 1; } diff --git a/node_modules/es-abstract/2017/Type.js b/node_modules/es-abstract/2017/Type.js index 0bd11659c2..da5cb76250 100644 --- a/node_modules/es-abstract/2017/Type.js +++ b/node_modules/es-abstract/2017/Type.js @@ -2,7 +2,7 @@ var ES5Type = require('../5/Type'); -// https://ecma-international.org/ecma-262/6.0/#sec-ecmascript-data-types-and-values +// https://262.ecma-international.org/6.0/#sec-ecmascript-data-types-and-values module.exports = function Type(x) { if (typeof x === 'symbol') { diff --git a/node_modules/es-abstract/2017/TypedArrayCreate.js b/node_modules/es-abstract/2017/TypedArrayCreate.js new file mode 100644 index 0000000000..ef9fbe2599 --- /dev/null +++ b/node_modules/es-abstract/2017/TypedArrayCreate.js @@ -0,0 +1,50 @@ +'use strict'; + +var GetIntrinsic = require('get-intrinsic'); + +var $SyntaxError = GetIntrinsic('%SyntaxError%'); +var $TypeError = GetIntrinsic('%TypeError%'); + +var IsArray = require('./IsArray'); +var IsConstructor = require('./IsConstructor'); +var Type = require('./Type'); +var ValidateTypedArray = require('./ValidateTypedArray'); + +var availableTypedArrays = require('available-typed-arrays')(); +var typedArrayLength = require('typed-array-length'); + +// https://262.ecma-international.org/7.0/#typedarray-create + +module.exports = function TypedArrayCreate(constructor, argumentList) { + if (!IsConstructor(constructor)) { + throw new $TypeError('Assertion failed: `constructor` must be a constructor'); + } + if (!IsArray(argumentList)) { + throw new $TypeError('Assertion failed: `argumentList` must be a List'); + } + if (availableTypedArrays.length === 0) { + throw new $SyntaxError('Assertion failed: Typed Arrays are not supported in this environment'); + } + + // var newTypedArray = Construct(constructor, argumentList); // step 1 + var newTypedArray; + if (argumentList.length === 0) { + newTypedArray = new constructor(); + } else if (argumentList.length === 1) { + newTypedArray = new constructor(argumentList[0]); + } else if (argumentList.length === 2) { + newTypedArray = new constructor(argumentList[0], argumentList[1]); + } else { + newTypedArray = new constructor(argumentList[0], argumentList[1], argumentList[2]); + } + + ValidateTypedArray(newTypedArray); // step 2 + + if (argumentList.length === 1 && Type(argumentList[0]) === 'Number') { // step 3 + if (typedArrayLength(newTypedArray) < argumentList[0]) { + throw new $TypeError('Assertion failed: `argumentList[0]` must be <= `newTypedArray.length`'); // step 3.a + } + } + + return newTypedArray; // step 4 +}; diff --git a/node_modules/es-abstract/2017/TypedArraySpeciesCreate.js b/node_modules/es-abstract/2017/TypedArraySpeciesCreate.js new file mode 100644 index 0000000000..1cf8755acc --- /dev/null +++ b/node_modules/es-abstract/2017/TypedArraySpeciesCreate.js @@ -0,0 +1,39 @@ +'use strict'; + +var GetIntrinsic = require('get-intrinsic'); + +var $SyntaxError = GetIntrinsic('%SyntaxError%'); +var $TypeError = GetIntrinsic('%TypeError%'); + +var whichTypedArray = require('which-typed-array'); +var availableTypedArrays = require('available-typed-arrays')(); + +var IsArray = require('./IsArray'); +var SpeciesConstructor = require('./SpeciesConstructor'); +var TypedArrayCreate = require('./TypedArrayCreate'); + +var getConstructor = require('../helpers/typedArrayContructors'); + +// https://262.ecma-international.org/7.0/#typedarray-species-create + +module.exports = function TypedArraySpeciesCreate(exemplar, argumentList) { + if (availableTypedArrays.length === 0) { + throw new $SyntaxError('Assertion failed: Typed Arrays are not supported in this environment'); + } + + var kind = whichTypedArray(exemplar); + if (!kind) { + throw new $TypeError('Assertion failed: exemplar must be a TypedArray'); // step 1 + } + if (!IsArray(argumentList)) { + throw new $TypeError('Assertion failed: `argumentList` must be a List'); // step 1 + } + + var defaultConstructor = getConstructor(kind); // step 2 + if (typeof defaultConstructor !== 'function') { + throw new $SyntaxError('Assertion failed: `constructor` of `exemplar` (' + kind + ') must exist. Please report this!'); + } + var constructor = SpeciesConstructor(exemplar, defaultConstructor); // step 3 + + return TypedArrayCreate(constructor, argumentList); // step 4 +}; diff --git a/node_modules/es-abstract/2017/ValidateAndApplyPropertyDescriptor.js b/node_modules/es-abstract/2017/ValidateAndApplyPropertyDescriptor.js index a7fd218ad5..134b2d5c36 100644 --- a/node_modules/es-abstract/2017/ValidateAndApplyPropertyDescriptor.js +++ b/node_modules/es-abstract/2017/ValidateAndApplyPropertyDescriptor.js @@ -16,10 +16,10 @@ var IsPropertyKey = require('./IsPropertyKey'); var SameValue = require('./SameValue'); var Type = require('./Type'); -// https://ecma-international.org/ecma-262/6.0/#sec-validateandapplypropertydescriptor -// https://ecma-international.org/ecma-262/8.0/#sec-validateandapplypropertydescriptor +// https://262.ecma-international.org/6.0/#sec-validateandapplypropertydescriptor +// https://262.ecma-international.org/8.0/#sec-validateandapplypropertydescriptor -// eslint-disable-next-line max-lines-per-function, max-statements, max-params +// eslint-disable-next-line max-lines-per-function, max-statements module.exports = function ValidateAndApplyPropertyDescriptor(O, P, extensible, Desc, current) { // this uses the ES2017+ logic, since it fixes a number of bugs in the ES2015 logic. var oType = Type(O); diff --git a/node_modules/es-abstract/2017/ValidateTypedArray.js b/node_modules/es-abstract/2017/ValidateTypedArray.js index 83df3a81cb..c7aa313938 100644 --- a/node_modules/es-abstract/2017/ValidateTypedArray.js +++ b/node_modules/es-abstract/2017/ValidateTypedArray.js @@ -5,7 +5,7 @@ var GetIntrinsic = require('get-intrinsic'); var $TypeError = GetIntrinsic('%TypeError%'); var callBound = require('call-bind/callBound'); -var $taSome = callBound('%TypedArray.prototype.some%', true); +var $taSome = callBound('TypedArray.prototype.some', true); var Type = require('./Type'); diff --git a/node_modules/es-abstract/2017/WordCharacters.js b/node_modules/es-abstract/2017/WordCharacters.js new file mode 100644 index 0000000000..aeebc1e75c --- /dev/null +++ b/node_modules/es-abstract/2017/WordCharacters.js @@ -0,0 +1,49 @@ +'use strict'; + +var GetIntrinsic = require('get-intrinsic'); + +var $TypeError = GetIntrinsic('%TypeError%'); + +var callBound = require('call-bind/callBound'); +var $indexOf = callBound('String.prototype.indexOf', true); + +var Canonicalize = require('./Canonicalize'); +var Type = require('./Type'); + +var caseFolding = require('../helpers/caseFolding'); +var forEach = require('../helpers/forEach'); +var OwnPropertyKeys = require('../helpers/OwnPropertyKeys'); + +var A = 'abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789_'; // step 1 + +// https://262.ecma-international.org/8.0/#sec-runtime-semantics-wordcharacters-abstract-operation + +module.exports = function WordCharacters(IgnoreCase, Unicode) { + if (Type(IgnoreCase) !== 'Boolean' || Type(Unicode) !== 'Boolean') { + throw new $TypeError('Assertion failed: `IgnoreCase` and `Unicode` must be booleans'); + } + + var U = ''; + forEach(OwnPropertyKeys(caseFolding.C), function (c) { + if ( + $indexOf(A, c) === -1 // c not in A + && $indexOf(A, Canonicalize(c, IgnoreCase, Unicode)) > -1 // canonicalized c IS in A + ) { + U += caseFolding.C[c]; // step 3 + } + }); + forEach(OwnPropertyKeys(caseFolding.S), function (c) { + if ( + $indexOf(A, c) === -1 // c not in A + && $indexOf(A, Canonicalize(c, IgnoreCase, Unicode)) > -1 // canonicalized c IS in A + ) { + U += caseFolding.S[c]; // step 3 + } + }); + + if ((!Unicode || !IgnoreCase) && U.length > 0) { + throw new $TypeError('Assertion failed: `U` must be empty when `IgnoreCase` and `Unicode` are not both true'); // step 4 + } + + return A + U; // step 5, 6 +}; diff --git a/node_modules/es-abstract/2017/thisBooleanValue.js b/node_modules/es-abstract/2017/thisBooleanValue.js index 27075b9c4f..e93a28ce47 100644 --- a/node_modules/es-abstract/2017/thisBooleanValue.js +++ b/node_modules/es-abstract/2017/thisBooleanValue.js @@ -4,7 +4,7 @@ var $BooleanValueOf = require('call-bind/callBound')('Boolean.prototype.valueOf' var Type = require('./Type'); -// https://ecma-international.org/ecma-262/6.0/#sec-properties-of-the-boolean-prototype-object +// https://262.ecma-international.org/6.0/#sec-properties-of-the-boolean-prototype-object module.exports = function thisBooleanValue(value) { if (Type(value) === 'Boolean') { diff --git a/node_modules/es-abstract/2017/thisNumberValue.js b/node_modules/es-abstract/2017/thisNumberValue.js index 92968dcdf8..03580df26f 100644 --- a/node_modules/es-abstract/2017/thisNumberValue.js +++ b/node_modules/es-abstract/2017/thisNumberValue.js @@ -6,7 +6,7 @@ var Type = require('./Type'); var $NumberValueOf = callBound('Number.prototype.valueOf'); -// https://ecma-international.org/ecma-262/6.0/#sec-properties-of-the-number-prototype-object +// https://262.ecma-international.org/6.0/#sec-properties-of-the-number-prototype-object module.exports = function thisNumberValue(value) { if (Type(value) === 'Number') { diff --git a/node_modules/es-abstract/2017/thisStringValue.js b/node_modules/es-abstract/2017/thisStringValue.js index 8e4274d811..c7bf3da70c 100644 --- a/node_modules/es-abstract/2017/thisStringValue.js +++ b/node_modules/es-abstract/2017/thisStringValue.js @@ -4,7 +4,7 @@ var $StringValueOf = require('call-bind/callBound')('String.prototype.valueOf'); var Type = require('./Type'); -// https://ecma-international.org/ecma-262/6.0/#sec-properties-of-the-string-prototype-object +// https://262.ecma-international.org/6.0/#sec-properties-of-the-string-prototype-object module.exports = function thisStringValue(value) { if (Type(value) === 'String') { diff --git a/node_modules/es-abstract/2017/thisTimeValue.js b/node_modules/es-abstract/2017/thisTimeValue.js index 4687950f13..bd50ddd068 100644 --- a/node_modules/es-abstract/2017/thisTimeValue.js +++ b/node_modules/es-abstract/2017/thisTimeValue.js @@ -2,7 +2,7 @@ var $DateGetTime = require('call-bind/callBound')('Date.prototype.getTime'); -// https://ecma-international.org/ecma-262/6.0/#sec-properties-of-the-date-prototype-object +// https://262.ecma-international.org/6.0/#sec-properties-of-the-date-prototype-object module.exports = function thisTimeValue(value) { return $DateGetTime(value); diff --git a/node_modules/es-abstract/2018/AbstractEqualityComparison.js b/node_modules/es-abstract/2018/AbstractEqualityComparison.js index c776194c1e..b56a506622 100644 --- a/node_modules/es-abstract/2018/AbstractEqualityComparison.js +++ b/node_modules/es-abstract/2018/AbstractEqualityComparison.js @@ -4,7 +4,7 @@ var ToNumber = require('./ToNumber'); var ToPrimitive = require('./ToPrimitive'); var Type = require('./Type'); -// https://ecma-international.org/ecma-262/6.0/#sec-abstract-equality-comparison +// https://262.ecma-international.org/6.0/#sec-abstract-equality-comparison module.exports = function AbstractEqualityComparison(x, y) { var xType = Type(x); diff --git a/node_modules/es-abstract/2018/AdvanceStringIndex.js b/node_modules/es-abstract/2018/AdvanceStringIndex.js index 279602b4cd..831ea96ef9 100644 --- a/node_modules/es-abstract/2018/AdvanceStringIndex.js +++ b/node_modules/es-abstract/2018/AdvanceStringIndex.js @@ -2,24 +2,24 @@ var GetIntrinsic = require('get-intrinsic'); -var IsInteger = require('./IsInteger'); var Type = require('./Type'); -var MAX_SAFE_INTEGER = require('../helpers/maxSafeInteger'); +var isInteger = require('../helpers/isInteger'); var isLeadingSurrogate = require('../helpers/isLeadingSurrogate'); var isTrailingSurrogate = require('../helpers/isTrailingSurrogate'); +var MAX_SAFE_INTEGER = require('../helpers/maxSafeInteger'); var $TypeError = GetIntrinsic('%TypeError%'); var $charCodeAt = require('call-bind/callBound')('String.prototype.charCodeAt'); -// https://ecma-international.org/ecma-262/6.0/#sec-advancestringindex +// https://262.ecma-international.org/6.0/#sec-advancestringindex module.exports = function AdvanceStringIndex(S, index, unicode) { if (Type(S) !== 'String') { throw new $TypeError('Assertion failed: `S` must be a String'); } - if (!IsInteger(index) || index < 0 || index > MAX_SAFE_INTEGER) { + if (!isInteger(index) || index < 0 || index > MAX_SAFE_INTEGER) { throw new $TypeError('Assertion failed: `length` must be an integer >= 0 and <= 2**53'); } if (Type(unicode) !== 'Boolean') { diff --git a/node_modules/es-abstract/2018/ArrayCreate.js b/node_modules/es-abstract/2018/ArrayCreate.js index cc890cafbf..0d34db9bec 100644 --- a/node_modules/es-abstract/2018/ArrayCreate.js +++ b/node_modules/es-abstract/2018/ArrayCreate.js @@ -7,7 +7,7 @@ var $RangeError = GetIntrinsic('%RangeError%'); var $SyntaxError = GetIntrinsic('%SyntaxError%'); var $TypeError = GetIntrinsic('%TypeError%'); -var IsInteger = require('./IsInteger'); +var isInteger = require('../helpers/isInteger'); var hasProto = require('has-proto')(); @@ -22,10 +22,10 @@ var $setProto = GetIntrinsic('%Object.setPrototypeOf%', true) || ( : null ); -// https://ecma-international.org/ecma-262/6.0/#sec-arraycreate +// https://262.ecma-international.org/6.0/#sec-arraycreate module.exports = function ArrayCreate(length) { - if (!IsInteger(length) || length < 0) { + if (!isInteger(length) || length < 0) { throw new $TypeError('Assertion failed: `length` must be an integer Number >= 0'); } if (length > MAX_ARRAY_LENGTH) { diff --git a/node_modules/es-abstract/2018/ArraySetLength.js b/node_modules/es-abstract/2018/ArraySetLength.js index 08db9c2e9b..45d7569e7d 100644 --- a/node_modules/es-abstract/2018/ArraySetLength.js +++ b/node_modules/es-abstract/2018/ArraySetLength.js @@ -19,7 +19,7 @@ var ToString = require('./ToString'); var ToUint32 = require('./ToUint32'); var Type = require('./Type'); -// https://ecma-international.org/ecma-262/6.0/#sec-arraysetlength +// https://262.ecma-international.org/6.0/#sec-arraysetlength // eslint-disable-next-line max-statements, max-lines-per-function module.exports = function ArraySetLength(A, Desc) { diff --git a/node_modules/es-abstract/2018/ArraySpeciesCreate.js b/node_modules/es-abstract/2018/ArraySpeciesCreate.js index 26d63b5e20..1944dfe7b8 100644 --- a/node_modules/es-abstract/2018/ArraySpeciesCreate.js +++ b/node_modules/es-abstract/2018/ArraySpeciesCreate.js @@ -9,13 +9,14 @@ var $TypeError = GetIntrinsic('%TypeError%'); var Get = require('./Get'); var IsArray = require('./IsArray'); var IsConstructor = require('./IsConstructor'); -var IsInteger = require('./IsInteger'); var Type = require('./Type'); -// https://ecma-international.org/ecma-262/6.0/#sec-arrayspeciescreate +var isInteger = require('../helpers/isInteger'); + +// https://262.ecma-international.org/6.0/#sec-arrayspeciescreate module.exports = function ArraySpeciesCreate(originalArray, length) { - if (!IsInteger(length) || length < 0) { + if (!isInteger(length) || length < 0) { throw new $TypeError('Assertion failed: length must be an integer >= 0'); } var len = length === 0 ? 0 : length; diff --git a/node_modules/es-abstract/2018/Call.js b/node_modules/es-abstract/2018/Call.js index 4b238c6916..be76246db0 100644 --- a/node_modules/es-abstract/2018/Call.js +++ b/node_modules/es-abstract/2018/Call.js @@ -7,9 +7,9 @@ var $TypeError = GetIntrinsic('%TypeError%'); var IsArray = require('./IsArray'); -var $apply = GetIntrinsic('%Reflect.apply%', true) || callBound('%Function.prototype.apply%'); +var $apply = GetIntrinsic('%Reflect.apply%', true) || callBound('Function.prototype.apply'); -// https://ecma-international.org/ecma-262/6.0/#sec-call +// https://262.ecma-international.org/6.0/#sec-call module.exports = function Call(F, V) { var argumentsList = arguments.length > 2 ? arguments[2] : []; diff --git a/node_modules/es-abstract/2018/CanonicalNumericIndexString.js b/node_modules/es-abstract/2018/CanonicalNumericIndexString.js index feb878c032..e9f386326c 100644 --- a/node_modules/es-abstract/2018/CanonicalNumericIndexString.js +++ b/node_modules/es-abstract/2018/CanonicalNumericIndexString.js @@ -9,7 +9,7 @@ var ToNumber = require('./ToNumber'); var ToString = require('./ToString'); var Type = require('./Type'); -// https://ecma-international.org/ecma-262/6.0/#sec-canonicalnumericindexstring +// https://262.ecma-international.org/6.0/#sec-canonicalnumericindexstring module.exports = function CanonicalNumericIndexString(argument) { if (Type(argument) !== 'String') { diff --git a/node_modules/es-abstract/2018/Canonicalize.js b/node_modules/es-abstract/2018/Canonicalize.js new file mode 100644 index 0000000000..8873db4c7c --- /dev/null +++ b/node_modules/es-abstract/2018/Canonicalize.js @@ -0,0 +1,55 @@ +'use strict'; + +var GetIntrinsic = require('get-intrinsic'); + +var $TypeError = GetIntrinsic('%TypeError%'); + +var callBound = require('call-bind/callBound'); +var has = require('has'); + +var $charCodeAt = callBound('String.prototype.charCodeAt'); +var $toUpperCase = callBound('String.prototype.toUpperCase'); + +var Type = require('./Type'); + +var caseFolding = require('../helpers/caseFolding'); + +// https://262.ecma-international.org/6.0/#sec-runtime-semantics-canonicalize-ch + +module.exports = function Canonicalize(ch, IgnoreCase, Unicode) { + if (Type(ch) !== 'String') { + throw new $TypeError('Assertion failed: `ch` must be a character'); + } + + if (Type(IgnoreCase) !== 'Boolean' || Type(Unicode) !== 'Boolean') { + throw new $TypeError('Assertion failed: `IgnoreCase` and `Unicode` must be Booleans'); + } + + if (!IgnoreCase) { + return ch; // step 1 + } + + if (Unicode) { // step 2 + if (has(caseFolding.C, ch)) { + return caseFolding.C[ch]; + } + if (has(caseFolding.S, ch)) { + return caseFolding.S[ch]; + } + return ch; // step 2.b + } + + var u = $toUpperCase(ch); // step 2 + + if (u.length !== 1) { + return ch; // step 3 + } + + var cu = u; // step 4 + + if ($charCodeAt(ch, 0) >= 128 && $charCodeAt(cu, 0) < 128) { + return ch; // step 5 + } + + return cu; +}; diff --git a/node_modules/es-abstract/2018/CharacterRange.js b/node_modules/es-abstract/2018/CharacterRange.js index 70e4b52355..78783a59f2 100644 --- a/node_modules/es-abstract/2018/CharacterRange.js +++ b/node_modules/es-abstract/2018/CharacterRange.js @@ -5,8 +5,8 @@ var callBound = require('call-bind/callBound'); var $fromCharCode = GetIntrinsic('%String.fromCharCode%'); var $TypeError = GetIntrinsic('%TypeError%'); -var $charCodeAt = callBound('%String.prototype.charCodeAt%'); -var $push = callBound('%Array.prototype.push%'); +var $charCodeAt = callBound('String.prototype.charCodeAt'); +var $push = callBound('Array.prototype.push'); module.exports = function CharacterRange(A, B) { if (A.length !== 1 || B.length !== 1) { diff --git a/node_modules/es-abstract/2018/CompletePropertyDescriptor.js b/node_modules/es-abstract/2018/CompletePropertyDescriptor.js index 548bf415a3..e8685197aa 100644 --- a/node_modules/es-abstract/2018/CompletePropertyDescriptor.js +++ b/node_modules/es-abstract/2018/CompletePropertyDescriptor.js @@ -8,7 +8,7 @@ var IsDataDescriptor = require('./IsDataDescriptor'); var IsGenericDescriptor = require('./IsGenericDescriptor'); var Type = require('./Type'); -// https://ecma-international.org/ecma-262/6.0/#sec-completepropertydescriptor +// https://262.ecma-international.org/6.0/#sec-completepropertydescriptor module.exports = function CompletePropertyDescriptor(Desc) { /* eslint no-param-reassign: 0 */ diff --git a/node_modules/es-abstract/2018/CreateAsyncFromSyncIterator.js b/node_modules/es-abstract/2018/CreateAsyncFromSyncIterator.js index 90250d10da..8f41b8d406 100644 --- a/node_modules/es-abstract/2018/CreateAsyncFromSyncIterator.js +++ b/node_modules/es-abstract/2018/CreateAsyncFromSyncIterator.js @@ -135,7 +135,7 @@ var $AsyncFromSyncIteratorPrototype = GetIntrinsic('%AsyncFromSyncIteratorProtot } }; -// https://ecma-international.org/ecma-262/9.0/#sec-createasyncfromsynciterator +// https://262.ecma-international.org/9.0/#sec-createasyncfromsynciterator module.exports = function CreateAsyncFromSyncIterator(syncIteratorRecord) { assertRecord(Type, 'Iterator Record', 'syncIteratorRecord', syncIteratorRecord); diff --git a/node_modules/es-abstract/2018/CreateDataProperty.js b/node_modules/es-abstract/2018/CreateDataProperty.js index 02c6cd1f8b..5bd5fc4787 100644 --- a/node_modules/es-abstract/2018/CreateDataProperty.js +++ b/node_modules/es-abstract/2018/CreateDataProperty.js @@ -4,17 +4,11 @@ var GetIntrinsic = require('get-intrinsic'); var $TypeError = GetIntrinsic('%TypeError%'); -var DefineOwnProperty = require('../helpers/DefineOwnProperty'); - -var FromPropertyDescriptor = require('./FromPropertyDescriptor'); -var OrdinaryGetOwnProperty = require('./OrdinaryGetOwnProperty'); -var IsDataDescriptor = require('./IsDataDescriptor'); -var IsExtensible = require('./IsExtensible'); var IsPropertyKey = require('./IsPropertyKey'); -var SameValue = require('./SameValue'); +var OrdinaryDefineOwnProperty = require('./OrdinaryDefineOwnProperty'); var Type = require('./Type'); -// https://ecma-international.org/ecma-262/6.0/#sec-createdataproperty +// https://262.ecma-international.org/6.0/#sec-createdataproperty module.exports = function CreateDataProperty(O, P, V) { if (Type(O) !== 'Object') { @@ -23,23 +17,11 @@ module.exports = function CreateDataProperty(O, P, V) { if (!IsPropertyKey(P)) { throw new $TypeError('Assertion failed: IsPropertyKey(P) is not true'); } - var oldDesc = OrdinaryGetOwnProperty(O, P); - var extensible = !oldDesc || IsExtensible(O); - var nonConfigurable = oldDesc && !oldDesc['[[Configurable]]']; - if (nonConfigurable || !extensible) { - return false; - } - return DefineOwnProperty( - IsDataDescriptor, - SameValue, - FromPropertyDescriptor, - O, - P, - { - '[[Configurable]]': true, - '[[Enumerable]]': true, - '[[Value]]': V, - '[[Writable]]': true - } - ); + var newDesc = { + '[[Configurable]]': true, + '[[Enumerable]]': true, + '[[Value]]': V, + '[[Writable]]': true + }; + return OrdinaryDefineOwnProperty(O, P, newDesc); }; diff --git a/node_modules/es-abstract/2018/CreateDataPropertyOrThrow.js b/node_modules/es-abstract/2018/CreateDataPropertyOrThrow.js index 2f7c410ba3..c40e69368b 100644 --- a/node_modules/es-abstract/2018/CreateDataPropertyOrThrow.js +++ b/node_modules/es-abstract/2018/CreateDataPropertyOrThrow.js @@ -8,7 +8,7 @@ var CreateDataProperty = require('./CreateDataProperty'); var IsPropertyKey = require('./IsPropertyKey'); var Type = require('./Type'); -// // https://ecma-international.org/ecma-262/6.0/#sec-createdatapropertyorthrow +// // https://262.ecma-international.org/6.0/#sec-createdatapropertyorthrow module.exports = function CreateDataPropertyOrThrow(O, P, V) { if (Type(O) !== 'Object') { diff --git a/node_modules/es-abstract/2018/CreateHTML.js b/node_modules/es-abstract/2018/CreateHTML.js index ccded1e65d..ea7633da68 100644 --- a/node_modules/es-abstract/2018/CreateHTML.js +++ b/node_modules/es-abstract/2018/CreateHTML.js @@ -12,7 +12,7 @@ var RequireObjectCoercible = require('./RequireObjectCoercible'); var ToString = require('./ToString'); var Type = require('./Type'); -// https://ecma-international.org/ecma-262/6.0/#sec-createhtml +// https://262.ecma-international.org/6.0/#sec-createhtml module.exports = function CreateHTML(string, tag, attribute, value) { if (Type(tag) !== 'String' || Type(attribute) !== 'String') { diff --git a/node_modules/es-abstract/2018/CreateIterResultObject.js b/node_modules/es-abstract/2018/CreateIterResultObject.js index eea77a5128..ed86b34f25 100644 --- a/node_modules/es-abstract/2018/CreateIterResultObject.js +++ b/node_modules/es-abstract/2018/CreateIterResultObject.js @@ -6,7 +6,7 @@ var $TypeError = GetIntrinsic('%TypeError%'); var Type = require('./Type'); -// https://ecma-international.org/ecma-262/6.0/#sec-createiterresultobject +// https://262.ecma-international.org/6.0/#sec-createiterresultobject module.exports = function CreateIterResultObject(value, done) { if (Type(done) !== 'Boolean') { diff --git a/node_modules/es-abstract/2018/CreateListFromArrayLike.js b/node_modules/es-abstract/2018/CreateListFromArrayLike.js index d1bb8b6587..4c34219206 100644 --- a/node_modules/es-abstract/2018/CreateListFromArrayLike.js +++ b/node_modules/es-abstract/2018/CreateListFromArrayLike.js @@ -14,11 +14,13 @@ var ToLength = require('./ToLength'); var ToString = require('./ToString'); var Type = require('./Type'); -// https://ecma-international.org/ecma-262/6.0/#sec-createlistfromarraylike +var defaultElementTypes = ['Undefined', 'Null', 'Boolean', 'String', 'Symbol', 'Number', 'Object']; + +// https://262.ecma-international.org/6.0/#sec-createlistfromarraylike module.exports = function CreateListFromArrayLike(obj) { var elementTypes = arguments.length > 1 ? arguments[1] - : ['Undefined', 'Null', 'Boolean', 'String', 'Symbol', 'Number', 'Object']; + : defaultElementTypes; if (Type(obj) !== 'Object') { throw new $TypeError('Assertion failed: `obj` must be an Object'); diff --git a/node_modules/es-abstract/2018/CreateMethodProperty.js b/node_modules/es-abstract/2018/CreateMethodProperty.js index 53274a5614..058c0f1760 100644 --- a/node_modules/es-abstract/2018/CreateMethodProperty.js +++ b/node_modules/es-abstract/2018/CreateMethodProperty.js @@ -12,7 +12,7 @@ var IsPropertyKey = require('./IsPropertyKey'); var SameValue = require('./SameValue'); var Type = require('./Type'); -// https://ecma-international.org/ecma-262/6.0/#sec-createmethodproperty +// https://262.ecma-international.org/6.0/#sec-createmethodproperty module.exports = function CreateMethodProperty(O, P, V) { if (Type(O) !== 'Object') { diff --git a/node_modules/es-abstract/2018/DefinePropertyOrThrow.js b/node_modules/es-abstract/2018/DefinePropertyOrThrow.js index 26f2714bb1..8fe097068d 100644 --- a/node_modules/es-abstract/2018/DefinePropertyOrThrow.js +++ b/node_modules/es-abstract/2018/DefinePropertyOrThrow.js @@ -15,7 +15,7 @@ var SameValue = require('./SameValue'); var ToPropertyDescriptor = require('./ToPropertyDescriptor'); var Type = require('./Type'); -// https://ecma-international.org/ecma-262/6.0/#sec-definepropertyorthrow +// https://262.ecma-international.org/6.0/#sec-definepropertyorthrow module.exports = function DefinePropertyOrThrow(O, P, desc) { if (Type(O) !== 'Object') { diff --git a/node_modules/es-abstract/2018/DeletePropertyOrThrow.js b/node_modules/es-abstract/2018/DeletePropertyOrThrow.js index 30d5e57c7b..581bf06ea2 100644 --- a/node_modules/es-abstract/2018/DeletePropertyOrThrow.js +++ b/node_modules/es-abstract/2018/DeletePropertyOrThrow.js @@ -7,7 +7,7 @@ var $TypeError = GetIntrinsic('%TypeError%'); var IsPropertyKey = require('./IsPropertyKey'); var Type = require('./Type'); -// https://ecma-international.org/ecma-262/6.0/#sec-deletepropertyorthrow +// https://262.ecma-international.org/6.0/#sec-deletepropertyorthrow module.exports = function DeletePropertyOrThrow(O, P) { if (Type(O) !== 'Object') { diff --git a/node_modules/es-abstract/2018/FromPropertyDescriptor.js b/node_modules/es-abstract/2018/FromPropertyDescriptor.js index e142ed582e..c70f0c60e1 100644 --- a/node_modules/es-abstract/2018/FromPropertyDescriptor.js +++ b/node_modules/es-abstract/2018/FromPropertyDescriptor.js @@ -5,7 +5,7 @@ var fromPropertyDescriptor = require('../helpers/fromPropertyDescriptor'); var Type = require('./Type'); -// https://ecma-international.org/ecma-262/6.0/#sec-frompropertydescriptor +// https://262.ecma-international.org/6.0/#sec-frompropertydescriptor module.exports = function FromPropertyDescriptor(Desc) { if (typeof Desc !== 'undefined') { diff --git a/node_modules/es-abstract/2018/Get.js b/node_modules/es-abstract/2018/Get.js index 297968643f..0973152222 100644 --- a/node_modules/es-abstract/2018/Get.js +++ b/node_modules/es-abstract/2018/Get.js @@ -9,7 +9,7 @@ var inspect = require('object-inspect'); var IsPropertyKey = require('./IsPropertyKey'); var Type = require('./Type'); -// https://ecma-international.org/ecma-262/6.0/#sec-get-o-p +// https://262.ecma-international.org/6.0/#sec-get-o-p module.exports = function Get(O, P) { // 7.3.1.1 diff --git a/node_modules/es-abstract/2018/GetIterator.js b/node_modules/es-abstract/2018/GetIterator.js index 892197a232..145557da42 100644 --- a/node_modules/es-abstract/2018/GetIterator.js +++ b/node_modules/es-abstract/2018/GetIterator.js @@ -11,7 +11,7 @@ var GetMethod = require('./GetMethod'); var IsArray = require('./IsArray'); var Type = require('./Type'); -// https://ecma-international.org/ecma-262/6.0/#sec-getiterator +// https://262.ecma-international.org/6.0/#sec-getiterator module.exports = function GetIterator(obj, method) { var actualMethod = method; diff --git a/node_modules/es-abstract/2018/GetMethod.js b/node_modules/es-abstract/2018/GetMethod.js index d3775178e6..e9f2854ff3 100644 --- a/node_modules/es-abstract/2018/GetMethod.js +++ b/node_modules/es-abstract/2018/GetMethod.js @@ -8,9 +8,9 @@ var GetV = require('./GetV'); var IsCallable = require('./IsCallable'); var IsPropertyKey = require('./IsPropertyKey'); -var debug = require('object-inspect'); +var inspect = require('object-inspect'); -// https://ecma-international.org/ecma-262/6.0/#sec-getmethod +// https://262.ecma-international.org/6.0/#sec-getmethod module.exports = function GetMethod(O, P) { // 7.3.9.1 @@ -28,7 +28,7 @@ module.exports = function GetMethod(O, P) { // 7.3.9.5 if (!IsCallable(func)) { - throw new $TypeError(P + ' is not a function: ' + debug(func)); + throw new $TypeError(inspect(P) + ' is not a function: ' + inspect(func)); } // 7.3.9.6 diff --git a/node_modules/es-abstract/2018/GetOwnPropertyKeys.js b/node_modules/es-abstract/2018/GetOwnPropertyKeys.js index 40c0b367fa..043fd733bd 100644 --- a/node_modules/es-abstract/2018/GetOwnPropertyKeys.js +++ b/node_modules/es-abstract/2018/GetOwnPropertyKeys.js @@ -12,7 +12,7 @@ var keys = require('object-keys'); var esType = require('./Type'); -// https://ecma-international.org/ecma-262/6.0/#sec-getownpropertykeys +// https://262.ecma-international.org/6.0/#sec-getownpropertykeys module.exports = function GetOwnPropertyKeys(O, Type) { if (esType(O) !== 'Object') { diff --git a/node_modules/es-abstract/2018/GetPrototypeFromConstructor.js b/node_modules/es-abstract/2018/GetPrototypeFromConstructor.js index 25ee12f353..0b281ef4fe 100644 --- a/node_modules/es-abstract/2018/GetPrototypeFromConstructor.js +++ b/node_modules/es-abstract/2018/GetPrototypeFromConstructor.js @@ -10,10 +10,13 @@ var Get = require('./Get'); var IsConstructor = require('./IsConstructor'); var Type = require('./Type'); -// https://ecma-international.org/ecma-262/6.0/#sec-getprototypefromconstructor +// https://262.ecma-international.org/6.0/#sec-getprototypefromconstructor module.exports = function GetPrototypeFromConstructor(constructor, intrinsicDefaultProto) { var intrinsic = GetIntrinsic(intrinsicDefaultProto); // throws if not a valid intrinsic + if (Type(intrinsic) !== 'Object') { + throw new $TypeError('intrinsicDefaultProto must be an object'); + } if (!IsConstructor(constructor)) { throw new $TypeError('Assertion failed: `constructor` must be a constructor'); } diff --git a/node_modules/es-abstract/2018/GetSubstitution.js b/node_modules/es-abstract/2018/GetSubstitution.js index 96bdcaafe0..8163c96d02 100644 --- a/node_modules/es-abstract/2018/GetSubstitution.js +++ b/node_modules/es-abstract/2018/GetSubstitution.js @@ -19,16 +19,12 @@ var inspect = require('object-inspect'); var Get = require('./Get'); var IsArray = require('./IsArray'); -var IsInteger = require('./IsInteger'); var ToObject = require('./ToObject'); var ToString = require('./ToString'); var Type = require('./Type'); -var canDistinguishSparseFromUndefined = 0 in [undefined]; // IE 6 - 8 have a bug where this returns false - -var isStringOrHole = function (capture, index, arr) { - return Type(capture) === 'String' || (canDistinguishSparseFromUndefined ? !(index in arr) : Type(capture) === 'Undefined'); -}; +var isInteger = require('../helpers/isInteger'); +var isStringOrHole = require('../helpers/isStringOrHole'); // http://262.ecma-international.org/9.0/#sec-getsubstitution @@ -44,7 +40,7 @@ module.exports = function GetSubstitution(matched, str, position, captures, name } var stringLength = str.length; - if (!IsInteger(position) || position < 0 || position > stringLength) { + if (!isInteger(position) || position < 0 || position > stringLength) { throw new $TypeError('Assertion failed: `position` must be a nonnegative integer, and less than or equal to the length of `string`, got ' + inspect(position)); } diff --git a/node_modules/es-abstract/2018/GetV.js b/node_modules/es-abstract/2018/GetV.js index 2dcddb3513..706a9211ab 100644 --- a/node_modules/es-abstract/2018/GetV.js +++ b/node_modules/es-abstract/2018/GetV.js @@ -4,20 +4,22 @@ var GetIntrinsic = require('get-intrinsic'); var $TypeError = GetIntrinsic('%TypeError%'); +var inspect = require('object-inspect'); + var IsPropertyKey = require('./IsPropertyKey'); -var ToObject = require('./ToObject'); +// var ToObject = require('./ToObject'); -// https://ecma-international.org/ecma-262/6.0/#sec-getv +// https://262.ecma-international.org/6.0/#sec-getv module.exports = function GetV(V, P) { // 7.3.2.1 if (!IsPropertyKey(P)) { - throw new $TypeError('Assertion failed: IsPropertyKey(P) is not true'); + throw new $TypeError('Assertion failed: IsPropertyKey(P) is not true, got ' + inspect(P)); } // 7.3.2.2-3 - var O = ToObject(V); + // var O = ToObject(V); // 7.3.2.4 - return O[P]; + return V[P]; }; diff --git a/node_modules/es-abstract/2018/GetValueFromBuffer.js b/node_modules/es-abstract/2018/GetValueFromBuffer.js new file mode 100644 index 0000000000..0a0d14dba7 --- /dev/null +++ b/node_modules/es-abstract/2018/GetValueFromBuffer.js @@ -0,0 +1,108 @@ +'use strict'; + +var GetIntrinsic = require('get-intrinsic'); + +var $SyntaxError = GetIntrinsic('%SyntaxError%'); +var $TypeError = GetIntrinsic('%TypeError%'); +var $Uint8Array = GetIntrinsic('%Uint8Array%', true); + +var callBound = require('call-bind/callBound'); + +var $slice = callBound('Array.prototype.slice'); + +var isInteger = require('../helpers/isInteger'); + +var IsDetachedBuffer = require('./IsDetachedBuffer'); +var RawBytesToNumber = require('./RawBytesToNumber'); + +var isArrayBuffer = require('is-array-buffer'); +var isSharedArrayBuffer = require('is-shared-array-buffer'); +var safeConcat = require('safe-array-concat'); + +var table50 = { + __proto__: null, + $Int8: 1, + $Uint8: 1, + $Uint8C: 1, + $Int16: 2, + $Uint16: 2, + $Int32: 4, + $Uint32: 4, + $Float32: 4, + $Float64: 8 +}; + +var defaultEndianness = require('../helpers/defaultEndianness'); + +// https://262.ecma-international.org/8.0/#sec-getvaluefrombuffer + +module.exports = function GetValueFromBuffer(arrayBuffer, byteIndex, type, isTypedArray, order) { + var isSAB = isSharedArrayBuffer(arrayBuffer); + if (!isArrayBuffer(arrayBuffer) && !isSAB) { + throw new $TypeError('Assertion failed: `arrayBuffer` must be an ArrayBuffer or a SharedArrayBuffer'); + } + + if (!isInteger(byteIndex)) { + throw new $TypeError('Assertion failed: `byteIndex` must be an integer'); + } + + if (typeof type !== 'string') { + throw new $TypeError('Assertion failed: `type` must be a string'); + } + + if (typeof isTypedArray !== 'boolean') { + throw new $TypeError('Assertion failed: `isTypedArray` must be a boolean'); + } + + if (typeof order !== 'string') { + throw new $TypeError('Assertion failed: `order` must be a string'); + } + + if (arguments.length > 5 && typeof arguments[5] !== 'boolean') { + throw new $TypeError('Assertion failed: `isLittleEndian` must be a boolean, if present'); + } + + if (IsDetachedBuffer(arrayBuffer)) { + throw new $TypeError('Assertion failed: `arrayBuffer` is detached'); // step 1 + } + + // 2. Assert: There are sufficient bytes in arrayBuffer starting at byteIndex to represent a value of type. + + if (byteIndex < 0) { + throw new $TypeError('Assertion failed: `byteIndex` must be non-negative'); // step 3 + } + + // 4. Let block be arrayBuffer.[[ArrayBufferData]]. + + var elementSize = table50['$' + type]; // step 5 + if (!elementSize) { + throw new $TypeError('Assertion failed: `type` must be one of "Int8", "Uint8", "Uint8C", "Int16", "Uint16", "Int32", "Uint32", "Float32", or "Float64"'); + } + + var rawValue; + if (isSAB) { // step 6 + /* + a. Let execution be the [[CandidateExecution]] field of the surrounding agent's Agent Record. + b. Let eventList be the [[EventList]] field of the element in execution.[[EventLists]] whose [[AgentSignifier]] is AgentSignifier(). + c. If isTypedArray is true and type is "Int8", "Uint8", "Int16", "Uint16", "Int32", or "Uint32", let noTear be true; otherwise let noTear be false. + d. Let rawValue be a List of length elementSize of nondeterministically chosen byte values. + e. NOTE: In implementations, rawValue is the result of a non-atomic or atomic read instruction on the underlying hardware. The nondeterminism is a semantic prescription of the memory model to describe observable behaviour of hardware with weak consistency. + f. Let readEvent be ReadSharedMemory{ [[Order]]: order, [[NoTear]]: noTear, [[Block]]: block, [[ByteIndex]]: byteIndex, [[ElementSize]]: elementSize }. + g. Append readEvent to eventList. + h. Append Chosen Value Record { [[Event]]: readEvent, [[ChosenValue]]: rawValue } to execution.[[ChosenValues]]. + */ + throw new $SyntaxError('TODO: support SharedArrayBuffers'); + } else { + // 7. Let rawValue be a List of elementSize containing, in order, the elementSize sequence of bytes starting with block[byteIndex]. + rawValue = $slice(new $Uint8Array(arrayBuffer, byteIndex), 0, elementSize); // step 6 + } + + // 8. If isLittleEndian is not present, set isLittleEndian to either true or false. The choice is implementation dependent and should be the alternative that is most efficient for the implementation. An implementation must use the same value each time this step is executed and the same value must be used for the corresponding step in the SetValueInBuffer abstract operation. + var isLittleEndian = arguments.length > 5 ? arguments[5] : defaultEndianness === 'little'; // step 8 + + var bytes = isLittleEndian + ? $slice(safeConcat([0, 0, 0, 0, 0, 0, 0, 0], rawValue), -elementSize) + : $slice(safeConcat(rawValue, [0, 0, 0, 0, 0, 0, 0, 0]), 0, elementSize); + + return RawBytesToNumber(type, bytes, isLittleEndian); +}; diff --git a/node_modules/es-abstract/2018/HasOwnProperty.js b/node_modules/es-abstract/2018/HasOwnProperty.js index 04d28495f9..1f29ba4df1 100644 --- a/node_modules/es-abstract/2018/HasOwnProperty.js +++ b/node_modules/es-abstract/2018/HasOwnProperty.js @@ -9,7 +9,7 @@ var has = require('has'); var IsPropertyKey = require('./IsPropertyKey'); var Type = require('./Type'); -// https://ecma-international.org/ecma-262/6.0/#sec-hasownproperty +// https://262.ecma-international.org/6.0/#sec-hasownproperty module.exports = function HasOwnProperty(O, P) { if (Type(O) !== 'Object') { diff --git a/node_modules/es-abstract/2018/HasProperty.js b/node_modules/es-abstract/2018/HasProperty.js index b341654e7c..91476d208b 100644 --- a/node_modules/es-abstract/2018/HasProperty.js +++ b/node_modules/es-abstract/2018/HasProperty.js @@ -7,7 +7,7 @@ var $TypeError = GetIntrinsic('%TypeError%'); var IsPropertyKey = require('./IsPropertyKey'); var Type = require('./Type'); -// https://ecma-international.org/ecma-262/6.0/#sec-hasproperty +// https://262.ecma-international.org/6.0/#sec-hasproperty module.exports = function HasProperty(O, P) { if (Type(O) !== 'Object') { diff --git a/node_modules/es-abstract/2018/InstanceofOperator.js b/node_modules/es-abstract/2018/InstanceofOperator.js index a3c4d23755..4a34d0c20c 100644 --- a/node_modules/es-abstract/2018/InstanceofOperator.js +++ b/node_modules/es-abstract/2018/InstanceofOperator.js @@ -13,7 +13,7 @@ var OrdinaryHasInstance = require('./OrdinaryHasInstance'); var ToBoolean = require('./ToBoolean'); var Type = require('./Type'); -// https://ecma-international.org/ecma-262/6.0/#sec-instanceofoperator +// https://262.ecma-international.org/6.0/#sec-instanceofoperator module.exports = function InstanceofOperator(O, C) { if (Type(O) !== 'Object') { diff --git a/node_modules/es-abstract/2018/Invoke.js b/node_modules/es-abstract/2018/Invoke.js index d4214ee516..084e5e2825 100644 --- a/node_modules/es-abstract/2018/Invoke.js +++ b/node_modules/es-abstract/2018/Invoke.js @@ -9,7 +9,7 @@ var IsArray = require('./IsArray'); var GetV = require('./GetV'); var IsPropertyKey = require('./IsPropertyKey'); -// https://ecma-international.org/ecma-262/6.0/#sec-invoke +// https://262.ecma-international.org/6.0/#sec-invoke module.exports = function Invoke(O, P) { if (!IsPropertyKey(P)) { diff --git a/node_modules/es-abstract/2018/IsAccessorDescriptor.js b/node_modules/es-abstract/2018/IsAccessorDescriptor.js index 78563e7ecc..da64a302ac 100644 --- a/node_modules/es-abstract/2018/IsAccessorDescriptor.js +++ b/node_modules/es-abstract/2018/IsAccessorDescriptor.js @@ -2,11 +2,11 @@ var has = require('has'); -var assertRecord = require('../helpers/assertRecord'); - var Type = require('./Type'); -// https://ecma-international.org/ecma-262/6.0/#sec-isaccessordescriptor +var assertRecord = require('../helpers/assertRecord'); + +// https://262.ecma-international.org/5.1/#sec-8.10.1 module.exports = function IsAccessorDescriptor(Desc) { if (typeof Desc === 'undefined') { diff --git a/node_modules/es-abstract/2018/IsArray.js b/node_modules/es-abstract/2018/IsArray.js index 600ffa0028..c2c48c1f23 100644 --- a/node_modules/es-abstract/2018/IsArray.js +++ b/node_modules/es-abstract/2018/IsArray.js @@ -1,4 +1,4 @@ 'use strict'; -// https://ecma-international.org/ecma-262/6.0/#sec-isarray +// https://262.ecma-international.org/6.0/#sec-isarray module.exports = require('../helpers/IsArray'); diff --git a/node_modules/es-abstract/2018/IsConcatSpreadable.js b/node_modules/es-abstract/2018/IsConcatSpreadable.js index 141b33414d..10e1eab216 100644 --- a/node_modules/es-abstract/2018/IsConcatSpreadable.js +++ b/node_modules/es-abstract/2018/IsConcatSpreadable.js @@ -9,7 +9,7 @@ var IsArray = require('./IsArray'); var ToBoolean = require('./ToBoolean'); var Type = require('./Type'); -// https://ecma-international.org/ecma-262/6.0/#sec-isconcatspreadable +// https://262.ecma-international.org/6.0/#sec-isconcatspreadable module.exports = function IsConcatSpreadable(O) { if (Type(O) !== 'Object') { diff --git a/node_modules/es-abstract/2018/IsConstructor.js b/node_modules/es-abstract/2018/IsConstructor.js index fe626e1834..62ac47f6a3 100644 --- a/node_modules/es-abstract/2018/IsConstructor.js +++ b/node_modules/es-abstract/2018/IsConstructor.js @@ -12,7 +12,7 @@ try { DefinePropertyOrThrow = null; } -// https://ecma-international.org/ecma-262/6.0/#sec-isconstructor +// https://262.ecma-international.org/6.0/#sec-isconstructor if (DefinePropertyOrThrow && $construct) { var isConstructorMarker = {}; diff --git a/node_modules/es-abstract/2018/IsDataDescriptor.js b/node_modules/es-abstract/2018/IsDataDescriptor.js index 00d14a60eb..9db441e965 100644 --- a/node_modules/es-abstract/2018/IsDataDescriptor.js +++ b/node_modules/es-abstract/2018/IsDataDescriptor.js @@ -2,11 +2,11 @@ var has = require('has'); -var assertRecord = require('../helpers/assertRecord'); - var Type = require('./Type'); -// https://ecma-international.org/ecma-262/6.0/#sec-isdatadescriptor +var assertRecord = require('../helpers/assertRecord'); + +// https://262.ecma-international.org/5.1/#sec-8.10.2 module.exports = function IsDataDescriptor(Desc) { if (typeof Desc === 'undefined') { diff --git a/node_modules/es-abstract/2018/IsDetachedBuffer.js b/node_modules/es-abstract/2018/IsDetachedBuffer.js index 4b373e9ab5..01529bca2c 100644 --- a/node_modules/es-abstract/2018/IsDetachedBuffer.js +++ b/node_modules/es-abstract/2018/IsDetachedBuffer.js @@ -4,10 +4,7 @@ var GetIntrinsic = require('get-intrinsic'); var $TypeError = GetIntrinsic('%TypeError%'); -var callBound = require('call-bind/callBound'); - -var $byteLength = callBound('%ArrayBuffer.prototype.byteLength%', true) - || function byteLength(ab) { return ab.byteLength; }; // in node < 0.11, byteLength is an own nonconfigurable property +var $byteLength = require('array-buffer-byte-length'); var isArrayBuffer = require('is-array-buffer'); @@ -23,7 +20,7 @@ module.exports = function IsDetachedBuffer(arrayBuffer) { try { new global[availableTypedArrays[0]](arrayBuffer); // eslint-disable-line no-new } catch (error) { - return error.name === 'TypeError'; + return !!error && error.name === 'TypeError'; } } return false; diff --git a/node_modules/es-abstract/2018/IsExtensible.js b/node_modules/es-abstract/2018/IsExtensible.js index d6e3638401..aa19b914c2 100644 --- a/node_modules/es-abstract/2018/IsExtensible.js +++ b/node_modules/es-abstract/2018/IsExtensible.js @@ -7,7 +7,7 @@ var $isExtensible = GetIntrinsic('%Object.isExtensible%', true); var isPrimitive = require('../helpers/isPrimitive'); -// https://ecma-international.org/ecma-262/6.0/#sec-isextensible-o +// https://262.ecma-international.org/6.0/#sec-isextensible-o module.exports = $preventExtensions ? function IsExtensible(obj) { diff --git a/node_modules/es-abstract/2018/IsGenericDescriptor.js b/node_modules/es-abstract/2018/IsGenericDescriptor.js index 95b1d353c5..d43bec2b35 100644 --- a/node_modules/es-abstract/2018/IsGenericDescriptor.js +++ b/node_modules/es-abstract/2018/IsGenericDescriptor.js @@ -6,7 +6,7 @@ var IsAccessorDescriptor = require('./IsAccessorDescriptor'); var IsDataDescriptor = require('./IsDataDescriptor'); var Type = require('./Type'); -// https://ecma-international.org/ecma-262/6.0/#sec-isgenericdescriptor +// https://262.ecma-international.org/6.0/#sec-isgenericdescriptor module.exports = function IsGenericDescriptor(Desc) { if (typeof Desc === 'undefined') { diff --git a/node_modules/es-abstract/2018/IsInteger.js b/node_modules/es-abstract/2018/IsInteger.js index f4d1a2a7c5..e3d25f38e3 100644 --- a/node_modules/es-abstract/2018/IsInteger.js +++ b/node_modules/es-abstract/2018/IsInteger.js @@ -1,17 +1,9 @@ 'use strict'; -var abs = require('./abs'); -var floor = require('./floor'); +var isInteger = require('../helpers/isInteger'); -var $isNaN = require('../helpers/isNaN'); -var $isFinite = require('../helpers/isFinite'); - -// https://ecma-international.org/ecma-262/6.0/#sec-isinteger +// https://262.ecma-international.org/6.0/#sec-isinteger module.exports = function IsInteger(argument) { - if (typeof argument !== 'number' || $isNaN(argument) || !$isFinite(argument)) { - return false; - } - var absValue = abs(argument); - return floor(absValue) === absValue; + return isInteger(argument); }; diff --git a/node_modules/es-abstract/2018/IsPromise.js b/node_modules/es-abstract/2018/IsPromise.js index a551ae0c8b..411539b081 100644 --- a/node_modules/es-abstract/2018/IsPromise.js +++ b/node_modules/es-abstract/2018/IsPromise.js @@ -6,7 +6,7 @@ var $PromiseThen = callBound('Promise.prototype.then', true); var Type = require('./Type'); -// https://ecma-international.org/ecma-262/6.0/#sec-ispromise +// https://262.ecma-international.org/6.0/#sec-ispromise module.exports = function IsPromise(x) { if (Type(x) !== 'Object') { diff --git a/node_modules/es-abstract/2018/IsPropertyKey.js b/node_modules/es-abstract/2018/IsPropertyKey.js index f43ab581c7..aaeb6f9b6f 100644 --- a/node_modules/es-abstract/2018/IsPropertyKey.js +++ b/node_modules/es-abstract/2018/IsPropertyKey.js @@ -1,6 +1,6 @@ 'use strict'; -// https://ecma-international.org/ecma-262/6.0/#sec-ispropertykey +// https://262.ecma-international.org/6.0/#sec-ispropertykey module.exports = function IsPropertyKey(argument) { return typeof argument === 'string' || typeof argument === 'symbol'; diff --git a/node_modules/es-abstract/2018/IsRegExp.js b/node_modules/es-abstract/2018/IsRegExp.js index e1054813f1..33d983dc8d 100644 --- a/node_modules/es-abstract/2018/IsRegExp.js +++ b/node_modules/es-abstract/2018/IsRegExp.js @@ -8,7 +8,7 @@ var hasRegExpMatcher = require('is-regex'); var ToBoolean = require('./ToBoolean'); -// https://ecma-international.org/ecma-262/6.0/#sec-isregexp +// https://262.ecma-international.org/6.0/#sec-isregexp module.exports = function IsRegExp(argument) { if (!argument || typeof argument !== 'object') { diff --git a/node_modules/es-abstract/2018/IsWordChar.js b/node_modules/es-abstract/2018/IsWordChar.js new file mode 100644 index 0000000000..5d61804925 --- /dev/null +++ b/node_modules/es-abstract/2018/IsWordChar.js @@ -0,0 +1,48 @@ +'use strict'; + +var GetIntrinsic = require('get-intrinsic'); + +var $TypeError = GetIntrinsic('%TypeError%'); + +var callBound = require('call-bind/callBound'); + +var $indexOf = callBound('String.prototype.indexOf'); + +var IsArray = require('./IsArray'); +var IsInteger = require('./IsInteger'); +var Type = require('./Type'); +var WordCharacters = require('./WordCharacters'); + +var every = require('../helpers/every'); + +var isChar = function isChar(c) { + return typeof c === 'string'; +}; + +// https://262.ecma-international.org/8.0/#sec-runtime-semantics-iswordchar-abstract-operation + +// note: prior to ES2023, this AO erroneously omitted the latter of its arguments. +module.exports = function IsWordChar(e, InputLength, Input, IgnoreCase, Unicode) { + if (!IsInteger(e)) { + throw new $TypeError('Assertion failed: `e` must be an integer'); + } + if (!IsInteger(InputLength)) { + throw new $TypeError('Assertion failed: `InputLength` must be an integer'); + } + if (!IsArray(Input) || !every(Input, isChar)) { + throw new $TypeError('Assertion failed: `Input` must be a List of characters'); + } + if (Type(IgnoreCase) !== 'Boolean' || Type(Unicode) !== 'Boolean') { + throw new $TypeError('Assertion failed: `IgnoreCase` and `Unicode` must be booleans'); + } + + if (e === -1 || e === InputLength) { + return false; // step 1 + } + + var c = Input[e]; // step 2 + + var wordChars = WordCharacters(IgnoreCase, Unicode); + + return $indexOf(wordChars, c) > -1; // steps 3-4 +}; diff --git a/node_modules/es-abstract/2018/IteratorClose.js b/node_modules/es-abstract/2018/IteratorClose.js index f703ea632f..7c1076082e 100644 --- a/node_modules/es-abstract/2018/IteratorClose.js +++ b/node_modules/es-abstract/2018/IteratorClose.js @@ -10,7 +10,7 @@ var GetMethod = require('./GetMethod'); var IsCallable = require('./IsCallable'); var Type = require('./Type'); -// https://ecma-international.org/ecma-262/6.0/#sec-iteratorclose +// https://262.ecma-international.org/6.0/#sec-iteratorclose module.exports = function IteratorClose(iterator, completion) { if (Type(iterator) !== 'Object') { diff --git a/node_modules/es-abstract/2018/IteratorComplete.js b/node_modules/es-abstract/2018/IteratorComplete.js index ed4efa37d5..29f5f75fea 100644 --- a/node_modules/es-abstract/2018/IteratorComplete.js +++ b/node_modules/es-abstract/2018/IteratorComplete.js @@ -8,7 +8,7 @@ var Get = require('./Get'); var ToBoolean = require('./ToBoolean'); var Type = require('./Type'); -// https://ecma-international.org/ecma-262/6.0/#sec-iteratorcomplete +// https://262.ecma-international.org/6.0/#sec-iteratorcomplete module.exports = function IteratorComplete(iterResult) { if (Type(iterResult) !== 'Object') { diff --git a/node_modules/es-abstract/2018/IteratorNext.js b/node_modules/es-abstract/2018/IteratorNext.js index cf80655b93..d84d66edb5 100644 --- a/node_modules/es-abstract/2018/IteratorNext.js +++ b/node_modules/es-abstract/2018/IteratorNext.js @@ -7,7 +7,7 @@ var $TypeError = GetIntrinsic('%TypeError%'); var Invoke = require('./Invoke'); var Type = require('./Type'); -// https://ecma-international.org/ecma-262/6.0/#sec-iteratornext +// https://262.ecma-international.org/6.0/#sec-iteratornext module.exports = function IteratorNext(iterator, value) { var result = Invoke(iterator, 'next', arguments.length < 2 ? [] : [value]); diff --git a/node_modules/es-abstract/2018/IteratorStep.js b/node_modules/es-abstract/2018/IteratorStep.js index 41b9d1b251..85bcd95c04 100644 --- a/node_modules/es-abstract/2018/IteratorStep.js +++ b/node_modules/es-abstract/2018/IteratorStep.js @@ -3,7 +3,7 @@ var IteratorComplete = require('./IteratorComplete'); var IteratorNext = require('./IteratorNext'); -// https://ecma-international.org/ecma-262/6.0/#sec-iteratorstep +// https://262.ecma-international.org/6.0/#sec-iteratorstep module.exports = function IteratorStep(iterator) { var result = IteratorNext(iterator); diff --git a/node_modules/es-abstract/2018/IteratorValue.js b/node_modules/es-abstract/2018/IteratorValue.js index d15d8aebbf..e9b16daed5 100644 --- a/node_modules/es-abstract/2018/IteratorValue.js +++ b/node_modules/es-abstract/2018/IteratorValue.js @@ -7,7 +7,7 @@ var $TypeError = GetIntrinsic('%TypeError%'); var Get = require('./Get'); var Type = require('./Type'); -// https://ecma-international.org/ecma-262/6.0/#sec-iteratorvalue +// https://262.ecma-international.org/6.0/#sec-iteratorvalue module.exports = function IteratorValue(iterResult) { if (Type(iterResult) !== 'Object') { diff --git a/node_modules/es-abstract/2018/NewPromiseCapability.js b/node_modules/es-abstract/2018/NewPromiseCapability.js new file mode 100644 index 0000000000..e30b08811d --- /dev/null +++ b/node_modules/es-abstract/2018/NewPromiseCapability.js @@ -0,0 +1,36 @@ +'use strict'; + +var GetIntrinsic = require('get-intrinsic'); + +var $TypeError = GetIntrinsic('%TypeError%'); + +var IsCallable = require('es-abstract/2022/IsCallable'); +var IsConstructor = require('es-abstract/2022/IsConstructor'); + +// https://262.ecma-international.org/6.0/#sec-newpromisecapability + +module.exports = function NewPromiseCapability(C) { + if (!IsConstructor(C)) { + throw new $TypeError('C must be a constructor'); // step 1 + } + + var resolvingFunctions = { '[[Resolve]]': void undefined, '[[Reject]]': void undefined }; // step 3 + + var promise = new C(function (resolve, reject) { // steps 4-5 + if (typeof resolvingFunctions['[[Resolve]]'] !== 'undefined' || typeof resolvingFunctions['[[Reject]]'] !== 'undefined') { + throw new $TypeError('executor has already been called'); // step 4.a, 4.b + } + resolvingFunctions['[[Resolve]]'] = resolve; // step 4.c + resolvingFunctions['[[Reject]]'] = reject; // step 4.d + }); // step 4-6 + + if (!IsCallable(resolvingFunctions['[[Resolve]]']) || !IsCallable(resolvingFunctions['[[Reject]]'])) { + throw new $TypeError('executor must provide valid resolve and reject functions'); // steps 7-8 + } + + return { + '[[Promise]]': promise, + '[[Resolve]]': resolvingFunctions['[[Resolve]]'], + '[[Reject]]': resolvingFunctions['[[Reject]]'] + }; // step 9 +}; diff --git a/node_modules/es-abstract/2018/NumberToRawBytes.js b/node_modules/es-abstract/2018/NumberToRawBytes.js index b26cd22fde..c85e971962 100644 --- a/node_modules/es-abstract/2018/NumberToRawBytes.js +++ b/node_modules/es-abstract/2018/NumberToRawBytes.js @@ -2,23 +2,8 @@ var GetIntrinsic = require('get-intrinsic'); -var $floor = GetIntrinsic('%Math.floor%'); -var $log = GetIntrinsic('%Math.log%'); -var $log2E = GetIntrinsic('%Math.LOG2E%'); -var $log2 = GetIntrinsic('%Math.log2%', true) || function log2(x) { - return $log(x) * $log2E; -}; -var $parseInt = GetIntrinsic('%parseInt%'); -var $pow = GetIntrinsic('%Math.pow%'); var $TypeError = GetIntrinsic('%TypeError%'); -var callBound = require('call-bind/callBound'); - -var $reverse = callBound('Array.prototype.reverse'); -var $numberToString = callBound('Number.prototype.toString'); -var $strSlice = callBound('String.prototype.slice'); - -var abs = require('./abs'); var hasOwnProperty = require('./HasOwnProperty'); var ToInt16 = require('./ToInt16'); var ToInt32 = require('./ToInt32'); @@ -29,8 +14,9 @@ var ToUint8 = require('./ToUint8'); var ToUint8Clamp = require('./ToUint8Clamp'); var Type = require('./Type'); -var isNaN = require('../helpers/isNaN'); -var isFinite = require('../helpers/isFinite'); +var valueToFloat32Bytes = require('../helpers/valueToFloat32Bytes'); +var valueToFloat64Bytes = require('../helpers/valueToFloat64Bytes'); +var integerToNBytes = require('../helpers/integerToNBytes'); var keys = require('object-keys'); @@ -72,105 +58,10 @@ module.exports = function NumberToRawBytes(type, value, isLittleEndian) { throw new $TypeError('Assertion failed: `isLittleEndian` must be a Boolean'); } - var rawBytes = []; - var exponent; - if (type === 'Float32') { // step 1 - if (isNaN(value)) { - return isLittleEndian ? [0, 0, 192, 127] : [127, 192, 0, 0]; // hardcoded - } - - var leastSig; - - if (value === 0) { - leastSig = Object.is(value, -0) ? 0x80 : 0; - return isLittleEndian ? [0, 0, 0, leastSig] : [leastSig, 0, 0, 0]; - } - - if (!isFinite(value)) { - leastSig = value < 0 ? 255 : 127; - return isLittleEndian ? [0, 0, 128, leastSig] : [leastSig, 128, 0, 0]; - } - - var sign = value < 0 ? 1 : 0; - value = abs(value); // eslint-disable-line no-param-reassign - - exponent = 0; - while (value >= 2) { - exponent += 1; - value /= 2; // eslint-disable-line no-param-reassign - } - - while (value < 1) { - exponent -= 1; - value *= 2; // eslint-disable-line no-param-reassign - } - - var mantissa = value - 1; - mantissa *= $pow(2, 23); - mantissa = $floor(mantissa); - - exponent += 127; - exponent = exponent << 23; - - var result = sign << 31; - result |= exponent; - result |= mantissa; - - var byte0 = result & 255; - result = result >> 8; - var byte1 = result & 255; - result = result >> 8; - var byte2 = result & 255; - result = result >> 8; - var byte3 = result & 255; - - if (isLittleEndian) { - return [byte0, byte1, byte2, byte3]; - } - return [byte3, byte2, byte1, byte0]; + return valueToFloat32Bytes(value, isLittleEndian); } else if (type === 'Float64') { // step 2 - if (value === 0) { - leastSig = Object.is(value, -0) ? 0x80 : 0; - return isLittleEndian ? [0, 0, 0, 0, 0, 0, 0, leastSig] : [leastSig, 0, 0, 0, 0, 0, 0, 0]; - } - if (isNaN(value)) { - return isLittleEndian ? [0, 0, 0, 0, 0, 0, 248, 127] : [127, 248, 0, 0, 0, 0, 0, 0]; - } - if (!isFinite(value)) { - var infBytes = value < 0 ? [0, 0, 0, 0, 0, 0, 240, 255] : [0, 0, 0, 0, 0, 0, 240, 127]; - return isLittleEndian ? infBytes : $reverse(infBytes); - } - - var isNegative = value < 0; - if (isNegative) { value = -value; } // eslint-disable-line no-param-reassign - - exponent = $floor($log2(value)); - var significand = (value / $pow(2, exponent)) - 1; - - var bitString = ''; - for (var i = 0; i < 52; i++) { - significand *= 2; - if (significand >= 1) { - bitString += '1'; - significand -= 1; - } else { - bitString += '0'; - } - } - - exponent += 1023; - var exponentBits = $numberToString(exponent, 2); - while (exponentBits.length < 11) { exponentBits = '0' + exponentBits; } - - var fullBitString = (isNegative ? '1' : '0') + exponentBits + bitString; - while (fullBitString.length < 64) { fullBitString = '0' + fullBitString; } - - for (i = 0; i < 8; i++) { - rawBytes[i] = $parseInt($strSlice(fullBitString, i * 8, (i + 1) * 8), 2); - } - - return isLittleEndian ? $reverse(rawBytes) : rawBytes; + return valueToFloat64Bytes(value, isLittleEndian); } // step 3 var n = TypeToSizes[type]; // step 3.a @@ -179,20 +70,5 @@ module.exports = function NumberToRawBytes(type, value, isLittleEndian) { var intValue = convOp(value); // step 3.c - /* - if (intValue >= 0) { // step 3.d - // Let rawBytes be a List containing the n-byte binary encoding of intValue. If isLittleEndian is false, the bytes are ordered in big endian order. Otherwise, the bytes are ordered in little endian order. - } else { // step 3.e - // Let rawBytes be a List containing the n-byte binary 2's complement encoding of intValue. If isLittleEndian is false, the bytes are ordered in big endian order. Otherwise, the bytes are ordered in little endian order. - } - */ - if (intValue < 0) { - intValue = intValue >>> 0; - } - for (i = 0; i < n; i++) { - rawBytes[isLittleEndian ? i : n - 1 - i] = intValue & 0xff; - intValue = intValue >> 8; - } - - return rawBytes; // step 4 + return integerToNBytes(intValue, n, isLittleEndian); // step 3.d, 3.e, 4 }; diff --git a/node_modules/es-abstract/2018/ObjectCreate.js b/node_modules/es-abstract/2018/ObjectCreate.js index 1f4bb16af4..d7d2d04d92 100644 --- a/node_modules/es-abstract/2018/ObjectCreate.js +++ b/node_modules/es-abstract/2018/ObjectCreate.js @@ -15,7 +15,7 @@ var SLOT = require('internal-slot'); var hasProto = require('has-proto')(); -// https://ecma-international.org/ecma-262/6.0/#sec-objectcreate +// https://262.ecma-international.org/6.0/#sec-objectcreate module.exports = function ObjectCreate(proto, internalSlotsList) { if (proto !== null && Type(proto) !== 'Object') { diff --git a/node_modules/es-abstract/2018/ObjectDefineProperties.js b/node_modules/es-abstract/2018/ObjectDefineProperties.js index f096f1edee..b47603487c 100644 --- a/node_modules/es-abstract/2018/ObjectDefineProperties.js +++ b/node_modules/es-abstract/2018/ObjectDefineProperties.js @@ -3,7 +3,6 @@ var callBound = require('call-bind/callBound'); var DefinePropertyOrThrow = require('./DefinePropertyOrThrow'); -var FromPropertyDescriptor = require('./FromPropertyDescriptor'); var Get = require('./Get'); var ToObject = require('./ToObject'); var ToPropertyDescriptor = require('./ToPropertyDescriptor'); @@ -32,7 +31,6 @@ module.exports = function ObjectDefineProperties(O, Properties) { forEach(descriptors, function (pair) { // step 5 var P = pair[0]; // step 5.a var desc = pair[1]; // step 5.b - desc = FromPropertyDescriptor(desc); // TODO: remove this once DefinePropertyOrThrow is fixed DefinePropertyOrThrow(O, P, desc); // step 5.c }); diff --git a/node_modules/es-abstract/2018/OrdinaryCreateFromConstructor.js b/node_modules/es-abstract/2018/OrdinaryCreateFromConstructor.js index e2a299eaa9..ede44ed6b7 100644 --- a/node_modules/es-abstract/2018/OrdinaryCreateFromConstructor.js +++ b/node_modules/es-abstract/2018/OrdinaryCreateFromConstructor.js @@ -7,7 +7,7 @@ var GetPrototypeFromConstructor = require('./GetPrototypeFromConstructor'); var IsArray = require('./IsArray'); var ObjectCreate = require('./ObjectCreate'); -// https://ecma-international.org/ecma-262/6.0/#sec-ordinarycreatefromconstructor +// https://262.ecma-international.org/6.0/#sec-ordinarycreatefromconstructor module.exports = function OrdinaryCreateFromConstructor(constructor, intrinsicDefaultProto) { GetIntrinsic(intrinsicDefaultProto); // throws if not a valid intrinsic diff --git a/node_modules/es-abstract/2018/OrdinaryDefineOwnProperty.js b/node_modules/es-abstract/2018/OrdinaryDefineOwnProperty.js index 34f029f7e5..70cd4fe58d 100644 --- a/node_modules/es-abstract/2018/OrdinaryDefineOwnProperty.js +++ b/node_modules/es-abstract/2018/OrdinaryDefineOwnProperty.js @@ -17,7 +17,7 @@ var SameValue = require('./SameValue'); var Type = require('./Type'); var ValidateAndApplyPropertyDescriptor = require('./ValidateAndApplyPropertyDescriptor'); -// https://ecma-international.org/ecma-262/6.0/#sec-ordinarydefineownproperty +// https://262.ecma-international.org/6.0/#sec-ordinarydefineownproperty module.exports = function OrdinaryDefineOwnProperty(O, P, Desc) { if (Type(O) !== 'Object') { diff --git a/node_modules/es-abstract/2018/OrdinaryGetOwnProperty.js b/node_modules/es-abstract/2018/OrdinaryGetOwnProperty.js index fd8035acb9..c23abe1103 100644 --- a/node_modules/es-abstract/2018/OrdinaryGetOwnProperty.js +++ b/node_modules/es-abstract/2018/OrdinaryGetOwnProperty.js @@ -17,7 +17,7 @@ var IsRegExp = require('./IsRegExp'); var ToPropertyDescriptor = require('./ToPropertyDescriptor'); var Type = require('./Type'); -// https://ecma-international.org/ecma-262/6.0/#sec-ordinarygetownproperty +// https://262.ecma-international.org/6.0/#sec-ordinarygetownproperty module.exports = function OrdinaryGetOwnProperty(O, P) { if (Type(O) !== 'Object') { diff --git a/node_modules/es-abstract/2018/OrdinaryHasInstance.js b/node_modules/es-abstract/2018/OrdinaryHasInstance.js index 85a240ca2f..996a50e070 100644 --- a/node_modules/es-abstract/2018/OrdinaryHasInstance.js +++ b/node_modules/es-abstract/2018/OrdinaryHasInstance.js @@ -8,10 +8,10 @@ var Get = require('./Get'); var IsCallable = require('./IsCallable'); var Type = require('./Type'); -// https://ecma-international.org/ecma-262/6.0/#sec-ordinaryhasinstance +// https://262.ecma-international.org/6.0/#sec-ordinaryhasinstance module.exports = function OrdinaryHasInstance(C, O) { - if (IsCallable(C) === false) { + if (!IsCallable(C)) { return false; } if (Type(O) !== 'Object') { diff --git a/node_modules/es-abstract/2018/OrdinaryHasProperty.js b/node_modules/es-abstract/2018/OrdinaryHasProperty.js index dd09ca3b1b..27e7da33ad 100644 --- a/node_modules/es-abstract/2018/OrdinaryHasProperty.js +++ b/node_modules/es-abstract/2018/OrdinaryHasProperty.js @@ -7,7 +7,7 @@ var $TypeError = GetIntrinsic('%TypeError%'); var IsPropertyKey = require('./IsPropertyKey'); var Type = require('./Type'); -// https://ecma-international.org/ecma-262/6.0/#sec-ordinaryhasproperty +// https://262.ecma-international.org/6.0/#sec-ordinaryhasproperty module.exports = function OrdinaryHasProperty(O, P) { if (Type(O) !== 'Object') { diff --git a/node_modules/es-abstract/2018/RawBytesToNumber.js b/node_modules/es-abstract/2018/RawBytesToNumber.js index 5811dae404..652471623d 100644 --- a/node_modules/es-abstract/2018/RawBytesToNumber.js +++ b/node_modules/es-abstract/2018/RawBytesToNumber.js @@ -3,7 +3,6 @@ var GetIntrinsic = require('get-intrinsic'); var callBound = require('call-bind/callBound'); -var $pow = GetIntrinsic('%Math.pow%'); var $RangeError = GetIntrinsic('%RangeError%'); var $TypeError = GetIntrinsic('%TypeError%'); @@ -15,6 +14,9 @@ var hasOwnProperty = require('./HasOwnProperty'); var IsArray = require('./IsArray'); var Type = require('./Type'); +var bytesAsFloat32 = require('../helpers/bytesAsFloat32'); +var bytesAsFloat64 = require('../helpers/bytesAsFloat64'); +var bytesAsInteger = require('../helpers/bytesAsInteger'); var every = require('../helpers/every'); var isByteValue = require('../helpers/isByteValue'); @@ -57,89 +59,16 @@ module.exports = function RawBytesToNumber(type, rawBytes, isLittleEndian) { // eslint-disable-next-line no-param-reassign rawBytes = $slice(rawBytes, 0, elementSize); if (!isLittleEndian) { - // eslint-disable-next-line no-param-reassign - rawBytes = $reverse(rawBytes); // step 2 + $reverse(rawBytes); // step 2 } - /* eslint no-redeclare: 1 */ if (type === 'Float32') { // step 3 - /* - Let value be the byte elements of rawBytes concatenated and interpreted as a little-endian bit string encoding of an IEEE 754-2008 binary32 value. -If value is an IEEE 754-2008 binary32 NaN value, return the NaN Number value. -Return the Number value that corresponds to value. - */ - var sign = (rawBytes[3] & 0x80) >> 7; // first bit - var exponent = ((rawBytes[3] & 0x7F) << 1) // 7 bits from index 3 - | ((rawBytes[2] & 0x80) >> 7); // 1 bit from index 2 - var mantissa = ((rawBytes[2] & 0x7F) << 16) // 7 bits from index 2 - | (rawBytes[1] << 8) // 8 bits from index 1 - | rawBytes[0]; // 8 bits from index 0 - - if (exponent === 0 && mantissa === 0) { - return sign === 0 ? 0 : -0; - } - if (exponent === 0xFF && mantissa === 0) { - return sign === 0 ? Infinity : -Infinity; - } - if (exponent === 0xFF && mantissa !== 0) { - return NaN; - } - - exponent -= 127; // subtract the bias - - // return $pow(-1, sign) * mantissa / $pow(2, 23) * $pow(2, exponent); - // return $pow(-1, sign) * (mantissa + 0x1000000) * $pow(2, exponent - 23); - return $pow(-1, sign) * (1 + (mantissa / $pow(2, 23))) * $pow(2, exponent); + return bytesAsFloat32(rawBytes); } if (type === 'Float64') { // step 4 - /* - Let value be the byte elements of rawBytes concatenated and interpreted as a little-endian bit string encoding of an IEEE 754-2008 binary64 value. -If value is an IEEE 754-2008 binary64 NaN value, return the NaN Number value. -Return the Number value that corresponds to value. - */ - var sign = rawBytes[7] & 0x80 ? -1 : 1; // first bit - var exponent = ((rawBytes[7] & 0x7F) << 4) // 7 bits from index 7 - | ((rawBytes[6] & 0xF0) >> 4); // 4 bits from index 6 - var mantissa = ((rawBytes[6] & 0x0F) * 0x1000000000000) // 4 bits from index 6 - + (rawBytes[5] * 0x10000000000) // 8 bits from index 5 - + (rawBytes[4] * 0x100000000) // 8 bits from index 4 - + (rawBytes[3] * 0x1000000) // 8 bits from index 3 - + (rawBytes[2] * 0x10000) // 8 bits from index 2 - + (rawBytes[1] * 0x100) // 8 bits from index 1 - + rawBytes[0]; // 8 bits from index 0 - - if (exponent === 0 && mantissa === 0) { - return sign * 0; - } - if (exponent === 0x7FF && mantissa !== 0) { - return NaN; - } - if (exponent === 0x7FF && mantissa === 0) { - return sign * Infinity; - } - - exponent -= 1023; // subtract the bias - - return sign * (mantissa + 0x10000000000000) * $pow(2, exponent - 52); - } - - // this is common to both branches - var intValue = 0; - for (var i = 0; i < rawBytes.length; i++) { - intValue |= rawBytes[i] << (8 * i); - } - /* - Let intValue be the byte elements of rawBytes concatenated and interpreted as a bit string encoding of an unsigned little-endian binary number. - */ - - if ($charAt(type, 0) !== 'U') { // steps 5-6 - // Let intValue be the byte elements of rawBytes concatenated and interpreted as a bit string encoding of a binary little-endian 2's complement number of bit length elementSize × 8. - var bitLength = elementSize * 8; - if (bitLength < 32) { - intValue = (intValue << (32 - bitLength)) >> (32 - bitLength); - } + return bytesAsFloat64(rawBytes); } - return intValue; // step 7 + return bytesAsInteger(rawBytes, elementSize, $charAt(type, 0) === 'U', false); }; diff --git a/node_modules/es-abstract/2018/RegExpExec.js b/node_modules/es-abstract/2018/RegExpExec.js index 29fee1720c..cf15207415 100644 --- a/node_modules/es-abstract/2018/RegExpExec.js +++ b/node_modules/es-abstract/2018/RegExpExec.js @@ -11,7 +11,7 @@ var Get = require('./Get'); var IsCallable = require('./IsCallable'); var Type = require('./Type'); -// https://ecma-international.org/ecma-262/6.0/#sec-regexpexec +// https://262.ecma-international.org/6.0/#sec-regexpexec module.exports = function RegExpExec(R, S) { if (Type(R) !== 'Object') { diff --git a/node_modules/es-abstract/2018/SameValueZero.js b/node_modules/es-abstract/2018/SameValueZero.js index bf1a1486a1..3e2851b5ee 100644 --- a/node_modules/es-abstract/2018/SameValueZero.js +++ b/node_modules/es-abstract/2018/SameValueZero.js @@ -2,7 +2,7 @@ var $isNaN = require('../helpers/isNaN'); -// https://ecma-international.org/ecma-262/6.0/#sec-samevaluezero +// https://262.ecma-international.org/6.0/#sec-samevaluezero module.exports = function SameValueZero(x, y) { return (x === y) || ($isNaN(x) && $isNaN(y)); diff --git a/node_modules/es-abstract/2018/Set.js b/node_modules/es-abstract/2018/Set.js index 0971498879..9697031363 100644 --- a/node_modules/es-abstract/2018/Set.js +++ b/node_modules/es-abstract/2018/Set.js @@ -18,7 +18,7 @@ var noThrowOnStrictViolation = (function () { } }()); -// https://ecma-international.org/ecma-262/6.0/#sec-set-o-p-v-throw +// https://262.ecma-international.org/6.0/#sec-set-o-p-v-throw module.exports = function Set(O, P, V, Throw) { if (Type(O) !== 'Object') { diff --git a/node_modules/es-abstract/2018/SetFunctionLength.js b/node_modules/es-abstract/2018/SetFunctionLength.js index c1160c8c07..14228bf184 100644 --- a/node_modules/es-abstract/2018/SetFunctionLength.js +++ b/node_modules/es-abstract/2018/SetFunctionLength.js @@ -7,9 +7,10 @@ var $TypeError = GetIntrinsic('%TypeError%'); var DefinePropertyOrThrow = require('./DefinePropertyOrThrow'); var HasOwnProperty = require('./HasOwnProperty'); var IsExtensible = require('./IsExtensible'); -var IsInteger = require('./IsInteger'); var Type = require('./Type'); +var isInteger = require('../helpers/isInteger'); + // https://262.ecma-international.org/9.0/#sec-setfunctionlength module.exports = function SetFunctionLength(F, length) { @@ -19,7 +20,7 @@ module.exports = function SetFunctionLength(F, length) { if (Type(length) !== 'Number') { throw new $TypeError('Assertion failed: `length` must be a Number'); } - if (length < 0 || !IsInteger(length)) { + if (length < 0 || !isInteger(length)) { throw new $TypeError('Assertion failed: `length` must be an integer >= 0'); } return DefinePropertyOrThrow(F, 'length', { diff --git a/node_modules/es-abstract/2018/SetFunctionName.js b/node_modules/es-abstract/2018/SetFunctionName.js index 03ec2227c7..f7fb0a9aab 100644 --- a/node_modules/es-abstract/2018/SetFunctionName.js +++ b/node_modules/es-abstract/2018/SetFunctionName.js @@ -12,7 +12,7 @@ var DefinePropertyOrThrow = require('./DefinePropertyOrThrow'); var IsExtensible = require('./IsExtensible'); var Type = require('./Type'); -// https://ecma-international.org/ecma-262/6.0/#sec-setfunctionname +// https://262.ecma-international.org/6.0/#sec-setfunctionname module.exports = function SetFunctionName(F, name) { if (typeof F !== 'function') { diff --git a/node_modules/es-abstract/2018/SetIntegrityLevel.js b/node_modules/es-abstract/2018/SetIntegrityLevel.js index 546f3e74f4..aaef85a0a2 100644 --- a/node_modules/es-abstract/2018/SetIntegrityLevel.js +++ b/node_modules/es-abstract/2018/SetIntegrityLevel.js @@ -15,7 +15,7 @@ var IsAccessorDescriptor = require('./IsAccessorDescriptor'); var ToPropertyDescriptor = require('./ToPropertyDescriptor'); var Type = require('./Type'); -// https://ecma-international.org/ecma-262/6.0/#sec-setintegritylevel +// https://262.ecma-international.org/6.0/#sec-setintegritylevel module.exports = function SetIntegrityLevel(O, level) { if (Type(O) !== 'Object') { diff --git a/node_modules/es-abstract/2018/SetValueInBuffer.js b/node_modules/es-abstract/2018/SetValueInBuffer.js new file mode 100644 index 0000000000..8208445890 --- /dev/null +++ b/node_modules/es-abstract/2018/SetValueInBuffer.js @@ -0,0 +1,120 @@ +'use strict'; + +var GetIntrinsic = require('get-intrinsic'); + +var $TypeError = GetIntrinsic('%TypeError%'); + +var isInteger = require('../helpers/isInteger'); + +var IsDetachedBuffer = require('./IsDetachedBuffer'); +var ToInt16 = require('./ToInt16'); +var ToInt32 = require('./ToInt32'); +var ToInt8 = require('./ToInt8'); +var ToUint16 = require('./ToUint16'); +var ToUint32 = require('./ToUint32'); +var ToUint8 = require('./ToUint8'); +var ToUint8Clamp = require('./ToUint8Clamp'); + +var isArrayBuffer = require('is-array-buffer'); +var has = require('has'); + +var table49 = { + __proto__: null, + Int8: 1, + Uint8: 1, + Uint8C: 1, + Int16: 2, + Uint16: 2, + Int32: 4, + Uint32: 4, + Float32: 4, + Float64: 8 +}; + +var TypeToAO = { + __proto__: null, + Int8: ToInt8, + Uint8: ToUint8, + Uint8C: ToUint8Clamp, + Int16: ToInt16, + Uint16: ToUint16, + Int32: ToInt32, + Uint32: ToUint32 +}; + +var defaultEndianness = require('../helpers/defaultEndianness'); +var forEach = require('../helpers/forEach'); +var integerToNBytes = require('../helpers/integerToNBytes'); +var valueToFloat32Bytes = require('../helpers/valueToFloat32Bytes'); +var valueToFloat64Bytes = require('../helpers/valueToFloat64Bytes'); + +// https://262.ecma-international.org/6.0/#sec-setvalueinbuffer + +module.exports = function SetValueInBuffer(arrayBuffer, byteIndex, type, value) { + if (!isArrayBuffer(arrayBuffer)) { + throw new $TypeError('Assertion failed: `arrayBuffer` must be an ArrayBuffer'); + } + + if (!isInteger(byteIndex)) { + throw new $TypeError('Assertion failed: `byteIndex` must be an integer'); + } + + if (typeof type !== 'string' || !has(table49, type)) { + throw new $TypeError('Assertion failed: `type` must be a Typed Array Element Type'); + } + + if (typeof value !== 'number') { + throw new $TypeError('Assertion failed: `value` must be a number'); + } + + if (arguments.length > 4 && typeof arguments[4] !== 'boolean') { + throw new $TypeError('Assertion failed: `isLittleEndian` must be a boolean, if present'); + } + + if (IsDetachedBuffer(arrayBuffer)) { + throw new $TypeError('Assertion failed: ArrayBuffer is detached'); // step 1 + } + + // 2. Assert: There are sufficient bytes in arrayBuffer starting at byteIndex to represent a value of type. + + if (byteIndex < 0) { + throw new $TypeError('Assertion failed: `byteIndex` must be non-negative'); // step 3 + } + + // 4. Assert: Type(value) is Number. + + // 5. Let block be arrayBuffer’s [[ArrayBufferData]] internal slot. + + // 6. Assert: block is not undefined. + + var elementSize = table49[type]; // step 7 + if (!elementSize) { + throw new $TypeError('Assertion failed: `type` must be one of "Int8", "Uint8", "Uint8C", "Int16", "Uint16", "Int32", "Uint32", "Float32", or "Float64"'); + } + + // 8. If isLittleEndian is not present, set isLittleEndian to either true or false. The choice is implementation dependent and should be the alternative that is most efficient for the implementation. An implementation must use the same value each time this step is executed and the same value must be used for the corresponding step in the GetValueFromBuffer abstract operation. + var isLittleEndian = arguments.length > 4 ? arguments[4] : defaultEndianness === 'little'; // step 8 + + var rawBytes; + if (type === 'Float32') { // step 1 + rawBytes = valueToFloat32Bytes(value, isLittleEndian); + } else if (type === 'Float64') { // step 2 + rawBytes = valueToFloat64Bytes(value, isLittleEndian); + } else { + var n = table49[type]; // step 3.a + + var convOp = TypeToAO[type]; // step 3.b + + var intValue = convOp(value); // step 3.c + + rawBytes = integerToNBytes(intValue, n, isLittleEndian); // step 3.d, 3.e, 4 + } + + // 12. Store the individual bytes of rawBytes into block, in order, starting at block[byteIndex]. + var arr = new Uint8Array(arrayBuffer, byteIndex, elementSize); + forEach(rawBytes, function (rawByte, i) { + arr[i] = rawByte; + }); + + // 13. Return NormalCompletion(undefined). +}; diff --git a/node_modules/es-abstract/2018/SpeciesConstructor.js b/node_modules/es-abstract/2018/SpeciesConstructor.js index 491eb9b87d..1937b9c9cd 100644 --- a/node_modules/es-abstract/2018/SpeciesConstructor.js +++ b/node_modules/es-abstract/2018/SpeciesConstructor.js @@ -8,7 +8,7 @@ var $TypeError = GetIntrinsic('%TypeError%'); var IsConstructor = require('./IsConstructor'); var Type = require('./Type'); -// https://ecma-international.org/ecma-262/6.0/#sec-speciesconstructor +// https://262.ecma-international.org/6.0/#sec-speciesconstructor module.exports = function SpeciesConstructor(O, defaultConstructor) { if (Type(O) !== 'Object') { diff --git a/node_modules/es-abstract/2018/SplitMatch.js b/node_modules/es-abstract/2018/SplitMatch.js index 8ab05355ed..d57fb691e5 100644 --- a/node_modules/es-abstract/2018/SplitMatch.js +++ b/node_modules/es-abstract/2018/SplitMatch.js @@ -5,9 +5,10 @@ var callBound = require('call-bind/callBound'); var $TypeError = GetIntrinsic('%TypeError%'); -var IsInteger = require('./IsInteger'); var Type = require('./Type'); +var isInteger = require('../helpers/isInteger'); + var $charAt = callBound('String.prototype.charAt'); // https://262.ecma-international.org/6.0/#sec-splitmatch @@ -16,7 +17,7 @@ module.exports = function SplitMatch(S, q, R) { if (Type(S) !== 'String') { throw new $TypeError('Assertion failed: `S` must be a String'); } - if (!IsInteger(q)) { + if (!isInteger(q)) { throw new $TypeError('Assertion failed: `q` must be an integer'); } if (Type(R) !== 'String') { diff --git a/node_modules/es-abstract/2018/SymbolDescriptiveString.js b/node_modules/es-abstract/2018/SymbolDescriptiveString.js index 1efd1316b2..89c253ffae 100644 --- a/node_modules/es-abstract/2018/SymbolDescriptiveString.js +++ b/node_modules/es-abstract/2018/SymbolDescriptiveString.js @@ -10,7 +10,7 @@ var $SymbolToString = callBound('Symbol.prototype.toString', true); var Type = require('./Type'); -// https://ecma-international.org/ecma-262/6.0/#sec-symboldescriptivestring +// https://262.ecma-international.org/6.0/#sec-symboldescriptivestring module.exports = function SymbolDescriptiveString(sym) { if (Type(sym) !== 'Symbol') { diff --git a/node_modules/es-abstract/2018/TestIntegrityLevel.js b/node_modules/es-abstract/2018/TestIntegrityLevel.js index 7f95a6e1d4..7cefab7017 100644 --- a/node_modules/es-abstract/2018/TestIntegrityLevel.js +++ b/node_modules/es-abstract/2018/TestIntegrityLevel.js @@ -13,7 +13,7 @@ var IsExtensible = require('./IsExtensible'); var ToPropertyDescriptor = require('./ToPropertyDescriptor'); var Type = require('./Type'); -// https://ecma-international.org/ecma-262/6.0/#sec-testintegritylevel +// https://262.ecma-international.org/6.0/#sec-testintegritylevel module.exports = function TestIntegrityLevel(O, level) { if (Type(O) !== 'Object') { diff --git a/node_modules/es-abstract/2018/ToDateString.js b/node_modules/es-abstract/2018/ToDateString.js index e636a9ba68..dabb2bb38a 100644 --- a/node_modules/es-abstract/2018/ToDateString.js +++ b/node_modules/es-abstract/2018/ToDateString.js @@ -4,12 +4,13 @@ var GetIntrinsic = require('get-intrinsic'); var $TypeError = GetIntrinsic('%TypeError%'); var $Date = GetIntrinsic('%Date%'); +var $String = GetIntrinsic('%String%'); var $isNaN = require('../helpers/isNaN'); var Type = require('./Type'); -// https://ecma-international.org/ecma-262/6.0/#sec-todatestring +// https://262.ecma-international.org/6.0/#sec-todatestring module.exports = function ToDateString(tv) { if (Type(tv) !== 'Number') { @@ -18,5 +19,5 @@ module.exports = function ToDateString(tv) { if ($isNaN(tv)) { return 'Invalid Date'; } - return $Date(tv); + return $String(new $Date(tv)); }; diff --git a/node_modules/es-abstract/2018/ToInt16.js b/node_modules/es-abstract/2018/ToInt16.js index cb8e7934bb..21694bdeb9 100644 --- a/node_modules/es-abstract/2018/ToInt16.js +++ b/node_modules/es-abstract/2018/ToInt16.js @@ -2,7 +2,7 @@ var ToUint16 = require('./ToUint16'); -// https://ecma-international.org/ecma-262/6.0/#sec-toint16 +// https://262.ecma-international.org/6.0/#sec-toint16 module.exports = function ToInt16(argument) { var int16bit = ToUint16(argument); diff --git a/node_modules/es-abstract/2018/ToInt8.js b/node_modules/es-abstract/2018/ToInt8.js index bc452d826f..e223b6c1d3 100644 --- a/node_modules/es-abstract/2018/ToInt8.js +++ b/node_modules/es-abstract/2018/ToInt8.js @@ -2,7 +2,7 @@ var ToUint8 = require('./ToUint8'); -// https://ecma-international.org/ecma-262/6.0/#sec-toint8 +// https://262.ecma-international.org/6.0/#sec-toint8 module.exports = function ToInt8(argument) { var int8bit = ToUint8(argument); diff --git a/node_modules/es-abstract/2018/ToInteger.js b/node_modules/es-abstract/2018/ToInteger.js index 2975818094..f6625796eb 100644 --- a/node_modules/es-abstract/2018/ToInteger.js +++ b/node_modules/es-abstract/2018/ToInteger.js @@ -4,7 +4,7 @@ var ES5ToInteger = require('../5/ToInteger'); var ToNumber = require('./ToNumber'); -// https://ecma-international.org/ecma-262/6.0/#sec-tointeger +// https://262.ecma-international.org/6.0/#sec-tointeger module.exports = function ToInteger(value) { var number = ToNumber(value); diff --git a/node_modules/es-abstract/2018/ToNumber.js b/node_modules/es-abstract/2018/ToNumber.js index 95bdd9ecda..3abb6a68d2 100644 --- a/node_modules/es-abstract/2018/ToNumber.js +++ b/node_modules/es-abstract/2018/ToNumber.js @@ -19,22 +19,11 @@ var nonWS = ['\u0085', '\u200b', '\ufffe'].join(''); var nonWSregex = new $RegExp('[' + nonWS + ']', 'g'); var hasNonWS = regexTester(nonWSregex); -// whitespace from: https://es5.github.io/#x15.5.4.20 -// implementation from https://github.com/es-shims/es5-shim/blob/v3.4.0/es5-shim.js#L1304-L1324 -var ws = [ - '\x09\x0A\x0B\x0C\x0D\x20\xA0\u1680\u180E\u2000\u2001\u2002\u2003', - '\u2004\u2005\u2006\u2007\u2008\u2009\u200A\u202F\u205F\u3000\u2028', - '\u2029\uFEFF' -].join(''); -var trimRegex = new RegExp('(^[' + ws + ']+)|([' + ws + ']+$)', 'g'); -var $replace = callBound('String.prototype.replace'); -var $trim = function (value) { - return $replace(value, trimRegex, ''); -}; +var $trim = require('string.prototype.trim'); var ToPrimitive = require('./ToPrimitive'); -// https://ecma-international.org/ecma-262/6.0/#sec-tonumber +// https://262.ecma-international.org/6.0/#sec-tonumber module.exports = function ToNumber(argument) { var value = isPrimitive(argument) ? argument : ToPrimitive(argument, $Number); diff --git a/node_modules/es-abstract/2018/ToObject.js b/node_modules/es-abstract/2018/ToObject.js index cb26bac064..26a007cead 100644 --- a/node_modules/es-abstract/2018/ToObject.js +++ b/node_modules/es-abstract/2018/ToObject.js @@ -6,7 +6,7 @@ var $Object = GetIntrinsic('%Object%'); var RequireObjectCoercible = require('./RequireObjectCoercible'); -// https://ecma-international.org/ecma-262/6.0/#sec-toobject +// https://262.ecma-international.org/6.0/#sec-toobject module.exports = function ToObject(value) { RequireObjectCoercible(value); diff --git a/node_modules/es-abstract/2018/ToPrimitive.js b/node_modules/es-abstract/2018/ToPrimitive.js index 0fbe9b8076..56bcf1aa9e 100644 --- a/node_modules/es-abstract/2018/ToPrimitive.js +++ b/node_modules/es-abstract/2018/ToPrimitive.js @@ -2,7 +2,7 @@ var toPrimitive = require('es-to-primitive/es2015'); -// https://ecma-international.org/ecma-262/6.0/#sec-toprimitive +// https://262.ecma-international.org/6.0/#sec-toprimitive module.exports = function ToPrimitive(input) { if (arguments.length > 1) { diff --git a/node_modules/es-abstract/2018/ToPropertyKey.js b/node_modules/es-abstract/2018/ToPropertyKey.js index fc1bf7d862..e363cd93b1 100644 --- a/node_modules/es-abstract/2018/ToPropertyKey.js +++ b/node_modules/es-abstract/2018/ToPropertyKey.js @@ -7,7 +7,7 @@ var $String = GetIntrinsic('%String%'); var ToPrimitive = require('./ToPrimitive'); var ToString = require('./ToString'); -// https://ecma-international.org/ecma-262/6.0/#sec-topropertykey +// https://262.ecma-international.org/6.0/#sec-topropertykey module.exports = function ToPropertyKey(argument) { var key = ToPrimitive(argument, $String); diff --git a/node_modules/es-abstract/2018/ToString.js b/node_modules/es-abstract/2018/ToString.js index 4d494e1e23..d86aed4ce8 100644 --- a/node_modules/es-abstract/2018/ToString.js +++ b/node_modules/es-abstract/2018/ToString.js @@ -5,7 +5,7 @@ var GetIntrinsic = require('get-intrinsic'); var $String = GetIntrinsic('%String%'); var $TypeError = GetIntrinsic('%TypeError%'); -// https://ecma-international.org/ecma-262/6.0/#sec-tostring +// https://262.ecma-international.org/6.0/#sec-tostring module.exports = function ToString(argument) { if (typeof argument === 'symbol') { diff --git a/node_modules/es-abstract/2018/ToUint8.js b/node_modules/es-abstract/2018/ToUint8.js index 2dfd97cb34..6e4e4b5add 100644 --- a/node_modules/es-abstract/2018/ToUint8.js +++ b/node_modules/es-abstract/2018/ToUint8.js @@ -10,7 +10,7 @@ var abs = require('./abs'); var floor = require('./floor'); var modulo = require('./modulo'); -// https://ecma-international.org/ecma-262/6.0/#sec-touint8 +// https://262.ecma-international.org/6.0/#sec-touint8 module.exports = function ToUint8(argument) { var number = ToNumber(argument); diff --git a/node_modules/es-abstract/2018/ToUint8Clamp.js b/node_modules/es-abstract/2018/ToUint8Clamp.js index b0b8ce8ed3..3ba2fd7119 100644 --- a/node_modules/es-abstract/2018/ToUint8Clamp.js +++ b/node_modules/es-abstract/2018/ToUint8Clamp.js @@ -5,13 +5,13 @@ var floor = require('./floor'); var $isNaN = require('../helpers/isNaN'); -// https://ecma-international.org/ecma-262/6.0/#sec-touint8clamp +// https://262.ecma-international.org/6.0/#sec-touint8clamp module.exports = function ToUint8Clamp(argument) { var number = ToNumber(argument); if ($isNaN(number) || number <= 0) { return 0; } if (number >= 0xFF) { return 0xFF; } - var f = floor(argument); + var f = floor(number); if (f + 0.5 < number) { return f + 1; } if (number < f + 0.5) { return f; } if (f % 2 !== 0) { return f + 1; } diff --git a/node_modules/es-abstract/2018/Type.js b/node_modules/es-abstract/2018/Type.js index 0bd11659c2..da5cb76250 100644 --- a/node_modules/es-abstract/2018/Type.js +++ b/node_modules/es-abstract/2018/Type.js @@ -2,7 +2,7 @@ var ES5Type = require('../5/Type'); -// https://ecma-international.org/ecma-262/6.0/#sec-ecmascript-data-types-and-values +// https://262.ecma-international.org/6.0/#sec-ecmascript-data-types-and-values module.exports = function Type(x) { if (typeof x === 'symbol') { diff --git a/node_modules/es-abstract/2018/TypedArrayCreate.js b/node_modules/es-abstract/2018/TypedArrayCreate.js new file mode 100644 index 0000000000..ef9fbe2599 --- /dev/null +++ b/node_modules/es-abstract/2018/TypedArrayCreate.js @@ -0,0 +1,50 @@ +'use strict'; + +var GetIntrinsic = require('get-intrinsic'); + +var $SyntaxError = GetIntrinsic('%SyntaxError%'); +var $TypeError = GetIntrinsic('%TypeError%'); + +var IsArray = require('./IsArray'); +var IsConstructor = require('./IsConstructor'); +var Type = require('./Type'); +var ValidateTypedArray = require('./ValidateTypedArray'); + +var availableTypedArrays = require('available-typed-arrays')(); +var typedArrayLength = require('typed-array-length'); + +// https://262.ecma-international.org/7.0/#typedarray-create + +module.exports = function TypedArrayCreate(constructor, argumentList) { + if (!IsConstructor(constructor)) { + throw new $TypeError('Assertion failed: `constructor` must be a constructor'); + } + if (!IsArray(argumentList)) { + throw new $TypeError('Assertion failed: `argumentList` must be a List'); + } + if (availableTypedArrays.length === 0) { + throw new $SyntaxError('Assertion failed: Typed Arrays are not supported in this environment'); + } + + // var newTypedArray = Construct(constructor, argumentList); // step 1 + var newTypedArray; + if (argumentList.length === 0) { + newTypedArray = new constructor(); + } else if (argumentList.length === 1) { + newTypedArray = new constructor(argumentList[0]); + } else if (argumentList.length === 2) { + newTypedArray = new constructor(argumentList[0], argumentList[1]); + } else { + newTypedArray = new constructor(argumentList[0], argumentList[1], argumentList[2]); + } + + ValidateTypedArray(newTypedArray); // step 2 + + if (argumentList.length === 1 && Type(argumentList[0]) === 'Number') { // step 3 + if (typedArrayLength(newTypedArray) < argumentList[0]) { + throw new $TypeError('Assertion failed: `argumentList[0]` must be <= `newTypedArray.length`'); // step 3.a + } + } + + return newTypedArray; // step 4 +}; diff --git a/node_modules/es-abstract/2018/TypedArraySpeciesCreate.js b/node_modules/es-abstract/2018/TypedArraySpeciesCreate.js new file mode 100644 index 0000000000..1cf8755acc --- /dev/null +++ b/node_modules/es-abstract/2018/TypedArraySpeciesCreate.js @@ -0,0 +1,39 @@ +'use strict'; + +var GetIntrinsic = require('get-intrinsic'); + +var $SyntaxError = GetIntrinsic('%SyntaxError%'); +var $TypeError = GetIntrinsic('%TypeError%'); + +var whichTypedArray = require('which-typed-array'); +var availableTypedArrays = require('available-typed-arrays')(); + +var IsArray = require('./IsArray'); +var SpeciesConstructor = require('./SpeciesConstructor'); +var TypedArrayCreate = require('./TypedArrayCreate'); + +var getConstructor = require('../helpers/typedArrayContructors'); + +// https://262.ecma-international.org/7.0/#typedarray-species-create + +module.exports = function TypedArraySpeciesCreate(exemplar, argumentList) { + if (availableTypedArrays.length === 0) { + throw new $SyntaxError('Assertion failed: Typed Arrays are not supported in this environment'); + } + + var kind = whichTypedArray(exemplar); + if (!kind) { + throw new $TypeError('Assertion failed: exemplar must be a TypedArray'); // step 1 + } + if (!IsArray(argumentList)) { + throw new $TypeError('Assertion failed: `argumentList` must be a List'); // step 1 + } + + var defaultConstructor = getConstructor(kind); // step 2 + if (typeof defaultConstructor !== 'function') { + throw new $SyntaxError('Assertion failed: `constructor` of `exemplar` (' + kind + ') must exist. Please report this!'); + } + var constructor = SpeciesConstructor(exemplar, defaultConstructor); // step 3 + + return TypedArrayCreate(constructor, argumentList); // step 4 +}; diff --git a/node_modules/es-abstract/2018/ValidateAndApplyPropertyDescriptor.js b/node_modules/es-abstract/2018/ValidateAndApplyPropertyDescriptor.js index a7fd218ad5..134b2d5c36 100644 --- a/node_modules/es-abstract/2018/ValidateAndApplyPropertyDescriptor.js +++ b/node_modules/es-abstract/2018/ValidateAndApplyPropertyDescriptor.js @@ -16,10 +16,10 @@ var IsPropertyKey = require('./IsPropertyKey'); var SameValue = require('./SameValue'); var Type = require('./Type'); -// https://ecma-international.org/ecma-262/6.0/#sec-validateandapplypropertydescriptor -// https://ecma-international.org/ecma-262/8.0/#sec-validateandapplypropertydescriptor +// https://262.ecma-international.org/6.0/#sec-validateandapplypropertydescriptor +// https://262.ecma-international.org/8.0/#sec-validateandapplypropertydescriptor -// eslint-disable-next-line max-lines-per-function, max-statements, max-params +// eslint-disable-next-line max-lines-per-function, max-statements module.exports = function ValidateAndApplyPropertyDescriptor(O, P, extensible, Desc, current) { // this uses the ES2017+ logic, since it fixes a number of bugs in the ES2015 logic. var oType = Type(O); diff --git a/node_modules/es-abstract/2018/ValidateTypedArray.js b/node_modules/es-abstract/2018/ValidateTypedArray.js index 83df3a81cb..c7aa313938 100644 --- a/node_modules/es-abstract/2018/ValidateTypedArray.js +++ b/node_modules/es-abstract/2018/ValidateTypedArray.js @@ -5,7 +5,7 @@ var GetIntrinsic = require('get-intrinsic'); var $TypeError = GetIntrinsic('%TypeError%'); var callBound = require('call-bind/callBound'); -var $taSome = callBound('%TypedArray.prototype.some%', true); +var $taSome = callBound('TypedArray.prototype.some', true); var Type = require('./Type'); diff --git a/node_modules/es-abstract/2018/WordCharacters.js b/node_modules/es-abstract/2018/WordCharacters.js new file mode 100644 index 0000000000..aeebc1e75c --- /dev/null +++ b/node_modules/es-abstract/2018/WordCharacters.js @@ -0,0 +1,49 @@ +'use strict'; + +var GetIntrinsic = require('get-intrinsic'); + +var $TypeError = GetIntrinsic('%TypeError%'); + +var callBound = require('call-bind/callBound'); +var $indexOf = callBound('String.prototype.indexOf', true); + +var Canonicalize = require('./Canonicalize'); +var Type = require('./Type'); + +var caseFolding = require('../helpers/caseFolding'); +var forEach = require('../helpers/forEach'); +var OwnPropertyKeys = require('../helpers/OwnPropertyKeys'); + +var A = 'abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789_'; // step 1 + +// https://262.ecma-international.org/8.0/#sec-runtime-semantics-wordcharacters-abstract-operation + +module.exports = function WordCharacters(IgnoreCase, Unicode) { + if (Type(IgnoreCase) !== 'Boolean' || Type(Unicode) !== 'Boolean') { + throw new $TypeError('Assertion failed: `IgnoreCase` and `Unicode` must be booleans'); + } + + var U = ''; + forEach(OwnPropertyKeys(caseFolding.C), function (c) { + if ( + $indexOf(A, c) === -1 // c not in A + && $indexOf(A, Canonicalize(c, IgnoreCase, Unicode)) > -1 // canonicalized c IS in A + ) { + U += caseFolding.C[c]; // step 3 + } + }); + forEach(OwnPropertyKeys(caseFolding.S), function (c) { + if ( + $indexOf(A, c) === -1 // c not in A + && $indexOf(A, Canonicalize(c, IgnoreCase, Unicode)) > -1 // canonicalized c IS in A + ) { + U += caseFolding.S[c]; // step 3 + } + }); + + if ((!Unicode || !IgnoreCase) && U.length > 0) { + throw new $TypeError('Assertion failed: `U` must be empty when `IgnoreCase` and `Unicode` are not both true'); // step 4 + } + + return A + U; // step 5, 6 +}; diff --git a/node_modules/es-abstract/2018/thisBooleanValue.js b/node_modules/es-abstract/2018/thisBooleanValue.js index 27075b9c4f..e93a28ce47 100644 --- a/node_modules/es-abstract/2018/thisBooleanValue.js +++ b/node_modules/es-abstract/2018/thisBooleanValue.js @@ -4,7 +4,7 @@ var $BooleanValueOf = require('call-bind/callBound')('Boolean.prototype.valueOf' var Type = require('./Type'); -// https://ecma-international.org/ecma-262/6.0/#sec-properties-of-the-boolean-prototype-object +// https://262.ecma-international.org/6.0/#sec-properties-of-the-boolean-prototype-object module.exports = function thisBooleanValue(value) { if (Type(value) === 'Boolean') { diff --git a/node_modules/es-abstract/2018/thisNumberValue.js b/node_modules/es-abstract/2018/thisNumberValue.js index 92968dcdf8..03580df26f 100644 --- a/node_modules/es-abstract/2018/thisNumberValue.js +++ b/node_modules/es-abstract/2018/thisNumberValue.js @@ -6,7 +6,7 @@ var Type = require('./Type'); var $NumberValueOf = callBound('Number.prototype.valueOf'); -// https://ecma-international.org/ecma-262/6.0/#sec-properties-of-the-number-prototype-object +// https://262.ecma-international.org/6.0/#sec-properties-of-the-number-prototype-object module.exports = function thisNumberValue(value) { if (Type(value) === 'Number') { diff --git a/node_modules/es-abstract/2018/thisStringValue.js b/node_modules/es-abstract/2018/thisStringValue.js index 8e4274d811..c7bf3da70c 100644 --- a/node_modules/es-abstract/2018/thisStringValue.js +++ b/node_modules/es-abstract/2018/thisStringValue.js @@ -4,7 +4,7 @@ var $StringValueOf = require('call-bind/callBound')('String.prototype.valueOf'); var Type = require('./Type'); -// https://ecma-international.org/ecma-262/6.0/#sec-properties-of-the-string-prototype-object +// https://262.ecma-international.org/6.0/#sec-properties-of-the-string-prototype-object module.exports = function thisStringValue(value) { if (Type(value) === 'String') { diff --git a/node_modules/es-abstract/2018/thisTimeValue.js b/node_modules/es-abstract/2018/thisTimeValue.js index 4687950f13..bd50ddd068 100644 --- a/node_modules/es-abstract/2018/thisTimeValue.js +++ b/node_modules/es-abstract/2018/thisTimeValue.js @@ -2,7 +2,7 @@ var $DateGetTime = require('call-bind/callBound')('Date.prototype.getTime'); -// https://ecma-international.org/ecma-262/6.0/#sec-properties-of-the-date-prototype-object +// https://262.ecma-international.org/6.0/#sec-properties-of-the-date-prototype-object module.exports = function thisTimeValue(value) { return $DateGetTime(value); diff --git a/node_modules/es-abstract/2019/AbstractEqualityComparison.js b/node_modules/es-abstract/2019/AbstractEqualityComparison.js index c776194c1e..b56a506622 100644 --- a/node_modules/es-abstract/2019/AbstractEqualityComparison.js +++ b/node_modules/es-abstract/2019/AbstractEqualityComparison.js @@ -4,7 +4,7 @@ var ToNumber = require('./ToNumber'); var ToPrimitive = require('./ToPrimitive'); var Type = require('./Type'); -// https://ecma-international.org/ecma-262/6.0/#sec-abstract-equality-comparison +// https://262.ecma-international.org/6.0/#sec-abstract-equality-comparison module.exports = function AbstractEqualityComparison(x, y) { var xType = Type(x); diff --git a/node_modules/es-abstract/2019/AddEntriesFromIterable.js b/node_modules/es-abstract/2019/AddEntriesFromIterable.js index a0a5e71bd6..5bea627fb5 100644 --- a/node_modules/es-abstract/2019/AddEntriesFromIterable.js +++ b/node_modules/es-abstract/2019/AddEntriesFromIterable.js @@ -13,9 +13,10 @@ var IsCallable = require('./IsCallable'); var IteratorClose = require('./IteratorClose'); var IteratorStep = require('./IteratorStep'); var IteratorValue = require('./IteratorValue'); +var ThrowCompletion = require('./ThrowCompletion'); var Type = require('./Type'); -// https://262.ecma-international.org/10.0//#sec-add-entries-from-iterable +// https://262.ecma-international.org/10.0/#sec-add-entries-from-iterable module.exports = function AddEntriesFromIterable(target, iterable, adder) { if (!IsCallable(adder)) { @@ -32,21 +33,15 @@ module.exports = function AddEntriesFromIterable(target, iterable, adder) { } var nextItem = IteratorValue(next); if (Type(nextItem) !== 'Object') { - var error = new $TypeError('iterator next must return an Object, got ' + inspect(nextItem)); - return IteratorClose( - iteratorRecord, - function () { throw error; } // eslint-disable-line no-loop-func - ); + var error = ThrowCompletion(new $TypeError('iterator next must return an Object, got ' + inspect(nextItem))); + return IteratorClose(iteratorRecord, error); } try { var k = Get(nextItem, '0'); var v = Get(nextItem, '1'); Call(adder, target, [k, v]); } catch (e) { - return IteratorClose( - iteratorRecord, - function () { throw e; } - ); + return IteratorClose(iteratorRecord, ThrowCompletion(e)); } } }; diff --git a/node_modules/es-abstract/2019/AdvanceStringIndex.js b/node_modules/es-abstract/2019/AdvanceStringIndex.js index 279602b4cd..831ea96ef9 100644 --- a/node_modules/es-abstract/2019/AdvanceStringIndex.js +++ b/node_modules/es-abstract/2019/AdvanceStringIndex.js @@ -2,24 +2,24 @@ var GetIntrinsic = require('get-intrinsic'); -var IsInteger = require('./IsInteger'); var Type = require('./Type'); -var MAX_SAFE_INTEGER = require('../helpers/maxSafeInteger'); +var isInteger = require('../helpers/isInteger'); var isLeadingSurrogate = require('../helpers/isLeadingSurrogate'); var isTrailingSurrogate = require('../helpers/isTrailingSurrogate'); +var MAX_SAFE_INTEGER = require('../helpers/maxSafeInteger'); var $TypeError = GetIntrinsic('%TypeError%'); var $charCodeAt = require('call-bind/callBound')('String.prototype.charCodeAt'); -// https://ecma-international.org/ecma-262/6.0/#sec-advancestringindex +// https://262.ecma-international.org/6.0/#sec-advancestringindex module.exports = function AdvanceStringIndex(S, index, unicode) { if (Type(S) !== 'String') { throw new $TypeError('Assertion failed: `S` must be a String'); } - if (!IsInteger(index) || index < 0 || index > MAX_SAFE_INTEGER) { + if (!isInteger(index) || index < 0 || index > MAX_SAFE_INTEGER) { throw new $TypeError('Assertion failed: `length` must be an integer >= 0 and <= 2**53'); } if (Type(unicode) !== 'Boolean') { diff --git a/node_modules/es-abstract/2019/ArrayCreate.js b/node_modules/es-abstract/2019/ArrayCreate.js index cc890cafbf..0d34db9bec 100644 --- a/node_modules/es-abstract/2019/ArrayCreate.js +++ b/node_modules/es-abstract/2019/ArrayCreate.js @@ -7,7 +7,7 @@ var $RangeError = GetIntrinsic('%RangeError%'); var $SyntaxError = GetIntrinsic('%SyntaxError%'); var $TypeError = GetIntrinsic('%TypeError%'); -var IsInteger = require('./IsInteger'); +var isInteger = require('../helpers/isInteger'); var hasProto = require('has-proto')(); @@ -22,10 +22,10 @@ var $setProto = GetIntrinsic('%Object.setPrototypeOf%', true) || ( : null ); -// https://ecma-international.org/ecma-262/6.0/#sec-arraycreate +// https://262.ecma-international.org/6.0/#sec-arraycreate module.exports = function ArrayCreate(length) { - if (!IsInteger(length) || length < 0) { + if (!isInteger(length) || length < 0) { throw new $TypeError('Assertion failed: `length` must be an integer Number >= 0'); } if (length > MAX_ARRAY_LENGTH) { diff --git a/node_modules/es-abstract/2019/ArraySetLength.js b/node_modules/es-abstract/2019/ArraySetLength.js index 08db9c2e9b..45d7569e7d 100644 --- a/node_modules/es-abstract/2019/ArraySetLength.js +++ b/node_modules/es-abstract/2019/ArraySetLength.js @@ -19,7 +19,7 @@ var ToString = require('./ToString'); var ToUint32 = require('./ToUint32'); var Type = require('./Type'); -// https://ecma-international.org/ecma-262/6.0/#sec-arraysetlength +// https://262.ecma-international.org/6.0/#sec-arraysetlength // eslint-disable-next-line max-statements, max-lines-per-function module.exports = function ArraySetLength(A, Desc) { diff --git a/node_modules/es-abstract/2019/ArraySpeciesCreate.js b/node_modules/es-abstract/2019/ArraySpeciesCreate.js index 26d63b5e20..1944dfe7b8 100644 --- a/node_modules/es-abstract/2019/ArraySpeciesCreate.js +++ b/node_modules/es-abstract/2019/ArraySpeciesCreate.js @@ -9,13 +9,14 @@ var $TypeError = GetIntrinsic('%TypeError%'); var Get = require('./Get'); var IsArray = require('./IsArray'); var IsConstructor = require('./IsConstructor'); -var IsInteger = require('./IsInteger'); var Type = require('./Type'); -// https://ecma-international.org/ecma-262/6.0/#sec-arrayspeciescreate +var isInteger = require('../helpers/isInteger'); + +// https://262.ecma-international.org/6.0/#sec-arrayspeciescreate module.exports = function ArraySpeciesCreate(originalArray, length) { - if (!IsInteger(length) || length < 0) { + if (!isInteger(length) || length < 0) { throw new $TypeError('Assertion failed: length must be an integer >= 0'); } var len = length === 0 ? 0 : length; diff --git a/node_modules/es-abstract/2019/AsyncFromSyncIteratorContinuation.js b/node_modules/es-abstract/2019/AsyncFromSyncIteratorContinuation.js index c1cc7a111a..5618539dd6 100644 --- a/node_modules/es-abstract/2019/AsyncFromSyncIteratorContinuation.js +++ b/node_modules/es-abstract/2019/AsyncFromSyncIteratorContinuation.js @@ -16,7 +16,7 @@ var Type = require('./Type'); var $then = callBound('Promise.prototype.then', true); -// https://ecma-international.org/ecma-262/10.0/#sec-asyncfromsynciteratorcontinuation +// https://262.ecma-international.org/10.0/#sec-asyncfromsynciteratorcontinuation module.exports = function AsyncFromSyncIteratorContinuation(result) { if (Type(result) !== 'Object') { diff --git a/node_modules/es-abstract/2019/Call.js b/node_modules/es-abstract/2019/Call.js index 4b238c6916..be76246db0 100644 --- a/node_modules/es-abstract/2019/Call.js +++ b/node_modules/es-abstract/2019/Call.js @@ -7,9 +7,9 @@ var $TypeError = GetIntrinsic('%TypeError%'); var IsArray = require('./IsArray'); -var $apply = GetIntrinsic('%Reflect.apply%', true) || callBound('%Function.prototype.apply%'); +var $apply = GetIntrinsic('%Reflect.apply%', true) || callBound('Function.prototype.apply'); -// https://ecma-international.org/ecma-262/6.0/#sec-call +// https://262.ecma-international.org/6.0/#sec-call module.exports = function Call(F, V) { var argumentsList = arguments.length > 2 ? arguments[2] : []; diff --git a/node_modules/es-abstract/2019/CanonicalNumericIndexString.js b/node_modules/es-abstract/2019/CanonicalNumericIndexString.js index feb878c032..e9f386326c 100644 --- a/node_modules/es-abstract/2019/CanonicalNumericIndexString.js +++ b/node_modules/es-abstract/2019/CanonicalNumericIndexString.js @@ -9,7 +9,7 @@ var ToNumber = require('./ToNumber'); var ToString = require('./ToString'); var Type = require('./Type'); -// https://ecma-international.org/ecma-262/6.0/#sec-canonicalnumericindexstring +// https://262.ecma-international.org/6.0/#sec-canonicalnumericindexstring module.exports = function CanonicalNumericIndexString(argument) { if (Type(argument) !== 'String') { diff --git a/node_modules/es-abstract/2019/Canonicalize.js b/node_modules/es-abstract/2019/Canonicalize.js new file mode 100644 index 0000000000..8873db4c7c --- /dev/null +++ b/node_modules/es-abstract/2019/Canonicalize.js @@ -0,0 +1,55 @@ +'use strict'; + +var GetIntrinsic = require('get-intrinsic'); + +var $TypeError = GetIntrinsic('%TypeError%'); + +var callBound = require('call-bind/callBound'); +var has = require('has'); + +var $charCodeAt = callBound('String.prototype.charCodeAt'); +var $toUpperCase = callBound('String.prototype.toUpperCase'); + +var Type = require('./Type'); + +var caseFolding = require('../helpers/caseFolding'); + +// https://262.ecma-international.org/6.0/#sec-runtime-semantics-canonicalize-ch + +module.exports = function Canonicalize(ch, IgnoreCase, Unicode) { + if (Type(ch) !== 'String') { + throw new $TypeError('Assertion failed: `ch` must be a character'); + } + + if (Type(IgnoreCase) !== 'Boolean' || Type(Unicode) !== 'Boolean') { + throw new $TypeError('Assertion failed: `IgnoreCase` and `Unicode` must be Booleans'); + } + + if (!IgnoreCase) { + return ch; // step 1 + } + + if (Unicode) { // step 2 + if (has(caseFolding.C, ch)) { + return caseFolding.C[ch]; + } + if (has(caseFolding.S, ch)) { + return caseFolding.S[ch]; + } + return ch; // step 2.b + } + + var u = $toUpperCase(ch); // step 2 + + if (u.length !== 1) { + return ch; // step 3 + } + + var cu = u; // step 4 + + if ($charCodeAt(ch, 0) >= 128 && $charCodeAt(cu, 0) < 128) { + return ch; // step 5 + } + + return cu; +}; diff --git a/node_modules/es-abstract/2019/CharacterRange.js b/node_modules/es-abstract/2019/CharacterRange.js index 70e4b52355..78783a59f2 100644 --- a/node_modules/es-abstract/2019/CharacterRange.js +++ b/node_modules/es-abstract/2019/CharacterRange.js @@ -5,8 +5,8 @@ var callBound = require('call-bind/callBound'); var $fromCharCode = GetIntrinsic('%String.fromCharCode%'); var $TypeError = GetIntrinsic('%TypeError%'); -var $charCodeAt = callBound('%String.prototype.charCodeAt%'); -var $push = callBound('%Array.prototype.push%'); +var $charCodeAt = callBound('String.prototype.charCodeAt'); +var $push = callBound('Array.prototype.push'); module.exports = function CharacterRange(A, B) { if (A.length !== 1 || B.length !== 1) { diff --git a/node_modules/es-abstract/2019/CompletePropertyDescriptor.js b/node_modules/es-abstract/2019/CompletePropertyDescriptor.js index 548bf415a3..e8685197aa 100644 --- a/node_modules/es-abstract/2019/CompletePropertyDescriptor.js +++ b/node_modules/es-abstract/2019/CompletePropertyDescriptor.js @@ -8,7 +8,7 @@ var IsDataDescriptor = require('./IsDataDescriptor'); var IsGenericDescriptor = require('./IsGenericDescriptor'); var Type = require('./Type'); -// https://ecma-international.org/ecma-262/6.0/#sec-completepropertydescriptor +// https://262.ecma-international.org/6.0/#sec-completepropertydescriptor module.exports = function CompletePropertyDescriptor(Desc) { /* eslint no-param-reassign: 0 */ diff --git a/node_modules/es-abstract/2019/CreateAsyncFromSyncIterator.js b/node_modules/es-abstract/2019/CreateAsyncFromSyncIterator.js index dbdce97360..d6ec19bd1a 100644 --- a/node_modules/es-abstract/2019/CreateAsyncFromSyncIterator.js +++ b/node_modules/es-abstract/2019/CreateAsyncFromSyncIterator.js @@ -101,7 +101,7 @@ var $AsyncFromSyncIteratorPrototype = GetIntrinsic('%AsyncFromSyncIteratorProtot } }; -// https://ecma-international.org/ecma-262/10.0/#sec-createasyncfromsynciterator +// https://262.ecma-international.org/10.0/#sec-createasyncfromsynciterator module.exports = function CreateAsyncFromSyncIterator(syncIteratorRecord) { assertRecord(Type, 'Iterator Record', 'syncIteratorRecord', syncIteratorRecord); diff --git a/node_modules/es-abstract/2019/CreateDataProperty.js b/node_modules/es-abstract/2019/CreateDataProperty.js index 02c6cd1f8b..5bd5fc4787 100644 --- a/node_modules/es-abstract/2019/CreateDataProperty.js +++ b/node_modules/es-abstract/2019/CreateDataProperty.js @@ -4,17 +4,11 @@ var GetIntrinsic = require('get-intrinsic'); var $TypeError = GetIntrinsic('%TypeError%'); -var DefineOwnProperty = require('../helpers/DefineOwnProperty'); - -var FromPropertyDescriptor = require('./FromPropertyDescriptor'); -var OrdinaryGetOwnProperty = require('./OrdinaryGetOwnProperty'); -var IsDataDescriptor = require('./IsDataDescriptor'); -var IsExtensible = require('./IsExtensible'); var IsPropertyKey = require('./IsPropertyKey'); -var SameValue = require('./SameValue'); +var OrdinaryDefineOwnProperty = require('./OrdinaryDefineOwnProperty'); var Type = require('./Type'); -// https://ecma-international.org/ecma-262/6.0/#sec-createdataproperty +// https://262.ecma-international.org/6.0/#sec-createdataproperty module.exports = function CreateDataProperty(O, P, V) { if (Type(O) !== 'Object') { @@ -23,23 +17,11 @@ module.exports = function CreateDataProperty(O, P, V) { if (!IsPropertyKey(P)) { throw new $TypeError('Assertion failed: IsPropertyKey(P) is not true'); } - var oldDesc = OrdinaryGetOwnProperty(O, P); - var extensible = !oldDesc || IsExtensible(O); - var nonConfigurable = oldDesc && !oldDesc['[[Configurable]]']; - if (nonConfigurable || !extensible) { - return false; - } - return DefineOwnProperty( - IsDataDescriptor, - SameValue, - FromPropertyDescriptor, - O, - P, - { - '[[Configurable]]': true, - '[[Enumerable]]': true, - '[[Value]]': V, - '[[Writable]]': true - } - ); + var newDesc = { + '[[Configurable]]': true, + '[[Enumerable]]': true, + '[[Value]]': V, + '[[Writable]]': true + }; + return OrdinaryDefineOwnProperty(O, P, newDesc); }; diff --git a/node_modules/es-abstract/2019/CreateDataPropertyOrThrow.js b/node_modules/es-abstract/2019/CreateDataPropertyOrThrow.js index 2f7c410ba3..c40e69368b 100644 --- a/node_modules/es-abstract/2019/CreateDataPropertyOrThrow.js +++ b/node_modules/es-abstract/2019/CreateDataPropertyOrThrow.js @@ -8,7 +8,7 @@ var CreateDataProperty = require('./CreateDataProperty'); var IsPropertyKey = require('./IsPropertyKey'); var Type = require('./Type'); -// // https://ecma-international.org/ecma-262/6.0/#sec-createdatapropertyorthrow +// // https://262.ecma-international.org/6.0/#sec-createdatapropertyorthrow module.exports = function CreateDataPropertyOrThrow(O, P, V) { if (Type(O) !== 'Object') { diff --git a/node_modules/es-abstract/2019/CreateHTML.js b/node_modules/es-abstract/2019/CreateHTML.js index ccded1e65d..ea7633da68 100644 --- a/node_modules/es-abstract/2019/CreateHTML.js +++ b/node_modules/es-abstract/2019/CreateHTML.js @@ -12,7 +12,7 @@ var RequireObjectCoercible = require('./RequireObjectCoercible'); var ToString = require('./ToString'); var Type = require('./Type'); -// https://ecma-international.org/ecma-262/6.0/#sec-createhtml +// https://262.ecma-international.org/6.0/#sec-createhtml module.exports = function CreateHTML(string, tag, attribute, value) { if (Type(tag) !== 'String' || Type(attribute) !== 'String') { diff --git a/node_modules/es-abstract/2019/CreateIterResultObject.js b/node_modules/es-abstract/2019/CreateIterResultObject.js index eea77a5128..ed86b34f25 100644 --- a/node_modules/es-abstract/2019/CreateIterResultObject.js +++ b/node_modules/es-abstract/2019/CreateIterResultObject.js @@ -6,7 +6,7 @@ var $TypeError = GetIntrinsic('%TypeError%'); var Type = require('./Type'); -// https://ecma-international.org/ecma-262/6.0/#sec-createiterresultobject +// https://262.ecma-international.org/6.0/#sec-createiterresultobject module.exports = function CreateIterResultObject(value, done) { if (Type(done) !== 'Boolean') { diff --git a/node_modules/es-abstract/2019/CreateListFromArrayLike.js b/node_modules/es-abstract/2019/CreateListFromArrayLike.js index d1bb8b6587..4c34219206 100644 --- a/node_modules/es-abstract/2019/CreateListFromArrayLike.js +++ b/node_modules/es-abstract/2019/CreateListFromArrayLike.js @@ -14,11 +14,13 @@ var ToLength = require('./ToLength'); var ToString = require('./ToString'); var Type = require('./Type'); -// https://ecma-international.org/ecma-262/6.0/#sec-createlistfromarraylike +var defaultElementTypes = ['Undefined', 'Null', 'Boolean', 'String', 'Symbol', 'Number', 'Object']; + +// https://262.ecma-international.org/6.0/#sec-createlistfromarraylike module.exports = function CreateListFromArrayLike(obj) { var elementTypes = arguments.length > 1 ? arguments[1] - : ['Undefined', 'Null', 'Boolean', 'String', 'Symbol', 'Number', 'Object']; + : defaultElementTypes; if (Type(obj) !== 'Object') { throw new $TypeError('Assertion failed: `obj` must be an Object'); diff --git a/node_modules/es-abstract/2019/CreateMethodProperty.js b/node_modules/es-abstract/2019/CreateMethodProperty.js index 53274a5614..058c0f1760 100644 --- a/node_modules/es-abstract/2019/CreateMethodProperty.js +++ b/node_modules/es-abstract/2019/CreateMethodProperty.js @@ -12,7 +12,7 @@ var IsPropertyKey = require('./IsPropertyKey'); var SameValue = require('./SameValue'); var Type = require('./Type'); -// https://ecma-international.org/ecma-262/6.0/#sec-createmethodproperty +// https://262.ecma-international.org/6.0/#sec-createmethodproperty module.exports = function CreateMethodProperty(O, P, V) { if (Type(O) !== 'Object') { diff --git a/node_modules/es-abstract/2019/DefinePropertyOrThrow.js b/node_modules/es-abstract/2019/DefinePropertyOrThrow.js index 26f2714bb1..8fe097068d 100644 --- a/node_modules/es-abstract/2019/DefinePropertyOrThrow.js +++ b/node_modules/es-abstract/2019/DefinePropertyOrThrow.js @@ -15,7 +15,7 @@ var SameValue = require('./SameValue'); var ToPropertyDescriptor = require('./ToPropertyDescriptor'); var Type = require('./Type'); -// https://ecma-international.org/ecma-262/6.0/#sec-definepropertyorthrow +// https://262.ecma-international.org/6.0/#sec-definepropertyorthrow module.exports = function DefinePropertyOrThrow(O, P, desc) { if (Type(O) !== 'Object') { diff --git a/node_modules/es-abstract/2019/DeletePropertyOrThrow.js b/node_modules/es-abstract/2019/DeletePropertyOrThrow.js index 30d5e57c7b..581bf06ea2 100644 --- a/node_modules/es-abstract/2019/DeletePropertyOrThrow.js +++ b/node_modules/es-abstract/2019/DeletePropertyOrThrow.js @@ -7,7 +7,7 @@ var $TypeError = GetIntrinsic('%TypeError%'); var IsPropertyKey = require('./IsPropertyKey'); var Type = require('./Type'); -// https://ecma-international.org/ecma-262/6.0/#sec-deletepropertyorthrow +// https://262.ecma-international.org/6.0/#sec-deletepropertyorthrow module.exports = function DeletePropertyOrThrow(O, P) { if (Type(O) !== 'Object') { diff --git a/node_modules/es-abstract/2019/FlattenIntoArray.js b/node_modules/es-abstract/2019/FlattenIntoArray.js index ffe5fcd56b..f2a0837c60 100644 --- a/node_modules/es-abstract/2019/FlattenIntoArray.js +++ b/node_modules/es-abstract/2019/FlattenIntoArray.js @@ -16,7 +16,6 @@ var ToString = require('./ToString'); // https://262.ecma-international.org/10.0/#sec-flattenintoarray -// eslint-disable-next-line max-params module.exports = function FlattenIntoArray(target, source, sourceLen, start, depth) { var mapperFunction; if (arguments.length > 5) { diff --git a/node_modules/es-abstract/2019/FromPropertyDescriptor.js b/node_modules/es-abstract/2019/FromPropertyDescriptor.js index e142ed582e..c70f0c60e1 100644 --- a/node_modules/es-abstract/2019/FromPropertyDescriptor.js +++ b/node_modules/es-abstract/2019/FromPropertyDescriptor.js @@ -5,7 +5,7 @@ var fromPropertyDescriptor = require('../helpers/fromPropertyDescriptor'); var Type = require('./Type'); -// https://ecma-international.org/ecma-262/6.0/#sec-frompropertydescriptor +// https://262.ecma-international.org/6.0/#sec-frompropertydescriptor module.exports = function FromPropertyDescriptor(Desc) { if (typeof Desc !== 'undefined') { diff --git a/node_modules/es-abstract/2019/Get.js b/node_modules/es-abstract/2019/Get.js index 297968643f..0973152222 100644 --- a/node_modules/es-abstract/2019/Get.js +++ b/node_modules/es-abstract/2019/Get.js @@ -9,7 +9,7 @@ var inspect = require('object-inspect'); var IsPropertyKey = require('./IsPropertyKey'); var Type = require('./Type'); -// https://ecma-international.org/ecma-262/6.0/#sec-get-o-p +// https://262.ecma-international.org/6.0/#sec-get-o-p module.exports = function Get(O, P) { // 7.3.1.1 diff --git a/node_modules/es-abstract/2019/GetIterator.js b/node_modules/es-abstract/2019/GetIterator.js index 892197a232..145557da42 100644 --- a/node_modules/es-abstract/2019/GetIterator.js +++ b/node_modules/es-abstract/2019/GetIterator.js @@ -11,7 +11,7 @@ var GetMethod = require('./GetMethod'); var IsArray = require('./IsArray'); var Type = require('./Type'); -// https://ecma-international.org/ecma-262/6.0/#sec-getiterator +// https://262.ecma-international.org/6.0/#sec-getiterator module.exports = function GetIterator(obj, method) { var actualMethod = method; diff --git a/node_modules/es-abstract/2019/GetMethod.js b/node_modules/es-abstract/2019/GetMethod.js index d3775178e6..e9f2854ff3 100644 --- a/node_modules/es-abstract/2019/GetMethod.js +++ b/node_modules/es-abstract/2019/GetMethod.js @@ -8,9 +8,9 @@ var GetV = require('./GetV'); var IsCallable = require('./IsCallable'); var IsPropertyKey = require('./IsPropertyKey'); -var debug = require('object-inspect'); +var inspect = require('object-inspect'); -// https://ecma-international.org/ecma-262/6.0/#sec-getmethod +// https://262.ecma-international.org/6.0/#sec-getmethod module.exports = function GetMethod(O, P) { // 7.3.9.1 @@ -28,7 +28,7 @@ module.exports = function GetMethod(O, P) { // 7.3.9.5 if (!IsCallable(func)) { - throw new $TypeError(P + ' is not a function: ' + debug(func)); + throw new $TypeError(inspect(P) + ' is not a function: ' + inspect(func)); } // 7.3.9.6 diff --git a/node_modules/es-abstract/2019/GetOwnPropertyKeys.js b/node_modules/es-abstract/2019/GetOwnPropertyKeys.js index 40c0b367fa..043fd733bd 100644 --- a/node_modules/es-abstract/2019/GetOwnPropertyKeys.js +++ b/node_modules/es-abstract/2019/GetOwnPropertyKeys.js @@ -12,7 +12,7 @@ var keys = require('object-keys'); var esType = require('./Type'); -// https://ecma-international.org/ecma-262/6.0/#sec-getownpropertykeys +// https://262.ecma-international.org/6.0/#sec-getownpropertykeys module.exports = function GetOwnPropertyKeys(O, Type) { if (esType(O) !== 'Object') { diff --git a/node_modules/es-abstract/2019/GetPrototypeFromConstructor.js b/node_modules/es-abstract/2019/GetPrototypeFromConstructor.js index 25ee12f353..0b281ef4fe 100644 --- a/node_modules/es-abstract/2019/GetPrototypeFromConstructor.js +++ b/node_modules/es-abstract/2019/GetPrototypeFromConstructor.js @@ -10,10 +10,13 @@ var Get = require('./Get'); var IsConstructor = require('./IsConstructor'); var Type = require('./Type'); -// https://ecma-international.org/ecma-262/6.0/#sec-getprototypefromconstructor +// https://262.ecma-international.org/6.0/#sec-getprototypefromconstructor module.exports = function GetPrototypeFromConstructor(constructor, intrinsicDefaultProto) { var intrinsic = GetIntrinsic(intrinsicDefaultProto); // throws if not a valid intrinsic + if (Type(intrinsic) !== 'Object') { + throw new $TypeError('intrinsicDefaultProto must be an object'); + } if (!IsConstructor(constructor)) { throw new $TypeError('Assertion failed: `constructor` must be a constructor'); } diff --git a/node_modules/es-abstract/2019/GetSubstitution.js b/node_modules/es-abstract/2019/GetSubstitution.js index 96bdcaafe0..8163c96d02 100644 --- a/node_modules/es-abstract/2019/GetSubstitution.js +++ b/node_modules/es-abstract/2019/GetSubstitution.js @@ -19,16 +19,12 @@ var inspect = require('object-inspect'); var Get = require('./Get'); var IsArray = require('./IsArray'); -var IsInteger = require('./IsInteger'); var ToObject = require('./ToObject'); var ToString = require('./ToString'); var Type = require('./Type'); -var canDistinguishSparseFromUndefined = 0 in [undefined]; // IE 6 - 8 have a bug where this returns false - -var isStringOrHole = function (capture, index, arr) { - return Type(capture) === 'String' || (canDistinguishSparseFromUndefined ? !(index in arr) : Type(capture) === 'Undefined'); -}; +var isInteger = require('../helpers/isInteger'); +var isStringOrHole = require('../helpers/isStringOrHole'); // http://262.ecma-international.org/9.0/#sec-getsubstitution @@ -44,7 +40,7 @@ module.exports = function GetSubstitution(matched, str, position, captures, name } var stringLength = str.length; - if (!IsInteger(position) || position < 0 || position > stringLength) { + if (!isInteger(position) || position < 0 || position > stringLength) { throw new $TypeError('Assertion failed: `position` must be a nonnegative integer, and less than or equal to the length of `string`, got ' + inspect(position)); } diff --git a/node_modules/es-abstract/2019/GetV.js b/node_modules/es-abstract/2019/GetV.js index 2dcddb3513..706a9211ab 100644 --- a/node_modules/es-abstract/2019/GetV.js +++ b/node_modules/es-abstract/2019/GetV.js @@ -4,20 +4,22 @@ var GetIntrinsic = require('get-intrinsic'); var $TypeError = GetIntrinsic('%TypeError%'); +var inspect = require('object-inspect'); + var IsPropertyKey = require('./IsPropertyKey'); -var ToObject = require('./ToObject'); +// var ToObject = require('./ToObject'); -// https://ecma-international.org/ecma-262/6.0/#sec-getv +// https://262.ecma-international.org/6.0/#sec-getv module.exports = function GetV(V, P) { // 7.3.2.1 if (!IsPropertyKey(P)) { - throw new $TypeError('Assertion failed: IsPropertyKey(P) is not true'); + throw new $TypeError('Assertion failed: IsPropertyKey(P) is not true, got ' + inspect(P)); } // 7.3.2.2-3 - var O = ToObject(V); + // var O = ToObject(V); // 7.3.2.4 - return O[P]; + return V[P]; }; diff --git a/node_modules/es-abstract/2019/GetValueFromBuffer.js b/node_modules/es-abstract/2019/GetValueFromBuffer.js new file mode 100644 index 0000000000..e6c7385c17 --- /dev/null +++ b/node_modules/es-abstract/2019/GetValueFromBuffer.js @@ -0,0 +1,106 @@ +'use strict'; + +var GetIntrinsic = require('get-intrinsic'); + +var $TypeError = GetIntrinsic('%TypeError%'); +var $Uint8Array = GetIntrinsic('%Uint8Array%', true); + +var callBound = require('call-bind/callBound'); + +var $slice = callBound('Array.prototype.slice'); + +var isInteger = require('../helpers/isInteger'); + +var IsDetachedBuffer = require('./IsDetachedBuffer'); +var RawBytesToNumber = require('./RawBytesToNumber'); + +var isArrayBuffer = require('is-array-buffer'); +var isSharedArrayBuffer = require('is-shared-array-buffer'); +var safeConcat = require('safe-array-concat'); + +var table59 = { + __proto__: null, + $Int8: 1, + $Uint8: 1, + $Uint8C: 1, + $Int16: 2, + $Uint16: 2, + $Int32: 4, + $Uint32: 4, + $Float32: 4, + $Float64: 8 +}; + +var defaultEndianness = require('../helpers/defaultEndianness'); + +// https://262.ecma-international.org/10.0/#sec-getvaluefrombuffer + +module.exports = function GetValueFromBuffer(arrayBuffer, byteIndex, type, isTypedArray, order) { + var isSAB = isSharedArrayBuffer(arrayBuffer); + if (!isArrayBuffer(arrayBuffer) && !isSAB) { + throw new $TypeError('Assertion failed: `arrayBuffer` must be an ArrayBuffer or a SharedArrayBuffer'); + } + + if (!isInteger(byteIndex)) { + throw new $TypeError('Assertion failed: `byteIndex` must be an integer'); + } + + if (typeof type !== 'string') { + throw new $TypeError('Assertion failed: `type` must be a string'); + } + + if (typeof isTypedArray !== 'boolean') { + throw new $TypeError('Assertion failed: `isTypedArray` must be a boolean'); + } + + if (typeof order !== 'string') { + throw new $TypeError('Assertion failed: `order` must be a string'); + } + + if (arguments.length > 5 && typeof arguments[5] !== 'boolean') { + throw new $TypeError('Assertion failed: `isLittleEndian` must be a boolean, if present'); + } + + if (IsDetachedBuffer(arrayBuffer)) { + throw new $TypeError('Assertion failed: `arrayBuffer` is detached'); // step 1 + } + + // 2. Assert: There are sufficient bytes in arrayBuffer starting at byteIndex to represent a value of type. + + if (byteIndex < 0) { + throw new $TypeError('Assertion failed: `byteIndex` must be non-negative'); // step 3 + } + + // 4. Let block be arrayBuffer.[[ArrayBufferData]]. + + var elementSize = table59['$' + type]; // step 5 + if (!elementSize) { + throw new $TypeError('Assertion failed: `type` must be one of "Int8", "Uint8", "Uint8C", "Int16", "Uint16", "Int32", "Uint32", "Float32", or "Float64"'); + } + + var rawValue; + if (isSAB) { // step 6 + /* + a. Let execution be the [[CandidateExecution]] field of the surrounding agent's Agent Record. + b. Let eventList be the [[EventList]] field of the element in execution.[[EventsRecords]] whose [[AgentSignifier]] is AgentSignifier(). + c. If isTypedArray is true and type is "Int8", "Uint8", "Int16", "Uint16", "Int32", or "Uint32", let noTear be true; otherwise let noTear be false. + d. Let rawValue be a List of length elementSize of nondeterministically chosen byte values. + e. NOTE: In implementations, rawValue is the result of a non-atomic or atomic read instruction on the underlying hardware. The nondeterminism is a semantic prescription of the memory model to describe observable behaviour of hardware with weak consistency. + f. Let readEvent be ReadSharedMemory{ [[Order]]: order, [[NoTear]]: noTear, [[Block]]: block, [[ByteIndex]]: byteIndex, [[ElementSize]]: elementSize }. + g. Append readEvent to eventList. + h. Append Chosen Value Record { [[Event]]: readEvent, [[ChosenValue]]: rawValue } to execution.[[ChosenValues]]. + */ + } else { + // 7. Let rawValue be a List of elementSize containing, in order, the elementSize sequence of bytes starting with block[byteIndex]. + rawValue = $slice(new $Uint8Array(arrayBuffer, byteIndex), 0, elementSize); // step 6 + } + + // 8. If isLittleEndian is not present, set isLittleEndian to either true or false. The choice is implementation dependent and should be the alternative that is most efficient for the implementation. An implementation must use the same value each time this step is executed and the same value must be used for the corresponding step in the SetValueInBuffer abstract operation. + var isLittleEndian = arguments.length > 5 ? arguments[5] : defaultEndianness === 'little'; // step 8 + + var bytes = isLittleEndian + ? $slice(safeConcat([0, 0, 0, 0, 0, 0, 0, 0], rawValue), -elementSize) + : $slice(safeConcat(rawValue, [0, 0, 0, 0, 0, 0, 0, 0]), 0, elementSize); + + return RawBytesToNumber(type, bytes, isLittleEndian); +}; diff --git a/node_modules/es-abstract/2019/HasOwnProperty.js b/node_modules/es-abstract/2019/HasOwnProperty.js index 04d28495f9..1f29ba4df1 100644 --- a/node_modules/es-abstract/2019/HasOwnProperty.js +++ b/node_modules/es-abstract/2019/HasOwnProperty.js @@ -9,7 +9,7 @@ var has = require('has'); var IsPropertyKey = require('./IsPropertyKey'); var Type = require('./Type'); -// https://ecma-international.org/ecma-262/6.0/#sec-hasownproperty +// https://262.ecma-international.org/6.0/#sec-hasownproperty module.exports = function HasOwnProperty(O, P) { if (Type(O) !== 'Object') { diff --git a/node_modules/es-abstract/2019/HasProperty.js b/node_modules/es-abstract/2019/HasProperty.js index b341654e7c..91476d208b 100644 --- a/node_modules/es-abstract/2019/HasProperty.js +++ b/node_modules/es-abstract/2019/HasProperty.js @@ -7,7 +7,7 @@ var $TypeError = GetIntrinsic('%TypeError%'); var IsPropertyKey = require('./IsPropertyKey'); var Type = require('./Type'); -// https://ecma-international.org/ecma-262/6.0/#sec-hasproperty +// https://262.ecma-international.org/6.0/#sec-hasproperty module.exports = function HasProperty(O, P) { if (Type(O) !== 'Object') { diff --git a/node_modules/es-abstract/2019/InstanceofOperator.js b/node_modules/es-abstract/2019/InstanceofOperator.js index a3c4d23755..4a34d0c20c 100644 --- a/node_modules/es-abstract/2019/InstanceofOperator.js +++ b/node_modules/es-abstract/2019/InstanceofOperator.js @@ -13,7 +13,7 @@ var OrdinaryHasInstance = require('./OrdinaryHasInstance'); var ToBoolean = require('./ToBoolean'); var Type = require('./Type'); -// https://ecma-international.org/ecma-262/6.0/#sec-instanceofoperator +// https://262.ecma-international.org/6.0/#sec-instanceofoperator module.exports = function InstanceofOperator(O, C) { if (Type(O) !== 'Object') { diff --git a/node_modules/es-abstract/2019/Invoke.js b/node_modules/es-abstract/2019/Invoke.js index d4214ee516..084e5e2825 100644 --- a/node_modules/es-abstract/2019/Invoke.js +++ b/node_modules/es-abstract/2019/Invoke.js @@ -9,7 +9,7 @@ var IsArray = require('./IsArray'); var GetV = require('./GetV'); var IsPropertyKey = require('./IsPropertyKey'); -// https://ecma-international.org/ecma-262/6.0/#sec-invoke +// https://262.ecma-international.org/6.0/#sec-invoke module.exports = function Invoke(O, P) { if (!IsPropertyKey(P)) { diff --git a/node_modules/es-abstract/2019/IsAccessorDescriptor.js b/node_modules/es-abstract/2019/IsAccessorDescriptor.js index 78563e7ecc..da64a302ac 100644 --- a/node_modules/es-abstract/2019/IsAccessorDescriptor.js +++ b/node_modules/es-abstract/2019/IsAccessorDescriptor.js @@ -2,11 +2,11 @@ var has = require('has'); -var assertRecord = require('../helpers/assertRecord'); - var Type = require('./Type'); -// https://ecma-international.org/ecma-262/6.0/#sec-isaccessordescriptor +var assertRecord = require('../helpers/assertRecord'); + +// https://262.ecma-international.org/5.1/#sec-8.10.1 module.exports = function IsAccessorDescriptor(Desc) { if (typeof Desc === 'undefined') { diff --git a/node_modules/es-abstract/2019/IsArray.js b/node_modules/es-abstract/2019/IsArray.js index 600ffa0028..c2c48c1f23 100644 --- a/node_modules/es-abstract/2019/IsArray.js +++ b/node_modules/es-abstract/2019/IsArray.js @@ -1,4 +1,4 @@ 'use strict'; -// https://ecma-international.org/ecma-262/6.0/#sec-isarray +// https://262.ecma-international.org/6.0/#sec-isarray module.exports = require('../helpers/IsArray'); diff --git a/node_modules/es-abstract/2019/IsConcatSpreadable.js b/node_modules/es-abstract/2019/IsConcatSpreadable.js index 141b33414d..10e1eab216 100644 --- a/node_modules/es-abstract/2019/IsConcatSpreadable.js +++ b/node_modules/es-abstract/2019/IsConcatSpreadable.js @@ -9,7 +9,7 @@ var IsArray = require('./IsArray'); var ToBoolean = require('./ToBoolean'); var Type = require('./Type'); -// https://ecma-international.org/ecma-262/6.0/#sec-isconcatspreadable +// https://262.ecma-international.org/6.0/#sec-isconcatspreadable module.exports = function IsConcatSpreadable(O) { if (Type(O) !== 'Object') { diff --git a/node_modules/es-abstract/2019/IsConstructor.js b/node_modules/es-abstract/2019/IsConstructor.js index fe626e1834..62ac47f6a3 100644 --- a/node_modules/es-abstract/2019/IsConstructor.js +++ b/node_modules/es-abstract/2019/IsConstructor.js @@ -12,7 +12,7 @@ try { DefinePropertyOrThrow = null; } -// https://ecma-international.org/ecma-262/6.0/#sec-isconstructor +// https://262.ecma-international.org/6.0/#sec-isconstructor if (DefinePropertyOrThrow && $construct) { var isConstructorMarker = {}; diff --git a/node_modules/es-abstract/2019/IsDataDescriptor.js b/node_modules/es-abstract/2019/IsDataDescriptor.js index 00d14a60eb..9db441e965 100644 --- a/node_modules/es-abstract/2019/IsDataDescriptor.js +++ b/node_modules/es-abstract/2019/IsDataDescriptor.js @@ -2,11 +2,11 @@ var has = require('has'); -var assertRecord = require('../helpers/assertRecord'); - var Type = require('./Type'); -// https://ecma-international.org/ecma-262/6.0/#sec-isdatadescriptor +var assertRecord = require('../helpers/assertRecord'); + +// https://262.ecma-international.org/5.1/#sec-8.10.2 module.exports = function IsDataDescriptor(Desc) { if (typeof Desc === 'undefined') { diff --git a/node_modules/es-abstract/2019/IsDetachedBuffer.js b/node_modules/es-abstract/2019/IsDetachedBuffer.js index 4b373e9ab5..01529bca2c 100644 --- a/node_modules/es-abstract/2019/IsDetachedBuffer.js +++ b/node_modules/es-abstract/2019/IsDetachedBuffer.js @@ -4,10 +4,7 @@ var GetIntrinsic = require('get-intrinsic'); var $TypeError = GetIntrinsic('%TypeError%'); -var callBound = require('call-bind/callBound'); - -var $byteLength = callBound('%ArrayBuffer.prototype.byteLength%', true) - || function byteLength(ab) { return ab.byteLength; }; // in node < 0.11, byteLength is an own nonconfigurable property +var $byteLength = require('array-buffer-byte-length'); var isArrayBuffer = require('is-array-buffer'); @@ -23,7 +20,7 @@ module.exports = function IsDetachedBuffer(arrayBuffer) { try { new global[availableTypedArrays[0]](arrayBuffer); // eslint-disable-line no-new } catch (error) { - return error.name === 'TypeError'; + return !!error && error.name === 'TypeError'; } } return false; diff --git a/node_modules/es-abstract/2019/IsExtensible.js b/node_modules/es-abstract/2019/IsExtensible.js index d6e3638401..aa19b914c2 100644 --- a/node_modules/es-abstract/2019/IsExtensible.js +++ b/node_modules/es-abstract/2019/IsExtensible.js @@ -7,7 +7,7 @@ var $isExtensible = GetIntrinsic('%Object.isExtensible%', true); var isPrimitive = require('../helpers/isPrimitive'); -// https://ecma-international.org/ecma-262/6.0/#sec-isextensible-o +// https://262.ecma-international.org/6.0/#sec-isextensible-o module.exports = $preventExtensions ? function IsExtensible(obj) { diff --git a/node_modules/es-abstract/2019/IsGenericDescriptor.js b/node_modules/es-abstract/2019/IsGenericDescriptor.js index 95b1d353c5..d43bec2b35 100644 --- a/node_modules/es-abstract/2019/IsGenericDescriptor.js +++ b/node_modules/es-abstract/2019/IsGenericDescriptor.js @@ -6,7 +6,7 @@ var IsAccessorDescriptor = require('./IsAccessorDescriptor'); var IsDataDescriptor = require('./IsDataDescriptor'); var Type = require('./Type'); -// https://ecma-international.org/ecma-262/6.0/#sec-isgenericdescriptor +// https://262.ecma-international.org/6.0/#sec-isgenericdescriptor module.exports = function IsGenericDescriptor(Desc) { if (typeof Desc === 'undefined') { diff --git a/node_modules/es-abstract/2019/IsInteger.js b/node_modules/es-abstract/2019/IsInteger.js index f4d1a2a7c5..e3d25f38e3 100644 --- a/node_modules/es-abstract/2019/IsInteger.js +++ b/node_modules/es-abstract/2019/IsInteger.js @@ -1,17 +1,9 @@ 'use strict'; -var abs = require('./abs'); -var floor = require('./floor'); +var isInteger = require('../helpers/isInteger'); -var $isNaN = require('../helpers/isNaN'); -var $isFinite = require('../helpers/isFinite'); - -// https://ecma-international.org/ecma-262/6.0/#sec-isinteger +// https://262.ecma-international.org/6.0/#sec-isinteger module.exports = function IsInteger(argument) { - if (typeof argument !== 'number' || $isNaN(argument) || !$isFinite(argument)) { - return false; - } - var absValue = abs(argument); - return floor(absValue) === absValue; + return isInteger(argument); }; diff --git a/node_modules/es-abstract/2019/IsPromise.js b/node_modules/es-abstract/2019/IsPromise.js index a551ae0c8b..411539b081 100644 --- a/node_modules/es-abstract/2019/IsPromise.js +++ b/node_modules/es-abstract/2019/IsPromise.js @@ -6,7 +6,7 @@ var $PromiseThen = callBound('Promise.prototype.then', true); var Type = require('./Type'); -// https://ecma-international.org/ecma-262/6.0/#sec-ispromise +// https://262.ecma-international.org/6.0/#sec-ispromise module.exports = function IsPromise(x) { if (Type(x) !== 'Object') { diff --git a/node_modules/es-abstract/2019/IsPropertyKey.js b/node_modules/es-abstract/2019/IsPropertyKey.js index f43ab581c7..aaeb6f9b6f 100644 --- a/node_modules/es-abstract/2019/IsPropertyKey.js +++ b/node_modules/es-abstract/2019/IsPropertyKey.js @@ -1,6 +1,6 @@ 'use strict'; -// https://ecma-international.org/ecma-262/6.0/#sec-ispropertykey +// https://262.ecma-international.org/6.0/#sec-ispropertykey module.exports = function IsPropertyKey(argument) { return typeof argument === 'string' || typeof argument === 'symbol'; diff --git a/node_modules/es-abstract/2019/IsRegExp.js b/node_modules/es-abstract/2019/IsRegExp.js index e1054813f1..33d983dc8d 100644 --- a/node_modules/es-abstract/2019/IsRegExp.js +++ b/node_modules/es-abstract/2019/IsRegExp.js @@ -8,7 +8,7 @@ var hasRegExpMatcher = require('is-regex'); var ToBoolean = require('./ToBoolean'); -// https://ecma-international.org/ecma-262/6.0/#sec-isregexp +// https://262.ecma-international.org/6.0/#sec-isregexp module.exports = function IsRegExp(argument) { if (!argument || typeof argument !== 'object') { diff --git a/node_modules/es-abstract/2019/IsWordChar.js b/node_modules/es-abstract/2019/IsWordChar.js new file mode 100644 index 0000000000..5d61804925 --- /dev/null +++ b/node_modules/es-abstract/2019/IsWordChar.js @@ -0,0 +1,48 @@ +'use strict'; + +var GetIntrinsic = require('get-intrinsic'); + +var $TypeError = GetIntrinsic('%TypeError%'); + +var callBound = require('call-bind/callBound'); + +var $indexOf = callBound('String.prototype.indexOf'); + +var IsArray = require('./IsArray'); +var IsInteger = require('./IsInteger'); +var Type = require('./Type'); +var WordCharacters = require('./WordCharacters'); + +var every = require('../helpers/every'); + +var isChar = function isChar(c) { + return typeof c === 'string'; +}; + +// https://262.ecma-international.org/8.0/#sec-runtime-semantics-iswordchar-abstract-operation + +// note: prior to ES2023, this AO erroneously omitted the latter of its arguments. +module.exports = function IsWordChar(e, InputLength, Input, IgnoreCase, Unicode) { + if (!IsInteger(e)) { + throw new $TypeError('Assertion failed: `e` must be an integer'); + } + if (!IsInteger(InputLength)) { + throw new $TypeError('Assertion failed: `InputLength` must be an integer'); + } + if (!IsArray(Input) || !every(Input, isChar)) { + throw new $TypeError('Assertion failed: `Input` must be a List of characters'); + } + if (Type(IgnoreCase) !== 'Boolean' || Type(Unicode) !== 'Boolean') { + throw new $TypeError('Assertion failed: `IgnoreCase` and `Unicode` must be booleans'); + } + + if (e === -1 || e === InputLength) { + return false; // step 1 + } + + var c = Input[e]; // step 2 + + var wordChars = WordCharacters(IgnoreCase, Unicode); + + return $indexOf(wordChars, c) > -1; // steps 3-4 +}; diff --git a/node_modules/es-abstract/2019/IteratorClose.js b/node_modules/es-abstract/2019/IteratorClose.js index f703ea632f..7c1076082e 100644 --- a/node_modules/es-abstract/2019/IteratorClose.js +++ b/node_modules/es-abstract/2019/IteratorClose.js @@ -10,7 +10,7 @@ var GetMethod = require('./GetMethod'); var IsCallable = require('./IsCallable'); var Type = require('./Type'); -// https://ecma-international.org/ecma-262/6.0/#sec-iteratorclose +// https://262.ecma-international.org/6.0/#sec-iteratorclose module.exports = function IteratorClose(iterator, completion) { if (Type(iterator) !== 'Object') { diff --git a/node_modules/es-abstract/2019/IteratorComplete.js b/node_modules/es-abstract/2019/IteratorComplete.js index ed4efa37d5..29f5f75fea 100644 --- a/node_modules/es-abstract/2019/IteratorComplete.js +++ b/node_modules/es-abstract/2019/IteratorComplete.js @@ -8,7 +8,7 @@ var Get = require('./Get'); var ToBoolean = require('./ToBoolean'); var Type = require('./Type'); -// https://ecma-international.org/ecma-262/6.0/#sec-iteratorcomplete +// https://262.ecma-international.org/6.0/#sec-iteratorcomplete module.exports = function IteratorComplete(iterResult) { if (Type(iterResult) !== 'Object') { diff --git a/node_modules/es-abstract/2019/IteratorNext.js b/node_modules/es-abstract/2019/IteratorNext.js index cf80655b93..d84d66edb5 100644 --- a/node_modules/es-abstract/2019/IteratorNext.js +++ b/node_modules/es-abstract/2019/IteratorNext.js @@ -7,7 +7,7 @@ var $TypeError = GetIntrinsic('%TypeError%'); var Invoke = require('./Invoke'); var Type = require('./Type'); -// https://ecma-international.org/ecma-262/6.0/#sec-iteratornext +// https://262.ecma-international.org/6.0/#sec-iteratornext module.exports = function IteratorNext(iterator, value) { var result = Invoke(iterator, 'next', arguments.length < 2 ? [] : [value]); diff --git a/node_modules/es-abstract/2019/IteratorStep.js b/node_modules/es-abstract/2019/IteratorStep.js index 41b9d1b251..85bcd95c04 100644 --- a/node_modules/es-abstract/2019/IteratorStep.js +++ b/node_modules/es-abstract/2019/IteratorStep.js @@ -3,7 +3,7 @@ var IteratorComplete = require('./IteratorComplete'); var IteratorNext = require('./IteratorNext'); -// https://ecma-international.org/ecma-262/6.0/#sec-iteratorstep +// https://262.ecma-international.org/6.0/#sec-iteratorstep module.exports = function IteratorStep(iterator) { var result = IteratorNext(iterator); diff --git a/node_modules/es-abstract/2019/IteratorValue.js b/node_modules/es-abstract/2019/IteratorValue.js index d15d8aebbf..e9b16daed5 100644 --- a/node_modules/es-abstract/2019/IteratorValue.js +++ b/node_modules/es-abstract/2019/IteratorValue.js @@ -7,7 +7,7 @@ var $TypeError = GetIntrinsic('%TypeError%'); var Get = require('./Get'); var Type = require('./Type'); -// https://ecma-international.org/ecma-262/6.0/#sec-iteratorvalue +// https://262.ecma-international.org/6.0/#sec-iteratorvalue module.exports = function IteratorValue(iterResult) { if (Type(iterResult) !== 'Object') { diff --git a/node_modules/es-abstract/2019/NewPromiseCapability.js b/node_modules/es-abstract/2019/NewPromiseCapability.js new file mode 100644 index 0000000000..e30b08811d --- /dev/null +++ b/node_modules/es-abstract/2019/NewPromiseCapability.js @@ -0,0 +1,36 @@ +'use strict'; + +var GetIntrinsic = require('get-intrinsic'); + +var $TypeError = GetIntrinsic('%TypeError%'); + +var IsCallable = require('es-abstract/2022/IsCallable'); +var IsConstructor = require('es-abstract/2022/IsConstructor'); + +// https://262.ecma-international.org/6.0/#sec-newpromisecapability + +module.exports = function NewPromiseCapability(C) { + if (!IsConstructor(C)) { + throw new $TypeError('C must be a constructor'); // step 1 + } + + var resolvingFunctions = { '[[Resolve]]': void undefined, '[[Reject]]': void undefined }; // step 3 + + var promise = new C(function (resolve, reject) { // steps 4-5 + if (typeof resolvingFunctions['[[Resolve]]'] !== 'undefined' || typeof resolvingFunctions['[[Reject]]'] !== 'undefined') { + throw new $TypeError('executor has already been called'); // step 4.a, 4.b + } + resolvingFunctions['[[Resolve]]'] = resolve; // step 4.c + resolvingFunctions['[[Reject]]'] = reject; // step 4.d + }); // step 4-6 + + if (!IsCallable(resolvingFunctions['[[Resolve]]']) || !IsCallable(resolvingFunctions['[[Reject]]'])) { + throw new $TypeError('executor must provide valid resolve and reject functions'); // steps 7-8 + } + + return { + '[[Promise]]': promise, + '[[Resolve]]': resolvingFunctions['[[Resolve]]'], + '[[Reject]]': resolvingFunctions['[[Reject]]'] + }; // step 9 +}; diff --git a/node_modules/es-abstract/2019/NumberToRawBytes.js b/node_modules/es-abstract/2019/NumberToRawBytes.js index b26cd22fde..c85e971962 100644 --- a/node_modules/es-abstract/2019/NumberToRawBytes.js +++ b/node_modules/es-abstract/2019/NumberToRawBytes.js @@ -2,23 +2,8 @@ var GetIntrinsic = require('get-intrinsic'); -var $floor = GetIntrinsic('%Math.floor%'); -var $log = GetIntrinsic('%Math.log%'); -var $log2E = GetIntrinsic('%Math.LOG2E%'); -var $log2 = GetIntrinsic('%Math.log2%', true) || function log2(x) { - return $log(x) * $log2E; -}; -var $parseInt = GetIntrinsic('%parseInt%'); -var $pow = GetIntrinsic('%Math.pow%'); var $TypeError = GetIntrinsic('%TypeError%'); -var callBound = require('call-bind/callBound'); - -var $reverse = callBound('Array.prototype.reverse'); -var $numberToString = callBound('Number.prototype.toString'); -var $strSlice = callBound('String.prototype.slice'); - -var abs = require('./abs'); var hasOwnProperty = require('./HasOwnProperty'); var ToInt16 = require('./ToInt16'); var ToInt32 = require('./ToInt32'); @@ -29,8 +14,9 @@ var ToUint8 = require('./ToUint8'); var ToUint8Clamp = require('./ToUint8Clamp'); var Type = require('./Type'); -var isNaN = require('../helpers/isNaN'); -var isFinite = require('../helpers/isFinite'); +var valueToFloat32Bytes = require('../helpers/valueToFloat32Bytes'); +var valueToFloat64Bytes = require('../helpers/valueToFloat64Bytes'); +var integerToNBytes = require('../helpers/integerToNBytes'); var keys = require('object-keys'); @@ -72,105 +58,10 @@ module.exports = function NumberToRawBytes(type, value, isLittleEndian) { throw new $TypeError('Assertion failed: `isLittleEndian` must be a Boolean'); } - var rawBytes = []; - var exponent; - if (type === 'Float32') { // step 1 - if (isNaN(value)) { - return isLittleEndian ? [0, 0, 192, 127] : [127, 192, 0, 0]; // hardcoded - } - - var leastSig; - - if (value === 0) { - leastSig = Object.is(value, -0) ? 0x80 : 0; - return isLittleEndian ? [0, 0, 0, leastSig] : [leastSig, 0, 0, 0]; - } - - if (!isFinite(value)) { - leastSig = value < 0 ? 255 : 127; - return isLittleEndian ? [0, 0, 128, leastSig] : [leastSig, 128, 0, 0]; - } - - var sign = value < 0 ? 1 : 0; - value = abs(value); // eslint-disable-line no-param-reassign - - exponent = 0; - while (value >= 2) { - exponent += 1; - value /= 2; // eslint-disable-line no-param-reassign - } - - while (value < 1) { - exponent -= 1; - value *= 2; // eslint-disable-line no-param-reassign - } - - var mantissa = value - 1; - mantissa *= $pow(2, 23); - mantissa = $floor(mantissa); - - exponent += 127; - exponent = exponent << 23; - - var result = sign << 31; - result |= exponent; - result |= mantissa; - - var byte0 = result & 255; - result = result >> 8; - var byte1 = result & 255; - result = result >> 8; - var byte2 = result & 255; - result = result >> 8; - var byte3 = result & 255; - - if (isLittleEndian) { - return [byte0, byte1, byte2, byte3]; - } - return [byte3, byte2, byte1, byte0]; + return valueToFloat32Bytes(value, isLittleEndian); } else if (type === 'Float64') { // step 2 - if (value === 0) { - leastSig = Object.is(value, -0) ? 0x80 : 0; - return isLittleEndian ? [0, 0, 0, 0, 0, 0, 0, leastSig] : [leastSig, 0, 0, 0, 0, 0, 0, 0]; - } - if (isNaN(value)) { - return isLittleEndian ? [0, 0, 0, 0, 0, 0, 248, 127] : [127, 248, 0, 0, 0, 0, 0, 0]; - } - if (!isFinite(value)) { - var infBytes = value < 0 ? [0, 0, 0, 0, 0, 0, 240, 255] : [0, 0, 0, 0, 0, 0, 240, 127]; - return isLittleEndian ? infBytes : $reverse(infBytes); - } - - var isNegative = value < 0; - if (isNegative) { value = -value; } // eslint-disable-line no-param-reassign - - exponent = $floor($log2(value)); - var significand = (value / $pow(2, exponent)) - 1; - - var bitString = ''; - for (var i = 0; i < 52; i++) { - significand *= 2; - if (significand >= 1) { - bitString += '1'; - significand -= 1; - } else { - bitString += '0'; - } - } - - exponent += 1023; - var exponentBits = $numberToString(exponent, 2); - while (exponentBits.length < 11) { exponentBits = '0' + exponentBits; } - - var fullBitString = (isNegative ? '1' : '0') + exponentBits + bitString; - while (fullBitString.length < 64) { fullBitString = '0' + fullBitString; } - - for (i = 0; i < 8; i++) { - rawBytes[i] = $parseInt($strSlice(fullBitString, i * 8, (i + 1) * 8), 2); - } - - return isLittleEndian ? $reverse(rawBytes) : rawBytes; + return valueToFloat64Bytes(value, isLittleEndian); } // step 3 var n = TypeToSizes[type]; // step 3.a @@ -179,20 +70,5 @@ module.exports = function NumberToRawBytes(type, value, isLittleEndian) { var intValue = convOp(value); // step 3.c - /* - if (intValue >= 0) { // step 3.d - // Let rawBytes be a List containing the n-byte binary encoding of intValue. If isLittleEndian is false, the bytes are ordered in big endian order. Otherwise, the bytes are ordered in little endian order. - } else { // step 3.e - // Let rawBytes be a List containing the n-byte binary 2's complement encoding of intValue. If isLittleEndian is false, the bytes are ordered in big endian order. Otherwise, the bytes are ordered in little endian order. - } - */ - if (intValue < 0) { - intValue = intValue >>> 0; - } - for (i = 0; i < n; i++) { - rawBytes[isLittleEndian ? i : n - 1 - i] = intValue & 0xff; - intValue = intValue >> 8; - } - - return rawBytes; // step 4 + return integerToNBytes(intValue, n, isLittleEndian); // step 3.d, 3.e, 4 }; diff --git a/node_modules/es-abstract/2019/ObjectCreate.js b/node_modules/es-abstract/2019/ObjectCreate.js index 1f4bb16af4..d7d2d04d92 100644 --- a/node_modules/es-abstract/2019/ObjectCreate.js +++ b/node_modules/es-abstract/2019/ObjectCreate.js @@ -15,7 +15,7 @@ var SLOT = require('internal-slot'); var hasProto = require('has-proto')(); -// https://ecma-international.org/ecma-262/6.0/#sec-objectcreate +// https://262.ecma-international.org/6.0/#sec-objectcreate module.exports = function ObjectCreate(proto, internalSlotsList) { if (proto !== null && Type(proto) !== 'Object') { diff --git a/node_modules/es-abstract/2019/ObjectDefineProperties.js b/node_modules/es-abstract/2019/ObjectDefineProperties.js index f096f1edee..b47603487c 100644 --- a/node_modules/es-abstract/2019/ObjectDefineProperties.js +++ b/node_modules/es-abstract/2019/ObjectDefineProperties.js @@ -3,7 +3,6 @@ var callBound = require('call-bind/callBound'); var DefinePropertyOrThrow = require('./DefinePropertyOrThrow'); -var FromPropertyDescriptor = require('./FromPropertyDescriptor'); var Get = require('./Get'); var ToObject = require('./ToObject'); var ToPropertyDescriptor = require('./ToPropertyDescriptor'); @@ -32,7 +31,6 @@ module.exports = function ObjectDefineProperties(O, Properties) { forEach(descriptors, function (pair) { // step 5 var P = pair[0]; // step 5.a var desc = pair[1]; // step 5.b - desc = FromPropertyDescriptor(desc); // TODO: remove this once DefinePropertyOrThrow is fixed DefinePropertyOrThrow(O, P, desc); // step 5.c }); diff --git a/node_modules/es-abstract/2019/OrdinaryCreateFromConstructor.js b/node_modules/es-abstract/2019/OrdinaryCreateFromConstructor.js index e2a299eaa9..ede44ed6b7 100644 --- a/node_modules/es-abstract/2019/OrdinaryCreateFromConstructor.js +++ b/node_modules/es-abstract/2019/OrdinaryCreateFromConstructor.js @@ -7,7 +7,7 @@ var GetPrototypeFromConstructor = require('./GetPrototypeFromConstructor'); var IsArray = require('./IsArray'); var ObjectCreate = require('./ObjectCreate'); -// https://ecma-international.org/ecma-262/6.0/#sec-ordinarycreatefromconstructor +// https://262.ecma-international.org/6.0/#sec-ordinarycreatefromconstructor module.exports = function OrdinaryCreateFromConstructor(constructor, intrinsicDefaultProto) { GetIntrinsic(intrinsicDefaultProto); // throws if not a valid intrinsic diff --git a/node_modules/es-abstract/2019/OrdinaryDefineOwnProperty.js b/node_modules/es-abstract/2019/OrdinaryDefineOwnProperty.js index 34f029f7e5..70cd4fe58d 100644 --- a/node_modules/es-abstract/2019/OrdinaryDefineOwnProperty.js +++ b/node_modules/es-abstract/2019/OrdinaryDefineOwnProperty.js @@ -17,7 +17,7 @@ var SameValue = require('./SameValue'); var Type = require('./Type'); var ValidateAndApplyPropertyDescriptor = require('./ValidateAndApplyPropertyDescriptor'); -// https://ecma-international.org/ecma-262/6.0/#sec-ordinarydefineownproperty +// https://262.ecma-international.org/6.0/#sec-ordinarydefineownproperty module.exports = function OrdinaryDefineOwnProperty(O, P, Desc) { if (Type(O) !== 'Object') { diff --git a/node_modules/es-abstract/2019/OrdinaryGetOwnProperty.js b/node_modules/es-abstract/2019/OrdinaryGetOwnProperty.js index fd8035acb9..c23abe1103 100644 --- a/node_modules/es-abstract/2019/OrdinaryGetOwnProperty.js +++ b/node_modules/es-abstract/2019/OrdinaryGetOwnProperty.js @@ -17,7 +17,7 @@ var IsRegExp = require('./IsRegExp'); var ToPropertyDescriptor = require('./ToPropertyDescriptor'); var Type = require('./Type'); -// https://ecma-international.org/ecma-262/6.0/#sec-ordinarygetownproperty +// https://262.ecma-international.org/6.0/#sec-ordinarygetownproperty module.exports = function OrdinaryGetOwnProperty(O, P) { if (Type(O) !== 'Object') { diff --git a/node_modules/es-abstract/2019/OrdinaryHasInstance.js b/node_modules/es-abstract/2019/OrdinaryHasInstance.js index 85a240ca2f..996a50e070 100644 --- a/node_modules/es-abstract/2019/OrdinaryHasInstance.js +++ b/node_modules/es-abstract/2019/OrdinaryHasInstance.js @@ -8,10 +8,10 @@ var Get = require('./Get'); var IsCallable = require('./IsCallable'); var Type = require('./Type'); -// https://ecma-international.org/ecma-262/6.0/#sec-ordinaryhasinstance +// https://262.ecma-international.org/6.0/#sec-ordinaryhasinstance module.exports = function OrdinaryHasInstance(C, O) { - if (IsCallable(C) === false) { + if (!IsCallable(C)) { return false; } if (Type(O) !== 'Object') { diff --git a/node_modules/es-abstract/2019/OrdinaryHasProperty.js b/node_modules/es-abstract/2019/OrdinaryHasProperty.js index dd09ca3b1b..27e7da33ad 100644 --- a/node_modules/es-abstract/2019/OrdinaryHasProperty.js +++ b/node_modules/es-abstract/2019/OrdinaryHasProperty.js @@ -7,7 +7,7 @@ var $TypeError = GetIntrinsic('%TypeError%'); var IsPropertyKey = require('./IsPropertyKey'); var Type = require('./Type'); -// https://ecma-international.org/ecma-262/6.0/#sec-ordinaryhasproperty +// https://262.ecma-international.org/6.0/#sec-ordinaryhasproperty module.exports = function OrdinaryHasProperty(O, P) { if (Type(O) !== 'Object') { diff --git a/node_modules/es-abstract/2019/RawBytesToNumber.js b/node_modules/es-abstract/2019/RawBytesToNumber.js index 5811dae404..652471623d 100644 --- a/node_modules/es-abstract/2019/RawBytesToNumber.js +++ b/node_modules/es-abstract/2019/RawBytesToNumber.js @@ -3,7 +3,6 @@ var GetIntrinsic = require('get-intrinsic'); var callBound = require('call-bind/callBound'); -var $pow = GetIntrinsic('%Math.pow%'); var $RangeError = GetIntrinsic('%RangeError%'); var $TypeError = GetIntrinsic('%TypeError%'); @@ -15,6 +14,9 @@ var hasOwnProperty = require('./HasOwnProperty'); var IsArray = require('./IsArray'); var Type = require('./Type'); +var bytesAsFloat32 = require('../helpers/bytesAsFloat32'); +var bytesAsFloat64 = require('../helpers/bytesAsFloat64'); +var bytesAsInteger = require('../helpers/bytesAsInteger'); var every = require('../helpers/every'); var isByteValue = require('../helpers/isByteValue'); @@ -57,89 +59,16 @@ module.exports = function RawBytesToNumber(type, rawBytes, isLittleEndian) { // eslint-disable-next-line no-param-reassign rawBytes = $slice(rawBytes, 0, elementSize); if (!isLittleEndian) { - // eslint-disable-next-line no-param-reassign - rawBytes = $reverse(rawBytes); // step 2 + $reverse(rawBytes); // step 2 } - /* eslint no-redeclare: 1 */ if (type === 'Float32') { // step 3 - /* - Let value be the byte elements of rawBytes concatenated and interpreted as a little-endian bit string encoding of an IEEE 754-2008 binary32 value. -If value is an IEEE 754-2008 binary32 NaN value, return the NaN Number value. -Return the Number value that corresponds to value. - */ - var sign = (rawBytes[3] & 0x80) >> 7; // first bit - var exponent = ((rawBytes[3] & 0x7F) << 1) // 7 bits from index 3 - | ((rawBytes[2] & 0x80) >> 7); // 1 bit from index 2 - var mantissa = ((rawBytes[2] & 0x7F) << 16) // 7 bits from index 2 - | (rawBytes[1] << 8) // 8 bits from index 1 - | rawBytes[0]; // 8 bits from index 0 - - if (exponent === 0 && mantissa === 0) { - return sign === 0 ? 0 : -0; - } - if (exponent === 0xFF && mantissa === 0) { - return sign === 0 ? Infinity : -Infinity; - } - if (exponent === 0xFF && mantissa !== 0) { - return NaN; - } - - exponent -= 127; // subtract the bias - - // return $pow(-1, sign) * mantissa / $pow(2, 23) * $pow(2, exponent); - // return $pow(-1, sign) * (mantissa + 0x1000000) * $pow(2, exponent - 23); - return $pow(-1, sign) * (1 + (mantissa / $pow(2, 23))) * $pow(2, exponent); + return bytesAsFloat32(rawBytes); } if (type === 'Float64') { // step 4 - /* - Let value be the byte elements of rawBytes concatenated and interpreted as a little-endian bit string encoding of an IEEE 754-2008 binary64 value. -If value is an IEEE 754-2008 binary64 NaN value, return the NaN Number value. -Return the Number value that corresponds to value. - */ - var sign = rawBytes[7] & 0x80 ? -1 : 1; // first bit - var exponent = ((rawBytes[7] & 0x7F) << 4) // 7 bits from index 7 - | ((rawBytes[6] & 0xF0) >> 4); // 4 bits from index 6 - var mantissa = ((rawBytes[6] & 0x0F) * 0x1000000000000) // 4 bits from index 6 - + (rawBytes[5] * 0x10000000000) // 8 bits from index 5 - + (rawBytes[4] * 0x100000000) // 8 bits from index 4 - + (rawBytes[3] * 0x1000000) // 8 bits from index 3 - + (rawBytes[2] * 0x10000) // 8 bits from index 2 - + (rawBytes[1] * 0x100) // 8 bits from index 1 - + rawBytes[0]; // 8 bits from index 0 - - if (exponent === 0 && mantissa === 0) { - return sign * 0; - } - if (exponent === 0x7FF && mantissa !== 0) { - return NaN; - } - if (exponent === 0x7FF && mantissa === 0) { - return sign * Infinity; - } - - exponent -= 1023; // subtract the bias - - return sign * (mantissa + 0x10000000000000) * $pow(2, exponent - 52); - } - - // this is common to both branches - var intValue = 0; - for (var i = 0; i < rawBytes.length; i++) { - intValue |= rawBytes[i] << (8 * i); - } - /* - Let intValue be the byte elements of rawBytes concatenated and interpreted as a bit string encoding of an unsigned little-endian binary number. - */ - - if ($charAt(type, 0) !== 'U') { // steps 5-6 - // Let intValue be the byte elements of rawBytes concatenated and interpreted as a bit string encoding of a binary little-endian 2's complement number of bit length elementSize × 8. - var bitLength = elementSize * 8; - if (bitLength < 32) { - intValue = (intValue << (32 - bitLength)) >> (32 - bitLength); - } + return bytesAsFloat64(rawBytes); } - return intValue; // step 7 + return bytesAsInteger(rawBytes, elementSize, $charAt(type, 0) === 'U', false); }; diff --git a/node_modules/es-abstract/2019/RegExpExec.js b/node_modules/es-abstract/2019/RegExpExec.js index 29fee1720c..cf15207415 100644 --- a/node_modules/es-abstract/2019/RegExpExec.js +++ b/node_modules/es-abstract/2019/RegExpExec.js @@ -11,7 +11,7 @@ var Get = require('./Get'); var IsCallable = require('./IsCallable'); var Type = require('./Type'); -// https://ecma-international.org/ecma-262/6.0/#sec-regexpexec +// https://262.ecma-international.org/6.0/#sec-regexpexec module.exports = function RegExpExec(R, S) { if (Type(R) !== 'Object') { diff --git a/node_modules/es-abstract/2019/SameValueZero.js b/node_modules/es-abstract/2019/SameValueZero.js index bf1a1486a1..3e2851b5ee 100644 --- a/node_modules/es-abstract/2019/SameValueZero.js +++ b/node_modules/es-abstract/2019/SameValueZero.js @@ -2,7 +2,7 @@ var $isNaN = require('../helpers/isNaN'); -// https://ecma-international.org/ecma-262/6.0/#sec-samevaluezero +// https://262.ecma-international.org/6.0/#sec-samevaluezero module.exports = function SameValueZero(x, y) { return (x === y) || ($isNaN(x) && $isNaN(y)); diff --git a/node_modules/es-abstract/2019/Set.js b/node_modules/es-abstract/2019/Set.js index 0971498879..9697031363 100644 --- a/node_modules/es-abstract/2019/Set.js +++ b/node_modules/es-abstract/2019/Set.js @@ -18,7 +18,7 @@ var noThrowOnStrictViolation = (function () { } }()); -// https://ecma-international.org/ecma-262/6.0/#sec-set-o-p-v-throw +// https://262.ecma-international.org/6.0/#sec-set-o-p-v-throw module.exports = function Set(O, P, V, Throw) { if (Type(O) !== 'Object') { diff --git a/node_modules/es-abstract/2019/SetFunctionLength.js b/node_modules/es-abstract/2019/SetFunctionLength.js index c1160c8c07..14228bf184 100644 --- a/node_modules/es-abstract/2019/SetFunctionLength.js +++ b/node_modules/es-abstract/2019/SetFunctionLength.js @@ -7,9 +7,10 @@ var $TypeError = GetIntrinsic('%TypeError%'); var DefinePropertyOrThrow = require('./DefinePropertyOrThrow'); var HasOwnProperty = require('./HasOwnProperty'); var IsExtensible = require('./IsExtensible'); -var IsInteger = require('./IsInteger'); var Type = require('./Type'); +var isInteger = require('../helpers/isInteger'); + // https://262.ecma-international.org/9.0/#sec-setfunctionlength module.exports = function SetFunctionLength(F, length) { @@ -19,7 +20,7 @@ module.exports = function SetFunctionLength(F, length) { if (Type(length) !== 'Number') { throw new $TypeError('Assertion failed: `length` must be a Number'); } - if (length < 0 || !IsInteger(length)) { + if (length < 0 || !isInteger(length)) { throw new $TypeError('Assertion failed: `length` must be an integer >= 0'); } return DefinePropertyOrThrow(F, 'length', { diff --git a/node_modules/es-abstract/2019/SetFunctionName.js b/node_modules/es-abstract/2019/SetFunctionName.js index 03ec2227c7..f7fb0a9aab 100644 --- a/node_modules/es-abstract/2019/SetFunctionName.js +++ b/node_modules/es-abstract/2019/SetFunctionName.js @@ -12,7 +12,7 @@ var DefinePropertyOrThrow = require('./DefinePropertyOrThrow'); var IsExtensible = require('./IsExtensible'); var Type = require('./Type'); -// https://ecma-international.org/ecma-262/6.0/#sec-setfunctionname +// https://262.ecma-international.org/6.0/#sec-setfunctionname module.exports = function SetFunctionName(F, name) { if (typeof F !== 'function') { diff --git a/node_modules/es-abstract/2019/SetIntegrityLevel.js b/node_modules/es-abstract/2019/SetIntegrityLevel.js index 546f3e74f4..aaef85a0a2 100644 --- a/node_modules/es-abstract/2019/SetIntegrityLevel.js +++ b/node_modules/es-abstract/2019/SetIntegrityLevel.js @@ -15,7 +15,7 @@ var IsAccessorDescriptor = require('./IsAccessorDescriptor'); var ToPropertyDescriptor = require('./ToPropertyDescriptor'); var Type = require('./Type'); -// https://ecma-international.org/ecma-262/6.0/#sec-setintegritylevel +// https://262.ecma-international.org/6.0/#sec-setintegritylevel module.exports = function SetIntegrityLevel(O, level) { if (Type(O) !== 'Object') { diff --git a/node_modules/es-abstract/2019/SetValueInBuffer.js b/node_modules/es-abstract/2019/SetValueInBuffer.js new file mode 100644 index 0000000000..8208445890 --- /dev/null +++ b/node_modules/es-abstract/2019/SetValueInBuffer.js @@ -0,0 +1,120 @@ +'use strict'; + +var GetIntrinsic = require('get-intrinsic'); + +var $TypeError = GetIntrinsic('%TypeError%'); + +var isInteger = require('../helpers/isInteger'); + +var IsDetachedBuffer = require('./IsDetachedBuffer'); +var ToInt16 = require('./ToInt16'); +var ToInt32 = require('./ToInt32'); +var ToInt8 = require('./ToInt8'); +var ToUint16 = require('./ToUint16'); +var ToUint32 = require('./ToUint32'); +var ToUint8 = require('./ToUint8'); +var ToUint8Clamp = require('./ToUint8Clamp'); + +var isArrayBuffer = require('is-array-buffer'); +var has = require('has'); + +var table49 = { + __proto__: null, + Int8: 1, + Uint8: 1, + Uint8C: 1, + Int16: 2, + Uint16: 2, + Int32: 4, + Uint32: 4, + Float32: 4, + Float64: 8 +}; + +var TypeToAO = { + __proto__: null, + Int8: ToInt8, + Uint8: ToUint8, + Uint8C: ToUint8Clamp, + Int16: ToInt16, + Uint16: ToUint16, + Int32: ToInt32, + Uint32: ToUint32 +}; + +var defaultEndianness = require('../helpers/defaultEndianness'); +var forEach = require('../helpers/forEach'); +var integerToNBytes = require('../helpers/integerToNBytes'); +var valueToFloat32Bytes = require('../helpers/valueToFloat32Bytes'); +var valueToFloat64Bytes = require('../helpers/valueToFloat64Bytes'); + +// https://262.ecma-international.org/6.0/#sec-setvalueinbuffer + +module.exports = function SetValueInBuffer(arrayBuffer, byteIndex, type, value) { + if (!isArrayBuffer(arrayBuffer)) { + throw new $TypeError('Assertion failed: `arrayBuffer` must be an ArrayBuffer'); + } + + if (!isInteger(byteIndex)) { + throw new $TypeError('Assertion failed: `byteIndex` must be an integer'); + } + + if (typeof type !== 'string' || !has(table49, type)) { + throw new $TypeError('Assertion failed: `type` must be a Typed Array Element Type'); + } + + if (typeof value !== 'number') { + throw new $TypeError('Assertion failed: `value` must be a number'); + } + + if (arguments.length > 4 && typeof arguments[4] !== 'boolean') { + throw new $TypeError('Assertion failed: `isLittleEndian` must be a boolean, if present'); + } + + if (IsDetachedBuffer(arrayBuffer)) { + throw new $TypeError('Assertion failed: ArrayBuffer is detached'); // step 1 + } + + // 2. Assert: There are sufficient bytes in arrayBuffer starting at byteIndex to represent a value of type. + + if (byteIndex < 0) { + throw new $TypeError('Assertion failed: `byteIndex` must be non-negative'); // step 3 + } + + // 4. Assert: Type(value) is Number. + + // 5. Let block be arrayBuffer’s [[ArrayBufferData]] internal slot. + + // 6. Assert: block is not undefined. + + var elementSize = table49[type]; // step 7 + if (!elementSize) { + throw new $TypeError('Assertion failed: `type` must be one of "Int8", "Uint8", "Uint8C", "Int16", "Uint16", "Int32", "Uint32", "Float32", or "Float64"'); + } + + // 8. If isLittleEndian is not present, set isLittleEndian to either true or false. The choice is implementation dependent and should be the alternative that is most efficient for the implementation. An implementation must use the same value each time this step is executed and the same value must be used for the corresponding step in the GetValueFromBuffer abstract operation. + var isLittleEndian = arguments.length > 4 ? arguments[4] : defaultEndianness === 'little'; // step 8 + + var rawBytes; + if (type === 'Float32') { // step 1 + rawBytes = valueToFloat32Bytes(value, isLittleEndian); + } else if (type === 'Float64') { // step 2 + rawBytes = valueToFloat64Bytes(value, isLittleEndian); + } else { + var n = table49[type]; // step 3.a + + var convOp = TypeToAO[type]; // step 3.b + + var intValue = convOp(value); // step 3.c + + rawBytes = integerToNBytes(intValue, n, isLittleEndian); // step 3.d, 3.e, 4 + } + + // 12. Store the individual bytes of rawBytes into block, in order, starting at block[byteIndex]. + var arr = new Uint8Array(arrayBuffer, byteIndex, elementSize); + forEach(rawBytes, function (rawByte, i) { + arr[i] = rawByte; + }); + + // 13. Return NormalCompletion(undefined). +}; diff --git a/node_modules/es-abstract/2019/SpeciesConstructor.js b/node_modules/es-abstract/2019/SpeciesConstructor.js index 491eb9b87d..1937b9c9cd 100644 --- a/node_modules/es-abstract/2019/SpeciesConstructor.js +++ b/node_modules/es-abstract/2019/SpeciesConstructor.js @@ -8,7 +8,7 @@ var $TypeError = GetIntrinsic('%TypeError%'); var IsConstructor = require('./IsConstructor'); var Type = require('./Type'); -// https://ecma-international.org/ecma-262/6.0/#sec-speciesconstructor +// https://262.ecma-international.org/6.0/#sec-speciesconstructor module.exports = function SpeciesConstructor(O, defaultConstructor) { if (Type(O) !== 'Object') { diff --git a/node_modules/es-abstract/2019/SplitMatch.js b/node_modules/es-abstract/2019/SplitMatch.js index 8ab05355ed..d57fb691e5 100644 --- a/node_modules/es-abstract/2019/SplitMatch.js +++ b/node_modules/es-abstract/2019/SplitMatch.js @@ -5,9 +5,10 @@ var callBound = require('call-bind/callBound'); var $TypeError = GetIntrinsic('%TypeError%'); -var IsInteger = require('./IsInteger'); var Type = require('./Type'); +var isInteger = require('../helpers/isInteger'); + var $charAt = callBound('String.prototype.charAt'); // https://262.ecma-international.org/6.0/#sec-splitmatch @@ -16,7 +17,7 @@ module.exports = function SplitMatch(S, q, R) { if (Type(S) !== 'String') { throw new $TypeError('Assertion failed: `S` must be a String'); } - if (!IsInteger(q)) { + if (!isInteger(q)) { throw new $TypeError('Assertion failed: `q` must be an integer'); } if (Type(R) !== 'String') { diff --git a/node_modules/es-abstract/2019/SymbolDescriptiveString.js b/node_modules/es-abstract/2019/SymbolDescriptiveString.js index 1efd1316b2..89c253ffae 100644 --- a/node_modules/es-abstract/2019/SymbolDescriptiveString.js +++ b/node_modules/es-abstract/2019/SymbolDescriptiveString.js @@ -10,7 +10,7 @@ var $SymbolToString = callBound('Symbol.prototype.toString', true); var Type = require('./Type'); -// https://ecma-international.org/ecma-262/6.0/#sec-symboldescriptivestring +// https://262.ecma-international.org/6.0/#sec-symboldescriptivestring module.exports = function SymbolDescriptiveString(sym) { if (Type(sym) !== 'Symbol') { diff --git a/node_modules/es-abstract/2019/TestIntegrityLevel.js b/node_modules/es-abstract/2019/TestIntegrityLevel.js index 7f95a6e1d4..7cefab7017 100644 --- a/node_modules/es-abstract/2019/TestIntegrityLevel.js +++ b/node_modules/es-abstract/2019/TestIntegrityLevel.js @@ -13,7 +13,7 @@ var IsExtensible = require('./IsExtensible'); var ToPropertyDescriptor = require('./ToPropertyDescriptor'); var Type = require('./Type'); -// https://ecma-international.org/ecma-262/6.0/#sec-testintegritylevel +// https://262.ecma-international.org/6.0/#sec-testintegritylevel module.exports = function TestIntegrityLevel(O, level) { if (Type(O) !== 'Object') { diff --git a/node_modules/es-abstract/2019/ToDateString.js b/node_modules/es-abstract/2019/ToDateString.js index e636a9ba68..dabb2bb38a 100644 --- a/node_modules/es-abstract/2019/ToDateString.js +++ b/node_modules/es-abstract/2019/ToDateString.js @@ -4,12 +4,13 @@ var GetIntrinsic = require('get-intrinsic'); var $TypeError = GetIntrinsic('%TypeError%'); var $Date = GetIntrinsic('%Date%'); +var $String = GetIntrinsic('%String%'); var $isNaN = require('../helpers/isNaN'); var Type = require('./Type'); -// https://ecma-international.org/ecma-262/6.0/#sec-todatestring +// https://262.ecma-international.org/6.0/#sec-todatestring module.exports = function ToDateString(tv) { if (Type(tv) !== 'Number') { @@ -18,5 +19,5 @@ module.exports = function ToDateString(tv) { if ($isNaN(tv)) { return 'Invalid Date'; } - return $Date(tv); + return $String(new $Date(tv)); }; diff --git a/node_modules/es-abstract/2019/ToInt16.js b/node_modules/es-abstract/2019/ToInt16.js index cb8e7934bb..21694bdeb9 100644 --- a/node_modules/es-abstract/2019/ToInt16.js +++ b/node_modules/es-abstract/2019/ToInt16.js @@ -2,7 +2,7 @@ var ToUint16 = require('./ToUint16'); -// https://ecma-international.org/ecma-262/6.0/#sec-toint16 +// https://262.ecma-international.org/6.0/#sec-toint16 module.exports = function ToInt16(argument) { var int16bit = ToUint16(argument); diff --git a/node_modules/es-abstract/2019/ToInt8.js b/node_modules/es-abstract/2019/ToInt8.js index bc452d826f..e223b6c1d3 100644 --- a/node_modules/es-abstract/2019/ToInt8.js +++ b/node_modules/es-abstract/2019/ToInt8.js @@ -2,7 +2,7 @@ var ToUint8 = require('./ToUint8'); -// https://ecma-international.org/ecma-262/6.0/#sec-toint8 +// https://262.ecma-international.org/6.0/#sec-toint8 module.exports = function ToInt8(argument) { var int8bit = ToUint8(argument); diff --git a/node_modules/es-abstract/2019/ToInteger.js b/node_modules/es-abstract/2019/ToInteger.js index 2975818094..f6625796eb 100644 --- a/node_modules/es-abstract/2019/ToInteger.js +++ b/node_modules/es-abstract/2019/ToInteger.js @@ -4,7 +4,7 @@ var ES5ToInteger = require('../5/ToInteger'); var ToNumber = require('./ToNumber'); -// https://ecma-international.org/ecma-262/6.0/#sec-tointeger +// https://262.ecma-international.org/6.0/#sec-tointeger module.exports = function ToInteger(value) { var number = ToNumber(value); diff --git a/node_modules/es-abstract/2019/ToNumber.js b/node_modules/es-abstract/2019/ToNumber.js index 95bdd9ecda..3abb6a68d2 100644 --- a/node_modules/es-abstract/2019/ToNumber.js +++ b/node_modules/es-abstract/2019/ToNumber.js @@ -19,22 +19,11 @@ var nonWS = ['\u0085', '\u200b', '\ufffe'].join(''); var nonWSregex = new $RegExp('[' + nonWS + ']', 'g'); var hasNonWS = regexTester(nonWSregex); -// whitespace from: https://es5.github.io/#x15.5.4.20 -// implementation from https://github.com/es-shims/es5-shim/blob/v3.4.0/es5-shim.js#L1304-L1324 -var ws = [ - '\x09\x0A\x0B\x0C\x0D\x20\xA0\u1680\u180E\u2000\u2001\u2002\u2003', - '\u2004\u2005\u2006\u2007\u2008\u2009\u200A\u202F\u205F\u3000\u2028', - '\u2029\uFEFF' -].join(''); -var trimRegex = new RegExp('(^[' + ws + ']+)|([' + ws + ']+$)', 'g'); -var $replace = callBound('String.prototype.replace'); -var $trim = function (value) { - return $replace(value, trimRegex, ''); -}; +var $trim = require('string.prototype.trim'); var ToPrimitive = require('./ToPrimitive'); -// https://ecma-international.org/ecma-262/6.0/#sec-tonumber +// https://262.ecma-international.org/6.0/#sec-tonumber module.exports = function ToNumber(argument) { var value = isPrimitive(argument) ? argument : ToPrimitive(argument, $Number); diff --git a/node_modules/es-abstract/2019/ToObject.js b/node_modules/es-abstract/2019/ToObject.js index cb26bac064..26a007cead 100644 --- a/node_modules/es-abstract/2019/ToObject.js +++ b/node_modules/es-abstract/2019/ToObject.js @@ -6,7 +6,7 @@ var $Object = GetIntrinsic('%Object%'); var RequireObjectCoercible = require('./RequireObjectCoercible'); -// https://ecma-international.org/ecma-262/6.0/#sec-toobject +// https://262.ecma-international.org/6.0/#sec-toobject module.exports = function ToObject(value) { RequireObjectCoercible(value); diff --git a/node_modules/es-abstract/2019/ToPrimitive.js b/node_modules/es-abstract/2019/ToPrimitive.js index 0fbe9b8076..56bcf1aa9e 100644 --- a/node_modules/es-abstract/2019/ToPrimitive.js +++ b/node_modules/es-abstract/2019/ToPrimitive.js @@ -2,7 +2,7 @@ var toPrimitive = require('es-to-primitive/es2015'); -// https://ecma-international.org/ecma-262/6.0/#sec-toprimitive +// https://262.ecma-international.org/6.0/#sec-toprimitive module.exports = function ToPrimitive(input) { if (arguments.length > 1) { diff --git a/node_modules/es-abstract/2019/ToPropertyKey.js b/node_modules/es-abstract/2019/ToPropertyKey.js index fc1bf7d862..e363cd93b1 100644 --- a/node_modules/es-abstract/2019/ToPropertyKey.js +++ b/node_modules/es-abstract/2019/ToPropertyKey.js @@ -7,7 +7,7 @@ var $String = GetIntrinsic('%String%'); var ToPrimitive = require('./ToPrimitive'); var ToString = require('./ToString'); -// https://ecma-international.org/ecma-262/6.0/#sec-topropertykey +// https://262.ecma-international.org/6.0/#sec-topropertykey module.exports = function ToPropertyKey(argument) { var key = ToPrimitive(argument, $String); diff --git a/node_modules/es-abstract/2019/ToString.js b/node_modules/es-abstract/2019/ToString.js index 4d494e1e23..d86aed4ce8 100644 --- a/node_modules/es-abstract/2019/ToString.js +++ b/node_modules/es-abstract/2019/ToString.js @@ -5,7 +5,7 @@ var GetIntrinsic = require('get-intrinsic'); var $String = GetIntrinsic('%String%'); var $TypeError = GetIntrinsic('%TypeError%'); -// https://ecma-international.org/ecma-262/6.0/#sec-tostring +// https://262.ecma-international.org/6.0/#sec-tostring module.exports = function ToString(argument) { if (typeof argument === 'symbol') { diff --git a/node_modules/es-abstract/2019/ToUint8.js b/node_modules/es-abstract/2019/ToUint8.js index 2dfd97cb34..6e4e4b5add 100644 --- a/node_modules/es-abstract/2019/ToUint8.js +++ b/node_modules/es-abstract/2019/ToUint8.js @@ -10,7 +10,7 @@ var abs = require('./abs'); var floor = require('./floor'); var modulo = require('./modulo'); -// https://ecma-international.org/ecma-262/6.0/#sec-touint8 +// https://262.ecma-international.org/6.0/#sec-touint8 module.exports = function ToUint8(argument) { var number = ToNumber(argument); diff --git a/node_modules/es-abstract/2019/ToUint8Clamp.js b/node_modules/es-abstract/2019/ToUint8Clamp.js index b0b8ce8ed3..3ba2fd7119 100644 --- a/node_modules/es-abstract/2019/ToUint8Clamp.js +++ b/node_modules/es-abstract/2019/ToUint8Clamp.js @@ -5,13 +5,13 @@ var floor = require('./floor'); var $isNaN = require('../helpers/isNaN'); -// https://ecma-international.org/ecma-262/6.0/#sec-touint8clamp +// https://262.ecma-international.org/6.0/#sec-touint8clamp module.exports = function ToUint8Clamp(argument) { var number = ToNumber(argument); if ($isNaN(number) || number <= 0) { return 0; } if (number >= 0xFF) { return 0xFF; } - var f = floor(argument); + var f = floor(number); if (f + 0.5 < number) { return f + 1; } if (number < f + 0.5) { return f; } if (f % 2 !== 0) { return f + 1; } diff --git a/node_modules/es-abstract/2019/Type.js b/node_modules/es-abstract/2019/Type.js index 0bd11659c2..da5cb76250 100644 --- a/node_modules/es-abstract/2019/Type.js +++ b/node_modules/es-abstract/2019/Type.js @@ -2,7 +2,7 @@ var ES5Type = require('../5/Type'); -// https://ecma-international.org/ecma-262/6.0/#sec-ecmascript-data-types-and-values +// https://262.ecma-international.org/6.0/#sec-ecmascript-data-types-and-values module.exports = function Type(x) { if (typeof x === 'symbol') { diff --git a/node_modules/es-abstract/2019/TypedArrayCreate.js b/node_modules/es-abstract/2019/TypedArrayCreate.js new file mode 100644 index 0000000000..ef9fbe2599 --- /dev/null +++ b/node_modules/es-abstract/2019/TypedArrayCreate.js @@ -0,0 +1,50 @@ +'use strict'; + +var GetIntrinsic = require('get-intrinsic'); + +var $SyntaxError = GetIntrinsic('%SyntaxError%'); +var $TypeError = GetIntrinsic('%TypeError%'); + +var IsArray = require('./IsArray'); +var IsConstructor = require('./IsConstructor'); +var Type = require('./Type'); +var ValidateTypedArray = require('./ValidateTypedArray'); + +var availableTypedArrays = require('available-typed-arrays')(); +var typedArrayLength = require('typed-array-length'); + +// https://262.ecma-international.org/7.0/#typedarray-create + +module.exports = function TypedArrayCreate(constructor, argumentList) { + if (!IsConstructor(constructor)) { + throw new $TypeError('Assertion failed: `constructor` must be a constructor'); + } + if (!IsArray(argumentList)) { + throw new $TypeError('Assertion failed: `argumentList` must be a List'); + } + if (availableTypedArrays.length === 0) { + throw new $SyntaxError('Assertion failed: Typed Arrays are not supported in this environment'); + } + + // var newTypedArray = Construct(constructor, argumentList); // step 1 + var newTypedArray; + if (argumentList.length === 0) { + newTypedArray = new constructor(); + } else if (argumentList.length === 1) { + newTypedArray = new constructor(argumentList[0]); + } else if (argumentList.length === 2) { + newTypedArray = new constructor(argumentList[0], argumentList[1]); + } else { + newTypedArray = new constructor(argumentList[0], argumentList[1], argumentList[2]); + } + + ValidateTypedArray(newTypedArray); // step 2 + + if (argumentList.length === 1 && Type(argumentList[0]) === 'Number') { // step 3 + if (typedArrayLength(newTypedArray) < argumentList[0]) { + throw new $TypeError('Assertion failed: `argumentList[0]` must be <= `newTypedArray.length`'); // step 3.a + } + } + + return newTypedArray; // step 4 +}; diff --git a/node_modules/es-abstract/2019/TypedArraySpeciesCreate.js b/node_modules/es-abstract/2019/TypedArraySpeciesCreate.js new file mode 100644 index 0000000000..1cf8755acc --- /dev/null +++ b/node_modules/es-abstract/2019/TypedArraySpeciesCreate.js @@ -0,0 +1,39 @@ +'use strict'; + +var GetIntrinsic = require('get-intrinsic'); + +var $SyntaxError = GetIntrinsic('%SyntaxError%'); +var $TypeError = GetIntrinsic('%TypeError%'); + +var whichTypedArray = require('which-typed-array'); +var availableTypedArrays = require('available-typed-arrays')(); + +var IsArray = require('./IsArray'); +var SpeciesConstructor = require('./SpeciesConstructor'); +var TypedArrayCreate = require('./TypedArrayCreate'); + +var getConstructor = require('../helpers/typedArrayContructors'); + +// https://262.ecma-international.org/7.0/#typedarray-species-create + +module.exports = function TypedArraySpeciesCreate(exemplar, argumentList) { + if (availableTypedArrays.length === 0) { + throw new $SyntaxError('Assertion failed: Typed Arrays are not supported in this environment'); + } + + var kind = whichTypedArray(exemplar); + if (!kind) { + throw new $TypeError('Assertion failed: exemplar must be a TypedArray'); // step 1 + } + if (!IsArray(argumentList)) { + throw new $TypeError('Assertion failed: `argumentList` must be a List'); // step 1 + } + + var defaultConstructor = getConstructor(kind); // step 2 + if (typeof defaultConstructor !== 'function') { + throw new $SyntaxError('Assertion failed: `constructor` of `exemplar` (' + kind + ') must exist. Please report this!'); + } + var constructor = SpeciesConstructor(exemplar, defaultConstructor); // step 3 + + return TypedArrayCreate(constructor, argumentList); // step 4 +}; diff --git a/node_modules/es-abstract/2019/ValidateAndApplyPropertyDescriptor.js b/node_modules/es-abstract/2019/ValidateAndApplyPropertyDescriptor.js index a7fd218ad5..134b2d5c36 100644 --- a/node_modules/es-abstract/2019/ValidateAndApplyPropertyDescriptor.js +++ b/node_modules/es-abstract/2019/ValidateAndApplyPropertyDescriptor.js @@ -16,10 +16,10 @@ var IsPropertyKey = require('./IsPropertyKey'); var SameValue = require('./SameValue'); var Type = require('./Type'); -// https://ecma-international.org/ecma-262/6.0/#sec-validateandapplypropertydescriptor -// https://ecma-international.org/ecma-262/8.0/#sec-validateandapplypropertydescriptor +// https://262.ecma-international.org/6.0/#sec-validateandapplypropertydescriptor +// https://262.ecma-international.org/8.0/#sec-validateandapplypropertydescriptor -// eslint-disable-next-line max-lines-per-function, max-statements, max-params +// eslint-disable-next-line max-lines-per-function, max-statements module.exports = function ValidateAndApplyPropertyDescriptor(O, P, extensible, Desc, current) { // this uses the ES2017+ logic, since it fixes a number of bugs in the ES2015 logic. var oType = Type(O); diff --git a/node_modules/es-abstract/2019/ValidateTypedArray.js b/node_modules/es-abstract/2019/ValidateTypedArray.js index 83df3a81cb..c7aa313938 100644 --- a/node_modules/es-abstract/2019/ValidateTypedArray.js +++ b/node_modules/es-abstract/2019/ValidateTypedArray.js @@ -5,7 +5,7 @@ var GetIntrinsic = require('get-intrinsic'); var $TypeError = GetIntrinsic('%TypeError%'); var callBound = require('call-bind/callBound'); -var $taSome = callBound('%TypedArray.prototype.some%', true); +var $taSome = callBound('TypedArray.prototype.some', true); var Type = require('./Type'); diff --git a/node_modules/es-abstract/2019/WordCharacters.js b/node_modules/es-abstract/2019/WordCharacters.js new file mode 100644 index 0000000000..aeebc1e75c --- /dev/null +++ b/node_modules/es-abstract/2019/WordCharacters.js @@ -0,0 +1,49 @@ +'use strict'; + +var GetIntrinsic = require('get-intrinsic'); + +var $TypeError = GetIntrinsic('%TypeError%'); + +var callBound = require('call-bind/callBound'); +var $indexOf = callBound('String.prototype.indexOf', true); + +var Canonicalize = require('./Canonicalize'); +var Type = require('./Type'); + +var caseFolding = require('../helpers/caseFolding'); +var forEach = require('../helpers/forEach'); +var OwnPropertyKeys = require('../helpers/OwnPropertyKeys'); + +var A = 'abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789_'; // step 1 + +// https://262.ecma-international.org/8.0/#sec-runtime-semantics-wordcharacters-abstract-operation + +module.exports = function WordCharacters(IgnoreCase, Unicode) { + if (Type(IgnoreCase) !== 'Boolean' || Type(Unicode) !== 'Boolean') { + throw new $TypeError('Assertion failed: `IgnoreCase` and `Unicode` must be booleans'); + } + + var U = ''; + forEach(OwnPropertyKeys(caseFolding.C), function (c) { + if ( + $indexOf(A, c) === -1 // c not in A + && $indexOf(A, Canonicalize(c, IgnoreCase, Unicode)) > -1 // canonicalized c IS in A + ) { + U += caseFolding.C[c]; // step 3 + } + }); + forEach(OwnPropertyKeys(caseFolding.S), function (c) { + if ( + $indexOf(A, c) === -1 // c not in A + && $indexOf(A, Canonicalize(c, IgnoreCase, Unicode)) > -1 // canonicalized c IS in A + ) { + U += caseFolding.S[c]; // step 3 + } + }); + + if ((!Unicode || !IgnoreCase) && U.length > 0) { + throw new $TypeError('Assertion failed: `U` must be empty when `IgnoreCase` and `Unicode` are not both true'); // step 4 + } + + return A + U; // step 5, 6 +}; diff --git a/node_modules/es-abstract/2019/thisBooleanValue.js b/node_modules/es-abstract/2019/thisBooleanValue.js index 27075b9c4f..e93a28ce47 100644 --- a/node_modules/es-abstract/2019/thisBooleanValue.js +++ b/node_modules/es-abstract/2019/thisBooleanValue.js @@ -4,7 +4,7 @@ var $BooleanValueOf = require('call-bind/callBound')('Boolean.prototype.valueOf' var Type = require('./Type'); -// https://ecma-international.org/ecma-262/6.0/#sec-properties-of-the-boolean-prototype-object +// https://262.ecma-international.org/6.0/#sec-properties-of-the-boolean-prototype-object module.exports = function thisBooleanValue(value) { if (Type(value) === 'Boolean') { diff --git a/node_modules/es-abstract/2019/thisNumberValue.js b/node_modules/es-abstract/2019/thisNumberValue.js index 92968dcdf8..03580df26f 100644 --- a/node_modules/es-abstract/2019/thisNumberValue.js +++ b/node_modules/es-abstract/2019/thisNumberValue.js @@ -6,7 +6,7 @@ var Type = require('./Type'); var $NumberValueOf = callBound('Number.prototype.valueOf'); -// https://ecma-international.org/ecma-262/6.0/#sec-properties-of-the-number-prototype-object +// https://262.ecma-international.org/6.0/#sec-properties-of-the-number-prototype-object module.exports = function thisNumberValue(value) { if (Type(value) === 'Number') { diff --git a/node_modules/es-abstract/2019/thisStringValue.js b/node_modules/es-abstract/2019/thisStringValue.js index 8e4274d811..c7bf3da70c 100644 --- a/node_modules/es-abstract/2019/thisStringValue.js +++ b/node_modules/es-abstract/2019/thisStringValue.js @@ -4,7 +4,7 @@ var $StringValueOf = require('call-bind/callBound')('String.prototype.valueOf'); var Type = require('./Type'); -// https://ecma-international.org/ecma-262/6.0/#sec-properties-of-the-string-prototype-object +// https://262.ecma-international.org/6.0/#sec-properties-of-the-string-prototype-object module.exports = function thisStringValue(value) { if (Type(value) === 'String') { diff --git a/node_modules/es-abstract/2019/thisTimeValue.js b/node_modules/es-abstract/2019/thisTimeValue.js index a9a47ace2b..bd50ddd068 100644 --- a/node_modules/es-abstract/2019/thisTimeValue.js +++ b/node_modules/es-abstract/2019/thisTimeValue.js @@ -1,3 +1,9 @@ 'use strict'; -module.exports = require('../2018/thisTimeValue'); +var $DateGetTime = require('call-bind/callBound')('Date.prototype.getTime'); + +// https://262.ecma-international.org/6.0/#sec-properties-of-the-date-prototype-object + +module.exports = function thisTimeValue(value) { + return $DateGetTime(value); +}; diff --git a/node_modules/es-abstract/2020/AbstractEqualityComparison.js b/node_modules/es-abstract/2020/AbstractEqualityComparison.js index 83b2949673..871a84fa82 100644 --- a/node_modules/es-abstract/2020/AbstractEqualityComparison.js +++ b/node_modules/es-abstract/2020/AbstractEqualityComparison.js @@ -8,7 +8,7 @@ var Type = require('./Type'); var isNaN = require('../helpers/isNaN'); -// https://ecma-international.org/ecma-262/11.0/#sec-abstract-equality-comparison +// https://262.ecma-international.org/11.0/#sec-abstract-equality-comparison module.exports = function AbstractEqualityComparison(x, y) { var xType = Type(x); diff --git a/node_modules/es-abstract/2020/AddEntriesFromIterable.js b/node_modules/es-abstract/2020/AddEntriesFromIterable.js index a0a5e71bd6..5bea627fb5 100644 --- a/node_modules/es-abstract/2020/AddEntriesFromIterable.js +++ b/node_modules/es-abstract/2020/AddEntriesFromIterable.js @@ -13,9 +13,10 @@ var IsCallable = require('./IsCallable'); var IteratorClose = require('./IteratorClose'); var IteratorStep = require('./IteratorStep'); var IteratorValue = require('./IteratorValue'); +var ThrowCompletion = require('./ThrowCompletion'); var Type = require('./Type'); -// https://262.ecma-international.org/10.0//#sec-add-entries-from-iterable +// https://262.ecma-international.org/10.0/#sec-add-entries-from-iterable module.exports = function AddEntriesFromIterable(target, iterable, adder) { if (!IsCallable(adder)) { @@ -32,21 +33,15 @@ module.exports = function AddEntriesFromIterable(target, iterable, adder) { } var nextItem = IteratorValue(next); if (Type(nextItem) !== 'Object') { - var error = new $TypeError('iterator next must return an Object, got ' + inspect(nextItem)); - return IteratorClose( - iteratorRecord, - function () { throw error; } // eslint-disable-line no-loop-func - ); + var error = ThrowCompletion(new $TypeError('iterator next must return an Object, got ' + inspect(nextItem))); + return IteratorClose(iteratorRecord, error); } try { var k = Get(nextItem, '0'); var v = Get(nextItem, '1'); Call(adder, target, [k, v]); } catch (e) { - return IteratorClose( - iteratorRecord, - function () { throw e; } - ); + return IteratorClose(iteratorRecord, ThrowCompletion(e)); } } }; diff --git a/node_modules/es-abstract/2020/AdvanceStringIndex.js b/node_modules/es-abstract/2020/AdvanceStringIndex.js index 0e62c4a4a4..b9460b4564 100644 --- a/node_modules/es-abstract/2020/AdvanceStringIndex.js +++ b/node_modules/es-abstract/2020/AdvanceStringIndex.js @@ -3,20 +3,20 @@ var GetIntrinsic = require('get-intrinsic'); var CodePointAt = require('./CodePointAt'); -var IsInteger = require('./IsInteger'); var Type = require('./Type'); +var isInteger = require('../helpers/isInteger'); var MAX_SAFE_INTEGER = require('../helpers/maxSafeInteger'); var $TypeError = GetIntrinsic('%TypeError%'); -// https://262.ecma-international.org/6.0/#sec-advancestringindex +// https://262.ecma-international.org/11.0/#sec-advancestringindex module.exports = function AdvanceStringIndex(S, index, unicode) { if (Type(S) !== 'String') { throw new $TypeError('Assertion failed: `S` must be a String'); } - if (!IsInteger(index) || index < 0 || index > MAX_SAFE_INTEGER) { + if (!isInteger(index) || index < 0 || index > MAX_SAFE_INTEGER) { throw new $TypeError('Assertion failed: `length` must be an integer >= 0 and <= 2**53'); } if (Type(unicode) !== 'Boolean') { diff --git a/node_modules/es-abstract/2020/ArrayCreate.js b/node_modules/es-abstract/2020/ArrayCreate.js index cc890cafbf..0d34db9bec 100644 --- a/node_modules/es-abstract/2020/ArrayCreate.js +++ b/node_modules/es-abstract/2020/ArrayCreate.js @@ -7,7 +7,7 @@ var $RangeError = GetIntrinsic('%RangeError%'); var $SyntaxError = GetIntrinsic('%SyntaxError%'); var $TypeError = GetIntrinsic('%TypeError%'); -var IsInteger = require('./IsInteger'); +var isInteger = require('../helpers/isInteger'); var hasProto = require('has-proto')(); @@ -22,10 +22,10 @@ var $setProto = GetIntrinsic('%Object.setPrototypeOf%', true) || ( : null ); -// https://ecma-international.org/ecma-262/6.0/#sec-arraycreate +// https://262.ecma-international.org/6.0/#sec-arraycreate module.exports = function ArrayCreate(length) { - if (!IsInteger(length) || length < 0) { + if (!isInteger(length) || length < 0) { throw new $TypeError('Assertion failed: `length` must be an integer Number >= 0'); } if (length > MAX_ARRAY_LENGTH) { diff --git a/node_modules/es-abstract/2020/ArraySetLength.js b/node_modules/es-abstract/2020/ArraySetLength.js index 08db9c2e9b..45d7569e7d 100644 --- a/node_modules/es-abstract/2020/ArraySetLength.js +++ b/node_modules/es-abstract/2020/ArraySetLength.js @@ -19,7 +19,7 @@ var ToString = require('./ToString'); var ToUint32 = require('./ToUint32'); var Type = require('./Type'); -// https://ecma-international.org/ecma-262/6.0/#sec-arraysetlength +// https://262.ecma-international.org/6.0/#sec-arraysetlength // eslint-disable-next-line max-statements, max-lines-per-function module.exports = function ArraySetLength(A, Desc) { diff --git a/node_modules/es-abstract/2020/ArraySpeciesCreate.js b/node_modules/es-abstract/2020/ArraySpeciesCreate.js index 26d63b5e20..1944dfe7b8 100644 --- a/node_modules/es-abstract/2020/ArraySpeciesCreate.js +++ b/node_modules/es-abstract/2020/ArraySpeciesCreate.js @@ -9,13 +9,14 @@ var $TypeError = GetIntrinsic('%TypeError%'); var Get = require('./Get'); var IsArray = require('./IsArray'); var IsConstructor = require('./IsConstructor'); -var IsInteger = require('./IsInteger'); var Type = require('./Type'); -// https://ecma-international.org/ecma-262/6.0/#sec-arrayspeciescreate +var isInteger = require('../helpers/isInteger'); + +// https://262.ecma-international.org/6.0/#sec-arrayspeciescreate module.exports = function ArraySpeciesCreate(originalArray, length) { - if (!IsInteger(length) || length < 0) { + if (!isInteger(length) || length < 0) { throw new $TypeError('Assertion failed: length must be an integer >= 0'); } var len = length === 0 ? 0 : length; diff --git a/node_modules/es-abstract/2020/AsyncFromSyncIteratorContinuation.js b/node_modules/es-abstract/2020/AsyncFromSyncIteratorContinuation.js index c1cc7a111a..5618539dd6 100644 --- a/node_modules/es-abstract/2020/AsyncFromSyncIteratorContinuation.js +++ b/node_modules/es-abstract/2020/AsyncFromSyncIteratorContinuation.js @@ -16,7 +16,7 @@ var Type = require('./Type'); var $then = callBound('Promise.prototype.then', true); -// https://ecma-international.org/ecma-262/10.0/#sec-asyncfromsynciteratorcontinuation +// https://262.ecma-international.org/10.0/#sec-asyncfromsynciteratorcontinuation module.exports = function AsyncFromSyncIteratorContinuation(result) { if (Type(result) !== 'Object') { diff --git a/node_modules/es-abstract/2020/Call.js b/node_modules/es-abstract/2020/Call.js index 4b238c6916..be76246db0 100644 --- a/node_modules/es-abstract/2020/Call.js +++ b/node_modules/es-abstract/2020/Call.js @@ -7,9 +7,9 @@ var $TypeError = GetIntrinsic('%TypeError%'); var IsArray = require('./IsArray'); -var $apply = GetIntrinsic('%Reflect.apply%', true) || callBound('%Function.prototype.apply%'); +var $apply = GetIntrinsic('%Reflect.apply%', true) || callBound('Function.prototype.apply'); -// https://ecma-international.org/ecma-262/6.0/#sec-call +// https://262.ecma-international.org/6.0/#sec-call module.exports = function Call(F, V) { var argumentsList = arguments.length > 2 ? arguments[2] : []; diff --git a/node_modules/es-abstract/2020/CanonicalNumericIndexString.js b/node_modules/es-abstract/2020/CanonicalNumericIndexString.js index feb878c032..e9f386326c 100644 --- a/node_modules/es-abstract/2020/CanonicalNumericIndexString.js +++ b/node_modules/es-abstract/2020/CanonicalNumericIndexString.js @@ -9,7 +9,7 @@ var ToNumber = require('./ToNumber'); var ToString = require('./ToString'); var Type = require('./Type'); -// https://ecma-international.org/ecma-262/6.0/#sec-canonicalnumericindexstring +// https://262.ecma-international.org/6.0/#sec-canonicalnumericindexstring module.exports = function CanonicalNumericIndexString(argument) { if (Type(argument) !== 'String') { diff --git a/node_modules/es-abstract/2020/Canonicalize.js b/node_modules/es-abstract/2020/Canonicalize.js new file mode 100644 index 0000000000..8873db4c7c --- /dev/null +++ b/node_modules/es-abstract/2020/Canonicalize.js @@ -0,0 +1,55 @@ +'use strict'; + +var GetIntrinsic = require('get-intrinsic'); + +var $TypeError = GetIntrinsic('%TypeError%'); + +var callBound = require('call-bind/callBound'); +var has = require('has'); + +var $charCodeAt = callBound('String.prototype.charCodeAt'); +var $toUpperCase = callBound('String.prototype.toUpperCase'); + +var Type = require('./Type'); + +var caseFolding = require('../helpers/caseFolding'); + +// https://262.ecma-international.org/6.0/#sec-runtime-semantics-canonicalize-ch + +module.exports = function Canonicalize(ch, IgnoreCase, Unicode) { + if (Type(ch) !== 'String') { + throw new $TypeError('Assertion failed: `ch` must be a character'); + } + + if (Type(IgnoreCase) !== 'Boolean' || Type(Unicode) !== 'Boolean') { + throw new $TypeError('Assertion failed: `IgnoreCase` and `Unicode` must be Booleans'); + } + + if (!IgnoreCase) { + return ch; // step 1 + } + + if (Unicode) { // step 2 + if (has(caseFolding.C, ch)) { + return caseFolding.C[ch]; + } + if (has(caseFolding.S, ch)) { + return caseFolding.S[ch]; + } + return ch; // step 2.b + } + + var u = $toUpperCase(ch); // step 2 + + if (u.length !== 1) { + return ch; // step 3 + } + + var cu = u; // step 4 + + if ($charCodeAt(ch, 0) >= 128 && $charCodeAt(cu, 0) < 128) { + return ch; // step 5 + } + + return cu; +}; diff --git a/node_modules/es-abstract/2020/CharacterRange.js b/node_modules/es-abstract/2020/CharacterRange.js index 70e4b52355..78783a59f2 100644 --- a/node_modules/es-abstract/2020/CharacterRange.js +++ b/node_modules/es-abstract/2020/CharacterRange.js @@ -5,8 +5,8 @@ var callBound = require('call-bind/callBound'); var $fromCharCode = GetIntrinsic('%String.fromCharCode%'); var $TypeError = GetIntrinsic('%TypeError%'); -var $charCodeAt = callBound('%String.prototype.charCodeAt%'); -var $push = callBound('%Array.prototype.push%'); +var $charCodeAt = callBound('String.prototype.charCodeAt'); +var $push = callBound('Array.prototype.push'); module.exports = function CharacterRange(A, B) { if (A.length !== 1 || B.length !== 1) { diff --git a/node_modules/es-abstract/2020/CompletePropertyDescriptor.js b/node_modules/es-abstract/2020/CompletePropertyDescriptor.js index 548bf415a3..e8685197aa 100644 --- a/node_modules/es-abstract/2020/CompletePropertyDescriptor.js +++ b/node_modules/es-abstract/2020/CompletePropertyDescriptor.js @@ -8,7 +8,7 @@ var IsDataDescriptor = require('./IsDataDescriptor'); var IsGenericDescriptor = require('./IsGenericDescriptor'); var Type = require('./Type'); -// https://ecma-international.org/ecma-262/6.0/#sec-completepropertydescriptor +// https://262.ecma-international.org/6.0/#sec-completepropertydescriptor module.exports = function CompletePropertyDescriptor(Desc) { /* eslint no-param-reassign: 0 */ diff --git a/node_modules/es-abstract/2020/CreateAsyncFromSyncIterator.js b/node_modules/es-abstract/2020/CreateAsyncFromSyncIterator.js index 693321d51d..64540dd6e3 100644 --- a/node_modules/es-abstract/2020/CreateAsyncFromSyncIterator.js +++ b/node_modules/es-abstract/2020/CreateAsyncFromSyncIterator.js @@ -101,7 +101,7 @@ var $AsyncFromSyncIteratorPrototype = GetIntrinsic('%AsyncFromSyncIteratorProtot } }; -// https://ecma-international.org/ecma-262/11.0/#sec-createasyncfromsynciterator +// https://262.ecma-international.org/11.0/#sec-createasyncfromsynciterator module.exports = function CreateAsyncFromSyncIterator(syncIteratorRecord) { assertRecord(Type, 'Iterator Record', 'syncIteratorRecord', syncIteratorRecord); diff --git a/node_modules/es-abstract/2020/CreateDataProperty.js b/node_modules/es-abstract/2020/CreateDataProperty.js index 02c6cd1f8b..5bd5fc4787 100644 --- a/node_modules/es-abstract/2020/CreateDataProperty.js +++ b/node_modules/es-abstract/2020/CreateDataProperty.js @@ -4,17 +4,11 @@ var GetIntrinsic = require('get-intrinsic'); var $TypeError = GetIntrinsic('%TypeError%'); -var DefineOwnProperty = require('../helpers/DefineOwnProperty'); - -var FromPropertyDescriptor = require('./FromPropertyDescriptor'); -var OrdinaryGetOwnProperty = require('./OrdinaryGetOwnProperty'); -var IsDataDescriptor = require('./IsDataDescriptor'); -var IsExtensible = require('./IsExtensible'); var IsPropertyKey = require('./IsPropertyKey'); -var SameValue = require('./SameValue'); +var OrdinaryDefineOwnProperty = require('./OrdinaryDefineOwnProperty'); var Type = require('./Type'); -// https://ecma-international.org/ecma-262/6.0/#sec-createdataproperty +// https://262.ecma-international.org/6.0/#sec-createdataproperty module.exports = function CreateDataProperty(O, P, V) { if (Type(O) !== 'Object') { @@ -23,23 +17,11 @@ module.exports = function CreateDataProperty(O, P, V) { if (!IsPropertyKey(P)) { throw new $TypeError('Assertion failed: IsPropertyKey(P) is not true'); } - var oldDesc = OrdinaryGetOwnProperty(O, P); - var extensible = !oldDesc || IsExtensible(O); - var nonConfigurable = oldDesc && !oldDesc['[[Configurable]]']; - if (nonConfigurable || !extensible) { - return false; - } - return DefineOwnProperty( - IsDataDescriptor, - SameValue, - FromPropertyDescriptor, - O, - P, - { - '[[Configurable]]': true, - '[[Enumerable]]': true, - '[[Value]]': V, - '[[Writable]]': true - } - ); + var newDesc = { + '[[Configurable]]': true, + '[[Enumerable]]': true, + '[[Value]]': V, + '[[Writable]]': true + }; + return OrdinaryDefineOwnProperty(O, P, newDesc); }; diff --git a/node_modules/es-abstract/2020/CreateDataPropertyOrThrow.js b/node_modules/es-abstract/2020/CreateDataPropertyOrThrow.js index 2f7c410ba3..c40e69368b 100644 --- a/node_modules/es-abstract/2020/CreateDataPropertyOrThrow.js +++ b/node_modules/es-abstract/2020/CreateDataPropertyOrThrow.js @@ -8,7 +8,7 @@ var CreateDataProperty = require('./CreateDataProperty'); var IsPropertyKey = require('./IsPropertyKey'); var Type = require('./Type'); -// // https://ecma-international.org/ecma-262/6.0/#sec-createdatapropertyorthrow +// // https://262.ecma-international.org/6.0/#sec-createdatapropertyorthrow module.exports = function CreateDataPropertyOrThrow(O, P, V) { if (Type(O) !== 'Object') { diff --git a/node_modules/es-abstract/2020/CreateHTML.js b/node_modules/es-abstract/2020/CreateHTML.js index ccded1e65d..ea7633da68 100644 --- a/node_modules/es-abstract/2020/CreateHTML.js +++ b/node_modules/es-abstract/2020/CreateHTML.js @@ -12,7 +12,7 @@ var RequireObjectCoercible = require('./RequireObjectCoercible'); var ToString = require('./ToString'); var Type = require('./Type'); -// https://ecma-international.org/ecma-262/6.0/#sec-createhtml +// https://262.ecma-international.org/6.0/#sec-createhtml module.exports = function CreateHTML(string, tag, attribute, value) { if (Type(tag) !== 'String' || Type(attribute) !== 'String') { diff --git a/node_modules/es-abstract/2020/CreateIterResultObject.js b/node_modules/es-abstract/2020/CreateIterResultObject.js index eea77a5128..ed86b34f25 100644 --- a/node_modules/es-abstract/2020/CreateIterResultObject.js +++ b/node_modules/es-abstract/2020/CreateIterResultObject.js @@ -6,7 +6,7 @@ var $TypeError = GetIntrinsic('%TypeError%'); var Type = require('./Type'); -// https://ecma-international.org/ecma-262/6.0/#sec-createiterresultobject +// https://262.ecma-international.org/6.0/#sec-createiterresultobject module.exports = function CreateIterResultObject(value, done) { if (Type(done) !== 'Boolean') { diff --git a/node_modules/es-abstract/2020/CreateListFromArrayLike.js b/node_modules/es-abstract/2020/CreateListFromArrayLike.js index 40293127dc..7592307eb1 100644 --- a/node_modules/es-abstract/2020/CreateListFromArrayLike.js +++ b/node_modules/es-abstract/2020/CreateListFromArrayLike.js @@ -14,12 +14,14 @@ var LengthOfArrayLike = require('./LengthOfArrayLike'); var ToString = require('./ToString'); var Type = require('./Type'); +var defaultElementTypes = ['Undefined', 'Null', 'Boolean', 'String', 'Symbol', 'Number', 'BigInt', 'Object']; + // https://262.ecma-international.org/11.0/#sec-createlistfromarraylike module.exports = function CreateListFromArrayLike(obj) { var elementTypes = arguments.length > 1 ? arguments[1] - : ['Undefined', 'Null', 'Boolean', 'String', 'Symbol', 'Number', 'BigInt', 'Object']; + : defaultElementTypes; if (Type(obj) !== 'Object') { throw new $TypeError('Assertion failed: `obj` must be an Object'); diff --git a/node_modules/es-abstract/2020/CreateMethodProperty.js b/node_modules/es-abstract/2020/CreateMethodProperty.js index 53274a5614..058c0f1760 100644 --- a/node_modules/es-abstract/2020/CreateMethodProperty.js +++ b/node_modules/es-abstract/2020/CreateMethodProperty.js @@ -12,7 +12,7 @@ var IsPropertyKey = require('./IsPropertyKey'); var SameValue = require('./SameValue'); var Type = require('./Type'); -// https://ecma-international.org/ecma-262/6.0/#sec-createmethodproperty +// https://262.ecma-international.org/6.0/#sec-createmethodproperty module.exports = function CreateMethodProperty(O, P, V) { if (Type(O) !== 'Object') { diff --git a/node_modules/es-abstract/2020/DefinePropertyOrThrow.js b/node_modules/es-abstract/2020/DefinePropertyOrThrow.js index 26f2714bb1..8fe097068d 100644 --- a/node_modules/es-abstract/2020/DefinePropertyOrThrow.js +++ b/node_modules/es-abstract/2020/DefinePropertyOrThrow.js @@ -15,7 +15,7 @@ var SameValue = require('./SameValue'); var ToPropertyDescriptor = require('./ToPropertyDescriptor'); var Type = require('./Type'); -// https://ecma-international.org/ecma-262/6.0/#sec-definepropertyorthrow +// https://262.ecma-international.org/6.0/#sec-definepropertyorthrow module.exports = function DefinePropertyOrThrow(O, P, desc) { if (Type(O) !== 'Object') { diff --git a/node_modules/es-abstract/2020/DeletePropertyOrThrow.js b/node_modules/es-abstract/2020/DeletePropertyOrThrow.js index 30d5e57c7b..581bf06ea2 100644 --- a/node_modules/es-abstract/2020/DeletePropertyOrThrow.js +++ b/node_modules/es-abstract/2020/DeletePropertyOrThrow.js @@ -7,7 +7,7 @@ var $TypeError = GetIntrinsic('%TypeError%'); var IsPropertyKey = require('./IsPropertyKey'); var Type = require('./Type'); -// https://ecma-international.org/ecma-262/6.0/#sec-deletepropertyorthrow +// https://262.ecma-international.org/6.0/#sec-deletepropertyorthrow module.exports = function DeletePropertyOrThrow(O, P) { if (Type(O) !== 'Object') { diff --git a/node_modules/es-abstract/2020/FlattenIntoArray.js b/node_modules/es-abstract/2020/FlattenIntoArray.js index 6429ee797f..0fb87bc6a3 100644 --- a/node_modules/es-abstract/2020/FlattenIntoArray.js +++ b/node_modules/es-abstract/2020/FlattenIntoArray.js @@ -16,7 +16,6 @@ var ToString = require('./ToString'); // https://262.ecma-international.org/11.0/#sec-flattenintoarray -// eslint-disable-next-line max-params module.exports = function FlattenIntoArray(target, source, sourceLen, start, depth) { var mapperFunction; if (arguments.length > 5) { diff --git a/node_modules/es-abstract/2020/FromPropertyDescriptor.js b/node_modules/es-abstract/2020/FromPropertyDescriptor.js index e142ed582e..c70f0c60e1 100644 --- a/node_modules/es-abstract/2020/FromPropertyDescriptor.js +++ b/node_modules/es-abstract/2020/FromPropertyDescriptor.js @@ -5,7 +5,7 @@ var fromPropertyDescriptor = require('../helpers/fromPropertyDescriptor'); var Type = require('./Type'); -// https://ecma-international.org/ecma-262/6.0/#sec-frompropertydescriptor +// https://262.ecma-international.org/6.0/#sec-frompropertydescriptor module.exports = function FromPropertyDescriptor(Desc) { if (typeof Desc !== 'undefined') { diff --git a/node_modules/es-abstract/2020/Get.js b/node_modules/es-abstract/2020/Get.js index 297968643f..0973152222 100644 --- a/node_modules/es-abstract/2020/Get.js +++ b/node_modules/es-abstract/2020/Get.js @@ -9,7 +9,7 @@ var inspect = require('object-inspect'); var IsPropertyKey = require('./IsPropertyKey'); var Type = require('./Type'); -// https://ecma-international.org/ecma-262/6.0/#sec-get-o-p +// https://262.ecma-international.org/6.0/#sec-get-o-p module.exports = function Get(O, P) { // 7.3.1.1 diff --git a/node_modules/es-abstract/2020/GetIterator.js b/node_modules/es-abstract/2020/GetIterator.js index 51439e4482..672454abdb 100644 --- a/node_modules/es-abstract/2020/GetIterator.js +++ b/node_modules/es-abstract/2020/GetIterator.js @@ -16,7 +16,8 @@ var GetMethod = require('./GetMethod'); var IsArray = require('./IsArray'); var Type = require('./Type'); -// https://262.ecma-international.org/9.0/#sec-getiterator +// https://262.ecma-international.org/11.0/#sec-getiterator + module.exports = function GetIterator(obj, hint, method) { var actualHint = hint; if (arguments.length < 2) { diff --git a/node_modules/es-abstract/2020/GetMethod.js b/node_modules/es-abstract/2020/GetMethod.js index d3775178e6..e9f2854ff3 100644 --- a/node_modules/es-abstract/2020/GetMethod.js +++ b/node_modules/es-abstract/2020/GetMethod.js @@ -8,9 +8,9 @@ var GetV = require('./GetV'); var IsCallable = require('./IsCallable'); var IsPropertyKey = require('./IsPropertyKey'); -var debug = require('object-inspect'); +var inspect = require('object-inspect'); -// https://ecma-international.org/ecma-262/6.0/#sec-getmethod +// https://262.ecma-international.org/6.0/#sec-getmethod module.exports = function GetMethod(O, P) { // 7.3.9.1 @@ -28,7 +28,7 @@ module.exports = function GetMethod(O, P) { // 7.3.9.5 if (!IsCallable(func)) { - throw new $TypeError(P + ' is not a function: ' + debug(func)); + throw new $TypeError(inspect(P) + ' is not a function: ' + inspect(func)); } // 7.3.9.6 diff --git a/node_modules/es-abstract/2020/GetOwnPropertyKeys.js b/node_modules/es-abstract/2020/GetOwnPropertyKeys.js index 40c0b367fa..043fd733bd 100644 --- a/node_modules/es-abstract/2020/GetOwnPropertyKeys.js +++ b/node_modules/es-abstract/2020/GetOwnPropertyKeys.js @@ -12,7 +12,7 @@ var keys = require('object-keys'); var esType = require('./Type'); -// https://ecma-international.org/ecma-262/6.0/#sec-getownpropertykeys +// https://262.ecma-international.org/6.0/#sec-getownpropertykeys module.exports = function GetOwnPropertyKeys(O, Type) { if (esType(O) !== 'Object') { diff --git a/node_modules/es-abstract/2020/GetPrototypeFromConstructor.js b/node_modules/es-abstract/2020/GetPrototypeFromConstructor.js index 25ee12f353..0b281ef4fe 100644 --- a/node_modules/es-abstract/2020/GetPrototypeFromConstructor.js +++ b/node_modules/es-abstract/2020/GetPrototypeFromConstructor.js @@ -10,10 +10,13 @@ var Get = require('./Get'); var IsConstructor = require('./IsConstructor'); var Type = require('./Type'); -// https://ecma-international.org/ecma-262/6.0/#sec-getprototypefromconstructor +// https://262.ecma-international.org/6.0/#sec-getprototypefromconstructor module.exports = function GetPrototypeFromConstructor(constructor, intrinsicDefaultProto) { var intrinsic = GetIntrinsic(intrinsicDefaultProto); // throws if not a valid intrinsic + if (Type(intrinsic) !== 'Object') { + throw new $TypeError('intrinsicDefaultProto must be an object'); + } if (!IsConstructor(constructor)) { throw new $TypeError('Assertion failed: `constructor` must be a constructor'); } diff --git a/node_modules/es-abstract/2020/GetSubstitution.js b/node_modules/es-abstract/2020/GetSubstitution.js index 96bdcaafe0..8163c96d02 100644 --- a/node_modules/es-abstract/2020/GetSubstitution.js +++ b/node_modules/es-abstract/2020/GetSubstitution.js @@ -19,16 +19,12 @@ var inspect = require('object-inspect'); var Get = require('./Get'); var IsArray = require('./IsArray'); -var IsInteger = require('./IsInteger'); var ToObject = require('./ToObject'); var ToString = require('./ToString'); var Type = require('./Type'); -var canDistinguishSparseFromUndefined = 0 in [undefined]; // IE 6 - 8 have a bug where this returns false - -var isStringOrHole = function (capture, index, arr) { - return Type(capture) === 'String' || (canDistinguishSparseFromUndefined ? !(index in arr) : Type(capture) === 'Undefined'); -}; +var isInteger = require('../helpers/isInteger'); +var isStringOrHole = require('../helpers/isStringOrHole'); // http://262.ecma-international.org/9.0/#sec-getsubstitution @@ -44,7 +40,7 @@ module.exports = function GetSubstitution(matched, str, position, captures, name } var stringLength = str.length; - if (!IsInteger(position) || position < 0 || position > stringLength) { + if (!isInteger(position) || position < 0 || position > stringLength) { throw new $TypeError('Assertion failed: `position` must be a nonnegative integer, and less than or equal to the length of `string`, got ' + inspect(position)); } diff --git a/node_modules/es-abstract/2020/GetV.js b/node_modules/es-abstract/2020/GetV.js index 2dcddb3513..706a9211ab 100644 --- a/node_modules/es-abstract/2020/GetV.js +++ b/node_modules/es-abstract/2020/GetV.js @@ -4,20 +4,22 @@ var GetIntrinsic = require('get-intrinsic'); var $TypeError = GetIntrinsic('%TypeError%'); +var inspect = require('object-inspect'); + var IsPropertyKey = require('./IsPropertyKey'); -var ToObject = require('./ToObject'); +// var ToObject = require('./ToObject'); -// https://ecma-international.org/ecma-262/6.0/#sec-getv +// https://262.ecma-international.org/6.0/#sec-getv module.exports = function GetV(V, P) { // 7.3.2.1 if (!IsPropertyKey(P)) { - throw new $TypeError('Assertion failed: IsPropertyKey(P) is not true'); + throw new $TypeError('Assertion failed: IsPropertyKey(P) is not true, got ' + inspect(P)); } // 7.3.2.2-3 - var O = ToObject(V); + // var O = ToObject(V); // 7.3.2.4 - return O[P]; + return V[P]; }; diff --git a/node_modules/es-abstract/2020/GetValueFromBuffer.js b/node_modules/es-abstract/2020/GetValueFromBuffer.js new file mode 100644 index 0000000000..8d3a2f4fc5 --- /dev/null +++ b/node_modules/es-abstract/2020/GetValueFromBuffer.js @@ -0,0 +1,110 @@ +'use strict'; + +var GetIntrinsic = require('get-intrinsic'); + +var $SyntaxError = GetIntrinsic('%SyntaxError%'); +var $TypeError = GetIntrinsic('%TypeError%'); +var $Uint8Array = GetIntrinsic('%Uint8Array%', true); + +var callBound = require('call-bind/callBound'); + +var $slice = callBound('Array.prototype.slice'); + +var isInteger = require('../helpers/isInteger'); + +var IsDetachedBuffer = require('./IsDetachedBuffer'); +var RawBytesToNumeric = require('./RawBytesToNumeric'); + +var isArrayBuffer = require('is-array-buffer'); +var isSharedArrayBuffer = require('is-shared-array-buffer'); +var safeConcat = require('safe-array-concat'); + +var table61 = { + __proto__: null, + $Int8: 1, + $Uint8: 1, + $Uint8C: 1, + $Int16: 2, + $Uint16: 2, + $Int32: 4, + $Uint32: 4, + $BigInt64: 8, + $BigUint64: 8, + $Float32: 4, + $Float64: 8 +}; + +var defaultEndianness = require('../helpers/defaultEndianness'); + +// https://262.ecma-international.org/11.0/#sec-getvaluefrombuffer + +module.exports = function GetValueFromBuffer(arrayBuffer, byteIndex, type, isTypedArray, order) { + var isSAB = isSharedArrayBuffer(arrayBuffer); + if (!isArrayBuffer(arrayBuffer) && !isSAB) { + throw new $TypeError('Assertion failed: `arrayBuffer` must be an ArrayBuffer or a SharedArrayBuffer'); + } + + if (!isInteger(byteIndex)) { + throw new $TypeError('Assertion failed: `byteIndex` must be an integer'); + } + + if (typeof type !== 'string' || typeof table61['$' + type] !== 'number') { + throw new $TypeError('Assertion failed: `type` must be a Typed Array element type'); + } + + if (typeof isTypedArray !== 'boolean') { + throw new $TypeError('Assertion failed: `isTypedArray` must be a boolean'); + } + + if (order !== 'SeqCst' && order !== 'Unordered') { + throw new $TypeError('Assertion failed: `order` must be either `SeqCst` or `Unordered`'); + } + + if (arguments.length > 5 && typeof arguments[5] !== 'boolean') { + throw new $TypeError('Assertion failed: `isLittleEndian` must be a boolean, if present'); + } + + if (IsDetachedBuffer(arrayBuffer)) { + throw new $TypeError('Assertion failed: `arrayBuffer` is detached'); // step 1 + } + + // 2. Assert: There are sufficient bytes in arrayBuffer starting at byteIndex to represent a value of type. + + if (byteIndex < 0) { + throw new $TypeError('Assertion failed: `byteIndex` must be non-negative'); // step 3 + } + + // 4. Let block be arrayBuffer.[[ArrayBufferData]]. + + var elementSize = table61['$' + type]; // step 5 + if (!elementSize) { + throw new $TypeError('Assertion failed: `type` must be one of "Int8", "Uint8", "Uint8C", "Int16", "Uint16", "Int32", "Uint32", "BigInt64", "BigUint64", "Float32", or "Float64"'); + } + + var rawValue; + if (isSAB) { // step 6 + /* + a. Let execution be the [[CandidateExecution]] field of the surrounding agent's Agent Record. + b. Let eventList be the [[EventList]] field of the element in execution.[[EventLists]] whose [[AgentSignifier]] is AgentSignifier(). + c. If isTypedArray is true and type is "Int8", "Uint8", "Int16", "Uint16", "Int32", or "Uint32", let noTear be true; otherwise let noTear be false. + d. Let rawValue be a List of length elementSize of nondeterministically chosen byte values. + e. NOTE: In implementations, rawValue is the result of a non-atomic or atomic read instruction on the underlying hardware. The nondeterminism is a semantic prescription of the memory model to describe observable behaviour of hardware with weak consistency. + f. Let readEvent be ReadSharedMemory{ [[Order]]: order, [[NoTear]]: noTear, [[Block]]: block, [[ByteIndex]]: byteIndex, [[ElementSize]]: elementSize }. + g. Append readEvent to eventList. + h. Append Chosen Value Record { [[Event]]: readEvent, [[ChosenValue]]: rawValue } to execution.[[ChosenValues]]. + */ + throw new $SyntaxError('SharedArrayBuffer is not supported by this implementation'); + } else { + // 7. Let rawValue be a List of elementSize containing, in order, the elementSize sequence of bytes starting with block[byteIndex]. + rawValue = $slice(new $Uint8Array(arrayBuffer, byteIndex), 0, elementSize); // step 6 + } + + // 8. If isLittleEndian is not present, set isLittleEndian to either true or false. The choice is implementation dependent and should be the alternative that is most efficient for the implementation. An implementation must use the same value each time this step is executed and the same value must be used for the corresponding step in the SetValueInBuffer abstract operation. + var isLittleEndian = arguments.length > 5 ? arguments[5] : defaultEndianness === 'little'; // step 8 + + var bytes = isLittleEndian + ? $slice(safeConcat([0, 0, 0, 0, 0, 0, 0, 0], rawValue), -elementSize) + : $slice(safeConcat(rawValue, [0, 0, 0, 0, 0, 0, 0, 0]), 0, elementSize); + + return RawBytesToNumeric(type, bytes, isLittleEndian); +}; diff --git a/node_modules/es-abstract/2020/HasOwnProperty.js b/node_modules/es-abstract/2020/HasOwnProperty.js index 04d28495f9..1f29ba4df1 100644 --- a/node_modules/es-abstract/2020/HasOwnProperty.js +++ b/node_modules/es-abstract/2020/HasOwnProperty.js @@ -9,7 +9,7 @@ var has = require('has'); var IsPropertyKey = require('./IsPropertyKey'); var Type = require('./Type'); -// https://ecma-international.org/ecma-262/6.0/#sec-hasownproperty +// https://262.ecma-international.org/6.0/#sec-hasownproperty module.exports = function HasOwnProperty(O, P) { if (Type(O) !== 'Object') { diff --git a/node_modules/es-abstract/2020/HasProperty.js b/node_modules/es-abstract/2020/HasProperty.js index b341654e7c..91476d208b 100644 --- a/node_modules/es-abstract/2020/HasProperty.js +++ b/node_modules/es-abstract/2020/HasProperty.js @@ -7,7 +7,7 @@ var $TypeError = GetIntrinsic('%TypeError%'); var IsPropertyKey = require('./IsPropertyKey'); var Type = require('./Type'); -// https://ecma-international.org/ecma-262/6.0/#sec-hasproperty +// https://262.ecma-international.org/6.0/#sec-hasproperty module.exports = function HasProperty(O, P) { if (Type(O) !== 'Object') { diff --git a/node_modules/es-abstract/2020/InstanceofOperator.js b/node_modules/es-abstract/2020/InstanceofOperator.js index a3c4d23755..4a34d0c20c 100644 --- a/node_modules/es-abstract/2020/InstanceofOperator.js +++ b/node_modules/es-abstract/2020/InstanceofOperator.js @@ -13,7 +13,7 @@ var OrdinaryHasInstance = require('./OrdinaryHasInstance'); var ToBoolean = require('./ToBoolean'); var Type = require('./Type'); -// https://ecma-international.org/ecma-262/6.0/#sec-instanceofoperator +// https://262.ecma-international.org/6.0/#sec-instanceofoperator module.exports = function InstanceofOperator(O, C) { if (Type(O) !== 'Object') { diff --git a/node_modules/es-abstract/2020/Invoke.js b/node_modules/es-abstract/2020/Invoke.js index d4214ee516..084e5e2825 100644 --- a/node_modules/es-abstract/2020/Invoke.js +++ b/node_modules/es-abstract/2020/Invoke.js @@ -9,7 +9,7 @@ var IsArray = require('./IsArray'); var GetV = require('./GetV'); var IsPropertyKey = require('./IsPropertyKey'); -// https://ecma-international.org/ecma-262/6.0/#sec-invoke +// https://262.ecma-international.org/6.0/#sec-invoke module.exports = function Invoke(O, P) { if (!IsPropertyKey(P)) { diff --git a/node_modules/es-abstract/2020/IsAccessorDescriptor.js b/node_modules/es-abstract/2020/IsAccessorDescriptor.js index 78563e7ecc..da64a302ac 100644 --- a/node_modules/es-abstract/2020/IsAccessorDescriptor.js +++ b/node_modules/es-abstract/2020/IsAccessorDescriptor.js @@ -2,11 +2,11 @@ var has = require('has'); -var assertRecord = require('../helpers/assertRecord'); - var Type = require('./Type'); -// https://ecma-international.org/ecma-262/6.0/#sec-isaccessordescriptor +var assertRecord = require('../helpers/assertRecord'); + +// https://262.ecma-international.org/5.1/#sec-8.10.1 module.exports = function IsAccessorDescriptor(Desc) { if (typeof Desc === 'undefined') { diff --git a/node_modules/es-abstract/2020/IsArray.js b/node_modules/es-abstract/2020/IsArray.js index 600ffa0028..c2c48c1f23 100644 --- a/node_modules/es-abstract/2020/IsArray.js +++ b/node_modules/es-abstract/2020/IsArray.js @@ -1,4 +1,4 @@ 'use strict'; -// https://ecma-international.org/ecma-262/6.0/#sec-isarray +// https://262.ecma-international.org/6.0/#sec-isarray module.exports = require('../helpers/IsArray'); diff --git a/node_modules/es-abstract/2020/IsConcatSpreadable.js b/node_modules/es-abstract/2020/IsConcatSpreadable.js index 141b33414d..10e1eab216 100644 --- a/node_modules/es-abstract/2020/IsConcatSpreadable.js +++ b/node_modules/es-abstract/2020/IsConcatSpreadable.js @@ -9,7 +9,7 @@ var IsArray = require('./IsArray'); var ToBoolean = require('./ToBoolean'); var Type = require('./Type'); -// https://ecma-international.org/ecma-262/6.0/#sec-isconcatspreadable +// https://262.ecma-international.org/6.0/#sec-isconcatspreadable module.exports = function IsConcatSpreadable(O) { if (Type(O) !== 'Object') { diff --git a/node_modules/es-abstract/2020/IsConstructor.js b/node_modules/es-abstract/2020/IsConstructor.js index fe626e1834..62ac47f6a3 100644 --- a/node_modules/es-abstract/2020/IsConstructor.js +++ b/node_modules/es-abstract/2020/IsConstructor.js @@ -12,7 +12,7 @@ try { DefinePropertyOrThrow = null; } -// https://ecma-international.org/ecma-262/6.0/#sec-isconstructor +// https://262.ecma-international.org/6.0/#sec-isconstructor if (DefinePropertyOrThrow && $construct) { var isConstructorMarker = {}; diff --git a/node_modules/es-abstract/2020/IsDataDescriptor.js b/node_modules/es-abstract/2020/IsDataDescriptor.js index 00d14a60eb..9db441e965 100644 --- a/node_modules/es-abstract/2020/IsDataDescriptor.js +++ b/node_modules/es-abstract/2020/IsDataDescriptor.js @@ -2,11 +2,11 @@ var has = require('has'); -var assertRecord = require('../helpers/assertRecord'); - var Type = require('./Type'); -// https://ecma-international.org/ecma-262/6.0/#sec-isdatadescriptor +var assertRecord = require('../helpers/assertRecord'); + +// https://262.ecma-international.org/5.1/#sec-8.10.2 module.exports = function IsDataDescriptor(Desc) { if (typeof Desc === 'undefined') { diff --git a/node_modules/es-abstract/2020/IsDetachedBuffer.js b/node_modules/es-abstract/2020/IsDetachedBuffer.js index 4b373e9ab5..01529bca2c 100644 --- a/node_modules/es-abstract/2020/IsDetachedBuffer.js +++ b/node_modules/es-abstract/2020/IsDetachedBuffer.js @@ -4,10 +4,7 @@ var GetIntrinsic = require('get-intrinsic'); var $TypeError = GetIntrinsic('%TypeError%'); -var callBound = require('call-bind/callBound'); - -var $byteLength = callBound('%ArrayBuffer.prototype.byteLength%', true) - || function byteLength(ab) { return ab.byteLength; }; // in node < 0.11, byteLength is an own nonconfigurable property +var $byteLength = require('array-buffer-byte-length'); var isArrayBuffer = require('is-array-buffer'); @@ -23,7 +20,7 @@ module.exports = function IsDetachedBuffer(arrayBuffer) { try { new global[availableTypedArrays[0]](arrayBuffer); // eslint-disable-line no-new } catch (error) { - return error.name === 'TypeError'; + return !!error && error.name === 'TypeError'; } } return false; diff --git a/node_modules/es-abstract/2020/IsExtensible.js b/node_modules/es-abstract/2020/IsExtensible.js index d6e3638401..aa19b914c2 100644 --- a/node_modules/es-abstract/2020/IsExtensible.js +++ b/node_modules/es-abstract/2020/IsExtensible.js @@ -7,7 +7,7 @@ var $isExtensible = GetIntrinsic('%Object.isExtensible%', true); var isPrimitive = require('../helpers/isPrimitive'); -// https://ecma-international.org/ecma-262/6.0/#sec-isextensible-o +// https://262.ecma-international.org/6.0/#sec-isextensible-o module.exports = $preventExtensions ? function IsExtensible(obj) { diff --git a/node_modules/es-abstract/2020/IsGenericDescriptor.js b/node_modules/es-abstract/2020/IsGenericDescriptor.js index 95b1d353c5..d43bec2b35 100644 --- a/node_modules/es-abstract/2020/IsGenericDescriptor.js +++ b/node_modules/es-abstract/2020/IsGenericDescriptor.js @@ -6,7 +6,7 @@ var IsAccessorDescriptor = require('./IsAccessorDescriptor'); var IsDataDescriptor = require('./IsDataDescriptor'); var Type = require('./Type'); -// https://ecma-international.org/ecma-262/6.0/#sec-isgenericdescriptor +// https://262.ecma-international.org/6.0/#sec-isgenericdescriptor module.exports = function IsGenericDescriptor(Desc) { if (typeof Desc === 'undefined') { diff --git a/node_modules/es-abstract/2020/IsInteger.js b/node_modules/es-abstract/2020/IsInteger.js index f4d1a2a7c5..e3d25f38e3 100644 --- a/node_modules/es-abstract/2020/IsInteger.js +++ b/node_modules/es-abstract/2020/IsInteger.js @@ -1,17 +1,9 @@ 'use strict'; -var abs = require('./abs'); -var floor = require('./floor'); +var isInteger = require('../helpers/isInteger'); -var $isNaN = require('../helpers/isNaN'); -var $isFinite = require('../helpers/isFinite'); - -// https://ecma-international.org/ecma-262/6.0/#sec-isinteger +// https://262.ecma-international.org/6.0/#sec-isinteger module.exports = function IsInteger(argument) { - if (typeof argument !== 'number' || $isNaN(argument) || !$isFinite(argument)) { - return false; - } - var absValue = abs(argument); - return floor(absValue) === absValue; + return isInteger(argument); }; diff --git a/node_modules/es-abstract/2020/IsPromise.js b/node_modules/es-abstract/2020/IsPromise.js index a551ae0c8b..411539b081 100644 --- a/node_modules/es-abstract/2020/IsPromise.js +++ b/node_modules/es-abstract/2020/IsPromise.js @@ -6,7 +6,7 @@ var $PromiseThen = callBound('Promise.prototype.then', true); var Type = require('./Type'); -// https://ecma-international.org/ecma-262/6.0/#sec-ispromise +// https://262.ecma-international.org/6.0/#sec-ispromise module.exports = function IsPromise(x) { if (Type(x) !== 'Object') { diff --git a/node_modules/es-abstract/2020/IsPropertyKey.js b/node_modules/es-abstract/2020/IsPropertyKey.js index f43ab581c7..aaeb6f9b6f 100644 --- a/node_modules/es-abstract/2020/IsPropertyKey.js +++ b/node_modules/es-abstract/2020/IsPropertyKey.js @@ -1,6 +1,6 @@ 'use strict'; -// https://ecma-international.org/ecma-262/6.0/#sec-ispropertykey +// https://262.ecma-international.org/6.0/#sec-ispropertykey module.exports = function IsPropertyKey(argument) { return typeof argument === 'string' || typeof argument === 'symbol'; diff --git a/node_modules/es-abstract/2020/IsRegExp.js b/node_modules/es-abstract/2020/IsRegExp.js index e1054813f1..33d983dc8d 100644 --- a/node_modules/es-abstract/2020/IsRegExp.js +++ b/node_modules/es-abstract/2020/IsRegExp.js @@ -8,7 +8,7 @@ var hasRegExpMatcher = require('is-regex'); var ToBoolean = require('./ToBoolean'); -// https://ecma-international.org/ecma-262/6.0/#sec-isregexp +// https://262.ecma-international.org/6.0/#sec-isregexp module.exports = function IsRegExp(argument) { if (!argument || typeof argument !== 'object') { diff --git a/node_modules/es-abstract/2020/IsValidIntegerIndex.js b/node_modules/es-abstract/2020/IsValidIntegerIndex.js new file mode 100644 index 0000000000..e2e9af5d83 --- /dev/null +++ b/node_modules/es-abstract/2020/IsValidIntegerIndex.js @@ -0,0 +1,30 @@ +'use strict'; + +var GetIntrinsic = require('get-intrinsic'); + +var $TypeError = GetIntrinsic('%TypeError%'); + +var IsInteger = require('./IsInteger'); + +var isNegativeZero = require('../helpers/isNegativeZero'); + +var typedArrayBuffer = require('typed-array-buffer'); + +// https://262.ecma-international.org/11.0/#sec-isvalidintegerindex + +module.exports = function IsValidIntegerIndex(O, index) { + // Assert: O is an Integer-Indexed exotic object. + typedArrayBuffer(O); // step 1 + + if (typeof index !== 'number') { + throw new $TypeError('Assertion failed: Type(index) is not Number'); // step 2 + } + + if (!IsInteger(index)) { return false; } // step 3 + + if (isNegativeZero(index)) { return false; } // step 4 + + if (index < 0 || index >= O.length) { return false; } // step 5 + + return true; // step 6 +}; diff --git a/node_modules/es-abstract/2020/IsWordChar.js b/node_modules/es-abstract/2020/IsWordChar.js new file mode 100644 index 0000000000..5d61804925 --- /dev/null +++ b/node_modules/es-abstract/2020/IsWordChar.js @@ -0,0 +1,48 @@ +'use strict'; + +var GetIntrinsic = require('get-intrinsic'); + +var $TypeError = GetIntrinsic('%TypeError%'); + +var callBound = require('call-bind/callBound'); + +var $indexOf = callBound('String.prototype.indexOf'); + +var IsArray = require('./IsArray'); +var IsInteger = require('./IsInteger'); +var Type = require('./Type'); +var WordCharacters = require('./WordCharacters'); + +var every = require('../helpers/every'); + +var isChar = function isChar(c) { + return typeof c === 'string'; +}; + +// https://262.ecma-international.org/8.0/#sec-runtime-semantics-iswordchar-abstract-operation + +// note: prior to ES2023, this AO erroneously omitted the latter of its arguments. +module.exports = function IsWordChar(e, InputLength, Input, IgnoreCase, Unicode) { + if (!IsInteger(e)) { + throw new $TypeError('Assertion failed: `e` must be an integer'); + } + if (!IsInteger(InputLength)) { + throw new $TypeError('Assertion failed: `InputLength` must be an integer'); + } + if (!IsArray(Input) || !every(Input, isChar)) { + throw new $TypeError('Assertion failed: `Input` must be a List of characters'); + } + if (Type(IgnoreCase) !== 'Boolean' || Type(Unicode) !== 'Boolean') { + throw new $TypeError('Assertion failed: `IgnoreCase` and `Unicode` must be booleans'); + } + + if (e === -1 || e === InputLength) { + return false; // step 1 + } + + var c = Input[e]; // step 2 + + var wordChars = WordCharacters(IgnoreCase, Unicode); + + return $indexOf(wordChars, c) > -1; // steps 3-4 +}; diff --git a/node_modules/es-abstract/2020/IteratorClose.js b/node_modules/es-abstract/2020/IteratorClose.js index f703ea632f..7c1076082e 100644 --- a/node_modules/es-abstract/2020/IteratorClose.js +++ b/node_modules/es-abstract/2020/IteratorClose.js @@ -10,7 +10,7 @@ var GetMethod = require('./GetMethod'); var IsCallable = require('./IsCallable'); var Type = require('./Type'); -// https://ecma-international.org/ecma-262/6.0/#sec-iteratorclose +// https://262.ecma-international.org/6.0/#sec-iteratorclose module.exports = function IteratorClose(iterator, completion) { if (Type(iterator) !== 'Object') { diff --git a/node_modules/es-abstract/2020/IteratorComplete.js b/node_modules/es-abstract/2020/IteratorComplete.js index ed4efa37d5..29f5f75fea 100644 --- a/node_modules/es-abstract/2020/IteratorComplete.js +++ b/node_modules/es-abstract/2020/IteratorComplete.js @@ -8,7 +8,7 @@ var Get = require('./Get'); var ToBoolean = require('./ToBoolean'); var Type = require('./Type'); -// https://ecma-international.org/ecma-262/6.0/#sec-iteratorcomplete +// https://262.ecma-international.org/6.0/#sec-iteratorcomplete module.exports = function IteratorComplete(iterResult) { if (Type(iterResult) !== 'Object') { diff --git a/node_modules/es-abstract/2020/IteratorNext.js b/node_modules/es-abstract/2020/IteratorNext.js index cf80655b93..d84d66edb5 100644 --- a/node_modules/es-abstract/2020/IteratorNext.js +++ b/node_modules/es-abstract/2020/IteratorNext.js @@ -7,7 +7,7 @@ var $TypeError = GetIntrinsic('%TypeError%'); var Invoke = require('./Invoke'); var Type = require('./Type'); -// https://ecma-international.org/ecma-262/6.0/#sec-iteratornext +// https://262.ecma-international.org/6.0/#sec-iteratornext module.exports = function IteratorNext(iterator, value) { var result = Invoke(iterator, 'next', arguments.length < 2 ? [] : [value]); diff --git a/node_modules/es-abstract/2020/IteratorStep.js b/node_modules/es-abstract/2020/IteratorStep.js index 41b9d1b251..85bcd95c04 100644 --- a/node_modules/es-abstract/2020/IteratorStep.js +++ b/node_modules/es-abstract/2020/IteratorStep.js @@ -3,7 +3,7 @@ var IteratorComplete = require('./IteratorComplete'); var IteratorNext = require('./IteratorNext'); -// https://ecma-international.org/ecma-262/6.0/#sec-iteratorstep +// https://262.ecma-international.org/6.0/#sec-iteratorstep module.exports = function IteratorStep(iterator) { var result = IteratorNext(iterator); diff --git a/node_modules/es-abstract/2020/IteratorValue.js b/node_modules/es-abstract/2020/IteratorValue.js index d15d8aebbf..e9b16daed5 100644 --- a/node_modules/es-abstract/2020/IteratorValue.js +++ b/node_modules/es-abstract/2020/IteratorValue.js @@ -7,7 +7,7 @@ var $TypeError = GetIntrinsic('%TypeError%'); var Get = require('./Get'); var Type = require('./Type'); -// https://ecma-international.org/ecma-262/6.0/#sec-iteratorvalue +// https://262.ecma-international.org/6.0/#sec-iteratorvalue module.exports = function IteratorValue(iterResult) { if (Type(iterResult) !== 'Object') { diff --git a/node_modules/es-abstract/2020/NewPromiseCapability.js b/node_modules/es-abstract/2020/NewPromiseCapability.js new file mode 100644 index 0000000000..e30b08811d --- /dev/null +++ b/node_modules/es-abstract/2020/NewPromiseCapability.js @@ -0,0 +1,36 @@ +'use strict'; + +var GetIntrinsic = require('get-intrinsic'); + +var $TypeError = GetIntrinsic('%TypeError%'); + +var IsCallable = require('es-abstract/2022/IsCallable'); +var IsConstructor = require('es-abstract/2022/IsConstructor'); + +// https://262.ecma-international.org/6.0/#sec-newpromisecapability + +module.exports = function NewPromiseCapability(C) { + if (!IsConstructor(C)) { + throw new $TypeError('C must be a constructor'); // step 1 + } + + var resolvingFunctions = { '[[Resolve]]': void undefined, '[[Reject]]': void undefined }; // step 3 + + var promise = new C(function (resolve, reject) { // steps 4-5 + if (typeof resolvingFunctions['[[Resolve]]'] !== 'undefined' || typeof resolvingFunctions['[[Reject]]'] !== 'undefined') { + throw new $TypeError('executor has already been called'); // step 4.a, 4.b + } + resolvingFunctions['[[Resolve]]'] = resolve; // step 4.c + resolvingFunctions['[[Reject]]'] = reject; // step 4.d + }); // step 4-6 + + if (!IsCallable(resolvingFunctions['[[Resolve]]']) || !IsCallable(resolvingFunctions['[[Reject]]'])) { + throw new $TypeError('executor must provide valid resolve and reject functions'); // steps 7-8 + } + + return { + '[[Promise]]': promise, + '[[Resolve]]': resolvingFunctions['[[Resolve]]'], + '[[Reject]]': resolvingFunctions['[[Reject]]'] + }; // step 9 +}; diff --git a/node_modules/es-abstract/2020/NumberToBigInt.js b/node_modules/es-abstract/2020/NumberToBigInt.js index 84649847cf..7d13b69db2 100644 --- a/node_modules/es-abstract/2020/NumberToBigInt.js +++ b/node_modules/es-abstract/2020/NumberToBigInt.js @@ -7,16 +7,17 @@ var $RangeError = GetIntrinsic('%RangeError%'); var $SyntaxError = GetIntrinsic('%SyntaxError%'); var $TypeError = GetIntrinsic('%TypeError%'); -var IsInteger = require('./IsInteger'); var Type = require('./Type'); +var isInteger = require('../helpers/isInteger'); + // https://262.ecma-international.org/11.0/#sec-numbertobigint module.exports = function NumberToBigInt(number) { if (Type(number) !== 'Number') { throw new $TypeError('Assertion failed: `number` must be a String'); } - if (!IsInteger(number)) { + if (!isInteger(number)) { throw new $RangeError('The number ' + number + ' cannot be converted to a BigInt because it is not an integer'); } if (!$BigInt) { diff --git a/node_modules/es-abstract/2020/NumericToRawBytes.js b/node_modules/es-abstract/2020/NumericToRawBytes.js index 91549fb991..cc671159f4 100644 --- a/node_modules/es-abstract/2020/NumericToRawBytes.js +++ b/node_modules/es-abstract/2020/NumericToRawBytes.js @@ -2,25 +2,8 @@ var GetIntrinsic = require('get-intrinsic'); -var $floor = GetIntrinsic('%Math.floor%'); -var $log = GetIntrinsic('%Math.log%'); -var $log2E = GetIntrinsic('%Math.LOG2E%'); -var $log2 = GetIntrinsic('%Math.log2%', true) || function log2(x) { - return $log(x) * $log2E; -}; -var $parseInt = GetIntrinsic('%parseInt%'); -var $pow = GetIntrinsic('%Math.pow%'); -var $Number = GetIntrinsic('%Number%'); var $TypeError = GetIntrinsic('%TypeError%'); -var $BigInt = GetIntrinsic('%BigInt%', true); - -var callBound = require('call-bind/callBound'); -var $reverse = callBound('Array.prototype.reverse'); -var $numberToString = callBound('Number.prototype.toString'); -var $strSlice = callBound('String.prototype.slice'); - -var abs = require('./abs'); var hasOwnProperty = require('./HasOwnProperty'); var ToBigInt64 = require('./ToBigInt64'); var ToBigUint64 = require('./ToBigUint64'); @@ -33,8 +16,9 @@ var ToUint8 = require('./ToUint8'); var ToUint8Clamp = require('./ToUint8Clamp'); var Type = require('./Type'); -var isNaN = require('../helpers/isNaN'); -var isFinite = require('../helpers/isFinite'); +var valueToFloat32Bytes = require('../helpers/valueToFloat32Bytes'); +var valueToFloat64Bytes = require('../helpers/valueToFloat64Bytes'); +var integerToNBytes = require('../helpers/integerToNBytes'); var keys = require('object-keys'); @@ -80,105 +64,10 @@ module.exports = function NumericToRawBytes(type, value, isLittleEndian) { throw new $TypeError('Assertion failed: `isLittleEndian` must be a Boolean'); } - var rawBytes = []; - var exponent; - if (type === 'Float32') { // step 1 - if (isNaN(value)) { - return isLittleEndian ? [0, 0, 192, 127] : [127, 192, 0, 0]; // hardcoded - } - - var leastSig; - - if (value === 0) { - leastSig = Object.is(value, -0) ? 0x80 : 0; - return isLittleEndian ? [0, 0, 0, leastSig] : [leastSig, 0, 0, 0]; - } - - if (!isFinite(value)) { - leastSig = value < 0 ? 255 : 127; - return isLittleEndian ? [0, 0, 128, leastSig] : [leastSig, 128, 0, 0]; - } - - var sign = value < 0 ? 1 : 0; - value = abs(value); // eslint-disable-line no-param-reassign - - exponent = 0; - while (value >= 2) { - exponent += 1; - value /= 2; // eslint-disable-line no-param-reassign - } - - while (value < 1) { - exponent -= 1; - value *= 2; // eslint-disable-line no-param-reassign - } - - var mantissa = value - 1; - mantissa *= $pow(2, 23); - mantissa = $floor(mantissa); - - exponent += 127; - exponent = exponent << 23; - - var result = sign << 31; - result |= exponent; - result |= mantissa; - - var byte0 = result & 255; - result = result >> 8; - var byte1 = result & 255; - result = result >> 8; - var byte2 = result & 255; - result = result >> 8; - var byte3 = result & 255; - - if (isLittleEndian) { - return [byte0, byte1, byte2, byte3]; - } - return [byte3, byte2, byte1, byte0]; + return valueToFloat32Bytes(value, isLittleEndian); } else if (type === 'Float64') { // step 2 - if (value === 0) { - leastSig = Object.is(value, -0) ? 0x80 : 0; - return isLittleEndian ? [0, 0, 0, 0, 0, 0, 0, leastSig] : [leastSig, 0, 0, 0, 0, 0, 0, 0]; - } - if (isNaN(value)) { - return isLittleEndian ? [0, 0, 0, 0, 0, 0, 248, 127] : [127, 248, 0, 0, 0, 0, 0, 0]; - } - if (!isFinite(value)) { - var infBytes = value < 0 ? [0, 0, 0, 0, 0, 0, 240, 255] : [0, 0, 0, 0, 0, 0, 240, 127]; - return isLittleEndian ? infBytes : $reverse(infBytes); - } - - var isNegative = value < 0; - if (isNegative) { value = -value; } // eslint-disable-line no-param-reassign - - exponent = $floor($log2(value)); - var significand = (value / $pow(2, exponent)) - 1; - - var bitString = ''; - for (var i = 0; i < 52; i++) { - significand *= 2; - if (significand >= 1) { - bitString += '1'; - significand -= 1; - } else { - bitString += '0'; - } - } - - exponent += 1023; - var exponentBits = $numberToString(exponent, 2); - while (exponentBits.length < 11) { exponentBits = '0' + exponentBits; } - - var fullBitString = (isNegative ? '1' : '0') + exponentBits + bitString; - while (fullBitString.length < 64) { fullBitString = '0' + fullBitString; } - - for (i = 0; i < 8; i++) { - rawBytes[i] = $parseInt($strSlice(fullBitString, i * 8, (i + 1) * 8), 2); - } - - return isLittleEndian ? $reverse(rawBytes) : rawBytes; + return valueToFloat64Bytes(value, isLittleEndian); } // step 3 var n = TypeToSizes[type]; // step 3.a @@ -187,23 +76,5 @@ module.exports = function NumericToRawBytes(type, value, isLittleEndian) { var intValue = convOp(value); // step 3.c - var isBigInt = type === 'BigInt64' || type === 'BigUint64'; - /* - if (intValue >= 0) { // step 3.d - // Let rawBytes be a List containing the n-byte binary encoding of intValue. If isLittleEndian is false, the bytes are ordered in big endian order. Otherwise, the bytes are ordered in little endian order. - } else { // step 3.e - // Let rawBytes be a List containing the n-byte binary 2's complement encoding of intValue. If isLittleEndian is false, the bytes are ordered in big endian order. Otherwise, the bytes are ordered in little endian order. - } - */ - if (intValue < 0) { - intValue = intValue >>> 0; - } - var OxFF = isBigInt ? $BigInt(0xFF) : 0xFF; - var eight = isBigInt ? $BigInt(8) : 8; - for (i = 0; i < n; i++) { - rawBytes[isLittleEndian ? i : n - 1 - i] = $Number(intValue & OxFF); - intValue = intValue >> eight; - } - - return rawBytes; // step 4 + return integerToNBytes(intValue, n, isLittleEndian); // step 3.d, 3.e, 4 }; diff --git a/node_modules/es-abstract/2020/ObjectDefineProperties.js b/node_modules/es-abstract/2020/ObjectDefineProperties.js index f096f1edee..b47603487c 100644 --- a/node_modules/es-abstract/2020/ObjectDefineProperties.js +++ b/node_modules/es-abstract/2020/ObjectDefineProperties.js @@ -3,7 +3,6 @@ var callBound = require('call-bind/callBound'); var DefinePropertyOrThrow = require('./DefinePropertyOrThrow'); -var FromPropertyDescriptor = require('./FromPropertyDescriptor'); var Get = require('./Get'); var ToObject = require('./ToObject'); var ToPropertyDescriptor = require('./ToPropertyDescriptor'); @@ -32,7 +31,6 @@ module.exports = function ObjectDefineProperties(O, Properties) { forEach(descriptors, function (pair) { // step 5 var P = pair[0]; // step 5.a var desc = pair[1]; // step 5.b - desc = FromPropertyDescriptor(desc); // TODO: remove this once DefinePropertyOrThrow is fixed DefinePropertyOrThrow(O, P, desc); // step 5.c }); diff --git a/node_modules/es-abstract/2020/OrdinaryDefineOwnProperty.js b/node_modules/es-abstract/2020/OrdinaryDefineOwnProperty.js index 34f029f7e5..70cd4fe58d 100644 --- a/node_modules/es-abstract/2020/OrdinaryDefineOwnProperty.js +++ b/node_modules/es-abstract/2020/OrdinaryDefineOwnProperty.js @@ -17,7 +17,7 @@ var SameValue = require('./SameValue'); var Type = require('./Type'); var ValidateAndApplyPropertyDescriptor = require('./ValidateAndApplyPropertyDescriptor'); -// https://ecma-international.org/ecma-262/6.0/#sec-ordinarydefineownproperty +// https://262.ecma-international.org/6.0/#sec-ordinarydefineownproperty module.exports = function OrdinaryDefineOwnProperty(O, P, Desc) { if (Type(O) !== 'Object') { diff --git a/node_modules/es-abstract/2020/OrdinaryGetOwnProperty.js b/node_modules/es-abstract/2020/OrdinaryGetOwnProperty.js index fd8035acb9..c23abe1103 100644 --- a/node_modules/es-abstract/2020/OrdinaryGetOwnProperty.js +++ b/node_modules/es-abstract/2020/OrdinaryGetOwnProperty.js @@ -17,7 +17,7 @@ var IsRegExp = require('./IsRegExp'); var ToPropertyDescriptor = require('./ToPropertyDescriptor'); var Type = require('./Type'); -// https://ecma-international.org/ecma-262/6.0/#sec-ordinarygetownproperty +// https://262.ecma-international.org/6.0/#sec-ordinarygetownproperty module.exports = function OrdinaryGetOwnProperty(O, P) { if (Type(O) !== 'Object') { diff --git a/node_modules/es-abstract/2020/OrdinaryHasInstance.js b/node_modules/es-abstract/2020/OrdinaryHasInstance.js index 85a240ca2f..996a50e070 100644 --- a/node_modules/es-abstract/2020/OrdinaryHasInstance.js +++ b/node_modules/es-abstract/2020/OrdinaryHasInstance.js @@ -8,10 +8,10 @@ var Get = require('./Get'); var IsCallable = require('./IsCallable'); var Type = require('./Type'); -// https://ecma-international.org/ecma-262/6.0/#sec-ordinaryhasinstance +// https://262.ecma-international.org/6.0/#sec-ordinaryhasinstance module.exports = function OrdinaryHasInstance(C, O) { - if (IsCallable(C) === false) { + if (!IsCallable(C)) { return false; } if (Type(O) !== 'Object') { diff --git a/node_modules/es-abstract/2020/OrdinaryHasProperty.js b/node_modules/es-abstract/2020/OrdinaryHasProperty.js index dd09ca3b1b..27e7da33ad 100644 --- a/node_modules/es-abstract/2020/OrdinaryHasProperty.js +++ b/node_modules/es-abstract/2020/OrdinaryHasProperty.js @@ -7,7 +7,7 @@ var $TypeError = GetIntrinsic('%TypeError%'); var IsPropertyKey = require('./IsPropertyKey'); var Type = require('./Type'); -// https://ecma-international.org/ecma-262/6.0/#sec-ordinaryhasproperty +// https://262.ecma-international.org/6.0/#sec-ordinaryhasproperty module.exports = function OrdinaryHasProperty(O, P) { if (Type(O) !== 'Object') { diff --git a/node_modules/es-abstract/2020/RawBytesToNumeric.js b/node_modules/es-abstract/2020/RawBytesToNumeric.js index c253b5d701..d14705cdcc 100644 --- a/node_modules/es-abstract/2020/RawBytesToNumeric.js +++ b/node_modules/es-abstract/2020/RawBytesToNumeric.js @@ -3,7 +3,6 @@ var GetIntrinsic = require('get-intrinsic'); var callBound = require('call-bind/callBound'); -var $pow = GetIntrinsic('%Math.pow%'); var $RangeError = GetIntrinsic('%RangeError%'); var $SyntaxError = GetIntrinsic('%SyntaxError%'); var $TypeError = GetIntrinsic('%TypeError%'); @@ -15,6 +14,9 @@ var IsBigIntElementType = require('./IsBigIntElementType'); var IsUnsignedElementType = require('./IsUnsignedElementType'); var Type = require('./Type'); +var bytesAsFloat32 = require('../helpers/bytesAsFloat32'); +var bytesAsFloat64 = require('../helpers/bytesAsFloat64'); +var bytesAsInteger = require('../helpers/bytesAsInteger'); var every = require('../helpers/every'); var isByteValue = require('../helpers/isByteValue'); @@ -67,90 +69,16 @@ module.exports = function RawBytesToNumeric(type, rawBytes, isLittleEndian) { // eslint-disable-next-line no-param-reassign rawBytes = $slice(rawBytes, 0, elementSize); if (!isLittleEndian) { - // eslint-disable-next-line no-param-reassign - rawBytes = $reverse(rawBytes); // step 2 + $reverse(rawBytes); // step 2 } - /* eslint no-redeclare: 1 */ if (type === 'Float32') { // step 3 - /* - Let value be the byte elements of rawBytes concatenated and interpreted as a little-endian bit string encoding of an IEEE 754-2008 binary32 value. -If value is an IEEE 754-2008 binary32 NaN value, return the NaN Number value. -Return the Number value that corresponds to value. - */ - var sign = (rawBytes[3] & 0x80) >> 7; // first bit - var exponent = ((rawBytes[3] & 0x7F) << 1) // 7 bits from index 3 - | ((rawBytes[2] & 0x80) >> 7); // 1 bit from index 2 - var mantissa = ((rawBytes[2] & 0x7F) << 16) // 7 bits from index 2 - | (rawBytes[1] << 8) // 8 bits from index 1 - | rawBytes[0]; // 8 bits from index 0 - - if (exponent === 0 && mantissa === 0) { - return sign === 0 ? 0 : -0; - } - if (exponent === 0xFF && mantissa === 0) { - return sign === 0 ? Infinity : -Infinity; - } - if (exponent === 0xFF && mantissa !== 0) { - return NaN; - } - - exponent -= 127; // subtract the bias - - // return $pow(-1, sign) * mantissa / $pow(2, 23) * $pow(2, exponent); - // return $pow(-1, sign) * (mantissa + 0x1000000) * $pow(2, exponent - 23); - return $pow(-1, sign) * (1 + (mantissa / $pow(2, 23))) * $pow(2, exponent); + return bytesAsFloat32(rawBytes); } if (type === 'Float64') { // step 4 - /* - Let value be the byte elements of rawBytes concatenated and interpreted as a little-endian bit string encoding of an IEEE 754-2008 binary64 value. -If value is an IEEE 754-2008 binary64 NaN value, return the NaN Number value. -Return the Number value that corresponds to value. - */ - var sign = rawBytes[7] & 0x80 ? -1 : 1; // first bit - var exponent = ((rawBytes[7] & 0x7F) << 4) // 7 bits from index 7 - | ((rawBytes[6] & 0xF0) >> 4); // 4 bits from index 6 - var mantissa = ((rawBytes[6] & 0x0F) * 0x1000000000000) // 4 bits from index 6 - + (rawBytes[5] * 0x10000000000) // 8 bits from index 5 - + (rawBytes[4] * 0x100000000) // 8 bits from index 4 - + (rawBytes[3] * 0x1000000) // 8 bits from index 3 - + (rawBytes[2] * 0x10000) // 8 bits from index 2 - + (rawBytes[1] * 0x100) // 8 bits from index 1 - + rawBytes[0]; // 8 bits from index 0 - - if (exponent === 0 && mantissa === 0) { - return sign * 0; - } - if (exponent === 0x7FF && mantissa !== 0) { - return NaN; - } - if (exponent === 0x7FF && mantissa === 0) { - return sign * Infinity; - } - - exponent -= 1023; // subtract the bias - - return sign * (mantissa + 0x10000000000000) * $pow(2, exponent - 52); + return bytesAsFloat64(rawBytes); } - // this is common to both branches - var intValue = isBigInt ? $BigInt(0) : 0; - for (var i = 0; i < rawBytes.length; i++) { - intValue |= isBigInt ? $BigInt(rawBytes[i]) << $BigInt(8 * i) : rawBytes[i] << (8 * i); - } - /* - Let intValue be the byte elements of rawBytes concatenated and interpreted as a bit string encoding of an unsigned little-endian binary number. - */ - - if (!IsUnsignedElementType(type)) { // steps 5-6 - // Let intValue be the byte elements of rawBytes concatenated and interpreted as a bit string encoding of a binary little-endian 2's complement number of bit length elementSize × 8. - var bitLength = elementSize * 8; - if (bitLength < 32) { - var x = isBigInt ? $BigInt(32 - bitLength) : 32 - bitLength; - intValue = (intValue << x) >> x; - } - } - - return intValue; // step 7 + return bytesAsInteger(rawBytes, elementSize, IsUnsignedElementType(type), isBigInt); }; diff --git a/node_modules/es-abstract/2020/RegExpExec.js b/node_modules/es-abstract/2020/RegExpExec.js index 29fee1720c..cf15207415 100644 --- a/node_modules/es-abstract/2020/RegExpExec.js +++ b/node_modules/es-abstract/2020/RegExpExec.js @@ -11,7 +11,7 @@ var Get = require('./Get'); var IsCallable = require('./IsCallable'); var Type = require('./Type'); -// https://ecma-international.org/ecma-262/6.0/#sec-regexpexec +// https://262.ecma-international.org/6.0/#sec-regexpexec module.exports = function RegExpExec(R, S) { if (Type(R) !== 'Object') { diff --git a/node_modules/es-abstract/2020/SameValueZero.js b/node_modules/es-abstract/2020/SameValueZero.js index bf1a1486a1..3e2851b5ee 100644 --- a/node_modules/es-abstract/2020/SameValueZero.js +++ b/node_modules/es-abstract/2020/SameValueZero.js @@ -2,7 +2,7 @@ var $isNaN = require('../helpers/isNaN'); -// https://ecma-international.org/ecma-262/6.0/#sec-samevaluezero +// https://262.ecma-international.org/6.0/#sec-samevaluezero module.exports = function SameValueZero(x, y) { return (x === y) || ($isNaN(x) && $isNaN(y)); diff --git a/node_modules/es-abstract/2020/Set.js b/node_modules/es-abstract/2020/Set.js index 0971498879..9697031363 100644 --- a/node_modules/es-abstract/2020/Set.js +++ b/node_modules/es-abstract/2020/Set.js @@ -18,7 +18,7 @@ var noThrowOnStrictViolation = (function () { } }()); -// https://ecma-international.org/ecma-262/6.0/#sec-set-o-p-v-throw +// https://262.ecma-international.org/6.0/#sec-set-o-p-v-throw module.exports = function Set(O, P, V, Throw) { if (Type(O) !== 'Object') { diff --git a/node_modules/es-abstract/2020/SetFunctionName.js b/node_modules/es-abstract/2020/SetFunctionName.js index 03ec2227c7..f7fb0a9aab 100644 --- a/node_modules/es-abstract/2020/SetFunctionName.js +++ b/node_modules/es-abstract/2020/SetFunctionName.js @@ -12,7 +12,7 @@ var DefinePropertyOrThrow = require('./DefinePropertyOrThrow'); var IsExtensible = require('./IsExtensible'); var Type = require('./Type'); -// https://ecma-international.org/ecma-262/6.0/#sec-setfunctionname +// https://262.ecma-international.org/6.0/#sec-setfunctionname module.exports = function SetFunctionName(F, name) { if (typeof F !== 'function') { diff --git a/node_modules/es-abstract/2020/SetIntegrityLevel.js b/node_modules/es-abstract/2020/SetIntegrityLevel.js index 546f3e74f4..aaef85a0a2 100644 --- a/node_modules/es-abstract/2020/SetIntegrityLevel.js +++ b/node_modules/es-abstract/2020/SetIntegrityLevel.js @@ -15,7 +15,7 @@ var IsAccessorDescriptor = require('./IsAccessorDescriptor'); var ToPropertyDescriptor = require('./ToPropertyDescriptor'); var Type = require('./Type'); -// https://ecma-international.org/ecma-262/6.0/#sec-setintegritylevel +// https://262.ecma-international.org/6.0/#sec-setintegritylevel module.exports = function SetIntegrityLevel(O, level) { if (Type(O) !== 'Object') { diff --git a/node_modules/es-abstract/2020/SetValueInBuffer.js b/node_modules/es-abstract/2020/SetValueInBuffer.js new file mode 100644 index 0000000000..d0d3719241 --- /dev/null +++ b/node_modules/es-abstract/2020/SetValueInBuffer.js @@ -0,0 +1,109 @@ +'use strict'; + +var GetIntrinsic = require('get-intrinsic'); + +var $SyntaxError = GetIntrinsic('%SyntaxError%'); +var $TypeError = GetIntrinsic('%TypeError%'); + +var isInteger = require('../helpers/isInteger'); + +var IsBigIntElementType = require('./IsBigIntElementType'); +var IsDetachedBuffer = require('./IsDetachedBuffer'); +var NumericToRawBytes = require('./NumericToRawBytes'); + +var isArrayBuffer = require('is-array-buffer'); +var isSharedArrayBuffer = require('is-shared-array-buffer'); +var has = require('has'); + +var table61 = { + __proto__: null, + Int8: 1, + Uint8: 1, + Uint8C: 1, + Int16: 2, + Uint16: 2, + Int32: 4, + Uint32: 4, + BigInt64: 8, + BigUint64: 8, + Float32: 4, + Float64: 8 +}; + +var defaultEndianness = require('../helpers/defaultEndianness'); +var forEach = require('../helpers/forEach'); + +// https://262.ecma-international.org/11.0/#sec-setvalueinbuffer + +/* eslint max-params: 0 */ + +module.exports = function SetValueInBuffer(arrayBuffer, byteIndex, type, value, isTypedArray, order) { + var isSAB = isSharedArrayBuffer(arrayBuffer); + if (!isArrayBuffer(arrayBuffer) && !isSAB) { + throw new $TypeError('Assertion failed: `arrayBuffer` must be an ArrayBuffer or a SharedArrayBuffer'); + } + + if (!isInteger(byteIndex)) { + throw new $TypeError('Assertion failed: `byteIndex` must be an integer'); + } + + if (typeof type !== 'string' || !has(table61, type)) { + throw new $TypeError('Assertion failed: `type` must be a Typed Array Element Type'); + } + + if (typeof value !== 'number' && typeof value !== 'bigint') { + throw new $TypeError('Assertion failed: `value` must be a Number or a BigInt'); + } + + if (typeof isTypedArray !== 'boolean') { + throw new $TypeError('Assertion failed: `isTypedArray` must be a boolean'); + } + if (order !== 'SeqCst' && order !== 'Unordered' && order !== 'Init') { + throw new $TypeError('Assertion failed: `order` must be `"SeqCst"`, `"Unordered"`, or `"Init"`'); + } + + if (arguments.length > 6 && typeof arguments[6] !== 'boolean') { + throw new $TypeError('Assertion failed: `isLittleEndian` must be a boolean, if present'); + } + + if (IsDetachedBuffer(arrayBuffer)) { + throw new $TypeError('Assertion failed: ArrayBuffer is detached'); // step 1 + } + + // 2. Assert: There are sufficient bytes in arrayBuffer starting at byteIndex to represent a value of type. + + if (byteIndex < 0) { + throw new $TypeError('Assertion failed: `byteIndex` must be non-negative'); // step 3 + } + + if (IsBigIntElementType(type) ? typeof value !== 'bigint' : typeof value !== 'number') { // step 4 + throw new $TypeError('Assertion failed: `value` must be a BigInt if type is BigInt64 or BigUint64, otherwise a Number'); + } + + // 5. Let block be arrayBuffer’s [[ArrayBufferData]] internal slot. + + var elementSize = table61[type]; // step 6 + + // 8. If isLittleEndian is not present, set isLittleEndian to either true or false. The choice is implementation dependent and should be the alternative that is most efficient for the implementation. An implementation must use the same value each time this step is executed and the same value must be used for the corresponding step in the GetValueFromBuffer abstract operation. + var isLittleEndian = arguments.length > 6 ? arguments[6] : defaultEndianness === 'little'; // step 8 + + var rawBytes = NumericToRawBytes(type, value, isLittleEndian); // step 8 + + if (isSAB) { // step 9 + /* + Let execution be the [[CandidateExecution]] field of the surrounding agent's Agent Record. + Let eventList be the [[EventList]] field of the element in execution.[[EventsRecords]] whose [[AgentSignifier]] is AgentSignifier(). + If isTypedArray is true and IsNoTearConfiguration(type, order) is true, let noTear be true; otherwise let noTear be false. + Append WriteSharedMemory { [[Order]]: order, [[NoTear]]: noTear, [[Block]]: block, [[ByteIndex]]: byteIndex, [[ElementSize]]: elementSize, [[Payload]]: rawBytes } to eventList. + */ + throw new $SyntaxError('SharedArrayBuffer is not supported by this implementation'); + } else { + // 10. Store the individual bytes of rawBytes into block, in order, starting at block[byteIndex]. + var arr = new Uint8Array(arrayBuffer, byteIndex, elementSize); + forEach(rawBytes, function (rawByte, i) { + arr[i] = rawByte; + }); + } + + // 11. Return NormalCompletion(undefined). +}; diff --git a/node_modules/es-abstract/2020/SpeciesConstructor.js b/node_modules/es-abstract/2020/SpeciesConstructor.js index 491eb9b87d..1937b9c9cd 100644 --- a/node_modules/es-abstract/2020/SpeciesConstructor.js +++ b/node_modules/es-abstract/2020/SpeciesConstructor.js @@ -8,7 +8,7 @@ var $TypeError = GetIntrinsic('%TypeError%'); var IsConstructor = require('./IsConstructor'); var Type = require('./Type'); -// https://ecma-international.org/ecma-262/6.0/#sec-speciesconstructor +// https://262.ecma-international.org/6.0/#sec-speciesconstructor module.exports = function SpeciesConstructor(O, defaultConstructor) { if (Type(O) !== 'Object') { diff --git a/node_modules/es-abstract/2020/SplitMatch.js b/node_modules/es-abstract/2020/SplitMatch.js index 8ab05355ed..d57fb691e5 100644 --- a/node_modules/es-abstract/2020/SplitMatch.js +++ b/node_modules/es-abstract/2020/SplitMatch.js @@ -5,9 +5,10 @@ var callBound = require('call-bind/callBound'); var $TypeError = GetIntrinsic('%TypeError%'); -var IsInteger = require('./IsInteger'); var Type = require('./Type'); +var isInteger = require('../helpers/isInteger'); + var $charAt = callBound('String.prototype.charAt'); // https://262.ecma-international.org/6.0/#sec-splitmatch @@ -16,7 +17,7 @@ module.exports = function SplitMatch(S, q, R) { if (Type(S) !== 'String') { throw new $TypeError('Assertion failed: `S` must be a String'); } - if (!IsInteger(q)) { + if (!isInteger(q)) { throw new $TypeError('Assertion failed: `q` must be an integer'); } if (Type(R) !== 'String') { diff --git a/node_modules/es-abstract/2020/SymbolDescriptiveString.js b/node_modules/es-abstract/2020/SymbolDescriptiveString.js index 1efd1316b2..89c253ffae 100644 --- a/node_modules/es-abstract/2020/SymbolDescriptiveString.js +++ b/node_modules/es-abstract/2020/SymbolDescriptiveString.js @@ -10,7 +10,7 @@ var $SymbolToString = callBound('Symbol.prototype.toString', true); var Type = require('./Type'); -// https://ecma-international.org/ecma-262/6.0/#sec-symboldescriptivestring +// https://262.ecma-international.org/6.0/#sec-symboldescriptivestring module.exports = function SymbolDescriptiveString(sym) { if (Type(sym) !== 'Symbol') { diff --git a/node_modules/es-abstract/2020/TestIntegrityLevel.js b/node_modules/es-abstract/2020/TestIntegrityLevel.js index 7f95a6e1d4..7cefab7017 100644 --- a/node_modules/es-abstract/2020/TestIntegrityLevel.js +++ b/node_modules/es-abstract/2020/TestIntegrityLevel.js @@ -13,7 +13,7 @@ var IsExtensible = require('./IsExtensible'); var ToPropertyDescriptor = require('./ToPropertyDescriptor'); var Type = require('./Type'); -// https://ecma-international.org/ecma-262/6.0/#sec-testintegritylevel +// https://262.ecma-international.org/6.0/#sec-testintegritylevel module.exports = function TestIntegrityLevel(O, level) { if (Type(O) !== 'Object') { diff --git a/node_modules/es-abstract/2020/ToBigInt.js b/node_modules/es-abstract/2020/ToBigInt.js index aa24d7b713..d24e0fff09 100644 --- a/node_modules/es-abstract/2020/ToBigInt.js +++ b/node_modules/es-abstract/2020/ToBigInt.js @@ -3,12 +3,15 @@ var GetIntrinsic = require('get-intrinsic'); var $BigInt = GetIntrinsic('%BigInt%', true); -var $asIntN = GetIntrinsic('%BigInt.asIntN%', true); var $Number = GetIntrinsic('%Number%'); +var $TypeError = GetIntrinsic('%TypeError%'); var $SyntaxError = GetIntrinsic('%SyntaxError%'); +var StringToBigInt = require('./StringToBigInt'); var ToPrimitive = require('./ToPrimitive'); +var isNaN = require('../helpers/isNaN'); + // https://262.ecma-international.org/11.0/#sec-tobigint module.exports = function ToBigInt(argument) { @@ -18,8 +21,33 @@ module.exports = function ToBigInt(argument) { var prim = ToPrimitive(argument, $Number); + if (prim == null) { + throw new $TypeError('Cannot convert null or undefined to a BigInt'); + } + + if (typeof prim === 'boolean') { + return prim ? $BigInt(1) : $BigInt(0); + } + if (typeof prim === 'number') { - return $asIntN(0, prim); + throw new $TypeError('Cannot convert a Number value to a BigInt'); + } + + if (typeof prim === 'string') { + var n = StringToBigInt(prim); + if (isNaN(n)) { + throw new $TypeError('Failed to parse String to BigInt'); + } + return n; + } + + if (typeof prim === 'symbol') { + throw new $TypeError('Cannot convert a Symbol value to a BigInt'); } - return $BigInt(prim); + + if (typeof prim !== 'bigint') { + throw new $SyntaxError('Assertion failed: unknown primitive type'); + } + + return prim; }; diff --git a/node_modules/es-abstract/2020/ToDateString.js b/node_modules/es-abstract/2020/ToDateString.js index e636a9ba68..dabb2bb38a 100644 --- a/node_modules/es-abstract/2020/ToDateString.js +++ b/node_modules/es-abstract/2020/ToDateString.js @@ -4,12 +4,13 @@ var GetIntrinsic = require('get-intrinsic'); var $TypeError = GetIntrinsic('%TypeError%'); var $Date = GetIntrinsic('%Date%'); +var $String = GetIntrinsic('%String%'); var $isNaN = require('../helpers/isNaN'); var Type = require('./Type'); -// https://ecma-international.org/ecma-262/6.0/#sec-todatestring +// https://262.ecma-international.org/6.0/#sec-todatestring module.exports = function ToDateString(tv) { if (Type(tv) !== 'Number') { @@ -18,5 +19,5 @@ module.exports = function ToDateString(tv) { if ($isNaN(tv)) { return 'Invalid Date'; } - return $Date(tv); + return $String(new $Date(tv)); }; diff --git a/node_modules/es-abstract/2020/ToInt16.js b/node_modules/es-abstract/2020/ToInt16.js index cb8e7934bb..21694bdeb9 100644 --- a/node_modules/es-abstract/2020/ToInt16.js +++ b/node_modules/es-abstract/2020/ToInt16.js @@ -2,7 +2,7 @@ var ToUint16 = require('./ToUint16'); -// https://ecma-international.org/ecma-262/6.0/#sec-toint16 +// https://262.ecma-international.org/6.0/#sec-toint16 module.exports = function ToInt16(argument) { var int16bit = ToUint16(argument); diff --git a/node_modules/es-abstract/2020/ToInt8.js b/node_modules/es-abstract/2020/ToInt8.js index bc452d826f..e223b6c1d3 100644 --- a/node_modules/es-abstract/2020/ToInt8.js +++ b/node_modules/es-abstract/2020/ToInt8.js @@ -2,7 +2,7 @@ var ToUint8 = require('./ToUint8'); -// https://ecma-international.org/ecma-262/6.0/#sec-toint8 +// https://262.ecma-international.org/6.0/#sec-toint8 module.exports = function ToInt8(argument) { var int8bit = ToUint8(argument); diff --git a/node_modules/es-abstract/2020/ToNumber.js b/node_modules/es-abstract/2020/ToNumber.js index c9e29f2c48..72853a986e 100644 --- a/node_modules/es-abstract/2020/ToNumber.js +++ b/node_modules/es-abstract/2020/ToNumber.js @@ -19,22 +19,11 @@ var nonWS = ['\u0085', '\u200b', '\ufffe'].join(''); var nonWSregex = new $RegExp('[' + nonWS + ']', 'g'); var hasNonWS = regexTester(nonWSregex); -// whitespace from: https://es5.github.io/#x15.5.4.20 -// implementation from https://github.com/es-shims/es5-shim/blob/v3.4.0/es5-shim.js#L1304-L1324 -var ws = [ - '\x09\x0A\x0B\x0C\x0D\x20\xA0\u1680\u180E\u2000\u2001\u2002\u2003', - '\u2004\u2005\u2006\u2007\u2008\u2009\u200A\u202F\u205F\u3000\u2028', - '\u2029\uFEFF' -].join(''); -var trimRegex = new RegExp('(^[' + ws + ']+)|([' + ws + ']+$)', 'g'); -var $replace = callBound('String.prototype.replace'); -var $trim = function (value) { - return $replace(value, trimRegex, ''); -}; +var $trim = require('string.prototype.trim'); var ToPrimitive = require('./ToPrimitive'); -// https://ecma-international.org/ecma-262/6.0/#sec-tonumber +// https://262.ecma-international.org/6.0/#sec-tonumber module.exports = function ToNumber(argument) { var value = isPrimitive(argument) ? argument : ToPrimitive(argument, $Number); diff --git a/node_modules/es-abstract/2020/ToNumeric.js b/node_modules/es-abstract/2020/ToNumeric.js index c187760941..140adb3975 100644 --- a/node_modules/es-abstract/2020/ToNumeric.js +++ b/node_modules/es-abstract/2020/ToNumeric.js @@ -10,7 +10,7 @@ var ToPrimitive = require('./ToPrimitive'); var ToNumber = require('./ToNumber'); var Type = require('./Type'); -// https://262.ecma-international.org/6.0/#sec-tonumber +// https://262.ecma-international.org/11.0/#sec-tonumeric module.exports = function ToNumeric(argument) { var primValue = isPrimitive(argument) ? argument : ToPrimitive(argument, $Number); diff --git a/node_modules/es-abstract/2020/ToObject.js b/node_modules/es-abstract/2020/ToObject.js index cb26bac064..26a007cead 100644 --- a/node_modules/es-abstract/2020/ToObject.js +++ b/node_modules/es-abstract/2020/ToObject.js @@ -6,7 +6,7 @@ var $Object = GetIntrinsic('%Object%'); var RequireObjectCoercible = require('./RequireObjectCoercible'); -// https://ecma-international.org/ecma-262/6.0/#sec-toobject +// https://262.ecma-international.org/6.0/#sec-toobject module.exports = function ToObject(value) { RequireObjectCoercible(value); diff --git a/node_modules/es-abstract/2020/ToPrimitive.js b/node_modules/es-abstract/2020/ToPrimitive.js index 0fbe9b8076..56bcf1aa9e 100644 --- a/node_modules/es-abstract/2020/ToPrimitive.js +++ b/node_modules/es-abstract/2020/ToPrimitive.js @@ -2,7 +2,7 @@ var toPrimitive = require('es-to-primitive/es2015'); -// https://ecma-international.org/ecma-262/6.0/#sec-toprimitive +// https://262.ecma-international.org/6.0/#sec-toprimitive module.exports = function ToPrimitive(input) { if (arguments.length > 1) { diff --git a/node_modules/es-abstract/2020/ToPropertyKey.js b/node_modules/es-abstract/2020/ToPropertyKey.js index fc1bf7d862..e363cd93b1 100644 --- a/node_modules/es-abstract/2020/ToPropertyKey.js +++ b/node_modules/es-abstract/2020/ToPropertyKey.js @@ -7,7 +7,7 @@ var $String = GetIntrinsic('%String%'); var ToPrimitive = require('./ToPrimitive'); var ToString = require('./ToString'); -// https://ecma-international.org/ecma-262/6.0/#sec-topropertykey +// https://262.ecma-international.org/6.0/#sec-topropertykey module.exports = function ToPropertyKey(argument) { var key = ToPrimitive(argument, $String); diff --git a/node_modules/es-abstract/2020/ToString.js b/node_modules/es-abstract/2020/ToString.js index 4d494e1e23..d86aed4ce8 100644 --- a/node_modules/es-abstract/2020/ToString.js +++ b/node_modules/es-abstract/2020/ToString.js @@ -5,7 +5,7 @@ var GetIntrinsic = require('get-intrinsic'); var $String = GetIntrinsic('%String%'); var $TypeError = GetIntrinsic('%TypeError%'); -// https://ecma-international.org/ecma-262/6.0/#sec-tostring +// https://262.ecma-international.org/6.0/#sec-tostring module.exports = function ToString(argument) { if (typeof argument === 'symbol') { diff --git a/node_modules/es-abstract/2020/ToUint8.js b/node_modules/es-abstract/2020/ToUint8.js index 2dfd97cb34..6e4e4b5add 100644 --- a/node_modules/es-abstract/2020/ToUint8.js +++ b/node_modules/es-abstract/2020/ToUint8.js @@ -10,7 +10,7 @@ var abs = require('./abs'); var floor = require('./floor'); var modulo = require('./modulo'); -// https://ecma-international.org/ecma-262/6.0/#sec-touint8 +// https://262.ecma-international.org/6.0/#sec-touint8 module.exports = function ToUint8(argument) { var number = ToNumber(argument); diff --git a/node_modules/es-abstract/2020/ToUint8Clamp.js b/node_modules/es-abstract/2020/ToUint8Clamp.js index b0b8ce8ed3..3ba2fd7119 100644 --- a/node_modules/es-abstract/2020/ToUint8Clamp.js +++ b/node_modules/es-abstract/2020/ToUint8Clamp.js @@ -5,13 +5,13 @@ var floor = require('./floor'); var $isNaN = require('../helpers/isNaN'); -// https://ecma-international.org/ecma-262/6.0/#sec-touint8clamp +// https://262.ecma-international.org/6.0/#sec-touint8clamp module.exports = function ToUint8Clamp(argument) { var number = ToNumber(argument); if ($isNaN(number) || number <= 0) { return 0; } if (number >= 0xFF) { return 0xFF; } - var f = floor(argument); + var f = floor(number); if (f + 0.5 < number) { return f + 1; } if (number < f + 0.5) { return f; } if (f % 2 !== 0) { return f + 1; } diff --git a/node_modules/es-abstract/2020/TypedArrayCreate.js b/node_modules/es-abstract/2020/TypedArrayCreate.js new file mode 100644 index 0000000000..ef9fbe2599 --- /dev/null +++ b/node_modules/es-abstract/2020/TypedArrayCreate.js @@ -0,0 +1,50 @@ +'use strict'; + +var GetIntrinsic = require('get-intrinsic'); + +var $SyntaxError = GetIntrinsic('%SyntaxError%'); +var $TypeError = GetIntrinsic('%TypeError%'); + +var IsArray = require('./IsArray'); +var IsConstructor = require('./IsConstructor'); +var Type = require('./Type'); +var ValidateTypedArray = require('./ValidateTypedArray'); + +var availableTypedArrays = require('available-typed-arrays')(); +var typedArrayLength = require('typed-array-length'); + +// https://262.ecma-international.org/7.0/#typedarray-create + +module.exports = function TypedArrayCreate(constructor, argumentList) { + if (!IsConstructor(constructor)) { + throw new $TypeError('Assertion failed: `constructor` must be a constructor'); + } + if (!IsArray(argumentList)) { + throw new $TypeError('Assertion failed: `argumentList` must be a List'); + } + if (availableTypedArrays.length === 0) { + throw new $SyntaxError('Assertion failed: Typed Arrays are not supported in this environment'); + } + + // var newTypedArray = Construct(constructor, argumentList); // step 1 + var newTypedArray; + if (argumentList.length === 0) { + newTypedArray = new constructor(); + } else if (argumentList.length === 1) { + newTypedArray = new constructor(argumentList[0]); + } else if (argumentList.length === 2) { + newTypedArray = new constructor(argumentList[0], argumentList[1]); + } else { + newTypedArray = new constructor(argumentList[0], argumentList[1], argumentList[2]); + } + + ValidateTypedArray(newTypedArray); // step 2 + + if (argumentList.length === 1 && Type(argumentList[0]) === 'Number') { // step 3 + if (typedArrayLength(newTypedArray) < argumentList[0]) { + throw new $TypeError('Assertion failed: `argumentList[0]` must be <= `newTypedArray.length`'); // step 3.a + } + } + + return newTypedArray; // step 4 +}; diff --git a/node_modules/es-abstract/2020/TypedArraySpeciesCreate.js b/node_modules/es-abstract/2020/TypedArraySpeciesCreate.js new file mode 100644 index 0000000000..1cf8755acc --- /dev/null +++ b/node_modules/es-abstract/2020/TypedArraySpeciesCreate.js @@ -0,0 +1,39 @@ +'use strict'; + +var GetIntrinsic = require('get-intrinsic'); + +var $SyntaxError = GetIntrinsic('%SyntaxError%'); +var $TypeError = GetIntrinsic('%TypeError%'); + +var whichTypedArray = require('which-typed-array'); +var availableTypedArrays = require('available-typed-arrays')(); + +var IsArray = require('./IsArray'); +var SpeciesConstructor = require('./SpeciesConstructor'); +var TypedArrayCreate = require('./TypedArrayCreate'); + +var getConstructor = require('../helpers/typedArrayContructors'); + +// https://262.ecma-international.org/7.0/#typedarray-species-create + +module.exports = function TypedArraySpeciesCreate(exemplar, argumentList) { + if (availableTypedArrays.length === 0) { + throw new $SyntaxError('Assertion failed: Typed Arrays are not supported in this environment'); + } + + var kind = whichTypedArray(exemplar); + if (!kind) { + throw new $TypeError('Assertion failed: exemplar must be a TypedArray'); // step 1 + } + if (!IsArray(argumentList)) { + throw new $TypeError('Assertion failed: `argumentList` must be a List'); // step 1 + } + + var defaultConstructor = getConstructor(kind); // step 2 + if (typeof defaultConstructor !== 'function') { + throw new $SyntaxError('Assertion failed: `constructor` of `exemplar` (' + kind + ') must exist. Please report this!'); + } + var constructor = SpeciesConstructor(exemplar, defaultConstructor); // step 3 + + return TypedArrayCreate(constructor, argumentList); // step 4 +}; diff --git a/node_modules/es-abstract/2020/ValidateAndApplyPropertyDescriptor.js b/node_modules/es-abstract/2020/ValidateAndApplyPropertyDescriptor.js index a7fd218ad5..134b2d5c36 100644 --- a/node_modules/es-abstract/2020/ValidateAndApplyPropertyDescriptor.js +++ b/node_modules/es-abstract/2020/ValidateAndApplyPropertyDescriptor.js @@ -16,10 +16,10 @@ var IsPropertyKey = require('./IsPropertyKey'); var SameValue = require('./SameValue'); var Type = require('./Type'); -// https://ecma-international.org/ecma-262/6.0/#sec-validateandapplypropertydescriptor -// https://ecma-international.org/ecma-262/8.0/#sec-validateandapplypropertydescriptor +// https://262.ecma-international.org/6.0/#sec-validateandapplypropertydescriptor +// https://262.ecma-international.org/8.0/#sec-validateandapplypropertydescriptor -// eslint-disable-next-line max-lines-per-function, max-statements, max-params +// eslint-disable-next-line max-lines-per-function, max-statements module.exports = function ValidateAndApplyPropertyDescriptor(O, P, extensible, Desc, current) { // this uses the ES2017+ logic, since it fixes a number of bugs in the ES2015 logic. var oType = Type(O); diff --git a/node_modules/es-abstract/2020/ValidateTypedArray.js b/node_modules/es-abstract/2020/ValidateTypedArray.js index 83df3a81cb..c7aa313938 100644 --- a/node_modules/es-abstract/2020/ValidateTypedArray.js +++ b/node_modules/es-abstract/2020/ValidateTypedArray.js @@ -5,7 +5,7 @@ var GetIntrinsic = require('get-intrinsic'); var $TypeError = GetIntrinsic('%TypeError%'); var callBound = require('call-bind/callBound'); -var $taSome = callBound('%TypedArray.prototype.some%', true); +var $taSome = callBound('TypedArray.prototype.some', true); var Type = require('./Type'); diff --git a/node_modules/es-abstract/2020/WordCharacters.js b/node_modules/es-abstract/2020/WordCharacters.js new file mode 100644 index 0000000000..aeebc1e75c --- /dev/null +++ b/node_modules/es-abstract/2020/WordCharacters.js @@ -0,0 +1,49 @@ +'use strict'; + +var GetIntrinsic = require('get-intrinsic'); + +var $TypeError = GetIntrinsic('%TypeError%'); + +var callBound = require('call-bind/callBound'); +var $indexOf = callBound('String.prototype.indexOf', true); + +var Canonicalize = require('./Canonicalize'); +var Type = require('./Type'); + +var caseFolding = require('../helpers/caseFolding'); +var forEach = require('../helpers/forEach'); +var OwnPropertyKeys = require('../helpers/OwnPropertyKeys'); + +var A = 'abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789_'; // step 1 + +// https://262.ecma-international.org/8.0/#sec-runtime-semantics-wordcharacters-abstract-operation + +module.exports = function WordCharacters(IgnoreCase, Unicode) { + if (Type(IgnoreCase) !== 'Boolean' || Type(Unicode) !== 'Boolean') { + throw new $TypeError('Assertion failed: `IgnoreCase` and `Unicode` must be booleans'); + } + + var U = ''; + forEach(OwnPropertyKeys(caseFolding.C), function (c) { + if ( + $indexOf(A, c) === -1 // c not in A + && $indexOf(A, Canonicalize(c, IgnoreCase, Unicode)) > -1 // canonicalized c IS in A + ) { + U += caseFolding.C[c]; // step 3 + } + }); + forEach(OwnPropertyKeys(caseFolding.S), function (c) { + if ( + $indexOf(A, c) === -1 // c not in A + && $indexOf(A, Canonicalize(c, IgnoreCase, Unicode)) > -1 // canonicalized c IS in A + ) { + U += caseFolding.S[c]; // step 3 + } + }); + + if ((!Unicode || !IgnoreCase) && U.length > 0) { + throw new $TypeError('Assertion failed: `U` must be empty when `IgnoreCase` and `Unicode` are not both true'); // step 4 + } + + return A + U; // step 5, 6 +}; diff --git a/node_modules/es-abstract/2020/thisBigIntValue.js b/node_modules/es-abstract/2020/thisBigIntValue.js index 1fd12980e2..d03b4a43c3 100644 --- a/node_modules/es-abstract/2020/thisBigIntValue.js +++ b/node_modules/es-abstract/2020/thisBigIntValue.js @@ -3,7 +3,7 @@ var GetIntrinsic = require('get-intrinsic'); var callBound = require('call-bind/callBound'); -var $TypeError = GetIntrinsic('%TypeError%'); +var $SyntaxError = GetIntrinsic('%SyntaxError%'); var $bigIntValueOf = callBound('BigInt.prototype.valueOf', true); var Type = require('./Type'); @@ -16,7 +16,7 @@ module.exports = function thisBigIntValue(value) { return value; } if (!$bigIntValueOf) { - throw new $TypeError('BigInt is not supported'); + throw new $SyntaxError('BigInt is not supported'); } return $bigIntValueOf(value); }; diff --git a/node_modules/es-abstract/2020/thisBooleanValue.js b/node_modules/es-abstract/2020/thisBooleanValue.js index 27075b9c4f..e93a28ce47 100644 --- a/node_modules/es-abstract/2020/thisBooleanValue.js +++ b/node_modules/es-abstract/2020/thisBooleanValue.js @@ -4,7 +4,7 @@ var $BooleanValueOf = require('call-bind/callBound')('Boolean.prototype.valueOf' var Type = require('./Type'); -// https://ecma-international.org/ecma-262/6.0/#sec-properties-of-the-boolean-prototype-object +// https://262.ecma-international.org/6.0/#sec-properties-of-the-boolean-prototype-object module.exports = function thisBooleanValue(value) { if (Type(value) === 'Boolean') { diff --git a/node_modules/es-abstract/2020/thisNumberValue.js b/node_modules/es-abstract/2020/thisNumberValue.js index 92968dcdf8..03580df26f 100644 --- a/node_modules/es-abstract/2020/thisNumberValue.js +++ b/node_modules/es-abstract/2020/thisNumberValue.js @@ -6,7 +6,7 @@ var Type = require('./Type'); var $NumberValueOf = callBound('Number.prototype.valueOf'); -// https://ecma-international.org/ecma-262/6.0/#sec-properties-of-the-number-prototype-object +// https://262.ecma-international.org/6.0/#sec-properties-of-the-number-prototype-object module.exports = function thisNumberValue(value) { if (Type(value) === 'Number') { diff --git a/node_modules/es-abstract/2020/thisStringValue.js b/node_modules/es-abstract/2020/thisStringValue.js index 8e4274d811..c7bf3da70c 100644 --- a/node_modules/es-abstract/2020/thisStringValue.js +++ b/node_modules/es-abstract/2020/thisStringValue.js @@ -4,7 +4,7 @@ var $StringValueOf = require('call-bind/callBound')('String.prototype.valueOf'); var Type = require('./Type'); -// https://ecma-international.org/ecma-262/6.0/#sec-properties-of-the-string-prototype-object +// https://262.ecma-international.org/6.0/#sec-properties-of-the-string-prototype-object module.exports = function thisStringValue(value) { if (Type(value) === 'String') { diff --git a/node_modules/es-abstract/2020/thisTimeValue.js b/node_modules/es-abstract/2020/thisTimeValue.js index a9a47ace2b..bd50ddd068 100644 --- a/node_modules/es-abstract/2020/thisTimeValue.js +++ b/node_modules/es-abstract/2020/thisTimeValue.js @@ -1,3 +1,9 @@ 'use strict'; -module.exports = require('../2018/thisTimeValue'); +var $DateGetTime = require('call-bind/callBound')('Date.prototype.getTime'); + +// https://262.ecma-international.org/6.0/#sec-properties-of-the-date-prototype-object + +module.exports = function thisTimeValue(value) { + return $DateGetTime(value); +}; diff --git a/node_modules/es-abstract/2021/AbstractEqualityComparison.js b/node_modules/es-abstract/2021/AbstractEqualityComparison.js index 83b2949673..871a84fa82 100644 --- a/node_modules/es-abstract/2021/AbstractEqualityComparison.js +++ b/node_modules/es-abstract/2021/AbstractEqualityComparison.js @@ -8,7 +8,7 @@ var Type = require('./Type'); var isNaN = require('../helpers/isNaN'); -// https://ecma-international.org/ecma-262/11.0/#sec-abstract-equality-comparison +// https://262.ecma-international.org/11.0/#sec-abstract-equality-comparison module.exports = function AbstractEqualityComparison(x, y) { var xType = Type(x); diff --git a/node_modules/es-abstract/2021/AddEntriesFromIterable.js b/node_modules/es-abstract/2021/AddEntriesFromIterable.js index a0a5e71bd6..5bea627fb5 100644 --- a/node_modules/es-abstract/2021/AddEntriesFromIterable.js +++ b/node_modules/es-abstract/2021/AddEntriesFromIterable.js @@ -13,9 +13,10 @@ var IsCallable = require('./IsCallable'); var IteratorClose = require('./IteratorClose'); var IteratorStep = require('./IteratorStep'); var IteratorValue = require('./IteratorValue'); +var ThrowCompletion = require('./ThrowCompletion'); var Type = require('./Type'); -// https://262.ecma-international.org/10.0//#sec-add-entries-from-iterable +// https://262.ecma-international.org/10.0/#sec-add-entries-from-iterable module.exports = function AddEntriesFromIterable(target, iterable, adder) { if (!IsCallable(adder)) { @@ -32,21 +33,15 @@ module.exports = function AddEntriesFromIterable(target, iterable, adder) { } var nextItem = IteratorValue(next); if (Type(nextItem) !== 'Object') { - var error = new $TypeError('iterator next must return an Object, got ' + inspect(nextItem)); - return IteratorClose( - iteratorRecord, - function () { throw error; } // eslint-disable-line no-loop-func - ); + var error = ThrowCompletion(new $TypeError('iterator next must return an Object, got ' + inspect(nextItem))); + return IteratorClose(iteratorRecord, error); } try { var k = Get(nextItem, '0'); var v = Get(nextItem, '1'); Call(adder, target, [k, v]); } catch (e) { - return IteratorClose( - iteratorRecord, - function () { throw e; } - ); + return IteratorClose(iteratorRecord, ThrowCompletion(e)); } } }; diff --git a/node_modules/es-abstract/2021/AddToKeptObjects.js b/node_modules/es-abstract/2021/AddToKeptObjects.js index c3088d999d..a2495ba8fa 100644 --- a/node_modules/es-abstract/2021/AddToKeptObjects.js +++ b/node_modules/es-abstract/2021/AddToKeptObjects.js @@ -11,7 +11,7 @@ var Type = require('./Type'); var $push = callBound('Array.prototype.push'); -// https://ecma-international.org/ecma-262/12.0/#sec-addtokeptobjects +// https://262.ecma-international.org/12.0/#sec-addtokeptobjects module.exports = function AddToKeptObjects(object) { if (Type(object) !== 'Object') { diff --git a/node_modules/es-abstract/2021/AdvanceStringIndex.js b/node_modules/es-abstract/2021/AdvanceStringIndex.js index eeae531253..4a0f499aa5 100644 --- a/node_modules/es-abstract/2021/AdvanceStringIndex.js +++ b/node_modules/es-abstract/2021/AdvanceStringIndex.js @@ -3,20 +3,20 @@ var GetIntrinsic = require('get-intrinsic'); var CodePointAt = require('./CodePointAt'); -var IsIntegralNumber = require('./IsIntegralNumber'); var Type = require('./Type'); +var isInteger = require('../helpers/isInteger'); var MAX_SAFE_INTEGER = require('../helpers/maxSafeInteger'); var $TypeError = GetIntrinsic('%TypeError%'); -// https://ecma-international.org/ecma-262/12.0/#sec-advancestringindex +// https://262.ecma-international.org/12.0/#sec-advancestringindex module.exports = function AdvanceStringIndex(S, index, unicode) { if (Type(S) !== 'String') { throw new $TypeError('Assertion failed: `S` must be a String'); } - if (!IsIntegralNumber(index) || index < 0 || index > MAX_SAFE_INTEGER) { + if (!isInteger(index) || index < 0 || index > MAX_SAFE_INTEGER) { throw new $TypeError('Assertion failed: `length` must be an integer >= 0 and <= 2**53'); } if (Type(unicode) !== 'Boolean') { diff --git a/node_modules/es-abstract/2021/ApplyStringOrNumericBinaryOperator.js b/node_modules/es-abstract/2021/ApplyStringOrNumericBinaryOperator.js index 824a105430..e5f997a39d 100644 --- a/node_modules/es-abstract/2021/ApplyStringOrNumericBinaryOperator.js +++ b/node_modules/es-abstract/2021/ApplyStringOrNumericBinaryOperator.js @@ -35,9 +35,9 @@ var BigIntSignedRightShift = require('./BigInt/signedRightShift'); var BigIntSubtract = require('./BigInt/subtract'); var BigIntUnsignedRightShift = require('./BigInt/unsignedRightShift'); -// https://ecma-international.org/ecma-262/12.0/#sec-applystringornumericbinaryoperator +// https://262.ecma-international.org/12.0/#sec-applystringornumericbinaryoperator -// https://ecma-international.org/ecma-262/12.0/#step-applystringornumericbinaryoperator-operations-table +// https://262.ecma-international.org/12.0/#step-applystringornumericbinaryoperator-operations-table var table = { '**': [NumberExponentiate, BigIntExponentiate], '*': [NumberMultiply, BigIntMultiply], diff --git a/node_modules/es-abstract/2021/ArrayCreate.js b/node_modules/es-abstract/2021/ArrayCreate.js index e138d2db91..e33224517e 100644 --- a/node_modules/es-abstract/2021/ArrayCreate.js +++ b/node_modules/es-abstract/2021/ArrayCreate.js @@ -7,7 +7,7 @@ var $RangeError = GetIntrinsic('%RangeError%'); var $SyntaxError = GetIntrinsic('%SyntaxError%'); var $TypeError = GetIntrinsic('%TypeError%'); -var IsIntegralNumber = require('./IsIntegralNumber'); +var isInteger = require('../helpers/isInteger'); var MAX_ARRAY_LENGTH = Math.pow(2, 32) - 1; @@ -22,10 +22,10 @@ var $setProto = GetIntrinsic('%Object.setPrototypeOf%', true) || ( : null ); -// https://www.ecma-international.org/ecma-262/12.0/#sec-arraycreate +// https://262.ecma-international.org/12.0/#sec-arraycreate module.exports = function ArrayCreate(length) { - if (!IsIntegralNumber(length) || length < 0) { + if (!isInteger(length) || length < 0) { throw new $TypeError('Assertion failed: `length` must be an integer Number >= 0'); } if (length > MAX_ARRAY_LENGTH) { diff --git a/node_modules/es-abstract/2021/ArraySetLength.js b/node_modules/es-abstract/2021/ArraySetLength.js index 08db9c2e9b..45d7569e7d 100644 --- a/node_modules/es-abstract/2021/ArraySetLength.js +++ b/node_modules/es-abstract/2021/ArraySetLength.js @@ -19,7 +19,7 @@ var ToString = require('./ToString'); var ToUint32 = require('./ToUint32'); var Type = require('./Type'); -// https://ecma-international.org/ecma-262/6.0/#sec-arraysetlength +// https://262.ecma-international.org/6.0/#sec-arraysetlength // eslint-disable-next-line max-statements, max-lines-per-function module.exports = function ArraySetLength(A, Desc) { diff --git a/node_modules/es-abstract/2021/ArraySpeciesCreate.js b/node_modules/es-abstract/2021/ArraySpeciesCreate.js index d908fa3510..7b1fd1d27a 100644 --- a/node_modules/es-abstract/2021/ArraySpeciesCreate.js +++ b/node_modules/es-abstract/2021/ArraySpeciesCreate.js @@ -9,13 +9,14 @@ var ArrayCreate = require('./ArrayCreate'); var Get = require('./Get'); var IsArray = require('./IsArray'); var IsConstructor = require('./IsConstructor'); -var IsIntegralNumber = require('./IsIntegralNumber'); var Type = require('./Type'); -// https://ecma-international.org/ecma-262/12.0/#sec-arrayspeciescreate +var isInteger = require('../helpers/isInteger'); + +// https://262.ecma-international.org/12.0/#sec-arrayspeciescreate module.exports = function ArraySpeciesCreate(originalArray, length) { - if (!IsIntegralNumber(length) || length < 0) { + if (!isInteger(length) || length < 0) { throw new $TypeError('Assertion failed: length must be an integer >= 0'); } diff --git a/node_modules/es-abstract/2021/AsyncFromSyncIteratorContinuation.js b/node_modules/es-abstract/2021/AsyncFromSyncIteratorContinuation.js index c1cc7a111a..5618539dd6 100644 --- a/node_modules/es-abstract/2021/AsyncFromSyncIteratorContinuation.js +++ b/node_modules/es-abstract/2021/AsyncFromSyncIteratorContinuation.js @@ -16,7 +16,7 @@ var Type = require('./Type'); var $then = callBound('Promise.prototype.then', true); -// https://ecma-international.org/ecma-262/10.0/#sec-asyncfromsynciteratorcontinuation +// https://262.ecma-international.org/10.0/#sec-asyncfromsynciteratorcontinuation module.exports = function AsyncFromSyncIteratorContinuation(result) { if (Type(result) !== 'Object') { diff --git a/node_modules/es-abstract/2021/ByteListBitwiseOp.js b/node_modules/es-abstract/2021/ByteListBitwiseOp.js index 4e3c1f10b2..67f4cecb59 100644 --- a/node_modules/es-abstract/2021/ByteListBitwiseOp.js +++ b/node_modules/es-abstract/2021/ByteListBitwiseOp.js @@ -11,7 +11,7 @@ var IsArray = require('./IsArray'); var isByteValue = require('../helpers/isByteValue'); -// https://ecma-international.org/ecma-262/12.0/#sec-bytelistbitwiseop +// https://262.ecma-international.org/12.0/#sec-bytelistbitwiseop module.exports = function ByteListBitwiseOp(op, xBytes, yBytes) { if (op !== '&' && op !== '^' && op !== '|') { diff --git a/node_modules/es-abstract/2021/ByteListEqual.js b/node_modules/es-abstract/2021/ByteListEqual.js index adc2378e7d..489ddc224e 100644 --- a/node_modules/es-abstract/2021/ByteListEqual.js +++ b/node_modules/es-abstract/2021/ByteListEqual.js @@ -8,7 +8,7 @@ var IsArray = require('./IsArray'); var isByteValue = require('../helpers/isByteValue'); -// https://ecma-international.org/ecma-262/12.0/#sec-bytelistequal +// https://262.ecma-international.org/12.0/#sec-bytelistequal module.exports = function ByteListEqual(xBytes, yBytes) { if (!IsArray(xBytes) || !IsArray(yBytes)) { diff --git a/node_modules/es-abstract/2021/Call.js b/node_modules/es-abstract/2021/Call.js index 4b238c6916..be76246db0 100644 --- a/node_modules/es-abstract/2021/Call.js +++ b/node_modules/es-abstract/2021/Call.js @@ -7,9 +7,9 @@ var $TypeError = GetIntrinsic('%TypeError%'); var IsArray = require('./IsArray'); -var $apply = GetIntrinsic('%Reflect.apply%', true) || callBound('%Function.prototype.apply%'); +var $apply = GetIntrinsic('%Reflect.apply%', true) || callBound('Function.prototype.apply'); -// https://ecma-international.org/ecma-262/6.0/#sec-call +// https://262.ecma-international.org/6.0/#sec-call module.exports = function Call(F, V) { var argumentsList = arguments.length > 2 ? arguments[2] : []; diff --git a/node_modules/es-abstract/2021/CanonicalNumericIndexString.js b/node_modules/es-abstract/2021/CanonicalNumericIndexString.js index feb878c032..e9f386326c 100644 --- a/node_modules/es-abstract/2021/CanonicalNumericIndexString.js +++ b/node_modules/es-abstract/2021/CanonicalNumericIndexString.js @@ -9,7 +9,7 @@ var ToNumber = require('./ToNumber'); var ToString = require('./ToString'); var Type = require('./Type'); -// https://ecma-international.org/ecma-262/6.0/#sec-canonicalnumericindexstring +// https://262.ecma-international.org/6.0/#sec-canonicalnumericindexstring module.exports = function CanonicalNumericIndexString(argument) { if (Type(argument) !== 'String') { diff --git a/node_modules/es-abstract/2021/Canonicalize.js b/node_modules/es-abstract/2021/Canonicalize.js new file mode 100644 index 0000000000..8873db4c7c --- /dev/null +++ b/node_modules/es-abstract/2021/Canonicalize.js @@ -0,0 +1,55 @@ +'use strict'; + +var GetIntrinsic = require('get-intrinsic'); + +var $TypeError = GetIntrinsic('%TypeError%'); + +var callBound = require('call-bind/callBound'); +var has = require('has'); + +var $charCodeAt = callBound('String.prototype.charCodeAt'); +var $toUpperCase = callBound('String.prototype.toUpperCase'); + +var Type = require('./Type'); + +var caseFolding = require('../helpers/caseFolding'); + +// https://262.ecma-international.org/6.0/#sec-runtime-semantics-canonicalize-ch + +module.exports = function Canonicalize(ch, IgnoreCase, Unicode) { + if (Type(ch) !== 'String') { + throw new $TypeError('Assertion failed: `ch` must be a character'); + } + + if (Type(IgnoreCase) !== 'Boolean' || Type(Unicode) !== 'Boolean') { + throw new $TypeError('Assertion failed: `IgnoreCase` and `Unicode` must be Booleans'); + } + + if (!IgnoreCase) { + return ch; // step 1 + } + + if (Unicode) { // step 2 + if (has(caseFolding.C, ch)) { + return caseFolding.C[ch]; + } + if (has(caseFolding.S, ch)) { + return caseFolding.S[ch]; + } + return ch; // step 2.b + } + + var u = $toUpperCase(ch); // step 2 + + if (u.length !== 1) { + return ch; // step 3 + } + + var cu = u; // step 4 + + if ($charCodeAt(ch, 0) >= 128 && $charCodeAt(cu, 0) < 128) { + return ch; // step 5 + } + + return cu; +}; diff --git a/node_modules/es-abstract/2021/CharacterRange.js b/node_modules/es-abstract/2021/CharacterRange.js index 70e4b52355..78783a59f2 100644 --- a/node_modules/es-abstract/2021/CharacterRange.js +++ b/node_modules/es-abstract/2021/CharacterRange.js @@ -5,8 +5,8 @@ var callBound = require('call-bind/callBound'); var $fromCharCode = GetIntrinsic('%String.fromCharCode%'); var $TypeError = GetIntrinsic('%TypeError%'); -var $charCodeAt = callBound('%String.prototype.charCodeAt%'); -var $push = callBound('%Array.prototype.push%'); +var $charCodeAt = callBound('String.prototype.charCodeAt'); +var $push = callBound('Array.prototype.push'); module.exports = function CharacterRange(A, B) { if (A.length !== 1 || B.length !== 1) { diff --git a/node_modules/es-abstract/2021/ClearKeptObjects.js b/node_modules/es-abstract/2021/ClearKeptObjects.js index 9397f5966a..50bd4a5da4 100644 --- a/node_modules/es-abstract/2021/ClearKeptObjects.js +++ b/node_modules/es-abstract/2021/ClearKeptObjects.js @@ -3,7 +3,7 @@ var SLOT = require('internal-slot'); var keptObjects = []; -// https://ecma-international.org/ecma-262/12.0/#sec-clear-kept-objects +// https://262.ecma-international.org/12.0/#sec-clear-kept-objects module.exports = function ClearKeptObjects() { keptObjects.length = 0; diff --git a/node_modules/es-abstract/2021/CloneArrayBuffer.js b/node_modules/es-abstract/2021/CloneArrayBuffer.js new file mode 100644 index 0000000000..d03e91f864 --- /dev/null +++ b/node_modules/es-abstract/2021/CloneArrayBuffer.js @@ -0,0 +1,49 @@ +'use strict'; + +var GetIntrinsic = require('get-intrinsic'); + +var $TypeError = GetIntrinsic('%TypeError%'); + +var GetPrototypeFromConstructor = require('./GetPrototypeFromConstructor'); +var IsConstructor = require('./IsConstructor'); +var IsDetachedBuffer = require('./IsDetachedBuffer'); +var OrdinarySetPrototypeOf = require('./OrdinarySetPrototypeOf'); + +var isInteger = require('../helpers/isInteger'); + +var isArrayBuffer = require('is-array-buffer'); +var arrayBufferSlice = require('arraybuffer.prototype.slice'); + +// https://262.ecma-international.org/12.0/#sec-clonearraybuffer + +module.exports = function CloneArrayBuffer(srcBuffer, srcByteOffset, srcLength, cloneConstructor) { + if (!isArrayBuffer(srcBuffer)) { + throw new $TypeError('Assertion failed: `srcBuffer` must be an ArrayBuffer instance'); + } + if (!isInteger(srcByteOffset) || srcByteOffset < 0) { + throw new $TypeError('Assertion failed: `srcByteOffset` must be a non-negative integer'); + } + if (!isInteger(srcLength) || srcLength < 0) { + throw new $TypeError('Assertion failed: `srcLength` must be a non-negative integer'); + } + if (!IsConstructor(cloneConstructor)) { + throw new $TypeError('Assertion failed: `cloneConstructor` must be a constructor'); + } + + // 3. Let targetBuffer be ? AllocateArrayBuffer(cloneConstructor, srcLength). + var proto = GetPrototypeFromConstructor(cloneConstructor, '%ArrayBufferPrototype%'); // step 3, kinda + + if (IsDetachedBuffer(srcBuffer)) { + throw new $TypeError('`srcBuffer` must not be a detached ArrayBuffer'); // step 4 + } + + /* + 5. Let srcBlock be srcBuffer.[[ArrayBufferData]]. + 6. Let targetBlock be targetBuffer.[[ArrayBufferData]]. + 7. Perform CopyDataBlockBytes(targetBlock, 0, srcBlock, srcByteOffset, srcLength). + */ + var targetBuffer = arrayBufferSlice(srcBuffer, srcByteOffset, srcByteOffset + srcLength); // steps 5-7 + OrdinarySetPrototypeOf(targetBuffer, proto); // step 3 + + return targetBuffer; // step 8 +}; diff --git a/node_modules/es-abstract/2021/CodePointAt.js b/node_modules/es-abstract/2021/CodePointAt.js index 7a9ac1be7b..e1e22905a4 100644 --- a/node_modules/es-abstract/2021/CodePointAt.js +++ b/node_modules/es-abstract/2021/CodePointAt.js @@ -13,7 +13,7 @@ var UTF16SurrogatePairToCodePoint = require('./UTF16SurrogatePairToCodePoint'); var $charAt = callBound('String.prototype.charAt'); var $charCodeAt = callBound('String.prototype.charCodeAt'); -// https://ecma-international.org/ecma-262/12.0/#sec-codepointat +// https://262.ecma-international.org/12.0/#sec-codepointat module.exports = function CodePointAt(string, position) { if (Type(string) !== 'String') { diff --git a/node_modules/es-abstract/2021/CodePointsToString.js b/node_modules/es-abstract/2021/CodePointsToString.js index 403126cd2e..6d7cd854b9 100644 --- a/node_modules/es-abstract/2021/CodePointsToString.js +++ b/node_modules/es-abstract/2021/CodePointsToString.js @@ -10,7 +10,7 @@ var IsArray = require('./IsArray'); var forEach = require('../helpers/forEach'); var isCodePoint = require('../helpers/isCodePoint'); -// https://ecma-international.org/ecma-262/12.0/#sec-codepointstostring +// https://262.ecma-international.org/12.0/#sec-codepointstostring module.exports = function CodePointsToString(text) { if (!IsArray(text)) { diff --git a/node_modules/es-abstract/2021/CompletePropertyDescriptor.js b/node_modules/es-abstract/2021/CompletePropertyDescriptor.js index 548bf415a3..e8685197aa 100644 --- a/node_modules/es-abstract/2021/CompletePropertyDescriptor.js +++ b/node_modules/es-abstract/2021/CompletePropertyDescriptor.js @@ -8,7 +8,7 @@ var IsDataDescriptor = require('./IsDataDescriptor'); var IsGenericDescriptor = require('./IsGenericDescriptor'); var Type = require('./Type'); -// https://ecma-international.org/ecma-262/6.0/#sec-completepropertydescriptor +// https://262.ecma-international.org/6.0/#sec-completepropertydescriptor module.exports = function CompletePropertyDescriptor(Desc) { /* eslint no-param-reassign: 0 */ diff --git a/node_modules/es-abstract/2021/CopyDataProperties.js b/node_modules/es-abstract/2021/CopyDataProperties.js index bbb5d6f0a1..18723f9d0d 100644 --- a/node_modules/es-abstract/2021/CopyDataProperties.js +++ b/node_modules/es-abstract/2021/CopyDataProperties.js @@ -22,7 +22,7 @@ var ToNumber = require('./ToNumber'); var ToObject = require('./ToObject'); var Type = require('./Type'); -// https://www.ecma-international.org/ecma-262/12.0/#sec-copydataproperties +// https://262.ecma-international.org/12.0/#sec-copydataproperties module.exports = function CopyDataProperties(target, source, excludedItems) { if (Type(target) !== 'Object') { diff --git a/node_modules/es-abstract/2021/CreateAsyncFromSyncIterator.js b/node_modules/es-abstract/2021/CreateAsyncFromSyncIterator.js index 693321d51d..64540dd6e3 100644 --- a/node_modules/es-abstract/2021/CreateAsyncFromSyncIterator.js +++ b/node_modules/es-abstract/2021/CreateAsyncFromSyncIterator.js @@ -101,7 +101,7 @@ var $AsyncFromSyncIteratorPrototype = GetIntrinsic('%AsyncFromSyncIteratorProtot } }; -// https://ecma-international.org/ecma-262/11.0/#sec-createasyncfromsynciterator +// https://262.ecma-international.org/11.0/#sec-createasyncfromsynciterator module.exports = function CreateAsyncFromSyncIterator(syncIteratorRecord) { assertRecord(Type, 'Iterator Record', 'syncIteratorRecord', syncIteratorRecord); diff --git a/node_modules/es-abstract/2021/CreateDataProperty.js b/node_modules/es-abstract/2021/CreateDataProperty.js index 02c6cd1f8b..5bd5fc4787 100644 --- a/node_modules/es-abstract/2021/CreateDataProperty.js +++ b/node_modules/es-abstract/2021/CreateDataProperty.js @@ -4,17 +4,11 @@ var GetIntrinsic = require('get-intrinsic'); var $TypeError = GetIntrinsic('%TypeError%'); -var DefineOwnProperty = require('../helpers/DefineOwnProperty'); - -var FromPropertyDescriptor = require('./FromPropertyDescriptor'); -var OrdinaryGetOwnProperty = require('./OrdinaryGetOwnProperty'); -var IsDataDescriptor = require('./IsDataDescriptor'); -var IsExtensible = require('./IsExtensible'); var IsPropertyKey = require('./IsPropertyKey'); -var SameValue = require('./SameValue'); +var OrdinaryDefineOwnProperty = require('./OrdinaryDefineOwnProperty'); var Type = require('./Type'); -// https://ecma-international.org/ecma-262/6.0/#sec-createdataproperty +// https://262.ecma-international.org/6.0/#sec-createdataproperty module.exports = function CreateDataProperty(O, P, V) { if (Type(O) !== 'Object') { @@ -23,23 +17,11 @@ module.exports = function CreateDataProperty(O, P, V) { if (!IsPropertyKey(P)) { throw new $TypeError('Assertion failed: IsPropertyKey(P) is not true'); } - var oldDesc = OrdinaryGetOwnProperty(O, P); - var extensible = !oldDesc || IsExtensible(O); - var nonConfigurable = oldDesc && !oldDesc['[[Configurable]]']; - if (nonConfigurable || !extensible) { - return false; - } - return DefineOwnProperty( - IsDataDescriptor, - SameValue, - FromPropertyDescriptor, - O, - P, - { - '[[Configurable]]': true, - '[[Enumerable]]': true, - '[[Value]]': V, - '[[Writable]]': true - } - ); + var newDesc = { + '[[Configurable]]': true, + '[[Enumerable]]': true, + '[[Value]]': V, + '[[Writable]]': true + }; + return OrdinaryDefineOwnProperty(O, P, newDesc); }; diff --git a/node_modules/es-abstract/2021/CreateDataPropertyOrThrow.js b/node_modules/es-abstract/2021/CreateDataPropertyOrThrow.js index 2f7c410ba3..c40e69368b 100644 --- a/node_modules/es-abstract/2021/CreateDataPropertyOrThrow.js +++ b/node_modules/es-abstract/2021/CreateDataPropertyOrThrow.js @@ -8,7 +8,7 @@ var CreateDataProperty = require('./CreateDataProperty'); var IsPropertyKey = require('./IsPropertyKey'); var Type = require('./Type'); -// // https://ecma-international.org/ecma-262/6.0/#sec-createdatapropertyorthrow +// // https://262.ecma-international.org/6.0/#sec-createdatapropertyorthrow module.exports = function CreateDataPropertyOrThrow(O, P, V) { if (Type(O) !== 'Object') { diff --git a/node_modules/es-abstract/2021/CreateHTML.js b/node_modules/es-abstract/2021/CreateHTML.js index ccded1e65d..ea7633da68 100644 --- a/node_modules/es-abstract/2021/CreateHTML.js +++ b/node_modules/es-abstract/2021/CreateHTML.js @@ -12,7 +12,7 @@ var RequireObjectCoercible = require('./RequireObjectCoercible'); var ToString = require('./ToString'); var Type = require('./Type'); -// https://ecma-international.org/ecma-262/6.0/#sec-createhtml +// https://262.ecma-international.org/6.0/#sec-createhtml module.exports = function CreateHTML(string, tag, attribute, value) { if (Type(tag) !== 'String' || Type(attribute) !== 'String') { diff --git a/node_modules/es-abstract/2021/CreateIterResultObject.js b/node_modules/es-abstract/2021/CreateIterResultObject.js index eea77a5128..ed86b34f25 100644 --- a/node_modules/es-abstract/2021/CreateIterResultObject.js +++ b/node_modules/es-abstract/2021/CreateIterResultObject.js @@ -6,7 +6,7 @@ var $TypeError = GetIntrinsic('%TypeError%'); var Type = require('./Type'); -// https://ecma-international.org/ecma-262/6.0/#sec-createiterresultobject +// https://262.ecma-international.org/6.0/#sec-createiterresultobject module.exports = function CreateIterResultObject(value, done) { if (Type(done) !== 'Boolean') { diff --git a/node_modules/es-abstract/2021/CreateListFromArrayLike.js b/node_modules/es-abstract/2021/CreateListFromArrayLike.js index 40293127dc..7592307eb1 100644 --- a/node_modules/es-abstract/2021/CreateListFromArrayLike.js +++ b/node_modules/es-abstract/2021/CreateListFromArrayLike.js @@ -14,12 +14,14 @@ var LengthOfArrayLike = require('./LengthOfArrayLike'); var ToString = require('./ToString'); var Type = require('./Type'); +var defaultElementTypes = ['Undefined', 'Null', 'Boolean', 'String', 'Symbol', 'Number', 'BigInt', 'Object']; + // https://262.ecma-international.org/11.0/#sec-createlistfromarraylike module.exports = function CreateListFromArrayLike(obj) { var elementTypes = arguments.length > 1 ? arguments[1] - : ['Undefined', 'Null', 'Boolean', 'String', 'Symbol', 'Number', 'BigInt', 'Object']; + : defaultElementTypes; if (Type(obj) !== 'Object') { throw new $TypeError('Assertion failed: `obj` must be an Object'); diff --git a/node_modules/es-abstract/2021/CreateMethodProperty.js b/node_modules/es-abstract/2021/CreateMethodProperty.js index 53274a5614..058c0f1760 100644 --- a/node_modules/es-abstract/2021/CreateMethodProperty.js +++ b/node_modules/es-abstract/2021/CreateMethodProperty.js @@ -12,7 +12,7 @@ var IsPropertyKey = require('./IsPropertyKey'); var SameValue = require('./SameValue'); var Type = require('./Type'); -// https://ecma-international.org/ecma-262/6.0/#sec-createmethodproperty +// https://262.ecma-international.org/6.0/#sec-createmethodproperty module.exports = function CreateMethodProperty(O, P, V) { if (Type(O) !== 'Object') { diff --git a/node_modules/es-abstract/2021/DefinePropertyOrThrow.js b/node_modules/es-abstract/2021/DefinePropertyOrThrow.js index 26f2714bb1..8fe097068d 100644 --- a/node_modules/es-abstract/2021/DefinePropertyOrThrow.js +++ b/node_modules/es-abstract/2021/DefinePropertyOrThrow.js @@ -15,7 +15,7 @@ var SameValue = require('./SameValue'); var ToPropertyDescriptor = require('./ToPropertyDescriptor'); var Type = require('./Type'); -// https://ecma-international.org/ecma-262/6.0/#sec-definepropertyorthrow +// https://262.ecma-international.org/6.0/#sec-definepropertyorthrow module.exports = function DefinePropertyOrThrow(O, P, desc) { if (Type(O) !== 'Object') { diff --git a/node_modules/es-abstract/2021/DeletePropertyOrThrow.js b/node_modules/es-abstract/2021/DeletePropertyOrThrow.js index 30d5e57c7b..581bf06ea2 100644 --- a/node_modules/es-abstract/2021/DeletePropertyOrThrow.js +++ b/node_modules/es-abstract/2021/DeletePropertyOrThrow.js @@ -7,7 +7,7 @@ var $TypeError = GetIntrinsic('%TypeError%'); var IsPropertyKey = require('./IsPropertyKey'); var Type = require('./Type'); -// https://ecma-international.org/ecma-262/6.0/#sec-deletepropertyorthrow +// https://262.ecma-international.org/6.0/#sec-deletepropertyorthrow module.exports = function DeletePropertyOrThrow(O, P) { if (Type(O) !== 'Object') { diff --git a/node_modules/es-abstract/2021/FlattenIntoArray.js b/node_modules/es-abstract/2021/FlattenIntoArray.js index 6429ee797f..0fb87bc6a3 100644 --- a/node_modules/es-abstract/2021/FlattenIntoArray.js +++ b/node_modules/es-abstract/2021/FlattenIntoArray.js @@ -16,7 +16,6 @@ var ToString = require('./ToString'); // https://262.ecma-international.org/11.0/#sec-flattenintoarray -// eslint-disable-next-line max-params module.exports = function FlattenIntoArray(target, source, sourceLen, start, depth) { var mapperFunction; if (arguments.length > 5) { diff --git a/node_modules/es-abstract/2021/FromPropertyDescriptor.js b/node_modules/es-abstract/2021/FromPropertyDescriptor.js index e142ed582e..c70f0c60e1 100644 --- a/node_modules/es-abstract/2021/FromPropertyDescriptor.js +++ b/node_modules/es-abstract/2021/FromPropertyDescriptor.js @@ -5,7 +5,7 @@ var fromPropertyDescriptor = require('../helpers/fromPropertyDescriptor'); var Type = require('./Type'); -// https://ecma-international.org/ecma-262/6.0/#sec-frompropertydescriptor +// https://262.ecma-international.org/6.0/#sec-frompropertydescriptor module.exports = function FromPropertyDescriptor(Desc) { if (typeof Desc !== 'undefined') { diff --git a/node_modules/es-abstract/2021/Get.js b/node_modules/es-abstract/2021/Get.js index 297968643f..0973152222 100644 --- a/node_modules/es-abstract/2021/Get.js +++ b/node_modules/es-abstract/2021/Get.js @@ -9,7 +9,7 @@ var inspect = require('object-inspect'); var IsPropertyKey = require('./IsPropertyKey'); var Type = require('./Type'); -// https://ecma-international.org/ecma-262/6.0/#sec-get-o-p +// https://262.ecma-international.org/6.0/#sec-get-o-p module.exports = function Get(O, P) { // 7.3.1.1 diff --git a/node_modules/es-abstract/2021/GetIterator.js b/node_modules/es-abstract/2021/GetIterator.js index 51439e4482..672454abdb 100644 --- a/node_modules/es-abstract/2021/GetIterator.js +++ b/node_modules/es-abstract/2021/GetIterator.js @@ -16,7 +16,8 @@ var GetMethod = require('./GetMethod'); var IsArray = require('./IsArray'); var Type = require('./Type'); -// https://262.ecma-international.org/9.0/#sec-getiterator +// https://262.ecma-international.org/11.0/#sec-getiterator + module.exports = function GetIterator(obj, hint, method) { var actualHint = hint; if (arguments.length < 2) { diff --git a/node_modules/es-abstract/2021/GetMethod.js b/node_modules/es-abstract/2021/GetMethod.js index d3775178e6..e9f2854ff3 100644 --- a/node_modules/es-abstract/2021/GetMethod.js +++ b/node_modules/es-abstract/2021/GetMethod.js @@ -8,9 +8,9 @@ var GetV = require('./GetV'); var IsCallable = require('./IsCallable'); var IsPropertyKey = require('./IsPropertyKey'); -var debug = require('object-inspect'); +var inspect = require('object-inspect'); -// https://ecma-international.org/ecma-262/6.0/#sec-getmethod +// https://262.ecma-international.org/6.0/#sec-getmethod module.exports = function GetMethod(O, P) { // 7.3.9.1 @@ -28,7 +28,7 @@ module.exports = function GetMethod(O, P) { // 7.3.9.5 if (!IsCallable(func)) { - throw new $TypeError(P + ' is not a function: ' + debug(func)); + throw new $TypeError(inspect(P) + ' is not a function: ' + inspect(func)); } // 7.3.9.6 diff --git a/node_modules/es-abstract/2021/GetOwnPropertyKeys.js b/node_modules/es-abstract/2021/GetOwnPropertyKeys.js index 40c0b367fa..043fd733bd 100644 --- a/node_modules/es-abstract/2021/GetOwnPropertyKeys.js +++ b/node_modules/es-abstract/2021/GetOwnPropertyKeys.js @@ -12,7 +12,7 @@ var keys = require('object-keys'); var esType = require('./Type'); -// https://ecma-international.org/ecma-262/6.0/#sec-getownpropertykeys +// https://262.ecma-international.org/6.0/#sec-getownpropertykeys module.exports = function GetOwnPropertyKeys(O, Type) { if (esType(O) !== 'Object') { diff --git a/node_modules/es-abstract/2021/GetPromiseResolve.js b/node_modules/es-abstract/2021/GetPromiseResolve.js index 6efc102889..f0db02617b 100644 --- a/node_modules/es-abstract/2021/GetPromiseResolve.js +++ b/node_modules/es-abstract/2021/GetPromiseResolve.js @@ -8,7 +8,7 @@ var Get = require('./Get'); var IsCallable = require('./IsCallable'); var IsConstructor = require('./IsConstructor'); -// https://ecma-international.org/ecma-262/12.0/#sec-getpromiseresolve +// https://262.ecma-international.org/12.0/#sec-getpromiseresolve module.exports = function GetPromiseResolve(promiseConstructor) { if (!IsConstructor(promiseConstructor)) { diff --git a/node_modules/es-abstract/2021/GetPrototypeFromConstructor.js b/node_modules/es-abstract/2021/GetPrototypeFromConstructor.js index 25ee12f353..0b281ef4fe 100644 --- a/node_modules/es-abstract/2021/GetPrototypeFromConstructor.js +++ b/node_modules/es-abstract/2021/GetPrototypeFromConstructor.js @@ -10,10 +10,13 @@ var Get = require('./Get'); var IsConstructor = require('./IsConstructor'); var Type = require('./Type'); -// https://ecma-international.org/ecma-262/6.0/#sec-getprototypefromconstructor +// https://262.ecma-international.org/6.0/#sec-getprototypefromconstructor module.exports = function GetPrototypeFromConstructor(constructor, intrinsicDefaultProto) { var intrinsic = GetIntrinsic(intrinsicDefaultProto); // throws if not a valid intrinsic + if (Type(intrinsic) !== 'Object') { + throw new $TypeError('intrinsicDefaultProto must be an object'); + } if (!IsConstructor(constructor)) { throw new $TypeError('Assertion failed: `constructor` must be a constructor'); } diff --git a/node_modules/es-abstract/2021/GetSubstitution.js b/node_modules/es-abstract/2021/GetSubstitution.js index 6ac3ec7f3b..9a5fc2e178 100644 --- a/node_modules/es-abstract/2021/GetSubstitution.js +++ b/node_modules/es-abstract/2021/GetSubstitution.js @@ -19,16 +19,12 @@ var inspect = require('object-inspect'); var Get = require('./Get'); var IsArray = require('./IsArray'); -var IsIntegralNumber = require('./IsIntegralNumber'); var ToObject = require('./ToObject'); var ToString = require('./ToString'); var Type = require('./Type'); -var canDistinguishSparseFromUndefined = 0 in [undefined]; // IE 6 - 8 have a bug where this returns false - -var isStringOrHole = function (capture, index, arr) { - return Type(capture) === 'String' || (canDistinguishSparseFromUndefined ? !(index in arr) : Type(capture) === 'Undefined'); -}; +var isInteger = require('../helpers/isInteger'); +var isStringOrHole = require('../helpers/isStringOrHole'); // http://www.ecma-international.org/ecma-262/12.0/#sec-getsubstitution @@ -44,7 +40,7 @@ module.exports = function GetSubstitution(matched, str, position, captures, name } var stringLength = str.length; - if (!IsIntegralNumber(position) || position < 0 || position > stringLength) { + if (!isInteger(position) || position < 0 || position > stringLength) { throw new $TypeError('Assertion failed: `position` must be a nonnegative integer, and less than or equal to the length of `string`, got ' + inspect(position)); } diff --git a/node_modules/es-abstract/2021/GetV.js b/node_modules/es-abstract/2021/GetV.js index 2dcddb3513..706a9211ab 100644 --- a/node_modules/es-abstract/2021/GetV.js +++ b/node_modules/es-abstract/2021/GetV.js @@ -4,20 +4,22 @@ var GetIntrinsic = require('get-intrinsic'); var $TypeError = GetIntrinsic('%TypeError%'); +var inspect = require('object-inspect'); + var IsPropertyKey = require('./IsPropertyKey'); -var ToObject = require('./ToObject'); +// var ToObject = require('./ToObject'); -// https://ecma-international.org/ecma-262/6.0/#sec-getv +// https://262.ecma-international.org/6.0/#sec-getv module.exports = function GetV(V, P) { // 7.3.2.1 if (!IsPropertyKey(P)) { - throw new $TypeError('Assertion failed: IsPropertyKey(P) is not true'); + throw new $TypeError('Assertion failed: IsPropertyKey(P) is not true, got ' + inspect(P)); } // 7.3.2.2-3 - var O = ToObject(V); + // var O = ToObject(V); // 7.3.2.4 - return O[P]; + return V[P]; }; diff --git a/node_modules/es-abstract/2021/GetValueFromBuffer.js b/node_modules/es-abstract/2021/GetValueFromBuffer.js new file mode 100644 index 0000000000..8d3a2f4fc5 --- /dev/null +++ b/node_modules/es-abstract/2021/GetValueFromBuffer.js @@ -0,0 +1,110 @@ +'use strict'; + +var GetIntrinsic = require('get-intrinsic'); + +var $SyntaxError = GetIntrinsic('%SyntaxError%'); +var $TypeError = GetIntrinsic('%TypeError%'); +var $Uint8Array = GetIntrinsic('%Uint8Array%', true); + +var callBound = require('call-bind/callBound'); + +var $slice = callBound('Array.prototype.slice'); + +var isInteger = require('../helpers/isInteger'); + +var IsDetachedBuffer = require('./IsDetachedBuffer'); +var RawBytesToNumeric = require('./RawBytesToNumeric'); + +var isArrayBuffer = require('is-array-buffer'); +var isSharedArrayBuffer = require('is-shared-array-buffer'); +var safeConcat = require('safe-array-concat'); + +var table61 = { + __proto__: null, + $Int8: 1, + $Uint8: 1, + $Uint8C: 1, + $Int16: 2, + $Uint16: 2, + $Int32: 4, + $Uint32: 4, + $BigInt64: 8, + $BigUint64: 8, + $Float32: 4, + $Float64: 8 +}; + +var defaultEndianness = require('../helpers/defaultEndianness'); + +// https://262.ecma-international.org/11.0/#sec-getvaluefrombuffer + +module.exports = function GetValueFromBuffer(arrayBuffer, byteIndex, type, isTypedArray, order) { + var isSAB = isSharedArrayBuffer(arrayBuffer); + if (!isArrayBuffer(arrayBuffer) && !isSAB) { + throw new $TypeError('Assertion failed: `arrayBuffer` must be an ArrayBuffer or a SharedArrayBuffer'); + } + + if (!isInteger(byteIndex)) { + throw new $TypeError('Assertion failed: `byteIndex` must be an integer'); + } + + if (typeof type !== 'string' || typeof table61['$' + type] !== 'number') { + throw new $TypeError('Assertion failed: `type` must be a Typed Array element type'); + } + + if (typeof isTypedArray !== 'boolean') { + throw new $TypeError('Assertion failed: `isTypedArray` must be a boolean'); + } + + if (order !== 'SeqCst' && order !== 'Unordered') { + throw new $TypeError('Assertion failed: `order` must be either `SeqCst` or `Unordered`'); + } + + if (arguments.length > 5 && typeof arguments[5] !== 'boolean') { + throw new $TypeError('Assertion failed: `isLittleEndian` must be a boolean, if present'); + } + + if (IsDetachedBuffer(arrayBuffer)) { + throw new $TypeError('Assertion failed: `arrayBuffer` is detached'); // step 1 + } + + // 2. Assert: There are sufficient bytes in arrayBuffer starting at byteIndex to represent a value of type. + + if (byteIndex < 0) { + throw new $TypeError('Assertion failed: `byteIndex` must be non-negative'); // step 3 + } + + // 4. Let block be arrayBuffer.[[ArrayBufferData]]. + + var elementSize = table61['$' + type]; // step 5 + if (!elementSize) { + throw new $TypeError('Assertion failed: `type` must be one of "Int8", "Uint8", "Uint8C", "Int16", "Uint16", "Int32", "Uint32", "BigInt64", "BigUint64", "Float32", or "Float64"'); + } + + var rawValue; + if (isSAB) { // step 6 + /* + a. Let execution be the [[CandidateExecution]] field of the surrounding agent's Agent Record. + b. Let eventList be the [[EventList]] field of the element in execution.[[EventLists]] whose [[AgentSignifier]] is AgentSignifier(). + c. If isTypedArray is true and type is "Int8", "Uint8", "Int16", "Uint16", "Int32", or "Uint32", let noTear be true; otherwise let noTear be false. + d. Let rawValue be a List of length elementSize of nondeterministically chosen byte values. + e. NOTE: In implementations, rawValue is the result of a non-atomic or atomic read instruction on the underlying hardware. The nondeterminism is a semantic prescription of the memory model to describe observable behaviour of hardware with weak consistency. + f. Let readEvent be ReadSharedMemory{ [[Order]]: order, [[NoTear]]: noTear, [[Block]]: block, [[ByteIndex]]: byteIndex, [[ElementSize]]: elementSize }. + g. Append readEvent to eventList. + h. Append Chosen Value Record { [[Event]]: readEvent, [[ChosenValue]]: rawValue } to execution.[[ChosenValues]]. + */ + throw new $SyntaxError('SharedArrayBuffer is not supported by this implementation'); + } else { + // 7. Let rawValue be a List of elementSize containing, in order, the elementSize sequence of bytes starting with block[byteIndex]. + rawValue = $slice(new $Uint8Array(arrayBuffer, byteIndex), 0, elementSize); // step 6 + } + + // 8. If isLittleEndian is not present, set isLittleEndian to either true or false. The choice is implementation dependent and should be the alternative that is most efficient for the implementation. An implementation must use the same value each time this step is executed and the same value must be used for the corresponding step in the SetValueInBuffer abstract operation. + var isLittleEndian = arguments.length > 5 ? arguments[5] : defaultEndianness === 'little'; // step 8 + + var bytes = isLittleEndian + ? $slice(safeConcat([0, 0, 0, 0, 0, 0, 0, 0], rawValue), -elementSize) + : $slice(safeConcat(rawValue, [0, 0, 0, 0, 0, 0, 0, 0]), 0, elementSize); + + return RawBytesToNumeric(type, bytes, isLittleEndian); +}; diff --git a/node_modules/es-abstract/2021/HasOwnProperty.js b/node_modules/es-abstract/2021/HasOwnProperty.js index 04d28495f9..1f29ba4df1 100644 --- a/node_modules/es-abstract/2021/HasOwnProperty.js +++ b/node_modules/es-abstract/2021/HasOwnProperty.js @@ -9,7 +9,7 @@ var has = require('has'); var IsPropertyKey = require('./IsPropertyKey'); var Type = require('./Type'); -// https://ecma-international.org/ecma-262/6.0/#sec-hasownproperty +// https://262.ecma-international.org/6.0/#sec-hasownproperty module.exports = function HasOwnProperty(O, P) { if (Type(O) !== 'Object') { diff --git a/node_modules/es-abstract/2021/HasProperty.js b/node_modules/es-abstract/2021/HasProperty.js index b341654e7c..91476d208b 100644 --- a/node_modules/es-abstract/2021/HasProperty.js +++ b/node_modules/es-abstract/2021/HasProperty.js @@ -7,7 +7,7 @@ var $TypeError = GetIntrinsic('%TypeError%'); var IsPropertyKey = require('./IsPropertyKey'); var Type = require('./Type'); -// https://ecma-international.org/ecma-262/6.0/#sec-hasproperty +// https://262.ecma-international.org/6.0/#sec-hasproperty module.exports = function HasProperty(O, P) { if (Type(O) !== 'Object') { diff --git a/node_modules/es-abstract/2021/InstanceofOperator.js b/node_modules/es-abstract/2021/InstanceofOperator.js index a3c4d23755..4a34d0c20c 100644 --- a/node_modules/es-abstract/2021/InstanceofOperator.js +++ b/node_modules/es-abstract/2021/InstanceofOperator.js @@ -13,7 +13,7 @@ var OrdinaryHasInstance = require('./OrdinaryHasInstance'); var ToBoolean = require('./ToBoolean'); var Type = require('./Type'); -// https://ecma-international.org/ecma-262/6.0/#sec-instanceofoperator +// https://262.ecma-international.org/6.0/#sec-instanceofoperator module.exports = function InstanceofOperator(O, C) { if (Type(O) !== 'Object') { diff --git a/node_modules/es-abstract/2021/Invoke.js b/node_modules/es-abstract/2021/Invoke.js index d4214ee516..084e5e2825 100644 --- a/node_modules/es-abstract/2021/Invoke.js +++ b/node_modules/es-abstract/2021/Invoke.js @@ -9,7 +9,7 @@ var IsArray = require('./IsArray'); var GetV = require('./GetV'); var IsPropertyKey = require('./IsPropertyKey'); -// https://ecma-international.org/ecma-262/6.0/#sec-invoke +// https://262.ecma-international.org/6.0/#sec-invoke module.exports = function Invoke(O, P) { if (!IsPropertyKey(P)) { diff --git a/node_modules/es-abstract/2021/IsAccessorDescriptor.js b/node_modules/es-abstract/2021/IsAccessorDescriptor.js index 78563e7ecc..da64a302ac 100644 --- a/node_modules/es-abstract/2021/IsAccessorDescriptor.js +++ b/node_modules/es-abstract/2021/IsAccessorDescriptor.js @@ -2,11 +2,11 @@ var has = require('has'); -var assertRecord = require('../helpers/assertRecord'); - var Type = require('./Type'); -// https://ecma-international.org/ecma-262/6.0/#sec-isaccessordescriptor +var assertRecord = require('../helpers/assertRecord'); + +// https://262.ecma-international.org/5.1/#sec-8.10.1 module.exports = function IsAccessorDescriptor(Desc) { if (typeof Desc === 'undefined') { diff --git a/node_modules/es-abstract/2021/IsArray.js b/node_modules/es-abstract/2021/IsArray.js index 600ffa0028..c2c48c1f23 100644 --- a/node_modules/es-abstract/2021/IsArray.js +++ b/node_modules/es-abstract/2021/IsArray.js @@ -1,4 +1,4 @@ 'use strict'; -// https://ecma-international.org/ecma-262/6.0/#sec-isarray +// https://262.ecma-international.org/6.0/#sec-isarray module.exports = require('../helpers/IsArray'); diff --git a/node_modules/es-abstract/2021/IsConcatSpreadable.js b/node_modules/es-abstract/2021/IsConcatSpreadable.js index 141b33414d..10e1eab216 100644 --- a/node_modules/es-abstract/2021/IsConcatSpreadable.js +++ b/node_modules/es-abstract/2021/IsConcatSpreadable.js @@ -9,7 +9,7 @@ var IsArray = require('./IsArray'); var ToBoolean = require('./ToBoolean'); var Type = require('./Type'); -// https://ecma-international.org/ecma-262/6.0/#sec-isconcatspreadable +// https://262.ecma-international.org/6.0/#sec-isconcatspreadable module.exports = function IsConcatSpreadable(O) { if (Type(O) !== 'Object') { diff --git a/node_modules/es-abstract/2021/IsConstructor.js b/node_modules/es-abstract/2021/IsConstructor.js index fe626e1834..62ac47f6a3 100644 --- a/node_modules/es-abstract/2021/IsConstructor.js +++ b/node_modules/es-abstract/2021/IsConstructor.js @@ -12,7 +12,7 @@ try { DefinePropertyOrThrow = null; } -// https://ecma-international.org/ecma-262/6.0/#sec-isconstructor +// https://262.ecma-international.org/6.0/#sec-isconstructor if (DefinePropertyOrThrow && $construct) { var isConstructorMarker = {}; diff --git a/node_modules/es-abstract/2021/IsDataDescriptor.js b/node_modules/es-abstract/2021/IsDataDescriptor.js index 00d14a60eb..9db441e965 100644 --- a/node_modules/es-abstract/2021/IsDataDescriptor.js +++ b/node_modules/es-abstract/2021/IsDataDescriptor.js @@ -2,11 +2,11 @@ var has = require('has'); -var assertRecord = require('../helpers/assertRecord'); - var Type = require('./Type'); -// https://ecma-international.org/ecma-262/6.0/#sec-isdatadescriptor +var assertRecord = require('../helpers/assertRecord'); + +// https://262.ecma-international.org/5.1/#sec-8.10.2 module.exports = function IsDataDescriptor(Desc) { if (typeof Desc === 'undefined') { diff --git a/node_modules/es-abstract/2021/IsDetachedBuffer.js b/node_modules/es-abstract/2021/IsDetachedBuffer.js index 4b373e9ab5..01529bca2c 100644 --- a/node_modules/es-abstract/2021/IsDetachedBuffer.js +++ b/node_modules/es-abstract/2021/IsDetachedBuffer.js @@ -4,10 +4,7 @@ var GetIntrinsic = require('get-intrinsic'); var $TypeError = GetIntrinsic('%TypeError%'); -var callBound = require('call-bind/callBound'); - -var $byteLength = callBound('%ArrayBuffer.prototype.byteLength%', true) - || function byteLength(ab) { return ab.byteLength; }; // in node < 0.11, byteLength is an own nonconfigurable property +var $byteLength = require('array-buffer-byte-length'); var isArrayBuffer = require('is-array-buffer'); @@ -23,7 +20,7 @@ module.exports = function IsDetachedBuffer(arrayBuffer) { try { new global[availableTypedArrays[0]](arrayBuffer); // eslint-disable-line no-new } catch (error) { - return error.name === 'TypeError'; + return !!error && error.name === 'TypeError'; } } return false; diff --git a/node_modules/es-abstract/2021/IsExtensible.js b/node_modules/es-abstract/2021/IsExtensible.js index d6e3638401..aa19b914c2 100644 --- a/node_modules/es-abstract/2021/IsExtensible.js +++ b/node_modules/es-abstract/2021/IsExtensible.js @@ -7,7 +7,7 @@ var $isExtensible = GetIntrinsic('%Object.isExtensible%', true); var isPrimitive = require('../helpers/isPrimitive'); -// https://ecma-international.org/ecma-262/6.0/#sec-isextensible-o +// https://262.ecma-international.org/6.0/#sec-isextensible-o module.exports = $preventExtensions ? function IsExtensible(obj) { diff --git a/node_modules/es-abstract/2021/IsGenericDescriptor.js b/node_modules/es-abstract/2021/IsGenericDescriptor.js index 95b1d353c5..d43bec2b35 100644 --- a/node_modules/es-abstract/2021/IsGenericDescriptor.js +++ b/node_modules/es-abstract/2021/IsGenericDescriptor.js @@ -6,7 +6,7 @@ var IsAccessorDescriptor = require('./IsAccessorDescriptor'); var IsDataDescriptor = require('./IsDataDescriptor'); var Type = require('./Type'); -// https://ecma-international.org/ecma-262/6.0/#sec-isgenericdescriptor +// https://262.ecma-international.org/6.0/#sec-isgenericdescriptor module.exports = function IsGenericDescriptor(Desc) { if (typeof Desc === 'undefined') { diff --git a/node_modules/es-abstract/2021/IsIntegralNumber.js b/node_modules/es-abstract/2021/IsIntegralNumber.js index 0a02bfe0f1..644b936d91 100644 --- a/node_modules/es-abstract/2021/IsIntegralNumber.js +++ b/node_modules/es-abstract/2021/IsIntegralNumber.js @@ -1,18 +1,9 @@ 'use strict'; -var abs = require('./abs'); -var floor = require('./floor'); -var Type = require('./Type'); +var isInteger = require('../helpers/isInteger'); -var $isNaN = require('../helpers/isNaN'); -var $isFinite = require('../helpers/isFinite'); - -// https://tc39.es/ecma262/#sec-isintegralnumber +// https://262.ecma-international.org/12.0/#sec-isinteger module.exports = function IsIntegralNumber(argument) { - if (Type(argument) !== 'Number' || $isNaN(argument) || !$isFinite(argument)) { - return false; - } - var absValue = abs(argument); - return floor(absValue) === absValue; + return isInteger(argument); }; diff --git a/node_modules/es-abstract/2021/IsPromise.js b/node_modules/es-abstract/2021/IsPromise.js index a551ae0c8b..411539b081 100644 --- a/node_modules/es-abstract/2021/IsPromise.js +++ b/node_modules/es-abstract/2021/IsPromise.js @@ -6,7 +6,7 @@ var $PromiseThen = callBound('Promise.prototype.then', true); var Type = require('./Type'); -// https://ecma-international.org/ecma-262/6.0/#sec-ispromise +// https://262.ecma-international.org/6.0/#sec-ispromise module.exports = function IsPromise(x) { if (Type(x) !== 'Object') { diff --git a/node_modules/es-abstract/2021/IsPropertyKey.js b/node_modules/es-abstract/2021/IsPropertyKey.js index f43ab581c7..aaeb6f9b6f 100644 --- a/node_modules/es-abstract/2021/IsPropertyKey.js +++ b/node_modules/es-abstract/2021/IsPropertyKey.js @@ -1,6 +1,6 @@ 'use strict'; -// https://ecma-international.org/ecma-262/6.0/#sec-ispropertykey +// https://262.ecma-international.org/6.0/#sec-ispropertykey module.exports = function IsPropertyKey(argument) { return typeof argument === 'string' || typeof argument === 'symbol'; diff --git a/node_modules/es-abstract/2021/IsRegExp.js b/node_modules/es-abstract/2021/IsRegExp.js index e1054813f1..33d983dc8d 100644 --- a/node_modules/es-abstract/2021/IsRegExp.js +++ b/node_modules/es-abstract/2021/IsRegExp.js @@ -8,7 +8,7 @@ var hasRegExpMatcher = require('is-regex'); var ToBoolean = require('./ToBoolean'); -// https://ecma-international.org/ecma-262/6.0/#sec-isregexp +// https://262.ecma-international.org/6.0/#sec-isregexp module.exports = function IsRegExp(argument) { if (!argument || typeof argument !== 'object') { diff --git a/node_modules/es-abstract/2021/IsValidIntegerIndex.js b/node_modules/es-abstract/2021/IsValidIntegerIndex.js new file mode 100644 index 0000000000..830416312d --- /dev/null +++ b/node_modules/es-abstract/2021/IsValidIntegerIndex.js @@ -0,0 +1,33 @@ +'use strict'; + +var GetIntrinsic = require('get-intrinsic'); + +var $TypeError = GetIntrinsic('%TypeError%'); + +var IsDetachedBuffer = require('./IsDetachedBuffer'); +var IsIntegralNumber = require('./IsIntegralNumber'); + +var isNegativeZero = require('../helpers/isNegativeZero'); + +var typedArrayBuffer = require('typed-array-buffer'); + +// https://262.ecma-international.org/12.0/#sec-isvalidintegerindex + +module.exports = function IsValidIntegerIndex(O, index) { + // Assert: O is an Integer-Indexed exotic object. + var buffer = typedArrayBuffer(O); // step 1 + + if (typeof index !== 'number') { + throw new $TypeError('Assertion failed: Type(index) is not Number'); + } + + if (IsDetachedBuffer(buffer)) { return false; } // step 2 + + if (!IsIntegralNumber(index)) { return false; } // step 3 + + if (isNegativeZero(index)) { return false; } // step 4 + + if (index < 0 || index >= O.length) { return false; } // step 5 + + return true; // step 6 +}; diff --git a/node_modules/es-abstract/2021/IsWordChar.js b/node_modules/es-abstract/2021/IsWordChar.js new file mode 100644 index 0000000000..0df6b20249 --- /dev/null +++ b/node_modules/es-abstract/2021/IsWordChar.js @@ -0,0 +1,48 @@ +'use strict'; + +var GetIntrinsic = require('get-intrinsic'); + +var $TypeError = GetIntrinsic('%TypeError%'); + +var callBound = require('call-bind/callBound'); + +var $indexOf = callBound('String.prototype.indexOf'); + +var IsArray = require('./IsArray'); +var IsIntegralNumber = require('./IsIntegralNumber'); +var Type = require('./Type'); +var WordCharacters = require('./WordCharacters'); + +var every = require('../helpers/every'); + +var isChar = function isChar(c) { + return typeof c === 'string'; +}; + +// https://262.ecma-international.org/12.0/#sec-runtime-semantics-iswordchar-abstract-operation + +// note: prior to ES2023, this AO erroneously omitted the latter of its arguments. +module.exports = function IsWordChar(e, InputLength, Input, IgnoreCase, Unicode) { + if (!IsIntegralNumber(e)) { + throw new $TypeError('Assertion failed: `e` must be an integer'); + } + if (!IsIntegralNumber(InputLength)) { + throw new $TypeError('Assertion failed: `InputLength` must be an integer'); + } + if (!IsArray(Input) || !every(Input, isChar)) { + throw new $TypeError('Assertion failed: `Input` must be a List of characters'); + } + if (Type(IgnoreCase) !== 'Boolean' || Type(Unicode) !== 'Boolean') { + throw new $TypeError('Assertion failed: `IgnoreCase` and `Unicode` must be booleans'); + } + + if (e === -1 || e === InputLength) { + return false; // step 1 + } + + var c = Input[e]; // step 2 + + var wordChars = WordCharacters(IgnoreCase, Unicode); + + return $indexOf(wordChars, c) > -1; // steps 3-4 +}; diff --git a/node_modules/es-abstract/2021/IteratorClose.js b/node_modules/es-abstract/2021/IteratorClose.js index f703ea632f..7c1076082e 100644 --- a/node_modules/es-abstract/2021/IteratorClose.js +++ b/node_modules/es-abstract/2021/IteratorClose.js @@ -10,7 +10,7 @@ var GetMethod = require('./GetMethod'); var IsCallable = require('./IsCallable'); var Type = require('./Type'); -// https://ecma-international.org/ecma-262/6.0/#sec-iteratorclose +// https://262.ecma-international.org/6.0/#sec-iteratorclose module.exports = function IteratorClose(iterator, completion) { if (Type(iterator) !== 'Object') { diff --git a/node_modules/es-abstract/2021/IteratorComplete.js b/node_modules/es-abstract/2021/IteratorComplete.js index ed4efa37d5..29f5f75fea 100644 --- a/node_modules/es-abstract/2021/IteratorComplete.js +++ b/node_modules/es-abstract/2021/IteratorComplete.js @@ -8,7 +8,7 @@ var Get = require('./Get'); var ToBoolean = require('./ToBoolean'); var Type = require('./Type'); -// https://ecma-international.org/ecma-262/6.0/#sec-iteratorcomplete +// https://262.ecma-international.org/6.0/#sec-iteratorcomplete module.exports = function IteratorComplete(iterResult) { if (Type(iterResult) !== 'Object') { diff --git a/node_modules/es-abstract/2021/IteratorNext.js b/node_modules/es-abstract/2021/IteratorNext.js index cf80655b93..d84d66edb5 100644 --- a/node_modules/es-abstract/2021/IteratorNext.js +++ b/node_modules/es-abstract/2021/IteratorNext.js @@ -7,7 +7,7 @@ var $TypeError = GetIntrinsic('%TypeError%'); var Invoke = require('./Invoke'); var Type = require('./Type'); -// https://ecma-international.org/ecma-262/6.0/#sec-iteratornext +// https://262.ecma-international.org/6.0/#sec-iteratornext module.exports = function IteratorNext(iterator, value) { var result = Invoke(iterator, 'next', arguments.length < 2 ? [] : [value]); diff --git a/node_modules/es-abstract/2021/IteratorStep.js b/node_modules/es-abstract/2021/IteratorStep.js index 41b9d1b251..85bcd95c04 100644 --- a/node_modules/es-abstract/2021/IteratorStep.js +++ b/node_modules/es-abstract/2021/IteratorStep.js @@ -3,7 +3,7 @@ var IteratorComplete = require('./IteratorComplete'); var IteratorNext = require('./IteratorNext'); -// https://ecma-international.org/ecma-262/6.0/#sec-iteratorstep +// https://262.ecma-international.org/6.0/#sec-iteratorstep module.exports = function IteratorStep(iterator) { var result = IteratorNext(iterator); diff --git a/node_modules/es-abstract/2021/IteratorValue.js b/node_modules/es-abstract/2021/IteratorValue.js index d15d8aebbf..e9b16daed5 100644 --- a/node_modules/es-abstract/2021/IteratorValue.js +++ b/node_modules/es-abstract/2021/IteratorValue.js @@ -7,7 +7,7 @@ var $TypeError = GetIntrinsic('%TypeError%'); var Get = require('./Get'); var Type = require('./Type'); -// https://ecma-international.org/ecma-262/6.0/#sec-iteratorvalue +// https://262.ecma-international.org/6.0/#sec-iteratorvalue module.exports = function IteratorValue(iterResult) { if (Type(iterResult) !== 'Object') { diff --git a/node_modules/es-abstract/2021/MakeDay.js b/node_modules/es-abstract/2021/MakeDay.js index db78bbc74a..161ccaf23d 100644 --- a/node_modules/es-abstract/2021/MakeDay.js +++ b/node_modules/es-abstract/2021/MakeDay.js @@ -14,7 +14,7 @@ var MonthFromTime = require('./MonthFromTime'); var ToIntegerOrInfinity = require('./ToIntegerOrInfinity'); var YearFromTime = require('./YearFromTime'); -// https://ecma-international.org/ecma-262/5.1/#sec-15.9.1.12 +// https://262.ecma-international.org/5.1/#sec-15.9.1.12 module.exports = function MakeDay(year, month, date) { if (!$isFinite(year) || !$isFinite(month) || !$isFinite(date)) { diff --git a/node_modules/es-abstract/2021/MakeTime.js b/node_modules/es-abstract/2021/MakeTime.js index 330d3bdbce..a11d07ef83 100644 --- a/node_modules/es-abstract/2021/MakeTime.js +++ b/node_modules/es-abstract/2021/MakeTime.js @@ -8,7 +8,7 @@ var msPerHour = timeConstants.msPerHour; var ToIntegerOrInfinity = require('./ToIntegerOrInfinity'); -// https://ecma-international.org/ecma-262/5.1/#sec-15.9.1.11 +// https://262.ecma-international.org/12.0/#sec-maketime module.exports = function MakeTime(hour, min, sec, ms) { if (!$isFinite(hour) || !$isFinite(min) || !$isFinite(sec) || !$isFinite(ms)) { diff --git a/node_modules/es-abstract/2021/NewPromiseCapability.js b/node_modules/es-abstract/2021/NewPromiseCapability.js new file mode 100644 index 0000000000..e30b08811d --- /dev/null +++ b/node_modules/es-abstract/2021/NewPromiseCapability.js @@ -0,0 +1,36 @@ +'use strict'; + +var GetIntrinsic = require('get-intrinsic'); + +var $TypeError = GetIntrinsic('%TypeError%'); + +var IsCallable = require('es-abstract/2022/IsCallable'); +var IsConstructor = require('es-abstract/2022/IsConstructor'); + +// https://262.ecma-international.org/6.0/#sec-newpromisecapability + +module.exports = function NewPromiseCapability(C) { + if (!IsConstructor(C)) { + throw new $TypeError('C must be a constructor'); // step 1 + } + + var resolvingFunctions = { '[[Resolve]]': void undefined, '[[Reject]]': void undefined }; // step 3 + + var promise = new C(function (resolve, reject) { // steps 4-5 + if (typeof resolvingFunctions['[[Resolve]]'] !== 'undefined' || typeof resolvingFunctions['[[Reject]]'] !== 'undefined') { + throw new $TypeError('executor has already been called'); // step 4.a, 4.b + } + resolvingFunctions['[[Resolve]]'] = resolve; // step 4.c + resolvingFunctions['[[Reject]]'] = reject; // step 4.d + }); // step 4-6 + + if (!IsCallable(resolvingFunctions['[[Resolve]]']) || !IsCallable(resolvingFunctions['[[Reject]]'])) { + throw new $TypeError('executor must provide valid resolve and reject functions'); // steps 7-8 + } + + return { + '[[Promise]]': promise, + '[[Resolve]]': resolvingFunctions['[[Resolve]]'], + '[[Reject]]': resolvingFunctions['[[Reject]]'] + }; // step 9 +}; diff --git a/node_modules/es-abstract/2021/NumericToRawBytes.js b/node_modules/es-abstract/2021/NumericToRawBytes.js index 91549fb991..cc671159f4 100644 --- a/node_modules/es-abstract/2021/NumericToRawBytes.js +++ b/node_modules/es-abstract/2021/NumericToRawBytes.js @@ -2,25 +2,8 @@ var GetIntrinsic = require('get-intrinsic'); -var $floor = GetIntrinsic('%Math.floor%'); -var $log = GetIntrinsic('%Math.log%'); -var $log2E = GetIntrinsic('%Math.LOG2E%'); -var $log2 = GetIntrinsic('%Math.log2%', true) || function log2(x) { - return $log(x) * $log2E; -}; -var $parseInt = GetIntrinsic('%parseInt%'); -var $pow = GetIntrinsic('%Math.pow%'); -var $Number = GetIntrinsic('%Number%'); var $TypeError = GetIntrinsic('%TypeError%'); -var $BigInt = GetIntrinsic('%BigInt%', true); - -var callBound = require('call-bind/callBound'); -var $reverse = callBound('Array.prototype.reverse'); -var $numberToString = callBound('Number.prototype.toString'); -var $strSlice = callBound('String.prototype.slice'); - -var abs = require('./abs'); var hasOwnProperty = require('./HasOwnProperty'); var ToBigInt64 = require('./ToBigInt64'); var ToBigUint64 = require('./ToBigUint64'); @@ -33,8 +16,9 @@ var ToUint8 = require('./ToUint8'); var ToUint8Clamp = require('./ToUint8Clamp'); var Type = require('./Type'); -var isNaN = require('../helpers/isNaN'); -var isFinite = require('../helpers/isFinite'); +var valueToFloat32Bytes = require('../helpers/valueToFloat32Bytes'); +var valueToFloat64Bytes = require('../helpers/valueToFloat64Bytes'); +var integerToNBytes = require('../helpers/integerToNBytes'); var keys = require('object-keys'); @@ -80,105 +64,10 @@ module.exports = function NumericToRawBytes(type, value, isLittleEndian) { throw new $TypeError('Assertion failed: `isLittleEndian` must be a Boolean'); } - var rawBytes = []; - var exponent; - if (type === 'Float32') { // step 1 - if (isNaN(value)) { - return isLittleEndian ? [0, 0, 192, 127] : [127, 192, 0, 0]; // hardcoded - } - - var leastSig; - - if (value === 0) { - leastSig = Object.is(value, -0) ? 0x80 : 0; - return isLittleEndian ? [0, 0, 0, leastSig] : [leastSig, 0, 0, 0]; - } - - if (!isFinite(value)) { - leastSig = value < 0 ? 255 : 127; - return isLittleEndian ? [0, 0, 128, leastSig] : [leastSig, 128, 0, 0]; - } - - var sign = value < 0 ? 1 : 0; - value = abs(value); // eslint-disable-line no-param-reassign - - exponent = 0; - while (value >= 2) { - exponent += 1; - value /= 2; // eslint-disable-line no-param-reassign - } - - while (value < 1) { - exponent -= 1; - value *= 2; // eslint-disable-line no-param-reassign - } - - var mantissa = value - 1; - mantissa *= $pow(2, 23); - mantissa = $floor(mantissa); - - exponent += 127; - exponent = exponent << 23; - - var result = sign << 31; - result |= exponent; - result |= mantissa; - - var byte0 = result & 255; - result = result >> 8; - var byte1 = result & 255; - result = result >> 8; - var byte2 = result & 255; - result = result >> 8; - var byte3 = result & 255; - - if (isLittleEndian) { - return [byte0, byte1, byte2, byte3]; - } - return [byte3, byte2, byte1, byte0]; + return valueToFloat32Bytes(value, isLittleEndian); } else if (type === 'Float64') { // step 2 - if (value === 0) { - leastSig = Object.is(value, -0) ? 0x80 : 0; - return isLittleEndian ? [0, 0, 0, 0, 0, 0, 0, leastSig] : [leastSig, 0, 0, 0, 0, 0, 0, 0]; - } - if (isNaN(value)) { - return isLittleEndian ? [0, 0, 0, 0, 0, 0, 248, 127] : [127, 248, 0, 0, 0, 0, 0, 0]; - } - if (!isFinite(value)) { - var infBytes = value < 0 ? [0, 0, 0, 0, 0, 0, 240, 255] : [0, 0, 0, 0, 0, 0, 240, 127]; - return isLittleEndian ? infBytes : $reverse(infBytes); - } - - var isNegative = value < 0; - if (isNegative) { value = -value; } // eslint-disable-line no-param-reassign - - exponent = $floor($log2(value)); - var significand = (value / $pow(2, exponent)) - 1; - - var bitString = ''; - for (var i = 0; i < 52; i++) { - significand *= 2; - if (significand >= 1) { - bitString += '1'; - significand -= 1; - } else { - bitString += '0'; - } - } - - exponent += 1023; - var exponentBits = $numberToString(exponent, 2); - while (exponentBits.length < 11) { exponentBits = '0' + exponentBits; } - - var fullBitString = (isNegative ? '1' : '0') + exponentBits + bitString; - while (fullBitString.length < 64) { fullBitString = '0' + fullBitString; } - - for (i = 0; i < 8; i++) { - rawBytes[i] = $parseInt($strSlice(fullBitString, i * 8, (i + 1) * 8), 2); - } - - return isLittleEndian ? $reverse(rawBytes) : rawBytes; + return valueToFloat64Bytes(value, isLittleEndian); } // step 3 var n = TypeToSizes[type]; // step 3.a @@ -187,23 +76,5 @@ module.exports = function NumericToRawBytes(type, value, isLittleEndian) { var intValue = convOp(value); // step 3.c - var isBigInt = type === 'BigInt64' || type === 'BigUint64'; - /* - if (intValue >= 0) { // step 3.d - // Let rawBytes be a List containing the n-byte binary encoding of intValue. If isLittleEndian is false, the bytes are ordered in big endian order. Otherwise, the bytes are ordered in little endian order. - } else { // step 3.e - // Let rawBytes be a List containing the n-byte binary 2's complement encoding of intValue. If isLittleEndian is false, the bytes are ordered in big endian order. Otherwise, the bytes are ordered in little endian order. - } - */ - if (intValue < 0) { - intValue = intValue >>> 0; - } - var OxFF = isBigInt ? $BigInt(0xFF) : 0xFF; - var eight = isBigInt ? $BigInt(8) : 8; - for (i = 0; i < n; i++) { - rawBytes[isLittleEndian ? i : n - 1 - i] = $Number(intValue & OxFF); - intValue = intValue >> eight; - } - - return rawBytes; // step 4 + return integerToNBytes(intValue, n, isLittleEndian); // step 3.d, 3.e, 4 }; diff --git a/node_modules/es-abstract/2021/ObjectDefineProperties.js b/node_modules/es-abstract/2021/ObjectDefineProperties.js index f096f1edee..b47603487c 100644 --- a/node_modules/es-abstract/2021/ObjectDefineProperties.js +++ b/node_modules/es-abstract/2021/ObjectDefineProperties.js @@ -3,7 +3,6 @@ var callBound = require('call-bind/callBound'); var DefinePropertyOrThrow = require('./DefinePropertyOrThrow'); -var FromPropertyDescriptor = require('./FromPropertyDescriptor'); var Get = require('./Get'); var ToObject = require('./ToObject'); var ToPropertyDescriptor = require('./ToPropertyDescriptor'); @@ -32,7 +31,6 @@ module.exports = function ObjectDefineProperties(O, Properties) { forEach(descriptors, function (pair) { // step 5 var P = pair[0]; // step 5.a var desc = pair[1]; // step 5.b - desc = FromPropertyDescriptor(desc); // TODO: remove this once DefinePropertyOrThrow is fixed DefinePropertyOrThrow(O, P, desc); // step 5.c }); diff --git a/node_modules/es-abstract/2021/OrdinaryDefineOwnProperty.js b/node_modules/es-abstract/2021/OrdinaryDefineOwnProperty.js index 34f029f7e5..70cd4fe58d 100644 --- a/node_modules/es-abstract/2021/OrdinaryDefineOwnProperty.js +++ b/node_modules/es-abstract/2021/OrdinaryDefineOwnProperty.js @@ -17,7 +17,7 @@ var SameValue = require('./SameValue'); var Type = require('./Type'); var ValidateAndApplyPropertyDescriptor = require('./ValidateAndApplyPropertyDescriptor'); -// https://ecma-international.org/ecma-262/6.0/#sec-ordinarydefineownproperty +// https://262.ecma-international.org/6.0/#sec-ordinarydefineownproperty module.exports = function OrdinaryDefineOwnProperty(O, P, Desc) { if (Type(O) !== 'Object') { diff --git a/node_modules/es-abstract/2021/OrdinaryGetOwnProperty.js b/node_modules/es-abstract/2021/OrdinaryGetOwnProperty.js index fd8035acb9..c23abe1103 100644 --- a/node_modules/es-abstract/2021/OrdinaryGetOwnProperty.js +++ b/node_modules/es-abstract/2021/OrdinaryGetOwnProperty.js @@ -17,7 +17,7 @@ var IsRegExp = require('./IsRegExp'); var ToPropertyDescriptor = require('./ToPropertyDescriptor'); var Type = require('./Type'); -// https://ecma-international.org/ecma-262/6.0/#sec-ordinarygetownproperty +// https://262.ecma-international.org/6.0/#sec-ordinarygetownproperty module.exports = function OrdinaryGetOwnProperty(O, P) { if (Type(O) !== 'Object') { diff --git a/node_modules/es-abstract/2021/OrdinaryHasInstance.js b/node_modules/es-abstract/2021/OrdinaryHasInstance.js index 85a240ca2f..996a50e070 100644 --- a/node_modules/es-abstract/2021/OrdinaryHasInstance.js +++ b/node_modules/es-abstract/2021/OrdinaryHasInstance.js @@ -8,10 +8,10 @@ var Get = require('./Get'); var IsCallable = require('./IsCallable'); var Type = require('./Type'); -// https://ecma-international.org/ecma-262/6.0/#sec-ordinaryhasinstance +// https://262.ecma-international.org/6.0/#sec-ordinaryhasinstance module.exports = function OrdinaryHasInstance(C, O) { - if (IsCallable(C) === false) { + if (!IsCallable(C)) { return false; } if (Type(O) !== 'Object') { diff --git a/node_modules/es-abstract/2021/OrdinaryHasProperty.js b/node_modules/es-abstract/2021/OrdinaryHasProperty.js index dd09ca3b1b..27e7da33ad 100644 --- a/node_modules/es-abstract/2021/OrdinaryHasProperty.js +++ b/node_modules/es-abstract/2021/OrdinaryHasProperty.js @@ -7,7 +7,7 @@ var $TypeError = GetIntrinsic('%TypeError%'); var IsPropertyKey = require('./IsPropertyKey'); var Type = require('./Type'); -// https://ecma-international.org/ecma-262/6.0/#sec-ordinaryhasproperty +// https://262.ecma-international.org/6.0/#sec-ordinaryhasproperty module.exports = function OrdinaryHasProperty(O, P) { if (Type(O) !== 'Object') { diff --git a/node_modules/es-abstract/2021/QuoteJSONString.js b/node_modules/es-abstract/2021/QuoteJSONString.js index 0deebecf2b..e3851480c5 100644 --- a/node_modules/es-abstract/2021/QuoteJSONString.js +++ b/node_modules/es-abstract/2021/QuoteJSONString.js @@ -18,7 +18,7 @@ var UTF16EncodeCodePoint = require('./UTF16EncodeCodePoint'); var has = require('has'); -// https://ecma-international.org/ecma-262/12.0/#sec-quotejsonstring +// https://262.ecma-international.org/12.0/#sec-quotejsonstring var escapes = { '\u0008': '\\b', diff --git a/node_modules/es-abstract/2021/RawBytesToNumeric.js b/node_modules/es-abstract/2021/RawBytesToNumeric.js index c253b5d701..d14705cdcc 100644 --- a/node_modules/es-abstract/2021/RawBytesToNumeric.js +++ b/node_modules/es-abstract/2021/RawBytesToNumeric.js @@ -3,7 +3,6 @@ var GetIntrinsic = require('get-intrinsic'); var callBound = require('call-bind/callBound'); -var $pow = GetIntrinsic('%Math.pow%'); var $RangeError = GetIntrinsic('%RangeError%'); var $SyntaxError = GetIntrinsic('%SyntaxError%'); var $TypeError = GetIntrinsic('%TypeError%'); @@ -15,6 +14,9 @@ var IsBigIntElementType = require('./IsBigIntElementType'); var IsUnsignedElementType = require('./IsUnsignedElementType'); var Type = require('./Type'); +var bytesAsFloat32 = require('../helpers/bytesAsFloat32'); +var bytesAsFloat64 = require('../helpers/bytesAsFloat64'); +var bytesAsInteger = require('../helpers/bytesAsInteger'); var every = require('../helpers/every'); var isByteValue = require('../helpers/isByteValue'); @@ -67,90 +69,16 @@ module.exports = function RawBytesToNumeric(type, rawBytes, isLittleEndian) { // eslint-disable-next-line no-param-reassign rawBytes = $slice(rawBytes, 0, elementSize); if (!isLittleEndian) { - // eslint-disable-next-line no-param-reassign - rawBytes = $reverse(rawBytes); // step 2 + $reverse(rawBytes); // step 2 } - /* eslint no-redeclare: 1 */ if (type === 'Float32') { // step 3 - /* - Let value be the byte elements of rawBytes concatenated and interpreted as a little-endian bit string encoding of an IEEE 754-2008 binary32 value. -If value is an IEEE 754-2008 binary32 NaN value, return the NaN Number value. -Return the Number value that corresponds to value. - */ - var sign = (rawBytes[3] & 0x80) >> 7; // first bit - var exponent = ((rawBytes[3] & 0x7F) << 1) // 7 bits from index 3 - | ((rawBytes[2] & 0x80) >> 7); // 1 bit from index 2 - var mantissa = ((rawBytes[2] & 0x7F) << 16) // 7 bits from index 2 - | (rawBytes[1] << 8) // 8 bits from index 1 - | rawBytes[0]; // 8 bits from index 0 - - if (exponent === 0 && mantissa === 0) { - return sign === 0 ? 0 : -0; - } - if (exponent === 0xFF && mantissa === 0) { - return sign === 0 ? Infinity : -Infinity; - } - if (exponent === 0xFF && mantissa !== 0) { - return NaN; - } - - exponent -= 127; // subtract the bias - - // return $pow(-1, sign) * mantissa / $pow(2, 23) * $pow(2, exponent); - // return $pow(-1, sign) * (mantissa + 0x1000000) * $pow(2, exponent - 23); - return $pow(-1, sign) * (1 + (mantissa / $pow(2, 23))) * $pow(2, exponent); + return bytesAsFloat32(rawBytes); } if (type === 'Float64') { // step 4 - /* - Let value be the byte elements of rawBytes concatenated and interpreted as a little-endian bit string encoding of an IEEE 754-2008 binary64 value. -If value is an IEEE 754-2008 binary64 NaN value, return the NaN Number value. -Return the Number value that corresponds to value. - */ - var sign = rawBytes[7] & 0x80 ? -1 : 1; // first bit - var exponent = ((rawBytes[7] & 0x7F) << 4) // 7 bits from index 7 - | ((rawBytes[6] & 0xF0) >> 4); // 4 bits from index 6 - var mantissa = ((rawBytes[6] & 0x0F) * 0x1000000000000) // 4 bits from index 6 - + (rawBytes[5] * 0x10000000000) // 8 bits from index 5 - + (rawBytes[4] * 0x100000000) // 8 bits from index 4 - + (rawBytes[3] * 0x1000000) // 8 bits from index 3 - + (rawBytes[2] * 0x10000) // 8 bits from index 2 - + (rawBytes[1] * 0x100) // 8 bits from index 1 - + rawBytes[0]; // 8 bits from index 0 - - if (exponent === 0 && mantissa === 0) { - return sign * 0; - } - if (exponent === 0x7FF && mantissa !== 0) { - return NaN; - } - if (exponent === 0x7FF && mantissa === 0) { - return sign * Infinity; - } - - exponent -= 1023; // subtract the bias - - return sign * (mantissa + 0x10000000000000) * $pow(2, exponent - 52); + return bytesAsFloat64(rawBytes); } - // this is common to both branches - var intValue = isBigInt ? $BigInt(0) : 0; - for (var i = 0; i < rawBytes.length; i++) { - intValue |= isBigInt ? $BigInt(rawBytes[i]) << $BigInt(8 * i) : rawBytes[i] << (8 * i); - } - /* - Let intValue be the byte elements of rawBytes concatenated and interpreted as a bit string encoding of an unsigned little-endian binary number. - */ - - if (!IsUnsignedElementType(type)) { // steps 5-6 - // Let intValue be the byte elements of rawBytes concatenated and interpreted as a bit string encoding of a binary little-endian 2's complement number of bit length elementSize × 8. - var bitLength = elementSize * 8; - if (bitLength < 32) { - var x = isBigInt ? $BigInt(32 - bitLength) : 32 - bitLength; - intValue = (intValue << x) >> x; - } - } - - return intValue; // step 7 + return bytesAsInteger(rawBytes, elementSize, IsUnsignedElementType(type), isBigInt); }; diff --git a/node_modules/es-abstract/2021/RegExpExec.js b/node_modules/es-abstract/2021/RegExpExec.js index 29fee1720c..cf15207415 100644 --- a/node_modules/es-abstract/2021/RegExpExec.js +++ b/node_modules/es-abstract/2021/RegExpExec.js @@ -11,7 +11,7 @@ var Get = require('./Get'); var IsCallable = require('./IsCallable'); var Type = require('./Type'); -// https://ecma-international.org/ecma-262/6.0/#sec-regexpexec +// https://262.ecma-international.org/6.0/#sec-regexpexec module.exports = function RegExpExec(R, S) { if (Type(R) !== 'Object') { diff --git a/node_modules/es-abstract/2021/SameValueZero.js b/node_modules/es-abstract/2021/SameValueZero.js index bf1a1486a1..3e2851b5ee 100644 --- a/node_modules/es-abstract/2021/SameValueZero.js +++ b/node_modules/es-abstract/2021/SameValueZero.js @@ -2,7 +2,7 @@ var $isNaN = require('../helpers/isNaN'); -// https://ecma-international.org/ecma-262/6.0/#sec-samevaluezero +// https://262.ecma-international.org/6.0/#sec-samevaluezero module.exports = function SameValueZero(x, y) { return (x === y) || ($isNaN(x) && $isNaN(y)); diff --git a/node_modules/es-abstract/2021/Set.js b/node_modules/es-abstract/2021/Set.js index 0971498879..9697031363 100644 --- a/node_modules/es-abstract/2021/Set.js +++ b/node_modules/es-abstract/2021/Set.js @@ -18,7 +18,7 @@ var noThrowOnStrictViolation = (function () { } }()); -// https://ecma-international.org/ecma-262/6.0/#sec-set-o-p-v-throw +// https://262.ecma-international.org/6.0/#sec-set-o-p-v-throw module.exports = function Set(O, P, V, Throw) { if (Type(O) !== 'Object') { diff --git a/node_modules/es-abstract/2021/SetFunctionLength.js b/node_modules/es-abstract/2021/SetFunctionLength.js index 8c06b2423f..fbf9f2352a 100644 --- a/node_modules/es-abstract/2021/SetFunctionLength.js +++ b/node_modules/es-abstract/2021/SetFunctionLength.js @@ -7,10 +7,11 @@ var $TypeError = GetIntrinsic('%TypeError%'); var DefinePropertyOrThrow = require('./DefinePropertyOrThrow'); var HasOwnProperty = require('./HasOwnProperty'); var IsExtensible = require('./IsExtensible'); -var IsIntegralNumber = require('./IsIntegralNumber'); var Type = require('./Type'); -// https://ecma-international.org/ecma-262/12.0/#sec-setfunctionlength +var isInteger = require('../helpers/isInteger'); + +// https://262.ecma-international.org/12.0/#sec-setfunctionlength module.exports = function SetFunctionLength(F, length) { if (typeof F !== 'function' || !IsExtensible(F) || HasOwnProperty(F, 'length')) { @@ -19,7 +20,7 @@ module.exports = function SetFunctionLength(F, length) { if (Type(length) !== 'Number') { throw new $TypeError('Assertion failed: `length` must be a Number'); } - if (length !== Infinity && (!IsIntegralNumber(length) || length < 0)) { + if (length !== Infinity && (!isInteger(length) || length < 0)) { throw new $TypeError('Assertion failed: `length` must be ∞, or an integer >= 0'); } return DefinePropertyOrThrow(F, 'length', { diff --git a/node_modules/es-abstract/2021/SetFunctionName.js b/node_modules/es-abstract/2021/SetFunctionName.js index 03ec2227c7..f7fb0a9aab 100644 --- a/node_modules/es-abstract/2021/SetFunctionName.js +++ b/node_modules/es-abstract/2021/SetFunctionName.js @@ -12,7 +12,7 @@ var DefinePropertyOrThrow = require('./DefinePropertyOrThrow'); var IsExtensible = require('./IsExtensible'); var Type = require('./Type'); -// https://ecma-international.org/ecma-262/6.0/#sec-setfunctionname +// https://262.ecma-international.org/6.0/#sec-setfunctionname module.exports = function SetFunctionName(F, name) { if (typeof F !== 'function') { diff --git a/node_modules/es-abstract/2021/SetIntegrityLevel.js b/node_modules/es-abstract/2021/SetIntegrityLevel.js index 546f3e74f4..aaef85a0a2 100644 --- a/node_modules/es-abstract/2021/SetIntegrityLevel.js +++ b/node_modules/es-abstract/2021/SetIntegrityLevel.js @@ -15,7 +15,7 @@ var IsAccessorDescriptor = require('./IsAccessorDescriptor'); var ToPropertyDescriptor = require('./ToPropertyDescriptor'); var Type = require('./Type'); -// https://ecma-international.org/ecma-262/6.0/#sec-setintegritylevel +// https://262.ecma-international.org/6.0/#sec-setintegritylevel module.exports = function SetIntegrityLevel(O, level) { if (Type(O) !== 'Object') { diff --git a/node_modules/es-abstract/2021/SetTypedArrayFromArrayLike.js b/node_modules/es-abstract/2021/SetTypedArrayFromArrayLike.js new file mode 100644 index 0000000000..e425086eaa --- /dev/null +++ b/node_modules/es-abstract/2021/SetTypedArrayFromArrayLike.js @@ -0,0 +1,126 @@ +'use strict'; + +var GetIntrinsic = require('get-intrinsic'); + +var $RangeError = GetIntrinsic('%RangeError%'); +var $TypeError = GetIntrinsic('%TypeError%'); + +var isTypedArray = require('is-typed-array'); +var typedArrayBuffer = require('typed-array-buffer'); +var typedArrayByteOffset = require('typed-array-byte-offset'); +var typedArrayLength = require('typed-array-length'); +var whichTypedArray = require('which-typed-array'); + +var isInteger = require('../helpers/isInteger'); + +var Get = require('./Get'); +var IsDetachedBuffer = require('./IsDetachedBuffer'); +var LengthOfArrayLike = require('./LengthOfArrayLike'); +var SetValueInBuffer = require('./SetValueInBuffer'); +var ToBigInt = require('./ToBigInt'); +var ToNumber = require('./ToNumber'); +var ToObject = require('./ToObject'); +var ToString = require('./ToString'); + +var table60Sizes = { + __proto__: null, + $Int8Array: 1, + $Uint8Array: 1, + $Uint8ClampedArray: 1, + $Int16Array: 2, + $Uint16Array: 2, + $Int32Array: 4, + $Uint32Array: 4, + $BigInt64Array: 8, + $BigUint64Array: 8, + $Float32Array: 4, + $Float64Array: 8 +}; + +var table60Types = { + __proto__: null, + $Int8Array: 'Int8', + $Uint8Array: 'Uint8', + $Uint8ClampedArray: 'Uint8C', + $Int16Array: 'Int16', + $Uint16Array: 'Uint16', + $Int32Array: 'Int32', + $Uint32Array: 'Uint32', + $BigInt64Array: 'BigInt64', + $BigUint64Array: 'BigUint64', + $Float32Array: 'Float32', + $Float64Array: 'Float64' +}; + +// https://262.ecma-international.org/12.0/#sec-settypedarrayfromarraylike + +module.exports = function SetTypedArrayFromArrayLike(target, targetOffset, source) { + var whichTarget = whichTypedArray(target); + if (!whichTarget) { + throw new $TypeError('Assertion failed: target must be a TypedArray instance'); + } + + if (targetOffset !== Infinity && (!isInteger(targetOffset) || targetOffset < 0)) { + throw new $TypeError('Assertion failed: targetOffset must be a non-negative integer or +Infinity'); + } + + if (isTypedArray(source)) { + throw new $TypeError('Assertion failed: source must not be a TypedArray instance'); // step 1 + } + + var targetBuffer = typedArrayBuffer(target); // step 2 + + if (IsDetachedBuffer(targetBuffer)) { + throw new $TypeError('target’s buffer is detached'); // step 3 + } + + var targetLength = typedArrayLength(target); // step 4 + + var targetName = whichTarget; // step 5 + + var targetElementSize = table60Sizes['$' + targetName]; // step 6 + + var targetType = table60Types['$' + targetName]; // step 7 + + var targetByteOffset = typedArrayByteOffset(target); // step 8 + + var src = ToObject(source); // step 9 + + var srcLength = LengthOfArrayLike(src); // step 10 + + if (targetOffset === Infinity) { + throw new $RangeError('targetOffset must be a finite integer'); // step 11 + } + + if (srcLength + targetOffset > targetLength) { + throw new $RangeError('targetOffset + srcLength must be <= target.length'); // step 12 + } + + var targetByteIndex = (targetOffset * targetElementSize) + targetByteOffset; // step 13 + + var k = 0; // step 14 + + var limit = targetByteIndex + (targetElementSize * srcLength); // step 15 + + while (targetByteIndex < limit) { // step 16 + var Pk = ToString(k); // step 16.a + + var value = Get(src, Pk); // step 16.b + + if (targetType === 'BigInt64' || targetType === 'BigUint64') { + value = ToBigInt(value); // step 16.c + } else { + value = ToNumber(value); // step 16.d + } + + if (IsDetachedBuffer(targetBuffer)) { + throw new $TypeError('target’s buffer is detached'); // step 16.e + } + + SetValueInBuffer(targetBuffer, targetByteIndex, targetType, value, true, 'Unordered'); // step 16.f + + k += 1; // step 16.g + + targetByteIndex += targetElementSize; // step 16.h + } +}; diff --git a/node_modules/es-abstract/2021/SetTypedArrayFromTypedArray.js b/node_modules/es-abstract/2021/SetTypedArrayFromTypedArray.js new file mode 100644 index 0000000000..a22891ef1c --- /dev/null +++ b/node_modules/es-abstract/2021/SetTypedArrayFromTypedArray.js @@ -0,0 +1,167 @@ +'use strict'; + +var GetIntrinsic = require('get-intrinsic'); + +var $RangeError = GetIntrinsic('%RangeError%'); +var $SyntaxError = GetIntrinsic('%SyntaxError%'); +var $TypeError = GetIntrinsic('%TypeError%'); +var $ArrayBuffer = GetIntrinsic('%ArrayBuffer%', true); + +var typedArrayBuffer = require('typed-array-buffer'); +var typedArrayByteLength = require('typed-array-byte-length'); +var typedArrayByteOffset = require('typed-array-byte-offset'); +var typedArrayLength = require('typed-array-length'); +var whichTypedArray = require('which-typed-array'); + +var isInteger = require('../helpers/isInteger'); + +var CloneArrayBuffer = require('./CloneArrayBuffer'); +var GetValueFromBuffer = require('./GetValueFromBuffer'); +var IsDetachedBuffer = require('./IsDetachedBuffer'); +var IsSharedArrayBuffer = require('./IsSharedArrayBuffer'); +var SameValue = require('./SameValue'); +var SetValueInBuffer = require('./SetValueInBuffer'); + +var table60Sizes = { + __proto__: null, + $Int8Array: 1, + $Uint8Array: 1, + $Uint8ClampedArray: 1, + $Int16Array: 2, + $Uint16Array: 2, + $Int32Array: 4, + $Uint32Array: 4, + $BigInt64Array: 8, + $BigUint64Array: 8, + $Float32Array: 4, + $Float64Array: 8 +}; + +var table60Types = { + __proto__: null, + $Int8Array: 'Int8', + $Uint8Array: 'Uint8', + $Uint8ClampedArray: 'Uint8C', + $Int16Array: 'Int16', + $Uint16Array: 'Uint16', + $Int32Array: 'Int32', + $Uint32Array: 'Uint32', + $BigInt64Array: 'BigInt64', + $BigUint64Array: 'BigUint64', + $Float32Array: 'Float32', + $Float64Array: 'Float64' +}; + +// https://262.ecma-international.org/12.0/#sec-settypedarrayfromtypedarray + +module.exports = function SetTypedArrayFromTypedArray(target, targetOffset, source) { + var whichTarget = whichTypedArray(target); + if (!whichTarget) { + throw new $TypeError('Assertion failed: target must be a TypedArray instance'); + } + + if (targetOffset !== Infinity && (!isInteger(targetOffset) || targetOffset < 0)) { + throw new $TypeError('Assertion failed: targetOffset must be a non-negative integer or +Infinity'); + } + + var whichSource = whichTypedArray(source); + if (!whichSource) { + throw new $TypeError('Assertion failed: source must be a TypedArray instance'); // step 1 + } + + var targetBuffer = typedArrayBuffer(target); // step 2 + + if (IsDetachedBuffer(targetBuffer)) { + throw new $TypeError('target’s buffer is detached'); // step 3 + } + + var targetLength = typedArrayLength(target); // step 4 + + var srcBuffer = typedArrayBuffer(source); // step 5 + + if (IsDetachedBuffer(srcBuffer)) { + throw new $TypeError('source’s buffer is detached'); // step 6 + } + + var targetName = whichTarget; // step 7 + + var targetType = table60Types['$' + targetName]; // step 8 + + var targetElementSize = table60Sizes['$' + targetName]; // step 9 + + var targetByteOffset = typedArrayByteOffset(target); // step 10 + + var srcName = whichSource; // step 11 + + var srcType = table60Types['$' + srcName]; // step 12 + + var srcElementSize = table60Sizes['$' + srcName]; // step 13 + + var srcLength = typedArrayLength(source); // step 14 + + var srcByteOffset = typedArrayByteOffset(source); // step 15 + + if (targetOffset === Infinity) { + throw new $RangeError('targetOffset must be a non-negative integer or +Infinity'); // step 16 + } + + if (srcLength + targetOffset > targetLength) { + throw new $RangeError('targetOffset + source.length must not be greater than target.length'); // step 17 + } + + var targetContentType = whichTarget === 'BigInt64Array' || whichTarget === 'BigUint64Array' ? 'BigInt' : 'Number'; + var sourceContentType = whichSource === 'BigInt64Array' || whichSource === 'BigUint64Array' ? 'BigInt' : 'Number'; + if (targetContentType !== sourceContentType) { + throw new $TypeError('source and target must have the same content type'); // step 18 + } + + var same; + if (IsSharedArrayBuffer(srcBuffer) && IsSharedArrayBuffer(targetBuffer)) { // step 19 + // a. If srcBuffer.[[ArrayBufferData]] and targetBuffer.[[ArrayBufferData]] are the same Shared Data Block values, let same be true; else let same be false. + throw new $SyntaxError('SharedArrayBuffer is not supported by this implementation'); + } else { + same = SameValue(srcBuffer, targetBuffer); // step 20 + } + + var srcByteIndex; + if (same) { // step 21 + var srcByteLength = typedArrayByteLength(source); // step 21.a + + srcBuffer = CloneArrayBuffer(srcBuffer, srcByteOffset, srcByteLength, $ArrayBuffer); // step 21.b + + // c. NOTE: %ArrayBuffer% is used to clone srcBuffer because is it known to not have any observable side-effects. + + srcByteIndex = 0; // step 21.d + } else { + srcByteIndex = srcByteOffset; // step 22 + } + + var targetByteIndex = (targetOffset * targetElementSize) + targetByteOffset; // step 23 + + var limit = targetByteIndex + (targetElementSize * srcLength); // step 24 + + var value; + if (srcType === targetType) { // step 25 + // a. NOTE: If srcType and targetType are the same, the transfer must be performed in a manner that preserves the bit-level encoding of the source data. + + while (targetByteIndex < limit) { // step 25.b + value = GetValueFromBuffer(srcBuffer, srcByteIndex, 'Uint8', true, 'Unordered'); // step 25.b.i + + SetValueInBuffer(targetBuffer, targetByteIndex, 'Uint8', value, true, 'Unordered'); // step 25.b.ii + + srcByteIndex += 1; // step 25.b.iii + + targetByteIndex += 1; // step 25.b.iv + } + } else { // step 26 + while (targetByteIndex < limit) { // step 26.a + value = GetValueFromBuffer(srcBuffer, srcByteIndex, srcType, true, 'Unordered'); // step 26.a.i + + SetValueInBuffer(targetBuffer, targetByteIndex, targetType, value, true, 'Unordered'); // step 26.a.ii + + srcByteIndex += srcElementSize; // step 26.a.iii + + targetByteIndex += targetElementSize; // step 26.a.iv + } + } +}; diff --git a/node_modules/es-abstract/2021/SetValueInBuffer.js b/node_modules/es-abstract/2021/SetValueInBuffer.js new file mode 100644 index 0000000000..39b0be00e1 --- /dev/null +++ b/node_modules/es-abstract/2021/SetValueInBuffer.js @@ -0,0 +1,105 @@ +'use strict'; + +var GetIntrinsic = require('get-intrinsic'); + +var $SyntaxError = GetIntrinsic('%SyntaxError%'); +var $TypeError = GetIntrinsic('%TypeError%'); + +var isInteger = require('../helpers/isInteger'); + +var IsBigIntElementType = require('./IsBigIntElementType'); +var IsDetachedBuffer = require('./IsDetachedBuffer'); +var NumericToRawBytes = require('./NumericToRawBytes'); + +var isArrayBuffer = require('is-array-buffer'); +var isSharedArrayBuffer = require('is-shared-array-buffer'); +var has = require('has'); + +var table60 = { + __proto__: null, + Int8: 1, + Uint8: 1, + Uint8C: 1, + Int16: 2, + Uint16: 2, + Int32: 4, + Uint32: 4, + BigInt64: 8, + BigUint64: 8, + Float32: 4, + Float64: 8 +}; + +var defaultEndianness = require('../helpers/defaultEndianness'); +var forEach = require('../helpers/forEach'); + +// https://262.ecma-international.org/12.0/#sec-setvalueinbuffer + +/* eslint max-params: 0 */ + +module.exports = function SetValueInBuffer(arrayBuffer, byteIndex, type, value, isTypedArray, order) { + var isSAB = isSharedArrayBuffer(arrayBuffer); + if (!isArrayBuffer(arrayBuffer) && !isSAB) { + throw new $TypeError('Assertion failed: `arrayBuffer` must be an ArrayBuffer or a SharedArrayBuffer'); + } + + if (!isInteger(byteIndex) || byteIndex < 0) { + throw new $TypeError('Assertion failed: `byteIndex` must be a non-negative integer'); + } + + if (typeof type !== 'string' || !has(table60, type)) { + throw new $TypeError('Assertion failed: `type` must be a Typed Array Element Type'); + } + + if (typeof value !== 'number' && typeof value !== 'bigint') { + throw new $TypeError('Assertion failed: `value` must be a Number or a BigInt'); + } + + if (typeof isTypedArray !== 'boolean') { + throw new $TypeError('Assertion failed: `isTypedArray` must be a boolean'); + } + if (order !== 'SeqCst' && order !== 'Unordered' && order !== 'Init') { + throw new $TypeError('Assertion failed: `order` must be `"SeqCst"`, `"Unordered"`, or `"Init"`'); + } + + if (arguments.length > 6 && typeof arguments[6] !== 'boolean') { + throw new $TypeError('Assertion failed: `isLittleEndian` must be a boolean, if present'); + } + + if (IsDetachedBuffer(arrayBuffer)) { + throw new $TypeError('Assertion failed: ArrayBuffer is detached'); // step 1 + } + + // 2. Assert: There are sufficient bytes in arrayBuffer starting at byteIndex to represent a value of type. + + if (IsBigIntElementType(type) ? typeof value !== 'bigint' : typeof value !== 'number') { // step 3 + throw new $TypeError('Assertion failed: `value` must be a BigInt if type is BigInt64 or BigUint64, otherwise a Number'); + } + + // 4. Let block be arrayBuffer’s [[ArrayBufferData]] internal slot. + + var elementSize = table60[type]; // step 5 + + // 6. If isLittleEndian is not present, set isLittleEndian to either true or false. The choice is implementation dependent and should be the alternative that is most efficient for the implementation. An implementation must use the same value each time this step is executed and the same value must be used for the corresponding step in the GetValueFromBuffer abstract operation. + var isLittleEndian = arguments.length > 6 ? arguments[6] : defaultEndianness === 'little'; // step 6 + + var rawBytes = NumericToRawBytes(type, value, isLittleEndian); // step 7 + + if (isSAB) { // step 8 + /* + Let execution be the [[CandidateExecution]] field of the surrounding agent's Agent Record. + Let eventList be the [[EventList]] field of the element in execution.[[EventsRecords]] whose [[AgentSignifier]] is AgentSignifier(). + If isTypedArray is true and IsNoTearConfiguration(type, order) is true, let noTear be true; otherwise let noTear be false. + Append WriteSharedMemory { [[Order]]: order, [[NoTear]]: noTear, [[Block]]: block, [[ByteIndex]]: byteIndex, [[ElementSize]]: elementSize, [[Payload]]: rawBytes } to eventList. + */ + throw new $SyntaxError('SharedArrayBuffer is not supported by this implementation'); + } else { + // 9. Store the individual bytes of rawBytes into block, in order, starting at block[byteIndex]. + var arr = new Uint8Array(arrayBuffer, byteIndex, elementSize); + forEach(rawBytes, function (rawByte, i) { + arr[i] = rawByte; + }); + } + + // 10. Return NormalCompletion(undefined). +}; diff --git a/node_modules/es-abstract/2021/SpeciesConstructor.js b/node_modules/es-abstract/2021/SpeciesConstructor.js index 491eb9b87d..1937b9c9cd 100644 --- a/node_modules/es-abstract/2021/SpeciesConstructor.js +++ b/node_modules/es-abstract/2021/SpeciesConstructor.js @@ -8,7 +8,7 @@ var $TypeError = GetIntrinsic('%TypeError%'); var IsConstructor = require('./IsConstructor'); var Type = require('./Type'); -// https://ecma-international.org/ecma-262/6.0/#sec-speciesconstructor +// https://262.ecma-international.org/6.0/#sec-speciesconstructor module.exports = function SpeciesConstructor(O, defaultConstructor) { if (Type(O) !== 'Object') { diff --git a/node_modules/es-abstract/2021/SplitMatch.js b/node_modules/es-abstract/2021/SplitMatch.js index a1bc6c4d5d..a21cde6450 100644 --- a/node_modules/es-abstract/2021/SplitMatch.js +++ b/node_modules/es-abstract/2021/SplitMatch.js @@ -5,18 +5,19 @@ var callBound = require('call-bind/callBound'); var $TypeError = GetIntrinsic('%TypeError%'); -var IsIntegralNumber = require('./IsIntegralNumber'); var Type = require('./Type'); +var isInteger = require('../helpers/isInteger'); + var $charAt = callBound('String.prototype.charAt'); -// https://262.ecma-international.org/6.0/#sec-splitmatch +// https://262.ecma-international.org/12.0/#sec-splitmatch module.exports = function SplitMatch(S, q, R) { if (Type(S) !== 'String') { throw new $TypeError('Assertion failed: `S` must be a String'); } - if (!IsIntegralNumber(q)) { + if (!isInteger(q)) { throw new $TypeError('Assertion failed: `q` must be an integer'); } if (Type(R) !== 'String') { @@ -25,12 +26,12 @@ module.exports = function SplitMatch(S, q, R) { var r = R.length; var s = S.length; if (q + r > s) { - return false; + return 'not-matched'; } for (var i = 0; i < r; i += 1) { if ($charAt(S, q + i) !== $charAt(R, i)) { - return false; + return 'not-matched'; } } diff --git a/node_modules/es-abstract/2021/StringGetOwnProperty.js b/node_modules/es-abstract/2021/StringGetOwnProperty.js index ecffb0b773..579bb9556d 100644 --- a/node_modules/es-abstract/2021/StringGetOwnProperty.js +++ b/node_modules/es-abstract/2021/StringGetOwnProperty.js @@ -15,7 +15,7 @@ var Type = require('./Type'); var isNegativeZero = require('is-negative-zero'); -// https://ecma-international.org/ecma-262/12.0/#sec-stringgetownproperty +// https://262.ecma-international.org/12.0/#sec-stringgetownproperty module.exports = function StringGetOwnProperty(S, P) { var str; diff --git a/node_modules/es-abstract/2021/StringIndexOf.js b/node_modules/es-abstract/2021/StringIndexOf.js index 371d5aa389..2f6944d156 100644 --- a/node_modules/es-abstract/2021/StringIndexOf.js +++ b/node_modules/es-abstract/2021/StringIndexOf.js @@ -5,12 +5,13 @@ var callBound = require('call-bind/callBound'); var $TypeError = GetIntrinsic('%TypeError%'); -var IsIntegralNumber = require('./IsIntegralNumber'); var Type = require('./Type'); +var isInteger = require('../helpers/isInteger'); + var $slice = callBound('String.prototype.slice'); -// https://ecma-international.org/ecma-262/12.0/#sec-stringindexof +// https://262.ecma-international.org/12.0/#sec-stringindexof module.exports = function StringIndexOf(string, searchValue, fromIndex) { if (Type(string) !== 'String') { @@ -19,7 +20,7 @@ module.exports = function StringIndexOf(string, searchValue, fromIndex) { if (Type(searchValue) !== 'String') { throw new $TypeError('Assertion failed: `searchValue` must be a String'); } - if (!IsIntegralNumber(fromIndex) || fromIndex < 0) { + if (!isInteger(fromIndex) || fromIndex < 0) { throw new $TypeError('Assertion failed: `fromIndex` must be a non-negative integer'); } diff --git a/node_modules/es-abstract/2021/StringToCodePoints.js b/node_modules/es-abstract/2021/StringToCodePoints.js index 336bd06fb8..f503ce1b47 100644 --- a/node_modules/es-abstract/2021/StringToCodePoints.js +++ b/node_modules/es-abstract/2021/StringToCodePoints.js @@ -11,7 +11,7 @@ var $push = callBound('Array.prototype.push'); var CodePointAt = require('./CodePointAt'); var Type = require('./Type'); -// https://ecma-international.org/ecma-262/12.0/#sec-stringtocodepoints +// https://262.ecma-international.org/12.0/#sec-stringtocodepoints module.exports = function StringToCodePoints(string) { if (Type(string) !== 'String') { diff --git a/node_modules/es-abstract/2021/SymbolDescriptiveString.js b/node_modules/es-abstract/2021/SymbolDescriptiveString.js index 1efd1316b2..89c253ffae 100644 --- a/node_modules/es-abstract/2021/SymbolDescriptiveString.js +++ b/node_modules/es-abstract/2021/SymbolDescriptiveString.js @@ -10,7 +10,7 @@ var $SymbolToString = callBound('Symbol.prototype.toString', true); var Type = require('./Type'); -// https://ecma-international.org/ecma-262/6.0/#sec-symboldescriptivestring +// https://262.ecma-international.org/6.0/#sec-symboldescriptivestring module.exports = function SymbolDescriptiveString(sym) { if (Type(sym) !== 'Symbol') { diff --git a/node_modules/es-abstract/2021/TestIntegrityLevel.js b/node_modules/es-abstract/2021/TestIntegrityLevel.js index 7f95a6e1d4..7cefab7017 100644 --- a/node_modules/es-abstract/2021/TestIntegrityLevel.js +++ b/node_modules/es-abstract/2021/TestIntegrityLevel.js @@ -13,7 +13,7 @@ var IsExtensible = require('./IsExtensible'); var ToPropertyDescriptor = require('./ToPropertyDescriptor'); var Type = require('./Type'); -// https://ecma-international.org/ecma-262/6.0/#sec-testintegritylevel +// https://262.ecma-international.org/6.0/#sec-testintegritylevel module.exports = function TestIntegrityLevel(O, level) { if (Type(O) !== 'Object') { diff --git a/node_modules/es-abstract/2021/ToBigInt.js b/node_modules/es-abstract/2021/ToBigInt.js index aa24d7b713..d24e0fff09 100644 --- a/node_modules/es-abstract/2021/ToBigInt.js +++ b/node_modules/es-abstract/2021/ToBigInt.js @@ -3,12 +3,15 @@ var GetIntrinsic = require('get-intrinsic'); var $BigInt = GetIntrinsic('%BigInt%', true); -var $asIntN = GetIntrinsic('%BigInt.asIntN%', true); var $Number = GetIntrinsic('%Number%'); +var $TypeError = GetIntrinsic('%TypeError%'); var $SyntaxError = GetIntrinsic('%SyntaxError%'); +var StringToBigInt = require('./StringToBigInt'); var ToPrimitive = require('./ToPrimitive'); +var isNaN = require('../helpers/isNaN'); + // https://262.ecma-international.org/11.0/#sec-tobigint module.exports = function ToBigInt(argument) { @@ -18,8 +21,33 @@ module.exports = function ToBigInt(argument) { var prim = ToPrimitive(argument, $Number); + if (prim == null) { + throw new $TypeError('Cannot convert null or undefined to a BigInt'); + } + + if (typeof prim === 'boolean') { + return prim ? $BigInt(1) : $BigInt(0); + } + if (typeof prim === 'number') { - return $asIntN(0, prim); + throw new $TypeError('Cannot convert a Number value to a BigInt'); + } + + if (typeof prim === 'string') { + var n = StringToBigInt(prim); + if (isNaN(n)) { + throw new $TypeError('Failed to parse String to BigInt'); + } + return n; + } + + if (typeof prim === 'symbol') { + throw new $TypeError('Cannot convert a Symbol value to a BigInt'); } - return $BigInt(prim); + + if (typeof prim !== 'bigint') { + throw new $SyntaxError('Assertion failed: unknown primitive type'); + } + + return prim; }; diff --git a/node_modules/es-abstract/2021/ToDateString.js b/node_modules/es-abstract/2021/ToDateString.js index e636a9ba68..dabb2bb38a 100644 --- a/node_modules/es-abstract/2021/ToDateString.js +++ b/node_modules/es-abstract/2021/ToDateString.js @@ -4,12 +4,13 @@ var GetIntrinsic = require('get-intrinsic'); var $TypeError = GetIntrinsic('%TypeError%'); var $Date = GetIntrinsic('%Date%'); +var $String = GetIntrinsic('%String%'); var $isNaN = require('../helpers/isNaN'); var Type = require('./Type'); -// https://ecma-international.org/ecma-262/6.0/#sec-todatestring +// https://262.ecma-international.org/6.0/#sec-todatestring module.exports = function ToDateString(tv) { if (Type(tv) !== 'Number') { @@ -18,5 +19,5 @@ module.exports = function ToDateString(tv) { if ($isNaN(tv)) { return 'Invalid Date'; } - return $Date(tv); + return $String(new $Date(tv)); }; diff --git a/node_modules/es-abstract/2021/ToIndex.js b/node_modules/es-abstract/2021/ToIndex.js index cc747e2252..2343b44f32 100644 --- a/node_modules/es-abstract/2021/ToIndex.js +++ b/node_modules/es-abstract/2021/ToIndex.js @@ -8,7 +8,7 @@ var ToIntegerOrInfinity = require('./ToIntegerOrInfinity'); var ToLength = require('./ToLength'); var SameValue = require('./SameValue'); -// https://www.ecma-international.org/ecma-262/8.0/#sec-toindex +// https://262.ecma-international.org/8.0/#sec-toindex module.exports = function ToIndex(value) { if (typeof value === 'undefined') { diff --git a/node_modules/es-abstract/2021/ToInt16.js b/node_modules/es-abstract/2021/ToInt16.js index cb8e7934bb..21694bdeb9 100644 --- a/node_modules/es-abstract/2021/ToInt16.js +++ b/node_modules/es-abstract/2021/ToInt16.js @@ -2,7 +2,7 @@ var ToUint16 = require('./ToUint16'); -// https://ecma-international.org/ecma-262/6.0/#sec-toint16 +// https://262.ecma-international.org/6.0/#sec-toint16 module.exports = function ToInt16(argument) { var int16bit = ToUint16(argument); diff --git a/node_modules/es-abstract/2021/ToInt8.js b/node_modules/es-abstract/2021/ToInt8.js index bc452d826f..e223b6c1d3 100644 --- a/node_modules/es-abstract/2021/ToInt8.js +++ b/node_modules/es-abstract/2021/ToInt8.js @@ -2,7 +2,7 @@ var ToUint8 = require('./ToUint8'); -// https://ecma-international.org/ecma-262/6.0/#sec-toint8 +// https://262.ecma-international.org/6.0/#sec-toint8 module.exports = function ToInt8(argument) { var int8bit = ToUint8(argument); diff --git a/node_modules/es-abstract/2021/ToNumber.js b/node_modules/es-abstract/2021/ToNumber.js index c9e29f2c48..72853a986e 100644 --- a/node_modules/es-abstract/2021/ToNumber.js +++ b/node_modules/es-abstract/2021/ToNumber.js @@ -19,22 +19,11 @@ var nonWS = ['\u0085', '\u200b', '\ufffe'].join(''); var nonWSregex = new $RegExp('[' + nonWS + ']', 'g'); var hasNonWS = regexTester(nonWSregex); -// whitespace from: https://es5.github.io/#x15.5.4.20 -// implementation from https://github.com/es-shims/es5-shim/blob/v3.4.0/es5-shim.js#L1304-L1324 -var ws = [ - '\x09\x0A\x0B\x0C\x0D\x20\xA0\u1680\u180E\u2000\u2001\u2002\u2003', - '\u2004\u2005\u2006\u2007\u2008\u2009\u200A\u202F\u205F\u3000\u2028', - '\u2029\uFEFF' -].join(''); -var trimRegex = new RegExp('(^[' + ws + ']+)|([' + ws + ']+$)', 'g'); -var $replace = callBound('String.prototype.replace'); -var $trim = function (value) { - return $replace(value, trimRegex, ''); -}; +var $trim = require('string.prototype.trim'); var ToPrimitive = require('./ToPrimitive'); -// https://ecma-international.org/ecma-262/6.0/#sec-tonumber +// https://262.ecma-international.org/6.0/#sec-tonumber module.exports = function ToNumber(argument) { var value = isPrimitive(argument) ? argument : ToPrimitive(argument, $Number); diff --git a/node_modules/es-abstract/2021/ToNumeric.js b/node_modules/es-abstract/2021/ToNumeric.js index c187760941..140adb3975 100644 --- a/node_modules/es-abstract/2021/ToNumeric.js +++ b/node_modules/es-abstract/2021/ToNumeric.js @@ -10,7 +10,7 @@ var ToPrimitive = require('./ToPrimitive'); var ToNumber = require('./ToNumber'); var Type = require('./Type'); -// https://262.ecma-international.org/6.0/#sec-tonumber +// https://262.ecma-international.org/11.0/#sec-tonumeric module.exports = function ToNumeric(argument) { var primValue = isPrimitive(argument) ? argument : ToPrimitive(argument, $Number); diff --git a/node_modules/es-abstract/2021/ToObject.js b/node_modules/es-abstract/2021/ToObject.js index cb26bac064..26a007cead 100644 --- a/node_modules/es-abstract/2021/ToObject.js +++ b/node_modules/es-abstract/2021/ToObject.js @@ -6,7 +6,7 @@ var $Object = GetIntrinsic('%Object%'); var RequireObjectCoercible = require('./RequireObjectCoercible'); -// https://ecma-international.org/ecma-262/6.0/#sec-toobject +// https://262.ecma-international.org/6.0/#sec-toobject module.exports = function ToObject(value) { RequireObjectCoercible(value); diff --git a/node_modules/es-abstract/2021/ToPrimitive.js b/node_modules/es-abstract/2021/ToPrimitive.js index 0fbe9b8076..56bcf1aa9e 100644 --- a/node_modules/es-abstract/2021/ToPrimitive.js +++ b/node_modules/es-abstract/2021/ToPrimitive.js @@ -2,7 +2,7 @@ var toPrimitive = require('es-to-primitive/es2015'); -// https://ecma-international.org/ecma-262/6.0/#sec-toprimitive +// https://262.ecma-international.org/6.0/#sec-toprimitive module.exports = function ToPrimitive(input) { if (arguments.length > 1) { diff --git a/node_modules/es-abstract/2021/ToPropertyKey.js b/node_modules/es-abstract/2021/ToPropertyKey.js index fc1bf7d862..e363cd93b1 100644 --- a/node_modules/es-abstract/2021/ToPropertyKey.js +++ b/node_modules/es-abstract/2021/ToPropertyKey.js @@ -7,7 +7,7 @@ var $String = GetIntrinsic('%String%'); var ToPrimitive = require('./ToPrimitive'); var ToString = require('./ToString'); -// https://ecma-international.org/ecma-262/6.0/#sec-topropertykey +// https://262.ecma-international.org/6.0/#sec-topropertykey module.exports = function ToPropertyKey(argument) { var key = ToPrimitive(argument, $String); diff --git a/node_modules/es-abstract/2021/ToString.js b/node_modules/es-abstract/2021/ToString.js index 4d494e1e23..d86aed4ce8 100644 --- a/node_modules/es-abstract/2021/ToString.js +++ b/node_modules/es-abstract/2021/ToString.js @@ -5,7 +5,7 @@ var GetIntrinsic = require('get-intrinsic'); var $String = GetIntrinsic('%String%'); var $TypeError = GetIntrinsic('%TypeError%'); -// https://ecma-international.org/ecma-262/6.0/#sec-tostring +// https://262.ecma-international.org/6.0/#sec-tostring module.exports = function ToString(argument) { if (typeof argument === 'symbol') { diff --git a/node_modules/es-abstract/2021/ToUint8.js b/node_modules/es-abstract/2021/ToUint8.js index 2dfd97cb34..6e4e4b5add 100644 --- a/node_modules/es-abstract/2021/ToUint8.js +++ b/node_modules/es-abstract/2021/ToUint8.js @@ -10,7 +10,7 @@ var abs = require('./abs'); var floor = require('./floor'); var modulo = require('./modulo'); -// https://ecma-international.org/ecma-262/6.0/#sec-touint8 +// https://262.ecma-international.org/6.0/#sec-touint8 module.exports = function ToUint8(argument) { var number = ToNumber(argument); diff --git a/node_modules/es-abstract/2021/ToUint8Clamp.js b/node_modules/es-abstract/2021/ToUint8Clamp.js index b0b8ce8ed3..3ba2fd7119 100644 --- a/node_modules/es-abstract/2021/ToUint8Clamp.js +++ b/node_modules/es-abstract/2021/ToUint8Clamp.js @@ -5,13 +5,13 @@ var floor = require('./floor'); var $isNaN = require('../helpers/isNaN'); -// https://ecma-international.org/ecma-262/6.0/#sec-touint8clamp +// https://262.ecma-international.org/6.0/#sec-touint8clamp module.exports = function ToUint8Clamp(argument) { var number = ToNumber(argument); if ($isNaN(number) || number <= 0) { return 0; } if (number >= 0xFF) { return 0xFF; } - var f = floor(argument); + var f = floor(number); if (f + 0.5 < number) { return f + 1; } if (number < f + 0.5) { return f; } if (f % 2 !== 0) { return f + 1; } diff --git a/node_modules/es-abstract/2021/TypedArrayCreate.js b/node_modules/es-abstract/2021/TypedArrayCreate.js new file mode 100644 index 0000000000..ef9fbe2599 --- /dev/null +++ b/node_modules/es-abstract/2021/TypedArrayCreate.js @@ -0,0 +1,50 @@ +'use strict'; + +var GetIntrinsic = require('get-intrinsic'); + +var $SyntaxError = GetIntrinsic('%SyntaxError%'); +var $TypeError = GetIntrinsic('%TypeError%'); + +var IsArray = require('./IsArray'); +var IsConstructor = require('./IsConstructor'); +var Type = require('./Type'); +var ValidateTypedArray = require('./ValidateTypedArray'); + +var availableTypedArrays = require('available-typed-arrays')(); +var typedArrayLength = require('typed-array-length'); + +// https://262.ecma-international.org/7.0/#typedarray-create + +module.exports = function TypedArrayCreate(constructor, argumentList) { + if (!IsConstructor(constructor)) { + throw new $TypeError('Assertion failed: `constructor` must be a constructor'); + } + if (!IsArray(argumentList)) { + throw new $TypeError('Assertion failed: `argumentList` must be a List'); + } + if (availableTypedArrays.length === 0) { + throw new $SyntaxError('Assertion failed: Typed Arrays are not supported in this environment'); + } + + // var newTypedArray = Construct(constructor, argumentList); // step 1 + var newTypedArray; + if (argumentList.length === 0) { + newTypedArray = new constructor(); + } else if (argumentList.length === 1) { + newTypedArray = new constructor(argumentList[0]); + } else if (argumentList.length === 2) { + newTypedArray = new constructor(argumentList[0], argumentList[1]); + } else { + newTypedArray = new constructor(argumentList[0], argumentList[1], argumentList[2]); + } + + ValidateTypedArray(newTypedArray); // step 2 + + if (argumentList.length === 1 && Type(argumentList[0]) === 'Number') { // step 3 + if (typedArrayLength(newTypedArray) < argumentList[0]) { + throw new $TypeError('Assertion failed: `argumentList[0]` must be <= `newTypedArray.length`'); // step 3.a + } + } + + return newTypedArray; // step 4 +}; diff --git a/node_modules/es-abstract/2021/TypedArraySpeciesCreate.js b/node_modules/es-abstract/2021/TypedArraySpeciesCreate.js new file mode 100644 index 0000000000..1cf8755acc --- /dev/null +++ b/node_modules/es-abstract/2021/TypedArraySpeciesCreate.js @@ -0,0 +1,39 @@ +'use strict'; + +var GetIntrinsic = require('get-intrinsic'); + +var $SyntaxError = GetIntrinsic('%SyntaxError%'); +var $TypeError = GetIntrinsic('%TypeError%'); + +var whichTypedArray = require('which-typed-array'); +var availableTypedArrays = require('available-typed-arrays')(); + +var IsArray = require('./IsArray'); +var SpeciesConstructor = require('./SpeciesConstructor'); +var TypedArrayCreate = require('./TypedArrayCreate'); + +var getConstructor = require('../helpers/typedArrayContructors'); + +// https://262.ecma-international.org/7.0/#typedarray-species-create + +module.exports = function TypedArraySpeciesCreate(exemplar, argumentList) { + if (availableTypedArrays.length === 0) { + throw new $SyntaxError('Assertion failed: Typed Arrays are not supported in this environment'); + } + + var kind = whichTypedArray(exemplar); + if (!kind) { + throw new $TypeError('Assertion failed: exemplar must be a TypedArray'); // step 1 + } + if (!IsArray(argumentList)) { + throw new $TypeError('Assertion failed: `argumentList` must be a List'); // step 1 + } + + var defaultConstructor = getConstructor(kind); // step 2 + if (typeof defaultConstructor !== 'function') { + throw new $SyntaxError('Assertion failed: `constructor` of `exemplar` (' + kind + ') must exist. Please report this!'); + } + var constructor = SpeciesConstructor(exemplar, defaultConstructor); // step 3 + + return TypedArrayCreate(constructor, argumentList); // step 4 +}; diff --git a/node_modules/es-abstract/2021/UTF16EncodeCodePoint.js b/node_modules/es-abstract/2021/UTF16EncodeCodePoint.js index 0c7fb11e05..0af67bc12e 100644 --- a/node_modules/es-abstract/2021/UTF16EncodeCodePoint.js +++ b/node_modules/es-abstract/2021/UTF16EncodeCodePoint.js @@ -10,7 +10,7 @@ var modulo = require('./modulo'); var isCodePoint = require('../helpers/isCodePoint'); -// https://ecma-international.org/ecma-262/12.0/#sec-utf16encoding +// https://262.ecma-international.org/12.0/#sec-utf16encoding module.exports = function UTF16EncodeCodePoint(cp) { if (!isCodePoint(cp)) { diff --git a/node_modules/es-abstract/2021/ValidateAndApplyPropertyDescriptor.js b/node_modules/es-abstract/2021/ValidateAndApplyPropertyDescriptor.js index a7fd218ad5..134b2d5c36 100644 --- a/node_modules/es-abstract/2021/ValidateAndApplyPropertyDescriptor.js +++ b/node_modules/es-abstract/2021/ValidateAndApplyPropertyDescriptor.js @@ -16,10 +16,10 @@ var IsPropertyKey = require('./IsPropertyKey'); var SameValue = require('./SameValue'); var Type = require('./Type'); -// https://ecma-international.org/ecma-262/6.0/#sec-validateandapplypropertydescriptor -// https://ecma-international.org/ecma-262/8.0/#sec-validateandapplypropertydescriptor +// https://262.ecma-international.org/6.0/#sec-validateandapplypropertydescriptor +// https://262.ecma-international.org/8.0/#sec-validateandapplypropertydescriptor -// eslint-disable-next-line max-lines-per-function, max-statements, max-params +// eslint-disable-next-line max-lines-per-function, max-statements module.exports = function ValidateAndApplyPropertyDescriptor(O, P, extensible, Desc, current) { // this uses the ES2017+ logic, since it fixes a number of bugs in the ES2015 logic. var oType = Type(O); diff --git a/node_modules/es-abstract/2021/ValidateAtomicAccess.js b/node_modules/es-abstract/2021/ValidateAtomicAccess.js index 45379ff17a..34015a45d7 100644 --- a/node_modules/es-abstract/2021/ValidateAtomicAccess.js +++ b/node_modules/es-abstract/2021/ValidateAtomicAccess.js @@ -5,14 +5,10 @@ var GetIntrinsic = require('get-intrinsic'); var $RangeError = GetIntrinsic('%RangeError%'); var $TypeError = GetIntrinsic('%TypeError%'); -var callBound = require('call-bind/callBound'); - -// node 0.10 doesn't have a prototype method -var $byteOffset = callBound('%TypedArray.prototype.byteOffset%', true) || function (x) { return x.byteOffset; }; - var ToIndex = require('./ToIndex'); var isTypedArray = require('is-typed-array'); +var typedArrayByteOffset = require('typed-array-byte-offset'); var typedArrayLength = require('typed-array-length'); var whichTypedArray = require('which-typed-array'); @@ -57,7 +53,7 @@ module.exports = function ValidateAtomicAccess(typedArray, requestIndex) { var elementSize = table60['$' + arrayTypeName]; // step 7 - var offset = $byteOffset(typedArray); // step 8 + var offset = typedArrayByteOffset(typedArray); // step 8 return (accessIndex * elementSize) + offset; // step 9 }; diff --git a/node_modules/es-abstract/2021/ValidateTypedArray.js b/node_modules/es-abstract/2021/ValidateTypedArray.js index 83df3a81cb..c7aa313938 100644 --- a/node_modules/es-abstract/2021/ValidateTypedArray.js +++ b/node_modules/es-abstract/2021/ValidateTypedArray.js @@ -5,7 +5,7 @@ var GetIntrinsic = require('get-intrinsic'); var $TypeError = GetIntrinsic('%TypeError%'); var callBound = require('call-bind/callBound'); -var $taSome = callBound('%TypedArray.prototype.some%', true); +var $taSome = callBound('TypedArray.prototype.some', true); var Type = require('./Type'); diff --git a/node_modules/es-abstract/2021/WeakRefDeref.js b/node_modules/es-abstract/2021/WeakRefDeref.js index 66d2d17230..6b9921f37b 100644 --- a/node_modules/es-abstract/2021/WeakRefDeref.js +++ b/node_modules/es-abstract/2021/WeakRefDeref.js @@ -10,7 +10,7 @@ var isWeakRef = require('is-weakref'); var AddToKeptObjects = require('./AddToKeptObjects'); -// https://ecma-international.org/ecma-262/12.0/#sec-weakrefderef +// https://262.ecma-international.org/12.0/#sec-weakrefderef module.exports = function WeakRefDeref(weakRef) { if (!isWeakRef(weakRef)) { diff --git a/node_modules/es-abstract/2021/WordCharacters.js b/node_modules/es-abstract/2021/WordCharacters.js new file mode 100644 index 0000000000..aeebc1e75c --- /dev/null +++ b/node_modules/es-abstract/2021/WordCharacters.js @@ -0,0 +1,49 @@ +'use strict'; + +var GetIntrinsic = require('get-intrinsic'); + +var $TypeError = GetIntrinsic('%TypeError%'); + +var callBound = require('call-bind/callBound'); +var $indexOf = callBound('String.prototype.indexOf', true); + +var Canonicalize = require('./Canonicalize'); +var Type = require('./Type'); + +var caseFolding = require('../helpers/caseFolding'); +var forEach = require('../helpers/forEach'); +var OwnPropertyKeys = require('../helpers/OwnPropertyKeys'); + +var A = 'abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789_'; // step 1 + +// https://262.ecma-international.org/8.0/#sec-runtime-semantics-wordcharacters-abstract-operation + +module.exports = function WordCharacters(IgnoreCase, Unicode) { + if (Type(IgnoreCase) !== 'Boolean' || Type(Unicode) !== 'Boolean') { + throw new $TypeError('Assertion failed: `IgnoreCase` and `Unicode` must be booleans'); + } + + var U = ''; + forEach(OwnPropertyKeys(caseFolding.C), function (c) { + if ( + $indexOf(A, c) === -1 // c not in A + && $indexOf(A, Canonicalize(c, IgnoreCase, Unicode)) > -1 // canonicalized c IS in A + ) { + U += caseFolding.C[c]; // step 3 + } + }); + forEach(OwnPropertyKeys(caseFolding.S), function (c) { + if ( + $indexOf(A, c) === -1 // c not in A + && $indexOf(A, Canonicalize(c, IgnoreCase, Unicode)) > -1 // canonicalized c IS in A + ) { + U += caseFolding.S[c]; // step 3 + } + }); + + if ((!Unicode || !IgnoreCase) && U.length > 0) { + throw new $TypeError('Assertion failed: `U` must be empty when `IgnoreCase` and `Unicode` are not both true'); // step 4 + } + + return A + U; // step 5, 6 +}; diff --git a/node_modules/es-abstract/2021/substring.js b/node_modules/es-abstract/2021/substring.js index a2c724ad8d..0c7e0203d5 100644 --- a/node_modules/es-abstract/2021/substring.js +++ b/node_modules/es-abstract/2021/substring.js @@ -4,16 +4,17 @@ var GetIntrinsic = require('get-intrinsic'); var $TypeError = GetIntrinsic('%TypeError%'); -var IsIntegralNumber = require('./IsIntegralNumber'); var Type = require('./Type'); +var isInteger = require('../helpers/isInteger'); + var callBound = require('call-bind/callBound'); var $slice = callBound('String.prototype.slice'); // https://262.ecma-international.org/12.0/#substring module.exports = function substring(S, inclusiveStart, exclusiveEnd) { - if (Type(S) !== 'String' || !IsIntegralNumber(inclusiveStart) || (arguments.length > 2 && !IsIntegralNumber(exclusiveEnd))) { + if (Type(S) !== 'String' || !isInteger(inclusiveStart) || (arguments.length > 2 && !isInteger(exclusiveEnd))) { throw new $TypeError('`S` must be a String, and `inclusiveStart` and `exclusiveEnd` must be integers'); } return $slice(S, inclusiveStart, arguments.length > 2 ? exclusiveEnd : S.length); diff --git a/node_modules/es-abstract/2021/thisBigIntValue.js b/node_modules/es-abstract/2021/thisBigIntValue.js index 1fd12980e2..d03b4a43c3 100644 --- a/node_modules/es-abstract/2021/thisBigIntValue.js +++ b/node_modules/es-abstract/2021/thisBigIntValue.js @@ -3,7 +3,7 @@ var GetIntrinsic = require('get-intrinsic'); var callBound = require('call-bind/callBound'); -var $TypeError = GetIntrinsic('%TypeError%'); +var $SyntaxError = GetIntrinsic('%SyntaxError%'); var $bigIntValueOf = callBound('BigInt.prototype.valueOf', true); var Type = require('./Type'); @@ -16,7 +16,7 @@ module.exports = function thisBigIntValue(value) { return value; } if (!$bigIntValueOf) { - throw new $TypeError('BigInt is not supported'); + throw new $SyntaxError('BigInt is not supported'); } return $bigIntValueOf(value); }; diff --git a/node_modules/es-abstract/2021/thisBooleanValue.js b/node_modules/es-abstract/2021/thisBooleanValue.js index 27075b9c4f..e93a28ce47 100644 --- a/node_modules/es-abstract/2021/thisBooleanValue.js +++ b/node_modules/es-abstract/2021/thisBooleanValue.js @@ -4,7 +4,7 @@ var $BooleanValueOf = require('call-bind/callBound')('Boolean.prototype.valueOf' var Type = require('./Type'); -// https://ecma-international.org/ecma-262/6.0/#sec-properties-of-the-boolean-prototype-object +// https://262.ecma-international.org/6.0/#sec-properties-of-the-boolean-prototype-object module.exports = function thisBooleanValue(value) { if (Type(value) === 'Boolean') { diff --git a/node_modules/es-abstract/2021/thisNumberValue.js b/node_modules/es-abstract/2021/thisNumberValue.js index 92968dcdf8..03580df26f 100644 --- a/node_modules/es-abstract/2021/thisNumberValue.js +++ b/node_modules/es-abstract/2021/thisNumberValue.js @@ -6,7 +6,7 @@ var Type = require('./Type'); var $NumberValueOf = callBound('Number.prototype.valueOf'); -// https://ecma-international.org/ecma-262/6.0/#sec-properties-of-the-number-prototype-object +// https://262.ecma-international.org/6.0/#sec-properties-of-the-number-prototype-object module.exports = function thisNumberValue(value) { if (Type(value) === 'Number') { diff --git a/node_modules/es-abstract/2021/thisStringValue.js b/node_modules/es-abstract/2021/thisStringValue.js index 8e4274d811..c7bf3da70c 100644 --- a/node_modules/es-abstract/2021/thisStringValue.js +++ b/node_modules/es-abstract/2021/thisStringValue.js @@ -4,7 +4,7 @@ var $StringValueOf = require('call-bind/callBound')('String.prototype.valueOf'); var Type = require('./Type'); -// https://ecma-international.org/ecma-262/6.0/#sec-properties-of-the-string-prototype-object +// https://262.ecma-international.org/6.0/#sec-properties-of-the-string-prototype-object module.exports = function thisStringValue(value) { if (Type(value) === 'String') { diff --git a/node_modules/es-abstract/2021/thisTimeValue.js b/node_modules/es-abstract/2021/thisTimeValue.js index a9a47ace2b..bd50ddd068 100644 --- a/node_modules/es-abstract/2021/thisTimeValue.js +++ b/node_modules/es-abstract/2021/thisTimeValue.js @@ -1,3 +1,9 @@ 'use strict'; -module.exports = require('../2018/thisTimeValue'); +var $DateGetTime = require('call-bind/callBound')('Date.prototype.getTime'); + +// https://262.ecma-international.org/6.0/#sec-properties-of-the-date-prototype-object + +module.exports = function thisTimeValue(value) { + return $DateGetTime(value); +}; diff --git a/node_modules/es-abstract/2022/AddEntriesFromIterable.js b/node_modules/es-abstract/2022/AddEntriesFromIterable.js index a0a5e71bd6..5bea627fb5 100644 --- a/node_modules/es-abstract/2022/AddEntriesFromIterable.js +++ b/node_modules/es-abstract/2022/AddEntriesFromIterable.js @@ -13,9 +13,10 @@ var IsCallable = require('./IsCallable'); var IteratorClose = require('./IteratorClose'); var IteratorStep = require('./IteratorStep'); var IteratorValue = require('./IteratorValue'); +var ThrowCompletion = require('./ThrowCompletion'); var Type = require('./Type'); -// https://262.ecma-international.org/10.0//#sec-add-entries-from-iterable +// https://262.ecma-international.org/10.0/#sec-add-entries-from-iterable module.exports = function AddEntriesFromIterable(target, iterable, adder) { if (!IsCallable(adder)) { @@ -32,21 +33,15 @@ module.exports = function AddEntriesFromIterable(target, iterable, adder) { } var nextItem = IteratorValue(next); if (Type(nextItem) !== 'Object') { - var error = new $TypeError('iterator next must return an Object, got ' + inspect(nextItem)); - return IteratorClose( - iteratorRecord, - function () { throw error; } // eslint-disable-line no-loop-func - ); + var error = ThrowCompletion(new $TypeError('iterator next must return an Object, got ' + inspect(nextItem))); + return IteratorClose(iteratorRecord, error); } try { var k = Get(nextItem, '0'); var v = Get(nextItem, '1'); Call(adder, target, [k, v]); } catch (e) { - return IteratorClose( - iteratorRecord, - function () { throw e; } - ); + return IteratorClose(iteratorRecord, ThrowCompletion(e)); } } }; diff --git a/node_modules/es-abstract/2022/AddToKeptObjects.js b/node_modules/es-abstract/2022/AddToKeptObjects.js index c3088d999d..a2495ba8fa 100644 --- a/node_modules/es-abstract/2022/AddToKeptObjects.js +++ b/node_modules/es-abstract/2022/AddToKeptObjects.js @@ -11,7 +11,7 @@ var Type = require('./Type'); var $push = callBound('Array.prototype.push'); -// https://ecma-international.org/ecma-262/12.0/#sec-addtokeptobjects +// https://262.ecma-international.org/12.0/#sec-addtokeptobjects module.exports = function AddToKeptObjects(object) { if (Type(object) !== 'Object') { diff --git a/node_modules/es-abstract/2022/AdvanceStringIndex.js b/node_modules/es-abstract/2022/AdvanceStringIndex.js index eeae531253..4a0f499aa5 100644 --- a/node_modules/es-abstract/2022/AdvanceStringIndex.js +++ b/node_modules/es-abstract/2022/AdvanceStringIndex.js @@ -3,20 +3,20 @@ var GetIntrinsic = require('get-intrinsic'); var CodePointAt = require('./CodePointAt'); -var IsIntegralNumber = require('./IsIntegralNumber'); var Type = require('./Type'); +var isInteger = require('../helpers/isInteger'); var MAX_SAFE_INTEGER = require('../helpers/maxSafeInteger'); var $TypeError = GetIntrinsic('%TypeError%'); -// https://ecma-international.org/ecma-262/12.0/#sec-advancestringindex +// https://262.ecma-international.org/12.0/#sec-advancestringindex module.exports = function AdvanceStringIndex(S, index, unicode) { if (Type(S) !== 'String') { throw new $TypeError('Assertion failed: `S` must be a String'); } - if (!IsIntegralNumber(index) || index < 0 || index > MAX_SAFE_INTEGER) { + if (!isInteger(index) || index < 0 || index > MAX_SAFE_INTEGER) { throw new $TypeError('Assertion failed: `length` must be an integer >= 0 and <= 2**53'); } if (Type(unicode) !== 'Boolean') { diff --git a/node_modules/es-abstract/2022/ApplyStringOrNumericBinaryOperator.js b/node_modules/es-abstract/2022/ApplyStringOrNumericBinaryOperator.js index 824a105430..e5f997a39d 100644 --- a/node_modules/es-abstract/2022/ApplyStringOrNumericBinaryOperator.js +++ b/node_modules/es-abstract/2022/ApplyStringOrNumericBinaryOperator.js @@ -35,9 +35,9 @@ var BigIntSignedRightShift = require('./BigInt/signedRightShift'); var BigIntSubtract = require('./BigInt/subtract'); var BigIntUnsignedRightShift = require('./BigInt/unsignedRightShift'); -// https://ecma-international.org/ecma-262/12.0/#sec-applystringornumericbinaryoperator +// https://262.ecma-international.org/12.0/#sec-applystringornumericbinaryoperator -// https://ecma-international.org/ecma-262/12.0/#step-applystringornumericbinaryoperator-operations-table +// https://262.ecma-international.org/12.0/#step-applystringornumericbinaryoperator-operations-table var table = { '**': [NumberExponentiate, BigIntExponentiate], '*': [NumberMultiply, BigIntMultiply], diff --git a/node_modules/es-abstract/2022/ArrayCreate.js b/node_modules/es-abstract/2022/ArrayCreate.js index e138d2db91..e33224517e 100644 --- a/node_modules/es-abstract/2022/ArrayCreate.js +++ b/node_modules/es-abstract/2022/ArrayCreate.js @@ -7,7 +7,7 @@ var $RangeError = GetIntrinsic('%RangeError%'); var $SyntaxError = GetIntrinsic('%SyntaxError%'); var $TypeError = GetIntrinsic('%TypeError%'); -var IsIntegralNumber = require('./IsIntegralNumber'); +var isInteger = require('../helpers/isInteger'); var MAX_ARRAY_LENGTH = Math.pow(2, 32) - 1; @@ -22,10 +22,10 @@ var $setProto = GetIntrinsic('%Object.setPrototypeOf%', true) || ( : null ); -// https://www.ecma-international.org/ecma-262/12.0/#sec-arraycreate +// https://262.ecma-international.org/12.0/#sec-arraycreate module.exports = function ArrayCreate(length) { - if (!IsIntegralNumber(length) || length < 0) { + if (!isInteger(length) || length < 0) { throw new $TypeError('Assertion failed: `length` must be an integer Number >= 0'); } if (length > MAX_ARRAY_LENGTH) { diff --git a/node_modules/es-abstract/2022/ArraySetLength.js b/node_modules/es-abstract/2022/ArraySetLength.js index 08db9c2e9b..45d7569e7d 100644 --- a/node_modules/es-abstract/2022/ArraySetLength.js +++ b/node_modules/es-abstract/2022/ArraySetLength.js @@ -19,7 +19,7 @@ var ToString = require('./ToString'); var ToUint32 = require('./ToUint32'); var Type = require('./Type'); -// https://ecma-international.org/ecma-262/6.0/#sec-arraysetlength +// https://262.ecma-international.org/6.0/#sec-arraysetlength // eslint-disable-next-line max-statements, max-lines-per-function module.exports = function ArraySetLength(A, Desc) { diff --git a/node_modules/es-abstract/2022/ArraySpeciesCreate.js b/node_modules/es-abstract/2022/ArraySpeciesCreate.js index d908fa3510..7b1fd1d27a 100644 --- a/node_modules/es-abstract/2022/ArraySpeciesCreate.js +++ b/node_modules/es-abstract/2022/ArraySpeciesCreate.js @@ -9,13 +9,14 @@ var ArrayCreate = require('./ArrayCreate'); var Get = require('./Get'); var IsArray = require('./IsArray'); var IsConstructor = require('./IsConstructor'); -var IsIntegralNumber = require('./IsIntegralNumber'); var Type = require('./Type'); -// https://ecma-international.org/ecma-262/12.0/#sec-arrayspeciescreate +var isInteger = require('../helpers/isInteger'); + +// https://262.ecma-international.org/12.0/#sec-arrayspeciescreate module.exports = function ArraySpeciesCreate(originalArray, length) { - if (!IsIntegralNumber(length) || length < 0) { + if (!isInteger(length) || length < 0) { throw new $TypeError('Assertion failed: length must be an integer >= 0'); } diff --git a/node_modules/es-abstract/2022/AsyncFromSyncIteratorContinuation.js b/node_modules/es-abstract/2022/AsyncFromSyncIteratorContinuation.js index c1cc7a111a..5618539dd6 100644 --- a/node_modules/es-abstract/2022/AsyncFromSyncIteratorContinuation.js +++ b/node_modules/es-abstract/2022/AsyncFromSyncIteratorContinuation.js @@ -16,7 +16,7 @@ var Type = require('./Type'); var $then = callBound('Promise.prototype.then', true); -// https://ecma-international.org/ecma-262/10.0/#sec-asyncfromsynciteratorcontinuation +// https://262.ecma-international.org/10.0/#sec-asyncfromsynciteratorcontinuation module.exports = function AsyncFromSyncIteratorContinuation(result) { if (Type(result) !== 'Object') { diff --git a/node_modules/es-abstract/2022/ByteListBitwiseOp.js b/node_modules/es-abstract/2022/ByteListBitwiseOp.js index 4e3c1f10b2..67f4cecb59 100644 --- a/node_modules/es-abstract/2022/ByteListBitwiseOp.js +++ b/node_modules/es-abstract/2022/ByteListBitwiseOp.js @@ -11,7 +11,7 @@ var IsArray = require('./IsArray'); var isByteValue = require('../helpers/isByteValue'); -// https://ecma-international.org/ecma-262/12.0/#sec-bytelistbitwiseop +// https://262.ecma-international.org/12.0/#sec-bytelistbitwiseop module.exports = function ByteListBitwiseOp(op, xBytes, yBytes) { if (op !== '&' && op !== '^' && op !== '|') { diff --git a/node_modules/es-abstract/2022/ByteListEqual.js b/node_modules/es-abstract/2022/ByteListEqual.js index adc2378e7d..489ddc224e 100644 --- a/node_modules/es-abstract/2022/ByteListEqual.js +++ b/node_modules/es-abstract/2022/ByteListEqual.js @@ -8,7 +8,7 @@ var IsArray = require('./IsArray'); var isByteValue = require('../helpers/isByteValue'); -// https://ecma-international.org/ecma-262/12.0/#sec-bytelistequal +// https://262.ecma-international.org/12.0/#sec-bytelistequal module.exports = function ByteListEqual(xBytes, yBytes) { if (!IsArray(xBytes) || !IsArray(yBytes)) { diff --git a/node_modules/es-abstract/2022/Call.js b/node_modules/es-abstract/2022/Call.js index 4b238c6916..be76246db0 100644 --- a/node_modules/es-abstract/2022/Call.js +++ b/node_modules/es-abstract/2022/Call.js @@ -7,9 +7,9 @@ var $TypeError = GetIntrinsic('%TypeError%'); var IsArray = require('./IsArray'); -var $apply = GetIntrinsic('%Reflect.apply%', true) || callBound('%Function.prototype.apply%'); +var $apply = GetIntrinsic('%Reflect.apply%', true) || callBound('Function.prototype.apply'); -// https://ecma-international.org/ecma-262/6.0/#sec-call +// https://262.ecma-international.org/6.0/#sec-call module.exports = function Call(F, V) { var argumentsList = arguments.length > 2 ? arguments[2] : []; diff --git a/node_modules/es-abstract/2022/CanonicalNumericIndexString.js b/node_modules/es-abstract/2022/CanonicalNumericIndexString.js index feb878c032..e9f386326c 100644 --- a/node_modules/es-abstract/2022/CanonicalNumericIndexString.js +++ b/node_modules/es-abstract/2022/CanonicalNumericIndexString.js @@ -9,7 +9,7 @@ var ToNumber = require('./ToNumber'); var ToString = require('./ToString'); var Type = require('./Type'); -// https://ecma-international.org/ecma-262/6.0/#sec-canonicalnumericindexstring +// https://262.ecma-international.org/6.0/#sec-canonicalnumericindexstring module.exports = function CanonicalNumericIndexString(argument) { if (Type(argument) !== 'String') { diff --git a/node_modules/es-abstract/2022/Canonicalize.js b/node_modules/es-abstract/2022/Canonicalize.js new file mode 100644 index 0000000000..8873db4c7c --- /dev/null +++ b/node_modules/es-abstract/2022/Canonicalize.js @@ -0,0 +1,55 @@ +'use strict'; + +var GetIntrinsic = require('get-intrinsic'); + +var $TypeError = GetIntrinsic('%TypeError%'); + +var callBound = require('call-bind/callBound'); +var has = require('has'); + +var $charCodeAt = callBound('String.prototype.charCodeAt'); +var $toUpperCase = callBound('String.prototype.toUpperCase'); + +var Type = require('./Type'); + +var caseFolding = require('../helpers/caseFolding'); + +// https://262.ecma-international.org/6.0/#sec-runtime-semantics-canonicalize-ch + +module.exports = function Canonicalize(ch, IgnoreCase, Unicode) { + if (Type(ch) !== 'String') { + throw new $TypeError('Assertion failed: `ch` must be a character'); + } + + if (Type(IgnoreCase) !== 'Boolean' || Type(Unicode) !== 'Boolean') { + throw new $TypeError('Assertion failed: `IgnoreCase` and `Unicode` must be Booleans'); + } + + if (!IgnoreCase) { + return ch; // step 1 + } + + if (Unicode) { // step 2 + if (has(caseFolding.C, ch)) { + return caseFolding.C[ch]; + } + if (has(caseFolding.S, ch)) { + return caseFolding.S[ch]; + } + return ch; // step 2.b + } + + var u = $toUpperCase(ch); // step 2 + + if (u.length !== 1) { + return ch; // step 3 + } + + var cu = u; // step 4 + + if ($charCodeAt(ch, 0) >= 128 && $charCodeAt(cu, 0) < 128) { + return ch; // step 5 + } + + return cu; +}; diff --git a/node_modules/es-abstract/2022/CharacterRange.js b/node_modules/es-abstract/2022/CharacterRange.js index 70e4b52355..78783a59f2 100644 --- a/node_modules/es-abstract/2022/CharacterRange.js +++ b/node_modules/es-abstract/2022/CharacterRange.js @@ -5,8 +5,8 @@ var callBound = require('call-bind/callBound'); var $fromCharCode = GetIntrinsic('%String.fromCharCode%'); var $TypeError = GetIntrinsic('%TypeError%'); -var $charCodeAt = callBound('%String.prototype.charCodeAt%'); -var $push = callBound('%Array.prototype.push%'); +var $charCodeAt = callBound('String.prototype.charCodeAt'); +var $push = callBound('Array.prototype.push'); module.exports = function CharacterRange(A, B) { if (A.length !== 1 || B.length !== 1) { diff --git a/node_modules/es-abstract/2022/ClearKeptObjects.js b/node_modules/es-abstract/2022/ClearKeptObjects.js index 9397f5966a..50bd4a5da4 100644 --- a/node_modules/es-abstract/2022/ClearKeptObjects.js +++ b/node_modules/es-abstract/2022/ClearKeptObjects.js @@ -3,7 +3,7 @@ var SLOT = require('internal-slot'); var keptObjects = []; -// https://ecma-international.org/ecma-262/12.0/#sec-clear-kept-objects +// https://262.ecma-international.org/12.0/#sec-clear-kept-objects module.exports = function ClearKeptObjects() { keptObjects.length = 0; diff --git a/node_modules/es-abstract/2022/CloneArrayBuffer.js b/node_modules/es-abstract/2022/CloneArrayBuffer.js new file mode 100644 index 0000000000..d03e91f864 --- /dev/null +++ b/node_modules/es-abstract/2022/CloneArrayBuffer.js @@ -0,0 +1,49 @@ +'use strict'; + +var GetIntrinsic = require('get-intrinsic'); + +var $TypeError = GetIntrinsic('%TypeError%'); + +var GetPrototypeFromConstructor = require('./GetPrototypeFromConstructor'); +var IsConstructor = require('./IsConstructor'); +var IsDetachedBuffer = require('./IsDetachedBuffer'); +var OrdinarySetPrototypeOf = require('./OrdinarySetPrototypeOf'); + +var isInteger = require('../helpers/isInteger'); + +var isArrayBuffer = require('is-array-buffer'); +var arrayBufferSlice = require('arraybuffer.prototype.slice'); + +// https://262.ecma-international.org/12.0/#sec-clonearraybuffer + +module.exports = function CloneArrayBuffer(srcBuffer, srcByteOffset, srcLength, cloneConstructor) { + if (!isArrayBuffer(srcBuffer)) { + throw new $TypeError('Assertion failed: `srcBuffer` must be an ArrayBuffer instance'); + } + if (!isInteger(srcByteOffset) || srcByteOffset < 0) { + throw new $TypeError('Assertion failed: `srcByteOffset` must be a non-negative integer'); + } + if (!isInteger(srcLength) || srcLength < 0) { + throw new $TypeError('Assertion failed: `srcLength` must be a non-negative integer'); + } + if (!IsConstructor(cloneConstructor)) { + throw new $TypeError('Assertion failed: `cloneConstructor` must be a constructor'); + } + + // 3. Let targetBuffer be ? AllocateArrayBuffer(cloneConstructor, srcLength). + var proto = GetPrototypeFromConstructor(cloneConstructor, '%ArrayBufferPrototype%'); // step 3, kinda + + if (IsDetachedBuffer(srcBuffer)) { + throw new $TypeError('`srcBuffer` must not be a detached ArrayBuffer'); // step 4 + } + + /* + 5. Let srcBlock be srcBuffer.[[ArrayBufferData]]. + 6. Let targetBlock be targetBuffer.[[ArrayBufferData]]. + 7. Perform CopyDataBlockBytes(targetBlock, 0, srcBlock, srcByteOffset, srcLength). + */ + var targetBuffer = arrayBufferSlice(srcBuffer, srcByteOffset, srcByteOffset + srcLength); // steps 5-7 + OrdinarySetPrototypeOf(targetBuffer, proto); // step 3 + + return targetBuffer; // step 8 +}; diff --git a/node_modules/es-abstract/2022/CodePointAt.js b/node_modules/es-abstract/2022/CodePointAt.js index 7a9ac1be7b..e1e22905a4 100644 --- a/node_modules/es-abstract/2022/CodePointAt.js +++ b/node_modules/es-abstract/2022/CodePointAt.js @@ -13,7 +13,7 @@ var UTF16SurrogatePairToCodePoint = require('./UTF16SurrogatePairToCodePoint'); var $charAt = callBound('String.prototype.charAt'); var $charCodeAt = callBound('String.prototype.charCodeAt'); -// https://ecma-international.org/ecma-262/12.0/#sec-codepointat +// https://262.ecma-international.org/12.0/#sec-codepointat module.exports = function CodePointAt(string, position) { if (Type(string) !== 'String') { diff --git a/node_modules/es-abstract/2022/CodePointsToString.js b/node_modules/es-abstract/2022/CodePointsToString.js index 403126cd2e..6d7cd854b9 100644 --- a/node_modules/es-abstract/2022/CodePointsToString.js +++ b/node_modules/es-abstract/2022/CodePointsToString.js @@ -10,7 +10,7 @@ var IsArray = require('./IsArray'); var forEach = require('../helpers/forEach'); var isCodePoint = require('../helpers/isCodePoint'); -// https://ecma-international.org/ecma-262/12.0/#sec-codepointstostring +// https://262.ecma-international.org/12.0/#sec-codepointstostring module.exports = function CodePointsToString(text) { if (!IsArray(text)) { diff --git a/node_modules/es-abstract/2022/CompletePropertyDescriptor.js b/node_modules/es-abstract/2022/CompletePropertyDescriptor.js index 548bf415a3..e8685197aa 100644 --- a/node_modules/es-abstract/2022/CompletePropertyDescriptor.js +++ b/node_modules/es-abstract/2022/CompletePropertyDescriptor.js @@ -8,7 +8,7 @@ var IsDataDescriptor = require('./IsDataDescriptor'); var IsGenericDescriptor = require('./IsGenericDescriptor'); var Type = require('./Type'); -// https://ecma-international.org/ecma-262/6.0/#sec-completepropertydescriptor +// https://262.ecma-international.org/6.0/#sec-completepropertydescriptor module.exports = function CompletePropertyDescriptor(Desc) { /* eslint no-param-reassign: 0 */ diff --git a/node_modules/es-abstract/2022/CopyDataProperties.js b/node_modules/es-abstract/2022/CopyDataProperties.js index bbb5d6f0a1..18723f9d0d 100644 --- a/node_modules/es-abstract/2022/CopyDataProperties.js +++ b/node_modules/es-abstract/2022/CopyDataProperties.js @@ -22,7 +22,7 @@ var ToNumber = require('./ToNumber'); var ToObject = require('./ToObject'); var Type = require('./Type'); -// https://www.ecma-international.org/ecma-262/12.0/#sec-copydataproperties +// https://262.ecma-international.org/12.0/#sec-copydataproperties module.exports = function CopyDataProperties(target, source, excludedItems) { if (Type(target) !== 'Object') { diff --git a/node_modules/es-abstract/2022/CreateAsyncFromSyncIterator.js b/node_modules/es-abstract/2022/CreateAsyncFromSyncIterator.js index 693321d51d..64540dd6e3 100644 --- a/node_modules/es-abstract/2022/CreateAsyncFromSyncIterator.js +++ b/node_modules/es-abstract/2022/CreateAsyncFromSyncIterator.js @@ -101,7 +101,7 @@ var $AsyncFromSyncIteratorPrototype = GetIntrinsic('%AsyncFromSyncIteratorProtot } }; -// https://ecma-international.org/ecma-262/11.0/#sec-createasyncfromsynciterator +// https://262.ecma-international.org/11.0/#sec-createasyncfromsynciterator module.exports = function CreateAsyncFromSyncIterator(syncIteratorRecord) { assertRecord(Type, 'Iterator Record', 'syncIteratorRecord', syncIteratorRecord); diff --git a/node_modules/es-abstract/2022/CreateDataProperty.js b/node_modules/es-abstract/2022/CreateDataProperty.js index 02c6cd1f8b..5bd5fc4787 100644 --- a/node_modules/es-abstract/2022/CreateDataProperty.js +++ b/node_modules/es-abstract/2022/CreateDataProperty.js @@ -4,17 +4,11 @@ var GetIntrinsic = require('get-intrinsic'); var $TypeError = GetIntrinsic('%TypeError%'); -var DefineOwnProperty = require('../helpers/DefineOwnProperty'); - -var FromPropertyDescriptor = require('./FromPropertyDescriptor'); -var OrdinaryGetOwnProperty = require('./OrdinaryGetOwnProperty'); -var IsDataDescriptor = require('./IsDataDescriptor'); -var IsExtensible = require('./IsExtensible'); var IsPropertyKey = require('./IsPropertyKey'); -var SameValue = require('./SameValue'); +var OrdinaryDefineOwnProperty = require('./OrdinaryDefineOwnProperty'); var Type = require('./Type'); -// https://ecma-international.org/ecma-262/6.0/#sec-createdataproperty +// https://262.ecma-international.org/6.0/#sec-createdataproperty module.exports = function CreateDataProperty(O, P, V) { if (Type(O) !== 'Object') { @@ -23,23 +17,11 @@ module.exports = function CreateDataProperty(O, P, V) { if (!IsPropertyKey(P)) { throw new $TypeError('Assertion failed: IsPropertyKey(P) is not true'); } - var oldDesc = OrdinaryGetOwnProperty(O, P); - var extensible = !oldDesc || IsExtensible(O); - var nonConfigurable = oldDesc && !oldDesc['[[Configurable]]']; - if (nonConfigurable || !extensible) { - return false; - } - return DefineOwnProperty( - IsDataDescriptor, - SameValue, - FromPropertyDescriptor, - O, - P, - { - '[[Configurable]]': true, - '[[Enumerable]]': true, - '[[Value]]': V, - '[[Writable]]': true - } - ); + var newDesc = { + '[[Configurable]]': true, + '[[Enumerable]]': true, + '[[Value]]': V, + '[[Writable]]': true + }; + return OrdinaryDefineOwnProperty(O, P, newDesc); }; diff --git a/node_modules/es-abstract/2022/CreateDataPropertyOrThrow.js b/node_modules/es-abstract/2022/CreateDataPropertyOrThrow.js index 2f7c410ba3..c40e69368b 100644 --- a/node_modules/es-abstract/2022/CreateDataPropertyOrThrow.js +++ b/node_modules/es-abstract/2022/CreateDataPropertyOrThrow.js @@ -8,7 +8,7 @@ var CreateDataProperty = require('./CreateDataProperty'); var IsPropertyKey = require('./IsPropertyKey'); var Type = require('./Type'); -// // https://ecma-international.org/ecma-262/6.0/#sec-createdatapropertyorthrow +// // https://262.ecma-international.org/6.0/#sec-createdatapropertyorthrow module.exports = function CreateDataPropertyOrThrow(O, P, V) { if (Type(O) !== 'Object') { diff --git a/node_modules/es-abstract/2022/CreateHTML.js b/node_modules/es-abstract/2022/CreateHTML.js index ccded1e65d..ea7633da68 100644 --- a/node_modules/es-abstract/2022/CreateHTML.js +++ b/node_modules/es-abstract/2022/CreateHTML.js @@ -12,7 +12,7 @@ var RequireObjectCoercible = require('./RequireObjectCoercible'); var ToString = require('./ToString'); var Type = require('./Type'); -// https://ecma-international.org/ecma-262/6.0/#sec-createhtml +// https://262.ecma-international.org/6.0/#sec-createhtml module.exports = function CreateHTML(string, tag, attribute, value) { if (Type(tag) !== 'String' || Type(attribute) !== 'String') { diff --git a/node_modules/es-abstract/2022/CreateIterResultObject.js b/node_modules/es-abstract/2022/CreateIterResultObject.js index eea77a5128..ed86b34f25 100644 --- a/node_modules/es-abstract/2022/CreateIterResultObject.js +++ b/node_modules/es-abstract/2022/CreateIterResultObject.js @@ -6,7 +6,7 @@ var $TypeError = GetIntrinsic('%TypeError%'); var Type = require('./Type'); -// https://ecma-international.org/ecma-262/6.0/#sec-createiterresultobject +// https://262.ecma-international.org/6.0/#sec-createiterresultobject module.exports = function CreateIterResultObject(value, done) { if (Type(done) !== 'Boolean') { diff --git a/node_modules/es-abstract/2022/CreateListFromArrayLike.js b/node_modules/es-abstract/2022/CreateListFromArrayLike.js index 40293127dc..7592307eb1 100644 --- a/node_modules/es-abstract/2022/CreateListFromArrayLike.js +++ b/node_modules/es-abstract/2022/CreateListFromArrayLike.js @@ -14,12 +14,14 @@ var LengthOfArrayLike = require('./LengthOfArrayLike'); var ToString = require('./ToString'); var Type = require('./Type'); +var defaultElementTypes = ['Undefined', 'Null', 'Boolean', 'String', 'Symbol', 'Number', 'BigInt', 'Object']; + // https://262.ecma-international.org/11.0/#sec-createlistfromarraylike module.exports = function CreateListFromArrayLike(obj) { var elementTypes = arguments.length > 1 ? arguments[1] - : ['Undefined', 'Null', 'Boolean', 'String', 'Symbol', 'Number', 'BigInt', 'Object']; + : defaultElementTypes; if (Type(obj) !== 'Object') { throw new $TypeError('Assertion failed: `obj` must be an Object'); diff --git a/node_modules/es-abstract/2022/CreateMethodProperty.js b/node_modules/es-abstract/2022/CreateMethodProperty.js index 53274a5614..058c0f1760 100644 --- a/node_modules/es-abstract/2022/CreateMethodProperty.js +++ b/node_modules/es-abstract/2022/CreateMethodProperty.js @@ -12,7 +12,7 @@ var IsPropertyKey = require('./IsPropertyKey'); var SameValue = require('./SameValue'); var Type = require('./Type'); -// https://ecma-international.org/ecma-262/6.0/#sec-createmethodproperty +// https://262.ecma-international.org/6.0/#sec-createmethodproperty module.exports = function CreateMethodProperty(O, P, V) { if (Type(O) !== 'Object') { diff --git a/node_modules/es-abstract/2022/DefinePropertyOrThrow.js b/node_modules/es-abstract/2022/DefinePropertyOrThrow.js index 26f2714bb1..8fe097068d 100644 --- a/node_modules/es-abstract/2022/DefinePropertyOrThrow.js +++ b/node_modules/es-abstract/2022/DefinePropertyOrThrow.js @@ -15,7 +15,7 @@ var SameValue = require('./SameValue'); var ToPropertyDescriptor = require('./ToPropertyDescriptor'); var Type = require('./Type'); -// https://ecma-international.org/ecma-262/6.0/#sec-definepropertyorthrow +// https://262.ecma-international.org/6.0/#sec-definepropertyorthrow module.exports = function DefinePropertyOrThrow(O, P, desc) { if (Type(O) !== 'Object') { diff --git a/node_modules/es-abstract/2022/DeletePropertyOrThrow.js b/node_modules/es-abstract/2022/DeletePropertyOrThrow.js index 30d5e57c7b..581bf06ea2 100644 --- a/node_modules/es-abstract/2022/DeletePropertyOrThrow.js +++ b/node_modules/es-abstract/2022/DeletePropertyOrThrow.js @@ -7,7 +7,7 @@ var $TypeError = GetIntrinsic('%TypeError%'); var IsPropertyKey = require('./IsPropertyKey'); var Type = require('./Type'); -// https://ecma-international.org/ecma-262/6.0/#sec-deletepropertyorthrow +// https://262.ecma-international.org/6.0/#sec-deletepropertyorthrow module.exports = function DeletePropertyOrThrow(O, P) { if (Type(O) !== 'Object') { diff --git a/node_modules/es-abstract/2022/FlattenIntoArray.js b/node_modules/es-abstract/2022/FlattenIntoArray.js index 6429ee797f..0fb87bc6a3 100644 --- a/node_modules/es-abstract/2022/FlattenIntoArray.js +++ b/node_modules/es-abstract/2022/FlattenIntoArray.js @@ -16,7 +16,6 @@ var ToString = require('./ToString'); // https://262.ecma-international.org/11.0/#sec-flattenintoarray -// eslint-disable-next-line max-params module.exports = function FlattenIntoArray(target, source, sourceLen, start, depth) { var mapperFunction; if (arguments.length > 5) { diff --git a/node_modules/es-abstract/2022/FromPropertyDescriptor.js b/node_modules/es-abstract/2022/FromPropertyDescriptor.js index e142ed582e..c70f0c60e1 100644 --- a/node_modules/es-abstract/2022/FromPropertyDescriptor.js +++ b/node_modules/es-abstract/2022/FromPropertyDescriptor.js @@ -5,7 +5,7 @@ var fromPropertyDescriptor = require('../helpers/fromPropertyDescriptor'); var Type = require('./Type'); -// https://ecma-international.org/ecma-262/6.0/#sec-frompropertydescriptor +// https://262.ecma-international.org/6.0/#sec-frompropertydescriptor module.exports = function FromPropertyDescriptor(Desc) { if (typeof Desc !== 'undefined') { diff --git a/node_modules/es-abstract/2022/Get.js b/node_modules/es-abstract/2022/Get.js index 297968643f..0973152222 100644 --- a/node_modules/es-abstract/2022/Get.js +++ b/node_modules/es-abstract/2022/Get.js @@ -9,7 +9,7 @@ var inspect = require('object-inspect'); var IsPropertyKey = require('./IsPropertyKey'); var Type = require('./Type'); -// https://ecma-international.org/ecma-262/6.0/#sec-get-o-p +// https://262.ecma-international.org/6.0/#sec-get-o-p module.exports = function Get(O, P) { // 7.3.1.1 diff --git a/node_modules/es-abstract/2022/GetIterator.js b/node_modules/es-abstract/2022/GetIterator.js index 51439e4482..672454abdb 100644 --- a/node_modules/es-abstract/2022/GetIterator.js +++ b/node_modules/es-abstract/2022/GetIterator.js @@ -16,7 +16,8 @@ var GetMethod = require('./GetMethod'); var IsArray = require('./IsArray'); var Type = require('./Type'); -// https://262.ecma-international.org/9.0/#sec-getiterator +// https://262.ecma-international.org/11.0/#sec-getiterator + module.exports = function GetIterator(obj, hint, method) { var actualHint = hint; if (arguments.length < 2) { diff --git a/node_modules/es-abstract/2022/GetMatchIndexPair.js b/node_modules/es-abstract/2022/GetMatchIndexPair.js index 14bcb612f9..c72d311a95 100644 --- a/node_modules/es-abstract/2022/GetMatchIndexPair.js +++ b/node_modules/es-abstract/2022/GetMatchIndexPair.js @@ -8,7 +8,7 @@ var Type = require('./Type'); var assertRecord = require('../helpers/assertRecord'); -// https://ecma-international.org/ecma-262/13.0/#sec-getmatchindexpair +// https://262.ecma-international.org/13.0/#sec-getmatchindexpair module.exports = function GetMatchIndexPair(S, match) { if (Type(S) !== 'String') { diff --git a/node_modules/es-abstract/2022/GetMatchString.js b/node_modules/es-abstract/2022/GetMatchString.js index ba49306e71..bfac4c43c5 100644 --- a/node_modules/es-abstract/2022/GetMatchString.js +++ b/node_modules/es-abstract/2022/GetMatchString.js @@ -9,7 +9,7 @@ var Type = require('./Type'); var assertRecord = require('../helpers/assertRecord'); -// https://ecma-international.org/ecma-262/13.0/#sec-getmatchstring +// https://262.ecma-international.org/13.0/#sec-getmatchstring module.exports = function GetMatchString(S, match) { if (Type(S) !== 'String') { diff --git a/node_modules/es-abstract/2022/GetMethod.js b/node_modules/es-abstract/2022/GetMethod.js index d3775178e6..e9f2854ff3 100644 --- a/node_modules/es-abstract/2022/GetMethod.js +++ b/node_modules/es-abstract/2022/GetMethod.js @@ -8,9 +8,9 @@ var GetV = require('./GetV'); var IsCallable = require('./IsCallable'); var IsPropertyKey = require('./IsPropertyKey'); -var debug = require('object-inspect'); +var inspect = require('object-inspect'); -// https://ecma-international.org/ecma-262/6.0/#sec-getmethod +// https://262.ecma-international.org/6.0/#sec-getmethod module.exports = function GetMethod(O, P) { // 7.3.9.1 @@ -28,7 +28,7 @@ module.exports = function GetMethod(O, P) { // 7.3.9.5 if (!IsCallable(func)) { - throw new $TypeError(P + ' is not a function: ' + debug(func)); + throw new $TypeError(inspect(P) + ' is not a function: ' + inspect(func)); } // 7.3.9.6 diff --git a/node_modules/es-abstract/2022/GetOwnPropertyKeys.js b/node_modules/es-abstract/2022/GetOwnPropertyKeys.js index 40c0b367fa..043fd733bd 100644 --- a/node_modules/es-abstract/2022/GetOwnPropertyKeys.js +++ b/node_modules/es-abstract/2022/GetOwnPropertyKeys.js @@ -12,7 +12,7 @@ var keys = require('object-keys'); var esType = require('./Type'); -// https://ecma-international.org/ecma-262/6.0/#sec-getownpropertykeys +// https://262.ecma-international.org/6.0/#sec-getownpropertykeys module.exports = function GetOwnPropertyKeys(O, Type) { if (esType(O) !== 'Object') { diff --git a/node_modules/es-abstract/2022/GetPromiseResolve.js b/node_modules/es-abstract/2022/GetPromiseResolve.js index 6efc102889..f0db02617b 100644 --- a/node_modules/es-abstract/2022/GetPromiseResolve.js +++ b/node_modules/es-abstract/2022/GetPromiseResolve.js @@ -8,7 +8,7 @@ var Get = require('./Get'); var IsCallable = require('./IsCallable'); var IsConstructor = require('./IsConstructor'); -// https://ecma-international.org/ecma-262/12.0/#sec-getpromiseresolve +// https://262.ecma-international.org/12.0/#sec-getpromiseresolve module.exports = function GetPromiseResolve(promiseConstructor) { if (!IsConstructor(promiseConstructor)) { diff --git a/node_modules/es-abstract/2022/GetPrototypeFromConstructor.js b/node_modules/es-abstract/2022/GetPrototypeFromConstructor.js index 25ee12f353..0b281ef4fe 100644 --- a/node_modules/es-abstract/2022/GetPrototypeFromConstructor.js +++ b/node_modules/es-abstract/2022/GetPrototypeFromConstructor.js @@ -10,10 +10,13 @@ var Get = require('./Get'); var IsConstructor = require('./IsConstructor'); var Type = require('./Type'); -// https://ecma-international.org/ecma-262/6.0/#sec-getprototypefromconstructor +// https://262.ecma-international.org/6.0/#sec-getprototypefromconstructor module.exports = function GetPrototypeFromConstructor(constructor, intrinsicDefaultProto) { var intrinsic = GetIntrinsic(intrinsicDefaultProto); // throws if not a valid intrinsic + if (Type(intrinsic) !== 'Object') { + throw new $TypeError('intrinsicDefaultProto must be an object'); + } if (!IsConstructor(constructor)) { throw new $TypeError('Assertion failed: `constructor` must be a constructor'); } diff --git a/node_modules/es-abstract/2022/GetStringIndex.js b/node_modules/es-abstract/2022/GetStringIndex.js index e596d438aa..9c796d86b8 100644 --- a/node_modules/es-abstract/2022/GetStringIndex.js +++ b/node_modules/es-abstract/2022/GetStringIndex.js @@ -5,19 +5,20 @@ var callBound = require('call-bind/callBound'); var $TypeError = GetIntrinsic('%TypeError%'); -var IsIntegralNumber = require('./IsIntegralNumber'); var StringToCodePoints = require('./StringToCodePoints'); var Type = require('./Type'); +var isInteger = require('../helpers/isInteger'); + var $indexOf = callBound('String.prototype.indexOf'); -// https://ecma-international.org/ecma-262/13.0/#sec-getstringindex +// https://262.ecma-international.org/13.0/#sec-getstringindex module.exports = function GetStringIndex(S, e) { if (Type(S) !== 'String') { throw new $TypeError('Assertion failed: `S` must be a String'); } - if (!IsIntegralNumber(e) || e < 0) { + if (!isInteger(e) || e < 0) { throw new $TypeError('Assertion failed: `e` must be a non-negative integer'); } diff --git a/node_modules/es-abstract/2022/GetSubstitution.js b/node_modules/es-abstract/2022/GetSubstitution.js index 6ac3ec7f3b..9a5fc2e178 100644 --- a/node_modules/es-abstract/2022/GetSubstitution.js +++ b/node_modules/es-abstract/2022/GetSubstitution.js @@ -19,16 +19,12 @@ var inspect = require('object-inspect'); var Get = require('./Get'); var IsArray = require('./IsArray'); -var IsIntegralNumber = require('./IsIntegralNumber'); var ToObject = require('./ToObject'); var ToString = require('./ToString'); var Type = require('./Type'); -var canDistinguishSparseFromUndefined = 0 in [undefined]; // IE 6 - 8 have a bug where this returns false - -var isStringOrHole = function (capture, index, arr) { - return Type(capture) === 'String' || (canDistinguishSparseFromUndefined ? !(index in arr) : Type(capture) === 'Undefined'); -}; +var isInteger = require('../helpers/isInteger'); +var isStringOrHole = require('../helpers/isStringOrHole'); // http://www.ecma-international.org/ecma-262/12.0/#sec-getsubstitution @@ -44,7 +40,7 @@ module.exports = function GetSubstitution(matched, str, position, captures, name } var stringLength = str.length; - if (!IsIntegralNumber(position) || position < 0 || position > stringLength) { + if (!isInteger(position) || position < 0 || position > stringLength) { throw new $TypeError('Assertion failed: `position` must be a nonnegative integer, and less than or equal to the length of `string`, got ' + inspect(position)); } diff --git a/node_modules/es-abstract/2022/GetV.js b/node_modules/es-abstract/2022/GetV.js index 2dcddb3513..706a9211ab 100644 --- a/node_modules/es-abstract/2022/GetV.js +++ b/node_modules/es-abstract/2022/GetV.js @@ -4,20 +4,22 @@ var GetIntrinsic = require('get-intrinsic'); var $TypeError = GetIntrinsic('%TypeError%'); +var inspect = require('object-inspect'); + var IsPropertyKey = require('./IsPropertyKey'); -var ToObject = require('./ToObject'); +// var ToObject = require('./ToObject'); -// https://ecma-international.org/ecma-262/6.0/#sec-getv +// https://262.ecma-international.org/6.0/#sec-getv module.exports = function GetV(V, P) { // 7.3.2.1 if (!IsPropertyKey(P)) { - throw new $TypeError('Assertion failed: IsPropertyKey(P) is not true'); + throw new $TypeError('Assertion failed: IsPropertyKey(P) is not true, got ' + inspect(P)); } // 7.3.2.2-3 - var O = ToObject(V); + // var O = ToObject(V); // 7.3.2.4 - return O[P]; + return V[P]; }; diff --git a/node_modules/es-abstract/2022/GetValueFromBuffer.js b/node_modules/es-abstract/2022/GetValueFromBuffer.js new file mode 100644 index 0000000000..8d3a2f4fc5 --- /dev/null +++ b/node_modules/es-abstract/2022/GetValueFromBuffer.js @@ -0,0 +1,110 @@ +'use strict'; + +var GetIntrinsic = require('get-intrinsic'); + +var $SyntaxError = GetIntrinsic('%SyntaxError%'); +var $TypeError = GetIntrinsic('%TypeError%'); +var $Uint8Array = GetIntrinsic('%Uint8Array%', true); + +var callBound = require('call-bind/callBound'); + +var $slice = callBound('Array.prototype.slice'); + +var isInteger = require('../helpers/isInteger'); + +var IsDetachedBuffer = require('./IsDetachedBuffer'); +var RawBytesToNumeric = require('./RawBytesToNumeric'); + +var isArrayBuffer = require('is-array-buffer'); +var isSharedArrayBuffer = require('is-shared-array-buffer'); +var safeConcat = require('safe-array-concat'); + +var table61 = { + __proto__: null, + $Int8: 1, + $Uint8: 1, + $Uint8C: 1, + $Int16: 2, + $Uint16: 2, + $Int32: 4, + $Uint32: 4, + $BigInt64: 8, + $BigUint64: 8, + $Float32: 4, + $Float64: 8 +}; + +var defaultEndianness = require('../helpers/defaultEndianness'); + +// https://262.ecma-international.org/11.0/#sec-getvaluefrombuffer + +module.exports = function GetValueFromBuffer(arrayBuffer, byteIndex, type, isTypedArray, order) { + var isSAB = isSharedArrayBuffer(arrayBuffer); + if (!isArrayBuffer(arrayBuffer) && !isSAB) { + throw new $TypeError('Assertion failed: `arrayBuffer` must be an ArrayBuffer or a SharedArrayBuffer'); + } + + if (!isInteger(byteIndex)) { + throw new $TypeError('Assertion failed: `byteIndex` must be an integer'); + } + + if (typeof type !== 'string' || typeof table61['$' + type] !== 'number') { + throw new $TypeError('Assertion failed: `type` must be a Typed Array element type'); + } + + if (typeof isTypedArray !== 'boolean') { + throw new $TypeError('Assertion failed: `isTypedArray` must be a boolean'); + } + + if (order !== 'SeqCst' && order !== 'Unordered') { + throw new $TypeError('Assertion failed: `order` must be either `SeqCst` or `Unordered`'); + } + + if (arguments.length > 5 && typeof arguments[5] !== 'boolean') { + throw new $TypeError('Assertion failed: `isLittleEndian` must be a boolean, if present'); + } + + if (IsDetachedBuffer(arrayBuffer)) { + throw new $TypeError('Assertion failed: `arrayBuffer` is detached'); // step 1 + } + + // 2. Assert: There are sufficient bytes in arrayBuffer starting at byteIndex to represent a value of type. + + if (byteIndex < 0) { + throw new $TypeError('Assertion failed: `byteIndex` must be non-negative'); // step 3 + } + + // 4. Let block be arrayBuffer.[[ArrayBufferData]]. + + var elementSize = table61['$' + type]; // step 5 + if (!elementSize) { + throw new $TypeError('Assertion failed: `type` must be one of "Int8", "Uint8", "Uint8C", "Int16", "Uint16", "Int32", "Uint32", "BigInt64", "BigUint64", "Float32", or "Float64"'); + } + + var rawValue; + if (isSAB) { // step 6 + /* + a. Let execution be the [[CandidateExecution]] field of the surrounding agent's Agent Record. + b. Let eventList be the [[EventList]] field of the element in execution.[[EventLists]] whose [[AgentSignifier]] is AgentSignifier(). + c. If isTypedArray is true and type is "Int8", "Uint8", "Int16", "Uint16", "Int32", or "Uint32", let noTear be true; otherwise let noTear be false. + d. Let rawValue be a List of length elementSize of nondeterministically chosen byte values. + e. NOTE: In implementations, rawValue is the result of a non-atomic or atomic read instruction on the underlying hardware. The nondeterminism is a semantic prescription of the memory model to describe observable behaviour of hardware with weak consistency. + f. Let readEvent be ReadSharedMemory{ [[Order]]: order, [[NoTear]]: noTear, [[Block]]: block, [[ByteIndex]]: byteIndex, [[ElementSize]]: elementSize }. + g. Append readEvent to eventList. + h. Append Chosen Value Record { [[Event]]: readEvent, [[ChosenValue]]: rawValue } to execution.[[ChosenValues]]. + */ + throw new $SyntaxError('SharedArrayBuffer is not supported by this implementation'); + } else { + // 7. Let rawValue be a List of elementSize containing, in order, the elementSize sequence of bytes starting with block[byteIndex]. + rawValue = $slice(new $Uint8Array(arrayBuffer, byteIndex), 0, elementSize); // step 6 + } + + // 8. If isLittleEndian is not present, set isLittleEndian to either true or false. The choice is implementation dependent and should be the alternative that is most efficient for the implementation. An implementation must use the same value each time this step is executed and the same value must be used for the corresponding step in the SetValueInBuffer abstract operation. + var isLittleEndian = arguments.length > 5 ? arguments[5] : defaultEndianness === 'little'; // step 8 + + var bytes = isLittleEndian + ? $slice(safeConcat([0, 0, 0, 0, 0, 0, 0, 0], rawValue), -elementSize) + : $slice(safeConcat(rawValue, [0, 0, 0, 0, 0, 0, 0, 0]), 0, elementSize); + + return RawBytesToNumeric(type, bytes, isLittleEndian); +}; diff --git a/node_modules/es-abstract/2022/HasOwnProperty.js b/node_modules/es-abstract/2022/HasOwnProperty.js index 04d28495f9..1f29ba4df1 100644 --- a/node_modules/es-abstract/2022/HasOwnProperty.js +++ b/node_modules/es-abstract/2022/HasOwnProperty.js @@ -9,7 +9,7 @@ var has = require('has'); var IsPropertyKey = require('./IsPropertyKey'); var Type = require('./Type'); -// https://ecma-international.org/ecma-262/6.0/#sec-hasownproperty +// https://262.ecma-international.org/6.0/#sec-hasownproperty module.exports = function HasOwnProperty(O, P) { if (Type(O) !== 'Object') { diff --git a/node_modules/es-abstract/2022/HasProperty.js b/node_modules/es-abstract/2022/HasProperty.js index b341654e7c..91476d208b 100644 --- a/node_modules/es-abstract/2022/HasProperty.js +++ b/node_modules/es-abstract/2022/HasProperty.js @@ -7,7 +7,7 @@ var $TypeError = GetIntrinsic('%TypeError%'); var IsPropertyKey = require('./IsPropertyKey'); var Type = require('./Type'); -// https://ecma-international.org/ecma-262/6.0/#sec-hasproperty +// https://262.ecma-international.org/6.0/#sec-hasproperty module.exports = function HasProperty(O, P) { if (Type(O) !== 'Object') { diff --git a/node_modules/es-abstract/2022/InstanceofOperator.js b/node_modules/es-abstract/2022/InstanceofOperator.js index a3c4d23755..4a34d0c20c 100644 --- a/node_modules/es-abstract/2022/InstanceofOperator.js +++ b/node_modules/es-abstract/2022/InstanceofOperator.js @@ -13,7 +13,7 @@ var OrdinaryHasInstance = require('./OrdinaryHasInstance'); var ToBoolean = require('./ToBoolean'); var Type = require('./Type'); -// https://ecma-international.org/ecma-262/6.0/#sec-instanceofoperator +// https://262.ecma-international.org/6.0/#sec-instanceofoperator module.exports = function InstanceofOperator(O, C) { if (Type(O) !== 'Object') { diff --git a/node_modules/es-abstract/2022/Invoke.js b/node_modules/es-abstract/2022/Invoke.js index d4214ee516..084e5e2825 100644 --- a/node_modules/es-abstract/2022/Invoke.js +++ b/node_modules/es-abstract/2022/Invoke.js @@ -9,7 +9,7 @@ var IsArray = require('./IsArray'); var GetV = require('./GetV'); var IsPropertyKey = require('./IsPropertyKey'); -// https://ecma-international.org/ecma-262/6.0/#sec-invoke +// https://262.ecma-international.org/6.0/#sec-invoke module.exports = function Invoke(O, P) { if (!IsPropertyKey(P)) { diff --git a/node_modules/es-abstract/2022/IsAccessorDescriptor.js b/node_modules/es-abstract/2022/IsAccessorDescriptor.js index 78563e7ecc..da64a302ac 100644 --- a/node_modules/es-abstract/2022/IsAccessorDescriptor.js +++ b/node_modules/es-abstract/2022/IsAccessorDescriptor.js @@ -2,11 +2,11 @@ var has = require('has'); -var assertRecord = require('../helpers/assertRecord'); - var Type = require('./Type'); -// https://ecma-international.org/ecma-262/6.0/#sec-isaccessordescriptor +var assertRecord = require('../helpers/assertRecord'); + +// https://262.ecma-international.org/5.1/#sec-8.10.1 module.exports = function IsAccessorDescriptor(Desc) { if (typeof Desc === 'undefined') { diff --git a/node_modules/es-abstract/2022/IsArray.js b/node_modules/es-abstract/2022/IsArray.js index 600ffa0028..c2c48c1f23 100644 --- a/node_modules/es-abstract/2022/IsArray.js +++ b/node_modules/es-abstract/2022/IsArray.js @@ -1,4 +1,4 @@ 'use strict'; -// https://ecma-international.org/ecma-262/6.0/#sec-isarray +// https://262.ecma-international.org/6.0/#sec-isarray module.exports = require('../helpers/IsArray'); diff --git a/node_modules/es-abstract/2022/IsConcatSpreadable.js b/node_modules/es-abstract/2022/IsConcatSpreadable.js index 141b33414d..10e1eab216 100644 --- a/node_modules/es-abstract/2022/IsConcatSpreadable.js +++ b/node_modules/es-abstract/2022/IsConcatSpreadable.js @@ -9,7 +9,7 @@ var IsArray = require('./IsArray'); var ToBoolean = require('./ToBoolean'); var Type = require('./Type'); -// https://ecma-international.org/ecma-262/6.0/#sec-isconcatspreadable +// https://262.ecma-international.org/6.0/#sec-isconcatspreadable module.exports = function IsConcatSpreadable(O) { if (Type(O) !== 'Object') { diff --git a/node_modules/es-abstract/2022/IsConstructor.js b/node_modules/es-abstract/2022/IsConstructor.js index fe626e1834..62ac47f6a3 100644 --- a/node_modules/es-abstract/2022/IsConstructor.js +++ b/node_modules/es-abstract/2022/IsConstructor.js @@ -12,7 +12,7 @@ try { DefinePropertyOrThrow = null; } -// https://ecma-international.org/ecma-262/6.0/#sec-isconstructor +// https://262.ecma-international.org/6.0/#sec-isconstructor if (DefinePropertyOrThrow && $construct) { var isConstructorMarker = {}; diff --git a/node_modules/es-abstract/2022/IsDataDescriptor.js b/node_modules/es-abstract/2022/IsDataDescriptor.js index 00d14a60eb..9db441e965 100644 --- a/node_modules/es-abstract/2022/IsDataDescriptor.js +++ b/node_modules/es-abstract/2022/IsDataDescriptor.js @@ -2,11 +2,11 @@ var has = require('has'); -var assertRecord = require('../helpers/assertRecord'); - var Type = require('./Type'); -// https://ecma-international.org/ecma-262/6.0/#sec-isdatadescriptor +var assertRecord = require('../helpers/assertRecord'); + +// https://262.ecma-international.org/5.1/#sec-8.10.2 module.exports = function IsDataDescriptor(Desc) { if (typeof Desc === 'undefined') { diff --git a/node_modules/es-abstract/2022/IsDetachedBuffer.js b/node_modules/es-abstract/2022/IsDetachedBuffer.js index 4b373e9ab5..01529bca2c 100644 --- a/node_modules/es-abstract/2022/IsDetachedBuffer.js +++ b/node_modules/es-abstract/2022/IsDetachedBuffer.js @@ -4,10 +4,7 @@ var GetIntrinsic = require('get-intrinsic'); var $TypeError = GetIntrinsic('%TypeError%'); -var callBound = require('call-bind/callBound'); - -var $byteLength = callBound('%ArrayBuffer.prototype.byteLength%', true) - || function byteLength(ab) { return ab.byteLength; }; // in node < 0.11, byteLength is an own nonconfigurable property +var $byteLength = require('array-buffer-byte-length'); var isArrayBuffer = require('is-array-buffer'); @@ -23,7 +20,7 @@ module.exports = function IsDetachedBuffer(arrayBuffer) { try { new global[availableTypedArrays[0]](arrayBuffer); // eslint-disable-line no-new } catch (error) { - return error.name === 'TypeError'; + return !!error && error.name === 'TypeError'; } } return false; diff --git a/node_modules/es-abstract/2022/IsExtensible.js b/node_modules/es-abstract/2022/IsExtensible.js index d6e3638401..aa19b914c2 100644 --- a/node_modules/es-abstract/2022/IsExtensible.js +++ b/node_modules/es-abstract/2022/IsExtensible.js @@ -7,7 +7,7 @@ var $isExtensible = GetIntrinsic('%Object.isExtensible%', true); var isPrimitive = require('../helpers/isPrimitive'); -// https://ecma-international.org/ecma-262/6.0/#sec-isextensible-o +// https://262.ecma-international.org/6.0/#sec-isextensible-o module.exports = $preventExtensions ? function IsExtensible(obj) { diff --git a/node_modules/es-abstract/2022/IsGenericDescriptor.js b/node_modules/es-abstract/2022/IsGenericDescriptor.js index 95b1d353c5..d43bec2b35 100644 --- a/node_modules/es-abstract/2022/IsGenericDescriptor.js +++ b/node_modules/es-abstract/2022/IsGenericDescriptor.js @@ -6,7 +6,7 @@ var IsAccessorDescriptor = require('./IsAccessorDescriptor'); var IsDataDescriptor = require('./IsDataDescriptor'); var Type = require('./Type'); -// https://ecma-international.org/ecma-262/6.0/#sec-isgenericdescriptor +// https://262.ecma-international.org/6.0/#sec-isgenericdescriptor module.exports = function IsGenericDescriptor(Desc) { if (typeof Desc === 'undefined') { diff --git a/node_modules/es-abstract/2022/IsIntegralNumber.js b/node_modules/es-abstract/2022/IsIntegralNumber.js index 0a02bfe0f1..644b936d91 100644 --- a/node_modules/es-abstract/2022/IsIntegralNumber.js +++ b/node_modules/es-abstract/2022/IsIntegralNumber.js @@ -1,18 +1,9 @@ 'use strict'; -var abs = require('./abs'); -var floor = require('./floor'); -var Type = require('./Type'); +var isInteger = require('../helpers/isInteger'); -var $isNaN = require('../helpers/isNaN'); -var $isFinite = require('../helpers/isFinite'); - -// https://tc39.es/ecma262/#sec-isintegralnumber +// https://262.ecma-international.org/12.0/#sec-isinteger module.exports = function IsIntegralNumber(argument) { - if (Type(argument) !== 'Number' || $isNaN(argument) || !$isFinite(argument)) { - return false; - } - var absValue = abs(argument); - return floor(absValue) === absValue; + return isInteger(argument); }; diff --git a/node_modules/es-abstract/2022/IsLessThan.js b/node_modules/es-abstract/2022/IsLessThan.js index 326b5a08c5..72cf2533de 100644 --- a/node_modules/es-abstract/2022/IsLessThan.js +++ b/node_modules/es-abstract/2022/IsLessThan.js @@ -86,5 +86,5 @@ module.exports = function IsLessThan(x, y, LeftFirst) { return false; } - return nx < ny; // by now, these are both nonzero, finite, and not equal + return nx < ny; // by now, these are both finite, and the same type }; diff --git a/node_modules/es-abstract/2022/IsPromise.js b/node_modules/es-abstract/2022/IsPromise.js index a551ae0c8b..411539b081 100644 --- a/node_modules/es-abstract/2022/IsPromise.js +++ b/node_modules/es-abstract/2022/IsPromise.js @@ -6,7 +6,7 @@ var $PromiseThen = callBound('Promise.prototype.then', true); var Type = require('./Type'); -// https://ecma-international.org/ecma-262/6.0/#sec-ispromise +// https://262.ecma-international.org/6.0/#sec-ispromise module.exports = function IsPromise(x) { if (Type(x) !== 'Object') { diff --git a/node_modules/es-abstract/2022/IsPropertyKey.js b/node_modules/es-abstract/2022/IsPropertyKey.js index f43ab581c7..aaeb6f9b6f 100644 --- a/node_modules/es-abstract/2022/IsPropertyKey.js +++ b/node_modules/es-abstract/2022/IsPropertyKey.js @@ -1,6 +1,6 @@ 'use strict'; -// https://ecma-international.org/ecma-262/6.0/#sec-ispropertykey +// https://262.ecma-international.org/6.0/#sec-ispropertykey module.exports = function IsPropertyKey(argument) { return typeof argument === 'string' || typeof argument === 'symbol'; diff --git a/node_modules/es-abstract/2022/IsRegExp.js b/node_modules/es-abstract/2022/IsRegExp.js index e1054813f1..33d983dc8d 100644 --- a/node_modules/es-abstract/2022/IsRegExp.js +++ b/node_modules/es-abstract/2022/IsRegExp.js @@ -8,7 +8,7 @@ var hasRegExpMatcher = require('is-regex'); var ToBoolean = require('./ToBoolean'); -// https://ecma-international.org/ecma-262/6.0/#sec-isregexp +// https://262.ecma-international.org/6.0/#sec-isregexp module.exports = function IsRegExp(argument) { if (!argument || typeof argument !== 'object') { diff --git a/node_modules/es-abstract/2022/IsValidIntegerIndex.js b/node_modules/es-abstract/2022/IsValidIntegerIndex.js new file mode 100644 index 0000000000..830416312d --- /dev/null +++ b/node_modules/es-abstract/2022/IsValidIntegerIndex.js @@ -0,0 +1,33 @@ +'use strict'; + +var GetIntrinsic = require('get-intrinsic'); + +var $TypeError = GetIntrinsic('%TypeError%'); + +var IsDetachedBuffer = require('./IsDetachedBuffer'); +var IsIntegralNumber = require('./IsIntegralNumber'); + +var isNegativeZero = require('../helpers/isNegativeZero'); + +var typedArrayBuffer = require('typed-array-buffer'); + +// https://262.ecma-international.org/12.0/#sec-isvalidintegerindex + +module.exports = function IsValidIntegerIndex(O, index) { + // Assert: O is an Integer-Indexed exotic object. + var buffer = typedArrayBuffer(O); // step 1 + + if (typeof index !== 'number') { + throw new $TypeError('Assertion failed: Type(index) is not Number'); + } + + if (IsDetachedBuffer(buffer)) { return false; } // step 2 + + if (!IsIntegralNumber(index)) { return false; } // step 3 + + if (isNegativeZero(index)) { return false; } // step 4 + + if (index < 0 || index >= O.length) { return false; } // step 5 + + return true; // step 6 +}; diff --git a/node_modules/es-abstract/2022/IsWordChar.js b/node_modules/es-abstract/2022/IsWordChar.js new file mode 100644 index 0000000000..0df6b20249 --- /dev/null +++ b/node_modules/es-abstract/2022/IsWordChar.js @@ -0,0 +1,48 @@ +'use strict'; + +var GetIntrinsic = require('get-intrinsic'); + +var $TypeError = GetIntrinsic('%TypeError%'); + +var callBound = require('call-bind/callBound'); + +var $indexOf = callBound('String.prototype.indexOf'); + +var IsArray = require('./IsArray'); +var IsIntegralNumber = require('./IsIntegralNumber'); +var Type = require('./Type'); +var WordCharacters = require('./WordCharacters'); + +var every = require('../helpers/every'); + +var isChar = function isChar(c) { + return typeof c === 'string'; +}; + +// https://262.ecma-international.org/12.0/#sec-runtime-semantics-iswordchar-abstract-operation + +// note: prior to ES2023, this AO erroneously omitted the latter of its arguments. +module.exports = function IsWordChar(e, InputLength, Input, IgnoreCase, Unicode) { + if (!IsIntegralNumber(e)) { + throw new $TypeError('Assertion failed: `e` must be an integer'); + } + if (!IsIntegralNumber(InputLength)) { + throw new $TypeError('Assertion failed: `InputLength` must be an integer'); + } + if (!IsArray(Input) || !every(Input, isChar)) { + throw new $TypeError('Assertion failed: `Input` must be a List of characters'); + } + if (Type(IgnoreCase) !== 'Boolean' || Type(Unicode) !== 'Boolean') { + throw new $TypeError('Assertion failed: `IgnoreCase` and `Unicode` must be booleans'); + } + + if (e === -1 || e === InputLength) { + return false; // step 1 + } + + var c = Input[e]; // step 2 + + var wordChars = WordCharacters(IgnoreCase, Unicode); + + return $indexOf(wordChars, c) > -1; // steps 3-4 +}; diff --git a/node_modules/es-abstract/2022/IteratorClose.js b/node_modules/es-abstract/2022/IteratorClose.js index f703ea632f..7c1076082e 100644 --- a/node_modules/es-abstract/2022/IteratorClose.js +++ b/node_modules/es-abstract/2022/IteratorClose.js @@ -10,7 +10,7 @@ var GetMethod = require('./GetMethod'); var IsCallable = require('./IsCallable'); var Type = require('./Type'); -// https://ecma-international.org/ecma-262/6.0/#sec-iteratorclose +// https://262.ecma-international.org/6.0/#sec-iteratorclose module.exports = function IteratorClose(iterator, completion) { if (Type(iterator) !== 'Object') { diff --git a/node_modules/es-abstract/2022/IteratorComplete.js b/node_modules/es-abstract/2022/IteratorComplete.js index ed4efa37d5..29f5f75fea 100644 --- a/node_modules/es-abstract/2022/IteratorComplete.js +++ b/node_modules/es-abstract/2022/IteratorComplete.js @@ -8,7 +8,7 @@ var Get = require('./Get'); var ToBoolean = require('./ToBoolean'); var Type = require('./Type'); -// https://ecma-international.org/ecma-262/6.0/#sec-iteratorcomplete +// https://262.ecma-international.org/6.0/#sec-iteratorcomplete module.exports = function IteratorComplete(iterResult) { if (Type(iterResult) !== 'Object') { diff --git a/node_modules/es-abstract/2022/IteratorNext.js b/node_modules/es-abstract/2022/IteratorNext.js index cf80655b93..d84d66edb5 100644 --- a/node_modules/es-abstract/2022/IteratorNext.js +++ b/node_modules/es-abstract/2022/IteratorNext.js @@ -7,7 +7,7 @@ var $TypeError = GetIntrinsic('%TypeError%'); var Invoke = require('./Invoke'); var Type = require('./Type'); -// https://ecma-international.org/ecma-262/6.0/#sec-iteratornext +// https://262.ecma-international.org/6.0/#sec-iteratornext module.exports = function IteratorNext(iterator, value) { var result = Invoke(iterator, 'next', arguments.length < 2 ? [] : [value]); diff --git a/node_modules/es-abstract/2022/IteratorStep.js b/node_modules/es-abstract/2022/IteratorStep.js index 41b9d1b251..85bcd95c04 100644 --- a/node_modules/es-abstract/2022/IteratorStep.js +++ b/node_modules/es-abstract/2022/IteratorStep.js @@ -3,7 +3,7 @@ var IteratorComplete = require('./IteratorComplete'); var IteratorNext = require('./IteratorNext'); -// https://ecma-international.org/ecma-262/6.0/#sec-iteratorstep +// https://262.ecma-international.org/6.0/#sec-iteratorstep module.exports = function IteratorStep(iterator) { var result = IteratorNext(iterator); diff --git a/node_modules/es-abstract/2022/IteratorValue.js b/node_modules/es-abstract/2022/IteratorValue.js index d15d8aebbf..e9b16daed5 100644 --- a/node_modules/es-abstract/2022/IteratorValue.js +++ b/node_modules/es-abstract/2022/IteratorValue.js @@ -7,7 +7,7 @@ var $TypeError = GetIntrinsic('%TypeError%'); var Get = require('./Get'); var Type = require('./Type'); -// https://ecma-international.org/ecma-262/6.0/#sec-iteratorvalue +// https://262.ecma-international.org/6.0/#sec-iteratorvalue module.exports = function IteratorValue(iterResult) { if (Type(iterResult) !== 'Object') { diff --git a/node_modules/es-abstract/2022/MakeDay.js b/node_modules/es-abstract/2022/MakeDay.js index db78bbc74a..161ccaf23d 100644 --- a/node_modules/es-abstract/2022/MakeDay.js +++ b/node_modules/es-abstract/2022/MakeDay.js @@ -14,7 +14,7 @@ var MonthFromTime = require('./MonthFromTime'); var ToIntegerOrInfinity = require('./ToIntegerOrInfinity'); var YearFromTime = require('./YearFromTime'); -// https://ecma-international.org/ecma-262/5.1/#sec-15.9.1.12 +// https://262.ecma-international.org/5.1/#sec-15.9.1.12 module.exports = function MakeDay(year, month, date) { if (!$isFinite(year) || !$isFinite(month) || !$isFinite(date)) { diff --git a/node_modules/es-abstract/2022/MakeMatchIndicesIndexPairArray.js b/node_modules/es-abstract/2022/MakeMatchIndicesIndexPairArray.js index 3424203f96..962f5d8be8 100644 --- a/node_modules/es-abstract/2022/MakeMatchIndicesIndexPairArray.js +++ b/node_modules/es-abstract/2022/MakeMatchIndicesIndexPairArray.js @@ -25,7 +25,7 @@ var isMatchRecordOrUndefined = function isMatchRecordOrUndefined(m) { var MAX_ARRAY_LENGTH = Math.pow(2, 32) - 1; -// https://ecma-international.org/ecma-262/13.0/#sec-getmatchindexpair +// https://262.ecma-international.org/13.0/#sec-getmatchindexpair module.exports = function MakeMatchIndicesIndexPairArray(S, indices, groupNames, hasGroups) { if (Type(S) !== 'String') { diff --git a/node_modules/es-abstract/2022/MakeTime.js b/node_modules/es-abstract/2022/MakeTime.js index 330d3bdbce..a11d07ef83 100644 --- a/node_modules/es-abstract/2022/MakeTime.js +++ b/node_modules/es-abstract/2022/MakeTime.js @@ -8,7 +8,7 @@ var msPerHour = timeConstants.msPerHour; var ToIntegerOrInfinity = require('./ToIntegerOrInfinity'); -// https://ecma-international.org/ecma-262/5.1/#sec-15.9.1.11 +// https://262.ecma-international.org/12.0/#sec-maketime module.exports = function MakeTime(hour, min, sec, ms) { if (!$isFinite(hour) || !$isFinite(min) || !$isFinite(sec) || !$isFinite(ms)) { diff --git a/node_modules/es-abstract/2022/NewPromiseCapability.js b/node_modules/es-abstract/2022/NewPromiseCapability.js new file mode 100644 index 0000000000..e30b08811d --- /dev/null +++ b/node_modules/es-abstract/2022/NewPromiseCapability.js @@ -0,0 +1,36 @@ +'use strict'; + +var GetIntrinsic = require('get-intrinsic'); + +var $TypeError = GetIntrinsic('%TypeError%'); + +var IsCallable = require('es-abstract/2022/IsCallable'); +var IsConstructor = require('es-abstract/2022/IsConstructor'); + +// https://262.ecma-international.org/6.0/#sec-newpromisecapability + +module.exports = function NewPromiseCapability(C) { + if (!IsConstructor(C)) { + throw new $TypeError('C must be a constructor'); // step 1 + } + + var resolvingFunctions = { '[[Resolve]]': void undefined, '[[Reject]]': void undefined }; // step 3 + + var promise = new C(function (resolve, reject) { // steps 4-5 + if (typeof resolvingFunctions['[[Resolve]]'] !== 'undefined' || typeof resolvingFunctions['[[Reject]]'] !== 'undefined') { + throw new $TypeError('executor has already been called'); // step 4.a, 4.b + } + resolvingFunctions['[[Resolve]]'] = resolve; // step 4.c + resolvingFunctions['[[Reject]]'] = reject; // step 4.d + }); // step 4-6 + + if (!IsCallable(resolvingFunctions['[[Resolve]]']) || !IsCallable(resolvingFunctions['[[Reject]]'])) { + throw new $TypeError('executor must provide valid resolve and reject functions'); // steps 7-8 + } + + return { + '[[Promise]]': promise, + '[[Resolve]]': resolvingFunctions['[[Resolve]]'], + '[[Reject]]': resolvingFunctions['[[Reject]]'] + }; // step 9 +}; diff --git a/node_modules/es-abstract/2022/NumericToRawBytes.js b/node_modules/es-abstract/2022/NumericToRawBytes.js index 91549fb991..cc671159f4 100644 --- a/node_modules/es-abstract/2022/NumericToRawBytes.js +++ b/node_modules/es-abstract/2022/NumericToRawBytes.js @@ -2,25 +2,8 @@ var GetIntrinsic = require('get-intrinsic'); -var $floor = GetIntrinsic('%Math.floor%'); -var $log = GetIntrinsic('%Math.log%'); -var $log2E = GetIntrinsic('%Math.LOG2E%'); -var $log2 = GetIntrinsic('%Math.log2%', true) || function log2(x) { - return $log(x) * $log2E; -}; -var $parseInt = GetIntrinsic('%parseInt%'); -var $pow = GetIntrinsic('%Math.pow%'); -var $Number = GetIntrinsic('%Number%'); var $TypeError = GetIntrinsic('%TypeError%'); -var $BigInt = GetIntrinsic('%BigInt%', true); - -var callBound = require('call-bind/callBound'); -var $reverse = callBound('Array.prototype.reverse'); -var $numberToString = callBound('Number.prototype.toString'); -var $strSlice = callBound('String.prototype.slice'); - -var abs = require('./abs'); var hasOwnProperty = require('./HasOwnProperty'); var ToBigInt64 = require('./ToBigInt64'); var ToBigUint64 = require('./ToBigUint64'); @@ -33,8 +16,9 @@ var ToUint8 = require('./ToUint8'); var ToUint8Clamp = require('./ToUint8Clamp'); var Type = require('./Type'); -var isNaN = require('../helpers/isNaN'); -var isFinite = require('../helpers/isFinite'); +var valueToFloat32Bytes = require('../helpers/valueToFloat32Bytes'); +var valueToFloat64Bytes = require('../helpers/valueToFloat64Bytes'); +var integerToNBytes = require('../helpers/integerToNBytes'); var keys = require('object-keys'); @@ -80,105 +64,10 @@ module.exports = function NumericToRawBytes(type, value, isLittleEndian) { throw new $TypeError('Assertion failed: `isLittleEndian` must be a Boolean'); } - var rawBytes = []; - var exponent; - if (type === 'Float32') { // step 1 - if (isNaN(value)) { - return isLittleEndian ? [0, 0, 192, 127] : [127, 192, 0, 0]; // hardcoded - } - - var leastSig; - - if (value === 0) { - leastSig = Object.is(value, -0) ? 0x80 : 0; - return isLittleEndian ? [0, 0, 0, leastSig] : [leastSig, 0, 0, 0]; - } - - if (!isFinite(value)) { - leastSig = value < 0 ? 255 : 127; - return isLittleEndian ? [0, 0, 128, leastSig] : [leastSig, 128, 0, 0]; - } - - var sign = value < 0 ? 1 : 0; - value = abs(value); // eslint-disable-line no-param-reassign - - exponent = 0; - while (value >= 2) { - exponent += 1; - value /= 2; // eslint-disable-line no-param-reassign - } - - while (value < 1) { - exponent -= 1; - value *= 2; // eslint-disable-line no-param-reassign - } - - var mantissa = value - 1; - mantissa *= $pow(2, 23); - mantissa = $floor(mantissa); - - exponent += 127; - exponent = exponent << 23; - - var result = sign << 31; - result |= exponent; - result |= mantissa; - - var byte0 = result & 255; - result = result >> 8; - var byte1 = result & 255; - result = result >> 8; - var byte2 = result & 255; - result = result >> 8; - var byte3 = result & 255; - - if (isLittleEndian) { - return [byte0, byte1, byte2, byte3]; - } - return [byte3, byte2, byte1, byte0]; + return valueToFloat32Bytes(value, isLittleEndian); } else if (type === 'Float64') { // step 2 - if (value === 0) { - leastSig = Object.is(value, -0) ? 0x80 : 0; - return isLittleEndian ? [0, 0, 0, 0, 0, 0, 0, leastSig] : [leastSig, 0, 0, 0, 0, 0, 0, 0]; - } - if (isNaN(value)) { - return isLittleEndian ? [0, 0, 0, 0, 0, 0, 248, 127] : [127, 248, 0, 0, 0, 0, 0, 0]; - } - if (!isFinite(value)) { - var infBytes = value < 0 ? [0, 0, 0, 0, 0, 0, 240, 255] : [0, 0, 0, 0, 0, 0, 240, 127]; - return isLittleEndian ? infBytes : $reverse(infBytes); - } - - var isNegative = value < 0; - if (isNegative) { value = -value; } // eslint-disable-line no-param-reassign - - exponent = $floor($log2(value)); - var significand = (value / $pow(2, exponent)) - 1; - - var bitString = ''; - for (var i = 0; i < 52; i++) { - significand *= 2; - if (significand >= 1) { - bitString += '1'; - significand -= 1; - } else { - bitString += '0'; - } - } - - exponent += 1023; - var exponentBits = $numberToString(exponent, 2); - while (exponentBits.length < 11) { exponentBits = '0' + exponentBits; } - - var fullBitString = (isNegative ? '1' : '0') + exponentBits + bitString; - while (fullBitString.length < 64) { fullBitString = '0' + fullBitString; } - - for (i = 0; i < 8; i++) { - rawBytes[i] = $parseInt($strSlice(fullBitString, i * 8, (i + 1) * 8), 2); - } - - return isLittleEndian ? $reverse(rawBytes) : rawBytes; + return valueToFloat64Bytes(value, isLittleEndian); } // step 3 var n = TypeToSizes[type]; // step 3.a @@ -187,23 +76,5 @@ module.exports = function NumericToRawBytes(type, value, isLittleEndian) { var intValue = convOp(value); // step 3.c - var isBigInt = type === 'BigInt64' || type === 'BigUint64'; - /* - if (intValue >= 0) { // step 3.d - // Let rawBytes be a List containing the n-byte binary encoding of intValue. If isLittleEndian is false, the bytes are ordered in big endian order. Otherwise, the bytes are ordered in little endian order. - } else { // step 3.e - // Let rawBytes be a List containing the n-byte binary 2's complement encoding of intValue. If isLittleEndian is false, the bytes are ordered in big endian order. Otherwise, the bytes are ordered in little endian order. - } - */ - if (intValue < 0) { - intValue = intValue >>> 0; - } - var OxFF = isBigInt ? $BigInt(0xFF) : 0xFF; - var eight = isBigInt ? $BigInt(8) : 8; - for (i = 0; i < n; i++) { - rawBytes[isLittleEndian ? i : n - 1 - i] = $Number(intValue & OxFF); - intValue = intValue >> eight; - } - - return rawBytes; // step 4 + return integerToNBytes(intValue, n, isLittleEndian); // step 3.d, 3.e, 4 }; diff --git a/node_modules/es-abstract/2022/ObjectDefineProperties.js b/node_modules/es-abstract/2022/ObjectDefineProperties.js index f096f1edee..b47603487c 100644 --- a/node_modules/es-abstract/2022/ObjectDefineProperties.js +++ b/node_modules/es-abstract/2022/ObjectDefineProperties.js @@ -3,7 +3,6 @@ var callBound = require('call-bind/callBound'); var DefinePropertyOrThrow = require('./DefinePropertyOrThrow'); -var FromPropertyDescriptor = require('./FromPropertyDescriptor'); var Get = require('./Get'); var ToObject = require('./ToObject'); var ToPropertyDescriptor = require('./ToPropertyDescriptor'); @@ -32,7 +31,6 @@ module.exports = function ObjectDefineProperties(O, Properties) { forEach(descriptors, function (pair) { // step 5 var P = pair[0]; // step 5.a var desc = pair[1]; // step 5.b - desc = FromPropertyDescriptor(desc); // TODO: remove this once DefinePropertyOrThrow is fixed DefinePropertyOrThrow(O, P, desc); // step 5.c }); diff --git a/node_modules/es-abstract/2022/OrdinaryDefineOwnProperty.js b/node_modules/es-abstract/2022/OrdinaryDefineOwnProperty.js index 34f029f7e5..70cd4fe58d 100644 --- a/node_modules/es-abstract/2022/OrdinaryDefineOwnProperty.js +++ b/node_modules/es-abstract/2022/OrdinaryDefineOwnProperty.js @@ -17,7 +17,7 @@ var SameValue = require('./SameValue'); var Type = require('./Type'); var ValidateAndApplyPropertyDescriptor = require('./ValidateAndApplyPropertyDescriptor'); -// https://ecma-international.org/ecma-262/6.0/#sec-ordinarydefineownproperty +// https://262.ecma-international.org/6.0/#sec-ordinarydefineownproperty module.exports = function OrdinaryDefineOwnProperty(O, P, Desc) { if (Type(O) !== 'Object') { diff --git a/node_modules/es-abstract/2022/OrdinaryGetOwnProperty.js b/node_modules/es-abstract/2022/OrdinaryGetOwnProperty.js index fd8035acb9..c23abe1103 100644 --- a/node_modules/es-abstract/2022/OrdinaryGetOwnProperty.js +++ b/node_modules/es-abstract/2022/OrdinaryGetOwnProperty.js @@ -17,7 +17,7 @@ var IsRegExp = require('./IsRegExp'); var ToPropertyDescriptor = require('./ToPropertyDescriptor'); var Type = require('./Type'); -// https://ecma-international.org/ecma-262/6.0/#sec-ordinarygetownproperty +// https://262.ecma-international.org/6.0/#sec-ordinarygetownproperty module.exports = function OrdinaryGetOwnProperty(O, P) { if (Type(O) !== 'Object') { diff --git a/node_modules/es-abstract/2022/OrdinaryHasInstance.js b/node_modules/es-abstract/2022/OrdinaryHasInstance.js index 85a240ca2f..996a50e070 100644 --- a/node_modules/es-abstract/2022/OrdinaryHasInstance.js +++ b/node_modules/es-abstract/2022/OrdinaryHasInstance.js @@ -8,10 +8,10 @@ var Get = require('./Get'); var IsCallable = require('./IsCallable'); var Type = require('./Type'); -// https://ecma-international.org/ecma-262/6.0/#sec-ordinaryhasinstance +// https://262.ecma-international.org/6.0/#sec-ordinaryhasinstance module.exports = function OrdinaryHasInstance(C, O) { - if (IsCallable(C) === false) { + if (!IsCallable(C)) { return false; } if (Type(O) !== 'Object') { diff --git a/node_modules/es-abstract/2022/OrdinaryHasProperty.js b/node_modules/es-abstract/2022/OrdinaryHasProperty.js index dd09ca3b1b..27e7da33ad 100644 --- a/node_modules/es-abstract/2022/OrdinaryHasProperty.js +++ b/node_modules/es-abstract/2022/OrdinaryHasProperty.js @@ -7,7 +7,7 @@ var $TypeError = GetIntrinsic('%TypeError%'); var IsPropertyKey = require('./IsPropertyKey'); var Type = require('./Type'); -// https://ecma-international.org/ecma-262/6.0/#sec-ordinaryhasproperty +// https://262.ecma-international.org/6.0/#sec-ordinaryhasproperty module.exports = function OrdinaryHasProperty(O, P) { if (Type(O) !== 'Object') { diff --git a/node_modules/es-abstract/2022/QuoteJSONString.js b/node_modules/es-abstract/2022/QuoteJSONString.js index 0deebecf2b..e3851480c5 100644 --- a/node_modules/es-abstract/2022/QuoteJSONString.js +++ b/node_modules/es-abstract/2022/QuoteJSONString.js @@ -18,7 +18,7 @@ var UTF16EncodeCodePoint = require('./UTF16EncodeCodePoint'); var has = require('has'); -// https://ecma-international.org/ecma-262/12.0/#sec-quotejsonstring +// https://262.ecma-international.org/12.0/#sec-quotejsonstring var escapes = { '\u0008': '\\b', diff --git a/node_modules/es-abstract/2022/RawBytesToNumeric.js b/node_modules/es-abstract/2022/RawBytesToNumeric.js index c253b5d701..d14705cdcc 100644 --- a/node_modules/es-abstract/2022/RawBytesToNumeric.js +++ b/node_modules/es-abstract/2022/RawBytesToNumeric.js @@ -3,7 +3,6 @@ var GetIntrinsic = require('get-intrinsic'); var callBound = require('call-bind/callBound'); -var $pow = GetIntrinsic('%Math.pow%'); var $RangeError = GetIntrinsic('%RangeError%'); var $SyntaxError = GetIntrinsic('%SyntaxError%'); var $TypeError = GetIntrinsic('%TypeError%'); @@ -15,6 +14,9 @@ var IsBigIntElementType = require('./IsBigIntElementType'); var IsUnsignedElementType = require('./IsUnsignedElementType'); var Type = require('./Type'); +var bytesAsFloat32 = require('../helpers/bytesAsFloat32'); +var bytesAsFloat64 = require('../helpers/bytesAsFloat64'); +var bytesAsInteger = require('../helpers/bytesAsInteger'); var every = require('../helpers/every'); var isByteValue = require('../helpers/isByteValue'); @@ -67,90 +69,16 @@ module.exports = function RawBytesToNumeric(type, rawBytes, isLittleEndian) { // eslint-disable-next-line no-param-reassign rawBytes = $slice(rawBytes, 0, elementSize); if (!isLittleEndian) { - // eslint-disable-next-line no-param-reassign - rawBytes = $reverse(rawBytes); // step 2 + $reverse(rawBytes); // step 2 } - /* eslint no-redeclare: 1 */ if (type === 'Float32') { // step 3 - /* - Let value be the byte elements of rawBytes concatenated and interpreted as a little-endian bit string encoding of an IEEE 754-2008 binary32 value. -If value is an IEEE 754-2008 binary32 NaN value, return the NaN Number value. -Return the Number value that corresponds to value. - */ - var sign = (rawBytes[3] & 0x80) >> 7; // first bit - var exponent = ((rawBytes[3] & 0x7F) << 1) // 7 bits from index 3 - | ((rawBytes[2] & 0x80) >> 7); // 1 bit from index 2 - var mantissa = ((rawBytes[2] & 0x7F) << 16) // 7 bits from index 2 - | (rawBytes[1] << 8) // 8 bits from index 1 - | rawBytes[0]; // 8 bits from index 0 - - if (exponent === 0 && mantissa === 0) { - return sign === 0 ? 0 : -0; - } - if (exponent === 0xFF && mantissa === 0) { - return sign === 0 ? Infinity : -Infinity; - } - if (exponent === 0xFF && mantissa !== 0) { - return NaN; - } - - exponent -= 127; // subtract the bias - - // return $pow(-1, sign) * mantissa / $pow(2, 23) * $pow(2, exponent); - // return $pow(-1, sign) * (mantissa + 0x1000000) * $pow(2, exponent - 23); - return $pow(-1, sign) * (1 + (mantissa / $pow(2, 23))) * $pow(2, exponent); + return bytesAsFloat32(rawBytes); } if (type === 'Float64') { // step 4 - /* - Let value be the byte elements of rawBytes concatenated and interpreted as a little-endian bit string encoding of an IEEE 754-2008 binary64 value. -If value is an IEEE 754-2008 binary64 NaN value, return the NaN Number value. -Return the Number value that corresponds to value. - */ - var sign = rawBytes[7] & 0x80 ? -1 : 1; // first bit - var exponent = ((rawBytes[7] & 0x7F) << 4) // 7 bits from index 7 - | ((rawBytes[6] & 0xF0) >> 4); // 4 bits from index 6 - var mantissa = ((rawBytes[6] & 0x0F) * 0x1000000000000) // 4 bits from index 6 - + (rawBytes[5] * 0x10000000000) // 8 bits from index 5 - + (rawBytes[4] * 0x100000000) // 8 bits from index 4 - + (rawBytes[3] * 0x1000000) // 8 bits from index 3 - + (rawBytes[2] * 0x10000) // 8 bits from index 2 - + (rawBytes[1] * 0x100) // 8 bits from index 1 - + rawBytes[0]; // 8 bits from index 0 - - if (exponent === 0 && mantissa === 0) { - return sign * 0; - } - if (exponent === 0x7FF && mantissa !== 0) { - return NaN; - } - if (exponent === 0x7FF && mantissa === 0) { - return sign * Infinity; - } - - exponent -= 1023; // subtract the bias - - return sign * (mantissa + 0x10000000000000) * $pow(2, exponent - 52); + return bytesAsFloat64(rawBytes); } - // this is common to both branches - var intValue = isBigInt ? $BigInt(0) : 0; - for (var i = 0; i < rawBytes.length; i++) { - intValue |= isBigInt ? $BigInt(rawBytes[i]) << $BigInt(8 * i) : rawBytes[i] << (8 * i); - } - /* - Let intValue be the byte elements of rawBytes concatenated and interpreted as a bit string encoding of an unsigned little-endian binary number. - */ - - if (!IsUnsignedElementType(type)) { // steps 5-6 - // Let intValue be the byte elements of rawBytes concatenated and interpreted as a bit string encoding of a binary little-endian 2's complement number of bit length elementSize × 8. - var bitLength = elementSize * 8; - if (bitLength < 32) { - var x = isBigInt ? $BigInt(32 - bitLength) : 32 - bitLength; - intValue = (intValue << x) >> x; - } - } - - return intValue; // step 7 + return bytesAsInteger(rawBytes, elementSize, IsUnsignedElementType(type), isBigInt); }; diff --git a/node_modules/es-abstract/2022/RegExpExec.js b/node_modules/es-abstract/2022/RegExpExec.js index 29fee1720c..cf15207415 100644 --- a/node_modules/es-abstract/2022/RegExpExec.js +++ b/node_modules/es-abstract/2022/RegExpExec.js @@ -11,7 +11,7 @@ var Get = require('./Get'); var IsCallable = require('./IsCallable'); var Type = require('./Type'); -// https://ecma-international.org/ecma-262/6.0/#sec-regexpexec +// https://262.ecma-international.org/6.0/#sec-regexpexec module.exports = function RegExpExec(R, S) { if (Type(R) !== 'Object') { diff --git a/node_modules/es-abstract/2022/SameValueZero.js b/node_modules/es-abstract/2022/SameValueZero.js index bf1a1486a1..3e2851b5ee 100644 --- a/node_modules/es-abstract/2022/SameValueZero.js +++ b/node_modules/es-abstract/2022/SameValueZero.js @@ -2,7 +2,7 @@ var $isNaN = require('../helpers/isNaN'); -// https://ecma-international.org/ecma-262/6.0/#sec-samevaluezero +// https://262.ecma-international.org/6.0/#sec-samevaluezero module.exports = function SameValueZero(x, y) { return (x === y) || ($isNaN(x) && $isNaN(y)); diff --git a/node_modules/es-abstract/2022/Set.js b/node_modules/es-abstract/2022/Set.js index 0971498879..9697031363 100644 --- a/node_modules/es-abstract/2022/Set.js +++ b/node_modules/es-abstract/2022/Set.js @@ -18,7 +18,7 @@ var noThrowOnStrictViolation = (function () { } }()); -// https://ecma-international.org/ecma-262/6.0/#sec-set-o-p-v-throw +// https://262.ecma-international.org/6.0/#sec-set-o-p-v-throw module.exports = function Set(O, P, V, Throw) { if (Type(O) !== 'Object') { diff --git a/node_modules/es-abstract/2022/SetFunctionLength.js b/node_modules/es-abstract/2022/SetFunctionLength.js index 8c06b2423f..fbf9f2352a 100644 --- a/node_modules/es-abstract/2022/SetFunctionLength.js +++ b/node_modules/es-abstract/2022/SetFunctionLength.js @@ -7,10 +7,11 @@ var $TypeError = GetIntrinsic('%TypeError%'); var DefinePropertyOrThrow = require('./DefinePropertyOrThrow'); var HasOwnProperty = require('./HasOwnProperty'); var IsExtensible = require('./IsExtensible'); -var IsIntegralNumber = require('./IsIntegralNumber'); var Type = require('./Type'); -// https://ecma-international.org/ecma-262/12.0/#sec-setfunctionlength +var isInteger = require('../helpers/isInteger'); + +// https://262.ecma-international.org/12.0/#sec-setfunctionlength module.exports = function SetFunctionLength(F, length) { if (typeof F !== 'function' || !IsExtensible(F) || HasOwnProperty(F, 'length')) { @@ -19,7 +20,7 @@ module.exports = function SetFunctionLength(F, length) { if (Type(length) !== 'Number') { throw new $TypeError('Assertion failed: `length` must be a Number'); } - if (length !== Infinity && (!IsIntegralNumber(length) || length < 0)) { + if (length !== Infinity && (!isInteger(length) || length < 0)) { throw new $TypeError('Assertion failed: `length` must be ∞, or an integer >= 0'); } return DefinePropertyOrThrow(F, 'length', { diff --git a/node_modules/es-abstract/2022/SetFunctionName.js b/node_modules/es-abstract/2022/SetFunctionName.js index 03ec2227c7..f7fb0a9aab 100644 --- a/node_modules/es-abstract/2022/SetFunctionName.js +++ b/node_modules/es-abstract/2022/SetFunctionName.js @@ -12,7 +12,7 @@ var DefinePropertyOrThrow = require('./DefinePropertyOrThrow'); var IsExtensible = require('./IsExtensible'); var Type = require('./Type'); -// https://ecma-international.org/ecma-262/6.0/#sec-setfunctionname +// https://262.ecma-international.org/6.0/#sec-setfunctionname module.exports = function SetFunctionName(F, name) { if (typeof F !== 'function') { diff --git a/node_modules/es-abstract/2022/SetIntegrityLevel.js b/node_modules/es-abstract/2022/SetIntegrityLevel.js index 546f3e74f4..aaef85a0a2 100644 --- a/node_modules/es-abstract/2022/SetIntegrityLevel.js +++ b/node_modules/es-abstract/2022/SetIntegrityLevel.js @@ -15,7 +15,7 @@ var IsAccessorDescriptor = require('./IsAccessorDescriptor'); var ToPropertyDescriptor = require('./ToPropertyDescriptor'); var Type = require('./Type'); -// https://ecma-international.org/ecma-262/6.0/#sec-setintegritylevel +// https://262.ecma-international.org/6.0/#sec-setintegritylevel module.exports = function SetIntegrityLevel(O, level) { if (Type(O) !== 'Object') { diff --git a/node_modules/es-abstract/2022/SetTypedArrayFromArrayLike.js b/node_modules/es-abstract/2022/SetTypedArrayFromArrayLike.js new file mode 100644 index 0000000000..f822a25325 --- /dev/null +++ b/node_modules/es-abstract/2022/SetTypedArrayFromArrayLike.js @@ -0,0 +1,96 @@ +'use strict'; + +var GetIntrinsic = require('get-intrinsic'); + +var $RangeError = GetIntrinsic('%RangeError%'); +var $TypeError = GetIntrinsic('%TypeError%'); + +var isTypedArray = require('is-typed-array'); +var typedArrayBuffer = require('typed-array-buffer'); +var typedArrayByteOffset = require('typed-array-byte-offset'); +var typedArrayLength = require('typed-array-length'); +var whichTypedArray = require('which-typed-array'); + +var isInteger = require('../helpers/isInteger'); + +var Get = require('./Get'); +var IsDetachedBuffer = require('./IsDetachedBuffer'); +var LengthOfArrayLike = require('./LengthOfArrayLike'); +var SetValueInBuffer = require('./SetValueInBuffer'); +var ToBigInt = require('./ToBigInt'); +var ToNumber = require('./ToNumber'); +var ToObject = require('./ToObject'); +var ToString = require('./ToString'); +var TypedArrayElementSize = require('./TypedArrayElementSize'); +var TypedArrayElementType = require('./TypedArrayElementType'); + +// https://262.ecma-international.org/13.0/#sec-settypedarrayfromarraylike + +module.exports = function SetTypedArrayFromArrayLike(target, targetOffset, source) { + var whichTarget = whichTypedArray(target); + if (!whichTarget) { + throw new $TypeError('Assertion failed: target must be a TypedArray instance'); + } + + if (targetOffset !== Infinity && (!isInteger(targetOffset) || targetOffset < 0)) { + throw new $TypeError('Assertion failed: targetOffset must be a non-negative integer or +Infinity'); + } + + if (isTypedArray(source)) { + throw new $TypeError('Assertion failed: source must not be a TypedArray instance'); + } + + var targetBuffer = typedArrayBuffer(target); // step 1 + + if (IsDetachedBuffer(targetBuffer)) { + throw new $TypeError('target’s buffer is detached'); // step 2 + } + + var targetLength = typedArrayLength(target); // step 3 + + var targetElementSize = TypedArrayElementSize(target); // step 4 + + var targetType = TypedArrayElementType(target); // step 5 + + var targetByteOffset = typedArrayByteOffset(target); // step 6 + + var src = ToObject(source); // step 7 + + var srcLength = LengthOfArrayLike(src); // step 8 + + if (targetOffset === Infinity) { + throw new $RangeError('targetOffset must be a finite integer'); // step 9 + } + + if (srcLength + targetOffset > targetLength) { + throw new $RangeError('targetOffset + srcLength must be <= target.length'); // step 10 + } + + var targetByteIndex = (targetOffset * targetElementSize) + targetByteOffset; // step 11 + + var k = 0; // step 12 + + var limit = targetByteIndex + (targetElementSize * srcLength); // step 13 + + while (targetByteIndex < limit) { // step 14 + var Pk = ToString(k); // step 14.a + + var value = Get(src, Pk); // step 14.b + + if (targetType === 'BigInt64' || targetType === 'BigUint64') { + value = ToBigInt(value); // step 14.c + } else { + value = ToNumber(value); // step 14.d + } + + if (IsDetachedBuffer(targetBuffer)) { + throw new $TypeError('target’s buffer is detached'); // step 14.e + } + + SetValueInBuffer(targetBuffer, targetByteIndex, targetType, value, true, 'Unordered'); // step 14.f + + k += 1; // step 14.g + + targetByteIndex += targetElementSize; // step 14.h + } +}; diff --git a/node_modules/es-abstract/2022/SetTypedArrayFromTypedArray.js b/node_modules/es-abstract/2022/SetTypedArrayFromTypedArray.js new file mode 100644 index 0000000000..1988f20d59 --- /dev/null +++ b/node_modules/es-abstract/2022/SetTypedArrayFromTypedArray.js @@ -0,0 +1,135 @@ +'use strict'; + +var GetIntrinsic = require('get-intrinsic'); + +var $RangeError = GetIntrinsic('%RangeError%'); +var $SyntaxError = GetIntrinsic('%SyntaxError%'); +var $TypeError = GetIntrinsic('%TypeError%'); +var $ArrayBuffer = GetIntrinsic('%ArrayBuffer%', true); + +var typedArrayBuffer = require('typed-array-buffer'); +var typedArrayByteLength = require('typed-array-byte-length'); +var typedArrayByteOffset = require('typed-array-byte-offset'); +var typedArrayLength = require('typed-array-length'); +var whichTypedArray = require('which-typed-array'); + +var isInteger = require('../helpers/isInteger'); + +var CloneArrayBuffer = require('./CloneArrayBuffer'); +var GetValueFromBuffer = require('./GetValueFromBuffer'); +var IsDetachedBuffer = require('./IsDetachedBuffer'); +var IsSharedArrayBuffer = require('./IsSharedArrayBuffer'); +var SameValue = require('./SameValue'); +var SetValueInBuffer = require('./SetValueInBuffer'); +var TypedArrayElementSize = require('./TypedArrayElementSize'); +var TypedArrayElementType = require('./TypedArrayElementType'); + +// https://262.ecma-international.org/13.0/#sec-settypedarrayfromtypedarray + +module.exports = function SetTypedArrayFromTypedArray(target, targetOffset, source) { + var whichTarget = whichTypedArray(target); + if (!whichTarget) { + throw new $TypeError('Assertion failed: target must be a TypedArray instance'); + } + + if (targetOffset !== Infinity && (!isInteger(targetOffset) || targetOffset < 0)) { + throw new $TypeError('Assertion failed: targetOffset must be a non-negative integer or +Infinity'); + } + + var whichSource = whichTypedArray(source); + if (!whichSource) { + throw new $TypeError('Assertion failed: source must be a TypedArray instance'); + } + + var targetBuffer = typedArrayBuffer(target); // step 1 + + if (IsDetachedBuffer(targetBuffer)) { + throw new $TypeError('target’s buffer is detached'); // step 2 + } + + var targetLength = typedArrayLength(target); // step 3 + + var srcBuffer = typedArrayBuffer(source); // step 4 + + if (IsDetachedBuffer(srcBuffer)) { + throw new $TypeError('source’s buffer is detached'); // step 5 + } + + var targetType = TypedArrayElementType(target); // step 6 + + var targetElementSize = TypedArrayElementSize(target); // step 7 + + var targetByteOffset = typedArrayByteOffset(target); // step 8 + + var srcType = TypedArrayElementType(source); // step 9 + + var srcElementSize = TypedArrayElementSize(source); // step 10 + + var srcLength = typedArrayLength(source); // step 11 + + var srcByteOffset = typedArrayByteOffset(source); // step 12 + + if (targetOffset === Infinity) { + throw new $RangeError('targetOffset must be a non-negative integer or +Infinity'); // step 13 + } + + if (srcLength + targetOffset > targetLength) { + throw new $RangeError('targetOffset + source.length must not be greater than target.length'); // step 14 + } + + var targetContentType = whichTarget === 'BigInt64Array' || whichTarget === 'BigUint64Array' ? 'BigInt' : 'Number'; + var sourceContentType = whichSource === 'BigInt64Array' || whichSource === 'BigUint64Array' ? 'BigInt' : 'Number'; + if (targetContentType !== sourceContentType) { + throw new $TypeError('source and target must have the same content type'); // step 15 + } + + var same; + if (IsSharedArrayBuffer(srcBuffer) && IsSharedArrayBuffer(targetBuffer)) { // step 16 + // a. If srcBuffer.[[ArrayBufferData]] and targetBuffer.[[ArrayBufferData]] are the same Shared Data Block values, let same be true; else let same be false. + throw new $SyntaxError('SharedArrayBuffer is not supported by this implementation'); + } else { + same = SameValue(srcBuffer, targetBuffer); // step 17 + } + + var srcByteIndex; + if (same) { // step 18 + var srcByteLength = typedArrayByteLength(source); // step 18.a + + srcBuffer = CloneArrayBuffer(srcBuffer, srcByteOffset, srcByteLength, $ArrayBuffer); // step 18.b + + // c. NOTE: %ArrayBuffer% is used to clone srcBuffer because is it known to not have any observable side-effects. + + srcByteIndex = 0; // step 18.d + } else { + srcByteIndex = srcByteOffset; // step 19 + } + + var targetByteIndex = (targetOffset * targetElementSize) + targetByteOffset; // step 20 + + var limit = targetByteIndex + (targetElementSize * srcLength); // step 21 + + var value; + if (srcType === targetType) { // step 22 + // a. NOTE: If srcType and targetType are the same, the transfer must be performed in a manner that preserves the bit-level encoding of the source data. + + while (targetByteIndex < limit) { // step 22.b + value = GetValueFromBuffer(srcBuffer, srcByteIndex, 'Uint8', true, 'Unordered'); // step 22.b.i + + SetValueInBuffer(targetBuffer, targetByteIndex, 'Uint8', value, true, 'Unordered'); // step 22.b.ii + + srcByteIndex += 1; // step 22.b.iii + + targetByteIndex += 1; // step 22.b.iv + } + } else { // step 23 + while (targetByteIndex < limit) { // step 23.a + value = GetValueFromBuffer(srcBuffer, srcByteIndex, srcType, true, 'Unordered'); // step 23.a.i + + SetValueInBuffer(targetBuffer, targetByteIndex, targetType, value, true, 'Unordered'); // step 23.a.ii + + srcByteIndex += srcElementSize; // step 23.a.iii + + targetByteIndex += targetElementSize; // step 23.a.iv + } + } +}; diff --git a/node_modules/es-abstract/2022/SetValueInBuffer.js b/node_modules/es-abstract/2022/SetValueInBuffer.js new file mode 100644 index 0000000000..39b0be00e1 --- /dev/null +++ b/node_modules/es-abstract/2022/SetValueInBuffer.js @@ -0,0 +1,105 @@ +'use strict'; + +var GetIntrinsic = require('get-intrinsic'); + +var $SyntaxError = GetIntrinsic('%SyntaxError%'); +var $TypeError = GetIntrinsic('%TypeError%'); + +var isInteger = require('../helpers/isInteger'); + +var IsBigIntElementType = require('./IsBigIntElementType'); +var IsDetachedBuffer = require('./IsDetachedBuffer'); +var NumericToRawBytes = require('./NumericToRawBytes'); + +var isArrayBuffer = require('is-array-buffer'); +var isSharedArrayBuffer = require('is-shared-array-buffer'); +var has = require('has'); + +var table60 = { + __proto__: null, + Int8: 1, + Uint8: 1, + Uint8C: 1, + Int16: 2, + Uint16: 2, + Int32: 4, + Uint32: 4, + BigInt64: 8, + BigUint64: 8, + Float32: 4, + Float64: 8 +}; + +var defaultEndianness = require('../helpers/defaultEndianness'); +var forEach = require('../helpers/forEach'); + +// https://262.ecma-international.org/12.0/#sec-setvalueinbuffer + +/* eslint max-params: 0 */ + +module.exports = function SetValueInBuffer(arrayBuffer, byteIndex, type, value, isTypedArray, order) { + var isSAB = isSharedArrayBuffer(arrayBuffer); + if (!isArrayBuffer(arrayBuffer) && !isSAB) { + throw new $TypeError('Assertion failed: `arrayBuffer` must be an ArrayBuffer or a SharedArrayBuffer'); + } + + if (!isInteger(byteIndex) || byteIndex < 0) { + throw new $TypeError('Assertion failed: `byteIndex` must be a non-negative integer'); + } + + if (typeof type !== 'string' || !has(table60, type)) { + throw new $TypeError('Assertion failed: `type` must be a Typed Array Element Type'); + } + + if (typeof value !== 'number' && typeof value !== 'bigint') { + throw new $TypeError('Assertion failed: `value` must be a Number or a BigInt'); + } + + if (typeof isTypedArray !== 'boolean') { + throw new $TypeError('Assertion failed: `isTypedArray` must be a boolean'); + } + if (order !== 'SeqCst' && order !== 'Unordered' && order !== 'Init') { + throw new $TypeError('Assertion failed: `order` must be `"SeqCst"`, `"Unordered"`, or `"Init"`'); + } + + if (arguments.length > 6 && typeof arguments[6] !== 'boolean') { + throw new $TypeError('Assertion failed: `isLittleEndian` must be a boolean, if present'); + } + + if (IsDetachedBuffer(arrayBuffer)) { + throw new $TypeError('Assertion failed: ArrayBuffer is detached'); // step 1 + } + + // 2. Assert: There are sufficient bytes in arrayBuffer starting at byteIndex to represent a value of type. + + if (IsBigIntElementType(type) ? typeof value !== 'bigint' : typeof value !== 'number') { // step 3 + throw new $TypeError('Assertion failed: `value` must be a BigInt if type is BigInt64 or BigUint64, otherwise a Number'); + } + + // 4. Let block be arrayBuffer’s [[ArrayBufferData]] internal slot. + + var elementSize = table60[type]; // step 5 + + // 6. If isLittleEndian is not present, set isLittleEndian to either true or false. The choice is implementation dependent and should be the alternative that is most efficient for the implementation. An implementation must use the same value each time this step is executed and the same value must be used for the corresponding step in the GetValueFromBuffer abstract operation. + var isLittleEndian = arguments.length > 6 ? arguments[6] : defaultEndianness === 'little'; // step 6 + + var rawBytes = NumericToRawBytes(type, value, isLittleEndian); // step 7 + + if (isSAB) { // step 8 + /* + Let execution be the [[CandidateExecution]] field of the surrounding agent's Agent Record. + Let eventList be the [[EventList]] field of the element in execution.[[EventsRecords]] whose [[AgentSignifier]] is AgentSignifier(). + If isTypedArray is true and IsNoTearConfiguration(type, order) is true, let noTear be true; otherwise let noTear be false. + Append WriteSharedMemory { [[Order]]: order, [[NoTear]]: noTear, [[Block]]: block, [[ByteIndex]]: byteIndex, [[ElementSize]]: elementSize, [[Payload]]: rawBytes } to eventList. + */ + throw new $SyntaxError('SharedArrayBuffer is not supported by this implementation'); + } else { + // 9. Store the individual bytes of rawBytes into block, in order, starting at block[byteIndex]. + var arr = new Uint8Array(arrayBuffer, byteIndex, elementSize); + forEach(rawBytes, function (rawByte, i) { + arr[i] = rawByte; + }); + } + + // 10. Return NormalCompletion(undefined). +}; diff --git a/node_modules/es-abstract/2022/SortIndexedProperties.js b/node_modules/es-abstract/2022/SortIndexedProperties.js index 3a6b68d939..97eb76afa9 100644 --- a/node_modules/es-abstract/2022/SortIndexedProperties.js +++ b/node_modules/es-abstract/2022/SortIndexedProperties.js @@ -8,23 +8,23 @@ var $TypeError = GetIntrinsic('%TypeError%'); var DeletePropertyOrThrow = require('./DeletePropertyOrThrow'); var Get = require('./Get'); var HasProperty = require('./HasProperty'); -var IsIntegralNumber = require('./IsIntegralNumber'); var Set = require('./Set'); var ToString = require('./ToString'); var Type = require('./Type'); var isAbstractClosure = require('../helpers/isAbstractClosure'); +var isInteger = require('../helpers/isInteger'); var $push = callBound('Array.prototype.push'); var $sort = callBound('Array.prototype.sort'); -// https://ecma-international.org/ecma-262/13.0/#sec-sortindexedproperties +// https://262.ecma-international.org/13.0/#sec-sortindexedproperties module.exports = function SortIndexedProperties(obj, len, SortCompare) { if (Type(obj) !== 'Object') { throw new $TypeError('Assertion failed: Type(obj) is not Object'); } - if (!IsIntegralNumber(len) || len < 0) { + if (!isInteger(len) || len < 0) { throw new $TypeError('Assertion failed: `len` must be an integer >= 0'); } if (!isAbstractClosure(SortCompare) || SortCompare.length !== 2) { diff --git a/node_modules/es-abstract/2022/SpeciesConstructor.js b/node_modules/es-abstract/2022/SpeciesConstructor.js index 491eb9b87d..1937b9c9cd 100644 --- a/node_modules/es-abstract/2022/SpeciesConstructor.js +++ b/node_modules/es-abstract/2022/SpeciesConstructor.js @@ -8,7 +8,7 @@ var $TypeError = GetIntrinsic('%TypeError%'); var IsConstructor = require('./IsConstructor'); var Type = require('./Type'); -// https://ecma-international.org/ecma-262/6.0/#sec-speciesconstructor +// https://262.ecma-international.org/6.0/#sec-speciesconstructor module.exports = function SpeciesConstructor(O, defaultConstructor) { if (Type(O) !== 'Object') { diff --git a/node_modules/es-abstract/2022/StringGetOwnProperty.js b/node_modules/es-abstract/2022/StringGetOwnProperty.js index ecffb0b773..579bb9556d 100644 --- a/node_modules/es-abstract/2022/StringGetOwnProperty.js +++ b/node_modules/es-abstract/2022/StringGetOwnProperty.js @@ -15,7 +15,7 @@ var Type = require('./Type'); var isNegativeZero = require('is-negative-zero'); -// https://ecma-international.org/ecma-262/12.0/#sec-stringgetownproperty +// https://262.ecma-international.org/12.0/#sec-stringgetownproperty module.exports = function StringGetOwnProperty(S, P) { var str; diff --git a/node_modules/es-abstract/2022/StringIndexOf.js b/node_modules/es-abstract/2022/StringIndexOf.js index 371d5aa389..2f6944d156 100644 --- a/node_modules/es-abstract/2022/StringIndexOf.js +++ b/node_modules/es-abstract/2022/StringIndexOf.js @@ -5,12 +5,13 @@ var callBound = require('call-bind/callBound'); var $TypeError = GetIntrinsic('%TypeError%'); -var IsIntegralNumber = require('./IsIntegralNumber'); var Type = require('./Type'); +var isInteger = require('../helpers/isInteger'); + var $slice = callBound('String.prototype.slice'); -// https://ecma-international.org/ecma-262/12.0/#sec-stringindexof +// https://262.ecma-international.org/12.0/#sec-stringindexof module.exports = function StringIndexOf(string, searchValue, fromIndex) { if (Type(string) !== 'String') { @@ -19,7 +20,7 @@ module.exports = function StringIndexOf(string, searchValue, fromIndex) { if (Type(searchValue) !== 'String') { throw new $TypeError('Assertion failed: `searchValue` must be a String'); } - if (!IsIntegralNumber(fromIndex) || fromIndex < 0) { + if (!isInteger(fromIndex) || fromIndex < 0) { throw new $TypeError('Assertion failed: `fromIndex` must be a non-negative integer'); } diff --git a/node_modules/es-abstract/2022/StringToCodePoints.js b/node_modules/es-abstract/2022/StringToCodePoints.js index 336bd06fb8..f503ce1b47 100644 --- a/node_modules/es-abstract/2022/StringToCodePoints.js +++ b/node_modules/es-abstract/2022/StringToCodePoints.js @@ -11,7 +11,7 @@ var $push = callBound('Array.prototype.push'); var CodePointAt = require('./CodePointAt'); var Type = require('./Type'); -// https://ecma-international.org/ecma-262/12.0/#sec-stringtocodepoints +// https://262.ecma-international.org/12.0/#sec-stringtocodepoints module.exports = function StringToCodePoints(string) { if (Type(string) !== 'String') { diff --git a/node_modules/es-abstract/2022/StringToNumber.js b/node_modules/es-abstract/2022/StringToNumber.js index 50ab5e6d19..5775b56c69 100644 --- a/node_modules/es-abstract/2022/StringToNumber.js +++ b/node_modules/es-abstract/2022/StringToNumber.js @@ -18,22 +18,11 @@ var nonWS = ['\u0085', '\u200b', '\ufffe'].join(''); var nonWSregex = new $RegExp('[' + nonWS + ']', 'g'); var hasNonWS = regexTester(nonWSregex); -// whitespace from: https://es5.github.io/#x15.5.4.20 -// implementation from https://github.com/es-shims/es5-shim/blob/v3.4.0/es5-shim.js#L1304-L1324 -var ws = [ - '\x09\x0A\x0B\x0C\x0D\x20\xA0\u1680\u180E\u2000\u2001\u2002\u2003', - '\u2004\u2005\u2006\u2007\u2008\u2009\u200A\u202F\u205F\u3000\u2028', - '\u2029\uFEFF' -].join(''); -var trimRegex = new RegExp('(^[' + ws + ']+)|([' + ws + ']+$)', 'g'); -var $replace = callBound('String.prototype.replace'); -var $trim = function (value) { - return $replace(value, trimRegex, ''); -}; +var $trim = require('string.prototype.trim'); var Type = require('./Type'); -// https://ecma-international.org/ecma-262/13.0/#sec-stringtonumber +// https://262.ecma-international.org/13.0/#sec-stringtonumber module.exports = function StringToNumber(argument) { if (Type(argument) !== 'String') { diff --git a/node_modules/es-abstract/2022/SymbolDescriptiveString.js b/node_modules/es-abstract/2022/SymbolDescriptiveString.js index 1efd1316b2..89c253ffae 100644 --- a/node_modules/es-abstract/2022/SymbolDescriptiveString.js +++ b/node_modules/es-abstract/2022/SymbolDescriptiveString.js @@ -10,7 +10,7 @@ var $SymbolToString = callBound('Symbol.prototype.toString', true); var Type = require('./Type'); -// https://ecma-international.org/ecma-262/6.0/#sec-symboldescriptivestring +// https://262.ecma-international.org/6.0/#sec-symboldescriptivestring module.exports = function SymbolDescriptiveString(sym) { if (Type(sym) !== 'Symbol') { diff --git a/node_modules/es-abstract/2022/TestIntegrityLevel.js b/node_modules/es-abstract/2022/TestIntegrityLevel.js index 7f95a6e1d4..7cefab7017 100644 --- a/node_modules/es-abstract/2022/TestIntegrityLevel.js +++ b/node_modules/es-abstract/2022/TestIntegrityLevel.js @@ -13,7 +13,7 @@ var IsExtensible = require('./IsExtensible'); var ToPropertyDescriptor = require('./ToPropertyDescriptor'); var Type = require('./Type'); -// https://ecma-international.org/ecma-262/6.0/#sec-testintegritylevel +// https://262.ecma-international.org/6.0/#sec-testintegritylevel module.exports = function TestIntegrityLevel(O, level) { if (Type(O) !== 'Object') { diff --git a/node_modules/es-abstract/2022/ToBigInt.js b/node_modules/es-abstract/2022/ToBigInt.js index aa24d7b713..d24e0fff09 100644 --- a/node_modules/es-abstract/2022/ToBigInt.js +++ b/node_modules/es-abstract/2022/ToBigInt.js @@ -3,12 +3,15 @@ var GetIntrinsic = require('get-intrinsic'); var $BigInt = GetIntrinsic('%BigInt%', true); -var $asIntN = GetIntrinsic('%BigInt.asIntN%', true); var $Number = GetIntrinsic('%Number%'); +var $TypeError = GetIntrinsic('%TypeError%'); var $SyntaxError = GetIntrinsic('%SyntaxError%'); +var StringToBigInt = require('./StringToBigInt'); var ToPrimitive = require('./ToPrimitive'); +var isNaN = require('../helpers/isNaN'); + // https://262.ecma-international.org/11.0/#sec-tobigint module.exports = function ToBigInt(argument) { @@ -18,8 +21,33 @@ module.exports = function ToBigInt(argument) { var prim = ToPrimitive(argument, $Number); + if (prim == null) { + throw new $TypeError('Cannot convert null or undefined to a BigInt'); + } + + if (typeof prim === 'boolean') { + return prim ? $BigInt(1) : $BigInt(0); + } + if (typeof prim === 'number') { - return $asIntN(0, prim); + throw new $TypeError('Cannot convert a Number value to a BigInt'); + } + + if (typeof prim === 'string') { + var n = StringToBigInt(prim); + if (isNaN(n)) { + throw new $TypeError('Failed to parse String to BigInt'); + } + return n; + } + + if (typeof prim === 'symbol') { + throw new $TypeError('Cannot convert a Symbol value to a BigInt'); } - return $BigInt(prim); + + if (typeof prim !== 'bigint') { + throw new $SyntaxError('Assertion failed: unknown primitive type'); + } + + return prim; }; diff --git a/node_modules/es-abstract/2022/ToDateString.js b/node_modules/es-abstract/2022/ToDateString.js index e636a9ba68..dabb2bb38a 100644 --- a/node_modules/es-abstract/2022/ToDateString.js +++ b/node_modules/es-abstract/2022/ToDateString.js @@ -4,12 +4,13 @@ var GetIntrinsic = require('get-intrinsic'); var $TypeError = GetIntrinsic('%TypeError%'); var $Date = GetIntrinsic('%Date%'); +var $String = GetIntrinsic('%String%'); var $isNaN = require('../helpers/isNaN'); var Type = require('./Type'); -// https://ecma-international.org/ecma-262/6.0/#sec-todatestring +// https://262.ecma-international.org/6.0/#sec-todatestring module.exports = function ToDateString(tv) { if (Type(tv) !== 'Number') { @@ -18,5 +19,5 @@ module.exports = function ToDateString(tv) { if ($isNaN(tv)) { return 'Invalid Date'; } - return $Date(tv); + return $String(new $Date(tv)); }; diff --git a/node_modules/es-abstract/2022/ToIndex.js b/node_modules/es-abstract/2022/ToIndex.js index cc747e2252..2343b44f32 100644 --- a/node_modules/es-abstract/2022/ToIndex.js +++ b/node_modules/es-abstract/2022/ToIndex.js @@ -8,7 +8,7 @@ var ToIntegerOrInfinity = require('./ToIntegerOrInfinity'); var ToLength = require('./ToLength'); var SameValue = require('./SameValue'); -// https://www.ecma-international.org/ecma-262/8.0/#sec-toindex +// https://262.ecma-international.org/8.0/#sec-toindex module.exports = function ToIndex(value) { if (typeof value === 'undefined') { diff --git a/node_modules/es-abstract/2022/ToInt16.js b/node_modules/es-abstract/2022/ToInt16.js index cb8e7934bb..21694bdeb9 100644 --- a/node_modules/es-abstract/2022/ToInt16.js +++ b/node_modules/es-abstract/2022/ToInt16.js @@ -2,7 +2,7 @@ var ToUint16 = require('./ToUint16'); -// https://ecma-international.org/ecma-262/6.0/#sec-toint16 +// https://262.ecma-international.org/6.0/#sec-toint16 module.exports = function ToInt16(argument) { var int16bit = ToUint16(argument); diff --git a/node_modules/es-abstract/2022/ToInt8.js b/node_modules/es-abstract/2022/ToInt8.js index bc452d826f..e223b6c1d3 100644 --- a/node_modules/es-abstract/2022/ToInt8.js +++ b/node_modules/es-abstract/2022/ToInt8.js @@ -2,7 +2,7 @@ var ToUint8 = require('./ToUint8'); -// https://ecma-international.org/ecma-262/6.0/#sec-toint8 +// https://262.ecma-international.org/6.0/#sec-toint8 module.exports = function ToInt8(argument) { var int8bit = ToUint8(argument); diff --git a/node_modules/es-abstract/2022/ToNumber.js b/node_modules/es-abstract/2022/ToNumber.js index ebee326225..c471ed4286 100644 --- a/node_modules/es-abstract/2022/ToNumber.js +++ b/node_modules/es-abstract/2022/ToNumber.js @@ -9,7 +9,7 @@ var isPrimitive = require('../helpers/isPrimitive'); var ToPrimitive = require('./ToPrimitive'); var StringToNumber = require('./StringToNumber'); -// https://ecma-international.org/ecma-262/13.0/#sec-tonumber +// https://262.ecma-international.org/13.0/#sec-tonumber module.exports = function ToNumber(argument) { var value = isPrimitive(argument) ? argument : ToPrimitive(argument, $Number); diff --git a/node_modules/es-abstract/2022/ToNumeric.js b/node_modules/es-abstract/2022/ToNumeric.js index c187760941..140adb3975 100644 --- a/node_modules/es-abstract/2022/ToNumeric.js +++ b/node_modules/es-abstract/2022/ToNumeric.js @@ -10,7 +10,7 @@ var ToPrimitive = require('./ToPrimitive'); var ToNumber = require('./ToNumber'); var Type = require('./Type'); -// https://262.ecma-international.org/6.0/#sec-tonumber +// https://262.ecma-international.org/11.0/#sec-tonumeric module.exports = function ToNumeric(argument) { var primValue = isPrimitive(argument) ? argument : ToPrimitive(argument, $Number); diff --git a/node_modules/es-abstract/2022/ToObject.js b/node_modules/es-abstract/2022/ToObject.js index cb26bac064..26a007cead 100644 --- a/node_modules/es-abstract/2022/ToObject.js +++ b/node_modules/es-abstract/2022/ToObject.js @@ -6,7 +6,7 @@ var $Object = GetIntrinsic('%Object%'); var RequireObjectCoercible = require('./RequireObjectCoercible'); -// https://ecma-international.org/ecma-262/6.0/#sec-toobject +// https://262.ecma-international.org/6.0/#sec-toobject module.exports = function ToObject(value) { RequireObjectCoercible(value); diff --git a/node_modules/es-abstract/2022/ToPrimitive.js b/node_modules/es-abstract/2022/ToPrimitive.js index 0fbe9b8076..56bcf1aa9e 100644 --- a/node_modules/es-abstract/2022/ToPrimitive.js +++ b/node_modules/es-abstract/2022/ToPrimitive.js @@ -2,7 +2,7 @@ var toPrimitive = require('es-to-primitive/es2015'); -// https://ecma-international.org/ecma-262/6.0/#sec-toprimitive +// https://262.ecma-international.org/6.0/#sec-toprimitive module.exports = function ToPrimitive(input) { if (arguments.length > 1) { diff --git a/node_modules/es-abstract/2022/ToPropertyKey.js b/node_modules/es-abstract/2022/ToPropertyKey.js index fc1bf7d862..e363cd93b1 100644 --- a/node_modules/es-abstract/2022/ToPropertyKey.js +++ b/node_modules/es-abstract/2022/ToPropertyKey.js @@ -7,7 +7,7 @@ var $String = GetIntrinsic('%String%'); var ToPrimitive = require('./ToPrimitive'); var ToString = require('./ToString'); -// https://ecma-international.org/ecma-262/6.0/#sec-topropertykey +// https://262.ecma-international.org/6.0/#sec-topropertykey module.exports = function ToPropertyKey(argument) { var key = ToPrimitive(argument, $String); diff --git a/node_modules/es-abstract/2022/ToString.js b/node_modules/es-abstract/2022/ToString.js index 4d494e1e23..d86aed4ce8 100644 --- a/node_modules/es-abstract/2022/ToString.js +++ b/node_modules/es-abstract/2022/ToString.js @@ -5,7 +5,7 @@ var GetIntrinsic = require('get-intrinsic'); var $String = GetIntrinsic('%String%'); var $TypeError = GetIntrinsic('%TypeError%'); -// https://ecma-international.org/ecma-262/6.0/#sec-tostring +// https://262.ecma-international.org/6.0/#sec-tostring module.exports = function ToString(argument) { if (typeof argument === 'symbol') { diff --git a/node_modules/es-abstract/2022/ToUint8.js b/node_modules/es-abstract/2022/ToUint8.js index 2dfd97cb34..6e4e4b5add 100644 --- a/node_modules/es-abstract/2022/ToUint8.js +++ b/node_modules/es-abstract/2022/ToUint8.js @@ -10,7 +10,7 @@ var abs = require('./abs'); var floor = require('./floor'); var modulo = require('./modulo'); -// https://ecma-international.org/ecma-262/6.0/#sec-touint8 +// https://262.ecma-international.org/6.0/#sec-touint8 module.exports = function ToUint8(argument) { var number = ToNumber(argument); diff --git a/node_modules/es-abstract/2022/ToUint8Clamp.js b/node_modules/es-abstract/2022/ToUint8Clamp.js index b0b8ce8ed3..3ba2fd7119 100644 --- a/node_modules/es-abstract/2022/ToUint8Clamp.js +++ b/node_modules/es-abstract/2022/ToUint8Clamp.js @@ -5,13 +5,13 @@ var floor = require('./floor'); var $isNaN = require('../helpers/isNaN'); -// https://ecma-international.org/ecma-262/6.0/#sec-touint8clamp +// https://262.ecma-international.org/6.0/#sec-touint8clamp module.exports = function ToUint8Clamp(argument) { var number = ToNumber(argument); if ($isNaN(number) || number <= 0) { return 0; } if (number >= 0xFF) { return 0xFF; } - var f = floor(argument); + var f = floor(number); if (f + 0.5 < number) { return f + 1; } if (number < f + 0.5) { return f; } if (f % 2 !== 0) { return f + 1; } diff --git a/node_modules/es-abstract/2022/ToZeroPaddedDecimalString.js b/node_modules/es-abstract/2022/ToZeroPaddedDecimalString.js index cc141fd948..b74b74d2cc 100644 --- a/node_modules/es-abstract/2022/ToZeroPaddedDecimalString.js +++ b/node_modules/es-abstract/2022/ToZeroPaddedDecimalString.js @@ -5,13 +5,14 @@ var GetIntrinsic = require('get-intrinsic'); var $String = GetIntrinsic('%String%'); var $RangeError = GetIntrinsic('%RangeError%'); -var IsIntegralNumber = require('./IsIntegralNumber'); var StringPad = require('./StringPad'); -// https://ecma-international.org/ecma-262/13.0/#sec-tozeropaddeddecimalstring +var isInteger = require('../helpers/isInteger'); + +// https://262.ecma-international.org/13.0/#sec-tozeropaddeddecimalstring module.exports = function ToZeroPaddedDecimalString(n, minLength) { - if (!IsIntegralNumber(n) || n < 0) { + if (!isInteger(n) || n < 0) { throw new $RangeError('Assertion failed: `q` must be a non-negative integer'); } var S = $String(n); diff --git a/node_modules/es-abstract/2022/TypedArrayCreate.js b/node_modules/es-abstract/2022/TypedArrayCreate.js new file mode 100644 index 0000000000..ef9fbe2599 --- /dev/null +++ b/node_modules/es-abstract/2022/TypedArrayCreate.js @@ -0,0 +1,50 @@ +'use strict'; + +var GetIntrinsic = require('get-intrinsic'); + +var $SyntaxError = GetIntrinsic('%SyntaxError%'); +var $TypeError = GetIntrinsic('%TypeError%'); + +var IsArray = require('./IsArray'); +var IsConstructor = require('./IsConstructor'); +var Type = require('./Type'); +var ValidateTypedArray = require('./ValidateTypedArray'); + +var availableTypedArrays = require('available-typed-arrays')(); +var typedArrayLength = require('typed-array-length'); + +// https://262.ecma-international.org/7.0/#typedarray-create + +module.exports = function TypedArrayCreate(constructor, argumentList) { + if (!IsConstructor(constructor)) { + throw new $TypeError('Assertion failed: `constructor` must be a constructor'); + } + if (!IsArray(argumentList)) { + throw new $TypeError('Assertion failed: `argumentList` must be a List'); + } + if (availableTypedArrays.length === 0) { + throw new $SyntaxError('Assertion failed: Typed Arrays are not supported in this environment'); + } + + // var newTypedArray = Construct(constructor, argumentList); // step 1 + var newTypedArray; + if (argumentList.length === 0) { + newTypedArray = new constructor(); + } else if (argumentList.length === 1) { + newTypedArray = new constructor(argumentList[0]); + } else if (argumentList.length === 2) { + newTypedArray = new constructor(argumentList[0], argumentList[1]); + } else { + newTypedArray = new constructor(argumentList[0], argumentList[1], argumentList[2]); + } + + ValidateTypedArray(newTypedArray); // step 2 + + if (argumentList.length === 1 && Type(argumentList[0]) === 'Number') { // step 3 + if (typedArrayLength(newTypedArray) < argumentList[0]) { + throw new $TypeError('Assertion failed: `argumentList[0]` must be <= `newTypedArray.length`'); // step 3.a + } + } + + return newTypedArray; // step 4 +}; diff --git a/node_modules/es-abstract/2022/TypedArrayElementSize.js b/node_modules/es-abstract/2022/TypedArrayElementSize.js index fe9536553d..4f2917ee64 100644 --- a/node_modules/es-abstract/2022/TypedArrayElementSize.js +++ b/node_modules/es-abstract/2022/TypedArrayElementSize.js @@ -2,9 +2,10 @@ var GetIntrinsic = require('get-intrinsic'); +var $SyntaxError = GetIntrinsic('%SyntaxError%'); var $TypeError = GetIntrinsic('%TypeError%'); -var IsIntegralNumber = require('./IsIntegralNumber'); +var isInteger = require('../helpers/isInteger'); var whichTypedArray = require('which-typed-array'); @@ -31,8 +32,8 @@ module.exports = function TypedArrayElementSize(O) { throw new $TypeError('Assertion failed: `O` must be a TypedArray'); } var size = table71['$' + type]; - if (!IsIntegralNumber(size) || size < 0) { - throw new $TypeError('Assertion failed: Unknown TypedArray type `' + type + '`'); + if (!isInteger(size) || size < 0) { + throw new $SyntaxError('Assertion failed: Unknown TypedArray type `' + type + '`'); } return size; diff --git a/node_modules/es-abstract/2022/TypedArrayElementType.js b/node_modules/es-abstract/2022/TypedArrayElementType.js index 919963e6b5..d6d9e2b140 100644 --- a/node_modules/es-abstract/2022/TypedArrayElementType.js +++ b/node_modules/es-abstract/2022/TypedArrayElementType.js @@ -2,6 +2,7 @@ var GetIntrinsic = require('get-intrinsic'); +var $SyntaxError = GetIntrinsic('%SyntaxError%'); var $TypeError = GetIntrinsic('%TypeError%'); var whichTypedArray = require('which-typed-array'); @@ -30,7 +31,7 @@ module.exports = function TypedArrayElementType(O) { } var result = table71['$' + type]; if (typeof result !== 'string') { - throw new $TypeError('Assertion failed: Unknown TypedArray type `' + type + '`'); + throw new $SyntaxError('Assertion failed: Unknown TypedArray type `' + type + '`'); } return result; diff --git a/node_modules/es-abstract/2022/TypedArraySpeciesCreate.js b/node_modules/es-abstract/2022/TypedArraySpeciesCreate.js new file mode 100644 index 0000000000..1cf8755acc --- /dev/null +++ b/node_modules/es-abstract/2022/TypedArraySpeciesCreate.js @@ -0,0 +1,39 @@ +'use strict'; + +var GetIntrinsic = require('get-intrinsic'); + +var $SyntaxError = GetIntrinsic('%SyntaxError%'); +var $TypeError = GetIntrinsic('%TypeError%'); + +var whichTypedArray = require('which-typed-array'); +var availableTypedArrays = require('available-typed-arrays')(); + +var IsArray = require('./IsArray'); +var SpeciesConstructor = require('./SpeciesConstructor'); +var TypedArrayCreate = require('./TypedArrayCreate'); + +var getConstructor = require('../helpers/typedArrayContructors'); + +// https://262.ecma-international.org/7.0/#typedarray-species-create + +module.exports = function TypedArraySpeciesCreate(exemplar, argumentList) { + if (availableTypedArrays.length === 0) { + throw new $SyntaxError('Assertion failed: Typed Arrays are not supported in this environment'); + } + + var kind = whichTypedArray(exemplar); + if (!kind) { + throw new $TypeError('Assertion failed: exemplar must be a TypedArray'); // step 1 + } + if (!IsArray(argumentList)) { + throw new $TypeError('Assertion failed: `argumentList` must be a List'); // step 1 + } + + var defaultConstructor = getConstructor(kind); // step 2 + if (typeof defaultConstructor !== 'function') { + throw new $SyntaxError('Assertion failed: `constructor` of `exemplar` (' + kind + ') must exist. Please report this!'); + } + var constructor = SpeciesConstructor(exemplar, defaultConstructor); // step 3 + + return TypedArrayCreate(constructor, argumentList); // step 4 +}; diff --git a/node_modules/es-abstract/2022/UTF16EncodeCodePoint.js b/node_modules/es-abstract/2022/UTF16EncodeCodePoint.js index 0c7fb11e05..0af67bc12e 100644 --- a/node_modules/es-abstract/2022/UTF16EncodeCodePoint.js +++ b/node_modules/es-abstract/2022/UTF16EncodeCodePoint.js @@ -10,7 +10,7 @@ var modulo = require('./modulo'); var isCodePoint = require('../helpers/isCodePoint'); -// https://ecma-international.org/ecma-262/12.0/#sec-utf16encoding +// https://262.ecma-international.org/12.0/#sec-utf16encoding module.exports = function UTF16EncodeCodePoint(cp) { if (!isCodePoint(cp)) { diff --git a/node_modules/es-abstract/2022/ValidateAndApplyPropertyDescriptor.js b/node_modules/es-abstract/2022/ValidateAndApplyPropertyDescriptor.js index 669d6b5926..c67d785607 100644 --- a/node_modules/es-abstract/2022/ValidateAndApplyPropertyDescriptor.js +++ b/node_modules/es-abstract/2022/ValidateAndApplyPropertyDescriptor.js @@ -20,7 +20,7 @@ var Type = require('./Type'); // see https://github.com/tc39/ecma262/pull/2468 for ES2022 changes -// eslint-disable-next-line max-lines-per-function, max-statements, max-params +// eslint-disable-next-line max-lines-per-function, max-statements module.exports = function ValidateAndApplyPropertyDescriptor(O, P, extensible, Desc, current) { var oType = Type(O); if (oType !== 'Undefined' && oType !== 'Object') { diff --git a/node_modules/es-abstract/2022/ValidateAtomicAccess.js b/node_modules/es-abstract/2022/ValidateAtomicAccess.js index 76a9d151dc..914525bcd5 100644 --- a/node_modules/es-abstract/2022/ValidateAtomicAccess.js +++ b/node_modules/es-abstract/2022/ValidateAtomicAccess.js @@ -5,15 +5,11 @@ var GetIntrinsic = require('get-intrinsic'); var $RangeError = GetIntrinsic('%RangeError%'); var $TypeError = GetIntrinsic('%TypeError%'); -var callBound = require('call-bind/callBound'); - -// node 0.10 doesn't have a prototype method -var $byteOffset = callBound('%TypedArray.prototype.byteOffset%', true) || function (x) { return x.byteOffset; }; - var ToIndex = require('./ToIndex'); var TypedArrayElementSize = require('./TypedArrayElementSize'); var isTypedArray = require('is-typed-array'); +var typedArrayByteOffset = require('typed-array-byte-offset'); var typedArrayLength = require('typed-array-length'); // https://262.ecma-international.org/13.0/#sec-validateatomicaccess @@ -40,7 +36,7 @@ module.exports = function ValidateAtomicAccess(typedArray, requestIndex) { var elementSize = TypedArrayElementSize(typedArray); // step 5 - var offset = $byteOffset(typedArray); // step 6 + var offset = typedArrayByteOffset(typedArray); // step 6 return (accessIndex * elementSize) + offset; // step 7 }; diff --git a/node_modules/es-abstract/2022/ValidateTypedArray.js b/node_modules/es-abstract/2022/ValidateTypedArray.js index 83df3a81cb..c7aa313938 100644 --- a/node_modules/es-abstract/2022/ValidateTypedArray.js +++ b/node_modules/es-abstract/2022/ValidateTypedArray.js @@ -5,7 +5,7 @@ var GetIntrinsic = require('get-intrinsic'); var $TypeError = GetIntrinsic('%TypeError%'); var callBound = require('call-bind/callBound'); -var $taSome = callBound('%TypedArray.prototype.some%', true); +var $taSome = callBound('TypedArray.prototype.some', true); var Type = require('./Type'); diff --git a/node_modules/es-abstract/2022/WeakRefDeref.js b/node_modules/es-abstract/2022/WeakRefDeref.js index 66d2d17230..6b9921f37b 100644 --- a/node_modules/es-abstract/2022/WeakRefDeref.js +++ b/node_modules/es-abstract/2022/WeakRefDeref.js @@ -10,7 +10,7 @@ var isWeakRef = require('is-weakref'); var AddToKeptObjects = require('./AddToKeptObjects'); -// https://ecma-international.org/ecma-262/12.0/#sec-weakrefderef +// https://262.ecma-international.org/12.0/#sec-weakrefderef module.exports = function WeakRefDeref(weakRef) { if (!isWeakRef(weakRef)) { diff --git a/node_modules/es-abstract/2022/WordCharacters.js b/node_modules/es-abstract/2022/WordCharacters.js new file mode 100644 index 0000000000..aeebc1e75c --- /dev/null +++ b/node_modules/es-abstract/2022/WordCharacters.js @@ -0,0 +1,49 @@ +'use strict'; + +var GetIntrinsic = require('get-intrinsic'); + +var $TypeError = GetIntrinsic('%TypeError%'); + +var callBound = require('call-bind/callBound'); +var $indexOf = callBound('String.prototype.indexOf', true); + +var Canonicalize = require('./Canonicalize'); +var Type = require('./Type'); + +var caseFolding = require('../helpers/caseFolding'); +var forEach = require('../helpers/forEach'); +var OwnPropertyKeys = require('../helpers/OwnPropertyKeys'); + +var A = 'abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789_'; // step 1 + +// https://262.ecma-international.org/8.0/#sec-runtime-semantics-wordcharacters-abstract-operation + +module.exports = function WordCharacters(IgnoreCase, Unicode) { + if (Type(IgnoreCase) !== 'Boolean' || Type(Unicode) !== 'Boolean') { + throw new $TypeError('Assertion failed: `IgnoreCase` and `Unicode` must be booleans'); + } + + var U = ''; + forEach(OwnPropertyKeys(caseFolding.C), function (c) { + if ( + $indexOf(A, c) === -1 // c not in A + && $indexOf(A, Canonicalize(c, IgnoreCase, Unicode)) > -1 // canonicalized c IS in A + ) { + U += caseFolding.C[c]; // step 3 + } + }); + forEach(OwnPropertyKeys(caseFolding.S), function (c) { + if ( + $indexOf(A, c) === -1 // c not in A + && $indexOf(A, Canonicalize(c, IgnoreCase, Unicode)) > -1 // canonicalized c IS in A + ) { + U += caseFolding.S[c]; // step 3 + } + }); + + if ((!Unicode || !IgnoreCase) && U.length > 0) { + throw new $TypeError('Assertion failed: `U` must be empty when `IgnoreCase` and `Unicode` are not both true'); // step 4 + } + + return A + U; // step 5, 6 +}; diff --git a/node_modules/es-abstract/2022/substring.js b/node_modules/es-abstract/2022/substring.js index a2c724ad8d..0c7e0203d5 100644 --- a/node_modules/es-abstract/2022/substring.js +++ b/node_modules/es-abstract/2022/substring.js @@ -4,16 +4,17 @@ var GetIntrinsic = require('get-intrinsic'); var $TypeError = GetIntrinsic('%TypeError%'); -var IsIntegralNumber = require('./IsIntegralNumber'); var Type = require('./Type'); +var isInteger = require('../helpers/isInteger'); + var callBound = require('call-bind/callBound'); var $slice = callBound('String.prototype.slice'); // https://262.ecma-international.org/12.0/#substring module.exports = function substring(S, inclusiveStart, exclusiveEnd) { - if (Type(S) !== 'String' || !IsIntegralNumber(inclusiveStart) || (arguments.length > 2 && !IsIntegralNumber(exclusiveEnd))) { + if (Type(S) !== 'String' || !isInteger(inclusiveStart) || (arguments.length > 2 && !isInteger(exclusiveEnd))) { throw new $TypeError('`S` must be a String, and `inclusiveStart` and `exclusiveEnd` must be integers'); } return $slice(S, inclusiveStart, arguments.length > 2 ? exclusiveEnd : S.length); diff --git a/node_modules/es-abstract/2022/thisBigIntValue.js b/node_modules/es-abstract/2022/thisBigIntValue.js index 1fd12980e2..d03b4a43c3 100644 --- a/node_modules/es-abstract/2022/thisBigIntValue.js +++ b/node_modules/es-abstract/2022/thisBigIntValue.js @@ -3,7 +3,7 @@ var GetIntrinsic = require('get-intrinsic'); var callBound = require('call-bind/callBound'); -var $TypeError = GetIntrinsic('%TypeError%'); +var $SyntaxError = GetIntrinsic('%SyntaxError%'); var $bigIntValueOf = callBound('BigInt.prototype.valueOf', true); var Type = require('./Type'); @@ -16,7 +16,7 @@ module.exports = function thisBigIntValue(value) { return value; } if (!$bigIntValueOf) { - throw new $TypeError('BigInt is not supported'); + throw new $SyntaxError('BigInt is not supported'); } return $bigIntValueOf(value); }; diff --git a/node_modules/es-abstract/2022/thisBooleanValue.js b/node_modules/es-abstract/2022/thisBooleanValue.js index 27075b9c4f..e93a28ce47 100644 --- a/node_modules/es-abstract/2022/thisBooleanValue.js +++ b/node_modules/es-abstract/2022/thisBooleanValue.js @@ -4,7 +4,7 @@ var $BooleanValueOf = require('call-bind/callBound')('Boolean.prototype.valueOf' var Type = require('./Type'); -// https://ecma-international.org/ecma-262/6.0/#sec-properties-of-the-boolean-prototype-object +// https://262.ecma-international.org/6.0/#sec-properties-of-the-boolean-prototype-object module.exports = function thisBooleanValue(value) { if (Type(value) === 'Boolean') { diff --git a/node_modules/es-abstract/2022/thisNumberValue.js b/node_modules/es-abstract/2022/thisNumberValue.js index 92968dcdf8..03580df26f 100644 --- a/node_modules/es-abstract/2022/thisNumberValue.js +++ b/node_modules/es-abstract/2022/thisNumberValue.js @@ -6,7 +6,7 @@ var Type = require('./Type'); var $NumberValueOf = callBound('Number.prototype.valueOf'); -// https://ecma-international.org/ecma-262/6.0/#sec-properties-of-the-number-prototype-object +// https://262.ecma-international.org/6.0/#sec-properties-of-the-number-prototype-object module.exports = function thisNumberValue(value) { if (Type(value) === 'Number') { diff --git a/node_modules/es-abstract/2022/thisStringValue.js b/node_modules/es-abstract/2022/thisStringValue.js index 8e4274d811..c7bf3da70c 100644 --- a/node_modules/es-abstract/2022/thisStringValue.js +++ b/node_modules/es-abstract/2022/thisStringValue.js @@ -4,7 +4,7 @@ var $StringValueOf = require('call-bind/callBound')('String.prototype.valueOf'); var Type = require('./Type'); -// https://ecma-international.org/ecma-262/6.0/#sec-properties-of-the-string-prototype-object +// https://262.ecma-international.org/6.0/#sec-properties-of-the-string-prototype-object module.exports = function thisStringValue(value) { if (Type(value) === 'String') { diff --git a/node_modules/es-abstract/2022/thisTimeValue.js b/node_modules/es-abstract/2022/thisTimeValue.js index a9a47ace2b..bd50ddd068 100644 --- a/node_modules/es-abstract/2022/thisTimeValue.js +++ b/node_modules/es-abstract/2022/thisTimeValue.js @@ -1,3 +1,9 @@ 'use strict'; -module.exports = require('../2018/thisTimeValue'); +var $DateGetTime = require('call-bind/callBound')('Date.prototype.getTime'); + +// https://262.ecma-international.org/6.0/#sec-properties-of-the-date-prototype-object + +module.exports = function thisTimeValue(value) { + return $DateGetTime(value); +}; diff --git a/node_modules/es-abstract/2023/AddEntriesFromIterable.js b/node_modules/es-abstract/2023/AddEntriesFromIterable.js new file mode 100644 index 0000000000..907229909e --- /dev/null +++ b/node_modules/es-abstract/2023/AddEntriesFromIterable.js @@ -0,0 +1,47 @@ +'use strict'; + +var inspect = require('object-inspect'); + +var GetIntrinsic = require('get-intrinsic'); + +var $TypeError = GetIntrinsic('%TypeError%'); + +var Call = require('./Call'); +var Get = require('./Get'); +var GetIterator = require('./GetIterator'); +var IsCallable = require('./IsCallable'); +var IteratorClose = require('./IteratorClose'); +var IteratorStep = require('./IteratorStep'); +var IteratorValue = require('./IteratorValue'); +var ThrowCompletion = require('./ThrowCompletion'); +var Type = require('./Type'); + +// https://262.ecma-international.org/14.0/#sec-add-entries-from-iterable + +module.exports = function AddEntriesFromIterable(target, iterable, adder) { + if (!IsCallable(adder)) { + throw new $TypeError('Assertion failed: `adder` is not callable'); + } + if (iterable == null) { + throw new $TypeError('Assertion failed: `iterable` is present, and not nullish'); + } + var iteratorRecord = GetIterator(iterable, 'sync'); + while (true) { // eslint-disable-line no-constant-condition + var next = IteratorStep(iteratorRecord); + if (!next) { + return target; + } + var nextItem = IteratorValue(next); + if (Type(nextItem) !== 'Object') { + var error = ThrowCompletion(new $TypeError('iterator next must return an Object, got ' + inspect(nextItem))); + return IteratorClose(iteratorRecord, error); + } + try { + var k = Get(nextItem, '0'); + var v = Get(nextItem, '1'); + Call(adder, target, [k, v]); + } catch (e) { + return IteratorClose(iteratorRecord, ThrowCompletion(e)); + } + } +}; diff --git a/node_modules/es-abstract/2023/AddToKeptObjects.js b/node_modules/es-abstract/2023/AddToKeptObjects.js new file mode 100644 index 0000000000..a2495ba8fa --- /dev/null +++ b/node_modules/es-abstract/2023/AddToKeptObjects.js @@ -0,0 +1,21 @@ +'use strict'; + +var GetIntrinsic = require('get-intrinsic'); +var callBound = require('call-bind/callBound'); +var SLOT = require('internal-slot'); + +var $TypeError = GetIntrinsic('%TypeError%'); + +var ClearKeptObjects = require('./ClearKeptObjects'); +var Type = require('./Type'); + +var $push = callBound('Array.prototype.push'); + +// https://262.ecma-international.org/12.0/#sec-addtokeptobjects + +module.exports = function AddToKeptObjects(object) { + if (Type(object) !== 'Object') { + throw new $TypeError('Assertion failed: `object` must be an Object'); + } + $push(SLOT.get(ClearKeptObjects, '[[es-abstract internal: KeptAlive]]'), object); +}; diff --git a/node_modules/es-abstract/2023/AdvanceStringIndex.js b/node_modules/es-abstract/2023/AdvanceStringIndex.js new file mode 100644 index 0000000000..4a0f499aa5 --- /dev/null +++ b/node_modules/es-abstract/2023/AdvanceStringIndex.js @@ -0,0 +1,34 @@ +'use strict'; + +var GetIntrinsic = require('get-intrinsic'); + +var CodePointAt = require('./CodePointAt'); +var Type = require('./Type'); + +var isInteger = require('../helpers/isInteger'); +var MAX_SAFE_INTEGER = require('../helpers/maxSafeInteger'); + +var $TypeError = GetIntrinsic('%TypeError%'); + +// https://262.ecma-international.org/12.0/#sec-advancestringindex + +module.exports = function AdvanceStringIndex(S, index, unicode) { + if (Type(S) !== 'String') { + throw new $TypeError('Assertion failed: `S` must be a String'); + } + if (!isInteger(index) || index < 0 || index > MAX_SAFE_INTEGER) { + throw new $TypeError('Assertion failed: `length` must be an integer >= 0 and <= 2**53'); + } + if (Type(unicode) !== 'Boolean') { + throw new $TypeError('Assertion failed: `unicode` must be a Boolean'); + } + if (!unicode) { + return index + 1; + } + var length = S.length; + if ((index + 1) >= length) { + return index + 1; + } + var cp = CodePointAt(S, index); + return index + cp['[[CodeUnitCount]]']; +}; diff --git a/node_modules/es-abstract/2023/ApplyStringOrNumericBinaryOperator.js b/node_modules/es-abstract/2023/ApplyStringOrNumericBinaryOperator.js new file mode 100644 index 0000000000..e5f997a39d --- /dev/null +++ b/node_modules/es-abstract/2023/ApplyStringOrNumericBinaryOperator.js @@ -0,0 +1,80 @@ +'use strict'; + +var GetIntrinsic = require('get-intrinsic'); + +var $TypeError = GetIntrinsic('%TypeError%'); + +var HasOwnProperty = require('./HasOwnProperty'); +var ToNumeric = require('./ToNumeric'); +var ToPrimitive = require('./ToPrimitive'); +var ToString = require('./ToString'); +var Type = require('./Type'); + +var NumberAdd = require('./Number/add'); +var NumberBitwiseAND = require('./Number/bitwiseAND'); +var NumberBitwiseOR = require('./Number/bitwiseOR'); +var NumberBitwiseXOR = require('./Number/bitwiseXOR'); +var NumberDivide = require('./Number/divide'); +var NumberExponentiate = require('./Number/exponentiate'); +var NumberLeftShift = require('./Number/leftShift'); +var NumberMultiply = require('./Number/multiply'); +var NumberRemainder = require('./Number/remainder'); +var NumberSignedRightShift = require('./Number/signedRightShift'); +var NumberSubtract = require('./Number/subtract'); +var NumberUnsignedRightShift = require('./Number/unsignedRightShift'); +var BigIntAdd = require('./BigInt/add'); +var BigIntBitwiseAND = require('./BigInt/bitwiseAND'); +var BigIntBitwiseOR = require('./BigInt/bitwiseOR'); +var BigIntBitwiseXOR = require('./BigInt/bitwiseXOR'); +var BigIntDivide = require('./BigInt/divide'); +var BigIntExponentiate = require('./BigInt/exponentiate'); +var BigIntLeftShift = require('./BigInt/leftShift'); +var BigIntMultiply = require('./BigInt/multiply'); +var BigIntRemainder = require('./BigInt/remainder'); +var BigIntSignedRightShift = require('./BigInt/signedRightShift'); +var BigIntSubtract = require('./BigInt/subtract'); +var BigIntUnsignedRightShift = require('./BigInt/unsignedRightShift'); + +// https://262.ecma-international.org/12.0/#sec-applystringornumericbinaryoperator + +// https://262.ecma-international.org/12.0/#step-applystringornumericbinaryoperator-operations-table +var table = { + '**': [NumberExponentiate, BigIntExponentiate], + '*': [NumberMultiply, BigIntMultiply], + '/': [NumberDivide, BigIntDivide], + '%': [NumberRemainder, BigIntRemainder], + '+': [NumberAdd, BigIntAdd], + '-': [NumberSubtract, BigIntSubtract], + '<<': [NumberLeftShift, BigIntLeftShift], + '>>': [NumberSignedRightShift, BigIntSignedRightShift], + '>>>': [NumberUnsignedRightShift, BigIntUnsignedRightShift], + '&': [NumberBitwiseAND, BigIntBitwiseAND], + '^': [NumberBitwiseXOR, BigIntBitwiseXOR], + '|': [NumberBitwiseOR, BigIntBitwiseOR] +}; + +module.exports = function ApplyStringOrNumericBinaryOperator(lval, opText, rval) { + if (Type(opText) !== 'String' || !HasOwnProperty(table, opText)) { + throw new $TypeError('Assertion failed: `opText` must be a valid operation string'); + } + if (opText === '+') { + var lprim = ToPrimitive(lval); + var rprim = ToPrimitive(rval); + if (Type(lprim) === 'String' || Type(rprim) === 'String') { + var lstr = ToString(lprim); + var rstr = ToString(rprim); + return lstr + rstr; + } + /* eslint no-param-reassign: 1 */ + lval = lprim; + rval = rprim; + } + var lnum = ToNumeric(lval); + var rnum = ToNumeric(rval); + var T = Type(lnum); + if (T !== Type(rnum)) { + throw new $TypeError('types of ' + lnum + ' and ' + rnum + ' differ'); + } + var Operation = table[opText][T === 'BigInt' ? 1 : 0]; + return Operation(lnum, rnum); +}; diff --git a/node_modules/es-abstract/2023/ArrayCreate.js b/node_modules/es-abstract/2023/ArrayCreate.js new file mode 100644 index 0000000000..e33224517e --- /dev/null +++ b/node_modules/es-abstract/2023/ArrayCreate.js @@ -0,0 +1,54 @@ +'use strict'; + +var GetIntrinsic = require('get-intrinsic'); + +var $ArrayPrototype = GetIntrinsic('%Array.prototype%'); +var $RangeError = GetIntrinsic('%RangeError%'); +var $SyntaxError = GetIntrinsic('%SyntaxError%'); +var $TypeError = GetIntrinsic('%TypeError%'); + +var isInteger = require('../helpers/isInteger'); + +var MAX_ARRAY_LENGTH = Math.pow(2, 32) - 1; + +var hasProto = require('has-proto')(); + +var $setProto = GetIntrinsic('%Object.setPrototypeOf%', true) || ( + hasProto + ? function (O, proto) { + O.__proto__ = proto; // eslint-disable-line no-proto, no-param-reassign + return O; + } + : null +); + +// https://262.ecma-international.org/12.0/#sec-arraycreate + +module.exports = function ArrayCreate(length) { + if (!isInteger(length) || length < 0) { + throw new $TypeError('Assertion failed: `length` must be an integer Number >= 0'); + } + if (length > MAX_ARRAY_LENGTH) { + throw new $RangeError('length is greater than (2**32 - 1)'); + } + var proto = arguments.length > 1 ? arguments[1] : $ArrayPrototype; + var A = []; // steps 3, 5 + if (proto !== $ArrayPrototype) { // step 4 + if (!$setProto) { + throw new $SyntaxError('ArrayCreate: a `proto` argument that is not `Array.prototype` is not supported in an environment that does not support setting the [[Prototype]]'); + } + $setProto(A, proto); + } + if (length !== 0) { // bypasses the need for step 6 + A.length = length; + } + /* step 6, the above as a shortcut for the below + OrdinaryDefineOwnProperty(A, 'length', { + '[[Configurable]]': false, + '[[Enumerable]]': false, + '[[Value]]': length, + '[[Writable]]': true + }); + */ + return A; +}; diff --git a/node_modules/es-abstract/2023/ArraySetLength.js b/node_modules/es-abstract/2023/ArraySetLength.js new file mode 100644 index 0000000000..45d7569e7d --- /dev/null +++ b/node_modules/es-abstract/2023/ArraySetLength.js @@ -0,0 +1,85 @@ +'use strict'; + +var GetIntrinsic = require('get-intrinsic'); + +var $RangeError = GetIntrinsic('%RangeError%'); +var $TypeError = GetIntrinsic('%TypeError%'); + +var assign = require('object.assign'); + +var isPropertyDescriptor = require('../helpers/isPropertyDescriptor'); + +var IsArray = require('./IsArray'); +var IsAccessorDescriptor = require('./IsAccessorDescriptor'); +var IsDataDescriptor = require('./IsDataDescriptor'); +var OrdinaryDefineOwnProperty = require('./OrdinaryDefineOwnProperty'); +var OrdinaryGetOwnProperty = require('./OrdinaryGetOwnProperty'); +var ToNumber = require('./ToNumber'); +var ToString = require('./ToString'); +var ToUint32 = require('./ToUint32'); +var Type = require('./Type'); + +// https://262.ecma-international.org/6.0/#sec-arraysetlength + +// eslint-disable-next-line max-statements, max-lines-per-function +module.exports = function ArraySetLength(A, Desc) { + if (!IsArray(A)) { + throw new $TypeError('Assertion failed: A must be an Array'); + } + if (!isPropertyDescriptor({ + Type: Type, + IsDataDescriptor: IsDataDescriptor, + IsAccessorDescriptor: IsAccessorDescriptor + }, Desc)) { + throw new $TypeError('Assertion failed: Desc must be a Property Descriptor'); + } + if (!('[[Value]]' in Desc)) { + return OrdinaryDefineOwnProperty(A, 'length', Desc); + } + var newLenDesc = assign({}, Desc); + var newLen = ToUint32(Desc['[[Value]]']); + var numberLen = ToNumber(Desc['[[Value]]']); + if (newLen !== numberLen) { + throw new $RangeError('Invalid array length'); + } + newLenDesc['[[Value]]'] = newLen; + var oldLenDesc = OrdinaryGetOwnProperty(A, 'length'); + if (!IsDataDescriptor(oldLenDesc)) { + throw new $TypeError('Assertion failed: an array had a non-data descriptor on `length`'); + } + var oldLen = oldLenDesc['[[Value]]']; + if (newLen >= oldLen) { + return OrdinaryDefineOwnProperty(A, 'length', newLenDesc); + } + if (!oldLenDesc['[[Writable]]']) { + return false; + } + var newWritable; + if (!('[[Writable]]' in newLenDesc) || newLenDesc['[[Writable]]']) { + newWritable = true; + } else { + newWritable = false; + newLenDesc['[[Writable]]'] = true; + } + var succeeded = OrdinaryDefineOwnProperty(A, 'length', newLenDesc); + if (!succeeded) { + return false; + } + while (newLen < oldLen) { + oldLen -= 1; + // eslint-disable-next-line no-param-reassign + var deleteSucceeded = delete A[ToString(oldLen)]; + if (!deleteSucceeded) { + newLenDesc['[[Value]]'] = oldLen + 1; + if (!newWritable) { + newLenDesc['[[Writable]]'] = false; + OrdinaryDefineOwnProperty(A, 'length', newLenDesc); + return false; + } + } + } + if (!newWritable) { + return OrdinaryDefineOwnProperty(A, 'length', { '[[Writable]]': false }); + } + return true; +}; diff --git a/node_modules/es-abstract/2023/ArraySpeciesCreate.js b/node_modules/es-abstract/2023/ArraySpeciesCreate.js new file mode 100644 index 0000000000..7b1fd1d27a --- /dev/null +++ b/node_modules/es-abstract/2023/ArraySpeciesCreate.js @@ -0,0 +1,49 @@ +'use strict'; + +var GetIntrinsic = require('get-intrinsic'); + +var $species = GetIntrinsic('%Symbol.species%', true); +var $TypeError = GetIntrinsic('%TypeError%'); + +var ArrayCreate = require('./ArrayCreate'); +var Get = require('./Get'); +var IsArray = require('./IsArray'); +var IsConstructor = require('./IsConstructor'); +var Type = require('./Type'); + +var isInteger = require('../helpers/isInteger'); + +// https://262.ecma-international.org/12.0/#sec-arrayspeciescreate + +module.exports = function ArraySpeciesCreate(originalArray, length) { + if (!isInteger(length) || length < 0) { + throw new $TypeError('Assertion failed: length must be an integer >= 0'); + } + + var isArray = IsArray(originalArray); + if (!isArray) { + return ArrayCreate(length); + } + + var C = Get(originalArray, 'constructor'); + // TODO: figure out how to make a cross-realm normal Array, a same-realm Array + // if (IsConstructor(C)) { + // if C is another realm's Array, C = undefined + // Object.getPrototypeOf(Object.getPrototypeOf(Object.getPrototypeOf(Array))) === null ? + // } + if ($species && Type(C) === 'Object') { + C = Get(C, $species); + if (C === null) { + C = void 0; + } + } + + if (typeof C === 'undefined') { + return ArrayCreate(length); + } + if (!IsConstructor(C)) { + throw new $TypeError('C must be a constructor'); + } + return new C(length); // Construct(C, length); +}; + diff --git a/node_modules/es-abstract/2023/AsyncFromSyncIteratorContinuation.js b/node_modules/es-abstract/2023/AsyncFromSyncIteratorContinuation.js new file mode 100644 index 0000000000..5618539dd6 --- /dev/null +++ b/node_modules/es-abstract/2023/AsyncFromSyncIteratorContinuation.js @@ -0,0 +1,45 @@ +'use strict'; + +var GetIntrinsic = require('get-intrinsic'); + +var $SyntaxError = GetIntrinsic('%SyntaxError%'); +var $TypeError = GetIntrinsic('%TypeError%'); +var $Promise = GetIntrinsic('%Promise%', true); + +var callBound = require('call-bind/callBound'); + +var CreateIterResultObject = require('./CreateIterResultObject'); +var IteratorComplete = require('./IteratorComplete'); +var IteratorValue = require('./IteratorValue'); +var PromiseResolve = require('./PromiseResolve'); +var Type = require('./Type'); + +var $then = callBound('Promise.prototype.then', true); + +// https://262.ecma-international.org/10.0/#sec-asyncfromsynciteratorcontinuation + +module.exports = function AsyncFromSyncIteratorContinuation(result) { + if (Type(result) !== 'Object') { + throw new $TypeError('Assertion failed: Type(O) is not Object'); + } + + if (arguments.length > 1) { + throw new $SyntaxError('although AsyncFromSyncIteratorContinuation should take a second argument, it is not used in this implementation'); + } + + if (!$Promise) { + throw new $SyntaxError('This environment does not support Promises.'); + } + + return new Promise(function (resolve) { + var done = IteratorComplete(result); // step 2 + var value = IteratorValue(result); // step 4 + var valueWrapper = PromiseResolve($Promise, value); // step 6 + + // eslint-disable-next-line no-shadow + var onFulfilled = function (value) { // steps 8-9 + return CreateIterResultObject(value, done); // step 8.a + }; + resolve($then(valueWrapper, onFulfilled)); // step 11 + }); // step 12 +}; diff --git a/node_modules/es-abstract/2023/AsyncIteratorClose.js b/node_modules/es-abstract/2023/AsyncIteratorClose.js new file mode 100644 index 0000000000..1ae42c0c5f --- /dev/null +++ b/node_modules/es-abstract/2023/AsyncIteratorClose.js @@ -0,0 +1,68 @@ +'use strict'; + +var GetIntrinsic = require('get-intrinsic'); + +var $SyntaxError = GetIntrinsic('%SyntaxError%'); +var $TypeError = GetIntrinsic('%TypeError%'); +var $Promise = GetIntrinsic('%Promise%', true); + +var Call = require('./Call'); +var CompletionRecord = require('./CompletionRecord'); +var GetMethod = require('./GetMethod'); +var Type = require('./Type'); + +var assertRecord = require('../helpers/assertRecord'); + +var callBound = require('call-bind/callBound'); + +var $then = callBound('Promise.prototype.then', true); + +// https://262.ecma-international.org/12.0/#sec-asynciteratorclose + +module.exports = function AsyncIteratorClose(iteratorRecord, completion) { + assertRecord(Type, 'Iterator Record', 'iteratorRecord', iteratorRecord); // step 1 + + if (!(completion instanceof CompletionRecord)) { + throw new $TypeError('Assertion failed: completion is not a Completion Record instance'); // step 2 + } + + if (!$then) { + throw new $SyntaxError('This environment does not support Promises.'); + } + + var iterator = iteratorRecord['[[Iterator]]']; // step 3 + + return $then( + $then( + $then( + new $Promise(function (resolve) { + resolve(GetMethod(iterator, 'return')); // step 4 + // resolve(Call(ret, iterator, [])); // step 6 + }), + function (returnV) { // step 5.a + if (typeof returnV === 'undefined') { + return completion; // step 5.b + } + return Call(returnV, iterator); // step 5.c, 5.d. + } + ), + null, + function (e) { + if (completion.type() === 'throw') { + completion['?'](); // step 6 + } else { + throw e; // step 7 + } + } + ), + function (innerResult) { // step 8 + if (completion.type() === 'throw') { + completion['?'](); // step 6 + } + if (Type(innerResult) !== 'Object') { + throw new $TypeError('`innerResult` must be an Object'); // step 10 + } + return completion; + } + ); +}; diff --git a/node_modules/es-abstract/2023/BigInt/add.js b/node_modules/es-abstract/2023/BigInt/add.js new file mode 100644 index 0000000000..22b5db4b32 --- /dev/null +++ b/node_modules/es-abstract/2023/BigInt/add.js @@ -0,0 +1,18 @@ +'use strict'; + +var GetIntrinsic = require('get-intrinsic'); + +var $TypeError = GetIntrinsic('%TypeError%'); + +var Type = require('../Type'); + +// https://262.ecma-international.org/11.0/#sec-numeric-types-bigint-add + +module.exports = function BigIntAdd(x, y) { + if (Type(x) !== 'BigInt' || Type(y) !== 'BigInt') { + throw new $TypeError('Assertion failed: `x` and `y` arguments must be BigInts'); + } + + // shortcut for the actual spec mechanics + return x + y; +}; diff --git a/node_modules/es-abstract/2023/BigInt/bitwiseAND.js b/node_modules/es-abstract/2023/BigInt/bitwiseAND.js new file mode 100644 index 0000000000..83cd2c3ca9 --- /dev/null +++ b/node_modules/es-abstract/2023/BigInt/bitwiseAND.js @@ -0,0 +1,17 @@ +'use strict'; + +var GetIntrinsic = require('get-intrinsic'); + +var $TypeError = GetIntrinsic('%TypeError%'); + +var BigIntBitwiseOp = require('../BigIntBitwiseOp'); +var Type = require('../Type'); + +// https://262.ecma-international.org/11.0/#sec-numeric-types-bigint-bitwiseAND + +module.exports = function BigIntBitwiseAND(x, y) { + if (Type(x) !== 'BigInt' || Type(y) !== 'BigInt') { + throw new $TypeError('Assertion failed: `x` and `y` arguments must be BigInts'); + } + return BigIntBitwiseOp('&', x, y); +}; diff --git a/node_modules/es-abstract/2023/BigInt/bitwiseNOT.js b/node_modules/es-abstract/2023/BigInt/bitwiseNOT.js new file mode 100644 index 0000000000..9a444dfeab --- /dev/null +++ b/node_modules/es-abstract/2023/BigInt/bitwiseNOT.js @@ -0,0 +1,17 @@ +'use strict'; + +var GetIntrinsic = require('get-intrinsic'); + +var $BigInt = GetIntrinsic('%BigInt%', true); +var $TypeError = GetIntrinsic('%TypeError%'); + +var Type = require('../Type'); + +// https://262.ecma-international.org/11.0/#sec-numeric-types-bigint-bitwiseNOT + +module.exports = function BigIntBitwiseNOT(x) { + if (Type(x) !== 'BigInt') { + throw new $TypeError('Assertion failed: `x` argument must be a BigInt'); + } + return -x - $BigInt(1); +}; diff --git a/node_modules/es-abstract/2023/BigInt/bitwiseOR.js b/node_modules/es-abstract/2023/BigInt/bitwiseOR.js new file mode 100644 index 0000000000..3c1b57193e --- /dev/null +++ b/node_modules/es-abstract/2023/BigInt/bitwiseOR.js @@ -0,0 +1,17 @@ +'use strict'; + +var GetIntrinsic = require('get-intrinsic'); + +var $TypeError = GetIntrinsic('%TypeError%'); + +var BigIntBitwiseOp = require('../BigIntBitwiseOp'); +var Type = require('../Type'); + +// https://262.ecma-international.org/11.0/#sec-numeric-types-bigint-bitwiseOR + +module.exports = function BigIntBitwiseOR(x, y) { + if (Type(x) !== 'BigInt' || Type(y) !== 'BigInt') { + throw new $TypeError('Assertion failed: `x` and `y` arguments must be BigInts'); + } + return BigIntBitwiseOp('|', x, y); +}; diff --git a/node_modules/es-abstract/2023/BigInt/bitwiseXOR.js b/node_modules/es-abstract/2023/BigInt/bitwiseXOR.js new file mode 100644 index 0000000000..45f8217efb --- /dev/null +++ b/node_modules/es-abstract/2023/BigInt/bitwiseXOR.js @@ -0,0 +1,17 @@ +'use strict'; + +var GetIntrinsic = require('get-intrinsic'); + +var $TypeError = GetIntrinsic('%TypeError%'); + +var BigIntBitwiseOp = require('../BigIntBitwiseOp'); +var Type = require('../Type'); + +// https://262.ecma-international.org/11.0/#sec-numeric-types-bigint-bitwiseXOR + +module.exports = function BigIntBitwiseXOR(x, y) { + if (Type(x) !== 'BigInt' || Type(y) !== 'BigInt') { + throw new $TypeError('Assertion failed: `x` and `y` arguments must be BigInts'); + } + return BigIntBitwiseOp('^', x, y); +}; diff --git a/node_modules/es-abstract/2023/BigInt/divide.js b/node_modules/es-abstract/2023/BigInt/divide.js new file mode 100644 index 0000000000..5706e7d72e --- /dev/null +++ b/node_modules/es-abstract/2023/BigInt/divide.js @@ -0,0 +1,22 @@ +'use strict'; + +var GetIntrinsic = require('get-intrinsic'); + +var $BigInt = GetIntrinsic('%BigInt%', true); +var $RangeError = GetIntrinsic('%RangeError%'); +var $TypeError = GetIntrinsic('%TypeError%'); + +var Type = require('../Type'); + +// https://262.ecma-international.org/11.0/#sec-numeric-types-bigint-divide + +module.exports = function BigIntDivide(x, y) { + if (Type(x) !== 'BigInt' || Type(y) !== 'BigInt') { + throw new $TypeError('Assertion failed: `x` and `y` arguments must be BigInts'); + } + if (y === $BigInt(0)) { + throw new $RangeError('Division by zero'); + } + // shortcut for the actual spec mechanics + return x / y; +}; diff --git a/node_modules/es-abstract/2023/BigInt/equal.js b/node_modules/es-abstract/2023/BigInt/equal.js new file mode 100644 index 0000000000..a28826d67f --- /dev/null +++ b/node_modules/es-abstract/2023/BigInt/equal.js @@ -0,0 +1,17 @@ +'use strict'; + +var GetIntrinsic = require('get-intrinsic'); + +var $TypeError = GetIntrinsic('%TypeError%'); + +var Type = require('../Type'); + +// https://262.ecma-international.org/11.0/#sec-numeric-types-bigint-equal + +module.exports = function BigIntEqual(x, y) { + if (Type(x) !== 'BigInt' || Type(y) !== 'BigInt') { + throw new $TypeError('Assertion failed: `x` and `y` arguments must be BigInts'); + } + // shortcut for the actual spec mechanics + return x === y; +}; diff --git a/node_modules/es-abstract/2023/BigInt/exponentiate.js b/node_modules/es-abstract/2023/BigInt/exponentiate.js new file mode 100644 index 0000000000..2365838c26 --- /dev/null +++ b/node_modules/es-abstract/2023/BigInt/exponentiate.js @@ -0,0 +1,31 @@ +'use strict'; + +var GetIntrinsic = require('get-intrinsic'); + +var $BigInt = GetIntrinsic('%BigInt%', true); +var $RangeError = GetIntrinsic('%RangeError%'); +var $TypeError = GetIntrinsic('%TypeError%'); + +var Type = require('../Type'); + +// https://262.ecma-international.org/11.0/#sec-numeric-types-bigint-exponentiate + +module.exports = function BigIntExponentiate(base, exponent) { + if (Type(base) !== 'BigInt' || Type(exponent) !== 'BigInt') { + throw new $TypeError('Assertion failed: `base` and `exponent` arguments must be BigInts'); + } + if (exponent < $BigInt(0)) { + throw new $RangeError('Exponent must be positive'); + } + if (/* base === $BigInt(0) && */ exponent === $BigInt(0)) { + return $BigInt(1); + } + + var square = base; + var remaining = exponent; + while (remaining > $BigInt(0)) { + square += exponent; + --remaining; // eslint-disable-line no-plusplus + } + return square; +}; diff --git a/node_modules/es-abstract/2023/BigInt/index.js b/node_modules/es-abstract/2023/BigInt/index.js new file mode 100644 index 0000000000..6ba755ff52 --- /dev/null +++ b/node_modules/es-abstract/2023/BigInt/index.js @@ -0,0 +1,39 @@ +'use strict'; + +var add = require('./add'); +var bitwiseAND = require('./bitwiseAND'); +var bitwiseNOT = require('./bitwiseNOT'); +var bitwiseOR = require('./bitwiseOR'); +var bitwiseXOR = require('./bitwiseXOR'); +var divide = require('./divide'); +var equal = require('./equal'); +var exponentiate = require('./exponentiate'); +var leftShift = require('./leftShift'); +var lessThan = require('./lessThan'); +var multiply = require('./multiply'); +var remainder = require('./remainder'); +var signedRightShift = require('./signedRightShift'); +var subtract = require('./subtract'); +var toString = require('./toString'); +var unaryMinus = require('./unaryMinus'); +var unsignedRightShift = require('./unsignedRightShift'); + +module.exports = { + add: add, + bitwiseAND: bitwiseAND, + bitwiseNOT: bitwiseNOT, + bitwiseOR: bitwiseOR, + bitwiseXOR: bitwiseXOR, + divide: divide, + equal: equal, + exponentiate: exponentiate, + leftShift: leftShift, + lessThan: lessThan, + multiply: multiply, + remainder: remainder, + signedRightShift: signedRightShift, + subtract: subtract, + toString: toString, + unaryMinus: unaryMinus, + unsignedRightShift: unsignedRightShift +}; diff --git a/node_modules/es-abstract/2023/BigInt/leftShift.js b/node_modules/es-abstract/2023/BigInt/leftShift.js new file mode 100644 index 0000000000..d2a570223e --- /dev/null +++ b/node_modules/es-abstract/2023/BigInt/leftShift.js @@ -0,0 +1,18 @@ +'use strict'; + +var GetIntrinsic = require('get-intrinsic'); + +var $TypeError = GetIntrinsic('%TypeError%'); + +var Type = require('../Type'); + +// https://262.ecma-international.org/11.0/#sec-numeric-types-bigint-leftShift + +module.exports = function BigIntLeftShift(x, y) { + if (Type(x) !== 'BigInt' || Type(y) !== 'BigInt') { + throw new $TypeError('Assertion failed: `x` and `y` arguments must be BigInts'); + } + + // shortcut for the actual spec mechanics + return x << y; +}; diff --git a/node_modules/es-abstract/2023/BigInt/lessThan.js b/node_modules/es-abstract/2023/BigInt/lessThan.js new file mode 100644 index 0000000000..0b3cd6ba02 --- /dev/null +++ b/node_modules/es-abstract/2023/BigInt/lessThan.js @@ -0,0 +1,18 @@ +'use strict'; + +var GetIntrinsic = require('get-intrinsic'); + +var $TypeError = GetIntrinsic('%TypeError%'); + +var Type = require('../Type'); + +// https://262.ecma-international.org/11.0/#sec-numeric-types-bigint-lessThan + +module.exports = function BigIntLessThan(x, y) { + if (Type(x) !== 'BigInt' || Type(y) !== 'BigInt') { + throw new $TypeError('Assertion failed: `x` and `y` arguments must be BigInts'); + } + + // shortcut for the actual spec mechanics + return x < y; +}; diff --git a/node_modules/es-abstract/2023/BigInt/multiply.js b/node_modules/es-abstract/2023/BigInt/multiply.js new file mode 100644 index 0000000000..6e5d56c83e --- /dev/null +++ b/node_modules/es-abstract/2023/BigInt/multiply.js @@ -0,0 +1,18 @@ +'use strict'; + +var GetIntrinsic = require('get-intrinsic'); + +var $TypeError = GetIntrinsic('%TypeError%'); + +var Type = require('../Type'); + +// https://262.ecma-international.org/11.0/#sec-numeric-types-bigint-multiply + +module.exports = function BigIntMultiply(x, y) { + if (Type(x) !== 'BigInt' || Type(y) !== 'BigInt') { + throw new $TypeError('Assertion failed: `x` and `y` arguments must be BigInts'); + } + + // shortcut for the actual spec mechanics + return x * y; +}; diff --git a/node_modules/es-abstract/2023/BigInt/remainder.js b/node_modules/es-abstract/2023/BigInt/remainder.js new file mode 100644 index 0000000000..d2dc678caf --- /dev/null +++ b/node_modules/es-abstract/2023/BigInt/remainder.js @@ -0,0 +1,30 @@ +'use strict'; + +var GetIntrinsic = require('get-intrinsic'); + +var $BigInt = GetIntrinsic('%BigInt%', true); +var $RangeError = GetIntrinsic('%RangeError%'); +var $TypeError = GetIntrinsic('%TypeError%'); + +var Type = require('../Type'); + +var zero = $BigInt && $BigInt(0); + +// https://262.ecma-international.org/11.0/#sec-numeric-types-bigint-remainder + +module.exports = function BigIntRemainder(n, d) { + if (Type(n) !== 'BigInt' || Type(d) !== 'BigInt') { + throw new $TypeError('Assertion failed: `n` and `d` arguments must be BigInts'); + } + + if (d === zero) { + throw new $RangeError('Division by zero'); + } + + if (n === zero) { + return zero; + } + + // shortcut for the actual spec mechanics + return n % d; +}; diff --git a/node_modules/es-abstract/2023/BigInt/signedRightShift.js b/node_modules/es-abstract/2023/BigInt/signedRightShift.js new file mode 100644 index 0000000000..f63c642f0c --- /dev/null +++ b/node_modules/es-abstract/2023/BigInt/signedRightShift.js @@ -0,0 +1,18 @@ +'use strict'; + +var GetIntrinsic = require('get-intrinsic'); + +var $TypeError = GetIntrinsic('%TypeError%'); + +var Type = require('../Type'); +var BigIntLeftShift = require('./leftShift'); + +// https://262.ecma-international.org/11.0/#sec-numeric-types-bigint-signedRightShift + +module.exports = function BigIntSignedRightShift(x, y) { + if (Type(x) !== 'BigInt' || Type(y) !== 'BigInt') { + throw new $TypeError('Assertion failed: `x` and `y` arguments must be BigInts'); + } + + return BigIntLeftShift(x, -y); +}; diff --git a/node_modules/es-abstract/2023/BigInt/subtract.js b/node_modules/es-abstract/2023/BigInt/subtract.js new file mode 100644 index 0000000000..0490784f67 --- /dev/null +++ b/node_modules/es-abstract/2023/BigInt/subtract.js @@ -0,0 +1,18 @@ +'use strict'; + +var GetIntrinsic = require('get-intrinsic'); + +var $TypeError = GetIntrinsic('%TypeError%'); + +var Type = require('../Type'); + +// https://262.ecma-international.org/11.0/#sec-numeric-types-bigint-subtract + +module.exports = function BigIntSubtract(x, y) { + if (Type(x) !== 'BigInt' || Type(y) !== 'BigInt') { + throw new $TypeError('Assertion failed: `x` and `y` arguments must be BigInts'); + } + + // shortcut for the actual spec mechanics + return x - y; +}; diff --git a/node_modules/es-abstract/2023/BigInt/toString.js b/node_modules/es-abstract/2023/BigInt/toString.js new file mode 100644 index 0000000000..43ad9ec88f --- /dev/null +++ b/node_modules/es-abstract/2023/BigInt/toString.js @@ -0,0 +1,32 @@ +'use strict'; + +var GetIntrinsic = require('get-intrinsic'); + +var $SyntaxError; +var $TypeError = GetIntrinsic('%TypeError%'); + +var callBound = require('call-bind/callBound'); + +var $BigIntToString = callBound('BigInt.prototype.toString', true); + +var Type = require('../Type'); + +var isInteger = require('../../helpers/isInteger'); + +// https://262.ecma-international.org/14.0/#sec-numeric-types-bigint-tostring + +module.exports = function BigIntToString(x, radix) { + if (Type(x) !== 'BigInt') { + throw new $TypeError('Assertion failed: `x` must be a BigInt'); + } + + if (!isInteger(radix) || radix < 2 || radix > 36) { + throw new $TypeError('Assertion failed: `radix` must be an integer >= 2 and <= 36'); + } + + if (!$BigIntToString) { + throw new $SyntaxError('BigInt is not supported'); + } + + return $BigIntToString(x, radix); // steps 1 - 12 +}; diff --git a/node_modules/es-abstract/2023/BigInt/unaryMinus.js b/node_modules/es-abstract/2023/BigInt/unaryMinus.js new file mode 100644 index 0000000000..ee0f7ef196 --- /dev/null +++ b/node_modules/es-abstract/2023/BigInt/unaryMinus.js @@ -0,0 +1,24 @@ +'use strict'; + +var GetIntrinsic = require('get-intrinsic'); + +var $BigInt = GetIntrinsic('%BigInt%', true); +var $TypeError = GetIntrinsic('%TypeError%'); + +var Type = require('../Type'); + +var zero = $BigInt && $BigInt(0); + +// https://262.ecma-international.org/11.0/#sec-numeric-types-bigint-unaryMinus + +module.exports = function BigIntUnaryMinus(x) { + if (Type(x) !== 'BigInt') { + throw new $TypeError('Assertion failed: `x` argument must be a BigInt'); + } + + if (x === zero) { + return zero; + } + + return -x; +}; diff --git a/node_modules/es-abstract/2023/BigInt/unsignedRightShift.js b/node_modules/es-abstract/2023/BigInt/unsignedRightShift.js new file mode 100644 index 0000000000..7ad94f7a88 --- /dev/null +++ b/node_modules/es-abstract/2023/BigInt/unsignedRightShift.js @@ -0,0 +1,17 @@ +'use strict'; + +var GetIntrinsic = require('get-intrinsic'); + +var $TypeError = GetIntrinsic('%TypeError%'); + +var Type = require('../Type'); + +// https://262.ecma-international.org/11.0/#sec-numeric-types-bigint-unsignedRightShift + +module.exports = function BigIntUnsignedRightShift(x, y) { + if (Type(x) !== 'BigInt' || Type(y) !== 'BigInt') { + throw new $TypeError('Assertion failed: `x` and `y` arguments must be BigInts'); + } + + throw new $TypeError('BigInts have no unsigned right shift, use >> instead'); +}; diff --git a/node_modules/es-abstract/2023/BigIntBitwiseOp.js b/node_modules/es-abstract/2023/BigIntBitwiseOp.js new file mode 100644 index 0000000000..0b1c03a911 --- /dev/null +++ b/node_modules/es-abstract/2023/BigIntBitwiseOp.js @@ -0,0 +1,66 @@ +'use strict'; + +var GetIntrinsic = require('get-intrinsic'); + +var $TypeError = GetIntrinsic('%TypeError%'); +// var $BigInt = GetIntrinsic('%BigInt%', true); +// var $pow = GetIntrinsic('%Math.pow%'); + +// var BinaryAnd = require('./BinaryAnd'); +// var BinaryOr = require('./BinaryOr'); +// var BinaryXor = require('./BinaryXor'); +var Type = require('./Type'); +// var modulo = require('./modulo'); + +// var zero = $BigInt && $BigInt(0); +// var negOne = $BigInt && $BigInt(-1); +// var two = $BigInt && $BigInt(2); + +// https://262.ecma-international.org/11.0/#sec-bigintbitwiseop + +module.exports = function BigIntBitwiseOp(op, x, y) { + if (op !== '&' && op !== '|' && op !== '^') { + throw new $TypeError('Assertion failed: `op` must be `&`, `|`, or `^`'); + } + if (Type(x) !== 'BigInt' || Type(y) !== 'BigInt') { + throw new $TypeError('`x` and `y` must be BigInts'); + } + + if (op === '&') { + return x & y; + } + if (op === '|') { + return x | y; + } + return x ^ y; + /* + var result = zero; + var shift = 0; + while (x !== zero && x !== negOne && y !== zero && y !== negOne) { + var xDigit = modulo(x, two); + var yDigit = modulo(y, two); + if (op === '&') { + result += $pow(2, shift) * BinaryAnd(xDigit, yDigit); + } else if (op === '|') { + result += $pow(2, shift) * BinaryOr(xDigit, yDigit); + } else if (op === '^') { + result += $pow(2, shift) * BinaryXor(xDigit, yDigit); + } + shift += 1; + x = (x - xDigit) / two; + y = (y - yDigit) / two; + } + var tmp; + if (op === '&') { + tmp = BinaryAnd(modulo(x, two), modulo(y, two)); + } else if (op === '|') { + tmp = BinaryAnd(modulo(x, two), modulo(y, two)); + } else { + tmp = BinaryXor(modulo(x, two), modulo(y, two)); + } + if (tmp !== 0) { + result -= $pow(2, shift); + } + return result; + */ +}; diff --git a/node_modules/es-abstract/2023/BinaryAnd.js b/node_modules/es-abstract/2023/BinaryAnd.js new file mode 100644 index 0000000000..c617f388de --- /dev/null +++ b/node_modules/es-abstract/2023/BinaryAnd.js @@ -0,0 +1,14 @@ +'use strict'; + +var GetIntrinsic = require('get-intrinsic'); + +var $TypeError = GetIntrinsic('%TypeError%'); + +// https://262.ecma-international.org/11.0/#sec-binaryand + +module.exports = function BinaryAnd(x, y) { + if ((x !== 0 && x !== 1) || (y !== 0 && y !== 1)) { + throw new $TypeError('Assertion failed: `x` and `y` must be either 0 or 1'); + } + return x & y; +}; diff --git a/node_modules/es-abstract/2023/BinaryOr.js b/node_modules/es-abstract/2023/BinaryOr.js new file mode 100644 index 0000000000..6de0955f1a --- /dev/null +++ b/node_modules/es-abstract/2023/BinaryOr.js @@ -0,0 +1,14 @@ +'use strict'; + +var GetIntrinsic = require('get-intrinsic'); + +var $TypeError = GetIntrinsic('%TypeError%'); + +// https://262.ecma-international.org/11.0/#sec-binaryor + +module.exports = function BinaryOr(x, y) { + if ((x !== 0 && x !== 1) || (y !== 0 && y !== 1)) { + throw new $TypeError('Assertion failed: `x` and `y` must be either 0 or 1'); + } + return x | y; +}; diff --git a/node_modules/es-abstract/2023/BinaryXor.js b/node_modules/es-abstract/2023/BinaryXor.js new file mode 100644 index 0000000000..189d7d8469 --- /dev/null +++ b/node_modules/es-abstract/2023/BinaryXor.js @@ -0,0 +1,14 @@ +'use strict'; + +var GetIntrinsic = require('get-intrinsic'); + +var $TypeError = GetIntrinsic('%TypeError%'); + +// https://262.ecma-international.org/11.0/#sec-binaryxor + +module.exports = function BinaryXor(x, y) { + if ((x !== 0 && x !== 1) || (y !== 0 && y !== 1)) { + throw new $TypeError('Assertion failed: `x` and `y` must be either 0 or 1'); + } + return x ^ y; +}; diff --git a/node_modules/es-abstract/2023/ByteListBitwiseOp.js b/node_modules/es-abstract/2023/ByteListBitwiseOp.js new file mode 100644 index 0000000000..67f4cecb59 --- /dev/null +++ b/node_modules/es-abstract/2023/ByteListBitwiseOp.js @@ -0,0 +1,44 @@ +'use strict'; + +var GetIntrinsic = require('get-intrinsic'); +var callBound = require('call-bind/callBound'); + +var $TypeError = GetIntrinsic('%TypeError%'); + +var $push = callBound('Array.prototype.push'); + +var IsArray = require('./IsArray'); + +var isByteValue = require('../helpers/isByteValue'); + +// https://262.ecma-international.org/12.0/#sec-bytelistbitwiseop + +module.exports = function ByteListBitwiseOp(op, xBytes, yBytes) { + if (op !== '&' && op !== '^' && op !== '|') { + throw new $TypeError('Assertion failed: `op` must be `&`, `^`, or `|`'); + } + if (!IsArray(xBytes) || !IsArray(yBytes) || xBytes.length !== yBytes.length) { + throw new $TypeError('Assertion failed: `xBytes` and `yBytes` must be same-length sequences of byte values (an integer 0-255, inclusive)'); + } + + var result = []; + + for (var i = 0; i < xBytes.length; i += 1) { + var xByte = xBytes[i]; + var yByte = yBytes[i]; + if (!isByteValue(xByte) || !isByteValue(yByte)) { + throw new $TypeError('Assertion failed: `xBytes` and `yBytes` must be same-length sequences of byte values (an integer 0-255, inclusive)'); + } + var resultByte; + if (op === '&') { + resultByte = xByte & yByte; + } else if (op === '^') { + resultByte = xByte ^ yByte; + } else { + resultByte = xByte | yByte; + } + $push(result, resultByte); + } + + return result; +}; diff --git a/node_modules/es-abstract/2023/ByteListEqual.js b/node_modules/es-abstract/2023/ByteListEqual.js new file mode 100644 index 0000000000..489ddc224e --- /dev/null +++ b/node_modules/es-abstract/2023/ByteListEqual.js @@ -0,0 +1,33 @@ +'use strict'; + +var GetIntrinsic = require('get-intrinsic'); + +var $TypeError = GetIntrinsic('%TypeError%'); + +var IsArray = require('./IsArray'); + +var isByteValue = require('../helpers/isByteValue'); + +// https://262.ecma-international.org/12.0/#sec-bytelistequal + +module.exports = function ByteListEqual(xBytes, yBytes) { + if (!IsArray(xBytes) || !IsArray(yBytes)) { + throw new $TypeError('Assertion failed: `xBytes` and `yBytes` must be sequences of byte values (an integer 0-255, inclusive)'); + } + + if (xBytes.length !== yBytes.length) { + return false; + } + + for (var i = 0; i < xBytes.length; i += 1) { + var xByte = xBytes[i]; + var yByte = yBytes[i]; + if (!isByteValue(xByte) || !isByteValue(yByte)) { + throw new $TypeError('Assertion failed: `xBytes` and `yBytes` must be sequences of byte values (an integer 0-255, inclusive)'); + } + if (xByte !== yByte) { + return false; + } + } + return true; +}; diff --git a/node_modules/es-abstract/2023/Call.js b/node_modules/es-abstract/2023/Call.js new file mode 100644 index 0000000000..be76246db0 --- /dev/null +++ b/node_modules/es-abstract/2023/Call.js @@ -0,0 +1,20 @@ +'use strict'; + +var GetIntrinsic = require('get-intrinsic'); +var callBound = require('call-bind/callBound'); + +var $TypeError = GetIntrinsic('%TypeError%'); + +var IsArray = require('./IsArray'); + +var $apply = GetIntrinsic('%Reflect.apply%', true) || callBound('Function.prototype.apply'); + +// https://262.ecma-international.org/6.0/#sec-call + +module.exports = function Call(F, V) { + var argumentsList = arguments.length > 2 ? arguments[2] : []; + if (!IsArray(argumentsList)) { + throw new $TypeError('Assertion failed: optional `argumentsList`, if provided, must be a List'); + } + return $apply(F, V, argumentsList); +}; diff --git a/node_modules/es-abstract/2023/CanBeHeldWeakly.js b/node_modules/es-abstract/2023/CanBeHeldWeakly.js new file mode 100644 index 0000000000..717effc67e --- /dev/null +++ b/node_modules/es-abstract/2023/CanBeHeldWeakly.js @@ -0,0 +1,16 @@ +'use strict'; + +var KeyForSymbol = require('./KeyForSymbol'); +var Type = require('./Type'); + +// https://262.ecma-international.org/14.0/#sec-canbeheldweakly + +module.exports = function CanBeHeldWeakly(v) { + if (Type(v) === 'Object') { + return true; // step 1 + } + if (Type(v) === 'Symbol' && typeof KeyForSymbol(v) === 'undefined') { + return true; // step 2 + } + return false; // step 3 +}; diff --git a/node_modules/es-abstract/2023/CanonicalNumericIndexString.js b/node_modules/es-abstract/2023/CanonicalNumericIndexString.js new file mode 100644 index 0000000000..e9f386326c --- /dev/null +++ b/node_modules/es-abstract/2023/CanonicalNumericIndexString.js @@ -0,0 +1,22 @@ +'use strict'; + +var GetIntrinsic = require('get-intrinsic'); + +var $TypeError = GetIntrinsic('%TypeError%'); + +var SameValue = require('./SameValue'); +var ToNumber = require('./ToNumber'); +var ToString = require('./ToString'); +var Type = require('./Type'); + +// https://262.ecma-international.org/6.0/#sec-canonicalnumericindexstring + +module.exports = function CanonicalNumericIndexString(argument) { + if (Type(argument) !== 'String') { + throw new $TypeError('Assertion failed: `argument` must be a String'); + } + if (argument === '-0') { return -0; } + var n = ToNumber(argument); + if (SameValue(ToString(n), argument)) { return n; } + return void 0; +}; diff --git a/node_modules/es-abstract/2023/Canonicalize.js b/node_modules/es-abstract/2023/Canonicalize.js new file mode 100644 index 0000000000..a9194b9d24 --- /dev/null +++ b/node_modules/es-abstract/2023/Canonicalize.js @@ -0,0 +1,53 @@ +'use strict'; + +var GetIntrinsic = require('get-intrinsic'); + +var $TypeError = GetIntrinsic('%TypeError%'); + +var callBound = require('call-bind/callBound'); +var has = require('has'); + +var $charCodeAt = callBound('String.prototype.charCodeAt'); +var $toUpperCase = callBound('String.prototype.toUpperCase'); + +var Type = require('./Type'); + +var assertRecord = require('../helpers/assertRecord'); +var caseFolding = require('../helpers/caseFolding'); + +// https://262.ecma-international.org/14.0/#sec-runtime-semantics-canonicalize-ch + +module.exports = function Canonicalize(rer, ch) { + assertRecord(Type, 'RegExp Record', 'rer', rer); + if (Type(ch) !== 'String') { + throw new $TypeError('Assertion failed: `ch` must be a character'); + } + + if (rer['[[Unicode]]'] && rer['[[IgnoreCase]]']) { // step 1 + if (has(caseFolding.C, ch)) { + return caseFolding.C[ch]; + } + if (has(caseFolding.S, ch)) { + return caseFolding.S[ch]; + } + return ch; // step 1.b + } + + if (!rer['[[IgnoreCase]]']) { + return ch; // step 2 + } + + var u = $toUpperCase(ch); // step 5 + + if (u.length !== 1) { + return ch; // step 7 + } + + var cu = u; // step 8 + + if ($charCodeAt(ch, 0) >= 128 && $charCodeAt(cu, 0) < 128) { + return ch; // step 9 + } + + return cu; // step 10 +}; diff --git a/node_modules/es-abstract/2023/CharacterRange.js b/node_modules/es-abstract/2023/CharacterRange.js new file mode 100644 index 0000000000..78783a59f2 --- /dev/null +++ b/node_modules/es-abstract/2023/CharacterRange.js @@ -0,0 +1,31 @@ +'use strict'; + +var GetIntrinsic = require('get-intrinsic'); +var callBound = require('call-bind/callBound'); + +var $fromCharCode = GetIntrinsic('%String.fromCharCode%'); +var $TypeError = GetIntrinsic('%TypeError%'); +var $charCodeAt = callBound('String.prototype.charCodeAt'); +var $push = callBound('Array.prototype.push'); + +module.exports = function CharacterRange(A, B) { + if (A.length !== 1 || B.length !== 1) { + throw new $TypeError('Assertion failed: CharSets A and B contain exactly one character'); + } + + var a = A[0]; + var b = B[0]; + + var i = $charCodeAt(a, 0); + var j = $charCodeAt(b, 0); + + if (!(i <= j)) { + throw new $TypeError('Assertion failed: i is not <= j'); + } + + var arr = []; + for (var k = i; k <= j; k += 1) { + $push(arr, $fromCharCode(k)); + } + return arr; +}; diff --git a/node_modules/es-abstract/2023/ClearKeptObjects.js b/node_modules/es-abstract/2023/ClearKeptObjects.js new file mode 100644 index 0000000000..50bd4a5da4 --- /dev/null +++ b/node_modules/es-abstract/2023/ClearKeptObjects.js @@ -0,0 +1,12 @@ +'use strict'; + +var SLOT = require('internal-slot'); +var keptObjects = []; + +// https://262.ecma-international.org/12.0/#sec-clear-kept-objects + +module.exports = function ClearKeptObjects() { + keptObjects.length = 0; +}; + +SLOT.set(module.exports, '[[es-abstract internal: KeptAlive]]', keptObjects); diff --git a/node_modules/es-abstract/2023/CloneArrayBuffer.js b/node_modules/es-abstract/2023/CloneArrayBuffer.js new file mode 100644 index 0000000000..d03e91f864 --- /dev/null +++ b/node_modules/es-abstract/2023/CloneArrayBuffer.js @@ -0,0 +1,49 @@ +'use strict'; + +var GetIntrinsic = require('get-intrinsic'); + +var $TypeError = GetIntrinsic('%TypeError%'); + +var GetPrototypeFromConstructor = require('./GetPrototypeFromConstructor'); +var IsConstructor = require('./IsConstructor'); +var IsDetachedBuffer = require('./IsDetachedBuffer'); +var OrdinarySetPrototypeOf = require('./OrdinarySetPrototypeOf'); + +var isInteger = require('../helpers/isInteger'); + +var isArrayBuffer = require('is-array-buffer'); +var arrayBufferSlice = require('arraybuffer.prototype.slice'); + +// https://262.ecma-international.org/12.0/#sec-clonearraybuffer + +module.exports = function CloneArrayBuffer(srcBuffer, srcByteOffset, srcLength, cloneConstructor) { + if (!isArrayBuffer(srcBuffer)) { + throw new $TypeError('Assertion failed: `srcBuffer` must be an ArrayBuffer instance'); + } + if (!isInteger(srcByteOffset) || srcByteOffset < 0) { + throw new $TypeError('Assertion failed: `srcByteOffset` must be a non-negative integer'); + } + if (!isInteger(srcLength) || srcLength < 0) { + throw new $TypeError('Assertion failed: `srcLength` must be a non-negative integer'); + } + if (!IsConstructor(cloneConstructor)) { + throw new $TypeError('Assertion failed: `cloneConstructor` must be a constructor'); + } + + // 3. Let targetBuffer be ? AllocateArrayBuffer(cloneConstructor, srcLength). + var proto = GetPrototypeFromConstructor(cloneConstructor, '%ArrayBufferPrototype%'); // step 3, kinda + + if (IsDetachedBuffer(srcBuffer)) { + throw new $TypeError('`srcBuffer` must not be a detached ArrayBuffer'); // step 4 + } + + /* + 5. Let srcBlock be srcBuffer.[[ArrayBufferData]]. + 6. Let targetBlock be targetBuffer.[[ArrayBufferData]]. + 7. Perform CopyDataBlockBytes(targetBlock, 0, srcBlock, srcByteOffset, srcLength). + */ + var targetBuffer = arrayBufferSlice(srcBuffer, srcByteOffset, srcByteOffset + srcLength); // steps 5-7 + OrdinarySetPrototypeOf(targetBuffer, proto); // step 3 + + return targetBuffer; // step 8 +}; diff --git a/node_modules/es-abstract/2023/CodePointAt.js b/node_modules/es-abstract/2023/CodePointAt.js new file mode 100644 index 0000000000..e1e22905a4 --- /dev/null +++ b/node_modules/es-abstract/2023/CodePointAt.js @@ -0,0 +1,58 @@ +'use strict'; + +var GetIntrinsic = require('get-intrinsic'); + +var $TypeError = GetIntrinsic('%TypeError%'); +var callBound = require('call-bind/callBound'); +var isLeadingSurrogate = require('../helpers/isLeadingSurrogate'); +var isTrailingSurrogate = require('../helpers/isTrailingSurrogate'); + +var Type = require('./Type'); +var UTF16SurrogatePairToCodePoint = require('./UTF16SurrogatePairToCodePoint'); + +var $charAt = callBound('String.prototype.charAt'); +var $charCodeAt = callBound('String.prototype.charCodeAt'); + +// https://262.ecma-international.org/12.0/#sec-codepointat + +module.exports = function CodePointAt(string, position) { + if (Type(string) !== 'String') { + throw new $TypeError('Assertion failed: `string` must be a String'); + } + var size = string.length; + if (position < 0 || position >= size) { + throw new $TypeError('Assertion failed: `position` must be >= 0, and < the length of `string`'); + } + var first = $charCodeAt(string, position); + var cp = $charAt(string, position); + var firstIsLeading = isLeadingSurrogate(first); + var firstIsTrailing = isTrailingSurrogate(first); + if (!firstIsLeading && !firstIsTrailing) { + return { + '[[CodePoint]]': cp, + '[[CodeUnitCount]]': 1, + '[[IsUnpairedSurrogate]]': false + }; + } + if (firstIsTrailing || (position + 1 === size)) { + return { + '[[CodePoint]]': cp, + '[[CodeUnitCount]]': 1, + '[[IsUnpairedSurrogate]]': true + }; + } + var second = $charCodeAt(string, position + 1); + if (!isTrailingSurrogate(second)) { + return { + '[[CodePoint]]': cp, + '[[CodeUnitCount]]': 1, + '[[IsUnpairedSurrogate]]': true + }; + } + + return { + '[[CodePoint]]': UTF16SurrogatePairToCodePoint(first, second), + '[[CodeUnitCount]]': 2, + '[[IsUnpairedSurrogate]]': false + }; +}; diff --git a/node_modules/es-abstract/2023/CodePointsToString.js b/node_modules/es-abstract/2023/CodePointsToString.js new file mode 100644 index 0000000000..6d7cd854b9 --- /dev/null +++ b/node_modules/es-abstract/2023/CodePointsToString.js @@ -0,0 +1,27 @@ +'use strict'; + +var GetIntrinsic = require('get-intrinsic'); + +var $TypeError = GetIntrinsic('%TypeError%'); + +var UTF16EncodeCodePoint = require('./UTF16EncodeCodePoint'); +var IsArray = require('./IsArray'); + +var forEach = require('../helpers/forEach'); +var isCodePoint = require('../helpers/isCodePoint'); + +// https://262.ecma-international.org/12.0/#sec-codepointstostring + +module.exports = function CodePointsToString(text) { + if (!IsArray(text)) { + throw new $TypeError('Assertion failed: `text` must be a sequence of Unicode Code Points'); + } + var result = ''; + forEach(text, function (cp) { + if (!isCodePoint(cp)) { + throw new $TypeError('Assertion failed: `text` must be a sequence of Unicode Code Points'); + } + result += UTF16EncodeCodePoint(cp); + }); + return result; +}; diff --git a/node_modules/es-abstract/2023/CompareArrayElements.js b/node_modules/es-abstract/2023/CompareArrayElements.js new file mode 100644 index 0000000000..2b8c5f4c64 --- /dev/null +++ b/node_modules/es-abstract/2023/CompareArrayElements.js @@ -0,0 +1,52 @@ +'use strict'; + +var GetIntrinsic = require('get-intrinsic'); + +var $TypeError = GetIntrinsic('%TypeError%'); + +var Call = require('./Call'); +var IsLessThan = require('./IsLessThan'); +var ToNumber = require('./ToNumber'); +var ToString = require('./ToString'); + +var isNaN = require('../helpers/isNaN'); + +// https://262.ecma-international.org/14.0/#sec-comparearrayelements + +module.exports = function CompareArrayElements(x, y, compareFn) { + if (typeof compareFn !== 'function' && typeof compareFn !== 'undefined') { + throw new $TypeError('Assertion failed: `compareFn` must be a function or undefined'); + } + + if (typeof x === 'undefined' && typeof y === 'undefined') { + return 0; // step 1 + } + + if (typeof x === 'undefined') { + return 1; // step 2 + } + + if (typeof y === 'undefined') { + return -1; // step 3 + } + + if (typeof compareFn !== 'undefined') { // step 4 + var v = ToNumber(Call(compareFn, void undefined, [x, y])); // step 4.a + if (isNaN(v)) { + return 0; // step 4.b + } + return v; // step 4.c + } + + var xString = ToString(x); // step 5 + var yString = ToString(y); // step 6 + var xSmaller = IsLessThan(xString, yString, true); // step 7 + if (xSmaller) { + return -1; // step 8 + } + var ySmaller = IsLessThan(yString, xString, true); // step 9 + if (ySmaller) { + return 1; // step 10 + } + return 0; // step 11 +}; diff --git a/node_modules/es-abstract/2023/CompareTypedArrayElements.js b/node_modules/es-abstract/2023/CompareTypedArrayElements.js new file mode 100644 index 0000000000..1a580e20a3 --- /dev/null +++ b/node_modules/es-abstract/2023/CompareTypedArrayElements.js @@ -0,0 +1,65 @@ +'use strict'; + +var GetIntrinsic = require('get-intrinsic'); + +var $TypeError = GetIntrinsic('%TypeError%'); + +var Call = require('./Call'); +var SameValue = require('./SameValue'); +var ToNumber = require('./ToNumber'); +var Type = require('./Type'); + +var isNaN = require('../helpers/isNaN'); + +// https://262.ecma-international.org/14.0/#sec-comparetypedarrayelements + +module.exports = function CompareTypedArrayElements(x, y, compareFn) { + var xType = Type(x); + var yType = Type(y); + if (xType !== yType || (xType !== 'BigInt' && xType !== 'Number')) { + throw new $TypeError('Assertion failed: `x` and `y` must be either a BigInt or a Number, and both must be the same type'); + } + if (typeof compareFn !== 'function' && typeof compareFn !== 'undefined') { + throw new $TypeError('Assertion failed: `compareFn` must be a function or undefined'); + } + + if (typeof compareFn !== 'undefined') { // step 2 + var v = ToNumber(Call(compareFn, void undefined, [x, y])); // step 2.a + if (isNaN(v)) { + return 0; // step 2.b + } + return v; // step 2.c + } + + var xNaN = isNaN(x); + var yNaN = isNaN(y); + if (xNaN && yNaN) { + return 0; // step 3 + } + + if (xNaN) { + return 1; // step 4 + } + + if (yNaN) { + return -1; // step 5 + } + + if (x < y) { + return -1; // step 6 + } + + if (x > y) { + return 1; // step 7 + } + + if (SameValue(x, -0) && SameValue(y, 0)) { + return -1; // step 8 + } + + if (SameValue(x, 0) && SameValue(y, -0)) { + return 1; // step 9 + } + + return 0; // step 10 +}; diff --git a/node_modules/es-abstract/2023/CompletePropertyDescriptor.js b/node_modules/es-abstract/2023/CompletePropertyDescriptor.js new file mode 100644 index 0000000000..e8685197aa --- /dev/null +++ b/node_modules/es-abstract/2023/CompletePropertyDescriptor.js @@ -0,0 +1,39 @@ +'use strict'; + +var has = require('has'); + +var assertRecord = require('../helpers/assertRecord'); + +var IsDataDescriptor = require('./IsDataDescriptor'); +var IsGenericDescriptor = require('./IsGenericDescriptor'); +var Type = require('./Type'); + +// https://262.ecma-international.org/6.0/#sec-completepropertydescriptor + +module.exports = function CompletePropertyDescriptor(Desc) { + /* eslint no-param-reassign: 0 */ + assertRecord(Type, 'Property Descriptor', 'Desc', Desc); + + if (IsGenericDescriptor(Desc) || IsDataDescriptor(Desc)) { + if (!has(Desc, '[[Value]]')) { + Desc['[[Value]]'] = void 0; + } + if (!has(Desc, '[[Writable]]')) { + Desc['[[Writable]]'] = false; + } + } else { + if (!has(Desc, '[[Get]]')) { + Desc['[[Get]]'] = void 0; + } + if (!has(Desc, '[[Set]]')) { + Desc['[[Set]]'] = void 0; + } + } + if (!has(Desc, '[[Enumerable]]')) { + Desc['[[Enumerable]]'] = false; + } + if (!has(Desc, '[[Configurable]]')) { + Desc['[[Configurable]]'] = false; + } + return Desc; +}; diff --git a/node_modules/es-abstract/2023/CompletionRecord.js b/node_modules/es-abstract/2023/CompletionRecord.js new file mode 100644 index 0000000000..370a5677f3 --- /dev/null +++ b/node_modules/es-abstract/2023/CompletionRecord.js @@ -0,0 +1,53 @@ +'use strict'; + +var GetIntrinsic = require('get-intrinsic'); + +var $SyntaxError = GetIntrinsic('%SyntaxError%'); + +var SLOT = require('internal-slot'); + +// https://262.ecma-international.org/7.0/#sec-completion-record-specification-type + +var CompletionRecord = function CompletionRecord(type, value) { + if (!(this instanceof CompletionRecord)) { + return new CompletionRecord(type, value); + } + if (type !== 'normal' && type !== 'break' && type !== 'continue' && type !== 'return' && type !== 'throw') { + throw new $SyntaxError('Assertion failed: `type` must be one of "normal", "break", "continue", "return", or "throw"'); + } + SLOT.set(this, '[[Type]]', type); + SLOT.set(this, '[[Value]]', value); + // [[Target]] slot? +}; + +CompletionRecord.prototype.type = function Type() { + return SLOT.get(this, '[[Type]]'); +}; + +CompletionRecord.prototype.value = function Value() { + return SLOT.get(this, '[[Value]]'); +}; + +CompletionRecord.prototype['?'] = function ReturnIfAbrupt() { + var type = SLOT.get(this, '[[Type]]'); + var value = SLOT.get(this, '[[Value]]'); + + if (type === 'normal') { + return value; + } + if (type === 'throw') { + throw value; + } + throw new $SyntaxError('Completion Record is not of type "normal" or "throw": other types not supported'); +}; + +CompletionRecord.prototype['!'] = function assert() { + var type = SLOT.get(this, '[[Type]]'); + + if (type !== 'normal') { + throw new $SyntaxError('Assertion failed: Completion Record is not of type "normal"'); + } + return SLOT.get(this, '[[Value]]'); +}; + +module.exports = CompletionRecord; diff --git a/node_modules/es-abstract/2023/CopyDataProperties.js b/node_modules/es-abstract/2023/CopyDataProperties.js new file mode 100644 index 0000000000..18723f9d0d --- /dev/null +++ b/node_modules/es-abstract/2023/CopyDataProperties.js @@ -0,0 +1,70 @@ +'use strict'; + +var GetIntrinsic = require('get-intrinsic'); + +var $TypeError = GetIntrinsic('%TypeError%'); + +var callBound = require('call-bind/callBound'); +var forEach = require('../helpers/forEach'); +var every = require('../helpers/every'); +var some = require('../helpers/some'); +var OwnPropertyKeys = require('../helpers/OwnPropertyKeys'); + +var $isEnumerable = callBound('Object.prototype.propertyIsEnumerable'); + +var CreateDataPropertyOrThrow = require('./CreateDataPropertyOrThrow'); +var Get = require('./Get'); +var IsArray = require('./IsArray'); +var IsIntegralNumber = require('./IsIntegralNumber'); +var IsPropertyKey = require('./IsPropertyKey'); +var SameValue = require('./SameValue'); +var ToNumber = require('./ToNumber'); +var ToObject = require('./ToObject'); +var Type = require('./Type'); + +// https://262.ecma-international.org/12.0/#sec-copydataproperties + +module.exports = function CopyDataProperties(target, source, excludedItems) { + if (Type(target) !== 'Object') { + throw new $TypeError('Assertion failed: "target" must be an Object'); + } + + if (!IsArray(excludedItems) || !every(excludedItems, IsPropertyKey)) { + throw new $TypeError('Assertion failed: "excludedItems" must be a List of Property Keys'); + } + + if (typeof source === 'undefined' || source === null) { + return target; + } + + var from = ToObject(source); + + var keys = OwnPropertyKeys(from); + forEach(keys, function (nextKey) { + var excluded = some(excludedItems, function (e) { + return SameValue(e, nextKey) === true; + }); + /* + var excluded = false; + + forEach(excludedItems, function (e) { + if (SameValue(e, nextKey) === true) { + excluded = true; + } + }); + */ + + var enumerable = $isEnumerable(from, nextKey) || ( + // this is to handle string keys being non-enumerable in older engines + typeof source === 'string' + && nextKey >= 0 + && IsIntegralNumber(ToNumber(nextKey)) + ); + if (excluded === false && enumerable) { + var propValue = Get(from, nextKey); + CreateDataPropertyOrThrow(target, nextKey, propValue); + } + }); + + return target; +}; diff --git a/node_modules/es-abstract/2023/CreateAsyncFromSyncIterator.js b/node_modules/es-abstract/2023/CreateAsyncFromSyncIterator.js new file mode 100644 index 0000000000..15e893dabe --- /dev/null +++ b/node_modules/es-abstract/2023/CreateAsyncFromSyncIterator.js @@ -0,0 +1,121 @@ +'use strict'; + +var GetIntrinsic = require('get-intrinsic'); + +var $TypeError = GetIntrinsic('%TypeError%'); + +var AsyncFromSyncIteratorContinuation = require('./AsyncFromSyncIteratorContinuation'); +var Call = require('./Call'); +var CreateIterResultObject = require('./CreateIterResultObject'); +var Get = require('./Get'); +var GetMethod = require('./GetMethod'); +var IteratorNext = require('./IteratorNext'); +var OrdinaryObjectCreate = require('./OrdinaryObjectCreate'); +var Type = require('./Type'); + +var SLOT = require('internal-slot'); + +var assertRecord = require('../helpers/assertRecord'); + +var $AsyncFromSyncIteratorPrototype = GetIntrinsic('%AsyncFromSyncIteratorPrototype%', true) || { + next: function next(value) { + var O = this; // step 1 + + SLOT.assert(O, '[[SyncIteratorRecord]]'); // step 2 + + var argsLength = arguments.length; + + return new Promise(function (resolve) { // step 3 + var syncIteratorRecord = SLOT.get(O, '[[SyncIteratorRecord]]'); // step 4 + var result; + if (argsLength > 0) { + result = IteratorNext(syncIteratorRecord, value); // step 5.a + } else { // step 6 + result = IteratorNext(syncIteratorRecord);// step 6.a + } + resolve(AsyncFromSyncIteratorContinuation(result)); // step 8 + }); + }, + 'return': function () { + var O = this; // step 1 + + SLOT.assert(O, '[[SyncIteratorRecord]]'); // step 2 + + var valueIsPresent = arguments.length > 0; + var value = valueIsPresent ? arguments[0] : void undefined; + + return new Promise(function (resolve, reject) { // step 3 + var syncIterator = SLOT.get(O, '[[SyncIteratorRecord]]')['[[Iterator]]']; // step 4 + var iteratorReturn = GetMethod(syncIterator, 'return'); // step 5 + + if (typeof iteratorReturn === 'undefined') { // step 7 + var iterResult = CreateIterResultObject(value, true); // step 7.a + Call(resolve, undefined, [iterResult]); // step 7.b + return; + } + var result; + if (valueIsPresent) { // step 8 + result = Call(iteratorReturn, syncIterator, [value]); // step 8.a + } else { // step 9 + result = Call(iteratorReturn, syncIterator); // step 9.a + } + if (Type(result) !== 'Object') { // step 11 + Call(reject, undefined, [new $TypeError('Iterator `return` method returned a non-object value.')]); // step 11.a + return; + } + + resolve(AsyncFromSyncIteratorContinuation(result)); // step 12 + }); + }, + 'throw': function () { + var O = this; // step 1 + + SLOT.assert(O, '[[SyncIteratorRecord]]'); // step 2 + + var valueIsPresent = arguments.length > 0; + var value = valueIsPresent ? arguments[0] : void undefined; + + return new Promise(function (resolve, reject) { // step 3 + var syncIterator = SLOT.get(O, '[[SyncIteratorRecord]]')['[[Iterator]]']; // step 4 + + var throwMethod = GetMethod(syncIterator, 'throw'); // step 5 + + if (typeof throwMethod === 'undefined') { // step 7 + Call(reject, undefined, [value]); // step 7.a + return; + } + + var result; + if (valueIsPresent) { // step 8 + result = Call(throwMethod, syncIterator, [value]); // step 8.a + } else { // step 9 + result = Call(throwMethod, syncIterator); // step 9.a + } + if (Type(result) !== 'Object') { // step 11 + Call(reject, undefined, [new $TypeError('Iterator `throw` method returned a non-object value.')]); // step 11.a + return; + } + + resolve(AsyncFromSyncIteratorContinuation(result/* , promiseCapability */)); // step 12 + }); + } +}; + +// https://262.ecma-international.org/14.0/#sec-createasyncfromsynciterator + +module.exports = function CreateAsyncFromSyncIterator(syncIteratorRecord) { + assertRecord(Type, 'Iterator Record', 'syncIteratorRecord', syncIteratorRecord); + + // var asyncIterator = OrdinaryObjectCreate(%AsyncFromSyncIteratorPrototype%, « [[SyncIteratorRecord]] »); // step 1 + var asyncIterator = OrdinaryObjectCreate($AsyncFromSyncIteratorPrototype); + + SLOT.set(asyncIterator, '[[SyncIteratorRecord]]', syncIteratorRecord); // step 2 + + var nextMethod = Get(asyncIterator, 'next'); // step 3 + + return { // steps 3-4 + '[[Iterator]]': asyncIterator, + '[[NextMethod]]': nextMethod, + '[[Done]]': false + }; +}; diff --git a/node_modules/es-abstract/2023/CreateDataProperty.js b/node_modules/es-abstract/2023/CreateDataProperty.js new file mode 100644 index 0000000000..5bd5fc4787 --- /dev/null +++ b/node_modules/es-abstract/2023/CreateDataProperty.js @@ -0,0 +1,27 @@ +'use strict'; + +var GetIntrinsic = require('get-intrinsic'); + +var $TypeError = GetIntrinsic('%TypeError%'); + +var IsPropertyKey = require('./IsPropertyKey'); +var OrdinaryDefineOwnProperty = require('./OrdinaryDefineOwnProperty'); +var Type = require('./Type'); + +// https://262.ecma-international.org/6.0/#sec-createdataproperty + +module.exports = function CreateDataProperty(O, P, V) { + if (Type(O) !== 'Object') { + throw new $TypeError('Assertion failed: Type(O) is not Object'); + } + if (!IsPropertyKey(P)) { + throw new $TypeError('Assertion failed: IsPropertyKey(P) is not true'); + } + var newDesc = { + '[[Configurable]]': true, + '[[Enumerable]]': true, + '[[Value]]': V, + '[[Writable]]': true + }; + return OrdinaryDefineOwnProperty(O, P, newDesc); +}; diff --git a/node_modules/es-abstract/2023/CreateDataPropertyOrThrow.js b/node_modules/es-abstract/2023/CreateDataPropertyOrThrow.js new file mode 100644 index 0000000000..aa016f17cc --- /dev/null +++ b/node_modules/es-abstract/2023/CreateDataPropertyOrThrow.js @@ -0,0 +1,24 @@ +'use strict'; + +var GetIntrinsic = require('get-intrinsic'); + +var $TypeError = GetIntrinsic('%TypeError%'); + +var CreateDataProperty = require('./CreateDataProperty'); +var IsPropertyKey = require('./IsPropertyKey'); +var Type = require('./Type'); + +// // https://262.ecma-international.org/14.0/#sec-createdatapropertyorthrow + +module.exports = function CreateDataPropertyOrThrow(O, P, V) { + if (Type(O) !== 'Object') { + throw new $TypeError('Assertion failed: Type(O) is not Object'); + } + if (!IsPropertyKey(P)) { + throw new $TypeError('Assertion failed: IsPropertyKey(P) is not true'); + } + var success = CreateDataProperty(O, P, V); + if (!success) { + throw new $TypeError('unable to create data property'); + } +}; diff --git a/node_modules/es-abstract/2023/CreateHTML.js b/node_modules/es-abstract/2023/CreateHTML.js new file mode 100644 index 0000000000..ea7633da68 --- /dev/null +++ b/node_modules/es-abstract/2023/CreateHTML.js @@ -0,0 +1,30 @@ +'use strict'; + +var GetIntrinsic = require('get-intrinsic'); + +var $TypeError = GetIntrinsic('%TypeError%'); + +var callBound = require('call-bind/callBound'); + +var $replace = callBound('String.prototype.replace'); + +var RequireObjectCoercible = require('./RequireObjectCoercible'); +var ToString = require('./ToString'); +var Type = require('./Type'); + +// https://262.ecma-international.org/6.0/#sec-createhtml + +module.exports = function CreateHTML(string, tag, attribute, value) { + if (Type(tag) !== 'String' || Type(attribute) !== 'String') { + throw new $TypeError('Assertion failed: `tag` and `attribute` must be strings'); + } + var str = RequireObjectCoercible(string); + var S = ToString(str); + var p1 = '<' + tag; + if (attribute !== '') { + var V = ToString(value); + var escapedV = $replace(V, /\x22/g, '"'); + p1 += '\x20' + attribute + '\x3D\x22' + escapedV + '\x22'; + } + return p1 + '>' + S + ''; +}; diff --git a/node_modules/es-abstract/2023/CreateIterResultObject.js b/node_modules/es-abstract/2023/CreateIterResultObject.js new file mode 100644 index 0000000000..ed86b34f25 --- /dev/null +++ b/node_modules/es-abstract/2023/CreateIterResultObject.js @@ -0,0 +1,19 @@ +'use strict'; + +var GetIntrinsic = require('get-intrinsic'); + +var $TypeError = GetIntrinsic('%TypeError%'); + +var Type = require('./Type'); + +// https://262.ecma-international.org/6.0/#sec-createiterresultobject + +module.exports = function CreateIterResultObject(value, done) { + if (Type(done) !== 'Boolean') { + throw new $TypeError('Assertion failed: Type(done) is not Boolean'); + } + return { + value: value, + done: done + }; +}; diff --git a/node_modules/es-abstract/2023/CreateListFromArrayLike.js b/node_modules/es-abstract/2023/CreateListFromArrayLike.js new file mode 100644 index 0000000000..7592307eb1 --- /dev/null +++ b/node_modules/es-abstract/2023/CreateListFromArrayLike.js @@ -0,0 +1,46 @@ +'use strict'; + +var GetIntrinsic = require('get-intrinsic'); + +var callBound = require('call-bind/callBound'); + +var $TypeError = GetIntrinsic('%TypeError%'); +var $indexOf = callBound('Array.prototype.indexOf', true) || callBound('String.prototype.indexOf'); +var $push = callBound('Array.prototype.push'); + +var Get = require('./Get'); +var IsArray = require('./IsArray'); +var LengthOfArrayLike = require('./LengthOfArrayLike'); +var ToString = require('./ToString'); +var Type = require('./Type'); + +var defaultElementTypes = ['Undefined', 'Null', 'Boolean', 'String', 'Symbol', 'Number', 'BigInt', 'Object']; + +// https://262.ecma-international.org/11.0/#sec-createlistfromarraylike + +module.exports = function CreateListFromArrayLike(obj) { + var elementTypes = arguments.length > 1 + ? arguments[1] + : defaultElementTypes; + + if (Type(obj) !== 'Object') { + throw new $TypeError('Assertion failed: `obj` must be an Object'); + } + if (!IsArray(elementTypes)) { + throw new $TypeError('Assertion failed: `elementTypes`, if provided, must be an array'); + } + var len = LengthOfArrayLike(obj); + var list = []; + var index = 0; + while (index < len) { + var indexName = ToString(index); + var next = Get(obj, indexName); + var nextType = Type(next); + if ($indexOf(elementTypes, nextType) < 0) { + throw new $TypeError('item type ' + nextType + ' is not a valid elementType'); + } + $push(list, next); + index += 1; + } + return list; +}; diff --git a/node_modules/es-abstract/2023/CreateMethodProperty.js b/node_modules/es-abstract/2023/CreateMethodProperty.js new file mode 100644 index 0000000000..058c0f1760 --- /dev/null +++ b/node_modules/es-abstract/2023/CreateMethodProperty.js @@ -0,0 +1,40 @@ +'use strict'; + +var GetIntrinsic = require('get-intrinsic'); + +var $TypeError = GetIntrinsic('%TypeError%'); + +var DefineOwnProperty = require('../helpers/DefineOwnProperty'); + +var FromPropertyDescriptor = require('./FromPropertyDescriptor'); +var IsDataDescriptor = require('./IsDataDescriptor'); +var IsPropertyKey = require('./IsPropertyKey'); +var SameValue = require('./SameValue'); +var Type = require('./Type'); + +// https://262.ecma-international.org/6.0/#sec-createmethodproperty + +module.exports = function CreateMethodProperty(O, P, V) { + if (Type(O) !== 'Object') { + throw new $TypeError('Assertion failed: Type(O) is not Object'); + } + + if (!IsPropertyKey(P)) { + throw new $TypeError('Assertion failed: IsPropertyKey(P) is not true'); + } + + var newDesc = { + '[[Configurable]]': true, + '[[Enumerable]]': false, + '[[Value]]': V, + '[[Writable]]': true + }; + return DefineOwnProperty( + IsDataDescriptor, + SameValue, + FromPropertyDescriptor, + O, + P, + newDesc + ); +}; diff --git a/node_modules/es-abstract/2023/CreateNonEnumerableDataPropertyOrThrow.js b/node_modules/es-abstract/2023/CreateNonEnumerableDataPropertyOrThrow.js new file mode 100644 index 0000000000..59a16ef004 --- /dev/null +++ b/node_modules/es-abstract/2023/CreateNonEnumerableDataPropertyOrThrow.js @@ -0,0 +1,29 @@ +'use strict'; + +var GetIntrinsic = require('get-intrinsic'); + +var $TypeError = GetIntrinsic('%TypeError%'); + +var DefinePropertyOrThrow = require('./DefinePropertyOrThrow'); +var IsPropertyKey = require('./IsPropertyKey'); +var Type = require('./Type'); + +// https://262.ecma-international.org/13.0/#sec-createnonenumerabledatapropertyorthrow + +module.exports = function CreateNonEnumerableDataPropertyOrThrow(O, P, V) { + if (Type(O) !== 'Object') { + throw new $TypeError('Assertion failed: Type(O) is not Object'); + } + + if (!IsPropertyKey(P)) { + throw new $TypeError('Assertion failed: IsPropertyKey(P) is not true'); + } + + var newDesc = { + '[[Configurable]]': true, + '[[Enumerable]]': false, + '[[Value]]': V, + '[[Writable]]': true + }; + return DefinePropertyOrThrow(O, P, newDesc); +}; diff --git a/node_modules/es-abstract/2023/CreateRegExpStringIterator.js b/node_modules/es-abstract/2023/CreateRegExpStringIterator.js new file mode 100644 index 0000000000..cdfae56216 --- /dev/null +++ b/node_modules/es-abstract/2023/CreateRegExpStringIterator.js @@ -0,0 +1,100 @@ +'use strict'; + +var GetIntrinsic = require('get-intrinsic'); +var hasSymbols = require('has-symbols')(); + +var $TypeError = GetIntrinsic('%TypeError%'); +var IteratorPrototype = GetIntrinsic('%IteratorPrototype%', true); + +var AdvanceStringIndex = require('./AdvanceStringIndex'); +var CreateIterResultObject = require('./CreateIterResultObject'); +var CreateMethodProperty = require('./CreateMethodProperty'); +var Get = require('./Get'); +var OrdinaryObjectCreate = require('./OrdinaryObjectCreate'); +var RegExpExec = require('./RegExpExec'); +var Set = require('./Set'); +var ToLength = require('./ToLength'); +var ToString = require('./ToString'); +var Type = require('./Type'); + +var SLOT = require('internal-slot'); +var setToStringTag = require('es-set-tostringtag'); + +var RegExpStringIterator = function RegExpStringIterator(R, S, global, fullUnicode) { + if (Type(S) !== 'String') { + throw new $TypeError('`S` must be a string'); + } + if (Type(global) !== 'Boolean') { + throw new $TypeError('`global` must be a boolean'); + } + if (Type(fullUnicode) !== 'Boolean') { + throw new $TypeError('`fullUnicode` must be a boolean'); + } + SLOT.set(this, '[[IteratingRegExp]]', R); + SLOT.set(this, '[[IteratedString]]', S); + SLOT.set(this, '[[Global]]', global); + SLOT.set(this, '[[Unicode]]', fullUnicode); + SLOT.set(this, '[[Done]]', false); +}; + +if (IteratorPrototype) { + RegExpStringIterator.prototype = OrdinaryObjectCreate(IteratorPrototype); +} + +var RegExpStringIteratorNext = function next() { + var O = this; // eslint-disable-line no-invalid-this + if (Type(O) !== 'Object') { + throw new $TypeError('receiver must be an object'); + } + if ( + !(O instanceof RegExpStringIterator) + || !SLOT.has(O, '[[IteratingRegExp]]') + || !SLOT.has(O, '[[IteratedString]]') + || !SLOT.has(O, '[[Global]]') + || !SLOT.has(O, '[[Unicode]]') + || !SLOT.has(O, '[[Done]]') + ) { + throw new $TypeError('"this" value must be a RegExpStringIterator instance'); + } + if (SLOT.get(O, '[[Done]]')) { + return CreateIterResultObject(undefined, true); + } + var R = SLOT.get(O, '[[IteratingRegExp]]'); + var S = SLOT.get(O, '[[IteratedString]]'); + var global = SLOT.get(O, '[[Global]]'); + var fullUnicode = SLOT.get(O, '[[Unicode]]'); + var match = RegExpExec(R, S); + if (match === null) { + SLOT.set(O, '[[Done]]', true); + return CreateIterResultObject(undefined, true); + } + if (global) { + var matchStr = ToString(Get(match, '0')); + if (matchStr === '') { + var thisIndex = ToLength(Get(R, 'lastIndex')); + var nextIndex = AdvanceStringIndex(S, thisIndex, fullUnicode); + Set(R, 'lastIndex', nextIndex, true); + } + return CreateIterResultObject(match, false); + } + SLOT.set(O, '[[Done]]', true); + return CreateIterResultObject(match, false); +}; +CreateMethodProperty(RegExpStringIterator.prototype, 'next', RegExpStringIteratorNext); + +if (hasSymbols) { + setToStringTag(RegExpStringIterator.prototype, 'RegExp String Iterator'); + + if (Symbol.iterator && typeof RegExpStringIterator.prototype[Symbol.iterator] !== 'function') { + var iteratorFn = function SymbolIterator() { + return this; + }; + CreateMethodProperty(RegExpStringIterator.prototype, Symbol.iterator, iteratorFn); + } +} + +// https://262.ecma-international.org/11.0/#sec-createregexpstringiterator +module.exports = function CreateRegExpStringIterator(R, S, global, fullUnicode) { + // assert R.global === global && R.unicode === fullUnicode? + return new RegExpStringIterator(R, S, global, fullUnicode); +}; diff --git a/node_modules/es-abstract/2023/DateFromTime.js b/node_modules/es-abstract/2023/DateFromTime.js new file mode 100644 index 0000000000..20e4f2e4de --- /dev/null +++ b/node_modules/es-abstract/2023/DateFromTime.js @@ -0,0 +1,54 @@ +'use strict'; + +var GetIntrinsic = require('get-intrinsic'); + +var $EvalError = GetIntrinsic('%EvalError%'); + +var DayWithinYear = require('./DayWithinYear'); +var InLeapYear = require('./InLeapYear'); +var MonthFromTime = require('./MonthFromTime'); + +// https://262.ecma-international.org/5.1/#sec-15.9.1.5 + +module.exports = function DateFromTime(t) { + var m = MonthFromTime(t); + var d = DayWithinYear(t); + if (m === 0) { + return d + 1; + } + if (m === 1) { + return d - 30; + } + var leap = InLeapYear(t); + if (m === 2) { + return d - 58 - leap; + } + if (m === 3) { + return d - 89 - leap; + } + if (m === 4) { + return d - 119 - leap; + } + if (m === 5) { + return d - 150 - leap; + } + if (m === 6) { + return d - 180 - leap; + } + if (m === 7) { + return d - 211 - leap; + } + if (m === 8) { + return d - 242 - leap; + } + if (m === 9) { + return d - 272 - leap; + } + if (m === 10) { + return d - 303 - leap; + } + if (m === 11) { + return d - 333 - leap; + } + throw new $EvalError('Assertion failed: MonthFromTime returned an impossible value: ' + m); +}; diff --git a/node_modules/es-abstract/2023/DateString.js b/node_modules/es-abstract/2023/DateString.js new file mode 100644 index 0000000000..939c14c0c8 --- /dev/null +++ b/node_modules/es-abstract/2023/DateString.js @@ -0,0 +1,30 @@ +'use strict'; + +var GetIntrinsic = require('get-intrinsic'); + +var $TypeError = GetIntrinsic('%TypeError%'); + +var weekdays = ['Sun', 'Mon', 'Tue', 'Wed', 'Thu', 'Fri', 'Sat']; +var months = ['Jan', 'Feb', 'Mar', 'Apr', 'May', 'Jun', 'Jul', 'Aug', 'Sep', 'Oct', 'Nov', 'Dec']; + +var $isNaN = require('../helpers/isNaN'); +var padTimeComponent = require('../helpers/padTimeComponent'); + +var Type = require('./Type'); +var WeekDay = require('./WeekDay'); +var MonthFromTime = require('./MonthFromTime'); +var YearFromTime = require('./YearFromTime'); +var DateFromTime = require('./DateFromTime'); + +// https://262.ecma-international.org/9.0/#sec-datestring + +module.exports = function DateString(tv) { + if (Type(tv) !== 'Number' || $isNaN(tv)) { + throw new $TypeError('Assertion failed: `tv` must be a non-NaN Number'); + } + var weekday = weekdays[WeekDay(tv)]; + var month = months[MonthFromTime(tv)]; + var day = padTimeComponent(DateFromTime(tv)); + var year = padTimeComponent(YearFromTime(tv), 4); + return weekday + '\x20' + month + '\x20' + day + '\x20' + year; +}; diff --git a/node_modules/es-abstract/2023/Day.js b/node_modules/es-abstract/2023/Day.js new file mode 100644 index 0000000000..51d01033c8 --- /dev/null +++ b/node_modules/es-abstract/2023/Day.js @@ -0,0 +1,11 @@ +'use strict'; + +var floor = require('./floor'); + +var msPerDay = require('../helpers/timeConstants').msPerDay; + +// https://262.ecma-international.org/5.1/#sec-15.9.1.2 + +module.exports = function Day(t) { + return floor(t / msPerDay); +}; diff --git a/node_modules/es-abstract/2023/DayFromYear.js b/node_modules/es-abstract/2023/DayFromYear.js new file mode 100644 index 0000000000..341bf22a6c --- /dev/null +++ b/node_modules/es-abstract/2023/DayFromYear.js @@ -0,0 +1,10 @@ +'use strict'; + +var floor = require('./floor'); + +// https://262.ecma-international.org/5.1/#sec-15.9.1.3 + +module.exports = function DayFromYear(y) { + return (365 * (y - 1970)) + floor((y - 1969) / 4) - floor((y - 1901) / 100) + floor((y - 1601) / 400); +}; + diff --git a/node_modules/es-abstract/2023/DayWithinYear.js b/node_modules/es-abstract/2023/DayWithinYear.js new file mode 100644 index 0000000000..4c580940a5 --- /dev/null +++ b/node_modules/es-abstract/2023/DayWithinYear.js @@ -0,0 +1,11 @@ +'use strict'; + +var Day = require('./Day'); +var DayFromYear = require('./DayFromYear'); +var YearFromTime = require('./YearFromTime'); + +// https://262.ecma-international.org/5.1/#sec-15.9.1.4 + +module.exports = function DayWithinYear(t) { + return Day(t) - DayFromYear(YearFromTime(t)); +}; diff --git a/node_modules/es-abstract/2023/DaysInYear.js b/node_modules/es-abstract/2023/DaysInYear.js new file mode 100644 index 0000000000..7116c69027 --- /dev/null +++ b/node_modules/es-abstract/2023/DaysInYear.js @@ -0,0 +1,18 @@ +'use strict'; + +var modulo = require('./modulo'); + +// https://262.ecma-international.org/5.1/#sec-15.9.1.3 + +module.exports = function DaysInYear(y) { + if (modulo(y, 4) !== 0) { + return 365; + } + if (modulo(y, 100) !== 0) { + return 366; + } + if (modulo(y, 400) !== 0) { + return 365; + } + return 366; +}; diff --git a/node_modules/es-abstract/2023/DefinePropertyOrThrow.js b/node_modules/es-abstract/2023/DefinePropertyOrThrow.js new file mode 100644 index 0000000000..8fe097068d --- /dev/null +++ b/node_modules/es-abstract/2023/DefinePropertyOrThrow.js @@ -0,0 +1,50 @@ +'use strict'; + +var GetIntrinsic = require('get-intrinsic'); + +var $TypeError = GetIntrinsic('%TypeError%'); + +var isPropertyDescriptor = require('../helpers/isPropertyDescriptor'); +var DefineOwnProperty = require('../helpers/DefineOwnProperty'); + +var FromPropertyDescriptor = require('./FromPropertyDescriptor'); +var IsAccessorDescriptor = require('./IsAccessorDescriptor'); +var IsDataDescriptor = require('./IsDataDescriptor'); +var IsPropertyKey = require('./IsPropertyKey'); +var SameValue = require('./SameValue'); +var ToPropertyDescriptor = require('./ToPropertyDescriptor'); +var Type = require('./Type'); + +// https://262.ecma-international.org/6.0/#sec-definepropertyorthrow + +module.exports = function DefinePropertyOrThrow(O, P, desc) { + if (Type(O) !== 'Object') { + throw new $TypeError('Assertion failed: Type(O) is not Object'); + } + + if (!IsPropertyKey(P)) { + throw new $TypeError('Assertion failed: IsPropertyKey(P) is not true'); + } + + var Desc = isPropertyDescriptor({ + Type: Type, + IsDataDescriptor: IsDataDescriptor, + IsAccessorDescriptor: IsAccessorDescriptor + }, desc) ? desc : ToPropertyDescriptor(desc); + if (!isPropertyDescriptor({ + Type: Type, + IsDataDescriptor: IsDataDescriptor, + IsAccessorDescriptor: IsAccessorDescriptor + }, Desc)) { + throw new $TypeError('Assertion failed: Desc is not a valid Property Descriptor'); + } + + return DefineOwnProperty( + IsDataDescriptor, + SameValue, + FromPropertyDescriptor, + O, + P, + Desc + ); +}; diff --git a/node_modules/es-abstract/2023/DeletePropertyOrThrow.js b/node_modules/es-abstract/2023/DeletePropertyOrThrow.js new file mode 100644 index 0000000000..581bf06ea2 --- /dev/null +++ b/node_modules/es-abstract/2023/DeletePropertyOrThrow.js @@ -0,0 +1,27 @@ +'use strict'; + +var GetIntrinsic = require('get-intrinsic'); + +var $TypeError = GetIntrinsic('%TypeError%'); + +var IsPropertyKey = require('./IsPropertyKey'); +var Type = require('./Type'); + +// https://262.ecma-international.org/6.0/#sec-deletepropertyorthrow + +module.exports = function DeletePropertyOrThrow(O, P) { + if (Type(O) !== 'Object') { + throw new $TypeError('Assertion failed: Type(O) is not Object'); + } + + if (!IsPropertyKey(P)) { + throw new $TypeError('Assertion failed: IsPropertyKey(P) is not true'); + } + + // eslint-disable-next-line no-param-reassign + var success = delete O[P]; + if (!success) { + throw new $TypeError('Attempt to delete property failed.'); + } + return success; +}; diff --git a/node_modules/es-abstract/2023/DetachArrayBuffer.js b/node_modules/es-abstract/2023/DetachArrayBuffer.js new file mode 100644 index 0000000000..03284729b3 --- /dev/null +++ b/node_modules/es-abstract/2023/DetachArrayBuffer.js @@ -0,0 +1,43 @@ +'use strict'; + +var GetIntrinsic = require('get-intrinsic'); + +var $SyntaxError = GetIntrinsic('%SyntaxError%'); +var $TypeError = GetIntrinsic('%TypeError%'); + +var isArrayBuffer = require('is-array-buffer'); +var isSharedArrayBuffer = require('is-shared-array-buffer'); + +var MessageChannel; +try { + // eslint-disable-next-line global-require + MessageChannel = require('worker_threads').MessageChannel; +} catch (e) { /**/ } + +// https://262.ecma-international.org/9.0/#sec-detacharraybuffer + +/* globals postMessage */ + +module.exports = function DetachArrayBuffer(arrayBuffer) { + if (!isArrayBuffer(arrayBuffer) || isSharedArrayBuffer(arrayBuffer)) { + throw new $TypeError('Assertion failed: `arrayBuffer` must be an Object with an [[ArrayBufferData]] internal slot, and not a Shared Array Buffer'); + } + + // commented out since there's no way to set or access this key + // var key = arguments.length > 1 ? arguments[1] : void undefined; + + // if (!SameValue(arrayBuffer[[ArrayBufferDetachKey]], key)) { + // throw new $TypeError('Assertion failed: `key` must be the value of the [[ArrayBufferDetachKey]] internal slot of `arrayBuffer`'); + // } + + if (typeof structuredClone === 'function') { + structuredClone(arrayBuffer, { transfer: [arrayBuffer] }); + } else if (typeof postMessage === 'function') { + postMessage('', '/', [arrayBuffer]); // TODO: see if this might trigger listeners + } else if (MessageChannel) { + (new MessageChannel()).port1.postMessage(null, [arrayBuffer]); + } else { + throw new $SyntaxError('DetachArrayBuffer is not supported in this environment'); + } + return null; +}; diff --git a/node_modules/es-abstract/2023/EnumerableOwnProperties.js b/node_modules/es-abstract/2023/EnumerableOwnProperties.js new file mode 100644 index 0000000000..9fe8534af5 --- /dev/null +++ b/node_modules/es-abstract/2023/EnumerableOwnProperties.js @@ -0,0 +1,43 @@ +'use strict'; + +var GetIntrinsic = require('get-intrinsic'); + +var $TypeError = GetIntrinsic('%TypeError%'); + +var objectKeys = require('object-keys'); + +var callBound = require('call-bind/callBound'); + +var callBind = require('call-bind'); + +var $isEnumerable = callBound('Object.prototype.propertyIsEnumerable'); +var $pushApply = callBind.apply(GetIntrinsic('%Array.prototype.push%')); + +var forEach = require('../helpers/forEach'); + +var Type = require('./Type'); + +// https://262.ecma-international.org/14.0/#sec-enumerableownproperties + +module.exports = function EnumerableOwnProperties(O, kind) { + if (Type(O) !== 'Object') { + throw new $TypeError('Assertion failed: Type(O) is not Object'); + } + + var keys = objectKeys(O); + if (kind === 'key') { + return keys; + } + if (kind === 'value' || kind === 'key+value') { + var results = []; + forEach(keys, function (key) { + if ($isEnumerable(O, key)) { + $pushApply(results, [ + kind === 'value' ? O[key] : [key, O[key]] + ]); + } + }); + return results; + } + throw new $TypeError('Assertion failed: "kind" is not "key", "value", or "key+value": ' + kind); +}; diff --git a/node_modules/es-abstract/2023/FindViaPredicate.js b/node_modules/es-abstract/2023/FindViaPredicate.js new file mode 100644 index 0000000000..963de94e14 --- /dev/null +++ b/node_modules/es-abstract/2023/FindViaPredicate.js @@ -0,0 +1,44 @@ +'use strict'; + +var GetIntrinsic = require('get-intrinsic'); + +var $TypeError = GetIntrinsic('%TypeError%'); + +var Call = require('./Call'); +var Get = require('./Get'); +var ToBoolean = require('./ToBoolean'); +var IsCallable = require('./IsCallable'); +var ToString = require('./ToString'); +var Type = require('./Type'); + +var isInteger = require('../helpers/isInteger'); + +module.exports = function FindViaPredicate(O, len, direction, predicate, thisArg) { + if (Type(O) !== 'Object') { + throw new $TypeError('Assertion failed: Type(O) is not Object'); + } + if (!isInteger(len) || len < 0) { + throw new $TypeError('Assertion failed: len must be a non-negative integer'); + } + if (direction !== 'ascending' && direction !== 'descending') { + throw new $TypeError('Assertion failed: direction must be "ascending" or "descending"'); + } + + if (!IsCallable(predicate)) { + throw new $TypeError('predicate must be callable'); // step 1 + } + + for ( // steps 2-4 + var k = direction === 'ascending' ? 0 : len - 1; + direction === 'ascending' ? k < len : k >= 0; + k += 1 + ) { + var Pk = ToString(k); // step 4.a + var kValue = Get(O, Pk); // step 4.c + var testResult = Call(predicate, thisArg, [kValue, k, O]); // step 4.d + if (ToBoolean(testResult)) { + return { '[[Index]]': k, '[[Value]]': kValue }; // step 4.e + } + } + return { '[[Index]]': -1, '[[Value]]': void undefined }; // step 5 +}; diff --git a/node_modules/es-abstract/2023/FlattenIntoArray.js b/node_modules/es-abstract/2023/FlattenIntoArray.js new file mode 100644 index 0000000000..0fb87bc6a3 --- /dev/null +++ b/node_modules/es-abstract/2023/FlattenIntoArray.js @@ -0,0 +1,57 @@ +'use strict'; + +var GetIntrinsic = require('get-intrinsic'); + +var $TypeError = GetIntrinsic('%TypeError%'); + +var MAX_SAFE_INTEGER = require('../helpers/maxSafeInteger'); + +var Call = require('./Call'); +var CreateDataPropertyOrThrow = require('./CreateDataPropertyOrThrow'); +var Get = require('./Get'); +var HasProperty = require('./HasProperty'); +var IsArray = require('./IsArray'); +var LengthOfArrayLike = require('./LengthOfArrayLike'); +var ToString = require('./ToString'); + +// https://262.ecma-international.org/11.0/#sec-flattenintoarray + +module.exports = function FlattenIntoArray(target, source, sourceLen, start, depth) { + var mapperFunction; + if (arguments.length > 5) { + mapperFunction = arguments[5]; + } + + var targetIndex = start; + var sourceIndex = 0; + while (sourceIndex < sourceLen) { + var P = ToString(sourceIndex); + var exists = HasProperty(source, P); + if (exists === true) { + var element = Get(source, P); + if (typeof mapperFunction !== 'undefined') { + if (arguments.length <= 6) { + throw new $TypeError('Assertion failed: thisArg is required when mapperFunction is provided'); + } + element = Call(mapperFunction, arguments[6], [element, sourceIndex, source]); + } + var shouldFlatten = false; + if (depth > 0) { + shouldFlatten = IsArray(element); + } + if (shouldFlatten) { + var elementLen = LengthOfArrayLike(element); + targetIndex = FlattenIntoArray(target, element, elementLen, targetIndex, depth - 1); + } else { + if (targetIndex >= MAX_SAFE_INTEGER) { + throw new $TypeError('index too large'); + } + CreateDataPropertyOrThrow(target, ToString(targetIndex), element); + targetIndex += 1; + } + } + sourceIndex += 1; + } + + return targetIndex; +}; diff --git a/node_modules/es-abstract/2023/FromPropertyDescriptor.js b/node_modules/es-abstract/2023/FromPropertyDescriptor.js new file mode 100644 index 0000000000..c70f0c60e1 --- /dev/null +++ b/node_modules/es-abstract/2023/FromPropertyDescriptor.js @@ -0,0 +1,16 @@ +'use strict'; + +var assertRecord = require('../helpers/assertRecord'); +var fromPropertyDescriptor = require('../helpers/fromPropertyDescriptor'); + +var Type = require('./Type'); + +// https://262.ecma-international.org/6.0/#sec-frompropertydescriptor + +module.exports = function FromPropertyDescriptor(Desc) { + if (typeof Desc !== 'undefined') { + assertRecord(Type, 'Property Descriptor', 'Desc', Desc); + } + + return fromPropertyDescriptor(Desc); +}; diff --git a/node_modules/es-abstract/2023/Get.js b/node_modules/es-abstract/2023/Get.js new file mode 100644 index 0000000000..0973152222 --- /dev/null +++ b/node_modules/es-abstract/2023/Get.js @@ -0,0 +1,25 @@ +'use strict'; + +var GetIntrinsic = require('get-intrinsic'); + +var $TypeError = GetIntrinsic('%TypeError%'); + +var inspect = require('object-inspect'); + +var IsPropertyKey = require('./IsPropertyKey'); +var Type = require('./Type'); + +// https://262.ecma-international.org/6.0/#sec-get-o-p + +module.exports = function Get(O, P) { + // 7.3.1.1 + if (Type(O) !== 'Object') { + throw new $TypeError('Assertion failed: Type(O) is not Object'); + } + // 7.3.1.2 + if (!IsPropertyKey(P)) { + throw new $TypeError('Assertion failed: IsPropertyKey(P) is not true, got ' + inspect(P)); + } + // 7.3.1.3 + return O[P]; +}; diff --git a/node_modules/es-abstract/2023/GetGlobalObject.js b/node_modules/es-abstract/2023/GetGlobalObject.js new file mode 100644 index 0000000000..0541ede0c4 --- /dev/null +++ b/node_modules/es-abstract/2023/GetGlobalObject.js @@ -0,0 +1,9 @@ +'use strict'; + +var getGlobal = require('globalthis/polyfill'); + +// https://262.ecma-international.org/6.0/#sec-getglobalobject + +module.exports = function GetGlobalObject() { + return getGlobal(); +}; diff --git a/node_modules/es-abstract/2023/GetIterator.js b/node_modules/es-abstract/2023/GetIterator.js new file mode 100644 index 0000000000..1308c7ed99 --- /dev/null +++ b/node_modules/es-abstract/2023/GetIterator.js @@ -0,0 +1,56 @@ +'use strict'; + +var GetIntrinsic = require('get-intrinsic'); + +var $TypeError = GetIntrinsic('%TypeError%'); +var $asyncIterator = GetIntrinsic('%Symbol.asyncIterator%', true); + +var inspect = require('object-inspect'); +var hasSymbols = require('has-symbols')(); + +var AdvanceStringIndex = require('./AdvanceStringIndex'); +var CreateAsyncFromSyncIterator = require('./CreateAsyncFromSyncIterator'); +var GetIteratorFromMethod = require('./GetIteratorFromMethod'); +var GetMethod = require('./GetMethod'); +var IsArray = require('./IsArray'); + +var getIteratorMethod = require('../helpers/getIteratorMethod'); + +// https://262.ecma-international.org/14.0/#sec-getiterator + +module.exports = function GetIterator(obj, kind) { + if (kind !== 'sync' && kind !== 'async') { + throw new $TypeError("Assertion failed: `kind` must be one of 'sync' or 'async', got " + inspect(kind)); + } + + var method; + if (kind === 'async') { // step 1 + if (hasSymbols && $asyncIterator) { + method = GetMethod(obj, $asyncIterator); // step 1.a + } + } + if (typeof method === 'undefined') { // step 1.b + // var syncMethod = GetMethod(obj, $iterator); // step 1.b.i + var syncMethod = getIteratorMethod( + { + AdvanceStringIndex: AdvanceStringIndex, + GetMethod: GetMethod, + IsArray: IsArray + }, + obj + ); + if (kind === 'async') { + if (typeof syncMethod === 'undefined') { + throw new $TypeError('iterator method is `undefined`'); // step 1.b.ii + } + var syncIteratorRecord = GetIteratorFromMethod(obj, syncMethod); // step 1.b.iii + return CreateAsyncFromSyncIterator(syncIteratorRecord); // step 1.b.iv + } + method = syncMethod; // step 2, kind of + } + + if (typeof method === 'undefined') { + throw new $TypeError('iterator method is `undefined`'); // step 3 + } + return GetIteratorFromMethod(obj, method); // step 4 +}; diff --git a/node_modules/es-abstract/2023/GetIteratorFromMethod.js b/node_modules/es-abstract/2023/GetIteratorFromMethod.js new file mode 100644 index 0000000000..aac91ca2cf --- /dev/null +++ b/node_modules/es-abstract/2023/GetIteratorFromMethod.js @@ -0,0 +1,30 @@ +'use strict'; + +var GetIntrinsic = require('get-intrinsic'); + +var $TypeError = GetIntrinsic('%TypeError%'); + +var Call = require('./Call'); +var GetV = require('./GetV'); +var IsCallable = require('./IsCallable'); +var Type = require('./Type'); + +// https://262.ecma-international.org/14.0/#sec-getiteratorfrommethod + +module.exports = function GetIteratorFromMethod(obj, method) { + if (!IsCallable(method)) { + throw new $TypeError('method must be a function'); + } + + var iterator = Call(method, obj); // step 1 + if (Type(iterator) !== 'Object') { + throw new $TypeError('iterator must return an object'); // step 2 + } + + var nextMethod = GetV(iterator, 'next'); // step 3 + return { // steps 4-5 + '[[Iterator]]': iterator, + '[[NextMethod]]': nextMethod, + '[[Done]]': false + }; +}; diff --git a/node_modules/es-abstract/2023/GetMatchIndexPair.js b/node_modules/es-abstract/2023/GetMatchIndexPair.js new file mode 100644 index 0000000000..c72d311a95 --- /dev/null +++ b/node_modules/es-abstract/2023/GetMatchIndexPair.js @@ -0,0 +1,26 @@ +'use strict'; + +var GetIntrinsic = require('get-intrinsic'); + +var $TypeError = GetIntrinsic('%TypeError%'); + +var Type = require('./Type'); + +var assertRecord = require('../helpers/assertRecord'); + +// https://262.ecma-international.org/13.0/#sec-getmatchindexpair + +module.exports = function GetMatchIndexPair(S, match) { + if (Type(S) !== 'String') { + throw new $TypeError('Assertion failed: `S` must be a String'); + } + assertRecord(Type, 'Match Record', 'match', match); + + if (!(match['[[StartIndex]]'] <= S.length)) { + throw new $TypeError('`match` [[StartIndex]] must be a non-negative integer <= the length of S'); + } + if (!(match['[[EndIndex]]'] <= S.length)) { + throw new $TypeError('`match` [[EndIndex]] must be an integer between [[StartIndex]] and the length of S, inclusive'); + } + return [match['[[StartIndex]]'], match['[[EndIndex]]']]; +}; diff --git a/node_modules/es-abstract/2023/GetMatchString.js b/node_modules/es-abstract/2023/GetMatchString.js new file mode 100644 index 0000000000..bfac4c43c5 --- /dev/null +++ b/node_modules/es-abstract/2023/GetMatchString.js @@ -0,0 +1,27 @@ +'use strict'; + +var GetIntrinsic = require('get-intrinsic'); + +var $TypeError = GetIntrinsic('%TypeError%'); + +var substring = require('./substring'); +var Type = require('./Type'); + +var assertRecord = require('../helpers/assertRecord'); + +// https://262.ecma-international.org/13.0/#sec-getmatchstring + +module.exports = function GetMatchString(S, match) { + if (Type(S) !== 'String') { + throw new $TypeError('Assertion failed: `S` must be a String'); + } + assertRecord(Type, 'Match Record', 'match', match); + + if (!(match['[[StartIndex]]'] <= S.length)) { + throw new $TypeError('`match` [[StartIndex]] must be a non-negative integer <= the length of S'); + } + if (!(match['[[EndIndex]]'] <= S.length)) { + throw new $TypeError('`match` [[EndIndex]] must be an integer between [[StartIndex]] and the length of S, inclusive'); + } + return substring(S, match['[[StartIndex]]'], match['[[EndIndex]]']); +}; diff --git a/node_modules/es-abstract/2023/GetMethod.js b/node_modules/es-abstract/2023/GetMethod.js new file mode 100644 index 0000000000..e9f2854ff3 --- /dev/null +++ b/node_modules/es-abstract/2023/GetMethod.js @@ -0,0 +1,36 @@ +'use strict'; + +var GetIntrinsic = require('get-intrinsic'); + +var $TypeError = GetIntrinsic('%TypeError%'); + +var GetV = require('./GetV'); +var IsCallable = require('./IsCallable'); +var IsPropertyKey = require('./IsPropertyKey'); + +var inspect = require('object-inspect'); + +// https://262.ecma-international.org/6.0/#sec-getmethod + +module.exports = function GetMethod(O, P) { + // 7.3.9.1 + if (!IsPropertyKey(P)) { + throw new $TypeError('Assertion failed: IsPropertyKey(P) is not true'); + } + + // 7.3.9.2 + var func = GetV(O, P); + + // 7.3.9.4 + if (func == null) { + return void 0; + } + + // 7.3.9.5 + if (!IsCallable(func)) { + throw new $TypeError(inspect(P) + ' is not a function: ' + inspect(func)); + } + + // 7.3.9.6 + return func; +}; diff --git a/node_modules/es-abstract/2023/GetOwnPropertyKeys.js b/node_modules/es-abstract/2023/GetOwnPropertyKeys.js new file mode 100644 index 0000000000..043fd733bd --- /dev/null +++ b/node_modules/es-abstract/2023/GetOwnPropertyKeys.js @@ -0,0 +1,31 @@ +'use strict'; + +var GetIntrinsic = require('get-intrinsic'); + +var hasSymbols = require('has-symbols')(); + +var $TypeError = GetIntrinsic('%TypeError%'); + +var $gOPN = GetIntrinsic('%Object.getOwnPropertyNames%', true); +var $gOPS = hasSymbols && GetIntrinsic('%Object.getOwnPropertySymbols%', true); +var keys = require('object-keys'); + +var esType = require('./Type'); + +// https://262.ecma-international.org/6.0/#sec-getownpropertykeys + +module.exports = function GetOwnPropertyKeys(O, Type) { + if (esType(O) !== 'Object') { + throw new $TypeError('Assertion failed: Type(O) is not Object'); + } + if (Type === 'Symbol') { + return $gOPS ? $gOPS(O) : []; + } + if (Type === 'String') { + if (!$gOPN) { + return keys(O); + } + return $gOPN(O); + } + throw new $TypeError('Assertion failed: `Type` must be `"String"` or `"Symbol"`'); +}; diff --git a/node_modules/es-abstract/2023/GetPromiseResolve.js b/node_modules/es-abstract/2023/GetPromiseResolve.js new file mode 100644 index 0000000000..f0db02617b --- /dev/null +++ b/node_modules/es-abstract/2023/GetPromiseResolve.js @@ -0,0 +1,22 @@ +'use strict'; + +var GetIntrinsic = require('get-intrinsic'); + +var $TypeError = GetIntrinsic('%TypeError%'); + +var Get = require('./Get'); +var IsCallable = require('./IsCallable'); +var IsConstructor = require('./IsConstructor'); + +// https://262.ecma-international.org/12.0/#sec-getpromiseresolve + +module.exports = function GetPromiseResolve(promiseConstructor) { + if (!IsConstructor(promiseConstructor)) { + throw new $TypeError('Assertion failed: `promiseConstructor` must be a constructor'); + } + var promiseResolve = Get(promiseConstructor, 'resolve'); + if (IsCallable(promiseResolve) === false) { + throw new $TypeError('`resolve` method is not callable'); + } + return promiseResolve; +}; diff --git a/node_modules/es-abstract/2023/GetPrototypeFromConstructor.js b/node_modules/es-abstract/2023/GetPrototypeFromConstructor.js new file mode 100644 index 0000000000..0b281ef4fe --- /dev/null +++ b/node_modules/es-abstract/2023/GetPrototypeFromConstructor.js @@ -0,0 +1,32 @@ +'use strict'; + +var GetIntrinsic = require('get-intrinsic'); + +var $Function = GetIntrinsic('%Function%'); +var $TypeError = GetIntrinsic('%TypeError%'); +var $SyntaxError = GetIntrinsic('%SyntaxError%'); + +var Get = require('./Get'); +var IsConstructor = require('./IsConstructor'); +var Type = require('./Type'); + +// https://262.ecma-international.org/6.0/#sec-getprototypefromconstructor + +module.exports = function GetPrototypeFromConstructor(constructor, intrinsicDefaultProto) { + var intrinsic = GetIntrinsic(intrinsicDefaultProto); // throws if not a valid intrinsic + if (Type(intrinsic) !== 'Object') { + throw new $TypeError('intrinsicDefaultProto must be an object'); + } + if (!IsConstructor(constructor)) { + throw new $TypeError('Assertion failed: `constructor` must be a constructor'); + } + var proto = Get(constructor, 'prototype'); + if (Type(proto) !== 'Object') { + if (!(constructor instanceof $Function)) { + // ignore other realms, for now + throw new $SyntaxError('cross-realm constructors not currently supported'); + } + proto = intrinsic; + } + return proto; +}; diff --git a/node_modules/es-abstract/2023/GetStringIndex.js b/node_modules/es-abstract/2023/GetStringIndex.js new file mode 100644 index 0000000000..9c796d86b8 --- /dev/null +++ b/node_modules/es-abstract/2023/GetStringIndex.js @@ -0,0 +1,31 @@ +'use strict'; + +var GetIntrinsic = require('get-intrinsic'); +var callBound = require('call-bind/callBound'); + +var $TypeError = GetIntrinsic('%TypeError%'); + +var StringToCodePoints = require('./StringToCodePoints'); +var Type = require('./Type'); + +var isInteger = require('../helpers/isInteger'); + +var $indexOf = callBound('String.prototype.indexOf'); + +// https://262.ecma-international.org/13.0/#sec-getstringindex + +module.exports = function GetStringIndex(S, e) { + if (Type(S) !== 'String') { + throw new $TypeError('Assertion failed: `S` must be a String'); + } + if (!isInteger(e) || e < 0) { + throw new $TypeError('Assertion failed: `e` must be a non-negative integer'); + } + + if (S === '') { + return 0; + } + var codepoints = StringToCodePoints(S); + var eUTF = e >= codepoints.length ? S.length : $indexOf(S, codepoints[e]); + return eUTF; +}; diff --git a/node_modules/es-abstract/2023/GetSubstitution.js b/node_modules/es-abstract/2023/GetSubstitution.js new file mode 100644 index 0000000000..9a5fc2e178 --- /dev/null +++ b/node_modules/es-abstract/2023/GetSubstitution.js @@ -0,0 +1,124 @@ +'use strict'; + +var GetIntrinsic = require('get-intrinsic'); + +var $TypeError = GetIntrinsic('%TypeError%'); + +var callBound = require('call-bind/callBound'); +var regexTester = require('safe-regex-test'); +var every = require('../helpers/every'); + +var $charAt = callBound('String.prototype.charAt'); +var $strSlice = callBound('String.prototype.slice'); +var $indexOf = callBound('String.prototype.indexOf'); +var $parseInt = parseInt; + +var isDigit = regexTester(/^[0-9]$/); + +var inspect = require('object-inspect'); + +var Get = require('./Get'); +var IsArray = require('./IsArray'); +var ToObject = require('./ToObject'); +var ToString = require('./ToString'); +var Type = require('./Type'); + +var isInteger = require('../helpers/isInteger'); +var isStringOrHole = require('../helpers/isStringOrHole'); + +// http://www.ecma-international.org/ecma-262/12.0/#sec-getsubstitution + +// eslint-disable-next-line max-statements, max-params, max-lines-per-function +module.exports = function GetSubstitution(matched, str, position, captures, namedCaptures, replacement) { + if (Type(matched) !== 'String') { + throw new $TypeError('Assertion failed: `matched` must be a String'); + } + var matchLength = matched.length; + + if (Type(str) !== 'String') { + throw new $TypeError('Assertion failed: `str` must be a String'); + } + var stringLength = str.length; + + if (!isInteger(position) || position < 0 || position > stringLength) { + throw new $TypeError('Assertion failed: `position` must be a nonnegative integer, and less than or equal to the length of `string`, got ' + inspect(position)); + } + + if (!IsArray(captures) || !every(captures, isStringOrHole)) { + throw new $TypeError('Assertion failed: `captures` must be a possibly-empty List of Strings, got ' + inspect(captures)); + } + + if (Type(replacement) !== 'String') { + throw new $TypeError('Assertion failed: `replacement` must be a String'); + } + + var tailPos = position + matchLength; + var m = captures.length; + if (Type(namedCaptures) !== 'Undefined') { + namedCaptures = ToObject(namedCaptures); // eslint-disable-line no-param-reassign + } + + var result = ''; + for (var i = 0; i < replacement.length; i += 1) { + // if this is a $, and it's not the end of the replacement + var current = $charAt(replacement, i); + var isLast = (i + 1) >= replacement.length; + var nextIsLast = (i + 2) >= replacement.length; + if (current === '$' && !isLast) { + var next = $charAt(replacement, i + 1); + if (next === '$') { + result += '$'; + i += 1; + } else if (next === '&') { + result += matched; + i += 1; + } else if (next === '`') { + result += position === 0 ? '' : $strSlice(str, 0, position - 1); + i += 1; + } else if (next === "'") { + result += tailPos >= stringLength ? '' : $strSlice(str, tailPos); + i += 1; + } else { + var nextNext = nextIsLast ? null : $charAt(replacement, i + 2); + if (isDigit(next) && next !== '0' && (nextIsLast || !isDigit(nextNext))) { + // $1 through $9, and not followed by a digit + var n = $parseInt(next, 10); + // if (n > m, impl-defined) + result += n <= m && Type(captures[n - 1]) === 'Undefined' ? '' : captures[n - 1]; + i += 1; + } else if (isDigit(next) && (nextIsLast || isDigit(nextNext))) { + // $00 through $99 + var nn = next + nextNext; + var nnI = $parseInt(nn, 10) - 1; + // if nn === '00' or nn > m, impl-defined + result += nn <= m && Type(captures[nnI]) === 'Undefined' ? '' : captures[nnI]; + i += 2; + } else if (next === '<') { + // eslint-disable-next-line max-depth + if (Type(namedCaptures) === 'Undefined') { + result += '$<'; + i += 2; + } else { + var endIndex = $indexOf(replacement, '>', i); + // eslint-disable-next-line max-depth + if (endIndex > -1) { + var groupName = $strSlice(replacement, i + '$<'.length, endIndex); + var capture = Get(namedCaptures, groupName); + // eslint-disable-next-line max-depth + if (Type(capture) !== 'Undefined') { + result += ToString(capture); + } + i += ('<' + groupName + '>').length; + } + } + } else { + result += '$'; + } + } + } else { + // the final $, or else not a $ + result += $charAt(replacement, i); + } + } + return result; +}; diff --git a/node_modules/es-abstract/2023/GetV.js b/node_modules/es-abstract/2023/GetV.js new file mode 100644 index 0000000000..706a9211ab --- /dev/null +++ b/node_modules/es-abstract/2023/GetV.js @@ -0,0 +1,25 @@ +'use strict'; + +var GetIntrinsic = require('get-intrinsic'); + +var $TypeError = GetIntrinsic('%TypeError%'); + +var inspect = require('object-inspect'); + +var IsPropertyKey = require('./IsPropertyKey'); +// var ToObject = require('./ToObject'); + +// https://262.ecma-international.org/6.0/#sec-getv + +module.exports = function GetV(V, P) { + // 7.3.2.1 + if (!IsPropertyKey(P)) { + throw new $TypeError('Assertion failed: IsPropertyKey(P) is not true, got ' + inspect(P)); + } + + // 7.3.2.2-3 + // var O = ToObject(V); + + // 7.3.2.4 + return V[P]; +}; diff --git a/node_modules/es-abstract/2023/GetValueFromBuffer.js b/node_modules/es-abstract/2023/GetValueFromBuffer.js new file mode 100644 index 0000000000..8d3a2f4fc5 --- /dev/null +++ b/node_modules/es-abstract/2023/GetValueFromBuffer.js @@ -0,0 +1,110 @@ +'use strict'; + +var GetIntrinsic = require('get-intrinsic'); + +var $SyntaxError = GetIntrinsic('%SyntaxError%'); +var $TypeError = GetIntrinsic('%TypeError%'); +var $Uint8Array = GetIntrinsic('%Uint8Array%', true); + +var callBound = require('call-bind/callBound'); + +var $slice = callBound('Array.prototype.slice'); + +var isInteger = require('../helpers/isInteger'); + +var IsDetachedBuffer = require('./IsDetachedBuffer'); +var RawBytesToNumeric = require('./RawBytesToNumeric'); + +var isArrayBuffer = require('is-array-buffer'); +var isSharedArrayBuffer = require('is-shared-array-buffer'); +var safeConcat = require('safe-array-concat'); + +var table61 = { + __proto__: null, + $Int8: 1, + $Uint8: 1, + $Uint8C: 1, + $Int16: 2, + $Uint16: 2, + $Int32: 4, + $Uint32: 4, + $BigInt64: 8, + $BigUint64: 8, + $Float32: 4, + $Float64: 8 +}; + +var defaultEndianness = require('../helpers/defaultEndianness'); + +// https://262.ecma-international.org/11.0/#sec-getvaluefrombuffer + +module.exports = function GetValueFromBuffer(arrayBuffer, byteIndex, type, isTypedArray, order) { + var isSAB = isSharedArrayBuffer(arrayBuffer); + if (!isArrayBuffer(arrayBuffer) && !isSAB) { + throw new $TypeError('Assertion failed: `arrayBuffer` must be an ArrayBuffer or a SharedArrayBuffer'); + } + + if (!isInteger(byteIndex)) { + throw new $TypeError('Assertion failed: `byteIndex` must be an integer'); + } + + if (typeof type !== 'string' || typeof table61['$' + type] !== 'number') { + throw new $TypeError('Assertion failed: `type` must be a Typed Array element type'); + } + + if (typeof isTypedArray !== 'boolean') { + throw new $TypeError('Assertion failed: `isTypedArray` must be a boolean'); + } + + if (order !== 'SeqCst' && order !== 'Unordered') { + throw new $TypeError('Assertion failed: `order` must be either `SeqCst` or `Unordered`'); + } + + if (arguments.length > 5 && typeof arguments[5] !== 'boolean') { + throw new $TypeError('Assertion failed: `isLittleEndian` must be a boolean, if present'); + } + + if (IsDetachedBuffer(arrayBuffer)) { + throw new $TypeError('Assertion failed: `arrayBuffer` is detached'); // step 1 + } + + // 2. Assert: There are sufficient bytes in arrayBuffer starting at byteIndex to represent a value of type. + + if (byteIndex < 0) { + throw new $TypeError('Assertion failed: `byteIndex` must be non-negative'); // step 3 + } + + // 4. Let block be arrayBuffer.[[ArrayBufferData]]. + + var elementSize = table61['$' + type]; // step 5 + if (!elementSize) { + throw new $TypeError('Assertion failed: `type` must be one of "Int8", "Uint8", "Uint8C", "Int16", "Uint16", "Int32", "Uint32", "BigInt64", "BigUint64", "Float32", or "Float64"'); + } + + var rawValue; + if (isSAB) { // step 6 + /* + a. Let execution be the [[CandidateExecution]] field of the surrounding agent's Agent Record. + b. Let eventList be the [[EventList]] field of the element in execution.[[EventLists]] whose [[AgentSignifier]] is AgentSignifier(). + c. If isTypedArray is true and type is "Int8", "Uint8", "Int16", "Uint16", "Int32", or "Uint32", let noTear be true; otherwise let noTear be false. + d. Let rawValue be a List of length elementSize of nondeterministically chosen byte values. + e. NOTE: In implementations, rawValue is the result of a non-atomic or atomic read instruction on the underlying hardware. The nondeterminism is a semantic prescription of the memory model to describe observable behaviour of hardware with weak consistency. + f. Let readEvent be ReadSharedMemory{ [[Order]]: order, [[NoTear]]: noTear, [[Block]]: block, [[ByteIndex]]: byteIndex, [[ElementSize]]: elementSize }. + g. Append readEvent to eventList. + h. Append Chosen Value Record { [[Event]]: readEvent, [[ChosenValue]]: rawValue } to execution.[[ChosenValues]]. + */ + throw new $SyntaxError('SharedArrayBuffer is not supported by this implementation'); + } else { + // 7. Let rawValue be a List of elementSize containing, in order, the elementSize sequence of bytes starting with block[byteIndex]. + rawValue = $slice(new $Uint8Array(arrayBuffer, byteIndex), 0, elementSize); // step 6 + } + + // 8. If isLittleEndian is not present, set isLittleEndian to either true or false. The choice is implementation dependent and should be the alternative that is most efficient for the implementation. An implementation must use the same value each time this step is executed and the same value must be used for the corresponding step in the SetValueInBuffer abstract operation. + var isLittleEndian = arguments.length > 5 ? arguments[5] : defaultEndianness === 'little'; // step 8 + + var bytes = isLittleEndian + ? $slice(safeConcat([0, 0, 0, 0, 0, 0, 0, 0], rawValue), -elementSize) + : $slice(safeConcat(rawValue, [0, 0, 0, 0, 0, 0, 0, 0]), 0, elementSize); + + return RawBytesToNumeric(type, bytes, isLittleEndian); +}; diff --git a/node_modules/es-abstract/2023/HasOwnProperty.js b/node_modules/es-abstract/2023/HasOwnProperty.js new file mode 100644 index 0000000000..1f29ba4df1 --- /dev/null +++ b/node_modules/es-abstract/2023/HasOwnProperty.js @@ -0,0 +1,22 @@ +'use strict'; + +var GetIntrinsic = require('get-intrinsic'); + +var $TypeError = GetIntrinsic('%TypeError%'); + +var has = require('has'); + +var IsPropertyKey = require('./IsPropertyKey'); +var Type = require('./Type'); + +// https://262.ecma-international.org/6.0/#sec-hasownproperty + +module.exports = function HasOwnProperty(O, P) { + if (Type(O) !== 'Object') { + throw new $TypeError('Assertion failed: `O` must be an Object'); + } + if (!IsPropertyKey(P)) { + throw new $TypeError('Assertion failed: `P` must be a Property Key'); + } + return has(O, P); +}; diff --git a/node_modules/es-abstract/2023/HasProperty.js b/node_modules/es-abstract/2023/HasProperty.js new file mode 100644 index 0000000000..91476d208b --- /dev/null +++ b/node_modules/es-abstract/2023/HasProperty.js @@ -0,0 +1,20 @@ +'use strict'; + +var GetIntrinsic = require('get-intrinsic'); + +var $TypeError = GetIntrinsic('%TypeError%'); + +var IsPropertyKey = require('./IsPropertyKey'); +var Type = require('./Type'); + +// https://262.ecma-international.org/6.0/#sec-hasproperty + +module.exports = function HasProperty(O, P) { + if (Type(O) !== 'Object') { + throw new $TypeError('Assertion failed: `O` must be an Object'); + } + if (!IsPropertyKey(P)) { + throw new $TypeError('Assertion failed: `P` must be a Property Key'); + } + return P in O; +}; diff --git a/node_modules/es-abstract/2023/HourFromTime.js b/node_modules/es-abstract/2023/HourFromTime.js new file mode 100644 index 0000000000..f963bfb685 --- /dev/null +++ b/node_modules/es-abstract/2023/HourFromTime.js @@ -0,0 +1,14 @@ +'use strict'; + +var floor = require('./floor'); +var modulo = require('./modulo'); + +var timeConstants = require('../helpers/timeConstants'); +var msPerHour = timeConstants.msPerHour; +var HoursPerDay = timeConstants.HoursPerDay; + +// https://262.ecma-international.org/5.1/#sec-15.9.1.10 + +module.exports = function HourFromTime(t) { + return modulo(floor(t / msPerHour), HoursPerDay); +}; diff --git a/node_modules/es-abstract/2023/InLeapYear.js b/node_modules/es-abstract/2023/InLeapYear.js new file mode 100644 index 0000000000..bfe0c451f4 --- /dev/null +++ b/node_modules/es-abstract/2023/InLeapYear.js @@ -0,0 +1,21 @@ +'use strict'; + +var GetIntrinsic = require('get-intrinsic'); + +var $EvalError = GetIntrinsic('%EvalError%'); + +var DaysInYear = require('./DaysInYear'); +var YearFromTime = require('./YearFromTime'); + +// https://262.ecma-international.org/5.1/#sec-15.9.1.3 + +module.exports = function InLeapYear(t) { + var days = DaysInYear(YearFromTime(t)); + if (days === 365) { + return 0; + } + if (days === 366) { + return 1; + } + throw new $EvalError('Assertion failed: there are not 365 or 366 days in a year, got: ' + days); +}; diff --git a/node_modules/es-abstract/2023/InstallErrorCause.js b/node_modules/es-abstract/2023/InstallErrorCause.js new file mode 100644 index 0000000000..949ecc77ee --- /dev/null +++ b/node_modules/es-abstract/2023/InstallErrorCause.js @@ -0,0 +1,23 @@ +'use strict'; + +var GetIntrinsic = require('get-intrinsic'); + +var $TypeError = GetIntrinsic('%TypeError%'); + +var CreateNonEnumerableDataPropertyOrThrow = require('./CreateNonEnumerableDataPropertyOrThrow'); +var Get = require('./Get'); +var HasProperty = require('./HasProperty'); +var Type = require('./Type'); + +// https://262.ecma-international.org/13.0/#sec-installerrorcause + +module.exports = function InstallErrorCause(O, options) { + if (Type(O) !== 'Object') { + throw new $TypeError('Assertion failed: Type(O) is not Object'); + } + + if (Type(options) === 'Object' && HasProperty(options, 'cause')) { + var cause = Get(options, 'cause'); + CreateNonEnumerableDataPropertyOrThrow(O, 'cause', cause); + } +}; diff --git a/node_modules/es-abstract/2023/InstanceofOperator.js b/node_modules/es-abstract/2023/InstanceofOperator.js new file mode 100644 index 0000000000..4a34d0c20c --- /dev/null +++ b/node_modules/es-abstract/2023/InstanceofOperator.js @@ -0,0 +1,30 @@ +'use strict'; + +var GetIntrinsic = require('get-intrinsic'); + +var $TypeError = GetIntrinsic('%TypeError%'); + +var $hasInstance = GetIntrinsic('Symbol.hasInstance', true); + +var Call = require('./Call'); +var GetMethod = require('./GetMethod'); +var IsCallable = require('./IsCallable'); +var OrdinaryHasInstance = require('./OrdinaryHasInstance'); +var ToBoolean = require('./ToBoolean'); +var Type = require('./Type'); + +// https://262.ecma-international.org/6.0/#sec-instanceofoperator + +module.exports = function InstanceofOperator(O, C) { + if (Type(O) !== 'Object') { + throw new $TypeError('Assertion failed: Type(O) is not Object'); + } + var instOfHandler = $hasInstance ? GetMethod(C, $hasInstance) : void 0; + if (typeof instOfHandler !== 'undefined') { + return ToBoolean(Call(instOfHandler, C, [O])); + } + if (!IsCallable(C)) { + throw new $TypeError('`C` is not Callable'); + } + return OrdinaryHasInstance(C, O); +}; diff --git a/node_modules/es-abstract/2023/Invoke.js b/node_modules/es-abstract/2023/Invoke.js new file mode 100644 index 0000000000..084e5e2825 --- /dev/null +++ b/node_modules/es-abstract/2023/Invoke.js @@ -0,0 +1,24 @@ +'use strict'; + +var GetIntrinsic = require('get-intrinsic'); + +var $TypeError = GetIntrinsic('%TypeError%'); + +var Call = require('./Call'); +var IsArray = require('./IsArray'); +var GetV = require('./GetV'); +var IsPropertyKey = require('./IsPropertyKey'); + +// https://262.ecma-international.org/6.0/#sec-invoke + +module.exports = function Invoke(O, P) { + if (!IsPropertyKey(P)) { + throw new $TypeError('Assertion failed: P must be a Property Key'); + } + var argumentsList = arguments.length > 2 ? arguments[2] : []; + if (!IsArray(argumentsList)) { + throw new $TypeError('Assertion failed: optional `argumentsList`, if provided, must be a List'); + } + var func = GetV(O, P); + return Call(func, O, argumentsList); +}; diff --git a/node_modules/es-abstract/2023/IsAccessorDescriptor.js b/node_modules/es-abstract/2023/IsAccessorDescriptor.js new file mode 100644 index 0000000000..da64a302ac --- /dev/null +++ b/node_modules/es-abstract/2023/IsAccessorDescriptor.js @@ -0,0 +1,23 @@ +'use strict'; + +var has = require('has'); + +var Type = require('./Type'); + +var assertRecord = require('../helpers/assertRecord'); + +// https://262.ecma-international.org/5.1/#sec-8.10.1 + +module.exports = function IsAccessorDescriptor(Desc) { + if (typeof Desc === 'undefined') { + return false; + } + + assertRecord(Type, 'Property Descriptor', 'Desc', Desc); + + if (!has(Desc, '[[Get]]') && !has(Desc, '[[Set]]')) { + return false; + } + + return true; +}; diff --git a/node_modules/es-abstract/2023/IsArray.js b/node_modules/es-abstract/2023/IsArray.js new file mode 100644 index 0000000000..c2c48c1f23 --- /dev/null +++ b/node_modules/es-abstract/2023/IsArray.js @@ -0,0 +1,4 @@ +'use strict'; + +// https://262.ecma-international.org/6.0/#sec-isarray +module.exports = require('../helpers/IsArray'); diff --git a/node_modules/es-abstract/2023/IsBigIntElementType.js b/node_modules/es-abstract/2023/IsBigIntElementType.js new file mode 100644 index 0000000000..e3f58a949b --- /dev/null +++ b/node_modules/es-abstract/2023/IsBigIntElementType.js @@ -0,0 +1,7 @@ +'use strict'; + +// https://262.ecma-international.org/11.0/#sec-isbigintelementtype + +module.exports = function IsBigIntElementType(type) { + return type === 'BigUint64' || type === 'BigInt64'; +}; diff --git a/node_modules/es-abstract/2023/IsCallable.js b/node_modules/es-abstract/2023/IsCallable.js new file mode 100644 index 0000000000..3a69b19267 --- /dev/null +++ b/node_modules/es-abstract/2023/IsCallable.js @@ -0,0 +1,5 @@ +'use strict'; + +// http://262.ecma-international.org/5.1/#sec-9.11 + +module.exports = require('is-callable'); diff --git a/node_modules/es-abstract/2023/IsCompatiblePropertyDescriptor.js b/node_modules/es-abstract/2023/IsCompatiblePropertyDescriptor.js new file mode 100644 index 0000000000..48e719f3c1 --- /dev/null +++ b/node_modules/es-abstract/2023/IsCompatiblePropertyDescriptor.js @@ -0,0 +1,9 @@ +'use strict'; + +var ValidateAndApplyPropertyDescriptor = require('./ValidateAndApplyPropertyDescriptor'); + +// https://262.ecma-international.org/13.0/#sec-iscompatiblepropertydescriptor + +module.exports = function IsCompatiblePropertyDescriptor(Extensible, Desc, Current) { + return ValidateAndApplyPropertyDescriptor(undefined, '', Extensible, Desc, Current); +}; diff --git a/node_modules/es-abstract/2023/IsConcatSpreadable.js b/node_modules/es-abstract/2023/IsConcatSpreadable.js new file mode 100644 index 0000000000..10e1eab216 --- /dev/null +++ b/node_modules/es-abstract/2023/IsConcatSpreadable.js @@ -0,0 +1,25 @@ +'use strict'; + +var GetIntrinsic = require('get-intrinsic'); + +var $isConcatSpreadable = GetIntrinsic('%Symbol.isConcatSpreadable%', true); + +var Get = require('./Get'); +var IsArray = require('./IsArray'); +var ToBoolean = require('./ToBoolean'); +var Type = require('./Type'); + +// https://262.ecma-international.org/6.0/#sec-isconcatspreadable + +module.exports = function IsConcatSpreadable(O) { + if (Type(O) !== 'Object') { + return false; + } + if ($isConcatSpreadable) { + var spreadable = Get(O, $isConcatSpreadable); + if (typeof spreadable !== 'undefined') { + return ToBoolean(spreadable); + } + } + return IsArray(O); +}; diff --git a/node_modules/es-abstract/2023/IsConstructor.js b/node_modules/es-abstract/2023/IsConstructor.js new file mode 100644 index 0000000000..62ac47f6a3 --- /dev/null +++ b/node_modules/es-abstract/2023/IsConstructor.js @@ -0,0 +1,40 @@ +'use strict'; + +var GetIntrinsic = require('../GetIntrinsic.js'); + +var $construct = GetIntrinsic('%Reflect.construct%', true); + +var DefinePropertyOrThrow = require('./DefinePropertyOrThrow'); +try { + DefinePropertyOrThrow({}, '', { '[[Get]]': function () {} }); +} catch (e) { + // Accessor properties aren't supported + DefinePropertyOrThrow = null; +} + +// https://262.ecma-international.org/6.0/#sec-isconstructor + +if (DefinePropertyOrThrow && $construct) { + var isConstructorMarker = {}; + var badArrayLike = {}; + DefinePropertyOrThrow(badArrayLike, 'length', { + '[[Get]]': function () { + throw isConstructorMarker; + }, + '[[Enumerable]]': true + }); + + module.exports = function IsConstructor(argument) { + try { + // `Reflect.construct` invokes `IsConstructor(target)` before `Get(args, 'length')`: + $construct(argument, badArrayLike); + } catch (err) { + return err === isConstructorMarker; + } + }; +} else { + module.exports = function IsConstructor(argument) { + // unfortunately there's no way to truly check this without try/catch `new argument` in old environments + return typeof argument === 'function' && !!argument.prototype; + }; +} diff --git a/node_modules/es-abstract/2023/IsDataDescriptor.js b/node_modules/es-abstract/2023/IsDataDescriptor.js new file mode 100644 index 0000000000..9db441e965 --- /dev/null +++ b/node_modules/es-abstract/2023/IsDataDescriptor.js @@ -0,0 +1,23 @@ +'use strict'; + +var has = require('has'); + +var Type = require('./Type'); + +var assertRecord = require('../helpers/assertRecord'); + +// https://262.ecma-international.org/5.1/#sec-8.10.2 + +module.exports = function IsDataDescriptor(Desc) { + if (typeof Desc === 'undefined') { + return false; + } + + assertRecord(Type, 'Property Descriptor', 'Desc', Desc); + + if (!has(Desc, '[[Value]]') && !has(Desc, '[[Writable]]')) { + return false; + } + + return true; +}; diff --git a/node_modules/es-abstract/2023/IsDetachedBuffer.js b/node_modules/es-abstract/2023/IsDetachedBuffer.js new file mode 100644 index 0000000000..01529bca2c --- /dev/null +++ b/node_modules/es-abstract/2023/IsDetachedBuffer.js @@ -0,0 +1,27 @@ +'use strict'; + +var GetIntrinsic = require('get-intrinsic'); + +var $TypeError = GetIntrinsic('%TypeError%'); + +var $byteLength = require('array-buffer-byte-length'); + +var isArrayBuffer = require('is-array-buffer'); + +var availableTypedArrays = require('available-typed-arrays')(); + +// https://262.ecma-international.org/6.0/#sec-isdetachedbuffer + +module.exports = function IsDetachedBuffer(arrayBuffer) { + if (!isArrayBuffer(arrayBuffer)) { + throw new $TypeError('Assertion failed: `arrayBuffer` must be an Object with an [[ArrayBufferData]] internal slot'); + } + if ($byteLength(arrayBuffer) === 0) { + try { + new global[availableTypedArrays[0]](arrayBuffer); // eslint-disable-line no-new + } catch (error) { + return !!error && error.name === 'TypeError'; + } + } + return false; +}; diff --git a/node_modules/es-abstract/2023/IsExtensible.js b/node_modules/es-abstract/2023/IsExtensible.js new file mode 100644 index 0000000000..aa19b914c2 --- /dev/null +++ b/node_modules/es-abstract/2023/IsExtensible.js @@ -0,0 +1,18 @@ +'use strict'; + +var GetIntrinsic = require('get-intrinsic'); + +var $preventExtensions = GetIntrinsic('%Object.preventExtensions%', true); +var $isExtensible = GetIntrinsic('%Object.isExtensible%', true); + +var isPrimitive = require('../helpers/isPrimitive'); + +// https://262.ecma-international.org/6.0/#sec-isextensible-o + +module.exports = $preventExtensions + ? function IsExtensible(obj) { + return !isPrimitive(obj) && $isExtensible(obj); + } + : function IsExtensible(obj) { + return !isPrimitive(obj); + }; diff --git a/node_modules/es-abstract/2023/IsGenericDescriptor.js b/node_modules/es-abstract/2023/IsGenericDescriptor.js new file mode 100644 index 0000000000..d43bec2b35 --- /dev/null +++ b/node_modules/es-abstract/2023/IsGenericDescriptor.js @@ -0,0 +1,23 @@ +'use strict'; + +var assertRecord = require('../helpers/assertRecord'); + +var IsAccessorDescriptor = require('./IsAccessorDescriptor'); +var IsDataDescriptor = require('./IsDataDescriptor'); +var Type = require('./Type'); + +// https://262.ecma-international.org/6.0/#sec-isgenericdescriptor + +module.exports = function IsGenericDescriptor(Desc) { + if (typeof Desc === 'undefined') { + return false; + } + + assertRecord(Type, 'Property Descriptor', 'Desc', Desc); + + if (!IsAccessorDescriptor(Desc) && !IsDataDescriptor(Desc)) { + return true; + } + + return false; +}; diff --git a/node_modules/es-abstract/2023/IsIntegralNumber.js b/node_modules/es-abstract/2023/IsIntegralNumber.js new file mode 100644 index 0000000000..f00051a449 --- /dev/null +++ b/node_modules/es-abstract/2023/IsIntegralNumber.js @@ -0,0 +1,15 @@ +'use strict'; + +var truncate = require('./truncate'); +var Type = require('./Type'); + +var $isFinite = require('../helpers/isFinite'); + +// https://262.ecma-international.org/14.0/#sec-isintegralnumber + +module.exports = function IsIntegralNumber(argument) { + if (Type(argument) !== 'Number' || !$isFinite(argument)) { + return false; + } + return truncate(argument) === argument; +}; diff --git a/node_modules/es-abstract/2023/IsLessThan.js b/node_modules/es-abstract/2023/IsLessThan.js new file mode 100644 index 0000000000..03d420fdd5 --- /dev/null +++ b/node_modules/es-abstract/2023/IsLessThan.js @@ -0,0 +1,100 @@ +'use strict'; + +var GetIntrinsic = require('get-intrinsic'); + +var $Number = GetIntrinsic('%Number%'); +var $TypeError = GetIntrinsic('%TypeError%'); +var min = GetIntrinsic('%Math.min%'); + +var $isNaN = require('../helpers/isNaN'); +var $charCodeAt = require('call-bind/callBound')('String.prototype.charCodeAt'); + +var StringToBigInt = require('./StringToBigInt'); +var ToNumeric = require('./ToNumeric'); +var ToPrimitive = require('./ToPrimitive'); +var Type = require('./Type'); + +var BigIntLessThan = require('./BigInt/lessThan'); +var NumberLessThan = require('./Number/lessThan'); + +// https://262.ecma-international.org/14.0/#sec-islessthan + +// eslint-disable-next-line max-statements, max-lines-per-function +module.exports = function IsLessThan(x, y, LeftFirst) { + if (Type(LeftFirst) !== 'Boolean') { + throw new $TypeError('Assertion failed: LeftFirst argument must be a Boolean'); + } + var px; + var py; + if (LeftFirst) { + px = ToPrimitive(x, $Number); + py = ToPrimitive(y, $Number); + } else { + py = ToPrimitive(y, $Number); + px = ToPrimitive(x, $Number); + } + var pxType = Type(px); + var pyType = Type(py); + if (pxType === 'String' && pyType === 'String') { // step 3 + // a. Let lx be the length of px. + // b. Let ly be the length of py. + // c. For each integer i starting with 0 such that i < min(lx, ly), in ascending order, do + // i. Let cx be the integer that is the numeric value of the code unit at index i within px. + // ii. Let cy be the integer that is the numeric value of the code unit at index i within py. + // iii. If cx < cy, return true. + // iv. If cx > cy, return false. + // d. If lx < ly, return true. Otherwise, return false. + + var lx = px.length; // step 3.a + var ly = py.length; // step 3.b + for (var i = 0; i < min(lx, ly); i++) { // step 3.c + var cx = $charCodeAt(px, i); // step 3.c.i + var cy = $charCodeAt(py, i); // step 3.c.ii + if (cx < cy) { + return true; // step 3.c.iii + } + if (cx > cy) { + return false; // step 3.c.iv + } + } + return lx < ly; // step 3.d + } + + var nx; + var ny; + if (pxType === 'BigInt' && pyType === 'String') { + ny = StringToBigInt(py); + if (typeof ny === 'undefined') { + return void undefined; + } + return BigIntLessThan(px, ny); + } + if (pxType === 'String' && pyType === 'BigInt') { + nx = StringToBigInt(px); + if (typeof nx === 'undefined') { + return void undefined; + } + return BigIntLessThan(nx, py); + } + + nx = ToNumeric(px); + ny = ToNumeric(py); + + var nxType = Type(nx); + if (nxType === Type(ny)) { + return nxType === 'Number' ? NumberLessThan(nx, ny) : BigIntLessThan(nx, ny); + } + + if ($isNaN(nx) || $isNaN(ny)) { + return void undefined; + } + + if (nx === -Infinity || ny === Infinity) { + return true; + } + if (nx === Infinity || ny === -Infinity) { + return false; + } + + return nx < ny; // by now, these are both finite, and the same type +}; diff --git a/node_modules/es-abstract/2023/IsLooselyEqual.js b/node_modules/es-abstract/2023/IsLooselyEqual.js new file mode 100644 index 0000000000..9d254ba68c --- /dev/null +++ b/node_modules/es-abstract/2023/IsLooselyEqual.js @@ -0,0 +1,58 @@ +'use strict'; + +var isFinite = require('../helpers/isFinite'); + +var IsStrictlyEqual = require('./IsStrictlyEqual'); +var StringToBigInt = require('./StringToBigInt'); +var ToNumber = require('./ToNumber'); +var ToPrimitive = require('./ToPrimitive'); +var Type = require('./Type'); + +// https://262.ecma-international.org/13.0/#sec-islooselyequal + +module.exports = function IsLooselyEqual(x, y) { + var xType = Type(x); + var yType = Type(y); + if (xType === yType) { + return IsStrictlyEqual(x, y); + } + if (x == null && y == null) { + return true; + } + if (xType === 'Number' && yType === 'String') { + return IsLooselyEqual(x, ToNumber(y)); + } + if (xType === 'String' && yType === 'Number') { + return IsLooselyEqual(ToNumber(x), y); + } + if (xType === 'BigInt' && yType === 'String') { + var n = StringToBigInt(y); + if (typeof n === 'undefined') { + return false; + } + return IsLooselyEqual(x, n); + } + if (xType === 'String' && yType === 'BigInt') { + return IsLooselyEqual(y, x); + } + if (xType === 'Boolean') { + return IsLooselyEqual(ToNumber(x), y); + } + if (yType === 'Boolean') { + return IsLooselyEqual(x, ToNumber(y)); + } + if ((xType === 'String' || xType === 'Number' || xType === 'Symbol' || xType === 'BigInt') && yType === 'Object') { + return IsLooselyEqual(x, ToPrimitive(y)); + } + if (xType === 'Object' && (yType === 'String' || yType === 'Number' || yType === 'Symbol' || yType === 'BigInt')) { + return IsLooselyEqual(ToPrimitive(x), y); + } + if ((xType === 'BigInt' && yType === 'Number') || (xType === 'Number' && yType === 'BigInt')) { + if (!isFinite(x) || !isFinite(y)) { + return false; + } + // eslint-disable-next-line eqeqeq + return x == y; // shortcut for step 13.b. + } + return false; +}; diff --git a/node_modules/es-abstract/2023/IsNoTearConfiguration.js b/node_modules/es-abstract/2023/IsNoTearConfiguration.js new file mode 100644 index 0000000000..f0d2808737 --- /dev/null +++ b/node_modules/es-abstract/2023/IsNoTearConfiguration.js @@ -0,0 +1,16 @@ +'use strict'; + +var IsUnclampedIntegerElementType = require('./IsUnclampedIntegerElementType'); +var IsBigIntElementType = require('./IsBigIntElementType'); + +// https://262.ecma-international.org/11.0/#sec-isnotearconfiguration + +module.exports = function IsNoTearConfiguration(type, order) { + if (IsUnclampedIntegerElementType(type)) { + return true; + } + if (IsBigIntElementType(type) && order !== 'Init' && order !== 'Unordered') { + return true; + } + return false; +}; diff --git a/node_modules/es-abstract/2023/IsPromise.js b/node_modules/es-abstract/2023/IsPromise.js new file mode 100644 index 0000000000..411539b081 --- /dev/null +++ b/node_modules/es-abstract/2023/IsPromise.js @@ -0,0 +1,24 @@ +'use strict'; + +var callBound = require('call-bind/callBound'); + +var $PromiseThen = callBound('Promise.prototype.then', true); + +var Type = require('./Type'); + +// https://262.ecma-international.org/6.0/#sec-ispromise + +module.exports = function IsPromise(x) { + if (Type(x) !== 'Object') { + return false; + } + if (!$PromiseThen) { // Promises are not supported + return false; + } + try { + $PromiseThen(x); // throws if not a promise + } catch (e) { + return false; + } + return true; +}; diff --git a/node_modules/es-abstract/2023/IsPropertyKey.js b/node_modules/es-abstract/2023/IsPropertyKey.js new file mode 100644 index 0000000000..aaeb6f9b6f --- /dev/null +++ b/node_modules/es-abstract/2023/IsPropertyKey.js @@ -0,0 +1,7 @@ +'use strict'; + +// https://262.ecma-international.org/6.0/#sec-ispropertykey + +module.exports = function IsPropertyKey(argument) { + return typeof argument === 'string' || typeof argument === 'symbol'; +}; diff --git a/node_modules/es-abstract/2023/IsRegExp.js b/node_modules/es-abstract/2023/IsRegExp.js new file mode 100644 index 0000000000..33d983dc8d --- /dev/null +++ b/node_modules/es-abstract/2023/IsRegExp.js @@ -0,0 +1,24 @@ +'use strict'; + +var GetIntrinsic = require('get-intrinsic'); + +var $match = GetIntrinsic('%Symbol.match%', true); + +var hasRegExpMatcher = require('is-regex'); + +var ToBoolean = require('./ToBoolean'); + +// https://262.ecma-international.org/6.0/#sec-isregexp + +module.exports = function IsRegExp(argument) { + if (!argument || typeof argument !== 'object') { + return false; + } + if ($match) { + var isRegExp = argument[$match]; + if (typeof isRegExp !== 'undefined') { + return ToBoolean(isRegExp); + } + } + return hasRegExpMatcher(argument); +}; diff --git a/node_modules/es-abstract/2023/IsSharedArrayBuffer.js b/node_modules/es-abstract/2023/IsSharedArrayBuffer.js new file mode 100644 index 0000000000..8e96e33f3c --- /dev/null +++ b/node_modules/es-abstract/2023/IsSharedArrayBuffer.js @@ -0,0 +1,19 @@ +'use strict'; + +var GetIntrinsic = require('get-intrinsic'); + +var $TypeError = GetIntrinsic('%TypeError%'); + +var Type = require('./Type'); + +var isSharedArrayBuffer = require('is-shared-array-buffer'); + +// https://262.ecma-international.org/8.0/#sec-issharedarraybuffer + +module.exports = function IsSharedArrayBuffer(obj) { + if (Type(obj) !== 'Object') { + throw new $TypeError('Assertion failed: Type(O) is not Object'); + } + + return isSharedArrayBuffer(obj); +}; diff --git a/node_modules/es-abstract/2023/IsStrictlyEqual.js b/node_modules/es-abstract/2023/IsStrictlyEqual.js new file mode 100644 index 0000000000..81966d62af --- /dev/null +++ b/node_modules/es-abstract/2023/IsStrictlyEqual.js @@ -0,0 +1,16 @@ +'use strict'; + +var SameValueNonNumber = require('./SameValueNonNumber'); +var Type = require('./Type'); +var NumberEqual = require('./Number/equal'); + +// https://262.ecma-international.org/14.0/#sec-isstrictlyequal + +module.exports = function IsStrictlyEqual(x, y) { + var xType = Type(x); + var yType = Type(y); + if (xType !== yType) { + return false; + } + return xType === 'Number' ? NumberEqual(x, y) : SameValueNonNumber(x, y); +}; diff --git a/node_modules/es-abstract/2023/IsStringWellFormedUnicode.js b/node_modules/es-abstract/2023/IsStringWellFormedUnicode.js new file mode 100644 index 0000000000..4a4ad6682b --- /dev/null +++ b/node_modules/es-abstract/2023/IsStringWellFormedUnicode.js @@ -0,0 +1,26 @@ +'use strict'; + +var GetIntrinsic = require('get-intrinsic'); +var CodePointAt = require('./CodePointAt'); + +var $TypeError = GetIntrinsic('%TypeError%'); + +var Type = require('./Type'); + +// https://262.ecma-international.org/14.0/#sec-isstringwellformedunicode + +module.exports = function IsStringWellFormedUnicode(string) { + if (Type(string) !== 'String') { + throw new $TypeError('Assertion failed: `string` must be a String'); + } + var len = string.length; // step 1 + var k = 0; // step 2 + while (k < len) { // step 3 + var cp = CodePointAt(string, k); // step 3.a + if (cp['[[IsUnpairedSurrogate]]']) { + return false; // step 3.b + } + k += cp['[[CodeUnitCount]]']; // step 3.c + } + return true; // step 4 +}; diff --git a/node_modules/es-abstract/2023/IsUnclampedIntegerElementType.js b/node_modules/es-abstract/2023/IsUnclampedIntegerElementType.js new file mode 100644 index 0000000000..4e3a38425d --- /dev/null +++ b/node_modules/es-abstract/2023/IsUnclampedIntegerElementType.js @@ -0,0 +1,12 @@ +'use strict'; + +// https://262.ecma-international.org/11.0/#sec-isunclampedintegerelementtype + +module.exports = function IsUnclampedIntegerElementType(type) { + return type === 'Int8' + || type === 'Uint8' + || type === 'Int16' + || type === 'Uint16' + || type === 'Int32' + || type === 'Uint32'; +}; diff --git a/node_modules/es-abstract/2023/IsUnsignedElementType.js b/node_modules/es-abstract/2023/IsUnsignedElementType.js new file mode 100644 index 0000000000..b1ff194d73 --- /dev/null +++ b/node_modules/es-abstract/2023/IsUnsignedElementType.js @@ -0,0 +1,11 @@ +'use strict'; + +// https://262.ecma-international.org/11.0/#sec-isunsignedelementtype + +module.exports = function IsUnsignedElementType(type) { + return type === 'Uint8' + || type === 'Uint8C' + || type === 'Uint16' + || type === 'Uint32' + || type === 'BigUint64'; +}; diff --git a/node_modules/es-abstract/2023/IsValidIntegerIndex.js b/node_modules/es-abstract/2023/IsValidIntegerIndex.js new file mode 100644 index 0000000000..830416312d --- /dev/null +++ b/node_modules/es-abstract/2023/IsValidIntegerIndex.js @@ -0,0 +1,33 @@ +'use strict'; + +var GetIntrinsic = require('get-intrinsic'); + +var $TypeError = GetIntrinsic('%TypeError%'); + +var IsDetachedBuffer = require('./IsDetachedBuffer'); +var IsIntegralNumber = require('./IsIntegralNumber'); + +var isNegativeZero = require('../helpers/isNegativeZero'); + +var typedArrayBuffer = require('typed-array-buffer'); + +// https://262.ecma-international.org/12.0/#sec-isvalidintegerindex + +module.exports = function IsValidIntegerIndex(O, index) { + // Assert: O is an Integer-Indexed exotic object. + var buffer = typedArrayBuffer(O); // step 1 + + if (typeof index !== 'number') { + throw new $TypeError('Assertion failed: Type(index) is not Number'); + } + + if (IsDetachedBuffer(buffer)) { return false; } // step 2 + + if (!IsIntegralNumber(index)) { return false; } // step 3 + + if (isNegativeZero(index)) { return false; } // step 4 + + if (index < 0 || index >= O.length) { return false; } // step 5 + + return true; // step 6 +}; diff --git a/node_modules/es-abstract/2023/IsWordChar.js b/node_modules/es-abstract/2023/IsWordChar.js new file mode 100644 index 0000000000..3d8459ab6d --- /dev/null +++ b/node_modules/es-abstract/2023/IsWordChar.js @@ -0,0 +1,45 @@ +'use strict'; + +var GetIntrinsic = require('get-intrinsic'); + +var $TypeError = GetIntrinsic('%TypeError%'); + +var callBound = require('call-bind/callBound'); + +var $indexOf = callBound('String.prototype.indexOf'); + +var IsArray = require('./IsArray'); +var Type = require('./Type'); +var WordCharacters = require('./WordCharacters'); + +var assertRecord = require('../helpers/assertRecord'); +var every = require('../helpers/every'); +var isInteger = require('../helpers/isInteger'); + +var isChar = function isChar(c) { + return typeof c === 'string'; +}; + +// https://262.ecma-international.org/14.0/#sec-runtime-semantics-iswordchar-abstract-operation + +// note: prior to ES2023, this AO erroneously omitted the latter of its arguments. +module.exports = function IsWordChar(rer, Input, e) { + assertRecord(Type, 'RegExp Record', 'rer', rer); + if (!IsArray(Input) || !every(Input, isChar)) { + throw new $TypeError('Assertion failed: `Input` must be a List of characters'); + } + + if (!isInteger(e)) { + throw new $TypeError('Assertion failed: `e` must be an integer'); + } + + var InputLength = Input.length; // step 1 + + if (e === -1 || e === InputLength) { + return false; // step 2 + } + + var c = Input[e]; // step 3 + + return $indexOf(WordCharacters(rer), c) > -1; // steps 4-5 +}; diff --git a/node_modules/es-abstract/2023/IteratorClose.js b/node_modules/es-abstract/2023/IteratorClose.js new file mode 100644 index 0000000000..0e393534cb --- /dev/null +++ b/node_modules/es-abstract/2023/IteratorClose.js @@ -0,0 +1,62 @@ +'use strict'; + +var GetIntrinsic = require('get-intrinsic'); + +var $TypeError = GetIntrinsic('%TypeError%'); + +var Call = require('./Call'); +var CompletionRecord = require('./CompletionRecord'); +var GetMethod = require('./GetMethod'); +var IsCallable = require('./IsCallable'); +var Type = require('./Type'); + +var assertRecord = require('../helpers/assertRecord'); + +// https://262.ecma-international.org/14.0/#sec-iteratorclose + +module.exports = function IteratorClose(iteratorRecord, completion) { + assertRecord(Type, 'Iterator Record', 'iteratorRecord', iteratorRecord); + if (Type(iteratorRecord['[[Iterator]]']) !== 'Object') { + throw new $TypeError('Assertion failed: iteratorRecord.[[Iterator]] must be an Object'); // step 1 + } + + if (!IsCallable(completion) && !(completion instanceof CompletionRecord)) { // step 2 + throw new $TypeError('Assertion failed: completion is not a thunk representing a Completion Record, nor a Completion Record instance'); + } + var completionThunk = completion instanceof CompletionRecord ? function () { return completion['?'](); } : completion; + + var iterator = iteratorRecord['[[Iterator]]']; // step 3 + + var iteratorReturn; + try { + iteratorReturn = GetMethod(iterator, 'return'); // step 4 + } catch (e) { + completionThunk(); // throws if `completion` is a throw completion // step 6 + completionThunk = null; // ensure it's not called twice. + throw e; // step 7 + } + if (typeof iteratorReturn === 'undefined') { + return completionThunk(); // step 5.a - 5.b + } + + var innerResult; + try { + innerResult = Call(iteratorReturn, iterator, []); + } catch (e) { + // if we hit here, then "e" is the innerResult completion that needs re-throwing + + completionThunk(); // throws if `completion` is a throw completion // step 6 + completionThunk = null; // ensure it's not called twice. + + // if not, then return the innerResult completion + throw e; // step 7 + } + var completionRecord = completionThunk(); // if innerResult worked, then throw if the completion does + completionThunk = null; // ensure it's not called twice. + + if (Type(innerResult) !== 'Object') { + throw new $TypeError('iterator .return must return an object'); + } + + return completionRecord; +}; diff --git a/node_modules/es-abstract/2023/IteratorComplete.js b/node_modules/es-abstract/2023/IteratorComplete.js new file mode 100644 index 0000000000..29f5f75fea --- /dev/null +++ b/node_modules/es-abstract/2023/IteratorComplete.js @@ -0,0 +1,18 @@ +'use strict'; + +var GetIntrinsic = require('get-intrinsic'); + +var $TypeError = GetIntrinsic('%TypeError%'); + +var Get = require('./Get'); +var ToBoolean = require('./ToBoolean'); +var Type = require('./Type'); + +// https://262.ecma-international.org/6.0/#sec-iteratorcomplete + +module.exports = function IteratorComplete(iterResult) { + if (Type(iterResult) !== 'Object') { + throw new $TypeError('Assertion failed: Type(iterResult) is not Object'); + } + return ToBoolean(Get(iterResult, 'done')); +}; diff --git a/node_modules/es-abstract/2023/IteratorNext.js b/node_modules/es-abstract/2023/IteratorNext.js new file mode 100644 index 0000000000..b893ef1bd9 --- /dev/null +++ b/node_modules/es-abstract/2023/IteratorNext.js @@ -0,0 +1,28 @@ +'use strict'; + +var GetIntrinsic = require('get-intrinsic'); + +var $TypeError = GetIntrinsic('%TypeError%'); + +var Call = require('./Call'); +var Type = require('./Type'); + +var assertRecord = require('../helpers/assertRecord'); + +// https://262.ecma-international.org/14.0/#sec-iteratornext + +module.exports = function IteratorNext(iteratorRecord) { + assertRecord(Type, 'Iterator Record', 'iteratorRecord', iteratorRecord); + + var result; + if (arguments.length < 2) { // step 1 + result = Call(iteratorRecord['[[NextMethod]]'], iteratorRecord['[[Iterator]]']); // step 1.a + } else { // step 2 + result = Call(iteratorRecord['[[NextMethod]]'], iteratorRecord['[[Iterator]]'], [arguments[1]]); // step 2.a + } + + if (Type(result) !== 'Object') { + throw new $TypeError('iterator next must return an object'); // step 3 + } + return result; // step 4 +}; diff --git a/node_modules/es-abstract/2023/IteratorStep.js b/node_modules/es-abstract/2023/IteratorStep.js new file mode 100644 index 0000000000..c4f15362a0 --- /dev/null +++ b/node_modules/es-abstract/2023/IteratorStep.js @@ -0,0 +1,18 @@ +'use strict'; + +var IteratorComplete = require('./IteratorComplete'); +var IteratorNext = require('./IteratorNext'); +var Type = require('./Type'); + +var assertRecord = require('../helpers/assertRecord'); + +// https://262.ecma-international.org/14.0/#sec-iteratorstep + +module.exports = function IteratorStep(iteratorRecord) { + assertRecord(Type, 'Iterator Record', 'iteratorRecord', iteratorRecord); + + var result = IteratorNext(iteratorRecord); // step 1 + var done = IteratorComplete(result); // step 2 + return done === true ? false : result; // steps 3-4 +}; + diff --git a/node_modules/es-abstract/2023/IteratorToList.js b/node_modules/es-abstract/2023/IteratorToList.js new file mode 100644 index 0000000000..5b5ecea343 --- /dev/null +++ b/node_modules/es-abstract/2023/IteratorToList.js @@ -0,0 +1,28 @@ +'use strict'; + +var callBound = require('call-bind/callBound'); + +var $arrayPush = callBound('Array.prototype.push'); + +var IteratorStep = require('./IteratorStep'); +var IteratorValue = require('./IteratorValue'); +var Type = require('./Type'); + +var assertRecord = require('../helpers/assertRecord'); + +// https://262.ecma-international.org/14.0/#sec-iteratortolist + +module.exports = function IteratorToList(iteratorRecord) { + assertRecord(Type, 'Iterator Record', 'iteratorRecord', iteratorRecord); + + var values = []; // step 1 + var next = true; // step 2 + while (next) { // step 3 + next = IteratorStep(iteratorRecord); // step 3.a + if (next) { + var nextValue = IteratorValue(next); // step 3.b.i + $arrayPush(values, nextValue); // step 3.b.ii + } + } + return values; // step 4 +}; diff --git a/node_modules/es-abstract/2023/IteratorValue.js b/node_modules/es-abstract/2023/IteratorValue.js new file mode 100644 index 0000000000..e9b16daed5 --- /dev/null +++ b/node_modules/es-abstract/2023/IteratorValue.js @@ -0,0 +1,18 @@ +'use strict'; + +var GetIntrinsic = require('get-intrinsic'); + +var $TypeError = GetIntrinsic('%TypeError%'); + +var Get = require('./Get'); +var Type = require('./Type'); + +// https://262.ecma-international.org/6.0/#sec-iteratorvalue + +module.exports = function IteratorValue(iterResult) { + if (Type(iterResult) !== 'Object') { + throw new $TypeError('Assertion failed: Type(iterResult) is not Object'); + } + return Get(iterResult, 'value'); +}; + diff --git a/node_modules/es-abstract/2023/KeyForSymbol.js b/node_modules/es-abstract/2023/KeyForSymbol.js new file mode 100644 index 0000000000..5fec3cc74c --- /dev/null +++ b/node_modules/es-abstract/2023/KeyForSymbol.js @@ -0,0 +1,20 @@ +'use strict'; + +var GetIntrinsic = require('get-intrinsic'); + +var $TypeError = GetIntrinsic('%TypeError%'); + +var callBound = require('call-bind/callBound'); + +var $keyFor = callBound('Symbol.keyFor', true); + +var Type = require('./Type'); + +// https://262.ecma-international.org/14.0/#sec-keyforsymbol + +module.exports = function KeyForSymbol(sym) { + if (Type(sym) !== 'Symbol') { + throw new $TypeError('Assertion failed: `sym` must be a Symbol'); + } + return $keyFor(sym); +}; diff --git a/node_modules/es-abstract/2023/LengthOfArrayLike.js b/node_modules/es-abstract/2023/LengthOfArrayLike.js new file mode 100644 index 0000000000..132c4d5848 --- /dev/null +++ b/node_modules/es-abstract/2023/LengthOfArrayLike.js @@ -0,0 +1,20 @@ +'use strict'; + +var GetIntrinsic = require('get-intrinsic'); + +var $TypeError = GetIntrinsic('%TypeError%'); + +var Get = require('./Get'); +var ToLength = require('./ToLength'); +var Type = require('./Type'); + +// https://262.ecma-international.org/11.0/#sec-lengthofarraylike + +module.exports = function LengthOfArrayLike(obj) { + if (Type(obj) !== 'Object') { + throw new $TypeError('Assertion failed: `obj` must be an Object'); + } + return ToLength(Get(obj, 'length')); +}; + +// TODO: use this all over diff --git a/node_modules/es-abstract/2023/MakeDate.js b/node_modules/es-abstract/2023/MakeDate.js new file mode 100644 index 0000000000..efeb6452e7 --- /dev/null +++ b/node_modules/es-abstract/2023/MakeDate.js @@ -0,0 +1,13 @@ +'use strict'; + +var $isFinite = require('../helpers/isFinite'); +var msPerDay = require('../helpers/timeConstants').msPerDay; + +// https://262.ecma-international.org/5.1/#sec-15.9.1.13 + +module.exports = function MakeDate(day, time) { + if (!$isFinite(day) || !$isFinite(time)) { + return NaN; + } + return (day * msPerDay) + time; +}; diff --git a/node_modules/es-abstract/2023/MakeDay.js b/node_modules/es-abstract/2023/MakeDay.js new file mode 100644 index 0000000000..161ccaf23d --- /dev/null +++ b/node_modules/es-abstract/2023/MakeDay.js @@ -0,0 +1,36 @@ +'use strict'; + +var GetIntrinsic = require('get-intrinsic'); + +var $DateUTC = GetIntrinsic('%Date.UTC%'); + +var $isFinite = require('../helpers/isFinite'); + +var DateFromTime = require('./DateFromTime'); +var Day = require('./Day'); +var floor = require('./floor'); +var modulo = require('./modulo'); +var MonthFromTime = require('./MonthFromTime'); +var ToIntegerOrInfinity = require('./ToIntegerOrInfinity'); +var YearFromTime = require('./YearFromTime'); + +// https://262.ecma-international.org/5.1/#sec-15.9.1.12 + +module.exports = function MakeDay(year, month, date) { + if (!$isFinite(year) || !$isFinite(month) || !$isFinite(date)) { + return NaN; + } + var y = ToIntegerOrInfinity(year); + var m = ToIntegerOrInfinity(month); + var dt = ToIntegerOrInfinity(date); + var ym = y + floor(m / 12); + if (!$isFinite(ym)) { + return NaN; + } + var mn = modulo(m, 12); + var t = $DateUTC(ym, mn, 1); + if (YearFromTime(t) !== ym || MonthFromTime(t) !== mn || DateFromTime(t) !== 1) { + return NaN; + } + return Day(t) + dt - 1; +}; diff --git a/node_modules/es-abstract/2023/MakeMatchIndicesIndexPairArray.js b/node_modules/es-abstract/2023/MakeMatchIndicesIndexPairArray.js new file mode 100644 index 0000000000..962f5d8be8 --- /dev/null +++ b/node_modules/es-abstract/2023/MakeMatchIndicesIndexPairArray.js @@ -0,0 +1,69 @@ +'use strict'; + +var GetIntrinsic = require('get-intrinsic'); + +var $TypeError = GetIntrinsic('%TypeError%'); + +var ArrayCreate = require('./ArrayCreate'); +var CreateDataPropertyOrThrow = require('./CreateDataPropertyOrThrow'); +var GetMatchIndexPair = require('./GetMatchIndexPair'); +var IsArray = require('./IsArray'); +var OrdinaryObjectCreate = require('./OrdinaryObjectCreate'); +var ToString = require('./ToString'); +var Type = require('./Type'); + +var every = require('../helpers/every'); +var isMatchRecord = require('../helpers/isMatchRecord'); + +var isStringOrUndefined = function isStringOrUndefined(s) { + return typeof s === 'undefined' || typeof s === 'string'; +}; + +var isMatchRecordOrUndefined = function isMatchRecordOrUndefined(m) { + return typeof m === 'undefined' || isMatchRecord(m); +}; + +var MAX_ARRAY_LENGTH = Math.pow(2, 32) - 1; + +// https://262.ecma-international.org/13.0/#sec-getmatchindexpair + +module.exports = function MakeMatchIndicesIndexPairArray(S, indices, groupNames, hasGroups) { + if (Type(S) !== 'String') { + throw new $TypeError('Assertion failed: `S` must be a String'); + } + if (!IsArray(indices) || !every(indices, isMatchRecordOrUndefined)) { + throw new $TypeError('Assertion failed: `indices` must be a List of either Match Records or `undefined`'); + } + if (!IsArray(groupNames) || !every(groupNames, isStringOrUndefined)) { + throw new $TypeError('Assertion failed: `groupNames` must be a List of either Strings or `undefined`'); + } + if (Type(hasGroups) !== 'Boolean') { + throw new $TypeError('Assertion failed: `hasGroups` must be a Boolean'); + } + + var n = indices.length; // step 1 + if (!(n < MAX_ARRAY_LENGTH)) { + throw new $TypeError('Assertion failed: `indices` length must be less than the max array size, 2**32 - 1'); + } + if (groupNames.length !== n - 1) { + throw new $TypeError('Assertion failed: `groupNames` must have exactly one fewer item than `indices`'); + } + + var A = ArrayCreate(n); // step 5 + var groups = hasGroups ? OrdinaryObjectCreate(null) : void undefined; // step 6-7 + CreateDataPropertyOrThrow(A, 'groups', groups); // step 8 + + for (var i = 0; i < n; i += 1) { // step 9 + var matchIndices = indices[i]; // step 9.a + // eslint-disable-next-line no-negated-condition + var matchIndexPair = typeof matchIndices !== 'undefined' ? GetMatchIndexPair(S, matchIndices) : void undefined; // step 9.b-9.c + CreateDataPropertyOrThrow(A, ToString(i), matchIndexPair); // step 9.d + if (i > 0 && typeof groupNames[i - 1] !== 'undefined') { // step 9.e + if (!groups) { + throw new $TypeError('if `hasGroups` is `false`, `groupNames` can only contain `undefined` values'); + } + CreateDataPropertyOrThrow(groups, groupNames[i - 1], matchIndexPair); // step 9.e.i + } + } + return A; // step 10 +}; diff --git a/node_modules/es-abstract/2023/MakeTime.js b/node_modules/es-abstract/2023/MakeTime.js new file mode 100644 index 0000000000..a11d07ef83 --- /dev/null +++ b/node_modules/es-abstract/2023/MakeTime.js @@ -0,0 +1,23 @@ +'use strict'; + +var $isFinite = require('../helpers/isFinite'); +var timeConstants = require('../helpers/timeConstants'); +var msPerSecond = timeConstants.msPerSecond; +var msPerMinute = timeConstants.msPerMinute; +var msPerHour = timeConstants.msPerHour; + +var ToIntegerOrInfinity = require('./ToIntegerOrInfinity'); + +// https://262.ecma-international.org/12.0/#sec-maketime + +module.exports = function MakeTime(hour, min, sec, ms) { + if (!$isFinite(hour) || !$isFinite(min) || !$isFinite(sec) || !$isFinite(ms)) { + return NaN; + } + var h = ToIntegerOrInfinity(hour); + var m = ToIntegerOrInfinity(min); + var s = ToIntegerOrInfinity(sec); + var milli = ToIntegerOrInfinity(ms); + var t = (h * msPerHour) + (m * msPerMinute) + (s * msPerSecond) + milli; + return t; +}; diff --git a/node_modules/es-abstract/2023/MinFromTime.js b/node_modules/es-abstract/2023/MinFromTime.js new file mode 100644 index 0000000000..a0c631d4cc --- /dev/null +++ b/node_modules/es-abstract/2023/MinFromTime.js @@ -0,0 +1,14 @@ +'use strict'; + +var floor = require('./floor'); +var modulo = require('./modulo'); + +var timeConstants = require('../helpers/timeConstants'); +var msPerMinute = timeConstants.msPerMinute; +var MinutesPerHour = timeConstants.MinutesPerHour; + +// https://262.ecma-international.org/5.1/#sec-15.9.1.10 + +module.exports = function MinFromTime(t) { + return modulo(floor(t / msPerMinute), MinutesPerHour); +}; diff --git a/node_modules/es-abstract/2023/MonthFromTime.js b/node_modules/es-abstract/2023/MonthFromTime.js new file mode 100644 index 0000000000..a482a7df95 --- /dev/null +++ b/node_modules/es-abstract/2023/MonthFromTime.js @@ -0,0 +1,47 @@ +'use strict'; + +var DayWithinYear = require('./DayWithinYear'); +var InLeapYear = require('./InLeapYear'); + +// https://262.ecma-international.org/5.1/#sec-15.9.1.4 + +module.exports = function MonthFromTime(t) { + var day = DayWithinYear(t); + if (0 <= day && day < 31) { + return 0; + } + var leap = InLeapYear(t); + if (31 <= day && day < (59 + leap)) { + return 1; + } + if ((59 + leap) <= day && day < (90 + leap)) { + return 2; + } + if ((90 + leap) <= day && day < (120 + leap)) { + return 3; + } + if ((120 + leap) <= day && day < (151 + leap)) { + return 4; + } + if ((151 + leap) <= day && day < (181 + leap)) { + return 5; + } + if ((181 + leap) <= day && day < (212 + leap)) { + return 6; + } + if ((212 + leap) <= day && day < (243 + leap)) { + return 7; + } + if ((243 + leap) <= day && day < (273 + leap)) { + return 8; + } + if ((273 + leap) <= day && day < (304 + leap)) { + return 9; + } + if ((304 + leap) <= day && day < (334 + leap)) { + return 10; + } + if ((334 + leap) <= day && day < (365 + leap)) { + return 11; + } +}; diff --git a/node_modules/es-abstract/2023/NewPromiseCapability.js b/node_modules/es-abstract/2023/NewPromiseCapability.js new file mode 100644 index 0000000000..e30b08811d --- /dev/null +++ b/node_modules/es-abstract/2023/NewPromiseCapability.js @@ -0,0 +1,36 @@ +'use strict'; + +var GetIntrinsic = require('get-intrinsic'); + +var $TypeError = GetIntrinsic('%TypeError%'); + +var IsCallable = require('es-abstract/2022/IsCallable'); +var IsConstructor = require('es-abstract/2022/IsConstructor'); + +// https://262.ecma-international.org/6.0/#sec-newpromisecapability + +module.exports = function NewPromiseCapability(C) { + if (!IsConstructor(C)) { + throw new $TypeError('C must be a constructor'); // step 1 + } + + var resolvingFunctions = { '[[Resolve]]': void undefined, '[[Reject]]': void undefined }; // step 3 + + var promise = new C(function (resolve, reject) { // steps 4-5 + if (typeof resolvingFunctions['[[Resolve]]'] !== 'undefined' || typeof resolvingFunctions['[[Reject]]'] !== 'undefined') { + throw new $TypeError('executor has already been called'); // step 4.a, 4.b + } + resolvingFunctions['[[Resolve]]'] = resolve; // step 4.c + resolvingFunctions['[[Reject]]'] = reject; // step 4.d + }); // step 4-6 + + if (!IsCallable(resolvingFunctions['[[Resolve]]']) || !IsCallable(resolvingFunctions['[[Reject]]'])) { + throw new $TypeError('executor must provide valid resolve and reject functions'); // steps 7-8 + } + + return { + '[[Promise]]': promise, + '[[Resolve]]': resolvingFunctions['[[Resolve]]'], + '[[Reject]]': resolvingFunctions['[[Reject]]'] + }; // step 9 +}; diff --git a/node_modules/es-abstract/2023/NormalCompletion.js b/node_modules/es-abstract/2023/NormalCompletion.js new file mode 100644 index 0000000000..1e429dd65c --- /dev/null +++ b/node_modules/es-abstract/2023/NormalCompletion.js @@ -0,0 +1,9 @@ +'use strict'; + +var CompletionRecord = require('./CompletionRecord'); + +// https://262.ecma-international.org/6.0/#sec-normalcompletion + +module.exports = function NormalCompletion(value) { + return new CompletionRecord('normal', value); +}; diff --git a/node_modules/es-abstract/2023/Number/add.js b/node_modules/es-abstract/2023/Number/add.js new file mode 100644 index 0000000000..8d6271f545 --- /dev/null +++ b/node_modules/es-abstract/2023/Number/add.js @@ -0,0 +1,36 @@ +'use strict'; + +var GetIntrinsic = require('get-intrinsic'); + +var $TypeError = GetIntrinsic('%TypeError%'); + +var isFinite = require('../../helpers/isFinite'); +var isNaN = require('../../helpers/isNaN'); + +var Type = require('../Type'); + +// https://262.ecma-international.org/12.0/#sec-numeric-types-number-add + +module.exports = function NumberAdd(x, y) { + if (Type(x) !== 'Number' || Type(y) !== 'Number') { + throw new $TypeError('Assertion failed: `x` and `y` arguments must be Numbers'); + } + + if (isNaN(x) || isNaN(y) || (x === Infinity && y === -Infinity) || (x === -Infinity && y === Infinity)) { + return NaN; + } + + if (!isFinite(x)) { + return x; + } + if (!isFinite(y)) { + return y; + } + + if (x === y && x === 0) { // both zeroes + return Infinity / x === -Infinity && Infinity / y === -Infinity ? -0 : +0; + } + + // shortcut for the actual spec mechanics + return x + y; +}; diff --git a/node_modules/es-abstract/2023/Number/bitwiseAND.js b/node_modules/es-abstract/2023/Number/bitwiseAND.js new file mode 100644 index 0000000000..a7159802de --- /dev/null +++ b/node_modules/es-abstract/2023/Number/bitwiseAND.js @@ -0,0 +1,17 @@ +'use strict'; + +var GetIntrinsic = require('get-intrinsic'); + +var $TypeError = GetIntrinsic('%TypeError%'); + +var NumberBitwiseOp = require('../NumberBitwiseOp'); +var Type = require('../Type'); + +// https://262.ecma-international.org/11.0/#sec-numeric-types-number-bitwiseAND + +module.exports = function NumberBitwiseAND(x, y) { + if (Type(x) !== 'Number' || Type(y) !== 'Number') { + throw new $TypeError('Assertion failed: `x` and `y` arguments must be Numbers'); + } + return NumberBitwiseOp('&', x, y); +}; diff --git a/node_modules/es-abstract/2023/Number/bitwiseNOT.js b/node_modules/es-abstract/2023/Number/bitwiseNOT.js new file mode 100644 index 0000000000..ae8032a785 --- /dev/null +++ b/node_modules/es-abstract/2023/Number/bitwiseNOT.js @@ -0,0 +1,19 @@ +'use strict'; + +var GetIntrinsic = require('get-intrinsic'); + +var $TypeError = GetIntrinsic('%TypeError%'); + +var ToInt32 = require('../ToInt32'); +var Type = require('../Type'); + +// https://262.ecma-international.org/11.0/#sec-numeric-types-number-bitwiseNOT + +module.exports = function NumberBitwiseNOT(x) { + if (Type(x) !== 'Number') { + throw new $TypeError('Assertion failed: `x` argument must be a Number'); + } + var oldValue = ToInt32(x); + // Return the result of applying the bitwise operator op to lnum and rnum. The result is a signed 32-bit integer. + return ~oldValue; +}; diff --git a/node_modules/es-abstract/2023/Number/bitwiseOR.js b/node_modules/es-abstract/2023/Number/bitwiseOR.js new file mode 100644 index 0000000000..c5e67b9680 --- /dev/null +++ b/node_modules/es-abstract/2023/Number/bitwiseOR.js @@ -0,0 +1,17 @@ +'use strict'; + +var GetIntrinsic = require('get-intrinsic'); + +var $TypeError = GetIntrinsic('%TypeError%'); + +var NumberBitwiseOp = require('../NumberBitwiseOp'); +var Type = require('../Type'); + +// https://262.ecma-international.org/11.0/#sec-numeric-types-number-bitwiseOR + +module.exports = function NumberBitwiseOR(x, y) { + if (Type(x) !== 'Number' || Type(y) !== 'Number') { + throw new $TypeError('Assertion failed: `x` and `y` arguments must be Numbers'); + } + return NumberBitwiseOp('|', x, y); +}; diff --git a/node_modules/es-abstract/2023/Number/bitwiseXOR.js b/node_modules/es-abstract/2023/Number/bitwiseXOR.js new file mode 100644 index 0000000000..a4030e9a4b --- /dev/null +++ b/node_modules/es-abstract/2023/Number/bitwiseXOR.js @@ -0,0 +1,17 @@ +'use strict'; + +var GetIntrinsic = require('get-intrinsic'); + +var $TypeError = GetIntrinsic('%TypeError%'); + +var NumberBitwiseOp = require('../NumberBitwiseOp'); +var Type = require('../Type'); + +// https://262.ecma-international.org/11.0/#sec-numeric-types-number-bitwiseXOR + +module.exports = function NumberBitwiseXOR(x, y) { + if (Type(x) !== 'Number' || Type(y) !== 'Number') { + throw new $TypeError('Assertion failed: `x` and `y` arguments must be Numbers'); + } + return NumberBitwiseOp('^', x, y); +}; diff --git a/node_modules/es-abstract/2023/Number/divide.js b/node_modules/es-abstract/2023/Number/divide.js new file mode 100644 index 0000000000..65244625d3 --- /dev/null +++ b/node_modules/es-abstract/2023/Number/divide.js @@ -0,0 +1,22 @@ +'use strict'; + +var GetIntrinsic = require('get-intrinsic'); + +var $TypeError = GetIntrinsic('%TypeError%'); + +var isFinite = require('../../helpers/isFinite'); +var isNaN = require('../../helpers/isNaN'); +var Type = require('../Type'); + +// https://262.ecma-international.org/11.0/#sec-numeric-types-number-divide + +module.exports = function NumberDivide(x, y) { + if (Type(x) !== 'Number' || Type(y) !== 'Number') { + throw new $TypeError('Assertion failed: `x` and `y` arguments must be Numbers'); + } + if (isNaN(x) || isNaN(y) || (!isFinite(x) && !isFinite(y))) { + return NaN; + } + // shortcut for the actual spec mechanics + return x / y; +}; diff --git a/node_modules/es-abstract/2023/Number/equal.js b/node_modules/es-abstract/2023/Number/equal.js new file mode 100644 index 0000000000..db68afa464 --- /dev/null +++ b/node_modules/es-abstract/2023/Number/equal.js @@ -0,0 +1,21 @@ +'use strict'; + +var GetIntrinsic = require('get-intrinsic'); + +var $TypeError = GetIntrinsic('%TypeError%'); + +var isNaN = require('../../helpers/isNaN'); +var Type = require('../Type'); + +// https://262.ecma-international.org/11.0/#sec-numeric-types-number-equal + +module.exports = function NumberEqual(x, y) { + if (Type(x) !== 'Number' || Type(y) !== 'Number') { + throw new $TypeError('Assertion failed: `x` and `y` arguments must be Numbers'); + } + if (isNaN(x) || isNaN(y)) { + return false; + } + // shortcut for the actual spec mechanics + return x === y; +}; diff --git a/node_modules/es-abstract/2023/Number/exponentiate.js b/node_modules/es-abstract/2023/Number/exponentiate.js new file mode 100644 index 0000000000..2568651032 --- /dev/null +++ b/node_modules/es-abstract/2023/Number/exponentiate.js @@ -0,0 +1,77 @@ +'use strict'; + +var GetIntrinsic = require('get-intrinsic'); +// var isNegativeZero = require('is-negative-zero'); + +var $pow = GetIntrinsic('%Math.pow%'); + +var $TypeError = GetIntrinsic('%TypeError%'); + +/* +var abs = require('../../helpers/abs'); +var isFinite = require('../../helpers/isFinite'); +var isNaN = require('../../helpers/isNaN'); + +var IsInteger = require('../IsInteger'); +*/ +var Type = require('../Type'); + +// https://262.ecma-international.org/11.0/#sec-numeric-types-number-exponentiate + +/* eslint max-lines-per-function: 0, max-statements: 0 */ + +module.exports = function NumberExponentiate(base, exponent) { + if (Type(base) !== 'Number' || Type(exponent) !== 'Number') { + throw new $TypeError('Assertion failed: `base` and `exponent` arguments must be Numbers'); + } + return $pow(base, exponent); + /* + if (isNaN(exponent)) { + return NaN; + } + if (exponent === 0) { + return 1; + } + if (isNaN(base)) { + return NaN; + } + var aB = abs(base); + if (aB > 1 && exponent === Infinity) { + return Infinity; + } + if (aB > 1 && exponent === -Infinity) { + return 0; + } + if (aB === 1 && (exponent === Infinity || exponent === -Infinity)) { + return NaN; + } + if (aB < 1 && exponent === Infinity) { + return +0; + } + if (aB < 1 && exponent === -Infinity) { + return Infinity; + } + if (base === Infinity) { + return exponent > 0 ? Infinity : 0; + } + if (base === -Infinity) { + var isOdd = true; + if (exponent > 0) { + return isOdd ? -Infinity : Infinity; + } + return isOdd ? -0 : 0; + } + if (exponent > 0) { + return isNegativeZero(base) ? Infinity : 0; + } + if (isNegativeZero(base)) { + if (exponent > 0) { + return isOdd ? -0 : 0; + } + return isOdd ? -Infinity : Infinity; + } + if (base < 0 && isFinite(base) && isFinite(exponent) && !IsInteger(exponent)) { + return NaN; + } + */ +}; diff --git a/node_modules/es-abstract/2023/Number/index.js b/node_modules/es-abstract/2023/Number/index.js new file mode 100644 index 0000000000..63ec52da69 --- /dev/null +++ b/node_modules/es-abstract/2023/Number/index.js @@ -0,0 +1,43 @@ +'use strict'; + +var add = require('./add'); +var bitwiseAND = require('./bitwiseAND'); +var bitwiseNOT = require('./bitwiseNOT'); +var bitwiseOR = require('./bitwiseOR'); +var bitwiseXOR = require('./bitwiseXOR'); +var divide = require('./divide'); +var equal = require('./equal'); +var exponentiate = require('./exponentiate'); +var leftShift = require('./leftShift'); +var lessThan = require('./lessThan'); +var multiply = require('./multiply'); +var remainder = require('./remainder'); +var sameValue = require('./sameValue'); +var sameValueZero = require('./sameValueZero'); +var signedRightShift = require('./signedRightShift'); +var subtract = require('./subtract'); +var toString = require('./toString'); +var unaryMinus = require('./unaryMinus'); +var unsignedRightShift = require('./unsignedRightShift'); + +module.exports = { + add: add, + bitwiseAND: bitwiseAND, + bitwiseNOT: bitwiseNOT, + bitwiseOR: bitwiseOR, + bitwiseXOR: bitwiseXOR, + divide: divide, + equal: equal, + exponentiate: exponentiate, + leftShift: leftShift, + lessThan: lessThan, + multiply: multiply, + remainder: remainder, + sameValue: sameValue, + sameValueZero: sameValueZero, + signedRightShift: signedRightShift, + subtract: subtract, + toString: toString, + unaryMinus: unaryMinus, + unsignedRightShift: unsignedRightShift +}; diff --git a/node_modules/es-abstract/2023/Number/leftShift.js b/node_modules/es-abstract/2023/Number/leftShift.js new file mode 100644 index 0000000000..023b3390f3 --- /dev/null +++ b/node_modules/es-abstract/2023/Number/leftShift.js @@ -0,0 +1,25 @@ +'use strict'; + +var GetIntrinsic = require('get-intrinsic'); + +var $TypeError = GetIntrinsic('%TypeError%'); + +var ToInt32 = require('../ToInt32'); +var ToUint32 = require('../ToUint32'); +var modulo = require('../modulo'); +var Type = require('../Type'); + +// https://262.ecma-international.org/12.0/#sec-numeric-types-number-leftShift + +module.exports = function NumberLeftShift(x, y) { + if (Type(x) !== 'Number' || Type(y) !== 'Number') { + throw new $TypeError('Assertion failed: `x` and `y` arguments must be Numbers'); + } + + var lnum = ToInt32(x); + var rnum = ToUint32(y); + + var shiftCount = modulo(rnum, 32); + + return lnum << shiftCount; +}; diff --git a/node_modules/es-abstract/2023/Number/lessThan.js b/node_modules/es-abstract/2023/Number/lessThan.js new file mode 100644 index 0000000000..5fcac24e9d --- /dev/null +++ b/node_modules/es-abstract/2023/Number/lessThan.js @@ -0,0 +1,26 @@ +'use strict'; + +var GetIntrinsic = require('get-intrinsic'); + +var $TypeError = GetIntrinsic('%TypeError%'); + +var isNaN = require('../../helpers/isNaN'); + +var Type = require('../Type'); + +// https://262.ecma-international.org/11.0/#sec-numeric-types-number-lessThan + +module.exports = function NumberLessThan(x, y) { + if (Type(x) !== 'Number' || Type(y) !== 'Number') { + throw new $TypeError('Assertion failed: `x` and `y` arguments must be Numbers'); + } + + // If x is NaN, return undefined. + // If y is NaN, return undefined. + if (isNaN(x) || isNaN(y)) { + return void undefined; + } + + // shortcut for the actual spec mechanics + return x < y; +}; diff --git a/node_modules/es-abstract/2023/Number/multiply.js b/node_modules/es-abstract/2023/Number/multiply.js new file mode 100644 index 0000000000..2a6c478a5b --- /dev/null +++ b/node_modules/es-abstract/2023/Number/multiply.js @@ -0,0 +1,33 @@ +'use strict'; + +var GetIntrinsic = require('get-intrinsic'); + +var $TypeError = GetIntrinsic('%TypeError%'); + +var isNaN = require('../../helpers/isNaN'); + +var Type = require('../Type'); + +// https://262.ecma-international.org/11.0/#sec-numeric-types-number-multiply + +module.exports = function NumberMultiply(x, y) { + if (Type(x) !== 'Number' || Type(y) !== 'Number') { + throw new $TypeError('Assertion failed: `x` and `y` arguments must be Numbers'); + } + + if (isNaN(x) || isNaN(y) || (x === 0 && !isFinite(y)) || (!isFinite(x) && y === 0)) { + return NaN; + } + if (!isFinite(x) && !isFinite(y)) { + return x === y ? Infinity : -Infinity; + } + if (!isFinite(x) && y !== 0) { + return x > 0 ? Infinity : -Infinity; + } + if (!isFinite(y) && x !== 0) { + return y > 0 ? Infinity : -Infinity; + } + + // shortcut for the actual spec mechanics + return x * y; +}; diff --git a/node_modules/es-abstract/2023/Number/remainder.js b/node_modules/es-abstract/2023/Number/remainder.js new file mode 100644 index 0000000000..56a51c3f9b --- /dev/null +++ b/node_modules/es-abstract/2023/Number/remainder.js @@ -0,0 +1,42 @@ +'use strict'; + +var GetIntrinsic = require('get-intrinsic'); + +var $TypeError = GetIntrinsic('%TypeError%'); + +var isNaN = require('../../helpers/isNaN'); +var isFinite = require('../../helpers/isFinite'); + +var truncate = require('../truncate'); +var Type = require('../Type'); + +// https://262.ecma-international.org/14.0/#sec-numeric-types-number-remainder + +module.exports = function NumberRemainder(n, d) { + if (Type(n) !== 'Number' || Type(d) !== 'Number') { + throw new $TypeError('Assertion failed: `n` and `d` arguments must be Numbers'); + } + + // If either operand is NaN, the result is NaN. + // If the dividend is an infinity, or the divisor is a zero, or both, the result is NaN. + if (isNaN(n) || isNaN(d) || !isFinite(n) || d === 0) { + return NaN; + } + + // If the dividend is finite and the divisor is an infinity, the result equals the dividend. + // If the dividend is a zero and the divisor is nonzero and finite, the result is the same as the dividend. + if (!isFinite(d) || n === 0) { + return n; + } + + if (!isFinite(n) || !isFinite(d) || n === 0 || d === 0) { + throw new $TypeError('Assertion failed: `n` and `d` arguments must be finite and nonzero'); + } + var quotient = n / d; + var q = truncate(quotient); + var r = n - (d * q); + if (r === 0 && n < 0) { + return -0; + } + return r; +}; diff --git a/node_modules/es-abstract/2023/Number/sameValue.js b/node_modules/es-abstract/2023/Number/sameValue.js new file mode 100644 index 0000000000..19efc379d1 --- /dev/null +++ b/node_modules/es-abstract/2023/Number/sameValue.js @@ -0,0 +1,21 @@ +'use strict'; + +var GetIntrinsic = require('get-intrinsic'); +var isNegativeZero = require('is-negative-zero'); + +var $TypeError = GetIntrinsic('%TypeError%'); + +var Type = require('../Type'); +var NumberSameValueZero = require('./sameValueZero'); + +// https://262.ecma-international.org/11.0/#sec-numeric-types-number-sameValue + +module.exports = function NumberSameValue(x, y) { + if (Type(x) !== 'Number' || Type(y) !== 'Number') { + throw new $TypeError('Assertion failed: `x` and `y` arguments must be Numbers'); + } + if (x === 0 && y === 0) { + return !(isNegativeZero(x) ^ isNegativeZero(y)); + } + return NumberSameValueZero(x, y); +}; diff --git a/node_modules/es-abstract/2023/Number/sameValueZero.js b/node_modules/es-abstract/2023/Number/sameValueZero.js new file mode 100644 index 0000000000..5688198fe8 --- /dev/null +++ b/node_modules/es-abstract/2023/Number/sameValueZero.js @@ -0,0 +1,24 @@ +'use strict'; + +var GetIntrinsic = require('get-intrinsic'); + +var $TypeError = GetIntrinsic('%TypeError%'); + +var isNaN = require('../../helpers/isNaN'); + +var Type = require('../Type'); + +// https://262.ecma-international.org/11.0/#sec-numeric-types-number-sameValueZero + +module.exports = function NumberSameValueZero(x, y) { + if (Type(x) !== 'Number' || Type(y) !== 'Number') { + throw new $TypeError('Assertion failed: `x` and `y` arguments must be Numbers'); + } + + var xNaN = isNaN(x); + var yNaN = isNaN(y); + if (xNaN || yNaN) { + return xNaN === yNaN; + } + return x === y; +}; diff --git a/node_modules/es-abstract/2023/Number/signedRightShift.js b/node_modules/es-abstract/2023/Number/signedRightShift.js new file mode 100644 index 0000000000..025f39a1c4 --- /dev/null +++ b/node_modules/es-abstract/2023/Number/signedRightShift.js @@ -0,0 +1,25 @@ +'use strict'; + +var GetIntrinsic = require('get-intrinsic'); + +var $TypeError = GetIntrinsic('%TypeError%'); + +var ToInt32 = require('../ToInt32'); +var ToUint32 = require('../ToUint32'); +var modulo = require('../modulo'); +var Type = require('../Type'); + +// https://262.ecma-international.org/12.0/#sec-numeric-types-number-signedRightShift + +module.exports = function NumberSignedRightShift(x, y) { + if (Type(x) !== 'Number' || Type(y) !== 'Number') { + throw new $TypeError('Assertion failed: `x` and `y` arguments must be Numbers'); + } + + var lnum = ToInt32(x); + var rnum = ToUint32(y); + + var shiftCount = modulo(rnum, 32); + + return lnum >> shiftCount; +}; diff --git a/node_modules/es-abstract/2023/Number/subtract.js b/node_modules/es-abstract/2023/Number/subtract.js new file mode 100644 index 0000000000..29a29e6198 --- /dev/null +++ b/node_modules/es-abstract/2023/Number/subtract.js @@ -0,0 +1,19 @@ +'use strict'; + +var GetIntrinsic = require('get-intrinsic'); + +var $TypeError = GetIntrinsic('%TypeError%'); + +var Type = require('../Type'); + +var NumberAdd = require('./add'); +var NumberUnaryMinus = require('./unaryMinus'); + +// https://262.ecma-international.org/12.0/#sec-numeric-types-number-subtract + +module.exports = function NumberSubtract(x, y) { + if (Type(x) !== 'Number' || Type(y) !== 'Number') { + throw new $TypeError('Assertion failed: `x` and `y` arguments must be Numbers'); + } + return NumberAdd(x, NumberUnaryMinus(y)); +}; diff --git a/node_modules/es-abstract/2023/Number/toString.js b/node_modules/es-abstract/2023/Number/toString.js new file mode 100644 index 0000000000..375da2a5b6 --- /dev/null +++ b/node_modules/es-abstract/2023/Number/toString.js @@ -0,0 +1,26 @@ +'use strict'; + +var GetIntrinsic = require('get-intrinsic'); + +var $TypeError = GetIntrinsic('%TypeError%'); + +var callBound = require('call-bind/callBound'); + +var $numberToString = callBound('Number.prototype.toString'); + +var Type = require('../Type'); + +var isInteger = require('../../helpers/isInteger'); + +// https://262.ecma-international.org/14.0/#sec-numeric-types-number-tostring + +module.exports = function NumberToString(x, radix) { + if (Type(x) !== 'Number') { + throw new $TypeError('Assertion failed: `x` must be a Number'); + } + if (!isInteger(radix) || radix < 2 || radix > 36) { + throw new $TypeError('Assertion failed: `radix` must be an integer >= 2 and <= 36'); + } + + return $numberToString(x, radix); // steps 1 - 12 +}; diff --git a/node_modules/es-abstract/2023/Number/unaryMinus.js b/node_modules/es-abstract/2023/Number/unaryMinus.js new file mode 100644 index 0000000000..794582ad8d --- /dev/null +++ b/node_modules/es-abstract/2023/Number/unaryMinus.js @@ -0,0 +1,21 @@ +'use strict'; + +var GetIntrinsic = require('get-intrinsic'); + +var $TypeError = GetIntrinsic('%TypeError%'); + +var isNaN = require('../../helpers/isNaN'); + +var Type = require('../Type'); + +// https://262.ecma-international.org/11.0/#sec-numeric-types-number-unaryMinus + +module.exports = function NumberUnaryMinus(x) { + if (Type(x) !== 'Number') { + throw new $TypeError('Assertion failed: `x` argument must be a Number'); + } + if (isNaN(x)) { + return NaN; + } + return -x; +}; diff --git a/node_modules/es-abstract/2023/Number/unsignedRightShift.js b/node_modules/es-abstract/2023/Number/unsignedRightShift.js new file mode 100644 index 0000000000..2eb967ac28 --- /dev/null +++ b/node_modules/es-abstract/2023/Number/unsignedRightShift.js @@ -0,0 +1,25 @@ +'use strict'; + +var GetIntrinsic = require('get-intrinsic'); + +var $TypeError = GetIntrinsic('%TypeError%'); + +var ToInt32 = require('../ToInt32'); +var ToUint32 = require('../ToUint32'); +var modulo = require('../modulo'); +var Type = require('../Type'); + +// https://262.ecma-international.org/12.0/#sec-numeric-types-number-unsignedRightShift + +module.exports = function NumberUnsignedRightShift(x, y) { + if (Type(x) !== 'Number' || Type(y) !== 'Number') { + throw new $TypeError('Assertion failed: `x` and `y` arguments must be Numbers'); + } + + var lnum = ToInt32(x); + var rnum = ToUint32(y); + + var shiftCount = modulo(rnum, 32); + + return lnum >>> shiftCount; +}; diff --git a/node_modules/es-abstract/2023/NumberBitwiseOp.js b/node_modules/es-abstract/2023/NumberBitwiseOp.js new file mode 100644 index 0000000000..11425ffded --- /dev/null +++ b/node_modules/es-abstract/2023/NumberBitwiseOp.js @@ -0,0 +1,29 @@ +'use strict'; + +var GetIntrinsic = require('get-intrinsic'); + +var $TypeError = GetIntrinsic('%TypeError%'); + +var ToInt32 = require('./ToInt32'); +var ToUint32 = require('./ToUint32'); +var Type = require('./Type'); + +// https://262.ecma-international.org/11.0/#sec-numberbitwiseop + +module.exports = function NumberBitwiseOp(op, x, y) { + if (op !== '&' && op !== '|' && op !== '^') { + throw new $TypeError('Assertion failed: `op` must be `&`, `|`, or `^`'); + } + if (Type(x) !== 'Number' || Type(y) !== 'Number') { + throw new $TypeError('Assertion failed: `x` and `y` arguments must be Numbers'); + } + var lnum = ToInt32(x); + var rnum = ToUint32(y); + if (op === '&') { + return lnum & rnum; + } + if (op === '|') { + return lnum | rnum; + } + return lnum ^ rnum; +}; diff --git a/node_modules/es-abstract/2023/NumberToBigInt.js b/node_modules/es-abstract/2023/NumberToBigInt.js new file mode 100644 index 0000000000..9ed8ed9a9b --- /dev/null +++ b/node_modules/es-abstract/2023/NumberToBigInt.js @@ -0,0 +1,26 @@ +'use strict'; + +var GetIntrinsic = require('get-intrinsic'); + +var $BigInt = GetIntrinsic('%BigInt%', true); +var $RangeError = GetIntrinsic('%RangeError%'); +var $SyntaxError = GetIntrinsic('%SyntaxError%'); +var $TypeError = GetIntrinsic('%TypeError%'); + +var IsIntegralNumber = require('./IsIntegralNumber'); +var Type = require('./Type'); + +// https://262.ecma-international.org/12.0/#sec-numbertobigint + +module.exports = function NumberToBigInt(number) { + if (Type(number) !== 'Number') { + throw new $TypeError('Assertion failed: `number` must be a String'); + } + if (!IsIntegralNumber(number)) { + throw new $RangeError('The number ' + number + ' cannot be converted to a BigInt because it is not an integer'); + } + if (!$BigInt) { + throw new $SyntaxError('BigInts are not supported in this environment'); + } + return $BigInt(number); +}; diff --git a/node_modules/es-abstract/2023/NumericToRawBytes.js b/node_modules/es-abstract/2023/NumericToRawBytes.js new file mode 100644 index 0000000000..cc671159f4 --- /dev/null +++ b/node_modules/es-abstract/2023/NumericToRawBytes.js @@ -0,0 +1,80 @@ +'use strict'; + +var GetIntrinsic = require('get-intrinsic'); + +var $TypeError = GetIntrinsic('%TypeError%'); + +var hasOwnProperty = require('./HasOwnProperty'); +var ToBigInt64 = require('./ToBigInt64'); +var ToBigUint64 = require('./ToBigUint64'); +var ToInt16 = require('./ToInt16'); +var ToInt32 = require('./ToInt32'); +var ToInt8 = require('./ToInt8'); +var ToUint16 = require('./ToUint16'); +var ToUint32 = require('./ToUint32'); +var ToUint8 = require('./ToUint8'); +var ToUint8Clamp = require('./ToUint8Clamp'); +var Type = require('./Type'); + +var valueToFloat32Bytes = require('../helpers/valueToFloat32Bytes'); +var valueToFloat64Bytes = require('../helpers/valueToFloat64Bytes'); +var integerToNBytes = require('../helpers/integerToNBytes'); + +var keys = require('object-keys'); + +// https://262.ecma-international.org/11.0/#table-the-typedarray-constructors +var TypeToSizes = { + __proto__: null, + Int8: 1, + Uint8: 1, + Uint8C: 1, + Int16: 2, + Uint16: 2, + Int32: 4, + Uint32: 4, + BigInt64: 8, + BigUint64: 8, + Float32: 4, + Float64: 8 +}; + +var TypeToAO = { + __proto__: null, + Int8: ToInt8, + Uint8: ToUint8, + Uint8C: ToUint8Clamp, + Int16: ToInt16, + Uint16: ToUint16, + Int32: ToInt32, + Uint32: ToUint32, + BigInt64: ToBigInt64, + BigUint64: ToBigUint64 +}; + +// https://262.ecma-international.org/11.0/#sec-numerictorawbytes + +module.exports = function NumericToRawBytes(type, value, isLittleEndian) { + if (typeof type !== 'string' || !hasOwnProperty(TypeToSizes, type)) { + throw new $TypeError('Assertion failed: `type` must be a TypedArray element type: ' + keys(TypeToSizes)); + } + if (Type(value) !== 'Number' && Type(value) !== 'BigInt') { + throw new $TypeError('Assertion failed: `value` must be a Number or a BigInt'); + } + if (Type(isLittleEndian) !== 'Boolean') { + throw new $TypeError('Assertion failed: `isLittleEndian` must be a Boolean'); + } + + if (type === 'Float32') { // step 1 + return valueToFloat32Bytes(value, isLittleEndian); + } else if (type === 'Float64') { // step 2 + return valueToFloat64Bytes(value, isLittleEndian); + } // step 3 + + var n = TypeToSizes[type]; // step 3.a + + var convOp = TypeToAO[type]; // step 3.b + + var intValue = convOp(value); // step 3.c + + return integerToNBytes(intValue, n, isLittleEndian); // step 3.d, 3.e, 4 +}; diff --git a/node_modules/es-abstract/2023/ObjectDefineProperties.js b/node_modules/es-abstract/2023/ObjectDefineProperties.js new file mode 100644 index 0000000000..b47603487c --- /dev/null +++ b/node_modules/es-abstract/2023/ObjectDefineProperties.js @@ -0,0 +1,38 @@ +'use strict'; + +var callBound = require('call-bind/callBound'); + +var DefinePropertyOrThrow = require('./DefinePropertyOrThrow'); +var Get = require('./Get'); +var ToObject = require('./ToObject'); +var ToPropertyDescriptor = require('./ToPropertyDescriptor'); + +var forEach = require('../helpers/forEach'); +var getOwnPropertyDescriptor = require('gopd'); +var OwnPropertyKeys = require('../helpers/OwnPropertyKeys'); + +var $push = callBound('Array.prototype.push'); + +// https://262.ecma-international.org/6.0/#sec-objectdefineproperties +module.exports = function ObjectDefineProperties(O, Properties) { + var props = ToObject(Properties); // step 1 + var keys = OwnPropertyKeys(props); // step 2 + var descriptors = []; // step 3 + + forEach(keys, function (nextKey) { // step 4 + var propDesc = ToPropertyDescriptor(getOwnPropertyDescriptor(props, nextKey)); // step 4.a + if (typeof propDesc !== 'undefined' && propDesc['[[Enumerable]]']) { // step 4.b + var descObj = Get(props, nextKey); // step 4.b.i + var desc = ToPropertyDescriptor(descObj); // step 4.b.ii + $push(descriptors, [nextKey, desc]); // step 4.b.iii + } + }); + + forEach(descriptors, function (pair) { // step 5 + var P = pair[0]; // step 5.a + var desc = pair[1]; // step 5.b + DefinePropertyOrThrow(O, P, desc); // step 5.c + }); + + return O; // step 6 +}; diff --git a/node_modules/es-abstract/2023/OrdinaryCreateFromConstructor.js b/node_modules/es-abstract/2023/OrdinaryCreateFromConstructor.js new file mode 100644 index 0000000000..8f3bb829df --- /dev/null +++ b/node_modules/es-abstract/2023/OrdinaryCreateFromConstructor.js @@ -0,0 +1,20 @@ +'use strict'; + +var GetIntrinsic = require('get-intrinsic'); +var $TypeError = GetIntrinsic('%TypeError%'); + +var GetPrototypeFromConstructor = require('./GetPrototypeFromConstructor'); +var IsArray = require('./IsArray'); +var OrdinaryObjectCreate = require('./OrdinaryObjectCreate'); + +// https://262.ecma-international.org/6.0/#sec-ordinarycreatefromconstructor + +module.exports = function OrdinaryCreateFromConstructor(constructor, intrinsicDefaultProto) { + GetIntrinsic(intrinsicDefaultProto); // throws if not a valid intrinsic + var proto = GetPrototypeFromConstructor(constructor, intrinsicDefaultProto); + var slots = arguments.length < 3 ? [] : arguments[2]; + if (!IsArray(slots)) { + throw new $TypeError('Assertion failed: if provided, `internalSlotsList` must be a List'); + } + return OrdinaryObjectCreate(proto, slots); +}; diff --git a/node_modules/es-abstract/2023/OrdinaryDefineOwnProperty.js b/node_modules/es-abstract/2023/OrdinaryDefineOwnProperty.js new file mode 100644 index 0000000000..70cd4fe58d --- /dev/null +++ b/node_modules/es-abstract/2023/OrdinaryDefineOwnProperty.js @@ -0,0 +1,61 @@ +'use strict'; + +var GetIntrinsic = require('get-intrinsic'); + +var $gOPD = require('gopd'); +var $SyntaxError = GetIntrinsic('%SyntaxError%'); +var $TypeError = GetIntrinsic('%TypeError%'); + +var isPropertyDescriptor = require('../helpers/isPropertyDescriptor'); + +var IsAccessorDescriptor = require('./IsAccessorDescriptor'); +var IsDataDescriptor = require('./IsDataDescriptor'); +var IsExtensible = require('./IsExtensible'); +var IsPropertyKey = require('./IsPropertyKey'); +var ToPropertyDescriptor = require('./ToPropertyDescriptor'); +var SameValue = require('./SameValue'); +var Type = require('./Type'); +var ValidateAndApplyPropertyDescriptor = require('./ValidateAndApplyPropertyDescriptor'); + +// https://262.ecma-international.org/6.0/#sec-ordinarydefineownproperty + +module.exports = function OrdinaryDefineOwnProperty(O, P, Desc) { + if (Type(O) !== 'Object') { + throw new $TypeError('Assertion failed: O must be an Object'); + } + if (!IsPropertyKey(P)) { + throw new $TypeError('Assertion failed: P must be a Property Key'); + } + if (!isPropertyDescriptor({ + Type: Type, + IsDataDescriptor: IsDataDescriptor, + IsAccessorDescriptor: IsAccessorDescriptor + }, Desc)) { + throw new $TypeError('Assertion failed: Desc must be a Property Descriptor'); + } + if (!$gOPD) { + // ES3/IE 8 fallback + if (IsAccessorDescriptor(Desc)) { + throw new $SyntaxError('This environment does not support accessor property descriptors.'); + } + var creatingNormalDataProperty = !(P in O) + && Desc['[[Writable]]'] + && Desc['[[Enumerable]]'] + && Desc['[[Configurable]]'] + && '[[Value]]' in Desc; + var settingExistingDataProperty = (P in O) + && (!('[[Configurable]]' in Desc) || Desc['[[Configurable]]']) + && (!('[[Enumerable]]' in Desc) || Desc['[[Enumerable]]']) + && (!('[[Writable]]' in Desc) || Desc['[[Writable]]']) + && '[[Value]]' in Desc; + if (creatingNormalDataProperty || settingExistingDataProperty) { + O[P] = Desc['[[Value]]']; // eslint-disable-line no-param-reassign + return SameValue(O[P], Desc['[[Value]]']); + } + throw new $SyntaxError('This environment does not support defining non-writable, non-enumerable, or non-configurable properties'); + } + var desc = $gOPD(O, P); + var current = desc && ToPropertyDescriptor(desc); + var extensible = IsExtensible(O); + return ValidateAndApplyPropertyDescriptor(O, P, extensible, Desc, current); +}; diff --git a/node_modules/es-abstract/2023/OrdinaryGetOwnProperty.js b/node_modules/es-abstract/2023/OrdinaryGetOwnProperty.js new file mode 100644 index 0000000000..c23abe1103 --- /dev/null +++ b/node_modules/es-abstract/2023/OrdinaryGetOwnProperty.js @@ -0,0 +1,44 @@ +'use strict'; + +var GetIntrinsic = require('get-intrinsic'); + +var $gOPD = require('gopd'); +var $TypeError = GetIntrinsic('%TypeError%'); + +var callBound = require('call-bind/callBound'); + +var $isEnumerable = callBound('Object.prototype.propertyIsEnumerable'); + +var has = require('has'); + +var IsArray = require('./IsArray'); +var IsPropertyKey = require('./IsPropertyKey'); +var IsRegExp = require('./IsRegExp'); +var ToPropertyDescriptor = require('./ToPropertyDescriptor'); +var Type = require('./Type'); + +// https://262.ecma-international.org/6.0/#sec-ordinarygetownproperty + +module.exports = function OrdinaryGetOwnProperty(O, P) { + if (Type(O) !== 'Object') { + throw new $TypeError('Assertion failed: O must be an Object'); + } + if (!IsPropertyKey(P)) { + throw new $TypeError('Assertion failed: P must be a Property Key'); + } + if (!has(O, P)) { + return void 0; + } + if (!$gOPD) { + // ES3 / IE 8 fallback + var arrayLength = IsArray(O) && P === 'length'; + var regexLastIndex = IsRegExp(O) && P === 'lastIndex'; + return { + '[[Configurable]]': !(arrayLength || regexLastIndex), + '[[Enumerable]]': $isEnumerable(O, P), + '[[Value]]': O[P], + '[[Writable]]': true + }; + } + return ToPropertyDescriptor($gOPD(O, P)); +}; diff --git a/node_modules/es-abstract/2023/OrdinaryGetPrototypeOf.js b/node_modules/es-abstract/2023/OrdinaryGetPrototypeOf.js new file mode 100644 index 0000000000..ba17b98872 --- /dev/null +++ b/node_modules/es-abstract/2023/OrdinaryGetPrototypeOf.js @@ -0,0 +1,21 @@ +'use strict'; + +var GetIntrinsic = require('get-intrinsic'); + +var $TypeError = GetIntrinsic('%TypeError%'); + +var $getProto = require('../helpers/getProto'); + +var Type = require('./Type'); + +// https://262.ecma-international.org/7.0/#sec-ordinarygetprototypeof + +module.exports = function OrdinaryGetPrototypeOf(O) { + if (Type(O) !== 'Object') { + throw new $TypeError('Assertion failed: O must be an Object'); + } + if (!$getProto) { + throw new $TypeError('This environment does not support fetching prototypes.'); + } + return $getProto(O); +}; diff --git a/node_modules/es-abstract/2023/OrdinaryHasInstance.js b/node_modules/es-abstract/2023/OrdinaryHasInstance.js new file mode 100644 index 0000000000..996a50e070 --- /dev/null +++ b/node_modules/es-abstract/2023/OrdinaryHasInstance.js @@ -0,0 +1,25 @@ +'use strict'; + +var GetIntrinsic = require('get-intrinsic'); + +var $TypeError = GetIntrinsic('%TypeError%'); + +var Get = require('./Get'); +var IsCallable = require('./IsCallable'); +var Type = require('./Type'); + +// https://262.ecma-international.org/6.0/#sec-ordinaryhasinstance + +module.exports = function OrdinaryHasInstance(C, O) { + if (!IsCallable(C)) { + return false; + } + if (Type(O) !== 'Object') { + return false; + } + var P = Get(C, 'prototype'); + if (Type(P) !== 'Object') { + throw new $TypeError('OrdinaryHasInstance called on an object with an invalid prototype property.'); + } + return O instanceof C; +}; diff --git a/node_modules/es-abstract/2023/OrdinaryHasProperty.js b/node_modules/es-abstract/2023/OrdinaryHasProperty.js new file mode 100644 index 0000000000..27e7da33ad --- /dev/null +++ b/node_modules/es-abstract/2023/OrdinaryHasProperty.js @@ -0,0 +1,20 @@ +'use strict'; + +var GetIntrinsic = require('get-intrinsic'); + +var $TypeError = GetIntrinsic('%TypeError%'); + +var IsPropertyKey = require('./IsPropertyKey'); +var Type = require('./Type'); + +// https://262.ecma-international.org/6.0/#sec-ordinaryhasproperty + +module.exports = function OrdinaryHasProperty(O, P) { + if (Type(O) !== 'Object') { + throw new $TypeError('Assertion failed: Type(O) is not Object'); + } + if (!IsPropertyKey(P)) { + throw new $TypeError('Assertion failed: P must be a Property Key'); + } + return P in O; +}; diff --git a/node_modules/es-abstract/2023/OrdinaryObjectCreate.js b/node_modules/es-abstract/2023/OrdinaryObjectCreate.js new file mode 100644 index 0000000000..140534083c --- /dev/null +++ b/node_modules/es-abstract/2023/OrdinaryObjectCreate.js @@ -0,0 +1,56 @@ +'use strict'; + +var GetIntrinsic = require('get-intrinsic'); + +var $ObjectCreate = GetIntrinsic('%Object.create%', true); +var $TypeError = GetIntrinsic('%TypeError%'); +var $SyntaxError = GetIntrinsic('%SyntaxError%'); + +var IsArray = require('./IsArray'); +var Type = require('./Type'); + +var forEach = require('../helpers/forEach'); + +var SLOT = require('internal-slot'); + +var hasProto = require('has-proto')(); + +// https://262.ecma-international.org/11.0/#sec-objectcreate + +module.exports = function OrdinaryObjectCreate(proto) { + if (proto !== null && Type(proto) !== 'Object') { + throw new $TypeError('Assertion failed: `proto` must be null or an object'); + } + var additionalInternalSlotsList = arguments.length < 2 ? [] : arguments[1]; + if (!IsArray(additionalInternalSlotsList)) { + throw new $TypeError('Assertion failed: `additionalInternalSlotsList` must be an Array'); + } + + // var internalSlotsList = ['[[Prototype]]', '[[Extensible]]']; // step 1 + // internalSlotsList.push(...additionalInternalSlotsList); // step 2 + // var O = MakeBasicObject(internalSlotsList); // step 3 + // setProto(O, proto); // step 4 + // return O; // step 5 + + var O; + if ($ObjectCreate) { + O = $ObjectCreate(proto); + } else if (hasProto) { + O = { __proto__: proto }; + } else { + if (proto === null) { + throw new $SyntaxError('native Object.create support is required to create null objects'); + } + var T = function T() {}; + T.prototype = proto; + O = new T(); + } + + if (additionalInternalSlotsList.length > 0) { + forEach(additionalInternalSlotsList, function (slot) { + SLOT.set(O, slot, void undefined); + }); + } + + return O; +}; diff --git a/node_modules/es-abstract/2023/OrdinarySetPrototypeOf.js b/node_modules/es-abstract/2023/OrdinarySetPrototypeOf.js new file mode 100644 index 0000000000..d2b72306c1 --- /dev/null +++ b/node_modules/es-abstract/2023/OrdinarySetPrototypeOf.js @@ -0,0 +1,53 @@ +'use strict'; + +var GetIntrinsic = require('get-intrinsic'); + +var $TypeError = GetIntrinsic('%TypeError%'); + +var $setProto = require('../helpers/setProto'); + +var OrdinaryGetPrototypeOf = require('./OrdinaryGetPrototypeOf'); +var Type = require('./Type'); + +// https://262.ecma-international.org/7.0/#sec-ordinarysetprototypeof + +module.exports = function OrdinarySetPrototypeOf(O, V) { + if (Type(V) !== 'Object' && Type(V) !== 'Null') { + throw new $TypeError('Assertion failed: V must be Object or Null'); + } + /* + var extensible = IsExtensible(O); + var current = OrdinaryGetPrototypeOf(O); + if (SameValue(V, current)) { + return true; + } + if (!extensible) { + return false; + } + */ + try { + $setProto(O, V); + } catch (e) { + return false; + } + return OrdinaryGetPrototypeOf(O) === V; + /* + var p = V; + var done = false; + while (!done) { + if (p === null) { + done = true; + } else if (SameValue(p, O)) { + return false; + } else { + if (wat) { + done = true; + } else { + p = p.[[Prototype]]; + } + } + } + O.[[Prototype]] = V; + return true; + */ +}; diff --git a/node_modules/es-abstract/2023/OrdinaryToPrimitive.js b/node_modules/es-abstract/2023/OrdinaryToPrimitive.js new file mode 100644 index 0000000000..e1dbe1427f --- /dev/null +++ b/node_modules/es-abstract/2023/OrdinaryToPrimitive.js @@ -0,0 +1,38 @@ +'use strict'; + +var GetIntrinsic = require('get-intrinsic'); + +var $TypeError = GetIntrinsic('%TypeError%'); + +var Call = require('./Call'); +var Get = require('./Get'); +var IsCallable = require('./IsCallable'); +var Type = require('./Type'); + +var inspect = require('object-inspect'); + +// https://262.ecma-international.org/8.0/#sec-ordinarytoprimitive + +module.exports = function OrdinaryToPrimitive(O, hint) { + if (Type(O) !== 'Object') { + throw new $TypeError('Assertion failed: Type(O) is not Object'); + } + if (/* Type(hint) !== 'String' || */ hint !== 'string' && hint !== 'number') { + throw new $TypeError('Assertion failed: `hint` must be "string" or "number"'); + } + + var methodNames = hint === 'string' ? ['toString', 'valueOf'] : ['valueOf', 'toString']; + + for (var i = 0; i < methodNames.length; i += 1) { + var name = methodNames[i]; + var method = Get(O, name); + if (IsCallable(method)) { + var result = Call(method, O); + if (Type(result) !== 'Object') { + return result; + } + } + } + + throw new $TypeError('No primitive value for ' + inspect(O)); +}; diff --git a/node_modules/es-abstract/2023/ParseHexOctet.js b/node_modules/es-abstract/2023/ParseHexOctet.js new file mode 100644 index 0000000000..b3ab81c0d9 --- /dev/null +++ b/node_modules/es-abstract/2023/ParseHexOctet.js @@ -0,0 +1,44 @@ +'use strict'; + +var GetIntrinsic = require('get-intrinsic'); + +var $Number = GetIntrinsic('%Number%'); +var $SyntaxError = GetIntrinsic('%SyntaxError%'); +var $TypeError = GetIntrinsic('%TypeError%'); + +var IsIntegralNumber = require('./IsIntegralNumber'); +var substring = require('./substring'); +var Type = require('./Type'); + +var isNaN = require('../helpers/isNaN'); + +// https://262.ecma-international.org/14.0/#sec-parsehexoctet + +module.exports = function ParseHexOctet(string, position) { + if (Type(string) !== 'String') { + throw new $TypeError('Assertion failed: `string` must be a String'); + } + if (!IsIntegralNumber(position) || position < 0) { + throw new $TypeError('Assertion failed: `position` must be a nonnegative integer'); + } + + var len = string.length; // step 1 + if ((position + 2) > len) { // step 2 + var error = new $SyntaxError('requested a position on a string that does not contain 2 characters at that position'); // step 2.a + return [error]; // step 2.b + } + var hexDigits = substring(string, position, position + 2); // step 3 + + var n = $Number('0x' + hexDigits); + if (isNaN(n)) { + return [new $SyntaxError('Invalid hexadecimal characters')]; + } + return n; + + /* + 4. Let _parseResult_ be ParseText(StringToCodePoints(_hexDigits_), |HexDigits[~Sep]|). + 5. If _parseResult_ is not a Parse Node, return _parseResult_. + 6. Let _n_ be the unsigned 8-bit value corresponding with the MV of _parseResult_. + 7. Return _n_. + */ +}; diff --git a/node_modules/es-abstract/2023/PromiseResolve.js b/node_modules/es-abstract/2023/PromiseResolve.js new file mode 100644 index 0000000000..6474b79c40 --- /dev/null +++ b/node_modules/es-abstract/2023/PromiseResolve.js @@ -0,0 +1,17 @@ +'use strict'; + +var GetIntrinsic = require('get-intrinsic'); +var callBind = require('call-bind'); + +var $resolve = GetIntrinsic('%Promise.resolve%', true); +var $PromiseResolve = $resolve && callBind($resolve); + +// https://262.ecma-international.org/9.0/#sec-promise-resolve + +module.exports = function PromiseResolve(C, x) { + if (!$PromiseResolve) { + throw new SyntaxError('This environment does not support Promises.'); + } + return $PromiseResolve(C, x); +}; + diff --git a/node_modules/es-abstract/2023/QuoteJSONString.js b/node_modules/es-abstract/2023/QuoteJSONString.js new file mode 100644 index 0000000000..e3851480c5 --- /dev/null +++ b/node_modules/es-abstract/2023/QuoteJSONString.js @@ -0,0 +1,54 @@ +'use strict'; + +var GetIntrinsic = require('get-intrinsic'); + +var $TypeError = GetIntrinsic('%TypeError%'); + +var callBound = require('call-bind/callBound'); +var forEach = require('../helpers/forEach'); +var isLeadingSurrogate = require('../helpers/isLeadingSurrogate'); +var isTrailingSurrogate = require('../helpers/isTrailingSurrogate'); + +var $charCodeAt = callBound('String.prototype.charCodeAt'); + +var StringToCodePoints = require('./StringToCodePoints'); +var Type = require('./Type'); +var UnicodeEscape = require('./UnicodeEscape'); +var UTF16EncodeCodePoint = require('./UTF16EncodeCodePoint'); + +var has = require('has'); + +// https://262.ecma-international.org/12.0/#sec-quotejsonstring + +var escapes = { + '\u0008': '\\b', + '\u0009': '\\t', + '\u000A': '\\n', + '\u000C': '\\f', + '\u000D': '\\r', + '\u0022': '\\"', + '\u005c': '\\\\' +}; + +module.exports = function QuoteJSONString(value) { + if (Type(value) !== 'String') { + throw new $TypeError('Assertion failed: `value` must be a String'); + } + var product = '"'; + if (value) { + forEach(StringToCodePoints(value), function (C) { + if (has(escapes, C)) { + product += escapes[C]; + } else { + var cCharCode = $charCodeAt(C, 0); + if (cCharCode < 0x20 || isLeadingSurrogate(C) || isTrailingSurrogate(C)) { + product += UnicodeEscape(C); + } else { + product += UTF16EncodeCodePoint(cCharCode); + } + } + }); + } + product += '"'; + return product; +}; diff --git a/node_modules/es-abstract/2023/RawBytesToNumeric.js b/node_modules/es-abstract/2023/RawBytesToNumeric.js new file mode 100644 index 0000000000..d14705cdcc --- /dev/null +++ b/node_modules/es-abstract/2023/RawBytesToNumeric.js @@ -0,0 +1,84 @@ +'use strict'; + +var GetIntrinsic = require('get-intrinsic'); +var callBound = require('call-bind/callBound'); + +var $RangeError = GetIntrinsic('%RangeError%'); +var $SyntaxError = GetIntrinsic('%SyntaxError%'); +var $TypeError = GetIntrinsic('%TypeError%'); +var $BigInt = GetIntrinsic('%BigInt%', true); + +var hasOwnProperty = require('./HasOwnProperty'); +var IsArray = require('./IsArray'); +var IsBigIntElementType = require('./IsBigIntElementType'); +var IsUnsignedElementType = require('./IsUnsignedElementType'); +var Type = require('./Type'); + +var bytesAsFloat32 = require('../helpers/bytesAsFloat32'); +var bytesAsFloat64 = require('../helpers/bytesAsFloat64'); +var bytesAsInteger = require('../helpers/bytesAsInteger'); +var every = require('../helpers/every'); +var isByteValue = require('../helpers/isByteValue'); + +var $reverse = callBound('Array.prototype.reverse'); +var $slice = callBound('Array.prototype.slice'); + +var keys = require('object-keys'); + +// https://262.ecma-international.org/11.0/#table-the-typedarray-constructors +var TypeToSizes = { + __proto__: null, + Int8: 1, + Uint8: 1, + Uint8C: 1, + Int16: 2, + Uint16: 2, + Int32: 4, + Uint32: 4, + BigInt64: 8, + BigUint64: 8, + Float32: 4, + Float64: 8 +}; + +// https://262.ecma-international.org/11.0/#sec-rawbytestonumeric + +module.exports = function RawBytesToNumeric(type, rawBytes, isLittleEndian) { + if (!hasOwnProperty(TypeToSizes, type)) { + throw new $TypeError('Assertion failed: `type` must be a TypedArray element type: ' + keys(TypeToSizes)); + } + if (!IsArray(rawBytes) || !every(rawBytes, isByteValue)) { + throw new $TypeError('Assertion failed: `rawBytes` must be an Array of bytes'); + } + if (Type(isLittleEndian) !== 'Boolean') { + throw new $TypeError('Assertion failed: `isLittleEndian` must be a Boolean'); + } + + var elementSize = TypeToSizes[type]; // step 1 + + if (rawBytes.length !== elementSize) { + // this assertion is not in the spec, but it'd be an editorial error if it were ever violated + throw new $RangeError('Assertion failed: `rawBytes` must have a length of ' + elementSize + ' for type ' + type); + } + + var isBigInt = IsBigIntElementType(type); + if (isBigInt && !$BigInt) { + throw new $SyntaxError('this environment does not support BigInts'); + } + + // eslint-disable-next-line no-param-reassign + rawBytes = $slice(rawBytes, 0, elementSize); + if (!isLittleEndian) { + $reverse(rawBytes); // step 2 + } + + if (type === 'Float32') { // step 3 + return bytesAsFloat32(rawBytes); + } + + if (type === 'Float64') { // step 4 + return bytesAsFloat64(rawBytes); + } + + return bytesAsInteger(rawBytes, elementSize, IsUnsignedElementType(type), isBigInt); +}; diff --git a/node_modules/es-abstract/2023/RegExpCreate.js b/node_modules/es-abstract/2023/RegExpCreate.js new file mode 100644 index 0000000000..68e31605ed --- /dev/null +++ b/node_modules/es-abstract/2023/RegExpCreate.js @@ -0,0 +1,21 @@ +'use strict'; + +var GetIntrinsic = require('get-intrinsic'); + +var $RegExp = GetIntrinsic('%RegExp%'); + +// var RegExpAlloc = require('./RegExpAlloc'); +// var RegExpInitialize = require('./RegExpInitialize'); +var ToString = require('./ToString'); + +// https://262.ecma-international.org/6.0/#sec-regexpcreate + +module.exports = function RegExpCreate(P, F) { + // var obj = RegExpAlloc($RegExp); + // return RegExpInitialize(obj, P, F); + + // covers spec mechanics; bypass regex brand checking + var pattern = typeof P === 'undefined' ? '' : ToString(P); + var flags = typeof F === 'undefined' ? '' : ToString(F); + return new $RegExp(pattern, flags); +}; diff --git a/node_modules/es-abstract/2023/RegExpExec.js b/node_modules/es-abstract/2023/RegExpExec.js new file mode 100644 index 0000000000..cf15207415 --- /dev/null +++ b/node_modules/es-abstract/2023/RegExpExec.js @@ -0,0 +1,32 @@ +'use strict'; + +var GetIntrinsic = require('get-intrinsic'); + +var $TypeError = GetIntrinsic('%TypeError%'); + +var regexExec = require('call-bind/callBound')('RegExp.prototype.exec'); + +var Call = require('./Call'); +var Get = require('./Get'); +var IsCallable = require('./IsCallable'); +var Type = require('./Type'); + +// https://262.ecma-international.org/6.0/#sec-regexpexec + +module.exports = function RegExpExec(R, S) { + if (Type(R) !== 'Object') { + throw new $TypeError('Assertion failed: `R` must be an Object'); + } + if (Type(S) !== 'String') { + throw new $TypeError('Assertion failed: `S` must be a String'); + } + var exec = Get(R, 'exec'); + if (IsCallable(exec)) { + var result = Call(exec, R, [S]); + if (result === null || Type(result) === 'Object') { + return result; + } + throw new $TypeError('"exec" method must return `null` or an Object'); + } + return regexExec(R, S); +}; diff --git a/node_modules/es-abstract/2023/RegExpHasFlag.js b/node_modules/es-abstract/2023/RegExpHasFlag.js new file mode 100644 index 0000000000..a7c800d9e1 --- /dev/null +++ b/node_modules/es-abstract/2023/RegExpHasFlag.js @@ -0,0 +1,38 @@ +'use strict'; + +var GetIntrinsic = require('get-intrinsic'); +var callBound = require('call-bind/callBound'); + +var $TypeError = GetIntrinsic('%TypeError%'); +var $RegExpPrototype = GetIntrinsic('%RegExp.prototype%'); + +var SameValue = require('./SameValue'); +var Type = require('./Type'); + +var $indexOf = callBound('String.prototype.indexOf'); + +var hasRegExpMatcher = require('is-regex'); +var getFlags = require('regexp.prototype.flags'); + +// https://262.ecma-international.org/13.0/#sec-regexphasflag + +module.exports = function RegExpHasFlag(R, codeUnit) { + if (Type(codeUnit) !== 'String' || codeUnit.length !== 1) { + throw new $TypeError('Assertion failed: `string` must be a code unit - a String of length 1'); + } + + if (Type(R) !== 'Object') { + throw new $TypeError('Assertion failed: Type(R) is not Object'); + } + + if (!hasRegExpMatcher(R)) { // step 2 + if (SameValue(R, $RegExpPrototype)) { + return void undefined; // step 2.a + } + throw new $TypeError('`R` must be a RegExp object'); // step 2.b + } + + var flags = getFlags(R); // step 3 + + return $indexOf(flags, codeUnit) > -1; // steps 4-5 +}; diff --git a/node_modules/es-abstract/2023/RequireObjectCoercible.js b/node_modules/es-abstract/2023/RequireObjectCoercible.js new file mode 100644 index 0000000000..9008359db8 --- /dev/null +++ b/node_modules/es-abstract/2023/RequireObjectCoercible.js @@ -0,0 +1,3 @@ +'use strict'; + +module.exports = require('../5/CheckObjectCoercible'); diff --git a/node_modules/es-abstract/2023/SameValue.js b/node_modules/es-abstract/2023/SameValue.js new file mode 100644 index 0000000000..b73939b204 --- /dev/null +++ b/node_modules/es-abstract/2023/SameValue.js @@ -0,0 +1,13 @@ +'use strict'; + +var $isNaN = require('../helpers/isNaN'); + +// http://262.ecma-international.org/5.1/#sec-9.12 + +module.exports = function SameValue(x, y) { + if (x === y) { // 0 === -0, but they are not identical. + if (x === 0) { return 1 / x === 1 / y; } + return true; + } + return $isNaN(x) && $isNaN(y); +}; diff --git a/node_modules/es-abstract/2023/SameValueNonNumber.js b/node_modules/es-abstract/2023/SameValueNonNumber.js new file mode 100644 index 0000000000..82febfdfdb --- /dev/null +++ b/node_modules/es-abstract/2023/SameValueNonNumber.js @@ -0,0 +1,21 @@ +'use strict'; + +var GetIntrinsic = require('get-intrinsic'); + +var $TypeError = GetIntrinsic('%TypeError%'); + +var SameValue = require('./SameValue'); +var Type = require('./Type'); + +// https://262.ecma-international.org/14.0/#sec-samevaluenonnumeric + +module.exports = function SameValueNonNumber(x, y) { + var xType = Type(x); + if (xType === 'Number') { + throw new $TypeError('Assertion failed: SameValueNonNumber does not accept Number values'); + } + if (xType !== Type(y)) { + throw new $TypeError('SameValueNonNumber requires two non-Number values of the same type.'); + } + return SameValue(x, y); +}; diff --git a/node_modules/es-abstract/2023/SameValueZero.js b/node_modules/es-abstract/2023/SameValueZero.js new file mode 100644 index 0000000000..3e2851b5ee --- /dev/null +++ b/node_modules/es-abstract/2023/SameValueZero.js @@ -0,0 +1,9 @@ +'use strict'; + +var $isNaN = require('../helpers/isNaN'); + +// https://262.ecma-international.org/6.0/#sec-samevaluezero + +module.exports = function SameValueZero(x, y) { + return (x === y) || ($isNaN(x) && $isNaN(y)); +}; diff --git a/node_modules/es-abstract/2023/SecFromTime.js b/node_modules/es-abstract/2023/SecFromTime.js new file mode 100644 index 0000000000..fc2e445602 --- /dev/null +++ b/node_modules/es-abstract/2023/SecFromTime.js @@ -0,0 +1,14 @@ +'use strict'; + +var floor = require('./floor'); +var modulo = require('./modulo'); + +var timeConstants = require('../helpers/timeConstants'); +var msPerSecond = timeConstants.msPerSecond; +var SecondsPerMinute = timeConstants.SecondsPerMinute; + +// https://262.ecma-international.org/5.1/#sec-15.9.1.10 + +module.exports = function SecFromTime(t) { + return modulo(floor(t / msPerSecond), SecondsPerMinute); +}; diff --git a/node_modules/es-abstract/2023/Set.js b/node_modules/es-abstract/2023/Set.js new file mode 100644 index 0000000000..9697031363 --- /dev/null +++ b/node_modules/es-abstract/2023/Set.js @@ -0,0 +1,47 @@ +'use strict'; + +var GetIntrinsic = require('get-intrinsic'); + +var $TypeError = GetIntrinsic('%TypeError%'); + +var IsPropertyKey = require('./IsPropertyKey'); +var SameValue = require('./SameValue'); +var Type = require('./Type'); + +// IE 9 does not throw in strict mode when writability/configurability/extensibility is violated +var noThrowOnStrictViolation = (function () { + try { + delete [].length; + return true; + } catch (e) { + return false; + } +}()); + +// https://262.ecma-international.org/6.0/#sec-set-o-p-v-throw + +module.exports = function Set(O, P, V, Throw) { + if (Type(O) !== 'Object') { + throw new $TypeError('Assertion failed: `O` must be an Object'); + } + if (!IsPropertyKey(P)) { + throw new $TypeError('Assertion failed: `P` must be a Property Key'); + } + if (Type(Throw) !== 'Boolean') { + throw new $TypeError('Assertion failed: `Throw` must be a Boolean'); + } + if (Throw) { + O[P] = V; // eslint-disable-line no-param-reassign + if (noThrowOnStrictViolation && !SameValue(O[P], V)) { + throw new $TypeError('Attempted to assign to readonly property.'); + } + return true; + } + try { + O[P] = V; // eslint-disable-line no-param-reassign + return noThrowOnStrictViolation ? SameValue(O[P], V) : true; + } catch (e) { + return false; + } + +}; diff --git a/node_modules/es-abstract/2023/SetFunctionLength.js b/node_modules/es-abstract/2023/SetFunctionLength.js new file mode 100644 index 0000000000..fbf9f2352a --- /dev/null +++ b/node_modules/es-abstract/2023/SetFunctionLength.js @@ -0,0 +1,32 @@ +'use strict'; + +var GetIntrinsic = require('get-intrinsic'); + +var $TypeError = GetIntrinsic('%TypeError%'); + +var DefinePropertyOrThrow = require('./DefinePropertyOrThrow'); +var HasOwnProperty = require('./HasOwnProperty'); +var IsExtensible = require('./IsExtensible'); +var Type = require('./Type'); + +var isInteger = require('../helpers/isInteger'); + +// https://262.ecma-international.org/12.0/#sec-setfunctionlength + +module.exports = function SetFunctionLength(F, length) { + if (typeof F !== 'function' || !IsExtensible(F) || HasOwnProperty(F, 'length')) { + throw new $TypeError('Assertion failed: `F` must be an extensible function and lack an own `length` property'); + } + if (Type(length) !== 'Number') { + throw new $TypeError('Assertion failed: `length` must be a Number'); + } + if (length !== Infinity && (!isInteger(length) || length < 0)) { + throw new $TypeError('Assertion failed: `length` must be ∞, or an integer >= 0'); + } + return DefinePropertyOrThrow(F, 'length', { + '[[Configurable]]': true, + '[[Enumerable]]': false, + '[[Value]]': length, + '[[Writable]]': false + }); +}; diff --git a/node_modules/es-abstract/2023/SetFunctionName.js b/node_modules/es-abstract/2023/SetFunctionName.js new file mode 100644 index 0000000000..f7fb0a9aab --- /dev/null +++ b/node_modules/es-abstract/2023/SetFunctionName.js @@ -0,0 +1,44 @@ +'use strict'; + +var GetIntrinsic = require('get-intrinsic'); + +var has = require('has'); + +var $TypeError = GetIntrinsic('%TypeError%'); + +var getSymbolDescription = require('get-symbol-description'); + +var DefinePropertyOrThrow = require('./DefinePropertyOrThrow'); +var IsExtensible = require('./IsExtensible'); +var Type = require('./Type'); + +// https://262.ecma-international.org/6.0/#sec-setfunctionname + +module.exports = function SetFunctionName(F, name) { + if (typeof F !== 'function') { + throw new $TypeError('Assertion failed: `F` must be a function'); + } + if (!IsExtensible(F) || has(F, 'name')) { + throw new $TypeError('Assertion failed: `F` must be extensible, and must not have a `name` own property'); + } + var nameType = Type(name); + if (nameType !== 'Symbol' && nameType !== 'String') { + throw new $TypeError('Assertion failed: `name` must be a Symbol or a String'); + } + if (nameType === 'Symbol') { + var description = getSymbolDescription(name); + // eslint-disable-next-line no-param-reassign + name = typeof description === 'undefined' ? '' : '[' + description + ']'; + } + if (arguments.length > 2) { + var prefix = arguments[2]; + // eslint-disable-next-line no-param-reassign + name = prefix + ' ' + name; + } + return DefinePropertyOrThrow(F, 'name', { + '[[Value]]': name, + '[[Writable]]': false, + '[[Enumerable]]': false, + '[[Configurable]]': true + }); +}; diff --git a/node_modules/es-abstract/2023/SetIntegrityLevel.js b/node_modules/es-abstract/2023/SetIntegrityLevel.js new file mode 100644 index 0000000000..aaef85a0a2 --- /dev/null +++ b/node_modules/es-abstract/2023/SetIntegrityLevel.js @@ -0,0 +1,57 @@ +'use strict'; + +var GetIntrinsic = require('get-intrinsic'); + +var $SyntaxError = GetIntrinsic('%SyntaxError%'); +var $TypeError = GetIntrinsic('%TypeError%'); +var $preventExtensions = GetIntrinsic('%Object.preventExtensions%', true); +var $gOPD = require('gopd'); +var $gOPN = GetIntrinsic('%Object.getOwnPropertyNames%', true); + +var forEach = require('../helpers/forEach'); + +var DefinePropertyOrThrow = require('./DefinePropertyOrThrow'); +var IsAccessorDescriptor = require('./IsAccessorDescriptor'); +var ToPropertyDescriptor = require('./ToPropertyDescriptor'); +var Type = require('./Type'); + +// https://262.ecma-international.org/6.0/#sec-setintegritylevel + +module.exports = function SetIntegrityLevel(O, level) { + if (Type(O) !== 'Object') { + throw new $TypeError('Assertion failed: Type(O) is not Object'); + } + if (level !== 'sealed' && level !== 'frozen') { + throw new $TypeError('Assertion failed: `level` must be `"sealed"` or `"frozen"`'); + } + if (!$preventExtensions) { + throw new $SyntaxError('SetIntegrityLevel requires native `Object.preventExtensions` support'); + } + var status = $preventExtensions(O); + if (!status) { + return false; + } + if (!$gOPN) { + throw new $SyntaxError('SetIntegrityLevel requires native `Object.getOwnPropertyNames` support'); + } + var theKeys = $gOPN(O); + if (level === 'sealed') { + forEach(theKeys, function (k) { + DefinePropertyOrThrow(O, k, { configurable: false }); + }); + } else if (level === 'frozen') { + forEach(theKeys, function (k) { + var currentDesc = $gOPD(O, k); + if (typeof currentDesc !== 'undefined') { + var desc; + if (IsAccessorDescriptor(ToPropertyDescriptor(currentDesc))) { + desc = { configurable: false }; + } else { + desc = { configurable: false, writable: false }; + } + DefinePropertyOrThrow(O, k, desc); + } + }); + } + return true; +}; diff --git a/node_modules/es-abstract/2023/SetTypedArrayFromArrayLike.js b/node_modules/es-abstract/2023/SetTypedArrayFromArrayLike.js new file mode 100644 index 0000000000..f822a25325 --- /dev/null +++ b/node_modules/es-abstract/2023/SetTypedArrayFromArrayLike.js @@ -0,0 +1,96 @@ +'use strict'; + +var GetIntrinsic = require('get-intrinsic'); + +var $RangeError = GetIntrinsic('%RangeError%'); +var $TypeError = GetIntrinsic('%TypeError%'); + +var isTypedArray = require('is-typed-array'); +var typedArrayBuffer = require('typed-array-buffer'); +var typedArrayByteOffset = require('typed-array-byte-offset'); +var typedArrayLength = require('typed-array-length'); +var whichTypedArray = require('which-typed-array'); + +var isInteger = require('../helpers/isInteger'); + +var Get = require('./Get'); +var IsDetachedBuffer = require('./IsDetachedBuffer'); +var LengthOfArrayLike = require('./LengthOfArrayLike'); +var SetValueInBuffer = require('./SetValueInBuffer'); +var ToBigInt = require('./ToBigInt'); +var ToNumber = require('./ToNumber'); +var ToObject = require('./ToObject'); +var ToString = require('./ToString'); +var TypedArrayElementSize = require('./TypedArrayElementSize'); +var TypedArrayElementType = require('./TypedArrayElementType'); + +// https://262.ecma-international.org/13.0/#sec-settypedarrayfromarraylike + +module.exports = function SetTypedArrayFromArrayLike(target, targetOffset, source) { + var whichTarget = whichTypedArray(target); + if (!whichTarget) { + throw new $TypeError('Assertion failed: target must be a TypedArray instance'); + } + + if (targetOffset !== Infinity && (!isInteger(targetOffset) || targetOffset < 0)) { + throw new $TypeError('Assertion failed: targetOffset must be a non-negative integer or +Infinity'); + } + + if (isTypedArray(source)) { + throw new $TypeError('Assertion failed: source must not be a TypedArray instance'); + } + + var targetBuffer = typedArrayBuffer(target); // step 1 + + if (IsDetachedBuffer(targetBuffer)) { + throw new $TypeError('target’s buffer is detached'); // step 2 + } + + var targetLength = typedArrayLength(target); // step 3 + + var targetElementSize = TypedArrayElementSize(target); // step 4 + + var targetType = TypedArrayElementType(target); // step 5 + + var targetByteOffset = typedArrayByteOffset(target); // step 6 + + var src = ToObject(source); // step 7 + + var srcLength = LengthOfArrayLike(src); // step 8 + + if (targetOffset === Infinity) { + throw new $RangeError('targetOffset must be a finite integer'); // step 9 + } + + if (srcLength + targetOffset > targetLength) { + throw new $RangeError('targetOffset + srcLength must be <= target.length'); // step 10 + } + + var targetByteIndex = (targetOffset * targetElementSize) + targetByteOffset; // step 11 + + var k = 0; // step 12 + + var limit = targetByteIndex + (targetElementSize * srcLength); // step 13 + + while (targetByteIndex < limit) { // step 14 + var Pk = ToString(k); // step 14.a + + var value = Get(src, Pk); // step 14.b + + if (targetType === 'BigInt64' || targetType === 'BigUint64') { + value = ToBigInt(value); // step 14.c + } else { + value = ToNumber(value); // step 14.d + } + + if (IsDetachedBuffer(targetBuffer)) { + throw new $TypeError('target’s buffer is detached'); // step 14.e + } + + SetValueInBuffer(targetBuffer, targetByteIndex, targetType, value, true, 'Unordered'); // step 14.f + + k += 1; // step 14.g + + targetByteIndex += targetElementSize; // step 14.h + } +}; diff --git a/node_modules/es-abstract/2023/SetTypedArrayFromTypedArray.js b/node_modules/es-abstract/2023/SetTypedArrayFromTypedArray.js new file mode 100644 index 0000000000..1988f20d59 --- /dev/null +++ b/node_modules/es-abstract/2023/SetTypedArrayFromTypedArray.js @@ -0,0 +1,135 @@ +'use strict'; + +var GetIntrinsic = require('get-intrinsic'); + +var $RangeError = GetIntrinsic('%RangeError%'); +var $SyntaxError = GetIntrinsic('%SyntaxError%'); +var $TypeError = GetIntrinsic('%TypeError%'); +var $ArrayBuffer = GetIntrinsic('%ArrayBuffer%', true); + +var typedArrayBuffer = require('typed-array-buffer'); +var typedArrayByteLength = require('typed-array-byte-length'); +var typedArrayByteOffset = require('typed-array-byte-offset'); +var typedArrayLength = require('typed-array-length'); +var whichTypedArray = require('which-typed-array'); + +var isInteger = require('../helpers/isInteger'); + +var CloneArrayBuffer = require('./CloneArrayBuffer'); +var GetValueFromBuffer = require('./GetValueFromBuffer'); +var IsDetachedBuffer = require('./IsDetachedBuffer'); +var IsSharedArrayBuffer = require('./IsSharedArrayBuffer'); +var SameValue = require('./SameValue'); +var SetValueInBuffer = require('./SetValueInBuffer'); +var TypedArrayElementSize = require('./TypedArrayElementSize'); +var TypedArrayElementType = require('./TypedArrayElementType'); + +// https://262.ecma-international.org/13.0/#sec-settypedarrayfromtypedarray + +module.exports = function SetTypedArrayFromTypedArray(target, targetOffset, source) { + var whichTarget = whichTypedArray(target); + if (!whichTarget) { + throw new $TypeError('Assertion failed: target must be a TypedArray instance'); + } + + if (targetOffset !== Infinity && (!isInteger(targetOffset) || targetOffset < 0)) { + throw new $TypeError('Assertion failed: targetOffset must be a non-negative integer or +Infinity'); + } + + var whichSource = whichTypedArray(source); + if (!whichSource) { + throw new $TypeError('Assertion failed: source must be a TypedArray instance'); + } + + var targetBuffer = typedArrayBuffer(target); // step 1 + + if (IsDetachedBuffer(targetBuffer)) { + throw new $TypeError('target’s buffer is detached'); // step 2 + } + + var targetLength = typedArrayLength(target); // step 3 + + var srcBuffer = typedArrayBuffer(source); // step 4 + + if (IsDetachedBuffer(srcBuffer)) { + throw new $TypeError('source’s buffer is detached'); // step 5 + } + + var targetType = TypedArrayElementType(target); // step 6 + + var targetElementSize = TypedArrayElementSize(target); // step 7 + + var targetByteOffset = typedArrayByteOffset(target); // step 8 + + var srcType = TypedArrayElementType(source); // step 9 + + var srcElementSize = TypedArrayElementSize(source); // step 10 + + var srcLength = typedArrayLength(source); // step 11 + + var srcByteOffset = typedArrayByteOffset(source); // step 12 + + if (targetOffset === Infinity) { + throw new $RangeError('targetOffset must be a non-negative integer or +Infinity'); // step 13 + } + + if (srcLength + targetOffset > targetLength) { + throw new $RangeError('targetOffset + source.length must not be greater than target.length'); // step 14 + } + + var targetContentType = whichTarget === 'BigInt64Array' || whichTarget === 'BigUint64Array' ? 'BigInt' : 'Number'; + var sourceContentType = whichSource === 'BigInt64Array' || whichSource === 'BigUint64Array' ? 'BigInt' : 'Number'; + if (targetContentType !== sourceContentType) { + throw new $TypeError('source and target must have the same content type'); // step 15 + } + + var same; + if (IsSharedArrayBuffer(srcBuffer) && IsSharedArrayBuffer(targetBuffer)) { // step 16 + // a. If srcBuffer.[[ArrayBufferData]] and targetBuffer.[[ArrayBufferData]] are the same Shared Data Block values, let same be true; else let same be false. + throw new $SyntaxError('SharedArrayBuffer is not supported by this implementation'); + } else { + same = SameValue(srcBuffer, targetBuffer); // step 17 + } + + var srcByteIndex; + if (same) { // step 18 + var srcByteLength = typedArrayByteLength(source); // step 18.a + + srcBuffer = CloneArrayBuffer(srcBuffer, srcByteOffset, srcByteLength, $ArrayBuffer); // step 18.b + + // c. NOTE: %ArrayBuffer% is used to clone srcBuffer because is it known to not have any observable side-effects. + + srcByteIndex = 0; // step 18.d + } else { + srcByteIndex = srcByteOffset; // step 19 + } + + var targetByteIndex = (targetOffset * targetElementSize) + targetByteOffset; // step 20 + + var limit = targetByteIndex + (targetElementSize * srcLength); // step 21 + + var value; + if (srcType === targetType) { // step 22 + // a. NOTE: If srcType and targetType are the same, the transfer must be performed in a manner that preserves the bit-level encoding of the source data. + + while (targetByteIndex < limit) { // step 22.b + value = GetValueFromBuffer(srcBuffer, srcByteIndex, 'Uint8', true, 'Unordered'); // step 22.b.i + + SetValueInBuffer(targetBuffer, targetByteIndex, 'Uint8', value, true, 'Unordered'); // step 22.b.ii + + srcByteIndex += 1; // step 22.b.iii + + targetByteIndex += 1; // step 22.b.iv + } + } else { // step 23 + while (targetByteIndex < limit) { // step 23.a + value = GetValueFromBuffer(srcBuffer, srcByteIndex, srcType, true, 'Unordered'); // step 23.a.i + + SetValueInBuffer(targetBuffer, targetByteIndex, targetType, value, true, 'Unordered'); // step 23.a.ii + + srcByteIndex += srcElementSize; // step 23.a.iii + + targetByteIndex += targetElementSize; // step 23.a.iv + } + } +}; diff --git a/node_modules/es-abstract/2023/SetValueInBuffer.js b/node_modules/es-abstract/2023/SetValueInBuffer.js new file mode 100644 index 0000000000..39b0be00e1 --- /dev/null +++ b/node_modules/es-abstract/2023/SetValueInBuffer.js @@ -0,0 +1,105 @@ +'use strict'; + +var GetIntrinsic = require('get-intrinsic'); + +var $SyntaxError = GetIntrinsic('%SyntaxError%'); +var $TypeError = GetIntrinsic('%TypeError%'); + +var isInteger = require('../helpers/isInteger'); + +var IsBigIntElementType = require('./IsBigIntElementType'); +var IsDetachedBuffer = require('./IsDetachedBuffer'); +var NumericToRawBytes = require('./NumericToRawBytes'); + +var isArrayBuffer = require('is-array-buffer'); +var isSharedArrayBuffer = require('is-shared-array-buffer'); +var has = require('has'); + +var table60 = { + __proto__: null, + Int8: 1, + Uint8: 1, + Uint8C: 1, + Int16: 2, + Uint16: 2, + Int32: 4, + Uint32: 4, + BigInt64: 8, + BigUint64: 8, + Float32: 4, + Float64: 8 +}; + +var defaultEndianness = require('../helpers/defaultEndianness'); +var forEach = require('../helpers/forEach'); + +// https://262.ecma-international.org/12.0/#sec-setvalueinbuffer + +/* eslint max-params: 0 */ + +module.exports = function SetValueInBuffer(arrayBuffer, byteIndex, type, value, isTypedArray, order) { + var isSAB = isSharedArrayBuffer(arrayBuffer); + if (!isArrayBuffer(arrayBuffer) && !isSAB) { + throw new $TypeError('Assertion failed: `arrayBuffer` must be an ArrayBuffer or a SharedArrayBuffer'); + } + + if (!isInteger(byteIndex) || byteIndex < 0) { + throw new $TypeError('Assertion failed: `byteIndex` must be a non-negative integer'); + } + + if (typeof type !== 'string' || !has(table60, type)) { + throw new $TypeError('Assertion failed: `type` must be a Typed Array Element Type'); + } + + if (typeof value !== 'number' && typeof value !== 'bigint') { + throw new $TypeError('Assertion failed: `value` must be a Number or a BigInt'); + } + + if (typeof isTypedArray !== 'boolean') { + throw new $TypeError('Assertion failed: `isTypedArray` must be a boolean'); + } + if (order !== 'SeqCst' && order !== 'Unordered' && order !== 'Init') { + throw new $TypeError('Assertion failed: `order` must be `"SeqCst"`, `"Unordered"`, or `"Init"`'); + } + + if (arguments.length > 6 && typeof arguments[6] !== 'boolean') { + throw new $TypeError('Assertion failed: `isLittleEndian` must be a boolean, if present'); + } + + if (IsDetachedBuffer(arrayBuffer)) { + throw new $TypeError('Assertion failed: ArrayBuffer is detached'); // step 1 + } + + // 2. Assert: There are sufficient bytes in arrayBuffer starting at byteIndex to represent a value of type. + + if (IsBigIntElementType(type) ? typeof value !== 'bigint' : typeof value !== 'number') { // step 3 + throw new $TypeError('Assertion failed: `value` must be a BigInt if type is BigInt64 or BigUint64, otherwise a Number'); + } + + // 4. Let block be arrayBuffer’s [[ArrayBufferData]] internal slot. + + var elementSize = table60[type]; // step 5 + + // 6. If isLittleEndian is not present, set isLittleEndian to either true or false. The choice is implementation dependent and should be the alternative that is most efficient for the implementation. An implementation must use the same value each time this step is executed and the same value must be used for the corresponding step in the GetValueFromBuffer abstract operation. + var isLittleEndian = arguments.length > 6 ? arguments[6] : defaultEndianness === 'little'; // step 6 + + var rawBytes = NumericToRawBytes(type, value, isLittleEndian); // step 7 + + if (isSAB) { // step 8 + /* + Let execution be the [[CandidateExecution]] field of the surrounding agent's Agent Record. + Let eventList be the [[EventList]] field of the element in execution.[[EventsRecords]] whose [[AgentSignifier]] is AgentSignifier(). + If isTypedArray is true and IsNoTearConfiguration(type, order) is true, let noTear be true; otherwise let noTear be false. + Append WriteSharedMemory { [[Order]]: order, [[NoTear]]: noTear, [[Block]]: block, [[ByteIndex]]: byteIndex, [[ElementSize]]: elementSize, [[Payload]]: rawBytes } to eventList. + */ + throw new $SyntaxError('SharedArrayBuffer is not supported by this implementation'); + } else { + // 9. Store the individual bytes of rawBytes into block, in order, starting at block[byteIndex]. + var arr = new Uint8Array(arrayBuffer, byteIndex, elementSize); + forEach(rawBytes, function (rawByte, i) { + arr[i] = rawByte; + }); + } + + // 10. Return NormalCompletion(undefined). +}; diff --git a/node_modules/es-abstract/2023/SortIndexedProperties.js b/node_modules/es-abstract/2023/SortIndexedProperties.js new file mode 100644 index 0000000000..1f7ac9052b --- /dev/null +++ b/node_modules/es-abstract/2023/SortIndexedProperties.js @@ -0,0 +1,52 @@ +'use strict'; + +var GetIntrinsic = require('get-intrinsic'); +var callBound = require('call-bind/callBound'); + +var $TypeError = GetIntrinsic('%TypeError%'); + +var Get = require('./Get'); +var HasProperty = require('./HasProperty'); +var ToString = require('./ToString'); +var Type = require('./Type'); + +var isAbstractClosure = require('../helpers/isAbstractClosure'); +var isInteger = require('../helpers/isInteger'); + +var $push = callBound('Array.prototype.push'); +var $sort = callBound('Array.prototype.sort'); + +// https://262.ecma-international.org/14.0/#sec-sortindexedproperties + +module.exports = function SortIndexedProperties(obj, len, SortCompare, holes) { + if (Type(obj) !== 'Object') { + throw new $TypeError('Assertion failed: Type(obj) is not Object'); + } + if (!isInteger(len) || len < 0) { + throw new $TypeError('Assertion failed: `len` must be an integer >= 0'); + } + if (!isAbstractClosure(SortCompare) || SortCompare.length !== 2) { + throw new $TypeError('Assertion failed: `SortCompare` must be an abstract closure taking 2 arguments'); + } + if (holes !== 'skip-holes' && holes !== 'read-through-holes') { + throw new $TypeError('Assertion failed: `holes` must be either `skip-holes` or `read-through-holes`'); + } + + var items = []; // step 1 + + var k = 0; // step 2 + + while (k < len) { // step 3 + var Pk = ToString(k); + var kRead = holes === 'skip-holes' ? HasProperty(obj, Pk) : true; // step 3.b - 3.c + if (kRead) { // step 3.d + var kValue = Get(obj, Pk); + $push(items, kValue); + } + k += 1; // step 3.e + } + + $sort(items, SortCompare); // step 4 + + return items; // step 5 +}; diff --git a/node_modules/es-abstract/2023/SpeciesConstructor.js b/node_modules/es-abstract/2023/SpeciesConstructor.js new file mode 100644 index 0000000000..1937b9c9cd --- /dev/null +++ b/node_modules/es-abstract/2023/SpeciesConstructor.js @@ -0,0 +1,32 @@ +'use strict'; + +var GetIntrinsic = require('get-intrinsic'); + +var $species = GetIntrinsic('%Symbol.species%', true); +var $TypeError = GetIntrinsic('%TypeError%'); + +var IsConstructor = require('./IsConstructor'); +var Type = require('./Type'); + +// https://262.ecma-international.org/6.0/#sec-speciesconstructor + +module.exports = function SpeciesConstructor(O, defaultConstructor) { + if (Type(O) !== 'Object') { + throw new $TypeError('Assertion failed: Type(O) is not Object'); + } + var C = O.constructor; + if (typeof C === 'undefined') { + return defaultConstructor; + } + if (Type(C) !== 'Object') { + throw new $TypeError('O.constructor is not an Object'); + } + var S = $species ? C[$species] : void 0; + if (S == null) { + return defaultConstructor; + } + if (IsConstructor(S)) { + return S; + } + throw new $TypeError('no constructor found'); +}; diff --git a/node_modules/es-abstract/2023/StringCreate.js b/node_modules/es-abstract/2023/StringCreate.js new file mode 100644 index 0000000000..bd02820f79 --- /dev/null +++ b/node_modules/es-abstract/2023/StringCreate.js @@ -0,0 +1,40 @@ +'use strict'; + +var GetIntrinsic = require('get-intrinsic'); + +var $Object = GetIntrinsic('%Object%'); +var $StringPrototype = GetIntrinsic('%String.prototype%'); +var $SyntaxError = GetIntrinsic('%SyntaxError%'); +var $TypeError = GetIntrinsic('%TypeError%'); + +var DefinePropertyOrThrow = require('./DefinePropertyOrThrow'); +var Type = require('./Type'); + +var setProto = require('../helpers/setProto'); + +// https://262.ecma-international.org/6.0/#sec-stringcreate + +module.exports = function StringCreate(value, prototype) { + if (Type(value) !== 'String') { + throw new $TypeError('Assertion failed: `S` must be a String'); + } + + var S = $Object(value); + if (prototype !== $StringPrototype) { + if (setProto) { + setProto(S, prototype); + } else { + throw new $SyntaxError('StringCreate: a `proto` argument that is not `String.prototype` is not supported in an environment that does not support setting the [[Prototype]]'); + } + } + + var length = value.length; + DefinePropertyOrThrow(S, 'length', { + '[[Configurable]]': false, + '[[Enumerable]]': false, + '[[Value]]': length, + '[[Writable]]': false + }); + + return S; +}; diff --git a/node_modules/es-abstract/2023/StringGetOwnProperty.js b/node_modules/es-abstract/2023/StringGetOwnProperty.js new file mode 100644 index 0000000000..579bb9556d --- /dev/null +++ b/node_modules/es-abstract/2023/StringGetOwnProperty.js @@ -0,0 +1,48 @@ +'use strict'; + +var GetIntrinsic = require('get-intrinsic'); + +var $TypeError = GetIntrinsic('%TypeError%'); + +var callBound = require('call-bind/callBound'); +var $charAt = callBound('String.prototype.charAt'); +var $stringToString = callBound('String.prototype.toString'); + +var CanonicalNumericIndexString = require('./CanonicalNumericIndexString'); +var IsIntegralNumber = require('./IsIntegralNumber'); +var IsPropertyKey = require('./IsPropertyKey'); +var Type = require('./Type'); + +var isNegativeZero = require('is-negative-zero'); + +// https://262.ecma-international.org/12.0/#sec-stringgetownproperty + +module.exports = function StringGetOwnProperty(S, P) { + var str; + if (Type(S) === 'Object') { + try { + str = $stringToString(S); + } catch (e) { /**/ } + } + if (Type(str) !== 'String') { + throw new $TypeError('Assertion failed: `S` must be a boxed string object'); + } + if (!IsPropertyKey(P)) { + throw new $TypeError('Assertion failed: IsPropertyKey(P) is not true'); + } + if (Type(P) !== 'String') { + return void undefined; + } + var index = CanonicalNumericIndexString(P); + var len = str.length; + if (typeof index === 'undefined' || !IsIntegralNumber(index) || isNegativeZero(index) || index < 0 || len <= index) { + return void undefined; + } + var resultStr = $charAt(S, index); + return { + '[[Configurable]]': false, + '[[Enumerable]]': true, + '[[Value]]': resultStr, + '[[Writable]]': false + }; +}; diff --git a/node_modules/es-abstract/2023/StringIndexOf.js b/node_modules/es-abstract/2023/StringIndexOf.js new file mode 100644 index 0000000000..2f6944d156 --- /dev/null +++ b/node_modules/es-abstract/2023/StringIndexOf.js @@ -0,0 +1,40 @@ +'use strict'; + +var GetIntrinsic = require('get-intrinsic'); +var callBound = require('call-bind/callBound'); + +var $TypeError = GetIntrinsic('%TypeError%'); + +var Type = require('./Type'); + +var isInteger = require('../helpers/isInteger'); + +var $slice = callBound('String.prototype.slice'); + +// https://262.ecma-international.org/12.0/#sec-stringindexof + +module.exports = function StringIndexOf(string, searchValue, fromIndex) { + if (Type(string) !== 'String') { + throw new $TypeError('Assertion failed: `string` must be a String'); + } + if (Type(searchValue) !== 'String') { + throw new $TypeError('Assertion failed: `searchValue` must be a String'); + } + if (!isInteger(fromIndex) || fromIndex < 0) { + throw new $TypeError('Assertion failed: `fromIndex` must be a non-negative integer'); + } + + var len = string.length; + if (searchValue === '' && fromIndex <= len) { + return fromIndex; + } + + var searchLen = searchValue.length; + for (var i = fromIndex; i <= (len - searchLen); i += 1) { + var candidate = $slice(string, i, i + searchLen); + if (candidate === searchValue) { + return i; + } + } + return -1; +}; diff --git a/node_modules/es-abstract/2023/StringPad.js b/node_modules/es-abstract/2023/StringPad.js new file mode 100644 index 0000000000..cdf69001bb --- /dev/null +++ b/node_modules/es-abstract/2023/StringPad.js @@ -0,0 +1,43 @@ +'use strict'; + +var GetIntrinsic = require('get-intrinsic'); + +var $TypeError = GetIntrinsic('%TypeError%'); + +var callBound = require('call-bind/callBound'); + +var ToLength = require('./ToLength'); +var ToString = require('./ToString'); + +var $strSlice = callBound('String.prototype.slice'); + +// https://262.ecma-international.org/11.0/#sec-stringpad + +module.exports = function StringPad(O, maxLength, fillString, placement) { + if (placement !== 'start' && placement !== 'end') { + throw new $TypeError('Assertion failed: `placement` must be "start" or "end"'); + } + var S = ToString(O); + var intMaxLength = ToLength(maxLength); + var stringLength = S.length; + if (intMaxLength <= stringLength) { + return S; + } + var filler = typeof fillString === 'undefined' ? ' ' : ToString(fillString); + if (filler === '') { + return S; + } + var fillLen = intMaxLength - stringLength; + + // the String value consisting of repeated concatenations of filler truncated to length fillLen. + var truncatedStringFiller = ''; + while (truncatedStringFiller.length < fillLen) { + truncatedStringFiller += filler; + } + truncatedStringFiller = $strSlice(truncatedStringFiller, 0, fillLen); + + if (placement === 'start') { + return truncatedStringFiller + S; + } + return S + truncatedStringFiller; +}; diff --git a/node_modules/es-abstract/2023/StringToBigInt.js b/node_modules/es-abstract/2023/StringToBigInt.js new file mode 100644 index 0000000000..bb113b4c6a --- /dev/null +++ b/node_modules/es-abstract/2023/StringToBigInt.js @@ -0,0 +1,23 @@ +'use strict'; + +var GetIntrinsic = require('get-intrinsic'); + +var $BigInt = GetIntrinsic('%BigInt%', true); +var $TypeError = GetIntrinsic('%TypeError%'); +var $SyntaxError = GetIntrinsic('%SyntaxError%'); + +// https://262.ecma-international.org/14.0/#sec-stringtobigint + +module.exports = function StringToBigInt(argument) { + if (typeof argument !== 'string') { + throw new $TypeError('`argument` must be a string'); + } + if (!$BigInt) { + throw new $SyntaxError('BigInts are not supported in this environment'); + } + try { + return $BigInt(argument); + } catch (e) { + return void undefined; + } +}; diff --git a/node_modules/es-abstract/2023/StringToCodePoints.js b/node_modules/es-abstract/2023/StringToCodePoints.js new file mode 100644 index 0000000000..f503ce1b47 --- /dev/null +++ b/node_modules/es-abstract/2023/StringToCodePoints.js @@ -0,0 +1,29 @@ +'use strict'; + +var GetIntrinsic = require('get-intrinsic'); + +var $TypeError = GetIntrinsic('%TypeError%'); + +var callBound = require('call-bind/callBound'); + +var $push = callBound('Array.prototype.push'); + +var CodePointAt = require('./CodePointAt'); +var Type = require('./Type'); + +// https://262.ecma-international.org/12.0/#sec-stringtocodepoints + +module.exports = function StringToCodePoints(string) { + if (Type(string) !== 'String') { + throw new $TypeError('Assertion failed: `string` must be a String'); + } + var codePoints = []; + var size = string.length; + var position = 0; + while (position < size) { + var cp = CodePointAt(string, position); + $push(codePoints, cp['[[CodePoint]]']); + position += cp['[[CodeUnitCount]]']; + } + return codePoints; +}; diff --git a/node_modules/es-abstract/2023/StringToNumber.js b/node_modules/es-abstract/2023/StringToNumber.js new file mode 100644 index 0000000000..5775b56c69 --- /dev/null +++ b/node_modules/es-abstract/2023/StringToNumber.js @@ -0,0 +1,45 @@ +'use strict'; + +var GetIntrinsic = require('get-intrinsic'); + +var $Number = GetIntrinsic('%Number%'); +var $RegExp = GetIntrinsic('%RegExp%'); +var $TypeError = GetIntrinsic('%TypeError%'); +var $parseInteger = GetIntrinsic('%parseInt%'); + +var callBound = require('call-bind/callBound'); +var regexTester = require('safe-regex-test'); + +var $strSlice = callBound('String.prototype.slice'); +var isBinary = regexTester(/^0b[01]+$/i); +var isOctal = regexTester(/^0o[0-7]+$/i); +var isInvalidHexLiteral = regexTester(/^[-+]0x[0-9a-f]+$/i); +var nonWS = ['\u0085', '\u200b', '\ufffe'].join(''); +var nonWSregex = new $RegExp('[' + nonWS + ']', 'g'); +var hasNonWS = regexTester(nonWSregex); + +var $trim = require('string.prototype.trim'); + +var Type = require('./Type'); + +// https://262.ecma-international.org/13.0/#sec-stringtonumber + +module.exports = function StringToNumber(argument) { + if (Type(argument) !== 'String') { + throw new $TypeError('Assertion failed: `argument` is not a String'); + } + if (isBinary(argument)) { + return $Number($parseInteger($strSlice(argument, 2), 2)); + } + if (isOctal(argument)) { + return $Number($parseInteger($strSlice(argument, 2), 8)); + } + if (hasNonWS(argument) || isInvalidHexLiteral(argument)) { + return NaN; + } + var trimmed = $trim(argument); + if (trimmed !== argument) { + return StringToNumber(trimmed); + } + return $Number(argument); +}; diff --git a/node_modules/es-abstract/2023/SymbolDescriptiveString.js b/node_modules/es-abstract/2023/SymbolDescriptiveString.js new file mode 100644 index 0000000000..89c253ffae --- /dev/null +++ b/node_modules/es-abstract/2023/SymbolDescriptiveString.js @@ -0,0 +1,20 @@ +'use strict'; + +var GetIntrinsic = require('get-intrinsic'); + +var $TypeError = GetIntrinsic('%TypeError%'); + +var callBound = require('call-bind/callBound'); + +var $SymbolToString = callBound('Symbol.prototype.toString', true); + +var Type = require('./Type'); + +// https://262.ecma-international.org/6.0/#sec-symboldescriptivestring + +module.exports = function SymbolDescriptiveString(sym) { + if (Type(sym) !== 'Symbol') { + throw new $TypeError('Assertion failed: `sym` must be a Symbol'); + } + return $SymbolToString(sym); +}; diff --git a/node_modules/es-abstract/2023/TestIntegrityLevel.js b/node_modules/es-abstract/2023/TestIntegrityLevel.js new file mode 100644 index 0000000000..7cefab7017 --- /dev/null +++ b/node_modules/es-abstract/2023/TestIntegrityLevel.js @@ -0,0 +1,42 @@ +'use strict'; + +var GetIntrinsic = require('get-intrinsic'); + +var $gOPD = require('gopd'); +var $TypeError = GetIntrinsic('%TypeError%'); + +var every = require('../helpers/every'); +var OwnPropertyKeys = require('../helpers/OwnPropertyKeys'); + +var IsDataDescriptor = require('./IsDataDescriptor'); +var IsExtensible = require('./IsExtensible'); +var ToPropertyDescriptor = require('./ToPropertyDescriptor'); +var Type = require('./Type'); + +// https://262.ecma-international.org/6.0/#sec-testintegritylevel + +module.exports = function TestIntegrityLevel(O, level) { + if (Type(O) !== 'Object') { + throw new $TypeError('Assertion failed: Type(O) is not Object'); + } + if (level !== 'sealed' && level !== 'frozen') { + throw new $TypeError('Assertion failed: `level` must be `"sealed"` or `"frozen"`'); + } + var status = IsExtensible(O); + if (status) { + return false; + } + var theKeys = OwnPropertyKeys(O); + return theKeys.length === 0 || every(theKeys, function (k) { + var currentDesc = $gOPD(O, k); + if (typeof currentDesc !== 'undefined') { + if (currentDesc.configurable) { + return false; + } + if (level === 'frozen' && IsDataDescriptor(ToPropertyDescriptor(currentDesc)) && currentDesc.writable) { + return false; + } + } + return true; + }); +}; diff --git a/node_modules/es-abstract/2023/ThrowCompletion.js b/node_modules/es-abstract/2023/ThrowCompletion.js new file mode 100644 index 0000000000..b7d388a352 --- /dev/null +++ b/node_modules/es-abstract/2023/ThrowCompletion.js @@ -0,0 +1,9 @@ +'use strict'; + +var CompletionRecord = require('./CompletionRecord'); + +// https://262.ecma-international.org/9.0/#sec-throwcompletion + +module.exports = function ThrowCompletion(argument) { + return new CompletionRecord('throw', argument); +}; diff --git a/node_modules/es-abstract/2023/TimeClip.js b/node_modules/es-abstract/2023/TimeClip.js new file mode 100644 index 0000000000..e416cab4bf --- /dev/null +++ b/node_modules/es-abstract/2023/TimeClip.js @@ -0,0 +1,21 @@ +'use strict'; + +var GetIntrinsic = require('get-intrinsic'); + +var $Date = GetIntrinsic('%Date%'); +var $Number = GetIntrinsic('%Number%'); + +var $isFinite = require('../helpers/isFinite'); + +var abs = require('./abs'); +var ToNumber = require('./ToNumber'); + +// https://262.ecma-international.org/5.1/#sec-15.9.1.14 + +module.exports = function TimeClip(time) { + if (!$isFinite(time) || abs(time) > 8.64e15) { + return NaN; + } + return $Number(new $Date(ToNumber(time))); +}; + diff --git a/node_modules/es-abstract/2023/TimeFromYear.js b/node_modules/es-abstract/2023/TimeFromYear.js new file mode 100644 index 0000000000..f3518a41a1 --- /dev/null +++ b/node_modules/es-abstract/2023/TimeFromYear.js @@ -0,0 +1,11 @@ +'use strict'; + +var msPerDay = require('../helpers/timeConstants').msPerDay; + +var DayFromYear = require('./DayFromYear'); + +// https://262.ecma-international.org/5.1/#sec-15.9.1.3 + +module.exports = function TimeFromYear(y) { + return msPerDay * DayFromYear(y); +}; diff --git a/node_modules/es-abstract/2023/TimeString.js b/node_modules/es-abstract/2023/TimeString.js new file mode 100644 index 0000000000..051c4728e2 --- /dev/null +++ b/node_modules/es-abstract/2023/TimeString.js @@ -0,0 +1,25 @@ +'use strict'; + +var GetIntrinsic = require('get-intrinsic'); + +var $TypeError = GetIntrinsic('%TypeError%'); + +var $isNaN = require('../helpers/isNaN'); +var padTimeComponent = require('../helpers/padTimeComponent'); + +var HourFromTime = require('./HourFromTime'); +var MinFromTime = require('./MinFromTime'); +var SecFromTime = require('./SecFromTime'); +var Type = require('./Type'); + +// https://262.ecma-international.org/9.0/#sec-timestring + +module.exports = function TimeString(tv) { + if (Type(tv) !== 'Number' || $isNaN(tv)) { + throw new $TypeError('Assertion failed: `tv` must be a non-NaN Number'); + } + var hour = HourFromTime(tv); + var minute = MinFromTime(tv); + var second = SecFromTime(tv); + return padTimeComponent(hour) + ':' + padTimeComponent(minute) + ':' + padTimeComponent(second) + '\x20GMT'; +}; diff --git a/node_modules/es-abstract/2023/TimeWithinDay.js b/node_modules/es-abstract/2023/TimeWithinDay.js new file mode 100644 index 0000000000..2bba83386c --- /dev/null +++ b/node_modules/es-abstract/2023/TimeWithinDay.js @@ -0,0 +1,12 @@ +'use strict'; + +var modulo = require('./modulo'); + +var msPerDay = require('../helpers/timeConstants').msPerDay; + +// https://262.ecma-international.org/5.1/#sec-15.9.1.2 + +module.exports = function TimeWithinDay(t) { + return modulo(t, msPerDay); +}; + diff --git a/node_modules/es-abstract/2023/ToBigInt.js b/node_modules/es-abstract/2023/ToBigInt.js new file mode 100644 index 0000000000..d24e0fff09 --- /dev/null +++ b/node_modules/es-abstract/2023/ToBigInt.js @@ -0,0 +1,53 @@ +'use strict'; + +var GetIntrinsic = require('get-intrinsic'); + +var $BigInt = GetIntrinsic('%BigInt%', true); +var $Number = GetIntrinsic('%Number%'); +var $TypeError = GetIntrinsic('%TypeError%'); +var $SyntaxError = GetIntrinsic('%SyntaxError%'); + +var StringToBigInt = require('./StringToBigInt'); +var ToPrimitive = require('./ToPrimitive'); + +var isNaN = require('../helpers/isNaN'); + +// https://262.ecma-international.org/11.0/#sec-tobigint + +module.exports = function ToBigInt(argument) { + if (!$BigInt) { + throw new $SyntaxError('BigInts are not supported in this environment'); + } + + var prim = ToPrimitive(argument, $Number); + + if (prim == null) { + throw new $TypeError('Cannot convert null or undefined to a BigInt'); + } + + if (typeof prim === 'boolean') { + return prim ? $BigInt(1) : $BigInt(0); + } + + if (typeof prim === 'number') { + throw new $TypeError('Cannot convert a Number value to a BigInt'); + } + + if (typeof prim === 'string') { + var n = StringToBigInt(prim); + if (isNaN(n)) { + throw new $TypeError('Failed to parse String to BigInt'); + } + return n; + } + + if (typeof prim === 'symbol') { + throw new $TypeError('Cannot convert a Symbol value to a BigInt'); + } + + if (typeof prim !== 'bigint') { + throw new $SyntaxError('Assertion failed: unknown primitive type'); + } + + return prim; +}; diff --git a/node_modules/es-abstract/2023/ToBigInt64.js b/node_modules/es-abstract/2023/ToBigInt64.js new file mode 100644 index 0000000000..65c1c55d92 --- /dev/null +++ b/node_modules/es-abstract/2023/ToBigInt64.js @@ -0,0 +1,25 @@ +'use strict'; + +var GetIntrinsic = require('get-intrinsic'); + +var $BigInt = GetIntrinsic('%BigInt%', true); +var $pow = GetIntrinsic('%Math.pow%'); + +var ToBigInt = require('./ToBigInt'); +var BigIntRemainder = require('./BigInt/remainder'); + +var modBigInt = require('../helpers/modBigInt'); + +// BigInt(2**63), but node v10.4-v10.8 have a bug where you can't `BigInt(x)` anything larger than MAX_SAFE_INTEGER +var twoSixtyThree = $BigInt && (BigInt($pow(2, 32)) * BigInt($pow(2, 31))); + +// BigInt(2**64), but node v10.4-v10.8 have a bug where you can't `BigInt(x)` anything larger than MAX_SAFE_INTEGER +var twoSixtyFour = $BigInt && (BigInt($pow(2, 32)) * BigInt($pow(2, 32))); + +// https://262.ecma-international.org/11.0/#sec-tobigint64 + +module.exports = function ToBigInt64(argument) { + var n = ToBigInt(argument); + var int64bit = modBigInt(BigIntRemainder, n, twoSixtyFour); + return int64bit >= twoSixtyThree ? int64bit - twoSixtyFour : int64bit; +}; diff --git a/node_modules/es-abstract/2023/ToBigUint64.js b/node_modules/es-abstract/2023/ToBigUint64.js new file mode 100644 index 0000000000..ff68236a8c --- /dev/null +++ b/node_modules/es-abstract/2023/ToBigUint64.js @@ -0,0 +1,22 @@ +'use strict'; + +var GetIntrinsic = require('get-intrinsic'); + +var $BigInt = GetIntrinsic('%BigInt%', true); +var $pow = GetIntrinsic('%Math.pow%'); + +var ToBigInt = require('./ToBigInt'); +var BigIntRemainder = require('./BigInt/remainder'); + +var modBigInt = require('../helpers/modBigInt'); + +// BigInt(2**64), but node v10.4-v10.8 have a bug where you can't `BigInt(x)` anything larger than MAX_SAFE_INTEGER +var twoSixtyFour = $BigInt && (BigInt($pow(2, 32)) * BigInt($pow(2, 32))); + +// https://262.ecma-international.org/11.0/#sec-tobiguint64 + +module.exports = function ToBigUint64(argument) { + var n = ToBigInt(argument); + var int64bit = modBigInt(BigIntRemainder, n, twoSixtyFour); + return int64bit; +}; diff --git a/node_modules/es-abstract/2023/ToBoolean.js b/node_modules/es-abstract/2023/ToBoolean.js new file mode 100644 index 0000000000..466404bf99 --- /dev/null +++ b/node_modules/es-abstract/2023/ToBoolean.js @@ -0,0 +1,5 @@ +'use strict'; + +// http://262.ecma-international.org/5.1/#sec-9.2 + +module.exports = function ToBoolean(value) { return !!value; }; diff --git a/node_modules/es-abstract/2023/ToDateString.js b/node_modules/es-abstract/2023/ToDateString.js new file mode 100644 index 0000000000..dabb2bb38a --- /dev/null +++ b/node_modules/es-abstract/2023/ToDateString.js @@ -0,0 +1,23 @@ +'use strict'; + +var GetIntrinsic = require('get-intrinsic'); + +var $TypeError = GetIntrinsic('%TypeError%'); +var $Date = GetIntrinsic('%Date%'); +var $String = GetIntrinsic('%String%'); + +var $isNaN = require('../helpers/isNaN'); + +var Type = require('./Type'); + +// https://262.ecma-international.org/6.0/#sec-todatestring + +module.exports = function ToDateString(tv) { + if (Type(tv) !== 'Number') { + throw new $TypeError('Assertion failed: `tv` must be a Number'); + } + if ($isNaN(tv)) { + return 'Invalid Date'; + } + return $String(new $Date(tv)); +}; diff --git a/node_modules/es-abstract/2023/ToIndex.js b/node_modules/es-abstract/2023/ToIndex.js new file mode 100644 index 0000000000..2343b44f32 --- /dev/null +++ b/node_modules/es-abstract/2023/ToIndex.js @@ -0,0 +1,26 @@ +'use strict'; + +var GetIntrinsic = require('get-intrinsic'); + +var $RangeError = GetIntrinsic('%RangeError%'); + +var ToIntegerOrInfinity = require('./ToIntegerOrInfinity'); +var ToLength = require('./ToLength'); +var SameValue = require('./SameValue'); + +// https://262.ecma-international.org/8.0/#sec-toindex + +module.exports = function ToIndex(value) { + if (typeof value === 'undefined') { + return 0; + } + var integerIndex = ToIntegerOrInfinity(value); + if (integerIndex < 0) { + throw new $RangeError('index must be >= 0'); + } + var index = ToLength(integerIndex); + if (!SameValue(integerIndex, index)) { + throw new $RangeError('index must be >= 0 and < 2 ** 53 - 1'); + } + return index; +}; diff --git a/node_modules/es-abstract/2023/ToInt16.js b/node_modules/es-abstract/2023/ToInt16.js new file mode 100644 index 0000000000..49d02c4c5c --- /dev/null +++ b/node_modules/es-abstract/2023/ToInt16.js @@ -0,0 +1,21 @@ +'use strict'; + +var modulo = require('./modulo'); +var ToNumber = require('./ToNumber'); +var truncate = require('./truncate'); + +var isFinite = require('../helpers/isFinite'); + +// https://262.ecma-international.org/14.0/#sec-toint16 + +var two16 = 0x10000; // Math.pow(2, 16); + +module.exports = function ToInt16(argument) { + var number = ToNumber(argument); + if (!isFinite(number) || number === 0) { + return 0; + } + var int = truncate(number); + var int16bit = modulo(int, two16); + return int16bit >= 0x8000 ? int16bit - two16 : int16bit; +}; diff --git a/node_modules/es-abstract/2023/ToInt32.js b/node_modules/es-abstract/2023/ToInt32.js new file mode 100644 index 0000000000..c4d6bbc61b --- /dev/null +++ b/node_modules/es-abstract/2023/ToInt32.js @@ -0,0 +1,23 @@ +'use strict'; + +var modulo = require('./modulo'); +var ToNumber = require('./ToNumber'); +var truncate = require('./truncate'); + +var isFinite = require('../helpers/isFinite'); + +// https://262.ecma-international.org/14.0/#sec-toint32 + +var two31 = 0x80000000; // Math.pow(2, 31); +var two32 = 0x100000000; // Math.pow(2, 32); + +module.exports = function ToInt32(argument) { + var number = ToNumber(argument); + if (!isFinite(number) || number === 0) { + return 0; + } + var int = truncate(number); + var int32bit = modulo(int, two32); + var result = int32bit >= two31 ? int32bit - two32 : int32bit; + return result === 0 ? 0 : result; // in the spec, these are math values, so we filter out -0 here +}; diff --git a/node_modules/es-abstract/2023/ToInt8.js b/node_modules/es-abstract/2023/ToInt8.js new file mode 100644 index 0000000000..6b9da945c3 --- /dev/null +++ b/node_modules/es-abstract/2023/ToInt8.js @@ -0,0 +1,19 @@ +'use strict'; + +var modulo = require('./modulo'); +var ToNumber = require('./ToNumber'); +var truncate = require('./truncate'); + +var isFinite = require('../helpers/isFinite'); + +// https://262.ecma-international.org/14.0/#sec-toint8 + +module.exports = function ToInt8(argument) { + var number = ToNumber(argument); + if (!isFinite(number) || number === 0) { + return 0; + } + var int = truncate(number); + var int8bit = modulo(int, 0x100); + return int8bit >= 0x80 ? int8bit - 0x100 : int8bit; +}; diff --git a/node_modules/es-abstract/2023/ToIntegerOrInfinity.js b/node_modules/es-abstract/2023/ToIntegerOrInfinity.js new file mode 100644 index 0000000000..8cc0c8d433 --- /dev/null +++ b/node_modules/es-abstract/2023/ToIntegerOrInfinity.js @@ -0,0 +1,16 @@ +'use strict'; + +var ToNumber = require('./ToNumber'); +var truncate = require('./truncate'); + +var $isNaN = require('../helpers/isNaN'); +var $isFinite = require('../helpers/isFinite'); + +// https://262.ecma-international.org/14.0/#sec-tointegerorinfinity + +module.exports = function ToIntegerOrInfinity(value) { + var number = ToNumber(value); + if ($isNaN(number) || number === 0) { return 0; } + if (!$isFinite(number)) { return number; } + return truncate(number); +}; diff --git a/node_modules/es-abstract/2023/ToLength.js b/node_modules/es-abstract/2023/ToLength.js new file mode 100644 index 0000000000..0468c3e71f --- /dev/null +++ b/node_modules/es-abstract/2023/ToLength.js @@ -0,0 +1,12 @@ +'use strict'; + +var MAX_SAFE_INTEGER = require('../helpers/maxSafeInteger'); + +var ToIntegerOrInfinity = require('./ToIntegerOrInfinity'); + +module.exports = function ToLength(argument) { + var len = ToIntegerOrInfinity(argument); + if (len <= 0) { return 0; } // includes converting -0 to +0 + if (len > MAX_SAFE_INTEGER) { return MAX_SAFE_INTEGER; } + return len; +}; diff --git a/node_modules/es-abstract/2023/ToNumber.js b/node_modules/es-abstract/2023/ToNumber.js new file mode 100644 index 0000000000..c471ed4286 --- /dev/null +++ b/node_modules/es-abstract/2023/ToNumber.js @@ -0,0 +1,26 @@ +'use strict'; + +var GetIntrinsic = require('get-intrinsic'); + +var $TypeError = GetIntrinsic('%TypeError%'); +var $Number = GetIntrinsic('%Number%'); +var isPrimitive = require('../helpers/isPrimitive'); + +var ToPrimitive = require('./ToPrimitive'); +var StringToNumber = require('./StringToNumber'); + +// https://262.ecma-international.org/13.0/#sec-tonumber + +module.exports = function ToNumber(argument) { + var value = isPrimitive(argument) ? argument : ToPrimitive(argument, $Number); + if (typeof value === 'symbol') { + throw new $TypeError('Cannot convert a Symbol value to a number'); + } + if (typeof value === 'bigint') { + throw new $TypeError('Conversion from \'BigInt\' to \'number\' is not allowed.'); + } + if (typeof value === 'string') { + return StringToNumber(value); + } + return $Number(value); +}; diff --git a/node_modules/es-abstract/2023/ToNumeric.js b/node_modules/es-abstract/2023/ToNumeric.js new file mode 100644 index 0000000000..140adb3975 --- /dev/null +++ b/node_modules/es-abstract/2023/ToNumeric.js @@ -0,0 +1,21 @@ +'use strict'; + +var GetIntrinsic = require('get-intrinsic'); + +var $Number = GetIntrinsic('%Number%'); + +var isPrimitive = require('../helpers/isPrimitive'); + +var ToPrimitive = require('./ToPrimitive'); +var ToNumber = require('./ToNumber'); +var Type = require('./Type'); + +// https://262.ecma-international.org/11.0/#sec-tonumeric + +module.exports = function ToNumeric(argument) { + var primValue = isPrimitive(argument) ? argument : ToPrimitive(argument, $Number); + if (Type(primValue) === 'BigInt') { + return primValue; + } + return ToNumber(primValue); +}; diff --git a/node_modules/es-abstract/2023/ToObject.js b/node_modules/es-abstract/2023/ToObject.js new file mode 100644 index 0000000000..26a007cead --- /dev/null +++ b/node_modules/es-abstract/2023/ToObject.js @@ -0,0 +1,14 @@ +'use strict'; + +var GetIntrinsic = require('get-intrinsic'); + +var $Object = GetIntrinsic('%Object%'); + +var RequireObjectCoercible = require('./RequireObjectCoercible'); + +// https://262.ecma-international.org/6.0/#sec-toobject + +module.exports = function ToObject(value) { + RequireObjectCoercible(value); + return $Object(value); +}; diff --git a/node_modules/es-abstract/2023/ToPrimitive.js b/node_modules/es-abstract/2023/ToPrimitive.js new file mode 100644 index 0000000000..56bcf1aa9e --- /dev/null +++ b/node_modules/es-abstract/2023/ToPrimitive.js @@ -0,0 +1,12 @@ +'use strict'; + +var toPrimitive = require('es-to-primitive/es2015'); + +// https://262.ecma-international.org/6.0/#sec-toprimitive + +module.exports = function ToPrimitive(input) { + if (arguments.length > 1) { + return toPrimitive(input, arguments[1]); + } + return toPrimitive(input); +}; diff --git a/node_modules/es-abstract/2023/ToPropertyDescriptor.js b/node_modules/es-abstract/2023/ToPropertyDescriptor.js new file mode 100644 index 0000000000..53db874507 --- /dev/null +++ b/node_modules/es-abstract/2023/ToPropertyDescriptor.js @@ -0,0 +1,52 @@ +'use strict'; + +var has = require('has'); + +var GetIntrinsic = require('get-intrinsic'); + +var $TypeError = GetIntrinsic('%TypeError%'); + +var Type = require('./Type'); +var ToBoolean = require('./ToBoolean'); +var IsCallable = require('./IsCallable'); + +// https://262.ecma-international.org/5.1/#sec-8.10.5 + +module.exports = function ToPropertyDescriptor(Obj) { + if (Type(Obj) !== 'Object') { + throw new $TypeError('ToPropertyDescriptor requires an object'); + } + + var desc = {}; + if (has(Obj, 'enumerable')) { + desc['[[Enumerable]]'] = ToBoolean(Obj.enumerable); + } + if (has(Obj, 'configurable')) { + desc['[[Configurable]]'] = ToBoolean(Obj.configurable); + } + if (has(Obj, 'value')) { + desc['[[Value]]'] = Obj.value; + } + if (has(Obj, 'writable')) { + desc['[[Writable]]'] = ToBoolean(Obj.writable); + } + if (has(Obj, 'get')) { + var getter = Obj.get; + if (typeof getter !== 'undefined' && !IsCallable(getter)) { + throw new $TypeError('getter must be a function'); + } + desc['[[Get]]'] = getter; + } + if (has(Obj, 'set')) { + var setter = Obj.set; + if (typeof setter !== 'undefined' && !IsCallable(setter)) { + throw new $TypeError('setter must be a function'); + } + desc['[[Set]]'] = setter; + } + + if ((has(desc, '[[Get]]') || has(desc, '[[Set]]')) && (has(desc, '[[Value]]') || has(desc, '[[Writable]]'))) { + throw new $TypeError('Invalid property descriptor. Cannot both specify accessors and a value or writable attribute'); + } + return desc; +}; diff --git a/node_modules/es-abstract/2023/ToPropertyKey.js b/node_modules/es-abstract/2023/ToPropertyKey.js new file mode 100644 index 0000000000..e363cd93b1 --- /dev/null +++ b/node_modules/es-abstract/2023/ToPropertyKey.js @@ -0,0 +1,15 @@ +'use strict'; + +var GetIntrinsic = require('get-intrinsic'); + +var $String = GetIntrinsic('%String%'); + +var ToPrimitive = require('./ToPrimitive'); +var ToString = require('./ToString'); + +// https://262.ecma-international.org/6.0/#sec-topropertykey + +module.exports = function ToPropertyKey(argument) { + var key = ToPrimitive(argument, $String); + return typeof key === 'symbol' ? key : ToString(key); +}; diff --git a/node_modules/es-abstract/2023/ToString.js b/node_modules/es-abstract/2023/ToString.js new file mode 100644 index 0000000000..d86aed4ce8 --- /dev/null +++ b/node_modules/es-abstract/2023/ToString.js @@ -0,0 +1,15 @@ +'use strict'; + +var GetIntrinsic = require('get-intrinsic'); + +var $String = GetIntrinsic('%String%'); +var $TypeError = GetIntrinsic('%TypeError%'); + +// https://262.ecma-international.org/6.0/#sec-tostring + +module.exports = function ToString(argument) { + if (typeof argument === 'symbol') { + throw new $TypeError('Cannot convert a Symbol value to a string'); + } + return $String(argument); +}; diff --git a/node_modules/es-abstract/2023/ToUint16.js b/node_modules/es-abstract/2023/ToUint16.js new file mode 100644 index 0000000000..744ed6c85d --- /dev/null +++ b/node_modules/es-abstract/2023/ToUint16.js @@ -0,0 +1,21 @@ +'use strict'; + +var modulo = require('./modulo'); +var ToNumber = require('./ToNumber'); +var truncate = require('./truncate'); + +var isFinite = require('../helpers/isFinite'); + +// https://262.ecma-international.org/14.0/#sec-touint16 + +var two16 = 0x10000; // Math.pow(2, 16) + +module.exports = function ToUint16(argument) { + var number = ToNumber(argument); + if (!isFinite(number) || number === 0) { + return 0; + } + var int = truncate(number); + var int16bit = modulo(int, two16); + return int16bit === 0 ? 0 : int16bit; // in the spec, these are math values, so we filter out -0 here +}; diff --git a/node_modules/es-abstract/2023/ToUint32.js b/node_modules/es-abstract/2023/ToUint32.js new file mode 100644 index 0000000000..7e4fae2b0a --- /dev/null +++ b/node_modules/es-abstract/2023/ToUint32.js @@ -0,0 +1,21 @@ +'use strict'; + +var modulo = require('./modulo'); +var ToNumber = require('./ToNumber'); +var truncate = require('./truncate'); + +var isFinite = require('../helpers/isFinite'); + +// https://262.ecma-international.org/14.0/#sec-touint32 + +var two32 = 0x100000000; // Math.pow(2, 32); + +module.exports = function ToUint32(argument) { + var number = ToNumber(argument); + if (!isFinite(number) || number === 0) { + return 0; + } + var int = truncate(number); + var int32bit = modulo(int, two32); + return int32bit === 0 ? 0 : int32bit; // in the spec, these are math values, so we filter out -0 here +}; diff --git a/node_modules/es-abstract/2023/ToUint8.js b/node_modules/es-abstract/2023/ToUint8.js new file mode 100644 index 0000000000..bacad8af72 --- /dev/null +++ b/node_modules/es-abstract/2023/ToUint8.js @@ -0,0 +1,19 @@ +'use strict'; + +var isFinite = require('../helpers/isFinite'); + +var modulo = require('./modulo'); +var ToNumber = require('./ToNumber'); +var truncate = require('./truncate'); + +// https://262.ecma-international.org/14.0/#sec-touint8 + +module.exports = function ToUint8(argument) { + var number = ToNumber(argument); + if (!isFinite(number) || number === 0) { + return 0; + } + var int = truncate(number); + var int8bit = modulo(int, 0x100); + return int8bit; +}; diff --git a/node_modules/es-abstract/2023/ToUint8Clamp.js b/node_modules/es-abstract/2023/ToUint8Clamp.js new file mode 100644 index 0000000000..3ba2fd7119 --- /dev/null +++ b/node_modules/es-abstract/2023/ToUint8Clamp.js @@ -0,0 +1,19 @@ +'use strict'; + +var ToNumber = require('./ToNumber'); +var floor = require('./floor'); + +var $isNaN = require('../helpers/isNaN'); + +// https://262.ecma-international.org/6.0/#sec-touint8clamp + +module.exports = function ToUint8Clamp(argument) { + var number = ToNumber(argument); + if ($isNaN(number) || number <= 0) { return 0; } + if (number >= 0xFF) { return 0xFF; } + var f = floor(number); + if (f + 0.5 < number) { return f + 1; } + if (number < f + 0.5) { return f; } + if (f % 2 !== 0) { return f + 1; } + return f; +}; diff --git a/node_modules/es-abstract/2023/ToZeroPaddedDecimalString.js b/node_modules/es-abstract/2023/ToZeroPaddedDecimalString.js new file mode 100644 index 0000000000..b74b74d2cc --- /dev/null +++ b/node_modules/es-abstract/2023/ToZeroPaddedDecimalString.js @@ -0,0 +1,20 @@ +'use strict'; + +var GetIntrinsic = require('get-intrinsic'); + +var $String = GetIntrinsic('%String%'); +var $RangeError = GetIntrinsic('%RangeError%'); + +var StringPad = require('./StringPad'); + +var isInteger = require('../helpers/isInteger'); + +// https://262.ecma-international.org/13.0/#sec-tozeropaddeddecimalstring + +module.exports = function ToZeroPaddedDecimalString(n, minLength) { + if (!isInteger(n) || n < 0) { + throw new $RangeError('Assertion failed: `q` must be a non-negative integer'); + } + var S = $String(n); + return StringPad(S, minLength, '0', 'start'); +}; diff --git a/node_modules/es-abstract/2023/TrimString.js b/node_modules/es-abstract/2023/TrimString.js new file mode 100644 index 0000000000..113dcf82b8 --- /dev/null +++ b/node_modules/es-abstract/2023/TrimString.js @@ -0,0 +1,29 @@ +'use strict'; + +var trimStart = require('string.prototype.trimstart'); +var trimEnd = require('string.prototype.trimend'); + +var GetIntrinsic = require('get-intrinsic'); + +var $TypeError = GetIntrinsic('%TypeError%'); + +var RequireObjectCoercible = require('./RequireObjectCoercible'); +var ToString = require('./ToString'); + +// https://262.ecma-international.org/10.0/#sec-trimstring + +module.exports = function TrimString(string, where) { + var str = RequireObjectCoercible(string); + var S = ToString(str); + var T; + if (where === 'start') { + T = trimStart(S); + } else if (where === 'end') { + T = trimEnd(S); + } else if (where === 'start+end') { + T = trimStart(trimEnd(S)); + } else { + throw new $TypeError('Assertion failed: invalid `where` value; must be "start", "end", or "start+end"'); + } + return T; +}; diff --git a/node_modules/es-abstract/2023/Type.js b/node_modules/es-abstract/2023/Type.js new file mode 100644 index 0000000000..555ca74ea5 --- /dev/null +++ b/node_modules/es-abstract/2023/Type.js @@ -0,0 +1,15 @@ +'use strict'; + +var ES5Type = require('../5/Type'); + +// https://262.ecma-international.org/11.0/#sec-ecmascript-data-types-and-values + +module.exports = function Type(x) { + if (typeof x === 'symbol') { + return 'Symbol'; + } + if (typeof x === 'bigint') { + return 'BigInt'; + } + return ES5Type(x); +}; diff --git a/node_modules/es-abstract/2023/TypedArrayCreate.js b/node_modules/es-abstract/2023/TypedArrayCreate.js new file mode 100644 index 0000000000..ef9fbe2599 --- /dev/null +++ b/node_modules/es-abstract/2023/TypedArrayCreate.js @@ -0,0 +1,50 @@ +'use strict'; + +var GetIntrinsic = require('get-intrinsic'); + +var $SyntaxError = GetIntrinsic('%SyntaxError%'); +var $TypeError = GetIntrinsic('%TypeError%'); + +var IsArray = require('./IsArray'); +var IsConstructor = require('./IsConstructor'); +var Type = require('./Type'); +var ValidateTypedArray = require('./ValidateTypedArray'); + +var availableTypedArrays = require('available-typed-arrays')(); +var typedArrayLength = require('typed-array-length'); + +// https://262.ecma-international.org/7.0/#typedarray-create + +module.exports = function TypedArrayCreate(constructor, argumentList) { + if (!IsConstructor(constructor)) { + throw new $TypeError('Assertion failed: `constructor` must be a constructor'); + } + if (!IsArray(argumentList)) { + throw new $TypeError('Assertion failed: `argumentList` must be a List'); + } + if (availableTypedArrays.length === 0) { + throw new $SyntaxError('Assertion failed: Typed Arrays are not supported in this environment'); + } + + // var newTypedArray = Construct(constructor, argumentList); // step 1 + var newTypedArray; + if (argumentList.length === 0) { + newTypedArray = new constructor(); + } else if (argumentList.length === 1) { + newTypedArray = new constructor(argumentList[0]); + } else if (argumentList.length === 2) { + newTypedArray = new constructor(argumentList[0], argumentList[1]); + } else { + newTypedArray = new constructor(argumentList[0], argumentList[1], argumentList[2]); + } + + ValidateTypedArray(newTypedArray); // step 2 + + if (argumentList.length === 1 && Type(argumentList[0]) === 'Number') { // step 3 + if (typedArrayLength(newTypedArray) < argumentList[0]) { + throw new $TypeError('Assertion failed: `argumentList[0]` must be <= `newTypedArray.length`'); // step 3.a + } + } + + return newTypedArray; // step 4 +}; diff --git a/node_modules/es-abstract/2023/TypedArrayCreateSameType.js b/node_modules/es-abstract/2023/TypedArrayCreateSameType.js new file mode 100644 index 0000000000..bf93d2d14c --- /dev/null +++ b/node_modules/es-abstract/2023/TypedArrayCreateSameType.js @@ -0,0 +1,37 @@ +'use strict'; + +var GetIntrinsic = require('get-intrinsic'); + +var $SyntaxError = GetIntrinsic('%SyntaxError%'); +var $TypeError = GetIntrinsic('%TypeError%'); + +var whichTypedArray = require('which-typed-array'); +var availableTypedArrays = require('available-typed-arrays')(); + +var IsArray = require('./IsArray'); +var TypedArrayCreate = require('./TypedArrayCreate'); + +var getConstructor = require('../helpers/typedArrayContructors'); + +// https://262.ecma-international.org/14.0/#sec-typedarray-create-same-type + +module.exports = function TypedArrayCreateSameType(exemplar, argumentList) { + if (availableTypedArrays.length === 0) { + throw new $SyntaxError('Assertion failed: Typed Arrays are not supported in this environment'); + } + + var kind = whichTypedArray(exemplar); + if (!kind) { + throw new $TypeError('Assertion failed: exemplar must be a TypedArray'); // step 1 + } + if (!IsArray(argumentList)) { + throw new $TypeError('Assertion failed: `argumentList` must be a List'); // step 1 + } + + var constructor = getConstructor(kind); // step 2 + if (typeof constructor !== 'function') { + throw new $SyntaxError('Assertion failed: `constructor` of `exemplar` (' + kind + ') must exist. Please report this!'); + } + + return TypedArrayCreate(constructor, argumentList); // steps 3 - 6 +}; diff --git a/node_modules/es-abstract/2023/TypedArrayElementSize.js b/node_modules/es-abstract/2023/TypedArrayElementSize.js new file mode 100644 index 0000000000..4f2917ee64 --- /dev/null +++ b/node_modules/es-abstract/2023/TypedArrayElementSize.js @@ -0,0 +1,40 @@ +'use strict'; + +var GetIntrinsic = require('get-intrinsic'); + +var $SyntaxError = GetIntrinsic('%SyntaxError%'); +var $TypeError = GetIntrinsic('%TypeError%'); + +var isInteger = require('../helpers/isInteger'); + +var whichTypedArray = require('which-typed-array'); + +// https://262.ecma-international.org/13.0/#sec-typedarrayelementsize + +var table71 = { + __proto__: null, + $Int8Array: 1, + $Uint8Array: 1, + $Uint8ClampedArray: 1, + $Int16Array: 2, + $Uint16Array: 2, + $Int32Array: 4, + $Uint32Array: 4, + $BigInt64Array: 8, + $BigUint64Array: 8, + $Float32Array: 4, + $Float64Array: 8 +}; + +module.exports = function TypedArrayElementSize(O) { + var type = whichTypedArray(O); + if (type === false) { + throw new $TypeError('Assertion failed: `O` must be a TypedArray'); + } + var size = table71['$' + type]; + if (!isInteger(size) || size < 0) { + throw new $SyntaxError('Assertion failed: Unknown TypedArray type `' + type + '`'); + } + + return size; +}; diff --git a/node_modules/es-abstract/2023/TypedArrayElementType.js b/node_modules/es-abstract/2023/TypedArrayElementType.js new file mode 100644 index 0000000000..d6d9e2b140 --- /dev/null +++ b/node_modules/es-abstract/2023/TypedArrayElementType.js @@ -0,0 +1,38 @@ +'use strict'; + +var GetIntrinsic = require('get-intrinsic'); + +var $SyntaxError = GetIntrinsic('%SyntaxError%'); +var $TypeError = GetIntrinsic('%TypeError%'); + +var whichTypedArray = require('which-typed-array'); + +// https://262.ecma-international.org/13.0/#sec-typedarrayelementtype + +var table71 = { + __proto__: null, + $Int8Array: 'Int8', + $Uint8Array: 'Uint8', + $Uint8ClampedArray: 'Uint8C', + $Int16Array: 'Int16', + $Uint16Array: 'Uint16', + $Int32Array: 'Int32', + $Uint32Array: 'Uint32', + $BigInt64Array: 'BigInt64', + $BigUint64Array: 'BigUint64', + $Float32Array: 'Float32', + $Float64Array: 'Float64' +}; + +module.exports = function TypedArrayElementType(O) { + var type = whichTypedArray(O); + if (type === false) { + throw new $TypeError('Assertion failed: `O` must be a TypedArray'); + } + var result = table71['$' + type]; + if (typeof result !== 'string') { + throw new $SyntaxError('Assertion failed: Unknown TypedArray type `' + type + '`'); + } + + return result; +}; diff --git a/node_modules/es-abstract/2023/TypedArraySpeciesCreate.js b/node_modules/es-abstract/2023/TypedArraySpeciesCreate.js new file mode 100644 index 0000000000..1cf8755acc --- /dev/null +++ b/node_modules/es-abstract/2023/TypedArraySpeciesCreate.js @@ -0,0 +1,39 @@ +'use strict'; + +var GetIntrinsic = require('get-intrinsic'); + +var $SyntaxError = GetIntrinsic('%SyntaxError%'); +var $TypeError = GetIntrinsic('%TypeError%'); + +var whichTypedArray = require('which-typed-array'); +var availableTypedArrays = require('available-typed-arrays')(); + +var IsArray = require('./IsArray'); +var SpeciesConstructor = require('./SpeciesConstructor'); +var TypedArrayCreate = require('./TypedArrayCreate'); + +var getConstructor = require('../helpers/typedArrayContructors'); + +// https://262.ecma-international.org/7.0/#typedarray-species-create + +module.exports = function TypedArraySpeciesCreate(exemplar, argumentList) { + if (availableTypedArrays.length === 0) { + throw new $SyntaxError('Assertion failed: Typed Arrays are not supported in this environment'); + } + + var kind = whichTypedArray(exemplar); + if (!kind) { + throw new $TypeError('Assertion failed: exemplar must be a TypedArray'); // step 1 + } + if (!IsArray(argumentList)) { + throw new $TypeError('Assertion failed: `argumentList` must be a List'); // step 1 + } + + var defaultConstructor = getConstructor(kind); // step 2 + if (typeof defaultConstructor !== 'function') { + throw new $SyntaxError('Assertion failed: `constructor` of `exemplar` (' + kind + ') must exist. Please report this!'); + } + var constructor = SpeciesConstructor(exemplar, defaultConstructor); // step 3 + + return TypedArrayCreate(constructor, argumentList); // step 4 +}; diff --git a/node_modules/es-abstract/2023/UTF16EncodeCodePoint.js b/node_modules/es-abstract/2023/UTF16EncodeCodePoint.js new file mode 100644 index 0000000000..0af67bc12e --- /dev/null +++ b/node_modules/es-abstract/2023/UTF16EncodeCodePoint.js @@ -0,0 +1,25 @@ +'use strict'; + +var GetIntrinsic = require('get-intrinsic'); + +var $TypeError = GetIntrinsic('%TypeError%'); +var $fromCharCode = GetIntrinsic('%String.fromCharCode%'); + +var floor = require('./floor'); +var modulo = require('./modulo'); + +var isCodePoint = require('../helpers/isCodePoint'); + +// https://262.ecma-international.org/12.0/#sec-utf16encoding + +module.exports = function UTF16EncodeCodePoint(cp) { + if (!isCodePoint(cp)) { + throw new $TypeError('Assertion failed: `cp` must be >= 0 and <= 0x10FFFF'); + } + if (cp <= 65535) { + return $fromCharCode(cp); + } + var cu1 = $fromCharCode(floor((cp - 65536) / 1024) + 0xD800); + var cu2 = $fromCharCode(modulo(cp - 65536, 1024) + 0xDC00); + return cu1 + cu2; +}; diff --git a/node_modules/es-abstract/2023/UTF16SurrogatePairToCodePoint.js b/node_modules/es-abstract/2023/UTF16SurrogatePairToCodePoint.js new file mode 100644 index 0000000000..6a247a239d --- /dev/null +++ b/node_modules/es-abstract/2023/UTF16SurrogatePairToCodePoint.js @@ -0,0 +1,19 @@ +'use strict'; + +var GetIntrinsic = require('get-intrinsic'); + +var $TypeError = GetIntrinsic('%TypeError%'); +var $fromCharCode = GetIntrinsic('%String.fromCharCode%'); + +var isLeadingSurrogate = require('../helpers/isLeadingSurrogate'); +var isTrailingSurrogate = require('../helpers/isTrailingSurrogate'); + +// https://tc39.es/ecma262/2020/#sec-utf16decodesurrogatepair + +module.exports = function UTF16SurrogatePairToCodePoint(lead, trail) { + if (!isLeadingSurrogate(lead) || !isTrailingSurrogate(trail)) { + throw new $TypeError('Assertion failed: `lead` must be a leading surrogate char code, and `trail` must be a trailing surrogate char code'); + } + // var cp = (lead - 0xD800) * 0x400 + (trail - 0xDC00) + 0x10000; + return $fromCharCode(lead) + $fromCharCode(trail); +}; diff --git a/node_modules/es-abstract/2023/UnicodeEscape.js b/node_modules/es-abstract/2023/UnicodeEscape.js new file mode 100644 index 0000000000..b708c90df0 --- /dev/null +++ b/node_modules/es-abstract/2023/UnicodeEscape.js @@ -0,0 +1,27 @@ +'use strict'; + +var GetIntrinsic = require('get-intrinsic'); + +var $TypeError = GetIntrinsic('%TypeError%'); + +var callBound = require('call-bind/callBound'); + +var $charCodeAt = callBound('String.prototype.charCodeAt'); +var $numberToString = callBound('Number.prototype.toString'); +var $toLowerCase = callBound('String.prototype.toLowerCase'); + +var StringPad = require('./StringPad'); + +// https://262.ecma-international.org/11.0/#sec-unicodeescape + +module.exports = function UnicodeEscape(C) { + if (typeof C !== 'string' || C.length !== 1) { + throw new $TypeError('Assertion failed: `C` must be a single code unit'); + } + var n = $charCodeAt(C, 0); + if (n > 0xFFFF) { + throw new $TypeError('`Assertion failed: numeric value of `C` must be <= 0xFFFF'); + } + + return '\\u' + StringPad($toLowerCase($numberToString(n, 16)), 4, '0', 'start'); +}; diff --git a/node_modules/es-abstract/2023/ValidateAndApplyPropertyDescriptor.js b/node_modules/es-abstract/2023/ValidateAndApplyPropertyDescriptor.js new file mode 100644 index 0000000000..c67d785607 --- /dev/null +++ b/node_modules/es-abstract/2023/ValidateAndApplyPropertyDescriptor.js @@ -0,0 +1,177 @@ +'use strict'; + +var GetIntrinsic = require('get-intrinsic'); + +var $TypeError = GetIntrinsic('%TypeError%'); + +var DefineOwnProperty = require('../helpers/DefineOwnProperty'); +var isFullyPopulatedPropertyDescriptor = require('../helpers/isFullyPopulatedPropertyDescriptor'); +var isPropertyDescriptor = require('../helpers/isPropertyDescriptor'); + +var FromPropertyDescriptor = require('./FromPropertyDescriptor'); +var IsAccessorDescriptor = require('./IsAccessorDescriptor'); +var IsDataDescriptor = require('./IsDataDescriptor'); +var IsGenericDescriptor = require('./IsGenericDescriptor'); +var IsPropertyKey = require('./IsPropertyKey'); +var SameValue = require('./SameValue'); +var Type = require('./Type'); + +// https://262.ecma-international.org/13.0/#sec-validateandapplypropertydescriptor + +// see https://github.com/tc39/ecma262/pull/2468 for ES2022 changes + +// eslint-disable-next-line max-lines-per-function, max-statements +module.exports = function ValidateAndApplyPropertyDescriptor(O, P, extensible, Desc, current) { + var oType = Type(O); + if (oType !== 'Undefined' && oType !== 'Object') { + throw new $TypeError('Assertion failed: O must be undefined or an Object'); + } + if (!IsPropertyKey(P)) { + throw new $TypeError('Assertion failed: P must be a Property Key'); + } + if (Type(extensible) !== 'Boolean') { + throw new $TypeError('Assertion failed: extensible must be a Boolean'); + } + if (!isPropertyDescriptor({ + Type: Type, + IsDataDescriptor: IsDataDescriptor, + IsAccessorDescriptor: IsAccessorDescriptor + }, Desc)) { + throw new $TypeError('Assertion failed: Desc must be a Property Descriptor'); + } + if (Type(current) !== 'Undefined' && !isPropertyDescriptor({ + Type: Type, + IsDataDescriptor: IsDataDescriptor, + IsAccessorDescriptor: IsAccessorDescriptor + }, current)) { + throw new $TypeError('Assertion failed: current must be a Property Descriptor, or undefined'); + } + + if (Type(current) === 'Undefined') { // step 2 + if (!extensible) { + return false; // step 2.a + } + if (oType === 'Undefined') { + return true; // step 2.b + } + if (IsAccessorDescriptor(Desc)) { // step 2.c + return DefineOwnProperty( + IsDataDescriptor, + SameValue, + FromPropertyDescriptor, + O, + P, + Desc + ); + } + // step 2.d + return DefineOwnProperty( + IsDataDescriptor, + SameValue, + FromPropertyDescriptor, + O, + P, + { + '[[Configurable]]': !!Desc['[[Configurable]]'], + '[[Enumerable]]': !!Desc['[[Enumerable]]'], + '[[Value]]': Desc['[[Value]]'], + '[[Writable]]': !!Desc['[[Writable]]'] + } + ); + } + + // 3. Assert: current is a fully populated Property Descriptor. + if (!isFullyPopulatedPropertyDescriptor({ + IsAccessorDescriptor: IsAccessorDescriptor, + IsDataDescriptor: IsDataDescriptor + }, current)) { + throw new $TypeError('`current`, when present, must be a fully populated and valid Property Descriptor'); + } + + // 4. If every field in Desc is absent, return true. + // this can't really match the assertion that it's a Property Descriptor in our JS implementation + + // 5. If current.[[Configurable]] is false, then + if (!current['[[Configurable]]']) { + if ('[[Configurable]]' in Desc && Desc['[[Configurable]]']) { + // step 5.a + return false; + } + if ('[[Enumerable]]' in Desc && !SameValue(Desc['[[Enumerable]]'], current['[[Enumerable]]'])) { + // step 5.b + return false; + } + if (!IsGenericDescriptor(Desc) && !SameValue(IsAccessorDescriptor(Desc), IsAccessorDescriptor(current))) { + // step 5.c + return false; + } + if (IsAccessorDescriptor(current)) { // step 5.d + if ('[[Get]]' in Desc && !SameValue(Desc['[[Get]]'], current['[[Get]]'])) { + return false; + } + if ('[[Set]]' in Desc && !SameValue(Desc['[[Set]]'], current['[[Set]]'])) { + return false; + } + } else if (!current['[[Writable]]']) { // step 5.e + if ('[[Writable]]' in Desc && Desc['[[Writable]]']) { + return false; + } + if ('[[Value]]' in Desc && !SameValue(Desc['[[Value]]'], current['[[Value]]'])) { + return false; + } + } + } + + // 6. If O is not undefined, then + if (oType !== 'Undefined') { + var configurable; + var enumerable; + if (IsDataDescriptor(current) && IsAccessorDescriptor(Desc)) { // step 6.a + configurable = ('[[Configurable]]' in Desc ? Desc : current)['[[Configurable]]']; + enumerable = ('[[Enumerable]]' in Desc ? Desc : current)['[[Enumerable]]']; + // Replace the property named P of object O with an accessor property having [[Configurable]] and [[Enumerable]] attributes as described by current and each other attribute set to its default value. + return DefineOwnProperty( + IsDataDescriptor, + SameValue, + FromPropertyDescriptor, + O, + P, + { + '[[Configurable]]': !!configurable, + '[[Enumerable]]': !!enumerable, + '[[Get]]': ('[[Get]]' in Desc ? Desc : current)['[[Get]]'], + '[[Set]]': ('[[Set]]' in Desc ? Desc : current)['[[Set]]'] + } + ); + } else if (IsAccessorDescriptor(current) && IsDataDescriptor(Desc)) { + configurable = ('[[Configurable]]' in Desc ? Desc : current)['[[Configurable]]']; + enumerable = ('[[Enumerable]]' in Desc ? Desc : current)['[[Enumerable]]']; + // i. Replace the property named P of object O with a data property having [[Configurable]] and [[Enumerable]] attributes as described by current and each other attribute set to its default value. + return DefineOwnProperty( + IsDataDescriptor, + SameValue, + FromPropertyDescriptor, + O, + P, + { + '[[Configurable]]': !!configurable, + '[[Enumerable]]': !!enumerable, + '[[Value]]': ('[[Value]]' in Desc ? Desc : current)['[[Value]]'], + '[[Writable]]': !!('[[Writable]]' in Desc ? Desc : current)['[[Writable]]'] + } + ); + } + + // For each field of Desc that is present, set the corresponding attribute of the property named P of object O to the value of the field. + return DefineOwnProperty( + IsDataDescriptor, + SameValue, + FromPropertyDescriptor, + O, + P, + Desc + ); + } + + return true; // step 7 +}; diff --git a/node_modules/es-abstract/2023/ValidateAtomicAccess.js b/node_modules/es-abstract/2023/ValidateAtomicAccess.js new file mode 100644 index 0000000000..914525bcd5 --- /dev/null +++ b/node_modules/es-abstract/2023/ValidateAtomicAccess.js @@ -0,0 +1,42 @@ +'use strict'; + +var GetIntrinsic = require('get-intrinsic'); + +var $RangeError = GetIntrinsic('%RangeError%'); +var $TypeError = GetIntrinsic('%TypeError%'); + +var ToIndex = require('./ToIndex'); +var TypedArrayElementSize = require('./TypedArrayElementSize'); + +var isTypedArray = require('is-typed-array'); +var typedArrayByteOffset = require('typed-array-byte-offset'); +var typedArrayLength = require('typed-array-length'); + +// https://262.ecma-international.org/13.0/#sec-validateatomicaccess + +module.exports = function ValidateAtomicAccess(typedArray, requestIndex) { + if (!isTypedArray(typedArray)) { + throw new $TypeError('Assertion failed: `typedArray` must be a TypedArray'); + } + + var length = typedArrayLength(typedArray); // step 1 + + var accessIndex = ToIndex(requestIndex); // step 2 + + /* + // this assertion can never be reached + if (!(accessIndex >= 0)) { + throw new $TypeError('Assertion failed: accessIndex >= 0'); // step 4 + } + */ + + if (accessIndex >= length) { + throw new $RangeError('index out of range'); // step 4 + } + + var elementSize = TypedArrayElementSize(typedArray); // step 5 + + var offset = typedArrayByteOffset(typedArray); // step 6 + + return (accessIndex * elementSize) + offset; // step 7 +}; diff --git a/node_modules/es-abstract/2023/ValidateIntegerTypedArray.js b/node_modules/es-abstract/2023/ValidateIntegerTypedArray.js new file mode 100644 index 0000000000..c9c8249c6a --- /dev/null +++ b/node_modules/es-abstract/2023/ValidateIntegerTypedArray.js @@ -0,0 +1,39 @@ +'use strict'; + +var GetIntrinsic = require('get-intrinsic'); + +var $TypeError = GetIntrinsic('%TypeError%'); + +var IsBigIntElementType = require('./IsBigIntElementType'); +var IsUnclampedIntegerElementType = require('./IsUnclampedIntegerElementType'); +var Type = require('./Type'); +var TypedArrayElementType = require('./TypedArrayElementType'); +var ValidateTypedArray = require('./ValidateTypedArray'); + +var whichTypedArray = require('which-typed-array'); + +// https://262.ecma-international.org/13.0/#sec-validateintegertypedarray + +module.exports = function ValidateIntegerTypedArray(typedArray) { + var waitable = arguments.length > 1 ? arguments[1] : false; // step 1 + + if (Type(waitable) !== 'Boolean') { + throw new $TypeError('Assertion failed: `waitable` must be a Boolean'); + } + + var buffer = ValidateTypedArray(typedArray); // step 2 + + if (waitable) { // step 5 + var typeName = whichTypedArray(typedArray); + if (typeName !== 'Int32Array' && typeName !== 'BigInt64Array') { + throw new $TypeError('Assertion failed: `typedArray` must be an Int32Array or BigInt64Array when `waitable` is true'); // step 5.a + } + } else { + var type = TypedArrayElementType(typedArray); // step 5.a + if (!IsUnclampedIntegerElementType(type) && !IsBigIntElementType(type)) { + throw new $TypeError('Assertion failed: `typedArray` must be an integer TypedArray'); // step 5.b + } + } + + return buffer; // step 6 +}; diff --git a/node_modules/es-abstract/2023/ValidateTypedArray.js b/node_modules/es-abstract/2023/ValidateTypedArray.js new file mode 100644 index 0000000000..c7aa313938 --- /dev/null +++ b/node_modules/es-abstract/2023/ValidateTypedArray.js @@ -0,0 +1,30 @@ +'use strict'; + +var GetIntrinsic = require('get-intrinsic'); + +var $TypeError = GetIntrinsic('%TypeError%'); + +var callBound = require('call-bind/callBound'); +var $taSome = callBound('TypedArray.prototype.some', true); + +var Type = require('./Type'); + +var isTypedArray = require('is-typed-array'); + +// https://262.ecma-international.org/6.0/#sec-validatetypedarray + +module.exports = function ValidateTypedArray(O) { + if (Type(O) !== 'Object') { + throw new $TypeError('Assertion failed: O must be an Object'); + } + if (!isTypedArray(O)) { + throw new $TypeError('Assertion failed: O must be a TypedArray'); + } + + // without `.some` (like in node 0.10), there's no way to check buffer detachment, but also no way to be detached + if ($taSome) { + $taSome(O, function () { return true; }); + } + + return O.buffer; +}; diff --git a/node_modules/es-abstract/2023/WeakRefDeref.js b/node_modules/es-abstract/2023/WeakRefDeref.js new file mode 100644 index 0000000000..6b9921f37b --- /dev/null +++ b/node_modules/es-abstract/2023/WeakRefDeref.js @@ -0,0 +1,24 @@ +'use strict'; + +var GetIntrinsic = require('get-intrinsic'); +var callBound = require('call-bind/callBound'); + +var $TypeError = GetIntrinsic('%TypeError%'); +var $deref = callBound('WeakRef.prototype.deref', true); + +var isWeakRef = require('is-weakref'); + +var AddToKeptObjects = require('./AddToKeptObjects'); + +// https://262.ecma-international.org/12.0/#sec-weakrefderef + +module.exports = function WeakRefDeref(weakRef) { + if (!isWeakRef(weakRef)) { + throw new $TypeError('Assertion failed: `weakRef` must be a WeakRef'); + } + var target = $deref(weakRef); + if (target) { + AddToKeptObjects(target); + } + return target; +}; diff --git a/node_modules/es-abstract/2023/WeekDay.js b/node_modules/es-abstract/2023/WeekDay.js new file mode 100644 index 0000000000..17cf94ca34 --- /dev/null +++ b/node_modules/es-abstract/2023/WeekDay.js @@ -0,0 +1,10 @@ +'use strict'; + +var Day = require('./Day'); +var modulo = require('./modulo'); + +// https://262.ecma-international.org/5.1/#sec-15.9.1.6 + +module.exports = function WeekDay(t) { + return modulo(Day(t) + 4, 7); +}; diff --git a/node_modules/es-abstract/2023/WordCharacters.js b/node_modules/es-abstract/2023/WordCharacters.js new file mode 100644 index 0000000000..b7cfa55705 --- /dev/null +++ b/node_modules/es-abstract/2023/WordCharacters.js @@ -0,0 +1,48 @@ +'use strict'; + +var GetIntrinsic = require('get-intrinsic'); + +var $TypeError = GetIntrinsic('%TypeError%'); + +var callBound = require('call-bind/callBound'); +var $indexOf = callBound('String.prototype.indexOf', true); + +var Canonicalize = require('./Canonicalize'); +var Type = require('./Type'); + +var assertRecord = require('../helpers/assertRecord'); +var caseFolding = require('../helpers/caseFolding'); +var forEach = require('../helpers/forEach'); +var OwnPropertyKeys = require('../helpers/OwnPropertyKeys'); + +var basicWordChars = 'abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789_'; // step 1 + +// https://262.ecma-international.org/14.0/#sec-runtime-semantics-wordcharacters-abstract-operation + +module.exports = function WordCharacters(rer) { + assertRecord(Type, 'RegExp Record', 'rer', rer); + + var extraWordChars = ''; + forEach(OwnPropertyKeys(caseFolding.C), function (c) { + if ( + $indexOf(basicWordChars, c) === -1 // c not in A + && $indexOf(basicWordChars, Canonicalize(rer, c)) > -1 // canonicalized c IS in A + ) { + extraWordChars += caseFolding.C[c]; // step 3 + } + }); + forEach(OwnPropertyKeys(caseFolding.S), function (c) { + if ( + $indexOf(basicWordChars, c) === -1 // c not in A + && $indexOf(basicWordChars, Canonicalize(rer, c)) > -1 // canonicalized c IS in A + ) { + extraWordChars += caseFolding.S[c]; // step 3 + } + }); + + if ((!rer['[[Unicode]]'] || !rer['[[IgnoreCase]]']) && extraWordChars.length > 0) { + throw new $TypeError('Assertion failed: `extraWordChars` must be empty when `rer.[[IgnoreCase]]` and `rer.[[Unicode]]` are not both true'); // step 3 + } + + return basicWordChars + extraWordChars; // step 4 +}; diff --git a/node_modules/es-abstract/2023/YearFromTime.js b/node_modules/es-abstract/2023/YearFromTime.js new file mode 100644 index 0000000000..be06ecbc36 --- /dev/null +++ b/node_modules/es-abstract/2023/YearFromTime.js @@ -0,0 +1,16 @@ +'use strict'; + +var GetIntrinsic = require('get-intrinsic'); + +var $Date = GetIntrinsic('%Date%'); + +var callBound = require('call-bind/callBound'); + +var $getUTCFullYear = callBound('Date.prototype.getUTCFullYear'); + +// https://262.ecma-international.org/5.1/#sec-15.9.1.3 + +module.exports = function YearFromTime(t) { + // largest y such that this.TimeFromYear(y) <= t + return $getUTCFullYear(new $Date(t)); +}; diff --git a/node_modules/es-abstract/2023/abs.js b/node_modules/es-abstract/2023/abs.js new file mode 100644 index 0000000000..8bc45434da --- /dev/null +++ b/node_modules/es-abstract/2023/abs.js @@ -0,0 +1,11 @@ +'use strict'; + +var GetIntrinsic = require('get-intrinsic'); + +var $abs = GetIntrinsic('%Math.abs%'); + +// http://262.ecma-international.org/5.1/#sec-5.2 + +module.exports = function abs(x) { + return $abs(x); +}; diff --git a/node_modules/es-abstract/2023/clamp.js b/node_modules/es-abstract/2023/clamp.js new file mode 100644 index 0000000000..8da1394845 --- /dev/null +++ b/node_modules/es-abstract/2023/clamp.js @@ -0,0 +1,18 @@ +'use strict'; + +var GetIntrinsic = require('get-intrinsic'); + +var $TypeError = GetIntrinsic('%TypeError%'); +var max = GetIntrinsic('%Math.max%'); +var min = GetIntrinsic('%Math.min%'); + +var Type = require('./Type'); + +// https://262.ecma-international.org/12.0/#clamping + +module.exports = function clamp(x, lower, upper) { + if (Type(x) !== 'Number' || Type(lower) !== 'Number' || Type(upper) !== 'Number' || !(lower <= upper)) { + throw new $TypeError('Assertion failed: all three arguments must be MVs, and `lower` must be `<= upper`'); + } + return min(max(lower, x), upper); +}; diff --git a/node_modules/es-abstract/2023/floor.js b/node_modules/es-abstract/2023/floor.js new file mode 100644 index 0000000000..625548e936 --- /dev/null +++ b/node_modules/es-abstract/2023/floor.js @@ -0,0 +1,16 @@ +'use strict'; + +var Type = require('./Type'); + +// var modulo = require('./modulo'); +var $floor = Math.floor; + +// http://262.ecma-international.org/11.0/#eqn-floor + +module.exports = function floor(x) { + // return x - modulo(x, 1); + if (Type(x) === 'BigInt') { + return x; + } + return $floor(x); +}; diff --git a/node_modules/es-abstract/2023/max.js b/node_modules/es-abstract/2023/max.js new file mode 100644 index 0000000000..b919d4e836 --- /dev/null +++ b/node_modules/es-abstract/2023/max.js @@ -0,0 +1,7 @@ +'use strict'; + +var GetIntrinsic = require('get-intrinsic'); + +// https://262.ecma-international.org/6.0/#sec-algorithm-conventions + +module.exports = GetIntrinsic('%Math.max%'); diff --git a/node_modules/es-abstract/2023/min.js b/node_modules/es-abstract/2023/min.js new file mode 100644 index 0000000000..909de4b0e5 --- /dev/null +++ b/node_modules/es-abstract/2023/min.js @@ -0,0 +1,7 @@ +'use strict'; + +var GetIntrinsic = require('get-intrinsic'); + +// https://262.ecma-international.org/6.0/#sec-algorithm-conventions + +module.exports = GetIntrinsic('%Math.min%'); diff --git a/node_modules/es-abstract/2023/modulo.js b/node_modules/es-abstract/2023/modulo.js new file mode 100644 index 0000000000..b94bb52bb3 --- /dev/null +++ b/node_modules/es-abstract/2023/modulo.js @@ -0,0 +1,9 @@ +'use strict'; + +var mod = require('../helpers/mod'); + +// https://262.ecma-international.org/5.1/#sec-5.2 + +module.exports = function modulo(x, y) { + return mod(x, y); +}; diff --git a/node_modules/es-abstract/2023/msFromTime.js b/node_modules/es-abstract/2023/msFromTime.js new file mode 100644 index 0000000000..a6bae767ae --- /dev/null +++ b/node_modules/es-abstract/2023/msFromTime.js @@ -0,0 +1,11 @@ +'use strict'; + +var modulo = require('./modulo'); + +var msPerSecond = require('../helpers/timeConstants').msPerSecond; + +// https://262.ecma-international.org/5.1/#sec-15.9.1.10 + +module.exports = function msFromTime(t) { + return modulo(t, msPerSecond); +}; diff --git a/node_modules/es-abstract/2023/substring.js b/node_modules/es-abstract/2023/substring.js new file mode 100644 index 0000000000..0c7e0203d5 --- /dev/null +++ b/node_modules/es-abstract/2023/substring.js @@ -0,0 +1,21 @@ +'use strict'; + +var GetIntrinsic = require('get-intrinsic'); + +var $TypeError = GetIntrinsic('%TypeError%'); + +var Type = require('./Type'); + +var isInteger = require('../helpers/isInteger'); + +var callBound = require('call-bind/callBound'); + +var $slice = callBound('String.prototype.slice'); + +// https://262.ecma-international.org/12.0/#substring +module.exports = function substring(S, inclusiveStart, exclusiveEnd) { + if (Type(S) !== 'String' || !isInteger(inclusiveStart) || (arguments.length > 2 && !isInteger(exclusiveEnd))) { + throw new $TypeError('`S` must be a String, and `inclusiveStart` and `exclusiveEnd` must be integers'); + } + return $slice(S, inclusiveStart, arguments.length > 2 ? exclusiveEnd : S.length); +}; diff --git a/node_modules/es-abstract/2023/thisBigIntValue.js b/node_modules/es-abstract/2023/thisBigIntValue.js new file mode 100644 index 0000000000..d03b4a43c3 --- /dev/null +++ b/node_modules/es-abstract/2023/thisBigIntValue.js @@ -0,0 +1,22 @@ +'use strict'; + +var GetIntrinsic = require('get-intrinsic'); +var callBound = require('call-bind/callBound'); + +var $SyntaxError = GetIntrinsic('%SyntaxError%'); +var $bigIntValueOf = callBound('BigInt.prototype.valueOf', true); + +var Type = require('./Type'); + +// https://262.ecma-international.org/11.0/#sec-thisbigintvalue + +module.exports = function thisBigIntValue(value) { + var type = Type(value); + if (type === 'BigInt') { + return value; + } + if (!$bigIntValueOf) { + throw new $SyntaxError('BigInt is not supported'); + } + return $bigIntValueOf(value); +}; diff --git a/node_modules/es-abstract/2023/thisBooleanValue.js b/node_modules/es-abstract/2023/thisBooleanValue.js new file mode 100644 index 0000000000..e93a28ce47 --- /dev/null +++ b/node_modules/es-abstract/2023/thisBooleanValue.js @@ -0,0 +1,15 @@ +'use strict'; + +var $BooleanValueOf = require('call-bind/callBound')('Boolean.prototype.valueOf'); + +var Type = require('./Type'); + +// https://262.ecma-international.org/6.0/#sec-properties-of-the-boolean-prototype-object + +module.exports = function thisBooleanValue(value) { + if (Type(value) === 'Boolean') { + return value; + } + + return $BooleanValueOf(value); +}; diff --git a/node_modules/es-abstract/2023/thisNumberValue.js b/node_modules/es-abstract/2023/thisNumberValue.js new file mode 100644 index 0000000000..03580df26f --- /dev/null +++ b/node_modules/es-abstract/2023/thisNumberValue.js @@ -0,0 +1,18 @@ +'use strict'; + +var callBound = require('call-bind/callBound'); + +var Type = require('./Type'); + +var $NumberValueOf = callBound('Number.prototype.valueOf'); + +// https://262.ecma-international.org/6.0/#sec-properties-of-the-number-prototype-object + +module.exports = function thisNumberValue(value) { + if (Type(value) === 'Number') { + return value; + } + + return $NumberValueOf(value); +}; + diff --git a/node_modules/es-abstract/2023/thisStringValue.js b/node_modules/es-abstract/2023/thisStringValue.js new file mode 100644 index 0000000000..c7bf3da70c --- /dev/null +++ b/node_modules/es-abstract/2023/thisStringValue.js @@ -0,0 +1,15 @@ +'use strict'; + +var $StringValueOf = require('call-bind/callBound')('String.prototype.valueOf'); + +var Type = require('./Type'); + +// https://262.ecma-international.org/6.0/#sec-properties-of-the-string-prototype-object + +module.exports = function thisStringValue(value) { + if (Type(value) === 'String') { + return value; + } + + return $StringValueOf(value); +}; diff --git a/node_modules/es-abstract/2023/thisSymbolValue.js b/node_modules/es-abstract/2023/thisSymbolValue.js new file mode 100644 index 0000000000..91a5525428 --- /dev/null +++ b/node_modules/es-abstract/2023/thisSymbolValue.js @@ -0,0 +1,19 @@ +'use strict'; + +var callBound = require('call-bind/callBound'); + +var $SymbolValueOf = callBound('Symbol.prototype.valueOf', true); + +var Type = require('./Type'); + +// https://262.ecma-international.org/9.0/#sec-thissymbolvalue + +module.exports = function thisSymbolValue(value) { + if (!$SymbolValueOf) { + throw new SyntaxError('Symbols are not supported; thisSymbolValue requires that `value` be a Symbol or a Symbol object'); + } + if (Type(value) === 'Symbol') { + return value; + } + return $SymbolValueOf(value); +}; diff --git a/node_modules/es-abstract/2023/thisTimeValue.js b/node_modules/es-abstract/2023/thisTimeValue.js new file mode 100644 index 0000000000..bd50ddd068 --- /dev/null +++ b/node_modules/es-abstract/2023/thisTimeValue.js @@ -0,0 +1,9 @@ +'use strict'; + +var $DateGetTime = require('call-bind/callBound')('Date.prototype.getTime'); + +// https://262.ecma-international.org/6.0/#sec-properties-of-the-date-prototype-object + +module.exports = function thisTimeValue(value) { + return $DateGetTime(value); +}; diff --git a/node_modules/es-abstract/2023/truncate.js b/node_modules/es-abstract/2023/truncate.js new file mode 100644 index 0000000000..3a58d73bec --- /dev/null +++ b/node_modules/es-abstract/2023/truncate.js @@ -0,0 +1,17 @@ +'use strict'; + +var GetIntrinsic = require('get-intrinsic'); + +var floor = require('./floor'); + +var $TypeError = GetIntrinsic('%TypeError%'); + +// https://262.ecma-international.org/14.0/#eqn-truncate + +module.exports = function truncate(x) { + if (typeof x !== 'number' && typeof x !== 'bigint') { + throw new $TypeError('argument must be a Number or a BigInt'); + } + var result = x < 0 ? -floor(-x) : floor(x); + return result === 0 ? 0 : result; // in the spec, these are math values, so we filter out -0 here +}; diff --git a/node_modules/es-abstract/5/Canonicalize.js b/node_modules/es-abstract/5/Canonicalize.js new file mode 100644 index 0000000000..5b8c3592c2 --- /dev/null +++ b/node_modules/es-abstract/5/Canonicalize.js @@ -0,0 +1,42 @@ +'use strict'; + +var GetIntrinsic = require('get-intrinsic'); + +var $TypeError = GetIntrinsic('%TypeError%'); + +var callBound = require('call-bind/callBound'); + +var $charCodeAt = callBound('String.prototype.charCodeAt'); +var $toUpperCase = callBound('String.prototype.toUpperCase'); + +var Type = require('./Type'); + +// https://262.ecma-international.org/5.1/#sec-15.10.2.8 + +module.exports = function Canonicalize(ch, IgnoreCase) { + if (Type(ch) !== 'String' || ch.length !== 1) { + throw new $TypeError('Assertion failed: `ch` must be a character'); + } + + if (Type(IgnoreCase) !== 'Boolean') { + throw new $TypeError('Assertion failed: `IgnoreCase` must be a Boolean'); + } + + if (!IgnoreCase) { + return ch; // step 1 + } + + var u = $toUpperCase(ch); // step 2 + + if (u.length !== 1) { + return ch; // step 3 + } + + var cu = u; // step 4 + + if ($charCodeAt(ch, 0) >= 128 && $charCodeAt(cu, 0) < 128) { + return ch; // step 5 + } + + return cu; +}; diff --git a/node_modules/es-abstract/5/ToNumber.js b/node_modules/es-abstract/5/ToNumber.js index 2bfc74ca2c..1e7507adb0 100644 --- a/node_modules/es-abstract/5/ToNumber.js +++ b/node_modules/es-abstract/5/ToNumber.js @@ -2,6 +2,14 @@ var ToPrimitive = require('./ToPrimitive'); +var callBound = require('call-bind/callBound'); + +var $replace = callBound('String.prototype.replace'); + +var safeRegexTester = require('safe-regex-test'); + +var isNonDecimal = safeRegexTester(/^0[ob]|^[+-]0x/); + // http://262.ecma-international.org/5.1/#sec-9.3 module.exports = function ToNumber(value) { @@ -10,9 +18,13 @@ module.exports = function ToNumber(value) { return +prim; // eslint-disable-line no-implicit-coercion } - // eslint-disable-next-line no-control-regex - var trimmed = prim.replace(/^[ \t\x0b\f\xa0\ufeff\n\r\u2028\u2029\u1680\u180e\u2000\u2001\u2002\u2003\u2004\u2005\u2006\u2007\u2008\u2009\u200a\u202f\u205f\u3000\u0085]+|[ \t\x0b\f\xa0\ufeff\n\r\u2028\u2029\u1680\u180e\u2000\u2001\u2002\u2003\u2004\u2005\u2006\u2007\u2008\u2009\u200a\u202f\u205f\u3000\u0085]+$/g, ''); - if ((/^0[ob]|^[+-]0x/).test(trimmed)) { + var trimmed = $replace( + prim, + // eslint-disable-next-line no-control-regex + /^[ \t\x0b\f\xa0\ufeff\n\r\u2028\u2029\u1680\u180e\u2000\u2001\u2002\u2003\u2004\u2005\u2006\u2007\u2008\u2009\u200a\u202f\u205f\u3000\u0085]+|[ \t\x0b\f\xa0\ufeff\n\r\u2028\u2029\u1680\u180e\u2000\u2001\u2002\u2003\u2004\u2005\u2006\u2007\u2008\u2009\u200a\u202f\u205f\u3000\u0085]+$/g, + '' + ); + if (isNonDecimal(trimmed)) { return NaN; } diff --git a/node_modules/es-abstract/CHANGELOG.md b/node_modules/es-abstract/CHANGELOG.md index cec3cdd4d5..e3bba36743 100644 --- a/node_modules/es-abstract/CHANGELOG.md +++ b/node_modules/es-abstract/CHANGELOG.md @@ -1,3 +1,84 @@ +1.22.1 / 2023-07-15 +================= + * [Deps] add missing `safe-array-concat` dep + +1.22.0 / 2023-07-15 +================= + * [New] add `ES2023` + * [New] `ES2021+`: add `SetTypedArrayFromArrayLike`, `SetTypedArrayFromTypedArray` + * [New] `ES2021`+: add `CloneArrayBuffer` + * [New] `ES2020`+: add `IsValidIntegerIndex` + * [New] `ES2015`+: add `GetValueFromBuffer`, `SetValueInBuffer` + * [New] `ES2016`+: add `TypedArrayCreate`, `TypedArraySpeciesCreate` + * [New] `ES2015`+: add `IsWordChar` + * [New] `ES2017`+ add `WordCharacters` + * [New] `ES2015`+: add `Canonicalize` + * [New] `ES2015`+: add `NewPromiseCapability` + * [Fix] `ES2017+`: `NumberToRawBytes`, `NumericToRawBytes`: reimplement Float64, fix integer scenarios + * [Refactor] add `helpers/isLineTerminator` + * [Refactor] add `isInteger` helper, and use it + * [Refactor] extract `isStringOrHole` to a helper + * [Refactor] `ES2017`+: `RawBytesToNumber`, `RawBytesToNumeric`: extract common code to helpers + * [Refactor] make a MAX_VALUE helper + * [Tests] fix RawBytesToNumeric tests in node v10.4-10.8 + * [Tests] fix buffer test cases in node v10.4-v10.8 + +1.21.3 / 2023-07-12 +================= + * [Fix] `ES2017+`: `RawBytesToNumber`, `RawBytesToNumeric`: properly handle some scenarios + * [Fix] `ES2015`+: `GetV`: the receiver is `V`, not `O` + * [Fix] `ES2017`+: `RawBytesToNumber`, `RawBytesToNumeric`: fix exponent calculation for Float64, improve tests + * [Fix] `ES2017`+: `RawBytesToNumber`, `RawBytesToNumeric`: fix logic, improve tests + * [Fix] `ES2019`+: `thisTimeValue`: fix spackling + * [Robustness] `ES2017`+: `NumberToRawBytes`, `NumericToRawBytes`: use `SameValue` instead of `Object.is` + * [Refactor] `ES2021`+: `ValidateAtomicAccess`: use `typed-array-byte-offset` + * [Refactor] `ES2019`+: `AddEntriesFromIterable`: use `ThrowCompletion` + * [patch] `ES2015`+: `ObjectDefineProperties`: satisfy TODO + * [patch] `ES2015`+: `GetV`: improve error message + * [patch] fix spec URLs + * [Deps] update `get-intrinsic`, `regexp.prototype.flags`, `which-typed-array` + * [actions] fix permissions + * [Tests] add buffer test case fixtures + tests + * [Tests] skip test that modifies the env in SES + * [Tests] fix regex flags tests for node 20 + * [Dev Deps] update `@ljharb/eslint-config`, `aud`, `available-regexp-flags`, `is-core-module`, `tape` + +1.21.2 / 2023-03-12 +================= + * [Fix] `ES2015`+: `CreateDataProperty`: use `OrdinaryDefineOwnProperty` + * [Fix] `ES2015`+: `CreateDataProperty`: use `OrdinaryDefineOwnProperty` + * [Fix] `ES2015`+: `GetPrototypeFromConstructor`: add missing assertion that `intrinsicDefaultProto` is an object + * [Fix] `ES2015`+: `IsDetachedBuffer`: ensure a nullish error does not crash + * [Fix] `ES2015`+: `ToDateString`: properly handle time values that aren’t "now" + * [Fix] `ES2015`+: `ToUint8Clamp`: avoid an extra observable ToNumber + * [Fix] `ES2015`+`: `GetMethod`: when `func` is not callable and `P` is a symbol, avoid the wrong TypeError + * [Fix] `ES2020`+: `ToBigInt`: properly throw on anything besides string, bigint, boolean + * [Fix] `ES2021`+: `SplitMatch`: instead of `false`, return `'not-matched'` + * [Fix] `helpers/assertRecord`: handle nullish input + * [Fix] `helpers/isFullyPopulatedPropertyDescriptor`: handle primitive inputs + * [Robustness] `ES5`: `ToNumber`: avoid relying on runtime `.test` and `.replace` + * [Refactor] `ES2015`: mark `IsDataDescriptor` and `IsAccessorDescriptor` as spackled + * [Refactor] `ES2015`+: `IsDetachedBuffer`: use `array-buffer-byte-length` package + * [Refactor] `ES2015`+: `OrdinaryHasInstance`: rely on falsiness + * [Refactor] `ES2016`+: `CreateListFromArrayLike`: hoist default element types to module level + * [Refactor] `ES2022`+: `StringToNumber`, `ToNumber`: use `string.prototype.trim` + * [patch] `ES2022`+: `IsLessThan`: fix a comment + * [patch] `ES2022`+: `TypedArrayElementSize`, `TypedArrayElementType`: throw a SyntaxError with an unknown TA type + * [patch] `ES2022`+: `IsLessThan`: fix a comment + * [patch] `ES2020`+: `thisBigIntValue`: throw a SyntaxError, not TypeError, for unsupported features + * [patch] `helpers/getIteratorMethod`: `String` is always available + * [patch] fix commented spec URLs + * [patch] omit `%` for `callBound` + * [meta] fix spec URLs + * [meta] fix spackle metadata, comments + * [Deps] update `get-intrinsic`, `internal-slot`, `is-array-buffer`, `object-inspect` + * [Deps] move `function-bind` to dev deps + * [Tests] String.fromCharCode takes numbers, not strings + * [Tests] use `makeIteratorRecord` helper + * [Tests] increase coverage + * [Tests] fix tests that throw a sentinel + * [Dev Deps] update `array.from`, `available-regexp-flags`, `tape` + 1.21.1 / 2023-01-10 ================= * [Fix] move `available-typed-arrays` to runtime deps diff --git a/node_modules/es-abstract/es2015.js b/node_modules/es-abstract/es2015.js index 479fe155b3..1033716cef 100644 --- a/node_modules/es-abstract/es2015.js +++ b/node_modules/es-abstract/es2015.js @@ -12,6 +12,7 @@ var ES2015 = { ArraySetLength: require('./2015/ArraySetLength'), ArraySpeciesCreate: require('./2015/ArraySpeciesCreate'), Call: require('./2015/Call'), + Canonicalize: require('./2015/Canonicalize'), CanonicalNumericIndexString: require('./2015/CanonicalNumericIndexString'), CharacterRange: require('./2015/CharacterRange'), CompletePropertyDescriptor: require('./2015/CompletePropertyDescriptor'), @@ -41,6 +42,7 @@ var ES2015 = { GetPrototypeFromConstructor: require('./2015/GetPrototypeFromConstructor'), GetSubstitution: require('./2015/GetSubstitution'), GetV: require('./2015/GetV'), + GetValueFromBuffer: require('./2015/GetValueFromBuffer'), HasOwnProperty: require('./2015/HasOwnProperty'), HasProperty: require('./2015/HasProperty'), HourFromTime: require('./2015/HourFromTime'), @@ -62,6 +64,7 @@ var ES2015 = { IsPropertyDescriptor: require('./2015/IsPropertyDescriptor'), IsPropertyKey: require('./2015/IsPropertyKey'), IsRegExp: require('./2015/IsRegExp'), + IsWordChar: require('./2015/IsWordChar'), IteratorClose: require('./2015/IteratorClose'), IteratorComplete: require('./2015/IteratorComplete'), IteratorNext: require('./2015/IteratorNext'), @@ -76,6 +79,7 @@ var ES2015 = { modulo: require('./2015/modulo'), MonthFromTime: require('./2015/MonthFromTime'), msFromTime: require('./2015/msFromTime'), + NewPromiseCapability: require('./2015/NewPromiseCapability'), NormalCompletion: require('./2015/NormalCompletion'), ObjectCreate: require('./2015/ObjectCreate'), ObjectDefineProperties: require('./2015/ObjectDefineProperties'), @@ -94,6 +98,7 @@ var ES2015 = { Set: require('./2015/Set'), SetFunctionName: require('./2015/SetFunctionName'), SetIntegrityLevel: require('./2015/SetIntegrityLevel'), + SetValueInBuffer: require('./2015/SetValueInBuffer'), SpeciesConstructor: require('./2015/SpeciesConstructor'), SplitMatch: require('./2015/SplitMatch'), StringCreate: require('./2015/StringCreate'), diff --git a/node_modules/es-abstract/es2016.js b/node_modules/es-abstract/es2016.js index b2ffb99c73..61e5f15e6a 100644 --- a/node_modules/es-abstract/es2016.js +++ b/node_modules/es-abstract/es2016.js @@ -12,6 +12,7 @@ var ES2016 = { ArraySetLength: require('./2016/ArraySetLength'), ArraySpeciesCreate: require('./2016/ArraySpeciesCreate'), Call: require('./2016/Call'), + Canonicalize: require('./2016/Canonicalize'), CanonicalNumericIndexString: require('./2016/CanonicalNumericIndexString'), CharacterRange: require('./2016/CharacterRange'), CompletePropertyDescriptor: require('./2016/CompletePropertyDescriptor'), @@ -41,6 +42,7 @@ var ES2016 = { GetPrototypeFromConstructor: require('./2016/GetPrototypeFromConstructor'), GetSubstitution: require('./2016/GetSubstitution'), GetV: require('./2016/GetV'), + GetValueFromBuffer: require('./2016/GetValueFromBuffer'), HasOwnProperty: require('./2016/HasOwnProperty'), HasProperty: require('./2016/HasProperty'), HourFromTime: require('./2016/HourFromTime'), @@ -62,6 +64,7 @@ var ES2016 = { IsPropertyDescriptor: require('./2016/IsPropertyDescriptor'), IsPropertyKey: require('./2016/IsPropertyKey'), IsRegExp: require('./2016/IsRegExp'), + IsWordChar: require('./2016/IsWordChar'), IterableToArrayLike: require('./2016/IterableToArrayLike'), IteratorClose: require('./2016/IteratorClose'), IteratorComplete: require('./2016/IteratorComplete'), @@ -77,6 +80,7 @@ var ES2016 = { modulo: require('./2016/modulo'), MonthFromTime: require('./2016/MonthFromTime'), msFromTime: require('./2016/msFromTime'), + NewPromiseCapability: require('./2016/NewPromiseCapability'), NormalCompletion: require('./2016/NormalCompletion'), ObjectCreate: require('./2016/ObjectCreate'), ObjectDefineProperties: require('./2016/ObjectDefineProperties'), @@ -98,6 +102,7 @@ var ES2016 = { Set: require('./2016/Set'), SetFunctionName: require('./2016/SetFunctionName'), SetIntegrityLevel: require('./2016/SetIntegrityLevel'), + SetValueInBuffer: require('./2016/SetValueInBuffer'), SpeciesConstructor: require('./2016/SpeciesConstructor'), SplitMatch: require('./2016/SplitMatch'), StringCreate: require('./2016/StringCreate'), @@ -128,6 +133,8 @@ var ES2016 = { ToUint8: require('./2016/ToUint8'), ToUint8Clamp: require('./2016/ToUint8Clamp'), Type: require('./2016/Type'), + TypedArrayCreate: require('./2016/TypedArrayCreate'), + TypedArraySpeciesCreate: require('./2016/TypedArraySpeciesCreate'), UTF16Decode: require('./2016/UTF16Decode'), UTF16Encoding: require('./2016/UTF16Encoding'), ValidateAndApplyPropertyDescriptor: require('./2016/ValidateAndApplyPropertyDescriptor'), diff --git a/node_modules/es-abstract/es2017.js b/node_modules/es-abstract/es2017.js index 8a344dabfe..37fe762242 100644 --- a/node_modules/es-abstract/es2017.js +++ b/node_modules/es-abstract/es2017.js @@ -12,6 +12,7 @@ var ES2017 = { ArraySetLength: require('./2017/ArraySetLength'), ArraySpeciesCreate: require('./2017/ArraySpeciesCreate'), Call: require('./2017/Call'), + Canonicalize: require('./2017/Canonicalize'), CanonicalNumericIndexString: require('./2017/CanonicalNumericIndexString'), CharacterRange: require('./2017/CharacterRange'), CompletePropertyDescriptor: require('./2017/CompletePropertyDescriptor'), @@ -41,6 +42,7 @@ var ES2017 = { GetPrototypeFromConstructor: require('./2017/GetPrototypeFromConstructor'), GetSubstitution: require('./2017/GetSubstitution'), GetV: require('./2017/GetV'), + GetValueFromBuffer: require('./2017/GetValueFromBuffer'), HasOwnProperty: require('./2017/HasOwnProperty'), HasProperty: require('./2017/HasProperty'), HourFromTime: require('./2017/HourFromTime'), @@ -63,6 +65,7 @@ var ES2017 = { IsPropertyKey: require('./2017/IsPropertyKey'), IsRegExp: require('./2017/IsRegExp'), IsSharedArrayBuffer: require('./2017/IsSharedArrayBuffer'), + IsWordChar: require('./2017/IsWordChar'), IterableToList: require('./2017/IterableToList'), IteratorClose: require('./2017/IteratorClose'), IteratorComplete: require('./2017/IteratorComplete'), @@ -78,6 +81,7 @@ var ES2017 = { modulo: require('./2017/modulo'), MonthFromTime: require('./2017/MonthFromTime'), msFromTime: require('./2017/msFromTime'), + NewPromiseCapability: require('./2017/NewPromiseCapability'), NormalCompletion: require('./2017/NormalCompletion'), NumberToRawBytes: require('./2017/NumberToRawBytes'), ObjectCreate: require('./2017/ObjectCreate'), @@ -102,6 +106,7 @@ var ES2017 = { Set: require('./2017/Set'), SetFunctionName: require('./2017/SetFunctionName'), SetIntegrityLevel: require('./2017/SetIntegrityLevel'), + SetValueInBuffer: require('./2017/SetValueInBuffer'), SpeciesConstructor: require('./2017/SpeciesConstructor'), SplitMatch: require('./2017/SplitMatch'), StringCreate: require('./2017/StringCreate'), @@ -134,12 +139,15 @@ var ES2017 = { ToUint8: require('./2017/ToUint8'), ToUint8Clamp: require('./2017/ToUint8Clamp'), Type: require('./2017/Type'), + TypedArrayCreate: require('./2017/TypedArrayCreate'), + TypedArraySpeciesCreate: require('./2017/TypedArraySpeciesCreate'), UTF16Decode: require('./2017/UTF16Decode'), UTF16Encoding: require('./2017/UTF16Encoding'), ValidateAndApplyPropertyDescriptor: require('./2017/ValidateAndApplyPropertyDescriptor'), ValidateAtomicAccess: require('./2017/ValidateAtomicAccess'), ValidateTypedArray: require('./2017/ValidateTypedArray'), WeekDay: require('./2017/WeekDay'), + WordCharacters: require('./2017/WordCharacters'), YearFromTime: require('./2017/YearFromTime') }; diff --git a/node_modules/es-abstract/es2018.js b/node_modules/es-abstract/es2018.js index dcea42a0b2..d55fa0de4e 100644 --- a/node_modules/es-abstract/es2018.js +++ b/node_modules/es-abstract/es2018.js @@ -13,6 +13,7 @@ var ES2018 = { ArraySpeciesCreate: require('./2018/ArraySpeciesCreate'), AsyncIteratorClose: require('./2018/AsyncIteratorClose'), Call: require('./2018/Call'), + Canonicalize: require('./2018/Canonicalize'), CanonicalNumericIndexString: require('./2018/CanonicalNumericIndexString'), CharacterRange: require('./2018/CharacterRange'), CompletePropertyDescriptor: require('./2018/CompletePropertyDescriptor'), @@ -45,6 +46,7 @@ var ES2018 = { GetPrototypeFromConstructor: require('./2018/GetPrototypeFromConstructor'), GetSubstitution: require('./2018/GetSubstitution'), GetV: require('./2018/GetV'), + GetValueFromBuffer: require('./2018/GetValueFromBuffer'), HasOwnProperty: require('./2018/HasOwnProperty'), HasProperty: require('./2018/HasProperty'), HourFromTime: require('./2018/HourFromTime'), @@ -67,6 +69,7 @@ var ES2018 = { IsRegExp: require('./2018/IsRegExp'), IsSharedArrayBuffer: require('./2018/IsSharedArrayBuffer'), IsStringPrefix: require('./2018/IsStringPrefix'), + IsWordChar: require('./2018/IsWordChar'), IterableToList: require('./2018/IterableToList'), IteratorClose: require('./2018/IteratorClose'), IteratorComplete: require('./2018/IteratorComplete'), @@ -82,6 +85,7 @@ var ES2018 = { modulo: require('./2018/modulo'), MonthFromTime: require('./2018/MonthFromTime'), msFromTime: require('./2018/msFromTime'), + NewPromiseCapability: require('./2018/NewPromiseCapability'), NormalCompletion: require('./2018/NormalCompletion'), NumberToRawBytes: require('./2018/NumberToRawBytes'), NumberToString: require('./2018/NumberToString'), @@ -109,6 +113,7 @@ var ES2018 = { SetFunctionLength: require('./2018/SetFunctionLength'), SetFunctionName: require('./2018/SetFunctionName'), SetIntegrityLevel: require('./2018/SetIntegrityLevel'), + SetValueInBuffer: require('./2018/SetValueInBuffer'), SpeciesConstructor: require('./2018/SpeciesConstructor'), SplitMatch: require('./2018/SplitMatch'), StringCreate: require('./2018/StringCreate'), @@ -144,6 +149,8 @@ var ES2018 = { ToUint8: require('./2018/ToUint8'), ToUint8Clamp: require('./2018/ToUint8Clamp'), Type: require('./2018/Type'), + TypedArrayCreate: require('./2018/TypedArrayCreate'), + TypedArraySpeciesCreate: require('./2018/TypedArraySpeciesCreate'), UnicodeEscape: require('./2018/UnicodeEscape'), UTF16Decode: require('./2018/UTF16Decode'), UTF16Encoding: require('./2018/UTF16Encoding'), @@ -151,6 +158,7 @@ var ES2018 = { ValidateAtomicAccess: require('./2018/ValidateAtomicAccess'), ValidateTypedArray: require('./2018/ValidateTypedArray'), WeekDay: require('./2018/WeekDay'), + WordCharacters: require('./2018/WordCharacters'), YearFromTime: require('./2018/YearFromTime') }; diff --git a/node_modules/es-abstract/es2019.js b/node_modules/es-abstract/es2019.js index de1c6ee47b..42d96e4800 100644 --- a/node_modules/es-abstract/es2019.js +++ b/node_modules/es-abstract/es2019.js @@ -15,6 +15,7 @@ var ES2019 = { AsyncFromSyncIteratorContinuation: require('./2019/AsyncFromSyncIteratorContinuation'), AsyncIteratorClose: require('./2019/AsyncIteratorClose'), Call: require('./2019/Call'), + Canonicalize: require('./2019/Canonicalize'), CanonicalNumericIndexString: require('./2019/CanonicalNumericIndexString'), CharacterRange: require('./2019/CharacterRange'), CompletePropertyDescriptor: require('./2019/CompletePropertyDescriptor'), @@ -48,6 +49,7 @@ var ES2019 = { GetPrototypeFromConstructor: require('./2019/GetPrototypeFromConstructor'), GetSubstitution: require('./2019/GetSubstitution'), GetV: require('./2019/GetV'), + GetValueFromBuffer: require('./2019/GetValueFromBuffer'), HasOwnProperty: require('./2019/HasOwnProperty'), HasProperty: require('./2019/HasProperty'), HourFromTime: require('./2019/HourFromTime'), @@ -70,6 +72,7 @@ var ES2019 = { IsRegExp: require('./2019/IsRegExp'), IsSharedArrayBuffer: require('./2019/IsSharedArrayBuffer'), IsStringPrefix: require('./2019/IsStringPrefix'), + IsWordChar: require('./2019/IsWordChar'), IterableToList: require('./2019/IterableToList'), IteratorClose: require('./2019/IteratorClose'), IteratorComplete: require('./2019/IteratorComplete'), @@ -85,6 +88,7 @@ var ES2019 = { modulo: require('./2019/modulo'), MonthFromTime: require('./2019/MonthFromTime'), msFromTime: require('./2019/msFromTime'), + NewPromiseCapability: require('./2019/NewPromiseCapability'), NormalCompletion: require('./2019/NormalCompletion'), NumberToRawBytes: require('./2019/NumberToRawBytes'), NumberToString: require('./2019/NumberToString'), @@ -112,6 +116,7 @@ var ES2019 = { SetFunctionLength: require('./2019/SetFunctionLength'), SetFunctionName: require('./2019/SetFunctionName'), SetIntegrityLevel: require('./2019/SetIntegrityLevel'), + SetValueInBuffer: require('./2019/SetValueInBuffer'), SpeciesConstructor: require('./2019/SpeciesConstructor'), SplitMatch: require('./2019/SplitMatch'), StringCreate: require('./2019/StringCreate'), @@ -148,6 +153,8 @@ var ES2019 = { ToUint8Clamp: require('./2019/ToUint8Clamp'), TrimString: require('./2019/TrimString'), Type: require('./2019/Type'), + TypedArrayCreate: require('./2019/TypedArrayCreate'), + TypedArraySpeciesCreate: require('./2019/TypedArraySpeciesCreate'), UnicodeEscape: require('./2019/UnicodeEscape'), UTF16Decode: require('./2019/UTF16Decode'), UTF16Encoding: require('./2019/UTF16Encoding'), @@ -155,6 +162,7 @@ var ES2019 = { ValidateAtomicAccess: require('./2019/ValidateAtomicAccess'), ValidateTypedArray: require('./2019/ValidateTypedArray'), WeekDay: require('./2019/WeekDay'), + WordCharacters: require('./2019/WordCharacters'), YearFromTime: require('./2019/YearFromTime') }; diff --git a/node_modules/es-abstract/es2020.js b/node_modules/es-abstract/es2020.js index dc96fd3758..39f6b7931b 100644 --- a/node_modules/es-abstract/es2020.js +++ b/node_modules/es-abstract/es2020.js @@ -20,6 +20,7 @@ var ES2020 = { BinaryOr: require('./2020/BinaryOr'), BinaryXor: require('./2020/BinaryXor'), Call: require('./2020/Call'), + Canonicalize: require('./2020/Canonicalize'), CanonicalNumericIndexString: require('./2020/CanonicalNumericIndexString'), CharacterRange: require('./2020/CharacterRange'), CodePointAt: require('./2020/CodePointAt'), @@ -55,6 +56,7 @@ var ES2020 = { GetPrototypeFromConstructor: require('./2020/GetPrototypeFromConstructor'), GetSubstitution: require('./2020/GetSubstitution'), GetV: require('./2020/GetV'), + GetValueFromBuffer: require('./2020/GetValueFromBuffer'), HasOwnProperty: require('./2020/HasOwnProperty'), HasProperty: require('./2020/HasProperty'), HourFromTime: require('./2020/HourFromTime'), @@ -82,6 +84,8 @@ var ES2020 = { IsStringPrefix: require('./2020/IsStringPrefix'), IsUnclampedIntegerElementType: require('./2020/IsUnclampedIntegerElementType'), IsUnsignedElementType: require('./2020/IsUnsignedElementType'), + IsValidIntegerIndex: require('./2020/IsValidIntegerIndex'), + IsWordChar: require('./2020/IsWordChar'), IterableToList: require('./2020/IterableToList'), IteratorClose: require('./2020/IteratorClose'), IteratorComplete: require('./2020/IteratorComplete'), @@ -98,6 +102,7 @@ var ES2020 = { modulo: require('./2020/modulo'), MonthFromTime: require('./2020/MonthFromTime'), msFromTime: require('./2020/msFromTime'), + NewPromiseCapability: require('./2020/NewPromiseCapability'), NormalCompletion: require('./2020/NormalCompletion'), Number: require('./2020/Number'), NumberBitwiseOp: require('./2020/NumberBitwiseOp'), @@ -127,6 +132,7 @@ var ES2020 = { SetFunctionLength: require('./2020/SetFunctionLength'), SetFunctionName: require('./2020/SetFunctionName'), SetIntegrityLevel: require('./2020/SetIntegrityLevel'), + SetValueInBuffer: require('./2020/SetValueInBuffer'), SpeciesConstructor: require('./2020/SpeciesConstructor'), SplitMatch: require('./2020/SplitMatch'), StringCreate: require('./2020/StringCreate'), @@ -170,6 +176,8 @@ var ES2020 = { ToUint8Clamp: require('./2020/ToUint8Clamp'), TrimString: require('./2020/TrimString'), Type: require('./2020/Type'), + TypedArrayCreate: require('./2020/TypedArrayCreate'), + TypedArraySpeciesCreate: require('./2020/TypedArraySpeciesCreate'), UnicodeEscape: require('./2020/UnicodeEscape'), UTF16DecodeString: require('./2020/UTF16DecodeString'), UTF16DecodeSurrogatePair: require('./2020/UTF16DecodeSurrogatePair'), @@ -178,6 +186,7 @@ var ES2020 = { ValidateAtomicAccess: require('./2020/ValidateAtomicAccess'), ValidateTypedArray: require('./2020/ValidateTypedArray'), WeekDay: require('./2020/WeekDay'), + WordCharacters: require('./2020/WordCharacters'), YearFromTime: require('./2020/YearFromTime') }; diff --git a/node_modules/es-abstract/es2021.js b/node_modules/es-abstract/es2021.js index d49b0a99f8..410d283f2d 100644 --- a/node_modules/es-abstract/es2021.js +++ b/node_modules/es-abstract/es2021.js @@ -24,10 +24,12 @@ var ES2021 = { ByteListBitwiseOp: require('./2021/ByteListBitwiseOp'), ByteListEqual: require('./2021/ByteListEqual'), Call: require('./2021/Call'), + Canonicalize: require('./2021/Canonicalize'), CanonicalNumericIndexString: require('./2021/CanonicalNumericIndexString'), CharacterRange: require('./2021/CharacterRange'), clamp: require('./2021/clamp'), ClearKeptObjects: require('./2021/ClearKeptObjects'), + CloneArrayBuffer: require('./2021/CloneArrayBuffer'), CodePointAt: require('./2021/CodePointAt'), CodePointsToString: require('./2021/CodePointsToString'), CompletePropertyDescriptor: require('./2021/CompletePropertyDescriptor'), @@ -63,6 +65,7 @@ var ES2021 = { GetPrototypeFromConstructor: require('./2021/GetPrototypeFromConstructor'), GetSubstitution: require('./2021/GetSubstitution'), GetV: require('./2021/GetV'), + GetValueFromBuffer: require('./2021/GetValueFromBuffer'), HasOwnProperty: require('./2021/HasOwnProperty'), HasProperty: require('./2021/HasProperty'), HourFromTime: require('./2021/HourFromTime'), @@ -89,6 +92,8 @@ var ES2021 = { IsStringPrefix: require('./2021/IsStringPrefix'), IsUnclampedIntegerElementType: require('./2021/IsUnclampedIntegerElementType'), IsUnsignedElementType: require('./2021/IsUnsignedElementType'), + IsValidIntegerIndex: require('./2021/IsValidIntegerIndex'), + IsWordChar: require('./2021/IsWordChar'), IterableToList: require('./2021/IterableToList'), IteratorClose: require('./2021/IteratorClose'), IteratorComplete: require('./2021/IteratorComplete'), @@ -105,6 +110,7 @@ var ES2021 = { modulo: require('./2021/modulo'), MonthFromTime: require('./2021/MonthFromTime'), msFromTime: require('./2021/msFromTime'), + NewPromiseCapability: require('./2021/NewPromiseCapability'), NormalCompletion: require('./2021/NormalCompletion'), Number: require('./2021/Number'), NumberBitwiseOp: require('./2021/NumberBitwiseOp'), @@ -134,6 +140,9 @@ var ES2021 = { SetFunctionLength: require('./2021/SetFunctionLength'), SetFunctionName: require('./2021/SetFunctionName'), SetIntegrityLevel: require('./2021/SetIntegrityLevel'), + SetTypedArrayFromArrayLike: require('./2021/SetTypedArrayFromArrayLike'), + SetTypedArrayFromTypedArray: require('./2021/SetTypedArrayFromTypedArray'), + SetValueInBuffer: require('./2021/SetValueInBuffer'), SpeciesConstructor: require('./2021/SpeciesConstructor'), SplitMatch: require('./2021/SplitMatch'), StringCreate: require('./2021/StringCreate'), @@ -180,6 +189,8 @@ var ES2021 = { ToUint8Clamp: require('./2021/ToUint8Clamp'), TrimString: require('./2021/TrimString'), Type: require('./2021/Type'), + TypedArrayCreate: require('./2021/TypedArrayCreate'), + TypedArraySpeciesCreate: require('./2021/TypedArraySpeciesCreate'), UnicodeEscape: require('./2021/UnicodeEscape'), UTF16EncodeCodePoint: require('./2021/UTF16EncodeCodePoint'), UTF16SurrogatePairToCodePoint: require('./2021/UTF16SurrogatePairToCodePoint'), @@ -189,6 +200,7 @@ var ES2021 = { ValidateTypedArray: require('./2021/ValidateTypedArray'), WeakRefDeref: require('./2021/WeakRefDeref'), WeekDay: require('./2021/WeekDay'), + WordCharacters: require('./2021/WordCharacters'), YearFromTime: require('./2021/YearFromTime') }; diff --git a/node_modules/es-abstract/es2022.js b/node_modules/es-abstract/es2022.js index 0856d70e79..dfd808ae35 100644 --- a/node_modules/es-abstract/es2022.js +++ b/node_modules/es-abstract/es2022.js @@ -21,10 +21,12 @@ var ES2022 = { ByteListBitwiseOp: require('./2022/ByteListBitwiseOp'), ByteListEqual: require('./2022/ByteListEqual'), Call: require('./2022/Call'), + Canonicalize: require('./2022/Canonicalize'), CanonicalNumericIndexString: require('./2022/CanonicalNumericIndexString'), CharacterRange: require('./2022/CharacterRange'), clamp: require('./2022/clamp'), ClearKeptObjects: require('./2022/ClearKeptObjects'), + CloneArrayBuffer: require('./2022/CloneArrayBuffer'), CodePointAt: require('./2022/CodePointAt'), CodePointsToString: require('./2022/CodePointsToString'), CompletePropertyDescriptor: require('./2022/CompletePropertyDescriptor'), @@ -64,6 +66,7 @@ var ES2022 = { GetStringIndex: require('./2022/GetStringIndex'), GetSubstitution: require('./2022/GetSubstitution'), GetV: require('./2022/GetV'), + GetValueFromBuffer: require('./2022/GetValueFromBuffer'), HasOwnProperty: require('./2022/HasOwnProperty'), HasProperty: require('./2022/HasProperty'), HourFromTime: require('./2022/HourFromTime'), @@ -95,6 +98,8 @@ var ES2022 = { IsStringWellFormedUnicode: require('./2022/IsStringWellFormedUnicode'), IsUnclampedIntegerElementType: require('./2022/IsUnclampedIntegerElementType'), IsUnsignedElementType: require('./2022/IsUnsignedElementType'), + IsValidIntegerIndex: require('./2022/IsValidIntegerIndex'), + IsWordChar: require('./2022/IsWordChar'), IterableToList: require('./2022/IterableToList'), IteratorClose: require('./2022/IteratorClose'), IteratorComplete: require('./2022/IteratorComplete'), @@ -112,6 +117,7 @@ var ES2022 = { modulo: require('./2022/modulo'), MonthFromTime: require('./2022/MonthFromTime'), msFromTime: require('./2022/msFromTime'), + NewPromiseCapability: require('./2022/NewPromiseCapability'), NormalCompletion: require('./2022/NormalCompletion'), Number: require('./2022/Number'), NumberBitwiseOp: require('./2022/NumberBitwiseOp'), @@ -142,6 +148,9 @@ var ES2022 = { SetFunctionLength: require('./2022/SetFunctionLength'), SetFunctionName: require('./2022/SetFunctionName'), SetIntegrityLevel: require('./2022/SetIntegrityLevel'), + SetTypedArrayFromArrayLike: require('./2022/SetTypedArrayFromArrayLike'), + SetTypedArrayFromTypedArray: require('./2022/SetTypedArrayFromTypedArray'), + SetValueInBuffer: require('./2022/SetValueInBuffer'), SortIndexedProperties: require('./2022/SortIndexedProperties'), SpeciesConstructor: require('./2022/SpeciesConstructor'), StringCreate: require('./2022/StringCreate'), @@ -190,8 +199,10 @@ var ES2022 = { ToZeroPaddedDecimalString: require('./2022/ToZeroPaddedDecimalString'), TrimString: require('./2022/TrimString'), Type: require('./2022/Type'), + TypedArrayCreate: require('./2022/TypedArrayCreate'), TypedArrayElementSize: require('./2022/TypedArrayElementSize'), TypedArrayElementType: require('./2022/TypedArrayElementType'), + TypedArraySpeciesCreate: require('./2022/TypedArraySpeciesCreate'), UnicodeEscape: require('./2022/UnicodeEscape'), UTF16EncodeCodePoint: require('./2022/UTF16EncodeCodePoint'), UTF16SurrogatePairToCodePoint: require('./2022/UTF16SurrogatePairToCodePoint'), @@ -201,6 +212,7 @@ var ES2022 = { ValidateTypedArray: require('./2022/ValidateTypedArray'), WeakRefDeref: require('./2022/WeakRefDeref'), WeekDay: require('./2022/WeekDay'), + WordCharacters: require('./2022/WordCharacters'), YearFromTime: require('./2022/YearFromTime') }; diff --git a/node_modules/es-abstract/es2023.js b/node_modules/es-abstract/es2023.js new file mode 100644 index 0000000000..75fddd5bb7 --- /dev/null +++ b/node_modules/es-abstract/es2023.js @@ -0,0 +1,227 @@ +'use strict'; + +/* eslint global-require: 0 */ +// https://262.ecma-international.org/14.0/#sec-abstract-operations +var ES2023 = { + abs: require('./2023/abs'), + AddEntriesFromIterable: require('./2023/AddEntriesFromIterable'), + AddToKeptObjects: require('./2023/AddToKeptObjects'), + AdvanceStringIndex: require('./2023/AdvanceStringIndex'), + ApplyStringOrNumericBinaryOperator: require('./2023/ApplyStringOrNumericBinaryOperator'), + ArrayCreate: require('./2023/ArrayCreate'), + ArraySetLength: require('./2023/ArraySetLength'), + ArraySpeciesCreate: require('./2023/ArraySpeciesCreate'), + AsyncFromSyncIteratorContinuation: require('./2023/AsyncFromSyncIteratorContinuation'), + AsyncIteratorClose: require('./2023/AsyncIteratorClose'), + BigInt: require('./2023/BigInt'), + BigIntBitwiseOp: require('./2023/BigIntBitwiseOp'), + BinaryAnd: require('./2023/BinaryAnd'), + BinaryOr: require('./2023/BinaryOr'), + BinaryXor: require('./2023/BinaryXor'), + ByteListBitwiseOp: require('./2023/ByteListBitwiseOp'), + ByteListEqual: require('./2023/ByteListEqual'), + Call: require('./2023/Call'), + CanBeHeldWeakly: require('./2023/CanBeHeldWeakly'), + Canonicalize: require('./2023/Canonicalize'), + CanonicalNumericIndexString: require('./2023/CanonicalNumericIndexString'), + CharacterRange: require('./2023/CharacterRange'), + clamp: require('./2023/clamp'), + ClearKeptObjects: require('./2023/ClearKeptObjects'), + CloneArrayBuffer: require('./2023/CloneArrayBuffer'), + CodePointAt: require('./2023/CodePointAt'), + CodePointsToString: require('./2023/CodePointsToString'), + CompareArrayElements: require('./2023/CompareArrayElements'), + CompareTypedArrayElements: require('./2023/CompareTypedArrayElements'), + CompletePropertyDescriptor: require('./2023/CompletePropertyDescriptor'), + CompletionRecord: require('./2023/CompletionRecord'), + CopyDataProperties: require('./2023/CopyDataProperties'), + CreateAsyncFromSyncIterator: require('./2023/CreateAsyncFromSyncIterator'), + CreateDataProperty: require('./2023/CreateDataProperty'), + CreateDataPropertyOrThrow: require('./2023/CreateDataPropertyOrThrow'), + CreateHTML: require('./2023/CreateHTML'), + CreateIterResultObject: require('./2023/CreateIterResultObject'), + CreateListFromArrayLike: require('./2023/CreateListFromArrayLike'), + CreateMethodProperty: require('./2023/CreateMethodProperty'), + CreateNonEnumerableDataPropertyOrThrow: require('./2023/CreateNonEnumerableDataPropertyOrThrow'), + CreateRegExpStringIterator: require('./2023/CreateRegExpStringIterator'), + DateFromTime: require('./2023/DateFromTime'), + DateString: require('./2023/DateString'), + Day: require('./2023/Day'), + DayFromYear: require('./2023/DayFromYear'), + DaysInYear: require('./2023/DaysInYear'), + DayWithinYear: require('./2023/DayWithinYear'), + DefinePropertyOrThrow: require('./2023/DefinePropertyOrThrow'), + DeletePropertyOrThrow: require('./2023/DeletePropertyOrThrow'), + DetachArrayBuffer: require('./2023/DetachArrayBuffer'), + EnumerableOwnProperties: require('./2023/EnumerableOwnProperties'), + FindViaPredicate: require('./2023/FindViaPredicate'), + FlattenIntoArray: require('./2023/FlattenIntoArray'), + floor: require('./2023/floor'), + FromPropertyDescriptor: require('./2023/FromPropertyDescriptor'), + Get: require('./2023/Get'), + GetGlobalObject: require('./2023/GetGlobalObject'), + GetIterator: require('./2023/GetIterator'), + GetIteratorFromMethod: require('./2023/GetIteratorFromMethod'), + GetMatchIndexPair: require('./2023/GetMatchIndexPair'), + GetMatchString: require('./2023/GetMatchString'), + GetMethod: require('./2023/GetMethod'), + GetOwnPropertyKeys: require('./2023/GetOwnPropertyKeys'), + GetPromiseResolve: require('./2023/GetPromiseResolve'), + GetPrototypeFromConstructor: require('./2023/GetPrototypeFromConstructor'), + GetStringIndex: require('./2023/GetStringIndex'), + GetSubstitution: require('./2023/GetSubstitution'), + GetV: require('./2023/GetV'), + GetValueFromBuffer: require('./2023/GetValueFromBuffer'), + HasOwnProperty: require('./2023/HasOwnProperty'), + HasProperty: require('./2023/HasProperty'), + HourFromTime: require('./2023/HourFromTime'), + InLeapYear: require('./2023/InLeapYear'), + InstallErrorCause: require('./2023/InstallErrorCause'), + InstanceofOperator: require('./2023/InstanceofOperator'), + Invoke: require('./2023/Invoke'), + IsAccessorDescriptor: require('./2023/IsAccessorDescriptor'), + IsArray: require('./2023/IsArray'), + IsBigIntElementType: require('./2023/IsBigIntElementType'), + IsCallable: require('./2023/IsCallable'), + IsCompatiblePropertyDescriptor: require('./2023/IsCompatiblePropertyDescriptor'), + IsConcatSpreadable: require('./2023/IsConcatSpreadable'), + IsConstructor: require('./2023/IsConstructor'), + IsDataDescriptor: require('./2023/IsDataDescriptor'), + IsDetachedBuffer: require('./2023/IsDetachedBuffer'), + IsExtensible: require('./2023/IsExtensible'), + IsGenericDescriptor: require('./2023/IsGenericDescriptor'), + IsIntegralNumber: require('./2023/IsIntegralNumber'), + IsLessThan: require('./2023/IsLessThan'), + IsLooselyEqual: require('./2023/IsLooselyEqual'), + IsNoTearConfiguration: require('./2023/IsNoTearConfiguration'), + IsPromise: require('./2023/IsPromise'), + IsPropertyKey: require('./2023/IsPropertyKey'), + IsRegExp: require('./2023/IsRegExp'), + IsSharedArrayBuffer: require('./2023/IsSharedArrayBuffer'), + IsStrictlyEqual: require('./2023/IsStrictlyEqual'), + IsStringWellFormedUnicode: require('./2023/IsStringWellFormedUnicode'), + IsUnclampedIntegerElementType: require('./2023/IsUnclampedIntegerElementType'), + IsUnsignedElementType: require('./2023/IsUnsignedElementType'), + IsValidIntegerIndex: require('./2023/IsValidIntegerIndex'), + IsWordChar: require('./2023/IsWordChar'), + IteratorClose: require('./2023/IteratorClose'), + IteratorComplete: require('./2023/IteratorComplete'), + IteratorNext: require('./2023/IteratorNext'), + IteratorStep: require('./2023/IteratorStep'), + IteratorToList: require('./2023/IteratorToList'), + IteratorValue: require('./2023/IteratorValue'), + KeyForSymbol: require('./2023/KeyForSymbol'), + LengthOfArrayLike: require('./2023/LengthOfArrayLike'), + MakeDate: require('./2023/MakeDate'), + MakeDay: require('./2023/MakeDay'), + MakeMatchIndicesIndexPairArray: require('./2023/MakeMatchIndicesIndexPairArray'), + MakeTime: require('./2023/MakeTime'), + max: require('./2023/max'), + min: require('./2023/min'), + MinFromTime: require('./2023/MinFromTime'), + modulo: require('./2023/modulo'), + MonthFromTime: require('./2023/MonthFromTime'), + msFromTime: require('./2023/msFromTime'), + NewPromiseCapability: require('./2023/NewPromiseCapability'), + NormalCompletion: require('./2023/NormalCompletion'), + Number: require('./2023/Number'), + NumberBitwiseOp: require('./2023/NumberBitwiseOp'), + NumberToBigInt: require('./2023/NumberToBigInt'), + NumericToRawBytes: require('./2023/NumericToRawBytes'), + ObjectDefineProperties: require('./2023/ObjectDefineProperties'), + OrdinaryCreateFromConstructor: require('./2023/OrdinaryCreateFromConstructor'), + OrdinaryDefineOwnProperty: require('./2023/OrdinaryDefineOwnProperty'), + OrdinaryGetOwnProperty: require('./2023/OrdinaryGetOwnProperty'), + OrdinaryGetPrototypeOf: require('./2023/OrdinaryGetPrototypeOf'), + OrdinaryHasInstance: require('./2023/OrdinaryHasInstance'), + OrdinaryHasProperty: require('./2023/OrdinaryHasProperty'), + OrdinaryObjectCreate: require('./2023/OrdinaryObjectCreate'), + OrdinarySetPrototypeOf: require('./2023/OrdinarySetPrototypeOf'), + OrdinaryToPrimitive: require('./2023/OrdinaryToPrimitive'), + ParseHexOctet: require('./2023/ParseHexOctet'), + PromiseResolve: require('./2023/PromiseResolve'), + QuoteJSONString: require('./2023/QuoteJSONString'), + RawBytesToNumeric: require('./2023/RawBytesToNumeric'), + RegExpCreate: require('./2023/RegExpCreate'), + RegExpExec: require('./2023/RegExpExec'), + RegExpHasFlag: require('./2023/RegExpHasFlag'), + RequireObjectCoercible: require('./2023/RequireObjectCoercible'), + SameValue: require('./2023/SameValue'), + SameValueNonNumber: require('./2023/SameValueNonNumber'), + SameValueZero: require('./2023/SameValueZero'), + SecFromTime: require('./2023/SecFromTime'), + Set: require('./2023/Set'), + SetFunctionLength: require('./2023/SetFunctionLength'), + SetFunctionName: require('./2023/SetFunctionName'), + SetIntegrityLevel: require('./2023/SetIntegrityLevel'), + SetTypedArrayFromArrayLike: require('./2023/SetTypedArrayFromArrayLike'), + SetTypedArrayFromTypedArray: require('./2023/SetTypedArrayFromTypedArray'), + SetValueInBuffer: require('./2023/SetValueInBuffer'), + SortIndexedProperties: require('./2023/SortIndexedProperties'), + SpeciesConstructor: require('./2023/SpeciesConstructor'), + StringCreate: require('./2023/StringCreate'), + StringGetOwnProperty: require('./2023/StringGetOwnProperty'), + StringIndexOf: require('./2023/StringIndexOf'), + StringPad: require('./2023/StringPad'), + StringToBigInt: require('./2023/StringToBigInt'), + StringToCodePoints: require('./2023/StringToCodePoints'), + StringToNumber: require('./2023/StringToNumber'), + substring: require('./2023/substring'), + SymbolDescriptiveString: require('./2023/SymbolDescriptiveString'), + TestIntegrityLevel: require('./2023/TestIntegrityLevel'), + thisBigIntValue: require('./2023/thisBigIntValue'), + thisBooleanValue: require('./2023/thisBooleanValue'), + thisNumberValue: require('./2023/thisNumberValue'), + thisStringValue: require('./2023/thisStringValue'), + thisSymbolValue: require('./2023/thisSymbolValue'), + thisTimeValue: require('./2023/thisTimeValue'), + ThrowCompletion: require('./2023/ThrowCompletion'), + TimeClip: require('./2023/TimeClip'), + TimeFromYear: require('./2023/TimeFromYear'), + TimeString: require('./2023/TimeString'), + TimeWithinDay: require('./2023/TimeWithinDay'), + ToBigInt: require('./2023/ToBigInt'), + ToBigInt64: require('./2023/ToBigInt64'), + ToBigUint64: require('./2023/ToBigUint64'), + ToBoolean: require('./2023/ToBoolean'), + ToDateString: require('./2023/ToDateString'), + ToIndex: require('./2023/ToIndex'), + ToInt16: require('./2023/ToInt16'), + ToInt32: require('./2023/ToInt32'), + ToInt8: require('./2023/ToInt8'), + ToIntegerOrInfinity: require('./2023/ToIntegerOrInfinity'), + ToLength: require('./2023/ToLength'), + ToNumber: require('./2023/ToNumber'), + ToNumeric: require('./2023/ToNumeric'), + ToObject: require('./2023/ToObject'), + ToPrimitive: require('./2023/ToPrimitive'), + ToPropertyDescriptor: require('./2023/ToPropertyDescriptor'), + ToPropertyKey: require('./2023/ToPropertyKey'), + ToString: require('./2023/ToString'), + ToUint16: require('./2023/ToUint16'), + ToUint32: require('./2023/ToUint32'), + ToUint8: require('./2023/ToUint8'), + ToUint8Clamp: require('./2023/ToUint8Clamp'), + ToZeroPaddedDecimalString: require('./2023/ToZeroPaddedDecimalString'), + TrimString: require('./2023/TrimString'), + truncate: require('./2023/truncate'), + Type: require('./2023/Type'), + TypedArrayCreate: require('./2023/TypedArrayCreate'), + TypedArrayCreateSameType: require('./2023/TypedArrayCreateSameType'), + TypedArrayElementSize: require('./2023/TypedArrayElementSize'), + TypedArrayElementType: require('./2023/TypedArrayElementType'), + TypedArraySpeciesCreate: require('./2023/TypedArraySpeciesCreate'), + UnicodeEscape: require('./2023/UnicodeEscape'), + UTF16EncodeCodePoint: require('./2023/UTF16EncodeCodePoint'), + UTF16SurrogatePairToCodePoint: require('./2023/UTF16SurrogatePairToCodePoint'), + ValidateAndApplyPropertyDescriptor: require('./2023/ValidateAndApplyPropertyDescriptor'), + ValidateAtomicAccess: require('./2023/ValidateAtomicAccess'), + ValidateIntegerTypedArray: require('./2023/ValidateIntegerTypedArray'), + ValidateTypedArray: require('./2023/ValidateTypedArray'), + WeakRefDeref: require('./2023/WeakRefDeref'), + WeekDay: require('./2023/WeekDay'), + WordCharacters: require('./2023/WordCharacters'), + YearFromTime: require('./2023/YearFromTime') +}; + +module.exports = ES2023; diff --git a/node_modules/es-abstract/es5.js b/node_modules/es-abstract/es5.js index 46eb6e17b9..3cb42988c9 100644 --- a/node_modules/es-abstract/es5.js +++ b/node_modules/es-abstract/es5.js @@ -8,6 +8,7 @@ module.exports = { 'Abstract Relational Comparison': require('./5/AbstractRelationalComparison'), 'Strict Equality Comparison': require('./5/StrictEqualityComparison'), abs: require('./5/abs'), + Canonicalize: require('./5/Canonicalize'), CheckObjectCoercible: require('./5/CheckObjectCoercible'), DateFromTime: require('./5/DateFromTime'), Day: require('./5/Day'), diff --git a/node_modules/es-abstract/helpers/assertRecord.js b/node_modules/es-abstract/helpers/assertRecord.js index 3d93ec55a2..5943afde6a 100644 --- a/node_modules/es-abstract/helpers/assertRecord.js +++ b/node_modules/es-abstract/helpers/assertRecord.js @@ -6,6 +6,7 @@ var $TypeError = GetIntrinsic('%TypeError%'); var $SyntaxError = GetIntrinsic('%SyntaxError%'); var has = require('has'); +var isInteger = require('./isInteger'); var isMatchRecord = require('./isMatchRecord'); @@ -21,6 +22,9 @@ var predicates = { '[[Writable]]': true }; + if (!Desc) { + return false; + } for (var key in Desc) { // eslint-disable-line if (has(Desc, key) && !allowed[key]) { return false; @@ -40,7 +44,7 @@ var predicates = { return has(value, '[[Iterator]]') && has(value, '[[NextMethod]]') && has(value, '[[Done]]'); }, 'PromiseCapability Record': function isPromiseCapabilityRecord(value) { - return value + return !!value && has(value, '[[Resolve]]') && typeof value['[[Resolve]]'] === 'function' && has(value, '[[Reject]]') @@ -50,10 +54,25 @@ var predicates = { && typeof value['[[Promise]]'].then === 'function'; }, 'AsyncGeneratorRequest Record': function isAsyncGeneratorRequestRecord(value) { - return value + return !!value && has(value, '[[Completion]]') // TODO: confirm is a completion record && has(value, '[[Capability]]') && predicates['PromiseCapability Record'](value['[[Capability]]']); + }, + 'RegExp Record': function isRegExpRecord(value) { + return value + && has(value, '[[IgnoreCase]]') + && typeof value['[[IgnoreCase]]'] === 'boolean' + && has(value, '[[Multiline]]') + && typeof value['[[Multiline]]'] === 'boolean' + && has(value, '[[DotAll]]') + && typeof value['[[DotAll]]'] === 'boolean' + && has(value, '[[Unicode]]') + && typeof value['[[Unicode]]'] === 'boolean' + && has(value, '[[CapturingGroupsCount]]') + && typeof value['[[CapturingGroupsCount]]'] === 'number' + && isInteger(value['[[CapturingGroupsCount]]']) + && value['[[CapturingGroupsCount]]'] >= 0; } }; diff --git a/node_modules/es-abstract/helpers/bytesAsFloat32.js b/node_modules/es-abstract/helpers/bytesAsFloat32.js new file mode 100644 index 0000000000..2e2cdcb1ab --- /dev/null +++ b/node_modules/es-abstract/helpers/bytesAsFloat32.js @@ -0,0 +1,38 @@ +'use strict'; + +var GetIntrinsic = require('get-intrinsic'); + +var $pow = GetIntrinsic('%Math.pow%'); + +module.exports = function bytesAsFloat32(rawBytes) { + // return new Float32Array(new Uint8Array(rawBytes).buffer)[0]; + + /* + Let value be the byte elements of rawBytes concatenated and interpreted as a little-endian bit string encoding of an IEEE 754-2008 binary32 value. +If value is an IEEE 754-2008 binary32 NaN value, return the NaN Number value. +Return the Number value that corresponds to value. + */ + var sign = rawBytes[3] & 0x80 ? -1 : 1; // Check the sign bit + var exponent = ((rawBytes[3] & 0x7F) << 1) + | (rawBytes[2] >> 7); // Combine bits for exponent + var mantissa = ((rawBytes[2] & 0x7F) << 16) + | (rawBytes[1] << 8) + | rawBytes[0]; // Combine bits for mantissa + + if (exponent === 0 && mantissa === 0) { + return sign === 1 ? 0 : -0; + } + if (exponent === 0xFF && mantissa === 0) { + return sign === 1 ? Infinity : -Infinity; + } + if (exponent === 0xFF && mantissa !== 0) { + return NaN; + } + + exponent -= 127; // subtract the bias + + if (exponent === -127) { + return sign * mantissa * $pow(2, -126 - 23); + } + return sign * (1 + (mantissa * $pow(2, -23))) * $pow(2, exponent); +}; diff --git a/node_modules/es-abstract/helpers/bytesAsFloat64.js b/node_modules/es-abstract/helpers/bytesAsFloat64.js new file mode 100644 index 0000000000..675c5b6d81 --- /dev/null +++ b/node_modules/es-abstract/helpers/bytesAsFloat64.js @@ -0,0 +1,44 @@ +'use strict'; + +var GetIntrinsic = require('get-intrinsic'); + +var $pow = GetIntrinsic('%Math.pow%'); + +module.exports = function bytesAsFloat64(rawBytes) { + // return new Float64Array(new Uint8Array(rawBytes).buffer)[0]; + + /* + Let value be the byte elements of rawBytes concatenated and interpreted as a little-endian bit string encoding of an IEEE 754-2008 binary64 value. +If value is an IEEE 754-2008 binary64 NaN value, return the NaN Number value. +Return the Number value that corresponds to value. + */ + var sign = rawBytes[7] & 0x80 ? -1 : 1; // first bit + var exponent = ((rawBytes[7] & 0x7F) << 4) // 7 bits from index 7 + | ((rawBytes[6] & 0xF0) >> 4); // 4 bits from index 6 + var mantissa = ((rawBytes[6] & 0x0F) * 0x1000000000000) // 4 bits from index 6 + + (rawBytes[5] * 0x10000000000) // 8 bits from index 5 + + (rawBytes[4] * 0x100000000) // 8 bits from index 4 + + (rawBytes[3] * 0x1000000) // 8 bits from index 3 + + (rawBytes[2] * 0x10000) // 8 bits from index 2 + + (rawBytes[1] * 0x100) // 8 bits from index 1 + + rawBytes[0]; // 8 bits from index 0 + + if (exponent === 0 && mantissa === 0) { + return sign * 0; + } + if (exponent === 0x7FF && mantissa !== 0) { + return NaN; + } + if (exponent === 0x7FF && mantissa === 0) { + return sign * Infinity; + } + + exponent -= 1023; // subtract the bias + + // Handle subnormal numbers + if (exponent === -1023) { + return sign * mantissa * 5e-324; // $pow(2, -1022 - 52) + } + + return sign * (1 + (mantissa / 0x10000000000000)) * $pow(2, exponent); +}; diff --git a/node_modules/es-abstract/helpers/bytesAsInteger.js b/node_modules/es-abstract/helpers/bytesAsInteger.js new file mode 100644 index 0000000000..bae4bef2d4 --- /dev/null +++ b/node_modules/es-abstract/helpers/bytesAsInteger.js @@ -0,0 +1,31 @@ +'use strict'; + +var GetIntrinsic = require('get-intrinsic'); + +var $pow = GetIntrinsic('%Math.pow%'); +var $Number = GetIntrinsic('%Number%'); +var $BigInt = GetIntrinsic('%BigInt%', true); + +module.exports = function bytesAsInteger(rawBytes, elementSize, isUnsigned, isBigInt) { + var Z = isBigInt ? $BigInt : $Number; + + // this is common to both branches + var intValue = Z(0); + for (var i = 0; i < rawBytes.length; i++) { + intValue += Z(rawBytes[i]) * Z($pow(2, 8 * i)); + } + /* + Let intValue be the byte elements of rawBytes concatenated and interpreted as a bit string encoding of an unsigned little-endian binary number. + */ + + if (!isUnsigned) { // steps 5-6 + // Let intValue be the byte elements of rawBytes concatenated and interpreted as a bit string encoding of a binary little-endian 2's complement number of bit length elementSize × 8. + var bitLength = elementSize * 8; + + if (rawBytes[elementSize - 1] & 0x80) { + intValue -= Z($pow(2, bitLength)); + } + } + + return intValue; // step 7 +}; diff --git a/node_modules/es-abstract/helpers/caseFolding.json b/node_modules/es-abstract/helpers/caseFolding.json new file mode 100644 index 0000000000..1f8383511e --- /dev/null +++ b/node_modules/es-abstract/helpers/caseFolding.json @@ -0,0 +1,1430 @@ +{ + "C": { + "a": "A", + "b": "B", + "c": "C", + "d": "D", + "e": "E", + "f": "F", + "g": "G", + "h": "H", + "i": "I", + "j": "J", + "k": "K", + "l": "L", + "m": "M", + "n": "N", + "o": "O", + "p": "P", + "q": "Q", + "r": "R", + "s": "ſ", + "t": "T", + "u": "U", + "v": "V", + "w": "W", + "x": "X", + "y": "Y", + "z": "Z", + "μ": "Μ", + "à": "À", + "á": "Á", + "â": "Â", + "ã": "Ã", + "ä": "Ä", + "å": "Å", + "æ": "Æ", + "ç": "Ç", + "è": "È", + "é": "É", + "ê": "Ê", + "ë": "Ë", + "ì": "Ì", + "í": "Í", + "î": "Î", + "ï": "Ï", + "ð": "Ð", + "ñ": "Ñ", + "ò": "Ò", + "ó": "Ó", + "ô": "Ô", + "õ": "Õ", + "ö": "Ö", + "ø": "Ø", + "ù": "Ù", + "ú": "Ú", + "û": "Û", + "ü": "Ü", + "ý": "Ý", + "þ": "Þ", + "ā": "Ā", + "ă": "Ă", + "ą": "Ą", + "ć": "Ć", + "ĉ": "Ĉ", + "ċ": "Ċ", + "č": "Č", + "ď": "Ď", + "đ": "Đ", + "ē": "Ē", + "ĕ": "Ĕ", + "ė": "Ė", + "ę": "Ę", + "ě": "Ě", + "ĝ": "Ĝ", + "ğ": "Ğ", + "ġ": "Ġ", + "ģ": "Ģ", + "ĥ": "Ĥ", + "ħ": "Ħ", + "ĩ": "Ĩ", + "ī": "Ī", + "ĭ": "Ĭ", + "į": "Į", + "ij": "IJ", + "ĵ": "Ĵ", + "ķ": "Ķ", + "ĺ": "Ĺ", + "ļ": "Ļ", + "ľ": "Ľ", + "ŀ": "Ŀ", + "ł": "Ł", + "ń": "Ń", + "ņ": "Ņ", + "ň": "Ň", + "ŋ": "Ŋ", + "ō": "Ō", + "ŏ": "Ŏ", + "ő": "Ő", + "œ": "Œ", + "ŕ": "Ŕ", + "ŗ": "Ŗ", + "ř": "Ř", + "ś": "Ś", + "ŝ": "Ŝ", + "ş": "Ş", + "š": "Š", + "ţ": "Ţ", + "ť": "Ť", + "ŧ": "Ŧ", + "ũ": "Ũ", + "ū": "Ū", + "ŭ": "Ŭ", + "ů": "Ů", + "ű": "Ű", + "ų": "Ų", + "ŵ": "Ŵ", + "ŷ": "Ŷ", + "ÿ": "Ÿ", + "ź": "Ź", + "ż": "Ż", + "ž": "Ž", + "ɓ": "Ɓ", + "ƃ": "Ƃ", + "ƅ": "Ƅ", + "ɔ": "Ɔ", + "ƈ": "Ƈ", + "ɖ": "Ɖ", + "ɗ": "Ɗ", + "ƌ": "Ƌ", + "ǝ": "Ǝ", + "ə": "Ə", + "ɛ": "Ɛ", + "ƒ": "Ƒ", + "ɠ": "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", + "ȱ": "Ȱ", + "ȳ": "Ȳ", + "ⱥ": "Ⱥ", + "ȼ": "Ȼ", + "ƚ": "Ƚ", + "ⱦ": "Ⱦ", + "ɂ": "Ɂ", + "ƀ": "Ƀ", + "ʉ": "Ʉ", + "ʌ": "Ʌ", + "ɇ": "Ɇ", + "ɉ": "Ɉ", + "ɋ": "Ɋ", + "ɍ": "Ɍ", + "ɏ": "Ɏ", + "ι": "ι", + "ͱ": "Ͱ", + "ͳ": "Ͳ", + "ͷ": "Ͷ", + "ϳ": "Ϳ", + "ά": "Ά", + "έ": "Έ", + "ή": "Ή", + "ί": "Ί", + "ό": "Ό", + "ύ": "Ύ", + "ώ": "Ώ", + "α": "Α", + "β": "ϐ", + "γ": "Γ", + "δ": "Δ", + "ε": "ϵ", + "ζ": "Ζ", + "η": "Η", + "θ": "ϴ", + "κ": "ϰ", + "λ": "Λ", + "ν": "Ν", + "ξ": "Ξ", + "ο": "Ο", + "π": "ϖ", + "ρ": "ϱ", + "σ": "ς", + "τ": "Τ", + "υ": "Υ", + "φ": "ϕ", + "χ": "Χ", + "ψ": "Ψ", + "ω": "Ω", + "ϊ": "Ϊ", + "ϋ": "Ϋ", + "ϗ": "Ϗ", + "ϙ": "Ϙ", + "ϛ": "Ϛ", + "ϝ": "Ϝ", + "ϟ": "Ϟ", + "ϡ": "Ϡ", + "ϣ": "Ϣ", + "ϥ": "Ϥ", + "ϧ": "Ϧ", + "ϩ": "Ϩ", + "ϫ": "Ϫ", + "ϭ": "Ϭ", + "ϯ": "Ϯ", + "ϸ": "Ϸ", + "ϲ": "Ϲ", + "ϻ": "Ϻ", + "ͻ": "Ͻ", + "ͼ": "Ͼ", + "ͽ": "Ͽ", + "ѐ": "Ѐ", + "ё": "Ё", + "ђ": "Ђ", + "ѓ": "Ѓ", + "є": "Є", + "ѕ": "Ѕ", + "і": "І", + "ї": "Ї", + "ј": "Ј", + "љ": "Љ", + "њ": "Њ", + "ћ": "Ћ", + "ќ": "Ќ", + "ѝ": "Ѝ", + "ў": "Ў", + "џ": "Џ", + "а": "А", + "б": "Б", + "в": "ᲀ", + "г": "Г", + "д": "ᲁ", + "е": "Е", + "ж": "Ж", + "з": "З", + "и": "И", + "й": "Й", + "к": "К", + "л": "Л", + "м": "М", + "н": "Н", + "о": "ᲂ", + "п": "П", + "р": "Р", + "с": "ᲃ", + "т": "ᲅ", + "у": "У", + "ф": "Ф", + "х": "Х", + "ц": "Ц", + "ч": "Ч", + "ш": "Ш", + "щ": "Щ", + "ъ": "ᲆ", + "ы": "Ы", + "ь": "Ь", + "э": "Э", + "ю": "Ю", + "я": "Я", + "ѡ": "Ѡ", + "ѣ": "ᲇ", + "ѥ": "Ѥ", + "ѧ": "Ѧ", + "ѩ": "Ѩ", + "ѫ": "Ѫ", + "ѭ": "Ѭ", + "ѯ": "Ѯ", + "ѱ": "Ѱ", + "ѳ": "Ѳ", + "ѵ": "Ѵ", + "ѷ": "Ѷ", + "ѹ": "Ѹ", + "ѻ": "Ѻ", + "ѽ": "Ѽ", + "ѿ": "Ѿ", + "ҁ": "Ҁ", + "ҋ": "Ҋ", + "ҍ": "Ҍ", + "ҏ": "Ҏ", + "ґ": "Ґ", + "ғ": "Ғ", + "ҕ": "Ҕ", + "җ": "Җ", + "ҙ": "Ҙ", + "қ": "Қ", + "ҝ": "Ҝ", + "ҟ": "Ҟ", + "ҡ": "Ҡ", + "ң": "Ң", + "ҥ": "Ҥ", + "ҧ": "Ҧ", + "ҩ": "Ҩ", + "ҫ": "Ҫ", + "ҭ": "Ҭ", + "ү": "Ү", + "ұ": "Ұ", + "ҳ": "Ҳ", + "ҵ": "Ҵ", + "ҷ": "Ҷ", + "ҹ": "Ҹ", + "һ": "Һ", + "ҽ": "Ҽ", + "ҿ": "Ҿ", + "ӏ": "Ӏ", + "ӂ": "Ӂ", + "ӄ": "Ӄ", + "ӆ": "Ӆ", + "ӈ": "Ӈ", + "ӊ": "Ӊ", + "ӌ": "Ӌ", + "ӎ": "Ӎ", + "ӑ": "Ӑ", + "ӓ": "Ӓ", + "ӕ": "Ӕ", + "ӗ": "Ӗ", + "ә": "Ә", + "ӛ": "Ӛ", + "ӝ": "Ӝ", + "ӟ": "Ӟ", + "ӡ": "Ӡ", + "ӣ": "Ӣ", + "ӥ": "Ӥ", + "ӧ": "Ӧ", + "ө": "Ө", + "ӫ": "Ӫ", + "ӭ": "Ӭ", + "ӯ": "Ӯ", + "ӱ": "Ӱ", + "ӳ": "Ӳ", + "ӵ": "Ӵ", + "ӷ": "Ӷ", + "ӹ": "Ӹ", + "ӻ": "Ӻ", + "ӽ": "Ӽ", + "ӿ": "Ӿ", + "ԁ": "Ԁ", + "ԃ": "Ԃ", + "ԅ": "Ԅ", + "ԇ": "Ԇ", + "ԉ": "Ԉ", + "ԋ": "Ԋ", + "ԍ": "Ԍ", + "ԏ": "Ԏ", + "ԑ": "Ԑ", + "ԓ": "Ԓ", + "ԕ": "Ԕ", + "ԗ": "Ԗ", + "ԙ": "Ԙ", + "ԛ": "Ԛ", + "ԝ": "Ԝ", + "ԟ": "Ԟ", + "ԡ": "Ԡ", + "ԣ": "Ԣ", + "ԥ": "Ԥ", + "ԧ": "Ԧ", + "ԩ": "Ԩ", + "ԫ": "Ԫ", + "ԭ": "Ԭ", + "ԯ": "Ԯ", + "ա": "Ա", + "բ": "Բ", + "գ": "Գ", + "դ": "Դ", + "ե": "Ե", + "զ": "Զ", + "է": "Է", + "ը": "Ը", + "թ": "Թ", + "ժ": "Ժ", + "ի": "Ի", + "լ": "Լ", + "խ": "Խ", + "ծ": "Ծ", + "կ": "Կ", + "հ": "Հ", + "ձ": "Ձ", + "ղ": "Ղ", + "ճ": "Ճ", + "մ": "Մ", + "յ": "Յ", + "ն": "Ն", + "շ": "Շ", + "ո": "Ո", + "չ": "Չ", + "պ": "Պ", + "ջ": "Ջ", + "ռ": "Ռ", + "ս": "Ս", + "վ": "Վ", + "տ": "Տ", + "ր": "Ր", + "ց": "Ց", + "ւ": "Ւ", + "փ": "Փ", + "ք": "Ք", + "օ": "Օ", + "ֆ": "Ֆ", + "ⴀ": "Ⴀ", + "ⴁ": "Ⴁ", + "ⴂ": "Ⴂ", + "ⴃ": "Ⴃ", + "ⴄ": "Ⴄ", + "ⴅ": "Ⴅ", + "ⴆ": "Ⴆ", + "ⴇ": "Ⴇ", + "ⴈ": "Ⴈ", + "ⴉ": "Ⴉ", + "ⴊ": "Ⴊ", + "ⴋ": "Ⴋ", + "ⴌ": "Ⴌ", + "ⴍ": "Ⴍ", + "ⴎ": "Ⴎ", + "ⴏ": "Ⴏ", + "ⴐ": "Ⴐ", + "ⴑ": "Ⴑ", + "ⴒ": "Ⴒ", + "ⴓ": "Ⴓ", + "ⴔ": "Ⴔ", + "ⴕ": "Ⴕ", + "ⴖ": "Ⴖ", + "ⴗ": "Ⴗ", + "ⴘ": "Ⴘ", + "ⴙ": "Ⴙ", + "ⴚ": "Ⴚ", + "ⴛ": "Ⴛ", + "ⴜ": "Ⴜ", + "ⴝ": "Ⴝ", + "ⴞ": "Ⴞ", + "ⴟ": "Ⴟ", + "ⴠ": "Ⴠ", + "ⴡ": "Ⴡ", + "ⴢ": "Ⴢ", + "ⴣ": "Ⴣ", + "ⴤ": "Ⴤ", + "ⴥ": "Ⴥ", + "ⴧ": "Ⴧ", + "ⴭ": "Ⴭ", + "Ᏸ": "ᏸ", + "Ᏹ": "ᏹ", + "Ᏺ": "ᏺ", + "Ᏻ": "ᏻ", + "Ᏼ": "ᏼ", + "Ᏽ": "ᏽ", + "ꙋ": "Ꙋ", + "ა": "Ა", + "ბ": "Ბ", + "გ": "Გ", + "დ": "Დ", + "ე": "Ე", + "ვ": "Ვ", + "ზ": "Ზ", + "თ": "Თ", + "ი": "Ი", + "კ": "Კ", + "ლ": "Ლ", + "მ": "Მ", + "ნ": "Ნ", + "ო": "Ო", + "პ": "Პ", + "ჟ": "Ჟ", + "რ": "Რ", + "ს": "Ს", + "ტ": "Ტ", + "უ": "Უ", + "ფ": "Ფ", + "ქ": "Ქ", + "ღ": "Ღ", + "ყ": "Ყ", + "შ": "Შ", + "ჩ": "Ჩ", + "ც": "Ც", + "ძ": "Ძ", + "წ": "Წ", + "ჭ": "Ჭ", + "ხ": "Ხ", + "ჯ": "Ჯ", + "ჰ": "Ჰ", + "ჱ": "Ჱ", + "ჲ": "Ჲ", + "ჳ": "Ჳ", + "ჴ": "Ჴ", + "ჵ": "Ჵ", + "ჶ": "Ჶ", + "ჷ": "Ჷ", + "ჸ": "Ჸ", + "ჹ": "Ჹ", + "ჺ": "Ჺ", + "ჽ": "Ჽ", + "ჾ": "Ჾ", + "ჿ": "Ჿ", + "ḁ": "Ḁ", + "ḃ": "Ḃ", + "ḅ": "Ḅ", + "ḇ": "Ḇ", + "ḉ": "Ḉ", + "ḋ": "Ḋ", + "ḍ": "Ḍ", + "ḏ": "Ḏ", + "ḑ": "Ḑ", + "ḓ": "Ḓ", + "ḕ": "Ḕ", + "ḗ": "Ḗ", + "ḙ": "Ḙ", + "ḛ": "Ḛ", + "ḝ": "Ḝ", + "ḟ": "Ḟ", + "ḡ": "Ḡ", + "ḣ": "Ḣ", + "ḥ": "Ḥ", + "ḧ": "Ḧ", + "ḩ": "Ḩ", + "ḫ": "Ḫ", + "ḭ": "Ḭ", + "ḯ": "Ḯ", + "ḱ": "Ḱ", + "ḳ": "Ḳ", + "ḵ": "Ḵ", + "ḷ": "Ḷ", + "ḹ": "Ḹ", + "ḻ": "Ḻ", + "ḽ": "Ḽ", + "ḿ": "Ḿ", + "ṁ": "Ṁ", + "ṃ": "Ṃ", + "ṅ": "Ṅ", + "ṇ": "Ṇ", + "ṉ": "Ṉ", + "ṋ": "Ṋ", + "ṍ": "Ṍ", + "ṏ": "Ṏ", + "ṑ": "Ṑ", + "ṓ": "Ṓ", + "ṕ": "Ṕ", + "ṗ": "Ṗ", + "ṙ": "Ṙ", + "ṛ": "Ṛ", + "ṝ": "Ṝ", + "ṟ": "Ṟ", + "ṡ": "ẛ", + "ṣ": "Ṣ", + "ṥ": "Ṥ", + "ṧ": "Ṧ", + "ṩ": "Ṩ", + "ṫ": "Ṫ", + "ṭ": "Ṭ", + "ṯ": "Ṯ", + "ṱ": "Ṱ", + "ṳ": "Ṳ", + "ṵ": "Ṵ", + "ṷ": "Ṷ", + "ṹ": "Ṹ", + "ṻ": "Ṻ", + "ṽ": "Ṽ", + "ṿ": "Ṿ", + "ẁ": "Ẁ", + "ẃ": "Ẃ", + "ẅ": "Ẅ", + "ẇ": "Ẇ", + "ẉ": "Ẉ", + "ẋ": "Ẋ", + "ẍ": "Ẍ", + "ẏ": "Ẏ", + "ẑ": "Ẑ", + "ẓ": "Ẓ", + "ẕ": "Ẕ", + "ạ": "Ạ", + "ả": "Ả", + "ấ": "Ấ", + "ầ": "Ầ", + "ẩ": "Ẩ", + "ẫ": "Ẫ", + "ậ": "Ậ", + "ắ": "Ắ", + "ằ": "Ằ", + "ẳ": "Ẳ", + "ẵ": "Ẵ", + "ặ": "Ặ", + "ẹ": "Ẹ", + "ẻ": "Ẻ", + "ẽ": "Ẽ", + "ế": "Ế", + "ề": "Ề", + "ể": "Ể", + "ễ": "Ễ", + "ệ": "Ệ", + "ỉ": "Ỉ", + "ị": "Ị", + "ọ": "Ọ", + "ỏ": "Ỏ", + "ố": "Ố", + "ồ": "Ồ", + "ổ": "Ổ", + "ỗ": "Ỗ", + "ộ": "Ộ", + "ớ": "Ớ", + "ờ": "Ờ", + "ở": "Ở", + "ỡ": "Ỡ", + "ợ": "Ợ", + "ụ": "Ụ", + "ủ": "Ủ", + "ứ": "Ứ", + "ừ": "Ừ", + "ử": "Ử", + "ữ": "Ữ", + "ự": "Ự", + "ỳ": "Ỳ", + "ỵ": "Ỵ", + "ỷ": "Ỷ", + "ỹ": "Ỹ", + "ỻ": "Ỻ", + "ỽ": "Ỽ", + "ỿ": "Ỿ", + "ἀ": "Ἀ", + "ἁ": "Ἁ", + "ἂ": "Ἂ", + "ἃ": "Ἃ", + "ἄ": "Ἄ", + "ἅ": "Ἅ", + "ἆ": "Ἆ", + "ἇ": "Ἇ", + "ἐ": "Ἐ", + "ἑ": "Ἑ", + "ἒ": "Ἒ", + "ἓ": "Ἓ", + "ἔ": "Ἔ", + "ἕ": "Ἕ", + "ἠ": "Ἠ", + "ἡ": "Ἡ", + "ἢ": "Ἢ", + "ἣ": "Ἣ", + "ἤ": "Ἤ", + "ἥ": "Ἥ", + "ἦ": "Ἦ", + "ἧ": "Ἧ", + "ἰ": "Ἰ", + "ἱ": "Ἱ", + "ἲ": "Ἲ", + "ἳ": "Ἳ", + "ἴ": "Ἴ", + "ἵ": "Ἵ", + "ἶ": "Ἶ", + "ἷ": "Ἷ", + "ὀ": "Ὀ", + "ὁ": "Ὁ", + "ὂ": "Ὂ", + "ὃ": "Ὃ", + "ὄ": "Ὄ", + "ὅ": "Ὅ", + "ὑ": "Ὑ", + "ὓ": "Ὓ", + "ὕ": "Ὕ", + "ὗ": "Ὗ", + "ὠ": "Ὠ", + "ὡ": "Ὡ", + "ὢ": "Ὢ", + "ὣ": "Ὣ", + "ὤ": "Ὤ", + "ὥ": "Ὥ", + "ὦ": "Ὦ", + "ὧ": "Ὧ", + "ᾰ": "Ᾰ", + "ᾱ": "Ᾱ", + "ὰ": "Ὰ", + "ά": "Ά", + "ὲ": "Ὲ", + "έ": "Έ", + "ὴ": "Ὴ", + "ή": "Ή", + "ῐ": "Ῐ", + "ῑ": "Ῑ", + "ὶ": "Ὶ", + "ί": "Ί", + "ῠ": "Ῠ", + "ῡ": "Ῡ", + "ὺ": "Ὺ", + "ύ": "Ύ", + "ῥ": "Ῥ", + "ὸ": "Ὸ", + "ό": "Ό", + "ὼ": "Ὼ", + "ώ": "Ώ", + "ⅎ": "Ⅎ", + "ⅰ": "Ⅰ", + "ⅱ": "Ⅱ", + "ⅲ": "Ⅲ", + "ⅳ": "Ⅳ", + "ⅴ": "Ⅴ", + "ⅵ": "Ⅵ", + "ⅶ": "Ⅶ", + "ⅷ": "Ⅷ", + "ⅸ": "Ⅸ", + "ⅹ": "Ⅹ", + "ⅺ": "Ⅺ", + "ⅻ": "Ⅻ", + "ⅼ": "Ⅼ", + "ⅽ": "Ⅽ", + "ⅾ": "Ⅾ", + "ⅿ": "Ⅿ", + "ↄ": "Ↄ", + "ⓐ": "Ⓐ", + "ⓑ": "Ⓑ", + "ⓒ": "Ⓒ", + "ⓓ": "Ⓓ", + "ⓔ": "Ⓔ", + "ⓕ": "Ⓕ", + "ⓖ": "Ⓖ", + "ⓗ": "Ⓗ", + "ⓘ": "Ⓘ", + "ⓙ": "Ⓙ", + "ⓚ": "Ⓚ", + "ⓛ": "Ⓛ", + "ⓜ": "Ⓜ", + "ⓝ": "Ⓝ", + "ⓞ": "Ⓞ", + "ⓟ": "Ⓟ", + "ⓠ": "Ⓠ", + "ⓡ": "Ⓡ", + "ⓢ": "Ⓢ", + "ⓣ": "Ⓣ", + "ⓤ": "Ⓤ", + "ⓥ": "Ⓥ", + "ⓦ": "Ⓦ", + "ⓧ": "Ⓧ", + "ⓨ": "Ⓨ", + "ⓩ": "Ⓩ", + "ⰰ": "Ⰰ", + "ⰱ": "Ⰱ", + "ⰲ": "Ⰲ", + "ⰳ": "Ⰳ", + "ⰴ": "Ⰴ", + "ⰵ": "Ⰵ", + "ⰶ": "Ⰶ", + "ⰷ": "Ⰷ", + "ⰸ": "Ⰸ", + "ⰹ": "Ⰹ", + "ⰺ": "Ⰺ", + "ⰻ": "Ⰻ", + "ⰼ": "Ⰼ", + "ⰽ": "Ⰽ", + "ⰾ": "Ⰾ", + "ⰿ": "Ⰿ", + "ⱀ": "Ⱀ", + "ⱁ": "Ⱁ", + "ⱂ": "Ⱂ", + "ⱃ": "Ⱃ", + "ⱄ": "Ⱄ", + "ⱅ": "Ⱅ", + "ⱆ": "Ⱆ", + "ⱇ": "Ⱇ", + "ⱈ": "Ⱈ", + "ⱉ": "Ⱉ", + "ⱊ": "Ⱊ", + "ⱋ": "Ⱋ", + "ⱌ": "Ⱌ", + "ⱍ": "Ⱍ", + "ⱎ": "Ⱎ", + "ⱏ": "Ⱏ", + "ⱐ": "Ⱐ", + "ⱑ": "Ⱑ", + "ⱒ": "Ⱒ", + "ⱓ": "Ⱓ", + "ⱔ": "Ⱔ", + "ⱕ": "Ⱕ", + "ⱖ": "Ⱖ", + "ⱗ": "Ⱗ", + "ⱘ": "Ⱘ", + "ⱙ": "Ⱙ", + "ⱚ": "Ⱚ", + "ⱛ": "Ⱛ", + "ⱜ": "Ⱜ", + "ⱝ": "Ⱝ", + "ⱞ": "Ⱞ", + "ⱟ": "Ⱟ", + "ⱡ": "Ⱡ", + "ɫ": "Ɫ", + "ᵽ": "Ᵽ", + "ɽ": "Ɽ", + "ⱨ": "Ⱨ", + "ⱪ": "Ⱪ", + "ⱬ": "Ⱬ", + "ɑ": "Ɑ", + "ɱ": "Ɱ", + "ɐ": "Ɐ", + "ɒ": "Ɒ", + "ⱳ": "Ⱳ", + "ⱶ": "Ⱶ", + "ȿ": "Ȿ", + "ɀ": "Ɀ", + "ⲁ": "Ⲁ", + "ⲃ": "Ⲃ", + "ⲅ": "Ⲅ", + "ⲇ": "Ⲇ", + "ⲉ": "Ⲉ", + "ⲋ": "Ⲋ", + "ⲍ": "Ⲍ", + "ⲏ": "Ⲏ", + "ⲑ": "Ⲑ", + "ⲓ": "Ⲓ", + "ⲕ": "Ⲕ", + "ⲗ": "Ⲗ", + "ⲙ": "Ⲙ", + "ⲛ": "Ⲛ", + "ⲝ": "Ⲝ", + "ⲟ": "Ⲟ", + "ⲡ": "Ⲡ", + "ⲣ": "Ⲣ", + "ⲥ": "Ⲥ", + "ⲧ": "Ⲧ", + "ⲩ": "Ⲩ", + "ⲫ": "Ⲫ", + "ⲭ": "Ⲭ", + "ⲯ": "Ⲯ", + "ⲱ": "Ⲱ", + "ⲳ": "Ⲳ", + "ⲵ": "Ⲵ", + "ⲷ": "Ⲷ", + "ⲹ": "Ⲹ", + "ⲻ": "Ⲻ", + "ⲽ": "Ⲽ", + "ⲿ": "Ⲿ", + "ⳁ": "Ⳁ", + "ⳃ": "Ⳃ", + "ⳅ": "Ⳅ", + "ⳇ": "Ⳇ", + "ⳉ": "Ⳉ", + "ⳋ": "Ⳋ", + "ⳍ": "Ⳍ", + "ⳏ": "Ⳏ", + "ⳑ": "Ⳑ", + "ⳓ": "Ⳓ", + "ⳕ": "Ⳕ", + "ⳗ": "Ⳗ", + "ⳙ": "Ⳙ", + "ⳛ": "Ⳛ", + "ⳝ": "Ⳝ", + "ⳟ": "Ⳟ", + "ⳡ": "Ⳡ", + "ⳣ": "Ⳣ", + "ⳬ": "Ⳬ", + "ⳮ": "Ⳮ", + "ⳳ": "Ⳳ", + "ꙁ": "Ꙁ", + "ꙃ": "Ꙃ", + "ꙅ": "Ꙅ", + "ꙇ": "Ꙇ", + "ꙉ": "Ꙉ", + "ꙍ": "Ꙍ", + "ꙏ": "Ꙏ", + "ꙑ": "Ꙑ", + "ꙓ": "Ꙓ", + "ꙕ": "Ꙕ", + "ꙗ": "Ꙗ", + "ꙙ": "Ꙙ", + "ꙛ": "Ꙛ", + "ꙝ": "Ꙝ", + "ꙟ": "Ꙟ", + "ꙡ": "Ꙡ", + "ꙣ": "Ꙣ", + "ꙥ": "Ꙥ", + "ꙧ": "Ꙧ", + "ꙩ": "Ꙩ", + "ꙫ": "Ꙫ", + "ꙭ": "Ꙭ", + "ꚁ": "Ꚁ", + "ꚃ": "Ꚃ", + "ꚅ": "Ꚅ", + "ꚇ": "Ꚇ", + "ꚉ": "Ꚉ", + "ꚋ": "Ꚋ", + "ꚍ": "Ꚍ", + "ꚏ": "Ꚏ", + "ꚑ": "Ꚑ", + "ꚓ": "Ꚓ", + "ꚕ": "Ꚕ", + "ꚗ": "Ꚗ", + "ꚙ": "Ꚙ", + "ꚛ": "Ꚛ", + "ꜣ": "Ꜣ", + "ꜥ": "Ꜥ", + "ꜧ": "Ꜧ", + "ꜩ": "Ꜩ", + "ꜫ": "Ꜫ", + "ꜭ": "Ꜭ", + "ꜯ": "Ꜯ", + "ꜳ": "Ꜳ", + "ꜵ": "Ꜵ", + "ꜷ": "Ꜷ", + "ꜹ": "Ꜹ", + "ꜻ": "Ꜻ", + "ꜽ": "Ꜽ", + "ꜿ": "Ꜿ", + "ꝁ": "Ꝁ", + "ꝃ": "Ꝃ", + "ꝅ": "Ꝅ", + "ꝇ": "Ꝇ", + "ꝉ": "Ꝉ", + "ꝋ": "Ꝋ", + "ꝍ": "Ꝍ", + "ꝏ": "Ꝏ", + "ꝑ": "Ꝑ", + "ꝓ": "Ꝓ", + "ꝕ": "Ꝕ", + "ꝗ": "Ꝗ", + "ꝙ": "Ꝙ", + "ꝛ": "Ꝛ", + "ꝝ": "Ꝝ", + "ꝟ": "Ꝟ", + "ꝡ": "Ꝡ", + "ꝣ": "Ꝣ", + "ꝥ": "Ꝥ", + "ꝧ": "Ꝧ", + "ꝩ": "Ꝩ", + "ꝫ": "Ꝫ", + "ꝭ": "Ꝭ", + "ꝯ": "Ꝯ", + "ꝺ": "Ꝺ", + "ꝼ": "Ꝼ", + "ᵹ": "Ᵹ", + "ꝿ": "Ꝿ", + "ꞁ": "Ꞁ", + "ꞃ": "Ꞃ", + "ꞅ": "Ꞅ", + "ꞇ": "Ꞇ", + "ꞌ": "Ꞌ", + "ɥ": "Ɥ", + "ꞑ": "Ꞑ", + "ꞓ": "Ꞓ", + "ꞗ": "Ꞗ", + "ꞙ": "Ꞙ", + "ꞛ": "Ꞛ", + "ꞝ": "Ꞝ", + "ꞟ": "Ꞟ", + "ꞡ": "Ꞡ", + "ꞣ": "Ꞣ", + "ꞥ": "Ꞥ", + "ꞧ": "Ꞧ", + "ꞩ": "Ꞩ", + "ɦ": "Ɦ", + "ɜ": "Ɜ", + "ɡ": "Ɡ", + "ɬ": "Ɬ", + "ɪ": "Ɪ", + "ʞ": "Ʞ", + "ʇ": "Ʇ", + "ʝ": "Ʝ", + "ꭓ": "Ꭓ", + "ꞵ": "Ꞵ", + "ꞷ": "Ꞷ", + "ꞹ": "Ꞹ", + "ꞻ": "Ꞻ", + "ꞽ": "Ꞽ", + "ꞿ": "Ꞿ", + "ꟁ": "Ꟁ", + "ꟃ": "Ꟃ", + "ꞔ": "Ꞔ", + "ʂ": "Ʂ", + "ᶎ": "Ᶎ", + "ꟈ": "Ꟈ", + "ꟊ": "Ꟊ", + "ꟑ": "Ꟑ", + "ꟗ": "Ꟗ", + "ꟙ": "Ꟙ", + "ꟶ": "Ꟶ", + "Ꭰ": "ꭰ", + "Ꭱ": "ꭱ", + "Ꭲ": "ꭲ", + "Ꭳ": "ꭳ", + "Ꭴ": "ꭴ", + "Ꭵ": "ꭵ", + "Ꭶ": "ꭶ", + "Ꭷ": "ꭷ", + "Ꭸ": "ꭸ", + "Ꭹ": "ꭹ", + "Ꭺ": "ꭺ", + "Ꭻ": "ꭻ", + "Ꭼ": "ꭼ", + "Ꭽ": "ꭽ", + "Ꭾ": "ꭾ", + "Ꭿ": "ꭿ", + "Ꮀ": "ꮀ", + "Ꮁ": "ꮁ", + "Ꮂ": "ꮂ", + "Ꮃ": "ꮃ", + "Ꮄ": "ꮄ", + "Ꮅ": "ꮅ", + "Ꮆ": "ꮆ", + "Ꮇ": "ꮇ", + "Ꮈ": "ꮈ", + "Ꮉ": "ꮉ", + "Ꮊ": "ꮊ", + "Ꮋ": "ꮋ", + "Ꮌ": "ꮌ", + "Ꮍ": "ꮍ", + "Ꮎ": "ꮎ", + "Ꮏ": "ꮏ", + "Ꮐ": "ꮐ", + "Ꮑ": "ꮑ", + "Ꮒ": "ꮒ", + "Ꮓ": "ꮓ", + "Ꮔ": "ꮔ", + "Ꮕ": "ꮕ", + "Ꮖ": "ꮖ", + "Ꮗ": "ꮗ", + "Ꮘ": "ꮘ", + "Ꮙ": "ꮙ", + "Ꮚ": "ꮚ", + "Ꮛ": "ꮛ", + "Ꮜ": "ꮜ", + "Ꮝ": "ꮝ", + "Ꮞ": "ꮞ", + "Ꮟ": "ꮟ", + "Ꮠ": "ꮠ", + "Ꮡ": "ꮡ", + "Ꮢ": "ꮢ", + "Ꮣ": "ꮣ", + "Ꮤ": "ꮤ", + "Ꮥ": "ꮥ", + "Ꮦ": "ꮦ", + "Ꮧ": "ꮧ", + "Ꮨ": "ꮨ", + "Ꮩ": "ꮩ", + "Ꮪ": "ꮪ", + "Ꮫ": "ꮫ", + "Ꮬ": "ꮬ", + "Ꮭ": "ꮭ", + "Ꮮ": "ꮮ", + "Ꮯ": "ꮯ", + "Ꮰ": "ꮰ", + "Ꮱ": "ꮱ", + "Ꮲ": "ꮲ", + "Ꮳ": "ꮳ", + "Ꮴ": "ꮴ", + "Ꮵ": "ꮵ", + "Ꮶ": "ꮶ", + "Ꮷ": "ꮷ", + "Ꮸ": "ꮸ", + "Ꮹ": "ꮹ", + "Ꮺ": "ꮺ", + "Ꮻ": "ꮻ", + "Ꮼ": "ꮼ", + "Ꮽ": "ꮽ", + "Ꮾ": "ꮾ", + "Ꮿ": "ꮿ", + "a": "A", + "b": "B", + "c": "C", + "d": "D", + "e": "E", + "f": "F", + "g": "G", + "h": "H", + "i": "I", + "j": "J", + "k": "K", + "l": "L", + "m": "M", + "n": "N", + "o": "O", + "p": "P", + "q": "Q", + "r": "R", + "s": "S", + "t": "T", + "u": "U", + "v": "V", + "w": "W", + "x": "X", + "y": "Y", + "z": "Z", + "𐐨": "𐐀", + "𐐩": "𐐁", + "𐐪": "𐐂", + "𐐫": "𐐃", + "𐐬": "𐐄", + "𐐭": "𐐅", + "𐐮": "𐐆", + "𐐯": "𐐇", + "𐐰": "𐐈", + "𐐱": "𐐉", + "𐐲": "𐐊", + "𐐳": "𐐋", + "𐐴": "𐐌", + "𐐵": "𐐍", + "𐐶": "𐐎", + "𐐷": "𐐏", + "𐐸": "𐐐", + "𐐹": "𐐑", + "𐐺": "𐐒", + "𐐻": "𐐓", + "𐐼": "𐐔", + "𐐽": "𐐕", + "𐐾": "𐐖", + "𐐿": "𐐗", + "𐑀": "𐐘", + "𐑁": "𐐙", + "𐑂": "𐐚", + "𐑃": "𐐛", + "𐑄": "𐐜", + "𐑅": "𐐝", + "𐑆": "𐐞", + "𐑇": "𐐟", + "𐑈": "𐐠", + "𐑉": "𐐡", + "𐑊": "𐐢", + "𐑋": "𐐣", + "𐑌": "𐐤", + "𐑍": "𐐥", + "𐑎": "𐐦", + "𐑏": "𐐧", + "𐓘": "𐒰", + "𐓙": "𐒱", + "𐓚": "𐒲", + "𐓛": "𐒳", + "𐓜": "𐒴", + "𐓝": "𐒵", + "𐓞": "𐒶", + "𐓟": "𐒷", + "𐓠": "𐒸", + "𐓡": "𐒹", + "𐓢": "𐒺", + "𐓣": "𐒻", + "𐓤": "𐒼", + "𐓥": "𐒽", + "𐓦": "𐒾", + "𐓧": "𐒿", + "𐓨": "𐓀", + "𐓩": "𐓁", + "𐓪": "𐓂", + "𐓫": "𐓃", + "𐓬": "𐓄", + "𐓭": "𐓅", + "𐓮": "𐓆", + "𐓯": "𐓇", + "𐓰": "𐓈", + "𐓱": "𐓉", + "𐓲": "𐓊", + "𐓳": "𐓋", + "𐓴": "𐓌", + "𐓵": "𐓍", + "𐓶": "𐓎", + "𐓷": "𐓏", + "𐓸": "𐓐", + "𐓹": "𐓑", + "𐓺": "𐓒", + "𐓻": "𐓓", + "𐖗": "𐕰", + "𐖘": "𐕱", + "𐖙": "𐕲", + "𐖚": "𐕳", + "𐖛": "𐕴", + "𐖜": "𐕵", + "𐖝": "𐕶", + "𐖞": "𐕷", + "𐖟": "𐕸", + "𐖠": "𐕹", + "𐖡": "𐕺", + "𐖣": "𐕼", + "𐖤": "𐕽", + "𐖥": "𐕾", + "𐖦": "𐕿", + "𐖧": "𐖀", + "𐖨": "𐖁", + "𐖩": "𐖂", + "𐖪": "𐖃", + "𐖫": "𐖄", + "𐖬": "𐖅", + "𐖭": "𐖆", + "𐖮": "𐖇", + "𐖯": "𐖈", + "𐖰": "𐖉", + "𐖱": "𐖊", + "𐖳": "𐖌", + "𐖴": "𐖍", + "𐖵": "𐖎", + "𐖶": "𐖏", + "𐖷": "𐖐", + "𐖸": "𐖑", + "𐖹": "𐖒", + "𐖻": "𐖔", + "𐖼": "𐖕", + "𐳀": "𐲀", + "𐳁": "𐲁", + "𐳂": "𐲂", + "𐳃": "𐲃", + "𐳄": "𐲄", + "𐳅": "𐲅", + "𐳆": "𐲆", + "𐳇": "𐲇", + "𐳈": "𐲈", + "𐳉": "𐲉", + "𐳊": "𐲊", + "𐳋": "𐲋", + "𐳌": "𐲌", + "𐳍": "𐲍", + "𐳎": "𐲎", + "𐳏": "𐲏", + "𐳐": "𐲐", + "𐳑": "𐲑", + "𐳒": "𐲒", + "𐳓": "𐲓", + "𐳔": "𐲔", + "𐳕": "𐲕", + "𐳖": "𐲖", + "𐳗": "𐲗", + "𐳘": "𐲘", + "𐳙": "𐲙", + "𐳚": "𐲚", + "𐳛": "𐲛", + "𐳜": "𐲜", + "𐳝": "𐲝", + "𐳞": "𐲞", + "𐳟": "𐲟", + "𐳠": "𐲠", + "𐳡": "𐲡", + "𐳢": "𐲢", + "𐳣": "𐲣", + "𐳤": "𐲤", + "𐳥": "𐲥", + "𐳦": "𐲦", + "𐳧": "𐲧", + "𐳨": "𐲨", + "𐳩": "𐲩", + "𐳪": "𐲪", + "𐳫": "𐲫", + "𐳬": "𐲬", + "𐳭": "𐲭", + "𐳮": "𐲮", + "𐳯": "𐲯", + "𐳰": "𐲰", + "𐳱": "𐲱", + "𐳲": "𐲲", + "𑣀": "𑢠", + "𑣁": "𑢡", + "𑣂": "𑢢", + "𑣃": "𑢣", + "𑣄": "𑢤", + "𑣅": "𑢥", + "𑣆": "𑢦", + "𑣇": "𑢧", + "𑣈": "𑢨", + "𑣉": "𑢩", + "𑣊": "𑢪", + "𑣋": "𑢫", + "𑣌": "𑢬", + "𑣍": "𑢭", + "𑣎": "𑢮", + "𑣏": "𑢯", + "𑣐": "𑢰", + "𑣑": "𑢱", + "𑣒": "𑢲", + "𑣓": "𑢳", + "𑣔": "𑢴", + "𑣕": "𑢵", + "𑣖": "𑢶", + "𑣗": "𑢷", + "𑣘": "𑢸", + "𑣙": "𑢹", + "𑣚": "𑢺", + "𑣛": "𑢻", + "𑣜": "𑢼", + "𑣝": "𑢽", + "𑣞": "𑢾", + "𑣟": "𑢿", + "𖹠": "𖹀", + "𖹡": "𖹁", + "𖹢": "𖹂", + "𖹣": "𖹃", + "𖹤": "𖹄", + "𖹥": "𖹅", + "𖹦": "𖹆", + "𖹧": "𖹇", + "𖹨": "𖹈", + "𖹩": "𖹉", + "𖹪": "𖹊", + "𖹫": "𖹋", + "𖹬": "𖹌", + "𖹭": "𖹍", + "𖹮": "𖹎", + "𖹯": "𖹏", + "𖹰": "𖹐", + "𖹱": "𖹑", + "𖹲": "𖹒", + "𖹳": "𖹓", + "𖹴": "𖹔", + "𖹵": "𖹕", + "𖹶": "𖹖", + "𖹷": "𖹗", + "𖹸": "𖹘", + "𖹹": "𖹙", + "𖹺": "𖹚", + "𖹻": "𖹛", + "𖹼": "𖹜", + "𖹽": "𖹝", + "𖹾": "𖹞", + "𖹿": "𖹟", + "𞤢": "𞤀", + "𞤣": "𞤁", + "𞤤": "𞤂", + "𞤥": "𞤃", + "𞤦": "𞤄", + "𞤧": "𞤅", + "𞤨": "𞤆", + "𞤩": "𞤇", + "𞤪": "𞤈", + "𞤫": "𞤉", + "𞤬": "𞤊", + "𞤭": "𞤋", + "𞤮": "𞤌", + "𞤯": "𞤍", + "𞤰": "𞤎", + "𞤱": "𞤏", + "𞤲": "𞤐", + "𞤳": "𞤑", + "𞤴": "𞤒", + "𞤵": "𞤓", + "𞤶": "𞤔", + "𞤷": "𞤕", + "𞤸": "𞤖", + "𞤹": "𞤗", + "𞤺": "𞤘", + "𞤻": "𞤙", + "𞤼": "𞤚", + "𞤽": "𞤛", + "𞤾": "𞤜", + "𞤿": "𞤝", + "𞥀": "𞤞", + "𞥁": "𞤟", + "𞥂": "𞤠", + "𞥃": "𞤡" + }, + "S": { + "ß": "ẞ", + "ᾀ": "ᾈ", + "ᾁ": "ᾉ", + "ᾂ": "ᾊ", + "ᾃ": "ᾋ", + "ᾄ": "ᾌ", + "ᾅ": "ᾍ", + "ᾆ": "ᾎ", + "ᾇ": "ᾏ", + "ᾐ": "ᾘ", + "ᾑ": "ᾙ", + "ᾒ": "ᾚ", + "ᾓ": "ᾛ", + "ᾔ": "ᾜ", + "ᾕ": "ᾝ", + "ᾖ": "ᾞ", + "ᾗ": "ᾟ", + "ᾠ": "ᾨ", + "ᾡ": "ᾩ", + "ᾢ": "ᾪ", + "ᾣ": "ᾫ", + "ᾤ": "ᾬ", + "ᾥ": "ᾭ", + "ᾦ": "ᾮ", + "ᾧ": "ᾯ", + "ᾳ": "ᾼ", + "ῃ": "ῌ", + "ῳ": "ῼ" + } +} \ No newline at end of file diff --git a/node_modules/es-abstract/helpers/defaultEndianness.js b/node_modules/es-abstract/helpers/defaultEndianness.js new file mode 100644 index 0000000000..faba47022e --- /dev/null +++ b/node_modules/es-abstract/helpers/defaultEndianness.js @@ -0,0 +1,21 @@ +'use strict'; + +var GetIntrinsic = require('get-intrinsic'); + +var $Uint8Array = GetIntrinsic('%Uint8Array%', true); +var $Uint32Array = GetIntrinsic('%Uint32Array%', true); + +var typedArrayBuffer = require('typed-array-buffer'); + +var uInt32 = $Uint32Array && new $Uint32Array([0x12345678]); +var uInt8 = uInt32 && new $Uint8Array(typedArrayBuffer(uInt32)); + +module.exports = uInt8 + ? uInt8[0] === 0x78 + ? 'little' + : uInt8[0] === 0x12 + ? 'big' + : uInt8[0] === 0x34 + ? 'mixed' // https://developer.mozilla.org/en-US/docs/Glossary/Endianness + : 'unknown' // ??? + : 'indeterminate'; // no way to know diff --git a/node_modules/es-abstract/helpers/fractionToBinaryString.js b/node_modules/es-abstract/helpers/fractionToBinaryString.js new file mode 100644 index 0000000000..1ba671da66 --- /dev/null +++ b/node_modules/es-abstract/helpers/fractionToBinaryString.js @@ -0,0 +1,33 @@ +'use strict'; + +var MAX_ITER = 1075; // 1023+52 (subnormals) => BIAS+NUM_SIGNFICAND_BITS-1 +var maxBits = 54; // only 53 bits for fraction + +module.exports = function fractionToBitString(x) { + var str = ''; + if (x === 0) { + return str; + } + var j = MAX_ITER; + + var y; + // Each time we multiply by 2 and find a ones digit, add a '1'; otherwise, add a '0'.. + for (var i = 0; i < MAX_ITER; i += 1) { + y = x * 2; + if (y >= 1) { + x = y - 1; // eslint-disable-line no-param-reassign + str += '1'; + if (j === MAX_ITER) { + j = i; // first 1 + } + } else { + x = y; // eslint-disable-line no-param-reassign + str += '0'; + } + // Stop when we have no more decimals to process or in the event we found a fraction which cannot be represented in a finite number of bits... + if (y === 1 || i - j > maxBits) { + return str; + } + } + return str; +}; diff --git a/node_modules/es-abstract/helpers/getIteratorMethod.js b/node_modules/es-abstract/helpers/getIteratorMethod.js index 9acb8009d6..d052645b5a 100644 --- a/node_modules/es-abstract/helpers/getIteratorMethod.js +++ b/node_modules/es-abstract/helpers/getIteratorMethod.js @@ -7,7 +7,7 @@ var isString = require('is-string'); var $iterator = GetIntrinsic('%Symbol.iterator%', true); var $stringSlice = callBound('String.prototype.slice'); -var $String = GetIntrinsic('%String%', true); +var $String = GetIntrinsic('%String%'); module.exports = function getIteratorMethod(ES, iterable) { var usingIterator; diff --git a/node_modules/es-abstract/helpers/intToBinaryString.js b/node_modules/es-abstract/helpers/intToBinaryString.js new file mode 100644 index 0000000000..beeb2e77db --- /dev/null +++ b/node_modules/es-abstract/helpers/intToBinaryString.js @@ -0,0 +1,23 @@ +'use strict'; + +var GetIntrinsic = require('get-intrinsic'); + +var $floor = GetIntrinsic('%Math.floor%'); + +// https://runestone.academy/ns/books/published/pythonds/BasicDS/ConvertingDecimalNumberstoBinaryNumbers.html#:~:text=The%20Divide%20by%202%20algorithm,have%20a%20remainder%20of%200 + +module.exports = function intToBinaryString(x) { + var str = ''; + var y; + + while (x > 0) { + y = x / 2; + x = $floor(y); // eslint-disable-line no-param-reassign + if (y === x) { + str = '0' + str; + } else { + str = '1' + str; + } + } + return str; +}; diff --git a/node_modules/es-abstract/helpers/integerToNBytes.js b/node_modules/es-abstract/helpers/integerToNBytes.js new file mode 100644 index 0000000000..dd3f98c051 --- /dev/null +++ b/node_modules/es-abstract/helpers/integerToNBytes.js @@ -0,0 +1,28 @@ +'use strict'; + +var GetIntrinsic = require('get-intrinsic'); + +var $Number = GetIntrinsic('%Number%'); +var $BigInt = GetIntrinsic('%BigInt%', true); + +module.exports = function integerToNBytes(intValue, n, isLittleEndian) { + var Z = typeof intValue === 'bigint' ? $BigInt : $Number; + /* + if (intValue >= 0) { // step 3.d + // Let rawBytes be a List containing the n-byte binary encoding of intValue. If isLittleEndian is false, the bytes are ordered in big endian order. Otherwise, the bytes are ordered in little endian order. + } else { // step 3.e + // Let rawBytes be a List containing the n-byte binary 2's complement encoding of intValue. If isLittleEndian is false, the bytes are ordered in big endian order. Otherwise, the bytes are ordered in little endian order. + } + */ + if (intValue < 0) { + intValue >>>= 0; // eslint-disable-line no-param-reassign + } + + var rawBytes = []; + for (var i = 0; i < n; i++) { + rawBytes[isLittleEndian ? i : n - 1 - i] = $Number(intValue & Z(0xFF)); + intValue >>= Z(8); // eslint-disable-line no-param-reassign + } + + return rawBytes; // step 4 +}; diff --git a/node_modules/es-abstract/helpers/isFullyPopulatedPropertyDescriptor.js b/node_modules/es-abstract/helpers/isFullyPopulatedPropertyDescriptor.js index e33d0d7e1b..88d2ff9e62 100644 --- a/node_modules/es-abstract/helpers/isFullyPopulatedPropertyDescriptor.js +++ b/node_modules/es-abstract/helpers/isFullyPopulatedPropertyDescriptor.js @@ -1,7 +1,9 @@ 'use strict'; module.exports = function isFullyPopulatedPropertyDescriptor(ES, Desc) { - return '[[Enumerable]]' in Desc + return !!Desc + && typeof Desc === 'object' + && '[[Enumerable]]' in Desc && '[[Configurable]]' in Desc && (ES.IsAccessorDescriptor(Desc) || ES.IsDataDescriptor(Desc)); }; diff --git a/node_modules/es-abstract/helpers/isInteger.js b/node_modules/es-abstract/helpers/isInteger.js new file mode 100644 index 0000000000..8ff972c7ae --- /dev/null +++ b/node_modules/es-abstract/helpers/isInteger.js @@ -0,0 +1,18 @@ +'use strict'; + +var GetIntrinsic = require('get-intrinsic'); + +var $abs = GetIntrinsic('%Math.abs%'); +var $floor = GetIntrinsic('%Math.floor%'); + +var $isNaN = require('./isNaN'); +var $isFinite = require('./isFinite'); + +module.exports = function isInteger(argument) { + if (typeof argument !== 'number' || $isNaN(argument) || !$isFinite(argument)) { + return false; + } + var absValue = $abs(argument); + return $floor(absValue) === absValue; +}; + diff --git a/node_modules/es-abstract/helpers/isLineTerminator.js b/node_modules/es-abstract/helpers/isLineTerminator.js new file mode 100644 index 0000000000..baa6839016 --- /dev/null +++ b/node_modules/es-abstract/helpers/isLineTerminator.js @@ -0,0 +1,7 @@ +'use strict'; + +// https://262.ecma-international.org/5.1/#sec-7.3 + +module.exports = function isLineTerminator(c) { + return c === '\n' || c === '\r' || c === '\u2028' || c === '\u2029'; +}; diff --git a/node_modules/es-abstract/helpers/isNegativeZero.js b/node_modules/es-abstract/helpers/isNegativeZero.js new file mode 100644 index 0000000000..045b36adf2 --- /dev/null +++ b/node_modules/es-abstract/helpers/isNegativeZero.js @@ -0,0 +1,5 @@ +'use strict'; + +module.exports = function isNegativeZero(x) { + return x === 0 && 1 / x === 1 / -0; +}; diff --git a/node_modules/es-abstract/helpers/isStringOrHole.js b/node_modules/es-abstract/helpers/isStringOrHole.js new file mode 100644 index 0000000000..d333864343 --- /dev/null +++ b/node_modules/es-abstract/helpers/isStringOrHole.js @@ -0,0 +1,7 @@ +'use strict'; + +var canDistinguishSparseFromUndefined = 0 in [undefined]; // IE 6 - 8 have a bug where this returns false + +module.exports = function isStringOrHole(item, index, arr) { + return typeof item === 'string' || (canDistinguishSparseFromUndefined ? !(index in arr) : typeof item === 'undefined'); +}; diff --git a/node_modules/es-abstract/helpers/maxValue.js b/node_modules/es-abstract/helpers/maxValue.js new file mode 100644 index 0000000000..71f490309a --- /dev/null +++ b/node_modules/es-abstract/helpers/maxValue.js @@ -0,0 +1,3 @@ +'use strict'; + +module.exports = Number.MAX_VALUE || 1.7976931348623157e+308; diff --git a/node_modules/es-abstract/helpers/typedArrayContructors.js b/node_modules/es-abstract/helpers/typedArrayContructors.js new file mode 100644 index 0000000000..2d35fa347b --- /dev/null +++ b/node_modules/es-abstract/helpers/typedArrayContructors.js @@ -0,0 +1,22 @@ +'use strict'; + +var GetIntrinsic = require('get-intrinsic'); + +var constructors = { + __proto__: null, + $Int8Array: GetIntrinsic('%Int8Array%', true), + $Uint8Array: GetIntrinsic('%Uint8Array%', true), + $Uint8ClampedArray: GetIntrinsic('%Uint8ClampedArray%', true), + $Int16Array: GetIntrinsic('%Int16Array%', true), + $Uint16Array: GetIntrinsic('%Uint16Array%', true), + $Int32Array: GetIntrinsic('%Int32Array%', true), + $Uint32Array: GetIntrinsic('%Uint32Array%', true), + $BigInt64Array: GetIntrinsic('%BigInt64Array%', true), + $BigUint64Array: GetIntrinsic('%BigUint64Array%', true), + $Float32Array: GetIntrinsic('%Float32Array%', true), + $Float64Array: GetIntrinsic('%Float64Array%', true) +}; + +module.exports = function getConstructor(kind) { + return constructors['$' + kind]; +}; diff --git a/node_modules/es-abstract/helpers/valueToFloat32Bytes.js b/node_modules/es-abstract/helpers/valueToFloat32Bytes.js new file mode 100644 index 0000000000..cf30576d8b --- /dev/null +++ b/node_modules/es-abstract/helpers/valueToFloat32Bytes.js @@ -0,0 +1,69 @@ +'use strict'; + +var GetIntrinsic = require('get-intrinsic'); + +var $abs = GetIntrinsic('%Math.abs%'); +var $floor = GetIntrinsic('%Math.floor%'); +var $pow = GetIntrinsic('%Math.pow%'); + +var isFinite = require('./isFinite'); +var isNaN = require('./isNaN'); +var isNegativeZero = require('./isNegativeZero'); + +var maxFiniteFloat32 = 3.4028234663852886e+38; // roughly 2 ** 128 - 1 + +module.exports = function valueToFloat32Bytes(value, isLittleEndian) { + if (isNaN(value)) { + return isLittleEndian ? [0, 0, 192, 127] : [127, 192, 0, 0]; // hardcoded + } + + var leastSig; + + if (value === 0) { + leastSig = isNegativeZero(value) ? 0x80 : 0; + return isLittleEndian ? [0, 0, 0, leastSig] : [leastSig, 0, 0, 0]; + } + + if ($abs(value) > maxFiniteFloat32 || !isFinite(value)) { + leastSig = value < 0 ? 255 : 127; + return isLittleEndian ? [0, 0, 128, leastSig] : [leastSig, 128, 0, 0]; + } + + var sign = value < 0 ? 1 : 0; + value = $abs(value); // eslint-disable-line no-param-reassign + + var exponent = 0; + while (value >= 2) { + exponent += 1; + value /= 2; // eslint-disable-line no-param-reassign + } + + while (value < 1) { + exponent -= 1; + value *= 2; // eslint-disable-line no-param-reassign + } + + var mantissa = value - 1; + mantissa *= $pow(2, 23) + 0.5; + mantissa = $floor(mantissa); + + exponent += 127; + exponent <<= 23; + + var result = (sign << 31) + | exponent + | mantissa; + + var byte0 = result & 255; + result >>= 8; + var byte1 = result & 255; + result >>= 8; + var byte2 = result & 255; + result >>= 8; + var byte3 = result & 255; + + if (isLittleEndian) { + return [byte0, byte1, byte2, byte3]; + } + return [byte3, byte2, byte1, byte0]; +}; diff --git a/node_modules/es-abstract/helpers/valueToFloat64Bytes.js b/node_modules/es-abstract/helpers/valueToFloat64Bytes.js new file mode 100644 index 0000000000..3c7d75cfd2 --- /dev/null +++ b/node_modules/es-abstract/helpers/valueToFloat64Bytes.js @@ -0,0 +1,83 @@ +'use strict'; + +var GetIntrinsic = require('get-intrinsic'); + +var $parseInt = GetIntrinsic('%parseInt%'); +var $abs = GetIntrinsic('%Math.abs%'); +var $floor = GetIntrinsic('%Math.floor%'); + +var callBound = require('call-bind/callBound'); + +var $strIndexOf = callBound('String.prototype.indexOf'); +var $strSlice = callBound('String.prototype.slice'); + +var fractionToBitString = require('../helpers/fractionToBinaryString'); +var intToBinString = require('../helpers/intToBinaryString'); +var isNegativeZero = require('./isNegativeZero'); + +var float64bias = 1023; + +var elevenOnes = '11111111111'; +var elevenZeroes = '00000000000'; +var fiftyOneZeroes = elevenZeroes + elevenZeroes + elevenZeroes + elevenZeroes + '0000000'; + +// IEEE 754-1985 +module.exports = function valueToFloat64Bytes(value, isLittleEndian) { + var signBit = value < 0 || isNegativeZero(value) ? '1' : '0'; + var exponentBits; + var significandBits; + + if (isNaN(value)) { + exponentBits = elevenOnes; + significandBits = '1' + fiftyOneZeroes; + } else if (!isFinite(value)) { + exponentBits = elevenOnes; + significandBits = '0' + fiftyOneZeroes; + } else if (value === 0) { + exponentBits = elevenZeroes; + significandBits = '0' + fiftyOneZeroes; + } else { + value = $abs(value); // eslint-disable-line no-param-reassign + + // Isolate the integer part (digits before the decimal): + var integerPart = $floor(value); + + var intBinString = intToBinString(integerPart); // bit string for integer part + var fracBinString = fractionToBitString(value - integerPart); // bit string for fractional part + + var numberOfBits; + // find exponent needed to normalize integer+fractional parts + if (intBinString) { + exponentBits = intBinString.length - 1; // move the decimal to the left + } else { + var first1 = $strIndexOf(fracBinString, '1'); + if (first1 > -1) { + numberOfBits = first1 + 1; + } + exponentBits = -numberOfBits; // move the decimal to the right + } + + significandBits = intBinString + fracBinString; + if (exponentBits < 0) { + // subnormals + if (exponentBits <= -float64bias) { + numberOfBits = float64bias - 1; // limit number of removed bits + } + significandBits = $strSlice(significandBits, numberOfBits); // remove all leading 0s and the first 1 for normal values; for subnormals, remove up to `float64bias - 1` leading bits + } else { + significandBits = $strSlice(significandBits, 1); // remove the leading '1' (implicit/hidden bit) + } + exponentBits = $strSlice(elevenZeroes + intToBinString(exponentBits + float64bias), -11); // Convert the exponent to a bit string + + significandBits = $strSlice(significandBits + fiftyOneZeroes + '0', 0, 52); // fill in any trailing zeros and ensure we have only 52 fraction bits + } + + var bits = signBit + exponentBits + significandBits; + var rawBytes = []; + for (var i = 0; i < 8; i++) { + var targetIndex = isLittleEndian ? 8 - i - 1 : i; + rawBytes[targetIndex] = $parseInt($strSlice(bits, i * 8, (i + 1) * 8), 2); + } + + return rawBytes; +}; diff --git a/node_modules/es-abstract/index.js b/node_modules/es-abstract/index.js index d9efc66f0a..11bddca8c1 100644 --- a/node_modules/es-abstract/index.js +++ b/node_modules/es-abstract/index.js @@ -11,6 +11,7 @@ var ES2019 = require('./es2019'); var ES2020 = require('./es2020'); var ES2021 = require('./es2021'); var ES2022 = require('./es2022'); +var ES2023 = require('./es2023'); var ES = { ES5: ES5, @@ -23,7 +24,8 @@ var ES = { ES2019: ES2019, ES2020: ES2020, ES2021: ES2021, - ES2022: ES2022 + ES2022: ES2022, + ES2023: ES2023 }; assign(ES, ES5); delete ES.CheckObjectCoercible; // renamed in ES6 to RequireObjectCoercible diff --git a/node_modules/es-abstract/operations/2021.js b/node_modules/es-abstract/operations/2021.js index 54d0209435..7d4ff210a5 100644 --- a/node_modules/es-abstract/operations/2021.js +++ b/node_modules/es-abstract/operations/2021.js @@ -1270,6 +1270,9 @@ module.exports = { WeekDay: { url: 'https://262.ecma-international.org/12.0/#sec-week-day' }, + WordCharacters: { + url: 'https://262.ecma-international.org/12.0/#sec-runtime-semantics-wordcharacters-abstract-operation' + }, YearFromTime: { url: 'https://262.ecma-international.org/12.0/#eqn-YearFromTime' }, diff --git a/node_modules/es-abstract/operations/2022.js b/node_modules/es-abstract/operations/2022.js index d1b88ebb86..f678e68ead 100644 --- a/node_modules/es-abstract/operations/2022.js +++ b/node_modules/es-abstract/operations/2022.js @@ -1360,6 +1360,9 @@ module.exports = { WeekDay: { url: 'https://262.ecma-international.org/13.0/#sec-week-day' }, + WordCharacters: { + url: 'https://262.ecma-international.org/13.0/#sec-runtime-semantics-wordcharacters-abstract-operation' + }, YearFromTime: { url: 'https://262.ecma-international.org/13.0/#eqn-YearFromTime' }, diff --git a/node_modules/es-abstract/operations/2023.js b/node_modules/es-abstract/operations/2023.js new file mode 100644 index 0000000000..9bd85dd79b --- /dev/null +++ b/node_modules/es-abstract/operations/2023.js @@ -0,0 +1,1441 @@ +'use strict'; + +module.exports = { + abs: { + url: 'https://262.ecma-international.org/14.0/#eqn-abs' + }, + AddEntriesFromIterable: { + url: 'https://262.ecma-international.org/14.0/#sec-add-entries-from-iterable' + }, + AddRestrictedFunctionProperties: { + url: 'https://262.ecma-international.org/14.0/#sec-addrestrictedfunctionproperties' + }, + AddToKeptObjects: { + url: 'https://262.ecma-international.org/14.0/#sec-addtokeptobjects' + }, + AddWaiter: { + url: 'https://262.ecma-international.org/14.0/#sec-addwaiter' + }, + AdvanceStringIndex: { + url: 'https://262.ecma-international.org/14.0/#sec-advancestringindex' + }, + 'agent-order': { + url: 'https://262.ecma-international.org/14.0/#sec-agent-order' + }, + AgentCanSuspend: { + url: 'https://262.ecma-international.org/14.0/#sec-agentcansuspend' + }, + AgentSignifier: { + url: 'https://262.ecma-international.org/14.0/#sec-agentsignifier' + }, + AllocateArrayBuffer: { + url: 'https://262.ecma-international.org/14.0/#sec-allocatearraybuffer' + }, + AllocateSharedArrayBuffer: { + url: 'https://262.ecma-international.org/14.0/#sec-allocatesharedarraybuffer' + }, + AllocateTypedArray: { + url: 'https://262.ecma-international.org/14.0/#sec-allocatetypedarray' + }, + AllocateTypedArrayBuffer: { + url: 'https://262.ecma-international.org/14.0/#sec-allocatetypedarraybuffer' + }, + ApplyStringOrNumericBinaryOperator: { + url: 'https://262.ecma-international.org/14.0/#sec-applystringornumericbinaryoperator' + }, + ArrayCreate: { + url: 'https://262.ecma-international.org/14.0/#sec-arraycreate' + }, + ArraySetLength: { + url: 'https://262.ecma-international.org/14.0/#sec-arraysetlength' + }, + ArraySpeciesCreate: { + url: 'https://262.ecma-international.org/14.0/#sec-arrayspeciescreate' + }, + AsyncBlockStart: { + url: 'https://262.ecma-international.org/14.0/#sec-asyncblockstart' + }, + AsyncFromSyncIteratorContinuation: { + url: 'https://262.ecma-international.org/14.0/#sec-asyncfromsynciteratorcontinuation' + }, + AsyncFunctionStart: { + url: 'https://262.ecma-international.org/14.0/#sec-async-functions-abstract-operations-async-function-start' + }, + AsyncGeneratorAwaitReturn: { + url: 'https://262.ecma-international.org/14.0/#sec-asyncgeneratorawaitreturn' + }, + AsyncGeneratorCompleteStep: { + url: 'https://262.ecma-international.org/14.0/#sec-asyncgeneratorcompletestep' + }, + AsyncGeneratorDrainQueue: { + url: 'https://262.ecma-international.org/14.0/#sec-asyncgeneratordrainqueue' + }, + AsyncGeneratorEnqueue: { + url: 'https://262.ecma-international.org/14.0/#sec-asyncgeneratorenqueue' + }, + AsyncGeneratorResume: { + url: 'https://262.ecma-international.org/14.0/#sec-asyncgeneratorresume' + }, + AsyncGeneratorStart: { + url: 'https://262.ecma-international.org/14.0/#sec-asyncgeneratorstart' + }, + AsyncGeneratorUnwrapYieldResumption: { + url: 'https://262.ecma-international.org/14.0/#sec-asyncgeneratorunwrapyieldresumption' + }, + AsyncGeneratorValidate: { + url: 'https://262.ecma-international.org/14.0/#sec-asyncgeneratorvalidate' + }, + AsyncGeneratorYield: { + url: 'https://262.ecma-international.org/14.0/#sec-asyncgeneratoryield' + }, + AsyncIteratorClose: { + url: 'https://262.ecma-international.org/14.0/#sec-asynciteratorclose' + }, + AsyncModuleExecutionFulfilled: { + url: 'https://262.ecma-international.org/14.0/#sec-async-module-execution-fulfilled' + }, + AsyncModuleExecutionRejected: { + url: 'https://262.ecma-international.org/14.0/#sec-async-module-execution-rejected' + }, + AtomicReadModifyWrite: { + url: 'https://262.ecma-international.org/14.0/#sec-atomicreadmodifywrite' + }, + Await: { + url: 'https://262.ecma-international.org/14.0/#await' + }, + BackreferenceMatcher: { + url: 'https://262.ecma-international.org/14.0/#sec-backreference-matcher' + }, + 'BigInt::add': { + url: 'https://262.ecma-international.org/14.0/#sec-numeric-types-bigint-add' + }, + 'BigInt::bitwiseAND': { + url: 'https://262.ecma-international.org/14.0/#sec-numeric-types-bigint-bitwiseAND' + }, + 'BigInt::bitwiseNOT': { + url: 'https://262.ecma-international.org/14.0/#sec-numeric-types-bigint-bitwiseNOT' + }, + 'BigInt::bitwiseOR': { + url: 'https://262.ecma-international.org/14.0/#sec-numeric-types-bigint-bitwiseOR' + }, + 'BigInt::bitwiseXOR': { + url: 'https://262.ecma-international.org/14.0/#sec-numeric-types-bigint-bitwiseXOR' + }, + 'BigInt::divide': { + url: 'https://262.ecma-international.org/14.0/#sec-numeric-types-bigint-divide' + }, + 'BigInt::equal': { + url: 'https://262.ecma-international.org/14.0/#sec-numeric-types-bigint-equal' + }, + 'BigInt::exponentiate': { + url: 'https://262.ecma-international.org/14.0/#sec-numeric-types-bigint-exponentiate' + }, + 'BigInt::leftShift': { + url: 'https://262.ecma-international.org/14.0/#sec-numeric-types-bigint-leftShift' + }, + 'BigInt::lessThan': { + url: 'https://262.ecma-international.org/14.0/#sec-numeric-types-bigint-lessThan' + }, + 'BigInt::multiply': { + url: 'https://262.ecma-international.org/14.0/#sec-numeric-types-bigint-multiply' + }, + 'BigInt::remainder': { + url: 'https://262.ecma-international.org/14.0/#sec-numeric-types-bigint-remainder' + }, + 'BigInt::signedRightShift': { + url: 'https://262.ecma-international.org/14.0/#sec-numeric-types-bigint-signedRightShift' + }, + 'BigInt::subtract': { + url: 'https://262.ecma-international.org/14.0/#sec-numeric-types-bigint-subtract' + }, + 'BigInt::toString': { + url: 'https://262.ecma-international.org/14.0/#sec-numeric-types-bigint-tostring' + }, + 'BigInt::unaryMinus': { + url: 'https://262.ecma-international.org/14.0/#sec-numeric-types-bigint-unaryMinus' + }, + 'BigInt::unsignedRightShift': { + url: 'https://262.ecma-international.org/14.0/#sec-numeric-types-bigint-unsignedRightShift' + }, + BigIntBitwiseOp: { + url: 'https://262.ecma-international.org/14.0/#sec-bigintbitwiseop' + }, + BinaryAnd: { + url: 'https://262.ecma-international.org/14.0/#sec-binaryand' + }, + BinaryOr: { + url: 'https://262.ecma-international.org/14.0/#sec-binaryor' + }, + BinaryXor: { + url: 'https://262.ecma-international.org/14.0/#sec-binaryxor' + }, + BlockDeclarationInstantiation: { + url: 'https://262.ecma-international.org/14.0/#sec-blockdeclarationinstantiation' + }, + BoundFunctionCreate: { + url: 'https://262.ecma-international.org/14.0/#sec-boundfunctioncreate' + }, + ByteListBitwiseOp: { + url: 'https://262.ecma-international.org/14.0/#sec-bytelistbitwiseop' + }, + ByteListEqual: { + url: 'https://262.ecma-international.org/14.0/#sec-bytelistequal' + }, + Call: { + url: 'https://262.ecma-international.org/14.0/#sec-call' + }, + CanBeHeldWeakly: { + url: 'https://262.ecma-international.org/14.0/#sec-canbeheldweakly' + }, + Canonicalize: { + url: 'https://262.ecma-international.org/14.0/#sec-runtime-semantics-canonicalize-ch' + }, + CanonicalNumericIndexString: { + url: 'https://262.ecma-international.org/14.0/#sec-canonicalnumericindexstring' + }, + CaseClauseIsSelected: { + url: 'https://262.ecma-international.org/14.0/#sec-runtime-semantics-caseclauseisselected' + }, + CharacterRange: { + url: 'https://262.ecma-international.org/14.0/#sec-runtime-semantics-characterrange-abstract-operation' + }, + CharacterRangeOrUnion: { + url: 'https://262.ecma-international.org/14.0/#sec-runtime-semantics-characterrangeorunion-abstract-operation' + }, + CharacterSetMatcher: { + url: 'https://262.ecma-international.org/14.0/#sec-runtime-semantics-charactersetmatcher-abstract-operation' + }, + clamp: { + url: 'https://262.ecma-international.org/14.0/#clamping' + }, + CleanupFinalizationRegistry: { + url: 'https://262.ecma-international.org/14.0/#sec-cleanup-finalization-registry' + }, + ClearKeptObjects: { + url: 'https://262.ecma-international.org/14.0/#sec-clear-kept-objects' + }, + CloneArrayBuffer: { + url: 'https://262.ecma-international.org/14.0/#sec-clonearraybuffer' + }, + CodePointAt: { + url: 'https://262.ecma-international.org/14.0/#sec-codepointat' + }, + CodePointsToString: { + url: 'https://262.ecma-international.org/14.0/#sec-codepointstostring' + }, + CompareArrayElements: { + url: 'https://262.ecma-international.org/14.0/#sec-comparearrayelements' + }, + CompareTypedArrayElements: { + url: 'https://262.ecma-international.org/14.0/#sec-comparetypedarrayelements' + }, + CompletePropertyDescriptor: { + url: 'https://262.ecma-international.org/14.0/#sec-completepropertydescriptor' + }, + Completion: { + url: 'https://262.ecma-international.org/14.0/#sec-completion-ao' + }, + CompletionRecord: { + url: 'https://262.ecma-international.org/14.0/#sec-completion-record-specification-type' + }, + ComposeWriteEventBytes: { + url: 'https://262.ecma-international.org/14.0/#sec-composewriteeventbytes' + }, + Construct: { + url: 'https://262.ecma-international.org/14.0/#sec-construct' + }, + ContinueDynamicImport: { + url: 'https://262.ecma-international.org/14.0/#sec-ContinueDynamicImport' + }, + ContinueModuleLoading: { + url: 'https://262.ecma-international.org/14.0/#sec-ContinueModuleLoading' + }, + CopyDataBlockBytes: { + url: 'https://262.ecma-international.org/14.0/#sec-copydatablockbytes' + }, + CopyDataProperties: { + url: 'https://262.ecma-international.org/14.0/#sec-copydataproperties' + }, + CountLeftCapturingParensBefore: { + url: 'https://262.ecma-international.org/14.0/#sec-countleftcapturingparensbefore' + }, + CountLeftCapturingParensWithin: { + url: 'https://262.ecma-international.org/14.0/#sec-countleftcapturingparenswithin' + }, + CreateArrayFromList: { + url: 'https://262.ecma-international.org/14.0/#sec-createarrayfromlist' + }, + CreateArrayIterator: { + url: 'https://262.ecma-international.org/14.0/#sec-createarrayiterator' + }, + CreateAsyncFromSyncIterator: { + url: 'https://262.ecma-international.org/14.0/#sec-createasyncfromsynciterator' + }, + CreateAsyncIteratorFromClosure: { + url: 'https://262.ecma-international.org/14.0/#sec-createasynciteratorfromclosure' + }, + CreateBuiltinFunction: { + url: 'https://262.ecma-international.org/14.0/#sec-createbuiltinfunction' + }, + CreateByteDataBlock: { + url: 'https://262.ecma-international.org/14.0/#sec-createbytedatablock' + }, + CreateDataProperty: { + url: 'https://262.ecma-international.org/14.0/#sec-createdataproperty' + }, + CreateDataPropertyOrThrow: { + url: 'https://262.ecma-international.org/14.0/#sec-createdatapropertyorthrow' + }, + CreateDynamicFunction: { + url: 'https://262.ecma-international.org/14.0/#sec-createdynamicfunction' + }, + CreateForInIterator: { + url: 'https://262.ecma-international.org/14.0/#sec-createforiniterator' + }, + CreateHTML: { + url: 'https://262.ecma-international.org/14.0/#sec-createhtml' + }, + CreateIntrinsics: { + url: 'https://262.ecma-international.org/14.0/#sec-createintrinsics' + }, + CreateIteratorFromClosure: { + url: 'https://262.ecma-international.org/14.0/#sec-createiteratorfromclosure' + }, + CreateIterResultObject: { + url: 'https://262.ecma-international.org/14.0/#sec-createiterresultobject' + }, + CreateListFromArrayLike: { + url: 'https://262.ecma-international.org/14.0/#sec-createlistfromarraylike' + }, + CreateListIteratorRecord: { + url: 'https://262.ecma-international.org/14.0/#sec-createlistiteratorRecord' + }, + CreateMapIterator: { + url: 'https://262.ecma-international.org/14.0/#sec-createmapiterator' + }, + CreateMappedArgumentsObject: { + url: 'https://262.ecma-international.org/14.0/#sec-createmappedargumentsobject' + }, + CreateMethodProperty: { + url: 'https://262.ecma-international.org/14.0/#sec-createmethodproperty' + }, + CreateNonEnumerableDataPropertyOrThrow: { + url: 'https://262.ecma-international.org/14.0/#sec-createnonenumerabledatapropertyorthrow' + }, + CreatePerIterationEnvironment: { + url: 'https://262.ecma-international.org/14.0/#sec-createperiterationenvironment' + }, + CreateRealm: { + url: 'https://262.ecma-international.org/14.0/#sec-createrealm' + }, + CreateRegExpStringIterator: { + url: 'https://262.ecma-international.org/14.0/#sec-createregexpstringiterator' + }, + CreateResolvingFunctions: { + url: 'https://262.ecma-international.org/14.0/#sec-createresolvingfunctions' + }, + CreateSetIterator: { + url: 'https://262.ecma-international.org/14.0/#sec-createsetiterator' + }, + CreateSharedByteDataBlock: { + url: 'https://262.ecma-international.org/14.0/#sec-createsharedbytedatablock' + }, + CreateUnmappedArgumentsObject: { + url: 'https://262.ecma-international.org/14.0/#sec-createunmappedargumentsobject' + }, + DateFromTime: { + url: 'https://262.ecma-international.org/14.0/#sec-date-number' + }, + DateString: { + url: 'https://262.ecma-international.org/14.0/#sec-datestring' + }, + Day: { + url: 'https://262.ecma-international.org/14.0/#eqn-Day' + }, + DayFromYear: { + url: 'https://262.ecma-international.org/14.0/#eqn-DaysFromYear' + }, + DaysInYear: { + url: 'https://262.ecma-international.org/14.0/#eqn-DaysInYear' + }, + DayWithinYear: { + url: 'https://262.ecma-international.org/14.0/#eqn-DayWithinYear' + }, + Decode: { + url: 'https://262.ecma-international.org/14.0/#sec-decode' + }, + DefaultTimeZone: { + url: 'https://262.ecma-international.org/14.0/#sec-defaulttimezone' + }, + DefineField: { + url: 'https://262.ecma-international.org/14.0/#sec-definefield' + }, + DefineMethodProperty: { + url: 'https://262.ecma-international.org/14.0/#sec-definemethodproperty' + }, + DefinePropertyOrThrow: { + url: 'https://262.ecma-international.org/14.0/#sec-definepropertyorthrow' + }, + DeletePropertyOrThrow: { + url: 'https://262.ecma-international.org/14.0/#sec-deletepropertyorthrow' + }, + DetachArrayBuffer: { + url: 'https://262.ecma-international.org/14.0/#sec-detacharraybuffer' + }, + Encode: { + url: 'https://262.ecma-international.org/14.0/#sec-encode' + }, + EnterCriticalSection: { + url: 'https://262.ecma-international.org/14.0/#sec-entercriticalsection' + }, + EnumerableOwnProperties: { + url: 'https://262.ecma-international.org/14.0/#sec-enumerableownproperties' + }, + EnumerateObjectProperties: { + url: 'https://262.ecma-international.org/14.0/#sec-enumerate-object-properties' + }, + EscapeRegExpPattern: { + url: 'https://262.ecma-international.org/14.0/#sec-escaperegexppattern' + }, + EvalDeclarationInstantiation: { + url: 'https://262.ecma-international.org/14.0/#sec-evaldeclarationinstantiation' + }, + EvaluateCall: { + url: 'https://262.ecma-international.org/14.0/#sec-evaluatecall' + }, + EvaluateNew: { + url: 'https://262.ecma-international.org/14.0/#sec-evaluatenew' + }, + EvaluatePropertyAccessWithExpressionKey: { + url: 'https://262.ecma-international.org/14.0/#sec-evaluate-property-access-with-expression-key' + }, + EvaluatePropertyAccessWithIdentifierKey: { + url: 'https://262.ecma-international.org/14.0/#sec-evaluate-property-access-with-identifier-key' + }, + EvaluateStringOrNumericBinaryExpression: { + url: 'https://262.ecma-international.org/14.0/#sec-evaluatestringornumericbinaryexpression' + }, + EventSet: { + url: 'https://262.ecma-international.org/14.0/#sec-event-set' + }, + ExecuteAsyncModule: { + url: 'https://262.ecma-international.org/14.0/#sec-execute-async-module' + }, + '𝔽': { + url: 'https://262.ecma-international.org/14.0/#𝔽' + }, + FindViaPredicate: { + url: 'https://262.ecma-international.org/14.0/#sec-findviapredicate' + }, + FinishLoadingImportedModule: { + url: 'https://262.ecma-international.org/14.0/#sec-FinishLoadingImportedModule' + }, + FlattenIntoArray: { + url: 'https://262.ecma-international.org/14.0/#sec-flattenintoarray' + }, + floor: { + url: 'https://262.ecma-international.org/14.0/#eqn-floor' + }, + ForBodyEvaluation: { + url: 'https://262.ecma-international.org/14.0/#sec-forbodyevaluation' + }, + 'ForIn/OfBodyEvaluation': { + url: 'https://262.ecma-international.org/14.0/#sec-runtime-semantics-forin-div-ofbodyevaluation-lhs-stmt-iterator-lhskind-labelset' + }, + 'ForIn/OfHeadEvaluation': { + url: 'https://262.ecma-international.org/14.0/#sec-runtime-semantics-forinofheadevaluation' + }, + FromPropertyDescriptor: { + url: 'https://262.ecma-international.org/14.0/#sec-frompropertydescriptor' + }, + FulfillPromise: { + url: 'https://262.ecma-international.org/14.0/#sec-fulfillpromise' + }, + FunctionDeclarationInstantiation: { + url: 'https://262.ecma-international.org/14.0/#sec-functiondeclarationinstantiation' + }, + GatherAvailableAncestors: { + url: 'https://262.ecma-international.org/14.0/#sec-gather-available-ancestors' + }, + GeneratorResume: { + url: 'https://262.ecma-international.org/14.0/#sec-generatorresume' + }, + GeneratorResumeAbrupt: { + url: 'https://262.ecma-international.org/14.0/#sec-generatorresumeabrupt' + }, + GeneratorStart: { + url: 'https://262.ecma-international.org/14.0/#sec-generatorstart' + }, + GeneratorValidate: { + url: 'https://262.ecma-international.org/14.0/#sec-generatorvalidate' + }, + GeneratorYield: { + url: 'https://262.ecma-international.org/14.0/#sec-generatoryield' + }, + Get: { + url: 'https://262.ecma-international.org/14.0/#sec-get-o-p' + }, + GetActiveScriptOrModule: { + url: 'https://262.ecma-international.org/14.0/#sec-getactivescriptormodule' + }, + GetFunctionRealm: { + url: 'https://262.ecma-international.org/14.0/#sec-getfunctionrealm' + }, + GetGeneratorKind: { + url: 'https://262.ecma-international.org/14.0/#sec-getgeneratorkind' + }, + GetGlobalObject: { + url: 'https://262.ecma-international.org/14.0/#sec-getglobalobject' + }, + GetIdentifierReference: { + url: 'https://262.ecma-international.org/14.0/#sec-getidentifierreference' + }, + GetImportedModule: { + url: 'https://262.ecma-international.org/14.0/#sec-GetImportedModule' + }, + GetIterator: { + url: 'https://262.ecma-international.org/14.0/#sec-getiterator' + }, + GetIteratorFromMethod: { + url: 'https://262.ecma-international.org/14.0/#sec-getiteratorfrommethod' + }, + GetMatchIndexPair: { + url: 'https://262.ecma-international.org/14.0/#sec-getmatchindexpair' + }, + GetMatchString: { + url: 'https://262.ecma-international.org/14.0/#sec-getmatchstring' + }, + GetMethod: { + url: 'https://262.ecma-international.org/14.0/#sec-getmethod' + }, + GetModifySetValueInBuffer: { + url: 'https://262.ecma-international.org/14.0/#sec-getmodifysetvalueinbuffer' + }, + GetModuleNamespace: { + url: 'https://262.ecma-international.org/14.0/#sec-getmodulenamespace' + }, + GetNamedTimeZoneEpochNanoseconds: { + url: 'https://262.ecma-international.org/14.0/#sec-getnamedtimezoneepochnanoseconds' + }, + GetNamedTimeZoneOffsetNanoseconds: { + url: 'https://262.ecma-international.org/14.0/#sec-getnamedtimezoneoffsetnanoseconds' + }, + GetNewTarget: { + url: 'https://262.ecma-international.org/14.0/#sec-getnewtarget' + }, + GetOwnPropertyKeys: { + url: 'https://262.ecma-international.org/14.0/#sec-getownpropertykeys' + }, + GetPromiseResolve: { + url: 'https://262.ecma-international.org/14.0/#sec-getpromiseresolve' + }, + GetPrototypeFromConstructor: { + url: 'https://262.ecma-international.org/14.0/#sec-getprototypefromconstructor' + }, + GetStringIndex: { + url: 'https://262.ecma-international.org/14.0/#sec-getstringindex' + }, + GetSubstitution: { + url: 'https://262.ecma-international.org/14.0/#sec-getsubstitution' + }, + GetSuperConstructor: { + url: 'https://262.ecma-international.org/14.0/#sec-getsuperconstructor' + }, + GetTemplateObject: { + url: 'https://262.ecma-international.org/14.0/#sec-gettemplateobject' + }, + GetThisEnvironment: { + url: 'https://262.ecma-international.org/14.0/#sec-getthisenvironment' + }, + GetThisValue: { + url: 'https://262.ecma-international.org/14.0/#sec-getthisvalue' + }, + GetUTCEpochNanoseconds: { + url: 'https://262.ecma-international.org/14.0/#sec-getutcepochnanoseconds' + }, + GetV: { + url: 'https://262.ecma-international.org/14.0/#sec-getv' + }, + GetValue: { + url: 'https://262.ecma-international.org/14.0/#sec-getvalue' + }, + GetValueFromBuffer: { + url: 'https://262.ecma-international.org/14.0/#sec-getvaluefrombuffer' + }, + GetViewValue: { + url: 'https://262.ecma-international.org/14.0/#sec-getviewvalue' + }, + GetWaiterList: { + url: 'https://262.ecma-international.org/14.0/#sec-getwaiterlist' + }, + GlobalDeclarationInstantiation: { + url: 'https://262.ecma-international.org/14.0/#sec-globaldeclarationinstantiation' + }, + GroupSpecifiersThatMatch: { + url: 'https://262.ecma-international.org/14.0/#sec-groupspecifiersthatmatch' + }, + 'happens-before': { + url: 'https://262.ecma-international.org/14.0/#sec-happens-before' + }, + HasOwnProperty: { + url: 'https://262.ecma-international.org/14.0/#sec-hasownproperty' + }, + HasProperty: { + url: 'https://262.ecma-international.org/14.0/#sec-hasproperty' + }, + 'host-synchronizes-with': { + url: 'https://262.ecma-international.org/14.0/#sec-host-synchronizes-with' + }, + HostEventSet: { + url: 'https://262.ecma-international.org/14.0/#sec-hosteventset' + }, + HourFromTime: { + url: 'https://262.ecma-international.org/14.0/#eqn-HourFromTime' + }, + IfAbruptCloseIterator: { + url: 'https://262.ecma-international.org/14.0/#sec-ifabruptcloseiterator' + }, + IfAbruptRejectPromise: { + url: 'https://262.ecma-international.org/14.0/#sec-ifabruptrejectpromise' + }, + ImportedLocalNames: { + url: 'https://262.ecma-international.org/14.0/#sec-importedlocalnames' + }, + InitializeBoundName: { + url: 'https://262.ecma-international.org/14.0/#sec-initializeboundname' + }, + InitializeHostDefinedRealm: { + url: 'https://262.ecma-international.org/14.0/#sec-initializehostdefinedrealm' + }, + InitializeInstanceElements: { + url: 'https://262.ecma-international.org/14.0/#sec-initializeinstanceelements' + }, + InitializeReferencedBinding: { + url: 'https://262.ecma-international.org/14.0/#sec-initializereferencedbinding' + }, + InitializeTypedArrayFromArrayBuffer: { + url: 'https://262.ecma-international.org/14.0/#sec-initializetypedarrayfromarraybuffer' + }, + InitializeTypedArrayFromArrayLike: { + url: 'https://262.ecma-international.org/14.0/#sec-initializetypedarrayfromarraylike' + }, + InitializeTypedArrayFromList: { + url: 'https://262.ecma-international.org/14.0/#sec-initializetypedarrayfromlist' + }, + InitializeTypedArrayFromTypedArray: { + url: 'https://262.ecma-international.org/14.0/#sec-initializetypedarrayfromtypedarray' + }, + InLeapYear: { + url: 'https://262.ecma-international.org/14.0/#eqn-InLeapYear' + }, + InnerModuleEvaluation: { + url: 'https://262.ecma-international.org/14.0/#sec-innermoduleevaluation' + }, + InnerModuleLinking: { + url: 'https://262.ecma-international.org/14.0/#sec-InnerModuleLinking' + }, + InnerModuleLoading: { + url: 'https://262.ecma-international.org/14.0/#sec-InnerModuleLoading' + }, + InstallErrorCause: { + url: 'https://262.ecma-international.org/14.0/#sec-installerrorcause' + }, + InstanceofOperator: { + url: 'https://262.ecma-international.org/14.0/#sec-instanceofoperator' + }, + IntegerIndexedElementGet: { + url: 'https://262.ecma-international.org/14.0/#sec-integerindexedelementget' + }, + IntegerIndexedElementSet: { + url: 'https://262.ecma-international.org/14.0/#sec-integerindexedelementset' + }, + IntegerIndexedObjectCreate: { + url: 'https://262.ecma-international.org/14.0/#sec-integerindexedobjectcreate' + }, + InternalizeJSONProperty: { + url: 'https://262.ecma-international.org/14.0/#sec-internalizejsonproperty' + }, + Invoke: { + url: 'https://262.ecma-international.org/14.0/#sec-invoke' + }, + IsAccessorDescriptor: { + url: 'https://262.ecma-international.org/14.0/#sec-isaccessordescriptor' + }, + IsAnonymousFunctionDefinition: { + url: 'https://262.ecma-international.org/14.0/#sec-isanonymousfunctiondefinition' + }, + IsArray: { + url: 'https://262.ecma-international.org/14.0/#sec-isarray' + }, + IsBigIntElementType: { + url: 'https://262.ecma-international.org/14.0/#sec-isbigintelementtype' + }, + IsCallable: { + url: 'https://262.ecma-international.org/14.0/#sec-iscallable' + }, + IsCompatiblePropertyDescriptor: { + url: 'https://262.ecma-international.org/14.0/#sec-iscompatiblepropertydescriptor' + }, + IsConcatSpreadable: { + url: 'https://262.ecma-international.org/14.0/#sec-isconcatspreadable' + }, + IsConstructor: { + url: 'https://262.ecma-international.org/14.0/#sec-isconstructor' + }, + IsDataDescriptor: { + url: 'https://262.ecma-international.org/14.0/#sec-isdatadescriptor' + }, + IsDetachedBuffer: { + url: 'https://262.ecma-international.org/14.0/#sec-isdetachedbuffer' + }, + IsExtensible: { + url: 'https://262.ecma-international.org/14.0/#sec-isextensible-o' + }, + IsGenericDescriptor: { + url: 'https://262.ecma-international.org/14.0/#sec-isgenericdescriptor' + }, + IsInTailPosition: { + url: 'https://262.ecma-international.org/14.0/#sec-isintailposition' + }, + IsIntegralNumber: { + url: 'https://262.ecma-international.org/14.0/#sec-isintegralnumber' + }, + IsLabelledFunction: { + url: 'https://262.ecma-international.org/14.0/#sec-islabelledfunction' + }, + IsLessThan: { + url: 'https://262.ecma-international.org/14.0/#sec-islessthan' + }, + IsLooselyEqual: { + url: 'https://262.ecma-international.org/14.0/#sec-islooselyequal' + }, + IsNoTearConfiguration: { + url: 'https://262.ecma-international.org/14.0/#sec-isnotearconfiguration' + }, + IsPrivateReference: { + url: 'https://262.ecma-international.org/14.0/#sec-isprivatereference' + }, + IsPromise: { + url: 'https://262.ecma-international.org/14.0/#sec-ispromise' + }, + IsPropertyKey: { + url: 'https://262.ecma-international.org/14.0/#sec-ispropertykey' + }, + IsPropertyReference: { + url: 'https://262.ecma-international.org/14.0/#sec-ispropertyreference' + }, + IsRegExp: { + url: 'https://262.ecma-international.org/14.0/#sec-isregexp' + }, + IsSharedArrayBuffer: { + url: 'https://262.ecma-international.org/14.0/#sec-issharedarraybuffer' + }, + IsStrictlyEqual: { + url: 'https://262.ecma-international.org/14.0/#sec-isstrictlyequal' + }, + IsStringWellFormedUnicode: { + url: 'https://262.ecma-international.org/14.0/#sec-isstringwellformedunicode' + }, + IsSuperReference: { + url: 'https://262.ecma-international.org/14.0/#sec-issuperreference' + }, + IsTimeZoneOffsetString: { + url: 'https://262.ecma-international.org/14.0/#sec-istimezoneoffsetstring' + }, + IsUnclampedIntegerElementType: { + url: 'https://262.ecma-international.org/14.0/#sec-isunclampedintegerelementtype' + }, + IsUnresolvableReference: { + url: 'https://262.ecma-international.org/14.0/#sec-isunresolvablereference' + }, + IsUnsignedElementType: { + url: 'https://262.ecma-international.org/14.0/#sec-isunsignedelementtype' + }, + IsValidIntegerIndex: { + url: 'https://262.ecma-international.org/14.0/#sec-isvalidintegerindex' + }, + IsValidRegularExpressionLiteral: { + url: 'https://262.ecma-international.org/14.0/#sec-isvalidregularexpressionliteral' + }, + IsWordChar: { + url: 'https://262.ecma-international.org/14.0/#sec-runtime-semantics-iswordchar-abstract-operation' + }, + IteratorClose: { + url: 'https://262.ecma-international.org/14.0/#sec-iteratorclose' + }, + IteratorComplete: { + url: 'https://262.ecma-international.org/14.0/#sec-iteratorcomplete' + }, + IteratorNext: { + url: 'https://262.ecma-international.org/14.0/#sec-iteratornext' + }, + IteratorStep: { + url: 'https://262.ecma-international.org/14.0/#sec-iteratorstep' + }, + IteratorToList: { + url: 'https://262.ecma-international.org/14.0/#sec-iteratortolist' + }, + IteratorValue: { + url: 'https://262.ecma-international.org/14.0/#sec-iteratorvalue' + }, + KeyForSymbol: { + url: 'https://262.ecma-international.org/14.0/#sec-keyforsymbol' + }, + LeaveCriticalSection: { + url: 'https://262.ecma-international.org/14.0/#sec-leavecriticalsection' + }, + LengthOfArrayLike: { + url: 'https://262.ecma-international.org/14.0/#sec-lengthofarraylike' + }, + LocalTime: { + url: 'https://262.ecma-international.org/14.0/#sec-localtime' + }, + LoopContinues: { + url: 'https://262.ecma-international.org/14.0/#sec-loopcontinues' + }, + MakeArgGetter: { + url: 'https://262.ecma-international.org/14.0/#sec-makearggetter' + }, + MakeArgSetter: { + url: 'https://262.ecma-international.org/14.0/#sec-makeargsetter' + }, + MakeBasicObject: { + url: 'https://262.ecma-international.org/14.0/#sec-makebasicobject' + }, + MakeClassConstructor: { + url: 'https://262.ecma-international.org/14.0/#sec-makeclassconstructor' + }, + MakeConstructor: { + url: 'https://262.ecma-international.org/14.0/#sec-makeconstructor' + }, + MakeDate: { + url: 'https://262.ecma-international.org/14.0/#sec-makedate' + }, + MakeDay: { + url: 'https://262.ecma-international.org/14.0/#sec-makeday' + }, + MakeMatchIndicesIndexPairArray: { + url: 'https://262.ecma-international.org/14.0/#sec-makematchindicesindexpairarray' + }, + MakeMethod: { + url: 'https://262.ecma-international.org/14.0/#sec-makemethod' + }, + MakePrivateReference: { + url: 'https://262.ecma-international.org/14.0/#sec-makeprivatereference' + }, + MakeSuperPropertyReference: { + url: 'https://262.ecma-international.org/14.0/#sec-makesuperpropertyreference' + }, + MakeTime: { + url: 'https://262.ecma-international.org/14.0/#sec-maketime' + }, + max: { + url: 'https://262.ecma-international.org/14.0/#eqn-max' + }, + 'memory-order': { + url: 'https://262.ecma-international.org/14.0/#sec-memory-order' + }, + min: { + url: 'https://262.ecma-international.org/14.0/#eqn-min' + }, + MinFromTime: { + url: 'https://262.ecma-international.org/14.0/#eqn-MinFromTime' + }, + ModuleNamespaceCreate: { + url: 'https://262.ecma-international.org/14.0/#sec-modulenamespacecreate' + }, + modulo: { + url: 'https://262.ecma-international.org/14.0/#eqn-modulo' + }, + MonthFromTime: { + url: 'https://262.ecma-international.org/14.0/#eqn-MonthFromTime' + }, + msFromTime: { + url: 'https://262.ecma-international.org/14.0/#eqn-msFromTime' + }, + NewDeclarativeEnvironment: { + url: 'https://262.ecma-international.org/14.0/#sec-newdeclarativeenvironment' + }, + NewFunctionEnvironment: { + url: 'https://262.ecma-international.org/14.0/#sec-newfunctionenvironment' + }, + NewGlobalEnvironment: { + url: 'https://262.ecma-international.org/14.0/#sec-newglobalenvironment' + }, + NewModuleEnvironment: { + url: 'https://262.ecma-international.org/14.0/#sec-newmoduleenvironment' + }, + NewObjectEnvironment: { + url: 'https://262.ecma-international.org/14.0/#sec-newobjectenvironment' + }, + NewPrivateEnvironment: { + url: 'https://262.ecma-international.org/14.0/#sec-newprivateenvironment' + }, + NewPromiseCapability: { + url: 'https://262.ecma-international.org/14.0/#sec-newpromisecapability' + }, + NewPromiseReactionJob: { + url: 'https://262.ecma-international.org/14.0/#sec-newpromisereactionjob' + }, + NewPromiseResolveThenableJob: { + url: 'https://262.ecma-international.org/14.0/#sec-newpromiseresolvethenablejob' + }, + NormalCompletion: { + url: 'https://262.ecma-international.org/14.0/#sec-normalcompletion' + }, + NotifyWaiter: { + url: 'https://262.ecma-international.org/14.0/#sec-notifywaiter' + }, + 'Number::add': { + url: 'https://262.ecma-international.org/14.0/#sec-numeric-types-number-add' + }, + 'Number::bitwiseAND': { + url: 'https://262.ecma-international.org/14.0/#sec-numeric-types-number-bitwiseAND' + }, + 'Number::bitwiseNOT': { + url: 'https://262.ecma-international.org/14.0/#sec-numeric-types-number-bitwiseNOT' + }, + 'Number::bitwiseOR': { + url: 'https://262.ecma-international.org/14.0/#sec-numeric-types-number-bitwiseOR' + }, + 'Number::bitwiseXOR': { + url: 'https://262.ecma-international.org/14.0/#sec-numeric-types-number-bitwiseXOR' + }, + 'Number::divide': { + url: 'https://262.ecma-international.org/14.0/#sec-numeric-types-number-divide' + }, + 'Number::equal': { + url: 'https://262.ecma-international.org/14.0/#sec-numeric-types-number-equal' + }, + 'Number::exponentiate': { + url: 'https://262.ecma-international.org/14.0/#sec-numeric-types-number-exponentiate' + }, + 'Number::leftShift': { + url: 'https://262.ecma-international.org/14.0/#sec-numeric-types-number-leftShift' + }, + 'Number::lessThan': { + url: 'https://262.ecma-international.org/14.0/#sec-numeric-types-number-lessThan' + }, + 'Number::multiply': { + url: 'https://262.ecma-international.org/14.0/#sec-numeric-types-number-multiply' + }, + 'Number::remainder': { + url: 'https://262.ecma-international.org/14.0/#sec-numeric-types-number-remainder' + }, + 'Number::sameValue': { + url: 'https://262.ecma-international.org/14.0/#sec-numeric-types-number-sameValue' + }, + 'Number::sameValueZero': { + url: 'https://262.ecma-international.org/14.0/#sec-numeric-types-number-sameValueZero' + }, + 'Number::signedRightShift': { + url: 'https://262.ecma-international.org/14.0/#sec-numeric-types-number-signedRightShift' + }, + 'Number::subtract': { + url: 'https://262.ecma-international.org/14.0/#sec-numeric-types-number-subtract' + }, + 'Number::toString': { + url: 'https://262.ecma-international.org/14.0/#sec-numeric-types-number-tostring' + }, + 'Number::unaryMinus': { + url: 'https://262.ecma-international.org/14.0/#sec-numeric-types-number-unaryMinus' + }, + 'Number::unsignedRightShift': { + url: 'https://262.ecma-international.org/14.0/#sec-numeric-types-number-unsignedRightShift' + }, + NumberBitwiseOp: { + url: 'https://262.ecma-international.org/14.0/#sec-numberbitwiseop' + }, + NumberToBigInt: { + url: 'https://262.ecma-international.org/14.0/#sec-numbertobigint' + }, + NumericToRawBytes: { + url: 'https://262.ecma-international.org/14.0/#sec-numerictorawbytes' + }, + ObjectDefineProperties: { + url: 'https://262.ecma-international.org/14.0/#sec-objectdefineproperties' + }, + OrdinaryCallBindThis: { + url: 'https://262.ecma-international.org/14.0/#sec-ordinarycallbindthis' + }, + OrdinaryCallEvaluateBody: { + url: 'https://262.ecma-international.org/14.0/#sec-ordinarycallevaluatebody' + }, + OrdinaryCreateFromConstructor: { + url: 'https://262.ecma-international.org/14.0/#sec-ordinarycreatefromconstructor' + }, + OrdinaryDefineOwnProperty: { + url: 'https://262.ecma-international.org/14.0/#sec-ordinarydefineownproperty' + }, + OrdinaryDelete: { + url: 'https://262.ecma-international.org/14.0/#sec-ordinarydelete' + }, + OrdinaryFunctionCreate: { + url: 'https://262.ecma-international.org/14.0/#sec-ordinaryfunctioncreate' + }, + OrdinaryGet: { + url: 'https://262.ecma-international.org/14.0/#sec-ordinaryget' + }, + OrdinaryGetOwnProperty: { + url: 'https://262.ecma-international.org/14.0/#sec-ordinarygetownproperty' + }, + OrdinaryGetPrototypeOf: { + url: 'https://262.ecma-international.org/14.0/#sec-ordinarygetprototypeof' + }, + OrdinaryHasInstance: { + url: 'https://262.ecma-international.org/14.0/#sec-ordinaryhasinstance' + }, + OrdinaryHasProperty: { + url: 'https://262.ecma-international.org/14.0/#sec-ordinaryhasproperty' + }, + OrdinaryIsExtensible: { + url: 'https://262.ecma-international.org/14.0/#sec-ordinaryisextensible' + }, + OrdinaryObjectCreate: { + url: 'https://262.ecma-international.org/14.0/#sec-ordinaryobjectcreate' + }, + OrdinaryOwnPropertyKeys: { + url: 'https://262.ecma-international.org/14.0/#sec-ordinaryownpropertykeys' + }, + OrdinaryPreventExtensions: { + url: 'https://262.ecma-international.org/14.0/#sec-ordinarypreventextensions' + }, + OrdinarySet: { + url: 'https://262.ecma-international.org/14.0/#sec-ordinaryset' + }, + OrdinarySetPrototypeOf: { + url: 'https://262.ecma-international.org/14.0/#sec-ordinarysetprototypeof' + }, + OrdinarySetWithOwnDescriptor: { + url: 'https://262.ecma-international.org/14.0/#sec-ordinarysetwithowndescriptor' + }, + OrdinaryToPrimitive: { + url: 'https://262.ecma-international.org/14.0/#sec-ordinarytoprimitive' + }, + ParseHexOctet: { + url: 'https://262.ecma-international.org/14.0/#sec-parsehexoctet' + }, + ParseModule: { + url: 'https://262.ecma-international.org/14.0/#sec-parsemodule' + }, + ParsePattern: { + url: 'https://262.ecma-international.org/14.0/#sec-parsepattern' + }, + ParseScript: { + url: 'https://262.ecma-international.org/14.0/#sec-parse-script' + }, + ParseText: { + url: 'https://262.ecma-international.org/14.0/#sec-parsetext' + }, + ParseTimeZoneOffsetString: { + url: 'https://262.ecma-international.org/14.0/#sec-parsetimezoneoffsetstring' + }, + PerformEval: { + url: 'https://262.ecma-international.org/14.0/#sec-performeval' + }, + PerformPromiseAll: { + url: 'https://262.ecma-international.org/14.0/#sec-performpromiseall' + }, + PerformPromiseAllSettled: { + url: 'https://262.ecma-international.org/14.0/#sec-performpromiseallsettled' + }, + PerformPromiseAny: { + url: 'https://262.ecma-international.org/14.0/#sec-performpromiseany' + }, + PerformPromiseRace: { + url: 'https://262.ecma-international.org/14.0/#sec-performpromiserace' + }, + PerformPromiseThen: { + url: 'https://262.ecma-international.org/14.0/#sec-performpromisethen' + }, + PrepareForOrdinaryCall: { + url: 'https://262.ecma-international.org/14.0/#sec-prepareforordinarycall' + }, + PrepareForTailCall: { + url: 'https://262.ecma-international.org/14.0/#sec-preparefortailcall' + }, + PrivateElementFind: { + url: 'https://262.ecma-international.org/14.0/#sec-privateelementfind' + }, + PrivateFieldAdd: { + url: 'https://262.ecma-international.org/14.0/#sec-privatefieldadd' + }, + PrivateGet: { + url: 'https://262.ecma-international.org/14.0/#sec-privateget' + }, + PrivateMethodOrAccessorAdd: { + url: 'https://262.ecma-international.org/14.0/#sec-privatemethodoraccessoradd' + }, + PrivateSet: { + url: 'https://262.ecma-international.org/14.0/#sec-privateset' + }, + PromiseResolve: { + url: 'https://262.ecma-international.org/14.0/#sec-promise-resolve' + }, + ProxyCreate: { + url: 'https://262.ecma-international.org/14.0/#sec-proxycreate' + }, + PutValue: { + url: 'https://262.ecma-international.org/14.0/#sec-putvalue' + }, + QuoteJSONString: { + url: 'https://262.ecma-international.org/14.0/#sec-quotejsonstring' + }, + ℝ: { + url: 'https://262.ecma-international.org/14.0/#ℝ' + }, + RawBytesToNumeric: { + url: 'https://262.ecma-international.org/14.0/#sec-rawbytestonumeric' + }, + 'reads-bytes-from': { + url: 'https://262.ecma-international.org/14.0/#sec-reads-bytes-from' + }, + 'reads-from': { + url: 'https://262.ecma-international.org/14.0/#sec-reads-from' + }, + RegExpAlloc: { + url: 'https://262.ecma-international.org/14.0/#sec-regexpalloc' + }, + RegExpBuiltinExec: { + url: 'https://262.ecma-international.org/14.0/#sec-regexpbuiltinexec' + }, + RegExpCreate: { + url: 'https://262.ecma-international.org/14.0/#sec-regexpcreate' + }, + RegExpExec: { + url: 'https://262.ecma-international.org/14.0/#sec-regexpexec' + }, + RegExpHasFlag: { + url: 'https://262.ecma-international.org/14.0/#sec-regexphasflag' + }, + RegExpInitialize: { + url: 'https://262.ecma-international.org/14.0/#sec-regexpinitialize' + }, + RejectPromise: { + url: 'https://262.ecma-international.org/14.0/#sec-rejectpromise' + }, + RemoveWaiter: { + url: 'https://262.ecma-international.org/14.0/#sec-removewaiter' + }, + RemoveWaiters: { + url: 'https://262.ecma-international.org/14.0/#sec-removewaiters' + }, + RepeatMatcher: { + url: 'https://262.ecma-international.org/14.0/#sec-runtime-semantics-repeatmatcher-abstract-operation' + }, + RequireInternalSlot: { + url: 'https://262.ecma-international.org/14.0/#sec-requireinternalslot' + }, + RequireObjectCoercible: { + url: 'https://262.ecma-international.org/14.0/#sec-requireobjectcoercible' + }, + ResolveBinding: { + url: 'https://262.ecma-international.org/14.0/#sec-resolvebinding' + }, + ResolvePrivateIdentifier: { + url: 'https://262.ecma-international.org/14.0/#sec-resolve-private-identifier' + }, + ResolveThisBinding: { + url: 'https://262.ecma-international.org/14.0/#sec-resolvethisbinding' + }, + ReturnIfAbrupt: { + url: 'https://262.ecma-international.org/14.0/#sec-returnifabrupt' + }, + RoundMVResult: { + url: 'https://262.ecma-international.org/14.0/#sec-roundmvresult' + }, + SameValue: { + url: 'https://262.ecma-international.org/14.0/#sec-samevalue' + }, + SameValueNonNumber: { + url: 'https://262.ecma-international.org/14.0/#sec-samevaluenonnumber' + }, + SameValueZero: { + url: 'https://262.ecma-international.org/14.0/#sec-samevaluezero' + }, + ScriptEvaluation: { + url: 'https://262.ecma-international.org/14.0/#sec-runtime-semantics-scriptevaluation' + }, + SecFromTime: { + url: 'https://262.ecma-international.org/14.0/#eqn-SecFromTime' + }, + SerializeJSONArray: { + url: 'https://262.ecma-international.org/14.0/#sec-serializejsonarray' + }, + SerializeJSONObject: { + url: 'https://262.ecma-international.org/14.0/#sec-serializejsonobject' + }, + SerializeJSONProperty: { + url: 'https://262.ecma-international.org/14.0/#sec-serializejsonproperty' + }, + Set: { + url: 'https://262.ecma-international.org/14.0/#sec-set-o-p-v-throw' + }, + SetDefaultGlobalBindings: { + url: 'https://262.ecma-international.org/14.0/#sec-setdefaultglobalbindings' + }, + SetFunctionLength: { + url: 'https://262.ecma-international.org/14.0/#sec-setfunctionlength' + }, + SetFunctionName: { + url: 'https://262.ecma-international.org/14.0/#sec-setfunctionname' + }, + SetImmutablePrototype: { + url: 'https://262.ecma-international.org/14.0/#sec-set-immutable-prototype' + }, + SetIntegrityLevel: { + url: 'https://262.ecma-international.org/14.0/#sec-setintegritylevel' + }, + SetRealmGlobalObject: { + url: 'https://262.ecma-international.org/14.0/#sec-setrealmglobalobject' + }, + SetTypedArrayFromArrayLike: { + url: 'https://262.ecma-international.org/14.0/#sec-settypedarrayfromarraylike' + }, + SetTypedArrayFromTypedArray: { + url: 'https://262.ecma-international.org/14.0/#sec-settypedarrayfromtypedarray' + }, + SetValueInBuffer: { + url: 'https://262.ecma-international.org/14.0/#sec-setvalueinbuffer' + }, + SetViewValue: { + url: 'https://262.ecma-international.org/14.0/#sec-setviewvalue' + }, + SharedDataBlockEventSet: { + url: 'https://262.ecma-international.org/14.0/#sec-sharedatablockeventset' + }, + SortIndexedProperties: { + url: 'https://262.ecma-international.org/14.0/#sec-sortindexedproperties' + }, + SpeciesConstructor: { + url: 'https://262.ecma-international.org/14.0/#sec-speciesconstructor' + }, + StringCreate: { + url: 'https://262.ecma-international.org/14.0/#sec-stringcreate' + }, + StringGetOwnProperty: { + url: 'https://262.ecma-international.org/14.0/#sec-stringgetownproperty' + }, + StringIndexOf: { + url: 'https://262.ecma-international.org/14.0/#sec-stringindexof' + }, + StringPad: { + url: 'https://262.ecma-international.org/14.0/#sec-stringpad' + }, + StringToBigInt: { + url: 'https://262.ecma-international.org/14.0/#sec-stringtobigint' + }, + StringToCodePoints: { + url: 'https://262.ecma-international.org/14.0/#sec-stringtocodepoints' + }, + StringToNumber: { + url: 'https://262.ecma-international.org/14.0/#sec-stringtonumber' + }, + substring: { + url: 'https://262.ecma-international.org/14.0/#substring' + }, + SuspendAgent: { + url: 'https://262.ecma-international.org/14.0/#sec-suspendagent' + }, + SymbolDescriptiveString: { + url: 'https://262.ecma-international.org/14.0/#sec-symboldescriptivestring' + }, + 'synchronizes-with': { + url: 'https://262.ecma-international.org/14.0/#sec-synchronizes-with' + }, + TemplateString: { + url: 'https://262.ecma-international.org/14.0/#sec-templatestring' + }, + TestIntegrityLevel: { + url: 'https://262.ecma-international.org/14.0/#sec-testintegritylevel' + }, + thisBigIntValue: { + url: 'https://262.ecma-international.org/14.0/#thisbigintvalue' + }, + thisBooleanValue: { + url: 'https://262.ecma-international.org/14.0/#thisbooleanvalue' + }, + thisNumberValue: { + url: 'https://262.ecma-international.org/14.0/#thisnumbervalue' + }, + thisStringValue: { + url: 'https://262.ecma-international.org/14.0/#thisstringvalue' + }, + thisSymbolValue: { + url: 'https://262.ecma-international.org/14.0/#thissymbolvalue' + }, + thisTimeValue: { + url: 'https://262.ecma-international.org/14.0/#thistimevalue' + }, + ThrowCompletion: { + url: 'https://262.ecma-international.org/14.0/#sec-throwcompletion' + }, + TimeClip: { + url: 'https://262.ecma-international.org/14.0/#sec-timeclip' + }, + TimeFromYear: { + url: 'https://262.ecma-international.org/14.0/#eqn-TimeFromYear' + }, + TimeString: { + url: 'https://262.ecma-international.org/14.0/#sec-timestring' + }, + TimeWithinDay: { + url: 'https://262.ecma-international.org/14.0/#eqn-TimeWithinDay' + }, + TimeZoneString: { + url: 'https://262.ecma-international.org/14.0/#sec-timezoneestring' + }, + ToBigInt: { + url: 'https://262.ecma-international.org/14.0/#sec-tobigint' + }, + ToBigInt64: { + url: 'https://262.ecma-international.org/14.0/#sec-tobigint64' + }, + ToBigUint64: { + url: 'https://262.ecma-international.org/14.0/#sec-tobiguint64' + }, + ToBoolean: { + url: 'https://262.ecma-international.org/14.0/#sec-toboolean' + }, + ToDateString: { + url: 'https://262.ecma-international.org/14.0/#sec-todatestring' + }, + ToIndex: { + url: 'https://262.ecma-international.org/14.0/#sec-toindex' + }, + ToInt16: { + url: 'https://262.ecma-international.org/14.0/#sec-toint16' + }, + ToInt32: { + url: 'https://262.ecma-international.org/14.0/#sec-toint32' + }, + ToInt8: { + url: 'https://262.ecma-international.org/14.0/#sec-toint8' + }, + ToIntegerOrInfinity: { + url: 'https://262.ecma-international.org/14.0/#sec-tointegerorinfinity' + }, + ToLength: { + url: 'https://262.ecma-international.org/14.0/#sec-tolength' + }, + ToNumber: { + url: 'https://262.ecma-international.org/14.0/#sec-tonumber' + }, + ToNumeric: { + url: 'https://262.ecma-international.org/14.0/#sec-tonumeric' + }, + ToObject: { + url: 'https://262.ecma-international.org/14.0/#sec-toobject' + }, + ToPrimitive: { + url: 'https://262.ecma-international.org/14.0/#sec-toprimitive' + }, + ToPropertyDescriptor: { + url: 'https://262.ecma-international.org/14.0/#sec-topropertydescriptor' + }, + ToPropertyKey: { + url: 'https://262.ecma-international.org/14.0/#sec-topropertykey' + }, + ToString: { + url: 'https://262.ecma-international.org/14.0/#sec-tostring' + }, + ToUint16: { + url: 'https://262.ecma-international.org/14.0/#sec-touint16' + }, + ToUint32: { + url: 'https://262.ecma-international.org/14.0/#sec-touint32' + }, + ToUint8: { + url: 'https://262.ecma-international.org/14.0/#sec-touint8' + }, + ToUint8Clamp: { + url: 'https://262.ecma-international.org/14.0/#sec-touint8clamp' + }, + ToZeroPaddedDecimalString: { + url: 'https://262.ecma-international.org/14.0/#sec-tozeropaddeddecimalstring' + }, + TriggerPromiseReactions: { + url: 'https://262.ecma-international.org/14.0/#sec-triggerpromisereactions' + }, + TrimString: { + url: 'https://262.ecma-international.org/14.0/#sec-trimstring' + }, + truncate: { + url: 'https://262.ecma-international.org/14.0/#eqn-truncate' + }, + Type: { + url: 'https://262.ecma-international.org/14.0/#sec-ecmascript-data-types-and-values' + }, + TypedArrayCreate: { + url: 'https://262.ecma-international.org/14.0/#typedarray-create' + }, + TypedArrayCreateSameType: { + url: 'https://262.ecma-international.org/14.0/#sec-typedarray-create-same-type' + }, + TypedArrayElementSize: { + url: 'https://262.ecma-international.org/14.0/#sec-typedarrayelementsize' + }, + TypedArrayElementType: { + url: 'https://262.ecma-international.org/14.0/#sec-typedarrayelementtype' + }, + TypedArraySpeciesCreate: { + url: 'https://262.ecma-international.org/14.0/#typedarray-species-create' + }, + UnicodeEscape: { + url: 'https://262.ecma-international.org/14.0/#sec-unicodeescape' + }, + UnicodeMatchProperty: { + url: 'https://262.ecma-international.org/14.0/#sec-runtime-semantics-unicodematchproperty-p' + }, + UnicodeMatchPropertyValue: { + url: 'https://262.ecma-international.org/14.0/#sec-runtime-semantics-unicodematchpropertyvalue-p-v' + }, + UpdateEmpty: { + url: 'https://262.ecma-international.org/14.0/#sec-updateempty' + }, + UTC: { + url: 'https://262.ecma-international.org/14.0/#sec-utc-t' + }, + UTF16EncodeCodePoint: { + url: 'https://262.ecma-international.org/14.0/#sec-utf16encodecodepoint' + }, + UTF16SurrogatePairToCodePoint: { + url: 'https://262.ecma-international.org/14.0/#sec-utf16decodesurrogatepair' + }, + ValidateAndApplyPropertyDescriptor: { + url: 'https://262.ecma-international.org/14.0/#sec-validateandapplypropertydescriptor' + }, + ValidateAtomicAccess: { + url: 'https://262.ecma-international.org/14.0/#sec-validateatomicaccess' + }, + ValidateIntegerTypedArray: { + url: 'https://262.ecma-international.org/14.0/#sec-validateintegertypedarray' + }, + ValidateNonRevokedProxy: { + url: 'https://262.ecma-international.org/14.0/#sec-validatenonrevokedproxy' + }, + ValidateTypedArray: { + url: 'https://262.ecma-international.org/14.0/#sec-validatetypedarray' + }, + ValueOfReadEvent: { + url: 'https://262.ecma-international.org/14.0/#sec-valueofreadevent' + }, + WeakRefDeref: { + url: 'https://262.ecma-international.org/14.0/#sec-weakrefderef' + }, + WeekDay: { + url: 'https://262.ecma-international.org/14.0/#sec-week-day' + }, + WordCharacters: { + url: 'https://262.ecma-international.org/14.0/#sec-wordcharacters' + }, + YearFromTime: { + url: 'https://262.ecma-international.org/14.0/#eqn-YearFromTime' + }, + Yield: { + url: 'https://262.ecma-international.org/14.0/#sec-yield' + }, + ℤ: { + url: 'https://262.ecma-international.org/14.0/#ℤ' + } +}; diff --git a/node_modules/es-abstract/operations/build-unicode.mjs b/node_modules/es-abstract/operations/build-unicode.mjs new file mode 100644 index 0000000000..f3300991b1 --- /dev/null +++ b/node_modules/es-abstract/operations/build-unicode.mjs @@ -0,0 +1,19 @@ +import fs from 'fs'; +import path from 'path'; + +import C from '@unicode/unicode-15.0.0/Case_Folding/C/symbols.js'; +import S from '@unicode/unicode-15.0.0/Case_Folding/S/symbols.js'; + +function normalize(map) { + return Object.fromEntries(Array.from(map, ([o, i]) => [i, [].concat(o)[0]])); +} + +const cases = { + C: normalize(C), + S: normalize(S), +}; + +fs.writeFileSync( + path.join(process.cwd(), './helpers/caseFolding.json'), + JSON.stringify(cases, null, '\t'), +); diff --git a/node_modules/es-abstract/package.json b/node_modules/es-abstract/package.json index 917c12b8ae..28663de8eb 100644 --- a/node_modules/es-abstract/package.json +++ b/node_modules/es-abstract/package.json @@ -1,6 +1,6 @@ { "name": "es-abstract", - "version": "1.21.1", + "version": "1.22.1", "author": { "name": "Jordan Harband", "email": "ljharb@gmail.com", @@ -26,7 +26,7 @@ "sideEffects": false, "scripts": { "prespackle": "git ls-files | xargs git check-attr spackled | grep -v 'unspecified$' | cut -d: -f1 | xargs rm || true", - "spackle": "node operations/spackle 1", + "spackle": "node operations/spackle 1 && node operations/build-unicode.mjs", "postspackle": "git ls-files | xargs git check-attr spackled | grep -v 'unspecified$' | cut -d: -f1 | xargs git add", "prepack": "npmignore --auto --commentLines=autogenerated", "prepublish": "not-in-publish || npm run prepublishOnly", @@ -35,7 +35,7 @@ "test": "npm run tests-only && npm run test:ses", "test:ses": "node test/ses-compat", "posttest": "aud --production", - "tests-only": "nyc node test", + "tests-only": "nyc node --stack-size=5120 test", "lint": "eslint .", "eccheck": "eclint check $(git ls-files | xargs find 2> /dev/null | grep -vE 'node_modules|\\.git')" }, @@ -55,13 +55,14 @@ "ES7" ], "dependencies": { + "array-buffer-byte-length": "^1.0.0", + "arraybuffer.prototype.slice": "^1.0.1", "available-typed-arrays": "^1.0.5", "call-bind": "^1.0.2", "es-set-tostringtag": "^2.0.1", "es-to-primitive": "^1.2.1", - "function-bind": "^1.1.1", "function.prototype.name": "^1.1.5", - "get-intrinsic": "^1.1.3", + "get-intrinsic": "^1.2.1", "get-symbol-description": "^1.0.0", "globalthis": "^1.0.3", "gopd": "^1.0.1", @@ -69,8 +70,8 @@ "has-property-descriptors": "^1.0.0", "has-proto": "^1.0.1", "has-symbols": "^1.0.3", - "internal-slot": "^1.0.4", - "is-array-buffer": "^3.0.1", + "internal-slot": "^1.0.5", + "is-array-buffer": "^3.0.2", "is-callable": "^1.2.7", "is-negative-zero": "^2.0.2", "is-regex": "^1.1.4", @@ -78,36 +79,44 @@ "is-string": "^1.0.7", "is-typed-array": "^1.1.10", "is-weakref": "^1.0.2", - "object-inspect": "^1.12.2", + "object-inspect": "^1.12.3", "object-keys": "^1.1.1", "object.assign": "^4.1.4", - "regexp.prototype.flags": "^1.4.3", + "regexp.prototype.flags": "^1.5.0", + "safe-array-concat": "^1.0.0", "safe-regex-test": "^1.0.0", + "string.prototype.trim": "^1.2.7", "string.prototype.trimend": "^1.0.6", "string.prototype.trimstart": "^1.0.6", + "typed-array-buffer": "^1.0.0", + "typed-array-byte-length": "^1.0.0", + "typed-array-byte-offset": "^1.0.0", "typed-array-length": "^1.0.4", "unbox-primitive": "^1.0.2", - "which-typed-array": "^1.1.9" + "which-typed-array": "^1.1.10" }, "devDependencies": { - "@ljharb/eslint-config": "^21.0.1", - "array.from": "^1.1.3", + "@ljharb/eslint-config": "^21.1.0", + "@unicode/unicode-15.0.0": "^1.3.1", + "array.from": "^1.1.4", "array.prototype.filter": "^1.0.2", "array.prototype.flatmap": "^1.3.1", "array.prototype.indexof": "^1.0.5", - "aud": "^2.0.2", - "available-regexp-flags": "^1.0.0", + "aud": "^2.0.3", + "available-regexp-flags": "^1.0.2", "cheerio": "=1.0.0-rc.3", "diff": "^5.1.0", "eclint": "^2.8.1", "es-value-fixtures": "^1.4.2", "eslint": "=8.8.0", "for-each": "^0.3.3", + "function-bind": "^1.1.1", "functions-have-names": "^1.2.3", "has-bigints": "^1.0.2", "has-strict-mode": "^1.0.1", "in-publish": "^2.0.1", - "is-core-module": "^2.11.0", + "is-core-module": "^2.12.1", + "is-registered-symbol": "^1.0.1", "make-arrow-function": "^1.2.0", "make-async-function": "^1.0.0", "make-async-generator-function": "^1.0.0", @@ -118,7 +127,7 @@ "object.fromentries": "^2.0.6", "safe-publish-latest": "^2.0.0", "ses": "^0.10.4", - "tape": "^5.6.1" + "tape": "^5.6.5" }, "testling": { "files": "test/index.js", diff --git a/node_modules/eslint-module-utils/CHANGELOG.md b/node_modules/eslint-module-utils/CHANGELOG.md index 72fa611a14..ae3588a390 100644 --- a/node_modules/eslint-module-utils/CHANGELOG.md +++ b/node_modules/eslint-module-utils/CHANGELOG.md @@ -5,6 +5,14 @@ This change log adheres to standards from [Keep a CHANGELOG](https://keepachange ## Unreleased +## v2.8.0 - 2023-04-14 + +### New +- `parse`: support flat config ([#2714], thanks [@DMartens]) + +### Fixed +- Improve performance of `fullResolve` for large projects ([#2755], thanks [@leipert]) + ## v2.7.4 - 2022-08-11 ### Fixed @@ -16,7 +24,7 @@ This change log adheres to standards from [Keep a CHANGELOG](https://keepachange ## v2.7.3 - 2022-01-26 ### Fixed -- [Fix] `parse`: restore compatibility by making the return value `ast` again ([#2350], thanks [@ljharb]) +- `parse`: restore compatibility by making the return value `ast` again ([#2350], thanks [@ljharb]) ## v2.7.2 - 2022-01-01 @@ -123,6 +131,8 @@ Yanked due to critical issue with cache key resulting from #839. ### Fixed - `unambiguous.test()` regex is now properly in multiline mode +[#2755]: https://github.com/import-js/eslint-plugin-import/pull/2755 +[#2714]: https://github.com/import-js/eslint-plugin-import/pull/2714 [#2523]: https://github.com/import-js/eslint-plugin-import/pull/2523 [#2431]: https://github.com/import-js/eslint-plugin-import/pull/2431 [#2350]: https://github.com/import-js/eslint-plugin-import/issues/2350 @@ -155,11 +165,13 @@ Yanked due to critical issue with cache key resulting from #839. [@bradzacher]: https://github.com/bradzacher [@brettz9]: https://github.com/brettz9 [@christophercurrie]: https://github.com/christophercurrie +[@DMartens]: https://github.com/DMartens [@hulkish]: https://github.com/hulkish [@Hypnosphi]: https://github.com/Hypnosphi [@iamnapo]: https://github.com/iamnapo [@JounQin]: https://github.com/JounQin [@kaiyoma]: https://github.com/kaiyoma +[@leipert]: https://github.com/leipert [@manuth]: https://github.com/manuth [@maxkomarychev]: https://github.com/maxkomarychev [@mgwalker]: https://github.com/mgwalker diff --git a/node_modules/eslint-module-utils/ModuleCache.js b/node_modules/eslint-module-utils/ModuleCache.js index a06616de9b..4b1edc0eff 100644 --- a/node_modules/eslint-module-utils/ModuleCache.js +++ b/node_modules/eslint-module-utils/ModuleCache.js @@ -1,4 +1,5 @@ 'use strict'; + exports.__esModule = true; const log = require('debug')('eslint-module-utils:ModuleCache'); @@ -23,8 +24,10 @@ class ModuleCache { if (this.map.has(cacheKey)) { const f = this.map.get(cacheKey); // check freshness - if (process.hrtime(f.lastSeen)[0] < settings.lifetime) return f.result; - } else log('cache miss for', cacheKey); + if (process.hrtime(f.lastSeen)[0] < settings.lifetime) { return f.result; } + } else { + log('cache miss for', cacheKey); + } // cache miss return undefined; } diff --git a/node_modules/eslint-module-utils/declaredScope.js b/node_modules/eslint-module-utils/declaredScope.js index ded2131e49..dd2a20149f 100644 --- a/node_modules/eslint-module-utils/declaredScope.js +++ b/node_modules/eslint-module-utils/declaredScope.js @@ -1,9 +1,10 @@ 'use strict'; + exports.__esModule = true; exports.default = function declaredScope(context, name) { const references = context.getScope().references; - const reference = references.find(x => x.identifier.name === name); - if (!reference) return undefined; + const reference = references.find((x) => x.identifier.name === name); + if (!reference) { return undefined; } return reference.resolved.scope.type; }; diff --git a/node_modules/eslint-module-utils/hash.js b/node_modules/eslint-module-utils/hash.js index fcf00de38c..b9bff25bd9 100644 --- a/node_modules/eslint-module-utils/hash.js +++ b/node_modules/eslint-module-utils/hash.js @@ -2,7 +2,9 @@ * utilities for hashing config objects. * basically iteratively updates hash with a JSON-like format */ + 'use strict'; + exports.__esModule = true; const createHash = require('crypto').createHash; @@ -10,7 +12,7 @@ const createHash = require('crypto').createHash; const stringify = JSON.stringify; function hashify(value, hash) { - if (!hash) hash = createHash('sha256'); + if (!hash) { hash = createHash('sha256'); } if (Array.isArray(value)) { hashArray(value, hash); @@ -25,7 +27,7 @@ function hashify(value, hash) { exports.default = hashify; function hashArray(array, hash) { - if (!hash) hash = createHash('sha256'); + if (!hash) { hash = createHash('sha256'); } hash.update('['); for (let i = 0; i < array.length; i++) { @@ -40,10 +42,10 @@ hashify.array = hashArray; exports.hashArray = hashArray; function hashObject(object, hash) { - if (!hash) hash = createHash('sha256'); + if (!hash) { hash = createHash('sha256'); } hash.update('{'); - Object.keys(object).sort().forEach(key => { + Object.keys(object).sort().forEach((key) => { hash.update(stringify(key)); hash.update(':'); hashify(object[key], hash); @@ -56,4 +58,3 @@ function hashObject(object, hash) { hashify.object = hashObject; exports.hashObject = hashObject; - diff --git a/node_modules/eslint-module-utils/ignore.js b/node_modules/eslint-module-utils/ignore.js index 32bbbc6249..e41d1e5a50 100644 --- a/node_modules/eslint-module-utils/ignore.js +++ b/node_modules/eslint-module-utils/ignore.js @@ -1,4 +1,5 @@ 'use strict'; + exports.__esModule = true; const extname = require('path').extname; @@ -28,7 +29,7 @@ function makeValidExtensionSet(settings) { if (!Array.isArray(parserSettings)) { throw new TypeError('"settings" for ' + parser + ' must be an array'); } - parserSettings.forEach(ext => exts.add(ext)); + parserSettings.forEach((ext) => exts.add(ext)); } } @@ -38,9 +39,9 @@ exports.getFileExtensions = makeValidExtensionSet; exports.default = function ignore(path, context) { // check extension whitelist first (cheap) - if (!hasValidExtension(path, context)) return true; + if (!hasValidExtension(path, context)) { return true; } - if (!('import/ignore' in context.settings)) return false; + if (!('import/ignore' in context.settings)) { return false; } const ignoreStrings = context.settings['import/ignore']; for (let i = 0; i < ignoreStrings.length; i++) { diff --git a/node_modules/eslint-module-utils/module-require.js b/node_modules/eslint-module-utils/module-require.js index c03671ce5a..96ef82ba51 100644 --- a/node_modules/eslint-module-utils/module-require.js +++ b/node_modules/eslint-module-utils/module-require.js @@ -1,4 +1,5 @@ 'use strict'; + exports.__esModule = true; const Module = require('module'); diff --git a/node_modules/eslint-module-utils/moduleVisitor.js b/node_modules/eslint-module-utils/moduleVisitor.js index 4d93a0199b..c312ca2d45 100644 --- a/node_modules/eslint-module-utils/moduleVisitor.js +++ b/node_modules/eslint-module-utils/moduleVisitor.js @@ -1,4 +1,5 @@ 'use strict'; + exports.__esModule = true; /** @@ -16,14 +17,14 @@ exports.default = function visitModules(visitor, options) { let ignoreRegExps = []; if (options.ignore != null) { - ignoreRegExps = options.ignore.map(p => new RegExp(p)); + ignoreRegExps = options.ignore.map((p) => new RegExp(p)); } function checkSourceValue(source, importer) { - if (source == null) return; //? + if (source == null) { return; } //? // handle ignore - if (ignoreRegExps.some(re => re.test(source.value))) return; + if (ignoreRegExps.some((re) => re.test(source.value))) { return; } // fire visitor visitor(source, importer); @@ -41,14 +42,14 @@ exports.default = function visitModules(visitor, options) { if (node.type === 'ImportExpression') { modulePath = node.source; } else if (node.type === 'CallExpression') { - if (node.callee.type !== 'Import') return; - if (node.arguments.length !== 1) return; + if (node.callee.type !== 'Import') { return; } + if (node.arguments.length !== 1) { return; } modulePath = node.arguments[0]; } - if (modulePath.type !== 'Literal') return; - if (typeof modulePath.value !== 'string') return; + if (modulePath.type !== 'Literal') { return; } + if (typeof modulePath.value !== 'string') { return; } checkSourceValue(modulePath, node); } @@ -56,32 +57,35 @@ exports.default = function visitModules(visitor, options) { // for CommonJS `require` calls // adapted from @mctep: https://git.io/v4rAu function checkCommon(call) { - if (call.callee.type !== 'Identifier') return; - if (call.callee.name !== 'require') return; - if (call.arguments.length !== 1) return; + if (call.callee.type !== 'Identifier') { return; } + if (call.callee.name !== 'require') { return; } + if (call.arguments.length !== 1) { return; } const modulePath = call.arguments[0]; - if (modulePath.type !== 'Literal') return; - if (typeof modulePath.value !== 'string') return; + if (modulePath.type !== 'Literal') { return; } + if (typeof modulePath.value !== 'string') { return; } checkSourceValue(modulePath, call); } function checkAMD(call) { - if (call.callee.type !== 'Identifier') return; - if (call.callee.name !== 'require' && - call.callee.name !== 'define') return; - if (call.arguments.length !== 2) return; + if (call.callee.type !== 'Identifier') { return; } + if (call.callee.name !== 'require' && call.callee.name !== 'define') { return; } + if (call.arguments.length !== 2) { return; } const modules = call.arguments[0]; - if (modules.type !== 'ArrayExpression') return; + if (modules.type !== 'ArrayExpression') { return; } for (const element of modules.elements) { - if (element.type !== 'Literal') continue; - if (typeof element.value !== 'string') continue; + if (element.type !== 'Literal') { continue; } + if (typeof element.value !== 'string') { continue; } - if (element.value === 'require' || - element.value === 'exports') continue; // magic modules: https://github.com/requirejs/requirejs/wiki/Differences-between-the-simplified-CommonJS-wrapper-and-standard-AMD-define#magic-modules + if ( + element.value === 'require' + || element.value === 'exports' + ) { + continue; // magic modules: https://github.com/requirejs/requirejs/wiki/Differences-between-the-simplified-CommonJS-wrapper-and-standard-AMD-define#magic-modules + } checkSourceValue(element, element); } @@ -90,20 +94,20 @@ exports.default = function visitModules(visitor, options) { const visitors = {}; if (options.esmodule) { Object.assign(visitors, { - 'ImportDeclaration': checkSource, - 'ExportNamedDeclaration': checkSource, - 'ExportAllDeclaration': checkSource, - 'CallExpression': checkImportCall, - 'ImportExpression': checkImportCall, + ImportDeclaration: checkSource, + ExportNamedDeclaration: checkSource, + ExportAllDeclaration: checkSource, + CallExpression: checkImportCall, + ImportExpression: checkImportCall, }); } if (options.commonjs || options.amd) { - const currentCallExpression = visitors['CallExpression']; - visitors['CallExpression'] = function (call) { - if (currentCallExpression) currentCallExpression(call); - if (options.commonjs) checkCommon(call); - if (options.amd) checkAMD(call); + const currentCallExpression = visitors.CallExpression; + visitors.CallExpression = function (call) { + if (currentCallExpression) { currentCallExpression(call); } + if (options.commonjs) { checkCommon(call); } + if (options.amd) { checkAMD(call); } }; } @@ -116,19 +120,19 @@ exports.default = function visitModules(visitor, options) { */ function makeOptionsSchema(additionalProperties) { const base = { - 'type': 'object', - 'properties': { - 'commonjs': { 'type': 'boolean' }, - 'amd': { 'type': 'boolean' }, - 'esmodule': { 'type': 'boolean' }, - 'ignore': { - 'type': 'array', - 'minItems': 1, - 'items': { 'type': 'string' }, - 'uniqueItems': true, + type: 'object', + properties: { + commonjs: { type: 'boolean' }, + amd: { type: 'boolean' }, + esmodule: { type: 'boolean' }, + ignore: { + type: 'array', + minItems: 1, + items: { type: 'string' }, + uniqueItems: true, }, }, - 'additionalProperties': false, + additionalProperties: false, }; if (additionalProperties) { diff --git a/node_modules/eslint-module-utils/package.json b/node_modules/eslint-module-utils/package.json index 0c0678a5ec..d56c442b1a 100644 --- a/node_modules/eslint-module-utils/package.json +++ b/node_modules/eslint-module-utils/package.json @@ -1,6 +1,6 @@ { "name": "eslint-module-utils", - "version": "2.7.4", + "version": "2.8.0", "description": "Core utilities to support eslint-plugin-import and other module-related plugins.", "engines": { "node": ">=4" diff --git a/node_modules/eslint-module-utils/parse.js b/node_modules/eslint-module-utils/parse.js index ac728ec5b2..7646b3177c 100644 --- a/node_modules/eslint-module-utils/parse.js +++ b/node_modules/eslint-module-utils/parse.js @@ -1,4 +1,5 @@ 'use strict'; + exports.__esModule = true; const moduleRequire = require('./module-require').default; @@ -23,10 +24,10 @@ function keysFromParser(parserPath, parserInstance, parsedResult) { if (parsedResult && parsedResult.visitorKeys) { return parsedResult.visitorKeys; } - if (/.*espree.*/.test(parserPath)) { + if (typeof parserPath === 'string' && (/.*espree.*/).test(parserPath)) { return parserInstance.VisitorKeys; } - if (/.*babel-eslint.*/.test(parserPath)) { + if (typeof parserPath === 'string' && (/.*babel-eslint.*/).test(parserPath)) { return getBabelEslintVisitorKeys(parserPath); } return null; @@ -51,13 +52,13 @@ function transformHashbang(text) { } exports.default = function parse(path, content, context) { + if (context == null) { throw new Error('need context to parse properly'); } - if (context == null) throw new Error('need context to parse properly'); - - let parserOptions = context.parserOptions; - const parserPath = getParserPath(path, context); + // ESLint in "flat" mode only sets context.languageOptions.parserOptions + let parserOptions = context.languageOptions && context.languageOptions.parserOptions || context.parserOptions; + const parserOrPath = getParser(path, context); - if (!parserPath) throw new Error('parserPath is required!'); + if (!parserOrPath) { throw new Error('parserPath or languageOptions.parser is required!'); } // hack: espree blows up with frozen options parserOptions = Object.assign({}, parserOptions); @@ -84,7 +85,7 @@ exports.default = function parse(path, content, context) { delete parserOptions.projects; // require the parser relative to the main module (i.e., ESLint) - const parser = moduleRequire(parserPath); + const parser = typeof parserOrPath === 'string' ? moduleRequire(parserOrPath) : parserOrPath; // replicate bom strip and hashbang transform of ESLint // https://github.com/eslint/eslint/blob/b93af98b3c417225a027cabc964c38e779adb945/lib/linter/linter.js#L779 @@ -95,7 +96,7 @@ exports.default = function parse(path, content, context) { try { const parserRaw = parser.parseForESLint(content, parserOptions); ast = parserRaw.ast; - return makeParseReturn(ast, keysFromParser(parserPath, parser, parserRaw)); + return makeParseReturn(ast, keysFromParser(parserOrPath, parser, parserRaw)); } catch (e) { console.warn(); console.warn('Error while parsing ' + parserOptions.filePath); @@ -103,19 +104,34 @@ exports.default = function parse(path, content, context) { } if (!ast || typeof ast !== 'object') { console.warn( - '`parseForESLint` from parser `' + - parserPath + - '` is invalid and will just be ignored' + // Can only be invalid for custom parser per imports/parser + '`parseForESLint` from parser `' + (typeof parserOrPath === 'string' ? parserOrPath : '`context.languageOptions.parser`') + '` is invalid and will just be ignored' ); } else { - return makeParseReturn(ast, keysFromParser(parserPath, parser, undefined)); + return makeParseReturn(ast, keysFromParser(parserOrPath, parser, undefined)); } } const ast = parser.parse(content, parserOptions); - return makeParseReturn(ast, keysFromParser(parserPath, parser, undefined)); + return makeParseReturn(ast, keysFromParser(parserOrPath, parser, undefined)); }; +function getParser(path, context) { + const parserPath = getParserPath(path, context); + if (parserPath) { + return parserPath; + } + const isFlat = context.languageOptions + && context.languageOptions.parser + && typeof context.languageOptions.parser !== 'string' + && ( + typeof context.languageOptions.parser.parse === 'function' + || typeof context.languageOptions.parser.parseForESLint === 'function' + ); + + return isFlat ? context.languageOptions.parser : null; +} + function getParserPath(path, context) { const parsers = context.settings['import/parsers']; if (parsers != null) { diff --git a/node_modules/eslint-module-utils/pkgUp.js b/node_modules/eslint-module-utils/pkgUp.js index 049869719b..889f62265f 100644 --- a/node_modules/eslint-module-utils/pkgUp.js +++ b/node_modules/eslint-module-utils/pkgUp.js @@ -1,4 +1,5 @@ 'use strict'; + exports.__esModule = true; const fs = require('fs'); @@ -6,22 +7,22 @@ const path = require('path'); /** * Derived significantly from package find-up@2.0.0. See license below. - * + * * @copyright Sindre Sorhus * MIT License * * Copyright (c) Sindre Sorhus (https://sindresorhus.com) - * + * * Permission is hereby granted, free of charge, to any person obtaining a copy * of this software and associated documentation files (the "Software"), to deal * in the Software without restriction, including without limitation the rights * to use, copy, modify, merge, publish, distribute, sublicense, and/or sell * copies of the Software, and to permit persons to whom the Software is * furnished to do so, subject to the following conditions: - * + * * The above copyright notice and this permission notice shall be included in * all copies or substantial portions of the Software. - * + * * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE diff --git a/node_modules/eslint-module-utils/readPkgUp.js b/node_modules/eslint-module-utils/readPkgUp.js index 6a6a1eea3e..d34fa6c818 100644 --- a/node_modules/eslint-module-utils/readPkgUp.js +++ b/node_modules/eslint-module-utils/readPkgUp.js @@ -1,4 +1,5 @@ 'use strict'; + exports.__esModule = true; const fs = require('fs'); @@ -10,22 +11,22 @@ function stripBOM(str) { /** * Derived significantly from read-pkg-up@2.0.0. See license below. - * + * * @copyright Sindre Sorhus * MIT License * * Copyright (c) Sindre Sorhus (https://sindresorhus.com) - * + * * Permission is hereby granted, free of charge, to any person obtaining a copy * of this software and associated documentation files (the "Software"), to deal * in the Software without restriction, including without limitation the rights * to use, copy, modify, merge, publish, distribute, sublicense, and/or sell * copies of the Software, and to permit persons to whom the Software is * furnished to do so, subject to the following conditions: - * + * * The above copyright notice and this permission notice shall be included in * all copies or substantial portions of the Software. - * + * * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE diff --git a/node_modules/eslint-module-utils/resolve.js b/node_modules/eslint-module-utils/resolve.js index 4a35c6a472..0ed5bdb0c9 100644 --- a/node_modules/eslint-module-utils/resolve.js +++ b/node_modules/eslint-module-utils/resolve.js @@ -1,4 +1,5 @@ 'use strict'; + exports.__esModule = true; const fs = require('fs'); @@ -53,16 +54,16 @@ function tryRequire(target, sourceFile) { // https://stackoverflow.com/a/27382838 exports.fileExistsWithCaseSync = function fileExistsWithCaseSync(filepath, cacheSettings, strict) { // don't care if the FS is case-sensitive - if (CASE_SENSITIVE_FS) return true; + if (CASE_SENSITIVE_FS) { return true; } // null means it resolved to a builtin - if (filepath === null) return true; - if (filepath.toLowerCase() === process.cwd().toLowerCase() && !strict) return true; + if (filepath === null) { return true; } + if (filepath.toLowerCase() === process.cwd().toLowerCase() && !strict) { return true; } const parsedPath = path.parse(filepath); const dir = parsedPath.dir; let result = fileExistsCache.get(filepath, cacheSettings); - if (result != null) return result; + if (result != null) { return result; } // base case if (dir === '' || parsedPath.root === filepath) { @@ -83,51 +84,47 @@ function relative(modulePath, sourceFile, settings) { return fullResolve(modulePath, sourceFile, settings).path; } +let prevSettings = null; +let memoizedHash = ''; function fullResolve(modulePath, sourceFile, settings) { // check if this is a bonus core module const coreSet = new Set(settings['import/core-modules']); - if (coreSet.has(modulePath)) return { found: true, path: null }; + if (coreSet.has(modulePath)) { return { found: true, path: null }; } const sourceDir = path.dirname(sourceFile); - const cacheKey = sourceDir + hashObject(settings).digest('hex') + modulePath; + + if (prevSettings !== settings) { + memoizedHash = hashObject(settings).digest('hex'); + prevSettings = settings; + } + + const cacheKey = sourceDir + memoizedHash + modulePath; const cacheSettings = ModuleCache.getSettings(settings); const cachedPath = fileExistsCache.get(cacheKey, cacheSettings); - if (cachedPath !== undefined) return { found: true, path: cachedPath }; + if (cachedPath !== undefined) { return { found: true, path: cachedPath }; } function cache(resolvedPath) { fileExistsCache.set(cacheKey, resolvedPath); } function withResolver(resolver, config) { - - function v1() { - try { - const resolved = resolver.resolveImport(modulePath, sourceFile, config); - if (resolved === undefined) return { found: false }; - return { found: true, path: resolved }; - } catch (err) { - return { found: false }; - } - } - - function v2() { + if (resolver.interfaceVersion === 2) { return resolver.resolve(modulePath, sourceFile, config); } - switch (resolver.interfaceVersion) { - case 2: - return v2(); - - default: - case 1: - return v1(); + try { + const resolved = resolver.resolveImport(modulePath, sourceFile, config); + if (resolved === undefined) { return { found: false }; } + return { found: true, path: resolved }; + } catch (err) { + return { found: false }; } } - const configResolvers = (settings['import/resolver'] - || { 'node': settings['import/resolve'] }); // backward compatibility + const configResolvers = settings['import/resolver'] + || { node: settings['import/resolve'] }; // backward compatibility const resolvers = resolverReducer(configResolvers, new Map()); @@ -137,7 +134,7 @@ function fullResolve(modulePath, sourceFile, settings) { const resolver = requireResolver(name, sourceFile); const resolved = withResolver(resolver, config); - if (!resolved.found) continue; + if (!resolved.found) { continue; } // else, counts cache(resolved.path); @@ -152,7 +149,7 @@ exports.relative = relative; function resolverReducer(resolvers, map) { if (Array.isArray(resolvers)) { - resolvers.forEach(r => resolverReducer(r, map)); + resolvers.forEach((r) => resolverReducer(r, map)); return map; } @@ -178,9 +175,9 @@ function getBaseDir(sourceFile) { } function requireResolver(name, sourceFile) { // Try to resolve package with conventional name - const resolver = tryRequire(`eslint-import-resolver-${name}`, sourceFile) || - tryRequire(name, sourceFile) || - tryRequire(path.resolve(getBaseDir(sourceFile), name)); + const resolver = tryRequire(`eslint-import-resolver-${name}`, sourceFile) + || tryRequire(name, sourceFile) + || tryRequire(path.resolve(getBaseDir(sourceFile), name)); if (!resolver) { const err = new Error(`unable to load resolver "${name}".`); diff --git a/node_modules/eslint-module-utils/unambiguous.js b/node_modules/eslint-module-utils/unambiguous.js index 75f21693b7..24cb123157 100644 --- a/node_modules/eslint-module-utils/unambiguous.js +++ b/node_modules/eslint-module-utils/unambiguous.js @@ -1,4 +1,5 @@ 'use strict'; + exports.__esModule = true; const pattern = /(^|;)\s*(export|import)((\s+\w)|(\s*[{*=]))|import\(/m; @@ -25,5 +26,5 @@ const unambiguousNodeType = /^(?:(?:Exp|Imp)ort.*Declaration|TSExportAssignment) * @return {Boolean} */ exports.isModule = function isUnambiguousModule(ast) { - return ast.body && ast.body.some(node => unambiguousNodeType.test(node.type)); + return ast.body && ast.body.some((node) => unambiguousNodeType.test(node.type)); }; diff --git a/node_modules/eslint-module-utils/visit.js b/node_modules/eslint-module-utils/visit.js index 77b09850ae..6178faeaa0 100644 --- a/node_modules/eslint-module-utils/visit.js +++ b/node_modules/eslint-module-utils/visit.js @@ -1,4 +1,5 @@ 'use strict'; + exports.__esModule = true; exports.default = function visit(node, keys, visitorSpec) { diff --git a/node_modules/eslint-plugin-import/CHANGELOG.md b/node_modules/eslint-plugin-import/CHANGELOG.md index 9d63f05558..b7af776f86 100644 --- a/node_modules/eslint-plugin-import/CHANGELOG.md +++ b/node_modules/eslint-plugin-import/CHANGELOG.md @@ -6,6 +6,28 @@ This change log adheres to standards from [Keep a CHANGELOG](https://keepachange ## [Unreleased] +## [2.28.0] - 2023-07-27 + +### Fixed +- [`no-duplicates`]: remove duplicate identifiers in duplicate imports ([#2577], thanks [@joe-matsec]) +- [`consistent-type-specifier-style`]: fix accidental removal of comma in certain cases ([#2754], thanks [@bradzacher]) +- [Perf] `ExportMap`: Improve `ExportMap.for` performance on larger codebases ([#2756], thanks [@leipert]) +- [`no-extraneous-dependencies`]/TypeScript: do not error when importing inline type from dev dependencies ([#1820], thanks [@andyogo]) +- [`newline-after-import`]/TypeScript: do not error when re-exporting a namespaced import ([#2832], thanks [@laurens-dg]) +- [`order`]: partial fix for [#2687] (thanks [@ljharb]) +- [`no-duplicates`]: Detect across type and regular imports ([#2835], thanks [@benkrejci]) +- [`extensions`]: handle `.` and `..` properly ([#2778], thanks [@benasher44]) +- [`no-unused-modules`]: improve schema (thanks [@ljharb]) +- [`no-unused-modules`]: report error on binding instead of parent export ([#2842], thanks [@Chamion]) + +### Changed +- [Docs] [`no-duplicates`]: fix example schema ([#2684], thanks [@simmo]) +- [Docs] [`group-exports`]: fix syntax highlighting ([#2699], thanks [@devinrhode2]) +- [Docs] [`extensions`]: reference node ESM behavior ([#2748], thanks [@xM8WVqaG]) +- [Refactor] [`exports-last`]: use `array.prototype.findlastindex` (thanks [@ljharb]) +- [Refactor] [`no-anonymous-default-export`]: use `object.fromentries` (thanks [@ljharb]) +- [Refactor] [`no-unused-modules`]: use `array.prototype.flatmap` (thanks [@ljharb]) + ## [2.27.5] - 2023-01-16 ### Fixed @@ -1057,6 +1079,15 @@ for info on changes for earlier releases. [`memo-parser`]: ./memo-parser/README.md +[#2842]: https://github.com/import-js/eslint-plugin-import/pull/2842 +[#2835]: https://github.com/import-js/eslint-plugin-import/pull/2835 +[#2832]: https://github.com/import-js/eslint-plugin-import/pull/2832 +[#2778]: https://github.com/import-js/eslint-plugin-import/pull/2778 +[#2756]: https://github.com/import-js/eslint-plugin-import/pull/2756 +[#2754]: https://github.com/import-js/eslint-plugin-import/pull/2754 +[#2748]: https://github.com/import-js/eslint-plugin-import/pull/2748 +[#2735]: https://github.com/import-js/eslint-plugin-import/pull/2735 +[#2699]: https://github.com/import-js/eslint-plugin-import/pull/2699 [#2664]: https://github.com/import-js/eslint-plugin-import/pull/2664 [#2613]: https://github.com/import-js/eslint-plugin-import/pull/2613 [#2608]: https://github.com/import-js/eslint-plugin-import/pull/2608 @@ -1381,10 +1412,13 @@ for info on changes for earlier releases. [#211]: https://github.com/import-js/eslint-plugin-import/pull/211 [#164]: https://github.com/import-js/eslint-plugin-import/pull/164 [#157]: https://github.com/import-js/eslint-plugin-import/pull/157 +[#2687]: https://github.com/import-js/eslint-plugin-import/issues/2687 +[#2684]: https://github.com/import-js/eslint-plugin-import/issues/2684 [#2674]: https://github.com/import-js/eslint-plugin-import/issues/2674 [#2668]: https://github.com/import-js/eslint-plugin-import/issues/2668 [#2666]: https://github.com/import-js/eslint-plugin-import/issues/2666 [#2665]: https://github.com/import-js/eslint-plugin-import/issues/2665 +[#2577]: https://github.com/import-js/eslint-plugin-import/issues/2577 [#2444]: https://github.com/import-js/eslint-plugin-import/issues/2444 [#2412]: https://github.com/import-js/eslint-plugin-import/issues/2412 [#2392]: https://github.com/import-js/eslint-plugin-import/issues/2392 @@ -1503,7 +1537,8 @@ for info on changes for earlier releases. [#119]: https://github.com/import-js/eslint-plugin-import/issues/119 [#89]: https://github.com/import-js/eslint-plugin-import/issues/89 -[Unreleased]: https://github.com/import-js/eslint-plugin-import/compare/v2.27.5...HEAD +[Unreleased]: https://github.com/import-js/eslint-plugin-import/compare/v2.28.0...HEAD +[2.28.0]: https://github.com/import-js/eslint-plugin-import/compare/v2.27.5...v2.28.0 [2.27.5]: https://github.com/import-js/eslint-plugin-import/compare/v2.27.4...v2.27.5 [2.27.4]: https://github.com/import-js/eslint-plugin-import/compare/v2.27.3...v2.27.4 [2.27.3]: https://github.com/import-js/eslint-plugin-import/compare/v2.27.2...v2.27.3 @@ -1609,6 +1644,7 @@ for info on changes for earlier releases. [@alexgorbatchev]: https://github.com/alexgorbatchev [@andreubotella]: https://github.com/andreubotella [@AndrewLeedham]: https://github.com/AndrewLeedham +[@andyogo]: https://github.com/andyogo [@aravindet]: https://github.com/aravindet [@arvigeus]: https://github.com/arvigeus [@asapach]: https://github.com/asapach @@ -1621,6 +1657,8 @@ for info on changes for earlier releases. [@BarryThePenguin]: https://github.com/BarryThePenguin [@be5invis]: https://github.com/be5invis [@beatrizrezener]: https://github.com/beatrizrezener +[@benasher44]: https://github.com/benasher44 +[@benkrejci]: https://github.com/benkrejci [@benmosher]: https://github.com/benmosher [@benmunro]: https://github.com/benmunro [@BenoitZugmeyer]: https://github.com/BenoitZugmeyer @@ -1633,6 +1671,7 @@ for info on changes for earlier releases. [@bradzacher]: https://github.com/bradzacher [@brendo]: https://github.com/brendo [@brettz9]: https://github.com/brettz9 +[@Chamion]: https://github.com/Chamion [@charlessuh]: https://github.com/charlessuh [@charpeni]: https://github.com/charpeni [@cherryblossom000]: https://github.com/cherryblossom000 @@ -1645,6 +1684,7 @@ for info on changes for earlier releases. [@darkartur]: https://github.com/darkartur [@davidbonnet]: https://github.com/davidbonnet [@dbrewer5]: https://github.com/dbrewer5 +[@devinrhode2]: https://github.com/devinrhode2 [@devongovett]: https://github.com/devongovett [@dmnd]: https://github.com/dmnd [@duncanbeevers]: https://github.com/duncanbeevers @@ -1699,6 +1739,7 @@ for info on changes for earlier releases. [@jimbolla]: https://github.com/jimbolla [@jkimbo]: https://github.com/jkimbo [@joaovieira]: https://github.com/joaovieira +[@joe-matsec]: https://github.com/joe-matsec [@johndevedu]: https://github.com/johndevedu [@johnthagen]: https://github.com/johnthagen [@jonboiser]: https://github.com/jonboiser @@ -1720,7 +1761,9 @@ for info on changes for earlier releases. [@KostyaZgara]: https://github.com/KostyaZgara [@kylemh]: https://github.com/kylemh [@laysent]: https://github.com/laysent +[@laurens-dg]: https://github.com/laurens-dg [@le0nik]: https://github.com/le0nik +[@leipert]: https://github.com/leipert [@lemonmade]: https://github.com/lemonmade [@lencioni]: https://github.com/lencioni [@leonardodino]: https://github.com/leonardodino @@ -1800,6 +1843,7 @@ for info on changes for earlier releases. [@sheepsteak]: https://github.com/sheepsteak [@silviogutierrez]: https://github.com/silviogutierrez [@SimenB]: https://github.com/SimenB +[@simmo]: https://github.com/simmo [@sindresorhus]: https://github.com/sindresorhus [@singles]: https://github.com/singles [@skozin]: https://github.com/skozin @@ -1837,6 +1881,7 @@ for info on changes for earlier releases. [@wKich]: https://github.com/wKich [@wschurman]: https://github.com/wschurman [@wtgtybhertgeghgtwtg]: https://github.com/wtgtybhertgeghgtwtg +[@xM8WVqaG]: https://github.com/xM8WVqaG [@xpl]: https://github.com/xpl [@yordis]: https://github.com/yordis [@zloirock]: https://github.com/zloirock diff --git a/node_modules/eslint-plugin-import/README.md b/node_modules/eslint-plugin-import/README.md index 5c6f1a3211..ca99b8fafb 100644 --- a/node_modules/eslint-plugin-import/README.md +++ b/node_modules/eslint-plugin-import/README.md @@ -355,7 +355,7 @@ directly using webpack, for example: # .eslintrc.yml settings: import/parsers: - @typescript-eslint/parser: [ .ts, .tsx ] + "@typescript-eslint/parser": [ .ts, .tsx ] ``` In this case, [`@typescript-eslint/parser`](https://www.npmjs.com/package/@typescript-eslint/parser) diff --git a/node_modules/eslint-plugin-import/config/typescript.js b/node_modules/eslint-plugin-import/config/typescript.js index ed03fb3f6c..9fd789dbf7 100644 --- a/node_modules/eslint-plugin-import/config/typescript.js +++ b/node_modules/eslint-plugin-import/config/typescript.js @@ -16,8 +16,8 @@ module.exports = { '@typescript-eslint/parser': ['.ts', '.tsx'], }, 'import/resolver': { - 'node': { - 'extensions': allExtensions, + node: { + extensions: allExtensions, }, }, }, diff --git a/node_modules/eslint-plugin-import/docs/rules/extensions.md b/node_modules/eslint-plugin-import/docs/rules/extensions.md index 9e78b8c70f..df4f341287 100644 --- a/node_modules/eslint-plugin-import/docs/rules/extensions.md +++ b/node_modules/eslint-plugin-import/docs/rules/extensions.md @@ -2,7 +2,7 @@ -Some file resolve algorithms allow you to omit the file extension within the import source path. For example the `node` resolver can resolve `./foo/bar` to the absolute path `/User/someone/foo/bar.js` because the `.js` extension is resolved automatically by default. Depending on the resolver you can configure more extensions to get resolved automatically. +Some file resolve algorithms allow you to omit the file extension within the import source path. For example the `node` resolver (which does not yet support ESM/`import`) can resolve `./foo/bar` to the absolute path `/User/someone/foo/bar.js` because the `.js` extension is resolved automatically by default in CJS. Depending on the resolver you can configure more extensions to get resolved automatically. In order to provide a consistent use of file extensions across your code base, this rule can enforce or disallow the use of certain file extensions. @@ -170,3 +170,5 @@ import foo from '@/foo'; ## When Not To Use It If you are not concerned about a consistent usage of file extension. + +In the future, when this rule supports native node ESM resolution, and the plugin is configured to use native rather than transpiled ESM (a config option that is not yet available) - setting this to `always` will have no effect. diff --git a/node_modules/eslint-plugin-import/docs/rules/group-exports.md b/node_modules/eslint-plugin-import/docs/rules/group-exports.md index c5a23cd218..67e76de2fe 100644 --- a/node_modules/eslint-plugin-import/docs/rules/group-exports.md +++ b/node_modules/eslint-plugin-import/docs/rules/group-exports.md @@ -62,7 +62,7 @@ test.another = true module.exports = test ``` -```flow js +```ts const first = true; type firstType = boolean @@ -105,7 +105,7 @@ module.exports.first = true module.exports.second = true ``` -```flow js +```ts type firstType = boolean type secondType = any diff --git a/node_modules/eslint-plugin-import/docs/rules/no-duplicates.md b/node_modules/eslint-plugin-import/docs/rules/no-duplicates.md index 553fbbcc34..dd741c21a5 100644 --- a/node_modules/eslint-plugin-import/docs/rules/no-duplicates.md +++ b/node_modules/eslint-plugin-import/docs/rules/no-duplicates.md @@ -79,17 +79,22 @@ Config: -❌ Invalid `["error", "prefer-inline"]` +❌ Invalid `["error", {"prefer-inline": true}]` ```js import { AValue, type AType } from './mama-mia' import type { BType } from './mama-mia' + +import { CValue } from './papa-mia' +import type { CType } from './papa-mia' ``` -✅ Valid with `["error", "prefer-inline"]` +✅ Valid with `["error", {"prefer-inline": true}]` ```js import { AValue, type AType, type BType } from './mama-mia' + +import { CValue, type CType } from './papa-mia' ``` diff --git a/node_modules/eslint-plugin-import/docs/rules/no-extraneous-dependencies.md b/node_modules/eslint-plugin-import/docs/rules/no-extraneous-dependencies.md index 68cd4b154f..660875d1da 100644 --- a/node_modules/eslint-plugin-import/docs/rules/no-extraneous-dependencies.md +++ b/node_modules/eslint-plugin-import/docs/rules/no-extraneous-dependencies.md @@ -12,6 +12,7 @@ Modules have to be installed for this rule to work. This rule supports the following options: `devDependencies`: If set to `false`, then the rule will show an error when `devDependencies` are imported. Defaults to `true`. +Type imports are ignored by default. `optionalDependencies`: If set to `false`, then the rule will show an error when `optionalDependencies` are imported. Defaults to `true`. diff --git a/node_modules/eslint-plugin-import/docs/rules/no-unused-modules.md b/node_modules/eslint-plugin-import/docs/rules/no-unused-modules.md index 5cd24bef41..a8e1a3c182 100644 --- a/node_modules/eslint-plugin-import/docs/rules/no-unused-modules.md +++ b/node_modules/eslint-plugin-import/docs/rules/no-unused-modules.md @@ -12,7 +12,7 @@ Reports: ### Usage -In order for this plugin to work, one of the options `missingExports` or `unusedExports` must be enabled (see "Options" section below). In the future, these options will be enabled by default (see https://github.com/import-js/eslint-plugin-import/issues/1324) +In order for this plugin to work, at least one of the options `missingExports` or `unusedExports` must be enabled (see "Options" section below). In the future, these options will be enabled by default (see https://github.com/import-js/eslint-plugin-import/issues/1324) Example: ``` diff --git a/node_modules/eslint-plugin-import/lib/ExportMap.js b/node_modules/eslint-plugin-import/lib/ExportMap.js index 31ff192219..ad841b8593 100644 --- a/node_modules/eslint-plugin-import/lib/ExportMap.js +++ b/node_modules/eslint-plugin-import/lib/ExportMap.js @@ -748,7 +748,7 @@ -recursivePatternCapture = recursivePatternCapture;var _fs = require('fs');var _fs2 = _interopRequireDefault(_fs);var _path = require('path');var _doctrine = require('doctrine');var _doctrine2 = _interopRequireDefault(_doctrine);var _debug = require('debug');var _debug2 = _interopRequireDefault(_debug);var _eslint = require('eslint');var _parse = require('eslint-module-utils/parse');var _parse2 = _interopRequireDefault(_parse);var _visit = require('eslint-module-utils/visit');var _visit2 = _interopRequireDefault(_visit);var _resolve = require('eslint-module-utils/resolve');var _resolve2 = _interopRequireDefault(_resolve);var _ignore = require('eslint-module-utils/ignore');var _ignore2 = _interopRequireDefault(_ignore);var _hash = require('eslint-module-utils/hash');var _unambiguous = require('eslint-module-utils/unambiguous');var unambiguous = _interopRequireWildcard(_unambiguous);var _tsconfigLoader = require('tsconfig-paths/lib/tsconfig-loader');var _arrayIncludes = require('array-includes');var _arrayIncludes2 = _interopRequireDefault(_arrayIncludes);function _interopRequireWildcard(obj) {if (obj && obj.__esModule) {return obj;} else {var newObj = {};if (obj != null) {for (var key in obj) {if (Object.prototype.hasOwnProperty.call(obj, key)) newObj[key] = obj[key];}}newObj['default'] = obj;return newObj;}}function _interopRequireDefault(obj) {return obj && obj.__esModule ? obj : { 'default': obj };}function _classCallCheck(instance, Constructor) {if (!(instance instanceof Constructor)) {throw new TypeError("Cannot call a class as a function");}}var ts = void 0;var log = (0, _debug2['default'])('eslint-plugin-import:ExportMap');var exportCache = new Map();var tsConfigCache = new Map();var ExportMap = function () {function ExportMap(path) {_classCallCheck(this, ExportMap);this.path = path;this.namespace = new Map(); // todo: restructure to key on path, value is resolver + map of names +recursivePatternCapture = recursivePatternCapture;var _fs = require('fs');var _fs2 = _interopRequireDefault(_fs);var _path = require('path');var _doctrine = require('doctrine');var _doctrine2 = _interopRequireDefault(_doctrine);var _debug = require('debug');var _debug2 = _interopRequireDefault(_debug);var _eslint = require('eslint');var _parse = require('eslint-module-utils/parse');var _parse2 = _interopRequireDefault(_parse);var _visit = require('eslint-module-utils/visit');var _visit2 = _interopRequireDefault(_visit);var _resolve = require('eslint-module-utils/resolve');var _resolve2 = _interopRequireDefault(_resolve);var _ignore = require('eslint-module-utils/ignore');var _ignore2 = _interopRequireDefault(_ignore);var _hash = require('eslint-module-utils/hash');var _unambiguous = require('eslint-module-utils/unambiguous');var unambiguous = _interopRequireWildcard(_unambiguous);var _tsconfigLoader = require('tsconfig-paths/lib/tsconfig-loader');var _arrayIncludes = require('array-includes');var _arrayIncludes2 = _interopRequireDefault(_arrayIncludes);function _interopRequireWildcard(obj) {if (obj && obj.__esModule) {return obj;} else {var newObj = {};if (obj != null) {for (var key in obj) {if (Object.prototype.hasOwnProperty.call(obj, key)) newObj[key] = obj[key];}}newObj['default'] = obj;return newObj;}}function _interopRequireDefault(obj) {return obj && obj.__esModule ? obj : { 'default': obj };}function _classCallCheck(instance, Constructor) {if (!(instance instanceof Constructor)) {throw new TypeError("Cannot call a class as a function");}}var ts = void 0;var log = (0, _debug2['default'])('eslint-plugin-import:ExportMap');var exportCache = new Map();var tsconfigCache = new Map();var ExportMap = function () {function ExportMap(path) {_classCallCheck(this, ExportMap);this.path = path;this.namespace = new Map(); // todo: restructure to key on path, value is resolver + map of names this.reexports = new Map(); /** * star-exports * @type {Set} of () => ExportMap @@ -763,43 +763,43 @@ recursivePatternCapture = recursivePatternCapture;var _fs = require('fs');var _f * if not found in the explicit namespace. * @param {string} name * @return {Boolean} true if `name` is exported by this module. - */value: function () {function has(name) {if (this.namespace.has(name)) return true;if (this.reexports.has(name)) return true; // default exports must be explicitly re-exported (#328) + */value: function () {function has(name) {if (this.namespace.has(name)) {return true;}if (this.reexports.has(name)) {return true;} // default exports must be explicitly re-exported (#328) if (name !== 'default') {var _iteratorNormalCompletion = true;var _didIteratorError = false;var _iteratorError = undefined;try {for (var _iterator = this.dependencies[Symbol.iterator](), _step; !(_iteratorNormalCompletion = (_step = _iterator.next()).done); _iteratorNormalCompletion = true) {var dep = _step.value;var innerMap = dep(); // todo: report as unresolved? - if (!innerMap) continue;if (innerMap.has(name)) return true;}} catch (err) {_didIteratorError = true;_iteratorError = err;} finally {try {if (!_iteratorNormalCompletion && _iterator['return']) {_iterator['return']();}} finally {if (_didIteratorError) {throw _iteratorError;}}}}return false;}return has;}() /** - * ensure that imported name fully resolves. - * @param {string} name - * @return {{ found: boolean, path: ExportMap[] }} - */ }, { key: 'hasDeep', value: function () {function hasDeep(name) {if (this.namespace.has(name)) return { found: true, path: [this] };if (this.reexports.has(name)) {var reexports = this.reexports.get(name);var imported = reexports.getImport(); // if import is ignored, return explicit 'null' - if (imported == null) return { found: true, path: [this] }; // safeguard against cycles, only if name matches + if (!innerMap) {continue;}if (innerMap.has(name)) {return true;}}} catch (err) {_didIteratorError = true;_iteratorError = err;} finally {try {if (!_iteratorNormalCompletion && _iterator['return']) {_iterator['return']();}} finally {if (_didIteratorError) {throw _iteratorError;}}}}return false;}return has;}() /** + * ensure that imported name fully resolves. + * @param {string} name + * @return {{ found: boolean, path: ExportMap[] }} + */ }, { key: 'hasDeep', value: function () {function hasDeep(name) {if (this.namespace.has(name)) {return { found: true, path: [this] };}if (this.reexports.has(name)) {var reexports = this.reexports.get(name);var imported = reexports.getImport(); // if import is ignored, return explicit 'null' + if (imported == null) {return { found: true, path: [this] };} // safeguard against cycles, only if name matches if (imported.path === this.path && reexports.local === name) {return { found: false, path: [this] };}var deep = imported.hasDeep(reexports.local);deep.path.unshift(this);return deep;} // default exports must be explicitly re-exported (#328) - if (name !== 'default') {var _iteratorNormalCompletion2 = true;var _didIteratorError2 = false;var _iteratorError2 = undefined;try {for (var _iterator2 = this.dependencies[Symbol.iterator](), _step2; !(_iteratorNormalCompletion2 = (_step2 = _iterator2.next()).done); _iteratorNormalCompletion2 = true) {var dep = _step2.value;var innerMap = dep();if (innerMap == null) return { found: true, path: [this] }; // todo: report as unresolved? - if (!innerMap) continue; // safeguard against cycles - if (innerMap.path === this.path) continue;var innerValue = innerMap.hasDeep(name);if (innerValue.found) {innerValue.path.unshift(this);return innerValue;}}} catch (err) {_didIteratorError2 = true;_iteratorError2 = err;} finally {try {if (!_iteratorNormalCompletion2 && _iterator2['return']) {_iterator2['return']();}} finally {if (_didIteratorError2) {throw _iteratorError2;}}}}return { found: false, path: [this] };}return hasDeep;}() }, { key: 'get', value: function () {function get(name) {if (this.namespace.has(name)) return this.namespace.get(name);if (this.reexports.has(name)) {var reexports = this.reexports.get(name);var imported = reexports.getImport(); // if import is ignored, return explicit 'null' - if (imported == null) return null; // safeguard against cycles, only if name matches - if (imported.path === this.path && reexports.local === name) return undefined;return imported.get(reexports.local);} // default exports must be explicitly re-exported (#328) + if (name !== 'default') {var _iteratorNormalCompletion2 = true;var _didIteratorError2 = false;var _iteratorError2 = undefined;try {for (var _iterator2 = this.dependencies[Symbol.iterator](), _step2; !(_iteratorNormalCompletion2 = (_step2 = _iterator2.next()).done); _iteratorNormalCompletion2 = true) {var dep = _step2.value;var innerMap = dep();if (innerMap == null) {return { found: true, path: [this] };} // todo: report as unresolved? + if (!innerMap) {continue;} // safeguard against cycles + if (innerMap.path === this.path) {continue;}var innerValue = innerMap.hasDeep(name);if (innerValue.found) {innerValue.path.unshift(this);return innerValue;}}} catch (err) {_didIteratorError2 = true;_iteratorError2 = err;} finally {try {if (!_iteratorNormalCompletion2 && _iterator2['return']) {_iterator2['return']();}} finally {if (_didIteratorError2) {throw _iteratorError2;}}}}return { found: false, path: [this] };}return hasDeep;}() }, { key: 'get', value: function () {function get(name) {if (this.namespace.has(name)) {return this.namespace.get(name);}if (this.reexports.has(name)) {var reexports = this.reexports.get(name);var imported = reexports.getImport(); // if import is ignored, return explicit 'null' + if (imported == null) {return null;} // safeguard against cycles, only if name matches + if (imported.path === this.path && reexports.local === name) {return undefined;}return imported.get(reexports.local);} // default exports must be explicitly re-exported (#328) if (name !== 'default') {var _iteratorNormalCompletion3 = true;var _didIteratorError3 = false;var _iteratorError3 = undefined;try {for (var _iterator3 = this.dependencies[Symbol.iterator](), _step3; !(_iteratorNormalCompletion3 = (_step3 = _iterator3.next()).done); _iteratorNormalCompletion3 = true) {var dep = _step3.value;var innerMap = dep(); // todo: report as unresolved? - if (!innerMap) continue; // safeguard against cycles - if (innerMap.path === this.path) continue;var innerValue = innerMap.get(name);if (innerValue !== undefined) return innerValue;}} catch (err) {_didIteratorError3 = true;_iteratorError3 = err;} finally {try {if (!_iteratorNormalCompletion3 && _iterator3['return']) {_iterator3['return']();}} finally {if (_didIteratorError3) {throw _iteratorError3;}}}}return undefined;}return get;}() }, { key: 'forEach', value: function () {function forEach(callback, thisArg) {var _this = this;this.namespace.forEach(function (v, n) {return callback.call(thisArg, v, n, _this);});this.reexports.forEach(function (reexports, name) {var reexported = reexports.getImport(); // can't look up meta for ignored re-exports (#348) + if (!innerMap) {continue;} // safeguard against cycles + if (innerMap.path === this.path) {continue;}var innerValue = innerMap.get(name);if (innerValue !== undefined) {return innerValue;}}} catch (err) {_didIteratorError3 = true;_iteratorError3 = err;} finally {try {if (!_iteratorNormalCompletion3 && _iterator3['return']) {_iterator3['return']();}} finally {if (_didIteratorError3) {throw _iteratorError3;}}}}return undefined;}return get;}() }, { key: 'forEach', value: function () {function forEach(callback, thisArg) {var _this = this;this.namespace.forEach(function (v, n) {callback.call(thisArg, v, n, _this);});this.reexports.forEach(function (reexports, name) {var reexported = reexports.getImport(); // can't look up meta for ignored re-exports (#348) callback.call(thisArg, reexported && reexported.get(reexports.local), name, _this);});this.dependencies.forEach(function (dep) {var d = dep(); // CJS / ignored dependencies won't exist (#717) - if (d == null) return;d.forEach(function (v, n) {return n !== 'default' && callback.call(thisArg, v, n, _this);});});}return forEach;}() // todo: keys, values, entries? - }, { key: 'reportErrors', value: function () {function reportErrors(context, declaration) {context.report({ node: declaration.source, message: 'Parse errors in imported module \'' + String(declaration.source.value) + '\': ' + ('' + String(this.errors.map(function (e) {return String(e.message) + ' (' + String(e.lineNumber) + ':' + String(e.column) + ')';}).join(', '))) });}return reportErrors;}() }, { key: 'hasDefault', get: function () {function get() {return this.get('default') != null;}return get;}() // stronger than this.has + if (d == null) {return;}d.forEach(function (v, n) {if (n !== 'default') {callback.call(thisArg, v, n, _this);}});});}return forEach;}() // todo: keys, values, entries? + }, { key: 'reportErrors', value: function () {function reportErrors(context, declaration) {var msg = this.errors.map(function (e) {return String(e.message) + ' (' + String(e.lineNumber) + ':' + String(e.column) + ')';}).join(', ');context.report({ node: declaration.source, message: 'Parse errors in imported module \'' + String(declaration.source.value) + '\': ' + String(msg) });}return reportErrors;}() }, { key: 'hasDefault', get: function () {function get() {return this.get('default') != null;}return get;}() // stronger than this.has }, { key: 'size', get: function () {function get() {var size = this.namespace.size + this.reexports.size;this.dependencies.forEach(function (dep) {var d = dep(); // CJS / ignored dependencies won't exist (#717) - if (d == null) return;size += d.size;});return size;}return get;}() }]);return ExportMap;}(); /** - * parse docs from the first node that has leading comments - */exports['default'] = ExportMap;function captureDoc(source, docStyleParsers) {var metadata = {}; // 'some' short-circuits on first 'true' + if (d == null) {return;}size += d.size;});return size;}return get;}() }]);return ExportMap;}(); /** + * parse docs from the first node that has leading comments + */exports['default'] = ExportMap;function captureDoc(source, docStyleParsers) {var metadata = {}; // 'some' short-circuits on first 'true' for (var _len = arguments.length, nodes = Array(_len > 2 ? _len - 2 : 0), _key = 2; _key < _len; _key++) {nodes[_key - 2] = arguments[_key];}nodes.some(function (n) {try {var leadingComments = void 0; // n.leadingComments is legacy `attachComments` behavior - if ('leadingComments' in n) {leadingComments = n.leadingComments;} else if (n.range) {leadingComments = source.getCommentsBefore(n);}if (!leadingComments || leadingComments.length === 0) return false;for (var name in docStyleParsers) {var doc = docStyleParsers[name](leadingComments);if (doc) {metadata.doc = doc;}}return true;} catch (err) {return false;}});return metadata;}var availableDocStyleParsers = { jsdoc: captureJsDoc, tomdoc: captureTomDoc }; /** - * parse JSDoc from leading comments - * @param {object[]} comments - * @return {{ doc: object }} - */function captureJsDoc(comments) {var doc = void 0; // capture XSDoc + if ('leadingComments' in n) {leadingComments = n.leadingComments;} else if (n.range) {leadingComments = source.getCommentsBefore(n);}if (!leadingComments || leadingComments.length === 0) {return false;}for (var name in docStyleParsers) {var doc = docStyleParsers[name](leadingComments);if (doc) {metadata.doc = doc;}}return true;} catch (err) {return false;}});return metadata;}var availableDocStyleParsers = { jsdoc: captureJsDoc, tomdoc: captureTomDoc }; /** + * parse JSDoc from leading comments + * @param {object[]} comments + * @return {{ doc: object }} + */function captureJsDoc(comments) {var doc = void 0; // capture XSDoc comments.forEach(function (comment) {// skip non-block comments - if (comment.type !== 'Block') return;try {doc = _doctrine2['default'].parse(comment.value, { unwrap: true });} catch (err) {/* don't care, for now? maybe add to `errors?` */}});return doc;} /** - * parse TomDoc section from comments - */function captureTomDoc(comments) {// collect lines up to first paragraph break - var lines = [];for (var i = 0; i < comments.length; i++) {var comment = comments[i];if (comment.value.match(/^\s*$/)) break;lines.push(comment.value.trim());} // return doctrine-like object - var statusMatch = lines.join(' ').match(/^(Public|Internal|Deprecated):\s*(.+)/);if (statusMatch) {return { description: statusMatch[2], tags: [{ title: statusMatch[1].toLowerCase(), description: statusMatch[2] }] };}}var supportedImportTypes = new Set(['ImportDefaultSpecifier', 'ImportNamespaceSpecifier']);ExportMap.get = function (source, context) {var path = (0, _resolve2['default'])(source, context);if (path == null) return null;return ExportMap['for'](childContext(path, context));};ExportMap['for'] = function (context) {var path = context.path;var cacheKey = (0, _hash.hashObject)(context).digest('hex');var exportMap = exportCache.get(cacheKey); // return cached ignore - if (exportMap === null) return null;var stats = _fs2['default'].statSync(path);if (exportMap != null) {// date equality check + if (comment.type !== 'Block') {return;}try {doc = _doctrine2['default'].parse(comment.value, { unwrap: true });} catch (err) {/* don't care, for now? maybe add to `errors?` */}});return doc;} /** + * parse TomDoc section from comments + */function captureTomDoc(comments) {// collect lines up to first paragraph break + var lines = [];for (var i = 0; i < comments.length; i++) {var comment = comments[i];if (comment.value.match(/^\s*$/)) {break;}lines.push(comment.value.trim());} // return doctrine-like object + var statusMatch = lines.join(' ').match(/^(Public|Internal|Deprecated):\s*(.+)/);if (statusMatch) {return { description: statusMatch[2], tags: [{ title: statusMatch[1].toLowerCase(), description: statusMatch[2] }] };}}var supportedImportTypes = new Set(['ImportDefaultSpecifier', 'ImportNamespaceSpecifier']);ExportMap.get = function (source, context) {var path = (0, _resolve2['default'])(source, context);if (path == null) {return null;}return ExportMap['for'](childContext(path, context));};ExportMap['for'] = function (context) {var path = context.path;var cacheKey = context.cacheKey || (0, _hash.hashObject)(context).digest('hex');var exportMap = exportCache.get(cacheKey); // return cached ignore + if (exportMap === null) {return null;}var stats = _fs2['default'].statSync(path);if (exportMap != null) {// date equality check if (exportMap.mtime - stats.mtime === 0) {return exportMap;} // future: check content equality? } // check valid extensions first if (!(0, _ignore.hasValidExtension)(path, context)) {exportCache.set(cacheKey, null);return null;} // check for and cache ignore @@ -807,21 +807,21 @@ recursivePatternCapture = recursivePatternCapture;var _fs = require('fs');var _f if (!unambiguous.test(content)) {log('ignored path due to unambiguous regex:', path);exportCache.set(cacheKey, null);return null;}log('cache miss', cacheKey, 'for path', path);exportMap = ExportMap.parse(path, content, context); // ambiguous modules return null if (exportMap == null) {log('ignored path due to ambiguous parse:', path);exportCache.set(cacheKey, null);return null;}exportMap.mtime = stats.mtime;exportCache.set(cacheKey, exportMap);return exportMap;};ExportMap.parse = function (path, content, context) {var m = new ExportMap(path);var isEsModuleInteropTrue = isEsModuleInterop();var ast = void 0;var visitorKeys = void 0;try {var result = (0, _parse2['default'])(path, content, context);ast = result.ast;visitorKeys = result.visitorKeys;} catch (err) {m.errors.push(err);return m; // can't continue }m.visitorKeys = visitorKeys;var hasDynamicImports = false;function processDynamicImport(source) {hasDynamicImports = true;if (source.type !== 'Literal') {return null;}var p = remotePath(source.value);if (p == null) {return null;}var importedSpecifiers = new Set();importedSpecifiers.add('ImportNamespaceSpecifier');var getter = thunkFor(p, context);m.imports.set(p, { getter: getter, declarations: new Set([{ source: { // capturing actual node reference holds full AST in memory! - value: source.value, loc: source.loc }, importedSpecifiers: importedSpecifiers, dynamic: true }]) });}(0, _visit2['default'])(ast, visitorKeys, { ImportExpression: function () {function ImportExpression(node) {processDynamicImport(node.source);}return ImportExpression;}(), CallExpression: function () {function CallExpression(node) {if (node.callee.type === 'Import') {processDynamicImport(node.arguments[0]);}}return CallExpression;}() });var unambiguouslyESM = unambiguous.isModule(ast);if (!unambiguouslyESM && !hasDynamicImports) return null;var docstyle = context.settings && context.settings['import/docstyle'] || ['jsdoc'];var docStyleParsers = {};docstyle.forEach(function (style) {docStyleParsers[style] = availableDocStyleParsers[style];}); // attempt to collect module doc - if (ast.comments) {ast.comments.some(function (c) {if (c.type !== 'Block') return false;try {var doc = _doctrine2['default'].parse(c.value, { unwrap: true });if (doc.tags.some(function (t) {return t.title === 'module';})) {m.doc = doc;return true;}} catch (err) {/* ignore */}return false;});}var namespaces = new Map();function remotePath(value) {return _resolve2['default'].relative(value, path, context.settings);}function resolveImport(value) {var rp = remotePath(value);if (rp == null) return null;return ExportMap['for'](childContext(rp, context));}function getNamespace(identifier) {if (!namespaces.has(identifier.name)) return;return function () {return resolveImport(namespaces.get(identifier.name));};}function addNamespace(object, identifier) {var nsfn = getNamespace(identifier);if (nsfn) {Object.defineProperty(object, 'namespace', { get: nsfn });}return object;}function processSpecifier(s, n, m) {var nsource = n.source && n.source.value;var exportMeta = {};var local = void 0;switch (s.type) {case 'ExportDefaultSpecifier':if (!nsource) return;local = 'default';break;case 'ExportNamespaceSpecifier':m.namespace.set(s.exported.name, Object.defineProperty(exportMeta, 'namespace', { get: function () {function get() {return resolveImport(nsource);}return get;}() }));return;case 'ExportAllDeclaration':m.namespace.set(s.exported.name || s.exported.value, addNamespace(exportMeta, s.source.value));return;case 'ExportSpecifier':if (!n.source) {m.namespace.set(s.exported.name || s.exported.value, addNamespace(exportMeta, s.local));return;} // else falls through + value: source.value, loc: source.loc }, importedSpecifiers: importedSpecifiers, dynamic: true }]) });}(0, _visit2['default'])(ast, visitorKeys, { ImportExpression: function () {function ImportExpression(node) {processDynamicImport(node.source);}return ImportExpression;}(), CallExpression: function () {function CallExpression(node) {if (node.callee.type === 'Import') {processDynamicImport(node.arguments[0]);}}return CallExpression;}() });var unambiguouslyESM = unambiguous.isModule(ast);if (!unambiguouslyESM && !hasDynamicImports) {return null;}var docstyle = context.settings && context.settings['import/docstyle'] || ['jsdoc'];var docStyleParsers = {};docstyle.forEach(function (style) {docStyleParsers[style] = availableDocStyleParsers[style];}); // attempt to collect module doc + if (ast.comments) {ast.comments.some(function (c) {if (c.type !== 'Block') {return false;}try {var doc = _doctrine2['default'].parse(c.value, { unwrap: true });if (doc.tags.some(function (t) {return t.title === 'module';})) {m.doc = doc;return true;}} catch (err) {/* ignore */}return false;});}var namespaces = new Map();function remotePath(value) {return _resolve2['default'].relative(value, path, context.settings);}function resolveImport(value) {var rp = remotePath(value);if (rp == null) {return null;}return ExportMap['for'](childContext(rp, context));}function getNamespace(identifier) {if (!namespaces.has(identifier.name)) {return;}return function () {return resolveImport(namespaces.get(identifier.name));};}function addNamespace(object, identifier) {var nsfn = getNamespace(identifier);if (nsfn) {Object.defineProperty(object, 'namespace', { get: nsfn });}return object;}function processSpecifier(s, n, m) {var nsource = n.source && n.source.value;var exportMeta = {};var local = void 0;switch (s.type) {case 'ExportDefaultSpecifier':if (!nsource) {return;}local = 'default';break;case 'ExportNamespaceSpecifier':m.namespace.set(s.exported.name, Object.defineProperty(exportMeta, 'namespace', { get: function () {function get() {return resolveImport(nsource);}return get;}() }));return;case 'ExportAllDeclaration':m.namespace.set(s.exported.name || s.exported.value, addNamespace(exportMeta, s.source.value));return;case 'ExportSpecifier':if (!n.source) {m.namespace.set(s.exported.name || s.exported.value, addNamespace(exportMeta, s.local));return;} // else falls through default:local = s.local.name;break;} // todo: JSDoc m.reexports.set(s.exported.name, { local: local, getImport: function () {function getImport() {return resolveImport(nsource);}return getImport;}() });}function captureDependencyWithSpecifiers(n) {// import type { Foo } (TS and Flow); import typeof { Foo } (Flow) var declarationIsType = n.importKind === 'type' || n.importKind === 'typeof'; // import './foo' or import {} from './foo' (both 0 specifiers) is a side effect and // shouldn't be considered to be just importing types var specifiersOnlyImportingTypes = n.specifiers.length > 0;var importedSpecifiers = new Set();n.specifiers.forEach(function (specifier) {if (specifier.type === 'ImportSpecifier') {importedSpecifiers.add(specifier.imported.name || specifier.imported.value);} else if (supportedImportTypes.has(specifier.type)) {importedSpecifiers.add(specifier.type);} // import { type Foo } (Flow); import { typeof Foo } (Flow) - specifiersOnlyImportingTypes = specifiersOnlyImportingTypes && (specifier.importKind === 'type' || specifier.importKind === 'typeof');});captureDependency(n, declarationIsType || specifiersOnlyImportingTypes, importedSpecifiers);}function captureDependency(_ref, isOnlyImportingTypes) {var source = _ref.source;var importedSpecifiers = arguments.length > 2 && arguments[2] !== undefined ? arguments[2] : new Set();if (source == null) return null;var p = remotePath(source.value);if (p == null) return null;var declarationMetadata = { // capturing actual node reference holds full AST in memory! - source: { value: source.value, loc: source.loc }, isOnlyImportingTypes: isOnlyImportingTypes, importedSpecifiers: importedSpecifiers };var existing = m.imports.get(p);if (existing != null) {existing.declarations.add(declarationMetadata);return existing.getter;}var getter = thunkFor(p, context);m.imports.set(p, { getter: getter, declarations: new Set([declarationMetadata]) });return getter;}var source = makeSourceCode(content, ast);function readTsConfig(context) {var tsConfigInfo = (0, _tsconfigLoader.tsConfigLoader)({ cwd: context.parserOptions && context.parserOptions.tsconfigRootDir || process.cwd(), getEnv: function () {function getEnv(key) {return process.env[key];}return getEnv;}() });try {if (tsConfigInfo.tsConfigPath !== undefined) {// Projects not using TypeScript won't have `typescript` installed. + specifiersOnlyImportingTypes = specifiersOnlyImportingTypes && (specifier.importKind === 'type' || specifier.importKind === 'typeof');});captureDependency(n, declarationIsType || specifiersOnlyImportingTypes, importedSpecifiers);}function captureDependency(_ref, isOnlyImportingTypes) {var source = _ref.source;var importedSpecifiers = arguments.length > 2 && arguments[2] !== undefined ? arguments[2] : new Set();if (source == null) {return null;}var p = remotePath(source.value);if (p == null) {return null;}var declarationMetadata = { // capturing actual node reference holds full AST in memory! + source: { value: source.value, loc: source.loc }, isOnlyImportingTypes: isOnlyImportingTypes, importedSpecifiers: importedSpecifiers };var existing = m.imports.get(p);if (existing != null) {existing.declarations.add(declarationMetadata);return existing.getter;}var getter = thunkFor(p, context);m.imports.set(p, { getter: getter, declarations: new Set([declarationMetadata]) });return getter;}var source = makeSourceCode(content, ast);function readTsConfig(context) {var tsconfigInfo = (0, _tsconfigLoader.tsConfigLoader)({ cwd: context.parserOptions && context.parserOptions.tsconfigRootDir || process.cwd(), getEnv: function () {function getEnv(key) {return process.env[key];}return getEnv;}() });try {if (tsconfigInfo.tsConfigPath !== undefined) {// Projects not using TypeScript won't have `typescript` installed. if (!ts) {ts = require('typescript');} // eslint-disable-line import/no-extraneous-dependencies - var configFile = ts.readConfigFile(tsConfigInfo.tsConfigPath, ts.sys.readFile);return ts.parseJsonConfigFileContent(configFile.config, ts.sys, (0, _path.dirname)(tsConfigInfo.tsConfigPath));}} catch (e) {// Catch any errors - }return null;}function isEsModuleInterop() {var cacheKey = (0, _hash.hashObject)({ tsconfigRootDir: context.parserOptions && context.parserOptions.tsconfigRootDir }).digest('hex');var tsConfig = tsConfigCache.get(cacheKey);if (typeof tsConfig === 'undefined') {tsConfig = readTsConfig(context);tsConfigCache.set(cacheKey, tsConfig);}return tsConfig && tsConfig.options ? tsConfig.options.esModuleInterop : false;}ast.body.forEach(function (n) {if (n.type === 'ExportDefaultDeclaration') {var exportMeta = captureDoc(source, docStyleParsers, n);if (n.declaration.type === 'Identifier') {addNamespace(exportMeta, n.declaration);}m.namespace.set('default', exportMeta);return;}if (n.type === 'ExportAllDeclaration') {var getter = captureDependency(n, n.exportKind === 'type');if (getter) m.dependencies.add(getter);if (n.exported) {processSpecifier(n, n.exported, m);}return;} // capture namespaces in case of later export + var configFile = ts.readConfigFile(tsconfigInfo.tsConfigPath, ts.sys.readFile);return ts.parseJsonConfigFileContent(configFile.config, ts.sys, (0, _path.dirname)(tsconfigInfo.tsConfigPath));}} catch (e) {// Catch any errors + }return null;}function isEsModuleInterop() {var cacheKey = (0, _hash.hashObject)({ tsconfigRootDir: context.parserOptions && context.parserOptions.tsconfigRootDir }).digest('hex');var tsConfig = tsconfigCache.get(cacheKey);if (typeof tsConfig === 'undefined') {tsConfig = readTsConfig(context);tsconfigCache.set(cacheKey, tsConfig);}return tsConfig && tsConfig.options ? tsConfig.options.esModuleInterop : false;}ast.body.forEach(function (n) {if (n.type === 'ExportDefaultDeclaration') {var exportMeta = captureDoc(source, docStyleParsers, n);if (n.declaration.type === 'Identifier') {addNamespace(exportMeta, n.declaration);}m.namespace.set('default', exportMeta);return;}if (n.type === 'ExportAllDeclaration') {var getter = captureDependency(n, n.exportKind === 'type');if (getter) {m.dependencies.add(getter);}if (n.exported) {processSpecifier(n, n.exported, m);}return;} // capture namespaces in case of later export if (n.type === 'ImportDeclaration') {captureDependencyWithSpecifiers(n);var ns = n.specifiers.find(function (s) {return s.type === 'ImportNamespaceSpecifier';});if (ns) {namespaces.set(ns.local.name, n.source.value);}return;}if (n.type === 'ExportNamedDeclaration') {captureDependencyWithSpecifiers(n); // capture declaration if (n.declaration != null) {switch (n.declaration.type) {case 'FunctionDeclaration':case 'ClassDeclaration':case 'TypeAlias': // flowtype with babel-eslint parser - case 'InterfaceDeclaration':case 'DeclareFunction':case 'TSDeclareFunction':case 'TSEnumDeclaration':case 'TSTypeAliasDeclaration':case 'TSInterfaceDeclaration':case 'TSAbstractClassDeclaration':case 'TSModuleDeclaration':m.namespace.set(n.declaration.id.name, captureDoc(source, docStyleParsers, n));break;case 'VariableDeclaration':n.declaration.declarations.forEach(function (d) {return recursivePatternCapture(d.id, function (id) {return m.namespace.set(id.name, captureDoc(source, docStyleParsers, d, n));});});break;}}n.specifiers.forEach(function (s) {return processSpecifier(s, n, m);});}var exports = ['TSExportAssignment'];if (isEsModuleInteropTrue) {exports.push('TSNamespaceExportDeclaration');} // This doesn't declare anything, but changes what's being exported. + case 'InterfaceDeclaration':case 'DeclareFunction':case 'TSDeclareFunction':case 'TSEnumDeclaration':case 'TSTypeAliasDeclaration':case 'TSInterfaceDeclaration':case 'TSAbstractClassDeclaration':case 'TSModuleDeclaration':m.namespace.set(n.declaration.id.name, captureDoc(source, docStyleParsers, n));break;case 'VariableDeclaration':n.declaration.declarations.forEach(function (d) {recursivePatternCapture(d.id, function (id) {return m.namespace.set(id.name, captureDoc(source, docStyleParsers, d, n));});});break;default:}}n.specifiers.forEach(function (s) {return processSpecifier(s, n, m);});}var exports = ['TSExportAssignment'];if (isEsModuleInteropTrue) {exports.push('TSNamespaceExportDeclaration');} // This doesn't declare anything, but changes what's being exported. if ((0, _arrayIncludes2['default'])(exports, n.type)) {var exportedName = n.type === 'TSNamespaceExportDeclaration' ? (n.id || n.name).name : n.expression && n.expression.name || n.expression.id && n.expression.id.name || null;var declTypes = ['VariableDeclaration', 'ClassDeclaration', 'TSDeclareFunction', 'TSEnumDeclaration', 'TSTypeAliasDeclaration', 'TSInterfaceDeclaration', 'TSAbstractClassDeclaration', 'TSModuleDeclaration'];var exportedDecls = ast.body.filter(function (_ref2) {var type = _ref2.type,id = _ref2.id,declarations = _ref2.declarations;return (0, _arrayIncludes2['default'])(declTypes, type) && (id && id.name === exportedName || declarations && declarations.find(function (d) {return d.id.name === exportedName;}));});if (exportedDecls.length === 0) {// Export is not referencing any local declaration, must be re-exporting m.namespace.set('default', captureDoc(source, docStyleParsers, n));return;}if (isEsModuleInteropTrue // esModuleInterop is on in tsconfig && !m.namespace.has('default') // and default isn't added already @@ -845,11 +845,12 @@ recursivePatternCapture = recursivePatternCapture;var _fs = require('fs');var _f * @param {Function} callback * @return {void} */function recursivePatternCapture(pattern, callback) {switch (pattern.type) {case 'Identifier': // base case - callback(pattern);break;case 'ObjectPattern':pattern.properties.forEach(function (p) {if (p.type === 'ExperimentalRestProperty' || p.type === 'RestElement') {callback(p.argument);return;}recursivePatternCapture(p.value, callback);});break;case 'ArrayPattern':pattern.elements.forEach(function (element) {if (element == null) return;if (element.type === 'ExperimentalRestProperty' || element.type === 'RestElement') {callback(element.argument);return;}recursivePatternCapture(element, callback);});break;case 'AssignmentPattern':callback(pattern.left);break;}} /** - * don't hold full context object in memory, just grab what we need. - */function childContext(path, context) {var settings = context.settings,parserOptions = context.parserOptions,parserPath = context.parserPath;return { settings: settings, parserOptions: parserOptions, parserPath: parserPath, path: path };} /** - * sometimes legacy support isn't _that_ hard... right? - */function makeSourceCode(text, ast) {if (_eslint.SourceCode.length > 1) {// ESLint 3 + callback(pattern);break;case 'ObjectPattern':pattern.properties.forEach(function (p) {if (p.type === 'ExperimentalRestProperty' || p.type === 'RestElement') {callback(p.argument);return;}recursivePatternCapture(p.value, callback);});break;case 'ArrayPattern':pattern.elements.forEach(function (element) {if (element == null) {return;}if (element.type === 'ExperimentalRestProperty' || element.type === 'RestElement') {callback(element.argument);return;}recursivePatternCapture(element, callback);});break;case 'AssignmentPattern':callback(pattern.left);break;default:}}var parserOptionsHash = '';var prevParserOptions = '';var settingsHash = '';var prevSettings = ''; /** + * don't hold full context object in memory, just grab what we need. + * also calculate a cacheKey, where parts of the cacheKey hash are memoized + */function childContext(path, context) {var settings = context.settings,parserOptions = context.parserOptions,parserPath = context.parserPath;if (JSON.stringify(settings) !== prevSettings) {settingsHash = (0, _hash.hashObject)({ settings: settings }).digest('hex');prevSettings = JSON.stringify(settings);}if (JSON.stringify(parserOptions) !== prevParserOptions) {parserOptionsHash = (0, _hash.hashObject)({ parserOptions: parserOptions }).digest('hex');prevParserOptions = JSON.stringify(parserOptions);}return { cacheKey: String(parserPath) + parserOptionsHash + settingsHash + String(path), settings: settings, parserOptions: parserOptions, parserPath: parserPath, path: path };} /** + * sometimes legacy support isn't _that_ hard... right? + */function makeSourceCode(text, ast) {if (_eslint.SourceCode.length > 1) {// ESLint 3 return new _eslint.SourceCode(text, ast);} else {// ESLint 4, 5 return new _eslint.SourceCode({ text: text, ast: ast });}} -//# sourceMappingURL=data:application/json;charset=utf-8;base64,eyJ2ZXJzaW9uIjozLCJzb3VyY2VzIjpbIi4uL3NyYy9FeHBvcnRNYXAuanMiXSwibmFtZXMiOlsicmVjdXJzaXZlUGF0dGVybkNhcHR1cmUiLCJ1bmFtYmlndW91cyIsInRzIiwibG9nIiwiZXhwb3J0Q2FjaGUiLCJNYXAiLCJ0c0NvbmZpZ0NhY2hlIiwiRXhwb3J0TWFwIiwicGF0aCIsIm5hbWVzcGFjZSIsInJlZXhwb3J0cyIsImRlcGVuZGVuY2llcyIsIlNldCIsImltcG9ydHMiLCJlcnJvc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sIHBhcnNlck9wdGlvbnMsIHBhcnNlclBhdGggfSA9IGNvbnRleHQ7XG4gIHJldHVybiB7XG4gICAgc2V0dGluZ3MsXG4gICAgcGFyc2VyT3B0aW9ucyxcbiAgICBwYXJzZXJQYXRoLFxuICAgIHBhdGgsXG4gIH07XG59XG5cblxuLyoqXG4gKiBzb21ldGltZXMgbGVnYWN5IHN1cHBvcnQgaXNuJ3QgX3RoYXRfIGhhcmQuLi4gcmlnaHQ/XG4gKi9cbmZ1bmN0aW9uIG1ha2VTb3VyY2VDb2RlKHRleHQsIGFzdCkge1xuICBpZiAoU291cmNlQ29kZS5sZW5ndGggPiAxKSB7XG4gICAgLy8gRVNMaW50IDNcbiAgICByZXR1cm4gbmV3IFNvdXJjZUNvZGUodGV4dCwgYXN0KTtcbiAgfSBlbHNlIHtcbiAgICAvLyBFU0xpbnQgNCwgNVxuICAgIHJldHVybiBuZXcgU291cmNlQ29kZSh7IHRleHQsIGFzdCB9KTtcbiAgfVxufVxuIl19 \ No newline at end of file +//# sourceMappingURL=data:application/json;charset=utf-8;base64,eyJ2ZXJzaW9uIjozLCJzb3VyY2VzIjpbIi4uL3NyYy9FeHBvcnRNYXAuanMiXSwibmFtZXMiOlsicmVjdXJzaXZlUGF0dGVybkNhcHR1cmUiLCJ1bmFtYmlndW91cyIsInRzIiwibG9nIiwiZXhwb3J0Q2FjaGUiLCJNYXAiLCJ0c2NvbmZpZ0NhY2hlIiwiRXhwb3J0TWFwIiwicGF0aCIsIm5hbWVzcGFjZSIsInJlZXhwb3J0cyIsImRlcGVuZGVuY2llcyIsIlNldCIsImltcG9ydHMiLCJlcnJvcnMiLCJwYXJzZUdvYWwiLCJuYW1lIiwiaGFzIiwiZGVwIiwiaW5uZXJNYXAiLCJmb3VuZCIsImdldCIsImltcG9ydGVkIiwiZ2V0SW1wb3J0IiwibG9jYWwiLCJkZWVwIiwiaGFzRGVlcCIsInVuc2hpZnQiLCJpbm5lclZhbHVlIiwidW5kZWZpbmVkIiwi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RpbmdzSGFzaCA9IGhhc2hPYmplY3QoeyBzZXR0aW5ncyB9KS5kaWdlc3QoJ2hleCcpO1xuICAgIHByZXZTZXR0aW5ncyA9IEpTT04uc3RyaW5naWZ5KHNldHRpbmdzKTtcbiAgfVxuXG4gIGlmIChKU09OLnN0cmluZ2lmeShwYXJzZXJPcHRpb25zKSAhPT0gcHJldlBhcnNlck9wdGlvbnMpIHtcbiAgICBwYXJzZXJPcHRpb25zSGFzaCA9IGhhc2hPYmplY3QoeyBwYXJzZXJPcHRpb25zIH0pLmRpZ2VzdCgnaGV4Jyk7XG4gICAgcHJldlBhcnNlck9wdGlvbnMgPSBKU09OLnN0cmluZ2lmeShwYXJzZXJPcHRpb25zKTtcbiAgfVxuXG4gIHJldHVybiB7XG4gICAgY2FjaGVLZXk6IFN0cmluZyhwYXJzZXJQYXRoKSArIHBhcnNlck9wdGlvbnNIYXNoICsgc2V0dGluZ3NIYXNoICsgU3RyaW5nKHBhdGgpLFxuICAgIHNldHRpbmdzLFxuICAgIHBhcnNlck9wdGlvbnMsXG4gICAgcGFyc2VyUGF0aCxcbiAgICBwYXRoLFxuICB9O1xufVxuXG4vKipcbiAqIHNvbWV0aW1lcyBsZWdhY3kgc3VwcG9ydCBpc24ndCBfdGhhdF8gaGFyZC4uLiByaWdodD9cbiAqL1xuZnVuY3Rpb24gbWFrZVNvdXJjZUNvZGUodGV4dCwgYXN0KSB7XG4gIGlmIChTb3VyY2VDb2RlLmxlbmd0aCA+IDEpIHtcbiAgICAvLyBFU0xpbnQgM1xuICAgIHJldHVybiBuZXcgU291cmNlQ29kZSh0ZXh0LCBhc3QpO1xuICB9IGVsc2Uge1xuICAgIC8vIEVTTGludCA0LCA1XG4gICAgcmV0dXJuIG5ldyBTb3VyY2VDb2RlKHsgdGV4dCwgYXN0IH0pO1xuICB9XG59XG4iXX0= \ No newline at end of file diff --git a/node_modules/eslint-plugin-import/lib/core/importType.js b/node_modules/eslint-plugin-import/lib/core/importType.js index 6851c914ee..749a15a39c 100644 --- a/node_modules/eslint-plugin-import/lib/core/importType.js +++ b/node_modules/eslint-plugin-import/lib/core/importType.js @@ -124,6 +124,6 @@ isScopedMain = isScopedMain;exports['default'] = resolveImportType;var _path = require('path');var _isCoreModule = require('is-core-module');var _isCoreModule2 = _interopRequireDefault(_isCoreModule);var _resolve = require('eslint-module-utils/resolve');var _resolve2 = _interopRequireDefault(_resolve);var _packagePath = require('./packagePath');function _interopRequireDefault(obj) {return obj && obj.__esModule ? obj : { 'default': obj };}function baseModule(name) {if (isScoped(name)) {var _name$split = name.split('/'),_name$split2 = _slicedToArray(_name$split, 2),scope = _name$split2[0],_pkg = _name$split2[1];return String(scope) + '/' + String(_pkg);}var _name$split3 = name.split('/'),_name$split4 = _slicedToArray(_name$split3, 1),pkg = _name$split4[0];return pkg;}function isInternalRegexMatch(name, settings) {var internalScope = settings && settings['import/internal-regex'];return internalScope && new RegExp(internalScope).test(name);}function isAbsolute(name) {return typeof name === 'string' && (0, _path.isAbsolute)(name);} // path is defined only when a resolver resolves to a non-standard path -function isBuiltIn(name, settings, path) {if (path || !name) return false;var base = baseModule(name);var extras = settings && settings['import/core-modules'] || [];return (0, _isCoreModule2['default'])(base) || extras.indexOf(base) > -1;}function isExternalModule(name, path, context) {if (arguments.length < 3) {throw new TypeError('isExternalModule: name, path, and context are all required');}return (isModule(name) || isScoped(name)) && typeTest(name, context, path) === 'external';}function isExternalModuleMain(name, path, context) {if (arguments.length < 3) {throw new TypeError('isExternalModule: name, path, and context are all required');}return isModuleMain(name) && typeTest(name, context, path) === 'external';}var moduleRegExp = /^\w/;function isModule(name) {return name && moduleRegExp.test(name);}var moduleMainRegExp = /^[\w]((?!\/).)*$/;function isModuleMain(name) {return name && moduleMainRegExp.test(name);}var scopedRegExp = /^@[^/]+\/?[^/]+/;function isScoped(name) {return name && scopedRegExp.test(name);}var scopedMainRegExp = /^@[^/]+\/?[^/]+$/;function isScopedMain(name) {return name && scopedMainRegExp.test(name);}function isRelativeToParent(name) {return (/^\.\.$|^\.\.[\\/]/.test(name));}var indexFiles = ['.', './', './index', './index.js'];function isIndex(name) {return indexFiles.indexOf(name) !== -1;}function isRelativeToSibling(name) {return (/^\.[\\/]/.test(name));}function isExternalPath(path, context) {if (!path) {return false;}var settings = context.settings;var packagePath = (0, _packagePath.getContextPackagePath)(context);if ((0, _path.relative)(packagePath, path).startsWith('..')) {return true;}var folders = settings && settings['import/external-module-folders'] || ['node_modules'];return folders.some(function (folder) {var folderPath = (0, _path.resolve)(packagePath, folder);var relativePath = (0, _path.relative)(folderPath, path);return !relativePath.startsWith('..');});}function isInternalPath(path, context) {if (!path) {return false;}var packagePath = (0, _packagePath.getContextPackagePath)(context);return !(0, _path.relative)(packagePath, path).startsWith('../');}function isExternalLookingName(name) {return isModule(name) || isScoped(name);}function typeTest(name, context, path) {var settings = context.settings;if (isInternalRegexMatch(name, settings)) {return 'internal';}if (isAbsolute(name, settings, path)) {return 'absolute';}if (isBuiltIn(name, settings, path)) {return 'builtin';}if (isRelativeToParent(name, settings, path)) {return 'parent';}if (isIndex(name, settings, path)) {return 'index';}if (isRelativeToSibling(name, settings, path)) {return 'sibling';}if (isExternalPath(path, context)) {return 'external';}if (isInternalPath(path, context)) {return 'internal';}if (isExternalLookingName(name)) {return 'external';}return 'unknown';}function resolveImportType(name, context) {return typeTest(name, context, (0, _resolve2['default'])(name, context)); +function isBuiltIn(name, settings, path) {if (path || !name) {return false;}var base = baseModule(name);var extras = settings && settings['import/core-modules'] || [];return (0, _isCoreModule2['default'])(base) || extras.indexOf(base) > -1;}function isExternalModule(name, path, context) {if (arguments.length < 3) {throw new TypeError('isExternalModule: name, path, and context are all required');}return (isModule(name) || isScoped(name)) && typeTest(name, context, path) === 'external';}function isExternalModuleMain(name, path, context) {if (arguments.length < 3) {throw new TypeError('isExternalModule: name, path, and context are all required');}return isModuleMain(name) && typeTest(name, context, path) === 'external';}var moduleRegExp = /^\w/;function isModule(name) {return name && moduleRegExp.test(name);}var moduleMainRegExp = /^[\w]((?!\/).)*$/;function isModuleMain(name) {return name && moduleMainRegExp.test(name);}var scopedRegExp = /^@[^/]+\/?[^/]+/;function isScoped(name) {return name && scopedRegExp.test(name);}var scopedMainRegExp = /^@[^/]+\/?[^/]+$/;function isScopedMain(name) {return name && scopedMainRegExp.test(name);}function isRelativeToParent(name) {return (/^\.\.$|^\.\.[\\/]/.test(name));}var indexFiles = ['.', './', './index', './index.js'];function isIndex(name) {return indexFiles.indexOf(name) !== -1;}function isRelativeToSibling(name) {return (/^\.[\\/]/.test(name));}function isExternalPath(path, context) {if (!path) {return false;}var settings = context.settings;var packagePath = (0, _packagePath.getContextPackagePath)(context);if ((0, _path.relative)(packagePath, path).startsWith('..')) {return true;}var folders = settings && settings['import/external-module-folders'] || ['node_modules'];return folders.some(function (folder) {var folderPath = (0, _path.resolve)(packagePath, folder);var relativePath = (0, _path.relative)(folderPath, path);return !relativePath.startsWith('..');});}function isInternalPath(path, context) {if (!path) {return false;}var packagePath = (0, _packagePath.getContextPackagePath)(context);return !(0, _path.relative)(packagePath, path).startsWith('../');}function isExternalLookingName(name) {return isModule(name) || isScoped(name);}function typeTest(name, context, path) {var settings = context.settings;if (isInternalRegexMatch(name, settings)) {return 'internal';}if (isAbsolute(name, settings, path)) {return 'absolute';}if (isBuiltIn(name, settings, path)) {return 'builtin';}if (isRelativeToParent(name, settings, path)) {return 'parent';}if (isIndex(name, settings, path)) {return 'index';}if (isRelativeToSibling(name, settings, path)) {return 'sibling';}if (isExternalPath(path, context)) {return 'external';}if (isInternalPath(path, context)) {return 'internal';}if (isExternalLookingName(name)) {return 'external';}return 'unknown';}function resolveImportType(name, context) {return typeTest(name, context, (0, _resolve2['default'])(name, context)); } -//# sourceMappingURL=data:application/json;charset=utf-8;base64,eyJ2ZXJzaW9uIjozLCJzb3VyY2VzIjpbIi4uLy4uL3NyYy9jb3JlL2ltcG9ydFR5cGUuanMiXSwibmFtZXMiOlsiaXNBYnNvbHV0ZSIsImlzQnVpbHRJbiI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gc2V0dGluZ3MsIHBhdGgpKSB7IHJldHVybiAnaW5kZXgnOyB9XG4gIGlmIChpc1JlbGF0aXZlVG9TaWJsaW5nKG5hbWUsIHNldHRpbmdzLCBwYXRoKSkgeyByZXR1cm4gJ3NpYmxpbmcnOyB9XG4gIGlmIChpc0V4dGVybmFsUGF0aChwYXRoLCBjb250ZXh0KSkgeyByZXR1cm4gJ2V4dGVybmFsJzsgfVxuICBpZiAoaXNJbnRlcm5hbFBhdGgocGF0aCwgY29udGV4dCkpIHsgcmV0dXJuICdpbnRlcm5hbCc7IH1cbiAgaWYgKGlzRXh0ZXJuYWxMb29raW5nTmFtZShuYW1lKSkgeyByZXR1cm4gJ2V4dGVybmFsJzsgfVxuICByZXR1cm4gJ3Vua25vd24nO1xufVxuXG5leHBvcnQgZGVmYXVsdCBmdW5jdGlvbiByZXNvbHZlSW1wb3J0VHlwZShuYW1lLCBjb250ZXh0KSB7XG4gIHJldHVybiB0eXBlVGVzdChuYW1lLCBjb250ZXh0LCByZXNvbHZlKG5hbWUsIGNvbnRleHQpKTtcbn1cbiJdfQ== \ No newline at end of file diff --git a/node_modules/eslint-plugin-import/lib/core/packagePath.js b/node_modules/eslint-plugin-import/lib/core/packagePath.js index e925772975..84eb212ade 100644 --- a/node_modules/eslint-plugin-import/lib/core/packagePath.js +++ b/node_modules/eslint-plugin-import/lib/core/packagePath.js @@ -2,7 +2,6 @@ - getContextPackagePath = getContextPackagePath;exports. @@ -20,4 +19,4 @@ getFilePackageName = getFilePackageName;var _path = require('path');var _pkgUp = } return null; } -//# sourceMappingURL=data:application/json;charset=utf-8;base64,eyJ2ZXJzaW9uIjozLCJzb3VyY2VzIjpbIi4uLy4uL3NyYy9jb3JlL3BhY2thZ2VQYXRoLmpzIl0sIm5hbWVzIjpbImdldENvbnRleHRQYWNrYWdlUGF0aCIsImdldEZpbGVQYWNrYWdlUGF0aCIsImdldEZpbGVQYWNrYWdlTmFtZSIsImNvbnRleHQiLCJnZXRQaHlzaWNhb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VyY2VzQ29udGVudCI6WyJpbXBvcnQgeyBkaXJuYW1lIH0gZnJvbSAncGF0aCc7XG5pbXBvcnQgcGtnVXAgZnJvbSAnZXNsaW50LW1vZHVsZS11dGlscy9wa2dVcCc7XG5pbXBvcnQgcmVhZFBrZ1VwIGZyb20gJ2VzbGludC1tb2R1bGUtdXRpbHMvcmVhZFBrZ1VwJztcblxuZXhwb3J0IGZ1bmN0aW9uIGdldENvbnRleHRQYWNrYWdlUGF0aChjb250ZXh0KSB7XG4gIHJldHVybiBnZXRGaWxlUGFja2FnZVBhdGgoY29udGV4dC5nZXRQaHlzaWNhbEZpbGVuYW1lID8gY29udGV4dC5nZXRQaHlzaWNhbEZpbGVuYW1lKCkgOiBjb250ZXh0LmdldEZpbGVuYW1lKCkpO1xufVxuXG5leHBvcnQgZnVuY3Rpb24gZ2V0RmlsZVBhY2thZ2VQYXRoKGZpbGVQYXRoKSB7XG4gIGNvbnN0IGZwID0gcGtnVXAoeyBjd2Q6IGZpbGVQYXRoIH0pO1xuICByZXR1cm4gZGlybmFtZShmcCk7XG59XG5cbmV4cG9ydCBmdW5jdGlvbiBnZXRGaWxlUGFja2FnZU5hbWUoZmlsZVBhdGgpIHtcbiAgY29uc3QgeyBwa2csIHBhdGggfSA9IHJlYWRQa2dVcCh7IGN3ZDogZmlsZVBhdGgsIG5vcm1hbGl6ZTogZmFsc2UgfSk7XG4gIGlmIChwa2cpIHtcbiAgICAvLyByZWN1cnNpb24gaW4gY2FzZSBvZiBpbnRlcm1lZGlhdGUgZXNtIHBhY2thZ2UuanNvbiB3aXRob3V0IG5hbWUgZm91bmRcbiAgICByZXR1cm4gcGtnLm5hbWUgfHwgZ2V0RmlsZVBhY2thZ2VOYW1lKGRpcm5hbWUoZGlybmFtZShwYXRoKSkpO1xuICB9XG4gIHJldHVybiBudWxsO1xufVxuIl19 \ No newline at end of file diff --git a/node_modules/eslint-plugin-import/lib/core/staticRequire.js b/node_modules/eslint-plugin-import/lib/core/staticRequire.js index 29d55c2cdd..43bb282d84 100644 --- a/node_modules/eslint-plugin-import/lib/core/staticRequire.js +++ b/node_modules/eslint-plugin-import/lib/core/staticRequire.js @@ -8,4 +8,4 @@ function isStaticRequire(node) {return node && node.arguments[0].type === 'Literal' && typeof node.arguments[0].value === 'string'; } -//# sourceMappingURL=data:application/json;charset=utf-8;base64,eyJ2ZXJzaW9uIjozLCJzb3VyY2VzIjpbIi4uLy4uL3NyYy9jb3JlL3N0YXRpY1JlcXVpcmUuanMiXSwibmFtZXMiOlsiaXNTdGF0aWNSZXF1aXJlIiwibm9kZSIsImNhbGxlZSIsInR5cGUiLCJuYW1lIiwiYXJndW1lbnRzIiwibGVuZ3RoIiwidmFsdWUiXSwibWFwcGluZ3MiOiI7QUFDd0JBLGUsRUFEeEI7QUFDZSxTQUFTQSxlQUFULENBQXlCQyxJQUF6QixFQUErQixDQUM1QyxPQUFPQTtBQUNMQSxPQUFLQyxNQURBO0FBRUxELE9BQUtDLE1BQUwsQ0FBWUMsSUFBWixLQUFxQixZQUZoQjtBQUdMRixPQUFLQyxNQUFMLENBQVlFLElBQVosS0FBcUIsU0FIaEI7QUFJTEgsT0FBS0ksU0FBTCxDQUFlQyxNQUFmLEtBQTBCLENBSnJCO0FBS0xMLE9BQUtJLFNBQUwsQ0FBZSxDQUFmLEVBQWtCRixJQUFsQixLQUEyQixTQUx0QjtBQU1MLFNBQU9GLEtBQUtJLFNBQUwsQ0FBZSxDQUFmLEVBQWtCRSxLQUF6QixLQUFtQyxRQU5yQztBQU9EIiwiZmlsZSI6InN0YXRpY1JlcXVpcmUuanMiLCJzb3VyY2VzQ29udGVudCI6WyIvLyB0b2RvOiBtZXJnZSB3aXRoIG1vZHVsZSB2aXNpdG9yXG5leHBvcnQgZGVmYXVsdCBmdW5jdGlvbiBpc1N0YXRpY1JlcXVpcmUobm9kZSkge1xuICByZXR1cm4gbm9kZSAmJlxuICAgIG5vZGUuY2FsbGVlICYmXG4gICAgbm9kZS5jYWxsZWUudHlwZS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GlvbiBpc1N0YXRpY1JlcXVpcmUobm9kZSkge1xuICByZXR1cm4gbm9kZVxuICAgICYmIG5vZGUuY2FsbGVlXG4gICAgJiYgbm9kZS5jYWxsZWUudHlwZSA9PT0gJ0lkZW50aWZpZXInXG4gICAgJiYgbm9kZS5jYWxsZWUubmFtZSA9PT0gJ3JlcXVpcmUnXG4gICAgJiYgbm9kZS5hcmd1bWVudHMubGVuZ3RoID09PSAxXG4gICAgJiYgbm9kZS5hcmd1bWVudHNbMF0udHlwZSA9PT0gJ0xpdGVyYWwnXG4gICAgJiYgdHlwZW9mIG5vZGUuYXJndW1lbnRzWzBdLnZhbHVlID09PSAnc3RyaW5nJztcbn1cbiJdfQ== \ No newline at end of file diff --git a/node_modules/eslint-plugin-import/lib/index.js b/node_modules/eslint-plugin-import/lib/index.js index 927dd54ecb..daf8d74398 100644 --- a/node_modules/eslint-plugin-import/lib/index.js +++ b/node_modules/eslint-plugin-import/lib/index.js @@ -1,12 +1,12 @@ 'use strict';Object.defineProperty(exports, "__esModule", { value: true });var rules = exports.rules = { 'no-unresolved': require('./rules/no-unresolved'), - 'named': require('./rules/named'), + named: require('./rules/named'), 'default': require('./rules/default'), - 'namespace': require('./rules/namespace'), + namespace: require('./rules/namespace'), 'no-namespace': require('./rules/no-namespace'), 'export': require('./rules/export'), 'no-mutable-exports': require('./rules/no-mutable-exports'), - 'extensions': require('./rules/extensions'), + extensions: require('./rules/extensions'), 'no-restricted-paths': require('./rules/no-restricted-paths'), 'no-internal-modules': require('./rules/no-internal-modules'), 'group-exports': require('./rules/group-exports'), @@ -25,19 +25,19 @@ 'no-commonjs': require('./rules/no-commonjs'), 'no-amd': require('./rules/no-amd'), 'no-duplicates': require('./rules/no-duplicates'), - 'first': require('./rules/first'), + first: require('./rules/first'), 'max-dependencies': require('./rules/max-dependencies'), 'no-extraneous-dependencies': require('./rules/no-extraneous-dependencies'), 'no-absolute-path': require('./rules/no-absolute-path'), 'no-nodejs-modules': require('./rules/no-nodejs-modules'), 'no-webpack-loader-syntax': require('./rules/no-webpack-loader-syntax'), - 'order': require('./rules/order'), + order: require('./rules/order'), 'newline-after-import': require('./rules/newline-after-import'), 'prefer-default-export': require('./rules/prefer-default-export'), 'no-default-export': require('./rules/no-default-export'), 'no-named-export': require('./rules/no-named-export'), 'no-dynamic-require': require('./rules/no-dynamic-require'), - 'unambiguous': require('./rules/unambiguous'), + unambiguous: require('./rules/unambiguous'), 'no-unassigned-import': require('./rules/no-unassigned-import'), 'no-useless-path-segments': require('./rules/no-useless-path-segments'), 'dynamic-import-chunkname': require('./rules/dynamic-import-chunkname'), @@ -55,17 +55,17 @@ var configs = exports.configs = { - 'recommended': require('../config/recommended'), + recommended: require('../config/recommended'), - 'errors': require('../config/errors'), - 'warnings': require('../config/warnings'), + errors: require('../config/errors'), + warnings: require('../config/warnings'), // shhhh... work in progress "secret" rules 'stage-0': require('../config/stage-0'), // useful stuff for folks using various environments - 'react': require('../config/react'), + react: require('../config/react'), 'react-native': require('../config/react-native'), - 'electron': require('../config/electron'), - 'typescript': require('../config/typescript') }; -//# sourceMappingURL=data:application/json;charset=utf-8;base64,eyJ2ZXJzaW9uIjozLCJzb3VyY2VzIjpbIi4uL3NyYy9pbmRleC5qcyJdLCJuYW1lcyI6WyJydWxlcyIsInJlcXVpcmUiLCJjb25maWdzIl0sIm1hcHBpbmdzIjoiMkVBQU8sSUFBTUEsd0JBQVE7QUFDbkIsbUJBQWlCQyxRQUFRLHVCQUFSLENBREU7QUFFbkIsV0FBU0EsUUFBUSxlQUFSLENBRlU7QUFHbkIsYUFBV0EsUUFBUSxpQkFBUixDQUhRO0FBSW5CLGVBQWFBLFFBQVEsbUJBQVIsQ0FKTTtBQUtuQixrQkFBZ0JBLFFBQVEsc0JBQVIsQ0FMRztBQU1uQixZQUFVQSxRQUFRLGdCQUFSLENBTlM7QUFPbkIsd0JBQXNCQSxRQUFRLDRCQUFSLENBUEg7QUFRbkIsZ0JBQWNBLFFBQVEsb0JBQVIsQ0FS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y4uL2NvbmZpZy90eXBlc2NyaXB0JyksXG59O1xuIl19 \ No newline at end of file + electron: require('../config/electron'), + typescript: require('../config/typescript') }; +//# sourceMappingURL=data:application/json;charset=utf-8;base64,eyJ2ZXJzaW9uIjozLCJzb3VyY2VzIjpbIi4uL3NyYy9pbmRleC5qcyJdLCJuYW1lcyI6WyJydWxlcyIsInJlcXVpcmUiLCJuYW1lZCIsIm5hbWVzcGFjZSIsImV4dGVuc2lvbnMiLCJmaXJzdCIsIm9yZGVyIiwidW5hbWJpZ3VvdXMiLCJjb25maWdzIiwicmVjb21tZW5kZWQiLCJlcnJvcnMiLCJ3YXJuaW5ncyIsInJlYWN0IiwiZWxlY3Ryb24iLCJ0eXBlc2NyaXB0Il0sIm1hcHBpbmdzIjoiMkVBQU8sSUFBTUEsd0JBQVE7QUFDbkIsbUJBQWlCQyxRQUFRLHVCQUFSLENBREU7QUFFbkJDLFNBQU9ELFFBQVEsZUFBUixDQUZZO0FBR25CLGFBQVNBLFFBQVEsaUJBQVIsQ0FIVTtBQUluQkUsYUFBV0YsUUFBUSxtQkFBUixDQUpRO0FBS25CLGtCQUFnQkEsUUFBUSxzQkFBUixDQUxHO0FBTW5CLFlBQVFBLFFBQVEsZ0JBQVIsQ0FOVztBQU9uQix3QkFBc0JBLFFBQVEsNEJBQVIsQ0FQSDtBQVFuQkcsY0FBWUgsUUFBUSxvQkFBUixDQVJPO0FBU25CLHlCQUF1QkEsUUFBUSw2QkFBUixDQVRKO0FBVW5CLHlCQUF1QkEsUUFBUSw2QkFBUixDQVZKO0FBV25CLG1CQUFpQkEsUUFBUSx1QkFBUixDQVhFO0FBWW5CLDBCQUF3QkEsUUFBUSw4QkFBUixDQVpMO0FBYW5CLGdDQUE4QkEsUUFBUSxvQ0FBUixDQWJYO0FBY25CLHFDQUFtQ0EsUUFBUSx5Q0FBUixDQWRoQjs7QUFnQm5CLG9CQUFrQkEsUUFBUSx3QkFBUixDQWhCQztBQWlCbkIsY0FBWUEsUUFBUS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8gZGVwcmVjYXRlZCBhbGlhc2VzIHRvIHJ1bGVzXG4gICdpbXBvcnRzLWZpcnN0JzogcmVxdWlyZSgnLi9ydWxlcy9pbXBvcnRzLWZpcnN0JyksXG59O1xuXG5leHBvcnQgY29uc3QgY29uZmlncyA9IHtcbiAgcmVjb21tZW5kZWQ6IHJlcXVpcmUoJy4uL2NvbmZpZy9yZWNvbW1lbmRlZCcpLFxuXG4gIGVycm9yczogcmVxdWlyZSgnLi4vY29uZmlnL2Vycm9ycycpLFxuICB3YXJuaW5nczogcmVxdWlyZSgnLi4vY29uZmlnL3dhcm5pbmdzJyksXG5cbiAgLy8gc2hoaGguLi4gd29yayBpbiBwcm9ncmVzcyBcInNlY3JldFwiIHJ1bGVzXG4gICdzdGFnZS0wJzogcmVxdWlyZSgnLi4vY29uZmlnL3N0YWdlLTAnKSxcblxuICAvLyB1c2VmdWwgc3R1ZmYgZm9yIGZvbGtzIHVzaW5nIHZhcmlvdXMgZW52aXJvbm1lbnRzXG4gIHJlYWN0OiByZXF1aXJlKCcuLi9jb25maWcvcmVhY3QnKSxcbiAgJ3JlYWN0LW5hdGl2ZSc6IHJlcXVpcmUoJy4uL2NvbmZpZy9yZWFjdC1uYXRpdmUnKSxcbiAgZWxlY3Ryb246IHJlcXVpcmUoJy4uL2NvbmZpZy9lbGVjdHJvbicpLFxuICB0eXBlc2NyaXB0OiByZXF1aXJlKCcuLi9jb25maWcvdHlwZXNjcmlwdCcpLFxufTtcbiJdfQ== \ No newline at end of file diff --git a/node_modules/eslint-plugin-import/lib/rules/consistent-type-specifier-style.js b/node_modules/eslint-plugin-import/lib/rules/consistent-type-specifier-style.js index 676f807814..e38d5ebb96 100644 --- a/node_modules/eslint-plugin-import/lib/rules/consistent-type-specifier-style.js +++ b/node_modules/eslint-plugin-import/lib/rules/consistent-type-specifier-style.js @@ -7,9 +7,9 @@ function isComma(token) { function removeSpecifiers(fixes, fixer, sourceCode, specifiers) {var _iteratorNormalCompletion = true;var _didIteratorError = false;var _iteratorError = undefined;try { for (var _iterator = specifiers[Symbol.iterator](), _step; !(_iteratorNormalCompletion = (_step = _iterator.next()).done); _iteratorNormalCompletion = true) {var specifier = _step.value; // remove the trailing comma - var comma = sourceCode.getTokenAfter(specifier, isComma); - if (comma) { - fixes.push(fixer.remove(comma)); + var token = sourceCode.getTokenAfter(specifier); + if (token && isComma(token)) { + fixes.push(fixer.remove(token)); } fixes.push(fixer.remove(specifier)); }} catch (err) {_didIteratorError = true;_iteratorError = err;} finally {try {if (!_iteratorNormalCompletion && _iterator['return']) {_iterator['return']();}} finally {if (_didIteratorError) {throw _iteratorError;}}} @@ -68,11 +68,13 @@ module.exports = { if ( // no specifiers (import type {} from '') have no specifiers to mark as inline node.specifiers.length === 0 || - node.specifiers.length === 1 && ( + node.specifiers.length === 1 // default imports are both "inline" and "top-level" - node.specifiers[0].type === 'ImportDefaultSpecifier' || + && ( + node.specifiers[0].type === 'ImportDefaultSpecifier' // namespace imports are both "inline" and "top-level" - node.specifiers[0].type === 'ImportNamespaceSpecifier')) + || node.specifiers[0].type === 'ImportNamespaceSpecifier')) + { return; } @@ -102,14 +104,16 @@ module.exports = { if ( // already top-level is valid node.importKind === 'type' || - node.importKind === 'typeof' || + node.importKind === 'typeof' // no specifiers (import {} from '') cannot have inline - so is valid - node.specifiers.length === 0 || - node.specifiers.length === 1 && ( + || node.specifiers.length === 0 || + node.specifiers.length === 1 // default imports are both "inline" and "top-level" - node.specifiers[0].type === 'ImportDefaultSpecifier' || + && ( + node.specifiers[0].type === 'ImportDefaultSpecifier' // namespace imports are both "inline" and "top-level" - node.specifiers[0].type === 'ImportNamespaceSpecifier')) + || node.specifiers[0].type === 'ImportNamespaceSpecifier')) + { return; } @@ -214,4 +218,4 @@ module.exports = { }return ImportDeclaration;}() }; }return create;}() }; -//# sourceMappingURL=data:application/json;charset=utf-8;base64,eyJ2ZXJzaW9uIjozLCJzb3VyY2VzIjpbIi4uLy4uL3NyYy9ydWxlcy9jb25zaXN0ZW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mVyLWlubGluZScsXG4gICAgICB9LFxuICAgIF0sXG4gIH0sXG5cbiAgY3JlYXRlKGNvbnRleHQpIHtcbiAgICBjb25zdCBzb3VyY2VDb2RlID0gY29udGV4dC5nZXRTb3VyY2VDb2RlKCk7XG5cbiAgICBpZiAoY29udGV4dC5vcHRpb25zWzBdID09PSAncHJlZmVyLWlubGluZScpIHtcbiAgICAgIHJldHVybiB7XG4gICAgICAgIEltcG9ydERlY2xhcmF0aW9uKG5vZGUpIHtcbiAgICAgICAgICBpZiAobm9kZS5pbXBvcnRLaW5kID09PSAndmFsdWUnIHx8IG5vZGUuaW1wb3J0S2luZCA9PSBudWxsKSB7XG4gICAgICAgICAgICAvLyB0b3AtbGV2ZWwgdmFsdWUgLyB1bmtub3duIGlzIHZhbGlkXG4gICAgICAgICAgICByZXR1cm47XG4gICAgICAgICAgfVxuXG4gICAgICAgICAgaWYgKFxuICAgICAgICAgICAgLy8gbm8gc3BlY2lmaWVycyAoaW1wb3J0IHR5cGUge30gZnJvbSAnJykgaGF2ZSBubyBzcGVjaWZpZXJzIHRvIG1hcmsgYXMgaW5saW5lXG4gICAgICAgICAgICBub2RlLnNwZWNpZmllcnMubGVuZ3RoID09PSAwIHx8XG4gICAgICAgICAgICAobm9kZS5zcGVjaWZpZXJzLmxlbmd0aCA9PT0gMSAmJlxuICAgICAgICAgICAgICAvLyBkZWZhdWx0IGltcG9ydHMgYXJlIGJvdGggXCJpbmxpbmVcIiBhbmQgXCJ0b3AtbGV2ZWxcIlxuICAgICAgICAgICAgICAobm9kZS5zcGVjaWZpZXJzWzBdLnR5cGUgPT09ICdJbXBvcnREZWZhdWx0U3BlY2lmaWVyJyB8fFxuICAgICAgICAgICAgICAgIC8vIG5hbWVzcGFjZSBpbXBvcnRzIGFyZSBib3RoIFwiaW5saW5lXCIgYW5kIFwidG9wLWxldmVsXCJcbiAgICAgICAgICAgICAgICBub2RlLnNwZWNpZmllcnNbMF0udHlwZSA9PT0gJ0ltcG9ydE5hbWVzcGFjZVNwZWNpZmllcicpKVxuICAgICAgICAgICkge1xuICAgICAgICAgICAgcmV0dXJuO1xuICAgICAgICAgIH1cblxuICAgICAgICAgIGNvbnRleHQucmVwb3J0KHtcbiAgICAgICAgICAgIG5vZGUsXG4gICAgICAgICAgICBtZXNzYWdlOiAnUHJlZmVyIHVzaW5nIGlubGluZSB7e2tpbmR9fSBzcGVjaWZpZXJzIGluc3RlYWQgb2YgYSB0b3AtbGV2ZWwge3traW5kfX0tb25seSBpbXBvcnQuJyxcbiAgICAgICAgICAgIGRhdGE6IHtcbiAgICAgICAgICAgICAga2luZDogbm9kZS5pbXBvcnRLaW5kLFxuICAgICAgICAgICAgfSxcbiAgICAgICAgICAgIGZpeChmaXhlcikge1xuICAgICAgICAgICAgICBjb25zdCBraW5kVG9rZW4gPSBzb3VyY2VDb2RlLmdldEZpcnN0VG9rZW4obm9kZSwgeyBza2lwOiAxIH0pO1xuXG4gICAgICAgICAgICAgIHJldHVybiBbXS5jb25jYXQoXG4gICAgICAgICAgICAgICAga2luZFRva2VuID8gZml4ZXIucmVtb3ZlKGtpbmRUb2tlbikgOiBbXSxcbiAgICAgICAgICAgICAgICBub2RlLnNwZWNpZmllcnMubWFwKChzcGVjaWZpZXIpID0+IGZpeGVyLmluc2VydFRleHRCZWZvcmUoc3BlY2lmaWVyLCBgJHtub2RlLmltcG9ydEtpbmR9IGApKSxcbiAgICAgICAgICAgICAgKTtcbiAgICAgICAgICAgIH0sXG4gICAgICAgICAgfSk7XG4gICAgICAgIH0sXG4gICAgICB9O1xuICAgIH1cblxuICAgIC8vIHByZWZlci10b3AtbGV2ZWxcbiAgICByZXR1cm4ge1xuICAgICAgSW1wb3J0RGVjbGFyYXRpb24obm9kZSkge1xuICAgICAgICBpZiAoXG4gICAgICAgICAgLy8gYWxyZWFkeSB0b3AtbGV2ZWwgaXMgdmFsaWRcbiAgICAgICAgICBub2RlLmltcG9ydEtpbmQgPT09ICd0eXBlJyB8fFxuICAgICAgICAgIG5vZGUuaW1wb3J0S2luZCA9PT0gJ3R5cGVvZicgfHxcbiAgICAgICAgICAvLyBubyBzcGVjaWZpZXJzIChpbXBvcnQge30gZnJvbSAnJykgY2Fubm90IGhhdmUgaW5saW5lIC0gc28gaXMgdmFsaWRcbiAgICAgICAgICBub2RlLnNwZWNpZmllcnMubGVuZ3RoID09PSAwIHx8XG4gICAgICAgICAgKG5vZGUuc3BlY2lmaWVycy5sZW5ndGggPT09IDEgJiZcbiAgICAgICAgICAgIC8vIGRlZmF1bHQgaW1wb3J0cyBhcmUgYm90aCBcImlubGluZVwiIGFuZCBcInRvcC1sZXZlbFwiXG4gICAgICAgICAgICAobm9kZS5zcGVjaWZpZXJzWzBdLnR5cGUgPT09ICdJbXBvcnREZWZhdWx0U3BlY2lmaWVyJyB8fFxuICAgICAgICAgICAgICAvLyBuYW1lc3BhY2UgaW1wb3J0cyBhcmUgYm90aCBcImlubGluZVwiIGFuZCBcInRvcC1sZXZlbFwiXG4gICAgICAgICAgICAgIG5vZGUuc3BlY2lmaWVyc1swXS50eXBlID09PSAnSW1wb3J0TmFtZXNwYWNlU3BlY2lmaWVyJykpXG4gICAgICAgICkge1xuICAgICAgICAgIHJldHVybjtcbiAgICAgICAgfVxuXG4gICAgICAgIGNvbnN0IHR5cGVTcGVjaWZpZXJzID0gW107XG4gICAgICAgIGNvbnN0IHR5cGVvZlNwZWNpZmllcnMgPSBbXTtcbiAgICAgICAgY29uc3QgdmFsdWVTcGVjaWZpZXJzID0gW107XG4gICAgICAgIGxldCBkZWZhdWx0U3BlY2lmaWVyID0gbnVsbDtcbiAgICAgICAgZm9yIChjb25zdCBzcGVjaWZpZXIgb2Ygbm9kZS5zcGVjaWZpZXJzKSB7XG4gICAgICAgICAgaWYgKHNwZWNpZmllci50eXBlID09PSAnSW1wb3J0RGVmYXVsdFNwZWNpZmllcicpIHtcbiAgICAgICAgICAgIGRlZmF1bHRTcGVjaWZpZXIgPSBzcGVjaWZpZXI7XG4gICAgICAgICAgICBjb250aW51ZTtcbiAgICAgICAgICB9XG5cbiAgICAgICAgICBpZiAoc3BlY2lmaWVyLmltcG9ydEtpbmQgPT09ICd0eXBlJykge1xuICAgICAgICAgICAgdHlwZVNwZWNpZmllcnMucHVzaChzcGVjaWZpZXIpO1xuICAgICAgICAgIH0gZWxzZSBpZiAoc3BlY2lmaWVyLmltcG9ydEtpbmQgPT09ICd0eXBlb2YnKSB7XG4gICAgICAgICAgICB0eXBlb2ZTcGVjaWZpZXJzLnB1c2goc3BlY2lmaWVyKTtcbiAgICAgICAgICB9IGVsc2UgaWYgKHNwZWNpZmllci5pbXBvcnRLaW5kID09PSAndmFsdWUnIHx8IHNwZWNpZmllci5pbXBvcnRLaW5kID09IG51bGwpIHtcbiAgICAgICAgICAgIHZhbHVlU3BlY2lmaWVycy5wdXNoKHNwZWNpZmllcik7XG4gICAgICAgICAgfVxuICAgICAgICB9XG5cbiAgICAgICAgY29uc3QgdHlwZUltcG9ydCA9IGdldEltcG9ydFRleHQobm9kZSwgc291cmNlQ29kZSwgdHlwZVNwZWNpZmllcnMsICd0eXBlJyk7XG4gICAgICAgIGNvbnN0IHR5cGVvZkltcG9ydCA9IGdldEltcG9ydFRleHQobm9kZSwgc291cmNlQ29kZSwgdHlwZW9mU3BlY2lmaWVycywgJ3R5cGVvZicpO1xuICAgICAgICBjb25zdCBuZXdJbXBvcnRzID0gYCR7dHlwZUltcG9ydH1cXG4ke3R5cGVvZkltcG9ydH1gLnRyaW0oKTtcblxuICAgICAgICBpZiAodHlwZVNwZWNpZmllcnMubGVuZ3RoICsgdHlwZW9mU3BlY2lmaWVycy5sZW5ndGggPT09IG5vZGUuc3BlY2lmaWVycy5sZW5ndGgpIHtcbiAgICAgICAgICAvLyBhbGwgc3BlY2lmaWVycyBoYXZlIGlubGluZSBzcGVjaWZpZXJzIC0gc28gd2UgcmVwbGFjZSB0aGUgZW50aXJlIGltcG9ydFxuICAgICAgICAgIGNvbnN0IGtpbmQgPSBbXS5jb25jYXQoXG4gICAgICAgICAgICB0eXBlU3BlY2lmaWVycy5sZW5ndGggPiAwID8gJ3R5cGUnIDogW10sXG4gICAgICAgICAgICB0eXBlb2ZTcGVjaWZpZXJzLmxlbmd0aCA+IDAgPyAndHlwZW9mJyA6IFtdLFxuICAgICAgICAgICk7XG5cbiAgICAgICAgICBjb250ZXh0LnJlcG9ydCh7XG4gICAgICAgICAgICBub2RlLFxuICAgICAgICAgICAgbWVzc2FnZTogJ1ByZWZlciB1c2luZyBhIHRvcC1sZXZlbCB7e2tpbmR9fS1vbmx5IGltcG9ydCBpbnN0ZWFkIG9mIGlubGluZSB7e2tpbmR9fSBzcGVjaWZpZXJzLicsXG4gICAgICAgICAgICBkYXRhOiB7XG4gICAgICAgICAgICAgIGtpbmQ6IGtpbmQuam9pbignLycpLFxuICAgICAgICAgICAgfSxcbiAgICAgICAgICAgIGZpeChmaXhlcikge1xuICAgICAgICAgICAgICByZXR1cm4gZml4ZXIucmVwbGFjZVRleHQobm9kZSwgbmV3SW1wb3J0cyk7XG4gICAgICAgICAgICB9LFxuICAgICAgICAgIH0pO1xuICAgICAgICB9IGVsc2Uge1xuICAgICAgICAgIC8vIHJlbW92ZSBzcGVjaWZpYyBzcGVjaWZpZXJzIGFuZCBpbnNlcnQgbmV3IGltcG9ydHMgZm9yIHRoZW1cbiAgICAgICAgICBmb3IgKGNvbnN0IHNwZWNpZmllciBvZiB0eXBlU3BlY2lmaWVycy5jb25jYXQodHlwZW9mU3BlY2lmaWVycykpIHtcbiAgICAgICAgICAgIGNvbnRleHQucmVwb3J0KHtcbiAgICAgICAgICAgICAgbm9kZTogc3BlY2lmaWVyLFxuICAgICAgICAgICAgICBtZXNzYWdlOiAnUHJlZmVyIHVzaW5nIGEgdG9wLWxldmVsIHt7a2luZH19LW9ubHkgaW1wb3J0IGluc3RlYWQgb2YgaW5saW5lIHt7a2luZH19IHNwZWNpZmllcnMuJyxcbiAgICAgICAgICAgICAgZGF0YToge1xuICAgICAgICAgICAgICAgIGtpb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W9kJztcbiAgICAgICAgICAgICAgICAgIC8vIG5vdFxuICAgICAgICAgICAgICAgICAgLy8gaW1wb3J0IHsgVmFsdWUsICB9IGZyb20gJ21vZCc7XG4gICAgICAgICAgICAgICAgICBjb25zdCBtYXliZUNvbW1hID0gc291cmNlQ29kZS5nZXRUb2tlbkFmdGVyKHZhbHVlU3BlY2lmaWVyc1t2YWx1ZVNwZWNpZmllcnMubGVuZ3RoIC0gMV0pO1xuICAgICAgICAgICAgICAgICAgaWYgKGlzQ29tbWEobWF5YmVDb21tYSkpIHtcbiAgICAgICAgICAgICAgICAgICAgZml4ZXMucHVzaChmaXhlci5yZW1vdmUobWF5YmVDb21tYSkpO1xuICAgICAgICAgICAgICAgICAgfVxuICAgICAgICAgICAgICAgIH0gZWxzZSBpZiAoZGVmYXVsdFNwZWNpZmllcikge1xuICAgICAgICAgICAgICAgICAgLy8gaW1wb3J0IERlZmF1bHQsIHsgdHlwZSBUeXBlIH0gZnJvbSAnbW9kJztcblxuICAgICAgICAgICAgICAgICAgLy8gcmVtb3ZlIHRoZSBlbnRpcmUgY3VybHkgYmxvY2sgc28gd2UgZG9uJ3QgbGVhdmUgYW4gZW1wdHkgb25lIGJlaGluZFxuICAgICAgICAgICAgICAgICAgLy8gTk9URSAtIHRoZSBkZWZhdWx0IHNwZWNpZmllciAqbXVzdCogYmUgdGhlIGZpcnN0IHNwZWNpZmllciBhbHdheXMhXG4gICAgICAgICAgICAgICAgICAvLyAgICAgICAgc28gYSBjb21tYSBleGlzdHMgdGhhdCB3ZSBhbHNvIGhhdmUgdG8gY2xlYW4gdXAgb3IgZWxzZSBpdCdzIGJhZCBzeW50YXhcbiAgICAgICAgICAgICAgICAgIGNvbnN0IGNvbW1hID0gc291cmNlQ29kZS5nZXRUb2tlbkFmdGVyKGRlZmF1bHRTcGVjaWZpZXIsIGlzQ29tbWEpO1xuICAgICAgICAgICAgICAgICAgY29uc3QgY2xvc2luZ0JyYWNlID0gc291cmNlQ29kZS5nZXRUb2tlbkFmdGVyKFxuICAgICAgICAgICAgICAgICAgICBub2RlLnNwZWNpZmllcnNbbm9kZS5zcGVjaWZpZXJzLmxlbmd0aCAtIDFdLFxuICAgICAgICAgICAgICAgICAgICB0b2tlbiA9PiB0b2tlbi50eXBlID09PSAnUHVuY3R1YXRvcicgJiYgdG9rZW4udmFsdWUgPT09ICd9JyxcbiAgICAgICAgICAgICAgICAgICk7XG4gICAgICAgICAgICAgICAgICBmaXhlcy5wdXNoKGZpeGVyLnJlbW92ZVJhbmdlKFtcbiAgICAgICAgICAgICAgICAgICAgY29tbWEucmFuZ2VbMF0sXG4gICAgICAgICAgICAgICAgICAgIGNsb3NpbmdCcmFjZS5yYW5nZVsxXSxcbiAgICAgICAgICAgICAgICAgIF0pKTtcbiAgICAgICAgICAgICAgICB9XG5cbiAgICAgICAgICAgICAgICByZXR1cm4gZml4ZXMuY29uY2F0KFxuICAgICAgICAgICAgICAgICAgLy8gaW5zZXJ0IHRoZSBuZXcgaW1wb3J0cyBhZnRlciB0aGUgb2xkIGRlY2xhcmF0aW9uXG4gICAgICAgICAgICAgICAgICBmaXhlci5pbnNlcnRUZXh0QWZ0ZXIobm9kZSwgYFxcbiR7bmV3SW1wb3J0c31gKSxcbiAgICAgICAgICAgICAgICApO1xuICAgICAgICAgICAgICB9LFxuICAgICAgICAgICAgfSk7XG4gICAgICAgICAgfVxuICAgICAgICB9XG4gICAgICB9LFxuICAgIH07XG4gIH0sXG59O1xuIl19 \ No newline at end of file +//# sourceMappingURL=data:application/json;charset=utf-8;base64,eyJ2ZXJzaW9uIjozLCJzb3VyY2VzIjpbIi4uLy4uL3NyYy9ydWxlcy9jb25zaXN0ZW50LXR5cGUtc3BlY2lmaWVyLXN0eWxlLmpzIl0sIm5hbWVzIjpbImlzQ29tbWEiLCJ0b2tlbiIsInR5cGUiLCJ2YWx1ZSIsInJlbW92ZVNwZWNpZmllcnMiLCJmaXhlcyIsImZpeGVyIiwic291cmNlQ29kZSIsInNwZWNpZmllcn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mNlQ29kZSgpO1xuXG4gICAgaWYgKGNvbnRleHQub3B0aW9uc1swXSA9PT0gJ3ByZWZlci1pbmxpbmUnKSB7XG4gICAgICByZXR1cm4ge1xuICAgICAgICBJbXBvcnREZWNsYXJhdGlvbihub2RlKSB7XG4gICAgICAgICAgaWYgKG5vZGUuaW1wb3J0S2luZCA9PT0gJ3ZhbHVlJyB8fCBub2RlLmltcG9ydEtpbmQgPT0gbnVsbCkge1xuICAgICAgICAgICAgLy8gdG9wLWxldmVsIHZhbHVlIC8gdW5rbm93biBpcyB2YWxpZFxuICAgICAgICAgICAgcmV0dXJuO1xuICAgICAgICAgIH1cblxuICAgICAgICAgIGlmIChcbiAgICAgICAgICAgIC8vIG5vIHNwZWNpZmllcnMgKGltcG9ydCB0eXBlIHt9IGZyb20gJycpIGhhdmUgbm8gc3BlY2lmaWVycyB0byBtYXJrIGFzIGlubGluZVxuICAgICAgICAgICAgbm9kZS5zcGVjaWZpZXJzLmxlbmd0aCA9PT0gMFxuICAgICAgICAgICAgfHwgbm9kZS5zcGVjaWZpZXJzLmxlbmd0aCA9PT0gMVxuICAgICAgICAgICAgLy8gZGVmYXVsdCBpbXBvcnRzIGFyZSBib3RoIFwiaW5saW5lXCIgYW5kIFwidG9wLWxldmVsXCJcbiAgICAgICAgICAgICYmIChcbiAgICAgICAgICAgICAgbm9kZS5zcGVjaWZpZXJzWzBdLnR5cGUgPT09ICdJbXBvcnREZWZhdWx0U3BlY2lmaWVyJ1xuICAgICAgICAgICAgICAvLyBuYW1lc3BhY2UgaW1wb3J0cyBhcmUgYm90aCBcImlubGluZVwiIGFuZCBcInRvcC1sZXZlbFwiXG4gICAgICAgICAgICAgIHx8IG5vZGUuc3BlY2lmaWVyc1swXS50eXBlID09PSAnSW1wb3J0TmFtZXNwYWNlU3BlY2lmaWVyJ1xuICAgICAgICAgICAgKVxuICAgICAgICAgICkge1xuICAgICAgICAgICAgcmV0dXJuO1xuICAgICAgICAgIH1cblxuICAgICAgICAgIGNvbnRleHQucmVwb3J0KHtcbiAgICAgICAgICAgIG5vZGUsXG4gICAgICAgICAgICBtZXNzYWdlOiAnUHJlZmVyIHVzaW5nIGlubGluZSB7e2tpbmR9fSBzcGVjaWZpZXJzIGluc3RlYWQgb2YgYSB0b3AtbGV2ZWwge3traW5kfX0tb25seSBpbXBvcnQuJyxcbiAgICAgICAgICAgIGRhdGE6IHtcbiAgICAgICAgICAgICAga2luZDogbm9kZS5pbXBvcnRLaW5kLFxuICAgICAgICAgICAgfSxcbiAgICAgICAgICAgIGZpeChmaXhlcikge1xuICAgICAgICAgICAgICBjb25zdCBraW5kVG9rZW4gPSBzb3VyY2VDb2RlLmdldEZpcnN0VG9rZW4obm9kZSwgeyBza2lwOiAxIH0pO1xuXG4gICAgICAgICAgICAgIHJldHVybiBbXS5jb25jYXQoXG4gICAgICAgICAgICAgICAga2luZFRva2VuID8gZml4ZXIucmVtb3ZlKGtpbmRUb2tlbikgOiBbXSxcbiAgICAgICAgICAgICAgICBub2RlLnNwZWNpZmllcnMubWFwKChzcGVjaWZpZXIpID0+IGZpeGVyLmluc2VydFRleHRCZWZvcmUoc3BlY2lmaWVyLCBgJHtub2RlLmltcG9ydEtpbmR9IGApKSxcbiAgICAgICAgICAgICAgKTtcbiAgICAgICAgICAgIH0sXG4gICAgICAgICAgfSk7XG4gICAgICAgIH0sXG4gICAgICB9O1xuICAgIH1cblxuICAgIC8vIHByZWZlci10b3AtbGV2ZWxcbiAgICByZXR1cm4ge1xuICAgICAgSW1wb3J0RGVjbGFyYXRpb24obm9kZSkge1xuICAgICAgICBpZiAoXG4gICAgICAgICAgLy8gYWxyZWFkeSB0b3AtbGV2ZWwgaXMgdmFsaWRcbiAgICAgICAgICBub2RlLmltcG9ydEtpbmQgPT09ICd0eXBlJ1xuICAgICAgICAgIHx8IG5vZGUuaW1wb3J0S2luZCA9PT0gJ3R5cGVvZidcbiAgICAgICAgICAvLyBubyBzcGVjaWZpZXJzIChpbXBvcnQge30gZnJvbSAnJykgY2Fubm90IGhhdmUgaW5saW5lIC0gc28gaXMgdmFsaWRcbiAgICAgICAgICB8fCBub2RlLnNwZWNpZmllcnMubGVuZ3RoID09PSAwXG4gICAgICAgICAgfHwgbm9kZS5zcGVjaWZpZXJzLmxlbmd0aCA9PT0gMVxuICAgICAgICAgIC8vIGRlZmF1bHQgaW1wb3J0cyBhcmUgYm90aCBcImlubGluZVwiIGFuZCBcInRvcC1sZXZlbFwiXG4gICAgICAgICAgJiYgKFxuICAgICAgICAgICAgbm9kZS5zcGVjaWZpZXJzWzBdLnR5cGUgPT09ICdJbXBvcnREZWZhdWx0U3BlY2lmaWVyJ1xuICAgICAgICAgICAgLy8gbmFtZXNwYWNlIGltcG9ydHMgYXJlIGJvdGggXCJpbmxpbmVcIiBhbmQgXCJ0b3AtbGV2ZWxcIlxuICAgICAgICAgICAgfHwgbm9kZS5zcGVjaWZpZXJzWzBdLnR5cGUgPT09ICdJbXBvcnROYW1lc3BhY2VTcGVjaWZpZXInXG4gICAgICAgICAgKVxuICAgICAgICApIHtcbiAgICAgICAgICByZXR1cm47XG4gICAgICAgIH1cblxuICAgICAgICBjb25zdCB0eXBlU3BlY2lmaWVycyA9IFtdO1xuICAgICAgICBjb25zdCB0eXBlb2ZTcGVjaWZpZXJzID0gW107XG4gICAgICAgIGNvbnN0IHZhbHVlU3BlY2lmaWVycyA9IFtdO1xuICAgICAgICBsZXQgZGVmYXVsdFNwZWNpZmllciA9IG51bGw7XG4gICAgICAgIGZvciAoY29uc3Qgc3BlY2lmaWVyIG9mIG5vZGUuc3BlY2lmaWVycykge1xuICAgICAgICAgIGlmIChzcGVjaWZpZXIudHlwZSA9PT0gJ0ltcG9ydERlZmF1bHRTcGVjaWZpZXInKSB7XG4gICAgICAgICAgICBkZWZhdWx0U3BlY2lmaWVyID0gc3BlY2lmaWVyO1xuICAgICAgICAgICAgY29udGludWU7XG4gICAgICAgICAgfVxuXG4gICAgICAgICAgaWYgKHNwZWNpZmllci5pbXBvcnRLaW5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ICd0eXBlJyA6IFtdLFxuICAgICAgICAgICAgdHlwZW9mU3BlY2lmaWVycy5sZW5ndGggPiAwID8gJ3R5cGVvZicgOiBbXSxcbiAgICAgICAgICApO1xuXG4gICAgICAgICAgY29udGV4dC5yZXBvcnQoe1xuICAgICAgICAgICAgbm9kZSxcbiAgICAgICAgICAgIG1lc3NhZ2U6ICdQcmVmZXIgdXNpbmcgYSB0b3AtbGV2ZWwge3traW5kfX0tb25seSBpbXBvcnQgaW5zdGVhZCBvZiBpbmxpbmUge3traW5kfX0gc3BlY2lmaWVycy4nLFxuICAgICAgICAgICAgZGF0YToge1xuICAgICAgICAgICAgICBraW5kOiBraW5kLmpvaW4oJy8nKSxcbiAgICAgICAgICAgIH0sXG4gICAgICAgICAgICBmaXgoZml4ZXIpIHtcbiAgICAgICAgICAgICAgcmV0dXJuIGZpeGVyLnJlcGxhY2VUZXh0KG5vZGUsIG5ld0ltcG9ydHMpO1xuICAgICAgICAgICAgfSxcbiAgICAgICAgICB9KTtcbiAgICAgICAgfSBlbHNlIHtcbiAgICAgICAgICAvLyByZW1vdmUgc3BlY2lmaWMgc3BlY2lmaWVycyBhbmQgaW5zZXJ0IG5ldyBpbXBvcnRzIGZvciB0aGVtXG4gICAgICAgICAgZm9yIChjb25zdCBzcGVjaWZpZXIgb2YgdHlwZVNwZWNpZmllcnMuY29uY2F0KHR5cGVvZlNwZWNpZmllcnMpKSB7XG4gICAgICAgICAgICBjb250ZXh0LnJlcG9ydCh7XG4gICAgICAgICAgICAgIG5vZGU6IHNwZWNpZmllcixcbiAgICAgICAgICAgICAgbWVzc2FnZTogJ1ByZWZlciB1c2luZyBhIHRvcC1sZXZlbCB7e2tpbmR9fS1vbmx5IGltcG9ydCBpbnN0ZWFkIG9mIGlubGluZSB7e2tpbmR9fSBzcGVjaWZpZXJzLicsXG4gICAgICAgICAgICAgIGRhdGE6IHtcbiAgICAgICAgICAgICAgICBraW5kOiBzcGVjaWZpZXIuaW1wb3J0S2luZCxcbiAg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iAgICAgICAgICAgICAgICAgICAgbm9kZS5zcGVjaWZpZXJzW25vZGUuc3BlY2lmaWVycy5sZW5ndGggLSAxXSxcbiAgICAgICAgICAgICAgICAgICAgKHRva2VuKSA9PiB0b2tlbi50eXBlID09PSAnUHVuY3R1YXRvcicgJiYgdG9rZW4udmFsdWUgPT09ICd9JyxcbiAgICAgICAgICAgICAgICAgICk7XG4gICAgICAgICAgICAgICAgICBmaXhlcy5wdXNoKGZpeGVyLnJlbW92ZVJhbmdlKFtcbiAgICAgICAgICAgICAgICAgICAgY29tbWEucmFuZ2VbMF0sXG4gICAgICAgICAgICAgICAgICAgIGNsb3NpbmdCcmFjZS5yYW5nZVsxXSxcbiAgICAgICAgICAgICAgICAgIF0pKTtcbiAgICAgICAgICAgICAgICB9XG5cbiAgICAgICAgICAgICAgICByZXR1cm4gZml4ZXMuY29uY2F0KFxuICAgICAgICAgICAgICAgICAgLy8gaW5zZXJ0IHRoZSBuZXcgaW1wb3J0cyBhZnRlciB0aGUgb2xkIGRlY2xhcmF0aW9uXG4gICAgICAgICAgICAgICAgICBmaXhlci5pbnNlcnRUZXh0QWZ0ZXIobm9kZSwgYFxcbiR7bmV3SW1wb3J0c31gKSxcbiAgICAgICAgICAgICAgICApO1xuICAgICAgICAgICAgICB9LFxuICAgICAgICAgICAgfSk7XG4gICAgICAgICAgfVxuICAgICAgICB9XG4gICAgICB9LFxuICAgIH07XG4gIH0sXG59O1xuIl19 \ No newline at end of file diff --git a/node_modules/eslint-plugin-import/lib/rules/default.js b/node_modules/eslint-plugin-import/lib/rules/default.js index 65e4f4753d..f3e7d58d28 100644 --- a/node_modules/eslint-plugin-import/lib/rules/default.js +++ b/node_modules/eslint-plugin-import/lib/rules/default.js @@ -13,16 +13,14 @@ module.exports = { create: function () {function create(context) { - function checkDefault(specifierType, node) { - var defaultSpecifier = node.specifiers.find( function (specifier) {return specifier.type === specifierType;}); - if (!defaultSpecifier) return; + if (!defaultSpecifier) {return;} var imports = _ExportMap2['default'].get(node.source.value, context); - if (imports == null) return; + if (imports == null) {return;} if (imports.errors.length) { imports.reportErrors(context, node); @@ -35,8 +33,8 @@ module.exports = { } return { - 'ImportDeclaration': checkDefault.bind(null, 'ImportDefaultSpecifier'), - 'ExportNamedDeclaration': checkDefault.bind(null, 'ExportDefaultSpecifier') }; + ImportDeclaration: checkDefault.bind(null, 'ImportDefaultSpecifier'), + ExportNamedDeclaration: checkDefault.bind(null, 'ExportDefaultSpecifier') }; }return create;}() }; -//# sourceMappingURL=data:application/json;charset=utf-8;base64,eyJ2ZXJzaW9uIjozLCJzb3VyY2VzIjpbIi4uLy4uL3NyYy9ydWxlcy9kZWZhdWx0LmpzIl0sIm5hbWVzIjpbIm1vZHVsZSIsImV4cG9ydHMiLCJtZXRhIiwidHlwZSIsImRvY3MiLCJjYXRlZ29yeSIsImRlc2NyaXB0aW9uIiwidXJsIiwic2NoZW1hIiwiY3JlYXRlIiwiY29udGV4dCIsImNoZWNrRGVmYXVsdCIsInNwZWNpZmllclR5cGUiLCJub2RlIiwiZGVmYXVsdFNwZWNpZmllciIsInNwZWNpZmllcnMiLCJmaW5kIiwic3BlY2lmaWVyIiwiaW1wb3J0cyIsIkV4cG9ydHMiLCJnZXQiLCJzb3VyY2UiLCJ2YWx1ZSIsImVycm9ycyIsImxlbmd0aCIsInJlcG9ydEVycm9ycyIsInVuZGVmaW5lZCIsInJlcG9ydCIsIm1lc3NhZ2UiLCJiaW5kIl0sIm1hcHBpbmdzIjoiYUFBQSx5QztBQUNBLHFDOztBQUVBQSxPQUFPQyxPQUFQLEdBQWlCO0FBQ2ZDLFFBQU07QUFDSkMsVUFBTSxTQURGO0FBRUpDLFVBQU07QUFDSkMsZ0JBQVUsaUJBRE47QUFFSkMsbUJBQWEsNkRBRlQ7QUFHSkMsV0FBSywwQkFBUSxTQUFSLENBSEQsRUFGRjs7QUFPSkMsWUFBUSxFQVBKLEVBRFM7OztBQVdmQyxRQVhlLCtCQVdSQyxPQVhRLEVBV0M7O0F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J0ZWQgbW9kdWxlIFwiJHtub2RlLnNvdXJjZS52YWx1ZX1cIi5gLFxuICAgICAgICB9KTtcbiAgICAgIH1cbiAgICB9XG5cbiAgICByZXR1cm4ge1xuICAgICAgJ0ltcG9ydERlY2xhcmF0aW9uJzogY2hlY2tEZWZhdWx0LmJpbmQobnVsbCwgJ0ltcG9ydERlZmF1bHRTcGVjaWZpZXInKSxcbiAgICAgICdFeHBvcnROYW1lZERlY2xhcmF0aW9uJzogY2hlY2tEZWZhdWx0LmJpbmQobnVsbCwgJ0V4cG9ydERlZmF1bHRTcGVjaWZpZXInKSxcbiAgICB9O1xuICB9LFxufTtcbiJdfQ== \ No newline at end of file +//# sourceMappingURL=data:application/json;charset=utf-8;base64,eyJ2ZXJzaW9uIjozLCJzb3VyY2VzIjpbIi4uLy4uL3NyYy9ydWxlcy9kZWZhdWx0LmpzIl0sIm5hbWVzIjpbIm1vZHVsZSIsImV4cG9ydHMiLCJtZXRhIiwidHlwZSIsImRvY3MiLCJjYXRlZ29yeSIsImRlc2NyaXB0aW9uIiwidXJsIiwic2NoZW1hIiwiY3JlYXRlIiwiY29udGV4dCIsImNoZWNrRGVmYXVsdCIsInNwZWNpZmllclR5cGUiLCJub2RlIiwiZGVmYXVsdFNwZWNpZmllciIsInNwZWNpZmllcnMiLCJmaW5kIiwic3BlY2lmaWVyIiwiaW1wb3J0cyIsIkV4cG9ydHMiLCJnZXQiLCJzb3VyY2UiLCJ2YWx1ZSIsImVycm9ycyIsImxlbmd0aCIsInJlcG9ydEVycm9ycyIsInVuZGVmaW5lZCIsInJlcG9ydCIsIm1lc3NhZ2UiLCJJbXBvcnREZWNsYXJhdGlvbiIsImJpbmQiLCJFeHBvcnROYW1lZERlY2xhcmF0aW9uIl0sIm1hcHBpbmdzIjoiYUFBQSx5QztBQUNBLHFDOztBQUVBQSxPQUFPQyxPQUFQLEdBQWlCO0FBQ2ZDLFFBQU07QUFDSkMsVUFBTSxTQURGO0FBRUpDLFVBQU07QUFDSk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UpO1xuICAgICAgfSBlbHNlIGlmIChpbXBvcnRzLmdldCgnZGVmYXVsdCcpID09PSB1bmRlZmluZWQpIHtcbiAgICAgICAgY29udGV4dC5yZXBvcnQoe1xuICAgICAgICAgIG5vZGU6IGRlZmF1bHRTcGVjaWZpZXIsXG4gICAgICAgICAgbWVzc2FnZTogYE5vIGRlZmF1bHQgZXhwb3J0IGZvdW5kIGluIGltcG9ydGVkIG1vZHVsZSBcIiR7bm9kZS5zb3VyY2UudmFsdWV9XCIuYCxcbiAgICAgICAgfSk7XG4gICAgICB9XG4gICAgfVxuXG4gICAgcmV0dXJuIHtcbiAgICAgIEltcG9ydERlY2xhcmF0aW9uOiBjaGVja0RlZmF1bHQuYmluZChudWxsLCAnSW1wb3J0RGVmYXVsdFNwZWNpZmllcicpLFxuICAgICAgRXhwb3J0TmFtZWREZWNsYXJhdGlvbjogY2hlY2tEZWZhdWx0LmJpbmQobnVsbCwgJ0V4cG9ydERlZmF1bHRTcGVjaWZpZXInKSxcbiAgICB9O1xuICB9LFxufTtcbiJdfQ== \ No newline at end of file diff --git a/node_modules/eslint-plugin-import/lib/rules/dynamic-import-chunkname.js b/node_modules/eslint-plugin-import/lib/rules/dynamic-import-chunkname.js index 858d38cb70..926dcf7e26 100644 --- a/node_modules/eslint-plugin-import/lib/rules/dynamic-import-chunkname.js +++ b/node_modules/eslint-plugin-import/lib/rules/dynamic-import-chunkname.js @@ -72,8 +72,7 @@ module.exports = { try { // just like webpack itself does _vm2['default'].runInNewContext('(function() {return {' + String(comment.value) + '}})()'); - } - catch (error) { + } catch (error) { context.report({ node: node, message: 'dynamic imports require a "webpack" comment with valid syntax' }); @@ -118,4 +117,4 @@ module.exports = { }return CallExpression;}() }; }return create;}() }; -//# sourceMappingURL=data:application/json;charset=utf-8;base64,eyJ2ZXJzaW9uIjozLCJzb3VyY2VzIjpbIi4uLy4uL3NyYy9ydWxlcy9keW5hbWljLWltcG9ydC1jaHVua25hbWUuanMiXSwibmFtZXMiOlsib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c3QgY29tbWVudCBvZiBsZWFkaW5nQ29tbWVudHMpIHtcbiAgICAgICAgaWYgKGNvbW1lbnQudHlwZSAhPT0gJ0Jsb2NrJykge1xuICAgICAgICAgIGNvbnRleHQucmVwb3J0KHtcbiAgICAgICAgICAgIG5vZGUsXG4gICAgICAgICAgICBtZXNzYWdlOiAnZHluYW1pYyBpbXBvcnRzIHJlcXVpcmUgYSAvKiBmb28gKi8gc3R5bGUgY29tbWVudCwgbm90IGEgLy8gZm9vIGNvbW1lbnQnLFxuICAgICAgICAgIH0pO1xuICAgICAgICAgIHJldHVybjtcbiAgICAgICAgfVxuXG4gICAgICAgIGlmICghcGFkZGVkQ29tbWVudFJlZ2V4LnRlc3QoY29tbWVudC52YWx1ZSkpIHtcbiAgICAgICAgICBjb250ZXh0LnJlcG9ydCh7XG4gICAgICAgICAgICBub2RlLFxuICAgICAgICAgICAgbWVzc2FnZTogYGR5bmFtaWMgaW1wb3J0cyByZXF1aXJlIGEgYmxvY2sgY29tbWVudCBwYWRkZWQgd2l0aCBzcGFjZXMgLSAvKiBmb28gKi9gLFxuICAgICAgICAgIH0pO1xuICAgICAgICAgIHJldHVybjtcbiAgICAgICAgfVxuXG4gICAgICAgIHRyeSB7XG4gICAgICAgICAgLy8ganVzdCBsaWtlIHdlYnBhY2sgaXRzZWxmIGRvZXNcbiAgICAgICAgICB2bS5ydW5Jbk5ld0NvbnRleHQoYChmdW5jdGlvbigpIHtyZXR1cm4geyR7Y29tbWVudC52YWx1ZX19fSkoKWApO1xuICAgICAgICB9XG4gICAgICAgIGNhdGNoIChlcnJvcikge1xuICAgICAgICAgIGNvbnRleHQucmVwb3J0KHtcbiAgICAgICAgICAgIG5vZGUsXG4gICAgICAgICAgICBtZXNzYWdlOiBgZHluYW1pYyBpbXBvcnRzIHJlcXVpcmUgYSBcIndlYnBhY2tcIiBjb21tZW50IHdpdGggdmFsaWQgc3ludGF4YCxcbiAgICAgICAgICB9KTtcbiAgICAgICAgICByZXR1cm47XG4gICAgICAgIH1cblxuICAgICAgICBpZiAoIWNvbW1lbnRTdHlsZVJlZ2V4LnRlc3QoY29tbWVudC52YWx1ZSkpIHtcbiAgICAgICAgICBjb250ZXh0LnJlcG9ydCh7XG4gICAgICAgICAgICBub2RlLFxuICAgICAgICAgICAgbWVzc2FnZTpcbiAgICAgICAgICAgICAgYGR5bmFtaWMgaW1wb3J0cyByZXF1aXJlIGEgXCJ3ZWJwYWNrXCIgY29tbWVudCB3aXRoIHZhbGlkIHN5bnRheGAsXG4gICAgICAgICAgfSk7XG4gICAgICAgICAgcmV0dXJuO1xuICAgICAgICB9XG5cbiAgICAgICAgaWYgKGNodW5rU3Vic3RyUmVnZXgudGVzdChjb21tZW50LnZhbHVlKSkge1xuICAgICAgICAgIGlzQ2h1bmtuYW1lUHJlc2VudCA9IHRydWU7XG4gICAgICAgIH1cbiAgICAgIH1cblxuICAgICAgaWYgKCFpc0NodW5rbmFtZVByZXNlbnQpIHtcbiAgICAgICAgY29udGV4dC5yZXBvcnQoe1xuICAgICAgICAgIG5vZGUsXG4gICAgICAgICAgbWVzc2FnZTpcbiAgICAgICAgICAgIGBkeW5hbWljIGltcG9ydHMgcmVxdWlyZSBhIGxlYWRpbmcgY29tbWVudCBpbiB0aGUgZm9ybSAvKiR7Y2h1bmtTdWJzdHJGb3JtYXR9Ki9gLFxuICAgICAgICB9KTtcbiAgICAgIH1cbiAgICB9XG5cbiAgICByZXR1cm4ge1xuICAgICAgSW1wb3J0RXhwcmVzc2lvbihub2RlKSB7XG4gICAgICAgIHJ1bihub2RlLCBub2RlLnNvdXJjZSk7XG4gICAgICB9LFxuXG4gICAgICBDYWxsRXhwcmVzc2lvbihub2RlKSB7XG4gICAgICAgIGlmIChub2RlLmNhbGxlZS50eXBlICE9PSAnSW1wb3J0JyAmJiBpbXBvcnRGdW5jdGlvbnMuaW5kZXhPZihub2RlLmNhbGxlZS5uYW1lKSA8IDApIHtcbiAgICAgICAgICByZXR1cm47XG4gICAgICAgIH1cblxuICAgICAgICBydW4obm9kZSwgbm9kZS5hcmd1bWVudHNbMF0pO1xuICAgICAgfSxcbiAgICB9O1xuICB9LFxufTtcbiJdfQ== \ No newline at end of file +//# sourceMappingURL=data:application/json;charset=utf-8;base64,eyJ2ZXJzaW9uIjozLCJzb3VyY2VzIjpbIi4uLy4uL3NyYy9ydWxlcy9keW5hbWljLWltcG9ydC1jaHVua25hbWUuanMiXSwibmFtZXMiOlsibW9kdWxlIiwiZXhwb3J0cyIsIm1ldGEiLCJ0eXBlIiwiZG9jcyIsImNhdGVnb3J5IiwiZGVzY3JpcHRpb24iLCJ1cmwiLCJzY2hlbWEiLCJwcm9wZXJ0aWVzIiwiaW1wb3J0RnVuY3Rpb25zIiwidW5pcXVlSXRlbXMiLCJpdGVtcyIsIndlYnBhY2tDaHVua25hbWVGb3JtYXQiLCJjcmVhdGUiLCJjb250ZXh0IiwiY29uZmlnIiwib3B0aW9ucyIsInBhZGRlZENvbW1lbnRSZWdleCIsImNvbW1lbnRTdHlsZVJlZ2V4IiwiY2h1bmtTdWJzdHJGb3JtYXQiLCJjaHVua1N1YnN0clJlZ2V4IiwiUmVnRXhwIiwicnVuIiwibm9kZSIsImFyZyIsInNvdXJjZUNvZGUiLCJnZXRTb3VyY2VDb2RlIiwibGVhZGluZ0NvbW1lbnRzIiwiZ2V0Q29tbWVudHNCZWZvcmUiLCJnZXRDb21tZW50cyIsImxlYWRpbmciLCJsZW5ndGgiLCJyZXBvcnQiLCJtZXNzYWdlIiwiaXNDaHVua25hbWVQcmVzZW50IiwiY29tbWVudCIsInRlc3QiLCJ2YWx1ZSIsInZtIiwicnVuSW5OZXdDb250ZXh0IiwiZXJyb3IiLCJJbXBvcnRFeHByZXNzaW9uIiwic291cmNlIiwiQ2FsbEV4cHJlc3Npb24iLCJjYWxsZWUiLCJpbmRleE9mIiwibmFtZSIsImFyZ3VtZW50cyJdLCJtYXBwaW5ncyI6ImFBQUEsd0I7QUFDQSxxQzs7QUFFQUEsT0FBT0MsT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ZGUsXG4gICAgICAgICAgbWVzc2FnZTogJ2R5bmFtaWMgaW1wb3J0cyByZXF1aXJlIGEgbGVhZGluZyBjb21tZW50IHdpdGggdGhlIHdlYnBhY2sgY2h1bmtuYW1lJyxcbiAgICAgICAgfSk7XG4gICAgICAgIHJldHVybjtcbiAgICAgIH1cblxuICAgICAgbGV0IGlzQ2h1bmtuYW1lUHJlc2VudCA9IGZhbHNlO1xuXG4gICAgICBmb3IgKGNvbnN0IGNvbW1lbnQgb2YgbGVhZGluZ0NvbW1lbnRzKSB7XG4gICAgICAgIGlmIChjb21tZW50LnR5cGUgIT09ICdCbG9jaycpIHtcbiAgICAgICAgICBjb250ZXh0LnJlcG9ydCh7XG4gICAgICAgICAgICBub2RlLFxuICAgICAgICAgICAgbWVzc2FnZTogJ2R5bmFtaWMgaW1wb3J0cyByZXF1aXJlIGEgLyogZm9vICovIHN0eWxlIGNvbW1lbnQsIG5vdCBhIC8vIGZvbyBjb21tZW50JyxcbiAgICAgICAgICB9KTtcbiAgICAgICAgICByZXR1cm47XG4gICAgICAgIH1cblxuICAgICAgICBpZiAoIXBhZGRlZENvbW1lbnRSZWdleC50ZXN0KGNvbW1lbnQudmFsdWUpKSB7XG4gICAgICAgICAgY29udGV4dC5yZXBvcnQoe1xuICAgICAgICAgICAgbm9kZSxcbiAgICAgICAgICAgIG1lc3NhZ2U6IGBkeW5hbWljIGltcG9ydHMgcmVxdWlyZSBhIGJsb2NrIGNvbW1lbnQgcGFkZGVkIHdpdGggc3BhY2VzIC0gLyogZm9vICovYCxcbiAgICAgICAgICB9KTtcbiAgICAgICAgICByZXR1cm47XG4gICAgICAgIH1cblxuICAgICAgICB0cnkge1xuICAgICAgICAgIC8vIGp1c3QgbGlrZSB3ZWJwYWNrIGl0c2VsZiBkb2VzXG4gICAgICAgICAgdm0ucnVuSW5OZXdDb250ZXh0KGAoZnVuY3Rpb24oKSB7cmV0dXJuIHske2NvbW1lbnQudmFsdWV9fX0pKClgKTtcbiAgICAgICAgfSBjYXRjaCAoZXJyb3IpIHtcbiAgICAgICAgICBjb250ZXh0LnJlcG9ydCh7XG4gICAgICAgICAgICBub2RlLFxuICAgICAgICAgICAgbWVzc2FnZTogYGR5bmFtaWMgaW1wb3J0cyByZXF1aXJlIGEgXCJ3ZWJwYWNrXCIgY29tbWVudCB3aXRoIHZhbGlkIHN5bnRheGAsXG4gICAgICAgICAgfSk7XG4gICAgICAgICAgcmV0dXJuO1xuICAgICAgICB9XG5cbiAgICAgICAgaWYgKCFjb21tZW50U3R5bGVSZWdleC50ZXN0KGNvbW1lbnQudmFsdWUpKSB7XG4gICAgICAgICAgY29udGV4dC5yZXBvcnQoe1xuICAgICAgICAgICAgbm9kZSxcbiAgICAgICAgICAgIG1lc3NhZ2U6XG4gICAgICAgICAgICAgIGBkeW5hbWljIGltcG9ydHMgcmVxdWlyZSBhIFwid2VicGFja1wiIGNvbW1lbnQgd2l0aCB2YWxpZCBzeW50YXhgLFxuICAgICAgICAgIH0pO1xuICAgICAgICAgIHJldHVybjtcbiAgICAgICAgfVxuXG4gICAgICAgIGlmIChjaHVua1N1YnN0clJlZ2V4LnRlc3QoY29tbWVudC52YWx1ZSkpIHtcbiAgICAgICAgICBpc0NodW5rbmFtZVByZXNlbnQgPSB0cnVlO1xuICAgICAgICB9XG4gICAgICB9XG5cbiAgICAgIGlmICghaXNDaHVua25hbWVQcmVzZW50KSB7XG4gICAgICAgIGNvbnRleHQucmVwb3J0KHtcbiAgICAgICAgICBub2RlLFxuICAgICAgICAgIG1lc3NhZ2U6XG4gICAgICAgICAgICBgZHluYW1pYyBpbXBvcnRzIHJlcXVpcmUgYSBsZWFkaW5nIGNvbW1lbnQgaW4gdGhlIGZvcm0gLyoke2NodW5rU3Vic3RyRm9ybWF0fSovYCxcbiAgICAgICAgfSk7XG4gICAgICB9XG4gICAgfVxuXG4gICAgcmV0dXJuIHtcbiAgICAgIEltcG9ydEV4cHJlc3Npb24obm9kZSkge1xuICAgICAgICBydW4obm9kZSwgbm9kZS5zb3VyY2UpO1xuICAgICAgfSxcblxuICAgICAgQ2FsbEV4cHJlc3Npb24obm9kZSkge1xuICAgICAgICBpZiAobm9kZS5jYWxsZWUudHlwZSAhPT0gJ0ltcG9ydCcgJiYgaW1wb3J0RnVuY3Rpb25zLmluZGV4T2Yobm9kZS5jYWxsZWUubmFtZSkgPCAwKSB7XG4gICAgICAgICAgcmV0dXJuO1xuICAgICAgICB9XG5cbiAgICAgICAgcnVuKG5vZGUsIG5vZGUuYXJndW1lbnRzWzBdKTtcbiAgICAgIH0sXG4gICAgfTtcbiAgfSxcbn07XG4iXX0= \ No newline at end of file diff --git a/node_modules/eslint-plugin-import/lib/rules/export.js b/node_modules/eslint-plugin-import/lib/rules/export.js index 069d5c188c..97228ec5aa 100644 --- a/node_modules/eslint-plugin-import/lib/rules/export.js +++ b/node_modules/eslint-plugin-import/lib/rules/export.js @@ -38,13 +38,14 @@ var tsTypePrefix = 'type:'; function isTypescriptFunctionOverloads(nodes) { var nodesArr = Array.from(nodes); - var idents = (0, _arrayPrototype2['default'])(nodesArr, function (node) {return ( - node.declaration && ( - node.declaration.type === 'TSDeclareFunction' // eslint 6+ - || node.declaration.type === 'TSEmptyBodyFunctionDeclaration' // eslint 4-5 - ) ? - node.declaration.id.name : - []);}); + var idents = (0, _arrayPrototype2['default'])( + nodesArr, + function (node) {return node.declaration && ( + node.declaration.type === 'TSDeclareFunction' // eslint 6+ + || node.declaration.type === 'TSEmptyBodyFunctionDeclaration' // eslint 4-5 + ) ? + node.declaration.id.name : + [];}); if (new Set(idents).size !== idents.length) { return true; @@ -166,7 +167,7 @@ module.exports = { }return ExportSpecifier;}(), ExportNamedDeclaration: function () {function ExportNamedDeclaration(node) { - if (node.declaration == null) return; + if (node.declaration == null) {return;} var parent = getParent(node); // support for old TypeScript versions @@ -185,20 +186,19 @@ module.exports = { if (node.declaration.declarations != null) {var _iteratorNormalCompletion = true;var _didIteratorError = false;var _iteratorError = undefined;try { for (var _iterator = node.declaration.declarations[Symbol.iterator](), _step; !(_iteratorNormalCompletion = (_step = _iterator.next()).done); _iteratorNormalCompletion = true) {var declaration = _step.value; - (0, _ExportMap.recursivePatternCapture)(declaration.id, function (v) {return ( - addNamed(v.name, v, parent, isTypeVariableDecl));}); + (0, _ExportMap.recursivePatternCapture)(declaration.id, function (v) {addNamed(v.name, v, parent, isTypeVariableDecl);}); }} catch (err) {_didIteratorError = true;_iteratorError = err;} finally {try {if (!_iteratorNormalCompletion && _iterator['return']) {_iterator['return']();}} finally {if (_didIteratorError) {throw _iteratorError;}}} } }return ExportNamedDeclaration;}(), ExportAllDeclaration: function () {function ExportAllDeclaration(node) { - if (node.source == null) return; // not sure if this is ever true + if (node.source == null) {return;} // not sure if this is ever true // `export * as X from 'path'` does not conflict - if (node.exported && node.exported.name) return; + if (node.exported && node.exported.name) {return;} var remoteExports = _ExportMap2['default'].get(node.source.value, context); - if (remoteExports == null) return; + if (remoteExports == null) {return;} if (remoteExports.errors.length) { remoteExports.reportErrors(context, node); @@ -226,12 +226,12 @@ module.exports = { 'Program:exit': function () {function ProgramExit() {var _iteratorNormalCompletion2 = true;var _didIteratorError2 = false;var _iteratorError2 = undefined;try { for (var _iterator2 = namespace[Symbol.iterator](), _step2; !(_iteratorNormalCompletion2 = (_step2 = _iterator2.next()).done); _iteratorNormalCompletion2 = true) {var _ref = _step2.value;var _ref2 = _slicedToArray(_ref, 2);var named = _ref2[1];var _iteratorNormalCompletion3 = true;var _didIteratorError3 = false;var _iteratorError3 = undefined;try { for (var _iterator3 = named[Symbol.iterator](), _step3; !(_iteratorNormalCompletion3 = (_step3 = _iterator3.next()).done); _iteratorNormalCompletion3 = true) {var _ref3 = _step3.value;var _ref4 = _slicedToArray(_ref3, 2);var name = _ref4[0];var nodes = _ref4[1]; - if (nodes.size <= 1) continue; + if (nodes.size <= 1) {continue;} - if (isTypescriptFunctionOverloads(nodes) || isTypescriptNamespaceMerging(nodes)) continue;var _iteratorNormalCompletion4 = true;var _didIteratorError4 = false;var _iteratorError4 = undefined;try { + if (isTypescriptFunctionOverloads(nodes) || isTypescriptNamespaceMerging(nodes)) {continue;}var _iteratorNormalCompletion4 = true;var _didIteratorError4 = false;var _iteratorError4 = undefined;try { for (var _iterator4 = nodes[Symbol.iterator](), _step4; !(_iteratorNormalCompletion4 = (_step4 = _iterator4.next()).done); _iteratorNormalCompletion4 = true) {var node = _step4.value; - if (shouldSkipTypescriptNamespace(node, nodes)) continue; + if (shouldSkipTypescriptNamespace(node, nodes)) {continue;} if (name === 'default') { context.report(node, 'Multiple default exports.'); @@ -247,4 +247,4 @@ module.exports = { }return ProgramExit;}() }; }return create;}() }; -//# sourceMappingURL=data:application/json;charset=utf-8;base64,eyJ2ZXJzaW9uIjozLCJzb3VyY2VzIjpbIi4uLy4uL3NyYy9ydWxlcy9leHBvcnQuanMiXSwibmFtZXMiOlsicm9vdFByb2dyYW0iLCJ0c1R5cGVQcmVmaXgiLCJpc1R5cGVzY3JpcHRGdW5jdGlvbk92ZXJsb2FkcyIsIm5vZGVzIiwibm9kZXNBcnIiLCJBcnJheSIsImZyb20iLCJpZGVudHMiLCJub2RlIiwiZGVjbGFyYXRpb24iLCJ0eXBlIiwiaWQiLCJuYW1lIiwiU2V0Iiwic2l6ZSIsImxlbmd0aCIsInR5cGVzIiwibWFwIiwicGFyZW50IiwiaGFzIiwiaXNUeXBlc2NyaXB0TmFtZXNwYWNlTWVyZ2luZyIsIm5vTmFtZXNwYWNlTm9kZXMiLCJmaWx0ZXIiLCJzaG91bGRTa2lwVHlwZXNjcmlwdE5hbWVzcGFjZSIsIm1vZHVsZSIsImV4cG9ydHMiLCJtZXRhIiwiZG9jcyIsImNhdGVnb3J5IiwiZGVzY3JpcHRpb24iLCJ1cmwiLCJzY2hlbWEiLCJjcmVhdGUiLCJjb250ZXh0IiwibmFtZXNwYWNlIiwiTWFwIiwiYWRkTmFtZWQiLCJpc1R5cGUiLCJzZXQiLCJuYW1lZCIsImdldCIsImtleSIsImFkZCIsImdldFB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TtcbiAgICAgICAgICB9XG4gICAgICAgIH0pO1xuXG4gICAgICAgIGlmICghYW55KSB7XG4gICAgICAgICAgY29udGV4dC5yZXBvcnQoXG4gICAgICAgICAgICBub2RlLnNvdXJjZSxcbiAgICAgICAgICAgIGBObyBuYW1lZCBleHBvcnRzIGZvdW5kIGluIG1vZHVsZSAnJHtub2RlLnNvdXJjZS52YWx1ZX0nLmAsXG4gICAgICAgICAgKTtcbiAgICAgICAgfVxuICAgICAgfSxcblxuICAgICAgJ1Byb2dyYW06ZXhpdCc6IGZ1bmN0aW9uICgpIHtcbiAgICAgICAgZm9yIChjb25zdCBbLCBuYW1lZF0gb2YgbmFtZXNwYWNlKSB7XG4gICAgICAgICAgZm9yIChjb25zdCBbbmFtZSwgbm9kZXNdIG9mIG5hbWVkKSB7XG4gICAgICAgICAgICBpZiAobm9kZXMuc2l6ZSA8PSAxKSBjb250aW51ZTtcblxuICAgICAgICAgICAgaWYgKGlzVHlwZXNjcmlwdEZ1bmN0aW9uT3ZlcmxvYWRzKG5vZGVzKSB8fCBpc1R5cGVzY3JpcHROYW1lc3BhY2VNZXJnaW5nKG5vZGVzKSkgY29udGludWU7XG5cbiAgICAgICAgICAgIGZvciAoY29uc3Qgbm9kZSBvZiBub2Rlcykge1xuICAgICAgICAgICAgICBpZiAoc2hvdWxkU2tpcFR5cGVzY3JpcHROYW1lc3BhY2Uobm9kZSwgbm9kZXMpKSBjb250aW51ZTtcblxuICAgICAgICAgICAgICBpZiAobmFtZSA9PT0gJ2RlZmF1bHQnKSB7XG4gICAgICAgICAgICAgICAgY29udGV4dC5yZXBvcnQobm9kZSwgJ011bHRpcGxlIGRlZmF1bHQgZXhwb3J0cy4nKTtcbiAgICAgICAgICAgICAgfSBlbHNlIHtcbiAgICAgICAgICAgICAgICBjb250ZXh0LnJlcG9ydChcbiAgICAgICAgICAgICAgICAgIG5vZGUsXG4gICAgICAgICAgICAgICAgICBgTXVsdGlwbGUgZXhwb3J0cyBvZiBuYW1lICcke25hbWUucmVwbGFjZSh0c1R5cGVQcmVmaXgsICcnKX0nLmAsXG4gICAgICAgICAgICAgICAgKTtcbiAgICAgICAgICAgICAgfVxuICAgICAgICAgICAgfVxuICAgICAgICAgIH1cbiAgICAgICAgfVxuICAgICAgfSxcbiAgICB9O1xuICB9LFxufTtcbiJdfQ== \ No newline at end of file +//# sourceMappingURL=data:application/json;charset=utf-8;base64,eyJ2ZXJzaW9uIjozLCJzb3VyY2VzIjpbIi4uLy4uL3NyYy9ydWxlcy9leHBvcnQuanMiXSwibmFtZXMiOlsicm9vdFByb2dyYW0iLCJ0c1R5cGVQcmVmaXgiLCJpc1R5cGVzY3JpcHRGdW5jdGlvbk92ZXJsb2FkcyIsIm5vZGVzIiwibm9kZXNBcnIiLCJBcnJheSIsImZyb20iLCJpZGVudHMiLCJub2RlIiwiZGVjbGFyYXRpb24iLCJ0eXBlIiwiaWQiLCJuYW1lIiwiU2V0Iiwic2l6ZSIsImxlbmd0aCIsInR5cGVzIiwibWFwIiwicGFyZW50IiwiaGFzIiwiaXNUeXBlc2NyaXB0TmFtZXNwYWNlTWVyZ2luZyIsIm5vTmFtZXNwYWNlTm9kZXMiLCJmaWx0ZXIiLCJzaG91bGRTa2lwVHlwZXNjcmlwdE5hbWVzcGFjZSIsIm1vZHVsZSIsImV4cG9ydHMiLCJtZXRhIiwiZG9jcyIsImNhdGVnb3J5IiwiZGVzY3JpcHRpb24iLCJ1cmwiLCJzY2hlbWEiLCJjcmVhdGUiLCJjb250ZXh0IiwibmFtZXNwYWNlIiwiTWFwIiwiYWRkTmFtZWQiLCJpc1R5cGUiLCJzZXQiLCJuYW1lZCIsImdldCIsImtleSIsImFkZCIsImdldFBhcmVudCIsIkV4cG9ydERlZmF1bHREZWNsYXJhdGlvbiIsIkV4cG9ydFNwZWNpZmllciIsImV4cG9ydGVkIiwidmFsdWUiLCJFeHBvcnROYW1lZERlY2xhcmF0aW9uIiwiaXNUeXBlVmFyaWFibGVEZWNsIiwia2luZCIsIm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mFyaWFibGVEZWNsKTsgfSk7XG4gICAgICAgICAgfVxuICAgICAgICB9XG4gICAgICB9LFxuXG4gICAgICBFeHBvcnRBbGxEZWNsYXJhdGlvbihub2RlKSB7XG4gICAgICAgIGlmIChub2RlLnNvdXJjZSA9PSBudWxsKSB7IHJldHVybjsgfSAvLyBub3Qgc3VyZSBpZiB0aGlzIGlzIGV2ZXIgdHJ1ZVxuXG4gICAgICAgIC8vIGBleHBvcnQgKiBhcyBYIGZyb20gJ3BhdGgnYCBkb2VzIG5vdCBjb25mbGljdFxuICAgICAgICBpZiAobm9kZS5leHBvcnRlZCAmJiBub2RlLmV4cG9ydGVkLm5hbWUpIHsgcmV0dXJuOyB9XG5cbiAgICAgICAgY29uc3QgcmVtb3RlRXhwb3J0cyA9IEV4cG9ydE1hcC5nZXQobm9kZS5zb3VyY2UudmFsdWUsIGNvbnRleHQpO1xuICAgICAgICBpZiAocmVtb3RlRXhwb3J0cyA9PSBudWxsKSB7IHJldHVybjsgfVxuXG4gICAgICAgIGlmIChyZW1vdGVFeHBvcnRzLmVycm9ycy5sZW5ndGgpIHtcbiAgICAgICAgICByZW1vdGVFeHBvcnRzLnJlcG9ydEVycm9ycyhjb250ZXh0LCBub2RlKTtcbiAgICAgICAgICByZXR1cm47XG4gICAgICAgIH1cblxuICAgICAgICBjb25zdCBwYXJlbnQgPSBnZXRQYXJlbnQobm9kZSk7XG5cbiAgICAgICAgbGV0IGFueSA9IGZhbHNlO1xuICAgICAgICByZW1vdGVFeHBvcnRzLmZvckVhY2goKHYsIG5hbWUpID0+IHtcbiAgICAgICAgICBpZiAobmFtZSAhPT0gJ2RlZmF1bHQnKSB7XG4gICAgICAgICAgICBhbnkgPSB0cnVlOyAvLyBwb29yIG1hbidzIGZpbHRlclxuICAgICAgICAgICAgYWRkTmFtZWQobmFtZSwgbm9kZSwgcGFyZW50KTtcbiAgICAgICAgICB9XG4gICAgICAgIH0pO1xuXG4gICAgICAgIGlmICghYW55KSB7XG4gICAgICAgICAgY29udGV4dC5yZXBvcnQoXG4gICAgICAgICAgICBub2RlLnNvdXJjZSxcbiAgICAgICAgICAgIGBObyBuYW1lZCBleHBvcnRzIGZvdW5kIGluIG1vZHVsZSAnJHtub2RlLnNvdXJjZS52YWx1ZX0nLmAsXG4gICAgICAgICAgKTtcbiAgICAgICAgfVxuICAgICAgfSxcblxuICAgICAgJ1Byb2dyYW06ZXhpdCcoKSB7XG4gICAgICAgIGZvciAoY29uc3QgWywgbmFtZWRdIG9mIG5hbWVzcGFjZSkge1xuICAgICAgICAgIGZvciAoY29uc3QgW25hbWUsIG5vZGVzXSBvZiBuYW1lZCkge1xuICAgICAgICAgICAgaWYgKG5vZGVzLnNpemUgPD0gMSkgeyBjb250aW51ZTsgfVxuXG4gICAgICAgICAgICBpZiAoaXNUeXBlc2NyaXB0RnVuY3Rpb25PdmVybG9hZHMobm9kZXMpIHx8IGlzVHlwZXNjcmlwdE5hbWVzcGFjZU1lcmdpbmcobm9kZXMpKSB7IGNvbnRpbnVlOyB9XG5cbiAgICAgICAgICAgIGZvciAoY29uc3Qgbm9kZSBvZiBub2Rlcykge1xuICAgICAgICAgICAgICBpZiAoc2hvdWxkU2tpcFR5cGVzY3JpcHROYW1lc3BhY2Uobm9kZSwgbm9kZXMpKSB7IGNvbnRpbnVlOyB9XG5cbiAgICAgICAgICAgICAgaWYgKG5hbWUgPT09ICdkZWZhdWx0Jykge1xuICAgICAgICAgICAgICAgIGNvbnRleHQucmVwb3J0KG5vZGUsICdNdWx0aXBsZSBkZWZhdWx0IGV4cG9ydHMuJyk7XG4gICAgICAgICAgICAgIH0gZWxzZSB7XG4gICAgICAgICAgICAgICAgY29udGV4dC5yZXBvcnQoXG4gICAgICAgICAgICAgICAgICBub2RlLFxuICAgICAgICAgICAgICAgICAgYE11bHRpcGxlIGV4cG9ydHMgb2YgbmFtZSAnJHtuYW1lLnJlcGxhY2UodHNUeXBlUHJlZml4LCAnJyl9Jy5gLFxuICAgICAgICAgICAgICAgICk7XG4gICAgICAgICAgICAgIH1cbiAgICAgICAgICAgIH1cbiAgICAgICAgICB9XG4gICAgICAgIH1cbiAgICAgIH0sXG4gICAgfTtcbiAgfSxcbn07XG4iXX0= \ No newline at end of file diff --git a/node_modules/eslint-plugin-import/lib/rules/exports-last.js b/node_modules/eslint-plugin-import/lib/rules/exports-last.js index c8b998367f..de4a2ebdff 100644 --- a/node_modules/eslint-plugin-import/lib/rules/exports-last.js +++ b/node_modules/eslint-plugin-import/lib/rules/exports-last.js @@ -1,4 +1,6 @@ -'use strict';var _docsUrl = require('../docsUrl');var _docsUrl2 = _interopRequireDefault(_docsUrl);function _interopRequireDefault(obj) {return obj && obj.__esModule ? obj : { 'default': obj };} +'use strict';var _arrayPrototype = require('array.prototype.findlastindex');var _arrayPrototype2 = _interopRequireDefault(_arrayPrototype); + +var _docsUrl = require('../docsUrl');var _docsUrl2 = _interopRequireDefault(_docsUrl);function _interopRequireDefault(obj) {return obj && obj.__esModule ? obj : { 'default': obj };} function isNonExportStatement(_ref) {var type = _ref.type; return type !== 'ExportDefaultDeclaration' && @@ -20,24 +22,19 @@ module.exports = { create: function () {function create(context) { return { Program: function () {function Program(_ref2) {var body = _ref2.body; - var lastNonExportStatementIndex = body.reduce(function () {function findLastIndex(acc, item, index) { - if (isNonExportStatement(item)) { - return index; - } - return acc; - }return findLastIndex;}(), -1); + var lastNonExportStatementIndex = (0, _arrayPrototype2['default'])(body, isNonExportStatement); if (lastNonExportStatementIndex !== -1) { - body.slice(0, lastNonExportStatementIndex).forEach(function () {function checkNonExport(node) { - if (!isNonExportStatement(node)) { - context.report({ - node: node, - message: 'Export statements should appear at the end of the file' }); - - } - }return checkNonExport;}()); + body.slice(0, lastNonExportStatementIndex).forEach(function (node) { + if (!isNonExportStatement(node)) { + context.report({ + node: node, + message: 'Export statements should appear at the end of the file' }); + + } + }); } }return Program;}() }; }return create;}() }; -//# sourceMappingURL=data:application/json;charset=utf-8;base64,eyJ2ZXJzaW9uIjozLCJzb3VyY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RleHQpIHtcbiAgICByZXR1cm4ge1xuICAgICAgUHJvZ3JhbSh7IGJvZHkgfSkge1xuICAgICAgICBjb25zdCBsYXN0Tm9uRXhwb3J0U3RhdGVtZW50SW5kZXggPSBmaW5kTGFzdEluZGV4KGJvZHksIGlzTm9uRXhwb3J0U3RhdGVtZW50KTtcblxuICAgICAgICBpZiAobGFzdE5vbkV4cG9ydFN0YXRlbWVudEluZGV4ICE9PSAtMSkge1xuICAgICAgICAgIGJvZHkuc2xpY2UoMCwgbGFzdE5vbkV4cG9ydFN0YXRlbWVudEluZGV4KS5mb3JFYWNoKChub2RlKSA9PiB7XG4gICAgICAgICAgICBpZiAoIWlzTm9uRXhwb3J0U3RhdGVtZW50KG5vZGUpKSB7XG4gICAgICAgICAgICAgIGNvbnRleHQucmVwb3J0KHtcbiAgICAgICAgICAgICAgICBub2RlLFxuICAgICAgICAgICAgICAgIG1lc3NhZ2U6ICdFeHBvcnQgc3RhdGVtZW50cyBzaG91bGQgYXBwZWFyIGF0IHRoZSBlbmQgb2YgdGhlIGZpbGUnLFxuICAgICAgICAgICAgICB9KTtcbiAgICAgICAgICAgIH1cbiAgICAgICAgICB9KTtcbiAgICAgICAgfVxuICAgICAgfSxcbiAgICB9O1xuICB9LFxufTtcbiJdfQ== \ No newline at end of file diff --git a/node_modules/eslint-plugin-import/lib/rules/extensions.js b/node_modules/eslint-plugin-import/lib/rules/extensions.js index bb46df6c10..3bd6529d40 100644 --- a/node_modules/eslint-plugin-import/lib/rules/extensions.js +++ b/node_modules/eslint-plugin-import/lib/rules/extensions.js @@ -13,8 +13,8 @@ var patternProperties = { var properties = { type: 'object', properties: { - 'pattern': patternProperties, - 'ignorePackages': { type: 'boolean' } } }; + pattern: patternProperties, + ignorePackages: { type: 'boolean' } } }; @@ -130,27 +130,28 @@ module.exports = { } function isExternalRootModule(file) { + if (file === '.' || file === '..') {return false;} var slashCount = file.split('/').length - 1; - if (slashCount === 0) return true; - if ((0, _importType.isScoped)(file) && slashCount <= 1) return true; + if (slashCount === 0) {return true;} + if ((0, _importType.isScoped)(file) && slashCount <= 1) {return true;} return false; } function checkFileExtension(source, node) { // bail if the declaration doesn't have a source, e.g. "export { foo };", or if it's only partially typed like in an editor - if (!source || !source.value) return; + if (!source || !source.value) {return;} var importPathWithQueryString = source.value; // don't enforce anything on builtins - if ((0, _importType.isBuiltIn)(importPathWithQueryString, context.settings)) return; + if ((0, _importType.isBuiltIn)(importPathWithQueryString, context.settings)) {return;} var importPath = importPathWithQueryString.replace(/\?(.*)$/, ''); // don't enforce in root external packages as they may have names with `.js`. // Like `import Decimal from decimal.js`) - if (isExternalRootModule(importPath)) return; + if (isExternalRootModule(importPath)) {return;} var resolvedPath = (0, _resolve2['default'])(importPath, context); @@ -167,7 +168,7 @@ module.exports = { if (!extension || !importPath.endsWith('.' + String(extension))) { // ignore type-only imports and exports - if (node.importKind === 'type' || node.exportKind === 'type') return; + if (node.importKind === 'type' || node.exportKind === 'type') {return;} var extensionRequired = isUseOfExtensionRequired(extension, isPackage); var extensionForbidden = isUseOfExtensionForbidden(extension); if (extensionRequired && !extensionForbidden) { @@ -189,4 +190,4 @@ module.exports = { return (0, _moduleVisitor2['default'])(checkFileExtension, { commonjs: true }); }return create;}() }; -//# sourceMappingURL=data:application/json;charset=utf-8;base64,eyJ2ZXJzaW9uIjozLCJzb3VyY2VzIjpbIi4uLy4uL3NyYy9ydWxlcy9leHRlbnNpb25zLmpzIl0sIm5hbWVzIjpbImVudW1WYWx1ZXMiLCJwYXR0ZXJuUHJvcGVydGllcyIsInR5cGUiLCJwcm9wZXJ0aWVzIiwiYnVpbGRQcm9wZXJ0aWVzIiwiY29udGV4dCIsInJlc3VsdCIsImRlZmF1bHRDb25maWciLCJwYXR0ZXJuIiwiaWdub3JlUGFja2FnZXMiLCJvcHRpb25zIiwiZm9yRWFjaCIsIm9iaiIsInVuZGVmaW5lZCIsIk9iamVjdCIsImFzc2lnbiIsIm1vZHVsZSIsImV4cG9ydHMiLCJtZXRh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3J0UGF0aFdpdGhRdWVyeVN0cmluZ31cImAsXG4gICAgICAgICAgfSk7XG4gICAgICAgIH1cbiAgICAgIH0gZWxzZSBpZiAoZXh0ZW5zaW9uKSB7XG4gICAgICAgIGlmIChpc1VzZU9mRXh0ZW5zaW9uRm9yYmlkZGVuKGV4dGVuc2lvbikgJiYgaXNSZXNvbHZhYmxlV2l0aG91dEV4dGVuc2lvbihpbXBvcnRQYXRoKSkge1xuICAgICAgICAgIGNvbnRleHQucmVwb3J0KHtcbiAgICAgICAgICAgIG5vZGU6IHNvdXJjZSxcbiAgICAgICAgICAgIG1lc3NhZ2U6IGBVbmV4cGVjdGVkIHVzZSBvZiBmaWxlIGV4dGVuc2lvbiBcIiR7ZXh0ZW5zaW9ufVwiIGZvciBcIiR7aW1wb3J0UGF0aFdpdGhRdWVyeVN0cmluZ31cImAsXG4gICAgICAgICAgfSk7XG4gICAgICAgIH1cbiAgICAgIH1cbiAgICB9XG5cbiAgICByZXR1cm4gbW9kdWxlVmlzaXRvcihjaGVja0ZpbGVFeHRlbnNpb24sIHsgY29tbW9uanM6IHRydWUgfSk7XG4gIH0sXG59O1xuIl19 \ No newline at end of file +//# sourceMappingURL=data:application/json;charset=utf-8;base64,eyJ2ZXJzaW9uIjozLCJzb3VyY2VzIjpbIi4uLy4uL3NyYy9ydWxlcy9leHRlbnNpb25zLmpzIl0sIm5hbWVzIjpbImVudW1WYWx1ZXMiLCJwYXR0ZXJuUHJvcGVydGllcyIsInR5cGUiLCJwcm9wZXJ0aWVzIiwicGF0dGVybiIsImlnbm9yZVBhY2thZ2VzIiwiYnVpbGRQcm9wZXJ0aWVzIiwiY29udGV4dCIsInJlc3VsdCIsImRlZmF1bHRDb25maWciLCJvcHRpb25zIiwiZm9yRWFjaCIsIm9iaiIsInVuZGVmaW5lZCIsIk9iamVjdCIsImFzc2lnbiIsIm1vZHVsZSIsImV4cG9ydHMiLCJtZXRhIiwiZG9jcyIsImNhdGVnb3J5IiwiZGVzY3JpcHRp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ICAgICAgICB0eXBlOiAnYXJyYXknLFxuICAgICAgICAgIGl0ZW1zOiBbZW51bVZhbHVlc10sXG4gICAgICAgICAgYWRkaXRpb25hbEl0ZW1zOiBmYWxzZSxcbiAgICAgICAgfSxcbiAgICAgICAge1xuICAgICAgICAgIHR5cGU6ICdhcnJheScsXG4gICAgICAgICAgaXRlbXM6IFtcbiAgICAgICAgICAgIGVudW1WYWx1ZXMsXG4gICAgICAgICAgICBwcm9wZXJ0aWVzLFxuICAgICAgICAgIF0sXG4gICAgICAgICAgYWRkaXRpb25hbEl0ZW1zOiBmYWxzZSxcbiAgICAgICAgfSxcbiAgICAgICAge1xuICAgICAgICAgIHR5cGU6ICdhcnJheScsXG4gICAgICAgICAgaXRlbXM6IFtwcm9wZXJ0aWVzXSxcbiAgICAgICAgICBhZGRpdGlvbmFsSXRlbXM6IGZhbHNlLFxuICAgICAgICB9LFxuICAgICAgICB7XG4gICAgICAgICAgdHlwZTogJ2FycmF5JyxcbiAgICAgICAgICBpdGVtczogW3BhdHRlcm5Qcm9wZXJ0aWVzXSxcbiAgICAgICAgICBhZGRpdGlvbmFsSXRlbXM6IGZhbHNlLFxuICAgICAgICB9LFxuICAgICAgICB7XG4gICAgICAgICAgdHlwZTogJ2FycmF5JyxcbiAgICAgICAgICBpdGVtczogW1xuICAgICAgICAgICAgZW51bVZhbHVlcyxcbiAgICAgICAgICAgIHBhdHRlcm5Qcm9wZXJ0aWVzLFxuICAgICAgICAgIF0sXG4gICAgICAgICAgYWRkaXRpb25hbEl0ZW1zOiBmYWxzZSxcbiAgICAgICAgfSxcbiAgICAgIF0sXG4gICAgfSxcbiAgfSxcblxuICBjcmVhdGUoY29udGV4dCkge1xuXG4gICAgY29uc3QgcHJvcHMgPSBidWlsZFByb3BlcnRpZXMoY29udGV4dCk7XG5cbiAgICBmdW5jdGlvbiBnZXRNb2RpZmllcihleHRlbnNpb24pIHtcbiAgICAgIHJldHVybiBwcm9wcy5wYXR0ZXJuW2V4dGVuc2lv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W5zaW9uUmVxdWlyZWQgJiYgIWV4dGVuc2lvbkZvcmJpZGRlbikge1xuICAgICAgICAgIGNvbnRleHQucmVwb3J0KHtcbiAgICAgICAgICAgIG5vZGU6IHNvdXJjZSxcbiAgICAgICAgICAgIG1lc3NhZ2U6XG4gICAgICAgICAgICAgIGBNaXNzaW5nIGZpbGUgZXh0ZW5zaW9uICR7ZXh0ZW5zaW9uID8gYFwiJHtleHRlbnNpb259XCIgYCA6ICcnfWZvciBcIiR7aW1wb3J0UGF0aFdpdGhRdWVyeVN0cmluZ31cImAsXG4gICAgICAgICAgfSk7XG4gICAgICAgIH1cbiAgICAgIH0gZWxzZSBpZiAoZXh0ZW5zaW9uKSB7XG4gICAgICAgIGlmIChpc1VzZU9mRXh0ZW5zaW9uRm9yYmlkZGVuKGV4dGVuc2lvbikgJiYgaXNSZXNvbHZhYmxlV2l0aG91dEV4dGVuc2lvbihpbXBvcnRQYXRoKSkge1xuICAgICAgICAgIGNvbnRleHQucmVwb3J0KHtcbiAgICAgICAgICAgIG5vZGU6IHNvdXJjZSxcbiAgICAgICAgICAgIG1lc3NhZ2U6IGBVbmV4cGVjdGVkIHVzZSBvZiBmaWxlIGV4dGVuc2lvbiBcIiR7ZXh0ZW5zaW9ufVwiIGZvciBcIiR7aW1wb3J0UGF0aFdpdGhRdWVyeVN0cmluZ31cImAsXG4gICAgICAgICAgfSk7XG4gICAgICAgIH1cbiAgICAgIH1cbiAgICB9XG5cbiAgICByZXR1cm4gbW9kdWxlVmlzaXRvcihjaGVja0ZpbGVFeHRlbnNpb24sIHsgY29tbW9uanM6IHRydWUgfSk7XG4gIH0sXG59O1xuIl19 \ No newline at end of file diff --git a/node_modules/eslint-plugin-import/lib/rules/first.js b/node_modules/eslint-plugin-import/lib/rules/first.js index b652ba4ec2..a77168660c 100644 --- a/node_modules/eslint-plugin-import/lib/rules/first.js +++ b/node_modules/eslint-plugin-import/lib/rules/first.js @@ -31,7 +31,7 @@ module.exports = { } return { - 'Program': function () {function Program(n) { + Program: function () {function Program(n) { var body = n.body; if (!body) { return; @@ -67,7 +67,7 @@ module.exports = { } if (nonImportCount > 0) {var _iteratorNormalCompletion = true;var _didIteratorError = false;var _iteratorError = undefined;try { for (var _iterator = context.getDeclaredVariables(node)[Symbol.iterator](), _step; !(_iteratorNormalCompletion = (_step = _iterator.next()).done); _iteratorNormalCompletion = true) {var variable = _step.value; - if (!shouldSort) break; + if (!shouldSort) {break;} var references = variable.references; if (references.length) {var _iteratorNormalCompletion2 = true;var _didIteratorError2 = false;var _iteratorError2 = undefined;try { for (var _iterator2 = references[Symbol.iterator](), _step2; !(_iteratorNormalCompletion2 = (_step2 = _iterator2.next()).done); _iteratorNormalCompletion2 = true) {var reference = _step2.value; @@ -90,7 +90,7 @@ module.exports = { nonImportCount++; } }); - if (!errorInfos.length) return; + if (!errorInfos.length) {return;} errorInfos.forEach(function (errorInfo, index) { var node = errorInfo.node; var infos = { @@ -113,25 +113,26 @@ module.exports = { originSourceCode, _errorInfo.range); if (/\S/.test(nodeSourceCode[0])) { - return '\n' + nodeSourceCode; + return '\n' + String(nodeSourceCode); } return nodeSourceCode; }).join(''); var insertFixer = null; var replaceSourceCode = ''; if (!lastLegalImp) { - insertSourceCode = - insertSourceCode.trim() + insertSourceCode.match(/^(\s+)/)[0]; + insertSourceCode = insertSourceCode.trim() + insertSourceCode.match(/^(\s+)/)[0]; } insertFixer = lastLegalImp ? fixer.insertTextAfter(lastLegalImp, insertSourceCode) : fixer.insertTextBefore(body[0], insertSourceCode); + var fixers = [insertFixer].concat(removeFixers); fixers.forEach(function (computedFixer, i) { replaceSourceCode += originSourceCode.slice( fixers[i - 1] ? fixers[i - 1].range[1] : 0, computedFixer.range[0]) + computedFixer.text; }); + return fixer.replaceTextRange(range, replaceSourceCode); }; } @@ -140,4 +141,4 @@ module.exports = { }return Program;}() }; }return create;}() }; -//# sourceMappingURL=data:application/json;charset=utf-8;base64,eyJ2ZXJzaW9uIjozLCJzb3VyY2VzIjpbIi4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pKSB7XG4gICAgICAgICAgICByZXR1cm47XG4gICAgICAgICAgfVxuXG4gICAgICAgICAgYW55RXhwcmVzc2lvbnMgPSB0cnVlO1xuXG4gICAgICAgICAgaWYgKG5vZGUudHlwZSA9PT0gJ0ltcG9ydERlY2xhcmF0aW9uJyB8fCBub2RlLnR5cGUgPT09ICdUU0ltcG9ydEVxdWFsc0RlY2xhcmF0aW9uJykge1xuICAgICAgICAgICAgaWYgKGFic29sdXRlRmlyc3QpIHtcbiAgICAgICAgICAgICAgaWYgKC9eXFwuLy50ZXN0KGdldEltcG9ydFZhbHVlKG5vZGUpKSkge1xuICAgICAgICAgICAgICAgIGFueVJlbGF0aXZlID0gdHJ1ZTtcbiAgICAgICAgICAgICAgfSBlbHNlIGlmIChhbnlSZWxhdGl2ZSkge1xuICAgICAgICAgICAgICAgIGNvbnRleHQucmVwb3J0KHtcbiAgICAgICAgICAgICAgICAgIG5vZGU6IG5vZGUudHlwZSA9PT0gJ0ltcG9ydERlY2xhcmF0aW9uJyA/IG5vZGUuc291cmNlIDogbm9kZS5tb2R1bGVSZWZlcmVuY2UsXG4gICAgICAgICAgICAgICAgICBtZXNzYWdlOiAnQWJzb2x1dGUgaW1wb3J0cyBzaG91bGQgY29tZSBiZWZvcmUgcmVsYXRpdmUgaW1wb3J0cy4nLFxuICAgICAgICAgICAgICAgIH0pO1xuICAgICAgICAgICAgICB9XG4gICAgICAgICAgICB9XG4gICAgICAgICAgICBpZiAobm9uSW1wb3J0Q291bnQgPiAwKSB7XG4gICAgICAgICAgICAgIGZvciAoY29uc3QgdmFyaWFibGUgb2YgY29udGV4dC5nZXREZWNsYXJlZFZhcmlhYmxlcyhub2RlKSkge1xuICAgICAgICAgICAgICAgIGlmICghc2hvdWxkU29ydCkgYnJlYWs7XG4gICAgICAgICAgICAgICAgY29uc3QgcmVmZXJlbmNlcyA9IHZhcmlhYmxlLnJlZmVyZW5jZXM7XG4gICAgICAgICAgICAgICAgaWYgKHJlZmVyZW5jZXMubGVuZ3RoKSB7XG4gICAgICAgICAgICAgICAgICBmb3IgKGNvbnN0IHJlZmVyZW5jZSBvZiByZWZlcmVuY2VzKSB7XG4gICAgICAgICAgICAgICAgICAgIGlmIChyZWZlcmVuY2UuaWRlbnRpZmllci5yYW5nZVswXSA8IG5vZGUucmFuZ2VbMV0pIHtcbiAgICAgICAgICAgICAgICAgICAgICBzaG91bGRTb3J0ID0gZmFsc2U7XG4gICAgICAgICAgICAgICAgICAgICAgYnJlYWs7XG4gICAgICAgICAgICAgICAgICAgIH1cbiAgICAgICAgICAgICAgICAgIH1cbiAgICAgICAgICAgICAgICB9XG4gICAgICAgICAgICAgIH1cbiAgICAgICAgICAgICAgc2hvdWxkU29ydCAmJiAobGFzdFNvcnROb2Rlc0luZGV4ID0gZXJyb3JJbmZvcy5sZW5ndGgpO1xuICAgICAgICAgICAgICBlcnJvckluZm9zLnB1c2goe1xuICAgICAgICAgICAgICAgIG5vZGUsXG4gICAgICAgICAgICAgICAgcmFuZ2U6IFtib2R5W2luZGV4IC0gMV0ucmFuZ2VbMV0sIG5vZGUucmFuZ2VbMV1dLFxuICAgICAgICAgICAgICB9KTtcbiAgICAgICAgICAgIH0gZWxzZSB7XG4gICAgICAgICAgICAgIGxhc3RMZWdhbEltcCA9IG5vZGU7XG4gICAgICAgICAgICB9XG4gICAgICAgICAgfSBlbHNlIHtcbiAgICAgICAgICAgIG5vbkltcG9ydENvdW50Kys7XG4gICAgICAgICAgfVxuICAgICAgICB9KTtcbiAgICAgICAgaWYgKCFlcnJvckluZm9zLmxlbmd0aCkgcmV0dXJuO1xuICAgICAgICBlcnJvckluZm9zLmZvckVhY2goZnVuY3Rpb24gKGVycm9ySW5mbywgaW5kZXgpIHtcbiAgICAgICAgICBjb25zdCBub2RlID0gZXJyb3JJbmZvLm5vZGU7XG4gICAgICAgICAgY29uc3QgaW5mb3MgPSB7XG4gICAgICAgICAgICBub2RlLFxuICAgICAgICAgICAgbWVzc2FnZSxcbiAgICAgICAgICB9O1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7XG4gICAgICAgICAgICAgICAgICByZXR1cm4gJ1xcbicgKyBub2RlU291cmNlQ29kZTtcbiAgICAgICAgICAgICAgICB9XG4gICAgICAgICAgICAgICAgcmV0dXJuIG5vZGVTb3VyY2VDb2RlO1xuICAgICAgICAgICAgICB9KS5qb2luKCcnKTtcbiAgICAgICAgICAgICAgbGV0IGluc2VydEZpeGVyID0gbnVsbDtcbiAgICAgICAgICAgICAgbGV0IHJlcGxhY2VTb3VyY2VDb2RlID0gJyc7XG4gICAgICAgICAgICAgIGlmICghbGFzdExlZ2FsSW1wKSB7XG4gICAgICAgICAgICAgICAgaW5zZXJ0U291cmNlQ29kZSA9XG4gICAgICAgICAgICAgICAgICAgIGluc2VydFNvdXJjZUNvZGUudHJpbSgpICsgaW5zZXJ0U291cmNlQ29kZS5tYXRjaCgvXihcXHMrKS8pWzBdO1xuICAgICAgICAgICAgICB9XG4gICAgICAgICAgICAgIGluc2VydEZpeGVyID0gbGFzdExlZ2FsSW1wID9cbiAgICAgICAgICAgICAgICBmaXhlci5pbnNlcnRUZXh0QWZ0ZXIobGFzdExlZ2FsSW1wLCBpbnNlcnRTb3VyY2VDb2RlKSA6XG4gICAgICAgICAgICAgICAgZml4ZXIuaW5zZXJ0VGV4dEJlZm9yZShib2R5WzBdLCBpbnNlcnRTb3VyY2VDb2RlKTtcbiAgICAgICAgICAgICAgY29uc3QgZml4ZXJzID0gW2luc2VydEZpeGVyXS5jb25jYXQocmVtb3ZlRml4ZXJzKTtcbiAgICAgICAgICAgICAgZml4ZXJzLmZvckVhY2goZnVuY3Rpb24gKGNvbXB1dGVkRml4ZXIsIGkpIHtcbiAgICAgICAgICAgICAgICByZXBsYWNlU291cmNlQ29kZSArPSAob3JpZ2luU291cmNlQ29kZS5zbGljZShcbiAgICAgICAgICAgICAgICAgIGZpeGVyc1tpIC0gMV0gPyBmaXhlcnNbaSAtIDFdLnJhbmdlWzFdIDogMCwgY29tcHV0ZWRGaXhlci5yYW5nZVswXSxcbiAgICAgICAgICAgICAgICApICsgY29tcHV0ZWRGaXhlci50ZXh0KTtcbiAgICAgICAgICAgICAgfSk7XG4gICAgICAgICAgICAgIHJldHVybiBmaXhlci5yZXBsYWNlVGV4dFJhbmdlKHJhbmdlLCByZXBsYWNlU291cmNlQ29kZSk7XG4gICAgICAgICAgICB9O1xuICAgICAgICAgIH1cbiAgICAgICAgICBjb250ZXh0LnJlcG9ydChpbmZvcyk7XG4gICAgICAgIH0pO1xuICAgICAgfSxcbiAgICB9O1xuICB9LFxufTtcbiJdfQ== \ No newline at end of file +//# sourceMappingURL=data:application/json;charset=utf-8;base64,eyJ2ZXJzaW9uIjozLCJzb3VyY2VzIjpbIi4uLy4uL3NyYy9ydWxlcy9maXJzdC5qcyJdLCJuYW1lcyI6WyJnZXRJbXBvcnRWYWx1ZSIsIm5vZGUiLCJ0eXBlIiwic291cmNlIiwidmFsdWUiLCJtb2R1bGVSZWZlcmVuY2UiLCJleHByZXNzaW9uIiwibW9kdWxlIiwiZXhwb3J0cyIsIm1ldGEiLCJkb2NzIiwiY2F0ZWdvcnkiLCJkZXNjcmlwdGlvbiIsInVybCIsImZpeGFibGUiLCJzY2hlbWEiLCJjcmVhdGUiLCJjb250ZXh0IiwiaXNQb3NzaWJsZURpcmVjdGl2ZSIsIlByb2dyYW0iLCJuIiwiYm9keSIsImFic29sdXRlRmlyc3QiLCJvcHRpb25zIiwibWVzc2FnZSIsInNvdXJjZUNvZGUiLCJnZXRTb3VyY2VDb2RlIiwib3JpZ2luU291cmNlQ29kZSIsImdldFRleHQiLCJub25JbXBvcnRDb3VudCIsImFueUV4cHJlc3Npb25zIiwiYW55UmVsYXRpdmUiLCJsYXN0TGVnYWxJbXAiLCJlcnJvckluZm9zIiwic2hvdWxkU29ydCIsImxhc3RTb3J0Tm9kZXNJbmRleCIsImZvckVhY2giLCJpbmRleCIsInRlc3QiLCJyZXBvcnQiLCJnZXREZWNsYXJlZFZhcmlhYmxlcyIsInZhcmlhYmxlIiwicmVmZXJl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sZXQgYW55RXhwcmVzc2lvbnMgPSBmYWxzZTtcbiAgICAgICAgbGV0IGFueVJlbGF0aXZlID0gZmFsc2U7XG4gICAgICAgIGxldCBsYXN0TGVnYWxJbXAgPSBudWxsO1xuICAgICAgICBjb25zdCBlcnJvckluZm9zID0gW107XG4gICAgICAgIGxldCBzaG91bGRTb3J0ID0gdHJ1ZTtcbiAgICAgICAgbGV0IGxhc3RTb3J0Tm9kZXNJbmRleCA9IDA7XG4gICAgICAgIGJvZHkuZm9yRWFjaChmdW5jdGlvbiAobm9kZSwgaW5kZXgpIHtcbiAgICAgICAgICBpZiAoIWFueUV4cHJlc3Npb25zICYmIGlzUG9zc2libGVEaXJlY3RpdmUobm9kZSkpIHtcbiAgICAgICAgICAgIHJldHVybjtcbiAgICAgICAgICB9XG5cbiAgICAgICAgICBhbnlFeHByZXNzaW9ucyA9IHRydWU7XG5cbiAgICAgICAgICBpZiAobm9kZS50eXBlID09PSAnSW1wb3J0RGVjbGFyYXRpb24nIHx8IG5vZGUudHlwZSA9PT0gJ1RTSW1wb3J0RXF1YWxzRGVjbGFyYXRpb24nKSB7XG4gICAgICAgICAgICBpZiAoYWJzb2x1dGVGaXJzdCkge1xuICAgICAgICAgICAgICBpZiAoKC9eXFwuLykudGVzdChnZXRJbXBvcnRWYWx1ZShub2RlKSkpIHtcbiAgICAgICAgICAgICAgICBhbnlSZWxhdGl2ZSA9IHRydWU7XG4gICAgICAgICAgICAgIH0gZWxzZSBpZiAoYW55UmVsYXRpdmUpIHtcbiAgICAgICAgICAgICAgICBjb250ZXh0LnJlcG9ydCh7XG4gICAgICAgICAgICAgICAgICBub2RlOiBub2RlLnR5cGUgPT09ICdJbXBvcnREZWNsYXJhdGlvbicgPyBub2RlLnNvdXJjZSA6IG5vZGUubW9kdWxlUmVmZXJlbmNlLFxuICAgICAgICAgICAgICAgICAgbWVzc2FnZTogJ0Fic29sdXRlIGltcG9ydHMgc2hvdWxkIGNvbWUgYmVmb3JlIHJlbGF0aXZlIGltcG9ydHMuJyxcbiAgICAgICAgICAgICAgICB9KTtcbiAgICAgICAgICAgICAgfVxuICAgICAgICAgICAgfVxuICAgICAgICAgICAgaWYgKG5vbkltcG9ydENvdW50ID4gMCkge1xuICAgICAgICAgICAgICBmb3IgKGNvbnN0IHZhcmlhYmxlIG9mIGNvbnRleHQuZ2V0RGVjbGFyZWRWYXJpYWJsZXMobm9kZSkpIHtcbiAgICAgICAgICAgICAgICBpZiAoIXNob3VsZFNvcnQpIHsgYnJlYWs7IH1cbiAgICAgICAgICAgICAgICBjb25zdCByZWZlcmVuY2VzID0gdmFyaWFibGUucmVmZXJlbmNlcztcbiAgICAgICAgICAgICAgICBpZiAocmVmZXJlbmNlcy5sZW5ndGgpIHtcbiAgICAgICAgICAgICAgICAgIGZvciAoY29uc3QgcmVmZXJlbmNlIG9mIHJlZmVyZW5jZXMpIHtcbiAgICAgICAgICAgICAgICAgICAgaWYgKHJlZmVyZW5jZS5pZGVudGlmaWVyLnJhbmdlWzBdIDwgbm9kZS5yYW5nZVsxXSkge1xuICAgICAgICAgICAgICAgICAgICAgIHNob3VsZFNvcnQgPSBmYWxzZTtcbiAgICAgICAgICAgICAgICAgICAgICBicmVhaztcbiAgICAgICAgICAgICAgICAgICAgfVxuICAgICAgICAgICAgICAgICAgfVxuICAgICAgICAgICAgICAgIH1cbiAgICAgICAgICAgICAgfVxuICAgICAgICAgICAgICBzaG91bGRTb3J0ICYmIChsYXN0U29ydE5vZGVzSW5kZXggPSBlcnJvckluZm9zLmxlbmd0aCk7XG4gICAgICAgICAgICAgIGVycm9ySW5mb3MucHVzaCh7XG4gICAgICAgICAgICAgICAgbm9kZSxcbiAgICAgICAgICAgICAgICByYW5nZTogW2JvZHlbaW5kZXggLSAxXS5yYW5nZVsxXSwgbm9kZS5yYW5nZVsxXV0sXG4gICAgICAgICAgICAgIH0pO1xuICAgICAgICAgICAgfSBlbHNlIHtcbiAgICAgICAgICAgICAgbGFzdExlZ2FsSW1wID0gbm9kZTtcbiAgICAgICAgICAgIH1cbiAgICAgICAgICB9IGVsc2Uge1xuICAgICAgICAgICAgbm9uSW1wb3J0Q291bnQrKztcbiAgICAgICAgICB9XG4gICAgICAgIH0pO1xuICAgICAgICBpZiAoIWVycm9ySW5mb3MubGVuZ3RoKSB7IHJldHVybjsgfVxuICAgICAgICBlcnJvckluZm9zLmZvckVhY2goZnVuY3Rpb24gKGVycm9ySW5mbywgaW5kZXgpIHtcbiAgICAgICAgICBjb25zdCBub2RlID0gZXJyb3JJbmZvLm5vZGU7XG4gICAgICAgICAgY29uc3QgaW5mb3MgPSB7XG4gICAgICAgICAgICBub2RlLFxuICAgICAgICAgICAgbWVzc2FnZSxcbiAgICAgICAgICB9O1xuICAgICAgICAgIGlmIChpbmRleCA8IGxhc3RTb3J0Tm9kZXNJbmRleCkge1xuICAgICAgICAgICAgaW5mb3MuZml4ID0gZnVuY3Rpb24gKGZpeGVyKSB7XG4gICAgICAgICAgICAgIHJldHVybiBmaXhlci5pbnNlcnRUZXh0QWZ0ZXIobm9kZSwgJycpO1xuICAgICAgICAgICAgfTtcbiAgICAgICAgICB9IGVsc2UgaWYgKGluZGV4ID09PSBsYXN0U29ydE5vZGVzSW5kZXgpIHtcbiAgICAgICAgICAgIGNvbnN0IHNvcnROb2RlcyA9IGVycm9ySW5mb3Muc2xpY2UoMCwgbGFzdFNvcnROb2Rlc0luZGV4ICsgMSk7XG4gICAgICAgICAgICBpbmZvcy5maXggPSBmdW5jdGlvbiAoZml4ZXIpIHtcbiAgICAgICAgICAgICAgY29uc3QgcmVtb3ZlRml4ZXJzID0gc29ydE5vZGVzLm1hcChmdW5jdGlvbiAoX2Vycm9ySW5mbykge1xuICAgICAgICAgICAgICAgIHJldHVybiBmaXhlci5yZW1vdmVSYW5nZShfZXJyb3JJbmZvLnJhbmdlKTtcbiAgICAgICAgICAgICAgfSk7XG4gICAgICAgICAgICAgIGNvbnN0IHJhbmdlID0gWzAsIHJlbW92ZUZpeGVyc1tyZW1vdmVGaXhlcnMubGVuZ3RoIC0gMV0ucmFuZ2VbMV1dO1xuICAgICAgICAgICAgICBsZXQgaW5zZXJ0U291cmNlQ29kZSA9IHNvcnROb2Rlcy5tYXAoZnVuY3Rpb24gKF9lcnJvckluZm8pIHtcbiAgICAgICAgICAgICAgICBjb25zdCBub2RlU291cmNlQ29kZSA9IFN0cmluZy5wcm90b3R5cGUuc2xpY2UuYXBwbHkoXG4gICAgICAgICAgICAgICAgICBvcmlnaW5Tb3VyY2VDb2RlLCBfZXJyb3JJbmZvLnJhbmdlLFxuICAgICAgICAgICAgICAgICk7XG4gICAgICAgICAgICAgICAgaWYgKCgvXFxTLykudGVzdChub2RlU291cmNlQ29kZVswXSkpIHtcbiAgICAgICAgICAgICAgICAgIHJldHVybiBgXFxuJHtub2RlU291cmNlQ29kZX1gO1xuICAgICAgICAgICAgICAgIH1cbiAgICAgICAgICAgICAgICByZXR1cm4gbm9kZVNvdXJjZUNvZGU7XG4gICAgICAgICAgICAgIH0pLmpvaW4oJycpO1xuICAgICAgICAgICAgICBsZXQgaW5zZXJ0Rml4ZXIgPSBudWxsO1xuICAgICAgICAgICAgICBsZXQgcmVwbGFjZVNvdXJjZUNvZGUgPSAnJztcbiAgICAgICAgICAgICAgaWYgKCFsYXN0TGVnYWxJbXApIHtcbiAgICAgICAgICAgICAgICBpbnNlcnRTb3VyY2VDb2RlID0gaW5zZXJ0U291cmNlQ29kZS50cmltKCkgKyBpbnNlcnRTb3VyY2VDb2RlLm1hdGNoKC9eKFxccyspLylbMF07XG4gICAgICAgICAgICAgIH1cbiAgICAgICAgICAgICAgaW5zZXJ0Rml4ZXIgPSBsYXN0TGVnYWxJbXBcbiAgICAgICAgICAgICAgICA/IGZpeGVyLmluc2VydFRleHRBZnRlcihsYXN0TGVnYWxJbXAsIGluc2VydFNvdXJjZUNvZGUpXG4gICAgICAgICAgICAgICAgOiBmaXhlci5pbnNlcnRUZXh0QmVmb3JlKGJvZHlbMF0sIGluc2VydFNvdXJjZUNvZGUpO1xuXG4gICAgICAgICAgICAgIGNvbnN0IGZpeGVycyA9IFtpbnNlcnRGaXhlcl0uY29uY2F0KHJlbW92ZUZpeGVycyk7XG4gICAgICAgICAgICAgIGZpeGVycy5mb3JFYWNoKChjb21wdXRlZEZpeGVyLCBpKSA9PiB7XG4gICAgICAgICAgICAgICAgcmVwbGFjZVNvdXJjZUNvZGUgKz0gb3JpZ2luU291cmNlQ29kZS5zbGljZShcbiAgICAgICAgICAgICAgICAgIGZpeGVyc1tpIC0gMV0gPyBmaXhlcnNbaSAtIDFdLnJhbmdlWzFdIDogMCwgY29tcHV0ZWRGaXhlci5yYW5nZVswXSxcbiAgICAgICAgICAgICAgICApICsgY29tcHV0ZWRGaXhlci50ZXh0O1xuICAgICAgICAgICAgICB9KTtcblxuICAgICAgICAgICAgICByZXR1cm4gZml4ZXIucmVwbGFjZVRleHRSYW5nZShyYW5nZSwgcmVwbGFjZVNvdXJjZUNvZGUpO1xuICAgICAgICAgICAgfTtcbiAgICAgICAgICB9XG4gICAgICAgICAgY29udGV4dC5yZXBvcnQoaW5mb3MpO1xuICAgICAgICB9KTtcbiAgICAgIH0sXG4gICAgfTtcbiAgfSxcbn07XG4iXX0= \ No newline at end of file diff --git a/node_modules/eslint-plugin-import/lib/rules/group-exports.js b/node_modules/eslint-plugin-import/lib/rules/group-exports.js index 37922f8823..e108fa2c47 100644 --- a/node_modules/eslint-plugin-import/lib/rules/group-exports.js +++ b/node_modules/eslint-plugin-import/lib/rules/group-exports.js @@ -152,4 +152,4 @@ function create(context) { module.exports = { meta: meta, create: create }; -//# sourceMappingURL=data:application/json;charset=utf-8;base64,eyJ2ZXJzaW9uIjozLCJzb3VyY2VzIjpbIi4uLy4uL3NyYy9ydWxlcy9ncm91cC1leHBvcnRzLmpzIl0sIm5hbWVzIjpbIm1ldGEiLCJ0eXBlIiwiZG9jcyIsImNhdGVnb3J5IiwiZGVzY3JpcHRpb24iLCJ1cmwiLCJlcnJvcnMiLCJFeHBvcnRO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yhub2Rlcy50eXBlcy5zb3VyY2VzKVxuICAgICAgICAuZmlsdGVyKG5vZGVzV2l0aFNvdXJjZSA9PiBBcnJheS5pc0FycmF5KG5vZGVzV2l0aFNvdXJjZSkgJiYgbm9kZXNXaXRoU291cmNlLmxlbmd0aCA+IDEpKVxuICAgICAgICAuZm9yRWFjaCgobm9kZSkgPT4ge1xuICAgICAgICAgIGNvbnRleHQucmVwb3J0KHtcbiAgICAgICAgICAgIG5vZGUsXG4gICAgICAgICAgICBtZXNzYWdlOiBlcnJvcnNbbm9kZS50eXBlXSxcbiAgICAgICAgICB9KTtcbiAgICAgICAgfSk7XG5cbiAgICAgIC8vIFJlcG9ydCBtdWx0aXBsZSBgbW9kdWxlLmV4cG9ydHNgIGFzc2lnbm1lbnRzIChDb21tb25KUylcbiAgICAgIGlmIChub2Rlcy5jb21tb25qcy5zZXQuc2l6ZSA+IDEpIHtcbiAgICAgICAgbm9kZXMuY29tbW9uanMuc2V0LmZvckVhY2gobm9kZSA9PiB7XG4gICAgICAgICAgY29udGV4dC5yZXBvcnQoe1xuICAgICAgICAgICAgbm9kZSxcbiAgICAgICAgICAgIG1lc3NhZ2U6IGVycm9yc1tub2RlLnR5cGVdLFxuICAgICAgICAgIH0pO1xuICAgICAgICB9KTtcbiAgICAgIH1cbiAgICB9LFxuICB9O1xufVxuXG5tb2R1bGUuZXhwb3J0cyA9IHtcbiAgbWV0YSxcbiAgY3JlYXRlLFxufTtcbiJdfQ== \ No newline at end of file +//# sourceMappingURL=data:application/json;charset=utf-8;base64,eyJ2ZXJzaW9uIjozLCJzb3VyY2VzIjpbIi4uLy4uL3NyYy9ydWxlcy9ncm91cC1leHBvcnRzLmpzIl0sIm5hbWVzIjpbIm1ldGEiLCJ0eXBlIiwiZG9jcyIsImNhdGVnb3J5IiwiZGVzY3JpcHRpb24iLCJ1cmwiLCJlcnJvcnMiLCJFeHBvcnROYW1lZERlY2xhcmF0aW9uIiwiQXNzaWdubWVudEV4cHJlc3Npb24iL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ub2JqZWN0O1xuICB9IHdoaWxlIChub2RlLnR5cGUgPT09ICdNZW1iZXJFeHByZXNzaW9uJyk7XG5cbiAgcmV0dXJuIGNoYWluO1xufVxuXG5mdW5jdGlvbiBjcmVhdGUoY29udGV4dCkge1xuICBjb25zdCBub2RlcyA9IHtcbiAgICBtb2R1bGVzOiB7XG4gICAgICBzZXQ6IG5ldyBTZXQoKSxcbiAgICAgIHNvdXJjZXM6IHt9LFxuICAgIH0sXG4gICAgdHlwZXM6IHtcbiAgICAgIHNldDogbmV3IFNldCgpLFxuICAgICAgc291cmNlczoge30sXG4gICAgfSxcbiAgICBjb21tb25qczoge1xuICAgICAgc2V0OiBuZXcgU2V0KCksXG4gICAgfSxcbiAgfTtcblxuICByZXR1cm4ge1xuICAgIEV4cG9ydE5hbWVkRGVjbGFyYXRpb24obm9kZSkge1xuICAgICAgY29uc3QgdGFyZ2V0ID0gbm9kZS5leHBvcnRLaW5kID09PSAndHlwZScgPyBub2Rlcy50eXBlcyA6IG5vZGVzLm1vZHVsZXM7XG4gICAgICBpZiAoIW5vZGUuc291cmNlKSB7XG4gICAgICAgIHRhcmdldC5zZXQuYWRkKG5vZGUpO1xuICAgICAgfSBlbHNlIGlmIChBcnJheS5pc0FycmF5KHRhcmdldC5zb3VyY2VzW25vZGUuc291cmNlLnZhbHVlXSkpIHtcbiAgICAgICAgdGFyZ2V0LnNvdXJjZXNbbm9kZS5zb3VyY2UudmFsdWVdLnB1c2gobm9kZSk7XG4gICAgICB9IGVsc2Uge1xuICAgICAgICB0YXJnZXQuc291cmNlc1tub2RlLnNvdXJjZS52YWx1ZV0gPSBbbm9kZV07XG4gICAgICB9XG4gICAgfSxcblxuICAgIEFzc2lnbm1lbnRFeHByZXNzaW9uKG5vZGUpIHtcbiAgICAgIGlmIChub2RlLmxlZnQudHlwZSAhPT0gJ01lbWJlckV4cHJlc3Npb24nKSB7XG4gICAgICAgIHJldHVybjtcbiAgICAgIH1cblxuICAgICAgY29uc3QgY2hhaW4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LnNvdXJjZXMpXG4gICAgICAgIC5maWx0ZXIoKG5vZGVzV2l0aFNvdXJjZSkgPT4gQXJyYXkuaXNBcnJheShub2Rlc1dpdGhTb3VyY2UpICYmIG5vZGVzV2l0aFNvdXJjZS5sZW5ndGggPiAxKSlcbiAgICAgICAgLmZvckVhY2goKG5vZGUpID0+IHtcbiAgICAgICAgICBjb250ZXh0LnJlcG9ydCh7XG4gICAgICAgICAgICBub2RlLFxuICAgICAgICAgICAgbWVzc2FnZTogZXJyb3JzW25vZGUudHlwZV0sXG4gICAgICAgICAgfSk7XG4gICAgICAgIH0pO1xuXG4gICAgICAvLyBSZXBvcnQgbXVsdGlwbGUgYG1vZHVsZS5leHBvcnRzYCBhc3NpZ25tZW50cyAoQ29tbW9uSlMpXG4gICAgICBpZiAobm9kZXMuY29tbW9uanMuc2V0LnNpemUgPiAxKSB7XG4gICAgICAgIG5vZGVzLmNvbW1vbmpzLnNldC5mb3JFYWNoKChub2RlKSA9PiB7XG4gICAgICAgICAgY29udGV4dC5yZXBvcnQoe1xuICAgICAgICAgICAgbm9kZSxcbiAgICAgICAgICAgIG1lc3NhZ2U6IGVycm9yc1tub2RlLnR5cGVdLFxuICAgICAgICAgIH0pO1xuICAgICAgICB9KTtcbiAgICAgIH1cbiAgICB9LFxuICB9O1xufVxuXG5tb2R1bGUuZXhwb3J0cyA9IHtcbiAgbWV0YSxcbiAgY3JlYXRlLFxufTtcbiJdfQ== \ No newline at end of file diff --git a/node_modules/eslint-plugin-import/lib/rules/imports-first.js b/node_modules/eslint-plugin-import/lib/rules/imports-first.js index 5eca62cea9..f242ac7829 100644 --- a/node_modules/eslint-plugin-import/lib/rules/imports-first.js +++ b/node_modules/eslint-plugin-import/lib/rules/imports-first.js @@ -2,7 +2,8 @@ var first = require('./first'); -var newMeta = Object.assign({}, first.meta, { +var newMeta = Object.assign({}, +first.meta, { deprecated: true, docs: { category: 'Style guide', @@ -12,4 +13,4 @@ var newMeta = Object.assign({}, first.meta, { module.exports =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N0IG5ld01ldGEgPSB7XG4gIC4uLmZpcnN0Lm1ldGEsXG4gIGRlcHJlY2F0ZWQ6IHRydWUsXG4gIGRvY3M6IHtcbiAgICBjYXRlZ29yeTogJ1N0eWxlIGd1aWRlJyxcbiAgICBkZXNjcmlwdGlvbjogJ1JlcGxhY2VkIGJ5IGBpbXBvcnQvZmlyc3RgLicsXG4gICAgdXJsOiBkb2NzVXJsKCdpbXBvcnRzLWZpcnN0JywgJzdiMjVjMWNiOTVlZTE4YWNjMTUzMTAwMmZkMzQzZTFlNjAzMWY5ZWQnKSxcbiAgfSxcbn07XG5cbm1vZHVsZS5leHBvcnRzID0geyAuLi5maXJzdCwgbWV0YTogbmV3TWV0YSB9O1xuIl19 \ No newline at end of file diff --git a/node_modules/eslint-plugin-import/lib/rules/max-dependencies.js b/node_modules/eslint-plugin-import/lib/rules/max-dependencies.js index b23f47f47b..4880970109 100644 --- a/node_modules/eslint-plugin-import/lib/rules/max-dependencies.js +++ b/node_modules/eslint-plugin-import/lib/rules/max-dependencies.js @@ -24,12 +24,12 @@ module.exports = { schema: [ { - 'type': 'object', - 'properties': { - 'max': { 'type': 'number' }, - 'ignoreTypeImports': { 'type': 'boolean' } }, + type: 'object', + properties: { + max: { type: 'number' }, + ignoreTypeImports: { type: 'boolean' } }, - 'additionalProperties': false }] }, + additionalProperties: false }] }, @@ -46,11 +46,15 @@ module.exports = { 'Program:exit': function () {function ProgramExit() { countDependencies(dependencies, lastNode, context); }return ProgramExit;}() }, - (0, _moduleVisitor2['default'])(function (source, _ref3) {var importKind = _ref3.importKind; + (0, _moduleVisitor2['default'])( + function (source, _ref3) {var importKind = _ref3.importKind; if (importKind !== TYPE_IMPORT || !ignoreTypeImports) { dependencies.add(source.value); } lastNode = source; - }, { commonjs: true })); + }, + { commonjs: true })); + + }return create;}() }; -//# sourceMappingURL=data:application/json;charset=utf-8;base64,eyJ2ZXJzaW9uIjozLCJzb3VyY2VzIjpbIi4uLy4uL3NyYy9ydWxlcy9tY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aWdub3JlVHlwZUltcG9ydHMnOiB7ICd0eXBlJzogJ2Jvb2xlYW4nIH0sXG4gICAgICAgIH0sXG4gICAgICAgICdhZGRpdGlvbmFsUHJvcGVydGllcyc6IGZhbHNlLFxuICAgICAgfSxcbiAgICBdLFxuICB9LFxuXG4gIGNyZWF0ZTogY29udGV4dCA9PiB7XG4gICAgY29uc3Qge1xuICAgICAgaWdub3JlVHlwZUltcG9ydHMgPSBERUZBVUxUX0lHTk9SRV9UWVBFX0lNUE9SVFMsXG4gICAgfSA9IGNvbnRleHQub3B0aW9uc1swXSB8fCB7fTtcblxuICAgIGNvbnN0IGRlcGVuZGVuY2llcyA9IG5ldyBTZXQoKTsgLy8ga2VlcCB0cmFjayBvZiBkZXBlbmRlbmNpZXNcbiAgICBsZXQgbGFzdE5vZGU7IC8vIGtlZXAgdHJhY2sgb2YgdGhlIGxhc3Qgbm9kZSB0byByZXBvcnQgb25cblxuICAgIHJldHVybiBPYmplY3QuYXNzaWduKHtcbiAgICAgICdQcm9ncmFtOmV4aXQnOiBmdW5jdGlvbiAoKSB7XG4gICAgICAgIGNvdW50RGVwZW5kZW5jaWVzKGRlcGVuZGVuY2llcywgbGFzdE5vZGUsIGNvbnRleHQpO1xuICAgICAgfSxcbiAgICB9LCBtb2R1bGVWaXNpdG9yKChzb3VyY2UsIHsgaW1wb3J0S2luZCB9KSA9PiB7XG4gICAgICBpZiAoaW1wb3J0S2luZCAhPT0gVFlQRV9JTVBPUlQgfHwgIWlnbm9yZVR5cGVJbXBvcnRzKSB7XG4gICAgICAgIGRlcGVuZGVuY2llcy5hZGQoc291cmNlLnZhbHVlKTtcbiAgICAgIH1cbiAgICAgIGxhc3ROb2RlID0gc291cmNlO1xuICAgIH0sIHsgY29tbW9uanM6IHRydWUgfSkpO1xuICB9LFxufTtcbiJdfQ== \ No newline at end of file +//# sourceMappingURL=data:application/json;charset=utf-8;base64,eyJ2ZXJzaW9uIjozLCJzb3VyY2VzIjpbIi4uLy4uL3NyYy9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ICAgICBpZ25vcmVUeXBlSW1wb3J0czogeyB0eXBlOiAnYm9vbGVhbicgfSxcbiAgICAgICAgfSxcbiAgICAgICAgYWRkaXRpb25hbFByb3BlcnRpZXM6IGZhbHNlLFxuICAgICAgfSxcbiAgICBdLFxuICB9LFxuXG4gIGNyZWF0ZShjb250ZXh0KSB7XG4gICAgY29uc3Qge1xuICAgICAgaWdub3JlVHlwZUltcG9ydHMgPSBERUZBVUxUX0lHTk9SRV9UWVBFX0lNUE9SVFMsXG4gICAgfSA9IGNvbnRleHQub3B0aW9uc1swXSB8fCB7fTtcblxuICAgIGNvbnN0IGRlcGVuZGVuY2llcyA9IG5ldyBTZXQoKTsgLy8ga2VlcCB0cmFjayBvZiBkZXBlbmRlbmNpZXNcbiAgICBsZXQgbGFzdE5vZGU7IC8vIGtlZXAgdHJhY2sgb2YgdGhlIGxhc3Qgbm9kZSB0byByZXBvcnQgb25cblxuICAgIHJldHVybiB7XG4gICAgICAnUHJvZ3JhbTpleGl0JygpIHtcbiAgICAgICAgY291bnREZXBlbmRlbmNpZXMoZGVwZW5kZW5jaWVzLCBsYXN0Tm9kZSwgY29udGV4dCk7XG4gICAgICB9LFxuICAgICAgLi4ubW9kdWxlVmlzaXRvcihcbiAgICAgICAgKHNvdXJjZSwgeyBpbXBvcnRLaW5kIH0pID0+IHtcbiAgICAgICAgICBpZiAoaW1wb3J0S2luZCAhPT0gVFlQRV9JTVBPUlQgfHwgIWlnbm9yZVR5cGVJbXBvcnRzKSB7XG4gICAgICAgICAgICBkZXBlbmRlbmNpZXMuYWRkKHNvdXJjZS52YWx1ZSk7XG4gICAgICAgICAgfVxuICAgICAgICAgIGxhc3ROb2RlID0gc291cmNlO1xuICAgICAgICB9LFxuICAgICAgICB7IGNvbW1vbmpzOiB0cnVlIH0sXG4gICAgICApLFxuICAgIH07XG4gIH0sXG59O1xuIl19 \ No newline at end of file diff --git a/node_modules/eslint-plugin-import/lib/rules/named.js b/node_modules/eslint-plugin-import/lib/rules/named.js index 2aa59a387e..96d9fd8493 100644 --- a/node_modules/eslint-plugin-import/lib/rules/named.js +++ b/node_modules/eslint-plugin-import/lib/rules/named.js @@ -72,7 +72,7 @@ module.exports = { context.report(im[key], String(name) + ' not found via ' + String(deepPath)); } else { - context.report(im[key], name + ' not found in \'' + node.source.value + '\''); + context.report(im[key], String(name) + ' not found in \'' + String(node.source.value) + '\''); } } }); @@ -126,7 +126,7 @@ module.exports = { context.report(im.key, String(im.key.name) + ' not found via ' + String(deepPath)); } else { - context.report(im.key, im.key.name + ' not found in \'' + source.value + '\''); + context.report(im.key, String(im.key.name) + ' not found in \'' + String(source.value) + '\''); } } }); @@ -140,4 +140,4 @@ module.exports = { VariableDeclarator: checkRequire }; }return create;}() }; -//# sourceMappingURL=data:application/json;charset=utf-8;base64,eyJ2ZXJzaW9uIjozLCJzb3VyY2VzIjpbIi4uLy4uL3NyYy9ydWxlcy9uYW1lZC5qcyJdLCJuYW1lcyI6WyJwYXRoIiwibW9kdWxlIiwiZXhwb3J0cyIsIm1ldGEiLCJ0eXBlIiwiZG9jcyIsImNhdGVnb3J5IiwiZGVzY3JpcHRpb24iLCJ1cmwiLCJzY2hlbWEiLCJwcm9wZXJ0aWVzIiwiY29tbW9uanMiLCJhZGRpdGlvbmFsUHJvcGVydGllcyIsImNyZWF0ZSIsImNvbnRleHQiLCJvcHRpb25zIiwiY2hlY2tTcGVjaWZpZXJzIiwia2V5Iiwibm9kZSIsInNvdXJjZSIsImltcG9ydEtpbmQiLCJleHBvcnRLaW5kIiwic3BlY2lmaWVycyIsInNvbWUiLCJpbSIsImltcG9ydHMiLCJFeHBvcnRzIiwiZ2V0IiwidmFsdWUiLCJwYXJzZUdvYWwiLCJlcnJvcnMiLCJsZW5ndGgiLCJyZXBvcnRFcnJvcnMiLCJmb3JFYWNoIiwibmFtZSIsImRlZXBMb29rdXAiLCJoYXNEZWVwIiwiZm91bmQiLCJkZWVwUGF0aCIsIm1hcCIsInJlbGF0aXZlIiwiZGlybmFt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WZpZXJzLnNvbWUoKGltKSA9PiBpbS50eXBlID09PSB0eXBlKSkge1xuICAgICAgICByZXR1cm47IC8vIG5vIG5hbWVkIGltcG9ydHMvZXhwb3J0c1xuICAgICAgfVxuXG4gICAgICBjb25zdCBpbXBvcnRzID0gRXhwb3J0cy5nZXQobm9kZS5zb3VyY2UudmFsdWUsIGNvbnRleHQpO1xuICAgICAgaWYgKGltcG9ydHMgPT0gbnVsbCB8fCBpbXBvcnRzLnBhcnNlR29hbCA9PT0gJ2FtYmlndW91cycpIHtcbiAgICAgICAgcmV0dXJuO1xuICAgICAgfVxuXG4gICAgICBpZiAoaW1wb3J0cy5lcnJvcnMubGVuZ3RoKSB7XG4gICAgICAgIGltcG9ydHMucmVwb3J0RXJyb3JzKGNvbnRleHQsIG5vZGUpO1xuICAgICAgICByZXR1cm47XG4gICAgICB9XG5cbiAgICAgIG5vZGUuc3BlY2lmaWVycy5mb3JFYWNoKGZ1bmN0aW9uIChpbSkge1xuICAgICAgICBpZiAoXG4gICAgICAgICAgaW0udHlwZSAhPT0gdHlwZVxuICAgICAgICAgIC8vIGlnbm9yZSB0eXBlIGltcG9ydHNcbiAgICAgICAgICB8fCBpbS5pbXBvcnRLaW5kID09PSAndHlwZScgfHwgaW0uaW1wb3J0S2luZCA9PT0gJ3R5cGVvZidcbiAgICAgICAgKSB7XG4gICAgICAgICAgcmV0dXJuO1xuICAgICAgICB9XG5cbiAgICAgICAgY29uc3QgbmFtZSA9IGltW2tleV0ubmFtZSB8fCBpbVtrZXldLnZhbHVlO1xuXG4gICAgICAgIGNvbnN0IGRlZXBMb29rdXAgPSBpbXBvcnRzLmhhc0RlZXAobmFtZSk7XG5cbiAgICAgICAgaWYgKCFkZWVwTG9va3VwLmZvdW5kKSB7XG4gICAgICAgICAgaWYgKGRlZXBMb29rdXAucGF0aC5sZW5ndGggPiAxKSB7XG4gICAgICAgICAgICBjb25zdCBkZWVwUGF0aCA9IGRlZXBMb29rdXAucGF0aFxuICAgICAgICAg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iAgICAgICkge1xuICAgICAgICByZXR1cm47XG4gICAgICB9XG5cbiAgICAgIGNvbnN0IGNhbGwgPSBub2RlLmluaXQ7XG4gICAgICBjb25zdCBbc291cmNlXSA9IGNhbGwuYXJndW1lbnRzO1xuICAgICAgY29uc3QgdmFyaWFibGVJbXBvcnRzID0gbm9kZS5pZC5wcm9wZXJ0aWVzO1xuICAgICAgY29uc3QgdmFyaWFibGVFeHBvcnRzID0gRXhwb3J0cy5nZXQoc291cmNlLnZhbHVlLCBjb250ZXh0KTtcblxuICAgICAgaWYgKFxuICAgICAgICAvLyByZXR1cm4gaWYgaXQncyBub3QgYSBjb21tb25qcyByZXF1aXJlIHN0YXRlbWVudFxuICAgICAgICBjYWxsLmNhbGxlZS50eXBlICE9PSAnSWRlbnRpZmllcicgfHwgY2FsbC5jYWxsZWUubmFtZSAhPT0gJ3JlcXVpcmUnIHx8IGNhbGwuYXJndW1lbnRzLmxlbmd0aCAhPT0gMVxuICAgICAgICAvLyByZXR1cm4gaWYgaXQncyBub3QgYSBzdHJpbmcgc291cmNlXG4gICAgICAgIHx8IHNvdXJjZS50eXBlICE9PSAnTGl0ZXJhbCdcbiAgICAgICAgfHwgdmFyaWFibGVFeHBvcnRzID09IG51bGxcbiAgICAgICAgfHwgdmFyaWFibGVFeHBvcnRzLnBhcnNlR29hbCA9PT0gJ2FtYmlndW91cydcbiAgICAgICkge1xuICAgICAgICByZXR1cm47XG4gICAgICB9XG5cbiAgICAgIGlmICh2YXJpYWJsZUV4cG9ydHMuZXJyb3JzLmxlbmd0aCkge1xuICAgICAgICB2YXJpYWJsZUV4cG9ydHMucmVwb3J0RXJyb3JzKGNvbnRleHQsIG5vZGUpO1xuICAgICAgICByZXR1cm47XG4gICAgICB9XG5cbiAgICAgIHZhcmlhYmxlSW1wb3J0cy5mb3JFYWNoKGZ1bmN0aW9uIChpbSkge1xuICAgICAgICBpZiAoaW0udHlwZSAhPT0gJ1Byb3BlcnR5JyB8fCAhaW0ua2V5IHx8IGltLmtleS50eXBlICE9PSAnSWRlbnRpZmllcicpIHtcbiAgICAgICAgICByZXR1cm47XG4gICAgICAgIH1cblxuICAgICAgICBjb25zdCBkZWVwTG9va3VwID0gdmFyaWFibGVFeHBvcnRzLmhhc0RlZXAoaW0ua2V5Lm5hbWUpO1xuXG4gICAgICAgIGlmICghZGVlcExvb2t1cC5mb3VuZCkge1xuICAgICAgICAgIGlmIChkZWVwTG9va3VwLnBhdGgubGVuZ3RoID4gMSkge1xuICAgICAgICAgICAgY29uc3QgZGVlcFBhdGggPSBkZWVwTG9va3VwLnBhdGhcbiAgICAgICAgICAgICAgLm1hcChpID0+IHBhdGgucmVsYXRpdmUocGF0aC5kaXJuYW1lKGNvbnRleHQuZ2V0RmlsZW5hbWUoKSksIGkucGF0aCkpXG4gICAgICAgICAgICAgIC5qb2luKCcgLT4gJyk7XG5cbiAgICAgICAgICAgIGNvbnRleHQucmVwb3J0KGltLmtleSwgYCR7aW0ua2V5Lm5hbWV9IG5vdCBmb3VuZCB2aWEgJHtkZWVwUGF0aH1gKTtcbiAgICAgICAgICB9IGVsc2Uge1xuICAgICAgICAgICAgY29udGV4dC5yZXBvcnQoaW0ua2V5LCBpbS5rZXkubmFtZSArICcgbm90IGZvdW5kIGluIFxcJycgKyBzb3VyY2UudmFsdWUgKyAnXFwnJyk7XG4gICAgICAgICAgfVxuICAgICAgICB9XG4gICAgICB9KTtcbiAgICB9XG5cbiAgICByZXR1cm4ge1xuICAgICAgSW1wb3J0RGVjbGFyYXRpb246IGNoZWNrU3BlY2lmaWVycy5iaW5kKG51bGwsICdpbXBvcnRlZCcsICdJbXBvcnRTcGVjaWZpZXInKSxcblxuICAgICAgRXhwb3J0TmFtZWREZWNsYXJhdGlvbjogY2hlY2tTcGVjaWZpZXJzLmJpbmQobnVsbCwgJ2xvY2FsJywgJ0V4cG9ydFNwZWNpZmllcicpLFxuXG4gICAgICBWYXJpYWJsZURlY2xhcmF0b3I6IGNoZWNrUmVxdWlyZSxcbiAg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kge1xuICAgICAgICBpbXBvcnRzLnJlcG9ydEVycm9ycyhjb250ZXh0LCBub2RlKTtcbiAgICAgICAgcmV0dXJuO1xuICAgICAgfVxuXG4gICAgICBub2RlLnNwZWNpZmllcnMuZm9yRWFjaChmdW5jdGlvbiAoaW0pIHtcbiAgICAgICAgaWYgKFxuICAgICAgICAgIGltLnR5cGUgIT09IHR5cGVcbiAgICAgICAgICAvLyBpZ25vcmUgdHlwZSBpbXBvcnRzXG4gICAgICAgICAgfHwgaW0uaW1wb3J0S2luZCA9PT0gJ3R5cGUnIHx8IGltLmltcG9ydEtpbmQgPT09ICd0eXBlb2YnXG4gICAgICAgICkge1xuICAgICAgICAgIHJldHVybjtcbiAgICAgICAgfVxuXG4gICAgICAgIGNvbnN0IG5hbWUgPSBpbVtrZXldLm5hbWUgfHwgaW1ba2V5XS52YWx1ZTtcblxuICAgICAgICBjb25zdCBkZWVwTG9va3VwID0gaW1wb3J0cy5oYXNEZWVwKG5hbWUpO1xuXG4gICAgICAgIGlmICghZGVlcExvb2t1cC5mb3VuZCkge1xuICAgICAgICAgIGlmIChkZWVwTG9va3VwLnBhdGgubGVuZ3RoID4gMSkge1xuICAgICAgICAgICAgY29uc3QgZGVlcFBhdGggPSBkZWVwTG9va3VwLnBhdGhcbiAgICAgICAgICAgICAgLm1hcCgoaSkgPT4gcGF0aC5yZWxhdGl2ZShwYXRoLmRpcm5hbWUoY29udGV4dC5nZXRQaHlzaWNhbEZpbGVuYW1lID8gY29udGV4dC5nZXRQaHlzaWNhbEZpbGVuYW1lKCkgOiBjb250ZXh0LmdldEZpbGVuYW1lKCkpLCBpLnBhdGgpKVxuICAgICAgICAgICAgICAuam9pbignIC0+ICcpO1xuXG4gICAgICAgICAgICBjb250ZXh0LnJlcG9ydChpbVtrZXldLCBgJHtuYW1lfSBub3QgZm91bmQgdmlhICR7ZGVlcFBhdGh9YCk7XG4gICAgICAgICAgfSBlbHNlIHtcbiAgICAgICAgICAgIGNvbnRleHQucmVwb3J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gICBjYWxsLmNhbGxlZS50eXBlICE9PSAnSWRlbnRpZmllcicgfHwgY2FsbC5jYWxsZWUubmFtZSAhPT0gJ3JlcXVpcmUnIHx8IGNhbGwuYXJndW1lbnRzLmxlbmd0aCAhPT0gMVxuICAgICAgICAvLyByZXR1cm4gaWYgaXQncyBub3QgYSBzdHJpbmcgc291cmNlXG4gICAgICAgIHx8IHNvdXJjZS50eXBlICE9PSAnTGl0ZXJhbCdcbiAgICAgICAgfHwgdmFyaWFibGVFeHBvcnRzID09IG51bGxcbiAgICAgICAgfHwgdmFyaWFibGVFeHBvcnRzLnBhcnNlR29hbCA9PT0gJ2FtYmlndW91cydcbiAgICAgICkge1xuICAgICAgICByZXR1cm47XG4gICAgICB9XG5cbiAgICAgIGlmICh2YXJpYWJsZUV4cG9ydHMuZXJyb3JzLmxlbmd0aCkge1xuICAgICAgICB2YXJpYWJsZUV4cG9ydHMucmVwb3J0RXJyb3JzKGNvbnRleHQsIG5vZGUpO1xuICAgICAgICByZXR1cm47XG4gICAgICB9XG5cbiAgICAgIHZhcmlhYmxlSW1wb3J0cy5mb3JFYWNoKGZ1bmN0aW9uIChpbSkge1xuICAgICAgICBpZiAoaW0udHlwZSAhPT0gJ1Byb3BlcnR5JyB8fCAhaW0ua2V5IHx8IGltLmtleS50eXBlICE9PSAnSWRlbnRpZmllcicpIHtcbiAgICAgICAgICByZXR1cm47XG4gICAgICAgIH1cblxuICAgICAgICBjb25zdCBkZWVwTG9va3VwID0gdmFyaWFibGVFeHBvcnRzLmhhc0RlZXAoaW0ua2V5Lm5hbWUpO1xuXG4gICAgICAgIGlmICghZGVlcExvb2t1cC5mb3VuZCkge1xuICAgICAgICAgIGlmIChkZWVwTG9va3VwLnBhdGgubGVuZ3RoID4gMSkge1xuICAgICAgICAgICAgY29uc3QgZGVlcFBhdGggPSBkZWVwTG9va3VwLnBhdGhcbiAgICAgICAgICAgICAgLm1hcCgoaSkgPT4gcGF0aC5yZWxhdGl2ZShwYXRoLmRpcm5hbWUoY29udGV4dC5nZXRGaWxlbmFtZSgpKSwgaS5wYXRoKSlcbiAgICAgICAgICAgICAgLmpvaW4oJyAtPiAnKTtcblxuICAgICAgICAgICAgY29udGV4dC5yZXBvcnQoaW0ua2V5LCBgJHtpbS5rZXkubmFtZX0gbm90IGZvdW5kIHZpYSAke2RlZXBQYXRofWApO1xuICAgICAgICAgIH0gZWxzZSB7XG4gICAgICAgICAgICBjb250ZXh0LnJlcG9ydChpbS5rZXksIGAke2ltLmtleS5uYW1lfSBub3QgZm91bmQgaW4gJyR7c291cmNlLnZhbHVlfSdgKTtcbiAgICAgICAgICB9XG4gICAgICAgIH1cbiAgICAgIH0pO1xuICAgIH1cblxuICAgIHJldHVybiB7XG4gICAgICBJbXBvcnREZWNsYXJhdGlvbjogY2hlY2tTcGVjaWZpZXJzLmJpbmQobnVsbCwgJ2ltcG9ydGVkJywgJ0ltcG9ydFNwZWNpZmllcicpLFxuXG4gICAgICBFeHBvcnROYW1lZERlY2xhcmF0aW9uOiBjaGVja1NwZWNpZmllcnMuYmluZChudWxsLCAnbG9jYWwnLCAnRXhwb3J0U3BlY2lmaWVyJyksXG5cbiAgICAgIFZhcmlhYmxlRGVjbGFyYXRvcjogY2hlY2tSZXF1aXJlLFxuICAgIH07XG4gIH0sXG59O1xuIl19 \ No newline at end of file diff --git a/node_modules/eslint-plugin-import/lib/rules/namespace.js b/node_modules/eslint-plugin-import/lib/rules/namespace.js index 95fd5de72a..574d89a60d 100644 --- a/node_modules/eslint-plugin-import/lib/rules/namespace.js +++ b/node_modules/eslint-plugin-import/lib/rules/namespace.js @@ -4,12 +4,12 @@ var _importDeclaration = require('../importDeclaration');var _importDeclaration2 var _docsUrl = require('../docsUrl');var _docsUrl2 = _interopRequireDefault(_docsUrl);function _interopRequireDefault(obj) {return obj && obj.__esModule ? obj : { 'default': obj };} function processBodyStatement(context, namespaces, declaration) { - if (declaration.type !== 'ImportDeclaration') return; + if (declaration.type !== 'ImportDeclaration') {return;} - if (declaration.specifiers.length === 0) return; + if (declaration.specifiers.length === 0) {return;} var imports = _ExportMap2['default'].get(declaration.source.value, context); - if (imports == null) return null; + if (imports == null) {return null;} if (imports.errors.length > 0) { imports.reportErrors(context, declaration); @@ -36,7 +36,8 @@ function processBodyStatement(context, namespaces, declaration) { if (!meta || !meta.namespace) {break;} namespaces.set(specifier.local.name, meta.namespace); break; - }} + } + default:} }); } @@ -66,7 +67,6 @@ module.exports = { create: function () {function namespaceRule(context) { - // read options var _ref = @@ -81,7 +81,7 @@ module.exports = { return { // pick up all imports at body entry time, to properly respect hoisting Program: function () {function Program(_ref2) {var body = _ref2.body; - body.forEach(function (x) {return processBodyStatement(context, namespaces, x);}); + body.forEach(function (x) {processBodyStatement(context, namespaces, x);}); }return Program;}(), // same as above, but does not add names to local map @@ -89,7 +89,7 @@ module.exports = { var declaration = (0, _importDeclaration2['default'])(context); var imports = _ExportMap2['default'].get(declaration.source.value, context); - if (imports == null) return null; + if (imports == null) {return null;} if (imports.errors.length) { imports.reportErrors(context, declaration); @@ -107,9 +107,9 @@ module.exports = { // todo: check for possible redefinition MemberExpression: function () {function MemberExpression(dereference) { - if (dereference.object.type !== 'Identifier') return; - if (!namespaces.has(dereference.object.name)) return; - if ((0, _declaredScope2['default'])(context, dereference.object.name) !== 'module') return; + if (dereference.object.type !== 'Identifier') {return;} + if (!namespaces.has(dereference.object.name)) {return;} + if ((0, _declaredScope2['default'])(context, dereference.object.name) !== 'module') {return;} if (dereference.parent.type === 'AssignmentExpression' && dereference.parent.left === dereference) { context.report( @@ -142,7 +142,7 @@ module.exports = { } var exported = namespace.get(dereference.property.name); - if (exported == null) return; + if (exported == null) {return;} // stash and pop namepath.push(dereference.property.name); @@ -152,18 +152,18 @@ module.exports = { }return MemberExpression;}(), VariableDeclarator: function () {function VariableDeclarator(_ref3) {var id = _ref3.id,init = _ref3.init; - if (init == null) return; - if (init.type !== 'Identifier') return; - if (!namespaces.has(init.name)) return; + if (init == null) {return;} + if (init.type !== 'Identifier') {return;} + if (!namespaces.has(init.name)) {return;} // check for redefinition in intermediate scopes - if ((0, _declaredScope2['default'])(context, init.name) !== 'module') return; + if ((0, _declaredScope2['default'])(context, init.name) !== 'module') {return;} // DFS traverse child namespaces function testKey(pattern, namespace) {var path = arguments.length > 2 && arguments[2] !== undefined ? arguments[2] : [init.name]; - if (!(namespace instanceof _ExportMap2['default'])) return; + if (!(namespace instanceof _ExportMap2['default'])) {return;} - if (pattern.type !== 'ObjectPattern') return;var _iteratorNormalCompletion = true;var _didIteratorError = false;var _iteratorError = undefined;try { + if (pattern.type !== 'ObjectPattern') {return;}var _iteratorNormalCompletion = true;var _didIteratorError = false;var _iteratorError = undefined;try { for (var _iterator = pattern.properties[Symbol.iterator](), _step; !(_iteratorNormalCompletion = (_step = _iterator.next()).done); _iteratorNormalCompletion = true) {var property = _step.value; if ( @@ -204,7 +204,7 @@ module.exports = { }return VariableDeclarator;}(), JSXMemberExpression: function () {function JSXMemberExpression(_ref4) {var object = _ref4.object,property = _ref4.property; - if (!namespaces.has(object.name)) return; + if (!namespaces.has(object.name)) {return;} var namespace = namespaces.get(object.name); if (!namespace.has(property.name)) { context.report({ @@ -215,4 +215,4 @@ module.exports = { }return JSXMemberExpression;}() }; }return namespaceRule;}() }; -//# sourceMappingURL=data:application/json;charset=utf-8;base64,eyJ2ZXJzaW9uIjozLCJzb3VyY2VzIjpbIi4uLy4uL3NyYy9ydWxlcy9uYW1lc3BhY2UuanMiXSwibmFtZXMiOlsicHJvY2Vzc0JvZHlTdGF0ZW1lbnQiLCJjb250ZXh0IiwibmFtZXNwYWNlcyIsImRlY2xhcmF0aW9uIiwidHlwZSIsInNwZWNpZmllcnMiLCJsZW5ndGgiLCJpbXBvcnRzIiwiRXhwb3J0cyIsImdldCIsInNvdXJjZSIsInZhbHVlIiwiZXJyb3JzIiwicmVwb3J0RXJyb3JzIiwiZm9yRWFjaCIsInNwZWNpZmllciIsInNpemUiLCJyZXBvcnQiLCJzZXQiLCJsb2Nhb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ZXJ0eS50eXBlID09PSAnUmVzdEVsZW1lbnQnXG4gICAgICAgICAgICAgIHx8ICFwcm9wZXJ0eS5rZXlcbiAgICAgICAgICAgICkge1xuICAgICAgICAgICAgICBjb250aW51ZTtcbiAgICAgICAgICAgIH1cblxuICAgICAgICAgICAgaWYgKHByb3BlcnR5LmtleS50eXBlICE9PSAnSWRlbnRpZmllcicpIHtcbiAgICAgICAgICAgICAgY29udGV4dC5yZXBvcnQoe1xuICAgICAgICAgICAgICAgIG5vZGU6IHByb3BlcnR5LFxuICAgICAgICAgICAgICAgIG1lc3NhZ2U6ICdPbmx5IGRlc3RydWN0dXJlIHRvcC1sZXZlbCBuYW1lcy4nLFxuICAgICAgICAgICAgICB9KTtcbiAgICAgICAgICAgICAgY29udGludWU7XG4gICAgICAgICAgICB9XG5cbiAgICAgICAgICAgIGlmICghbmFtZXNwYWNlLmhhcyhwcm9wZXJ0eS5rZXkubmFtZSkpIHtcbiAgICAgICAgICAgICAgY29udGV4dC5yZXBvcnQoe1xuICAgICAgICAgICAgICAgIG5vZGU6IHByb3BlcnR5LFxuICAgICAgICAgICAgICAgIG1lc3NhZ2U6IG1ha2VNZXNzYWdlKHByb3BlcnR5LmtleSwgcGF0aCksXG4gICAgICAgICAgICAgIH0pO1xuICAgICAgICAgICAgICBjb250aW51ZTtcbiAgICAgICAgICAgIH1cblxuICAgICAgICAgICAgcGF0aC5wdXNoKHByb3BlcnR5LmtleS5uYW1lKTtcbiAgICAgICAgICAgIGNvbnN0IGRlcGVuZGVuY3lFeHBvcnRNYXAgPSBuYW1lc3BhY2UuZ2V0KHByb3BlcnR5LmtleS5uYW1lKTtcbiAgICAgICAgICAgIC8vIGNvdWxkIGJlIG51bGwgd2hlbiBpZ25vcmVkIG9yIGFtYmlndW91c1xuICAgICAgICAgICAgaWYgKGRlcGVuZGVuY3lFeHBvcnRNYXAgIT09IG51bGwpIHtcbiAgICAgICAgICAgICAgdGVzdEtleShwcm9wZXJ0eS52YWx1ZSwgZGVwZW5kZW5jeUV4cG9ydE1hcC5uYW1lc3BhY2UsIHBhdGgpO1xuICAgICAgICAgICAgfVxuICAgICAgICAgICAgcGF0aC5wb3AoKTtcbiAgICAgICAgICB9XG4gICAgICAgIH1cblxuICAgICAgICB0ZXN0S2V5KGlkLCBuYW1lc3BhY2VzLmdldChpbml0Lm5hbWUpKTtcbiAgICAgIH0sXG5cbiAgICAgIEpTWE1lbWJlckV4cHJlc3Npb24oeyBvYmplY3QsIHByb3BlcnR5IH0pIHtcbiAgICAgICAgaWYgKCFuYW1lc3BhY2VzLmhhcyhvYmplY3QubmFtZSkpIHJldHVybjtcbiAgICAgICAgY29uc3QgbmFtZXNwYWNlID0gbmFtZXNwYWNlcy5nZXQob2JqZWN0Lm5hbWUpO1xuICAgICAgICBpZiAoIW5hbWVzcGFjZS5oYXMocHJvcGVydHkubmFtZSkpIHtcbiAgICAgICAgICBjb250ZXh0LnJlcG9ydCh7XG4gICAgICAgICAgICBub2RlOiBwcm9wZXJ0eSxcbiAgICAgICAgICAgIG1lc3NhZ2U6IG1ha2VNZXNzYWdlKHByb3BlcnR5LCBbb2JqZWN0Lm5hbWVdKSxcbiAgICAgICAgICB9KTtcbiAgICAgICAgfVxuICAgICAgfSxcbiAgICB9O1xuICB9LFxufTtcbiJdfQ== \ No newline at end of file +//# sourceMappingURL=data:application/json;charset=utf-8;base64,eyJ2ZXJzaW9uIjozLCJzb3VyY2VzIjpbIi4uLy4uL3NyYy9ydWxlcy9uYW1lc3BhY2UuanMiXSwibmFtZXMiOlsicHJvY2Vzc0JvZHlTdGF0ZW1lbnQiLCJjb250ZXh0IiwibmFtZXNwYWNlcyIsImRlY2xhcmF0aW9uIiwidHlwZSIsInNwZWNpZmllcnMiLCJsZW5ndGgiLCJpbXBvcnRzIiwiRXhwb3J0cyIsImdldCIsInNvdXJjZSIsInZhbHVlIiwiZXJyb3JzIiwicmVwb3J0RXJyb3JzIiwiZm9yRWFjaCIsInNwZWNpZmllciIsInNpemUiLCJyZ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XJuLCBuYW1lc3BhY2UsIHBhdGggPSBbaW5pdC5uYW1lXSkge1xuICAgICAgICAgIGlmICghKG5hbWVzcGFjZSBpbnN0YW5jZW9mIEV4cG9ydHMpKSB7IHJldHVybjsgfVxuXG4gICAgICAgICAgaWYgKHBhdHRlcm4udHlwZSAhPT0gJ09iamVjdFBhdHRlcm4nKSB7IHJldHVybjsgfVxuXG4gICAgICAgICAgZm9yIChjb25zdCBwcm9wZXJ0eSBvZiBwYXR0ZXJuLnByb3BlcnRpZXMpIHtcbiAgICAgICAgICAgIGlmIChcbiAgICAgICAgICAgICAgcHJvcGVydHkudHlwZSA9PT0gJ0V4cGVyaW1lbnRhbFJlc3RQcm9wZXJ0eSdcbiAgICAgICAgICAgICAgfHwgcHJvcGVydHkudHlwZSA9PT0gJ1Jlc3RFbGVtZW50J1xuICAgICAgICAgICAgICB8fCAhcHJvcGVydHkua2V5XG4gICAgICAgICAgICApIHtcbiAgICAgICAgICAgICAgY29udGludWU7XG4gICAgICAgICAgICB9XG5cbiAgICAgICAgICAgIGlmIChwcm9wZXJ0eS5rZXkudHlwZSAhPT0gJ0lkZW50aWZpZXInKSB7XG4gICAgICAgICAgICAgIGNvbnRleHQucmVwb3J0KHtcbiAgICAgICAgICAgICAgICBub2RlOiBwcm9wZXJ0eSxcbiAgICAgICAgICAgICAgICBtZXNzYWdlOiAnT25seSBkZXN0cnVjdHVyZSB0b3AtbGV2ZWwgbmFtZXMuJyxcbiAgICAgICAgICAgICAgfSk7XG4gICAgICAgICAgICAgIGNvbnRpbnVlO1xuICAgICAgICAgICAgfVxuXG4gICAgICAgICAgICBpZiAoIW5hbWVzcGFjZS5oYXMocHJvcGVydHkua2V5Lm5hbWUpKSB7XG4gICAgICAgICAgICAgIGNvbnRleHQucmVwb3J0KHtcbiAgICAgICAgICAgICAgICBub2RlOiBwcm9wZXJ0eSxcbiAgICAgICAgICAgICAgICBtZXNzYWdlOiBtYWtlTWVzc2FnZShwcm9wZXJ0eS5rZXksIHBhdGgpLFxuICAgICAgICAgICAgICB9KTtcbiAgICAgICAgICAgICAgY29udGludWU7XG4gICAgICAgICAgICB9XG5cbiAgICAgICAgICAgIHBhdGgucHVzaChwcm9wZXJ0eS5rZXkubmFtZSk7XG4gICAgICAgICAgICBjb25zdCBkZXBlbmRlbmN5RXhwb3J0TWFwID0gbmFtZXNwYWNlLmdldChwcm9wZXJ0eS5rZXkubmFtZSk7XG4gICAgICAgICAgICAvLyBjb3VsZCBiZSBudWxsIHdoZW4gaWdub3JlZCBvciBhbWJpZ3VvdXNcbiAgICAgICAgICAgIGlmIChkZXBlbmRlbmN5RXhwb3J0TWFwICE9PSBudWxsKSB7XG4gICAgICAgICAgICAgIHRlc3RLZXkocHJvcGVydHkudmFsdWUsIGRlcGVuZGVuY3lFeHBvcnRNYXAubmFtZXNwYWNlLCBwYXRoKTtcbiAgICAgICAgICAgIH1cbiAgICAgICAgICAgIHBhdGgucG9wKCk7XG4gICAgICAgICAgfVxuICAgICAgICB9XG5cbiAgICAgICAgdGVzdEtleShpZCwgbmFtZXNwYWNlcy5nZXQoaW5pdC5uYW1lKSk7XG4gICAgICB9LFxuXG4gICAgICBKU1hNZW1iZXJFeHByZXNzaW9uKHsgb2JqZWN0LCBwcm9wZXJ0eSB9KSB7XG4gICAgICAgIGlmICghbmFtZXNwYWNlcy5oYXMob2JqZWN0Lm5hbWUpKSB7IHJldHVybjsgfVxuICAgICAgICBjb25zdCBuYW1lc3BhY2UgPSBuYW1lc3BhY2VzLmdldChvYmplY3QubmFtZSk7XG4gICAgICAgIGlmICghbmFtZXNwYWNlLmhhcyhwcm9wZXJ0eS5uYW1lKSkge1xuICAgICAgICAgIGNvbnRleHQucmVwb3J0KHtcbiAgICAgICAgICAgIG5vZGU6IHByb3BlcnR5LFxuICAgICAgICAgICAgbWVzc2FnZTogbWFrZU1lc3NhZ2UocHJvcGVydHksIFtvYmplY3QubmFtZV0pLFxuICAgICAgICAgIH0pO1xuICAgICAgICB9XG4gICAgICB9LFxuICAgIH07XG4gIH0sXG59O1xuIl19 \ No newline at end of file diff --git a/node_modules/eslint-plugin-import/lib/rules/newline-after-import.js b/node_modules/eslint-plugin-import/lib/rules/newline-after-import.js index 2c548f242b..9718593672 100644 --- a/node_modules/eslint-plugin-import/lib/rules/newline-after-import.js +++ b/node_modules/eslint-plugin-import/lib/rules/newline-after-import.js @@ -63,15 +63,15 @@ module.exports = { fixable: 'whitespace', schema: [ { - 'type': 'object', - 'properties': { - 'count': { - 'type': 'integer', - 'minimum': 1 }, + type: 'object', + properties: { + count: { + type: 'integer', + minimum: 1 }, - 'considerComments': { 'type': 'boolean' } }, + considerComments: { type: 'boolean' } }, - 'additionalProperties': false }] }, + additionalProperties: false }] }, @@ -149,6 +149,11 @@ module.exports = { function checkImport(node) {var parent = node.parent; + + if (!parent || !parent.body) { + return; + } + var nodePosition = parent.body.indexOf(node); var nextNode = parent.body[nodePosition + 1]; var endLine = node.loc.end.line; @@ -158,7 +163,6 @@ module.exports = { nextComment = parent.comments.find(function (o) {return o.loc.start.line === endLine + 1;}); } - // skip "export import"s if (node.type === 'TSImportEqualsDeclaration' && node.isExport) { return; @@ -196,8 +200,12 @@ module.exports = { return; } - if (nextStatement && ( - !nextRequireCall || !containsNodeOrEqual(nextStatement, nextRequireCall))) { + if ( + nextStatement && ( + !nextRequireCall || + !containsNodeOrEqual(nextStatement, nextRequireCall))) + + { checkForNewLine(statementWithRequireCall, nextStatement, 'require'); } @@ -217,4 +225,4 @@ module.exports = { 'Decorator:exit': decrementLevel }; }return create;}() }; -//# sourceMappingURL=data:application/json;charset=utf-8;base64,eyJ2ZXJzaW9uIjozLCJzb3VyY2VzIjpbIi4uLy4uL3NyYy9ydWxlcy9uZXdsaW5lLWFmdGVyLWltcG9ydC5qcyJdLCJuYW1lcyI6WyJsb2ciLCJjb250YWluc05vZGVPckVxdWFsIiwib3V0ZXJOb2RlIiwiaW5uZXJOb2RlIiwicmFuZ2UiLCJnZXRTY29wZUJvZHkiLCJzY29wZ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jb250YWluc05vZGVPckVxdWFsKG5leHRTdGF0ZW1lbnQsIG5leHRSZXF1aXJlQ2FsbCkpKSB7XG5cbiAgICAgICAgICAgIGNoZWNrRm9yTmV3TGluZShzdGF0ZW1lbnRXaXRoUmVxdWlyZUNhbGwsIG5leHRTdGF0ZW1lbnQsICdyZXF1aXJlJyk7XG4gICAgICAgICAgfVxuICAgICAgICB9KTtcbiAgICAgIH0sXG4gICAgICBGdW5jdGlvbkRlY2xhcmF0aW9uOiBpbmNyZW1lbnRMZXZlbCxcbiAgICAgIEZ1bmN0aW9uRXhwcmVzc2lvbjogaW5jcmVtZW50TGV2ZWwsXG4gICAgICBBcnJvd0Z1bmN0aW9uRXhwcmVzc2lvbjogaW5jcmVtZW50TGV2ZWwsXG4gICAgICBCbG9ja1N0YXRlbWVudDogaW5jcmVtZW50TGV2ZWwsXG4gICAgICBPYmplY3RFeHByZXNzaW9uOiBpbmNyZW1lbnRMZXZlbCxcbiAgICAgIERlY29yYXRvcjogaW5jcmVtZW50TGV2ZWwsXG4gICAgICAnRnVuY3Rpb25EZWNsYXJhdGlvbjpleGl0JzogZGVjcmVtZW50TGV2ZWwsXG4gICAgICAnRnVuY3Rpb25FeHByZXNzaW9uOmV4aXQnOiBkZWNyZW1lbnRMZXZlbCxcbiAgICAgICdBcnJvd0Z1bmN0aW9uRXhwcmVzc2lvbjpleGl0JzogZGVjcmVtZW50TGV2ZWwsXG4gICAgICAnQmxvY2tTdGF0ZW1lbnQ6ZXhpdCc6IGRlY3JlbWVudExldmVsLFxuICAgICAgJ09iamVjdEV4cHJlc3Npb246ZXhpdCc6IGRlY3JlbWVudExldmVsLFxuICAgICAgJ0RlY29yYXRvcjpleGl0JzogZGVjcmVtZW50TGV2ZWwsXG4gICAgfTtcbiAgfSxcbn07XG4iXX0= \ No newline at end of file +//# sourceMappingURL=data:application/json;charset=utf-8;base64,eyJ2ZXJzaW9uIjozLCJzb3VyY2VzIjpbIi4uLy4uL3NyYy9ydWxlcy9uZXd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saW5lRGlmZmVyZW5jZSA8IEVYUEVDVEVEX0xJTkVfRElGRkVSRU5DRSkge1xuICAgICAgICBsZXQgY29sdW1uID0gbm9kZS5sb2Muc3RhcnQuY29sdW1uO1xuXG4gICAgICAgIGlmIChub2RlLmxvYy5zdGFydC5saW5lICE9PSBub2RlLmxvYy5lbmQubGluZSkge1xuICAgICAgICAgIGNvbHVtbiA9IDA7XG4gICAgICAgIH1cblxuICAgICAgICBjb250ZXh0LnJlcG9ydCh7XG4gICAgICAgICAgbG9jOiB7XG4gICAgICAgICAgICBsaW5lOiBub2RlLmxvYy5lbmQubGluZSxcbiAgICAgICAgICAgIGNvbHVtbixcbiAgICAgICAgICB9LFxuICAgICAgICAgIG1lc3NhZ2U6IGBFeHBlY3RlZCAke29wdGlvbnMuY291bnR9IGVtcHR5IGxpbmUke29wdGlvbnMuY291bnQgPiAxID8gJ3MnIDogJyd9IGFmdGVyIGltcG9ydCBzdGF0ZW1lbnQgbm90IGZvbGxvd2VkIGJ5IGFub3RoZXIgaW1wb3J0LmAsXG4gICAgICAgICAgZml4OiAoZml4ZXIpID0+IGZpeGVyLmluc2VydFRleHRBZnRlcihcbiAgICAgICAgICAgIG5vZGUsXG4gICAgICAgICAgICAnXFxuJy5yZXBlYXQoRVhQRUNURURfTElORV9ESUZGRVJFTkNFIC0gbGluZURpZmZlcmVuY2UpLFxuICAgICAgICAgICksXG4gICAgICAgIH0pO1xuICAgICAgfVxuICAgIH1cblxuICAgIGZ1bmN0aW9uIGluY3JlbWVudExldmVsKCkge1xuICAgICAgbGV2ZWwrKztcbiAgICB9XG4gICAgZnVuY3Rpb24gZGVjcmVtZW50TGV2ZWwoKSB7XG4gICAgICBsZXZlbC0tO1xuICAgIH1cblxuICAgIGZ1bmN0aW9uIGNoZWNrSW1wb3J0KG5vZGUpIHtcbiAgICAgIGNvbnN0IHsgcGFyZW50IH0gPSBub2RlO1xuXG4gICAgICBpZiAoIXBhcmVudCB8fCAhcGFyZW50LmJvZHkpIHtcbiAgICAgICAgcmV0dXJuO1xuICAgICAgfVxuXG4gICAgICBjb25zdCBub2RlUG9zaXRpb24gPSBwYXJlbnQuYm9keS5pbmRleE9mKG5vZGUpO1xuICAgICAgY29uc3QgbmV4dE5vZGUgPSBwYXJlbnQuYm9keVtub2RlUG9zaXRpb24gKyAxXTtcbiAgICAgIGNvbnN0IGVuZExpbmUgPSBub2RlLmxvYy5lbmQubGluZTtcbiAgICAgIGxldCBuZXh0Q29tbWVudDtcblxuICAgICAgaWYgKHR5cGVvZiBwYXJlbnQuY29tbWVudHMgIT09ICd1bmRlZmluZWQnICYmIG9wdGlvbnMuY29uc2lkZXJDb21tZW50cykge1xuICAgICAgICBuZXh0Q29tbWVudCA9IHBhcmVudC5jb21tZW50cy5maW5kKChvKSA9PiBvLmxvYy5zdGFydC5saW5lID09PSBlbmRMaW5lICsgMSk7XG4gICAgICB9XG5cbiAgICAgIC8vIHNraXAgXCJleHBvcnQgaW1wb3J0XCJzXG4gICAgICBpZiAobm9kZS50eXBlID09PSAnVFNJbXBvcnRFcXVhbHNEZWNsYXJhdGlvbicgJiYgbm9kZS5pc0V4cG9ydCkge1xuICAgICAgICByZXR1cm47XG4gICAgICB9XG5cbiAgICAgIGlmIChuZXh0Q29tbWVudCAmJiB0eXBlb2YgbmV4dENvbW1lbnQgIT09ICd1bmRlZmluZWQnKSB7XG4gICAgICAgIGNvbW1lbnRBZnRlckltcG9ydChub2RlLCBuZXh0Q29tbWVudCk7XG4gICAgICB9IGVsc2UgaWYgKG5leHROb2RlICYmIG5leHROb2RlLnR5cGUgIT09ICdJbXBvcnREZWNsYXJhdGlvbicgJiYgKG5leHROb2RlLnR5cGUgIT09ICdUU0ltcG9ydEVxdWFsc0RlY2xhcmF0aW9uJyB8fCBuZXh0Tm9kZS5pc0V4cG9ydCkpIHtcbiAgICAgICAgY2hlY2tGb3JOZXdMaW5lKG5vZGUsIG5leHROb2RlLCAnaW1wb3J0Jyk7XG4gICAgICB9XG4gICAgfVxuX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Jlc3Npb246ZXhpdCc6IGRlY3JlbWVudExldmVsLFxuICAgICAgJ0Jsb2NrU3RhdGVtZW50OmV4aXQnOiBkZWNyZW1lbnRMZXZlbCxcbiAgICAgICdPYmplY3RFeHByZXNzaW9uOmV4aXQnOiBkZWNyZW1lbnRMZXZlbCxcbiAgICAgICdEZWNvcmF0b3I6ZXhpdCc6IGRlY3JlbWVudExldmVsLFxuICAgIH07XG4gIH0sXG59O1xuIl19 \ No newline at end of file diff --git a/node_modules/eslint-plugin-import/lib/rules/no-absolute-path.js b/node_modules/eslint-plugin-import/lib/rules/no-absolute-path.js index 9e030f384e..8662b061ca 100644 --- a/node_modules/eslint-plugin-import/lib/rules/no-absolute-path.js +++ b/node_modules/eslint-plugin-import/lib/rules/no-absolute-path.js @@ -26,7 +26,7 @@ module.exports = { // node.js and web imports work with posix style paths ("/") var relativePath = _path2['default'].posix.relative(_path2['default'].dirname(resolvedContext), source.value); if (!relativePath.startsWith('.')) { - relativePath = './' + relativePath; + relativePath = './' + String(relativePath); } return fixer.replaceText(source, JSON.stringify(relativePath)); }return fix;}() }); @@ -37,4 +37,4 @@ module.exports = { var options = Object.assign({ esmodule: true, commonjs: true }, context.options[0]); return (0, _moduleVisitor2['default'])(reportIfAbsolute, options); }return create;}() }; -//# sourceMappingURL=data:application/json;charset=utf-8;base64,eyJ2ZXJzaW9uIjozLCJzb3VyY2VzIjpbIi4uLy4uL3NyYy9ydWxlcy9uby1hYnNvbHV0ZS1wYXRoLmpzIl0sIm5hbWVzIjpbIm1vZHVsZSIsImV4cG9ydHMiLCJtZXRhIiwidHlwZSIsImRvY3MiLCJjYXRlZ29yeSIsImRlc2NyaXB0aW9uIiwidXJsIiwiZml4YWJsZSIsInNjaGVtYSIsImNyZWF0ZSIsImNvbnRleHQiLCJyZXBvcnRJZkFic29sdXRlIiwic291cmNlIiwidmFsdWUiLCJyZXBvcnQiLCJub2RlIiwibWVzc2FnZSIsImZpeCIsInJlc29sdmVkQ29udGV4dCIsImdld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2ZVBhdGgpKTtcbiAgICAgICAgICB9LFxuICAgICAgICB9KTtcbiAgICAgIH1cbiAgICB9XG5cbiAgICBjb25zdCBvcHRpb25zID0gT2JqZWN0LmFzc2lnbih7IGVzbW9kdWxlOiB0cnVlLCBjb21tb25qczogdHJ1ZSB9LCBjb250ZXh0Lm9wdGlvbnNbMF0pO1xuICAgIHJldHVybiBtb2R1bGVWaXNpdG9yKHJlcG9ydElmQWJzb2x1dGUsIG9wdGlvbnMpO1xuICB9LFxufTtcbiJdfQ== \ No newline at end of file +//# sourceMappingURL=data:application/json;charset=utf-8;base64,eyJ2ZXJzaW9uIjozLCJzb3VyY2VzIjpbIi4uLy4uL3NyYy9ydWxlcy9uby1hYnNvbHV0ZS1wYXRoLmpzIl0sIm5hbWVzIjpbIm1vZHVsZSIsImV4cG9ydHMiLCJtZXRhIiwidHlwZSIsImRvY3MiLCJjYXRlZ29yeSIsImRlc2NyaXB0aW9uIiwidXJsIiwiZml4YWJsZSIsInNjaGVtYSIsImNyZWF0ZSIsImNvbnRleHQiLCJyZXBvcnRJZkFic29sdXRlIiwic291cmNlIiwidmFsdWUiLCJyZXBvcnQiLCJub2RlIiwibWVzc2FnZSIsImZpeCIsImZpeGVyIiwicmVzb2x2ZWRDb250ZXh0IiwiZ2V0UGh5c2ljYWxGaWxlbmFtZSIsImdldEZpbGVuYW1lIiwicmVsYXRpdmVQYXRoIiwicGF0aCIsInBvc2l4IiwicmVsYXRpdmUiLCJkaXJuYW1lIiwic3RhcnRzV2l0aCIsInJlcGxhY2VUZXh0IiwiSlNPTiIsInN0cmluZ2lmeSIsIm9wdGlvbnMiLCJlc21vZHVsZSIsImNvbW1vbmpzIl0sIm1hcHBpbmdzIjoiYUFBQSw0QjtBQUNBLGtFO0FBQ0E7QUFDQSxxQzs7QUFFQUEsT0FBT0MsT0FBUCxHQUFpQjtBQUNmQyxRQUFNO0FBQ0pDLFVBQU0sWUFERjtBQUVKQyxVQUFNO0FBQ0pDLGdCQUFVLGlC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gICAgICAgICAgICBjb25zdCByZXNvbHZlZENvbnRleHQgPSBjb250ZXh0LmdldFBoeXNpY2FsRmlsZW5hbWUgPyBjb250ZXh0LmdldFBoeXNpY2FsRmlsZW5hbWUoKSA6IGNvbnRleHQuZ2V0RmlsZW5hbWUoKTtcbiAgICAgICAgICAgIC8vIG5vZGUuanMgYW5kIHdlYiBpbXBvcnRzIHdvcmsgd2l0aCBwb3NpeCBzdHlsZSBwYXRocyAoXCIvXCIpXG4gICAgICAgICAgICBsZXQgcmVsYXRpdmVQYXRoID0gcGF0aC5wb3NpeC5yZWxhdGl2ZShwYXRoLmRpcm5hbWUocmVzb2x2ZWRDb250ZXh0KSwgc291cmNlLnZhbHVlKTtcbiAgICAgICAgICAgIGlmICghcmVsYXRpdmVQYXRoLnN0YXJ0c1dpdGgoJy4nKSkge1xuICAgICAgICAgICAgICByZWxhdGl2ZVBhdGggPSBgLi8ke3JlbGF0aXZlUGF0aH1gO1xuICAgICAgICAgICAgfVxuICAgICAgICAgICAgcmV0dXJuIGZpeGVyLnJlcGxhY2VUZXh0KHNvdXJjZSwgSlNPTi5zdHJpbmdpZnkocmVsYXRpdmVQYXRoKSk7XG4gICAgICAgICAgfSxcbiAgICAgICAgfSk7XG4gICAgICB9XG4gICAgfVxuXG4gICAgY29uc3Qgb3B0aW9ucyA9IHsgZXNtb2R1bGU6IHRydWUsIGNvbW1vbmpzOiB0cnVlLCAuLi5jb250ZXh0Lm9wdGlvbnNbMF0gfTtcbiAgICByZXR1cm4gbW9kdWxlVmlzaXRvcihyZXBvcnRJZkFic29sdXRlLCBvcHRpb25zKTtcbiAgfSxcbn07XG4iXX0= \ No newline at end of file diff --git a/node_modules/eslint-plugin-import/lib/rules/no-amd.js b/node_modules/eslint-plugin-import/lib/rules/no-amd.js index 073394e3af..7ac108bf81 100644 --- a/node_modules/eslint-plugin-import/lib/rules/no-amd.js +++ b/node_modules/eslint-plugin-import/lib/rules/no-amd.js @@ -22,18 +22,17 @@ module.exports = { create: function () {function create(context) { return { - 'CallExpression': function () {function CallExpression(node) { - if (context.getScope().type !== 'module') return; + CallExpression: function () {function CallExpression(node) { + if (context.getScope().type !== 'module') {return;} - if (node.callee.type !== 'Identifier') return; - if (node.callee.name !== 'require' && - node.callee.name !== 'define') return; + if (node.callee.type !== 'Identifier') {return;} + if (node.callee.name !== 'require' && node.callee.name !== 'define') {return;} // todo: capture define((require, module, exports) => {}) form? - if (node.arguments.length !== 2) return; + if (node.arguments.length !== 2) {return;} var modules = node.arguments[0]; - if (modules.type !== 'ArrayExpression') return; + if (modules.type !== 'ArrayExpression') {return;} // todo: check second arg type? (identifier or callback) @@ -45,4 +44,4 @@ module.exports = { * @fileoverview Rule to prefer imports to AMD * @author Jamund Ferguson */ -//# sourceMappingURL=data:application/json;charset=utf-8;base64,eyJ2ZXJzaW9uIjozLCJzb3VyY2VzIjpbIi4uLy4uL3NyYy9ydWxlcy9uby1hbWQuanMiXSwibmFtZXMiOlsibW9kdWxlIiwiZXhwb3J0cyIsIm1ldGEiLCJ0eXBlIiwiZG9jcyIsImNhdGVnb3J5IiwiZGVzY3JpcHRpb24iLCJ1cmwiLCJzY2hlbWEiLCJjcmVhdGUiLCJjb250ZXh0Iiwibm9kZSIsImdldFNjb3BlIiwiY2FsbGVlIiwibmFtZSIsImFyZ3VtZW50cyIsImxlbmd0aCIsIm1vZHVsZXMiLCJyZXBvcnQiXSwibWFwcGluZ3MiOiI7Ozs7O0FBS0EscUM7O0FBRUE7QUFDQTtBQUNBOztBQUVBQSxPQUFPQyxPQUFQLEdBQWlCO0FBQ2ZDLFFBQU07QUFDSkMsVUFBTSxZQURGO0FBRUpDLFVBQU07QUFDSkMsZ0JBQVUsZ0JBRE47QUFFSkMsbUJBQWEsMENBRlQ7QUFHSkMsV0FBSywwQkFBUSxRQUFSLENBSEQsRUFGRjs7QUFPSkMsWUFBUSxFQVBKLEVBRFM7OztBQVdmQyxRQVhlLCtCQVdSQyxPQVhRLEVBV0M7QUFDZCxhQUFPO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uXG4gICAgICAgIGNvbnRleHQucmVwb3J0KG5vZGUsIGBFeHBlY3RlZCBpbXBvcnRzIGluc3RlYWQgb2YgQU1EICR7bm9kZS5jYWxsZWUubmFtZX0oKS5gKTtcbiAgICAgIH0sXG4gICAgfTtcblxuICB9LFxufTtcbiJdfQ== \ No newline at end of file diff --git a/node_modules/eslint-plugin-import/lib/rules/no-anonymous-default-export.js b/node_modules/eslint-plugin-import/lib/rules/no-anonymous-default-export.js index 1755cb38db..ce901ecc16 100644 --- a/node_modules/eslint-plugin-import/lib/rules/no-anonymous-default-export.js +++ b/node_modules/eslint-plugin-import/lib/rules/no-anonymous-default-export.js @@ -3,11 +3,14 @@ -var _docsUrl = require('../docsUrl');var _docsUrl2 = _interopRequireDefault(_docsUrl); -var _has = require('has');var _has2 = _interopRequireDefault(_has);function _interopRequireDefault(obj) {return obj && obj.__esModule ? obj : { 'default': obj };} /** - * @fileoverview Rule to disallow anonymous default exports. - * @author Duncan Beevers - */var defs = { ArrayExpression: { +var _has = require('has');var _has2 = _interopRequireDefault(_has); +var _object = require('object.values');var _object2 = _interopRequireDefault(_object); +var _object3 = require('object.fromentries');var _object4 = _interopRequireDefault(_object3); + +var _docsUrl = require('../docsUrl');var _docsUrl2 = _interopRequireDefault(_docsUrl);function _interopRequireDefault(obj) {return obj && obj.__esModule ? obj : { 'default': obj };} /** + * @fileoverview Rule to disallow anonymous default exports. + * @author Duncan Beevers + */var defs = { ArrayExpression: { option: 'allowArray', description: 'If `false`, will report default export of an array', message: 'Assign array to a variable before exporting as module default' }, @@ -57,23 +60,12 @@ var _has = require('has');var _has2 = _interopRequireDefault(_has);function _int -var schemaProperties = Object.keys(defs). -map(function (key) {return defs[key];}). -reduce(function (acc, def) { - acc[def.option] = { +var schemaProperties = (0, _object4['default'])((0, _object2['default'])(defs).map(function (def) {return [def.option, { description: def.description, - type: 'boolean' }; + type: 'boolean' }];})); - return acc; -}, {}); - -var defaults = Object.keys(defs). -map(function (key) {return defs[key];}). -reduce(function (acc, def) { - acc[def.option] = (0, _has2['default'])(def, 'default') ? def['default'] : false; - return acc; -}, {}); +var defaults = (0, _object4['default'])((0, _object2['default'])(defs).map(function (def) {return [def.option, (0, _has2['default'])(def, 'default') ? def['default'] : false];})); module.exports = { meta: { @@ -88,7 +80,7 @@ module.exports = { { type: 'object', properties: schemaProperties, - 'additionalProperties': false }] }, + additionalProperties: false }] }, @@ -97,7 +89,7 @@ module.exports = { var options = Object.assign({}, defaults, context.options[0]); return { - 'ExportDefaultDeclaration': function () {function ExportDefaultDeclaration(node) { + ExportDefaultDeclaration: function () {function ExportDefaultDeclaration(node) { var def = defs[node.declaration.type]; // Recognized node type and allowed by configuration, @@ -108,4 +100,4 @@ module.exports = { }return ExportDefaultDeclaration;}() }; }return create;}() }; -//# sourceMappingURL=data:application/json;charset=utf-8;base64,eyJ2ZXJzaW9uIjozLCJzb3VyY2VzIjpbIi4uLy4uL3NyYy9ydWxlcy9uby1hbm9ueW1vdXMtZGVmYXVsdC1leHBvcnQuanMiXSwibmFtZXMiOlsiZGVmcyIsIkFycmF5RXhwcmVzc2lvbiIsIm9wdGlvbiIsImRlc2NyaXB0aW9uIiwibWVzc2FnZSIsIkFycm93RnVuY3Rpb25FeHByZXNzaW9uIiwiQ2FsbEV4cHJlc3Npb24iLCJDbGFzc0RlY2xhcmF0aW9uIiwiZm9yYmlkIiwibm9kZSIsImRlY2xhcmF0aW9uIiwiaWQiLCJGdW5jdGlvbkRlY2xhcmF0aW9uIiwiTGl0ZXJhbCIsIk9iamVjdEV4cHJlc3Npb24iLCJUZW1wbGF0ZUxpdGVyYWwiLCJOZXdFeHByZXNzaW9uIiwic2NoZW1hUHJvcGVydGllcyIsIk9iamVjdCIsImtleXMiLCJtYXAiLCJrZXkiLCJyZWR1Y2UiLCJhY2MiLCJkZWYiLCJ0eXBlIiwiZGVmYXVsdHMiLCJtb2R1bGUiLCJleHBvcnRzIiwibWV0YSIsImRvY3MiLCJjYXRlZ29yeSIsInVybCIsInN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IGZvcmJpZCBjaGVjaywgb3IgZm9yYmlkIGNoZWNrIHJldHVybiB2YWx1ZSBpcyB0cnV0aHlcbiAgICAgICAgaWYgKGRlZiAmJiAhb3B0aW9uc1tkZWYub3B0aW9uXSAmJiAoIWRlZi5mb3JiaWQgfHwgZGVmLmZvcmJpZChub2RlKSkpIHtcbiAgICAgICAgICBjb250ZXh0LnJlcG9ydCh7IG5vZGUsIG1lc3NhZ2U6IGRlZi5tZXNzYWdlIH0pO1xuICAgICAgICB9XG4gICAgICB9LFxuICAgIH07XG4gIH0sXG59O1xuIl19 \ No newline at end of file +//# sourceMappingURL=data:application/json;charset=utf-8;base64,eyJ2ZXJzaW9uIjozLCJzb3VyY2VzIjpbIi4uLy4uL3NyYy9ydWxlcy9uby1hbm9ueW1vdXMtZGVmYXVsdC1leHBvcnQuanMiXSwibmFtZXMiOlsiZGVmcyIsIkFycmF5RXhwcmVzc2lvbiIsIm9wdGlvbiIsImRlc2NyaXB0aW9uIiwibWVzc2FnZSIsIkFycm93RnVuY3Rpb25FeHByZXNzaW9uIiwiQ2FsbEV4cHJlc3Npb24iLCJDbGFzc0RlY2xhcmF0aW9uIiwiZm9yYmlkIiwibm9kZSIsImRlY2xhcmF0aW9uIiwiaWQiLCJGdW5jdGlvbkRlY2xhcmF0aW9uIiwiTGl0ZXJhbCIsIk9iamVjdEV4cHJlc3Npb24iLCJUZW1wbGF0ZUxpdGVyYWwiLCJOZXdFeHByZXNzaW9uIiwic2NoZW1hUHJvcGVydGllcyIsIm1hcCIsImRlZiIsInR5cGUiLCJkZWZhdWx0cyIsIm1vZHVsZSIsImV4cG9ydHMiLCJtZXRhIiwiZG9jcyIsImNhdGVnb3J5IiwidXJsIiwic2NoZW1hIiwicHJvcGVydGllcyIsImFkZGl0aW9uYWxQcm9wZXJ0aWVzIiwiY3JlYXRlIiwiY29udGV4dCIsIm9wdGlvbnMiLCJFeHBvcnREZWZhdWx0RGVjbGFyYXRpb24iLCJyZXBvcnQiXSwibWFwc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7XG4gICAgICAgIHR5cGU6ICdvYmplY3QnLFxuICAgICAgICBwcm9wZXJ0aWVzOiBzY2hlbWFQcm9wZXJ0aWVzLFxuICAgICAgICBhZGRpdGlvbmFsUHJvcGVydGllczogZmFsc2UsXG4gICAgICB9LFxuICAgIF0sXG4gIH0sXG5cbiAgY3JlYXRlKGNvbnRleHQpIHtcbiAgICBjb25zdCBvcHRpb25zID0geyAuLi5kZWZhdWx0cywgLi4uY29udGV4dC5vcHRpb25zWzBdIH07XG5cbiAgICByZXR1cm4ge1xuICAgICAgRXhwb3J0RGVmYXVsdERlY2xhcmF0aW9uKG5vZGUpIHtcbiAgICAgICAgY29uc3QgZGVmID0gZGVmc1tub2RlLmRlY2xhcmF0aW9uLnR5cGVdO1xuXG4gICAgICAgIC8vIFJlY29nbml6ZWQgbm9kZSB0eXBlIGFuZCBhbGxvd2VkIGJ5IGNvbmZpZ3VyYXRpb24sXG4gICAgICAgIC8vICAgYW5kIGhhcyBubyBmb3JiaWQgY2hlY2ssIG9yIGZvcmJpZCBjaGVjayByZXR1cm4gdmFsdWUgaXMgdHJ1dGh5XG4gICAgICAgIGlmIChkZWYgJiYgIW9wdGlvbnNbZGVmLm9wdGlvbl0gJiYgKCFkZWYuZm9yYmlkIHx8IGRlZi5mb3JiaWQobm9kZSkpKSB7XG4gICAgICAgICAgY29udGV4dC5yZXBvcnQoeyBub2RlLCBtZXNzYWdlOiBkZWYubWVzc2FnZSB9KTtcbiAgICAgICAgfVxuICAgICAgfSxcbiAgICB9O1xuICB9LFxufTtcbiJdfQ== \ No newline at end of file diff --git a/node_modules/eslint-plugin-import/lib/rules/no-commonjs.js b/node_modules/eslint-plugin-import/lib/rules/no-commonjs.js index 6cb4a5d838..befeff0026 100644 --- a/node_modules/eslint-plugin-import/lib/rules/no-commonjs.js +++ b/node_modules/eslint-plugin-import/lib/rules/no-commonjs.js @@ -16,8 +16,8 @@ var EXPORT_MESSAGE = 'Expected "export" or "export default"'; /** } function allowPrimitive(node, options) { - if (!options.allowPrimitiveModules) return false; - if (node.parent.type !== 'AssignmentExpression') return false; + if (!options.allowPrimitiveModules) {return false;} + if (node.parent.type !== 'AssignmentExpression') {return false;} return node.parent.right.type !== 'ObjectExpression'; } @@ -40,8 +40,10 @@ function isConditional(node) { node.type === 'TryStatement' || node.type === 'LogicalExpression' || node.type === 'ConditionalExpression') - return true; - if (node.parent) return isConditional(node.parent); + { + return true; + } + if (node.parent) {return isConditional(node.parent);} return false; } @@ -58,9 +60,9 @@ var schemaString = { 'enum': ['allow-primitive-modules'] }; var schemaObject = { type: 'object', properties: { - allowPrimitiveModules: { 'type': 'boolean' }, - allowRequire: { 'type': 'boolean' }, - allowConditionalRequire: { 'type': 'boolean' } }, + allowPrimitiveModules: { type: 'boolean' }, + allowRequire: { type: 'boolean' }, + allowConditionalRequire: { type: 'boolean' } }, additionalProperties: false }; @@ -95,11 +97,11 @@ module.exports = { return { - 'MemberExpression': function () {function MemberExpression(node) { + MemberExpression: function () {function MemberExpression(node) { // module.exports if (node.object.name === 'module' && node.property.name === 'exports') { - if (allowPrimitive(node, options)) return; + if (allowPrimitive(node, options)) {return;} context.report({ node: node, message: EXPORT_MESSAGE }); } @@ -114,18 +116,18 @@ module.exports = { } }return MemberExpression;}(), - 'CallExpression': function () {function CallExpression(call) { - if (!validateScope(context.getScope())) return; + CallExpression: function () {function CallExpression(call) { + if (!validateScope(context.getScope())) {return;} - if (call.callee.type !== 'Identifier') return; - if (call.callee.name !== 'require') return; + if (call.callee.type !== 'Identifier') {return;} + if (call.callee.name !== 'require') {return;} - if (call.arguments.length !== 1) return; - if (!isLiteralString(call.arguments[0])) return; + if (call.arguments.length !== 1) {return;} + if (!isLiteralString(call.arguments[0])) {return;} - if (allowRequire(call, options)) return; + if (allowRequire(call, options)) {return;} - if (allowConditionalRequire(call, options) && isConditional(call.parent)) return; + if (allowConditionalRequire(call, options) && isConditional(call.parent)) {return;} // keeping it simple: all 1-string-arg `require` calls are reported context.report({ @@ -136,4 +138,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IGlmIChhbGxvd1JlcXVpcmUoY2FsbCwgb3B0aW9ucykpIHJldHVybjtcblxuICAgICAgICBpZiAoYWxsb3dDb25kaXRpb25hbFJlcXVpcmUoY2FsbCwgb3B0aW9ucykgJiYgaXNDb25kaXRpb25hbChjYWxsLnBhcmVudCkpIHJldHVybjtcblxuICAgICAgICAvLyBrZWVwaW5nIGl0IHNpbXBsZTogYWxsIDEtc3RyaW5nLWFyZyBgcmVxdWlyZWAgY2FsbHMgYXJlIHJlcG9ydGVkXG4gICAgICAgIGNvbnRleHQucmVwb3J0KHtcbiAgICAgICAgICBub2RlOiBjYWxsLmNhbGxlZSxcbiAgICAgICAgICBtZXNzYWdlOiBJTVBPUlRfTUVTU0FHRSxcbiAgICAgICAgfSk7XG4gICAgICB9LFxuICAgIH07XG5cbiAgfSxcbn07XG4iXX0= \ No newline at end of file +//# sourceMappingURL=data:application/json;charset=utf-8;base64,eyJ2ZXJzaW9uIjozLCJzb3VyY2VzIjpbIi4uLy4uL3NyYy9ydWxlcy9uby1jb21tb25qcy5qcyJdLCJuYW1lcyI6WyJFWFBPUlRfTUVTU0FHRSIsIklNUE9SVF9NRVNTQUdFIiwibm9ybWFsaXplTGVnYWN5T3B0aW9ucyIsIm9wdGlvbnMiLCJpbmRleE9mIiwiYWxsb3dQcmltaXRpdmVNb2R1bGVzIiwiYWxsb3dQcmltaXRpdmUiLCJub2RlIiwicGFyZW50IiwidHlwZSIsInJpZ2h0IiwiYWxsb3dSZXF1aXJlIiwiYWxsb3dDb25kaXRpb25hbFJlcXVpcmUiLCJ2YWxpZGF0ZVNjb3BlIiwic2NvcGUiLCJ2YXJpYWJsZVNjb3BlIiwiaXNDb25kaXRpb25hbCIsImlzTGl0ZXJhbFN0cmluZyIsInZhbHVlIiwiZXhwcmVzc2lvbnMiLCJsZW5ndGgiLCJzY2hlbWFTdHJpbmciLCJzY2hlbWFPYmplY3QiLCJwcm9wZXJ0aWVzIiwiYWRkaXRpb25hbFByb3BlcnRpZXMiL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G9yIGBleHBvcnRzLipgLicsXG4gICAgICB1cmw6IGRvY3NVcmwoJ25vLWNvbW1vbmpzJyksXG4gICAgfSxcblxuICAgIHNjaGVtYToge1xuICAgICAgYW55T2Y6IFtcbiAgICAgICAge1xuICAgICAgICAgIHR5cGU6ICdhcnJheScsXG4gICAgICAgICAgaXRlbXM6IFtzY2hlbWFTdHJpbmddLFxuICAgICAgICAgIGFkZGl0aW9uYWxJdGVtczogZmFsc2UsXG4gICAgICAgIH0sXG4gICAgICAgIHtcbiAgICAgICAgICB0eXBlOiAnYXJyYXknLFxuICAgICAgICAgIGl0ZW1zOiBbc2NoZW1hT2JqZWN0XSxcbiAgICAgICAgICBhZGRpdGlvbmFsSXRlbXM6IGZhbHNlLFxuICAgICAgICB9LFxuICAgICAgXSxcbiAgICB9LFxuICB9LFxuXG4gIGNyZWF0ZShjb250ZXh0KSB7XG4gICAgY29uc3Qgb3B0aW9ucyA9IG5vcm1hbGl6ZUxlZ2FjeU9wdGlvbnMoY29udGV4dC5vcHRpb25zKTtcblxuICAgIHJldHVybiB7XG5cbiAgICAgIE1lbWJlckV4cHJlc3Npb24obm9kZSkge1xuXG4gICAgICAgIC8vIG1vZHVsZS5leHBvcnRzXG4gICAgICAgIGlmIChub2RlLm9iamVjdC5uYW1lID09PSAnbW9kdWxlJyAmJiBub2RlLnByb3BlcnR5Lm5hbWUgPT09ICdleHBvcnRzJykge1xuICAgICAgICAgIGlmIChhbGxvd1ByaW1pdGl2ZShub2RlLCBvcHRpb25zKSkgeyByZXR1cm47IH1cbiAgICAgICAgICBjb250ZXh0LnJlcG9ydCh7IG5vZGUsIG1lc3NhZ2U6IEVYUE9SVF9NRVNTQUdFIH0pO1xuICAgICAgICB9XG5cbiAgICAgICAgLy8gZXhwb3J0cy5cbiAgICAgICAgaWYgKG5vZGUub2JqZWN0Lm5hbWUgPT09ICdleHBvcnRzJykge1xuICAgICAgICAgIGNvbnN0IGlzSW5TY29wZSA9IGNvbnRleHQuZ2V0U2Nv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biAgICAgICAgICBtZXNzYWdlOiBJTVBPUlRfTUVTU0FHRSxcbiAgICAgICAgfSk7XG4gICAgICB9LFxuICAgIH07XG5cbiAgfSxcbn07XG4iXX0= \ No newline at end of file diff --git a/node_modules/eslint-plugin-import/lib/rules/no-cycle.js b/node_modules/eslint-plugin-import/lib/rules/no-cycle.js index bf8cef5dac..c728eafed7 100644 --- a/node_modules/eslint-plugin-import/lib/rules/no-cycle.js +++ b/node_modules/eslint-plugin-import/lib/rules/no-cycle.js @@ -48,7 +48,7 @@ module.exports = { create: function () {function create(context) { var myPath = context.getPhysicalFilename ? context.getPhysicalFilename() : context.getFilename(); - if (myPath === '') return {}; // can't cycle-check a non-file + if (myPath === '') {return {};} // can't cycle-check a non-file var options = context.options[0] || {}; var maxDepth = typeof options.maxDepth === 'number' ? options.maxDepth : Infinity; @@ -62,20 +62,23 @@ module.exports = { if (ignoreModule(sourceNode.value)) { return; // ignore external modules } - if (options.allowUnsafeDynamicCyclicDependency && ( + if ( + options.allowUnsafeDynamicCyclicDependency && ( // Ignore `import()` - importer.type === 'ImportExpression' || + importer.type === 'ImportExpression' // `require()` calls are always checked (if possible) - importer.type === 'CallExpression' && importer.callee.name !== 'require')) { + || importer.type === 'CallExpression' && importer.callee.name !== 'require')) + + { return; // cycle via dynamic import allowed by config } if ( importer.type === 'ImportDeclaration' && ( // import type { Foo } (TS and Flow) - importer.importKind === 'type' || + importer.importKind === 'type' // import { type Foo } (Flow) - importer.specifiers.every(function (_ref) {var importKind = _ref.importKind;return importKind === 'type';}))) + || importer.specifiers.every(function (_ref) {var importKind = _ref.importKind;return importKind === 'type';}))) { return; // ignore type imports @@ -94,34 +97,33 @@ module.exports = { var untraversed = [{ mget: function () {function mget() {return imported;}return mget;}(), route: [] }]; function detectCycle(_ref2) {var mget = _ref2.mget,route = _ref2.route; var m = mget(); - if (m == null) return; - if (traversed.has(m.path)) return; + if (m == null) {return;} + if (traversed.has(m.path)) {return;} traversed.add(m.path);var _iteratorNormalCompletion = true;var _didIteratorError = false;var _iteratorError = undefined;try { for (var _iterator = m.imports[Symbol.iterator](), _step; !(_iteratorNormalCompletion = (_step = _iterator.next()).done); _iteratorNormalCompletion = true) {var _ref3 = _step.value;var _ref4 = _slicedToArray(_ref3, 2);var path = _ref4[0];var _ref4$ = _ref4[1];var getter = _ref4$.getter;var declarations = _ref4$.declarations; - if (traversed.has(path)) continue; - var toTraverse = [].concat(_toConsumableArray(declarations)).filter(function (_ref5) {var source = _ref5.source,isOnlyImportingTypes = _ref5.isOnlyImportingTypes;return ( - !ignoreModule(source.value) && - // Ignore only type imports - !isOnlyImportingTypes);}); + if (traversed.has(path)) {continue;} + var toTraverse = [].concat(_toConsumableArray(declarations)).filter(function (_ref5) {var source = _ref5.source,isOnlyImportingTypes = _ref5.isOnlyImportingTypes;return !ignoreModule(source.value) + // Ignore only type imports + && !isOnlyImportingTypes;}); /* If cyclic dependency is allowed via dynamic import, skip checking if any module is imported dynamically */ - if (options.allowUnsafeDynamicCyclicDependency && toTraverse.some(function (d) {return d.dynamic;})) return; + if (options.allowUnsafeDynamicCyclicDependency && toTraverse.some(function (d) {return d.dynamic;})) {return;} /* - Only report as a cycle if there are any import declarations that are considered by - the rule. For example: - a.ts: - import { foo } from './b' // should not be reported as a cycle - b.ts: - import type { Bar } from './a' - */ + Only report as a cycle if there are any import declarations that are considered by + the rule. For example: + a.ts: + import { foo } from './b' // should not be reported as a cycle + b.ts: + import type { Bar } from './a' + */ - if (path === myPath && toTraverse.length > 0) return true; + if (path === myPath && toTraverse.length > 0) {return true;} if (route.length + 1 < maxDepth) {var _iteratorNormalCompletion2 = true;var _didIteratorError2 = false;var _iteratorError2 = undefined;try { for (var _iterator2 = toTraverse[Symbol.iterator](), _step2; !(_iteratorNormalCompletion2 = (_step2 = _iterator2.next()).done); _iteratorNormalCompletion2 = true) {var _ref6 = _step2.value;var source = _ref6.source; untraversed.push({ mget: getter, route: route.concat(source) }); @@ -153,4 +155,4 @@ module.exports = { function routeString(route) { return route.map(function (s) {return String(s.value) + ':' + String(s.loc.start.line);}).join('=>'); } -//# sourceMappingURL=data:application/json;charset=utf-8;base64,eyJ2ZXJzaW9uIjozLCJzb3VyY2VzIjpbIi4uLy4uL3NyYy9ydWxlcy9uby1jeWNsZS5qcyJdLCJuYW1lcyI6WyJ0cmF2ZXJzZWQiLCJTZXQiLCJtb2R1bGUiLCJleHBvcnRzIiwibWV0YSIsInR5cGUiLCJkb2NzIiwiY2F0ZWdvcnkiLCJkZXNjcmlwdGlvbiIsInVybCIsInNjaGVtYSIsIm1heERlcHRoIiwiYW55T2YiLCJtaW5pbXVtIiwiaWdub3JlRXh0ZXJuYWwiLCJhbGxvd1Vuc2FmZUR5bmFtaWNDeWNsaWNEZXBlbmRlbmN5IiwiY3JlYXRlIiwiY29udGV4dCIsIm15UGF0aCIsImdldFBoeXNpY2FsRmlsZW5hbWUiLCJnZXRGaWxlbmFtZSIsIm9wdGlvbnMiLCJJbmZpbml0eSIsImlnbm9yZU1vZHVsZSIsIm5hbWUiLCJjaGVja1NvdXJjZVZhbHVlIiwic291cmNlTm9kZSIsImltcG9ydGVyIiwidmFsdWUiLCJjYWxsZWUiLCJpbXBvcnRLaW5kIiwic3BlY2lmaWVycyIsImV2ZXJ5IiwiaW1wb3J0ZWQiLCJFeHBvcnRzIiwiZ2V0IiwicGF0aCIsInVudHJhdmVyc2VkIiwibWdldCIsInJvdXRlIiwiZGV0ZWN0Q3ljbGUiLCJtIiwiaGFzIiwiYWRkIiwiaW1wb3J0cyIsImdldHRlciIsImRlY2xhcmF0aW9ucyIsInRvVHJhdmVyc2UiLCJmaWx0ZXIiLCJzb3VyY2UiLCJpc09ubHlJbXBvcnRpbmdUeXBlcyIsInNvbWUiLCJkIiwiZHluYW1pYyIsImxlbmd0aCIsInB1c2giLCJjb25jYXQiLCJuZXh0Iiwic2hpZnQiLCJtZXNzYWdlIiwicm91dGVTdHJpbmciLCJyZXBvcnQiLCJPYmplY3QiLCJhc3NpZ24iLCJj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Sl9YFxuICAgICAgICAgICAgOiAnRGVwZW5kZW5jeSBjeWNsZSBkZXRlY3RlZC4nKTtcbiAgICAgICAgICBjb250ZXh0LnJlcG9ydChpbXBvcnRlciwgbWVzc2FnZSk7XG4gICAgICAgICAgcmV0dXJuO1xuICAgICAgICB9XG4gICAgICB9XG4gICAgfVxuXG4gICAgcmV0dXJuIE9iamVjdC5hc3NpZ24obW9kdWxlVmlzaXRvcihjaGVja1NvdXJjZVZhbHVlLCBjb250ZXh0Lm9wdGlvbnNbMF0pLCB7XG4gICAgICAnUHJvZ3JhbTpleGl0JzogKCkgPT4ge1xuICAgICAgICB0cmF2ZXJzZWQuY2xlYXIoKTtcbiAgICAgIH0sXG4gICAgfSk7XG4gIH0sXG59O1xuXG5mdW5jdGlvbiByb3V0ZVN0cmluZyhyb3V0ZSkge1xuICByZXR1cm4gcm91dGUubWFwKHMgPT4gYCR7cy52YWx1ZX06JHtzLmxvYy5zdGFydC5saW5lfWApLmpvaW4oJz0+Jyk7XG59XG4iXX0= \ No newline at end of file +//# sourceMappingURL=data:application/json;charset=utf-8;base64,eyJ2ZXJzaW9uIjozLCJzb3VyY2VzIjpbIi4uLy4uL3NyYy9ydWxlcy9uby1jeWNsZS5qcyJdLCJuYW1lcyI6WyJ0cmF2ZXJzZWQiLCJTZXQiLCJtb2R1bGUiLCJleHBvcnRzIiwibWV0YSIsInR5cGUiLCJkb2NzIiwiY2F0ZWdvcnkiLCJkZXNjcmlwdGlvbiIsInVybCIsInNjaGVtYSIsIm1heERlcHRoIiwiYW55T2YiLCJtaW5pbXVtIiwiaWdub3JlRXh0ZXJuYWwiLCJhbGxvd1Vuc2FmZUR5bmFtaWNDeWNsaWNEZXBlbmRlbmN5IiwiY3JlYXRlIiwiY29udGV4dCIsIm15UGF0aCIsImdldFBoeXNpY2FsRmlsZW5hbWUiLCJnZXRGaWxlbmFtZSIsIm9wdGlvbnMiLCJJbmZpbml0eSIsImlnbm9yZU1vZHVsZSIsIm5hbWUiLCJj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N0aW9uIHJvdXRlU3RyaW5nKHJvdXRlKSB7XG4gIHJldHVybiByb3V0ZS5tYXAoKHMpID0+IGAke3MudmFsdWV9OiR7cy5sb2Muc3RhcnQubGluZX1gKS5qb2luKCc9PicpO1xufVxuIl19 \ No newline at end of file diff --git a/node_modules/eslint-plugin-import/lib/rules/no-default-export.js b/node_modules/eslint-plugin-import/lib/rules/no-default-export.js index 3bad59185a..221a956e9d 100644 --- a/node_modules/eslint-plugin-import/lib/rules/no-default-export.js +++ b/node_modules/eslint-plugin-import/lib/rules/no-default-export.js @@ -27,7 +27,9 @@ module.exports = { }return ExportDefaultDeclaration;}(), ExportNamedDeclaration: function () {function ExportNamedDeclaration(node) { - node.specifiers.filter(function (specifier) {return (specifier.exported.name || specifier.exported.value) === 'default';}).forEach(function (specifier) {var _ref3 = + node.specifiers. + filter(function (specifier) {return (specifier.exported.name || specifier.exported.value) === 'default';}). + forEach(function (specifier) {var _ref3 = context.getSourceCode().getFirstTokens(node)[1] || {},loc = _ref3.loc; if (specifier.type === 'ExportDefaultSpecifier') { context.report({ node: node, message: preferNamed, loc: loc }); @@ -38,4 +40,4 @@ module.exports = { }return ExportNamedDeclaration;}() }; }return create;}() }; -//# sourceMappingURL=data:application/json;charset=utf-8;base64,eyJ2ZXJzaW9uIjozLCJzb3VyY2VzIjpbIi4uLy4uL3NyYy9ydWxlcy9uby1kZWZhdWx0LWV4cG9ydC5qcyJdLCJuYW1lcyI6WyJtb2R1bGUiLCJleHBvcnRzIiwibWV0YSIsInR5cGUiLCJkb2NzIiwiY2F0ZWdvcnkiLCJkZXNjcmlwdGlvbiIsInVybCIsInNjaGVtYSIsImNyZWF0ZSIsImNvbnRleHQiLCJwYXJzZXJPcHRpb25zIiwic291cmNlVHlwZSIsInByZWZlck5hbWVkIiwibm9BbGlhc0RlZmF1bHQiLCJsb2NhbCIsIm5hbWUiLCJFeHBvcnREZWZhdWx0RGVjbGFyYXRpb24iLCJub2RlIiwiZ2V0U291cmNlQ29kZS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V0U291cmNlQ29kZSgpLmdldEZpcnN0VG9rZW5zKG5vZGUpWzFdIHx8IHt9O1xuICAgICAgICAgIGlmIChzcGVjaWZpZXIudHlwZSA9PT0gJ0V4cG9ydERlZmF1bHRTcGVjaWZpZXInKSB7XG4gICAgICAgICAgICBjb250ZXh0LnJlcG9ydCh7IG5vZGUsIG1lc3NhZ2U6IHByZWZlck5hbWVkLCBsb2MgfSk7XG4gICAgICAgICAgfSBlbHNlIGlmIChzcGVjaWZpZXIudHlwZSA9PT0gJ0V4cG9ydFNwZWNpZmllcicpIHtcbiAgICAgICAgICAgIGNvbnRleHQucmVwb3J0KHsgbm9kZSwgbWVzc2FnZTogbm9BbGlhc0RlZmF1bHQoc3BlY2lmaWVyKSwgbG9jICB9KTtcbiAgICAgICAgICB9XG4gICAgICAgIH0pO1xuICAgICAgfSxcbiAgICB9O1xuICB9LFxufTtcbiJdfQ== \ No newline at end of file +//# sourceMappingURL=data:application/json;charset=utf-8;base64,eyJ2ZXJzaW9uIjozLCJzb3VyY2VzIjpbIi4uLy4uL3NyYy9ydWxlcy9uby1kZWZhdWx0LWV4cG9ydC5qcyJdLCJuYW1lcyI6WyJtb2R1bGUiLCJleHBvcnRzIiwibWV0YSIsInR5cGUiLCJkb2NzIiwiY2F0ZWdvcnkiLCJkZXNjcmlwdGlvbiIsInVybCIsInNjaGVtYSIsImNyZWF0ZSIsImNvbnRleHQiLCJwYXJzZXJPcHRpb25zIiwic291cmNlVHlwZSIsInByZWZlck5hbWVkIiwibm9BbGlhc0RlZmF1bHQiLCJsb2NhbCIsIm5hbWUiLCJFeHBvcnREZWZhdWx0RGVjbGFyYXRpb24iLCJub2RlIiwiZ2V0U291cmNlQ29kZSIsImdldEZpcnN0VG9rZW5zIiwibG9jIiwicmVwb3J0IiwibWVzc2FnZSIsIkV4cG9ydE5hbWVkRGVjbGFyYXRpb24iLCJzcGVjaWZpZXJzIiwiZmlsdGVyIiwic3BlY2lmaWVyIiwiZXhwb3J0ZWQiLCJ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dFeHBvcnREZWZhdWx0U3BlY2lmaWVyJykge1xuICAgICAgICAgICAgICBjb250ZXh0LnJlcG9ydCh7IG5vZGUsIG1lc3NhZ2U6IHByZWZlck5hbWVkLCBsb2MgfSk7XG4gICAgICAgICAgICB9IGVsc2UgaWYgKHNwZWNpZmllci50eXBlID09PSAnRXhwb3J0U3BlY2lmaWVyJykge1xuICAgICAgICAgICAgICBjb250ZXh0LnJlcG9ydCh7IG5vZGUsIG1lc3NhZ2U6IG5vQWxpYXNEZWZhdWx0KHNwZWNpZmllciksIGxvYyAgfSk7XG4gICAgICAgICAgICB9XG4gICAgICAgICAgfSk7XG4gICAgICB9LFxuICAgIH07XG4gIH0sXG59O1xuIl19 \ No newline at end of file diff --git a/node_modules/eslint-plugin-import/lib/rules/no-deprecated.js b/node_modules/eslint-plugin-import/lib/rules/no-deprecated.js index 0f4f682482..3aea5b5ca0 100644 --- a/node_modules/eslint-plugin-import/lib/rules/no-deprecated.js +++ b/node_modules/eslint-plugin-import/lib/rules/no-deprecated.js @@ -3,11 +3,11 @@ var _ExportMap = require('../ExportMap');var _ExportMap2 = _interopRequireDefaul var _docsUrl = require('../docsUrl');var _docsUrl2 = _interopRequireDefault(_docsUrl);function _interopRequireDefault(obj) {return obj && obj.__esModule ? obj : { 'default': obj };} function message(deprecation) { - return 'Deprecated' + (deprecation.description ? ': ' + deprecation.description : '.'); + return 'Deprecated' + (deprecation.description ? ': ' + String(deprecation.description) : '.'); } function getDeprecation(metadata) { - if (!metadata || !metadata.doc) return; + if (!metadata || !metadata.doc) {return;} return metadata.doc.tags.find(function (t) {return t.title === 'deprecated';}); } @@ -28,11 +28,11 @@ module.exports = { var namespaces = new Map(); function checkSpecifiers(node) { - if (node.type !== 'ImportDeclaration') return; - if (node.source == null) return; // local export, ignore + if (node.type !== 'ImportDeclaration') {return;} + if (node.source == null) {return;} // local export, ignore var imports = _ExportMap2['default'].get(node.source.value, context); - if (imports == null) return; + if (imports == null) {return;} var moduleDeprecation = imports.doc && imports.doc.tags.find(function (t) {return t.title === 'deprecated';}); if (moduleDeprecation) { @@ -48,9 +48,8 @@ module.exports = { var imported = void 0;var local = void 0; switch (im.type) { - case 'ImportNamespaceSpecifier':{ - if (!imports.size) return; + if (!imports.size) {return;} namespaces.set(im.local.name, imports); return; } @@ -70,13 +69,13 @@ module.exports = { // unknown thing can't be deprecated var exported = imports.get(imported); - if (exported == null) return; + if (exported == null) {return;} // capture import of deep namespace - if (exported.namespace) namespaces.set(local, exported.namespace); + if (exported.namespace) {namespaces.set(local, exported.namespace);} var deprecation = getDeprecation(imports.get(imported)); - if (!deprecation) return; + if (!deprecation) {return;} context.report({ node: im, message: message(deprecation) }); @@ -86,44 +85,42 @@ module.exports = { } return { - 'Program': function () {function Program(_ref) {var body = _ref.body;return body.forEach(checkSpecifiers);}return Program;}(), + Program: function () {function Program(_ref) {var body = _ref.body;return body.forEach(checkSpecifiers);}return Program;}(), - 'Identifier': function () {function Identifier(node) { + Identifier: function () {function Identifier(node) { if (node.parent.type === 'MemberExpression' && node.parent.property === node) { return; // handled by MemberExpression } // ignore specifier identifiers - if (node.parent.type.slice(0, 6) === 'Import') return; + if (node.parent.type.slice(0, 6) === 'Import') {return;} - if (!deprecated.has(node.name)) return; + if (!deprecated.has(node.name)) {return;} - if ((0, _declaredScope2['default'])(context, node.name) !== 'module') return; + if ((0, _declaredScope2['default'])(context, node.name) !== 'module') {return;} context.report({ node: node, message: message(deprecated.get(node.name)) }); }return Identifier;}(), - 'MemberExpression': function () {function MemberExpression(dereference) { - if (dereference.object.type !== 'Identifier') return; - if (!namespaces.has(dereference.object.name)) return; + MemberExpression: function () {function MemberExpression(dereference) { + if (dereference.object.type !== 'Identifier') {return;} + if (!namespaces.has(dereference.object.name)) {return;} - if ((0, _declaredScope2['default'])(context, dereference.object.name) !== 'module') return; + if ((0, _declaredScope2['default'])(context, dereference.object.name) !== 'module') {return;} // go deep var namespace = namespaces.get(dereference.object.name); var namepath = [dereference.object.name]; // while property is namespace and parent is member expression, keep validating - while (namespace instanceof _ExportMap2['default'] && - dereference.type === 'MemberExpression') { - + while (namespace instanceof _ExportMap2['default'] && dereference.type === 'MemberExpression') { // ignore computed parts for now - if (dereference.computed) return; + if (dereference.computed) {return;} var metadata = namespace.get(dereference.property.name); - if (!metadata) break; + if (!metadata) {break;} var deprecation = getDeprecation(metadata); if (deprecation) { @@ -138,4 +135,4 @@ module.exports = { }return MemberExpression;}() }; }return create;}() }; -//# sourceMappingURL=data:application/json;charset=utf-8;base64,eyJ2ZXJzaW9uIjozLCJzb3VyY2VzIjpbIi4uLy4uL3NyYy9ydWxlcy9uby1kZXByZWNhdGVkLmpzIl0sIm5hbWVzIjpbIm1lc3NhZ2UiLCJkZXByZWNhdGlvbiIsImRlc2NyaXB0aW9uIiwiZ2V0RGVwcmVjYXRpb24iLCJtZXRhZGF0YSIsImRvYyIsInRhZ3MiLCJmaW5kIiwidCIsInRpdGxlIiwibW9kdWxlIiwiZXhwb3J0cyIsIm1ldGEiLCJ0eXBlIiwiZG9jcyIsImNhdGVnb3J5IiwidXJsIiwic2NoZW1hIiwiY3JlYXRlIiwiY29udGV4dCIsImRlcHJlY2F0ZWQiLCJNYXAiLCJuYW1lc3BhY2VzIiwiY2hlY2tTcGVjaWZpZXJzIiwibm9kZSIsInNvdXJjZSIsImltcG9ydHMiLCJFeHBvcnRzIiwiZ2V0IiwidmFsdWUiLCJtb2R1bGVEZXByZWNhdGlvbiIsInJlcG9ydCIsImVycm9ycyIsImxlbmd0aCIsInJlcG9ydEVycm9ycyIsInNwZWNpZmllcnMiLCJmb3JFYWNoIiwiaW0iLCJpbXBvcnRlZCIsImxvY2FsIiwic2l6ZSIsInNldCIsIm5hbWUiLCJleHBvcnRlZCIsIm5hbWVzcGFjZSIsImJvZHkiLCJwYXJlbnQiLCJwcm9wZXJ0eSIsInNsaWNlIiwiaGFzIiwiZGVyZWZlcmVuY2UiLCJvYmplY3QiLCJuYW1lcGF0aCIsImNvbXB1dGVkIiwicHVza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blxuICAgICAgICAgIGNvbnN0IG1ldGFkYXRhID0gbmFtZXNwYWNlLmdldChkZXJlZmVyZW5jZS5wcm9wZXJ0eS5uYW1lKTtcblxuICAgICAgICAgIGlmICghbWV0YWRhdGEpIGJyZWFrO1xuICAgICAgICAgIGNvbnN0IGRlcHJlY2F0aW9uID0gZ2V0RGVwcmVjYXRpb24obWV0YWRhdGEpO1xuXG4gICAgICAgICAgaWYgKGRlcHJlY2F0aW9uKSB7XG4gICAgICAgICAgICBjb250ZXh0LnJlcG9ydCh7IG5vZGU6IGRlcmVmZXJlbmNlLnByb3BlcnR5LCBtZXNzYWdlOiBtZXNzYWdlKGRlcHJlY2F0aW9uKSB9KTtcbiAgICAgICAgICB9XG5cbiAgICAgICAgICAvLyBzdGFzaCBhbmQgcG9wXG4gICAgICAgICAgbmFtZXBhdGgucHVzaChkZXJlZmVyZW5jZS5wcm9wZXJ0eS5uYW1lKTtcbiAgICAgICAgICBuYW1lc3BhY2UgPSBtZXRhZGF0YS5uYW1lc3BhY2U7XG4gICAgICAgICAgZGVyZWZlcmVuY2UgPSBkZXJlZmVyZW5jZS5wYXJlbnQ7XG4gICAgICAgIH1cbiAgICAgIH0sXG4gICAgfTtcbiAgfSxcbn07XG4iXX0= \ No newline at end of file +//# sourceMappingURL=data:application/json;charset=utf-8;base64,eyJ2ZXJzaW9uIjozLCJzb3VyY2VzIjpbIi4uLy4uL3NyYy9ydWxlcy9uby1kZXByZWNhdGVkLmpzIl0sIm5hbWVzIjpbIm1lc3NhZ2UiLCJkZXByZWNhdGlvbiIsImRlc2NyaXB0aW9uIiwiZ2V0RGVwcmVjYXRpb24iLCJtZXRhZGF0YSIsImRvYyIsInRhZ3MiLCJmaW5kIiwidCIsInRpdGxlIiwibW9kdWxlIiwiZXhwb3J0cyIsIm1ldGEiLCJ0eXBlIiwiZG9jcyIsImNhdGVnb3J5IiwidXJsIiwic2NoZW1hIiwiY3JlYXRlIiwiY29udGV4dCIsImRlcHJlY2F0ZWQiLC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0eSwgbWVzc2FnZTogbWVzc2FnZShkZXByZWNhdGlvbikgfSk7XG4gICAgICAgICAgfVxuXG4gICAgICAgICAgLy8gc3Rhc2ggYW5kIHBvcFxuICAgICAgICAgIG5hbWVwYXRoLnB1c2goZGVyZWZlcmVuY2UucHJvcGVydHkubmFtZSk7XG4gICAgICAgICAgbmFtZXNwYWNlID0gbWV0YWRhdGEubmFtZXNwYWNlO1xuICAgICAgICAgIGRlcmVmZXJlbmNlID0gZGVyZWZlcmVuY2UucGFyZW50O1xuICAgICAgICB9XG4gICAgICB9LFxuICAgIH07XG4gIH0sXG59O1xuIl19 \ No newline at end of file diff --git a/node_modules/eslint-plugin-import/lib/rules/no-duplicates.js b/node_modules/eslint-plugin-import/lib/rules/no-duplicates.js index f9dc350c56..8b512d083b 100644 --- a/node_modules/eslint-plugin-import/lib/rules/no-duplicates.js +++ b/node_modules/eslint-plugin-import/lib/rules/no-duplicates.js @@ -1,6 +1,8 @@ 'use strict';var _slicedToArray = function () {function sliceIterator(arr, i) {var _arr = [];var _n = true;var _d = false;var _e = undefined;try {for (var _i = arr[Symbol.iterator](), _s; !(_n = (_s = _i.next()).done); _n = true) {_arr.push(_s.value);if (i && _arr.length === i) break;}} catch (err) {_d = true;_e = err;} finally {try {if (!_n && _i["return"]) _i["return"]();} finally {if (_d) throw _e;}}return _arr;}return function (arr, i) {if (Array.isArray(arr)) {return arr;} else if (Symbol.iterator in Object(arr)) {return sliceIterator(arr, i);} else {throw new TypeError("Invalid attempt to destructure non-iterable instance");}};}();var _resolve = require('eslint-module-utils/resolve');var _resolve2 = _interopRequireDefault(_resolve); -var _docsUrl = require('../docsUrl');var _docsUrl2 = _interopRequireDefault(_docsUrl); -var _semver = require('semver');var _semver2 = _interopRequireDefault(_semver);function _interopRequireDefault(obj) {return obj && obj.__esModule ? obj : { 'default': obj };}function _toConsumableArray(arr) {if (Array.isArray(arr)) {for (var i = 0, arr2 = Array(arr.length); i < arr.length; i++) {arr2[i] = arr[i];}return arr2;} else {return Array.from(arr);}}function _toArray(arr) {return Array.isArray(arr) ? arr : Array.from(arr);} +var _semver = require('semver');var _semver2 = _interopRequireDefault(_semver); +var _arrayPrototype = require('array.prototype.flatmap');var _arrayPrototype2 = _interopRequireDefault(_arrayPrototype); + +var _docsUrl = require('../docsUrl');var _docsUrl2 = _interopRequireDefault(_docsUrl);function _interopRequireDefault(obj) {return obj && obj.__esModule ? obj : { 'default': obj };}function _toArray(arr) {return Array.isArray(arr) ? arr : Array.from(arr);} var typescriptPkg = void 0; try { @@ -51,7 +53,7 @@ function getFix(first, rest, sourceCode, context) { } var defaultImportNames = new Set( - [first].concat(_toConsumableArray(rest)).map(getDefaultImportName).filter(Boolean)); + (0, _arrayPrototype2['default'])([].concat(first, rest || []), function (x) {return getDefaultImportName(x) || [];})); // Bail if there are multiple different default import names – it's up to the @@ -62,10 +64,7 @@ function getFix(first, rest, sourceCode, context) { // Leave it to the user to handle comments. Also skip `import * as ns from // './foo'` imports, since they cannot be merged into another import. - var restWithoutComments = rest.filter(function (node) {return !( - hasProblematicComments(node, sourceCode) || - hasNamespace(node));}); - + var restWithoutComments = rest.filter(function (node) {return !hasProblematicComments(node, sourceCode) && !hasNamespace(node);}); var specifiers = restWithoutComments. map(function (node) { @@ -79,17 +78,15 @@ function getFix(first, rest, sourceCode, context) { return { importNode: node, - text: sourceCode.text.slice(openBrace.range[1], closeBrace.range[0]), - hasTrailingComma: isPunctuator(sourceCode.getTokenBefore(closeBrace), ','), + identifiers: sourceCode.text.slice(openBrace.range[1], closeBrace.range[0]).split(','), // Split the text into separate identifiers (retaining any whitespace before or after) isEmpty: !hasSpecifiers(node) }; }). filter(Boolean); - var unnecessaryImports = restWithoutComments.filter(function (node) {return ( - !hasSpecifiers(node) && - !hasNamespace(node) && - !specifiers.some(function (specifier) {return specifier.importNode === node;}));}); + var unnecessaryImports = restWithoutComments.filter(function (node) {return !hasSpecifiers(node) && + !hasNamespace(node) && + !specifiers.some(function (specifier) {return specifier.importNode === node;});}); var shouldAddDefault = getDefaultImportName(first) == null && defaultImportNames.size === 1; @@ -107,13 +104,17 @@ function getFix(first, rest, sourceCode, context) { var firstToken = sourceCode.getFirstToken(first);var _defaultImportNames = _slicedToArray( defaultImportNames, 1),defaultImportName = _defaultImportNames[0]; - var firstHasTrailingComma = - closeBrace != null && - isPunctuator(sourceCode.getTokenBefore(closeBrace), ','); - var firstIsEmpty = !hasSpecifiers(first);var _specifiers$reduce = + var firstHasTrailingComma = closeBrace != null && isPunctuator(sourceCode.getTokenBefore(closeBrace), ','); + var firstIsEmpty = !hasSpecifiers(first); + var firstExistingIdentifiers = firstIsEmpty ? + new Set() : + new Set(sourceCode.text.slice(openBrace.range[1], closeBrace.range[0]). + split(','). + map(function (x) {return x.trim();}));var _specifiers$reduce = + specifiers.reduce( - function (_ref3, specifier) {var _ref4 = _slicedToArray(_ref3, 2),result = _ref4[0],needsComma = _ref4[1]; + function (_ref3, specifier) {var _ref4 = _slicedToArray(_ref3, 3),result = _ref4[0],needsComma = _ref4[1],existingIdentifiers = _ref4[2]; var isTypeSpecifier = specifier.importNode.importKind === 'type'; var preferInline = context.options[0] && context.options[0]['prefer-inline']; @@ -122,15 +123,25 @@ function getFix(first, rest, sourceCode, context) { throw new Error('Your version of TypeScript does not support inline type imports.'); } - var insertText = '' + (preferInline && isTypeSpecifier ? 'type ' : '') + String(specifier.text); + // Add *only* the new identifiers that don't already exist, and track any new identifiers so we don't add them again in the next loop + var _specifier$identifier = specifier.identifiers.reduce(function (_ref5, cur) {var _ref6 = _slicedToArray(_ref5, 2),text = _ref6[0],set = _ref6[1]; + var trimmed = cur.trim(); // Trim whitespace before/after to compare to our set of existing identifiers + var curWithType = trimmed.length > 0 && preferInline && isTypeSpecifier ? 'type ' + String(cur) : cur; + if (existingIdentifiers.has(trimmed)) { + return [text, set]; + } + return [text.length > 0 ? String(text) + ',' + String(curWithType) : curWithType, set.add(trimmed)]; + }, ['', existingIdentifiers]),_specifier$identifier2 = _slicedToArray(_specifier$identifier, 2),specifierText = _specifier$identifier2[0],updatedExistingIdentifiers = _specifier$identifier2[1]; + return [ - needsComma && !specifier.isEmpty ? String( - result) + ',' + insertText : '' + String( - result) + insertText, - specifier.isEmpty ? needsComma : true]; + needsComma && !specifier.isEmpty && specifierText.length > 0 ? String( + result) + ',' + String(specifierText) : '' + String( + result) + String(specifierText), + specifier.isEmpty ? needsComma : true, + updatedExistingIdentifiers]; }, - ['', !firstHasTrailingComma && !firstIsEmpty]),_specifiers$reduce2 = _slicedToArray(_specifiers$reduce, 1),specifiersText = _specifiers$reduce2[0]; + ['', !firstHasTrailingComma && !firstIsEmpty, firstExistingIdentifiers]),_specifiers$reduce2 = _slicedToArray(_specifiers$reduce, 1),specifiersText = _specifiers$reduce2[0]; var fixes = []; @@ -284,14 +295,14 @@ module.exports = { create: function () {function create(context) { // Prepare the resolver from options. var considerQueryStringOption = context.options[0] && - context.options[0]['considerQueryString']; + context.options[0].considerQueryString; var defaultResolver = function () {function defaultResolver(sourcePath) {return (0, _resolve2['default'])(sourcePath, context) || sourcePath;}return defaultResolver;}(); var resolver = considerQueryStringOption ? function (sourcePath) { var parts = sourcePath.match(/^([^?]*)\?(.*)$/); if (!parts) { return defaultResolver(sourcePath); } - return defaultResolver(parts[1]) + '?' + parts[2]; + return String(defaultResolver(parts[1])) + '?' + String(parts[2]); } : defaultResolver; var moduleMaps = new Map(); @@ -306,10 +317,11 @@ module.exports = { } var map = moduleMaps.get(n.parent); - if (n.importKind === 'type') { + var preferInline = context.options[0] && context.options[0]['prefer-inline']; + if (!preferInline && n.importKind === 'type') { return n.specifiers.length > 0 && n.specifiers[0].type === 'ImportDefaultSpecifier' ? map.defaultTypesImported : map.namedTypesImported; } - if (n.specifiers.some(function (spec) {return spec.importKind === 'type';})) { + if (!preferInline && n.specifiers.some(function (spec) {return spec.importKind === 'type';})) { return map.namedTypesImported; } @@ -339,4 +351,4 @@ module.exports = { }return ProgramExit;}() }; }return create;}() }; -//# sourceMappingURL=data:application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ICAgICB9XG4gICAgICB9LFxuXG4gICAgICAnUHJvZ3JhbTpleGl0JzogZnVuY3Rpb24gKCkge1xuICAgICAgICBmb3IgKGNvbnN0IG1hcCBvZiBtb2R1bGVNYXBzLnZhbHVlcygpKSB7XG4gICAgICAgICAgY2hlY2tJbXBvcnRzKG1hcC5pbXBvcnRlZCwgY29udGV4dCk7XG4gICAgICAgICAgY2hlY2tJbXBvcnRzKG1hcC5uc0ltcG9ydGVkLCBjb250ZXh0KTtcbiAgICAgICAgICBjaGVja0ltcG9ydHMobWFwLmRlZmF1bHRUeXBlc0ltcG9ydGVkLCBjb250ZXh0KTtcbiAgICAgICAgICBjaGVja0ltcG9ydHMobWFwLm5hbWVkVHlwZXNJbXBvcnRlZCwgY29udGV4dCk7XG4gICAgICAgIH1cbiAgICAgIH0sXG4gICAgfTtcbiAgfSxcbn07XG4iXX0= \ No newline at end of file +//# sourceMappingURL=data:application/json;charset=utf-8;base64,eyJ2ZXJzaW9uIjozLCJzb3VyY2VzIjpbIi4uLy4uL3NyYy9ydWxlcy9uby1kdXBsaWNhdGVzLmpzIl0sIm5hbWVzIjpbInR5cGVzY3JpcHRQa2ciLCJyZXF1aXJlIiwiZSIsImNoZWNrSW1wb3J0cyIsImltcG9ydGVkIiwiY29udGV4dCIsImVudHJpZXMiLCJtb2R1bGUiLCJub2RlcyIsImxlbmd0aCIsIm1lc3NhZ2UiLCJmaXJzdCIsInJlc3QiLCJzb3VyY2VDb2RlIiwiZ2V0U291cmNlQ29kZSIsImZpeCIsImdldEZpeCIsInJlcG9ydCIsIm5vZGUiLCJzb3VyY2UiLCJnZXRDb21tZW50c0JlZm9yZSIsInVuZGVmaW5lZCIsImhhc1Byb2JsZW1hdGljQ29tbWVudHMiLCJoYXNOYW1lc3BhY2UiLCJkZWZhdWx0SW1wb3J0TmFtZXMiLCJTZXQiLCJjb25jYXQiLCJ4IiwiZ2V0RGVmYXVsdEltcG9ydE5hbWUiLCJzaXplIiwicmVzdFdpdGhvdXRD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AgIEltcG9ydERlY2xhcmF0aW9uKG4pIHtcbiAgICAgICAgLy8gcmVzb2x2ZWQgcGF0aCB3aWxsIGNvdmVyIGFsaWFzZWQgZHVwbGljYXRlc1xuICAgICAgICBjb25zdCByZXNvbHZlZFBhdGggPSByZXNvbHZlcihuLnNvdXJjZS52YWx1ZSk7XG4gICAgICAgIGNvbnN0IGltcG9ydE1hcCA9IGdldEltcG9ydE1hcChuKTtcblxuICAgICAgICBpZiAoaW1wb3J0TWFwLmhhcyhyZXNvbHZlZFBhdGgpKSB7XG4gICAgICAgICAgaW1wb3J0TWFwLmdldChyZXNvbHZlZFBhdGgpLnB1c2gobik7XG4gICAgICAgIH0gZWxzZSB7XG4gICAgICAgICAgaW1wb3J0TWFwLnNldChyZXNvbHZlZFBhdGgsIFtuXSk7XG4gICAgICAgIH1cbiAgICAgIH0sXG5cbiAgICAgICdQcm9ncmFtOmV4aXQnKCkge1xuICAgICAgICBmb3IgKGNvbnN0IG1hcCBvZiBtb2R1bGVNYXBzLnZhbHVlcygpKSB7XG4gICAgICAgICAgY2hlY2tJbXBvcnRzKG1hcC5pbXBvcnRlZCwgY29udGV4dCk7XG4gICAgICAgICAgY2hlY2tJbXBvcnRzKG1hcC5uc0ltcG9ydGVkLCBjb250ZXh0KTtcbiAgICAgICAgICBjaGVja0ltcG9ydHMobWFwLmRlZmF1bHRUeXBlc0ltcG9ydGVkLCBjb250ZXh0KTtcbiAgICAgICAgICBjaGVja0ltcG9ydHMobWFwLm5hbWVkVHlwZXNJbXBvcnRlZCwgY29udGV4dCk7XG4gICAgICAgIH1cbiAgICAgIH0sXG4gICAgfTtcbiAgfSxcbn07XG4iXX0= \ No newline at end of file diff --git a/node_modules/eslint-plugin-import/lib/rules/no-dynamic-require.js b/node_modules/eslint-plugin-import/lib/rules/no-dynamic-require.js index 0fd98c0386..1e30975598 100644 --- a/node_modules/eslint-plugin-import/lib/rules/no-dynamic-require.js +++ b/node_modules/eslint-plugin-import/lib/rules/no-dynamic-require.js @@ -74,4 +74,4 @@ module.exports = { }return ImportExpression;}() }; }return create;}() }; -//# sourceMappingURL=data:application/json;charset=utf-8;base64,eyJ2ZXJzaW9uIjozLCJzb3VyY2VzIjpbIi4uLy4uL3NyYy9ydWxlcy9uby1keW5hbWljLXJlcXVpcmUuanMiXSwibmFtZXMiOlsiaXNSZXF1aXJlIiwibm9kZSIsImNhbGxlZSIsInR5cGUiLCJuYW1lIiwiYXJndW1lbnRzIiwibGVuZ3RoIiwiaXNEeW5hbWljSW1wb3J0IiwiaXNTdGF0aWNWYWx1ZSIsImFyZyIsImV4cHJlc3Npb25zIiwiZHluYW1pY0ltcG9ydEVycm9yTWVzc2FnZSIsIm1vZHVsZSIsImV4cG9ydHMiLCJtZXRhIiwiZG9jcyIsImNhdGVnb3J5IiwiZGVzY3JpcHRpb24iLCJ1cmwiLCJzY2hlbWEiLCJwcm9wZXJ0aWVzIiwiZXNtb2R1bGUiLCJhZGRpdGlvbmFsUHJvcGVydGllcyIsImNyZWF0ZSIsImNvbnRleHQiLCJvcHRpb25zIiwiQ2FsbEV4cHJlc3Npb24iLCJyZXBvcnQiLCJtZXNzYWdlIiwiSW1wb3J0RXhwcmVzc2lvbiIsInNvdXJjZSJdLCJtYXBwaW5ncyI6ImFBQUEscUM7O0FBRUEsU0FBU0EsU0FBVCxDQUFtQkMsSUFBbkIsRUFBeUI7QUFDdkIsU0FBT0E7QUFDTEEsT0FBS0MsTUFEQTtBQUVMRCxPQUFLQyxNQUFMLENBQVlDLElBQVosS0FBcUIsWUFGaEI7QUFHTEYsT0FBS0MsTUFBTCxDQUFZRSxJQUFaLEtBQXFCLFNBSGhCO0FBSUxILE9BQUtJLFNBQUwsQ0FBZUMsTUFBZixJQUF5QixDQUozQjtBQUtEOztBQUVELFNBQVNDLGVBQVQsQ0FBeUJOLElBQXpCLEVBQStCO0FBQzdCLFNBQU9BO0FBQ0xBLE9BQUtDLE1BREE7QUFFTEQsT0FBS0MsTUFBTCxDQUFZQyxJQUFa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ICAgICAgcmV0dXJuO1xuICAgICAgICB9XG4gICAgICAgIGlmIChpc1JlcXVpcmUobm9kZSkpIHtcbiAgICAgICAgICByZXR1cm4gY29udGV4dC5yZXBvcnQoe1xuICAgICAgICAgICAgbm9kZSxcbiAgICAgICAgICAgIG1lc3NhZ2U6ICdDYWxscyB0byByZXF1aXJlKCkgc2hvdWxkIHVzZSBzdHJpbmcgbGl0ZXJhbHMnLFxuICAgICAgICAgIH0pO1xuICAgICAgICB9XG4gICAgICAgIGlmIChvcHRpb25zLmVzbW9kdWxlICYmIGlzRHluYW1pY0ltcG9ydChub2RlKSkge1xuICAgICAgICAgIHJldHVybiBjb250ZXh0LnJlcG9ydCh7XG4gICAgICAgICAgICBub2RlLFxuICAgICAgICAgICAgbWVzc2FnZTogZHluYW1pY0ltcG9ydEVycm9yTWVzc2FnZSxcbiAgICAgICAgICB9KTtcbiAgICAgICAgfVxuICAgICAgfSxcbiAgICAgIEltcG9ydEV4cHJlc3Npb24obm9kZSkge1xuICAgICAgICBpZiAoIW9wdGlvbnMuZXNtb2R1bGUgfHwgaXNTdGF0aWNWYWx1ZShub2RlLnNvdXJjZSkpIHtcbiAgICAgICAgICByZXR1cm47XG4gICAgICAgIH1cbiAgICAgICAgcmV0dXJuIGNvbnRleHQucmVwb3J0KHtcbiAgICAgICAgICBub2RlLFxuICAgICAgICAgIG1lc3NhZ2U6IGR5bmFtaWNJbXBvcnRFcnJvck1lc3NhZ2UsXG4gICAgICAgIH0pO1xuICAgICAgfSxcbiAgICB9O1xuICB9LFxufTtcbiJdfQ== \ No newline at end of file +//# sourceMappingURL=data:application/json;charset=utf-8;base64,eyJ2ZXJzaW9uIjozLCJzb3VyY2VzIjpbIi4uLy4uL3NyYy9ydWxlcy9uby1keW5hbWljLXJlcXVpcmUuanMiXSwibmFtZXMiOlsiaXNSZXF1aXJlIiwibm9kZSIsImNhbGxlZSIsInR5cGUiLCJuYW1lIiwiYXJndW1lbnRzIiwibGVuZ3RoIiwiaXNEeW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gfVxuICAgICAgICBpZiAob3B0aW9ucy5lc21vZHVsZSAmJiBpc0R5bmFtaWNJbXBvcnQobm9kZSkpIHtcbiAgICAgICAgICByZXR1cm4gY29udGV4dC5yZXBvcnQoe1xuICAgICAgICAgICAgbm9kZSxcbiAgICAgICAgICAgIG1lc3NhZ2U6IGR5bmFtaWNJbXBvcnRFcnJvck1lc3NhZ2UsXG4gICAgICAgICAgfSk7XG4gICAgICAgIH1cbiAgICAgIH0sXG4gICAgICBJbXBvcnRFeHByZXNzaW9uKG5vZGUpIHtcbiAgICAgICAgaWYgKCFvcHRpb25zLmVzbW9kdWxlIHx8IGlzU3RhdGljVmFsdWUobm9kZS5zb3VyY2UpKSB7XG4gICAgICAgICAgcmV0dXJuO1xuICAgICAgICB9XG4gICAgICAgIHJldHVybiBjb250ZXh0LnJlcG9ydCh7XG4gICAgICAgICAgbm9kZSxcbiAgICAgICAgICBtZXNzYWdlOiBkeW5hbWljSW1wb3J0RXJyb3JNZXNzYWdlLFxuICAgICAgICB9KTtcbiAgICAgIH0sXG4gICAgfTtcbiAgfSxcbn07XG4iXX0= \ No newline at end of file diff --git a/node_modules/eslint-plugin-import/lib/rules/no-empty-named-blocks.js b/node_modules/eslint-plugin-import/lib/rules/no-empty-named-blocks.js index 1c74264918..59135bab78 100644 --- a/node_modules/eslint-plugin-import/lib/rules/no-empty-named-blocks.js +++ b/node_modules/eslint-plugin-import/lib/rules/no-empty-named-blocks.js @@ -39,9 +39,7 @@ module.exports = { }return ImportDeclaration;}(), 'Program:exit': function () {function ProgramExit(program) { - var importsTokens = importsWithoutNameds.map(function (node) { - return [node, program.tokens.filter(function (x) {return x.range[0] >= node.range[0] && x.range[1] <= node.range[1];})]; - }); + var importsTokens = importsWithoutNameds.map(function (node) {return [node, program.tokens.filter(function (x) {return x.range[0] >= node.range[0] && x.range[1] <= node.range[1];})];}); importsTokens.forEach(function (_ref) {var _ref2 = _slicedToArray(_ref, 2),node = _ref2[0],tokens = _ref2[1]; tokens.forEach(function (token) { @@ -49,11 +47,10 @@ module.exports = { var nextToken = program.tokens[idx + 1]; if (nextToken && token.value === '{' && nextToken.value === '}') { - var hasOtherIdentifiers = tokens.some(function (token) {return ( - token.type === 'Identifier' && - token.value !== 'from' && - token.value !== 'type' && - token.value !== 'typeof');}); + var hasOtherIdentifiers = tokens.some(function (token) {return token.type === 'Identifier' && + token.value !== 'from' && + token.value !== 'type' && + token.value !== 'typeof';}); // If it has no other identifiers it's the only thing in the import, so we can either remove the import @@ -105,4 +102,4 @@ module.exports = { }return ProgramExit;}() }; }return create;}() }; -//# sourceMappingURL=data:application/json;charset=utf-8;base64,eyJ2ZXJzaW9uIjozLCJzb3VyY2VzIjpbIi4uLy4uL3NyYy9ydWxlcy9uby1lbXB0eS1uYW1lZC1ibG9ja3MuanMiXSwibmFtZXMiOlsiZ2V0RW1wdHlCbG9ja1JhbmdlIiwidG9rZW5zIiwiaW5kZXgiLCJ0b2tlbiIsIm5leHRUb2tlbiIsInByZXZUb2tlbiIsInN0YXJ0IiwicmFuZ2UiLCJlbmQiLCJ2YWx1ZSIsIm1vZHVsZSIsImV4cG9ydHMiLCJtZXRhIiwidHlwZSIsImRvY3MiLCJjYXRlZ29yeSIsImRlc2NyaXB0aW9uIiwidXJsIiwiZml4YWJsZSIsInNjaGVtYSIsImhhc1N1Z2dlc3Rpb25zIiwiY3JlYXRlIiwiY29udGV4dCIsImltcG9ydHNXaXRob3V0TmFtZWRzIiwiSW1wb3J0RGVjbGFyYXRpb24iLCJub2RlIiwic3BlY2lmaWVycyIsInNvbWUiLCJ4IiwicHVzaCIsInByb2dyYW0iLCJpbXBvcnRzVG9rZW5zIiwibWFwIiwiZmlsdGVyIiwiZm9yRWFjaCIsImlkeCIsImluZGV4T2YiLCJoYXNPdGhlcklkZW50aWZpZXJzIiwicmVwb3J0IiwibWVzc2FnZSIsInN1Z2dlc3QiLCJkZXNjIiwiZml4IiwiZml4ZXIiLCJyZW1vdmUiLCJzb3VyY2VDb2RlIiwi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RlbnRpZmllcidcbiAgICAgICAgICAgICAgICAgICYmIHRva2VuLnZhbHVlICE9PSAnZnJvbSdcbiAgICAgICAgICAgICAgICAgICYmIHRva2VuLnZhbHVlICE9PSAndHlwZSdcbiAgICAgICAgICAgICAgICAgICYmIHRva2VuLnZhbHVlICE9PSAndHlwZW9mJ1xuICAgICAgICAgICAgICApKTtcblxuICAgICAgICAgICAgICAvLyBJZiBpdCBoYXMgbm8gb3RoZXIgaWRlbnRpZmllcnMgaXQncyB0aGUgb25seSB0aGluZyBpbiB0aGUgaW1wb3J0LCBzbyB3ZSBjYW4gZWl0aGVyIHJlbW92ZSB0aGUgaW1wb3J0XG4gICAgICAgICAgICAgIC8vIGNvbXBsZXRlbHkgb3IgdHJhbnNmb3JtIGl0IGluIGEgc2lkZS1lZmZlY3RzIG9ubHkgaW1wb3J0XG4gICAgICAgICAgICAgIGlmICghaGFzT3RoZXJJZGVudGlmaWVycykge1xuICAgICAgICAgICAgICAgIGNvbnRleHQucmVwb3J0KHtcbiAgICAgICAgICAgICAgICAgIG5vZGUsXG4gICAgICAgICAgICAgICAgICBtZXNzYWdlOiAnVW5leHBlY3RlZCBlbXB0eSBuYW1lZCBpbXBvcnQgYmxvY2snLFxuICAgICAgICAgICAgICAgICAgc3VnZ2VzdDogW1xuICAgICAgICAgICAgICAgICAgICB7XG4gICAgICAgICAgICAgICAgICAgICAgZGVzYzogJ1JlbW92ZSB1bnVzZWQgaW1wb3J0JyxcbiAgICAgICAgICAgICAgICAgICAgICBmaXgoZml4ZXIpIHtcbiAgICAgICAgICAgICAgICAgICAgICAgIC8vIFJlbW92ZSB0aGUgd2hvbGUgaW1wb3J0XG4gICAgICAgICAgICAgICAgICAgICAgICByZXR1cm4gZml4ZXIucmVtb3ZlKG5vZGUpO1xuICAgICAgICAgICAgICAgICAgICAgIH0sXG4gICAgICAgICAgICAgICAgICAgIH0sXG4gICAgICAgICAgICAgICAgICAgIHtcbiAgICAgICAgICAgICAgICAgICAgICBkZXNjOiAnUmVtb3ZlIGVtcHR5IGltcG9ydCBibG9jaycsXG4gICAgICAgICAgICAgICAgICAgICAgZml4KGZpeGVyKSB7XG4gICAgICAgICAgICAgICAgICAgICAgICAvLyBSZW1vdmUgdGhlIGVtcHR5IGJsb2NrIGFuZCB0aGUgJ2Zyb20nIHRva2VuLCBsZWF2aW5nIHRoZSBpbXBvcnQgb25seSBmb3IgaXRzIHNpZGVcbiAgICAgICAgICAgICAgICAgICAgICAgIC8vIGVmZmVjdHMsIGUuZy4gYGltcG9ydCAnbW9kJ2BcbiAgICAgICAgICAgICAgICAgICAgICAgIGNvbnN0IHNvdXJjZUNvZGUgPSBjb250ZXh0LmdldFNvdXJjZUNvZGUoKTtcbiAgICAgICAgICAgICAgICAgICAgICAgIGNvbnN0IGZyb21Ub2tlbiA9IHByb2dyYW0udG9rZW5zLmZpbmQodCA9PiB0LnZhbHVlID09PSAnZnJvbScpO1xuICAgICAgICAgICAgICAgICAgICAgICAgY29uc3QgaW1wb3J0VG9rZW4gPSBwcm9ncmFtLnRva2Vucy5maW5kKHQgPT4gdC52YWx1ZSA9PT0gJ2ltcG9ydCcpO1xuICAgICAgICAgICAgICAgICAgICAgICAgY29uc3QgaGFzU3BhY2VBZnRlckZyb20gPSBzb3VyY2VDb2RlLmlzU3BhY2VCZXR3ZWVuKGZyb21Ub2tlbiwgc291cmNlQ29kZS5nZXRUb2tlbkFmdGVyKGZyb21Ub2tlbikpO1xuICAgICAgICAgICAgICAgICAgICAgICAgY29uc3QgaGFzU3BhY2VBZnRlckltcG9ydCA9IHNvdXJjZUNvZGUuaXNTcGFjZUJldHdlZW4oaW1wb3J0VG9rZW4sIHNvdXJjZUNvZGUuZ2V0VG9rZW5BZnRlcihmcm9tVG9rZW4pKTtcblxuICAgICAgICAgICAgICAgICAgICAgICAgY29uc3QgW3N0YXJ0XSA9IGdldEVtcHR5QmxvY2tSYW5nZShwcm9ncmFtLnRva2VucywgaWR4KTtcbiAgICAgICAgICAgICAgICAgICAgICAgIGNvbnN0IFssIGVuZF0gPSBmcm9tVG9rZW4ucmFuZ2U7XG4gICAgICAgICAgICAgICAgICAgICAgICBjb25zdCByYW5nZSA9IFtzdGFydCwgaGFzU3BhY2VBZnRlckZyb20gPyBlbmQgKyAxIDogZW5kXTtcblxuICAgICAgICAgICAgICAgICAgICAgICAgcmV0dXJuIGZpeGVyLnJlcGxhY2VUZXh0UmFuZ2UocmFuZ2UsIGhhc1NwYWNlQWZ0ZXJJbXBvcnQgPyAnJyA6ICcgJyk7XG4gICAgICAgICAgICAgICAgICAgICAgfSxcbiAgICAgICAgICAgICAgICAgICAgfSxcbiAgICAgICAgICAgICAgICAgIF0sXG4gICAgICAgICAgICAgICAgfSk7XG4gICAgICAgICAgICAgIH0gZWxzZSB7XG4gICAgICAgICAgICAgICAgY29udGV4dC5yZXBvcnQoe1xuICAgICAgICAgICAgICAgICAgbm9kZSxcbiAgICAgICAgICAgICAgICAgIG1lc3NhZ2U6ICdVbmV4cGVjdGVkIGVtcHR5IG5hbWVkIGltcG9ydCBibG9jaycsXG4gICAgICAgICAgICAgICAgICBmaXgoZml4ZXIpIHtcbiAgICAgICAgICAgICAgICAgICAgcmV0dXJuIGZpeGVyLnJlbW92ZVJhbmdlKGdldEVtcHR5QmxvY2tSYW5nZShwcm9ncmFtLnRva2VucywgaWR4KSk7XG4gICAgICAgICAgICAgICAgICB9LFxuICAgICAgICAgICAgICAgIH0pO1xuICAgICAgICAgICAgICB9XG4gICAgICAgICAgICB9XG4gICAgICAgICAgfSk7XG4gICAgICAgIH0pO1xuICAgICAgfSxcbiAgICB9O1xuICB9LFxufTtcbiJdfQ== \ No newline at end of file +//# sourceMappingURL=data:application/json;charset=utf-8;base64,eyJ2ZXJzaW9uIjozLCJzb3VyY2VzIjpbIi4uLy4uL3NyYy9ydWxlcy9uby1lbXB0eS1uYW1lZC1ibG9ja3MuanMiXSwibmFtZXMiOlsiZ2V0RW1wdHlCbG9ja1JhbmdlIiwidG9rZW5zIiwiaW5k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ZVsxXSA8PSBub2RlLnJhbmdlWzFdKV0pO1xuXG4gICAgICAgIGltcG9ydHNUb2tlbnMuZm9yRWFjaCgoW25vZGUsIHRva2Vuc10pID0+IHtcbiAgICAgICAgICB0b2tlbnMuZm9yRWFjaCgodG9rZW4pID0+IHtcbiAgICAgICAgICAgIGNvbnN0IGlkeCA9IHByb2dyYW0udG9rZW5zLmluZGV4T2YodG9rZW4pO1xuICAgICAgICAgICAgY29uc3QgbmV4dFRva2VuID0gcHJvZ3JhbS50b2tlbnNbaWR4ICsgMV07XG5cbiAgICAgICAgICAgIGlmIChuZXh0VG9rZW4gJiYgdG9rZW4udmFsdWUgPT09ICd7JyAmJiBuZXh0VG9rZW4udmFsdWUgPT09ICd9Jykge1xuICAgICAgICAgICAgICBjb25zdCBoYXNPdGhlcklkZW50aWZpZXJzID0gdG9rZW5zLnNvbWUoKHRva2VuKSA9PiB0b2tlbi50eXBlID09PSAnSWRlbnRpZmllcidcbiAgICAgICAgICAgICAgICAgICYmIHRva2VuLnZhbHVlICE9PSAnZnJvbSdcbiAgICAgICAgICAgICAgICAgICYmIHRva2VuLnZhbHVlICE9PSAndHlwZSdcbiAgICAgICAgICAgICAgICAgICYmIHRva2VuLnZhbHVlICE9PSAndHlwZW9mJyxcbiAgICAgICAgICAgICAgKTtcblxuICAgICAgICAgICAgICAvLyBJZiBpdCBoYXMgbm8gb3RoZXIgaWRlbnRpZmllcnMgaXQncyB0aGUgb25seSB0aGluZyBpbiB0aGUgaW1wb3J0LCBzbyB3ZSBjYW4gZWl0aGVyIHJlbW92ZSB0aGUgaW1wb3J0XG4gICAgICAgICAgICAgIC8vIGNvbXBsZXRlbHkgb3IgdHJhbnNmb3JtIGl0IGluIGEgc2lkZS1lZmZlY3RzIG9ubHkgaW1wb3J0XG4gICAgICAgICAgICAgIGlmICghaGFzT3RoZXJJZGVudGlmaWVycykge1xuICAgICAgICAgICAgICAgIGNvbnRleHQucmVwb3J0KHtcbiAgICAgICAgICAgICAgICAgIG5vZGUsXG4gICAgICAgICAgICAgICAgICBtZXNzYWdlOiAnVW5leHBlY3RlZCBlbXB0eSBuYW1lZCBpbXBvcnQgYmxvY2snLFxuICAgICAgICAgICAgICAgICAgc3VnZ2VzdDogW1xuICAgICAgICAgICAgICAgICAgICB7XG4gICAgICAgICAgICAgICAgICAgICAgZGVzYzogJ1JlbW92ZSB1bnVzZWQgaW1wb3J0JyxcbiAgICAgICAgICAgICAgICAgICAgICBmaXgoZml4ZXIpIHtcbiAgICAgICAgICAgICAgICAgICAgICAgIC8vIFJlbW92ZSB0aGUgd2hvbGUgaW1wb3J0XG4gICAgICAgICAgICAgICAgICAgICAgICByZXR1cm4gZml4ZXIucmVtb3ZlKG5vZGUpO1xuICAgICAgICAgICAgICAgICAgICAgIH0sXG4gICAgICAgICAgICAgICAgICAgIH0sXG4gICAgICAgICAgICAgICAgICAgIHtcbiAgICAgICAgICAgICAgICAgICAgICBkZXNjOiAnUmVtb3ZlIGVtcHR5IGltcG9ydCBibG9jaycsXG4gICAgICAgICAgICAgICAgICAgICAgZml4KGZpeGVyKSB7XG4gICAgICAgICAgICAgICAgICAgICAgICAvLyBSZW1vdmUgdGhlIGVtcHR5IGJsb2NrIGFuZCB0aGUgJ2Zyb20nIHRva2VuLCBsZWF2aW5nIHRoZSBpbXBvcnQgb25seSBmb3IgaXRzIHNpZGVcbiAgICAgICAgICAgICAgICAgICAgICAgIC8vIGVmZmVjdHMsIGUuZy4gYGltcG9ydCAnbW9kJ2BcbiAgICAgICAgICAgICAgICAgICAgICAgIGNvbnN0IHNvdXJjZUNvZGUgPSBjb250ZXh0LmdldFNvdXJjZUNvZGUoKTtcbiAgICAgICAgICAgICAgICAgICAgICAgIGNvbnN0IGZyb21Ub2tlbiA9IHByb2dyYW0udG9rZW5zLmZpbmQoKHQpID0+IHQudmFsdWUgPT09ICdmcm9tJyk7XG4gICAgICAgICAgICAgICAgICAgICAgICBjb25zdCBpbXBvcnRUb2tlbiA9IHByb2dyYW0udG9rZW5zLmZpbmQoKHQpID0+IHQudmFsdWUgPT09ICdpbXBvcnQnKTtcbiAgICAgICAgICAgICAgICAgICAgICAgIGNvbnN0IGhhc1NwYWNlQWZ0ZXJGcm9tID0gc291cmNlQ29kZS5pc1NwYWNlQmV0d2Vlbihmcm9tVG9rZW4sIHNvdXJjZUNvZGUuZ2V0VG9rZW5BZnRlcihmcm9tVG9rZW4pKTtcbiAgICAgICAgICAgICAgICAgICAgICAgIGNvbnN0IGhhc1NwYWNlQWZ0ZXJJbXBvcnQgPSBzb3VyY2VDb2RlLmlzU3BhY2VCZXR3ZWVuKGltcG9ydFRva2VuLCBzb3VyY2VDb2RlLmdldFRva2VuQWZ0ZXIoZnJvbVRva2VuKSk7XG5cbiAgICAgICAgICAgICAgICAgICAgICAgIGNvbnN0IFtzdGFydF0gPSBnZXRFbXB0eUJsb2NrUmFuZ2UocHJvZ3JhbS50b2tlbnMsIGlkeCk7XG4gICAgICAgICAgICAgICAgICAgICAgICBjb25zdCBbLCBlbmRdID0gZnJvbVRva2VuLnJhbmdlO1xuICAgICAgICAgICAgICAgICAgICAgICAgY29uc3QgcmFuZ2UgPSBbc3RhcnQsIGhhc1NwYWNlQWZ0ZXJGcm9tID8gZW5kICsgMSA6IGVuZF07XG5cbiAgICAgICAgICAgICAgICAgICAgICAgIHJldHVybiBmaXhlci5yZXBsYWNlVGV4dFJhbmdlKHJhbmdlLCBoYXNTcGFjZUFmdGVySW1wb3J0ID8gJycgOiAnICcpO1xuICAgICAgICAgICAgICAgICAgICAgIH0sXG4gICAgICAgICAgICAgICAgICAgIH0sXG4gICAgICAgICAgICAgICAgICBdLFxuICAgICAgICAgICAgICAgIH0pO1xuICAgICAgICAgICAgICB9IGVsc2Uge1xuICAgICAgICAgICAgICAgIGNvbnRleHQucmVwb3J0KHtcbiAgICAgICAgICAgICAgICAgIG5vZGUsXG4gICAgICAgICAgICAgICAgICBtZXNzYWdlOiAnVW5leHBlY3RlZCBlbXB0eSBuYW1lZCBpbXBvcnQgYmxvY2snLFxuICAgICAgICAgICAgICAgICAgZml4KGZpeGVyKSB7XG4gICAgICAgICAgICAgICAgICAgIHJldHVybiBmaXhlci5yZW1vdmVSYW5nZShnZXRFbXB0eUJsb2NrUmFuZ2UocHJvZ3JhbS50b2tlbnMsIGlkeCkpO1xuICAgICAgICAgICAgICAgICAgfSxcbiAgICAgICAgICAgICAgICB9KTtcbiAgICAgICAgICAgICAgfVxuICAgICAgICAgICAgfVxuICAgICAgICAgIH0pO1xuICAgICAgICB9KTtcbiAgICAgIH0sXG4gICAgfTtcbiAgfSxcbn07XG4iXX0= \ No newline at end of file diff --git a/node_modules/eslint-plugin-import/lib/rules/no-extraneous-dependencies.js b/node_modules/eslint-plugin-import/lib/rules/no-extraneous-dependencies.js index 44a975a825..35fc8a911b 100644 --- a/node_modules/eslint-plugin-import/lib/rules/no-extraneous-dependencies.js +++ b/node_modules/eslint-plugin-import/lib/rules/no-extraneous-dependencies.js @@ -73,9 +73,9 @@ function getDependencies(context, packageDir) { paths.forEach(function (dir) { var packageJsonPath = _path2['default'].join(dir, 'package.json'); var _packageContent = getPackageDepFields(packageJsonPath, true); - Object.keys(packageContent).forEach(function (depsKey) {return ( - Object.assign(packageContent[depsKey], _packageContent[depsKey]));}); - + Object.keys(packageContent).forEach(function (depsKey) { + Object.assign(packageContent[depsKey], _packageContent[depsKey]); + }); }); } else { var packageJsonPath = (0, _pkgUp2['default'])({ @@ -110,7 +110,7 @@ function getDependencies(context, packageDir) { } if (e.name === 'JSONError' || e instanceof SyntaxError) { context.report({ - message: 'The package.json file could not be parsed: ' + e.message, + message: 'The package.json file could not be parsed: ' + String(e.message), loc: { line: 0, column: 0 } }); } @@ -120,8 +120,7 @@ function getDependencies(context, packageDir) { } function missingErrorMessage(packageName) { - return '\'' + String(packageName) + '\' should be listed in the project\'s dependencies. ' + ('Run \'npm i -S ' + String( - packageName) + '\' to add it'); + return '\'' + String(packageName) + '\' should be listed in the project\'s dependencies. Run \'npm i -S ' + String(packageName) + '\' to add it'; } function devDepErrorMessage(packageName) { @@ -129,8 +128,7 @@ function devDepErrorMessage(packageName) { } function optDepErrorMessage(packageName) { - return '\'' + String(packageName) + '\' should be listed in the project\'s dependencies, ' + 'not optionalDependencies.'; - + return '\'' + String(packageName) + '\' should be listed in the project\'s dependencies, not optionalDependencies.'; } function getModuleOriginalName(name) {var _name$split = @@ -162,23 +160,25 @@ function checkDependencyDeclaration(deps, packageName, declarationStatus) { } }); - return packageHierarchy.reduce(function (result, ancestorName) { - return { + return packageHierarchy.reduce(function (result, ancestorName) {return { isInDeps: result.isInDeps || deps.dependencies[ancestorName] !== undefined, isInDevDeps: result.isInDevDeps || deps.devDependencies[ancestorName] !== undefined, isInOptDeps: result.isInOptDeps || deps.optionalDependencies[ancestorName] !== undefined, isInPeerDeps: result.isInPeerDeps || deps.peerDependencies[ancestorName] !== undefined, isInBundledDeps: - result.isInBundledDeps || deps.bundledDependencies.indexOf(ancestorName) !== -1 }; - - }, newDeclarationStatus); + result.isInBundledDeps || deps.bundledDependencies.indexOf(ancestorName) !== -1 };}, + newDeclarationStatus); } function reportIfMissing(context, deps, depsOptions, node, name) { // Do not report when importing types unless option is enabled if ( !depsOptions.verifyTypeImports && ( - node.importKind === 'type' || node.importKind === 'typeof')) + + node.importKind === 'type' || + node.importKind === 'typeof' || + Array.isArray(node.specifiers) && node.specifiers.length && node.specifiers.every(function (specifier) {return specifier.importKind === 'type' || specifier.importKind === 'typeof';}))) + { return; } @@ -244,9 +244,8 @@ function testConfig(config, filename) { return config; } // Array of globs. - return config.some(function (c) {return ( - (0, _minimatch2['default'])(filename, c) || - (0, _minimatch2['default'])(filename, _path2['default'].join(process.cwd(), c)));}); + return config.some(function (c) {return (0, _minimatch2['default'])(filename, c) || + (0, _minimatch2['default'])(filename, _path2['default'].join(process.cwd(), c));}); } @@ -261,17 +260,17 @@ module.exports = { schema: [ { - 'type': 'object', - 'properties': { - 'devDependencies': { 'type': ['boolean', 'array'] }, - 'optionalDependencies': { 'type': ['boolean', 'array'] }, - 'peerDependencies': { 'type': ['boolean', 'array'] }, - 'bundledDependencies': { 'type': ['boolean', 'array'] }, - 'packageDir': { 'type': ['string', 'array'] }, - 'includeInternal': { 'type': ['boolean'] }, - 'includeTypes': { 'type': ['boolean'] } }, + type: 'object', + properties: { + devDependencies: { type: ['boolean', 'array'] }, + optionalDependencies: { type: ['boolean', 'array'] }, + peerDependencies: { type: ['boolean', 'array'] }, + bundledDependencies: { type: ['boolean', 'array'] }, + packageDir: { type: ['string', 'array'] }, + includeInternal: { type: ['boolean'] }, + includeTypes: { type: ['boolean'] } }, - 'additionalProperties': false }] }, + additionalProperties: false }] }, @@ -298,4 +297,4 @@ module.exports = { 'Program:exit': function () {function ProgramExit() { depFieldCache.clear(); }return ProgramExit;}() }; -//# sourceMappingURL=data:application/json;charset=utf-8;base64,eyJ2ZXJzaW9uIjozLCJzb3VyY2VzIjpbIi4uLy4uL3NyYy9ydWxlcy9uby1leHRyYW5lb3VzLWRlcGVuZGVuY2llcy5qcyJdLCJuYW1lcyI6WyJkZXBGaWVsZENhY2hlIiwiTWFwIiwiaGFzS2V5cyIsIm9iaiIsIk9iamVjdCIsImtleXMiLCJsZW5ndGgiLCJhcnJheU9yS2V5cyIsImFycmF5T3JPYmplY3QiLCJBcnJheSIsImlzQXJyYXkiLCJyZWFkSlNPTiIsImpzb25QYXRoIiwidGhyb3dFeGNlcHRpb24iLCJKU09OIiwicGFyc2UiLCJmcyIsInJlYWRGaWxlU3luYyIsImVyciIsImV4dHJhY3REZXBGaWVsZHMiLCJwa2ciLCJkZXBlbmRlbmNpZXMiLCJkZXZEZXBlbmRlbmNpZXMiLCJvcHRpb25hbERlcGVuZGVuY2llcyIsInBlZXJEZXBlbmRlbmNpZXMiLCJidW5kbGVkRGVwZW5kZW5jaWVzIiwiYnVuZGxlRGVwZW5kZW5jaWVzIiwiZ2V0UGFja2FnZURlcEZpZWxkcyIsInBhY2thZ2VKc29uUGF0aCIsInRocm93QXRSZW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9LCB7IGNvbW1vbmpzOiB0cnVlIH0pO1xuICB9LFxuXG4gICdQcm9ncmFtOmV4aXQnOiAoKSA9PiB7XG4gICAgZGVwRmllbGRDYWNoZS5jbGVhcigpO1xuICB9LFxufTtcbiJdfQ== \ No newline at end of file +//# sourceMappingURL=data:application/json;charset=utf-8;base64,eyJ2ZXJzaW9uIjozLCJzb3VyY2VzIjpbIi4uLy4uL3NyYy9ydWxlcy9uby1leHRyYW5lb3VzLWRlcGVuZGVuY2llcy5qcyJdLCJuYW1lcyI6WyJkZXBGaWVsZENhY2hlIiwiTWFwIiwiaGFzS2V5cyIsIm9iaiIsIk9iamVjdCIsImtleXMiLCJsZW5ndGgiLCJhcnJheU9yS2V5cyIsImFycmF5T3JPYmplY3QiLCJBcnJheSIsImlzQXJyYXkiLCJyZWFkSlNPTiIsImpzb25QYXRoIiwidGhyb3dFeGNlcHRpb24iLCJKU09OIiwicGFyc2UiLCJmcyIsInJlYWRGaWxlU3luYyIsImVyciIsImV4dHJhY3REZXBGaWVsZHMiLCJwa2ciLCJkZXBlbmRlbmNpZXMiLCJkZXZEZXBlbmRlbmNpZXMiLCJvcHRpb25hbERlcGVuZGVuY2llcyIsInBlZXJEZXBlbmRlbmNpZXMiLCJidW5kbGVkRGVwZW5kZW5jaWVzIiwiYnVuZGxlRGVwZW5kZW5jaWVzIiwiZ2V0UGFja2FnZURlcEZpZWxkcyIsInBhY2thZ2VKc29uUGF0aCIsInRocm93QXRSZWFkIiwiaGFzIiwiZGVwRmllbGRzIiwic2V0IiwiZ2V0IiwiZ2V0RGVwZW5kZW5jaWVzIiwiY29udGV4dCIsInBhY2thZ2VEaXIiLCJwYXRocyIsInBhY2thZ2VDb250ZW50IiwicGF0aCIsInJlc29sdmUiLCJtYXAiLCJkaXIiLCJmb3JFYWNoIiwiam9pbiIsIl9wYWNrYWdlQ29udGVudCIsImRlcHNLZXkiLCJhc3NpZ24iLCJjd2QiLCJnZXRQaHlzaWNhbEZpbGVuYW1lIiwiZ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9PSBmYWxzZSxcbiAgICAgIHZlcmlmeUludGVybmFsRGVwczogISFvcHRpb25zLmluY2x1ZGVJbnRlcm5hbCxcbiAgICAgIHZlcmlmeVR5cGVJbXBvcnRzOiAhIW9wdGlvbnMuaW5jbHVkZVR5cGVzLFxuICAgIH07XG5cbiAgICByZXR1cm4gbW9kdWxlVmlzaXRvcigoc291cmNlLCBub2RlKSA9PiB7XG4gICAgICByZXBvcnRJZk1pc3NpbmcoY29udGV4dCwgZGVwcywgZGVwc09wdGlvbnMsIG5vZGUsIHNvdXJjZS52YWx1ZSk7XG4gICAgfSwgeyBjb21tb25qczogdHJ1ZSB9KTtcbiAgfSxcblxuICAnUHJvZ3JhbTpleGl0JygpIHtcbiAgICBkZXBGaWVsZENhY2hlLmNsZWFyKCk7XG4gIH0sXG59O1xuIl19 \ No newline at end of file diff --git a/node_modules/eslint-plugin-import/lib/rules/no-import-module-exports.js b/node_modules/eslint-plugin-import/lib/rules/no-import-module-exports.js index b93d96e72b..3a3373ff45 100644 --- a/node_modules/eslint-plugin-import/lib/rules/no-import-module-exports.js +++ b/node_modules/eslint-plugin-import/lib/rules/no-import-module-exports.js @@ -35,11 +35,11 @@ module.exports = { fixable: 'code', schema: [ { - 'type': 'object', - 'properties': { - 'exceptions': { 'type': 'array' } }, + type: 'object', + properties: { + exceptions: { type: 'array' } }, - 'additionalProperties': false }] }, + additionalProperties: false }] }, @@ -64,8 +64,7 @@ module.exports = { importDeclarations.forEach(function (importDeclaration) { context.report({ node: importDeclaration, - message: 'Cannot use import declarations in modules that export using ' + 'CommonJS (module.exports = \'foo\' or exports.bar = \'hi\')' }); - + message: 'Cannot use import declarations in modules that export using CommonJS (module.exports = \'foo\' or exports.bar = \'hi\')' }); }); alreadyReported = true; @@ -83,4 +82,4 @@ module.exports = { }return MemberExpression;}() }; }return create;}() }; -//# sourceMappingURL=data:application/json;charset=utf-8;base64,eyJ2ZXJzaW9uIjozLCJzb3VyY2VzIjpbIi4uLy4uL3NyYy9yd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gY29uc3QgaXNFeGNlcHRpb24gPSAhIW9wdGlvbnMuZXhjZXB0aW9ucyAmJiBvcHRpb25zLmV4Y2VwdGlvbnMuc29tZShnbG9iID0+IG1pbmltYXRjaChmaWxlTmFtZSwgZ2xvYikpO1xuXG4gICAgICBpZiAoaXNJZGVudGlmaWVyICYmIGhhc0NKU0V4cG9ydFJlZmVyZW5jZSAmJiAhaXNFbnRyeVBvaW50ICYmICFpc0V4Y2VwdGlvbiAmJiAhaXNJbXBvcnRCaW5kaW5nKSB7XG4gICAgICAgIGltcG9ydERlY2xhcmF0aW9ucy5mb3JFYWNoKGltcG9ydERlY2xhcmF0aW9uID0+IHtcbiAgICAgICAgICBjb250ZXh0LnJlcG9ydCh7XG4gICAgICAgICAgICBub2RlOiBpbXBvcnREZWNsYXJhdGlvbixcbiAgICAgICAgICAgIG1lc3NhZ2U6IGBDYW5ub3QgdXNlIGltcG9ydCBkZWNsYXJhdGlvbnMgaW4gbW9kdWxlcyB0aGF0IGV4cG9ydCB1c2luZyBgICtcbiAgICAgICAgICAgICAgYENvbW1vbkpTIChtb2R1bGUuZXhwb3J0cyA9ICdmb28nIG9yIGV4cG9ydHMuYmFyID0gJ2hpJylgLFxuICAgICAgICAgIH0pO1xuICAgICAgICB9KTtcbiAgICAgICAgYWxyZWFkeVJlcG9ydGVkID0gdHJ1ZTtcbiAgICAgIH1cbiAgICB9XG5cbiAgICByZXR1cm4ge1xuICAgICAgSW1wb3J0RGVjbGFyYXRpb24obm9kZSkge1xuICAgICAgICBpbXBvcnREZWNsYXJhdGlvbnMucHVzaChub2RlKTtcbiAgICAgIH0sXG4gICAgICBNZW1iZXJFeHByZXNzaW9uKG5vZGUpIHtcbiAgICAgICAgaWYgKCFhbHJlYWR5UmVwb3J0ZWQpIHtcbiAgICAgICAgICByZXBvcnQobm9kZSk7XG4gICAgICAgIH1cbiAgICAgIH0sXG4gICAgfTtcbiAgfSxcbn07XG4iXX0= \ No newline at end of file +//# sourceMappingURL=data:application/json;char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WR5UmVwb3J0ZWQpIHtcbiAgICAgICAgICByZXBvcnQobm9kZSk7XG4gICAgICAgIH1cbiAgICAgIH0sXG4gICAgfTtcbiAgfSxcbn07XG4iXX0= \ No newline at end of file diff --git a/node_modules/eslint-plugin-import/lib/rules/no-internal-modules.js b/node_modules/eslint-plugin-import/lib/rules/no-internal-modules.js index c5ba717733..3b20616a24 100644 --- a/node_modules/eslint-plugin-import/lib/rules/no-internal-modules.js +++ b/node_modules/eslint-plugin-import/lib/rules/no-internal-modules.js @@ -60,14 +60,12 @@ module.exports = { function toSteps(somePath) { return normalizeSep(somePath). split('/'). + filter(function (step) {return step && step !== '.';}). reduce(function (acc, step) { - if (!step || step === '.') { - return acc; - } else if (step === '..') { + if (step === '..') { return acc.slice(0, -1); - } else { - return acc.concat(step); } + return acc.concat(step); }, []); } @@ -85,17 +83,17 @@ module.exports = { var steps = toSteps(importPath); var nonScopeSteps = steps.filter(function (step) {return step.indexOf('@') !== 0;}); - if (nonScopeSteps.length <= 1) return false; + if (nonScopeSteps.length <= 1) {return false;} // before trying to resolve, see if the raw import (with relative // segments resolved) matches an allowed pattern var justSteps = steps.join('/'); - if (reachingAllowed(justSteps) || reachingAllowed('/' + String(justSteps))) return false; + if (reachingAllowed(justSteps) || reachingAllowed('/' + String(justSteps))) {return false;} // if the import statement doesn't match directly, try to match the // resolved path if the import is resolvable var resolved = (0, _resolve2['default'])(importPath, context); - if (!resolved || reachingAllowed(normalizeSep(resolved))) return false; + if (!resolved || reachingAllowed(normalizeSep(resolved))) {return false;} // this import was not allowed by the allowed paths, and reaches // so it is a violation @@ -109,12 +107,12 @@ module.exports = { // segments resolved) matches a forbidden pattern var justSteps = steps.join('/'); - if (reachingForbidden(justSteps) || reachingForbidden('/' + String(justSteps))) return true; + if (reachingForbidden(justSteps) || reachingForbidden('/' + String(justSteps))) {return true;} // if the import statement doesn't match directly, try to match the // resolved path if the import is resolvable var resolved = (0, _resolve2['default'])(importPath, context); - if (resolved && reachingForbidden(normalizeSep(resolved))) return true; + if (resolved && reachingForbidden(normalizeSep(resolved))) {return true;} // this import was not forbidden by the forbidden paths so it is not a violation return false; @@ -125,7 +123,8 @@ module.exports = { function checkImportForReaching(importPath, node) { var potentialViolationTypes = ['parent', 'index', 'sibling', 'external', 'internal']; - if (potentialViolationTypes.indexOf((0, _importType2['default'])(importPath, context)) !== -1 && + if ( + potentialViolationTypes.indexOf((0, _importType2['default'])(importPath, context)) !== -1 && isReachViolation(importPath)) { context.report({ @@ -135,8 +134,11 @@ module.exports = { } } - return (0, _moduleVisitor2['default'])(function (source) { + return (0, _moduleVisitor2['default'])( + function (source) { checkImportForReaching(source.value, source); - }, { commonjs: true }); + }, + { commonjs: true }); + }return noReachingInside;}() }; -//# sourceMappingURL=data:application/json;charset=utf-8;base64,eyJ2ZXJzaW9uIjozLCJzb3VyY2VzIjpbIi4uLy4uL3NyYy9ydWxlcy9uby1pbnRlcm5hbC1tb2R1bGVzLmpzIl0sIm5hbWVzIjpbIm1vZHVsZSIsImV4cG9ydHMiLCJtZXRhIiwidHlwZSIsImRvY3MiLCJjYXRlZ29yeSIsImRlc2NyaXB0aW9uIiwidXJsIiwic2NoZW1hIiwiYW55T2YiLCJwcm9wZXJ0aWVzIiwiYWxsb3ciLCJpdGVtcyIsImFkZGl0aW9uYWxQcm9wZXJ0aWVzIiwiZm9yYmlkIiwiY3JlYXRlIiwibm9SZWFjaGluZ0luc2lkZSIsImNvbnRleHQiLCJvcHRpb25zIiwiYWxsb3dSZWdleHBzIiwibWFwIiwibWluaW1hdGNoIiwibWFrZVJlIiwicCIsImZvcmJpZFJlZ2V4cHMiLCJub3JtYWxpemVTZXAiLCJzb21lUGF0aCIsInNwbGl0Iiwiam9pbiIsInRvU3RlcHMiLCJyZWR1Y2UiLCJhY2MiLCJzdGVwIiwic2xpY2UiLCJjb25jYXQiLCJyZWFjaGluZ0FsbG93ZWQiLCJpbXBvcnRQYXRoIiwic29tZSIsInJlIiwidGVzdCIsInJlYWNoaW5nR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4ndCBiZVxuICAgIGNvbnN0IGlzUmVhY2hWaW9sYXRpb24gPSBvcHRpb25zLmZvcmJpZCA/IGlzRm9yYmlkVmlvbGF0aW9uIDogaXNBbGxvd1Zpb2xhdGlvbjtcblxuICAgIGZ1bmN0aW9uIGNoZWNrSW1wb3J0Rm9yUmVhY2hpbmcoaW1wb3J0UGF0aCwgbm9kZSkge1xuICAgICAgY29uc3QgcG90ZW50aWFsVmlvbGF0aW9uVHlwZXMgPSBbJ3BhcmVudCcsICdpbmRleCcsICdzaWJsaW5nJywgJ2V4dGVybmFsJywgJ2ludGVybmFsJ107XG4gICAgICBpZiAocG90ZW50aWFsVmlvbGF0aW9uVHlwZXMuaW5kZXhPZihpbXBvcnRUeXBlKGltcG9ydFBhdGgsIGNvbnRleHQpKSAhPT0gLTEgJiZcbiAgICAgICAgaXNSZWFjaFZpb2xhdGlvbihpbXBvcnRQYXRoKVxuICAgICAgKSB7XG4gICAgICAgIGNvbnRleHQucmVwb3J0KHtcbiAgICAgICAgICBub2RlLFxuICAgICAgICAgIG1lc3NhZ2U6IGBSZWFjaGluZyB0byBcIiR7aW1wb3J0UGF0aH1cIiBpcyBub3QgYWxsb3dlZC5gLFxuICAgICAgICB9KTtcbiAgICAgIH1cbiAgICB9XG5cbiAgICByZXR1cm4gbW9kdWxlVmlzaXRvcigoc291cmNlKSA9PiB7XG4gICAgICBjaGVja0ltcG9ydEZvclJlYWNoaW5nKHNvdXJjZS52YWx1ZSwgc291cmNlKTtcbiAgICB9LCB7IGNvbW1vbmpzOiB0cnVlIH0pO1xuICB9LFxufTtcbiJdfQ== \ No newline at end of file +//# sourceMappingURL=data:application/json;charset=utf-8;base64,eyJ2ZXJzaW9uIjozLCJzb3VyY2VzIjpbIi4uLy4uL3NyYy9ydWxlcy9uby1pbnRlcm5hbC1tb2R1bGVzLmpzIl0sIm5hbWVzIjpbIm1vZHVsZSIsImV4cG9ydHMiLCJtZXRhIiwidHlwZSIsImRvY3MiLCJjYXRlZ29yeS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biAgbWV0YToge1xuICAgIHR5cGU6ICdzdWdnZXN0aW9uJyxcbiAgICBkb2NzOiB7XG4gICAgICBjYXRlZ29yeTogJ1N0YXRpYyBhbmFseXNpcycsXG4gICAgICBkZXNjcmlwdGlvbjogJ0ZvcmJpZCBpbXBvcnRpbmcgdGhlIHN1Ym1vZHVsZXMgb2Ygb3RoZXIgbW9kdWxlcy4nLFxuICAgICAgdXJsOiBkb2NzVXJsKCduby1pbnRlcm5hbC1tb2R1bGVzJyksXG4gICAgfSxcblxuICAgIHNjaGVtYTogW1xuICAgICAge1xuICAgICAgICBhbnlPZjogW1xuICAgICAgICAgIHtcbiAgICAgICAgICAgIHR5cGU6ICdvYmplY3QnLFxuICAgICAgICAgICAgcHJvcGVydGllczoge1xuICAgICAgICAgICAgICBhbGxvdzoge1xuICAgICAgICAgICAgICAgIHR5cGU6ICdhcnJheScsXG4gICAgICAgICAgICAgICAgaXRlbXM6IHtcbiAgICAgICAgICAgICAgICAgIHR5cGU6ICdzdHJpbmcnLFxuICAgICAgICAgICAgICAgIH0sXG4gICAgICAgICAgICAgIH0sXG4gICAgICAgICAgICB9LFxuICAgICAgICAgICAgYWRkaXRpb25hbFByb3BlcnRpZXM6IGZhbHNlLFxuICAgICAgICAgIH0sXG4gICAgICAgICAge1xuICAgICAgICAgICAgdHlwZTogJ29iamVjdCcsXG4gICAgICAgICAgICBwcm9wZXJ0aWVzOiB7XG4gICAgICAgICAgICAgIGZvcmJpZDoge1xuICAgICAgICAgICAgICAgIHR5cGU6ICdhcnJheScsXG4gICAgICAgICAgICAgICAgaXRlbXM6IHtcbiAgICAgICAgICAgICAgICAgIHR5cGU6ICdzdHJpbmcnLFxuICAgICAgICAgICAgICAgIH0sXG4gICAgICAgICAgICAgIH0sXG4gICAgICAgICAgICB9LFxuICAgICAgICAgICAgYWRkaXRpb25hbFByb3BlcnRpZXM6IGZhbHNlLFxuICAgICAgICAgIH0sXG4gICAgICAgIF0sXG4gICAgICB9LFxuICAgIF0sX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AgICApIHtcbiAgICAgICAgY29udGV4dC5yZXBvcnQoe1xuICAgICAgICAgIG5vZGUsXG4gICAgICAgICAgbWVzc2FnZTogYFJlYWNoaW5nIHRvIFwiJHtpbXBvcnRQYXRofVwiIGlzIG5vdCBhbGxvd2VkLmAsXG4gICAgICAgIH0pO1xuICAgICAgfVxuICAgIH1cblxuICAgIHJldHVybiBtb2R1bGVWaXNpdG9yKFxuICAgICAgKHNvdXJjZSkgPT4ge1xuICAgICAgICBjaGVja0ltcG9ydEZvclJlYWNoaW5nKHNvdXJjZS52YWx1ZSwgc291cmNlKTtcbiAgICAgIH0sXG4gICAgICB7IGNvbW1vbmpzOiB0cnVlIH0sXG4gICAgKTtcbiAgfSxcbn07XG4iXX0= \ No newline at end of file diff --git a/node_modules/eslint-plugin-import/lib/rules/no-mutable-exports.js b/node_modules/eslint-plugin-import/lib/rules/no-mutable-exports.js index d162d7b5f5..40bd1b4cfa 100644 --- a/node_modules/eslint-plugin-import/lib/rules/no-mutable-exports.js +++ b/node_modules/eslint-plugin-import/lib/rules/no-mutable-exports.js @@ -52,8 +52,8 @@ module.exports = { } return { - 'ExportDefaultDeclaration': handleExportDefault, - 'ExportNamedDeclaration': handleExportNamed }; + ExportDefaultDeclaration: handleExportDefault, + ExportNamedDeclaration: handleExportNamed }; }return create;}() }; -//# sourceMappingURL=data:application/json;charset=utf-8;base64,eyJ2ZXJzaW9uIjozLCJzb3VyY2VzIjpbIi4uLy4uL3NyYy9ydWxlcy9uby1tdXRhYmxlLWV4cG9ydHMuanMiXSwibmFtZXMiOlsibW9kdWxlIiwiZXhwb3J0cyIsIm1ldGEiLCJ0eXBlIiwiZG9jcyIsImNhdGVnb3J5IiwiZGVzY3JpcHRpb24iLCJ1cmwiLCJzY2hlbWEiLCJjcmVhdGUiLCJjb250ZXh0IiwiY2hlY2tEZWNsYXJhdGlvbiIsIm5vZGUiLCJraW5kIiwicmVwb3J0IiwiY2hlY2tEZWNsYXJhdGlvbnNJblNjb3BlIiw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A9IGNvbnRleHQuZ2V0U2NvcGUoKTtcblxuICAgICAgaWYgKG5vZGUuZGVjbGFyYXRpb24ubmFtZSkge1xuICAgICAgICBjaGVja0RlY2xhcmF0aW9uc0luU2NvcGUoc2NvcGUsIG5vZGUuZGVjbGFyYXRpb24ubmFtZSk7XG4gICAgICB9XG4gICAgfVxuXG4gICAgZnVuY3Rpb24gaGFuZGxlRXhwb3J0TmFtZWQobm9kZSkge1xuICAgICAgY29uc3Qgc2NvcGUgPSBjb250ZXh0LmdldFNjb3BlKCk7XG5cbiAgICAgIGlmIChub2RlLmRlY2xhcmF0aW9uKSAge1xuICAgICAgICBjaGVja0RlY2xhcmF0aW9uKG5vZGUuZGVjbGFyYXRpb24pO1xuICAgICAgfSBlbHNlIGlmICghbm9kZS5zb3VyY2UpIHtcbiAgICAgICAgZm9yIChjb25zdCBzcGVjaWZpZXIgb2Ygbm9kZS5zcGVjaWZpZXJzKSB7XG4gICAgICAgICAgY2hlY2tEZWNsYXJhdGlvbnNJblNjb3BlKHNjb3BlLCBzcGVjaWZpZXIubG9jYWwubmFtZSk7XG4gICAgICAgIH1cbiAgICAgIH1cbiAgICB9XG5cbiAgICByZXR1cm4ge1xuICAgICAgJ0V4cG9ydERlZmF1bHREZWNsYXJhdGlvbic6IGhhbmRsZUV4cG9ydERlZmF1bHQsXG4gICAgICAnRXhwb3J0TmFtZWREZWNsYXJhdGlvbic6IGhhbmRsZUV4cG9ydE5hbWVkLFxuICAgIH07XG4gIH0sXG59O1xuIl19 \ No newline at end of file +//# sourceMappingURL=data:application/json;charset=utf-8;base64,eyJ2ZXJzaW9uIjozLCJzb3VyY2VzIjpbIi4uLy4uL3NyYy9ydWxlcy9uby1tdXRhYmxlLWV4cG9ydHMuanMiXSwibmFtZXMiOlsibW9kdWxlIiwiZXhwb3J0cyIsIm1ldGEiLCJ0eXBlIiwiZG9jcyIsImNhdGVnb3J5IiwiZGVzY3JpcHRpb24iLCJ1cmwiLCJzY2hlbWEiLCJjcmVh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oZWNrRGVjbGFyYXRpb24oZGVmLnBhcmVudCk7XG4gICAgICAgICAgICB9XG4gICAgICAgICAgfVxuICAgICAgICB9XG4gICAgICB9XG4gICAgfVxuXG4gICAgZnVuY3Rpb24gaGFuZGxlRXhwb3J0RGVmYXVsdChub2RlKSB7XG4gICAgICBjb25zdCBzY29wZSA9IGNvbnRleHQuZ2V0U2NvcGUoKTtcblxuICAgICAgaWYgKG5vZGUuZGVjbGFyYXRpb24ubmFtZSkge1xuICAgICAgICBjaGVja0RlY2xhcmF0aW9uc0luU2NvcGUoc2NvcGUsIG5vZGUuZGVjbGFyYXRpb24ubmFtZSk7XG4gICAgICB9XG4gICAgfVxuXG4gICAgZnVuY3Rpb24gaGFuZGxlRXhwb3J0TmFtZWQobm9kZSkge1xuICAgICAgY29uc3Qgc2NvcGUgPSBjb250ZXh0LmdldFNjb3BlKCk7XG5cbiAgICAgIGlmIChub2RlLmRlY2xhcmF0aW9uKSAge1xuICAgICAgICBjaGVja0RlY2xhcmF0aW9uKG5vZGUuZGVjbGFyYXRpb24pO1xuICAgICAgfSBlbHNlIGlmICghbm9kZS5zb3VyY2UpIHtcbiAgICAgICAgZm9yIChjb25zdCBzcGVjaWZpZXIgb2Ygbm9kZS5zcGVjaWZpZXJzKSB7XG4gICAgICAgICAgY2hlY2tEZWNsYXJhdGlvbnNJblNjb3BlKHNjb3BlLCBzcGVjaWZpZXIubG9jYWwubmFtZSk7XG4gICAgICAgIH1cbiAgICAgIH1cbiAgICB9XG5cbiAgICByZXR1cm4ge1xuICAgICAgRXhwb3J0RGVmYXVsdERlY2xhcmF0aW9uOiBoYW5kbGVFeHBvcnREZWZhdWx0LFxuICAgICAgRXhwb3J0TmFtZWREZWNsYXJhdGlvbjogaGFuZGxlRXhwb3J0TmFtZWQsXG4gICAgfTtcbiAgfSxcbn07XG4iXX0= \ No newline at end of file diff --git a/node_modules/eslint-plugin-import/lib/rules/no-named-as-default-member.js b/node_modules/eslint-plugin-import/lib/rules/no-named-as-default-member.js index 6e08821848..0c15051e02 100644 --- a/node_modules/eslint-plugin-import/lib/rules/no-named-as-default-member.js +++ b/node_modules/eslint-plugin-import/lib/rules/no-named-as-default-member.js @@ -24,81 +24,68 @@ module.exports = { create: function () {function create(context) { - var fileImports = new Map(); var allPropertyLookups = new Map(); - function handleImportDefault(node) { - var declaration = (0, _importDeclaration2['default'])(context); - var exportMap = _ExportMap2['default'].get(declaration.source.value, context); - if (exportMap == null) return; - - if (exportMap.errors.length) { - exportMap.reportErrors(context, declaration); - return; - } - - fileImports.set(node.local.name, { - exportMap: exportMap, - sourcePath: declaration.source.value }); - - } - function storePropertyLookup(objectName, propName, node) { var lookups = allPropertyLookups.get(objectName) || []; lookups.push({ node: node, propName: propName }); allPropertyLookups.set(objectName, lookups); } - function handlePropLookup(node) { - var objectName = node.object.name; - var propName = node.property.name; - storePropertyLookup(objectName, propName, node); - } - - function handleDestructuringAssignment(node) { - var isDestructure = - node.id.type === 'ObjectPattern' && - node.init != null && - node.init.type === 'Identifier'; - - if (!isDestructure) return; - - var objectName = node.init.name;var _iteratorNormalCompletion = true;var _didIteratorError = false;var _iteratorError = undefined;try { - for (var _iterator = node.id.properties[Symbol.iterator](), _step; !(_iteratorNormalCompletion = (_step = _iterator.next()).done); _iteratorNormalCompletion = true) {var _ref = _step.value;var key = _ref.key; - if (key == null) continue; // true for rest properties - storePropertyLookup(objectName, key.name, key); - }} catch (err) {_didIteratorError = true;_iteratorError = err;} finally {try {if (!_iteratorNormalCompletion && _iterator['return']) {_iterator['return']();}} finally {if (_didIteratorError) {throw _iteratorError;}}} - } - - function handleProgramExit() { - allPropertyLookups.forEach(function (lookups, objectName) { - var fileImport = fileImports.get(objectName); - if (fileImport == null) return;var _iteratorNormalCompletion2 = true;var _didIteratorError2 = false;var _iteratorError2 = undefined;try { - - for (var _iterator2 = lookups[Symbol.iterator](), _step2; !(_iteratorNormalCompletion2 = (_step2 = _iterator2.next()).done); _iteratorNormalCompletion2 = true) {var _ref2 = _step2.value;var propName = _ref2.propName,node = _ref2.node; - // the default import can have a "default" property - if (propName === 'default') continue; - if (!fileImport.exportMap.namespace.has(propName)) continue; - - context.report({ - node: node, - message: - 'Caution: `' + String(objectName) + '` also has a named export ' + ('`' + String( - propName) + '`. Check if you meant to write ') + ('`import {' + String( - propName) + '} from \'' + String(fileImport.sourcePath) + '\'` ') + - 'instead.' }); - - - }} catch (err) {_didIteratorError2 = true;_iteratorError2 = err;} finally {try {if (!_iteratorNormalCompletion2 && _iterator2['return']) {_iterator2['return']();}} finally {if (_didIteratorError2) {throw _iteratorError2;}}} - }); - } - return { - 'ImportDefaultSpecifier': handleImportDefault, - 'MemberExpression': handlePropLookup, - 'VariableDeclarator': handleDestructuringAssignment, - 'Program:exit': handleProgramExit }; + ImportDefaultSpecifier: function () {function ImportDefaultSpecifier(node) { + var declaration = (0, _importDeclaration2['default'])(context); + var exportMap = _ExportMap2['default'].get(declaration.source.value, context); + if (exportMap == null) {return;} + + if (exportMap.errors.length) { + exportMap.reportErrors(context, declaration); + return; + } + + fileImports.set(node.local.name, { + exportMap: exportMap, + sourcePath: declaration.source.value }); + + }return ImportDefaultSpecifier;}(), + + MemberExpression: function () {function MemberExpression(node) { + var objectName = node.object.name; + var propName = node.property.name; + storePropertyLookup(objectName, propName, node); + }return MemberExpression;}(), + + VariableDeclarator: function () {function VariableDeclarator(node) { + var isDestructure = node.id.type === 'ObjectPattern' && + node.init != null && + node.init.type === 'Identifier'; + if (!isDestructure) {return;} + + var objectName = node.init.name;var _iteratorNormalCompletion = true;var _didIteratorError = false;var _iteratorError = undefined;try { + for (var _iterator = node.id.properties[Symbol.iterator](), _step; !(_iteratorNormalCompletion = (_step = _iterator.next()).done); _iteratorNormalCompletion = true) {var _ref = _step.value;var key = _ref.key; + if (key == null) {continue;} // true for rest properties + storePropertyLookup(objectName, key.name, key); + }} catch (err) {_didIteratorError = true;_iteratorError = err;} finally {try {if (!_iteratorNormalCompletion && _iterator['return']) {_iterator['return']();}} finally {if (_didIteratorError) {throw _iteratorError;}}} + }return VariableDeclarator;}(), + + 'Program:exit': function () {function ProgramExit() { + allPropertyLookups.forEach(function (lookups, objectName) { + var fileImport = fileImports.get(objectName); + if (fileImport == null) {return;}var _iteratorNormalCompletion2 = true;var _didIteratorError2 = false;var _iteratorError2 = undefined;try { + + for (var _iterator2 = lookups[Symbol.iterator](), _step2; !(_iteratorNormalCompletion2 = (_step2 = _iterator2.next()).done); _iteratorNormalCompletion2 = true) {var _ref2 = _step2.value;var propName = _ref2.propName,node = _ref2.node; + // the default import can have a "default" property + if (propName === 'default') {continue;} + if (!fileImport.exportMap.namespace.has(propName)) {continue;} + + context.report({ + node: node, + message: 'Caution: `' + String(objectName) + '` also has a named export `' + String(propName) + '`. Check if you meant to write `import {' + String(propName) + '} from \'' + String(fileImport.sourcePath) + '\'` instead.' }); + + }} catch (err) {_didIteratorError2 = true;_iteratorError2 = err;} finally {try {if (!_iteratorNormalCompletion2 && _iterator2['return']) {_iterator2['return']();}} finally {if (_didIteratorError2) {throw _iteratorError2;}}} + }); + }return ProgramExit;}() }; }return create;}() }; /** * @fileoverview Rule to warn about potentially confused use of name exports @@ -106,4 +93,4 @@ module.exports = { * @copyright 2016 Desmond Brand. All rights reserved. * See LICENSE in root directory for full license. */ -//# sourceMappingURL=data:application/json;charset=utf-8;base64,eyJ2ZXJzaW9uIjozLCJzb3VyY2VzIjpbIi4uLy4uL3NyYy9ydWxlcy9uby1uYW1lZC1hcy1kZWZhdWx0LW1lbWJlci5qcyJdLCJuYW1lcyI6WyJtb2R1bGUiLCJleHBvcnRzIiwibWV0YSIsInR5cGUiLCJkb2NzIiwiY2F0ZWdvcnkiLCJkZXNjcmlwdGlvbiIsInVybCIsInNjaGVtYSIsImNyZWF0ZSIsImNvbnRleHQiLCJmaWxlSW1wb3J0cyIsIk1hcCIsImFsbFByb3BlcnR5TG9va3VwcyIsImhhbmRsZUltcG9ydERlZmF1bHQiLCJub2RlIiwiZGVjbGFyYXRpb24iLCJleHB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iAgICAgIH0pO1xuICAgIH1cblxuICAgIHJldHVybiB7XG4gICAgICAnSW1wb3J0RGVmYXVsdFNwZWNpZmllcic6IGhhbmRsZUltcG9ydERlZmF1bHQsXG4gICAgICAnTWVtYmVyRXhwcmVzc2lvbic6IGhhbmRsZVByb3BMb29rdXAsXG4gICAgICAnVmFyaWFibGVEZWNsYXJhdG9yJzogaGFuZGxlRGVzdHJ1Y3R1cmluZ0Fzc2lnbm1lbnQsXG4gICAgICAnUHJvZ3JhbTpleGl0JzogaGFuZGxlUHJvZ3JhbUV4aXQsXG4gICAgfTtcbiAgfSxcbn07XG4iXX0= \ No newline at end of file +//# sourceMappingURL=data:application/json;charset=utf-8;base64,eyJ2ZXJzaW9uIjozLCJzb3VyY2VzIjpbIi4uLy4uL3NyYy9ydWxlcy9uby1uYW1lZC1hcy1kZWZhdWx0LW1lbWJlci5qcyJdLCJuYW1lcyI6WyJtb2R1bGUiLCJleHBvcnRzIiwibWV0YSIsInR5cGUiLCJkb2NzIiwiY2F0ZWdvcnkiLCJkZXNjcmlwdGlvbiIsInVybCIsInNjaGVtYSIsImNyZWF0ZSIsImNvbnRleHQiLCJmaWxlSW1wb3J0cyIsIk1hcCIsImFsbFByb3BlcnR5TG9va3VwcyIsInN0b3JlUHJvcGVydHlMb29rdXAiLCJvYmplY3ROYW1lIiwicHJvcE5hbWUiLCJub2RlIiwibG9va3VwcyIsImdldCIsInB1c2giLCJzZXQiLCJJbXBvcnREZWZhdWx0U3BlY2lmaWVyIiwiZGVjbGFyYXRpb24iLCJleHBvcnRNYXAiLCJFeHBvcnRzIiwic291cmNlIiwidmFsdWUiLCJlcnJvcnMiLCJsZW5ndGgiLCJyZXBvcnRFcnJvcnMiLCJsb2NhbCIsIm5hbWUiLCJzb3VyY2VQYXRoIiwiTWVtYmVyRXhwcmVzc2lvbiIsIm9iamVjdCIsInByb3BlcnR5IiwiVmFyaWFibGVEZWNsYXJhdG9yIiwiaXNEZXN0cnVjdHVyZSIsImlkIiwi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XG4gICAgICAgICAgZm9yIChjb25zdCB7IHByb3BOYW1lLCBub2RlIH0gb2YgbG9va3Vwcykge1xuICAgICAgICAgICAgLy8gdGhlIGRlZmF1bHQgaW1wb3J0IGNhbiBoYXZlIGEgXCJkZWZhdWx0XCIgcHJvcGVydHlcbiAgICAgICAgICAgIGlmIChwcm9wTmFtZSA9PT0gJ2RlZmF1bHQnKSB7IGNvbnRpbnVlOyB9XG4gICAgICAgICAgICBpZiAoIWZpbGVJbXBvcnQuZXhwb3J0TWFwLm5hbWVzcGFjZS5oYXMocHJvcE5hbWUpKSB7IGNvbnRpbnVlOyB9XG5cbiAgICAgICAgICAgIGNvbnRleHQucmVwb3J0KHtcbiAgICAgICAgICAgICAgbm9kZSxcbiAgICAgICAgICAgICAgbWVzc2FnZTogYENhdXRpb246IFxcYCR7b2JqZWN0TmFtZX1cXGAgYWxzbyBoYXMgYSBuYW1lZCBleHBvcnQgXFxgJHtwcm9wTmFtZX1cXGAuIENoZWNrIGlmIHlvdSBtZWFudCB0byB3cml0ZSBcXGBpbXBvcnQgeyR7cHJvcE5hbWV9fSBmcm9tICcke2ZpbGVJbXBvcnQuc291cmNlUGF0aH0nXFxgIGluc3RlYWQuYCxcbiAgICAgICAgICAgIH0pO1xuICAgICAgICAgIH1cbiAgICAgICAgfSk7XG4gICAgICB9LFxuICAgIH07XG4gIH0sXG59O1xuIl19 \ No newline at end of file diff --git a/node_modules/eslint-plugin-import/lib/rules/no-named-as-default.js b/node_modules/eslint-plugin-import/lib/rules/no-named-as-default.js index 130db5e455..63378a33a1 100644 --- a/node_modules/eslint-plugin-import/lib/rules/no-named-as-default.js +++ b/node_modules/eslint-plugin-import/lib/rules/no-named-as-default.js @@ -16,30 +16,30 @@ module.exports = { create: function () {function create(context) { function checkDefault(nameKey, defaultSpecifier) { // #566: default is a valid specifier - if (defaultSpecifier[nameKey].name === 'default') return; + if (defaultSpecifier[nameKey].name === 'default') {return;} var declaration = (0, _importDeclaration2['default'])(context); var imports = _ExportMap2['default'].get(declaration.source.value, context); - if (imports == null) return; + if (imports == null) {return;} if (imports.errors.length) { imports.reportErrors(context, declaration); return; } - if (imports.has('default') && - imports.has(defaultSpecifier[nameKey].name)) { + if (imports.has('default') && imports.has(defaultSpecifier[nameKey].name)) { + + context.report( + defaultSpecifier, 'Using exported name \'' + String( + defaultSpecifier[nameKey].name) + '\' as identifier for default export.'); - context.report(defaultSpecifier, - 'Using exported name \'' + defaultSpecifier[nameKey].name + - '\' as identifier for default export.'); } } return { - 'ImportDefaultSpecifier': checkDefault.bind(null, 'local'), - 'ExportDefaultSpecifier': checkDefault.bind(null, 'exported') }; + ImportDefaultSpecifier: checkDefault.bind(null, 'local'), + ExportDefaultSpecifier: checkDefault.bind(null, 'exported') }; }return create;}() }; -//# sourceMappingURL=data:application/json;charset=utf-8;base64,eyJ2ZXJzaW9uIjozLCJzb3VyY2VzIjpbIi4uLy4uL3NyYy9ydWxlcy9uby1uYW1lZC1hcy1kZWZhdWx0LmpzIl0sIm5hbWVzIjpbIm1vZHVsZSIsImV4cG9ydHMiLCJtZXRhIiwidHlwZSIsImRvY3MiLCJjYXRlZ29yeSIsImRlc2NyaXB0aW9uIiwidXJsIiwic2NoZW1hIiwiY3JlYXRlIiwiY29udGV4dCIsImNoZWNrRGVmYXVsdCIsIm5hbWVLZXkiLCJkZWZhdWx0U3BlY2lmaWVyIiwibmFtZSIsImRlY2xhcmF0aW9uIiwiaW1wb3J0cyIsIkV4cG9ydHMiLCJnZXQiLCJzb3VyY2UiLCJ2YWx1ZSIsImVycm9ycyIsImxlbmd0aCIsInJlcG9ydEVycm9ycyIsImhhcyIsInJlcG9ydCIsImJpbmQiXSwibWFwcGluZ3MiOiJhQUFBLHlDO0FBQ0EseUQ7QUFDQSxxQzs7QUFFQUEsT0FBT0MsT0FBUCxHQUFpQjtBQUNmQyxRQUFNO0FBQ0pDLFVBQU0sU0FERjtBQUVKQyxVQUFNO0FBQ0pDLGdCQUFVLGtCQUROO0FBRUpDLG1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3JzLmxlbmd0aCkge1xuICAgICAgICBpbXBvcnRzLnJlcG9ydEVycm9ycyhjb250ZXh0LCBkZWNsYXJhdGlvbik7XG4gICAgICAgIHJldHVybjtcbiAgICAgIH1cblxuICAgICAgaWYgKGltcG9ydHMuaGFzKCdkZWZhdWx0JykgJiZcbiAgICAgICAgICBpbXBvcnRzLmhhcyhkZWZhdWx0U3BlY2lmaWVyW25hbWVLZXldLm5hbWUpKSB7XG5cbiAgICAgICAgY29udGV4dC5yZXBvcnQoZGVmYXVsdFNwZWNpZmllcixcbiAgICAgICAgICAnVXNpbmcgZXhwb3J0ZWQgbmFtZSBcXCcnICsgZGVmYXVsdFNwZWNpZmllcltuYW1lS2V5XS5uYW1lICtcbiAgICAgICAgICAnXFwnIGFzIGlkZW50aWZpZXIgZm9yIGRlZmF1bHQgZXhwb3J0LicpO1xuXG4gICAgICB9XG4gICAgfVxuICAgIHJldHVybiB7XG4gICAgICAnSW1wb3J0RGVmYXVsdFNwZWNpZmllcic6IGNoZWNrRGVmYXVsdC5iaW5kKG51bGwsICdsb2NhbCcpLFxuICAgICAgJ0V4cG9ydERlZmF1bHRTcGVjaWZpZXInOiBjaGVja0RlZmF1bHQuYmluZChudWxsLCAnZXhwb3J0ZWQnKSxcbiAgICB9O1xuICB9LFxufTtcbiJdfQ== \ No newline at end of file +//# sourceMappingURL=data:application/json;charset=utf-8;base64,eyJ2ZXJzaW9uIjozLCJzb3VyY2VzIjpbIi4uLy4uL3NyYy9ydWxlcy9uby1uYW1lZC1hcy1kZWZhdWx0LmpzIl0sIm5hbWVzIjpbIm1vZHVsZSIsImV4cG9ydHMiLCJtZXRhIiwidHlwZSIsImRvY3MiLCJjYXRlZ29yeSIsImRlc2NyaXB0aW9uIiwidXJsIiwic2NoZW1hIiwiY3JlYXRlIiwiY29udGV4dCIsImNoZWNrRGVmYXVsdCIsIm5hbWVLZXkiLCJkZWZhdWx0U3BlY2lmaWVyIiwibmFtZSIsImRlY2xhcmF0aW9uIiwiaW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at end of file diff --git a/node_modules/eslint-plugin-import/lib/rules/no-named-default.js b/node_modules/eslint-plugin-import/lib/rules/no-named-default.js index 4120f94d32..41e3bba366 100644 --- a/node_modules/eslint-plugin-import/lib/rules/no-named-default.js +++ b/node_modules/eslint-plugin-import/lib/rules/no-named-default.js @@ -13,7 +13,7 @@ module.exports = { create: function () {function create(context) { return { - 'ImportDeclaration': function () {function ImportDeclaration(node) { + ImportDeclaration: function () {function ImportDeclaration(node) { node.specifiers.forEach(function (im) { if (im.importKind === 'type' || im.importKind === 'typeof') { return; @@ -28,4 +28,4 @@ module.exports = { }return ImportDeclaration;}() }; }return create;}() }; -//# sourceMappingURL=data:application/json;charset=utf-8;base64,eyJ2ZXJzaW9uIjozLCJzb3VyY2VzIjpbIi4uLy4uL3NyYy9ydWxlcy9uby1uYW1lZC1kZWZhdWx0LmpzIl0sIm5hbWVzIjpbIm1vZHVsZSIsImV4cG9ydHMiLCJtZXRhIiwidHlwZSIsImRvY3MiLCJjYXRlZ29yeSIsImRlc2NyaXB0aW9uIiwidXJsIiwic2NoZW1hIiwiY3JlYXRlIiwiY29udGV4dCIsIm5vZGUiLCJzcGVjaWZpZXJzIiwiZm9yRWFjaCIsImltIiwiaW1wb3J0S2luZCIsImltcG9ydGVkIiwibmFtZSIsInZhbHVlIiwicmVwb3J0IiwibG9jYWwiLCJtZXNzYWdlIl0sIm1hcHBpbmdzIjoiYUFBQSxxQzs7QUFFQUEsT0FBT0MsT0FBUCxHQUFpQjtBQUNmQyxRQUFNO0FBQ0pDLFVBQU0sWUFERjtBQUVKQyxVQUFNO0FBQ0pDLGdCQUFVLGFBRE47QUFFSkMsbUJBQWEsK0JBRlQ7QUFHSkMsV0FBSywwQkFBUSxrQkFBUixDQUhELEVBRkY7O0FBT0pDLFlBQVEsRUFQSixFQURTOzs7QUFXZkMsUUFYZSwrQkFXUkMsT0FYUSxFQVdDO0FBQ2QsYUFBTztBQUNMLDBDQUFxQiwyQkFBVUMsSUFBVixFQUFnQjt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ub2RlLnNwZWNpZmllcnMuZm9yRWFjaChmdW5jdGlvbiAoaW0pIHtcbiAgICAgICAgICBpZiAoaW0uaW1wb3J0S2luZCA9PT0gJ3R5cGUnIHx8IGltLmltcG9ydEtpbmQgPT09ICd0eXBlb2YnKSB7XG4gICAgICAgICAgICByZXR1cm47XG4gICAgICAgICAgfVxuXG4gICAgICAgICAgaWYgKGltLnR5cGUgPT09ICdJbXBvcnRTcGVjaWZpZXInICYmIChpbS5pbXBvcnRlZC5uYW1lIHx8IGltLmltcG9ydGVkLnZhbHVlKSA9PT0gJ2RlZmF1bHQnKSB7XG4gICAgICAgICAgICBjb250ZXh0LnJlcG9ydCh7XG4gICAgICAgICAgICAgIG5vZGU6IGltLmxvY2FsLFxuICAgICAgICAgICAgICBtZXNzYWdlOiBgVXNlIGRlZmF1bHQgaW1wb3J0IHN5bnRheCB0byBpbXBvcnQgJyR7aW0ubG9jYWwubmFtZX0nLmAgfSk7XG4gICAgICAgICAgfVxuICAgICAgICB9KTtcbiAgICAgIH0sXG4gICAgfTtcbiAgfSxcbn07XG4iXX0= \ No newline at end of file +//# sourceMappingURL=data:application/json;charset=utf-8;base64,eyJ2ZXJzaW9uIjozLCJzb3VyY2VzIjpbIi4uLy4uL3NyYy9ydWxlcy9uby1uYW1lZC1kZWZhdWx0LmpzIl0sIm5hbWVzIjpbIm1vZHVsZSIsImV4cG9ydHMiLCJtZXRhIiwidHlwZSIsImRvY3MiLCJjYXRlZ29yeSIsImRlc2NyaXB0aW9uIiwidXJsIiwic2NoZW1hIiwiY3JlYXRlIiwiY29udGV4dCIsIkltcG9ydERlY2xhcmF0aW9uIiwibm9kZSIsInNwZWNpZmllcnMiLCJmb3JFYWNoIiwiaW0iLCJpbXBvcnRLaW5kIiwiaW1wb3J0ZWQiLCJuYW1lIiwidmFsdWUiLCJyZXBvcnQiLCJsb2NhbCIsIm1lc3NhZ2UiXSwibWFwcGluZ3MiOiJhQUFBLHFDOztBQUVBQSxPQUFPQyxPQUFQL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XNjcmlwdGlvbjogJ0ZvcmJpZCBuYW1lZCBkZWZhdWx0IGV4cG9ydHMuJyxcbiAgICAgIHVybDogZG9jc1VybCgnbm8tbmFtZWQtZGVmYXVsdCcpLFxuICAgIH0sXG4gICAgc2NoZW1hOiBbXSxcbiAgfSxcblxuICBjcmVhdGUoY29udGV4dCkge1xuICAgIHJldHVybiB7XG4gICAgICBJbXBvcnREZWNsYXJhdGlvbihub2RlKSB7XG4gICAgICAgIG5vZGUuc3BlY2lmaWVycy5mb3JFYWNoKGZ1bmN0aW9uIChpbSkge1xuICAgICAgICAgIGlmIChpbS5pbXBvcnRLaW5kID09PSAndHlwZScgfHwgaW0uaW1wb3J0S2luZCA9PT0gJ3R5cGVvZicpIHtcbiAgICAgICAgICAgIHJldHVybjtcbiAgICAgICAgICB9XG5cbiAgICAgICAgICBpZiAoaW0udHlwZSA9PT0gJ0ltcG9ydFNwZWNpZmllcicgJiYgKGltLmltcG9ydGVkLm5hbWUgfHwgaW0uaW1wb3J0ZWQudmFsdWUpID09PSAnZGVmYXVsdCcpIHtcbiAgICAgICAgICAgIGNvbnRleHQucmVwb3J0KHtcbiAgICAgICAgICAgICAgbm9kZTogaW0ubG9jYWwsXG4gICAgICAgICAgICAgIG1lc3NhZ2U6IGBVc2UgZGVmYXVsdCBpbXBvcnQgc3ludGF4IHRvIGltcG9ydCAnJHtpbS5sb2NhbC5uYW1lfScuYCB9KTtcbiAgICAgICAgICB9XG4gICAgICAgIH0pO1xuICAgICAgfSxcbiAgICB9O1xuICB9LFxufTtcbiJdfQ== \ No newline at end of file diff --git a/node_modules/eslint-plugin-import/lib/rules/no-named-export.js b/node_modules/eslint-plugin-import/lib/rules/no-named-export.js index ffdd9bc347..a4320a44df 100644 --- a/node_modules/eslint-plugin-import/lib/rules/no-named-export.js +++ b/node_modules/eslint-plugin-import/lib/rules/no-named-export.js @@ -36,4 +36,4 @@ module.exports = { }return ExportNamedDeclaration;}() }; }return create;}() }; -//# sourceMappingURL=data:application/json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gICAgIHJldHVybiB7fTtcbiAgICB9XG5cbiAgICBjb25zdCBtZXNzYWdlID0gJ05hbWVkIGV4cG9ydHMgYXJlIG5vdCBhbGxvd2VkLic7XG5cbiAgICByZXR1cm4ge1xuICAgICAgRXhwb3J0QWxsRGVjbGFyYXRpb24obm9kZSkge1xuICAgICAgICBjb250ZXh0LnJlcG9ydCh7IG5vZGUsIG1lc3NhZ2UgfSk7XG4gICAgICB9LFxuXG4gICAgICBFeHBvcnROYW1lZERlY2xhcmF0aW9uKG5vZGUpIHtcbiAgICAgICAgaWYgKG5vZGUuc3BlY2lmaWVycy5sZW5ndGggPT09IDApIHtcbiAgICAgICAgICByZXR1cm4gY29udGV4dC5yZXBvcnQoeyBub2RlLCBtZXNzYWdlIH0pO1xuICAgICAgICB9XG5cbiAgICAgICAgY29uc3Qgc29tZU5hbWVkID0gbm9kZS5zcGVjaWZpZXJzLnNvbWUoc3BlY2lmaWVyID0+IChzcGVjaWZpZXIuZXhwb3J0ZWQubmFtZSB8fCBzcGVjaWZpZXIuZXhwb3J0ZWQudmFsdWUpICE9PSAnZGVmYXVsdCcpO1xuICAgICAgICBpZiAoc29tZU5hbWVkKSB7XG4gICAgICAgICAgY29udGV4dC5yZXBvcnQoeyBub2RlLCBtZXNzYWdlIH0pO1xuICAgICAgICB9XG4gICAgICB9LFxuICAgIH07XG4gIH0sXG59O1xuIl19 \ No newline at end of file +//# sourceMappingURL=data:application/json;charset=utf-8;base64,eyJ2ZXJzaW9uIjozLCJzb3VyY2VzIjpbIi4uLy4uL3NyYy9ydWxlcy9uby1uYW1lZC1leHBvcnQuanMiXSwibmFtZXMiOlsibW9kdWxlIiwiZXhwb3J0cyIsIm1ldGEiLCJ0eXBlIiwiZG9jcyIsImNhdGVnb3J5IiwiZGVzY3JpcHRpb24iLCJ1cmwiLCJzY2hlbWEiLCJjcmVhdGUiLCJjb250ZXh0IiwicGFyc2VyT3B0aW9ucyIsInNvdXJjZVR5cGUiLCJtZXNzYWdlIiwiR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ub2RlKSB7XG4gICAgICAgIGlmIChub2RlLnNwZWNpZmllcnMubGVuZ3RoID09PSAwKSB7XG4gICAgICAgICAgcmV0dXJuIGNvbnRleHQucmVwb3J0KHsgbm9kZSwgbWVzc2FnZSB9KTtcbiAgICAgICAgfVxuXG4gICAgICAgIGNvbnN0IHNvbWVOYW1lZCA9IG5vZGUuc3BlY2lmaWVycy5zb21lKChzcGVjaWZpZXIpID0+IChzcGVjaWZpZXIuZXhwb3J0ZWQubmFtZSB8fCBzcGVjaWZpZXIuZXhwb3J0ZWQudmFsdWUpICE9PSAnZGVmYXVsdCcpO1xuICAgICAgICBpZiAoc29tZU5hbWVkKSB7XG4gICAgICAgICAgY29udGV4dC5yZXBvcnQoeyBub2RlLCBtZXNzYWdlIH0pO1xuICAgICAgICB9XG4gICAgICB9LFxuICAgIH07XG4gIH0sXG59O1xuIl19 \ No newline at end of file diff --git a/node_modules/eslint-plugin-import/lib/rules/no-namespace.js b/node_modules/eslint-plugin-import/lib/rules/no-namespace.js index 152951b85b..2b0c783ade 100644 --- a/node_modules/eslint-plugin-import/lib/rules/no-namespace.js +++ b/node_modules/eslint-plugin-import/lib/rules/no-namespace.js @@ -12,8 +12,7 @@ var _docsUrl = require('../docsUrl');var _docsUrl2 = _interopRequireDefault(_doc /** * @fileoverview Rule to disallow namespace import * @author Radek Benkel - */module.exports = { meta: { - type: 'suggestion', + */module.exports = { meta: { type: 'suggestion', docs: { category: 'Style guide', description: 'Forbid namespace (a.k.a. "wildcard" `*`) imports.', @@ -82,10 +81,9 @@ var _docsUrl = require('../docsUrl');var _docsUrl2 = _interopRequireDefault(_doc // Replace the ImportNamespaceSpecifier with a list of ImportSpecifiers - var namedImportSpecifiers = importNames.map(function (importName) {return ( - importName === importLocalNames[importName] ? - importName : String( - importName) + ' as ' + String(importLocalNames[importName]));}); + var namedImportSpecifiers = importNames.map(function (importName) {return importName === importLocalNames[importName] ? + importName : String( + importName) + ' as ' + String(importLocalNames[importName]);}); fixes.push(fixer.replaceText(node, '{ ' + String(namedImportSpecifiers.join(', ')) + ' }')); @@ -116,7 +114,8 @@ function usesNamespaceAsObject(namespaceIdentifiers) { // `namespace.x` or `namespace['x']` return ( - parent && parent.type === 'MemberExpression' && ( + parent && + parent.type === 'MemberExpression' && ( parent.property.type === 'Identifier' || parent.property.type === 'Literal')); }); @@ -173,4 +172,4 @@ function generateLocalNames(names, nameConflicts, namespaceName) { }); return localNames; } -//# sourceMappingURL=data:application/json;charset=utf-8;base64,eyJ2ZXJzaW9uIjozLCJzb3VyY2VzIjpbIi4uLy4uL3NyYy9ydWxlcy9uby1uYW1lc3BhY2UuanMiXSwibmFtZXMiOlsibW9kdWxlIiwiZXhwb3J0cyIsIm1ldGEiLCJ0eXBlIiwiZG9jcyIsImNhdGVnb3J5IiwiZGVzY3JpcHRpb24iLCJ1cmwiLCJmaXhhYmxlIiwic2NoZW1hIiwicHJvcGVydGllcyIsImlnbm9yZSIsIml0ZW1zIiwidW5pcXVlSXRlbXMiLCJjcmVhdGUiLCJjb250ZXh0IiwiZmlyc3RPcHRpb24iLCJvcHRpb25zIiwiaWdub3JlR2xvYnMiLCJJbXBvcnROYW1lc3BhY2VTcGVjaWZpZXIiLCJub2RlIiwiZmluZCIsInBhcmVudCIsInNvdXJjZSIsInZhbHVlIiwiZ2xvYiIsIm1hdGNoQmFzZSIsInNjb3BlVmFyaWFibGVzIiwiZ2V0U2NvcGUiLCJ2YXJpYWJsZXMiLCJuYW1lc3BhY2VWYXJpYWJsZSIsInZhcmlhYmxlIiwiZGVmcyIsIm5hbWVzcGFjZVJlZmVyZW5jZXMiLCJyZWZlcmVuY2VzIiwibmFtZXNwYWNlSWRlbnRpZmllcnMiLCJtYXAiLCJyZWZlcmVuY2UiLCJpZGVudGlmaWVyIiwiY2FuRml4IiwibGVuZ3RoIiwidXNlc05hbWVzcGFjZUFzT2JqZWN0IiwicmVwb3J0IiwibWVzc2FnZSIsImZpeCIsInNjb3BlTWFuYWdlciIsImdldFNvdXJjZ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ZSBjYW4gYmUgc3VyZSB0aGF0IHdlIGNob29zZSBub24tY29uZmxpY3RpbmcgaW1wb3J0IG5hbWVzXG4gICAgICAgICAgICBjb25zdCBpbXBvcnROYW1lQ29uZmxpY3RzID0ge307XG4gICAgICAgICAgICBuYW1lc3BhY2VJZGVudGlmaWVycy5mb3JFYWNoKChpZGVudGlmaWVyKSA9PiB7XG4gICAgICAgICAgICAgIGNvbnN0IHBhcmVudCA9IGlkZW50aWZpZXIucGFyZW50O1xuICAgICAgICAgICAgICBpZiAocGFyZW50ICYmIHBhcmVudC50eXBlID09PSAnTWVtYmVyRXhwcmVzc2lvbicpIHtcbiAgICAgICAgICAgICAgICBjb25zdCBpbXBvcnROYW1lID0gZ2V0TWVtYmVyUHJvcGVydHlOYW1lKHBhcmVudCk7XG4gICAgICAgICAgICAgICAgY29uc3QgbG9jYWxDb25mbGljdHMgPSBnZXRWYXJpYWJsZU5hbWVzSW5TY29wZShzY29wZU1hbmFnZXIsIHBhcmVudCk7XG4gICAgICAgICAgICAgICAgaWYgKCFpbXBvcnROYW1lQ29uZmxpY3RzW2ltcG9ydE5hbWVdKSB7XG4gICAgICAgICAgICAgICAgICBpbXBvcnROYW1lQ29uZmxpY3RzW2ltcG9ydE5hbWVdID0gbG9jYWxDb25mbGljdHM7XG4gICAgICAgICAgICAgICAgfSBlbHNlIHtcbiAgICAgICAgICAgICAgICAgIGxvY2FsQ29uZmxpY3RzLmZvckVhY2goKGMpID0+IGltcG9ydE5hbWVDb25mbGljdHNbaW1wb3J0TmFtZV0uYWRkKGMpKTtcbiAgICAgICAgICAgICAgICB9XG4gICAgICAgICAgICAgIH1cbiAgICAgICAgICAgIH0pO1xuXG4gICAgICAgICAgICAvLyBDaG9vc2UgbmV3IG5hbWVzIGZvciBlYWNoIGltcG9ydFxuICAgICAgICAgICAgY29uc3QgaW1wb3J0TmFtZXMgPSBPYmplY3Qua2V5cyhpbXBvcnROYW1lQ29uZmxpY3RzKTtcbiAgICAgICAgICAgIG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gKlxuICogQHBhcmFtIHsqfSBuYW1lc1xuICogQHBhcmFtIHsqfSBuYW1lQ29uZmxpY3RzXG4gKiBAcGFyYW0geyp9IG5hbWVzcGFjZU5hbWVcbiAqL1xuZnVuY3Rpb24gZ2VuZXJhdGVMb2NhbE5hbWVzKG5hbWVzLCBuYW1lQ29uZmxpY3RzLCBuYW1lc3BhY2VOYW1lKSB7XG4gIGNvbnN0IGxvY2FsTmFtZXMgPSB7fTtcbiAgbmFtZXMuZm9yRWFjaCgobmFtZSkgPT4ge1xuICAgIGxldCBsb2NhbE5hbWU7XG4gICAgaWYgKCFuYW1lQ29uZmxpY3RzW25hbWVdLmhhcyhuYW1lKSkge1xuICAgICAgbG9jYWxOYW1lID0gbmFtZTtcbiAgICB9IGVsc2UgaWYgKCFuYW1lQ29uZmxpY3RzW25hbWVdLmhhcyhgJHtuYW1lc3BhY2VOYW1lfV8ke25hbWV9YCkpIHtcbiAgICAgIGxvY2FsTmFtZSA9IGAke25hbWVzcGFjZU5hbWV9XyR7bmFtZX1gO1xuICAgIH0gZWxzZSB7XG4gICAgICBmb3IgKGxldCBpID0gMTsgaSA8IEluZmluaXR5OyBpKyspIHtcbiAgICAgICAgaWYgKCFuYW1lQ29uZmxpY3RzW25hbWVdLmhhcyhgJHtuYW1lc3BhY2VOYW1lfV8ke25hbWV9XyR7aX1gKSkge1xuICAgICAgICAgIGxvY2FsTmFtZSA9IGAke25hbWVzcGFjZU5hbWV9XyR7bmFtZX1fJHtpfWA7XG4gICAgICAgICAgYnJlYWs7XG4gICAgICAgIH1cbiAgICAgIH1cbiAgICB9XG4gICAgbG9jYWxOYW1lc1tuYW1lXSA9IGxvY2FsTmFtZTtcbiAgfSk7XG4gIHJldHVybiBsb2NhbE5hbWVzO1xufVxuIl19 \ No newline at end of file +//# sourceMappingURL=data:application/json;charset=utf-8;base64,eyJ2ZXJzaW9uIjozLCJzb3VyY2VzIjpbIi4uLy4uL3NyYy9ydWxlcy9uby1uYW1lc3BhY2Uuan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ucGFyZW50O1xuICAgICAgICAgICAgICBpZiAocGFyZW50ICYmIHBhcmVudC50eXBlID09PSAnTWVtYmVyRXhwcmVzc2lvbicpIHtcbiAgICAgICAgICAgICAgICBjb25zdCBpbXBvcnROYW1lID0gZ2V0TWVtYmVyUHJvcGVydHlOYW1lKHBhcmVudCk7XG4gICAgICAgICAgICAgICAgY29uc3QgbG9jYWxDb25mbGljdHMgPSBnZXRWYXJpYWJsZU5hbWVzSW5TY29wZShzY29wZU1hbmFnZXIsIHBhcmVudCk7XG4gICAgICAgICAgICAgICAgaWYgKCFpbXBvcnROYW1lQ29uZmxpY3RzW2ltcG9ydE5hbWVdKSB7XG4gICAgICAgICAgICAgICAgICBpbXBvcnROYW1lQ29uZmxpY3RzW2ltcG9ydE5hbWVdID0gbG9jYWxDb25mbGljdHM7XG4gICAgICAgICAgICAgICAgfSBlbHNlIHtcbiAgICAgICAgICAgICAgICAgIGxvY2FsQ29uZmxpY3RzLmZvckVhY2goKGMpID0+IGltcG9ydE5hbWVDb25mbGljdHNbaW1wb3J0TmFtZV0uYWRkKGMpKTtcbiAgICAgICAgICAgICAgICB9XG4gICAgICAgICAgICAgIH1cbiAgICAgICAgICAgIH0pO1xuXG4gICAgICAgICAgICAvLyBDaG9vc2UgbmV3IG5hbWVzIGZvciBlYWNoIGltcG9ydFxuICAgICAgICAgICAgY29uc3QgaW1wb3J0TmFtZXMgPSBPYmplY3Qua2V5cyhpbXBvcnROYW1lQ29uZmxpY3RzKTtcbiAgICAgICAgICAgIGNvbnN0IGltcG9ydExvY2FsTmFtZXMgPSBnZW5lcmF0ZUxvY2FsTmFtZXMoXG4gICAgICAgICAgICAgIGltcG9ydE5hbWVzLFxuICAgICAgICAgICAgICBpbXBvcnROYW1lQ29uZmxpY3RzLFxuICAgICAgICAgICAgICBuYW1lc3BhY2VWYXJpYWJsZS5uYW1lLFxuICAgICAgICAgICAgKTtcblxuICAgICAgICAgICAgLy8gUmVwbGFjZSB0aGUgSW1wb3J0TmFt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jaCgobmFtZSkgPT4ge1xuICAgIGxldCBsb2NhbE5hbWU7XG4gICAgaWYgKCFuYW1lQ29uZmxpY3RzW25hbWVdLmhhcyhuYW1lKSkge1xuICAgICAgbG9jYWxOYW1lID0gbmFtZTtcbiAgICB9IGVsc2UgaWYgKCFuYW1lQ29uZmxpY3RzW25hbWVdLmhhcyhgJHtuYW1lc3BhY2VOYW1lfV8ke25hbWV9YCkpIHtcbiAgICAgIGxvY2FsTmFtZSA9IGAke25hbWVzcGFjZU5hbWV9XyR7bmFtZX1gO1xuICAgIH0gZWxzZSB7XG4gICAgICBmb3IgKGxldCBpID0gMTsgaSA8IEluZmluaXR5OyBpKyspIHtcbiAgICAgICAgaWYgKCFuYW1lQ29uZmxpY3RzW25hbWVdLmhhcyhgJHtuYW1lc3BhY2VOYW1lfV8ke25hbWV9XyR7aX1gKSkge1xuICAgICAgICAgIGxvY2FsTmFtZSA9IGAke25hbWVzcGFjZU5hbWV9XyR7bmFtZX1fJHtpfWA7XG4gICAgICAgICAgYnJlYWs7XG4gICAgICAgIH1cbiAgICAgIH1cbiAgICB9XG4gICAgbG9jYWxOYW1lc1tuYW1lXSA9IGxvY2FsTmFtZTtcbiAgfSk7XG4gIHJldHVybiBsb2NhbE5hbWVzO1xufVxuIl19 \ No newline at end of file diff --git a/node_modules/eslint-plugin-import/lib/rules/no-nodejs-modules.js b/node_modules/eslint-plugin-import/lib/rules/no-nodejs-modules.js index ac168c7313..b25c561b3f 100644 --- a/node_modules/eslint-plugin-import/lib/rules/no-nodejs-modules.js +++ b/node_modules/eslint-plugin-import/lib/rules/no-nodejs-modules.js @@ -4,7 +4,7 @@ var _docsUrl = require('../docsUrl');var _docsUrl2 = _interopRequireDefault(_doc function reportIfMissing(context, node, allowed, name) { if (allowed.indexOf(name) === -1 && (0, _importType2['default'])(name, context) === 'builtin') { - context.report(node, 'Do not import Node.js builtin module "' + name + '"'); + context.report(node, 'Do not import Node.js builtin module "' + String(name) + '"'); } } @@ -41,4 +41,4 @@ module.exports = { reportIfMissing(context, node, allowed, source.value); }, { commonjs: true }); }return create;}() }; -//# sourceMappingURL=data:application/json;charset=utf-8;base64,eyJ2ZXJzaW9uIjozLCJzb3VyY2VzIjpbIi4uLy4uL3NyYy9ydWxlcy9uby1ub2RlanMtbW9kdWxlcy5qcyJdLCJuYW1lcyI6WyJyZXBvcnRJZk1pc3NpbmciLCJjb250ZXh0Iiwibm9kZSIsImFsbG93ZWQiLCJuYW1lIiwiaW5kZXhPZiIsInJlcG9ydCIsIm1vZHVsZSIsImV4cG9ydHMiLCJtZXRhIiwidHlwZSIsImRvY3MiLCJjYXRlZ29yeSIsImRlc2NyaXB0aW9uIiwidXJsIiwic2NoZW1hIiwicHJvcGVydGllcyIsImFsbG93IiwidW5pcXVlSXRlbXMiLCJpdGVtcyIsImFkZGl0aW9uYWxQcm9wZXJ0aWVzIiwiY3JlYXRlIiwib3B0aW9ucyIsInNvdXJjZSIsInZhbHVlIiwiY29tbW9uanMiXSwibWFwcGluZ3MiOiJhQUFBLGdEO0FBQ0Esa0U7QUFDQSxxQzs7QUFFQSxTQUFTQSxlQUFULENBQXlCQyxPQUF6QixFQUFrQ0MsSUFBbEMsRUFBd0NDLE9BQXhDLEVBQWlEQyxJQUFqRCxFQUF1RDtBQUNyRCxNQUFJRCxRQUFRRSxPQUFSLENBQWdCRCxJQUFoQixNQUEwQixDQUFDLENBQTNCLElBQWdDLDZCQUFXQSxJQUFYLEVBQWlCSCxPQUFqQixNQUE4QixTQUFsRSxFQUE2RTtBQUMzRUEsWUFBUUssTUFBUixDQUFlSixJQUFmLEVBQXFCLDJDQUEyQ0UsSUFBM0MsR0FBa0QsR0FBdkU7QUFDRDtBQUNGOztBQUVERyxPQUFPQyxPQUFQLEdBQWlCO0FBQ2ZDLFFBQU07QUFDSkMsVUFBTSxZQURGO0FBRUpDLFVBQU07QUFDSkMsZ0JBQVUsZ0JBRE47QUFFSkMsbUJBQWEsaUNBRlQ7QUFHSkMsV0FBSywwQkFB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ICAgIHJlcG9ydElmTWlzc2luZyhjb250ZXh0LCBub2RlLCBhbGxvd2VkLCBzb3VyY2UudmFsdWUpO1xuICAgIH0sIHsgY29tbW9uanM6IHRydWUgfSk7XG4gIH0sXG59O1xuIl19 \ No newline at end of file diff --git a/node_modules/eslint-plugin-import/lib/rules/no-relative-packages.js b/node_modules/eslint-plugin-import/lib/rules/no-relative-packages.js index 334ad2babf..4e9bc1ef24 100644 --- a/node_modules/eslint-plugin-import/lib/rules/no-relative-packages.js +++ b/node_modules/eslint-plugin-import/lib/rules/no-relative-packages.js @@ -68,4 +68,4 @@ module.exports = { create: function () {function create(context) { return (0, _moduleVisitor2['default'])(function (source) {return checkImportForRelativePackage(context, source.value, source);}, context.options[0]); }return create;}() }; -//# sourceMappingURL=data:application/json;charset=utf-8;base64,eyJ2ZXJzaW9uIjozLCJzb3VyY2VzIjpbIi4uLy4uL3NyYy9ydWxlcy9uby1yZWxhdGl2ZS1wYWNrYWdlcy5qcyJdLCJuYW1lcyI6WyJ0b1Bvc2l4UGF0aCIsImZpbGVQYXRoIiwicmVwbGFjZSIsImZpbmROYW1lZFBhY2thZ2UiLCJmb3VuZCIsImN3ZCIsInBrZyIsIm5hbWUiLCJwYXRoIiwiam9pbiIsImNoZWNrSW1wb3J0Rm9yUmVsYXRpdmVQYWNrYWdlIiwiY29udGV4dCIsImltcG9ydFBhdGgiLCJub2RlIiwicG90ZW50aWFsVmlvbGF0aW9uVHlwZXMiLCJpbmRleE9mIiwicmVzb2x2ZWRJbXBvcnQiLCJyZXNvbHZlZENvbnRleHQiLCJnZXRQaHlzaWNhbEZpbGVuYW1lIiwiZ2V0RmlsZW5hbWUiLCJpbXBvcnRQa2ciLCJjb250ZXh0UGtnIiwiaW1wb3J0QmFzZU5hbWUiLCJiYXNlbmFtZSIsImltcG9ydFJvb3QiLCJkaXJuYW1lIiwicHJvcGVyUGF0aCIsInJlbGF0aXZlIiwicHJvcGVySW1wb3J0IiwicmVwb3J0IiwibWVzc2FnZ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9kZSwgSlNPTi5zdHJpbmdpZnkodG9Qb3NpeFBhdGgocHJvcGVySW1wb3J0KSkpXG4gICAgICAsXG4gICAgfSk7XG4gIH1cbn1cblxubW9kdWxlLmV4cG9ydHMgPSB7XG4gIG1ldGE6IHtcbiAgICB0eXBlOiAnc3VnZ2VzdGlvbicsXG4gICAgZG9jczoge1xuICAgICAgY2F0ZWdvcnk6ICdTdGF0aWMgYW5hbHlzaXMnLFxuICAgICAgZGVzY3JpcHRpb246ICdGb3JiaWQgaW1wb3J0aW5nIHBhY2thZ2VzIHRocm91Z2ggcmVsYXRpdmUgcGF0aHMuJyxcbiAgICAgIHVybDogZG9jc1VybCgnbm8tcmVsYXRpdmUtcGFja2FnZXMnKSxcbiAgICB9LFxuICAgIGZpeGFibGU6ICdjb2RlJyxcbiAgICBzY2hlbWE6IFttYWtlT3B0aW9uc1NjaGVtYSgpXSxcbiAgfSxcblxuICBjcmVhdGUoY29udGV4dCkge1xuICAgIHJldHVybiBtb2R1bGVWaXNpdG9yKChzb3VyY2UpID0+IGNoZWNrSW1wb3J0Rm9yUmVsYXRpdmVQYWNrYWdlKGNvbnRleHQsIHNvdXJjZS52YWx1ZSwgc291cmNlKSwgY29udGV4dC5vcHRpb25zWzBdKTtcbiAgfSxcbn07XG4iXX0= \ No newline at end of file +//# sourceMappingURL=data:application/json;charset=utf-8;base64,eyJ2ZXJzaW9uIjozLCJzb3VyY2VzIjpbIi4uLy4uL3NyYy9ydWxlcy9uby1yZWxhdGl2ZS1wYWNrYWdlcy5qcyJdLCJuYW1lcyI6WyJ0b1Bvc2l4UGF0aCIsImZpbGVQYXRoIiwicmVwbGFjZSIsImZpbmROYW1lZFBhY2thZ2UiLCJmb3VuZCIsImN3ZCIsInBrZyIsIm5hbWUiLCJwYXRoIiwiam9pbiIsImNoZWNrSW1wb3J0Rm9yUmVsYXRpdmVQYWNrYWdlIiwiY29udGV4dCIsImltcG9ydFBhdGgiLCJub2RlIiwicG90ZW50aWFsVmlvbGF0a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ydFJvb3QpID8gJycgOiBpbXBvcnRCYXNlTmFtZSxcbiAgICApO1xuICAgIGNvbnRleHQucmVwb3J0KHtcbiAgICAgIG5vZGUsXG4gICAgICBtZXNzYWdlOiBgUmVsYXRpdmUgaW1wb3J0IGZyb20gYW5vdGhlciBwYWNrYWdlIGlzIG5vdCBhbGxvd2VkLiBVc2UgXFxgJHtwcm9wZXJJbXBvcnR9XFxgIGluc3RlYWQgb2YgXFxgJHtpbXBvcnRQYXRofVxcYGAsXG4gICAgICBmaXg6IChmaXhlcikgPT4gZml4ZXIucmVwbGFjZVRleHQobm9kZSwgSlNPTi5zdHJpbmdpZnkodG9Qb3NpeFBhdGgocHJvcGVySW1wb3J0KSkpXG4gICAgICAsXG4gICAgfSk7XG4gIH1cbn1cblxubW9kdWxlLmV4cG9ydHMgPSB7XG4gIG1ldGE6IHtcbiAgICB0eXBlOiAnc3VnZ2VzdGlvbicsXG4gICAgZG9jczoge1xuICAgICAgY2F0ZWdvcnk6ICdTdGF0aWMgYW5hbHlzaXMnLFxuICAgICAgZGVzY3JpcHRpb246ICdGb3JiaWQgaW1wb3J0aW5nIHBhY2thZ2VzIHRocm91Z2ggcmVsYXRpdmUgcGF0aHMuJyxcbiAgICAgIHVybDogZG9jc1VybCgnbm8tcmVsYXRpdmUtcGFja2FnZXMnKSxcbiAgICB9LFxuICAgIGZpeGFibGU6ICdjb2RlJyxcbiAgICBzY2hlbWE6IFttYWtlT3B0aW9uc1NjaGVtYSgpXSxcbiAgfSxcblxuICBjcmVhdGUoY29udGV4dCkge1xuICAgIHJldHVybiBtb2R1bGVWaXNpdG9yKChzb3VyY2UpID0+IGNoZWNrSW1wb3J0Rm9yUmVsYXRpdmVQYWNrYWdlKGNvbnRleHQsIHNvdXJjZS52YWx1ZSwgc291cmNlKSwgY29udGV4dC5vcHRpb25zWzBdKTtcbiAgfSxcbn07XG4iXX0= \ No newline at end of file diff --git a/node_modules/eslint-plugin-import/lib/rules/no-relative-parent-imports.js b/node_modules/eslint-plugin-import/lib/rules/no-relative-parent-imports.js index 4dc560ec07..a1095ff45a 100644 --- a/node_modules/eslint-plugin-import/lib/rules/no-relative-parent-imports.js +++ b/node_modules/eslint-plugin-import/lib/rules/no-relative-parent-imports.js @@ -18,7 +18,7 @@ module.exports = { create: function () {function noRelativePackages(context) { var myPath = context.getPhysicalFilename ? context.getPhysicalFilename() : context.getFilename(); - if (myPath === '') return {}; // can't check a non-file + if (myPath === '') {return {};} // can't check a non-file function checkSourceValue(sourceNode) { var depPath = sourceNode.value; @@ -38,14 +38,11 @@ module.exports = { if ((0, _importType2['default'])(relDepPath, context) === 'parent') { context.report({ node: sourceNode, - message: 'Relative imports from parent directories are not allowed. ' + 'Please either pass what you\'re importing through at runtime ' + ('(dependency injection), move `' + String( - - (0, _path.basename)(myPath)) + '` to same ') + ('directory as `' + String( - depPath) + '` or consider making `' + String(depPath) + '` a package.') }); + message: 'Relative imports from parent directories are not allowed. Please either pass what you\'re importing through at runtime (dependency injection), move `' + String((0, _path.basename)(myPath)) + '` to same directory as `' + String(depPath) + '` or consider making `' + String(depPath) + '` a package.' }); } } return (0, _moduleVisitor2['default'])(checkSourceValue, context.options[0]); }return noRelativePackages;}() }; -//# sourceMappingURL=data:application/json;charset=utf-8;base64,eyJ2ZXJzaW9uIjozLCJzb3VyY2VzIjpbIi4uLy4uL3NyYy9ydWxlcy9uby1yZWxhdGl2ZS1wYXJlbnQtaW1wb3J0cy5qcyJdLCJuYW1lcyI6WyJtb2R1bGUiLCJleHBvcnRzIiwibWV0YSIsInR5cGUiLCJkb2NzIiwiY2F0ZWdvcnkiLCJkZXNjcmlwdGlvbiIsInVybCIsInNjaGVtYSIsImNyZWF0ZSIsIm5vUmVsYXRpdmVQYWNrYWdlcyIsImNvbnRleHQiLCJteVBhdGgiLCJnZXRQaHlzaWNhbEZpbGVuYW1lIiwiZ2V0RmlsZW5hbWUiLCJjaGVja1NvdXJjZVZhbHVlIiwic291cmNlTm9kZSIsImRlcFBhdGgiLC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RzIGZyb20gcGFyZW50IGRpcmVjdG9yaWVzIGFyZSBub3QgYWxsb3dlZC4gJyArXG4gICAgICAgICAgICBgUGxlYXNlIGVpdGhlciBwYXNzIHdoYXQgeW91J3JlIGltcG9ydGluZyB0aHJvdWdoIGF0IHJ1bnRpbWUgYCArXG4gICAgICAgICAgICBgKGRlcGVuZGVuY3kgaW5qZWN0aW9uKSwgbW92ZSBcXGAke2Jhc2VuYW1lKG15UGF0aCl9XFxgIHRvIHNhbWUgYCArXG4gICAgICAgICAgICBgZGlyZWN0b3J5IGFzIFxcYCR7ZGVwUGF0aH1cXGAgb3IgY29uc2lkZXIgbWFraW5nIFxcYCR7ZGVwUGF0aH1cXGAgYSBwYWNrYWdlLmAsXG4gICAgICAgIH0pO1xuICAgICAgfVxuICAgIH1cblxuICAgIHJldHVybiBtb2R1bGVWaXNpdG9yKGNoZWNrU291cmNlVmFsdWUsIGNvbnRleHQub3B0aW9uc1swXSk7XG4gIH0sXG59O1xuIl19 \ No newline at end of file +//# sourceMappingURL=data:application/json;charset=utf-8;base64,eyJ2ZXJzaW9uIjozLCJzb3VyY2VzIjpbIi4uLy4uL3NyYy9ydWxlcy9uby1yZWxhdGl2ZS1wYXJlbnQtaW1wb3J0cy5qcyJdLCJuYW1lcyI6WyJtb2R1bGUiLCJleHBvcnRzIiwibWV0YSIsInR5cGUiLCJkb2NzIiwiY2F0ZWdvcnkiLCJkZXNjcmlwdGlvbiIsInVybCIsInNjaGVtYSIsImNyZWF0ZSIsIm5vUmVsYXRpdmVQYWNrYWdlcyIsImNvbnRleHQiLCJteVBhdGgiLCJnZXRQaHlzaWNhbEZpbGVuYW1lIiwiZ2V0RmlsZW5hbWUiLCJjaGVja1NvdXJjZVZhbHVlIiwic291cmNlTm9kZSIsImRlcFBhdGgiLCJ2YWx1ZSIsImFic0RlcFBhdGgiLCJyZWxEZXBQYXRoIiwicmVwb3J0Iiwibm9kZSIsIm1lc3NhZ2UiLCJvcHRpb25zIl0sIm1hcHBpb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dGhlciBwYXNzIHdoYXQgeW91J3JlIGltcG9ydGluZyB0aHJvdWdoIGF0IHJ1bnRpbWUgKGRlcGVuZGVuY3kgaW5qZWN0aW9uKSwgbW92ZSBcXGAke2Jhc2VuYW1lKG15UGF0aCl9XFxgIHRvIHNhbWUgZGlyZWN0b3J5IGFzIFxcYCR7ZGVwUGF0aH1cXGAgb3IgY29uc2lkZXIgbWFraW5nIFxcYCR7ZGVwUGF0aH1cXGAgYSBwYWNrYWdlLmAsXG4gICAgICAgIH0pO1xuICAgICAgfVxuICAgIH1cblxuICAgIHJldHVybiBtb2R1bGVWaXNpdG9yKGNoZWNrU291cmNlVmFsdWUsIGNvbnRleHQub3B0aW9uc1swXSk7XG4gIH0sXG59O1xuIl19 \ No newline at end of file diff --git a/node_modules/eslint-plugin-import/lib/rules/no-restricted-paths.js b/node_modules/eslint-plugin-import/lib/rules/no-restricted-paths.js index 7952fba90b..e0c9a5c894 100644 --- a/node_modules/eslint-plugin-import/lib/rules/no-restricted-paths.js +++ b/node_modules/eslint-plugin-import/lib/rules/no-restricted-paths.js @@ -77,11 +77,11 @@ module.exports = { var restrictedPaths = options.zones || []; var basePath = options.basePath || process.cwd(); var currentFilename = context.getPhysicalFilename ? context.getPhysicalFilename() : context.getFilename(); - var matchingZones = restrictedPaths.filter(function (zone) { - return [].concat(zone.target). + var matchingZones = restrictedPaths.filter( + function (zone) {return [].concat(zone.target). map(function (target) {return _path2['default'].resolve(basePath, target);}). - some(function (targetPath) {return isMatchingTargetPath(currentFilename, targetPath);}); - }); + some(function (targetPath) {return isMatchingTargetPath(currentFilename, targetPath);});}); + function isMatchingTargetPath(filename, targetPath) { if ((0, _isGlob2['default'])(targetPath)) { @@ -233,8 +233,7 @@ module.exports = { reportInvalidExceptions(validatorsWithInvalidExceptions, node); var applicableValidatorsForImportPathExcludingExceptions = applicableValidatorsForImportPath. - filter(function (validator) {return validator.hasValidExceptions;}). - filter(function (validator) {return !validator.isPathException(absoluteImportPath);}); + filter(function (validator) {return validator.hasValidExceptions && !validator.isPathException(absoluteImportPath);}); reportImportsInRestrictedZone(applicableValidatorsForImportPathExcludingExceptions, node, importPath, zone.message); }); } @@ -243,4 +242,4 @@ module.exports = { checkForRestrictedImportPath(source.value, source); }, { commonjs: true }); }return noRestrictedPaths;}() }; -//# sourceMappingURL=data:application/json;charset=utf-8;base64,eyJ2ZXJzaW9uIjozLCJzb3VyY2VzIjpbIi4uLy4uL3NyYy9ydWxlcy9uby1yZXN0cmljdGVkLXBhdGhzLmpzIl0sIm5hbWVzIjpbImNvbnRhaW5zUGF0aCIsImZpbGVwYXRoIiwidGFyZ2V0IiwicmVsYXRpdmUiLCJwYXRoIiwic3RhcnRzV2l0aCIsIm1vZHVsZSIsImV4cG9ydHMiLCJtZXRhIiwidHlwZSIsImRvY3MiLCJjYXRlZ29yeSIsImRlc2NyaXB0aW9uIiwidXJsIiwic2NoZW1hIiwicHJvcGVydGllcyIsInpvbmVzIiwibWluSXRlbXMiLCJpdGVtcyIsImFueU9mIiwidW5pcXVlSXRlbXMiLCJtaW5MZW5ndGgiLCJmcm9tIiwiZXhjZXB0IiwibWVzc2FnZSIsImFkZGl0aW9uYWxQcm9wZXJ0aWVzIiwiYmFzZVBhdGgiLCJjcmVhdGUiLCJub1Jlc3RyaWN0ZWRQYXRocyIsImNvbnRleHQiLCJvcHRpb25zIiwicmVzdHJpY3RlZFBhdGhzIiwicHJvY2VzcyIsImN3ZCIsImN1cnJlbnRGaWxlbmFtZSIsImdldFBoeXNpY2FsRmlsZW5hbWUiLCJnZXRGaWxlbmFtZSIsIm1hdGNoaW5nWm9uZXMiLCJmaWx0ZXIiLCJ6b25lIiwiY29uY2F0IiwibWFwIiwicmVzb2x2ZSIsInNvbWUiLCJpc01hdGNoaW5nVGFyZ2V0UGF0aCIsInRhcmdldFBhdGgiLCJmaWxlbmFtZSIsIm1tIiwiTWluaW1hdGNoIiwibWF0Y2giLCJpc1ZhbGlkRXhjZXB0aW9uUGF0aCIsImFic29sd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XQpID0+IHtcbiAgY29uc3QgcmVsYXRpdmUgPSBwYXRoLnJlbGF0aXZlKHRhcmdldCwgZmlsZXBhdGgpO1xuICByZXR1cm4gcmVsYXRpdmUgPT09ICcnIHx8ICFyZWxhdGl2ZS5zdGFydHNXaXRoKCcuLicpO1xufTtcblxubW9kdWxlLmV4cG9ydHMgPSB7XG4gIG1ldGE6IHtcbiAgICB0eXBlOiAncHJvYmxlbScsXG4gICAgZG9jczoge1xuICAgICAgY2F0ZWdvcnk6ICdTdGF0aWMgYW5hbHlzaXMnLFxuICAgICAgZGVzY3JpcHRpb246ICdFbmZvcmNlIHdoaWNoIGZpbGVzIGNhbiBiZSBpbXBvcnRlZCBpbiBhIGdpdmVuIGZvbGRlci4nLFxuICAgICAgdXJsOiBkb2NzVXJsKCduby1yZXN0cmljdGVkLXBhdGhzJyksXG4gICAgfSxcblxuICAgIHNjaGVtYTogW1xuICAgICAge1xuICAgICAgICB0eXBlOiAnb2JqZWN0JyxcbiAgICAgICAgcHJvcGVydGllczoge1xuICAgICAgICAgIHpvbmVzOiB7XG4gICAgICAgICAgICB0eXBlOiAnYXJyYXknLFxuICAgICAgICAgICAgbWluSXRlbXM6IDEsXG4gICAgICAgICAgICBpdGVtczoge1xuICAgICAgICAgICAgICB0eXBlOiAnb2JqZWN0JyxcbiAgICAgICAgICAgICAgcHJvcGVydGllczoge1xuICAgICAgICAgICAgICAgIHRhcmdldDoge1xuICAgICAgICAgICAgICAgICAgYW55T2Y6IFtcbiAgICAgICAgICAgICAgICAgICAgeyB0eXBlOiAnc3RyaW5nJyB9LFxuICAgICAgICAgICAgICAgICAgICB7XG4gICAgICAgICAgICAgICAgICAgICAgdHlwZTogJ2FycmF5JyxcbiAgICAgICAgICAgICAgICAgICAgICBpdGVtczogeyB0eXBlOiAnc3RyaW5nJyB9LFxuICAgICAgICAgICAgICAgICAgICAgIHVuaXF1ZUl0ZW1zOiB0cnVlLFxuICAgICAgICAgICAgICAgICAgICAgIG1pbkxlbmd0aDogMSxcbiAgICAgICAgICAgICAgICAgICAgfSxcbiAgICAgICAgICAgICAgICAgIF0sXG4gICAgICAgICAgICAgICAgfSxcbiAgICAgICAgICAgICAgICBmcm9tOiB7XG4gICAgICAgICAgICAgICAgICBhbnlPZjogW1xuICAgICAgICAgICAgICAgICAgICB7IHR5cGU6ICdzdHJpbmcnIH0sXG4gICAgICAgICAgICAgICAgICAgIHtcbiAgICAgICAgICAgICAgICAgICAgICB0eXBlOiAnYXJyYXknLFxuICAgICAgICAgICAgICAgICAgICAgIGl0ZW1zOiB7IHR5cGU6ICdzdHJpbmcnIH0sXG4gICAgICAgICAgICAgICAgICAgICAgdW5pcXVlSXRlbXM6IHRydWUsXG4gICAgICAgICAgICAgICAgICAgICAgbWluTGVuZ3RoOiAxLFxuICAgICAgICAgICAgICAgICAgICB9LFxuICAgICAgICAgICAgICAgICAgXSxcbiAgICAgICAgICAgICAgICB9LFxuICAgICAgICAgICAgICAgIGV4Y2VwdDoge1xuICAgICAgICAgICAgICAgICAgdHlwZTogJ2FycmF5JyxcbiAgICAgICAgICAgICAgICAgIGl0ZW1zOiB7XG4gICAgICAgICAgICAgICAgICAgIHR5cGU6ICdzdHJpbmcnLFxuICAgICAgICAgICAgICAgICAgfSxcbiAgICAgICAgICAgICAgICAgIHVuaXF1ZUl0ZW1zOiB0cnVlLFxuICAgICAgICAgICAgICAgIH0sXG4gICAgICAgICAgICAgICAgbWVzc2FnZTogeyB0eXBlOiAnc3RyaW5nJyB9LFxuICAgICAgICAgICAgICB9LFxuICAgICAgICAgICAgICBhZGRpdGlvbmFsUHJvcGVydGllczogZmFsc2UsXG4gICAgICAgICAgICB9LFxuICAgICAgICAgIH0sXG4gICAgICAgICAgYmFzZVBhdGg6IHsgdHlwZTogJ3N0cmluZycgfSxcbiAgICAgICAgfSxcbiAgICAgICAgYWRkaXRpb25hbFByb3BlcnRpZXM6IGZhbHNlLFxuICAgICAgfSxcbiAgICBdLFxuICB9LFxuXG4gIGNyZWF0ZT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ICAgICAgcmVwb3J0SW52YWxpZEV4Y2VwdGlvbnModmFsaWRhdG9yc1dpdGhJbnZhbGlkRXhjZXB0aW9ucywgbm9kZSk7XG5cbiAgICAgICAgY29uc3QgYXBwbGljYWJsZVZhbGlkYXRvcnNGb3JJbXBvcnRQYXRoRXhjbHVkaW5nRXhjZXB0aW9ucyA9IGFwcGxpY2FibGVWYWxpZGF0b3JzRm9ySW1wb3J0UGF0aFxuICAgICAgICAgIC5maWx0ZXIodmFsaWRhdG9yID0+IHZhbGlkYXRvci5oYXNWYWxpZEV4Y2VwdGlvbnMpXG4gICAgICAgICAgLmZpbHRlcih2YWxpZGF0b3IgPT4gIXZhbGlkYXRvci5pc1BhdGhFeGNlcHRpb24oYWJzb2x1dGVJbXBvcnRQYXRoKSk7XG4gICAgICAgIHJlcG9ydEltcG9ydHNJblJlc3RyaWN0ZWRab25lKGFwcGxpY2FibGVWYWxpZGF0b3JzRm9ySW1wb3J0UGF0aEV4Y2x1ZGluZ0V4Y2VwdGlvbnMsIG5vZGUsIGltcG9ydFBhdGgsIHpvbmUubWVzc2FnZSk7XG4gICAgICB9KTtcbiAgICB9XG5cbiAgICByZXR1cm4gbW9kdWxlVmlzaXRvcigoc291cmNlKSA9PiB7XG4gICAgICBjaGVja0ZvclJlc3RyaWN0ZWRJbXBvcnRQYXRoKHNvdXJjZS52YWx1ZSwgc291cmNlKTtcbiAgICB9LCB7IGNvbW1vbmpzOiB0cnVlIH0pO1xuICB9LFxufTtcbiJdfQ== \ No newline at end of file +//# sourceMappingURL=data:application/json;charset=utf-8;base64,eyJ2ZXJzaW9uIjozLCJzb3VyY2VzIjpbIi4uLy4uL3NyYy9ydWxlcy9uby1yZXN0cmljdGVkLXBhdGhzLmpzIl0sIm5hbWVzIjpbImNvbnRhaW5zUGF0aCIsImZpbGVwYXRoIiwidGFyZ2V0IiwicmVsYXRpdmUiLCJwYXRoIiwic3RhcnRzV2l0aCIsIm1vZHVsZSIsImV4cG9ydHMiLCJtZXRhI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Bmb2xkZXIuJyxcbiAgICAgIHVybDogZG9jc1VybCgnbm8tcmVzdHJpY3RlZC1wYXRocycpLFxuICAgIH0sXG5cbiAgICBzY2hlbWE6IFtcbiAgICAgIHtcbiAgICAgICAgdHlwZTogJ29iamVjdCcsXG4gICAgICAgIHByb3BlcnRpZXM6IHtcbiAgICAgICAgICB6b25lczoge1xuICAgICAgICAgICAgdHlwZTogJ2FycmF5JyxcbiAgICAgICAgICAgIG1pbkl0ZW1zOiAxLFxuICAgICAgICAgICAgaXRlbXM6IHtcbiAgICAgICAgICAgICAgdHlwZTogJ29iamVjdCcsXG4gICAgICAgICAgICAgIHByb3BlcnRpZXM6IHtcbiAgICAgICAgICAgICAgICB0YXJnZXQ6IHtcbiAgICAgICAgICAgICAgICAgIGFueU9mOiBbXG4gICAgICAgICAgICAgICAgICAgIHsgdHlwZTogJ3N0cmluZycgfSxcbiAgICAgICAgICAgICAgICAgICAge1xuICAgICAgICAgICAgICAgICAgICAgIHR5cGU6ICdhcnJheScsXG4gICAgICAgICAgICAgICAgICAgICAgaXRlbXM6IHsgdHlwZTogJ3N0cmluZycgfSxcbiAgICAgICAgICAgICAgICAgICAgICB1bmlxdWVJdGVtczogdHJ1ZSxcbiAgICAgICAgICAgICAgICAgICAgICBtaW5MZW5ndGg6IDEsXG4gICAgICAgICAgICAgICAgICAgIH0sXG4gICAgICAgICAgICAgICAgICBdLFxuICAgICAgICAgICAgICAgIH0sXG4gICAgICAgICAgICAgICAgZnJvbToge1xuICAgICAgICAgICAgICAgICAgYW55T2Y6IFtcbiAgICAgICAgICAgICAgICAgICAgeyB0eXBlOiAnc3RyaW5nJyB9LFxuICAgICAgICAgICAgICAgICAgICB7XG4gICAgICAgICAgICAgICAgICAgICAgdHlwZTogJ2FycmF5JyxcbiAgICAgICAgICAgICAgICAgICAgICBpdGVtczogeyB0eXBlOiAnc3RyaW5nJyB9LFxuICAgICAgICAgICAgICAgICAgICAgIHVuaXF1ZUl0ZW1zOiB0cnVlLFxuICAgICAgICAgICAgICAgICAgICAgIG1pbkxlbmd0aDogMSxcbiAgICAgICAgICAgICAgICAgICAgfSxcbiAgICAgICAgICAgICAgICAgIF0sXG4gICAgICAgICAgICAgICAgfSxcbiAgICAgICAgICAgICAgICBleGNlcHQ6IHtcbiAgICAgICAgICAgICAgICAgIHR5cGU6ICdhcnJheScsXG4gICAgICAgICAgICAgICAgICBpdGVtczoge1xuICAgICAgICAgICAgICAgICAgICB0eXBlOiAnc3RyaW5nJyxcbiAgICAgICAgICAgICAgICAgIH0sXG4gICAgICAgICAgICAgICAgICB1bmlxdWVJdGVtczogdHJ1ZSxcbiAgICAgICAgICAgICAgICB9LFxuICAgICAgICAgICAgICAgIG1lc3NhZ2U6IHsgdHlwZTogJ3N0cmluZycgfSxcbiAgICAgICAgICAgICAgfSxcbiAgICAgICAgICAgICAgYWRkaXRpb25hbFByb3BlcnRpZXM6IGZhbHNlLFxuICAgICAgICAgICAgfSxcbiAgICAgICAgICB9LFxuICAgICAgICAgIGJhc2VQYXRoOiB7IHR5cGU6ICdzdHJpbmcnIH0sXG4gICAgICAgIH0sXG4gICAgICAgIGFkZGl0aW9uYWxQcm9wZXJ0aWVzOiBmYWxzZSxcbiAgICAgIH0sXG4gICAgXSxcbiAgfSxcblxuICBjcmVhdGU6IGZ1bmN0aW9uIG5vUmVzdHJpY3RlZFBhdGhzKGNvbnRleHQpIHtcbiAgICBjb25zdCBvcHRpb25zID0gY29udGV4dC5vcHRpb25zWzBdIHx8IHt9O1xuICAgIGNvbnN0IHJlc3RyaWN0ZWRQYXRocyA9IG9wdGlvbnMuem9uZXMgfHwgW107XG4gICAgY29uc3QgYmFzZVBhdGggPSBvcHRpb25zLmJhc2VQYXRoIHx8IHByb2Nlc3MuY3dkKCk7XG4gICAgY29uc3QgY3VycmVudEZpbGVuYW1lID0gY29udGV4dC5nZXRQaHlzaWNhbEZpbGVuYW1lID8gY29udGV4dC5nZXRQaHlzaWNhbEZpbGVuYW1lKCkgOiBjb250ZX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GVJbXBvcnRQYXRoKSk7XG4gICAgICAgIHJlcG9ydEltcG9ydHNJblJlc3RyaWN0ZWRab25lKGFwcGxpY2FibGVWYWxpZGF0b3JzRm9ySW1wb3J0UGF0aEV4Y2x1ZGluZ0V4Y2VwdGlvbnMsIG5vZGUsIGltcG9ydFBhdGgsIHpvbmUubWVzc2FnZSk7XG4gICAgICB9KTtcbiAgICB9XG5cbiAgICByZXR1cm4gbW9kdWxlVmlzaXRvcigoc291cmNlKSA9PiB7XG4gICAgICBjaGVja0ZvclJlc3RyaWN0ZWRJbXBvcnRQYXRoKHNvdXJjZS52YWx1ZSwgc291cmNlKTtcbiAgICB9LCB7IGNvbW1vbmpzOiB0cnVlIH0pO1xuICB9LFxufTtcbiJdfQ== \ No newline at end of file diff --git a/node_modules/eslint-plugin-import/lib/rules/no-unassigned-import.js b/node_modules/eslint-plugin-import/lib/rules/no-unassigned-import.js index 6986f562ab..5c069f03af 100644 --- a/node_modules/eslint-plugin-import/lib/rules/no-unassigned-import.js +++ b/node_modules/eslint-plugin-import/lib/rules/no-unassigned-import.js @@ -24,9 +24,8 @@ function testIsAllow(globs, filename, source) { filePath = _path2['default'].resolve(_path2['default'].dirname(filename), source); // get source absolute path } - return globs.find(function (glob) {return ( - (0, _minimatch2['default'])(filePath, glob) || - (0, _minimatch2['default'])(filePath, _path2['default'].join(process.cwd(), glob)));}) !== + return globs.find(function (glob) {return (0, _minimatch2['default'])(filePath, glob) || + (0, _minimatch2['default'])(filePath, _path2['default'].join(process.cwd(), glob));}) !== undefined; } @@ -42,9 +41,11 @@ function create(context) { } }return ImportDeclaration;}(), ExpressionStatement: function () {function ExpressionStatement(node) { - if (node.expression.type === 'CallExpression' && + if ( + node.expression.type === 'CallExpression' && (0, _staticRequire2['default'])(node.expression) && - !isAllow(node.expression.arguments[0].value)) { + !isAllow(node.expression.arguments[0].value)) + { report(context, node.expression); } }return ExpressionStatement;}() }; @@ -62,17 +63,17 @@ module.exports = { schema: [ { - 'type': 'object', - 'properties': { - 'devDependencies': { 'type': ['boolean', 'array'] }, - 'optionalDependencies': { 'type': ['boolean', 'array'] }, - 'peerDependencies': { 'type': ['boolean', 'array'] }, - 'allow': { - 'type': 'array', - 'items': { - 'type': 'string' } } }, + type: 'object', + properties: { + devDependencies: { type: ['boolean', 'array'] }, + optionalDependencies: { type: ['boolean', 'array'] }, + peerDependencies: { type: ['boolean', 'array'] }, + allow: { + type: 'array', + items: { + type: 'string' } } }, - 'additionalProperties': false }] } }; -//# sourceMappingURL=data:application/json;charset=utf-8;base64,eyJ2ZXJzaW9uIjozLCJzb3VyY2VzIjpbIi4uLy4uL3NyYy9ydWxlcy9uby11bmFzc2lnbmVkLWltcG9ydC5qcyJdLCJuYW1lcyI6WyJyZXBvcnQiLCJjb250ZXh0Iiwibm9kZSIsIm1lc3NhZ2UiLCJ0ZXN0SXNBbGxvdyIsImdsb2JzIiwiZmlsZW5hbWUiLCJzb3VyY2UiLCJBcnJheSIsImlzQXJyYXkiLCJmaWxlUGF0aCIsInBhdGgiLCJyZXNvbHZlIiwiZGlybmFtZSIsImZpbmQiLCJnbG9iIiwiam9pbiIsInByb2Nlc3MiLCJjd2QiLCJ1bmRlZmluZWQiLCJjcmVhdGUiLCJvcHRpb25zIiwiZ2V0UGh5c2ljYWxGaWxlbmFtZSIsImdldEZpbGVuYW1lIiwiaXNBbGxvdyIsImFsbG93IiwiSW1wb3J0RGVjbGFyYXRpb24iLCJzcGVjaWZpZXJzIiwibGVuZ3RoIiwidmFsdWUiLCJFeHByZXNzaW9uU3RhdGVtZW50IiwiZXhwcmVzc2lvbiIsInR5cGUiLCJhcmd1bWVudHMiLCJtb2R1bGUiLCJleHBvcnRzIiwibWV0YSIsImRvY3MiLCJjYXRlZ29yeSIsImRlc2NyaXB0aW9uIiwidXJsIiwic2NoZW1hIl0sIm1hcHBpbmdzIjoiYUFBQSw0QjtBQUNBLHNDOztBQUVBLHNEO0FBQ0EscUM7O0FBRUEsU0FBU0EsTUFBVCxDQUFn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ZXNzaW9uKSAmJlxuICAgICAgICAhaXNBbGxvdyhub2RlLmV4cHJlc3Npb24uYXJndW1lbnRzWzBdLnZhbHVlKSkge1xuICAgICAgICByZXBvcnQoY29udGV4dCwgbm9kZS5leHByZXNzaW9uKTtcbiAgICAgIH1cbiAgICB9LFxuICB9O1xufVxuXG5tb2R1bGUuZXhwb3J0cyA9IHtcbiAgY3JlYXRlLFxuICBtZXRhOiB7XG4gICAgdHlwZTogJ3N1Z2dlc3Rpb24nLFxuICAgIGRvY3M6IHtcbiAgICAgIGNhdGVnb3J5OiAnU3R5bGUgZ3VpZGUnLFxuICAgICAgZGVzY3JpcHRpb246ICdGb3JiaWQgdW5hc3NpZ25lZCBpbXBvcnRzJyxcbiAgICAgIHVybDogZG9jc1VybCgnbm8tdW5hc3NpZ25lZC1pbXBvcnQnKSxcbiAgICB9LFxuICAgIHNjaGVtYTogW1xuICAgICAge1xuICAgICAgICAndHlwZSc6ICdvYmplY3QnLFxuICAgICAgICAncHJvcGVydGllcyc6IHtcbiAgICAgICAgICAnZGV2RGVwZW5kZW5jaWVzJzogeyAndHlwZSc6IFsnYm9vbGVhbicsICdhcnJheSddIH0sXG4gICAgICAgICAgJ29wdGlvbmFsRGVwZW5kZW5jaWVzJzogeyAndHlwZSc6IFsnYm9vbGVhbicsICdhcnJheSddIH0sXG4gICAgICAgICAgJ3BlZXJEZXBlbmRlbmNpZXMnOiB7ICd0eXBlJzogWydib29sZWFuJywgJ2FycmF5J10gfSxcbiAgICAgICAgICAnYWxsb3cnOiB7XG4gICAgICAgICAgICAndHlwZSc6ICdhcnJheScsXG4gICAgICAgICAgICAnaXRlbXMnOiB7XG4gICAgICAgICAgICAgICd0eXBlJzogJ3N0cmluZycsXG4gICAgICAgICAgICB9LFxuICAgICAgICAgIH0sXG4gICAgICAgIH0sXG4gICAgICAgICdhZGRpdGlvbmFsUHJvcGVydGllcyc6IGZhbHNlLFxuICAgICAgfSxcbiAgICBdLFxuICB9LFxufTtcbiJdfQ== \ No newline at end of file + additionalProperties: false }] } }; +//# sourceMappingURL=data:application/json;charset=utf-8;base64,eyJ2ZXJzaW9uIjozLCJzb3VyY2VzIjpbIi4uLy4uL3NyYy9ydWxlcy9uby11bmFzc2lnbmVkLWltcG9ydC5qcyJdLCJuYW1lcyI6WyJyZXBvcnQiLCJjb250ZXh0Iiwibm9kZSIsIm1lc3NhZ2UiLCJ0ZXN0SXNBbGxvdyIsImdsb2JzIiwiZmlsZW5hbWUiLCJzb3VyY2UiLCJBcnJheSIsImlzQXJyYXkiLCJmaWxlUGF0aCIsInBhdGgiLCJyZXNvbHZlIiwiZGlybmFtZSIsImZpbmQiLCJnbG9iIiwiam9pbiIsInByb2Nlc3MiLCJjd2QiLCJ1bmRlZmluZWQiLCJjcmVhdGUiLCJvcHRpb25zIiwiZ2V0UGh5c2ljYWxGaWxlbmFtZSIsImdldEZpbGVuYW1lIiwiaXNBbGxvdyIsImFsbG93IiwiSW1wb3J0RGVjbGFyYXRpb24iLCJzcGVjaWZpZXJzIiwibGVuZ3RoIiwidmFsdWUiLCJFeHByZXNzaW9uU3RhdGVtZW50IiwiZXhwcmVzc2lvbiIsInR5cGUiLCJhcmd1bWVudHMiLCJtb2R1bGUiLCJleHBvcnRzIiwibWV0YSIsImRvY3MiLCJjYXRlZ29yeSIsImRlc2NyaXB0aW9uIiwidXJsIiwic2NoZW1hIiwicHJvcGVydGllcyIsImRldkRlcGVuZGVuY2llcyIsIm9wdGlvbmFsRGVwZW5kZW5jaWVzIiwicGVlckRlcGVuZGVuY2llcyIsIml0ZW1zIiwiYWRkaXRpb25hbFByb3BlcnRpZXMiXSwibWFwcGluZ3MiOiJhQUFBLDRCO0FBQ0Esc0M7O0FBRUEsc0Q7QUFDQSxxQzs7QUFFQSxTQUFTQSxNQUFULENBQWdCQyxPQUFoQixFQUF5QkMsSUFBekIsRUFBK0I7QUFDN0JELFVBQVFELE1BQVIsQ0FBZTtBQUNiRSxjQURhO0FBRWJDLGFBQVMsb0NBRkksR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lKVxuICAgICAgKSB7XG4gICAgICAgIHJlcG9ydChjb250ZXh0LCBub2RlLmV4cHJlc3Npb24pO1xuICAgICAgfVxuICAgIH0sXG4gIH07XG59XG5cbm1vZHVsZS5leHBvcnRzID0ge1xuICBjcmVhdGUsXG4gIG1ldGE6IHtcbiAgICB0eXBlOiAnc3VnZ2VzdGlvbicsXG4gICAgZG9jczoge1xuICAgICAgY2F0ZWdvcnk6ICdTdHlsZSBndWlkZScsXG4gICAgICBkZXNjcmlwdGlvbjogJ0ZvcmJpZCB1bmFzc2lnbmVkIGltcG9ydHMnLFxuICAgICAgdXJsOiBkb2NzVXJsKCduby11bmFzc2lnbmVkLWltcG9ydCcpLFxuICAgIH0sXG4gICAgc2NoZW1hOiBbXG4gICAgICB7XG4gICAgICAgIHR5cGU6ICdvYmplY3QnLFxuICAgICAgICBwcm9wZXJ0aWVzOiB7XG4gICAgICAgICAgZGV2RGVwZW5kZW5jaWVzOiB7IHR5cGU6IFsnYm9vbGVhbicsICdhcnJheSddIH0sXG4gICAgICAgICAgb3B0aW9uYWxEZXBlbmRlbmNpZXM6IHsgdHlwZTogWydib29sZWFuJywgJ2FycmF5J10gfSxcbiAgICAgICAgICBwZWVyRGVwZW5kZW5jaWVzOiB7IHR5cGU6IFsnYm9vbGVhbicsICdhcnJheSddIH0sXG4gICAgICAgICAgYWxsb3c6IHtcbiAgICAgICAgICAgIHR5cGU6ICdhcnJheScsXG4gICAgICAgICAgICBpdGVtczoge1xuICAgICAgICAgICAgICB0eXBlOiAnc3RyaW5nJyxcbiAgICAgICAgICAgIH0sXG4gICAgICAgICAgfSxcbiAgICAgICAgfSxcbiAgICAgICAgYWRkaXRpb25hbFByb3BlcnRpZXM6IGZhbHNlLFxuICAgICAgfSxcbiAgICBdLFxuICB9LFxufTtcbiJdfQ== \ No newline at end of file diff --git a/node_modules/eslint-plugin-import/lib/rules/no-unused-modules.js b/node_modules/eslint-plugin-import/lib/rules/no-unused-modules.js index 6ed615c626..098f72a534 100644 --- a/node_modules/eslint-plugin-import/lib/rules/no-unused-modules.js +++ b/node_modules/eslint-plugin-import/lib/rules/no-unused-modules.js @@ -4,19 +4,21 @@ -var _ExportMap = require('../ExportMap');var _ExportMap2 = _interopRequireDefault(_ExportMap); var _ignore = require('eslint-module-utils/ignore'); var _resolve = require('eslint-module-utils/resolve');var _resolve2 = _interopRequireDefault(_resolve); var _visit = require('eslint-module-utils/visit');var _visit2 = _interopRequireDefault(_visit); -var _docsUrl = require('../docsUrl');var _docsUrl2 = _interopRequireDefault(_docsUrl); var _path = require('path'); var _readPkgUp2 = require('eslint-module-utils/readPkgUp');var _readPkgUp3 = _interopRequireDefault(_readPkgUp2); var _object = require('object.values');var _object2 = _interopRequireDefault(_object); -var _arrayIncludes = require('array-includes');var _arrayIncludes2 = _interopRequireDefault(_arrayIncludes);function _interopRequireDefault(obj) {return obj && obj.__esModule ? obj : { 'default': obj };}function _toConsumableArray(arr) {if (Array.isArray(arr)) {for (var i = 0, arr2 = Array(arr.length); i < arr.length; i++) {arr2[i] = arr[i];}return arr2;} else {return Array.from(arr);}} /** - * @fileOverview Ensures that modules contain exports and/or all - * modules are consumed within other modules. - * @author René Fermann - */var FileEnumerator = void 0;var listFilesToProcess = void 0; +var _arrayIncludes = require('array-includes');var _arrayIncludes2 = _interopRequireDefault(_arrayIncludes); +var _arrayPrototype = require('array.prototype.flatmap');var _arrayPrototype2 = _interopRequireDefault(_arrayPrototype); + +var _ExportMap = require('../ExportMap');var _ExportMap2 = _interopRequireDefault(_ExportMap); +var _docsUrl = require('../docsUrl');var _docsUrl2 = _interopRequireDefault(_docsUrl);function _interopRequireDefault(obj) {return obj && obj.__esModule ? obj : { 'default': obj };}function _toConsumableArray(arr) {if (Array.isArray(arr)) {for (var i = 0, arr2 = Array(arr.length); i < arr.length; i++) {arr2[i] = arr[i];}return arr2;} else {return Array.from(arr);}} /** + * @fileOverview Ensures that modules contain exports and/or all + * modules are consumed within other modules. + * @author René Fermann + */var FileEnumerator = void 0;var listFilesToProcess = void 0; try {var _require = require('eslint/use-at-your-own-risk');FileEnumerator = _require.FileEnumerator; } catch (e) { @@ -40,11 +42,7 @@ try {var _require = require('eslint/lib/util/glob-util'),_originalListFilesToProcess = _require4.listFilesToProcess; listFilesToProcess = function listFilesToProcess(src, extensions) { - var patterns = src.reduce(function (carry, pattern) { - return carry.concat(extensions.map(function (extension) { - return (/\*\*|\*\./.test(pattern) ? pattern : String(pattern) + '/**/*' + String(extension)); - })); - }, src.slice()); + var patterns = src.concat((0, _arrayPrototype2['default'])(src, function (pattern) {return extensions.map(function (extension) {return (/\*\*|\*\./.test(pattern) ? pattern : String(pattern) + '/**/*' + String(extension));});})); return _originalListFilesToProcess(patterns); }; @@ -160,19 +158,16 @@ var visitorKeyMap = new Map(); var ignoredFiles = new Set(); var filesOutsideSrc = new Set(); -var isNodeModule = function isNodeModule(path) { - return (/\/(node_modules)\//.test(path)); -}; +var isNodeModule = function isNodeModule(path) {return (/\/(node_modules)\//.test(path));}; /** - * read all files matching the patterns in src and ignoreExports - * - * return all files matching src pattern, which are not matching the ignoreExports pattern - */ + * read all files matching the patterns in src and ignoreExports + * + * return all files matching src pattern, which are not matching the ignoreExports pattern + */ var resolveFiles = function resolveFiles(src, ignoreExports, context) { var extensions = Array.from((0, _ignore.getFileExtensions)(context.settings)); - var srcFiles = new Set(); var srcFileList = listFilesToProcess(src, extensions); // prepare list of ignored files @@ -180,10 +175,10 @@ var resolveFiles = function resolveFiles(src, ignoreExports, context) { ignoredFilesList.forEach(function (_ref3) {var filename = _ref3.filename;return ignoredFiles.add(filename);}); // prepare list of source files, don't consider files from node_modules - srcFileList.filter(function (_ref4) {var filename = _ref4.filename;return !isNodeModule(filename);}).forEach(function (_ref5) {var filename = _ref5.filename; - srcFiles.add(filename); - }); - return srcFiles; + + return new Set( + (0, _arrayPrototype2['default'])(srcFileList, function (_ref4) {var filename = _ref4.filename;return isNodeModule(filename) ? [] : filename;})); + }; /** @@ -247,9 +242,11 @@ var prepareImportsAndExports = function prepareImportsAndExports(srcFiles, conte return; } var localImport = imports.get(key) || new Set(); - value.declarations.forEach(function (_ref6) {var importedSpecifiers = _ref6.importedSpecifiers;return ( - importedSpecifiers.forEach(function (specifier) {return localImport.add(specifier);}));}); - + value.declarations.forEach(function (_ref5) {var importedSpecifiers = _ref5.importedSpecifiers; + importedSpecifiers.forEach(function (specifier) { + localImport.add(specifier); + }); + }); imports.set(key, localImport); }); importList.set(file, imports); @@ -347,11 +344,9 @@ var doPreparation = function doPreparation(src, ignoreExports, context) { lastPrepareKey = prepareKey; }; -var newNamespaceImportExists = function newNamespaceImportExists(specifiers) {return ( - specifiers.some(function (_ref7) {var type = _ref7.type;return type === IMPORT_NAMESPACE_SPECIFIER;}));}; +var newNamespaceImportExists = function newNamespaceImportExists(specifiers) {return specifiers.some(function (_ref6) {var type = _ref6.type;return type === IMPORT_NAMESPACE_SPECIFIER;});}; -var newDefaultImportExists = function newDefaultImportExists(specifiers) {return ( - specifiers.some(function (_ref8) {var type = _ref8.type;return type === IMPORT_DEFAULT_SPECIFIER;}));}; +var newDefaultImportExists = function newDefaultImportExists(specifiers) {return specifiers.some(function (_ref7) {var type = _ref7.type;return type === IMPORT_DEFAULT_SPECIFIER;});}; var fileIsInPkg = function fileIsInPkg(file) {var _readPkgUp = (0, _readPkgUp3['default'])({ cwd: file }),path = _readPkgUp.path,pkg = _readPkgUp.pkg; @@ -364,9 +359,7 @@ var fileIsInPkg = function fileIsInPkg(file) {var _readPkgUp = }; var checkPkgFieldObject = function checkPkgFieldObject(pkgField) { - var pkgFieldFiles = (0, _object2['default'])(pkgField). - filter(function (value) {return typeof value !== 'boolean';}). - map(function (value) {return (0, _path.join)(basePath, value);}); + var pkgFieldFiles = (0, _arrayPrototype2['default'])((0, _object2['default'])(pkgField), function (value) {return typeof value === 'boolean' ? [] : (0, _path.join)(basePath, value);}); if ((0, _arrayIncludes2['default'])(pkgFieldFiles, file)) { return true; @@ -421,17 +414,16 @@ module.exports = { src: { description: 'files/paths to be analyzed (only for unused exports)', type: 'array', - minItems: 1, + uniqueItems: true, items: { type: 'string', minLength: 1 } }, ignoreExports: { - description: - 'files/paths for which unused exports will not be reported (e.g module entry points)', + description: 'files/paths for which unused exports will not be reported (e.g module entry points)', type: 'array', - minItems: 1, + uniqueItems: true, items: { type: 'string', minLength: 1 } }, @@ -446,31 +438,16 @@ module.exports = { type: 'boolean' } }, - not: { - properties: { - unusedExports: { 'enum': [false] }, - missingExports: { 'enum': [false] } } }, - - - anyOf: [{ - not: { - properties: { - unusedExports: { 'enum': [true] } } }, - - - required: ['missingExports'] }, + anyOf: [ { - not: { - properties: { - missingExports: { 'enum': [true] } } }, + properties: { + unusedExports: { 'enum': [true] }, + src: { + minItems: 1 } }, required: ['unusedExports'] }, - { - properties: { - unusedExports: { 'enum': [true] } }, - required: ['unusedExports'] }, { properties: { missingExports: { 'enum': [true] } }, @@ -480,13 +457,14 @@ module.exports = { - create: function () {function create(context) {var _ref9 = + create: function () {function create(context) {var _ref8 = - context.options[0] || {},src = _ref9.src,_ref9$ignoreExports = _ref9.ignoreExports,ignoreExports = _ref9$ignoreExports === undefined ? [] : _ref9$ignoreExports,missingExports = _ref9.missingExports,unusedExports = _ref9.unusedExports; + + context.options[0] || {},src = _ref8.src,_ref8$ignoreExports = _ref8.ignoreExports,ignoreExports = _ref8$ignoreExports === undefined ? [] : _ref8$ignoreExports,missingExports = _ref8.missingExports,unusedExports = _ref8.unusedExports; if (unusedExports) { doPreparation(src, ignoreExports, context); @@ -605,7 +583,7 @@ module.exports = { var newExports = new Map(); var newExportIdentifiers = new Set(); - node.body.forEach(function (_ref10) {var type = _ref10.type,declaration = _ref10.declaration,specifiers = _ref10.specifiers; + node.body.forEach(function (_ref9) {var type = _ref9.type,declaration = _ref9.declaration,specifiers = _ref9.specifiers; if (type === EXPORT_DEFAULT_DECLARATION) { newExportIdentifiers.add(IMPORT_DEFAULT_SPECIFIER); } @@ -687,8 +665,10 @@ module.exports = { oldDefaultImports.add(key); } value.forEach(function (val) { - if (val !== IMPORT_NAMESPACE_SPECIFIER && - val !== IMPORT_DEFAULT_SPECIFIER) { + if ( + val !== IMPORT_NAMESPACE_SPECIFIER && + val !== IMPORT_DEFAULT_SPECIFIER) + { oldImports.set(val, key); } }); @@ -757,11 +737,9 @@ module.exports = { newDefaultImports.add(resolvedPath); } - astNode.specifiers.forEach(function (specifier) { - if (specifier.type === IMPORT_DEFAULT_SPECIFIER || - specifier.type === IMPORT_NAMESPACE_SPECIFIER) { - return; - } + astNode.specifiers. + filter(function (specifier) {return specifier.type !== IMPORT_DEFAULT_SPECIFIER && specifier.type !== IMPORT_NAMESPACE_SPECIFIER;}). + forEach(function (specifier) { newImports.set(specifier.imported.name || specifier.imported.value, resolvedPath); }); } @@ -946,12 +924,12 @@ module.exports = { updateImportUsage(node); checkExportPresence(node); }return ProgramExit;}(), - 'ExportDefaultDeclaration': function () {function ExportDefaultDeclaration(node) { + ExportDefaultDeclaration: function () {function ExportDefaultDeclaration(node) { checkUsage(node, IMPORT_DEFAULT_SPECIFIER); }return ExportDefaultDeclaration;}(), - 'ExportNamedDeclaration': function () {function ExportNamedDeclaration(node) { + ExportNamedDeclaration: function () {function ExportNamedDeclaration(node) { node.specifiers.forEach(function (specifier) { - checkUsage(node, specifier.exported.name || specifier.exported.value); + checkUsage(specifier, specifier.exported.name || specifier.exported.value); }); forEachDeclarationIdentifier(node.declaration, function (name) { checkUsage(node, name); @@ -959,4 +937,4 @@ module.exports = { }return ExportNamedDeclaration;}() }; }return create;}() }; -//# sourceMappingURL=data:application/json;charset=utf-8;base64,eyJ2ZXJzaW9uIjozLCJzb3VyY2VzIjpbIi4uLy4uL3NyYy9ydWxlcy9uby11bnVzZWQtbW9kdWxlcy5qcyJdLCJuYW1lcyI6WyJGaWxlRW51bWVyYXRvciIsImxpc3RGaWxlc1RvUHJvY2VzcyIsInJlcXVpcmUiLCJlIiwib3JpZ2luYWxMaXN0RmlsZXNUb1Byb2Nlc3MiLCJzcm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2R1bGVzIHdpdGhvdXQgYW55IGV4cG9ydHMnLFxuICAgICAgICAgIHR5cGU6ICdib29sZWFuJyxcbiAgICAgICAgfSxcbiAgICAgICAgdW51c2VkRXhwb3J0czoge1xuICAgICAgICAgIGRlc2NyaXB0aW9uOiAncmVwb3J0IGV4cG9ydHMgd2l0aG91dCBhbnkgdXNhZ2UnLFxuICAgICAgICAgIHR5cGU6ICdib29sZWFuJyxcbiAgICAgICAgfSxcbiAgICAgIH0sXG4gICAgICBub3Q6IHtcbiAgICAgICAgcHJvcGVydGllczoge1xuICAgICAgICAgIHVudXNlZEV4cG9ydHM6IHsgZW51bTogW2ZhbHNlXSB9LFxuICAgICAgICAgIG1pc3NpbmdFeHBvcnRzOiB7IGVudW06IFtmYWxzZV0gfSxcbiAgICAgICAgfSxcbiAgICAgIH0sXG4gICAgICBhbnlPZjpbe1xuICAgICAgICBub3Q6IHtcbiAgICAgICAgICBwcm9wZXJ0aWVzOiB7XG4gICAgICAgICAgICB1bnVzZWRFeHBvcnRzOiB7IGVudW06IFt0cnVlXSB9LFxuICAgICAgICAgIH0sXG4gICAgICAgIH0sXG4gICAgICAgIHJlcXVpcmVkOiBbJ21pc3NpbmdFeHBvcnRzJ10sXG4gICAgICB9LCB7XG4gICAgICAgIG5vdDoge1xuICAgICAgICAgIHByb3BlcnRpZXM6IHtcbiAgICAgICAgICAgIG1pc3NpbmdFeHBvcnRzOiB7IGVudW06IFt0cnVlXSB9LFxuICAgICAgICAgIH0sXG4gICAgICAgIH0sXG4gICAgICAgIHJlcXVpcmVkOiBbJ3VudXNlZEV4cG9ydHMnXSxcbiAgICAgIH0sIHtcbiAgICAgICAgcHJvcGVydGllczoge1xuICAgICAgICAgIHVudXNlZEV4cG9ydHM6IHsgZW51bTogW3RydWVdIH0sXG4gICAgICAgIH0sXG4gICAgICAgIHJlcXVpcmVkOiBbJ3VudXNlZEV4cG9ydHMnXSxcbiAgICAgIH0sIHtcbiAgICAgICAgcHJvcGVydGllczoge1xuIC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4gICAgICAgICAgaWYgKGFzdE5vZGUuc291cmNlKSB7XG4gICAgICAgICAgICByZXNvbHZlZFBhdGggPSByZXNvbHZlKGFzdE5vZGUuc291cmNlLnJhdy5yZXBsYWNlKC8oJ3xcIikvZywgJycpLCBjb250ZXh0KTtcbiAgICAgICAgICAgIGFzdE5vZGUuc3BlY2lmaWVycy5mb3JFYWNoKHNwZWNpZmllciA9PiB7XG4gICAgICAgICAgICAgIGNvbnN0IG5hbWUgPSBzcGVjaWZpZXIubG9jYWwubmFtZSB8fCBzcGVjaWZpZXIubG9jYWwudmFsdWU7XG4gICAgICAgICAgICAgIGlmIChuYW1lID09PSBERUZBVUxUKSB7XG4gICAgICAgICAgICAgICAgbmV3RGVmYXVsdEltcG9ydHMuYWRkKHJlc29sdmVkUGF0aCk7XG4gICAgICAgICAgICAgIH0gZWxzZSB7XG4gICAgICAgICAgICAgICAgbmV3SW1wb3J0cy5zZXQobmFtZSwgcmVzb2x2ZWRQYXRoKTtcbiAgICAgICAgICAgICAgfVxuICAgICAgICAgICAgfSk7XG4gICAgICAgICAgfVxuICAgICAgICB9XG5cbiAgICAgICAgaWYgKGFzdE5vZGUudHlwZSA9PT0gRVhQT1JUX0FMTF9ERUNMQVJBVElPTikge1xuICAgICAgICAgIHJlc29sdmVkUGF0aCA9IHJlc29sdmUoYXN0Tm9kZS5zb3VyY2UucmF3LnJlcGxhY2UoLygnfFwiKS9nLCAnJyksIGNvbnRleHQpO1xuICAgICAgICAgIG5ld0V4cG9ydEFsbC5hZGQocmVzb2x2ZWRQYXRoKTtcbiAgICAgICAgfVxuXG4gICAgICAgIGlmIChhc3ROb2RlLnR5cGUgPT09IElNUE9SVF9ERUNMQVJBVElPTikge1xuICAgICAgICAgIHJlc29sdmVkUGF0aCA9IHJlc29sdmUoYXN0Tm9kZS5zb3VyY2UucmF3LnJlcGxhY2UoLygnfFwiKS9nLCAnJyksIGNvbnRleHQpO1xuICAgICAgICAgIGlmICghcmVzb2x2ZWRQYXRoKSB7XG4gICAgICAgICAgICByZXR1cm47XG4gICAgICAgICAgfVxuXG4gICAgICAgICAgaWYgKGlzTm9kZU1vZHVsZShyZXNvbHZlZFBhdGgpKSB7XG4gICAgICAgICAgICByZXR1cm47XG4gICAgICAgICAgfVxuXG4gICAgICAgICAgaWYgKG5ld05hbWVzcGFjZUltcG9ydEV4aXN0cyhhc3ROb2RlLnNwZWNpZmllcnMpKSB7XG4gICAgICAgICAgICBuZXdOYW1lc3BhY2VJbXBvcnRzLmFkZChyZXNvbHZlZFBhdGgpO1xuICAgICAgICAgIH1cblxuICAgICAgICAgIGlmIChuZXdEZWZhdWx0SW1wb3J0RXhpc3RzKGFzdE5vZGUuc3BlY2lmaWVycykpIHtcbiAgICAgICAgICAgIG5ld0RlZmF1bHRJbXBvcnRzLmFkZChyZXNvbHZlZFBhdGgpO1xuICAgICAgICAgIH1cblxuICAgICAgICAgIGFzdE5vZGUuc3BlY2lmaWVycy5mb3JFYWNoKHNwZWNpZmllciA9PiB7XG4gICAgICAgICAgICBpZiAoc3BlY2lmaWVyLnR5cGUgPT09IElNUE9SVF9ERUZBVUxUX1NQRUNJRklFUiB8fFxuICAgICAgICAgICAgICAgIHNwZWNpZmllci50eXBlID09PSBJTVBPUlRfTkFNRVNQQUNFX1NQRUNJRklFUikge1xuICAgICAgICAgICAgICByZXR1cm47XG4gICAgICAgICAgICB9XG4gICAgICAgICAgICBuZXdJbXBvcnRzLnNldChzcGVjaWZpZXIuaW1wb3J0ZWQubmFtZSB8fCBzcGVjaWZpZXIuaW1wb3J0ZWQudmFsdWUsIHJlc29sdmVkUGF0aCk7XG4gICAgICAgICAgfSk7XG4gICAgICAgIH1cbiAgICAgIH0pO1xuXG4gICAgICBuZXdFeHBvcnRBbGwuZm9yRWFjaCh2YWx1ZSA9PiB7XG4gICAgICAgIGlmICghb2xkRXhwb3J0QWxsLmhhcyh2YWx1ZSkpIHtcbiAgICAgICAgICBsZXQgaW1wb3J0cyA9IG9sZEltcG9ydFBhdGh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ICAgICAgICB9IGVsc2Uge1xuICAgICAgICAgICAgY29uc3Qgd2hlcmVVc2VkID0gbmV3IFNldCgpO1xuICAgICAgICAgICAgd2hlcmVVc2VkLmFkZChmaWxlKTtcbiAgICAgICAgICAgIGV4cG9ydHMuc2V0KGtleSwgeyB3aGVyZVVzZWQgfSk7XG4gICAgICAgICAgfVxuICAgICAgICB9XG4gICAgICB9KTtcblxuICAgICAgb2xkSW1wb3J0cy5mb3JFYWNoKCh2YWx1ZSwga2V5KSA9PiB7XG4gICAgICAgIGlmICghbmV3SW1wb3J0cy5oYXMoa2V5KSkge1xuICAgICAgICAgIGNvbnN0IGltcG9ydHMgPSBvbGRJbXBvcnRQYXRocy5nZXQodmFsdWUpO1xuICAgICAgICAgIGltcG9ydHMuZGVsZXRlKGtleSk7XG5cbiAgICAgICAgICBjb25zdCBleHBvcnRzID0gZXhwb3J0TGlzdC5nZXQodmFsdWUpO1xuICAgICAgICAgIGlmICh0eXBlb2YgZXhwb3J0cyAhPT0gJ3VuZGVmaW5lZCcpIHtcbiAgICAgICAgICAgIGNvbnN0IGN1cnJlbnRFeHBvcnQgPSBleHBvcnRzLmdldChrZXkpO1xuICAgICAgICAgICAgaWYgKHR5cGVvZiBjdXJyZW50RXhwb3J0ICE9PSAndW5kZWZpbmVkJykge1xuICAgICAgICAgICAgICBjdXJyZW50RXhwb3J0LndoZXJlVXNlZC5kZWxldGUoZmlsZSk7XG4gICAgICAgICAgICB9XG4gICAgICAgICAgfVxuICAgICAgICB9XG4gICAgICB9KTtcbiAgICB9O1xuXG4gICAgcmV0dXJuIHtcbiAgICAgICdQcm9ncmFtOmV4aXQnOiBub2RlID0+IHtcbiAgICAgICAgdXBkYXRlRXhwb3J0VXNhZ2Uobm9kZSk7XG4gICAgICAgIHVwZGF0ZUltcG9ydFVzYWdlKG5vZGUpO1xuICAgICAgICBjaGVja0V4cG9ydFByZXNlbmNlKG5vZGUpO1xuICAgICAgfSxcbiAgICAgICdFeHBvcnREZWZhdWx0RGVjbGFyYXRpb24nOiBub2RlID0+IHtcbiAgICAgICAgY2hlY2tVc2FnZShub2RlLCBJTVBPUlRfREVGQVVMVF9TUEVDSUZJRVIpO1xuICAgICAgfSxcbiAgICAgICdFeHBvcnROYW1lZERlY2xhcmF0aW9uJzogbm9kZSA9PiB7XG4gICAgICAgIG5vZGUuc3BlY2lmaWVycy5mb3JFYWNoKHNwZWNpZmllciA9PiB7XG4gICAgICAgICAgY2hlY2tVc2FnZShub2RlLCBzcGVjaWZpZXIuZXhwb3J0ZWQubmFtZSB8fCBzcGVjaWZpZXIuZXhwb3J0ZWQudmFsdWUpO1xuICAgICAgICB9KTtcbiAgICAgICAgZm9yRWFjaERlY2xhcmF0aW9uSWRlbnRpZmllcihub2RlLmRlY2xhcmF0aW9uLCAobmFtZSkgPT4ge1xuICAgICAgICAgIGNoZWNrVXNhZ2Uobm9kZSwgbmFtZSk7XG4gICAgICAgIH0pO1xuICAgICAgfSxcbiAgICB9O1xuICB9LFxufTtcbiJdfQ== \ No newline at end of file +//# sourceMappingURL=data:application/json;charset=utf-8;base64,eyJ2ZXJzaW9uIjozLCJzb3VyY2VzIjpbIi4uLy4uL3NyYy9ydWxlcy9uby11bnVzZWQtbW9kdWxlcy5qcyJdLCJuYW1lcyI6WyJGaWxlRW51bWVyYXRvciIsImxpc3RGaWxlc1RvUHJvY2VzcyIsInJlcXVpcmUiLCJlIiwib3JpZ2luYWxMaXN0RmlsZXNUb1Byb2Nlc3MiLCJzcmMiLCJleHRlbnNpb25zIiwicGF0dGVybnMiLCJjb25jYXQiLCJwYXR0ZXJuIiwibWFwIiwiZXh0ZW5zaW9uIiwidGVzdCIsIkFycmF5IiwiZnJvbSIsIml0ZXJhdGVGaWxlcyIsImZpbGVQYXRoIiwiaWdub3JlZCIsImZpbGVuYW1lIiwiRVhQT1JUX0RFRkFVTFRfREVDTEFSQVRJT04iLCJFWFBPUlRfTkFNRURfREVDTEFSQVRJT04iLCJFWFBPUlRfQUxMX0RFQ0xB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ICAgICAgICAgbWluTGVuZ3RoOiAxLFxuICAgICAgICAgIH0sXG4gICAgICAgIH0sXG4gICAgICAgIGlnbm9yZUV4cG9ydHM6IHtcbiAgICAgICAgICBkZXNjcmlwdGlvbjogJ2ZpbGVzL3BhdGhzIGZvciB3aGljaCB1bnVzZWQgZXhwb3J0cyB3aWxsIG5vdCBiZSByZXBvcnRlZCAoZS5nIG1vZHVsZSBlbnRyeSBwb2ludHMpJyxcbiAgICAgICAgICB0eXBlOiAnYXJyYXknLFxuICAgICAgICAgIHVuaXF1ZUl0ZW1zOiB0cnVlLFxuICAgICAgICAgIGl0ZW1zOiB7XG4gICAgICAgICAgICB0eXBlOiAnc3RyaW5nJyxcbiAgICAgICAgICAgIG1pbkxlbmd0aDogMSxcbiAgICAgICAgICB9LFxuICAgICAgICB9LFxuICAgICAgICBtaXNzaW5nRXhwb3J0czoge1xuICAgICAgICAgIGRlc2NyaXB0aW9uOiAncmVwb3J0IG1vZHVsZXMgd2l0aG91dCBhbnkgZXhwb3J0cycsXG4gICAgICAgICAgdHlwZTogJ2Jvb2xlYW4nLFxuICAgICAgICB9LFxuICAgICAgICB1bnVzZWRFeHBvcnRzOiB7XG4gICAgICAgICAgZGVzY3JpcHRpb246ICdyZXBvcnQgZXhwb3J0cyB3aXRob3V0IGFueSB1c2FnZScsXG4gICAgICAgICAgdHlwZTogJ2Jvb2xlYW4nLFxuICAgICAgICB9LFxuICAgICAgfSxcbiAgICAgIGFueU9mOiBbXG4gICAgICAgIHtcbiAgICAgICAgICBwcm9wZXJ0aWVzOiB7XG4gICAgICAgICAgICB1bnVzZWRFeHBvcnRzOiB7IGVudW06IFt0cnVlXSB9LFxuICAgICAgICAgICAgc3JjOiB7XG4gICAgICAgICAgICAgIG1pbkl0ZW1zOiAxLFxuICAgICAgICAgICAgfSxcbiAgICAgICAgICB9LFxuICAgICAgICAgIHJlcXVpcmVkOiBbJ3VudXNlZEV4cG9ydHMnXSxcbiAgICAgICAgfSxcbiAgICAgICAge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VF9OQU1FU1BBQ0VfU1BFQ0lGSUVSXG4gICAgICAgICAgICAmJiB2YWwgIT09IElNUE9SVF9ERUZBVUxUX1NQRUNJRklFUlxuICAgICAgICAgICkge1xuICAgICAgICAgICAgb2xkSW1wb3J0cy5zZXQodmFsLCBrZXkpO1xuICAgICAgICAgIH1cbiAgICAgICAgfSk7XG4gICAgICB9KTtcblxuICAgICAgZnVuY3Rpb24gcHJvY2Vzc0R5bmFtaWNJbXBvcnQoc291cmNlKSB7XG4gICAgICAgIGlmIChzb3VyY2UudHlwZSAhPT0gJ0xpdGVyYWwnKSB7XG4gICAgICAgICAgcmV0dXJuIG51bGw7XG4gICAgICAgIH1cbiAgICAgICAgY29uc3QgcCA9IHJlc29sdmUoc291cmNlLnZhbHVlLCBjb250ZXh0KTtcbiAgICAgICAgaWYgKHAgPT0gbnVsbCkge1xuICAgICAgICAgIHJldHVybiBudWxsO1xuICAgICAgICB9XG4gICAgICAgIG5ld05hbWVzcGFjZUltcG9ydHMuYWRkKHApO1xuICAgICAgfVxuXG4gICAgICB2aXNpdChub2RlLCB2aXNpdG9yS2V5TWFwLmdldChmaWxlKSwge1xuICAgICAgICBJbXBvcnRFeHByZXNzaW9uKGNoaWxkKSB7XG4gICAgICAgICAgcHJvY2Vzc0R5bmFtaWNJbXBvcnQoY2hpbGQuc291cmNlKTtcbiAgICAgICAgfSxcbiAgICAgICAgQ2FsbEV4cHJlc3Npb24oY2hpbGQpIHtcbiAgICAgICAgICBpZiAoY2hpbGQuY2FsbGVlLnR5cGUgPT09ICdJbXBvcnQnKSB7XG4gICAgICAgICAgICBwcm9jZXNzRHluYW1pY0ltcG9ydChjaGlsZC5hcmd1bWVudHNbMF0pO1xuICAgICAgICAgIH1cbiAgICAgICAgfSxcbiAgICAgIH0pO1xuXG4gICAgICBub2RlLmJvZHkuZm9yRWFjaCgoYXN0Tm9kZSkgPT4ge1xuICAgICAgICBsZXQgcmVzb2x2ZWRQYXRoO1xuXG4gICAgICAgIC8vIHN1cHBvcnQgZm9yIGV4cG9ydCB7IHZhbHVlIH0gZnJvbSAnbW9kdWxlJ1xuICAgICAgICBpZiAoYXN0Tm9kZS50eXBlID09PSBFWFBPUlRfTkFNRURfREVDTEFSQVRJT04pIHtcbiAgICAgICAgICBpZiAoYXN0Tm9kZS5zb3VyY2UpIHtcbiAgICAgICAgICAgIHJlc29sdmVkUGF0aCA9IHJlc29sdmUoYXN0Tm9kZS5zb3VyY2UucmF3LnJlcGxhY2UoLygnfFwiKS9nLCAnJyksIGNvbnRleHQpO1xuICAgICAgICAgICAgYXN0Tm9kZS5zcGVjaWZpZXJzLmZvckVhY2goKHNwZWNpZmllcikgPT4ge1xuICAgICAgICAgICAgICBjb25zdCBuYW1lID0gc3BlY2lmaWVyLmxvY2FsLm5hbWUgfHwgc3BlY2lmaWVyLmxvY2FsLnZhbHVlO1xuICAgICAgICAgICAgICBpZiAobmFtZSA9PT0gREVGQVVMVCkge1xuICAgICAgICAgICAgICAgIG5ld0RlZmF1bHRJbXBvcnRzLmFkZChyZXNvbHZlZFBhdGgpO1xuICAgICAgICAgICAgICB9IGVsc2Uge1xuICAgICAgICAgICAgICAgIG5ld0ltcG9ydHMuc2V0KG5hbWUsIHJlc29sdmVkUGF0aCk7XG4gICAgICAgICAgICAgIH1cbiAgICAgICAgICAgIH0pO1xuICAgICAgICAgIH1cbiAgICAgICAgfVxuXG4gICAgICAgIGlmIChhc3ROb2RlLnR5cGUgPT09IEVYUE9SVF9BTExfREVDTEFSQVRJT04pIHtcbiAgICAgICAgICByZXNvbHZlZFBhdGggPSByZXNvbHZlKGFzdE5vZGUuc291cmNlLnJhdy5yZXBsYWNlKC8oJ3xcIikvZywgJycpLCBjb250ZXh0KTtcbiAgICAgICAgICBuZXdFeHBvcnRBbGwuYWRkKHJlc29sdmVkUGF0aCk7XG4gICAgICAgIH1cblxuICAgICAgICBpZiAoYXN0Tm9kZS50eXBlID09PSBJTVBPUlRfREVDTEFSQVRJT04pIHtcbiAgICAgICAgIC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09ICd1bmRlZmluZWQnKSB7XG4gICAgICAgICAgICBjb25zdCBjdXJyZW50RXhwb3J0ID0gZXhwb3J0cy5nZXQoSU1QT1JUX05BTUVTUEFDRV9TUEVDSUZJRVIpO1xuICAgICAgICAgICAgaWYgKHR5cGVvZiBjdXJyZW50RXhwb3J0ICE9PSAndW5kZWZpbmVkJykge1xuICAgICAgICAgICAgICBjdXJyZW50RXhwb3J0LndoZXJlVXNlZC5kZWxldGUoZmlsZSk7XG4gICAgICAgICAgICB9XG4gICAgICAgICAgfVxuICAgICAgICB9XG4gICAgICB9KTtcblxuICAgICAgbmV3SW1wb3J0cy5mb3JFYWNoKCh2YWx1ZSwga2V5KSA9PiB7XG4gICAgICAgIGlmICghb2xkSW1wb3J0cy5oYXMoa2V5KSkge1xuICAgICAgICAgIGxldCBpbXBvcnRzID0gb2xkSW1wb3J0UGF0aHMuZ2V0KHZhbHVlKTtcbiAgICAgICAgICBpZiAodHlwZW9mIGltcG9ydHMgPT09ICd1bmRlZmluZWQnKSB7XG4gICAgICAgICAgICBpbXBvcnRzID0gbmV3IFNldCgpO1xuICAgICAgICAgIH1cbiAgICAgICAgICBpbXBvcnRzLmFkZChrZXkpO1xuICAgICAgICAgIG9sZEltcG9ydFBhdGhzLnNldCh2YWx1ZSwgaW1wb3J0cyk7XG5cbiAgICAgICAgICBsZXQgZXhwb3J0cyA9IGV4cG9ydExpc3QuZ2V0KHZhbHVlKTtcbiAgICAgICAgICBsZXQgY3VycmVudEV4cG9ydDtcbiAgICAgICAgICBpZiAodHlwZW9mIGV4cG9ydHMgIT09ICd1bmRlZmluZWQnKSB7XG4gICAgICAgICAgICBjdXJyZW50RXhwb3J0ID0gZXhwb3J0cy5nZXQoa2V5KTtcbiAgICAgICAgICB9IGVsc2Uge1xuICAgICAgICAgICAgZXhwb3J0cyA9IG5ldyBNYXAoKTtcbiAgICAgICAgICAgIGV4cG9ydExpc3Quc2V0KHZhbHVlLCBleHBvcnRzKTtcbiAgICAgICAgICB9X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zYWdlKG5vZGUpO1xuICAgICAgICB1cGRhdGVJbXBvcnRVc2FnZShub2RlKTtcbiAgICAgICAgY2hlY2tFeHBvcnRQcmVzZW5jZShub2RlKTtcbiAgICAgIH0sXG4gICAgICBFeHBvcnREZWZhdWx0RGVjbGFyYXRpb24obm9kZSkge1xuICAgICAgICBjaGVja1VzYWdlKG5vZGUsIElNUE9SVF9ERUZBVUxUX1NQRUNJRklFUik7XG4gICAgICB9LFxuICAgICAgRXhwb3J0TmFtZWREZWNsYXJhdGlvbihub2RlKSB7XG4gICAgICAgIG5vZGUuc3BlY2lmaWVycy5mb3JFYWNoKChzcGVjaWZpZXIpID0+IHtcbiAgICAgICAgICBjaGVja1VzYWdlKHNwZWNpZmllciwgc3BlY2lmaWVyLmV4cG9ydGVkLm5hbWUgfHwgc3BlY2lmaWVyLmV4cG9ydGVkLnZhbHVlKTtcbiAgICAgICAgfSk7XG4gICAgICAgIGZvckVhY2hEZWNsYXJhdGlvbklkZW50aWZpZXIobm9kZS5kZWNsYXJhdGlvbiwgKG5hbWUpID0+IHtcbiAgICAgICAgICBjaGVja1VzYWdlKG5vZGUsIG5hbWUpO1xuICAgICAgICB9KTtcbiAgICAgIH0sXG4gICAgfTtcbiAgfSxcbn07XG4iXX0= \ No newline at end of file diff --git a/node_modules/eslint-plugin-import/lib/rules/no-useless-path-segments.js b/node_modules/eslint-plugin-import/lib/rules/no-useless-path-segments.js index a9296c6031..9922d79f04 100644 --- a/node_modules/eslint-plugin-import/lib/rules/no-useless-path-segments.js +++ b/node_modules/eslint-plugin-import/lib/rules/no-useless-path-segments.js @@ -33,7 +33,7 @@ function toRelativePath(relativePath) { } function countRelativeParents(pathSegments) { - return pathSegments.reduce(function (sum, pathSegment) {return pathSegment === '..' ? sum + 1 : sum;}, 0); + return pathSegments.filter(function (x) {return x === '..';}).length; } module.exports = { @@ -144,4 +144,4 @@ module.exports = { return (0, _moduleVisitor2['default'])(checkSourceValue, options); }return create;}() }; -//# sourceMappingURL=data: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0aXZlUGFyZW50cylcbiAgICAgICAgICAgIC5jb25jYXQoaW1wb3J0UGF0aFNwbGl0LnNsaWNlKGNvdW50SW1wb3J0UGF0aFJlbGF0aXZlUGFyZW50cyArIGRpZmYpKVxuICAgICAgICAgICAgLmpvaW4oJy8nKSxcbiAgICAgICAgKSxcbiAgICAgICk7XG4gICAgfVxuXG4gICAgcmV0dXJuIG1vZHVsZVZpc2l0b3IoY2hlY2tTb3VyY2VWYWx1ZSwgb3B0aW9ucyk7XG4gIH0sXG59O1xuIl19 \ No newline at end of file +//# sourceMappingURL=data:application/json;charset=utf-8;base64,eyJ2ZXJzaW9uIjozLCJzb3VyY2VzIjpbIi4uLy4uL3NyYy9ydWxlcy9uby11c2VsZXNzLXBhdGgtc2VnbWVudHMuanMiXSwibmFtZXMiOlsidG9SZWxhdGl2ZVBhdGgiLCJyZWxhdGl2ZVBhdGgiLCJzdHJpcHBlZCIsInJlcGxhY2UiLCJ0ZXN0Iiwibm9ybWFsaXplIiwiZm4iLCJwYXRoIiwicG9zaXgiLCJjb3VudFJlbGF0aXZlUGFyZW50cyIsInBhdGhTZWdtZW50cyIsImZpbHRlciIsIngiLCJsZW5ndGgiLCJtb2R1bGUiLCJleHBvcnRzIiwibWV0YSIsInR5cGUiLCJkb2NzIiwiY2F0ZWdvcnkiLCJkZXNjcmlwdGlvbiIsInVybCIsImZpeGFibGUiLCJzY2hlbWEiLCJwcm9wZXJ0aWVzIiwiY29tbW9uanMiLCJub1VzZWxlc3NJbmRleCIsImFkZGl0aW9uYWxQcm9wZXJ0aWVzIiwiY3JlYXRlIiwiY29udGV4dCIsImN1cnJlbnREaXIiLCJkaXJuYW1lIiwiZ2V0UGh5c2ljYWxGaWxlbmFtZSIsImdldEZpbGVuYW1lIiwib3B0aW9ucyIsImNoZWNrU291cmNlVmFsdWUiLCJzb3VyY2UiLCJpbXBvcnRQYXRoIiwidmFsdWUiLCJyZXBvcnRXaXRoUHJvcG9zZWRQYXRoIiwicHJvcG9zZWR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ICAgIC8vIFJlcG9ydCBhbmQgcHJvcG9zZSBtaW5pbWFsIG51bWJlciBvZiByZXF1aXJlZCByZWxhdGl2ZSBwYXJlbnRzXG4gICAgICByZXR1cm4gcmVwb3J0V2l0aFByb3Bvc2VkUGF0aChcbiAgICAgICAgdG9SZWxhdGl2ZVBhdGgoXG4gICAgICAgICAgaW1wb3J0UGF0aFNwbGl0XG4gICAgICAgICAgICAuc2xpY2UoMCwgY291bnRFeHBlY3RlZFJlbGF0aXZlUGFyZW50cylcbiAgICAgICAgICAgIC5jb25jYXQoaW1wb3J0UGF0aFNwbGl0LnNsaWNlKGNvdW50SW1wb3J0UGF0aFJlbGF0aXZlUGFyZW50cyArIGRpZmYpKVxuICAgICAgICAgICAgLmpvaW4oJy8nKSxcbiAgICAgICAgKSxcbiAgICAgICk7XG4gICAgfVxuXG4gICAgcmV0dXJuIG1vZHVsZVZpc2l0b3IoY2hlY2tTb3VyY2VWYWx1ZSwgb3B0aW9ucyk7XG4gIH0sXG59O1xuIl19 \ No newline at end of file diff --git a/node_modules/eslint-plugin-import/lib/rules/no-webpack-loader-syntax.js b/node_modules/eslint-plugin-import/lib/rules/no-webpack-loader-syntax.js index 4ffd5fdf83..a0e1a1481d 100644 --- a/node_modules/eslint-plugin-import/lib/rules/no-webpack-loader-syntax.js +++ b/node_modules/eslint-plugin-import/lib/rules/no-webpack-loader-syntax.js @@ -3,9 +3,7 @@ var _docsUrl = require('../docsUrl');var _docsUrl2 = _interopRequireDefault(_doc function reportIfNonStandard(context, node, name) { if (name && name.indexOf('!') !== -1) { - context.report(node, 'Unexpected \'!\' in \'' + String(name) + '\'. ' + - 'Do not use import syntax to configure webpack loaders.'); - + context.report(node, 'Unexpected \'!\' in \'' + String(name) + '\'. Do not use import syntax to configure webpack loaders.'); } } @@ -25,4 +23,4 @@ module.exports = { reportIfNonStandard(context, node, source.value); }, { commonjs: true }); }return create;}() }; -//# sourceMappingURL=data:application/json;charset=utf-8;base64,eyJ2ZXJzaW9uI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IHRydWUgfSk7XG4gIH0sXG59O1xuIl19 \ No newline at end of file diff --git a/node_modules/eslint-plugin-import/lib/rules/order.js b/node_modules/eslint-plugin-import/lib/rules/order.js index 877a49f351..3b5c86253d 100644 --- a/node_modules/eslint-plugin-import/lib/rules/order.js +++ b/node_modules/eslint-plugin-import/lib/rules/order.js @@ -2,6 +2,7 @@ var _minimatch = require('minimatch');var _minimatch2 = _interopRequireDefault(_minimatch); var _arrayIncludes = require('array-includes');var _arrayIncludes2 = _interopRequireDefault(_arrayIncludes); +var _object = require('object.groupby');var _object2 = _interopRequireDefault(_object); var _importType = require('../core/importType');var _importType2 = _interopRequireDefault(_importType); var _staticRequire = require('../core/staticRequire');var _staticRequire2 = _interopRequireDefault(_staticRequire); @@ -211,7 +212,7 @@ function fixOutOfOrder(context, firstNode, secondNode, order) { var newCode = sourceCode.text.substring(secondRootStart, secondRootEnd); if (newCode[newCode.length - 1] !== '\n') { - newCode = newCode + '\n'; + newCode = String(newCode) + '\n'; } var firstImport = String(makeImportDescription(firstNode)) + ' of `' + String(firstNode.displayName) + '`'; @@ -222,20 +223,18 @@ function fixOutOfOrder(context, firstNode, secondNode, order) { context.report({ node: secondNode.node, message: message, - fix: canFix && function (fixer) {return ( - fixer.replaceTextRange( - [firstRootStart, secondRootEnd], - newCode + sourceCode.text.substring(firstRootStart, secondRootStart)));} }); + fix: canFix && function (fixer) {return fixer.replaceTextRange( + [firstRootStart, secondRootEnd], + newCode + sourceCode.text.substring(firstRootStart, secondRootStart));} }); } else if (order === 'after') { context.report({ node: secondNode.node, message: message, - fix: canFix && function (fixer) {return ( - fixer.replaceTextRange( - [secondRootStart, firstRootEnd], - sourceCode.text.substring(secondRootEnd, firstRootEnd) + newCode));} }); + fix: canFix && function (fixer) {return fixer.replaceTextRange( + [secondRootStart, firstRootEnd], + sourceCode.text.substring(secondRootEnd, firstRootEnd) + newCode);} }); } @@ -255,6 +254,7 @@ function makeOutOfOrderReport(context, imported) { if (!outOfOrder.length) { return; } + // There are things to report. Try to minimize the number of reported errors. var reversedImported = reverse(imported); var reversedOrder = findOutOfOrder(reversedImported); @@ -303,7 +303,7 @@ function getSorter(alphabetizeOptions) { for (var i = 0; i < Math.min(a, b); i++) { result = compareString(A[i], B[i]); - if (result) break; + if (result) {break;} } if (!result && a !== b) { @@ -326,13 +326,7 @@ function getSorter(alphabetizeOptions) { } function mutateRanksToAlphabetize(imported, alphabetizeOptions) { - var groupedByRanks = imported.reduce(function (acc, importedItem) { - if (!Array.isArray(acc[importedItem.rank])) { - acc[importedItem.rank] = []; - } - acc[importedItem.rank].push(importedItem); - return acc; - }, {}); + var groupedByRanks = (0, _object2['default'])(imported, function (item) {return item.rank;}); var sorterFn = getSorter(alphabetizeOptions); @@ -428,17 +422,17 @@ var types = ['builtin', 'external', 'internal', 'unknown', 'parent', 'sibling', // Example: { index: 0, sibling: 1, parent: 1, external: 1, builtin: 2, internal: 2 } // Will throw an error if it contains a type that does not exist, or has a duplicate function convertGroupsToRanks(groups) { + if (groups.length === 1) { + // TODO: remove this `if` and fix the bug + return convertGroupsToRanks(groups[0]); + } var rankObject = groups.reduce(function (res, group, index) { - if (typeof group === 'string') { - group = [group]; - } - group.forEach(function (groupItem) { + [].concat(group).forEach(function (groupItem) { if (types.indexOf(groupItem) === -1) { - throw new Error('Incorrect configuration of the rule: Unknown type `' + - JSON.stringify(groupItem) + '`'); + throw new Error('Incorrect configuration of the rule: Unknown type `' + String(JSON.stringify(groupItem)) + '`'); } if (res[groupItem] !== undefined) { - throw new Error('Incorrect configuration of the rule: `' + groupItem + '` is duplicated'); + throw new Error('Incorrect configuration of the rule: `' + String(groupItem) + '` is duplicated'); } res[groupItem] = index * 2; }); @@ -446,7 +440,7 @@ function convertGroupsToRanks(groups) { }, {}); var omittedTypes = types.filter(function (type) { - return rankObject[type] === undefined; + return typeof rankObject[type] === 'undefined'; }); var ranks = omittedTypes.reduce(function (res, type) { @@ -535,9 +529,7 @@ function makeNewlinesBetweenReport(context, imported, newlinesBetweenImports, di return linesBetweenImports.filter(function (line) {return !line.trim().length;}).length; }; - var getIsStartOfDistinctGroup = function getIsStartOfDistinctGroup(currentImport, previousImport) { - return currentImport.rank - 1 >= previousImport.rank; - }; + var getIsStartOfDistinctGroup = function getIsStartOfDistinctGroup(currentImport, previousImport) {return currentImport.rank - 1 >= previousImport.rank;}; var previousImport = imported[0]; imported.slice(1).forEach(function (currentImport) { @@ -675,7 +667,7 @@ module.exports = { create: function () {function importOrderRule(context) { var options = context.options[0] || {}; var newlinesBetweenImports = options['newlines-between'] || 'ignore'; - var pathGroupsExcludedImportTypes = new Set(options['pathGroupsExcludedImportTypes'] || ['builtin', 'external', 'object']); + var pathGroupsExcludedImportTypes = new Set(options.pathGroupsExcludedImportTypes || ['builtin', 'external', 'object']); var alphabetize = getAlphabetizeConfig(options); var distinctGroup = options.distinctGroup == null ? defaultDistinctGroup : !!options.distinctGroup; var ranks = void 0; @@ -794,4 +786,4 @@ module.exports = { }return reportAndReset;}() }; }return importOrderRule;}() }; -//# sourceMappingURL=data:application/json;charset=utf-8;base64,eyJ2ZXJzaW9uIjozLCJzb3VyY2VzIjpbIi4uLy4uL3NyYy9ydWxlcy9vcmRlci5qcyJdLCJuYW1lcyI6WyJkZWZhdWx0R3JvdXBzIiwicmV2ZXJzZSIsImFycmF5IiwibWFwIiwidiIsIk9iamVjdCIsImFzc2lnbiIsInJhbmsiLCJnZXRUb2tlbnNPckNvbW1lbnRzQWZ0ZXIiLCJzb3VyY2VDb2RlIiwibm9kZSIsImNvdW50IiwiY3VycmVudE5vZGVPclRva2VuIiwicmVzdWx0IiwiaSIsImdldFRva2VuT3JDb21tZW50QWZ0ZXIiLCJwdXNoIiwiZ2V0VG9rZW5zT3JDb21tZW50c0JlZm9yZSIsImdldFRva2VuT3JDb21tZW50QmVmb3JlIiwidGFrZVRva2Vuc0FmdGVyV2hpbGUiLCJjb25kaXRpb24iLCJ0b2tlbnMiLCJsZW5ndGgiLCJ0YWtlVG9rZW5zQmVmb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XInKSxcbiAgICB9LFxuXG4gICAgZml4YWJsZTogJ2NvZGUnLFxuICAgIHNjaGVtYTogW1xuICAgICAge1xuICAgICAgICB0eXBlOiAnb2JqZWN0JyxcbiAgICAgICAgcHJvcGVydGllczoge1xuICAgICAgICAgIGdyb3Vwczoge1xuICAgICAgICAgICAgdHlwZTogJ2FycmF5JyxcbiAgICAgICAgICB9LFxuICAgICAgICAgIHBhdGhHcm91cHNFeGNsdWRlZEltcG9ydFR5cGVzOiB7XG4gICAgICAgICAgICB0eXBlOiAnYXJyYXknLFxuICAgICAgICAgIH0sXG4gICAgICAgICAgZGlzdGluY3RHcm91cDoge1xuICAgICAgICAgICAgdHlwZTogJ2Jvb2xlYW4nLFxuICAgICAgICAgICAgZGVmYXVsdDogZGVmYXVsdERpc3RpbmN0R3JvdXAsXG4gICAgICAgICAgfSxcbiAgICAgICAgICBwYXRoR3JvdXBzOiB7XG4gICAgICAgICAgICB0eXBlOiAnYXJyYXknLFxuICAgICAgICAgICAgaXRlbXM6IHtcbiAgICAgICAgICAgICAgdHlwZTogJ29iamVjdCcsXG4gICAgICAgICAgICAgIHByb3BlcnRpZXM6IHtcbiAgICAgICAgICAgICAgICBwYXR0ZXJuOiB7XG4gICAgICAgICAgICAgICAgICB0eXBlOiAnc3RyaW5nJyxcbiAgICAgICAgICAgICAgICB9LFxuICAgICAgICAgICAgICAgIHBhdHRlcm5PcHRpb25zOiB7XG4gICAgICAgICAgICAgICAgICB0eXBlOiAnb2JqZWN0JyxcbiAgICAgICAgICAgICAgICB9LFxuICAgICAgICAgICAgICAgIGdyb3VwOiB7XG4gICAgICAgICAgICAgICAgICB0eXBlOiAnc3RyaW5nJyxcbiAgICAgICAgICAgICAgICAgIGVudW06IHR5cGVzLFxuICAgICAgICAgICAgICAgIH0sXG4gICAgICAgICAgICAgICAgcG9zaXRpb246IHtcbiAgICAgICAgICAgICAgICAgIHR5cGU6ICdzdHJpbmcnLFxuICAgICAgICAgICAgICAgICAgZW51bTogWydhZnRlcicsICdiZWZvcmUnXSxcbiAgICAgICAgICAgICAgICB9LFxuICAgICAgICAgICAgICB9LFxuICAgICAgICAgICAgICBhZGRpdGlvbmFsUHJvcGVydGllczogZmFsc2UsXG4gICAgICAgICAgICAgIHJlcXVpcmVkOiBbJ3BhdHRlcm4nLCAnZ3JvdXAnXSxcbiAgICAgICAgICAgIH0sXG4gICAgICAgICAgfSxcbiAgICAgICAgICAnbmV3bGluZXMtYmV0d2Vlbic6IHtcbiAgICAgICAgICAgIGVudW06IFtcbiAgICAgICAgICAgICAgJ2lnbm9yZScsXG4gICAgICAgICAgICAgICdhbHdheXMnLFxuICAgICAgICAgICAgICAnYWx3YXlzLWFuZC1pbnNpZGUtZ3JvdXBzJyxcbiAgICAgICAgICAgICAgJ25ldmVyJyxcbiAgICAgICAgICAgIF0sXG4gICAgICAgICAgfSxcbiAgICAgICAgICBhbHBoYWJldGl6ZToge1xuICAgICAgICAgICAgdHlwZTogJ29iamVjdCcsXG4gICAgICAgICAgICBwcm9wZXJ0aWVzOiB7XG4gICAgICAgICAgICAgIGNhc2VJbnNlbnNpdGl2ZToge1xuICAgICAgICAgICAgICAgIHR5cGU6ICdib29sZWFuJyxcbiAgICAgICAgICAgICAgICBkZWZhdWx0OiBmYWxzZSxcbiAgICAgICAgICAgICAgfSxcbiAgICAgICAgICAgICAgb3JkZXI6IHtcbiAgICAgICAgICAgICAgICBlbnVtOiBbJ2lnbm9yZScsICdhc2MnLCAnZGVzYyddLFxuICAgICAgICAgICAgICAgIGRlZmF1bHQ6ICdpZ25vcmUnLFxuICAgICAgICAgICAgICB9LFxuICAgICAgICAgICAgICBvcmRlckltcG9ydEtpbmQ6IHtcbiAgICAgICAgICAgICAgICBlbnVtOiBbJ2lnbm9yZScsICdhc2MnLCAnZGVzYyddLFxuICAgICAgICAgICAgICAgIGRlZmF1bHQ6ICdpZ25vcmUnLFxuICAgICAgICAgICAgICB9LFxuICAgICAgICAgICAgfSxcbiAgICAgICAgICAgIGFkZGl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ICAgICAgICAgcmVnaXN0ZXJOb2RlKFxuICAgICAgICAgICAgY29udGV4dCxcbiAgICAgICAgICAgIHtcbiAgICAgICAgICAgICAgbm9kZSxcbiAgICAgICAgICAgICAgdmFsdWU6IG5hbWUsXG4gICAgICAgICAgICAgIGRpc3BsYXlOYW1lOiBuYW1lLFxuICAgICAgICAgICAgICB0eXBlOiAnaW1wb3J0JyxcbiAgICAgICAgICAgIH0sXG4gICAgICAgICAgICByYW5rcyxcbiAgICAgICAgICAgIGdldEJsb2NrSW1wb3J0cyhub2RlLnBhcmVudCksXG4gICAgICAgICAgICBwYXRoR3JvdXBzRXhjbHVkZWRJbXBvcnRUeXBlcyxcbiAgICAgICAgICApO1xuICAgICAgICB9XG4gICAgICB9LFxuICAgICAgVFNJbXBvcnRFcXVhbHNEZWNsYXJhdGlvbjogZnVuY3Rpb24gaGFuZGxlSW1wb3J0cyhub2RlKSB7XG4gICAgICAgIGxldCBkaXNwbGF5TmFtZTtcbiAgICAgICAgbGV0IHZhbHVlO1xuICAgICAgICBsZXQgdHlwZTtcbiAgICAgICAgLy8gc2tpcCBcImV4cG9ydCBpbXBvcnRcInNcbiAgICAgICAgaWYgKG5vZGUuaXNFeHBvcnQpIHtcbiAgICAgICAgICByZXR1cm47XG4gICAgICAgIH1cbiAgICAgICAgaWYgKG5vZGUubW9kdWxlUmVmZXJlbmNlLnR5cGUgPT09ICdUU0V4dGVybmFsTW9kdWxlUmVmZXJlbmNlJykge1xuICAgICAgICAgIHZhbHVlID0gbm9kZS5tb2R1bGVSZWZlcmVuY2UuZXhwcmVzc2lvbi52YWx1ZTtcbiAgICAgICAgICBkaXNwbGF5TmFtZSA9IHZhbHVlO1xuICAgICAgICAgIHR5cGUgPSAnaW1wb3J0JztcbiAgICAgICAgfSBlbHNlIHtcbiAgICAgICAgICB2YWx1ZSA9ICcnO1xuICAgICAgICAgIGRpc3BsYXlOYW1lID0gY29udGV4dC5nZXRTb3VyY2VDb2RlKCkuZ2V0VGV4dChub2RlLm1vZHVsZVJlZmVyZW5jZSk7XG4gICAgICAgICAgdHlwZSA9ICdpbXBvcnQ6b2JqZWN0JztcbiAgICAgICAgfVxuICAgICAgICByZWdpc3Rlck5vZGUoXG4gICAgICAgICAgY29udGV4dCxcbiAgICAgICAgICB7XG4gICAgICAgICAgICBub2RlLFxuICAgICAgICAgICAgdmFsdWUsXG4gICAgICAgICAgICBkaXNwbGF5TmFtZSxcbiAgICAgICAgICAgIHR5cGUsXG4gICAgICAgICAgfSxcbiAgICAgICAgICByYW5rcyxcbiAgICAgICAgICBnZXRCbG9ja0ltcG9ydHMobm9kZS5wYXJlbnQpLFxuICAgICAgICAgIHBhdGhHcm91cHNFeGNsdWRlZEltcG9ydFR5cGVzLFxuICAgICAgICApO1xuICAgICAgfSxcbiAgICAgIENhbGxFeHByZXNzaW9uOiBmdW5jdGlvbiBoYW5kbGVSZXF1aXJlcyhub2RlKSB7XG4gICAgICAgIGlmICghaXNTdGF0aWNSZXF1aXJlKG5vZGUpKSB7XG4gICAgICAgICAgcmV0dXJuO1xuICAgICAgICB9XG4gICAgICAgIGNvbnN0IGJsb2NrID0gZ2V0UmVxdWlyZUJsb2NrKG5vZGUpO1xuICAgICAgICBpZiAoIWJsb2NrKSB7XG4gICAgICAgICAgcmV0dXJuO1xuICAgICAgICB9XG4gICAgICAgIGNvbnN0IG5hbWUgPSBub2RlLmFyZ3VtZW50c1swXS52YWx1ZTtcbiAgICAgICAgcmVnaXN0ZXJOb2RlKFxuICAgICAgICAgIGNvbnRleHQsXG4gICAgICAgICAge1xuICAgICAgICAgICAgbm9kZSxcbiAgICAgICAgICAgIHZhbHVlOiBuYW1lLFxuICAgICAgICAgICAgZGlzcGxheU5hbWU6IG5hbWUsXG4gICAgICAgICAgICB0eXBlOiAncmVxdWlyZScsXG4gICAgICAgICAgfSxcbiAgICAgICAgICByYW5rcyxcbiAgICAgICAgICBnZXRCbG9ja0ltcG9ydHMoYmxvY2spLFxuICAgICAgICAgIHBhdGhHcm91cHNFeGNsdWRlZEltcG9ydFR5cGVzLFxuICAgICAgICApO1xuICAgICAgfSxcbiAgICAgICdQcm9ncmFtOmV4aXQnOiBmdW5jdGlvbiByZXBvcnRBbmRSZXNldCgpIHtcbiAgICAgICAgaW1wb3J0TWFwLmZvckVhY2goKGltcG9ydGVkKSA9PiB7XG4gICAgICAgICAgaWYgKG5ld2xpbmVzQmV0d2VlbkltcG9ydHMgIT09ICdpZ25vcmUnKSB7XG4gICAgICAgICAgICBtYWtlTmV3bGluZXNCZXR3ZWVuUmVwb3J0KGNvbnRleHQsIGltcG9ydGVkLCBuZXdsaW5lc0JldHdlZW5JbXBvcnRzLCBkaXN0aW5jdEdyb3VwKTtcbiAgICAgICAgICB9XG5cbiAgICAgICAgICBpZiAoYWxwaGFiZXRpemUub3JkZXIgIT09ICdpZ25vcmUnKSB7XG4gICAgICAgICAgICBtdXRhdGVSYW5rc1RvQWxwaGFiZXRpemUoaW1wb3J0ZWQsIGFscGhhYmV0aXplKTtcbiAgICAgICAgICB9XG5cbiAgICAgICAgICBtYWtlT3V0T2ZPcmRlclJlcG9ydChjb250ZXh0LCBpbXBvcnRlZCk7XG4gICAgICAgIH0pO1xuXG4gICAgICAgIGltcG9ydE1hcC5jbGVhcigpO1xuICAgICAgfSxcbiAgICB9O1xuICB9LFxufTtcbiJdfQ== \ No newline at end of file +//# sourceMappingURL=data:application/json;charset=utf-8;base64,eyJ2ZXJzaW9uIjozLCJzb3VyY2VzIjpbIi4uLy4uL3NyYy9ydWxlcy9vcmRlci5qcyJdLCJuYW1lcyI6WyJkZWZhdWx0R3JvdXBzIiwicmV2ZXJzZSIsImFycmF5IiwibWFwIiwidiIsInJhbmsiLCJnZXRUb2tlbnNPckNvbW1lbnRzQWZ0ZXIiLCJzb3VyY2VDb2RlIiwibm9kZSIsImNvdW50IiwiY3VycmVudE5vZGVPclRva2VuIiwicmVzdWx0IiwiaSIsImdldFRva2VuT3JDb21tZW50QWZ0ZXIiLCJwdXNoIiwiZ2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csXG4gICAgICAgIHByb3BlcnRpZXM6IHtcbiAgICAgICAgICBncm91cHM6IHtcbiAgICAgICAgICAgIHR5cGU6ICdhcnJheScsXG4gICAgICAgICAgfSxcbiAgICAgICAgICBwYXRoR3JvdXBzRXhjbHVkZWRJbXBvcnRUeXBlczoge1xuICAgICAgICAgICAgdHlwZTogJ2FycmF5JyxcbiAgICAgICAgICB9LFxuICAgICAgICAgIGRpc3RpbmN0R3JvdXA6IHtcbiAgICAgICAgICAgIHR5cGU6ICdib29sZWFuJyxcbiAgICAgICAgICAgIGRlZmF1bHQ6IGRlZmF1bHREaXN0aW5jdEdyb3VwLFxuICAgICAgICAgIH0sXG4gICAgICAgICAgcGF0aEdyb3Vwczoge1xuICAgICAgICAgICAgdHlwZTogJ2FycmF5JyxcbiAgICAgICAgICAgIGl0ZW1zOiB7XG4gICAgICAgICAgICAgIHR5cGU6ICdvYmplY3QnLFxuICAgICAgICAgICAgICBwcm9wZXJ0aWVzOiB7XG4gICAgICAgICAgICAgICAgcGF0dGVybjoge1xuICAgICAgICAgICAgICAgICAgdHlwZTogJ3N0cmluZycsXG4gICAgICAgICAgICAgICAgfSxcbiAgICAgICAgICAgICAgICBwYXR0ZXJuT3B0aW9uczoge1xuICAgICAgICAgICAgICAgICAgdHlwZTogJ29iamVjdCcsXG4gICAgICAgICAgICAgICAgfSxcbiAgICAgICAgICAgICAgICBncm91cDoge1xuICAgICAgICAgICAgICAgICAgdHlwZTogJ3N0cmluZycsXG4gICAgICAgICAgICAgICAgICBlbnVtOiB0eXBlcyxcbiAgICAgICAgICAgICAgICB9LFxuICAgICAgICAgICAgICAgIHBvc2l0aW9uOiB7XG4gICAgICAgICAgICAgICAgICB0eXBlOiAnc3RyaW5nJyxcbiAgICAgICAgICAgICAgICAgIGVudW06IFsnYWZ0ZXInLCAnYmVmb3JlJ10sXG4gICAgICAgICAgICAgICAgfSxcbiAgICAgICAgICAgICAgfSxcbiAgICAgICAgICAgICAgYWRkaXRpb25hbFByb3BlcnRpZXM6IGZhbHNlLFxuICAgICAgICAgICAgICByZXF1aXJlZDogWydwYXR0ZXJuJywgJ2dyb3VwJ10sXG4gICAgICAgICAgICB9LFxuICAgICAgICAgIH0sXG4gICAgICAgICAgJ25ld2xpbmVzLWJldHdlZW4nOiB7XG4gICAgICAgICAgICBlbnVtOiBbXG4gICAgICAgICAgICAgICdpZ25vcmUnLFxuICAgICAgICAgICAgICAnYWx3YXlzJyxcbiAgICAgICAgICAgICAgJ2Fsd2F5cy1hbmQtaW5zaWRlLWdyb3VwcycsXG4gICAgICAgICAgICAgICduZXZlcicsXG4gICAgICAgICAgICBdLFxuICAgICAgICAgIH0sXG4gICAgICAgICAgYWxwaGFiZXRpemU6IHtcbiAgICAgICAgICAgIHR5cGU6ICdvYmplY3QnLFxuICAgICAgICAgICAgcHJvcGVydGllczoge1xuICAgICAgICAgICAgICBjYXNlSW5zZW5zaXRpdmU6IHtcbiAgICAgICAgICAgICAgICB0eXBlOiAnYm9vbGVhbicsXG4gICAgICAgICAgICAgICAgZGVmYXVsdDogZmFsc2UsXG4gICAgICAgICAgICAgIH0sXG4gICAgICAgICAgICAgIG9yZGVyOiB7XG4gICAgICAgICAgICAgICAgZW51bTogWydpZ25vcmUnLCAnYXNjJywgJ2Rlc2MnXSxcbiAgICAgICAgICAgICAgICBkZWZhdWx0OiAnaWdub3JlJyxcbiAgICAgICAgICAgICAgfSxcbiAgICAgICAgICAgICAgb3JkZXJJbXBvcnRLaW5kOiB7XG4gICAgICAgICAgICAgICAgZW51bTogWydpZ25vcmUnLCAnYXNjJywgJ2Rlc2MnXSxcbiAgICAgICAgICAgICAgICBkZWZhdWx0OiAnaWdub3JlJyxcbiAgICAgICAgICAgICAgfSxcbiAgICAgICAgICAgIH0sXG4gICAgICAgICAgICBhZGRpdGlvbmFsUHJvcGVydGllczogZmFsc2UsXG4gICAgICAgICAgfSxcbiAgICAgICAgICB3YXJuT25VbmFzc2lnbmVkSW1wb3J0czoge1xuICAgICAgICAgICA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RlZmF1bHRHcm91cHMpO1xuICAgICAgcmFua3MgPSB7XG4gICAgICAgIGdyb3VwcyxcbiAgICAgICAgb21pdHRlZFR5cGVzLFxuICAgICAgICBwYXRoR3JvdXBzLFxuICAgICAgICBtYXhQb3NpdGlvbixcbiAgICAgIH07XG4gICAgfSBjYXRjaCAoZXJyb3IpIHtcbiAgICAgIC8vIE1hbGZvcm1lZCBjb25maWd1cmF0aW9uXG4gICAgICByZXR1cm4ge1xuICAgICAgICBQcm9ncmFtKG5vZGUpIHtcbiAgICAgICAgICBjb250ZXh0LnJlcG9ydChub2RlLCBlcnJvci5tZXNzYWdlKTtcbiAgICAgICAgfSxcbiAgICAgIH07XG4gICAgfVxuICAgIGNvbnN0IGltcG9ydE1hcCA9IG5ldyBNYXAoKTtcblxuICAgIGZ1bmN0aW9uIGdldEJsb2NrSW1wb3J0cyhub2RlKSB7XG4gICAgICBpZiAoIWltcG9ydE1hcC5oYXMobm9kZSkpIHtcbiAgICAgICAgaW1wb3J0TWFwLnNldChub2RlLCBbXSk7XG4gICAgICB9XG4gICAgICByZXR1cm4gaW1wb3J0TWFwLmdldChub2RlKTtcbiAgICB9XG5cbiAgICByZXR1cm4ge1xuICAgICAgSW1wb3J0RGVjbGFyYXRpb246IGZ1bmN0aW9uIGhhbmRsZUltcG9ydHMobm9kZSkge1xuICAgICAgICAvLyBJZ25vcmluZyB1bmFzc2lnbmVkIGltcG9ydHMgdW5sZXNzIHdhcm5PblVuYXNzaWduZWRJbXBvcnRzIGlzIHNldFxuICAgICAgICBpZiAobm9kZS5zcGVjaWZpZXJzLmxlbmd0aCB8fCBvcHRpb25zLndhcm5PblVuYXNzaWduZWRJbXBvcnRzKSB7XG4gICAgICAgICAgY29uc3QgbmFtZSA9IG5vZGUuc291cmNlLnZhbHVlO1xuICAgICAgICAgIHJlZ2lzdGVyTm9kZShcbiAgICAgICAgICAgIGNvbnRleHQsXG4gICAgICAgICAgICB7XG4gICAgICAgICAgICAgIG5vZGUsXG4gICAgICAgICAgICAgIHZhbHVlOiBuYW1lLFxuICAgICAgICAgICAgICBkaXNwbGF5TmFtZTogbmFtZSxcbiAgICAgICAgICAgICAgdHlwZTogJ2ltcG9ydCcsXG4gICAgICAgICAgICB9LFxuICAgICAgICAgICAgcmFua3MsXG4gICAgICAgICAgICBnZXRCbG9ja0ltcG9ydHMobm9kZS5wYXJlbnQpLFxuICAgICAgICAgICAgcGF0aEdyb3Vwc0V4Y2x1ZGVkSW1wb3J0VHlwZXMsXG4gICAgICAgICAgKTtcbiAgICAgICAgfVxuICAgICAgfSxcbiAgICAgIFRTSW1wb3J0RXF1YWxzRGVjbGFyYXRpb246IGZ1bmN0aW9uIGhhbmRsZUltcG9ydHMobm9kZSkge1xuICAgICAgICBsZXQgZGlzcGxheU5hbWU7XG4gICAgICAgIGxldCB2YWx1ZTtcbiAgICAgICAgbGV0IHR5cGU7XG4gICAgICAgIC8vIHNraXAgXCJleHBvcnQgaW1wb3J0XCJzXG4gICAgICAgIGlmIChub2RlLmlzRXhwb3J0KSB7XG4gICAgICAgICAgcmV0dXJuO1xuICAgICAgICB9XG4gICAgICAgIGlmIChub2RlLm1vZHVsZVJlZmVyZW5jZS50eXBlID09PSAnVFNFeHRlcm5hbE1vZHVsZVJlZmVyZW5jZScpIHtcbiAgICAgICAgICB2YWx1ZSA9IG5vZGUubW9kdWxlUmVmZXJlbmNlLmV4cHJlc3Npb24udmFsdWU7XG4gICAgICAgICAgZGlzcGxheU5hbWUgPSB2YWx1ZTtcbiAgICAgICAgICB0eXBlID0gJ2ltcG9ydCc7XG4gICAgICAgIH0gZWxzZSB7XG4gICAgICAgICAgdmFsdWUgPSAnJztcbiAgICAgICAgICBkaXNwbGF5TmFtZSA9IGNvbnRleHQuZ2V0U291cmNlQ29kZSgpLmdldFRleHQobm9kZS5tb2R1bGVSZWZlcmVuY2UpO1xuICAgICAgICAgIHR5cGUgPSAnaW1wb3J0Om9iamVjdCc7XG4gICAgICAgIH1cbiAgICAgICAgcmVnaXN0ZXJOb2RlKFxuICAgICAgICAgIGNvbnRleHQsXG4gICAgICAgICAge1xuICAgICAgICAgICAgbm9kZSxcbiAgICAgICAgICAgIHZhbHVlLFxuICAgICAgICAgICAgZGlzcGxheU5hbWUsXG4gICAgICAgICAgICB0eXBlLFxuICAgICAgICAgIH0sXG4gICAgICAgICAgcmFua3MsXG4gICAgICAgICAgZ2V0QmxvY2tJbXBvcnRzKG5vZGUucGFyZW50KSxcbiAgICAgICAgICBwYXRoR3JvdXBzRXhjbHVkZWRJbXBvcnRUeXBlcyxcbiAgICAgICAgKTtcbiAgICAgIH0sXG4gICAgICBDYWxsRXhwcmVzc2lvbjogZnVuY3Rpb24gaGFuZGxlUmVxdWlyZXMobm9kZSkge1xuICAgICAgICBpZiAoIWlzU3RhdGljUmVxdWlyZShub2RlKSkge1xuICAgICAgICAgIHJldHVybjtcbiAgICAgICAgfVxuICAgICAgICBjb25zdCBibG9jayA9IGdldFJlcXVpcmVCbG9jayhub2RlKTtcbiAgICAgICAgaWYgKCFibG9jaykge1xuICAgICAgICAgIHJldHVybjtcbiAgICAgICAgfVxuICAgICAgICBjb25zdCBuYW1lID0gbm9kZS5hcmd1bWVudHNbMF0udmFsdWU7XG4gICAgICAgIHJlZ2lzdGVyTm9kZShcbiAgICAgICAgICBjb250ZXh0LFxuICAgICAgICAgIHtcbiAgICAgICAgICAgIG5vZGUsXG4gICAgICAgICAgICB2YWx1ZTogbmFtZSxcbiAgICAgICAgICAgIGRpc3BsYXlOYW1lOiBuYW1lLFxuICAgICAgICAgICAgdHlwZTogJ3JlcXVpcmUnLFxuICAgICAgICAgIH0sXG4gICAgICAgICAgcmFua3MsXG4gICAgICAgICAgZ2V0QmxvY2tJbXBvcnRzKGJsb2NrKSxcbiAgICAgICAgICBwYXRoR3JvdXBzRXhjbHVkZWRJbXBvcnRUeXBlcyxcbiAgICAgICAgKTtcbiAgICAgIH0sXG4gICAgICAnUHJvZ3JhbTpleGl0JzogZnVuY3Rpb24gcmVwb3J0QW5kUmVzZXQoKSB7XG4gICAgICAgIGltcG9ydE1hcC5mb3JFYWNoKChpbXBvcnRlZCkgPT4ge1xuICAgICAgICAgIGlmIChuZXdsaW5lc0JldHdlZW5JbXBvcnRzICE9PSAnaWdub3JlJykge1xuICAgICAgICAgICAgbWFrZU5ld2xpbmVzQmV0d2VlblJlcG9ydChjb250ZXh0LCBpbXBvcnRlZCwgbmV3bGluZXNCZXR3ZWVuSW1wb3J0cywgZGlzdGluY3RHcm91cCk7XG4gICAgICAgICAgfVxuXG4gICAgICAgICAgaWYgKGFscGhhYmV0aXplLm9yZGVyICE9PSAnaWdub3JlJykge1xuICAgICAgICAgICAgbXV0YXRlUmFua3NUb0FscGhhYmV0aXplKGltcG9ydGVkLCBhbHBoYWJldGl6ZSk7XG4gICAgICAgICAgfVxuXG4gICAgICAgICAgbWFrZU91dE9mT3JkZXJSZXBvcnQoY29udGV4dCwgaW1wb3J0ZWQpO1xuICAgICAgICB9KTtcblxuICAgICAgICBpbXBvcnRNYXAuY2xlYXIoKTtcbiAgICAgIH0sXG4gICAgfTtcbiAgfSxcbn07XG4iXX0= \ No newline at end of file diff --git a/node_modules/eslint-plugin-import/lib/rules/prefer-default-export.js b/node_modules/eslint-plugin-import/lib/rules/prefer-default-export.js index 8dacb1ee43..a4d827977a 100644 --- a/node_modules/eslint-plugin-import/lib/rules/prefer-default-export.js +++ b/node_modules/eslint-plugin-import/lib/rules/prefer-default-export.js @@ -51,11 +51,11 @@ module.exports = { } return { - 'ExportDefaultSpecifier': function () {function ExportDefaultSpecifier() { + ExportDefaultSpecifier: function () {function ExportDefaultSpecifier() { hasDefaultExport = true; }return ExportDefaultSpecifier;}(), - 'ExportSpecifier': function () {function ExportSpecifier(node) { + ExportSpecifier: function () {function ExportSpecifier(node) { if ((node.exported.name || node.exported.value) === 'default') { hasDefaultExport = true; } else { @@ -64,9 +64,9 @@ module.exports = { } }return ExportSpecifier;}(), - 'ExportNamedDeclaration': function () {function ExportNamedDeclaration(node) { + ExportNamedDeclaration: function () {function ExportNamedDeclaration(node) { // if there are specifiers, node.declaration should be null - if (!node.declaration) return;var + if (!node.declaration) {return;}var type = node.declaration.type; @@ -93,11 +93,11 @@ module.exports = { namedExportNode = node; }return ExportNamedDeclaration;}(), - 'ExportDefaultDeclaration': function () {function ExportDefaultDeclaration() { + ExportDefaultDeclaration: function () {function ExportDefaultDeclaration() { hasDefaultExport = true; }return ExportDefaultDeclaration;}(), - 'ExportAllDeclaration': function () {function ExportAllDeclaration() { + ExportAllDeclaration: function () {function ExportAllDeclaration() { hasStarExport = true; }return ExportAllDeclaration;}(), @@ -113,4 +113,4 @@ module.exports = { }return ProgramExit;}() }; }return create;}() }; -//# sourceMappingURL=data:application/json;charset=utf-8;base64,eyJ2ZXJzaW9uIjozLCJzb3VyY2VzIjpbIi4uLy4uL3NyYy9ydWxlcy9wcmVmZXItZGVmYXVsdC1leHBvcnQuanMiXSwibmFtZXMiOlsiU0lOR0xFX0VYUE9SVF9FUlJPUl9NRVNTQUdFIiwiQU5ZX0VYUE9SVF9FUlJPUl9NRVNTQUdFIiwibW9kdWxlIiwiZXhwb3J0cyIsIm1ldGEiLCJ0eXBlIiwiZG9jcyIsImNhdGVnb3J5IiwiZGVzY3JpcHRpb24iLCJ1cmwiLCJzY2hlbWEiLCJwcm9wZXJ0aWVzIiwidGFyZ2V0IiwiYWRkaXRpb25hbFByb3BlcnRpZXMiLCJjcmVhdGUiLCJjb250ZXh0Iiwic3BlY2lmaWVyRXhwb3J0Q291bnQiLCJoYXNEZWZhdWx0RXhwb3J0IiwiaGFzU3RhckV4cG9ydCIsImhhc1R5cGVFeHBvcnQiLCJuYW1lZEV4cG9ydE5vZGUiLCJvcHRpb25zIiwiY2FwdHVyZURlY2xhcmF0aW9uIiwiaWRlbnRpZmllck9yUGF0dGVybiIsImZvckVhY2giLCJwcm9wZXJ0eSIsInZhbHVlIiwiZWxlbWVudHMiLCJub2RlIiwiZXhwb3J0ZWQiLCJuYW1lIiwiZG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0Jykge1xuICAgICAgICAgIGhhc0RlZmF1bHRFeHBvcnQgPSB0cnVlO1xuICAgICAgICB9IGVsc2Uge1xuICAgICAgICAgIHNwZWNpZmllckV4cG9ydENvdW50Kys7XG4gICAgICAgICAgbmFtZWRFeHBvcnROb2RlID0gbm9kZTtcbiAgICAgICAgfVxuICAgICAgfSxcblxuICAgICAgRXhwb3J0TmFtZWREZWNsYXJhdGlvbihub2RlKSB7XG4gICAgICAgIC8vIGlmIHRoZXJlIGFyZSBzcGVjaWZpZXJzLCBub2RlLmRlY2xhcmF0aW9uIHNob3VsZCBiZSBudWxsXG4gICAgICAgIGlmICghbm9kZS5kZWNsYXJhdGlvbikgeyByZXR1cm47IH1cblxuICAgICAgICBjb25zdCB7IHR5cGUgfSA9IG5vZGUuZGVjbGFyYXRpb247XG5cbiAgICAgICAgaWYgKFxuICAgICAgICAgIHR5cGUgPT09ICdUU1R5cGVBbGlhc0RlY2xhcmF0aW9uJ1xuICAgICAgICAgIHx8IHR5cGUgPT09ICdUeXBlQWxpYXMnXG4gICAgICAgICAgfHwgdHlwZSA9PT0gJ1RTSW50ZXJmYWNlRGVjbGFyYXRpb24nXG4gICAgICAgICAgfHwgdHlwZSA9PT0gJ0ludGVyZmFjZURlY2xhcmF0aW9uJ1xuICAgICAgICApIHtcbiAgICAgICAgICBzcGVjaWZpZXJFeHBvcnRDb3VudCsrO1xuICAgICAgICAgIGhhc1R5cGVFeHBvcnQgPSB0cnVlO1xuICAgICAgICAgIHJldHVybjtcbiAgICAgICAgfVxuXG4gICAgICAgIGlmIChub2RlLmRlY2xhcmF0aW9uLmRlY2xhcmF0aW9ucykge1xuICAgICAgICAgIG5vZGUuZGVjbGFyYXRpb24uZGVjbGFyYXRpb25zLmZvckVhY2goZnVuY3Rpb24gKGRlY2xhcmF0aW9uKSB7XG4gICAgICAgICAgICBjYXB0dXJlRGVjbGFyYXRpb24oZGVjbGFyYXRpb24uaWQpO1xuICAgICAgICAgIH0pO1xuICAgICAgICB9IGVsc2Uge1xuICAgICAgICAgIC8vIGNhcHR1cmVzICdleHBvcnQgZnVuY3Rpb24gZm9vKCkge30nIHN5bnRheFxuICAgICAgICAgIHNwZWNpZmllckV4cG9ydENvdW50Kys7XG4gICAgICAgIH1cblxuICAgICAgICBuYW1lZEV4cG9ydE5vZGUgPSBub2RlO1xuICAgICAgfSxcblxuICAgICAgRXhwb3J0RGVmYXVsdERlY2xhcmF0aW9uKCkge1xuICAgICAgICBoYXNEZWZhdWx0RXhwb3J0ID0gdHJ1ZTtcbiAgICAgIH0sXG5cbiAgICAgIEV4cG9ydEFsbERlY2xhcmF0aW9uKCkge1xuICAgICAgICBoYXNTdGFyRXhwb3J0ID0gdHJ1ZTtcbiAgICAgIH0sXG5cbiAgICAgICdQcm9ncmFtOmV4aXQnKCkge1xuICAgICAgICBpZiAoaGFzRGVmYXVsdEV4cG9ydCB8fCBoYXNTdGFyRXhwb3J0IHx8IGhhc1R5cGVFeHBvcnQpIHtcbiAgICAgICAgICByZXR1cm47XG4gICAgICAgIH1cbiAgICAgICAgaWYgKHRhcmdldCA9PT0gJ3NpbmdsZScgJiYgc3BlY2lmaWVyRXhwb3J0Q291bnQgPT09IDEpIHtcbiAgICAgICAgICBjb250ZXh0LnJlcG9ydChuYW1lZEV4cG9ydE5vZGUsIFNJTkdMRV9FWFBPUlRfRVJST1JfTUVTU0FHRSk7XG4gICAgICAgIH0gZWxzZSBpZiAodGFyZ2V0ID09PSAnYW55JyAmJiBzcGVjaWZpZXJFeHBvcnRDb3VudCA+IDApIHtcbiAgICAgICAgICBjb250ZXh0LnJlcG9ydChuYW1lZEV4cG9ydE5vZGUsIEFOWV9FWFBPUlRfRVJST1JfTUVTU0FHRSk7XG4gICAgICAgIH1cbiAgICAgIH0sXG4gICAgfTtcbiAgfSxcbn07XG4iXX0= \ No newline at end of file diff --git a/node_modules/eslint-plugin-import/memo-parser/index.js b/node_modules/eslint-plugin-import/memo-parser/index.js index de558ffa3e..7868b7e953 100644 --- a/node_modules/eslint-plugin-import/memo-parser/index.js +++ b/node_modules/eslint-plugin-import/memo-parser/index.js @@ -17,7 +17,7 @@ const parserOptions = { }; exports.parse = function parse(content, options) { - options = Object.assign({}, options, parserOptions); + options = { ...options, ...parserOptions }; if (!options.filePath) { throw new Error('no file path provided!'); @@ -30,7 +30,7 @@ exports.parse = function parse(content, options) { const key = keyHash.digest('hex'); let ast = cache.get(key); - if (ast != null) return ast; + if (ast != null) { return ast; } const realParser = moduleRequire(options.parser); diff --git a/node_modules/eslint-plugin-import/node_modules/.bin/semver b/node_modules/eslint-plugin-import/node_modules/.bin/semver deleted file mode 120000 index 5aaadf42c4..0000000000 --- a/node_modules/eslint-plugin-import/node_modules/.bin/semver +++ /dev/null @@ -1 +0,0 @@ -../semver/bin/semver.js \ No newline at end of file diff --git a/node_modules/eslint-plugin-import/node_modules/semver/LICENSE b/node_modules/eslint-plugin-import/node_modules/semver/LICENSE deleted file mode 100644 index 19129e315f..0000000000 --- a/node_modules/eslint-plugin-import/node_modules/semver/LICENSE +++ /dev/null @@ -1,15 +0,0 @@ -The ISC License - -Copyright (c) Isaac Z. Schlueter and Contributors - -Permission to use, copy, modify, and/or distribute this software for any -purpose with or without fee is hereby granted, provided that the above -copyright notice and this permission notice appear in all copies. - -THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL WARRANTIES -WITH REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF -MERCHANTABILITY AND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR -ANY SPECIAL, DIRECT, INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES -WHATSOEVER RESULTING FROM LOSS OF USE, DATA OR PROFITS, WHETHER IN AN -ACTION OF CONTRACT, NEGLIGENCE OR OTHER TORTIOUS ACTION, ARISING OUT OF OR -IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE. diff --git a/node_modules/eslint-plugin-import/node_modules/semver/README.md b/node_modules/eslint-plugin-import/node_modules/semver/README.md deleted file mode 100644 index 2293a14fdc..0000000000 --- a/node_modules/eslint-plugin-import/node_modules/semver/README.md +++ /dev/null @@ -1,443 +0,0 @@ -semver(1) -- The semantic versioner for npm -=========================================== - -## Install - -```bash -npm install semver -```` - -## Usage - -As a node module: - -```js -const semver = require('semver') - -semver.valid('1.2.3') // '1.2.3' -semver.valid('a.b.c') // null -semver.clean(' =v1.2.3 ') // '1.2.3' -semver.satisfies('1.2.3', '1.x || >=2.5.0 || 5.0.0 - 7.2.3') // true -semver.gt('1.2.3', '9.8.7') // false -semver.lt('1.2.3', '9.8.7') // true -semver.minVersion('>=1.0.0') // '1.0.0' -semver.valid(semver.coerce('v2')) // '2.0.0' -semver.valid(semver.coerce('42.6.7.9.3-alpha')) // '42.6.7' -``` - -As a command-line utility: - -``` -$ semver -h - -A JavaScript implementation of the https://semver.org/ specification -Copyright Isaac Z. Schlueter - -Usage: semver [options] [ [...]] -Prints valid versions sorted by SemVer precedence - -Options: --r --range - Print versions that match the specified range. - --i --increment [] - Increment a version by the specified level. Level can - be one of: major, minor, patch, premajor, preminor, - prepatch, or prerelease. Default level is 'patch'. - Only one version may be specified. - ---preid - Identifier to be used to prefix premajor, preminor, - prepatch or prerelease version increments. - --l --loose - Interpret versions and ranges loosely - --p --include-prerelease - Always include prerelease versions in range matching - --c --coerce - Coerce a string into SemVer if possible - (does not imply --loose) - ---rtl - Coerce version strings right to left - ---ltr - Coerce version strings left to right (default) - -Program exits successfully if any valid version satisfies -all supplied ranges, and prints all satisfying versions. - -If no satisfying versions are found, then exits failure. - -Versions are printed in ascending order, so supplying -multiple versions to the utility will just sort them. -``` - -## Versions - -A "version" is described by the `v2.0.0` specification found at -. - -A leading `"="` or `"v"` character is stripped off and ignored. - -## Ranges - -A `version range` is a set of `comparators` which specify versions -that satisfy the range. - -A `comparator` is composed of an `operator` and a `version`. The set -of primitive `operators` is: - -* `<` Less than -* `<=` Less than or equal to -* `>` Greater than -* `>=` Greater than or equal to -* `=` Equal. If no operator is specified, then equality is assumed, - so this operator is optional, but MAY be included. - -For example, the comparator `>=1.2.7` would match the versions -`1.2.7`, `1.2.8`, `2.5.3`, and `1.3.9`, but not the versions `1.2.6` -or `1.1.0`. - -Comparators can be joined by whitespace to form a `comparator set`, -which is satisfied by the **intersection** of all of the comparators -it includes. - -A range is composed of one or more comparator sets, joined by `||`. A -version matches a range if and only if every comparator in at least -one of the `||`-separated comparator sets is satisfied by the version. - -For example, the range `>=1.2.7 <1.3.0` would match the versions -`1.2.7`, `1.2.8`, and `1.2.99`, but not the versions `1.2.6`, `1.3.0`, -or `1.1.0`. - -The range `1.2.7 || >=1.2.9 <2.0.0` would match the versions `1.2.7`, -`1.2.9`, and `1.4.6`, but not the versions `1.2.8` or `2.0.0`. - -### Prerelease Tags - -If a version has a prerelease tag (for example, `1.2.3-alpha.3`) then -it will only be allowed to satisfy comparator sets if at least one -comparator with the same `[major, minor, patch]` tuple also has a -prerelease tag. - -For example, the range `>1.2.3-alpha.3` would be allowed to match the -version `1.2.3-alpha.7`, but it would *not* be satisfied by -`3.4.5-alpha.9`, even though `3.4.5-alpha.9` is technically "greater -than" `1.2.3-alpha.3` according to the SemVer sort rules. The version -range only accepts prerelease tags on the `1.2.3` version. The -version `3.4.5` *would* satisfy the range, because it does not have a -prerelease flag, and `3.4.5` is greater than `1.2.3-alpha.7`. - -The purpose for this behavior is twofold. First, prerelease versions -frequently are updated very quickly, and contain many breaking changes -that are (by the author's design) not yet fit for public consumption. -Therefore, by default, they are excluded from range matching -semantics. - -Second, a user who has opted into using a prerelease version has -clearly indicated the intent to use *that specific* set of -alpha/beta/rc versions. By including a prerelease tag in the range, -the user is indicating that they are aware of the risk. However, it -is still not appropriate to assume that they have opted into taking a -similar risk on the *next* set of prerelease versions. - -Note that this behavior can be suppressed (treating all prerelease -versions as if they were normal versions, for the purpose of range -matching) by setting the `includePrerelease` flag on the options -object to any -[functions](https://github.com/npm/node-semver#functions) that do -range matching. - -#### Prerelease Identifiers - -The method `.inc` takes an additional `identifier` string argument that -will append the value of the string as a prerelease identifier: - -```javascript -semver.inc('1.2.3', 'prerelease', 'beta') -// '1.2.4-beta.0' -``` - -command-line example: - -```bash -$ semver 1.2.3 -i prerelease --preid beta -1.2.4-beta.0 -``` - -Which then can be used to increment further: - -```bash -$ semver 1.2.4-beta.0 -i prerelease -1.2.4-beta.1 -``` - -### Advanced Range Syntax - -Advanced range syntax desugars to primitive comparators in -deterministic ways. - -Advanced ranges may be combined in the same way as primitive -comparators using white space or `||`. - -#### Hyphen Ranges `X.Y.Z - A.B.C` - -Specifies an inclusive set. - -* `1.2.3 - 2.3.4` := `>=1.2.3 <=2.3.4` - -If a partial version is provided as the first version in the inclusive -range, then the missing pieces are replaced with zeroes. - -* `1.2 - 2.3.4` := `>=1.2.0 <=2.3.4` - -If a partial version is provided as the second version in the -inclusive range, then all versions that start with the supplied parts -of the tuple are accepted, but nothing that would be greater than the -provided tuple parts. - -* `1.2.3 - 2.3` := `>=1.2.3 <2.4.0` -* `1.2.3 - 2` := `>=1.2.3 <3.0.0` - -#### X-Ranges `1.2.x` `1.X` `1.2.*` `*` - -Any of `X`, `x`, or `*` may be used to "stand in" for one of the -numeric values in the `[major, minor, patch]` tuple. - -* `*` := `>=0.0.0` (Any version satisfies) -* `1.x` := `>=1.0.0 <2.0.0` (Matching major version) -* `1.2.x` := `>=1.2.0 <1.3.0` (Matching major and minor versions) - -A partial version range is treated as an X-Range, so the special -character is in fact optional. - -* `""` (empty string) := `*` := `>=0.0.0` -* `1` := `1.x.x` := `>=1.0.0 <2.0.0` -* `1.2` := `1.2.x` := `>=1.2.0 <1.3.0` - -#### Tilde Ranges `~1.2.3` `~1.2` `~1` - -Allows patch-level changes if a minor version is specified on the -comparator. Allows minor-level changes if not. - -* `~1.2.3` := `>=1.2.3 <1.(2+1).0` := `>=1.2.3 <1.3.0` -* `~1.2` := `>=1.2.0 <1.(2+1).0` := `>=1.2.0 <1.3.0` (Same as `1.2.x`) -* `~1` := `>=1.0.0 <(1+1).0.0` := `>=1.0.0 <2.0.0` (Same as `1.x`) -* `~0.2.3` := `>=0.2.3 <0.(2+1).0` := `>=0.2.3 <0.3.0` -* `~0.2` := `>=0.2.0 <0.(2+1).0` := `>=0.2.0 <0.3.0` (Same as `0.2.x`) -* `~0` := `>=0.0.0 <(0+1).0.0` := `>=0.0.0 <1.0.0` (Same as `0.x`) -* `~1.2.3-beta.2` := `>=1.2.3-beta.2 <1.3.0` Note that prereleases in - the `1.2.3` version will be allowed, if they are greater than or - equal to `beta.2`. So, `1.2.3-beta.4` would be allowed, but - `1.2.4-beta.2` would not, because it is a prerelease of a - different `[major, minor, patch]` tuple. - -#### Caret Ranges `^1.2.3` `^0.2.5` `^0.0.4` - -Allows changes that do not modify the left-most non-zero element in the -`[major, minor, patch]` tuple. In other words, this allows patch and -minor updates for versions `1.0.0` and above, patch updates for -versions `0.X >=0.1.0`, and *no* updates for versions `0.0.X`. - -Many authors treat a `0.x` version as if the `x` were the major -"breaking-change" indicator. - -Caret ranges are ideal when an author may make breaking changes -between `0.2.4` and `0.3.0` releases, which is a common practice. -However, it presumes that there will *not* be breaking changes between -`0.2.4` and `0.2.5`. It allows for changes that are presumed to be -additive (but non-breaking), according to commonly observed practices. - -* `^1.2.3` := `>=1.2.3 <2.0.0` -* `^0.2.3` := `>=0.2.3 <0.3.0` -* `^0.0.3` := `>=0.0.3 <0.0.4` -* `^1.2.3-beta.2` := `>=1.2.3-beta.2 <2.0.0` Note that prereleases in - the `1.2.3` version will be allowed, if they are greater than or - equal to `beta.2`. So, `1.2.3-beta.4` would be allowed, but - `1.2.4-beta.2` would not, because it is a prerelease of a - different `[major, minor, patch]` tuple. -* `^0.0.3-beta` := `>=0.0.3-beta <0.0.4` Note that prereleases in the - `0.0.3` version *only* will be allowed, if they are greater than or - equal to `beta`. So, `0.0.3-pr.2` would be allowed. - -When parsing caret ranges, a missing `patch` value desugars to the -number `0`, but will allow flexibility within that value, even if the -major and minor versions are both `0`. - -* `^1.2.x` := `>=1.2.0 <2.0.0` -* `^0.0.x` := `>=0.0.0 <0.1.0` -* `^0.0` := `>=0.0.0 <0.1.0` - -A missing `minor` and `patch` values will desugar to zero, but also -allow flexibility within those values, even if the major version is -zero. - -* `^1.x` := `>=1.0.0 <2.0.0` -* `^0.x` := `>=0.0.0 <1.0.0` - -### Range Grammar - -Putting all this together, here is a Backus-Naur grammar for ranges, -for the benefit of parser authors: - -```bnf -range-set ::= range ( logical-or range ) * -logical-or ::= ( ' ' ) * '||' ( ' ' ) * -range ::= hyphen | simple ( ' ' simple ) * | '' -hyphen ::= partial ' - ' partial -simple ::= primitive | partial | tilde | caret -primitive ::= ( '<' | '>' | '>=' | '<=' | '=' ) partial -partial ::= xr ( '.' xr ( '.' xr qualifier ? )? )? -xr ::= 'x' | 'X' | '*' | nr -nr ::= '0' | ['1'-'9'] ( ['0'-'9'] ) * -tilde ::= '~' partial -caret ::= '^' partial -qualifier ::= ( '-' pre )? ( '+' build )? -pre ::= parts -build ::= parts -parts ::= part ( '.' part ) * -part ::= nr | [-0-9A-Za-z]+ -``` - -## Functions - -All methods and classes take a final `options` object argument. All -options in this object are `false` by default. The options supported -are: - -- `loose` Be more forgiving about not-quite-valid semver strings. - (Any resulting output will always be 100% strict compliant, of - course.) For backwards compatibility reasons, if the `options` - argument is a boolean value instead of an object, it is interpreted - to be the `loose` param. -- `includePrerelease` Set to suppress the [default - behavior](https://github.com/npm/node-semver#prerelease-tags) of - excluding prerelease tagged versions from ranges unless they are - explicitly opted into. - -Strict-mode Comparators and Ranges will be strict about the SemVer -strings that they parse. - -* `valid(v)`: Return the parsed version, or null if it's not valid. -* `inc(v, release)`: Return the version incremented by the release - type (`major`, `premajor`, `minor`, `preminor`, `patch`, - `prepatch`, or `prerelease`), or null if it's not valid - * `premajor` in one call will bump the version up to the next major - version and down to a prerelease of that major version. - `preminor`, and `prepatch` work the same way. - * If called from a non-prerelease version, the `prerelease` will work the - same as `prepatch`. It increments the patch version, then makes a - prerelease. If the input version is already a prerelease it simply - increments it. -* `prerelease(v)`: Returns an array of prerelease components, or null - if none exist. Example: `prerelease('1.2.3-alpha.1') -> ['alpha', 1]` -* `major(v)`: Return the major version number. -* `minor(v)`: Return the minor version number. -* `patch(v)`: Return the patch version number. -* `intersects(r1, r2, loose)`: Return true if the two supplied ranges - or comparators intersect. -* `parse(v)`: Attempt to parse a string as a semantic version, returning either - a `SemVer` object or `null`. - -### Comparison - -* `gt(v1, v2)`: `v1 > v2` -* `gte(v1, v2)`: `v1 >= v2` -* `lt(v1, v2)`: `v1 < v2` -* `lte(v1, v2)`: `v1 <= v2` -* `eq(v1, v2)`: `v1 == v2` This is true if they're logically equivalent, - even if they're not the exact same string. You already know how to - compare strings. -* `neq(v1, v2)`: `v1 != v2` The opposite of `eq`. -* `cmp(v1, comparator, v2)`: Pass in a comparison string, and it'll call - the corresponding function above. `"==="` and `"!=="` do simple - string comparison, but are included for completeness. Throws if an - invalid comparison string is provided. -* `compare(v1, v2)`: Return `0` if `v1 == v2`, or `1` if `v1` is greater, or `-1` if - `v2` is greater. Sorts in ascending order if passed to `Array.sort()`. -* `rcompare(v1, v2)`: The reverse of compare. Sorts an array of versions - in descending order when passed to `Array.sort()`. -* `compareBuild(v1, v2)`: The same as `compare` but considers `build` when two versions - are equal. Sorts in ascending order if passed to `Array.sort()`. - `v2` is greater. Sorts in ascending order if passed to `Array.sort()`. -* `diff(v1, v2)`: Returns difference between two versions by the release type - (`major`, `premajor`, `minor`, `preminor`, `patch`, `prepatch`, or `prerelease`), - or null if the versions are the same. - -### Comparators - -* `intersects(comparator)`: Return true if the comparators intersect - -### Ranges - -* `validRange(range)`: Return the valid range or null if it's not valid -* `satisfies(version, range)`: Return true if the version satisfies the - range. -* `maxSatisfying(versions, range)`: Return the highest version in the list - that satisfies the range, or `null` if none of them do. -* `minSatisfying(versions, range)`: Return the lowest version in the list - that satisfies the range, or `null` if none of them do. -* `minVersion(range)`: Return the lowest version that can possibly match - the given range. -* `gtr(version, range)`: Return `true` if version is greater than all the - versions possible in the range. -* `ltr(version, range)`: Return `true` if version is less than all the - versions possible in the range. -* `outside(version, range, hilo)`: Return true if the version is outside - the bounds of the range in either the high or low direction. The - `hilo` argument must be either the string `'>'` or `'<'`. (This is - the function called by `gtr` and `ltr`.) -* `intersects(range)`: Return true if any of the ranges comparators intersect - -Note that, since ranges may be non-contiguous, a version might not be -greater than a range, less than a range, *or* satisfy a range! For -example, the range `1.2 <1.2.9 || >2.0.0` would have a hole from `1.2.9` -until `2.0.0`, so the version `1.2.10` would not be greater than the -range (because `2.0.1` satisfies, which is higher), nor less than the -range (since `1.2.8` satisfies, which is lower), and it also does not -satisfy the range. - -If you want to know if a version satisfies or does not satisfy a -range, use the `satisfies(version, range)` function. - -### Coercion - -* `coerce(version, options)`: Coerces a string to semver if possible - -This aims to provide a very forgiving translation of a non-semver string to -semver. It looks for the first digit in a string, and consumes all -remaining characters which satisfy at least a partial semver (e.g., `1`, -`1.2`, `1.2.3`) up to the max permitted length (256 characters). Longer -versions are simply truncated (`4.6.3.9.2-alpha2` becomes `4.6.3`). All -surrounding text is simply ignored (`v3.4 replaces v3.3.1` becomes -`3.4.0`). Only text which lacks digits will fail coercion (`version one` -is not valid). The maximum length for any semver component considered for -coercion is 16 characters; longer components will be ignored -(`10000000000000000.4.7.4` becomes `4.7.4`). The maximum value for any -semver component is `Integer.MAX_SAFE_INTEGER || (2**53 - 1)`; higher value -components are invalid (`9999999999999999.4.7.4` is likely invalid). - -If the `options.rtl` flag is set, then `coerce` will return the right-most -coercible tuple that does not share an ending index with a longer coercible -tuple. For example, `1.2.3.4` will return `2.3.4` in rtl mode, not -`4.0.0`. `1.2.3/4` will return `4.0.0`, because the `4` is not a part of -any other overlapping SemVer tuple. - -### Clean - -* `clean(version)`: Clean a string to be a valid semver if possible - -This will return a cleaned and trimmed semver version. If the provided version is not valid a null will be returned. This does not work for ranges. - -ex. -* `s.clean(' = v 2.1.5foo')`: `null` -* `s.clean(' = v 2.1.5foo', { loose: true })`: `'2.1.5-foo'` -* `s.clean(' = v 2.1.5-foo')`: `null` -* `s.clean(' = v 2.1.5-foo', { loose: true })`: `'2.1.5-foo'` -* `s.clean('=v2.1.5')`: `'2.1.5'` -* `s.clean(' =v2.1.5')`: `2.1.5` -* `s.clean(' 2.1.5 ')`: `'2.1.5'` -* `s.clean('~1.0.0')`: `null` diff --git a/node_modules/eslint-plugin-import/node_modules/semver/bin/semver.js b/node_modules/eslint-plugin-import/node_modules/semver/bin/semver.js deleted file mode 100755 index 666034a75d..0000000000 --- a/node_modules/eslint-plugin-import/node_modules/semver/bin/semver.js +++ /dev/null @@ -1,174 +0,0 @@ -#!/usr/bin/env node -// Standalone semver comparison program. -// Exits successfully and prints matching version(s) if -// any supplied version is valid and passes all tests. - -var argv = process.argv.slice(2) - -var versions = [] - -var range = [] - -var inc = null - -var version = require('../package.json').version - -var loose = false - -var includePrerelease = false - -var coerce = false - -var rtl = false - -var identifier - -var semver = require('../semver') - -var reverse = false - -var options = {} - -main() - -function main () { - if (!argv.length) return help() - while (argv.length) { - var a = argv.shift() - var indexOfEqualSign = a.indexOf('=') - if (indexOfEqualSign !== -1) { - a = a.slice(0, indexOfEqualSign) - argv.unshift(a.slice(indexOfEqualSign + 1)) - } - switch (a) { - case '-rv': case '-rev': case '--rev': case '--reverse': - reverse = true - break - case '-l': case '--loose': - loose = true - break - case '-p': case '--include-prerelease': - includePrerelease = true - break - case '-v': case '--version': - versions.push(argv.shift()) - break - case '-i': case '--inc': case '--increment': - switch (argv[0]) { - case 'major': case 'minor': case 'patch': case 'prerelease': - case 'premajor': case 'preminor': case 'prepatch': - inc = argv.shift() - break - default: - inc = 'patch' - break - } - break - case '--preid': - identifier = argv.shift() - break - case '-r': case '--range': - range.push(argv.shift()) - break - case '-c': case '--coerce': - coerce = true - break - case '--rtl': - rtl = true - break - case '--ltr': - rtl = false - break - case '-h': case '--help': case '-?': - return help() - default: - versions.push(a) - break - } - } - - var options = { loose: loose, includePrerelease: includePrerelease, rtl: rtl } - - versions = versions.map(function (v) { - return coerce ? (semver.coerce(v, options) || { version: v }).version : v - }).filter(function (v) { - return semver.valid(v) - }) - if (!versions.length) return fail() - if (inc && (versions.length !== 1 || range.length)) { return failInc() } - - for (var i = 0, l = range.length; i < l; i++) { - versions = versions.filter(function (v) { - return semver.satisfies(v, range[i], options) - }) - if (!versions.length) return fail() - } - return success(versions) -} - -function failInc () { - console.error('--inc can only be used on a single version with no range') - fail() -} - -function fail () { process.exit(1) } - -function success () { - var compare = reverse ? 'rcompare' : 'compare' - versions.sort(function (a, b) { - return semver[compare](a, b, options) - }).map(function (v) { - return semver.clean(v, options) - }).map(function (v) { - return inc ? semver.inc(v, inc, options, identifier) : v - }).forEach(function (v, i, _) { console.log(v) }) -} - -function help () { - console.log(['SemVer ' + version, - '', - 'A JavaScript implementation of the https://semver.org/ specification', - 'Copyright Isaac Z. Schlueter', - '', - 'Usage: semver [options] [ [...]]', - 'Prints valid versions sorted by SemVer precedence', - '', - 'Options:', - '-r --range ', - ' Print versions that match the specified range.', - '', - '-i --increment []', - ' Increment a version by the specified level. Level can', - ' be one of: major, minor, patch, premajor, preminor,', - " prepatch, or prerelease. Default level is 'patch'.", - ' Only one version may be specified.', - '', - '--preid ', - ' Identifier to be used to prefix premajor, preminor,', - ' prepatch or prerelease version increments.', - '', - '-l --loose', - ' Interpret versions and ranges loosely', - '', - '-p --include-prerelease', - ' Always include prerelease versions in range matching', - '', - '-c --coerce', - ' Coerce a string into SemVer if possible', - ' (does not imply --loose)', - '', - '--rtl', - ' Coerce version strings right to left', - '', - '--ltr', - ' Coerce version strings left to right (default)', - '', - 'Program exits successfully if any valid version satisfies', - 'all supplied ranges, and prints all satisfying versions.', - '', - 'If no satisfying versions are found, then exits failure.', - '', - 'Versions are printed in ascending order, so supplying', - 'multiple versions to the utility will just sort them.' - ].join('\n')) -} diff --git a/node_modules/eslint-plugin-import/node_modules/semver/package.json b/node_modules/eslint-plugin-import/node_modules/semver/package.json deleted file mode 100644 index 6b970a629f..0000000000 --- a/node_modules/eslint-plugin-import/node_modules/semver/package.json +++ /dev/null @@ -1,38 +0,0 @@ -{ - "name": "semver", - "version": "6.3.1", - "description": "The semantic version parser used by npm.", - "main": "semver.js", - "scripts": { - "test": "tap test/ --100 --timeout=30", - "lint": "echo linting disabled", - "postlint": "template-oss-check", - "template-oss-apply": "template-oss-apply --force", - "lintfix": "npm run lint -- --fix", - "snap": "tap test/ --100 --timeout=30", - "posttest": "npm run lint" - }, - "devDependencies": { - "@npmcli/template-oss": "4.17.0", - "tap": "^12.7.0" - }, - "license": "ISC", - "repository": { - "type": "git", - "url": "https://github.com/npm/node-semver.git" - }, - "bin": { - "semver": "./bin/semver.js" - }, - "files": [ - "bin", - "range.bnf", - "semver.js" - ], - "author": "GitHub Inc.", - "templateOSS": { - "//@npmcli/template-oss": "This file is partially managed by @npmcli/template-oss. Edits may be overwritten.", - "content": "./scripts/template-oss", - "version": "4.17.0" - } -} diff --git a/node_modules/eslint-plugin-import/node_modules/semver/range.bnf b/node_modules/eslint-plugin-import/node_modules/semver/range.bnf deleted file mode 100644 index d4c6ae0d76..0000000000 --- a/node_modules/eslint-plugin-import/node_modules/semver/range.bnf +++ /dev/null @@ -1,16 +0,0 @@ -range-set ::= range ( logical-or range ) * -logical-or ::= ( ' ' ) * '||' ( ' ' ) * -range ::= hyphen | simple ( ' ' simple ) * | '' -hyphen ::= partial ' - ' partial -simple ::= primitive | partial | tilde | caret -primitive ::= ( '<' | '>' | '>=' | '<=' | '=' ) partial -partial ::= xr ( '.' xr ( '.' xr qualifier ? )? )? -xr ::= 'x' | 'X' | '*' | nr -nr ::= '0' | [1-9] ( [0-9] ) * -tilde ::= '~' partial -caret ::= '^' partial -qualifier ::= ( '-' pre )? ( '+' build )? -pre ::= parts -build ::= parts -parts ::= part ( '.' part ) * -part ::= nr | [-0-9A-Za-z]+ diff --git a/node_modules/eslint-plugin-import/node_modules/semver/semver.js b/node_modules/eslint-plugin-import/node_modules/semver/semver.js deleted file mode 100644 index 39319c13ca..0000000000 --- a/node_modules/eslint-plugin-import/node_modules/semver/semver.js +++ /dev/null @@ -1,1643 +0,0 @@ -exports = module.exports = SemVer - -var debug -/* istanbul ignore next */ -if (typeof process === 'object' && - process.env && - process.env.NODE_DEBUG && - /\bsemver\b/i.test(process.env.NODE_DEBUG)) { - debug = function () { - var args = Array.prototype.slice.call(arguments, 0) - args.unshift('SEMVER') - console.log.apply(console, args) - } -} else { - debug = function () {} -} - -// Note: this is the semver.org version of the spec that it implements -// Not necessarily the package version of this code. -exports.SEMVER_SPEC_VERSION = '2.0.0' - -var MAX_LENGTH = 256 -var MAX_SAFE_INTEGER = Number.MAX_SAFE_INTEGER || - /* istanbul ignore next */ 9007199254740991 - -// Max safe segment length for coercion. -var MAX_SAFE_COMPONENT_LENGTH = 16 - -var MAX_SAFE_BUILD_LENGTH = MAX_LENGTH - 6 - -// The actual regexps go on exports.re -var re = exports.re = [] -var safeRe = exports.safeRe = [] -var src = exports.src = [] -var t = exports.tokens = {} -var R = 0 - -function tok (n) { - t[n] = R++ -} - -var LETTERDASHNUMBER = '[a-zA-Z0-9-]' - -// Replace some greedy regex tokens to prevent regex dos issues. These regex are -// used internally via the safeRe object since all inputs in this library get -// normalized first to trim and collapse all extra whitespace. The original -// regexes are exported for userland consumption and lower level usage. A -// future breaking change could export the safer regex only with a note that -// all input should have extra whitespace removed. -var safeRegexReplacements = [ - ['\\s', 1], - ['\\d', MAX_LENGTH], - [LETTERDASHNUMBER, MAX_SAFE_BUILD_LENGTH], -] - -function makeSafeRe (value) { - for (var i = 0; i < safeRegexReplacements.length; i++) { - var token = safeRegexReplacements[i][0] - var max = safeRegexReplacements[i][1] - value = value - .split(token + '*').join(token + '{0,' + max + '}') - .split(token + '+').join(token + '{1,' + max + '}') - } - return value -} - -// The following Regular Expressions can be used for tokenizing, -// validating, and parsing SemVer version strings. - -// ## Numeric Identifier -// A single `0`, or a non-zero digit followed by zero or more digits. - -tok('NUMERICIDENTIFIER') -src[t.NUMERICIDENTIFIER] = '0|[1-9]\\d*' -tok('NUMERICIDENTIFIERLOOSE') -src[t.NUMERICIDENTIFIERLOOSE] = '\\d+' - -// ## Non-numeric Identifier -// Zero or more digits, followed by a letter or hyphen, and then zero or -// more letters, digits, or hyphens. - -tok('NONNUMERICIDENTIFIER') -src[t.NONNUMERICIDENTIFIER] = '\\d*[a-zA-Z-]' + LETTERDASHNUMBER + '*' - -// ## Main Version -// Three dot-separated numeric identifiers. - -tok('MAINVERSION') -src[t.MAINVERSION] = '(' + src[t.NUMERICIDENTIFIER] + ')\\.' + - '(' + src[t.NUMERICIDENTIFIER] + ')\\.' + - '(' + src[t.NUMERICIDENTIFIER] + ')' - -tok('MAINVERSIONLOOSE') -src[t.MAINVERSIONLOOSE] = '(' + src[t.NUMERICIDENTIFIERLOOSE] + ')\\.' + - '(' + src[t.NUMERICIDENTIFIERLOOSE] + ')\\.' + - '(' + src[t.NUMERICIDENTIFIERLOOSE] + ')' - -// ## Pre-release Version Identifier -// A numeric identifier, or a non-numeric identifier. - -tok('PRERELEASEIDENTIFIER') -src[t.PRERELEASEIDENTIFIER] = '(?:' + src[t.NUMERICIDENTIFIER] + - '|' + src[t.NONNUMERICIDENTIFIER] + ')' - -tok('PRERELEASEIDENTIFIERLOOSE') -src[t.PRERELEASEIDENTIFIERLOOSE] = '(?:' + src[t.NUMERICIDENTIFIERLOOSE] + - '|' + src[t.NONNUMERICIDENTIFIER] + ')' - -// ## Pre-release Version -// Hyphen, followed by one or more dot-separated pre-release version -// identifiers. - -tok('PRERELEASE') -src[t.PRERELEASE] = '(?:-(' + src[t.PRERELEASEIDENTIFIER] + - '(?:\\.' + src[t.PRERELEASEIDENTIFIER] + ')*))' - -tok('PRERELEASELOOSE') -src[t.PRERELEASELOOSE] = '(?:-?(' + src[t.PRERELEASEIDENTIFIERLOOSE] + - '(?:\\.' + src[t.PRERELEASEIDENTIFIERLOOSE] + ')*))' - -// ## Build Metadata Identifier -// Any combination of digits, letters, or hyphens. - -tok('BUILDIDENTIFIER') -src[t.BUILDIDENTIFIER] = LETTERDASHNUMBER + '+' - -// ## Build Metadata -// Plus sign, followed by one or more period-separated build metadata -// identifiers. - -tok('BUILD') -src[t.BUILD] = '(?:\\+(' + src[t.BUILDIDENTIFIER] + - '(?:\\.' + src[t.BUILDIDENTIFIER] + ')*))' - -// ## Full Version String -// A main version, followed optionally by a pre-release version and -// build metadata. - -// Note that the only major, minor, patch, and pre-release sections of -// the version string are capturing groups. The build metadata is not a -// capturing group, because it should not ever be used in version -// comparison. - -tok('FULL') -tok('FULLPLAIN') -src[t.FULLPLAIN] = 'v?' + src[t.MAINVERSION] + - src[t.PRERELEASE] + '?' + - src[t.BUILD] + '?' - -src[t.FULL] = '^' + src[t.FULLPLAIN] + '$' - -// like full, but allows v1.2.3 and =1.2.3, which people do sometimes. -// also, 1.0.0alpha1 (prerelease without the hyphen) which is pretty -// common in the npm registry. -tok('LOOSEPLAIN') -src[t.LOOSEPLAIN] = '[v=\\s]*' + src[t.MAINVERSIONLOOSE] + - src[t.PRERELEASELOOSE] + '?' + - src[t.BUILD] + '?' - -tok('LOOSE') -src[t.LOOSE] = '^' + src[t.LOOSEPLAIN] + '$' - -tok('GTLT') -src[t.GTLT] = '((?:<|>)?=?)' - -// Something like "2.*" or "1.2.x". -// Note that "x.x" is a valid xRange identifer, meaning "any version" -// Only the first item is strictly required. -tok('XRANGEIDENTIFIERLOOSE') -src[t.XRANGEIDENTIFIERLOOSE] = src[t.NUMERICIDENTIFIERLOOSE] + '|x|X|\\*' -tok('XRANGEIDENTIFIER') -src[t.XRANGEIDENTIFIER] = src[t.NUMERICIDENTIFIER] + '|x|X|\\*' - -tok('XRANGEPLAIN') -src[t.XRANGEPLAIN] = '[v=\\s]*(' + src[t.XRANGEIDENTIFIER] + ')' + - '(?:\\.(' + src[t.XRANGEIDENTIFIER] + ')' + - '(?:\\.(' + src[t.XRANGEIDENTIFIER] + ')' + - '(?:' + src[t.PRERELEASE] + ')?' + - src[t.BUILD] + '?' + - ')?)?' - -tok('XRANGEPLAINLOOSE') -src[t.XRANGEPLAINLOOSE] = '[v=\\s]*(' + src[t.XRANGEIDENTIFIERLOOSE] + ')' + - '(?:\\.(' + src[t.XRANGEIDENTIFIERLOOSE] + ')' + - '(?:\\.(' + src[t.XRANGEIDENTIFIERLOOSE] + ')' + - '(?:' + src[t.PRERELEASELOOSE] + ')?' + - src[t.BUILD] + '?' + - ')?)?' - -tok('XRANGE') -src[t.XRANGE] = '^' + src[t.GTLT] + '\\s*' + src[t.XRANGEPLAIN] + '$' -tok('XRANGELOOSE') -src[t.XRANGELOOSE] = '^' + src[t.GTLT] + '\\s*' + src[t.XRANGEPLAINLOOSE] + '$' - -// Coercion. -// Extract anything that could conceivably be a part of a valid semver -tok('COERCE') -src[t.COERCE] = '(^|[^\\d])' + - '(\\d{1,' + MAX_SAFE_COMPONENT_LENGTH + '})' + - '(?:\\.(\\d{1,' + MAX_SAFE_COMPONENT_LENGTH + '}))?' + - '(?:\\.(\\d{1,' + MAX_SAFE_COMPONENT_LENGTH + '}))?' + - '(?:$|[^\\d])' -tok('COERCERTL') -re[t.COERCERTL] = new RegExp(src[t.COERCE], 'g') -safeRe[t.COERCERTL] = new RegExp(makeSafeRe(src[t.COERCE]), 'g') - -// Tilde ranges. -// Meaning is "reasonably at or greater than" -tok('LONETILDE') -src[t.LONETILDE] = '(?:~>?)' - -tok('TILDETRIM') -src[t.TILDETRIM] = '(\\s*)' + src[t.LONETILDE] + '\\s+' -re[t.TILDETRIM] = new RegExp(src[t.TILDETRIM], 'g') -safeRe[t.TILDETRIM] = new RegExp(makeSafeRe(src[t.TILDETRIM]), 'g') -var tildeTrimReplace = '$1~' - -tok('TILDE') -src[t.TILDE] = '^' + src[t.LONETILDE] + src[t.XRANGEPLAIN] + '$' -tok('TILDELOOSE') -src[t.TILDELOOSE] = '^' + src[t.LONETILDE] + src[t.XRANGEPLAINLOOSE] + '$' - -// Caret ranges. -// Meaning is "at least and backwards compatible with" -tok('LONECARET') -src[t.LONECARET] = '(?:\\^)' - -tok('CARETTRIM') -src[t.CARETTRIM] = '(\\s*)' + src[t.LONECARET] + '\\s+' -re[t.CARETTRIM] = new RegExp(src[t.CARETTRIM], 'g') -safeRe[t.CARETTRIM] = new RegExp(makeSafeRe(src[t.CARETTRIM]), 'g') -var caretTrimReplace = '$1^' - -tok('CARET') -src[t.CARET] = '^' + src[t.LONECARET] + src[t.XRANGEPLAIN] + '$' -tok('CARETLOOSE') -src[t.CARETLOOSE] = '^' + src[t.LONECARET] + src[t.XRANGEPLAINLOOSE] + '$' - -// A simple gt/lt/eq thing, or just "" to indicate "any version" -tok('COMPARATORLOOSE') -src[t.COMPARATORLOOSE] = '^' + src[t.GTLT] + '\\s*(' + src[t.LOOSEPLAIN] + ')$|^$' -tok('COMPARATOR') -src[t.COMPARATOR] = '^' + src[t.GTLT] + '\\s*(' + src[t.FULLPLAIN] + ')$|^$' - -// An expression to strip any whitespace between the gtlt and the thing -// it modifies, so that `> 1.2.3` ==> `>1.2.3` -tok('COMPARATORTRIM') -src[t.COMPARATORTRIM] = '(\\s*)' + src[t.GTLT] + - '\\s*(' + src[t.LOOSEPLAIN] + '|' + src[t.XRANGEPLAIN] + ')' - -// this one has to use the /g flag -re[t.COMPARATORTRIM] = new RegExp(src[t.COMPARATORTRIM], 'g') -safeRe[t.COMPARATORTRIM] = new RegExp(makeSafeRe(src[t.COMPARATORTRIM]), 'g') -var comparatorTrimReplace = '$1$2$3' - -// Something like `1.2.3 - 1.2.4` -// Note that these all use the loose form, because they'll be -// checked against either the strict or loose comparator form -// later. -tok('HYPHENRANGE') -src[t.HYPHENRANGE] = '^\\s*(' + src[t.XRANGEPLAIN] + ')' + - '\\s+-\\s+' + - '(' + src[t.XRANGEPLAIN] + ')' + - '\\s*$' - -tok('HYPHENRANGELOOSE') -src[t.HYPHENRANGELOOSE] = '^\\s*(' + src[t.XRANGEPLAINLOOSE] + ')' + - '\\s+-\\s+' + - '(' + src[t.XRANGEPLAINLOOSE] + ')' + - '\\s*$' - -// Star ranges basically just allow anything at all. -tok('STAR') -src[t.STAR] = '(<|>)?=?\\s*\\*' - -// Compile to actual regexp objects. -// All are flag-free, unless they were created above with a flag. -for (var i = 0; i < R; i++) { - debug(i, src[i]) - if (!re[i]) { - re[i] = new RegExp(src[i]) - - // Replace all greedy whitespace to prevent regex dos issues. These regex are - // used internally via the safeRe object since all inputs in this library get - // normalized first to trim and collapse all extra whitespace. The original - // regexes are exported for userland consumption and lower level usage. A - // future breaking change could export the safer regex only with a note that - // all input should have extra whitespace removed. - safeRe[i] = new RegExp(makeSafeRe(src[i])) - } -} - -exports.parse = parse -function parse (version, options) { - if (!options || typeof options !== 'object') { - options = { - loose: !!options, - includePrerelease: false - } - } - - if (version instanceof SemVer) { - return version - } - - if (typeof version !== 'string') { - return null - } - - if (version.length > MAX_LENGTH) { - return null - } - - var r = options.loose ? safeRe[t.LOOSE] : safeRe[t.FULL] - if (!r.test(version)) { - return null - } - - try { - return new SemVer(version, options) - } catch (er) { - return null - } -} - -exports.valid = valid -function valid (version, options) { - var v = parse(version, options) - return v ? v.version : null -} - -exports.clean = clean -function clean (version, options) { - var s = parse(version.trim().replace(/^[=v]+/, ''), options) - return s ? s.version : null -} - -exports.SemVer = SemVer - -function SemVer (version, options) { - if (!options || typeof options !== 'object') { - options = { - loose: !!options, - includePrerelease: false - } - } - if (version instanceof SemVer) { - if (version.loose === options.loose) { - return version - } else { - version = version.version - } - } else if (typeof version !== 'string') { - throw new TypeError('Invalid Version: ' + version) - } - - if (version.length > MAX_LENGTH) { - throw new TypeError('version is longer than ' + MAX_LENGTH + ' characters') - } - - if (!(this instanceof SemVer)) { - return new SemVer(version, options) - } - - debug('SemVer', version, options) - this.options = options - this.loose = !!options.loose - - var m = version.trim().match(options.loose ? safeRe[t.LOOSE] : safeRe[t.FULL]) - - if (!m) { - throw new TypeError('Invalid Version: ' + version) - } - - this.raw = version - - // these are actually numbers - this.major = +m[1] - this.minor = +m[2] - this.patch = +m[3] - - if (this.major > MAX_SAFE_INTEGER || this.major < 0) { - throw new TypeError('Invalid major version') - } - - if (this.minor > MAX_SAFE_INTEGER || this.minor < 0) { - throw new TypeError('Invalid minor version') - } - - if (this.patch > MAX_SAFE_INTEGER || this.patch < 0) { - throw new TypeError('Invalid patch version') - } - - // numberify any prerelease numeric ids - if (!m[4]) { - this.prerelease = [] - } else { - this.prerelease = m[4].split('.').map(function (id) { - if (/^[0-9]+$/.test(id)) { - var num = +id - if (num >= 0 && num < MAX_SAFE_INTEGER) { - return num - } - } - return id - }) - } - - this.build = m[5] ? m[5].split('.') : [] - this.format() -} - -SemVer.prototype.format = function () { - this.version = this.major + '.' + this.minor + '.' + this.patch - if (this.prerelease.length) { - this.version += '-' + this.prerelease.join('.') - } - return this.version -} - -SemVer.prototype.toString = function () { - return this.version -} - -SemVer.prototype.compare = function (other) { - debug('SemVer.compare', this.version, this.options, other) - if (!(other instanceof SemVer)) { - other = new SemVer(other, this.options) - } - - return this.compareMain(other) || this.comparePre(other) -} - -SemVer.prototype.compareMain = function (other) { - if (!(other instanceof SemVer)) { - other = new SemVer(other, this.options) - } - - return compareIdentifiers(this.major, other.major) || - compareIdentifiers(this.minor, other.minor) || - compareIdentifiers(this.patch, other.patch) -} - -SemVer.prototype.comparePre = function (other) { - if (!(other instanceof SemVer)) { - other = new SemVer(other, this.options) - } - - // NOT having a prerelease is > having one - if (this.prerelease.length && !other.prerelease.length) { - return -1 - } else if (!this.prerelease.length && other.prerelease.length) { - return 1 - } else if (!this.prerelease.length && !other.prerelease.length) { - return 0 - } - - var i = 0 - do { - var a = this.prerelease[i] - var b = other.prerelease[i] - debug('prerelease compare', i, a, b) - if (a === undefined && b === undefined) { - return 0 - } else if (b === undefined) { - return 1 - } else if (a === undefined) { - return -1 - } else if (a === b) { - continue - } else { - return compareIdentifiers(a, b) - } - } while (++i) -} - -SemVer.prototype.compareBuild = function (other) { - if (!(other instanceof SemVer)) { - other = new SemVer(other, this.options) - } - - var i = 0 - do { - var a = this.build[i] - var b = other.build[i] - debug('prerelease compare', i, a, b) - if (a === undefined && b === undefined) { - return 0 - } else if (b === undefined) { - return 1 - } else if (a === undefined) { - return -1 - } else if (a === b) { - continue - } else { - return compareIdentifiers(a, b) - } - } while (++i) -} - -// preminor will bump the version up to the next minor release, and immediately -// down to pre-release. premajor and prepatch work the same way. -SemVer.prototype.inc = function (release, identifier) { - switch (release) { - case 'premajor': - this.prerelease.length = 0 - this.patch = 0 - this.minor = 0 - this.major++ - this.inc('pre', identifier) - break - case 'preminor': - this.prerelease.length = 0 - this.patch = 0 - this.minor++ - this.inc('pre', identifier) - break - case 'prepatch': - // If this is already a prerelease, it will bump to the next version - // drop any prereleases that might already exist, since they are not - // relevant at this point. - this.prerelease.length = 0 - this.inc('patch', identifier) - this.inc('pre', identifier) - break - // If the input is a non-prerelease version, this acts the same as - // prepatch. - case 'prerelease': - if (this.prerelease.length === 0) { - this.inc('patch', identifier) - } - this.inc('pre', identifier) - break - - case 'major': - // If this is a pre-major version, bump up to the same major version. - // Otherwise increment major. - // 1.0.0-5 bumps to 1.0.0 - // 1.1.0 bumps to 2.0.0 - if (this.minor !== 0 || - this.patch !== 0 || - this.prerelease.length === 0) { - this.major++ - } - this.minor = 0 - this.patch = 0 - this.prerelease = [] - break - case 'minor': - // If this is a pre-minor version, bump up to the same minor version. - // Otherwise increment minor. - // 1.2.0-5 bumps to 1.2.0 - // 1.2.1 bumps to 1.3.0 - if (this.patch !== 0 || this.prerelease.length === 0) { - this.minor++ - } - this.patch = 0 - this.prerelease = [] - break - case 'patch': - // If this is not a pre-release version, it will increment the patch. - // If it is a pre-release it will bump up to the same patch version. - // 1.2.0-5 patches to 1.2.0 - // 1.2.0 patches to 1.2.1 - if (this.prerelease.length === 0) { - this.patch++ - } - this.prerelease = [] - break - // This probably shouldn't be used publicly. - // 1.0.0 "pre" would become 1.0.0-0 which is the wrong direction. - case 'pre': - if (this.prerelease.length === 0) { - this.prerelease = [0] - } else { - var i = this.prerelease.length - while (--i >= 0) { - if (typeof this.prerelease[i] === 'number') { - this.prerelease[i]++ - i = -2 - } - } - if (i === -1) { - // didn't increment anything - this.prerelease.push(0) - } - } - if (identifier) { - // 1.2.0-beta.1 bumps to 1.2.0-beta.2, - // 1.2.0-beta.fooblz or 1.2.0-beta bumps to 1.2.0-beta.0 - if (this.prerelease[0] === identifier) { - if (isNaN(this.prerelease[1])) { - this.prerelease = [identifier, 0] - } - } else { - this.prerelease = [identifier, 0] - } - } - break - - default: - throw new Error('invalid increment argument: ' + release) - } - this.format() - this.raw = this.version - return this -} - -exports.inc = inc -function inc (version, release, loose, identifier) { - if (typeof (loose) === 'string') { - identifier = loose - loose = undefined - } - - try { - return new SemVer(version, loose).inc(release, identifier).version - } catch (er) { - return null - } -} - -exports.diff = diff -function diff (version1, version2) { - if (eq(version1, version2)) { - return null - } else { - var v1 = parse(version1) - var v2 = parse(version2) - var prefix = '' - if (v1.prerelease.length || v2.prerelease.length) { - prefix = 'pre' - var defaultResult = 'prerelease' - } - for (var key in v1) { - if (key === 'major' || key === 'minor' || key === 'patch') { - if (v1[key] !== v2[key]) { - return prefix + key - } - } - } - return defaultResult // may be undefined - } -} - -exports.compareIdentifiers = compareIdentifiers - -var numeric = /^[0-9]+$/ -function compareIdentifiers (a, b) { - var anum = numeric.test(a) - var bnum = numeric.test(b) - - if (anum && bnum) { - a = +a - b = +b - } - - return a === b ? 0 - : (anum && !bnum) ? -1 - : (bnum && !anum) ? 1 - : a < b ? -1 - : 1 -} - -exports.rcompareIdentifiers = rcompareIdentifiers -function rcompareIdentifiers (a, b) { - return compareIdentifiers(b, a) -} - -exports.major = major -function major (a, loose) { - return new SemVer(a, loose).major -} - -exports.minor = minor -function minor (a, loose) { - return new SemVer(a, loose).minor -} - -exports.patch = patch -function patch (a, loose) { - return new SemVer(a, loose).patch -} - -exports.compare = compare -function compare (a, b, loose) { - return new SemVer(a, loose).compare(new SemVer(b, loose)) -} - -exports.compareLoose = compareLoose -function compareLoose (a, b) { - return compare(a, b, true) -} - -exports.compareBuild = compareBuild -function compareBuild (a, b, loose) { - var versionA = new SemVer(a, loose) - var versionB = new SemVer(b, loose) - return versionA.compare(versionB) || versionA.compareBuild(versionB) -} - -exports.rcompare = rcompare -function rcompare (a, b, loose) { - return compare(b, a, loose) -} - -exports.sort = sort -function sort (list, loose) { - return list.sort(function (a, b) { - return exports.compareBuild(a, b, loose) - }) -} - -exports.rsort = rsort -function rsort (list, loose) { - return list.sort(function (a, b) { - return exports.compareBuild(b, a, loose) - }) -} - -exports.gt = gt -function gt (a, b, loose) { - return compare(a, b, loose) > 0 -} - -exports.lt = lt -function lt (a, b, loose) { - return compare(a, b, loose) < 0 -} - -exports.eq = eq -function eq (a, b, loose) { - return compare(a, b, loose) === 0 -} - -exports.neq = neq -function neq (a, b, loose) { - return compare(a, b, loose) !== 0 -} - -exports.gte = gte -function gte (a, b, loose) { - return compare(a, b, loose) >= 0 -} - -exports.lte = lte -function lte (a, b, loose) { - return compare(a, b, loose) <= 0 -} - -exports.cmp = cmp -function cmp (a, op, b, loose) { - switch (op) { - case '===': - if (typeof a === 'object') - a = a.version - if (typeof b === 'object') - b = b.version - return a === b - - case '!==': - if (typeof a === 'object') - a = a.version - if (typeof b === 'object') - b = b.version - return a !== b - - case '': - case '=': - case '==': - return eq(a, b, loose) - - case '!=': - return neq(a, b, loose) - - case '>': - return gt(a, b, loose) - - case '>=': - return gte(a, b, loose) - - case '<': - return lt(a, b, loose) - - case '<=': - return lte(a, b, loose) - - default: - throw new TypeError('Invalid operator: ' + op) - } -} - -exports.Comparator = Comparator -function Comparator (comp, options) { - if (!options || typeof options !== 'object') { - options = { - loose: !!options, - includePrerelease: false - } - } - - if (comp instanceof Comparator) { - if (comp.loose === !!options.loose) { - return comp - } else { - comp = comp.value - } - } - - if (!(this instanceof Comparator)) { - return new Comparator(comp, options) - } - - comp = comp.trim().split(/\s+/).join(' ') - debug('comparator', comp, options) - this.options = options - this.loose = !!options.loose - this.parse(comp) - - if (this.semver === ANY) { - this.value = '' - } else { - this.value = this.operator + this.semver.version - } - - debug('comp', this) -} - -var ANY = {} -Comparator.prototype.parse = function (comp) { - var r = this.options.loose ? safeRe[t.COMPARATORLOOSE] : safeRe[t.COMPARATOR] - var m = comp.match(r) - - if (!m) { - throw new TypeError('Invalid comparator: ' + comp) - } - - this.operator = m[1] !== undefined ? m[1] : '' - if (this.operator === '=') { - this.operator = '' - } - - // if it literally is just '>' or '' then allow anything. - if (!m[2]) { - this.semver = ANY - } else { - this.semver = new SemVer(m[2], this.options.loose) - } -} - -Comparator.prototype.toString = function () { - return this.value -} - -Comparator.prototype.test = function (version) { - debug('Comparator.test', version, this.options.loose) - - if (this.semver === ANY || version === ANY) { - return true - } - - if (typeof version === 'string') { - try { - version = new SemVer(version, this.options) - } catch (er) { - return false - } - } - - return cmp(version, this.operator, this.semver, this.options) -} - -Comparator.prototype.intersects = function (comp, options) { - if (!(comp instanceof Comparator)) { - throw new TypeError('a Comparator is required') - } - - if (!options || typeof options !== 'object') { - options = { - loose: !!options, - includePrerelease: false - } - } - - var rangeTmp - - if (this.operator === '') { - if (this.value === '') { - return true - } - rangeTmp = new Range(comp.value, options) - return satisfies(this.value, rangeTmp, options) - } else if (comp.operator === '') { - if (comp.value === '') { - return true - } - rangeTmp = new Range(this.value, options) - return satisfies(comp.semver, rangeTmp, options) - } - - var sameDirectionIncreasing = - (this.operator === '>=' || this.operator === '>') && - (comp.operator === '>=' || comp.operator === '>') - var sameDirectionDecreasing = - (this.operator === '<=' || this.operator === '<') && - (comp.operator === '<=' || comp.operator === '<') - var sameSemVer = this.semver.version === comp.semver.version - var differentDirectionsInclusive = - (this.operator === '>=' || this.operator === '<=') && - (comp.operator === '>=' || comp.operator === '<=') - var oppositeDirectionsLessThan = - cmp(this.semver, '<', comp.semver, options) && - ((this.operator === '>=' || this.operator === '>') && - (comp.operator === '<=' || comp.operator === '<')) - var oppositeDirectionsGreaterThan = - cmp(this.semver, '>', comp.semver, options) && - ((this.operator === '<=' || this.operator === '<') && - (comp.operator === '>=' || comp.operator === '>')) - - return sameDirectionIncreasing || sameDirectionDecreasing || - (sameSemVer && differentDirectionsInclusive) || - oppositeDirectionsLessThan || oppositeDirectionsGreaterThan -} - -exports.Range = Range -function Range (range, options) { - if (!options || typeof options !== 'object') { - options = { - loose: !!options, - includePrerelease: false - } - } - - if (range instanceof Range) { - if (range.loose === !!options.loose && - range.includePrerelease === !!options.includePrerelease) { - return range - } else { - return new Range(range.raw, options) - } - } - - if (range instanceof Comparator) { - return new Range(range.value, options) - } - - if (!(this instanceof Range)) { - return new Range(range, options) - } - - this.options = options - this.loose = !!options.loose - this.includePrerelease = !!options.includePrerelease - - // First reduce all whitespace as much as possible so we do not have to rely - // on potentially slow regexes like \s*. This is then stored and used for - // future error messages as well. - this.raw = range - .trim() - .split(/\s+/) - .join(' ') - - // First, split based on boolean or || - this.set = this.raw.split('||').map(function (range) { - return this.parseRange(range.trim()) - }, this).filter(function (c) { - // throw out any that are not relevant for whatever reason - return c.length - }) - - if (!this.set.length) { - throw new TypeError('Invalid SemVer Range: ' + this.raw) - } - - this.format() -} - -Range.prototype.format = function () { - this.range = this.set.map(function (comps) { - return comps.join(' ').trim() - }).join('||').trim() - return this.range -} - -Range.prototype.toString = function () { - return this.range -} - -Range.prototype.parseRange = function (range) { - var loose = this.options.loose - // `1.2.3 - 1.2.4` => `>=1.2.3 <=1.2.4` - var hr = loose ? safeRe[t.HYPHENRANGELOOSE] : safeRe[t.HYPHENRANGE] - range = range.replace(hr, hyphenReplace) - debug('hyphen replace', range) - // `> 1.2.3 < 1.2.5` => `>1.2.3 <1.2.5` - range = range.replace(safeRe[t.COMPARATORTRIM], comparatorTrimReplace) - debug('comparator trim', range, safeRe[t.COMPARATORTRIM]) - - // `~ 1.2.3` => `~1.2.3` - range = range.replace(safeRe[t.TILDETRIM], tildeTrimReplace) - - // `^ 1.2.3` => `^1.2.3` - range = range.replace(safeRe[t.CARETTRIM], caretTrimReplace) - - // normalize spaces - range = range.split(/\s+/).join(' ') - - // At this point, the range is completely trimmed and - // ready to be split into comparators. - - var compRe = loose ? safeRe[t.COMPARATORLOOSE] : safeRe[t.COMPARATOR] - var set = range.split(' ').map(function (comp) { - return parseComparator(comp, this.options) - }, this).join(' ').split(/\s+/) - if (this.options.loose) { - // in loose mode, throw out any that are not valid comparators - set = set.filter(function (comp) { - return !!comp.match(compRe) - }) - } - set = set.map(function (comp) { - return new Comparator(comp, this.options) - }, this) - - return set -} - -Range.prototype.intersects = function (range, options) { - if (!(range instanceof Range)) { - throw new TypeError('a Range is required') - } - - return this.set.some(function (thisComparators) { - return ( - isSatisfiable(thisComparators, options) && - range.set.some(function (rangeComparators) { - return ( - isSatisfiable(rangeComparators, options) && - thisComparators.every(function (thisComparator) { - return rangeComparators.every(function (rangeComparator) { - return thisComparator.intersects(rangeComparator, options) - }) - }) - ) - }) - ) - }) -} - -// take a set of comparators and determine whether there -// exists a version which can satisfy it -function isSatisfiable (comparators, options) { - var result = true - var remainingComparators = comparators.slice() - var testComparator = remainingComparators.pop() - - while (result && remainingComparators.length) { - result = remainingComparators.every(function (otherComparator) { - return testComparator.intersects(otherComparator, options) - }) - - testComparator = remainingComparators.pop() - } - - return result -} - -// Mostly just for testing and legacy API reasons -exports.toComparators = toComparators -function toComparators (range, options) { - return new Range(range, options).set.map(function (comp) { - return comp.map(function (c) { - return c.value - }).join(' ').trim().split(' ') - }) -} - -// comprised of xranges, tildes, stars, and gtlt's at this point. -// already replaced the hyphen ranges -// turn into a set of JUST comparators. -function parseComparator (comp, options) { - debug('comp', comp, options) - comp = replaceCarets(comp, options) - debug('caret', comp) - comp = replaceTildes(comp, options) - debug('tildes', comp) - comp = replaceXRanges(comp, options) - debug('xrange', comp) - comp = replaceStars(comp, options) - debug('stars', comp) - return comp -} - -function isX (id) { - return !id || id.toLowerCase() === 'x' || id === '*' -} - -// ~, ~> --> * (any, kinda silly) -// ~2, ~2.x, ~2.x.x, ~>2, ~>2.x ~>2.x.x --> >=2.0.0 <3.0.0 -// ~2.0, ~2.0.x, ~>2.0, ~>2.0.x --> >=2.0.0 <2.1.0 -// ~1.2, ~1.2.x, ~>1.2, ~>1.2.x --> >=1.2.0 <1.3.0 -// ~1.2.3, ~>1.2.3 --> >=1.2.3 <1.3.0 -// ~1.2.0, ~>1.2.0 --> >=1.2.0 <1.3.0 -function replaceTildes (comp, options) { - return comp.trim().split(/\s+/).map(function (comp) { - return replaceTilde(comp, options) - }).join(' ') -} - -function replaceTilde (comp, options) { - var r = options.loose ? safeRe[t.TILDELOOSE] : safeRe[t.TILDE] - return comp.replace(r, function (_, M, m, p, pr) { - debug('tilde', comp, _, M, m, p, pr) - var ret - - if (isX(M)) { - ret = '' - } else if (isX(m)) { - ret = '>=' + M + '.0.0 <' + (+M + 1) + '.0.0' - } else if (isX(p)) { - // ~1.2 == >=1.2.0 <1.3.0 - ret = '>=' + M + '.' + m + '.0 <' + M + '.' + (+m + 1) + '.0' - } else if (pr) { - debug('replaceTilde pr', pr) - ret = '>=' + M + '.' + m + '.' + p + '-' + pr + - ' <' + M + '.' + (+m + 1) + '.0' - } else { - // ~1.2.3 == >=1.2.3 <1.3.0 - ret = '>=' + M + '.' + m + '.' + p + - ' <' + M + '.' + (+m + 1) + '.0' - } - - debug('tilde return', ret) - return ret - }) -} - -// ^ --> * (any, kinda silly) -// ^2, ^2.x, ^2.x.x --> >=2.0.0 <3.0.0 -// ^2.0, ^2.0.x --> >=2.0.0 <3.0.0 -// ^1.2, ^1.2.x --> >=1.2.0 <2.0.0 -// ^1.2.3 --> >=1.2.3 <2.0.0 -// ^1.2.0 --> >=1.2.0 <2.0.0 -function replaceCarets (comp, options) { - return comp.trim().split(/\s+/).map(function (comp) { - return replaceCaret(comp, options) - }).join(' ') -} - -function replaceCaret (comp, options) { - debug('caret', comp, options) - var r = options.loose ? safeRe[t.CARETLOOSE] : safeRe[t.CARET] - return comp.replace(r, function (_, M, m, p, pr) { - debug('caret', comp, _, M, m, p, pr) - var ret - - if (isX(M)) { - ret = '' - } else if (isX(m)) { - ret = '>=' + M + '.0.0 <' + (+M + 1) + '.0.0' - } else if (isX(p)) { - if (M === '0') { - ret = '>=' + M + '.' + m + '.0 <' + M + '.' + (+m + 1) + '.0' - } else { - ret = '>=' + M + '.' + m + '.0 <' + (+M + 1) + '.0.0' - } - } else if (pr) { - debug('replaceCaret pr', pr) - if (M === '0') { - if (m === '0') { - ret = '>=' + M + '.' + m + '.' + p + '-' + pr + - ' <' + M + '.' + m + '.' + (+p + 1) - } else { - ret = '>=' + M + '.' + m + '.' + p + '-' + pr + - ' <' + M + '.' + (+m + 1) + '.0' - } - } else { - ret = '>=' + M + '.' + m + '.' + p + '-' + pr + - ' <' + (+M + 1) + '.0.0' - } - } else { - debug('no pr') - if (M === '0') { - if (m === '0') { - ret = '>=' + M + '.' + m + '.' + p + - ' <' + M + '.' + m + '.' + (+p + 1) - } else { - ret = '>=' + M + '.' + m + '.' + p + - ' <' + M + '.' + (+m + 1) + '.0' - } - } else { - ret = '>=' + M + '.' + m + '.' + p + - ' <' + (+M + 1) + '.0.0' - } - } - - debug('caret return', ret) - return ret - }) -} - -function replaceXRanges (comp, options) { - debug('replaceXRanges', comp, options) - return comp.split(/\s+/).map(function (comp) { - return replaceXRange(comp, options) - }).join(' ') -} - -function replaceXRange (comp, options) { - comp = comp.trim() - var r = options.loose ? safeRe[t.XRANGELOOSE] : safeRe[t.XRANGE] - return comp.replace(r, function (ret, gtlt, M, m, p, pr) { - debug('xRange', comp, ret, gtlt, M, m, p, pr) - var xM = isX(M) - var xm = xM || isX(m) - var xp = xm || isX(p) - var anyX = xp - - if (gtlt === '=' && anyX) { - gtlt = '' - } - - // if we're including prereleases in the match, then we need - // to fix this to -0, the lowest possible prerelease value - pr = options.includePrerelease ? '-0' : '' - - if (xM) { - if (gtlt === '>' || gtlt === '<') { - // nothing is allowed - ret = '<0.0.0-0' - } else { - // nothing is forbidden - ret = '*' - } - } else if (gtlt && anyX) { - // we know patch is an x, because we have any x at all. - // replace X with 0 - if (xm) { - m = 0 - } - p = 0 - - if (gtlt === '>') { - // >1 => >=2.0.0 - // >1.2 => >=1.3.0 - // >1.2.3 => >= 1.2.4 - gtlt = '>=' - if (xm) { - M = +M + 1 - m = 0 - p = 0 - } else { - m = +m + 1 - p = 0 - } - } else if (gtlt === '<=') { - // <=0.7.x is actually <0.8.0, since any 0.7.x should - // pass. Similarly, <=7.x is actually <8.0.0, etc. - gtlt = '<' - if (xm) { - M = +M + 1 - } else { - m = +m + 1 - } - } - - ret = gtlt + M + '.' + m + '.' + p + pr - } else if (xm) { - ret = '>=' + M + '.0.0' + pr + ' <' + (+M + 1) + '.0.0' + pr - } else if (xp) { - ret = '>=' + M + '.' + m + '.0' + pr + - ' <' + M + '.' + (+m + 1) + '.0' + pr - } - - debug('xRange return', ret) - - return ret - }) -} - -// Because * is AND-ed with everything else in the comparator, -// and '' means "any version", just remove the *s entirely. -function replaceStars (comp, options) { - debug('replaceStars', comp, options) - // Looseness is ignored here. star is always as loose as it gets! - return comp.trim().replace(safeRe[t.STAR], '') -} - -// This function is passed to string.replace(re[t.HYPHENRANGE]) -// M, m, patch, prerelease, build -// 1.2 - 3.4.5 => >=1.2.0 <=3.4.5 -// 1.2.3 - 3.4 => >=1.2.0 <3.5.0 Any 3.4.x will do -// 1.2 - 3.4 => >=1.2.0 <3.5.0 -function hyphenReplace ($0, - from, fM, fm, fp, fpr, fb, - to, tM, tm, tp, tpr, tb) { - if (isX(fM)) { - from = '' - } else if (isX(fm)) { - from = '>=' + fM + '.0.0' - } else if (isX(fp)) { - from = '>=' + fM + '.' + fm + '.0' - } else { - from = '>=' + from - } - - if (isX(tM)) { - to = '' - } else if (isX(tm)) { - to = '<' + (+tM + 1) + '.0.0' - } else if (isX(tp)) { - to = '<' + tM + '.' + (+tm + 1) + '.0' - } else if (tpr) { - to = '<=' + tM + '.' + tm + '.' + tp + '-' + tpr - } else { - to = '<=' + to - } - - return (from + ' ' + to).trim() -} - -// if ANY of the sets match ALL of its comparators, then pass -Range.prototype.test = function (version) { - if (!version) { - return false - } - - if (typeof version === 'string') { - try { - version = new SemVer(version, this.options) - } catch (er) { - return false - } - } - - for (var i = 0; i < this.set.length; i++) { - if (testSet(this.set[i], version, this.options)) { - return true - } - } - return false -} - -function testSet (set, version, options) { - for (var i = 0; i < set.length; i++) { - if (!set[i].test(version)) { - return false - } - } - - if (version.prerelease.length && !options.includePrerelease) { - // Find the set of versions that are allowed to have prereleases - // For example, ^1.2.3-pr.1 desugars to >=1.2.3-pr.1 <2.0.0 - // That should allow `1.2.3-pr.2` to pass. - // However, `1.2.4-alpha.notready` should NOT be allowed, - // even though it's within the range set by the comparators. - for (i = 0; i < set.length; i++) { - debug(set[i].semver) - if (set[i].semver === ANY) { - continue - } - - if (set[i].semver.prerelease.length > 0) { - var allowed = set[i].semver - if (allowed.major === version.major && - allowed.minor === version.minor && - allowed.patch === version.patch) { - return true - } - } - } - - // Version has a -pre, but it's not one of the ones we like. - return false - } - - return true -} - -exports.satisfies = satisfies -function satisfies (version, range, options) { - try { - range = new Range(range, options) - } catch (er) { - return false - } - return range.test(version) -} - -exports.maxSatisfying = maxSatisfying -function maxSatisfying (versions, range, options) { - var max = null - var maxSV = null - try { - var rangeObj = new Range(range, options) - } catch (er) { - return null - } - versions.forEach(function (v) { - if (rangeObj.test(v)) { - // satisfies(v, range, options) - if (!max || maxSV.compare(v) === -1) { - // compare(max, v, true) - max = v - maxSV = new SemVer(max, options) - } - } - }) - return max -} - -exports.minSatisfying = minSatisfying -function minSatisfying (versions, range, options) { - var min = null - var minSV = null - try { - var rangeObj = new Range(range, options) - } catch (er) { - return null - } - versions.forEach(function (v) { - if (rangeObj.test(v)) { - // satisfies(v, range, options) - if (!min || minSV.compare(v) === 1) { - // compare(min, v, true) - min = v - minSV = new SemVer(min, options) - } - } - }) - return min -} - -exports.minVersion = minVersion -function minVersion (range, loose) { - range = new Range(range, loose) - - var minver = new SemVer('0.0.0') - if (range.test(minver)) { - return minver - } - - minver = new SemVer('0.0.0-0') - if (range.test(minver)) { - return minver - } - - minver = null - for (var i = 0; i < range.set.length; ++i) { - var comparators = range.set[i] - - comparators.forEach(function (comparator) { - // Clone to avoid manipulating the comparator's semver object. - var compver = new SemVer(comparator.semver.version) - switch (comparator.operator) { - case '>': - if (compver.prerelease.length === 0) { - compver.patch++ - } else { - compver.prerelease.push(0) - } - compver.raw = compver.format() - /* fallthrough */ - case '': - case '>=': - if (!minver || gt(minver, compver)) { - minver = compver - } - break - case '<': - case '<=': - /* Ignore maximum versions */ - break - /* istanbul ignore next */ - default: - throw new Error('Unexpected operation: ' + comparator.operator) - } - }) - } - - if (minver && range.test(minver)) { - return minver - } - - return null -} - -exports.validRange = validRange -function validRange (range, options) { - try { - // Return '*' instead of '' so that truthiness works. - // This will throw if it's invalid anyway - return new Range(range, options).range || '*' - } catch (er) { - return null - } -} - -// Determine if version is less than all the versions possible in the range -exports.ltr = ltr -function ltr (version, range, options) { - return outside(version, range, '<', options) -} - -// Determine if version is greater than all the versions possible in the range. -exports.gtr = gtr -function gtr (version, range, options) { - return outside(version, range, '>', options) -} - -exports.outside = outside -function outside (version, range, hilo, options) { - version = new SemVer(version, options) - range = new Range(range, options) - - var gtfn, ltefn, ltfn, comp, ecomp - switch (hilo) { - case '>': - gtfn = gt - ltefn = lte - ltfn = lt - comp = '>' - ecomp = '>=' - break - case '<': - gtfn = lt - ltefn = gte - ltfn = gt - comp = '<' - ecomp = '<=' - break - default: - throw new TypeError('Must provide a hilo val of "<" or ">"') - } - - // If it satisifes the range it is not outside - if (satisfies(version, range, options)) { - return false - } - - // From now on, variable terms are as if we're in "gtr" mode. - // but note that everything is flipped for the "ltr" function. - - for (var i = 0; i < range.set.length; ++i) { - var comparators = range.set[i] - - var high = null - var low = null - - comparators.forEach(function (comparator) { - if (comparator.semver === ANY) { - comparator = new Comparator('>=0.0.0') - } - high = high || comparator - low = low || comparator - if (gtfn(comparator.semver, high.semver, options)) { - high = comparator - } else if (ltfn(comparator.semver, low.semver, options)) { - low = comparator - } - }) - - // If the edge version comparator has a operator then our version - // isn't outside it - if (high.operator === comp || high.operator === ecomp) { - return false - } - - // If the lowest version comparator has an operator and our version - // is less than it then it isn't higher than the range - if ((!low.operator || low.operator === comp) && - ltefn(version, low.semver)) { - return false - } else if (low.operator === ecomp && ltfn(version, low.semver)) { - return false - } - } - return true -} - -exports.prerelease = prerelease -function prerelease (version, options) { - var parsed = parse(version, options) - return (parsed && parsed.prerelease.length) ? parsed.prerelease : null -} - -exports.intersects = intersects -function intersects (r1, r2, options) { - r1 = new Range(r1, options) - r2 = new Range(r2, options) - return r1.intersects(r2) -} - -exports.coerce = coerce -function coerce (version, options) { - if (version instanceof SemVer) { - return version - } - - if (typeof version === 'number') { - version = String(version) - } - - if (typeof version !== 'string') { - return null - } - - options = options || {} - - var match = null - if (!options.rtl) { - match = version.match(safeRe[t.COERCE]) - } else { - // Find the right-most coercible string that does not share - // a terminus with a more left-ward coercible string. - // Eg, '1.2.3.4' wants to coerce '2.3.4', not '3.4' or '4' - // - // Walk through the string checking with a /g regexp - // Manually set the index so as to pick up overlapping matches. - // Stop when we get a match that ends at the string end, since no - // coercible string can be more right-ward without the same terminus. - var next - while ((next = safeRe[t.COERCERTL].exec(version)) && - (!match || match.index + match[0].length !== version.length) - ) { - if (!match || - next.index + next[0].length !== match.index + match[0].length) { - match = next - } - safeRe[t.COERCERTL].lastIndex = next.index + next[1].length + next[2].length - } - // leave it in a clean state - safeRe[t.COERCERTL].lastIndex = -1 - } - - if (match === null) { - return null - } - - return parse(match[2] + - '.' + (match[3] || '0') + - '.' + (match[4] || '0'), options) -} diff --git a/node_modules/eslint-plugin-import/package.json b/node_modules/eslint-plugin-import/package.json index 299cf52b0c..81905b59b2 100644 --- a/node_modules/eslint-plugin-import/package.json +++ b/node_modules/eslint-plugin-import/package.json @@ -1,6 +1,6 @@ { "name": "eslint-plugin-import", - "version": "2.27.5", + "version": "2.28.0", "description": "Import with sanity.", "engines": { "node": ">=4" @@ -42,6 +42,7 @@ "keywords": [ "eslint", "eslintplugin", + "eslint-plugin", "es6", "jsnext", "modules", @@ -55,7 +56,7 @@ }, "homepage": "https://github.com/import-js/eslint-plugin-import", "devDependencies": { - "@angular-eslint/template-parser": "^13.2.1", + "@angular-eslint/template-parser": "^13.5.0", "@eslint/import-test-order-redirect-scoped": "file:./tests/files/order-redirect-scoped", "@test-scope/some-module": "file:./tests/files/symlinked-module", "@typescript-eslint/parser": "^2.23.0 || ^3.3.0 || ^4.29.3 || ^5.10.0", @@ -68,11 +69,11 @@ "babel-preset-flow": "^6.23.0", "babel-register": "^6.26.0", "babylon": "^6.18.0", - "chai": "^4.3.6", + "chai": "^4.3.7", "cross-env": "^4.0.0", "escope": "^3.6.0", "eslint": "^2 || ^3 || ^4 || ^5 || ^6 || ^7.2.0 || ^8", - "eslint-doc-generator": "^1.0.0", + "eslint-doc-generator": "^1.4.3", "eslint-import-resolver-node": "file:./resolvers/node", "eslint-import-resolver-typescript": "^1.0.2 || ^1.1.1", "eslint-import-resolver-webpack": "file:./resolvers/webpack", @@ -82,7 +83,7 @@ "eslint-plugin-import": "2.x", "eslint-plugin-json": "^2.1.2", "fs-copy-file-sync": "^1.1.1", - "glob": "^7.2.0", + "glob": "^7.2.3", "in-publish": "^2.0.1", "linklocal": "^2.8.2", "lodash.isarray": "^4.0.0", @@ -101,19 +102,22 @@ }, "dependencies": { "array-includes": "^3.1.6", + "array.prototype.findlastindex": "^1.2.2", "array.prototype.flat": "^1.3.1", "array.prototype.flatmap": "^1.3.1", "debug": "^3.2.7", "doctrine": "^2.1.0", "eslint-import-resolver-node": "^0.3.7", - "eslint-module-utils": "^2.7.4", + "eslint-module-utils": "^2.8.0", "has": "^1.0.3", - "is-core-module": "^2.11.0", + "is-core-module": "^2.12.1", "is-glob": "^4.0.3", "minimatch": "^3.1.2", + "object.fromentries": "^2.0.6", + "object.groupby": "^1.0.0", "object.values": "^1.1.6", - "resolve": "^1.22.1", - "semver": "^6.3.0", - "tsconfig-paths": "^3.14.1" + "resolve": "^1.22.3", + "semver": "^6.3.1", + "tsconfig-paths": "^3.14.2" } } diff --git a/node_modules/eslint/node_modules/eslint-scope/LICENSE b/node_modules/eslint-scope/LICENSE similarity index 100% rename from node_modules/eslint/node_modules/eslint-scope/LICENSE rename to node_modules/eslint-scope/LICENSE diff --git a/node_modules/eslint/node_modules/eslint-scope/README.md b/node_modules/eslint-scope/README.md similarity index 100% rename from node_modules/eslint/node_modules/eslint-scope/README.md rename to node_modules/eslint-scope/README.md diff --git a/node_modules/eslint/node_modules/eslint-scope/dist/eslint-scope.cjs b/node_modules/eslint-scope/dist/eslint-scope.cjs similarity index 99% rename from node_modules/eslint/node_modules/eslint-scope/dist/eslint-scope.cjs rename to node_modules/eslint-scope/dist/eslint-scope.cjs index 1aa7a6f4dd..291fcdcdc9 100644 --- a/node_modules/eslint/node_modules/eslint-scope/dist/eslint-scope.cjs +++ b/node_modules/eslint-scope/dist/eslint-scope.cjs @@ -2114,7 +2114,7 @@ class Referencer extends esrecurse__default["default"].Visitor { /* vim: set sw=4 ts=4 et tw=80 : */ -const version = "7.2.0"; +const version = "7.2.2"; /* Copyright (C) 2012-2014 Yusuke Suzuki diff --git a/node_modules/eslint/node_modules/eslint-scope/lib/definition.js b/node_modules/eslint-scope/lib/definition.js similarity index 100% rename from node_modules/eslint/node_modules/eslint-scope/lib/definition.js rename to node_modules/eslint-scope/lib/definition.js diff --git a/node_modules/eslint/node_modules/eslint-scope/lib/index.js b/node_modules/eslint-scope/lib/index.js similarity index 100% rename from node_modules/eslint/node_modules/eslint-scope/lib/index.js rename to node_modules/eslint-scope/lib/index.js diff --git a/node_modules/eslint/node_modules/eslint-scope/lib/pattern-visitor.js b/node_modules/eslint-scope/lib/pattern-visitor.js similarity index 100% rename from node_modules/eslint/node_modules/eslint-scope/lib/pattern-visitor.js rename to node_modules/eslint-scope/lib/pattern-visitor.js diff --git a/node_modules/eslint/node_modules/eslint-scope/lib/reference.js b/node_modules/eslint-scope/lib/reference.js similarity index 100% rename from node_modules/eslint/node_modules/eslint-scope/lib/reference.js rename to node_modules/eslint-scope/lib/reference.js diff --git a/node_modules/eslint/node_modules/eslint-scope/lib/referencer.js b/node_modules/eslint-scope/lib/referencer.js similarity index 100% rename from node_modules/eslint/node_modules/eslint-scope/lib/referencer.js rename to node_modules/eslint-scope/lib/referencer.js diff --git a/node_modules/eslint/node_modules/eslint-scope/lib/scope-manager.js b/node_modules/eslint-scope/lib/scope-manager.js similarity index 100% rename from node_modules/eslint/node_modules/eslint-scope/lib/scope-manager.js rename to node_modules/eslint-scope/lib/scope-manager.js diff --git a/node_modules/eslint/node_modules/eslint-scope/lib/scope.js b/node_modules/eslint-scope/lib/scope.js similarity index 100% rename from node_modules/eslint/node_modules/eslint-scope/lib/scope.js rename to node_modules/eslint-scope/lib/scope.js diff --git a/node_modules/eslint/node_modules/eslint-scope/lib/variable.js b/node_modules/eslint-scope/lib/variable.js similarity index 100% rename from node_modules/eslint/node_modules/eslint-scope/lib/variable.js rename to node_modules/eslint-scope/lib/variable.js diff --git a/node_modules/eslint/node_modules/eslint-scope/lib/version.js b/node_modules/eslint-scope/lib/version.js similarity index 50% rename from node_modules/eslint/node_modules/eslint-scope/lib/version.js rename to node_modules/eslint-scope/lib/version.js index 3e7016de7c..7e7f652203 100644 --- a/node_modules/eslint/node_modules/eslint-scope/lib/version.js +++ b/node_modules/eslint-scope/lib/version.js @@ -1,3 +1,3 @@ -const version = "7.2.0"; +const version = "7.2.2"; export default version; diff --git a/node_modules/eslint/node_modules/eslint-scope/package.json b/node_modules/eslint-scope/package.json similarity index 98% rename from node_modules/eslint/node_modules/eslint-scope/package.json rename to node_modules/eslint-scope/package.json index 48d2efd328..0aae36d38b 100644 --- a/node_modules/eslint/node_modules/eslint-scope/package.json +++ b/node_modules/eslint-scope/package.json @@ -11,7 +11,7 @@ }, "./package.json": "./package.json" }, - "version": "7.2.0", + "version": "7.2.2", "engines": { "node": "^12.22.0 || ^14.17.0 || >=16.0.0" }, diff --git a/node_modules/eslint-visitor-keys/README.md b/node_modules/eslint-visitor-keys/README.md index f21e35adb9..0ea83f12ab 100644 --- a/node_modules/eslint-visitor-keys/README.md +++ b/node_modules/eslint-visitor-keys/README.md @@ -98,7 +98,6 @@ Welcome. See [ESLint contribution guidelines](https://eslint.org/docs/developer- - `npm test` runs tests and measures code coverage. - `npm run lint` checks source codes with ESLint. - `npm run coverage` opens the code coverage report of the previous test with your default browser. -- `npm run release` publishes this package to [npm] registory. [npm]: https://www.npmjs.com/ diff --git a/node_modules/eslint-visitor-keys/package.json b/node_modules/eslint-visitor-keys/package.json index e1f836dbbc..b9972e9ac3 100644 --- a/node_modules/eslint-visitor-keys/package.json +++ b/node_modules/eslint-visitor-keys/package.json @@ -1,6 +1,6 @@ { "name": "eslint-visitor-keys", - "version": "3.4.1", + "version": "3.4.2", "description": "Constants and utilities about visitor keys to traverse AST.", "type": "module", "main": "dist/eslint-visitor-keys.cjs", diff --git a/node_modules/eslint/README.md b/node_modules/eslint/README.md index 78598b3a01..e16c09bb98 100644 --- a/node_modules/eslint/README.md +++ b/node_modules/eslint/README.md @@ -284,7 +284,7 @@ The following companies, organizations, and individuals support ESLint's ongoing

Chrome Frameworks Fund Automattic

Gold Sponsors

Salesforce Airbnb

Silver Sponsors

Sentry Liftoff American Express

Bronze Sponsors

-

iBoysoft ThemeIsle Nx (by Nrwl) Anagram Solver Icons8: free icons, photos, illustrations, and music Discord Transloadit Ignition Mercedes-Benz Group HeroCoders QuickBooks Tool hub

+

ThemeIsle Nx (by Nrwl) Anagram Solver Icons8: free icons, photos, illustrations, and music Discord iBoysoft BairesDev GitHub Transloadit Ignition HeroCoders QuickBooks Tool hub

## Technology Sponsors diff --git a/node_modules/eslint/lib/config/flat-config-schema.js b/node_modules/eslint/lib/config/flat-config-schema.js index 10d6b50ef1..3922e8a94f 100644 --- a/node_modules/eslint/lib/config/flat-config-schema.js +++ b/node_modules/eslint/lib/config/flat-config-schema.js @@ -212,6 +212,38 @@ function assertIsObject(value) { } } +/** + * The error type when there's an eslintrc-style options in a flat config. + */ +class IncompatibleKeyError extends Error { + + /** + * @param {string} key The invalid key. + */ + constructor(key) { + super("This appears to be in eslintrc format rather than flat config format."); + this.messageTemplate = "eslintrc-incompat"; + this.messageData = { key }; + } +} + +/** + * The error type when there's an eslintrc-style plugins array found. + */ +class IncompatiblePluginsError extends Error { + + /** + * Creates a new instance. + * @param {Array} plugins The plugins array. + */ + constructor(plugins) { + super("This appears to be in eslintrc format (array of strings) rather than flat config format (object)."); + this.messageTemplate = "eslintrc-plugins"; + this.messageData = { plugins }; + } +} + + //----------------------------------------------------------------------------- // Low-Level Schemas //----------------------------------------------------------------------------- @@ -303,6 +335,11 @@ const pluginsSchema = { throw new TypeError("Expected an object."); } + // make sure it's not an array, which would mean eslintrc-style is used + if (Array.isArray(value)) { + throw new IncompatiblePluginsError(value); + } + // second check the keys to make sure they are objects for (const key of Object.keys(value)) { @@ -438,11 +475,44 @@ const sourceTypeSchema = { } }; +/** + * Creates a schema that always throws an error. Useful for warning + * about eslintrc-style keys. + * @param {string} key The eslintrc key to create a schema for. + * @returns {ObjectPropertySchema} The schema. + */ +function createEslintrcErrorSchema(key) { + return { + merge: "replace", + validate() { + throw new IncompatibleKeyError(key); + } + }; +} + +const eslintrcKeys = [ + "env", + "extends", + "globals", + "ignorePatterns", + "noInlineConfig", + "overrides", + "parser", + "parserOptions", + "reportUnusedDisableDirectives", + "root" +]; + //----------------------------------------------------------------------------- // Full schema //----------------------------------------------------------------------------- exports.flatConfigSchema = { + + // eslintrc-style keys that should always error + ...Object.fromEntries(eslintrcKeys.map(key => [key, createEslintrcErrorSchema(key)])), + + // flat config keys settings: deepObjectAssignSchema, linterOptions: { schema: { diff --git a/node_modules/eslint/lib/eslint/flat-eslint.js b/node_modules/eslint/lib/eslint/flat-eslint.js index f2d6082eb3..4ef3861136 100644 --- a/node_modules/eslint/lib/eslint/flat-eslint.js +++ b/node_modules/eslint/lib/eslint/flat-eslint.js @@ -714,12 +714,10 @@ class FlatESLint { } const rule = getRuleFromConfig(ruleId, config); - // ensure the rule exists - if (!rule) { - throw new TypeError(`Could not find the rule "${ruleId}".`); + // ignore unknown rules + if (rule) { + resultRules.set(ruleId, rule); } - - resultRules.set(ruleId, rule); } } diff --git a/node_modules/eslint/lib/rules/no-control-regex.js b/node_modules/eslint/lib/rules/no-control-regex.js index 086747f374..dc412fcabd 100644 --- a/node_modules/eslint/lib/rules/no-control-regex.js +++ b/node_modules/eslint/lib/rules/no-control-regex.js @@ -14,6 +14,16 @@ const collector = new (class { } onPatternEnter() { + + /* + * `RegExpValidator` may parse the pattern twice in one `validatePattern`. + * So `this._controlChars` should be cleared here as well. + * + * For example, the `/(?\x1f)/` regex will parse the pattern twice. + * This is based on the content described in Annex B. + * If the regex contains a `GroupName` and the `u` flag is not used, `ParseText` will be called twice. + * See https://tc39.es/ecma262/2023/multipage/additional-ecmascript-features-for-web-browsers.html#sec-parsepattern-annexb + */ this._controlChars = []; } @@ -32,10 +42,13 @@ const collector = new (class { collectControlChars(regexpStr, flags) { const uFlag = typeof flags === "string" && flags.includes("u"); + const vFlag = typeof flags === "string" && flags.includes("v"); + + this._controlChars = []; + this._source = regexpStr; try { - this._source = regexpStr; - this._validator.validatePattern(regexpStr, void 0, void 0, uFlag); // Call onCharacter hook + this._validator.validatePattern(regexpStr, void 0, void 0, { unicode: uFlag, unicodeSets: vFlag }); // Call onCharacter hook } catch { // Ignore syntax errors in RegExp. diff --git a/node_modules/eslint/lib/rules/no-empty-character-class.js b/node_modules/eslint/lib/rules/no-empty-character-class.js index da29bbe927..5c8410235b 100644 --- a/node_modules/eslint/lib/rules/no-empty-character-class.js +++ b/node_modules/eslint/lib/rules/no-empty-character-class.js @@ -5,20 +5,18 @@ "use strict"; +//------------------------------------------------------------------------------ +// Requirements +//------------------------------------------------------------------------------ + +const { RegExpParser, visitRegExpAST } = require("@eslint-community/regexpp"); + //------------------------------------------------------------------------------ // Helpers //------------------------------------------------------------------------------ -/* - * plain-English description of the following regexp: - * 0. `^` fix the match at the beginning of the string - * 1. `([^\\[]|\\.|\[([^\\\]]|\\.)+\])*`: regexp contents; 0 or more of the following - * 1.0. `[^\\[]`: any character that's not a `\` or a `[` (anything but escape sequences and character classes) - * 1.1. `\\.`: an escape sequence - * 1.2. `\[([^\\\]]|\\.)+\]`: a character class that isn't empty - * 2. `$`: fix the match at the end of the string - */ -const regex = /^([^\\[]|\\.|\[([^\\\]]|\\.)+\])*$/u; +const parser = new RegExpParser(); +const QUICK_TEST_REGEX = /\[\]/u; //------------------------------------------------------------------------------ // Rule Definition @@ -45,9 +43,32 @@ module.exports = { create(context) { return { "Literal[regex]"(node) { - if (!regex.test(node.regex.pattern)) { - context.report({ node, messageId: "unexpected" }); + const { pattern, flags } = node.regex; + + if (!QUICK_TEST_REGEX.test(pattern)) { + return; } + + let regExpAST; + + try { + regExpAST = parser.parsePattern(pattern, 0, pattern.length, { + unicode: flags.includes("u"), + unicodeSets: flags.includes("v") + }); + } catch { + + // Ignore regular expressions that regexpp cannot parse + return; + } + + visitRegExpAST(regExpAST, { + onCharacterClassEnter(characterClass) { + if (!characterClass.negate && characterClass.elements.length === 0) { + context.report({ node, messageId: "unexpected" }); + } + } + }); } }; diff --git a/node_modules/eslint/lib/rules/no-empty-pattern.js b/node_modules/eslint/lib/rules/no-empty-pattern.js index abb1a7c6dd..fb75f6d25b 100644 --- a/node_modules/eslint/lib/rules/no-empty-pattern.js +++ b/node_modules/eslint/lib/rules/no-empty-pattern.js @@ -4,6 +4,8 @@ */ "use strict"; +const astUtils = require("./utils/ast-utils"); + //------------------------------------------------------------------------------ // Rule Definition //------------------------------------------------------------------------------ @@ -19,7 +21,18 @@ module.exports = { url: "https://eslint.org/docs/latest/rules/no-empty-pattern" }, - schema: [], + schema: [ + { + type: "object", + properties: { + allowObjectPatternsAsParameters: { + type: "boolean", + default: false + } + }, + additionalProperties: false + } + ], messages: { unexpected: "Unexpected empty {{type}} pattern." @@ -27,11 +40,33 @@ module.exports = { }, create(context) { + const options = context.options[0] || {}, + allowObjectPatternsAsParameters = options.allowObjectPatternsAsParameters || false; + return { ObjectPattern(node) { - if (node.properties.length === 0) { - context.report({ node, messageId: "unexpected", data: { type: "object" } }); + + if (node.properties.length > 0) { + return; } + + // Allow {} and {} = {} empty object patterns as parameters when allowObjectPatternsAsParameters is true + if ( + allowObjectPatternsAsParameters && + ( + astUtils.isFunction(node.parent) || + ( + node.parent.type === "AssignmentPattern" && + astUtils.isFunction(node.parent.parent) && + node.parent.right.type === "ObjectExpression" && + node.parent.right.properties.length === 0 + ) + ) + ) { + return; + } + + context.report({ node, messageId: "unexpected", data: { type: "object" } }); }, ArrayPattern(node) { if (node.elements.length === 0) { diff --git a/node_modules/eslint/lib/rules/no-invalid-regexp.js b/node_modules/eslint/lib/rules/no-invalid-regexp.js index 9a35743d12..3c42a68e8a 100644 --- a/node_modules/eslint/lib/rules/no-invalid-regexp.js +++ b/node_modules/eslint/lib/rules/no-invalid-regexp.js @@ -10,7 +10,7 @@ const RegExpValidator = require("@eslint-community/regexpp").RegExpValidator; const validator = new RegExpValidator(); -const validFlags = /[dgimsuy]/gu; +const validFlags = /[dgimsuvy]/gu; const undefined1 = void 0; //------------------------------------------------------------------------------ @@ -108,12 +108,14 @@ module.exports = { /** * Check syntax error in a given pattern. * @param {string} pattern The RegExp pattern to validate. - * @param {boolean} uFlag The Unicode flag. + * @param {Object} flags The RegExp flags to validate. + * @param {boolean} [flags.unicode] The Unicode flag. + * @param {boolean} [flags.unicodeSets] The UnicodeSets flag. * @returns {string|null} The syntax error. */ - function validateRegExpPattern(pattern, uFlag) { + function validateRegExpPattern(pattern, flags) { try { - validator.validatePattern(pattern, undefined1, undefined1, uFlag); + validator.validatePattern(pattern, undefined1, undefined1, flags); return null; } catch (err) { return err.message; @@ -131,10 +133,19 @@ module.exports = { } try { validator.validateFlags(flags); - return null; } catch { return `Invalid flags supplied to RegExp constructor '${flags}'`; } + + /* + * `regexpp` checks the combination of `u` and `v` flags when parsing `Pattern` according to `ecma262`, + * but this rule may check only the flag when the pattern is unidentifiable, so check it here. + * https://tc39.es/ecma262/multipage/text-processing.html#sec-parsepattern + */ + if (flags.includes("u") && flags.includes("v")) { + return "Regex 'u' and 'v' flags cannot be used together"; + } + return null; } return { @@ -166,8 +177,12 @@ module.exports = { // If flags are unknown, report the regex only if its pattern is invalid both with and without the "u" flag flags === null - ? validateRegExpPattern(pattern, true) && validateRegExpPattern(pattern, false) - : validateRegExpPattern(pattern, flags.includes("u")) + ? ( + validateRegExpPattern(pattern, { unicode: true, unicodeSets: false }) && + validateRegExpPattern(pattern, { unicode: false, unicodeSets: true }) && + validateRegExpPattern(pattern, { unicode: false, unicodeSets: false }) + ) + : validateRegExpPattern(pattern, { unicode: flags.includes("u"), unicodeSets: flags.includes("v") }) ); if (message) { diff --git a/node_modules/eslint/lib/rules/no-loop-func.js b/node_modules/eslint/lib/rules/no-loop-func.js index e1d65fdc92..48312fbf58 100644 --- a/node_modules/eslint/lib/rules/no-loop-func.js +++ b/node_modules/eslint/lib/rules/no-loop-func.js @@ -186,7 +186,7 @@ module.exports = { } const references = sourceCode.getScope(node).through; - const unsafeRefs = references.filter(r => !isSafe(loopNode, r)).map(r => r.identifier.name); + const unsafeRefs = references.filter(r => r.resolved && !isSafe(loopNode, r)).map(r => r.identifier.name); if (unsafeRefs.length > 0) { context.report({ diff --git a/node_modules/eslint/lib/rules/no-misleading-character-class.js b/node_modules/eslint/lib/rules/no-misleading-character-class.js index 47ee84ec85..99aa940486 100644 --- a/node_modules/eslint/lib/rules/no-misleading-character-class.js +++ b/node_modules/eslint/lib/rules/no-misleading-character-class.js @@ -18,7 +18,7 @@ const { isValidWithUnicodeFlag } = require("./utils/regular-expressions"); * * CharacterClassRange syntax can steal a part of character sequence, * so this function reverts CharacterClassRange syntax and restore the sequence. - * @param {regexpp.AST.CharacterClassElement[]} nodes The node list to iterate character sequences. + * @param {import('@eslint-community/regexpp').AST.CharacterClassElement[]} nodes The node list to iterate character sequences. * @returns {IterableIterator} The list of character sequences. */ function *iterateCharacterSequence(nodes) { @@ -37,6 +37,9 @@ function *iterateCharacterSequence(nodes) { break; case "CharacterSet": + case "CharacterClass": // [[]] nesting character class + case "ClassStringDisjunction": // \q{...} + case "ExpressionCharacterClass": // [A--B] if (seq.length > 0) { yield seq; seq = []; @@ -144,7 +147,10 @@ module.exports = { pattern, 0, pattern.length, - flags.includes("u") + { + unicode: flags.includes("u"), + unicodeSets: flags.includes("v") + } ); } catch { diff --git a/node_modules/eslint/lib/rules/no-regex-spaces.js b/node_modules/eslint/lib/rules/no-regex-spaces.js index e7fae6d405..cb25010728 100644 --- a/node_modules/eslint/lib/rules/no-regex-spaces.js +++ b/node_modules/eslint/lib/rules/no-regex-spaces.js @@ -77,7 +77,7 @@ module.exports = { let regExpAST; try { - regExpAST = regExpParser.parsePattern(pattern, 0, pattern.length, flags.includes("u")); + regExpAST = regExpParser.parsePattern(pattern, 0, pattern.length, { unicode: flags.includes("u"), unicodeSets: flags.includes("v") }); } catch { // Ignore regular expressions with syntax errors @@ -155,13 +155,28 @@ module.exports = { const regExpVar = astUtils.getVariableByName(scope, "RegExp"); const shadowed = regExpVar && regExpVar.defs.length > 0; const patternNode = node.arguments[0]; - const flagsNode = node.arguments[1]; if (node.callee.type === "Identifier" && node.callee.name === "RegExp" && isString(patternNode) && !shadowed) { const pattern = patternNode.value; const rawPattern = patternNode.raw.slice(1, -1); const rawPatternStartRange = patternNode.range[0] + 1; - const flags = isString(flagsNode) ? flagsNode.value : ""; + let flags; + + if (node.arguments.length < 2) { + + // It has no flags. + flags = ""; + } else { + const flagsNode = node.arguments[1]; + + if (isString(flagsNode)) { + flags = flagsNode.value; + } else { + + // The flags cannot be determined. + return; + } + } checkRegex( node, diff --git a/node_modules/eslint/lib/rules/no-return-await.js b/node_modules/eslint/lib/rules/no-return-await.js index b5abf14c69..77abda0cad 100644 --- a/node_modules/eslint/lib/rules/no-return-await.js +++ b/node_modules/eslint/lib/rules/no-return-await.js @@ -1,6 +1,7 @@ /** * @fileoverview Disallows unnecessary `return await` * @author Jordan Harband + * @deprecated in ESLint v8.46.0 */ "use strict"; @@ -26,6 +27,10 @@ module.exports = { fixable: null, + deprecated: true, + + replacedBy: [], + schema: [ ], diff --git a/node_modules/eslint/lib/rules/no-useless-backreference.js b/node_modules/eslint/lib/rules/no-useless-backreference.js index c99ac41149..7ca43c8b26 100644 --- a/node_modules/eslint/lib/rules/no-useless-backreference.js +++ b/node_modules/eslint/lib/rules/no-useless-backreference.js @@ -95,7 +95,7 @@ module.exports = { let regExpAST; try { - regExpAST = parser.parsePattern(pattern, 0, pattern.length, flags.includes("u")); + regExpAST = parser.parsePattern(pattern, 0, pattern.length, { unicode: flags.includes("u"), unicodeSets: flags.includes("v") }); } catch { // Ignore regular expressions with syntax errors diff --git a/node_modules/eslint/lib/rules/no-useless-escape.js b/node_modules/eslint/lib/rules/no-useless-escape.js index 71d006b232..0e0f6f09f2 100644 --- a/node_modules/eslint/lib/rules/no-useless-escape.js +++ b/node_modules/eslint/lib/rules/no-useless-escape.js @@ -6,7 +6,12 @@ "use strict"; const astUtils = require("./utils/ast-utils"); +const { RegExpParser, visitRegExpAST } = require("@eslint-community/regexpp"); +/** + * @typedef {import('@eslint-community/regexpp').AST.CharacterClass} CharacterClass + * @typedef {import('@eslint-community/regexpp').AST.ExpressionCharacterClass} ExpressionCharacterClass + */ //------------------------------------------------------------------------------ // Rule Definition //------------------------------------------------------------------------------ @@ -28,55 +33,17 @@ const VALID_STRING_ESCAPES = union(new Set("\\nrvtbfux"), astUtils.LINEBREAKS); const REGEX_GENERAL_ESCAPES = new Set("\\bcdDfnpPrsStvwWxu0123456789]"); const REGEX_NON_CHARCLASS_ESCAPES = union(REGEX_GENERAL_ESCAPES, new Set("^/.$*+?[{}|()Bk")); -/** - * Parses a regular expression into a list of characters with character class info. - * @param {string} regExpText The raw text used to create the regular expression - * @returns {Object[]} A list of characters, each with info on escaping and whether they're in a character class. - * @example - * - * parseRegExp("a\\b[cd-]"); - * - * // returns: - * [ - * { text: "a", index: 0, escaped: false, inCharClass: false, startsCharClass: false, endsCharClass: false }, - * { text: "b", index: 2, escaped: true, inCharClass: false, startsCharClass: false, endsCharClass: false }, - * { text: "c", index: 4, escaped: false, inCharClass: true, startsCharClass: true, endsCharClass: false }, - * { text: "d", index: 5, escaped: false, inCharClass: true, startsCharClass: false, endsCharClass: false }, - * { text: "-", index: 6, escaped: false, inCharClass: true, startsCharClass: false, endsCharClass: false } - * ]; - * +/* + * Set of characters that require escaping in character classes in `unicodeSets` mode. + * ( ) [ ] { } / - \ | are ClassSetSyntaxCharacter */ -function parseRegExp(regExpText) { - const charList = []; +const REGEX_CLASSSET_CHARACTER_ESCAPES = union(REGEX_GENERAL_ESCAPES, new Set("q/[{}|()-")); - regExpText.split("").reduce((state, char, index) => { - if (!state.escapeNextChar) { - if (char === "\\") { - return Object.assign(state, { escapeNextChar: true }); - } - if (char === "[" && !state.inCharClass) { - return Object.assign(state, { inCharClass: true, startingCharClass: true }); - } - if (char === "]" && state.inCharClass) { - if (charList.length && charList[charList.length - 1].inCharClass) { - charList[charList.length - 1].endsCharClass = true; - } - return Object.assign(state, { inCharClass: false, startingCharClass: false }); - } - } - charList.push({ - text: char, - index, - escaped: state.escapeNextChar, - inCharClass: state.inCharClass, - startsCharClass: state.startingCharClass, - endsCharClass: false - }); - return Object.assign(state, { escapeNextChar: false, startingCharClass: false }); - }, { escapeNextChar: false, inCharClass: false, startingCharClass: false }); - - return charList; -} +/* + * A single character set of ClassSetReservedDoublePunctuator. + * && !! ## $$ %% ** ++ ,, .. :: ;; << == >> ?? @@ ^^ `` ~~ are ClassSetReservedDoublePunctuator + */ +const REGEX_CLASS_SET_RESERVED_DOUBLE_PUNCTUATOR = new Set("!#$%&*+,.:;<=>?@^`~"); /** @type {import('../shared/types').Rule} */ module.exports = { @@ -103,15 +70,17 @@ module.exports = { create(context) { const sourceCode = context.sourceCode; + const parser = new RegExpParser(); /** * Reports a node * @param {ASTNode} node The node to report * @param {number} startOffset The backslash's offset from the start of the node * @param {string} character The uselessly escaped character (not including the backslash) + * @param {boolean} [disableEscapeBackslashSuggest] `true` if escapeBackslash suggestion should be turned off. * @returns {void} */ - function report(node, startOffset, character) { + function report(node, startOffset, character, disableEscapeBackslashSuggest) { const rangeStart = node.range[0] + startOffset; const range = [rangeStart, rangeStart + 1]; const start = sourceCode.getLocFromIndex(rangeStart); @@ -134,12 +103,16 @@ module.exports = { return fixer.removeRange(range); } }, - { - messageId: "escapeBackslash", - fix(fixer) { - return fixer.insertTextBeforeRange(range, "\\"); - } - } + ...disableEscapeBackslashSuggest + ? [] + : [ + { + messageId: "escapeBackslash", + fix(fixer) { + return fixer.insertTextBeforeRange(range, "\\"); + } + } + ] ] }); } @@ -182,6 +155,133 @@ module.exports = { } } + /** + * Checks if the escape character in given regexp is unnecessary. + * @private + * @param {ASTNode} node node to validate. + * @returns {void} + */ + function validateRegExp(node) { + const { pattern, flags } = node.regex; + let patternNode; + const unicode = flags.includes("u"); + const unicodeSets = flags.includes("v"); + + try { + patternNode = parser.parsePattern(pattern, 0, pattern.length, { unicode, unicodeSets }); + } catch { + + // Ignore regular expressions with syntax errors + return; + } + + /** @type {(CharacterClass | ExpressionCharacterClass)[]} */ + const characterClassStack = []; + + visitRegExpAST(patternNode, { + onCharacterClassEnter: characterClassNode => characterClassStack.unshift(characterClassNode), + onCharacterClassLeave: () => characterClassStack.shift(), + onExpressionCharacterClassEnter: characterClassNode => characterClassStack.unshift(characterClassNode), + onExpressionCharacterClassLeave: () => characterClassStack.shift(), + onCharacterEnter(characterNode) { + if (!characterNode.raw.startsWith("\\")) { + + // It's not an escaped character. + return; + } + + const escapedChar = characterNode.raw.slice(1); + + if (escapedChar !== String.fromCodePoint(characterNode.value)) { + + // It's a valid escape. + return; + } + let allowedEscapes; + + if (characterClassStack.length) { + allowedEscapes = unicodeSets ? REGEX_CLASSSET_CHARACTER_ESCAPES : REGEX_GENERAL_ESCAPES; + } else { + allowedEscapes = REGEX_NON_CHARCLASS_ESCAPES; + } + if (allowedEscapes.has(escapedChar)) { + return; + } + + const reportedIndex = characterNode.start + 1; + let disableEscapeBackslashSuggest = false; + + if (characterClassStack.length) { + const characterClassNode = characterClassStack[0]; + + if (escapedChar === "^") { + + /* + * The '^' character is also a special case; it must always be escaped outside of character classes, but + * it only needs to be escaped in character classes if it's at the beginning of the character class. To + * account for this, consider it to be a valid escape character outside of character classes, and filter + * out '^' characters that appear at the start of a character class. + */ + if (characterClassNode.start + 1 === characterNode.start) { + + return; + } + } + if (!unicodeSets) { + if (escapedChar === "-") { + + /* + * The '-' character is a special case, because it's only valid to escape it if it's in a character + * class, and is not at either edge of the character class. To account for this, don't consider '-' + * characters to be valid in general, and filter out '-' characters that appear in the middle of a + * character class. + */ + if (characterClassNode.start + 1 !== characterNode.start && characterNode.end !== characterClassNode.end - 1) { + + return; + } + } + } else { // unicodeSets mode + if (REGEX_CLASS_SET_RESERVED_DOUBLE_PUNCTUATOR.has(escapedChar)) { + + // Escaping is valid if it is a ClassSetReservedDoublePunctuator. + if (pattern[characterNode.end] === escapedChar) { + return; + } + if (pattern[characterNode.start - 1] === escapedChar) { + if (escapedChar !== "^") { + return; + } + + // If the previous character is a `negate` caret(`^`), escape to caret is unnecessary. + + if (!characterClassNode.negate) { + return; + } + const negateCaretIndex = characterClassNode.start + 1; + + if (negateCaretIndex < characterNode.start - 1) { + return; + } + } + } + + if (characterNode.parent.type === "ClassIntersection" || characterNode.parent.type === "ClassSubtraction") { + disableEscapeBackslashSuggest = true; + } + } + } + + report( + node, + reportedIndex, + escapedChar, + disableEscapeBackslashSuggest + ); + } + }); + } + /** * Checks if a node has an escape. * @param {ASTNode} node node to check. @@ -220,32 +320,7 @@ module.exports = { validateString(node, match); } } else if (node.regex) { - parseRegExp(node.regex.pattern) - - /* - * The '-' character is a special case, because it's only valid to escape it if it's in a character - * class, and is not at either edge of the character class. To account for this, don't consider '-' - * characters to be valid in general, and filter out '-' characters that appear in the middle of a - * character class. - */ - .filter(charInfo => !(charInfo.text === "-" && charInfo.inCharClass && !charInfo.startsCharClass && !charInfo.endsCharClass)) - - /* - * The '^' character is also a special case; it must always be escaped outside of character classes, but - * it only needs to be escaped in character classes if it's at the beginning of the character class. To - * account for this, consider it to be a valid escape character outside of character classes, and filter - * out '^' characters that appear at the start of a character class. - */ - .filter(charInfo => !(charInfo.text === "^" && charInfo.startsCharClass)) - - // Filter out characters that aren't escaped. - .filter(charInfo => charInfo.escaped) - - // Filter out characters that are valid to escape, based on their position in the regular expression. - .filter(charInfo => !(charInfo.inCharClass ? REGEX_GENERAL_ESCAPES : REGEX_NON_CHARCLASS_ESCAPES).has(charInfo.text)) - - // Report all the remaining characters. - .forEach(charInfo => report(node, charInfo.index, charInfo.text)); + validateRegExp(node); } } diff --git a/node_modules/eslint/lib/rules/prefer-named-capture-group.js b/node_modules/eslint/lib/rules/prefer-named-capture-group.js index 8fb68de179..a82ee1f783 100644 --- a/node_modules/eslint/lib/rules/prefer-named-capture-group.js +++ b/node_modules/eslint/lib/rules/prefer-named-capture-group.js @@ -112,14 +112,17 @@ module.exports = { * @param {string} pattern The regular expression pattern to be checked. * @param {ASTNode} node AST node which contains the regular expression or a call/new expression. * @param {ASTNode} regexNode AST node which contains the regular expression. - * @param {boolean} uFlag Flag indicates whether unicode mode is enabled or not. + * @param {string|null} flags The regular expression flags to be checked. * @returns {void} */ - function checkRegex(pattern, node, regexNode, uFlag) { + function checkRegex(pattern, node, regexNode, flags) { let ast; try { - ast = parser.parsePattern(pattern, 0, pattern.length, uFlag); + ast = parser.parsePattern(pattern, 0, pattern.length, { + unicode: Boolean(flags && flags.includes("u")), + unicodeSets: Boolean(flags && flags.includes("v")) + }); } catch { // ignore regex syntax errors @@ -148,7 +151,7 @@ module.exports = { return { Literal(node) { if (node.regex) { - checkRegex(node.regex.pattern, node, node, node.regex.flags.includes("u")); + checkRegex(node.regex.pattern, node, node, node.regex.flags); } }, Program(node) { @@ -166,7 +169,7 @@ module.exports = { const flags = getStringIfConstant(refNode.arguments[1]); if (regex) { - checkRegex(regex, refNode, refNode.arguments[0], flags && flags.includes("u")); + checkRegex(regex, refNode, refNode.arguments[0], flags); } } } diff --git a/node_modules/eslint/lib/rules/prefer-regex-literals.js b/node_modules/eslint/lib/rules/prefer-regex-literals.js index eca805483f..ffaaeac3f2 100644 --- a/node_modules/eslint/lib/rules/prefer-regex-literals.js +++ b/node_modules/eslint/lib/rules/prefer-regex-literals.js @@ -241,7 +241,7 @@ module.exports = { /** * Returns a ecmaVersion compatible for regexpp. * @param {number} ecmaVersion The ecmaVersion to convert. - * @returns {import("regexpp/ecma-versions").EcmaVersion} The resulting ecmaVersion compatible for regexpp. + * @returns {import("@eslint-community/regexpp/ecma-versions").EcmaVersion} The resulting ecmaVersion compatible for regexpp. */ function getRegexppEcmaVersion(ecmaVersion) { if (ecmaVersion <= 5) { @@ -297,7 +297,10 @@ module.exports = { const validator = new RegExpValidator({ ecmaVersion: regexppEcmaVersion }); try { - validator.validatePattern(pattern, 0, pattern.length, flags ? flags.includes("u") : false); + validator.validatePattern(pattern, 0, pattern.length, { + unicode: flags ? flags.includes("u") : false, + unicodeSets: flags ? flags.includes("v") : false + }); if (flags) { validator.validateFlags(flags); } @@ -461,7 +464,10 @@ module.exports = { if (regexContent && !noFix) { let charIncrease = 0; - const ast = new RegExpParser({ ecmaVersion: regexppEcmaVersion }).parsePattern(regexContent, 0, regexContent.length, flags ? flags.includes("u") : false); + const ast = new RegExpParser({ ecmaVersion: regexppEcmaVersion }).parsePattern(regexContent, 0, regexContent.length, { + unicode: flags ? flags.includes("u") : false, + unicodeSets: flags ? flags.includes("v") : false + }); visitRegExpAST(ast, { onCharacterEnter(characterNode) { diff --git a/node_modules/eslint/lib/rules/require-unicode-regexp.js b/node_modules/eslint/lib/rules/require-unicode-regexp.js index f748753a2d..dd687f8d79 100644 --- a/node_modules/eslint/lib/rules/require-unicode-regexp.js +++ b/node_modules/eslint/lib/rules/require-unicode-regexp.js @@ -28,7 +28,7 @@ module.exports = { type: "suggestion", docs: { - description: "Enforce the use of `u` flag on RegExp", + description: "Enforce the use of `u` or `v` flag on RegExp", recommended: false, url: "https://eslint.org/docs/latest/rules/require-unicode-regexp" }, @@ -51,7 +51,7 @@ module.exports = { "Literal[regex]"(node) { const flags = node.regex.flags || ""; - if (!flags.includes("u")) { + if (!flags.includes("u") && !flags.includes("v")) { context.report({ messageId: "requireUFlag", node, @@ -85,7 +85,7 @@ module.exports = { const pattern = getStringIfConstant(patternNode, scope); const flags = getStringIfConstant(flagsNode, scope); - if (!flagsNode || (typeof flags === "string" && !flags.includes("u"))) { + if (!flagsNode || (typeof flags === "string" && !flags.includes("u") && !flags.includes("v"))) { context.report({ messageId: "requireUFlag", node: refNode, diff --git a/node_modules/eslint/lib/rules/utils/regular-expressions.js b/node_modules/eslint/lib/rules/utils/regular-expressions.js index 234a1cb8b1..12e544e379 100644 --- a/node_modules/eslint/lib/rules/utils/regular-expressions.js +++ b/node_modules/eslint/lib/rules/utils/regular-expressions.js @@ -8,7 +8,7 @@ const { RegExpValidator } = require("@eslint-community/regexpp"); -const REGEXPP_LATEST_ECMA_VERSION = 2022; +const REGEXPP_LATEST_ECMA_VERSION = 2024; /** * Checks if the given regular expression pattern would be valid with the `u` flag. @@ -28,7 +28,7 @@ function isValidWithUnicodeFlag(ecmaVersion, pattern) { }); try { - validator.validatePattern(pattern, void 0, void 0, /* uFlag = */ true); + validator.validatePattern(pattern, void 0, void 0, { unicode: /* uFlag = */ true }); } catch { return false; } diff --git a/node_modules/eslint/messages/eslintrc-incompat.js b/node_modules/eslint/messages/eslintrc-incompat.js new file mode 100644 index 0000000000..deffca57c5 --- /dev/null +++ b/node_modules/eslint/messages/eslintrc-incompat.js @@ -0,0 +1,98 @@ +"use strict"; + +/* eslint consistent-return: 0 -- no default case */ + +const messages = { + + env: ` +A config object is using the "env" key, which is not supported in flat config system. + +Flat config uses "languageOptions.globals" to define global variables for your files. + +Please see the following page for information on how to convert your config object into the correct format: +https://eslint.org/docs/latest/use/configure/migration-guide#configuring-language-options +`, + + extends: ` +A config object is using the "extends" key, which is not supported in flat config system. + +Instead of "extends", you can include config objects that you'd like to extend from directly in the flat config array. + +Please see the following page for more information: +https://eslint.org/docs/latest/use/configure/migration-guide#predefined-configs +`, + + globals: ` +A config object is using the "globals" key, which is not supported in flat config system. + +Flat config uses "languageOptions.globals" to define global variables for your files. + +Please see the following page for information on how to convert your config object into the correct format: +https://eslint.org/docs/latest/use/configure/migration-guide#configuring-language-options +`, + + ignorePatterns: ` +A config object is using the "ignorePatterns" key, which is not supported in flat config system. + +Flat config uses "ignores" to specify files to ignore. + +Please see the following page for information on how to convert your config object into the correct format: +https://eslint.org/docs/latest/use/configure/migration-guide#ignoring-files +`, + + noInlineConfig: ` +A config object is using the "noInlineConfig" key, which is not supported in flat config system. + +Flat config uses "linterOptions.noInlineConfig" to specify files to ignore. + +Please see the following page for information on how to convert your config object into the correct format: +https://eslint.org/docs/latest/use/configure/migration-guide#linter-options +`, + + overrides: ` +A config object is using the "overrides" key, which is not supported in flat config system. + +Flat config is an array that acts like the eslintrc "overrides" array. + +Please see the following page for information on how to convert your config object into the correct format: +https://eslint.org/docs/latest/use/configure/migration-guide#glob-based-configs +`, + + parser: ` +A config object is using the "parser" key, which is not supported in flat config system. + +Flat config uses "languageOptions.parser" to override the default parser. + +Please see the following page for information on how to convert your config object into the correct format: +https://eslint.org/docs/latest/use/configure/migration-guide#custom-parsers +`, + + parserOptions: ` +A config object is using the "parserOptions" key, which is not supported in flat config system. + +Flat config uses "languageOptions.parserOptions" to specify parser options. + +Please see the following page for information on how to convert your config object into the correct format: +https://eslint.org/docs/latest/use/configure/migration-guide#configuring-language-options +`, + + reportUnusedDisableDirectives: ` +A config object is using the "reportUnusedDisableDirectives" key, which is not supported in flat config system. + +Flat config uses "linterOptions.reportUnusedDisableDirectives" to specify files to ignore. + +Please see the following page for information on how to convert your config object into the correct format: +https://eslint.org/docs/latest/use/configure/migration-guide#linter-options +`, + + root: ` +A config object is using the "root" key, which is not supported in flat config system. + +Flat configs always act as if they are the root config file, so this key can be safely removed. +` +}; + +module.exports = function({ key }) { + + return messages[key].trim(); +}; diff --git a/node_modules/eslint/messages/eslintrc-plugins.js b/node_modules/eslint/messages/eslintrc-plugins.js new file mode 100644 index 0000000000..bb708c95b0 --- /dev/null +++ b/node_modules/eslint/messages/eslintrc-plugins.js @@ -0,0 +1,24 @@ +"use strict"; + +module.exports = function({ plugins }) { + + const isArrayOfStrings = typeof plugins[0] === "string"; + + return ` +A config object has a "plugins" key defined as an array${isArrayOfStrings ? " of strings" : ""}. + +Flat config requires "plugins" to be an object in this form: + + { + plugins: { + ${isArrayOfStrings && plugins[0] ? plugins[0] : "namespace"}: pluginObject + } + } + +Please see the following page for information on how to convert your config object into the correct format: +https://eslint.org/docs/latest/use/configure/migration-guide#importing-plugins-and-custom-parsers + +If you're using a shareable config that you cannot rewrite in flat config format, then use the compatibility utility: +https://eslint.org/docs/latest/use/configure/migration-guide#using-eslintrc-configs-in-flat-config +`; +}; diff --git a/node_modules/eslint/package.json b/node_modules/eslint/package.json index 80545e2cdb..ece696efe4 100644 --- a/node_modules/eslint/package.json +++ b/node_modules/eslint/package.json @@ -1,6 +1,6 @@ { "name": "eslint", - "version": "8.45.0", + "version": "8.46.0", "author": "Nicholas C. Zakas ", "description": "An AST-based pattern checker for JavaScript.", "bin": { @@ -61,21 +61,21 @@ "bugs": "https://github.com/eslint/eslint/issues/", "dependencies": { "@eslint-community/eslint-utils": "^4.2.0", - "@eslint-community/regexpp": "^4.4.0", - "@eslint/eslintrc": "^2.1.0", - "@eslint/js": "8.44.0", + "@eslint-community/regexpp": "^4.6.1", + "@eslint/eslintrc": "^2.1.1", + "@eslint/js": "^8.46.0", "@humanwhocodes/config-array": "^0.11.10", "@humanwhocodes/module-importer": "^1.0.1", "@nodelib/fs.walk": "^1.2.8", - "ajv": "^6.10.0", + "ajv": "^6.12.4", "chalk": "^4.0.0", "cross-spawn": "^7.0.2", "debug": "^4.3.2", "doctrine": "^3.0.0", "escape-string-regexp": "^4.0.0", - "eslint-scope": "^7.2.0", - "eslint-visitor-keys": "^3.4.1", - "espree": "^9.6.0", + "eslint-scope": "^7.2.2", + "eslint-visitor-keys": "^3.4.2", + "espree": "^9.6.1", "esquery": "^1.4.2", "esutils": "^2.0.2", "fast-deep-equal": "^3.1.3", diff --git a/node_modules/espree/dist/espree.cjs b/node_modules/espree/dist/espree.cjs index d8a253ffce..3fa2870d23 100644 --- a/node_modules/espree/dist/espree.cjs +++ b/node_modules/espree/dist/espree.cjs @@ -34,7 +34,6 @@ var visitorKeys__namespace = /*#__PURE__*/_interopNamespace(visitorKeys); * @fileoverview Translates tokens between Acorn format and Esprima format. * @author Nicholas C. Zakas */ -/* eslint no-underscore-dangle: 0 */ //------------------------------------------------------------------------------ // Requirements @@ -212,8 +211,7 @@ TokenTranslator.prototype = { */ onToken(token, extra) { - const that = this, - tt = this._acornTokTypes, + const tt = this._acornTokTypes, tokens = extra.tokens, templateTokens = this._tokens; @@ -223,10 +221,10 @@ TokenTranslator.prototype = { * @returns {void} * @private */ - function translateTemplateTokens() { - tokens.push(convertTemplatePart(that._tokens, that._code)); - that._tokens = []; - } + const translateTemplateTokens = () => { + tokens.push(convertTemplatePart(this._tokens, this._code)); + this._tokens = []; + }; if (token.type === tt.eof) { @@ -414,7 +412,7 @@ function normalizeOptions(options) { }); } -/* eslint-disable no-param-reassign*/ +/* eslint no-param-reassign: 0 -- stylistic choice */ const STATE = Symbol("espree's internal state"); @@ -523,7 +521,7 @@ var espree = () => Parser => { allowReturnOutsideFunction: options.allowReturnOutsideFunction, // Collect tokens - onToken: token => { + onToken(token) { if (tokenTranslator) { // Use `tokens`, `ecmaVersion`, and `jsxAttrValueToken` in the state. @@ -535,7 +533,7 @@ var espree = () => Parser => { }, // Collect comments - onComment: (block, text, start, end, startLoc, endLoc) => { + onComment(block, text, start, end, startLoc, endLoc) { if (state.comments) { const comment = convertAcornCommentToEsprimaComment(block, text, start, end, startLoc, endLoc, code); @@ -728,7 +726,7 @@ var espree = () => Parser => { * on extra so that when tokens are converted, the next token will be switched * to JSXText via onToken. */ - jsx_readString(quote) { // eslint-disable-line camelcase + jsx_readString(quote) { // eslint-disable-line camelcase -- required by API const result = super.jsx_readString(quote); if (this.type === tokTypes.string) { @@ -761,64 +759,9 @@ var espree = () => Parser => { }; }; -const version$1 = "9.6.0"; +const version$1 = "9.6.1"; -/** - * @fileoverview Main Espree file that converts Acorn into Esprima output. - * - * This file contains code from the following MIT-licensed projects: - * 1. Acorn - * 2. Babylon - * 3. Babel-ESLint - * - * This file also contains code from Esprima, which is BSD licensed. - * - * Acorn is Copyright 2012-2015 Acorn Contributors (https://github.com/marijnh/acorn/blob/master/AUTHORS) - * Babylon is Copyright 2014-2015 various contributors (https://github.com/babel/babel/blob/master/packages/babylon/AUTHORS) - * Babel-ESLint is Copyright 2014-2015 Sebastian McKenzie - * - * Redistribution and use in source and binary forms, with or without - * modification, are permitted provided that the following conditions are met: - * - * * Redistributions of source code must retain the above copyright - * notice, this list of conditions and the following disclaimer. - * * Redistributions in binary form must reproduce the above copyright - * notice, this list of conditions and the following disclaimer in the - * documentation and/or other materials provided with the distribution. - * - * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" - * AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE - * IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE - * ARE DISCLAIMED. IN NO EVENT SHALL BE LIABLE FOR ANY - * DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES - * (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; - * LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND - * ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT - * (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF - * THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. - * - * Esprima is Copyright (c) jQuery Foundation, Inc. and Contributors, All Rights Reserved. - * - * Redistribution and use in source and binary forms, with or without - * modification, are permitted provided that the following conditions are met: - * - * * Redistributions of source code must retain the above copyright - * notice, this list of conditions and the following disclaimer. - * * Redistributions in binary form must reproduce the above copyright - * notice, this list of conditions and the following disclaimer in the - * documentation and/or other materials provided with the distribution. - * - * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" - * AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE - * IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE - * ARE DISCLAIMED. IN NO EVENT SHALL BE LIABLE FOR ANY - * DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES - * (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; - * LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND - * ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT - * (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF - * THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. - */ +/* eslint-disable jsdoc/no-multi-asterisks -- needed to preserve original formatting of licences */ // To initialize lazily. @@ -868,7 +811,7 @@ function tokenize(code, options) { // Ensure to collect tokens. if (!options || options.tokens !== true) { - options = Object.assign({}, options, { tokens: true }); // eslint-disable-line no-param-reassign + options = Object.assign({}, options, { tokens: true }); // eslint-disable-line no-param-reassign -- stylistic choice } return new Parser(options, code).tokenize(); diff --git a/node_modules/espree/espree.js b/node_modules/espree/espree.js index 97bda4bd11..e9b111885f 100644 --- a/node_modules/espree/espree.js +++ b/node_modules/espree/espree.js @@ -1,3 +1,5 @@ +/* eslint-disable jsdoc/no-multi-asterisks -- needed to preserve original formatting of licences */ + /** * @fileoverview Main Espree file that converts Acorn into Esprima output. * @@ -54,7 +56,8 @@ * (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF * THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. */ -/* eslint no-undefined:0, no-use-before-define: 0 */ + +/* eslint-enable jsdoc/no-multi-asterisks -- needed to preserve original formatting of licences */ import * as acorn from "acorn"; import jsx from "acorn-jsx"; @@ -111,7 +114,7 @@ export function tokenize(code, options) { // Ensure to collect tokens. if (!options || options.tokens !== true) { - options = Object.assign({}, options, { tokens: true }); // eslint-disable-line no-param-reassign + options = Object.assign({}, options, { tokens: true }); // eslint-disable-line no-param-reassign -- stylistic choice } return new Parser(options, code).tokenize(); diff --git a/node_modules/espree/lib/espree.js b/node_modules/espree/lib/espree.js index 262dd276a2..2be1b56d30 100644 --- a/node_modules/espree/lib/espree.js +++ b/node_modules/espree/lib/espree.js @@ -1,4 +1,5 @@ -/* eslint-disable no-param-reassign*/ +/* eslint no-param-reassign: 0 -- stylistic choice */ + import TokenTranslator from "./token-translator.js"; import { normalizeOptions } from "./options.js"; @@ -109,7 +110,7 @@ export default () => Parser => { allowReturnOutsideFunction: options.allowReturnOutsideFunction, // Collect tokens - onToken: token => { + onToken(token) { if (tokenTranslator) { // Use `tokens`, `ecmaVersion`, and `jsxAttrValueToken` in the state. @@ -121,7 +122,7 @@ export default () => Parser => { }, // Collect comments - onComment: (block, text, start, end, startLoc, endLoc) => { + onComment(block, text, start, end, startLoc, endLoc) { if (state.comments) { const comment = convertAcornCommentToEsprimaComment(block, text, start, end, startLoc, endLoc, code); @@ -314,7 +315,7 @@ export default () => Parser => { * on extra so that when tokens are converted, the next token will be switched * to JSXText via onToken. */ - jsx_readString(quote) { // eslint-disable-line camelcase + jsx_readString(quote) { // eslint-disable-line camelcase -- required by API const result = super.jsx_readString(quote); if (this.type === tokTypes.string) { diff --git a/node_modules/espree/lib/token-translator.js b/node_modules/espree/lib/token-translator.js index 9aa5e22eef..2a915fb5c9 100644 --- a/node_modules/espree/lib/token-translator.js +++ b/node_modules/espree/lib/token-translator.js @@ -2,7 +2,6 @@ * @fileoverview Translates tokens between Acorn format and Esprima format. * @author Nicholas C. Zakas */ -/* eslint no-underscore-dangle: 0 */ //------------------------------------------------------------------------------ // Requirements @@ -180,8 +179,7 @@ TokenTranslator.prototype = { */ onToken(token, extra) { - const that = this, - tt = this._acornTokTypes, + const tt = this._acornTokTypes, tokens = extra.tokens, templateTokens = this._tokens; @@ -191,10 +189,10 @@ TokenTranslator.prototype = { * @returns {void} * @private */ - function translateTemplateTokens() { - tokens.push(convertTemplatePart(that._tokens, that._code)); - that._tokens = []; - } + const translateTemplateTokens = () => { + tokens.push(convertTemplatePart(this._tokens, this._code)); + this._tokens = []; + }; if (token.type === tt.eof) { diff --git a/node_modules/espree/lib/version.js b/node_modules/espree/lib/version.js index 03942ba42e..dc73f77151 100644 --- a/node_modules/espree/lib/version.js +++ b/node_modules/espree/lib/version.js @@ -1,3 +1,3 @@ -const version = "9.6.0"; +const version = "9.6.1"; export default version; diff --git a/node_modules/espree/package.json b/node_modules/espree/package.json index 943fb59da5..12c8d0b11b 100644 --- a/node_modules/espree/package.json +++ b/node_modules/espree/package.json @@ -16,7 +16,7 @@ ], "./package.json": "./package.json" }, - "version": "9.6.0", + "version": "9.6.1", "files": [ "lib", "dist/espree.cjs", @@ -42,12 +42,12 @@ "@rollup/plugin-node-resolve": "^11.2.0", "c8": "^7.11.0", "chai": "^4.3.6", - "eslint": "^8.13.0", - "eslint-config-eslint": "^7.0.0", - "eslint-plugin-jsdoc": "^39.2.4", - "eslint-plugin-node": "^11.1.0", + "eslint": "^8.44.0", + "eslint-config-eslint": "^8.0.0", + "eslint-plugin-n": "^16.0.0", "eslint-release": "^3.2.0", "esprima-fb": "^8001.2001.0-dev-harmony-fb", + "globals": "^13.20.0", "lint-staged": "^13.2.0", "mocha": "^9.2.2", "npm-run-all": "^4.1.5", @@ -71,7 +71,7 @@ "unit:esm": "c8 mocha --color --reporter progress --timeout 30000 'tests/lib/**/*.js'", "unit:cjs": "mocha --color --reporter progress --timeout 30000 tests/lib/commonjs.cjs", "test": "npm-run-all -p unit lint", - "lint": "eslint .", + "lint": "eslint . --report-unused-disable-directives", "fixlint": "npm run lint -- --fix", "build": "rollup -c rollup.config.js", "build:debug": "npm run build -- -m", diff --git a/node_modules/esquery/node_modules/estraverse/.jshintrc b/node_modules/esquery/node_modules/estraverse/.jshintrc deleted file mode 100644 index f642dae768..0000000000 --- a/node_modules/esquery/node_modules/estraverse/.jshintrc +++ /dev/null @@ -1,16 +0,0 @@ -{ - "curly": true, - "eqeqeq": true, - "immed": true, - "eqnull": true, - "latedef": true, - "noarg": true, - "noempty": true, - "quotmark": "single", - "undef": true, - "unused": true, - "strict": true, - "trailing": true, - - "node": true -} diff --git a/node_modules/esquery/node_modules/estraverse/LICENSE.BSD b/node_modules/esquery/node_modules/estraverse/LICENSE.BSD deleted file mode 100644 index 3e580c355a..0000000000 --- a/node_modules/esquery/node_modules/estraverse/LICENSE.BSD +++ /dev/null @@ -1,19 +0,0 @@ -Redistribution and use in source and binary forms, with or without -modification, are permitted provided that the following conditions are met: - - * Redistributions of source code must retain the above copyright - notice, this list of conditions and the following disclaimer. - * Redistributions in binary form must reproduce the above copyright - notice, this list of conditions and the following disclaimer in the - documentation and/or other materials provided with the distribution. - -THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" -AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE -IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE -ARE DISCLAIMED. IN NO EVENT SHALL BE LIABLE FOR ANY -DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES -(INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; -LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND -ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT -(INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF -THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. diff --git a/node_modules/esquery/node_modules/estraverse/README.md b/node_modules/esquery/node_modules/estraverse/README.md deleted file mode 100644 index ccd3377f3e..0000000000 --- a/node_modules/esquery/node_modules/estraverse/README.md +++ /dev/null @@ -1,153 +0,0 @@ -### Estraverse [![Build Status](https://secure.travis-ci.org/estools/estraverse.svg)](http://travis-ci.org/estools/estraverse) - -Estraverse ([estraverse](http://github.com/estools/estraverse)) is -[ECMAScript](http://www.ecma-international.org/publications/standards/Ecma-262.htm) -traversal functions from [esmangle project](http://github.com/estools/esmangle). - -### Documentation - -You can find usage docs at [wiki page](https://github.com/estools/estraverse/wiki/Usage). - -### Example Usage - -The following code will output all variables declared at the root of a file. - -```javascript -estraverse.traverse(ast, { - enter: function (node, parent) { - if (node.type == 'FunctionExpression' || node.type == 'FunctionDeclaration') - return estraverse.VisitorOption.Skip; - }, - leave: function (node, parent) { - if (node.type == 'VariableDeclarator') - console.log(node.id.name); - } -}); -``` - -We can use `this.skip`, `this.remove` and `this.break` functions instead of using Skip, Remove and Break. - -```javascript -estraverse.traverse(ast, { - enter: function (node) { - this.break(); - } -}); -``` - -And estraverse provides `estraverse.replace` function. When returning node from `enter`/`leave`, current node is replaced with it. - -```javascript -result = estraverse.replace(tree, { - enter: function (node) { - // Replace it with replaced. - if (node.type === 'Literal') - return replaced; - } -}); -``` - -By passing `visitor.keys` mapping, we can extend estraverse traversing functionality. - -```javascript -// This tree contains a user-defined `TestExpression` node. -var tree = { - type: 'TestExpression', - - // This 'argument' is the property containing the other **node**. - argument: { - type: 'Literal', - value: 20 - }, - - // This 'extended' is the property not containing the other **node**. - extended: true -}; -estraverse.traverse(tree, { - enter: function (node) { }, - - // Extending the existing traversing rules. - keys: { - // TargetNodeName: [ 'keys', 'containing', 'the', 'other', '**node**' ] - TestExpression: ['argument'] - } -}); -``` - -By passing `visitor.fallback` option, we can control the behavior when encountering unknown nodes. - -```javascript -// This tree contains a user-defined `TestExpression` node. -var tree = { - type: 'TestExpression', - - // This 'argument' is the property containing the other **node**. - argument: { - type: 'Literal', - value: 20 - }, - - // This 'extended' is the property not containing the other **node**. - extended: true -}; -estraverse.traverse(tree, { - enter: function (node) { }, - - // Iterating the child **nodes** of unknown nodes. - fallback: 'iteration' -}); -``` - -When `visitor.fallback` is a function, we can determine which keys to visit on each node. - -```javascript -// This tree contains a user-defined `TestExpression` node. -var tree = { - type: 'TestExpression', - - // This 'argument' is the property containing the other **node**. - argument: { - type: 'Literal', - value: 20 - }, - - // This 'extended' is the property not containing the other **node**. - extended: true -}; -estraverse.traverse(tree, { - enter: function (node) { }, - - // Skip the `argument` property of each node - fallback: function(node) { - return Object.keys(node).filter(function(key) { - return key !== 'argument'; - }); - } -}); -``` - -### License - -Copyright (C) 2012-2016 [Yusuke Suzuki](http://github.com/Constellation) - (twitter: [@Constellation](http://twitter.com/Constellation)) and other contributors. - -Redistribution and use in source and binary forms, with or without -modification, are permitted provided that the following conditions are met: - - * Redistributions of source code must retain the above copyright - notice, this list of conditions and the following disclaimer. - - * Redistributions in binary form must reproduce the above copyright - notice, this list of conditions and the following disclaimer in the - documentation and/or other materials provided with the distribution. - -THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" -AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE -IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE -ARE DISCLAIMED. IN NO EVENT SHALL BE LIABLE FOR ANY -DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES -(INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; -LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND -ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT -(INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF -THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. diff --git a/node_modules/esquery/node_modules/estraverse/estraverse.js b/node_modules/esquery/node_modules/estraverse/estraverse.js deleted file mode 100644 index f0d9af9b46..0000000000 --- a/node_modules/esquery/node_modules/estraverse/estraverse.js +++ /dev/null @@ -1,805 +0,0 @@ -/* - Copyright (C) 2012-2013 Yusuke Suzuki - Copyright (C) 2012 Ariya Hidayat - - Redistribution and use in source and binary forms, with or without - modification, are permitted provided that the following conditions are met: - - * Redistributions of source code must retain the above copyright - notice, this list of conditions and the following disclaimer. - * Redistributions in binary form must reproduce the above copyright - notice, this list of conditions and the following disclaimer in the - documentation and/or other materials provided with the distribution. - - THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" - AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE - IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE - ARE DISCLAIMED. IN NO EVENT SHALL BE LIABLE FOR ANY - DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES - (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; - LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND - ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT - (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF - THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. -*/ -/*jslint vars:false, bitwise:true*/ -/*jshint indent:4*/ -/*global exports:true*/ -(function clone(exports) { - 'use strict'; - - var Syntax, - VisitorOption, - VisitorKeys, - BREAK, - SKIP, - REMOVE; - - function deepCopy(obj) { - var ret = {}, key, val; - for (key in obj) { - if (obj.hasOwnProperty(key)) { - val = obj[key]; - if (typeof val === 'object' && val !== null) { - ret[key] = deepCopy(val); - } else { - ret[key] = val; - } - } - } - return ret; - } - - // based on LLVM libc++ upper_bound / lower_bound - // MIT License - - function upperBound(array, func) { - var diff, len, i, current; - - len = array.length; - i = 0; - - while (len) { - diff = len >>> 1; - current = i + diff; - if (func(array[current])) { - len = diff; - } else { - i = current + 1; - len -= diff + 1; - } - } - return i; - } - - Syntax = { - AssignmentExpression: 'AssignmentExpression', - AssignmentPattern: 'AssignmentPattern', - ArrayExpression: 'ArrayExpression', - ArrayPattern: 'ArrayPattern', - ArrowFunctionExpression: 'ArrowFunctionExpression', - AwaitExpression: 'AwaitExpression', // CAUTION: It's deferred to ES7. - BlockStatement: 'BlockStatement', - BinaryExpression: 'BinaryExpression', - BreakStatement: 'BreakStatement', - CallExpression: 'CallExpression', - CatchClause: 'CatchClause', - ChainExpression: 'ChainExpression', - ClassBody: 'ClassBody', - ClassDeclaration: 'ClassDeclaration', - ClassExpression: 'ClassExpression', - ComprehensionBlock: 'ComprehensionBlock', // CAUTION: It's deferred to ES7. - ComprehensionExpression: 'ComprehensionExpression', // CAUTION: It's deferred to ES7. - ConditionalExpression: 'ConditionalExpression', - ContinueStatement: 'ContinueStatement', - DebuggerStatement: 'DebuggerStatement', - DirectiveStatement: 'DirectiveStatement', - DoWhileStatement: 'DoWhileStatement', - EmptyStatement: 'EmptyStatement', - ExportAllDeclaration: 'ExportAllDeclaration', - ExportDefaultDeclaration: 'ExportDefaultDeclaration', - ExportNamedDeclaration: 'ExportNamedDeclaration', - ExportSpecifier: 'ExportSpecifier', - ExpressionStatement: 'ExpressionStatement', - ForStatement: 'ForStatement', - ForInStatement: 'ForInStatement', - ForOfStatement: 'ForOfStatement', - FunctionDeclaration: 'FunctionDeclaration', - FunctionExpression: 'FunctionExpression', - GeneratorExpression: 'GeneratorExpression', // CAUTION: It's deferred to ES7. - Identifier: 'Identifier', - IfStatement: 'IfStatement', - ImportExpression: 'ImportExpression', - ImportDeclaration: 'ImportDeclaration', - ImportDefaultSpecifier: 'ImportDefaultSpecifier', - ImportNamespaceSpecifier: 'ImportNamespaceSpecifier', - ImportSpecifier: 'ImportSpecifier', - Literal: 'Literal', - LabeledStatement: 'LabeledStatement', - LogicalExpression: 'LogicalExpression', - MemberExpression: 'MemberExpression', - MetaProperty: 'MetaProperty', - MethodDefinition: 'MethodDefinition', - ModuleSpecifier: 'ModuleSpecifier', - NewExpression: 'NewExpression', - ObjectExpression: 'ObjectExpression', - ObjectPattern: 'ObjectPattern', - PrivateIdentifier: 'PrivateIdentifier', - Program: 'Program', - Property: 'Property', - PropertyDefinition: 'PropertyDefinition', - RestElement: 'RestElement', - ReturnStatement: 'ReturnStatement', - SequenceExpression: 'SequenceExpression', - SpreadElement: 'SpreadElement', - Super: 'Super', - SwitchStatement: 'SwitchStatement', - SwitchCase: 'SwitchCase', - TaggedTemplateExpression: 'TaggedTemplateExpression', - TemplateElement: 'TemplateElement', - TemplateLiteral: 'TemplateLiteral', - ThisExpression: 'ThisExpression', - ThrowStatement: 'ThrowStatement', - TryStatement: 'TryStatement', - UnaryExpression: 'UnaryExpression', - UpdateExpression: 'UpdateExpression', - VariableDeclaration: 'VariableDeclaration', - VariableDeclarator: 'VariableDeclarator', - WhileStatement: 'WhileStatement', - WithStatement: 'WithStatement', - YieldExpression: 'YieldExpression' - }; - - VisitorKeys = { - AssignmentExpression: ['left', 'right'], - AssignmentPattern: ['left', 'right'], - ArrayExpression: ['elements'], - ArrayPattern: ['elements'], - ArrowFunctionExpression: ['params', 'body'], - AwaitExpression: ['argument'], // CAUTION: It's deferred to ES7. - BlockStatement: ['body'], - BinaryExpression: ['left', 'right'], - BreakStatement: ['label'], - CallExpression: ['callee', 'arguments'], - CatchClause: ['param', 'body'], - ChainExpression: ['expression'], - ClassBody: ['body'], - ClassDeclaration: ['id', 'superClass', 'body'], - ClassExpression: ['id', 'superClass', 'body'], - ComprehensionBlock: ['left', 'right'], // CAUTION: It's deferred to ES7. - ComprehensionExpression: ['blocks', 'filter', 'body'], // CAUTION: It's deferred to ES7. - ConditionalExpression: ['test', 'consequent', 'alternate'], - ContinueStatement: ['label'], - DebuggerStatement: [], - DirectiveStatement: [], - DoWhileStatement: ['body', 'test'], - EmptyStatement: [], - ExportAllDeclaration: ['source'], - ExportDefaultDeclaration: ['declaration'], - ExportNamedDeclaration: ['declaration', 'specifiers', 'source'], - ExportSpecifier: ['exported', 'local'], - ExpressionStatement: ['expression'], - ForStatement: ['init', 'test', 'update', 'body'], - ForInStatement: ['left', 'right', 'body'], - ForOfStatement: ['left', 'right', 'body'], - FunctionDeclaration: ['id', 'params', 'body'], - FunctionExpression: ['id', 'params', 'body'], - GeneratorExpression: ['blocks', 'filter', 'body'], // CAUTION: It's deferred to ES7. - Identifier: [], - IfStatement: ['test', 'consequent', 'alternate'], - ImportExpression: ['source'], - ImportDeclaration: ['specifiers', 'source'], - ImportDefaultSpecifier: ['local'], - ImportNamespaceSpecifier: ['local'], - ImportSpecifier: ['imported', 'local'], - Literal: [], - LabeledStatement: ['label', 'body'], - LogicalExpression: ['left', 'right'], - MemberExpression: ['object', 'property'], - MetaProperty: ['meta', 'property'], - MethodDefinition: ['key', 'value'], - ModuleSpecifier: [], - NewExpression: ['callee', 'arguments'], - ObjectExpression: ['properties'], - ObjectPattern: ['properties'], - PrivateIdentifier: [], - Program: ['body'], - Property: ['key', 'value'], - PropertyDefinition: ['key', 'value'], - RestElement: [ 'argument' ], - ReturnStatement: ['argument'], - SequenceExpression: ['expressions'], - SpreadElement: ['argument'], - Super: [], - SwitchStatement: ['discriminant', 'cases'], - SwitchCase: ['test', 'consequent'], - TaggedTemplateExpression: ['tag', 'quasi'], - TemplateElement: [], - TemplateLiteral: ['quasis', 'expressions'], - ThisExpression: [], - ThrowStatement: ['argument'], - TryStatement: ['block', 'handler', 'finalizer'], - UnaryExpression: ['argument'], - UpdateExpression: ['argument'], - VariableDeclaration: ['declarations'], - VariableDeclarator: ['id', 'init'], - WhileStatement: ['test', 'body'], - WithStatement: ['object', 'body'], - YieldExpression: ['argument'] - }; - - // unique id - BREAK = {}; - SKIP = {}; - REMOVE = {}; - - VisitorOption = { - Break: BREAK, - Skip: SKIP, - Remove: REMOVE - }; - - function Reference(parent, key) { - this.parent = parent; - this.key = key; - } - - Reference.prototype.replace = function replace(node) { - this.parent[this.key] = node; - }; - - Reference.prototype.remove = function remove() { - if (Array.isArray(this.parent)) { - this.parent.splice(this.key, 1); - return true; - } else { - this.replace(null); - return false; - } - }; - - function Element(node, path, wrap, ref) { - this.node = node; - this.path = path; - this.wrap = wrap; - this.ref = ref; - } - - function Controller() { } - - // API: - // return property path array from root to current node - Controller.prototype.path = function path() { - var i, iz, j, jz, result, element; - - function addToPath(result, path) { - if (Array.isArray(path)) { - for (j = 0, jz = path.length; j < jz; ++j) { - result.push(path[j]); - } - } else { - result.push(path); - } - } - - // root node - if (!this.__current.path) { - return null; - } - - // first node is sentinel, second node is root element - result = []; - for (i = 2, iz = this.__leavelist.length; i < iz; ++i) { - element = this.__leavelist[i]; - addToPath(result, element.path); - } - addToPath(result, this.__current.path); - return result; - }; - - // API: - // return type of current node - Controller.prototype.type = function () { - var node = this.current(); - return node.type || this.__current.wrap; - }; - - // API: - // return array of parent elements - Controller.prototype.parents = function parents() { - var i, iz, result; - - // first node is sentinel - result = []; - for (i = 1, iz = this.__leavelist.length; i < iz; ++i) { - result.push(this.__leavelist[i].node); - } - - return result; - }; - - // API: - // return current node - Controller.prototype.current = function current() { - return this.__current.node; - }; - - Controller.prototype.__execute = function __execute(callback, element) { - var previous, result; - - result = undefined; - - previous = this.__current; - this.__current = element; - this.__state = null; - if (callback) { - result = callback.call(this, element.node, this.__leavelist[this.__leavelist.length - 1].node); - } - this.__current = previous; - - return result; - }; - - // API: - // notify control skip / break - Controller.prototype.notify = function notify(flag) { - this.__state = flag; - }; - - // API: - // skip child nodes of current node - Controller.prototype.skip = function () { - this.notify(SKIP); - }; - - // API: - // break traversals - Controller.prototype['break'] = function () { - this.notify(BREAK); - }; - - // API: - // remove node - Controller.prototype.remove = function () { - this.notify(REMOVE); - }; - - Controller.prototype.__initialize = function(root, visitor) { - this.visitor = visitor; - this.root = root; - this.__worklist = []; - this.__leavelist = []; - this.__current = null; - this.__state = null; - this.__fallback = null; - if (visitor.fallback === 'iteration') { - this.__fallback = Object.keys; - } else if (typeof visitor.fallback === 'function') { - this.__fallback = visitor.fallback; - } - - this.__keys = VisitorKeys; - if (visitor.keys) { - this.__keys = Object.assign(Object.create(this.__keys), visitor.keys); - } - }; - - function isNode(node) { - if (node == null) { - return false; - } - return typeof node === 'object' && typeof node.type === 'string'; - } - - function isProperty(nodeType, key) { - return (nodeType === Syntax.ObjectExpression || nodeType === Syntax.ObjectPattern) && 'properties' === key; - } - - function candidateExistsInLeaveList(leavelist, candidate) { - for (var i = leavelist.length - 1; i >= 0; --i) { - if (leavelist[i].node === candidate) { - return true; - } - } - return false; - } - - Controller.prototype.traverse = function traverse(root, visitor) { - var worklist, - leavelist, - element, - node, - nodeType, - ret, - key, - current, - current2, - candidates, - candidate, - sentinel; - - this.__initialize(root, visitor); - - sentinel = {}; - - // reference - worklist = this.__worklist; - leavelist = this.__leavelist; - - // initialize - worklist.push(new Element(root, null, null, null)); - leavelist.push(new Element(null, null, null, null)); - - while (worklist.length) { - element = worklist.pop(); - - if (element === sentinel) { - element = leavelist.pop(); - - ret = this.__execute(visitor.leave, element); - - if (this.__state === BREAK || ret === BREAK) { - return; - } - continue; - } - - if (element.node) { - - ret = this.__execute(visitor.enter, element); - - if (this.__state === BREAK || ret === BREAK) { - return; - } - - worklist.push(sentinel); - leavelist.push(element); - - if (this.__state === SKIP || ret === SKIP) { - continue; - } - - node = element.node; - nodeType = node.type || element.wrap; - candidates = this.__keys[nodeType]; - if (!candidates) { - if (this.__fallback) { - candidates = this.__fallback(node); - } else { - throw new Error('Unknown node type ' + nodeType + '.'); - } - } - - current = candidates.length; - while ((current -= 1) >= 0) { - key = candidates[current]; - candidate = node[key]; - if (!candidate) { - continue; - } - - if (Array.isArray(candidate)) { - current2 = candidate.length; - while ((current2 -= 1) >= 0) { - if (!candidate[current2]) { - continue; - } - - if (candidateExistsInLeaveList(leavelist, candidate[current2])) { - continue; - } - - if (isProperty(nodeType, candidates[current])) { - element = new Element(candidate[current2], [key, current2], 'Property', null); - } else if (isNode(candidate[current2])) { - element = new Element(candidate[current2], [key, current2], null, null); - } else { - continue; - } - worklist.push(element); - } - } else if (isNode(candidate)) { - if (candidateExistsInLeaveList(leavelist, candidate)) { - continue; - } - - worklist.push(new Element(candidate, key, null, null)); - } - } - } - } - }; - - Controller.prototype.replace = function replace(root, visitor) { - var worklist, - leavelist, - node, - nodeType, - target, - element, - current, - current2, - candidates, - candidate, - sentinel, - outer, - key; - - function removeElem(element) { - var i, - key, - nextElem, - parent; - - if (element.ref.remove()) { - // When the reference is an element of an array. - key = element.ref.key; - parent = element.ref.parent; - - // If removed from array, then decrease following items' keys. - i = worklist.length; - while (i--) { - nextElem = worklist[i]; - if (nextElem.ref && nextElem.ref.parent === parent) { - if (nextElem.ref.key < key) { - break; - } - --nextElem.ref.key; - } - } - } - } - - this.__initialize(root, visitor); - - sentinel = {}; - - // reference - worklist = this.__worklist; - leavelist = this.__leavelist; - - // initialize - outer = { - root: root - }; - element = new Element(root, null, null, new Reference(outer, 'root')); - worklist.push(element); - leavelist.push(element); - - while (worklist.length) { - element = worklist.pop(); - - if (element === sentinel) { - element = leavelist.pop(); - - target = this.__execute(visitor.leave, element); - - // node may be replaced with null, - // so distinguish between undefined and null in this place - if (target !== undefined && target !== BREAK && target !== SKIP && target !== REMOVE) { - // replace - element.ref.replace(target); - } - - if (this.__state === REMOVE || target === REMOVE) { - removeElem(element); - } - - if (this.__state === BREAK || target === BREAK) { - return outer.root; - } - continue; - } - - target = this.__execute(visitor.enter, element); - - // node may be replaced with null, - // so distinguish between undefined and null in this place - if (target !== undefined && target !== BREAK && target !== SKIP && target !== REMOVE) { - // replace - element.ref.replace(target); - element.node = target; - } - - if (this.__state === REMOVE || target === REMOVE) { - removeElem(element); - element.node = null; - } - - if (this.__state === BREAK || target === BREAK) { - return outer.root; - } - - // node may be null - node = element.node; - if (!node) { - continue; - } - - worklist.push(sentinel); - leavelist.push(element); - - if (this.__state === SKIP || target === SKIP) { - continue; - } - - nodeType = node.type || element.wrap; - candidates = this.__keys[nodeType]; - if (!candidates) { - if (this.__fallback) { - candidates = this.__fallback(node); - } else { - throw new Error('Unknown node type ' + nodeType + '.'); - } - } - - current = candidates.length; - while ((current -= 1) >= 0) { - key = candidates[current]; - candidate = node[key]; - if (!candidate) { - continue; - } - - if (Array.isArray(candidate)) { - current2 = candidate.length; - while ((current2 -= 1) >= 0) { - if (!candidate[current2]) { - continue; - } - if (isProperty(nodeType, candidates[current])) { - element = new Element(candidate[current2], [key, current2], 'Property', new Reference(candidate, current2)); - } else if (isNode(candidate[current2])) { - element = new Element(candidate[current2], [key, current2], null, new Reference(candidate, current2)); - } else { - continue; - } - worklist.push(element); - } - } else if (isNode(candidate)) { - worklist.push(new Element(candidate, key, null, new Reference(node, key))); - } - } - } - - return outer.root; - }; - - function traverse(root, visitor) { - var controller = new Controller(); - return controller.traverse(root, visitor); - } - - function replace(root, visitor) { - var controller = new Controller(); - return controller.replace(root, visitor); - } - - function extendCommentRange(comment, tokens) { - var target; - - target = upperBound(tokens, function search(token) { - return token.range[0] > comment.range[0]; - }); - - comment.extendedRange = [comment.range[0], comment.range[1]]; - - if (target !== tokens.length) { - comment.extendedRange[1] = tokens[target].range[0]; - } - - target -= 1; - if (target >= 0) { - comment.extendedRange[0] = tokens[target].range[1]; - } - - return comment; - } - - function attachComments(tree, providedComments, tokens) { - // At first, we should calculate extended comment ranges. - var comments = [], comment, len, i, cursor; - - if (!tree.range) { - throw new Error('attachComments needs range information'); - } - - // tokens array is empty, we attach comments to tree as 'leadingComments' - if (!tokens.length) { - if (providedComments.length) { - for (i = 0, len = providedComments.length; i < len; i += 1) { - comment = deepCopy(providedComments[i]); - comment.extendedRange = [0, tree.range[0]]; - comments.push(comment); - } - tree.leadingComments = comments; - } - return tree; - } - - for (i = 0, len = providedComments.length; i < len; i += 1) { - comments.push(extendCommentRange(deepCopy(providedComments[i]), tokens)); - } - - // This is based on John Freeman's implementation. - cursor = 0; - traverse(tree, { - enter: function (node) { - var comment; - - while (cursor < comments.length) { - comment = comments[cursor]; - if (comment.extendedRange[1] > node.range[0]) { - break; - } - - if (comment.extendedRange[1] === node.range[0]) { - if (!node.leadingComments) { - node.leadingComments = []; - } - node.leadingComments.push(comment); - comments.splice(cursor, 1); - } else { - cursor += 1; - } - } - - // already out of owned node - if (cursor === comments.length) { - return VisitorOption.Break; - } - - if (comments[cursor].extendedRange[0] > node.range[1]) { - return VisitorOption.Skip; - } - } - }); - - cursor = 0; - traverse(tree, { - leave: function (node) { - var comment; - - while (cursor < comments.length) { - comment = comments[cursor]; - if (node.range[1] < comment.extendedRange[0]) { - break; - } - - if (node.range[1] === comment.extendedRange[0]) { - if (!node.trailingComments) { - node.trailingComments = []; - } - node.trailingComments.push(comment); - comments.splice(cursor, 1); - } else { - cursor += 1; - } - } - - // already out of owned node - if (cursor === comments.length) { - return VisitorOption.Break; - } - - if (comments[cursor].extendedRange[0] > node.range[1]) { - return VisitorOption.Skip; - } - } - }); - - return tree; - } - - exports.Syntax = Syntax; - exports.traverse = traverse; - exports.replace = replace; - exports.attachComments = attachComments; - exports.VisitorKeys = VisitorKeys; - exports.VisitorOption = VisitorOption; - exports.Controller = Controller; - exports.cloneEnvironment = function () { return clone({}); }; - - return exports; -}(exports)); -/* vim: set sw=4 ts=4 et tw=80 : */ diff --git a/node_modules/esquery/node_modules/estraverse/gulpfile.js b/node_modules/esquery/node_modules/estraverse/gulpfile.js deleted file mode 100644 index 8772bbcca5..0000000000 --- a/node_modules/esquery/node_modules/estraverse/gulpfile.js +++ /dev/null @@ -1,70 +0,0 @@ -/* - Copyright (C) 2014 Yusuke Suzuki - - Redistribution and use in source and binary forms, with or without - modification, are permitted provided that the following conditions are met: - - * Redistributions of source code must retain the above copyright - notice, this list of conditions and the following disclaimer. - * Redistributions in binary form must reproduce the above copyright - notice, this list of conditions and the following disclaimer in the - documentation and/or other materials provided with the distribution. - - THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS 'AS IS' - AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE - IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE - ARE DISCLAIMED. IN NO EVENT SHALL BE LIABLE FOR ANY - DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES - (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; - LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND - ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT - (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF - THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. -*/ - -'use strict'; - -var gulp = require('gulp'), - git = require('gulp-git'), - bump = require('gulp-bump'), - filter = require('gulp-filter'), - tagVersion = require('gulp-tag-version'); - -var TEST = [ 'test/*.js' ]; -var POWERED = [ 'powered-test/*.js' ]; -var SOURCE = [ 'src/**/*.js' ]; - -/** - * Bumping version number and tagging the repository with it. - * Please read http://semver.org/ - * - * You can use the commands - * - * gulp patch # makes v0.1.0 -> v0.1.1 - * gulp feature # makes v0.1.1 -> v0.2.0 - * gulp release # makes v0.2.1 -> v1.0.0 - * - * To bump the version numbers accordingly after you did a patch, - * introduced a feature or made a backwards-incompatible release. - */ - -function inc(importance) { - // get all the files to bump version in - return gulp.src(['./package.json']) - // bump the version number in those files - .pipe(bump({type: importance})) - // save it back to filesystem - .pipe(gulp.dest('./')) - // commit the changed version number - .pipe(git.commit('Bumps package version')) - // read only one file to get the version number - .pipe(filter('package.json')) - // **tag it in the repository** - .pipe(tagVersion({ - prefix: '' - })); -} - -gulp.task('patch', [ ], function () { return inc('patch'); }) -gulp.task('minor', [ ], function () { return inc('minor'); }) -gulp.task('major', [ ], function () { return inc('major'); }) diff --git a/node_modules/esquery/node_modules/estraverse/package.json b/node_modules/esquery/node_modules/estraverse/package.json deleted file mode 100644 index a86321850b..0000000000 --- a/node_modules/esquery/node_modules/estraverse/package.json +++ /dev/null @@ -1,40 +0,0 @@ -{ - "name": "estraverse", - "description": "ECMAScript JS AST traversal functions", - "homepage": "https://github.com/estools/estraverse", - "main": "estraverse.js", - "version": "5.3.0", - "engines": { - "node": ">=4.0" - }, - "maintainers": [ - { - "name": "Yusuke Suzuki", - "email": "utatane.tea@gmail.com", - "web": "http://github.com/Constellation" - } - ], - "repository": { - "type": "git", - "url": "http://github.com/estools/estraverse.git" - }, - "devDependencies": { - "babel-preset-env": "^1.6.1", - "babel-register": "^6.3.13", - "chai": "^2.1.1", - "espree": "^1.11.0", - "gulp": "^3.8.10", - "gulp-bump": "^0.2.2", - "gulp-filter": "^2.0.0", - "gulp-git": "^1.0.1", - "gulp-tag-version": "^1.3.0", - "jshint": "^2.5.6", - "mocha": "^2.1.0" - }, - "license": "BSD-2-Clause", - "scripts": { - "test": "npm run-script lint && npm run-script unit-test", - "lint": "jshint estraverse.js", - "unit-test": "mocha --compilers js:babel-register" - } -} diff --git a/node_modules/esrecurse/node_modules/estraverse/.jshintrc b/node_modules/esrecurse/node_modules/estraverse/.jshintrc deleted file mode 100644 index f642dae768..0000000000 --- a/node_modules/esrecurse/node_modules/estraverse/.jshintrc +++ /dev/null @@ -1,16 +0,0 @@ -{ - "curly": true, - "eqeqeq": true, - "immed": true, - "eqnull": true, - "latedef": true, - "noarg": true, - "noempty": true, - "quotmark": "single", - "undef": true, - "unused": true, - "strict": true, - "trailing": true, - - "node": true -} diff --git a/node_modules/esrecurse/node_modules/estraverse/LICENSE.BSD b/node_modules/esrecurse/node_modules/estraverse/LICENSE.BSD deleted file mode 100644 index 3e580c355a..0000000000 --- a/node_modules/esrecurse/node_modules/estraverse/LICENSE.BSD +++ /dev/null @@ -1,19 +0,0 @@ -Redistribution and use in source and binary forms, with or without -modification, are permitted provided that the following conditions are met: - - * Redistributions of source code must retain the above copyright - notice, this list of conditions and the following disclaimer. - * Redistributions in binary form must reproduce the above copyright - notice, this list of conditions and the following disclaimer in the - documentation and/or other materials provided with the distribution. - -THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" -AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE -IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE -ARE DISCLAIMED. IN NO EVENT SHALL BE LIABLE FOR ANY -DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES -(INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; -LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND -ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT -(INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF -THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. diff --git a/node_modules/esrecurse/node_modules/estraverse/README.md b/node_modules/esrecurse/node_modules/estraverse/README.md deleted file mode 100644 index ccd3377f3e..0000000000 --- a/node_modules/esrecurse/node_modules/estraverse/README.md +++ /dev/null @@ -1,153 +0,0 @@ -### Estraverse [![Build Status](https://secure.travis-ci.org/estools/estraverse.svg)](http://travis-ci.org/estools/estraverse) - -Estraverse ([estraverse](http://github.com/estools/estraverse)) is -[ECMAScript](http://www.ecma-international.org/publications/standards/Ecma-262.htm) -traversal functions from [esmangle project](http://github.com/estools/esmangle). - -### Documentation - -You can find usage docs at [wiki page](https://github.com/estools/estraverse/wiki/Usage). - -### Example Usage - -The following code will output all variables declared at the root of a file. - -```javascript -estraverse.traverse(ast, { - enter: function (node, parent) { - if (node.type == 'FunctionExpression' || node.type == 'FunctionDeclaration') - return estraverse.VisitorOption.Skip; - }, - leave: function (node, parent) { - if (node.type == 'VariableDeclarator') - console.log(node.id.name); - } -}); -``` - -We can use `this.skip`, `this.remove` and `this.break` functions instead of using Skip, Remove and Break. - -```javascript -estraverse.traverse(ast, { - enter: function (node) { - this.break(); - } -}); -``` - -And estraverse provides `estraverse.replace` function. When returning node from `enter`/`leave`, current node is replaced with it. - -```javascript -result = estraverse.replace(tree, { - enter: function (node) { - // Replace it with replaced. - if (node.type === 'Literal') - return replaced; - } -}); -``` - -By passing `visitor.keys` mapping, we can extend estraverse traversing functionality. - -```javascript -// This tree contains a user-defined `TestExpression` node. -var tree = { - type: 'TestExpression', - - // This 'argument' is the property containing the other **node**. - argument: { - type: 'Literal', - value: 20 - }, - - // This 'extended' is the property not containing the other **node**. - extended: true -}; -estraverse.traverse(tree, { - enter: function (node) { }, - - // Extending the existing traversing rules. - keys: { - // TargetNodeName: [ 'keys', 'containing', 'the', 'other', '**node**' ] - TestExpression: ['argument'] - } -}); -``` - -By passing `visitor.fallback` option, we can control the behavior when encountering unknown nodes. - -```javascript -// This tree contains a user-defined `TestExpression` node. -var tree = { - type: 'TestExpression', - - // This 'argument' is the property containing the other **node**. - argument: { - type: 'Literal', - value: 20 - }, - - // This 'extended' is the property not containing the other **node**. - extended: true -}; -estraverse.traverse(tree, { - enter: function (node) { }, - - // Iterating the child **nodes** of unknown nodes. - fallback: 'iteration' -}); -``` - -When `visitor.fallback` is a function, we can determine which keys to visit on each node. - -```javascript -// This tree contains a user-defined `TestExpression` node. -var tree = { - type: 'TestExpression', - - // This 'argument' is the property containing the other **node**. - argument: { - type: 'Literal', - value: 20 - }, - - // This 'extended' is the property not containing the other **node**. - extended: true -}; -estraverse.traverse(tree, { - enter: function (node) { }, - - // Skip the `argument` property of each node - fallback: function(node) { - return Object.keys(node).filter(function(key) { - return key !== 'argument'; - }); - } -}); -``` - -### License - -Copyright (C) 2012-2016 [Yusuke Suzuki](http://github.com/Constellation) - (twitter: [@Constellation](http://twitter.com/Constellation)) and other contributors. - -Redistribution and use in source and binary forms, with or without -modification, are permitted provided that the following conditions are met: - - * Redistributions of source code must retain the above copyright - notice, this list of conditions and the following disclaimer. - - * Redistributions in binary form must reproduce the above copyright - notice, this list of conditions and the following disclaimer in the - documentation and/or other materials provided with the distribution. - -THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" -AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE -IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE -ARE DISCLAIMED. IN NO EVENT SHALL BE LIABLE FOR ANY -DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES -(INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; -LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND -ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT -(INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF -THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. diff --git a/node_modules/esrecurse/node_modules/estraverse/estraverse.js b/node_modules/esrecurse/node_modules/estraverse/estraverse.js deleted file mode 100644 index 93225bb0c4..0000000000 --- a/node_modules/esrecurse/node_modules/estraverse/estraverse.js +++ /dev/null @@ -1,801 +0,0 @@ -/* - Copyright (C) 2012-2013 Yusuke Suzuki - Copyright (C) 2012 Ariya Hidayat - - Redistribution and use in source and binary forms, with or without - modification, are permitted provided that the following conditions are met: - - * Redistributions of source code must retain the above copyright - notice, this list of conditions and the following disclaimer. - * Redistributions in binary form must reproduce the above copyright - notice, this list of conditions and the following disclaimer in the - documentation and/or other materials provided with the distribution. - - THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" - AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE - IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE - ARE DISCLAIMED. IN NO EVENT SHALL BE LIABLE FOR ANY - DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES - (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; - LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND - ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT - (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF - THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. -*/ -/*jslint vars:false, bitwise:true*/ -/*jshint indent:4*/ -/*global exports:true*/ -(function clone(exports) { - 'use strict'; - - var Syntax, - VisitorOption, - VisitorKeys, - BREAK, - SKIP, - REMOVE; - - function deepCopy(obj) { - var ret = {}, key, val; - for (key in obj) { - if (obj.hasOwnProperty(key)) { - val = obj[key]; - if (typeof val === 'object' && val !== null) { - ret[key] = deepCopy(val); - } else { - ret[key] = val; - } - } - } - return ret; - } - - // based on LLVM libc++ upper_bound / lower_bound - // MIT License - - function upperBound(array, func) { - var diff, len, i, current; - - len = array.length; - i = 0; - - while (len) { - diff = len >>> 1; - current = i + diff; - if (func(array[current])) { - len = diff; - } else { - i = current + 1; - len -= diff + 1; - } - } - return i; - } - - Syntax = { - AssignmentExpression: 'AssignmentExpression', - AssignmentPattern: 'AssignmentPattern', - ArrayExpression: 'ArrayExpression', - ArrayPattern: 'ArrayPattern', - ArrowFunctionExpression: 'ArrowFunctionExpression', - AwaitExpression: 'AwaitExpression', // CAUTION: It's deferred to ES7. - BlockStatement: 'BlockStatement', - BinaryExpression: 'BinaryExpression', - BreakStatement: 'BreakStatement', - CallExpression: 'CallExpression', - CatchClause: 'CatchClause', - ChainExpression: 'ChainExpression', - ClassBody: 'ClassBody', - ClassDeclaration: 'ClassDeclaration', - ClassExpression: 'ClassExpression', - ComprehensionBlock: 'ComprehensionBlock', // CAUTION: It's deferred to ES7. - ComprehensionExpression: 'ComprehensionExpression', // CAUTION: It's deferred to ES7. - ConditionalExpression: 'ConditionalExpression', - ContinueStatement: 'ContinueStatement', - DebuggerStatement: 'DebuggerStatement', - DirectiveStatement: 'DirectiveStatement', - DoWhileStatement: 'DoWhileStatement', - EmptyStatement: 'EmptyStatement', - ExportAllDeclaration: 'ExportAllDeclaration', - ExportDefaultDeclaration: 'ExportDefaultDeclaration', - ExportNamedDeclaration: 'ExportNamedDeclaration', - ExportSpecifier: 'ExportSpecifier', - ExpressionStatement: 'ExpressionStatement', - ForStatement: 'ForStatement', - ForInStatement: 'ForInStatement', - ForOfStatement: 'ForOfStatement', - FunctionDeclaration: 'FunctionDeclaration', - FunctionExpression: 'FunctionExpression', - GeneratorExpression: 'GeneratorExpression', // CAUTION: It's deferred to ES7. - Identifier: 'Identifier', - IfStatement: 'IfStatement', - ImportExpression: 'ImportExpression', - ImportDeclaration: 'ImportDeclaration', - ImportDefaultSpecifier: 'ImportDefaultSpecifier', - ImportNamespaceSpecifier: 'ImportNamespaceSpecifier', - ImportSpecifier: 'ImportSpecifier', - Literal: 'Literal', - LabeledStatement: 'LabeledStatement', - LogicalExpression: 'LogicalExpression', - MemberExpression: 'MemberExpression', - MetaProperty: 'MetaProperty', - MethodDefinition: 'MethodDefinition', - ModuleSpecifier: 'ModuleSpecifier', - NewExpression: 'NewExpression', - ObjectExpression: 'ObjectExpression', - ObjectPattern: 'ObjectPattern', - Program: 'Program', - Property: 'Property', - RestElement: 'RestElement', - ReturnStatement: 'ReturnStatement', - SequenceExpression: 'SequenceExpression', - SpreadElement: 'SpreadElement', - Super: 'Super', - SwitchStatement: 'SwitchStatement', - SwitchCase: 'SwitchCase', - TaggedTemplateExpression: 'TaggedTemplateExpression', - TemplateElement: 'TemplateElement', - TemplateLiteral: 'TemplateLiteral', - ThisExpression: 'ThisExpression', - ThrowStatement: 'ThrowStatement', - TryStatement: 'TryStatement', - UnaryExpression: 'UnaryExpression', - UpdateExpression: 'UpdateExpression', - VariableDeclaration: 'VariableDeclaration', - VariableDeclarator: 'VariableDeclarator', - WhileStatement: 'WhileStatement', - WithStatement: 'WithStatement', - YieldExpression: 'YieldExpression' - }; - - VisitorKeys = { - AssignmentExpression: ['left', 'right'], - AssignmentPattern: ['left', 'right'], - ArrayExpression: ['elements'], - ArrayPattern: ['elements'], - ArrowFunctionExpression: ['params', 'body'], - AwaitExpression: ['argument'], // CAUTION: It's deferred to ES7. - BlockStatement: ['body'], - BinaryExpression: ['left', 'right'], - BreakStatement: ['label'], - CallExpression: ['callee', 'arguments'], - CatchClause: ['param', 'body'], - ChainExpression: ['expression'], - ClassBody: ['body'], - ClassDeclaration: ['id', 'superClass', 'body'], - ClassExpression: ['id', 'superClass', 'body'], - ComprehensionBlock: ['left', 'right'], // CAUTION: It's deferred to ES7. - ComprehensionExpression: ['blocks', 'filter', 'body'], // CAUTION: It's deferred to ES7. - ConditionalExpression: ['test', 'consequent', 'alternate'], - ContinueStatement: ['label'], - DebuggerStatement: [], - DirectiveStatement: [], - DoWhileStatement: ['body', 'test'], - EmptyStatement: [], - ExportAllDeclaration: ['source'], - ExportDefaultDeclaration: ['declaration'], - ExportNamedDeclaration: ['declaration', 'specifiers', 'source'], - ExportSpecifier: ['exported', 'local'], - ExpressionStatement: ['expression'], - ForStatement: ['init', 'test', 'update', 'body'], - ForInStatement: ['left', 'right', 'body'], - ForOfStatement: ['left', 'right', 'body'], - FunctionDeclaration: ['id', 'params', 'body'], - FunctionExpression: ['id', 'params', 'body'], - GeneratorExpression: ['blocks', 'filter', 'body'], // CAUTION: It's deferred to ES7. - Identifier: [], - IfStatement: ['test', 'consequent', 'alternate'], - ImportExpression: ['source'], - ImportDeclaration: ['specifiers', 'source'], - ImportDefaultSpecifier: ['local'], - ImportNamespaceSpecifier: ['local'], - ImportSpecifier: ['imported', 'local'], - Literal: [], - LabeledStatement: ['label', 'body'], - LogicalExpression: ['left', 'right'], - MemberExpression: ['object', 'property'], - MetaProperty: ['meta', 'property'], - MethodDefinition: ['key', 'value'], - ModuleSpecifier: [], - NewExpression: ['callee', 'arguments'], - ObjectExpression: ['properties'], - ObjectPattern: ['properties'], - Program: ['body'], - Property: ['key', 'value'], - RestElement: [ 'argument' ], - ReturnStatement: ['argument'], - SequenceExpression: ['expressions'], - SpreadElement: ['argument'], - Super: [], - SwitchStatement: ['discriminant', 'cases'], - SwitchCase: ['test', 'consequent'], - TaggedTemplateExpression: ['tag', 'quasi'], - TemplateElement: [], - TemplateLiteral: ['quasis', 'expressions'], - ThisExpression: [], - ThrowStatement: ['argument'], - TryStatement: ['block', 'handler', 'finalizer'], - UnaryExpression: ['argument'], - UpdateExpression: ['argument'], - VariableDeclaration: ['declarations'], - VariableDeclarator: ['id', 'init'], - WhileStatement: ['test', 'body'], - WithStatement: ['object', 'body'], - YieldExpression: ['argument'] - }; - - // unique id - BREAK = {}; - SKIP = {}; - REMOVE = {}; - - VisitorOption = { - Break: BREAK, - Skip: SKIP, - Remove: REMOVE - }; - - function Reference(parent, key) { - this.parent = parent; - this.key = key; - } - - Reference.prototype.replace = function replace(node) { - this.parent[this.key] = node; - }; - - Reference.prototype.remove = function remove() { - if (Array.isArray(this.parent)) { - this.parent.splice(this.key, 1); - return true; - } else { - this.replace(null); - return false; - } - }; - - function Element(node, path, wrap, ref) { - this.node = node; - this.path = path; - this.wrap = wrap; - this.ref = ref; - } - - function Controller() { } - - // API: - // return property path array from root to current node - Controller.prototype.path = function path() { - var i, iz, j, jz, result, element; - - function addToPath(result, path) { - if (Array.isArray(path)) { - for (j = 0, jz = path.length; j < jz; ++j) { - result.push(path[j]); - } - } else { - result.push(path); - } - } - - // root node - if (!this.__current.path) { - return null; - } - - // first node is sentinel, second node is root element - result = []; - for (i = 2, iz = this.__leavelist.length; i < iz; ++i) { - element = this.__leavelist[i]; - addToPath(result, element.path); - } - addToPath(result, this.__current.path); - return result; - }; - - // API: - // return type of current node - Controller.prototype.type = function () { - var node = this.current(); - return node.type || this.__current.wrap; - }; - - // API: - // return array of parent elements - Controller.prototype.parents = function parents() { - var i, iz, result; - - // first node is sentinel - result = []; - for (i = 1, iz = this.__leavelist.length; i < iz; ++i) { - result.push(this.__leavelist[i].node); - } - - return result; - }; - - // API: - // return current node - Controller.prototype.current = function current() { - return this.__current.node; - }; - - Controller.prototype.__execute = function __execute(callback, element) { - var previous, result; - - result = undefined; - - previous = this.__current; - this.__current = element; - this.__state = null; - if (callback) { - result = callback.call(this, element.node, this.__leavelist[this.__leavelist.length - 1].node); - } - this.__current = previous; - - return result; - }; - - // API: - // notify control skip / break - Controller.prototype.notify = function notify(flag) { - this.__state = flag; - }; - - // API: - // skip child nodes of current node - Controller.prototype.skip = function () { - this.notify(SKIP); - }; - - // API: - // break traversals - Controller.prototype['break'] = function () { - this.notify(BREAK); - }; - - // API: - // remove node - Controller.prototype.remove = function () { - this.notify(REMOVE); - }; - - Controller.prototype.__initialize = function(root, visitor) { - this.visitor = visitor; - this.root = root; - this.__worklist = []; - this.__leavelist = []; - this.__current = null; - this.__state = null; - this.__fallback = null; - if (visitor.fallback === 'iteration') { - this.__fallback = Object.keys; - } else if (typeof visitor.fallback === 'function') { - this.__fallback = visitor.fallback; - } - - this.__keys = VisitorKeys; - if (visitor.keys) { - this.__keys = Object.assign(Object.create(this.__keys), visitor.keys); - } - }; - - function isNode(node) { - if (node == null) { - return false; - } - return typeof node === 'object' && typeof node.type === 'string'; - } - - function isProperty(nodeType, key) { - return (nodeType === Syntax.ObjectExpression || nodeType === Syntax.ObjectPattern) && 'properties' === key; - } - - function candidateExistsInLeaveList(leavelist, candidate) { - for (var i = leavelist.length - 1; i >= 0; --i) { - if (leavelist[i].node === candidate) { - return true; - } - } - return false; - } - - Controller.prototype.traverse = function traverse(root, visitor) { - var worklist, - leavelist, - element, - node, - nodeType, - ret, - key, - current, - current2, - candidates, - candidate, - sentinel; - - this.__initialize(root, visitor); - - sentinel = {}; - - // reference - worklist = this.__worklist; - leavelist = this.__leavelist; - - // initialize - worklist.push(new Element(root, null, null, null)); - leavelist.push(new Element(null, null, null, null)); - - while (worklist.length) { - element = worklist.pop(); - - if (element === sentinel) { - element = leavelist.pop(); - - ret = this.__execute(visitor.leave, element); - - if (this.__state === BREAK || ret === BREAK) { - return; - } - continue; - } - - if (element.node) { - - ret = this.__execute(visitor.enter, element); - - if (this.__state === BREAK || ret === BREAK) { - return; - } - - worklist.push(sentinel); - leavelist.push(element); - - if (this.__state === SKIP || ret === SKIP) { - continue; - } - - node = element.node; - nodeType = node.type || element.wrap; - candidates = this.__keys[nodeType]; - if (!candidates) { - if (this.__fallback) { - candidates = this.__fallback(node); - } else { - throw new Error('Unknown node type ' + nodeType + '.'); - } - } - - current = candidates.length; - while ((current -= 1) >= 0) { - key = candidates[current]; - candidate = node[key]; - if (!candidate) { - continue; - } - - if (Array.isArray(candidate)) { - current2 = candidate.length; - while ((current2 -= 1) >= 0) { - if (!candidate[current2]) { - continue; - } - - if (candidateExistsInLeaveList(leavelist, candidate[current2])) { - continue; - } - - if (isProperty(nodeType, candidates[current])) { - element = new Element(candidate[current2], [key, current2], 'Property', null); - } else if (isNode(candidate[current2])) { - element = new Element(candidate[current2], [key, current2], null, null); - } else { - continue; - } - worklist.push(element); - } - } else if (isNode(candidate)) { - if (candidateExistsInLeaveList(leavelist, candidate)) { - continue; - } - - worklist.push(new Element(candidate, key, null, null)); - } - } - } - } - }; - - Controller.prototype.replace = function replace(root, visitor) { - var worklist, - leavelist, - node, - nodeType, - target, - element, - current, - current2, - candidates, - candidate, - sentinel, - outer, - key; - - function removeElem(element) { - var i, - key, - nextElem, - parent; - - if (element.ref.remove()) { - // When the reference is an element of an array. - key = element.ref.key; - parent = element.ref.parent; - - // If removed from array, then decrease following items' keys. - i = worklist.length; - while (i--) { - nextElem = worklist[i]; - if (nextElem.ref && nextElem.ref.parent === parent) { - if (nextElem.ref.key < key) { - break; - } - --nextElem.ref.key; - } - } - } - } - - this.__initialize(root, visitor); - - sentinel = {}; - - // reference - worklist = this.__worklist; - leavelist = this.__leavelist; - - // initialize - outer = { - root: root - }; - element = new Element(root, null, null, new Reference(outer, 'root')); - worklist.push(element); - leavelist.push(element); - - while (worklist.length) { - element = worklist.pop(); - - if (element === sentinel) { - element = leavelist.pop(); - - target = this.__execute(visitor.leave, element); - - // node may be replaced with null, - // so distinguish between undefined and null in this place - if (target !== undefined && target !== BREAK && target !== SKIP && target !== REMOVE) { - // replace - element.ref.replace(target); - } - - if (this.__state === REMOVE || target === REMOVE) { - removeElem(element); - } - - if (this.__state === BREAK || target === BREAK) { - return outer.root; - } - continue; - } - - target = this.__execute(visitor.enter, element); - - // node may be replaced with null, - // so distinguish between undefined and null in this place - if (target !== undefined && target !== BREAK && target !== SKIP && target !== REMOVE) { - // replace - element.ref.replace(target); - element.node = target; - } - - if (this.__state === REMOVE || target === REMOVE) { - removeElem(element); - element.node = null; - } - - if (this.__state === BREAK || target === BREAK) { - return outer.root; - } - - // node may be null - node = element.node; - if (!node) { - continue; - } - - worklist.push(sentinel); - leavelist.push(element); - - if (this.__state === SKIP || target === SKIP) { - continue; - } - - nodeType = node.type || element.wrap; - candidates = this.__keys[nodeType]; - if (!candidates) { - if (this.__fallback) { - candidates = this.__fallback(node); - } else { - throw new Error('Unknown node type ' + nodeType + '.'); - } - } - - current = candidates.length; - while ((current -= 1) >= 0) { - key = candidates[current]; - candidate = node[key]; - if (!candidate) { - continue; - } - - if (Array.isArray(candidate)) { - current2 = candidate.length; - while ((current2 -= 1) >= 0) { - if (!candidate[current2]) { - continue; - } - if (isProperty(nodeType, candidates[current])) { - element = new Element(candidate[current2], [key, current2], 'Property', new Reference(candidate, current2)); - } else if (isNode(candidate[current2])) { - element = new Element(candidate[current2], [key, current2], null, new Reference(candidate, current2)); - } else { - continue; - } - worklist.push(element); - } - } else if (isNode(candidate)) { - worklist.push(new Element(candidate, key, null, new Reference(node, key))); - } - } - } - - return outer.root; - }; - - function traverse(root, visitor) { - var controller = new Controller(); - return controller.traverse(root, visitor); - } - - function replace(root, visitor) { - var controller = new Controller(); - return controller.replace(root, visitor); - } - - function extendCommentRange(comment, tokens) { - var target; - - target = upperBound(tokens, function search(token) { - return token.range[0] > comment.range[0]; - }); - - comment.extendedRange = [comment.range[0], comment.range[1]]; - - if (target !== tokens.length) { - comment.extendedRange[1] = tokens[target].range[0]; - } - - target -= 1; - if (target >= 0) { - comment.extendedRange[0] = tokens[target].range[1]; - } - - return comment; - } - - function attachComments(tree, providedComments, tokens) { - // At first, we should calculate extended comment ranges. - var comments = [], comment, len, i, cursor; - - if (!tree.range) { - throw new Error('attachComments needs range information'); - } - - // tokens array is empty, we attach comments to tree as 'leadingComments' - if (!tokens.length) { - if (providedComments.length) { - for (i = 0, len = providedComments.length; i < len; i += 1) { - comment = deepCopy(providedComments[i]); - comment.extendedRange = [0, tree.range[0]]; - comments.push(comment); - } - tree.leadingComments = comments; - } - return tree; - } - - for (i = 0, len = providedComments.length; i < len; i += 1) { - comments.push(extendCommentRange(deepCopy(providedComments[i]), tokens)); - } - - // This is based on John Freeman's implementation. - cursor = 0; - traverse(tree, { - enter: function (node) { - var comment; - - while (cursor < comments.length) { - comment = comments[cursor]; - if (comment.extendedRange[1] > node.range[0]) { - break; - } - - if (comment.extendedRange[1] === node.range[0]) { - if (!node.leadingComments) { - node.leadingComments = []; - } - node.leadingComments.push(comment); - comments.splice(cursor, 1); - } else { - cursor += 1; - } - } - - // already out of owned node - if (cursor === comments.length) { - return VisitorOption.Break; - } - - if (comments[cursor].extendedRange[0] > node.range[1]) { - return VisitorOption.Skip; - } - } - }); - - cursor = 0; - traverse(tree, { - leave: function (node) { - var comment; - - while (cursor < comments.length) { - comment = comments[cursor]; - if (node.range[1] < comment.extendedRange[0]) { - break; - } - - if (node.range[1] === comment.extendedRange[0]) { - if (!node.trailingComments) { - node.trailingComments = []; - } - node.trailingComments.push(comment); - comments.splice(cursor, 1); - } else { - cursor += 1; - } - } - - // already out of owned node - if (cursor === comments.length) { - return VisitorOption.Break; - } - - if (comments[cursor].extendedRange[0] > node.range[1]) { - return VisitorOption.Skip; - } - } - }); - - return tree; - } - - exports.Syntax = Syntax; - exports.traverse = traverse; - exports.replace = replace; - exports.attachComments = attachComments; - exports.VisitorKeys = VisitorKeys; - exports.VisitorOption = VisitorOption; - exports.Controller = Controller; - exports.cloneEnvironment = function () { return clone({}); }; - - return exports; -}(exports)); -/* vim: set sw=4 ts=4 et tw=80 : */ diff --git a/node_modules/esrecurse/node_modules/estraverse/gulpfile.js b/node_modules/esrecurse/node_modules/estraverse/gulpfile.js deleted file mode 100644 index 8772bbcca5..0000000000 --- a/node_modules/esrecurse/node_modules/estraverse/gulpfile.js +++ /dev/null @@ -1,70 +0,0 @@ -/* - Copyright (C) 2014 Yusuke Suzuki - - Redistribution and use in source and binary forms, with or without - modification, are permitted provided that the following conditions are met: - - * Redistributions of source code must retain the above copyright - notice, this list of conditions and the following disclaimer. - * Redistributions in binary form must reproduce the above copyright - notice, this list of conditions and the following disclaimer in the - documentation and/or other materials provided with the distribution. - - THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS 'AS IS' - AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE - IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE - ARE DISCLAIMED. IN NO EVENT SHALL BE LIABLE FOR ANY - DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES - (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; - LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND - ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT - (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF - THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. -*/ - -'use strict'; - -var gulp = require('gulp'), - git = require('gulp-git'), - bump = require('gulp-bump'), - filter = require('gulp-filter'), - tagVersion = require('gulp-tag-version'); - -var TEST = [ 'test/*.js' ]; -var POWERED = [ 'powered-test/*.js' ]; -var SOURCE = [ 'src/**/*.js' ]; - -/** - * Bumping version number and tagging the repository with it. - * Please read http://semver.org/ - * - * You can use the commands - * - * gulp patch # makes v0.1.0 -> v0.1.1 - * gulp feature # makes v0.1.1 -> v0.2.0 - * gulp release # makes v0.2.1 -> v1.0.0 - * - * To bump the version numbers accordingly after you did a patch, - * introduced a feature or made a backwards-incompatible release. - */ - -function inc(importance) { - // get all the files to bump version in - return gulp.src(['./package.json']) - // bump the version number in those files - .pipe(bump({type: importance})) - // save it back to filesystem - .pipe(gulp.dest('./')) - // commit the changed version number - .pipe(git.commit('Bumps package version')) - // read only one file to get the version number - .pipe(filter('package.json')) - // **tag it in the repository** - .pipe(tagVersion({ - prefix: '' - })); -} - -gulp.task('patch', [ ], function () { return inc('patch'); }) -gulp.task('minor', [ ], function () { return inc('minor'); }) -gulp.task('major', [ ], function () { return inc('major'); }) diff --git a/node_modules/esrecurse/node_modules/estraverse/package.json b/node_modules/esrecurse/node_modules/estraverse/package.json deleted file mode 100644 index bc99e7c4a6..0000000000 --- a/node_modules/esrecurse/node_modules/estraverse/package.json +++ /dev/null @@ -1,40 +0,0 @@ -{ - "name": "estraverse", - "description": "ECMAScript JS AST traversal functions", - "homepage": "https://github.com/estools/estraverse", - "main": "estraverse.js", - "version": "5.2.0", - "engines": { - "node": ">=4.0" - }, - "maintainers": [ - { - "name": "Yusuke Suzuki", - "email": "utatane.tea@gmail.com", - "web": "http://github.com/Constellation" - } - ], - "repository": { - "type": "git", - "url": "http://github.com/estools/estraverse.git" - }, - "devDependencies": { - "babel-preset-env": "^1.6.1", - "babel-register": "^6.3.13", - "chai": "^2.1.1", - "espree": "^1.11.0", - "gulp": "^3.8.10", - "gulp-bump": "^0.2.2", - "gulp-filter": "^2.0.0", - "gulp-git": "^1.0.1", - "gulp-tag-version": "^1.3.0", - "jshint": "^2.5.6", - "mocha": "^2.1.0" - }, - "license": "BSD-2-Clause", - "scripts": { - "test": "npm run-script lint && npm run-script unit-test", - "lint": "jshint estraverse.js", - "unit-test": "mocha --compilers js:babel-register" - } -} diff --git a/node_modules/eslint/node_modules/estraverse/.jshintrc b/node_modules/estraverse/.jshintrc similarity index 100% rename from node_modules/eslint/node_modules/estraverse/.jshintrc rename to node_modules/estraverse/.jshintrc diff --git a/node_modules/eslint/node_modules/estraverse/LICENSE.BSD b/node_modules/estraverse/LICENSE.BSD similarity index 100% rename from node_modules/eslint/node_modules/estraverse/LICENSE.BSD rename to node_modules/estraverse/LICENSE.BSD diff --git a/node_modules/eslint/node_modules/estraverse/README.md b/node_modules/estraverse/README.md similarity index 100% rename from node_modules/eslint/node_modules/estraverse/README.md rename to node_modules/estraverse/README.md diff --git a/node_modules/eslint/node_modules/estraverse/estraverse.js b/node_modules/estraverse/estraverse.js similarity index 100% rename from node_modules/eslint/node_modules/estraverse/estraverse.js rename to node_modules/estraverse/estraverse.js diff --git a/node_modules/eslint/node_modules/estraverse/gulpfile.js b/node_modules/estraverse/gulpfile.js similarity index 100% rename from node_modules/eslint/node_modules/estraverse/gulpfile.js rename to node_modules/estraverse/gulpfile.js diff --git a/node_modules/eslint/node_modules/estraverse/package.json b/node_modules/estraverse/package.json similarity index 100% rename from node_modules/eslint/node_modules/estraverse/package.json rename to node_modules/estraverse/package.json diff --git a/node_modules/get-intrinsic/.eslintrc b/node_modules/get-intrinsic/.eslintrc index 0ab0876eb2..8376636235 100644 --- a/node_modules/get-intrinsic/.eslintrc +++ b/node_modules/get-intrinsic/.eslintrc @@ -17,6 +17,7 @@ "eqeqeq": [2, "allow-null"], "func-name-matching": 0, "id-length": 0, + "max-lines": 0, "max-lines-per-function": [2, 90], "max-params": [2, 4], "max-statements": 0, diff --git a/node_modules/get-intrinsic/CHANGELOG.md b/node_modules/get-intrinsic/CHANGELOG.md index 1bb52d3847..37370b931f 100644 --- a/node_modules/get-intrinsic/CHANGELOG.md +++ b/node_modules/get-intrinsic/CHANGELOG.md @@ -5,6 +5,25 @@ All notable changes to this project will be documented in this file. The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.0.0/) and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0.html). +## [v1.2.1](https://github.com/ljharb/get-intrinsic/compare/v1.2.0...v1.2.1) - 2023-05-13 + +### Commits + +- [Fix] avoid a crash in envs without `__proto__` [`7bad8d0`](https://github.com/ljharb/get-intrinsic/commit/7bad8d061bf8721733b58b73a2565af2b6756b64) +- [Dev Deps] update `es-abstract` [`c60e6b7`](https://github.com/ljharb/get-intrinsic/commit/c60e6b7b4cf9660c7f27ed970970fd55fac48dc5) + +## [v1.2.0](https://github.com/ljharb/get-intrinsic/compare/v1.1.3...v1.2.0) - 2023-01-19 + +### Commits + +- [actions] update checkout action [`ca6b12f`](https://github.com/ljharb/get-intrinsic/commit/ca6b12f31eaacea4ea3b055e744cd61623385ffb) +- [Dev Deps] update `@ljharb/eslint-config`, `es-abstract`, `object-inspect`, `tape` [`41a3727`](https://github.com/ljharb/get-intrinsic/commit/41a3727d0026fa04273ae216a5f8e12eefd72da8) +- [Fix] ensure `Error.prototype` is undeniable [`c511e97`](https://github.com/ljharb/get-intrinsic/commit/c511e97ae99c764c4524b540dee7a70757af8da3) +- [Dev Deps] update `aud`, `es-abstract`, `tape` [`1bef8a8`](https://github.com/ljharb/get-intrinsic/commit/1bef8a8fd439ebb80863199b6189199e0851ac67) +- [Dev Deps] update `aud`, `es-abstract` [`0d41f16`](https://github.com/ljharb/get-intrinsic/commit/0d41f16bcd500bc28b7bfc98043ebf61ea081c26) +- [New] add `BigInt64Array` and `BigUint64Array` [`a6cca25`](https://github.com/ljharb/get-intrinsic/commit/a6cca25f29635889b7e9bd669baf9e04be90e48c) +- [Tests] use `gopd` [`ecf7722`](https://github.com/ljharb/get-intrinsic/commit/ecf7722240d15cfd16edda06acf63359c10fb9bd) + ## [v1.1.3](https://github.com/ljharb/get-intrinsic/compare/v1.1.2...v1.1.3) - 2022-09-12 ### Commits diff --git a/node_modules/get-intrinsic/index.js b/node_modules/get-intrinsic/index.js index 3c3d93eb79..c1957c9dd2 100644 --- a/node_modules/get-intrinsic/index.js +++ b/node_modules/get-intrinsic/index.js @@ -43,18 +43,23 @@ var ThrowTypeError = $gOPD : throwTypeError; var hasSymbols = require('has-symbols')(); +var hasProto = require('has-proto')(); -var getProto = Object.getPrototypeOf || function (x) { return x.__proto__; }; // eslint-disable-line no-proto +var getProto = Object.getPrototypeOf || ( + hasProto + ? function (x) { return x.__proto__; } // eslint-disable-line no-proto + : null +); var needsEval = {}; -var TypedArray = typeof Uint8Array === 'undefined' ? undefined : getProto(Uint8Array); +var TypedArray = typeof Uint8Array === 'undefined' || !getProto ? undefined : getProto(Uint8Array); var INTRINSICS = { '%AggregateError%': typeof AggregateError === 'undefined' ? undefined : AggregateError, '%Array%': Array, '%ArrayBuffer%': typeof ArrayBuffer === 'undefined' ? undefined : ArrayBuffer, - '%ArrayIteratorPrototype%': hasSymbols ? getProto([][Symbol.iterator]()) : undefined, + '%ArrayIteratorPrototype%': hasSymbols && getProto ? getProto([][Symbol.iterator]()) : undefined, '%AsyncFromSyncIteratorPrototype%': undefined, '%AsyncFunction%': needsEval, '%AsyncGenerator%': needsEval, @@ -62,6 +67,8 @@ var INTRINSICS = { '%AsyncIteratorPrototype%': needsEval, '%Atomics%': typeof Atomics === 'undefined' ? undefined : Atomics, '%BigInt%': typeof BigInt === 'undefined' ? undefined : BigInt, + '%BigInt64Array%': typeof BigInt64Array === 'undefined' ? undefined : BigInt64Array, + '%BigUint64Array%': typeof BigUint64Array === 'undefined' ? undefined : BigUint64Array, '%Boolean%': Boolean, '%DataView%': typeof DataView === 'undefined' ? undefined : DataView, '%Date%': Date, @@ -82,10 +89,10 @@ var INTRINSICS = { '%Int32Array%': typeof Int32Array === 'undefined' ? undefined : Int32Array, '%isFinite%': isFinite, '%isNaN%': isNaN, - '%IteratorPrototype%': hasSymbols ? getProto(getProto([][Symbol.iterator]())) : undefined, + '%IteratorPrototype%': hasSymbols && getProto ? getProto(getProto([][Symbol.iterator]())) : undefined, '%JSON%': typeof JSON === 'object' ? JSON : undefined, '%Map%': typeof Map === 'undefined' ? undefined : Map, - '%MapIteratorPrototype%': typeof Map === 'undefined' || !hasSymbols ? undefined : getProto(new Map()[Symbol.iterator]()), + '%MapIteratorPrototype%': typeof Map === 'undefined' || !hasSymbols || !getProto ? undefined : getProto(new Map()[Symbol.iterator]()), '%Math%': Math, '%Number%': Number, '%Object%': Object, @@ -98,10 +105,10 @@ var INTRINSICS = { '%Reflect%': typeof Reflect === 'undefined' ? undefined : Reflect, '%RegExp%': RegExp, '%Set%': typeof Set === 'undefined' ? undefined : Set, - '%SetIteratorPrototype%': typeof Set === 'undefined' || !hasSymbols ? undefined : getProto(new Set()[Symbol.iterator]()), + '%SetIteratorPrototype%': typeof Set === 'undefined' || !hasSymbols || !getProto ? undefined : getProto(new Set()[Symbol.iterator]()), '%SharedArrayBuffer%': typeof SharedArrayBuffer === 'undefined' ? undefined : SharedArrayBuffer, '%String%': String, - '%StringIteratorPrototype%': hasSymbols ? getProto(''[Symbol.iterator]()) : undefined, + '%StringIteratorPrototype%': hasSymbols && getProto ? getProto(''[Symbol.iterator]()) : undefined, '%Symbol%': hasSymbols ? Symbol : undefined, '%SyntaxError%': $SyntaxError, '%ThrowTypeError%': ThrowTypeError, @@ -117,6 +124,16 @@ var INTRINSICS = { '%WeakSet%': typeof WeakSet === 'undefined' ? undefined : WeakSet }; +if (getProto) { + try { + null.error; // eslint-disable-line no-unused-expressions + } catch (e) { + // https://github.com/tc39/proposal-shadowrealm/pull/384#issuecomment-1364264229 + var errorProto = getProto(getProto(e)); + INTRINSICS['%Error.prototype%'] = errorProto; + } +} + var doEval = function doEval(name) { var value; if (name === '%AsyncFunction%') { @@ -132,7 +149,7 @@ var doEval = function doEval(name) { } } else if (name === '%AsyncIteratorPrototype%') { var gen = doEval('%AsyncGenerator%'); - if (gen) { + if (gen && getProto) { value = getProto(gen.prototype); } } diff --git a/node_modules/get-intrinsic/package.json b/node_modules/get-intrinsic/package.json index 8dadb7dcb7..be3a74a457 100644 --- a/node_modules/get-intrinsic/package.json +++ b/node_modules/get-intrinsic/package.json @@ -1,6 +1,6 @@ { "name": "get-intrinsic", - "version": "1.1.3", + "version": "1.2.1", "description": "Get and robustly cache all JS language-level intrinsics at first require time", "main": "index.js", "exports": { @@ -48,24 +48,25 @@ }, "homepage": "https://github.com/ljharb/get-intrinsic#readme", "devDependencies": { - "@ljharb/eslint-config": "^21.0.0", - "aud": "^2.0.0", + "@ljharb/eslint-config": "^21.0.1", + "aud": "^2.0.2", "auto-changelog": "^2.4.0", "call-bind": "^1.0.2", - "es-abstract": "^1.20.2", + "es-abstract": "^1.21.2", "es-value-fixtures": "^1.4.2", "eslint": "=8.8.0", "evalmd": "^0.0.19", "for-each": "^0.3.3", + "gopd": "^1.0.1", "make-async-function": "^1.0.0", "make-async-generator-function": "^1.0.0", "make-generator-function": "^2.0.0", "mock-property": "^1.0.0", "npmignore": "^0.3.0", "nyc": "^10.3.2", - "object-inspect": "^1.12.2", + "object-inspect": "^1.12.3", "safe-publish-latest": "^2.0.0", - "tape": "^5.6.0" + "tape": "^5.6.3" }, "auto-changelog": { "output": "CHANGELOG.md", @@ -78,6 +79,7 @@ "dependencies": { "function-bind": "^1.1.1", "has": "^1.0.3", + "has-proto": "^1.0.1", "has-symbols": "^1.0.3" }, "testling": { diff --git a/node_modules/get-intrinsic/test/GetIntrinsic.js b/node_modules/get-intrinsic/test/GetIntrinsic.js index 7e0ea30f69..1cc08e00ce 100644 --- a/node_modules/get-intrinsic/test/GetIntrinsic.js +++ b/node_modules/get-intrinsic/test/GetIntrinsic.js @@ -12,7 +12,7 @@ var mockProperty = require('mock-property'); var callBound = require('call-bind/callBound'); var v = require('es-value-fixtures'); -var $gOPD = require('es-abstract/helpers/getOwnPropertyDescriptor'); +var $gOPD = require('gopd'); var DefinePropertyOrThrow = require('es-abstract/2021/DefinePropertyOrThrow'); var $isProto = callBound('%Object.prototype.isPrototypeOf%'); diff --git a/node_modules/internal-slot/CHANGELOG.md b/node_modules/internal-slot/CHANGELOG.md index 968b4e79cc..0c5b3e1943 100644 --- a/node_modules/internal-slot/CHANGELOG.md +++ b/node_modules/internal-slot/CHANGELOG.md @@ -4,6 +4,14 @@ All notable changes to this project will be documented in this file. Dates are d Generated by [`auto-changelog`](https://github.com/CookPete/auto-changelog). +#### [v1.0.5](https://github.com/ljharb/internal-slot/compare/v1.0.4...v1.0.5) + +> 9 February 2023 + +- [Dev Deps] update `@ljharb/eslint-config`, `aud`, `object-inspect`, `tape` [`e427703`](https://github.com/ljharb/internal-slot/commit/e427703bfc669c590a863ec77ecd3789d7b7c458) +- [Deps] update `get-intrinsic` [`aa652f0`](https://github.com/ljharb/internal-slot/commit/aa652f05c5c15b4ed1a118be60f0565e47bd7208) +- [Fix] improve assertion message [`8df86e3`](https://github.com/ljharb/internal-slot/commit/8df86e3ea21786b5eb7654f22202665c8b63accf) + #### [v1.0.4](https://github.com/ljharb/internal-slot/compare/v1.0.3...v1.0.4) > 13 December 2022 diff --git a/node_modules/internal-slot/index.js b/node_modules/internal-slot/index.js index 97d44545aa..ab3496d9bb 100644 --- a/node_modules/internal-slot/index.js +++ b/node_modules/internal-slot/index.js @@ -16,7 +16,7 @@ var SLOT = { } channel.assert(O); if (!SLOT.has(O, slot)) { - throw new $TypeError('`slot` is not present on `O`'); + throw new $TypeError('`' + slot + '` is not present on `O`'); } }, get: function (O, slot) { diff --git a/node_modules/internal-slot/package.json b/node_modules/internal-slot/package.json index 7f52512682..e8bef9b358 100644 --- a/node_modules/internal-slot/package.json +++ b/node_modules/internal-slot/package.json @@ -1,6 +1,6 @@ { "name": "internal-slot", - "version": "1.0.4", + "version": "1.0.5", "description": "ES spec-like internal slots", "main": "index.js", "scripts": { @@ -41,19 +41,19 @@ "node": ">= 0.4" }, "devDependencies": { - "@ljharb/eslint-config": "^21.0.0", - "aud": "^2.0.1", + "@ljharb/eslint-config": "^21.0.1", + "aud": "^2.0.2", "auto-changelog": "^2.4.0", "eslint": "=8.8.0", "for-each": "^0.3.3", "npmignore": "^0.3.0", "nyc": "^10.3.2", - "object-inspect": "^1.12.2", + "object-inspect": "^1.12.3", "safe-publish-latest": "^2.0.0", - "tape": "^5.6.1" + "tape": "^5.6.3" }, "dependencies": { - "get-intrinsic": "^1.1.3", + "get-intrinsic": "^1.2.0", "has": "^1.0.3", "side-channel": "^1.0.4" }, diff --git a/node_modules/is-array-buffer/CHANGELOG.md b/node_modules/is-array-buffer/CHANGELOG.md index c4de673390..0c84af712b 100644 --- a/node_modules/is-array-buffer/CHANGELOG.md +++ b/node_modules/is-array-buffer/CHANGELOG.md @@ -5,6 +5,14 @@ All notable changes to this project will be documented in this file. The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.0.0/) and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0.html). +## [v3.0.2](https://github.com/fengyuanchen/is-array-buffer/compare/v3.0.1...v3.0.2) - 2023-03-01 + +### Commits + +- [Fix] `node` 0.8: an object arg to a TA only throws a RangeError when it is an ArrayBuffer of an incompatible byte length [`d5108f6`](https://github.com/fengyuanchen/is-array-buffer/commit/d5108f6d06245e616b6c563995f214a38732243c) +- [Dev Deps] update `object-inspect`, `tape` [`400f456`](https://github.com/fengyuanchen/is-array-buffer/commit/400f4563ccbe27c7fbb485665352c76210bba9cb) +- [Deps] update `get-intrinsic` [`133732e`](https://github.com/fengyuanchen/is-array-buffer/commit/133732ec88f8dded1c705b758badc2240077a6d8) + ## [v3.0.1](https://github.com/fengyuanchen/is-array-buffer/compare/v3.0.0...v3.0.1) - 2023-01-05 ### Commits diff --git a/node_modules/is-array-buffer/index.js b/node_modules/is-array-buffer/index.js index e869205dea..7674285eee 100644 --- a/node_modules/is-array-buffer/index.js +++ b/node_modules/is-array-buffer/index.js @@ -35,7 +35,7 @@ module.exports = $byteLength || $abSlice try { return (new $Float32Array(obj)).buffer === obj && !isTypedArray(obj); } catch (e) { - return false; + return typeof obj === 'object' && e.name === 'RangeError'; } } : function isArrayBuffer(obj) { // eslint-disable-line no-unused-vars diff --git a/node_modules/is-array-buffer/package.json b/node_modules/is-array-buffer/package.json index 1f89314ec4..e5b6b1d1bf 100644 --- a/node_modules/is-array-buffer/package.json +++ b/node_modules/is-array-buffer/package.json @@ -1,6 +1,6 @@ { "name": "is-array-buffer", - "version": "3.0.1", + "version": "3.0.2", "description": "Is this value a JS ArrayBuffer?", "main": "index.js", "exports": { @@ -52,9 +52,9 @@ "in-publish": "^2.0.1", "npmignore": "^0.3.0", "nyc": "^10.3.2", - "object-inspect": "^1.12.2", + "object-inspect": "^1.12.3", "safe-publish-latest": "^2.0.0", - "tape": "^5.6.1" + "tape": "^5.6.3" }, "auto-changelog": { "output": "CHANGELOG.md", @@ -67,7 +67,7 @@ }, "dependencies": { "call-bind": "^1.0.2", - "get-intrinsic": "^1.1.3", + "get-intrinsic": "^1.2.0", "is-typed-array": "^1.1.10" }, "publishConfig": { diff --git a/node_modules/is-array-buffer/test/index.js b/node_modules/is-array-buffer/test/index.js index 10a60e7690..7ddf9d72fc 100644 --- a/node_modules/is-array-buffer/test/index.js +++ b/node_modules/is-array-buffer/test/index.js @@ -21,9 +21,11 @@ test('isArrayBuffer', function (t) { t.test('actual ArrayBuffer instances', { skip: typeof ArrayBuffer === 'undefined' }, function (st) { var ab = new ArrayBuffer(); - st.equal(isArrayBuffer(ab), true, inspect(ab) + ' is an ArrayBuffer'); + var ab42 = new ArrayBuffer(42); + st.equal(isArrayBuffer(ab42), true, inspect(ab42) + ' is an ArrayBuffer'); + st.end(); }); diff --git a/node_modules/is-core-module/CHANGELOG.md b/node_modules/is-core-module/CHANGELOG.md index a2ff25426e..028384aee9 100644 --- a/node_modules/is-core-module/CHANGELOG.md +++ b/node_modules/is-core-module/CHANGELOG.md @@ -5,6 +5,21 @@ All notable changes to this project will be documented in this file. The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.0.0/) and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0.html). +## [v2.12.1](https://github.com/inspect-js/is-core-module/compare/v2.12.0...v2.12.1) - 2023-05-16 + +### Commits + +- [Fix] `test/reporters` now requires the `node:` prefix as of v20.2 [`12183d0`](https://github.com/inspect-js/is-core-module/commit/12183d0d8e4edf56b6ce18a1b3be54bfce10175b) + +## [v2.12.0](https://github.com/inspect-js/is-core-module/compare/v2.11.0...v2.12.0) - 2023-04-10 + +### Commits + +- [actions] update rebase action to use reusable workflow [`c0a7251`](https://github.com/inspect-js/is-core-module/commit/c0a7251f734f3c621932c5fcdfd1bf966b42ca32) +- [Dev Deps] update `@ljharb/eslint-config`, `aud`, `tape` [`9ae8b7f`](https://github.com/inspect-js/is-core-module/commit/9ae8b7fac03c369861d0991b4a2ce8d4848e6a7d) +- [New] `test/reporters` added in v19.9, `wasi` added in v20 [`9d5341a`](https://github.com/inspect-js/is-core-module/commit/9d5341ab32053f25b7fa7db3c0e18461db24a79c) +- [Dev Deps] add missing `in-publish` dep [`5980245`](https://github.com/inspect-js/is-core-module/commit/59802456e9ac919fa748f53be9d8fbf304a197df) + ## [v2.11.0](https://github.com/inspect-js/is-core-module/compare/v2.10.0...v2.11.0) - 2022-10-18 ### Commits diff --git a/node_modules/is-core-module/core.json b/node_modules/is-core-module/core.json index d73579c43c..af29f0b734 100644 --- a/node_modules/is-core-module/core.json +++ b/node_modules/is-core-module/core.json @@ -114,6 +114,8 @@ "node:string_decoder": [">= 14.18 && < 15", ">= 16"], "sys": [">= 0.4 && < 0.7", ">= 0.8"], "node:sys": [">= 14.18 && < 15", ">= 16"], + "test/reporters": ">= 19.9 && < 20.2", + "node:test/reporters": [">= 19.9", ">= 20"], "node:test": [">= 16.17 && < 17", ">= 18"], "timers": true, "node:timers": [">= 14.18 && < 15", ">= 16"], @@ -147,7 +149,8 @@ "node:v8": [">= 14.18 && < 15", ">= 16"], "vm": true, "node:vm": [">= 14.18 && < 15", ">= 16"], - "wasi": ">= 13.4 && < 13.5", + "wasi": [">= 13.4 && < 13.5", ">= 20"], + "node:wasi": ">= 20", "worker_threads": ">= 11.7", "node:worker_threads": [">= 14.18 && < 15", ">= 16"], "zlib": ">= 0.5", diff --git a/node_modules/is-core-module/package.json b/node_modules/is-core-module/package.json index 5b893c0d27..fa943aad8f 100644 --- a/node_modules/is-core-module/package.json +++ b/node_modules/is-core-module/package.json @@ -1,6 +1,6 @@ { "name": "is-core-module", - "version": "2.11.0", + "version": "2.12.1", "description": "Is this specifier a node.js core module?", "main": "index.js", "sideEffects": false, @@ -45,16 +45,17 @@ "has": "^1.0.3" }, "devDependencies": { - "@ljharb/eslint-config": "^21.0.0", - "aud": "^2.0.1", + "@ljharb/eslint-config": "^21.0.1", + "aud": "^2.0.2", "auto-changelog": "^2.4.0", "eslint": "=8.8.0", + "in-publish": "^2.0.1", "mock-property": "^1.0.0", "npmignore": "^0.3.0", "nyc": "^10.3.2", "safe-publish-latest": "^2.0.0", "semver": "^6.3.0", - "tape": "^5.6.1" + "tape": "^5.6.3" }, "auto-changelog": { "output": "CHANGELOG.md", diff --git a/node_modules/minimist/.eslintrc b/node_modules/minimist/.eslintrc index 137f67b433..bd1a5e046b 100644 --- a/node_modules/minimist/.eslintrc +++ b/node_modules/minimist/.eslintrc @@ -1,54 +1,29 @@ { - "root": true, + "root": true, - "extends": "@ljharb/eslint-config/node/0.4", + "extends": "@ljharb/eslint-config/node/0.4", - "rules": { - "array-bracket-spacing": 0, - "array-element-newline": 0, - "brace-style": 1, - "camelcase": 1, - "comma-dangle": 1, - "comma-spacing": 1, - "complexity": 0, - "curly": 1, - "dot-notation": 1, - "eol-last": 1, - "func-style": 1, - "function-paren-newline": 1, - "indent": [1, 4], - "key-spacing": 1, - "max-lines-per-function": 0, - "max-nested-callbacks": 1, - "max-statements": 0, - "multiline-comment-style": 1, - "no-array-constructor": 1, - "no-continue": 1, - "no-div-regex": 1, - "no-extra-parens": 1, - "no-mixed-operators": 1, - "no-multi-spaces": 1, - "no-multiple-empty-lines": 1, - "no-param-reassign": 1, - "no-plusplus": 1, - "no-proto": 1, - "no-redeclare": 1, - "no-restricted-syntax": 1, - "no-shadow": 1, - "no-trailing-spaces": 1, - "no-unused-vars": 1, - "no-use-before-define": 1, - "object-curly-newline": 1, - "object-curly-spacing": 1, - "operator-linebreak": 1, - "quote-props": 1, - "quotes": 1, - "semi-style": 1, - "semi": 1, - "space-before-blocks": 1, - "space-before-function-paren": 1, - "space-infix-ops": 1, - "strict": 1, - "wrap-regex": 1, - }, + "rules": { + "array-element-newline": 0, + "complexity": 0, + "func-style": [2, "declaration"], + "max-lines-per-function": 0, + "max-nested-callbacks": 1, + "max-statements-per-line": 1, + "max-statements": 0, + "multiline-comment-style": 0, + "no-continue": 1, + "no-param-reassign": 1, + "no-restricted-syntax": 1, + "object-curly-newline": 0, + }, + + "overrides": [ + { + "files": "test/**", + "rules": { + "camelcase": 0, + }, + }, + ] } diff --git a/node_modules/minimist/CHANGELOG.md b/node_modules/minimist/CHANGELOG.md index e0e00bd002..c9a1e15e6c 100644 --- a/node_modules/minimist/CHANGELOG.md +++ b/node_modules/minimist/CHANGELOG.md @@ -5,6 +5,52 @@ All notable changes to this project will be documented in this file. The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.0.0/) and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0.html). +## [v1.2.8](https://github.com/minimistjs/minimist/compare/v1.2.7...v1.2.8) - 2023-02-09 + +### Merged + +- [Fix] Fix long option followed by single dash [`#17`](https://github.com/minimistjs/minimist/pull/17) +- [Tests] Remove duplicate test [`#12`](https://github.com/minimistjs/minimist/pull/12) +- [Fix] opt.string works with multiple aliases [`#10`](https://github.com/minimistjs/minimist/pull/10) + +### Fixed + +- [Fix] Fix long option followed by single dash (#17) [`#15`](https://github.com/minimistjs/minimist/issues/15) +- [Tests] Remove duplicate test (#12) [`#8`](https://github.com/minimistjs/minimist/issues/8) +- [Fix] Fix long option followed by single dash [`#15`](https://github.com/minimistjs/minimist/issues/15) +- [Fix] opt.string works with multiple aliases (#10) [`#9`](https://github.com/minimistjs/minimist/issues/9) +- [Fix] Fix handling of short option with non-trivial equals [`#5`](https://github.com/minimistjs/minimist/issues/5) +- [Tests] Remove duplicate test [`#8`](https://github.com/minimistjs/minimist/issues/8) +- [Fix] opt.string works with multiple aliases [`#9`](https://github.com/minimistjs/minimist/issues/9) + +### Commits + +- Merge tag 'v0.2.3' [`a026794`](https://github.com/minimistjs/minimist/commit/a0267947c7870fc5847cf2d437fbe33f392767da) +- [eslint] fix indentation and whitespace [`5368ca4`](https://github.com/minimistjs/minimist/commit/5368ca4147e974138a54cc0dc4cea8f756546b70) +- [eslint] fix indentation and whitespace [`e5f5067`](https://github.com/minimistjs/minimist/commit/e5f5067259ceeaf0b098d14bec910f87e58708c7) +- [eslint] more cleanup [`62fde7d`](https://github.com/minimistjs/minimist/commit/62fde7d935f83417fb046741531a9e2346a36976) +- [eslint] more cleanup [`36ac5d0`](https://github.com/minimistjs/minimist/commit/36ac5d0d95e4947d074e5737d94814034ca335d1) +- [meta] add `auto-changelog` [`73923d2`](https://github.com/minimistjs/minimist/commit/73923d223553fca08b1ba77e3fbc2a492862ae4c) +- [actions] add reusable workflows [`d80727d`](https://github.com/minimistjs/minimist/commit/d80727df77bfa9e631044d7f16368d8f09242c91) +- [eslint] add eslint; rules to enable later are warnings [`48bc06a`](https://github.com/minimistjs/minimist/commit/48bc06a1b41f00e9cdf183db34f7a51ba70e98d4) +- [eslint] fix indentation [`34b0f1c`](https://github.com/minimistjs/minimist/commit/34b0f1ccaa45183c3c4f06a91f9b405180a6f982) +- [readme] rename and add badges [`5df0fe4`](https://github.com/minimistjs/minimist/commit/5df0fe49211bd09a3636f8686a7cb3012c3e98f0) +- [Dev Deps] switch from `covert` to `nyc` [`a48b128`](https://github.com/minimistjs/minimist/commit/a48b128fdb8d427dfb20a15273f83e38d97bef07) +- [Dev Deps] update `covert`, `tape`; remove unnecessary `tap` [`f0fb958`](https://github.com/minimistjs/minimist/commit/f0fb958e9a1fe980cdffc436a211b0bda58f621b) +- [meta] create FUNDING.yml; add `funding` in package.json [`3639e0c`](https://github.com/minimistjs/minimist/commit/3639e0c819359a366387e425ab6eabf4c78d3caa) +- [meta] use `npmignore` to autogenerate an npmignore file [`be2e038`](https://github.com/minimistjs/minimist/commit/be2e038c342d8333b32f0fde67a0026b79c8150e) +- Only apps should have lockfiles [`282b570`](https://github.com/minimistjs/minimist/commit/282b570e7489d01b03f2d6d3dabf79cd3e5f84cf) +- isConstructorOrProto adapted from PR [`ef9153f`](https://github.com/minimistjs/minimist/commit/ef9153fc52b6cea0744b2239921c5dcae4697f11) +- [Dev Deps] update `@ljharb/eslint-config`, `aud` [`098873c`](https://github.com/minimistjs/minimist/commit/098873c213cdb7c92e55ae1ef5aa1af3a8192a79) +- [Dev Deps] update `@ljharb/eslint-config`, `aud` [`3124ed3`](https://github.com/minimistjs/minimist/commit/3124ed3e46306301ebb3c834874ce0241555c2c4) +- [meta] add `safe-publish-latest` [`4b927de`](https://github.com/minimistjs/minimist/commit/4b927de696d561c636b4f43bf49d4597cb36d6d6) +- [Tests] add `aud` in `posttest` [`b32d9bd`](https://github.com/minimistjs/minimist/commit/b32d9bd0ab340f4e9f8c3a97ff2a4424f25fab8c) +- [meta] update repo URLs [`f9fdfc0`](https://github.com/minimistjs/minimist/commit/f9fdfc032c54884d9a9996a390c63cd0719bbe1a) +- [actions] Avoid 0.6 tests due to build failures [`ba92fe6`](https://github.com/minimistjs/minimist/commit/ba92fe6ebbdc0431cca9a2ea8f27beb492f5e4ec) +- [Dev Deps] update `tape` [`950eaa7`](https://github.com/minimistjs/minimist/commit/950eaa74f112e04d23e9c606c67472c46739b473) +- [Dev Deps] add missing `npmignore` dev dep [`3226afa`](https://github.com/minimistjs/minimist/commit/3226afaf09e9d127ca369742437fe6e88f752d6b) +- Merge tag 'v0.2.2' [`980d7ac`](https://github.com/minimistjs/minimist/commit/980d7ac61a0b4bd552711251ac107d506b23e41f) + ## [v1.2.7](https://github.com/minimistjs/minimist/compare/v1.2.6...v1.2.7) - 2022-10-10 ### Commits @@ -109,13 +155,53 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0 - coverage script [`e5531ba`](https://github.com/minimistjs/minimist/commit/e5531ba0479da3b8138d3d8cac545d84ccb1c8df) - extra fn to get 100% coverage again [`a6972da`](https://github.com/minimistjs/minimist/commit/a6972da89e56bf77642f8ec05a13b6558db93498) -## [v1.0.0](https://github.com/minimistjs/minimist/compare/v0.2.1...v1.0.0) - 2014-08-10 +## [v1.0.0](https://github.com/minimistjs/minimist/compare/v0.2.3...v1.0.0) - 2014-08-10 ### Commits - added stopEarly option [`471c7e4`](https://github.com/minimistjs/minimist/commit/471c7e4a7e910fc7ad8f9df850a186daf32c64e9) - fix list [`fef6ae7`](https://github.com/minimistjs/minimist/commit/fef6ae79c38b9dc1c49569abb7cd04eb965eac5e) +## [v0.2.3](https://github.com/minimistjs/minimist/compare/v0.2.2...v0.2.3) - 2023-02-09 + +### Merged + +- [Fix] Fix long option followed by single dash [`#17`](https://github.com/minimistjs/minimist/pull/17) +- [Tests] Remove duplicate test [`#12`](https://github.com/minimistjs/minimist/pull/12) +- [Fix] opt.string works with multiple aliases [`#10`](https://github.com/minimistjs/minimist/pull/10) + +### Fixed + +- [Fix] Fix long option followed by single dash (#17) [`#15`](https://github.com/minimistjs/minimist/issues/15) +- [Tests] Remove duplicate test (#12) [`#8`](https://github.com/minimistjs/minimist/issues/8) +- [Fix] opt.string works with multiple aliases (#10) [`#9`](https://github.com/minimistjs/minimist/issues/9) + +### Commits + +- [eslint] fix indentation and whitespace [`e5f5067`](https://github.com/minimistjs/minimist/commit/e5f5067259ceeaf0b098d14bec910f87e58708c7) +- [eslint] more cleanup [`36ac5d0`](https://github.com/minimistjs/minimist/commit/36ac5d0d95e4947d074e5737d94814034ca335d1) +- [eslint] fix indentation [`34b0f1c`](https://github.com/minimistjs/minimist/commit/34b0f1ccaa45183c3c4f06a91f9b405180a6f982) +- isConstructorOrProto adapted from PR [`ef9153f`](https://github.com/minimistjs/minimist/commit/ef9153fc52b6cea0744b2239921c5dcae4697f11) +- [Dev Deps] update `@ljharb/eslint-config`, `aud` [`098873c`](https://github.com/minimistjs/minimist/commit/098873c213cdb7c92e55ae1ef5aa1af3a8192a79) +- [Dev Deps] add missing `npmignore` dev dep [`3226afa`](https://github.com/minimistjs/minimist/commit/3226afaf09e9d127ca369742437fe6e88f752d6b) + +## [v0.2.2](https://github.com/minimistjs/minimist/compare/v0.2.1...v0.2.2) - 2022-10-10 + +### Commits + +- [meta] add `auto-changelog` [`73923d2`](https://github.com/minimistjs/minimist/commit/73923d223553fca08b1ba77e3fbc2a492862ae4c) +- [actions] add reusable workflows [`d80727d`](https://github.com/minimistjs/minimist/commit/d80727df77bfa9e631044d7f16368d8f09242c91) +- [eslint] add eslint; rules to enable later are warnings [`48bc06a`](https://github.com/minimistjs/minimist/commit/48bc06a1b41f00e9cdf183db34f7a51ba70e98d4) +- [readme] rename and add badges [`5df0fe4`](https://github.com/minimistjs/minimist/commit/5df0fe49211bd09a3636f8686a7cb3012c3e98f0) +- [Dev Deps] switch from `covert` to `nyc` [`a48b128`](https://github.com/minimistjs/minimist/commit/a48b128fdb8d427dfb20a15273f83e38d97bef07) +- [Dev Deps] update `covert`, `tape`; remove unnecessary `tap` [`f0fb958`](https://github.com/minimistjs/minimist/commit/f0fb958e9a1fe980cdffc436a211b0bda58f621b) +- [meta] create FUNDING.yml; add `funding` in package.json [`3639e0c`](https://github.com/minimistjs/minimist/commit/3639e0c819359a366387e425ab6eabf4c78d3caa) +- [meta] use `npmignore` to autogenerate an npmignore file [`be2e038`](https://github.com/minimistjs/minimist/commit/be2e038c342d8333b32f0fde67a0026b79c8150e) +- Only apps should have lockfiles [`282b570`](https://github.com/minimistjs/minimist/commit/282b570e7489d01b03f2d6d3dabf79cd3e5f84cf) +- [meta] add `safe-publish-latest` [`4b927de`](https://github.com/minimistjs/minimist/commit/4b927de696d561c636b4f43bf49d4597cb36d6d6) +- [Tests] add `aud` in `posttest` [`b32d9bd`](https://github.com/minimistjs/minimist/commit/b32d9bd0ab340f4e9f8c3a97ff2a4424f25fab8c) +- [meta] update repo URLs [`f9fdfc0`](https://github.com/minimistjs/minimist/commit/f9fdfc032c54884d9a9996a390c63cd0719bbe1a) + ## [v0.2.1](https://github.com/minimistjs/minimist/compare/v0.2.0...v0.2.1) - 2020-03-12 ## [v0.2.0](https://github.com/minimistjs/minimist/compare/v0.1.0...v0.2.0) - 2014-06-19 diff --git a/node_modules/minimist/README.md b/node_modules/minimist/README.md index 30ff92dfbb..74da3234b4 100644 --- a/node_modules/minimist/README.md +++ b/node_modules/minimist/README.md @@ -26,14 +26,16 @@ $ node example/parse.js -a beep -b boop ``` $ node example/parse.js -x 3 -y 4 -n5 -abc --beep=boop foo bar baz -{ _: [ 'foo', 'bar', 'baz' ], - x: 3, - y: 4, - n: 5, - a: true, - b: true, - c: true, - beep: 'boop' } +{ + _: ['foo', 'bar', 'baz'], + x: 3, + y: 4, + n: 5, + a: true, + b: true, + c: true, + beep: 'boop' +} ``` # security @@ -81,8 +83,10 @@ and `argv['--']` with everything after the `--`. Here's an example: ``` > require('./')('one two three -- four five --six'.split(' '), { '--': true }) - { _: [ 'one', 'two', 'three' ], - '--': [ 'four', 'five', '--six' ] } + { + _: ['one', 'two', 'three'], + '--': ['four', 'five', '--six'] + } ``` Note that with `opts['--']` set, parsing for arguments still stops after the diff --git a/node_modules/minimist/example/parse.js b/node_modules/minimist/example/parse.js index f7c8d49807..9d90ffb264 100644 --- a/node_modules/minimist/example/parse.js +++ b/node_modules/minimist/example/parse.js @@ -1,2 +1,4 @@ +'use strict'; + var argv = require('../')(process.argv.slice(2)); console.log(argv); diff --git a/node_modules/minimist/index.js b/node_modules/minimist/index.js index d9c3eb79f2..f020f3940e 100644 --- a/node_modules/minimist/index.js +++ b/node_modules/minimist/index.js @@ -1,249 +1,263 @@ -module.exports = function (args, opts) { - if (!opts) opts = {}; - - var flags = { bools : {}, strings : {}, unknownFn: null }; - - if (typeof opts['unknown'] === 'function') { - flags.unknownFn = opts['unknown']; - } - - if (typeof opts['boolean'] === 'boolean' && opts['boolean']) { - flags.allBools = true; - } else { - [].concat(opts['boolean']).filter(Boolean).forEach(function (key) { - flags.bools[key] = true; - }); - } - - var aliases = {}; - Object.keys(opts.alias || {}).forEach(function (key) { - aliases[key] = [].concat(opts.alias[key]); - aliases[key].forEach(function (x) { - aliases[x] = [key].concat(aliases[key].filter(function (y) { - return x !== y; - })); - }); - }); - - [].concat(opts.string).filter(Boolean).forEach(function (key) { - flags.strings[key] = true; - if (aliases[key]) { - flags.strings[aliases[key]] = true; - } - }); - - var defaults = opts['default'] || {}; - - var argv = { _ : [] }; - Object.keys(flags.bools).forEach(function (key) { - setArg(key, defaults[key] === undefined ? false : defaults[key]); - }); - - var notFlags = []; - - if (args.indexOf('--') !== -1) { - notFlags = args.slice(args.indexOf('--')+1); - args = args.slice(0, args.indexOf('--')); - } - - function argDefined(key, arg) { - return (flags.allBools && /^--[^=]+$/.test(arg)) || - flags.strings[key] || flags.bools[key] || aliases[key]; - } - - function setArg (key, val, arg) { - if (arg && flags.unknownFn && !argDefined(key, arg)) { - if (flags.unknownFn(arg) === false) return; - } - - var value = !flags.strings[key] && isNumber(val) - ? Number(val) : val - ; - setKey(argv, key.split('.'), value); - - (aliases[key] || []).forEach(function (x) { - setKey(argv, x.split('.'), value); - }); - } - - function setKey (obj, keys, value) { - var o = obj; - for (var i = 0; i < keys.length-1; i++) { - var key = keys[i]; - if (isConstructorOrProto(o, key)) return; - if (o[key] === undefined) o[key] = {}; - if (o[key] === Object.prototype || o[key] === Number.prototype - || o[key] === String.prototype) o[key] = {}; - if (o[key] === Array.prototype) o[key] = []; - o = o[key]; - } - - var key = keys[keys.length - 1]; - if (isConstructorOrProto(o, key)) return; - if (o === Object.prototype || o === Number.prototype - || o === String.prototype) o = {}; - if (o === Array.prototype) o = []; - if (o[key] === undefined || flags.bools[key] || typeof o[key] === 'boolean') { - o[key] = value; - } - else if (Array.isArray(o[key])) { - o[key].push(value); - } - else { - o[key] = [ o[key], value ]; - } - } - - function aliasIsBoolean(key) { - return aliases[key].some(function (x) { - return flags.bools[x]; - }); - } - - for (var i = 0; i < args.length; i++) { - var arg = args[i]; - - if (/^--.+=/.test(arg)) { - // Using [\s\S] instead of . because js doesn't support the - // 'dotall' regex modifier. See: - // http://stackoverflow.com/a/1068308/13216 - var m = arg.match(/^--([^=]+)=([\s\S]*)$/); - var key = m[1]; - var value = m[2]; - if (flags.bools[key]) { - value = value !== 'false'; - } - setArg(key, value, arg); - } - else if (/^--no-.+/.test(arg)) { - var key = arg.match(/^--no-(.+)/)[1]; - setArg(key, false, arg); - } - else if (/^--.+/.test(arg)) { - var key = arg.match(/^--(.+)/)[1]; - var next = args[i + 1]; - if (next !== undefined && !/^-/.test(next) - && !flags.bools[key] - && !flags.allBools - && (aliases[key] ? !aliasIsBoolean(key) : true)) { - setArg(key, next, arg); - i++; - } - else if (/^(true|false)$/.test(next)) { - setArg(key, next === 'true', arg); - i++; - } - else { - setArg(key, flags.strings[key] ? '' : true, arg); - } - } - else if (/^-[^-]+/.test(arg)) { - var letters = arg.slice(1,-1).split(''); - - var broken = false; - for (var j = 0; j < letters.length; j++) { - var next = arg.slice(j+2); - - if (next === '-') { - setArg(letters[j], next, arg) - continue; - } - - if (/[A-Za-z]/.test(letters[j]) && /=/.test(next)) { - setArg(letters[j], next.split('=')[1], arg); - broken = true; - break; - } - - if (/[A-Za-z]/.test(letters[j]) - && /-?\d+(\.\d*)?(e-?\d+)?$/.test(next)) { - setArg(letters[j], next, arg); - broken = true; - break; - } - - if (letters[j+1] && letters[j+1].match(/\W/)) { - setArg(letters[j], arg.slice(j+2), arg); - broken = true; - break; - } - else { - setArg(letters[j], flags.strings[letters[j]] ? '' : true, arg); - } - } - - var key = arg.slice(-1)[0]; - if (!broken && key !== '-') { - if (args[i+1] && !/^(-|--)[^-]/.test(args[i+1]) - && !flags.bools[key] - && (aliases[key] ? !aliasIsBoolean(key) : true)) { - setArg(key, args[i+1], arg); - i++; - } - else if (args[i+1] && /^(true|false)$/.test(args[i+1])) { - setArg(key, args[i+1] === 'true', arg); - i++; - } - else { - setArg(key, flags.strings[key] ? '' : true, arg); - } - } - } - else { - if (!flags.unknownFn || flags.unknownFn(arg) !== false) { - argv._.push( - flags.strings['_'] || !isNumber(arg) ? arg : Number(arg) - ); - } - if (opts.stopEarly) { - argv._.push.apply(argv._, args.slice(i + 1)); - break; - } - } - } - - Object.keys(defaults).forEach(function (key) { - if (!hasKey(argv, key.split('.'))) { - setKey(argv, key.split('.'), defaults[key]); - - (aliases[key] || []).forEach(function (x) { - setKey(argv, x.split('.'), defaults[key]); - }); - } - }); - - if (opts['--']) { - argv['--'] = new Array(); - notFlags.forEach(function(key) { - argv['--'].push(key); - }); - } - else { - notFlags.forEach(function(key) { - argv._.push(key); - }); - } - - return argv; -}; +'use strict'; -function hasKey (obj, keys) { - var o = obj; - keys.slice(0,-1).forEach(function (key) { - o = (o[key] || {}); - }); +function hasKey(obj, keys) { + var o = obj; + keys.slice(0, -1).forEach(function (key) { + o = o[key] || {}; + }); - var key = keys[keys.length - 1]; - return key in o; + var key = keys[keys.length - 1]; + return key in o; } -function isNumber (x) { - if (typeof x === 'number') return true; - if (/^0x[0-9a-f]+$/i.test(x)) return true; - return /^[-+]?(?:\d+(?:\.\d*)?|\.\d+)(e[-+]?\d+)?$/.test(x); +function isNumber(x) { + if (typeof x === 'number') { return true; } + if ((/^0x[0-9a-f]+$/i).test(x)) { return true; } + return (/^[-+]?(?:\d+(?:\.\d*)?|\.\d+)(e[-+]?\d+)?$/).test(x); } - -function isConstructorOrProto (obj, key) { - return key === 'constructor' && typeof obj[key] === 'function' || key === '__proto__'; +function isConstructorOrProto(obj, key) { + return (key === 'constructor' && typeof obj[key] === 'function') || key === '__proto__'; } + +module.exports = function (args, opts) { + if (!opts) { opts = {}; } + + var flags = { + bools: {}, + strings: {}, + unknownFn: null, + }; + + if (typeof opts.unknown === 'function') { + flags.unknownFn = opts.unknown; + } + + if (typeof opts.boolean === 'boolean' && opts.boolean) { + flags.allBools = true; + } else { + [].concat(opts.boolean).filter(Boolean).forEach(function (key) { + flags.bools[key] = true; + }); + } + + var aliases = {}; + + function aliasIsBoolean(key) { + return aliases[key].some(function (x) { + return flags.bools[x]; + }); + } + + Object.keys(opts.alias || {}).forEach(function (key) { + aliases[key] = [].concat(opts.alias[key]); + aliases[key].forEach(function (x) { + aliases[x] = [key].concat(aliases[key].filter(function (y) { + return x !== y; + })); + }); + }); + + [].concat(opts.string).filter(Boolean).forEach(function (key) { + flags.strings[key] = true; + if (aliases[key]) { + [].concat(aliases[key]).forEach(function (k) { + flags.strings[k] = true; + }); + } + }); + + var defaults = opts.default || {}; + + var argv = { _: [] }; + + function argDefined(key, arg) { + return (flags.allBools && (/^--[^=]+$/).test(arg)) + || flags.strings[key] + || flags.bools[key] + || aliases[key]; + } + + function setKey(obj, keys, value) { + var o = obj; + for (var i = 0; i < keys.length - 1; i++) { + var key = keys[i]; + if (isConstructorOrProto(o, key)) { return; } + if (o[key] === undefined) { o[key] = {}; } + if ( + o[key] === Object.prototype + || o[key] === Number.prototype + || o[key] === String.prototype + ) { + o[key] = {}; + } + if (o[key] === Array.prototype) { o[key] = []; } + o = o[key]; + } + + var lastKey = keys[keys.length - 1]; + if (isConstructorOrProto(o, lastKey)) { return; } + if ( + o === Object.prototype + || o === Number.prototype + || o === String.prototype + ) { + o = {}; + } + if (o === Array.prototype) { o = []; } + if (o[lastKey] === undefined || flags.bools[lastKey] || typeof o[lastKey] === 'boolean') { + o[lastKey] = value; + } else if (Array.isArray(o[lastKey])) { + o[lastKey].push(value); + } else { + o[lastKey] = [o[lastKey], value]; + } + } + + function setArg(key, val, arg) { + if (arg && flags.unknownFn && !argDefined(key, arg)) { + if (flags.unknownFn(arg) === false) { return; } + } + + var value = !flags.strings[key] && isNumber(val) + ? Number(val) + : val; + setKey(argv, key.split('.'), value); + + (aliases[key] || []).forEach(function (x) { + setKey(argv, x.split('.'), value); + }); + } + + Object.keys(flags.bools).forEach(function (key) { + setArg(key, defaults[key] === undefined ? false : defaults[key]); + }); + + var notFlags = []; + + if (args.indexOf('--') !== -1) { + notFlags = args.slice(args.indexOf('--') + 1); + args = args.slice(0, args.indexOf('--')); + } + + for (var i = 0; i < args.length; i++) { + var arg = args[i]; + var key; + var next; + + if ((/^--.+=/).test(arg)) { + // Using [\s\S] instead of . because js doesn't support the + // 'dotall' regex modifier. See: + // http://stackoverflow.com/a/1068308/13216 + var m = arg.match(/^--([^=]+)=([\s\S]*)$/); + key = m[1]; + var value = m[2]; + if (flags.bools[key]) { + value = value !== 'false'; + } + setArg(key, value, arg); + } else if ((/^--no-.+/).test(arg)) { + key = arg.match(/^--no-(.+)/)[1]; + setArg(key, false, arg); + } else if ((/^--.+/).test(arg)) { + key = arg.match(/^--(.+)/)[1]; + next = args[i + 1]; + if ( + next !== undefined + && !(/^(-|--)[^-]/).test(next) + && !flags.bools[key] + && !flags.allBools + && (aliases[key] ? !aliasIsBoolean(key) : true) + ) { + setArg(key, next, arg); + i += 1; + } else if ((/^(true|false)$/).test(next)) { + setArg(key, next === 'true', arg); + i += 1; + } else { + setArg(key, flags.strings[key] ? '' : true, arg); + } + } else if ((/^-[^-]+/).test(arg)) { + var letters = arg.slice(1, -1).split(''); + + var broken = false; + for (var j = 0; j < letters.length; j++) { + next = arg.slice(j + 2); + + if (next === '-') { + setArg(letters[j], next, arg); + continue; + } + + if ((/[A-Za-z]/).test(letters[j]) && next[0] === '=') { + setArg(letters[j], next.slice(1), arg); + broken = true; + break; + } + + if ( + (/[A-Za-z]/).test(letters[j]) + && (/-?\d+(\.\d*)?(e-?\d+)?$/).test(next) + ) { + setArg(letters[j], next, arg); + broken = true; + break; + } + + if (letters[j + 1] && letters[j + 1].match(/\W/)) { + setArg(letters[j], arg.slice(j + 2), arg); + broken = true; + break; + } else { + setArg(letters[j], flags.strings[letters[j]] ? '' : true, arg); + } + } + + key = arg.slice(-1)[0]; + if (!broken && key !== '-') { + if ( + args[i + 1] + && !(/^(-|--)[^-]/).test(args[i + 1]) + && !flags.bools[key] + && (aliases[key] ? !aliasIsBoolean(key) : true) + ) { + setArg(key, args[i + 1], arg); + i += 1; + } else if (args[i + 1] && (/^(true|false)$/).test(args[i + 1])) { + setArg(key, args[i + 1] === 'true', arg); + i += 1; + } else { + setArg(key, flags.strings[key] ? '' : true, arg); + } + } + } else { + if (!flags.unknownFn || flags.unknownFn(arg) !== false) { + argv._.push(flags.strings._ || !isNumber(arg) ? arg : Number(arg)); + } + if (opts.stopEarly) { + argv._.push.apply(argv._, args.slice(i + 1)); + break; + } + } + } + + Object.keys(defaults).forEach(function (k) { + if (!hasKey(argv, k.split('.'))) { + setKey(argv, k.split('.'), defaults[k]); + + (aliases[k] || []).forEach(function (x) { + setKey(argv, x.split('.'), defaults[k]); + }); + } + }); + + if (opts['--']) { + argv['--'] = notFlags.slice(); + } else { + notFlags.forEach(function (k) { + argv._.push(k); + }); + } + + return argv; +}; diff --git a/node_modules/minimist/package.json b/node_modules/minimist/package.json index 89a639ede8..ceace4c23e 100644 --- a/node_modules/minimist/package.json +++ b/node_modules/minimist/package.json @@ -1,18 +1,18 @@ { "name": "minimist", - "version": "1.2.7", + "version": "1.2.8", "description": "parse argument options", "main": "index.js", "devDependencies": { - "@ljharb/eslint-config": "^21.0.0", - "aud": "^2.0.1", + "@ljharb/eslint-config": "^21.0.1", + "aud": "^2.0.2", "auto-changelog": "^2.4.0", "eslint": "=8.8.0", "in-publish": "^2.0.1", "npmignore": "^0.3.0", "nyc": "^10.3.2", "safe-publish-latest": "^2.0.0", - "tape": "^5.6.1" + "tape": "^5.6.3" }, "scripts": { "prepack": "npmignore --auto --commentLines=auto", @@ -20,7 +20,7 @@ "prepublish": "not-in-publish || npm run prepublishOnly", "lint": "eslint --ext=js,mjs .", "pretest": "npm run lint", - "tests-only": "nyc tape test/*.js", + "tests-only": "nyc tape 'test/**/*.js'", "test": "npm run tests-only", "posttest": "aud --production", "version": "auto-changelog && git add CHANGELOG.md", diff --git a/node_modules/minimist/test/all_bool.js b/node_modules/minimist/test/all_bool.js index ac835483d9..befa0c9976 100644 --- a/node_modules/minimist/test/all_bool.js +++ b/node_modules/minimist/test/all_bool.js @@ -1,32 +1,34 @@ +'use strict'; + var parse = require('../'); var test = require('tape'); test('flag boolean true (default all --args to boolean)', function (t) { - var argv = parse(['moo', '--honk', 'cow'], { - boolean: true - }); - - t.deepEqual(argv, { - honk: true, - _: ['moo', 'cow'] - }); - - t.deepEqual(typeof argv.honk, 'boolean'); - t.end(); + var argv = parse(['moo', '--honk', 'cow'], { + boolean: true, + }); + + t.deepEqual(argv, { + honk: true, + _: ['moo', 'cow'], + }); + + t.deepEqual(typeof argv.honk, 'boolean'); + t.end(); }); test('flag boolean true only affects double hyphen arguments without equals signs', function (t) { - var argv = parse(['moo', '--honk', 'cow', '-p', '55', '--tacos=good'], { - boolean: true - }); - - t.deepEqual(argv, { - honk: true, - tacos: 'good', - p: 55, - _: ['moo', 'cow'] - }); - - t.deepEqual(typeof argv.honk, 'boolean'); - t.end(); + var argv = parse(['moo', '--honk', 'cow', '-p', '55', '--tacos=good'], { + boolean: true, + }); + + t.deepEqual(argv, { + honk: true, + tacos: 'good', + p: 55, + _: ['moo', 'cow'], + }); + + t.deepEqual(typeof argv.honk, 'boolean'); + t.end(); }); diff --git a/node_modules/minimist/test/bool.js b/node_modules/minimist/test/bool.js index 5f7dbde16c..e58d47e442 100644 --- a/node_modules/minimist/test/bool.js +++ b/node_modules/minimist/test/bool.js @@ -1,178 +1,177 @@ +'use strict'; + var parse = require('../'); var test = require('tape'); test('flag boolean default false', function (t) { - var argv = parse(['moo'], { - boolean: ['t', 'verbose'], - default: { verbose: false, t: false } - }); - - t.deepEqual(argv, { - verbose: false, - t: false, - _: ['moo'] - }); - - t.deepEqual(typeof argv.verbose, 'boolean'); - t.deepEqual(typeof argv.t, 'boolean'); - t.end(); + var argv = parse(['moo'], { + boolean: ['t', 'verbose'], + default: { verbose: false, t: false }, + }); + + t.deepEqual(argv, { + verbose: false, + t: false, + _: ['moo'], + }); + + t.deepEqual(typeof argv.verbose, 'boolean'); + t.deepEqual(typeof argv.t, 'boolean'); + t.end(); }); test('boolean groups', function (t) { - var argv = parse([ '-x', '-z', 'one', 'two', 'three' ], { - boolean: ['x','y','z'] - }); - - t.deepEqual(argv, { - x : true, - y : false, - z : true, - _ : [ 'one', 'two', 'three' ] - }); - - t.deepEqual(typeof argv.x, 'boolean'); - t.deepEqual(typeof argv.y, 'boolean'); - t.deepEqual(typeof argv.z, 'boolean'); - t.end(); + var argv = parse(['-x', '-z', 'one', 'two', 'three'], { + boolean: ['x', 'y', 'z'], + }); + + t.deepEqual(argv, { + x: true, + y: false, + z: true, + _: ['one', 'two', 'three'], + }); + + t.deepEqual(typeof argv.x, 'boolean'); + t.deepEqual(typeof argv.y, 'boolean'); + t.deepEqual(typeof argv.z, 'boolean'); + t.end(); }); test('boolean and alias with chainable api', function (t) { - var aliased = [ '-h', 'derp' ]; - var regular = [ '--herp', 'derp' ]; - var opts = { - herp: { alias: 'h', boolean: true } - }; - var aliasedArgv = parse(aliased, { - boolean: 'herp', - alias: { h: 'herp' } - }); - var propertyArgv = parse(regular, { - boolean: 'herp', - alias: { h: 'herp' } - }); - var expected = { - herp: true, - h: true, - '_': [ 'derp' ] - }; - - t.same(aliasedArgv, expected); - t.same(propertyArgv, expected); - t.end(); + var aliased = ['-h', 'derp']; + var regular = ['--herp', 'derp']; + var aliasedArgv = parse(aliased, { + boolean: 'herp', + alias: { h: 'herp' }, + }); + var propertyArgv = parse(regular, { + boolean: 'herp', + alias: { h: 'herp' }, + }); + var expected = { + herp: true, + h: true, + _: ['derp'], + }; + + t.same(aliasedArgv, expected); + t.same(propertyArgv, expected); + t.end(); }); test('boolean and alias with options hash', function (t) { - var aliased = [ '-h', 'derp' ]; - var regular = [ '--herp', 'derp' ]; - var opts = { - alias: { 'h': 'herp' }, - boolean: 'herp' - }; - var aliasedArgv = parse(aliased, opts); - var propertyArgv = parse(regular, opts); - var expected = { - herp: true, - h: true, - '_': [ 'derp' ] - }; - t.same(aliasedArgv, expected); - t.same(propertyArgv, expected); - t.end(); + var aliased = ['-h', 'derp']; + var regular = ['--herp', 'derp']; + var opts = { + alias: { h: 'herp' }, + boolean: 'herp', + }; + var aliasedArgv = parse(aliased, opts); + var propertyArgv = parse(regular, opts); + var expected = { + herp: true, + h: true, + _: ['derp'], + }; + t.same(aliasedArgv, expected); + t.same(propertyArgv, expected); + t.end(); }); test('boolean and alias array with options hash', function (t) { - var aliased = [ '-h', 'derp' ]; - var regular = [ '--herp', 'derp' ]; - var alt = [ '--harp', 'derp' ]; - var opts = { - alias: { 'h': ['herp', 'harp'] }, - boolean: 'h' - }; - var aliasedArgv = parse(aliased, opts); - var propertyArgv = parse(regular, opts); - var altPropertyArgv = parse(alt, opts); - var expected = { - harp: true, - herp: true, - h: true, - '_': [ 'derp' ] - }; - t.same(aliasedArgv, expected); - t.same(propertyArgv, expected); - t.same(altPropertyArgv, expected); - t.end(); + var aliased = ['-h', 'derp']; + var regular = ['--herp', 'derp']; + var alt = ['--harp', 'derp']; + var opts = { + alias: { h: ['herp', 'harp'] }, + boolean: 'h', + }; + var aliasedArgv = parse(aliased, opts); + var propertyArgv = parse(regular, opts); + var altPropertyArgv = parse(alt, opts); + var expected = { + harp: true, + herp: true, + h: true, + _: ['derp'], + }; + t.same(aliasedArgv, expected); + t.same(propertyArgv, expected); + t.same(altPropertyArgv, expected); + t.end(); }); test('boolean and alias using explicit true', function (t) { - var aliased = [ '-h', 'true' ]; - var regular = [ '--herp', 'true' ]; - var opts = { - alias: { h: 'herp' }, - boolean: 'h' - }; - var aliasedArgv = parse(aliased, opts); - var propertyArgv = parse(regular, opts); - var expected = { - herp: true, - h: true, - '_': [ ] - }; - - t.same(aliasedArgv, expected); - t.same(propertyArgv, expected); - t.end(); + var aliased = ['-h', 'true']; + var regular = ['--herp', 'true']; + var opts = { + alias: { h: 'herp' }, + boolean: 'h', + }; + var aliasedArgv = parse(aliased, opts); + var propertyArgv = parse(regular, opts); + var expected = { + herp: true, + h: true, + _: [], + }; + + t.same(aliasedArgv, expected); + t.same(propertyArgv, expected); + t.end(); }); // regression, see https://github.com/substack/node-optimist/issues/71 -test('boolean and --x=true', function(t) { - var parsed = parse(['--boool', '--other=true'], { - boolean: 'boool' - }); - - t.same(parsed.boool, true); - t.same(parsed.other, 'true'); - - parsed = parse(['--boool', '--other=false'], { - boolean: 'boool' - }); - - t.same(parsed.boool, true); - t.same(parsed.other, 'false'); - t.end(); +test('boolean and --x=true', function (t) { + var parsed = parse(['--boool', '--other=true'], { + boolean: 'boool', + }); + + t.same(parsed.boool, true); + t.same(parsed.other, 'true'); + + parsed = parse(['--boool', '--other=false'], { + boolean: 'boool', + }); + + t.same(parsed.boool, true); + t.same(parsed.other, 'false'); + t.end(); }); test('boolean --boool=true', function (t) { - var parsed = parse(['--boool=true'], { - default: { - boool: false - }, - boolean: ['boool'] - }); - - t.same(parsed.boool, true); - t.end(); + var parsed = parse(['--boool=true'], { + default: { + boool: false, + }, + boolean: ['boool'], + }); + + t.same(parsed.boool, true); + t.end(); }); test('boolean --boool=false', function (t) { - var parsed = parse(['--boool=false'], { - default: { - boool: true - }, - boolean: ['boool'] - }); - - t.same(parsed.boool, false); - t.end(); + var parsed = parse(['--boool=false'], { + default: { + boool: true, + }, + boolean: ['boool'], + }); + + t.same(parsed.boool, false); + t.end(); }); test('boolean using something similar to true', function (t) { - var opts = { boolean: 'h' }; - var result = parse(['-h', 'true.txt'], opts); - var expected = { - h: true, - '_': ['true.txt'] - }; - - t.same(result, expected); - t.end(); -}); \ No newline at end of file + var opts = { boolean: 'h' }; + var result = parse(['-h', 'true.txt'], opts); + var expected = { + h: true, + _: ['true.txt'], + }; + + t.same(result, expected); + t.end(); +}); diff --git a/node_modules/minimist/test/dash.js b/node_modules/minimist/test/dash.js index 5a4fa5be41..707881771e 100644 --- a/node_modules/minimist/test/dash.js +++ b/node_modules/minimist/test/dash.js @@ -1,31 +1,43 @@ +'use strict'; + var parse = require('../'); var test = require('tape'); test('-', function (t) { - t.plan(5); - t.deepEqual(parse([ '-n', '-' ]), { n: '-', _: [] }); - t.deepEqual(parse([ '-' ]), { _: [ '-' ] }); - t.deepEqual(parse([ '-f-' ]), { f: '-', _: [] }); - t.deepEqual( - parse([ '-b', '-' ], { boolean: 'b' }), - { b: true, _: [ '-' ] } - ); - t.deepEqual( - parse([ '-s', '-' ], { string: 's' }), - { s: '-', _: [] } - ); + t.plan(6); + t.deepEqual(parse(['-n', '-']), { n: '-', _: [] }); + t.deepEqual(parse(['--nnn', '-']), { nnn: '-', _: [] }); + t.deepEqual(parse(['-']), { _: ['-'] }); + t.deepEqual(parse(['-f-']), { f: '-', _: [] }); + t.deepEqual( + parse(['-b', '-'], { boolean: 'b' }), + { b: true, _: ['-'] } + ); + t.deepEqual( + parse(['-s', '-'], { string: 's' }), + { s: '-', _: [] } + ); }); test('-a -- b', function (t) { - t.plan(3); - t.deepEqual(parse([ '-a', '--', 'b' ]), { a: true, _: [ 'b' ] }); - t.deepEqual(parse([ '--a', '--', 'b' ]), { a: true, _: [ 'b' ] }); - t.deepEqual(parse([ '--a', '--', 'b' ]), { a: true, _: [ 'b' ] }); + t.plan(2); + t.deepEqual(parse(['-a', '--', 'b']), { a: true, _: ['b'] }); + t.deepEqual(parse(['--a', '--', 'b']), { a: true, _: ['b'] }); +}); + +test('move arguments after the -- into their own `--` array', function (t) { + t.plan(1); + t.deepEqual( + parse(['--name', 'John', 'before', '--', 'after'], { '--': true }), + { name: 'John', _: ['before'], '--': ['after'] } + ); }); -test('move arguments after the -- into their own `--` array', function(t) { - t.plan(1); - t.deepEqual( - parse([ '--name', 'John', 'before', '--', 'after' ], { '--': true }), - { name: 'John', _: [ 'before' ], '--': [ 'after' ] }); +test('--- option value', function (t) { + // A multi-dash value is largely an edge case, but check the behaviour is as expected, + // and in particular the same for short option and long option (as made consistent in Jan 2023). + t.plan(2); + t.deepEqual(parse(['-n', '---']), { n: '---', _: [] }); + t.deepEqual(parse(['--nnn', '---']), { nnn: '---', _: [] }); }); + diff --git a/node_modules/minimist/test/default_bool.js b/node_modules/minimist/test/default_bool.js index 780a311270..4e9f6250f0 100644 --- a/node_modules/minimist/test/default_bool.js +++ b/node_modules/minimist/test/default_bool.js @@ -1,35 +1,37 @@ +'use strict'; + var test = require('tape'); var parse = require('../'); test('boolean default true', function (t) { - var argv = parse([], { - boolean: 'sometrue', - default: { sometrue: true } - }); - t.equal(argv.sometrue, true); - t.end(); + var argv = parse([], { + boolean: 'sometrue', + default: { sometrue: true }, + }); + t.equal(argv.sometrue, true); + t.end(); }); test('boolean default false', function (t) { - var argv = parse([], { - boolean: 'somefalse', - default: { somefalse: false } - }); - t.equal(argv.somefalse, false); - t.end(); + var argv = parse([], { + boolean: 'somefalse', + default: { somefalse: false }, + }); + t.equal(argv.somefalse, false); + t.end(); }); test('boolean default to null', function (t) { - var argv = parse([], { - boolean: 'maybe', - default: { maybe: null } - }); - t.equal(argv.maybe, null); - var argv = parse(['--maybe'], { - boolean: 'maybe', - default: { maybe: null } - }); - t.equal(argv.maybe, true); - t.end(); + var argv = parse([], { + boolean: 'maybe', + default: { maybe: null }, + }); + t.equal(argv.maybe, null); -}) + var argvLong = parse(['--maybe'], { + boolean: 'maybe', + default: { maybe: null }, + }); + t.equal(argvLong.maybe, true); + t.end(); +}); diff --git a/node_modules/minimist/test/dotted.js b/node_modules/minimist/test/dotted.js index d8b3e856ec..126ff033b4 100644 --- a/node_modules/minimist/test/dotted.js +++ b/node_modules/minimist/test/dotted.js @@ -1,22 +1,24 @@ +'use strict'; + var parse = require('../'); var test = require('tape'); test('dotted alias', function (t) { - var argv = parse(['--a.b', '22'], {default: {'a.b': 11}, alias: {'a.b': 'aa.bb'}}); - t.equal(argv.a.b, 22); - t.equal(argv.aa.bb, 22); - t.end(); + var argv = parse(['--a.b', '22'], { default: { 'a.b': 11 }, alias: { 'a.b': 'aa.bb' } }); + t.equal(argv.a.b, 22); + t.equal(argv.aa.bb, 22); + t.end(); }); test('dotted default', function (t) { - var argv = parse('', {default: {'a.b': 11}, alias: {'a.b': 'aa.bb'}}); - t.equal(argv.a.b, 11); - t.equal(argv.aa.bb, 11); - t.end(); + var argv = parse('', { default: { 'a.b': 11 }, alias: { 'a.b': 'aa.bb' } }); + t.equal(argv.a.b, 11); + t.equal(argv.aa.bb, 11); + t.end(); }); test('dotted default with no alias', function (t) { - var argv = parse('', {default: {'a.b': 11}}); - t.equal(argv.a.b, 11); - t.end(); + var argv = parse('', { default: { 'a.b': 11 } }); + t.equal(argv.a.b, 11); + t.end(); }); diff --git a/node_modules/minimist/test/kv_short.js b/node_modules/minimist/test/kv_short.js index f813b30505..6d1b53a7a7 100644 --- a/node_modules/minimist/test/kv_short.js +++ b/node_modules/minimist/test/kv_short.js @@ -1,16 +1,32 @@ +'use strict'; + var parse = require('../'); var test = require('tape'); -test('short -k=v' , function (t) { - t.plan(1); - - var argv = parse([ '-b=123' ]); - t.deepEqual(argv, { b: 123, _: [] }); +test('short -k=v', function (t) { + t.plan(1); + + var argv = parse(['-b=123']); + t.deepEqual(argv, { b: 123, _: [] }); +}); + +test('multi short -k=v', function (t) { + t.plan(1); + + var argv = parse(['-a=whatever', '-b=robots']); + t.deepEqual(argv, { a: 'whatever', b: 'robots', _: [] }); }); -test('multi short -k=v' , function (t) { - t.plan(1); - - var argv = parse([ '-a=whatever', '-b=robots' ]); - t.deepEqual(argv, { a: 'whatever', b: 'robots', _: [] }); +test('short with embedded equals -k=a=b', function (t) { + t.plan(1); + + var argv = parse(['-k=a=b']); + t.deepEqual(argv, { k: 'a=b', _: [] }); +}); + +test('short with later equals like -ab=c', function (t) { + t.plan(1); + + var argv = parse(['-ab=c']); + t.deepEqual(argv, { a: true, b: 'c', _: [] }); }); diff --git a/node_modules/minimist/test/long.js b/node_modules/minimist/test/long.js index 5d3a1e09d3..9fef51f1fa 100644 --- a/node_modules/minimist/test/long.js +++ b/node_modules/minimist/test/long.js @@ -1,31 +1,33 @@ +'use strict'; + var test = require('tape'); var parse = require('../'); test('long opts', function (t) { - t.deepEqual( - parse([ '--bool' ]), - { bool : true, _ : [] }, - 'long boolean' - ); - t.deepEqual( - parse([ '--pow', 'xixxle' ]), - { pow : 'xixxle', _ : [] }, - 'long capture sp' - ); - t.deepEqual( - parse([ '--pow=xixxle' ]), - { pow : 'xixxle', _ : [] }, - 'long capture eq' - ); - t.deepEqual( - parse([ '--host', 'localhost', '--port', '555' ]), - { host : 'localhost', port : 555, _ : [] }, - 'long captures sp' - ); - t.deepEqual( - parse([ '--host=localhost', '--port=555' ]), - { host : 'localhost', port : 555, _ : [] }, - 'long captures eq' - ); - t.end(); + t.deepEqual( + parse(['--bool']), + { bool: true, _: [] }, + 'long boolean' + ); + t.deepEqual( + parse(['--pow', 'xixxle']), + { pow: 'xixxle', _: [] }, + 'long capture sp' + ); + t.deepEqual( + parse(['--pow=xixxle']), + { pow: 'xixxle', _: [] }, + 'long capture eq' + ); + t.deepEqual( + parse(['--host', 'localhost', '--port', '555']), + { host: 'localhost', port: 555, _: [] }, + 'long captures sp' + ); + t.deepEqual( + parse(['--host=localhost', '--port=555']), + { host: 'localhost', port: 555, _: [] }, + 'long captures eq' + ); + t.end(); }); diff --git a/node_modules/minimist/test/num.js b/node_modules/minimist/test/num.js index 2cc77f4d62..074393ecaf 100644 --- a/node_modules/minimist/test/num.js +++ b/node_modules/minimist/test/num.js @@ -1,36 +1,38 @@ +'use strict'; + var parse = require('../'); var test = require('tape'); test('nums', function (t) { - var argv = parse([ - '-x', '1234', - '-y', '5.67', - '-z', '1e7', - '-w', '10f', - '--hex', '0xdeadbeef', - '789' - ]); - t.deepEqual(argv, { - x : 1234, - y : 5.67, - z : 1e7, - w : '10f', - hex : 0xdeadbeef, - _ : [ 789 ] - }); - t.deepEqual(typeof argv.x, 'number'); - t.deepEqual(typeof argv.y, 'number'); - t.deepEqual(typeof argv.z, 'number'); - t.deepEqual(typeof argv.w, 'string'); - t.deepEqual(typeof argv.hex, 'number'); - t.deepEqual(typeof argv._[0], 'number'); - t.end(); + var argv = parse([ + '-x', '1234', + '-y', '5.67', + '-z', '1e7', + '-w', '10f', + '--hex', '0xdeadbeef', + '789', + ]); + t.deepEqual(argv, { + x: 1234, + y: 5.67, + z: 1e7, + w: '10f', + hex: 0xdeadbeef, + _: [789], + }); + t.deepEqual(typeof argv.x, 'number'); + t.deepEqual(typeof argv.y, 'number'); + t.deepEqual(typeof argv.z, 'number'); + t.deepEqual(typeof argv.w, 'string'); + t.deepEqual(typeof argv.hex, 'number'); + t.deepEqual(typeof argv._[0], 'number'); + t.end(); }); test('already a number', function (t) { - var argv = parse([ '-x', 1234, 789 ]); - t.deepEqual(argv, { x : 1234, _ : [ 789 ] }); - t.deepEqual(typeof argv.x, 'number'); - t.deepEqual(typeof argv._[0], 'number'); - t.end(); + var argv = parse(['-x', 1234, 789]); + t.deepEqual(argv, { x: 1234, _: [789] }); + t.deepEqual(typeof argv.x, 'number'); + t.deepEqual(typeof argv._[0], 'number'); + t.end(); }); diff --git a/node_modules/minimist/test/parse.js b/node_modules/minimist/test/parse.js index 7b4a2a17c0..65d9d90927 100644 --- a/node_modules/minimist/test/parse.js +++ b/node_modules/minimist/test/parse.js @@ -1,197 +1,209 @@ +'use strict'; + var parse = require('../'); var test = require('tape'); test('parse args', function (t) { - t.deepEqual( - parse([ '--no-moo' ]), - { moo : false, _ : [] }, - 'no' - ); - t.deepEqual( - parse([ '-v', 'a', '-v', 'b', '-v', 'c' ]), - { v : ['a','b','c'], _ : [] }, - 'multi' - ); - t.end(); + t.deepEqual( + parse(['--no-moo']), + { moo: false, _: [] }, + 'no' + ); + t.deepEqual( + parse(['-v', 'a', '-v', 'b', '-v', 'c']), + { v: ['a', 'b', 'c'], _: [] }, + 'multi' + ); + t.end(); }); - + test('comprehensive', function (t) { - t.deepEqual( - parse([ - '--name=meowmers', 'bare', '-cats', 'woo', - '-h', 'awesome', '--multi=quux', - '--key', 'value', - '-b', '--bool', '--no-meep', '--multi=baz', - '--', '--not-a-flag', 'eek' - ]), - { - c : true, - a : true, - t : true, - s : 'woo', - h : 'awesome', - b : true, - bool : true, - key : 'value', - multi : [ 'quux', 'baz' ], - meep : false, - name : 'meowmers', - _ : [ 'bare', '--not-a-flag', 'eek' ] - } - ); - t.end(); + t.deepEqual( + parse([ + '--name=meowmers', 'bare', '-cats', 'woo', + '-h', 'awesome', '--multi=quux', + '--key', 'value', + '-b', '--bool', '--no-meep', '--multi=baz', + '--', '--not-a-flag', 'eek', + ]), + { + c: true, + a: true, + t: true, + s: 'woo', + h: 'awesome', + b: true, + bool: true, + key: 'value', + multi: ['quux', 'baz'], + meep: false, + name: 'meowmers', + _: ['bare', '--not-a-flag', 'eek'], + } + ); + t.end(); }); test('flag boolean', function (t) { - var argv = parse([ '-t', 'moo' ], { boolean: 't' }); - t.deepEqual(argv, { t : true, _ : [ 'moo' ] }); - t.deepEqual(typeof argv.t, 'boolean'); - t.end(); + var argv = parse(['-t', 'moo'], { boolean: 't' }); + t.deepEqual(argv, { t: true, _: ['moo'] }); + t.deepEqual(typeof argv.t, 'boolean'); + t.end(); }); test('flag boolean value', function (t) { - var argv = parse(['--verbose', 'false', 'moo', '-t', 'true'], { - boolean: [ 't', 'verbose' ], - default: { verbose: true } - }); - - t.deepEqual(argv, { - verbose: false, - t: true, - _: ['moo'] - }); - - t.deepEqual(typeof argv.verbose, 'boolean'); - t.deepEqual(typeof argv.t, 'boolean'); - t.end(); + var argv = parse(['--verbose', 'false', 'moo', '-t', 'true'], { + boolean: ['t', 'verbose'], + default: { verbose: true }, + }); + + t.deepEqual(argv, { + verbose: false, + t: true, + _: ['moo'], + }); + + t.deepEqual(typeof argv.verbose, 'boolean'); + t.deepEqual(typeof argv.t, 'boolean'); + t.end(); }); -test('newlines in params' , function (t) { - var args = parse([ '-s', "X\nX" ]) - t.deepEqual(args, { _ : [], s : "X\nX" }); - - // reproduce in bash: - // VALUE="new - // line" - // node program.js --s="$VALUE" - args = parse([ "--s=X\nX" ]) - t.deepEqual(args, { _ : [], s : "X\nX" }); - t.end(); +test('newlines in params', function (t) { + var args = parse(['-s', 'X\nX']); + t.deepEqual(args, { _: [], s: 'X\nX' }); + + // reproduce in bash: + // VALUE="new + // line" + // node program.js --s="$VALUE" + args = parse(['--s=X\nX']); + t.deepEqual(args, { _: [], s: 'X\nX' }); + t.end(); }); -test('strings' , function (t) { - var s = parse([ '-s', '0001234' ], { string: 's' }).s; - t.equal(s, '0001234'); - t.equal(typeof s, 'string'); - - var x = parse([ '-x', '56' ], { string: 'x' }).x; - t.equal(x, '56'); - t.equal(typeof x, 'string'); - t.end(); +test('strings', function (t) { + var s = parse(['-s', '0001234'], { string: 's' }).s; + t.equal(s, '0001234'); + t.equal(typeof s, 'string'); + + var x = parse(['-x', '56'], { string: 'x' }).x; + t.equal(x, '56'); + t.equal(typeof x, 'string'); + t.end(); }); test('stringArgs', function (t) { - var s = parse([ ' ', ' ' ], { string: '_' })._; - t.same(s.length, 2); - t.same(typeof s[0], 'string'); - t.same(s[0], ' '); - t.same(typeof s[1], 'string'); - t.same(s[1], ' '); - t.end(); + var s = parse([' ', ' '], { string: '_' })._; + t.same(s.length, 2); + t.same(typeof s[0], 'string'); + t.same(s[0], ' '); + t.same(typeof s[1], 'string'); + t.same(s[1], ' '); + t.end(); }); -test('empty strings', function(t) { - var s = parse([ '-s' ], { string: 's' }).s; - t.equal(s, ''); - t.equal(typeof s, 'string'); +test('empty strings', function (t) { + var s = parse(['-s'], { string: 's' }).s; + t.equal(s, ''); + t.equal(typeof s, 'string'); - var str = parse([ '--str' ], { string: 'str' }).str; - t.equal(str, ''); - t.equal(typeof str, 'string'); + var str = parse(['--str'], { string: 'str' }).str; + t.equal(str, ''); + t.equal(typeof str, 'string'); - var letters = parse([ '-art' ], { - string: [ 'a', 't' ] - }); + var letters = parse(['-art'], { + string: ['a', 't'], + }); - t.equal(letters.a, ''); - t.equal(letters.r, true); - t.equal(letters.t, ''); + t.equal(letters.a, ''); + t.equal(letters.r, true); + t.equal(letters.t, ''); - t.end(); + t.end(); }); - -test('string and alias', function(t) { - var x = parse([ '--str', '000123' ], { - string: 's', - alias: { s: 'str' } - }); - - t.equal(x.str, '000123'); - t.equal(typeof x.str, 'string'); - t.equal(x.s, '000123'); - t.equal(typeof x.s, 'string'); - - var y = parse([ '-s', '000123' ], { - string: 'str', - alias: { str: 's' } - }); - - t.equal(y.str, '000123'); - t.equal(typeof y.str, 'string'); - t.equal(y.s, '000123'); - t.equal(typeof y.s, 'string'); - t.end(); +test('string and alias', function (t) { + var x = parse(['--str', '000123'], { + string: 's', + alias: { s: 'str' }, + }); + + t.equal(x.str, '000123'); + t.equal(typeof x.str, 'string'); + t.equal(x.s, '000123'); + t.equal(typeof x.s, 'string'); + + var y = parse(['-s', '000123'], { + string: 'str', + alias: { str: 's' }, + }); + + t.equal(y.str, '000123'); + t.equal(typeof y.str, 'string'); + t.equal(y.s, '000123'); + t.equal(typeof y.s, 'string'); + + var z = parse(['-s123'], { + alias: { str: ['s', 'S'] }, + string: ['str'], + }); + + t.deepEqual( + z, + { _: [], s: '123', S: '123', str: '123' }, + 'opt.string works with multiple aliases' + ); + t.end(); }); test('slashBreak', function (t) { - t.same( - parse([ '-I/foo/bar/baz' ]), - { I : '/foo/bar/baz', _ : [] } - ); - t.same( - parse([ '-xyz/foo/bar/baz' ]), - { x : true, y : true, z : '/foo/bar/baz', _ : [] } - ); - t.end(); + t.same( + parse(['-I/foo/bar/baz']), + { I: '/foo/bar/baz', _: [] } + ); + t.same( + parse(['-xyz/foo/bar/baz']), + { x: true, y: true, z: '/foo/bar/baz', _: [] } + ); + t.end(); }); test('alias', function (t) { - var argv = parse([ '-f', '11', '--zoom', '55' ], { - alias: { z: 'zoom' } - }); - t.equal(argv.zoom, 55); - t.equal(argv.z, argv.zoom); - t.equal(argv.f, 11); - t.end(); + var argv = parse(['-f', '11', '--zoom', '55'], { + alias: { z: 'zoom' }, + }); + t.equal(argv.zoom, 55); + t.equal(argv.z, argv.zoom); + t.equal(argv.f, 11); + t.end(); }); test('multiAlias', function (t) { - var argv = parse([ '-f', '11', '--zoom', '55' ], { - alias: { z: [ 'zm', 'zoom' ] } - }); - t.equal(argv.zoom, 55); - t.equal(argv.z, argv.zoom); - t.equal(argv.z, argv.zm); - t.equal(argv.f, 11); - t.end(); + var argv = parse(['-f', '11', '--zoom', '55'], { + alias: { z: ['zm', 'zoom'] }, + }); + t.equal(argv.zoom, 55); + t.equal(argv.z, argv.zoom); + t.equal(argv.z, argv.zm); + t.equal(argv.f, 11); + t.end(); }); test('nested dotted objects', function (t) { - var argv = parse([ - '--foo.bar', '3', '--foo.baz', '4', - '--foo.quux.quibble', '5', '--foo.quux.o_O', - '--beep.boop' - ]); - - t.same(argv.foo, { - bar : 3, - baz : 4, - quux : { - quibble : 5, - o_O : true - } - }); - t.same(argv.beep, { boop : true }); - t.end(); + var argv = parse([ + '--foo.bar', '3', '--foo.baz', '4', + '--foo.quux.quibble', '5', '--foo.quux.o_O', + '--beep.boop', + ]); + + t.same(argv.foo, { + bar: 3, + baz: 4, + quux: { + quibble: 5, + o_O: true, + }, + }); + t.same(argv.beep, { boop: true }); + t.end(); }); diff --git a/node_modules/minimist/test/parse_modified.js b/node_modules/minimist/test/parse_modified.js index ab620dc5e4..32965d130f 100644 --- a/node_modules/minimist/test/parse_modified.js +++ b/node_modules/minimist/test/parse_modified.js @@ -1,9 +1,11 @@ +'use strict'; + var parse = require('../'); var test = require('tape'); -test('parse with modifier functions' , function (t) { - t.plan(1); - - var argv = parse([ '-b', '123' ], { boolean: 'b' }); - t.deepEqual(argv, { b: true, _: [123] }); +test('parse with modifier functions', function (t) { + t.plan(1); + + var argv = parse(['-b', '123'], { boolean: 'b' }); + t.deepEqual(argv, { b: true, _: [123] }); }); diff --git a/node_modules/minimist/test/proto.js b/node_modules/minimist/test/proto.js index 4ac62df264..6e629dd34e 100644 --- a/node_modules/minimist/test/proto.js +++ b/node_modules/minimist/test/proto.js @@ -1,60 +1,64 @@ +'use strict'; + +/* eslint no-proto: 0 */ + var parse = require('../'); var test = require('tape'); test('proto pollution', function (t) { - var argv = parse(['--__proto__.x','123']); - t.equal({}.x, undefined); - t.equal(argv.__proto__.x, undefined); - t.equal(argv.x, undefined); - t.end(); + var argv = parse(['--__proto__.x', '123']); + t.equal({}.x, undefined); + t.equal(argv.__proto__.x, undefined); + t.equal(argv.x, undefined); + t.end(); }); test('proto pollution (array)', function (t) { - var argv = parse(['--x','4','--x','5','--x.__proto__.z','789']); - t.equal({}.z, undefined); - t.deepEqual(argv.x, [4,5]); - t.equal(argv.x.z, undefined); - t.equal(argv.x.__proto__.z, undefined); - t.end(); + var argv = parse(['--x', '4', '--x', '5', '--x.__proto__.z', '789']); + t.equal({}.z, undefined); + t.deepEqual(argv.x, [4, 5]); + t.equal(argv.x.z, undefined); + t.equal(argv.x.__proto__.z, undefined); + t.end(); }); test('proto pollution (number)', function (t) { - var argv = parse(['--x','5','--x.__proto__.z','100']); - t.equal({}.z, undefined); - t.equal((4).z, undefined); - t.equal(argv.x, 5); - t.equal(argv.x.z, undefined); - t.end(); + var argv = parse(['--x', '5', '--x.__proto__.z', '100']); + t.equal({}.z, undefined); + t.equal((4).z, undefined); + t.equal(argv.x, 5); + t.equal(argv.x.z, undefined); + t.end(); }); test('proto pollution (string)', function (t) { - var argv = parse(['--x','abc','--x.__proto__.z','def']); - t.equal({}.z, undefined); - t.equal('...'.z, undefined); - t.equal(argv.x, 'abc'); - t.equal(argv.x.z, undefined); - t.end(); + var argv = parse(['--x', 'abc', '--x.__proto__.z', 'def']); + t.equal({}.z, undefined); + t.equal('...'.z, undefined); + t.equal(argv.x, 'abc'); + t.equal(argv.x.z, undefined); + t.end(); }); test('proto pollution (constructor)', function (t) { - var argv = parse(['--constructor.prototype.y','123']); - t.equal({}.y, undefined); - t.equal(argv.y, undefined); - t.end(); + var argv = parse(['--constructor.prototype.y', '123']); + t.equal({}.y, undefined); + t.equal(argv.y, undefined); + t.end(); }); test('proto pollution (constructor function)', function (t) { - var argv = parse(['--_.concat.constructor.prototype.y', '123']); - function fnToBeTested() {} - t.equal(fnToBeTested.y, undefined); - t.equal(argv.y, undefined); - t.end(); + var argv = parse(['--_.concat.constructor.prototype.y', '123']); + function fnToBeTested() {} + t.equal(fnToBeTested.y, undefined); + t.equal(argv.y, undefined); + t.end(); }); // powered by snyk - https://github.com/backstage/backstage/issues/10343 test('proto pollution (constructor function) snyk', function (t) { - var argv = parse('--_.constructor.constructor.prototype.foo bar'.split(' ')); - t.equal((function(){}).foo, undefined); - t.equal(argv.y, undefined); - t.end(); -}) + var argv = parse('--_.constructor.constructor.prototype.foo bar'.split(' ')); + t.equal(function () {}.foo, undefined); + t.equal(argv.y, undefined); + t.end(); +}); diff --git a/node_modules/minimist/test/short.js b/node_modules/minimist/test/short.js index d513a1c252..4a7b84385b 100644 --- a/node_modules/minimist/test/short.js +++ b/node_modules/minimist/test/short.js @@ -1,67 +1,69 @@ +'use strict'; + var parse = require('../'); var test = require('tape'); test('numeric short args', function (t) { - t.plan(2); - t.deepEqual(parse([ '-n123' ]), { n: 123, _: [] }); - t.deepEqual( - parse([ '-123', '456' ]), - { 1: true, 2: true, 3: 456, _: [] } - ); + t.plan(2); + t.deepEqual(parse(['-n123']), { n: 123, _: [] }); + t.deepEqual( + parse(['-123', '456']), + { 1: true, 2: true, 3: 456, _: [] } + ); }); test('short', function (t) { - t.deepEqual( - parse([ '-b' ]), - { b : true, _ : [] }, - 'short boolean' - ); - t.deepEqual( - parse([ 'foo', 'bar', 'baz' ]), - { _ : [ 'foo', 'bar', 'baz' ] }, - 'bare' - ); - t.deepEqual( - parse([ '-cats' ]), - { c : true, a : true, t : true, s : true, _ : [] }, - 'group' - ); - t.deepEqual( - parse([ '-cats', 'meow' ]), - { c : true, a : true, t : true, s : 'meow', _ : [] }, - 'short group next' - ); - t.deepEqual( - parse([ '-h', 'localhost' ]), - { h : 'localhost', _ : [] }, - 'short capture' - ); - t.deepEqual( - parse([ '-h', 'localhost', '-p', '555' ]), - { h : 'localhost', p : 555, _ : [] }, - 'short captures' - ); - t.end(); + t.deepEqual( + parse(['-b']), + { b: true, _: [] }, + 'short boolean' + ); + t.deepEqual( + parse(['foo', 'bar', 'baz']), + { _: ['foo', 'bar', 'baz'] }, + 'bare' + ); + t.deepEqual( + parse(['-cats']), + { c: true, a: true, t: true, s: true, _: [] }, + 'group' + ); + t.deepEqual( + parse(['-cats', 'meow']), + { c: true, a: true, t: true, s: 'meow', _: [] }, + 'short group next' + ); + t.deepEqual( + parse(['-h', 'localhost']), + { h: 'localhost', _: [] }, + 'short capture' + ); + t.deepEqual( + parse(['-h', 'localhost', '-p', '555']), + { h: 'localhost', p: 555, _: [] }, + 'short captures' + ); + t.end(); }); - + test('mixed short bool and capture', function (t) { - t.same( - parse([ '-h', 'localhost', '-fp', '555', 'script.js' ]), - { - f : true, p : 555, h : 'localhost', - _ : [ 'script.js' ] - } - ); - t.end(); + t.same( + parse(['-h', 'localhost', '-fp', '555', 'script.js']), + { + f: true, p: 555, h: 'localhost', + _: ['script.js'], + } + ); + t.end(); }); - + test('short and long', function (t) { - t.deepEqual( - parse([ '-h', 'localhost', '-fp', '555', 'script.js' ]), - { - f : true, p : 555, h : 'localhost', - _ : [ 'script.js' ] - } - ); - t.end(); + t.deepEqual( + parse(['-h', 'localhost', '-fp', '555', 'script.js']), + { + f: true, p: 555, h: 'localhost', + _: ['script.js'], + } + ); + t.end(); }); diff --git a/node_modules/minimist/test/stop_early.js b/node_modules/minimist/test/stop_early.js index bdf9fbcb0b..52a6a91903 100644 --- a/node_modules/minimist/test/stop_early.js +++ b/node_modules/minimist/test/stop_early.js @@ -1,15 +1,17 @@ +'use strict'; + var parse = require('../'); var test = require('tape'); test('stops parsing on the first non-option when stopEarly is set', function (t) { - var argv = parse(['--aaa', 'bbb', 'ccc', '--ddd'], { - stopEarly: true - }); + var argv = parse(['--aaa', 'bbb', 'ccc', '--ddd'], { + stopEarly: true, + }); - t.deepEqual(argv, { - aaa: 'bbb', - _: ['ccc', '--ddd'] - }); + t.deepEqual(argv, { + aaa: 'bbb', + _: ['ccc', '--ddd'], + }); - t.end(); + t.end(); }); diff --git a/node_modules/minimist/test/unknown.js b/node_modules/minimist/test/unknown.js index 462a36bdd7..4f2e0ca447 100644 --- a/node_modules/minimist/test/unknown.js +++ b/node_modules/minimist/test/unknown.js @@ -1,102 +1,104 @@ +'use strict'; + var parse = require('../'); var test = require('tape'); test('boolean and alias is not unknown', function (t) { - var unknown = []; - function unknownFn(arg) { - unknown.push(arg); - return false; - } - var aliased = [ '-h', 'true', '--derp', 'true' ]; - var regular = [ '--herp', 'true', '-d', 'true' ]; - var opts = { - alias: { h: 'herp' }, - boolean: 'h', - unknown: unknownFn - }; - var aliasedArgv = parse(aliased, opts); - var propertyArgv = parse(regular, opts); + var unknown = []; + function unknownFn(arg) { + unknown.push(arg); + return false; + } + var aliased = ['-h', 'true', '--derp', 'true']; + var regular = ['--herp', 'true', '-d', 'true']; + var opts = { + alias: { h: 'herp' }, + boolean: 'h', + unknown: unknownFn, + }; + parse(aliased, opts); + parse(regular, opts); - t.same(unknown, ['--derp', '-d']); - t.end(); + t.same(unknown, ['--derp', '-d']); + t.end(); }); test('flag boolean true any double hyphen argument is not unknown', function (t) { - var unknown = []; - function unknownFn(arg) { - unknown.push(arg); - return false; - } - var argv = parse(['--honk', '--tacos=good', 'cow', '-p', '55'], { - boolean: true, - unknown: unknownFn - }); - t.same(unknown, ['--tacos=good', 'cow', '-p']); - t.same(argv, { - honk: true, - _: [] - }); - t.end(); + var unknown = []; + function unknownFn(arg) { + unknown.push(arg); + return false; + } + var argv = parse(['--honk', '--tacos=good', 'cow', '-p', '55'], { + boolean: true, + unknown: unknownFn, + }); + t.same(unknown, ['--tacos=good', 'cow', '-p']); + t.same(argv, { + honk: true, + _: [], + }); + t.end(); }); test('string and alias is not unknown', function (t) { - var unknown = []; - function unknownFn(arg) { - unknown.push(arg); - return false; - } - var aliased = [ '-h', 'hello', '--derp', 'goodbye' ]; - var regular = [ '--herp', 'hello', '-d', 'moon' ]; - var opts = { - alias: { h: 'herp' }, - string: 'h', - unknown: unknownFn - }; - var aliasedArgv = parse(aliased, opts); - var propertyArgv = parse(regular, opts); + var unknown = []; + function unknownFn(arg) { + unknown.push(arg); + return false; + } + var aliased = ['-h', 'hello', '--derp', 'goodbye']; + var regular = ['--herp', 'hello', '-d', 'moon']; + var opts = { + alias: { h: 'herp' }, + string: 'h', + unknown: unknownFn, + }; + parse(aliased, opts); + parse(regular, opts); - t.same(unknown, ['--derp', '-d']); - t.end(); + t.same(unknown, ['--derp', '-d']); + t.end(); }); test('default and alias is not unknown', function (t) { - var unknown = []; - function unknownFn(arg) { - unknown.push(arg); - return false; - } - var aliased = [ '-h', 'hello' ]; - var regular = [ '--herp', 'hello' ]; - var opts = { - default: { 'h': 'bar' }, - alias: { 'h': 'herp' }, - unknown: unknownFn - }; - var aliasedArgv = parse(aliased, opts); - var propertyArgv = parse(regular, opts); + var unknown = []; + function unknownFn(arg) { + unknown.push(arg); + return false; + } + var aliased = ['-h', 'hello']; + var regular = ['--herp', 'hello']; + var opts = { + default: { h: 'bar' }, + alias: { h: 'herp' }, + unknown: unknownFn, + }; + parse(aliased, opts); + parse(regular, opts); - t.same(unknown, []); - t.end(); - unknownFn(); // exercise fn for 100% coverage + t.same(unknown, []); + t.end(); + unknownFn(); // exercise fn for 100% coverage }); test('value following -- is not unknown', function (t) { - var unknown = []; - function unknownFn(arg) { - unknown.push(arg); - return false; - } - var aliased = [ '--bad', '--', 'good', 'arg' ]; - var opts = { - '--': true, - unknown: unknownFn - }; - var argv = parse(aliased, opts); + var unknown = []; + function unknownFn(arg) { + unknown.push(arg); + return false; + } + var aliased = ['--bad', '--', 'good', 'arg']; + var opts = { + '--': true, + unknown: unknownFn, + }; + var argv = parse(aliased, opts); - t.same(unknown, ['--bad']); - t.same(argv, { - '--': ['good', 'arg'], - '_': [] - }) - t.end(); + t.same(unknown, ['--bad']); + t.same(argv, { + '--': ['good', 'arg'], + _: [], + }); + t.end(); }); diff --git a/node_modules/minimist/test/whitespace.js b/node_modules/minimist/test/whitespace.js index 8a52a58cec..4fdaf1d394 100644 --- a/node_modules/minimist/test/whitespace.js +++ b/node_modules/minimist/test/whitespace.js @@ -1,8 +1,10 @@ +'use strict'; + var parse = require('../'); var test = require('tape'); -test('whitespace should be whitespace' , function (t) { - t.plan(1); - var x = parse([ '-x', '\t' ]).x; - t.equal(x, '\t'); +test('whitespace should be whitespace', function (t) { + t.plan(1); + var x = parse(['-x', '\t']).x; + t.equal(x, '\t'); }); diff --git a/node_modules/object.groupby/.eslintrc b/node_modules/object.groupby/.eslintrc new file mode 100644 index 0000000000..1222049615 --- /dev/null +++ b/node_modules/object.groupby/.eslintrc @@ -0,0 +1,49 @@ +{ + "root": true, + + "extends": "@ljharb", + + "rules": { + "array-bracket-newline": "off", + "id-length": "off", + "max-lines-per-function": "off", + "new-cap": ["error", { + "capIsNewExceptions": [ + "AddValueToKeyedGroup", + "Call", + "CreateDataPropertyOrThrow", + "GetIntrinsic", + "GetIterator", + "GetMethod", + "GroupBy", + "IsCallable", + "IteratorClose", + "IteratorComplete", + "IteratorNext", + "IteratorStep", + "IteratorValue", + "OrdinaryObjectCreate", + "RequireObjectCoercible", + "ThrowCompletion", + "ToPropertyKey", + "ToString", + "Type", + ], + }], + }, + + "overrides": [ + { + "files": "aos/*.js", + "rules": { + "max-statements": "off", + }, + }, + { + "files": "test/tests.js", + "rules": { + "max-lines-per-function": "off", + }, + }, + ], +} diff --git a/node_modules/object.groupby/.github/FUNDING.yml b/node_modules/object.groupby/.github/FUNDING.yml new file mode 100644 index 0000000000..1333729a98 --- /dev/null +++ b/node_modules/object.groupby/.github/FUNDING.yml @@ -0,0 +1,12 @@ +# These are supported funding model platforms + +github: [ljharb] +patreon: # Replace with a single Patreon username +open_collective: # Replace with a single Open Collective username +ko_fi: # Replace with a single Ko-fi username +tidelift: npm/object.groupby +community_bridge: # Replace with a single Community Bridge project-name e.g., cloud-foundry +liberapay: # Replace with a single Liberapay username +issuehunt: # Replace with a single IssueHunt username +otechie: # Replace with a single Otechie username +custom: # Replace with up to 4 custom sponsorship URLs e.g., ['link1', 'link2'] diff --git a/node_modules/object.groupby/.nycrc b/node_modules/object.groupby/.nycrc new file mode 100644 index 0000000000..bdd626ce91 --- /dev/null +++ b/node_modules/object.groupby/.nycrc @@ -0,0 +1,9 @@ +{ + "all": true, + "check-coverage": false, + "reporter": ["text-summary", "text", "html", "json"], + "exclude": [ + "coverage", + "test" + ] +} diff --git a/node_modules/object.groupby/CHANGELOG.md b/node_modules/object.groupby/CHANGELOG.md new file mode 100644 index 0000000000..2ed138660b --- /dev/null +++ b/node_modules/object.groupby/CHANGELOG.md @@ -0,0 +1,17 @@ +# Changelog + +All notable changes to this project will be documented in this file. + +The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.0.0/) +and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0.html). + +## v1.0.0 - 2023-07-11 + +### Commits + +- Initial implementation, tests, readme [`77809f3`](https://github.com/es-shims/Object.groupBy/commit/77809f3024955519d71a2ab6ed9883e4d496a953) +- Initial commit [`24ea8cd`](https://github.com/es-shims/Object.groupBy/commit/24ea8cdc625987930d5cf9df0dbff01e5693a544) +- npm init [`36a7d4d`](https://github.com/es-shims/Object.groupBy/commit/36a7d4d9d2fc9ff8503985f2fcf76a2ff4097140) +- [Dev Deps] update `@es-shims/api`, `@ljharb/eslint-config`, `aud`, `tape` [`bd7b39f`](https://github.com/es-shims/Object.groupBy/commit/bd7b39fca3d5fbff1e7140ae69893ec4694e4201) +- [Deps] update `define-properties`, `es-abstract`, `get-intrinsic` [`9615141`](https://github.com/es-shims/Object.groupBy/commit/9615141fab908eec83e310d8fdf6847a808baf36) +- Only apps should have lockfiles [`63b79a9`](https://github.com/es-shims/Object.groupBy/commit/63b79a97732802eb25da26928646e6ef103762cd) diff --git a/node_modules/object.groupby/LICENSE b/node_modules/object.groupby/LICENSE new file mode 100644 index 0000000000..eb970aa5c9 --- /dev/null +++ b/node_modules/object.groupby/LICENSE @@ -0,0 +1,21 @@ +MIT License + +Copyright (c) 2023 ECMAScript Shims + +Permission is hereby granted, free of charge, to any person obtaining a copy +of this software and associated documentation files (the "Software"), to deal +in the Software without restriction, including without limitation the rights +to use, copy, modify, merge, publish, distribute, sublicense, and/or sell +copies of the Software, and to permit persons to whom the Software is +furnished to do so, subject to the following conditions: + +The above copyright notice and this permission notice shall be included in all +copies or substantial portions of the Software. + +THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR +IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, +FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE +AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER +LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, +OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE +SOFTWARE. diff --git a/node_modules/object.groupby/README.md b/node_modules/object.groupby/README.md new file mode 100644 index 0000000000..470beeeea1 --- /dev/null +++ b/node_modules/object.groupby/README.md @@ -0,0 +1,79 @@ +# object.groupby [![Version Badge][npm-version-svg]][package-url] + +[![github actions][actions-image]][actions-url] +[![coverage][codecov-image]][codecov-url] +[![License][license-image]][license-url] +[![Downloads][downloads-image]][downloads-url] + +[![npm badge][npm-badge-png]][package-url] + +An ESnext spec-compliant `Object.groupBy` shim/polyfill/replacement that works as far down as ES3. + +This package implements the [es-shim API](https://github.com/es-shims/api) interface. It works in an ES3-supported environment and complies with the proposed [spec](https://tc39.github.io/proposal-array-grouping/). + +## Getting started + +```sh +npm install --save object.groupby +``` + +## Usage/Examples + +```js +var groupBy = require('object.groupby'); +var assert = require('assert'); + +var arr = [0, 1, 2, 3, 4, 5]; +var parity = function (x) { return x % 2 === 0 ? 'even' : 'odd'; }; + +var results = groupBy(arr, function (x, i) { + assert.equal(x, arr[i]); + return parity(x); +}); + +assert.deepEqual(results, { + __proto__: null, + even: [0, 2, 4], + odd: [1, 3, 5], +}); +``` + +```js +var groupBy = require('object.groupby'); +var assert = require('assert'); +/* when Object.groupBy is not present */ +delete Object.groupBy; +var shimmed = groupBy.shim(); + +assert.equal(shimmed, groupBy.getPolyfill()); +assert.deepEqual(Object.groupBy(arr, parity), groupBy(arr, parity)); +``` + +```js +var groupBy = require('object.groupby'); +var assert = require('assert'); +/* when Array#group is present */ +var shimmed = groupBy.shim(); + +assert.equal(shimmed, Object.groupBy); +assert.deepEqual(Object.groupBy(arr, parity), groupBy(arr, parity)); +``` + +## Tests +Simply clone the repo, `npm install`, and run `npm test` + +[package-url]: https://npmjs.org/package/object.groupby +[npm-version-svg]: https://versionbadg.es/es-shims/Object.groupBy.svg +[deps-svg]: https://david-dm.org/es-shims/Object.groupBy.svg +[deps-url]: https://david-dm.org/es-shims/Object.groupBy +[dev-deps-svg]: https://david-dm.org/es-shims/Object.groupBy/dev-status.svg +[dev-deps-url]: https://david-dm.org/es-shims/Object.groupBy#info=devDependencies +[npm-badge-png]: https://nodei.co/npm/object.groupby.png?downloads=true&stars=true +[license-image]: https://img.shields.io/npm/l/object.groupby.svg +[license-url]: LICENSE +[downloads-image]: https://img.shields.io/npm/dm/object.groupby.svg +[downloads-url]: https://npm-stat.com/charts.html?package=object.groupby +[codecov-image]: https://codecov.io/gh/es-shims/Object.groupBy/branch/main/graphs/badge.svg +[codecov-url]: https://app.codecov.io/gh/es-shims/Object.groupBy/ +[actions-image]: https://img.shields.io/endpoint?url=https://github-actions-badge-u3jn4tfpocch.runkit.sh/es-shims/Object.groupBy +[actions-url]: https://github.com/es-shims/Object.groupBy/actions diff --git a/node_modules/object.groupby/aos/AddValueToKeyedGroup.js b/node_modules/object.groupby/aos/AddValueToKeyedGroup.js new file mode 100644 index 0000000000..13a5e0ae64 --- /dev/null +++ b/node_modules/object.groupby/aos/AddValueToKeyedGroup.js @@ -0,0 +1,26 @@ +'use strict'; + +var callBound = require('call-bind/callBound'); +var GetIntrinsic = require('get-intrinsic'); +var SameValue = require('es-abstract/2022/SameValue'); + +var $TypeError = GetIntrinsic('%TypeError%'); + +var $filter = callBound('Array.prototype.filter'); +var $push = callBound('Array.prototype.push'); + +module.exports = function AddValueToKeyedGroup(groups, key, value) { + var found = $filter(groups, function (group) { + return SameValue(group['[[Key]]'], key); // eslint-disable-line new-cap + }); + if (found.length > 0) { + var g = found[0]; + if (found.length !== 1) { + throw new $TypeError('Assertion failed: more than 1 Record inside `groups` has a `[[Key]]` that is SameValue to `key`'); + } + $push(g['[[Elements]]'], value); // step 1.a.ii + } else { + var group = { '[[Key]]': key, '[[Elements]]': [value] }; // eslint-disable-line sort-keys + $push(groups, group); // step 3 + } +}; diff --git a/node_modules/object.groupby/aos/GroupBy.js b/node_modules/object.groupby/aos/GroupBy.js new file mode 100644 index 0000000000..f2e1c9c6c8 --- /dev/null +++ b/node_modules/object.groupby/aos/GroupBy.js @@ -0,0 +1,81 @@ +'use strict'; + +var GetIntrinsic = require('get-intrinsic'); + +var AddValueToKeyedGroup = require('./AddValueToKeyedGroup'); +var Call = require('es-abstract/2022/Call'); +var GetIterator = require('es-abstract/2022/GetIterator'); +var IsCallable = require('es-abstract/2022/IsCallable'); +var IteratorClose = require('./IteratorClose'); +var IteratorStep = require('./IteratorStep'); +var IteratorValue = require('es-abstract/2022/IteratorValue'); +var maxSafeInteger = require('es-abstract/helpers/maxSafeInteger'); +var RequireObjectCoercible = require('es-abstract/2022/RequireObjectCoercible'); +var ThrowCompletion = require('es-abstract/2022/ThrowCompletion'); +var ToPropertyKey = require('es-abstract/2022/ToPropertyKey'); + +var $TypeError = GetIntrinsic('%TypeError%'); + +module.exports = function GroupBy(items, callbackfn, coercion) { + if (coercion !== 'property' && coercion !== 'zero') { + throw new $TypeError('Assertion failed: `coercion` must be `"property"` or `"zero"`'); + } + + RequireObjectCoercible(items); // step 1 + + if (!IsCallable(callbackfn)) { // step 2 + throw new $TypeError('`callbackfn` must be callable'); + } + + var groups = []; // step 3 + + var iterator = GetIterator(items); // step 4 + var iteratorRecord = { // TODO: remove this once GetIterator is on ES2023+ + '[[Iterator]]': iterator, + '[[NextMethod]]': iterator.next, + '[[Done]]': false // eslint-disable-line sort-keys + }; + + var k = 0; // step 5 + + // eslint-disable-next-line no-constant-condition + while (true) { // step 6 + if (k >= maxSafeInteger) { // step 6.a + var error = ThrowCompletion(new $TypeError('Iteration count exceeds the max safe integer value')); // step 6.a.i + return IteratorClose(iteratorRecord, error); // step 6.a.ii + } + + var next = IteratorStep(iteratorRecord); // step 6.b + if (!next) { // step 6.c + return groups; // step 6.c.i + } + + var value = IteratorValue(next); // step 6.d + + var key; + try { + key = Call(callbackfn, undefined, [value, k]); // step 6.e + } catch (e) { + IteratorClose(iteratorRecord, ThrowCompletion(e)); // step 6.f + } + + if (coercion === 'property') { // step 6.g + try { + key = ToPropertyKey(key); // step 6.g.i + } catch (e) { + IteratorClose(iteratorRecord, ThrowCompletion(e)); // step 6.g.ii + } + } else { + if (coercion !== 'zero') { + throw new $TypeError('Assertion failed: `coercion` should be `"zero"` here'); // step 6.h.i + } + if (key === 0) { // step 6.h.ii + key = 0; // handle negative zero + } + } + + AddValueToKeyedGroup(groups, key, value); // step 6.i + + k += 1; // step 6.j + } +}; diff --git a/node_modules/object.groupby/aos/IteratorClose.js b/node_modules/object.groupby/aos/IteratorClose.js new file mode 100644 index 0000000000..ae9ef1023c --- /dev/null +++ b/node_modules/object.groupby/aos/IteratorClose.js @@ -0,0 +1,67 @@ +'use strict'; + +var GetIntrinsic = require('get-intrinsic'); + +var $TypeError = GetIntrinsic('%TypeError%'); + +var Call = require('es-abstract/2022/Call'); +var CompletionRecord = require('es-abstract/2022/CompletionRecord'); +var GetMethod = require('es-abstract/2022/GetMethod'); +var Type = require('es-abstract/2022/Type'); + +var assertRecord = require('es-abstract/helpers/assertRecord'); + +// https://262.ecma-international.org/14.0/#sec-iteratorclose + +module.exports = function IteratorClose(iteratorRecord, completion) { + assertRecord(Type, 'Iterator Record', 'iteratorRecord', iteratorRecord); + if (Type(iteratorRecord['[[Iterator]]']) !== 'Object') { + throw new $TypeError('Assertion failed: iteratorRecord.[[Iterator]] must be an Object'); // step 1 + } + + if (!(completion instanceof CompletionRecord)) { // step 2 + throw new $TypeError('Assertion failed: completion is not a Completion Record instance'); + } + var completionThunk = function () { + var value = completion.value(); + if (completion.type() === 'throw') { + throw value; + } + return value; + }; + + var iterator = iteratorRecord['[[Iterator]]']; // step 3 + + var iteratorReturn; + try { + iteratorReturn = GetMethod(iterator, 'return'); // step 4 + } catch (e) { + completionThunk(); // throws if `completion` is a throw completion // step 6 + completionThunk = null; // ensure it's not called twice. + throw e; // step 7 + } + if (typeof iteratorReturn === 'undefined') { + return completionThunk(); // step 5.a - 5.b + } + + var innerResult; + try { + innerResult = Call(iteratorReturn, iterator, []); + } catch (e) { + // if we hit here, then "e" is the innerResult completion that needs re-throwing + + completionThunk(); // throws if `completion` is a throw completion // step 6 + completionThunk = null; // ensure it's not called twice. + + // if not, then return the innerResult completion + throw e; // step 7 + } + var completionRecord = completionThunk(); // if innerResult worked, then throw if the completion does + completionThunk = null; // ensure it's not called twice. + + if (Type(innerResult) !== 'Object') { + throw new $TypeError('iterator .return must return an object'); + } + + return completionRecord; +}; diff --git a/node_modules/object.groupby/aos/IteratorNext.js b/node_modules/object.groupby/aos/IteratorNext.js new file mode 100644 index 0000000000..f6bd9fd680 --- /dev/null +++ b/node_modules/object.groupby/aos/IteratorNext.js @@ -0,0 +1,28 @@ +'use strict'; + +var GetIntrinsic = require('get-intrinsic'); + +var $TypeError = GetIntrinsic('%TypeError%'); + +var Call = require('es-abstract/2022/Call'); +var Type = require('es-abstract/2022/Type'); + +var assertRecord = require('es-abstract/helpers/assertRecord'); + +// https://262.ecma-international.org/14.0/#sec-iteratornext + +module.exports = function IteratorNext(iteratorRecord) { + assertRecord(Type, 'Iterator Record', 'iteratorRecord', iteratorRecord); + + var result; + if (arguments.length < 2) { // step 1 + result = Call(iteratorRecord['[[NextMethod]]'], iteratorRecord['[[Iterator]]']); // step 1.a + } else { // step 2 + result = Call(iteratorRecord['[[NextMethod]]'], iteratorRecord['[[Iterator]]'], [arguments[1]]); // step 2.a + } + + if (Type(result) !== 'Object') { + throw new $TypeError('iterator next must return an object'); // step 3 + } + return result; // step 4 +}; diff --git a/node_modules/object.groupby/aos/IteratorStep.js b/node_modules/object.groupby/aos/IteratorStep.js new file mode 100644 index 0000000000..a5016db4ce --- /dev/null +++ b/node_modules/object.groupby/aos/IteratorStep.js @@ -0,0 +1,18 @@ +'use strict'; + +var IteratorComplete = require('es-abstract/2022/IteratorComplete'); +var IteratorNext = require('./IteratorNext'); +var Type = require('es-abstract/2022/Type'); + +var assertRecord = require('es-abstract/helpers/assertRecord'); + +// https://262.ecma-international.org/14.0/#sec-iteratorstep + +module.exports = function IteratorStep(iteratorRecord) { + assertRecord(Type, 'Iterator Record', 'iteratorRecord', iteratorRecord); + + var result = IteratorNext(iteratorRecord); // step 1 + var done = IteratorComplete(result); // step 2 + return done === true ? false : result; // steps 3-4 +}; + diff --git a/node_modules/object.groupby/auto.js b/node_modules/object.groupby/auto.js new file mode 100644 index 0000000000..8ebf606cb0 --- /dev/null +++ b/node_modules/object.groupby/auto.js @@ -0,0 +1,3 @@ +'use strict'; + +require('./shim')(); diff --git a/node_modules/object.groupby/implementation.js b/node_modules/object.groupby/implementation.js new file mode 100644 index 0000000000..e90c504721 --- /dev/null +++ b/node_modules/object.groupby/implementation.js @@ -0,0 +1,20 @@ +'use strict'; + +var CreateDataPropertyOrThrow = require('es-abstract/2022/CreateDataPropertyOrThrow'); +var OrdinaryObjectCreate = require('es-abstract/2022/OrdinaryObjectCreate'); + +var forEach = require('es-abstract/helpers/forEach'); + +var GroupBy = require('./aos/GroupBy'); // TODO: replace with es-abstract 2024 implementation + +module.exports = function groupBy(items, callbackfn) { + var groups = GroupBy(items, callbackfn, 'property'); // step 1 + + var obj = OrdinaryObjectCreate(null); // step 2 + + forEach(groups, function (g) { // step 3 + CreateDataPropertyOrThrow(obj, g['[[Key]]'], g['[[Elements]]']); // steps 3.a - 3.b + }); + + return obj; // step 4 +}; diff --git a/node_modules/object.groupby/index.js b/node_modules/object.groupby/index.js new file mode 100644 index 0000000000..ec71615662 --- /dev/null +++ b/node_modules/object.groupby/index.js @@ -0,0 +1,19 @@ +'use strict'; + +var define = require('define-properties'); +var callBind = require('call-bind'); + +var implementation = require('./implementation'); +var getPolyfill = require('./polyfill'); +var polyfill = getPolyfill(); +var shim = require('./shim'); + +var bound = callBind(polyfill, Object); + +define(bound, { + getPolyfill: getPolyfill, + implementation: implementation, + shim: shim +}); + +module.exports = bound; diff --git a/node_modules/object.groupby/package.json b/node_modules/object.groupby/package.json new file mode 100644 index 0000000000..a0abb2c11f --- /dev/null +++ b/node_modules/object.groupby/package.json @@ -0,0 +1,83 @@ +{ + "name": "object.groupby", + "version": "1.0.0", + "description": "An ESnext spec-compliant `Object.groupBy` shim/polyfill/replacement that works as far down as ES3.", + "main": "index.js", + "exports": { + ".": "./index.js", + "./auto": "./auto.js", + "./polyfill": "./polyfill.js", + "./implementation": "./implementation.js", + "./shim": "./shim.js", + "./package.json": "./package.json" + }, + "scripts": { + "prepack": "npmignore --auto --commentLines=autogenerated", + "prepublish": "not-in-publish || npm run prepublishOnly", + "prepublishOnly": "safe-publish-latest", + "pretest": "npm run --silent lint", + "test": "npm run tests-only", + "posttest": "aud --production", + "tests-only": "nyc tape 'test/**/*.js'", + "lint": "eslint --ext=js,mjs .", + "postlint": "es-shim-api --bound && evalmd README.md", + "version": "auto-changelog && git add CHANGELOG.md", + "postversion": "auto-changelog && git add CHANGELOG.md && git commit --no-edit --amend && git tag -f \"v$(node -e \"console.log(require('./package.json').version)\")\"" + }, + "repository": { + "type": "git", + "url": "git+https://github.com/es-shims/Object.groupBy.git" + }, + "keywords": [ + "ecmascript", + "javascript", + "polyfill", + "shim", + "es-shim API", + "array", + "object", + "group", + "groupBy" + ], + "author": "Jordan Harband ", + "license": "MIT", + "bugs": { + "url": "https://github.com/es-shims/Object.groupBy/issues" + }, + "homepage": "https://github.com/es-shims/Object.groupBy#readme", + "devDependencies": { + "@es-shims/api": "^2.4.2", + "@ljharb/eslint-config": "^21.1.0", + "aud": "^2.0.3", + "auto-changelog": "^2.4.0", + "es-value-fixtures": "^1.4.2", + "eslint": "=8.8.0", + "evalmd": "^0.0.19", + "for-each": "^0.3.3", + "functions-have-names": "^1.2.3", + "in-publish": "^2.0.1", + "npmignore": "^0.3.0", + "nyc": "^10.3.2", + "safe-publish-latest": "^2.0.0", + "tape": "^5.6.4" + }, + "dependencies": { + "call-bind": "^1.0.2", + "define-properties": "^1.2.0", + "es-abstract": "^1.21.2", + "get-intrinsic": "^1.2.1" + }, + "auto-changelog": { + "output": "CHANGELOG.md", + "template": "keepachangelog", + "unreleased": false, + "commitLimit": false, + "backfillLimit": false, + "hideCredit": true + }, + "publishConfig": { + "ignore": [ + ".github/workflows" + ] + } +} diff --git a/node_modules/object.groupby/polyfill.js b/node_modules/object.groupby/polyfill.js new file mode 100644 index 0000000000..28f0a4f67c --- /dev/null +++ b/node_modules/object.groupby/polyfill.js @@ -0,0 +1,7 @@ +'use strict'; + +var implementation = require('./implementation'); + +module.exports = function getPolyfill() { + return Object.groupBy || implementation; +}; diff --git a/node_modules/object.groupby/shim.js b/node_modules/object.groupby/shim.js new file mode 100644 index 0000000000..3205d2382e --- /dev/null +++ b/node_modules/object.groupby/shim.js @@ -0,0 +1,17 @@ +'use strict'; + +var define = require('define-properties'); + +var getPolyfill = require('./polyfill'); + +module.exports = function shim() { + var polyfill = getPolyfill(); + + define( + Object, + { groupBy: polyfill }, + { groupBy: function () { return Object.groupBy !== polyfill; } } + ); + + return polyfill; +}; diff --git a/node_modules/object.groupby/test/implementation.js b/node_modules/object.groupby/test/implementation.js new file mode 100644 index 0000000000..86e54f8a8f --- /dev/null +++ b/node_modules/object.groupby/test/implementation.js @@ -0,0 +1,13 @@ +'use strict'; + +var callBind = require('call-bind'); +var test = require('tape'); + +var implementation = require('../implementation'); +var runTests = require('./tests'); + +test('as a function', function (t) { + runTests(callBind(implementation, Object), t); + + t.end(); +}); diff --git a/node_modules/object.groupby/test/index.js b/node_modules/object.groupby/test/index.js new file mode 100644 index 0000000000..6591d8b98a --- /dev/null +++ b/node_modules/object.groupby/test/index.js @@ -0,0 +1,12 @@ +'use strict'; + +var test = require('tape'); + +var index = require('../'); +var runTests = require('./tests'); + +test('as a function', function (t) { + runTests(index, t); + + t.end(); +}); diff --git a/node_modules/object.groupby/test/shimmed.js b/node_modules/object.groupby/test/shimmed.js new file mode 100644 index 0000000000..1ff8be377b --- /dev/null +++ b/node_modules/object.groupby/test/shimmed.js @@ -0,0 +1,35 @@ +'use strict'; + +require('../auto'); + +var test = require('tape'); +var defineProperties = require('define-properties'); +var callBind = require('call-bind'); +var functionsHaveNames = require('functions-have-names')(); + +var isEnumerable = Object.prototype.propertyIsEnumerable; + +var runTests = require('./tests'); + +var name = 'groupBy'; +var fullName = 'Object.' + name; + +test('shimmed', function (t) { + var fn = Object[name]; + + t.equal(fn.length, 2, fullName + ' has a length of 2'); + + t.test('Function name', { skip: !functionsHaveNames }, function (st) { + st.equal(fn.name, name, fullName + ' has name "' + name + '"'); + st.end(); + }); + + t.test('enumerability', { skip: !defineProperties.supportsDescriptors }, function (et) { + et.equal(false, isEnumerable.call(Object, name), fullName + ' is not enumerable'); + et.end(); + }); + + runTests(callBind(fn, Object), t); + + t.end(); +}); diff --git a/node_modules/object.groupby/test/tests.js b/node_modules/object.groupby/test/tests.js new file mode 100644 index 0000000000..cde52b44ef --- /dev/null +++ b/node_modules/object.groupby/test/tests.js @@ -0,0 +1,62 @@ +'use strict'; + +var inspect = require('object-inspect'); +var forEach = require('for-each'); +var v = require('es-value-fixtures'); + +module.exports = function (groupBy, t) { + t.test('callback function', function (st) { + forEach(v.nonFunctions, function (nonFunction) { + st['throws']( + function () { groupBy([], nonFunction); }, + TypeError, + inspect(nonFunction) + ' is not a function' + ); + }); + + st.end(); + }); + + t.test('grouping', function (st) { + st.deepEqual( + groupBy([], function () { return 'a'; }), + { __proto__: null }, + 'an empty array produces an empty object' + ); + + var arr = [0, -0, 1, 2, 3, 4, 5, NaN, Infinity, -Infinity]; + var parity = function (x) { + if (x !== x) { + return void undefined; + } + if (!isFinite(x)) { + return '∞'; + } + return x % 2 === 0 ? 'even' : 'odd'; + }; + var grouped = { + __proto__: null, + even: [0, -0, 2, 4], + odd: [1, 3, 5], + undefined: [NaN], + '∞': [Infinity, -Infinity] + }; + st.deepEqual( + groupBy(arr, parity), + grouped, + inspect(arr) + ' group by parity groups to ' + inspect(grouped) + ); + + st.deepEqual( + groupBy(arr, function (x, i) { + st.equal(this, undefined, 'receiver is as expected'); // eslint-disable-line no-invalid-this + st.equal(x, arr[i], 'second argument ' + i + ' is ' + inspect(arr[i])); + return 42; + }), + { __proto__: null, 42: arr }, + 'thisArg and callback arguments are as expected' + ); + + st.end(); + }); +}; diff --git a/node_modules/regexp.prototype.flags/CHANGELOG.md b/node_modules/regexp.prototype.flags/CHANGELOG.md index f7bf7b82ef..7fb48d9214 100644 --- a/node_modules/regexp.prototype.flags/CHANGELOG.md +++ b/node_modules/regexp.prototype.flags/CHANGELOG.md @@ -5,6 +5,19 @@ All notable changes to this project will be documented in this file. The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.0.0/) and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0.html). +## [v1.5.0](https://github.com/es-shims/RegExp.prototype.flags/compare/v1.4.3...v1.5.0) - 2023-04-18 + +### Commits + +- [meta] use `npmignore` to autogenerate an npmignore file [`f7438ad`](https://github.com/es-shims/RegExp.prototype.flags/commit/f7438ad3728128b99daaeb1d3133a40d906d3621) +- [New] add `unicodeSets`/`v` flag [`f922170`](https://github.com/es-shims/RegExp.prototype.flags/commit/f92217039c9c86a61421ce69594e93a546721397) +- [Dev Deps] update `@es-shims/api`, `@ljharb/eslint-config`, `aud`, `available-regexp-flags`, `object-inspect`, `tape` [`1203078`](https://github.com/es-shims/RegExp.prototype.flags/commit/12030785e6beb1f06c406a4731714012d93867e2) +- [actions] update rebase action to use reusable workflow [`c562ea2`](https://github.com/es-shims/RegExp.prototype.flags/commit/c562ea20c27442ff30ce65091a313b5e49ae8515) +- [Dev Deps] update `aud`, `object-inspect`, `tape` [`f3ae811`](https://github.com/es-shims/RegExp.prototype.flags/commit/f3ae81109dd08b200dce8bd52c183bc44662c3b4) +- [Deps] update `define-properties`, `functions-have-names` [`2d0476e`](https://github.com/es-shims/RegExp.prototype.flags/commit/2d0476e5eba1e4a9b786f169f3be96c2f5a192b2) +- [Tests] use `for-each` instead of `foreach` [`d9f30da`](https://github.com/es-shims/RegExp.prototype.flags/commit/d9f30dab65ff0185a8688c6e62dc1fe650879cc0) +- [Deps] update `define-properties` [`81c1c20`](https://github.com/es-shims/RegExp.prototype.flags/commit/81c1c2012070c1f4480a9ab55bc0cff206152603) + ## [v1.4.3](https://github.com/es-shims/RegExp.prototype.flags/compare/v1.4.2...v1.4.3) - 2022-04-14 ### Commits diff --git a/node_modules/regexp.prototype.flags/implementation.js b/node_modules/regexp.prototype.flags/implementation.js index 9d2f0bc3ef..18ae0f83ed 100644 --- a/node_modules/regexp.prototype.flags/implementation.js +++ b/node_modules/regexp.prototype.flags/implementation.js @@ -28,6 +28,9 @@ module.exports = function flags() { if (this.unicode) { result += 'u'; } + if (this.unicodeSets) { + result += 'v'; + } if (this.sticky) { result += 'y'; } diff --git a/node_modules/regexp.prototype.flags/package.json b/node_modules/regexp.prototype.flags/package.json index cbcdc216f1..0fee56100c 100644 --- a/node_modules/regexp.prototype.flags/package.json +++ b/node_modules/regexp.prototype.flags/package.json @@ -1,6 +1,6 @@ { "name": "regexp.prototype.flags", - "version": "1.4.3", + "version": "1.5.0", "author": "Jordan Harband ", "funding": { "url": "https://github.com/sponsors/ljharb" @@ -9,6 +9,7 @@ "license": "MIT", "main": "index.js", "scripts": { + "prepack": "npmignore --auto --commentLines=autogenerated", "prepublish": "not-in-publish || npm run prepublishOnly", "prepublishOnly": "safe-publish-latest", "pretest": "npm run lint", @@ -40,25 +41,27 @@ ], "dependencies": { "call-bind": "^1.0.2", - "define-properties": "^1.1.3", - "functions-have-names": "^1.2.2" + "define-properties": "^1.2.0", + "functions-have-names": "^1.2.3" }, "devDependencies": { - "@es-shims/api": "^2.2.3", - "@ljharb/eslint-config": "^21.0.0", - "aud": "^2.0.0", + "@es-shims/api": "^2.3.1", + "@ljharb/eslint-config": "^21.0.1", + "aud": "^2.0.2", "auto-changelog": "^2.4.0", - "available-regexp-flags": "^1.0.0", + "available-regexp-flags": "^1.0.1", "covert": "^1.1.1", "eclint": "^2.8.1", "eslint": "=8.8.0", - "foreach": "^2.0.5", + "for-each": "^0.3.3", "has": "^1.0.3", "has-strict-mode": "^1.0.1", + "in-publish": "^2.0.1", + "npmignore": "^0.3.0", "nyc": "^10.3.2", - "object-inspect": "^1.12.0", + "object-inspect": "^1.12.3", "safe-publish-latest": "^2.0.0", - "tape": "^5.5.3" + "tape": "^5.6.3" }, "testling": { "files": "test/index.js", @@ -88,5 +91,10 @@ "commitLimit": false, "backfillLimit": false, "hideCredit": true + }, + "publishConfig": { + "ignore": [ + ".github/workflows" + ] } } diff --git a/node_modules/regexp.prototype.flags/test/tests.js b/node_modules/regexp.prototype.flags/test/tests.js index 0421a99b21..adcfd02625 100644 --- a/node_modules/regexp.prototype.flags/test/tests.js +++ b/node_modules/regexp.prototype.flags/test/tests.js @@ -4,7 +4,7 @@ var has = require('has'); var inspect = require('object-inspect'); var supportsDescriptors = require('define-properties').supportsDescriptors; -var forEach = require('foreach'); +var forEach = require('for-each'); var availableFlags = require('available-regexp-flags'); var regexProperties = require('available-regexp-flags/properties'); @@ -48,10 +48,10 @@ module.exports = function runTests(flags, t) { st.equal(flags(getRegexLiteral('/a/sgmi')), 'gims', 'flags(/a/sgmi) !== "gims"'); } - var randomFlags = availableFlags.slice().sort(function () { return Math.random() > 0.5 ? 1 : -1; }).join(''); + var randomFlags = availableFlags.slice().sort(function () { return Math.random() > 0.5 ? 1 : -1; }).join('').replace('v', ''); st.equal( flags(getRegexLiteral('/a/' + randomFlags)), - sortedFlags, + sortedFlags.replace('v', ''), 'random: flags(/a/' + randomFlags + ') === ' + inspect(sortedFlags) ); @@ -76,9 +76,11 @@ module.exports = function runTests(flags, t) { var obj = {}; forEach(availableFlags, function (flag) { - obj[regexProperties[flag]] = true; + if (flag !== 'v') { + obj[regexProperties[flag]] = true; + } }); - st.equal(flags(obj), sortedFlags, 'an object with every available flag: ' + sortedFlags); + st.equal(flags(obj), sortedFlags.replace('v', ''), 'an object with every available flag: ' + sortedFlags); st.end(); }); diff --git a/node_modules/resolve/lib/core.js b/node_modules/resolve/lib/core.js index ecc5b2e965..671c310a47 100644 --- a/node_modules/resolve/lib/core.js +++ b/node_modules/resolve/lib/core.js @@ -1,52 +1,14 @@ -var current = (process.versions && process.versions.node && process.versions.node.split('.')) || []; +'use strict'; -function specifierIncluded(specifier) { - var parts = specifier.split(' '); - var op = parts.length > 1 ? parts[0] : '='; - var versionParts = (parts.length > 1 ? parts[1] : parts[0]).split('.'); - - for (var i = 0; i < 3; ++i) { - var cur = parseInt(current[i] || 0, 10); - var ver = parseInt(versionParts[i] || 0, 10); - if (cur === ver) { - continue; // eslint-disable-line no-restricted-syntax, no-continue - } - if (op === '<') { - return cur < ver; - } else if (op === '>=') { - return cur >= ver; - } - return false; - } - return op === '>='; -} - -function matchesRange(range) { - var specifiers = range.split(/ ?&& ?/); - if (specifiers.length === 0) { return false; } - for (var i = 0; i < specifiers.length; ++i) { - if (!specifierIncluded(specifiers[i])) { return false; } - } - return true; -} - -function versionIncluded(specifierValue) { - if (typeof specifierValue === 'boolean') { return specifierValue; } - if (specifierValue && typeof specifierValue === 'object') { - for (var i = 0; i < specifierValue.length; ++i) { - if (matchesRange(specifierValue[i])) { return true; } - } - return false; - } - return matchesRange(specifierValue); -} - -var data = require('./core.json'); +var isCoreModule = require('is-core-module'); +var path = require('path'); +var fs = require('fs'); +var data = JSON.parse(String(fs.readFileSync(path.join(path.dirname(require.resolve('is-core-module/package.json')), 'core.json')))); var core = {}; for (var mod in data) { // eslint-disable-line no-restricted-syntax if (Object.prototype.hasOwnProperty.call(data, mod)) { - core[mod] = versionIncluded(data[mod]); + core[mod] = isCoreModule(mod); } } module.exports = core; diff --git a/node_modules/resolve/lib/core.json b/node_modules/resolve/lib/core.json index 058584b789..9a51663fc5 100644 --- a/node_modules/resolve/lib/core.json +++ b/node_modules/resolve/lib/core.json @@ -57,6 +57,8 @@ "node:https": [">= 14.18 && < 15", ">= 16"], "inspector": ">= 8", "node:inspector": [">= 14.18 && < 15", ">= 16"], + "inspector/promises": [">= 19"], + "node:inspector/promises": [">= 19"], "_linklist": "< 8", "module": true, "node:module": [">= 14.18 && < 15", ">= 16"], @@ -112,7 +114,9 @@ "node:string_decoder": [">= 14.18 && < 15", ">= 16"], "sys": [">= 0.4 && < 0.7", ">= 0.8"], "node:sys": [">= 14.18 && < 15", ">= 16"], - "node:test": ">= 18", + "test/reporters": [">= 19.9", ">= 20"], + "node:test/reporters": [">= 19.9", ">= 20"], + "node:test": [">= 16.17 && < 17", ">= 18"], "timers": true, "node:timers": [">= 14.18 && < 15", ">= 16"], "timers/promises": ">= 15", @@ -145,7 +149,8 @@ "node:v8": [">= 14.18 && < 15", ">= 16"], "vm": true, "node:vm": [">= 14.18 && < 15", ">= 16"], - "wasi": ">= 13.4 && < 13.5", + "wasi": [">= 13.4 && < 13.5", ">= 20"], + "node:wasi": ">= 20", "worker_threads": ">= 11.7", "node:worker_threads": [">= 14.18 && < 15", ">= 16"], "zlib": ">= 0.5", diff --git a/node_modules/resolve/package.json b/node_modules/resolve/package.json index 897b6edbac..a7334cd00e 100644 --- a/node_modules/resolve/package.json +++ b/node_modules/resolve/package.json @@ -1,7 +1,7 @@ { "name": "resolve", "description": "resolve like require.resolve() on behalf of files asynchronously and synchronously", - "version": "1.22.1", + "version": "1.22.3", "repository": { "type": "git", "url": "git://github.com/browserify/resolve.git" @@ -17,8 +17,8 @@ "module" ], "scripts": { - "prepack": "npmignore --auto --commentLines=autogenerated", - "prepublishOnly": "safe-publish-latest && cp node_modules/is-core-module/core.json ./lib/ ||:", + "prepack": "npmignore --auto --commentLines=autogenerated && cp node_modules/is-core-module/core.json ./lib/ ||:", + "prepublishOnly": "safe-publish-latest", "prepublish": "not-in-publish || npm run prepublishOnly", "prelint": "eclint check $(git ls-files | xargs find 2> /dev/null | grep -vE 'node_modules|\\.git')", "lint": "eslint --ext=js,mjs --no-eslintrc -c .eslintrc . 'bin/**'", @@ -30,9 +30,9 @@ "test:multirepo": "cd ./test/resolver/multirepo && npm install && npm test" }, "devDependencies": { - "@ljharb/eslint-config": "^21.0.0", - "array.prototype.map": "^1.0.4", - "aud": "^2.0.0", + "@ljharb/eslint-config": "^21.0.1", + "array.prototype.map": "^1.0.5", + "aud": "^2.0.2", "copy-dir": "^1.3.0", "eclint": "^2.8.1", "eslint": "=8.8.0", @@ -45,7 +45,7 @@ "safe-publish-latest": "^2.0.0", "semver": "^6.3.0", "tap": "0.4.13", - "tape": "^5.5.3", + "tape": "^5.6.3", "tmp": "^0.0.31" }, "license": "MIT", @@ -58,7 +58,7 @@ "url": "https://github.com/sponsors/ljharb" }, "dependencies": { - "is-core-module": "^2.9.0", + "is-core-module": "^2.12.0", "path-parse": "^1.0.7", "supports-preserve-symlinks-flag": "^1.0.0" }, diff --git a/node_modules/safe-array-concat/.eslintrc b/node_modules/safe-array-concat/.eslintrc new file mode 100644 index 0000000000..fc909f1ef0 --- /dev/null +++ b/node_modules/safe-array-concat/.eslintrc @@ -0,0 +1,15 @@ +{ + "root": true, + + "extends": "@ljharb", + + "rules": { + "id-length": "off", + "max-lines-per-function": "off", + "new-cap": ["error", { + "capIsNewExceptions": [ + "GetIntrinsic", + ], + }], + }, +} diff --git a/node_modules/safe-array-concat/.github/FUNDING.yml b/node_modules/safe-array-concat/.github/FUNDING.yml new file mode 100644 index 0000000000..bbd94cdb9d --- /dev/null +++ b/node_modules/safe-array-concat/.github/FUNDING.yml @@ -0,0 +1,12 @@ +# These are supported funding model platforms + +github: [ljharb] +patreon: # Replace with a single Patreon username +open_collective: # Replace with a single Open Collective username +ko_fi: # Replace with a single Ko-fi username +tidelift: npm/safe-array-concat +community_bridge: # Replace with a single Community Bridge project-name e.g., cloud-foundry +liberapay: # Replace with a single Liberapay username +issuehunt: # Replace with a single IssueHunt username +otechie: # Replace with a single Otechie username +custom: # Replace with up to 4 custom sponsorship URLs e.g., ['link1', 'link2'] diff --git a/node_modules/safe-array-concat/.nycrc b/node_modules/safe-array-concat/.nycrc new file mode 100644 index 0000000000..1826526e09 --- /dev/null +++ b/node_modules/safe-array-concat/.nycrc @@ -0,0 +1,13 @@ +{ + "all": true, + "check-coverage": false, + "reporter": ["text-summary", "text", "html", "json"], + "lines": 86, + "statements": 85.93, + "functions": 82.43, + "branches": 76.06, + "exclude": [ + "coverage", + "test" + ] +} diff --git a/node_modules/safe-array-concat/CHANGELOG.md b/node_modules/safe-array-concat/CHANGELOG.md new file mode 100644 index 0000000000..dee7cfbed1 --- /dev/null +++ b/node_modules/safe-array-concat/CHANGELOG.md @@ -0,0 +1,15 @@ +# Changelog + +All notable changes to this project will be documented in this file. + +The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.0.0/) +and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0.html). + +## v1.0.0 - 2023-04-20 + +### Commits + +- Initial implementation, tests, readme [`31b8e70`](https://github.com/ljharb/safe-array-concat/commit/31b8e709bbba4b01ebc51cc15cdcc7012fe58341) +- Initial commit [`83d38c6`](https://github.com/ljharb/safe-array-concat/commit/83d38c6f4cde453063393482d9129b134d403d0a) +- npm init [`516fdc2`](https://github.com/ljharb/safe-array-concat/commit/516fdc2bef306ec13f98b1f1b49c929b5308907f) +- Only apps should have lockfiles [`9cfa07b`](https://github.com/ljharb/safe-array-concat/commit/9cfa07b9112107b5ba22c74baca8cb80934a09f2) diff --git a/node_modules/safe-array-concat/LICENSE b/node_modules/safe-array-concat/LICENSE new file mode 100644 index 0000000000..b4213ac640 --- /dev/null +++ b/node_modules/safe-array-concat/LICENSE @@ -0,0 +1,21 @@ +MIT License + +Copyright (c) 2023 Jordan Harband + +Permission is hereby granted, free of charge, to any person obtaining a copy +of this software and associated documentation files (the "Software"), to deal +in the Software without restriction, including without limitation the rights +to use, copy, modify, merge, publish, distribute, sublicense, and/or sell +copies of the Software, and to permit persons to whom the Software is +furnished to do so, subject to the following conditions: + +The above copyright notice and this permission notice shall be included in all +copies or substantial portions of the Software. + +THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR +IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, +FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE +AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER +LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, +OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE +SOFTWARE. diff --git a/node_modules/safe-array-concat/README.md b/node_modules/safe-array-concat/README.md new file mode 100644 index 0000000000..c7e1d45144 --- /dev/null +++ b/node_modules/safe-array-concat/README.md @@ -0,0 +1,53 @@ +# safe-array-concat [![Version Badge][npm-version-svg]][package-url] + +[![github actions][actions-image]][actions-url] +[![coverage][codecov-image]][codecov-url] +[![License][license-image]][license-url] +[![Downloads][downloads-image]][downloads-url] + +[![npm badge][npm-badge-png]][package-url] + +`Array.prototype.concat`, but made safe by ignoring Symbol.isConcatSpreadable + +## Getting started + +```sh +npm install --save safe-array-concat +``` + +## Usage/Examples + +```js +var safeConcat = require('safe-array-concat'); +var assert = require('assert'); + +assert.deepEqual([].concat([1, 2], 3, [[4]]), [1, 2, 3, [4]], 'arrays spread as expected with normal concat'); +assert.deepEqual(safeConcat([1, 2], 3, [[4]]), [1, 2, 3, [4]], 'arrays spread as expected with safe concat'); + +String.prototype[Symbol.isConcatSpreadable] = true; +assert.deepEqual([].concat('foo', Object('bar')), ['foo', 'b', 'a', 'r'], 'spreadable String objects are spread with normal concat!!!'); +assert.deepEqual(safeConcat('foo', Object('bar')), ['foo', Object('bar')], 'spreadable String objects are not spread with safe concat'); + +Array.prototype[Symbol.isConcatSpreadable] = false; +assert.deepEqual([].concat([1, 2], 3, [[4]]), [[], [1, 2], 3, [[4]]], 'non-concat-spreadable arrays do not spread with normal concat!!!'); +assert.deepEqual(safeConcat([1, 2], 3, [[4]]), [1, 2, 3, [4]], 'non-concat-spreadable arrays still spread with safe concat'); +``` + +## Tests +Simply clone the repo, `npm install`, and run `npm test` + +[package-url]: https://npmjs.org/package/safe-array-concat +[npm-version-svg]: https://versionbadg.es/ljharb/safe-array-concat.svg +[deps-svg]: https://david-dm.org/ljharb/safe-array-concat.svg +[deps-url]: https://david-dm.org/ljharb/safe-array-concat +[dev-deps-svg]: https://david-dm.org/ljharb/safe-array-concat/dev-status.svg +[dev-deps-url]: https://david-dm.org/ljharb/safe-array-concat#info=devDependencies +[npm-badge-png]: https://nodei.co/npm/safe-array-concat.png?downloads=true&stars=true +[license-image]: https://img.shields.io/npm/l/safe-array-concat.svg +[license-url]: LICENSE +[downloads-image]: https://img.shields.io/npm/dm/safe-array-concat.svg +[downloads-url]: https://npm-stat.com/charts.html?package=safe-array-concat +[codecov-image]: https://codecov.io/gh/ljharb/safe-array-concat/branch/main/graphs/badge.svg +[codecov-url]: https://app.codecov.io/gh/ljharb/safe-array-concat/ +[actions-image]: https://img.shields.io/endpoint?url=https://github-actions-badge-u3jn4tfpocch.runkit.sh/ljharb/safe-array-concat +[actions-url]: https://github.com/ljharb/safe-array-concat/actions diff --git a/node_modules/safe-array-concat/index.js b/node_modules/safe-array-concat/index.js new file mode 100644 index 0000000000..41231db4dd --- /dev/null +++ b/node_modules/safe-array-concat/index.js @@ -0,0 +1,36 @@ +'use strict'; + +var GetIntrinsic = require('get-intrinsic'); +var $concat = GetIntrinsic('%Array.prototype.concat%'); + +var callBind = require('call-bind'); + +var callBound = require('call-bind/callBound'); +var $slice = callBound('Array.prototype.slice'); + +var hasSymbols = require('has-symbols/shams')(); +var isConcatSpreadable = hasSymbols && Symbol.isConcatSpreadable; + +var empty = []; +if (isConcatSpreadable) { + empty[isConcatSpreadable] = true; +} +var $concatApply = isConcatSpreadable ? callBind.apply($concat, empty) : null; +var $concatCall = isConcatSpreadable ? null : callBind($concat, empty); + +var isArray = isConcatSpreadable ? require('isarray') : null; + +module.exports = isConcatSpreadable + // eslint-disable-next-line no-unused-vars + ? function safeArrayConcat(item) { + for (var i = 0; i < arguments.length; i += 1) { + var arg = arguments[i]; + if (arg && typeof arg === 'object' && typeof arg[isConcatSpreadable] === 'boolean') { + var arr = isArray(arg) ? $slice(arg) : [arg]; + arr[isConcatSpreadable] = true; // shadow the property. TODO: use [[Define]] + arguments[i] = arr; + } + } + return $concatApply(arguments); + } + : $concatCall; diff --git a/node_modules/safe-array-concat/node_modules/isarray/LICENSE b/node_modules/safe-array-concat/node_modules/isarray/LICENSE new file mode 100644 index 0000000000..de3226673c --- /dev/null +++ b/node_modules/safe-array-concat/node_modules/isarray/LICENSE @@ -0,0 +1,21 @@ +MIT License + +Copyright (c) 2013 Julian Gruber + +Permission is hereby granted, free of charge, to any person obtaining a copy +of this software and associated documentation files (the "Software"), to deal +in the Software without restriction, including without limitation the rights +to use, copy, modify, merge, publish, distribute, sublicense, and/or sell +copies of the Software, and to permit persons to whom the Software is +furnished to do so, subject to the following conditions: + +The above copyright notice and this permission notice shall be included in all +copies or substantial portions of the Software. + +THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR +IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, +FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE +AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER +LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, +OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE +SOFTWARE. diff --git a/node_modules/safe-array-concat/node_modules/isarray/README.md b/node_modules/safe-array-concat/node_modules/isarray/README.md new file mode 100644 index 0000000000..3e160b2b76 --- /dev/null +++ b/node_modules/safe-array-concat/node_modules/isarray/README.md @@ -0,0 +1,38 @@ + +# isarray + +`Array#isArray` for older browsers and deprecated Node.js versions. + +[![build status](https://secure.travis-ci.org/juliangruber/isarray.svg)](http://travis-ci.org/juliangruber/isarray) +[![downloads](https://img.shields.io/npm/dm/isarray.svg)](https://www.npmjs.org/package/isarray) + +[![browser support](https://ci.testling.com/juliangruber/isarray.png) +](https://ci.testling.com/juliangruber/isarray) + +__Just use Array.isArray directly__, unless you need to support those older versions. + +## Usage + +```js +var isArray = require('isarray'); + +console.log(isArray([])); // => true +console.log(isArray({})); // => false +``` + +## Installation + +With [npm](https://npmjs.org) do + +```bash +$ npm install isarray +``` + +Then bundle for the browser with +[browserify](https://github.com/substack/node-browserify). + +## Sponsors + +This module is proudly supported by my [Sponsors](https://github.com/juliangruber/sponsors)! + +Do you want to support modules like this to improve their quality, stability and weigh in on new features? Then please consider donating to my [Patreon](https://www.patreon.com/juliangruber). Not sure how much of my modules you're using? Try [feross/thanks](https://github.com/feross/thanks)! diff --git a/node_modules/safe-array-concat/node_modules/isarray/index.js b/node_modules/safe-array-concat/node_modules/isarray/index.js new file mode 100644 index 0000000000..a57f634959 --- /dev/null +++ b/node_modules/safe-array-concat/node_modules/isarray/index.js @@ -0,0 +1,5 @@ +var toString = {}.toString; + +module.exports = Array.isArray || function (arr) { + return toString.call(arr) == '[object Array]'; +}; diff --git a/node_modules/safe-array-concat/node_modules/isarray/package.json b/node_modules/safe-array-concat/node_modules/isarray/package.json new file mode 100644 index 0000000000..fb0e89be34 --- /dev/null +++ b/node_modules/safe-array-concat/node_modules/isarray/package.json @@ -0,0 +1,48 @@ +{ + "name": "isarray", + "description": "Array#isArray for older browsers", + "version": "2.0.5", + "repository": { + "type": "git", + "url": "git://github.com/juliangruber/isarray.git" + }, + "homepage": "https://github.com/juliangruber/isarray", + "main": "index.js", + "files": [ + "index.js" + ], + "dependencies": {}, + "devDependencies": { + "tape": "~2.13.4" + }, + "keywords": [ + "browser", + "isarray", + "array" + ], + "author": { + "name": "Julian Gruber", + "email": "mail@juliangruber.com", + "url": "http://juliangruber.com" + }, + "license": "MIT", + "testling": { + "files": "test.js", + "browsers": [ + "ie/8..latest", + "firefox/17..latest", + "firefox/nightly", + "chrome/22..latest", + "chrome/canary", + "opera/12..latest", + "opera/next", + "safari/5.1..latest", + "ipad/6.0..latest", + "iphone/6.0..latest", + "android-browser/4.2..latest" + ] + }, + "scripts": { + "test": "tape test.js" + } +} diff --git a/node_modules/safe-array-concat/package.json b/node_modules/safe-array-concat/package.json new file mode 100644 index 0000000000..116ce9fee8 --- /dev/null +++ b/node_modules/safe-array-concat/package.json @@ -0,0 +1,78 @@ +{ + "name": "safe-array-concat", + "version": "1.0.0", + "description": "`Array.prototype.concat`, but made safe by ignoring Symbol.isConcatSpreadable", + "main": "index.js", + "exports": { + ".": "./index.js", + "./package.json": "./package.json" + }, + "scripts": { + "prepack": "npmignore --auto --commentLines=autogenerated", + "version": "auto-changelog && git add CHANGELOG.md", + "postversion": "auto-changelog && git add CHANGELOG.md && git commit --no-edit --amend && git tag -f \"v$(node -e \"console.log(require('./package.json').version)\")\"", + "lint": "eslint --ext=js,mjs .", + "postlint": "evalmd README.md", + "prepublish": "not-in-publish || npm run prepublishOnly", + "prepublishOnly": "safe-publish-latest", + "pretest": "npm run lint", + "tests-only": "nyc tape test", + "test": "npm run tests-only", + "posttest": "aud --production" + }, + "keywords": [ + "safe", + "Array", + "concat", + "push", + "isConcatSpreadable" + ], + "author": "Jordan Harband ", + "funding": { + "url": "https://github.com/sponsors/ljharb" + }, + "license": "MIT", + "repository": { + "type": "git", + "url": "git+https://github.com/ljharb/safe-array-concat.git" + }, + "bugs": { + "url": "https://github.com/ljharb/safe-array-concat/issues" + }, + "homepage": "https://github.com/ljharb/safe-array-concat#readme", + "devDependencies": { + "@ljharb/eslint-config": "^21.0.1", + "aud": "^2.0.2", + "auto-changelog": "^2.4.0", + "eslint": "=8.8.0", + "evalmd": "^0.0.19", + "in-publish": "^2.0.1", + "mock-property": "^1.0.0", + "npmignore": "^0.3.0", + "nyc": "^10.3.2", + "safe-publish-latest": "^2.0.0", + "tape": "^5.6.3" + }, + "dependencies": { + "call-bind": "^1.0.2", + "get-intrinsic": "^1.2.0", + "has-symbols": "^1.0.3", + "isarray": "^2.0.5" + }, + "auto-changelog": { + "output": "CHANGELOG.md", + "template": "keepachangelog", + "unreleased": false, + "commitLimit": false, + "backfillLimit": false, + "hideCredit": true + }, + "publishConfig": { + "ignore": [ + ".github/workflows" + ] + }, + "engines": { + "node": ">=0.4" + } +} diff --git a/node_modules/safe-array-concat/test/index.js b/node_modules/safe-array-concat/test/index.js new file mode 100644 index 0000000000..2e4f18dded --- /dev/null +++ b/node_modules/safe-array-concat/test/index.js @@ -0,0 +1,89 @@ +'use strict'; + +var test = require('tape'); +var mockProperty = require('mock-property'); +var hasSymbols = require('has-symbols/shams')(); +var isConcatSpreadable = hasSymbols && Symbol.isConcatSpreadable; +var species = hasSymbols && Symbol.species; + +var boundFnsHaveConfigurableLengths = Object.getOwnPropertyDescriptor && Object.getOwnPropertyDescriptor(function () {}.bind(), 'length').configurable; + +var safeConcat = require('../'); + +test('safe-array-concat', function (t) { + t.equal(typeof safeConcat, 'function', 'is a function'); + t.equal( + safeConcat.length, + boundFnsHaveConfigurableLengths ? 1 : 0, + 'has a length of ' + (boundFnsHaveConfigurableLengths ? 1 : '0 (function lengths are not configurable)'), + 'length is as expected' + ); + + t.deepEqual( + safeConcat([1, 2], [3, 4], 'foo', 5, 6, [[7]]), + [1, 2, 3, 4, 'foo', 5, 6, [7]], + 'works with flat and nested arrays' + ); + + t.deepEqual( + safeConcat(undefined, 1, 2), + [undefined, 1, 2], + 'first item as undefined is not the concat receiver, which would throw via ToObject' + ); + t.deepEqual( + safeConcat(null, 1, 2), + [null, 1, 2], + 'first item as null is not the concat receiver, which would throw via ToObject' + ); + + var arr = [1, 2]; + arr.constructor = function C() { + return { args: arguments }; + }; + t.deepEqual( + safeConcat(arr, 3, 4), + [1, 2, 3, 4], + 'first item as an array with a nonArray .constructor; ignores constructor' + ); + + t.test('has Symbol.species', { skip: !species }, function (st) { + var speciesArr = [1, 2]; + speciesArr.constructor = {}; + speciesArr.constructor[species] = function Species() { + return { args: arguments }; + }; + + st.deepEqual( + safeConcat(speciesArr, 3, 4), + [1, 2, 3, 4], + 'first item as an array with a .constructor object with a Symbol.species; ignores constructor and species' + ); + + st.end(); + }); + + t.test('has isConcatSpreadable', { skip: !isConcatSpreadable }, function (st) { + st.teardown(mockProperty(String.prototype, isConcatSpreadable, { value: true })); + + var nonSpreadable = [1, 2]; + nonSpreadable[isConcatSpreadable] = false; + + st.deepEqual( + safeConcat(nonSpreadable, 3, 4, 'foo', Object('bar')), + [1, 2, 3, 4, 'foo', Object('bar')], + 'a non-concat-spreadable array is spreaded, and a concat-spreadable String is not spreaded' + ); + + st.teardown(mockProperty(Array.prototype, isConcatSpreadable, { value: false })); + + st.deepEqual( + safeConcat([1, 2], 3, 4, 'foo', Object('bar')), + [1, 2, 3, 4, 'foo', Object('bar')], + 'all arrays marked non-concat-spreadable are still spreaded, and a concat-spreadable String is not spreaded' + ); + + st.end(); + }); + + t.end(); +}); diff --git a/node_modules/string.prototype.trim/.editorconfig b/node_modules/string.prototype.trim/.editorconfig new file mode 100644 index 0000000000..bc228f8269 --- /dev/null +++ b/node_modules/string.prototype.trim/.editorconfig @@ -0,0 +1,20 @@ +root = true + +[*] +indent_style = tab +indent_size = 4 +end_of_line = lf +charset = utf-8 +trim_trailing_whitespace = true +insert_final_newline = true +max_line_length = 150 + +[CHANGELOG.md] +indent_style = space +indent_size = 2 + +[*.json] +max_line_length = off + +[Makefile] +max_line_length = off diff --git a/node_modules/string.prototype.trim/.eslintrc b/node_modules/string.prototype.trim/.eslintrc new file mode 100644 index 0000000000..2bbc53b115 --- /dev/null +++ b/node_modules/string.prototype.trim/.eslintrc @@ -0,0 +1,25 @@ +{ + "root": true, + + "extends": "@ljharb", + + "rules": { + "id-length": 0, + "new-cap": [2, { + "capIsNewExceptions": [ + "RequireObjectCoercible", + "ToString", + ], + }], + "no-invalid-this": 1, + }, + + "overrides": [ + { + "files": "test/**", + "rules": { + "id-length": 0, + }, + }, + ], +} diff --git a/node_modules/string.prototype.trim/.nycrc b/node_modules/string.prototype.trim/.nycrc new file mode 100644 index 0000000000..bdd626ce91 --- /dev/null +++ b/node_modules/string.prototype.trim/.nycrc @@ -0,0 +1,9 @@ +{ + "all": true, + "check-coverage": false, + "reporter": ["text-summary", "text", "html", "json"], + "exclude": [ + "coverage", + "test" + ] +} diff --git a/node_modules/string.prototype.trim/CHANGELOG.md b/node_modules/string.prototype.trim/CHANGELOG.md new file mode 100644 index 0000000000..16418a538f --- /dev/null +++ b/node_modules/string.prototype.trim/CHANGELOG.md @@ -0,0 +1,174 @@ +# Changelog + +All notable changes to this project will be documented in this file. + +The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.0.0/) +and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0.html). + +## [v1.2.8](https://github.com/es-shims/String.prototype.trim/compare/v1.2.7...v1.2.8) - 2022-11-07 + +## [v1.2.7](https://github.com/es-shims/String.prototype.trim/compare/v1.2.6...v1.2.7) - 2022-11-07 + +### Commits + +- [meta] use `npmignore` to autogenerate an npmignore file [`3e6de84`](https://github.com/es-shims/String.prototype.trim/commit/3e6de84f959c1ecc44e894aa1a64a8eb5007f3f5) +- [actions] update rebase action to use reusable workflow [`b725a04`](https://github.com/es-shims/String.prototype.trim/commit/b725a0499b832e69dfe5121bb643464a659ba8ff) +- [Deps] update `es-abstract` [`b707a17`](https://github.com/es-shims/String.prototype.trim/commit/b707a1747363f361665c50eda5eb952a86755e8c) +- [Dev Deps] update `aud`, `tape` [`5295419`](https://github.com/es-shims/String.prototype.trim/commit/5295419b0bbaf8035696ef3a24a8625ee743ec7f) + +## [v1.2.6](https://github.com/es-shims/String.prototype.trim/compare/v1.2.5...v1.2.6) - 2022-04-24 + +### Commits + +- [actions] reuse common workflows [`dbfc093`](https://github.com/es-shims/String.prototype.trim/commit/dbfc0932e7b2fad166245599310a1d84a1be0882) +- [Fix] as of unicode v6, the mongolian vowel separator is no longer whitespace [`56bbb86`](https://github.com/es-shims/String.prototype.trim/commit/56bbb86b8e514a16fc47e095b8c1014e12a2e92a) +- [Dev Deps] update `eslint`, `@ljharb/eslint-config`, `@es-shims/api`, `safe-publish-latest`, `tape` [`7fa437e`](https://github.com/es-shims/String.prototype.trim/commit/7fa437e4c3d25798d979294a121f93cb4346ba04) +- [Dev Deps] update `eslint`, `@ljharb/eslint-config`, `aud`, `auto-changelog`, `functions-have-names`, `tape` [`716a060`](https://github.com/es-shims/String.prototype.trim/commit/716a06080dbca68ec8e3b2e0e18c0a333ed28594) +- [actions] update codecov uploader [`9a39958`](https://github.com/es-shims/String.prototype.trim/commit/9a39958a13e20d6b9f01f9fce71dd37cc03da52e) +- [Fix] ensure main entry point properly checks the receiver in ES3 engines [`24220c4`](https://github.com/es-shims/String.prototype.trim/commit/24220c49dcb7055b5b94eb52c4d610428e19d3e4) +- [Deps] update `define-properties`, `es-abstract` [`c6008ea`](https://github.com/es-shims/String.prototype.trim/commit/c6008ea9007741755710b70ae05003cb71a7d1bd) + +## [v1.2.5](https://github.com/es-shims/String.prototype.trim/compare/v1.2.4...v1.2.5) - 2021-10-03 + +### Commits + +- [actions] use `node/install` instead of `node/run`; use `codecov` action [`37d5a61`](https://github.com/es-shims/String.prototype.trim/commit/37d5a61c95a26c079b30e2d9d2ffdb70f36ca9cf) +- [Dev Deps] update `eslint`, `@ljharb/eslint-config`, `@es-shims/api`, `aud`, `auto-changelog`, `tape` [`4c4a85e`](https://github.com/es-shims/String.prototype.trim/commit/4c4a85e5f521ae9811ac1205af933e3845b5a24e) +- [readme] add github actions/codecov badges [`9980eee`](https://github.com/es-shims/String.prototype.trim/commit/9980eee58866b08218ff3257a3af2aa9e29774fc) +- [Deps] update `es-abstract` [`6c1da80`](https://github.com/es-shims/String.prototype.trim/commit/6c1da806270fd909a76fc43e3dfe91be46058382) +- [readme] remove defunct testling badge [`8d282d1`](https://github.com/es-shims/String.prototype.trim/commit/8d282d1becd5f8d3ffe0e6e1dbfa2ddf29071670) +- [Dev Deps] update `eslint`, `tape` [`8856c26`](https://github.com/es-shims/String.prototype.trim/commit/8856c2663b5495cafb930e009f68e2d22958cac0) +- [actions] update workflows [`62cd341`](https://github.com/es-shims/String.prototype.trim/commit/62cd3412aaeee13c0d2cfe7f9bd33297e7279989) +- [meta] use `prepublishOnly` script for npm 7+ [`abd99c4`](https://github.com/es-shims/String.prototype.trim/commit/abd99c4a9838847efb3db7ddf579fb4bda8f6030) +- [Deps] update `es-abstract` [`802cb7b`](https://github.com/es-shims/String.prototype.trim/commit/802cb7b69b3a0c9a9b9642d641f0af490bd9dde7) + +## [v1.2.4](https://github.com/es-shims/String.prototype.trim/compare/v1.2.3...v1.2.4) - 2021-02-21 + +### Commits + +- [meta] do not publish github action workflow files [`936161b`](https://github.com/es-shims/String.prototype.trim/commit/936161bf43c83e09bc39c4d472d313c8f64e3fe3) +- [readme] remove travis badge [`9a28c39`](https://github.com/es-shims/String.prototype.trim/commit/9a28c3943b51a2cc87694c954205249122256d92) +- [Dev Deps] update `eslint`, `@ljharb/eslint-config`, `aud`, `functions-have-names`, `has-strict-mode`, `tape` [`7b4be8d`](https://github.com/es-shims/String.prototype.trim/commit/7b4be8d12365feb5b42658902cf18316508a0c62) +- [Tests] increase coverage [`31b8735`](https://github.com/es-shims/String.prototype.trim/commit/31b87354f55f24501ca8b2f02477cb692a70457c) +- [actions] update workflows [`eda6ab7`](https://github.com/es-shims/String.prototype.trim/commit/eda6ab73fea52b49b74653e96ac81d5372599dc8) +- [Deps] update `call-bind`, `es-abstract` [`083f88f`](https://github.com/es-shims/String.prototype.trim/commit/083f88f5342144f337f1f82874cb8cd6f27f2262) + +## [v1.2.3](https://github.com/es-shims/String.prototype.trim/compare/v1.2.2...v1.2.3) - 2020-11-21 + +### Commits + +- [Tests] migrate tests to Github Actions [`6768c8d`](https://github.com/es-shims/String.prototype.trim/commit/6768c8d5569a6fcc841436b98a19ddf6b63c7de4) +- [Tests] run `nyc` on all tests [`2fd5baa`](https://github.com/es-shims/String.prototype.trim/commit/2fd5baa7239a4d449338e0333e2dc4573597962e) +- [Deps] update `es-abstract`; use `call-bind` where applicable [`e4e8c6e`](https://github.com/es-shims/String.prototype.trim/commit/e4e8c6ede423ee8c384564092f624f980097bb28) +- [Dev Deps] update `eslint`, `aud`, `auto-changelog` [`a21c1d5`](https://github.com/es-shims/String.prototype.trim/commit/a21c1d5c87ec9b1b5107b0a1faf138993951081c) + +## [v1.2.2](https://github.com/es-shims/String.prototype.trim/compare/v1.2.1...v1.2.2) - 2020-09-15 + +### Commits + +- [Tests] use `nyc` for coverage` [`0884270`](https://github.com/es-shims/String.prototype.trim/commit/0884270b26f7e6f7602d9f355dc3b4d5cd12d97e) +- [Tests] add implementation tests [`475c480`](https://github.com/es-shims/String.prototype.trim/commit/475c4804224a11bb6fba6d1407b59f7aab2c5d4e) +- [Dev Deps] update `eslint`, `@ljharb/eslint-config`, `aud`, `auto-changelog`, `tape` [`d70d913`](https://github.com/es-shims/String.prototype.trim/commit/d70d9136bc76499ecee1997068b7f3d1ba0f94e8) +- [actions] add "Allow Edits" workflow [`6e6be23`](https://github.com/es-shims/String.prototype.trim/commit/6e6be23aa679e02836e1f3e65bd09dd30c3fd2ae) +- [Refactor] use `RequireObjectCoercible` instead of `CheckObjectCoercible` [`5bfaf17`](https://github.com/es-shims/String.prototype.trim/commit/5bfaf1731edd5fcd01ec07f75717eebdf4992e4c) +- [Dev Deps] update `eslint`, `@ljharb/eslint-config`, `tape`, `functions-have-names`; add `safe-publish-latest` [`65be600`](https://github.com/es-shims/String.prototype.trim/commit/65be600028222127c1faaeacea810bc042f35f70) +- [Deps] update `es-abstract`, remove `function-bind` [`5f4d1ec`](https://github.com/es-shims/String.prototype.trim/commit/5f4d1ec8f2c13a4b4fde171ca2029e1ec4057b2b) +- [Refactor] switch from 2019 to 2020 AOs [`4c2d5d2`](https://github.com/es-shims/String.prototype.trim/commit/4c2d5d23f63731958007d856767f5a2f9c779c15) +- [Dev Deps] update `auto-changelog`, `tape` [`c7fc9e2`](https://github.com/es-shims/String.prototype.trim/commit/c7fc9e22b09d24a9aa9e68358d4a5ba10e25ff04) +- [Dev Deps] update `auto-changelog`; add `aud` [`e1dec36`](https://github.com/es-shims/String.prototype.trim/commit/e1dec364391ea5d7dc8339d2da279fdc511cdbe9) +- [actions] switch Automatic Rebase workflow to `pull_request_target` event [`35826c2`](https://github.com/es-shims/String.prototype.trim/commit/35826c21b140a3c1431bd20c3443da23888b92bc) +- [Deps] update `es-abstract` [`54095ef`](https://github.com/es-shims/String.prototype.trim/commit/54095ef76d193c8595516977e98343f8db754e2d) +- [Deps] update `es-abstract` [`486dd9c`](https://github.com/es-shims/String.prototype.trim/commit/486dd9c68c5843a9f50cde55749d34edb9702616) + +## [v1.2.1](https://github.com/es-shims/String.prototype.trim/compare/v1.2.0...v1.2.1) - 2019-12-16 + +### Commits + +- [Tests] use shared travis-ci configs [`52f7e64`](https://github.com/es-shims/String.prototype.trim/commit/52f7e643f128e04ed0139c1cb3da7b7907ea639f) +- [meta] add `auto-changelog` [`6284c06`](https://github.com/es-shims/String.prototype.trim/commit/6284c061c8f4de4314a43e8600ff879164ab162c) +- [meta] remove unused Makefile and associated utilities [`8c781cd`](https://github.com/es-shims/String.prototype.trim/commit/8c781cd4bad87f7bf31dae256ef0f1c19cec2113) +- [Dev Deps] update `eslint`, `@ljharb/eslint-config`, `functions-have-names` [`c54b481`](https://github.com/es-shims/String.prototype.trim/commit/c54b481743611e736315c10885cfc861d306e64a) +- [Refactor] use split-up `es-abstract` (57% bundle size decrease) [`b0378c9`](https://github.com/es-shims/String.prototype.trim/commit/b0378c99988846b0a8edf3fcfd08f30dd632f5a9) +- [actions] add automatic rebasing / merge commit blocking [`bffe893`](https://github.com/es-shims/String.prototype.trim/commit/bffe893990837250f8a3c4714bd52675251af5c7) +- [meta] add `funding` field [`0559449`](https://github.com/es-shims/String.prototype.trim/commit/05594490366fad2d8e4bd435937fbd81169d965a) +- [Deps] update `es-abstract` [`c44d307`](https://github.com/es-shims/String.prototype.trim/commit/c44d307a50bb1fc53811b49d9203cd794ed1bae4) + +## [v1.2.0](https://github.com/es-shims/String.prototype.trim/compare/v1.1.2...v1.2.0) - 2019-07-24 + +### Commits + +- [Tests] up to `node` `v12.6`, `v11.15`, `v10.16`, `v9.11`, `v8.16`, `v7.10`, `v6.17`, `4.9`; use `nvm install-latest-npm` [`b857148`](https://github.com/es-shims/String.prototype.trim/commit/b857148644d305f720b2dd9bf691b7dc2930f91d) +- [Tests] remove `jscs` [`ad1dea7`](https://github.com/es-shims/String.prototype.trim/commit/ad1dea7f6114de79d637e82cdfaf1aa5499bd358) +- [Dev Deps] update `eslint`, `@ljharb/eslint-config`, `covert`, `replace`, `semver`, `tape` [`fcbc11d`](https://github.com/es-shims/String.prototype.trim/commit/fcbc11d4af9be65f4f7eb4aec20498c7a33a004f) +- [Dev Deps] update `tape`, `jscs`, `nsp`, `eslint`, `@ljharb/eslint-config` [`06a4ffa`](https://github.com/es-shims/String.prototype.trim/commit/06a4ffa3078d4ab65418e878d3ef7b03277e8a1f) +- [Dev Deps] update `jscs`, `nsp`, `eslint`, `@es-shims/api` [`3554fb1`](https://github.com/es-shims/String.prototype.trim/commit/3554fb1fe722004080000b0767f7f89676a3d73a) +- [Dev Deps] update `nsp`, `eslint`, `@ljharb/eslint-config` [`804b2f2`](https://github.com/es-shims/String.prototype.trim/commit/804b2f244c257b32cb2473eb1a829ce97dc6a0a5) +- [Dev Deps] update `tape`, `jscs`, `nsp`, `eslint`, `semver`, `@ljharb/eslint-config` [`6a69408`](https://github.com/es-shims/String.prototype.trim/commit/6a694081cdd9aa9296ea181e4d2b4c6fe656bb16) +- [Dev Deps] update `jscs`, `eslint`, `@ljharb/eslint-config` [`e89adee`](https://github.com/es-shims/String.prototype.trim/commit/e89adeefcbd6fb59563e62d230b8036d65a8bf69) +- [Dev Deps] update `jscs`, `eslint`, `@ljharb/eslint-config` [`1280e56`](https://github.com/es-shims/String.prototype.trim/commit/1280e5629deb4554c7077d0e452399c03c06f7b1) +- [New] add `auto` entry point [`bb00b15`](https://github.com/es-shims/String.prototype.trim/commit/bb00b1551d2774e216b5d316b552d08a7f0619d4) +- [Tests] fix tests for the mongolian vowel separator [`a35f627`](https://github.com/es-shims/String.prototype.trim/commit/a35f6275ec7b4d6b47136a007fd07566e037cac8) +- [Tests] up to `node` `v5.9`, `v4.4` [`b541b9b`](https://github.com/es-shims/String.prototype.trim/commit/b541b9b46873be859aea6c5b1e7f6f54323ea139) +- [Dev Deps] update `jscs`, `nsp`, `eslint` [`b52022d`](https://github.com/es-shims/String.prototype.trim/commit/b52022d809922914827c34bcf2c1f81b68bde092) +- [Tests] use pretest/posttest for linting/security [`39f5684`](https://github.com/es-shims/String.prototype.trim/commit/39f56844f30f630ab5497f38153b8f0646ed1d96) +- [Tests] use `npx aud` instead of `nsp` or `npm audit` with hoops [`8c358c2`](https://github.com/es-shims/String.prototype.trim/commit/8c358c22ee57bd5e7b437fb707230399ea7c42aa) +- [Tests] up to `node` `v6.2` [`2ac7e1f`](https://github.com/es-shims/String.prototype.trim/commit/2ac7e1f90088bb0c96986006539ffebb6b2a6eda) +- Only apps should have lockfiles [`cb15ed5`](https://github.com/es-shims/String.prototype.trim/commit/cb15ed57fbf3ba3f2d7f24af957e8ff41421dd81) +- [Deps] update `define-properties`, `es-abstract`, `function-bind` [`5e0371a`](https://github.com/es-shims/String.prototype.trim/commit/5e0371af5c7b8fee49a0e7d1bcc26fcf41743779) +- [Dev Deps] update `eslint`, `@ljharb/eslint-config`, `@es-shims/api` [`37bae7f`](https://github.com/es-shims/String.prototype.trim/commit/37bae7f8f4952b376036d924673b9e885da022f8) +- [Tests] on `node` `v5.6`, `v4.3` [`33017cf`](https://github.com/es-shims/String.prototype.trim/commit/33017cf0d3aade480c357ee8aedaca7bc5a75092) +- [Tests] allow coverage to fail [`0d7b1e3`](https://github.com/es-shims/String.prototype.trim/commit/0d7b1e365484f8c33247b60e2a07748dc2183d40) +- [Tests] use `functions-have-names` [`3e68777`](https://github.com/es-shims/String.prototype.trim/commit/3e687776f6a45e3a6d129705aad3bb4863758114) +- [Tests] on `node` `v5.12` [`32ea49d`](https://github.com/es-shims/String.prototype.trim/commit/32ea49d7572b3f981d036ea060e3ed3559ad78ef) +- [Deps] update `es-abstract` [`15f7f24`](https://github.com/es-shims/String.prototype.trim/commit/15f7f249619b7aab941c6c8156cb81ed57c39b7e) +- [Tests] on `node` `v5.10` [`080c50f`](https://github.com/es-shims/String.prototype.trim/commit/080c50fc617de7ac024d443d4a9b76ba295bd744) +- [Deps] update `function-bind` [`532480e`](https://github.com/es-shims/String.prototype.trim/commit/532480e07ad7bf22da64d401ede35928d21ff558) + +## [v1.1.2](https://github.com/es-shims/String.prototype.trim/compare/v1.1.1...v1.1.2) - 2016-02-06 + +### Commits + +- [Dev Deps] update `tape`, `jscs`, `nsp`, `eslint`, `semver`, `@ljharb/eslint-config` [`df94d07`](https://github.com/es-shims/String.prototype.trim/commit/df94d07e12ca1e52739353f534a3d89e0a860a70) +- [Dev Deps] update `tape`, `jscs`, `eslint`, `@ljharb/eslint-config` [`ef78d89`](https://github.com/es-shims/String.prototype.trim/commit/ef78d89148efe8d371fb828923dd149163e2c5c6) +- [Dev Deps] update `jscs`, `eslint`, `@ljharb/eslint-config` [`b746516`](https://github.com/es-shims/String.prototype.trim/commit/b7465166a48828367bedaa2d42a30a5e148dcaae) +- package.json: use object form of "authors", add "contributors" [`a799df1`](https://github.com/es-shims/String.prototype.trim/commit/a799df17322ae526d5c8732c75bd5bcc3d1f649f) +- [Tests] up to `node` `v5.5`, don’t allow `0.8` to fail [`7fea308`](https://github.com/es-shims/String.prototype.trim/commit/7fea3082424fbeb25f2cb88884a999326ca428f2) +- [Dev Deps] update `jscs`, `nsp`, `eslint`, `semver`, `@ljharb/eslint-config` [`d14c7c1`](https://github.com/es-shims/String.prototype.trim/commit/d14c7c1850fb8e3a9f1d153bd818ed3beacdbadc) +- [Tests] up to `io.js` `v3.3`, `node` `v4.1` [`2903359`](https://github.com/es-shims/String.prototype.trim/commit/29033591ca3e65977e2746537c94b7e2e8b65ecc) +- [Tests] fix npm upgrades for older nodes [`0a6cbfa`](https://github.com/es-shims/String.prototype.trim/commit/0a6cbfa0ac506703ed554f6dc8bbde7ac1977cd4) +- [Deps] update `define-properties`, `es-abstract` [`39ccb08`](https://github.com/es-shims/String.prototype.trim/commit/39ccb0881762d762934ef2cb3c0459c65b3abf72) +- [Deps] update `es-abstract` [`c40e4fb`](https://github.com/es-shims/String.prototype.trim/commit/c40e4fb229e1a6a3e3c6818fc680ca380f2d866c) +- Use the polyfill, not the implementation, as the default export. [`0fe847e`](https://github.com/es-shims/String.prototype.trim/commit/0fe847e901871f1a8f33a66be2cd518bf8dcd0e1) +- [Tests] on `node` `v4.2` [`589743c`](https://github.com/es-shims/String.prototype.trim/commit/589743c0f8b1432a79cfed4b29187e6a9760a87b) +- [Deps] update `es-abstract` [`85bad8e`](https://github.com/es-shims/String.prototype.trim/commit/85bad8e217969a6e1eb7679a1bb06d6f075bd557) +- added assert [`aa81ac5`](https://github.com/es-shims/String.prototype.trim/commit/aa81ac55540a9e53a58ce0d1f5266ff36d403b3a) + +## [v1.1.1](https://github.com/es-shims/String.prototype.trim/compare/v1.1.0...v1.1.1) - 2015-08-16 + +### Commits + +- [Docs] remove "if" around `.shim` call in example [`b9ce088`](https://github.com/es-shims/String.prototype.trim/commit/b9ce08875f7252a85928e426db9b533cc5ee007a) + +## [v1.1.0](https://github.com/es-shims/String.prototype.trim/compare/v1.0.0...v1.1.0) - 2015-08-16 + +### Commits + +- Implement the [es-shim API](es-shims/api). [`5812703`](https://github.com/es-shims/String.prototype.trim/commit/581270337926462f9babf83772bcab71bc48bf8f) +- Move implementation to `implementation.js` [`e455b2a`](https://github.com/es-shims/String.prototype.trim/commit/e455b2af0e360358f02e54b556e698a971fc31f4) +- Fix `make release` [`efd2071`](https://github.com/es-shims/String.prototype.trim/commit/efd20711e9a226ad25e2b1e5ad7bbe85ef832d69) +- [Dev Deps] update `jscs` [`6c2fa95`](https://github.com/es-shims/String.prototype.trim/commit/6c2fa957538f139767de540693910cf1f49c8d3a) +- [Deps] update `es-abstract` [`de4cd87`](https://github.com/es-shims/String.prototype.trim/commit/de4cd876239d550f3c35e1db55a973cbb03c9b77) +- [Dev Deps] update `tape` [`2d07fe1`](https://github.com/es-shims/String.prototype.trim/commit/2d07fe19ff136467e1edbca91cfea6caac1b06d8) +- [Dev Deps] update `tape` [`e697efe`](https://github.com/es-shims/String.prototype.trim/commit/e697efe943cab07639d62649424c72e4f44f2469) +- Switch from vb.teelaun.ch to versionbadg.es for the npm version badge SVG. [`6065103`](https://github.com/es-shims/String.prototype.trim/commit/6065103baa10f56b904f44693d5ba6b23ee6ba57) + +## v1.0.0 - 2015-08-08 + +### Commits + +- Dotfiles / Makefile [`b7f0e52`](https://github.com/es-shims/String.prototype.trim/commit/b7f0e526ea73136e00595d768faaba83a41da7ee) +- Tests [`4d61441`](https://github.com/es-shims/String.prototype.trim/commit/4d61441de9dcf2278dcd118077d4541843a47534) +- package.json [`2a2e0f2`](https://github.com/es-shims/String.prototype.trim/commit/2a2e0f2949dd30095eda20e1796483ea21dd7b38) +- Initial commit [`51aa18f`](https://github.com/es-shims/String.prototype.trim/commit/51aa18f299f8d340034670af0311c5981c89f713) +- Read me [`5681192`](https://github.com/es-shims/String.prototype.trim/commit/56811925aed1dd06a2cfa654b3f246b6a897a33c) +- Implementation [`87f08c5`](https://github.com/es-shims/String.prototype.trim/commit/87f08c565f7be56c2826386aa4a4e683a00d8871) diff --git a/node_modules/string.prototype.trim/LICENSE b/node_modules/string.prototype.trim/LICENSE new file mode 100644 index 0000000000..fcf5754efe --- /dev/null +++ b/node_modules/string.prototype.trim/LICENSE @@ -0,0 +1,21 @@ +The MIT License (MIT) + +Copyright (c) 2015 Jordan Harband + +Permission is hereby granted, free of charge, to any person obtaining a copy +of this software and associated documentation files (the "Software"), to deal +in the Software without restriction, including without limitation the rights +to use, copy, modify, merge, publish, distribute, sublicense, and/or sell +copies of the Software, and to permit persons to whom the Software is +furnished to do so, subject to the following conditions: + +The above copyright notice and this permission notice shall be included in all +copies or substantial portions of the Software. + +THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR +IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, +FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE +AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER +LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, +OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE +SOFTWARE. diff --git a/node_modules/string.prototype.trim/README.md b/node_modules/string.prototype.trim/README.md new file mode 100644 index 0000000000..60b333f5c5 --- /dev/null +++ b/node_modules/string.prototype.trim/README.md @@ -0,0 +1,48 @@ +# String.prototype.trim [![Version Badge][npm-version-svg]][package-url] + +[![github actions][actions-image]][actions-url] +[![coverage][codecov-image]][codecov-url] +[![dependency status][deps-svg]][deps-url] +[![dev dependency status][dev-deps-svg]][dev-deps-url] +[![License][license-image]][license-url] +[![Downloads][downloads-image]][downloads-url] + +[![npm badge][npm-badge-png]][package-url] + +An ES5 spec-compliant `String.prototype.trim` shim. Invoke its "shim" method to shim `String.prototype.trim` if it is unavailable. + +This package implements the [es-shim API](https://github.com/es-shims/api) interface. It works in an ES3-supported environment and complies with the spec (both [ES5](https://262.ecma-international.org/5.1/#sec-15.5.4.20) and [current](https://tc39.es/ecma262/#sec-string.prototype.trim)). + +Most common usage: + +```js +var assert = require('assert'); +var trim = require('string.prototype.trim'); + +assert(trim(' \t\na \t\n') === 'a'); + +trim.shim(); // will be a no-op if not needed + +assert(trim(' \t\na \t\n') === ' \t\na \t\n'.trim()); +``` + +## Engine Bugs +Some implementations of `String#trim` incorrectly trim zero-width spaces. This shim detects and corrects this behavior. + +## Tests +Simply clone the repo, `npm install`, and run `npm test` + +[package-url]: https://npmjs.com/package/string.prototype.trim +[npm-version-svg]: https://versionbadg.es/es-shims/String.prototype.trim.svg +[deps-svg]: https://david-dm.org/es-shims/String.prototype.trim.svg +[deps-url]: https://david-dm.org/es-shims/String.prototype.trim +[dev-deps-svg]: https://david-dm.org/es-shims/String.prototype.trim/dev-status.svg +[dev-deps-url]: https://david-dm.org/es-shims/String.prototype.trim#info=devDependencies +[license-image]: https://img.shields.io/npm/l/string.prototype.trim.svg +[license-url]: LICENSE +[downloads-image]: https://img.shields.io/npm/dm/string.prototype.trim.svg +[downloads-url]: https://npm-stat.com/charts.html?package=string.prototype.trim +[codecov-image]: https://codecov.io/gh/es-shims/String.prototype.trim/branch/main/graphs/badge.svg +[codecov-url]: https://app.codecov.io/gh/es-shims/String.prototype.trim/ +[actions-image]: https://img.shields.io/endpoint?url=https://github-actions-badge-u3jn4tfpocch.runkit.sh/es-shims/String.prototype.trim +[actions-url]: https://github.com/es-shims/String.prototype.trim/actions diff --git a/node_modules/string.prototype.trim/auto.js b/node_modules/string.prototype.trim/auto.js new file mode 100644 index 0000000000..8ebf606cb0 --- /dev/null +++ b/node_modules/string.prototype.trim/auto.js @@ -0,0 +1,3 @@ +'use strict'; + +require('./shim')(); diff --git a/node_modules/string.prototype.trim/implementation.js b/node_modules/string.prototype.trim/implementation.js new file mode 100644 index 0000000000..3fbc731de9 --- /dev/null +++ b/node_modules/string.prototype.trim/implementation.js @@ -0,0 +1,21 @@ +'use strict'; + +var RequireObjectCoercible = require('es-abstract/2022/RequireObjectCoercible'); +var ToString = require('es-abstract/2022/ToString'); +var callBound = require('call-bind/callBound'); +var $replace = callBound('String.prototype.replace'); + +var mvsIsWS = (/^\s$/).test('\u180E'); +/* eslint-disable no-control-regex */ +var leftWhitespace = mvsIsWS + ? /^[\x09\x0A\x0B\x0C\x0D\x20\xA0\u1680\u180E\u2000\u2001\u2002\u2003\u2004\u2005\u2006\u2007\u2008\u2009\u200A\u202F\u205F\u3000\u2028\u2029\uFEFF]+/ + : /^[\x09\x0A\x0B\x0C\x0D\x20\xA0\u1680\u2000\u2001\u2002\u2003\u2004\u2005\u2006\u2007\u2008\u2009\u200A\u202F\u205F\u3000\u2028\u2029\uFEFF]+/; +var rightWhitespace = mvsIsWS + ? /[\x09\x0A\x0B\x0C\x0D\x20\xA0\u1680\u180E\u2000\u2001\u2002\u2003\u2004\u2005\u2006\u2007\u2008\u2009\u200A\u202F\u205F\u3000\u2028\u2029\uFEFF]+$/ + : /[\x09\x0A\x0B\x0C\x0D\x20\xA0\u1680\u2000\u2001\u2002\u2003\u2004\u2005\u2006\u2007\u2008\u2009\u200A\u202F\u205F\u3000\u2028\u2029\uFEFF]+$/; +/* eslint-enable no-control-regex */ + +module.exports = function trim() { + var S = ToString(RequireObjectCoercible(this)); + return $replace($replace(S, leftWhitespace, ''), rightWhitespace, ''); +}; diff --git a/node_modules/string.prototype.trim/index.js b/node_modules/string.prototype.trim/index.js new file mode 100644 index 0000000000..6aba38207e --- /dev/null +++ b/node_modules/string.prototype.trim/index.js @@ -0,0 +1,23 @@ +'use strict'; + +var callBind = require('call-bind'); +var define = require('define-properties'); +var RequireObjectCoercible = require('es-abstract/2022/RequireObjectCoercible'); + +var implementation = require('./implementation'); +var getPolyfill = require('./polyfill'); +var shim = require('./shim'); + +var bound = callBind(getPolyfill()); +var boundMethod = function trim(receiver) { + RequireObjectCoercible(receiver); + return bound(receiver); +}; + +define(boundMethod, { + getPolyfill: getPolyfill, + implementation: implementation, + shim: shim +}); + +module.exports = boundMethod; diff --git a/node_modules/string.prototype.trim/package.json b/node_modules/string.prototype.trim/package.json new file mode 100644 index 0000000000..467d4ae253 --- /dev/null +++ b/node_modules/string.prototype.trim/package.json @@ -0,0 +1,101 @@ +{ + "name": "string.prototype.trim", + "version": "1.2.7", + "author": { + "name": "Jordan Harband", + "email": "ljharb@gmail.com", + "url": "http://ljharb.codes" + }, + "funding": { + "url": "https://github.com/sponsors/ljharb" + }, + "contributors": [ + { + "name": "Jordan Harband", + "email": "ljharb@gmail.com", + "url": "http://ljharb.codes" + } + ], + "description": "ES5 spec-compliant shim for String.prototype.trim", + "license": "MIT", + "main": "index.js", + "scripts": { + "prepack": "npmignore --auto --commentLines=autogenerated", + "prepublish": "not-in-publish || npm run prepublishOnly", + "prepublishOnly": "safe-publish-latest", + "pretest": "npm run lint", + "test": "npm run tests-only", + "posttest": "aud --production", + "tests-only": "nyc tape 'test/**/*.js'", + "lint": "eslint --ext=js,mjs .", + "postlint": "es-shim-api --bound", + "version": "auto-changelog && git add CHANGELOG.md", + "postversion": "auto-changelog && git add CHANGELOG.md && git commit --no-edit --amend && git tag -f \"v$(node -e \"console.log(require('./package.json').version)\")\"" + }, + "repository": { + "type": "git", + "url": "git://github.com/es-shims/String.prototype.trim.git" + }, + "keywords": [ + "String.prototype.trim", + "string", + "ES5", + "shim", + "trim", + "polyfill", + "es-shim API" + ], + "dependencies": { + "call-bind": "^1.0.2", + "define-properties": "^1.1.4", + "es-abstract": "^1.20.4" + }, + "devDependencies": { + "@es-shims/api": "^2.2.3", + "@ljharb/eslint-config": "^21.0.0", + "aud": "^2.0.1", + "auto-changelog": "^2.4.0", + "eslint": "=8.8.0", + "functions-have-names": "^1.2.3", + "has-strict-mode": "^1.0.1", + "in-publish": "^2.0.1", + "npmignore": "^0.3.0", + "nyc": "^10.3.2", + "safe-publish-latest": "^2.0.0", + "tape": "^5.6.1" + }, + "testling": { + "files": "test/index.js", + "browsers": [ + "iexplore/9.0..latest", + "firefox/4.0..6.0", + "firefox/15.0..latest", + "firefox/nightly", + "chrome/4.0..10.0", + "chrome/20.0..latest", + "chrome/canary", + "opera/11.6..latest", + "opera/next", + "safari/5.0..latest", + "ipad/6.0..latest", + "iphone/6.0..latest", + "android-browser/4.2" + ] + }, + "engines": { + "node": ">= 0.4" + }, + "auto-changelog": { + "output": "CHANGELOG.md", + "template": "keepachangelog", + "unreleased": false, + "commitLimit": false, + "backfillLimit": false, + "hideCredit": true + }, + "publishConfig": { + "ignore": [ + ".github/workflows" + ] + } +} diff --git a/node_modules/string.prototype.trim/polyfill.js b/node_modules/string.prototype.trim/polyfill.js new file mode 100644 index 0000000000..534db4ca9f --- /dev/null +++ b/node_modules/string.prototype.trim/polyfill.js @@ -0,0 +1,19 @@ +'use strict'; + +var implementation = require('./implementation'); + +var zeroWidthSpace = '\u200b'; +var mongolianVowelSeparator = '\u180E'; + +module.exports = function getPolyfill() { + if ( + String.prototype.trim + && zeroWidthSpace.trim() === zeroWidthSpace + && mongolianVowelSeparator.trim() === mongolianVowelSeparator + && ('_' + mongolianVowelSeparator).trim() === ('_' + mongolianVowelSeparator) + && (mongolianVowelSeparator + '_').trim() === (mongolianVowelSeparator + '_') + ) { + return String.prototype.trim; + } + return implementation; +}; diff --git a/node_modules/string.prototype.trim/shim.js b/node_modules/string.prototype.trim/shim.js new file mode 100644 index 0000000000..607c909ea2 --- /dev/null +++ b/node_modules/string.prototype.trim/shim.js @@ -0,0 +1,14 @@ +'use strict'; + +var define = require('define-properties'); +var getPolyfill = require('./polyfill'); + +module.exports = function shimStringTrim() { + var polyfill = getPolyfill(); + define(String.prototype, { trim: polyfill }, { + trim: function testTrim() { + return String.prototype.trim !== polyfill; + } + }); + return polyfill; +}; diff --git a/node_modules/string.prototype.trim/test/implementation.js b/node_modules/string.prototype.trim/test/implementation.js new file mode 100644 index 0000000000..ba3ae596ea --- /dev/null +++ b/node_modules/string.prototype.trim/test/implementation.js @@ -0,0 +1,21 @@ +'use strict'; + +var trim = require('../implementation'); +var test = require('tape'); +var hasStrictMode = require('has-strict-mode')(); +var callBind = require('call-bind'); + +var runTests = require('./tests'); + +test('as a function', function (t) { + t.test('bad array/this value', { skip: !hasStrictMode }, function (st) { + /* eslint no-useless-call: 0 */ + st['throws'](function () { trim.call(undefined, 'a'); }, TypeError, 'undefined is not an object'); + st['throws'](function () { trim.call(null, 'a'); }, TypeError, 'null is not an object'); + st.end(); + }); + + runTests(callBind(trim), t); + + t.end(); +}); diff --git a/node_modules/string.prototype.trim/test/index.js b/node_modules/string.prototype.trim/test/index.js new file mode 100644 index 0000000000..cc90851756 --- /dev/null +++ b/node_modules/string.prototype.trim/test/index.js @@ -0,0 +1,17 @@ +'use strict'; + +var trim = require('../'); +var test = require('tape'); +var runTests = require('./tests'); + +test('as a function', function (t) { + t.test('bad array/this value', function (st) { + st['throws'](function () { trim(undefined, 'a'); }, TypeError, 'undefined is not an object'); + st['throws'](function () { trim(null, 'a'); }, TypeError, 'null is not an object'); + st.end(); + }); + + runTests(trim, t); + + t.end(); +}); diff --git a/node_modules/string.prototype.trim/test/shimmed.js b/node_modules/string.prototype.trim/test/shimmed.js new file mode 100644 index 0000000000..57cf69c7c3 --- /dev/null +++ b/node_modules/string.prototype.trim/test/shimmed.js @@ -0,0 +1,36 @@ +'use strict'; + +require('../auto'); + +var test = require('tape'); +var defineProperties = require('define-properties'); +var callBind = require('call-bind'); +var isEnumerable = Object.prototype.propertyIsEnumerable; +var functionsHaveNames = require('functions-have-names')(); + +var runTests = require('./tests'); + +test('shimmed', function (t) { + t.equal(String.prototype.trim.length, 0, 'String#trim has a length of 0'); + t.test('Function name', { skip: !functionsHaveNames }, function (st) { + st.equal(String.prototype.trim.name, 'trim', 'String#trim has name "trim"'); + st.end(); + }); + + t.test('enumerability', { skip: !defineProperties.supportsDescriptors }, function (et) { + et.equal(false, isEnumerable.call(String.prototype, 'trim'), 'String#trim is not enumerable'); + et.end(); + }); + + var supportsStrictMode = (function () { return typeof this === 'undefined'; }()); + + t.test('bad string/this value', { skip: !supportsStrictMode }, function (st) { + st['throws'](function () { return String.prototype.trim.call(undefined, 'a'); }, TypeError, 'undefined is not an object'); + st['throws'](function () { return String.prototype.trim.call(null, 'a'); }, TypeError, 'null is not an object'); + st.end(); + }); + + runTests(callBind(String.prototype.trim), t); + + t.end(); +}); diff --git a/node_modules/string.prototype.trim/test/tests.js b/node_modules/string.prototype.trim/test/tests.js new file mode 100644 index 0000000000..5a2f10fcaf --- /dev/null +++ b/node_modules/string.prototype.trim/test/tests.js @@ -0,0 +1,45 @@ +'use strict'; + +module.exports = function (trim, t) { + t.test('normal cases', function (st) { + st.equal(trim(' \t\na \t\n'), 'a', 'strips whitespace off left and right sides'); + st.equal(trim('a'), 'a', 'noop when no whitespace'); + + var allWhitespaceChars = '\x09\x0A\x0B\x0C\x0D\x20\xA0\u1680\u2000\u2001\u2002\u2003\u2004\u2005\u2006\u2007\u2008\u2009\u200A\u202F\u205F\u3000\u2028\u2029\uFEFF'; + st.equal(trim(allWhitespaceChars + 'a' + allWhitespaceChars), 'a', 'all expected whitespace chars are trimmed'); + + st.end(); + }); + + // see https://codeblog.jonskeet.uk/2014/12/01/when-is-an-identifier-not-an-identifier-attack-of-the-mongolian-vowel-separator/ + var mongolianVowelSeparator = '\u180E'; + var mvsIsWS = (/^\s$/).test('\u180E'); + t.test('unicode >= 4 && < 6.3', function (st) { + st.equal( + trim(mongolianVowelSeparator + 'a' + mongolianVowelSeparator), + mvsIsWS ? 'a' : mongolianVowelSeparator + 'a' + mongolianVowelSeparator, + 'mongolian vowel separator is' + (mvsIsWS ? '' : ' not') + ' whitespace' + ); + + st.equal( + trim(mongolianVowelSeparator), + mvsIsWS ? '' : mongolianVowelSeparator + ); + st.equal( + trim('_' + mongolianVowelSeparator), + '_' + (mvsIsWS ? '' : mongolianVowelSeparator) + ); + st.equal( + trim(mongolianVowelSeparator + '_'), + (mvsIsWS ? '' : mongolianVowelSeparator) + '_' + ); + + st.end(); + }); + + t.test('zero-width spaces', function (st) { + var zeroWidth = '\u200b'; + st.equal(trim(zeroWidth), zeroWidth, 'zero width space does not trim'); + st.end(); + }); +}; diff --git a/node_modules/tsconfig-paths/package.json b/node_modules/tsconfig-paths/package.json index ad59c3e8ae..a98bd2e3f9 100644 --- a/node_modules/tsconfig-paths/package.json +++ b/node_modules/tsconfig-paths/package.json @@ -1,6 +1,6 @@ { "name": "tsconfig-paths", - "version": "3.14.1", + "version": "3.14.2", "description": "Load node modules according to tsconfig paths, in run-time or via API.", "main": "lib/index.js", "types": "lib/index.d.ts", @@ -34,7 +34,7 @@ }, "dependencies": { "@types/json5": "^0.0.29", - "json5": "^1.0.1", + "json5": "^1.0.2", "minimist": "^1.2.6", "strip-bom": "^3.0.0" }, diff --git a/node_modules/typed-array-buffer/.eslintrc b/node_modules/typed-array-buffer/.eslintrc new file mode 100644 index 0000000000..46f3b120b8 --- /dev/null +++ b/node_modules/typed-array-buffer/.eslintrc @@ -0,0 +1,13 @@ +{ + "root": true, + + "extends": "@ljharb", + + "rules": { + "new-cap": ["error", { + "capIsNewExceptions": [ + "GetIntrinsic", + ], + }], + }, +} diff --git a/node_modules/typed-array-buffer/.github/FUNDING.yml b/node_modules/typed-array-buffer/.github/FUNDING.yml new file mode 100644 index 0000000000..bf630d0a3c --- /dev/null +++ b/node_modules/typed-array-buffer/.github/FUNDING.yml @@ -0,0 +1,12 @@ +# These are supported funding model platforms + +github: [ljharb] +patreon: # Replace with a single Patreon username +open_collective: # Replace with a single Open Collective username +ko_fi: # Replace with a single Ko-fi username +tidelift: npm/typed-array-buffer +community_bridge: # Replace with a single Community Bridge project-name e.g., cloud-foundry +liberapay: # Replace with a single Liberapay username +issuehunt: # Replace with a single IssueHunt username +otechie: # Replace with a single Otechie username +custom: # Replace with a single custom sponsorship URL diff --git a/node_modules/typed-array-buffer/.nycrc b/node_modules/typed-array-buffer/.nycrc new file mode 100644 index 0000000000..1826526e09 --- /dev/null +++ b/node_modules/typed-array-buffer/.nycrc @@ -0,0 +1,13 @@ +{ + "all": true, + "check-coverage": false, + "reporter": ["text-summary", "text", "html", "json"], + "lines": 86, + "statements": 85.93, + "functions": 82.43, + "branches": 76.06, + "exclude": [ + "coverage", + "test" + ] +} diff --git a/node_modules/typed-array-buffer/CHANGELOG.md b/node_modules/typed-array-buffer/CHANGELOG.md new file mode 100644 index 0000000000..b4f34e40b3 --- /dev/null +++ b/node_modules/typed-array-buffer/CHANGELOG.md @@ -0,0 +1,15 @@ +# Changelog + +All notable changes to this project will be documented in this file. + +The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.0.0/) +and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0.html). + +## v1.0.0 - 2023-06-05 + +### Commits + +- Initial implementation, tests, readme [`5bc2953`](https://github.com/ljharb/typed-array-buffer/commit/5bc295337b4310659832fc08699a4d10c2dbbded) +- Initial commit [`98b8ac9`](https://github.com/ljharb/typed-array-buffer/commit/98b8ac90f407c368effa25d395aeea1d72e1d4b6) +- npm init [`6a4a73c`](https://github.com/ljharb/typed-array-buffer/commit/6a4a73c66b1f13fd17699c6500a4979003676696) +- Only apps should have lockfiles [`7226abf`](https://github.com/ljharb/typed-array-buffer/commit/7226abfda329b99dc25526c48740b076d128a7be) diff --git a/node_modules/typed-array-buffer/LICENSE b/node_modules/typed-array-buffer/LICENSE new file mode 100644 index 0000000000..b4213ac640 --- /dev/null +++ b/node_modules/typed-array-buffer/LICENSE @@ -0,0 +1,21 @@ +MIT License + +Copyright (c) 2023 Jordan Harband + +Permission is hereby granted, free of charge, to any person obtaining a copy +of this software and associated documentation files (the "Software"), to deal +in the Software without restriction, including without limitation the rights +to use, copy, modify, merge, publish, distribute, sublicense, and/or sell +copies of the Software, and to permit persons to whom the Software is +furnished to do so, subject to the following conditions: + +The above copyright notice and this permission notice shall be included in all +copies or substantial portions of the Software. + +THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR +IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, +FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE +AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER +LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, +OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE +SOFTWARE. diff --git a/node_modules/typed-array-buffer/README.md b/node_modules/typed-array-buffer/README.md new file mode 100644 index 0000000000..eb7205dd57 --- /dev/null +++ b/node_modules/typed-array-buffer/README.md @@ -0,0 +1,42 @@ +# typed-array-buffer [![Version Badge][npm-version-svg]][package-url] + +[![github actions][actions-image]][actions-url] +[![coverage][codecov-image]][codecov-url] +[![License][license-image]][license-url] +[![Downloads][downloads-image]][downloads-url] + +[![npm badge][npm-badge-png]][package-url] + +Get the ArrayBuffer out of a TypedArray, robustly. + +This will work in node <= 0.10 and < 0.11.4, where there's no prototype accessor, only a nonconfigurable own property. +It will also work in modern engines where `TypedArray.prototype.buffer` has been deleted after this module has loaded. + +## Example + +```js +const typedArrayBuffer = require('typed-array-buffer'); +const assert = require('assert'); + +const arr = new Uint8Array(0); +assert.equal(arr.buffer, typedArrayBuffer(arr)); +``` + +## Tests +Simply clone the repo, `npm install`, and run `npm test` + +[package-url]: https://npmjs.org/package/typed-array-buffer +[npm-version-svg]: https://versionbadg.es/ljharb/typed-array-buffer.svg +[deps-svg]: https://david-dm.org/ljharb/typed-array-buffer.svg +[deps-url]: https://david-dm.org/ljharb/typed-array-buffer +[dev-deps-svg]: https://david-dm.org/ljharb/typed-array-buffer/dev-status.svg +[dev-deps-url]: https://david-dm.org/ljharb/typed-array-buffer#info=devDependencies +[npm-badge-png]: https://nodei.co/npm/typed-array-buffer.png?downloads=true&stars=true +[license-image]: https://img.shields.io/npm/l/typed-array-buffer.svg +[license-url]: LICENSE +[downloads-image]: https://img.shields.io/npm/dm/typed-array-buffer.svg +[downloads-url]: https://npm-stat.com/charts.html?package=typed-array-buffer +[codecov-image]: https://codecov.io/gh/ljharb/typed-array-buffer/branch/main/graphs/badge.svg +[codecov-url]: https://app.codecov.io/gh/ljharb/typed-array-buffer/ +[actions-image]: https://img.shields.io/endpoint?url=https://github-actions-badge-u3jn4tfpocch.runkit.sh/ljharb/typed-array-buffer +[actions-url]: https://github.com/ljharb/typed-array-buffer/actions diff --git a/node_modules/typed-array-buffer/index.js b/node_modules/typed-array-buffer/index.js new file mode 100644 index 0000000000..34939d519b --- /dev/null +++ b/node_modules/typed-array-buffer/index.js @@ -0,0 +1,19 @@ +'use strict'; + +var GetIntrinsic = require('get-intrinsic'); + +var $TypeError = GetIntrinsic('%TypeError%'); + +var callBound = require('call-bind/callBound'); + +var $typedArrayBuffer = callBound('TypedArray.prototype.buffer', true); + +var isTypedArray = require('is-typed-array'); + +// node <= 0.10, < 0.11.4 has a nonconfigurable own property instead of a prototype getter +module.exports = $typedArrayBuffer || function typedArrayBuffer(x) { + if (!isTypedArray(x)) { + throw new $TypeError('Not a Typed Array'); + } + return x.buffer; +}; diff --git a/node_modules/typed-array-buffer/package.json b/node_modules/typed-array-buffer/package.json new file mode 100644 index 0000000000..4fcd276700 --- /dev/null +++ b/node_modules/typed-array-buffer/package.json @@ -0,0 +1,73 @@ +{ + "name": "typed-array-buffer", + "version": "1.0.0", + "description": "Get the ArrayBuffer out of a TypedArray, robustly.", + "main": "index.js", + "exports": { + ".": "./index.js", + "./package.json": "./package.json" + }, + "scripts": { + "prepack": "npmignore --auto --commentLines=autogenerated", + "prepublishOnly": "safe-publish-latest", + "prepublish": "not-in-publish || npm run prepublishOnly", + "lint": "eslint --ext=js,mjs .", + "pretest": "npm run lint", + "tests-only": "nyc tape 'test/**/*.js'", + "test": "npm run tests-only", + "posttest": "aud --production", + "version": "auto-changelog && git add CHANGELOG.md", + "postversion": "auto-changelog && git add CHANGELOG.md && git commit --no-edit --amend && git tag -f \"v$(node -e \"console.log(require('./package.json').version)\")\"" + }, + "repository": { + "type": "git", + "url": "git+https://github.com/ljharb/typed-array-buffer.git" + }, + "keywords": [ + "typed array", + "arraybuffer", + "buffer" + ], + "author": "Jordan Harband ", + "license": "MIT", + "bugs": { + "url": "https://github.com/ljharb/typed-array-buffer/issues" + }, + "homepage": "https://github.com/ljharb/typed-array-buffer#readme", + "dependencies": { + "call-bind": "^1.0.2", + "get-intrinsic": "^1.2.1", + "is-typed-array": "^1.1.10" + }, + "devDependencies": { + "@ljharb/eslint-config": "^21.1.0", + "aud": "^2.0.2", + "auto-changelog": "^2.4.0", + "available-typed-arrays": "^1.0.5", + "es-value-fixtures": "^1.4.2", + "eslint": "=8.8.0", + "for-each": "^0.3.3", + "in-publish": "^2.0.1", + "npmignore": "^0.3.0", + "nyc": "^10.3.2", + "object-inspect": "^1.12.3", + "safe-publish-latest": "^2.0.0", + "tape": "^5.6.3" + }, + "engines": { + "node": ">= 0.4" + }, + "auto-changelog": { + "output": "CHANGELOG.md", + "template": "keepachangelog", + "unreleased": false, + "commitLimit": false, + "backfillLimit": false, + "hideCredit": true + }, + "publishConfig": { + "ignore": [ + ".github/workflows" + ] + } +} diff --git a/node_modules/typed-array-buffer/test/index.js b/node_modules/typed-array-buffer/test/index.js new file mode 100644 index 0000000000..57247be00f --- /dev/null +++ b/node_modules/typed-array-buffer/test/index.js @@ -0,0 +1,22 @@ +'use strict'; + +var test = require('tape'); +var availableTypedArrays = require('available-typed-arrays')(); +var forEach = require('for-each'); +var v = require('es-value-fixtures'); +var inspect = require('object-inspect'); + +var typedArrayBuffer = require('../'); + +test('typedArrayBuffer', function (t) { + forEach(v.primitives.concat(v.objects), function (nonTA) { + t['throws'](function () { typedArrayBuffer(nonTA); }, TypeError, inspect(nonTA) + ' is not a Typed Array'); + }); + + forEach(availableTypedArrays, function (TA) { + var ta = new global[TA](0); + t.equal(typedArrayBuffer(ta), ta.buffer, inspect(ta) + ' has the same buffer as its own buffer property'); + }); + + t.end(); +}); diff --git a/node_modules/typed-array-byte-length/.eslintrc b/node_modules/typed-array-byte-length/.eslintrc new file mode 100644 index 0000000000..7c87f56901 --- /dev/null +++ b/node_modules/typed-array-byte-length/.eslintrc @@ -0,0 +1,12 @@ +{ + "root": true, + + "extends": "@ljharb", + + "globals": { + "Uint8Array": false, + }, + + "rules": { + }, +} diff --git a/node_modules/typed-array-byte-length/.github/FUNDING.yml b/node_modules/typed-array-byte-length/.github/FUNDING.yml new file mode 100644 index 0000000000..7d6aac43f8 --- /dev/null +++ b/node_modules/typed-array-byte-length/.github/FUNDING.yml @@ -0,0 +1,12 @@ +# These are supported funding model platforms + +github: [ljharb] +patreon: # Replace with a single Patreon username +open_collective: # Replace with a single Open Collective username +ko_fi: # Replace with a single Ko-fi username +tidelift: npm/typed-array-length +community_bridge: # Replace with a single Community Bridge project-name e.g., cloud-foundry +liberapay: # Replace with a single Liberapay username +issuehunt: # Replace with a single IssueHunt username +otechie: # Replace with a single Otechie username +custom: # Replace with up to 4 custom sponsorship URLs e.g., ['link1', 'link2'] diff --git a/node_modules/typed-array-byte-length/.nycrc b/node_modules/typed-array-byte-length/.nycrc new file mode 100644 index 0000000000..1826526e09 --- /dev/null +++ b/node_modules/typed-array-byte-length/.nycrc @@ -0,0 +1,13 @@ +{ + "all": true, + "check-coverage": false, + "reporter": ["text-summary", "text", "html", "json"], + "lines": 86, + "statements": 85.93, + "functions": 82.43, + "branches": 76.06, + "exclude": [ + "coverage", + "test" + ] +} diff --git a/node_modules/typed-array-byte-length/CHANGELOG.md b/node_modules/typed-array-byte-length/CHANGELOG.md new file mode 100644 index 0000000000..67c5ee42a9 --- /dev/null +++ b/node_modules/typed-array-byte-length/CHANGELOG.md @@ -0,0 +1,14 @@ +# Changelog + +All notable changes to this project will be documented in this file. + +The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.0.0/) +and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0.html). + +## v1.0.0 - 2023-07-14 + +### Commits + +- Initial implementation, tests, readme [`b8800c8`](https://github.com/inspect-js/typed-array-byte-length/commit/b8800c8f7f0fddd8744fd13dfa6239a504b4dc8d) +- Initial commit [`72723d8`](https://github.com/inspect-js/typed-array-byte-length/commit/72723d8f8fbff27d74b19f5e096d2eb2087d90dc) +- Only apps should have lockfiles [`a7dfc57`](https://github.com/inspect-js/typed-array-byte-length/commit/a7dfc57098655049b9c43cf1c3a39f24205821be) diff --git a/node_modules/typed-array-byte-length/LICENSE b/node_modules/typed-array-byte-length/LICENSE new file mode 100644 index 0000000000..707437b575 --- /dev/null +++ b/node_modules/typed-array-byte-length/LICENSE @@ -0,0 +1,21 @@ +MIT License + +Copyright (c) 2020 Inspect JS + +Permission is hereby granted, free of charge, to any person obtaining a copy +of this software and associated documentation files (the "Software"), to deal +in the Software without restriction, including without limitation the rights +to use, copy, modify, merge, publish, distribute, sublicense, and/or sell +copies of the Software, and to permit persons to whom the Software is +furnished to do so, subject to the following conditions: + +The above copyright notice and this permission notice shall be included in all +copies or substantial portions of the Software. + +THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR +IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, +FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE +AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER +LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, +OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE +SOFTWARE. diff --git a/node_modules/typed-array-byte-length/README.md b/node_modules/typed-array-byte-length/README.md new file mode 100644 index 0000000000..a6172618fd --- /dev/null +++ b/node_modules/typed-array-byte-length/README.md @@ -0,0 +1,70 @@ +# typed-array-byte-offset [![Version Badge][npm-version-svg]][package-url] + +[![github actions][actions-image]][actions-url] +[![coverage][codecov-image]][codecov-url] +[![License][license-image]][license-url] +[![Downloads][downloads-image]][downloads-url] + +[![npm badge][npm-badge-png]][package-url] + +Robustly get the byte offset of a Typed Array, or `false` if it is not a Typed Array. Works cross-realm, in every engine, even if the `byteOffset` property is overridden. + +## Example + +```js +var typedArrayByteOffset = require('typed-array-byte-offset'); +var assert = require('assert'); + +assert.equal(false, typedArrayByteOffset(undefined)); +assert.equal(false, typedArrayByteOffset(null)); +assert.equal(false, typedArrayByteOffset(false)); +assert.equal(false, typedArrayByteOffset(true)); +assert.equal(false, typedArrayByteOffset([])); +assert.equal(false, typedArrayByteOffset({})); +assert.equal(false, typedArrayByteOffset(/a/g)); +assert.equal(false, typedArrayByteOffset(new RegExp('a', 'g'))); +assert.equal(false, typedArrayByteOffset(new Date())); +assert.equal(false, typedArrayByteOffset(42)); +assert.equal(false, typedArrayByteOffset(NaN)); +assert.equal(false, typedArrayByteOffset(Infinity)); +assert.equal(false, typedArrayByteOffset(new Number(42))); +assert.equal(false, typedArrayByteOffset('foo')); +assert.equal(false, typedArrayByteOffset(Object('foo'))); +assert.equal(false, typedArrayByteOffset(function () {})); +assert.equal(false, typedArrayByteOffset(function* () {})); +assert.equal(false, typedArrayByteOffset(x => x * x)); +assert.equal(false, typedArrayByteOffset([])); + +const buffer = new ArrayBuffer(32); + +assert.equal(8, typedArrayByteOffset(new Int8Array(buffer, 8))); +assert.equal(8, typedArrayByteOffset(new Uint8Array(buffer, 8))); +assert.equal(8, typedArrayByteOffset(new Uint8ClampedArray(buffer, 8))); +assert.equal(4, typedArrayByteOffset(new Int16Array(buffer, 4))); +assert.equal(4, typedArrayByteOffset(new Uint16Array(buffer, 4))); +assert.equal(8, typedArrayByteOffset(new Int32Array(buffer, 8))); +assert.equal(8, typedArrayByteOffset(new Uint32Array(buffer, 8))); +assert.equal(16, typedArrayByteOffset(new Float32Array(buffer, 16))); +assert.equal(16, typedArrayByteOffset(new Float64Array(buffer, 16))); +assert.equal(16, typedArrayByteOffset(new BigInt64Array(buffer, 16))); +assert.equal(16, typedArrayByteOffset(new BigUint64Array(buffer, 16))); +``` + +## Tests +Simply clone the repo, `npm install`, and run `npm test` + +[package-url]: https://npmjs.org/package/typed-array-byte-offset +[npm-version-svg]: https://versionbadg.es/inspect-js/typed-array-byte-offset.svg +[deps-svg]: https://david-dm.org/inspect-js/typed-array-byte-offset.svg +[deps-url]: https://david-dm.org/inspect-js/typed-array-byte-offset +[dev-deps-svg]: https://david-dm.org/inspect-js/typed-array-byte-offset/dev-status.svg +[dev-deps-url]: https://david-dm.org/inspect-js/typed-array-byte-offset#info=devDependencies +[npm-badge-png]: https://nodei.co/npm/typed-array-byte-offset.png?downloads=true&stars=true +[license-image]: https://img.shields.io/npm/l/typed-array-byte-offset.svg +[license-url]: LICENSE +[downloads-image]: https://img.shields.io/npm/dm/typed-array-byte-offset.svg +[downloads-url]: https://npm-stat.com/charts.html?package=typed-array-byte-offset +[codecov-image]: https://codecov.io/gh/inspect-js/typed-array-byte-offset/branch/main/graphs/badge.svg +[codecov-url]: https://app.codecov.io/gh/inspect-js/typed-array-byte-offset/ +[actions-image]: https://img.shields.io/endpoint?url=https://github-actions-badge-u3jn4tfpocch.runkit.sh/inspect-js/typed-array-byte-offset +[actions-url]: https://github.com/inspect-js/typed-array-byte-offset/actions diff --git a/node_modules/typed-array-byte-length/index.js b/node_modules/typed-array-byte-length/index.js new file mode 100644 index 0000000000..7b23cf2c30 --- /dev/null +++ b/node_modules/typed-array-byte-length/index.js @@ -0,0 +1,66 @@ +'use strict'; + +var forEach = require('for-each'); +var callBind = require('call-bind'); + +var typedArrays = require('available-typed-arrays')(); + +var getters = {}; +var hasProto = require('has-proto')(); + +var gOPD = Object.getOwnPropertyDescriptor; +var oDP = Object.defineProperty; +if (gOPD) { + var getByteLength = function (x) { + return x.byteLength; + }; + forEach(typedArrays, function (typedArray) { + // In Safari 7, Typed Array constructors are typeof object + if (typeof global[typedArray] === 'function' || typeof global[typedArray] === 'object') { + var Proto = global[typedArray].prototype; + var descriptor = gOPD(Proto, 'byteLength'); + if (!descriptor && hasProto) { + var superProto = Proto.__proto__; // eslint-disable-line no-proto + descriptor = gOPD(superProto, 'byteLength'); + } + // Opera 12.16 has a magic byteLength data property on instances AND on Proto + if (descriptor && descriptor.get) { + getters[typedArray] = callBind(descriptor.get); + } else if (oDP) { + // this is likely an engine where instances have a magic byteLength data property + var arr = new global[typedArray](2); + descriptor = gOPD(arr, 'byteLength'); + if (descriptor && descriptor.configurable) { + oDP(arr, 'length', { value: 3 }); + } + if (arr.length === 2) { + getters[typedArray] = getByteLength; + } + } + } + }); +} + +var tryTypedArrays = function tryAllTypedArrays(value) { + var foundByteLength; + forEach(getters, function (getter) { + if (typeof foundByteLength !== 'number') { + try { + var byteLength = getter(value); + if (typeof byteLength === 'number') { + foundByteLength = byteLength; + } + } catch (e) {} + } + }); + return foundByteLength; +}; + +var isTypedArray = require('is-typed-array'); + +module.exports = function typedArrayByteLength(value) { + if (!isTypedArray(value)) { + return false; + } + return tryTypedArrays(value); +}; diff --git a/node_modules/typed-array-byte-length/package.json b/node_modules/typed-array-byte-length/package.json new file mode 100644 index 0000000000..175912aba1 --- /dev/null +++ b/node_modules/typed-array-byte-length/package.json @@ -0,0 +1,98 @@ +{ + "name": "typed-array-byte-length", + "version": "1.0.0", + "description": "Robustly get the byte length of a Typed Array", + "main": "index.js", + "exports": { + ".": "./index.js", + "./package.json": "./package.json" + }, + "scripts": { + "prepack": "npmignore --auto --commentLines=autogenerated", + "prepublishOnly": "safe-publish-latest", + "prepublish": "not-in-publish || npm run prepublishOnly", + "pretest": "npm run lint", + "prelint": "evalmd README.md", + "lint": "eslint --ext=js,mjs .", + "tests-only": "nyc tape 'test/**/*.js'", + "test": "npm run tests-only", + "posttest": "aud --production", + "version": "auto-changelog && git add CHANGELOG.md", + "postversion": "auto-changelog && git add CHANGELOG.md && git commit --no-edit --amend && git tag -f \"v$(node -e \"console.log(require('./package.json').version)\")\"" + }, + "repository": { + "type": "git", + "url": "git+https://github.com/inspect-js/typed-array-byte-length.git" + }, + "keywords": [ + "typed", + "array", + "byteLength", + "byte", + "length", + "robust", + "es", + "Int8Array", + "Uint8Array", + "Uint8ClampedArray", + "Int16Array", + "Uint16Array", + "Int32Array", + "Uint32Array", + "Float32Array", + "Float64Array", + "BigInt64Array", + "BigUint64Array" + ], + "author": "Jordan Harband ", + "funding": { + "url": "https://github.com/sponsors/ljharb" + }, + "license": "MIT", + "bugs": { + "url": "https://github.com/inspect-js/typed-array-byte-length/issues" + }, + "homepage": "https://github.com/inspect-js/typed-array-byte-length#readme", + "dependencies": { + "call-bind": "^1.0.2", + "for-each": "^0.3.3", + "has-proto": "^1.0.1", + "is-typed-array": "^1.1.10" + }, + "devDependencies": { + "@ljharb/eslint-config": "^21.1.0", + "aud": "^2.0.2", + "auto-changelog": "^2.4.0", + "available-typed-arrays": "^1.0.5", + "eslint": "=8.8.0", + "evalmd": "^0.0.19", + "in-publish": "^2.0.1", + "is-callable": "^1.2.7", + "make-arrow-function": "^1.2.0", + "make-generator-function": "^2.0.0", + "npmignore": "^0.3.0", + "nyc": "^10.3.2", + "object-inspect": "^1.12.3", + "safe-publish-latest": "^2.0.0", + "tape": "^5.6.3" + }, + "engines": { + "node": ">= 0.4" + }, + "auto-changelog": { + "output": "CHANGELOG.md", + "template": "keepachangelog", + "unreleased": false, + "commitLimit": false, + "backfillLimit": false, + "hideCredit": true + }, + "testling": { + "files": "test/index.js" + }, + "publishConfig": { + "ignore": [ + ".github/workflows" + ] + } +} diff --git a/node_modules/typed-array-byte-length/test/index.js b/node_modules/typed-array-byte-length/test/index.js new file mode 100644 index 0000000000..b9a2f3e1fb --- /dev/null +++ b/node_modules/typed-array-byte-length/test/index.js @@ -0,0 +1,81 @@ +'use strict'; + +var test = require('tape'); +var typedArrayByteLength = require('../'); +var isCallable = require('is-callable'); +var generators = require('make-generator-function')(); +var arrowFn = require('make-arrow-function')(); +var forEach = require('for-each'); +var inspect = require('object-inspect'); +var availableTypedArrays = require('available-typed-arrays')(); + +test('not arrays', function (t) { + t.test('non-number/string primitives', function (st) { + st.equal(false, typedArrayByteLength(), 'undefined is not typed array'); + st.equal(false, typedArrayByteLength(null), 'null is not typed array'); + st.equal(false, typedArrayByteLength(false), 'false is not typed array'); + st.equal(false, typedArrayByteLength(true), 'true is not typed array'); + st.end(); + }); + + t.equal(false, typedArrayByteLength({}), 'object is not typed array'); + t.equal(false, typedArrayByteLength(/a/g), 'regex literal is not typed array'); + t.equal(false, typedArrayByteLength(new RegExp('a', 'g')), 'regex object is not typed array'); + t.equal(false, typedArrayByteLength(new Date()), 'new Date() is not typed array'); + + t.test('numbers', function (st) { + st.equal(false, typedArrayByteLength(42), 'number is not typed array'); + st.equal(false, typedArrayByteLength(Object(42)), 'number object is not typed array'); + st.equal(false, typedArrayByteLength(NaN), 'NaN is not typed array'); + st.equal(false, typedArrayByteLength(Infinity), 'Infinity is not typed array'); + st.end(); + }); + + t.test('strings', function (st) { + st.equal(false, typedArrayByteLength('foo'), 'string primitive is not typed array'); + st.equal(false, typedArrayByteLength(Object('foo')), 'string object is not typed array'); + st.end(); + }); + + t.end(); +}); + +test('Functions', function (t) { + t.equal(false, typedArrayByteLength(function () {}), 'function is not typed array'); + t.end(); +}); + +test('Generators', { skip: generators.length === 0 }, function (t) { + forEach(generators, function (genFn) { + t.equal(false, typedArrayByteLength(genFn), 'generator function ' + inspect(genFn) + ' is not typed array'); + }); + t.end(); +}); + +test('Arrow functions', { skip: !arrowFn }, function (t) { + t.equal(false, typedArrayByteLength(arrowFn), 'arrow function is not typed array'); + t.end(); +}); + +test('Typed Arrays', { skip: availableTypedArrays.length === 0 }, function (t) { + var length = 64; + var byteLength = 32; + + forEach(availableTypedArrays, function (typedArray) { + var buffer = new ArrayBuffer(length); + var TypedArray = global[typedArray]; + if (isCallable(TypedArray)) { + var arr = new TypedArray(buffer, byteLength); + t.equal(typedArrayByteLength(arr), byteLength, 'new ' + typedArray + '(new ArrayBuffer(' + length + '), ' + byteLength + ') is typed array of byte Length ' + byteLength); + } else { + t.comment('# SKIP ' + typedArray + ' is not supported'); + } + }); + + var buffer = new ArrayBuffer(8); + var uint8 = new Uint8Array(buffer, 2); + + t.equal(typedArrayByteLength(uint8), 6, 'byteLength is as expected'); + + t.end(); +}); diff --git a/node_modules/typed-array-byte-offset/.eslintrc b/node_modules/typed-array-byte-offset/.eslintrc new file mode 100644 index 0000000000..7376ac839f --- /dev/null +++ b/node_modules/typed-array-byte-offset/.eslintrc @@ -0,0 +1,8 @@ +{ + "root": true, + + "extends": "@ljharb", + + "rules": { + }, +} diff --git a/node_modules/typed-array-byte-offset/.github/FUNDING.yml b/node_modules/typed-array-byte-offset/.github/FUNDING.yml new file mode 100644 index 0000000000..7d6aac43f8 --- /dev/null +++ b/node_modules/typed-array-byte-offset/.github/FUNDING.yml @@ -0,0 +1,12 @@ +# These are supported funding model platforms + +github: [ljharb] +patreon: # Replace with a single Patreon username +open_collective: # Replace with a single Open Collective username +ko_fi: # Replace with a single Ko-fi username +tidelift: npm/typed-array-length +community_bridge: # Replace with a single Community Bridge project-name e.g., cloud-foundry +liberapay: # Replace with a single Liberapay username +issuehunt: # Replace with a single IssueHunt username +otechie: # Replace with a single Otechie username +custom: # Replace with up to 4 custom sponsorship URLs e.g., ['link1', 'link2'] diff --git a/node_modules/typed-array-byte-offset/.nycrc b/node_modules/typed-array-byte-offset/.nycrc new file mode 100644 index 0000000000..1826526e09 --- /dev/null +++ b/node_modules/typed-array-byte-offset/.nycrc @@ -0,0 +1,13 @@ +{ + "all": true, + "check-coverage": false, + "reporter": ["text-summary", "text", "html", "json"], + "lines": 86, + "statements": 85.93, + "functions": 82.43, + "branches": 76.06, + "exclude": [ + "coverage", + "test" + ] +} diff --git a/node_modules/typed-array-byte-offset/CHANGELOG.md b/node_modules/typed-array-byte-offset/CHANGELOG.md new file mode 100644 index 0000000000..b209037d5d --- /dev/null +++ b/node_modules/typed-array-byte-offset/CHANGELOG.md @@ -0,0 +1,15 @@ +# Changelog + +All notable changes to this project will be documented in this file. + +The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.0.0/) +and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0.html). + +## v1.0.0 - 2023-06-06 + +### Commits + +- Initial implementation, tests, readme [`f227633`](https://github.com/inspect-js/typed-array-byte-offset/commit/f2276337a907bdfe9725af1b36c3109e76f2430d) +- Initial commit [`806bbaf`](https://github.com/inspect-js/typed-array-byte-offset/commit/806bbaf81e0267aebce5ae68cbf138718513642a) +- npm init [`1151981`](https://github.com/inspect-js/typed-array-byte-offset/commit/1151981427eb1fddab8599d36e6afea50a78293f) +- Only apps should have lockfiles [`5fa9933`](https://github.com/inspect-js/typed-array-byte-offset/commit/5fa9933275f10bdb9e8a175cc70a8228d4811642) diff --git a/node_modules/typed-array-byte-offset/LICENSE b/node_modules/typed-array-byte-offset/LICENSE new file mode 100644 index 0000000000..707437b575 --- /dev/null +++ b/node_modules/typed-array-byte-offset/LICENSE @@ -0,0 +1,21 @@ +MIT License + +Copyright (c) 2020 Inspect JS + +Permission is hereby granted, free of charge, to any person obtaining a copy +of this software and associated documentation files (the "Software"), to deal +in the Software without restriction, including without limitation the rights +to use, copy, modify, merge, publish, distribute, sublicense, and/or sell +copies of the Software, and to permit persons to whom the Software is +furnished to do so, subject to the following conditions: + +The above copyright notice and this permission notice shall be included in all +copies or substantial portions of the Software. + +THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR +IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, +FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE +AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER +LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, +OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE +SOFTWARE. diff --git a/node_modules/typed-array-byte-offset/README.md b/node_modules/typed-array-byte-offset/README.md new file mode 100644 index 0000000000..a6172618fd --- /dev/null +++ b/node_modules/typed-array-byte-offset/README.md @@ -0,0 +1,70 @@ +# typed-array-byte-offset [![Version Badge][npm-version-svg]][package-url] + +[![github actions][actions-image]][actions-url] +[![coverage][codecov-image]][codecov-url] +[![License][license-image]][license-url] +[![Downloads][downloads-image]][downloads-url] + +[![npm badge][npm-badge-png]][package-url] + +Robustly get the byte offset of a Typed Array, or `false` if it is not a Typed Array. Works cross-realm, in every engine, even if the `byteOffset` property is overridden. + +## Example + +```js +var typedArrayByteOffset = require('typed-array-byte-offset'); +var assert = require('assert'); + +assert.equal(false, typedArrayByteOffset(undefined)); +assert.equal(false, typedArrayByteOffset(null)); +assert.equal(false, typedArrayByteOffset(false)); +assert.equal(false, typedArrayByteOffset(true)); +assert.equal(false, typedArrayByteOffset([])); +assert.equal(false, typedArrayByteOffset({})); +assert.equal(false, typedArrayByteOffset(/a/g)); +assert.equal(false, typedArrayByteOffset(new RegExp('a', 'g'))); +assert.equal(false, typedArrayByteOffset(new Date())); +assert.equal(false, typedArrayByteOffset(42)); +assert.equal(false, typedArrayByteOffset(NaN)); +assert.equal(false, typedArrayByteOffset(Infinity)); +assert.equal(false, typedArrayByteOffset(new Number(42))); +assert.equal(false, typedArrayByteOffset('foo')); +assert.equal(false, typedArrayByteOffset(Object('foo'))); +assert.equal(false, typedArrayByteOffset(function () {})); +assert.equal(false, typedArrayByteOffset(function* () {})); +assert.equal(false, typedArrayByteOffset(x => x * x)); +assert.equal(false, typedArrayByteOffset([])); + +const buffer = new ArrayBuffer(32); + +assert.equal(8, typedArrayByteOffset(new Int8Array(buffer, 8))); +assert.equal(8, typedArrayByteOffset(new Uint8Array(buffer, 8))); +assert.equal(8, typedArrayByteOffset(new Uint8ClampedArray(buffer, 8))); +assert.equal(4, typedArrayByteOffset(new Int16Array(buffer, 4))); +assert.equal(4, typedArrayByteOffset(new Uint16Array(buffer, 4))); +assert.equal(8, typedArrayByteOffset(new Int32Array(buffer, 8))); +assert.equal(8, typedArrayByteOffset(new Uint32Array(buffer, 8))); +assert.equal(16, typedArrayByteOffset(new Float32Array(buffer, 16))); +assert.equal(16, typedArrayByteOffset(new Float64Array(buffer, 16))); +assert.equal(16, typedArrayByteOffset(new BigInt64Array(buffer, 16))); +assert.equal(16, typedArrayByteOffset(new BigUint64Array(buffer, 16))); +``` + +## Tests +Simply clone the repo, `npm install`, and run `npm test` + +[package-url]: https://npmjs.org/package/typed-array-byte-offset +[npm-version-svg]: https://versionbadg.es/inspect-js/typed-array-byte-offset.svg +[deps-svg]: https://david-dm.org/inspect-js/typed-array-byte-offset.svg +[deps-url]: https://david-dm.org/inspect-js/typed-array-byte-offset +[dev-deps-svg]: https://david-dm.org/inspect-js/typed-array-byte-offset/dev-status.svg +[dev-deps-url]: https://david-dm.org/inspect-js/typed-array-byte-offset#info=devDependencies +[npm-badge-png]: https://nodei.co/npm/typed-array-byte-offset.png?downloads=true&stars=true +[license-image]: https://img.shields.io/npm/l/typed-array-byte-offset.svg +[license-url]: LICENSE +[downloads-image]: https://img.shields.io/npm/dm/typed-array-byte-offset.svg +[downloads-url]: https://npm-stat.com/charts.html?package=typed-array-byte-offset +[codecov-image]: https://codecov.io/gh/inspect-js/typed-array-byte-offset/branch/main/graphs/badge.svg +[codecov-url]: https://app.codecov.io/gh/inspect-js/typed-array-byte-offset/ +[actions-image]: https://img.shields.io/endpoint?url=https://github-actions-badge-u3jn4tfpocch.runkit.sh/inspect-js/typed-array-byte-offset +[actions-url]: https://github.com/inspect-js/typed-array-byte-offset/actions diff --git a/node_modules/typed-array-byte-offset/index.js b/node_modules/typed-array-byte-offset/index.js new file mode 100644 index 0000000000..5e5068872b --- /dev/null +++ b/node_modules/typed-array-byte-offset/index.js @@ -0,0 +1,66 @@ +'use strict'; + +var forEach = require('for-each'); +var callBind = require('call-bind'); + +var typedArrays = require('available-typed-arrays')(); + +var getters = {}; +var hasProto = require('has-proto')(); + +var gOPD = Object.getOwnPropertyDescriptor; +var oDP = Object.defineProperty; +if (gOPD) { + var getByteOffset = function (x) { + return x.byteOffset; + }; + forEach(typedArrays, function (typedArray) { + // In Safari 7, Typed Array constructors are typeof object + if (typeof global[typedArray] === 'function' || typeof global[typedArray] === 'object') { + var Proto = global[typedArray].prototype; + var descriptor = gOPD(Proto, 'byteOffset'); + if (!descriptor && hasProto) { + var superProto = Proto.__proto__; // eslint-disable-line no-proto + descriptor = gOPD(superProto, 'byteOffset'); + } + // Opera 12.16 has a magic byteOffset data property on instances AND on Proto + if (descriptor && descriptor.get) { + getters[typedArray] = callBind(descriptor.get); + } else if (oDP) { + // this is likely an engine where instances have a magic byteOffset data property + var arr = new global[typedArray](2); + descriptor = gOPD(arr, 'byteOffset'); + if (descriptor && descriptor.configurable) { + oDP(arr, 'length', { value: 3 }); + } + if (arr.length === 2) { + getters[typedArray] = getByteOffset; + } + } + } + }); +} + +var tryTypedArrays = function tryAllTypedArrays(value) { + var foundOffset; + forEach(getters, function (getter) { + if (typeof foundOffset !== 'number') { + try { + var offset = getter(value); + if (typeof offset === 'number') { + foundOffset = offset; + } + } catch (e) {} + } + }); + return foundOffset; +}; + +var isTypedArray = require('is-typed-array'); + +module.exports = function typedArrayByteOffset(value) { + if (!isTypedArray(value)) { + return false; + } + return tryTypedArrays(value); +}; diff --git a/node_modules/typed-array-byte-offset/package.json b/node_modules/typed-array-byte-offset/package.json new file mode 100644 index 0000000000..9ea2b2e2c2 --- /dev/null +++ b/node_modules/typed-array-byte-offset/package.json @@ -0,0 +1,98 @@ +{ + "name": "typed-array-byte-offset", + "version": "1.0.0", + "description": "Robustly get the byte offset of a Typed Array", + "main": "index.js", + "exports": { + ".": "./index.js", + "./package.json": "./package.json" + }, + "scripts": { + "prepack": "npmignore --auto --commentLines=autogenerated", + "prepublishOnly": "safe-publish-latest", + "prepublish": "not-in-publish || npm run prepublishOnly", + "pretest": "npm run lint", + "prelint": "evalmd README.md", + "lint": "eslint --ext=js,mjs .", + "tests-only": "nyc tape 'test/**/*.js'", + "test": "npm run tests-only", + "posttest": "aud --production", + "version": "auto-changelog && git add CHANGELOG.md", + "postversion": "auto-changelog && git add CHANGELOG.md && git commit --no-edit --amend && git tag -f \"v$(node -e \"console.log(require('./package.json').version)\")\"" + }, + "repository": { + "type": "git", + "url": "git+https://github.com/inspect-js/typed-array-byte-offset.git" + }, + "keywords": [ + "typed", + "array", + "byteOffset", + "byte", + "offset", + "robust", + "es", + "Int8Array", + "Uint8Array", + "Uint8ClampedArray", + "Int16Array", + "Uint16Array", + "Int32Array", + "Uint32Array", + "Float32Array", + "Float64Array", + "BigInt64Array", + "BigUint64Array" + ], + "author": "Jordan Harband ", + "funding": { + "url": "https://github.com/sponsors/ljharb" + }, + "license": "MIT", + "bugs": { + "url": "https://github.com/inspect-js/typed-array-byte-offset/issues" + }, + "homepage": "https://github.com/inspect-js/typed-array-byte-offset#readme", + "dependencies": { + "available-typed-arrays": "^1.0.5", + "call-bind": "^1.0.2", + "for-each": "^0.3.3", + "has-proto": "^1.0.1", + "is-typed-array": "^1.1.10" + }, + "devDependencies": { + "@ljharb/eslint-config": "^21.1.0", + "aud": "^2.0.2", + "auto-changelog": "^2.4.0", + "eslint": "=8.8.0", + "evalmd": "^0.0.19", + "in-publish": "^2.0.1", + "is-callable": "^1.2.7", + "make-arrow-function": "^1.2.0", + "make-generator-function": "^2.0.0", + "npmignore": "^0.3.0", + "nyc": "^10.3.2", + "object-inspect": "^1.12.3", + "safe-publish-latest": "^2.0.0", + "tape": "^5.6.3" + }, + "engines": { + "node": ">= 0.4" + }, + "auto-changelog": { + "output": "CHANGELOG.md", + "template": "keepachangelog", + "unreleased": false, + "commitLimit": false, + "backfillLimit": false, + "hideCredit": true + }, + "testling": { + "files": "test/index.js" + }, + "publishConfig": { + "ignore": [ + ".github/workflows" + ] + } +} diff --git a/node_modules/typed-array-byte-offset/test/index.js b/node_modules/typed-array-byte-offset/test/index.js new file mode 100644 index 0000000000..d366a7c620 --- /dev/null +++ b/node_modules/typed-array-byte-offset/test/index.js @@ -0,0 +1,88 @@ +'use strict'; + +var test = require('tape'); +var typedArrayByteOffset = require('../'); +var isCallable = require('is-callable'); +var generators = require('make-generator-function')(); +var arrowFn = require('make-arrow-function')(); +var forEach = require('for-each'); +var inspect = require('object-inspect'); + +var typedArrayNames = [ + 'Int8Array', + 'Uint8Array', + 'Uint8ClampedArray', + 'Int16Array', + 'Uint16Array', + 'Int32Array', + 'Uint32Array', + 'Float32Array', + 'Float64Array', + 'BigInt64Array', + 'BigUint64Array' +]; + +test('not arrays', function (t) { + t.test('non-number/string primitives', function (st) { + st.equal(false, typedArrayByteOffset(), 'undefined is not typed array'); + st.equal(false, typedArrayByteOffset(null), 'null is not typed array'); + st.equal(false, typedArrayByteOffset(false), 'false is not typed array'); + st.equal(false, typedArrayByteOffset(true), 'true is not typed array'); + st.end(); + }); + + t.equal(false, typedArrayByteOffset({}), 'object is not typed array'); + t.equal(false, typedArrayByteOffset(/a/g), 'regex literal is not typed array'); + t.equal(false, typedArrayByteOffset(new RegExp('a', 'g')), 'regex object is not typed array'); + t.equal(false, typedArrayByteOffset(new Date()), 'new Date() is not typed array'); + + t.test('numbers', function (st) { + st.equal(false, typedArrayByteOffset(42), 'number is not typed array'); + st.equal(false, typedArrayByteOffset(Object(42)), 'number object is not typed array'); + st.equal(false, typedArrayByteOffset(NaN), 'NaN is not typed array'); + st.equal(false, typedArrayByteOffset(Infinity), 'Infinity is not typed array'); + st.end(); + }); + + t.test('strings', function (st) { + st.equal(false, typedArrayByteOffset('foo'), 'string primitive is not typed array'); + st.equal(false, typedArrayByteOffset(Object('foo')), 'string object is not typed array'); + st.end(); + }); + + t.end(); +}); + +test('Functions', function (t) { + t.equal(false, typedArrayByteOffset(function () {}), 'function is not typed array'); + t.end(); +}); + +test('Generators', { skip: generators.length === 0 }, function (t) { + forEach(generators, function (genFn) { + t.equal(false, typedArrayByteOffset(genFn), 'generator function ' + inspect(genFn) + ' is not typed array'); + }); + t.end(); +}); + +test('Arrow functions', { skip: !arrowFn }, function (t) { + t.equal(false, typedArrayByteOffset(arrowFn), 'arrow function is not typed array'); + t.end(); +}); + +test('Typed Arrays', function (t) { + var length = 32; + var byteOffset = 16; + + forEach(typedArrayNames, function (typedArray) { + var buffer = new ArrayBuffer(length); + var TypedArray = global[typedArray]; + if (isCallable(TypedArray)) { + var arr = new TypedArray(buffer, byteOffset); + t.equal(typedArrayByteOffset(arr), byteOffset, 'new ' + typedArray + '(new ArrayBuffer(' + length + '), ' + byteOffset + ') is typed array of byte offset ' + byteOffset); + } else { + t.comment('# SKIP ' + typedArray + ' is not supported'); + } + }); + t.end(); +}); diff --git a/node_modules/which-typed-array/CHANGELOG.md b/node_modules/which-typed-array/CHANGELOG.md index c1b2cb5ff4..300d527cc4 100644 --- a/node_modules/which-typed-array/CHANGELOG.md +++ b/node_modules/which-typed-array/CHANGELOG.md @@ -5,6 +5,21 @@ All notable changes to this project will be documented in this file. The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.0.0/) and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0.html). +## [v1.1.11](https://github.com/inspect-js/which-typed-array/compare/v1.1.10...v1.1.11) - 2023-07-17 + +### Commits + +- [Fix] `node < v0.6` lacks proper Object toString behavior [`b8fd654`](https://github.com/inspect-js/which-typed-array/commit/b8fd65479c0bd18385378cfae79750ebf7cb6ee7) +- [Dev Deps] update `tape` [`e1734c9`](https://github.com/inspect-js/which-typed-array/commit/e1734c99d79880ab11efa55220498a7a1e887834) + +## [v1.1.10](https://github.com/inspect-js/which-typed-array/compare/v1.1.9...v1.1.10) - 2023-07-10 + +### Commits + +- [actions] update rebase action to use reusable workflow [`2c10582`](https://github.com/inspect-js/which-typed-array/commit/2c105820d77274c079cb6d040cb348396e516ef5) +- [Robustness] use `call-bind` [`b2335fd`](https://github.com/inspect-js/which-typed-array/commit/b2335fdfca80840995eea5e6fcfffc6d712279a1) +- [Dev Deps] update `@ljharb/eslint-config`, `aud`, `tape` [`ad5e41b`](https://github.com/inspect-js/which-typed-array/commit/ad5e41ba18e7d23af1f9b211215c43a64bf75d70) + ## [v1.1.9](https://github.com/inspect-js/which-typed-array/compare/v1.1.8...v1.1.9) - 2022-11-02 ### Commits diff --git a/node_modules/which-typed-array/index.js b/node_modules/which-typed-array/index.js index 42080bee76..16d4b5bee9 100644 --- a/node_modules/which-typed-array/index.js +++ b/node_modules/which-typed-array/index.js @@ -2,6 +2,7 @@ var forEach = require('for-each'); var availableTypedArrays = require('available-typed-arrays'); +var callBind = require('call-bind'); var callBound = require('call-bind/callBound'); var gOPD = require('gopd'); @@ -12,44 +13,77 @@ var g = typeof globalThis === 'undefined' ? global : globalThis; var typedArrays = availableTypedArrays(); var $slice = callBound('String.prototype.slice'); -var toStrTags = {}; var getPrototypeOf = Object.getPrototypeOf; // require('getprototypeof'); + +var $indexOf = callBound('Array.prototype.indexOf', true) || function indexOf(array, value) { + for (var i = 0; i < array.length; i += 1) { + if (array[i] === value) { + return i; + } + } + return -1; +}; +var cache = { __proto__: null }; if (hasToStringTag && gOPD && getPrototypeOf) { forEach(typedArrays, function (typedArray) { - if (typeof g[typedArray] === 'function') { - var arr = new g[typedArray](); - if (Symbol.toStringTag in arr) { - var proto = getPrototypeOf(arr); - var descriptor = gOPD(proto, Symbol.toStringTag); - if (!descriptor) { - var superProto = getPrototypeOf(proto); - descriptor = gOPD(superProto, Symbol.toStringTag); - } - toStrTags[typedArray] = descriptor.get; + var arr = new g[typedArray](); + if (Symbol.toStringTag in arr) { + var proto = getPrototypeOf(arr); + var descriptor = gOPD(proto, Symbol.toStringTag); + if (!descriptor) { + var superProto = getPrototypeOf(proto); + descriptor = gOPD(superProto, Symbol.toStringTag); } + cache['$' + typedArray] = callBind(descriptor.get); } }); +} else { + forEach(typedArrays, function (typedArray) { + var arr = new g[typedArray](); + cache['$' + typedArray] = callBind(arr.slice); + }); } var tryTypedArrays = function tryAllTypedArrays(value) { - var foundName = false; - forEach(toStrTags, function (getter, typedArray) { - if (!foundName) { + var found = false; + forEach(cache, function (getter, typedArray) { + if (!found) { try { - var name = getter.call(value); - if (name === typedArray) { - foundName = name; + if ('$' + getter(value) === typedArray) { + found = $slice(typedArray, 1); } - } catch (e) {} + } catch (e) { /**/ } } }); - return foundName; + return found; }; -var isTypedArray = require('is-typed-array'); +var trySlices = function tryAllSlices(value) { + var found = false; + forEach(cache, function (getter, name) { + if (!found) { + try { + getter(value); + found = $slice(name, 1); + } catch (e) { /**/ } + } + }); + return found; +}; module.exports = function whichTypedArray(value) { - if (!isTypedArray(value)) { return false; } - if (!hasToStringTag || !(Symbol.toStringTag in value)) { return $slice($toString(value), 8, -1); } + if (!value || typeof value !== 'object') { return false; } + if (!hasToStringTag) { + var tag = $slice($toString(value), 8, -1); + if ($indexOf(typedArrays, tag) > -1) { + return tag; + } + if (tag !== 'Object') { + return false; + } + // node < 0.6 hits here on real Typed Arrays + return trySlices(value); + } + if (!gOPD) { return null; } // unknown engine return tryTypedArrays(value); }; diff --git a/node_modules/which-typed-array/package.json b/node_modules/which-typed-array/package.json index 9cd5e64fb4..4d0044a747 100644 --- a/node_modules/which-typed-array/package.json +++ b/node_modules/which-typed-array/package.json @@ -1,6 +1,6 @@ { "name": "which-typed-array", - "version": "1.1.9", + "version": "1.1.11", "author": { "name": "Jordan Harband", "email": "ljharb@gmail.com", @@ -62,12 +62,11 @@ "call-bind": "^1.0.2", "for-each": "^0.3.3", "gopd": "^1.0.1", - "has-tostringtag": "^1.0.0", - "is-typed-array": "^1.1.10" + "has-tostringtag": "^1.0.0" }, "devDependencies": { - "@ljharb/eslint-config": "^21.0.0", - "aud": "^2.0.1", + "@ljharb/eslint-config": "^21.1.0", + "aud": "^2.0.3", "auto-changelog": "^2.4.0", "eslint": "=8.8.0", "in-publish": "^2.0.1", @@ -77,7 +76,7 @@ "npmignore": "^0.3.0", "nyc": "^10.3.2", "safe-publish-latest": "^2.0.0", - "tape": "^5.6.1" + "tape": "^5.6.5" }, "testling": { "files": "test/index.js", diff --git a/node_modules/which-typed-array/test/index.js b/node_modules/which-typed-array/test/index.js index e6711b2c51..6d79a363b1 100644 --- a/node_modules/which-typed-array/test/index.js +++ b/node_modules/which-typed-array/test/index.js @@ -90,7 +90,7 @@ test('Typed Arrays', function (t) { var TypedArray = global[typedArray]; if (isCallable(TypedArray)) { var arr = new TypedArray(10); - t.equal(typedArray, whichTypedArray(arr), 'new ' + typedArray + '(10) is typed array of type ' + typedArray); + t.equal(whichTypedArray(arr), typedArray, 'new ' + typedArray + '(10) is typed array of type ' + typedArray); } else { t.comment('# SKIP ' + typedArray + ' is not supported'); } diff --git a/package-lock.json b/package-lock.json index 70cc4a6a3c..eccd369002 100644 --- a/package-lock.json +++ b/package-lock.json @@ -1,12 +1,12 @@ { "name": "codeql", - "version": "2.21.2", + "version": "2.21.3", "lockfileVersion": 3, "requires": true, "packages": { "": { "name": "codeql", - "version": "2.21.2", + "version": "2.21.3", "license": "MIT", "dependencies": { "@actions/artifact": "^1.1.1", @@ -43,15 +43,15 @@ "@types/js-yaml": "^4.0.5", "@types/node": "16.11.22", "@types/semver": "^7.5.0", - "@types/sinon": "^10.0.15", - "@typescript-eslint/eslint-plugin": "^6.2.0", - "@typescript-eslint/parser": "^6.2.0", + "@types/sinon": "^10.0.16", + "@typescript-eslint/eslint-plugin": "^6.2.1", + "@typescript-eslint/parser": "^6.2.1", "ava": "^5.3.1", - "eslint": "^8.45.0", + "eslint": "^8.46.0", "eslint-import-resolver-typescript": "^3.5.5", "eslint-plugin-filenames": "^1.3.2", "eslint-plugin-github": "^4.9.2", - "eslint-plugin-import": "^2.27.5", + "eslint-plugin-import": "^2.28.0", "eslint-plugin-no-async-foreach": "^0.1.1", "micromatch": "4.0.5", "nock": "^13.3.2", @@ -472,18 +472,18 @@ } }, "node_modules/@eslint-community/regexpp": { - "version": "4.5.1", - "resolved": "https://registry.npmjs.org/@eslint-community/regexpp/-/regexpp-4.5.1.tgz", - "integrity": "sha512-Z5ba73P98O1KUYCCJTUeVpja9RcGoMdncZ6T49FCUl2lN38JtCJ+3WgIDBv0AuY4WChU5PmtJmOCTlN6FZTFKQ==", + "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" } }, "node_modules/@eslint/eslintrc": { - "version": "2.1.0", - "resolved": "https://registry.npmjs.org/@eslint/eslintrc/-/eslintrc-2.1.0.tgz", - "integrity": "sha512-Lj7DECXqIVCqnqjjHMPna4vn6GJcMgul/wuS0je9OZ9gsL0zzDpKPVtcG1HaDVc+9y+qgXneTeUMbCqXJNpH1A==", + "version": "2.1.1", + "resolved": "https://registry.npmjs.org/@eslint/eslintrc/-/eslintrc-2.1.1.tgz", + "integrity": "sha512-9t7ZA7NGGK8ckelF0PQCfcxIUzs1Md5rrO6U/c+FIQNanea5UZC0wqKXH4vHBccmu4ZJgZ2idtPeW7+Q2npOEA==", "dev": true, "dependencies": { "ajv": "^6.12.4", @@ -504,9 +504,9 @@ } }, "node_modules/@eslint/js": { - "version": "8.44.0", - "resolved": "https://registry.npmjs.org/@eslint/js/-/js-8.44.0.tgz", - "integrity": "sha512-Ag+9YM4ocKQx9AarydN0KY2j0ErMHNIocPDrVo8zAE44xLTjEtz81OdR68/cydGtk6m6jDb5Za3r2useMzYmSw==", + "version": "8.46.0", + "resolved": "https://registry.npmjs.org/@eslint/js/-/js-8.46.0.tgz", + "integrity": "sha512-a8TLtmPi8xzPkCbp/OGFUo5yhRkHM2Ko9kOWP4znJr0WAhWyThaw3PnwX4vOTWOAMsV2uRt32PPDcEz63esSaA==", "dev": true, "engines": { "node": "^12.22.0 || ^14.17.0 || >=16.0.0" @@ -962,9 +962,9 @@ "dev": true }, "node_modules/@types/sinon": { - "version": "10.0.15", - "resolved": "https://registry.npmjs.org/@types/sinon/-/sinon-10.0.15.tgz", - "integrity": "sha512-3lrFNQG0Kr2LDzvjyjB6AMJk4ge+8iYhQfdnSwIwlG88FUOV43kPcQqDZkDa/h3WSZy6i8Fr0BSjfQtB1B3xuQ==", + "version": "10.0.16", + "resolved": "https://registry.npmjs.org/@types/sinon/-/sinon-10.0.16.tgz", + "integrity": "sha512-j2Du5SYpXZjJVJtXBokASpPRj+e2z+VUhCPHmM6WMfe3dpHu6iVKJMU6AiBcMp/XTAYnEj6Wc1trJUWwZ0QaAQ==", "dev": true, "dependencies": { "@types/sinonjs__fake-timers": "*" @@ -990,16 +990,16 @@ "integrity": "sha512-kNnC1GFBLuhImSnV7w4njQkUiJi0ZXUycu1rUaouPqiKlXkh77JKgdRnTAp1x5eBwcIwbtI+3otwzuIDEuDoxQ==" }, "node_modules/@typescript-eslint/eslint-plugin": { - "version": "6.2.0", - "resolved": "https://registry.npmjs.org/@typescript-eslint/eslint-plugin/-/eslint-plugin-6.2.0.tgz", - "integrity": "sha512-rClGrMuyS/3j0ETa1Ui7s6GkLhfZGKZL3ZrChLeAiACBE/tRc1wq8SNZESUuluxhLj9FkUefRs2l6bCIArWBiQ==", + "version": "6.2.1", + "resolved": "https://registry.npmjs.org/@typescript-eslint/eslint-plugin/-/eslint-plugin-6.2.1.tgz", + "integrity": "sha512-iZVM/ALid9kO0+I81pnp1xmYiFyqibAHzrqX4q5YvvVEyJqY+e6rfTXSCsc2jUxGNqJqTfFSSij/NFkZBiBzLw==", "dev": true, "dependencies": { "@eslint-community/regexpp": "^4.5.1", - "@typescript-eslint/scope-manager": "6.2.0", - "@typescript-eslint/type-utils": "6.2.0", - "@typescript-eslint/utils": "6.2.0", - "@typescript-eslint/visitor-keys": "6.2.0", + "@typescript-eslint/scope-manager": "6.2.1", + "@typescript-eslint/type-utils": "6.2.1", + "@typescript-eslint/utils": "6.2.1", + "@typescript-eslint/visitor-keys": "6.2.1", "debug": "^4.3.4", "graphemer": "^1.4.0", "ignore": "^5.2.4", @@ -1026,15 +1026,15 @@ } }, "node_modules/@typescript-eslint/parser": { - "version": "6.2.0", - "resolved": "https://registry.npmjs.org/@typescript-eslint/parser/-/parser-6.2.0.tgz", - "integrity": "sha512-igVYOqtiK/UsvKAmmloQAruAdUHihsOCvplJpplPZ+3h4aDkC/UKZZNKgB6h93ayuYLuEymU3h8nF1xMRbh37g==", + "version": "6.2.1", + "resolved": "https://registry.npmjs.org/@typescript-eslint/parser/-/parser-6.2.1.tgz", + "integrity": "sha512-Ld+uL1kYFU8e6btqBFpsHkwQ35rw30IWpdQxgOqOh4NfxSDH6uCkah1ks8R/RgQqI5hHPXMaLy9fbFseIe+dIg==", "dev": true, "dependencies": { - "@typescript-eslint/scope-manager": "6.2.0", - "@typescript-eslint/types": "6.2.0", - "@typescript-eslint/typescript-estree": "6.2.0", - "@typescript-eslint/visitor-keys": "6.2.0", + "@typescript-eslint/scope-manager": "6.2.1", + "@typescript-eslint/types": "6.2.1", + "@typescript-eslint/typescript-estree": "6.2.1", + "@typescript-eslint/visitor-keys": "6.2.1", "debug": "^4.3.4" }, "engines": { @@ -1054,13 +1054,13 @@ } }, "node_modules/@typescript-eslint/scope-manager": { - "version": "6.2.0", - "resolved": "https://registry.npmjs.org/@typescript-eslint/scope-manager/-/scope-manager-6.2.0.tgz", - "integrity": "sha512-1ZMNVgm5nnHURU8ZSJ3snsHzpFeNK84rdZjluEVBGNu7jDymfqceB3kdIZ6A4xCfEFFhRIB6rF8q/JIqJd2R0Q==", + "version": "6.2.1", + "resolved": "https://registry.npmjs.org/@typescript-eslint/scope-manager/-/scope-manager-6.2.1.tgz", + "integrity": "sha512-UCqBF9WFqv64xNsIEPfBtenbfodPXsJ3nPAr55mGPkQIkiQvgoWNo+astj9ZUfJfVKiYgAZDMnM6dIpsxUMp3Q==", "dev": true, "dependencies": { - "@typescript-eslint/types": "6.2.0", - "@typescript-eslint/visitor-keys": "6.2.0" + "@typescript-eslint/types": "6.2.1", + "@typescript-eslint/visitor-keys": "6.2.1" }, "engines": { "node": "^16.0.0 || >=18.0.0" @@ -1071,13 +1071,13 @@ } }, "node_modules/@typescript-eslint/type-utils": { - "version": "6.2.0", - "resolved": "https://registry.npmjs.org/@typescript-eslint/type-utils/-/type-utils-6.2.0.tgz", - "integrity": "sha512-DnGZuNU2JN3AYwddYIqrVkYW0uUQdv0AY+kz2M25euVNlujcN2u+rJgfJsBFlUEzBB6OQkUqSZPyuTLf2bP5mw==", + "version": "6.2.1", + "resolved": "https://registry.npmjs.org/@typescript-eslint/type-utils/-/type-utils-6.2.1.tgz", + "integrity": "sha512-fTfCgomBMIgu2Dh2Or3gMYgoNAnQm3RLtRp+jP7A8fY+LJ2+9PNpi5p6QB5C4RSP+U3cjI0vDlI3mspAkpPVbQ==", "dev": true, "dependencies": { - "@typescript-eslint/typescript-estree": "6.2.0", - "@typescript-eslint/utils": "6.2.0", + "@typescript-eslint/typescript-estree": "6.2.1", + "@typescript-eslint/utils": "6.2.1", "debug": "^4.3.4", "ts-api-utils": "^1.0.1" }, @@ -1098,9 +1098,9 @@ } }, "node_modules/@typescript-eslint/types": { - "version": "6.2.0", - "resolved": "https://registry.npmjs.org/@typescript-eslint/types/-/types-6.2.0.tgz", - "integrity": "sha512-1nRRaDlp/XYJQLvkQJG5F3uBTno5SHPT7XVcJ5n1/k2WfNI28nJsvLakxwZRNY5spuatEKO7d5nZWsQpkqXwBA==", + "version": "6.2.1", + "resolved": "https://registry.npmjs.org/@typescript-eslint/types/-/types-6.2.1.tgz", + "integrity": "sha512-528bGcoelrpw+sETlyM91k51Arl2ajbNT9L4JwoXE2dvRe1yd8Q64E4OL7vHYw31mlnVsf+BeeLyAZUEQtqahQ==", "dev": true, "engines": { "node": "^16.0.0 || >=18.0.0" @@ -1111,13 +1111,13 @@ } }, "node_modules/@typescript-eslint/typescript-estree": { - "version": "6.2.0", - "resolved": "https://registry.npmjs.org/@typescript-eslint/typescript-estree/-/typescript-estree-6.2.0.tgz", - "integrity": "sha512-Mts6+3HQMSM+LZCglsc2yMIny37IhUgp1Qe8yJUYVyO6rHP7/vN0vajKu3JvHCBIy8TSiKddJ/Zwu80jhnGj1w==", + "version": "6.2.1", + "resolved": "https://registry.npmjs.org/@typescript-eslint/typescript-estree/-/typescript-estree-6.2.1.tgz", + "integrity": "sha512-G+UJeQx9AKBHRQBpmvr8T/3K5bJa485eu+4tQBxFq0KoT22+jJyzo1B50JDT9QdC1DEmWQfdKsa8ybiNWYsi0Q==", "dev": true, "dependencies": { - "@typescript-eslint/types": "6.2.0", - "@typescript-eslint/visitor-keys": "6.2.0", + "@typescript-eslint/types": "6.2.1", + "@typescript-eslint/visitor-keys": "6.2.1", "debug": "^4.3.4", "globby": "^11.1.0", "is-glob": "^4.0.3", @@ -1138,17 +1138,17 @@ } }, "node_modules/@typescript-eslint/utils": { - "version": "6.2.0", - "resolved": "https://registry.npmjs.org/@typescript-eslint/utils/-/utils-6.2.0.tgz", - "integrity": "sha512-RCFrC1lXiX1qEZN8LmLrxYRhOkElEsPKTVSNout8DMzf8PeWoQG7Rxz2SadpJa3VSh5oYKGwt7j7X/VRg+Y3OQ==", + "version": "6.2.1", + "resolved": "https://registry.npmjs.org/@typescript-eslint/utils/-/utils-6.2.1.tgz", + "integrity": "sha512-eBIXQeupYmxVB6S7x+B9SdBeB6qIdXKjgQBge2J+Ouv8h9Cxm5dHf/gfAZA6dkMaag+03HdbVInuXMmqFB/lKQ==", "dev": true, "dependencies": { "@eslint-community/eslint-utils": "^4.4.0", "@types/json-schema": "^7.0.12", "@types/semver": "^7.5.0", - "@typescript-eslint/scope-manager": "6.2.0", - "@typescript-eslint/types": "6.2.0", - "@typescript-eslint/typescript-estree": "6.2.0", + "@typescript-eslint/scope-manager": "6.2.1", + "@typescript-eslint/types": "6.2.1", + "@typescript-eslint/typescript-estree": "6.2.1", "semver": "^7.5.4" }, "engines": { @@ -1163,12 +1163,12 @@ } }, "node_modules/@typescript-eslint/visitor-keys": { - "version": "6.2.0", - "resolved": "https://registry.npmjs.org/@typescript-eslint/visitor-keys/-/visitor-keys-6.2.0.tgz", - "integrity": "sha512-QbaYUQVKKo9bgCzpjz45llCfwakyoxHetIy8CAvYCtd16Zu1KrpzNHofwF8kGkpPOxZB2o6kz+0nqH8ZkIzuoQ==", + "version": "6.2.1", + "resolved": "https://registry.npmjs.org/@typescript-eslint/visitor-keys/-/visitor-keys-6.2.1.tgz", + "integrity": "sha512-iTN6w3k2JEZ7cyVdZJTVJx2Lv7t6zFA8DCrJEHD2mwfc16AEvvBWVhbFh34XyG2NORCd0viIgQY1+u7kPI0WpA==", "dev": true, "dependencies": { - "@typescript-eslint/types": "6.2.0", + "@typescript-eslint/types": "6.2.1", "eslint-visitor-keys": "^3.4.1" }, "engines": { @@ -1308,6 +1308,19 @@ "dequal": "^2.0.3" } }, + "node_modules/array-buffer-byte-length": { + "version": "1.0.0", + "resolved": "https://registry.npmjs.org/array-buffer-byte-length/-/array-buffer-byte-length-1.0.0.tgz", + "integrity": "sha512-LPuwb2P+NrQw3XhxGc36+XSvuBPopovXYTR9Ew++Du9Yb/bx5AzBfrIsBoj0EZUifjQU+sHL21sseZ3jerWO/A==", + "dev": true, + "dependencies": { + "call-bind": "^1.0.2", + "is-array-buffer": "^3.0.1" + }, + "funding": { + "url": "https://github.com/sponsors/ljharb" + } + }, "node_modules/array-find-index": { "version": "1.0.2", "integrity": "sha1-3wEKoSh+Fku9pvlyOwqWoexBh6E=", @@ -1342,6 +1355,25 @@ "node": ">=8" } }, + "node_modules/array.prototype.findlastindex": { + "version": "1.2.2", + "resolved": "https://registry.npmjs.org/array.prototype.findlastindex/-/array.prototype.findlastindex-1.2.2.tgz", + "integrity": "sha512-tb5thFFlUcp7NdNF6/MpDk/1r/4awWG1FIz3YqDf+/zJSTezBb+/5WViH41obXULHVpDzoiCLpJ/ZO9YbJMsdw==", + "dev": true, + "dependencies": { + "call-bind": "^1.0.2", + "define-properties": "^1.1.4", + "es-abstract": "^1.20.4", + "es-shim-unscopables": "^1.0.0", + "get-intrinsic": "^1.1.3" + }, + "engines": { + "node": ">= 0.4" + }, + "funding": { + "url": "https://github.com/sponsors/ljharb" + } + }, "node_modules/array.prototype.flat": { "version": "1.3.1", "resolved": "https://registry.npmjs.org/array.prototype.flat/-/array.prototype.flat-1.3.1.tgz", @@ -1378,6 +1410,26 @@ "url": "https://github.com/sponsors/ljharb" } }, + "node_modules/arraybuffer.prototype.slice": { + "version": "1.0.1", + "resolved": "https://registry.npmjs.org/arraybuffer.prototype.slice/-/arraybuffer.prototype.slice-1.0.1.tgz", + "integrity": "sha512-09x0ZWFEjj4WD8PDbykUwo3t9arLn8NIzmmYEJFpYekOAQjpkGSyrQhNoRTcwwcFRu+ycWF78QZ63oWTqSjBcw==", + "dev": true, + "dependencies": { + "array-buffer-byte-length": "^1.0.0", + "call-bind": "^1.0.2", + "define-properties": "^1.2.0", + "get-intrinsic": "^1.2.1", + "is-array-buffer": "^3.0.2", + "is-shared-array-buffer": "^1.0.2" + }, + "engines": { + "node": ">= 0.4" + }, + "funding": { + "url": "https://github.com/sponsors/ljharb" + } + }, "node_modules/arrgv": { "version": "1.0.2", "integrity": "sha512-a4eg4yhp7mmruZDQFqVMlxNRFGi/i1r87pt8SDHy0/I8PqSXoUTlWZRdAZo0VXgvEARcujbtTk8kiZRi1uDGRw==", @@ -2152,9 +2204,9 @@ } }, "node_modules/define-properties": { - "version": "1.1.4", - "resolved": "https://registry.npmjs.org/define-properties/-/define-properties-1.1.4.tgz", - "integrity": "sha512-uckOqKcfaVvtBdsVkdPv3XjveQJsNQqmhXgRi8uhvWWuPYZCNlzT8qAyblUgNoXdHdjMTzAqeGjAoli8f+bzPA==", + "version": "1.2.0", + "resolved": "https://registry.npmjs.org/define-properties/-/define-properties-1.2.0.tgz", + "integrity": "sha512-xvqAVKGfT1+UAvPwKTVw/njhdQ8ZhXK4lI0bCIuCMrp2up9nPnaDftrLtmpTazqd1o+UY4zgzU+avtMbDP+ldA==", "dev": true, "dependencies": { "has-property-descriptors": "^1.0.0", @@ -2326,18 +2378,19 @@ } }, "node_modules/es-abstract": { - "version": "1.21.1", - "resolved": "https://registry.npmjs.org/es-abstract/-/es-abstract-1.21.1.tgz", - "integrity": "sha512-QudMsPOz86xYz/1dG1OuGBKOELjCh99IIWHLzy5znUB6j8xG2yMA7bfTV86VSqKF+Y/H08vQPR+9jyXpuC6hfg==", + "version": "1.22.1", + "resolved": "https://registry.npmjs.org/es-abstract/-/es-abstract-1.22.1.tgz", + "integrity": "sha512-ioRRcXMO6OFyRpyzV3kE1IIBd4WG5/kltnzdxSCqoP8CMGs/Li+M1uF5o7lOkZVFjDs+NLesthnF66Pg/0q0Lw==", "dev": true, "dependencies": { + "array-buffer-byte-length": "^1.0.0", + "arraybuffer.prototype.slice": "^1.0.1", "available-typed-arrays": "^1.0.5", "call-bind": "^1.0.2", "es-set-tostringtag": "^2.0.1", "es-to-primitive": "^1.2.1", - "function-bind": "^1.1.1", "function.prototype.name": "^1.1.5", - "get-intrinsic": "^1.1.3", + "get-intrinsic": "^1.2.1", "get-symbol-description": "^1.0.0", "globalthis": "^1.0.3", "gopd": "^1.0.1", @@ -2345,8 +2398,8 @@ "has-property-descriptors": "^1.0.0", "has-proto": "^1.0.1", "has-symbols": "^1.0.3", - "internal-slot": "^1.0.4", - "is-array-buffer": "^3.0.1", + "internal-slot": "^1.0.5", + "is-array-buffer": "^3.0.2", "is-callable": "^1.2.7", "is-negative-zero": "^2.0.2", "is-regex": "^1.1.4", @@ -2354,16 +2407,21 @@ "is-string": "^1.0.7", "is-typed-array": "^1.1.10", "is-weakref": "^1.0.2", - "object-inspect": "^1.12.2", + "object-inspect": "^1.12.3", "object-keys": "^1.1.1", "object.assign": "^4.1.4", - "regexp.prototype.flags": "^1.4.3", + "regexp.prototype.flags": "^1.5.0", + "safe-array-concat": "^1.0.0", "safe-regex-test": "^1.0.0", + "string.prototype.trim": "^1.2.7", "string.prototype.trimend": "^1.0.6", "string.prototype.trimstart": "^1.0.6", + "typed-array-buffer": "^1.0.0", + "typed-array-byte-length": "^1.0.0", + "typed-array-byte-offset": "^1.0.0", "typed-array-length": "^1.0.4", "unbox-primitive": "^1.0.2", - "which-typed-array": "^1.1.9" + "which-typed-array": "^1.1.10" }, "engines": { "node": ">= 0.4" @@ -2456,27 +2514,27 @@ } }, "node_modules/eslint": { - "version": "8.45.0", - "resolved": "https://registry.npmjs.org/eslint/-/eslint-8.45.0.tgz", - "integrity": "sha512-pd8KSxiQpdYRfYa9Wufvdoct3ZPQQuVuU5O6scNgMuOMYuxvH0IGaYK0wUFjo4UYYQQCUndlXiMbnxopwvvTiw==", + "version": "8.46.0", + "resolved": "https://registry.npmjs.org/eslint/-/eslint-8.46.0.tgz", + "integrity": "sha512-cIO74PvbW0qU8e0mIvk5IV3ToWdCq5FYG6gWPHHkx6gNdjlbAYvtfHmlCMXxjcoVaIdwy/IAt3+mDkZkfvb2Dg==", "dev": true, "dependencies": { "@eslint-community/eslint-utils": "^4.2.0", - "@eslint-community/regexpp": "^4.4.0", - "@eslint/eslintrc": "^2.1.0", - "@eslint/js": "8.44.0", + "@eslint-community/regexpp": "^4.6.1", + "@eslint/eslintrc": "^2.1.1", + "@eslint/js": "^8.46.0", "@humanwhocodes/config-array": "^0.11.10", "@humanwhocodes/module-importer": "^1.0.1", "@nodelib/fs.walk": "^1.2.8", - "ajv": "^6.10.0", + "ajv": "^6.12.4", "chalk": "^4.0.0", "cross-spawn": "^7.0.2", "debug": "^4.3.2", "doctrine": "^3.0.0", "escape-string-regexp": "^4.0.0", - "eslint-scope": "^7.2.0", - "eslint-visitor-keys": "^3.4.1", - "espree": "^9.6.0", + "eslint-scope": "^7.2.2", + "eslint-visitor-keys": "^3.4.2", + "espree": "^9.6.1", "esquery": "^1.4.2", "esutils": "^2.0.2", "fast-deep-equal": "^3.1.3", @@ -2599,9 +2657,9 @@ } }, "node_modules/eslint-module-utils": { - "version": "2.7.4", - "resolved": "https://registry.npmjs.org/eslint-module-utils/-/eslint-module-utils-2.7.4.tgz", - "integrity": "sha512-j4GT+rqzCoRKHwURX7pddtIPGySnX9Si/cgMI5ztrcqOPtk5dDEeZ34CQVPphnqkJytlc97Vuk05Um2mJ3gEQA==", + "version": "2.8.0", + "resolved": "https://registry.npmjs.org/eslint-module-utils/-/eslint-module-utils-2.8.0.tgz", + "integrity": "sha512-aWajIYfsqCKRDgUfjEXNN/JlrzauMuSEy5sbd7WXbtW3EH6A6MpwEh42c7qD+MqQo9QMJ6fWLAeIJynx0g6OAw==", "dev": true, "dependencies": { "debug": "^3.2.7" @@ -2709,26 +2767,29 @@ } }, "node_modules/eslint-plugin-import": { - "version": "2.27.5", - "resolved": "https://registry.npmjs.org/eslint-plugin-import/-/eslint-plugin-import-2.27.5.tgz", - "integrity": "sha512-LmEt3GVofgiGuiE+ORpnvP+kAm3h6MLZJ4Q5HCyHADofsb4VzXFsRiWj3c0OFiV+3DWFh0qg3v9gcPlfc3zRow==", + "version": "2.28.0", + "resolved": "https://registry.npmjs.org/eslint-plugin-import/-/eslint-plugin-import-2.28.0.tgz", + "integrity": "sha512-B8s/n+ZluN7sxj9eUf7/pRFERX0r5bnFA2dCaLHy2ZeaQEAz0k+ZZkFWRFHJAqxfxQDx6KLv9LeIki7cFdwW+Q==", "dev": true, "dependencies": { "array-includes": "^3.1.6", + "array.prototype.findlastindex": "^1.2.2", "array.prototype.flat": "^1.3.1", "array.prototype.flatmap": "^1.3.1", "debug": "^3.2.7", "doctrine": "^2.1.0", "eslint-import-resolver-node": "^0.3.7", - "eslint-module-utils": "^2.7.4", + "eslint-module-utils": "^2.8.0", "has": "^1.0.3", - "is-core-module": "^2.11.0", + "is-core-module": "^2.12.1", "is-glob": "^4.0.3", "minimatch": "^3.1.2", + "object.fromentries": "^2.0.6", + "object.groupby": "^1.0.0", "object.values": "^1.1.6", - "resolve": "^1.22.1", - "semver": "^6.3.0", - "tsconfig-paths": "^3.14.1" + "resolve": "^1.22.3", + "semver": "^6.3.1", + "tsconfig-paths": "^3.14.2" }, "engines": { "node": ">=4" @@ -2746,15 +2807,6 @@ "ms": "^2.1.1" } }, - "node_modules/eslint-plugin-import/node_modules/semver": { - "version": "6.3.1", - "resolved": "https://registry.npmjs.org/semver/-/semver-6.3.1.tgz", - "integrity": "sha512-BR7VvDCVHO+q2xBEWskxS6DJE1qRnb7DxzUrogb71CWoSficBxYsiAGd+Kl0mmq/MprG9yArRkyrQxTO6XjMzA==", - "dev": true, - "bin": { - "semver": "bin/semver.js" - } - }, "node_modules/eslint-plugin-jsx-a11y": { "version": "6.7.1", "resolved": "https://registry.npmjs.org/eslint-plugin-jsx-a11y/-/eslint-plugin-jsx-a11y-6.7.1.tgz", @@ -2857,10 +2909,26 @@ "node": ">=4.0.0" } }, + "node_modules/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, + "dependencies": { + "esrecurse": "^4.3.0", + "estraverse": "^5.2.0" + }, + "engines": { + "node": "^12.22.0 || ^14.17.0 || >=16.0.0" + }, + "funding": { + "url": "https://opencollective.com/eslint" + } + }, "node_modules/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==", + "version": "3.4.2", + "resolved": "https://registry.npmjs.org/eslint-visitor-keys/-/eslint-visitor-keys-3.4.2.tgz", + "integrity": "sha512-8drBzUEyZ2llkpCA67iYrgEssKDUu68V8ChqqOfFupIaG/LCVPUT+CoGJpT77zJprs4T/W7p07LP7zAIMuweVw==", "dev": true, "engines": { "node": "^12.22.0 || ^14.17.0 || >=16.0.0" @@ -2922,31 +2990,6 @@ "url": "https://github.com/sponsors/sindresorhus" } }, - "node_modules/eslint/node_modules/eslint-scope": { - "version": "7.2.0", - "resolved": "https://registry.npmjs.org/eslint-scope/-/eslint-scope-7.2.0.tgz", - "integrity": "sha512-DYj5deGlHBfMt15J7rdtyKNq/Nqlv5KfU4iodrQ019XESsRnwXH9KAE0y3cwtUHDo2ob7CypAnCqefh6vioWRw==", - "dev": true, - "dependencies": { - "esrecurse": "^4.3.0", - "estraverse": "^5.2.0" - }, - "engines": { - "node": "^12.22.0 || ^14.17.0 || >=16.0.0" - }, - "funding": { - "url": "https://opencollective.com/eslint" - } - }, - "node_modules/eslint/node_modules/estraverse": { - "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" - } - }, "node_modules/eslint/node_modules/find-up": { "version": "5.0.0", "resolved": "https://registry.npmjs.org/find-up/-/find-up-5.0.0.tgz", @@ -3061,9 +3104,9 @@ } }, "node_modules/espree": { - "version": "9.6.0", - "resolved": "https://registry.npmjs.org/espree/-/espree-9.6.0.tgz", - "integrity": "sha512-1FH/IiruXZ84tpUlm0aCUEwMl2Ho5ilqVh0VvQXw+byAz/4SAciyHLlfmL5WYqsvD38oymdUwBss0LtK8m4s/A==", + "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", @@ -3102,17 +3145,9 @@ "node": ">=0.10" } }, - "node_modules/esquery/node_modules/estraverse": { - "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" - } - }, "node_modules/esrecurse": { "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": { @@ -3122,9 +3157,10 @@ "node": ">=4.0" } }, - "node_modules/esrecurse/node_modules/estraverse": { - "version": "5.2.0", - "integrity": "sha512-BxbNGGNm0RyRYvUdHpIwv9IWzeM9XClbOxwoATuFdOE7ZE6wHL+HQ5T8hoPM+zHvmKzzsEqhgy0GrQ5X13afiQ==", + "node_modules/estraverse": { + "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" @@ -3416,13 +3452,14 @@ } }, "node_modules/get-intrinsic": { - "version": "1.1.3", - "resolved": "https://registry.npmjs.org/get-intrinsic/-/get-intrinsic-1.1.3.tgz", - "integrity": "sha512-QJVz1Tj7MS099PevUG5jvnt9tSkXN8K14dxQlikJuPt4uD9hHAHjLyLBiLR5zELelBdD9QNRAXZzsJx0WaDL9A==", + "version": "1.2.1", + "resolved": "https://registry.npmjs.org/get-intrinsic/-/get-intrinsic-1.2.1.tgz", + "integrity": "sha512-2DcsyfABl+gVHEfCOaTrWgyt+tb6MSEGmKq+kI5HwLbIYgjgmMcV8KQ41uaKz1xxUcn9tJtgFbQUEVcEbd0FYw==", "dev": true, "dependencies": { "function-bind": "^1.1.1", "has": "^1.0.3", + "has-proto": "^1.0.1", "has-symbols": "^1.0.3" }, "funding": { @@ -3708,12 +3745,12 @@ "integrity": "sha1-Yzwsg+PaQqUC9SRmAiSA9CCCYd4=" }, "node_modules/internal-slot": { - "version": "1.0.4", - "resolved": "https://registry.npmjs.org/internal-slot/-/internal-slot-1.0.4.tgz", - "integrity": "sha512-tA8URYccNzMo94s5MQZgH8NB/XTa6HsOo0MLfXTKKEnHVVdegzaQoFZ7Jp44bdvLvY2waT5dc+j5ICEswhi7UQ==", + "version": "1.0.5", + "resolved": "https://registry.npmjs.org/internal-slot/-/internal-slot-1.0.5.tgz", + "integrity": "sha512-Y+R5hJrzs52QCG2laLn4udYVnxsfny9CpOhNhUvk/SSSVyF6T27FzRbF0sroPidSu3X8oEAkOn2K804mjpt6UQ==", "dev": true, "dependencies": { - "get-intrinsic": "^1.1.3", + "get-intrinsic": "^1.2.0", "has": "^1.0.3", "side-channel": "^1.0.4" }, @@ -3747,13 +3784,13 @@ } }, "node_modules/is-array-buffer": { - "version": "3.0.1", - "resolved": "https://registry.npmjs.org/is-array-buffer/-/is-array-buffer-3.0.1.tgz", - "integrity": "sha512-ASfLknmY8Xa2XtB4wmbz13Wu202baeA18cJBCeCy0wXUHZF0IPyVEXqKEcd+t2fNSLLL1vC6k7lxZEojNbISXQ==", + "version": "3.0.2", + "resolved": "https://registry.npmjs.org/is-array-buffer/-/is-array-buffer-3.0.2.tgz", + "integrity": "sha512-y+FyyR/w8vfIRq4eQcM1EYgSTnmHXPqaF+IgzgraytCFq5Xh8lllDVmAZolPJiZttZLeFSINPYMaEJ7/vWUa1w==", "dev": true, "dependencies": { "call-bind": "^1.0.2", - "get-intrinsic": "^1.1.3", + "get-intrinsic": "^1.2.0", "is-typed-array": "^1.1.10" }, "funding": { @@ -3813,9 +3850,9 @@ } }, "node_modules/is-core-module": { - "version": "2.11.0", - "resolved": "https://registry.npmjs.org/is-core-module/-/is-core-module-2.11.0.tgz", - "integrity": "sha512-RRjxlvLDkD1YJwDbroBHMb+cukurkDWNyHx7D3oNB5x9rb5ogcksMC5wHCadcXoo67gVr/+3GFySh3134zi6rw==", + "version": "2.12.1", + "resolved": "https://registry.npmjs.org/is-core-module/-/is-core-module-2.12.1.tgz", + "integrity": "sha512-Q4ZuBAe2FUsKtyQJoQHlvP8OvBERxO3jEmy1I7hcRXcJBGGHFh/aJBswbXuS9sgrDH2QUO8ilkwNPHvHMd8clg==", "dev": true, "dependencies": { "has": "^1.0.3" @@ -4477,9 +4514,9 @@ } }, "node_modules/minimist": { - "version": "1.2.7", - "resolved": "https://registry.npmjs.org/minimist/-/minimist-1.2.7.tgz", - "integrity": "sha512-bzfL1YUZsP41gmu/qjrEk0Q6i2ix/cVeAhbCbqH9u3zYutS1cLg00qhrD0M2MVdCcx4Sc0UpP2eBWo9rotpq6g==", + "version": "1.2.8", + "resolved": "https://registry.npmjs.org/minimist/-/minimist-1.2.8.tgz", + "integrity": "sha512-2yyAR8qBkN3YuheJanUpWC5U3bb5osDywNB8RzDVlDwDHbocAJveqqj1u8+SVD7jkWT4yvsHCpWqqWqAxb0zCA==", "dev": true, "funding": { "url": "https://github.com/sponsors/ljharb" @@ -4700,6 +4737,18 @@ "url": "https://github.com/sponsors/ljharb" } }, + "node_modules/object.groupby": { + "version": "1.0.0", + "resolved": "https://registry.npmjs.org/object.groupby/-/object.groupby-1.0.0.tgz", + "integrity": "sha512-70MWG6NfRH9GnbZOikuhPPYzpUpof9iW2J9E4dW7FXTqPNb6rllE6u39SKwwiNh8lCwX3DDb5OgcKGiEBrTTyw==", + "dev": true, + "dependencies": { + "call-bind": "^1.0.2", + "define-properties": "^1.2.0", + "es-abstract": "^1.21.2", + "get-intrinsic": "^1.2.1" + } + }, "node_modules/object.values": { "version": "1.1.6", "resolved": "https://registry.npmjs.org/object.values/-/object.values-1.1.6.tgz", @@ -5095,14 +5144,14 @@ "dev": true }, "node_modules/regexp.prototype.flags": { - "version": "1.4.3", - "resolved": "https://registry.npmjs.org/regexp.prototype.flags/-/regexp.prototype.flags-1.4.3.tgz", - "integrity": "sha512-fjggEOO3slI6Wvgjwflkc4NFRCTZAu5CnNfBd5qOMYhWdn67nJBBu34/TkD++eeFmd8C9r9jfXJ27+nSiRkSUA==", + "version": "1.5.0", + "resolved": "https://registry.npmjs.org/regexp.prototype.flags/-/regexp.prototype.flags-1.5.0.tgz", + "integrity": "sha512-0SutC3pNudRKgquxGoRGIz946MZVHqbNfPjBdxeOhBrdgDKlRoXmYLQN9xRbrR09ZXWeGAdPuif7egofn6v5LA==", "dev": true, "dependencies": { "call-bind": "^1.0.2", - "define-properties": "^1.1.3", - "functions-have-names": "^1.2.2" + "define-properties": "^1.2.0", + "functions-have-names": "^1.2.3" }, "engines": { "node": ">= 0.4" @@ -5141,12 +5190,12 @@ } }, "node_modules/resolve": { - "version": "1.22.1", - "resolved": "https://registry.npmjs.org/resolve/-/resolve-1.22.1.tgz", - "integrity": "sha512-nBpuuYuY5jFsli/JIs1oldw6fOQCBioohqWZg/2hiaOybXOft4lonv85uDOKXdf8rhyK159cxU5cDcK/NKk8zw==", + "version": "1.22.3", + "resolved": "https://registry.npmjs.org/resolve/-/resolve-1.22.3.tgz", + "integrity": "sha512-P8ur/gp/AmbEzjr729bZnLjXK5Z+4P0zhIJgBgzqRih7hL7BOukHGtSTA3ACMY467GRFz3duQsi0bDZdR7DKdw==", "dev": true, "dependencies": { - "is-core-module": "^2.9.0", + "is-core-module": "^2.12.0", "path-parse": "^1.0.7", "supports-preserve-symlinks-flag": "^1.0.0" }, @@ -5353,6 +5402,30 @@ "queue-microtask": "^1.2.2" } }, + "node_modules/safe-array-concat": { + "version": "1.0.0", + "resolved": "https://registry.npmjs.org/safe-array-concat/-/safe-array-concat-1.0.0.tgz", + "integrity": "sha512-9dVEFruWIsnie89yym+xWTAYASdpw3CJV7Li/6zBewGf9z2i1j31rP6jnY0pHEO4QZh6N0K11bFjWmdR8UGdPQ==", + "dev": true, + "dependencies": { + "call-bind": "^1.0.2", + "get-intrinsic": "^1.2.0", + "has-symbols": "^1.0.3", + "isarray": "^2.0.5" + }, + "engines": { + "node": ">=0.4" + }, + "funding": { + "url": "https://github.com/sponsors/ljharb" + } + }, + "node_modules/safe-array-concat/node_modules/isarray": { + "version": "2.0.5", + "resolved": "https://registry.npmjs.org/isarray/-/isarray-2.0.5.tgz", + "integrity": "sha512-xHjhDr3cNBK0BzdUJSPXZntQUx/mwMS5Rw4A7lPJ90XGAO6ISP/ePDNuo0vhqOZU+UD5JoodwCAAoZQd3FeAKw==", + "dev": true + }, "node_modules/safe-regex-test": { "version": "1.0.0", "resolved": "https://registry.npmjs.org/safe-regex-test/-/safe-regex-test-1.0.0.tgz", @@ -5599,6 +5672,23 @@ "node": ">=8" } }, + "node_modules/string.prototype.trim": { + "version": "1.2.7", + "resolved": "https://registry.npmjs.org/string.prototype.trim/-/string.prototype.trim-1.2.7.tgz", + "integrity": "sha512-p6TmeT1T3411M8Cgg9wBTMRtY2q9+PNy9EV1i2lIXUN/btt763oIfxwN3RR8VU6wHX8j/1CFy0L+YuThm6bgOg==", + "dev": true, + "dependencies": { + "call-bind": "^1.0.2", + "define-properties": "^1.1.4", + "es-abstract": "^1.20.4" + }, + "engines": { + "node": ">= 0.4" + }, + "funding": { + "url": "https://github.com/sponsors/ljharb" + } + }, "node_modules/string.prototype.trimend": { "version": "1.0.6", "resolved": "https://registry.npmjs.org/string.prototype.trimend/-/string.prototype.trimend-1.0.6.tgz", @@ -5875,13 +5965,13 @@ } }, "node_modules/tsconfig-paths": { - "version": "3.14.1", - "resolved": "https://registry.npmjs.org/tsconfig-paths/-/tsconfig-paths-3.14.1.tgz", - "integrity": "sha512-fxDhWnFSLt3VuTwtvJt5fpwxBHg5AdKWMsgcPOOIilyjymcYVZoCQF8fvFRezCNfblEXmi+PcM1eYHeOAgXCOQ==", + "version": "3.14.2", + "resolved": "https://registry.npmjs.org/tsconfig-paths/-/tsconfig-paths-3.14.2.tgz", + "integrity": "sha512-o/9iXgCYc5L/JxCHPe3Hvh8Q/2xm5Z+p18PESBU6Ff33695QnCHBEjcytY2q19ua7Mbl/DavtBOLq+oG0RCL+g==", "dev": true, "dependencies": { "@types/json5": "^0.0.29", - "json5": "^1.0.1", + "json5": "^1.0.2", "minimist": "^1.2.6", "strip-bom": "^3.0.0" } @@ -5931,6 +6021,57 @@ "url": "https://github.com/sponsors/sindresorhus" } }, + "node_modules/typed-array-buffer": { + "version": "1.0.0", + "resolved": "https://registry.npmjs.org/typed-array-buffer/-/typed-array-buffer-1.0.0.tgz", + "integrity": "sha512-Y8KTSIglk9OZEr8zywiIHG/kmQ7KWyjseXs1CbSo8vC42w7hg2HgYTxSWwP0+is7bWDc1H+Fo026CpHFwm8tkw==", + "dev": true, + "dependencies": { + "call-bind": "^1.0.2", + "get-intrinsic": "^1.2.1", + "is-typed-array": "^1.1.10" + }, + "engines": { + "node": ">= 0.4" + } + }, + "node_modules/typed-array-byte-length": { + "version": "1.0.0", + "resolved": "https://registry.npmjs.org/typed-array-byte-length/-/typed-array-byte-length-1.0.0.tgz", + "integrity": "sha512-Or/+kvLxNpeQ9DtSydonMxCx+9ZXOswtwJn17SNLvhptaXYDJvkFFP5zbfU/uLmvnBJlI4yrnXRxpdWH/M5tNA==", + "dev": true, + "dependencies": { + "call-bind": "^1.0.2", + "for-each": "^0.3.3", + "has-proto": "^1.0.1", + "is-typed-array": "^1.1.10" + }, + "engines": { + "node": ">= 0.4" + }, + "funding": { + "url": "https://github.com/sponsors/ljharb" + } + }, + "node_modules/typed-array-byte-offset": { + "version": "1.0.0", + "resolved": "https://registry.npmjs.org/typed-array-byte-offset/-/typed-array-byte-offset-1.0.0.tgz", + "integrity": "sha512-RD97prjEt9EL8YgAgpOkf3O4IF9lhJFr9g0htQkm0rchFp/Vx7LW5Q8fSXXub7BXAODyUQohRMyOc3faCPd0hg==", + "dev": true, + "dependencies": { + "available-typed-arrays": "^1.0.5", + "call-bind": "^1.0.2", + "for-each": "^0.3.3", + "has-proto": "^1.0.1", + "is-typed-array": "^1.1.10" + }, + "engines": { + "node": ">= 0.4" + }, + "funding": { + "url": "https://github.com/sponsors/ljharb" + } + }, "node_modules/typed-array-length": { "version": "1.0.4", "resolved": "https://registry.npmjs.org/typed-array-length/-/typed-array-length-1.0.4.tgz", @@ -6107,17 +6248,16 @@ } }, "node_modules/which-typed-array": { - "version": "1.1.9", - "resolved": "https://registry.npmjs.org/which-typed-array/-/which-typed-array-1.1.9.tgz", - "integrity": "sha512-w9c4xkx6mPidwp7180ckYWfMmvxpjlZuIudNtDf4N/tTAUB8VJbX25qZoAsrtGuYNnGw3pa0AXgbGKRB8/EceA==", + "version": "1.1.11", + "resolved": "https://registry.npmjs.org/which-typed-array/-/which-typed-array-1.1.11.tgz", + "integrity": "sha512-qe9UWWpkeG5yzZ0tNYxDmd7vo58HDBc39mZ0xWWpolAGADdFOzkfamWLDxkOWcvHQKVmdTyQdLD4NOfjLWTKew==", "dev": true, "dependencies": { "available-typed-arrays": "^1.0.5", "call-bind": "^1.0.2", "for-each": "^0.3.3", "gopd": "^1.0.1", - "has-tostringtag": "^1.0.0", - "is-typed-array": "^1.1.10" + "has-tostringtag": "^1.0.0" }, "engines": { "node": ">= 0.4" diff --git a/package.json b/package.json index 2787d449ab..8160ea2b00 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "codeql", - "version": "2.21.2", + "version": "2.21.3", "private": true, "description": "CodeQL action", "scripts": { @@ -58,15 +58,15 @@ "@types/js-yaml": "^4.0.5", "@types/node": "16.11.22", "@types/semver": "^7.5.0", - "@types/sinon": "^10.0.15", - "@typescript-eslint/eslint-plugin": "^6.2.0", - "@typescript-eslint/parser": "^6.2.0", + "@types/sinon": "^10.0.16", + "@typescript-eslint/eslint-plugin": "^6.2.1", + "@typescript-eslint/parser": "^6.2.1", "ava": "^5.3.1", - "eslint": "^8.45.0", + "eslint": "^8.46.0", "eslint-import-resolver-typescript": "^3.5.5", "eslint-plugin-filenames": "^1.3.2", "eslint-plugin-github": "^4.9.2", - "eslint-plugin-import": "^2.27.5", + "eslint-plugin-import": "^2.28.0", "eslint-plugin-no-async-foreach": "^0.1.1", "micromatch": "4.0.5", "nock": "^13.3.2", diff --git a/pr-checks/checks/all-platform-bundle.yml b/pr-checks/checks/all-platform-bundle.yml new file mode 100644 index 0000000000..b681ad6165 --- /dev/null +++ b/pr-checks/checks/all-platform-bundle.yml @@ -0,0 +1,19 @@ +name: "All-platform bundle" +description: "Tests using an all-platform CodeQL Bundle" +versions: ["nightly-latest"] +operatingSystems: ["ubuntu"] +useAllPlatformBundle: "true" +steps: + - id: init + uses: ./../action/init + with: + tools: ${{ steps.prepare-test.outputs.tools-url }} + - uses: ./../action/.github/actions/setup-swift + with: + codeql-path: ${{ steps.init.outputs.codeql-path }} + - name: Build code + shell: bash + run: ./build.sh + - uses: ./../action/analyze + with: + upload-database: false diff --git a/pr-checks/checks/export-file-baseline-information.yml b/pr-checks/checks/export-file-baseline-information.yml index c9d0605784..3c24f1a340 100644 --- a/pr-checks/checks/export-file-baseline-information.yml +++ b/pr-checks/checks/export-file-baseline-information.yml @@ -11,7 +11,7 @@ steps: CODEQL_FILE_BASELINE_INFORMATION: true - uses: ./../action/.github/actions/setup-swift with: - codeql-path: ${{steps.init.outputs.codeql-path}} + codeql-path: ${{ steps.init.outputs.codeql-path }} - name: Build code shell: bash run: ./build.sh diff --git a/pr-checks/checks/init-with-registries.yml b/pr-checks/checks/init-with-registries.yml index 667aa61e5b..f0ef501cbe 100644 --- a/pr-checks/checks/init-with-registries.yml +++ b/pr-checks/checks/init-with-registries.yml @@ -6,7 +6,7 @@ name: "Packaging: Download using registries" description: "Checks that specifying a registries block and associated auth works as expected" versions: [ # This feature is not compatible with older CLIs - "cached", + "default", "latest", "nightly-latest", ] diff --git a/pr-checks/checks/javascript-source-root.yml b/pr-checks/checks/javascript-source-root.yml index db6ce7930f..9869f0a425 100644 --- a/pr-checks/checks/javascript-source-root.yml +++ b/pr-checks/checks/javascript-source-root.yml @@ -1,6 +1,6 @@ name: "Custom source root" description: "Checks that the argument specifying a non-default source root works" -versions: ["latest", "cached", "nightly-latest"] # This feature is not compatible with old CLIs +versions: ["latest", "default", "nightly-latest"] # This feature is not compatible with old CLIs operatingSystems: ["ubuntu"] steps: - name: Move codeql-action diff --git a/pr-checks/checks/packaging-codescanning-config-inputs-js.yml b/pr-checks/checks/packaging-codescanning-config-inputs-js.yml index 16c7dab879..ccfed3133e 100644 --- a/pr-checks/checks/packaging-codescanning-config-inputs-js.yml +++ b/pr-checks/checks/packaging-codescanning-config-inputs-js.yml @@ -1,6 +1,6 @@ name: "Packaging: Config and input passed to the CLI" description: "Checks that specifying packages using a combination of a config file and input to the Action works" -versions: ["latest", "cached", "nightly-latest"] # This feature is not compatible with old CLIs +versions: ["latest", "default", "nightly-latest"] # This feature is not compatible with old CLIs env: CODEQL_PASS_CONFIG_TO_CLI: true diff --git a/pr-checks/checks/packaging-config-inputs-js.yml b/pr-checks/checks/packaging-config-inputs-js.yml index 363c54cac9..a20c5d44dc 100644 --- a/pr-checks/checks/packaging-config-inputs-js.yml +++ b/pr-checks/checks/packaging-config-inputs-js.yml @@ -1,6 +1,6 @@ name: "Packaging: Config and input" description: "Checks that specifying packages using a combination of a config file and input to the Action works" -versions: ["latest", "cached", "nightly-latest"] # This feature is not compatible with old CLIs +versions: ["latest", "default", "nightly-latest"] # This feature is not compatible with old CLIs steps: - uses: ./../action/init with: diff --git a/pr-checks/checks/packaging-config-js.yml b/pr-checks/checks/packaging-config-js.yml index 42d955d471..084a8ad72d 100644 --- a/pr-checks/checks/packaging-config-js.yml +++ b/pr-checks/checks/packaging-config-js.yml @@ -1,6 +1,6 @@ name: "Packaging: Config file" description: "Checks that specifying packages using only a config file works" -versions: ["latest", "cached", "nightly-latest"] # This feature is not compatible with old CLIs +versions: ["latest", "default", "nightly-latest"] # This feature is not compatible with old CLIs steps: - uses: ./../action/init with: diff --git a/pr-checks/checks/packaging-inputs-js.yml b/pr-checks/checks/packaging-inputs-js.yml index cab8d913d9..ff1e35a366 100644 --- a/pr-checks/checks/packaging-inputs-js.yml +++ b/pr-checks/checks/packaging-inputs-js.yml @@ -1,6 +1,6 @@ name: "Packaging: Action input" description: "Checks that specifying packages using the input to the Action works" -versions: ["latest", "cached", "nightly-latest"] # This feature is not compatible with old CLIs +versions: ["latest", "default", "nightly-latest"] # This feature is not compatible with old CLIs steps: - uses: ./../action/init with: diff --git a/pr-checks/checks/rubocop-multi-language.yml b/pr-checks/checks/rubocop-multi-language.yml index 3d4f62915b..90b41b6fa7 100644 --- a/pr-checks/checks/rubocop-multi-language.yml +++ b/pr-checks/checks/rubocop-multi-language.yml @@ -2,7 +2,7 @@ name: "RuboCop multi-language" description: "Tests using RuboCop to analyze a multi-language repository and then using the CodeQL Action to upload the resulting SARIF" operatingSystems: ["ubuntu"] # This check doesn't use CodeQL, so the `version` matrix variable is unused. -versions: ["cached"] +versions: ["default"] steps: - name: Set up Ruby uses: ruby/setup-ruby@v1 diff --git a/pr-checks/checks/ruby.yml b/pr-checks/checks/ruby.yml index 53891a71af..a857fd3409 100644 --- a/pr-checks/checks/ruby.yml +++ b/pr-checks/checks/ruby.yml @@ -1,6 +1,6 @@ name: "Ruby analysis" description: "Tests creation of a Ruby database" -versions: ["latest", "cached", "nightly-latest"] +versions: ["latest", "default", "nightly-latest"] operatingSystems: ["ubuntu", "macos"] steps: - uses: ./../action/init diff --git a/pr-checks/checks/split-workflow.yml b/pr-checks/checks/split-workflow.yml index 5209f04488..c752eca67c 100644 --- a/pr-checks/checks/split-workflow.yml +++ b/pr-checks/checks/split-workflow.yml @@ -1,7 +1,7 @@ name: "Split workflow" description: "Tests a split-up workflow in which we first build a database and later analyze it" operatingSystems: ["ubuntu", "macos"] -versions: ["latest", "cached", "nightly-latest"] # This feature is not compatible with old CLIs +versions: ["latest", "default", "nightly-latest"] # This feature is not compatible with old CLIs steps: - uses: ./../action/init with: diff --git a/pr-checks/checks/submit-sarif-failure.yml b/pr-checks/checks/submit-sarif-failure.yml index 9a5e299868..3d9ae73fef 100644 --- a/pr-checks/checks/submit-sarif-failure.yml +++ b/pr-checks/checks/submit-sarif-failure.yml @@ -1,6 +1,6 @@ name: Submit SARIF after failure description: Check that a SARIF file is submitted for the workflow run if it fails -versions: ["latest", "cached", "nightly-latest"] +versions: ["latest", "default", "nightly-latest"] operatingSystems: ["ubuntu"] env: diff --git a/pr-checks/checks/swift-custom-build.yml b/pr-checks/checks/swift-custom-build.yml index d4caabd5d7..a5da41f568 100644 --- a/pr-checks/checks/swift-custom-build.yml +++ b/pr-checks/checks/swift-custom-build.yml @@ -1,6 +1,6 @@ name: "Swift analysis using a custom build command" description: "Tests creation of a Swift database using custom build" -versions: ["latest", "cached", "nightly-latest"] +versions: ["latest", "default", "nightly-latest"] operatingSystems: ["ubuntu", "macos"] env: DOTNET_GENERATE_ASPNET_CERTIFICATE: "false" diff --git a/pr-checks/sync.py b/pr-checks/sync.py index f59f848e57..dd8118036b 100644 --- a/pr-checks/sync.py +++ b/pr-checks/sync.py @@ -13,9 +13,11 @@ "stable-20221211", # The last CodeQL release in the 2.12 series: 2.12.7. "stable-20230418", - # The version of CodeQL currently in the toolcache. Typically either the latest release or the one before. - "cached", - # The latest release of CodeQL. + # The default version of CodeQL for Dotcom, as determined by feature flags. + "default", + # The version of CodeQL shipped with the Action in `defaults.json`. During the release process + # for a new CodeQL release, there will be a period of time during which this will be newer than + # the default version on Dotcom. "latest", # A nightly build directly from the our private repo, built in the last 24 hours. "nightly-latest" @@ -61,6 +63,10 @@ def writeHeader(checkStream): 'version': version }) + useAllPlatformBundle = "false" # Default to false + if checkSpecification.get('useAllPlatformBundle'): + useAllPlatformBundle = checkSpecification['useAllPlatformBundle'] + steps = [ { 'name': 'Check out repository', @@ -71,7 +77,8 @@ def writeHeader(checkStream): 'id': 'prepare-test', 'uses': './.github/actions/prepare-test', 'with': { - 'version': '${{ matrix.version }}' + 'version': '${{ matrix.version }}', + 'use-all-platform-bundle': useAllPlatformBundle } }, # We don't support Swift on Windows or prior versions of the CLI. diff --git a/src/actions-util.ts b/src/actions-util.ts index 0c81087d5d..04b7333101 100644 --- a/src/actions-util.ts +++ b/src/actions-util.ts @@ -24,7 +24,11 @@ const pkg = require("../package.json") as JSONSchemaForNPMPackageJsonFiles; * This allows us to get stronger type checking of required/optional inputs. */ export const getRequiredInput = function (name: string): string { - return core.getInput(name, { required: true }); + const value = core.getInput(name); + if (!value) { + throw new UserError(`Input required and not supplied: ${name}`); + } + return value; }; /** diff --git a/src/analyze.ts b/src/analyze.ts index 51d762fd5f..80c1ee7553 100644 --- a/src/analyze.ts +++ b/src/analyze.ts @@ -388,7 +388,11 @@ export async function runQueries( statusReport["event_reports"].push(perQueryAlertCountEventReport); } - await runPrintLinesOfCode(language); + if ( + !(await features.getValue(Feature.NewAnalysisSummaryEnabled, codeql)) + ) { + await runPrintLinesOfCode(language); + } } catch (e) { logger.info(String(e)); if (e instanceof Error) { @@ -483,6 +487,7 @@ export async function runQueries( querySuitePath, queryFlags, optimizeForLastQueryRun, + features, ); logger.debug(`BQRS results produced for ${language} (queries: ${type})"`); @@ -517,6 +522,7 @@ export async function runQueries( querySuitePath, queryFlags, optimizeForLastQueryRun, + features, ); return querySuitePath; diff --git a/src/codeql.ts b/src/codeql.ts index a1e0a72684..7f4f552655 100644 --- a/src/codeql.ts +++ b/src/codeql.ts @@ -10,6 +10,7 @@ import * as api from "./api-client"; import type { Config } from "./config-utils"; import { EnvVar } from "./environment"; import { + CODEQL_VERSION_INTRA_LAYER_PARALLELISM, CODEQL_VERSION_NEW_ANALYSIS_SUMMARY, CodeQLDefaultVersionInfo, Feature, @@ -160,6 +161,7 @@ export interface CodeQL { querySuitePath: string | undefined, flags: string[], optimizeForLastQueryRun: boolean, + features: FeatureEnablement, ): Promise; /** * Run 'codeql database interpret-results'. @@ -313,6 +315,11 @@ export const CODEQL_VERSION_INIT_WITH_QLCONFIG = "2.12.4"; */ export const CODEQL_VERSION_BETTER_NO_CODE_ERROR_MESSAGE = "2.12.4"; +/** + * Versions 2.13.1+ of the CodeQL CLI fix a bug where diagnostics export could produce invalid SARIF. + */ +export const CODEQL_VERSION_DIAGNOSTICS_EXPORT_FIXED = "2.13.1"; + /** * Versions 2.13.4+ of the CodeQL CLI support the `resolve build-environment` command. */ @@ -756,6 +763,7 @@ export async function getCodeQLForCmd( querySuitePath: string | undefined, flags: string[], optimizeForLastQueryRun: boolean, + features: FeatureEnablement, ): Promise { const codeqlArgs = [ "database", @@ -778,6 +786,21 @@ export async function getCodeQLForCmd( if (querySuitePath) { codeqlArgs.push(querySuitePath); } + if ( + await features.getValue( + Feature.EvaluatorIntraLayerParallelismEnabled, + this, + ) + ) { + codeqlArgs.push("--intra-layer-parallelism"); + } else if ( + await util.codeQlVersionAbove( + this, + CODEQL_VERSION_INTRA_LAYER_PARALLELISM, + ) + ) { + codeqlArgs.push("--no-intra-layer-parallelism"); + } await runTool(cmd, codeqlArgs); }, async databaseInterpretResults( @@ -796,8 +819,9 @@ export async function getCodeQLForCmd( Feature.ExportDiagnosticsEnabled, this, ); - // Update this to take into account the CodeQL version when we have a version with the fix. - const shouldWorkaroundInvalidNotifications = shouldExportDiagnostics; + const shouldWorkaroundInvalidNotifications = + shouldExportDiagnostics && + !(await isDiagnosticsExportInvalidSarifFixed(this)); const codeqlOutputFile = shouldWorkaroundInvalidNotifications ? path.join(config.tempDir, "codeql-intermediate-results.sarif") : sarifFile; @@ -952,8 +976,8 @@ export async function getCodeQLForCmd( tempDir: string, logger: Logger, ): Promise { - // Update this to take into account the CodeQL version when we have a version with the fix. - const shouldWorkaroundInvalidNotifications = true; + const shouldWorkaroundInvalidNotifications = + !(await isDiagnosticsExportInvalidSarifFixed(this)); const codeqlOutputFile = shouldWorkaroundInvalidNotifications ? path.join(tempDir, "codeql-intermediate-results.sarif") : sarifFile; @@ -1395,3 +1419,12 @@ function isNoCodeFoundError(e: CommandInvocationError): boolean { "No JavaScript or TypeScript code found."; return e.exitCode === 32 || e.error.includes(javascriptNoCodeFoundWarning); } + +async function isDiagnosticsExportInvalidSarifFixed( + codeql: CodeQL, +): Promise { + return await util.codeQlVersionAbove( + codeql, + CODEQL_VERSION_DIAGNOSTICS_EXPORT_FIXED, + ); +} diff --git a/src/feature-flags.ts b/src/feature-flags.ts index cde3ab6779..1c47bde7a2 100644 --- a/src/feature-flags.ts +++ b/src/feature-flags.ts @@ -23,6 +23,11 @@ export const CODEQL_VERSION_BUNDLE_SEMANTICALLY_VERSIONED = "2.13.4"; */ export const CODEQL_VERSION_NEW_ANALYSIS_SUMMARY = "2.14.0"; +/** + * Versions 2.14.0+ of the CodeQL CLI support intra-layer parallelism (aka fine-grained parallelism) options. + */ +export const CODEQL_VERSION_INTRA_LAYER_PARALLELISM = "2.14.0"; + export interface CodeQLDefaultVersionInfo { cliVersion: string; tagName: string; @@ -44,8 +49,10 @@ export interface FeatureEnablement { */ export enum Feature { CliConfigFileEnabled = "cli_config_file_enabled", + CodeqlJavaLombokEnabled = "codeql_java_lombok_enabled", DisableKotlinAnalysisEnabled = "disable_kotlin_analysis_enabled", DisablePythonDependencyInstallationEnabled = "disable_python_dependency_installation_enabled", + EvaluatorIntraLayerParallelismEnabled = "evaluator_intra_layer_parallelism_enabled", ExportDiagnosticsEnabled = "export_diagnostics_enabled", MlPoweredQueriesEnabled = "ml_powered_queries_enabled", NewAnalysisSummaryEnabled = "new_analysis_summary_enabled", @@ -58,6 +65,11 @@ export const featureConfig: Record< Feature, { envVar: string; minimumVersion: string | undefined; defaultValue: boolean } > = { + [Feature.CodeqlJavaLombokEnabled]: { + envVar: "CODEQL_JAVA_LOMBOK", + minimumVersion: "2.14.0", + defaultValue: false, + }, [Feature.DisableKotlinAnalysisEnabled]: { envVar: "CODEQL_DISABLE_KOTLIN_ANALYSIS", minimumVersion: undefined, @@ -68,6 +80,11 @@ export const featureConfig: Record< minimumVersion: "2.11.6", defaultValue: true, }, + [Feature.EvaluatorIntraLayerParallelismEnabled]: { + envVar: "CODEQL_EVALUATOR_INTRA_LAYER_PARALLELISM", + minimumVersion: CODEQL_VERSION_INTRA_LAYER_PARALLELISM, + defaultValue: false, + }, [Feature.ExportDiagnosticsEnabled]: { envVar: "CODEQL_ACTION_EXPORT_DIAGNOSTICS", minimumVersion: "2.12.4", diff --git a/src/init-action.ts b/src/init-action.ts index 03ae582a07..df34e3de2e 100644 --- a/src/init-action.ts +++ b/src/init-action.ts @@ -342,6 +342,22 @@ async function run() { core.exportVariable("CODEQL_EXTRACTOR_JAVA_AGENT_DISABLE_KOTLIN", "true"); } + if (config.languages.includes(Language.java)) { + if (await features.getValue(Feature.CodeqlJavaLombokEnabled, codeql)) { + logger.info("Enabling CodeQL Java Lombok support"); + core.exportVariable( + "CODEQL_EXTRACTOR_JAVA_RUN_ANNOTATION_PROCESSORS", + "true", + ); + } else { + logger.info("Disabling CodeQL Java Lombok support"); + core.exportVariable( + "CODEQL_EXTRACTOR_JAVA_RUN_ANNOTATION_PROCESSORS", + "false", + ); + } + } + // Disable Python dependency extraction if feature flag set if ( await features.getValue( diff --git a/src/setup-codeql.ts b/src/setup-codeql.ts index c97d7ae2f8..216a81dcf9 100644 --- a/src/setup-codeql.ts +++ b/src/setup-codeql.ts @@ -4,6 +4,7 @@ import * as path from "path"; import { performance } from "perf_hooks"; import * as toolcache from "@actions/tool-cache"; +import del from "del"; import { default as deepEqual } from "fast-deep-equal"; import * as semver from "semver"; import { v4 as uuidV4 } from "uuid"; @@ -559,7 +560,7 @@ export async function downloadCodeQL( ); const toolsDownloadStart = performance.now(); - const codeqlPath = await toolcache.downloadTool( + const archivedBundlePath = await toolcache.downloadTool( codeqlURL, dest, authorization, @@ -569,9 +570,18 @@ export async function downloadCodeQL( performance.now() - toolsDownloadStart, ); - logger.debug(`CodeQL bundle download to ${codeqlPath} complete.`); + logger.debug( + `Finished downloading CodeQL bundle to ${archivedBundlePath} (${toolsDownloadDurationMs} ms).`, + ); - const codeqlExtracted = await toolcache.extractTar(codeqlPath); + logger.debug("Extracting CodeQL bundle."); + const extractionStart = performance.now(); + const extractedBundlePath = await toolcache.extractTar(archivedBundlePath); + const extractionMs = Math.round(performance.now() - extractionStart); + logger.debug( + `Finished extracting CodeQL bundle to ${extractedBundlePath} (${extractionMs} ms).`, + ); + await cleanUpGlob(archivedBundlePath, "CodeQL bundle archive", logger); const bundleVersion = maybeBundleVersion ?? tryGetBundleVersionFromUrl(codeqlURL, logger); @@ -583,7 +593,7 @@ export async function downloadCodeQL( ); return { toolsVersion: maybeCliVersion ?? "unknown", - codeqlFolder: codeqlExtracted, + codeqlFolder: extractedBundlePath, toolsDownloadDurationMs, }; } @@ -612,13 +622,26 @@ export async function downloadCodeQL( const toolcacheVersion = maybeCliVersion?.match(/^[0-9]+\.[0-9]+\.[0-9]+$/) ? `${maybeCliVersion}-${bundleVersion}` : convertToSemVer(bundleVersion, logger); + + logger.debug("Caching CodeQL bundle."); + const toolcachedBundlePath = await toolcache.cacheDir( + extractedBundlePath, + "CodeQL", + toolcacheVersion, + ); + + // Defensive check: we expect `cacheDir` to copy the bundle to a new location. + if (toolcachedBundlePath !== extractedBundlePath) { + await cleanUpGlob( + extractedBundlePath, + "CodeQL bundle from temporary directory", + logger, + ); + } + return { toolsVersion: maybeCliVersion ?? toolcacheVersion, - codeqlFolder: await toolcache.cacheDir( - codeqlExtracted, - "CodeQL", - toolcacheVersion, - ), + codeqlFolder: toolcachedBundlePath, toolsDownloadDurationMs, }; } @@ -702,3 +725,21 @@ export async function setupCodeQLBundle( } return { codeqlFolder, toolsDownloadDurationMs, toolsSource, toolsVersion }; } + +async function cleanUpGlob(glob: string, name: string, logger: Logger) { + logger.debug(`Cleaning up ${name}.`); + try { + const deletedPaths = await del(glob, { force: true }); + if (deletedPaths.length === 0) { + logger.warning( + `Failed to clean up ${name}: no files found matching ${glob}.`, + ); + } else if (deletedPaths.length === 1) { + logger.debug(`Cleaned up ${name}.`); + } else { + logger.debug(`Cleaned up ${name} (${deletedPaths.length} files).`); + } + } catch (e) { + logger.warning(`Failed to clean up ${name}: ${e}.`); + } +} diff --git a/src/upload-lib.ts b/src/upload-lib.ts index e06d4bc3d2..10c402f8de 100644 --- a/src/upload-lib.ts +++ b/src/upload-lib.ts @@ -15,7 +15,7 @@ import * as fingerprints from "./fingerprints"; import { Logger } from "./logging"; import { parseRepositoryNwo, RepositoryNwo } from "./repository"; import * as util from "./util"; -import { SarifFile, SarifResult, SarifRun, wrapError } from "./util"; +import { SarifFile, SarifResult, SarifRun, UserError, wrapError } from "./util"; // Takes a list of paths to sarif files and combines them together, // returning the contents of the combined sarif file. @@ -472,9 +472,10 @@ export async function waitForProcessing( } else if (status === "complete") { break; } else if (status === "failed") { - throw new Error( - `Code Scanning could not process the submitted SARIF file:\n${response.data.errors}`, - ); + const message = `Code Scanning could not process the submitted SARIF file:\n${response.data.errors}`; + throw shouldConsiderAsUserError(response.data.errors as string[]) + ? new UserError(message) + : new Error(message); } else { util.assertNever(status); } @@ -488,6 +489,17 @@ export async function waitForProcessing( } } +/** + * Returns whether the provided processing errors should be considered a user error. + */ +function shouldConsiderAsUserError(processingErrors: string[]): boolean { + return ( + processingErrors.length === 1 && + processingErrors[0] === + "CodeQL analyses from advanced configurations cannot be processed when the default setup is enabled" + ); +} + /** * Checks the processing result for an unsuccessful execution. Throws if the * result is not a failure with a single "unsuccessful execution" error. diff --git a/src/util.test.ts b/src/util.test.ts index c55c63a28c..bd2e13c734 100644 --- a/src/util.test.ts +++ b/src/util.test.ts @@ -53,14 +53,14 @@ const GET_MEMORY_FLAG_TESTS = [ totalMemoryMb: 64 * 1024, platform: "linux", expectedMemoryValue: 63 * 1024, - expectedMemoryValueWithScaling: 63078, // Math.floor(1024 * (64 - 1 - 0.025 * (64 - 8))) + expectedMemoryValueWithScaling: 61644, // Math.floor(1024 * (64 - 1 - 0.05 * (64 - 8))) }, { input: undefined, totalMemoryMb: 64 * 1024, platform: "win32", expectedMemoryValue: 62.5 * 1024, - expectedMemoryValueWithScaling: 62566, // Math.floor(1024 * (64 - 1.5 - 0.025 * (64 - 8))) + expectedMemoryValueWithScaling: 61132, // Math.floor(1024 * (64 - 1.5 - 0.05 * (64 - 8))) }, ]; diff --git a/src/util.ts b/src/util.ts index a7f7a87e28..9d35340a95 100644 --- a/src/util.ts +++ b/src/util.ts @@ -160,9 +160,9 @@ function getSystemReservedMemoryMegaBytes( const fixedAmount = 1024 * (platform === "win32" ? 1.5 : 1); if (isScalingReservedRamEnabled) { - // Reserve an additional 2.5% of the amount of memory above 8 GB, since the amount used by - // the kernel for page tables scales with the size of physical memory. - const scaledAmount = 0.025 * Math.max(totalMemoryMegaBytes - 8 * 1024, 0); + // Reserve an additional 5% of the amount of memory above 8 GB, since the amount used by the + // kernel for page tables scales with the size of physical memory. + const scaledAmount = 0.05 * Math.max(totalMemoryMegaBytes - 8 * 1024, 0); return fixedAmount + scaledAmount; } else { return fixedAmount;