diff --git a/.github/workflows/__all-platform-bundle.yml b/.github/workflows/__all-platform-bundle.yml index cf8c70ea3b..d6fbb9d430 100644 --- a/.github/workflows/__all-platform-bundle.yml +++ b/.github/workflows/__all-platform-bundle.yml @@ -36,7 +36,7 @@ jobs: timeout-minutes: 45 runs-on: ${{ matrix.os }} steps: - - name: Setup Python on MacOS + - name: Setup Python on macOS uses: actions/setup-python@v5 if: runner.os == 'macOS' && matrix.version == 'stable-v2.14.6' with: diff --git a/.github/workflows/__analyze-ref-input.yml b/.github/workflows/__analyze-ref-input.yml index 831081b226..b54ddeadde 100644 --- a/.github/workflows/__analyze-ref-input.yml +++ b/.github/workflows/__analyze-ref-input.yml @@ -40,7 +40,7 @@ jobs: timeout-minutes: 45 runs-on: ${{ matrix.os }} steps: - - name: Setup Python on MacOS + - name: Setup Python on macOS uses: actions/setup-python@v5 if: runner.os == 'macOS' && matrix.version == 'stable-v2.14.6' with: diff --git a/.github/workflows/__autobuild-action.yml b/.github/workflows/__autobuild-action.yml index e1faca8580..118e29449e 100644 --- a/.github/workflows/__autobuild-action.yml +++ b/.github/workflows/__autobuild-action.yml @@ -40,7 +40,7 @@ jobs: timeout-minutes: 45 runs-on: ${{ matrix.os }} steps: - - name: Setup Python on MacOS + - name: Setup Python on macOS uses: actions/setup-python@v5 if: runner.os == 'macOS' && matrix.version == 'stable-v2.14.6' with: diff --git a/.github/workflows/__autobuild-direct-tracing-with-working-dir.yml b/.github/workflows/__autobuild-direct-tracing-with-working-dir.yml index 39a39741a0..f26cb36b44 100644 --- a/.github/workflows/__autobuild-direct-tracing-with-working-dir.yml +++ b/.github/workflows/__autobuild-direct-tracing-with-working-dir.yml @@ -42,7 +42,7 @@ jobs: timeout-minutes: 45 runs-on: ${{ matrix.os }} steps: - - name: Setup Python on MacOS + - name: Setup Python on macOS uses: actions/setup-python@v5 if: runner.os == 'macOS' && matrix.version == 'stable-v2.14.6' with: diff --git a/.github/workflows/__autobuild-direct-tracing.yml b/.github/workflows/__autobuild-direct-tracing.yml index 87f682dfcf..83c1976ebd 100644 --- a/.github/workflows/__autobuild-direct-tracing.yml +++ b/.github/workflows/__autobuild-direct-tracing.yml @@ -42,7 +42,7 @@ jobs: timeout-minutes: 45 runs-on: ${{ matrix.os }} steps: - - name: Setup Python on MacOS + - name: Setup Python on macOS uses: actions/setup-python@v5 if: runner.os == 'macOS' && matrix.version == 'stable-v2.14.6' with: diff --git a/.github/workflows/__build-mode-autobuild.yml b/.github/workflows/__build-mode-autobuild.yml index 757e97a2ce..362b78cfb4 100644 --- a/.github/workflows/__build-mode-autobuild.yml +++ b/.github/workflows/__build-mode-autobuild.yml @@ -36,7 +36,7 @@ jobs: timeout-minutes: 45 runs-on: ${{ matrix.os }} steps: - - name: Setup Python on MacOS + - name: Setup Python on macOS uses: actions/setup-python@v5 if: runner.os == 'macOS' && matrix.version == 'stable-v2.14.6' with: diff --git a/.github/workflows/__build-mode-manual.yml b/.github/workflows/__build-mode-manual.yml index 3e6f653a48..d846da36d8 100644 --- a/.github/workflows/__build-mode-manual.yml +++ b/.github/workflows/__build-mode-manual.yml @@ -36,7 +36,7 @@ jobs: timeout-minutes: 45 runs-on: ${{ matrix.os }} steps: - - name: Setup Python on MacOS + - name: Setup Python on macOS uses: actions/setup-python@v5 if: runner.os == 'macOS' && matrix.version == 'stable-v2.14.6' with: diff --git a/.github/workflows/__build-mode-none.yml b/.github/workflows/__build-mode-none.yml index f3f22b3269..80a7a90e73 100644 --- a/.github/workflows/__build-mode-none.yml +++ b/.github/workflows/__build-mode-none.yml @@ -38,7 +38,7 @@ jobs: timeout-minutes: 45 runs-on: ${{ matrix.os }} steps: - - name: Setup Python on MacOS + - name: Setup Python on macOS uses: actions/setup-python@v5 if: runner.os == 'macOS' && matrix.version == 'stable-v2.14.6' with: diff --git a/.github/workflows/__build-mode-rollback.yml b/.github/workflows/__build-mode-rollback.yml index a1a15c46eb..3e232144cc 100644 --- a/.github/workflows/__build-mode-rollback.yml +++ b/.github/workflows/__build-mode-rollback.yml @@ -36,7 +36,7 @@ jobs: timeout-minutes: 45 runs-on: ${{ matrix.os }} steps: - - name: Setup Python on MacOS + - name: Setup Python on macOS uses: actions/setup-python@v5 if: runner.os == 'macOS' && matrix.version == 'stable-v2.14.6' with: diff --git a/.github/workflows/__cleanup-db-cluster-dir.yml b/.github/workflows/__cleanup-db-cluster-dir.yml index 5f5471d3ec..2851f99f0e 100644 --- a/.github/workflows/__cleanup-db-cluster-dir.yml +++ b/.github/workflows/__cleanup-db-cluster-dir.yml @@ -36,7 +36,7 @@ jobs: timeout-minutes: 45 runs-on: ${{ matrix.os }} steps: - - name: Setup Python on MacOS + - name: Setup Python on macOS uses: actions/setup-python@v5 if: runner.os == 'macOS' && matrix.version == 'stable-v2.14.6' with: diff --git a/.github/workflows/__config-export.yml b/.github/workflows/__config-export.yml index fae866faf3..a6e73f78c1 100644 --- a/.github/workflows/__config-export.yml +++ b/.github/workflows/__config-export.yml @@ -46,7 +46,7 @@ jobs: timeout-minutes: 45 runs-on: ${{ matrix.os }} steps: - - name: Setup Python on MacOS + - name: Setup Python on macOS uses: actions/setup-python@v5 if: runner.os == 'macOS' && matrix.version == 'stable-v2.14.6' with: diff --git a/.github/workflows/__config-input.yml b/.github/workflows/__config-input.yml index b38ff3b2da..0337aeac8b 100644 --- a/.github/workflows/__config-input.yml +++ b/.github/workflows/__config-input.yml @@ -36,7 +36,7 @@ jobs: timeout-minutes: 45 runs-on: ${{ matrix.os }} steps: - - name: Setup Python on MacOS + - name: Setup Python on macOS uses: actions/setup-python@v5 if: runner.os == 'macOS' && matrix.version == 'stable-v2.14.6' with: diff --git a/.github/workflows/__cpp-deptrace-disabled.yml b/.github/workflows/__cpp-deptrace-disabled.yml index 2dc5bd4d47..d38f04063a 100644 --- a/.github/workflows/__cpp-deptrace-disabled.yml +++ b/.github/workflows/__cpp-deptrace-disabled.yml @@ -40,7 +40,7 @@ jobs: timeout-minutes: 45 runs-on: ${{ matrix.os }} steps: - - name: Setup Python on MacOS + - name: Setup Python on macOS uses: actions/setup-python@v5 if: runner.os == 'macOS' && matrix.version == 'stable-v2.14.6' with: diff --git a/.github/workflows/__cpp-deptrace-enabled-on-macos.yml b/.github/workflows/__cpp-deptrace-enabled-on-macos.yml index fe7e1b5658..544fe2ab22 100644 --- a/.github/workflows/__cpp-deptrace-enabled-on-macos.yml +++ b/.github/workflows/__cpp-deptrace-enabled-on-macos.yml @@ -36,7 +36,7 @@ jobs: timeout-minutes: 45 runs-on: ${{ matrix.os }} steps: - - name: Setup Python on MacOS + - name: Setup Python on macOS uses: actions/setup-python@v5 if: runner.os == 'macOS' && matrix.version == 'stable-v2.14.6' with: diff --git a/.github/workflows/__cpp-deptrace-enabled.yml b/.github/workflows/__cpp-deptrace-enabled.yml index 72b63c17f0..3e93548d54 100644 --- a/.github/workflows/__cpp-deptrace-enabled.yml +++ b/.github/workflows/__cpp-deptrace-enabled.yml @@ -40,7 +40,7 @@ jobs: timeout-minutes: 45 runs-on: ${{ matrix.os }} steps: - - name: Setup Python on MacOS + - name: Setup Python on macOS uses: actions/setup-python@v5 if: runner.os == 'macOS' && matrix.version == 'stable-v2.14.6' with: diff --git a/.github/workflows/__diagnostics-export.yml b/.github/workflows/__diagnostics-export.yml index a8981f6245..f7132bd4ba 100644 --- a/.github/workflows/__diagnostics-export.yml +++ b/.github/workflows/__diagnostics-export.yml @@ -46,7 +46,7 @@ jobs: timeout-minutes: 45 runs-on: ${{ matrix.os }} steps: - - name: Setup Python on MacOS + - name: Setup Python on macOS uses: actions/setup-python@v5 if: runner.os == 'macOS' && matrix.version == 'stable-v2.14.6' with: diff --git a/.github/workflows/__export-file-baseline-information.yml b/.github/workflows/__export-file-baseline-information.yml index d6635becc6..a7f7cf4c82 100644 --- a/.github/workflows/__export-file-baseline-information.yml +++ b/.github/workflows/__export-file-baseline-information.yml @@ -40,7 +40,7 @@ jobs: timeout-minutes: 45 runs-on: ${{ matrix.os }} steps: - - name: Setup Python on MacOS + - name: Setup Python on macOS uses: actions/setup-python@v5 if: runner.os == 'macOS' && matrix.version == 'stable-v2.14.6' with: diff --git a/.github/workflows/__extractor-ram-threads.yml b/.github/workflows/__extractor-ram-threads.yml index 9245f8f6b1..46d46ec8cf 100644 --- a/.github/workflows/__extractor-ram-threads.yml +++ b/.github/workflows/__extractor-ram-threads.yml @@ -36,7 +36,7 @@ jobs: timeout-minutes: 45 runs-on: ${{ matrix.os }} steps: - - name: Setup Python on MacOS + - name: Setup Python on macOS uses: actions/setup-python@v5 if: runner.os == 'macOS' && matrix.version == 'stable-v2.14.6' with: diff --git a/.github/workflows/__go-custom-queries.yml b/.github/workflows/__go-custom-queries.yml index 01a0bc914b..f921835d06 100644 --- a/.github/workflows/__go-custom-queries.yml +++ b/.github/workflows/__go-custom-queries.yml @@ -38,7 +38,7 @@ jobs: timeout-minutes: 45 runs-on: ${{ matrix.os }} steps: - - name: Setup Python on MacOS + - name: Setup Python on macOS uses: actions/setup-python@v5 if: runner.os == 'macOS' && matrix.version == 'stable-v2.14.6' with: diff --git a/.github/workflows/__go-indirect-tracing-workaround-diagnostic.yml b/.github/workflows/__go-indirect-tracing-workaround-diagnostic.yml index f2222c8cdc..1726950ad6 100644 --- a/.github/workflows/__go-indirect-tracing-workaround-diagnostic.yml +++ b/.github/workflows/__go-indirect-tracing-workaround-diagnostic.yml @@ -36,7 +36,7 @@ jobs: timeout-minutes: 45 runs-on: ${{ matrix.os }} steps: - - name: Setup Python on MacOS + - name: Setup Python on macOS uses: actions/setup-python@v5 if: runner.os == 'macOS' && matrix.version == 'stable-v2.14.6' with: diff --git a/.github/workflows/__go-indirect-tracing-workaround-no-file-program.yml b/.github/workflows/__go-indirect-tracing-workaround-no-file-program.yml index 1731890fc9..a1d1aa24d1 100644 --- a/.github/workflows/__go-indirect-tracing-workaround-no-file-program.yml +++ b/.github/workflows/__go-indirect-tracing-workaround-no-file-program.yml @@ -36,7 +36,7 @@ jobs: timeout-minutes: 45 runs-on: ${{ matrix.os }} steps: - - name: Setup Python on MacOS + - name: Setup Python on macOS uses: actions/setup-python@v5 if: runner.os == 'macOS' && matrix.version == 'stable-v2.14.6' with: diff --git a/.github/workflows/__go-indirect-tracing-workaround.yml b/.github/workflows/__go-indirect-tracing-workaround.yml index 60730af255..9f7e06e59e 100644 --- a/.github/workflows/__go-indirect-tracing-workaround.yml +++ b/.github/workflows/__go-indirect-tracing-workaround.yml @@ -36,7 +36,7 @@ jobs: timeout-minutes: 45 runs-on: ${{ matrix.os }} steps: - - name: Setup Python on MacOS + - name: Setup Python on macOS uses: actions/setup-python@v5 if: runner.os == 'macOS' && matrix.version == 'stable-v2.14.6' with: diff --git a/.github/workflows/__go-tracing-autobuilder.yml b/.github/workflows/__go-tracing-autobuilder.yml index 91d1b5db11..252490356b 100644 --- a/.github/workflows/__go-tracing-autobuilder.yml +++ b/.github/workflows/__go-tracing-autobuilder.yml @@ -66,7 +66,7 @@ jobs: timeout-minutes: 45 runs-on: ${{ matrix.os }} steps: - - name: Setup Python on MacOS + - name: Setup Python on macOS uses: actions/setup-python@v5 if: runner.os == 'macOS' && matrix.version == 'stable-v2.14.6' with: diff --git a/.github/workflows/__go-tracing-custom-build-steps.yml b/.github/workflows/__go-tracing-custom-build-steps.yml index fff3e7eec6..2ba4314296 100644 --- a/.github/workflows/__go-tracing-custom-build-steps.yml +++ b/.github/workflows/__go-tracing-custom-build-steps.yml @@ -66,7 +66,7 @@ jobs: timeout-minutes: 45 runs-on: ${{ matrix.os }} steps: - - name: Setup Python on MacOS + - name: Setup Python on macOS uses: actions/setup-python@v5 if: runner.os == 'macOS' && matrix.version == 'stable-v2.14.6' with: diff --git a/.github/workflows/__go-tracing-legacy-workflow.yml b/.github/workflows/__go-tracing-legacy-workflow.yml index 6d35809ded..c4707c1b7b 100644 --- a/.github/workflows/__go-tracing-legacy-workflow.yml +++ b/.github/workflows/__go-tracing-legacy-workflow.yml @@ -66,7 +66,7 @@ jobs: timeout-minutes: 45 runs-on: ${{ matrix.os }} steps: - - name: Setup Python on MacOS + - name: Setup Python on macOS uses: actions/setup-python@v5 if: runner.os == 'macOS' && matrix.version == 'stable-v2.14.6' with: diff --git a/.github/workflows/__init-with-registries.yml b/.github/workflows/__init-with-registries.yml index 2a4bdf78bf..776215bf30 100644 --- a/.github/workflows/__init-with-registries.yml +++ b/.github/workflows/__init-with-registries.yml @@ -53,7 +53,7 @@ jobs: timeout-minutes: 45 runs-on: ${{ matrix.os }} steps: - - name: Setup Python on MacOS + - name: Setup Python on macOS uses: actions/setup-python@v5 if: runner.os == 'macOS' && matrix.version == 'stable-v2.14.6' with: diff --git a/.github/workflows/__javascript-source-root.yml b/.github/workflows/__javascript-source-root.yml index 45d316a1af..31cdaa85c0 100644 --- a/.github/workflows/__javascript-source-root.yml +++ b/.github/workflows/__javascript-source-root.yml @@ -40,7 +40,7 @@ jobs: timeout-minutes: 45 runs-on: ${{ matrix.os }} steps: - - name: Setup Python on MacOS + - name: Setup Python on macOS uses: actions/setup-python@v5 if: runner.os == 'macOS' && matrix.version == 'stable-v2.14.6' with: diff --git a/.github/workflows/__job-run-uuid-sarif.yml b/.github/workflows/__job-run-uuid-sarif.yml index 2c7f2da226..f8a0a6b2e4 100644 --- a/.github/workflows/__job-run-uuid-sarif.yml +++ b/.github/workflows/__job-run-uuid-sarif.yml @@ -36,7 +36,7 @@ jobs: timeout-minutes: 45 runs-on: ${{ matrix.os }} steps: - - name: Setup Python on MacOS + - name: Setup Python on macOS uses: actions/setup-python@v5 if: runner.os == 'macOS' && matrix.version == 'stable-v2.14.6' with: diff --git a/.github/workflows/__language-aliases.yml b/.github/workflows/__language-aliases.yml index febf4e0f45..8d25a4d112 100644 --- a/.github/workflows/__language-aliases.yml +++ b/.github/workflows/__language-aliases.yml @@ -36,7 +36,7 @@ jobs: timeout-minutes: 45 runs-on: ${{ matrix.os }} steps: - - name: Setup Python on MacOS + - name: Setup Python on macOS uses: actions/setup-python@v5 if: runner.os == 'macOS' && matrix.version == 'stable-v2.14.6' with: diff --git a/.github/workflows/__multi-language-autodetect.yml b/.github/workflows/__multi-language-autodetect.yml index 11370f5c8f..f7df487ac2 100644 --- a/.github/workflows/__multi-language-autodetect.yml +++ b/.github/workflows/__multi-language-autodetect.yml @@ -66,7 +66,7 @@ jobs: timeout-minutes: 45 runs-on: ${{ matrix.os }} steps: - - name: Setup Python on MacOS + - name: Setup Python on macOS uses: actions/setup-python@v5 if: runner.os == 'macOS' && matrix.version == 'stable-v2.14.6' with: @@ -146,7 +146,7 @@ jobs: exit 1 fi - - name: Check language autodetect for Swift on MacOS + - name: Check language autodetect for Swift on macOS if: runner.os == 'macOS' shell: bash run: | diff --git a/.github/workflows/__packaging-codescanning-config-inputs-js.yml b/.github/workflows/__packaging-codescanning-config-inputs-js.yml index b961f56e81..3d56a2aa01 100644 --- a/.github/workflows/__packaging-codescanning-config-inputs-js.yml +++ b/.github/workflows/__packaging-codescanning-config-inputs-js.yml @@ -52,7 +52,7 @@ jobs: timeout-minutes: 45 runs-on: ${{ matrix.os }} steps: - - name: Setup Python on MacOS + - name: Setup Python on macOS uses: actions/setup-python@v5 if: runner.os == 'macOS' && matrix.version == 'stable-v2.14.6' with: @@ -84,7 +84,7 @@ jobs: uses: ./../action/.github/actions/check-sarif with: sarif-file: ${{ runner.temp }}/results/javascript.sarif - queries-run: + queries-run: javascript/example/empty-or-one-block,javascript/example/empty-or-one-block,javascript/example/other-query-block,javascript/example/two-block queries-not-run: foo,bar diff --git a/.github/workflows/__packaging-config-inputs-js.yml b/.github/workflows/__packaging-config-inputs-js.yml index 769a169f8b..4f26e89a03 100644 --- a/.github/workflows/__packaging-config-inputs-js.yml +++ b/.github/workflows/__packaging-config-inputs-js.yml @@ -52,7 +52,7 @@ jobs: timeout-minutes: 45 runs-on: ${{ matrix.os }} steps: - - name: Setup Python on MacOS + - name: Setup Python on macOS uses: actions/setup-python@v5 if: runner.os == 'macOS' && matrix.version == 'stable-v2.14.6' with: @@ -84,7 +84,7 @@ jobs: uses: ./../action/.github/actions/check-sarif with: sarif-file: ${{ runner.temp }}/results/javascript.sarif - queries-run: + queries-run: javascript/example/empty-or-one-block,javascript/example/empty-or-one-block,javascript/example/other-query-block,javascript/example/two-block queries-not-run: foo,bar diff --git a/.github/workflows/__packaging-config-js.yml b/.github/workflows/__packaging-config-js.yml index 4cfcb4ca12..a1a9ba0c92 100644 --- a/.github/workflows/__packaging-config-js.yml +++ b/.github/workflows/__packaging-config-js.yml @@ -52,7 +52,7 @@ jobs: timeout-minutes: 45 runs-on: ${{ matrix.os }} steps: - - name: Setup Python on MacOS + - name: Setup Python on macOS uses: actions/setup-python@v5 if: runner.os == 'macOS' && matrix.version == 'stable-v2.14.6' with: @@ -83,7 +83,7 @@ jobs: uses: ./../action/.github/actions/check-sarif with: sarif-file: ${{ runner.temp }}/results/javascript.sarif - queries-run: + queries-run: javascript/example/empty-or-one-block,javascript/example/empty-or-one-block,javascript/example/other-query-block,javascript/example/two-block queries-not-run: foo,bar diff --git a/.github/workflows/__packaging-inputs-js.yml b/.github/workflows/__packaging-inputs-js.yml index 0944989bb6..5efe2351ba 100644 --- a/.github/workflows/__packaging-inputs-js.yml +++ b/.github/workflows/__packaging-inputs-js.yml @@ -52,7 +52,7 @@ jobs: timeout-minutes: 45 runs-on: ${{ matrix.os }} steps: - - name: Setup Python on MacOS + - name: Setup Python on macOS uses: actions/setup-python@v5 if: runner.os == 'macOS' && matrix.version == 'stable-v2.14.6' with: @@ -83,7 +83,7 @@ jobs: uses: ./../action/.github/actions/check-sarif with: sarif-file: ${{ runner.temp }}/results/javascript.sarif - queries-run: + queries-run: javascript/example/empty-or-one-block,javascript/example/empty-or-one-block,javascript/example/other-query-block,javascript/example/two-block queries-not-run: foo,bar diff --git a/.github/workflows/__remote-config.yml b/.github/workflows/__remote-config.yml index 2d7f3207ab..3bf2562299 100644 --- a/.github/workflows/__remote-config.yml +++ b/.github/workflows/__remote-config.yml @@ -38,7 +38,7 @@ jobs: timeout-minutes: 45 runs-on: ${{ matrix.os }} steps: - - name: Setup Python on MacOS + - name: Setup Python on macOS uses: actions/setup-python@v5 if: runner.os == 'macOS' && matrix.version == 'stable-v2.14.6' with: diff --git a/.github/workflows/__resolve-environment-action.yml b/.github/workflows/__resolve-environment-action.yml index e5896948cb..105534d6df 100644 --- a/.github/workflows/__resolve-environment-action.yml +++ b/.github/workflows/__resolve-environment-action.yml @@ -52,7 +52,7 @@ jobs: timeout-minutes: 45 runs-on: ${{ matrix.os }} steps: - - name: Setup Python on MacOS + - name: Setup Python on macOS uses: actions/setup-python@v5 if: runner.os == 'macOS' && matrix.version == 'stable-v2.14.6' with: @@ -88,7 +88,7 @@ jobs: language: javascript-typescript - name: Fail if JavaScript/TypeScript configuration present - if: + if: fromJSON(steps.resolve-environment-js.outputs.environment).configuration.javascript run: exit 1 env: diff --git a/.github/workflows/__rubocop-multi-language.yml b/.github/workflows/__rubocop-multi-language.yml index 9e86023621..bc0eae2e50 100644 --- a/.github/workflows/__rubocop-multi-language.yml +++ b/.github/workflows/__rubocop-multi-language.yml @@ -36,7 +36,7 @@ jobs: timeout-minutes: 45 runs-on: ${{ matrix.os }} steps: - - name: Setup Python on MacOS + - name: Setup Python on macOS uses: actions/setup-python@v5 if: runner.os == 'macOS' && matrix.version == 'stable-v2.14.6' with: diff --git a/.github/workflows/__ruby.yml b/.github/workflows/__ruby.yml index 2473d4ed1a..46a12ecac0 100644 --- a/.github/workflows/__ruby.yml +++ b/.github/workflows/__ruby.yml @@ -46,7 +46,7 @@ jobs: timeout-minutes: 45 runs-on: ${{ matrix.os }} steps: - - name: Setup Python on MacOS + - name: Setup Python on macOS uses: actions/setup-python@v5 if: runner.os == 'macOS' && matrix.version == 'stable-v2.14.6' with: diff --git a/.github/workflows/__split-workflow.yml b/.github/workflows/__split-workflow.yml index 12d03c3d89..aaad2a9149 100644 --- a/.github/workflows/__split-workflow.yml +++ b/.github/workflows/__split-workflow.yml @@ -46,7 +46,7 @@ jobs: timeout-minutes: 45 runs-on: ${{ matrix.os }} steps: - - name: Setup Python on MacOS + - name: Setup Python on macOS uses: actions/setup-python@v5 if: runner.os == 'macOS' && matrix.version == 'stable-v2.14.6' with: diff --git a/.github/workflows/__submit-sarif-failure.yml b/.github/workflows/__submit-sarif-failure.yml index 33ed3cdae3..00f56224da 100644 --- a/.github/workflows/__submit-sarif-failure.yml +++ b/.github/workflows/__submit-sarif-failure.yml @@ -40,7 +40,7 @@ jobs: timeout-minutes: 45 runs-on: ${{ matrix.os }} steps: - - name: Setup Python on MacOS + - name: Setup Python on macOS uses: actions/setup-python@v5 if: runner.os == 'macOS' && matrix.version == 'stable-v2.14.6' with: diff --git a/.github/workflows/__swift-autobuild.yml b/.github/workflows/__swift-autobuild.yml index a29940ae32..3c178424dd 100644 --- a/.github/workflows/__swift-autobuild.yml +++ b/.github/workflows/__swift-autobuild.yml @@ -36,7 +36,7 @@ jobs: timeout-minutes: 45 runs-on: ${{ matrix.os }} steps: - - name: Setup Python on MacOS + - name: Setup Python on macOS uses: actions/setup-python@v5 if: runner.os == 'macOS' && matrix.version == 'stable-v2.14.6' with: diff --git a/.github/workflows/__swift-custom-build.yml b/.github/workflows/__swift-custom-build.yml index 997c581c74..a4a7a8062c 100644 --- a/.github/workflows/__swift-custom-build.yml +++ b/.github/workflows/__swift-custom-build.yml @@ -40,7 +40,7 @@ jobs: timeout-minutes: 45 runs-on: ${{ matrix.os }} steps: - - name: Setup Python on MacOS + - name: Setup Python on macOS uses: actions/setup-python@v5 if: runner.os == 'macOS' && matrix.version == 'stable-v2.14.6' with: diff --git a/.github/workflows/__test-autobuild-working-dir.yml b/.github/workflows/__test-autobuild-working-dir.yml index 137ca450a4..4904677e0e 100644 --- a/.github/workflows/__test-autobuild-working-dir.yml +++ b/.github/workflows/__test-autobuild-working-dir.yml @@ -36,7 +36,7 @@ jobs: timeout-minutes: 45 runs-on: ${{ matrix.os }} steps: - - name: Setup Python on MacOS + - name: Setup Python on macOS uses: actions/setup-python@v5 if: runner.os == 'macOS' && matrix.version == 'stable-v2.14.6' with: diff --git a/.github/workflows/__test-local-codeql.yml b/.github/workflows/__test-local-codeql.yml index ee8623a5f6..a79d6e9f72 100644 --- a/.github/workflows/__test-local-codeql.yml +++ b/.github/workflows/__test-local-codeql.yml @@ -36,7 +36,7 @@ jobs: timeout-minutes: 45 runs-on: ${{ matrix.os }} steps: - - name: Setup Python on MacOS + - name: Setup Python on macOS uses: actions/setup-python@v5 if: runner.os == 'macOS' && matrix.version == 'stable-v2.14.6' with: diff --git a/.github/workflows/__test-proxy.yml b/.github/workflows/__test-proxy.yml index 9ba8d42229..322a66055a 100644 --- a/.github/workflows/__test-proxy.yml +++ b/.github/workflows/__test-proxy.yml @@ -36,7 +36,7 @@ jobs: timeout-minutes: 45 runs-on: ${{ matrix.os }} steps: - - name: Setup Python on MacOS + - name: Setup Python on macOS uses: actions/setup-python@v5 if: runner.os == 'macOS' && matrix.version == 'stable-v2.14.6' with: diff --git a/.github/workflows/__unset-environment.yml b/.github/workflows/__unset-environment.yml index b5d3d6869c..7ae11bd1e8 100644 --- a/.github/workflows/__unset-environment.yml +++ b/.github/workflows/__unset-environment.yml @@ -38,7 +38,7 @@ jobs: timeout-minutes: 45 runs-on: ${{ matrix.os }} steps: - - name: Setup Python on MacOS + - name: Setup Python on macOS uses: actions/setup-python@v5 if: runner.os == 'macOS' && matrix.version == 'stable-v2.14.6' with: diff --git a/.github/workflows/__upload-ref-sha-input.yml b/.github/workflows/__upload-ref-sha-input.yml index 3effa2d7fa..e956b81651 100644 --- a/.github/workflows/__upload-ref-sha-input.yml +++ b/.github/workflows/__upload-ref-sha-input.yml @@ -40,7 +40,7 @@ jobs: timeout-minutes: 45 runs-on: ${{ matrix.os }} steps: - - name: Setup Python on MacOS + - name: Setup Python on macOS uses: actions/setup-python@v5 if: runner.os == 'macOS' && matrix.version == 'stable-v2.14.6' with: diff --git a/.github/workflows/__with-checkout-path.yml b/.github/workflows/__with-checkout-path.yml index f2699df484..82b1d910c6 100644 --- a/.github/workflows/__with-checkout-path.yml +++ b/.github/workflows/__with-checkout-path.yml @@ -40,7 +40,7 @@ jobs: timeout-minutes: 45 runs-on: ${{ matrix.os }} steps: - - name: Setup Python on MacOS + - name: Setup Python on macOS uses: actions/setup-python@v5 if: runner.os == 'macOS' && matrix.version == 'stable-v2.14.6' with: diff --git a/.github/workflows/__zstd-bundle-fallback.yml b/.github/workflows/__zstd-bundle-fallback.yml deleted file mode 100644 index 188d806992..0000000000 --- a/.github/workflows/__zstd-bundle-fallback.yml +++ /dev/null @@ -1,123 +0,0 @@ -# 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 - Zstandard bundle fallback -env: - GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} - GO111MODULE: auto -on: - push: - branches: - - main - - releases/v* - pull_request: - types: - - opened - - synchronize - - reopened - - ready_for_review - schedule: - - cron: '0 5 * * *' - workflow_dispatch: {} -jobs: - zstd-bundle-fallback: - strategy: - fail-fast: false - matrix: - include: - - os: macos-latest - version: linked - - os: ubuntu-latest - version: linked - name: Zstandard bundle fallback - permissions: - contents: read - security-events: write - timeout-minutes: 45 - runs-on: ${{ matrix.os }} - steps: - - name: Setup Python on MacOS - uses: actions/setup-python@v5 - if: runner.os == 'macOS' && matrix.version == 'stable-v2.14.6' - with: - python-version: '3.11' - - name: Check out repository - uses: actions/checkout@v4 - - name: Prepare test - id: prepare-test - uses: ./.github/actions/prepare-test - with: - version: ${{ matrix.version }} - use-all-platform-bundle: 'false' - setup-kotlin: 'true' - - name: Remove CodeQL from toolcache - uses: actions/github-script@v7 - with: - script: | - const fs = require('fs'); - const path = require('path'); - const codeqlPath = path.join(process.env['RUNNER_TOOL_CACHE'], 'CodeQL'); - fs.rmdirSync(codeqlPath, { recursive: true }); - - id: init - uses: ./../action/init - with: - languages: javascript - tools: ${{ steps.prepare-test.outputs.tools-url }} - - uses: ./../action/analyze - with: - output: ${{ runner.temp }}/results - upload-database: false - - name: Upload SARIF - uses: actions/upload-artifact@v3 - with: - name: zstd-bundle.sarif - path: ${{ runner.temp }}/results/javascript.sarif - retention-days: 7 - - name: Check expected diagnostics - uses: actions/github-script@v7 - env: - SARIF_PATH: ${{ runner.temp }}/results/javascript.sarif - with: - script: | - const fs = require('fs'); - - const sarif = JSON.parse(fs.readFileSync(process.env['SARIF_PATH'], 'utf8')); - const run = sarif.runs[0]; - - const toolExecutionNotifications = run.invocations[0].toolExecutionNotifications; - const downloadTelemetryNotifications = toolExecutionNotifications.filter(n => - n.descriptor.id === 'codeql-action/bundle-download-telemetry' - ); - if (downloadTelemetryNotifications.length !== 1) { - core.setFailed( - 'Expected exactly one reporting descriptor in the ' + - `'runs[].invocations[].toolExecutionNotifications[]' SARIF property, but found ` + - `${downloadTelemetryNotifications.length}. All notification reporting descriptors: ` + - `${JSON.stringify(toolExecutionNotifications)}.` - ); - } - - const toolsUrl = downloadTelemetryNotifications[0].properties.attributes.toolsUrl; - console.log(`Found tools URL: ${toolsUrl}`); - - if (!toolsUrl.endsWith('.tar.gz')) { - core.setFailed( - `Expected the tools URL to be a .tar.gz file, but found '${toolsUrl}'.` - ); - } - - const zstdFailureReason = downloadTelemetryNotifications[0].properties.attributes.zstdFailureReason; - console.log(`Found zstd failure reason: ${zstdFailureReason}`); - - const expectedZstdFailureReason = 'Failing since CODEQL_ACTION_FORCE_ZSTD_FAILURE is true.'; - if (zstdFailureReason !== expectedZstdFailureReason) { - core.setFailed( - `Expected the zstd failure reason to be '${expectedZstdFailureReason}', but found '${zstdFailureReason}'.` - ); - } - env: - CODEQL_ACTION_ZSTD_BUNDLE: true - CODEQL_ACTION_FORCE_ZSTD_FAILURE: true - CODEQL_ACTION_TEST_MODE: true diff --git a/.github/workflows/__zstd-bundle-streaming.yml b/.github/workflows/__zstd-bundle-streaming.yml index 8e3d8adeac..6328bbeef3 100644 --- a/.github/workflows/__zstd-bundle-streaming.yml +++ b/.github/workflows/__zstd-bundle-streaming.yml @@ -38,7 +38,7 @@ jobs: timeout-minutes: 45 runs-on: ${{ matrix.os }} steps: - - name: Setup Python on MacOS + - name: Setup Python on macOS uses: actions/setup-python@v5 if: runner.os == 'macOS' && matrix.version == 'stable-v2.14.6' with: @@ -59,7 +59,9 @@ jobs: const fs = require('fs'); const path = require('path'); const codeqlPath = path.join(process.env['RUNNER_TOOL_CACHE'], 'CodeQL'); - fs.rmdirSync(codeqlPath, { recursive: true }); + if (codeqlPath !== undefined) { + fs.rmdirSync(codeqlPath, { recursive: true }); + } - id: init uses: ./../action/init with: diff --git a/.github/workflows/__zstd-bundle.yml b/.github/workflows/__zstd-bundle.yml index 757aeadb1c..9f30368559 100644 --- a/.github/workflows/__zstd-bundle.yml +++ b/.github/workflows/__zstd-bundle.yml @@ -40,7 +40,7 @@ jobs: timeout-minutes: 45 runs-on: ${{ matrix.os }} steps: - - name: Setup Python on MacOS + - name: Setup Python on macOS uses: actions/setup-python@v5 if: runner.os == 'macOS' && matrix.version == 'stable-v2.14.6' with: @@ -61,7 +61,9 @@ jobs: const fs = require('fs'); const path = require('path'); const codeqlPath = path.join(process.env['RUNNER_TOOL_CACHE'], 'CodeQL'); - fs.rmdirSync(codeqlPath, { recursive: true }); + if (codeqlPath !== undefined) { + fs.rmdirSync(codeqlPath, { recursive: true }); + } - id: init uses: ./../action/init with: diff --git a/.github/workflows/debug-artifacts-failure.yml b/.github/workflows/debug-artifacts-failure.yml index bcc38d28aa..e6cddb0a87 100644 --- a/.github/workflows/debug-artifacts-failure.yml +++ b/.github/workflows/debug-artifacts-failure.yml @@ -50,7 +50,7 @@ jobs: run: ./build.sh - uses: ./../action/analyze id: analysis - env: + env: # Forces a failure in this step. CODEQL_ACTION_EXTRA_OPTIONS: '{ "database": { "finalize": ["--invalid-option"] } }' with: diff --git a/.github/workflows/debug-artifacts-legacy.yml b/.github/workflows/debug-artifacts-legacy.yml index 2f024964b5..3ea3074bf6 100644 --- a/.github/workflows/debug-artifacts-legacy.yml +++ b/.github/workflows/debug-artifacts-legacy.yml @@ -56,7 +56,7 @@ jobs: debug-artifact-name: my-debug-artifacts debug-database-name: my-db # We manually exclude Swift from the languages list here, as it is not supported on Ubuntu - languages: cpp,csharp,go,java,javascript,python,ruby + languages: cpp,csharp,go,java,javascript,python,ruby - name: Build code shell: bash run: ./build.sh diff --git a/.github/workflows/debug-artifacts.yml b/.github/workflows/debug-artifacts.yml index cd38ea506a..cfdf8e40d5 100644 --- a/.github/workflows/debug-artifacts.yml +++ b/.github/workflows/debug-artifacts.yml @@ -55,7 +55,7 @@ jobs: debug-artifact-name: my-debug-artifacts debug-database-name: my-db # We manually exclude Swift from the languages list here, as it is not supported on Ubuntu - languages: cpp,csharp,go,java,javascript,python,ruby + languages: cpp,csharp,go,java,javascript,python,ruby - name: Build code shell: bash run: ./build.sh diff --git a/.github/workflows/expected-queries-runs.yml b/.github/workflows/expected-queries-runs.yml index f83d0711e1..e76c8920d8 100644 --- a/.github/workflows/expected-queries-runs.yml +++ b/.github/workflows/expected-queries-runs.yml @@ -22,6 +22,9 @@ jobs: CODEQL_ACTION_TEST_MODE: true timeout-minutes: 45 runs-on: ubuntu-latest + permissions: + contents: read + security-events: write steps: - name: Check out repository uses: actions/checkout@v4 diff --git a/.github/workflows/publish-immutable-action.yml b/.github/workflows/publish-immutable-action.yml new file mode 100644 index 0000000000..df867187c9 --- /dev/null +++ b/.github/workflows/publish-immutable-action.yml @@ -0,0 +1,35 @@ +name: 'Publish Immutable Action Version' + +on: + release: + types: [published] + +jobs: + publish: + runs-on: ubuntu-latest + permissions: + contents: read + id-token: write + packages: write + + steps: + - name: Check release name + id: check + env: + RELEASE_NAME: ${{ github.event.release.name }} + run: | + echo "Release name: ${{ github.event.release.name }}" + if [[ $RELEASE_NAME == v* ]]; then + echo "This is a CodeQL Action release. Create an Immutable Action" + echo "is-action-release=true" >> $GITHUB_OUTPUT + else + echo "This is a CodeQL Bundle release. Do not create an Immutable Action" + echo "is-action-release=false" >> $GITHUB_OUTPUT + fi + - name: Checking out + if: steps.check.outputs.is-action-release == 'true' + uses: actions/checkout@v4 + - name: Publish + if: steps.check.outputs.is-action-release == 'true' + id: publish + uses: actions/publish-immutable-action@v0.0.4 diff --git a/.github/workflows/script/check-js.sh b/.github/workflows/script/check-js.sh index 3c9b758127..f8f5d19d08 100755 --- a/.github/workflows/script/check-js.sh +++ b/.github/workflows/script/check-js.sh @@ -7,7 +7,7 @@ if [ ! -z "$(git status --porcelain)" ]; then >&2 echo "Failed: Repo should be clean before testing!" exit 1 fi -# Wipe the lib directory incase there are extra unnecessary files in there +# Wipe the lib directory in case there are extra unnecessary files in there rm -rf lib # Generate the JavaScript files npm run-script build diff --git a/CHANGELOG.md b/CHANGELOG.md index 56ef8a7a04..8f68346096 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -4,6 +4,11 @@ See the [releases page](https://github.com/github/codeql-action/releases) for th Note that the only difference between `v2` and `v3` of the CodeQL Action is the node version they support, with `v3` running on node 20 while we continue to release `v2` to support running on node 16. For example `3.22.11` was the first `v3` release and is functionally identical to `2.22.11`. This approach ensures an easy way to track exactly which features are included in different versions, indicated by the minor and patch version numbers. +## 3.27.1 - 08 Nov 2024 + +- The CodeQL Action now downloads bundles compressed using Zstandard on GitHub Enterprise Server when using Linux or macOS runners. This speeds up the installation of the CodeQL tools. This feature is already available to GitHub.com users. [#2573](https://github.com/github/codeql-action/pull/2573) +- Update default CodeQL bundle version to 2.19.3. [#2576](https://github.com/github/codeql-action/pull/2576) + ## 3.27.0 - 22 Oct 2024 - Bump the minimum CodeQL bundle version to 2.14.6. [#2549](https://github.com/github/codeql-action/pull/2549) @@ -53,12 +58,12 @@ No user facing changes. ## 3.26.5 - 23 Aug 2024 -- Fix an issue where the `csrutil` system call used for telemetry would fail on MacOS ARM machines with System Integrity Protection disabled. [#2441](https://github.com/github/codeql-action/pull/2441) +- Fix an issue where the `csrutil` system call used for telemetry would fail on macOS ARM machines with System Integrity Protection disabled. [#2441](https://github.com/github/codeql-action/pull/2441) ## 3.26.4 - 21 Aug 2024 - _Deprecation:_ The `add-snippets` input on the `analyze` Action is deprecated and will be removed in the first release in August 2025. [#2436](https://github.com/github/codeql-action/pull/2436) -- Fix an issue where the disk usage system call used for telemetry would fail on MacOS ARM machines with System Integrity Protection disabled, and then surface a warning. The system call is now disabled for these machines. [#2434](https://github.com/github/codeql-action/pull/2434) +- Fix an issue where the disk usage system call used for telemetry would fail on macOS ARM machines with System Integrity Protection disabled, and then surface a warning. The system call is now disabled for these machines. [#2434](https://github.com/github/codeql-action/pull/2434) ## 3.26.3 - 19 Aug 2024 @@ -136,7 +141,7 @@ No user facing changes. ## 3.25.3 - 25 Apr 2024 - Update default CodeQL bundle version to 2.17.1. [#2247](https://github.com/github/codeql-action/pull/2247) -- Workflows running on `macos-latest` using CodeQL CLI versions before v2.15.1 will need to either upgrade their CLI version to v2.15.1 or newer, or change the platform to an Intel MacOS runner, such as `macos-12`. ARM machines with SIP disabled, including the newest `macos-latest` image, are unsupported for CLI versions before 2.15.1. [#2261](https://github.com/github/codeql-action/pull/2261) +- Workflows running on `macos-latest` using CodeQL CLI versions before v2.15.1 will need to either upgrade their CLI version to v2.15.1 or newer, or change the platform to an Intel macOS runner, such as `macos-12`. ARM machines with SIP disabled, including the newest `macos-latest` image, are unsupported for CLI versions before 2.15.1. [#2261](https://github.com/github/codeql-action/pull/2261) ## 3.25.2 - 22 Apr 2024 diff --git a/action.yml b/action.yml new file mode 100644 index 0000000000..87c4974ea9 --- /dev/null +++ b/action.yml @@ -0,0 +1,11 @@ +name: 'CodeQL: Stub' +description: "Stub: Don't use this action directly. Read [the documentation](https://docs.github.com/en/code-security/code-scanning/introduction-to-code-scanning/about-code-scanning-with-codeql) instead." +author: 'GitHub' +runs: + using: 'composite' + steps: + - name: 'Stub' + run: | + echo 'This is a stub. Read [the documentation](https://docs.github.com/en/code-security/code-scanning/introduction-to-code-scanning/about-code-scanning-with-codeql) instead.' + exit 1 + shell: bash diff --git a/init/action.yml b/init/action.yml index 3299ac99e4..c33e8a61eb 100644 --- a/init/action.yml +++ b/init/action.yml @@ -136,6 +136,10 @@ inputs: description: >- Explicitly enable or disable TRAP caching rather than respecting the feature flag for it. required: false + dependency-caching: + description: >- + Explicitly enable or disable caching of project build dependencies. + required: false outputs: codeql-path: description: The path of the CodeQL binary used for analysis diff --git a/lib/actions-util.js b/lib/actions-util.js index 468e52de9d..359fb1d981 100644 --- a/lib/actions-util.js +++ b/lib/actions-util.js @@ -23,7 +23,7 @@ var __importStar = (this && this.__importStar) || function (mod) { return result; }; Object.defineProperty(exports, "__esModule", { value: true }); -exports.restoreInputs = exports.persistInputs = exports.CommandInvocationError = exports.getFileType = exports.FileCmdNotFoundError = exports.determineBaseBranchHeadCommitOid = exports.getCommitOid = exports.getOptionalInput = exports.getRequiredInput = void 0; +exports.restoreInputs = exports.persistInputs = exports.CommandInvocationError = exports.getFileType = exports.FileCmdNotFoundError = exports.decodeGitFilePath = exports.getGitDiffHunkHeaders = exports.getAllGitMergeBases = exports.gitFetch = exports.deepenGitHistory = exports.determineBaseBranchHeadCommitOid = exports.getCommitOid = exports.getOptionalInput = exports.getRequiredInput = void 0; exports.getTemporaryDirectory = getTemporaryDirectory; exports.getRef = getRef; exports.getActionVersion = getActionVersion; @@ -37,6 +37,7 @@ exports.getUploadValue = getUploadValue; exports.getWorkflowRunID = getWorkflowRunID; exports.getWorkflowRunAttempt = getWorkflowRunAttempt; exports.isSelfHostedRunner = isSelfHostedRunner; +exports.isDefaultSetup = isDefaultSetup; exports.prettyPrintInvocation = prettyPrintInvocation; exports.ensureEndsInPeriod = ensureEndsInPeriod; exports.runTool = runTool; @@ -82,6 +83,7 @@ function getTemporaryDirectory() { async function runGitCommand(checkoutPath, args, customErrorMessage) { let stdout = ""; let stderr = ""; + core.debug(`Running git command: git ${args.join(" ")}`); try { await new toolrunner.ToolRunner(await safeWhich.safeWhich("git"), args, { silent: true, @@ -170,6 +172,136 @@ const determineBaseBranchHeadCommitOid = async function (checkoutPathOverride) { } }; exports.determineBaseBranchHeadCommitOid = determineBaseBranchHeadCommitOid; +/** + * Deepen the git history of the given ref by one level. Errors are logged. + * + * This function uses the `checkout_path` to determine the repository path and + * works only when called from `analyze` or `upload-sarif`. + */ +const deepenGitHistory = async function () { + try { + await runGitCommand((0, exports.getOptionalInput)("checkout_path"), ["fetch", "--no-tags", "--deepen=1"], "Cannot deepen the shallow repository."); + } + catch { + // Errors are already logged by runGitCommand() + } +}; +exports.deepenGitHistory = deepenGitHistory; +/** + * Fetch the given remote branch. Errors are logged. + * + * This function uses the `checkout_path` to determine the repository path and + * works only when called from `analyze` or `upload-sarif`. + */ +const gitFetch = async function (branch, extraFlags) { + try { + await runGitCommand((0, exports.getOptionalInput)("checkout_path"), ["fetch", "--no-tags", ...extraFlags, "origin", `${branch}:${branch}`], `Cannot fetch ${branch}.`); + } + catch { + // Errors are already logged by runGitCommand() + } +}; +exports.gitFetch = gitFetch; +/** + * Compute the all merge bases between the given refs. Returns an empty array + * if no merge base is found, or if there is an error. + * + * This function uses the `checkout_path` to determine the repository path and + * works only when called from `analyze` or `upload-sarif`. + */ +const getAllGitMergeBases = async function (refs) { + try { + const stdout = await runGitCommand((0, exports.getOptionalInput)("checkout_path"), ["merge-base", "--all", ...refs], `Cannot get merge base of ${refs}.`); + return stdout.trim().split("\n"); + } + catch { + return []; + } +}; +exports.getAllGitMergeBases = getAllGitMergeBases; +/** + * Compute the diff hunk headers between the two given refs. + * + * This function uses the `checkout_path` to determine the repository path and + * works only when called from `analyze` or `upload-sarif`. + * + * @returns an array of diff hunk headers (one element per line), or undefined + * if the action was not triggered by a pull request, or if the diff could not + * be determined. + */ +const getGitDiffHunkHeaders = async function (fromRef, toRef) { + let stdout = ""; + try { + stdout = await runGitCommand((0, exports.getOptionalInput)("checkout_path"), [ + "-c", + "core.quotePath=false", + "diff", + "--no-renames", + "--irreversible-delete", + "-U0", + fromRef, + toRef, + ], `Cannot get diff from ${fromRef} to ${toRef}.`); + } + catch { + return undefined; + } + const headers = []; + for (const line of stdout.split("\n")) { + if (line.startsWith("--- ") || + line.startsWith("+++ ") || + line.startsWith("@@ ")) { + headers.push(line); + } + } + return headers; +}; +exports.getGitDiffHunkHeaders = getGitDiffHunkHeaders; +/** + * Decode, if necessary, a file path produced by Git. See + * https://git-scm.com/docs/git-config#Documentation/git-config.txt-corequotePath + * for details on how Git encodes file paths with special characters. + * + * This function works only for Git output with `core.quotePath=false`. + */ +const decodeGitFilePath = function (filePath) { + if (filePath.startsWith('"') && filePath.endsWith('"')) { + filePath = filePath.substring(1, filePath.length - 1); + return filePath.replace(/\\([abfnrtv\\"]|[0-7]{1,3})/g, (_match, seq) => { + switch (seq[0]) { + case "a": + return "\x07"; + case "b": + return "\b"; + case "f": + return "\f"; + case "n": + return "\n"; + case "r": + return "\r"; + case "t": + return "\t"; + case "v": + return "\v"; + case "\\": + return "\\"; + case '"': + return '"'; + default: + // Both String.fromCharCode() and String.fromCodePoint() works only + // for constructing an entire character at once. If a Unicode + // character is encoded as a sequence of escaped bytes, calling these + // methods sequentially on the individual byte values would *not* + // produce the original multi-byte Unicode character. As a result, + // this implementation works only with the Git option core.quotePath + // set to false. + return String.fromCharCode(parseInt(seq, 8)); + } + }); + } + return filePath; +}; +exports.decodeGitFilePath = decodeGitFilePath; /** * Get the ref currently being analyzed. */ @@ -425,6 +557,10 @@ exports.getFileType = getFileType; function isSelfHostedRunner() { return process.env.RUNNER_ENVIRONMENT === "self-hosted"; } +/** Determines whether we are running in default setup. */ +function isDefaultSetup() { + return getWorkflowEventName() === "dynamic"; +} function prettyPrintInvocation(cmd, args) { return [cmd, ...args].map((x) => (x.includes(" ") ? `'${x}'` : x)).join(" "); } diff --git a/lib/actions-util.js.map b/lib/actions-util.js.map index d6b5fc1976..c60d8ed474 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":";;;;;;;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AAC;KAChE,CAAC,CAAC,IAAI,EAAE,CAAC;IACV,IAAI,QAAQ,KAAK,CAAC,EAAE,CAAC;QACnB,MAAM,IAAI,sBAAsB,CAAC,GAAG,EAAE,IAAI,EAAE,QAAQ,EAAE,MAAM,EAAE,MAAM,CAAC,CAAC;IACxE,CAAC;IACD,OAAO,MAAM,CAAC;AAChB,CAAC;AAED,MAAM,kBAAkB,GAAG,kBAAkB,CAAC;AAE9C;;;;GAIG;AACI,MAAM,aAAa,GAAG;IAC3B,MAAM,yBAAyB,GAAG,MAAM,CAAC,OAAO,CAAC,OAAO,CAAC,GAAG,CAAC,CAAC,MAAM,CAClE,CAAC,CAAC,IAAI,CAAC,EAAE,EAAE,CAAC,IAAI,CAAC,UAAU,CAAC,QAAQ,CAAC,CACtC,CAAC;IACF,IAAI,CAAC,SAAS,CAAC,kBAAkB,EAAE,IAAI,CAAC,SAAS,CAAC,yBAAyB,CAAC,CAAC,CAAC;AAChF,CAAC,CAAC;AALW,QAAA,aAAa,iBAKxB;AAEF;;GAEG;AACI,MAAM,aAAa,GAAG;IAC3B,MAAM,eAAe,GAAG,IAAI,CAAC,QAAQ,CAAC,kBAAkB,CAAC,CAAC;IAC1D,IAAI,eAAe,EAAE,CAAC;QACpB,KAAK,MAAM,CAAC,IAAI,EAAE,KAAK,CAAC,IAAI,IAAI,CAAC,KAAK,CAAC,eAAe,CAAC,EAAE,CAAC;YACxD,OAAO,CAAC,GAAG,CAAC,IAAI,CAAC,GAAG,KAAK,CAAC;QAC5B,CAAC;IACH,CAAC;AACH,CAAC,CAAC;AAPW,QAAA,aAAa,iBAOxB"} \ No newline at end of file diff --git a/lib/actions-util.test.js b/lib/actions-util.test.js index 84b55e8376..3f263d7399 100644 --- a/lib/actions-util.test.js +++ b/lib/actions-util.test.js @@ -246,4 +246,34 @@ const util_1 = require("./util"); t.assert(!infoStub.firstCall.args[0].endsWith("The checkout path provided to the action does not appear to be a git repository.")); infoStub.restore(); }); +(0, ava_1.default)("decodeGitFilePath unquoted strings", async (t) => { + t.deepEqual(actionsUtil.decodeGitFilePath("foo"), "foo"); + t.deepEqual(actionsUtil.decodeGitFilePath("foo bar"), "foo bar"); + t.deepEqual(actionsUtil.decodeGitFilePath("foo\\\\bar"), "foo\\\\bar"); + t.deepEqual(actionsUtil.decodeGitFilePath('foo\\"bar'), 'foo\\"bar'); + t.deepEqual(actionsUtil.decodeGitFilePath("foo\\001bar"), "foo\\001bar"); + t.deepEqual(actionsUtil.decodeGitFilePath("foo\\abar"), "foo\\abar"); + t.deepEqual(actionsUtil.decodeGitFilePath("foo\\bbar"), "foo\\bbar"); + t.deepEqual(actionsUtil.decodeGitFilePath("foo\\fbar"), "foo\\fbar"); + t.deepEqual(actionsUtil.decodeGitFilePath("foo\\nbar"), "foo\\nbar"); + t.deepEqual(actionsUtil.decodeGitFilePath("foo\\rbar"), "foo\\rbar"); + t.deepEqual(actionsUtil.decodeGitFilePath("foo\\tbar"), "foo\\tbar"); + t.deepEqual(actionsUtil.decodeGitFilePath("foo\\vbar"), "foo\\vbar"); + t.deepEqual(actionsUtil.decodeGitFilePath("\\a\\b\\f\\n\\r\\t\\v"), "\\a\\b\\f\\n\\r\\t\\v"); +}); +(0, ava_1.default)("decodeGitFilePath quoted strings", async (t) => { + t.deepEqual(actionsUtil.decodeGitFilePath('"foo"'), "foo"); + t.deepEqual(actionsUtil.decodeGitFilePath('"foo bar"'), "foo bar"); + t.deepEqual(actionsUtil.decodeGitFilePath('"foo\\\\bar"'), "foo\\bar"); + t.deepEqual(actionsUtil.decodeGitFilePath('"foo\\"bar"'), 'foo"bar'); + t.deepEqual(actionsUtil.decodeGitFilePath('"foo\\001bar"'), "foo\x01bar"); + t.deepEqual(actionsUtil.decodeGitFilePath('"foo\\abar"'), "foo\x07bar"); + t.deepEqual(actionsUtil.decodeGitFilePath('"foo\\bbar"'), "foo\bbar"); + t.deepEqual(actionsUtil.decodeGitFilePath('"foo\\fbar"'), "foo\fbar"); + t.deepEqual(actionsUtil.decodeGitFilePath('"foo\\nbar"'), "foo\nbar"); + t.deepEqual(actionsUtil.decodeGitFilePath('"foo\\rbar"'), "foo\rbar"); + t.deepEqual(actionsUtil.decodeGitFilePath('"foo\\tbar"'), "foo\tbar"); + t.deepEqual(actionsUtil.decodeGitFilePath('"foo\\vbar"'), "foo\vbar"); + t.deepEqual(actionsUtil.decodeGitFilePath('"\\a\\b\\f\\n\\r\\t\\v"'), "\x07\b\f\n\r\t\v"); +}); //# sourceMappingURL=actions-util.test.js.map \ No newline at end of file diff --git a/lib/actions-util.test.js.map b/lib/actions-util.test.js.map index 4042ce0e23..df83db5344 100644 --- a/lib/actions-util.test.js.map +++ b/lib/actions-util.test.js.map @@ -1 +1 @@ -{"version":3,"file":"actions-util.test.js","sourceRoot":"","sources":["../src/actions-util.test.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;AAAA,uCAAyB;AACzB,2CAA6B;AAE7B,oDAAsC;AACtC,8CAAuB;AACvB,6CAA+B;AAE/B,4DAA8C;AAC9C,6CAAmD;AACnD,+CAAuC;AACvC,mDAA+D;AAC/D,iCAA2D;AAE3D,IAAA,0BAAU,EAAC,aAAI,CAAC,CAAC;AAEjB,IAAA,aAAI,EAAC,qCAAqC,EAAE,KAAK,EAAE,CAAC,EAAE,EAAE;IACtD,OAAO,CAAC,GAAG,CAAC,YAAY,CAAC,GAAG,EAAE,CAAC;IAC/B,MAAM,CAAC,CAAC,WAAW,CAAC,WAAW,CAAC,MAAM,CAAC,CAAC;AAC1C,CAAC,CAAC,CAAC;AAEH,IAAA,aAAI,EAAC,+DAA+D,EAAE,KAAK,EAAE,CAAC,EAAE,EAAE;IAChF,MAAM,IAAA,iBAAU,EAAC,KAAK,EAAE,MAAc,EAAE,EAAE;QACxC,IAAA,gCAAgB,EAAC,MAAM,EAAE,MAAM,CAAC,CAAC;QACjC,MAAM,WAAW,GAAG,mBAAmB,CAAC;QACxC,MAAM,UAAU,GAAG,GAAG,CAAC,MAAM,C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AAC,MAAM,CACN,QAAQ,CAAC,SAAS,CAAC,IAAI,CAAC,CAAC,CAAC,CAAC,UAAU,CACnC,4EAA4E,CAC7E,CACF,CAAC;IACF,CAAC,CAAC,MAAM,CACN,CAAC,QAAQ,CAAC,SAAS,CAAC,IAAI,CAAC,CAAC,CAAC,CAAC,QAAQ,CAClC,kFAAkF,CACnF,CACF,CAAC;IAEF,QAAQ,CAAC,OAAO,EAAE,CAAC;AACrB,CAAC,CAAC,CAAC"} \ No newline at end of file +{"version":3,"file":"actions-util.test.js","sourceRoot":"","sources":["../src/actions-util.test.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;AAAA,uCAAyB;AACzB,2CAA6B;AAE7B,oDAAsC;AACtC,8CAAuB;AACvB,6CAA+B;AAE/B,4DAA8C;AAC9C,6CAAmD;AACnD,+CAAuC;AACvC,mDAA+D;AAC/D,iCAA2D;AAE3D,IAAA,0BAAU,EAAC,aAAI,CAAC,CAAC;AAEjB,IAAA,aAAI,EAAC,qCAAqC,EAAE,KAAK,EAAE,CAAC,EAAE,EAAE;IACtD,OAAO,CAAC,GAAG,CAAC,YAAY,CAAC,GAAG,EAAE,CAAC;IAC/B,MAAM,CAAC,CAAC,WAAW,CAAC,WAAW,CAAC,MAAM,CAAC,CAAC;AAC1C,CAAC,CAAC,CAAC;AAEH,IAAA,aAAI,EAAC,+DAA+D,EAAE,KAAK,EAAE,CAAC,EAAE,EAAE;IAChF,MAAM,IAAA,iBAAU,EAAC,KAAK,EAAE,MAAc,EAAE,EAAE;QACxC,IAAA,gCAAgB,EAAC,MAAM,EAAE,MAAM,CAAC,CAAC;QACjC,MAAM,WAAW,GAAG,mBAAmB,CAAC;QACxC,MAAM,UAAU,GAAG,GAAG,CAAC,MAAM,CAAC,EAAE,CAAC,CAAC;QAClC,OAAO,CAAC,GAAG,CAAC,YAAY,CAAC,GAAG,WAAW,CAAC;QACxC,OAAO,CAAC,GAAG,CAAC,YAAY,CAAC,GAAG,UAA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tE,CAAC,CAAC,SAAS,CAAC,WAAW,CAAC,iBAAiB,CAAC,aAAa,CAAC,EAAE,UAAU,CAAC,CAAC;IACtE,CAAC,CAAC,SAAS,CAAC,WAAW,CAAC,iBAAiB,CAAC,aAAa,CAAC,EAAE,UAAU,CAAC,CAAC;IACtE,CAAC,CAAC,SAAS,CACT,WAAW,CAAC,iBAAiB,CAAC,yBAAyB,CAAC,EACxD,kBAAkB,CACnB,CAAC;AACJ,CAAC,CAAC,CAAC"} \ No newline at end of file diff --git a/lib/analyze-action.js b/lib/analyze-action.js index 1420ed3729..3efe6807b2 100644 --- a/lib/analyze-action.js +++ b/lib/analyze-action.js @@ -31,13 +31,16 @@ const fs = __importStar(require("fs")); const path_1 = __importDefault(require("path")); const perf_hooks_1 = require("perf_hooks"); const core = __importStar(require("@actions/core")); +const github = __importStar(require("@actions/github")); const actionsUtil = __importStar(require("./actions-util")); const analyze_1 = require("./analyze"); const api_client_1 = require("./api-client"); const autobuild_1 = require("./autobuild"); +const caching_utils_1 = require("./caching-utils"); const codeql_1 = require("./codeql"); const config_utils_1 = require("./config-utils"); const database_upload_1 = require("./database-upload"); +const dependency_caching_1 = require("./dependency-caching"); const environment_1 = require("./environment"); const feature_flags_1 = require("./feature-flags"); const languages_1 = require("./languages"); @@ -62,7 +65,7 @@ async function sendStatusReport(startedAt, config, stats, error, trapCacheUpload const trapCacheUploadStatusReport = { ...report, trap_cache_upload_duration_ms: Math.round(trapCacheUploadTime || 0), - trap_cache_upload_size_bytes: Math.round(await (0, trap_caching_1.getTotalCacheSize)(config.trapCaches, logger)), + trap_cache_upload_size_bytes: Math.round(await (0, caching_utils_1.getTotalCacheSize)(Object.values(config.trapCaches), logger)), }; await statusReport.sendStatusReport(trapCacheUploadStatusReport); } @@ -173,11 +176,14 @@ async function run() { util.checkActionVersion(actionsUtil.getActionVersion(), gitHubVersion); const features = new feature_flags_1.Features(gitHubVersion, repositoryNwo, actionsUtil.getTemporaryDirectory(), logger); const memory = util.getMemoryFlag(actionsUtil.getOptionalInput("ram") || process.env["CODEQL_RAM"], logger); + const pull_request = github.context.payload.pull_request; + const diffRangePackDir = pull_request && + (await (0, analyze_1.setupDiffInformedQueryRun)(pull_request.base.ref, pull_request.head.ref, codeql, logger, features)); await (0, analyze_1.warnIfGoInstalledAfterInit)(config, logger); await runAutobuildIfLegacyGoWorkflow(config, logger); dbCreationTimings = await (0, analyze_1.runFinalize)(outputDir, threads, memory, codeql, config, logger); if (actionsUtil.getRequiredInput("skip-queries") !== "true") { - runStats = await (0, analyze_1.runQueries)(outputDir, memory, util.getAddSnippetsFlag(actionsUtil.getRequiredInput("add-snippets")), threads, actionsUtil.getOptionalInput("category"), config, logger, features); + runStats = await (0, analyze_1.runQueries)(outputDir, memory, util.getAddSnippetsFlag(actionsUtil.getRequiredInput("add-snippets")), threads, diffRangePackDir, actionsUtil.getOptionalInput("category"), config, logger, features); } if (actionsUtil.getOptionalInput("cleanup-level") !== "none") { await (0, analyze_1.runCleanup)(config, actionsUtil.getOptionalInput("cleanup-level") || "brutal", logger); @@ -204,6 +210,10 @@ async function run() { trapCacheUploadTime = perf_hooks_1.performance.now() - trapCacheUploadStartTime; // Clean up TRAP caches trapCacheCleanupTelemetry = await (0, trap_caching_1.cleanupTrapCaches)(config, features, logger); + // Store dependency cache(s) if dependency caching is enabled. + if ((0, caching_utils_1.shouldStoreCache)(config.dependencyCachingEnabled)) { + await (0, dependency_caching_1.uploadDependencyCaches)(config, logger); + } // We don't upload results in test mode, so don't wait for processing if (util.isInTestMode()) { logger.debug("In test mode. Waiting for processing is disabled."); diff --git a/lib/analyze-action.js.map b/lib/analyze-action.js.map index ec46617c69..3835105760 100644 --- a/lib/analyze-action.js.map +++ b/lib/analyze-action.js.map @@ -1 +1 @@ -{"version":3,"file":"analyze-action.js","sourceRoot":"","sources":["../src/analyze-action.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAAA,uCAAyB;AACzB,gDAAwB;AACxB,2CAAy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,IAAI,YAAY,EAAE,CAAC;QAC7B,MAAM,gBAAgB,CACpB,SAAS,EACT,MAAM,EACN;YACE,GAAG,QAAQ;YACX,GAAG,YAAY,CAAC,YAAY;SAC7B,EACD,SAAS,EACT,mBAAmB,EACnB,iBAAiB,EACjB,mBAAmB,EACnB,yBAAyB,EACzB,MAAM,CACP,CAAC;IACJ,CAAC;SAAM,IAAI,QAAQ,EAAE,CAAC;QACpB,MAAM,gBAAgB,CACpB,SAAS,EACT,MAAM,EACN,EAAE,GAAG,QAAQ,EAAE,EACf,SAAS,EACT,mBAAmB,EACnB,iBAAiB,EACjB,mBAAmB,EACnB,yBAAyB,EACzB,MAAM,CACP,CAAC;IACJ,CAAC;SAAM,CAAC;QACN,MAAM,gBAAgB,CACpB,SAAS,EACT,MAAM,EACN,SAAS,EACT,SAAS,EACT,mBAAmB,EACnB,iBAAiB,EACjB,mBAAmB,EACnB,yBAAyB,EACzB,MAAM,CACP,CAAC;IACJ,CAAC;AACH,CAAC;AAEY,QAAA,UAAU,GAAG,GAAG,EAAE,CAAC;AAEhC,KAAK,UAAU,UAAU;IACvB,IAAI,CAAC;QACH,MAAM,kBAAU,CAAC;IACnB,CAAC;IAAC,OAAO,KAAK,EAAE,CAAC;QACf,IAAI,CAAC,SAAS,CAAC,0BAA0B,IAAI,CAAC,eAAe,CAAC,KAAK,CAAC,EAAE,CAAC,CAAC;IAC1E,CAAC;IACD,MAAM,IAAI,CAAC,eAAe,EAAE,CAAC;AAC/B,CAAC;AAED,KAAK,UAAU,EAAE,CAAC"} \ No newline at end of file +{"version":3,"file":"analyze-action.js","sourceRoot":"","sources":["../src/analyze-action.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAAA,uCAAyB;AACzB,gDAAwB;AACxB,2CAAyC;AAEzC,oDAAsC;AACtC,wDAA0C;AAE1C,4DAA8C;AAC9C,uCASmB;AACnB,6CAA+D;AAC/D,2CAA2C;AAC3C,mDAAsE;AACtE,qCAAqC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C,EAAE,CAAC,CAAC;IAC1E,CAAC;IACD,MAAM,IAAI,CAAC,eAAe,EAAE,CAAC;AAC/B,CAAC;AAED,KAAK,UAAU,EAAE,CAAC"} \ No newline at end of file diff --git a/lib/analyze.js b/lib/analyze.js index 988a9b25df..a047b1dbe8 100644 --- a/lib/analyze.js +++ b/lib/analyze.js @@ -29,6 +29,7 @@ Object.defineProperty(exports, "__esModule", { value: true }); exports.CodeQLAnalysisError = void 0; exports.runExtraction = runExtraction; exports.dbIsFinalized = dbIsFinalized; +exports.setupDiffInformedQueryRun = setupDiffInformedQueryRun; exports.runQueries = runQueries; exports.runFinalize = runFinalize; exports.warnIfGoInstalledAfterInit = warnIfGoInstalledAfterInit; @@ -39,12 +40,14 @@ const perf_hooks_1 = require("perf_hooks"); const safe_which_1 = require("@chrisgavin/safe-which"); const del_1 = __importDefault(require("del")); const yaml = __importStar(require("js-yaml")); +const actionsUtil = __importStar(require("./actions-util")); const autobuild_1 = require("./autobuild"); const codeql_1 = require("./codeql"); const diagnostics_1 = require("./diagnostics"); const environment_1 = require("./environment"); const feature_flags_1 = require("./feature-flags"); const languages_1 = require("./languages"); +const logging_1 = require("./logging"); const tools_features_1 = require("./tools-features"); const tracer_config_1 = require("./tracer-config"); const upload_lib_1 = require("./upload-lib"); @@ -134,11 +137,183 @@ async function finalizeDatabaseCreation(codeql, config, threadsFlag, memoryFlag, trap_import_duration_ms: Math.round(trapImportTime), }; } +/** + * Set up the diff-informed analysis feature. + * + * @param baseRef The base branch name, used for calculating the diff range. + * @param headRef The head branch name, used for calculating the diff range. + * @param codeql + * @param logger + * @param features + * @returns Absolute path to the directory containing the extension pack for + * the diff range information, or `undefined` if the feature is disabled. + */ +async function setupDiffInformedQueryRun(baseRef, headRef, codeql, logger, features) { + if (!(await features.getValue(feature_flags_1.Feature.DiffInformedQueries, codeql))) { + return undefined; + } + return await (0, logging_1.withGroup)("Generating diff range extension pack", async () => { + const diffRanges = await getPullRequestEditedDiffRanges(baseRef, headRef, logger); + return writeDiffRangeDataExtensionPack(logger, diffRanges); + }); +} +/** + * Return the file line ranges that were added or modified in the pull request. + * + * @param baseRef The base branch name, used for calculating the diff range. + * @param headRef The head branch name, used for calculating the diff range. + * @param logger + * @returns An array of tuples, where each tuple contains the absolute path of a + * file, the start line and the end line (both 1-based and inclusive) of an + * added or modified range in that file. Returns `undefined` if the action was + * not triggered by a pull request or if there was an error. + */ +async function getPullRequestEditedDiffRanges(baseRef, headRef, logger) { + const checkoutPath = actionsUtil.getOptionalInput("checkout_path"); + if (checkoutPath === undefined) { + return undefined; + } + // To compute the merge bases between the base branch and the PR topic branch, + // we need to fetch the commit graph from the branch heads to those merge + // babes. The following 4-step procedure does so while limiting the amount of + // history fetched. + // Step 1: Deepen from the PR merge commit to the base branch head and the PR + // topic branch head, so that the PR merge commit is no longer considered a + // grafted commit. + await actionsUtil.deepenGitHistory(); + // Step 2: Fetch the base branch shallow history. This step ensures that the + // base branch name is present in the local repository. Normally the base + // branch name would be added by Step 4. However, if the base branch head is + // an ancestor of the PR topic branch head, Step 4 would fail without doing + // anything, so we need to fetch the base branch explicitly. + await actionsUtil.gitFetch(baseRef, ["--depth=1"]); + // Step 3: Fetch the PR topic branch history, stopping when we reach commits + // that are reachable from the base branch head. + await actionsUtil.gitFetch(headRef, [`--shallow-exclude=${baseRef}`]); + // Step 4: Fetch the base branch history, stopping when we reach commits that + // are reachable from the PR topic branch head. + await actionsUtil.gitFetch(baseRef, [`--shallow-exclude=${headRef}`]); + // Step 5: Deepen the history so that we have the merge bases between the base + // branch and the PR topic branch. + await actionsUtil.deepenGitHistory(); + // To compute the exact same diff as GitHub would compute for the PR, we need + // to use the same merge base as GitHub. That is easy to do if there is only + // one merge base, which is by far the most common case. If there are multiple + // merge bases, we stop without producing a diff range. + const mergeBases = await actionsUtil.getAllGitMergeBases([baseRef, headRef]); + logger.info(`Merge bases: ${mergeBases.join(", ")}`); + if (mergeBases.length !== 1) { + logger.info("Cannot compute diff range because baseRef and headRef " + + `have ${mergeBases.length} merge bases (instead of exactly 1).`); + return undefined; + } + const diffHunkHeaders = await actionsUtil.getGitDiffHunkHeaders(mergeBases[0], headRef); + if (diffHunkHeaders === undefined) { + return undefined; + } + const results = new Array(); + let changedFile = ""; + for (const line of diffHunkHeaders) { + if (line.startsWith("+++ ")) { + const filePath = actionsUtil.decodeGitFilePath(line.substring(4)); + if (filePath.startsWith("b/")) { + // The file was edited: track all hunks in the file + changedFile = filePath.substring(2); + } + else if (filePath === "/dev/null") { + // The file was deleted: skip all hunks in the file + changedFile = ""; + } + else { + logger.warning(`Failed to parse diff hunk header line: ${line}`); + return undefined; + } + continue; + } + if (line.startsWith("@@ ")) { + if (changedFile === "") + continue; + const match = line.match(/^@@ -\d+(?:,\d+)? \+(\d+)(?:,(\d+))? @@/); + if (match === null) { + logger.warning(`Failed to parse diff hunk header line: ${line}`); + return undefined; + } + const startLine = parseInt(match[1], 10); + const numLines = parseInt(match[2], 10); + if (numLines === 0) { + // The hunk was a deletion: skip it + continue; + } + const endLine = startLine + (numLines || 1) - 1; + results.push({ + path: path.join(checkoutPath, changedFile), + startLine, + endLine, + }); + } + } + return results; +} +/** + * Create an extension pack in the temporary directory that contains the file + * line ranges that were added or modified in the pull request. + * + * @param logger + * @param ranges The file line ranges, as returned by + * `getPullRequestEditedDiffRanges`. + * @returns The absolute path of the directory containing the extension pack, or + * `undefined` if no extension pack was created. + */ +function writeDiffRangeDataExtensionPack(logger, ranges) { + if (ranges === undefined) { + return undefined; + } + const diffRangeDir = path.join(actionsUtil.getTemporaryDirectory(), "pr-diff-range"); + fs.mkdirSync(diffRangeDir); + fs.writeFileSync(path.join(diffRangeDir, "qlpack.yml"), ` +name: codeql-action/pr-diff-range +version: 0.0.0 +library: true +extensionTargets: + codeql/util: '*' +dataExtensions: + - pr-diff-range.yml +`); + const header = ` +extensions: + - addsTo: + pack: codeql/util + extensible: restrictAlertsTo + data: +`; + let data = ranges + .map((range) => ` - ["${range[0]}", ${range[1]}, ${range[2]}]\n`) + .join(""); + if (!data) { + // Ensure that the data extension is not empty, so that a pull request with + // no edited lines would exclude (instead of accepting) all alerts. + data = ' - ["", 0, 0]\n'; + } + const extensionContents = header + data; + const extensionFilePath = path.join(diffRangeDir, "pr-diff-range.yml"); + fs.writeFileSync(extensionFilePath, extensionContents); + logger.debug(`Wrote pr-diff-range extension pack to ${extensionFilePath}:\n${extensionContents}`); + return diffRangeDir; +} // Runs queries and creates sarif files in the given folder -async function runQueries(sarifFolder, memoryFlag, addSnippetsFlag, threadsFlag, automationDetailsId, config, logger, features) { +async function runQueries(sarifFolder, memoryFlag, addSnippetsFlag, threadsFlag, diffRangePackDir, automationDetailsId, config, logger, features) { const statusReport = {}; + const dataExtensionFlags = diffRangePackDir + ? [ + `--additional-packs=${diffRangePackDir}`, + "--extension-packs=codeql-action/pr-diff-range", + ] + : []; + const sarifRunPropertyFlag = diffRangePackDir + ? "--sarif-run-property=incrementalMode=diff-informed" + : undefined; const codeql = await (0, codeql_1.getCodeQL)(config.codeQLCmd); - const queryFlags = [memoryFlag, threadsFlag]; + const queryFlags = [memoryFlag, threadsFlag, ...dataExtensionFlags]; for (const language of config.languages) { try { const sarifFile = path.join(sarifFolder, `${language}.sarif`); @@ -192,7 +367,7 @@ async function runQueries(sarifFolder, memoryFlag, addSnippetsFlag, threadsFlag, return statusReport; async function runInterpretResults(language, queries, sarifFile, enableDebugLogging) { const databasePath = util.getCodeQLDatabasePath(config, language); - return await codeql.databaseInterpretResults(databasePath, queries, sarifFile, addSnippetsFlag, threadsFlag, enableDebugLogging ? "-vv" : "-v", automationDetailsId, config, features); + return await codeql.databaseInterpretResults(databasePath, queries, sarifFile, addSnippetsFlag, threadsFlag, enableDebugLogging ? "-vv" : "-v", sarifRunPropertyFlag, automationDetailsId, config, features); } /** Get an object with all queries and their counts parsed from a SARIF file path. */ function getPerQueryAlertCounts(sarifPath, log) { diff --git a/lib/analyze.js.map b/lib/analyze.js.map index 7ee76627a4..d2c6e36f83 100644 --- a/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,UAAU,UAAU,CAC9B,MAA0B,EAC1B,YAAoB,EACpB,MAAc;IAEd,MAAM,CAAC,UAAU,CAAC,uBAAuB,CAAC,CAAC;IAC3C,KAAK,MAAM,QAAQ,IAAI,MAAM,CAAC,SAAS,EAAE,CAAC;QACxC,MAAM,MAAM,GAAG,MAAM,IAAA,kBAAS,EAAC,MAAM,CAAC,SAAS,CAAC,CAAC;QACjD,MAAM,YAAY,GAAG,IAAI,CAAC,qBAAqB,CAAC,MAAM,EAAE,QAAQ,CAAC,CAAC;QAClE,MAAM,MAAM,CAAC,eAAe,CAAC,YAAY,EAAE,YAAY,CAAC,CAAC;IAC3D,CAAC;IACD,MAAM,CAAC,QAAQ,EAAE,CAAC;AACpB,CAAC"} \ No newline at end of file diff --git a/lib/analyze.test.js b/lib/analyze.test.js index c36fe00369..63ce445803 100644 --- a/lib/analyze.test.js +++ b/lib/analyze.test.js @@ -103,7 +103,7 @@ const util = __importStar(require("./util")); fs.mkdirSync(util.getCodeQLDatabasePath(config, language), { recursive: true, }); - const statusReport = await (0, analyze_1.runQueries)(tmpDir, memoryFlag, addSnippetsFlag, threadsFlag, undefined, config, (0, logging_1.getRunnerLogger)(true), (0, testing_utils_1.createFeatures)([feature_flags_1.Feature.QaTelemetryEnabled])); + const statusReport = await (0, analyze_1.runQueries)(tmpDir, memoryFlag, addSnippetsFlag, threadsFlag, undefined, undefined, config, (0, logging_1.getRunnerLogger)(true), (0, testing_utils_1.createFeatures)([feature_flags_1.Feature.QaTelemetryEnabled])); t.deepEqual(Object.keys(statusReport).sort(), [ `analyze_builtin_queries_${language}_duration_ms`, "event_reports", diff --git a/lib/analyze.test.js.map b/lib/analyze.test.js.map index 988b0e0d01..91bfa6715d 100644 --- a/lib/analyze.test.js.map +++ b/lib/analyze.test.js.map @@ -1 +1 @@ -{"version":3,"file":"analyze.test.js","sourceRoot":"","sources":["../src/analyze.test.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;AAAA,uCAAy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e;gBACf,qBAAqB,QAAQ,cAAc;aAC5C,CAAC,CAAC;YACH,KAAK,MAAM,WAAW,IAAI,YAAY,CAAC,aAAc,EAAE,CAAC;gBACtD,CAAC,CAAC,SAAS,CAAC,WAAW,CAAC,KAAK,EAAE,mCAAmC,CAAC,CAAC;gBACpE,CAAC,CAAC,IAAI,CAAC,YAAY,IAAI,WAAW,CAAC,CAAC;gBACpC,CAAC,CAAC,IAAI,CAAC,aAAa,IAAI,WAAW,CAAC,UAAW,CAAC,CAAC;YACnD,CAAC;QACH,CAAC;IACH,CAAC,CAAC,CAAC;AACL,CAAC,CAAC,CAAC"} \ No newline at end of file diff --git a/lib/caching-utils.js b/lib/caching-utils.js new file mode 100644 index 0000000000..cfe037bb3a --- /dev/null +++ b/lib/caching-utils.js @@ -0,0 +1,106 @@ +"use strict"; +var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) { + if (k2 === undefined) k2 = k; + var desc = Object.getOwnPropertyDescriptor(m, k); + if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) { + desc = { enumerable: true, get: function() { return m[k]; } }; + } + Object.defineProperty(o, k2, desc); +}) : (function(o, m, k, k2) { + if (k2 === undefined) k2 = k; + o[k2] = m[k]; +})); +var __setModuleDefault = (this && this.__setModuleDefault) || (Object.create ? (function(o, v) { + Object.defineProperty(o, "default", { enumerable: true, value: v }); +}) : function(o, v) { + o["default"] = v; +}); +var __importStar = (this && this.__importStar) || function (mod) { + if (mod && mod.__esModule) return mod; + var result = {}; + if (mod != null) for (var k in mod) if (k !== "default" && Object.prototype.hasOwnProperty.call(mod, k)) __createBinding(result, mod, k); + __setModuleDefault(result, mod); + return result; +}; +Object.defineProperty(exports, "__esModule", { value: true }); +exports.CachingKind = void 0; +exports.getTotalCacheSize = getTotalCacheSize; +exports.shouldStoreCache = shouldStoreCache; +exports.shouldRestoreCache = shouldRestoreCache; +exports.getCachingKind = getCachingKind; +exports.getDependencyCachingEnabled = getDependencyCachingEnabled; +const core = __importStar(require("@actions/core")); +const actions_util_1 = require("./actions-util"); +const environment_1 = require("./environment"); +const util_1 = require("./util"); +/** + * Returns the total size of all the specified paths. + * @param paths The paths for which to calculate the total size. + * @param logger A logger to record some informational messages to. + * @returns The total size of all specified paths. + */ +async function getTotalCacheSize(paths, logger) { + const sizes = await Promise.all(paths.map((cacheDir) => (0, util_1.tryGetFolderBytes)(cacheDir, logger))); + return sizes.map((a) => a || 0).reduce((a, b) => a + b, 0); +} +/* Enumerates caching modes. */ +var CachingKind; +(function (CachingKind) { + /** Do not restore or store any caches. */ + CachingKind["None"] = "none"; + /** Store caches, but do not restore any existing ones. */ + CachingKind["Store"] = "store"; + /** Restore existing caches, but do not store any new ones. */ + CachingKind["Restore"] = "restore"; + /** Restore existing caches, and store new ones. */ + CachingKind["Full"] = "full"; +})(CachingKind || (exports.CachingKind = CachingKind = {})); +/** Returns a value indicating whether new caches should be stored, based on `kind`. */ +function shouldStoreCache(kind) { + return kind === CachingKind.Full || kind === CachingKind.Store; +} +/** Returns a value indicating whether existing caches should be restored, based on `kind`. */ +function shouldRestoreCache(kind) { + return kind === CachingKind.Full || kind === CachingKind.Restore; +} +/** + * Parses the `upload` input into an `UploadKind`. + */ +function getCachingKind(input) { + switch (input) { + case undefined: + case "none": + case "off": + case "false": + return CachingKind.None; + case "full": + case "on": + case "true": + return CachingKind.Full; + case "store": + return CachingKind.Store; + case "restore": + return CachingKind.Restore; + default: + core.warning(`Unrecognized 'dependency-caching' input: ${input}. Defaulting to 'none'.`); + return CachingKind.None; + } +} +/** Determines whether dependency caching is enabled. */ +function getDependencyCachingEnabled() { + // If the workflow specified something always respect that + const dependencyCaching = (0, actions_util_1.getOptionalInput)("dependency-caching") || + process.env[environment_1.EnvVar.DEPENDENCY_CACHING]; + if (dependencyCaching !== undefined) + return getCachingKind(dependencyCaching); + // On self-hosted runners which may have dependencies installed centrally, disable caching by default + if (!(0, util_1.isHostedRunner)()) + return CachingKind.None; + // Disable in advanced workflows by default. + if (!(0, actions_util_1.isDefaultSetup)()) + return CachingKind.None; + // On hosted runners, disable dependency caching by default. + // TODO: Review later whether we can enable this by default. + return CachingKind.None; +} +//# sourceMappingURL=caching-utils.js.map \ No newline at end of file diff --git a/lib/caching-utils.js.map b/lib/caching-utils.js.map new file mode 100644 index 0000000000..9ed47b5057 --- /dev/null +++ b/lib/caching-utils.js.map @@ -0,0 +1 @@ +{"version":3,"file":"caching-utils.js","sourceRoot":"","sources":["../src/caching-utils.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;AAaA,8CAQC;AAeD,4CAEC;AAGD,gDAEC;AAKD,wCAqBC;AAGD,kEAgBC;AAxFD,oDAAsC;AAEtC,iDAAkE;AAClE,+CAAuC;AAEvC,iCAA2D;AAE3D;;;;;GAKG;AACI,KAAK,UAAU,iBAAiB,CACrC,KAAe,EACf,MAAc;IAEd,MAAM,KAAK,GAAG,MAAM,OAAO,CAAC,GAAG,CAC7B,KAAK,CAAC,GAAG,CAAC,CAAC,QAAQ,EAAE,EAAE,CAAC,IAAA,wBAAiB,EAAC,QAAQ,EAAE,MAAM,CAAC,CAAC,CAC7D,CAAC;IACF,OAAO,KAAK,CAAC,GAAG,CAAC,CAAC,CAAC,EAAE,EAAE,CAAC,CAAC,IAAI,CAAC,CAAC,CAAC,MAAM,CAAC,CAAC,CAAC,EAAE,CAAC,EAAE,EAAE,CAAC,CAAC,GAAG,CAAC,EAAE,CAAC,CAAC,CAAC;AAC7D,CAAC;AAED,+BAA+B;AAC/B,IAAY,WASX;AATD,WAAY,WAAW;IACrB,0CAA0C;IAC1C,4BAAa,CAAA;IACb,0DAA0D;IAC1D,8BAAe,CAAA;IACf,8DAA8D;IAC9D,kCAAmB,CAAA;IACnB,mDAAmD;IACnD,4BAAa,CAAA;AACf,CAAC,EATW,WAAW,2BAAX,WAAW,QAStB;AAED,uFAAuF;AACvF,SAAgB,gBAAgB,CAAC,IAAiB;IAChD,OAAO,IAAI,KAAK,WAAW,C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AC,IAAI,CAAC;AAC1B,CAAC"} \ No newline at end of file diff --git a/lib/codeql.js b/lib/codeql.js index 5848c6c2e7..a884f41c46 100644 --- a/lib/codeql.js +++ b/lib/codeql.js @@ -114,9 +114,9 @@ const CODEQL_VERSION_CACHE_CLEANUP = "2.17.1"; * version requirement. Must be set to true outside tests. * @returns a { CodeQL, toolsVersion } object. */ -async function setupCodeQL(toolsInput, apiDetails, tempDir, variant, defaultCliVersion, features, logger, checkVersion) { +async function setupCodeQL(toolsInput, apiDetails, tempDir, variant, defaultCliVersion, logger, checkVersion) { try { - const { codeqlFolder, toolsDownloadStatusReport, toolsSource, toolsVersion, zstdAvailability, } = await setupCodeql.setupCodeQLBundle(toolsInput, apiDetails, tempDir, variant, defaultCliVersion, features, logger); + const { codeqlFolder, toolsDownloadStatusReport, toolsSource, toolsVersion, zstdAvailability, } = await setupCodeql.setupCodeQLBundle(toolsInput, apiDetails, tempDir, variant, defaultCliVersion, logger); logger.debug(`Bundle download status report: ${JSON.stringify(toolsDownloadStatusReport)}`); let codeqlCmd = path.join(codeqlFolder, "codeql", "codeql"); if (process.platform === "win32") { @@ -460,7 +460,7 @@ async function getCodeQLForCmd(cmd, checkVersion) { } await runCli(cmd, codeqlArgs); }, - async databaseInterpretResults(databasePath, querySuitePaths, sarifFile, addSnippetsFlag, threadsFlag, verbosityFlag, automationDetailsId, config, features) { + async databaseInterpretResults(databasePath, querySuitePaths, sarifFile, addSnippetsFlag, threadsFlag, verbosityFlag, sarifRunPropertyFlag, automationDetailsId, config, features) { const shouldExportDiagnostics = await features.getValue(feature_flags_1.Feature.ExportDiagnosticsEnabled, this); const codeqlArgs = [ "database", @@ -479,6 +479,9 @@ async function getCodeQLForCmd(cmd, checkVersion) { ...(await getJobRunUuidSarifOptions(this)), ...getExtraOptionsFromEnv(["database", "interpret-results"]), ]; + if (sarifRunPropertyFlag !== undefined) { + codeqlArgs.push(sarifRunPropertyFlag); + } if (automationDetailsId !== undefined) { codeqlArgs.push("--sarif-category", automationDetailsId); } diff --git a/lib/codeql.js.map b/lib/codeql.js.map index 549e43f4cb..f0348e20e7 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":";;;;;;;;;;;;;;;;;;;;;;;;;;AAkVA,kCA6DC;AAKD,8BAKC;AAyBD,8BAyDC;AAQD,0CAMC;AAOD,kDAIC;AAUD,0CAgmBC;AAqDD,0CAeC;AAsFD,8EASC;AAED,4FAYC;AAOD,gFAEC;AAxyCD,uCAAyB;AACzB,2CAA6B;AAE7B,oDAAsC;AACtC,yEAA2D;AAC3D,8CAAgC;AAChC,+CAAiC;AAEjC,iDAMwB;AAExB,6CAAmE;AAEnE,uCAAmC;AACnC,+CAAuC;AACvC,mDAKyB;AAGzB,4DAA8C;AAG9C,qDAAyE;AACzE,mDAA8D;AAC9D,6CAA+B;AAC/B,iCAAiE;AAqOjE;;;GAGG;AACH,IAAI,YAAY,GAAuB,SAAS,CAAC;AAEjD;;;;;;;GAOG;AACH,MAAM,sBAAsB,GAAG,QAAQ,CAAC;AAExC;;GAEG;AACH,MAAM,2BAA2B,GAAG,QAAQ,CAAC;AAE7C;;GAEG;AACH,MAAM,qCAAqC,GAAG,MAAM,CAAC;AAErD;;GAEG;AACH,MAAM,iCAAiC,GAAG,YAAY,CAAC;AAEvD,mEAAmE;AACnE,MAAM,+BAA+B,GAAG,YAAY,CAAC;AAErD;;;;;;GAMG;AAEH;;GAEG;AACU,QAAA,kCAAkC,GAAG,QAAQ,CAAC;AAE3D;;GAEG;AACU,QAAA,wCAAwC,GAAG,QAAQ,CAAC;AAEjE;;GAEG;AACH,MAAM,iCAAiC,GAAG,QAAQ,CAAC;AAEnD;;GAEG;AACH,MAAM,4BAA4B,GAAG,QAAQ,CAAC;AAE9C;;;;;;;;;;;;GAYG;AACI,KAAK,UAAU,WAAW,CAC/B,UAA8B,EAC9B,UAAgC,EAChC,O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AG,OAAO,CAAC,GAAG,CAAC,mBAAmB,CAAC,IAAI,EAAE,CAAC;IAC/D,OAAO,CAAC,GAAG,CAAC,mBAAmB,CAAC,GAAG;QACjC,GAAG,eAAe,CAAC,KAAK,CAAC,KAAK,CAAC;QAC/B,wBAAwB;QACxB,+BAA+B;KAChC,CAAC,IAAI,CAAC,GAAG,CAAC,CAAC;AACd,CAAC;AAED,KAAK,UAAU,yBAAyB,CAAC,MAAc;IACrD,MAAM,UAAU,GAAG,OAAO,CAAC,GAAG,CAAC,oBAAM,CAAC,YAAY,CAAC,CAAC;IAEpD,OAAO,UAAU;QACf,CAAC,MAAM,MAAM,CAAC,eAAe,CAC3B,6BAAY,CAAC,gDAAgD,CAC9D,CAAC;QACF,CAAC,CAAC,CAAC,mCAAmC,UAAU,EAAE,CAAC;QACnD,CAAC,CAAC,EAAE,CAAC;AACT,CAAC"} \ No newline at end of file diff --git a/lib/codeql.test.js b/lib/codeql.test.js index e7265609b3..9257da3c69 100644 --- a/lib/codeql.test.js +++ b/lib/codeql.test.js @@ -60,7 +60,7 @@ async function installIntoToolcache({ apiDetails = testing_utils_1.SAMPLE_DOTCOM const url = (0, testing_utils_1.mockBundleDownloadApi)({ apiDetails, isPinned, tagName }); await codeql.setupCodeQL(cliVersion !== undefined ? undefined : url, apiDetails, tmpDir, util.GitHubVariant.GHES, cliVersion !== undefined ? { cliVersion, tagName } - : testing_utils_1.SAMPLE_DEFAULT_CLI_VERSION, (0, testing_utils_1.createFeatures)([]), (0, logging_1.getRunnerLogger)(true), false); + : testing_utils_1.SAMPLE_DEFAULT_CLI_VERSION, (0, logging_1.getRunnerLogger)(true), false); } function mockReleaseApi({ apiDetails = testing_utils_1.SAMPLE_DOTCOM_API_DETAILS, assetNames, tagName, }) { return (0, nock_1.default)(apiDetails.apiURL) @@ -97,7 +97,7 @@ function mockApiDetails(apiDetails) { tagName: `codeql-bundle-${version}`, isPinned: false, }); - const result = await codeql.setupCodeQL(url, testing_utils_1.SAMPLE_DOTCOM_API_DETAILS, tmpDir, util.GitHubVariant.DOTCOM, testing_utils_1.SAMPLE_DEFAULT_CLI_VERSION, (0, testing_utils_1.createFeatures)([]), (0, logging_1.getRunnerLogger)(true), false); + const result = await codeql.setupCodeQL(url, testing_utils_1.SAMPLE_DOTCOM_API_DETAILS, tmpDir, util.GitHubVariant.DOTCOM, testing_utils_1.SAMPLE_DEFAULT_CLI_VERSION, (0, logging_1.getRunnerLogger)(true), false); t.assert(toolcache.find("CodeQL", `0.0.0-${version}`)); t.is(result.toolsVersion, `0.0.0-${version}`); t.is(result.toolsSource, setup_codeql_1.ToolsSource.Download); @@ -112,7 +112,7 @@ function mockApiDetails(apiDetails) { tagName: `codeql-bundle-v2.15.0`, isPinned: false, }); - const result = await codeql.setupCodeQL(url, testing_utils_1.SAMPLE_DOTCOM_API_DETAILS, tmpDir, util.GitHubVariant.DOTCOM, testing_utils_1.SAMPLE_DEFAULT_CLI_VERSION, (0, testing_utils_1.createFeatures)([]), (0, logging_1.getRunnerLogger)(true), false); + const result = await codeql.setupCodeQL(url, testing_utils_1.SAMPLE_DOTCOM_API_DETAILS, tmpDir, util.GitHubVariant.DOTCOM, testing_utils_1.SAMPLE_DEFAULT_CLI_VERSION, (0, logging_1.getRunnerLogger)(true), false); t.is(toolcache.findAllVersions("CodeQL").length, 1); t.assert(toolcache.find("CodeQL", `2.15.0`)); t.is(result.toolsVersion, `2.15.0`); @@ -133,7 +133,7 @@ function mockApiDetails(apiDetails) { const url = (0, testing_utils_1.mockBundleDownloadApi)({ tagName: "codeql-bundle-20200610", }); - const result = await codeql.setupCodeQL(url, testing_utils_1.SAMPLE_DOTCOM_API_DETAILS, tmpDir, util.GitHubVariant.DOTCOM, testing_utils_1.SAMPLE_DEFAULT_CLI_VERSION, (0, testing_utils_1.createFeatures)([]), (0, logging_1.getRunnerLogger)(true), false); + const result = await codeql.setupCodeQL(url, testing_utils_1.SAMPLE_DOTCOM_API_DETAILS, tmpDir, util.GitHubVariant.DOTCOM, testing_utils_1.SAMPLE_DEFAULT_CLI_VERSION, (0, logging_1.getRunnerLogger)(true), false); t.assert(toolcache.find("CodeQL", "0.0.0-20200610")); t.deepEqual(result.toolsVersion, "0.0.0-20200610"); t.is(result.toolsSource, setup_codeql_1.ToolsSource.Download); @@ -161,7 +161,7 @@ for (const { tagName, expectedToolcacheVersion, } of EXPLICITLY_REQUESTED_BUNDLE const url = (0, testing_utils_1.mockBundleDownloadApi)({ tagName, }); - const result = await codeql.setupCodeQL(url, testing_utils_1.SAMPLE_DOTCOM_API_DETAILS, tmpDir, util.GitHubVariant.DOTCOM, testing_utils_1.SAMPLE_DEFAULT_CLI_VERSION, (0, testing_utils_1.createFeatures)([]), (0, logging_1.getRunnerLogger)(true), false); + const result = await codeql.setupCodeQL(url, testing_utils_1.SAMPLE_DOTCOM_API_DETAILS, tmpDir, util.GitHubVariant.DOTCOM, testing_utils_1.SAMPLE_DEFAULT_CLI_VERSION, (0, logging_1.getRunnerLogger)(true), false); t.assert(toolcache.find("CodeQL", expectedToolcacheVersion)); t.deepEqual(result.toolsVersion, expectedToolcacheVersion); t.is(result.toolsSource, setup_codeql_1.ToolsSource.Download); @@ -184,7 +184,7 @@ for (const toolcacheVersion of [ .withArgs("CodeQL", toolcacheVersion) .returns("path/to/cached/codeql"); sinon.stub(toolcache, "findAllVersions").returns([toolcacheVersion]); - const result = await codeql.setupCodeQL(undefined, testing_utils_1.SAMPLE_DOTCOM_API_DETAILS, tmpDir, util.GitHubVariant.DOTCOM, testing_utils_1.SAMPLE_DEFAULT_CLI_VERSION, (0, testing_utils_1.createFeatures)([]), (0, logging_1.getRunnerLogger)(true), false); + const result = await codeql.setupCodeQL(undefined, testing_utils_1.SAMPLE_DOTCOM_API_DETAILS, tmpDir, util.GitHubVariant.DOTCOM, testing_utils_1.SAMPLE_DEFAULT_CLI_VERSION, (0, logging_1.getRunnerLogger)(true), false); t.is(result.toolsVersion, testing_utils_1.SAMPLE_DEFAULT_CLI_VERSION.cliVersion); t.is(result.toolsSource, setup_codeql_1.ToolsSource.Toolcache); t.is(result.toolsDownloadStatusReport?.combinedDurationMs, undefined); @@ -204,7 +204,7 @@ for (const toolcacheVersion of [ const result = await codeql.setupCodeQL(undefined, testing_utils_1.SAMPLE_DOTCOM_API_DETAILS, tmpDir, util.GitHubVariant.GHES, { cliVersion: defaults.cliVersion, tagName: defaults.bundleVersion, - }, (0, testing_utils_1.createFeatures)([]), (0, logging_1.getRunnerLogger)(true), false); + }, (0, logging_1.getRunnerLogger)(true), false); t.deepEqual(result.toolsVersion, "0.0.0-20200601"); t.is(result.toolsSource, setup_codeql_1.ToolsSource.Toolcache); t.is(result.toolsDownloadStatusReport?.combinedDurationMs, undefined); @@ -228,7 +228,7 @@ for (const toolcacheVersion of [ const result = await codeql.setupCodeQL(undefined, testing_utils_1.SAMPLE_DOTCOM_API_DETAILS, tmpDir, util.GitHubVariant.GHES, { cliVersion: defaults.cliVersion, tagName: defaults.bundleVersion, - }, (0, testing_utils_1.createFeatures)([]), (0, logging_1.getRunnerLogger)(true), false); + }, (0, logging_1.getRunnerLogger)(true), false); t.deepEqual(result.toolsVersion, defaults.cliVersion); t.is(result.toolsSource, setup_codeql_1.ToolsSource.Download); if (result.toolsDownloadStatusReport) { @@ -249,7 +249,7 @@ for (const toolcacheVersion of [ (0, testing_utils_1.mockBundleDownloadApi)({ tagName: defaults.bundleVersion, }); - const result = await codeql.setupCodeQL("latest", testing_utils_1.SAMPLE_DOTCOM_API_DETAILS, tmpDir, util.GitHubVariant.DOTCOM, testing_utils_1.SAMPLE_DEFAULT_CLI_VERSION, (0, testing_utils_1.createFeatures)([]), (0, logging_1.getRunnerLogger)(true), false); + const result = await codeql.setupCodeQL("latest", testing_utils_1.SAMPLE_DOTCOM_API_DETAILS, tmpDir, util.GitHubVariant.DOTCOM, testing_utils_1.SAMPLE_DEFAULT_CLI_VERSION, (0, logging_1.getRunnerLogger)(true), false); t.deepEqual(result.toolsVersion, defaults.cliVersion); t.is(result.toolsSource, setup_codeql_1.ToolsSource.Download); if (result.toolsDownloadStatusReport) { @@ -273,7 +273,7 @@ for (const toolcacheVersion of [ platformSpecific: false, tagName: "codeql-bundle-20230203", }); - const result = await codeql.setupCodeQL("https://github.com/codeql-testing/codeql-cli-nightlies/releases/download/codeql-bundle-20230203/codeql-bundle.tar.gz", testing_utils_1.SAMPLE_DOTCOM_API_DETAILS, tmpDir, util.GitHubVariant.DOTCOM, testing_utils_1.SAMPLE_DEFAULT_CLI_VERSION, (0, testing_utils_1.createFeatures)([]), (0, logging_1.getRunnerLogger)(true), false); + const result = await codeql.setupCodeQL("https://github.com/codeql-testing/codeql-cli-nightlies/releases/download/codeql-bundle-20230203/codeql-bundle.tar.gz", testing_utils_1.SAMPLE_DOTCOM_API_DETAILS, tmpDir, util.GitHubVariant.DOTCOM, testing_utils_1.SAMPLE_DEFAULT_CLI_VERSION, (0, logging_1.getRunnerLogger)(true), false); t.is(result.toolsVersion, "0.0.0-20230203"); t.is(result.toolsSource, setup_codeql_1.ToolsSource.Download); if (result.toolsDownloadStatusReport) { @@ -533,7 +533,7 @@ for (const { codeqlVersion, flagPassed, githubVersion, negativeFlagPassed, } of sinon.stub(codeqlObject, "getVersion").resolves(codeqlVersion); // safeWhich throws because of the test CodeQL object. sinon.stub(safeWhich, "safeWhich").resolves(""); - await codeqlObject.databaseInterpretResults("", [], "", "", "", "-v", "", Object.assign({}, stubConfig, { gitHubVersion: githubVersion }), (0, testing_utils_1.createFeatures)([])); + await codeqlObject.databaseInterpretResults("", [], "", "", "", "-v", undefined, "", Object.assign({}, stubConfig, { gitHubVersion: githubVersion }), (0, testing_utils_1.createFeatures)([])); const actualArgs = runnerConstructorStub.firstCall.args[1]; t.is(actualArgs.includes("--new-analysis-summary"), flagPassed, `--new-analysis-summary should${flagPassed ? "" : "n't"} be passed`); t.is(actualArgs.includes("--no-new-analysis-summary"), negativeFlagPassed, `--no-new-analysis-summary should${negativeFlagPassed ? "" : "n't"} be passed`); diff --git a/lib/codeql.test.js.map b/lib/codeql.test.js.map index 45ed10327d..2bf5fb824b 100644 --- a/lib/codeql.test.js.map +++ b/lib/codeql.test.js.map @@ -1 +1 @@ -{"version":3,"file":"codeql.test.js","sourceRoot":"","sources":["../src/codeql.test.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;AAqhCA,8DAqBC;AA1iCD,uCAAyB;AAGzB,yEAA2D;AAC3D,+DAAiD;AACjD,kEAAoD;AACpD,8CAA6C;AAC7C,8CAAsB;AACtB,8CAAgC;AAChC,gDAAwB;AACxB,6CAA+B;AAE/B,4DAA8C;AAE9C,6CAAwC;AACxC,iDAAmC;AAEnC,0DAA4C;AAC5C,uCAAmC;AACnC,2CAAuC;AACvC,uCAA4C;AAC5C,iDAA6C;AAC7C,mDASyB;AAEzB,qDAAgD;AAChD,6CAA+B;AAC/B,iCAA+C;AAE/C,IAAA,0BAAU,EAAC,aAAI,CAAC,CAAC;AAEjB,IAAI,UAAkB,CAAC;AAEvB,aAAI,CAAC,UAAU,CAAC,GAAG,EAAE;IACnB,IAAA,4BAAqB,EAAC,OAAO,CAAC,CAAC;IAE/B,UAAU,GAAG,IAAA,gCAAgB,EAAC;QAC5B,SAAS,EAAE,CAAC,oBAAQ,CAAC,GAAG,CAAC;KAC1B,CAAC,CAAC;AACL,CAAC,CAAC,CAAC;AAEH,KAAK,UAAU,oBAAoB,CAAC,EAClC,UAAU,GAAG,yCAAyB,EACtC,UAAU,EACV,QAAQ,EACR,OAAO,EACP,MAAM,GAOP;IACC,MAAM,GAAG,GAAG,IAAA,qCAAqB,EAAC,EAAE,UAAU,EAAE,QAAQ,EAAE,OAAO,EAAE,CAAC,CAAC;IACrE,MAAM,MAAM,CAAC,WAAW,CACtB,UAAU,KAAK,SAAS,CAAC,CAAC,CAAC,SAAS,CAAC,CAAC,CAAC,GAAG,EAC1C,UAAU,EACV,MAAM,EACN,IAAI,CAAC,aAAa,CAAC,IAAI,EACvB,UAAU,KAAK,SAAS;QACtB,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c,GAAyC,SAAS,CAAC;IACrE,qBAAqB,CAAC,SAAS,CAAC,CAAC,IAAI,EAAE,KAAK,EAAE,OAAoB,EAAE,EAAE;QACpE,cAAc,GAAG,OAAO,CAAC,SAAS,EAAE,MAAM,CAAC;QAC3C,OAAO,gBAAgB,CAAC;IAC1B,CAAC,CAAC,CAAC;IACH,gBAAgB,CAAC,IAAI,CAAC,SAAS,CAAC,KAAK,IAAI,EAAE;QACzC,IAAI,cAAc,KAAK,SAAS,IAAI,MAAM,KAAK,SAAS,EAAE,CAAC;YACzD,cAAc,CAAC,MAAM,CAAC,IAAI,CAAC,MAAM,CAAC,CAAC,CAAC;QACtC,CAAC;QACD,OAAO,QAAQ,CAAC;IAClB,CAAC,CAAC,CAAC;IACH,OAAO,qBAAqB,CAAC;AAC/B,CAAC"} \ No newline at end of file diff --git a/lib/config-utils.js b/lib/config-utils.js index 3727aa8c68..c74299427f 100644 --- a/lib/config-utils.js +++ b/lib/config-utils.js @@ -53,6 +53,7 @@ const perf_hooks_1 = require("perf_hooks"); const yaml = __importStar(require("js-yaml")); const semver = __importStar(require("semver")); const api = __importStar(require("./api-client")); +const caching_utils_1 = require("./caching-utils"); const feature_flags_1 = require("./feature-flags"); const languages_1 = require("./languages"); const trap_caching_1 = require("./trap-caching"); @@ -213,7 +214,7 @@ async function getRawLanguages(languagesInput, repository, logger) { /** * Get the default config for when the user has not supplied one. */ -async function getDefaultConfig({ languagesInput, queriesInput, packsInput, buildModeInput, dbLocation, trapCachingEnabled, debugMode, debugArtifactName, debugDatabaseName, repository, tempDir, codeql, githubVersion, features, logger, }) { +async function getDefaultConfig({ languagesInput, queriesInput, packsInput, buildModeInput, dbLocation, trapCachingEnabled, dependencyCachingEnabled, debugMode, debugArtifactName, debugDatabaseName, repository, tempDir, codeql, githubVersion, features, logger, }) { const languages = await getLanguages(codeql, languagesInput, repository, logger); const buildMode = await parseBuildModeInput(buildModeInput, languages, features, logger); const augmentationProperties = calculateAugmentation(packsInput, queriesInput, languages); @@ -232,6 +233,7 @@ async function getDefaultConfig({ languagesInput, queriesInput, packsInput, buil augmentationProperties, trapCaches, trapCacheDownloadTime, + dependencyCachingEnabled: (0, caching_utils_1.getCachingKind)(dependencyCachingEnabled), }; } async function downloadCacheWithTime(trapCachingEnabled, codeQL, languages, logger) { @@ -247,7 +249,7 @@ async function downloadCacheWithTime(trapCachingEnabled, codeQL, languages, logg /** * Load the config from the given file. */ -async function loadConfig({ languagesInput, queriesInput, packsInput, buildModeInput, configFile, dbLocation, trapCachingEnabled, debugMode, debugArtifactName, debugDatabaseName, repository, tempDir, codeql, workspacePath, githubVersion, apiDetails, features, logger, }) { +async function loadConfig({ languagesInput, queriesInput, packsInput, buildModeInput, configFile, dbLocation, trapCachingEnabled, dependencyCachingEnabled, debugMode, debugArtifactName, debugDatabaseName, repository, tempDir, codeql, workspacePath, githubVersion, apiDetails, features, logger, }) { let parsedYAML; if (isLocal(configFile)) { if (configFile !== userConfigFromActionPath(tempDir)) { @@ -281,6 +283,7 @@ async function loadConfig({ languagesInput, queriesInput, packsInput, buildModeI augmentationProperties, trapCaches, trapCacheDownloadTime, + dependencyCachingEnabled: (0, caching_utils_1.getCachingKind)(dependencyCachingEnabled), }; } /** @@ -498,8 +501,8 @@ function parseRegistries(registriesInput) { } function parseRegistriesWithoutCredentials(registriesInput) { return parseRegistries(registriesInput)?.map((r) => { - const { url, packages } = r; - return { url, packages }; + const { url, packages, kind } = r; + return { url, packages, kind }; }); } function isLocal(configPath) { @@ -623,6 +626,7 @@ function createRegistriesBlock(registries) { // ensure the url ends with a slash to avoid a bug in the CLI 2.10.4 url: !registry?.url.endsWith("/") ? `${registry.url}/` : registry.url, packages: registry.packages, + kind: registry.kind, })); const qlconfig = { registries: safeRegistries, diff --git a/lib/config-utils.js.map b/lib/config-utils.js.map index 7ab446a378..68107089f8 100644 --- a/lib/config-utils.js.map +++ b/lib/config-utils.js.map @@ -1 +1 @@ -{"version":3,"file":"config-utils.js","sourceRoot":"","sources":["../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CACV,CAAC,IAAI,CAAC,IAAI,CAAC,GAAG,CAChB,CAAC;IACJ,CAAC;IAED,IACE,SAAS,CAAC,QAAQ,CAAC,oBAAQ,CAAC,MAAM,CAAC;QACnC,CAAC,MAAM,QAAQ,CAAC,QAAQ,CAAC,uBAAO,CAAC,sBAAsB,CAAC,CAAC,EACzD,CAAC;QACD,MAAM,CAAC,OAAO,CACZ,sGAAsG,CACvG,CAAC;QACF,OAAO,gBAAS,CAAC,SAAS,CAAC;IAC7B,CAAC;IAED,IACE,SAAS,CAAC,QAAQ,CAAC,oBAAQ,CAAC,IAAI,CAAC;QACjC,CAAC,MAAM,QAAQ,CAAC,QAAQ,CAAC,uBAAO,CAAC,2BAA2B,CAAC,CAAC,EAC9D,CAAC;QACD,MAAM,CAAC,OAAO,CACZ,wGAAwG,CACzG,CAAC;QACF,OAAO,gBAAS,CAAC,SAAS,CAAC;IAC7B,CAAC;IACD,OAAO,KAAkB,CAAC;AAC5B,CAAC"} \ No newline at end of file diff --git a/lib/config-utils.test.js b/lib/config-utils.test.js index e0824a2dca..42c95445ed 100644 --- a/lib/config-utils.test.js +++ b/lib/config-utils.test.js @@ -33,6 +33,7 @@ const ava_1 = __importDefault(require("ava")); const yaml = __importStar(require("js-yaml")); const sinon = __importStar(require("sinon")); const api = __importStar(require("./api-client")); +const caching_utils_1 = require("./caching-utils"); const codeql_1 = require("./codeql"); const configUtils = __importStar(require("./config-utils")); const feature_flags_1 = require("./feature-flags"); @@ -53,6 +54,7 @@ function createTestInitConfigInputs(overrides) { configInput: undefined, buildModeInput: undefined, trapCachingEnabled: false, + dependencyCachingEnabled: caching_utils_1.CachingKind.None, debugMode: false, debugArtifactName: "", debugDatabaseName: "", @@ -286,6 +288,7 @@ function mockListLanguages(languages) { augmentationProperties: configUtils.defaultAugmentationProperties, trapCaches: {}, trapCacheDownloadTime: 0, + dependencyCachingEnabled: caching_utils_1.CachingKind.None, }; const languagesInput = "javascript"; const configFilePath = createConfigFile(inputFileContents, tempDir); diff --git a/lib/config-utils.test.js.map b/lib/config-utils.test.js.map index bd4bad1fb9..bb145c7dcc 100644 --- a/lib/config-utils.test.js.map +++ b/lib/config-utils.test.js.map @@ -1 +1 @@ -{"version":3,"file":"config-utils.test.js","sourceRoot":"","sources":["../src/config-utils.test.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;AAAA,uCAAyB;AACzB,2CAA6B;AAE7B,wDAA0C;AAC1C,8CAA6C;AAC7C,8CAAgC;AAChC,6CAA+B;AAE/B,kDAAoC;AACpC,qCAKkB;AAClB,4DAA8C;AAC9C,mDAA0C;AAC1C,2CAAuC;AACvC,uCAA4C;AAC5C,6CAAkD;AAClD,mDAMyB;AACzB,iCAOgB;AAEhB,IAAA,0BAAU,EAAC,aAAI,CAAC,CAAC;AAEjB,MAAM,aAAa,GAAG,EAAE,IAAI,EAAE,oBAAa,CAAC,MAAM,EAAmB,CAAC;AAEtE,SAAS,0BAA0B,CACjC,SAAgD;IAEhD,OAAO,MAAM,CAAC,MAAM,CAClB,EAAE,EACF;QACE,cAAc,EAAE,SAAS;QACzB,YAAY,EAAE,SAAS;QACvB,UAAU,EAAE,SAAS;QACrB,UAAU,EAAE,SAAS;QACrB,UAAU,EAAE,SAAS;QACrB,WAAW,EAAE,SAAS;QACtB,cAAc,EAAE,SAAS;QACzB,kBAAkB,EAAE,KAAK;QACzB,SAAS,EAAE,KAAK;QAChB,iBAAiB,EAAE,EAAE;QACrB,iBAAiB,EAAE,EAAE;QACrB,UAAU,EAAE,EAAE,KAAK,EAAE,QAAQ,EAAE,IAAI,EAAE,SAAS,EAAE;QAChD,OAAO,EAAE,EAAE;QACX,MAAM,EAAE,EAAY;QACpB,aAAa,EAAE,EAAE;QACjB,aAAa;QACb,UAAU,EAAE;YACV,IAAI,EAAE,OAAO;YACb,gBAAgB,EAAE,OAAO;YACzB,GAAG,EAAE,4BAA4B;YACjC,MAAM,EAAE,SAAS;YACjB,oBAAoB,EAAE,SAAS;SAChC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AAiC,EAAE,KAAK,EAAE,CAAC,EAAE,EAAE;QAChI,MAAM,QAAQ,GAAoB,EAAE,CAAC;QACrC,MAAM,SAAS,GAAG,MAAM,WAAW,CAAC,mBAAmB,CACrD,MAAM,EACN,CAAC,QAAQ,CAAC,EACV,IAAA,8BAAc,EAAC,CAAC,OAAO,CAAC,CAAC,EACzB,IAAA,kCAAkB,EAAC,QAAQ,CAAC,CAC7B,CAAC;QACF,CAAC,CAAC,EAAE,CAAC,SAAS,EAAE,gBAAS,CAAC,SAAS,CAAC,CAAC;QACrC,CAAC,CAAC,SAAS,CAAC,QAAQ,EAAE;YACpB;gBACE,OAAO,EAAE,YAAY,WAAW,2FAA2F;gBAC3H,IAAI,EAAE,SAAS;aAChB;SACF,CAAC,CAAC;IACL,CAAC,CAAC,CAAC;AACL,CAAC"} \ No newline at end of file +{"version":3,"file":"config-utils.test.js","sourceRoot":"","sources":["../src/config-utils.test.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;AAAA,uCAAyB;AACzB,2CAA6B;AAE7B,wDAA0C;AAC1C,8CAA6C;AAC7C,8CAAgC;AAChC,6CAA+B;AAE/B,kDAAoC;AACpC,mDAA8C;AAC9C,qCAKkB;AAClB,4DAA8C;AAC9C,mDAA0C;AAC1C,2CAAuC;AACvC,uCAA4C;AAC5C,6CAAkD;AAClD,mDAMyB;AACzB,iCAOgB;AAEhB,IAAA,0BAAU,EAAC,aAAI,CAAC,CAAC;AAEjB,MAAM,aAAa,GAAG,EAAE,IAAI,EAAE,oBAAa,CAAC,MAAM,EAAmB,CAAC;AAEtE,SAAS,0BAA0B,CACjC,SAAgD;IAEhD,OAAO,MAAM,CAAC,MAAM,CAClB,EAAE,EACF;QACE,cAAc,EAAE,SAAS;QACzB,YAAY,EAAE,SAAS;QACvB,UAAU,EAAE,SAAS;QACrB,UAAU,EAAE,SAAS;QACrB,UAAU,EAAE,SAAS;QACrB,WAAW,EAAE,SAAS;QACtB,cAAc,EAAE,S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,EAAE,KAAK,EAAE,CAAC,EAAE,EAAE;QAC3H,MAAM,QAAQ,GAAoB,EAAE,CAAC;QACrC,MAAM,SAAS,GAAG,MAAM,WAAW,CAAC,mBAAmB,CACrD,MAAM,EACN,CAAC,oBAAQ,CAAC,MAAM,CAAC,EACjB,IAAA,8BAAc,EAAC,CAAC,OAAO,CAAC,CAAC,EACzB,IAAA,kCAAkB,EAAC,QAAQ,CAAC,CAC7B,CAAC;QACF,CAAC,CAAC,EAAE,CAAC,SAAS,EAAE,gBAAS,CAAC,IAAI,CAAC,CAAC;QAChC,CAAC,CAAC,SAAS,CAAC,QAAQ,EAAE,EAAE,CAAC,CAAC;IAC5B,CAAC,CAAC,CAAC;IAEH,IAAA,aAAI,EAAC,wCAAwC,WAAW,gBAAgB,WAAW,iCAAiC,EAAE,KAAK,EAAE,CAAC,EAAE,EAAE;QAChI,MAAM,QAAQ,GAAoB,EAAE,CAAC;QACrC,MAAM,SAAS,GAAG,MAAM,WAAW,CAAC,mBAAmB,CACrD,MAAM,EACN,CAAC,QAAQ,CAAC,EACV,IAAA,8BAAc,EAAC,CAAC,OAAO,CAAC,CAAC,EACzB,IAAA,kCAAkB,EAAC,QAAQ,CAAC,CAC7B,CAAC;QACF,CAAC,CAAC,EAAE,CAAC,SAAS,EAAE,gBAAS,CAAC,SAAS,CAAC,CAAC;QACrC,CAAC,CAAC,SAAS,CAAC,QAAQ,EAAE;YACpB;gBACE,OAAO,EAAE,YAAY,WAAW,2FAA2F;gBAC3H,IAAI,EAAE,SAAS;aAChB;SACF,CAAC,CAAC;IACL,CAAC,CAAC,CAAC;AACL,CAAC"} \ No newline at end of file diff --git a/lib/defaults.json b/lib/defaults.json index 58a0b1f58e..71daeec20c 100644 --- a/lib/defaults.json +++ b/lib/defaults.json @@ -1,6 +1,6 @@ { - "bundleVersion": "codeql-bundle-v2.19.2", - "cliVersion": "2.19.2", - "priorBundleVersion": "codeql-bundle-v2.19.1", - "priorCliVersion": "2.19.1" + "bundleVersion": "codeql-bundle-v2.19.3", + "cliVersion": "2.19.3", + "priorBundleVersion": "codeql-bundle-v2.19.2", + "priorCliVersion": "2.19.2" } diff --git a/lib/dependency-caching.js b/lib/dependency-caching.js new file mode 100644 index 0000000000..cf682babad --- /dev/null +++ b/lib/dependency-caching.js @@ -0,0 +1,181 @@ +"use strict"; +var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) { + if (k2 === undefined) k2 = k; + var desc = Object.getOwnPropertyDescriptor(m, k); + if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) { + desc = { enumerable: true, get: function() { return m[k]; } }; + } + Object.defineProperty(o, k2, desc); +}) : (function(o, m, k, k2) { + if (k2 === undefined) k2 = k; + o[k2] = m[k]; +})); +var __setModuleDefault = (this && this.__setModuleDefault) || (Object.create ? (function(o, v) { + Object.defineProperty(o, "default", { enumerable: true, value: v }); +}) : function(o, v) { + o["default"] = v; +}); +var __importStar = (this && this.__importStar) || function (mod) { + if (mod && mod.__esModule) return mod; + var result = {}; + if (mod != null) for (var k in mod) if (k !== "default" && Object.prototype.hasOwnProperty.call(mod, k)) __createBinding(result, mod, k); + __setModuleDefault(result, mod); + return result; +}; +Object.defineProperty(exports, "__esModule", { value: true }); +exports.downloadDependencyCaches = downloadDependencyCaches; +exports.uploadDependencyCaches = uploadDependencyCaches; +const os = __importStar(require("os")); +const path_1 = require("path"); +const actionsCache = __importStar(require("@actions/cache")); +const glob = __importStar(require("@actions/glob")); +const caching_utils_1 = require("./caching-utils"); +const environment_1 = require("./environment"); +const util_1 = require("./util"); +const CODEQL_DEPENDENCY_CACHE_PREFIX = "codeql-dependencies"; +const CODEQL_DEPENDENCY_CACHE_VERSION = 1; +/** + * Default caching configurations per language. + */ +const CODEQL_DEFAULT_CACHE_CONFIG = { + java: { + paths: [ + // Maven + (0, path_1.join)(os.homedir(), ".m2", "repository"), + // Gradle + (0, path_1.join)(os.homedir(), ".gradle", "caches"), + ], + hash: [ + // Maven + "**/pom.xml", + // Gradle + "**/*.gradle*", + "**/gradle-wrapper.properties", + "buildSrc/**/Versions.kt", + "buildSrc/**/Dependencies.kt", + "gradle/*.versions.toml", + "**/versions.properties", + ], + }, + csharp: { + paths: [(0, path_1.join)(os.homedir(), ".nuget", "packages")], + hash: [ + // NuGet + "**/packages.lock.json", + // Paket + "**/paket.lock", + ], + }, + go: { + paths: [(0, path_1.join)(os.homedir(), "go", "pkg", "mod")], + hash: ["**/go.sum"], + }, +}; +async function makeGlobber(patterns) { + return glob.create(patterns.join("\n")); +} +/** + * Attempts to restore dependency caches for the languages being analyzed. + * + * @param languages The languages being analyzed. + * @param logger A logger to record some informational messages to. + * @returns A list of languages for which dependency caches were restored. + */ +async function downloadDependencyCaches(languages, logger) { + const restoredCaches = []; + for (const language of languages) { + const cacheConfig = CODEQL_DEFAULT_CACHE_CONFIG[language]; + if (cacheConfig === undefined) { + logger.info(`Skipping download of dependency cache for ${language} as we have no caching configuration for it.`); + continue; + } + // Check that we can find files to calculate the hash for the cache key from, so we don't end up + // with an empty string. + const globber = await makeGlobber(cacheConfig.hash); + if ((await globber.glob()).length === 0) { + logger.info(`Skipping download of dependency cache for ${language} as we cannot calculate a hash for the cache key.`); + continue; + } + const primaryKey = await cacheKey(language, cacheConfig); + const restoreKeys = [await cachePrefix(language)]; + logger.info(`Downloading cache for ${language} with key ${primaryKey} and restore keys ${restoreKeys.join(", ")}`); + const hitKey = await actionsCache.restoreCache(cacheConfig.paths, primaryKey, restoreKeys); + if (hitKey !== undefined) { + logger.info(`Cache hit on key ${hitKey} for ${language}.`); + restoredCaches.push(language); + } + else { + logger.info(`No suitable cache found for ${language}.`); + } + } + return restoredCaches; +} +/** + * Attempts to store caches for the languages that were analyzed. + * + * @param config The configuration for this workflow. + * @param logger A logger to record some informational messages to. + */ +async function uploadDependencyCaches(config, logger) { + for (const language of config.languages) { + const cacheConfig = CODEQL_DEFAULT_CACHE_CONFIG[language]; + if (cacheConfig === undefined) { + logger.info(`Skipping upload of dependency cache for ${language} as we have no caching configuration for it.`); + continue; + } + // Check that we can find files to calculate the hash for the cache key from, so we don't end up + // with an empty string. + const globber = await makeGlobber(cacheConfig.hash); + if ((await globber.glob()).length === 0) { + logger.info(`Skipping upload of dependency cache for ${language} as we cannot calculate a hash for the cache key.`); + continue; + } + // Calculate the size of the files that we would store in the cache. We use this to determine whether the + // cache should be saved or not. For example, if there are no files to store, then we skip creating the + // cache. In the future, we could also: + // - Skip uploading caches with a size below some threshold: this makes sense for avoiding the overhead + // of storing and restoring small caches, but does not help with alert wobble if a package repository + // cannot be reached in a given run. + // - Skip uploading caches with a size above some threshold: this could be a concern if other workflows + // use the cache quota that we compete with. In that case, we do not wish to use up all of the quota + // with the dependency caches. For this, we could use the Cache API to check whether other workflows + // are using the quota and how full it is. + const size = await (0, caching_utils_1.getTotalCacheSize)(cacheConfig.paths, logger); + // Skip uploading an empty cache. + if (size === 0) { + logger.info(`Skipping upload of dependency cache for ${language} since it is empty.`); + continue; + } + const key = await cacheKey(language, cacheConfig); + logger.info(`Uploading cache of size ${size} for ${language} with key ${key}`); + await actionsCache.saveCache(cacheConfig.paths, key); + } +} +/** + * Computes a cache key for the specified language. + * + * @param language The language being analyzed. + * @param cacheConfig The cache configuration for the language. + * @returns A cache key capturing information about the project(s) being analyzed in the specified language. + */ +async function cacheKey(language, cacheConfig) { + const hash = await glob.hashFiles(cacheConfig.hash.join("\n")); + return `${await cachePrefix(language)}${hash}`; +} +/** + * Constructs a prefix for the cache key, comprised of a CodeQL-specific prefix, a version number that + * can be changed to invalidate old caches, the runner's operating system, and the specified language name. + * + * @param language The language being analyzed. + * @returns The prefix that identifies what a cache is for. + */ +async function cachePrefix(language) { + const runnerOs = (0, util_1.getRequiredEnvParam)("RUNNER_OS"); + const customPrefix = process.env[environment_1.EnvVar.DEPENDENCY_CACHING_PREFIX]; + let prefix = CODEQL_DEPENDENCY_CACHE_PREFIX; + if (customPrefix !== undefined && customPrefix.length > 0) { + prefix = `${prefix}-${customPrefix}`; + } + return `${prefix}-${CODEQL_DEPENDENCY_CACHE_VERSION}-${runnerOs}-${language}-`; +} +//# sourceMappingURL=dependency-caching.js.map \ No newline at end of file diff --git a/lib/dependency-caching.js.map b/lib/dependency-caching.js.map new file mode 100644 index 0000000000..2dd4e1e239 --- /dev/null +++ b/lib/dependency-caching.js.map @@ -0,0 +1 @@ +{"version":3,"file":"dependency-caching.js","sourceRoot":"","sources":["../src/dependency-caching.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;AA+EA,4DAmDC;AAQD,wDAkDC;AA5LD,uCAAyB;AACzB,+BAA4B;AAE5B,6DAA+C;AAC/C,oDAAsC;AAEtC,mDAAoD;AAEpD,+CAAuC;AAGvC,iCAA6C;AAgB7C,MAAM,8BAA8B,GAAG,qBAAqB,CAAC;AAC7D,MAAM,+BAA+B,GAAG,CAAC,CAAC;AAE1C;;GAEG;AACH,MAAM,2BAA2B,GAAwC;IACvE,IAAI,EAAE;QACJ,KAAK,EAAE;YACL,QAAQ;YACR,IAAA,WAAI,EAAC,EAAE,CAAC,OAAO,EAAE,EAAE,KAAK,EAAE,YAAY,CAAC;YACvC,SAAS;YACT,IAAA,WAAI,EAAC,EAAE,CAAC,OAAO,EAAE,EAAE,SAAS,EAAE,QAAQ,CAAC;SACxC;QACD,IAAI,EAAE;YACJ,QAAQ;YACR,YAAY;YACZ,SAAS;YACT,cAAc;YACd,8BAA8B;YAC9B,yBAAyB;YACzB,6BAA6B;YAC7B,wBAAwB;YACxB,wBAAwB;SACzB;KACF;IACD,MAAM,EAAE;QACN,KAAK,EAAE,CAAC,IAAA,WAAI,EAAC,EAAE,CAAC,OAAO,EAAE,EAAE,QAAQ,EAAE,UAAU,CAAC,CAAC;QACjD,IAAI,EAAE;YACJ,QAAQ;YACR,uBAAuB;YACvB,QAAQ;YACR,eAAe;SAChB;KACF;IACD,EAAE,EAAE;QACF,KAAK,EAAE,CAAC,IAAA,WAAI,EAAC,EAAE,CAAC,OAAO,EAAE,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ACT,2CAA2C,QAAQ,qBAAqB,CACzE,CAAC;YACF,SAAS;QACX,CAAC;QAED,MAAM,GAAG,GAAG,MAAM,QAAQ,CAAC,QAAQ,EAAE,WAAW,CAAC,CAAC;QAElD,MAAM,CAAC,IAAI,CACT,2BAA2B,IAAI,QAAQ,QAAQ,aAAa,GAAG,EAAE,CAClE,CAAC;QAEF,MAAM,YAAY,CAAC,SAAS,CAAC,WAAW,CAAC,KAAK,EAAE,GAAG,CAAC,CAAC;IACvD,CAAC;AACH,CAAC;AAED;;;;;;GAMG;AACH,KAAK,UAAU,QAAQ,CACrB,QAAkB,EAClB,WAAwB;IAExB,MAAM,IAAI,GAAG,MAAM,IAAI,CAAC,SAAS,CAAC,WAAW,CAAC,IAAI,CAAC,IAAI,CAAC,IAAI,CAAC,CAAC,CAAC;IAC/D,OAAO,GAAG,MAAM,WAAW,CAAC,QAAQ,CAAC,GAAG,IAAI,EAAE,CAAC;AACjD,CAAC;AAED;;;;;;GAMG;AACH,KAAK,UAAU,WAAW,CAAC,QAAkB;IAC3C,MAAM,QAAQ,GAAG,IAAA,0BAAmB,EAAC,WAAW,CAAC,CAAC;IAClD,MAAM,YAAY,GAAG,OAAO,CAAC,GAAG,CAAC,oBAAM,CAAC,yBAAyB,CAAC,CAAC;IACnE,IAAI,MAAM,GAAG,8BAA8B,CAAC;IAE5C,IAAI,YAAY,KAAK,SAAS,IAAI,YAAY,CAAC,MAAM,GAAG,CAAC,EAAE,CAAC;QAC1D,MAAM,GAAG,GAAG,MAAM,IAAI,YAAY,EAAE,CAAC;IACvC,CAAC;IAED,OAAO,GAAG,MAAM,IAAI,+BAA+B,IAAI,QAAQ,IAAI,QAAQ,GAAG,CAAC;AACjF,CAAC"} \ No newline at end of file diff --git a/lib/environment.js b/lib/environment.js index 52d27b2eef..aa1b73667b 100644 --- a/lib/environment.js +++ b/lib/environment.js @@ -44,7 +44,7 @@ var EnvVar; /** Whether the init action has been run. */ EnvVar["INIT_ACTION_HAS_RUN"] = "CODEQL_ACTION_INIT_HAS_RUN"; /** - * For MacOS. Result of `csrutil status` to determine whether System Integrity + * For macOS. Result of `csrutil status` to determine whether System Integrity * Protection is enabled. */ EnvVar["IS_SIP_ENABLED"] = "CODEQL_ACTION_IS_SIP_ENABLED"; @@ -80,5 +80,16 @@ var EnvVar; * We check this later to ensure that it hasn't been tampered with by a late e.g. `setup-go` step. */ EnvVar["GO_BINARY_LOCATION"] = "CODEQL_ACTION_GO_BINARY"; + /** + * Used as an alternative to the `dependency-caching` input for the `init` Action. + * Useful for experiments where it is easier to set an environment variable than + * change the inputs to the Action. + */ + EnvVar["DEPENDENCY_CACHING"] = "CODEQL_ACTION_DEPENDENCY_CACHING"; + /** + * An optional string to add into the cache key used by dependency caching. + * Useful for testing purposes where multiple caches may be stored in the same repository. + */ + EnvVar["DEPENDENCY_CACHING_PREFIX"] = "CODEQL_ACTION_DEPENDENCY_CACHE_PREFIX"; })(EnvVar || (exports.EnvVar = EnvVar = {})); //# sourceMappingURL=environment.js.map \ No newline at end of file diff --git a/lib/environment.js.map b/lib/environment.js.map index 964de8cb89..fb75e58cc5 100644 --- a/lib/environment.js.map +++ b/lib/environment.js.map @@ -1 +1 @@ -{"version":3,"file":"environment.js","sourceRoot":"","sources":["../src/environment.ts"],"names":[],"mappings":";;;AAAA;;;;;GAKG;AACH,IAAY,MA8FX;AA9FD,WAAY,MAAM;IAChB,2DAA2D;IAC3D,+FAAqF,CAAA;IAErF,6DAA6D;IAC7D,mGAAyF,CAAA;IAEzF;;;OAGG;IACH,4CAAkC,CAAA;IAElC,gEAAgE;IAChE,qEAA2D,CAAA;IAE3D;;;OAGG;IACH,yFAA+E,CAAA;IAE/E;;;OAGG;IACH,yEAA+D,CAAA;IAE/D,gFAAgF;IAChF,6DAAmD,CAAA;IAEnD;;;OAGG;IACH,uEAA6D,CAAA;IAE7D,gEAAgE;IAChE,mEAAyD,CAAA;IAEzD,kFAAkF;IAClF,mFAAyE,CAAA;IAEzE,4CAA4C;IAC5C,4DAAkD,CAAA;IAElD;;;OAGG;IACH,yDAA+C,CAAA;IAE/C,6CAA6C;IAC7C,uCAA6B,CAAA;IAE7B,+EAA+E;IAC/E,iDAAuC,CAAA;IAEvC,mEAAyD,CAAA;IAEzD,8DAA8D;IAC9D,6EAAmE,CAAA;IAEnE;;;OAGG;IACH,2FAAiF,CAAA;IAEjF,mFAAmF;IACnF,6FAAmF,CAAA;IAEnF,qFAAqF;IACrF,+CAAqC,CAAA;IAErC,mEAAyD,CAAA;IAEzD,kEAAkE;IAClE,2CAAiC,CAAA;IAEjC;;;;;;OAMG;IACH,4DAAkD,CAAA;IAElD;;;OAGG;IACH,wDAA8C,CAAA;AAChD,CAAC,EA9FW,MAAM,sBAAN,MAAM,QA8FjB"} \ No newline at end of file +{"version":3,"file":"environment.js","sourceRoot":"","sources":["../src/environment.ts"],"names":[],"mappings":";;;AAAA;;;;;GAKG;AACH,IAAY,MA2GX;AA3GD,WAAY,MAAM;IAChB,2DAA2D;IAC3D,+FAAqF,CAAA;IAErF,6DAA6D;IAC7D,mGAAyF,CAAA;IAEzF;;;OAGG;IACH,4CAAkC,CAAA;IAElC,gEAAgE;IAChE,qEAA2D,CAAA;IAE3D;;;OAGG;IACH,yFAA+E,CAAA;IAE/E;;;OAGG;IACH,yEAA+D,CAAA;IAE/D,gFAAgF;IAChF,6DAAmD,CAAA;IAEnD;;;OAGG;IACH,uEAA6D,CAAA;IAE7D,gEAAgE;IAChE,mEAAyD,CAAA;IAEzD,kFAAkF;IAClF,mFAAyE,CAAA;IAEzE,4CAA4C;IAC5C,4DAAkD,CAAA;IAElD;;;OAGG;IACH,yDAA+C,CAAA;IAE/C,6CAA6C;IAC7C,uCAA6B,CAAA;IAE7B,+EAA+E;IAC/E,iDAAuC,CAAA;IAEvC,mEAAyD,CAAA;IAEzD,8DAA8D;IAC9D,6EAAmE,CAAA;IAEnE;;;OAGG;IACH,2FAAiF,CAAA;IAEjF,mFAAmF;IACnF,6FAAmF,CAAA;IAEnF,qFAAqF;IACrF,+CAAqC,CAAA;IAErC,mEAAyD,CAAA;IAEzD,kEAAkE;IAClE,2CAAiC,CAAA;IAEjC;;;;;;OAMG;IACH,4DAAkD,CAAA;IAElD;;;OAGG;IACH,wDAA8C,CAAA;IAE9C;;;;OAIG;IACH,iEAAuD,CAAA;IAEvD;;;OAGG;IACH,6EAAmE,CAAA;AACrE,CAAC,EA3GW,MAAM,sBAAN,MAAM,QA2GjB"} \ No newline at end of file diff --git a/lib/feature-flags.js b/lib/feature-flags.js index 180e742ad8..4cb2c04219 100644 --- a/lib/feature-flags.js +++ b/lib/feature-flags.js @@ -54,6 +54,7 @@ var Feature; (function (Feature) { Feature["ArtifactV4Upgrade"] = "artifact_v4_upgrade"; Feature["CleanupTrapCaches"] = "cleanup_trap_caches"; + Feature["CppBuildModeNone"] = "cpp_build_mode_none"; Feature["CppDependencyInstallation"] = "cpp_dependency_installation_enabled"; Feature["DiffInformedQueries"] = "diff_informed_queries"; Feature["DisableCsharpBuildless"] = "disable_csharp_buildless"; @@ -62,8 +63,6 @@ var Feature; Feature["ExportDiagnosticsEnabled"] = "export_diagnostics_enabled"; Feature["PythonDefaultIsToNotExtractStdlib"] = "python_default_is_to_not_extract_stdlib"; Feature["QaTelemetryEnabled"] = "qa_telemetry_enabled"; - Feature["ZstdBundle"] = "zstd_bundle"; - Feature["ZstdBundleStreamingExtraction"] = "zstd_bundle_streaming_extraction"; })(Feature || (exports.Feature = Feature = {})); exports.featureConfig = { [Feature.ArtifactV4Upgrade]: { @@ -76,6 +75,11 @@ exports.featureConfig = { envVar: "CODEQL_ACTION_CLEANUP_TRAP_CACHES", minimumVersion: undefined, }, + [Feature.CppBuildModeNone]: { + defaultValue: false, + envVar: "CODEQL_EXTRACTOR_CPP_BUILD_MODE_NONE", + minimumVersion: undefined, + }, [Feature.CppDependencyInstallation]: { defaultValue: false, envVar: "CODEQL_EXTRACTOR_CPP_AUTOINSTALL_DEPENDENCIES", @@ -123,18 +127,6 @@ exports.featureConfig = { legacyApi: true, minimumVersion: undefined, }, - [Feature.ZstdBundle]: { - defaultValue: false, - envVar: "CODEQL_ACTION_ZSTD_BUNDLE", - // We haven't yet installed CodeQL when we check this feature flag, so we need to implement the - // version check separately. - minimumVersion: undefined, - }, - [Feature.ZstdBundleStreamingExtraction]: { - defaultValue: false, - envVar: "CODEQL_ACTION_ZSTD_BUNDLE_STREAMING_EXTRACTION", - minimumVersion: undefined, - }, }; exports.FEATURE_FLAGS_FILE_NAME = "cached-feature-flags.json"; /** @@ -340,7 +332,8 @@ class GitHubFeatureFlags { } async loadApiResponse() { // Do nothing when not running against github.com - if (this.gitHubVersion.type !== util.GitHubVariant.DOTCOM) { + if (this.gitHubVersion.type !== util.GitHubVariant.DOTCOM && + this.gitHubVersion.type !== util.GitHubVariant.GHE_DOTCOM) { this.logger.debug("Not running against github.com. Disabling all toggleable features."); this.hasAccessedRemoteFeatureFlags = false; return {}; diff --git a/lib/feature-flags.js.map b/lib/feature-flags.js.map index 722da22eb1..667067b364 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,qDAAgD;AAChD,6CAA+B;AAE/B,MAAM,mCAAmC,GAAG,yBAAyB,CAAC;AACtE,MAAM,mCAAmC,GAAG,UAAU,CAAC;AAEvD;;;GAGG;AACU,QAAA,uCAAuC,GAAG,QAAQ,CAAC;AAEhE;;GAEG;AACU,QAAA,0BAA0B,GAAG,QAAQ,CAAC;AAgBnD;;;;;;;GAOG;AACH,IAAY,OAaX;AAbD,WAAY,OAAO;IACjB,oDAAyC,CAAA;IACzC,oDAAyC,CAAA;IACzC,4EAAiE,CAAA;IACjE,wDAA6C,CAAA;IAC7C,8DAAmD,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AAC,MAAM,CAAC,OAAO,CACjB,gGAAgG;oBAC9F,oEAAoE;oBACpE,qFAAqF;oBACrF,kFAAkF,CAAC,CAAC,OAAO,EAAE,CAChG,CAAC;gBACF,IAAI,CAAC,6BAA6B,GAAG,KAAK,CAAC;gBAC3C,OAAO,EAAE,CAAC;YACZ,CAAC;iBAAM,CAAC;gBACN,kFAAkF;gBAClF,8EAA8E;gBAC9E,2FAA2F;gBAC3F,eAAe;gBACf,MAAM,IAAI,KAAK,CACb,sEAAsE,CAAC,EAAE,CAC1E,CAAC;YACJ,CAAC;QACH,CAAC;IACH,CAAC;CACF"} \ 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,qDAAgD;AAChD,6CAA+B;AAE/B,MAAM,mCAAmC,GAAG,yBAAyB,CAAC;AACtE,MAAM,mCAAmC,GAAG,UAAU,CAAC;AAEvD;;;GAGG;AACU,QAAA,uCAAuC,GAAG,QAAQ,CAAC;AAEhE;;GAEG;AACU,QAAA,0BAA0B,GAAG,QAAQ,CAAC;AAgBnD;;;;;;;GAOG;AACH,IAAY,OAYX;AAZD,WAAY,OAAO;IACjB,oDAAyC,CAAA;IACzC,oDAAyC,CAAA;IACzC,mDAAwC,CAAA;IACxC,4EAAiE,CAAA;IACjE,wDAA6C,CAAA;IAC7C,8DAAmD,CAAA;IACnD,yEAA8D,CAAA;IAC9D,2EAAgE,CAAA;IAChE,kEAAuD,CAAA;IACvD,wFAA6E,CAAA;IAC7E,sDAA2C,CAAA;AAC7C,CAAC,EAZW,OAAO,uBAAP,OAAO,QAYlB;AAEY,QAAA,aAAa,GA8BtB;IACF,CAAC,OAAO,CAAC,iBAAiB,CAAC,EAAE;QAC3B,YAAY,EAAE,KAAK;QACnB,MAAM,EAAE,mCAA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/lib/feature-flags.test.js b/lib/feature-flags.test.js index 336aa28477..1502cc9a5f 100644 --- a/lib/feature-flags.test.js +++ b/lib/feature-flags.test.js @@ -53,6 +53,21 @@ const testRepositoryNwo = (0, repository_1.parseRepositoryNwo)("github/example") "Not running against github.com. Disabling all toggleable features.") !== undefined); }); }); +(0, ava_1.default)(`Feature flags are requested in Proxima`, async (t) => { + await (0, util_1.withTmpDir)(async (tmpDir) => { + const loggedMessages = []; + const features = setUpFeatureFlagTests(tmpDir, (0, testing_utils_1.getRecordingLogger)(loggedMessages), { type: util_1.GitHubVariant.GHE_DOTCOM }); + (0, testing_utils_1.mockFeatureFlagApiEndpoint)(200, initializeFeatures(true)); + for (const feature of Object.values(feature_flags_1.Feature)) { + // Ensure we have gotten a response value back from the Mock API + t.assert(await features.getValue(feature, includeCodeQlIfRequired(feature))); + } + // And that we haven't bailed preemptively. + t.assert(loggedMessages.find((v) => v.type === "debug" && + v.message === + "Not running against github.com. Disabling all toggleable features.") === undefined); + }); +}); (0, ava_1.default)("API response missing and features use default value", async (t) => { await (0, util_1.withTmpDir)(async (tmpDir) => { const loggedMessages = []; diff --git a/lib/feature-flags.test.js.map b/lib/feature-flags.test.js.map index 99f854906b..42e38f237e 100644 --- a/lib/feature-flags.test.js.map +++ b/lib/feature-flags.test.js.map @@ -1 +1 @@ -{"version":3,"file":"feature-flags.test.js","sourceRoot":"","sources":["../src/feature-flags.test.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;AAAA,uCAAyB;AACzB,2CAA6B;AAE7B,8CAA6C;AAE7C,0DAA4C;AAC5C,mDAMyB;AACzB,uCAA4C;AAC5C,6CAAkD;AAClD,mDAOyB;AACzB,qDAAgD;AAEhD,iCAA0E;AAE1E,IAAA,0BAAU,EAAC,aAAI,CAAC,CAAC;AAEjB,aAAI,CAAC,UAAU,CAAC,GAAG,EAAE;IACnB,IAAA,4BAAqB,EAAC,OAAO,CAAC,CAAC;AACjC,CAAC,CAAC,CAA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S;QACjD,CAAC,CAAC,IAAA,iCAAiB,EACf,OAAO,EACP,MAAM,CAAC,WAAW,CAAC,MAAM,CAAC,MAAM,CAAC,6BAAY,CAAC,CAAC,GAAG,CAAC,CAAC,CAAC,EAAE,EAAE,CAAC,CAAC,CAAC,EAAE,IAAI,CAAC,CAAC,CAAC,CACtE;QACH,CAAC,CAAC,SAAS,CAAC;AAChB,CAAC"} \ No newline at end of file +{"version":3,"file":"feature-flags.test.js","sourceRoot":"","sources":["../src/feature-flags.test.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;AAAA,uCAAyB;AACzB,2CAA6B;AAE7B,8CAA6C;AAE7C,0DAA4C;AAC5C,mDAMyB;AACzB,uCAA4C;AAC5C,6CAAkD;AAClD,mDAOyB;AACzB,qDAAgD;AAEhD,iCAA0E;AAE1E,IAAA,0BAAU,EAAC,aAAI,CAAC,CAAC;AAEjB,aAAI,CAAC,UAAU,CAAC,GAAG,EAAE;IACnB,IAAA,4BAAqB,EAAC,OAAO,CAAC,CAAC;AACjC,CAAC,CAAC,CAAC;AAEH,MAAM,iBAAiB,GAAG,IAAA,+BAAkB,EAAC,gBAAgB,CAAC,CAAC;AAE/D,IAAA,aAAI,EAAC,mDAAmD,EAAE,KAAK,EAAE,CAAC,EAAE,EAAE;IACpE,MAAM,IAAA,iBAAU,EAAC,KAAK,EAAE,MAAM,EAAE,EAAE;QAChC,MAAM,cAAc,GAAG,EAAE,CAAC;QAC1B,MAAM,QAAQ,GAAG,qBAAqB,CACpC,MAAM,EACN,IAAA,kCAAkB,EAAC,cAAc,CAAC,EAClC,EAAE,IAAI,EAAE,oBAAa,CAAC,IAAI,EAAE,OAAO,EAAE,OAAO,EAAE,CAC/C,CAAC;QAEF,KAAK,MAAM,OAAO,IAAI,MAAM,CAAC,MAAM,CAAC,uBAAO,CAAC,EAAE,CAAC;YAC7C,CAAC,CAAC,SAAS,CACT,MAAM,QAAQ,CAAC,QAAQ,CAAC,OAAO,EAAE,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AAC,MAAM,EAAE,MAAM,CAAC,CAAC;IAEjC,OAAO,IAAI,wBAAQ,CAAC,aAAa,EAAE,iBAAiB,EAAE,MAAM,EAAE,MAAM,CAAC,CAAC;AACxE,CAAC;AAED;;;GAGG;AACH,SAAS,uBAAuB,CAAC,OAAe;IAC9C,OAAO,6BAAa,CAAC,OAAO,CAAC,CAAC,cAAc,KAAK,SAAS;QACxD,6BAAa,CAAC,OAAO,CAAC,CAAC,YAAY,KAAK,SAAS;QACjD,CAAC,CAAC,IAAA,iCAAiB,EACf,OAAO,EACP,MAAM,CAAC,WAAW,CAAC,MAAM,CAAC,MAAM,CAAC,6BAAY,CAAC,CAAC,GAAG,CAAC,CAAC,CAAC,EAAE,EAAE,CAAC,CAAC,CAAC,EAAE,IAAI,CAAC,CAAC,CAAC,CACtE;QACH,CAAC,CAAC,SAAS,CAAC;AAChB,CAAC"} \ No newline at end of file diff --git a/lib/init-action.js b/lib/init-action.js index 9c7663b9fd..049dca97c0 100644 --- a/lib/init-action.js +++ b/lib/init-action.js @@ -30,7 +30,9 @@ const safe_which_1 = require("@chrisgavin/safe-which"); const uuid_1 = require("uuid"); const actions_util_1 = require("./actions-util"); const api_client_1 = require("./api-client"); +const caching_utils_1 = require("./caching-utils"); const configUtils = __importStar(require("./config-utils")); +const dependency_caching_1 = require("./dependency-caching"); const diagnostics_1 = require("./diagnostics"); const environment_1 = require("./environment"); const feature_flags_1 = require("./feature-flags"); @@ -41,7 +43,6 @@ const repository_1 = require("./repository"); const setup_codeql_1 = require("./setup-codeql"); const status_report_1 = require("./status-report"); const tools_features_1 = require("./tools-features"); -const trap_caching_1 = require("./trap-caching"); const util_1 = require("./util"); const workflow_1 = require("./workflow"); async function sendCompletedStatusReport(startedAt, config, configFile, toolsDownloadStatusReport, toolsFeatureFlagsValid, toolsSource, toolsVersion, logger, error) { @@ -111,7 +112,7 @@ async function sendCompletedStatusReport(startedAt, config, configFile, toolsDow queries: queries.join(","), packs: JSON.stringify(packs), trap_cache_languages: Object.keys(config.trapCaches).join(","), - trap_cache_download_size_bytes: Math.round(await (0, trap_caching_1.getTotalCacheSize)(config.trapCaches, logger)), + trap_cache_download_size_bytes: Math.round(await (0, caching_utils_1.getTotalCacheSize)(Object.values(config.trapCaches), logger)), trap_cache_download_duration_ms: Math.round(config.trapCacheDownloadTime), query_filters: JSON.stringify(config.originalUserInput["query-filters"] ?? []), registries: JSON.stringify(configUtils.parseRegistriesWithoutCredentials((0, actions_util_1.getOptionalInput)("registries")) ?? []), @@ -161,7 +162,7 @@ async function run() { } const codeQLDefaultVersionInfo = await features.getDefaultCliVersion(gitHubVersion.type); toolsFeatureFlagsValid = codeQLDefaultVersionInfo.toolsFeatureFlagsValid; - const initCodeQLResult = await (0, init_1.initCodeQL)((0, actions_util_1.getOptionalInput)("tools"), apiDetails, (0, actions_util_1.getTemporaryDirectory)(), gitHubVersion.type, codeQLDefaultVersionInfo, features, logger); + const initCodeQLResult = await (0, init_1.initCodeQL)((0, actions_util_1.getOptionalInput)("tools"), apiDetails, (0, actions_util_1.getTemporaryDirectory)(), gitHubVersion.type, codeQLDefaultVersionInfo, logger); codeql = initCodeQLResult.codeql; toolsDownloadStatusReport = initCodeQLResult.toolsDownloadStatusReport; toolsVersion = initCodeQLResult.toolsVersion; @@ -181,6 +182,7 @@ async function run() { dbLocation: (0, actions_util_1.getOptionalInput)("db-location"), configInput: (0, actions_util_1.getOptionalInput)("config"), trapCachingEnabled: getTrapCachingEnabled(), + dependencyCachingEnabled: (0, caching_utils_1.getDependencyCachingEnabled)(), // Debug mode is enabled if: // - The `init` Action is passed `debug: true`. // - Actions step debugging is enabled (e.g. by [enabling debug logging for a rerun](https://docs.github.com/en/actions/managing-workflow-runs/re-running-workflows-and-jobs#re-running-all-the-jobs-in-a-workflow), @@ -316,13 +318,25 @@ async function run() { core.exportVariable(envVar, "false"); } } - // For CLI versions <2.15.1, build tracing caused errors in MacOS ARM machines with + // Set CODEQL_EXTRACTOR_CPP_BUILD_MODE_NONE + if (config.languages.includes(languages_1.Language.cpp)) { + const bmnVar = "CODEQL_EXTRACTOR_CPP_BUILD_MODE_NONE"; + const value = process.env[bmnVar] || + (await features.getValue(feature_flags_1.Feature.CppBuildModeNone, codeql)); + logger.info(`Setting C++ build-mode: none to ${value}`); + core.exportVariable(bmnVar, value); + } + // Restore dependency cache(s), if they exist. + if ((0, caching_utils_1.shouldRestoreCache)(config.dependencyCachingEnabled)) { + await (0, dependency_caching_1.downloadDependencyCaches)(config.languages, logger); + } + // For CLI versions <2.15.1, build tracing caused errors in macOS ARM machines with // System Integrity Protection (SIP) disabled. if (!(await (0, util_1.codeQlVersionAtLeast)(codeql, "2.15.1")) && process.platform === "darwin" && (process.arch === "arm" || process.arch === "arm64") && !(await (0, util_1.checkSipEnablement)(logger))) { - logger.warning("CodeQL versions 2.15.0 and lower are not supported on MacOS ARM machines with System Integrity Protection (SIP) disabled."); + logger.warning("CodeQL versions 2.15.0 and lower are not supported on macOS ARM machines with System Integrity Protection (SIP) disabled."); } // From 2.16.0 the default for the python extractor is to not perform any // dependency extraction. For versions before that, you needed to set this flag to diff --git a/lib/init-action.js.map b/lib/init-action.js.map index 439890d052..975b22113a 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,uCAAyB;AACzB,2CAA6B;AAE7B,oDAAsC;AACtC,uDAAmD;AACnD,+BAAoC;AAEpC,iDAQwB;AACxB,6CAAgD;AAEhD,4DAA8C;AAC9C,+CAKuB;AACvB,+CAAuC;AACvC,mDAAoD;AACpD,iCAMgB;AAChB,2CAAuC;AACvC,uCAAqD;AACrD,6CAAkD;AAClD,iDAA6C;AAC7C,mDAMyB;AAGzB,qDAAgD;AAChD,iDAAmD;AACnD,iCAkBgB;AAChB,yCAA8C;AAmD9C,KAAK,UAAU,yBAAyB,CACtC,SAAe,EACf,M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;IAC5B,CAAC;IACD,MAAM,yBAAyB,CAC7B,SAAS,EACT,MAAM,EACN,UAAU,EACV,yBAAyB,EACzB,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,sBAAsB,CACnC,MAA0B,EAC1B,gBAAkC;IAElC,IAAA,2BAAa,EACX,MAAM;IACN,sFAAsF;IACtF,kDAAkD;IAClD,MAAM,CAAC,SAAS,CAAC,CAAC,CAAC,EACnB,IAAA,4BAAc,EACZ,iCAAiC,EACjC,wBAAwB,EACxB;QACE,UAAU,EAAE,gBAAgB;QAC5B,UAAU,EAAE;YACV,eAAe,EAAE,KAAK;YACtB,UAAU,EAAE,KAAK;YACjB,SAAS,EAAE,IAAI;SAChB;KACF,CACF,CACF,CAAC;AACJ,CAAC;AAED,KAAK,UAAU,UAAU;IACvB,IAAI,CAAC;QACH,MAAM,GAAG,EAAE,CAAC;IACd,CAAC;IAAC,OAAO,KAAK,EAAE,CAAC;QACf,IAAI,CAAC,SAAS,CAAC,uBAAuB,IAAA,sBAAe,EAAC,KAAK,CAAC,EAAE,CAAC,CAAC;IAClE,CAAC;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,uCAAyB;AACzB,2CAA6B;AA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AgB,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,sBAAsB,CACnC,MAA0B,EAC1B,gBAAkC;IAElC,IAAA,2BAAa,EACX,MAAM;IACN,sFAAsF;IACtF,kDAAkD;IAClD,MAAM,CAAC,SAAS,CAAC,CAAC,CAAC,EACnB,IAAA,4BAAc,EACZ,iCAAiC,EACjC,wBAAwB,EACxB;QACE,UAAU,EAAE,gBAAgB;QAC5B,UAAU,EAAE;YACV,eAAe,EAAE,KAAK;YACtB,UAAU,EAAE,KAAK;YACjB,SAAS,EAAE,IAAI;SAChB;KACF,CACF,CACF,CAAC;AACJ,CAAC;AAED,KAAK,UAAU,UAAU;IACvB,IAAI,CAAC;QACH,MAAM,GAAG,EAAE,CAAC;IACd,CAAC;IAAC,OAAO,KAAK,EAAE,CAAC;QACf,IAAI,CAAC,SAAS,CAAC,uBAAuB,IAAA,sBAAe,EAAC,KAAK,CAAC,EAAE,CAAC,CAAC;IAClE,CAAC;IACD,MAAM,IAAA,sBAAe,GAAE,CAAC;AAC1B,CAAC;AAED,KAAK,UAAU,EAAE,CAAC"} \ No newline at end of file diff --git a/lib/init.js b/lib/init.js index 63ec271c6f..8c0bebbb1b 100644 --- a/lib/init.js +++ b/lib/init.js @@ -40,9 +40,9 @@ const languages_1 = require("./languages"); const tools_features_1 = require("./tools-features"); const tracer_config_1 = require("./tracer-config"); const util = __importStar(require("./util")); -async function initCodeQL(toolsInput, apiDetails, tempDir, variant, defaultCliVersion, features, logger) { +async function initCodeQL(toolsInput, apiDetails, tempDir, variant, defaultCliVersion, logger) { logger.startGroup("Setup CodeQL tools"); - const { codeql, toolsDownloadStatusReport, toolsSource, toolsVersion, zstdAvailability, } = await (0, codeql_1.setupCodeQL)(toolsInput, apiDetails, tempDir, variant, defaultCliVersion, features, logger, true); + const { codeql, toolsDownloadStatusReport, toolsSource, toolsVersion, zstdAvailability, } = await (0, codeql_1.setupCodeQL)(toolsInput, apiDetails, tempDir, variant, defaultCliVersion, logger, true); await codeql.printVersion(); logger.endGroup(); return { diff --git a/lib/init.js.map b/lib/init.js.map index e3bf888d68..27a32d51d6 100644 --- a/lib/init.js.map +++ b/lib/init.js.map @@ -1 +1 @@ -{"version":3,"file":"init.js","sourceRoot":"","sources":["../src/init.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;AAoBA,gCAyCC;AAED,gCAgBC;AAED,0BAkCC;AAED,0DAeC;AAMD,sDAkBC;AAED,0EAkDC;AAhND,uCAAyB;AACzB,2CAA6B;AAE7B,yEAA2D;AAC3D,kEAAoD;AAEpD,iDAAsE;AAEtE,qCAA+C;AAC/C,4DAA8C;AAE9C,2CAA0D;AAK1D,qDAAgD;AAChD,mDAAwE;AACxE,6CAA+B;AAExB,KAAK,UAAU,UAAU,CAC9B,UAA8B,EAC9B,UAA4B,EAC5B,OAAe,EACf,OAA2B,EAC3B,iBAA2C,EAC3C,QAA2B,EAC3B,MAAc;IAQd,MAAM,CAAC,UAAU,CAAC,oBAAoB,CAAC,CAAC;IACxC,MAAM,EACJ,MAAM,EACN,yBAAyB,EACzB,WAAW,EACX,YAAY,EACZ,gBAAgB,GACjB,GAAG,MAAM,IAAA,oBAAW,EACnB,UAAU,EACV,UAAU,EACV,OAAO,EACP,OAAO,EACP,iBAAiB,EACjB,QAAQ,EACR,MAAM,EACN,IAAI,CACL,CAAC;IACF,MAAM,MAAM,CAAC,YAAY,EAAE,CAAC;IAC5B,MAAM,CAAC,QAAQ,EAAE,CAAC;IAClB,OAAO;QACL,MAAM;QACN,yBAAyB;QACzB,WAAW;QACX,YAAY;QACZ,gBAAgB;KACjB,CAAC;AACJ,CAAC;AAEM,KAAK,UAAU,UAA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} \ No newline at end of file diff --git a/lib/languages.js b/lib/languages.js index db137e40e4..449d280412 100644 --- a/lib/languages.js +++ b/lib/languages.js @@ -7,6 +7,7 @@ exports.isScannedLanguage = isScannedLanguage; // All the languages supported by CodeQL var Language; (function (Language) { + Language["actions"] = "actions"; Language["csharp"] = "csharp"; Language["cpp"] = "cpp"; Language["go"] = "go"; diff --git a/lib/languages.js.map b/lib/languages.js.map index 82855464f3..e2d6a156eb 100644 --- a/lib/languages.js.map +++ b/lib/languages.js.map @@ -1 +1 @@ -{"version":3,"file":"languages.js","sourceRoot":"","sources":["../src/languages.ts"],"names":[],"mappings":";;;AA+BA,sCAgBC;AAED,4CAQC;AAED,8CAEC;AA7DD,wCAAwC;AACxC,IAAY,QAUX;AAVD,WAAY,QAAQ;IAClB,6BAAiB,CAAA;IACjB,uBAAW,CAAA;IACX,qBAAS,CAAA;IACT,yBAAa,CAAA;IACb,qCAAyB,CAAA;IACzB,6BAAiB,CAAA;IACjB,yBAAa,CAAA;IACb,yBAAa,CAAA;IACb,2BAAe,CAAA;AACjB,CAAC,EAVW,QAAQ,wBAAR,QAAQ,QAUnB;AAED,iCAAiC;AACpB,QAAA,gBAAgB,GAAiC;IAC5D,CAAC,EAAE,QAAQ,CAAC,GAAG;IACf,KAAK,EAAE,QAAQ,CAAC,GAAG;IACnB,IAAI,EAAE,QAAQ,CAAC,MAAM;IACrB,MAAM,EAAE,QAAQ,CAAC,IAAI;IACrB,UAAU,EAAE,QAAQ,CAAC,UAAU;CAChC,CAAC;AAEF;;;;;;;;GAQG;AACH,SAAgB,aAAa,CAAC,QAAgB;IAC5C,0BAA0B;IAC1B,QAAQ,GAAG,QAAQ,CAAC,IAAI,EAAE,CAAC,WAAW,EAAE,CAAC;IAEzC,6BAA6B;IAC7B,IAAI,QAAQ,IAAI,QAAQ,EAAE,CAAC;QACzB,OAAO,QAAoB,CAAC;IAC9B,CAAC;IAED,iEAAiE;IACjE,oCAAoC;IACpC,IAAI,QAAQ,IAAI,wB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7B,IAAI,QAAQ,IAAI,QAAQ,EAAE,CAAC;QACzB,OAAO,QAAoB,CAAC;IAC9B,CAAC;IAED,iEAAiE;IACjE,oCAAoC;IACpC,IAAI,QAAQ,IAAI,wBAAgB,EAAE,CAAC;QACjC,OAAO,wBAAgB,CAAC,QAAQ,CAAC,CAAC;IACpC,CAAC;IAED,OAAO,SAAS,CAAC;AACnB,CAAC;AAED,SAAgB,gBAAgB,CAAC,QAAkB;IACjD,OAAO;QACL,QAAQ,CAAC,GAAG;QACZ,QAAQ,CAAC,MAAM;QACf,QAAQ,CAAC,EAAE;QACX,QAAQ,CAAC,IAAI;QACb,QAAQ,CAAC,KAAK;KACf,CAAC,QAAQ,CAAC,QAAQ,CAAC,CAAC;AACvB,CAAC;AAED,SAAgB,iBAAiB,CAAC,QAAkB;IAClD,OAAO,CAAC,gBAAgB,CAAC,QAAQ,CAAC,CAAC;AACrC,CAAC"} \ No newline at end of file diff --git a/lib/setup-codeql.js b/lib/setup-codeql.js index ae83583e28..065d45dcca 100644 --- a/lib/setup-codeql.js +++ b/lib/setup-codeql.js @@ -28,6 +28,7 @@ var __importDefault = (this && this.__importDefault) || function (mod) { Object.defineProperty(exports, "__esModule", { value: true }); exports.downloadCodeQL = exports.CODEQL_DEFAULT_ACTION_REPOSITORY = exports.ToolsSource = void 0; exports.getCodeQLActionRepository = getCodeQLActionRepository; +exports.tryGetTagNameFromUrl = tryGetTagNameFromUrl; exports.tryGetBundleVersionFromUrl = tryGetBundleVersionFromUrl; exports.convertToSemVer = convertToSemVer; exports.getCodeQLSource = getCodeQLSource; @@ -140,11 +141,20 @@ function tryGetBundleVersionFromTagName(tagName, logger) { return match[1]; } function tryGetTagNameFromUrl(url, logger) { - const match = url.match(/\/(codeql-bundle-.*)\//); - if (match === null || match.length < 2) { + const matches = [...url.matchAll(/\/(codeql-bundle-[^/]*)\//g)]; + if (!matches.length) { logger.debug(`Could not determine tag name for URL ${url}.`); return undefined; } + // Example: https://github.com/org/codeql-bundle-testing/releases/download/codeql-bundle-v2.19.0/codeql-bundle-linux64.tar.zst + // We require a trailing forward slash to be part of the match, so the last match gives us the tag + // name. An alternative approach would be to also match against `/releases/`, but this approach + // assumes less about the structure of the URL. + const match = matches[matches.length - 1]; + if (match === null || match.length !== 2) { + logger.debug(`Could not determine tag name for URL ${url}. Matched ${JSON.stringify(match)}.`); + return undefined; + } return match[1]; } function tryGetBundleVersionFromUrl(url, logger) { @@ -195,7 +205,7 @@ async function findOverridingToolsInCache(humanReadableVersion, logger) { } return undefined; } -async function getCodeQLSource(toolsInput, defaultCliVersion, apiDetails, variant, tarSupportsZstd, features, logger) { +async function getCodeQLSource(toolsInput, defaultCliVersion, apiDetails, variant, tarSupportsZstd, logger) { if (toolsInput && !CODEQL_BUNDLE_VERSION_ALIAS.includes(toolsInput) && !toolsInput.startsWith("http")) { @@ -219,10 +229,9 @@ async function getCodeQLSource(toolsInput, defaultCliVersion, apiDetails, varian */ const forceShippedTools = toolsInput && CODEQL_BUNDLE_VERSION_ALIAS.includes(toolsInput); if (forceShippedTools) { - logger.info(`Overriding the version of the CodeQL tools by ${defaultCliVersion.cliVersion}, the version shipped with the Action since ` + - `tools: ${toolsInput} was requested.`); + logger.info(`'tools: ${toolsInput}' was requested, so using CodeQL version ${defaultCliVersion.cliVersion}, the version shipped with the Action.`); if (toolsInput === "latest") { - logger.warning("`tools: latest` has been renamed to `tools: linked`, but the old name is still supported for now. No action is required."); + logger.warning("`tools: latest` has been renamed to `tools: linked`, but the old name is still supported. No action is required."); } } /** CLI version number, for example 2.12.6. */ @@ -338,7 +347,7 @@ async function getCodeQLSource(toolsInput, defaultCliVersion, apiDetails, varian } if (!url) { url = await getCodeQLBundleDownloadURL(tagName, apiDetails, cliVersion !== undefined && - (await useZstdBundle(cliVersion, features, tarSupportsZstd)), logger); + (await useZstdBundle(cliVersion, tarSupportsZstd)), logger); } if (cliVersion) { logger.info(`Using CodeQL CLI version ${cliVersion} sourced from ${url} .`); @@ -370,7 +379,7 @@ async function tryGetFallbackToolcacheVersion(cliVersion, tagName, logger) { } // Exported using `export const` for testing purposes. Specifically, we want to // be able to stub this function and have other functions in this file use that stub. -const downloadCodeQL = async function (codeqlURL, maybeBundleVersion, maybeCliVersion, apiDetails, tarVersion, tempDir, features, logger) { +const downloadCodeQL = async function (codeqlURL, maybeBundleVersion, maybeCliVersion, apiDetails, tarVersion, tempDir, logger) { const parsedCodeQLURL = new URL(codeqlURL); const searchParams = new URLSearchParams(parsedCodeQLURL.search); const headers = { @@ -392,7 +401,7 @@ const downloadCodeQL = async function (codeqlURL, maybeBundleVersion, maybeCliVe else { logger.debug("Downloading CodeQL tools without an authorization token."); } - const { extractedBundlePath, statusReport } = await (0, tools_download_1.downloadAndExtract)(codeqlURL, authorization, { "User-Agent": "CodeQL Action", ...headers }, tarVersion, tempDir, features, logger); + const { extractedBundlePath, statusReport } = await (0, tools_download_1.downloadAndExtract)(codeqlURL, authorization, { "User-Agent": "CodeQL Action", ...headers }, tarVersion, tempDir, 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 " + @@ -453,36 +462,9 @@ function getCanonicalToolcacheVersion(cliVersion, bundleVersion, logger) { * * @returns the path to the extracted bundle, and the version of the tools */ -async function setupCodeQLBundle(toolsInput, apiDetails, tempDir, variant, defaultCliVersion, features, logger) { +async function setupCodeQLBundle(toolsInput, apiDetails, tempDir, variant, defaultCliVersion, logger) { const zstdAvailability = await tar.isZstdAvailable(logger); - let zstdFailureReason; - // If we think the installed version of tar supports zstd, try to use zstd, - // but be prepared to fall back to gzip in case we were wrong. - if (zstdAvailability.available) { - try { - // To facilitate testing the fallback, fail here if a testing environment variable is set. - if (process.env.CODEQL_ACTION_FORCE_ZSTD_FAILURE === "true") { - throw new Error("Failing since CODEQL_ACTION_FORCE_ZSTD_FAILURE is true."); - } - return await setupCodeQLBundleWithCompressionMethod(toolsInput, apiDetails, tempDir, variant, defaultCliVersion, features, logger, zstdAvailability, true); - } - catch (e) { - zstdFailureReason = util.getErrorMessage(e) || "unknown error"; - if (e instanceof actions_util_1.CommandInvocationError) { - zstdFailureReason += ` Full error: ${e.stderr}`; - logger.debug(`Invocation output the following to stderr: ${e.stderr}`); - } - logger.warning(`Failed to set up CodeQL tools with zstd. Falling back to gzipped version. Error: ${util.getErrorMessage(e)}`); - } - } - const result = await setupCodeQLBundleWithCompressionMethod(toolsInput, apiDetails, tempDir, variant, defaultCliVersion, features, logger, zstdAvailability, false); - if (result.toolsDownloadStatusReport && zstdFailureReason) { - result.toolsDownloadStatusReport.zstdFailureReason = zstdFailureReason; - } - return result; -} -async function setupCodeQLBundleWithCompressionMethod(toolsInput, apiDetails, tempDir, variant, defaultCliVersion, features, logger, zstdAvailability, useTarIfAvailable) { - const source = await getCodeQLSource(toolsInput, defaultCliVersion, apiDetails, variant, useTarIfAvailable, features, logger); + const source = await getCodeQLSource(toolsInput, defaultCliVersion, apiDetails, variant, zstdAvailability.available, logger); let codeqlFolder; let toolsVersion = source.toolsVersion; let toolsDownloadStatusReport; @@ -500,7 +482,7 @@ async function setupCodeQLBundleWithCompressionMethod(toolsInput, apiDetails, te toolsSource = ToolsSource.Toolcache; break; case "download": { - const result = await (0, exports.downloadCodeQL)(source.codeqlURL, source.bundleVersion, source.cliVersion, apiDetails, zstdAvailability.version, tempDir, features, logger); + const result = await (0, exports.downloadCodeQL)(source.codeqlURL, source.bundleVersion, source.cliVersion, apiDetails, zstdAvailability.version, tempDir, logger); toolsVersion = result.toolsVersion; codeqlFolder = result.codeqlFolder; toolsDownloadStatusReport = result.statusReport; @@ -518,12 +500,11 @@ async function setupCodeQLBundleWithCompressionMethod(toolsInput, apiDetails, te zstdAvailability, }; } -async function useZstdBundle(cliVersion, features, tarSupportsZstd) { +async function useZstdBundle(cliVersion, tarSupportsZstd) { return ( // In testing, gzip performs better than zstd on Windows. process.platform !== "win32" && tarSupportsZstd && - semver.gte(cliVersion, feature_flags_1.CODEQL_VERSION_ZSTD_BUNDLE) && - !!(await features.getValue(feature_flags_1.Feature.ZstdBundle))); + semver.gte(cliVersion, feature_flags_1.CODEQL_VERSION_ZSTD_BUNDLE)); } //# 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 11f4c5b056..2b91a09ec2 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":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;AA0DA,8DAYC;AA+ED,gEASC;AAED,0CAcC;AAiED,0CA6NC;AAMD,wEAeC;AAoGD,kDAQC;AA2CD,8CA8DC;AAtrBD,uCAAyB;AAEzB,2CAA6B;AAC7B,2CAAyC;AAEzC,+DAAiD;AACjD,sEAAuD;AACvD,+CAAiC;AAEjC,iDAA8E;AAC9E,kDAAoC;AACpC,0DAA4C;AAC5C,mDAKyB;AACzB,uCAAmD;AACnD,2CAA6B;AAC7B,qDAG0B;AAC1B,6CAA+B;AAC/B,iCAAoD;AAEpD,IAAY,WAKX;AALD,WAAY,WAAW;IACrB,kCAAmB,CAAA;IACnB,8BAAe,CAAA;IACf,sCAAuB,CAAA;IACvB,oCAAqB,CAAA;AACvB,CAAC,EALW,WAAW,2BAAX,WAAW,QAKtB;AAEY,QAAA,gCAAgC,GAAG,sBAAsB,CAAC;AAEvE,MAAM,2BAA2B,GAAa,CAAC,QAAQ,EAAE,QAAQ,CAAC,CAAC;AAEnE,SAAS,wBAAwB,CAAC,OAAgB;IAChD,OAAO,OAAO,CAAC,CAAC,CAAC,UAAU,CAAC,CAAC,CAAC,SAAS,CAAC;AAC1C,CAAC;AAED,SAAS,mBAAmB,CAAC,OAAgB;IAC3C,MAAM,SAAS,GAAG,wBAAwB,CAAC,OAAO,CAAC,CAAC;IAEpD,IAAI,QAAgB,CA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AM;QACR,CAAC;QACD;YACE,IAAI,CAAC,WAAW,CAAC,MAAM,CAAC,CAAC;IAC7B,CAAC;IACD,OAAO;QACL,YAAY;QACZ,yBAAyB;QACzB,WAAW;QACX,YAAY;QACZ,gBAAgB;KACjB,CAAC;AACJ,CAAC;AAED,KAAK,UAAU,aAAa,CAC1B,UAAkB,EAClB,QAA2B,EAC3B,eAAwB;IAExB,OAAO;IACL,yDAAyD;IACzD,OAAO,CAAC,QAAQ,KAAK,OAAO;QAC5B,eAAe;QACf,MAAM,CAAC,GAAG,CAAC,UAAU,EAAE,0CAA0B,CAAC;QAClD,CAAC,CAAC,CAAC,MAAM,QAAQ,CAAC,QAAQ,CAAC,uBAAO,CAAC,UAAU,CAAC,CAAC,CAChD,CAAC;AACJ,CAAC"} \ No newline at end of file +{"version":3,"file":"setup-codeql.js","sourceRoot":"","sources":["../src/setup-codeql.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAwDA,8DAYC;AAsED,oDAyBC;AAED,gEASC;AAED,0CAcC;AAiED,0CA2NC;AAMD,wEAeC;AAkGD,kDAQC;AA0CD,8CAoEC;AAvsBD,uCAAyB;AAEzB,2CAA6B;AAC7B,2CAAyC;AAEzC,+DAAiD;AACjD,sEAAuD;AACvD,+CAAiC;AAEjC,iDAAsD;AACtD,kDAAoC;AACpC,0DAA4C;AAC5C,mDAGyB;AACzB,uCAAmD;AACnD,2CAA6B;AAC7B,qDAG0B;AAC1B,6CAA+B;AAC/B,iCAAoD;AAEpD,IAAY,WAKX;AALD,WAAY,WAAW;IACrB,kCAAmB,CAAA;IACnB,8BAAe,CAAA;IACf,sCAAuB,CAAA;IACvB,oCAAqB,CAAA;AACvB,CAAC,EALW,WAAW,2BAAX,WAAW,QAKtB;AAEY,QAAA,gCAAgC,GAAG,sBAAsB,CAAC;AAEvE,MAAM,2BAA2B,GAAa,CAAC,QAAQ,EAAE,QAAQ,CAAC,CAAC;AAEnE,SAAS,wBAAwB,CAAC,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AAC,CAAC;YAChB,MAAM,MAAM,GAAG,MAAM,IAAA,sBAAc,EACjC,MAAM,CAAC,SAAS,EAChB,MAAM,CAAC,aAAa,EACpB,MAAM,CAAC,UAAU,EACjB,UAAU,EACV,gBAAgB,CAAC,OAAO,EACxB,OAAO,EACP,MAAM,CACP,CAAC;YACF,YAAY,GAAG,MAAM,CAAC,YAAY,CAAC;YACnC,YAAY,GAAG,MAAM,CAAC,YAAY,CAAC;YACnC,yBAAyB,GAAG,MAAM,CAAC,YAAY,CAAC;YAChD,WAAW,GAAG,WAAW,CAAC,QAAQ,CAAC;YACnC,MAAM;QACR,CAAC;QACD;YACE,IAAI,CAAC,WAAW,CAAC,MAAM,CAAC,CAAC;IAC7B,CAAC;IACD,OAAO;QACL,YAAY;QACZ,yBAAyB;QACzB,WAAW;QACX,YAAY;QACZ,gBAAgB;KACjB,CAAC;AACJ,CAAC;AAED,KAAK,UAAU,aAAa,CAC1B,UAAkB,EAClB,eAAwB;IAExB,OAAO;IACL,yDAAyD;IACzD,OAAO,CAAC,QAAQ,KAAK,OAAO;QAC5B,eAAe;QACf,MAAM,CAAC,GAAG,CAAC,UAAU,EAAE,0CAA0B,CAAC,CACnD,CAAC;AACJ,CAAC"} \ No newline at end of file diff --git a/lib/setup-codeql.test.js b/lib/setup-codeql.test.js index 9db6a3127a..9f41fd7cd1 100644 --- a/lib/setup-codeql.test.js +++ b/lib/setup-codeql.test.js @@ -79,7 +79,7 @@ ava_1.default.beforeEach(() => { (0, testing_utils_1.setupActionsVars)(tmpDir, tmpDir); const tagName = "codeql-bundle-v1.2.3"; (0, testing_utils_1.mockBundleDownloadApi)({ tagName }); - const source = await setupCodeql.getCodeQLSource(`https://github.com/github/codeql-action/releases/download/${tagName}/codeql-bundle-linux64.tar.gz`, testing_utils_1.SAMPLE_DEFAULT_CLI_VERSION, testing_utils_1.SAMPLE_DOTCOM_API_DETAILS, util_1.GitHubVariant.DOTCOM, false, (0, testing_utils_1.createFeatures)([]), (0, logging_1.getRunnerLogger)(true)); + const source = await setupCodeql.getCodeQLSource(`https://github.com/github/codeql-action/releases/download/${tagName}/codeql-bundle-linux64.tar.gz`, testing_utils_1.SAMPLE_DEFAULT_CLI_VERSION, testing_utils_1.SAMPLE_DOTCOM_API_DETAILS, util_1.GitHubVariant.DOTCOM, false, (0, logging_1.getRunnerLogger)(true)); t.is(source.sourceType, "download"); t.is(source["cliVersion"], "1.2.3"); }); @@ -87,7 +87,7 @@ ava_1.default.beforeEach(() => { (0, ava_1.default)("getCodeQLSource correctly returns bundled CLI version when tools == linked", async (t) => { await (0, util_1.withTmpDir)(async (tmpDir) => { (0, testing_utils_1.setupActionsVars)(tmpDir, tmpDir); - const source = await setupCodeql.getCodeQLSource("linked", testing_utils_1.SAMPLE_DEFAULT_CLI_VERSION, testing_utils_1.SAMPLE_DOTCOM_API_DETAILS, util_1.GitHubVariant.DOTCOM, false, (0, testing_utils_1.createFeatures)([]), (0, logging_1.getRunnerLogger)(true)); + const source = await setupCodeql.getCodeQLSource("linked", testing_utils_1.SAMPLE_DEFAULT_CLI_VERSION, testing_utils_1.SAMPLE_DOTCOM_API_DETAILS, util_1.GitHubVariant.DOTCOM, false, (0, logging_1.getRunnerLogger)(true)); t.is(source.toolsVersion, testing_utils_1.LINKED_CLI_VERSION.cliVersion); t.is(source.sourceType, "download"); }); @@ -97,13 +97,13 @@ ava_1.default.beforeEach(() => { const logger = (0, testing_utils_1.getRecordingLogger)(loggedMessages); await (0, util_1.withTmpDir)(async (tmpDir) => { (0, testing_utils_1.setupActionsVars)(tmpDir, tmpDir); - const source = await setupCodeql.getCodeQLSource("latest", testing_utils_1.SAMPLE_DEFAULT_CLI_VERSION, testing_utils_1.SAMPLE_DOTCOM_API_DETAILS, util_1.GitHubVariant.DOTCOM, false, (0, testing_utils_1.createFeatures)([]), logger); + const source = await setupCodeql.getCodeQLSource("latest", testing_utils_1.SAMPLE_DEFAULT_CLI_VERSION, testing_utils_1.SAMPLE_DOTCOM_API_DETAILS, util_1.GitHubVariant.DOTCOM, false, logger); // First, ensure that the CLI version is the linked version, so that backwards // compatibility is maintained. t.is(source.toolsVersion, testing_utils_1.LINKED_CLI_VERSION.cliVersion); t.is(source.sourceType, "download"); // Afterwards, ensure that we see the deprecation message in the log. - const expected_message = "`tools: latest` has been renamed to `tools: linked`, but the old name is still supported for now. No action is required."; + const expected_message = "`tools: latest` has been renamed to `tools: linked`, but the old name is still supported. No action is required."; t.assert(loggedMessages.some((msg) => typeof msg.message === "string" && msg.message.includes(expected_message))); }); @@ -127,7 +127,7 @@ ava_1.default.beforeEach(() => { }); await (0, util_1.withTmpDir)(async (tmpDir) => { (0, testing_utils_1.setupActionsVars)(tmpDir, tmpDir); - const result = await setupCodeql.setupCodeQLBundle("linked", testing_utils_1.SAMPLE_DOTCOM_API_DETAILS, "tmp/codeql_action_test/", util_1.GitHubVariant.DOTCOM, testing_utils_1.SAMPLE_DEFAULT_CLI_VERSION, (0, testing_utils_1.createFeatures)([]), logger); + const result = await setupCodeql.setupCodeQLBundle("linked", testing_utils_1.SAMPLE_DOTCOM_API_DETAILS, "tmp/codeql_action_test/", util_1.GitHubVariant.DOTCOM, testing_utils_1.SAMPLE_DEFAULT_CLI_VERSION, logger); // Basic sanity check that the version we got back is indeed // the linked (default) CLI version. t.is(result.toolsVersion, testing_utils_1.LINKED_CLI_VERSION.cliVersion); @@ -158,7 +158,7 @@ ava_1.default.beforeEach(() => { }); await (0, util_1.withTmpDir)(async (tmpDir) => { (0, testing_utils_1.setupActionsVars)(tmpDir, tmpDir); - const result = await setupCodeql.setupCodeQLBundle(bundleUrl, testing_utils_1.SAMPLE_DOTCOM_API_DETAILS, "tmp/codeql_action_test/", util_1.GitHubVariant.DOTCOM, testing_utils_1.SAMPLE_DEFAULT_CLI_VERSION, (0, testing_utils_1.createFeatures)([]), logger); + const result = await setupCodeql.setupCodeQLBundle(bundleUrl, testing_utils_1.SAMPLE_DOTCOM_API_DETAILS, "tmp/codeql_action_test/", util_1.GitHubVariant.DOTCOM, testing_utils_1.SAMPLE_DEFAULT_CLI_VERSION, logger); // Basic sanity check that the version we got back is indeed the version that the // bundle contains.. t.is(result.toolsVersion, expectedVersion); @@ -168,4 +168,7 @@ ava_1.default.beforeEach(() => { msg.message.includes(expected_message))); }); }); +(0, ava_1.default)('tryGetTagNameFromUrl extracts the right tag name for a repo name containing "codeql-bundle"', (t) => { + t.is(setupCodeql.tryGetTagNameFromUrl("https://github.com/org/codeql-bundle-testing/releases/download/codeql-bundle-v2.19.0/codeql-bundle-linux64.tar.zst", (0, logging_1.getRunnerLogger)(true)), "codeql-bundle-v2.19.0"); +}); //# sourceMappingURL=setup-codeql.test.js.map \ No newline at end of file diff --git a/lib/setup-codeql.test.js.map b/lib/setup-codeql.test.js.map index 28eea8adcc..23b74c70f4 100644 --- a/lib/setup-codeql.test.js.map +++ b/lib/setup-codeql.test.js.map @@ -1 +1 @@ -{"version":3,"file":"setup-codeql.test.js","sourceRoot":"","sources":["../src/setup-codeql.test.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;AAAA,2CAA6B;AAE7B,8CAAuB;AACvB,6CAA+B;AAE/B,4DAA8C;AAC9C,uCAA4C;AAC5C,4DAA8C;AAC9C,mDAUyB;AACzB,iCAKgB;AAEhB,IAAA,0BAAU,EAAC,aAAI,CAAC,CAAC;AAEjB,aAAI,CAAC,UAAU,CAAC,GAAG,EAAE;IACnB,IAAA,4BAAqB,EAAC,OAAO,CAAC,CAAC;AACjC,CAAC,CAAC,CAAC;AAEH,IAAA,aAAI,EAAC,iCAAiC,EAAE,CAAC,CAAC,EAAE,EAAE;IAC5C,CAAC,CAAC,SAAS,CACT,WAAW,CAAC,mBAAmB,CAC7B,mDAAmD,CACpD,EACD,UAAU,CACX,CAAC;AACJ,CAAC,CAAC,CAAC;AAEH,IAAA,aAAI,EAAC,mBAAmB,EAAE,CAAC,CAAC,EAAE,EAAE;IAC9B,MAAM,KAAK,GAAG;QACZ,UAAU,EAAE,gBA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B;QACD,YAAY,EAAE,eAAe;KAC9B,CAAC,CAAC;IAEH,MAAM,IAAA,iBAAU,EAAC,KAAK,EAAE,MAAM,EAAE,EAAE;QAChC,IAAA,gCAAgB,EAAC,MAAM,EAAE,MAAM,CAAC,CAAC;QACjC,MAAM,MAAM,GAAG,MAAM,WAAW,CAAC,iBAAiB,CAChD,SAAS,EACT,yCAAyB,EACzB,yBAAyB,EACzB,oBAAa,CAAC,MAAM,EACpB,0CAA0B,EAC1B,MAAM,CACP,CAAC;QAEF,iFAAiF;QACjF,oBAAoB;QACpB,CAAC,CAAC,EAAE,CAAC,MAAM,CAAC,YAAY,EAAE,eAAe,CAAC,CAAC;QAE3C,sEAAsE;QACtE,MAAM,gBAAgB,GAAW,gDAAgD,SAAS,IAAI,CAAC;QAC/F,CAAC,CAAC,MAAM,CACN,cAAc,CAAC,IAAI,CACjB,CAAC,GAAG,EAAE,EAAE,CACN,OAAO,GAAG,CAAC,OAAO,KAAK,QAAQ;YAC/B,GAAG,CAAC,OAAO,CAAC,QAAQ,CAAC,gBAAgB,CAAC,CACzC,CACF,CAAC;IACJ,CAAC,CAAC,CAAC;AACL,CAAC,CAAC,CAAC;AAEH,IAAA,aAAI,EAAC,6FAA6F,EAAE,CAAC,CAAC,EAAE,EAAE;IACxG,CAAC,CAAC,EAAE,CACF,WAAW,CAAC,oBAAoB,CAC9B,oHAAoH,EACpH,IAAA,yBAAe,EAAC,IAAI,CAAC,CACtB,EACD,uBAAuB,CACxB,CAAC;AACJ,CAAC,CAAC,CAAC"} \ No newline at end of file diff --git a/lib/tar.js b/lib/tar.js index a0eb2fe9cc..9c6e21e510 100644 --- a/lib/tar.js +++ b/lib/tar.js @@ -33,6 +33,7 @@ exports.inferCompressionMethod = inferCompressionMethod; const child_process_1 = require("child_process"); const fs = __importStar(require("fs")); const path_1 = __importDefault(require("path")); +const stream = __importStar(require("stream")); const toolrunner_1 = require("@actions/exec/lib/toolrunner"); const toolcache = __importStar(require("@actions/tool-cache")); const safe_which_1 = require("@chrisgavin/safe-which"); @@ -123,18 +124,21 @@ async function extract(tarPath, compressionMethod, tarVersion, logger) { if (!tarVersion) { throw new Error("Could not determine tar version, which is required to extract a Zstandard archive."); } - return await extractTarZst(fs.createReadStream(tarPath), tarVersion, logger); + return await extractTarZst(tarPath, tarVersion, logger); } } /** * Extract a compressed tar archive * - * @param file path to the tar + * @param tar tar stream, or path to the tar * @param dest destination directory. Optional. * @returns path to the destination directory */ -async function extractTarZst(tarStream, tarVersion, logger) { +async function extractTarZst(tar, tarVersion, logger) { const dest = await createExtractFolder(); + logger.debug(`Extracting to ${dest}.${tar instanceof stream.Readable + ? ` Input stream has high water mark ${tar.readableHighWaterMark}.` + : ""}`); try { // Initialize args const args = ["-x", "--zstd"]; @@ -143,7 +147,7 @@ async function extractTarZst(tarStream, tarVersion, logger) { args.push("--warning=no-unknown-keyword"); args.push("--overwrite"); } - args.push("-f", "-", "-C", dest); + args.push("-f", tar instanceof stream.Readable ? "-" : tar, "-C", dest); process.stdout.write(`[command]tar ${args.join(" ")}\n`); const tarProcess = (0, child_process_1.spawn)("tar", args, { stdio: "pipe" }); let stdout = ""; @@ -157,7 +161,9 @@ async function extractTarZst(tarStream, tarVersion, logger) { // Mimic the standard behavior of the toolrunner by writing stderr to stdout process.stdout.write(data); }); - tarStream.pipe(tarProcess.stdin); + if (tar instanceof stream.Readable) { + tar.pipe(tarProcess.stdin); + } await new Promise((resolve, reject) => { tarProcess.on("exit", (code) => { if (code !== 0) { diff --git a/lib/tar.js.map b/lib/tar.js.map index 197481a0b5..261637964d 100644 --- a/lib/tar.js.map +++ b/lib/tar.js.map @@ -1 +1 @@ -{"version":3,"file":"tar.js","sourceRoot":"","sources":["../src/tar.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;AA2EA,0CA+BC;AAID,0BAuBC;AASD,sCA2DC;AAQD,wDAKC;AAtND,iDAAsC;AACtC,uCAAyB;AACzB,gDAAwB;AAGxB,6DAA0D;AA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1D,EAAE,CAAC,SAAS,CAAC,IAAI,EAAE,EAAE,SAAS,EAAE,IAAI,EAAE,CAAC,CAAC;IACxC,OAAO,IAAI,CAAC;AACd,CAAC;AAED,SAAgB,sBAAsB,CAAC,OAAe;IACpD,IAAI,OAAO,CAAC,QAAQ,CAAC,SAAS,CAAC,EAAE,CAAC;QAChC,OAAO,MAAM,CAAC;IAChB,CAAC;IACD,OAAO,MAAM,CAAC;AAChB,CAAC"} \ No newline at end of file diff --git a/lib/testing-utils.js b/lib/testing-utils.js index 15169770e9..e4175103f7 100644 --- a/lib/testing-utils.js +++ b/lib/testing-utils.js @@ -243,13 +243,17 @@ function mockBundleDownloadApi({ apiDetails = exports.SAMPLE_DOTCOM_API_DETAILS, ? "linux64" : "osx64"; const baseUrl = apiDetails?.url ?? "https://example.com"; - const relativeUrl = apiDetails - ? `/${repo}/releases/download/${tagName}/codeql-bundle${platformSpecific ? `-${platform}` : ""}.tar.gz` - : `/download/${tagName}/codeql-bundle.tar.gz`; - (0, nock_1.default)(baseUrl) - .get(relativeUrl) - .replyWithFile(200, path_1.default.join(__dirname, `/../src/testdata/codeql-bundle${isPinned ? "-pinned" : ""}.tar.gz`)); - return `${baseUrl}${relativeUrl}`; + const bundleUrls = ["tar.gz", "tar.zst"].map((extension) => { + const relativeUrl = apiDetails + ? `/${repo}/releases/download/${tagName}/codeql-bundle${platformSpecific ? `-${platform}` : ""}.${extension}` + : `/download/${tagName}/codeql-bundle.${extension}`; + (0, nock_1.default)(baseUrl) + .get(relativeUrl) + .replyWithFile(200, path_1.default.join(__dirname, `/../src/testdata/codeql-bundle${isPinned ? "-pinned" : ""}.${extension}`)); + return `${baseUrl}${relativeUrl}`; + }); + // Choose an arbitrary URL to return + return bundleUrls[0]; } function createTestConfig(overrides) { return Object.assign({}, { @@ -271,6 +275,7 @@ function createTestConfig(overrides) { }, trapCaches: {}, trapCacheDownloadTime: 0, + dependencyCachingEnabled: false, }, overrides); } //# sourceMappingURL=testing-utils.js.map \ No newline at end of file diff --git a/lib/testing-utils.js.map b/lib/testing-utils.js.map index 7ad9b1066b..e15bd03696 100644 --- a/lib/testing-utils.js.map +++ b/lib/testing-utils.js.map @@ -1 +1 @@ -{"version":3,"file":"testing-utils.js","sourceRoot":"","sources":["../src/testing-utils.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAkFA,gCAoDC;AAID,4CAIC;AAOD,gDA0BC;AAGD,gEAwBC;AAED,kDAqBC;AAaD,8CASC;AAOD,wCASC;AAQD,sDAsCC;AAED,4CAyBC;AAhVD,yCAAwC;AACxC,gDAAwB;AAExB,wDAA0C;AAE1C,gDAAwB;AACxB,6CAA+B;AAE/B,wDAA0C;AAE1C,iDAAmC;AAEnC,0DAA4C;AAO5C,iCAMgB;AAEH,QAAA,yBAAyB,GAAG;IACvC,IAAI,EAAE,OAAO;IACb,GAAG,EAAE,oBAAoB;IACzB,MAAM,EAAE,wBAAwB;CACjC,CAAC;AAEW,QAAA,0BAA0B,GAA6B;IAClE,UAAU,EAAE,QAAQ;IACpB,OAAO,EAAE,uBAAuB;CACjC,CAAC;AAEW,QAAA,kBAAkB,GAAG;IAChC,UAAU,EAAE,QAAQ,CAAC,UAAU;IAC/B,OAAO,EAAE,QAAQ,CAAC,aAAa;CAChC,CAAC;AASF,SAAS,UAAU,CAAC,OAAoB;IACtC,8CAA8C;IAC9C,gCAAgC;IAChC,2EAA2E;IAC3E,2FAA2F;IAC3F,OAAO,CACL,KAA0B,EAC1B,QAAiB,EACjB,EAA0B,EACjB,EAAE;QACX,2CAA2C;QAC3C,IAAI,EAAE,KAAK,SAAS,IAAI,OAAO,QAAQ,KAAK,UAAU,EAAE,CAAC;YACvD,EAAE,GAAG,QAAQ,CAAC;YACd,QAAQ,GAAG,SAAS,CAAC;QACvB,CAAC;QAED,oBAAoB;QACpB,IAAI,OAAO,KAAK,KAAK,QAAQ,EAAE,CAAC;YAC9B,OAAO,CAAC,UAAU,IAAI,KAAK,CAAC;QAC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QACX,CAAC,CAAC,aAAa,OAAO,uBAAuB,CAAC;IAEhD,IAAA,cAAI,EAAC,OAAO,CAAC;SACV,GAAG,CAAC,WAAW,CAAC;SAChB,aAAa,CACZ,GAAG,EACH,cAAI,CAAC,IAAI,CACP,SAAS,EACT,iCAAiC,QAAQ,CAAC,CAAC,CAAC,SAAS,CAAC,CAAC,CAAC,EAAE,SAAS,CACpE,CACF,CAAC;IAEJ,OAAO,GAAG,OAAO,GAAG,WAAW,EAAE,CAAC;AACpC,CAAC;AAED,SAAgB,gBAAgB,CAAC,SAA0B;IACzD,OAAO,MAAM,CAAC,MAAM,CAClB,EAAE,EACF;QACE,SAAS,EAAE,EAAE;QACb,SAAS,EAAE,SAAS;QACpB,iBAAiB,EAAE,EAAE;QACrB,OAAO,EAAE,EAAE;QACX,SAAS,EAAE,EAAE;QACb,aAAa,EAAE;YACb,IAAI,EAAE,oBAAa,CAAC,MAAM;SACV;QAClB,UAAU,EAAE,EAAE;QACd,SAAS,EAAE,KAAK;QAChB,iBAAiB,EAAE,kCAA2B;QAC9C,iBAAiB,EAAE,kCAA2B;QAC9C,sBAAsB,EAAE;YACtB,kBAAkB,EAAE,KAAK;YACzB,oBAAoB,EAAE,KAAK;SAC5B;QACD,UAAU,EAAE,EAAE;QACd,qBAAqB,EAAE,CAAC;KACzB,EACD,SAAS,CACV,CAAC;AACJ,CAAC"} \ No newline at end of file +{"version":3,"file":"testing-utils.js","sourceRoot":"","sources":["../src/testing-utils.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAkFA,gCAoDC;AAID,4CAIC;AAOD,gDA0BC;AAGD,gEAwBC;AAED,kDAqBC;AAaD,8CASC;AAOD,wCASC;AAQD,sDA6CC;AAED,4CA0BC;AAxVD,yCAAwC;AACxC,gDAAwB;AAExB,wDAA0C;AAE1C,gDAAwB;AACxB,6CAA+B;AAE/B,wDAA0C;AAE1C,iDAAmC;AAEnC,0DAA4C;AAO5C,iCAMgB;AAEH,Q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AU,CAAC,CAAC,CAAC,CAAC;AACvB,CAAC;AAED,SAAgB,gBAAgB,CAAC,SAA0B;IACzD,OAAO,MAAM,CAAC,MAAM,CAClB,EAAE,EACF;QACE,SAAS,EAAE,EAAE;QACb,SAAS,EAAE,SAAS;QACpB,iBAAiB,EAAE,EAAE;QACrB,OAAO,EAAE,EAAE;QACX,SAAS,EAAE,EAAE;QACb,aAAa,EAAE;YACb,IAAI,EAAE,oBAAa,CAAC,MAAM;SACV;QAClB,UAAU,EAAE,EAAE;QACd,SAAS,EAAE,KAAK;QAChB,iBAAiB,EAAE,kCAA2B;QAC9C,iBAAiB,EAAE,kCAA2B;QAC9C,sBAAsB,EAAE;YACtB,kBAAkB,EAAE,KAAK;YACzB,oBAAoB,EAAE,KAAK;SAC5B;QACD,UAAU,EAAE,EAAE;QACd,qBAAqB,EAAE,CAAC;QACxB,wBAAwB,EAAE,KAAK;KAChC,EACD,SAAS,CACV,CAAC;AACJ,CAAC"} \ No newline at end of file diff --git a/lib/tools-download.js b/lib/tools-download.js index 468be6459a..d20a58be21 100644 --- a/lib/tools-download.js +++ b/lib/tools-download.js @@ -23,16 +23,20 @@ var __importStar = (this && this.__importStar) || function (mod) { return result; }; Object.defineProperty(exports, "__esModule", { value: true }); +exports.STREAMING_HIGH_WATERMARK_BYTES = void 0; exports.downloadAndExtract = downloadAndExtract; const path = __importStar(require("path")); const perf_hooks_1 = require("perf_hooks"); const toolcache = __importStar(require("@actions/tool-cache")); const follow_redirects_1 = require("follow-redirects"); const uuid_1 = require("uuid"); -const feature_flags_1 = require("./feature-flags"); const logging_1 = require("./logging"); const tar = __importStar(require("./tar")); const util_1 = require("./util"); +/** + * High watermark to use when streaming the download and extraction of the CodeQL tools. + */ +exports.STREAMING_HIGH_WATERMARK_BYTES = 4 * 1024 * 1024; // 4 MiB function makeDownloadFirstToolsDownloadDurations(downloadDurationMs, extractionDurationMs) { return { combinedDurationMs: downloadDurationMs + extractionDurationMs, @@ -49,11 +53,10 @@ function makeStreamedToolsDownloadDurations(combinedDurationMs) { streamExtraction: true, }; } -async function downloadAndExtract(codeqlURL, authorization, headers, tarVersion, tempDir, features, logger) { +async function downloadAndExtract(codeqlURL, authorization, headers, tarVersion, tempDir, logger) { logger.info(`Downloading CodeQL tools from ${codeqlURL} . This may take a while.`); const compressionMethod = tar.inferCompressionMethod(codeqlURL); - if (compressionMethod === "zstd" && - (await features.getValue(feature_flags_1.Feature.ZstdBundleStreamingExtraction))) { + if (compressionMethod === "zstd" && process.platform === "linux") { logger.info(`Streaming the extraction of the CodeQL bundle.`); const toolsInstallStart = perf_hooks_1.performance.now(); const extractedBundlePath = await downloadAndExtractZstdWithStreaming(codeqlURL, authorization, headers, tarVersion, logger); @@ -96,7 +99,10 @@ async function downloadAndExtract(codeqlURL, authorization, headers, tarVersion, } async function downloadAndExtractZstdWithStreaming(codeqlURL, authorization, headers, tarVersion, logger) { headers = Object.assign({ "User-Agent": "CodeQL Action", authorization }, headers); - const response = await new Promise((resolve) => follow_redirects_1.https.get(codeqlURL, { headers }, (r) => resolve(r))); + const response = await new Promise((resolve) => follow_redirects_1.https.get(codeqlURL, { + headers, + highWaterMark: exports.STREAMING_HIGH_WATERMARK_BYTES, + }, (r) => resolve(r))); if (response.statusCode !== 200) { throw new Error(`Failed to download CodeQL bundle from ${codeqlURL}. HTTP status code: ${response.statusCode}.`); } diff --git a/lib/tools-download.js.map b/lib/tools-download.js.map index fe8be1be8f..9788635a3e 100644 --- a/lib/tools-download.js.map +++ b/lib/tools-download.js.map @@ -1 +1 @@ -{"version":3,"file":"tools-download.js","sourceRoot":"","sources":["../src/tools-download.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;AAoEA,gDAsGC;AAzKD,2CAA6B;AAC7B,2CAAyC;AAEzC,+DAAiD;AACjD,uDAAyC;AACzC,+BAAoC;AAEpC,mDAA6D;AAC7D,uCAAmD;AACnD,2CAA6B;AAC7B,iCAAqC;AAarC,SAAS,uCAAuC,CAC9C,kB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/C,GAAG,uCAAuC,CACxC,kBAAkB,EAClB,oBAAoB,CACrB;SACF;KACF,CAAC;AACJ,CAAC;AAED,KAAK,UAAU,mCAAmC,CAChD,SAAiB,EACjB,aAAiC,EACjC,OAA4B,EAC5B,UAA0B,EAC1B,MAAc;IAEd,OAAO,GAAG,MAAM,CAAC,MAAM,CACrB,EAAE,YAAY,EAAE,eAAe,EAAE,aAAa,EAAE,EAChD,OAAO,CACR,CAAC;IACF,MAAM,QAAQ,GAAG,MAAM,IAAI,OAAO,CAAkB,CAAC,OAAO,EAAE,EAAE,CAC9D,wBAAK,CAAC,GAAG,CAAC,SAAS,EAAE,EAAE,OAAO,EAAE,EAAE,CAAC,CAAC,EAAE,EAAE,CAAC,OAAO,CAAC,CAAC,CAAC,CAAC,CACrD,CAAC;IAEF,IAAI,QAAQ,CAAC,UAAU,KAAK,GAAG,EAAE,CAAC;QAChC,MAAM,IAAI,KAAK,CACb,yCAAyC,SAAS,uBAAuB,QAAQ,CAAC,UAAU,GAAG,CAChG,CAAC;IACJ,CAAC;IAED,OAAO,MAAM,GAAG,CAAC,aAAa,CAAC,QAAQ,EAAE,UAAU,EAAE,MAAM,CAAC,CAAC;AAC/D,CAAC;AAED,SAAS,0BAA0B,CAAC,GAAW;IAC7C,OAAO,CAAC,sBAAsB,EAAE,kCAAkC,CAAC,CAAC,IAAI,CACtE,CAAC,IAAI,EAAE,EAAE,CAAC,GAAG,CAAC,UAAU,CAAC,sBAAsB,IAAI,qBAAqB,CAAC,CAC1E;QACC,CAAC,CAAC,GAAG;QACL,CAAC,CAAC,iBAAiB,CAAC;AACxB,CAAC"} \ No newline at end of file +{"version":3,"file":"tools-download.js","sourceRoot":"","sources":["../src/tools-download.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;AAwEA,gDAkGC;AAzKD,2CAA6B;AAC7B,2CAAyC;AAEzC,+DAAiD;AACjD,uDAAyC;AACzC,+BAAoC;AAEpC,uCAAmD;AACnD,2CAA6B;A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B,YAAY,EAAE;YACZ,iBAAiB;YACjB,QAAQ,EAAE,0BAA0B,CAAC,SAAS,CAAC;YAC/C,GAAG,uCAAuC,CACxC,kBAAkB,EAClB,oBAAoB,CACrB;SACF;KACF,CAAC;AACJ,CAAC;AAED,KAAK,UAAU,mCAAmC,CAChD,SAAiB,EACjB,aAAiC,EACjC,OAA4B,EAC5B,UAA0B,EAC1B,MAAc;IAEd,OAAO,GAAG,MAAM,CAAC,MAAM,CACrB,EAAE,YAAY,EAAE,eAAe,EAAE,aAAa,EAAE,EAChD,OAAO,CACR,CAAC;IACF,MAAM,QAAQ,GAAG,MAAM,IAAI,OAAO,CAAkB,CAAC,OAAO,EAAE,EAAE,CAC9D,wBAAK,CAAC,GAAG,CACP,SAAS,EACT;QACE,OAAO;QACP,aAAa,EAAE,sCAA8B;KACjB,EAC9B,CAAC,CAAC,EAAE,EAAE,CAAC,OAAO,CAAC,CAAC,CAAC,CAClB,CACF,CAAC;IAEF,IAAI,QAAQ,CAAC,UAAU,KAAK,GAAG,EAAE,CAAC;QAChC,MAAM,IAAI,KAAK,CACb,yCAAyC,SAAS,uBAAuB,QAAQ,CAAC,UAAU,GAAG,CAChG,CAAC;IACJ,CAAC;IAED,OAAO,MAAM,GAAG,CAAC,aAAa,CAAC,QAAQ,EAAE,UAAU,EAAE,MAAM,CAAC,CAAC;AAC/D,CAAC;AAED,SAAS,0BAA0B,CAAC,GAAW;IAC7C,OAAO,CAAC,sBAAsB,EAAE,kCAAkC,CAAC,CAAC,IAAI,CACtE,CAAC,IAAI,EAAE,EAAE,CAAC,GAAG,CAAC,UAAU,CAAC,sBAAsB,IAAI,qBAAqB,CAAC,CAC1E;QACC,CAAC,CAAC,GAAG;QACL,CAAC,CAAC,iBAAiB,CAAC;AACxB,CAAC"} \ No newline at end of file diff --git a/lib/tracer-config.js b/lib/tracer-config.js index 5c17c34091..fd9c1b0edd 100644 --- a/lib/tracer-config.js +++ b/lib/tracer-config.js @@ -92,7 +92,7 @@ async function getCombinedTracerConfig(codeql, config) { // If the CLI doesn't yet support setting the CODEQL_RUNNER environment variable to // the runner executable path, we set it here in the Action. if (!(await codeql.supportsFeature(tools_features_1.ToolsFeature.SetsCodeqlRunnerEnvVar))) { - // On MacOS when System Integrity Protection is enabled, it's necessary to prefix + // On macOS when System Integrity Protection is enabled, it's necessary to prefix // the build command with the runner executable for indirect tracing, so we expose // it here via the CODEQL_RUNNER environment variable. // The executable also exists and works for other platforms so we unconditionally diff --git a/lib/trap-caching.js b/lib/trap-caching.js index c4d6cca4b5..3f9e446af6 100644 --- a/lib/trap-caching.js +++ b/lib/trap-caching.js @@ -27,7 +27,6 @@ exports.downloadTrapCaches = downloadTrapCaches; exports.uploadTrapCaches = uploadTrapCaches; exports.cleanupTrapCaches = cleanupTrapCaches; exports.getLanguagesSupportingCaching = getLanguagesSupportingCaching; -exports.getTotalCacheSize = getTotalCacheSize; const fs = __importStar(require("fs")); const path = __importStar(require("path")); const actionsCache = __importStar(require("@actions/cache")); @@ -227,10 +226,6 @@ async function getLanguagesSupportingCaching(codeql, languages, logger) { } return result; } -async function getTotalCacheSize(trapCaches, logger) { - const sizes = await Promise.all(Object.values(trapCaches).map((cacheDir) => (0, util_1.tryGetFolderBytes)(cacheDir, logger))); - return sizes.map((a) => a || 0).reduce((a, b) => a + b, 0); -} async function cacheKey(codeql, language, baseSha) { return `${await cachePrefix(codeql, language)}${baseSha}`; } diff --git a/lib/trap-caching.js.map b/lib/trap-caching.js.map index f9f34ebc0e..c440f9229a 100644 --- a/lib/trap-caching.js.map +++ b/lib/trap-caching.js.map @@ -1 +1 @@ -{"version":3,"file":"trap-caching.js","sourceRoot":"","sources":["../src/trap-caching.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;AA+CA,gDAwEC;AASD,4CAwCC;AAQD,8CAwEC;AAuBD,sEAyCC;AAED,8CAUC;AApUD,uCAAyB;AACzB,2CAA6B;AAE7B,6DAA+C;AAE/C,4DAA8C;AAC9C,wDAA0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,IAAI,CACT,GAAG,IAAI,4DAA4D,CACpE,CAAC;YACF,SAAS;QACX,CAAC;QACD,MAAM,SAAS,GAAG,qBAAqB,CAAC,CAAC,CAAC,CAAC;QAC3C,MAAM,gBAAgB,GACpB,SAAS,CAAC,iBAAiB,EAAE,IAAI,EAAE,UAAU,EAAE,KAAK,EAAE,UAAU,CAAC;QACnE,IAAI,gBAAgB,KAAK,SAAS,EAAE,CAAC;YACnC,MAAM,CAAC,IAAI,CACT,GAAG,IAAI,uDAAuD,CAC/D,CAAC;YACF,SAAS;QACX,CAAC;QACD,KAAK,MAAM,WAAW,IAAI,CAAC,KAAK,EAAE,OAAO,EAAE,OAAO,CAAC,EAAE,CAAC;YACpD,IAAI,CAAC,CAAC,WAAW,IAAI,gBAAgB,CAAC,EAAE,CAAC;gBACvC,MAAM,CAAC,IAAI,CACT,GAAG,IAAI,2CAA2C,WAAW,UAAU,CACxE,CAAC;gBACF,SAAS,KAAK,CAAC;YACjB,CAAC;QACH,CAAC;QACD,MAAM,CAAC,IAAI,CAAC,IAAI,CAAC,CAAC;IACpB,CAAC;IACD,OAAO,MAAM,CAAC;AAChB,CAAC;AAED,KAAK,UAAU,QAAQ,CACrB,MAAc,EACd,QAAkB,EAClB,OAAe;IAEf,OAAO,GAAG,MAAM,WAAW,CAAC,MAAM,EAAE,QAAQ,CAAC,GAAG,OAAO,EAAE,CAAC;AAC5D,CAAC;AAED,KAAK,UAAU,WAAW,CACxB,MAAc,EACd,QAAkB;IAElB,OAAO,GAAG,wBAAwB,IAAI,aAAa,IACjD,CAAC,MAAM,MAAM,CAAC,UAAU,EAAE,CAAC,CAAC,OAC9B,IAAI,QAAQ,GAAG,CAAC;AAClB,CAAC"} \ No newline at end of file diff --git a/lib/upload-lib.js b/lib/upload-lib.js index 89bcfbd181..a6ca1a20b3 100644 --- a/lib/upload-lib.js +++ b/lib/upload-lib.js @@ -173,7 +173,7 @@ async function combineSarifFilesUsingCLI(sarifFiles, gitHubVersion, features, lo }; const codeQLDefaultVersionInfo = await features.getDefaultCliVersion(gitHubVersion.type); const initCodeQLResult = await (0, init_1.initCodeQL)(undefined, // There is no tools input on the upload action - apiDetails, tempDir, gitHubVersion.type, codeQLDefaultVersionInfo, features, logger); + apiDetails, tempDir, gitHubVersion.type, codeQLDefaultVersionInfo, logger); codeQL = initCodeQLResult.codeql; } if (!(await codeQL.supportsFeature(tools_features_1.ToolsFeature.SarifMergeRunsFromEqualCategory))) { diff --git a/lib/upload-lib.js.map b/lib/upload-lib.js.map index 5df9b8889c..aec3708b88 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":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;AA6HA,sGAkBC;AA8HD,oEAmBC;AA0FD,kDAcC;AA4CD,0DAuDC;AAID,oCAqDC;AAMD,kCAqFC;AAeD,8CA8EC;AAqED,wDAyBC;AA1zBD,uCAAyB;AACzB,2CAA6B;AAC7B,gDAAwB;AAExB,oDAAsC;AAEtC,wDAA+B;AAC/B,uDAAyC;AACzC,+CAAiC;AAEjC,4DAA8C;AAC9C,iDAAoE;AACpE,kDAAoC;AACpC,6CAA2E;AAC3E,qCAA6C;AAC7C,iDAA2C;AAC3C,+CAAuC;AAEvC,6DAA+C;AAC/C,iCAAoC;AAEpC,6CAAiE;AACjE,qDAAgD;AAChD,6CAA+B;AAC/B,iCAQgB;AAEhB,MAAM,eAAe,GACnB,oFAAoF,CAAC;AACvF,MAAM,eAAe,GACnB,mEAAmE,CAAC;AAEtE,mEAAmE;AACnE,qDAAqD;AACrD,SAAS,iBAAiB,CAAC,UAAoB,EAAE,MAAc;IAC7D,MAAM,CAAC,IAAI,CAAC,uBAAuB,CAAC,CAAC;IACrC,MAAM,aAAa,GAAc;QAC/B,OAAO,EAAE,IAAI;QACb,IAAI,EAAE,EAAE;KACT,CAAC;IAEF,KAAK,MAAM,SAA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AAY;IAC5B,OAAO,CAAC,GAAG,IAAI,GAAG,CAAC,CAAC,OAAO,CAAC,gBAAgB,EAAE,GAAG,CAAC,CAAC,iBAAiB,EAAE,CAAC;AACzE,CAAC;AAED;;GAEG;AACH,MAAa,uBAAwB,SAAQ,KAAK;IAChD,YAAY,OAAe;QACzB,KAAK,CAAC,OAAO,CAAC,CAAC;IACjB,CAAC;CACF;AAJD,0DAIC"} \ No newline at end of file diff --git a/lib/util.js b/lib/util.js index e392a0714e..3163f0ef00 100644 --- a/lib/util.js +++ b/lib/util.js @@ -78,6 +78,7 @@ const exec = __importStar(require("@actions/exec/lib/exec")); const check_disk_space_1 = __importDefault(require("check-disk-space")); const del_1 = __importDefault(require("del")); const get_folder_size_1 = __importDefault(require("get-folder-size")); +const yaml = __importStar(require("js-yaml")); const semver = __importStar(require("semver")); const apiCompatibility = __importStar(require("./api-compatibility.json")); const environment_1 = require("./environment"); @@ -117,7 +118,7 @@ function getExtraOptionsEnvParam() { return {}; } try { - return JSON.parse(raw); + return yaml.load(raw); } catch (unwrappedError) { const error = wrapError(unwrappedError); diff --git a/lib/util.js.map b/lib/util.js.map index 6a131b4ad0..e251d36bb3 100644 --- a/lib/util.js.map +++ b/lib/util.js.map @@ -1 +1 @@ -{"version":3,"file":"util.js","sourceRoot":"","sources":["../src/util.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAoHA,0DAcC;AAOD,oCAYC;AAID,gCAOC;AAyCD,sEAsBC;AAqFD,gDASC;AASD,sCAMC;AAOD,gDAQC;AAUD,kDA8CC;AA2CD,8DAiCC;AAUD,wCAKC;AAKD,sDAEC;AAMD,wCAqCC;AAiBD,8DA8BC;AAOD,8CAYC;AAeD,kCAEC;AAMD,sDAMC;AAKD,kDAMC;AAqBD,kCAEC;AAID,gDAKC;AAED,wDAEC;AAED,oDAKC;AAGD,4BAkBC;AAOD,sBAaC;AAED,sCAEC;AAOD,oCAEC;AAKD,gDAOC;AAKD,gCAcC;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AC;YACrC,MAAM,CAAC,KAAK,CAAC,cAAc,IAAI,GAAG,CAAC,CAAC;QACtC,CAAC;aAAM,CAAC;YACN,MAAM,CAAC,KAAK,CAAC,cAAc,IAAI,KAAK,YAAY,CAAC,MAAM,UAAU,CAAC,CAAC;QACrE,CAAC;IACH,CAAC;IAAC,OAAO,CAAC,EAAE,CAAC;QACX,MAAM,CAAC,OAAO,CAAC,sBAAsB,IAAI,KAAK,CAAC,GAAG,CAAC,CAAC;IACtD,CAAC;AACH,CAAC"} \ No newline at end of file diff --git a/lib/util.test.js b/lib/util.test.js index 347bbc02bb..d938856948 100644 --- a/lib/util.test.js +++ b/lib/util.test.js @@ -31,6 +31,7 @@ const os = __importStar(require("os")); const path_1 = __importDefault(require("path")); const core = __importStar(require("@actions/core")); const ava_1 = __importDefault(require("ava")); +const yaml = __importStar(require("js-yaml")); const sinon = __importStar(require("sinon")); const api = __importStar(require("./api-client")); const environment_1 = require("./environment"); @@ -136,16 +137,23 @@ for (const { input, totalMemoryMb, platform, expectedMemoryValue, reservedPercen t.deepEqual(util.getExtraOptionsEnvParam(), options); process.env.CODEQL_ACTION_EXTRA_OPTIONS = origExtraOptions; }); -(0, ava_1.default)("getExtraOptionsEnvParam() succeeds on valid options", (t) => { +(0, ava_1.default)("getExtraOptionsEnvParam() succeeds on valid JSON options", (t) => { const origExtraOptions = process.env.CODEQL_ACTION_EXTRA_OPTIONS; const options = { database: { init: ["--debug"] } }; process.env.CODEQL_ACTION_EXTRA_OPTIONS = JSON.stringify(options); t.deepEqual(util.getExtraOptionsEnvParam(), options); process.env.CODEQL_ACTION_EXTRA_OPTIONS = origExtraOptions; }); +(0, ava_1.default)("getExtraOptionsEnvParam() succeeds on valid YAML options", (t) => { + const origExtraOptions = process.env.CODEQL_ACTION_EXTRA_OPTIONS; + const options = { database: { init: ["--debug"] } }; + process.env.CODEQL_ACTION_EXTRA_OPTIONS = yaml.dump(options); + t.deepEqual(util.getExtraOptionsEnvParam(), { ...options }); + process.env.CODEQL_ACTION_EXTRA_OPTIONS = origExtraOptions; +}); (0, ava_1.default)("getExtraOptionsEnvParam() fails on invalid JSON", (t) => { const origExtraOptions = process.env.CODEQL_ACTION_EXTRA_OPTIONS; - process.env.CODEQL_ACTION_EXTRA_OPTIONS = "{{invalid-json}}"; + process.env.CODEQL_ACTION_EXTRA_OPTIONS = "{{invalid-json}"; t.throws(util.getExtraOptionsEnvParam); process.env.CODEQL_ACTION_EXTRA_OPTIONS = origExtraOptions; }); diff --git a/lib/util.test.js.map b/lib/util.test.js.map index 0ef52add61..a5959550bc 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,oDAAsC;AACtC,8CAAuB;AACvB,6CAA+B;AAE/B,kDAAoC;AACpC,+CAAuC;AACvC,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,CAAC,CAAC,CAAC;AAEH,MAAM,qBAAqB,GAAG;IAC5B;QACE,KAAK,EAAE,SAAS;QAChB,aAAa,EAAE,CAAC,GAAG,IAAI;QACvB,QAAQ,EAAE,OAAO;QACjB,mBAAmB,EAAE,CAAC,GAAG,IAAI;K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EAAE,EAAE;IAClG,MAAM,IAAI,CAAC,UAAU,CAAC,KAAK,EAAE,MAAc,EAAE,EAAE;QAC7C,MAAM,WAAW,GAAG,GAAG,MAAM,YAAY,CAAC;QAC1C,EAAE,CAAC,aAAa,CAAC,WAAW,EAAE,IAAI,EAAE,OAAO,CAAC,CAAC;QAC7C,CAAC,CAAC,SAAS,CACT,IAAI,CAAC,yBAAyB,CAAC,WAAW,EAAE,IAAA,yBAAe,EAAC,IAAI,CAAC,CAAC,EAClE,SAAS,CACV,CAAC;IACJ,CAAC,CAAC,CAAC;AACL,CAAC,CAAC,CAAC"} \ No newline at end of file diff --git a/node_modules/.bin/uuid b/node_modules/.bin/uuid index 588f70ecc5..24f4a5f64b 120000 --- a/node_modules/.bin/uuid +++ b/node_modules/.bin/uuid @@ -1 +1 @@ -../uuid/dist/bin/uuid \ No newline at end of file +../uuid/dist/esm/bin/uuid \ No newline at end of file diff --git a/node_modules/.package-lock.json b/node_modules/.package-lock.json index ce4641be4d..f3ad9ebe78 100644 --- a/node_modules/.package-lock.json +++ b/node_modules/.package-lock.json @@ -1,6 +1,6 @@ { "name": "codeql", - "version": "3.27.0", + "version": "3.27.1", "lockfileVersion": 3, "requires": true, "packages": { @@ -102,6 +102,15 @@ "uuid": "^3.3.3" } }, + "node_modules/@actions/cache/node_modules/@actions/glob": { + "version": "0.1.2", + "resolved": "https://registry.npmjs.org/@actions/glob/-/glob-0.1.2.tgz", + "integrity": "sha512-SclLR7Ia5sEqjkJTPs7Sd86maMDw43p769YxBOxvPvEWuPEhpAnBsQfENOpXjFYMmhCqd127bmf+YdvJqVqR4A==", + "dependencies": { + "@actions/core": "^1.2.6", + "minimatch": "^3.0.4" + } + }, "node_modules/@actions/cache/node_modules/semver": { "version": "6.3.1", "license": "ISC", @@ -143,10 +152,11 @@ } }, "node_modules/@actions/glob": { - "version": "0.1.2", - "license": "MIT", + "version": "0.4.0", + "resolved": "https://registry.npmjs.org/@actions/glob/-/glob-0.4.0.tgz", + "integrity": "sha512-+eKIGFhsFa4EBwaf/GMyzCdWrXWymGXfFmZU3FHQvYS8mPcHtTtZONbkcqqUMzw9mJ/pImEBFET1JNifhqGsAQ==", "dependencies": { - "@actions/core": "^1.2.6", + "@actions/core": "^1.9.1", "minimatch": "^3.0.4" } }, @@ -7264,14 +7274,15 @@ "license": "MIT" }, "node_modules/uuid": { - "version": "10.0.0", + "version": "11.0.1", + "resolved": "https://registry.npmjs.org/uuid/-/uuid-11.0.1.tgz", + "integrity": "sha512-wt9UB5EcLhnboy1UvA1mvGPXkIIrHSu+3FmUksARfdVw9tuPf3CH/CohxO0Su1ApoKAeT6BVzAJIvjTuQVSmuQ==", "funding": [ "https://github.com/sponsors/broofa", "https://github.com/sponsors/ctavan" ], - "license": "MIT", "bin": { - "uuid": "dist/bin/uuid" + "uuid": "dist/esm/bin/uuid" } }, "node_modules/webidl-conversions": { diff --git a/node_modules/@actions/cache/node_modules/@actions/glob/LICENSE.md b/node_modules/@actions/cache/node_modules/@actions/glob/LICENSE.md new file mode 100644 index 0000000000..dbae2edb2c --- /dev/null +++ b/node_modules/@actions/cache/node_modules/@actions/glob/LICENSE.md @@ -0,0 +1,9 @@ +The MIT License (MIT) + +Copyright 2019 GitHub + +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. \ No newline at end of file diff --git a/node_modules/@actions/cache/node_modules/@actions/glob/README.md b/node_modules/@actions/cache/node_modules/@actions/glob/README.md new file mode 100644 index 0000000000..9575beaa1d --- /dev/null +++ b/node_modules/@actions/cache/node_modules/@actions/glob/README.md @@ -0,0 +1,113 @@ +# `@actions/glob` + +## Usage + +### Basic + +You can use this package to search for files matching glob patterns. + +Relative paths and absolute paths are both allowed. Relative paths are rooted against the current working directory. + +```js +const glob = require('@actions/glob'); + +const patterns = ['**/tar.gz', '**/tar.bz'] +const globber = await glob.create(patterns.join('\n')) +const files = await globber.glob() +``` + +### Opt out of following symbolic links + +```js +const glob = require('@actions/glob'); + +const globber = await glob.create('**', {followSymbolicLinks: false}) +const files = await globber.glob() +``` + +### Iterator + +When dealing with a large amount of results, consider iterating the results as they are returned: + +```js +const glob = require('@actions/glob'); + +const globber = await glob.create('**') +for await (const file of globber.globGenerator()) { + console.log(file) +} +``` + +## Recommended action inputs + +Glob follows symbolic links by default. Following is often appropriate unless deleting files. + +Users may want to opt-out from following symbolic links for other reasons. For example, +excessive amounts of symbolic links can create the appearance of very, very many files +and slow the search. + +When an action allows a user to specify input patterns, it is generally recommended to +allow users to opt-out from following symbolic links. + +Snippet from `action.yml`: + +```yaml +inputs: + files: + description: 'Files to print' + required: true + follow-symbolic-links: + description: 'Indicates whether to follow symbolic links' + default: true +``` + +And corresponding toolkit consumption: + +```js +const core = require('@actions/core') +const glob = require('@actions/glob') + +const globOptions = { + followSymbolicLinks: core.getInput('follow-symbolic-links').toUpper() !== 'FALSE' +} +const globber = glob.create(core.getInput('files'), globOptions) +for await (const file of globber.globGenerator()) { + console.log(file) +} +``` + +## Patterns + +### Glob behavior + +Patterns `*`, `?`, `[...]`, `**` (globstar) are supported. + +With the following behaviors: +- File names that begin with `.` may be included in the results +- Case insensitive on Windows +- Directory separator `/` and `\` both supported on Windows + +### Tilde expansion + +Supports basic tilde expansion, for current user HOME replacement only. + +Example: +- `~` may expand to /Users/johndoe +- `~/foo` may expand to /Users/johndoe/foo + +### Comments + +Patterns that begin with `#` are treated as comments. + +### Exclude patterns + +Leading `!` changes the meaning of an include pattern to exclude. + +Multiple leading `!` flips the meaning. + +### Escaping + +Wrapping special characters in `[]` can be used to escape literal glob characters +in a file name. For example the literal file name `hello[a-z]` can be escaped as `hello[[]a-z]`. + +On Linux/macOS `\` is also treated as an escape character. diff --git a/node_modules/@actions/cache/node_modules/@actions/glob/lib/glob.d.ts b/node_modules/@actions/cache/node_modules/@actions/glob/lib/glob.d.ts new file mode 100644 index 0000000000..56424fc3a8 --- /dev/null +++ b/node_modules/@actions/cache/node_modules/@actions/glob/lib/glob.d.ts @@ -0,0 +1,10 @@ +import { Globber } from './internal-globber'; +import { GlobOptions } from './internal-glob-options'; +export { Globber, GlobOptions }; +/** + * Constructs a globber + * + * @param patterns Patterns separated by newlines + * @param options Glob options + */ +export declare function create(patterns: string, options?: GlobOptions): Promise; diff --git a/node_modules/@actions/cache/node_modules/@actions/glob/lib/glob.js b/node_modules/@actions/cache/node_modules/@actions/glob/lib/glob.js new file mode 100644 index 0000000000..58cb68331e --- /dev/null +++ b/node_modules/@actions/cache/node_modules/@actions/glob/lib/glob.js @@ -0,0 +1,26 @@ +"use strict"; +var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, generator) { + function adopt(value) { return value instanceof P ? value : new P(function (resolve) { resolve(value); }); } + return new (P || (P = Promise))(function (resolve, reject) { + function fulfilled(value) { try { step(generator.next(value)); } catch (e) { reject(e); } } + function rejected(value) { try { step(generator["throw"](value)); } catch (e) { reject(e); } } + function step(result) { result.done ? resolve(result.value) : adopt(result.value).then(fulfilled, rejected); } + step((generator = generator.apply(thisArg, _arguments || [])).next()); + }); +}; +Object.defineProperty(exports, "__esModule", { value: true }); +exports.create = void 0; +const internal_globber_1 = require("./internal-globber"); +/** + * Constructs a globber + * + * @param patterns Patterns separated by newlines + * @param options Glob options + */ +function create(patterns, options) { + return __awaiter(this, void 0, void 0, function* () { + return yield internal_globber_1.DefaultGlobber.create(patterns, options); + }); +} +exports.create = create; +//# sourceMappingURL=glob.js.map \ No newline at end of file diff --git a/node_modules/@actions/cache/node_modules/@actions/glob/lib/glob.js.map b/node_modules/@actions/cache/node_modules/@actions/glob/lib/glob.js.map new file mode 100644 index 0000000000..b27e7e4af6 --- /dev/null +++ b/node_modules/@actions/cache/node_modules/@actions/glob/lib/glob.js.map @@ -0,0 +1 @@ +{"version":3,"file":"glob.js","sourceRoot":"","sources":["../src/glob.ts"],"names":[],"mappings":";;;;;;;;;;;;AAAA,yDAA0D;AAK1D;;;;;GAKG;AACH,SAAsB,MAAM,CAC1B,QAAgB,EAChB,OAAqB;;QAErB,OAAO,MAAM,iCAAc,CAAC,MAAM,CAAC,QAAQ,EAAE,OAAO,CAAC,CAAA;IACvD,CAAC;CAAA;AALD,wBAKC"} \ No newline at end of file diff --git a/node_modules/@actions/cache/node_modules/@actions/glob/lib/internal-glob-options-helper.d.ts b/node_modules/@actions/cache/node_modules/@actions/glob/lib/internal-glob-options-helper.d.ts new file mode 100644 index 0000000000..8a789606e3 --- /dev/null +++ b/node_modules/@actions/cache/node_modules/@actions/glob/lib/internal-glob-options-helper.d.ts @@ -0,0 +1,5 @@ +import { GlobOptions } from './internal-glob-options'; +/** + * Returns a copy with defaults filled in. + */ +export declare function getOptions(copy?: GlobOptions): GlobOptions; diff --git a/node_modules/@actions/cache/node_modules/@actions/glob/lib/internal-glob-options-helper.js b/node_modules/@actions/cache/node_modules/@actions/glob/lib/internal-glob-options-helper.js new file mode 100644 index 0000000000..974dfd038d --- /dev/null +++ b/node_modules/@actions/cache/node_modules/@actions/glob/lib/internal-glob-options-helper.js @@ -0,0 +1,50 @@ +"use strict"; +var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) { + if (k2 === undefined) k2 = k; + Object.defineProperty(o, k2, { enumerable: true, get: function() { return m[k]; } }); +}) : (function(o, m, k, k2) { + if (k2 === undefined) k2 = k; + o[k2] = m[k]; +})); +var __setModuleDefault = (this && this.__setModuleDefault) || (Object.create ? (function(o, v) { + Object.defineProperty(o, "default", { enumerable: true, value: v }); +}) : function(o, v) { + o["default"] = v; +}); +var __importStar = (this && this.__importStar) || function (mod) { + if (mod && mod.__esModule) return mod; + var result = {}; + if (mod != null) for (var k in mod) if (k !== "default" && Object.hasOwnProperty.call(mod, k)) __createBinding(result, mod, k); + __setModuleDefault(result, mod); + return result; +}; +Object.defineProperty(exports, "__esModule", { value: true }); +exports.getOptions = void 0; +const core = __importStar(require("@actions/core")); +/** + * Returns a copy with defaults filled in. + */ +function getOptions(copy) { + const result = { + followSymbolicLinks: true, + implicitDescendants: true, + omitBrokenSymbolicLinks: true + }; + if (copy) { + if (typeof copy.followSymbolicLinks === 'boolean') { + result.followSymbolicLinks = copy.followSymbolicLinks; + core.debug(`followSymbolicLinks '${result.followSymbolicLinks}'`); + } + if (typeof copy.implicitDescendants === 'boolean') { + result.implicitDescendants = copy.implicitDescendants; + core.debug(`implicitDescendants '${result.implicitDescendants}'`); + } + if (typeof copy.omitBrokenSymbolicLinks === 'boolean') { + result.omitBrokenSymbolicLinks = copy.omitBrokenSymbolicLinks; + core.debug(`omitBrokenSymbolicLinks '${result.omitBrokenSymbolicLinks}'`); + } + } + return result; +} +exports.getOptions = getOptions; +//# sourceMappingURL=internal-glob-options-helper.js.map \ No newline at end of file diff --git a/node_modules/@actions/cache/node_modules/@actions/glob/lib/internal-glob-options-helper.js.map b/node_modules/@actions/cache/node_modules/@actions/glob/lib/internal-glob-options-helper.js.map new file mode 100644 index 0000000000..93376ddc0a --- /dev/null +++ b/node_modules/@actions/cache/node_modules/@actions/glob/lib/internal-glob-options-helper.js.map @@ -0,0 +1 @@ +{"version":3,"file":"internal-glob-options-helper.js","sourceRoot":"","sources":["../src/internal-glob-options-helper.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;AAAA,oDAAqC;AAGrC;;GAEG;AACH,SAAgB,UAAU,CAAC,IAAkB;IAC3C,MAAM,MAAM,GAAgB;QAC1B,mBAAmB,EAAE,IAAI;QACzB,mBAAmB,EAAE,IAAI;QACzB,uBAAuB,EAAE,IAAI;KAC9B,CAAA;IAED,IAAI,IAAI,EAAE;QACR,IAAI,OAAO,IAAI,CAAC,mBAAmB,KAAK,SAAS,EAAE;YACjD,MAAM,CAAC,mBAAmB,GAAG,IAAI,CAAC,mBAAmB,CAAA;YACrD,IAAI,CAAC,KAAK,CAAC,wBAAwB,MAAM,CAAC,mBAAmB,GAAG,CAAC,CAAA;SAClE;QAED,IAAI,OAAO,IAAI,CAAC,mBAAmB,KAAK,SAAS,EAAE;YACjD,MAAM,CAAC,mBAAmB,GAAG,IAAI,CAAC,mBAAmB,CAAA;YACrD,IAAI,CAAC,KAAK,CAAC,wBAAwB,MAAM,CAAC,mBAAmB,GAAG,CAAC,CAAA;SAClE;QAED,IAAI,OAAO,IAAI,CAAC,uBAAuB,KAAK,SAAS,EAAE;YACrD,MAAM,CAAC,uBAAuB,GAAG,IAAI,CAAC,uBAAuB,CAAA;YAC7D,IAAI,CAAC,KAAK,CAAC,4BAA4B,MAAM,CAAC,uBAAuB,GAAG,CAAC,CAAA;SAC1E;KACF;IAED,OAAO,MAAM,CAAA;AACf,CAAC;AAzBD,gCAyBC"} \ No newline at end of file diff --git a/node_modules/@actions/cache/node_modules/@actions/glob/lib/internal-glob-options.d.ts b/node_modules/@actions/cache/node_modules/@actions/glob/lib/internal-glob-options.d.ts new file mode 100644 index 0000000000..c1cac0f1f4 --- /dev/null +++ b/node_modules/@actions/cache/node_modules/@actions/glob/lib/internal-glob-options.d.ts @@ -0,0 +1,29 @@ +/** + * Options to control globbing behavior + */ +export interface GlobOptions { + /** + * Indicates whether to follow symbolic links. Generally should set to false + * when deleting files. + * + * @default true + */ + followSymbolicLinks?: boolean; + /** + * Indicates whether directories that match a glob pattern, should implicitly + * cause all descendant paths to be matched. + * + * For example, given the directory `my-dir`, the following glob patterns + * would produce the same results: `my-dir/**`, `my-dir/`, `my-dir` + * + * @default true + */ + implicitDescendants?: boolean; + /** + * Indicates whether broken symbolic should be ignored and omitted from the + * result set. Otherwise an error will be thrown. + * + * @default true + */ + omitBrokenSymbolicLinks?: boolean; +} diff --git a/node_modules/@actions/cache/node_modules/@actions/glob/lib/internal-glob-options.js b/node_modules/@actions/cache/node_modules/@actions/glob/lib/internal-glob-options.js new file mode 100644 index 0000000000..8960c70efe --- /dev/null +++ b/node_modules/@actions/cache/node_modules/@actions/glob/lib/internal-glob-options.js @@ -0,0 +1,3 @@ +"use strict"; +Object.defineProperty(exports, "__esModule", { value: true }); +//# sourceMappingURL=internal-glob-options.js.map \ No newline at end of file diff --git a/node_modules/@actions/cache/node_modules/@actions/glob/lib/internal-glob-options.js.map b/node_modules/@actions/cache/node_modules/@actions/glob/lib/internal-glob-options.js.map new file mode 100644 index 0000000000..dec7953297 --- /dev/null +++ b/node_modules/@actions/cache/node_modules/@actions/glob/lib/internal-glob-options.js.map @@ -0,0 +1 @@ +{"version":3,"file":"internal-glob-options.js","sourceRoot":"","sources":["../src/internal-glob-options.ts"],"names":[],"mappings":""} \ No newline at end of file diff --git a/node_modules/@actions/cache/node_modules/@actions/glob/lib/internal-globber.d.ts b/node_modules/@actions/cache/node_modules/@actions/glob/lib/internal-globber.d.ts new file mode 100644 index 0000000000..6d0036bf75 --- /dev/null +++ b/node_modules/@actions/cache/node_modules/@actions/glob/lib/internal-globber.d.ts @@ -0,0 +1,42 @@ +import { GlobOptions } from './internal-glob-options'; +export { GlobOptions }; +/** + * Used to match files and directories + */ +export interface Globber { + /** + * Returns the search path preceding the first glob segment, from each pattern. + * Duplicates and descendants of other paths are filtered out. + * + * Example 1: The patterns `/foo/*` and `/bar/*` returns `/foo` and `/bar`. + * + * Example 2: The patterns `/foo/*` and `/foo/bar/*` returns `/foo`. + */ + getSearchPaths(): string[]; + /** + * Returns files and directories matching the glob patterns. + * + * Order of the results is not guaranteed. + */ + glob(): Promise; + /** + * Returns files and directories matching the glob patterns. + * + * Order of the results is not guaranteed. + */ + globGenerator(): AsyncGenerator; +} +export declare class DefaultGlobber implements Globber { + private readonly options; + private readonly patterns; + private readonly searchPaths; + private constructor(); + getSearchPaths(): string[]; + glob(): Promise; + globGenerator(): AsyncGenerator; + /** + * Constructs a DefaultGlobber + */ + static create(patterns: string, options?: GlobOptions): Promise; + private static stat; +} diff --git a/node_modules/@actions/cache/node_modules/@actions/glob/lib/internal-globber.js b/node_modules/@actions/cache/node_modules/@actions/glob/lib/internal-globber.js new file mode 100644 index 0000000000..a6695b5c21 --- /dev/null +++ b/node_modules/@actions/cache/node_modules/@actions/glob/lib/internal-globber.js @@ -0,0 +1,235 @@ +"use strict"; +var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) { + if (k2 === undefined) k2 = k; + Object.defineProperty(o, k2, { enumerable: true, get: function() { return m[k]; } }); +}) : (function(o, m, k, k2) { + if (k2 === undefined) k2 = k; + o[k2] = m[k]; +})); +var __setModuleDefault = (this && this.__setModuleDefault) || (Object.create ? (function(o, v) { + Object.defineProperty(o, "default", { enumerable: true, value: v }); +}) : function(o, v) { + o["default"] = v; +}); +var __importStar = (this && this.__importStar) || function (mod) { + if (mod && mod.__esModule) return mod; + var result = {}; + if (mod != null) for (var k in mod) if (k !== "default" && Object.hasOwnProperty.call(mod, k)) __createBinding(result, mod, k); + __setModuleDefault(result, mod); + return result; +}; +var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, generator) { + function adopt(value) { return value instanceof P ? value : new P(function (resolve) { resolve(value); }); } + return new (P || (P = Promise))(function (resolve, reject) { + function fulfilled(value) { try { step(generator.next(value)); } catch (e) { reject(e); } } + function rejected(value) { try { step(generator["throw"](value)); } catch (e) { reject(e); } } + function step(result) { result.done ? resolve(result.value) : adopt(result.value).then(fulfilled, rejected); } + step((generator = generator.apply(thisArg, _arguments || [])).next()); + }); +}; +var __asyncValues = (this && this.__asyncValues) || function (o) { + if (!Symbol.asyncIterator) throw new TypeError("Symbol.asyncIterator is not defined."); + var m = o[Symbol.asyncIterator], i; + return m ? m.call(o) : (o = typeof __values === "function" ? __values(o) : o[Symbol.iterator](), i = {}, verb("next"), verb("throw"), verb("return"), i[Symbol.asyncIterator] = function () { return this; }, i); + function verb(n) { i[n] = o[n] && function (v) { return new Promise(function (resolve, reject) { v = o[n](v), settle(resolve, reject, v.done, v.value); }); }; } + function settle(resolve, reject, d, v) { Promise.resolve(v).then(function(v) { resolve({ value: v, done: d }); }, reject); } +}; +var __await = (this && this.__await) || function (v) { return this instanceof __await ? (this.v = v, this) : new __await(v); } +var __asyncGenerator = (this && this.__asyncGenerator) || function (thisArg, _arguments, generator) { + if (!Symbol.asyncIterator) throw new TypeError("Symbol.asyncIterator is not defined."); + var g = generator.apply(thisArg, _arguments || []), i, q = []; + return i = {}, verb("next"), verb("throw"), verb("return"), i[Symbol.asyncIterator] = function () { return this; }, i; + function verb(n) { if (g[n]) i[n] = function (v) { return new Promise(function (a, b) { q.push([n, v, a, b]) > 1 || resume(n, v); }); }; } + function resume(n, v) { try { step(g[n](v)); } catch (e) { settle(q[0][3], e); } } + function step(r) { r.value instanceof __await ? Promise.resolve(r.value.v).then(fulfill, reject) : settle(q[0][2], r); } + function fulfill(value) { resume("next", value); } + function reject(value) { resume("throw", value); } + function settle(f, v) { if (f(v), q.shift(), q.length) resume(q[0][0], q[0][1]); } +}; +Object.defineProperty(exports, "__esModule", { value: true }); +exports.DefaultGlobber = void 0; +const core = __importStar(require("@actions/core")); +const fs = __importStar(require("fs")); +const globOptionsHelper = __importStar(require("./internal-glob-options-helper")); +const path = __importStar(require("path")); +const patternHelper = __importStar(require("./internal-pattern-helper")); +const internal_match_kind_1 = require("./internal-match-kind"); +const internal_pattern_1 = require("./internal-pattern"); +const internal_search_state_1 = require("./internal-search-state"); +const IS_WINDOWS = process.platform === 'win32'; +class DefaultGlobber { + constructor(options) { + this.patterns = []; + this.searchPaths = []; + this.options = globOptionsHelper.getOptions(options); + } + getSearchPaths() { + // Return a copy + return this.searchPaths.slice(); + } + glob() { + var e_1, _a; + return __awaiter(this, void 0, void 0, function* () { + const result = []; + try { + for (var _b = __asyncValues(this.globGenerator()), _c; _c = yield _b.next(), !_c.done;) { + const itemPath = _c.value; + result.push(itemPath); + } + } + catch (e_1_1) { e_1 = { error: e_1_1 }; } + finally { + try { + if (_c && !_c.done && (_a = _b.return)) yield _a.call(_b); + } + finally { if (e_1) throw e_1.error; } + } + return result; + }); + } + globGenerator() { + return __asyncGenerator(this, arguments, function* globGenerator_1() { + // Fill in defaults options + const options = globOptionsHelper.getOptions(this.options); + // Implicit descendants? + const patterns = []; + for (const pattern of this.patterns) { + patterns.push(pattern); + if (options.implicitDescendants && + (pattern.trailingSeparator || + pattern.segments[pattern.segments.length - 1] !== '**')) { + patterns.push(new internal_pattern_1.Pattern(pattern.negate, true, pattern.segments.concat('**'))); + } + } + // Push the search paths + const stack = []; + for (const searchPath of patternHelper.getSearchPaths(patterns)) { + core.debug(`Search path '${searchPath}'`); + // Exists? + try { + // Intentionally using lstat. Detection for broken symlink + // will be performed later (if following symlinks). + yield __await(fs.promises.lstat(searchPath)); + } + catch (err) { + if (err.code === 'ENOENT') { + continue; + } + throw err; + } + stack.unshift(new internal_search_state_1.SearchState(searchPath, 1)); + } + // Search + const traversalChain = []; // used to detect cycles + while (stack.length) { + // Pop + const item = stack.pop(); + // Match? + const match = patternHelper.match(patterns, item.path); + const partialMatch = !!match || patternHelper.partialMatch(patterns, item.path); + if (!match && !partialMatch) { + continue; + } + // Stat + const stats = yield __await(DefaultGlobber.stat(item, options, traversalChain) + // Broken symlink, or symlink cycle detected, or no longer exists + ); + // Broken symlink, or symlink cycle detected, or no longer exists + if (!stats) { + continue; + } + // Directory + if (stats.isDirectory()) { + // Matched + if (match & internal_match_kind_1.MatchKind.Directory) { + yield yield __await(item.path); + } + // Descend? + else if (!partialMatch) { + continue; + } + // Push the child items in reverse + const childLevel = item.level + 1; + const childItems = (yield __await(fs.promises.readdir(item.path))).map(x => new internal_search_state_1.SearchState(path.join(item.path, x), childLevel)); + stack.push(...childItems.reverse()); + } + // File + else if (match & internal_match_kind_1.MatchKind.File) { + yield yield __await(item.path); + } + } + }); + } + /** + * Constructs a DefaultGlobber + */ + static create(patterns, options) { + return __awaiter(this, void 0, void 0, function* () { + const result = new DefaultGlobber(options); + if (IS_WINDOWS) { + patterns = patterns.replace(/\r\n/g, '\n'); + patterns = patterns.replace(/\r/g, '\n'); + } + const lines = patterns.split('\n').map(x => x.trim()); + for (const line of lines) { + // Empty or comment + if (!line || line.startsWith('#')) { + continue; + } + // Pattern + else { + result.patterns.push(new internal_pattern_1.Pattern(line)); + } + } + result.searchPaths.push(...patternHelper.getSearchPaths(result.patterns)); + return result; + }); + } + static stat(item, options, traversalChain) { + return __awaiter(this, void 0, void 0, function* () { + // Note: + // `stat` returns info about the target of a symlink (or symlink chain) + // `lstat` returns info about a symlink itself + let stats; + if (options.followSymbolicLinks) { + try { + // Use `stat` (following symlinks) + stats = yield fs.promises.stat(item.path); + } + catch (err) { + if (err.code === 'ENOENT') { + if (options.omitBrokenSymbolicLinks) { + core.debug(`Broken symlink '${item.path}'`); + return undefined; + } + throw new Error(`No information found for the path '${item.path}'. This may indicate a broken symbolic link.`); + } + throw err; + } + } + else { + // Use `lstat` (not following symlinks) + stats = yield fs.promises.lstat(item.path); + } + // Note, isDirectory() returns false for the lstat of a symlink + if (stats.isDirectory() && options.followSymbolicLinks) { + // Get the realpath + const realPath = yield fs.promises.realpath(item.path); + // Fixup the traversal chain to match the item level + while (traversalChain.length >= item.level) { + traversalChain.pop(); + } + // Test for a cycle + if (traversalChain.some((x) => x === realPath)) { + core.debug(`Symlink cycle detected for path '${item.path}' and realpath '${realPath}'`); + return undefined; + } + // Update the traversal chain + traversalChain.push(realPath); + } + return stats; + }); + } +} +exports.DefaultGlobber = DefaultGlobber; +//# sourceMappingURL=internal-globber.js.map \ No newline at end of file diff --git a/node_modules/@actions/cache/node_modules/@actions/glob/lib/internal-globber.js.map b/node_modules/@actions/cache/node_modules/@actions/glob/lib/internal-globber.js.map new file mode 100644 index 0000000000..cd1f05d9ba --- /dev/null +++ b/node_modules/@actions/cache/node_modules/@actions/glob/lib/internal-globber.js.map @@ -0,0 +1 @@ +{"version":3,"file":"internal-globber.js","sourceRoot":"","sources":["../src/internal-globber.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAAA,oDAAqC;AACrC,uCAAwB;AACxB,kFAAmE;AACnE,2CAA4B;AAC5B,yEAA0D;AAE1D,+DAA+C;AAC/C,yDAA0C;AAC1C,mEAAmD;AAEnD,MAAM,UAAU,GAAG,OAAO,CAAC,QAAQ,KAAK,OAAO,CAAA;AAiC/C,MAAa,cAAc;IAKzB,YAAoB,OAAqB;QAHxB,aAAQ,GAAc,EAAE,CAAA;QACxB,gBAAW,GAAa,EAAE,CAAA;QAGzC,IAAI,CAAC,OAAO,GAAG,iBAAiB,CAAC,UAAU,CAAC,OAAO,CAAC,CAAA;IACtD,CAAC;IAED,cAAc;QACZ,gBAAgB;QAChB,OAAO,IAAI,CAAC,WAAW,CAAC,KAAK,EAAE,CAAA;IACjC,CAAC;IAEK,IAAI;;;YACR,MAAM,MAAM,GAAa,EAAE,CAAA;;gBAC3B,KAA6B,IAAA,KAAA,cAAA,IAAI,CAAC,aAAa,EAAE,CAAA,IAAA;oBAAtC,MAAM,QAAQ,WAAA,CAAA;oBACvB,MAAM,CAAC,IAAI,CAAC,QAAQ,CAAC,CAAA;iBACtB;;;;;;;;;YACD,OAAO,MAAM,CAAA;;KACd;IAEM,aAAa;;YAClB,2BAA2B;YAC3B,MAAM,OAAO,GAAG,iBAAiB,CAAC,UAAU,CAAC,IAAI,CAAC,OAAO,CAAC,CAAA;YAC1D,wBAAwB;YACxB,MAAM,QAAQ,GAAc,EAAE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,OAAO,CAAC,uBAAuB,EAAE;4BACnC,IAAI,CAAC,KAAK,CAAC,mBAAmB,IAAI,CAAC,IAAI,GAAG,CAAC,CAAA;4BAC3C,OAAO,SAAS,CAAA;yBACjB;wBAED,MAAM,IAAI,KAAK,CACb,sCAAsC,IAAI,CAAC,IAAI,8CAA8C,CAC9F,CAAA;qBACF;oBAED,MAAM,GAAG,CAAA;iBACV;aACF;iBAAM;gBACL,uCAAuC;gBACvC,KAAK,GAAG,MAAM,EAAE,CAAC,QAAQ,CAAC,KAAK,CAAC,IAAI,CAAC,IAAI,CAAC,CAAA;aAC3C;YAED,+DAA+D;YAC/D,IAAI,KAAK,CAAC,WAAW,EAAE,IAAI,OAAO,CAAC,mBAAmB,EAAE;gBACtD,mBAAmB;gBACnB,MAAM,QAAQ,GAAW,MAAM,EAAE,CAAC,QAAQ,CAAC,QAAQ,CAAC,IAAI,CAAC,IAAI,CAAC,CAAA;gBAE9D,oDAAoD;gBACpD,OAAO,cAAc,CAAC,MAAM,IAAI,IAAI,CAAC,KAAK,EAAE;oBAC1C,cAAc,CAAC,GAAG,EAAE,CAAA;iBACrB;gBAED,mBAAmB;gBACnB,IAAI,cAAc,CAAC,IAAI,CAAC,CAAC,CAAS,EAAE,EAAE,CAAC,CAAC,KAAK,QAAQ,CAAC,EAAE;oBACtD,IAAI,CAAC,KAAK,CACR,oCAAoC,IAAI,CAAC,IAAI,mBAAmB,QAAQ,GAAG,CAC5E,CAAA;oBACD,OAAO,SAAS,CAAA;iBACjB;gBAED,6BAA6B;gBAC7B,cAAc,CAAC,IAAI,CAAC,QAAQ,CAAC,CAAA;aAC9B;YAED,OAAO,KAAK,CAAA;QACd,CAAC;KAAA;CACF;AAvMD,wCAuMC"} \ No newline at end of file diff --git a/node_modules/@actions/cache/node_modules/@actions/glob/lib/internal-match-kind.d.ts b/node_modules/@actions/cache/node_modules/@actions/glob/lib/internal-match-kind.d.ts new file mode 100644 index 0000000000..a7e60aaf7c --- /dev/null +++ b/node_modules/@actions/cache/node_modules/@actions/glob/lib/internal-match-kind.d.ts @@ -0,0 +1,13 @@ +/** + * Indicates whether a pattern matches a path + */ +export declare enum MatchKind { + /** Not matched */ + None = 0, + /** Matched if the path is a directory */ + Directory = 1, + /** Matched if the path is a regular file */ + File = 2, + /** Matched */ + All = 3 +} diff --git a/node_modules/@actions/cache/node_modules/@actions/glob/lib/internal-match-kind.js b/node_modules/@actions/cache/node_modules/@actions/glob/lib/internal-match-kind.js new file mode 100644 index 0000000000..37146ae7e0 --- /dev/null +++ b/node_modules/@actions/cache/node_modules/@actions/glob/lib/internal-match-kind.js @@ -0,0 +1,18 @@ +"use strict"; +Object.defineProperty(exports, "__esModule", { value: true }); +exports.MatchKind = void 0; +/** + * Indicates whether a pattern matches a path + */ +var MatchKind; +(function (MatchKind) { + /** Not matched */ + MatchKind[MatchKind["None"] = 0] = "None"; + /** Matched if the path is a directory */ + MatchKind[MatchKind["Directory"] = 1] = "Directory"; + /** Matched if the path is a regular file */ + MatchKind[MatchKind["File"] = 2] = "File"; + /** Matched */ + MatchKind[MatchKind["All"] = 3] = "All"; +})(MatchKind = exports.MatchKind || (exports.MatchKind = {})); +//# sourceMappingURL=internal-match-kind.js.map \ No newline at end of file diff --git a/node_modules/@actions/cache/node_modules/@actions/glob/lib/internal-match-kind.js.map b/node_modules/@actions/cache/node_modules/@actions/glob/lib/internal-match-kind.js.map new file mode 100644 index 0000000000..6fa3c9f71e --- /dev/null +++ b/node_modules/@actions/cache/node_modules/@actions/glob/lib/internal-match-kind.js.map @@ -0,0 +1 @@ +{"version":3,"file":"internal-match-kind.js","sourceRoot":"","sources":["../src/internal-match-kind.ts"],"names":[],"mappings":";;;AAAA;;GAEG;AACH,IAAY,SAYX;AAZD,WAAY,SAAS;IACnB,kBAAkB;IAClB,yCAAQ,CAAA;IAER,yCAAyC;IACzC,mDAAa,CAAA;IAEb,4CAA4C;IAC5C,yCAAQ,CAAA;IAER,cAAc;IACd,uCAAsB,CAAA;AACxB,CAAC,EAZW,SAAS,GAAT,iBAAS,KAAT,iBAAS,QAYpB"} \ No newline at end of file diff --git a/node_modules/@actions/cache/node_modules/@actions/glob/lib/internal-path-helper.d.ts b/node_modules/@actions/cache/node_modules/@actions/glob/lib/internal-path-helper.d.ts new file mode 100644 index 0000000000..0375c36c57 --- /dev/null +++ b/node_modules/@actions/cache/node_modules/@actions/glob/lib/internal-path-helper.d.ts @@ -0,0 +1,42 @@ +/** + * Similar to path.dirname except normalizes the path separators and slightly better handling for Windows UNC paths. + * + * For example, on Linux/macOS: + * - `/ => /` + * - `/hello => /` + * + * For example, on Windows: + * - `C:\ => C:\` + * - `C:\hello => C:\` + * - `C: => C:` + * - `C:hello => C:` + * - `\ => \` + * - `\hello => \` + * - `\\hello => \\hello` + * - `\\hello\world => \\hello\world` + */ +export declare function dirname(p: string): string; +/** + * Roots the path if not already rooted. On Windows, relative roots like `\` + * or `C:` are expanded based on the current working directory. + */ +export declare function ensureAbsoluteRoot(root: string, itemPath: string): string; +/** + * On Linux/macOS, true if path starts with `/`. On Windows, true for paths like: + * `\\hello\share` and `C:\hello` (and using alternate separator). + */ +export declare function hasAbsoluteRoot(itemPath: string): boolean; +/** + * On Linux/macOS, true if path starts with `/`. On Windows, true for paths like: + * `\`, `\hello`, `\\hello\share`, `C:`, and `C:\hello` (and using alternate separator). + */ +export declare function hasRoot(itemPath: string): boolean; +/** + * Removes redundant slashes and converts `/` to `\` on Windows + */ +export declare function normalizeSeparators(p: string): string; +/** + * Normalizes the path separators and trims the trailing separator (when safe). + * For example, `/foo/ => /foo` but `/ => /` + */ +export declare function safeTrimTrailingSeparator(p: string): string; diff --git a/node_modules/@actions/cache/node_modules/@actions/glob/lib/internal-path-helper.js b/node_modules/@actions/cache/node_modules/@actions/glob/lib/internal-path-helper.js new file mode 100644 index 0000000000..5057add379 --- /dev/null +++ b/node_modules/@actions/cache/node_modules/@actions/glob/lib/internal-path-helper.js @@ -0,0 +1,198 @@ +"use strict"; +var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) { + if (k2 === undefined) k2 = k; + Object.defineProperty(o, k2, { enumerable: true, get: function() { return m[k]; } }); +}) : (function(o, m, k, k2) { + if (k2 === undefined) k2 = k; + o[k2] = m[k]; +})); +var __setModuleDefault = (this && this.__setModuleDefault) || (Object.create ? (function(o, v) { + Object.defineProperty(o, "default", { enumerable: true, value: v }); +}) : function(o, v) { + o["default"] = v; +}); +var __importStar = (this && this.__importStar) || function (mod) { + if (mod && mod.__esModule) return mod; + var result = {}; + if (mod != null) for (var k in mod) if (k !== "default" && Object.hasOwnProperty.call(mod, k)) __createBinding(result, mod, k); + __setModuleDefault(result, mod); + return result; +}; +var __importDefault = (this && this.__importDefault) || function (mod) { + return (mod && mod.__esModule) ? mod : { "default": mod }; +}; +Object.defineProperty(exports, "__esModule", { value: true }); +exports.safeTrimTrailingSeparator = exports.normalizeSeparators = exports.hasRoot = exports.hasAbsoluteRoot = exports.ensureAbsoluteRoot = exports.dirname = void 0; +const path = __importStar(require("path")); +const assert_1 = __importDefault(require("assert")); +const IS_WINDOWS = process.platform === 'win32'; +/** + * Similar to path.dirname except normalizes the path separators and slightly better handling for Windows UNC paths. + * + * For example, on Linux/macOS: + * - `/ => /` + * - `/hello => /` + * + * For example, on Windows: + * - `C:\ => C:\` + * - `C:\hello => C:\` + * - `C: => C:` + * - `C:hello => C:` + * - `\ => \` + * - `\hello => \` + * - `\\hello => \\hello` + * - `\\hello\world => \\hello\world` + */ +function dirname(p) { + // Normalize slashes and trim unnecessary trailing slash + p = safeTrimTrailingSeparator(p); + // Windows UNC root, e.g. \\hello or \\hello\world + if (IS_WINDOWS && /^\\\\[^\\]+(\\[^\\]+)?$/.test(p)) { + return p; + } + // Get dirname + let result = path.dirname(p); + // Trim trailing slash for Windows UNC root, e.g. \\hello\world\ + if (IS_WINDOWS && /^\\\\[^\\]+\\[^\\]+\\$/.test(result)) { + result = safeTrimTrailingSeparator(result); + } + return result; +} +exports.dirname = dirname; +/** + * Roots the path if not already rooted. On Windows, relative roots like `\` + * or `C:` are expanded based on the current working directory. + */ +function ensureAbsoluteRoot(root, itemPath) { + assert_1.default(root, `ensureAbsoluteRoot parameter 'root' must not be empty`); + assert_1.default(itemPath, `ensureAbsoluteRoot parameter 'itemPath' must not be empty`); + // Already rooted + if (hasAbsoluteRoot(itemPath)) { + return itemPath; + } + // Windows + if (IS_WINDOWS) { + // Check for itemPath like C: or C:foo + if (itemPath.match(/^[A-Z]:[^\\/]|^[A-Z]:$/i)) { + let cwd = process.cwd(); + assert_1.default(cwd.match(/^[A-Z]:\\/i), `Expected current directory to start with an absolute drive root. Actual '${cwd}'`); + // Drive letter matches cwd? Expand to cwd + if (itemPath[0].toUpperCase() === cwd[0].toUpperCase()) { + // Drive only, e.g. C: + if (itemPath.length === 2) { + // Preserve specified drive letter case (upper or lower) + return `${itemPath[0]}:\\${cwd.substr(3)}`; + } + // Drive + path, e.g. C:foo + else { + if (!cwd.endsWith('\\')) { + cwd += '\\'; + } + // Preserve specified drive letter case (upper or lower) + return `${itemPath[0]}:\\${cwd.substr(3)}${itemPath.substr(2)}`; + } + } + // Different drive + else { + return `${itemPath[0]}:\\${itemPath.substr(2)}`; + } + } + // Check for itemPath like \ or \foo + else if (normalizeSeparators(itemPath).match(/^\\$|^\\[^\\]/)) { + const cwd = process.cwd(); + assert_1.default(cwd.match(/^[A-Z]:\\/i), `Expected current directory to start with an absolute drive root. Actual '${cwd}'`); + return `${cwd[0]}:\\${itemPath.substr(1)}`; + } + } + assert_1.default(hasAbsoluteRoot(root), `ensureAbsoluteRoot parameter 'root' must have an absolute root`); + // Otherwise ensure root ends with a separator + if (root.endsWith('/') || (IS_WINDOWS && root.endsWith('\\'))) { + // Intentionally empty + } + else { + // Append separator + root += path.sep; + } + return root + itemPath; +} +exports.ensureAbsoluteRoot = ensureAbsoluteRoot; +/** + * On Linux/macOS, true if path starts with `/`. On Windows, true for paths like: + * `\\hello\share` and `C:\hello` (and using alternate separator). + */ +function hasAbsoluteRoot(itemPath) { + assert_1.default(itemPath, `hasAbsoluteRoot parameter 'itemPath' must not be empty`); + // Normalize separators + itemPath = normalizeSeparators(itemPath); + // Windows + if (IS_WINDOWS) { + // E.g. \\hello\share or C:\hello + return itemPath.startsWith('\\\\') || /^[A-Z]:\\/i.test(itemPath); + } + // E.g. /hello + return itemPath.startsWith('/'); +} +exports.hasAbsoluteRoot = hasAbsoluteRoot; +/** + * On Linux/macOS, true if path starts with `/`. On Windows, true for paths like: + * `\`, `\hello`, `\\hello\share`, `C:`, and `C:\hello` (and using alternate separator). + */ +function hasRoot(itemPath) { + assert_1.default(itemPath, `isRooted parameter 'itemPath' must not be empty`); + // Normalize separators + itemPath = normalizeSeparators(itemPath); + // Windows + if (IS_WINDOWS) { + // E.g. \ or \hello or \\hello + // E.g. C: or C:\hello + return itemPath.startsWith('\\') || /^[A-Z]:/i.test(itemPath); + } + // E.g. /hello + return itemPath.startsWith('/'); +} +exports.hasRoot = hasRoot; +/** + * Removes redundant slashes and converts `/` to `\` on Windows + */ +function normalizeSeparators(p) { + p = p || ''; + // Windows + if (IS_WINDOWS) { + // Convert slashes on Windows + p = p.replace(/\//g, '\\'); + // Remove redundant slashes + const isUnc = /^\\\\+[^\\]/.test(p); // e.g. \\hello + return (isUnc ? '\\' : '') + p.replace(/\\\\+/g, '\\'); // preserve leading \\ for UNC + } + // Remove redundant slashes + return p.replace(/\/\/+/g, '/'); +} +exports.normalizeSeparators = normalizeSeparators; +/** + * Normalizes the path separators and trims the trailing separator (when safe). + * For example, `/foo/ => /foo` but `/ => /` + */ +function safeTrimTrailingSeparator(p) { + // Short-circuit if empty + if (!p) { + return ''; + } + // Normalize separators + p = normalizeSeparators(p); + // No trailing slash + if (!p.endsWith(path.sep)) { + return p; + } + // Check '/' on Linux/macOS and '\' on Windows + if (p === path.sep) { + return p; + } + // On Windows check if drive root. E.g. C:\ + if (IS_WINDOWS && /^[A-Z]:\\$/i.test(p)) { + return p; + } + // Otherwise trim trailing slash + return p.substr(0, p.length - 1); +} +exports.safeTrimTrailingSeparator = safeTrimTrailingSeparator; +//# sourceMappingURL=internal-path-helper.js.map \ No newline at end of file diff --git a/node_modules/@actions/cache/node_modules/@actions/glob/lib/internal-path-helper.js.map b/node_modules/@actions/cache/node_modules/@actions/glob/lib/internal-path-helper.js.map new file mode 100644 index 0000000000..1dc7ef9ad6 --- /dev/null +++ b/node_modules/@actions/cache/node_modules/@actions/glob/lib/internal-path-helper.js.map @@ -0,0 +1 @@ +{"version":3,"file":"internal-path-helper.js","sourceRoot":"","sources":["../src/internal-path-helper.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;AAAA,2CAA4B;AAC5B,oDAA2B;AAE3B,MAAM,UAAU,GAAG,OAAO,CAAC,QAAQ,KAAK,OAAO,CAAA;AAE/C;;;;;;;;;;;;;;;;GAgBG;AACH,SAAgB,OAAO,CAAC,CAAS;IAC/B,wDAAwD;IACxD,CAAC,GAAG,yBAAyB,CAAC,CAAC,CAAC,CAAA;IAEhC,kDAAkD;IAClD,IAAI,UAAU,IAAI,yBAAyB,CAAC,IAAI,CAAC,CAAC,CAAC,EAAE;QACnD,OAAO,CAAC,CAAA;KACT;IAED,cAAc;IACd,IAAI,MAAM,GAAG,IAAI,CAAC,OAAO,CAAC,CAAC,CAAC,CAAA;IAE5B,gEAAgE;IAChE,IAAI,UAAU,IAAI,wBAAwB,CAAC,IAAI,CAAC,MAAM,CAAC,EAAE;QACvD,MAAM,GAAG,yBAAyB,CAAC,MAAM,CAAC,CAAA;KAC3C;IAED,OAAO,MAAM,CAAA;AACf,CAAC;AAlBD,0BAkBC;AAED;;;GAGG;AACH,SAAgB,kBAAkB,CAAC,IAAY,EAAE,QAAgB;IAC/D,gBAAM,CAAC,IAAI,EAAE,uDAAuD,CAAC,CAAA;IACrE,gBAAM,CAAC,QAAQ,EAAE,2DAA2D,CAAC,CAAA;IAE7E,iBAAiB;IACjB,IAAI,eAAe,CAAC,QAAQ,CAAC,EAAE;Q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,CAAC,MAAM,GAAG,CAAC,CAAC,CAAA;AAClC,CAAC;AA1BD,8DA0BC"} \ No newline at end of file diff --git a/node_modules/@actions/cache/node_modules/@actions/glob/lib/internal-path.d.ts b/node_modules/@actions/cache/node_modules/@actions/glob/lib/internal-path.d.ts new file mode 100644 index 0000000000..5e0a2641f4 --- /dev/null +++ b/node_modules/@actions/cache/node_modules/@actions/glob/lib/internal-path.d.ts @@ -0,0 +1,15 @@ +/** + * Helper class for parsing paths into segments + */ +export declare class Path { + segments: string[]; + /** + * Constructs a Path + * @param itemPath Path or array of segments + */ + constructor(itemPath: string | string[]); + /** + * Converts the path to it's string representation + */ + toString(): string; +} diff --git a/node_modules/@actions/cache/node_modules/@actions/glob/lib/internal-path.js b/node_modules/@actions/cache/node_modules/@actions/glob/lib/internal-path.js new file mode 100644 index 0000000000..88a8715a9a --- /dev/null +++ b/node_modules/@actions/cache/node_modules/@actions/glob/lib/internal-path.js @@ -0,0 +1,113 @@ +"use strict"; +var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) { + if (k2 === undefined) k2 = k; + Object.defineProperty(o, k2, { enumerable: true, get: function() { return m[k]; } }); +}) : (function(o, m, k, k2) { + if (k2 === undefined) k2 = k; + o[k2] = m[k]; +})); +var __setModuleDefault = (this && this.__setModuleDefault) || (Object.create ? (function(o, v) { + Object.defineProperty(o, "default", { enumerable: true, value: v }); +}) : function(o, v) { + o["default"] = v; +}); +var __importStar = (this && this.__importStar) || function (mod) { + if (mod && mod.__esModule) return mod; + var result = {}; + if (mod != null) for (var k in mod) if (k !== "default" && Object.hasOwnProperty.call(mod, k)) __createBinding(result, mod, k); + __setModuleDefault(result, mod); + return result; +}; +var __importDefault = (this && this.__importDefault) || function (mod) { + return (mod && mod.__esModule) ? mod : { "default": mod }; +}; +Object.defineProperty(exports, "__esModule", { value: true }); +exports.Path = void 0; +const path = __importStar(require("path")); +const pathHelper = __importStar(require("./internal-path-helper")); +const assert_1 = __importDefault(require("assert")); +const IS_WINDOWS = process.platform === 'win32'; +/** + * Helper class for parsing paths into segments + */ +class Path { + /** + * Constructs a Path + * @param itemPath Path or array of segments + */ + constructor(itemPath) { + this.segments = []; + // String + if (typeof itemPath === 'string') { + assert_1.default(itemPath, `Parameter 'itemPath' must not be empty`); + // Normalize slashes and trim unnecessary trailing slash + itemPath = pathHelper.safeTrimTrailingSeparator(itemPath); + // Not rooted + if (!pathHelper.hasRoot(itemPath)) { + this.segments = itemPath.split(path.sep); + } + // Rooted + else { + // Add all segments, while not at the root + let remaining = itemPath; + let dir = pathHelper.dirname(remaining); + while (dir !== remaining) { + // Add the segment + const basename = path.basename(remaining); + this.segments.unshift(basename); + // Truncate the last segment + remaining = dir; + dir = pathHelper.dirname(remaining); + } + // Remainder is the root + this.segments.unshift(remaining); + } + } + // Array + else { + // Must not be empty + assert_1.default(itemPath.length > 0, `Parameter 'itemPath' must not be an empty array`); + // Each segment + for (let i = 0; i < itemPath.length; i++) { + let segment = itemPath[i]; + // Must not be empty + assert_1.default(segment, `Parameter 'itemPath' must not contain any empty segments`); + // Normalize slashes + segment = pathHelper.normalizeSeparators(itemPath[i]); + // Root segment + if (i === 0 && pathHelper.hasRoot(segment)) { + segment = pathHelper.safeTrimTrailingSeparator(segment); + assert_1.default(segment === pathHelper.dirname(segment), `Parameter 'itemPath' root segment contains information for multiple segments`); + this.segments.push(segment); + } + // All other segments + else { + // Must not contain slash + assert_1.default(!segment.includes(path.sep), `Parameter 'itemPath' contains unexpected path separators`); + this.segments.push(segment); + } + } + } + } + /** + * Converts the path to it's string representation + */ + toString() { + // First segment + let result = this.segments[0]; + // All others + let skipSlash = result.endsWith(path.sep) || (IS_WINDOWS && /^[A-Z]:$/i.test(result)); + for (let i = 1; i < this.segments.length; i++) { + if (skipSlash) { + skipSlash = false; + } + else { + result += path.sep; + } + result += this.segments[i]; + } + return result; + } +} +exports.Path = Path; +//# sourceMappingURL=internal-path.js.map \ No newline at end of file diff --git a/node_modules/@actions/cache/node_modules/@actions/glob/lib/internal-path.js.map b/node_modules/@actions/cache/node_modules/@actions/glob/lib/internal-path.js.map new file mode 100644 index 0000000000..8e8eeb57e7 --- /dev/null +++ b/node_modules/@actions/cache/node_modules/@actions/glob/lib/internal-path.js.map @@ -0,0 +1 @@ +{"version":3,"file":"internal-path.js","sourceRoot":"","sources":["../src/internal-path.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;AAAA,2CAA4B;AAC5B,mEAAoD;AACpD,oDAA2B;AAE3B,MAAM,UAAU,GAAG,OAAO,CAAC,QAAQ,KAAK,OAAO,CAAA;AAE/C;;GAEG;AACH,MAAa,IAAI;IAGf;;;OAGG;IACH,YAAY,QAA2B;QANvC,aAAQ,GAAa,EAAE,CAAA;QAOrB,SAAS;QACT,IAAI,OAAO,QAAQ,KAAK,QAAQ,EAAE;YAChC,gBAAM,CAAC,QAAQ,EAAE,wCAAwC,CAAC,CAAA;YAE1D,wDAAwD;YACxD,QAAQ,GAAG,UAAU,CAAC,yBAAyB,CAAC,QAAQ,CAAC,CAAA;YAEzD,aAAa;YACb,IAAI,CAAC,UAAU,CAAC,OAAO,CAAC,QAAQ,CAAC,EAAE;gBACjC,IAAI,CAAC,QAAQ,GAAG,QAAQ,CAAC,KAAK,CAAC,IAAI,CAAC,GAAG,CAAC,CAAA;aACzC;YACD,SAAS;iBACJ;gBACH,0CAA0C;gBAC1C,IAAI,SAAS,GAAG,QAAQ,CAAA;gBACxB,IAAI,GAAG,GAAG,UAAU,CAAC,OAAO,CAAC,SAAS,CAAC,CAAA;gBACvC,OAAO,GAAG,KAAK,SAAS,EAAE;oBACxB,kBAAkB;oBAClB,MAAM,QAAQ,GAAG,IAAI,CAAC,QAAQ,CAAC,SAAS,CAAC,CAAA;oBACzC,IAAI,CAAC,QAAQ,CAAC,OAAO,CAAC,QAAQ,CAAC,CAAA;oBAE/B,4BAA4B;oBAC5B,SAAS,GAAG,GAAG,CAAA;oBACf,GAAG,GAAG,UAAU,CAAC,OAAO,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,IAAI,SAAS,GACX,MAAM,CAAC,QAAQ,CAAC,IAAI,CAAC,GAAG,CAAC,IAAI,CAAC,UAAU,IAAI,WAAW,CAAC,IAAI,CAAC,MAAM,CAAC,CAAC,CAAA;QACvE,KAAK,IAAI,CAAC,GAAG,CAAC,EAAE,CAAC,GAAG,IAAI,CAAC,QAAQ,CAAC,MAAM,EAAE,CAAC,EAAE,EAAE;YAC7C,IAAI,SAAS,EAAE;gBACb,SAAS,GAAG,KAAK,CAAA;aAClB;iBAAM;gBACL,MAAM,IAAI,IAAI,CAAC,GAAG,CAAA;aACnB;YAED,MAAM,IAAI,IAAI,CAAC,QAAQ,CAAC,CAAC,CAAC,CAAA;SAC3B;QAED,OAAO,MAAM,CAAA;IACf,CAAC;CACF;AAvGD,oBAuGC"} \ No newline at end of file diff --git a/node_modules/@actions/cache/node_modules/@actions/glob/lib/internal-pattern-helper.d.ts b/node_modules/@actions/cache/node_modules/@actions/glob/lib/internal-pattern-helper.d.ts new file mode 100644 index 0000000000..c5dcc0725f --- /dev/null +++ b/node_modules/@actions/cache/node_modules/@actions/glob/lib/internal-pattern-helper.d.ts @@ -0,0 +1,15 @@ +import { MatchKind } from './internal-match-kind'; +import { Pattern } from './internal-pattern'; +/** + * Given an array of patterns, returns an array of paths to search. + * Duplicates and paths under other included paths are filtered out. + */ +export declare function getSearchPaths(patterns: Pattern[]): string[]; +/** + * Matches the patterns against the path + */ +export declare function match(patterns: Pattern[], itemPath: string): MatchKind; +/** + * Checks whether to descend further into the directory + */ +export declare function partialMatch(patterns: Pattern[], itemPath: string): boolean; diff --git a/node_modules/@actions/cache/node_modules/@actions/glob/lib/internal-pattern-helper.js b/node_modules/@actions/cache/node_modules/@actions/glob/lib/internal-pattern-helper.js new file mode 100644 index 0000000000..a7a0440d43 --- /dev/null +++ b/node_modules/@actions/cache/node_modules/@actions/glob/lib/internal-pattern-helper.js @@ -0,0 +1,94 @@ +"use strict"; +var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) { + if (k2 === undefined) k2 = k; + Object.defineProperty(o, k2, { enumerable: true, get: function() { return m[k]; } }); +}) : (function(o, m, k, k2) { + if (k2 === undefined) k2 = k; + o[k2] = m[k]; +})); +var __setModuleDefault = (this && this.__setModuleDefault) || (Object.create ? (function(o, v) { + Object.defineProperty(o, "default", { enumerable: true, value: v }); +}) : function(o, v) { + o["default"] = v; +}); +var __importStar = (this && this.__importStar) || function (mod) { + if (mod && mod.__esModule) return mod; + var result = {}; + if (mod != null) for (var k in mod) if (k !== "default" && Object.hasOwnProperty.call(mod, k)) __createBinding(result, mod, k); + __setModuleDefault(result, mod); + return result; +}; +Object.defineProperty(exports, "__esModule", { value: true }); +exports.partialMatch = exports.match = exports.getSearchPaths = void 0; +const pathHelper = __importStar(require("./internal-path-helper")); +const internal_match_kind_1 = require("./internal-match-kind"); +const IS_WINDOWS = process.platform === 'win32'; +/** + * Given an array of patterns, returns an array of paths to search. + * Duplicates and paths under other included paths are filtered out. + */ +function getSearchPaths(patterns) { + // Ignore negate patterns + patterns = patterns.filter(x => !x.negate); + // Create a map of all search paths + const searchPathMap = {}; + for (const pattern of patterns) { + const key = IS_WINDOWS + ? pattern.searchPath.toUpperCase() + : pattern.searchPath; + searchPathMap[key] = 'candidate'; + } + const result = []; + for (const pattern of patterns) { + // Check if already included + const key = IS_WINDOWS + ? pattern.searchPath.toUpperCase() + : pattern.searchPath; + if (searchPathMap[key] === 'included') { + continue; + } + // Check for an ancestor search path + let foundAncestor = false; + let tempKey = key; + let parent = pathHelper.dirname(tempKey); + while (parent !== tempKey) { + if (searchPathMap[parent]) { + foundAncestor = true; + break; + } + tempKey = parent; + parent = pathHelper.dirname(tempKey); + } + // Include the search pattern in the result + if (!foundAncestor) { + result.push(pattern.searchPath); + searchPathMap[key] = 'included'; + } + } + return result; +} +exports.getSearchPaths = getSearchPaths; +/** + * Matches the patterns against the path + */ +function match(patterns, itemPath) { + let result = internal_match_kind_1.MatchKind.None; + for (const pattern of patterns) { + if (pattern.negate) { + result &= ~pattern.match(itemPath); + } + else { + result |= pattern.match(itemPath); + } + } + return result; +} +exports.match = match; +/** + * Checks whether to descend further into the directory + */ +function partialMatch(patterns, itemPath) { + return patterns.some(x => !x.negate && x.partialMatch(itemPath)); +} +exports.partialMatch = partialMatch; +//# sourceMappingURL=internal-pattern-helper.js.map \ No newline at end of file diff --git a/node_modules/@actions/cache/node_modules/@actions/glob/lib/internal-pattern-helper.js.map b/node_modules/@actions/cache/node_modules/@actions/glob/lib/internal-pattern-helper.js.map new file mode 100644 index 0000000000..ae372853b9 --- /dev/null +++ b/node_modules/@actions/cache/node_modules/@actions/glob/lib/internal-pattern-helper.js.map @@ -0,0 +1 @@ +{"version":3,"file":"internal-pattern-helper.js","sourceRoot":"","sources":["../src/internal-pattern-helper.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;AAAA,mEAAoD;AACpD,+DAA+C;AAG/C,MAAM,UAAU,GAAG,OAAO,CAAC,QAAQ,KAAK,OAAO,CAAA;AAE/C;;;GAGG;AACH,SAAgB,cAAc,CAAC,QAAmB;IAChD,yBAAyB;IACzB,QAAQ,GAAG,QAAQ,CAAC,MAAM,CAAC,CAAC,CAAC,EAAE,CAAC,CAAC,CAAC,CAAC,MAAM,CAAC,CAAA;IAE1C,mCAAmC;IACnC,MAAM,aAAa,GAA4B,EAAE,CAAA;IACjD,KAAK,MAAM,OAAO,IAAI,QAAQ,EAAE;QAC9B,MAAM,GAAG,GAAG,UAAU;YACpB,CAAC,CAAC,OAAO,CAAC,UAAU,CAAC,WAAW,EAAE;YAClC,CAAC,CAAC,OAAO,CAAC,UAAU,CAAA;QACtB,aAAa,CAAC,GAAG,CAAC,GAAG,WAAW,CAAA;KACjC;IAED,MAAM,MAAM,GAAa,EAAE,CAAA;IAE3B,KAAK,MAAM,OAAO,IAAI,QAAQ,EAAE;QAC9B,4BAA4B;QAC5B,MAAM,GAAG,GAAG,UAAU;YACpB,CAAC,CAAC,OAAO,CAAC,UAA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CAAC,CAAC,MAAM,IAAI,CAAC,CAAC,YAAY,CAAC,QAAQ,CAAC,CAAC,CAAA;AAClE,CAAC;AAFD,oCAEC"} \ No newline at end of file diff --git a/node_modules/@actions/cache/node_modules/@actions/glob/lib/internal-pattern.d.ts b/node_modules/@actions/cache/node_modules/@actions/glob/lib/internal-pattern.d.ts new file mode 100644 index 0000000000..2c2224c84b --- /dev/null +++ b/node_modules/@actions/cache/node_modules/@actions/glob/lib/internal-pattern.d.ts @@ -0,0 +1,64 @@ +import { MatchKind } from './internal-match-kind'; +export declare class Pattern { + /** + * Indicates whether matches should be excluded from the result set + */ + readonly negate: boolean; + /** + * The directory to search. The literal path prior to the first glob segment. + */ + readonly searchPath: string; + /** + * The path/pattern segments. Note, only the first segment (the root directory) + * may contain a directory separator character. Use the trailingSeparator field + * to determine whether the pattern ended with a trailing slash. + */ + readonly segments: string[]; + /** + * Indicates the pattern should only match directories, not regular files. + */ + readonly trailingSeparator: boolean; + /** + * The Minimatch object used for matching + */ + private readonly minimatch; + /** + * Used to workaround a limitation with Minimatch when determining a partial + * match and the path is a root directory. For example, when the pattern is + * `/foo/**` or `C:\foo\**` and the path is `/` or `C:\`. + */ + private readonly rootRegExp; + /** + * Indicates that the pattern is implicitly added as opposed to user specified. + */ + private readonly isImplicitPattern; + constructor(pattern: string); + constructor(pattern: string, isImplicitPattern: boolean, segments: undefined, homedir: string); + constructor(negate: boolean, isImplicitPattern: boolean, segments: string[], homedir?: string); + /** + * Matches the pattern against the specified path + */ + match(itemPath: string): MatchKind; + /** + * Indicates whether the pattern may match descendants of the specified path + */ + partialMatch(itemPath: string): boolean; + /** + * Escapes glob patterns within a path + */ + static globEscape(s: string): string; + /** + * Normalizes slashes and ensures absolute root + */ + private static fixupPattern; + /** + * Attempts to unescape a pattern segment to create a literal path segment. + * Otherwise returns empty string. + */ + private static getLiteral; + /** + * Escapes regexp special characters + * https://javascript.info/regexp-escaping + */ + private static regExpEscape; +} diff --git a/node_modules/@actions/cache/node_modules/@actions/glob/lib/internal-pattern.js b/node_modules/@actions/cache/node_modules/@actions/glob/lib/internal-pattern.js new file mode 100644 index 0000000000..a17ffe9709 --- /dev/null +++ b/node_modules/@actions/cache/node_modules/@actions/glob/lib/internal-pattern.js @@ -0,0 +1,255 @@ +"use strict"; +var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) { + if (k2 === undefined) k2 = k; + Object.defineProperty(o, k2, { enumerable: true, get: function() { return m[k]; } }); +}) : (function(o, m, k, k2) { + if (k2 === undefined) k2 = k; + o[k2] = m[k]; +})); +var __setModuleDefault = (this && this.__setModuleDefault) || (Object.create ? (function(o, v) { + Object.defineProperty(o, "default", { enumerable: true, value: v }); +}) : function(o, v) { + o["default"] = v; +}); +var __importStar = (this && this.__importStar) || function (mod) { + if (mod && mod.__esModule) return mod; + var result = {}; + if (mod != null) for (var k in mod) if (k !== "default" && Object.hasOwnProperty.call(mod, k)) __createBinding(result, mod, k); + __setModuleDefault(result, mod); + return result; +}; +var __importDefault = (this && this.__importDefault) || function (mod) { + return (mod && mod.__esModule) ? mod : { "default": mod }; +}; +Object.defineProperty(exports, "__esModule", { value: true }); +exports.Pattern = void 0; +const os = __importStar(require("os")); +const path = __importStar(require("path")); +const pathHelper = __importStar(require("./internal-path-helper")); +const assert_1 = __importDefault(require("assert")); +const minimatch_1 = require("minimatch"); +const internal_match_kind_1 = require("./internal-match-kind"); +const internal_path_1 = require("./internal-path"); +const IS_WINDOWS = process.platform === 'win32'; +class Pattern { + constructor(patternOrNegate, isImplicitPattern = false, segments, homedir) { + /** + * Indicates whether matches should be excluded from the result set + */ + this.negate = false; + // Pattern overload + let pattern; + if (typeof patternOrNegate === 'string') { + pattern = patternOrNegate.trim(); + } + // Segments overload + else { + // Convert to pattern + segments = segments || []; + assert_1.default(segments.length, `Parameter 'segments' must not empty`); + const root = Pattern.getLiteral(segments[0]); + assert_1.default(root && pathHelper.hasAbsoluteRoot(root), `Parameter 'segments' first element must be a root path`); + pattern = new internal_path_1.Path(segments).toString().trim(); + if (patternOrNegate) { + pattern = `!${pattern}`; + } + } + // Negate + while (pattern.startsWith('!')) { + this.negate = !this.negate; + pattern = pattern.substr(1).trim(); + } + // Normalize slashes and ensures absolute root + pattern = Pattern.fixupPattern(pattern, homedir); + // Segments + this.segments = new internal_path_1.Path(pattern).segments; + // Trailing slash indicates the pattern should only match directories, not regular files + this.trailingSeparator = pathHelper + .normalizeSeparators(pattern) + .endsWith(path.sep); + pattern = pathHelper.safeTrimTrailingSeparator(pattern); + // Search path (literal path prior to the first glob segment) + let foundGlob = false; + const searchSegments = this.segments + .map(x => Pattern.getLiteral(x)) + .filter(x => !foundGlob && !(foundGlob = x === '')); + this.searchPath = new internal_path_1.Path(searchSegments).toString(); + // Root RegExp (required when determining partial match) + this.rootRegExp = new RegExp(Pattern.regExpEscape(searchSegments[0]), IS_WINDOWS ? 'i' : ''); + this.isImplicitPattern = isImplicitPattern; + // Create minimatch + const minimatchOptions = { + dot: true, + nobrace: true, + nocase: IS_WINDOWS, + nocomment: true, + noext: true, + nonegate: true + }; + pattern = IS_WINDOWS ? pattern.replace(/\\/g, '/') : pattern; + this.minimatch = new minimatch_1.Minimatch(pattern, minimatchOptions); + } + /** + * Matches the pattern against the specified path + */ + match(itemPath) { + // Last segment is globstar? + if (this.segments[this.segments.length - 1] === '**') { + // Normalize slashes + itemPath = pathHelper.normalizeSeparators(itemPath); + // Append a trailing slash. Otherwise Minimatch will not match the directory immediately + // preceding the globstar. For example, given the pattern `/foo/**`, Minimatch returns + // false for `/foo` but returns true for `/foo/`. Append a trailing slash to handle that quirk. + if (!itemPath.endsWith(path.sep) && this.isImplicitPattern === false) { + // Note, this is safe because the constructor ensures the pattern has an absolute root. + // For example, formats like C: and C:foo on Windows are resolved to an absolute root. + itemPath = `${itemPath}${path.sep}`; + } + } + else { + // Normalize slashes and trim unnecessary trailing slash + itemPath = pathHelper.safeTrimTrailingSeparator(itemPath); + } + // Match + if (this.minimatch.match(itemPath)) { + return this.trailingSeparator ? internal_match_kind_1.MatchKind.Directory : internal_match_kind_1.MatchKind.All; + } + return internal_match_kind_1.MatchKind.None; + } + /** + * Indicates whether the pattern may match descendants of the specified path + */ + partialMatch(itemPath) { + // Normalize slashes and trim unnecessary trailing slash + itemPath = pathHelper.safeTrimTrailingSeparator(itemPath); + // matchOne does not handle root path correctly + if (pathHelper.dirname(itemPath) === itemPath) { + return this.rootRegExp.test(itemPath); + } + return this.minimatch.matchOne(itemPath.split(IS_WINDOWS ? /\\+/ : /\/+/), this.minimatch.set[0], true); + } + /** + * Escapes glob patterns within a path + */ + static globEscape(s) { + return (IS_WINDOWS ? s : s.replace(/\\/g, '\\\\')) // escape '\' on Linux/macOS + .replace(/(\[)(?=[^/]+\])/g, '[[]') // escape '[' when ']' follows within the path segment + .replace(/\?/g, '[?]') // escape '?' + .replace(/\*/g, '[*]'); // escape '*' + } + /** + * Normalizes slashes and ensures absolute root + */ + static fixupPattern(pattern, homedir) { + // Empty + assert_1.default(pattern, 'pattern cannot be empty'); + // Must not contain `.` segment, unless first segment + // Must not contain `..` segment + const literalSegments = new internal_path_1.Path(pattern).segments.map(x => Pattern.getLiteral(x)); + assert_1.default(literalSegments.every((x, i) => (x !== '.' || i === 0) && x !== '..'), `Invalid pattern '${pattern}'. Relative pathing '.' and '..' is not allowed.`); + // Must not contain globs in root, e.g. Windows UNC path \\foo\b*r + assert_1.default(!pathHelper.hasRoot(pattern) || literalSegments[0], `Invalid pattern '${pattern}'. Root segment must not contain globs.`); + // Normalize slashes + pattern = pathHelper.normalizeSeparators(pattern); + // Replace leading `.` segment + if (pattern === '.' || pattern.startsWith(`.${path.sep}`)) { + pattern = Pattern.globEscape(process.cwd()) + pattern.substr(1); + } + // Replace leading `~` segment + else if (pattern === '~' || pattern.startsWith(`~${path.sep}`)) { + homedir = homedir || os.homedir(); + assert_1.default(homedir, 'Unable to determine HOME directory'); + assert_1.default(pathHelper.hasAbsoluteRoot(homedir), `Expected HOME directory to be a rooted path. Actual '${homedir}'`); + pattern = Pattern.globEscape(homedir) + pattern.substr(1); + } + // Replace relative drive root, e.g. pattern is C: or C:foo + else if (IS_WINDOWS && + (pattern.match(/^[A-Z]:$/i) || pattern.match(/^[A-Z]:[^\\]/i))) { + let root = pathHelper.ensureAbsoluteRoot('C:\\dummy-root', pattern.substr(0, 2)); + if (pattern.length > 2 && !root.endsWith('\\')) { + root += '\\'; + } + pattern = Pattern.globEscape(root) + pattern.substr(2); + } + // Replace relative root, e.g. pattern is \ or \foo + else if (IS_WINDOWS && (pattern === '\\' || pattern.match(/^\\[^\\]/))) { + let root = pathHelper.ensureAbsoluteRoot('C:\\dummy-root', '\\'); + if (!root.endsWith('\\')) { + root += '\\'; + } + pattern = Pattern.globEscape(root) + pattern.substr(1); + } + // Otherwise ensure absolute root + else { + pattern = pathHelper.ensureAbsoluteRoot(Pattern.globEscape(process.cwd()), pattern); + } + return pathHelper.normalizeSeparators(pattern); + } + /** + * Attempts to unescape a pattern segment to create a literal path segment. + * Otherwise returns empty string. + */ + static getLiteral(segment) { + let literal = ''; + for (let i = 0; i < segment.length; i++) { + const c = segment[i]; + // Escape + if (c === '\\' && !IS_WINDOWS && i + 1 < segment.length) { + literal += segment[++i]; + continue; + } + // Wildcard + else if (c === '*' || c === '?') { + return ''; + } + // Character set + else if (c === '[' && i + 1 < segment.length) { + let set = ''; + let closed = -1; + for (let i2 = i + 1; i2 < segment.length; i2++) { + const c2 = segment[i2]; + // Escape + if (c2 === '\\' && !IS_WINDOWS && i2 + 1 < segment.length) { + set += segment[++i2]; + continue; + } + // Closed + else if (c2 === ']') { + closed = i2; + break; + } + // Otherwise + else { + set += c2; + } + } + // Closed? + if (closed >= 0) { + // Cannot convert + if (set.length > 1) { + return ''; + } + // Convert to literal + if (set) { + literal += set; + i = closed; + continue; + } + } + // Otherwise fall thru + } + // Append + literal += c; + } + return literal; + } + /** + * Escapes regexp special characters + * https://javascript.info/regexp-escaping + */ + static regExpEscape(s) { + return s.replace(/[[\\^$.|?*+()]/g, '\\$&'); + } +} +exports.Pattern = Pattern; +//# sourceMappingURL=internal-pattern.js.map \ No newline at end of file diff --git a/node_modules/@actions/cache/node_modules/@actions/glob/lib/internal-pattern.js.map b/node_modules/@actions/cache/node_modules/@actions/glob/lib/internal-pattern.js.map new file mode 100644 index 0000000000..08e172d7bc --- /dev/null +++ b/node_modules/@actions/cache/node_modules/@actions/glob/lib/internal-pattern.js.map @@ -0,0 +1 @@ +{"version":3,"file":"internal-pattern.js","sourceRoot":"","sources":["../src/internal-pattern.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;AAAA,uCAAwB;AACxB,2CAA4B;AAC5B,mEAAoD;AACpD,oDAA2B;AAC3B,yCAA8E;AAC9E,+DAA+C;AAC/C,mDAAoC;AAEpC,MAAM,UAAU,GAAG,OAAO,CAAC,QAAQ,KAAK,OAAO,CAAA;AAE/C,MAAa,OAAO;IAqDlB,YACE,eAAiC,EACjC,iBAAiB,GAAG,KAAK,EACzB,QAAmB,EACnB,OAAgB;QAxDlB;;WAEG;QACM,WAAM,GAAY,KAAK,CAAA;QAuD9B,mBAAmB;QACnB,IAAI,OAAe,CAAA;QACnB,IAAI,OAAO,eAAe,KAAK,QAAQ,EAAE;YACvC,OAAO,GAAG,eAAe,CAAC,IAAI,EAAE,CAAA;SACjC;QACD,oBAAoB;aACf;YACH,qBAAqB;YACrB,QAAQ,GAAG,QAAQ,IAAI,EAAE,CAAA;YACzB,gBAAM,CAAC,QAAQ,CAAC,MAAM,EAAE,qCAAqC,CAAC,CAAA;YAC9D,MAAM,IAAI,GAAG,OAAO,CAAC,UAAU,CAAC,QAAQ,CAAC,CAAC,CAAC,CAAC,CAAA;YAC5C,gBAAM,CACJ,IAAI,IAAI,UAAU,CAAC,eAAe,CAAC,IAAI,CAAC,EACxC,wDAAwD,CACzD,CAAA;YACD,OAAO,GAAG,IAAI,oBAAI,CAAC,QAAQ,CAAC,CAAC,QAAQ,EAAE,CAAC,IAAI,EAAE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;wBACd,CAAC,GAAG,MAAM,CAAA;wBACV,SAAQ;qBACT;iBACF;gBAED,sBAAsB;aACvB;YAED,SAAS;YACT,OAAO,IAAI,CAAC,CAAA;SACb;QAED,OAAO,OAAO,CAAA;IAChB,CAAC;IAED;;;OAGG;IACK,MAAM,CAAC,YAAY,CAAC,CAAS;QACnC,OAAO,CAAC,CAAC,OAAO,CAAC,iBAAiB,EAAE,MAAM,CAAC,CAAA;IAC7C,CAAC;CACF;AAzUD,0BAyUC"} \ No newline at end of file diff --git a/node_modules/@actions/cache/node_modules/@actions/glob/lib/internal-search-state.d.ts b/node_modules/@actions/cache/node_modules/@actions/glob/lib/internal-search-state.d.ts new file mode 100644 index 0000000000..aac344eb38 --- /dev/null +++ b/node_modules/@actions/cache/node_modules/@actions/glob/lib/internal-search-state.d.ts @@ -0,0 +1,5 @@ +export declare class SearchState { + readonly path: string; + readonly level: number; + constructor(path: string, level: number); +} diff --git a/node_modules/@actions/cache/node_modules/@actions/glob/lib/internal-search-state.js b/node_modules/@actions/cache/node_modules/@actions/glob/lib/internal-search-state.js new file mode 100644 index 0000000000..5d266ce1f3 --- /dev/null +++ b/node_modules/@actions/cache/node_modules/@actions/glob/lib/internal-search-state.js @@ -0,0 +1,11 @@ +"use strict"; +Object.defineProperty(exports, "__esModule", { value: true }); +exports.SearchState = void 0; +class SearchState { + constructor(path, level) { + this.path = path; + this.level = level; + } +} +exports.SearchState = SearchState; +//# sourceMappingURL=internal-search-state.js.map \ No newline at end of file diff --git a/node_modules/@actions/cache/node_modules/@actions/glob/lib/internal-search-state.js.map b/node_modules/@actions/cache/node_modules/@actions/glob/lib/internal-search-state.js.map new file mode 100644 index 0000000000..4421012462 --- /dev/null +++ b/node_modules/@actions/cache/node_modules/@actions/glob/lib/internal-search-state.js.map @@ -0,0 +1 @@ +{"version":3,"file":"internal-search-state.js","sourceRoot":"","sources":["../src/internal-search-state.ts"],"names":[],"mappings":";;;AAAA,MAAa,WAAW;IAItB,YAAY,IAAY,EAAE,KAAa;QACrC,IAAI,CAAC,IAAI,GAAG,IAAI,CAAA;QAChB,IAAI,CAAC,KAAK,GAAG,KAAK,CAAA;IACpB,CAAC;CACF;AARD,kCAQC"} \ No newline at end of file diff --git a/node_modules/@actions/cache/node_modules/@actions/glob/package.json b/node_modules/@actions/cache/node_modules/@actions/glob/package.json new file mode 100644 index 0000000000..4dfd76aa7b --- /dev/null +++ b/node_modules/@actions/cache/node_modules/@actions/glob/package.json @@ -0,0 +1,43 @@ +{ + "name": "@actions/glob", + "version": "0.1.2", + "preview": true, + "description": "Actions glob lib", + "keywords": [ + "github", + "actions", + "glob" + ], + "homepage": "https://github.com/actions/toolkit/tree/main/packages/glob", + "license": "MIT", + "main": "lib/glob.js", + "types": "lib/glob.d.ts", + "directories": { + "lib": "lib", + "test": "__tests__" + }, + "files": [ + "lib", + "!.DS_Store" + ], + "publishConfig": { + "access": "public" + }, + "repository": { + "type": "git", + "url": "git+https://github.com/actions/toolkit.git", + "directory": "packages/glob" + }, + "scripts": { + "audit-moderate": "npm install && npm audit --json --audit-level=moderate > audit.json", + "test": "echo \"Error: run tests from root\" && exit 1", + "tsc": "tsc" + }, + "bugs": { + "url": "https://github.com/actions/toolkit/issues" + }, + "dependencies": { + "@actions/core": "^1.2.6", + "minimatch": "^3.0.4" + } +} diff --git a/node_modules/@actions/glob/lib/glob.d.ts b/node_modules/@actions/glob/lib/glob.d.ts index 56424fc3a8..3f640e8848 100644 --- a/node_modules/@actions/glob/lib/glob.d.ts +++ b/node_modules/@actions/glob/lib/glob.d.ts @@ -1,5 +1,6 @@ import { Globber } from './internal-globber'; import { GlobOptions } from './internal-glob-options'; +import { HashFileOptions } from './internal-hash-file-options'; export { Globber, GlobOptions }; /** * Constructs a globber @@ -8,3 +9,12 @@ export { Globber, GlobOptions }; * @param options Glob options */ export declare function create(patterns: string, options?: GlobOptions): Promise; +/** + * Computes the sha256 hash of a glob + * + * @param patterns Patterns separated by newlines + * @param currentWorkspace Workspace used when matching files + * @param options Glob options + * @param verbose Enables verbose logging + */ +export declare function hashFiles(patterns: string, currentWorkspace?: string, options?: HashFileOptions, verbose?: Boolean): Promise; diff --git a/node_modules/@actions/glob/lib/glob.js b/node_modules/@actions/glob/lib/glob.js index 58cb68331e..fea8afd4a7 100644 --- a/node_modules/@actions/glob/lib/glob.js +++ b/node_modules/@actions/glob/lib/glob.js @@ -9,8 +9,9 @@ var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, ge }); }; Object.defineProperty(exports, "__esModule", { value: true }); -exports.create = void 0; +exports.hashFiles = exports.create = void 0; const internal_globber_1 = require("./internal-globber"); +const internal_hash_files_1 = require("./internal-hash-files"); /** * Constructs a globber * @@ -23,4 +24,23 @@ function create(patterns, options) { }); } exports.create = create; +/** + * Computes the sha256 hash of a glob + * + * @param patterns Patterns separated by newlines + * @param currentWorkspace Workspace used when matching files + * @param options Glob options + * @param verbose Enables verbose logging + */ +function hashFiles(patterns, currentWorkspace = '', options, verbose = false) { + return __awaiter(this, void 0, void 0, function* () { + let followSymbolicLinks = true; + if (options && typeof options.followSymbolicLinks === 'boolean') { + followSymbolicLinks = options.followSymbolicLinks; + } + const globber = yield create(patterns, { followSymbolicLinks }); + return internal_hash_files_1.hashFiles(globber, currentWorkspace, verbose); + }); +} +exports.hashFiles = hashFiles; //# sourceMappingURL=glob.js.map \ No newline at end of file diff --git a/node_modules/@actions/glob/lib/glob.js.map b/node_modules/@actions/glob/lib/glob.js.map index b27e7e4af6..91c24ce77e 100644 --- a/node_modules/@actions/glob/lib/glob.js.map +++ b/node_modules/@actions/glob/lib/glob.js.map @@ -1 +1 @@ -{"version":3,"file":"glob.js","sourceRoot":"","sources":["../src/glob.ts"],"names":[],"mappings":";;;;;;;;;;;;AAAA,yDAA0D;AAK1D;;;;;GAKG;AACH,SAAsB,MAAM,CAC1B,QAAgB,EAChB,OAAqB;;QAErB,OAAO,MAAM,iCAAc,CAAC,MAAM,CAAC,QAAQ,EAAE,OAAO,CAAC,CAAA;IACvD,CAAC;CAAA;AALD,wBAKC"} \ No newline at end of file +{"version":3,"file":"glob.js","sourceRoot":"","sources":["../src/glob.ts"],"names":[],"mappings":";;;;;;;;;;;;AAAA,yDAA0D;AAG1D,+DAA6D;AAI7D;;;;;GAKG;AACH,SAAsB,MAAM,CAC1B,QAAgB,EAChB,OAAqB;;QAErB,OAAO,MAAM,iCAAc,CAAC,MAAM,CAAC,QAAQ,EAAE,OAAO,CAAC,CAAA;IACvD,CAAC;CAAA;AALD,wBAKC;AAED;;;;;;;GAOG;AACH,SAAsB,SAAS,CAC7B,QAAgB,EAChB,gBAAgB,GAAG,EAAE,EACrB,OAAyB,EACzB,UAAmB,KAAK;;QAExB,IAAI,mBAAmB,GAAG,IAAI,CAAA;QAC9B,IAAI,OAAO,IAAI,OAAO,OAAO,CAAC,mBAAmB,KAAK,SAAS,EAAE;YAC/D,mBAAmB,GAAG,OAAO,CAAC,mBAAmB,CAAA;SAClD;QACD,MAAM,OAAO,GAAG,MAAM,MAAM,CAAC,QAAQ,EAAE,EAAC,mBAAmB,EAAC,CAAC,CAAA;QAC7D,OAAO,+BAAU,CAAC,OAAO,EAAE,gBAAgB,EAAE,OAAO,CAAC,CAAA;IACvD,CAAC;CAAA;AAZD,8BAYC"} \ No newline at end of file diff --git a/node_modules/@actions/glob/lib/internal-glob-options-helper.js b/node_modules/@actions/glob/lib/internal-glob-options-helper.js index 974dfd038d..bd3391ba26 100644 --- a/node_modules/@actions/glob/lib/internal-glob-options-helper.js +++ b/node_modules/@actions/glob/lib/internal-glob-options-helper.js @@ -28,6 +28,7 @@ function getOptions(copy) { const result = { followSymbolicLinks: true, implicitDescendants: true, + matchDirectories: true, omitBrokenSymbolicLinks: true }; if (copy) { @@ -39,6 +40,10 @@ function getOptions(copy) { result.implicitDescendants = copy.implicitDescendants; core.debug(`implicitDescendants '${result.implicitDescendants}'`); } + if (typeof copy.matchDirectories === 'boolean') { + result.matchDirectories = copy.matchDirectories; + core.debug(`matchDirectories '${result.matchDirectories}'`); + } if (typeof copy.omitBrokenSymbolicLinks === 'boolean') { result.omitBrokenSymbolicLinks = copy.omitBrokenSymbolicLinks; core.debug(`omitBrokenSymbolicLinks '${result.omitBrokenSymbolicLinks}'`); diff --git a/node_modules/@actions/glob/lib/internal-glob-options-helper.js.map b/node_modules/@actions/glob/lib/internal-glob-options-helper.js.map index 93376ddc0a..d2a918c377 100644 --- a/node_modules/@actions/glob/lib/internal-glob-options-helper.js.map +++ b/node_modules/@actions/glob/lib/internal-glob-options-helper.js.map @@ -1 +1 @@ -{"version":3,"file":"internal-glob-options-helper.js","sourceRoot":"","sources":["../src/internal-glob-options-helper.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;AAAA,oDAAqC;AAGrC;;GAEG;AACH,SAAgB,UAAU,CAAC,IAAkB;IAC3C,MAAM,MAAM,GAAgB;QAC1B,mBAAmB,EAAE,IAAI;QACzB,mBAAmB,EAAE,IAAI;QACzB,uBAAuB,EAAE,IAAI;KAC9B,CAAA;IAED,IAAI,IAAI,EAAE;QACR,IAAI,OAAO,IAAI,CAAC,mBAAmB,KAAK,SAAS,EAAE;YACjD,MAAM,CAAC,mBAAmB,GAAG,IAAI,CAAC,mBAAmB,CAAA;YACrD,IAAI,CAAC,KAAK,CAAC,wBAAwB,MAAM,CAAC,mBAAmB,GAAG,CAAC,CAAA;SAClE;QAED,IAAI,OAAO,IAAI,CAAC,mBAAmB,KAAK,SAAS,EAAE;YACjD,MAAM,CAAC,mBAAmB,GAAG,IAAI,CAAC,mBAAmB,CAAA;YACrD,IAAI,CAAC,KAAK,CAAC,wBAAwB,MAAM,CAAC,mBAAmB,GAAG,CAAC,CAAA;SAClE;QAED,IAAI,OAAO,IAAI,CAAC,uBAAuB,KAAK,SAAS,EAAE;YACrD,MAAM,CAAC,uBAAuB,GAAG,IAAI,CAAC,uBAAuB,CAAA;YAC7D,IAAI,CAAC,KAAK,CAAC,4BAA4B,MAAM,CAAC,uBAAuB,GAAG,CAAC,CAAA;SAC1E;KACF;IAED,OAAO,MAAM,CAAA;AACf,CAAC;AAzBD,gCAyBC"} \ No newline at end of file +{"version":3,"file":"internal-glob-options-helper.js","sourceRoot":"","sources":["../src/internal-glob-options-helper.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;AAAA,oDAAqC;AAGrC;;GAEG;AACH,SAAgB,UAAU,CAAC,IAAkB;IAC3C,MAAM,MAAM,GAAgB;QAC1B,mBAAmB,EAAE,IAAI;QACzB,mBAAmB,EAAE,IAAI;QACzB,gBAAgB,EAAE,IAAI;QACtB,uBAAuB,EAAE,IAAI;KAC9B,CAAA;IAED,IAAI,IAAI,EAAE;QACR,IAAI,OAAO,IAAI,CAAC,mBAAmB,KAAK,SAAS,EAAE;YACjD,MAAM,CAAC,mBAAmB,GAAG,IAAI,CAAC,mBAAmB,CAAA;YACrD,IAAI,CAAC,KAAK,CAAC,wBAAwB,MAAM,CAAC,mBAAmB,GAAG,CAAC,CAAA;SAClE;QAED,IAAI,OAAO,IAAI,CAAC,mBAAmB,KAAK,SAAS,EAAE;YACjD,MAAM,CAAC,mBAAmB,GAAG,IAAI,CAAC,mBAAmB,CAAA;YACrD,IAAI,CAAC,KAAK,CAAC,wBAAwB,MAAM,CAAC,mBAAmB,GAAG,CAAC,CAAA;SAClE;QAED,IAAI,OAAO,IAAI,CAAC,gBAAgB,KAAK,SAAS,EAAE;YAC9C,MAAM,CAAC,gBAAgB,GAAG,IAAI,CAAC,gBAAgB,CAAA;YAC/C,IAAI,CAAC,KAAK,CAAC,qBAAqB,MAAM,CAAC,gBAAgB,GAAG,CAAC,CAAA;SAC5D;QAED,IAAI,OAAO,IAAI,CAAC,uBAAuB,KAAK,SAAS,EAAE;YACrD,MAAM,CAAC,uBAAuB,GAAG,IAAI,CAAC,uBAAuB,CAAA;YAC7D,IAAI,CAAC,KAAK,CAAC,4BAA4B,MAAM,CAAC,uBAAuB,GAAG,CAAC,CAAA;SAC1E;KACF;IAED,OAAO,MAAM,CAAA;AACf,CAAC;AA/BD,gCA+BC"} \ No newline at end of file diff --git a/node_modules/@actions/glob/lib/internal-glob-options.d.ts b/node_modules/@actions/glob/lib/internal-glob-options.d.ts index c1cac0f1f4..fe04859938 100644 --- a/node_modules/@actions/glob/lib/internal-glob-options.d.ts +++ b/node_modules/@actions/glob/lib/internal-glob-options.d.ts @@ -19,6 +19,13 @@ export interface GlobOptions { * @default true */ implicitDescendants?: boolean; + /** + * Indicates whether matching directories should be included in the + * result set. + * + * @default true + */ + matchDirectories?: boolean; /** * Indicates whether broken symbolic should be ignored and omitted from the * result set. Otherwise an error will be thrown. diff --git a/node_modules/@actions/glob/lib/internal-globber.js b/node_modules/@actions/glob/lib/internal-globber.js index a6695b5c21..788fb77372 100644 --- a/node_modules/@actions/glob/lib/internal-globber.js +++ b/node_modules/@actions/glob/lib/internal-globber.js @@ -141,7 +141,7 @@ class DefaultGlobber { // Directory if (stats.isDirectory()) { // Matched - if (match & internal_match_kind_1.MatchKind.Directory) { + if (match & internal_match_kind_1.MatchKind.Directory && options.matchDirectories) { yield yield __await(item.path); } // Descend? diff --git a/node_modules/@actions/glob/lib/internal-globber.js.map b/node_modules/@actions/glob/lib/internal-globber.js.map index cd1f05d9ba..a060d4c0d2 100644 --- a/node_modules/@actions/glob/lib/internal-globber.js.map +++ b/node_modules/@actions/glob/lib/internal-globber.js.map @@ -1 +1 @@ -{"version":3,"file":"internal-globber.js","sourceRoot":"","sources":["../src/internal-globber.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAAA,oDAAqC;AACrC,uCAAwB;AACxB,kFAAmE;AACnE,2CAA4B;AAC5B,yEAA0D;AAE1D,+DAA+C;AAC/C,yDAA0C;AAC1C,mEAAmD;AAEnD,MAAM,UAAU,GAAG,OAAO,CAAC,QAAQ,KAAK,OAAO,CAAA;AAiC/C,MAAa,cAAc;IAKzB,YAAoB,OAAqB;QAHxB,aAAQ,GAAc,EAAE,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c,CAAC,MAAM,IAAI,IAAI,CAAC,KAAK,EAAE;oBAC1C,cAAc,CAAC,GAAG,EAAE,CAAA;iBACrB;gBAED,mBAAmB;gBACnB,IAAI,cAAc,CAAC,IAAI,CAAC,CAAC,CAAS,EAAE,EAAE,CAAC,CAAC,KAAK,QAAQ,CAAC,EAAE;oBACtD,IAAI,CAAC,KAAK,CACR,oCAAoC,IAAI,CAAC,IAAI,mBAAmB,QAAQ,GAAG,CAC5E,CAAA;oBACD,OAAO,SAAS,CAAA;iBACjB;gBAED,6BAA6B;gBAC7B,cAAc,CAAC,IAAI,CAAC,QAAQ,CAAC,CAAA;aAC9B;YAED,OAAO,KAAK,CAAA;QACd,CAAC;KAAA;CACF;AAvMD,wCAuMC"} \ No newline at end of file +{"version":3,"file":"internal-globber.js","sourceRoot":"","sources":["../src/internal-globber.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAAA,oDAAqC;AACrC,uCAAwB;AACxB,kFAAmE;AACnE,2CAA4B;AAC5B,yEAA0D;AAE1D,+DAA+C;AAC/C,yDAA0C;AAC1C,mEAAmD;AAEnD,MAAM,UAAU,GAAG,OAAO,CAAC,QAAQ,KAAK,OAAO,CAAA;AAiC/C,MAAa,cAAc;IAKzB,YAAoB,OAAqB;QAHxB,aAAQ,GAAc,EAAE,CAAA;QACxB,gBAAW,GAAa,EAAE,CAAA;QAGzC,IAAI,CAAC,OAAO,GAAG,iBAAiB,CAAC,UAAU,CAAC,OAAO,CAAC,CAAA;IACtD,CAAC;IAED,cAAc;QACZ,gBAAgB;QAChB,OAAO,IAAI,CAAC,WAAW,CAAC,KAAK,EAAE,CAAA;IACjC,CAAC;IAEK,IAAI;;;YACR,MAAM,MAAM,GAAa,EAAE,CAAA;;gBAC3B,KAA6B,IAAA,KAAA,cAAA,IAAI,CAAC,aAAa,EAAE,CAAA,IAAA;oBAAtC,MAAM,QAAQ,WAAA,CAAA;oBACvB,MAAM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AAC,IAAI,CAAC,QAAQ,CAAC,CAAA;aAC9B;YAED,OAAO,KAAK,CAAA;QACd,CAAC;KAAA;CACF;AAvMD,wCAuMC"} \ No newline at end of file diff --git a/node_modules/@actions/glob/lib/internal-hash-file-options.d.ts b/node_modules/@actions/glob/lib/internal-hash-file-options.d.ts new file mode 100644 index 0000000000..57c6d3a7fe --- /dev/null +++ b/node_modules/@actions/glob/lib/internal-hash-file-options.d.ts @@ -0,0 +1,12 @@ +/** + * Options to control globbing behavior + */ +export interface HashFileOptions { + /** + * Indicates whether to follow symbolic links. Generally should set to false + * when deleting files. + * + * @default true + */ + followSymbolicLinks?: boolean; +} diff --git a/node_modules/@actions/glob/lib/internal-hash-file-options.js b/node_modules/@actions/glob/lib/internal-hash-file-options.js new file mode 100644 index 0000000000..843628407d --- /dev/null +++ b/node_modules/@actions/glob/lib/internal-hash-file-options.js @@ -0,0 +1,3 @@ +"use strict"; +Object.defineProperty(exports, "__esModule", { value: true }); +//# sourceMappingURL=internal-hash-file-options.js.map \ No newline at end of file diff --git a/node_modules/@actions/glob/lib/internal-hash-file-options.js.map b/node_modules/@actions/glob/lib/internal-hash-file-options.js.map new file mode 100644 index 0000000000..b0b03049b5 --- /dev/null +++ b/node_modules/@actions/glob/lib/internal-hash-file-options.js.map @@ -0,0 +1 @@ +{"version":3,"file":"internal-hash-file-options.js","sourceRoot":"","sources":["../src/internal-hash-file-options.ts"],"names":[],"mappings":""} \ No newline at end of file diff --git a/node_modules/@actions/glob/lib/internal-hash-files.d.ts b/node_modules/@actions/glob/lib/internal-hash-files.d.ts new file mode 100644 index 0000000000..69bb1ba76d --- /dev/null +++ b/node_modules/@actions/glob/lib/internal-hash-files.d.ts @@ -0,0 +1,2 @@ +import { Globber } from './glob'; +export declare function hashFiles(globber: Globber, currentWorkspace: string, verbose?: Boolean): Promise; diff --git a/node_modules/@actions/glob/lib/internal-hash-files.js b/node_modules/@actions/glob/lib/internal-hash-files.js new file mode 100644 index 0000000000..8db5306d34 --- /dev/null +++ b/node_modules/@actions/glob/lib/internal-hash-files.js @@ -0,0 +1,97 @@ +"use strict"; +var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) { + if (k2 === undefined) k2 = k; + Object.defineProperty(o, k2, { enumerable: true, get: function() { return m[k]; } }); +}) : (function(o, m, k, k2) { + if (k2 === undefined) k2 = k; + o[k2] = m[k]; +})); +var __setModuleDefault = (this && this.__setModuleDefault) || (Object.create ? (function(o, v) { + Object.defineProperty(o, "default", { enumerable: true, value: v }); +}) : function(o, v) { + o["default"] = v; +}); +var __importStar = (this && this.__importStar) || function (mod) { + if (mod && mod.__esModule) return mod; + var result = {}; + if (mod != null) for (var k in mod) if (k !== "default" && Object.hasOwnProperty.call(mod, k)) __createBinding(result, mod, k); + __setModuleDefault(result, mod); + return result; +}; +var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, generator) { + function adopt(value) { return value instanceof P ? value : new P(function (resolve) { resolve(value); }); } + return new (P || (P = Promise))(function (resolve, reject) { + function fulfilled(value) { try { step(generator.next(value)); } catch (e) { reject(e); } } + function rejected(value) { try { step(generator["throw"](value)); } catch (e) { reject(e); } } + function step(result) { result.done ? resolve(result.value) : adopt(result.value).then(fulfilled, rejected); } + step((generator = generator.apply(thisArg, _arguments || [])).next()); + }); +}; +var __asyncValues = (this && this.__asyncValues) || function (o) { + if (!Symbol.asyncIterator) throw new TypeError("Symbol.asyncIterator is not defined."); + var m = o[Symbol.asyncIterator], i; + return m ? m.call(o) : (o = typeof __values === "function" ? __values(o) : o[Symbol.iterator](), i = {}, verb("next"), verb("throw"), verb("return"), i[Symbol.asyncIterator] = function () { return this; }, i); + function verb(n) { i[n] = o[n] && function (v) { return new Promise(function (resolve, reject) { v = o[n](v), settle(resolve, reject, v.done, v.value); }); }; } + function settle(resolve, reject, d, v) { Promise.resolve(v).then(function(v) { resolve({ value: v, done: d }); }, reject); } +}; +Object.defineProperty(exports, "__esModule", { value: true }); +exports.hashFiles = void 0; +const crypto = __importStar(require("crypto")); +const core = __importStar(require("@actions/core")); +const fs = __importStar(require("fs")); +const stream = __importStar(require("stream")); +const util = __importStar(require("util")); +const path = __importStar(require("path")); +function hashFiles(globber, currentWorkspace, verbose = false) { + var e_1, _a; + var _b; + return __awaiter(this, void 0, void 0, function* () { + const writeDelegate = verbose ? core.info : core.debug; + let hasMatch = false; + const githubWorkspace = currentWorkspace + ? currentWorkspace + : (_b = process.env['GITHUB_WORKSPACE']) !== null && _b !== void 0 ? _b : process.cwd(); + const result = crypto.createHash('sha256'); + let count = 0; + try { + for (var _c = __asyncValues(globber.globGenerator()), _d; _d = yield _c.next(), !_d.done;) { + const file = _d.value; + writeDelegate(file); + if (!file.startsWith(`${githubWorkspace}${path.sep}`)) { + writeDelegate(`Ignore '${file}' since it is not under GITHUB_WORKSPACE.`); + continue; + } + if (fs.statSync(file).isDirectory()) { + writeDelegate(`Skip directory '${file}'.`); + continue; + } + const hash = crypto.createHash('sha256'); + const pipeline = util.promisify(stream.pipeline); + yield pipeline(fs.createReadStream(file), hash); + result.write(hash.digest()); + count++; + if (!hasMatch) { + hasMatch = true; + } + } + } + catch (e_1_1) { e_1 = { error: e_1_1 }; } + finally { + try { + if (_d && !_d.done && (_a = _c.return)) yield _a.call(_c); + } + finally { if (e_1) throw e_1.error; } + } + result.end(); + if (hasMatch) { + writeDelegate(`Found ${count} files to hash.`); + return result.digest('hex'); + } + else { + writeDelegate(`No matches found for glob`); + return ''; + } + }); +} +exports.hashFiles = hashFiles; +//# sourceMappingURL=internal-hash-files.js.map \ No newline at end of file diff --git a/node_modules/@actions/glob/lib/internal-hash-files.js.map b/node_modules/@actions/glob/lib/internal-hash-files.js.map new file mode 100644 index 0000000000..662261f8ec --- /dev/null +++ b/node_modules/@actions/glob/lib/internal-hash-files.js.map @@ -0,0 +1 @@ +{"version":3,"file":"internal-hash-files.js","sourceRoot":"","sources":["../src/internal-hash-files.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;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AI,CAAC,EAAE,IAAI,CAAC,CAAA;gBAC/C,MAAM,CAAC,KAAK,CAAC,IAAI,CAAC,MAAM,EAAE,CAAC,CAAA;gBAC3B,KAAK,EAAE,CAAA;gBACP,IAAI,CAAC,QAAQ,EAAE;oBACb,QAAQ,GAAG,IAAI,CAAA;iBAChB;aACF;;;;;;;;;QACD,MAAM,CAAC,GAAG,EAAE,CAAA;QAEZ,IAAI,QAAQ,EAAE;YACZ,aAAa,CAAC,SAAS,KAAK,iBAAiB,CAAC,CAAA;YAC9C,OAAO,MAAM,CAAC,MAAM,CAAC,KAAK,CAAC,CAAA;SAC5B;aAAM;YACL,aAAa,CAAC,2BAA2B,CAAC,CAAA;YAC1C,OAAO,EAAE,CAAA;SACV;;CACF;AAxCD,8BAwCC"} \ No newline at end of file diff --git a/node_modules/@actions/glob/package.json b/node_modules/@actions/glob/package.json index 4dfd76aa7b..62e6bd2935 100644 --- a/node_modules/@actions/glob/package.json +++ b/node_modules/@actions/glob/package.json @@ -1,6 +1,6 @@ { "name": "@actions/glob", - "version": "0.1.2", + "version": "0.4.0", "preview": true, "description": "Actions glob lib", "keywords": [ @@ -37,7 +37,7 @@ "url": "https://github.com/actions/toolkit/issues" }, "dependencies": { - "@actions/core": "^1.2.6", + "@actions/core": "^1.9.1", "minimatch": "^3.0.4" } } diff --git a/node_modules/uuid/CHANGELOG.md b/node_modules/uuid/CHANGELOG.md index f0ba9e1ba2..53a67af388 100644 --- a/node_modules/uuid/CHANGELOG.md +++ b/node_modules/uuid/CHANGELOG.md @@ -1,6 +1,34 @@ -# Changelog +## [11.0.0](https://github.com/uuidjs/uuid/compare/v11.0.0...v11.0.0) (2024-10-27) -All notable changes to this project will be documented in this file. See [standard-version](https://github.com/conventional-changelog/standard-version) for commit guidelines. +## [11.0.1](https://github.com/uuidjs/uuid/compare/v11.0.0...v11.0.1) (2024-10-27) + + +### Bug Fixes + +* restore package.json#browser field ([#817](https://github.com/uuidjs/uuid/issues/817)) ([ae8f386](https://github.com/uuidjs/uuid/commit/ae8f38657bca0ee053bf29c88c006b1ea05af1b5)) + +## [11.0.0-0](https://github.com/uuidjs/uuid/compare/v9.0.0...v11.0.0-0) (2024-09-05) + +### ⚠ BREAKING CHANGES + +- refactor v1 internal state and options logic (#780) +- refactor v7 internal state and options logic, fixes #764 (#779) +- Port to TypeScript, closes #762 (#763) +- update node support matrix (only support node 16-20) (#750) + +### Features + +- Port to TypeScript, closes [#762](https://github.com/uuidjs/uuid/issues/762) ([#763](https://github.com/uuidjs/uuid/issues/763)) ([1e0f987](https://github.com/uuidjs/uuid/commit/1e0f9870db864ca93f7a69db0d468b5e1b7605e7)) +- update node support matrix (only support node 16-20) ([#750](https://github.com/uuidjs/uuid/issues/750)) ([883b163](https://github.com/uuidjs/uuid/commit/883b163b9ab9d6655bfbd8a35e61a3c71674dfe1)) + +### Bug Fixes + +- missing v7 expectations in browser spec ([#751](https://github.com/uuidjs/uuid/issues/751)) ([f54a866](https://github.com/uuidjs/uuid/commit/f54a866cedb2b3b96581157c1f4ac935a0b11411)) +- refactor v1 internal state and options logic ([#780](https://github.com/uuidjs/uuid/issues/780)) ([031b3d3](https://github.com/uuidjs/uuid/commit/031b3d3d738bc6694501ac0a37152b95ed500989)) +- refactor v7 internal state and options logic, fixes [#764](https://github.com/uuidjs/uuid/issues/764) ([#779](https://github.com/uuidjs/uuid/issues/779)) ([9dbd1cd](https://github.com/uuidjs/uuid/commit/9dbd1cd4177c43fcaac961a3b16fb2d044c9940a)) +- remove v4 options default assignment preventing native.randomUUID from being used ([#786](https://github.com/uuidjs/uuid/issues/786)) ([afe6232](https://github.com/uuidjs/uuid/commit/afe62323c4408a824755a39d7b971a8ae06f7199)), closes [#763](https://github.com/uuidjs/uuid/issues/763) +- seq_hi shift for byte 6 ([#775](https://github.com/uuidjs/uuid/issues/775)) ([1d532ca](https://github.com/uuidjs/uuid/commit/1d532ca374f181932a24a83fa98f71a5bd4f3e96)) +- tsconfig module type ([#778](https://github.com/uuidjs/uuid/issues/778)) ([7eff835](https://github.com/uuidjs/uuid/commit/7eff835cba334ad418f57768c00d15b918a9b419)) ## [10.0.0](https://github.com/uuidjs/uuid/compare/v9.0.0...v10.0.0) (2024-06-07) diff --git a/node_modules/uuid/README.md b/node_modules/uuid/README.md index b9079b6993..82349bfac5 100644 --- a/node_modules/uuid/README.md +++ b/node_modules/uuid/README.md @@ -7,43 +7,42 @@ For the creation of [RFC9562](https://www.rfc-editor.org/rfc/rfc9562.html) (formally [RFC4122](https://www.rfc-editor.org/rfc/rfc4122.html)) UUIDs -- **Complete** - Support for all RFC9562 (nee RFC4122) UUID versions +- **Complete** - Support for all RFC9562 UUID versions - **Cross-platform** - Support for ... - - CommonJS, [ECMAScript Modules](#ecmascript-modules) and [CDN builds](#cdn-builds) + - CommonJS, [ECMAScript Modules](#ecmascript-modules) - NodeJS 16+ ([LTS releases](https://github.com/nodejs/Release)) - Chrome, Safari, Firefox, Edge browsers - - Webpack and rollup.js module bundlers - [React Native / Expo](#react-native--expo) - **Secure** - Cryptographically-strong random values -- **Small** - Zero-dependency, small footprint, plays nice with "tree shaking" packagers +- **Compact** - No dependencies, [tree-shakable](https://developer.mozilla.org/en-US/docs/Glossary/Tree_shaking) - **CLI** - Includes the [`uuid` command line](#command-line) utility +- **Typescript** - Types now included > [!NOTE] -> Upgrading from `uuid@3`? Your code is probably okay, but check out [Upgrading From `uuid@3`](#upgrading-from-uuid3) for details. - - -> [!NOTE] -> Only interested in creating a version 4 UUID? You might be able to use [`crypto.randomUUID()`](https://developer.mozilla.org/en-US/docs/Web/API/Crypto/randomUUID), eliminating the need to install this library. +w> `uuid@11` is now available: See the [CHANGELOG](./CHANGELOG.md) for details. TL;DR: +> * TypeScript support is now included (remove `@types/uuid` from your dependencies) +> * Subtle changes to how the `options` arg is interpreted for `v1()`, `v6()`, and `v7()`. [See details](#options-handling-for-timestamp-uuids) +> * Binary UUIDs are now `Uint8Array`s. (May impact callers of `parse()`, `stringify()`, or that pass an `option#buf` argument to `v1()`-`v7()`.) ## Quickstart -To create a random UUID... - **1. Install** ```shell npm install uuid ``` -**2. Create a UUID** (ES6 module syntax) +**2. Create a UUID** + +ESM-syntax (must use named exports): ```javascript import { v4 as uuidv4 } from 'uuid'; uuidv4(); // ⇨ '9b1deb4d-3b7d-4bad-9bdd-2b0d7b3dcb6d' ``` -... or using CommonJS syntax: +... CommonJS: ```javascript const { v4: uuidv4 } = require('uuid'); @@ -118,15 +117,12 @@ Example: import { parse as uuidParse } from 'uuid'; // Parse a UUID -const bytes = uuidParse('6ec0bd7f-11c0-43da-975e-2a8ad9ebae0b'); - -// Convert to hex strings to show byte order (for documentation purposes) -[...bytes].map((v) => v.toString(16).padStart(2, '0')); // ⇨ - // [ - // '6e', 'c0', 'bd', '7f', - // '11', 'c0', '43', 'da', - // '97', '5e', '2a', '8a', - // 'd9', 'eb', 'ae', '0b' +uuidParse('6ec0bd7f-11c0-43da-975e-2a8ad9ebae0b'); // ⇨ + // Uint8Array(16) [ + // 110, 192, 189, 127, 17, + // 192, 67, 218, 151, 94, + // 42, 138, 217, 235, 174, + // 11 // ] ``` @@ -150,9 +146,24 @@ Example: ```javascript import { stringify as uuidStringify } from 'uuid'; -const uuidBytes = [ - 0x6e, 0xc0, 0xbd, 0x7f, 0x11, 0xc0, 0x43, 0xda, 0x97, 0x5e, 0x2a, 0x8a, 0xd9, 0xeb, 0xae, 0x0b, -]; +const uuidBytes = Uint8Array.of( + 0x6e, + 0xc0, + 0xbd, + 0x7f, + 0x11, + 0xc0, + 0x43, + 0xda, + 0x97, + 0x5e, + 0x2a, + 0x8a, + 0xd9, + 0xeb, + 0xae, + 0x0b +); uuidStringify(uuidBytes); // ⇨ '6ec0bd7f-11c0-43da-975e-2a8ad9ebae0b' ``` @@ -164,11 +175,11 @@ Create an RFC version 1 (timestamp) UUID | | | | --- | --- | | [`options`] | `Object` with one or more of the following properties: | -| [`options.node` ] | RFC "node" field as an `Array[6]` of byte values (per 4.1.6) | -| [`options.clockseq`] | RFC "clock sequence" as a `Number` between 0 - 0x3fff | -| [`options.msecs`] | RFC "timestamp" field (`Number` of milliseconds, unix epoch) | -| [`options.nsecs`] | RFC "timestamp" field (`Number` of nanoseconds to add to `msecs`, should be 0-10,000) | -| [`options.random`] | `Array` of 16 random bytes (0-255) | +| [`options.node = (random)` ] | RFC "node" field as an `Array[6]` of byte values (per 4.1.6) | +| [`options.clockseq = (random)`] | RFC "clock sequence" as a `Number` between 0 - 0x3fff | +| [`options.msecs = (current time)`] | RFC "timestamp" field (`Number` of milliseconds, unix epoch) | +| [`options.nsecs = 0`] | RFC "timestamp" field (`Number` of nanoseconds to add to `msecs`, should be 0-10,000) | +| [`options.random = (random)`] | `Array` of 16 random bytes (0-255) used to generate other fields, above | | [`options.rng`] | Alternative to `options.random`, a `Function` that returns an `Array` of 16 random bytes (0-255) | | [`buffer`] | `Array \| Buffer` If specified, uuid will be written here in byte-form, starting at `offset` | | [`offset` = 0] | `Number` Index to start writing UUID bytes in `buffer` | @@ -188,7 +199,7 @@ Example: ```javascript import { v1 as uuidv1 } from 'uuid'; -uuidv1(); // ⇨ '2c5ea4c0-4067-11e9-8bad-9b1deb4d3b7d' +uuidv1(); // ⇨ '2c5ea4c0-4067-11e9-9bdd-2b0d7b3dcb6d' ``` Example using `options`: @@ -197,7 +208,7 @@ Example using `options`: import { v1 as uuidv1 } from 'uuid'; const options = { - node: [0x01, 0x23, 0x45, 0x67, 0x89, 0xab], + node: Uint8Array.of(0x01, 0x23, 0x45, 0x67, 0x89, 0xab), clockseq: 0x1234, msecs: new Date('2011-11-01').getTime(), nsecs: 5678, @@ -243,7 +254,7 @@ Example: ```javascript import { v4 as uuidv4 } from 'uuid'; -uuidv4(); // ⇨ '1b9d6bcd-bbfd-4b2d-9b5d-ab8dfbbd4bed' +uuidv4(); // ⇨ '9b1deb4d-3b7d-4bad-9bdd-2b0d7b3dcb6d' ``` Example using predefined `random` values: @@ -252,9 +263,24 @@ Example using predefined `random` values: import { v4 as uuidv4 } from 'uuid'; const v4options = { - random: [ - 0x10, 0x91, 0x56, 0xbe, 0xc4, 0xfb, 0xc1, 0xea, 0x71, 0xb4, 0xef, 0xe1, 0x67, 0x1c, 0x58, 0x36, - ], + random: Uint8Array.of( + 0x10, + 0x91, + 0x56, + 0xbe, + 0xc4, + 0xfb, + 0xc1, + 0xea, + 0x71, + 0xb4, + 0xef, + 0xe1, + 0x67, + 0x1c, + 0x58, + 0x36 + ), }; uuidv4(v4options); // ⇨ '109156be-c4fb-41ea-b1b4-efe1671c5836' ``` @@ -304,7 +330,7 @@ This method takes the same arguments as uuid.v1(). ```javascript import { v6 as uuidv6 } from 'uuid'; -uuidv6(); // ⇨ '1e940672-c5ea-64c0-8bad-9b1deb4d3b7d' +uuidv6(); // ⇨ '1e940672-c5ea-64c0-9b5d-ab8dfbbd4bed' ``` Example using `options`: @@ -338,10 +364,10 @@ Create an RFC version 7 (random) UUID | | | | --- | --- | | [`options`] | `Object` with one or more of the following properties: | -| [`options.msecs`] | RFC "timestamp" field (`Number` of milliseconds, unix epoch) | -| [`options.random`] | `Array` of 16 random bytes (0-255) | +| [`options.msecs = (current time)`] | RFC "timestamp" field (`Number` of milliseconds, unix epoch) | +| [`options.random = (random)`] | `Array` of 16 random bytes (0-255) used to generate other fields, above | | [`options.rng`] | Alternative to `options.random`, a `Function` that returns an `Array` of 16 random bytes (0-255) | -| [`options.seq`] | 31 bit monotonic sequence counter as `Number` between 0 - 0x7fffffff | +| [`options.seq = (random)`] | 32-bit sequence `Number` between 0 - 0xffffffff. This may be provided to help insure uniqueness for UUIDs generated within the same millisecond time interval. Default = random value. | | [`buffer`] | `Array \| Buffer` If specified, uuid will be written here in byte-form, starting at `offset` | | [`offset` = 0] | `Number` Index to start writing UUID bytes in `buffer` | | _returns_ | UUID `String` if no `buffer` is specified, otherwise returns `buffer` | @@ -351,7 +377,7 @@ Example: ```javascript import { v7 as uuidv7 } from 'uuid'; -uuidv7(); // ⇨ '01695553-c90c-722d-9b5d-b38dfbbd4bed' +uuidv7(); // ⇨ '01695553-c90c-705a-b56d-778dfbbd4bed' ``` ### ~~uuid.v8()~~ @@ -447,53 +473,15 @@ Note: may be "URL" or "DNS" to use the corresponding UUIDs defined by RFC9562 ``` -## ECMAScript Modules - -This library comes with [ECMAScript Modules](https://www.ecma-international.org/ecma-262/6.0/#sec-modules) (ESM) support for Node.js versions that support it ([example](./examples/node-esmodules/)) as well as bundlers like [rollup.js](https://rollupjs.org/guide/en/#tree-shaking) ([example](./examples/browser-rollup/)) and [webpack](https://webpack.js.org/guides/tree-shaking/) ([example](./examples/browser-webpack/)) (targeting both, Node.js and browser environments). - -```javascript -import { v4 as uuidv4 } from 'uuid'; -uuidv4(); // ⇨ '1b9d6bcd-bbfd-4b2d-9b5d-ab8dfbbd4bed' -``` - -To run the examples you must first create a dist build of this library in the module root: - -```shell -npm run build -``` - -## CDN Builds - -### ECMAScript Modules - -To load this module directly into modern browsers that [support loading ECMAScript Modules](https://caniuse.com/#feat=es6-module) you can make use of [jspm](https://jspm.org/): - -```html - -``` - -### UMD +## `options` Handling for Timestamp UUIDs -As of `uuid@9` [UMD (Universal Module Definition)](https://github.com/umdjs/umd) builds are no longer shipped with this library. +Prior to `uuid@11`, it was possible for `options` state to interfere with the internal state used to insure uniqueness of timestamp-based UUIDs (the `v1()`, `v6()`, and `v7()` methods). Starting with `uuid@11`, this issue has been addressed by using the presence of the `options` argument as a flag to select between two possible behaviors: -If you need a UMD build of this library, use a bundler like Webpack or Rollup. Alternatively, refer to the documentation of [`uuid@8.3.2`](https://github.com/uuidjs/uuid/blob/v8.3.2/README.md#umd) which was the last version that shipped UMD builds. +- Without `options`: Internal state is utilized to improve UUID uniqueness. +- With `options`: Internal state is **NOT** used and, instead, appropriate defaults are applied as needed. ## Known issues -### Duplicate UUIDs (Googlebot) - -This module may generate duplicate UUIDs when run in clients with _deterministic_ random number generators, such as [Googlebot crawlers](https://developers.google.com/search/docs/advanced/crawling/overview-google-crawlers). This can cause problems for apps that expect client-generated UUIDs to always be unique. Developers should be prepared for this and have a strategy for dealing with possible collisions, such as: - -- Check for duplicate UUIDs, fail gracefully -- Disable write operations for Googlebot clients - -### "getRandomValues() not supported" - -This error occurs in environments where the standard [`crypto.getRandomValues()`](https://developer.mozilla.org/en-US/docs/Web/API/Crypto/getRandomValues) API is not supported. This issue can be resolved by adding an appropriate polyfill: - ### React Native / Expo 1. Install [`react-native-get-random-values`](https://github.com/LinusU/react-native-get-random-values#readme) @@ -504,81 +492,6 @@ import 'react-native-get-random-values'; import { v4 as uuidv4 } from 'uuid'; ``` - -> [!NOTE] -> If you are using Expo, you must be using at least `react-native-get-random-values@1.5.0` and `expo@39.0.0`. - -### Web Workers / Service Workers (Edge <= 18) - -[In Edge <= 18, Web Crypto is not supported in Web Workers or Service Workers](https://caniuse.com/#feat=cryptography) and we are not aware of a polyfill (let us know if you find one, please). - -### IE 11 (Internet Explorer) - -Support for IE11 and other legacy browsers has been dropped as of `uuid@9`. If you need to support legacy browsers, you can always transpile the uuid module source yourself (e.g. using [Babel](https://babeljs.io/)). - -## Upgrading From `uuid@7` - -### Only Named Exports Supported When Using with Node.js ESM - -`uuid@7` did not come with native ECMAScript Module (ESM) support for Node.js. Importing it in Node.js ESM consequently imported the CommonJS source with a default export. This library now comes with true Node.js ESM support and only provides named exports. - -Instead of doing: - -```javascript -import uuid from 'uuid'; -uuid.v4(); -``` - -you will now have to use the named exports: - -```javascript -import { v4 as uuidv4 } from 'uuid'; -uuidv4(); -``` - -### Deep Requires No Longer Supported - -Deep requires like `require('uuid/v4')` [which have been deprecated in `uuid@7`](#deep-requires-now-deprecated) are no longer supported. - -## Upgrading From `uuid@3` - -"_Wait... what happened to `uuid@4` thru `uuid@6`?!?_" - -In order to avoid confusion with RFC [version 4](#uuidv4options-buffer-offset) and [version 5](#uuidv5name-namespace-buffer-offset) UUIDs, and a possible [version 6](http://gh.peabody.io/uuidv6/), releases 4 thru 6 of this module have been skipped. - -### Deep Requires Now Deprecated - -`uuid@3` encouraged the use of deep requires to minimize the bundle size of browser builds: - -```javascript -const uuidv4 = require('uuid/v4'); // <== NOW DEPRECATED! -uuidv4(); -``` - -As of `uuid@7` this library now provides ECMAScript modules builds, which allow packagers like Webpack and Rollup to do "tree-shaking" to remove dead code. Instead, use the `import` syntax: - -```javascript -import { v4 as uuidv4 } from 'uuid'; -uuidv4(); -``` - -... or for CommonJS: - -```javascript -const { v4: uuidv4 } = require('uuid'); -uuidv4(); -``` - -### Default Export Removed - -`uuid@3` was exporting the Version 4 UUID method as a default export: - -```javascript -const uuid = require('uuid'); // <== REMOVED! -``` - -This usage pattern was already discouraged in `uuid@3` and has been removed in `uuid@7`. - --- Markdown generated from [README_js.md](README_js.md) by diff --git a/node_modules/uuid/dist/bin/uuid b/node_modules/uuid/dist/bin/uuid deleted file mode 100755 index f38d2ee19e..0000000000 --- a/node_modules/uuid/dist/bin/uuid +++ /dev/null @@ -1,2 +0,0 @@ -#!/usr/bin/env node -require('../uuid-bin'); diff --git a/node_modules/uuid/dist/cjs-browser/_types.d.ts b/node_modules/uuid/dist/cjs-browser/_types.d.ts new file mode 100644 index 0000000000..cdf09146a2 --- /dev/null +++ b/node_modules/uuid/dist/cjs-browser/_types.d.ts @@ -0,0 +1,21 @@ +export type UUIDTypes = string | Uint8Array; +export type Version1Options = { + node?: Uint8Array; + clockseq?: number; + random?: Uint8Array; + rng?: () => Uint8Array; + msecs?: number; + nsecs?: number; + _v6?: boolean; +}; +export type Version4Options = { + random?: Uint8Array; + rng?: () => Uint8Array; +}; +export type Version6Options = Version1Options; +export type Version7Options = { + random?: Uint8Array; + msecs?: number; + seq?: number; + rng?: () => Uint8Array; +}; diff --git a/node_modules/uuid/dist/cjs-browser/_types.js b/node_modules/uuid/dist/cjs-browser/_types.js new file mode 100644 index 0000000000..55d32e322d --- /dev/null +++ b/node_modules/uuid/dist/cjs-browser/_types.js @@ -0,0 +1,3 @@ +"use strict"; +Object.defineProperty(exports, "__esModule", { value: true }); +//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiX3R5cGVzLmpzIiwic291cmNlUm9vdCI6IiIsInNvdXJjZXMiOlsiLi4vLi4vc3JjL190eXBlcy50cyJdLCJuYW1lcyI6W10sIm1hcHBpbmdzIjoiIn0= \ No newline at end of file diff --git a/node_modules/uuid/dist/esm-node/index.js b/node_modules/uuid/dist/cjs-browser/index.d.ts similarity index 91% rename from node_modules/uuid/dist/esm-node/index.js rename to node_modules/uuid/dist/cjs-browser/index.d.ts index 45214b37be..3193e9a3b3 100644 --- a/node_modules/uuid/dist/esm-node/index.js +++ b/node_modules/uuid/dist/cjs-browser/index.d.ts @@ -11,4 +11,4 @@ export { default as v6 } from './v6.js'; export { default as v6ToV1 } from './v6ToV1.js'; export { default as v7 } from './v7.js'; export { default as validate } from './validate.js'; -export { default as version } from './version.js'; \ No newline at end of file +export { default as version } from './version.js'; diff --git a/node_modules/uuid/dist/cjs-browser/index.js b/node_modules/uuid/dist/cjs-browser/index.js new file mode 100644 index 0000000000..e0b54b4ba6 --- /dev/null +++ b/node_modules/uuid/dist/cjs-browser/index.js @@ -0,0 +1,32 @@ +"use strict"; +Object.defineProperty(exports, "__esModule", { value: true }); +exports.version = exports.validate = exports.v7 = exports.v6ToV1 = exports.v6 = exports.v5 = exports.v4 = exports.v3 = exports.v1ToV6 = exports.v1 = exports.stringify = exports.parse = exports.NIL = exports.MAX = void 0; +var max_js_1 = require("./max.js"); +Object.defineProperty(exports, "MAX", { enumerable: true, get: function () { return max_js_1.default; } }); +var nil_js_1 = require("./nil.js"); +Object.defineProperty(exports, "NIL", { enumerable: true, get: function () { return nil_js_1.default; } }); +var parse_js_1 = require("./parse.js"); +Object.defineProperty(exports, "parse", { enumerable: true, get: function () { return parse_js_1.default; } }); +var stringify_js_1 = require("./stringify.js"); +Object.defineProperty(exports, "stringify", { enumerable: true, get: function () { return stringify_js_1.default; } }); +var v1_js_1 = require("./v1.js"); +Object.defineProperty(exports, "v1", { enumerable: true, get: function () { return v1_js_1.default; } }); +var v1ToV6_js_1 = require("./v1ToV6.js"); +Object.defineProperty(exports, "v1ToV6", { enumerable: true, get: function () { return v1ToV6_js_1.default; } }); +var v3_js_1 = require("./v3.js"); +Object.defineProperty(exports, "v3", { enumerable: true, get: function () { return v3_js_1.default; } }); +var v4_js_1 = require("./v4.js"); +Object.defineProperty(exports, "v4", { enumerable: true, get: function () { return v4_js_1.default; } }); +var v5_js_1 = require("./v5.js"); +Object.defineProperty(exports, "v5", { enumerable: true, get: function () { return v5_js_1.default; } }); +var v6_js_1 = require("./v6.js"); +Object.defineProperty(exports, "v6", { enumerable: true, get: function () { return v6_js_1.default; } }); +var v6ToV1_js_1 = require("./v6ToV1.js"); +Object.defineProperty(exports, "v6ToV1", { enumerable: true, get: function () { return v6ToV1_js_1.default; } }); +var v7_js_1 = require("./v7.js"); +Object.defineProperty(exports, "v7", { enumerable: true, get: function () { return v7_js_1.default; } }); +var validate_js_1 = require("./validate.js"); +Object.defineProperty(exports, "validate", { enumerable: true, get: function () { return validate_js_1.default; } }); +var version_js_1 = require("./version.js"); +Object.defineProperty(exports, "version", { enumerable: true, get: function () { return version_js_1.default; } }); +//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiaW5kZXguanMiLCJzb3VyY2VSb290IjoiIiwic291cmNlcyI6WyIuLi8uLi9zcmMvaW5kZXgudHMiXSwibmFtZXMiOltdLCJtYXBwaW5ncyI6Ijs7O0FBQUEsbUNBQTBDO0FBQWpDLDZGQUFBLE9BQU8sT0FBTztBQUN2QixtQ0FBMEM7QUFBakMsNkZBQUEsT0FBTyxPQUFPO0FBQ3ZCLHVDQUE4QztBQUFyQyxpR0FBQSxPQUFPLE9BQVM7QUFDekIsK0NBQXNEO0FBQTdDLHlHQUFBLE9BQU8sT0FBYTtBQUM3QixpQ0FBd0M7QUFBL0IsMkZBQUEsT0FBTyxPQUFNO0FBQ3RCLHlDQUFnRDtBQUF2QyxtR0FBQSxPQUFPLE9BQVU7QUFDMUIsaUNBQXdDO0FBQS9CLDJGQUFBLE9BQU8sT0FBTTtBQUN0QixpQ0FBd0M7QUFBL0IsMkZBQUEsT0FBTyxPQUFNO0FBQ3RCLGlDQUF3QztBQUEvQiwyRkFBQSxPQUFPLE9BQU07QUFDdEIsaUNBQXdDO0FBQS9CLDJGQUFBLE9BQU8sT0FBTTtBQUN0Qix5Q0FBZ0Q7QUFBdkMsbUdBQUEsT0FBTyxPQUFVO0FBQzFCLGlDQUF3QztBQUEvQiwyRkFBQSxPQUFPLE9BQU07QUFDdEIsNkNBQW9EO0FBQTNDLHVHQUFBLE9BQU8sT0FBWTtBQUM1QiwyQ0FBa0Q7QUFBekMscUdBQUEsT0FBTyxPQUFXIn0= \ No newline at end of file diff --git a/node_modules/uuid/dist/cjs-browser/max.d.ts b/node_modules/uuid/dist/cjs-browser/max.d.ts new file mode 100644 index 0000000000..7a1e972af4 --- /dev/null +++ b/node_modules/uuid/dist/cjs-browser/max.d.ts @@ -0,0 +1,2 @@ +declare const _default: "ffffffff-ffff-ffff-ffff-ffffffffffff"; +export default _default; diff --git a/node_modules/uuid/dist/cjs-browser/max.js b/node_modules/uuid/dist/cjs-browser/max.js new file mode 100644 index 0000000000..e89decfba9 --- /dev/null +++ b/node_modules/uuid/dist/cjs-browser/max.js @@ -0,0 +1,4 @@ +"use strict"; +Object.defineProperty(exports, "__esModule", { value: true }); +exports.default = 'ffffffff-ffff-ffff-ffff-ffffffffffff'; +//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoibWF4LmpzIiwic291cmNlUm9vdCI6IiIsInNvdXJjZXMiOlsiLi4vLi4vc3JjL21heC50cyJdLCJuYW1lcyI6W10sIm1hcHBpbmdzIjoiOztBQUFBLGtCQUFlLHNDQUFzQyxDQUFDIn0= \ No newline at end of file diff --git a/node_modules/uuid/dist/cjs-browser/md5.d.ts b/node_modules/uuid/dist/cjs-browser/md5.d.ts new file mode 100644 index 0000000000..5a55f51ebd --- /dev/null +++ b/node_modules/uuid/dist/cjs-browser/md5.d.ts @@ -0,0 +1,2 @@ +declare function md5(bytes: Uint8Array): Uint8Array; +export default md5; diff --git a/node_modules/uuid/dist/cjs-browser/md5.js b/node_modules/uuid/dist/cjs-browser/md5.js new file mode 100644 index 0000000000..47d03ea9ae --- /dev/null +++ b/node_modules/uuid/dist/cjs-browser/md5.js @@ -0,0 +1,138 @@ +"use strict"; +Object.defineProperty(exports, "__esModule", { value: true }); +function md5(bytes) { + const words = uint8ToUint32(bytes); + const md5Bytes = wordsToMd5(words, bytes.length * 8); + return uint32ToUint8(md5Bytes); +} +function uint32ToUint8(input) { + const bytes = new Uint8Array(input.length * 4); + for (let i = 0; i < input.length * 4; i++) { + bytes[i] = (input[i >> 2] >>> ((i % 4) * 8)) & 0xff; + } + return bytes; +} +function getOutputLength(inputLength8) { + return (((inputLength8 + 64) >>> 9) << 4) + 14 + 1; +} +function wordsToMd5(x, len) { + const xpad = new Uint32Array(getOutputLength(len)).fill(0); + xpad.set(x); + xpad[len >> 5] |= 0x80 << len % 32; + xpad[xpad.length - 1] = len; + x = xpad; + let a = 1732584193; + let b = -271733879; + let c = -1732584194; + let d = 271733878; + for (let i = 0; i < x.length; i += 16) { + const olda = a; + const oldb = b; + const oldc = c; + const oldd = d; + a = md5ff(a, b, c, d, x[i], 7, -680876936); + d = md5ff(d, a, b, c, x[i + 1], 12, -389564586); + c = md5ff(c, d, a, b, x[i + 2], 17, 606105819); + b = md5ff(b, c, d, a, x[i + 3], 22, -1044525330); + a = md5ff(a, b, c, d, x[i + 4], 7, -176418897); + d = md5ff(d, a, b, c, x[i + 5], 12, 1200080426); + c = md5ff(c, d, a, b, x[i + 6], 17, -1473231341); + b = md5ff(b, c, d, a, x[i + 7], 22, -45705983); + a = md5ff(a, b, c, d, x[i + 8], 7, 1770035416); + d = md5ff(d, a, b, c, x[i + 9], 12, -1958414417); + c = md5ff(c, d, a, b, x[i + 10], 17, -42063); + b = md5ff(b, c, d, a, x[i + 11], 22, -1990404162); + a = md5ff(a, b, c, d, x[i + 12], 7, 1804603682); + d = md5ff(d, a, b, c, x[i + 13], 12, -40341101); + c = md5ff(c, d, a, b, x[i + 14], 17, -1502002290); + b = md5ff(b, c, d, a, x[i + 15], 22, 1236535329); + a = md5gg(a, b, c, d, x[i + 1], 5, -165796510); + d = md5gg(d, a, b, c, x[i + 6], 9, -1069501632); + c = md5gg(c, d, a, b, x[i + 11], 14, 643717713); + b = md5gg(b, c, d, a, x[i], 20, -373897302); + a = md5gg(a, b, c, d, x[i + 5], 5, -701558691); + d = md5gg(d, a, b, c, x[i + 10], 9, 38016083); + c = md5gg(c, d, a, b, x[i + 15], 14, -660478335); + b = md5gg(b, c, d, a, x[i + 4], 20, -405537848); + a = md5gg(a, b, c, d, x[i + 9], 5, 568446438); + d = md5gg(d, a, b, c, x[i + 14], 9, -1019803690); + c = md5gg(c, d, a, b, x[i + 3], 14, -187363961); + b = md5gg(b, c, d, a, x[i + 8], 20, 1163531501); + a = md5gg(a, b, c, d, x[i + 13], 5, -1444681467); + d = md5gg(d, a, b, c, x[i + 2], 9, -51403784); + c = md5gg(c, d, a, b, x[i + 7], 14, 1735328473); + b = md5gg(b, c, d, a, x[i + 12], 20, -1926607734); + a = md5hh(a, b, c, d, x[i + 5], 4, -378558); + d = md5hh(d, a, b, c, x[i + 8], 11, -2022574463); + c = md5hh(c, d, a, b, x[i + 11], 16, 1839030562); + b = md5hh(b, c, d, a, x[i + 14], 23, -35309556); + a = md5hh(a, b, c, d, x[i + 1], 4, -1530992060); + d = md5hh(d, a, b, c, x[i + 4], 11, 1272893353); + c = md5hh(c, d, a, b, x[i + 7], 16, -155497632); + b = md5hh(b, c, d, a, x[i + 10], 23, -1094730640); + a = md5hh(a, b, c, d, x[i + 13], 4, 681279174); + d = md5hh(d, a, b, c, x[i], 11, -358537222); + c = md5hh(c, d, a, b, x[i + 3], 16, -722521979); + b = md5hh(b, c, d, a, x[i + 6], 23, 76029189); + a = md5hh(a, b, c, d, x[i + 9], 4, -640364487); + d = md5hh(d, a, b, c, x[i + 12], 11, -421815835); + c = md5hh(c, d, a, b, x[i + 15], 16, 530742520); + b = md5hh(b, c, d, a, x[i + 2], 23, -995338651); + a = md5ii(a, b, c, d, x[i], 6, -198630844); + d = md5ii(d, a, b, c, x[i + 7], 10, 1126891415); + c = md5ii(c, d, a, b, x[i + 14], 15, -1416354905); + b = md5ii(b, c, d, a, x[i + 5], 21, -57434055); + a = md5ii(a, b, c, d, x[i + 12], 6, 1700485571); + d = md5ii(d, a, b, c, x[i + 3], 10, -1894986606); + c = md5ii(c, d, a, b, x[i + 10], 15, -1051523); + b = md5ii(b, c, d, a, x[i + 1], 21, -2054922799); + a = md5ii(a, b, c, d, x[i + 8], 6, 1873313359); + d = md5ii(d, a, b, c, x[i + 15], 10, -30611744); + c = md5ii(c, d, a, b, x[i + 6], 15, -1560198380); + b = md5ii(b, c, d, a, x[i + 13], 21, 1309151649); + a = md5ii(a, b, c, d, x[i + 4], 6, -145523070); + d = md5ii(d, a, b, c, x[i + 11], 10, -1120210379); + c = md5ii(c, d, a, b, x[i + 2], 15, 718787259); + b = md5ii(b, c, d, a, x[i + 9], 21, -343485551); + a = safeAdd(a, olda); + b = safeAdd(b, oldb); + c = safeAdd(c, oldc); + d = safeAdd(d, oldd); + } + return Uint32Array.of(a, b, c, d); +} +function uint8ToUint32(input) { + if (input.length === 0) { + return new Uint32Array(); + } + const output = new Uint32Array(getOutputLength(input.length * 8)).fill(0); + for (let i = 0; i < input.length; i++) { + output[i >> 2] |= (input[i] & 0xff) << ((i % 4) * 8); + } + return output; +} +function safeAdd(x, y) { + const lsw = (x & 0xffff) + (y & 0xffff); + const msw = (x >> 16) + (y >> 16) + (lsw >> 16); + return (msw << 16) | (lsw & 0xffff); +} +function bitRotateLeft(num, cnt) { + return (num << cnt) | (num >>> (32 - cnt)); +} +function md5cmn(q, a, b, x, s, t) { + return safeAdd(bitRotateLeft(safeAdd(safeAdd(a, q), safeAdd(x, t)), s), b); +} +function md5ff(a, b, c, d, x, s, t) { + return md5cmn((b & c) | (~b & d), a, b, x, s, t); +} +function md5gg(a, b, c, d, x, s, t) { + return md5cmn((b & d) | (c & ~d), a, b, x, s, t); +} +function md5hh(a, b, c, d, x, s, t) { + return md5cmn(b ^ c ^ d, a, b, x, s, t); +} +function md5ii(a, b, c, d, x, s, t) { + return md5cmn(c ^ (b | ~d), a, b, x, s, t); +} +exports.default = md5; +//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoibWQ1LWJyb3dzZXIuanMiLCJzb3VyY2VSb290IjoiIiwic291cmNlcyI6WyIuLi8uLi9zcmMvbWQ1LWJyb3dzZXIudHMiXSwibmFtZXMiOltdLCJtYXBwaW5ncyI6Ijs7QUFvQkEsU0FBUyxHQUFHLENBQUMsS0FBaUI7SUFDNUIsTUFBTSxLQUFLLEdBQUcsYUFBYSxDQUFDLEtBQUssQ0FBQyxDQUFDO0lBRW5DLE1BQU0sUUFBUSxHQUFHLFVBQVUsQ0FBQyxLQUFLLEVBQUUsS0FBSyxDQUFDLE1BQU0sR0FBRyxDQUFDLENBQUMsQ0FBQztJQUNyRCxPQUFPLGFBQWEsQ0FBQyxRQUFRLENBQUMsQ0FBQztBQUNqQyxDQUFDO0FBS0QsU0FBUyxhQUFhLENBQUMsS0FBa0I7SUFNdkMsTUFBTSxLQUFLLEdBQUcsSUFBSSxVQUFVLENBQUMsS0FBSyxDQUFDLE1BQU0sR0FBRyxDQUFDLENBQUMsQ0FBQztJQUMvQyxLQUFLLElBQUksQ0FBQyxHQUFHLENBQUMsRUFBRSxDQUFDLEdBQUcsS0FBSyxDQUFDLE1BQU0sR0FBRyxDQUFDLEVBQUUsQ0FBQyxFQUFFLEVBQUUsQ0FBQztRQUMxQyxLQUFLLENBQUMsQ0FBQyxDQUFDLEdBQUcsQ0FBQyxLQUFLLENBQUMsQ0FBQyxJQUFJLENBQUMsQ0FBQyxLQUFLLENBQ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xDQUFDLENBQUMsQ0FBQztBQUNuRCxDQUFDO0FBRUQsU0FBUyxLQUFLLENBQUMsQ0FBUyxFQUFFLENBQVMsRUFBRSxDQUFTLEVBQUUsQ0FBUyxFQUFFLENBQVMsRUFBRSxDQUFTLEVBQUUsQ0FBUztJQUN4RixPQUFPLE1BQU0sQ0FBQyxDQUFDLENBQUMsR0FBRyxDQUFDLENBQUMsR0FBRyxDQUFDLENBQUMsR0FBRyxDQUFDLENBQUMsQ0FBQyxFQUFFLENBQUMsRUFBRSxDQUFDLEVBQUUsQ0FBQyxFQUFFLENBQUMsRUFBRSxDQUFDLENBQUMsQ0FBQztBQUNuRCxDQUFDO0FBRUQsU0FBUyxLQUFLLENBQUMsQ0FBUyxFQUFFLENBQVMsRUFBRSxDQUFTLEVBQUUsQ0FBUyxFQUFFLENBQVMsRUFBRSxDQUFTLEVBQUUsQ0FBUztJQUN4RixPQUFPLE1BQU0sQ0FBQyxDQUFDLEdBQUcsQ0FBQyxHQUFHLENBQUMsRUFBRSxDQUFDLEVBQUUsQ0FBQyxFQUFFLENBQUMsRUFBRSxDQUFDLEVBQUUsQ0FBQyxDQUFDLENBQUM7QUFDMUMsQ0FBQztBQUVELFNBQVMsS0FBSyxDQUFDLENBQVMsRUFBRSxDQUFTLEVBQUUsQ0FBUyxFQUFFLENBQVMsRUFBRSxDQUFTLEVBQUUsQ0FBUyxFQUFFLENBQVM7SUFDeEYsT0FBTyxNQUFNLENBQUMsQ0FBQyxHQUFHLENBQUMsQ0FBQyxHQUFHLENBQUMsQ0FBQyxDQUFDLEVBQUUsQ0FBQyxFQUFFLENBQUMsRUFBRSxDQUFDLEVBQUUsQ0FBQyxFQUFFLENBQUMsQ0FBQyxDQUFDO0FBQzdDLENBQUM7QUFFRCxrQkFBZSxHQUFHLENBQUMifQ== \ No newline at end of file diff --git a/node_modules/uuid/dist/cjs-browser/native.d.ts b/node_modules/uuid/dist/cjs-browser/native.d.ts new file mode 100644 index 0000000000..9418fd3a4b --- /dev/null +++ b/node_modules/uuid/dist/cjs-browser/native.d.ts @@ -0,0 +1,4 @@ +declare const _default: { + randomUUID: false | (() => `${string}-${string}-${string}-${string}-${string}`); +}; +export default _default; diff --git a/node_modules/uuid/dist/cjs-browser/native.js b/node_modules/uuid/dist/cjs-browser/native.js new file mode 100644 index 0000000000..3baa02a911 --- /dev/null +++ b/node_modules/uuid/dist/cjs-browser/native.js @@ -0,0 +1,5 @@ +"use strict"; +Object.defineProperty(exports, "__esModule", { value: true }); +const randomUUID = typeof crypto !== 'undefined' && crypto.randomUUID && crypto.randomUUID.bind(crypto); +exports.default = { randomUUID }; +//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoibmF0aXZlLWJyb3dzZXIuanMiLCJzb3VyY2VSb290IjoiIiwic291cmNlcyI6WyIuLi8uLi9zcmMvbmF0aXZlLWJyb3dzZXIudHMiXSwibmFtZXMiOltdLCJtYXBwaW5ncyI6Ijs7QUFBQSxNQUFNLFVBQVUsR0FDZCxPQUFPLE1BQU0sS0FBSyxXQUFXLElBQUksTUFBTSxDQUFDLFVBQVUsSUFBSSxNQUFNLENBQUMsVUFBVSxDQUFDLElBQUksQ0FBQyxNQUFNLENBQUMsQ0FBQztBQUV2RixrQkFBZSxFQUFFLFVBQVUsRUFBRSxDQUFDIn0= \ No newline at end of file diff --git a/node_modules/uuid/dist/cjs-browser/nil.d.ts b/node_modules/uuid/dist/cjs-browser/nil.d.ts new file mode 100644 index 0000000000..b03bb98efd --- /dev/null +++ b/node_modules/uuid/dist/cjs-browser/nil.d.ts @@ -0,0 +1,2 @@ +declare const _default: "00000000-0000-0000-0000-000000000000"; +export default _default; diff --git a/node_modules/uuid/dist/cjs-browser/nil.js b/node_modules/uuid/dist/cjs-browser/nil.js new file mode 100644 index 0000000000..1e0b53dcb1 --- /dev/null +++ b/node_modules/uuid/dist/cjs-browser/nil.js @@ -0,0 +1,4 @@ +"use strict"; +Object.defineProperty(exports, "__esModule", { value: true }); +exports.default = '00000000-0000-0000-0000-000000000000'; +//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoibmlsLmpzIiwic291cmNlUm9vdCI6IiIsInNvdXJjZXMiOlsiLi4vLi4vc3JjL25pbC50cyJdLCJuYW1lcyI6W10sIm1hcHBpbmdzIjoiOztBQUFBLGtCQUFlLHNDQUFzQyxDQUFDIn0= \ No newline at end of file diff --git a/node_modules/uuid/dist/cjs-browser/package.json b/node_modules/uuid/dist/cjs-browser/package.json new file mode 100644 index 0000000000..5bbefffbab --- /dev/null +++ b/node_modules/uuid/dist/cjs-browser/package.json @@ -0,0 +1,3 @@ +{ + "type": "commonjs" +} diff --git a/node_modules/uuid/dist/cjs-browser/parse.d.ts b/node_modules/uuid/dist/cjs-browser/parse.d.ts new file mode 100644 index 0000000000..a316fb1178 --- /dev/null +++ b/node_modules/uuid/dist/cjs-browser/parse.d.ts @@ -0,0 +1,2 @@ +declare function parse(uuid: string): Uint8Array; +export default parse; diff --git a/node_modules/uuid/dist/cjs-browser/parse.js b/node_modules/uuid/dist/cjs-browser/parse.js new file mode 100644 index 0000000000..71ee399aed --- /dev/null +++ b/node_modules/uuid/dist/cjs-browser/parse.js @@ -0,0 +1,12 @@ +"use strict"; +Object.defineProperty(exports, "__esModule", { value: true }); +const validate_js_1 = require("./validate.js"); +function parse(uuid) { + if (!(0, validate_js_1.default)(uuid)) { + throw TypeError('Invalid UUID'); + } + let v; + return Uint8Array.of((v = parseInt(uuid.slice(0, 8), 16)) >>> 24, (v >>> 16) & 0xff, (v >>> 8) & 0xff, v & 0xff, (v = parseInt(uuid.slice(9, 13), 16)) >>> 8, v & 0xff, (v = parseInt(uuid.slice(14, 18), 16)) >>> 8, v & 0xff, (v = parseInt(uuid.slice(19, 23), 16)) >>> 8, v & 0xff, ((v = parseInt(uuid.slice(24, 36), 16)) / 0x10000000000) & 0xff, (v / 0x100000000) & 0xff, (v >>> 24) & 0xff, (v >>> 16) & 0xff, (v >>>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BUSxDQUFDLElBQUksQ0FBQyxLQUFLLENBQUMsRUFBRSxFQUFFLEVBQUUsQ0FBQyxFQUFFLEVBQUUsQ0FBQyxDQUFDLEtBQUssQ0FBQyxFQUM1QyxDQUFDLEdBQUcsSUFBSSxFQUlSLENBQUMsQ0FBQyxDQUFDLEdBQUcsUUFBUSxDQUFDLElBQUksQ0FBQyxLQUFLLENBQUMsRUFBRSxFQUFFLEVBQUUsQ0FBQyxFQUFFLEVBQUUsQ0FBQyxDQUFDLEdBQUcsYUFBYSxDQUFDLEdBQUcsSUFBSSxFQUMvRCxDQUFDLENBQUMsR0FBRyxXQUFXLENBQUMsR0FBRyxJQUFJLEVBQ3hCLENBQUMsQ0FBQyxLQUFLLEVBQUUsQ0FBQyxHQUFHLElBQUksRUFDakIsQ0FBQyxDQUFDLEtBQUssRUFBRSxDQUFDLEdBQUcsSUFBSSxFQUNqQixDQUFDLENBQUMsS0FBSyxDQUFDLENBQUMsR0FBRyxJQUFJLEVBQ2hCLENBQUMsR0FBRyxJQUFJLENBQ1QsQ0FBQztBQUNKLENBQUM7QUFFRCxrQkFBZSxLQUFLLENBQUMifQ== \ No newline at end of file diff --git a/node_modules/uuid/dist/cjs-browser/regex.d.ts b/node_modules/uuid/dist/cjs-browser/regex.d.ts new file mode 100644 index 0000000000..d39fa3f6a8 --- /dev/null +++ b/node_modules/uuid/dist/cjs-browser/regex.d.ts @@ -0,0 +1,2 @@ +declare const _default: RegExp; +export default _default; diff --git a/node_modules/uuid/dist/cjs-browser/regex.js b/node_modules/uuid/dist/cjs-browser/regex.js new file mode 100644 index 0000000000..6d2abe9e0c --- /dev/null +++ b/node_modules/uuid/dist/cjs-browser/regex.js @@ -0,0 +1,4 @@ +"use strict"; +Object.defineProperty(exports, "__esModule", { value: true }); +exports.default = /^(?:[0-9a-f]{8}-[0-9a-f]{4}-[1-8][0-9a-f]{3}-[89ab][0-9a-f]{3}-[0-9a-f]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$/i; +//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoicmVnZXguanMiLCJzb3VyY2VSb290IjoiIiwic291cmNlcyI6WyIuLi8uLi9zcmMvcmVnZXgudHMiXSwibmFtZXMiOltdLCJtYXBwaW5ncyI6Ijs7QUFBQSxrQkFBZSwwSkFBMEosQ0FBQyJ9 \ No newline at end of file diff --git a/node_modules/uuid/dist/cjs-browser/rng.d.ts b/node_modules/uuid/dist/cjs-browser/rng.d.ts new file mode 100644 index 0000000000..73e60cf348 --- /dev/null +++ b/node_modules/uuid/dist/cjs-browser/rng.d.ts @@ -0,0 +1 @@ +export default function rng(): Uint8Array; diff --git a/node_modules/uuid/dist/cjs-browser/rng.js b/node_modules/uuid/dist/cjs-browser/rng.js new file mode 100644 index 0000000000..ac59550de7 --- /dev/null +++ b/node_modules/uuid/dist/cjs-browser/rng.js @@ -0,0 +1,15 @@ +"use strict"; +Object.defineProperty(exports, "__esModule", { value: true }); +exports.default = rng; +let getRandomValues; +const rnds8 = new Uint8Array(16); +function rng() { + if (!getRandomValues) { + if (typeof crypto === 'undefined' || !crypto.getRandomValues) { + throw new Error('crypto.getRandomValues() not supported. See https://github.com/uuidjs/uuid#getrandomvalues-not-supported'); + } + getRandomValues = crypto.getRandomValues.bind(crypto); + } + return getRandomValues(rnds8); +} +//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoicm5nLWJyb3dzZXIuanMiLCJzb3VyY2VSb290IjoiIiwic291cmNlcyI6WyIuLi8uLi9zcmMvcm5nLWJyb3dzZXIudHMiXSwibmFtZXMiOltdLCJtYXBwaW5ncyI6Ijs7QUFRQSxzQkFhQztBQWpCRCxJQUFJLGVBQTBELENBQUM7QUFFL0QsTUFBTSxLQUFLLEdBQUcsSUFBSSxVQUFVLENBQUMsRUFBRSxDQUFDLENBQUM7QUFFakMsU0FBd0IsR0FBRztJQUV6QixJQUFJLENBQUMsZUFBZSxFQUFFLENBQUM7UUFDckIsSUFBSSxPQUFPLE1BQU0sS0FBSyxXQUFXLElBQUksQ0FBQyxNQUFNLENBQUMsZUFBZSxFQUFFLENBQUM7WUFDN0QsTUFBTSxJQUFJLEtBQUssQ0FDYiwwR0FBMEcsQ0FDM0csQ0FBQztRQUNKLENBQUM7UUFFRCxlQUFlLEdBQUcsTUFBTSxDQUFDLGVBQWUsQ0FBQyxJQUFJLENBQUMsTUFBTSxDQUFDLENBQUM7SUFDeEQsQ0FBQztJQUVELE9BQU8sZUFBZSxDQUFDLEtBQUssQ0FBQyxDQUFDO0FBQ2hDLENBQUMifQ== \ No newline at end of file diff --git a/node_modules/uuid/dist/cjs-browser/sha1.d.ts b/node_modules/uuid/dist/cjs-browser/sha1.d.ts new file mode 100644 index 0000000000..a6552e5d11 --- /dev/null +++ b/node_modules/uuid/dist/cjs-browser/sha1.d.ts @@ -0,0 +1,2 @@ +declare function sha1(bytes: Uint8Array): Uint8Array; +export default sha1; diff --git a/node_modules/uuid/dist/cjs-browser/sha1.js b/node_modules/uuid/dist/cjs-browser/sha1.js new file mode 100644 index 0000000000..0931199527 --- /dev/null +++ b/node_modules/uuid/dist/cjs-browser/sha1.js @@ -0,0 +1,73 @@ +"use strict"; +Object.defineProperty(exports, "__esModule", { value: true }); +function f(s, x, y, z) { + switch (s) { + case 0: + return (x & y) ^ (~x & z); + case 1: + return x ^ y ^ z; + case 2: + return (x & y) ^ (x & z) ^ (y & z); + case 3: + return x ^ y ^ z; + } +} +function ROTL(x, n) { + return (x << n) | (x >>> (32 - n)); +} +function sha1(bytes) { + const K = [0x5a827999, 0x6ed9eba1, 0x8f1bbcdc, 0xca62c1d6]; + const H = [0x67452301, 0xefcdab89, 0x98badcfe, 0x10325476, 0xc3d2e1f0]; + const newBytes = new Uint8Array(bytes.length + 1); + newBytes.set(bytes); + newBytes[bytes.length] = 0x80; + bytes = newBytes; + const l = bytes.length / 4 + 2; + const N = Math.ceil(l / 16); + const M = new Array(N); + for (let i = 0; i < N; ++i) { + const arr = new Uint32Array(16); + for (let j = 0; j < 16; ++j) { + arr[j] = + (bytes[i * 64 + j * 4] << 24) | + (bytes[i * 64 + j * 4 + 1] << 16) | + (bytes[i * 64 + j * 4 + 2] << 8) | + bytes[i * 64 + j * 4 + 3]; + } + M[i] = arr; + } + M[N - 1][14] = ((bytes.length - 1) * 8) / Math.pow(2, 32); + M[N - 1][14] = Math.floor(M[N - 1][14]); + M[N - 1][15] = ((bytes.length - 1) * 8) & 0xffffffff; + for (let i = 0; i < N; ++i) { + const W = new Uint32Array(80); + for (let t = 0; t < 16; ++t) { + W[t] = M[i][t]; + } + for (let t = 16; t < 80; ++t) { + W[t] = ROTL(W[t - 3] ^ W[t - 8] ^ W[t - 14] ^ W[t - 16], 1); + } + let a = H[0]; + let b = H[1]; + let c = H[2]; + let d = H[3]; + let e = H[4]; + for (let t = 0; t < 80; ++t) { + const s = Math.floor(t / 20); + const T = (ROTL(a, 5) + f(s, b, c, d) + e + K[s] + W[t]) >>> 0; + e = d; + d = c; + c = ROTL(b, 30) >>> 0; + b = a; + a = T; + } + H[0] = (H[0] + a) >>> 0; + H[1] = (H[1] + b) >>> 0; + H[2] = (H[2] + c) >>> 0; + H[3] = (H[3] + d) >>> 0; + H[4] = (H[4] + e) >>> 0; + } + return Uint8Array.of(H[0] >> 24, H[0] >> 16, H[0] >> 8, H[0], H[1] >> 24, H[1] >> 16, H[1] >> 8, H[1], H[2] >> 24, H[2] >> 16, H[2] >> 8, H[2], H[3] >> 24, H[3] >> 16, H[3] >> 8, H[3], H[4] >> 24, H[4] >> 16, H[4] >> 8, H[4]); +} +exports.default = sha1; +//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoic2hhMS1icm93c2VyLmpzIiwic291cmNlUm9vdCI6IiIsInNvdXJjZXMiOlsiLi4vLi4vc3JjL3NoYTEtYnJvd3Nlci50cyJdLCJuYW1lcyI6W10sIm1hcHBpbmdzIjoiOztBQU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BQUUsQ0FDbEIsQ0FBQyxDQUFDLENBQUMsQ0FBQyxJQUFJLEVBQUUsRUFDVixDQUFDLENBQUMsQ0FBQyxDQUFDLElBQUksRUFBRSxFQUNWLENBQUMsQ0FBQyxDQUFDLENBQUMsSUFBSSxDQUFDLEVBQ1QsQ0FBQyxDQUFDLENBQUMsQ0FBQyxFQUNKLENBQUMsQ0FBQyxDQUFDLENBQUMsSUFBSSxFQUFFLEVBQ1YsQ0FBQyxDQUFDLENBQUMsQ0FBQyxJQUFJLEVBQUUsRUFDVixDQUFDLENBQUMsQ0FBQyxDQUFDLElBQUksQ0FBQyxFQUNULENBQUMsQ0FBQyxDQUFDLENBQUMsRUFDSixDQUFDLENBQUMsQ0FBQyxDQUFDLElBQUksRUFBRSxFQUNWLENBQUMsQ0FBQyxDQUFDLENBQUMsSUFBSSxFQUFFLEVBQ1YsQ0FBQyxDQUFDLENBQUMsQ0FBQyxJQUFJLENBQUMsRUFDVCxDQUFDLENBQUMsQ0FBQyxDQUFDLEVBQ0osQ0FBQyxDQUFDLENBQUMsQ0FBQyxJQUFJLEVBQUUsRUFDVixDQUFDLENBQUMsQ0FBQyxDQUFDLElBQUksRUFBRSxFQUNWLENBQUMsQ0FBQyxDQUFDLENBQUMsSUFBSSxDQUFDLEVBQ1QsQ0FBQyxDQUFDLENBQUMsQ0FBQyxFQUNKLENBQUMsQ0FBQyxDQUFDLENBQUMsSUFBSSxFQUFFLEVBQ1YsQ0FBQyxDQUFDLENBQUMsQ0FBQyxJQUFJLEVBQUUsRUFDVixDQUFDLENBQUMsQ0FBQyxDQUFDLElBQUksQ0FBQyxFQUNULENBQUMsQ0FBQyxDQUFDLENBQUMsQ0FDTCxDQUFDO0FBQ0osQ0FBQztBQUVELGtCQUFlLElBQUksQ0FBQyJ9 \ No newline at end of file diff --git a/node_modules/uuid/dist/cjs-browser/stringify.d.ts b/node_modules/uuid/dist/cjs-browser/stringify.d.ts new file mode 100644 index 0000000000..16cb008833 --- /dev/null +++ b/node_modules/uuid/dist/cjs-browser/stringify.d.ts @@ -0,0 +1,3 @@ +export declare function unsafeStringify(arr: Uint8Array, offset?: number): string; +declare function stringify(arr: Uint8Array, offset?: number): string; +export default stringify; diff --git a/node_modules/uuid/dist/cjs-browser/stringify.js b/node_modules/uuid/dist/cjs-browser/stringify.js new file mode 100644 index 0000000000..6e5bfeadae --- /dev/null +++ b/node_modules/uuid/dist/cjs-browser/stringify.js @@ -0,0 +1,39 @@ +"use strict"; +Object.defineProperty(exports, "__esModule", { value: true }); +exports.unsafeStringify = unsafeStringify; +const validate_js_1 = require("./validate.js"); +const byteToHex = []; +for (let i = 0; i < 256; ++i) { + byteToHex.push((i + 0x100).toString(16).slice(1)); +} +function unsafeStringify(arr, offset = 0) { + return (byteToHex[arr[offset + 0]] + + byteToHex[arr[offset + 1]] + + byteToHex[arr[offset + 2]] + + byteToHex[arr[offset + 3]] + + '-' + + byteToHex[arr[offset + 4]] + + byteToHex[arr[offset + 5]] + + '-' + + byteToHex[arr[offset + 6]] + + byteToHex[arr[offset + 7]] + + '-' + + byteToHex[arr[offset + 8]] + + byteToHex[arr[offset + 9]] + + '-' + + byteToHex[arr[offset + 10]] + + byteToHex[arr[offset + 11]] + + byteToHex[arr[offset + 12]] + + byteToHex[arr[offset + 13]] + + byteToHex[arr[offset + 14]] + + byteToHex[arr[offset + 15]]).toLowerCase(); +} +function stringify(arr, offset = 0) { + const uuid = unsafeStringify(arr, offset); + if (!(0, validate_js_1.default)(uuid)) { + throw TypeError('Stringified UUID is invalid'); + } + return uuid; +} +exports.default = stringify; +//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoic3RyaW5naWZ5LmpzIiwic291cmNlUm9vdCI6IiIsInNvdXJjZXMiOlsiLi4vLi4vc3JjL3N0cmluZ2lmeS50cyJdLCJuYW1lcyI6W10sIm1hcHBpbmdzIjoiOztBQVlBLDBDQTRCQztBQXhDRCwrQ0FBcUM7QUFNckMsTUFBTSxTQUFT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UFDLEdBQUcsQ0FBQyxNQUFNLEdBQUcsQ0FBQyxDQUFDLENBQUM7UUFDMUIsR0FBRztRQUNILFNBQVMsQ0FBQyxHQUFHLENBQUMsTUFBTSxHQUFHLEVBQUUsQ0FBQyxDQUFDO1FBQzNCLFNBQVMsQ0FBQyxHQUFHLENBQUMsTUFBTSxHQUFHLEVBQUUsQ0FBQyxDQUFDO1FBQzNCLFNBQVMsQ0FBQyxHQUFHLENBQUMsTUFBTSxHQUFHLEVBQUUsQ0FBQyxDQUFDO1FBQzNCLFNBQVMsQ0FBQyxHQUFHLENBQUMsTUFBTSxHQUFHLEVBQUUsQ0FBQyxDQUFDO1FBQzNCLFNBQVMsQ0FBQyxHQUFHLENBQUMsTUFBTSxHQUFHLEVBQUUsQ0FBQyxDQUFDO1FBQzNCLFNBQVMsQ0FBQyxHQUFHLENBQUMsTUFBTSxHQUFHLEVBQUUsQ0FBQyxDQUFDLENBQzVCLENBQUMsV0FBVyxFQUFFLENBQUM7QUFDbEIsQ0FBQztBQUVELFNBQVMsU0FBUyxDQUFDLEdBQWUsRUFBRSxNQUFNLEdBQUcsQ0FBQztJQUM1QyxNQUFNLElBQUksR0FBRyxlQUFlLENBQUMsR0FBRyxFQUFFLE1BQU0sQ0FBQyxDQUFDO0lBTzFDLElBQUksQ0FBQyxJQUFBLHFCQUFRLEVBQUMsSUFBSSxDQUFDLEVBQUUsQ0FBQztRQUNwQixNQUFNLFNBQVMsQ0FBQyw2QkFBNkIsQ0FBQyxDQUFDO0lBQ2pELENBQUM7SUFFRCxPQUFPLElBQUksQ0FBQztBQUNkLENBQUM7QUFFRCxrQkFBZSxTQUFTLENBQUMifQ== \ No newline at end of file diff --git a/node_modules/uuid/dist/cjs-browser/test/parse.test.d.ts b/node_modules/uuid/dist/cjs-browser/test/parse.test.d.ts new file mode 100644 index 0000000000..cb0ff5c3b5 --- /dev/null +++ b/node_modules/uuid/dist/cjs-browser/test/parse.test.d.ts @@ -0,0 +1 @@ +export {}; diff --git a/node_modules/uuid/dist/cjs-browser/test/parse.test.js b/node_modules/uuid/dist/cjs-browser/test/parse.test.js new file mode 100644 index 0000000000..25cb2bd826 --- /dev/null +++ b/node_modules/uuid/dist/cjs-browser/test/parse.test.js @@ -0,0 +1,51 @@ +"use strict"; +Object.defineProperty(exports, "__esModule", { value: true }); +const assert = require("assert"); +const node_test_1 = require("node:test"); +const parse_js_1 = require("../parse.js"); +const stringify_js_1 = require("../stringify.js"); +const v4_js_1 = require("../v4.js"); +function splitmix32(a) { + return function () { + a |= 0; + a = (a + 0x9e3779b9) | 0; + let t = a ^ (a >>> 16); + t = Math.imul(t, 0x21f0aaad); + t = t ^ (t >>> 15); + t = Math.imul(t, 0x735a2d97); + return ((t = t ^ (t >>> 15)) >>> 0) / 4294967296; + }; +} +const rand = splitmix32(0x12345678); +function rng(bytes = new Uint8Array(16)) { + for (let i = 0; i < 16; i++) { + bytes[i] = rand() * 256; + } + return bytes; +} +(0, node_test_1.describe)('parse', () => { + (0, node_test_1.default)('String -> bytes parsing', () => { + assert.deepStrictEqual((0, parse_js_1.default)('0f5abcd1-c194-47f3-905b-2df7263a084b'), Uint8Array.from([ + 0x0f, 0x5a, 0xbc, 0xd1, 0xc1, 0x94, 0x47, 0xf3, 0x90, 0x5b, 0x2d, 0xf7, 0x26, 0x3a, 0x08, + 0x4b, + ])); + }); + (0, node_test_1.default)('String -> bytes -> string symmetry for assorted uuids', () => { + for (let i = 0; i < 1000; i++) { + const uuid = (0, v4_js_1.default)({ rng }); + assert.equal((0, stringify_js_1.default)((0, parse_js_1.default)(uuid)), uuid); + } + }); + (0, node_test_1.default)('Case neutrality', () => { + assert.deepStrictEqual((0, parse_js_1.default)('0f5abcd1-c194-47f3-905b-2df7263a084b'), (0, parse_js_1.default)('0f5abcd1-c194-47f3-905b-2df7263a084b'.toUpperCase())); + }); + (0, node_test_1.default)('Null UUID case', () => { + assert.deepStrictEqual((0, parse_js_1.default)('00000000-0000-0000-0000-000000000000'), Uint8Array.from(new Array(16).fill(0))); + }); + (0, node_test_1.default)('UUID validation', () => { + assert.throws(() => (0, parse_js_1.default)()); + assert.throws(() => (0, parse_js_1.default)('invalid uuid')); + assert.throws(() => (0, parse_js_1.default)('zyxwvuts-rqpo-nmlk-jihg-fedcba000000')); + }); +}); +//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoicGFyc2UudGVzdC5qcyIsInNvdXJjZVJvb3QiOiIiLCJzb3VyY2VzIjpbIi4uLy4uLy4uL3NyYy90ZXN0L3BhcnNlLnRlc3QudHMiXSwibmFtZXMiOltdLCJtYXBwaW5ncyI6Ijs7QUFBQSxpQ0FBaUM7QUFDakMseUNBQTJDO0FBQzNDLDBDQUFnQztBQUNoQyxrREFBd0M7QUFDeEMsb0NBQThCO0FBSTlCLFNBQVMsVUFBVSxDQUFDLENBQVM7SUFDM0IsT0FBTztRQUNMLENBQUMsSUFBSSxDQUFDLENBQUM7UUFDUCxDQUFDLEdBQUcsQ0FBQyxDQUFDLEdBQUcsVUFBVSxDQUFDLEdBQUcsQ0FBQyxDQUFDO1FBQ3pCLElBQUksQ0FBQyxHQUFHLENBQUMsR0FBRyxDQUFDLENBQUMsS0FBSyxFQUFFLENBQUMsQ0FBQztRQUN2QixDQUFDLEdBQUcsSUFBSSxDQUFDLElBQUksQ0FBQyxDQUFDLEVBQUUsVUFBVSxDQUFDLENBQUM7UUFDN0IsQ0FBQyxHQUFHLENBQUMsR0FBRyxDQUFDLENBQUMsS0FBSyxFQUFFLENBQUMsQ0FBQztRQUNuQixDQUFDLEdBQUcsSUFBSSxDQUFDLElBQUksQ0FBQyxDQUFDLEVBQUUsVUFBVSxDQUFDLENBQUM7UUFDN0IsT0FBTyxDQUFDLENBQUMsQ0FBQyxHQUFHLENBQUMsR0FBRyxDQUFDLENBQUMsS0FBSyxFQUFFLENBQUMsQ0FBQyxLQUFLLENBQUMsQ0FBQyxHQUFHLFVBQVUsQ0FBQztJQUNuRCxDQUFDLENBQUM7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UUsQ0FBQyxJQUFBLGtCQUFLLEVBQUMsc0NBQXNDLENBQUMsQ0FBQyxDQUFDO0lBQ3JFLENBQUMsQ0FBQyxDQUFDO0FBQ0wsQ0FBQyxDQUFDLENBQUMifQ== \ No newline at end of file diff --git a/node_modules/uuid/dist/cjs-browser/test/rng.test.d.ts b/node_modules/uuid/dist/cjs-browser/test/rng.test.d.ts new file mode 100644 index 0000000000..cb0ff5c3b5 --- /dev/null +++ b/node_modules/uuid/dist/cjs-browser/test/rng.test.d.ts @@ -0,0 +1 @@ +export {}; diff --git a/node_modules/uuid/dist/cjs-browser/test/rng.test.js b/node_modules/uuid/dist/cjs-browser/test/rng.test.js new file mode 100644 index 0000000000..6d2d2bccfb --- /dev/null +++ b/node_modules/uuid/dist/cjs-browser/test/rng.test.js @@ -0,0 +1,15 @@ +"use strict"; +Object.defineProperty(exports, "__esModule", { value: true }); +const assert = require("assert"); +const node_test_1 = require("node:test"); +const rng_js_1 = require("../rng.js"); +(0, node_test_1.describe)('rng', () => { + (0, node_test_1.default)('Node.js RNG', () => { + const bytes = (0, rng_js_1.default)(); + assert.equal(bytes.length, 16); + for (let i = 0; i < bytes.length; ++i) { + assert.equal(typeof bytes[i], 'number'); + } + }); +}); +//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoicm5nLnRlc3QuanMiLCJzb3VyY2VSb290IjoiIiwic291cmNlcyI6WyIuLi8uLi8uLi9zcmMvdGVzdC9ybmcudGVzdC50cyJdLCJuYW1lcyI6W10sIm1hcHBpbmdzIjoiOztBQUFBLGlDQUFpQztBQUNqQyx5Q0FBMkM7QUFDM0Msc0NBQTRCO0FBRTVCLElBQUEsb0JBQVEsRUFBQyxLQUFLLEVBQUUsR0FBRyxFQUFFO0lBQ25CLElBQUEsbUJBQUksRUFBQyxhQUFhLEVBQUUsR0FBRyxFQUFFO1FBQ3ZCLE1BQU0sS0FBSyxHQUFHLElBQUEsZ0JBQUcsR0FBRSxDQUFDO1FBQ3BCLE1BQU0sQ0FBQyxLQUFLLENBQUMsS0FBSyxDQUFDLE1BQU0sRUFBRSxFQUFFLENBQUMsQ0FBQztRQUUvQixLQUFLLElBQUksQ0FBQyxHQUFHLENBQUMsRUFBRSxDQUFDLEdBQUcsS0FBSyxDQUFDLE1BQU0sRUFBRSxFQUFFLENBQUMsRUFBRSxDQUFDO1lBQ3RDLE1BQU0sQ0FBQyxLQUFLLENBQUMsT0FBTyxLQUFLLENBQUMsQ0FBQyxDQUFDLEVBQUUsUUFBUSxDQUFDLENBQUM7UUFDMUMsQ0FBQztJQUNILENBQUMsQ0FBQyxDQUFDO0FBSUwsQ0FBQyxDQUFDLENBQUMifQ== \ No newline at end of file diff --git a/node_modules/uuid/dist/cjs-browser/test/stringify.test.d.ts b/node_modules/uuid/dist/cjs-browser/test/stringify.test.d.ts new file mode 100644 index 0000000000..cb0ff5c3b5 --- /dev/null +++ b/node_modules/uuid/dist/cjs-browser/test/stringify.test.d.ts @@ -0,0 +1 @@ +export {}; diff --git a/node_modules/uuid/dist/cjs-browser/test/stringify.test.js b/node_modules/uuid/dist/cjs-browser/test/stringify.test.js new file mode 100644 index 0000000000..a6527e6055 --- /dev/null +++ b/node_modules/uuid/dist/cjs-browser/test/stringify.test.js @@ -0,0 +1,24 @@ +"use strict"; +Object.defineProperty(exports, "__esModule", { value: true }); +const assert = require("assert"); +const node_test_1 = require("node:test"); +const stringify_js_1 = require("../stringify.js"); +const BYTES = Uint8Array.of(0x0f, 0x5a, 0xbc, 0xd1, 0xc1, 0x94, 0x47, 0xf3, 0x90, 0x5b, 0x2d, 0xf7, 0x26, 0x3a, 0x08, 0x4b); +(0, node_test_1.describe)('stringify', () => { + (0, node_test_1.default)('Stringify Array (unsafe)', () => { + assert.equal((0, stringify_js_1.unsafeStringify)(BYTES), '0f5abcd1-c194-47f3-905b-2df7263a084b'); + }); + (0, node_test_1.default)('Stringify w/ offset (unsafe)', () => { + const bytes = new Uint8Array(19).fill(0); + bytes.set(BYTES, 3); + assert.equal((0, stringify_js_1.unsafeStringify)(bytes, 3), '0f5abcd1-c194-47f3-905b-2df7263a084b'); + }); + (0, node_test_1.default)('Stringify Array (safe)', () => { + assert.equal((0, stringify_js_1.default)(BYTES), '0f5abcd1-c194-47f3-905b-2df7263a084b'); + }); + (0, node_test_1.default)('Throws on not enough values (safe)', () => { + const bytes = BYTES.slice(0, 15); + assert.throws(() => (0, stringify_js_1.default)(bytes)); + }); +}); +//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoic3RyaW5naWZ5LnRlc3QuanMiLCJzb3VyY2VSb290IjoiIiwic291cmNlcyI6WyIuLi8uLi8uLi9zcmMvdGVzdC9zdHJpbmdpZnkudGVzdC50cyJdLCJuYW1lcyI6W10sIm1hcHBpbmdzIjoiOztBQUFBLGlDQUFpQztBQUNqQyx5Q0FBMkM7QUFDM0Msa0RBQTZEO0FBRTdELE1BQU0sS0FBSyxHQUFHLFVBQVUsQ0FBQyxFQUFFLENBQ3pCLElBQUksRUFDSixJQUFJLEVBQ0osSUFBSSxFQUNKLElBQUksRUFDSixJQUFJLEVBQ0osSUFBSSxFQUNKLElBQUksRUFDSixJQUFJLEVBQ0osSUFBSSxFQUNKLElBQUksRUFDSixJQUFJLEVBQ0osSUFBSSxFQUNKLElBQUksRUFDSixJQUFJLEVBQ0osSUFBSSxFQUNKLElBQUksQ0FDTCxDQUFDO0FBRUYsSUFBQSxvQkFBUSxFQUFDLFdBQVcsRUFBRSxHQUFHLEVBQUU7SUFDekIsSUFBQSxtQkFBSSxFQUFDLDBCQUEwQixFQUFFLEdBQUcsRUFBRTtRQUNwQyxNQUFNLENBQUMsS0FBSyxDQUFDLElBQUEsOEJBQWUsRUFBQyxLQUFLLENBQUMsRUFBRSxzQ0FBc0MsQ0FBQyxDQUFDO0lBQy9FLENBQUMsQ0FBQyxDQUFDO0lBRUgsSUFBQSxtQkFBSSxFQUFDLDhCQUE4QixFQUFFLEdBQUcsRUFBRTtRQUN4QyxNQUFNLEtBQUssR0FBRyxJQUFJLFVBQVUsQ0FBQyxFQUFFLENBQUMsQ0FBQyxJQUFJLENBQUMsQ0FBQyxDQUFDLENBQUM7UUFDekMsS0FBSyxDQUFDLEdBQUcsQ0FBQyxLQUFLLEVBQUUsQ0FBQyxDQUFDLENBQUM7UUFDcEIsTUFBTSxDQUFDLEtBQUssQ0FBQyxJQUFBLDhCQUFlLEVBQUMsS0FBSyxFQUFFLENBQUMsQ0FBQyxFQUFFLHNDQUFzQyxDQUFDLENBQUM7SUFDbEYsQ0FBQyxDQUFDLENBQUM7SUFFSCxJQUFBLG1CQUFJLEVBQUMsd0JBQXdCLEVBQUUsR0FBRyxFQUFFO1FBQ2xDLE1BQU0sQ0FBQyxLQUFLLENBQUMsSUFBQSxzQkFBUyxFQUFDLEtBQUssQ0FBQyxFQUFFLHNDQUFzQyxDQUFDLENBQUM7SUFDekUsQ0FBQyxDQUFDLENBQUM7SUFFSCxJQUFBLG1CQUFJLEVBQUMsb0NBQW9DLEVBQUUsR0FBRyxFQUFFO1FBQzlDLE1BQU0sS0FBSyxHQUFHLEtBQUssQ0FBQyxLQUFLLENBQUMsQ0FBQyxFQUFFLEVBQUUsQ0FBQyxDQUFDO1FBQ2pDLE1BQU0sQ0FBQyxNQUFNLENBQUMsR0FBRyxFQUFFLENBQUMsSUFBQSxzQkFBUyxFQUFDLEtBQUssQ0FBQyxDQUFDLENBQUM7SUFDeEMsQ0FBQyxDQUFDLENBQUM7QUFDTCxDQUFDLENBQUMsQ0FBQyJ9 \ No newline at end of file diff --git a/node_modules/uuid/dist/cjs-browser/test/test_constants.d.ts b/node_modules/uuid/dist/cjs-browser/test/test_constants.d.ts new file mode 100644 index 0000000000..959a679fd0 --- /dev/null +++ b/node_modules/uuid/dist/cjs-browser/test/test_constants.d.ts @@ -0,0 +1,33 @@ +export declare const TESTS: ({ + value: string; + expectedValidate: boolean; + expectedVersion: number; +} | { + value: string; + expectedValidate: boolean; + expectedVersion?: undefined; +} | { + value: undefined; + expectedValidate: boolean; + expectedVersion?: undefined; +} | { + value: null; + expectedValidate: boolean; + expectedVersion?: undefined; +} | { + value: number; + expectedValidate: boolean; + expectedVersion?: undefined; +} | { + value: RegExp; + expectedValidate: boolean; + expectedVersion?: undefined; +} | { + value: Date; + expectedValidate: boolean; + expectedVersion?: undefined; +} | { + value: boolean; + expectedValidate: boolean; + expectedVersion?: undefined; +})[]; diff --git a/node_modules/uuid/dist/cjs-browser/test/test_constants.js b/node_modules/uuid/dist/cjs-browser/test/test_constants.js new file mode 100644 index 0000000000..dea75ce893 --- /dev/null +++ b/node_modules/uuid/dist/cjs-browser/test/test_constants.js @@ -0,0 +1,92 @@ +"use strict"; +Object.defineProperty(exports, "__esModule", { value: true }); +exports.TESTS = void 0; +const max_js_1 = require("../max.js"); +const nil_js_1 = require("../nil.js"); +exports.TESTS = [ + { value: nil_js_1.default, expectedValidate: true, expectedVersion: 0 }, + { value: max_js_1.default, expectedValidate: true, expectedVersion: 15 }, + { value: '00000000-0000-1000-8000-000000000000', expectedValidate: true, expectedVersion: 1 }, + { value: 'ffffffff-ffff-1fff-8fff-ffffffffffff', expectedValidate: true, expectedVersion: 1 }, + { value: '00000000-0000-2000-8000-000000000000', expectedValidate: true, expectedVersion: 2 }, + { value: 'ffffffff-ffff-2fff-bfff-ffffffffffff', expectedValidate: true, expectedVersion: 2 }, + { value: '00000000-0000-3000-8000-000000000000', expectedValidate: true, expectedVersion: 3 }, + { value: 'ffffffff-ffff-3fff-bfff-ffffffffffff', expectedValidate: true, expectedVersion: 3 }, + { value: '00000000-0000-4000-8000-000000000000', expectedValidate: true, expectedVersion: 4 }, + { value: 'ffffffff-ffff-4fff-bfff-ffffffffffff', expectedValidate: true, expectedVersion: 4 }, + { value: '00000000-0000-5000-8000-000000000000', expectedValidate: true, expectedVersion: 5 }, + { value: 'ffffffff-ffff-5fff-bfff-ffffffffffff', expectedValidate: true, expectedVersion: 5 }, + { value: '00000000-0000-6000-8000-000000000000', expectedValidate: true, expectedVersion: 6 }, + { value: 'ffffffff-ffff-6fff-bfff-ffffffffffff', expectedValidate: true, expectedVersion: 6 }, + { value: '00000000-0000-7000-8000-000000000000', expectedValidate: true, expectedVersion: 7 }, + { value: 'ffffffff-ffff-7fff-bfff-ffffffffffff', expectedValidate: true, expectedVersion: 7 }, + { value: '00000000-0000-8000-8000-000000000000', expectedValidate: true, expectedVersion: 8 }, + { value: 'ffffffff-ffff-8fff-bfff-ffffffffffff', expectedValidate: true, expectedVersion: 8 }, + { value: '00000000-0000-9000-8000-000000000000', expectedValidate: false }, + { value: 'ffffffff-ffff-9fff-bfff-ffffffffffff', expectedValidate: false }, + { value: '00000000-0000-a000-8000-000000000000', expectedValidate: false }, + { value: 'ffffffff-ffff-afff-bfff-ffffffffffff', expectedValidate: false }, + { value: '00000000-0000-b000-8000-000000000000', expectedValidate: false }, + { value: 'ffffffff-ffff-bfff-bfff-ffffffffffff', expectedValidate: false }, + { value: '00000000-0000-c000-8000-000000000000', expectedValidate: false }, + { value: 'ffffffff-ffff-cfff-bfff-ffffffffffff', expectedValidate: false }, + { value: '00000000-0000-d000-8000-000000000000', expectedValidate: false }, + { value: 'ffffffff-ffff-dfff-bfff-ffffffffffff', expectedValidate: false }, + { value: '00000000-0000-e000-8000-000000000000', expectedValidate: false }, + { value: 'ffffffff-ffff-efff-bfff-ffffffffffff', expectedValidate: false }, + { value: 'd9428888-122b-11e1-b85c-61cd3cbb3210', expectedValidate: true, expectedVersion: 1 }, + { value: '000003e8-2363-21ef-b200-325096b39f47', expectedValidate: true, expectedVersion: 2 }, + { value: 'a981a0c2-68b1-35dc-bcfc-296e52ab01ec', expectedValidate: true, expectedVersion: 3 }, + { value: '109156be-c4fb-41ea-b1b4-efe1671c5836', expectedValidate: true, expectedVersion: 4 }, + { value: '90123e1c-7512-523e-bb28-76fab9f2f73d', expectedValidate: true, expectedVersion: 5 }, + { value: '1ef21d2f-1207-6660-8c4f-419efbd44d48', expectedValidate: true, expectedVersion: 6 }, + { value: '017f22e2-79b0-7cc3-98c4-dc0c0c07398f', expectedValidate: true, expectedVersion: 7 }, + { value: '0d8f23a0-697f-83ae-802e-48f3756dd581', expectedValidate: true, expectedVersion: 8 }, + { value: '00000000-0000-1000-0000-000000000000', expectedValidate: false }, + { value: '00000000-0000-1000-1000-000000000000', expectedValidate: false }, + { value: '00000000-0000-1000-2000-000000000000', expectedValidate: false }, + { value: '00000000-0000-1000-3000-000000000000', expectedValidate: false }, + { value: '00000000-0000-1000-4000-000000000000', expectedValidate: false }, + { value: '00000000-0000-1000-5000-000000000000', expectedValidate: false }, + { value: '00000000-0000-1000-6000-000000000000', expectedValidate: false }, + { value: '00000000-0000-1000-7000-000000000000', expectedValidate: false }, + { value: '00000000-0000-1000-8000-000000000000', expectedValidate: true, expectedVersion: 1 }, + { value: '00000000-0000-1000-9000-000000000000', expectedValidate: true, expectedVersion: 1 }, + { value: '00000000-0000-1000-a000-000000000000', expectedValidate: true, expectedVersion: 1 }, + { value: '00000000-0000-1000-b000-000000000000', expectedValidate: true, expectedVersion: 1 }, + { value: '00000000-0000-1000-c000-000000000000', expectedValidate: false }, + { value: '00000000-0000-1000-d000-000000000000', expectedValidate: false }, + { value: '00000000-0000-1000-e000-000000000000', expectedValidate: false }, + { value: '00000000-0000-1000-f000-000000000000', expectedValidate: false }, + { value: '00000000000000000000000000000000', expectedValidate: false }, + { value: '', expectedValidate: false }, + { value: 'invalid uuid string', expectedValidate: false }, + { + value: '=Y00a-f*vb*-c-d#-p00f\b-g0h-#i^-j*3&-L00k-\nl---00n-fg000-00p-00r+', + expectedValidate: false, + }, + { value: undefined, expectedValidate: false }, + { value: null, expectedValidate: false }, + { value: 123, expectedValidate: false }, + { value: /regex/, expectedValidate: false }, + { value: new Date(0), expectedValidate: false }, + { value: false, expectedValidate: false }, +]; +for (let charIndex = 0; charIndex < 36; charIndex++) { + if (charIndex === 8 || + charIndex === 13 || + charIndex === 14 || + charIndex === 18 || + charIndex === 23) { + continue; + } + const nilChars = nil_js_1.default.split(''); + const maxChars = max_js_1.default.split(''); + for (let i = 0; i < 4; i++) { + nilChars[charIndex] = (0x0 ^ (1 << i)).toString(16); + exports.TESTS.push({ value: nilChars.join(''), expectedValidate: false }); + maxChars[charIndex] = (0xf ^ (1 << i)).toString(16); + exports.TESTS.push({ value: maxChars.join(''), expectedValidate: false }); + } +} +//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoidGVzdF9jb25zdGFudHMuanMiLCJzb3VyY2VSb290IjoiIiwic291cmNlcyI6WyIuLi8uLi8uLi9zcmMvdGVzdC90ZXN0X2NvbnN0YW50cy50cyJdLCJuYW1lcyI6W10sIm1hcHBpbmdzIjoiOzs7QUFBQSxzQ0FBNEI7QUFDNUIsc0NBQTRCO0FBR2YsUUFBQSxLQUFLLEdBQUc7SUFFbkIsRUFBRSxLQUFLLEVBQUUsZ0JBQUcsRUFBRSxnQkFBZ0IsRUFBRSxJQUFJLEVBQUUsZUFBZSxFQUFFLENBQUMsRUFBRTtJQUMxRCxFQUFFLEtBQUssRUFBRSxnQkFBRyxFQUFFLGdCQUFnQixFQUFFLElBQUksRUFBRSxlQUFlLEVBQUUsRUFBRSxFQUFFO0lBRzNELEVBQUUsS0FBSyxFQUFFLHNDQUFzQyxFQUFFLGdCQUFnQixFQUFFLElBQUksRUFBRSxlQUFlLEVBQUUsQ0FBQyxFQUFFO0lBQzdGLEVBQUUsS0FBSyxFQUFFLHNDQUFzQyxFQUFFLGdCQUFnQixFQUFFLElBQUksRUFBRSxlQUFlLEVBQUUsQ0FBQyxFQUFFO0lBQzdGLEVBQUUsS0FBSyxFQUFFLHNDQUFzQyxFQUFFLGdCQUFnQixFQUFFLElBQUksRUFBRSxlQUFlLEVBQUUsQ0FBQyxFQUFFO0lBQzdGLEVBQUUsS0FBSyxFQUFFLHNDQUFzQyxFQUFFLGdCQUFnQixFQUFFLElBQUksRUFBRSxlQUFlLEVBQUUsQ0FBQyxFQUFFO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VBQUUsRUFDaEIsQ0FBQztRQUNELFNBQVM7SUFDWCxDQUFDO0lBRUQsTUFBTSxRQUFRLEdBQUcsZ0JBQUcsQ0FBQyxLQUFLLENBQUMsRUFBRSxDQUFDLENBQUM7SUFDL0IsTUFBTSxRQUFRLEdBQUcsZ0JBQUcsQ0FBQyxLQUFLLENBQUMsRUFBRSxDQUFDLENBQUM7SUFFL0IsS0FBSyxJQUFJLENBQUMsR0FBRyxDQUFDLEVBQUUsQ0FBQyxHQUFHLENBQUMsRUFBRSxDQUFDLEVBQUUsRUFBRSxDQUFDO1FBQzNCLFFBQVEsQ0FBQyxTQUFTLENBQUMsR0FBRyxDQUFDLEdBQUcsR0FBRyxDQUFDLENBQUMsSUFBSSxDQUFDLENBQUMsQ0FBQyxDQUFDLFFBQVEsQ0FBQyxFQUFFLENBQUMsQ0FBQztRQUVwRCxhQUFLLENBQUMsSUFBSSxDQUFDLEVBQUUsS0FBSyxFQUFFLFFBQVEsQ0FBQyxJQUFJLENBQUMsRUFBRSxDQUFDLEVBQUUsZ0JBQWdCLEVBQUUsS0FBSyxFQUFFLENBQUMsQ0FBQztRQUdsRSxRQUFRLENBQUMsU0FBUyxDQUFDLEdBQUcsQ0FBQyxHQUFHLEdBQUcsQ0FBQyxDQUFDLElBQUksQ0FBQyxDQUFDLENBQUMsQ0FBQyxRQUFRLENBQUMsRUFBRSxDQUFDLENBQUM7UUFDcEQsYUFBSyxDQUFDLElBQUksQ0FBQyxFQUFFLEtBQUssRUFBRSxRQUFRLENBQUMsSUFBSSxDQUFDLEVBQUUsQ0FBQyxFQUFFLGdCQUFnQixFQUFFLEtBQUssRUFBRSxDQUFDLENBQUM7SUFDcEUsQ0FBQztBQUNILENBQUMifQ== \ No newline at end of file diff --git a/node_modules/uuid/dist/cjs-browser/test/v1.test.d.ts b/node_modules/uuid/dist/cjs-browser/test/v1.test.d.ts new file mode 100644 index 0000000000..cb0ff5c3b5 --- /dev/null +++ b/node_modules/uuid/dist/cjs-browser/test/v1.test.d.ts @@ -0,0 +1 @@ +export {}; diff --git a/node_modules/uuid/dist/cjs-browser/test/v1.test.js b/node_modules/uuid/dist/cjs-browser/test/v1.test.js new file mode 100644 index 0000000000..1ef5278a5a --- /dev/null +++ b/node_modules/uuid/dist/cjs-browser/test/v1.test.js @@ -0,0 +1,128 @@ +"use strict"; +Object.defineProperty(exports, "__esModule", { value: true }); +const assert = require("assert"); +const node_test_1 = require("node:test"); +const parse_js_1 = require("../parse.js"); +const v1_js_1 = require("../v1.js"); +const TIME = 1321644961388; +const RFC_V1 = 'c232ab00-9414-11ec-b3c8-9f68deced846'; +const RFC_V1_BYTES = (0, parse_js_1.default)(RFC_V1); +const RFC_OPTIONS = { + msecs: 0x17f22e279b0, + nsecs: 0, + clockseq: 0x33c8, + node: Uint8Array.of(0x9f, 0x68, 0xde, 0xce, 0xd8, 0x46), +}; +const RFC_RANDOM = Uint8Array.of(0, 0, 0, 0, 0, 0, 0, 0, RFC_OPTIONS.clockseq >> 8, RFC_OPTIONS.clockseq & 0xff, ...RFC_OPTIONS.node); +function compareV1TimeField(a, b) { + a = a.split('-').slice(0, 3).reverse().join(''); + b = b.split('-').slice(0, 3).reverse().join(''); + return a < b ? -1 : a > b ? 1 : 0; +} +(0, node_test_1.describe)('v1', () => { + (0, node_test_1.default)('v1 sort order (default)', () => { + const ids = [(0, v1_js_1.default)(), (0, v1_js_1.default)(), (0, v1_js_1.default)(), (0, v1_js_1.default)(), (0, v1_js_1.default)()]; + const sorted = [...ids].sort(compareV1TimeField); + assert.deepEqual(ids, sorted); + }); + (0, node_test_1.default)('v1 sort order (time option)', () => { + const ids = [ + (0, v1_js_1.default)({ msecs: TIME - 10 * 3600 * 1000 }), + (0, v1_js_1.default)({ msecs: TIME - 1 }), + (0, v1_js_1.default)({ msecs: TIME }), + (0, v1_js_1.default)({ msecs: TIME + 1 }), + (0, v1_js_1.default)({ msecs: TIME + 28 * 24 * 3600 * 1000 }), + ]; + const sorted = [...ids].sort(compareV1TimeField); + assert.deepEqual(ids, sorted); + }); + (0, node_test_1.default)('v1(options)', () => { + assert.equal((0, v1_js_1.default)({ msecs: RFC_OPTIONS.msecs, random: RFC_RANDOM }), RFC_V1, 'minimal options'); + assert.equal((0, v1_js_1.default)(RFC_OPTIONS), RFC_V1, 'full options'); + }); + (0, node_test_1.default)('v1(options) equality', () => { + assert.notEqual((0, v1_js_1.default)({ msecs: TIME }), (0, v1_js_1.default)({ msecs: TIME }), 'UUIDs with minimal options differ'); + assert.equal((0, v1_js_1.default)(RFC_OPTIONS), (0, v1_js_1.default)(RFC_OPTIONS), 'UUIDs with full options are identical'); + }); + (0, node_test_1.default)('fills one UUID into a buffer as expected', () => { + const buffer = new Uint8Array(16); + const result = (0, v1_js_1.default)(RFC_OPTIONS, buffer); + assert.deepEqual(buffer, RFC_V1_BYTES); + assert.strictEqual(buffer, result); + }); + (0, node_test_1.default)('fills two UUIDs into a buffer as expected', () => { + const buffer = new Uint8Array(32); + (0, v1_js_1.default)(RFC_OPTIONS, buffer, 0); + (0, v1_js_1.default)(RFC_OPTIONS, buffer, 16); + const expectedBuf = new Uint8Array(32); + expectedBuf.set(RFC_V1_BYTES); + expectedBuf.set(RFC_V1_BYTES, 16); + assert.deepEqual(buffer, expectedBuf); + }); + (0, node_test_1.default)('v1() state transitions', () => { + const PRE_STATE = { + msecs: 10, + nsecs: 20, + clockseq: 0x1234, + node: Uint8Array.of(0x12, 0x34, 0x56, 0x78, 0x9a, 0xbc), + }; + const tests = [ + { + title: 'initial state', + state: {}, + now: 10, + expected: { + msecs: 10, + nsecs: 0, + clockseq: RFC_OPTIONS.clockseq, + node: RFC_OPTIONS.node, + }, + }, + { + title: 'same time interval', + state: { ...PRE_STATE }, + now: PRE_STATE.msecs, + expected: { + ...PRE_STATE, + nsecs: 21, + }, + }, + { + title: 'new time interval', + state: { ...PRE_STATE }, + now: PRE_STATE.msecs + 1, + expected: { + ...PRE_STATE, + msecs: PRE_STATE.msecs + 1, + nsecs: 0, + }, + }, + { + title: 'same time interval (nsecs overflow)', + state: { ...PRE_STATE, nsecs: 9999 }, + now: PRE_STATE.msecs, + expected: { + ...PRE_STATE, + nsecs: 0, + clockseq: RFC_OPTIONS.clockseq, + node: RFC_OPTIONS.node, + }, + }, + { + title: 'time regression', + state: { ...PRE_STATE }, + now: PRE_STATE.msecs - 1, + expected: { + ...PRE_STATE, + msecs: PRE_STATE.msecs - 1, + clockseq: RFC_OPTIONS.clockseq, + node: RFC_OPTIONS.node, + }, + }, + ]; + for (const { title, state, now, expected } of tests) { + assert.deepStrictEqual((0, v1_js_1.updateV1State)(state, now, RFC_RANDOM), expected, `Failed: ${title}`); + } + }); +}); +//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoidjEudGVzdC5qcyIsInNvdXJjZVJvb3QiOiIiLCJzb3VyY2VzIjpbIi4uLy4uLy4uL3NyYy90ZXN0L3YxLnRlc3QudHMiXSwibmFtZXMiOltdLCJtYXBwaW5ncyI6Ijs7QUFBQSxpQ0FBaUM7QUFDakMseUNBQTJDO0FBQzNDLDBDQUFnQztBQUNoQyxvQ0FBNkM7QUFHN0MsTUFBTSxJQUFJLEdBQUcsYUFBYSxDQUFDO0FBSTNCLE1BQU0sTUFBTSxHQUFHLHNDQUFzQyxDQUFDO0FBQ3RELE1BQU0sWUFBWSxHQUFHLElBQUEsa0JBQUssRUFBQyxNQUFNLENBQUMsQ0FBQztBQUduQyxNQUFNLFdBQVcsR0FBRztJQUNsQixLQUFLLEVBQUUsYUFBYTtJQUNwQixLQUFLLEVBQUUsQ0FBQztJQUNSLFFBQVEsRUFBRSxNQUFNO0lBQ2hCLElBQUksRUFBRSxVQUFVLENBQUMsRUFBRSxDQUFDLElBQUksRUFBRSxJQUFJLEVBQUUsSUFBSSxFQUFFLElBQUksRUFBRSxJQUFJLEVBQUUsSUFBSSxDQUFDO0NBQ3hELENBQUM7QUFHRixNQUFNLFVBQVUsR0FBRyxVQUFVLENBQUMsRUFBRSxDQ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O1lBQ0Q7Z0JBQ0UsS0FBSyxFQUFFLGlCQUFpQjtnQkFDeEIsS0FBSyxFQUFFLEVBQUUsR0FBRyxTQUFTLEVBQUU7Z0JBQ3ZCLEdBQUcsRUFBRSxTQUFTLENBQUMsS0FBSyxHQUFHLENBQUM7Z0JBQ3hCLFFBQVEsRUFBRTtvQkFDUixHQUFHLFNBQVM7b0JBQ1osS0FBSyxFQUFFLFNBQVMsQ0FBQyxLQUFLLEdBQUcsQ0FBQztvQkFDMUIsUUFBUSxFQUFFLFdBQVcsQ0FBQyxRQUFRO29CQUM5QixJQUFJLEVBQUUsV0FBVyxDQUFDLElBQUk7aUJBQ3ZCO2FBQ0Y7U0FDRixDQUFDO1FBQ0YsS0FBSyxNQUFNLEVBQUUsS0FBSyxFQUFFLEtBQUssRUFBRSxHQUFHLEVBQUUsUUFBUSxFQUFFLElBQUksS0FBSyxFQUFFLENBQUM7WUFDcEQsTUFBTSxDQUFDLGVBQWUsQ0FBQyxJQUFBLHFCQUFhLEVBQUMsS0FBSyxFQUFFLEdBQUcsRUFBRSxVQUFVLENBQUMsRUFBRSxRQUFRLEVBQUUsV0FBVyxLQUFLLEVBQUUsQ0FBQyxDQUFDO1FBQzlGLENBQUM7SUFDSCxDQUFDLENBQUMsQ0FBQztBQUNMLENBQUMsQ0FBQyxDQUFDIn0= \ No newline at end of file diff --git a/node_modules/uuid/dist/cjs-browser/test/v35.test.d.ts b/node_modules/uuid/dist/cjs-browser/test/v35.test.d.ts new file mode 100644 index 0000000000..cb0ff5c3b5 --- /dev/null +++ b/node_modules/uuid/dist/cjs-browser/test/v35.test.d.ts @@ -0,0 +1 @@ +export {}; diff --git a/node_modules/uuid/dist/cjs-browser/test/v35.test.js b/node_modules/uuid/dist/cjs-browser/test/v35.test.js new file mode 100644 index 0000000000..7be19134db --- /dev/null +++ b/node_modules/uuid/dist/cjs-browser/test/v35.test.js @@ -0,0 +1,144 @@ +"use strict"; +Object.defineProperty(exports, "__esModule", { value: true }); +const assert = require("assert"); +const node_test_1 = require("node:test"); +const md5_js_1 = require("../md5.js"); +const sha1_js_1 = require("../sha1.js"); +const v3_js_1 = require("../v3.js"); +const v35_js_1 = require("../v35.js"); +const v5_js_1 = require("../v5.js"); +(0, node_test_1.describe)('v35', () => { + const HASH_SAMPLES = [ + { + input: (0, v35_js_1.stringToBytes)(''), + sha1: 'da39a3ee5e6b4b0d3255bfef95601890afd80709', + md5: 'd41d8cd98f00b204e9800998ecf8427e', + }, + { + input: (0, v35_js_1.stringToBytes)('\t\b\f !"#$%&\'()*+,-./0123456789:;<=>?@ABCDEFGHIJKLMNOPQRSTUVWXYZ[\\]^_`abcdefghijklmnopqrstuvwxyz{|}~\u00A1\u00A2\u00A3\u00A4\u00A5\u00A6\u00A7\u00A8\u00A9\u00AA\u00AB\u00AC\u00AE\u00AF\u00B0\u00B1\u00B2\u00B3\u00B4\u00B5\u00B6\u00B7\u00B8\u00B9\u00BA\u00BB\u00BC\u00BD\u00BE\u00BF\u00C0\u00C1\u00C2\u00C3\u00C4\u00C5\u00C6\u00C7\u00C8\u00C9\u00CA\u00CB\u00CC\u00CD\u00CE\u00CF\u00D0\u00D1\u00D2\u00D3\u00D4\u00D5\u00D6\u00D7\u00D8\u00D9\u00DA\u00DB\u00DC\u00DD\u00DE\u00DF\u00E0\u00E1\u00E2\u00E3\u00E4\u00E5\u00E6\u00E7\u00E8\u00E9\u00EA\u00EB\u00EC\u00ED\u00EE\u00EF\u00F0\u00F1\u00F2\u00F3\u00F4\u00F5\u00F6\u00F7\u00F8\u00F9\u00FA\u00FB\u00FC\u00FD\u00FE\u00FF'), + sha1: 'ca4a426a3d536f14cfd79011e79e10d64de950a0', + md5: 'e8098ec21950f841731d28749129d3ee', + }, + { + input: (0, v35_js_1.stringToBytes)('\u00A5\u0104\u018F\u0256\u02B1o\u0315\u038E\u0409\u0500\u0531\u05E1\u05B6\u0920\u0903\u09A4\u0983\u0A20\u0A02\u0AA0\u0A83\u0B06\u0C05\u0C03\u1401\u16A0'), + sha1: 'f2753ebc390e5f637e333c2a4179644a93ae9f65', + md5: '231b309e277b6be8bb3d6c688b7f098b', + }, + ]; + function hashToHex(hash) { + const chars = new Array(hash.length); + for (let i = 0; i < hash.length; i++) { + chars[i] = hash[i].toString(16).padStart(2, '0'); + } + return chars.join(''); + } + HASH_SAMPLES.forEach(function (sample, i) { + (0, node_test_1.default)(`sha1(node) HASH_SAMPLES[${i}]`, () => { + assert.equal(hashToHex((0, sha1_js_1.default)(sample.input)), sample.sha1); + }); + }); + HASH_SAMPLES.forEach(function (sample, i) { + (0, node_test_1.default)(`md5(node) HASH_SAMPLES[${i}]`, () => { + assert.equal(hashToHex((0, md5_js_1.default)(sample.input)), sample.md5); + }); + }); + (0, node_test_1.default)('v3', () => { + assert.strictEqual((0, v3_js_1.default)('hello.example.com', v3_js_1.default.DNS), '9125a8dc-52ee-365b-a5aa-81b0b3681cf6'); + assert.strictEqual((0, v3_js_1.default)('http://example.com/hello', v3_js_1.default.URL), 'c6235813-3ba4-3801-ae84-e0a6ebb7d138'); + assert.strictEqual((0, v3_js_1.default)('hello', '0f5abcd1-c194-47f3-905b-2df7263a084b'), 'a981a0c2-68b1-35dc-bcfc-296e52ab01ec'); + }); + (0, node_test_1.default)('v3 namespace.toUpperCase', () => { + assert.strictEqual((0, v3_js_1.default)('hello.example.com', v3_js_1.default.DNS.toUpperCase()), '9125a8dc-52ee-365b-a5aa-81b0b3681cf6'); + assert.strictEqual((0, v3_js_1.default)('http://example.com/hello', v3_js_1.default.URL.toUpperCase()), 'c6235813-3ba4-3801-ae84-e0a6ebb7d138'); + assert.strictEqual((0, v3_js_1.default)('hello', '0f5abcd1-c194-47f3-905b-2df7263a084b'.toUpperCase()), 'a981a0c2-68b1-35dc-bcfc-296e52ab01ec'); + }); + (0, node_test_1.default)('v3 namespace string validation', () => { + assert.throws(() => { + (0, v3_js_1.default)('hello.example.com', 'zyxwvuts-rqpo-nmlk-jihg-fedcba000000'); + }); + assert.throws(() => { + (0, v3_js_1.default)('hello.example.com', 'invalid uuid value'); + }); + assert.ok((0, v3_js_1.default)('hello.example.com', '00000000-0000-0000-0000-000000000000')); + }); + (0, node_test_1.default)('v3 namespace buffer validation', () => { + assert.throws(() => { + (0, v3_js_1.default)('hello.example.com', new Uint8Array(15)); + }); + assert.throws(() => { + (0, v3_js_1.default)('hello.example.com', new Uint8Array(17)); + }); + assert.ok((0, v3_js_1.default)('hello.example.com', new Uint8Array(16).fill(0))); + }); + (0, node_test_1.default)('v3 fill buffer', () => { + let buf = new Uint8Array(16); + const expectedUuid = Uint8Array.of(0x91, 0x25, 0xa8, 0xdc, 0x52, 0xee, 0x36, 0x5b, 0xa5, 0xaa, 0x81, 0xb0, 0xb3, 0x68, 0x1c, 0xf6); + const result = (0, v3_js_1.default)('hello.example.com', v3_js_1.default.DNS, buf); + assert.deepEqual(buf, expectedUuid); + assert.strictEqual(result, buf); + buf = new Uint8Array(19).fill(0xaa); + const expectedBuf = new Uint8Array(19).fill(0xaa); + expectedBuf.set(expectedUuid, 3); + (0, v3_js_1.default)('hello.example.com', v3_js_1.default.DNS, buf, 3); + assert.deepEqual(buf, expectedBuf); + }); + (0, node_test_1.default)('v3 undefined/null', () => { + assert.throws(() => (0, v3_js_1.default)()); + assert.throws(() => (0, v3_js_1.default)('hello')); + assert.throws(() => (0, v3_js_1.default)('hello.example.com', undefined)); + assert.throws(() => (0, v3_js_1.default)('hello.example.com', null, new Uint8Array(16))); + }); + (0, node_test_1.default)('v5', () => { + assert.strictEqual((0, v5_js_1.default)('hello.example.com', v5_js_1.default.DNS), 'fdda765f-fc57-5604-a269-52a7df8164ec'); + assert.strictEqual((0, v5_js_1.default)('http://example.com/hello', v5_js_1.default.URL), '3bbcee75-cecc-5b56-8031-b6641c1ed1f1'); + assert.strictEqual((0, v5_js_1.default)('hello', '0f5abcd1-c194-47f3-905b-2df7263a084b'), '90123e1c-7512-523e-bb28-76fab9f2f73d'); + }); + (0, node_test_1.default)('v5 namespace.toUpperCase', () => { + assert.strictEqual((0, v5_js_1.default)('hello.example.com', v5_js_1.default.DNS.toUpperCase()), 'fdda765f-fc57-5604-a269-52a7df8164ec'); + assert.strictEqual((0, v5_js_1.default)('http://example.com/hello', v5_js_1.default.URL.toUpperCase()), '3bbcee75-cecc-5b56-8031-b6641c1ed1f1'); + assert.strictEqual((0, v5_js_1.default)('hello', '0f5abcd1-c194-47f3-905b-2df7263a084b'.toUpperCase()), '90123e1c-7512-523e-bb28-76fab9f2f73d'); + }); + (0, node_test_1.default)('v5 namespace string validation', () => { + assert.throws(() => { + (0, v5_js_1.default)('hello.example.com', 'zyxwvuts-rqpo-nmlk-jihg-fedcba000000'); + }); + assert.throws(() => { + (0, v5_js_1.default)('hello.example.com', 'invalid uuid value'); + }); + assert.ok((0, v5_js_1.default)('hello.example.com', '00000000-0000-0000-0000-000000000000')); + }); + (0, node_test_1.default)('v5 namespace buffer validation', () => { + assert.throws(() => { + (0, v5_js_1.default)('hello.example.com', new Uint8Array(15)); + }); + assert.throws(() => { + (0, v5_js_1.default)('hello.example.com', new Uint8Array(17)); + }); + assert.ok((0, v5_js_1.default)('hello.example.com', new Uint8Array(16).fill(0))); + }); + (0, node_test_1.default)('v5 fill buffer', () => { + let buf = new Uint8Array(16); + const expectedUuid = Uint8Array.of(0xfd, 0xda, 0x76, 0x5f, 0xfc, 0x57, 0x56, 0x04, 0xa2, 0x69, 0x52, 0xa7, 0xdf, 0x81, 0x64, 0xec); + const result = (0, v5_js_1.default)('hello.example.com', v5_js_1.default.DNS, buf); + assert.deepEqual(buf, expectedUuid); + assert.strictEqual(result, buf); + buf = new Uint8Array(19).fill(0xaa); + const expectedBuf = new Uint8Array(19).fill(0xaa); + expectedBuf.set(expectedUuid, 3); + (0, v5_js_1.default)('hello.example.com', v5_js_1.default.DNS, buf, 3); + assert.deepEqual(buf, expectedBuf); + }); + (0, node_test_1.default)('v5 undefined/null', () => { + assert.throws(() => (0, v5_js_1.default)()); + assert.throws(() => (0, v5_js_1.default)('hello')); + assert.throws(() => (0, v5_js_1.default)('hello.example.com', undefined)); + assert.throws(() => (0, v5_js_1.default)('hello.example.com', null, new Uint8Array(16))); + }); + (0, node_test_1.default)('v3/v5 constants', () => { + assert.strictEqual(v3_js_1.default.DNS, '6ba7b810-9dad-11d1-80b4-00c04fd430c8'); + assert.strictEqual(v3_js_1.default.URL, '6ba7b811-9dad-11d1-80b4-00c04fd430c8'); + assert.strictEqual(v5_js_1.default.DNS, '6ba7b810-9dad-11d1-80b4-00c04fd430c8'); + assert.strictEqual(v5_js_1.default.URL, '6ba7b811-9dad-11d1-80b4-00c04fd430c8'); + }); +}); +//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoidjM1LnRlc3QuanMiLCJzb3VyY2VSb290IjoiIiwic291cmNlcyI6WyIuLi8uLi8uLi9zcmMvdGVzdC92MzUudGVzdC50cyJdLCJuYW1lcyI6W10sIm1hcHBpbmdzIjoiOztBQUFBLGlDQUFpQztBQUNqQyx5Q0FBMkM7QUFDM0Msc0NBQTRCO0FBQzVCLHdDQUE4QjtBQUM5QixvQ0FBMEI7QUFDMUIsc0NBQTBDO0FBQzFDLG9DQUEwQjtBQUUxQixJQUFBLG9CQUFRLEVBQUMsS0FBSyxFQUFFLEdBQUcsRUFBRTtJQUNuQixNQUFNLFlBQVksR0FBRztRQUNuQjtZQUNFLEtBQUssRUFBRSxJQUFBLHNCQUFhLEVBQUMsRUFBRSxDQUFDO1lBQ3hCLElBQUksRUFBRSwwQ0FBMEM7WUFDaEQsR0FBRyxFQUFFLGtDQUFrQztTQUN4QztRQUdEO1lBQ0UsS0FBSyxFQUFFLElBQUEsc0JBQWEsRUFDbEIsOHBCQUE4cEIsQ0FDL3BCO1lBQ0QsSUFBSSxFQUFFLDBDQUEwQztZQUNoRCxHQUFHLEVBQUUsa0NBQWtDO1NBQ3hDO1FBR0Q7WUFDRSxLQUFLLEVBQUUsSUFBQSxzQkFBYSxFQUNsQix5SkFBeUosQ0F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BQUMsbUJBQW1CLEVBQUUsU0FBUyxDQUFDLENBQUMsQ0FBQztRQUV4RCxNQUFNLENBQUMsTUFBTSxDQUFDLEdBQUcsRUFBRSxDQUFDLElBQUEsZUFBRSxFQUFDLG1CQUFtQixFQUFFLElBQUksRUFBRSxJQUFJLFVBQVUsQ0FBQyxFQUFFLENBQUMsQ0FBQyxDQUFDLENBQUM7SUFDekUsQ0FBQyxDQUFDLENBQUM7SUFFSCxJQUFBLG1CQUFJLEVBQUMsaUJBQWlCLEVBQUUsR0FBRyxFQUFFO1FBQzNCLE1BQU0sQ0FBQyxXQUFXLENBQUMsZUFBRSxDQUFDLEdBQUcsRUFBRSxzQ0FBc0MsQ0FBQyxDQUFDO1FBQ25FLE1BQU0sQ0FBQyxXQUFXLENBQUMsZUFBRSxDQUFDLEdBQUcsRUFBRSxzQ0FBc0MsQ0FBQyxDQUFDO1FBQ25FLE1BQU0sQ0FBQyxXQUFXLENBQUMsZUFBRSxDQUFDLEdBQUcsRUFBRSxzQ0FBc0MsQ0FBQyxDQUFDO1FBQ25FLE1BQU0sQ0FBQyxXQUFXLENBQUMsZUFBRSxDQUFDLEdBQUcsRUFBRSxzQ0FBc0MsQ0FBQyxDQUFDO0lBQ3JFLENBQUMsQ0FBQyxDQUFDO0FBQ0wsQ0FBQyxDQUFDLENBQUMifQ== \ No newline at end of file diff --git a/node_modules/uuid/dist/cjs-browser/test/v4.test.d.ts b/node_modules/uuid/dist/cjs-browser/test/v4.test.d.ts new file mode 100644 index 0000000000..cb0ff5c3b5 --- /dev/null +++ b/node_modules/uuid/dist/cjs-browser/test/v4.test.d.ts @@ -0,0 +1 @@ +export {}; diff --git a/node_modules/uuid/dist/cjs-browser/test/v4.test.js b/node_modules/uuid/dist/cjs-browser/test/v4.test.js new file mode 100644 index 0000000000..1e3e328fcd --- /dev/null +++ b/node_modules/uuid/dist/cjs-browser/test/v4.test.js @@ -0,0 +1,61 @@ +"use strict"; +Object.defineProperty(exports, "__esModule", { value: true }); +const assert = require("assert"); +const node_test_1 = require("node:test"); +const native_js_1 = require("../native.js"); +const v4_js_1 = require("../v4.js"); +const randomBytesFixture = Uint8Array.of(0x10, 0x91, 0x56, 0xbe, 0xc4, 0xfb, 0xc1, 0xea, 0x71, 0xb4, 0xef, 0xe1, 0x67, 0x1c, 0x58, 0x36); +const expectedBytes = Uint8Array.of(16, 145, 86, 190, 196, 251, 65, 234, 177, 180, 239, 225, 103, 28, 88, 54); +(0, node_test_1.describe)('v4', () => { + (0, node_test_1.default)('subsequent UUIDs are different', () => { + const id1 = (0, v4_js_1.default)(); + const id2 = (0, v4_js_1.default)(); + assert.ok(id1 !== id2); + }); + (0, node_test_1.default)('should uses native randomUUID() if no option is passed', async () => { + const mock = (await Promise.resolve().then(() => require('node:test'))).default.mock; + if (!mock) { + return; + } + const mockRandomUUID = mock.method(native_js_1.default, 'randomUUID'); + assert.equal(mockRandomUUID.mock.callCount(), 0); + (0, v4_js_1.default)(); + assert.equal(mockRandomUUID.mock.callCount(), 1); + mock.restoreAll(); + }); + (0, node_test_1.default)('should not use native randomUUID() if an option is passed', async () => { + const mock = (await Promise.resolve().then(() => require('node:test'))).default.mock; + if (!mock) { + return; + } + const mockRandomUUID = mock.method(native_js_1.default, 'randomUUID'); + assert.equal(mockRandomUUID.mock.callCount(), 0); + (0, v4_js_1.default)({}); + assert.equal(mockRandomUUID.mock.callCount(), 0); + mock.restoreAll(); + }); + (0, node_test_1.default)('explicit options.random produces expected result', () => { + const id = (0, v4_js_1.default)({ random: randomBytesFixture }); + assert.strictEqual(id, '109156be-c4fb-41ea-b1b4-efe1671c5836'); + }); + (0, node_test_1.default)('explicit options.rng produces expected result', () => { + const id = (0, v4_js_1.default)({ rng: () => randomBytesFixture }); + assert.strictEqual(id, '109156be-c4fb-41ea-b1b4-efe1671c5836'); + }); + (0, node_test_1.default)('fills one UUID into a buffer as expected', () => { + const buffer = new Uint8Array(16); + const result = (0, v4_js_1.default)({ random: randomBytesFixture }, buffer); + assert.deepEqual(buffer, expectedBytes); + assert.strictEqual(buffer, result); + }); + (0, node_test_1.default)('fills two UUIDs into a buffer as expected', () => { + const buffer = new Uint8Array(32); + (0, v4_js_1.default)({ random: randomBytesFixture }, buffer, 0); + (0, v4_js_1.default)({ random: randomBytesFixture }, buffer, 16); + const expectedBuf = new Uint8Array(32); + expectedBuf.set(expectedBytes); + expectedBuf.set(expectedBytes, 16); + assert.deepEqual(buffer, expectedBuf); + }); +}); +//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoidjQudGVzdC5qcyIsInNvdXJjZVJvb3QiOiIiLCJzb3VyY2VzIjpbIi4uLy4uLy4uL3NyYy90ZXN0L3Y0LnRlc3QudHMiXSwibmFtZXMiOltdLCJtYXBwaW5ncyI6Ijs7QUFBQSxpQ0FBaUM7QUFDakMseUNBQTJDO0FBQzNDLDRDQUFrQztBQUNsQyxvQ0FBMEI7QUFFMUIsTUFBTSxrQkFBa0IsR0FBRyxVQUFVLENBQUMsRUFBRSxDQUN0QyxJQUFJLEVBQ0osSUFBSSxFQUNKLElBQUksRUFDSixJQUFJLEVBQ0osSUFBSSxFQUNKLElBQUksRUFDSixJQUFJLEVBQ0osSUFBSSxFQUNKLElBQUksRUFDSixJQUFJLEVBQ0osSUFBSSxFQUNKLElBQUksRUFDSixJQUFJLEVBQ0osSUFBSSxFQUNKLElBQUksRUFDSixJQUFJLENBQ0wsQ0FBQztBQUVGLE1BQU0sYUFBYSxHQUFHLFVBQVUsQ0FBQyxFQUFFLENBQ2pDLEVBQUUsRUFDRixHQUFHLEVBQ0gsRUFBRSxFQUNGLEdBQUcsRUFDSCxHQUFHLEVBQ0gsR0FBRyxFQUNILEVBQUUsRUFDRixHQUFHLEVBQ0gsR0FBRyxFQUNILEdBQUcsRUFDSCxHQUFHLEVBQ0gsR0FBRyxFQUNILEdBQUcsRUFDSCxFQUFFLEVBQ0YsRUFBRSxFQUNGLEVBQUUsQ0FDSCxDQUFDO0FBRUYsSUFB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QUFDIn0= \ No newline at end of file diff --git a/node_modules/uuid/dist/cjs-browser/test/v6.test.d.ts b/node_modules/uuid/dist/cjs-browser/test/v6.test.d.ts new file mode 100644 index 0000000000..cb0ff5c3b5 --- /dev/null +++ b/node_modules/uuid/dist/cjs-browser/test/v6.test.d.ts @@ -0,0 +1 @@ +export {}; diff --git a/node_modules/uuid/dist/cjs-browser/test/v6.test.js b/node_modules/uuid/dist/cjs-browser/test/v6.test.js new file mode 100644 index 0000000000..eeabcc8525 --- /dev/null +++ b/node_modules/uuid/dist/cjs-browser/test/v6.test.js @@ -0,0 +1,57 @@ +"use strict"; +Object.defineProperty(exports, "__esModule", { value: true }); +const assert = require("assert"); +const node_test_1 = require("node:test"); +const v1ToV6_js_1 = require("../v1ToV6.js"); +const v6_js_1 = require("../v6.js"); +const v6ToV1_js_1 = require("../v6ToV1.js"); +(0, node_test_1.describe)('v6', () => { + const V1_ID = 'f1207660-21d2-11ef-8c4f-419efbd44d48'; + const V6_ID = '1ef21d2f-1207-6660-8c4f-419efbd44d48'; + const fullOptions = { + msecs: 0x133b891f705, + nsecs: 0x1538, + clockseq: 0x385c, + node: Uint8Array.of(0x61, 0xcd, 0x3c, 0xbb, 0x32, 0x10), + }; + const EXPECTED_BYTES = Uint8Array.of(0x1e, 0x11, 0x22, 0xbd, 0x94, 0x28, 0x68, 0x88, 0xb8, 0x5c, 0x61, 0xcd, 0x3c, 0xbb, 0x32, 0x10); + (0, node_test_1.default)('default behavior', () => { + const id = (0, v6_js_1.default)(); + assert.ok(/[0-9a-f]{8}-[0-9a-f]{4}-6[0-9a-f]{3}-[89ab][0-9a-f]{3}-[0-9a-f]{12}/.test(id), 'id is valid v6 UUID'); + }); + (0, node_test_1.default)('default behavior (binary type)', () => { + const buffer = new Uint8Array(16); + const result = (0, v6_js_1.default)(fullOptions, buffer); + assert.deepEqual(buffer, EXPECTED_BYTES); + assert.strictEqual(buffer, result); + }); + (0, node_test_1.default)('all options', () => { + const id = (0, v6_js_1.default)(fullOptions); + assert.equal(id, '1e1122bd-9428-6888-b85c-61cd3cbb3210'); + }); + (0, node_test_1.default)('sort by creation time', () => { + const ids = []; + for (let i = 0; i < 5; i++) { + ids.push((0, v6_js_1.default)({ msecs: i * 1000 })); + } + assert.deepEqual(ids, ids.slice().sort()); + }); + (0, node_test_1.default)('creating at array offset', () => { + const buffer = new Uint8Array(32); + (0, v6_js_1.default)(fullOptions, buffer, 0); + (0, v6_js_1.default)(fullOptions, buffer, 16); + const expectedBuf = new Uint8Array(32); + expectedBuf.set(EXPECTED_BYTES, 0); + expectedBuf.set(EXPECTED_BYTES, 16); + assert.deepEqual(buffer, expectedBuf); + }); + (0, node_test_1.default)('v1 -> v6 conversion', () => { + const id = (0, v1ToV6_js_1.default)(V1_ID); + assert.equal(id, V6_ID); + }); + (0, node_test_1.default)('v6 -> v1 conversion', () => { + const id = (0, v6ToV1_js_1.default)(V6_ID); + assert.equal(id, V1_ID); + }); +}); +//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoidjYudGVzdC5qcyIsInNvdXJjZVJvb3QiOiIiLCJzb3VyY2VzIjpbIi4uLy4uLy4uL3NyYy90ZXN0L3Y2LnRlc3QudHMiXSwibmFtZXMiOltdLCJtYXBwaW5ncyI6Ijs7QUFBQSxpQ0FBaUM7QUFDakMseUNBQTJDO0FBQzNDLDRDQUFrQztBQUNsQyxvQ0FBMEI7QUFDMUIsNENBQWtDO0FBRWxDLElBQUEsb0JBQVEsRUFBQyxJQUFJLEVBQUUsR0FBRyxFQUFFO0lBQ2xCLE1BQU0sS0FBSyxHQUFHLHNDQUFzQyxDQUFDO0lBQ3JELE1BQU0sS0FBSyxHQUFHLHNDQUFzQyxDQUFDO0lBRXJELE1BQU0sV0FBVyxHQUFHO1FBQ2xCLEtBQUssRUFBRSxhQUFhO1FBQ3BCLEtBQUssRUFBRSxNQUFNO1FBQ2IsUUFBUSxFQUFFLE1BQU07UUFDaEIsSUFBSSxFQUFFLFV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LENBQUMsQ0FBQyxDQUFDO1FBQ25DLFdBQVcsQ0FBQyxHQUFHLENBQUMsY0FBYyxFQUFFLEVBQUUsQ0FBQyxDQUFDO1FBRXBDLE1BQU0sQ0FBQyxTQUFTLENBQUMsTUFBTSxFQUFFLFdBQVcsQ0FBQyxDQUFDO0lBQ3hDLENBQUMsQ0FBQyxDQUFDO0lBRUgsSUFBQSxtQkFBSSxFQUFDLHFCQUFxQixFQUFFLEdBQUcsRUFBRTtRQUMvQixNQUFNLEVBQUUsR0FBRyxJQUFBLG1CQUFNLEVBQUMsS0FBSyxDQUFDLENBQUM7UUFDekIsTUFBTSxDQUFDLEtBQUssQ0FBQyxFQUFFLEVBQUUsS0FBSyxDQUFDLENBQUM7SUFDMUIsQ0FBQyxDQUFDLENBQUM7SUFFSCxJQUFBLG1CQUFJLEVBQUMscUJBQXFCLEVBQUUsR0FBRyxFQUFFO1FBQy9CLE1BQU0sRUFBRSxHQUFHLElBQUEsbUJBQU0sRUFBQyxLQUFLLENBQUMsQ0FBQztRQUN6QixNQUFNLENBQUMsS0FBSyxDQUFDLEVBQUUsRUFBRSxLQUFLLENBQUMsQ0FBQztJQUMxQixDQUFDLENBQUMsQ0FBQztBQUNMLENBQUMsQ0FBQyxDQUFDIn0= \ No newline at end of file diff --git a/node_modules/uuid/dist/cjs-browser/test/v7.test.d.ts b/node_modules/uuid/dist/cjs-browser/test/v7.test.d.ts new file mode 100644 index 0000000000..cb0ff5c3b5 --- /dev/null +++ b/node_modules/uuid/dist/cjs-browser/test/v7.test.d.ts @@ -0,0 +1 @@ +export {}; diff --git a/node_modules/uuid/dist/cjs-browser/test/v7.test.js b/node_modules/uuid/dist/cjs-browser/test/v7.test.js new file mode 100644 index 0000000000..3da88aa86b --- /dev/null +++ b/node_modules/uuid/dist/cjs-browser/test/v7.test.js @@ -0,0 +1,195 @@ +"use strict"; +Object.defineProperty(exports, "__esModule", { value: true }); +const assert = require("assert"); +const node_test_1 = require("node:test"); +const parse_js_1 = require("../parse.js"); +const stringify_js_1 = require("../stringify.js"); +const v7_js_1 = require("../v7.js"); +const RFC_V7 = '017f22e2-79b0-7cc3-98c4-dc0c0c07398f'; +const RFC_V7_BYTES = (0, parse_js_1.default)('017f22e2-79b0-7cc3-98c4-dc0c0c07398f'); +const RFC_MSECS = 0x17f22e279b0; +const RFC_SEQ = (0x0cc3 << 20) | (0x98c4dc >> 2); +const RFC_RANDOM = Uint8Array.of(0x10, 0x91, 0x56, 0xbe, 0xc4, 0xfb, 0x0c, 0xc3, 0x18, 0xc4, 0x6c, 0x0c, 0x0c, 0x07, 0x39, 0x8f); +(0, node_test_1.describe)('v7', () => { + (0, node_test_1.default)('subsequent UUIDs are different', () => { + const id1 = (0, v7_js_1.default)(); + const id2 = (0, v7_js_1.default)(); + assert.ok(id1 !== id2); + }); + (0, node_test_1.default)('explicit options.random and options.msecs produces expected result', () => { + const id = (0, v7_js_1.default)({ + random: RFC_RANDOM, + msecs: RFC_MSECS, + seq: RFC_SEQ, + }); + assert.strictEqual(id, RFC_V7); + }); + (0, node_test_1.default)('explicit options.rng produces expected result', () => { + const id = (0, v7_js_1.default)({ + rng: () => RFC_RANDOM, + msecs: RFC_MSECS, + seq: RFC_SEQ, + }); + assert.strictEqual(id, RFC_V7); + }); + (0, node_test_1.default)('explicit options.msecs produces expected result', () => { + const id = (0, v7_js_1.default)({ + msecs: RFC_MSECS, + }); + assert.strictEqual(id.indexOf('017f22e2'), 0); + }); + (0, node_test_1.default)('fills one UUID into a buffer as expected', () => { + const buffer = new Uint8Array(16); + const result = (0, v7_js_1.default)({ + random: RFC_RANDOM, + msecs: RFC_MSECS, + seq: RFC_SEQ, + }, buffer); + (0, stringify_js_1.default)(buffer); + assert.deepEqual(buffer, RFC_V7_BYTES); + assert.strictEqual(buffer, result); + }); + (0, node_test_1.default)('fills two UUIDs into a buffer as expected', () => { + const buffer = new Uint8Array(32); + (0, v7_js_1.default)({ + random: RFC_RANDOM, + msecs: RFC_MSECS, + seq: RFC_SEQ, + }, buffer, 0); + (0, v7_js_1.default)({ + random: RFC_RANDOM, + msecs: RFC_MSECS, + seq: RFC_SEQ, + }, buffer, 16); + const expected = new Uint8Array(32); + expected.set(RFC_V7_BYTES); + expected.set(RFC_V7_BYTES, 16); + assert.deepEqual(buffer, expected); + }); + (0, node_test_1.default)('lexicographical sorting is preserved', () => { + let id; + let prior; + let msecs = RFC_MSECS; + for (let i = 0; i < 20000; ++i) { + if (i % 1500 === 0) { + msecs += 1; + } + id = (0, v7_js_1.default)({ msecs, seq: i }); + if (prior !== undefined) { + assert.ok(prior < id, `${prior} < ${id}`); + } + prior = id; + } + }); + (0, node_test_1.default)('can supply seq', () => { + let seq = 0x12345; + let uuid = (0, v7_js_1.default)({ + msecs: RFC_MSECS, + seq, + }); + assert.strictEqual(uuid.substr(0, 25), '017f22e2-79b0-7000-848d-1'); + seq = 0x6fffffff; + uuid = (0, v7_js_1.default)({ + msecs: RFC_MSECS, + seq, + }); + assert.strictEqual(uuid.substring(0, 25), '017f22e2-79b0-76ff-bfff-f'); + }); + (0, node_test_1.default)('internal seq is reset upon timestamp change', () => { + (0, v7_js_1.default)({ + msecs: RFC_MSECS, + seq: 0x6fffffff, + }); + const uuid = (0, v7_js_1.default)({ + msecs: RFC_MSECS + 1, + }); + assert.ok(uuid.indexOf('fff') !== 15); + }); + (0, node_test_1.default)('v7() state transitions', () => { + const tests = [ + { + title: 'new time interval', + state: { msecs: 1, seq: 123 }, + now: 2, + expected: { + msecs: 2, + seq: 0x6c318c4, + }, + }, + { + title: 'same time interval', + state: { msecs: 1, seq: 123 }, + now: 1, + expected: { + msecs: 1, + seq: 124, + }, + }, + { + title: 'same time interval (sequence rollover)', + state: { msecs: 1, seq: 0xffffffff }, + now: 1, + expected: { + msecs: 2, + seq: 0, + }, + }, + { + title: 'time regression', + state: { msecs: 2, seq: 123 }, + now: 1, + expected: { + msecs: 2, + seq: 124, + }, + }, + { + title: 'time regression (sequence rollover)', + state: { msecs: 2, seq: 0xffffffff }, + now: 1, + expected: { + msecs: 3, + seq: 0, + }, + }, + ]; + for (const { title, state, now, expected } of tests) { + assert.deepStrictEqual((0, v7_js_1.updateV7State)(state, now, RFC_RANDOM), expected, `Failed: ${title}`); + } + }); + (0, node_test_1.default)('flipping bits changes the result', () => { + const asBigInt = (buf) => buf.reduce((acc, v) => (acc << 8n) | BigInt(v), 0n); + const asNumber = (bits, data) => Number(BigInt.asUintN(bits, data)); + const flip = (data, n) => data ^ (1n << BigInt(127 - n)); + const optionsFrom = (data) => { + const ms = asNumber(48, data >> 80n); + const hi = asNumber(12, data >> 64n); + const lo = asNumber(20, data >> 42n); + const r = BigInt.asUintN(42, data); + return { + msecs: ms, + seq: (hi << 20) | lo, + random: Uint8Array.from([ + ...Array(10).fill(0), + ...Array(6) + .fill(0) + .map((_, i) => asNumber(8, r >> (BigInt(i) * 8n))) + .reverse(), + ]), + }; + }; + const buf = new Uint8Array(16); + const data = asBigInt((0, v7_js_1.default)({}, buf)); + const id = (0, stringify_js_1.default)(buf); + const reserved = [48, 49, 50, 51, 64, 65]; + for (let i = 0; i < 128; ++i) { + if (reserved.includes(i)) { + continue; + } + const flipped = flip(data, i); + assert.strictEqual(asBigInt((0, v7_js_1.default)(optionsFrom(flipped), buf)).toString(16), flipped.toString(16), `Unequal uuids at bit ${i}`); + assert.notStrictEqual((0, stringify_js_1.default)(buf), id); + } + }); +}); +//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoidjcudGVzdC5qcyIsInNvdXJjZVJvb3QiOiIiLCJzb3VyY2VzIjpbIi4uLy4uLy4uL3NyYy90ZXN0L3Y3LnRlc3QudHMiXSwibmFtZXMiOltdLCJtYXBwaW5ncyI6Ijs7QUFBQSxpQ0FBaUM7QUFDakMseUNBQTJDO0FBRTNDLDBDQUFnQztBQUNoQyxrREFBd0M7QUFDeEMsb0NBQTZDO0FBSTdDLE1BQU0sTUFBTSxHQUFHLHNDQUFzQyxDQUFDO0FBQ3RELE1B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FLENBQUM7WUFDN0IsSUFBSSxRQUFRLENBQUMsUUFBUSxDQUFDLENBQUMsQ0FBQyxFQUFFLENBQUM7Z0JBQ3pCLFNBQVM7WUFDWCxDQUFDO1lBQ0QsTUFBTSxPQUFPLEdBQUcsSUFBSSxDQUFDLElBQUksRUFBRSxDQUFDLENBQUMsQ0FBQztZQUM5QixNQUFNLENBQUMsV0FBVyxDQUNoQixRQUFRLENBQUMsSUFBQSxlQUFFLEVBQUMsV0FBVyxDQUFDLE9BQU8sQ0FBQyxFQUFFLEdBQUcsQ0FBQyxDQUFDLENBQUMsUUFBUSxDQUFDLEVBQUUsQ0FBQyxFQUNwRCxPQUFPLENBQUMsUUFBUSxDQUFDLEVBQUUsQ0FBQyxFQUNwQix3QkFBd0IsQ0FBQyxFQUFFLENBQzVCLENBQUM7WUFDRixNQUFNLENBQUMsY0FBYyxDQUFDLElBQUEsc0JBQVMsRUFBQyxHQUFHLENBQUMsRUFBRSxFQUFFLENBQUMsQ0FBQztRQUM1QyxDQUFDO0lBQ0gsQ0FBQyxDQUFDLENBQUM7QUFDTCxDQUFDLENBQUMsQ0FBQyJ9 \ No newline at end of file diff --git a/node_modules/uuid/dist/cjs-browser/test/validate.test.d.ts b/node_modules/uuid/dist/cjs-browser/test/validate.test.d.ts new file mode 100644 index 0000000000..cb0ff5c3b5 --- /dev/null +++ b/node_modules/uuid/dist/cjs-browser/test/validate.test.d.ts @@ -0,0 +1 @@ +export {}; diff --git a/node_modules/uuid/dist/cjs-browser/test/validate.test.js b/node_modules/uuid/dist/cjs-browser/test/validate.test.js new file mode 100644 index 0000000000..390efd19fe --- /dev/null +++ b/node_modules/uuid/dist/cjs-browser/test/validate.test.js @@ -0,0 +1,14 @@ +"use strict"; +Object.defineProperty(exports, "__esModule", { value: true }); +const assert = require("assert"); +const node_test_1 = require("node:test"); +const validate_js_1 = require("../validate.js"); +const test_constants_js_1 = require("./test_constants.js"); +(0, node_test_1.describe)('validate()', () => { + (0, node_test_1.default)('TESTS cases', () => { + for (const { value, expectedValidate } of test_constants_js_1.TESTS) { + assert.strictEqual((0, validate_js_1.default)(value), expectedValidate, `validate(${value}) should be ${expectedValidate}`); + } + }); +}); +//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoidmFsaWRhdGUudGVzdC5qcyIsInNvdXJjZVJvb3QiOiIiLCJzb3VyY2VzIjpbIi4uLy4uLy4uL3NyYy90ZXN0L3ZhbGlkYXRlLnRlc3QudHMiXSwibmFtZXMiOltdLCJtYXBwaW5ncyI6Ijs7QUFBQSxpQ0FBaUM7QUFDakMseUNBQTJDO0FBQzNDLGdEQUFzQztBQUN0QywyREFBNEM7QUFFNUMsSUFBQSxvQkFBUSxFQUFDLFlBQVksRUFBRSxHQUFHLEVBQUU7SUFDMUIsSUFBQSxtQkFBSSxFQUFDLGFBQWEsRUFBRSxHQUFHLEVBQUU7UUFDdkIsS0FBSyxNQUFNLEVBQUUsS0FBSyxFQUFFLGdCQUFnQixFQUFFLElBQUkseUJBQUssRUFBRSxDQUFDO1lBQ2hELE1BQU0sQ0FBQyxXQUFXLENBQ2hCLElBQUEscUJBQVEsRUFBQyxLQUFLLENBQUMsRUFDZixnQkFBZ0IsRUFDaEIsWUFBWSxLQUFLLGVBQWUsZ0JBQWdCLEVBQUUsQ0FDbkQsQ0FBQztRQUNKLENBQUM7SUFDSCxDQUFDLENBQUMsQ0FBQztBQUNMLENBQUMsQ0FBQyxDQUFDIn0= \ No newline at end of file diff --git a/node_modules/uuid/dist/cjs-browser/test/version.test.d.ts b/node_modules/uuid/dist/cjs-browser/test/version.test.d.ts new file mode 100644 index 0000000000..cb0ff5c3b5 --- /dev/null +++ b/node_modules/uuid/dist/cjs-browser/test/version.test.d.ts @@ -0,0 +1 @@ +export {}; diff --git a/node_modules/uuid/dist/cjs-browser/test/version.test.js b/node_modules/uuid/dist/cjs-browser/test/version.test.js new file mode 100644 index 0000000000..117b643166 --- /dev/null +++ b/node_modules/uuid/dist/cjs-browser/test/version.test.js @@ -0,0 +1,21 @@ +"use strict"; +Object.defineProperty(exports, "__esModule", { value: true }); +const assert = require("assert"); +const node_test_1 = require("node:test"); +const version_js_1 = require("../version.js"); +const test_constants_js_1 = require("./test_constants.js"); +(0, node_test_1.describe)('version()', () => { + (0, node_test_1.default)('TESTS cases', () => { + for (const { value, expectedValidate, expectedVersion } of test_constants_js_1.TESTS) { + try { + const actualVersion = (0, version_js_1.default)(value); + assert.ok(expectedValidate, `version(${value}) should throw`); + assert.strictEqual(actualVersion, expectedVersion); + } + catch { + assert.ok(!expectedValidate, `version(${value}) threw unexpectedly`); + } + } + }); +}); +//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoidmVyc2lvbi50ZXN0LmpzIiwic291cmNlUm9vdCI6IiIsInNvdXJjZXMiOlsiLi4vLi4vLi4vc3JjL3Rlc3QvdmVyc2lvbi50ZXN0LnRzIl0sIm5hbWVzIjpbXSwibWFwcGluZ3MiOiI7O0FBQUEsaUNBQWlDO0FBQ2pDLHlDQUEyQztBQUMzQyw4Q0FBb0M7QUFDcEMsMkRBQTRDO0FBRTVDLElBQUEsb0JBQVEsRUFBQyxXQUFXLEVBQUUsR0FBRyxFQUFFO0lBQ3pCLElBQUEsbUJBQUksRUFBQyxhQUFhLEVBQUUsR0FBRyxFQUFFO1FBQ3ZCLEtBQUssTUFBTSxFQUFFLEtBQUssRUFBRSxnQkFBZ0IsRUFBRSxlQUFlLEVBQUUsSUFBSSx5QkFBSyxFQUFFLENBQUM7WUFDakUsSUFBSSxDQUFDO2dCQUVILE1BQU0sYUFBYSxHQUFHLElBQUEsb0JBQU8sRUFBQyxLQUFLLENBQUMsQ0FBQztnQkFFckMsTUFBTSxDQUFDLEVBQUUsQ0FBQyxnQkFBZ0IsRUFBRSxXQUFXLEtBQUssZ0JBQWdCLENBQUMsQ0FBQztnQkFDOUQsTUFBTSxDQUFDLFdBQVcsQ0FBQyxhQUFhLEVBQUUsZUFBZSxDQUFDLENBQUM7WUFDckQsQ0FBQztZQUFDLE1BQU0sQ0FBQztnQkFDUCxNQUFNLENBQUMsRUFBRSxDQUFDLENBQUMsZ0JBQWdCLEVBQUUsV0FBVyxLQUFLLHNCQUFzQixDQUFDLENBQUM7WUFDdkUsQ0FBQztRQUNILENBQUM7SUFDSCxDQUFDLENBQUMsQ0FBQztBQUNMLENBQUMsQ0FBQyxDQUFDIn0= \ No newline at end of file diff --git a/node_modules/uuid/dist/cjs-browser/uuid-bin.d.ts b/node_modules/uuid/dist/cjs-browser/uuid-bin.d.ts new file mode 100644 index 0000000000..cb0ff5c3b5 --- /dev/null +++ b/node_modules/uuid/dist/cjs-browser/uuid-bin.d.ts @@ -0,0 +1 @@ +export {}; diff --git a/node_modules/uuid/dist/cjs-browser/uuid-bin.js b/node_modules/uuid/dist/cjs-browser/uuid-bin.js new file mode 100644 index 0000000000..0bea8ac9a8 --- /dev/null +++ b/node_modules/uuid/dist/cjs-browser/uuid-bin.js @@ -0,0 +1,73 @@ +"use strict"; +Object.defineProperty(exports, "__esModule", { value: true }); +const assert = require("assert"); +const v1_js_1 = require("./v1.js"); +const v3_js_1 = require("./v3.js"); +const v4_js_1 = require("./v4.js"); +const v5_js_1 = require("./v5.js"); +const v6_js_1 = require("./v6.js"); +const v7_js_1 = require("./v7.js"); +function usage() { + console.log('Usage:'); + console.log(' uuid'); + console.log(' uuid v1'); + console.log(' uuid v3 '); + console.log(' uuid v4'); + console.log(' uuid v5 '); + console.log(' uuid v6'); + console.log(' uuid v7'); + console.log(' uuid --help'); + console.log('\nNote: may be "URL" or "DNS" to use the corresponding UUIDs defined by RFC9562'); +} +const args = process.argv.slice(2); +if (args.indexOf('--help') >= 0) { + usage(); + process.exit(0); +} +const version = args.shift() || 'v4'; +switch (version) { + case 'v1': + console.log((0, v1_js_1.default)()); + break; + case 'v3': { + const name = args.shift(); + let namespace = args.shift(); + assert.ok(name != null, 'v3 name not specified'); + assert.ok(namespace != null, 'v3 namespace not specified'); + if (namespace === 'URL') { + namespace = v3_js_1.default.URL; + } + if (namespace === 'DNS') { + namespace = v3_js_1.default.DNS; + } + console.log((0, v3_js_1.default)(name, namespace)); + break; + } + case 'v4': + console.log((0, v4_js_1.default)()); + break; + case 'v5': { + const name = args.shift(); + let namespace = args.shift(); + assert.ok(name != null, 'v5 name not specified'); + assert.ok(namespace != null, 'v5 namespace not specified'); + if (namespace === 'URL') { + namespace = v5_js_1.default.URL; + } + if (namespace === 'DNS') { + namespace = v5_js_1.default.DNS; + } + console.log((0, v5_js_1.default)(name, namespace)); + break; + } + case 'v6': + console.log((0, v6_js_1.default)()); + break; + case 'v7': + console.log((0, v7_js_1.default)()); + break; + default: + usage(); + process.exit(1); +} +//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoidXVpZC1iaW4uanMiLCJzb3VyY2VSb290IjoiIiwic291cmNlcyI6WyIuLi8uLi9zcmMvdXVpZC1iaW4udHMiXSwibmFtZXMiOltdLCJtYXBwaW5ncyI6Ijs7QUFBQSxpQ0FBaUM7QUFFakMsbUNBQXlCO0FBQ3pCLG1DQUF5QjtBQUN6QixtQ0FBeUI7QUFDekIsbUNBQXlCO0FBQ3pCLG1DQUF5QjtBQUN6QixtQ0FBeUI7QUFFekIsU0FBUyxLQUFLO0lBQ1osT0FBTyxDQUFDLEdBQUcsQ0FBQyxRQUFRLENBQUMsQ0FBQztJQUN0QixPQUFPLENBQUMsR0FBRyxDQUFDLFFBQVEsQ0FBQyxDQUFDO0lBQ3RCLE9BQU8sQ0FBQyxHQUFHLENBQUMsV0FBVyxDQUFDLENBQUM7SUFDekIsT0FBTyxDQUFDLEdBQUcsQ0FBQyxtQ0FBbUMsQ0FBQyxDQUFDO0lBQ2pELE9BQU8sQ0FBQyxHQUFHLENBQUMsV0FBVyxDQUFDLENBQUM7SUFDekIsT0FBTyxDQUFDLEdBQUcsQ0FBQyxtQ0FBbUMsQ0FBQyxDQUFDO0lBQ2pELE9BQU8sQ0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DLENBQUMsQ0FBQztRQUNqQyxNQUFNO0lBQ1IsQ0FBQztJQUVELEtBQUssSUFBSTtRQUNQLE9BQU8sQ0FBQyxHQUFHLENBQUMsSUFBQSxlQUFFLEdBQUUsQ0FBQyxDQUFDO1FBQ2xCLE1BQU07SUFFUixLQUFLLElBQUk7UUFDUCxPQUFPLENBQUMsR0FBRyxDQUFDLElBQUEsZUFBRSxHQUFFLENBQUMsQ0FBQztRQUNsQixNQUFNO0lBRVI7UUFDRSxLQUFLLEVBQUUsQ0FBQztRQUNSLE9BQU8sQ0FBQyxJQUFJLENBQUMsQ0FBQyxDQUFDLENBQUM7QUFDcEIsQ0FBQyJ9 \ No newline at end of file diff --git a/node_modules/uuid/dist/cjs-browser/v1.d.ts b/node_modules/uuid/dist/cjs-browser/v1.d.ts new file mode 100644 index 0000000000..62f1b877e0 --- /dev/null +++ b/node_modules/uuid/dist/cjs-browser/v1.d.ts @@ -0,0 +1,11 @@ +import { Version1Options } from './_types.js'; +type V1State = { + node?: Uint8Array; + clockseq?: number; + msecs?: number; + nsecs?: number; +}; +declare function v1(options?: Version1Options, buf?: undefined, offset?: number): string; +declare function v1(options?: Version1Options, buf?: Uint8Array, offset?: number): Uint8Array; +export declare function updateV1State(state: V1State, now: number, rnds: Uint8Array): V1State; +export default v1; diff --git a/node_modules/uuid/dist/cjs-browser/v1.js b/node_modules/uuid/dist/cjs-browser/v1.js new file mode 100644 index 0000000000..34dcb0186b --- /dev/null +++ b/node_modules/uuid/dist/cjs-browser/v1.js @@ -0,0 +1,79 @@ +"use strict"; +Object.defineProperty(exports, "__esModule", { value: true }); +exports.updateV1State = updateV1State; +const rng_js_1 = require("./rng.js"); +const stringify_js_1 = require("./stringify.js"); +const _state = {}; +function v1(options, buf, offset) { + let bytes; + const isV6 = options?._v6 ?? false; + if (options) { + const optionsKeys = Object.keys(options); + if (optionsKeys.length === 1 && optionsKeys[0] === '_v6') { + options = undefined; + } + } + if (options) { + bytes = v1Bytes(options.random ?? options.rng?.() ?? (0, rng_js_1.default)(), options.msecs, options.nsecs, options.clockseq, options.node, buf, offset); + } + else { + const now = Date.now(); + const rnds = (0, rng_js_1.default)(); + updateV1State(_state, now, rnds); + bytes = v1Bytes(rnds, _state.msecs, _state.nsecs, isV6 ? undefined : _state.clockseq, isV6 ? undefined : _state.node, buf, offset); + } + return buf ? bytes : (0, stringify_js_1.unsafeStringify)(bytes); +} +function updateV1State(state, now, rnds) { + state.msecs ??= -Infinity; + state.nsecs ??= 0; + if (now === state.msecs) { + state.nsecs++; + if (state.nsecs >= 10000) { + state.node = undefined; + state.nsecs = 0; + } + } + else if (now > state.msecs) { + state.nsecs = 0; + } + else if (now < state.msecs) { + state.node = undefined; + } + if (!state.node) { + state.node = rnds.slice(10, 16); + state.node[0] |= 0x01; + state.clockseq = ((rnds[8] << 8) | rnds[9]) & 0x3fff; + } + state.msecs = now; + return state; +} +function v1Bytes(rnds, msecs, nsecs, clockseq, node, buf, offset = 0) { + if (!buf) { + buf = new Uint8Array(16); + offset = 0; + } + msecs ??= Date.now(); + nsecs ??= 0; + clockseq ??= ((rnds[8] << 8) | rnds[9]) & 0x3fff; + node ??= rnds.slice(10, 16); + msecs += 12219292800000; + const tl = ((msecs & 0xfffffff) * 10000 + nsecs) % 0x100000000; + buf[offset++] = (tl >>> 24) & 0xff; + buf[offset++] = (tl >>> 16) & 0xff; + buf[offset++] = (tl >>> 8) & 0xff; + buf[offset++] = tl & 0xff; + const tmh = ((msecs / 0x100000000) * 10000) & 0xfffffff; + buf[offset++] = (tmh >>> 8) & 0xff; + buf[offset++] = tmh & 0xff; + buf[offset++] = ((tmh >>> 24) & 0xf) | 0x10; + buf[offset++] = (tmh >>> 16) & 0xff; + buf[offset++] = (clockseq >>> 8) | 0x80; + buf[offset++] = clockseq & 0xff; + for (let n = 0; n < 6; ++n) { + buf[offset++] = node[n]; + } + return buf; +} +exports.default = v1; +//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoidj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UFFLENBQUMsR0FBRyxDQUFDLENBQUMsR0FBRyxLQUFLLEVBQUUsQ0FBQyxHQUFHLEdBQUcsQ0FBQyxHQUFHLElBQUksQ0FBQztJQUM1QyxHQUFHLENBQUMsTUFBTSxFQUFFLENBQUMsR0FBRyxDQUFDLEdBQUcsS0FBSyxFQUFFLENBQUMsR0FBRyxJQUFJLENBQUM7SUFHcEMsR0FBRyxDQUFDLE1BQU0sRUFBRSxDQUFDLEdBQUcsQ0FBQyxRQUFRLEtBQUssQ0FBQyxDQUFDLEdBQUcsSUFBSSxDQUFDO0lBR3hDLEdBQUcsQ0FBQyxNQUFNLEVBQUUsQ0FBQyxHQUFHLFFBQVEsR0FBRyxJQUFJLENBQUM7SUFHaEMsS0FBSyxJQUFJLENBQUMsR0FBRyxDQUFDLEVBQUUsQ0FBQyxHQUFHLENBQUMsRUFBRSxFQUFFLENBQUMsRUFBRSxDQUFDO1FBQzNCLEdBQUcsQ0FBQyxNQUFNLEVBQUUsQ0FBQyxHQUFHLElBQUksQ0FBQyxDQUFDLENBQUMsQ0FBQztJQUMxQixDQUFDO0lBRUQsT0FBTyxHQUFHLENBQUM7QUFDYixDQUFDO0FBRUQsa0JBQWUsRUFBRSxDQUFDIn0= \ No newline at end of file diff --git a/node_modules/uuid/dist/cjs-browser/v1ToV6.d.ts b/node_modules/uuid/dist/cjs-browser/v1ToV6.d.ts new file mode 100644 index 0000000000..38eaaf0c26 --- /dev/null +++ b/node_modules/uuid/dist/cjs-browser/v1ToV6.d.ts @@ -0,0 +1,2 @@ +export default function v1ToV6(uuid: string): string; +export default function v1ToV6(uuid: Uint8Array): Uint8Array; diff --git a/node_modules/uuid/dist/cjs-browser/v1ToV6.js b/node_modules/uuid/dist/cjs-browser/v1ToV6.js new file mode 100644 index 0000000000..c38ca64e61 --- /dev/null +++ b/node_modules/uuid/dist/cjs-browser/v1ToV6.js @@ -0,0 +1,14 @@ +"use strict"; +Object.defineProperty(exports, "__esModule", { value: true }); +exports.default = v1ToV6; +const parse_js_1 = require("./parse.js"); +const stringify_js_1 = require("./stringify.js"); +function v1ToV6(uuid) { + const v1Bytes = typeof uuid === 'string' ? (0, parse_js_1.default)(uuid) : uuid; + const v6Bytes = _v1ToV6(v1Bytes); + return typeof uuid === 'string' ? (0, stringify_js_1.unsafeStringify)(v6Bytes) : v6Bytes; +} +function _v1ToV6(v1Bytes) { + return Uint8Array.of(((v1Bytes[6] & 0x0f) << 4) | ((v1Bytes[7] >> 4) & 0x0f), ((v1Bytes[7] & 0x0f) << 4) | ((v1Bytes[4] & 0xf0) >> 4), ((v1Bytes[4] & 0x0f) << 4) | ((v1Bytes[5] & 0xf0) >> 4), ((v1Bytes[5] & 0x0f) << 4) | ((v1Bytes[0] & 0xf0) >> 4), ((v1Bytes[0] & 0x0f) << 4) | ((v1Bytes[1] & 0xf0) >> 4), ((v1Bytes[1] & 0x0f) << 4) | ((v1Bytes[2] & 0xf0) >> 4), 0x60 | (v1Bytes[2] & 0x0f), v1Bytes[3], v1Bytes[8], v1Bytes[9], v1Bytes[10], v1Bytes[11], v1Bytes[12], v1Bytes[13], v1Bytes[14], v1Bytes[15]); +} +//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoidjFUb1Y2LmpzIiwic291cmNlUm9vdCI6IiIsInNvdXJjZXMiOlsiLi4vLi4vc3JjL3YxVG9WNi50cyJdLCJuYW1lcyI6W10sIm1hcHBpbmdzIjoiOztBQWFBLHlCQU1DO0FBbEJELHlDQUErQjtBQUMvQixpREFBaUQ7QUFXakQsU0FBd0IsTUFBTSxDQUFDLElBQXlCO0lBQ3RELE1BQU0sT0FBTyxHQUFHLE9BQU8sSUFBSSxLQUFLLFFBQVEsQ0FBQyxDQUFDLENBQUMsSUFBQSxrQkFBSyxFQUFDLElBQUksQ0FBQyxDQUFDLENBQUMsQ0FBQyxJQUFJLENBQUM7SUFFOUQsTUFBTSxPQUFPLEdBQUcsT0FBTyxDQUFDLE9BQU8sQ0FBQyxD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xDQUFDLENBQUMsR0FBRyxJQUFJLENBQUMsSUFBSSxDQUFDLENBQUMsRUFDdkQsQ0FBQyxDQUFDLE9BQU8sQ0FBQyxDQUFDLENBQUMsR0FBRyxJQUFJLENBQUMsSUFBSSxDQUFDLENBQUMsR0FBRyxDQUFDLENBQUMsT0FBTyxDQUFDLENBQUMsQ0FBQyxHQUFHLElBQUksQ0FBQyxJQUFJLENBQUMsQ0FBQyxFQUV2RCxJQUFJLEdBQUcsQ0FBQyxPQUFPLENBQUMsQ0FBQyxDQUFDLEdBQUcsSUFBSSxDQUFDLEVBQzFCLE9BQU8sQ0FBQyxDQUFDLENBQUMsRUFFVixPQUFPLENBQUMsQ0FBQyxDQUFDLEVBQ1YsT0FBTyxDQUFDLENBQUMsQ0FBQyxFQUNWLE9BQU8sQ0FBQyxFQUFFLENBQUMsRUFDWCxPQUFPLENBQUMsRUFBRSxDQUFDLEVBQ1gsT0FBTyxDQUFDLEVBQUUsQ0FBQyxFQUNYLE9BQU8sQ0FBQyxFQUFFLENBQUMsRUFDWCxPQUFPLENBQUMsRUFBRSxDQUFDLEVBQ1gsT0FBTyxDQUFDLEVBQUUsQ0FBQyxDQUNaLENBQUM7QUFDSixDQUFDIn0= \ No newline at end of file diff --git a/node_modules/uuid/dist/cjs-browser/v3.d.ts b/node_modules/uuid/dist/cjs-browser/v3.d.ts new file mode 100644 index 0000000000..15690e49c6 --- /dev/null +++ b/node_modules/uuid/dist/cjs-browser/v3.d.ts @@ -0,0 +1,9 @@ +import { UUIDTypes } from './_types.js'; +export { DNS, URL } from './v35.js'; +declare function v3(value: string | Uint8Array, namespace: UUIDTypes, buf?: undefined, offset?: number): string; +declare function v3(value: string | Uint8Array, namespace: UUIDTypes, buf?: Uint8Array, offset?: number): Uint8Array; +declare namespace v3 { + var DNS: string; + var URL: string; +} +export default v3; diff --git a/node_modules/uuid/dist/cjs-browser/v3.js b/node_modules/uuid/dist/cjs-browser/v3.js new file mode 100644 index 0000000000..5c90523c7a --- /dev/null +++ b/node_modules/uuid/dist/cjs-browser/v3.js @@ -0,0 +1,15 @@ +"use strict"; +Object.defineProperty(exports, "__esModule", { value: true }); +exports.URL = exports.DNS = void 0; +const md5_js_1 = require("./md5.js"); +const v35_js_1 = require("./v35.js"); +var v35_js_2 = require("./v35.js"); +Object.defineProperty(exports, "DNS", { enumerable: true, get: function () { return v35_js_2.DNS; } }); +Object.defineProperty(exports, "URL", { enumerable: true, get: function () { return v35_js_2.URL; } }); +function v3(value, namespace, buf, offset) { + return (0, v35_js_1.default)(0x30, md5_js_1.default, value, namespace, buf, offset); +} +v3.DNS = v35_js_1.DNS; +v3.URL = v35_js_1.URL; +exports.default = v3; +//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoidjMuanMiLCJzb3VyY2VSb290IjoiIiwic291cmNlcyI6WyIuLi8uLi9zcmMvdjMudHMiXSwibmFtZXMiOltdLCJtYXBwaW5ncyI6Ijs7O0FBQ0EscUNBQTJCO0FBQzNCLHFDQUF5QztBQUV6QyxtQ0FBb0M7QUFBM0IsNkZBQUEsR0FBRyxPQUFBO0FBQUUsNkZBQUEsR0FBRyxPQUFBO0FBY2pCLFNBQVMsRUFBRSxDQUFDLEtBQTBCLEVBQUUsU0FBb0IsRUFBRSxHQUFnQixFQUFFLE1BQWU7SUFDN0YsT0FBTyxJQUFBLGdCQUFHLEVBQUMsSUFBSSxFQUFFLGdCQUFHLEVBQUUsS0FBSyxFQUFFLFNBQVMsRUFBRSxHQUFHLEVBQUUsTUFBTSxDQUFDLENBQUM7QUFDdkQsQ0FBQztBQUVELEVBQUUsQ0FBQyxHQUFHLEdBQUcsWUFBRyxDQUFDO0FBQ2IsRUFBRSxDQUFDLEdBQUcsR0FBRyxZQUFHLENBQUM7QUFFYixrQkFBZSxFQUFFLENBQUMifQ== \ No newline at end of file diff --git a/node_modules/uuid/dist/cjs-browser/v35.d.ts b/node_modules/uuid/dist/cjs-browser/v35.d.ts new file mode 100644 index 0000000000..be25996904 --- /dev/null +++ b/node_modules/uuid/dist/cjs-browser/v35.d.ts @@ -0,0 +1,7 @@ +import { UUIDTypes } from './_types.js'; +export declare function stringToBytes(str: string): Uint8Array; +export declare const DNS = "6ba7b810-9dad-11d1-80b4-00c04fd430c8"; +export declare const URL = "6ba7b811-9dad-11d1-80b4-00c04fd430c8"; +type HashFunction = (bytes: Uint8Array) => Uint8Array; +export default function v35(version: 0x30 | 0x50, hash: HashFunction, value: string | Uint8Array, namespace: UUIDTypes, buf?: Uint8Array, offset?: number): string | Uint8Array; +export {}; diff --git a/node_modules/uuid/dist/cjs-browser/v35.js b/node_modules/uuid/dist/cjs-browser/v35.js new file mode 100644 index 0000000000..6b4d34d412 --- /dev/null +++ b/node_modules/uuid/dist/cjs-browser/v35.js @@ -0,0 +1,42 @@ +"use strict"; +Object.defineProperty(exports, "__esModule", { value: true }); +exports.URL = exports.DNS = void 0; +exports.stringToBytes = stringToBytes; +exports.default = v35; +const parse_js_1 = require("./parse.js"); +const stringify_js_1 = require("./stringify.js"); +function stringToBytes(str) { + str = unescape(encodeURIComponent(str)); + const bytes = new Uint8Array(str.length); + for (let i = 0; i < str.length; ++i) { + bytes[i] = str.charCodeAt(i); + } + return bytes; +} +exports.DNS = '6ba7b810-9dad-11d1-80b4-00c04fd430c8'; +exports.URL = '6ba7b811-9dad-11d1-80b4-00c04fd430c8'; +function v35(version, hash, value, namespace, buf, offset) { + const valueBytes = typeof value === 'string' ? stringToBytes(value) : value; + const namespaceBytes = typeof namespace === 'string' ? (0, parse_js_1.default)(namespace) : namespace; + if (typeof namespace === 'string') { + namespace = (0, parse_js_1.default)(namespace); + } + if (namespace?.length !== 16) { + throw TypeError('Namespace must be array-like (16 iterable integer values, 0-255)'); + } + let bytes = new Uint8Array(16 + valueBytes.length); + bytes.set(namespaceBytes); + bytes.set(valueBytes, namespaceBytes.length); + bytes = hash(bytes); + bytes[6] = (bytes[6] & 0x0f) | version; + bytes[8] = (bytes[8] & 0x3f) | 0x80; + if (buf) { + offset = offset || 0; + for (let i = 0; i < 16; ++i) { + buf[offset + i] = bytes[i]; + } + return buf; + } + return (0, stringify_js_1.unsafeStringify)(bytes); +} +//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoidjM1LmpzIiwic291cmNlUm9vdCI6IiIsInNvdXJjZXMiOlsiLi4vLi4vc3JjL3YzNS50cyJdLCJuYW1lcyI6W10sIm1hcHBpbmdzIjoiOzs7QUFJQSxzQ0FXQztBQU9ELHNCQXlDQztBQTlERCx5Q0FBK0I7QUFDL0IsaURBQWlEO0FBRWpELFNBQWdCLGFBQWEsQ0FBQyxHQUFXO0lBRXZDLEdBQUcsR0FBRyxRQUFRLENBQUMsa0JBQWtCLENBQUMsR0FBRyxDQUFDLENBQUMsQ0FBQztJQUV4QyxNQUFNLEtBQUssR0FBRyxJQUFJLFVBQVUsQ0FBQyxHQUFHLENBQUMsTUFBTSxDQUFDLENBQUM7SUFFekMsS0FBSyxJQUFJLENBQUMsR0FBRyxDQUFDLEVBQUUsQ0FBQyxHQUFHLEdBQUcsQ0FBQyxNQUFNLEVBQUUsRUFBRSxDQUFDLEVBQUUsQ0FBQztRQUNwQyxLQUFLLENBQUMsQ0FBQyxDQUFDLEdBQUcsR0FBRyxDQUFDLFVBQVUsQ0FBQyxDQUFDLENBQUMsQ0FBQztJQUMvQixDQUFDO0lBRUQsT0FBTyxLQUFLLENBQUM7QUFDZixDQUFDO0FBRVksUUFBQSxHQUFHLEdBQUcsc0NBQXNDLENBQUM7QUFDN0MsUUFBQSxHQUFHLEdBQUcsc0NBQXNDLENBQUM7QUFJMUQsU0FBd0IsR0FBRyxDQUN6QixPQUFvQixFQUNwQixJQUFrQixFQUNsQixLQUEwQixFQUMxQixTQUFvQixFQUNwQixHQUFnQixFQUNoQixNQUFlO0lBRWYsTUFBTSxVQUFVLEdBQWUsT0FBTyxLQUFLLEtBQUssUUFBUSxDQUFDLENBQUMsQ0FBQyxhQUFhLENBQUMs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ssSUFBSSxDQUFDLEdBQUcsQ0FBQyxFQUFFLENBQUMsR0FBRyxFQUFFLEVBQUUsRUFBRSxDQUFDLEVBQUUsQ0FBQztZQUM1QixHQUFHLENBQUMsTUFBTSxHQUFHLENBQUMsQ0FBQyxHQUFHLEtBQUssQ0FBQyxDQUFDLENBQUMsQ0FBQztRQUM3QixDQUFDO1FBRUQsT0FBTyxHQUFHLENBQUM7SUFDYixDQUFDO0lBRUQsT0FBTyxJQUFBLDhCQUFlLEVBQUMsS0FBSyxDQUFDLENBQUM7QUFDaEMsQ0FBQyJ9 \ No newline at end of file diff --git a/node_modules/uuid/dist/cjs-browser/v4.d.ts b/node_modules/uuid/dist/cjs-browser/v4.d.ts new file mode 100644 index 0000000000..72a516c70f --- /dev/null +++ b/node_modules/uuid/dist/cjs-browser/v4.d.ts @@ -0,0 +1,4 @@ +import { Version4Options } from './_types.js'; +declare function v4(options?: Version4Options, buf?: undefined, offset?: number): string; +declare function v4(options?: Version4Options, buf?: Uint8Array, offset?: number): Uint8Array; +export default v4; diff --git a/node_modules/uuid/dist/cjs-browser/v4.js b/node_modules/uuid/dist/cjs-browser/v4.js new file mode 100644 index 0000000000..a3b1b6b34d --- /dev/null +++ b/node_modules/uuid/dist/cjs-browser/v4.js @@ -0,0 +1,24 @@ +"use strict"; +Object.defineProperty(exports, "__esModule", { value: true }); +const native_js_1 = require("./native.js"); +const rng_js_1 = require("./rng.js"); +const stringify_js_1 = require("./stringify.js"); +function v4(options, buf, offset) { + if (native_js_1.default.randomUUID && !buf && !options) { + return native_js_1.default.randomUUID(); + } + options = options || {}; + const rnds = options.random || (options.rng || rng_js_1.default)(); + rnds[6] = (rnds[6] & 0x0f) | 0x40; + rnds[8] = (rnds[8] & 0x3f) | 0x80; + if (buf) { + offset = offset || 0; + for (let i = 0; i < 16; ++i) { + buf[offset + i] = rnds[i]; + } + return buf; + } + return (0, stringify_js_1.unsafeStringify)(rnds); +} +exports.default = v4; +//# sourceMappingURL=data:application/json;base64,e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MsQ0FBQztRQUM1QixDQUFDO1FBRUQsT0FBTyxHQUFHLENBQUM7SUFDYixDQUFDO0lBRUQsT0FBTyxJQUFBLDhCQUFlLEVBQUMsSUFBSSxDQUFDLENBQUM7QUFDL0IsQ0FBQztBQUVELGtCQUFlLEVBQUUsQ0FBQyJ9 \ No newline at end of file diff --git a/node_modules/uuid/dist/cjs-browser/v5.d.ts b/node_modules/uuid/dist/cjs-browser/v5.d.ts new file mode 100644 index 0000000000..637ab331fd --- /dev/null +++ b/node_modules/uuid/dist/cjs-browser/v5.d.ts @@ -0,0 +1,9 @@ +import { UUIDTypes } from './_types.js'; +export { DNS, URL } from './v35.js'; +declare function v5(value: string | Uint8Array, namespace: UUIDTypes, buf?: undefined, offset?: number): string; +declare function v5(value: string | Uint8Array, namespace: UUIDTypes, buf?: Uint8Array, offset?: number): Uint8Array; +declare namespace v5 { + var DNS: string; + var URL: string; +} +export default v5; diff --git a/node_modules/uuid/dist/cjs-browser/v5.js b/node_modules/uuid/dist/cjs-browser/v5.js new file mode 100644 index 0000000000..8ed53a6954 --- /dev/null +++ b/node_modules/uuid/dist/cjs-browser/v5.js @@ -0,0 +1,15 @@ +"use strict"; +Object.defineProperty(exports, "__esModule", { value: true }); +exports.URL = exports.DNS = void 0; +const sha1_js_1 = require("./sha1.js"); +const v35_js_1 = require("./v35.js"); +var v35_js_2 = require("./v35.js"); +Object.defineProperty(exports, "DNS", { enumerable: true, get: function () { return v35_js_2.DNS; } }); +Object.defineProperty(exports, "URL", { enumerable: true, get: function () { return v35_js_2.URL; } }); +function v5(value, namespace, buf, offset) { + return (0, v35_js_1.default)(0x50, sha1_js_1.default, value, namespace, buf, offset); +} +v5.DNS = v35_js_1.DNS; +v5.URL = v35_js_1.URL; +exports.default = v5; +//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoidjUuanMiLCJzb3VyY2VSb290IjoiIiwic291cmNlcyI6WyIuLi8uLi9zcmMvdjUudHMiXSwibmFtZXMiOltdLCJtYXBwaW5ncyI6Ijs7O0FBQ0EsdUNBQTZCO0FBQzdCLHFDQUF5QztBQUV6QyxtQ0FBb0M7QUFBM0IsNkZBQUEsR0FBRyxPQUFBO0FBQUUsNkZBQUEsR0FBRyxPQUFBO0FBY2pCLFNBQVMsRUFBRSxDQUFDLEtBQTBCLEVBQUUsU0FBb0IsRUFBRSxHQUFnQixFQUFFLE1BQWU7SUFDN0YsT0FBTyxJQUFBLGdCQUFHLEVBQUMsSUFBSSxFQUFFLGlCQUFJLEVBQUUsS0FBSyxFQUFFLFNBQVMsRUFBRSxHQUFHLEVBQUUsTUFBTSxDQUFDLENBQUM7QUFDeEQsQ0FBQztBQUVELEVBQUUsQ0FBQyxHQUFHLEdBQUcsWUFBRyxDQUFDO0FBQ2IsRUFBRSxDQUFDLEdBQUcsR0FBRyxZQUFHLENBQUM7QUFFYixrQkFBZSxFQUFFLENBQUMifQ== \ No newline at end of file diff --git a/node_modules/uuid/dist/cjs-browser/v6.d.ts b/node_modules/uuid/dist/cjs-browser/v6.d.ts new file mode 100644 index 0000000000..7f4483555e --- /dev/null +++ b/node_modules/uuid/dist/cjs-browser/v6.d.ts @@ -0,0 +1,4 @@ +import { Version6Options } from './_types.js'; +declare function v6(options?: Version6Options, buf?: undefined, offset?: number): string; +declare function v6(options?: Version6Options, buf?: Uint8Array, offset?: number): Uint8Array; +export default v6; diff --git a/node_modules/uuid/dist/cjs-browser/v6.js b/node_modules/uuid/dist/cjs-browser/v6.js new file mode 100644 index 0000000000..3f286671bf --- /dev/null +++ b/node_modules/uuid/dist/cjs-browser/v6.js @@ -0,0 +1,20 @@ +"use strict"; +Object.defineProperty(exports, "__esModule", { value: true }); +const stringify_js_1 = require("./stringify.js"); +const v1_js_1 = require("./v1.js"); +const v1ToV6_js_1 = require("./v1ToV6.js"); +function v6(options, buf, offset) { + options ??= {}; + offset ??= 0; + let bytes = (0, v1_js_1.default)({ ...options, _v6: true }, new Uint8Array(16)); + bytes = (0, v1ToV6_js_1.default)(bytes); + if (buf) { + for (let i = 0; i < 16; i++) { + buf[offset + i] = bytes[i]; + } + return buf; + } + return (0, stringify_js_1.unsafeStringify)(bytes); +} +exports.default = v6; +//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoidjYuanMiLCJzb3VyY2VSb290IjoiIiwic291cmNlcyI6WyIuLi8uLi9zcmMvdjYudHMiXSwibmFtZXMiOltdLCJtYXBwaW5ncyI6Ijs7QUFDQSxpREFBaUQ7QUFDakQsbUNBQXlCO0FBQ3pCLDJDQUFpQztBQUlqQyxTQUFTLEVBQUUsQ0FBQyxPQUF5QixFQUFFLEdBQWdCLEVBQUUsTUFBZTtJQUN0RSxPQUFPLEtBQUssRUFBRSxDQUFDO0lBQ2YsTUFBTSxLQUFLLENBQUMsQ0FBQztJQUtiLElBQUksS0FBSyxHQUFHLElBQUEsZUFBRSxFQUFDLEVBQUUsR0FBRyxPQUFPLEVBQUUsR0FBRyxFQUFFLElBQUksRUFBRSxFQUFFLElBQUksVUFBVSxDQUFDLEVBQUUsQ0FBQyxDQUFDLENBQUM7SUFHOUQsS0FBSyxHQUFHLElBQUEsbUJBQU0sRUFBQyxLQUFLLENBQUMsQ0FBQztJQUd0QixJQUFJLEdBQUcsRUFBRSxDQUFDO1FBQ1IsS0FBSyxJQUFJLENBQUMsR0FBRyxDQUFDLEVBQUUsQ0FBQyxHQUFHLEVBQUUsRUFBRSxDQUFDLEVBQUUsRUFBRSxDQUFDO1lBQzVCLEdBQUcsQ0FBQyxNQUFNLEdBQUcsQ0FBQyxDQUFDLEdBQUcsS0FBSyxDQUFDLENBQUMsQ0FBQyxDQUFDO1FBQzdCLENBQUM7UUFDRCxPQUFPLEdBQUcsQ0FBQztJQUNiLENBQUM7SUFFRCxPQUFPLElBQUEsOEJBQWUsRUFBQyxLQUFLLENBQUMsQ0FBQztBQUNoQyxDQUFDO0FBRUQsa0JBQWUsRUFBRSxDQUFDIn0= \ No newline at end of file diff --git a/node_modules/uuid/dist/cjs-browser/v6ToV1.d.ts b/node_modules/uuid/dist/cjs-browser/v6ToV1.d.ts new file mode 100644 index 0000000000..3b3ffc2113 --- /dev/null +++ b/node_modules/uuid/dist/cjs-browser/v6ToV1.d.ts @@ -0,0 +1,2 @@ +export default function v6ToV1(uuid: string): string; +export default function v6ToV1(uuid: Uint8Array): Uint8Array; diff --git a/node_modules/uuid/dist/cjs-browser/v6ToV1.js b/node_modules/uuid/dist/cjs-browser/v6ToV1.js new file mode 100644 index 0000000000..9a7956d582 --- /dev/null +++ b/node_modules/uuid/dist/cjs-browser/v6ToV1.js @@ -0,0 +1,14 @@ +"use strict"; +Object.defineProperty(exports, "__esModule", { value: true }); +exports.default = v6ToV1; +const parse_js_1 = require("./parse.js"); +const stringify_js_1 = require("./stringify.js"); +function v6ToV1(uuid) { + const v6Bytes = typeof uuid === 'string' ? (0, parse_js_1.default)(uuid) : uuid; + const v1Bytes = _v6ToV1(v6Bytes); + return typeof uuid === 'string' ? (0, stringify_js_1.unsafeStringify)(v1Bytes) : v1Bytes; +} +function _v6ToV1(v6Bytes) { + return Uint8Array.of(((v6Bytes[3] & 0x0f) << 4) | ((v6Bytes[4] >> 4) & 0x0f), ((v6Bytes[4] & 0x0f) << 4) | ((v6Bytes[5] & 0xf0) >> 4), ((v6Bytes[5] & 0x0f) << 4) | (v6Bytes[6] & 0x0f), v6Bytes[7], ((v6Bytes[1] & 0x0f) << 4) | ((v6Bytes[2] & 0xf0) >> 4), ((v6Bytes[2] & 0x0f) << 4) | ((v6Bytes[3] & 0xf0) >> 4), 0x10 | ((v6Bytes[0] & 0xf0) >> 4), ((v6Bytes[0] & 0x0f) << 4) | ((v6Bytes[1] & 0xf0) >> 4), v6Bytes[8], v6Bytes[9], v6Bytes[10], v6Bytes[11], v6Bytes[12], v6Bytes[13], v6Bytes[14], v6Bytes[15]); +} +//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoidjZUb1YxLmpz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ser/v7.d.ts b/node_modules/uuid/dist/cjs-browser/v7.d.ts new file mode 100644 index 0000000000..a5ec1b7f55 --- /dev/null +++ b/node_modules/uuid/dist/cjs-browser/v7.d.ts @@ -0,0 +1,9 @@ +import { Version7Options } from './_types.js'; +type V7State = { + msecs?: number; + seq?: number; +}; +declare function v7(options?: Version7Options, buf?: undefined, offset?: number): string; +declare function v7(options?: Version7Options, buf?: Uint8Array, offset?: number): Uint8Array; +export declare function updateV7State(state: V7State, now: number, rnds: Uint8Array): V7State; +export default v7; diff --git a/node_modules/uuid/dist/cjs-browser/v7.js b/node_modules/uuid/dist/cjs-browser/v7.js new file mode 100644 index 0000000000..bb03c345c6 --- /dev/null +++ b/node_modules/uuid/dist/cjs-browser/v7.js @@ -0,0 +1,61 @@ +"use strict"; +Object.defineProperty(exports, "__esModule", { value: true }); +exports.updateV7State = updateV7State; +const rng_js_1 = require("./rng.js"); +const stringify_js_1 = require("./stringify.js"); +const _state = {}; +function v7(options, buf, offset) { + let bytes; + if (options) { + bytes = v7Bytes(options.random ?? options.rng?.() ?? (0, rng_js_1.default)(), options.msecs, options.seq, buf, offset); + } + else { + const now = Date.now(); + const rnds = (0, rng_js_1.default)(); + updateV7State(_state, now, rnds); + bytes = v7Bytes(rnds, _state.msecs, _state.seq, buf, offset); + } + return buf ? bytes : (0, stringify_js_1.unsafeStringify)(bytes); +} +function updateV7State(state, now, rnds) { + state.msecs ??= -Infinity; + state.seq ??= 0; + if (now > state.msecs) { + state.seq = (rnds[6] << 23) | (rnds[7] << 16) | (rnds[8] << 8) | rnds[9]; + state.msecs = now; + } + else { + state.seq = (state.seq + 1) | 0; + if (state.seq === 0) { + state.msecs++; + } + } + return state; +} +function v7Bytes(rnds, msecs, seq, buf, offset = 0) { + if (!buf) { + buf = new Uint8Array(16); + offset = 0; + } + msecs ??= Date.now(); + seq ??= ((rnds[6] * 0x7f) << 24) | (rnds[7] << 16) | (rnds[8] << 8) | rnds[9]; + buf[offset++] = (msecs / 0x10000000000) & 0xff; + buf[offset++] = (msecs / 0x100000000) & 0xff; + buf[offset++] = (msecs / 0x1000000) & 0xff; + buf[offset++] = (msecs / 0x10000) & 0xff; + buf[offset++] = (msecs / 0x100) & 0xff; + buf[offset++] = msecs & 0xff; + buf[offset++] = 0x70 | ((seq >>> 28) & 0x0f); + buf[offset++] = (seq >>> 20) & 0xff; + buf[offset++] = 0x80 | ((seq >>> 14) & 0x3f); + buf[offset++] = (seq >>> 6) & 0xff; + buf[offset++] = ((seq << 2) & 0xff) | (rnds[10] & 0x03); + buf[offset++] = rnds[11]; + buf[offset++] = rnds[12]; + buf[offset++] = rnds[13]; + buf[offset++] = rnds[14]; + buf[offset++] = rnds[15]; + return buf; +} +exports.default = v7; +//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoidjcuanMiLCJzb3VyY2VSb290IjoiIiwic291cmNlcyI6WyIuLi8uLi9zcmMvdjcudHMiXSwibmFtZXMiOltdLCJtYXBwaW5ncyI6Ijs7QUF3Q0Esc0NBcUJDO0FBNURELHFDQUEyQjtBQUMzQixpREFBaUQ7QUFPakQsTUFBTSxNQUFNLEdBQVksRUFBRSxDQUFDO0FBSTNCLFNBQVMsRUFBRSxDQUFDLE9BQXlCLEVBQUUsR0FBZ0IsRUFBRSxNQUFlO0lBQ3RFLElBQUksS0FBaUIsQ0FBQztJQUV0QixJQUFJLE9BQU8sRUFBRSxDQUFDO1FBRVosS0FBSyxHQUFHLE9BQU8sQ0FDYixPQUFPLENBQUMsTUFBTSxJQUFJLE9BQU8sQ0FBQyxHQUFHLEVBQUUsRUFBRSxJQUFJLElBQUEsZ0JBQUcsR0FBRSxFQUMxQyxPQUFPLENBQUMsS0FBSyxFQUNiLE9BQU8sQ0FBQyxHQUFHLEVBQ1gsR0FBRyxFQUNILE1BQU0sQ0FDUCxDQUFDO0lBQ0osQ0FBQztTQUFNLENBQUM7UUFFTixNQUFNLEdBQUcsR0FBRyxJQUFJLENBQUMsR0FBRyxF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BQUcsSUFBSSxDQUFDLEVBQUUsQ0FBQyxDQUFDO0lBQ3pCLEdBQUcsQ0FBQyxNQUFNLEVBQUUsQ0FBQyxHQUFHLElBQUksQ0FBQyxFQUFFLENBQUMsQ0FBQztJQUN6QixHQUFHLENBQUMsTUFBTSxFQUFFLENBQUMsR0FBRyxJQUFJLENBQUMsRUFBRSxDQUFDLENBQUM7SUFDekIsR0FBRyxDQUFDLE1BQU0sRUFBRSxDQUFDLEdBQUcsSUFBSSxDQUFDLEVBQUUsQ0FBQyxDQUFDO0lBRXpCLE9BQU8sR0FBRyxDQUFDO0FBQ2IsQ0FBQztBQUVELGtCQUFlLEVBQUUsQ0FBQyJ9 \ No newline at end of file diff --git a/node_modules/uuid/dist/cjs-browser/validate.d.ts b/node_modules/uuid/dist/cjs-browser/validate.d.ts new file mode 100644 index 0000000000..57da03d7d9 --- /dev/null +++ b/node_modules/uuid/dist/cjs-browser/validate.d.ts @@ -0,0 +1,2 @@ +declare function validate(uuid: unknown): boolean; +export default validate; diff --git a/node_modules/uuid/dist/cjs-browser/validate.js b/node_modules/uuid/dist/cjs-browser/validate.js new file mode 100644 index 0000000000..1e2937db73 --- /dev/null +++ b/node_modules/uuid/dist/cjs-browser/validate.js @@ -0,0 +1,8 @@ +"use strict"; +Object.defineProperty(exports, "__esModule", { value: true }); +const regex_js_1 = require("./regex.js"); +function validate(uuid) { + return typeof uuid === 'string' && regex_js_1.default.test(uuid); +} +exports.default = validate; +//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoidmFsaWRhdGUuanMiLCJzb3VyY2VSb290IjoiIiwic291cmNlcyI6WyIuLi8uLi9zcmMvdmFsaWRhdGUudHMiXSwibmFtZXMiOltdLCJtYXBwaW5ncyI6Ijs7QUFBQSx5Q0FBK0I7QUFFL0IsU0FBUyxRQUFRLENBQUMsSUFBYTtJQUM3QixPQUFPLE9BQU8sSUFBSSxLQUFLLFFBQVEsSUFBSSxrQkFBSyxDQUFDLElBQUksQ0FBQyxJQUFJLENBQUMsQ0FBQztBQUN0RCxDQUFDO0FBRUQsa0JBQWUsUUFBUSxDQUFDIn0= \ No newline at end of file diff --git a/node_modules/uuid/dist/cjs-browser/version.d.ts b/node_modules/uuid/dist/cjs-browser/version.d.ts new file mode 100644 index 0000000000..f1948dc805 --- /dev/null +++ b/node_modules/uuid/dist/cjs-browser/version.d.ts @@ -0,0 +1,2 @@ +declare function version(uuid: string): number; +export default version; diff --git a/node_modules/uuid/dist/cjs-browser/version.js b/node_modules/uuid/dist/cjs-browser/version.js new file mode 100644 index 0000000000..5a92648ca9 --- /dev/null +++ b/node_modules/uuid/dist/cjs-browser/version.js @@ -0,0 +1,11 @@ +"use strict"; +Object.defineProperty(exports, "__esModule", { value: true }); +const validate_js_1 = require("./validate.js"); +function version(uuid) { + if (!(0, validate_js_1.default)(uuid)) { + throw TypeError('Invalid UUID'); + } + return parseInt(uuid.slice(14, 15), 16); +} +exports.default = version; +//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoidmVyc2lvbi5qcyIsInNvdXJjZVJvb3QiOiIiLCJzb3VyY2VzIjpbIi4uLy4uL3NyYy92ZXJzaW9uLnRzIl0sIm5hbWVzIjpbXSwibWFwcGluZ3MiOiI7O0FBQUEsK0NBQXFDO0FBRXJDLFNBQVMsT0FBTyxDQUFDLElBQVk7SUFDM0IsSUFBSSxDQUFDLElBQUEscUJBQVEsRUFBQyxJQUFJLENBQUMsRUFBRSxDQUFDO1FBQ3BCLE1BQU0sU0FBUyxDQUFDLGNBQWMsQ0FBQyxDQUFDO0lBQ2xDLENBQUM7SUFFRCxPQUFPLFFBQVEsQ0FBQyxJQUFJLENBQUMsS0FBSyxDQUFDLEVBQUUsRUFBRSxFQUFFLENBQUMsRUFBRSxFQUFFLENBQUMsQ0FBQztBQUMxQyxDQUFDO0FBRUQsa0JBQWUsT0FBTyxDQUFDIn0= \ No newline at end of file diff --git a/node_modules/uuid/dist/cjs/_types.d.ts b/node_modules/uuid/dist/cjs/_types.d.ts new file mode 100644 index 0000000000..cdf09146a2 --- /dev/null +++ b/node_modules/uuid/dist/cjs/_types.d.ts @@ -0,0 +1,21 @@ +export type UUIDTypes = string | Uint8Array; +export type Version1Options = { + node?: Uint8Array; + clockseq?: number; + random?: Uint8Array; + rng?: () => Uint8Array; + msecs?: number; + nsecs?: number; + _v6?: boolean; +}; +export type Version4Options = { + random?: Uint8Array; + rng?: () => Uint8Array; +}; +export type Version6Options = Version1Options; +export type Version7Options = { + random?: Uint8Array; + msecs?: number; + seq?: number; + rng?: () => Uint8Array; +}; diff --git a/node_modules/uuid/dist/cjs/_types.js b/node_modules/uuid/dist/cjs/_types.js new file mode 100644 index 0000000000..55d32e322d --- /dev/null +++ b/node_modules/uuid/dist/cjs/_types.js @@ -0,0 +1,3 @@ +"use strict"; +Object.defineProperty(exports, "__esModule", { value: true }); +//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiX3R5cGVzLmpzIiwic291cmNlUm9vdCI6IiIsInNvdXJjZXMiOlsiLi4vLi4vc3JjL190eXBlcy50cyJdLCJuYW1lcyI6W10sIm1hcHBpbmdzIjoiIn0= \ No newline at end of file diff --git a/node_modules/uuid/dist/cjs/index.d.ts b/node_modules/uuid/dist/cjs/index.d.ts new file mode 100644 index 0000000000..3193e9a3b3 --- /dev/null +++ b/node_modules/uuid/dist/cjs/index.d.ts @@ -0,0 +1,14 @@ +export { default as MAX } from './max.js'; +export { default as NIL } from './nil.js'; +export { default as parse } from './parse.js'; +export { default as stringify } from './stringify.js'; +export { default as v1 } from './v1.js'; +export { default as v1ToV6 } from './v1ToV6.js'; +export { default as v3 } from './v3.js'; +export { default as v4 } from './v4.js'; +export { default as v5 } from './v5.js'; +export { default as v6 } from './v6.js'; +export { default as v6ToV1 } from './v6ToV1.js'; +export { default as v7 } from './v7.js'; +export { default as validate } from './validate.js'; +export { default as version } from './version.js'; diff --git a/node_modules/uuid/dist/cjs/index.js b/node_modules/uuid/dist/cjs/index.js new file mode 100644 index 0000000000..e0b54b4ba6 --- /dev/null +++ b/node_modules/uuid/dist/cjs/index.js @@ -0,0 +1,32 @@ +"use strict"; +Object.defineProperty(exports, "__esModule", { value: true }); +exports.version = exports.validate = exports.v7 = exports.v6ToV1 = exports.v6 = exports.v5 = exports.v4 = exports.v3 = exports.v1ToV6 = exports.v1 = exports.stringify = exports.parse = exports.NIL = exports.MAX = void 0; +var max_js_1 = require("./max.js"); +Object.defineProperty(exports, "MAX", { enumerable: true, get: function () { return max_js_1.default; } }); +var nil_js_1 = require("./nil.js"); +Object.defineProperty(exports, "NIL", { enumerable: true, get: function () { return nil_js_1.default; } }); +var parse_js_1 = require("./parse.js"); +Object.defineProperty(exports, "parse", { enumerable: true, get: function () { return parse_js_1.default; } }); +var stringify_js_1 = require("./stringify.js"); +Object.defineProperty(exports, "stringify", { enumerable: true, get: function () { return stringify_js_1.default; } }); +var v1_js_1 = require("./v1.js"); +Object.defineProperty(exports, "v1", { enumerable: true, get: function () { return v1_js_1.default; } }); +var v1ToV6_js_1 = require("./v1ToV6.js"); +Object.defineProperty(exports, "v1ToV6", { enumerable: true, get: function () { return v1ToV6_js_1.default; } }); +var v3_js_1 = require("./v3.js"); +Object.defineProperty(exports, "v3", { enumerable: true, get: function () { return v3_js_1.default; } }); +var v4_js_1 = require("./v4.js"); +Object.defineProperty(exports, "v4", { enumerable: true, get: function () { return v4_js_1.default; } }); +var v5_js_1 = require("./v5.js"); +Object.defineProperty(exports, "v5", { enumerable: true, get: function () { return v5_js_1.default; } }); +var v6_js_1 = require("./v6.js"); +Object.defineProperty(exports, "v6", { enumerable: true, get: function () { return v6_js_1.default; } }); +var v6ToV1_js_1 = require("./v6ToV1.js"); +Object.defineProperty(exports, "v6ToV1", { enumerable: true, get: function () { return v6ToV1_js_1.default; } }); +var v7_js_1 = require("./v7.js"); +Object.defineProperty(exports, "v7", { enumerable: true, get: function () { return v7_js_1.default; } }); +var validate_js_1 = require("./validate.js"); +Object.defineProperty(exports, "validate", { enumerable: true, get: function () { return validate_js_1.default; } }); +var version_js_1 = require("./version.js"); +Object.defineProperty(exports, "version", { enumerable: true, get: function () { return version_js_1.default; } }); +//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiaW5kZXguanMiLCJzb3VyY2VSb290IjoiIiwic291cmNlcyI6WyIuLi8uLi9zcmMvaW5kZXgudHMiXSwibmFtZXMiOltdLCJtYXBwaW5ncyI6Ijs7O0FBQUEsbUNBQTBDO0FBQWpDLDZGQUFBLE9BQU8sT0FBTztBQUN2QixtQ0FBMEM7QUFBakMsNkZBQUEsT0FBTyxPQUFPO0FBQ3ZCLHVDQUE4QztBQUFyQyxpR0FBQSxPQUFPLE9BQVM7QUFDekIsK0NBQXNEO0FBQTdDLHlHQUFBLE9BQU8sT0FBYTtBQUM3QixpQ0FBd0M7QUFBL0IsMkZBQUEsT0FBTyxPQUFNO0FBQ3RCLHlDQUFnRDtBQUF2QyxtR0FBQSxPQUFPLE9BQVU7QUFDMUIsaUNBQXdDO0FBQS9CLDJGQUFBLE9BQU8sT0FBTTtBQUN0QixpQ0FBd0M7QUFBL0IsMkZBQUEsT0FBTyxPQUFNO0FBQ3RCLGlDQUF3QztBQUEvQiwyRkFBQSxPQUFPLE9BQU07QUFDdEIsaUNBQXdDO0FBQS9CLDJGQUFBLE9BQU8sT0FBTTtBQUN0Qix5Q0FBZ0Q7QUFBdkMsbUdBQUEsT0FBTyxPQUFVO0FBQzFCLGlDQUF3QztBQUEvQiwyRkFBQSxPQUFPLE9BQU07QUFDdEIsNkNBQW9EO0FBQTNDLHVHQUFBLE9BQU8sT0FBWTtBQUM1QiwyQ0FBa0Q7QUFBekMscUdBQUEsT0FBTyxPQUFXIn0= \ No newline at end of file diff --git a/node_modules/uuid/dist/cjs/max.d.ts b/node_modules/uuid/dist/cjs/max.d.ts new file mode 100644 index 0000000000..7a1e972af4 --- /dev/null +++ b/node_modules/uuid/dist/cjs/max.d.ts @@ -0,0 +1,2 @@ +declare const _default: "ffffffff-ffff-ffff-ffff-ffffffffffff"; +export default _default; diff --git a/node_modules/uuid/dist/cjs/max.js b/node_modules/uuid/dist/cjs/max.js new file mode 100644 index 0000000000..e89decfba9 --- /dev/null +++ b/node_modules/uuid/dist/cjs/max.js @@ -0,0 +1,4 @@ +"use strict"; +Object.defineProperty(exports, "__esModule", { value: true }); +exports.default = 'ffffffff-ffff-ffff-ffff-ffffffffffff'; +//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoibWF4LmpzIiwic291cmNlUm9vdCI6IiIsInNvdXJjZXMiOlsiLi4vLi4vc3JjL21heC50cyJdLCJuYW1lcyI6W10sIm1hcHBpbmdzIjoiOztBQUFBLGtCQUFlLHNDQUFzQyxDQUFDIn0= \ No newline at end of file diff --git a/node_modules/uuid/dist/cjs/md5.d.ts b/node_modules/uuid/dist/cjs/md5.d.ts new file mode 100644 index 0000000000..26cb1a01f9 --- /dev/null +++ b/node_modules/uuid/dist/cjs/md5.d.ts @@ -0,0 +1,2 @@ +declare function md5(bytes: Uint8Array): Buffer; +export default md5; diff --git a/node_modules/uuid/dist/cjs/md5.js b/node_modules/uuid/dist/cjs/md5.js new file mode 100644 index 0000000000..dfb854dae5 --- /dev/null +++ b/node_modules/uuid/dist/cjs/md5.js @@ -0,0 +1,14 @@ +"use strict"; +Object.defineProperty(exports, "__esModule", { value: true }); +const crypto_1 = require("crypto"); +function md5(bytes) { + if (Array.isArray(bytes)) { + bytes = Buffer.from(bytes); + } + else if (typeof bytes === 'string') { + bytes = Buffer.from(bytes, 'utf8'); + } + return (0, crypto_1.createHash)('md5').update(bytes).digest(); +} +exports.default = md5; +//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoibWQ1LmpzIiwic291cmNlUm9vdCI6IiIsInNvdXJjZXMiOlsiLi4vLi4vc3JjL21kNS50cyJdLCJuYW1lcyI6W10sIm1hcHBpbmdzIjoiOztBQUFBLG1DQUFvQztBQUVwQyxTQUFTLEdBQUcsQ0FBQyxLQUFpQjtJQUM1QixJQUFJLEtBQUssQ0FBQyxPQUFPLENBQUMsS0FBSyxDQUFDLEVBQUUsQ0FBQztRQUN6QixLQUFLLEdBQUcsTUFBTSxDQUFDLElBQUksQ0FBQyxLQUFLLENBQUMsQ0FBQztJQUM3QixDQUFDO1NBQU0sSUFBSSxPQUFPLEtBQUssS0FBSyxRQUFRLEVBQUUsQ0FBQztRQUNyQyxLQUFLLEdBQUcsTUFBTSxDQUFDLElBQUksQ0FBQyxLQUFLLEVBQUUsTUFBTSxDQUFDLENBQUM7SUFDckMsQ0FBQztJQUVELE9BQU8sSUFBQSxtQkFBVSxFQUFDLEtBQUssQ0FBQyxDQUFDLE1BQU0sQ0FBQyxLQUFLLENBQUMsQ0FBQyxNQUFNLEVBQUUsQ0FBQztBQUNsRCxDQUFDO0FBRUQsa0JBQWUsR0FBRyxDQUFDIn0= \ No newline at end of file diff --git a/node_modules/uuid/dist/cjs/native.d.ts b/node_modules/uuid/dist/cjs/native.d.ts new file mode 100644 index 0000000000..171ce06c38 --- /dev/null +++ b/node_modules/uuid/dist/cjs/native.d.ts @@ -0,0 +1,5 @@ +import { randomUUID } from 'crypto'; +declare const _default: { + randomUUID: typeof randomUUID; +}; +export default _default; diff --git a/node_modules/uuid/dist/cjs/native.js b/node_modules/uuid/dist/cjs/native.js new file mode 100644 index 0000000000..062c2915fa --- /dev/null +++ b/node_modules/uuid/dist/cjs/native.js @@ -0,0 +1,5 @@ +"use strict"; +Object.defineProperty(exports, "__esModule", { value: true }); +const crypto_1 = require("crypto"); +exports.default = { randomUUID: crypto_1.randomUUID }; +//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoibmF0aXZlLmpzIiwic291cmNlUm9vdCI6IiIsInNvdXJjZXMiOlsiLi4vLi4vc3JjL25hdGl2ZS50cyJdLCJuYW1lcyI6W10sIm1hcHBpbmdzIjoiOztBQUFBLG1DQUFvQztBQUVwQyxrQkFBZSxFQUFFLFVBQVUsRUFBVixtQkFBVSxFQUFFLENBQUMifQ== \ No newline at end of file diff --git a/node_modules/uuid/dist/cjs/nil.d.ts b/node_modules/uuid/dist/cjs/nil.d.ts new file mode 100644 index 0000000000..b03bb98efd --- /dev/null +++ b/node_modules/uuid/dist/cjs/nil.d.ts @@ -0,0 +1,2 @@ +declare const _default: "00000000-0000-0000-0000-000000000000"; +export default _default; diff --git a/node_modules/uuid/dist/cjs/nil.js b/node_modules/uuid/dist/cjs/nil.js new file mode 100644 index 0000000000..1e0b53dcb1 --- /dev/null +++ b/node_modules/uuid/dist/cjs/nil.js @@ -0,0 +1,4 @@ +"use strict"; +Object.defineProperty(exports, "__esModule", { value: true }); +exports.default = '00000000-0000-0000-0000-000000000000'; +//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoibmlsLmpzIiwic291cmNlUm9vdCI6IiIsInNvdXJjZXMiOlsiLi4vLi4vc3JjL25pbC50cyJdLCJuYW1lcyI6W10sIm1hcHBpbmdzIjoiOztBQUFBLGtCQUFlLHNDQUFzQyxDQUFDIn0= \ No newline at end of file diff --git a/node_modules/uuid/dist/cjs/package.json b/node_modules/uuid/dist/cjs/package.json new file mode 100644 index 0000000000..5bbefffbab --- /dev/null +++ b/node_modules/uuid/dist/cjs/package.json @@ -0,0 +1,3 @@ +{ + "type": "commonjs" +} diff --git a/node_modules/uuid/dist/cjs/parse.d.ts b/node_modules/uuid/dist/cjs/parse.d.ts new file mode 100644 index 0000000000..a316fb1178 --- /dev/null +++ b/node_modules/uuid/dist/cjs/parse.d.ts @@ -0,0 +1,2 @@ +declare function parse(uuid: string): Uint8Array; +export default parse; diff --git a/node_modules/uuid/dist/cjs/parse.js b/node_modules/uuid/dist/cjs/parse.js new file mode 100644 index 0000000000..71ee399aed --- /dev/null +++ b/node_modules/uuid/dist/cjs/parse.js @@ -0,0 +1,12 @@ +"use strict"; +Object.defineProperty(exports, "__esModule", { value: true }); +const validate_js_1 = require("./validate.js"); +function parse(uuid) { + if (!(0, validate_js_1.default)(uuid)) { + throw TypeError('Invalid UUID'); + } + let v; + return Uint8Array.of((v = parseInt(uuid.slice(0, 8), 16)) >>> 24, (v >>> 16) & 0xff, (v >>> 8) & 0xff, v & 0xff, (v = parseInt(uuid.slice(9, 13), 16)) >>> 8, v & 0xff, (v = parseInt(uuid.slice(14, 18), 16)) >>> 8, v & 0xff, (v = parseInt(uuid.slice(19, 23), 16)) >>> 8, v & 0xff, ((v = parseInt(uuid.slice(24, 36), 16)) / 0x10000000000) & 0xff, (v / 0x100000000) & 0xff, (v >>> 24) & 0xff, (v >>> 16) & 0xff, (v >>> 8) & 0xff, v & 0xff); +} +exports.default = parse; +//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoicGFyc2UuanMiLCJzb3VyY2VSb290IjoiIiwic291cmNlcyI6WyIuLi8uLi9zcmMvcGFyc2UudHMiXSwibmFtZXMiOltdLCJtYXBwaW5ncyI6Ijs7QUFBQSwrQ0FBcUM7QUFFckMsU0FBUyxLQUFLLENBQUMsSUFBWTtJQUN6QixJQUFJLENBQUMsSUFBQSxxQkFBUSxFQUFDLElBQUksQ0FBQyxFQUFFLENBQUM7UUFDcEIsTUFBTSxTQUFTLENBQUMsY0FBYyxDQUFDLENBQUM7SUFDbEMsQ0FBQztJQUVELElBQUksQ0FBQyxDQUFDO0lBQ04sT0FBTyxVQUFVLENBQUMsRUFBRSxDQUNsQixDQUFDLENBQUMsR0FBRyxRQUFRLENBQUMsSUFBSSxDQUFDLEtBQUssQ0FBQyxDQUFDLEVBQUUsQ0FBQyxDQUFDLEVBQUUsRUFBRSxDQUFDLENBQUMsS0FBSyxFQUFFLEVBQzNDLENBQUMsQ0FBQyxLQUFLLEVBQUUsQ0FBQyxHQUFHLElBQUksRUFDakIsQ0FBQyxDQUFDLEtBQUssQ0FBQyxDQ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id/dist/cjs/regex.d.ts new file mode 100644 index 0000000000..d39fa3f6a8 --- /dev/null +++ b/node_modules/uuid/dist/cjs/regex.d.ts @@ -0,0 +1,2 @@ +declare const _default: RegExp; +export default _default; diff --git a/node_modules/uuid/dist/cjs/regex.js b/node_modules/uuid/dist/cjs/regex.js new file mode 100644 index 0000000000..6d2abe9e0c --- /dev/null +++ b/node_modules/uuid/dist/cjs/regex.js @@ -0,0 +1,4 @@ +"use strict"; +Object.defineProperty(exports, "__esModule", { value: true }); +exports.default = /^(?:[0-9a-f]{8}-[0-9a-f]{4}-[1-8][0-9a-f]{3}-[89ab][0-9a-f]{3}-[0-9a-f]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$/i; +//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoicmVnZXguanMiLCJzb3VyY2VSb290IjoiIiwic291cmNlcyI6WyIuLi8uLi9zcmMvcmVnZXgudHMiXSwibmFtZXMiOltdLCJtYXBwaW5ncyI6Ijs7QUFBQSxrQkFBZSwwSkFBMEosQ0FBQyJ9 \ No newline at end of file diff --git a/node_modules/uuid/dist/cjs/rng.d.ts b/node_modules/uuid/dist/cjs/rng.d.ts new file mode 100644 index 0000000000..73e60cf348 --- /dev/null +++ b/node_modules/uuid/dist/cjs/rng.d.ts @@ -0,0 +1 @@ +export default function rng(): Uint8Array; diff --git a/node_modules/uuid/dist/cjs/rng.js b/node_modules/uuid/dist/cjs/rng.js new file mode 100644 index 0000000000..caa24016e2 --- /dev/null +++ b/node_modules/uuid/dist/cjs/rng.js @@ -0,0 +1,14 @@ +"use strict"; +Object.defineProperty(exports, "__esModule", { value: true }); +exports.default = rng; +const crypto_1 = require("crypto"); +const rnds8Pool = new Uint8Array(256); +let poolPtr = rnds8Pool.length; +function rng() { + if (poolPtr > rnds8Pool.length - 16) { + (0, crypto_1.randomFillSync)(rnds8Pool); + poolPtr = 0; + } + return rnds8Pool.slice(poolPtr, (poolPtr += 16)); +} +//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoicm5nLmpzIiwic291cmNlUm9vdCI6IiIsInNvdXJjZXMiOlsiLi4vLi4vc3JjL3JuZy50cyJdLCJuYW1lcyI6W10sIm1hcHBpbmdzIjoiOztBQUtBLHNCQU1DO0FBWEQsbUNBQXdDO0FBRXhDLE1BQU0sU0FBUyxHQUFHLElBQUksVUFBVSxDQUFDLEdBQUcsQ0FBQyxDQUFDO0FBQ3RDLElBQUksT0FBTyxHQUFHLFNBQVMsQ0FBQyxNQUFNLENBQUM7QUFFL0IsU0FBd0IsR0FBRztJQUN6QixJQUFJLE9BQU8sR0FBRyxTQUFTLENBQUMsTUFBTSxHQUFHLEVBQUUsRUFBRSxDQUFDO1FBQ3BDLElBQUEsdUJBQWMsRUFBQyxTQUFTLENBQUMsQ0FBQztRQUMxQixPQUFPLEdBQUcsQ0FBQyxDQUFDO0lBQ2QsQ0FBQztJQUNELE9BQU8sU0FBUyxDQUFDLEtBQUssQ0FBQyxPQUFPLEVBQUUsQ0FBQyxPQUFPLElBQUksRUFBRSxDQUFDLENBQUMsQ0FBQztBQUNuRCxDQUFDIn0= \ No newline at end of file diff --git a/node_modules/uuid/dist/cjs/sha1.d.ts b/node_modules/uuid/dist/cjs/sha1.d.ts new file mode 100644 index 0000000000..c37bda8e9f --- /dev/null +++ b/node_modules/uuid/dist/cjs/sha1.d.ts @@ -0,0 +1,2 @@ +declare function sha1(bytes: Uint8Array): Buffer; +export default sha1; diff --git a/node_modules/uuid/dist/cjs/sha1.js b/node_modules/uuid/dist/cjs/sha1.js new file mode 100644 index 0000000000..e21a39c29c --- /dev/null +++ b/node_modules/uuid/dist/cjs/sha1.js @@ -0,0 +1,14 @@ +"use strict"; +Object.defineProperty(exports, "__esModule", { value: true }); +const crypto_1 = require("crypto"); +function sha1(bytes) { + if (Array.isArray(bytes)) { + bytes = Buffer.from(bytes); + } + else if (typeof bytes === 'string') { + bytes = Buffer.from(bytes, 'utf8'); + } + return (0, crypto_1.createHash)('sha1').update(bytes).digest(); +} +exports.default = sha1; +//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoic2hhMS5qcyIsInNvdXJjZVJvb3QiOiIiLCJzb3VyY2VzIjpbIi4uLy4uL3NyYy9zaGExLnRzIl0sIm5hbWVzIjpbXSwibWFwcGluZ3MiOiI7O0FBQUEsbUNBQW9DO0FBRXBDLFNBQVMsSUFBSSxDQUFDLEtBQWlCO0lBQzdCLElBQUksS0FBSyxDQUFDLE9BQU8sQ0FBQyxLQUFLLENBQUMsRUFBRSxDQUFDO1FBQ3pCLEtBQUssR0FBRyxNQUFNLENBQUMsSUFBSSxDQUFDLEtBQUssQ0FBQyxDQUFDO0lBQzdCLENBQUM7U0FBTSxJQUFJLE9BQU8sS0FBSyxLQUFLLFFBQVEsRUFBRSxDQUFDO1FBQ3JDLEtBQUssR0FBRyxNQUFNLENBQUMsSUFBSSxDQUFDLEtBQUssRUFBRSxNQUFNLENBQUMsQ0FBQztJQUNyQyxDQUFDO0lBRUQsT0FBTyxJQUFBLG1CQUFVLEVBQUMsTUFBTSxDQUFDLENBQUMsTUFBTSxDQUFDLEtBQUssQ0FBQyxDQUFDLE1BQU0sRUFBRSxDQUFDO0FBQ25ELENBQUM7QUFFRCxrQkFBZSxJQUFJLENBQUMifQ== \ No newline at end of file diff --git a/node_modules/uuid/dist/cjs/stringify.d.ts b/node_modules/uuid/dist/cjs/stringify.d.ts new file mode 100644 index 0000000000..16cb008833 --- /dev/null +++ b/node_modules/uuid/dist/cjs/stringify.d.ts @@ -0,0 +1,3 @@ +export declare function unsafeStringify(arr: Uint8Array, offset?: number): string; +declare function stringify(arr: Uint8Array, offset?: number): string; +export default stringify; diff --git a/node_modules/uuid/dist/cjs/stringify.js b/node_modules/uuid/dist/cjs/stringify.js new file mode 100644 index 0000000000..6e5bfeadae --- /dev/null +++ b/node_modules/uuid/dist/cjs/stringify.js @@ -0,0 +1,39 @@ +"use strict"; +Object.defineProperty(exports, "__esModule", { value: true }); +exports.unsafeStringify = unsafeStringify; +const validate_js_1 = require("./validate.js"); +const byteToHex = []; +for (let i = 0; i < 256; ++i) { + byteToHex.push((i + 0x100).toString(16).slice(1)); +} +function unsafeStringify(arr, offset = 0) { + return (byteToHex[arr[offset + 0]] + + byteToHex[arr[offset + 1]] + + byteToHex[arr[offset + 2]] + + byteToHex[arr[offset + 3]] + + '-' + + byteToHex[arr[offset + 4]] + + byteToHex[arr[offset + 5]] + + '-' + + byteToHex[arr[offset + 6]] + + byteToHex[arr[offset + 7]] + + '-' + + byteToHex[arr[offset + 8]] + + byteToHex[arr[offset + 9]] + + '-' + + byteToHex[arr[offset + 10]] + + byteToHex[arr[offset + 11]] + + byteToHex[arr[offset + 12]] + + byteToHex[arr[offset + 13]] + + byteToHex[arr[offset + 14]] + + byteToHex[arr[offset + 15]]).toLowerCase(); +} +function stringify(arr, offset = 0) { + const uuid = unsafeStringify(arr, offset); + if (!(0, validate_js_1.default)(uuid)) { + throw TypeError('Stringified UUID is invalid'); + } + return uuid; +} +exports.default = stringify; +//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoic3RyaW5naWZ5LmpzIiwic291cmNlUm9vdCI6IiIsInNvdXJjZXMiOlsiLi4vLi4vc3JjL3N0cmluZ2lmeS50cyJdLCJuYW1lcyI6W10sIm1hcHBpbmdzIjoiOztBQVlBLDBDQTRCQztBQXhDRCwrQ0FBcUM7QUFNckMsTUFBTSxTQUFTLEdBQWEsRUFBRSxDQUFDO0FBRS9CLEtBQUssSUFBSSxDQUFDLEdBQUcsQ0FBQyxFQUFFLENBQUMsR0FBRyxHQUFHLEVBQUUsRUFBRSxDQUFDLEVBQUUsQ0FBQztJQUM3QixTQUFTLENBQUMsSUFBSSxDQUFDLENBQUMsQ0FBQyxHQUFHLEtBQUssQ0FBQyxDQUFDLFFBQVEsQ0FBQyxFQUFFLENBQUMsQ0F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QUFHLENBQUMsTUFBTSxHQUFHLEVBQUUsQ0FBQyxDQUFDO1FBQzNCLFNBQVMsQ0FBQyxHQUFHLENBQUMsTUFBTSxHQUFHLEVBQUUsQ0FBQyxDQUFDO1FBQzNCLFNBQVMsQ0FBQyxHQUFHLENBQUMsTUFBTSxHQUFHLEVBQUUsQ0FBQyxDQUFDO1FBQzNCLFNBQVMsQ0FBQyxHQUFHLENBQUMsTUFBTSxHQUFHLEVBQUUsQ0FBQyxDQUFDLENBQzVCLENBQUMsV0FBVyxFQUFFLENBQUM7QUFDbEIsQ0FBQztBQUVELFNBQVMsU0FBUyxDQUFDLEdBQWUsRUFBRSxNQUFNLEdBQUcsQ0FBQztJQUM1QyxNQUFNLElBQUksR0FBRyxlQUFlLENBQUMsR0FBRyxFQUFFLE1BQU0sQ0FBQyxDQUFDO0lBTzFDLElBQUksQ0FBQyxJQUFBLHFCQUFRLEVBQUMsSUFBSSxDQUFDLEVBQUUsQ0FBQztRQUNwQixNQUFNLFNBQVMsQ0FBQyw2QkFBNkIsQ0FBQyxDQUFDO0lBQ2pELENBQUM7SUFFRCxPQUFPLElBQUksQ0FBQztBQUNkLENBQUM7QUFFRCxrQkFBZSxTQUFTLENBQUMifQ== \ No newline at end of file diff --git a/node_modules/uuid/dist/cjs/test/parse.test.d.ts b/node_modules/uuid/dist/cjs/test/parse.test.d.ts new file mode 100644 index 0000000000..cb0ff5c3b5 --- /dev/null +++ b/node_modules/uuid/dist/cjs/test/parse.test.d.ts @@ -0,0 +1 @@ +export {}; diff --git a/node_modules/uuid/dist/cjs/test/parse.test.js b/node_modules/uuid/dist/cjs/test/parse.test.js new file mode 100644 index 0000000000..25cb2bd826 --- /dev/null +++ b/node_modules/uuid/dist/cjs/test/parse.test.js @@ -0,0 +1,51 @@ +"use strict"; +Object.defineProperty(exports, "__esModule", { value: true }); +const assert = require("assert"); +const node_test_1 = require("node:test"); +const parse_js_1 = require("../parse.js"); +const stringify_js_1 = require("../stringify.js"); +const v4_js_1 = require("../v4.js"); +function splitmix32(a) { + return function () { + a |= 0; + a = (a + 0x9e3779b9) | 0; + let t = a ^ (a >>> 16); + t = Math.imul(t, 0x21f0aaad); + t = t ^ (t >>> 15); + t = Math.imul(t, 0x735a2d97); + return ((t = t ^ (t >>> 15)) >>> 0) / 4294967296; + }; +} +const rand = splitmix32(0x12345678); +function rng(bytes = new Uint8Array(16)) { + for (let i = 0; i < 16; i++) { + bytes[i] = rand() * 256; + } + return bytes; +} +(0, node_test_1.describe)('parse', () => { + (0, node_test_1.default)('String -> bytes parsing', () => { + assert.deepStrictEqual((0, parse_js_1.default)('0f5abcd1-c194-47f3-905b-2df7263a084b'), Uint8Array.from([ + 0x0f, 0x5a, 0xbc, 0xd1, 0xc1, 0x94, 0x47, 0xf3, 0x90, 0x5b, 0x2d, 0xf7, 0x26, 0x3a, 0x08, + 0x4b, + ])); + }); + (0, node_test_1.default)('String -> bytes -> string symmetry for assorted uuids', () => { + for (let i = 0; i < 1000; i++) { + const uuid = (0, v4_js_1.default)({ rng }); + assert.equal((0, stringify_js_1.default)((0, parse_js_1.default)(uuid)), uuid); + } + }); + (0, node_test_1.default)('Case neutrality', () => { + assert.deepStrictEqual((0, parse_js_1.default)('0f5abcd1-c194-47f3-905b-2df7263a084b'), (0, parse_js_1.default)('0f5abcd1-c194-47f3-905b-2df7263a084b'.toUpperCase())); + }); + (0, node_test_1.default)('Null UUID case', () => { + assert.deepStrictEqual((0, parse_js_1.default)('00000000-0000-0000-0000-000000000000'), Uint8Array.from(new Array(16).fill(0))); + }); + (0, node_test_1.default)('UUID validation', () => { + assert.throws(() => (0, parse_js_1.default)()); + assert.throws(() => (0, parse_js_1.default)('invalid uuid')); + assert.throws(() => (0, parse_js_1.default)('zyxwvuts-rqpo-nmlk-jihg-fedcba000000')); + }); +}); +//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoicGFyc2UudGVzdC5qcyIsInNvdXJjZVJvb3QiOiIiLCJzb3VyY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kFBSSxFQUFDLGlCQUFpQixFQUFFLEdBQUcsRUFBRTtRQUUzQixNQUFNLENBQUMsZUFBZSxDQUNwQixJQUFBLGtCQUFLLEVBQUMsc0NBQXNDLENBQUMsRUFDN0MsSUFBQSxrQkFBSyxFQUFDLHNDQUFzQyxDQUFDLFdBQVcsRUFBRSxDQUFDLENBQzVELENBQUM7SUFDSixDQUFDLENBQUMsQ0FBQztJQUVILElBQUEsbUJBQUksRUFBQyxnQkFBZ0IsRUFBRSxHQUFHLEVBQUU7UUFDMUIsTUFBTSxDQUFDLGVBQWUsQ0FDcEIsSUFBQSxrQkFBSyxFQUFDLHNDQUFzQyxDQUFDLEVBQzdDLFVBQVUsQ0FBQyxJQUFJLENBQUMsSUFBSSxLQUFLLENBQUMsRUFBRSxDQUFDLENBQUMsSUFBSSxDQUFDLENBQUMsQ0FBQyxDQUFDLENBQ3ZDLENBQUM7SUFDSixDQUFDLENBQUMsQ0FBQztJQUVILElBQUEsbUJBQUksRUFBQyxpQkFBaUIsRUFBRSxHQUFHLEVBQUU7UUFFM0IsTUFBTSxDQUFDLE1BQU0sQ0FBQyxHQUFHLEVBQUUsQ0FBQyxJQUFBLGtCQUFLLEdBQUUsQ0FBQyxDQUFDO1FBRTdCLE1BQU0sQ0FBQyxNQUFNLENBQUMsR0FBRyxFQUFFLENBQUMsSUFBQSxrQkFBSyxFQUFDLGNBQWMsQ0FBQyxDQUFDLENBQUM7UUFDM0MsTUFBTSxDQUFDLE1BQU0sQ0FBQyxHQUFHLEVBQUUsQ0FBQyxJQUFBLGtCQUFLLEVBQUMsc0NBQXNDLENBQUMsQ0FBQyxDQUFDO0lBQ3JFLENBQUMsQ0FBQyxDQUFDO0FBQ0wsQ0FBQyxDQUFDLENBQUMifQ== \ No newline at end of file diff --git a/node_modules/uuid/dist/cjs/test/rng.test.d.ts b/node_modules/uuid/dist/cjs/test/rng.test.d.ts new file mode 100644 index 0000000000..cb0ff5c3b5 --- /dev/null +++ b/node_modules/uuid/dist/cjs/test/rng.test.d.ts @@ -0,0 +1 @@ +export {}; diff --git a/node_modules/uuid/dist/cjs/test/rng.test.js b/node_modules/uuid/dist/cjs/test/rng.test.js new file mode 100644 index 0000000000..6d2d2bccfb --- /dev/null +++ b/node_modules/uuid/dist/cjs/test/rng.test.js @@ -0,0 +1,15 @@ +"use strict"; +Object.defineProperty(exports, "__esModule", { value: true }); +const assert = require("assert"); +const node_test_1 = require("node:test"); +const rng_js_1 = require("../rng.js"); +(0, node_test_1.describe)('rng', () => { + (0, node_test_1.default)('Node.js RNG', () => { + const bytes = (0, rng_js_1.default)(); + assert.equal(bytes.length, 16); + for (let i = 0; i < bytes.length; ++i) { + assert.equal(typeof bytes[i], 'number'); + } + }); +}); +//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoicm5nLnRlc3QuanMiLCJzb3VyY2VSb290IjoiIiwic291cmNlcyI6WyIuLi8uLi8uLi9zcmMvdGVzdC9ybmcudGVzdC50cyJdLCJuYW1lcyI6W10sIm1hcHBpbmdzIjoiOztBQUFBLGlDQUFpQztBQUNqQyx5Q0FBMkM7QUFDM0Msc0NBQTRCO0FBRTVCLElBQUEsb0JBQVEsRUFBQyxLQUFLLEVBQUUsR0FBRyxFQUFFO0lBQ25CLElBQUEsbUJBQUksRUFBQyxhQUFhLEVBQUUsR0FBRyxFQUFFO1FBQ3ZCLE1BQU0sS0FBSyxHQUFHLElBQUEsZ0JBQUcsR0FBRSxDQUFDO1FBQ3BCLE1BQU0sQ0FBQyxLQUFLLENBQUMsS0FBSyxDQUFDLE1BQU0sRUFBRSxFQUFFLENBQUMsQ0FBQztRQUUvQixLQUFLLElBQUksQ0FBQyxHQUFHLENBQUMsRUFBRSxDQUFDLEdBQUcsS0FBSyxDQUFDLE1BQU0sRUFBRSxFQUFFLENBQUMsRUFBRSxDQUFDO1lBQ3RDLE1BQU0sQ0FBQyxLQUFLLENBQUMsT0FBTyxLQUFLLENBQUMsQ0FBQyxDQUFDLEVBQUUsUUFBUSxDQUFDLENBQUM7UUFDMUMsQ0FBQztJQUNILENBQUMsQ0FBQyxDQUFDO0FBSUwsQ0FBQyxDQUFDLENBQUMifQ== \ No newline at end of file diff --git a/node_modules/uuid/dist/cjs/test/stringify.test.d.ts b/node_modules/uuid/dist/cjs/test/stringify.test.d.ts new file mode 100644 index 0000000000..cb0ff5c3b5 --- /dev/null +++ b/node_modules/uuid/dist/cjs/test/stringify.test.d.ts @@ -0,0 +1 @@ +export {}; diff --git a/node_modules/uuid/dist/cjs/test/stringify.test.js b/node_modules/uuid/dist/cjs/test/stringify.test.js new file mode 100644 index 0000000000..a6527e6055 --- /dev/null +++ b/node_modules/uuid/dist/cjs/test/stringify.test.js @@ -0,0 +1,24 @@ +"use strict"; +Object.defineProperty(exports, "__esModule", { value: true }); +const assert = require("assert"); +const node_test_1 = require("node:test"); +const stringify_js_1 = require("../stringify.js"); +const BYTES = Uint8Array.of(0x0f, 0x5a, 0xbc, 0xd1, 0xc1, 0x94, 0x47, 0xf3, 0x90, 0x5b, 0x2d, 0xf7, 0x26, 0x3a, 0x08, 0x4b); +(0, node_test_1.describe)('stringify', () => { + (0, node_test_1.default)('Stringify Array (unsafe)', () => { + assert.equal((0, stringify_js_1.unsafeStringify)(BYTES), '0f5abcd1-c194-47f3-905b-2df7263a084b'); + }); + (0, node_test_1.default)('Stringify w/ offset (unsafe)', () => { + const bytes = new Uint8Array(19).fill(0); + bytes.set(BYTES, 3); + assert.equal((0, stringify_js_1.unsafeStringify)(bytes, 3), '0f5abcd1-c194-47f3-905b-2df7263a084b'); + }); + (0, node_test_1.default)('Stringify Array (safe)', () => { + assert.equal((0, stringify_js_1.default)(BYTES), '0f5abcd1-c194-47f3-905b-2df7263a084b'); + }); + (0, node_test_1.default)('Throws on not enough values (safe)', () => { + const bytes = BYTES.slice(0, 15); + assert.throws(() => (0, stringify_js_1.default)(bytes)); + }); +}); +//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaW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7SUFDbEYsQ0FBQyxDQUFDLENBQUM7SUFFSCxJQUFBLG1CQUFJLEVBQUMsd0JBQXdCLEVBQUUsR0FBRyxFQUFFO1FBQ2xDLE1BQU0sQ0FBQyxLQUFLLENBQUMsSUFBQSxzQkFBUyxFQUFDLEtBQUssQ0FBQyxFQUFFLHNDQUFzQyxDQUFDLENBQUM7SUFDekUsQ0FBQyxDQUFDLENBQUM7SUFFSCxJQUFBLG1CQUFJLEVBQUMsb0NBQW9DLEVBQUUsR0FBRyxFQUFFO1FBQzlDLE1BQU0sS0FBSyxHQUFHLEtBQUssQ0FBQyxLQUFLLENBQUMsQ0FBQyxFQUFFLEVBQUUsQ0FBQyxDQUFDO1FBQ2pDLE1BQU0sQ0FBQyxNQUFNLENBQUMsR0FBRyxFQUFFLENBQUMsSUFBQSxzQkFBUyxFQUFDLEtBQUssQ0FBQyxDQUFDLENBQUM7SUFDeEMsQ0FBQyxDQUFDLENBQUM7QUFDTCxDQUFDLENBQUMsQ0FBQyJ9 \ No newline at end of file diff --git a/node_modules/uuid/dist/cjs/test/test_constants.d.ts b/node_modules/uuid/dist/cjs/test/test_constants.d.ts new file mode 100644 index 0000000000..959a679fd0 --- /dev/null +++ b/node_modules/uuid/dist/cjs/test/test_constants.d.ts @@ -0,0 +1,33 @@ +export declare const TESTS: ({ + value: string; + expectedValidate: boolean; + expectedVersion: number; +} | { + value: string; + expectedValidate: boolean; + expectedVersion?: undefined; +} | { + value: undefined; + expectedValidate: boolean; + expectedVersion?: undefined; +} | { + value: null; + expectedValidate: boolean; + expectedVersion?: undefined; +} | { + value: number; + expectedValidate: boolean; + expectedVersion?: undefined; +} | { + value: RegExp; + expectedValidate: boolean; + expectedVersion?: undefined; +} | { + value: Date; + expectedValidate: boolean; + expectedVersion?: undefined; +} | { + value: boolean; + expectedValidate: boolean; + expectedVersion?: undefined; +})[]; diff --git a/node_modules/uuid/dist/cjs/test/test_constants.js b/node_modules/uuid/dist/cjs/test/test_constants.js new file mode 100644 index 0000000000..dea75ce893 --- /dev/null +++ b/node_modules/uuid/dist/cjs/test/test_constants.js @@ -0,0 +1,92 @@ +"use strict"; +Object.defineProperty(exports, "__esModule", { value: true }); +exports.TESTS = void 0; +const max_js_1 = require("../max.js"); +const nil_js_1 = require("../nil.js"); +exports.TESTS = [ + { value: nil_js_1.default, expectedValidate: true, expectedVersion: 0 }, + { value: max_js_1.default, expectedValidate: true, expectedVersion: 15 }, + { value: '00000000-0000-1000-8000-000000000000', expectedValidate: true, expectedVersion: 1 }, + { value: 'ffffffff-ffff-1fff-8fff-ffffffffffff', expectedValidate: true, expectedVersion: 1 }, + { value: '00000000-0000-2000-8000-000000000000', expectedValidate: true, expectedVersion: 2 }, + { value: 'ffffffff-ffff-2fff-bfff-ffffffffffff', expectedValidate: true, expectedVersion: 2 }, + { value: '00000000-0000-3000-8000-000000000000', expectedValidate: true, expectedVersion: 3 }, + { value: 'ffffffff-ffff-3fff-bfff-ffffffffffff', expectedValidate: true, expectedVersion: 3 }, + { value: '00000000-0000-4000-8000-000000000000', expectedValidate: true, expectedVersion: 4 }, + { value: 'ffffffff-ffff-4fff-bfff-ffffffffffff', expectedValidate: true, expectedVersion: 4 }, + { value: '00000000-0000-5000-8000-000000000000', expectedValidate: true, expectedVersion: 5 }, + { value: 'ffffffff-ffff-5fff-bfff-ffffffffffff', expectedValidate: true, expectedVersion: 5 }, + { value: '00000000-0000-6000-8000-000000000000', expectedValidate: true, expectedVersion: 6 }, + { value: 'ffffffff-ffff-6fff-bfff-ffffffffffff', expectedValidate: true, expectedVersion: 6 }, + { value: '00000000-0000-7000-8000-000000000000', expectedValidate: true, expectedVersion: 7 }, + { value: 'ffffffff-ffff-7fff-bfff-ffffffffffff', expectedValidate: true, expectedVersion: 7 }, + { value: '00000000-0000-8000-8000-000000000000', expectedValidate: true, expectedVersion: 8 }, + { value: 'ffffffff-ffff-8fff-bfff-ffffffffffff', expectedValidate: true, expectedVersion: 8 }, + { value: '00000000-0000-9000-8000-000000000000', expectedValidate: false }, + { value: 'ffffffff-ffff-9fff-bfff-ffffffffffff', expectedValidate: false }, + { value: '00000000-0000-a000-8000-000000000000', expectedValidate: false }, + { value: 'ffffffff-ffff-afff-bfff-ffffffffffff', expectedValidate: false }, + { value: '00000000-0000-b000-8000-000000000000', expectedValidate: false }, + { value: 'ffffffff-ffff-bfff-bfff-ffffffffffff', expectedValidate: false }, + { value: '00000000-0000-c000-8000-000000000000', expectedValidate: false }, + { value: 'ffffffff-ffff-cfff-bfff-ffffffffffff', expectedValidate: false }, + { value: '00000000-0000-d000-8000-000000000000', expectedValidate: false }, + { value: 'ffffffff-ffff-dfff-bfff-ffffffffffff', expectedValidate: false }, + { value: '00000000-0000-e000-8000-000000000000', expectedValidate: false }, + { value: 'ffffffff-ffff-efff-bfff-ffffffffffff', expectedValidate: false }, + { value: 'd9428888-122b-11e1-b85c-61cd3cbb3210', expectedValidate: true, expectedVersion: 1 }, + { value: '000003e8-2363-21ef-b200-325096b39f47', expectedValidate: true, expectedVersion: 2 }, + { value: 'a981a0c2-68b1-35dc-bcfc-296e52ab01ec', expectedValidate: true, expectedVersion: 3 }, + { value: '109156be-c4fb-41ea-b1b4-efe1671c5836', expectedValidate: true, expectedVersion: 4 }, + { value: '90123e1c-7512-523e-bb28-76fab9f2f73d', expectedValidate: true, expectedVersion: 5 }, + { value: '1ef21d2f-1207-6660-8c4f-419efbd44d48', expectedValidate: true, expectedVersion: 6 }, + { value: '017f22e2-79b0-7cc3-98c4-dc0c0c07398f', expectedValidate: true, expectedVersion: 7 }, + { value: '0d8f23a0-697f-83ae-802e-48f3756dd581', expectedValidate: true, expectedVersion: 8 }, + { value: '00000000-0000-1000-0000-000000000000', expectedValidate: false }, + { value: '00000000-0000-1000-1000-000000000000', expectedValidate: false }, + { value: '00000000-0000-1000-2000-000000000000', expectedValidate: false }, + { value: '00000000-0000-1000-3000-000000000000', expectedValidate: false }, + { value: '00000000-0000-1000-4000-000000000000', expectedValidate: false }, + { value: '00000000-0000-1000-5000-000000000000', expectedValidate: false }, + { value: '00000000-0000-1000-6000-000000000000', expectedValidate: false }, + { value: '00000000-0000-1000-7000-000000000000', expectedValidate: false }, + { value: '00000000-0000-1000-8000-000000000000', expectedValidate: true, expectedVersion: 1 }, + { value: '00000000-0000-1000-9000-000000000000', expectedValidate: true, expectedVersion: 1 }, + { value: '00000000-0000-1000-a000-000000000000', expectedValidate: true, expectedVersion: 1 }, + { value: '00000000-0000-1000-b000-000000000000', expectedValidate: true, expectedVersion: 1 }, + { value: '00000000-0000-1000-c000-000000000000', expectedValidate: false }, + { value: '00000000-0000-1000-d000-000000000000', expectedValidate: false }, + { value: '00000000-0000-1000-e000-000000000000', expectedValidate: false }, + { value: '00000000-0000-1000-f000-000000000000', expectedValidate: false }, + { value: '00000000000000000000000000000000', expectedValidate: false }, + { value: '', expectedValidate: false }, + { value: 'invalid uuid string', expectedValidate: false }, + { + value: '=Y00a-f*vb*-c-d#-p00f\b-g0h-#i^-j*3&-L00k-\nl---00n-fg000-00p-00r+', + expectedValidate: false, + }, + { value: undefined, expectedValidate: false }, + { value: null, expectedValidate: false }, + { value: 123, expectedValidate: false }, + { value: /regex/, expectedValidate: false }, + { value: new Date(0), expectedValidate: false }, + { value: false, expectedValidate: false }, +]; +for (let charIndex = 0; charIndex < 36; charIndex++) { + if (charIndex === 8 || + charIndex === 13 || + charIndex === 14 || + charIndex === 18 || + charIndex === 23) { + continue; + } + const nilChars = nil_js_1.default.split(''); + const maxChars = max_js_1.default.split(''); + for (let i = 0; i < 4; i++) { + nilChars[charIndex] = (0x0 ^ (1 << i)).toString(16); + exports.TESTS.push({ value: nilChars.join(''), expectedValidate: false }); + maxChars[charIndex] = (0xf ^ (1 << i)).toString(16); + exports.TESTS.push({ value: maxChars.join(''), expectedValidate: false }); + } +} +//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoidGVzdF9jb25zdGFudHMuanMiLCJzb3VyY2VSb290IjoiIiwic291cmNlcyI6WyIu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1FBQzNCLFFBQVEsQ0FBQyxTQUFTLENBQUMsR0FBRyxDQUFDLEdBQUcsR0FBRyxDQUFDLENBQUMsSUFBSSxDQUFDLENBQUMsQ0FBQyxDQUFDLFFBQVEsQ0FBQyxFQUFFLENBQUMsQ0FBQztRQUVwRCxhQUFLLENBQUMsSUFBSSxDQUFDLEVBQUUsS0FBSyxFQUFFLFFBQVEsQ0FBQyxJQUFJLENBQUMsRUFBRSxDQUFDLEVBQUUsZ0JBQWdCLEVBQUUsS0FBSyxFQUFFLENBQUMsQ0FBQztRQUdsRSxRQUFRLENBQUMsU0FBUyxDQUFDLEdBQUcsQ0FBQyxHQUFHLEdBQUcsQ0FBQyxDQUFDLElBQUksQ0FBQyxDQUFDLENBQUMsQ0FBQyxRQUFRLENBQUMsRUFBRSxDQUFDLENBQUM7UUFDcEQsYUFBSyxDQUFDLElBQUksQ0FBQyxFQUFFLEtBQUssRUFBRSxRQUFRLENBQUMsSUFBSSxDQUFDLEVBQUUsQ0FBQyxFQUFFLGdCQUFnQixFQUFFLEtBQUssRUFBRSxDQUFDLENBQUM7SUFDcEUsQ0FBQztBQUNILENBQUMifQ== \ No newline at end of file diff --git a/node_modules/uuid/dist/cjs/test/v1.test.d.ts b/node_modules/uuid/dist/cjs/test/v1.test.d.ts new file mode 100644 index 0000000000..cb0ff5c3b5 --- /dev/null +++ b/node_modules/uuid/dist/cjs/test/v1.test.d.ts @@ -0,0 +1 @@ +export {}; diff --git a/node_modules/uuid/dist/cjs/test/v1.test.js b/node_modules/uuid/dist/cjs/test/v1.test.js new file mode 100644 index 0000000000..1ef5278a5a --- /dev/null +++ b/node_modules/uuid/dist/cjs/test/v1.test.js @@ -0,0 +1,128 @@ +"use strict"; +Object.defineProperty(exports, "__esModule", { value: true }); +const assert = require("assert"); +const node_test_1 = require("node:test"); +const parse_js_1 = require("../parse.js"); +const v1_js_1 = require("../v1.js"); +const TIME = 1321644961388; +const RFC_V1 = 'c232ab00-9414-11ec-b3c8-9f68deced846'; +const RFC_V1_BYTES = (0, parse_js_1.default)(RFC_V1); +const RFC_OPTIONS = { + msecs: 0x17f22e279b0, + nsecs: 0, + clockseq: 0x33c8, + node: Uint8Array.of(0x9f, 0x68, 0xde, 0xce, 0xd8, 0x46), +}; +const RFC_RANDOM = Uint8Array.of(0, 0, 0, 0, 0, 0, 0, 0, RFC_OPTIONS.clockseq >> 8, RFC_OPTIONS.clockseq & 0xff, ...RFC_OPTIONS.node); +function compareV1TimeField(a, b) { + a = a.split('-').slice(0, 3).reverse().join(''); + b = b.split('-').slice(0, 3).reverse().join(''); + return a < b ? -1 : a > b ? 1 : 0; +} +(0, node_test_1.describe)('v1', () => { + (0, node_test_1.default)('v1 sort order (default)', () => { + const ids = [(0, v1_js_1.default)(), (0, v1_js_1.default)(), (0, v1_js_1.default)(), (0, v1_js_1.default)(), (0, v1_js_1.default)()]; + const sorted = [...ids].sort(compareV1TimeField); + assert.deepEqual(ids, sorted); + }); + (0, node_test_1.default)('v1 sort order (time option)', () => { + const ids = [ + (0, v1_js_1.default)({ msecs: TIME - 10 * 3600 * 1000 }), + (0, v1_js_1.default)({ msecs: TIME - 1 }), + (0, v1_js_1.default)({ msecs: TIME }), + (0, v1_js_1.default)({ msecs: TIME + 1 }), + (0, v1_js_1.default)({ msecs: TIME + 28 * 24 * 3600 * 1000 }), + ]; + const sorted = [...ids].sort(compareV1TimeField); + assert.deepEqual(ids, sorted); + }); + (0, node_test_1.default)('v1(options)', () => { + assert.equal((0, v1_js_1.default)({ msecs: RFC_OPTIONS.msecs, random: RFC_RANDOM }), RFC_V1, 'minimal options'); + assert.equal((0, v1_js_1.default)(RFC_OPTIONS), RFC_V1, 'full options'); + }); + (0, node_test_1.default)('v1(options) equality', () => { + assert.notEqual((0, v1_js_1.default)({ msecs: TIME }), (0, v1_js_1.default)({ msecs: TIME }), 'UUIDs with minimal options differ'); + assert.equal((0, v1_js_1.default)(RFC_OPTIONS), (0, v1_js_1.default)(RFC_OPTIONS), 'UUIDs with full options are identical'); + }); + (0, node_test_1.default)('fills one UUID into a buffer as expected', () => { + const buffer = new Uint8Array(16); + const result = (0, v1_js_1.default)(RFC_OPTIONS, buffer); + assert.deepEqual(buffer, RFC_V1_BYTES); + assert.strictEqual(buffer, result); + }); + (0, node_test_1.default)('fills two UUIDs into a buffer as expected', () => { + const buffer = new Uint8Array(32); + (0, v1_js_1.default)(RFC_OPTIONS, buffer, 0); + (0, v1_js_1.default)(RFC_OPTIONS, buffer, 16); + const expectedBuf = new Uint8Array(32); + expectedBuf.set(RFC_V1_BYTES); + expectedBuf.set(RFC_V1_BYTES, 16); + assert.deepEqual(buffer, expectedBuf); + }); + (0, node_test_1.default)('v1() state transitions', () => { + const PRE_STATE = { + msecs: 10, + nsecs: 20, + clockseq: 0x1234, + node: Uint8Array.of(0x12, 0x34, 0x56, 0x78, 0x9a, 0xbc), + }; + const tests = [ + { + title: 'initial state', + state: {}, + now: 10, + expected: { + msecs: 10, + nsecs: 0, + clockseq: RFC_OPTIONS.clockseq, + node: RFC_OPTIONS.node, + }, + }, + { + title: 'same time interval', + state: { ...PRE_STATE }, + now: PRE_STATE.msecs, + expected: { + ...PRE_STATE, + nsecs: 21, + }, + }, + { + title: 'new time interval', + state: { ...PRE_STATE }, + now: PRE_STATE.msecs + 1, + expected: { + ...PRE_STATE, + msecs: PRE_STATE.msecs + 1, + nsecs: 0, + }, + }, + { + title: 'same time interval (nsecs overflow)', + state: { ...PRE_STATE, nsecs: 9999 }, + now: PRE_STATE.msecs, + expected: { + ...PRE_STATE, + nsecs: 0, + clockseq: RFC_OPTIONS.clockseq, + node: RFC_OPTIONS.node, + }, + }, + { + title: 'time regression', + state: { ...PRE_STATE }, + now: PRE_STATE.msecs - 1, + expected: { + ...PRE_STATE, + msecs: PRE_STATE.msecs - 1, + clockseq: RFC_OPTIONS.clockseq, + node: RFC_OPTIONS.node, + }, + }, + ]; + for (const { title, state, now, expected } of tests) { + assert.deepStrictEqual((0, v1_js_1.updateV1State)(state, now, RFC_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0FBVyxDQUFDLElBQUk7aUJBQ3ZCO2FBQ0Y7U0FDRixDQUFDO1FBQ0YsS0FBSyxNQUFNLEVBQUUsS0FBSyxFQUFFLEtBQUssRUFBRSxHQUFHLEVBQUUsUUFBUSxFQUFFLElBQUksS0FBSyxFQUFFLENBQUM7WUFDcEQsTUFBTSxDQUFDLGVBQWUsQ0FBQyxJQUFBLHFCQUFhLEVBQUMsS0FBSyxFQUFFLEdBQUcsRUFBRSxVQUFVLENBQUMsRUFBRSxRQUFRLEVBQUUsV0FBVyxLQUFLLEVBQUUsQ0FBQyxDQUFDO1FBQzlGLENBQUM7SUFDSCxDQUFDLENBQUMsQ0FBQztBQUNMLENBQUMsQ0FBQyxDQUFDIn0= \ No newline at end of file diff --git a/node_modules/uuid/dist/cjs/test/v35.test.d.ts b/node_modules/uuid/dist/cjs/test/v35.test.d.ts new file mode 100644 index 0000000000..cb0ff5c3b5 --- /dev/null +++ b/node_modules/uuid/dist/cjs/test/v35.test.d.ts @@ -0,0 +1 @@ +export {}; diff --git a/node_modules/uuid/dist/cjs/test/v35.test.js b/node_modules/uuid/dist/cjs/test/v35.test.js new file mode 100644 index 0000000000..7be19134db --- /dev/null +++ b/node_modules/uuid/dist/cjs/test/v35.test.js @@ -0,0 +1,144 @@ +"use strict"; +Object.defineProperty(exports, "__esModule", { value: true }); +const assert = require("assert"); +const node_test_1 = require("node:test"); +const md5_js_1 = require("../md5.js"); +const sha1_js_1 = require("../sha1.js"); +const v3_js_1 = require("../v3.js"); +const v35_js_1 = require("../v35.js"); +const v5_js_1 = require("../v5.js"); +(0, node_test_1.describe)('v35', () => { + const HASH_SAMPLES = [ + { + input: (0, v35_js_1.stringToBytes)(''), + sha1: 'da39a3ee5e6b4b0d3255bfef95601890afd80709', + md5: 'd41d8cd98f00b204e9800998ecf8427e', + }, + { + input: (0, v35_js_1.stringToBytes)('\t\b\f !"#$%&\'()*+,-./0123456789:;<=>?@ABCDEFGHIJKLMNOPQRSTUVWXYZ[\\]^_`abcdefghijklmnopqrstuvwxyz{|}~\u00A1\u00A2\u00A3\u00A4\u00A5\u00A6\u00A7\u00A8\u00A9\u00AA\u00AB\u00AC\u00AE\u00AF\u00B0\u00B1\u00B2\u00B3\u00B4\u00B5\u00B6\u00B7\u00B8\u00B9\u00BA\u00BB\u00BC\u00BD\u00BE\u00BF\u00C0\u00C1\u00C2\u00C3\u00C4\u00C5\u00C6\u00C7\u00C8\u00C9\u00CA\u00CB\u00CC\u00CD\u00CE\u00CF\u00D0\u00D1\u00D2\u00D3\u00D4\u00D5\u00D6\u00D7\u00D8\u00D9\u00DA\u00DB\u00DC\u00DD\u00DE\u00DF\u00E0\u00E1\u00E2\u00E3\u00E4\u00E5\u00E6\u00E7\u00E8\u00E9\u00EA\u00EB\u00EC\u00ED\u00EE\u00EF\u00F0\u00F1\u00F2\u00F3\u00F4\u00F5\u00F6\u00F7\u00F8\u00F9\u00FA\u00FB\u00FC\u00FD\u00FE\u00FF'), + sha1: 'ca4a426a3d536f14cfd79011e79e10d64de950a0', + md5: 'e8098ec21950f841731d28749129d3ee', + }, + { + input: (0, v35_js_1.stringToBytes)('\u00A5\u0104\u018F\u0256\u02B1o\u0315\u038E\u0409\u0500\u0531\u05E1\u05B6\u0920\u0903\u09A4\u0983\u0A20\u0A02\u0AA0\u0A83\u0B06\u0C05\u0C03\u1401\u16A0'), + sha1: 'f2753ebc390e5f637e333c2a4179644a93ae9f65', + md5: '231b309e277b6be8bb3d6c688b7f098b', + }, + ]; + function hashToHex(hash) { + const chars = new Array(hash.length); + for (let i = 0; i < hash.length; i++) { + chars[i] = hash[i].toString(16).padStart(2, '0'); + } + return chars.join(''); + } + HASH_SAMPLES.forEach(function (sample, i) { + (0, node_test_1.default)(`sha1(node) HASH_SAMPLES[${i}]`, () => { + assert.equal(hashToHex((0, sha1_js_1.default)(sample.input)), sample.sha1); + }); + }); + HASH_SAMPLES.forEach(function (sample, i) { + (0, node_test_1.default)(`md5(node) HASH_SAMPLES[${i}]`, () => { + assert.equal(hashToHex((0, md5_js_1.default)(sample.input)), sample.md5); + }); + }); + (0, node_test_1.default)('v3', () => { + assert.strictEqual((0, v3_js_1.default)('hello.example.com', v3_js_1.default.DNS), '9125a8dc-52ee-365b-a5aa-81b0b3681cf6'); + assert.strictEqual((0, v3_js_1.default)('http://example.com/hello', v3_js_1.default.URL), 'c6235813-3ba4-3801-ae84-e0a6ebb7d138'); + assert.strictEqual((0, v3_js_1.default)('hello', '0f5abcd1-c194-47f3-905b-2df7263a084b'), 'a981a0c2-68b1-35dc-bcfc-296e52ab01ec'); + }); + (0, node_test_1.default)('v3 namespace.toUpperCase', () => { + assert.strictEqual((0, v3_js_1.default)('hello.example.com', v3_js_1.default.DNS.toUpperCase()), '9125a8dc-52ee-365b-a5aa-81b0b3681cf6'); + assert.strictEqual((0, v3_js_1.default)('http://example.com/hello', v3_js_1.default.URL.toUpperCase()), 'c6235813-3ba4-3801-ae84-e0a6ebb7d138'); + assert.strictEqual((0, v3_js_1.default)('hello', '0f5abcd1-c194-47f3-905b-2df7263a084b'.toUpperCase()), 'a981a0c2-68b1-35dc-bcfc-296e52ab01ec'); + }); + (0, node_test_1.default)('v3 namespace string validation', () => { + assert.throws(() => { + (0, v3_js_1.default)('hello.example.com', 'zyxwvuts-rqpo-nmlk-jihg-fedcba000000'); + }); + assert.throws(() => { + (0, v3_js_1.default)('hello.example.com', 'invalid uuid value'); + }); + assert.ok((0, v3_js_1.default)('hello.example.com', '00000000-0000-0000-0000-000000000000')); + }); + (0, node_test_1.default)('v3 namespace buffer validation', () => { + assert.throws(() => { + (0, v3_js_1.default)('hello.example.com', new Uint8Array(15)); + }); + assert.throws(() => { + (0, v3_js_1.default)('hello.example.com', new Uint8Array(17)); + }); + assert.ok((0, v3_js_1.default)('hello.example.com', new Uint8Array(16).fill(0))); + }); + (0, node_test_1.default)('v3 fill buffer', () => { + let buf = new Uint8Array(16); + const expectedUuid = Uint8Array.of(0x91, 0x25, 0xa8, 0xdc, 0x52, 0xee, 0x36, 0x5b, 0xa5, 0xaa, 0x81, 0xb0, 0xb3, 0x68, 0x1c, 0xf6); + const result = (0, v3_js_1.default)('hello.example.com', v3_js_1.default.DNS, buf); + assert.deepEqual(buf, expectedUuid); + assert.strictEqual(result, buf); + buf = new Uint8Array(19).fill(0xaa); + const expectedBuf = new Uint8Array(19).fill(0xaa); + expectedBuf.set(expectedUuid, 3); + (0, v3_js_1.default)('hello.example.com', v3_js_1.default.DNS, buf, 3); + assert.deepEqual(buf, expectedBuf); + }); + (0, node_test_1.default)('v3 undefined/null', () => { + assert.throws(() => (0, v3_js_1.default)()); + assert.throws(() => (0, v3_js_1.default)('hello')); + assert.throws(() => (0, v3_js_1.default)('hello.example.com', undefined)); + assert.throws(() => (0, v3_js_1.default)('hello.example.com', null, new Uint8Array(16))); + }); + (0, node_test_1.default)('v5', () => { + assert.strictEqual((0, v5_js_1.default)('hello.example.com', v5_js_1.default.DNS), 'fdda765f-fc57-5604-a269-52a7df8164ec'); + assert.strictEqual((0, v5_js_1.default)('http://example.com/hello', v5_js_1.default.URL), '3bbcee75-cecc-5b56-8031-b6641c1ed1f1'); + assert.strictEqual((0, v5_js_1.default)('hello', '0f5abcd1-c194-47f3-905b-2df7263a084b'), '90123e1c-7512-523e-bb28-76fab9f2f73d'); + }); + (0, node_test_1.default)('v5 namespace.toUpperCase', () => { + assert.strictEqual((0, v5_js_1.default)('hello.example.com', v5_js_1.default.DNS.toUpperCase()), 'fdda765f-fc57-5604-a269-52a7df8164ec'); + assert.strictEqual((0, v5_js_1.default)('http://example.com/hello', v5_js_1.default.URL.toUpperCase()), '3bbcee75-cecc-5b56-8031-b6641c1ed1f1'); + assert.strictEqual((0, v5_js_1.default)('hello', '0f5abcd1-c194-47f3-905b-2df7263a084b'.toUpperCase()), '90123e1c-7512-523e-bb28-76fab9f2f73d'); + }); + (0, node_test_1.default)('v5 namespace string validation', () => { + assert.throws(() => { + (0, v5_js_1.default)('hello.example.com', 'zyxwvuts-rqpo-nmlk-jihg-fedcba000000'); + }); + assert.throws(() => { + (0, v5_js_1.default)('hello.example.com', 'invalid uuid value'); + }); + assert.ok((0, v5_js_1.default)('hello.example.com', '00000000-0000-0000-0000-000000000000')); + }); + (0, node_test_1.default)('v5 namespace buffer validation', () => { + assert.throws(() => { + (0, v5_js_1.default)('hello.example.com', new Uint8Array(15)); + }); + assert.throws(() => { + (0, v5_js_1.default)('hello.example.com', new Uint8Array(17)); + }); + assert.ok((0, v5_js_1.default)('hello.example.com', new Uint8Array(16).fill(0))); + }); + (0, node_test_1.default)('v5 fill buffer', () => { + let buf = new Uint8Array(16); + const expectedUuid = Uint8Array.of(0xfd, 0xda, 0x76, 0x5f, 0xfc, 0x57, 0x56, 0x04, 0xa2, 0x69, 0x52, 0xa7, 0xdf, 0x81, 0x64, 0xec); + const result = (0, v5_js_1.default)('hello.example.com', v5_js_1.default.DNS, buf); + assert.deepEqual(buf, expectedUuid); + assert.strictEqual(result, buf); + buf = new Uint8Array(19).fill(0xaa); + const expectedBuf = new Uint8Array(19).fill(0xaa); + expectedBuf.set(expectedUuid, 3); + (0, v5_js_1.default)('hello.example.com', v5_js_1.default.DNS, buf, 3); + assert.deepEqual(buf, expectedBuf); + }); + (0, node_test_1.default)('v5 undefined/null', () => { + assert.throws(() => (0, v5_js_1.default)()); + assert.throws(() => (0, v5_js_1.default)('hello')); + assert.throws(() => (0, v5_js_1.default)('hello.example.com', undefined)); + assert.throws(() => (0, v5_js_1.default)('hello.example.com', null, new Uint8Array(16))); + }); + (0, node_test_1.default)('v3/v5 constants', () => { + assert.strictEqual(v3_js_1.default.DNS, '6ba7b810-9dad-11d1-80b4-00c04fd430c8'); + assert.strictEqual(v3_js_1.default.URL, '6ba7b811-9dad-11d1-80b4-00c04fd430c8'); + assert.strictEqual(v5_js_1.default.DNS, '6ba7b810-9dad-11d1-80b4-00c04fd430c8'); + assert.strictEqual(v5_js_1.default.URL, '6ba7b811-9dad-11d1-80b4-00c04fd430c8'); + }); +}); +//# sourceMapping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BQUcsRUFBRSxzQ0FBc0MsQ0FBQyxDQUFDO1FBQ25FLE1BQU0sQ0FBQyxXQUFXLENBQUMsZUFBRSxDQUFDLEdBQUcsRUFBRSxzQ0FBc0MsQ0FBQyxDQUFDO1FBQ25FLE1BQU0sQ0FBQyxXQUFXLENBQUMsZUFBRSxDQUFDLEdBQUcsRUFBRSxzQ0FBc0MsQ0FBQyxDQUFDO1FBQ25FLE1BQU0sQ0FBQyxXQUFXLENBQUMsZUFBRSxDQUFDLEdBQUcsRUFBRSxzQ0FBc0MsQ0FBQyxDQUFDO0lBQ3JFLENBQUMsQ0FBQyxDQUFDO0FBQ0wsQ0FBQyxDQUFDLENBQUMifQ== \ No newline at end of file diff --git a/node_modules/uuid/dist/cjs/test/v4.test.d.ts b/node_modules/uuid/dist/cjs/test/v4.test.d.ts new file mode 100644 index 0000000000..cb0ff5c3b5 --- /dev/null +++ b/node_modules/uuid/dist/cjs/test/v4.test.d.ts @@ -0,0 +1 @@ +export {}; diff --git a/node_modules/uuid/dist/cjs/test/v4.test.js b/node_modules/uuid/dist/cjs/test/v4.test.js new file mode 100644 index 0000000000..1e3e328fcd --- /dev/null +++ b/node_modules/uuid/dist/cjs/test/v4.test.js @@ -0,0 +1,61 @@ +"use strict"; +Object.defineProperty(exports, "__esModule", { value: true }); +const assert = require("assert"); +const node_test_1 = require("node:test"); +const native_js_1 = require("../native.js"); +const v4_js_1 = require("../v4.js"); +const randomBytesFixture = Uint8Array.of(0x10, 0x91, 0x56, 0xbe, 0xc4, 0xfb, 0xc1, 0xea, 0x71, 0xb4, 0xef, 0xe1, 0x67, 0x1c, 0x58, 0x36); +const expectedBytes = Uint8Array.of(16, 145, 86, 190, 196, 251, 65, 234, 177, 180, 239, 225, 103, 28, 88, 54); +(0, node_test_1.describe)('v4', () => { + (0, node_test_1.default)('subsequent UUIDs are different', () => { + const id1 = (0, v4_js_1.default)(); + const id2 = (0, v4_js_1.default)(); + assert.ok(id1 !== id2); + }); + (0, node_test_1.default)('should uses native randomUUID() if no option is passed', async () => { + const mock = (await Promise.resolve().then(() => require('node:test'))).default.mock; + if (!mock) { + return; + } + const mockRandomUUID = mock.method(native_js_1.default, 'randomUUID'); + assert.equal(mockRandomUUID.mock.callCount(), 0); + (0, v4_js_1.default)(); + assert.equal(mockRandomUUID.mock.callCount(), 1); + mock.restoreAll(); + }); + (0, node_test_1.default)('should not use native randomUUID() if an option is passed', async () => { + const mock = (await Promise.resolve().then(() => require('node:test'))).default.mock; + if (!mock) { + return; + } + const mockRandomUUID = mock.method(native_js_1.default, 'randomUUID'); + assert.equal(mockRandomUUID.mock.callCount(), 0); + (0, v4_js_1.default)({}); + assert.equal(mockRandomUUID.mock.callCount(), 0); + mock.restoreAll(); + }); + (0, node_test_1.default)('explicit options.random produces expected result', () => { + const id = (0, v4_js_1.default)({ random: randomBytesFixture }); + assert.strictEqual(id, '109156be-c4fb-41ea-b1b4-efe1671c5836'); + }); + (0, node_test_1.default)('explicit options.rng produces expected result', () => { + const id = (0, v4_js_1.default)({ rng: () => randomBytesFixture }); + assert.strictEqual(id, '109156be-c4fb-41ea-b1b4-efe1671c5836'); + }); + (0, node_test_1.default)('fills one UUID into a buffer as expected', () => { + const buffer = new Uint8Array(16); + const result = (0, v4_js_1.default)({ random: randomBytesFixture }, buffer); + assert.deepEqual(buffer, expectedBytes); + assert.strictEqual(buffer, result); + }); + (0, node_test_1.default)('fills two UUIDs into a buffer as expected', () => { + const buffer = new Uint8Array(32); + (0, v4_js_1.default)({ random: randomBytesFixture }, buffer, 0); + (0, v4_js_1.default)({ random: randomBytesFixture }, buffer, 16); + const expectedBuf = new Uint8Array(32); + expectedBuf.set(expectedBytes); + expectedBuf.set(expectedBytes, 16); + assert.deepEqual(buffer, expectedBuf); + }); +}); +//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoidjQudGVzdC5qcyIsInNvdXJjZVJvb3QiOiIiLCJzb3VyY2VzIjpbIi4uLy4uLy4uL3NyYy90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xNQUFNLENBQUMsQ0FBQztJQUNyQyxDQUFDLENBQUMsQ0FBQztJQUVILElBQUEsbUJBQUksRUFBQywyQ0FBMkMsRUFBRSxHQUFHLEVBQUU7UUFDckQsTUFBTSxNQUFNLEdBQUcsSUFBSSxVQUFVLENBQUMsRUFBRSxDQUFDLENBQUM7UUFDbEMsSUFBQSxlQUFFLEVBQUMsRUFBRSxNQUFNLEVBQUUsa0JBQWtCLEVBQUUsRUFBRSxNQUFNLEVBQUUsQ0FBQyxDQUFDLENBQUM7UUFDOUMsSUFBQSxlQUFFLEVBQUMsRUFBRSxNQUFNLEVBQUUsa0JBQWtCLEVBQUUsRUFBRSxNQUFNLEVBQUUsRUFBRSxDQUFDLENBQUM7UUFFL0MsTUFBTSxXQUFXLEdBQUcsSUFBSSxVQUFVLENBQUMsRUFBRSxDQUFDLENBQUM7UUFDdkMsV0FBVyxDQUFDLEdBQUcsQ0FBQyxhQUFhLENBQUMsQ0FBQztRQUMvQixXQUFXLENBQUMsR0FBRyxDQUFDLGFBQWEsRUFBRSxFQUFFLENBQUMsQ0FBQztRQUVuQyxNQUFNLENBQUMsU0FBUyxDQUFDLE1BQU0sRUFBRSxXQUFXLENBQUMsQ0FBQztJQUN4QyxDQUFDLENBQUMsQ0FBQztBQUNMLENBQUMsQ0FBQyxDQUFDIn0= \ No newline at end of file diff --git a/node_modules/uuid/dist/cjs/test/v6.test.d.ts b/node_modules/uuid/dist/cjs/test/v6.test.d.ts new file mode 100644 index 0000000000..cb0ff5c3b5 --- /dev/null +++ b/node_modules/uuid/dist/cjs/test/v6.test.d.ts @@ -0,0 +1 @@ +export {}; diff --git a/node_modules/uuid/dist/cjs/test/v6.test.js b/node_modules/uuid/dist/cjs/test/v6.test.js new file mode 100644 index 0000000000..eeabcc8525 --- /dev/null +++ b/node_modules/uuid/dist/cjs/test/v6.test.js @@ -0,0 +1,57 @@ +"use strict"; +Object.defineProperty(exports, "__esModule", { value: true }); +const assert = require("assert"); +const node_test_1 = require("node:test"); +const v1ToV6_js_1 = require("../v1ToV6.js"); +const v6_js_1 = require("../v6.js"); +const v6ToV1_js_1 = require("../v6ToV1.js"); +(0, node_test_1.describe)('v6', () => { + const V1_ID = 'f1207660-21d2-11ef-8c4f-419efbd44d48'; + const V6_ID = '1ef21d2f-1207-6660-8c4f-419efbd44d48'; + const fullOptions = { + msecs: 0x133b891f705, + nsecs: 0x1538, + clockseq: 0x385c, + node: Uint8Array.of(0x61, 0xcd, 0x3c, 0xbb, 0x32, 0x10), + }; + const EXPECTED_BYTES = Uint8Array.of(0x1e, 0x11, 0x22, 0xbd, 0x94, 0x28, 0x68, 0x88, 0xb8, 0x5c, 0x61, 0xcd, 0x3c, 0xbb, 0x32, 0x10); + (0, node_test_1.default)('default behavior', () => { + const id = (0, v6_js_1.default)(); + assert.ok(/[0-9a-f]{8}-[0-9a-f]{4}-6[0-9a-f]{3}-[89ab][0-9a-f]{3}-[0-9a-f]{12}/.test(id), 'id is valid v6 UUID'); + }); + (0, node_test_1.default)('default behavior (binary type)', () => { + const buffer = new Uint8Array(16); + const result = (0, v6_js_1.default)(fullOptions, buffer); + assert.deepEqual(buffer, EXPECTED_BYTES); + assert.strictEqual(buffer, result); + }); + (0, node_test_1.default)('all options', () => { + const id = (0, v6_js_1.default)(fullOptions); + assert.equal(id, '1e1122bd-9428-6888-b85c-61cd3cbb3210'); + }); + (0, node_test_1.default)('sort by creation time', () => { + const ids = []; + for (let i = 0; i < 5; i++) { + ids.push((0, v6_js_1.default)({ msecs: i * 1000 })); + } + assert.deepEqual(ids, ids.slice().sort()); + }); + (0, node_test_1.default)('creating at array offset', () => { + const buffer = new Uint8Array(32); + (0, v6_js_1.default)(fullOptions, buffer, 0); + (0, v6_js_1.default)(fullOptions, buffer, 16); + const expectedBuf = new Uint8Array(32); + expectedBuf.set(EXPECTED_BYTES, 0); + expectedBuf.set(EXPECTED_BYTES, 16); + assert.deepEqual(buffer, expectedBuf); + }); + (0, node_test_1.default)('v1 -> v6 conversion', () => { + const id = (0, v1ToV6_js_1.default)(V1_ID); + assert.equal(id, V6_ID); + }); + (0, node_test_1.default)('v6 -> v1 conversion', () => { + const id = (0, v6ToV1_js_1.default)(V6_ID); + assert.equal(id, V1_ID); + }); +}); +//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoidjYudGVzdC5qcyIsInNvdXJjZVJvb3QiOiIiLCJzb3VyY2VzIjpbIi4uLy4uLy4uL3NyYy90ZXN0L3Y2LnRlc3QudHMiXSwibmFtZXMiOltdLCJtYXBwaW5ncyI6Ijs7QUFBQSxpQ0FBaUM7QUFDakMseUNBQTJDO0FBQzNDLDRDQUFrQztBQUNsQyxvQ0FBMEI7QUFDMUIsNENBQWtDO0FBRWxDLElBQUEsb0JBQVEsRUFBQyxJQUFJLEVBQUUsR0FBRyxFQUFFO0lBQ2xCLE1BQU0sS0FBSyxHQUFHLHNDQUFzQyxDQUFDO0lBQ3JELE1BQU0sS0FBSyxHQUFHLHNDQUFzQyxDQUFDO0lBRXJELE1BQU0sV0FBVyxHQUFHO1FBQ2xCLEtBQUssRUFBRSxhQUFhO1FBQ3BCLEtBQUssRUFBRSxNQUFNO1FBQ2IsUUFBUSxFQUFFLE1BQU07UUFDaEIsSUFBSSxFQUFFLFVBQVUsQ0FBQyxFQUFFLENBQUMsSUFBSSxFQUFFLElBQUksRUFBRSxJQUFJLEVBQUUsSUFBSSxFQUFFLElBQUksRUFBRSxJQUFJLENBQUM7S0FDeEQsQ0FBQztJQUVGLE1BQU0sY0FBYyxHQUFHLFVBQVUsQ0FBQyxFQUFFLENBQ2xDLElBQUksRUFDSixJQUFJLEVBQ0osSUFBSSxFQUNKLElBQUksRUFDSixJQUFJLEVBQ0osSUFBSSxFQUNKLElBQUksRUFDSixJQUFJLEVBQ0osSUFBSSxFQUNKLElBQUksRUFDSixJQUFJLEVBQ0osSUFBSSxFQUNKLElBQUksRUFDSixJQUFJLEVBQ0osSUFBSSxFQUNKLElBQUksQ0FDTCxD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FDLENBQUM7SUFDMUIsQ0FBQyxDQUFDLENBQUM7SUFFSCxJQUFBLG1CQUFJLEVBQUMscUJBQXFCLEVBQUUsR0FBRyxFQUFFO1FBQy9CLE1BQU0sRUFBRSxHQUFHLElBQUEsbUJBQU0sRUFBQyxLQUFLLENBQUMsQ0FBQztRQUN6QixNQUFNLENBQUMsS0FBSyxDQUFDLEVBQUUsRUFBRSxLQUFLLENBQUMsQ0FBQztJQUMxQixDQUFDLENBQUMsQ0FBQztBQUNMLENBQUMsQ0FBQyxDQUFDIn0= \ No newline at end of file diff --git a/node_modules/uuid/dist/cjs/test/v7.test.d.ts b/node_modules/uuid/dist/cjs/test/v7.test.d.ts new file mode 100644 index 0000000000..cb0ff5c3b5 --- /dev/null +++ b/node_modules/uuid/dist/cjs/test/v7.test.d.ts @@ -0,0 +1 @@ +export {}; diff --git a/node_modules/uuid/dist/cjs/test/v7.test.js b/node_modules/uuid/dist/cjs/test/v7.test.js new file mode 100644 index 0000000000..3da88aa86b --- /dev/null +++ b/node_modules/uuid/dist/cjs/test/v7.test.js @@ -0,0 +1,195 @@ +"use strict"; +Object.defineProperty(exports, "__esModule", { value: true }); +const assert = require("assert"); +const node_test_1 = require("node:test"); +const parse_js_1 = require("../parse.js"); +const stringify_js_1 = require("../stringify.js"); +const v7_js_1 = require("../v7.js"); +const RFC_V7 = '017f22e2-79b0-7cc3-98c4-dc0c0c07398f'; +const RFC_V7_BYTES = (0, parse_js_1.default)('017f22e2-79b0-7cc3-98c4-dc0c0c07398f'); +const RFC_MSECS = 0x17f22e279b0; +const RFC_SEQ = (0x0cc3 << 20) | (0x98c4dc >> 2); +const RFC_RANDOM = Uint8Array.of(0x10, 0x91, 0x56, 0xbe, 0xc4, 0xfb, 0x0c, 0xc3, 0x18, 0xc4, 0x6c, 0x0c, 0x0c, 0x07, 0x39, 0x8f); +(0, node_test_1.describe)('v7', () => { + (0, node_test_1.default)('subsequent UUIDs are different', () => { + const id1 = (0, v7_js_1.default)(); + const id2 = (0, v7_js_1.default)(); + assert.ok(id1 !== id2); + }); + (0, node_test_1.default)('explicit options.random and options.msecs produces expected result', () => { + const id = (0, v7_js_1.default)({ + random: RFC_RANDOM, + msecs: RFC_MSECS, + seq: RFC_SEQ, + }); + assert.strictEqual(id, RFC_V7); + }); + (0, node_test_1.default)('explicit options.rng produces expected result', () => { + const id = (0, v7_js_1.default)({ + rng: () => RFC_RANDOM, + msecs: RFC_MSECS, + seq: RFC_SEQ, + }); + assert.strictEqual(id, RFC_V7); + }); + (0, node_test_1.default)('explicit options.msecs produces expected result', () => { + const id = (0, v7_js_1.default)({ + msecs: RFC_MSECS, + }); + assert.strictEqual(id.indexOf('017f22e2'), 0); + }); + (0, node_test_1.default)('fills one UUID into a buffer as expected', () => { + const buffer = new Uint8Array(16); + const result = (0, v7_js_1.default)({ + random: RFC_RANDOM, + msecs: RFC_MSECS, + seq: RFC_SEQ, + }, buffer); + (0, stringify_js_1.default)(buffer); + assert.deepEqual(buffer, RFC_V7_BYTES); + assert.strictEqual(buffer, result); + }); + (0, node_test_1.default)('fills two UUIDs into a buffer as expected', () => { + const buffer = new Uint8Array(32); + (0, v7_js_1.default)({ + random: RFC_RANDOM, + msecs: RFC_MSECS, + seq: RFC_SEQ, + }, buffer, 0); + (0, v7_js_1.default)({ + random: RFC_RANDOM, + msecs: RFC_MSECS, + seq: RFC_SEQ, + }, buffer, 16); + const expected = new Uint8Array(32); + expected.set(RFC_V7_BYTES); + expected.set(RFC_V7_BYTES, 16); + assert.deepEqual(buffer, expected); + }); + (0, node_test_1.default)('lexicographical sorting is preserved', () => { + let id; + let prior; + let msecs = RFC_MSECS; + for (let i = 0; i < 20000; ++i) { + if (i % 1500 === 0) { + msecs += 1; + } + id = (0, v7_js_1.default)({ msecs, seq: i }); + if (prior !== undefined) { + assert.ok(prior < id, `${prior} < ${id}`); + } + prior = id; + } + }); + (0, node_test_1.default)('can supply seq', () => { + let seq = 0x12345; + let uuid = (0, v7_js_1.default)({ + msecs: RFC_MSECS, + seq, + }); + assert.strictEqual(uuid.substr(0, 25), '017f22e2-79b0-7000-848d-1'); + seq = 0x6fffffff; + uuid = (0, v7_js_1.default)({ + msecs: RFC_MSECS, + seq, + }); + assert.strictEqual(uuid.substring(0, 25), '017f22e2-79b0-76ff-bfff-f'); + }); + (0, node_test_1.default)('internal seq is reset upon timestamp change', () => { + (0, v7_js_1.default)({ + msecs: RFC_MSECS, + seq: 0x6fffffff, + }); + const uuid = (0, v7_js_1.default)({ + msecs: RFC_MSECS + 1, + }); + assert.ok(uuid.indexOf('fff') !== 15); + }); + (0, node_test_1.default)('v7() state transitions', () => { + const tests = [ + { + title: 'new time interval', + state: { msecs: 1, seq: 123 }, + now: 2, + expected: { + msecs: 2, + seq: 0x6c318c4, + }, + }, + { + title: 'same time interval', + state: { msecs: 1, seq: 123 }, + now: 1, + expected: { + msecs: 1, + seq: 124, + }, + }, + { + title: 'same time interval (sequence rollover)', + state: { msecs: 1, seq: 0xffffffff }, + now: 1, + expected: { + msecs: 2, + seq: 0, + }, + }, + { + title: 'time regression', + state: { msecs: 2, seq: 123 }, + now: 1, + expected: { + msecs: 2, + seq: 124, + }, + }, + { + title: 'time regression (sequence rollover)', + state: { msecs: 2, seq: 0xffffffff }, + now: 1, + expected: { + msecs: 3, + seq: 0, + }, + }, + ]; + for (const { title, state, now, expected } of tests) { + assert.deepStrictEqual((0, v7_js_1.updateV7State)(state, now, RFC_RANDOM), expected, `Failed: ${title}`); + } + }); + (0, node_test_1.default)('flipping bits changes the result', () => { + const asBigInt = (buf) => buf.reduce((acc, v) => (acc << 8n) | BigInt(v), 0n); + const asNumber = (bits, data) => Number(BigInt.asUintN(bits, data)); + const flip = (data, n) => data ^ (1n << BigInt(127 - n)); + const optionsFrom = (data) => { + const ms = asNumber(48, data >> 80n); + const hi = asNumber(12, data >> 64n); + const lo = asNumber(20, data >> 42n); + const r = BigInt.asUintN(42, data); + return { + msecs: ms, + seq: (hi << 20) | lo, + random: Uint8Array.from([ + ...Array(10).fill(0), + ...Array(6) + .fill(0) + .map((_, i) => asNumber(8, r >> (BigInt(i) * 8n))) + .reverse(), + ]), + }; + }; + const buf = new Uint8Array(16); + const data = asBigInt((0, v7_js_1.default)({}, buf)); + const id = (0, stringify_js_1.default)(buf); + const reserved = [48, 49, 50, 51, 64, 65]; + for (let i = 0; i < 128; ++i) { + if (reserved.includes(i)) { + continue; + } + const flipped = flip(data, i); + assert.strictEqual(asBigInt((0, v7_js_1.default)(optionsFrom(flipped), buf)).toString(16), flipped.toString(16), `Unequal uuids at bit ${i}`); + assert.notStrictEqual((0, stringify_js_1.default)(buf), id); + } + }); +}); +//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoidjcudGVzdC5qcyIsInNvdXJjZVJvb3QiOiIiLCJzb3VyY2VzIjpbIi4uLy4uLy4uL3NyYy90ZXN0L3Y3LnRlc3QudHMiXSwibmFtZXMiOltdLCJtYXBwaW5ncyI6Ijs7QUFBQSxpQ0FBaUM7QUFDakMseUNBQTJDO0FBRTNDLDBDQUFnQztBQUNoQyxrREFBd0M7QUFDeEMsb0NBQTZDO0FBSTdDLE1BQU0sTUFBTSxHQUFHLHNDQUFzQyxDQUFDO0FBQ3RELE1BQU0sWUFBWSxHQUFHLElBQUEsa0JBQUssRUFBQyxzQ0FBc0MsQ0FBQyxDQUFDO0FBQ25FLE1BQU0sU0FBUyxHQUFHLGFBQWEsQ0FBQztBQUdoQyxNQUFNLE9BQU8sR0FBRyxDQUFDLE1BQU0sSUFBSSxFQUFFLENBQUMsR0FBRyxDQUFDLFFBQVEsSUFBSSxDQUFDLENBQUMsQ0FBQztBQUdqRCxNQUFNLFVBQVUsR0FBRyxVQUFVLENBQUMsRUFBRSxDQUM5QixJQUFJLEVBQ0osSUFBSSxFQUNKLElBQUksRUFDSixJQUFJLEVBQ0osSUFBSSxFQUNKLElBQUksRUFDSixJQUFJLEVBQ0osSUFBSSxFQUNKLElBQUksRUFDSixJQUFJLEVBQ0os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QkFBd0IsQ0FBQyxFQUFFLENBQzVCLENBQUM7WUFDRixNQUFNLENBQUMsY0FBYyxDQUFDLElBQUEsc0JBQVMsRUFBQyxHQUFHLENBQUMsRUFBRSxFQUFFLENBQUMsQ0FBQztRQUM1QyxDQUFDO0lBQ0gsQ0FBQyxDQUFDLENBQUM7QUFDTCxDQUFDLENBQUMsQ0FBQyJ9 \ No newline at end of file diff --git a/node_modules/uuid/dist/cjs/test/validate.test.d.ts b/node_modules/uuid/dist/cjs/test/validate.test.d.ts new file mode 100644 index 0000000000..cb0ff5c3b5 --- /dev/null +++ b/node_modules/uuid/dist/cjs/test/validate.test.d.ts @@ -0,0 +1 @@ +export {}; diff --git a/node_modules/uuid/dist/cjs/test/validate.test.js b/node_modules/uuid/dist/cjs/test/validate.test.js new file mode 100644 index 0000000000..390efd19fe --- /dev/null +++ b/node_modules/uuid/dist/cjs/test/validate.test.js @@ -0,0 +1,14 @@ +"use strict"; +Object.defineProperty(exports, "__esModule", { value: true }); +const assert = require("assert"); +const node_test_1 = require("node:test"); +const validate_js_1 = require("../validate.js"); +const test_constants_js_1 = require("./test_constants.js"); +(0, node_test_1.describe)('validate()', () => { + (0, node_test_1.default)('TESTS cases', () => { + for (const { value, expectedValidate } of test_constants_js_1.TESTS) { + assert.strictEqual((0, validate_js_1.default)(value), expectedValidate, `validate(${value}) should be ${expectedValidate}`); + } + }); +}); +//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoidmFsaWRhdGUudGVzdC5qcyIsInNvdXJjZVJvb3QiOiIiLCJzb3VyY2VzIjpbIi4uLy4uLy4uL3NyYy90ZXN0L3ZhbGlkYXRlLnRlc3QudHMiXSwibmFtZXMiOltdLCJtYXBwaW5ncyI6Ijs7QUFBQSxpQ0FBaUM7QUFDakMseUNBQTJDO0FBQzNDLGdEQUFzQztBQUN0QywyREFBNEM7QUFFNUMsSUFBQSxvQkFBUSxFQUFDLFlBQVksRUFBRSxHQUFHLEVBQUU7SUFDMUIsSUFBQSxtQkFBSSxFQUFDLGFBQWEsRUFBRSxHQUFHLEVBQUU7UUFDdkIsS0FBSyxNQUFNLEVBQUUsS0FBSyxFQUFFLGdCQUFnQixFQUFFLElBQUkseUJBQUssRUFBRSxDQUFDO1lBQ2hELE1BQU0sQ0FBQyxXQUFXLENBQ2hCLElBQUEscUJBQVEsRUFBQyxLQUFLLENBQUMsRUFDZixnQkFBZ0IsRUFDaEIsWUFBWSxLQUFLLGVBQWUsZ0JBQWdCLEVBQUUsQ0FDbkQsQ0FBQztRQUNKLENBQUM7SUFDSCxDQUFDLENBQUMsQ0FBQztBQUNMLENBQUMsQ0FBQyxDQUFDIn0= \ No newline at end of file diff --git a/node_modules/uuid/dist/cjs/test/version.test.d.ts b/node_modules/uuid/dist/cjs/test/version.test.d.ts new file mode 100644 index 0000000000..cb0ff5c3b5 --- /dev/null +++ b/node_modules/uuid/dist/cjs/test/version.test.d.ts @@ -0,0 +1 @@ +export {}; diff --git a/node_modules/uuid/dist/cjs/test/version.test.js b/node_modules/uuid/dist/cjs/test/version.test.js new file mode 100644 index 0000000000..117b643166 --- /dev/null +++ b/node_modules/uuid/dist/cjs/test/version.test.js @@ -0,0 +1,21 @@ +"use strict"; +Object.defineProperty(exports, "__esModule", { value: true }); +const assert = require("assert"); +const node_test_1 = require("node:test"); +const version_js_1 = require("../version.js"); +const test_constants_js_1 = require("./test_constants.js"); +(0, node_test_1.describe)('version()', () => { + (0, node_test_1.default)('TESTS cases', () => { + for (const { value, expectedValidate, expectedVersion } of test_constants_js_1.TESTS) { + try { + const actualVersion = (0, version_js_1.default)(value); + assert.ok(expectedValidate, `version(${value}) should throw`); + assert.strictEqual(actualVersion, expectedVersion); + } + catch { + assert.ok(!expectedValidate, `version(${value}) threw unexpectedly`); + } + } + }); +}); +//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoidmVyc2lvbi50ZXN0LmpzIiwic291cmNlUm9vdCI6IiIsInNvdXJjZXMiOlsiLi4vLi4vLi4vc3JjL3Rlc3QvdmVyc2lvbi50ZXN0LnRzIl0sIm5hbWVzIjpbXSwibWFwcGluZ3MiOiI7O0FBQUEsaUNBQWlDO0FBQ2pDLHlDQUEyQztBQUMzQyw4Q0FBb0M7QUFDcEMsMkRBQTRDO0FBRTVDLElBQUEsb0JBQVEsRUFBQyxXQUFXLEVBQUUsR0FBRyxFQUFFO0lBQ3pCLElBQUEsbUJBQUksRUFBQyxhQUFhLEVBQUUsR0FBRyxFQUFFO1FBQ3ZCLEtBQUssTUFBTSxFQUFFLEtBQUssRUFBRSxnQkFBZ0IsRUFBRSxlQUFlLEVBQUUsSUFBSSx5QkFBSyxFQUFFLENBQUM7WUFDakUsSUFBSSxDQUFDO2dCQUVILE1BQU0sYUFBYSxHQUFHLElBQUEsb0JBQU8sRUFBQyxLQUFLLENBQUMsQ0FBQztnQkFFckMsTUFBTSxDQUFDLEVBQUUsQ0FBQyxnQkFBZ0IsRUFBRSxXQUFXLEtBQUssZ0JBQWdCLENBQUMsQ0FBQztnQkFDOUQsTUFBTSxDQUFDLFdBQVcsQ0FBQyxhQUFhLEVBQUUsZUFBZSxDQUFDLENBQUM7WUFDckQsQ0FBQztZQUFDLE1BQU0sQ0FBQztnQkFDUCxNQUFNLENBQUMsRUFBRSxDQUFDLENBQUMsZ0JBQWdCLEVBQUUsV0FBVyxLQUFLLHNCQUFzQixDQUFDLENBQUM7WUFDdkUsQ0FBQztRQUNILENBQUM7SUFDSCxDQUFDLENBQUMsQ0FBQztBQUNMLENBQUMsQ0FBQyxDQUFDIn0= \ No newline at end of file diff --git a/node_modules/uuid/dist/cjs/uuid-bin.d.ts b/node_modules/uuid/dist/cjs/uuid-bin.d.ts new file mode 100644 index 0000000000..cb0ff5c3b5 --- /dev/null +++ b/node_modules/uuid/dist/cjs/uuid-bin.d.ts @@ -0,0 +1 @@ +export {}; diff --git a/node_modules/uuid/dist/cjs/uuid-bin.js b/node_modules/uuid/dist/cjs/uuid-bin.js new file mode 100644 index 0000000000..0bea8ac9a8 --- /dev/null +++ b/node_modules/uuid/dist/cjs/uuid-bin.js @@ -0,0 +1,73 @@ +"use strict"; +Object.defineProperty(exports, "__esModule", { value: true }); +const assert = require("assert"); +const v1_js_1 = require("./v1.js"); +const v3_js_1 = require("./v3.js"); +const v4_js_1 = require("./v4.js"); +const v5_js_1 = require("./v5.js"); +const v6_js_1 = require("./v6.js"); +const v7_js_1 = require("./v7.js"); +function usage() { + console.log('Usage:'); + console.log(' uuid'); + console.log(' uuid v1'); + console.log(' uuid v3 '); + console.log(' uuid v4'); + console.log(' uuid v5 '); + console.log(' uuid v6'); + console.log(' uuid v7'); + console.log(' uuid --help'); + console.log('\nNote: may be "URL" or "DNS" to use the corresponding UUIDs defined by RFC9562'); +} +const args = process.argv.slice(2); +if (args.indexOf('--help') >= 0) { + usage(); + process.exit(0); +} +const version = args.shift() || 'v4'; +switch (version) { + case 'v1': + console.log((0, v1_js_1.default)()); + break; + case 'v3': { + const name = args.shift(); + let namespace = args.shift(); + assert.ok(name != null, 'v3 name not specified'); + assert.ok(namespace != null, 'v3 namespace not specified'); + if (namespace === 'URL') { + namespace = v3_js_1.default.URL; + } + if (namespace === 'DNS') { + namespace = v3_js_1.default.DNS; + } + console.log((0, v3_js_1.default)(name, namespace)); + break; + } + case 'v4': + console.log((0, v4_js_1.default)()); + break; + case 'v5': { + const name = args.shift(); + let namespace = args.shift(); + assert.ok(name != null, 'v5 name not specified'); + assert.ok(namespace != null, 'v5 namespace not specified'); + if (namespace === 'URL') { + namespace = v5_js_1.default.URL; + } + if (namespace === 'DNS') { + namespace = v5_js_1.default.DNS; + } + console.log((0, v5_js_1.default)(name, namespace)); + break; + } + case 'v6': + console.log((0, v6_js_1.default)()); + break; + case 'v7': + console.log((0, v7_js_1.default)()); + break; + default: + usage(); + process.exit(1); +} +//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoidXVpZC1iaW4uanMiLCJzb3V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FDLENBQUM7UUFDVixNQUFNLElBQUksR0FBRyxJQUFJLENBQUMsS0FBSyxFQUFFLENBQUM7UUFDMUIsSUFBSSxTQUFTLEdBQUcsSUFBSSxDQUFDLEtBQUssRUFBRSxDQUFDO1FBRTdCLE1BQU0sQ0FBQyxFQUFFLENBQUMsSUFBSSxJQUFJLElBQUksRUFBRSx1QkFBdUIsQ0FBQyxDQUFDO1FBQ2pELE1BQU0sQ0FBQyxFQUFFLENBQUMsU0FBUyxJQUFJLElBQUksRUFBRSw0QkFBNEIsQ0FBQyxDQUFDO1FBRTNELElBQUksU0FBUyxLQUFLLEtBQUssRUFBRSxDQUFDO1lBQ3hCLFNBQVMsR0FBRyxlQUFFLENBQUMsR0FBRyxDQUFDO1FBQ3JCLENBQUM7UUFFRCxJQUFJLFNBQVMsS0FBSyxLQUFLLEVBQUUsQ0FBQztZQUN4QixTQUFTLEdBQUcsZUFBRSxDQUFDLEdBQUcsQ0FBQztRQUNyQixDQUFDO1FBRUQsT0FBTyxDQUFDLEdBQUcsQ0FBQyxJQUFBLGVBQUUsRUFBQyxJQUFJLEVBQUUsU0FBUyxDQUFDLENBQUMsQ0FBQztRQUNqQyxNQUFNO0lBQ1IsQ0FBQztJQUVELEtBQUssSUFBSTtRQUNQLE9BQU8sQ0FBQyxHQUFHLENBQUMsSUFBQSxlQUFFLEdBQUUsQ0FBQyxDQUFDO1FBQ2xCLE1BQU07SUFFUixLQUFLLElBQUk7UUFDUCxPQUFPLENBQUMsR0FBRyxDQUFDLElBQUEsZUFBRSxHQUFFLENBQUMsQ0FBQztRQUNsQixNQUFNO0lBRVI7UUFDRSxLQUFLLEVBQUUsQ0FBQztRQUNSLE9BQU8sQ0FBQyxJQUFJLENBQUMsQ0FBQyxDQUFDLENBQUM7QUFDcEIsQ0FBQyJ9 \ No newline at end of file diff --git a/node_modules/uuid/dist/cjs/v1.d.ts b/node_modules/uuid/dist/cjs/v1.d.ts new file mode 100644 index 0000000000..62f1b877e0 --- /dev/null +++ b/node_modules/uuid/dist/cjs/v1.d.ts @@ -0,0 +1,11 @@ +import { Version1Options } from './_types.js'; +type V1State = { + node?: Uint8Array; + clockseq?: number; + msecs?: number; + nsecs?: number; +}; +declare function v1(options?: Version1Options, buf?: undefined, offset?: number): string; +declare function v1(options?: Version1Options, buf?: Uint8Array, offset?: number): Uint8Array; +export declare function updateV1State(state: V1State, now: number, rnds: Uint8Array): V1State; +export default v1; diff --git a/node_modules/uuid/dist/cjs/v1.js b/node_modules/uuid/dist/cjs/v1.js new file mode 100644 index 0000000000..34dcb0186b --- /dev/null +++ b/node_modules/uuid/dist/cjs/v1.js @@ -0,0 +1,79 @@ +"use strict"; +Object.defineProperty(exports, "__esModule", { value: true }); +exports.updateV1State = updateV1State; +const rng_js_1 = require("./rng.js"); +const stringify_js_1 = require("./stringify.js"); +const _state = {}; +function v1(options, buf, offset) { + let bytes; + const isV6 = options?._v6 ?? false; + if (options) { + const optionsKeys = Object.keys(options); + if (optionsKeys.length === 1 && optionsKeys[0] === '_v6') { + options = undefined; + } + } + if (options) { + bytes = v1Bytes(options.random ?? options.rng?.() ?? (0, rng_js_1.default)(), options.msecs, options.nsecs, options.clockseq, options.node, buf, offset); + } + else { + const now = Date.now(); + const rnds = (0, rng_js_1.default)(); + updateV1State(_state, now, rnds); + bytes = v1Bytes(rnds, _state.msecs, _state.nsecs, isV6 ? undefined : _state.clockseq, isV6 ? undefined : _state.node, buf, offset); + } + return buf ? bytes : (0, stringify_js_1.unsafeStringify)(bytes); +} +function updateV1State(state, now, rnds) { + state.msecs ??= -Infinity; + state.nsecs ??= 0; + if (now === state.msecs) { + state.nsecs++; + if (state.nsecs >= 10000) { + state.node = undefined; + state.nsecs = 0; + } + } + else if (now > state.msecs) { + state.nsecs = 0; + } + else if (now < state.msecs) { + state.node = undefined; + } + if (!state.node) { + state.node = rnds.slice(10, 16); + state.node[0] |= 0x01; + state.clockseq = ((rnds[8] << 8) | rnds[9]) & 0x3fff; + } + state.msecs = now; + return state; +} +function v1Bytes(rnds, msecs, nsecs, clockseq, node, buf, offset = 0) { + if (!buf) { + buf = new Uint8Array(16); + offset = 0; + } + msecs ??= Date.now(); + nsecs ??= 0; + clockseq ??= ((rnds[8] << 8) | rnds[9]) & 0x3fff; + node ??= rnds.slice(10, 16); + msecs += 12219292800000; + const tl = ((msecs & 0xfffffff) * 10000 + nsecs) % 0x100000000; + buf[offset++] = (tl >>> 24) & 0xff; + buf[offset++] = (tl >>> 16) & 0xff; + buf[offset++] = (tl >>> 8) & 0xff; + buf[offset++] = tl & 0xff; + const tmh = ((msecs / 0x100000000) * 10000) & 0xfffffff; + buf[offset++] = (tmh >>> 8) & 0xff; + buf[offset++] = tmh & 0xff; + buf[offset++] = ((tmh >>> 24) & 0xf) | 0x10; + buf[offset++] = (tmh >>> 16) & 0xff; + buf[offset++] = (clockseq >>> 8) | 0x80; + buf[offset++] = clockseq & 0xff; + for (let n = 0; n < 6; ++n) { + buf[offset++] = node[n]; + } + return buf; +} +exports.default = v1; +//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoidjEuanMiLCJzb3VyY2VSb290IjoiIiwic291cmNlcyI6WyIuLi8uLi9zcmMvdjEudHMiXSwibmFtZXMiOltdLCJtYXBwaW5ncyI6Ijs7QUFnRkEsc0NBa0RDO0FBaklELHFDQUEyQjtBQUMzQixpREFBaUQ7QUFzQmpELE1BQU0sTUFBTSxHQUFZLEVBQUUsQ0FBQztBQUkzQixTQUFTLEVBQUUsQ0FBQyxPQUF5QixFQUFFLEdBQWdCLEVBQUUsTUFBZTtJQUN0RSxJQUFJLEtBQWlCLENBQUM7SUFHdEIsTUFBTSxJQUFJLEdBQUcsT0FBTyxFQUFFLEdBQUcsSUFBSSxLQUFLLENBQUM7SUFDbkMsSUFBSSxPQUFPLEVBQUUsQ0FBQztRQUNaLE1BQU0sV0FBVyxHQUFHLE1BQU0sQ0FBQyxJQUFJLENBQUMsT0FBTyxDQUFDLENBQUM7UUFDekMsSU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FBRSxDQUFDO1FBQzNCLEdBQUcsQ0FBQyxNQUFNLEVBQUUsQ0FBQyxHQUFHLElBQUksQ0FBQyxDQUFDLENBQUMsQ0FBQztJQUMxQixDQUFDO0lBRUQsT0FBTyxHQUFHLENBQUM7QUFDYixDQUFDO0FBRUQsa0JBQWUsRUFBRSxDQUFDIn0= \ No newline at end of file diff --git a/node_modules/uuid/dist/cjs/v1ToV6.d.ts b/node_modules/uuid/dist/cjs/v1ToV6.d.ts new file mode 100644 index 0000000000..38eaaf0c26 --- /dev/null +++ b/node_modules/uuid/dist/cjs/v1ToV6.d.ts @@ -0,0 +1,2 @@ +export default function v1ToV6(uuid: string): string; +export default function v1ToV6(uuid: Uint8Array): Uint8Array; diff --git a/node_modules/uuid/dist/cjs/v1ToV6.js b/node_modules/uuid/dist/cjs/v1ToV6.js new file mode 100644 index 0000000000..c38ca64e61 --- /dev/null +++ b/node_modules/uuid/dist/cjs/v1ToV6.js @@ -0,0 +1,14 @@ +"use strict"; +Object.defineProperty(exports, "__esModule", { value: true }); +exports.default = v1ToV6; +const parse_js_1 = require("./parse.js"); +const stringify_js_1 = require("./stringify.js"); +function v1ToV6(uuid) { + const v1Bytes = typeof uuid === 'string' ? (0, parse_js_1.default)(uuid) : uuid; + const v6Bytes = _v1ToV6(v1Bytes); + return typeof uuid === 'string' ? (0, stringify_js_1.unsafeStringify)(v6Bytes) : v6Bytes; +} +function _v1ToV6(v1Bytes) { + return Uint8Array.of(((v1Bytes[6] & 0x0f) << 4) | ((v1Bytes[7] >> 4) & 0x0f), ((v1Bytes[7] & 0x0f) << 4) | ((v1Bytes[4] & 0xf0) >> 4), ((v1Bytes[4] & 0x0f) << 4) | ((v1Bytes[5] & 0xf0) >> 4), ((v1Bytes[5] & 0x0f) << 4) | ((v1Bytes[0] & 0xf0) >> 4), ((v1Bytes[0] & 0x0f) << 4) | ((v1Bytes[1] & 0xf0) >> 4), ((v1Bytes[1] & 0x0f) << 4) | ((v1Bytes[2] & 0xf0) >>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TyxDQUFDLEVBQUUsQ0FBQyxFQUNYLE9BQU8sQ0FBQyxFQUFFLENBQUMsRUFDWCxPQUFPLENBQUMsRUFBRSxDQUFDLEVBQ1gsT0FBTyxDQUFDLEVBQUUsQ0FBQyxDQUNaLENBQUM7QUFDSixDQUFDIn0= \ No newline at end of file diff --git a/node_modules/uuid/dist/cjs/v3.d.ts b/node_modules/uuid/dist/cjs/v3.d.ts new file mode 100644 index 0000000000..15690e49c6 --- /dev/null +++ b/node_modules/uuid/dist/cjs/v3.d.ts @@ -0,0 +1,9 @@ +import { UUIDTypes } from './_types.js'; +export { DNS, URL } from './v35.js'; +declare function v3(value: string | Uint8Array, namespace: UUIDTypes, buf?: undefined, offset?: number): string; +declare function v3(value: string | Uint8Array, namespace: UUIDTypes, buf?: Uint8Array, offset?: number): Uint8Array; +declare namespace v3 { + var DNS: string; + var URL: string; +} +export default v3; diff --git a/node_modules/uuid/dist/cjs/v3.js b/node_modules/uuid/dist/cjs/v3.js new file mode 100644 index 0000000000..5c90523c7a --- /dev/null +++ b/node_modules/uuid/dist/cjs/v3.js @@ -0,0 +1,15 @@ +"use strict"; +Object.defineProperty(exports, "__esModule", { value: true }); +exports.URL = exports.DNS = void 0; +const md5_js_1 = require("./md5.js"); +const v35_js_1 = require("./v35.js"); +var v35_js_2 = require("./v35.js"); +Object.defineProperty(exports, "DNS", { enumerable: true, get: function () { return v35_js_2.DNS; } }); +Object.defineProperty(exports, "URL", { enumerable: true, get: function () { return v35_js_2.URL; } }); +function v3(value, namespace, buf, offset) { + return (0, v35_js_1.default)(0x30, md5_js_1.default, value, namespace, buf, offset); +} +v3.DNS = v35_js_1.DNS; +v3.URL = v35_js_1.URL; +exports.default = v3; +//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoidjMuanMiLCJzb3VyY2VSb290IjoiIiwic291cmNlcyI6WyIuLi8uLi9zcmMvdjMudHMiXSwibmFtZXMiOltdLCJtYXBwaW5ncyI6Ijs7O0FBQ0EscUNBQTJCO0FBQzNCLHFDQUF5QztBQUV6QyxtQ0FBb0M7QUFBM0IsNkZBQUEsR0FBRyxPQUFBO0FBQUUsNkZBQUEsR0FBRyxPQUFBO0FBY2pCLFNBQVMsRUFBRSxDQUFDLEtBQTBCLEVBQUUsU0FBb0IsRUFBRSxHQUFnQixFQUFFLE1BQWU7SUFDN0YsT0FBTyxJQUFBLGdCQUFHLEVBQUMsSUFBSSxFQUFFLGdCQUFHLEVBQUUsS0FBSyxFQUFFLFNBQVMsRUFBRSxHQUFHLEVBQUUsTUFBTSxDQUFDLENBQUM7QUFDdkQsQ0FBQztBQUVELEVBQUUsQ0FBQyxHQUFHLEdBQUcsWUFBRyxDQUFDO0FBQ2IsRUFBRSxDQUFDLEdBQUcsR0FBRyxZQUFHLENBQUM7QUFFYixrQkFBZSxFQUFFLENBQUMifQ== \ No newline at end of file diff --git a/node_modules/uuid/dist/cjs/v35.d.ts b/node_modules/uuid/dist/cjs/v35.d.ts new file mode 100644 index 0000000000..be25996904 --- /dev/null +++ b/node_modules/uuid/dist/cjs/v35.d.ts @@ -0,0 +1,7 @@ +import { UUIDTypes } from './_types.js'; +export declare function stringToBytes(str: string): Uint8Array; +export declare const DNS = "6ba7b810-9dad-11d1-80b4-00c04fd430c8"; +export declare const URL = "6ba7b811-9dad-11d1-80b4-00c04fd430c8"; +type HashFunction = (bytes: Uint8Array) => Uint8Array; +export default function v35(version: 0x30 | 0x50, hash: HashFunction, value: string | Uint8Array, namespace: UUIDTypes, buf?: Uint8Array, offset?: number): string | Uint8Array; +export {}; diff --git a/node_modules/uuid/dist/cjs/v35.js b/node_modules/uuid/dist/cjs/v35.js new file mode 100644 index 0000000000..6b4d34d412 --- /dev/null +++ b/node_modules/uuid/dist/cjs/v35.js @@ -0,0 +1,42 @@ +"use strict"; +Object.defineProperty(exports, "__esModule", { value: true }); +exports.URL = exports.DNS = void 0; +exports.stringToBytes = stringToBytes; +exports.default = v35; +const parse_js_1 = require("./parse.js"); +const stringify_js_1 = require("./stringify.js"); +function stringToBytes(str) { + str = unescape(encodeURIComponent(str)); + const bytes = new Uint8Array(str.length); + for (let i = 0; i < str.length; ++i) { + bytes[i] = str.charCodeAt(i); + } + return bytes; +} +exports.DNS = '6ba7b810-9dad-11d1-80b4-00c04fd430c8'; +exports.URL = '6ba7b811-9dad-11d1-80b4-00c04fd430c8'; +function v35(version, hash, value, namespace, buf, offset) { + const valueBytes = typeof value === 'string' ? stringToBytes(value) : value; + const namespaceBytes = typeof namespace === 'string' ? (0, parse_js_1.default)(namespace) : namespace; + if (typeof namespace === 'string') { + namespace = (0, parse_js_1.default)(namespace); + } + if (namespace?.length !== 16) { + throw TypeError('Namespace must be array-like (16 iterable integer values, 0-255)'); + } + let bytes = new Uint8Array(16 + valueBytes.length); + bytes.set(namespaceBytes); + bytes.set(valueBytes, namespaceBytes.length); + bytes = hash(bytes); + bytes[6] = (bytes[6] & 0x0f) | version; + bytes[8] = (bytes[8] & 0x3f) | 0x80; + if (buf) { + offset = offset || 0; + for (let i = 0; i < 16; ++i) { + buf[offset + i] = bytes[i]; + } + return buf; + } + return (0, stringify_js_1.unsafeStringify)(bytes); +} +//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoidjM1LmpzIiwic291cmNlUm9vdCI6IiIsInNvdXJjZXMiOlsiLi4vLi4vc3JjL3YzNS50cyJdLCJuYW1lcyI6W10sIm1hcHBpbmdzIjoiOzs7QUFJQSxzQ0FXQztBQU9ELHNCQXlDQztBQTlERCx5Q0FBK0I7QUFDL0IsaURBQWlEO0FBRWpELFNBQWdCLGFBQWEsQ0FBQyxHQUFXO0lBRXZDLEdBQUcsR0FBRyxRQUFRLENBQUMsa0JBQWtCLENBQUMsR0FBRyxDQUFDLENBQUMsQ0FBQztJQUV4QyxNQUFNLEtBQUssR0FBRyxJQUFJLFVBQVUsQ0FBQyxHQUFHLENBQUMsTUFBTSxDQUFDLENBQUM7SUFFekMsS0FBSyxJQUF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ENBQUM7SUFDbkQsS0FBSyxDQUFDLEdBQUcsQ0FBQyxjQUFjLENBQUMsQ0FBQztJQUMxQixLQUFLLENBQUMsR0FBRyxDQUFDLFVBQVUsRUFBRSxjQUFjLENBQUMsTUFBTSxDQUFDLENBQUM7SUFDN0MsS0FBSyxHQUFHLElBQUksQ0FBQyxLQUFLLENBQUMsQ0FBQztJQUVwQixLQUFLLENBQUMsQ0FBQyxDQUFDLEdBQUcsQ0FBQyxLQUFLLENBQUMsQ0FBQyxDQUFDLEdBQUcsSUFBSSxDQUFDLEdBQUcsT0FBTyxDQUFDO0lBQ3ZDLEtBQUssQ0FBQyxDQUFDLENBQUMsR0FBRyxDQUFDLEtBQUssQ0FBQyxDQUFDLENBQUMsR0FBRyxJQUFJLENBQUMsR0FBRyxJQUFJLENBQUM7SUFFcEMsSUFBSSxHQUFHLEVBQUUsQ0FBQztRQUNSLE1BQU0sR0FBRyxNQUFNLElBQUksQ0FBQyxDQUFDO1FBRXJCLEtBQUssSUFBSSxDQUFDLEdBQUcsQ0FBQyxFQUFFLENBQUMsR0FBRyxFQUFFLEVBQUUsRUFBRSxDQUFDLEVBQUUsQ0FBQztZQUM1QixHQUFHLENBQUMsTUFBTSxHQUFHLENBQUMsQ0FBQyxHQUFHLEtBQUssQ0FBQyxDQUFDLENBQUMsQ0FBQztRQUM3QixDQUFDO1FBRUQsT0FBTyxHQUFHLENBQUM7SUFDYixDQUFDO0lBRUQsT0FBTyxJQUFBLDhCQUFlLEVBQUMsS0FBSyxDQUFDLENBQUM7QUFDaEMsQ0FBQyJ9 \ No newline at end of file diff --git a/node_modules/uuid/dist/cjs/v4.d.ts b/node_modules/uuid/dist/cjs/v4.d.ts new file mode 100644 index 0000000000..72a516c70f --- /dev/null +++ b/node_modules/uuid/dist/cjs/v4.d.ts @@ -0,0 +1,4 @@ +import { Version4Options } from './_types.js'; +declare function v4(options?: Version4Options, buf?: undefined, offset?: number): string; +declare function v4(options?: Version4Options, buf?: Uint8Array, offset?: number): Uint8Array; +export default v4; diff --git a/node_modules/uuid/dist/cjs/v4.js b/node_modules/uuid/dist/cjs/v4.js new file mode 100644 index 0000000000..a3b1b6b34d --- /dev/null +++ b/node_modules/uuid/dist/cjs/v4.js @@ -0,0 +1,24 @@ +"use strict"; +Object.defineProperty(exports, "__esModule", { value: true }); +const native_js_1 = require("./native.js"); +const rng_js_1 = require("./rng.js"); +const stringify_js_1 = require("./stringify.js"); +function v4(options, buf, offset) { + if (native_js_1.default.randomUUID && !buf && !options) { + return native_js_1.default.randomUUID(); + } + options = options || {}; + const rnds = options.random || (options.rng || rng_js_1.default)(); + rnds[6] = (rnds[6] & 0x0f) | 0x40; + rnds[8] = (rnds[8] & 0x3f) | 0x80; + if (buf) { + offset = offset || 0; + for (let i = 0; i < 16; ++i) { + buf[offset + i] = rnds[i]; + } + return buf; + } + return (0, stringify_js_1.unsafeStringify)(rnds); +} +exports.default = v4; +//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoidjQuanMiLCJzb3VyY2VSb290IjoiIiwic291cmNlcyI6WyIuLi8uLi9zcmMvdjQudHMiXSwibmFtZXMiOltdLCJtYXBwaW5ncyI6Ijs7QUFDQSwyQ0FBaUM7QUFDakMscUNBQTJCO0FBQzNCLGlEQUFpRDtBQUlqRCxTQUFTLEVBQUUsQ0FBQyxPQUF5QixFQUFFLEdBQWdCLEVBQUUsTUFBZTtJQUN0RSxJQUFJLG1CQUFNLENBQUMsVUFBVSxJQUFJLENBQUMsR0FBRyxJQUFJLENBQUMsT0FBTyxFQUFFLENBQUM7UUFDMUMsT0FBTyxtQkFBTSxDQUFDLFVBQVUsRUFBRSxDQUFDO0lBQzdCLENBQUM7SUFFRCxPQUFPLEdBQUcsT0FBTyxJQUFJLEVBQUUsQ0FBQztJQUV4QixNQUFNLElBQUksR0FBRyxPQUFPLENBQUMsTUFBTSxJQUFJLENBQUMsT0FBTyxDQUFDLEdBQUcsSUFBSSxnQkFBRyxDQUFDLEVBQUUsQ0FBQztJQUd0RCxJQUFJLENBQUMsQ0FBQyxDQUFDLEdBQUcsQ0FBQyxJQUFJLENBQUMsQ0FBQyxDQUFDLEdBQUcsSUFBSSxDQUFDLEdBQUcsSUFBSSxDQUFDO0lBQ2xDLElBQUksQ0FBQyxDQUFDLENBQUMsR0FBRyxDQUFDLElBQUksQ0FBQyxDQUFDLENBQUMsR0FBRyxJQUFJLENBQUMsR0FBRyxJQUFJLENBQUM7SUFHbEMsSUFBSSxHQUFHLEVBQUUsQ0FBQztRQUNSLE1BQU0sR0FBRyxNQUFNLElBQUksQ0FBQyxDQUFDO1FBRXJCLEtBQUssSUFBSSxDQUFDLEdBQUcsQ0FBQyxFQUFFLENBQUMsR0FBRyxFQUFFLEVBQUUsRUFBRSxDQUFDLEVBQUUsQ0FBQztZQUM1QixHQUFHLENBQUMsTUFBTSxHQUFHLENBQUMsQ0FBQyxHQUFHLElBQUksQ0FBQyxDQUFDLENBQUMsQ0FBQztRQUM1QixDQUFDO1FBRUQsT0FBTyxHQUFHLENBQUM7SUFDYixDQUFDO0lBRUQsT0FBTyxJQUFBLDhCQUFlLEVBQUMsSUFBSSxDQUFDLENBQUM7QUFDL0IsQ0FBQztBQUVELGtCQUFlLEVBQUUsQ0FBQyJ9 \ No newline at end of file diff --git a/node_modules/uuid/dist/cjs/v5.d.ts b/node_modules/uuid/dist/cjs/v5.d.ts new file mode 100644 index 0000000000..637ab331fd --- /dev/null +++ b/node_modules/uuid/dist/cjs/v5.d.ts @@ -0,0 +1,9 @@ +import { UUIDTypes } from './_types.js'; +export { DNS, URL } from './v35.js'; +declare function v5(value: string | Uint8Array, namespace: UUIDTypes, buf?: undefined, offset?: number): string; +declare function v5(value: string | Uint8Array, namespace: UUIDTypes, buf?: Uint8Array, offset?: number): Uint8Array; +declare namespace v5 { + var DNS: string; + var URL: string; +} +export default v5; diff --git a/node_modules/uuid/dist/cjs/v5.js b/node_modules/uuid/dist/cjs/v5.js new file mode 100644 index 0000000000..8ed53a6954 --- /dev/null +++ b/node_modules/uuid/dist/cjs/v5.js @@ -0,0 +1,15 @@ +"use strict"; +Object.defineProperty(exports, "__esModule", { value: true }); +exports.URL = exports.DNS = void 0; +const sha1_js_1 = require("./sha1.js"); +const v35_js_1 = require("./v35.js"); +var v35_js_2 = require("./v35.js"); +Object.defineProperty(exports, "DNS", { enumerable: true, get: function () { return v35_js_2.DNS; } }); +Object.defineProperty(exports, "URL", { enumerable: true, get: function () { return v35_js_2.URL; } }); +function v5(value, namespace, buf, offset) { + return (0, v35_js_1.default)(0x50, sha1_js_1.default, value, namespace, buf, offset); +} +v5.DNS = v35_js_1.DNS; +v5.URL = v35_js_1.URL; +exports.default = v5; +//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoidjUuanMiLCJzb3VyY2VSb290IjoiIiwic291cmNlcyI6WyIuLi8uLi9zcmMvdjUudHMiXSwibmFtZXMiOltdLCJtYXBwaW5ncyI6Ijs7O0FBQ0EsdUNBQTZCO0FBQzdCLHFDQUF5QztBQUV6QyxtQ0FBb0M7QUFBM0IsNkZBQUEsR0FBRyxPQUFBO0FBQUUsNkZBQUEsR0FBRyxPQUFBO0FBY2pCLFNBQVMsRUFBRSxDQUFDLEtBQTBCLEVBQUUsU0FBb0IsRUFBRSxHQUFnQixFQUFFLE1BQWU7SUFDN0YsT0FBTyxJQUFBLGdCQUFHLEVBQUMsSUFBSSxFQUFFLGlCQUFJLEVBQUUsS0FBSyxFQUFFLFNBQVMsRUFBRSxHQUFHLEVBQUUsTUFBTSxDQUFDLENBQUM7QUFDeEQsQ0FBQztBQUVELEVBQUUsQ0FBQyxHQUFHLEdBQUcsWUFBRyxDQUFDO0FBQ2IsRUFBRSxDQUFDLEdBQUcsR0FBRyxZQUFHLENBQUM7QUFFYixrQkFBZSxFQUFFLENBQUMifQ== \ No newline at end of file diff --git a/node_modules/uuid/dist/cjs/v6.d.ts b/node_modules/uuid/dist/cjs/v6.d.ts new file mode 100644 index 0000000000..7f4483555e --- /dev/null +++ b/node_modules/uuid/dist/cjs/v6.d.ts @@ -0,0 +1,4 @@ +import { Version6Options } from './_types.js'; +declare function v6(options?: Version6Options, buf?: undefined, offset?: number): string; +declare function v6(options?: Version6Options, buf?: Uint8Array, offset?: number): Uint8Array; +export default v6; diff --git a/node_modules/uuid/dist/cjs/v6.js b/node_modules/uuid/dist/cjs/v6.js new file mode 100644 index 0000000000..3f286671bf --- /dev/null +++ b/node_modules/uuid/dist/cjs/v6.js @@ -0,0 +1,20 @@ +"use strict"; +Object.defineProperty(exports, "__esModule", { value: true }); +const stringify_js_1 = require("./stringify.js"); +const v1_js_1 = require("./v1.js"); +const v1ToV6_js_1 = require("./v1ToV6.js"); +function v6(options, buf, offset) { + options ??= {}; + offset ??= 0; + let bytes = (0, v1_js_1.default)({ ...options, _v6: true }, new Uint8Array(16)); + bytes = (0, v1ToV6_js_1.default)(bytes); + if (buf) { + for (let i = 0; i < 16; i++) { + buf[offset + i] = bytes[i]; + } + return buf; + } + return (0, stringify_js_1.unsafeStringify)(bytes); +} +exports.default = v6; +//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoidjYuanMiLCJzb3VyY2VSb290IjoiIiwic291cmNlcyI6WyIuLi8uLi9zcmMvdjYudHMiXSwibmFtZXMiOltdLCJtYXBwaW5ncyI6Ijs7QUFDQSxpREFBaUQ7QUFDakQsbUNBQXlCO0FBQ3pCLDJDQUFpQztBQUlqQyxTQUFTLEVBQUUsQ0FBQyxPQUF5QixFQUFFLEdBQWdCLEVBQUUsTUFBZTtJQUN0RSxPQUFPLEtBQUssRUFBRSxDQUFDO0lBQ2YsTUFBTSxLQUFLLENBQUMsQ0FBQztJQUtiLElBQUksS0FBSyxHQUFHLElBQUEsZUFBRSxFQUFDLEVBQUUsR0FBRyxPQUFPLEVBQUUsR0FBRyxFQUFFLElBQUksRUFBRSxFQUFFLElBQUksVUFBVSxDQUFDLEVBQUUsQ0FBQyxDQUFDLENBQUM7SUFHOUQsS0FBSyxHQUFHLElBQUEsbUJBQU0sRUFBQyxLQUFLLENBQUMsQ0FBQztJQUd0QixJQUFJLEdBQUcsRUFBRSxDQUFDO1FBQ1IsS0FBSyxJQUFJLENBQUMsR0FBRyxDQUFDLEVBQUUsQ0FBQyxHQUFHLEVBQUUsRUFBRSxDQUFDLEVBQUUsRUFBRSxDQUFDO1lBQzVCLEdBQUcsQ0FBQyxNQUFNLEdBQUcsQ0FBQyxDQUFDLEdBQUcsS0FBSyxDQUFDLENBQUMsQ0FBQyxDQUFDO1FBQzdCLENBQUM7UUFDRCxPQUFPLEdBQUcsQ0FBQztJQUNiLENBQUM7SUFFRCxPQUFPLElBQUEsOEJBQWUsRUFBQyxLQUFLLENBQUMsQ0FBQztBQUNoQyxDQUFDO0FBRUQsa0JBQWUsRUFBRSxDQUFDIn0= \ No newline at end of file diff --git a/node_modules/uuid/dist/cjs/v6ToV1.d.ts b/node_modules/uuid/dist/cjs/v6ToV1.d.ts new file mode 100644 index 0000000000..3b3ffc2113 --- /dev/null +++ b/node_modules/uuid/dist/cjs/v6ToV1.d.ts @@ -0,0 +1,2 @@ +export default function v6ToV1(uuid: string): string; +export default function v6ToV1(uuid: Uint8Array): Uint8Array; diff --git a/node_modules/uuid/dist/cjs/v6ToV1.js b/node_modules/uuid/dist/cjs/v6ToV1.js new file mode 100644 index 0000000000..9a7956d582 --- /dev/null +++ b/node_modules/uuid/dist/cjs/v6ToV1.js @@ -0,0 +1,14 @@ +"use strict"; +Object.defineProperty(exports, "__esModule", { value: true }); +exports.default = v6ToV1; +const parse_js_1 = require("./parse.js"); +const stringify_js_1 = require("./stringify.js"); +function v6ToV1(uuid) { + const v6Bytes = typeof uuid === 'string' ? (0, parse_js_1.default)(uuid) : uuid; + const v1Bytes = _v6ToV1(v6Bytes); + return typeof uuid === 'string' ? (0, stringify_js_1.unsafeStringify)(v1Bytes) : v1Bytes; +} +function _v6ToV1(v6Bytes) { + return Uint8Array.of(((v6Bytes[3] & 0x0f) << 4) | ((v6Bytes[4] >> 4) & 0x0f), ((v6Bytes[4] & 0x0f) << 4) | ((v6Bytes[5] & 0xf0) >> 4), ((v6Bytes[5] & 0x0f) << 4) | (v6Bytes[6] & 0x0f), v6Bytes[7], ((v6Bytes[1] & 0x0f) << 4) | ((v6Bytes[2] & 0xf0) >> 4), ((v6Bytes[2] & 0x0f) << 4) | ((v6Bytes[3] & 0xf0) >> 4), 0x10 | ((v6Bytes[0] & 0xf0) >> 4), ((v6Bytes[0] & 0x0f) << 4) | ((v6Bytes[1] & 0xf0) >> 4), v6Bytes[8], v6Bytes[9], v6Bytes[10], v6Bytes[11], v6Bytes[12], v6Bytes[13], v6Bytes[14], v6Bytes[15]); +} +//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoidjZUb1YxLmpzIiwic291cmNlUm9vdCI6IiIsInNvdXJjZXMiOlsiLi4vLi4vc3JjL3Y2VG9WMS50cyJdLCJuYW1lcyI6W10sIm1hcHBpbmdzIjoiOztBQWFBLHlCQU1DO0FBbEJELHlDQUErQjtBQUMvQixpREFBaUQ7QUFXakQsU0FBd0IsTUFBTSxDQUFDLElBQWU7SUFDNUMsTUFBTSxPQUFPLEdBQUcsT0FBTyxJQUFJLEtBQUssUUFBUSxDQUFDLENBQUMsQ0FBQyxJQUFBLGtCQUFLLEVBQUMsSUFBSSxDQUFDLENBQUMsQ0FBQyxDQUFDLElBQUksQ0FBQztJQUU5RCxNQUFNLE9BQU8sR0FBRyxPQUFPLENBQUMsT0FBTyxDQUFDLENBQUM7SUFFakMsT0FBTyxPQUFPLElBQUksS0FBSyxRQUFRLENBQUMsQ0FBQyxDQUFDLElBQUEsOEJBQWUsRUFBQyxPQUFPLENBQUMsQ0FBQyxDQUFDLENBQUMsT0FBTyxDQUFDO0FBQ3ZFLENBQUM7QUFHRCxTQUFTLE9BQU8sQ0FBQyxPQUFtQjtJQUNsQyxPQUFPLFVBQVUsQ0FBQyxFQUF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0FBQyxJQUFJLENBQUMsQ0FBQyxHQUFHLENBQUMsQ0FBQyxPQUFPLENBQUMsQ0FBQyxDQUFDLEdBQUcsSUFBSSxDQUFDLElBQUksQ0FBQyxDQUFDLEVBRXZELE9BQU8sQ0FBQyxDQUFDLENBQUMsRUFDVixPQUFPLENBQUMsQ0FBQyxDQUFDLEVBQ1YsT0FBTyxDQUFDLEVBQUUsQ0FBQyxFQUNYLE9BQU8sQ0FBQyxFQUFFLENBQUMsRUFDWCxPQUFPLENBQUMsRUFBRSxDQUFDLEVBQ1gsT0FBTyxDQUFDLEVBQUUsQ0FBQyxFQUNYLE9BQU8sQ0FBQyxFQUFFLENBQUMsRUFDWCxPQUFPLENBQUMsRUFBRSxDQUFDLENBQ1osQ0FBQztBQUNKLENBQUMifQ== \ No newline at end of file diff --git a/node_modules/uuid/dist/cjs/v7.d.ts b/node_modules/uuid/dist/cjs/v7.d.ts new file mode 100644 index 0000000000..a5ec1b7f55 --- /dev/null +++ b/node_modules/uuid/dist/cjs/v7.d.ts @@ -0,0 +1,9 @@ +import { Version7Options } from './_types.js'; +type V7State = { + msecs?: number; + seq?: number; +}; +declare function v7(options?: Version7Options, buf?: undefined, offset?: number): string; +declare function v7(options?: Version7Options, buf?: Uint8Array, offset?: number): Uint8Array; +export declare function updateV7State(state: V7State, now: number, rnds: Uint8Array): V7State; +export default v7; diff --git a/node_modules/uuid/dist/cjs/v7.js b/node_modules/uuid/dist/cjs/v7.js new file mode 100644 index 0000000000..bb03c345c6 --- /dev/null +++ b/node_modules/uuid/dist/cjs/v7.js @@ -0,0 +1,61 @@ +"use strict"; +Object.defineProperty(exports, "__esModule", { value: true }); +exports.updateV7State = updateV7State; +const rng_js_1 = require("./rng.js"); +const stringify_js_1 = require("./stringify.js"); +const _state = {}; +function v7(options, buf, offset) { + let bytes; + if (options) { + bytes = v7Bytes(options.random ?? options.rng?.() ?? (0, rng_js_1.default)(), options.msecs, options.seq, buf, offset); + } + else { + const now = Date.now(); + const rnds = (0, rng_js_1.default)(); + updateV7State(_state, now, rnds); + bytes = v7Bytes(rnds, _state.msecs, _state.seq, buf, offset); + } + return buf ? bytes : (0, stringify_js_1.unsafeStringify)(bytes); +} +function updateV7State(state, now, rnds) { + state.msecs ??= -Infinity; + state.seq ??= 0; + if (now > state.msecs) { + state.seq = (rnds[6] << 23) | (rnds[7] << 16) | (rnds[8] << 8) | rnds[9]; + state.msecs = now; + } + else { + state.seq = (state.seq + 1) | 0; + if (state.seq === 0) { + state.msecs++; + } + } + return state; +} +function v7Bytes(rnds, msecs, seq, buf, offset = 0) { + if (!buf) { + buf = new Uint8Array(16); + offset = 0; + } + msecs ??= Date.now(); + seq ??= ((rnds[6] * 0x7f) << 24) | (rnds[7] << 16) | (rnds[8] << 8) | rnds[9]; + buf[offset++] = (msecs / 0x10000000000) & 0xff; + buf[offset++] = (msecs / 0x100000000) & 0xff; + buf[offset++] = (msecs / 0x1000000) & 0xff; + buf[offset++] = (msecs / 0x10000) & 0xff; + buf[offset++] = (msecs / 0x100) & 0xff; + buf[offset++] = msecs & 0xff; + buf[offset++] = 0x70 | ((seq >>> 28) & 0x0f); + buf[offset++] = (seq >>> 20) & 0xff; + buf[offset++] = 0x80 | ((seq >>> 14) & 0x3f); + buf[offset++] = (seq >>> 6) & 0xff; + buf[offset++] = ((seq << 2) & 0xff) | (rnds[10] & 0x03); + buf[offset++] = rnds[11]; + buf[offset++] = rnds[12]; + buf[offset++] = rnds[13]; + buf[offset++] = rnds[14]; + buf[offset++] = rnds[15]; + return buf; +} +exports.default = v7; +//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoidjcuanMiLCJzb3VyY2VSb290IjoiIiwic291cmNlcyI6WyIuLi8uLi9zcmMvdjcudHMiXSwibmFtZXMiOltdLCJtYXBwaW5ncyI6Ijs7QUF3Q0Esc0NBcUJDO0FBNURELHFDQUEyQjtBQUMzQixpREFBaUQ7QUFPakQsTUFBTSxNQUFNLEdBQVksRUFBRSx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FLENBQUMsR0FBRyxJQUFJLENBQUMsQ0FBQztJQUc3QyxHQUFHLENBQUMsTUFBTSxFQUFFLENBQUMsR0FBRyxDQUFDLEdBQUcsS0FBSyxDQUFDLENBQUMsR0FBRyxJQUFJLENBQUM7SUFHbkMsR0FBRyxDQUFDLE1BQU0sRUFBRSxDQUFDLEdBQUcsQ0FBQyxDQUFDLEdBQUcsSUFBSSxDQUFDLENBQUMsR0FBRyxJQUFJLENBQUMsR0FBRyxDQUFDLElBQUksQ0FBQyxFQUFFLENBQUMsR0FBRyxJQUFJLENBQUMsQ0FBQztJQUd4RCxHQUFHLENBQUMsTUFBTSxFQUFFLENBQUMsR0FBRyxJQUFJLENBQUMsRUFBRSxDQUFDLENBQUM7SUFDekIsR0FBRyxDQUFDLE1BQU0sRUFBRSxDQUFDLEdBQUcsSUFBSSxDQUFDLEVBQUUsQ0FBQyxDQUFDO0lBQ3pCLEdBQUcsQ0FBQyxNQUFNLEVBQUUsQ0FBQyxHQUFHLElBQUksQ0FBQyxFQUFFLENBQUMsQ0FBQztJQUN6QixHQUFHLENBQUMsTUFBTSxFQUFFLENBQUMsR0FBRyxJQUFJLENBQUMsRUFBRSxDQUFDLENBQUM7SUFDekIsR0FBRyxDQUFDLE1BQU0sRUFBRSxDQUFDLEdBQUcsSUFBSSxDQUFDLEVBQUUsQ0FBQyxDQUFDO0lBRXpCLE9BQU8sR0FBRyxDQUFDO0FBQ2IsQ0FBQztBQUVELGtCQUFlLEVBQUUsQ0FBQyJ9 \ No newline at end of file diff --git a/node_modules/uuid/dist/cjs/validate.d.ts b/node_modules/uuid/dist/cjs/validate.d.ts new file mode 100644 index 0000000000..57da03d7d9 --- /dev/null +++ b/node_modules/uuid/dist/cjs/validate.d.ts @@ -0,0 +1,2 @@ +declare function validate(uuid: unknown): boolean; +export default validate; diff --git a/node_modules/uuid/dist/cjs/validate.js b/node_modules/uuid/dist/cjs/validate.js new file mode 100644 index 0000000000..1e2937db73 --- /dev/null +++ b/node_modules/uuid/dist/cjs/validate.js @@ -0,0 +1,8 @@ +"use strict"; +Object.defineProperty(exports, "__esModule", { value: true }); +const regex_js_1 = require("./regex.js"); +function validate(uuid) { + return typeof uuid === 'string' && regex_js_1.default.test(uuid); +} +exports.default = validate; +//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoidmFsaWRhdGUuanMiLCJzb3VyY2VSb290IjoiIiwic291cmNlcyI6WyIuLi8uLi9zcmMvdmFsaWRhdGUudHMiXSwibmFtZXMiOltdLCJtYXBwaW5ncyI6Ijs7QUFBQSx5Q0FBK0I7QUFFL0IsU0FBUyxRQUFRLENBQUMsSUFBYTtJQUM3QixPQUFPLE9BQU8sSUFBSSxLQUFLLFFBQVEsSUFBSSxrQkFBSyxDQUFDLElBQUksQ0FBQyxJQUFJLENBQUMsQ0FBQztBQUN0RCxDQUFDO0FBRUQsa0JBQWUsUUFBUSxDQUFDIn0= \ No newline at end of file diff --git a/node_modules/uuid/dist/cjs/version.d.ts b/node_modules/uuid/dist/cjs/version.d.ts new file mode 100644 index 0000000000..f1948dc805 --- /dev/null +++ b/node_modules/uuid/dist/cjs/version.d.ts @@ -0,0 +1,2 @@ +declare function version(uuid: string): number; +export default version; diff --git a/node_modules/uuid/dist/cjs/version.js b/node_modules/uuid/dist/cjs/version.js new file mode 100644 index 0000000000..5a92648ca9 --- /dev/null +++ b/node_modules/uuid/dist/cjs/version.js @@ -0,0 +1,11 @@ +"use strict"; +Object.defineProperty(exports, "__esModule", { value: true }); +const validate_js_1 = require("./validate.js"); +function version(uuid) { + if (!(0, validate_js_1.default)(uuid)) { + throw TypeError('Invalid UUID'); + } + return parseInt(uuid.slice(14, 15), 16); +} +exports.default = version; +//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoidmVyc2lvbi5qcyIsInNvdXJjZVJvb3QiOiIiLCJzb3VyY2VzIjpbIi4uLy4uL3NyYy92ZXJzaW9uLnRzIl0sIm5hbWVzIjpbXSwibWFwcGluZ3MiOiI7O0FBQUEsK0NBQXFDO0FBRXJDLFNBQVMsT0FBTyxDQUFDLElBQVk7SUFDM0IsSUFBSSxDQUFDLElBQUEscUJBQVEsRUFBQyxJQUFJLENBQUMsRUFBRSxDQUFDO1FBQ3BCLE1BQU0sU0FBUyxDQUFDLGNBQWMsQ0FBQyxDQUFDO0lBQ2xDLENBQUM7SUFFRCxPQUFPLFFBQVEsQ0FBQyxJQUFJLENBQUMsS0FBSyxDQUFDLEVBQUUsRUFBRSxFQUFFLENBQUMsRUFBRSxFQUFFLENBQUMsQ0FBQztBQUMxQyxDQUFDO0FBRUQsa0JBQWUsT0FBTyxDQUFDIn0= \ No newline at end of file diff --git a/node_modules/uuid/dist/commonjs-browser/index.js b/node_modules/uuid/dist/commonjs-browser/index.js deleted file mode 100644 index 3e909f49d0..0000000000 --- a/node_modules/uuid/dist/commonjs-browser/index.js +++ /dev/null @@ -1,104 +0,0 @@ -"use strict"; - -Object.defineProperty(exports, "__esModule", { - value: true -}); -Object.defineProperty(exports, "MAX", { - enumerable: true, - get: function get() { - return _max.default; - } -}); -Object.defineProperty(exports, "NIL", { - enumerable: true, - get: function get() { - return _nil.default; - } -}); -Object.defineProperty(exports, "parse", { - enumerable: true, - get: function get() { - return _parse.default; - } -}); -Object.defineProperty(exports, "stringify", { - enumerable: true, - get: function get() { - return _stringify.default; - } -}); -Object.defineProperty(exports, "v1", { - enumerable: true, - get: function get() { - return _v.default; - } -}); -Object.defineProperty(exports, "v1ToV6", { - enumerable: true, - get: function get() { - return _v1ToV.default; - } -}); -Object.defineProperty(exports, "v3", { - enumerable: true, - get: function get() { - return _v2.default; - } -}); -Object.defineProperty(exports, "v4", { - enumerable: true, - get: function get() { - return _v3.default; - } -}); -Object.defineProperty(exports, "v5", { - enumerable: true, - get: function get() { - return _v4.default; - } -}); -Object.defineProperty(exports, "v6", { - enumerable: true, - get: function get() { - return _v5.default; - } -}); -Object.defineProperty(exports, "v6ToV1", { - enumerable: true, - get: function get() { - return _v6ToV.default; - } -}); -Object.defineProperty(exports, "v7", { - enumerable: true, - get: function get() { - return _v6.default; - } -}); -Object.defineProperty(exports, "validate", { - enumerable: true, - get: function get() { - return _validate.default; - } -}); -Object.defineProperty(exports, "version", { - enumerable: true, - get: function get() { - return _version.default; - } -}); -var _max = _interopRequireDefault(require("./max.js")); -var _nil = _interopRequireDefault(require("./nil.js")); -var _parse = _interopRequireDefault(require("./parse.js")); -var _stringify = _interopRequireDefault(require("./stringify.js")); -var _v = _interopRequireDefault(require("./v1.js")); -var _v1ToV = _interopRequireDefault(require("./v1ToV6.js")); -var _v2 = _interopRequireDefault(require("./v3.js")); -var _v3 = _interopRequireDefault(require("./v4.js")); -var _v4 = _interopRequireDefault(require("./v5.js")); -var _v5 = _interopRequireDefault(require("./v6.js")); -var _v6ToV = _interopRequireDefault(require("./v6ToV1.js")); -var _v6 = _interopRequireDefault(require("./v7.js")); -var _validate = _interopRequireDefault(require("./validate.js")); -var _version = _interopRequireDefault(require("./version.js")); -function _interopRequireDefault(e) { return e && e.__esModule ? e : { default: e }; } \ No newline at end of file diff --git a/node_modules/uuid/dist/commonjs-browser/max.js b/node_modules/uuid/dist/commonjs-browser/max.js deleted file mode 100644 index 8de76f84e5..0000000000 --- a/node_modules/uuid/dist/commonjs-browser/max.js +++ /dev/null @@ -1,7 +0,0 @@ -"use strict"; - -Object.defineProperty(exports, "__esModule", { - value: true -}); -exports.default = void 0; -var _default = exports.default = 'ffffffff-ffff-ffff-ffff-ffffffffffff'; \ No newline at end of file diff --git a/node_modules/uuid/dist/commonjs-browser/md5.js b/node_modules/uuid/dist/commonjs-browser/md5.js deleted file mode 100644 index a3bf60dec0..0000000000 --- a/node_modules/uuid/dist/commonjs-browser/md5.js +++ /dev/null @@ -1,200 +0,0 @@ -"use strict"; - -Object.defineProperty(exports, "__esModule", { - value: true -}); -exports.default = void 0; -/* - * Browser-compatible JavaScript MD5 - * - * Modification of JavaScript MD5 - * https://github.com/blueimp/JavaScript-MD5 - * - * Copyright 2011, Sebastian Tschan - * https://blueimp.net - * - * Licensed under the MIT license: - * https://opensource.org/licenses/MIT - * - * Based on - * A JavaScript implementation of the RSA Data Security, Inc. MD5 Message - * Digest Algorithm, as defined in RFC 1321. - * Version 2.2 Copyright (C) Paul Johnston 1999 - 2009 - * Other contributors: Greg Holt, Andrew Kepert, Ydnar, Lostinet - * Distributed under the BSD License - * See http://pajhome.org.uk/crypt/md5 for more info. - */ -function md5(bytes) { - if (typeof bytes === 'string') { - var msg = unescape(encodeURIComponent(bytes)); // UTF8 escape - - bytes = new Uint8Array(msg.length); - for (var i = 0; i < msg.length; ++i) { - bytes[i] = msg.charCodeAt(i); - } - } - return md5ToHexEncodedArray(wordsToMd5(bytesToWords(bytes), bytes.length * 8)); -} - -/* - * Convert an array of little-endian words to an array of bytes - */ -function md5ToHexEncodedArray(input) { - var output = []; - var length32 = input.length * 32; - var hexTab = '0123456789abcdef'; - for (var i = 0; i < length32; i += 8) { - var x = input[i >> 5] >>> i % 32 & 0xff; - var hex = parseInt(hexTab.charAt(x >>> 4 & 0x0f) + hexTab.charAt(x & 0x0f), 16); - output.push(hex); - } - return output; -} - -/** - * Calculate output length with padding and bit length - */ -function getOutputLength(inputLength8) { - return (inputLength8 + 64 >>> 9 << 4) + 14 + 1; -} - -/* - * Calculate the MD5 of an array of little-endian words, and a bit length. - */ -function wordsToMd5(x, len) { - /* append padding */ - x[len >> 5] |= 0x80 << len % 32; - x[getOutputLength(len) - 1] = len; - var a = 1732584193; - var b = -271733879; - var c = -1732584194; - var d = 271733878; - for (var i = 0; i < x.length; i += 16) { - var olda = a; - var oldb = b; - var oldc = c; - var oldd = d; - a = md5ff(a, b, c, d, x[i], 7, -680876936); - d = md5ff(d, a, b, c, x[i + 1], 12, -389564586); - c = md5ff(c, d, a, b, x[i + 2], 17, 606105819); - b = md5ff(b, c, d, a, x[i + 3], 22, -1044525330); - a = md5ff(a, b, c, d, x[i + 4], 7, -176418897); - d = md5ff(d, a, b, c, x[i + 5], 12, 1200080426); - c = md5ff(c, d, a, b, x[i + 6], 17, -1473231341); - b = md5ff(b, c, d, a, x[i + 7], 22, -45705983); - a = md5ff(a, b, c, d, x[i + 8], 7, 1770035416); - d = md5ff(d, a, b, c, x[i + 9], 12, -1958414417); - c = md5ff(c, d, a, b, x[i + 10], 17, -42063); - b = md5ff(b, c, d, a, x[i + 11], 22, -1990404162); - a = md5ff(a, b, c, d, x[i + 12], 7, 1804603682); - d = md5ff(d, a, b, c, x[i + 13], 12, -40341101); - c = md5ff(c, d, a, b, x[i + 14], 17, -1502002290); - b = md5ff(b, c, d, a, x[i + 15], 22, 1236535329); - a = md5gg(a, b, c, d, x[i + 1], 5, -165796510); - d = md5gg(d, a, b, c, x[i + 6], 9, -1069501632); - c = md5gg(c, d, a, b, x[i + 11], 14, 643717713); - b = md5gg(b, c, d, a, x[i], 20, -373897302); - a = md5gg(a, b, c, d, x[i + 5], 5, -701558691); - d = md5gg(d, a, b, c, x[i + 10], 9, 38016083); - c = md5gg(c, d, a, b, x[i + 15], 14, -660478335); - b = md5gg(b, c, d, a, x[i + 4], 20, -405537848); - a = md5gg(a, b, c, d, x[i + 9], 5, 568446438); - d = md5gg(d, a, b, c, x[i + 14], 9, -1019803690); - c = md5gg(c, d, a, b, x[i + 3], 14, -187363961); - b = md5gg(b, c, d, a, x[i + 8], 20, 1163531501); - a = md5gg(a, b, c, d, x[i + 13], 5, -1444681467); - d = md5gg(d, a, b, c, x[i + 2], 9, -51403784); - c = md5gg(c, d, a, b, x[i + 7], 14, 1735328473); - b = md5gg(b, c, d, a, x[i + 12], 20, -1926607734); - a = md5hh(a, b, c, d, x[i + 5], 4, -378558); - d = md5hh(d, a, b, c, x[i + 8], 11, -2022574463); - c = md5hh(c, d, a, b, x[i + 11], 16, 1839030562); - b = md5hh(b, c, d, a, x[i + 14], 23, -35309556); - a = md5hh(a, b, c, d, x[i + 1], 4, -1530992060); - d = md5hh(d, a, b, c, x[i + 4], 11, 1272893353); - c = md5hh(c, d, a, b, x[i + 7], 16, -155497632); - b = md5hh(b, c, d, a, x[i + 10], 23, -1094730640); - a = md5hh(a, b, c, d, x[i + 13], 4, 681279174); - d = md5hh(d, a, b, c, x[i], 11, -358537222); - c = md5hh(c, d, a, b, x[i + 3], 16, -722521979); - b = md5hh(b, c, d, a, x[i + 6], 23, 76029189); - a = md5hh(a, b, c, d, x[i + 9], 4, -640364487); - d = md5hh(d, a, b, c, x[i + 12], 11, -421815835); - c = md5hh(c, d, a, b, x[i + 15], 16, 530742520); - b = md5hh(b, c, d, a, x[i + 2], 23, -995338651); - a = md5ii(a, b, c, d, x[i], 6, -198630844); - d = md5ii(d, a, b, c, x[i + 7], 10, 1126891415); - c = md5ii(c, d, a, b, x[i + 14], 15, -1416354905); - b = md5ii(b, c, d, a, x[i + 5], 21, -57434055); - a = md5ii(a, b, c, d, x[i + 12], 6, 1700485571); - d = md5ii(d, a, b, c, x[i + 3], 10, -1894986606); - c = md5ii(c, d, a, b, x[i + 10], 15, -1051523); - b = md5ii(b, c, d, a, x[i + 1], 21, -2054922799); - a = md5ii(a, b, c, d, x[i + 8], 6, 1873313359); - d = md5ii(d, a, b, c, x[i + 15], 10, -30611744); - c = md5ii(c, d, a, b, x[i + 6], 15, -1560198380); - b = md5ii(b, c, d, a, x[i + 13], 21, 1309151649); - a = md5ii(a, b, c, d, x[i + 4], 6, -145523070); - d = md5ii(d, a, b, c, x[i + 11], 10, -1120210379); - c = md5ii(c, d, a, b, x[i + 2], 15, 718787259); - b = md5ii(b, c, d, a, x[i + 9], 21, -343485551); - a = safeAdd(a, olda); - b = safeAdd(b, oldb); - c = safeAdd(c, oldc); - d = safeAdd(d, oldd); - } - return [a, b, c, d]; -} - -/* - * Convert an array bytes to an array of little-endian words - * Characters >255 have their high-byte silently ignored. - */ -function bytesToWords(input) { - if (input.length === 0) { - return []; - } - var length8 = input.length * 8; - var output = new Uint32Array(getOutputLength(length8)); - for (var i = 0; i < length8; i += 8) { - output[i >> 5] |= (input[i / 8] & 0xff) << i % 32; - } - return output; -} - -/* - * Add integers, wrapping at 2^32. This uses 16-bit operations internally - * to work around bugs in some JS interpreters. - */ -function safeAdd(x, y) { - var lsw = (x & 0xffff) + (y & 0xffff); - var msw = (x >> 16) + (y >> 16) + (lsw >> 16); - return msw << 16 | lsw & 0xffff; -} - -/* - * Bitwise rotate a 32-bit number to the left. - */ -function bitRotateLeft(num, cnt) { - return num << cnt | num >>> 32 - cnt; -} - -/* - * These functions implement the four basic operations the algorithm uses. - */ -function md5cmn(q, a, b, x, s, t) { - return safeAdd(bitRotateLeft(safeAdd(safeAdd(a, q), safeAdd(x, t)), s), b); -} -function md5ff(a, b, c, d, x, s, t) { - return md5cmn(b & c | ~b & d, a, b, x, s, t); -} -function md5gg(a, b, c, d, x, s, t) { - return md5cmn(b & d | c & ~d, a, b, x, s, t); -} -function md5hh(a, b, c, d, x, s, t) { - return md5cmn(b ^ c ^ d, a, b, x, s, t); -} -function md5ii(a, b, c, d, x, s, t) { - return md5cmn(c ^ (b | ~d), a, b, x, s, t); -} -var _default = exports.default = md5; \ No newline at end of file diff --git a/node_modules/uuid/dist/commonjs-browser/native.js b/node_modules/uuid/dist/commonjs-browser/native.js deleted file mode 100644 index b48d539db4..0000000000 --- a/node_modules/uuid/dist/commonjs-browser/native.js +++ /dev/null @@ -1,10 +0,0 @@ -"use strict"; - -Object.defineProperty(exports, "__esModule", { - value: true -}); -exports.default = void 0; -var randomUUID = typeof crypto !== 'undefined' && crypto.randomUUID && crypto.randomUUID.bind(crypto); -var _default = exports.default = { - randomUUID -}; \ No newline at end of file diff --git a/node_modules/uuid/dist/commonjs-browser/nil.js b/node_modules/uuid/dist/commonjs-browser/nil.js deleted file mode 100644 index f7967e90c9..0000000000 --- a/node_modules/uuid/dist/commonjs-browser/nil.js +++ /dev/null @@ -1,7 +0,0 @@ -"use strict"; - -Object.defineProperty(exports, "__esModule", { - value: true -}); -exports.default = void 0; -var _default = exports.default = '00000000-0000-0000-0000-000000000000'; \ No newline at end of file diff --git a/node_modules/uuid/dist/commonjs-browser/parse.js b/node_modules/uuid/dist/commonjs-browser/parse.js deleted file mode 100644 index 8ba8f50073..0000000000 --- a/node_modules/uuid/dist/commonjs-browser/parse.js +++ /dev/null @@ -1,44 +0,0 @@ -"use strict"; - -Object.defineProperty(exports, "__esModule", { - value: true -}); -exports.default = void 0; -var _validate = _interopRequireDefault(require("./validate.js")); -function _interopRequireDefault(e) { return e && e.__esModule ? e : { default: e }; } -function parse(uuid) { - if (!(0, _validate.default)(uuid)) { - throw TypeError('Invalid UUID'); - } - var v; - var arr = new Uint8Array(16); - - // Parse ########-....-....-....-............ - arr[0] = (v = parseInt(uuid.slice(0, 8), 16)) >>> 24; - arr[1] = v >>> 16 & 0xff; - arr[2] = v >>> 8 & 0xff; - arr[3] = v & 0xff; - - // Parse ........-####-....-....-............ - arr[4] = (v = parseInt(uuid.slice(9, 13), 16)) >>> 8; - arr[5] = v & 0xff; - - // Parse ........-....-####-....-............ - arr[6] = (v = parseInt(uuid.slice(14, 18), 16)) >>> 8; - arr[7] = v & 0xff; - - // Parse ........-....-....-####-............ - arr[8] = (v = parseInt(uuid.slice(19, 23), 16)) >>> 8; - arr[9] = v & 0xff; - - // Parse ........-....-....-....-############ - // (Use "/" to avoid 32-bit truncation when bit-shifting high-order bytes) - arr[10] = (v = parseInt(uuid.slice(24, 36), 16)) / 0x10000000000 & 0xff; - arr[11] = v / 0x100000000 & 0xff; - arr[12] = v >>> 24 & 0xff; - arr[13] = v >>> 16 & 0xff; - arr[14] = v >>> 8 & 0xff; - arr[15] = v & 0xff; - return arr; -} -var _default = exports.default = parse; \ No newline at end of file diff --git a/node_modules/uuid/dist/commonjs-browser/regex.js b/node_modules/uuid/dist/commonjs-browser/regex.js deleted file mode 100644 index fc02a88e84..0000000000 --- a/node_modules/uuid/dist/commonjs-browser/regex.js +++ /dev/null @@ -1,7 +0,0 @@ -"use strict"; - -Object.defineProperty(exports, "__esModule", { - value: true -}); -exports.default = void 0; -var _default = exports.default = /^(?:[0-9a-f]{8}-[0-9a-f]{4}-[1-8][0-9a-f]{3}-[89ab][0-9a-f]{3}-[0-9a-f]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$/i; \ No newline at end of file diff --git a/node_modules/uuid/dist/commonjs-browser/rng.js b/node_modules/uuid/dist/commonjs-browser/rng.js deleted file mode 100644 index 6cf7e98a44..0000000000 --- a/node_modules/uuid/dist/commonjs-browser/rng.js +++ /dev/null @@ -1,23 +0,0 @@ -"use strict"; - -Object.defineProperty(exports, "__esModule", { - value: true -}); -exports.default = rng; -// Unique ID creation requires a high quality random # generator. In the browser we therefore -// require the crypto API and do not support built-in fallback to lower quality random number -// generators (like Math.random()). - -var getRandomValues; -var rnds8 = new Uint8Array(16); -function rng() { - // lazy load so that environments that need to polyfill have a chance to do so - if (!getRandomValues) { - // getRandomValues needs to be invoked in a context where "this" is a Crypto implementation. - getRandomValues = typeof crypto !== 'undefined' && crypto.getRandomValues && crypto.getRandomValues.bind(crypto); - if (!getRandomValues) { - throw new Error('crypto.getRandomValues() not supported. See https://github.com/uuidjs/uuid#getrandomvalues-not-supported'); - } - } - return getRandomValues(rnds8); -} \ No newline at end of file diff --git a/node_modules/uuid/dist/commonjs-browser/sha1.js b/node_modules/uuid/dist/commonjs-browser/sha1.js deleted file mode 100644 index ae1cf630b1..0000000000 --- a/node_modules/uuid/dist/commonjs-browser/sha1.js +++ /dev/null @@ -1,82 +0,0 @@ -"use strict"; - -Object.defineProperty(exports, "__esModule", { - value: true -}); -exports.default = void 0; -// Adapted from Chris Veness' SHA1 code at -// http://www.movable-type.co.uk/scripts/sha1.html -function f(s, x, y, z) { - switch (s) { - case 0: - return x & y ^ ~x & z; - case 1: - return x ^ y ^ z; - case 2: - return x & y ^ x & z ^ y & z; - case 3: - return x ^ y ^ z; - } -} -function ROTL(x, n) { - return x << n | x >>> 32 - n; -} -function sha1(bytes) { - var K = [0x5a827999, 0x6ed9eba1, 0x8f1bbcdc, 0xca62c1d6]; - var H = [0x67452301, 0xefcdab89, 0x98badcfe, 0x10325476, 0xc3d2e1f0]; - if (typeof bytes === 'string') { - var msg = unescape(encodeURIComponent(bytes)); // UTF8 escape - - bytes = []; - for (var i = 0; i < msg.length; ++i) { - bytes.push(msg.charCodeAt(i)); - } - } else if (!Array.isArray(bytes)) { - // Convert Array-like to Array - bytes = Array.prototype.slice.call(bytes); - } - bytes.push(0x80); - var l = bytes.length / 4 + 2; - var N = Math.ceil(l / 16); - var M = new Array(N); - for (var _i = 0; _i < N; ++_i) { - var arr = new Uint32Array(16); - for (var j = 0; j < 16; ++j) { - arr[j] = bytes[_i * 64 + j * 4] << 24 | bytes[_i * 64 + j * 4 + 1] << 16 | bytes[_i * 64 + j * 4 + 2] << 8 | bytes[_i * 64 + j * 4 + 3]; - } - M[_i] = arr; - } - M[N - 1][14] = (bytes.length - 1) * 8 / Math.pow(2, 32); - M[N - 1][14] = Math.floor(M[N - 1][14]); - M[N - 1][15] = (bytes.length - 1) * 8 & 0xffffffff; - for (var _i2 = 0; _i2 < N; ++_i2) { - var W = new Uint32Array(80); - for (var t = 0; t < 16; ++t) { - W[t] = M[_i2][t]; - } - for (var _t = 16; _t < 80; ++_t) { - W[_t] = ROTL(W[_t - 3] ^ W[_t - 8] ^ W[_t - 14] ^ W[_t - 16], 1); - } - var a = H[0]; - var b = H[1]; - var c = H[2]; - var d = H[3]; - var e = H[4]; - for (var _t2 = 0; _t2 < 80; ++_t2) { - var s = Math.floor(_t2 / 20); - var T = ROTL(a, 5) + f(s, b, c, d) + e + K[s] + W[_t2] >>> 0; - e = d; - d = c; - c = ROTL(b, 30) >>> 0; - b = a; - a = T; - } - H[0] = H[0] + a >>> 0; - H[1] = H[1] + b >>> 0; - H[2] = H[2] + c >>> 0; - H[3] = H[3] + d >>> 0; - H[4] = H[4] + e >>> 0; - } - return [H[0] >> 24 & 0xff, H[0] >> 16 & 0xff, H[0] >> 8 & 0xff, H[0] & 0xff, H[1] >> 24 & 0xff, H[1] >> 16 & 0xff, H[1] >> 8 & 0xff, H[1] & 0xff, H[2] >> 24 & 0xff, H[2] >> 16 & 0xff, H[2] >> 8 & 0xff, H[2] & 0xff, H[3] >> 24 & 0xff, H[3] >> 16 & 0xff, H[3] >> 8 & 0xff, H[3] & 0xff, H[4] >> 24 & 0xff, H[4] >> 16 & 0xff, H[4] >> 8 & 0xff, H[4] & 0xff]; -} -var _default = exports.default = sha1; \ No newline at end of file diff --git a/node_modules/uuid/dist/commonjs-browser/stringify.js b/node_modules/uuid/dist/commonjs-browser/stringify.js deleted file mode 100644 index 92dec9e041..0000000000 --- a/node_modules/uuid/dist/commonjs-browser/stringify.js +++ /dev/null @@ -1,38 +0,0 @@ -"use strict"; - -Object.defineProperty(exports, "__esModule", { - value: true -}); -exports.default = void 0; -exports.unsafeStringify = unsafeStringify; -var _validate = _interopRequireDefault(require("./validate.js")); -function _interopRequireDefault(e) { return e && e.__esModule ? e : { default: e }; } -/** - * Convert array of 16 byte values to UUID string format of the form: - * XXXXXXXX-XXXX-XXXX-XXXX-XXXXXXXXXXXX - */ -var byteToHex = []; -for (var i = 0; i < 256; ++i) { - byteToHex.push((i + 0x100).toString(16).slice(1)); -} -function unsafeStringify(arr, offset = 0) { - // Note: Be careful editing this code! It's been tuned for performance - // and works in ways you may not expect. See https://github.com/uuidjs/uuid/pull/434 - // - // Note to future-self: No, you can't remove the `toLowerCase()` call. - // REF: https://github.com/uuidjs/uuid/pull/677#issuecomment-1757351351 - return (byteToHex[arr[offset + 0]] + byteToHex[arr[offset + 1]] + byteToHex[arr[offset + 2]] + byteToHex[arr[offset + 3]] + '-' + byteToHex[arr[offset + 4]] + byteToHex[arr[offset + 5]] + '-' + byteToHex[arr[offset + 6]] + byteToHex[arr[offset + 7]] + '-' + byteToHex[arr[offset + 8]] + byteToHex[arr[offset + 9]] + '-' + byteToHex[arr[offset + 10]] + byteToHex[arr[offset + 11]] + byteToHex[arr[offset + 12]] + byteToHex[arr[offset + 13]] + byteToHex[arr[offset + 14]] + byteToHex[arr[offset + 15]]).toLowerCase(); -} -function stringify(arr, offset = 0) { - var uuid = unsafeStringify(arr, offset); - // Consistency check for valid UUID. If this throws, it's likely due to one - // of the following: - // - One or more input array values don't map to a hex octet (leading to - // "undefined" in the uuid) - // - Invalid input values for the RFC `version` or `variant` fields - if (!(0, _validate.default)(uuid)) { - throw TypeError('Stringified UUID is invalid'); - } - return uuid; -} -var _default = exports.default = stringify; \ No newline at end of file diff --git a/node_modules/uuid/dist/commonjs-browser/v1.js b/node_modules/uuid/dist/commonjs-browser/v1.js deleted file mode 100644 index 9789251681..0000000000 --- a/node_modules/uuid/dist/commonjs-browser/v1.js +++ /dev/null @@ -1,131 +0,0 @@ -"use strict"; - -Object.defineProperty(exports, "__esModule", { - value: true -}); -exports.default = void 0; -var _rng = _interopRequireDefault(require("./rng.js")); -var _stringify = require("./stringify.js"); -function _interopRequireDefault(e) { return e && e.__esModule ? e : { default: e }; } -// **`v1()` - Generate time-based UUID** -// -// Inspired by https://github.com/LiosK/UUID.js -// and http://docs.python.org/library/uuid.html - -var _nodeId; -var _clockseq; - -// Previous uuid creation time -var _lastMSecs = 0; -var _lastNSecs = 0; - -// See https://github.com/uuidjs/uuid for API details -function v1(options, buf, offset) { - var i = buf && offset || 0; - var b = buf || new Array(16); - options = options || {}; - var node = options.node; - var clockseq = options.clockseq; - - // v1 only: Use cached `node` and `clockseq` values - if (!options._v6) { - if (!node) { - node = _nodeId; - } - if (clockseq == null) { - clockseq = _clockseq; - } - } - - // Handle cases where we need entropy. We do this lazily to minimize issues - // related to insufficient system entropy. See #189 - if (node == null || clockseq == null) { - var seedBytes = options.random || (options.rng || _rng.default)(); - - // Randomize node - if (node == null) { - node = [seedBytes[0], seedBytes[1], seedBytes[2], seedBytes[3], seedBytes[4], seedBytes[5]]; - - // v1 only: cache node value for reuse - if (!_nodeId && !options._v6) { - // per RFC4122 4.5: Set MAC multicast bit (v1 only) - node[0] |= 0x01; // Set multicast bit - - _nodeId = node; - } - } - - // Randomize clockseq - if (clockseq == null) { - // Per 4.2.2, randomize (14 bit) clockseq - clockseq = (seedBytes[6] << 8 | seedBytes[7]) & 0x3fff; - if (_clockseq === undefined && !options._v6) { - _clockseq = clockseq; - } - } - } - - // v1 & v6 timestamps are 100 nano-second units since the Gregorian epoch, - // (1582-10-15 00:00). JSNumbers aren't precise enough for this, so time is - // handled internally as 'msecs' (integer milliseconds) and 'nsecs' - // (100-nanoseconds offset from msecs) since unix epoch, 1970-01-01 00:00. - var msecs = options.msecs !== undefined ? options.msecs : Date.now(); - - // Per 4.2.1.2, use count of uuid's generated during the current clock - // cycle to simulate higher resolution clock - var nsecs = options.nsecs !== undefined ? options.nsecs : _lastNSecs + 1; - - // Time since last uuid creation (in msecs) - var dt = msecs - _lastMSecs + (nsecs - _lastNSecs) / 10000; - - // Per 4.2.1.2, Bump clockseq on clock regression - if (dt < 0 && options.clockseq === undefined) { - clockseq = clockseq + 1 & 0x3fff; - } - - // Reset nsecs if clock regresses (new clockseq) or we've moved onto a new - // time interval - if ((dt < 0 || msecs > _lastMSecs) && options.nsecs === undefined) { - nsecs = 0; - } - - // Per 4.2.1.2 Throw error if too many uuids are requested - if (nsecs >= 10000) { - throw new Error("uuid.v1(): Can't create more than 10M uuids/sec"); - } - _lastMSecs = msecs; - _lastNSecs = nsecs; - _clockseq = clockseq; - - // Per 4.1.4 - Convert from unix epoch to Gregorian epoch - msecs += 12219292800000; - - // `time_low` - var tl = ((msecs & 0xfffffff) * 10000 + nsecs) % 0x100000000; - b[i++] = tl >>> 24 & 0xff; - b[i++] = tl >>> 16 & 0xff; - b[i++] = tl >>> 8 & 0xff; - b[i++] = tl & 0xff; - - // `time_mid` - var tmh = msecs / 0x100000000 * 10000 & 0xfffffff; - b[i++] = tmh >>> 8 & 0xff; - b[i++] = tmh & 0xff; - - // `time_high_and_version` - b[i++] = tmh >>> 24 & 0xf | 0x10; // include version - b[i++] = tmh >>> 16 & 0xff; - - // `clock_seq_hi_and_reserved` (Per 4.2.2 - include variant) - b[i++] = clockseq >>> 8 | 0x80; - - // `clock_seq_low` - b[i++] = clockseq & 0xff; - - // `node` - for (var n = 0; n < 6; ++n) { - b[i + n] = node[n]; - } - return buf || (0, _stringify.unsafeStringify)(b); -} -var _default = exports.default = v1; \ No newline at end of file diff --git a/node_modules/uuid/dist/commonjs-browser/v1ToV6.js b/node_modules/uuid/dist/commonjs-browser/v1ToV6.js deleted file mode 100644 index 0b4319973c..0000000000 --- a/node_modules/uuid/dist/commonjs-browser/v1ToV6.js +++ /dev/null @@ -1,26 +0,0 @@ -"use strict"; - -Object.defineProperty(exports, "__esModule", { - value: true -}); -exports.default = v1ToV6; -var _parse = _interopRequireDefault(require("./parse.js")); -var _stringify = require("./stringify.js"); -function _interopRequireDefault(e) { return e && e.__esModule ? e : { default: e }; } -/** - * Convert a v1 UUID to a v6 UUID - * - * @param {string|Uint8Array} uuid - The v1 UUID to convert to v6 - * @returns {string|Uint8Array} The v6 UUID as the same type as the `uuid` arg - * (string or Uint8Array) - */ -function v1ToV6(uuid) { - var v1Bytes = typeof uuid === 'string' ? (0, _parse.default)(uuid) : uuid; - var v6Bytes = _v1ToV6(v1Bytes); - return typeof uuid === 'string' ? (0, _stringify.unsafeStringify)(v6Bytes) : v6Bytes; -} - -// Do the field transformation needed for v1 -> v6 -function _v1ToV6(v1Bytes, randomize = false) { - return Uint8Array.of((v1Bytes[6] & 0x0f) << 4 | v1Bytes[7] >> 4 & 0x0f, (v1Bytes[7] & 0x0f) << 4 | (v1Bytes[4] & 0xf0) >> 4, (v1Bytes[4] & 0x0f) << 4 | (v1Bytes[5] & 0xf0) >> 4, (v1Bytes[5] & 0x0f) << 4 | (v1Bytes[0] & 0xf0) >> 4, (v1Bytes[0] & 0x0f) << 4 | (v1Bytes[1] & 0xf0) >> 4, (v1Bytes[1] & 0x0f) << 4 | (v1Bytes[2] & 0xf0) >> 4, 0x60 | v1Bytes[2] & 0x0f, v1Bytes[3], v1Bytes[8], v1Bytes[9], v1Bytes[10], v1Bytes[11], v1Bytes[12], v1Bytes[13], v1Bytes[14], v1Bytes[15]); -} \ No newline at end of file diff --git a/node_modules/uuid/dist/commonjs-browser/v3.js b/node_modules/uuid/dist/commonjs-browser/v3.js deleted file mode 100644 index 8761fc3b99..0000000000 --- a/node_modules/uuid/dist/commonjs-browser/v3.js +++ /dev/null @@ -1,11 +0,0 @@ -"use strict"; - -Object.defineProperty(exports, "__esModule", { - value: true -}); -exports.default = void 0; -var _v = _interopRequireDefault(require("./v35.js")); -var _md = _interopRequireDefault(require("./md5.js")); -function _interopRequireDefault(e) { return e && e.__esModule ? e : { default: e }; } -var v3 = (0, _v.default)('v3', 0x30, _md.default); -var _default = exports.default = v3; \ No newline at end of file diff --git a/node_modules/uuid/dist/commonjs-browser/v35.js b/node_modules/uuid/dist/commonjs-browser/v35.js deleted file mode 100644 index c22c23c09f..0000000000 --- a/node_modules/uuid/dist/commonjs-browser/v35.js +++ /dev/null @@ -1,63 +0,0 @@ -"use strict"; - -Object.defineProperty(exports, "__esModule", { - value: true -}); -exports.URL = exports.DNS = void 0; -exports.default = v35; -var _stringify = require("./stringify.js"); -var _parse = _interopRequireDefault(require("./parse.js")); -function _interopRequireDefault(e) { return e && e.__esModule ? e : { default: e }; } -function stringToBytes(str) { - str = unescape(encodeURIComponent(str)); // UTF8 escape - - var bytes = []; - for (var i = 0; i < str.length; ++i) { - bytes.push(str.charCodeAt(i)); - } - return bytes; -} -var DNS = exports.DNS = '6ba7b810-9dad-11d1-80b4-00c04fd430c8'; -var URL = exports.URL = '6ba7b811-9dad-11d1-80b4-00c04fd430c8'; -function v35(name, version, hashfunc) { - function generateUUID(value, namespace, buf, offset) { - var _namespace; - if (typeof value === 'string') { - value = stringToBytes(value); - } - if (typeof namespace === 'string') { - namespace = (0, _parse.default)(namespace); - } - if (((_namespace = namespace) === null || _namespace === void 0 ? void 0 : _namespace.length) !== 16) { - throw TypeError('Namespace must be array-like (16 iterable integer values, 0-255)'); - } - - // Compute hash of namespace and value, Per 4.3 - // Future: Use spread syntax when supported on all platforms, e.g. `bytes = - // hashfunc([...namespace, ... value])` - var bytes = new Uint8Array(16 + value.length); - bytes.set(namespace); - bytes.set(value, namespace.length); - bytes = hashfunc(bytes); - bytes[6] = bytes[6] & 0x0f | version; - bytes[8] = bytes[8] & 0x3f | 0x80; - if (buf) { - offset = offset || 0; - for (var i = 0; i < 16; ++i) { - buf[offset + i] = bytes[i]; - } - return buf; - } - return (0, _stringify.unsafeStringify)(bytes); - } - - // Function#name is not settable on some platforms (#270) - try { - generateUUID.name = name; - } catch (err) {} - - // For CommonJS default export support - generateUUID.DNS = DNS; - generateUUID.URL = URL; - return generateUUID; -} \ No newline at end of file diff --git a/node_modules/uuid/dist/commonjs-browser/v4.js b/node_modules/uuid/dist/commonjs-browser/v4.js deleted file mode 100644 index 2242a3ae3a..0000000000 --- a/node_modules/uuid/dist/commonjs-browser/v4.js +++ /dev/null @@ -1,32 +0,0 @@ -"use strict"; - -Object.defineProperty(exports, "__esModule", { - value: true -}); -exports.default = void 0; -var _native = _interopRequireDefault(require("./native.js")); -var _rng = _interopRequireDefault(require("./rng.js")); -var _stringify = require("./stringify.js"); -function _interopRequireDefault(e) { return e && e.__esModule ? e : { default: e }; } -function v4(options, buf, offset) { - if (_native.default.randomUUID && !buf && !options) { - return _native.default.randomUUID(); - } - options = options || {}; - var rnds = options.random || (options.rng || _rng.default)(); - - // Per 4.4, set bits for version and `clock_seq_hi_and_reserved` - rnds[6] = rnds[6] & 0x0f | 0x40; - rnds[8] = rnds[8] & 0x3f | 0x80; - - // Copy bytes to buffer, if provided - if (buf) { - offset = offset || 0; - for (var i = 0; i < 16; ++i) { - buf[offset + i] = rnds[i]; - } - return buf; - } - return (0, _stringify.unsafeStringify)(rnds); -} -var _default = exports.default = v4; \ No newline at end of file diff --git a/node_modules/uuid/dist/commonjs-browser/v5.js b/node_modules/uuid/dist/commonjs-browser/v5.js deleted file mode 100644 index 54ad2cbec6..0000000000 --- a/node_modules/uuid/dist/commonjs-browser/v5.js +++ /dev/null @@ -1,11 +0,0 @@ -"use strict"; - -Object.defineProperty(exports, "__esModule", { - value: true -}); -exports.default = void 0; -var _v = _interopRequireDefault(require("./v35.js")); -var _sha = _interopRequireDefault(require("./sha1.js")); -function _interopRequireDefault(e) { return e && e.__esModule ? e : { default: e }; } -var v5 = (0, _v.default)('v5', 0x50, _sha.default); -var _default = exports.default = v5; \ No newline at end of file diff --git a/node_modules/uuid/dist/commonjs-browser/v6.js b/node_modules/uuid/dist/commonjs-browser/v6.js deleted file mode 100644 index cc4ece9c0a..0000000000 --- a/node_modules/uuid/dist/commonjs-browser/v6.js +++ /dev/null @@ -1,42 +0,0 @@ -"use strict"; - -Object.defineProperty(exports, "__esModule", { - value: true -}); -exports.default = v6; -var _stringify = require("./stringify.js"); -var _v = _interopRequireDefault(require("./v1.js")); -var _v1ToV = _interopRequireDefault(require("./v1ToV6.js")); -function _interopRequireDefault(e) { return e && e.__esModule ? e : { default: e }; } -function ownKeys(e, r) { var t = Object.keys(e); if (Object.getOwnPropertySymbols) { var o = Object.getOwnPropertySymbols(e); r && (o = o.filter(function (r) { return Object.getOwnPropertyDescriptor(e, r).enumerable; })), t.push.apply(t, o); } return t; } -function _objectSpread(e) { for (var r = 1; r < arguments.length; r++) { var t = null != arguments[r] ? arguments[r] : {}; r % 2 ? ownKeys(Object(t), !0).forEach(function (r) { _defineProperty(e, r, t[r]); }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(t)) : ownKeys(Object(t)).forEach(function (r) { Object.defineProperty(e, r, Object.getOwnPropertyDescriptor(t, r)); }); } return e; } -function _defineProperty(e, r, t) { return (r = _toPropertyKey(r)) in e ? Object.defineProperty(e, r, { value: t, enumerable: !0, configurable: !0, writable: !0 }) : e[r] = t, e; } -function _toPropertyKey(t) { var i = _toPrimitive(t, "string"); return "symbol" == typeof i ? i : i + ""; } -function _toPrimitive(t, r) { if ("object" != typeof t || !t) return t; var e = t[Symbol.toPrimitive]; if (void 0 !== e) { var i = e.call(t, r || "default"); if ("object" != typeof i) return i; throw new TypeError("@@toPrimitive must return a primitive value."); } return ("string" === r ? String : Number)(t); } -/** - * - * @param {object} options - * @param {Uint8Array=} buf - * @param {number=} offset - * @returns - */ -function v6(options = {}, buf, offset = 0) { - // v6 is v1 with different field layout, so we start with a v1 UUID, albeit - // with slightly different behavior around how the clock_seq and node fields - // are randomized, which is why we call v1 with _v6: true. - var bytes = (0, _v.default)(_objectSpread(_objectSpread({}, options), {}, { - _v6: true - }), new Uint8Array(16)); - - // Reorder the fields to v6 layout. - bytes = (0, _v1ToV.default)(bytes); - - // Return as a byte array if requested - if (buf) { - for (var i = 0; i < 16; i++) { - buf[offset + i] = bytes[i]; - } - return buf; - } - return (0, _stringify.unsafeStringify)(bytes); -} \ No newline at end of file diff --git a/node_modules/uuid/dist/commonjs-browser/v6ToV1.js b/node_modules/uuid/dist/commonjs-browser/v6ToV1.js deleted file mode 100644 index 3c8350a989..0000000000 --- a/node_modules/uuid/dist/commonjs-browser/v6ToV1.js +++ /dev/null @@ -1,26 +0,0 @@ -"use strict"; - -Object.defineProperty(exports, "__esModule", { - value: true -}); -exports.default = v6ToV1; -var _parse = _interopRequireDefault(require("./parse.js")); -var _stringify = require("./stringify.js"); -function _interopRequireDefault(e) { return e && e.__esModule ? e : { default: e }; } -/** - * Convert a v6 UUID to a v1 UUID - * - * @param {string|Uint8Array} uuid - The v6 UUID to convert to v6 - * @returns {string|Uint8Array} The v1 UUID as the same type as the `uuid` arg - * (string or Uint8Array) - */ -function v6ToV1(uuid) { - var v6Bytes = typeof uuid === 'string' ? (0, _parse.default)(uuid) : uuid; - var v1Bytes = _v6ToV1(v6Bytes); - return typeof uuid === 'string' ? (0, _stringify.unsafeStringify)(v1Bytes) : v1Bytes; -} - -// Do the field transformation needed for v6 -> v1 -function _v6ToV1(v6Bytes) { - return Uint8Array.of((v6Bytes[3] & 0x0f) << 4 | v6Bytes[4] >> 4 & 0x0f, (v6Bytes[4] & 0x0f) << 4 | (v6Bytes[5] & 0xf0) >> 4, (v6Bytes[5] & 0x0f) << 4 | v6Bytes[6] & 0x0f, v6Bytes[7], (v6Bytes[1] & 0x0f) << 4 | (v6Bytes[2] & 0xf0) >> 4, (v6Bytes[2] & 0x0f) << 4 | (v6Bytes[3] & 0xf0) >> 4, 0x10 | (v6Bytes[0] & 0xf0) >> 4, (v6Bytes[0] & 0x0f) << 4 | (v6Bytes[1] & 0xf0) >> 4, v6Bytes[8], v6Bytes[9], v6Bytes[10], v6Bytes[11], v6Bytes[12], v6Bytes[13], v6Bytes[14], v6Bytes[15]); -} \ No newline at end of file diff --git a/node_modules/uuid/dist/commonjs-browser/v7.js b/node_modules/uuid/dist/commonjs-browser/v7.js deleted file mode 100644 index 2e42801cb1..0000000000 --- a/node_modules/uuid/dist/commonjs-browser/v7.js +++ /dev/null @@ -1,152 +0,0 @@ -"use strict"; - -Object.defineProperty(exports, "__esModule", { - value: true -}); -exports.default = void 0; -var _rng = _interopRequireDefault(require("./rng.js")); -var _stringify = require("./stringify.js"); -function _interopRequireDefault(e) { return e && e.__esModule ? e : { default: e }; } -/** - * UUID V7 - Unix Epoch time-based UUID - * - * The IETF has published RFC9562, introducing 3 new UUID versions (6,7,8). This - * implementation of V7 is based on the accepted, though not yet approved, - * revisions. - * - * RFC 9562:https://www.rfc-editor.org/rfc/rfc9562.html Universally Unique - * IDentifiers (UUIDs) - - * - * Sample V7 value: - * https://www.rfc-editor.org/rfc/rfc9562.html#name-example-of-a-uuidv7-value - * - * Monotonic Bit Layout: RFC rfc9562.6.2 Method 1, Dedicated Counter Bits ref: - * https://www.rfc-editor.org/rfc/rfc9562.html#section-6.2-5.1 - * - * 0 1 2 3 0 1 2 3 4 5 6 - * 7 8 9 0 1 2 3 4 5 6 7 8 9 0 1 2 3 4 5 6 7 8 9 0 1 - * +-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+ - * | unix_ts_ms | - * +-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+ - * | unix_ts_ms | ver | seq_hi | - * +-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+ - * |var| seq_low | rand | - * +-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+ - * | rand | - * +-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+ - * - * seq is a 31 bit serialized counter; comprised of 12 bit seq_hi and 19 bit - * seq_low, and randomly initialized upon timestamp change. 31 bit counter size - * was selected as any bitwise operations in node are done as _signed_ 32 bit - * ints. we exclude the sign bit. - */ - -var _seqLow = null; -var _seqHigh = null; -var _msecs = 0; -function v7(options, buf, offset) { - options = options || {}; - - // initialize buffer and pointer - var i = buf && offset || 0; - var b = buf || new Uint8Array(16); - - // rnds is Uint8Array(16) filled with random bytes - var rnds = options.random || (options.rng || _rng.default)(); - - // milliseconds since unix epoch, 1970-01-01 00:00 - var msecs = options.msecs !== undefined ? options.msecs : Date.now(); - - // seq is user provided 31 bit counter - var seq = options.seq !== undefined ? options.seq : null; - - // initialize local seq high/low parts - var seqHigh = _seqHigh; - var seqLow = _seqLow; - - // check if clock has advanced and user has not provided msecs - if (msecs > _msecs && options.msecs === undefined) { - _msecs = msecs; - - // unless user provided seq, reset seq parts - if (seq !== null) { - seqHigh = null; - seqLow = null; - } - } - - // if we have a user provided seq - if (seq !== null) { - // trim provided seq to 31 bits of value, avoiding overflow - if (seq > 0x7fffffff) { - seq = 0x7fffffff; - } - - // split provided seq into high/low parts - seqHigh = seq >>> 19 & 0xfff; - seqLow = seq & 0x7ffff; - } - - // randomly initialize seq - if (seqHigh === null || seqLow === null) { - seqHigh = rnds[6] & 0x7f; - seqHigh = seqHigh << 8 | rnds[7]; - seqLow = rnds[8] & 0x3f; // pad for var - seqLow = seqLow << 8 | rnds[9]; - seqLow = seqLow << 5 | rnds[10] >>> 3; - } - - // increment seq if within msecs window - if (msecs + 10000 > _msecs && seq === null) { - if (++seqLow > 0x7ffff) { - seqLow = 0; - if (++seqHigh > 0xfff) { - seqHigh = 0; - - // increment internal _msecs. this allows us to continue incrementing - // while staying monotonic. Note, once we hit 10k milliseconds beyond system - // clock, we will reset breaking monotonicity (after (2^31)*10000 generations) - _msecs++; - } - } - } else { - // resetting; we have advanced more than - // 10k milliseconds beyond system clock - _msecs = msecs; - } - _seqHigh = seqHigh; - _seqLow = seqLow; - - // [bytes 0-5] 48 bits of local timestamp - b[i++] = _msecs / 0x10000000000 & 0xff; - b[i++] = _msecs / 0x100000000 & 0xff; - b[i++] = _msecs / 0x1000000 & 0xff; - b[i++] = _msecs / 0x10000 & 0xff; - b[i++] = _msecs / 0x100 & 0xff; - b[i++] = _msecs & 0xff; - - // [byte 6] - set 4 bits of version (7) with first 4 bits seq_hi - b[i++] = seqHigh >>> 4 & 0x0f | 0x70; - - // [byte 7] remaining 8 bits of seq_hi - b[i++] = seqHigh & 0xff; - - // [byte 8] - variant (2 bits), first 6 bits seq_low - b[i++] = seqLow >>> 13 & 0x3f | 0x80; - - // [byte 9] 8 bits seq_low - b[i++] = seqLow >>> 5 & 0xff; - - // [byte 10] remaining 5 bits seq_low, 3 bits random - b[i++] = seqLow << 3 & 0xff | rnds[10] & 0x07; - - // [bytes 11-15] always random - b[i++] = rnds[11]; - b[i++] = rnds[12]; - b[i++] = rnds[13]; - b[i++] = rnds[14]; - b[i++] = rnds[15]; - return buf || (0, _stringify.unsafeStringify)(b); -} -var _default = exports.default = v7; \ No newline at end of file diff --git a/node_modules/uuid/dist/commonjs-browser/validate.js b/node_modules/uuid/dist/commonjs-browser/validate.js deleted file mode 100644 index d47181aad7..0000000000 --- a/node_modules/uuid/dist/commonjs-browser/validate.js +++ /dev/null @@ -1,12 +0,0 @@ -"use strict"; - -Object.defineProperty(exports, "__esModule", { - value: true -}); -exports.default = void 0; -var _regex = _interopRequireDefault(require("./regex.js")); -function _interopRequireDefault(e) { return e && e.__esModule ? e : { default: e }; } -function validate(uuid) { - return typeof uuid === 'string' && _regex.default.test(uuid); -} -var _default = exports.default = validate; \ No newline at end of file diff --git a/node_modules/uuid/dist/commonjs-browser/version.js b/node_modules/uuid/dist/commonjs-browser/version.js deleted file mode 100644 index 0c6bbdd5d0..0000000000 --- a/node_modules/uuid/dist/commonjs-browser/version.js +++ /dev/null @@ -1,15 +0,0 @@ -"use strict"; - -Object.defineProperty(exports, "__esModule", { - value: true -}); -exports.default = void 0; -var _validate = _interopRequireDefault(require("./validate.js")); -function _interopRequireDefault(e) { return e && e.__esModule ? e : { default: e }; } -function version(uuid) { - if (!(0, _validate.default)(uuid)) { - throw TypeError('Invalid UUID'); - } - return parseInt(uuid.slice(14, 15), 16); -} -var _default = exports.default = version; \ No newline at end of file diff --git a/node_modules/uuid/dist/esm-browser/_types.d.ts b/node_modules/uuid/dist/esm-browser/_types.d.ts new file mode 100644 index 0000000000..cdf09146a2 --- /dev/null +++ b/node_modules/uuid/dist/esm-browser/_types.d.ts @@ -0,0 +1,21 @@ +export type UUIDTypes = string | Uint8Array; +export type Version1Options = { + node?: Uint8Array; + clockseq?: number; + random?: Uint8Array; + rng?: () => Uint8Array; + msecs?: number; + nsecs?: number; + _v6?: boolean; +}; +export type Version4Options = { + random?: Uint8Array; + rng?: () => Uint8Array; +}; +export type Version6Options = Version1Options; +export type Version7Options = { + random?: Uint8Array; + msecs?: number; + seq?: number; + rng?: () => Uint8Array; +}; diff --git a/node_modules/uuid/dist/esm-browser/_types.js b/node_modules/uuid/dist/esm-browser/_types.js new file mode 100644 index 0000000000..f176cc4d07 --- /dev/null +++ b/node_modules/uuid/dist/esm-browser/_types.js @@ -0,0 +1,2 @@ +export {}; +//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiX3R5cGVzLmpzIiwic291cmNlUm9vdCI6IiIsInNvdXJjZXMiOlsiLi4vLi4vc3JjL190eXBlcy50cyJdLCJuYW1lcyI6W10sIm1hcHBpbmdzIjoiIn0= \ No newline at end of file diff --git a/node_modules/uuid/dist/esm-browser/index.d.ts b/node_modules/uuid/dist/esm-browser/index.d.ts new file mode 100644 index 0000000000..3193e9a3b3 --- /dev/null +++ b/node_modules/uuid/dist/esm-browser/index.d.ts @@ -0,0 +1,14 @@ +export { default as MAX } from './max.js'; +export { default as NIL } from './nil.js'; +export { default as parse } from './parse.js'; +export { default as stringify } from './stringify.js'; +export { default as v1 } from './v1.js'; +export { default as v1ToV6 } from './v1ToV6.js'; +export { default as v3 } from './v3.js'; +export { default as v4 } from './v4.js'; +export { default as v5 } from './v5.js'; +export { default as v6 } from './v6.js'; +export { default as v6ToV1 } from './v6ToV1.js'; +export { default as v7 } from './v7.js'; +export { default as validate } from './validate.js'; +export { default as version } from './version.js'; diff --git a/node_modules/uuid/dist/esm-browser/index.js b/node_modules/uuid/dist/esm-browser/index.js index 45214b37be..0c0a6b209e 100644 --- a/node_modules/uuid/dist/esm-browser/index.js +++ b/node_modules/uuid/dist/esm-browser/index.js @@ -11,4 +11,5 @@ export { default as v6 } from './v6.js'; export { default as v6ToV1 } from './v6ToV1.js'; export { default as v7 } from './v7.js'; export { default as validate } from './validate.js'; -export { default as version } from './version.js'; \ No newline at end of file +export { default as version } from './version.js'; +//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiaW5kZXguanMiLCJzb3VyY2VSb290IjoiIiwic291cmNlcyI6WyIuLi8uLi9zcmMvaW5kZXgudHMiXSwibmFtZXMiOltdLCJtYXBwaW5ncyI6IkFBQUEsT0FBTyxFQUFFLE9BQU8sSUFBSSxHQUFHLEVBQUUsTUFBTSxVQUFVLENBQUM7QUFDMUMsT0FBTyxFQUFFLE9BQU8sSUFBSSxHQUFHLEVBQUUsTUFBTSxVQUFVLENBQUM7QUFDMUMsT0FBTyxFQUFFLE9BQU8sSUFBSSxLQUFLLEVBQUUsTUFBTSxZQUFZLENBQUM7QUFDOUMsT0FBTyxFQUFFLE9BQU8sSUFBSSxTQUFTLEVBQUUsTUFBTSxnQkFBZ0IsQ0FBQztBQUN0RCxPQUFPLEVBQUUsT0FBTyxJQUFJLEVBQUUsRUFBRSxNQUFNLFNBQVMsQ0FBQztBQUN4QyxPQUFPLEVBQUUsT0FBTyxJQUFJLE1BQU0sRUFBRSxNQUFNLGFBQWEsQ0FBQztBQUNoRCxPQUFPLEVBQUUsT0FBTyxJQUFJLEVBQUUsRUFBRSxNQUFNLFNBQVMsQ0FBQztBQUN4QyxPQUFPLEVBQUUsT0FBTyxJQUFJLEVBQUUsRUFBRSxNQUFNLFNBQVMsQ0FBQztBQUN4QyxPQUFPLEVBQUUsT0FBTyxJQUFJLEVBQUUsRUFBRSxNQUFNLFNBQVMsQ0FBQztBQUN4QyxPQUFPLEVBQUUsT0FBTyxJQUFJLEVBQUUsRUFBRSxNQUFNLFNBQVMsQ0FBQztBQUN4QyxPQUFPLEVBQUUsT0FBTyxJQUFJLE1BQU0sRUFBRSxNQUFNLGFBQWEsQ0FBQztBQUNoRCxPQUFPLEVBQUUsT0FBTyxJQUFJLEVBQUUsRUFBRSxNQUFNLFNBQVMsQ0FBQztBQUN4QyxPQUFPLEVBQUUsT0FBTyxJQUFJLFFBQVEsRUFBRSxNQUFNLGVBQWUsQ0FBQztBQUNwRCxPQUFPLEVBQUUsT0FBTyxJQUFJLE9BQU8sRUFBRSxNQUFNLGNBQWMsQ0FBQyJ9 \ No newline at end of file diff --git a/node_modules/uuid/dist/esm-browser/max.d.ts b/node_modules/uuid/dist/esm-browser/max.d.ts new file mode 100644 index 0000000000..7a1e972af4 --- /dev/null +++ b/node_modules/uuid/dist/esm-browser/max.d.ts @@ -0,0 +1,2 @@ +declare const _default: "ffffffff-ffff-ffff-ffff-ffffffffffff"; +export default _default; diff --git a/node_modules/uuid/dist/esm-browser/max.js b/node_modules/uuid/dist/esm-browser/max.js index f46a281f59..66aae3cff6 100644 --- a/node_modules/uuid/dist/esm-browser/max.js +++ b/node_modules/uuid/dist/esm-browser/max.js @@ -1 +1,2 @@ -export default 'ffffffff-ffff-ffff-ffff-ffffffffffff'; \ No newline at end of file +export default 'ffffffff-ffff-ffff-ffff-ffffffffffff'; +//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoibWF4LmpzIiwic291cmNlUm9vdCI6IiIsInNvdXJjZXMiOlsiLi4vLi4vc3JjL21heC50cyJdLCJuYW1lcyI6W10sIm1hcHBpbmdzIjoiQUFBQSxlQUFlLHNDQUFzQyxDQUFDIn0= \ No newline at end of file diff --git a/node_modules/uuid/dist/esm-browser/md5.d.ts b/node_modules/uuid/dist/esm-browser/md5.d.ts new file mode 100644 index 0000000000..5a55f51ebd --- /dev/null +++ b/node_modules/uuid/dist/esm-browser/md5.d.ts @@ -0,0 +1,2 @@ +declare function md5(bytes: Uint8Array): Uint8Array; +export default md5; diff --git a/node_modules/uuid/dist/esm-browser/md5.js b/node_modules/uuid/dist/esm-browser/md5.js index 82d170e70d..a4f208d0df 100644 --- a/node_modules/uuid/dist/esm-browser/md5.js +++ b/node_modules/uuid/dist/esm-browser/md5.js @@ -1,194 +1,136 @@ -/* - * Browser-compatible JavaScript MD5 - * - * Modification of JavaScript MD5 - * https://github.com/blueimp/JavaScript-MD5 - * - * Copyright 2011, Sebastian Tschan - * https://blueimp.net - * - * Licensed under the MIT license: - * https://opensource.org/licenses/MIT - * - * Based on - * A JavaScript implementation of the RSA Data Security, Inc. MD5 Message - * Digest Algorithm, as defined in RFC 1321. - * Version 2.2 Copyright (C) Paul Johnston 1999 - 2009 - * Other contributors: Greg Holt, Andrew Kepert, Ydnar, Lostinet - * Distributed under the BSD License - * See http://pajhome.org.uk/crypt/md5 for more info. - */ function md5(bytes) { - if (typeof bytes === 'string') { - var msg = unescape(encodeURIComponent(bytes)); // UTF8 escape - - bytes = new Uint8Array(msg.length); - for (var i = 0; i < msg.length; ++i) { - bytes[i] = msg.charCodeAt(i); - } - } - return md5ToHexEncodedArray(wordsToMd5(bytesToWords(bytes), bytes.length * 8)); + const words = uint8ToUint32(bytes); + const md5Bytes = wordsToMd5(words, bytes.length * 8); + return uint32ToUint8(md5Bytes); } - -/* - * Convert an array of little-endian words to an array of bytes - */ -function md5ToHexEncodedArray(input) { - var output = []; - var length32 = input.length * 32; - var hexTab = '0123456789abcdef'; - for (var i = 0; i < length32; i += 8) { - var x = input[i >> 5] >>> i % 32 & 0xff; - var hex = parseInt(hexTab.charAt(x >>> 4 & 0x0f) + hexTab.charAt(x & 0x0f), 16); - output.push(hex); - } - return output; +function uint32ToUint8(input) { + const bytes = new Uint8Array(input.length * 4); + for (let i = 0; i < input.length * 4; i++) { + bytes[i] = (input[i >> 2] >>> ((i % 4) * 8)) & 0xff; + } + return bytes; } - -/** - * Calculate output length with padding and bit length - */ function getOutputLength(inputLength8) { - return (inputLength8 + 64 >>> 9 << 4) + 14 + 1; + return (((inputLength8 + 64) >>> 9) << 4) + 14 + 1; } - -/* - * Calculate the MD5 of an array of little-endian words, and a bit length. - */ function wordsToMd5(x, len) { - /* append padding */ - x[len >> 5] |= 0x80 << len % 32; - x[getOutputLength(len) - 1] = len; - var a = 1732584193; - var b = -271733879; - var c = -1732584194; - var d = 271733878; - for (var i = 0; i < x.length; i += 16) { - var olda = a; - var oldb = b; - var oldc = c; - var oldd = d; - a = md5ff(a, b, c, d, x[i], 7, -680876936); - d = md5ff(d, a, b, c, x[i + 1], 12, -389564586); - c = md5ff(c, d, a, b, x[i + 2], 17, 606105819); - b = md5ff(b, c, d, a, x[i + 3], 22, -1044525330); - a = md5ff(a, b, c, d, x[i + 4], 7, -176418897); - d = md5ff(d, a, b, c, x[i + 5], 12, 1200080426); - c = md5ff(c, d, a, b, x[i + 6], 17, -1473231341); - b = md5ff(b, c, d, a, x[i + 7], 22, -45705983); - a = md5ff(a, b, c, d, x[i + 8], 7, 1770035416); - d = md5ff(d, a, b, c, x[i + 9], 12, -1958414417); - c = md5ff(c, d, a, b, x[i + 10], 17, -42063); - b = md5ff(b, c, d, a, x[i + 11], 22, -1990404162); - a = md5ff(a, b, c, d, x[i + 12], 7, 1804603682); - d = md5ff(d, a, b, c, x[i + 13], 12, -40341101); - c = md5ff(c, d, a, b, x[i + 14], 17, -1502002290); - b = md5ff(b, c, d, a, x[i + 15], 22, 1236535329); - a = md5gg(a, b, c, d, x[i + 1], 5, -165796510); - d = md5gg(d, a, b, c, x[i + 6], 9, -1069501632); - c = md5gg(c, d, a, b, x[i + 11], 14, 643717713); - b = md5gg(b, c, d, a, x[i], 20, -373897302); - a = md5gg(a, b, c, d, x[i + 5], 5, -701558691); - d = md5gg(d, a, b, c, x[i + 10], 9, 38016083); - c = md5gg(c, d, a, b, x[i + 15], 14, -660478335); - b = md5gg(b, c, d, a, x[i + 4], 20, -405537848); - a = md5gg(a, b, c, d, x[i + 9], 5, 568446438); - d = md5gg(d, a, b, c, x[i + 14], 9, -1019803690); - c = md5gg(c, d, a, b, x[i + 3], 14, -187363961); - b = md5gg(b, c, d, a, x[i + 8], 20, 1163531501); - a = md5gg(a, b, c, d, x[i + 13], 5, -1444681467); - d = md5gg(d, a, b, c, x[i + 2], 9, -51403784); - c = md5gg(c, d, a, b, x[i + 7], 14, 1735328473); - b = md5gg(b, c, d, a, x[i + 12], 20, -1926607734); - a = md5hh(a, b, c, d, x[i + 5], 4, -378558); - d = md5hh(d, a, b, c, x[i + 8], 11, -2022574463); - c = md5hh(c, d, a, b, x[i + 11], 16, 1839030562); - b = md5hh(b, c, d, a, x[i + 14], 23, -35309556); - a = md5hh(a, b, c, d, x[i + 1], 4, -1530992060); - d = md5hh(d, a, b, c, x[i + 4], 11, 1272893353); - c = md5hh(c, d, a, b, x[i + 7], 16, -155497632); - b = md5hh(b, c, d, a, x[i + 10], 23, -1094730640); - a = md5hh(a, b, c, d, x[i + 13], 4, 681279174); - d = md5hh(d, a, b, c, x[i], 11, -358537222); - c = md5hh(c, d, a, b, x[i + 3], 16, -722521979); - b = md5hh(b, c, d, a, x[i + 6], 23, 76029189); - a = md5hh(a, b, c, d, x[i + 9], 4, -640364487); - d = md5hh(d, a, b, c, x[i + 12], 11, -421815835); - c = md5hh(c, d, a, b, x[i + 15], 16, 530742520); - b = md5hh(b, c, d, a, x[i + 2], 23, -995338651); - a = md5ii(a, b, c, d, x[i], 6, -198630844); - d = md5ii(d, a, b, c, x[i + 7], 10, 1126891415); - c = md5ii(c, d, a, b, x[i + 14], 15, -1416354905); - b = md5ii(b, c, d, a, x[i + 5], 21, -57434055); - a = md5ii(a, b, c, d, x[i + 12], 6, 1700485571); - d = md5ii(d, a, b, c, x[i + 3], 10, -1894986606); - c = md5ii(c, d, a, b, x[i + 10], 15, -1051523); - b = md5ii(b, c, d, a, x[i + 1], 21, -2054922799); - a = md5ii(a, b, c, d, x[i + 8], 6, 1873313359); - d = md5ii(d, a, b, c, x[i + 15], 10, -30611744); - c = md5ii(c, d, a, b, x[i + 6], 15, -1560198380); - b = md5ii(b, c, d, a, x[i + 13], 21, 1309151649); - a = md5ii(a, b, c, d, x[i + 4], 6, -145523070); - d = md5ii(d, a, b, c, x[i + 11], 10, -1120210379); - c = md5ii(c, d, a, b, x[i + 2], 15, 718787259); - b = md5ii(b, c, d, a, x[i + 9], 21, -343485551); - a = safeAdd(a, olda); - b = safeAdd(b, oldb); - c = safeAdd(c, oldc); - d = safeAdd(d, oldd); - } - return [a, b, c, d]; + const xpad = new Uint32Array(getOutputLength(len)).fill(0); + xpad.set(x); + xpad[len >> 5] |= 0x80 << len % 32; + xpad[xpad.length - 1] = len; + x = xpad; + let a = 1732584193; + let b = -271733879; + let c = -1732584194; + let d = 271733878; + for (let i = 0; i < x.length; i += 16) { + const olda = a; + const oldb = b; + const oldc = c; + const oldd = d; + a = md5ff(a, b, c, d, x[i], 7, -680876936); + d = md5ff(d, a, b, c, x[i + 1], 12, -389564586); + c = md5ff(c, d, a, b, x[i + 2], 17, 606105819); + b = md5ff(b, c, d, a, x[i + 3], 22, -1044525330); + a = md5ff(a, b, c, d, x[i + 4], 7, -176418897); + d = md5ff(d, a, b, c, x[i + 5], 12, 1200080426); + c = md5ff(c, d, a, b, x[i + 6], 17, -1473231341); + b = md5ff(b, c, d, a, x[i + 7], 22, -45705983); + a = md5ff(a, b, c, d, x[i + 8], 7, 1770035416); + d = md5ff(d, a, b, c, x[i + 9], 12, -1958414417); + c = md5ff(c, d, a, b, x[i + 10], 17, -42063); + b = md5ff(b, c, d, a, x[i + 11], 22, -1990404162); + a = md5ff(a, b, c, d, x[i + 12], 7, 1804603682); + d = md5ff(d, a, b, c, x[i + 13], 12, -40341101); + c = md5ff(c, d, a, b, x[i + 14], 17, -1502002290); + b = md5ff(b, c, d, a, x[i + 15], 22, 1236535329); + a = md5gg(a, b, c, d, x[i + 1], 5, -165796510); + d = md5gg(d, a, b, c, x[i + 6], 9, -1069501632); + c = md5gg(c, d, a, b, x[i + 11], 14, 643717713); + b = md5gg(b, c, d, a, x[i], 20, -373897302); + a = md5gg(a, b, c, d, x[i + 5], 5, -701558691); + d = md5gg(d, a, b, c, x[i + 10], 9, 38016083); + c = md5gg(c, d, a, b, x[i + 15], 14, -660478335); + b = md5gg(b, c, d, a, x[i + 4], 20, -405537848); + a = md5gg(a, b, c, d, x[i + 9], 5, 568446438); + d = md5gg(d, a, b, c, x[i + 14], 9, -1019803690); + c = md5gg(c, d, a, b, x[i + 3], 14, -187363961); + b = md5gg(b, c, d, a, x[i + 8], 20, 1163531501); + a = md5gg(a, b, c, d, x[i + 13], 5, -1444681467); + d = md5gg(d, a, b, c, x[i + 2], 9, -51403784); + c = md5gg(c, d, a, b, x[i + 7], 14, 1735328473); + b = md5gg(b, c, d, a, x[i + 12], 20, -1926607734); + a = md5hh(a, b, c, d, x[i + 5], 4, -378558); + d = md5hh(d, a, b, c, x[i + 8], 11, -2022574463); + c = md5hh(c, d, a, b, x[i + 11], 16, 1839030562); + b = md5hh(b, c, d, a, x[i + 14], 23, -35309556); + a = md5hh(a, b, c, d, x[i + 1], 4, -1530992060); + d = md5hh(d, a, b, c, x[i + 4], 11, 1272893353); + c = md5hh(c, d, a, b, x[i + 7], 16, -155497632); + b = md5hh(b, c, d, a, x[i + 10], 23, -1094730640); + a = md5hh(a, b, c, d, x[i + 13], 4, 681279174); + d = md5hh(d, a, b, c, x[i], 11, -358537222); + c = md5hh(c, d, a, b, x[i + 3], 16, -722521979); + b = md5hh(b, c, d, a, x[i + 6], 23, 76029189); + a = md5hh(a, b, c, d, x[i + 9], 4, -640364487); + d = md5hh(d, a, b, c, x[i + 12], 11, -421815835); + c = md5hh(c, d, a, b, x[i + 15], 16, 530742520); + b = md5hh(b, c, d, a, x[i + 2], 23, -995338651); + a = md5ii(a, b, c, d, x[i], 6, -198630844); + d = md5ii(d, a, b, c, x[i + 7], 10, 1126891415); + c = md5ii(c, d, a, b, x[i + 14], 15, -1416354905); + b = md5ii(b, c, d, a, x[i + 5], 21, -57434055); + a = md5ii(a, b, c, d, x[i + 12], 6, 1700485571); + d = md5ii(d, a, b, c, x[i + 3], 10, -1894986606); + c = md5ii(c, d, a, b, x[i + 10], 15, -1051523); + b = md5ii(b, c, d, a, x[i + 1], 21, -2054922799); + a = md5ii(a, b, c, d, x[i + 8], 6, 1873313359); + d = md5ii(d, a, b, c, x[i + 15], 10, -30611744); + c = md5ii(c, d, a, b, x[i + 6], 15, -1560198380); + b = md5ii(b, c, d, a, x[i + 13], 21, 1309151649); + a = md5ii(a, b, c, d, x[i + 4], 6, -145523070); + d = md5ii(d, a, b, c, x[i + 11], 10, -1120210379); + c = md5ii(c, d, a, b, x[i + 2], 15, 718787259); + b = md5ii(b, c, d, a, x[i + 9], 21, -343485551); + a = safeAdd(a, olda); + b = safeAdd(b, oldb); + c = safeAdd(c, oldc); + d = safeAdd(d, oldd); + } + return Uint32Array.of(a, b, c, d); } - -/* - * Convert an array bytes to an array of little-endian words - * Characters >255 have their high-byte silently ignored. - */ -function bytesToWords(input) { - if (input.length === 0) { - return []; - } - var length8 = input.length * 8; - var output = new Uint32Array(getOutputLength(length8)); - for (var i = 0; i < length8; i += 8) { - output[i >> 5] |= (input[i / 8] & 0xff) << i % 32; - } - return output; +function uint8ToUint32(input) { + if (input.length === 0) { + return new Uint32Array(); + } + const output = new Uint32Array(getOutputLength(input.length * 8)).fill(0); + for (let i = 0; i < input.length; i++) { + output[i >> 2] |= (input[i] & 0xff) << ((i % 4) * 8); + } + return output; } - -/* - * Add integers, wrapping at 2^32. This uses 16-bit operations internally - * to work around bugs in some JS interpreters. - */ function safeAdd(x, y) { - var lsw = (x & 0xffff) + (y & 0xffff); - var msw = (x >> 16) + (y >> 16) + (lsw >> 16); - return msw << 16 | lsw & 0xffff; + const lsw = (x & 0xffff) + (y & 0xffff); + const msw = (x >> 16) + (y >> 16) + (lsw >> 16); + return (msw << 16) | (lsw & 0xffff); } - -/* - * Bitwise rotate a 32-bit number to the left. - */ function bitRotateLeft(num, cnt) { - return num << cnt | num >>> 32 - cnt; + return (num << cnt) | (num >>> (32 - cnt)); } - -/* - * These functions implement the four basic operations the algorithm uses. - */ function md5cmn(q, a, b, x, s, t) { - return safeAdd(bitRotateLeft(safeAdd(safeAdd(a, q), safeAdd(x, t)), s), b); + return safeAdd(bitRotateLeft(safeAdd(safeAdd(a, q), safeAdd(x, t)), s), b); } function md5ff(a, b, c, d, x, s, t) { - return md5cmn(b & c | ~b & d, a, b, x, s, t); + return md5cmn((b & c) | (~b & d), a, b, x, s, t); } function md5gg(a, b, c, d, x, s, t) { - return md5cmn(b & d | c & ~d, a, b, x, s, t); + return md5cmn((b & d) | (c & ~d), a, b, x, s, t); } function md5hh(a, b, c, d, x, s, t) { - return md5cmn(b ^ c ^ d, a, b, x, s, t); + return md5cmn(b ^ c ^ d, a, b, x, s, t); } function md5ii(a, b, c, d, x, s, t) { - return md5cmn(c ^ (b | ~d), a, b, x, s, t); + return md5cmn(c ^ (b | ~d), a, b, x, s, t); } -export default md5; \ No newline at end of file +export default md5; +//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoibWQ1LWJyb3dzZXIuanMiLCJzb3VyY2VSb290IjoiIiwic291cmNlcyI6WyIuLi8uLi9zcmMvbWQ1LWJyb3dzZXIudHMiXSwibmFtZXMiOltdLCJtYXBwaW5ncyI6IkFBb0JBLFNBQVMsR0FBRyxDQUFDLEtBQWlCO0lBQzVCLE1BQU0sS0FBSyxHQUFHLGFBQWEsQ0FBQyxLQUFLLENBQUMsQ0FBQztJQUVuQyxNQUFNLFFBQVEsR0FBRyxVQUFVLENBQUMsS0FBSyxFQUFFLEtBQUssQ0FBQyxNQUFNLEdBQUcsQ0FBQyxDQUFDLENBQUM7SUFDckQsT0FBTyxhQUFhLENBQUMsUUFBUSxDQUFDLENBQUM7QUFDakMsQ0FBQztBQUtELFNBQVMsYUFBYSxDQUFDLEtBQWtCO0lBTXZDLE1BQU0sS0FBSyxHQUFHLElBQUksVUFBVSxDQUFDLEtBQUssQ0FBQyxNQUFNLEdBQUcsQ0FBQyxDQUFDLENBQUM7SUFDL0MsS0FBSyxJQUFJLENBQUMsR0FBRyxDQUFDLEVBQUUsQ0FBQyxHQUFHLEtBQUssQ0FBQyxNQUFNLEdBQUcsQ0FBQyxFQUFFLENBQUMsRUFBRSxFQUFFLENBQUM7UUFDMUMsS0FBSyxDQUFDLENBQUMsQ0FBQyxHQUFHLENBQUMsS0FBSyxDQUFDLENBQUMsSUFBSSxDQUFDLENBQUMsS0FBSyxDQUFDLENBQUMsQ0FBQyxHQUFHLENBQUMsQ0FBQyxHQUFHLENBQUMsQ0FBQyxDQUFDLEdBQUcsSUFBSSxDQUFDO0lBQ3RELENBQUM7SUFDRCxPQUFPLEtBQUssQ0FBQztBQUNmLENBQUM7QUFLRCxTQUFTLGVBQWUsQ0FBQyxZQUFvQjtJQUMzQyxPQUF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dBQUcsQ0FBQyxDQUFDLEdBQUcsQ0FBQyxDQUFDLEdBQUcsQ0FBQyxDQUFDLENBQUMsRUFBRSxDQUFDLEVBQUUsQ0FBQyxFQUFFLENBQUMsRUFBRSxDQUFDLEVBQUUsQ0FBQyxDQUFDLENBQUM7QUFDbkQsQ0FBQztBQUVELFNBQVMsS0FBSyxDQUFDLENBQVMsRUFBRSxDQUFTLEVBQUUsQ0FBUyxFQUFFLENBQVMsRUFBRSxDQUFTLEVBQUUsQ0FBUyxFQUFFLENBQVM7SUFDeEYsT0FBTyxNQUFNLENBQUMsQ0FBQyxHQUFHLENBQUMsR0FBRyxDQUFDLEVBQUUsQ0FBQyxFQUFFLENBQUMsRUFBRSxDQUFDLEVBQUUsQ0FBQyxFQUFFLENBQUMsQ0FBQyxDQUFDO0FBQzFDLENBQUM7QUFFRCxTQUFTLEtBQUssQ0FBQyxDQUFTLEVBQUUsQ0FBUyxFQUFFLENBQVMsRUFBRSxDQUFTLEVBQUUsQ0FBUyxFQUFFLENBQVMsRUFBRSxDQUFTO0lBQ3hGLE9BQU8sTUFBTSxDQUFDLENBQUMsR0FBRyxDQUFDLENBQUMsR0FBRyxDQUFDLENBQUMsQ0FBQyxFQUFFLENBQUMsRUFBRSxDQUFDLEVBQUUsQ0FBQyxFQUFFLENBQUMsRUFBRSxDQUFDLENBQUMsQ0FBQztBQUM3QyxDQUFDO0FBRUQsZUFBZSxHQUFHLENBQUMifQ== \ No newline at end of file diff --git a/node_modules/uuid/dist/esm-browser/native.d.ts b/node_modules/uuid/dist/esm-browser/native.d.ts new file mode 100644 index 0000000000..9418fd3a4b --- /dev/null +++ b/node_modules/uuid/dist/esm-browser/native.d.ts @@ -0,0 +1,4 @@ +declare const _default: { + randomUUID: false | (() => `${string}-${string}-${string}-${string}-${string}`); +}; +export default _default; diff --git a/node_modules/uuid/dist/esm-browser/native.js b/node_modules/uuid/dist/esm-browser/native.js index ba09dec7dc..b8d1c48925 100644 --- a/node_modules/uuid/dist/esm-browser/native.js +++ b/node_modules/uuid/dist/esm-browser/native.js @@ -1,4 +1,3 @@ -var randomUUID = typeof crypto !== 'undefined' && crypto.randomUUID && crypto.randomUUID.bind(crypto); -export default { - randomUUID -}; \ No newline at end of file +const randomUUID = typeof crypto !== 'undefined' && crypto.randomUUID && crypto.randomUUID.bind(crypto); +export default { randomUUID }; +//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoibmF0aXZlLWJyb3dzZXIuanMiLCJzb3VyY2VSb290IjoiIiwic291cmNlcyI6WyIuLi8uLi9zcmMvbmF0aXZlLWJyb3dzZXIudHMiXSwibmFtZXMiOltdLCJtYXBwaW5ncyI6IkFBQUEsTUFBTSxVQUFVLEdBQ2QsT0FBTyxNQUFNLEtBQUssV0FBVyxJQUFJLE1BQU0sQ0FBQyxVQUFVLElBQUksTUFBTSxDQUFDLFVBQVUsQ0FBQyxJQUFJLENBQUMsTUFBTSxDQUFDLENBQUM7QUFFdkYsZUFBZSxFQUFFLFVBQVUsRUFBRSxDQUFDIn0= \ No newline at end of file diff --git a/node_modules/uuid/dist/esm-browser/nil.d.ts b/node_modules/uuid/dist/esm-browser/nil.d.ts new file mode 100644 index 0000000000..b03bb98efd --- /dev/null +++ b/node_modules/uuid/dist/esm-browser/nil.d.ts @@ -0,0 +1,2 @@ +declare const _default: "00000000-0000-0000-0000-000000000000"; +export default _default; diff --git a/node_modules/uuid/dist/esm-browser/nil.js b/node_modules/uuid/dist/esm-browser/nil.js index b36324c2aa..d649c5cfca 100644 --- a/node_modules/uuid/dist/esm-browser/nil.js +++ b/node_modules/uuid/dist/esm-browser/nil.js @@ -1 +1,2 @@ -export default '00000000-0000-0000-0000-000000000000'; \ No newline at end of file +export default '00000000-0000-0000-0000-000000000000'; +//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoibmlsLmpzIiwic291cmNlUm9vdCI6IiIsInNvdXJjZXMiOlsiLi4vLi4vc3JjL25pbC50cyJdLCJuYW1lcyI6W10sIm1hcHBpbmdzIjoiQUFBQSxlQUFlLHNDQUFzQyxDQUFDIn0= \ No newline at end of file diff --git a/node_modules/uuid/dist/esm-browser/parse.d.ts b/node_modules/uuid/dist/esm-browser/parse.d.ts new file mode 100644 index 0000000000..a316fb1178 --- /dev/null +++ b/node_modules/uuid/dist/esm-browser/parse.d.ts @@ -0,0 +1,2 @@ +declare function parse(uuid: string): Uint8Array; +export default parse; diff --git a/node_modules/uuid/dist/esm-browser/parse.js b/node_modules/uuid/dist/esm-browser/parse.js index 87588317f9..0ac9e131e2 100644 --- a/node_modules/uuid/dist/esm-browser/parse.js +++ b/node_modules/uuid/dist/esm-browser/parse.js @@ -1,37 +1,10 @@ import validate from './validate.js'; function parse(uuid) { - if (!validate(uuid)) { - throw TypeError('Invalid UUID'); - } - var v; - var arr = new Uint8Array(16); - - // Parse ########-....-....-....-............ - arr[0] = (v = parseInt(uuid.slice(0, 8), 16)) >>> 24; - arr[1] = v >>> 16 & 0xff; - arr[2] = v >>> 8 & 0xff; - arr[3] = v & 0xff; - - // Parse ........-####-....-....-............ - arr[4] = (v = parseInt(uuid.slice(9, 13), 16)) >>> 8; - arr[5] = v & 0xff; - - // Parse ........-....-####-....-............ - arr[6] = (v = parseInt(uuid.slice(14, 18), 16)) >>> 8; - arr[7] = v & 0xff; - - // Parse ........-....-....-####-............ - arr[8] = (v = parseInt(uuid.slice(19, 23), 16)) >>> 8; - arr[9] = v & 0xff; - - // Parse ........-....-....-....-############ - // (Use "/" to avoid 32-bit truncation when bit-shifting high-order bytes) - arr[10] = (v = parseInt(uuid.slice(24, 36), 16)) / 0x10000000000 & 0xff; - arr[11] = v / 0x100000000 & 0xff; - arr[12] = v >>> 24 & 0xff; - arr[13] = v >>> 16 & 0xff; - arr[14] = v >>> 8 & 0xff; - arr[15] = v & 0xff; - return arr; + if (!validate(uuid)) { + throw TypeError('Invalid UUID'); + } + let v; + return Uint8Array.of((v = parseInt(uuid.slice(0, 8), 16)) >>> 24, (v >>> 16) & 0xff, (v >>> 8) & 0xff, v & 0xff, (v = parseInt(uuid.slice(9, 13), 16)) >>> 8, v & 0xff, (v = parseInt(uuid.slice(14, 18), 16)) >>> 8, v & 0xff, (v = parseInt(uuid.slice(19, 23), 16)) >>> 8, v & 0xff, ((v = parseInt(uuid.slice(24, 36), 16)) / 0x10000000000) & 0xff, (v / 0x100000000) & 0xff, (v >>> 24) & 0xff, (v >>> 16) & 0xff, (v >>> 8) & 0xff, v & 0xff); } -export default parse; \ No newline at end of file +export default parse; +//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoicGFyc2UuanMiLCJzb3VyY2VSb290IjoiIiwic291cmNlcyI6WyIuLi8uLi9zcmMvcGFyc2UudHMiXSwibmFtZXMiOltdLCJtYXBwaW5ncyI6IkFBQUEsT0FBTyxRQUFRLE1BQU0sZUFBZSxDQUFDO0FBRXJDLFNBQVMsS0FBSyxDQUFDLElBQVk7SUFDekIsSUFBSSxDQUFDLFFBQVEsQ0FBQyxJQUFJLENBQUMsRUFBRSxDQUFDO1FBQ3BCLE1BQU0sU0FBUyxDQUFDLGNBQWMsQ0FBQyxDQUFDO0lBQ2xDLENBQUM7SUFFRCxJQUFJLENBQUMsQ0FBQztJQUNOLE9BQU8sVUFBVSxDQUFDLEVBQUUsQ0FDbEIsQ0FBQyxDQUFDLEdBQUcsUUFBUSxDQUFDLElBQUksQ0FBQyxLQUFLLENBQUMsQ0FBQyxFQUFFLENBQUMsQ0FBQyxFQUFFLEVBQUUsQ0FBQyxDQUFDLEtBQUssRUFBRSxFQUMzQyxDQUFDLENBQUMsS0FBSyxFQUFFLENBQUMsR0FBRyxJQUFJLEVBQ2pCLENBQUMsQ0FBQyxLQUFLLENBQUMsQ0FBQyxHQUFHLElBQUksRUFDaEIsQ0FBQyxHQUFHLElBQUksRUFHUixDQUFDLENBQUMsR0FBRyxRQUFRLENBQUMsSUFBSSxDQUFDLEtBQUssQ0FBQyxDQUFDLEVBQUUsRUFBRSxDQUFDLEVBQUUsRUFBRSxDQUFDLENBQUMsS0FBSyxDQUFDLEVBQzNDLENBQUMsR0FBRyxJQUFJLEVBR1IsQ0FBQyxDQUFDLEdBQUcsUUFBUSxDQUFDLElBQUksQ0FBQyxLQUFLLENBQUMsRUFBRSxFQUFFLEVBQUUsQ0FBQyxFQUFFLEVBQUUsQ0FBQyxDQUFDLEtBQUssQ0FBQyxFQUM1QyxDQUFDLEdBQUcsSUFBSSxFQUdSLENBQUMsQ0FBQyxHQUFHLFFBQVEsQ0FBQyxJQUFJLENBQUMsS0FBSyxDQUFDLEVBQUUsRUFBRSxFQUFFLENBQUMsRUFBRSxFQUFFLENBQUMsQ0FBQyxLQUFLLENBQUMsRUFDNUMsQ0FBQyxHQUFHLElBQUksRUFJUixDQUFDLENBQUMsQ0FBQyxHQUFHLFFBQVEsQ0FBQyxJQUFJLENBQUMsS0FBSyxDQUFDLEVBQUUsRUFBRSxFQUFFLENBQUMsRUFBRSxFQUFFLENBQUMsQ0FBQyxHQUFHLGFBQWEsQ0FBQyxHQUFHLElBQUksRUFDL0QsQ0FBQyxDQUFDLEdBQUcsV0FBVyxDQUFDLEdBQUcsSUFBSSxFQUN4QixDQUFDLENBQUMsS0FBSyxFQUFFLENBQUMsR0FBRyxJQUFJLEVBQ2pCLENBQUMsQ0FBQyxLQUFLLEVBQUUsQ0FBQyxHQUFHLElBQUksRUFDakIsQ0FBQyxDQUFDLEtBQUssQ0FBQyxDQUFDLEdBQUcsSUFBSSxFQUNoQixDQUFDLEdBQUcsSUFBSSxDQUNULENBQUM7QUFDSixDQUFDO0FBRUQsZUFBZSxLQUFLLENBQUMifQ== \ No newline at end of file diff --git a/node_modules/uuid/dist/esm-browser/regex.d.ts b/node_modules/uuid/dist/esm-browser/regex.d.ts new file mode 100644 index 0000000000..d39fa3f6a8 --- /dev/null +++ b/node_modules/uuid/dist/esm-browser/regex.d.ts @@ -0,0 +1,2 @@ +declare const _default: RegExp; +export default _default; diff --git a/node_modules/uuid/dist/esm-browser/regex.js b/node_modules/uuid/dist/esm-browser/regex.js index 848a1fea3c..efea249777 100644 --- a/node_modules/uuid/dist/esm-browser/regex.js +++ b/node_modules/uuid/dist/esm-browser/regex.js @@ -1 +1,2 @@ -export default /^(?:[0-9a-f]{8}-[0-9a-f]{4}-[1-8][0-9a-f]{3}-[89ab][0-9a-f]{3}-[0-9a-f]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$/i; \ No newline at end of file +export default /^(?:[0-9a-f]{8}-[0-9a-f]{4}-[1-8][0-9a-f]{3}-[89ab][0-9a-f]{3}-[0-9a-f]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$/i; +//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoicmVnZXguanMiLCJzb3VyY2VSb290IjoiIiwic291cmNlcyI6WyIuLi8uLi9zcmMvcmVnZXgudHMiXSwibmFtZXMiOltdLCJtYXBwaW5ncyI6IkFBQUEsZUFBZSwwSkFBMEosQ0FBQyJ9 \ No newline at end of file diff --git a/node_modules/uuid/dist/esm-browser/rng.d.ts b/node_modules/uuid/dist/esm-browser/rng.d.ts new file mode 100644 index 0000000000..73e60cf348 --- /dev/null +++ b/node_modules/uuid/dist/esm-browser/rng.d.ts @@ -0,0 +1 @@ +export default function rng(): Uint8Array; diff --git a/node_modules/uuid/dist/esm-browser/rng.js b/node_modules/uuid/dist/esm-browser/rng.js index e54d3888a4..14c0473cb8 100644 --- a/node_modules/uuid/dist/esm-browser/rng.js +++ b/node_modules/uuid/dist/esm-browser/rng.js @@ -1,17 +1,12 @@ -// Unique ID creation requires a high quality random # generator. In the browser we therefore -// require the crypto API and do not support built-in fallback to lower quality random number -// generators (like Math.random()). - -var getRandomValues; -var rnds8 = new Uint8Array(16); +let getRandomValues; +const rnds8 = new Uint8Array(16); export default function rng() { - // lazy load so that environments that need to polyfill have a chance to do so - if (!getRandomValues) { - // getRandomValues needs to be invoked in a context where "this" is a Crypto implementation. - getRandomValues = typeof crypto !== 'undefined' && crypto.getRandomValues && crypto.getRandomValues.bind(crypto); if (!getRandomValues) { - throw new Error('crypto.getRandomValues() not supported. See https://github.com/uuidjs/uuid#getrandomvalues-not-supported'); + if (typeof crypto === 'undefined' || !crypto.getRandomValues) { + throw new Error('crypto.getRandomValues() not supported. See https://github.com/uuidjs/uuid#getrandomvalues-not-supported'); + } + getRandomValues = crypto.getRandomValues.bind(crypto); } - } - return getRandomValues(rnds8); -} \ No newline at end of file + return getRandomValues(rnds8); +} +//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoicm5nLWJyb3dzZXIuanMiLCJzb3VyY2VSb290IjoiIiwic291cmNlcyI6WyIuLi8uLi9zcmMvcm5nLWJyb3dzZXIudHMiXSwibmFtZXMiOltdLCJtYXBwaW5ncyI6IkFBSUEsSUFBSSxlQUEwRCxDQUFDO0FBRS9ELE1BQU0sS0FBSyxHQUFHLElBQUksVUFBVSxDQUFDLEVBQUUsQ0FBQyxDQUFDO0FBRWpDLE1BQU0sQ0FBQyxPQUFPLFVBQVUsR0FBRztJQUV6QixJQUFJLENBQUMsZUFBZSxFQUFFLENBQUM7UUFDckIsSUFBSSxPQUFPLE1BQU0sS0FBSyxXQUFXLElBQUksQ0FBQyxNQUFNLENBQUMsZUFBZSxFQUFFLENBQUM7WUFDN0QsTUFBTSxJQUFJLEtBQUssQ0FDYiwwR0FBMEcsQ0FDM0csQ0FBQztRQUNKLENBQUM7UUFFRCxlQUFlLEdBQUcsTUFBTSxDQUFDLGVBQWUsQ0FBQyxJQUFJLENBQUMsTUFBTSxDQUFDLENBQUM7SUFDeEQsQ0FBQztJQUVELE9BQU8sZUFBZSxDQUFDLEtBQUssQ0FBQyxDQUFDO0FBQ2hDLENBQUMifQ== \ No newline at end of file diff --git a/node_modules/uuid/dist/esm-browser/sha1.d.ts b/node_modules/uuid/dist/esm-browser/sha1.d.ts new file mode 100644 index 0000000000..a6552e5d11 --- /dev/null +++ b/node_modules/uuid/dist/esm-browser/sha1.d.ts @@ -0,0 +1,2 @@ +declare function sha1(bytes: Uint8Array): Uint8Array; +export default sha1; diff --git a/node_modules/uuid/dist/esm-browser/sha1.js b/node_modules/uuid/dist/esm-browser/sha1.js index bd88311572..64a3722643 100644 --- a/node_modules/uuid/dist/esm-browser/sha1.js +++ b/node_modules/uuid/dist/esm-browser/sha1.js @@ -1,76 +1,71 @@ -// Adapted from Chris Veness' SHA1 code at -// http://www.movable-type.co.uk/scripts/sha1.html function f(s, x, y, z) { - switch (s) { - case 0: - return x & y ^ ~x & z; - case 1: - return x ^ y ^ z; - case 2: - return x & y ^ x & z ^ y & z; - case 3: - return x ^ y ^ z; - } + switch (s) { + case 0: + return (x & y) ^ (~x & z); + case 1: + return x ^ y ^ z; + case 2: + return (x & y) ^ (x & z) ^ (y & z); + case 3: + return x ^ y ^ z; + } } function ROTL(x, n) { - return x << n | x >>> 32 - n; + return (x << n) | (x >>> (32 - n)); } function sha1(bytes) { - var K = [0x5a827999, 0x6ed9eba1, 0x8f1bbcdc, 0xca62c1d6]; - var H = [0x67452301, 0xefcdab89, 0x98badcfe, 0x10325476, 0xc3d2e1f0]; - if (typeof bytes === 'string') { - var msg = unescape(encodeURIComponent(bytes)); // UTF8 escape - - bytes = []; - for (var i = 0; i < msg.length; ++i) { - bytes.push(msg.charCodeAt(i)); - } - } else if (!Array.isArray(bytes)) { - // Convert Array-like to Array - bytes = Array.prototype.slice.call(bytes); - } - bytes.push(0x80); - var l = bytes.length / 4 + 2; - var N = Math.ceil(l / 16); - var M = new Array(N); - for (var _i = 0; _i < N; ++_i) { - var arr = new Uint32Array(16); - for (var j = 0; j < 16; ++j) { - arr[j] = bytes[_i * 64 + j * 4] << 24 | bytes[_i * 64 + j * 4 + 1] << 16 | bytes[_i * 64 + j * 4 + 2] << 8 | bytes[_i * 64 + j * 4 + 3]; - } - M[_i] = arr; - } - M[N - 1][14] = (bytes.length - 1) * 8 / Math.pow(2, 32); - M[N - 1][14] = Math.floor(M[N - 1][14]); - M[N - 1][15] = (bytes.length - 1) * 8 & 0xffffffff; - for (var _i2 = 0; _i2 < N; ++_i2) { - var W = new Uint32Array(80); - for (var t = 0; t < 16; ++t) { - W[t] = M[_i2][t]; - } - for (var _t = 16; _t < 80; ++_t) { - W[_t] = ROTL(W[_t - 3] ^ W[_t - 8] ^ W[_t - 14] ^ W[_t - 16], 1); + const K = [0x5a827999, 0x6ed9eba1, 0x8f1bbcdc, 0xca62c1d6]; + const H = [0x67452301, 0xefcdab89, 0x98badcfe, 0x10325476, 0xc3d2e1f0]; + const newBytes = new Uint8Array(bytes.length + 1); + newBytes.set(bytes); + newBytes[bytes.length] = 0x80; + bytes = newBytes; + const l = bytes.length / 4 + 2; + const N = Math.ceil(l / 16); + const M = new Array(N); + for (let i = 0; i < N; ++i) { + const arr = new Uint32Array(16); + for (let j = 0; j < 16; ++j) { + arr[j] = + (bytes[i * 64 + j * 4] << 24) | + (bytes[i * 64 + j * 4 + 1] << 16) | + (bytes[i * 64 + j * 4 + 2] << 8) | + bytes[i * 64 + j * 4 + 3]; + } + M[i] = arr; } - var a = H[0]; - var b = H[1]; - var c = H[2]; - var d = H[3]; - var e = H[4]; - for (var _t2 = 0; _t2 < 80; ++_t2) { - var s = Math.floor(_t2 / 20); - var T = ROTL(a, 5) + f(s, b, c, d) + e + K[s] + W[_t2] >>> 0; - e = d; - d = c; - c = ROTL(b, 30) >>> 0; - b = a; - a = T; + M[N - 1][14] = ((bytes.length - 1) * 8) / Math.pow(2, 32); + M[N - 1][14] = Math.floor(M[N - 1][14]); + M[N - 1][15] = ((bytes.length - 1) * 8) & 0xffffffff; + for (let i = 0; i < N; ++i) { + const W = new Uint32Array(80); + for (let t = 0; t < 16; ++t) { + W[t] = M[i][t]; + } + for (let t = 16; t < 80; ++t) { + W[t] = ROTL(W[t - 3] ^ W[t - 8] ^ W[t - 14] ^ W[t - 16], 1); + } + let a = H[0]; + let b = H[1]; + let c = H[2]; + let d = H[3]; + let e = H[4]; + for (let t = 0; t < 80; ++t) { + const s = Math.floor(t / 20); + const T = (ROTL(a, 5) + f(s, b, c, d) + e + K[s] + W[t]) >>> 0; + e = d; + d = c; + c = ROTL(b, 30) >>> 0; + b = a; + a = T; + } + H[0] = (H[0] + a) >>> 0; + H[1] = (H[1] + b) >>> 0; + H[2] = (H[2] + c) >>> 0; + H[3] = (H[3] + d) >>> 0; + H[4] = (H[4] + e) >>> 0; } - H[0] = H[0] + a >>> 0; - H[1] = H[1] + b >>> 0; - H[2] = H[2] + c >>> 0; - H[3] = H[3] + d >>> 0; - H[4] = H[4] + e >>> 0; - } - return [H[0] >> 24 & 0xff, H[0] >> 16 & 0xff, H[0] >> 8 & 0xff, H[0] & 0xff, H[1] >> 24 & 0xff, H[1] >> 16 & 0xff, H[1] >> 8 & 0xff, H[1] & 0xff, H[2] >> 24 & 0xff, H[2] >> 16 & 0xff, H[2] >> 8 & 0xff, H[2] & 0xff, H[3] >> 24 & 0xff, H[3] >> 16 & 0xff, H[3] >> 8 & 0xff, H[3] & 0xff, H[4] >> 24 & 0xff, H[4] >> 16 & 0xff, H[4] >> 8 & 0xff, H[4] & 0xff]; + return Uint8Array.of(H[0] >> 24, H[0] >> 16, H[0] >> 8, H[0], H[1] >> 24, H[1] >> 16, H[1] >> 8, H[1], H[2] >> 24, H[2] >> 16, H[2] >> 8, H[2], H[3] >> 24, H[3] >> 16, H[3] >> 8, H[3], H[4] >> 24, H[4] >> 16, H[4] >> 8, H[4]); } -export default sha1; \ No newline at end of file +export default sha1; +//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoic2hhMS1icm93c2VyLmpzIiwic291cmNlUm9vdCI6IiIsInNvdXJjZXMiOlsiLi4vLi4vc3JjL3NoYTEtYnJvd3Nlci50cyJdLCJuYW1lcyI6W10sIm1hcHBpbmdzIjoiQUFFQSxTQUFTLENBQU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ENBQUMsSUFBSSxFQUFFLEVBQ1YsQ0FBQyxDQUFDLENBQUMsQ0FBQyxJQUFJLEVBQUUsRUFDVixDQUFDLENBQUMsQ0FBQyxDQUFDLElBQUksQ0FBQyxFQUNULENBQUMsQ0FBQyxDQUFDLENBQUMsRUFDSixDQUFDLENBQUMsQ0FBQyxDQUFDLElBQUksRUFBRSxFQUNWLENBQUMsQ0FBQyxDQUFDLENBQUMsSUFBSSxFQUFFLEVBQ1YsQ0FBQyxDQUFDLENBQUMsQ0FBQyxJQUFJLENBQUMsRUFDVCxDQUFDLENBQUMsQ0FBQyxDQUFDLEVBQ0osQ0FBQyxDQUFDLENBQUMsQ0FBQyxJQUFJLEVBQUUsRUFDVixDQUFDLENBQUMsQ0FBQyxDQUFDLElBQUksRUFBRSxFQUNWLENBQUMsQ0FBQyxDQUFDLENBQUMsSUFBSSxDQUFDLEVBQ1QsQ0FBQyxDQUFDLENBQUMsQ0FBQyxFQUNKLENBQUMsQ0FBQyxDQUFDLENBQUMsSUFBSSxFQUFFLEVBQ1YsQ0FBQyxDQUFDLENBQUMsQ0FBQyxJQUFJLEVBQUUsRUFDVixDQUFDLENBQUMsQ0FBQyxDQUFDLElBQUksQ0FBQyxFQUNULENBQUMsQ0FBQyxDQUFDLENBQUMsRUFDSixDQUFDLENBQUMsQ0FBQyxDQUFDLElBQUksRUFBRSxFQUNWLENBQUMsQ0FBQyxDQUFDLENBQUMsSUFBSSxFQUFFLEVBQ1YsQ0FBQyxDQUFDLENBQUMsQ0FBQyxJQUFJLENBQUMsRUFDVCxDQUFDLENBQUMsQ0FBQyxDQUFDLENBQ0wsQ0FBQztBQUNKLENBQUM7QUFFRCxlQUFlLElBQUksQ0FBQyJ9 \ No newline at end of file diff --git a/node_modules/uuid/dist/esm-browser/stringify.d.ts b/node_modules/uuid/dist/esm-browser/stringify.d.ts new file mode 100644 index 0000000000..16cb008833 --- /dev/null +++ b/node_modules/uuid/dist/esm-browser/stringify.d.ts @@ -0,0 +1,3 @@ +export declare function unsafeStringify(arr: Uint8Array, offset?: number): string; +declare function stringify(arr: Uint8Array, offset?: number): string; +export default stringify; diff --git a/node_modules/uuid/dist/esm-browser/stringify.js b/node_modules/uuid/dist/esm-browser/stringify.js index 0a9cf40814..268c2fe47c 100644 --- a/node_modules/uuid/dist/esm-browser/stringify.js +++ b/node_modules/uuid/dist/esm-browser/stringify.js @@ -1,31 +1,36 @@ import validate from './validate.js'; - -/** - * Convert array of 16 byte values to UUID string format of the form: - * XXXXXXXX-XXXX-XXXX-XXXX-XXXXXXXXXXXX - */ -var byteToHex = []; -for (var i = 0; i < 256; ++i) { - byteToHex.push((i + 0x100).toString(16).slice(1)); +const byteToHex = []; +for (let i = 0; i < 256; ++i) { + byteToHex.push((i + 0x100).toString(16).slice(1)); } export function unsafeStringify(arr, offset = 0) { - // Note: Be careful editing this code! It's been tuned for performance - // and works in ways you may not expect. See https://github.com/uuidjs/uuid/pull/434 - // - // Note to future-self: No, you can't remove the `toLowerCase()` call. - // REF: https://github.com/uuidjs/uuid/pull/677#issuecomment-1757351351 - return (byteToHex[arr[offset + 0]] + byteToHex[arr[offset + 1]] + byteToHex[arr[offset + 2]] + byteToHex[arr[offset + 3]] + '-' + byteToHex[arr[offset + 4]] + byteToHex[arr[offset + 5]] + '-' + byteToHex[arr[offset + 6]] + byteToHex[arr[offset + 7]] + '-' + byteToHex[arr[offset + 8]] + byteToHex[arr[offset + 9]] + '-' + byteToHex[arr[offset + 10]] + byteToHex[arr[offset + 11]] + byteToHex[arr[offset + 12]] + byteToHex[arr[offset + 13]] + byteToHex[arr[offset + 14]] + byteToHex[arr[offset + 15]]).toLowerCase(); + return (byteToHex[arr[offset + 0]] + + byteToHex[arr[offset + 1]] + + byteToHex[arr[offset + 2]] + + byteToHex[arr[offset + 3]] + + '-' + + byteToHex[arr[offset + 4]] + + byteToHex[arr[offset + 5]] + + '-' + + byteToHex[arr[offset + 6]] + + byteToHex[arr[offset + 7]] + + '-' + + byteToHex[arr[offset + 8]] + + byteToHex[arr[offset + 9]] + + '-' + + byteToHex[arr[offset + 10]] + + byteToHex[arr[offset + 11]] + + byteToHex[arr[offset + 12]] + + byteToHex[arr[offset + 13]] + + byteToHex[arr[offset + 14]] + + byteToHex[arr[offset + 15]]).toLowerCase(); } function stringify(arr, offset = 0) { - var uuid = unsafeStringify(arr, offset); - // Consistency check for valid UUID. If this throws, it's likely due to one - // of the following: - // - One or more input array values don't map to a hex octet (leading to - // "undefined" in the uuid) - // - Invalid input values for the RFC `version` or `variant` fields - if (!validate(uuid)) { - throw TypeError('Stringified UUID is invalid'); - } - return uuid; + const uuid = unsafeStringify(arr, offset); + if (!validate(uuid)) { + throw TypeError('Stringified UUID is invalid'); + } + return uuid; } -export default stringify; \ No newline at end of file +export default stringify; +//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoic3RyaW5naWZ5LmpzIiwic291cmNlUm9vdCI6IiIsInNvdXJjZXMiOlsiLi4vLi4vc3JjL3N0cmluZ2lmeS50cyJdLCJuYW1lcyI6W10sIm1hcHBpbmdzIjoiQUFBQSxPQUFPLFFBQVEsTUFBTSxlQUFlLENBQUM7QUFNckMsTUFBTSxTQUFTLEdBQWEsRUFBRSxDQUFDO0FBRS9CLEtBQUssSUFBSSxDQUFDLEdBQUcsQ0FBQyxFQUFFLENBQUMsR0FBRyxHQUFHLEVBQUUsRUFBRSxDQUFDLEVBQUUsQ0FBQztJQUM3QixTQUFTLENBQUMsSUFBSSxDQUFDLENBQUMsQ0FBQyxHQUFHLEtBQUssQ0FBQyxDQUFDLFFBQVEsQ0FBQyxFQUFFLENBQUMsQ0FBQyxLQUFLLENBQUMsQ0FBQyxDQUFDLENBQUMsQ0FBQztBQUNwRCxDQUFDO0FBRUQsTUFBTSxVQUFVLGVBQWUsQ0FBQyxHQUFlLEVBQUUsTUFBTSxHQUFHLENBQUM7SUFNekQsT0FBTyxDQUNMLFNBQVMsQ0FBQyxHQUFHLENBQUMsTUFBTSxHQU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BQUMsR0FBRyxDQUFDLE1BQU0sR0FBRyxFQUFFLENBQUMsQ0FBQyxDQUM1QixDQUFDLFdBQVcsRUFBRSxDQUFDO0FBQ2xCLENBQUM7QUFFRCxTQUFTLFNBQVMsQ0FBQyxHQUFlLEVBQUUsTUFBTSxHQUFHLENBQUM7SUFDNUMsTUFBTSxJQUFJLEdBQUcsZUFBZSxDQUFDLEdBQUcsRUFBRSxNQUFNLENBQUMsQ0FBQztJQU8xQyxJQUFJLENBQUMsUUFBUSxDQUFDLElBQUksQ0FBQyxFQUFFLENBQUM7UUFDcEIsTUFBTSxTQUFTLENBQUMsNkJBQTZCLENBQUMsQ0FBQztJQUNqRCxDQUFDO0lBRUQsT0FBTyxJQUFJLENBQUM7QUFDZCxDQUFDO0FBRUQsZUFBZSxTQUFTLENBQUMifQ== \ No newline at end of file diff --git a/node_modules/uuid/dist/esm-browser/test/parse.test.d.ts b/node_modules/uuid/dist/esm-browser/test/parse.test.d.ts new file mode 100644 index 0000000000..cb0ff5c3b5 --- /dev/null +++ b/node_modules/uuid/dist/esm-browser/test/parse.test.d.ts @@ -0,0 +1 @@ +export {}; diff --git a/node_modules/uuid/dist/esm-browser/test/parse.test.js b/node_modules/uuid/dist/esm-browser/test/parse.test.js new file mode 100644 index 0000000000..00042f0167 --- /dev/null +++ b/node_modules/uuid/dist/esm-browser/test/parse.test.js @@ -0,0 +1,49 @@ +import * as assert from 'assert'; +import test, { describe } from 'node:test'; +import parse from '../parse.js'; +import stringify from '../stringify.js'; +import uuidv4 from '../v4.js'; +function splitmix32(a) { + return function () { + a |= 0; + a = (a + 0x9e3779b9) | 0; + let t = a ^ (a >>> 16); + t = Math.imul(t, 0x21f0aaad); + t = t ^ (t >>> 15); + t = Math.imul(t, 0x735a2d97); + return ((t = t ^ (t >>> 15)) >>> 0) / 4294967296; + }; +} +const rand = splitmix32(0x12345678); +function rng(bytes = new Uint8Array(16)) { + for (let i = 0; i < 16; i++) { + bytes[i] = rand() * 256; + } + return bytes; +} +describe('parse', () => { + test('String -> bytes parsing', () => { + assert.deepStrictEqual(parse('0f5abcd1-c194-47f3-905b-2df7263a084b'), Uint8Array.from([ + 0x0f, 0x5a, 0xbc, 0xd1, 0xc1, 0x94, 0x47, 0xf3, 0x90, 0x5b, 0x2d, 0xf7, 0x26, 0x3a, 0x08, + 0x4b, + ])); + }); + test('String -> bytes -> string symmetry for assorted uuids', () => { + for (let i = 0; i < 1000; i++) { + const uuid = uuidv4({ rng }); + assert.equal(stringify(parse(uuid)), uuid); + } + }); + test('Case neutrality', () => { + assert.deepStrictEqual(parse('0f5abcd1-c194-47f3-905b-2df7263a084b'), parse('0f5abcd1-c194-47f3-905b-2df7263a084b'.toUpperCase())); + }); + test('Null UUID case', () => { + assert.deepStrictEqual(parse('00000000-0000-0000-0000-000000000000'), Uint8Array.from(new Array(16).fill(0))); + }); + test('UUID validation', () => { + assert.throws(() => parse()); + assert.throws(() => parse('invalid uuid')); + assert.throws(() => parse('zyxwvuts-rqpo-nmlk-jihg-fedcba000000')); + }); +}); +//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoicGFyc2UudGVzdC5qcyIsInNvdXJjZVJvb3QiOiIiLCJzb3VyY2VzIjpbIi4uLy4uLy4uL3NyYy90ZXN0L3BhcnNlLnRlc3QudHMiXSwibmFtZXMiOltdLCJtYXBwaW5ncyI6IkFBQUEsT0FBTyxLQUFLLE1BQU0sTUFBTSxRQUFRLENBQUM7QUFDakMsT0FBTyxJQUFJLEVBQUUsRUFBRSxRQUFRLEVBQUUsTUFBTSxXQUFXLENBQUM7QUFDM0MsT0FBTyxLQUFLLE1BQU0sYUFBYSxDQUFDO0FBQ2hDLE9BQU8sU0FBUyxNQUFNLGlCQUFpQixDQUFDO0FBQ3hDLE9BQU8sTUFBTSxNQUFNLFVBQVUsQ0FBQztBQUk5QixTQUFTLFVBQVUsQ0FBQyxDQUFTO0lBQzNCLE9BQU87UUFDTCxDQUFDLElBQUksQ0FBQy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LENBQUMsc0NBQXNDLENBQUMsRUFDN0MsVUFBVSxDQUFDLElBQUksQ0FBQyxJQUFJLEtBQUssQ0FBQyxFQUFFLENBQUMsQ0FBQyxJQUFJLENBQUMsQ0FBQyxDQUFDLENBQUMsQ0FDdkMsQ0FBQztJQUNKLENBQUMsQ0FBQyxDQUFDO0lBRUgsSUFBSSxDQUFDLGlCQUFpQixFQUFFLEdBQUcsRUFBRTtRQUUzQixNQUFNLENBQUMsTUFBTSxDQUFDLEdBQUcsRUFBRSxDQUFDLEtBQUssRUFBRSxDQUFDLENBQUM7UUFFN0IsTUFBTSxDQUFDLE1BQU0sQ0FBQyxHQUFHLEVBQUUsQ0FBQyxLQUFLLENBQUMsY0FBYyxDQUFDLENBQUMsQ0FBQztRQUMzQyxNQUFNLENBQUMsTUFBTSxDQUFDLEdBQUcsRUFBRSxDQUFDLEtBQUssQ0FBQyxzQ0FBc0MsQ0FBQyxDQUFDLENBQUM7SUFDckUsQ0FBQyxDQUFDLENBQUM7QUFDTCxDQUFDLENBQUMsQ0FBQyJ9 \ No newline at end of file diff --git a/node_modules/uuid/dist/esm-browser/test/rng.test.d.ts b/node_modules/uuid/dist/esm-browser/test/rng.test.d.ts new file mode 100644 index 0000000000..cb0ff5c3b5 --- /dev/null +++ b/node_modules/uuid/dist/esm-browser/test/rng.test.d.ts @@ -0,0 +1 @@ +export {}; diff --git a/node_modules/uuid/dist/esm-browser/test/rng.test.js b/node_modules/uuid/dist/esm-browser/test/rng.test.js new file mode 100644 index 0000000000..1a79186855 --- /dev/null +++ b/node_modules/uuid/dist/esm-browser/test/rng.test.js @@ -0,0 +1,13 @@ +import * as assert from 'assert'; +import test, { describe } from 'node:test'; +import rng from '../rng.js'; +describe('rng', () => { + test('Node.js RNG', () => { + const bytes = rng(); + assert.equal(bytes.length, 16); + for (let i = 0; i < bytes.length; ++i) { + assert.equal(typeof bytes[i], 'number'); + } + }); +}); +//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoicm5nLnRlc3QuanMiLCJzb3VyY2VSb290IjoiIiwic291cmNlcyI6WyIuLi8uLi8uLi9zcmMvdGVzdC9ybmcudGVzdC50cyJdLCJuYW1lcyI6W10sIm1hcHBpbmdzIjoiQUFBQSxPQUFPLEtBQUssTUFBTSxNQUFNLFFBQVEsQ0FBQztBQUNqQyxPQUFPLElBQUksRUFBRSxFQUFFLFFBQVEsRUFBRSxNQUFNLFdBQVcsQ0FBQztBQUMzQyxPQUFPLEdBQUcsTUFBTSxXQUFXLENBQUM7QUFFNUIsUUFBUSxDQUFDLEtBQUssRUFBRSxHQUFHLEVBQUU7SUFDbkIsSUFBSSxDQUFDLGFBQWEsRUFBRSxHQUFHLEVBQUU7UUFDdkIsTUFBTSxLQUFLLEdBQUcsR0FBRyxFQUFFLENBQUM7UUFDcEIsTUFBTSxDQUFDLEtBQUssQ0FBQyxLQUFLLENBQUMsTUFBTSxFQUFFLEVBQUUsQ0FBQyxDQUFDO1FBRS9CLEtBQUssSUFBSSxDQUFDLEdBQUcsQ0FBQyxFQUFFLENBQUMsR0FBRyxLQUFLLENBQUMsTUFBTSxFQUFFLEVBQUUsQ0FBQyxFQUFFLENBQUM7WUFDdEMsTUFBTSxDQUFDLEtBQUssQ0FBQyxPQUFPLEtBQUssQ0FBQyxDQUFDLENBQUMsRUFBRSxRQUFRLENBQUMsQ0FBQztRQUMxQyxDQUFDO0lBQ0gsQ0FBQyxDQUFDLENBQUM7QUFJTCxDQUFDLENBQUMsQ0FBQyJ9 \ No newline at end of file diff --git a/node_modules/uuid/dist/esm-browser/test/stringify.test.d.ts b/node_modules/uuid/dist/esm-browser/test/stringify.test.d.ts new file mode 100644 index 0000000000..cb0ff5c3b5 --- /dev/null +++ b/node_modules/uuid/dist/esm-browser/test/stringify.test.d.ts @@ -0,0 +1 @@ +export {}; diff --git a/node_modules/uuid/dist/esm-browser/test/stringify.test.js b/node_modules/uuid/dist/esm-browser/test/stringify.test.js new file mode 100644 index 0000000000..91ffaed6d1 --- /dev/null +++ b/node_modules/uuid/dist/esm-browser/test/stringify.test.js @@ -0,0 +1,22 @@ +import * as assert from 'assert'; +import test, { describe } from 'node:test'; +import stringify, { unsafeStringify } from '../stringify.js'; +const BYTES = Uint8Array.of(0x0f, 0x5a, 0xbc, 0xd1, 0xc1, 0x94, 0x47, 0xf3, 0x90, 0x5b, 0x2d, 0xf7, 0x26, 0x3a, 0x08, 0x4b); +describe('stringify', () => { + test('Stringify Array (unsafe)', () => { + assert.equal(unsafeStringify(BYTES), '0f5abcd1-c194-47f3-905b-2df7263a084b'); + }); + test('Stringify w/ offset (unsafe)', () => { + const bytes = new Uint8Array(19).fill(0); + bytes.set(BYTES, 3); + assert.equal(unsafeStringify(bytes, 3), '0f5abcd1-c194-47f3-905b-2df7263a084b'); + }); + test('Stringify Array (safe)', () => { + assert.equal(stringify(BYTES), '0f5abcd1-c194-47f3-905b-2df7263a084b'); + }); + test('Throws on not enough values (safe)', () => { + const bytes = BYTES.slice(0, 15); + assert.throws(() => stringify(bytes)); + }); +}); +//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoic3RyaW5naWZ5LnRlc3QuanMiLCJzb3VyY2VSb290IjoiIiwic291cmNlcyI6WyIuLi8uLi8uLi9zcmMvdGVzdC9zdHJpbmdpZnkudGVzdC50cyJdLCJuYW1lcyI6W10sIm1hcHBpbmdzIjoiQUFBQSxPQUFPLEtBQUssTUFBTSxNQUFNLFFBQVEsQ0FBQztBQUNqQyxPQUFPLElBQUksRUFBRSxFQUFFLFFBQVEsRUFBRSxNQUFNLFdBQVcsQ0FBQztBQUMzQyxPQUFPLFNBQVMsRUFBRSxFQUFFLGVBQWUsRUFBRSxNQUFNLGlCQUFpQixDQUFDO0FBRTdELE1BQU0sS0FBSyxHQUFHLFVBQVUsQ0FBQyxFQUFFLENBQ3pCLElBQUksRUFDSixJQUFJLEVBQ0osSUFBSSxFQUNKLElBQUksRUFDSixJQUFJLEVBQ0osSU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0FBQyxNQUFNLENBQUMsR0FBRyxFQUFFLENBQUMsU0FBUyxDQUFDLEtBQUssQ0FBQyxDQUFDLENBQUM7SUFDeEMsQ0FBQyxDQUFDLENBQUM7QUFDTCxDQUFDLENBQUMsQ0FBQyJ9 \ No newline at end of file diff --git a/node_modules/uuid/dist/esm-browser/test/test_constants.d.ts b/node_modules/uuid/dist/esm-browser/test/test_constants.d.ts new file mode 100644 index 0000000000..959a679fd0 --- /dev/null +++ b/node_modules/uuid/dist/esm-browser/test/test_constants.d.ts @@ -0,0 +1,33 @@ +export declare const TESTS: ({ + value: string; + expectedValidate: boolean; + expectedVersion: number; +} | { + value: string; + expectedValidate: boolean; + expectedVersion?: undefined; +} | { + value: undefined; + expectedValidate: boolean; + expectedVersion?: undefined; +} | { + value: null; + expectedValidate: boolean; + expectedVersion?: undefined; +} | { + value: number; + expectedValidate: boolean; + expectedVersion?: undefined; +} | { + value: RegExp; + expectedValidate: boolean; + expectedVersion?: undefined; +} | { + value: Date; + expectedValidate: boolean; + expectedVersion?: undefined; +} | { + value: boolean; + expectedValidate: boolean; + expectedVersion?: undefined; +})[]; diff --git a/node_modules/uuid/dist/esm-browser/test/test_constants.js b/node_modules/uuid/dist/esm-browser/test/test_constants.js new file mode 100644 index 0000000000..77b184bae7 --- /dev/null +++ b/node_modules/uuid/dist/esm-browser/test/test_constants.js @@ -0,0 +1,89 @@ +import MAX from '../max.js'; +import NIL from '../nil.js'; +export const TESTS = [ + { value: NIL, expectedValidate: true, expectedVersion: 0 }, + { value: MAX, expectedValidate: true, expectedVersion: 15 }, + { value: '00000000-0000-1000-8000-000000000000', expectedValidate: true, expectedVersion: 1 }, + { value: 'ffffffff-ffff-1fff-8fff-ffffffffffff', expectedValidate: true, expectedVersion: 1 }, + { value: '00000000-0000-2000-8000-000000000000', expectedValidate: true, expectedVersion: 2 }, + { value: 'ffffffff-ffff-2fff-bfff-ffffffffffff', expectedValidate: true, expectedVersion: 2 }, + { value: '00000000-0000-3000-8000-000000000000', expectedValidate: true, expectedVersion: 3 }, + { value: 'ffffffff-ffff-3fff-bfff-ffffffffffff', expectedValidate: true, expectedVersion: 3 }, + { value: '00000000-0000-4000-8000-000000000000', expectedValidate: true, expectedVersion: 4 }, + { value: 'ffffffff-ffff-4fff-bfff-ffffffffffff', expectedValidate: true, expectedVersion: 4 }, + { value: '00000000-0000-5000-8000-000000000000', expectedValidate: true, expectedVersion: 5 }, + { value: 'ffffffff-ffff-5fff-bfff-ffffffffffff', expectedValidate: true, expectedVersion: 5 }, + { value: '00000000-0000-6000-8000-000000000000', expectedValidate: true, expectedVersion: 6 }, + { value: 'ffffffff-ffff-6fff-bfff-ffffffffffff', expectedValidate: true, expectedVersion: 6 }, + { value: '00000000-0000-7000-8000-000000000000', expectedValidate: true, expectedVersion: 7 }, + { value: 'ffffffff-ffff-7fff-bfff-ffffffffffff', expectedValidate: true, expectedVersion: 7 }, + { value: '00000000-0000-8000-8000-000000000000', expectedValidate: true, expectedVersion: 8 }, + { value: 'ffffffff-ffff-8fff-bfff-ffffffffffff', expectedValidate: true, expectedVersion: 8 }, + { value: '00000000-0000-9000-8000-000000000000', expectedValidate: false }, + { value: 'ffffffff-ffff-9fff-bfff-ffffffffffff', expectedValidate: false }, + { value: '00000000-0000-a000-8000-000000000000', expectedValidate: false }, + { value: 'ffffffff-ffff-afff-bfff-ffffffffffff', expectedValidate: false }, + { value: '00000000-0000-b000-8000-000000000000', expectedValidate: false }, + { value: 'ffffffff-ffff-bfff-bfff-ffffffffffff', expectedValidate: false }, + { value: '00000000-0000-c000-8000-000000000000', expectedValidate: false }, + { value: 'ffffffff-ffff-cfff-bfff-ffffffffffff', expectedValidate: false }, + { value: '00000000-0000-d000-8000-000000000000', expectedValidate: false }, + { value: 'ffffffff-ffff-dfff-bfff-ffffffffffff', expectedValidate: false }, + { value: '00000000-0000-e000-8000-000000000000', expectedValidate: false }, + { value: 'ffffffff-ffff-efff-bfff-ffffffffffff', expectedValidate: false }, + { value: 'd9428888-122b-11e1-b85c-61cd3cbb3210', expectedValidate: true, expectedVersion: 1 }, + { value: '000003e8-2363-21ef-b200-325096b39f47', expectedValidate: true, expectedVersion: 2 }, + { value: 'a981a0c2-68b1-35dc-bcfc-296e52ab01ec', expectedValidate: true, expectedVersion: 3 }, + { value: '109156be-c4fb-41ea-b1b4-efe1671c5836', expectedValidate: true, expectedVersion: 4 }, + { value: '90123e1c-7512-523e-bb28-76fab9f2f73d', expectedValidate: true, expectedVersion: 5 }, + { value: '1ef21d2f-1207-6660-8c4f-419efbd44d48', expectedValidate: true, expectedVersion: 6 }, + { value: '017f22e2-79b0-7cc3-98c4-dc0c0c07398f', expectedValidate: true, expectedVersion: 7 }, + { value: '0d8f23a0-697f-83ae-802e-48f3756dd581', expectedValidate: true, expectedVersion: 8 }, + { value: '00000000-0000-1000-0000-000000000000', expectedValidate: false }, + { value: '00000000-0000-1000-1000-000000000000', expectedValidate: false }, + { value: '00000000-0000-1000-2000-000000000000', expectedValidate: false }, + { value: '00000000-0000-1000-3000-000000000000', expectedValidate: false }, + { value: '00000000-0000-1000-4000-000000000000', expectedValidate: false }, + { value: '00000000-0000-1000-5000-000000000000', expectedValidate: false }, + { value: '00000000-0000-1000-6000-000000000000', expectedValidate: false }, + { value: '00000000-0000-1000-7000-000000000000', expectedValidate: false }, + { value: '00000000-0000-1000-8000-000000000000', expectedValidate: true, expectedVersion: 1 }, + { value: '00000000-0000-1000-9000-000000000000', expectedValidate: true, expectedVersion: 1 }, + { value: '00000000-0000-1000-a000-000000000000', expectedValidate: true, expectedVersion: 1 }, + { value: '00000000-0000-1000-b000-000000000000', expectedValidate: true, expectedVersion: 1 }, + { value: '00000000-0000-1000-c000-000000000000', expectedValidate: false }, + { value: '00000000-0000-1000-d000-000000000000', expectedValidate: false }, + { value: '00000000-0000-1000-e000-000000000000', expectedValidate: false }, + { value: '00000000-0000-1000-f000-000000000000', expectedValidate: false }, + { value: '00000000000000000000000000000000', expectedValidate: false }, + { value: '', expectedValidate: false }, + { value: 'invalid uuid string', expectedValidate: false }, + { + value: '=Y00a-f*vb*-c-d#-p00f\b-g0h-#i^-j*3&-L00k-\nl---00n-fg000-00p-00r+', + expectedValidate: false, + }, + { value: undefined, expectedValidate: false }, + { value: null, expectedValidate: false }, + { value: 123, expectedValidate: false }, + { value: /regex/, expectedValidate: false }, + { value: new Date(0), expectedValidate: false }, + { value: false, expectedValidate: false }, +]; +for (let charIndex = 0; charIndex < 36; charIndex++) { + if (charIndex === 8 || + charIndex === 13 || + charIndex === 14 || + charIndex === 18 || + charIndex === 23) { + continue; + } + const nilChars = NIL.split(''); + const maxChars = MAX.split(''); + for (let i = 0; i < 4; i++) { + nilChars[charIndex] = (0x0 ^ (1 << i)).toString(16); + TESTS.push({ value: nilChars.join(''), expectedValidate: false }); + maxChars[charIndex] = (0xf ^ (1 << i)).toString(16); + TESTS.push({ value: maxChars.join(''), expectedValidate: false }); + } +} +//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoidGVzdF9jb25zdGFudHMuanMiLCJzb3VyY2VSb290IjoiIiwic291cmNlcyI6WyIuLi8uLi8uLi9zcmMvdGVzdC90ZXN0X2NvbnN0YW50cy50cyJdLCJuYW1lcyI6W10sIm1hcHBpbmdzIjoiQUFBQSxPQUFPLEdBQUcsTUFBTSxXQUFXLENBQUM7QUFDNUIsT0FBTyxHQUFHLE1BQU0sV0FBVyxDQUFDO0FBRzVCLE1BQU0sQ0FBQyxNQUFNLEtBQUssR0FBRztJQUVuQixFQUFFLEtBQUssRUFBRSxHQUFHLEVBQUUsZ0JBQWdCLEVBQUUsSUFBSSxFQUFFLGVBQWUsRUFBRSxDQUFDLEVBQUU7SUFDMUQsRUFBRSxLQUFLLEVBQUUsR0FBRyxFQUFFLGdCQUFnQixFQUFFLElBQUksRUFBRSxlQUFlLEVBQUUsRUFBRSxFQUFFO0lBRzNELEVBQUUsS0FBSyxFQUFFLHNDQUFzQyxFQUFFLGdCQUFnQixFQUFFLElBQUks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UsQ0FBQyxDQUFDO1FBQ3BELEtBQUssQ0FBQyxJQUFJLENBQUMsRUFBRSxLQUFLLEVBQUUsUUFBUSxDQUFDLElBQUksQ0FBQyxFQUFFLENBQUMsRUFBRSxnQkFBZ0IsRUFBRSxLQUFLLEVBQUUsQ0FBQyxDQUFDO0lBQ3BFLENBQUM7QUFDSCxDQUFDIn0= \ No newline at end of file diff --git a/node_modules/uuid/dist/esm-browser/test/v1.test.d.ts b/node_modules/uuid/dist/esm-browser/test/v1.test.d.ts new file mode 100644 index 0000000000..cb0ff5c3b5 --- /dev/null +++ b/node_modules/uuid/dist/esm-browser/test/v1.test.d.ts @@ -0,0 +1 @@ +export {}; diff --git a/node_modules/uuid/dist/esm-browser/test/v1.test.js b/node_modules/uuid/dist/esm-browser/test/v1.test.js new file mode 100644 index 0000000000..6a6c28ac7f --- /dev/null +++ b/node_modules/uuid/dist/esm-browser/test/v1.test.js @@ -0,0 +1,126 @@ +import * as assert from 'assert'; +import test, { describe } from 'node:test'; +import parse from '../parse.js'; +import v1, { updateV1State } from '../v1.js'; +const TIME = 1321644961388; +const RFC_V1 = 'c232ab00-9414-11ec-b3c8-9f68deced846'; +const RFC_V1_BYTES = parse(RFC_V1); +const RFC_OPTIONS = { + msecs: 0x17f22e279b0, + nsecs: 0, + clockseq: 0x33c8, + node: Uint8Array.of(0x9f, 0x68, 0xde, 0xce, 0xd8, 0x46), +}; +const RFC_RANDOM = Uint8Array.of(0, 0, 0, 0, 0, 0, 0, 0, RFC_OPTIONS.clockseq >> 8, RFC_OPTIONS.clockseq & 0xff, ...RFC_OPTIONS.node); +function compareV1TimeField(a, b) { + a = a.split('-').slice(0, 3).reverse().join(''); + b = b.split('-').slice(0, 3).reverse().join(''); + return a < b ? -1 : a > b ? 1 : 0; +} +describe('v1', () => { + test('v1 sort order (default)', () => { + const ids = [v1(), v1(), v1(), v1(), v1()]; + const sorted = [...ids].sort(compareV1TimeField); + assert.deepEqual(ids, sorted); + }); + test('v1 sort order (time option)', () => { + const ids = [ + v1({ msecs: TIME - 10 * 3600 * 1000 }), + v1({ msecs: TIME - 1 }), + v1({ msecs: TIME }), + v1({ msecs: TIME + 1 }), + v1({ msecs: TIME + 28 * 24 * 3600 * 1000 }), + ]; + const sorted = [...ids].sort(compareV1TimeField); + assert.deepEqual(ids, sorted); + }); + test('v1(options)', () => { + assert.equal(v1({ msecs: RFC_OPTIONS.msecs, random: RFC_RANDOM }), RFC_V1, 'minimal options'); + assert.equal(v1(RFC_OPTIONS), RFC_V1, 'full options'); + }); + test('v1(options) equality', () => { + assert.notEqual(v1({ msecs: TIME }), v1({ msecs: TIME }), 'UUIDs with minimal options differ'); + assert.equal(v1(RFC_OPTIONS), v1(RFC_OPTIONS), 'UUIDs with full options are identical'); + }); + test('fills one UUID into a buffer as expected', () => { + const buffer = new Uint8Array(16); + const result = v1(RFC_OPTIONS, buffer); + assert.deepEqual(buffer, RFC_V1_BYTES); + assert.strictEqual(buffer, result); + }); + test('fills two UUIDs into a buffer as expected', () => { + const buffer = new Uint8Array(32); + v1(RFC_OPTIONS, buffer, 0); + v1(RFC_OPTIONS, buffer, 16); + const expectedBuf = new Uint8Array(32); + expectedBuf.set(RFC_V1_BYTES); + expectedBuf.set(RFC_V1_BYTES, 16); + assert.deepEqual(buffer, expectedBuf); + }); + test('v1() state transitions', () => { + const PRE_STATE = { + msecs: 10, + nsecs: 20, + clockseq: 0x1234, + node: Uint8Array.of(0x12, 0x34, 0x56, 0x78, 0x9a, 0xbc), + }; + const tests = [ + { + title: 'initial state', + state: {}, + now: 10, + expected: { + msecs: 10, + nsecs: 0, + clockseq: RFC_OPTIONS.clockseq, + node: RFC_OPTIONS.node, + }, + }, + { + title: 'same time interval', + state: { ...PRE_STATE }, + now: PRE_STATE.msecs, + expected: { + ...PRE_STATE, + nsecs: 21, + }, + }, + { + title: 'new time interval', + state: { ...PRE_STATE }, + now: PRE_STATE.msecs + 1, + expected: { + ...PRE_STATE, + msecs: PRE_STATE.msecs + 1, + nsecs: 0, + }, + }, + { + title: 'same time interval (nsecs overflow)', + state: { ...PRE_STATE, nsecs: 9999 }, + now: PRE_STATE.msecs, + expected: { + ...PRE_STATE, + nsecs: 0, + clockseq: RFC_OPTIONS.clockseq, + node: RFC_OPTIONS.node, + }, + }, + { + title: 'time regression', + state: { ...PRE_STATE }, + now: PRE_STATE.msecs - 1, + expected: { + ...PRE_STATE, + msecs: PRE_STATE.msecs - 1, + clockseq: RFC_OPTIONS.clockseq, + node: RFC_OPTIONS.node, + }, + }, + ]; + for (const { title, state, now, expected } of tests) { + assert.deepStrictEqual(updateV1State(state, now, RFC_RANDOM), expected, `Failed: ${title}`); + } + }); +}); +//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoidjEudGVzdC5qcyIsInNvdXJjZVJvb3QiOiIiLCJzb3VyY2VzIjpbIi4uLy4uLy4uL3NyYy90ZXN0L3YxLnRlc3QudHMiXSwibmFtZXMiOltdLCJtYXBwaW5ncyI6IkFBQUEsT0FBTyxLQUFLLE1BQU0sTUFBTSxRQUFRLENBQUM7QUFDakMsT0FBTyxJQUFJLEVBQUUsRUFBRSxRQUFRLEVBQUUsTUFBTSxXQUFXLENBQUM7QUFDM0MsT0FBTyxLQUFLLE1BQU0sYUFBYSxDQUFDO0FBQ2hDLE9BQU8sRUFBRSxFQUFFLEVBQUUsYUFBYSxFQUFFLE1BQU0sVUFBVSxDQUFDO0FBRzdDLE1BQU0sSUFBSSxHQUFHLGFBQWEsQ0FBQztBQUkzQixNQUFNLE1BQU0sR0FBRyxzQ0FBc0MsQ0FBQztBQUN0RCxNQUFNLFlBQVksR0FBRyxLQUFLLENBQUMsTUFBTSxDQUFDLENBQUM7QUFHbkMsTUFBTSxXQUFXLEdBQUc7SUFDbEIsS0FBSyxFQUFFLGFBQWE7SUFDcEIsS0FBSyxFQUFFLENBQUM7SUFDUixRQUFRLEVBQUUsTUFBTTtJQUNoQixJQUFJLEVBQUUsVUFBVSxDQUFDLEVB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aUJBQWlCO2dCQUN4QixLQUFLLEVBQUUsRUFBRSxHQUFHLFNBQVMsRUFBRTtnQkFDdkIsR0FBRyxFQUFFLFNBQVMsQ0FBQyxLQUFLLEdBQUcsQ0FBQztnQkFDeEIsUUFBUSxFQUFFO29CQUNSLEdBQUcsU0FBUztvQkFDWixLQUFLLEVBQUUsU0FBUyxDQUFDLEtBQUssR0FBRyxDQUFDO29CQUMxQixRQUFRLEVBQUUsV0FBVyxDQUFDLFFBQVE7b0JBQzlCLElBQUksRUFBRSxXQUFXLENBQUMsSUFBSTtpQkFDdkI7YUFDRjtTQUNGLENBQUM7UUFDRixLQUFLLE1BQU0sRUFBRSxLQUFLLEVBQUUsS0FBSyxFQUFFLEdBQUcsRUFBRSxRQUFRLEVBQUUsSUFBSSxLQUFLLEVBQUUsQ0FBQztZQUNwRCxNQUFNLENBQUMsZUFBZSxDQUFDLGFBQWEsQ0FBQyxLQUFLLEVBQUUsR0FBRyxFQUFFLFVBQVUsQ0FBQyxFQUFFLFFBQVEsRUFBRSxXQUFXLEtBQUssRUFBRSxDQUFDLENBQUM7UUFDOUYsQ0FBQztJQUNILENBQUMsQ0FBQyxDQUFDO0FBQ0wsQ0FBQyxDQUFDLENBQUMifQ== \ No newline at end of file diff --git a/node_modules/uuid/dist/esm-browser/test/v35.test.d.ts b/node_modules/uuid/dist/esm-browser/test/v35.test.d.ts new file mode 100644 index 0000000000..cb0ff5c3b5 --- /dev/null +++ b/node_modules/uuid/dist/esm-browser/test/v35.test.d.ts @@ -0,0 +1 @@ +export {}; diff --git a/node_modules/uuid/dist/esm-browser/test/v35.test.js b/node_modules/uuid/dist/esm-browser/test/v35.test.js new file mode 100644 index 0000000000..ec47c3e9b8 --- /dev/null +++ b/node_modules/uuid/dist/esm-browser/test/v35.test.js @@ -0,0 +1,142 @@ +import * as assert from 'assert'; +import test, { describe } from 'node:test'; +import md5 from '../md5.js'; +import sha1 from '../sha1.js'; +import v3 from '../v3.js'; +import { stringToBytes } from '../v35.js'; +import v5 from '../v5.js'; +describe('v35', () => { + const HASH_SAMPLES = [ + { + input: stringToBytes(''), + sha1: 'da39a3ee5e6b4b0d3255bfef95601890afd80709', + md5: 'd41d8cd98f00b204e9800998ecf8427e', + }, + { + input: stringToBytes('\t\b\f !"#$%&\'()*+,-./0123456789:;<=>?@ABCDEFGHIJKLMNOPQRSTUVWXYZ[\\]^_`abcdefghijklmnopqrstuvwxyz{|}~\u00A1\u00A2\u00A3\u00A4\u00A5\u00A6\u00A7\u00A8\u00A9\u00AA\u00AB\u00AC\u00AE\u00AF\u00B0\u00B1\u00B2\u00B3\u00B4\u00B5\u00B6\u00B7\u00B8\u00B9\u00BA\u00BB\u00BC\u00BD\u00BE\u00BF\u00C0\u00C1\u00C2\u00C3\u00C4\u00C5\u00C6\u00C7\u00C8\u00C9\u00CA\u00CB\u00CC\u00CD\u00CE\u00CF\u00D0\u00D1\u00D2\u00D3\u00D4\u00D5\u00D6\u00D7\u00D8\u00D9\u00DA\u00DB\u00DC\u00DD\u00DE\u00DF\u00E0\u00E1\u00E2\u00E3\u00E4\u00E5\u00E6\u00E7\u00E8\u00E9\u00EA\u00EB\u00EC\u00ED\u00EE\u00EF\u00F0\u00F1\u00F2\u00F3\u00F4\u00F5\u00F6\u00F7\u00F8\u00F9\u00FA\u00FB\u00FC\u00FD\u00FE\u00FF'), + sha1: 'ca4a426a3d536f14cfd79011e79e10d64de950a0', + md5: 'e8098ec21950f841731d28749129d3ee', + }, + { + input: stringToBytes('\u00A5\u0104\u018F\u0256\u02B1o\u0315\u038E\u0409\u0500\u0531\u05E1\u05B6\u0920\u0903\u09A4\u0983\u0A20\u0A02\u0AA0\u0A83\u0B06\u0C05\u0C03\u1401\u16A0'), + sha1: 'f2753ebc390e5f637e333c2a4179644a93ae9f65', + md5: '231b309e277b6be8bb3d6c688b7f098b', + }, + ]; + function hashToHex(hash) { + const chars = new Array(hash.length); + for (let i = 0; i < hash.length; i++) { + chars[i] = hash[i].toString(16).padStart(2, '0'); + } + return chars.join(''); + } + HASH_SAMPLES.forEach(function (sample, i) { + test(`sha1(node) HASH_SAMPLES[${i}]`, () => { + assert.equal(hashToHex(sha1(sample.input)), sample.sha1); + }); + }); + HASH_SAMPLES.forEach(function (sample, i) { + test(`md5(node) HASH_SAMPLES[${i}]`, () => { + assert.equal(hashToHex(md5(sample.input)), sample.md5); + }); + }); + test('v3', () => { + assert.strictEqual(v3('hello.example.com', v3.DNS), '9125a8dc-52ee-365b-a5aa-81b0b3681cf6'); + assert.strictEqual(v3('http://example.com/hello', v3.URL), 'c6235813-3ba4-3801-ae84-e0a6ebb7d138'); + assert.strictEqual(v3('hello', '0f5abcd1-c194-47f3-905b-2df7263a084b'), 'a981a0c2-68b1-35dc-bcfc-296e52ab01ec'); + }); + test('v3 namespace.toUpperCase', () => { + assert.strictEqual(v3('hello.example.com', v3.DNS.toUpperCase()), '9125a8dc-52ee-365b-a5aa-81b0b3681cf6'); + assert.strictEqual(v3('http://example.com/hello', v3.URL.toUpperCase()), 'c6235813-3ba4-3801-ae84-e0a6ebb7d138'); + assert.strictEqual(v3('hello', '0f5abcd1-c194-47f3-905b-2df7263a084b'.toUpperCase()), 'a981a0c2-68b1-35dc-bcfc-296e52ab01ec'); + }); + test('v3 namespace string validation', () => { + assert.throws(() => { + v3('hello.example.com', 'zyxwvuts-rqpo-nmlk-jihg-fedcba000000'); + }); + assert.throws(() => { + v3('hello.example.com', 'invalid uuid value'); + }); + assert.ok(v3('hello.example.com', '00000000-0000-0000-0000-000000000000')); + }); + test('v3 namespace buffer validation', () => { + assert.throws(() => { + v3('hello.example.com', new Uint8Array(15)); + }); + assert.throws(() => { + v3('hello.example.com', new Uint8Array(17)); + }); + assert.ok(v3('hello.example.com', new Uint8Array(16).fill(0))); + }); + test('v3 fill buffer', () => { + let buf = new Uint8Array(16); + const expectedUuid = Uint8Array.of(0x91, 0x25, 0xa8, 0xdc, 0x52, 0xee, 0x36, 0x5b, 0xa5, 0xaa, 0x81, 0xb0, 0xb3, 0x68, 0x1c, 0xf6); + const result = v3('hello.example.com', v3.DNS, buf); + assert.deepEqual(buf, expectedUuid); + assert.strictEqual(result, buf); + buf = new Uint8Array(19).fill(0xaa); + const expectedBuf = new Uint8Array(19).fill(0xaa); + expectedBuf.set(expectedUuid, 3); + v3('hello.example.com', v3.DNS, buf, 3); + assert.deepEqual(buf, expectedBuf); + }); + test('v3 undefined/null', () => { + assert.throws(() => v3()); + assert.throws(() => v3('hello')); + assert.throws(() => v3('hello.example.com', undefined)); + assert.throws(() => v3('hello.example.com', null, new Uint8Array(16))); + }); + test('v5', () => { + assert.strictEqual(v5('hello.example.com', v5.DNS), 'fdda765f-fc57-5604-a269-52a7df8164ec'); + assert.strictEqual(v5('http://example.com/hello', v5.URL), '3bbcee75-cecc-5b56-8031-b6641c1ed1f1'); + assert.strictEqual(v5('hello', '0f5abcd1-c194-47f3-905b-2df7263a084b'), '90123e1c-7512-523e-bb28-76fab9f2f73d'); + }); + test('v5 namespace.toUpperCase', () => { + assert.strictEqual(v5('hello.example.com', v5.DNS.toUpperCase()), 'fdda765f-fc57-5604-a269-52a7df8164ec'); + assert.strictEqual(v5('http://example.com/hello', v5.URL.toUpperCase()), '3bbcee75-cecc-5b56-8031-b6641c1ed1f1'); + assert.strictEqual(v5('hello', '0f5abcd1-c194-47f3-905b-2df7263a084b'.toUpperCase()), '90123e1c-7512-523e-bb28-76fab9f2f73d'); + }); + test('v5 namespace string validation', () => { + assert.throws(() => { + v5('hello.example.com', 'zyxwvuts-rqpo-nmlk-jihg-fedcba000000'); + }); + assert.throws(() => { + v5('hello.example.com', 'invalid uuid value'); + }); + assert.ok(v5('hello.example.com', '00000000-0000-0000-0000-000000000000')); + }); + test('v5 namespace buffer validation', () => { + assert.throws(() => { + v5('hello.example.com', new Uint8Array(15)); + }); + assert.throws(() => { + v5('hello.example.com', new Uint8Array(17)); + }); + assert.ok(v5('hello.example.com', new Uint8Array(16).fill(0))); + }); + test('v5 fill buffer', () => { + let buf = new Uint8Array(16); + const expectedUuid = Uint8Array.of(0xfd, 0xda, 0x76, 0x5f, 0xfc, 0x57, 0x56, 0x04, 0xa2, 0x69, 0x52, 0xa7, 0xdf, 0x81, 0x64, 0xec); + const result = v5('hello.example.com', v5.DNS, buf); + assert.deepEqual(buf, expectedUuid); + assert.strictEqual(result, buf); + buf = new Uint8Array(19).fill(0xaa); + const expectedBuf = new Uint8Array(19).fill(0xaa); + expectedBuf.set(expectedUuid, 3); + v5('hello.example.com', v5.DNS, buf, 3); + assert.deepEqual(buf, expectedBuf); + }); + test('v5 undefined/null', () => { + assert.throws(() => v5()); + assert.throws(() => v5('hello')); + assert.throws(() => v5('hello.example.com', undefined)); + assert.throws(() => v5('hello.example.com', null, new Uint8Array(16))); + }); + test('v3/v5 constants', () => { + assert.strictEqual(v3.DNS, '6ba7b810-9dad-11d1-80b4-00c04fd430c8'); + assert.strictEqual(v3.URL, '6ba7b811-9dad-11d1-80b4-00c04fd430c8'); + assert.strictEqual(v5.DNS, '6ba7b810-9dad-11d1-80b4-00c04fd430c8'); + assert.strictEqual(v5.URL, '6ba7b811-9dad-11d1-80b4-00c04fd430c8'); + }); +}); +//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoidjM1LnRlc3QuanMiLCJzb3VyY2VSb290IjoiIiwic291cmNlcyI6WyIuLi8uLi8uLi9zcmMvdGVzdC92MzUudGVzdC50cyJdLCJuYW1lcyI6W10sIm1hcHBpbmdzIjoiQUFBQSxPQUFPLEtBQUssTUFBTSxNQUFNLFFBQVEsQ0FBQztBQUNqQyxPQUFPLElBQUksRUFBRSxFQUFFLFFBQVEsRUFBRSxNQUFNLFdBQVcsQ0FBQztBQUMzQyxPQUFPLEdBQUcsTUFBTSxXQUFXLENBQUM7QUFDNUIsT0FBTyxJQUFJLE1BQU0sWUFBWSxDQUFDO0FBQzlCLE9BQU8sRUFBRSxNQUFNLFVBQVUsQ0FBQztBQUMxQixPQUFPLEVBQUUsYUFBYSxFQ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VBQUUsQ0FBQyxFQUFFLENBQUMsT0FBTyxDQUFDLENBQUMsQ0FBQztRQUVqQyxNQUFNLENBQUMsTUFBTSxDQUFDLEdBQUcsRUFBRSxDQUFDLEVBQUUsQ0FBQyxtQkFBbUIsRUFBRSxTQUFTLENBQUMsQ0FBQyxDQUFDO1FBRXhELE1BQU0sQ0FBQyxNQUFNLENBQUMsR0FBRyxFQUFFLENBQUMsRUFBRSxDQUFDLG1CQUFtQixFQUFFLElBQUksRUFBRSxJQUFJLFVBQVUsQ0FBQyxFQUFFLENBQUMsQ0FBQyxDQUFDLENBQUM7SUFDekUsQ0FBQyxDQUFDLENBQUM7SUFFSCxJQUFJLENBQUMsaUJBQWlCLEVBQUUsR0FBRyxFQUFFO1FBQzNCLE1BQU0sQ0FBQyxXQUFXLENBQUMsRUFBRSxDQUFDLEdBQUcsRUFBRSxzQ0FBc0MsQ0FBQyxDQUFDO1FBQ25FLE1BQU0sQ0FBQyxXQUFXLENBQUMsRUFBRSxDQUFDLEdBQUcsRUFBRSxzQ0FBc0MsQ0FBQyxDQUFDO1FBQ25FLE1BQU0sQ0FBQyxXQUFXLENBQUMsRUFBRSxDQUFDLEdBQUcsRUFBRSxzQ0FBc0MsQ0FBQyxDQUFDO1FBQ25FLE1BQU0sQ0FBQyxXQUFXLENBQUMsRUFBRSxDQUFDLEdBQUcsRUFBRSxzQ0FBc0MsQ0FBQyxDQUFDO0lBQ3JFLENBQUMsQ0FBQyxDQUFDO0FBQ0wsQ0FBQyxDQUFDLENBQUMifQ== \ No newline at end of file diff --git a/node_modules/uuid/dist/esm-browser/test/v4.test.d.ts b/node_modules/uuid/dist/esm-browser/test/v4.test.d.ts new file mode 100644 index 0000000000..cb0ff5c3b5 --- /dev/null +++ b/node_modules/uuid/dist/esm-browser/test/v4.test.d.ts @@ -0,0 +1 @@ +export {}; diff --git a/node_modules/uuid/dist/esm-browser/test/v4.test.js b/node_modules/uuid/dist/esm-browser/test/v4.test.js new file mode 100644 index 0000000000..ee53691ed7 --- /dev/null +++ b/node_modules/uuid/dist/esm-browser/test/v4.test.js @@ -0,0 +1,59 @@ +import * as assert from 'assert'; +import test, { describe } from 'node:test'; +import native from '../native.js'; +import v4 from '../v4.js'; +const randomBytesFixture = Uint8Array.of(0x10, 0x91, 0x56, 0xbe, 0xc4, 0xfb, 0xc1, 0xea, 0x71, 0xb4, 0xef, 0xe1, 0x67, 0x1c, 0x58, 0x36); +const expectedBytes = Uint8Array.of(16, 145, 86, 190, 196, 251, 65, 234, 177, 180, 239, 225, 103, 28, 88, 54); +describe('v4', () => { + test('subsequent UUIDs are different', () => { + const id1 = v4(); + const id2 = v4(); + assert.ok(id1 !== id2); + }); + test('should uses native randomUUID() if no option is passed', async () => { + const mock = (await import('node:test')).default.mock; + if (!mock) { + return; + } + const mockRandomUUID = mock.method(native, 'randomUUID'); + assert.equal(mockRandomUUID.mock.callCount(), 0); + v4(); + assert.equal(mockRandomUUID.mock.callCount(), 1); + mock.restoreAll(); + }); + test('should not use native randomUUID() if an option is passed', async () => { + const mock = (await import('node:test')).default.mock; + if (!mock) { + return; + } + const mockRandomUUID = mock.method(native, 'randomUUID'); + assert.equal(mockRandomUUID.mock.callCount(), 0); + v4({}); + assert.equal(mockRandomUUID.mock.callCount(), 0); + mock.restoreAll(); + }); + test('explicit options.random produces expected result', () => { + const id = v4({ random: randomBytesFixture }); + assert.strictEqual(id, '109156be-c4fb-41ea-b1b4-efe1671c5836'); + }); + test('explicit options.rng produces expected result', () => { + const id = v4({ rng: () => randomBytesFixture }); + assert.strictEqual(id, '109156be-c4fb-41ea-b1b4-efe1671c5836'); + }); + test('fills one UUID into a buffer as expected', () => { + const buffer = new Uint8Array(16); + const result = v4({ random: randomBytesFixture }, buffer); + assert.deepEqual(buffer, expectedBytes); + assert.strictEqual(buffer, result); + }); + test('fills two UUIDs into a buffer as expected', () => { + const buffer = new Uint8Array(32); + v4({ random: randomBytesFixture }, buffer, 0); + v4({ random: randomBytesFixture }, buffer, 16); + const expectedBuf = new Uint8Array(32); + expectedBuf.set(expectedBytes); + expectedBuf.set(expectedBytes, 16); + assert.deepEqual(buffer, expectedBuf); + }); +}); +//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoidjQudGVzdC5qcyIsInNvdXJjZVJvb3QiOiIiLCJzb3VyY2VzIjpbIi4uLy4uLy4uL3NyYy90ZXN0L3Y0LnRlc3QudHMiXSwibmFtZXMiOltdLCJtYXBwaW5ncyI6IkFBQUEsT0FBTyxLQUFLLE1BQU0sTUFBTSxRQUFRLENBQUM7QUFDakMsT0FBTyxJQUFJLEVBQUUsRUFBRSxRQUFRLEVBQUUsTUFBTSxXQUFXLENBQUM7QUFDM0MsT0FBTyxNQUFNLE1BQU0sY0FBYyxDQUFDO0FBQ2xDLE9BQU8sRUFBRSxNQUFNLFVBQVUsQ0FBQztBQUUxQixNQUFNLGtCQUFrQixHQUFHLFVBQVUsQ0FBQyxFQUFFLENBQ3RDLElBQUksRUFDSixJQUFJLEVBQ0osSUFBSSxFQUNKLElBQUksRUFDSixJQUFJLEVBQ0osSUFBSSxFQUNKLElBQUksRUFDSixJQUFJLEVBQ0osSUFBSSxFQUNKLElBQUksRUFDSixJQUFJLEVBQ0osSUFBSSxFQUNKLElBQUksRUFDSixJQUFJLEVBQ0osSUFBSSxFQUNKLElBQUksQ0FDTCxDQUFDO0FBRUYsTUFBTSxhQUFhLEdBQUcsVUFBVSxDQUFDLEVBQUUsQ0FDakMsRUFBRSxFQUNGLEdBQUcsRUFDSCxFQUFFLEVBQ0YsR0FBRyxFQUNILEdBQUcsRUFDSCxHQUFHLEVBQ0gsRUFBRSxFQUNGLEdBQUcsRUFDSCxHQUFHLEVBQ0gsR0FBRyxFQUNILEdBQUcsRUFDSCxHQUFHLEVBQ0gsR0FBRyxFQUNILEVBQUUsRUFDRixFQUFFLEVBQ0YsRUFBRSxDQUNILENBQUM7QUFFRixRQUFRLENBQUMsSUFBSSxFQUFFLEdBQUcsRUFBRTt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FBRSxDQUFDLENBQUM7UUFDbEMsTUFBTSxNQUFNLEdBQUcsRUFBRSxDQUFDLEVBQUUsTUFBTSxFQUFFLGtCQUFrQixFQUFFLEVBQUUsTUFBTSxDQUFDLENBQUM7UUFFMUQsTUFBTSxDQUFDLFNBQVMsQ0FBQyxNQUFNLEVBQUUsYUFBYSxDQUFDLENBQUM7UUFDeEMsTUFBTSxDQUFDLFdBQVcsQ0FBQyxNQUFNLEVBQUUsTUFBTSxDQUFDLENBQUM7SUFDckMsQ0FBQyxDQUFDLENBQUM7SUFFSCxJQUFJLENBQUMsMkNBQTJDLEVBQUUsR0FBRyxFQUFFO1FBQ3JELE1BQU0sTUFBTSxHQUFHLElBQUksVUFBVSxDQUFDLEVBQUUsQ0FBQyxDQUFDO1FBQ2xDLEVBQUUsQ0FBQyxFQUFFLE1BQU0sRUFBRSxrQkFBa0IsRUFBRSxFQUFFLE1BQU0sRUFBRSxDQUFDLENBQUMsQ0FBQztRQUM5QyxFQUFFLENBQUMsRUFBRSxNQUFNLEVBQUUsa0JBQWtCLEVBQUUsRUFBRSxNQUFNLEVBQUUsRUFBRSxDQUFDLENBQUM7UUFFL0MsTUFBTSxXQUFXLEdBQUcsSUFBSSxVQUFVLENBQUMsRUFBRSxDQUFDLENBQUM7UUFDdkMsV0FBVyxDQUFDLEdBQUcsQ0FBQyxhQUFhLENBQUMsQ0FBQztRQUMvQixXQUFXLENBQUMsR0FBRyxDQUFDLGFBQWEsRUFBRSxFQUFFLENBQUMsQ0FBQztRQUVuQyxNQUFNLENBQUMsU0FBUyxDQUFDLE1BQU0sRUFBRSxXQUFXLENBQUMsQ0FBQztJQUN4QyxDQUFDLENBQUMsQ0FBQztBQUNMLENBQUMsQ0FBQyxDQUFDIn0= \ No newline at end of file diff --git a/node_modules/uuid/dist/esm-browser/test/v6.test.d.ts b/node_modules/uuid/dist/esm-browser/test/v6.test.d.ts new file mode 100644 index 0000000000..cb0ff5c3b5 --- /dev/null +++ b/node_modules/uuid/dist/esm-browser/test/v6.test.d.ts @@ -0,0 +1 @@ +export {}; diff --git a/node_modules/uuid/dist/esm-browser/test/v6.test.js b/node_modules/uuid/dist/esm-browser/test/v6.test.js new file mode 100644 index 0000000000..091de1c209 --- /dev/null +++ b/node_modules/uuid/dist/esm-browser/test/v6.test.js @@ -0,0 +1,55 @@ +import * as assert from 'assert'; +import test, { describe } from 'node:test'; +import v1ToV6 from '../v1ToV6.js'; +import v6 from '../v6.js'; +import v6ToV1 from '../v6ToV1.js'; +describe('v6', () => { + const V1_ID = 'f1207660-21d2-11ef-8c4f-419efbd44d48'; + const V6_ID = '1ef21d2f-1207-6660-8c4f-419efbd44d48'; + const fullOptions = { + msecs: 0x133b891f705, + nsecs: 0x1538, + clockseq: 0x385c, + node: Uint8Array.of(0x61, 0xcd, 0x3c, 0xbb, 0x32, 0x10), + }; + const EXPECTED_BYTES = Uint8Array.of(0x1e, 0x11, 0x22, 0xbd, 0x94, 0x28, 0x68, 0x88, 0xb8, 0x5c, 0x61, 0xcd, 0x3c, 0xbb, 0x32, 0x10); + test('default behavior', () => { + const id = v6(); + assert.ok(/[0-9a-f]{8}-[0-9a-f]{4}-6[0-9a-f]{3}-[89ab][0-9a-f]{3}-[0-9a-f]{12}/.test(id), 'id is valid v6 UUID'); + }); + test('default behavior (binary type)', () => { + const buffer = new Uint8Array(16); + const result = v6(fullOptions, buffer); + assert.deepEqual(buffer, EXPECTED_BYTES); + assert.strictEqual(buffer, result); + }); + test('all options', () => { + const id = v6(fullOptions); + assert.equal(id, '1e1122bd-9428-6888-b85c-61cd3cbb3210'); + }); + test('sort by creation time', () => { + const ids = []; + for (let i = 0; i < 5; i++) { + ids.push(v6({ msecs: i * 1000 })); + } + assert.deepEqual(ids, ids.slice().sort()); + }); + test('creating at array offset', () => { + const buffer = new Uint8Array(32); + v6(fullOptions, buffer, 0); + v6(fullOptions, buffer, 16); + const expectedBuf = new Uint8Array(32); + expectedBuf.set(EXPECTED_BYTES, 0); + expectedBuf.set(EXPECTED_BYTES, 16); + assert.deepEqual(buffer, expectedBuf); + }); + test('v1 -> v6 conversion', () => { + const id = v1ToV6(V1_ID); + assert.equal(id, V6_ID); + }); + test('v6 -> v1 conversion', () => { + const id = v6ToV1(V6_ID); + assert.equal(id, V1_ID); + }); +}); +//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoidjYudGVzdC5qcyIsInNvdXJjZVJvb3QiOiIiLCJzb3VyY2VzIjpbIi4uLy4uLy4uL3NyYy90ZXN0L3Y2LnRlc3QudHMiXSwibmFtZXMiOltdLCJtYXBwaW5ncyI6IkFBQUEsT0FBTyxLQUFLLE1BQU0sTUFBTSxRQUFRLENBQUM7QUFDakMsT0FBTyxJQUFJLEVBQUUsRUFBRSxRQUFRLEVBQUUsTUFBTSxXQUFXLENBQUM7QUFDM0MsT0FBTyxNQUFNLE1BQU0sY0FBYyxDQUFDO0FBQ2xDLE9BQU8sRUFBRSxNQUFNLFVBQVUsQ0FBQztBQUMxQixPQUFPLE1BQU0sTUFBTSxjQUFjLENBQUM7QUFFbEMsUUFBUSxDQUFDLElBQUksRUFBRSxHQUFHLEVBQUU7SUFDbEIsTUFBTSxLQUFLLEdBQUcsc0NBQXNDLENBQUM7SUFDckQsTUFBTSxLQUFLLEdBQUcsc0NBQXNDLENBQUM7SUFFckQsTUFBTSxXQUFXLEdBQUc7UUFDbEIsS0FBSyxFQUFFLGFBQWE7UUFDcEIsS0FBSyxFQUFFLE1BQU07UUFDYixRQUFRLEVBQUUsTUFBTTtRQUNoQixJQUFJLEVBQUUsVUFBVSxDQUFDLEVBQUUsQ0FBQyxJQUFJLEVBQUUsSUFBSSxFQUFFLElBQUksRUFBRSxJQUFJLEVBQUUsSUFBSSxFQUFFLElBQUksQ0FBQztLQUN4RCxDQUFDO0lBRUYsTUFBTSxjQUFjLEdBQUcsVUFBVSxDQUFDLEVBQUUsQ0FDbEMsSUFBSSxFQUNKLElBQUksRUFDSixJQUFJLEVBQ0osSUFB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LQUFLLENBQUMsQ0FBQztRQUN6QixNQUFNLENBQUMsS0FBSyxDQUFDLEVBQUUsRUFBRSxLQUFLLENBQUMsQ0FBQztJQUMxQixDQUFDLENBQUMsQ0FBQztJQUVILElBQUksQ0FBQyxxQkFBcUIsRUFBRSxHQUFHLEVBQUU7UUFDL0IsTUFBTSxFQUFFLEdBQUcsTUFBTSxDQUFDLEtBQUssQ0FBQyxDQUFDO1FBQ3pCLE1BQU0sQ0FBQyxLQUFLLENBQUMsRUFBRSxFQUFFLEtBQUssQ0FBQyxDQUFDO0lBQzFCLENBQUMsQ0FBQyxDQUFDO0FBQ0wsQ0FBQyxDQUFDLENBQUMifQ== \ No newline at end of file diff --git a/node_modules/uuid/dist/esm-browser/test/v7.test.d.ts b/node_modules/uuid/dist/esm-browser/test/v7.test.d.ts new file mode 100644 index 0000000000..cb0ff5c3b5 --- /dev/null +++ b/node_modules/uuid/dist/esm-browser/test/v7.test.d.ts @@ -0,0 +1 @@ +export {}; diff --git a/node_modules/uuid/dist/esm-browser/test/v7.test.js b/node_modules/uuid/dist/esm-browser/test/v7.test.js new file mode 100644 index 0000000000..57af226427 --- /dev/null +++ b/node_modules/uuid/dist/esm-browser/test/v7.test.js @@ -0,0 +1,193 @@ +import * as assert from 'assert'; +import test, { describe } from 'node:test'; +import parse from '../parse.js'; +import stringify from '../stringify.js'; +import v7, { updateV7State } from '../v7.js'; +const RFC_V7 = '017f22e2-79b0-7cc3-98c4-dc0c0c07398f'; +const RFC_V7_BYTES = parse('017f22e2-79b0-7cc3-98c4-dc0c0c07398f'); +const RFC_MSECS = 0x17f22e279b0; +const RFC_SEQ = (0x0cc3 << 20) | (0x98c4dc >> 2); +const RFC_RANDOM = Uint8Array.of(0x10, 0x91, 0x56, 0xbe, 0xc4, 0xfb, 0x0c, 0xc3, 0x18, 0xc4, 0x6c, 0x0c, 0x0c, 0x07, 0x39, 0x8f); +describe('v7', () => { + test('subsequent UUIDs are different', () => { + const id1 = v7(); + const id2 = v7(); + assert.ok(id1 !== id2); + }); + test('explicit options.random and options.msecs produces expected result', () => { + const id = v7({ + random: RFC_RANDOM, + msecs: RFC_MSECS, + seq: RFC_SEQ, + }); + assert.strictEqual(id, RFC_V7); + }); + test('explicit options.rng produces expected result', () => { + const id = v7({ + rng: () => RFC_RANDOM, + msecs: RFC_MSECS, + seq: RFC_SEQ, + }); + assert.strictEqual(id, RFC_V7); + }); + test('explicit options.msecs produces expected result', () => { + const id = v7({ + msecs: RFC_MSECS, + }); + assert.strictEqual(id.indexOf('017f22e2'), 0); + }); + test('fills one UUID into a buffer as expected', () => { + const buffer = new Uint8Array(16); + const result = v7({ + random: RFC_RANDOM, + msecs: RFC_MSECS, + seq: RFC_SEQ, + }, buffer); + stringify(buffer); + assert.deepEqual(buffer, RFC_V7_BYTES); + assert.strictEqual(buffer, result); + }); + test('fills two UUIDs into a buffer as expected', () => { + const buffer = new Uint8Array(32); + v7({ + random: RFC_RANDOM, + msecs: RFC_MSECS, + seq: RFC_SEQ, + }, buffer, 0); + v7({ + random: RFC_RANDOM, + msecs: RFC_MSECS, + seq: RFC_SEQ, + }, buffer, 16); + const expected = new Uint8Array(32); + expected.set(RFC_V7_BYTES); + expected.set(RFC_V7_BYTES, 16); + assert.deepEqual(buffer, expected); + }); + test('lexicographical sorting is preserved', () => { + let id; + let prior; + let msecs = RFC_MSECS; + for (let i = 0; i < 20000; ++i) { + if (i % 1500 === 0) { + msecs += 1; + } + id = v7({ msecs, seq: i }); + if (prior !== undefined) { + assert.ok(prior < id, `${prior} < ${id}`); + } + prior = id; + } + }); + test('can supply seq', () => { + let seq = 0x12345; + let uuid = v7({ + msecs: RFC_MSECS, + seq, + }); + assert.strictEqual(uuid.substr(0, 25), '017f22e2-79b0-7000-848d-1'); + seq = 0x6fffffff; + uuid = v7({ + msecs: RFC_MSECS, + seq, + }); + assert.strictEqual(uuid.substring(0, 25), '017f22e2-79b0-76ff-bfff-f'); + }); + test('internal seq is reset upon timestamp change', () => { + v7({ + msecs: RFC_MSECS, + seq: 0x6fffffff, + }); + const uuid = v7({ + msecs: RFC_MSECS + 1, + }); + assert.ok(uuid.indexOf('fff') !== 15); + }); + test('v7() state transitions', () => { + const tests = [ + { + title: 'new time interval', + state: { msecs: 1, seq: 123 }, + now: 2, + expected: { + msecs: 2, + seq: 0x6c318c4, + }, + }, + { + title: 'same time interval', + state: { msecs: 1, seq: 123 }, + now: 1, + expected: { + msecs: 1, + seq: 124, + }, + }, + { + title: 'same time interval (sequence rollover)', + state: { msecs: 1, seq: 0xffffffff }, + now: 1, + expected: { + msecs: 2, + seq: 0, + }, + }, + { + title: 'time regression', + state: { msecs: 2, seq: 123 }, + now: 1, + expected: { + msecs: 2, + seq: 124, + }, + }, + { + title: 'time regression (sequence rollover)', + state: { msecs: 2, seq: 0xffffffff }, + now: 1, + expected: { + msecs: 3, + seq: 0, + }, + }, + ]; + for (const { title, state, now, expected } of tests) { + assert.deepStrictEqual(updateV7State(state, now, RFC_RANDOM), expected, `Failed: ${title}`); + } + }); + test('flipping bits changes the result', () => { + const asBigInt = (buf) => buf.reduce((acc, v) => (acc << 8n) | BigInt(v), 0n); + const asNumber = (bits, data) => Number(BigInt.asUintN(bits, data)); + const flip = (data, n) => data ^ (1n << BigInt(127 - n)); + const optionsFrom = (data) => { + const ms = asNumber(48, data >> 80n); + const hi = asNumber(12, data >> 64n); + const lo = asNumber(20, data >> 42n); + const r = BigInt.asUintN(42, data); + return { + msecs: ms, + seq: (hi << 20) | lo, + random: Uint8Array.from([ + ...Array(10).fill(0), + ...Array(6) + .fill(0) + .map((_, i) => asNumber(8, r >> (BigInt(i) * 8n))) + .reverse(), + ]), + }; + }; + const buf = new Uint8Array(16); + const data = asBigInt(v7({}, buf)); + const id = stringify(buf); + const reserved = [48, 49, 50, 51, 64, 65]; + for (let i = 0; i < 128; ++i) { + if (reserved.includes(i)) { + continue; + } + const flipped = flip(data, i); + assert.strictEqual(asBigInt(v7(optionsFrom(flipped), buf)).toString(16), flipped.toString(16), `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FBQztRQUNuQyxNQUFNLEVBQUUsR0FBRyxTQUFTLENBQUMsR0FBRyxDQUFDLENBQUM7UUFDMUIsTUFBTSxRQUFRLEdBQUcsQ0FBQyxFQUFFLEVBQUUsRUFBRSxFQUFFLEVBQUUsRUFBRSxFQUFFLEVBQUUsRUFBRSxFQUFFLEVBQUUsQ0FBQyxDQUFDO1FBQzFDLEtBQUssSUFBSSxDQUFDLEdBQUcsQ0FBQyxFQUFFLENBQUMsR0FBRyxHQUFHLEVBQUUsRUFBRSxDQUFDLEVBQUUsQ0FBQztZQUM3QixJQUFJLFFBQVEsQ0FBQyxRQUFRLENBQUMsQ0FBQyxDQUFDLEVBQUUsQ0FBQztnQkFDekIsU0FBUztZQUNYLENBQUM7WUFDRCxNQUFNLE9BQU8sR0FBRyxJQUFJLENBQUMsSUFBSSxFQUFFLENBQUMsQ0FBQyxDQUFDO1lBQzlCLE1BQU0sQ0FBQyxXQUFXLENBQ2hCLFFBQVEsQ0FBQyxFQUFFLENBQUMsV0FBVyxDQUFDLE9BQU8sQ0FBQyxFQUFFLEdBQUcsQ0FBQyxDQUFDLENBQUMsUUFBUSxDQUFDLEVBQUUsQ0FBQyxFQUNwRCxPQUFPLENBQUMsUUFBUSxDQUFDLEVBQUUsQ0FBQyxFQUNwQix3QkFBd0IsQ0FBQyxFQUFFLENBQzVCLENBQUM7WUFDRixNQUFNLENBQUMsY0FBYyxDQUFDLFNBQVMsQ0FBQyxHQUFHLENBQUMsRUFBRSxFQUFFLENBQUMsQ0FBQztRQUM1QyxDQUFDO0lBQ0gsQ0FBQyxDQUFDLENBQUM7QUFDTCxDQUFDLENBQUMsQ0FBQyJ9 \ No newline at end of file diff --git a/node_modules/uuid/dist/esm-browser/test/validate.test.d.ts b/node_modules/uuid/dist/esm-browser/test/validate.test.d.ts new file mode 100644 index 0000000000..cb0ff5c3b5 --- /dev/null +++ b/node_modules/uuid/dist/esm-browser/test/validate.test.d.ts @@ -0,0 +1 @@ +export {}; diff --git a/node_modules/uuid/dist/esm-browser/test/validate.test.js b/node_modules/uuid/dist/esm-browser/test/validate.test.js new file mode 100644 index 0000000000..4f5bb9a79d --- /dev/null +++ b/node_modules/uuid/dist/esm-browser/test/validate.test.js @@ -0,0 +1,12 @@ +import * as assert from 'assert'; +import test, { describe } from 'node:test'; +import validate from '../validate.js'; +import { TESTS } from './test_constants.js'; +describe('validate()', () => { + test('TESTS cases', () => { + for (const { value, expectedValidate } of TESTS) { + assert.strictEqual(validate(value), expectedValidate, `validate(${value}) should be ${expectedValidate}`); + } + }); +}); +//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoidmFsaWRhdGUudGVzdC5qcyIsInNvdXJjZVJvb3QiOiIiLCJzb3VyY2VzIjpbIi4uLy4uLy4uL3NyYy90ZXN0L3ZhbGlkYXRlLnRlc3QudHMiXSwibmFtZXMiOltdLCJtYXBwaW5ncyI6IkFBQUEsT0FBTyxLQUFLLE1BQU0sTUFBTSxRQUFRLENBQUM7QUFDakMsT0FBTyxJQUFJLEVBQUUsRUFBRSxRQUFRLEVBQUUsTUFBTSxXQUFXLENBQUM7QUFDM0MsT0FBTyxRQUFRLE1BQU0sZ0JBQWdCLENBQUM7QUFDdEMsT0FBTyxFQUFFLEtBQUssRUFBRSxNQUFNLHFCQUFxQixDQUFDO0FBRTVDLFFBQVEsQ0FBQyxZQUFZLEVBQUUsR0FBRyxFQUFFO0lBQzFCLElBQUksQ0FBQyxhQUFhLEVBQUUsR0FBRyxFQUFFO1FBQ3ZCLEtBQUssTUFBTSxFQUFFLEtBQUssRUFBRSxnQkFBZ0IsRUFBRSxJQUFJLEtBQUssRUFBRSxDQUFDO1lBQ2hELE1BQU0sQ0FBQyxXQUFXLENBQ2hCLFFBQVEsQ0FBQyxLQUFLLENBQUMsRUFDZixnQkFBZ0IsRUFDaEIsWUFBWSxLQUFLLGVBQWUsZ0JBQWdCLEVBQUUsQ0FDbkQsQ0FBQztRQUNKLENBQUM7SUFDSCxDQUFDLENBQUMsQ0FBQztBQUNMLENBQUMsQ0FBQyxDQUFDIn0= \ No newline at end of file diff --git a/node_modules/uuid/dist/esm-browser/test/version.test.d.ts b/node_modules/uuid/dist/esm-browser/test/version.test.d.ts new file mode 100644 index 0000000000..cb0ff5c3b5 --- /dev/null +++ b/node_modules/uuid/dist/esm-browser/test/version.test.d.ts @@ -0,0 +1 @@ +export {}; diff --git a/node_modules/uuid/dist/esm-browser/test/version.test.js b/node_modules/uuid/dist/esm-browser/test/version.test.js new file mode 100644 index 0000000000..17ed0bdc46 --- /dev/null +++ b/node_modules/uuid/dist/esm-browser/test/version.test.js @@ -0,0 +1,19 @@ +import * as assert from 'assert'; +import test, { describe } from 'node:test'; +import version from '../version.js'; +import { TESTS } from './test_constants.js'; +describe('version()', () => { + test('TESTS cases', () => { + for (const { value, expectedValidate, expectedVersion } of TESTS) { + try { + const actualVersion = version(value); + assert.ok(expectedValidate, `version(${value}) should throw`); + assert.strictEqual(actualVersion, expectedVersion); + } + catch { + assert.ok(!expectedValidate, `version(${value}) threw unexpectedly`); + } + } + }); +}); +//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoidmVyc2lvbi50ZXN0LmpzIiwic291cmNlUm9vdCI6IiIsInNvdXJjZXMiOlsiLi4vLi4vLi4vc3JjL3Rlc3QvdmVyc2lvbi50ZXN0LnRzIl0sIm5hbWVzIjpbXSwibWFwcGluZ3MiOiJBQUFBLE9BQU8sS0FBSyxNQUFNLE1BQU0sUUFBUSxDQUFDO0FBQ2pDLE9BQU8sSUFBSSxFQUFFLEVBQUUsUUFBUSxFQUFFLE1BQU0sV0FBVyxDQUFDO0FBQzNDLE9BQU8sT0FBTyxNQUFNLGVBQWUsQ0FBQztBQUNwQyxPQUFPLEVBQUUsS0FBSyxFQUFFLE1BQU0scUJBQXFCLENBQUM7QUFFNUMsUUFBUSxDQUFDLFdBQVcsRUFBRSxHQUFHLEVBQUU7SUFDekIsSUFBSSxDQUFDLGFBQWEsRUFBRSxHQUFHLEVBQUU7UUFDdkIsS0FBSyxNQUFNLEVBQUUsS0FBSyxFQUFFLGdCQUFnQixFQUFFLGVBQWUsRUFBRSxJQUFJLEtBQUssRUFBRSxDQUFDO1lBQ2pFLElBQUksQ0FBQztnQkFFSCxNQUFNLGFBQWEsR0FBRyxPQUFPLENBQUMsS0FBSyxDQUFDLENBQUM7Z0JBRXJDLE1BQU0sQ0FBQyxFQUFFLENBQUMsZ0JBQWdCLEVBQUUsV0FBVyxLQUFLLGdCQUFnQixDQUFDLENBQUM7Z0JBQzlELE1BQU0sQ0FBQyxXQUFXLENBQUMsYUFBYSxFQUFFLGVBQWUsQ0FBQyxDQUFDO1lBQ3JELENBQUM7WUFBQyxNQUFNLENBQUM7Z0JBQ1AsTUFBTSxDQUFDLEVBQUUsQ0FBQyxDQUFDLGdCQUFnQixFQUFFLFdBQVcsS0FBSyxzQkFBc0IsQ0FBQyxDQUFDO1lBQ3ZFLENBQUM7UUFDSCxDQUFDO0lBQ0gsQ0FBQyxDQUFDLENBQUM7QUFDTCxDQUFDLENBQUMsQ0FBQyJ9 \ No newline at end of file diff --git a/node_modules/uuid/dist/esm-browser/uuid-bin.d.ts b/node_modules/uuid/dist/esm-browser/uuid-bin.d.ts new file mode 100644 index 0000000000..cb0ff5c3b5 --- /dev/null +++ b/node_modules/uuid/dist/esm-browser/uuid-bin.d.ts @@ -0,0 +1 @@ +export {}; diff --git a/node_modules/uuid/dist/esm-browser/uuid-bin.js b/node_modules/uuid/dist/esm-browser/uuid-bin.js new file mode 100644 index 0000000000..2e4418a6d0 --- /dev/null +++ b/node_modules/uuid/dist/esm-browser/uuid-bin.js @@ -0,0 +1,71 @@ +import * as assert from 'assert'; +import v1 from './v1.js'; +import v3 from './v3.js'; +import v4 from './v4.js'; +import v5 from './v5.js'; +import v6 from './v6.js'; +import v7 from './v7.js'; +function usage() { + console.log('Usage:'); + console.log(' uuid'); + console.log(' uuid v1'); + console.log(' uuid v3 '); + console.log(' uuid v4'); + console.log(' uuid v5 '); + console.log(' uuid v6'); + console.log(' uuid v7'); + console.log(' uuid --help'); + console.log('\nNote: may be "URL" or "DNS" to use the corresponding UUIDs defined by RFC9562'); +} +const args = process.argv.slice(2); +if (args.indexOf('--help') >= 0) { + usage(); + process.exit(0); +} +const version = args.shift() || 'v4'; +switch (version) { + case 'v1': + console.log(v1()); + break; + case 'v3': { + const name = args.shift(); + let namespace = args.shift(); + assert.ok(name != null, 'v3 name not specified'); + assert.ok(namespace != null, 'v3 namespace not specified'); + if (namespace === 'URL') { + namespace = v3.URL; + } + if (namespace === 'DNS') { + namespace = v3.DNS; + } + console.log(v3(name, namespace)); + break; + } + case 'v4': + console.log(v4()); + break; + case 'v5': { + const name = args.shift(); + let namespace = args.shift(); + assert.ok(name != null, 'v5 name not specified'); + assert.ok(namespace != null, 'v5 namespace not specified'); + if (namespace === 'URL') { + namespace = v5.URL; + } + if (namespace === 'DNS') { + namespace = v5.DNS; + } + console.log(v5(name, namespace)); + break; + } + case 'v6': + console.log(v6()); + break; + case 'v7': + console.log(v7()); + break; + default: + usage(); + process.exit(1); +} +//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoidXVpZC1iaW4uanMiLCJzb3VyY2VSb290IjoiIiwic291cmNlcyI6WyIuLi8uLi9zcmMvdXVpZC1iaW4udHMiXSwibmFtZXMiOltdLCJtYXBwaW5ncyI6IkFBQUEsT0FBTyxLQUFLLE1BQU0sTUFBTSxRQUFRLENBQUM7QUFFakMsT0FBTyxFQUFFLE1BQU0sU0FBUyxDQUFDO0FBQ3pCLE9BQU8sRUFBRSxNQUFNLFNBQVMsQ0FBQztBQUN6QixPQUFPLEVBQUUsTUFBTSxTQUFTLENBQUM7QUFDekIsT0FBTyxFQUFFLE1BQU0sU0FBUyxDQUFDO0FBQ3pCLE9BQU8sRUFBRSxNQUFNLFNBQVMsQ0FBQztBQUN6QixPQUFPLEVBQUUsTUFBTSxTQUFTLENBQUM7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FFLENBQUMsU0FBUyxJQUFJLElBQUksRUFBRSw0QkFBNEIsQ0FBQyxDQUFDO1FBRTNELElBQUksU0FBUyxLQUFLLEtBQUssRUFBRSxDQUFDO1lBQ3hCLFNBQVMsR0FBRyxFQUFFLENBQUMsR0FBRyxDQUFDO1FBQ3JCLENBQUM7UUFFRCxJQUFJLFNBQVMsS0FBSyxLQUFLLEVBQUUsQ0FBQztZQUN4QixTQUFTLEdBQUcsRUFBRSxDQUFDLEdBQUcsQ0FBQztRQUNyQixDQUFDO1FBRUQsT0FBTyxDQUFDLEdBQUcsQ0FBQyxFQUFFLENBQUMsSUFBSSxFQUFFLFNBQVMsQ0FBQyxDQUFDLENBQUM7UUFDakMsTUFBTTtJQUNSLENBQUM7SUFFRCxLQUFLLElBQUk7UUFDUCxPQUFPLENBQUMsR0FBRyxDQUFDLEVBQUUsRUFBRSxDQUFDLENBQUM7UUFDbEIsTUFBTTtJQUVSLEtBQUssSUFBSTtRQUNQLE9BQU8sQ0FBQyxHQUFHLENBQUMsRUFBRSxFQUFFLENBQUMsQ0FBQztRQUNsQixNQUFNO0lBRVI7UUFDRSxLQUFLLEVBQUUsQ0FBQztRQUNSLE9BQU8sQ0FBQyxJQUFJLENBQUMsQ0FBQyxDQUFDLENBQUM7QUFDcEIsQ0FBQyJ9 \ No newline at end of file diff --git a/node_modules/uuid/dist/esm-browser/v1.d.ts b/node_modules/uuid/dist/esm-browser/v1.d.ts new file mode 100644 index 0000000000..62f1b877e0 --- /dev/null +++ b/node_modules/uuid/dist/esm-browser/v1.d.ts @@ -0,0 +1,11 @@ +import { Version1Options } from './_types.js'; +type V1State = { + node?: Uint8Array; + clockseq?: number; + msecs?: number; + nsecs?: number; +}; +declare function v1(options?: Version1Options, buf?: undefined, offset?: number): string; +declare function v1(options?: Version1Options, buf?: Uint8Array, offset?: number): Uint8Array; +export declare function updateV1State(state: V1State, now: number, rnds: Uint8Array): V1State; +export default v1; diff --git a/node_modules/uuid/dist/esm-browser/v1.js b/node_modules/uuid/dist/esm-browser/v1.js index d42a904e0c..021794ccad 100644 --- a/node_modules/uuid/dist/esm-browser/v1.js +++ b/node_modules/uuid/dist/esm-browser/v1.js @@ -1,125 +1,76 @@ import rng from './rng.js'; import { unsafeStringify } from './stringify.js'; - -// **`v1()` - Generate time-based UUID** -// -// Inspired by https://github.com/LiosK/UUID.js -// and http://docs.python.org/library/uuid.html - -var _nodeId; -var _clockseq; - -// Previous uuid creation time -var _lastMSecs = 0; -var _lastNSecs = 0; - -// See https://github.com/uuidjs/uuid for API details +const _state = {}; function v1(options, buf, offset) { - var i = buf && offset || 0; - var b = buf || new Array(16); - options = options || {}; - var node = options.node; - var clockseq = options.clockseq; - - // v1 only: Use cached `node` and `clockseq` values - if (!options._v6) { - if (!node) { - node = _nodeId; + let bytes; + const isV6 = options?._v6 ?? false; + if (options) { + const optionsKeys = Object.keys(options); + if (optionsKeys.length === 1 && optionsKeys[0] === '_v6') { + options = undefined; + } } - if (clockseq == null) { - clockseq = _clockseq; + if (options) { + bytes = v1Bytes(options.random ?? options.rng?.() ?? rng(), options.msecs, options.nsecs, options.clockseq, options.node, buf, offset); } - } - - // Handle cases where we need entropy. We do this lazily to minimize issues - // related to insufficient system entropy. See #189 - if (node == null || clockseq == null) { - var seedBytes = options.random || (options.rng || rng)(); - - // Randomize node - if (node == null) { - node = [seedBytes[0], seedBytes[1], seedBytes[2], seedBytes[3], seedBytes[4], seedBytes[5]]; - - // v1 only: cache node value for reuse - if (!_nodeId && !options._v6) { - // per RFC4122 4.5: Set MAC multicast bit (v1 only) - node[0] |= 0x01; // Set multicast bit - - _nodeId = node; - } + else { + const now = Date.now(); + const rnds = rng(); + updateV1State(_state, now, rnds); + bytes = v1Bytes(rnds, _state.msecs, _state.nsecs, isV6 ? undefined : _state.clockseq, isV6 ? undefined : _state.node, buf, offset); } - - // Randomize clockseq - if (clockseq == null) { - // Per 4.2.2, randomize (14 bit) clockseq - clockseq = (seedBytes[6] << 8 | seedBytes[7]) & 0x3fff; - if (_clockseq === undefined && !options._v6) { - _clockseq = clockseq; - } + return buf ? bytes : unsafeStringify(bytes); +} +export function updateV1State(state, now, rnds) { + state.msecs ??= -Infinity; + state.nsecs ??= 0; + if (now === state.msecs) { + state.nsecs++; + if (state.nsecs >= 10000) { + state.node = undefined; + state.nsecs = 0; + } + } + else if (now > state.msecs) { + state.nsecs = 0; + } + else if (now < state.msecs) { + state.node = undefined; + } + if (!state.node) { + state.node = rnds.slice(10, 16); + state.node[0] |= 0x01; + state.clockseq = ((rnds[8] << 8) | rnds[9]) & 0x3fff; + } + state.msecs = now; + return state; +} +function v1Bytes(rnds, msecs, nsecs, clockseq, node, buf, offset = 0) { + if (!buf) { + buf = new Uint8Array(16); + offset = 0; + } + msecs ??= Date.now(); + nsecs ??= 0; + clockseq ??= ((rnds[8] << 8) | rnds[9]) & 0x3fff; + node ??= rnds.slice(10, 16); + msecs += 12219292800000; + const tl = ((msecs & 0xfffffff) * 10000 + nsecs) % 0x100000000; + buf[offset++] = (tl >>> 24) & 0xff; + buf[offset++] = (tl >>> 16) & 0xff; + buf[offset++] = (tl >>> 8) & 0xff; + buf[offset++] = tl & 0xff; + const tmh = ((msecs / 0x100000000) * 10000) & 0xfffffff; + buf[offset++] = (tmh >>> 8) & 0xff; + buf[offset++] = tmh & 0xff; + buf[offset++] = ((tmh >>> 24) & 0xf) | 0x10; + buf[offset++] = (tmh >>> 16) & 0xff; + buf[offset++] = (clockseq >>> 8) | 0x80; + buf[offset++] = clockseq & 0xff; + for (let n = 0; n < 6; ++n) { + buf[offset++] = node[n]; } - } - - // v1 & v6 timestamps are 100 nano-second units since the Gregorian epoch, - // (1582-10-15 00:00). JSNumbers aren't precise enough for this, so time is - // handled internally as 'msecs' (integer milliseconds) and 'nsecs' - // (100-nanoseconds offset from msecs) since unix epoch, 1970-01-01 00:00. - var msecs = options.msecs !== undefined ? options.msecs : Date.now(); - - // Per 4.2.1.2, use count of uuid's generated during the current clock - // cycle to simulate higher resolution clock - var nsecs = options.nsecs !== undefined ? options.nsecs : _lastNSecs + 1; - - // Time since last uuid creation (in msecs) - var dt = msecs - _lastMSecs + (nsecs - _lastNSecs) / 10000; - - // Per 4.2.1.2, Bump clockseq on clock regression - if (dt < 0 && options.clockseq === undefined) { - clockseq = clockseq + 1 & 0x3fff; - } - - // Reset nsecs if clock regresses (new clockseq) or we've moved onto a new - // time interval - if ((dt < 0 || msecs > _lastMSecs) && options.nsecs === undefined) { - nsecs = 0; - } - - // Per 4.2.1.2 Throw error if too many uuids are requested - if (nsecs >= 10000) { - throw new Error("uuid.v1(): Can't create more than 10M uuids/sec"); - } - _lastMSecs = msecs; - _lastNSecs = nsecs; - _clockseq = clockseq; - - // Per 4.1.4 - Convert from unix epoch to Gregorian epoch - msecs += 12219292800000; - - // `time_low` - var tl = ((msecs & 0xfffffff) * 10000 + nsecs) % 0x100000000; - b[i++] = tl >>> 24 & 0xff; - b[i++] = tl >>> 16 & 0xff; - b[i++] = tl >>> 8 & 0xff; - b[i++] = tl & 0xff; - - // `time_mid` - var tmh = msecs / 0x100000000 * 10000 & 0xfffffff; - b[i++] = tmh >>> 8 & 0xff; - b[i++] = tmh & 0xff; - - // `time_high_and_version` - b[i++] = tmh >>> 24 & 0xf | 0x10; // include version - b[i++] = tmh >>> 16 & 0xff; - - // `clock_seq_hi_and_reserved` (Per 4.2.2 - include variant) - b[i++] = clockseq >>> 8 | 0x80; - - // `clock_seq_low` - b[i++] = clockseq & 0xff; - - // `node` - for (var n = 0; n < 6; ++n) { - b[i + n] = node[n]; - } - return buf || unsafeStringify(b); + return buf; } -export default v1; \ No newline at end of file +export default v1; +//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoidjEuanMiLCJzb3VyY2VSb290IjoiIiwic291cmNlcyI6WyIuLi8uLi9zcmMvdjEudHMiXSwibmFtZXMiOltdLCJtYXBwaW5ncyI6IkFBQ0EsT0FBTyxHQUFHLE1BQU0sVUFBVSxDQUFDO0FBQzNC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ENBQUMsTUFBTSxFQUFFLENBQUMsR0FBRyxDQUFDLEdBQUcsS0FBSyxFQUFFLENBQUMsR0FBRyxJQUFJLENBQUM7SUFHcEMsR0FBRyxDQUFDLE1BQU0sRUFBRSxDQUFDLEdBQUcsQ0FBQyxRQUFRLEtBQUssQ0FBQyxDQUFDLEdBQUcsSUFBSSxDQUFDO0lBR3hDLEdBQUcsQ0FBQyxNQUFNLEVBQUUsQ0FBQyxHQUFHLFFBQVEsR0FBRyxJQUFJLENBQUM7SUFHaEMsS0FBSyxJQUFJLENBQUMsR0FBRyxDQUFDLEVBQUUsQ0FBQyxHQUFHLENBQUMsRUFBRSxFQUFFLENBQUMsRUFBRSxDQUFDO1FBQzNCLEdBQUcsQ0FBQyxNQUFNLEVBQUUsQ0FBQyxHQUFHLElBQUksQ0FBQyxDQUFDLENBQUMsQ0FBQztJQUMxQixDQUFDO0lBRUQsT0FBTyxHQUFHLENBQUM7QUFDYixDQUFDO0FBRUQsZUFBZSxFQUFFLENBQUMifQ== \ No newline at end of file diff --git a/node_modules/uuid/dist/esm-browser/v1ToV6.d.ts b/node_modules/uuid/dist/esm-browser/v1ToV6.d.ts new file mode 100644 index 0000000000..38eaaf0c26 --- /dev/null +++ b/node_modules/uuid/dist/esm-browser/v1ToV6.d.ts @@ -0,0 +1,2 @@ +export default function v1ToV6(uuid: string): string; +export default function v1ToV6(uuid: Uint8Array): Uint8Array; diff --git a/node_modules/uuid/dist/esm-browser/v1ToV6.js b/node_modules/uuid/dist/esm-browser/v1ToV6.js index e4ecc29178..5e915bf593 100644 --- a/node_modules/uuid/dist/esm-browser/v1ToV6.js +++ b/node_modules/uuid/dist/esm-browser/v1ToV6.js @@ -1,20 +1,11 @@ import parse from './parse.js'; import { unsafeStringify } from './stringify.js'; - -/** - * Convert a v1 UUID to a v6 UUID - * - * @param {string|Uint8Array} uuid - The v1 UUID to convert to v6 - * @returns {string|Uint8Array} The v6 UUID as the same type as the `uuid` arg - * (string or Uint8Array) - */ export default function v1ToV6(uuid) { - var v1Bytes = typeof uuid === 'string' ? parse(uuid) : uuid; - var v6Bytes = _v1ToV6(v1Bytes); - return typeof uuid === 'string' ? unsafeStringify(v6Bytes) : v6Bytes; + const v1Bytes = typeof uuid === 'string' ? parse(uuid) : uuid; + const v6Bytes = _v1ToV6(v1Bytes); + return typeof uuid === 'string' ? unsafeStringify(v6Bytes) : v6Bytes; } - -// Do the field transformation needed for v1 -> v6 -function _v1ToV6(v1Bytes, randomize = false) { - return Uint8Array.of((v1Bytes[6] & 0x0f) << 4 | v1Bytes[7] >> 4 & 0x0f, (v1Bytes[7] & 0x0f) << 4 | (v1Bytes[4] & 0xf0) >> 4, (v1Bytes[4] & 0x0f) << 4 | (v1Bytes[5] & 0xf0) >> 4, (v1Bytes[5] & 0x0f) << 4 | (v1Bytes[0] & 0xf0) >> 4, (v1Bytes[0] & 0x0f) << 4 | (v1Bytes[1] & 0xf0) >> 4, (v1Bytes[1] & 0x0f) << 4 | (v1Bytes[2] & 0xf0) >> 4, 0x60 | v1Bytes[2] & 0x0f, v1Bytes[3], v1Bytes[8], v1Bytes[9], v1Bytes[10], v1Bytes[11], v1Bytes[12], v1Bytes[13], v1Bytes[14], v1Bytes[15]); -} \ No newline at end of file +function _v1ToV6(v1Bytes) { + return Uint8Array.of(((v1Bytes[6] & 0x0f) << 4) | ((v1Bytes[7] >> 4) & 0x0f), ((v1Bytes[7] & 0x0f) << 4) | ((v1Bytes[4] & 0xf0) >> 4), ((v1Bytes[4] & 0x0f) << 4) | ((v1Bytes[5] & 0xf0) >> 4), ((v1Bytes[5] & 0x0f) << 4) | ((v1Bytes[0] & 0xf0) >> 4), ((v1Bytes[0] & 0x0f) << 4) | ((v1Bytes[1] & 0xf0) >> 4), ((v1Bytes[1] & 0x0f) << 4) | ((v1Bytes[2] & 0xf0) >> 4), 0x60 | (v1Bytes[2] & 0x0f), v1Bytes[3], v1Bytes[8], v1Bytes[9], v1Bytes[10], v1Bytes[11], v1Bytes[12], v1Bytes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Q0FBQyxFQUFFLENBQUMsRUFDWCxPQUFPLENBQUMsRUFBRSxDQUFDLEVBQ1gsT0FBTyxDQUFDLEVBQUUsQ0FBQyxDQUNaLENBQUM7QUFDSixDQUFDIn0= \ No newline at end of file diff --git a/node_modules/uuid/dist/esm-browser/v3.d.ts b/node_modules/uuid/dist/esm-browser/v3.d.ts new file mode 100644 index 0000000000..15690e49c6 --- /dev/null +++ b/node_modules/uuid/dist/esm-browser/v3.d.ts @@ -0,0 +1,9 @@ +import { UUIDTypes } from './_types.js'; +export { DNS, URL } from './v35.js'; +declare function v3(value: string | Uint8Array, namespace: UUIDTypes, buf?: undefined, offset?: number): string; +declare function v3(value: string | Uint8Array, namespace: UUIDTypes, buf?: Uint8Array, offset?: number): Uint8Array; +declare namespace v3 { + var DNS: string; + var URL: string; +} +export default v3; diff --git a/node_modules/uuid/dist/esm-browser/v3.js b/node_modules/uuid/dist/esm-browser/v3.js index c9ab9a4cd7..15c55d853d 100644 --- a/node_modules/uuid/dist/esm-browser/v3.js +++ b/node_modules/uuid/dist/esm-browser/v3.js @@ -1,4 +1,10 @@ -import v35 from './v35.js'; import md5 from './md5.js'; -var v3 = v35('v3', 0x30, md5); -export default v3; \ No newline at end of file +import v35, { DNS, URL } from './v35.js'; +export { DNS, URL } from './v35.js'; +function v3(value, namespace, buf, offset) { + return v35(0x30, md5, value, namespace, buf, offset); +} +v3.DNS = DNS; +v3.URL = URL; +export default v3; +//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoidjMuanMiLCJzb3VyY2VSb290IjoiIiwic291cmNlcyI6WyIuLi8uLi9zcmMvdjMudHMiXSwibmFtZXMiOltdLCJtYXBwaW5ncyI6IkFBQ0EsT0FBTyxHQUFHLE1BQU0sVUFBVSxDQUFDO0FBQzNCLE9BQU8sR0FBRyxFQUFFLEVBQUUsR0FBRyxFQUFFLEdBQUcsRUFBRSxNQUFNLFVBQVUsQ0FBQztBQUV6QyxPQUFPLEVBQUUsR0FBRyxFQUFFLEdBQUcsRUFBRSxNQUFNLFVBQVUsQ0FBQztBQWNwQyxTQUFTLEVBQUUsQ0FBQyxLQUEwQixFQUFFLFNBQW9CLEVBQUUsR0FBZ0IsRUFBRSxNQUFlO0lBQzdGLE9BQU8sR0FBRyxDQUFDLElBQUksRUFBRSxHQUFHLEVBQUUsS0FBSyxFQUFFLFNBQVMsRUFBRSxHQUFHLEVBQUUsTUFBTSxDQUFDLENBQUM7QUFDdkQsQ0FBQztBQUVELEVBQUUsQ0FBQyxHQUFHLEdBQUcsR0FBRyxDQUFDO0FBQ2IsRUFBRSxDQUFDLEdBQUcsR0FBRyxHQUFHLENBQUM7QUFFYixlQUFlLEVBQUUsQ0FBQyJ9 \ No newline at end of file diff --git a/node_modules/uuid/dist/esm-browser/v35.d.ts b/node_modules/uuid/dist/esm-browser/v35.d.ts new file mode 100644 index 0000000000..be25996904 --- /dev/null +++ b/node_modules/uuid/dist/esm-browser/v35.d.ts @@ -0,0 +1,7 @@ +import { UUIDTypes } from './_types.js'; +export declare function stringToBytes(str: string): Uint8Array; +export declare const DNS = "6ba7b810-9dad-11d1-80b4-00c04fd430c8"; +export declare const URL = "6ba7b811-9dad-11d1-80b4-00c04fd430c8"; +type HashFunction = (bytes: Uint8Array) => Uint8Array; +export default function v35(version: 0x30 | 0x50, hash: HashFunction, value: string | Uint8Array, namespace: UUIDTypes, buf?: Uint8Array, offset?: number): string | Uint8Array; +export {}; diff --git a/node_modules/uuid/dist/esm-browser/v35.js b/node_modules/uuid/dist/esm-browser/v35.js index e5fd93fb78..eb52162629 100644 --- a/node_modules/uuid/dist/esm-browser/v35.js +++ b/node_modules/uuid/dist/esm-browser/v35.js @@ -1,55 +1,37 @@ -import { unsafeStringify } from './stringify.js'; import parse from './parse.js'; -function stringToBytes(str) { - str = unescape(encodeURIComponent(str)); // UTF8 escape - - var bytes = []; - for (var i = 0; i < str.length; ++i) { - bytes.push(str.charCodeAt(i)); - } - return bytes; -} -export var DNS = '6ba7b810-9dad-11d1-80b4-00c04fd430c8'; -export var URL = '6ba7b811-9dad-11d1-80b4-00c04fd430c8'; -export default function v35(name, version, hashfunc) { - function generateUUID(value, namespace, buf, offset) { - var _namespace; - if (typeof value === 'string') { - value = stringToBytes(value); +import { unsafeStringify } from './stringify.js'; +export function stringToBytes(str) { + str = unescape(encodeURIComponent(str)); + const bytes = new Uint8Array(str.length); + for (let i = 0; i < str.length; ++i) { + bytes[i] = str.charCodeAt(i); } + return bytes; +} +export const DNS = '6ba7b810-9dad-11d1-80b4-00c04fd430c8'; +export const URL = '6ba7b811-9dad-11d1-80b4-00c04fd430c8'; +export default function v35(version, hash, value, namespace, buf, offset) { + const valueBytes = typeof value === 'string' ? stringToBytes(value) : value; + const namespaceBytes = typeof namespace === 'string' ? parse(namespace) : namespace; if (typeof namespace === 'string') { - namespace = parse(namespace); + namespace = parse(namespace); } - if (((_namespace = namespace) === null || _namespace === void 0 ? void 0 : _namespace.length) !== 16) { - throw TypeError('Namespace must be array-like (16 iterable integer values, 0-255)'); + if (namespace?.length !== 16) { + throw TypeError('Namespace must be array-like (16 iterable integer values, 0-255)'); } - - // Compute hash of namespace and value, Per 4.3 - // Future: Use spread syntax when supported on all platforms, e.g. `bytes = - // hashfunc([...namespace, ... value])` - var bytes = new Uint8Array(16 + value.length); - bytes.set(namespace); - bytes.set(value, namespace.length); - bytes = hashfunc(bytes); - bytes[6] = bytes[6] & 0x0f | version; - bytes[8] = bytes[8] & 0x3f | 0x80; + let bytes = new Uint8Array(16 + valueBytes.length); + bytes.set(namespaceBytes); + bytes.set(valueBytes, namespaceBytes.length); + bytes = hash(bytes); + bytes[6] = (bytes[6] & 0x0f) | version; + bytes[8] = (bytes[8] & 0x3f) | 0x80; if (buf) { - offset = offset || 0; - for (var i = 0; i < 16; ++i) { - buf[offset + i] = bytes[i]; - } - return buf; + offset = offset || 0; + for (let i = 0; i < 16; ++i) { + buf[offset + i] = bytes[i]; + } + return buf; } return unsafeStringify(bytes); - } - - // Function#name is not settable on some platforms (#270) - try { - generateUUID.name = name; - } catch (err) {} - - // For CommonJS default export support - generateUUID.DNS = DNS; - generateUUID.URL = URL; - return generateUUID; -} \ No newline at end of file +} +//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoidjM1LmpzIiwic291cmNlUm9vdCI6IiIsInNvdXJjZXMiOlsiLi4vLi4vc3JjL3YzNS50cyJdLCJuYW1lcyI6W10sIm1hcHBpbmdzIjoiQUFDQSxPQUFPLEtBQUssTUFBTSxZQUFZLENBQUM7QUFDL0IsT0FBTyxFQUFFLGVBQWUsRUFBRSxNQUFNLGdCQUFnQixDQUFDO0FBRWpELE1BQU0sVUFBVSxhQUFhLENBQUMsR0FBVztJQUV2QyxHQUFHLEdBQUcsUUFBUSxDQUFDLGtCQUFrQixDQUFDLEdBQUcsQ0FBQyxDQUFDLENBQUM7SUFFeEMsTUFBTSxLQUFLLEdBQUcsSUFBSSxVQUFVLENBQUMsR0FBRyxDQUFDLE1BQU0sQ0FBQyxDQUFDO0lBRXpDLEtBQUssSUFBSSxDQUFDLEdBQUcsQ0FBQyxFQUFFLENBQUMsR0FBRyxHQUFHLENBQUMsTUFBTSxFQUFFLEVBQUUsQ0FBQyxFQUFFLENBQUM7UUFDcEMsS0FBSyxDQUFDLENBQUMsQ0FBQyxHQUFHLEdBQUcsQ0FBQyxVQUFVLENBQUMsQ0FBQyxDQUFDLENBQUM7SUFDL0IsQ0FBQztJQUVELE9BQU8sS0FBSyxDQUFDO0FBQ2YsQ0FBQztBQUVELE1BQU0sQ0FBQyxNQUFNLEdBQUcsR0FBRyxzQ0FBc0MsQ0FBQztBQUMxRCxNQUFNLENBQUMsTUFBTSxHQUFHLEdBQUcsc0NBQXNDLENBQUM7QUFJMUQsTUFBTSxDQUFDLE9BQU8sVUFBVSxHQUFHLENBQ3pCLE9BQW9CLEVBQ3BCLElBQWtCLEVBQ2xCLEtBQTBCLEVBQzFCLFNBQW9CLEVBQ3BCLE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HLElBQUksQ0FBQztJQUVwQyxJQUFJLEdBQUcsRUFBRSxDQUFDO1FBQ1IsTUFBTSxHQUFHLE1BQU0sSUFBSSxDQUFDLENBQUM7UUFFckIsS0FBSyxJQUFJLENBQUMsR0FBRyxDQUFDLEVBQUUsQ0FBQyxHQUFHLEVBQUUsRUFBRSxFQUFFLENBQUMsRUFBRSxDQUFDO1lBQzVCLEdBQUcsQ0FBQyxNQUFNLEdBQUcsQ0FBQyxDQUFDLEdBQUcsS0FBSyxDQUFDLENBQUMsQ0FBQyxDQUFDO1FBQzdCLENBQUM7UUFFRCxPQUFPLEdBQUcsQ0FBQztJQUNiLENBQUM7SUFFRCxPQUFPLGVBQWUsQ0FBQyxLQUFLLENBQUMsQ0FBQztBQUNoQyxDQUFDIn0= \ No newline at end of file diff --git a/node_modules/uuid/dist/esm-browser/v4.d.ts b/node_modules/uuid/dist/esm-browser/v4.d.ts new file mode 100644 index 0000000000..72a516c70f --- /dev/null +++ b/node_modules/uuid/dist/esm-browser/v4.d.ts @@ -0,0 +1,4 @@ +import { Version4Options } from './_types.js'; +declare function v4(options?: Version4Options, buf?: undefined, offset?: number): string; +declare function v4(options?: Version4Options, buf?: Uint8Array, offset?: number): Uint8Array; +export default v4; diff --git a/node_modules/uuid/dist/esm-browser/v4.js b/node_modules/uuid/dist/esm-browser/v4.js index f107002b8f..5950df9bfb 100644 --- a/node_modules/uuid/dist/esm-browser/v4.js +++ b/node_modules/uuid/dist/esm-browser/v4.js @@ -2,24 +2,21 @@ import native from './native.js'; import rng from './rng.js'; import { unsafeStringify } from './stringify.js'; function v4(options, buf, offset) { - if (native.randomUUID && !buf && !options) { - return native.randomUUID(); - } - options = options || {}; - var rnds = options.random || (options.rng || rng)(); - - // Per 4.4, set bits for version and `clock_seq_hi_and_reserved` - rnds[6] = rnds[6] & 0x0f | 0x40; - rnds[8] = rnds[8] & 0x3f | 0x80; - - // Copy bytes to buffer, if provided - if (buf) { - offset = offset || 0; - for (var i = 0; i < 16; ++i) { - buf[offset + i] = rnds[i]; + if (native.randomUUID && !buf && !options) { + return native.randomUUID(); } - return buf; - } - return unsafeStringify(rnds); + options = options || {}; + const rnds = options.random || (options.rng || rng)(); + rnds[6] = (rnds[6] & 0x0f) | 0x40; + rnds[8] = (rnds[8] & 0x3f) | 0x80; + if (buf) { + offset = offset || 0; + for (let i = 0; i < 16; ++i) { + buf[offset + i] = rnds[i]; + } + return buf; + } + return unsafeStringify(rnds); } -export default v4; \ No newline at end of file +export default v4; +//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoidjQuanMiLCJzb3VyY2VSb290IjoiIiwic291cmNlcyI6WyIuLi8uLi9zcmMvdjQudHMiXSwibmFtZXMiOltdLCJtYXBwaW5ncyI6IkFBQ0EsT0FBTyxNQUFNLE1BQU0sYUFBYSxDQUFDO0FBQ2pDLE9BQU8sR0FBRyxNQUFNLFVBQVUsQ0FBQztBQUMzQixPQUFPLEVBQUUsZUFBZSxFQUFFLE1BQU0sZ0JBQWdCLENBQUM7QUFJakQsU0FBUyxFQUFFLENBQUMsT0FBeUIsRUFBRSxHQUFnQixFQUFFLE1BQWU7SUFDdEUsSUFBSSxNQUFNLENBQUMsVUFBVSxJQUFJLENBQUMsR0FBRyxJQUFJLENBQUMsT0FBTyxFQUFFLENBQUM7UUFDMUMsT0FBTyxNQUFNLENBQUMsVUFBVSxFQUFFLENBQUM7SUFDN0IsQ0FBQztJQUVELE9BQU8sR0FBRyxPQUFPLElBQUksRUFBRSxDQUFDO0lBRXhCLE1BQU0sSUFBSSxHQUFHLE9BQU8sQ0FBQyxNQUFNLElBQUksQ0FBQyxPQUFPLENBQUMsR0FBRyxJQUFJLEdBQUcsQ0FBQyxFQUFFLENBQUM7SUFHdEQsSUFBSSxDQUFDLENBQUMsQ0FBQyxHQUFHLENBQUMsSUFBSSxDQUFDLENBQUMsQ0FBQyxHQUFHLElBQUksQ0FBQyxHQUFHLElBQUksQ0FBQztJQUNsQyxJQUFJLENBQUMsQ0FBQyxDQUFDLEdBQUcsQ0FBQyxJQUFJLENBQUMsQ0FBQyxDQUFDLEdBQUcsSUFBSSxDQUFDLEdBQUcsSUFBSSxDQUFDO0lBR2xDLElBQUksR0FBRyxFQUFFLENBQUM7UUFDUixNQUFNLEdBQUcsTUFBTSxJQUFJLENBQUMsQ0FBQztRQUVyQixLQUFLLElBQUksQ0FBQyxHQUFHLENBQUMsRUFBRSxDQUFDLEdBQUcsRUFBRSxFQUFFLEVBQUUsQ0FBQyxFQUFFLENBQUM7WUFDNUIsR0FBRyxDQUFDLE1BQU0sR0FBRyxDQUFDLENBQUMsR0FBRyxJQUFJLENBQUMsQ0FBQyxDQUFDLENBQUM7UUFDNUIsQ0FBQztRQUVELE9BQU8sR0FBRyxDQUFDO0lBQ2IsQ0FBQztJQUVELE9BQU8sZUFBZSxDQUFDLElBQUksQ0FBQyxDQUFDO0FBQy9CLENBQUM7QUFFRCxlQUFlLEVBQUUsQ0FBQyJ9 \ No newline at end of file diff --git a/node_modules/uuid/dist/esm-browser/v5.d.ts b/node_modules/uuid/dist/esm-browser/v5.d.ts new file mode 100644 index 0000000000..637ab331fd --- /dev/null +++ b/node_modules/uuid/dist/esm-browser/v5.d.ts @@ -0,0 +1,9 @@ +import { UUIDTypes } from './_types.js'; +export { DNS, URL } from './v35.js'; +declare function v5(value: string | Uint8Array, namespace: UUIDTypes, buf?: undefined, offset?: number): string; +declare function v5(value: string | Uint8Array, namespace: UUIDTypes, buf?: Uint8Array, offset?: number): Uint8Array; +declare namespace v5 { + var DNS: string; + var URL: string; +} +export default v5; diff --git a/node_modules/uuid/dist/esm-browser/v5.js b/node_modules/uuid/dist/esm-browser/v5.js index c08d96ba0b..04f7b0eb4c 100644 --- a/node_modules/uuid/dist/esm-browser/v5.js +++ b/node_modules/uuid/dist/esm-browser/v5.js @@ -1,4 +1,10 @@ -import v35 from './v35.js'; import sha1 from './sha1.js'; -var v5 = v35('v5', 0x50, sha1); -export default v5; \ No newline at end of file +import v35, { DNS, URL } from './v35.js'; +export { DNS, URL } from './v35.js'; +function v5(value, namespace, buf, offset) { + return v35(0x50, sha1, value, namespace, buf, offset); +} +v5.DNS = DNS; +v5.URL = URL; +export default v5; +//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoidjUuanMiLCJzb3VyY2VSb290IjoiIiwic291cmNlcyI6WyIuLi8uLi9zcmMvdjUudHMiXSwibmFtZXMiOltdLCJtYXBwaW5ncyI6IkFBQ0EsT0FBTyxJQUFJLE1BQU0sV0FBVyxDQUFDO0FBQzdCLE9BQU8sR0FBRyxFQUFFLEVBQUUsR0FBRyxFQUFFLEdBQUcsRUFBRSxNQUFNLFVBQVUsQ0FBQztBQUV6QyxPQUFPLEVBQUUsR0FBRyxFQUFFLEdBQUcsRUFBRSxNQUFNLFVBQVUsQ0FBQztBQWNwQyxTQUFTLEVBQUUsQ0FBQyxLQUEwQixFQUFFLFNBQW9CLEVBQUUsR0FBZ0IsRUFBRSxNQUFlO0lBQzdGLE9BQU8sR0FBRyxDQUFDLElBQUksRUFBRSxJQUFJLEVBQUUsS0FBSyxFQUFFLFNBQVMsRUFBRSxHQUFHLEVBQUUsTUFBTSxDQUFDLENBQUM7QUFDeEQsQ0FBQztBQUVELEVBQUUsQ0FBQyxHQUFHLEdBQUcsR0FBRyxDQUFDO0FBQ2IsRUFBRSxDQUFDLEdBQUcsR0FBRyxHQUFHLENBQUM7QUFFYixlQUFlLEVBQUUsQ0FBQyJ9 \ No newline at end of file diff --git a/node_modules/uuid/dist/esm-browser/v6.d.ts b/node_modules/uuid/dist/esm-browser/v6.d.ts new file mode 100644 index 0000000000..7f4483555e --- /dev/null +++ b/node_modules/uuid/dist/esm-browser/v6.d.ts @@ -0,0 +1,4 @@ +import { Version6Options } from './_types.js'; +declare function v6(options?: Version6Options, buf?: undefined, offset?: number): string; +declare function v6(options?: Version6Options, buf?: Uint8Array, offset?: number): Uint8Array; +export default v6; diff --git a/node_modules/uuid/dist/esm-browser/v6.js b/node_modules/uuid/dist/esm-browser/v6.js index 13f9e916cf..19aed4c893 100644 --- a/node_modules/uuid/dist/esm-browser/v6.js +++ b/node_modules/uuid/dist/esm-browser/v6.js @@ -1,36 +1,18 @@ -function ownKeys(e, r) { var t = Object.keys(e); if (Object.getOwnPropertySymbols) { var o = Object.getOwnPropertySymbols(e); r && (o = o.filter(function (r) { return Object.getOwnPropertyDescriptor(e, r).enumerable; })), t.push.apply(t, o); } return t; } -function _objectSpread(e) { for (var r = 1; r < arguments.length; r++) { var t = null != arguments[r] ? arguments[r] : {}; r % 2 ? ownKeys(Object(t), !0).forEach(function (r) { _defineProperty(e, r, t[r]); }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(t)) : ownKeys(Object(t)).forEach(function (r) { Object.defineProperty(e, r, Object.getOwnPropertyDescriptor(t, r)); }); } return e; } -function _defineProperty(e, r, t) { return (r = _toPropertyKey(r)) in e ? Object.defineProperty(e, r, { value: t, enumerable: !0, configurable: !0, writable: !0 }) : e[r] = t, e; } -function _toPropertyKey(t) { var i = _toPrimitive(t, "string"); return "symbol" == typeof i ? i : i + ""; } -function _toPrimitive(t, r) { if ("object" != typeof t || !t) return t; var e = t[Symbol.toPrimitive]; if (void 0 !== e) { var i = e.call(t, r || "default"); if ("object" != typeof i) return i; throw new TypeError("@@toPrimitive must return a primitive value."); } return ("string" === r ? String : Number)(t); } import { unsafeStringify } from './stringify.js'; import v1 from './v1.js'; import v1ToV6 from './v1ToV6.js'; - -/** - * - * @param {object} options - * @param {Uint8Array=} buf - * @param {number=} offset - * @returns - */ -export default function v6(options = {}, buf, offset = 0) { - // v6 is v1 with different field layout, so we start with a v1 UUID, albeit - // with slightly different behavior around how the clock_seq and node fields - // are randomized, which is why we call v1 with _v6: true. - var bytes = v1(_objectSpread(_objectSpread({}, options), {}, { - _v6: true - }), new Uint8Array(16)); - - // Reorder the fields to v6 layout. - bytes = v1ToV6(bytes); - - // Return as a byte array if requested - if (buf) { - for (var i = 0; i < 16; i++) { - buf[offset + i] = bytes[i]; +function v6(options, buf, offset) { + options ??= {}; + offset ??= 0; + let bytes = v1({ ...options, _v6: true }, new Uint8Array(16)); + bytes = v1ToV6(bytes); + if (buf) { + for (let i = 0; i < 16; i++) { + buf[offset + i] = bytes[i]; + } + return buf; } - return buf; - } - return unsafeStringify(bytes); -} \ No newline at end of file + return unsafeStringify(bytes); +} +export default v6; +//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoidjYuanMiLCJzb3VyY2VSb290IjoiIiwic291cmNlcyI6WyIuLi8uLi9zcmMvdjYudHMiXSwibmFtZXMiOltdLCJtYXBwaW5ncyI6IkFBQ0EsT0FBTyxFQUFFLGVBQWUsRUFBRSxNQUFNLGdCQUFnQixDQUFDO0FBQ2pELE9BQU8sRUFBRSxNQUFNLFNBQVMsQ0FBQztBQUN6QixPQUFPLE1BQU0sTUFBTSxhQUFhLENBQUM7QUFJakMsU0FBUyxFQUFFLENBQUMsT0FBeUIsRUFBRSxHQUFnQixFQUFFLE1BQWU7SUFDdEUsT0FBTyxLQUFLLEVBQUUsQ0FBQztJQUNmLE1BQU0sS0FBSyxDQUFDLENBQUM7SUFLYixJQUFJLEtBQUssR0FBRyxFQUFFLENBQUMsRUFBRSxHQUFHLE9BQU8sRUFBRSxHQUFHLEVBQUUsSUFBSSxFQUFFLEVBQUUsSUFBSSxVQUFVLENBQUMsRUFBRSxDQUFDLENBQUMsQ0FBQztJQUc5RCxLQUFLLEdBQUcsTUFBTSxDQUFDLEtBQUssQ0FBQyxDQUFDO0lBR3RCLElBQUksR0FBRyxFQUFFLENBQUM7UUFDUixLQUFLLElBQUksQ0FBQyxHQUFHLENBQUMsRUFBRSxDQUFDLEdBQUcsRUFBRSxFQUFFLENBQUMsRUFBRSxFQUFFLENBQUM7WUFDNUIsR0FBRyxDQUFDLE1BQU0sR0FBRyxDQUFDLENBQUMsR0FBRyxLQUFLLENBQUMsQ0FBQyxDQUFDLENBQUM7UUFDN0IsQ0FBQztRQUNELE9BQU8sR0FBRyxDQUFDO0lBQ2IsQ0FBQztJQUVELE9BQU8sZUFBZSxDQUFDLEtBQUssQ0FBQyxDQUFDO0FBQ2hDLENBQUM7QUFFRCxlQUFlLEVBQUUsQ0FBQyJ9 \ No newline at end of file diff --git a/node_modules/uuid/dist/esm-browser/v6ToV1.d.ts b/node_modules/uuid/dist/esm-browser/v6ToV1.d.ts new file mode 100644 index 0000000000..3b3ffc2113 --- /dev/null +++ b/node_modules/uuid/dist/esm-browser/v6ToV1.d.ts @@ -0,0 +1,2 @@ +export default function v6ToV1(uuid: string): string; +export default function v6ToV1(uuid: Uint8Array): Uint8Array; diff --git a/node_modules/uuid/dist/esm-browser/v6ToV1.js b/node_modules/uuid/dist/esm-browser/v6ToV1.js index 3dd1058fcf..84c0638736 100644 --- a/node_modules/uuid/dist/esm-browser/v6ToV1.js +++ b/node_modules/uuid/dist/esm-browser/v6ToV1.js @@ -1,20 +1,11 @@ import parse from './parse.js'; import { unsafeStringify } from './stringify.js'; - -/** - * Convert a v6 UUID to a v1 UUID - * - * @param {string|Uint8Array} uuid - The v6 UUID to convert to v6 - * @returns {string|Uint8Array} The v1 UUID as the same type as the `uuid` arg - * (string or Uint8Array) - */ export default function v6ToV1(uuid) { - var v6Bytes = typeof uuid === 'string' ? parse(uuid) : uuid; - var v1Bytes = _v6ToV1(v6Bytes); - return typeof uuid === 'string' ? unsafeStringify(v1Bytes) : v1Bytes; + const v6Bytes = typeof uuid === 'string' ? parse(uuid) : uuid; + const v1Bytes = _v6ToV1(v6Bytes); + return typeof uuid === 'string' ? unsafeStringify(v1Bytes) : v1Bytes; } - -// Do the field transformation needed for v6 -> v1 function _v6ToV1(v6Bytes) { - return Uint8Array.of((v6Bytes[3] & 0x0f) << 4 | v6Bytes[4] >> 4 & 0x0f, (v6Bytes[4] & 0x0f) << 4 | (v6Bytes[5] & 0xf0) >> 4, (v6Bytes[5] & 0x0f) << 4 | v6Bytes[6] & 0x0f, v6Bytes[7], (v6Bytes[1] & 0x0f) << 4 | (v6Bytes[2] & 0xf0) >> 4, (v6Bytes[2] & 0x0f) << 4 | (v6Bytes[3] & 0xf0) >> 4, 0x10 | (v6Bytes[0] & 0xf0) >> 4, (v6Bytes[0] & 0x0f) << 4 | (v6Bytes[1] & 0xf0) >> 4, v6Bytes[8], v6Bytes[9], v6Bytes[10], v6Bytes[11], v6Bytes[12], v6Bytes[13], v6Bytes[14], v6Bytes[15]); -} \ No newline at end of file + return Uint8Array.of(((v6Bytes[3] & 0x0f) << 4) | ((v6Bytes[4] >> 4) & 0x0f), ((v6Bytes[4] & 0x0f) << 4) | ((v6Bytes[5] & 0xf0) >> 4), ((v6Bytes[5] & 0x0f) << 4) | (v6Bytes[6] & 0x0f), v6Bytes[7], ((v6Bytes[1] & 0x0f) << 4) | ((v6Bytes[2] & 0xf0) >> 4), ((v6Bytes[2] & 0x0f) << 4) | ((v6Bytes[3] & 0xf0) >> 4), 0x10 | ((v6Bytes[0] & 0xf0) >> 4), ((v6Bytes[0] & 0x0f) << 4) | ((v6Bytes[1] & 0xf0) >> 4), v6Bytes[8], v6Bytes[9], v6Bytes[10], v6Bytes[11], v6Bytes[12], v6Bytes[13], v6Bytes[14], v6Bytes[15]); +} +//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoidjZUb1YxLmpzIiwic291cmNlUm9vdCI6IiIsInNvdXJjZXMiOlsiLi4vLi4vc3JjL3Y2VG9WMS50cyJdLCJuYW1lcyI6W10sIm1hcHBpbmdzIjoiQUFDQSxPQUFPLEtBQUssTUFBTSxZQUFZLENBQUM7QUFDL0IsT0FBTyxFQUFFLGVBQWUsRUFBRSxNQUFNLGdCQUFnQixDQUFDO0FBV2pELE1BQU0sQ0FBQyxPQUFPLFVBQVUsTUFBTSxDQUFDLElBQWU7SUFDNUMsTUFBTSxPQUFPLEdBQUcsT0FBTyxJQUFJLEtBQUssUUF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LENBQUMsQ0FBQyxFQUN2RCxDQUFDLENBQUMsT0FBTyxDQUFDLENBQUMsQ0FBQyxHQUFHLElBQUksQ0FBQyxJQUFJLENBQUMsQ0FBQyxHQUFHLENBQUMsQ0FBQyxPQUFPLENBQUMsQ0FBQyxDQUFDLEdBQUcsSUFBSSxDQUFDLElBQUksQ0FBQyxDQUFDLEVBRXZELElBQUksR0FBRyxDQUFDLENBQUMsT0FBTyxDQUFDLENBQUMsQ0FBQyxHQUFHLElBQUksQ0FBQyxJQUFJLENBQUMsQ0FBQyxFQUNqQyxDQUFDLENBQUMsT0FBTyxDQUFDLENBQUMsQ0FBQyxHQUFHLElBQUksQ0FBQyxJQUFJLENBQUMsQ0FBQyxHQUFHLENBQUMsQ0FBQyxPQUFPLENBQUMsQ0FBQyxDQUFDLEdBQUcsSUFBSSxDQUFDLElBQUksQ0FBQyxDQUFDLEVBRXZELE9BQU8sQ0FBQyxDQUFDLENBQUMsRUFDVixPQUFPLENBQUMsQ0FBQyxDQUFDLEVBQ1YsT0FBTyxDQUFDLEVBQUUsQ0FBQyxFQUNYLE9BQU8sQ0FBQyxFQUFFLENBQUMsRUFDWCxPQUFPLENBQUMsRUFBRSxDQUFDLEVBQ1gsT0FBTyxDQUFDLEVBQUUsQ0FBQyxFQUNYLE9BQU8sQ0FBQyxFQUFFLENBQUMsRUFDWCxPQUFPLENBQUMsRUFBRSxDQUFDLENBQ1osQ0FBQztBQUNKLENBQUMifQ== \ No newline at end of file diff --git a/node_modules/uuid/dist/esm-browser/v7.d.ts b/node_modules/uuid/dist/esm-browser/v7.d.ts new file mode 100644 index 0000000000..a5ec1b7f55 --- /dev/null +++ b/node_modules/uuid/dist/esm-browser/v7.d.ts @@ -0,0 +1,9 @@ +import { Version7Options } from './_types.js'; +type V7State = { + msecs?: number; + seq?: number; +}; +declare function v7(options?: Version7Options, buf?: undefined, offset?: number): string; +declare function v7(options?: Version7Options, buf?: Uint8Array, offset?: number): Uint8Array; +export declare function updateV7State(state: V7State, now: number, rnds: Uint8Array): V7State; +export default v7; diff --git a/node_modules/uuid/dist/esm-browser/v7.js b/node_modules/uuid/dist/esm-browser/v7.js index 324153b697..89fc344103 100644 --- a/node_modules/uuid/dist/esm-browser/v7.js +++ b/node_modules/uuid/dist/esm-browser/v7.js @@ -1,146 +1,58 @@ import rng from './rng.js'; import { unsafeStringify } from './stringify.js'; - -/** - * UUID V7 - Unix Epoch time-based UUID - * - * The IETF has published RFC9562, introducing 3 new UUID versions (6,7,8). This - * implementation of V7 is based on the accepted, though not yet approved, - * revisions. - * - * RFC 9562:https://www.rfc-editor.org/rfc/rfc9562.html Universally Unique - * IDentifiers (UUIDs) - - * - * Sample V7 value: - * https://www.rfc-editor.org/rfc/rfc9562.html#name-example-of-a-uuidv7-value - * - * Monotonic Bit Layout: RFC rfc9562.6.2 Method 1, Dedicated Counter Bits ref: - * https://www.rfc-editor.org/rfc/rfc9562.html#section-6.2-5.1 - * - * 0 1 2 3 0 1 2 3 4 5 6 - * 7 8 9 0 1 2 3 4 5 6 7 8 9 0 1 2 3 4 5 6 7 8 9 0 1 - * +-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+ - * | unix_ts_ms | - * +-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+ - * | unix_ts_ms | ver | seq_hi | - * +-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+ - * |var| seq_low | rand | - * +-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+ - * | rand | - * +-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+ - * - * seq is a 31 bit serialized counter; comprised of 12 bit seq_hi and 19 bit - * seq_low, and randomly initialized upon timestamp change. 31 bit counter size - * was selected as any bitwise operations in node are done as _signed_ 32 bit - * ints. we exclude the sign bit. - */ - -var _seqLow = null; -var _seqHigh = null; -var _msecs = 0; +const _state = {}; function v7(options, buf, offset) { - options = options || {}; - - // initialize buffer and pointer - var i = buf && offset || 0; - var b = buf || new Uint8Array(16); - - // rnds is Uint8Array(16) filled with random bytes - var rnds = options.random || (options.rng || rng)(); - - // milliseconds since unix epoch, 1970-01-01 00:00 - var msecs = options.msecs !== undefined ? options.msecs : Date.now(); - - // seq is user provided 31 bit counter - var seq = options.seq !== undefined ? options.seq : null; - - // initialize local seq high/low parts - var seqHigh = _seqHigh; - var seqLow = _seqLow; - - // check if clock has advanced and user has not provided msecs - if (msecs > _msecs && options.msecs === undefined) { - _msecs = msecs; - - // unless user provided seq, reset seq parts - if (seq !== null) { - seqHigh = null; - seqLow = null; + let bytes; + if (options) { + bytes = v7Bytes(options.random ?? options.rng?.() ?? rng(), options.msecs, options.seq, buf, offset); } - } - - // if we have a user provided seq - if (seq !== null) { - // trim provided seq to 31 bits of value, avoiding overflow - if (seq > 0x7fffffff) { - seq = 0x7fffffff; + else { + const now = Date.now(); + const rnds = rng(); + updateV7State(_state, now, rnds); + bytes = v7Bytes(rnds, _state.msecs, _state.seq, buf, offset); } - - // split provided seq into high/low parts - seqHigh = seq >>> 19 & 0xfff; - seqLow = seq & 0x7ffff; - } - - // randomly initialize seq - if (seqHigh === null || seqLow === null) { - seqHigh = rnds[6] & 0x7f; - seqHigh = seqHigh << 8 | rnds[7]; - seqLow = rnds[8] & 0x3f; // pad for var - seqLow = seqLow << 8 | rnds[9]; - seqLow = seqLow << 5 | rnds[10] >>> 3; - } - - // increment seq if within msecs window - if (msecs + 10000 > _msecs && seq === null) { - if (++seqLow > 0x7ffff) { - seqLow = 0; - if (++seqHigh > 0xfff) { - seqHigh = 0; - - // increment internal _msecs. this allows us to continue incrementing - // while staying monotonic. Note, once we hit 10k milliseconds beyond system - // clock, we will reset breaking monotonicity (after (2^31)*10000 generations) - _msecs++; - } + return buf ? bytes : unsafeStringify(bytes); +} +export function updateV7State(state, now, rnds) { + state.msecs ??= -Infinity; + state.seq ??= 0; + if (now > state.msecs) { + state.seq = (rnds[6] << 23) | (rnds[7] << 16) | (rnds[8] << 8) | rnds[9]; + state.msecs = now; + } + else { + state.seq = (state.seq + 1) | 0; + if (state.seq === 0) { + state.msecs++; + } + } + return state; +} +function v7Bytes(rnds, msecs, seq, buf, offset = 0) { + if (!buf) { + buf = new Uint8Array(16); + offset = 0; } - } else { - // resetting; we have advanced more than - // 10k milliseconds beyond system clock - _msecs = msecs; - } - _seqHigh = seqHigh; - _seqLow = seqLow; - - // [bytes 0-5] 48 bits of local timestamp - b[i++] = _msecs / 0x10000000000 & 0xff; - b[i++] = _msecs / 0x100000000 & 0xff; - b[i++] = _msecs / 0x1000000 & 0xff; - b[i++] = _msecs / 0x10000 & 0xff; - b[i++] = _msecs / 0x100 & 0xff; - b[i++] = _msecs & 0xff; - - // [byte 6] - set 4 bits of version (7) with first 4 bits seq_hi - b[i++] = seqHigh >>> 4 & 0x0f | 0x70; - - // [byte 7] remaining 8 bits of seq_hi - b[i++] = seqHigh & 0xff; - - // [byte 8] - variant (2 bits), first 6 bits seq_low - b[i++] = seqLow >>> 13 & 0x3f | 0x80; - - // [byte 9] 8 bits seq_low - b[i++] = seqLow >>> 5 & 0xff; - - // [byte 10] remaining 5 bits seq_low, 3 bits random - b[i++] = seqLow << 3 & 0xff | rnds[10] & 0x07; - - // [bytes 11-15] always random - b[i++] = rnds[11]; - b[i++] = rnds[12]; - b[i++] = rnds[13]; - b[i++] = rnds[14]; - b[i++] = rnds[15]; - return buf || unsafeStringify(b); + msecs ??= Date.now(); + seq ??= ((rnds[6] * 0x7f) << 24) | (rnds[7] << 16) | (rnds[8] << 8) | rnds[9]; + buf[offset++] = (msecs / 0x10000000000) & 0xff; + buf[offset++] = (msecs / 0x100000000) & 0xff; + buf[offset++] = (msecs / 0x1000000) & 0xff; + buf[offset++] = (msecs / 0x10000) & 0xff; + buf[offset++] = (msecs / 0x100) & 0xff; + buf[offset++] = msecs & 0xff; + buf[offset++] = 0x70 | ((seq >>> 28) & 0x0f); + buf[offset++] = (seq >>> 20) & 0xff; + buf[offset++] = 0x80 | ((seq >>> 14) & 0x3f); + buf[offset++] = (seq >>> 6) & 0xff; + buf[offset++] = ((seq << 2) & 0xff) | (rnds[10] & 0x03); + buf[offset++] = rnds[11]; + buf[offset++] = rnds[12]; + buf[offset++] = rnds[13]; + buf[offset++] = rnds[14]; + buf[offset++] = rnds[15]; + return buf; } -export default v7; \ No newline at end of file +export default v7; +//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoidjcuanMiLCJzb3VyY2VSb290IjoiIiwic291cmNlcyI6WyIuLi8uLi9zcmMvdjcudHMiXSwibmFtZXMiOltdLCJtYXBwaW5ncyI6IkFBQ0EsT0FBTyxHQUFHLE1BQU0sVUFBVSxDQUFDO0FBQzNCLE9BQU8sRUFBRSxlQUFlLEVBQUUsTUFBTSxnQkFBZ0IsQ0FBQztBQU9qRCxNQUFNLE1BQU0sR0FBWSxFQUFFLENBQUM7QUFJM0IsU0FBUyxFQUFFLENBQUMsT0FBeUIsRUFBRSxHQUFnQixFQUFFLE1BQWU7SUFDdEUsSUFBSSxLQUFpQixDQUFDO0lBRXRCLElBQUksT0FBTyxFQUFFLENBQUM7UUFFWixLQUFLLEdBQUcsT0FBTyxDQUNiLE9BQU8sQ0FBQyxNQUFNLElBQUksT0FBTyxDQUFDLEdBQUcsRUFBRSxFQUFFLElBQUksR0FBRyxFQUFFLEVBQzFDLE9BQU8sQ0FBQyxLQUFLLEVBQ2IsT0FBTyxDQUFDLEdBQUcsRUFDWCxHQUFHLEVBQ0gsTUFBTSxDQUNQLENBQUM7SUFDSixDQUFDO1NBQU0sQ0FBQztRQUVOLE1BQU0sR0FBRyxHQUFHLElBQUksQ0FBQyxHQUFHLEVBQUUsQ0FBQztRQUN2QixNQUFNLElBQUksR0FBRyx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BQUcsQ0FBQyxNQUFNLEVBQUUsQ0FBQyxHQUFHLElBQUksQ0FBQyxFQUFFLENBQUMsQ0FBQztJQUN6QixHQUFHLENBQUMsTUFBTSxFQUFFLENBQUMsR0FBRyxJQUFJLENBQUMsRUFBRSxDQUFDLENBQUM7SUFDekIsR0FBRyxDQUFDLE1BQU0sRUFBRSxDQUFDLEdBQUcsSUFBSSxDQUFDLEVBQUUsQ0FBQyxDQUFDO0lBRXpCLE9BQU8sR0FBRyxDQUFDO0FBQ2IsQ0FBQztBQUVELGVBQWUsRUFBRSxDQUFDIn0= \ No newline at end of file diff --git a/node_modules/uuid/dist/esm-browser/validate.d.ts b/node_modules/uuid/dist/esm-browser/validate.d.ts new file mode 100644 index 0000000000..57da03d7d9 --- /dev/null +++ b/node_modules/uuid/dist/esm-browser/validate.d.ts @@ -0,0 +1,2 @@ +declare function validate(uuid: unknown): boolean; +export default validate; diff --git a/node_modules/uuid/dist/esm-browser/validate.js b/node_modules/uuid/dist/esm-browser/validate.js index 6e40fa5878..d14811a7de 100644 --- a/node_modules/uuid/dist/esm-browser/validate.js +++ b/node_modules/uuid/dist/esm-browser/validate.js @@ -1,5 +1,6 @@ import REGEX from './regex.js'; function validate(uuid) { - return typeof uuid === 'string' && REGEX.test(uuid); + return typeof uuid === 'string' && REGEX.test(uuid); } -export default validate; \ No newline at end of file +export default validate; +//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoidmFsaWRhdGUuanMiLCJzb3VyY2VSb290IjoiIiwic291cmNlcyI6WyIuLi8uLi9zcmMvdmFsaWRhdGUudHMiXSwibmFtZXMiOltdLCJtYXBwaW5ncyI6IkFBQUEsT0FBTyxLQUFLLE1BQU0sWUFBWSxDQUFDO0FBRS9CLFNBQVMsUUFBUSxDQUFDLElBQWE7SUFDN0IsT0FBTyxPQUFPLElBQUksS0FBSyxRQUFRLElBQUksS0FBSyxDQUFDLElBQUksQ0FBQyxJQUFJLENBQUMsQ0FBQztBQUN0RCxDQUFDO0FBRUQsZUFBZSxRQUFRLENBQUMifQ== \ No newline at end of file diff --git a/node_modules/uuid/dist/esm-browser/version.d.ts b/node_modules/uuid/dist/esm-browser/version.d.ts new file mode 100644 index 0000000000..f1948dc805 --- /dev/null +++ b/node_modules/uuid/dist/esm-browser/version.d.ts @@ -0,0 +1,2 @@ +declare function version(uuid: string): number; +export default version; diff --git a/node_modules/uuid/dist/esm-browser/version.js b/node_modules/uuid/dist/esm-browser/version.js index 4ca924eed4..9c42ab1ed8 100644 --- a/node_modules/uuid/dist/esm-browser/version.js +++ b/node_modules/uuid/dist/esm-browser/version.js @@ -1,8 +1,9 @@ import validate from './validate.js'; function version(uuid) { - if (!validate(uuid)) { - throw TypeError('Invalid UUID'); - } - return parseInt(uuid.slice(14, 15), 16); + if (!validate(uuid)) { + throw TypeError('Invalid UUID'); + } + return parseInt(uuid.slice(14, 15), 16); } -export default version; \ No newline at end of file +export default version; +//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoidmVyc2lvbi5qcyIsInNvdXJjZVJvb3QiOiIiLCJzb3VyY2VzIjpbIi4uLy4uL3NyYy92ZXJzaW9uLnRzIl0sIm5hbWVzIjpbXSwibWFwcGluZ3MiOiJBQUFBLE9BQU8sUUFBUSxNQUFNLGVBQWUsQ0FBQztBQUVyQyxTQUFTLE9BQU8sQ0FBQyxJQUFZO0lBQzNCLElBQUksQ0FBQyxRQUFRLENBQUMsSUFBSSxDQUFDLEVBQUUsQ0FBQztRQUNwQixNQUFNLFNBQVMsQ0FBQyxjQUFjLENBQUMsQ0FBQztJQUNsQyxDQUFDO0lBRUQsT0FBTyxRQUFRLENBQUMsSUFBSSxDQUFDLEtBQUssQ0FBQyxFQUFFLEVBQUUsRUFBRSxDQUFDLEVBQUUsRUFBRSxDQUFDLENBQUM7QUFDMUMsQ0FBQztBQUVELGVBQWUsT0FBTyxDQUFDIn0= \ No newline at end of file diff --git a/node_modules/uuid/dist/esm-node/max.js b/node_modules/uuid/dist/esm-node/max.js deleted file mode 100644 index f46a281f59..0000000000 --- a/node_modules/uuid/dist/esm-node/max.js +++ /dev/null @@ -1 +0,0 @@ -export default 'ffffffff-ffff-ffff-ffff-ffffffffffff'; \ No newline at end of file diff --git a/node_modules/uuid/dist/esm-node/md5.js b/node_modules/uuid/dist/esm-node/md5.js deleted file mode 100644 index b3d890ea4b..0000000000 --- a/node_modules/uuid/dist/esm-node/md5.js +++ /dev/null @@ -1,10 +0,0 @@ -import crypto from 'node:crypto'; -function md5(bytes) { - if (Array.isArray(bytes)) { - bytes = Buffer.from(bytes); - } else if (typeof bytes === 'string') { - bytes = Buffer.from(bytes, 'utf8'); - } - return crypto.createHash('md5').update(bytes).digest(); -} -export default md5; \ No newline at end of file diff --git a/node_modules/uuid/dist/esm-node/native.js b/node_modules/uuid/dist/esm-node/native.js deleted file mode 100644 index d688de1d32..0000000000 --- a/node_modules/uuid/dist/esm-node/native.js +++ /dev/null @@ -1,4 +0,0 @@ -import crypto from 'node:crypto'; -export default { - randomUUID: crypto.randomUUID -}; \ No newline at end of file diff --git a/node_modules/uuid/dist/esm-node/nil.js b/node_modules/uuid/dist/esm-node/nil.js deleted file mode 100644 index b36324c2aa..0000000000 --- a/node_modules/uuid/dist/esm-node/nil.js +++ /dev/null @@ -1 +0,0 @@ -export default '00000000-0000-0000-0000-000000000000'; \ No newline at end of file diff --git a/node_modules/uuid/dist/esm-node/parse.js b/node_modules/uuid/dist/esm-node/parse.js deleted file mode 100644 index 80851ffabf..0000000000 --- a/node_modules/uuid/dist/esm-node/parse.js +++ /dev/null @@ -1,37 +0,0 @@ -import validate from './validate.js'; -function parse(uuid) { - if (!validate(uuid)) { - throw TypeError('Invalid UUID'); - } - let v; - const arr = new Uint8Array(16); - - // Parse ########-....-....-....-............ - arr[0] = (v = parseInt(uuid.slice(0, 8), 16)) >>> 24; - arr[1] = v >>> 16 & 0xff; - arr[2] = v >>> 8 & 0xff; - arr[3] = v & 0xff; - - // Parse ........-####-....-....-............ - arr[4] = (v = parseInt(uuid.slice(9, 13), 16)) >>> 8; - arr[5] = v & 0xff; - - // Parse ........-....-####-....-............ - arr[6] = (v = parseInt(uuid.slice(14, 18), 16)) >>> 8; - arr[7] = v & 0xff; - - // Parse ........-....-....-####-............ - arr[8] = (v = parseInt(uuid.slice(19, 23), 16)) >>> 8; - arr[9] = v & 0xff; - - // Parse ........-....-....-....-############ - // (Use "/" to avoid 32-bit truncation when bit-shifting high-order bytes) - arr[10] = (v = parseInt(uuid.slice(24, 36), 16)) / 0x10000000000 & 0xff; - arr[11] = v / 0x100000000 & 0xff; - arr[12] = v >>> 24 & 0xff; - arr[13] = v >>> 16 & 0xff; - arr[14] = v >>> 8 & 0xff; - arr[15] = v & 0xff; - return arr; -} -export default parse; \ No newline at end of file diff --git a/node_modules/uuid/dist/esm-node/regex.js b/node_modules/uuid/dist/esm-node/regex.js deleted file mode 100644 index 848a1fea3c..0000000000 --- a/node_modules/uuid/dist/esm-node/regex.js +++ /dev/null @@ -1 +0,0 @@ -export default /^(?:[0-9a-f]{8}-[0-9a-f]{4}-[1-8][0-9a-f]{3}-[89ab][0-9a-f]{3}-[0-9a-f]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$/i; \ No newline at end of file diff --git a/node_modules/uuid/dist/esm-node/rng.js b/node_modules/uuid/dist/esm-node/rng.js deleted file mode 100644 index 69ee524175..0000000000 --- a/node_modules/uuid/dist/esm-node/rng.js +++ /dev/null @@ -1,10 +0,0 @@ -import crypto from 'node:crypto'; -const rnds8Pool = new Uint8Array(256); // # of random values to pre-allocate -let poolPtr = rnds8Pool.length; -export default function rng() { - if (poolPtr > rnds8Pool.length - 16) { - crypto.randomFillSync(rnds8Pool); - poolPtr = 0; - } - return rnds8Pool.slice(poolPtr, poolPtr += 16); -} \ No newline at end of file diff --git a/node_modules/uuid/dist/esm-node/sha1.js b/node_modules/uuid/dist/esm-node/sha1.js deleted file mode 100644 index 22217871de..0000000000 --- a/node_modules/uuid/dist/esm-node/sha1.js +++ /dev/null @@ -1,10 +0,0 @@ -import crypto from 'node:crypto'; -function sha1(bytes) { - if (Array.isArray(bytes)) { - bytes = Buffer.from(bytes); - } else if (typeof bytes === 'string') { - bytes = Buffer.from(bytes, 'utf8'); - } - return crypto.createHash('sha1').update(bytes).digest(); -} -export default sha1; \ No newline at end of file diff --git a/node_modules/uuid/dist/esm-node/stringify.js b/node_modules/uuid/dist/esm-node/stringify.js deleted file mode 100644 index 7792d4e1ed..0000000000 --- a/node_modules/uuid/dist/esm-node/stringify.js +++ /dev/null @@ -1,31 +0,0 @@ -import validate from './validate.js'; - -/** - * Convert array of 16 byte values to UUID string format of the form: - * XXXXXXXX-XXXX-XXXX-XXXX-XXXXXXXXXXXX - */ -const byteToHex = []; -for (let i = 0; i < 256; ++i) { - byteToHex.push((i + 0x100).toString(16).slice(1)); -} -export function unsafeStringify(arr, offset = 0) { - // Note: Be careful editing this code! It's been tuned for performance - // and works in ways you may not expect. See https://github.com/uuidjs/uuid/pull/434 - // - // Note to future-self: No, you can't remove the `toLowerCase()` call. - // REF: https://github.com/uuidjs/uuid/pull/677#issuecomment-1757351351 - return (byteToHex[arr[offset + 0]] + byteToHex[arr[offset + 1]] + byteToHex[arr[offset + 2]] + byteToHex[arr[offset + 3]] + '-' + byteToHex[arr[offset + 4]] + byteToHex[arr[offset + 5]] + '-' + byteToHex[arr[offset + 6]] + byteToHex[arr[offset + 7]] + '-' + byteToHex[arr[offset + 8]] + byteToHex[arr[offset + 9]] + '-' + byteToHex[arr[offset + 10]] + byteToHex[arr[offset + 11]] + byteToHex[arr[offset + 12]] + byteToHex[arr[offset + 13]] + byteToHex[arr[offset + 14]] + byteToHex[arr[offset + 15]]).toLowerCase(); -} -function stringify(arr, offset = 0) { - const uuid = unsafeStringify(arr, offset); - // Consistency check for valid UUID. If this throws, it's likely due to one - // of the following: - // - One or more input array values don't map to a hex octet (leading to - // "undefined" in the uuid) - // - Invalid input values for the RFC `version` or `variant` fields - if (!validate(uuid)) { - throw TypeError('Stringified UUID is invalid'); - } - return uuid; -} -export default stringify; \ No newline at end of file diff --git a/node_modules/uuid/dist/esm-node/v1.js b/node_modules/uuid/dist/esm-node/v1.js deleted file mode 100644 index 6bf0b1c6d4..0000000000 --- a/node_modules/uuid/dist/esm-node/v1.js +++ /dev/null @@ -1,125 +0,0 @@ -import rng from './rng.js'; -import { unsafeStringify } from './stringify.js'; - -// **`v1()` - Generate time-based UUID** -// -// Inspired by https://github.com/LiosK/UUID.js -// and http://docs.python.org/library/uuid.html - -let _nodeId; -let _clockseq; - -// Previous uuid creation time -let _lastMSecs = 0; -let _lastNSecs = 0; - -// See https://github.com/uuidjs/uuid for API details -function v1(options, buf, offset) { - let i = buf && offset || 0; - const b = buf || new Array(16); - options = options || {}; - let node = options.node; - let clockseq = options.clockseq; - - // v1 only: Use cached `node` and `clockseq` values - if (!options._v6) { - if (!node) { - node = _nodeId; - } - if (clockseq == null) { - clockseq = _clockseq; - } - } - - // Handle cases where we need entropy. We do this lazily to minimize issues - // related to insufficient system entropy. See #189 - if (node == null || clockseq == null) { - const seedBytes = options.random || (options.rng || rng)(); - - // Randomize node - if (node == null) { - node = [seedBytes[0], seedBytes[1], seedBytes[2], seedBytes[3], seedBytes[4], seedBytes[5]]; - - // v1 only: cache node value for reuse - if (!_nodeId && !options._v6) { - // per RFC4122 4.5: Set MAC multicast bit (v1 only) - node[0] |= 0x01; // Set multicast bit - - _nodeId = node; - } - } - - // Randomize clockseq - if (clockseq == null) { - // Per 4.2.2, randomize (14 bit) clockseq - clockseq = (seedBytes[6] << 8 | seedBytes[7]) & 0x3fff; - if (_clockseq === undefined && !options._v6) { - _clockseq = clockseq; - } - } - } - - // v1 & v6 timestamps are 100 nano-second units since the Gregorian epoch, - // (1582-10-15 00:00). JSNumbers aren't precise enough for this, so time is - // handled internally as 'msecs' (integer milliseconds) and 'nsecs' - // (100-nanoseconds offset from msecs) since unix epoch, 1970-01-01 00:00. - let msecs = options.msecs !== undefined ? options.msecs : Date.now(); - - // Per 4.2.1.2, use count of uuid's generated during the current clock - // cycle to simulate higher resolution clock - let nsecs = options.nsecs !== undefined ? options.nsecs : _lastNSecs + 1; - - // Time since last uuid creation (in msecs) - const dt = msecs - _lastMSecs + (nsecs - _lastNSecs) / 10000; - - // Per 4.2.1.2, Bump clockseq on clock regression - if (dt < 0 && options.clockseq === undefined) { - clockseq = clockseq + 1 & 0x3fff; - } - - // Reset nsecs if clock regresses (new clockseq) or we've moved onto a new - // time interval - if ((dt < 0 || msecs > _lastMSecs) && options.nsecs === undefined) { - nsecs = 0; - } - - // Per 4.2.1.2 Throw error if too many uuids are requested - if (nsecs >= 10000) { - throw new Error("uuid.v1(): Can't create more than 10M uuids/sec"); - } - _lastMSecs = msecs; - _lastNSecs = nsecs; - _clockseq = clockseq; - - // Per 4.1.4 - Convert from unix epoch to Gregorian epoch - msecs += 12219292800000; - - // `time_low` - const tl = ((msecs & 0xfffffff) * 10000 + nsecs) % 0x100000000; - b[i++] = tl >>> 24 & 0xff; - b[i++] = tl >>> 16 & 0xff; - b[i++] = tl >>> 8 & 0xff; - b[i++] = tl & 0xff; - - // `time_mid` - const tmh = msecs / 0x100000000 * 10000 & 0xfffffff; - b[i++] = tmh >>> 8 & 0xff; - b[i++] = tmh & 0xff; - - // `time_high_and_version` - b[i++] = tmh >>> 24 & 0xf | 0x10; // include version - b[i++] = tmh >>> 16 & 0xff; - - // `clock_seq_hi_and_reserved` (Per 4.2.2 - include variant) - b[i++] = clockseq >>> 8 | 0x80; - - // `clock_seq_low` - b[i++] = clockseq & 0xff; - - // `node` - for (let n = 0; n < 6; ++n) { - b[i + n] = node[n]; - } - return buf || unsafeStringify(b); -} -export default v1; \ No newline at end of file diff --git a/node_modules/uuid/dist/esm-node/v1ToV6.js b/node_modules/uuid/dist/esm-node/v1ToV6.js deleted file mode 100644 index 15aea2fb23..0000000000 --- a/node_modules/uuid/dist/esm-node/v1ToV6.js +++ /dev/null @@ -1,20 +0,0 @@ -import parse from './parse.js'; -import { unsafeStringify } from './stringify.js'; - -/** - * Convert a v1 UUID to a v6 UUID - * - * @param {string|Uint8Array} uuid - The v1 UUID to convert to v6 - * @returns {string|Uint8Array} The v6 UUID as the same type as the `uuid` arg - * (string or Uint8Array) - */ -export default function v1ToV6(uuid) { - const v1Bytes = typeof uuid === 'string' ? parse(uuid) : uuid; - const v6Bytes = _v1ToV6(v1Bytes); - return typeof uuid === 'string' ? unsafeStringify(v6Bytes) : v6Bytes; -} - -// Do the field transformation needed for v1 -> v6 -function _v1ToV6(v1Bytes, randomize = false) { - return Uint8Array.of((v1Bytes[6] & 0x0f) << 4 | v1Bytes[7] >> 4 & 0x0f, (v1Bytes[7] & 0x0f) << 4 | (v1Bytes[4] & 0xf0) >> 4, (v1Bytes[4] & 0x0f) << 4 | (v1Bytes[5] & 0xf0) >> 4, (v1Bytes[5] & 0x0f) << 4 | (v1Bytes[0] & 0xf0) >> 4, (v1Bytes[0] & 0x0f) << 4 | (v1Bytes[1] & 0xf0) >> 4, (v1Bytes[1] & 0x0f) << 4 | (v1Bytes[2] & 0xf0) >> 4, 0x60 | v1Bytes[2] & 0x0f, v1Bytes[3], v1Bytes[8], v1Bytes[9], v1Bytes[10], v1Bytes[11], v1Bytes[12], v1Bytes[13], v1Bytes[14], v1Bytes[15]); -} \ No newline at end of file diff --git a/node_modules/uuid/dist/esm-node/v3.js b/node_modules/uuid/dist/esm-node/v3.js deleted file mode 100644 index 09063b8604..0000000000 --- a/node_modules/uuid/dist/esm-node/v3.js +++ /dev/null @@ -1,4 +0,0 @@ -import v35 from './v35.js'; -import md5 from './md5.js'; -const v3 = v35('v3', 0x30, md5); -export default v3; \ No newline at end of file diff --git a/node_modules/uuid/dist/esm-node/v35.js b/node_modules/uuid/dist/esm-node/v35.js deleted file mode 100644 index 013c869625..0000000000 --- a/node_modules/uuid/dist/esm-node/v35.js +++ /dev/null @@ -1,55 +0,0 @@ -import { unsafeStringify } from './stringify.js'; -import parse from './parse.js'; -function stringToBytes(str) { - str = unescape(encodeURIComponent(str)); // UTF8 escape - - const bytes = []; - for (let i = 0; i < str.length; ++i) { - bytes.push(str.charCodeAt(i)); - } - return bytes; -} -export const DNS = '6ba7b810-9dad-11d1-80b4-00c04fd430c8'; -export const URL = '6ba7b811-9dad-11d1-80b4-00c04fd430c8'; -export default function v35(name, version, hashfunc) { - function generateUUID(value, namespace, buf, offset) { - var _namespace; - if (typeof value === 'string') { - value = stringToBytes(value); - } - if (typeof namespace === 'string') { - namespace = parse(namespace); - } - if (((_namespace = namespace) === null || _namespace === void 0 ? void 0 : _namespace.length) !== 16) { - throw TypeError('Namespace must be array-like (16 iterable integer values, 0-255)'); - } - - // Compute hash of namespace and value, Per 4.3 - // Future: Use spread syntax when supported on all platforms, e.g. `bytes = - // hashfunc([...namespace, ... value])` - let bytes = new Uint8Array(16 + value.length); - bytes.set(namespace); - bytes.set(value, namespace.length); - bytes = hashfunc(bytes); - bytes[6] = bytes[6] & 0x0f | version; - bytes[8] = bytes[8] & 0x3f | 0x80; - if (buf) { - offset = offset || 0; - for (let i = 0; i < 16; ++i) { - buf[offset + i] = bytes[i]; - } - return buf; - } - return unsafeStringify(bytes); - } - - // Function#name is not settable on some platforms (#270) - try { - generateUUID.name = name; - } catch (err) {} - - // For CommonJS default export support - generateUUID.DNS = DNS; - generateUUID.URL = URL; - return generateUUID; -} \ No newline at end of file diff --git a/node_modules/uuid/dist/esm-node/v4.js b/node_modules/uuid/dist/esm-node/v4.js deleted file mode 100644 index ed1db71edf..0000000000 --- a/node_modules/uuid/dist/esm-node/v4.js +++ /dev/null @@ -1,25 +0,0 @@ -import native from './native.js'; -import rng from './rng.js'; -import { unsafeStringify } from './stringify.js'; -function v4(options, buf, offset) { - if (native.randomUUID && !buf && !options) { - return native.randomUUID(); - } - options = options || {}; - const rnds = options.random || (options.rng || rng)(); - - // Per 4.4, set bits for version and `clock_seq_hi_and_reserved` - rnds[6] = rnds[6] & 0x0f | 0x40; - rnds[8] = rnds[8] & 0x3f | 0x80; - - // Copy bytes to buffer, if provided - if (buf) { - offset = offset || 0; - for (let i = 0; i < 16; ++i) { - buf[offset + i] = rnds[i]; - } - return buf; - } - return unsafeStringify(rnds); -} -export default v4; \ No newline at end of file diff --git a/node_modules/uuid/dist/esm-node/v5.js b/node_modules/uuid/dist/esm-node/v5.js deleted file mode 100644 index e87fe317d7..0000000000 --- a/node_modules/uuid/dist/esm-node/v5.js +++ /dev/null @@ -1,4 +0,0 @@ -import v35 from './v35.js'; -import sha1 from './sha1.js'; -const v5 = v35('v5', 0x50, sha1); -export default v5; \ No newline at end of file diff --git a/node_modules/uuid/dist/esm-node/v6.js b/node_modules/uuid/dist/esm-node/v6.js deleted file mode 100644 index 673d025ef7..0000000000 --- a/node_modules/uuid/dist/esm-node/v6.js +++ /dev/null @@ -1,32 +0,0 @@ -import { unsafeStringify } from './stringify.js'; -import v1 from './v1.js'; -import v1ToV6 from './v1ToV6.js'; - -/** - * - * @param {object} options - * @param {Uint8Array=} buf - * @param {number=} offset - * @returns - */ -export default function v6(options = {}, buf, offset = 0) { - // v6 is v1 with different field layout, so we start with a v1 UUID, albeit - // with slightly different behavior around how the clock_seq and node fields - // are randomized, which is why we call v1 with _v6: true. - let bytes = v1({ - ...options, - _v6: true - }, new Uint8Array(16)); - - // Reorder the fields to v6 layout. - bytes = v1ToV6(bytes); - - // Return as a byte array if requested - if (buf) { - for (let i = 0; i < 16; i++) { - buf[offset + i] = bytes[i]; - } - return buf; - } - return unsafeStringify(bytes); -} \ No newline at end of file diff --git a/node_modules/uuid/dist/esm-node/v6ToV1.js b/node_modules/uuid/dist/esm-node/v6ToV1.js deleted file mode 100644 index e2fdfff685..0000000000 --- a/node_modules/uuid/dist/esm-node/v6ToV1.js +++ /dev/null @@ -1,20 +0,0 @@ -import parse from './parse.js'; -import { unsafeStringify } from './stringify.js'; - -/** - * Convert a v6 UUID to a v1 UUID - * - * @param {string|Uint8Array} uuid - The v6 UUID to convert to v6 - * @returns {string|Uint8Array} The v1 UUID as the same type as the `uuid` arg - * (string or Uint8Array) - */ -export default function v6ToV1(uuid) { - const v6Bytes = typeof uuid === 'string' ? parse(uuid) : uuid; - const v1Bytes = _v6ToV1(v6Bytes); - return typeof uuid === 'string' ? unsafeStringify(v1Bytes) : v1Bytes; -} - -// Do the field transformation needed for v6 -> v1 -function _v6ToV1(v6Bytes) { - return Uint8Array.of((v6Bytes[3] & 0x0f) << 4 | v6Bytes[4] >> 4 & 0x0f, (v6Bytes[4] & 0x0f) << 4 | (v6Bytes[5] & 0xf0) >> 4, (v6Bytes[5] & 0x0f) << 4 | v6Bytes[6] & 0x0f, v6Bytes[7], (v6Bytes[1] & 0x0f) << 4 | (v6Bytes[2] & 0xf0) >> 4, (v6Bytes[2] & 0x0f) << 4 | (v6Bytes[3] & 0xf0) >> 4, 0x10 | (v6Bytes[0] & 0xf0) >> 4, (v6Bytes[0] & 0x0f) << 4 | (v6Bytes[1] & 0xf0) >> 4, v6Bytes[8], v6Bytes[9], v6Bytes[10], v6Bytes[11], v6Bytes[12], v6Bytes[13], v6Bytes[14], v6Bytes[15]); -} \ No newline at end of file diff --git a/node_modules/uuid/dist/esm-node/v7.js b/node_modules/uuid/dist/esm-node/v7.js deleted file mode 100644 index 18159e19bb..0000000000 --- a/node_modules/uuid/dist/esm-node/v7.js +++ /dev/null @@ -1,146 +0,0 @@ -import rng from './rng.js'; -import { unsafeStringify } from './stringify.js'; - -/** - * UUID V7 - Unix Epoch time-based UUID - * - * The IETF has published RFC9562, introducing 3 new UUID versions (6,7,8). This - * implementation of V7 is based on the accepted, though not yet approved, - * revisions. - * - * RFC 9562:https://www.rfc-editor.org/rfc/rfc9562.html Universally Unique - * IDentifiers (UUIDs) - - * - * Sample V7 value: - * https://www.rfc-editor.org/rfc/rfc9562.html#name-example-of-a-uuidv7-value - * - * Monotonic Bit Layout: RFC rfc9562.6.2 Method 1, Dedicated Counter Bits ref: - * https://www.rfc-editor.org/rfc/rfc9562.html#section-6.2-5.1 - * - * 0 1 2 3 0 1 2 3 4 5 6 - * 7 8 9 0 1 2 3 4 5 6 7 8 9 0 1 2 3 4 5 6 7 8 9 0 1 - * +-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+ - * | unix_ts_ms | - * +-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+ - * | unix_ts_ms | ver | seq_hi | - * +-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+ - * |var| seq_low | rand | - * +-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+ - * | rand | - * +-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+ - * - * seq is a 31 bit serialized counter; comprised of 12 bit seq_hi and 19 bit - * seq_low, and randomly initialized upon timestamp change. 31 bit counter size - * was selected as any bitwise operations in node are done as _signed_ 32 bit - * ints. we exclude the sign bit. - */ - -let _seqLow = null; -let _seqHigh = null; -let _msecs = 0; -function v7(options, buf, offset) { - options = options || {}; - - // initialize buffer and pointer - let i = buf && offset || 0; - const b = buf || new Uint8Array(16); - - // rnds is Uint8Array(16) filled with random bytes - const rnds = options.random || (options.rng || rng)(); - - // milliseconds since unix epoch, 1970-01-01 00:00 - const msecs = options.msecs !== undefined ? options.msecs : Date.now(); - - // seq is user provided 31 bit counter - let seq = options.seq !== undefined ? options.seq : null; - - // initialize local seq high/low parts - let seqHigh = _seqHigh; - let seqLow = _seqLow; - - // check if clock has advanced and user has not provided msecs - if (msecs > _msecs && options.msecs === undefined) { - _msecs = msecs; - - // unless user provided seq, reset seq parts - if (seq !== null) { - seqHigh = null; - seqLow = null; - } - } - - // if we have a user provided seq - if (seq !== null) { - // trim provided seq to 31 bits of value, avoiding overflow - if (seq > 0x7fffffff) { - seq = 0x7fffffff; - } - - // split provided seq into high/low parts - seqHigh = seq >>> 19 & 0xfff; - seqLow = seq & 0x7ffff; - } - - // randomly initialize seq - if (seqHigh === null || seqLow === null) { - seqHigh = rnds[6] & 0x7f; - seqHigh = seqHigh << 8 | rnds[7]; - seqLow = rnds[8] & 0x3f; // pad for var - seqLow = seqLow << 8 | rnds[9]; - seqLow = seqLow << 5 | rnds[10] >>> 3; - } - - // increment seq if within msecs window - if (msecs + 10000 > _msecs && seq === null) { - if (++seqLow > 0x7ffff) { - seqLow = 0; - if (++seqHigh > 0xfff) { - seqHigh = 0; - - // increment internal _msecs. this allows us to continue incrementing - // while staying monotonic. Note, once we hit 10k milliseconds beyond system - // clock, we will reset breaking monotonicity (after (2^31)*10000 generations) - _msecs++; - } - } - } else { - // resetting; we have advanced more than - // 10k milliseconds beyond system clock - _msecs = msecs; - } - _seqHigh = seqHigh; - _seqLow = seqLow; - - // [bytes 0-5] 48 bits of local timestamp - b[i++] = _msecs / 0x10000000000 & 0xff; - b[i++] = _msecs / 0x100000000 & 0xff; - b[i++] = _msecs / 0x1000000 & 0xff; - b[i++] = _msecs / 0x10000 & 0xff; - b[i++] = _msecs / 0x100 & 0xff; - b[i++] = _msecs & 0xff; - - // [byte 6] - set 4 bits of version (7) with first 4 bits seq_hi - b[i++] = seqHigh >>> 4 & 0x0f | 0x70; - - // [byte 7] remaining 8 bits of seq_hi - b[i++] = seqHigh & 0xff; - - // [byte 8] - variant (2 bits), first 6 bits seq_low - b[i++] = seqLow >>> 13 & 0x3f | 0x80; - - // [byte 9] 8 bits seq_low - b[i++] = seqLow >>> 5 & 0xff; - - // [byte 10] remaining 5 bits seq_low, 3 bits random - b[i++] = seqLow << 3 & 0xff | rnds[10] & 0x07; - - // [bytes 11-15] always random - b[i++] = rnds[11]; - b[i++] = rnds[12]; - b[i++] = rnds[13]; - b[i++] = rnds[14]; - b[i++] = rnds[15]; - return buf || unsafeStringify(b); -} -export default v7; \ No newline at end of file diff --git a/node_modules/uuid/dist/esm-node/validate.js b/node_modules/uuid/dist/esm-node/validate.js deleted file mode 100644 index 6e40fa5878..0000000000 --- a/node_modules/uuid/dist/esm-node/validate.js +++ /dev/null @@ -1,5 +0,0 @@ -import REGEX from './regex.js'; -function validate(uuid) { - return typeof uuid === 'string' && REGEX.test(uuid); -} -export default validate; \ No newline at end of file diff --git a/node_modules/uuid/dist/esm-node/version.js b/node_modules/uuid/dist/esm-node/version.js deleted file mode 100644 index 4ca924eed4..0000000000 --- a/node_modules/uuid/dist/esm-node/version.js +++ /dev/null @@ -1,8 +0,0 @@ -import validate from './validate.js'; -function version(uuid) { - if (!validate(uuid)) { - throw TypeError('Invalid UUID'); - } - return parseInt(uuid.slice(14, 15), 16); -} -export default version; \ No newline at end of file diff --git a/node_modules/uuid/dist/esm/_types.d.ts b/node_modules/uuid/dist/esm/_types.d.ts new file mode 100644 index 0000000000..cdf09146a2 --- /dev/null +++ b/node_modules/uuid/dist/esm/_types.d.ts @@ -0,0 +1,21 @@ +export type UUIDTypes = string | Uint8Array; +export type Version1Options = { + node?: Uint8Array; + clockseq?: number; + random?: Uint8Array; + rng?: () => Uint8Array; + msecs?: number; + nsecs?: number; + _v6?: boolean; +}; +export type Version4Options = { + random?: Uint8Array; + rng?: () => Uint8Array; +}; +export type Version6Options = Version1Options; +export type Version7Options = { + random?: Uint8Array; + msecs?: number; + seq?: number; + rng?: () => Uint8Array; +}; diff --git a/node_modules/uuid/dist/esm/_types.js b/node_modules/uuid/dist/esm/_types.js new file mode 100644 index 0000000000..f176cc4d07 --- /dev/null +++ b/node_modules/uuid/dist/esm/_types.js @@ -0,0 +1,2 @@ +export {}; +//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiX3R5cGVzLmpzIiwic291cmNlUm9vdCI6IiIsInNvdXJjZXMiOlsiLi4vLi4vc3JjL190eXBlcy50cyJdLCJuYW1lcyI6W10sIm1hcHBpbmdzIjoiIn0= \ No newline at end of file diff --git a/node_modules/uuid/dist/esm/bin/uuid b/node_modules/uuid/dist/esm/bin/uuid new file mode 100755 index 0000000000..b4f612d447 --- /dev/null +++ b/node_modules/uuid/dist/esm/bin/uuid @@ -0,0 +1,2 @@ +#!/usr/bin/env node +import '../uuid-bin.js'; diff --git a/node_modules/uuid/dist/esm/index.d.ts b/node_modules/uuid/dist/esm/index.d.ts new file mode 100644 index 0000000000..3193e9a3b3 --- /dev/null +++ b/node_modules/uuid/dist/esm/index.d.ts @@ -0,0 +1,14 @@ +export { default as MAX } from './max.js'; +export { default as NIL } from './nil.js'; +export { default as parse } from './parse.js'; +export { default as stringify } from './stringify.js'; +export { default as v1 } from './v1.js'; +export { default as v1ToV6 } from './v1ToV6.js'; +export { default as v3 } from './v3.js'; +export { default as v4 } from './v4.js'; +export { default as v5 } from './v5.js'; +export { default as v6 } from './v6.js'; +export { default as v6ToV1 } from './v6ToV1.js'; +export { default as v7 } from './v7.js'; +export { default as validate } from './validate.js'; +export { default as version } from './version.js'; diff --git a/node_modules/uuid/dist/esm/index.js b/node_modules/uuid/dist/esm/index.js new file mode 100644 index 0000000000..0c0a6b209e --- /dev/null +++ b/node_modules/uuid/dist/esm/index.js @@ -0,0 +1,15 @@ +export { default as MAX } from './max.js'; +export { default as NIL } from './nil.js'; +export { default as parse } from './parse.js'; +export { default as stringify } from './stringify.js'; +export { default as v1 } from './v1.js'; +export { default as v1ToV6 } from './v1ToV6.js'; +export { default as v3 } from './v3.js'; +export { default as v4 } from './v4.js'; +export { default as v5 } from './v5.js'; +export { default as v6 } from './v6.js'; +export { default as v6ToV1 } from './v6ToV1.js'; +export { default as v7 } from './v7.js'; +export { default as validate } from './validate.js'; +export { default as version } from './version.js'; +//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiaW5kZXguanMiLCJzb3VyY2VSb290IjoiIiwic291cmNlcyI6WyIuLi8uLi9zcmMvaW5kZXgudHMiXSwibmFt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uid/dist/esm/max.d.ts new file mode 100644 index 0000000000..7a1e972af4 --- /dev/null +++ b/node_modules/uuid/dist/esm/max.d.ts @@ -0,0 +1,2 @@ +declare const _default: "ffffffff-ffff-ffff-ffff-ffffffffffff"; +export default _default; diff --git a/node_modules/uuid/dist/esm/max.js b/node_modules/uuid/dist/esm/max.js new file mode 100644 index 0000000000..66aae3cff6 --- /dev/null +++ b/node_modules/uuid/dist/esm/max.js @@ -0,0 +1,2 @@ +export default 'ffffffff-ffff-ffff-ffff-ffffffffffff'; +//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoibWF4LmpzIiwic291cmNlUm9vdCI6IiIsInNvdXJjZXMiOlsiLi4vLi4vc3JjL21heC50cyJdLCJuYW1lcyI6W10sIm1hcHBpbmdzIjoiQUFBQSxlQUFlLHNDQUFzQyxDQUFDIn0= \ No newline at end of file diff --git a/node_modules/uuid/dist/esm/md5.d.ts b/node_modules/uuid/dist/esm/md5.d.ts new file mode 100644 index 0000000000..26cb1a01f9 --- /dev/null +++ b/node_modules/uuid/dist/esm/md5.d.ts @@ -0,0 +1,2 @@ +declare function md5(bytes: Uint8Array): Buffer; +export default md5; diff --git a/node_modules/uuid/dist/esm/md5.js b/node_modules/uuid/dist/esm/md5.js new file mode 100644 index 0000000000..46cf2cbf96 --- /dev/null +++ b/node_modules/uuid/dist/esm/md5.js @@ -0,0 +1,12 @@ +import { createHash } from 'crypto'; +function md5(bytes) { + if (Array.isArray(bytes)) { + bytes = Buffer.from(bytes); + } + else if (typeof bytes === 'string') { + bytes = Buffer.from(bytes, 'utf8'); + } + return createHash('md5').update(bytes).digest(); +} +export default md5; +//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoibWQ1LmpzIiwic291cmNlUm9vdCI6IiIsInNvdXJjZXMiOlsiLi4vLi4vc3JjL21kNS50cyJdLCJuYW1lcyI6W10sIm1hcHBpbmdzIjoiQUFBQSxPQUFPLEVBQUUsVUFBVSxFQUFFLE1BQU0sUUFBUSxDQUFDO0FBRXBDLFNBQVMsR0FBRyxDQUFDLEtBQWlCO0lBQzVCLElBQUksS0FBSyxDQUFDLE9BQU8sQ0FBQyxLQUFLLENBQUMsRUFBRSxDQUFDO1FBQ3pCLEtBQUssR0FBRyxNQUFNLENBQUMsSUFBSSxDQUFDLEtBQUssQ0FBQyxDQUFDO0lBQzdCLENBQUM7U0FBTSxJQUFJLE9BQU8sS0FBSyxLQUFLLFFBQVEsRUFBRSxDQUFDO1FBQ3JDLEtBQUssR0FBRyxNQUFNLENBQUMsSUFBSSxDQUFDLEtBQUssRUFBRSxNQUFNLENBQUMsQ0FBQztJQUNyQyxDQUFDO0lBRUQsT0FBTyxVQUFVLENBQUMsS0FBSyxDQUFDLENBQUMsTUFBTSxDQUFDLEtBQUssQ0FBQyxDQUFDLE1BQU0sRUFBRSxDQUFDO0FBQ2xELENBQUM7QUFFRCxlQUFlLEdBQUcsQ0FBQyJ9 \ No newline at end of file diff --git a/node_modules/uuid/dist/esm/native.d.ts b/node_modules/uuid/dist/esm/native.d.ts new file mode 100644 index 0000000000..171ce06c38 --- /dev/null +++ b/node_modules/uuid/dist/esm/native.d.ts @@ -0,0 +1,5 @@ +import { randomUUID } from 'crypto'; +declare const _default: { + randomUUID: typeof randomUUID; +}; +export default _default; diff --git a/node_modules/uuid/dist/esm/native.js b/node_modules/uuid/dist/esm/native.js new file mode 100644 index 0000000000..2e7500d950 --- /dev/null +++ b/node_modules/uuid/dist/esm/native.js @@ -0,0 +1,3 @@ +import { randomUUID } from 'crypto'; +export default { randomUUID }; +//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoibmF0aXZlLmpzIiwic291cmNlUm9vdCI6IiIsInNvdXJjZXMiOlsiLi4vLi4vc3JjL25hdGl2ZS50cyJdLCJuYW1lcyI6W10sIm1hcHBpbmdzIjoiQUFBQSxPQUFPLEVBQUUsVUFBVSxFQUFFLE1BQU0sUUFBUSxDQUFDO0FBRXBDLGVBQWUsRUFBRSxVQUFVLEVBQUUsQ0FBQyJ9 \ No newline at end of file diff --git a/node_modules/uuid/dist/esm/nil.d.ts b/node_modules/uuid/dist/esm/nil.d.ts new file mode 100644 index 0000000000..b03bb98efd --- /dev/null +++ b/node_modules/uuid/dist/esm/nil.d.ts @@ -0,0 +1,2 @@ +declare const _default: "00000000-0000-0000-0000-000000000000"; +export default _default; diff --git a/node_modules/uuid/dist/esm/nil.js b/node_modules/uuid/dist/esm/nil.js new file mode 100644 index 0000000000..d649c5cfca --- /dev/null +++ b/node_modules/uuid/dist/esm/nil.js @@ -0,0 +1,2 @@ +export default '00000000-0000-0000-0000-000000000000'; +//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoibmlsLmpzIiwic291cmNlUm9vdCI6IiIsInNvdXJjZXMiOlsiLi4vLi4vc3JjL25pbC50cyJdLCJuYW1lcyI6W10sIm1hcHBpbmdzIjoiQUFBQSxlQUFlLHNDQUFzQyxDQUFDIn0= \ No newline at end of file diff --git a/node_modules/uuid/dist/esm/parse.d.ts b/node_modules/uuid/dist/esm/parse.d.ts new file mode 100644 index 0000000000..a316fb1178 --- /dev/null +++ b/node_modules/uuid/dist/esm/parse.d.ts @@ -0,0 +1,2 @@ +declare function parse(uuid: string): Uint8Array; +export default parse; diff --git a/node_modules/uuid/dist/esm/parse.js b/node_modules/uuid/dist/esm/parse.js new file mode 100644 index 0000000000..0ac9e131e2 --- /dev/null +++ b/node_modules/uuid/dist/esm/parse.js @@ -0,0 +1,10 @@ +import validate from './validate.js'; +function parse(uuid) { + if (!validate(uuid)) { + throw TypeError('Invalid UUID'); + } + let v; + return Uint8Array.of((v = parseInt(uuid.slice(0, 8), 16)) >>> 24, (v >>> 16) & 0xff, (v >>> 8) & 0xff, v & 0xff, (v = parseInt(uuid.slice(9, 13), 16)) >>> 8, v & 0xff, (v = parseInt(uuid.slice(14, 18), 16)) >>> 8, v & 0xff, (v = parseInt(uuid.slice(19, 23), 16)) >>> 8, v & 0xff, ((v = parseInt(uuid.slice(24, 36), 16)) / 0x10000000000) & 0xff, (v / 0x100000000) & 0xff, (v >>> 24) & 0xff, (v >>> 16) & 0xff, (v >>> 8) & 0xff, v & 0xff); +} +export default parse; +//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoicGFyc2UuanMiLCJzb3VyY2VSb290IjoiIiwic291cmNlcyI6WyIuLi8uLi9zcmMvcGFyc2UudHMiXSwibmFtZXMiOltdLCJtYXBwaW5ncyI6IkFBQUEsT0FBTyxRQUFRLE1BQU0sZUFBZSxDQUFDO0FBRXJDLFNBQVMsS0FBSyxDQUFDLElBQVk7SUFDekIsSUFBSSxDQUFDLFFBQVEsQ0FBQyxJQUFJLENBQUMsRUFBRSxDQUFDO1FBQ3BCLE1BQU0sU0FBUyxDQUFDLGNBQWMsQ0FBQyxDQUFDO0lBQ2xDLENBQUM7SUFFRCxJQUFJLENBQUMsQ0FBQztJQUNOLE9BQU8sVUFBVSxDQUFDLEVBQUUsQ0FDbEIsQ0FBQyxDQUFDLEdBQUcsUUFBUSxDQUFDLElBQUksQ0FBQyxLQUFLLENBQUMsQ0FBQyxFQUFFLENBQUMsQ0FBQyxFQUFFLEVBQUUsQ0FBQyxDQUFDLEtBQUssRUFBRSxFQUMzQyxDQUFDLENBQUMsS0FBSyxFQUFFLENBQUMsR0FBRyxJQUFJLEVBQ2pCLENBQUMsQ0FBQyxLQUFLLENBQUMsQ0FBQyxHQUFHLElBQUksRUFDaEIsQ0FBQyxHQUFHLElBQUksRUFHUixDQUFDLENBQUMsR0FBRyxRQUFRLENBQUMsSUFBSSxDQUFDLEtBQUssQ0FBQyxDQUFDLEVBQUUsRUFBRSxDQUFDLEVBQUUsRUFBRSxDQUFDLENBQUMsS0FBSyxDQUFDLEVBQzNDLENBQUMsR0FBRyxJQUFJLEVBR1IsQ0FBQyxDQUFDLEdBQUcsUUFBUSxDQUFDLElBQUksQ0FBQyxLQUFLLENBQUMsRUFBRSxFQUFFLEVBQUUsQ0FBQyxFQUFFLEVBQUUsQ0FBQyxDQUFDLEtBQUssQ0FBQyxFQUM1QyxDQUFDLEdBQUcsSUFBSSxFQUdSLENBQUMsQ0FBQyxHQUFHLFFBQVEsQ0FBQyxJQUFJLENBQUMsS0FBSyxDQUFDLEVBQUUsRUFBRSxFQUFFLENBQUMsRUFBRSxFQUFFLENBQUMsQ0FBQyxLQUFLLENBQUMsRUFDNUMsQ0FBQyxHQUFHLElBQUksRUFJUixDQUFDLENBQUMsQ0FBQyxHQUFHLFFBQVEsQ0FBQyxJQUFJLENBQUMsS0FBSyxDQUFDLEVBQUUsRUFBRSxFQUFFLENBQUMsRUFBRSxFQUFFLENBQUMsQ0FBQyxHQUFHLGFBQWEsQ0FBQyxHQUFHLElBQUksRUFDL0QsQ0FBQyxDQUFDLEdBQUcsV0FBVyxDQUFDLEdBQUcsSUFBSSxFQUN4QixDQUFDLENBQUMsS0FBSyxFQUFFLENBQUMsR0FBRyxJQUFJLEVBQ2pCLENBQUMsQ0FBQyxLQUFLLEVBQUUsQ0FBQyxHQUFHLElBQUksRUFDakIsQ0FBQyxDQUFDLEtBQUssQ0FBQyxDQUFDLEdBQUcsSUFBSSxFQUNoQixDQUFDLEdBQUcsSUFBSSxDQUNULENBQUM7QUFDSixDQUFDO0FBRUQsZUFBZSxLQUFLLENBQUMifQ== \ No newline at end of file diff --git a/node_modules/uuid/dist/esm/regex.d.ts b/node_modules/uuid/dist/esm/regex.d.ts new file mode 100644 index 0000000000..d39fa3f6a8 --- /dev/null +++ b/node_modules/uuid/dist/esm/regex.d.ts @@ -0,0 +1,2 @@ +declare const _default: RegExp; +export default _default; diff --git a/node_modules/uuid/dist/esm/regex.js b/node_modules/uuid/dist/esm/regex.js new file mode 100644 index 0000000000..efea249777 --- /dev/null +++ b/node_modules/uuid/dist/esm/regex.js @@ -0,0 +1,2 @@ +export default /^(?:[0-9a-f]{8}-[0-9a-f]{4}-[1-8][0-9a-f]{3}-[89ab][0-9a-f]{3}-[0-9a-f]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$/i; +//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoicmVnZXguanMiLCJzb3VyY2VSb290IjoiIiwic291cmNlcyI6WyIuLi8uLi9zcmMvcmVnZXgudHMiXSwibmFtZXMiOltdLCJtYXBwaW5ncyI6IkFBQUEsZUFBZSwwSkFBMEosQ0FBQyJ9 \ No newline at end of file diff --git a/node_modules/uuid/dist/esm/rng.d.ts b/node_modules/uuid/dist/esm/rng.d.ts new file mode 100644 index 0000000000..73e60cf348 --- /dev/null +++ b/node_modules/uuid/dist/esm/rng.d.ts @@ -0,0 +1 @@ +export default function rng(): Uint8Array; diff --git a/node_modules/uuid/dist/esm/rng.js b/node_modules/uuid/dist/esm/rng.js new file mode 100644 index 0000000000..c7b1ac5840 --- /dev/null +++ b/node_modules/uuid/dist/esm/rng.js @@ -0,0 +1,11 @@ +import { randomFillSync } from 'crypto'; +const rnds8Pool = new Uint8Array(256); +let poolPtr = rnds8Pool.length; +export default function rng() { + if (poolPtr > rnds8Pool.length - 16) { + randomFillSync(rnds8Pool); + poolPtr = 0; + } + return rnds8Pool.slice(poolPtr, (poolPtr += 16)); +} +//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoicm5nLmpzIiwic291cmNlUm9vdCI6IiIsInNvdXJjZXMiOlsiLi4vLi4vc3JjL3JuZy50cyJdLCJuYW1lcyI6W10sIm1hcHBpbmdzIjoiQUFBQSxPQUFPLEVBQUUsY0FBYyxFQUFFLE1BQU0sUUFBUSxDQUFDO0FBRXhDLE1BQU0sU0FBUyxHQUFHLElBQUksVUFBVSxDQUFDLEdBQUcsQ0FBQyxDQUFDO0FBQ3RDLElBQUksT0FBTyxHQUFHLFNBQVMsQ0FBQyxNQUFNLENBQUM7QUFFL0IsTUFBTSxDQUFDLE9BQU8sVUFBVSxHQUFHO0lBQ3pCLElBQUksT0FBTyxHQUFHLFNBQVMsQ0FBQyxNQUFNLEdBQUcsRUFBRSxFQUFFLENBQUM7UUFDcEMsY0FBYyxDQUFDLFNBQVMsQ0FBQyxDQUFDO1FBQzFCLE9BQU8sR0FBRyxDQUFDLENBQUM7SUFDZCxDQUFDO0lBQ0QsT0FBTyxTQUFTLENBQUMsS0FBSyxDQUFDLE9BQU8sRUFBRSxDQUFDLE9BQU8sSUFBSSxFQUFFLENBQUMsQ0FBQyxDQUFDO0FBQ25ELENBQUMifQ== \ No newline at end of file diff --git a/node_modules/uuid/dist/esm/sha1.d.ts b/node_modules/uuid/dist/esm/sha1.d.ts new file mode 100644 index 0000000000..c37bda8e9f --- /dev/null +++ b/node_modules/uuid/dist/esm/sha1.d.ts @@ -0,0 +1,2 @@ +declare function sha1(bytes: Uint8Array): Buffer; +export default sha1; diff --git a/node_modules/uuid/dist/esm/sha1.js b/node_modules/uuid/dist/esm/sha1.js new file mode 100644 index 0000000000..b0f49b8983 --- /dev/null +++ b/node_modules/uuid/dist/esm/sha1.js @@ -0,0 +1,12 @@ +import { createHash } from 'crypto'; +function sha1(bytes) { + if (Array.isArray(bytes)) { + bytes = Buffer.from(bytes); + } + else if (typeof bytes === 'string') { + bytes = Buffer.from(bytes, 'utf8'); + } + return createHash('sha1').update(bytes).digest(); +} +export default sha1; +//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoic2hhMS5qcyIsInNvdXJjZVJvb3QiOiIiLCJzb3VyY2VzIjpbIi4uLy4uL3NyYy9zaGExLnRzIl0sIm5hbWVzIjpbXSwibWFwcGluZ3MiOiJBQUFBLE9BQU8sRUFBRSxVQUFVLEVBQUUsTUFBTSxRQUFRLENBQUM7QUFFcEMsU0FBUyxJQUFJLENBQUMsS0FBaUI7SUFDN0IsSUFBSSxLQUFLLENBQUMsT0FBTyxDQUFDLEtBQUssQ0FBQyxFQUFFLENBQUM7UUFDekIsS0FBSyxHQUFHLE1BQU0sQ0FBQyxJQUFJLENBQUMsS0FBSyxDQUFDLENBQUM7SUFDN0IsQ0FBQztTQUFNLElBQUksT0FBTyxLQUFLLEtBQUssUUFBUSxFQUFFLENBQUM7UUFDckMsS0FBSyxHQUFHLE1BQU0sQ0FBQyxJQUFJLENBQUMsS0FBSyxFQUFFLE1BQU0sQ0FBQyxDQUFDO0lBQ3JDLENBQUM7SUFFRCxPQUFPLFVBQVUsQ0FBQyxNQUFNLENBQUMsQ0FBQyxNQUFNLENBQUMsS0FBSyxDQUFDLENBQUMsTUFBTSxFQUFFLENBQUM7QUFDbkQsQ0FBQztBQUVELGVBQWUsSUFBSSxDQUFDIn0= \ No newline at end of file diff --git a/node_modules/uuid/dist/esm/stringify.d.ts b/node_modules/uuid/dist/esm/stringify.d.ts new file mode 100644 index 0000000000..16cb008833 --- /dev/null +++ b/node_modules/uuid/dist/esm/stringify.d.ts @@ -0,0 +1,3 @@ +export declare function unsafeStringify(arr: Uint8Array, offset?: number): string; +declare function stringify(arr: Uint8Array, offset?: number): string; +export default stringify; diff --git a/node_modules/uuid/dist/esm/stringify.js b/node_modules/uuid/dist/esm/stringify.js new file mode 100644 index 0000000000..268c2fe47c --- /dev/null +++ b/node_modules/uuid/dist/esm/stringify.js @@ -0,0 +1,36 @@ +import validate from './validate.js'; +const byteToHex = []; +for (let i = 0; i < 256; ++i) { + byteToHex.push((i + 0x100).toString(16).slice(1)); +} +export function unsafeStringify(arr, offset = 0) { + return (byteToHex[arr[offset + 0]] + + byteToHex[arr[offset + 1]] + + byteToHex[arr[offset + 2]] + + byteToHex[arr[offset + 3]] + + '-' + + byteToHex[arr[offset + 4]] + + byteToHex[arr[offset + 5]] + + '-' + + byteToHex[arr[offset + 6]] + + byteToHex[arr[offset + 7]] + + '-' + + byteToHex[arr[offset + 8]] + + byteToHex[arr[offset + 9]] + + '-' + + byteToHex[arr[offset + 10]] + + byteToHex[arr[offset + 11]] + + byteToHex[arr[offset + 12]] + + byteToHex[arr[offset + 13]] + + byteToHex[arr[offset + 14]] + + byteToHex[arr[offset + 15]]).toLowerCase(); +} +function stringify(arr, offset = 0) { + const uuid = unsafeStringify(arr, offset); + if (!validate(uuid)) { + throw TypeError('Stringified UUID is invalid'); + } + return uuid; +} +export default stringify; +//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoic3RyaW5naWZ5LmpzIiwic291cmNlUm9vdCI6IiIsInNvdXJjZXMiOlsiLi4vLi4vc3JjL3N0cmluZ2lmeS50cyJdLCJuYW1lcyI6W10sIm1hcHBpbmdzIjoiQUFBQSxPQUFPLFFBQVEsTUFBTSxlQUFlLENBQUM7QUFNckMsTUFBTSxTQUFTLEdBQWEsRUFBRSxDQUFDO0FBRS9CLEtBQUssSUFBSSxDQUFDLEdBQUcsQ0FBQyxFQUFFLENBQUMsR0FBRyxHQUFHLEVBQUUsRUFBRSxDQUFDLEVBQUUsQ0FBQztJQUM3QixTQUFTLENBQUMsSUFBSSxDQUFDLENBQUMsQ0FBQyxHQUFHLEtBQUssQ0FBQyxDQUFDLFFBQVEsQ0FBQyxFQUFFLENBQUMsQ0FBQyxLQUFLLENBQUMsQ0FBQyxDQUFDLENBQUMsQ0FBQztBQUNwRCxDQUFDO0FBRUQsTUFBTSxVQUFVLGVBQWUsQ0FBQyxHQUFlLEVBQUUsTUFBTSxHQUFHLENBQUM7SUFNekQsT0FBTyxDQUNMLFNBQVMsQ0FBQyxHQUFHLENBQUMsTUFBTSxHQUFHLENBQUMsQ0FBQyxDQUFDO1FBQzFCLFNBQVMsQ0FBQyxHQUFHLENBQUMsTUFBTSxHQUFHLENBQUMsQ0FBQyxDQUFDO1FBQzFCLFNBQVMsQ0FBQyxHQUFHLENBQUMsTUFBTSxHQUFHLENBQUMsQ0FBQyxDQUFDO1FBQzFCLFNBQVMsQ0FBQyxHQUFHLENBQUMsTUFBTSxHQUFHLENBQUMsQ0FBQyxDQUFDO1FBQzFCL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QU8xQyxJQUFJLENBQUMsUUFBUSxDQUFDLElBQUksQ0FBQyxFQUFFLENBQUM7UUFDcEIsTUFBTSxTQUFTLENBQUMsNkJBQTZCLENBQUMsQ0FBQztJQUNqRCxDQUFDO0lBRUQsT0FBTyxJQUFJLENBQUM7QUFDZCxDQUFDO0FBRUQsZUFBZSxTQUFTLENBQUMifQ== \ No newline at end of file diff --git a/node_modules/uuid/dist/esm/test/parse.test.d.ts b/node_modules/uuid/dist/esm/test/parse.test.d.ts new file mode 100644 index 0000000000..cb0ff5c3b5 --- /dev/null +++ b/node_modules/uuid/dist/esm/test/parse.test.d.ts @@ -0,0 +1 @@ +export {}; diff --git a/node_modules/uuid/dist/esm/test/parse.test.js b/node_modules/uuid/dist/esm/test/parse.test.js new file mode 100644 index 0000000000..00042f0167 --- /dev/null +++ b/node_modules/uuid/dist/esm/test/parse.test.js @@ -0,0 +1,49 @@ +import * as assert from 'assert'; +import test, { describe } from 'node:test'; +import parse from '../parse.js'; +import stringify from '../stringify.js'; +import uuidv4 from '../v4.js'; +function splitmix32(a) { + return function () { + a |= 0; + a = (a + 0x9e3779b9) | 0; + let t = a ^ (a >>> 16); + t = Math.imul(t, 0x21f0aaad); + t = t ^ (t >>> 15); + t = Math.imul(t, 0x735a2d97); + return ((t = t ^ (t >>> 15)) >>> 0) / 4294967296; + }; +} +const rand = splitmix32(0x12345678); +function rng(bytes = new Uint8Array(16)) { + for (let i = 0; i < 16; i++) { + bytes[i] = rand() * 256; + } + return bytes; +} +describe('parse', () => { + test('String -> bytes parsing', () => { + assert.deepStrictEqual(parse('0f5abcd1-c194-47f3-905b-2df7263a084b'), Uint8Array.from([ + 0x0f, 0x5a, 0xbc, 0xd1, 0xc1, 0x94, 0x47, 0xf3, 0x90, 0x5b, 0x2d, 0xf7, 0x26, 0x3a, 0x08, + 0x4b, + ])); + }); + test('String -> bytes -> string symmetry for assorted uuids', () => { + for (let i = 0; i < 1000; i++) { + const uuid = uuidv4({ rng }); + assert.equal(stringify(parse(uuid)), uuid); + } + }); + test('Case neutrality', () => { + assert.deepStrictEqual(parse('0f5abcd1-c194-47f3-905b-2df7263a084b'), parse('0f5abcd1-c194-47f3-905b-2df7263a084b'.toUpperCase())); + }); + test('Null UUID case', () => { + assert.deepStrictEqual(parse('00000000-0000-0000-0000-000000000000'), Uint8Array.from(new Array(16).fill(0))); + }); + test('UUID validation', () => { + assert.throws(() => parse()); + assert.throws(() => parse('invalid uuid')); + assert.throws(() => parse('zyxwvuts-rqpo-nmlk-jihg-fedcba000000')); + }); +}); +//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoicGFyc2UudGVzdC5qcyIsInNvdXJjZVJvb3QiOiIiLCJzb3VyY2VzIjpbIi4uLy4uLy4uL3NyYy90ZXN0L3BhcnNlLnRlc3QudHMiXSwibmFtZXMiOltdLCJtYXBwaW5ncyI6IkFBQUEsT0FBTyxLQUFLLE1BQU0sTUFBTSxRQUFRLENBQUM7QUFDakMsT0FBTyxJQUFJLEVBQUUsRUFBRSxRQUFRLEVBQUUsTUFBTSxXQUFXLENBQUM7QUFDM0MsT0FBTyxLQUFLLE1BQU0sYUFBYSxDQUFDO0FBQ2hDLE9BQU8sU0FBUyxNQUFNLGlCQUFpQixDQUFDO0FBQ3hDLE9BQU8sTUFBTSxNQUFNLFVBQVUsQ0FBQztBQUk5QixTQUFTLFVBQVUsQ0FBQyxDQUFTO0lBQzNCLE9BQU87UUFDTCxDQUFDLElBQUksQ0FBQyxDQUFDO1FBQ1AsQ0FBQyxHQUFHLENBQUMsQ0FBQyxHQUFHLFVBQVUsQ0FBQyxHQUFHLENBQUMsQ0FBQztRQUN6QixJQUFJLENBQUMsR0FBRyxDQUFDLEdBQUcsQ0FBQyxDQUFDLEtBQUssRUFBRSxDQUFDLENBQUM7UUFDdkIsQ0FBQyxHQUFHLElBQUksQ0FBQyxJQUFJLENBQUMsQ0FBQyxFQUFFLFVBQVUsQ0FBQyxDQUFDO1FBQzdCLENB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BQUcsRUFBRSxDQUFDLEtBQUssRUFBRSxDQUFDLENBQUM7UUFFN0IsTUFBTSxDQUFDLE1BQU0sQ0FBQyxHQUFHLEVBQUUsQ0FBQyxLQUFLLENBQUMsY0FBYyxDQUFDLENBQUMsQ0FBQztRQUMzQyxNQUFNLENBQUMsTUFBTSxDQUFDLEdBQUcsRUFBRSxDQUFDLEtBQUssQ0FBQyxzQ0FBc0MsQ0FBQyxDQUFDLENBQUM7SUFDckUsQ0FBQyxDQUFDLENBQUM7QUFDTCxDQUFDLENBQUMsQ0FBQyJ9 \ No newline at end of file diff --git a/node_modules/uuid/dist/esm/test/rng.test.d.ts b/node_modules/uuid/dist/esm/test/rng.test.d.ts new file mode 100644 index 0000000000..cb0ff5c3b5 --- /dev/null +++ b/node_modules/uuid/dist/esm/test/rng.test.d.ts @@ -0,0 +1 @@ +export {}; diff --git a/node_modules/uuid/dist/esm/test/rng.test.js b/node_modules/uuid/dist/esm/test/rng.test.js new file mode 100644 index 0000000000..1a79186855 --- /dev/null +++ b/node_modules/uuid/dist/esm/test/rng.test.js @@ -0,0 +1,13 @@ +import * as assert from 'assert'; +import test, { describe } from 'node:test'; +import rng from '../rng.js'; +describe('rng', () => { + test('Node.js RNG', () => { + const bytes = rng(); + assert.equal(bytes.length, 16); + for (let i = 0; i < bytes.length; ++i) { + assert.equal(typeof bytes[i], 'number'); + } + }); +}); +//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoicm5nLnRlc3QuanMiLCJzb3VyY2VSb290IjoiIiwic291cmNlcyI6WyIuLi8uLi8uLi9zcmMvdGVzdC9ybmcudGVzdC50cyJdLCJuYW1lcyI6W10sIm1hcHBpbmdzIjoiQUFBQSxPQUFPLEtBQUssTUFBTSxNQUFNLFFBQVEsQ0FBQztBQUNqQyxPQUFPLElBQUksRUFBRSxFQUFFLFFBQVEsRUFBRSxNQUFNLFdBQVcsQ0FBQztBQUMzQyxPQUFPLEdBQUcsTUFBTSxXQUFXLENBQUM7QUFFNUIsUUFBUSxDQUFDLEtBQUssRUFBRSxHQUFHLEVBQUU7SUFDbkIsSUFBSSxDQUFDLGFBQWEsRUFBRSxHQUFHLEVBQUU7UUFDdkIsTUFBTSxLQUFLLEdBQUcsR0FBRyxFQUFFLENBQUM7UUFDcEIsTUFBTSxDQUFDLEtBQUssQ0FBQyxLQUFLLENBQUMsTUFBTSxFQUFFLEVBQUUsQ0FBQyxDQUFDO1FBRS9CLEtBQUssSUFBSSxDQUFDLEdBQUcsQ0FBQyxFQUFFLENBQUMsR0FBRyxLQUFLLENBQUMsTUFBTSxFQUFFLEVBQUUsQ0FBQyxFQUFFLENBQUM7WUFDdEMsTUFBTSxDQUFDLEtBQUssQ0FBQyxPQUFPLEtBQUssQ0FBQyxDQUFDLENBQUMsRUFBRSxRQUFRLENBQUMsQ0FBQztRQUMxQyxDQUFDO0lBQ0gsQ0FBQyxDQUFDLENBQUM7QUFJTCxDQUFDLENBQUMsQ0FBQyJ9 \ No newline at end of file diff --git a/node_modules/uuid/dist/esm/test/stringify.test.d.ts b/node_modules/uuid/dist/esm/test/stringify.test.d.ts new file mode 100644 index 0000000000..cb0ff5c3b5 --- /dev/null +++ b/node_modules/uuid/dist/esm/test/stringify.test.d.ts @@ -0,0 +1 @@ +export {}; diff --git a/node_modules/uuid/dist/esm/test/stringify.test.js b/node_modules/uuid/dist/esm/test/stringify.test.js new file mode 100644 index 0000000000..91ffaed6d1 --- /dev/null +++ b/node_modules/uuid/dist/esm/test/stringify.test.js @@ -0,0 +1,22 @@ +import * as assert from 'assert'; +import test, { describe } from 'node:test'; +import stringify, { unsafeStringify } from '../stringify.js'; +const BYTES = Uint8Array.of(0x0f, 0x5a, 0xbc, 0xd1, 0xc1, 0x94, 0x47, 0xf3, 0x90, 0x5b, 0x2d, 0xf7, 0x26, 0x3a, 0x08, 0x4b); +describe('stringify', () => { + test('Stringify Array (unsafe)', () => { + assert.equal(unsafeStringify(BYTES), '0f5abcd1-c194-47f3-905b-2df7263a084b'); + }); + test('Stringify w/ offset (unsafe)', () => { + const bytes = new Uint8Array(19).fill(0); + bytes.set(BYTES, 3); + assert.equal(unsafeStringify(bytes, 3), '0f5abcd1-c194-47f3-905b-2df7263a084b'); + }); + test('Stringify Array (safe)', () => { + assert.equal(stringify(BYTES), '0f5abcd1-c194-47f3-905b-2df7263a084b'); + }); + test('Throws on not enough values (safe)', () => { + const bytes = BYTES.slice(0, 15); + assert.throws(() => stringify(bytes)); + }); +}); +//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoic3RyaW5naWZ5LnRlc3QuanMiLCJzb3VyY2VSb290IjoiIiwic291cmNlcyI6WyIuLi8uLi8uLi9zcmMvdGVzdC9zdHJpbmdpZnkudGVzdC50cyJdLCJuYW1lcyI6W10sIm1hcHBpbmdzIjoiQUFBQSxPQUFPLEtBQUssTUFBTSxNQUFNLFFBQVEsQ0FBQztBQUNqQyxPQUFPLElBQUksRUFBRSxFQUFFLFFBQVEsRUFBRSxNQUFNLFdBQVcsQ0FBQztBQUMzQyxPQUFPLFNBQVMsRUFBRSxFQUFFLGVBQWUsRUFBRSxNQUFNLGlCQUFpQixDQUFDO0FBRTdELE1BQU0sS0FBSyxHQUFHLFVBQVUsQ0FBQyxFQUFFLENBQ3pCLElBQUksRUFDSixJQUFJLEVBQ0osSUFBSSxFQUNKLElBQUksRUFDSixJQUFJLEVBQ0osSUFBSSxFQUNKLElBQUksRUFDSixJQUFJLEVBQ0osSUFBSSxFQUNKLElBQUksRUFDSixJQUFJLEVBQ0osSUFBSSxFQUNKLElBQUksRUFDSixJQUFJLEVBQ0osSUFBSSxFQUNKLElBQUksQ0FDTCxDQUFDO0FBRUYsUUFBUSxDQUFDLFdBQVcsRUFBRSxHQUFHLEVBQUU7SUFDekIsSUFBSSxDQUFDLDBCQUEwQixFQUFFLEdBQUcsRUFBRTtRQUNwQyxNQUFNLENBQUMsS0FBSyxDQUFDLGVBQWUsQ0FBQyxLQUFLLENBQUMsRUFBRSxzQ0FBc0MsQ0FBQyxDQUFDO0lBQy9FLENBQUMsQ0FBQyxDQUFDO0lBRUgsSUFBSSxDQUFDLDhCQUE4QixFQUFFLEdBQUcsRUFBRTtRQUN4QyxNQUFNLEtBQUssR0FBRyxJQUFJLFVBQVUsQ0FBQyxFQUFFLENBQUMsQ0FBQyxJQUFJLENBQUMsQ0FBQyxDQUFDLENBQUM7UUFDekMsS0FBSyxDQUFDLEdBQUcsQ0FBQyxLQUFLLEVBQUUsQ0FBQyxDQUFDLENBQUM7UUFDcEIsTUFBTSxDQUFDLEtBQUssQ0FBQyxlQUFlLENBQUMsS0FBSyxFQUFFLENBQUMsQ0FBQyxFQUFFLHNDQUFzQyxDQUFDLENBQUM7SUFDbEYsQ0FBQyxDQUFDLENBQUM7SUFFSCxJQUFJLENBQUMsd0JBQXdCLEVBQUUsR0FBRyxFQUFFO1FBQ2xDLE1BQU0sQ0FBQyxLQUFLLENBQUMsU0FBUyxDQUFDLEtBQUssQ0FBQyxFQUFFLHNDQUFzQyxDQUFDLENBQUM7SUFDekUsQ0FBQyxDQUFDLENBQUM7SUFFSCxJQUFJLENBQUMsb0NBQW9DLEVBQUUsR0FBRyxFQUFFO1FBQzlDLE1BQU0sS0FBSyxHQUFHLEtBQUssQ0FBQyxLQUFLLENBQUMsQ0FBQyxFQUFFLEVBQUUsQ0FBQyxDQUFDO1FBQ2pDLE1BQU0sQ0FBQyxNQUFNLENBQUMsR0FBRyxFQUFFLENBQUMsU0FBUyxDQUFDLEtBQUssQ0FBQyxDQUFDLENBQUM7SUFDeEMsQ0FBQyxDQUFDLENBQUM7QUFDTCxDQUFDLENBQUMsQ0FBQyJ9 \ No newline at end of file diff --git a/node_modules/uuid/dist/esm/test/test_constants.d.ts b/node_modules/uuid/dist/esm/test/test_constants.d.ts new file mode 100644 index 0000000000..959a679fd0 --- /dev/null +++ b/node_modules/uuid/dist/esm/test/test_constants.d.ts @@ -0,0 +1,33 @@ +export declare const TESTS: ({ + value: string; + expectedValidate: boolean; + expectedVersion: number; +} | { + value: string; + expectedValidate: boolean; + expectedVersion?: undefined; +} | { + value: undefined; + expectedValidate: boolean; + expectedVersion?: undefined; +} | { + value: null; + expectedValidate: boolean; + expectedVersion?: undefined; +} | { + value: number; + expectedValidate: boolean; + expectedVersion?: undefined; +} | { + value: RegExp; + expectedValidate: boolean; + expectedVersion?: undefined; +} | { + value: Date; + expectedValidate: boolean; + expectedVersion?: undefined; +} | { + value: boolean; + expectedValidate: boolean; + expectedVersion?: undefined; +})[]; diff --git a/node_modules/uuid/dist/esm/test/test_constants.js b/node_modules/uuid/dist/esm/test/test_constants.js new file mode 100644 index 0000000000..77b184bae7 --- /dev/null +++ b/node_modules/uuid/dist/esm/test/test_constants.js @@ -0,0 +1,89 @@ +import MAX from '../max.js'; +import NIL from '../nil.js'; +export const TESTS = [ + { value: NIL, expectedValidate: true, expectedVersion: 0 }, + { value: MAX, expectedValidate: true, expectedVersion: 15 }, + { value: '00000000-0000-1000-8000-000000000000', expectedValidate: true, expectedVersion: 1 }, + { value: 'ffffffff-ffff-1fff-8fff-ffffffffffff', expectedValidate: true, expectedVersion: 1 }, + { value: '00000000-0000-2000-8000-000000000000', expectedValidate: true, expectedVersion: 2 }, + { value: 'ffffffff-ffff-2fff-bfff-ffffffffffff', expectedValidate: true, expectedVersion: 2 }, + { value: '00000000-0000-3000-8000-000000000000', expectedValidate: true, expectedVersion: 3 }, + { value: 'ffffffff-ffff-3fff-bfff-ffffffffffff', expectedValidate: true, expectedVersion: 3 }, + { value: '00000000-0000-4000-8000-000000000000', expectedValidate: true, expectedVersion: 4 }, + { value: 'ffffffff-ffff-4fff-bfff-ffffffffffff', expectedValidate: true, expectedVersion: 4 }, + { value: '00000000-0000-5000-8000-000000000000', expectedValidate: true, expectedVersion: 5 }, + { value: 'ffffffff-ffff-5fff-bfff-ffffffffffff', expectedValidate: true, expectedVersion: 5 }, + { value: '00000000-0000-6000-8000-000000000000', expectedValidate: true, expectedVersion: 6 }, + { value: 'ffffffff-ffff-6fff-bfff-ffffffffffff', expectedValidate: true, expectedVersion: 6 }, + { value: '00000000-0000-7000-8000-000000000000', expectedValidate: true, expectedVersion: 7 }, + { value: 'ffffffff-ffff-7fff-bfff-ffffffffffff', expectedValidate: true, expectedVersion: 7 }, + { value: '00000000-0000-8000-8000-000000000000', expectedValidate: true, expectedVersion: 8 }, + { value: 'ffffffff-ffff-8fff-bfff-ffffffffffff', expectedValidate: true, expectedVersion: 8 }, + { value: '00000000-0000-9000-8000-000000000000', expectedValidate: false }, + { value: 'ffffffff-ffff-9fff-bfff-ffffffffffff', expectedValidate: false }, + { value: '00000000-0000-a000-8000-000000000000', expectedValidate: false }, + { value: 'ffffffff-ffff-afff-bfff-ffffffffffff', expectedValidate: false }, + { value: '00000000-0000-b000-8000-000000000000', expectedValidate: false }, + { value: 'ffffffff-ffff-bfff-bfff-ffffffffffff', expectedValidate: false }, + { value: '00000000-0000-c000-8000-000000000000', expectedValidate: false }, + { value: 'ffffffff-ffff-cfff-bfff-ffffffffffff', expectedValidate: false }, + { value: '00000000-0000-d000-8000-000000000000', expectedValidate: false }, + { value: 'ffffffff-ffff-dfff-bfff-ffffffffffff', expectedValidate: false }, + { value: '00000000-0000-e000-8000-000000000000', expectedValidate: false }, + { value: 'ffffffff-ffff-efff-bfff-ffffffffffff', expectedValidate: false }, + { value: 'd9428888-122b-11e1-b85c-61cd3cbb3210', expectedValidate: true, expectedVersion: 1 }, + { value: '000003e8-2363-21ef-b200-325096b39f47', expectedValidate: true, expectedVersion: 2 }, + { value: 'a981a0c2-68b1-35dc-bcfc-296e52ab01ec', expectedValidate: true, expectedVersion: 3 }, + { value: '109156be-c4fb-41ea-b1b4-efe1671c5836', expectedValidate: true, expectedVersion: 4 }, + { value: '90123e1c-7512-523e-bb28-76fab9f2f73d', expectedValidate: true, expectedVersion: 5 }, + { value: '1ef21d2f-1207-6660-8c4f-419efbd44d48', expectedValidate: true, expectedVersion: 6 }, + { value: '017f22e2-79b0-7cc3-98c4-dc0c0c07398f', expectedValidate: true, expectedVersion: 7 }, + { value: '0d8f23a0-697f-83ae-802e-48f3756dd581', expectedValidate: true, expectedVersion: 8 }, + { value: '00000000-0000-1000-0000-000000000000', expectedValidate: false }, + { value: '00000000-0000-1000-1000-000000000000', expectedValidate: false }, + { value: '00000000-0000-1000-2000-000000000000', expectedValidate: false }, + { value: '00000000-0000-1000-3000-000000000000', expectedValidate: false }, + { value: '00000000-0000-1000-4000-000000000000', expectedValidate: false }, + { value: '00000000-0000-1000-5000-000000000000', expectedValidate: false }, + { value: '00000000-0000-1000-6000-000000000000', expectedValidate: false }, + { value: '00000000-0000-1000-7000-000000000000', expectedValidate: false }, + { value: '00000000-0000-1000-8000-000000000000', expectedValidate: true, expectedVersion: 1 }, + { value: '00000000-0000-1000-9000-000000000000', expectedValidate: true, expectedVersion: 1 }, + { value: '00000000-0000-1000-a000-000000000000', expectedValidate: true, expectedVersion: 1 }, + { value: '00000000-0000-1000-b000-000000000000', expectedValidate: true, expectedVersion: 1 }, + { value: '00000000-0000-1000-c000-000000000000', expectedValidate: false }, + { value: '00000000-0000-1000-d000-000000000000', expectedValidate: false }, + { value: '00000000-0000-1000-e000-000000000000', expectedValidate: false }, + { value: '00000000-0000-1000-f000-000000000000', expectedValidate: false }, + { value: '00000000000000000000000000000000', expectedValidate: false }, + { value: '', expectedValidate: false }, + { value: 'invalid uuid string', expectedValidate: false }, + { + value: '=Y00a-f*vb*-c-d#-p00f\b-g0h-#i^-j*3&-L00k-\nl---00n-fg000-00p-00r+', + expectedValidate: false, + }, + { value: undefined, expectedValidate: false }, + { value: null, expectedValidate: false }, + { value: 123, expectedValidate: false }, + { value: /regex/, expectedValidate: false }, + { value: new Date(0), expectedValidate: false }, + { value: false, expectedValidate: false }, +]; +for (let charIndex = 0; charIndex < 36; charIndex++) { + if (charIndex === 8 || + charIndex === 13 || + charIndex === 14 || + charIndex === 18 || + charIndex === 23) { + continue; + } + const nilChars = NIL.split(''); + const maxChars = MAX.split(''); + for (let i = 0; i < 4; i++) { + nilChars[charIndex] = (0x0 ^ (1 << i)).toString(16); + TESTS.push({ value: nilChars.join(''), expectedValidate: false }); + maxChars[charIndex] = (0xf ^ (1 << i)).toString(16); + TESTS.push({ value: maxChars.join(''), expectedValidate: false }); + } +} +//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoidGVzdF9jb25zdGFudHMuanMiLCJzb3VyY2VSb290IjoiIiwic291cmNlcyI6WyIuLi8uLi8uLi9zcmMvdGVzdC90ZXN0X2NvbnN0YW50cy50cyJdLCJuYW1lcyI6W10sIm1hcHBpbmdzIjoiQUFBQSxPQUFPLEdBQUcsTUFBTSxXQUFXLENBQUM7QUFDNUIsT0FBTyxHQUFHLE1BQU0sV0FBVyxDQUFDO0FBRzVCLE1BQU0sQ0FBQyxNQUFNLEtBQUssR0FBRztJQUVuQixFQUFFLEtBQUssRUFBRSxHQUFHLEVBQUUsZ0JBQWdCLEVBQUUsSUFBSSxFQUFFLGVBQWUsRUFBRSxDQUFDLEVBQUU7SUFDMUQsRUFBRSxLQUFLLEVBQUUsR0FBRyxFQUFFLGdCQUFnQixFQUFFLElBQUksRUFBRSxlQUFlLEVBQUUsRUFBRSxFQUFFO0lBRzNELEVBQUUsS0FBSyxFQUFFLHNDQUFzQyxFQUFFLGdCQUFnQixFQUFFLElBQUksRUFBRSxlQUFlLEVBQUUsQ0FBQyxFQUFFO0lBQzdGLEVBQUUsS0FBSyxFQUFFLHNDQUFzQyxFQUFFLGdCQUFnQixFQUFFLElBQUksRUFBRSxlQUFlLEVBQUUsQ0FBQyxFQUFFO0lBQzdGLEVBQUUsS0FBSyxFQUFFLHNDQUFzQyxFQUFFLGdCQUFnQixFQUFFLElBQUksRUFBRSxlQUFlLEVBQUUsQ0FBQyxFQUFFO0lBQzdGLEVBQUUsS0FBSyxFQUFFLHNDQUFzQyxFQUFFLGdCQUFnQixFQUFFLElBQUksRUFBRSxlQUFlL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UFDaEIsU0FBUyxLQUFLLEVBQUUsRUFDaEIsQ0FBQztRQUNELFNBQVM7SUFDWCxDQUFDO0lBRUQsTUFBTSxRQUFRLEdBQUcsR0FBRyxDQUFDLEtBQUssQ0FBQyxFQUFFLENBQUMsQ0FBQztJQUMvQixNQUFNLFFBQVEsR0FBRyxHQUFHLENBQUMsS0FBSyxDQUFDLEVBQUUsQ0FBQyxDQUFDO0lBRS9CLEtBQUssSUFBSSxDQUFDLEdBQUcsQ0FBQyxFQUFFLENBQUMsR0FBRyxDQUFDLEVBQUUsQ0FBQyxFQUFFLEVBQUUsQ0FBQztRQUMzQixRQUFRLENBQUMsU0FBUyxDQUFDLEdBQUcsQ0FBQyxHQUFHLEdBQUcsQ0FBQyxDQUFDLElBQUksQ0FBQyxDQUFDLENBQUMsQ0FBQyxRQUFRLENBQUMsRUFBRSxDQUFDLENBQUM7UUFFcEQsS0FBSyxDQUFDLElBQUksQ0FBQyxFQUFFLEtBQUssRUFBRSxRQUFRLENBQUMsSUFBSSxDQUFDLEVBQUUsQ0FBQyxFQUFFLGdCQUFnQixFQUFFLEtBQUssRUFBRSxDQUFDLENBQUM7UUFHbEUsUUFBUSxDQUFDLFNBQVMsQ0FBQyxHQUFHLENBQUMsR0FBRyxHQUFHLENBQUMsQ0FBQyxJQUFJLENBQUMsQ0FBQyxDQUFDLENBQUMsUUFBUSxDQUFDLEVBQUUsQ0FBQyxDQUFDO1FBQ3BELEtBQUssQ0FBQyxJQUFJLENBQUMsRUFBRSxLQUFLLEVBQUUsUUFBUSxDQUFDLElBQUksQ0FBQyxFQUFFLENBQUMsRUFBRSxnQkFBZ0IsRUFBRSxLQUFLLEVBQUUsQ0FBQyxDQUFDO0lBQ3BFLENBQUM7QUFDSCxDQUFDIn0= \ No newline at end of file diff --git a/node_modules/uuid/dist/esm/test/v1.test.d.ts b/node_modules/uuid/dist/esm/test/v1.test.d.ts new file mode 100644 index 0000000000..cb0ff5c3b5 --- /dev/null +++ b/node_modules/uuid/dist/esm/test/v1.test.d.ts @@ -0,0 +1 @@ +export {}; diff --git a/node_modules/uuid/dist/esm/test/v1.test.js b/node_modules/uuid/dist/esm/test/v1.test.js new file mode 100644 index 0000000000..6a6c28ac7f --- /dev/null +++ b/node_modules/uuid/dist/esm/test/v1.test.js @@ -0,0 +1,126 @@ +import * as assert from 'assert'; +import test, { describe } from 'node:test'; +import parse from '../parse.js'; +import v1, { updateV1State } from '../v1.js'; +const TIME = 1321644961388; +const RFC_V1 = 'c232ab00-9414-11ec-b3c8-9f68deced846'; +const RFC_V1_BYTES = parse(RFC_V1); +const RFC_OPTIONS = { + msecs: 0x17f22e279b0, + nsecs: 0, + clockseq: 0x33c8, + node: Uint8Array.of(0x9f, 0x68, 0xde, 0xce, 0xd8, 0x46), +}; +const RFC_RANDOM = Uint8Array.of(0, 0, 0, 0, 0, 0, 0, 0, RFC_OPTIONS.clockseq >> 8, RFC_OPTIONS.clockseq & 0xff, ...RFC_OPTIONS.node); +function compareV1TimeField(a, b) { + a = a.split('-').slice(0, 3).reverse().join(''); + b = b.split('-').slice(0, 3).reverse().join(''); + return a < b ? -1 : a > b ? 1 : 0; +} +describe('v1', () => { + test('v1 sort order (default)', () => { + const ids = [v1(), v1(), v1(), v1(), v1()]; + const sorted = [...ids].sort(compareV1TimeField); + assert.deepEqual(ids, sorted); + }); + test('v1 sort order (time option)', () => { + const ids = [ + v1({ msecs: TIME - 10 * 3600 * 1000 }), + v1({ msecs: TIME - 1 }), + v1({ msecs: TIME }), + v1({ msecs: TIME + 1 }), + v1({ msecs: TIME + 28 * 24 * 3600 * 1000 }), + ]; + const sorted = [...ids].sort(compareV1TimeField); + assert.deepEqual(ids, sorted); + }); + test('v1(options)', () => { + assert.equal(v1({ msecs: RFC_OPTIONS.msecs, random: RFC_RANDOM }), RFC_V1, 'minimal options'); + assert.equal(v1(RFC_OPTIONS), RFC_V1, 'full options'); + }); + test('v1(options) equality', () => { + assert.notEqual(v1({ msecs: TIME }), v1({ msecs: TIME }), 'UUIDs with minimal options differ'); + assert.equal(v1(RFC_OPTIONS), v1(RFC_OPTIONS), 'UUIDs with full options are identical'); + }); + test('fills one UUID into a buffer as expected', () => { + const buffer = new Uint8Array(16); + const result = v1(RFC_OPTIONS, buffer); + assert.deepEqual(buffer, RFC_V1_BYTES); + assert.strictEqual(buffer, result); + }); + test('fills two UUIDs into a buffer as expected', () => { + const buffer = new Uint8Array(32); + v1(RFC_OPTIONS, buffer, 0); + v1(RFC_OPTIONS, buffer, 16); + const expectedBuf = new Uint8Array(32); + expectedBuf.set(RFC_V1_BYTES); + expectedBuf.set(RFC_V1_BYTES, 16); + assert.deepEqual(buffer, expectedBuf); + }); + test('v1() state transitions', () => { + const PRE_STATE = { + msecs: 10, + nsecs: 20, + clockseq: 0x1234, + node: Uint8Array.of(0x12, 0x34, 0x56, 0x78, 0x9a, 0xbc), + }; + const tests = [ + { + title: 'initial state', + state: {}, + now: 10, + expected: { + msecs: 10, + nsecs: 0, + clockseq: RFC_OPTIONS.clockseq, + node: RFC_OPTIONS.node, + }, + }, + { + title: 'same time interval', + state: { ...PRE_STATE }, + now: PRE_STATE.msecs, + expected: { + ...PRE_STATE, + nsecs: 21, + }, + }, + { + title: 'new time interval', + state: { ...PRE_STATE }, + now: PRE_STATE.msecs + 1, + expected: { + ...PRE_STATE, + msecs: PRE_STATE.msecs + 1, + nsecs: 0, + }, + }, + { + title: 'same time interval (nsecs overflow)', + state: { ...PRE_STATE, nsecs: 9999 }, + now: PRE_STATE.msecs, + expected: { + ...PRE_STATE, + nsecs: 0, + clockseq: RFC_OPTIONS.clockseq, + node: RFC_OPTIONS.node, + }, + }, + { + title: 'time regression', + state: { ...PRE_STATE }, + now: PRE_STATE.msecs - 1, + expected: { + ...PRE_STATE, + msecs: PRE_STATE.msecs - 1, + clockseq: RFC_OPTIONS.clockseq, + node: RFC_OPTIONS.node, + }, + }, + ]; + for (const { title, state, now, expected } of tests) { + assert.deepStrictEqual(updateV1State(state, now, RFC_RANDOM), expected,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QUFLLE1BQU0sRUFBRSxLQUFLLEVBQUUsS0FBSyxFQUFFLEdBQUcsRUFBRSxRQUFRLEVBQUUsSUFBSSxLQUFLLEVBQUUsQ0FBQztZQUNwRCxNQUFNLENBQUMsZUFBZSxDQUFDLGFBQWEsQ0FBQyxLQUFLLEVBQUUsR0FBRyxFQUFFLFVBQVUsQ0FBQyxFQUFFLFFBQVEsRUFBRSxXQUFXLEtBQUssRUFBRSxDQUFDLENBQUM7UUFDOUYsQ0FBQztJQUNILENBQUMsQ0FBQyxDQUFDO0FBQ0wsQ0FBQyxDQUFDLENBQUMifQ== \ No newline at end of file diff --git a/node_modules/uuid/dist/esm/test/v35.test.d.ts b/node_modules/uuid/dist/esm/test/v35.test.d.ts new file mode 100644 index 0000000000..cb0ff5c3b5 --- /dev/null +++ b/node_modules/uuid/dist/esm/test/v35.test.d.ts @@ -0,0 +1 @@ +export {}; diff --git a/node_modules/uuid/dist/esm/test/v35.test.js b/node_modules/uuid/dist/esm/test/v35.test.js new file mode 100644 index 0000000000..ec47c3e9b8 --- /dev/null +++ b/node_modules/uuid/dist/esm/test/v35.test.js @@ -0,0 +1,142 @@ +import * as assert from 'assert'; +import test, { describe } from 'node:test'; +import md5 from '../md5.js'; +import sha1 from '../sha1.js'; +import v3 from '../v3.js'; +import { stringToBytes } from '../v35.js'; +import v5 from '../v5.js'; +describe('v35', () => { + const HASH_SAMPLES = [ + { + input: stringToBytes(''), + sha1: 'da39a3ee5e6b4b0d3255bfef95601890afd80709', + md5: 'd41d8cd98f00b204e9800998ecf8427e', + }, + { + input: stringToBytes('\t\b\f !"#$%&\'()*+,-./0123456789:;<=>?@ABCDEFGHIJKLMNOPQRSTUVWXYZ[\\]^_`abcdefghijklmnopqrstuvwxyz{|}~\u00A1\u00A2\u00A3\u00A4\u00A5\u00A6\u00A7\u00A8\u00A9\u00AA\u00AB\u00AC\u00AE\u00AF\u00B0\u00B1\u00B2\u00B3\u00B4\u00B5\u00B6\u00B7\u00B8\u00B9\u00BA\u00BB\u00BC\u00BD\u00BE\u00BF\u00C0\u00C1\u00C2\u00C3\u00C4\u00C5\u00C6\u00C7\u00C8\u00C9\u00CA\u00CB\u00CC\u00CD\u00CE\u00CF\u00D0\u00D1\u00D2\u00D3\u00D4\u00D5\u00D6\u00D7\u00D8\u00D9\u00DA\u00DB\u00DC\u00DD\u00DE\u00DF\u00E0\u00E1\u00E2\u00E3\u00E4\u00E5\u00E6\u00E7\u00E8\u00E9\u00EA\u00EB\u00EC\u00ED\u00EE\u00EF\u00F0\u00F1\u00F2\u00F3\u00F4\u00F5\u00F6\u00F7\u00F8\u00F9\u00FA\u00FB\u00FC\u00FD\u00FE\u00FF'), + sha1: 'ca4a426a3d536f14cfd79011e79e10d64de950a0', + md5: 'e8098ec21950f841731d28749129d3ee', + }, + { + input: stringToBytes('\u00A5\u0104\u018F\u0256\u02B1o\u0315\u038E\u0409\u0500\u0531\u05E1\u05B6\u0920\u0903\u09A4\u0983\u0A20\u0A02\u0AA0\u0A83\u0B06\u0C05\u0C03\u1401\u16A0'), + sha1: 'f2753ebc390e5f637e333c2a4179644a93ae9f65', + md5: '231b309e277b6be8bb3d6c688b7f098b', + }, + ]; + function hashToHex(hash) { + const chars = new Array(hash.length); + for (let i = 0; i < hash.length; i++) { + chars[i] = hash[i].toString(16).padStart(2, '0'); + } + return chars.join(''); + } + HASH_SAMPLES.forEach(function (sample, i) { + test(`sha1(node) HASH_SAMPLES[${i}]`, () => { + assert.equal(hashToHex(sha1(sample.input)), sample.sha1); + }); + }); + HASH_SAMPLES.forEach(function (sample, i) { + test(`md5(node) HASH_SAMPLES[${i}]`, () => { + assert.equal(hashToHex(md5(sample.input)), sample.md5); + }); + }); + test('v3', () => { + assert.strictEqual(v3('hello.example.com', v3.DNS), '9125a8dc-52ee-365b-a5aa-81b0b3681cf6'); + assert.strictEqual(v3('http://example.com/hello', v3.URL), 'c6235813-3ba4-3801-ae84-e0a6ebb7d138'); + assert.strictEqual(v3('hello', '0f5abcd1-c194-47f3-905b-2df7263a084b'), 'a981a0c2-68b1-35dc-bcfc-296e52ab01ec'); + }); + test('v3 namespace.toUpperCase', () => { + assert.strictEqual(v3('hello.example.com', v3.DNS.toUpperCase()), '9125a8dc-52ee-365b-a5aa-81b0b3681cf6'); + assert.strictEqual(v3('http://example.com/hello', v3.URL.toUpperCase()), 'c6235813-3ba4-3801-ae84-e0a6ebb7d138'); + assert.strictEqual(v3('hello', '0f5abcd1-c194-47f3-905b-2df7263a084b'.toUpperCase()), 'a981a0c2-68b1-35dc-bcfc-296e52ab01ec'); + }); + test('v3 namespace string validation', () => { + assert.throws(() => { + v3('hello.example.com', 'zyxwvuts-rqpo-nmlk-jihg-fedcba000000'); + }); + assert.throws(() => { + v3('hello.example.com', 'invalid uuid value'); + }); + assert.ok(v3('hello.example.com', '00000000-0000-0000-0000-000000000000')); + }); + test('v3 namespace buffer validation', () => { + assert.throws(() => { + v3('hello.example.com', new Uint8Array(15)); + }); + assert.throws(() => { + v3('hello.example.com', new Uint8Array(17)); + }); + assert.ok(v3('hello.example.com', new Uint8Array(16).fill(0))); + }); + test('v3 fill buffer', () => { + let buf = new Uint8Array(16); + const expectedUuid = Uint8Array.of(0x91, 0x25, 0xa8, 0xdc, 0x52, 0xee, 0x36, 0x5b, 0xa5, 0xaa, 0x81, 0xb0, 0xb3, 0x68, 0x1c, 0xf6); + const result = v3('hello.example.com', v3.DNS, buf); + assert.deepEqual(buf, expectedUuid); + assert.strictEqual(result, buf); + buf = new Uint8Array(19).fill(0xaa); + const expectedBuf = new Uint8Array(19).fill(0xaa); + expectedBuf.set(expectedUuid, 3); + v3('hello.example.com', v3.DNS, buf, 3); + assert.deepEqual(buf, expectedBuf); + }); + test('v3 undefined/null', () => { + assert.throws(() => v3()); + assert.throws(() => v3('hello')); + assert.throws(() => v3('hello.example.com', undefined)); + assert.throws(() => v3('hello.example.com', null, new Uint8Array(16))); + }); + test('v5', () => { + assert.strictEqual(v5('hello.example.com', v5.DNS), 'fdda765f-fc57-5604-a269-52a7df8164ec'); + assert.strictEqual(v5('http://example.com/hello', v5.URL), '3bbcee75-cecc-5b56-8031-b6641c1ed1f1'); + assert.strictEqual(v5('hello', '0f5abcd1-c194-47f3-905b-2df7263a084b'), '90123e1c-7512-523e-bb28-76fab9f2f73d'); + }); + test('v5 namespace.toUpperCase', () => { + assert.strictEqual(v5('hello.example.com', v5.DNS.toUpperCase()), 'fdda765f-fc57-5604-a269-52a7df8164ec'); + assert.strictEqual(v5('http://example.com/hello', v5.URL.toUpperCase()), '3bbcee75-cecc-5b56-8031-b6641c1ed1f1'); + assert.strictEqual(v5('hello', '0f5abcd1-c194-47f3-905b-2df7263a084b'.toUpperCase()), '90123e1c-7512-523e-bb28-76fab9f2f73d'); + }); + test('v5 namespace string validation', () => { + assert.throws(() => { + v5('hello.example.com', 'zyxwvuts-rqpo-nmlk-jihg-fedcba000000'); + }); + assert.throws(() => { + v5('hello.example.com', 'invalid uuid value'); + }); + assert.ok(v5('hello.example.com', '00000000-0000-0000-0000-000000000000')); + }); + test('v5 namespace buffer validation', () => { + assert.throws(() => { + v5('hello.example.com', new Uint8Array(15)); + }); + assert.throws(() => { + v5('hello.example.com', new Uint8Array(17)); + }); + assert.ok(v5('hello.example.com', new Uint8Array(16).fill(0))); + }); + test('v5 fill buffer', () => { + let buf = new Uint8Array(16); + const expectedUuid = Uint8Array.of(0xfd, 0xda, 0x76, 0x5f, 0xfc, 0x57, 0x56, 0x04, 0xa2, 0x69, 0x52, 0xa7, 0xdf, 0x81, 0x64, 0xec); + const result = v5('hello.example.com', v5.DNS, buf); + assert.deepEqual(buf, expectedUuid); + assert.strictEqual(result, buf); + buf = new Uint8Array(19).fill(0xaa); + const expectedBuf = new Uint8Array(19).fill(0xaa); + expectedBuf.set(expectedUuid, 3); + v5('hello.example.com', v5.DNS, buf, 3); + assert.deepEqual(buf, expectedBuf); + }); + test('v5 undefined/null', () => { + assert.throws(() => v5()); + assert.throws(() => v5('hello')); + assert.throws(() => v5('hello.example.com', undefined)); + assert.throws(() => v5('hello.example.com', null, new Uint8Array(16))); + }); + test('v3/v5 constants', () => { + assert.strictEqual(v3.DNS, '6ba7b810-9dad-11d1-80b4-00c04fd430c8'); + assert.strictEqual(v3.URL, '6ba7b811-9dad-11d1-80b4-00c04fd430c8'); + assert.strictEqual(v5.DNS, '6ba7b810-9dad-11d1-80b4-00c04fd430c8'); + assert.strictEqual(v5.URL, '6ba7b811-9dad-11d1-80b4-00c04fd430c8'); + }); +}); +//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoidjM1LnRlc3QuanMiLCJzb3VyY2VSb290IjoiIiwic291cmNlcyI6WyIuLi8uLi8uLi9zcmMvdGVzdC92MzUudGVzdC50cyJdLCJuYW1lcyI6W10sIm1hcHBpbmdzIjoiQUFBQSxPQUFPLEtBQUssTUFBTSxNQUFNLFFBQVEsQ0FBQztBQUNqQyxPQUFPLElBQUksRUFBRSxFQUFFLFFBQVEsRUFBRSxNQUFNLFdBQVcsQ0FBQztBQUMzQyxPQUFPLEdBQUcsTUFBTSxXQUFXLENBQUM7QUFDNUIsT0FBTyxJQUFJLE1BQU0sWUFBWSxDQUFDO0FBQzlCLE9BQU8sRUFBRSxNQUFNLFVBQVUsQ0FBQztBQUMxQixPQUFPLEVBQUUsYUFBYSxFQUFFLE1BQU0sV0FBVyxDQUFDO0FBQzFDLE9BQU8sRUFBRSxNQUFNLFVBQVUsQ0FBQztBQUUxQixRQUFRLENBQUMsS0FBSyxFQUFFLEdBQUcsRUFBRTtJQUNuQixNQUFNLFlBQVksR0FBRztRQUNuQjtZQUNFLEtBQUssRUFBRSxhQUFhLENBQUMsRUFBRSxDQUFDO1lBQ3hCLElBQUksRUFBRSwwQ0FBMEM7WUFDaEQsR0FBRyxFQUFFLGtDQUFrQztTQUN4QztRQUdEO1lBQ0UsS0FBSyxFQUFFLGFBQWEsQ0FDbEIsOHBCQUE4cEIsQ0FDL3BCO1lBQ0QsSUFBSSxFQUFFL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QUFJLENBQUMsaUJBQWlCLEVBQUUsR0FBRyxFQUFFO1FBQzNCLE1BQU0sQ0FBQyxXQUFXLENBQUMsRUFBRSxDQUFDLEdBQUcsRUFBRSxzQ0FBc0MsQ0FBQyxDQUFDO1FBQ25FLE1BQU0sQ0FBQyxXQUFXLENBQUMsRUFBRSxDQUFDLEdBQUcsRUFBRSxzQ0FBc0MsQ0FBQyxDQUFDO1FBQ25FLE1BQU0sQ0FBQyxXQUFXLENBQUMsRUFBRSxDQUFDLEdBQUcsRUFBRSxzQ0FBc0MsQ0FBQyxDQUFDO1FBQ25FLE1BQU0sQ0FBQyxXQUFXLENBQUMsRUFBRSxDQUFDLEdBQUcsRUFBRSxzQ0FBc0MsQ0FBQyxDQUFDO0lBQ3JFLENBQUMsQ0FBQyxDQUFDO0FBQ0wsQ0FBQyxDQUFDLENBQUMifQ== \ No newline at end of file diff --git a/node_modules/uuid/dist/esm/test/v4.test.d.ts b/node_modules/uuid/dist/esm/test/v4.test.d.ts new file mode 100644 index 0000000000..cb0ff5c3b5 --- /dev/null +++ b/node_modules/uuid/dist/esm/test/v4.test.d.ts @@ -0,0 +1 @@ +export {}; diff --git a/node_modules/uuid/dist/esm/test/v4.test.js b/node_modules/uuid/dist/esm/test/v4.test.js new file mode 100644 index 0000000000..ee53691ed7 --- /dev/null +++ b/node_modules/uuid/dist/esm/test/v4.test.js @@ -0,0 +1,59 @@ +import * as assert from 'assert'; +import test, { describe } from 'node:test'; +import native from '../native.js'; +import v4 from '../v4.js'; +const randomBytesFixture = Uint8Array.of(0x10, 0x91, 0x56, 0xbe, 0xc4, 0xfb, 0xc1, 0xea, 0x71, 0xb4, 0xef, 0xe1, 0x67, 0x1c, 0x58, 0x36); +const expectedBytes = Uint8Array.of(16, 145, 86, 190, 196, 251, 65, 234, 177, 180, 239, 225, 103, 28, 88, 54); +describe('v4', () => { + test('subsequent UUIDs are different', () => { + const id1 = v4(); + const id2 = v4(); + assert.ok(id1 !== id2); + }); + test('should uses native randomUUID() if no option is passed', async () => { + const mock = (await import('node:test')).default.mock; + if (!mock) { + return; + } + const mockRandomUUID = mock.method(native, 'randomUUID'); + assert.equal(mockRandomUUID.mock.callCount(), 0); + v4(); + assert.equal(mockRandomUUID.mock.callCount(), 1); + mock.restoreAll(); + }); + test('should not use native randomUUID() if an option is passed', async () => { + const mock = (await import('node:test')).default.mock; + if (!mock) { + return; + } + const mockRandomUUID = mock.method(native, 'randomUUID'); + assert.equal(mockRandomUUID.mock.callCount(), 0); + v4({}); + assert.equal(mockRandomUUID.mock.callCount(), 0); + mock.restoreAll(); + }); + test('explicit options.random produces expected result', () => { + const id = v4({ random: randomBytesFixture }); + assert.strictEqual(id, '109156be-c4fb-41ea-b1b4-efe1671c5836'); + }); + test('explicit options.rng produces expected result', () => { + const id = v4({ rng: () => randomBytesFixture }); + assert.strictEqual(id, '109156be-c4fb-41ea-b1b4-efe1671c5836'); + }); + test('fills one UUID into a buffer as expected', () => { + const buffer = new Uint8Array(16); + const result = v4({ random: randomBytesFixture }, buffer); + assert.deepEqual(buffer, expectedBytes); + assert.strictEqual(buffer, result); + }); + test('fills two UUIDs into a buffer as expected', () => { + const buffer = new Uint8Array(32); + v4({ random: randomBytesFixture }, buffer, 0); + v4({ random: randomBytesFixture }, buffer, 16); + const expectedBuf = new Uint8Array(32); + expectedBuf.set(expectedBytes); + expectedBuf.set(expectedBytes, 16); + assert.deepEqual(buffer, expectedBuf); + }); +}); +//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoidjQudGVzdC5qcyIsInNvdXJjZVJvb3QiOiIiLCJzb3VyY2VzIjpbIi4uLy4uLy4uL3NyYy90ZXN0L3Y0LnRlc3QudHMiXSwibmFtZXMiOltdLCJtYXBwaW5ncyI6IkFBQUEsT0FBTyxLQUFLLE1BQU0sTUFBTSxRQUFRLENBQUM7QUFDakMsT0FBTyxJQUFJLEVBQUUsRUFBRSxRQUFRLEVBQUUsTUFBTSxXQUFXLENBQUM7Q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UksVUFBVSxDQUFDLEVBQUUsQ0FBQyxDQUFDO1FBQ2xDLEVBQUUsQ0FBQyxFQUFFLE1BQU0sRUFBRSxrQkFBa0IsRUFBRSxFQUFFLE1BQU0sRUFBRSxDQUFDLENBQUMsQ0FBQztRQUM5QyxFQUFFLENBQUMsRUFBRSxNQUFNLEVBQUUsa0JBQWtCLEVBQUUsRUFBRSxNQUFNLEVBQUUsRUFBRSxDQUFDLENBQUM7UUFFL0MsTUFBTSxXQUFXLEdBQUcsSUFBSSxVQUFVLENBQUMsRUFBRSxDQUFDLENBQUM7UUFDdkMsV0FBVyxDQUFDLEdBQUcsQ0FBQyxhQUFhLENBQUMsQ0FBQztRQUMvQixXQUFXLENBQUMsR0FBRyxDQUFDLGFBQWEsRUFBRSxFQUFFLENBQUMsQ0FBQztRQUVuQyxNQUFNLENBQUMsU0FBUyxDQUFDLE1BQU0sRUFBRSxXQUFXLENBQUMsQ0FBQztJQUN4QyxDQUFDLENBQUMsQ0FBQztBQUNMLENBQUMsQ0FBQyxDQUFDIn0= \ No newline at end of file diff --git a/node_modules/uuid/dist/esm/test/v6.test.d.ts b/node_modules/uuid/dist/esm/test/v6.test.d.ts new file mode 100644 index 0000000000..cb0ff5c3b5 --- /dev/null +++ b/node_modules/uuid/dist/esm/test/v6.test.d.ts @@ -0,0 +1 @@ +export {}; diff --git a/node_modules/uuid/dist/esm/test/v6.test.js b/node_modules/uuid/dist/esm/test/v6.test.js new file mode 100644 index 0000000000..091de1c209 --- /dev/null +++ b/node_modules/uuid/dist/esm/test/v6.test.js @@ -0,0 +1,55 @@ +import * as assert from 'assert'; +import test, { describe } from 'node:test'; +import v1ToV6 from '../v1ToV6.js'; +import v6 from '../v6.js'; +import v6ToV1 from '../v6ToV1.js'; +describe('v6', () => { + const V1_ID = 'f1207660-21d2-11ef-8c4f-419efbd44d48'; + const V6_ID = '1ef21d2f-1207-6660-8c4f-419efbd44d48'; + const fullOptions = { + msecs: 0x133b891f705, + nsecs: 0x1538, + clockseq: 0x385c, + node: Uint8Array.of(0x61, 0xcd, 0x3c, 0xbb, 0x32, 0x10), + }; + const EXPECTED_BYTES = Uint8Array.of(0x1e, 0x11, 0x22, 0xbd, 0x94, 0x28, 0x68, 0x88, 0xb8, 0x5c, 0x61, 0xcd, 0x3c, 0xbb, 0x32, 0x10); + test('default behavior', () => { + const id = v6(); + assert.ok(/[0-9a-f]{8}-[0-9a-f]{4}-6[0-9a-f]{3}-[89ab][0-9a-f]{3}-[0-9a-f]{12}/.test(id), 'id is valid v6 UUID'); + }); + test('default behavior (binary type)', () => { + const buffer = new Uint8Array(16); + const result = v6(fullOptions, buffer); + assert.deepEqual(buffer, EXPECTED_BYTES); + assert.strictEqual(buffer, result); + }); + test('all options', () => { + const id = v6(fullOptions); + assert.equal(id, '1e1122bd-9428-6888-b85c-61cd3cbb3210'); + }); + test('sort by creation time', () => { + const ids = []; + for (let i = 0; i < 5; i++) { + ids.push(v6({ msecs: i * 1000 })); + } + assert.deepEqual(ids, ids.slice().sort()); + }); + test('creating at array offset', () => { + const buffer = new Uint8Array(32); + v6(fullOptions, buffer, 0); + v6(fullOptions, buffer, 16); + const expectedBuf = new Uint8Array(32); + expectedBuf.set(EXPECTED_BYTES, 0); + expectedBuf.set(EXPECTED_BYTES, 16); + assert.deepEqual(buffer, expectedBuf); + }); + test('v1 -> v6 conversion', () => { + const id = v1ToV6(V1_ID); + assert.equal(id, V6_ID); + }); + test('v6 -> v1 conversion', () => { + const id = v6ToV1(V6_ID); + assert.equal(id, V1_ID); + }); +}); +//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoidjYudGVzdC5qcyIsInNvdXJjZVJvb3QiOiIiLCJzb3VyY2VzIjpbIi4uLy4uLy4uL3NyYy90ZXN0L3Y2LnRlc3QudHMiXSwibmFtZXMiOltdLCJtYXBwaW5ncyI6IkFBQUEsT0FBTyxLQUFLLE1BQU0sTUFBTSxRQUFRLENBQUM7QUFDakMsT0FBTyxJQUF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7.test.d.ts b/node_modules/uuid/dist/esm/test/v7.test.d.ts new file mode 100644 index 0000000000..cb0ff5c3b5 --- /dev/null +++ b/node_modules/uuid/dist/esm/test/v7.test.d.ts @@ -0,0 +1 @@ +export {}; diff --git a/node_modules/uuid/dist/esm/test/v7.test.js b/node_modules/uuid/dist/esm/test/v7.test.js new file mode 100644 index 0000000000..57af226427 --- /dev/null +++ b/node_modules/uuid/dist/esm/test/v7.test.js @@ -0,0 +1,193 @@ +import * as assert from 'assert'; +import test, { describe } from 'node:test'; +import parse from '../parse.js'; +import stringify from '../stringify.js'; +import v7, { updateV7State } from '../v7.js'; +const RFC_V7 = '017f22e2-79b0-7cc3-98c4-dc0c0c07398f'; +const RFC_V7_BYTES = parse('017f22e2-79b0-7cc3-98c4-dc0c0c07398f'); +const RFC_MSECS = 0x17f22e279b0; +const RFC_SEQ = (0x0cc3 << 20) | (0x98c4dc >> 2); +const RFC_RANDOM = Uint8Array.of(0x10, 0x91, 0x56, 0xbe, 0xc4, 0xfb, 0x0c, 0xc3, 0x18, 0xc4, 0x6c, 0x0c, 0x0c, 0x07, 0x39, 0x8f); +describe('v7', () => { + test('subsequent UUIDs are different', () => { + const id1 = v7(); + const id2 = v7(); + assert.ok(id1 !== id2); + }); + test('explicit options.random and options.msecs produces expected result', () => { + const id = v7({ + random: RFC_RANDOM, + msecs: RFC_MSECS, + seq: RFC_SEQ, + }); + assert.strictEqual(id, RFC_V7); + }); + test('explicit options.rng produces expected result', () => { + const id = v7({ + rng: () => RFC_RANDOM, + msecs: RFC_MSECS, + seq: RFC_SEQ, + }); + assert.strictEqual(id, RFC_V7); + }); + test('explicit options.msecs produces expected result', () => { + const id = v7({ + msecs: RFC_MSECS, + }); + assert.strictEqual(id.indexOf('017f22e2'), 0); + }); + test('fills one UUID into a buffer as expected', () => { + const buffer = new Uint8Array(16); + const result = v7({ + random: RFC_RANDOM, + msecs: RFC_MSECS, + seq: RFC_SEQ, + }, buffer); + stringify(buffer); + assert.deepEqual(buffer, RFC_V7_BYTES); + assert.strictEqual(buffer, result); + }); + test('fills two UUIDs into a buffer as expected', () => { + const buffer = new Uint8Array(32); + v7({ + random: RFC_RANDOM, + msecs: RFC_MSECS, + seq: RFC_SEQ, + }, buffer, 0); + v7({ + random: RFC_RANDOM, + msecs: RFC_MSECS, + seq: RFC_SEQ, + }, buffer, 16); + const expected = new Uint8Array(32); + expected.set(RFC_V7_BYTES); + expected.set(RFC_V7_BYTES, 16); + assert.deepEqual(buffer, expected); + }); + test('lexicographical sorting is preserved', () => { + let id; + let prior; + let msecs = RFC_MSECS; + for (let i = 0; i < 20000; ++i) { + if (i % 1500 === 0) { + msecs += 1; + } + id = v7({ msecs, seq: i }); + if (prior !== undefined) { + assert.ok(prior < id, `${prior} < ${id}`); + } + prior = id; + } + }); + test('can supply seq', () => { + let seq = 0x12345; + let uuid = v7({ + msecs: RFC_MSECS, + seq, + }); + assert.strictEqual(uuid.substr(0, 25), '017f22e2-79b0-7000-848d-1'); + seq = 0x6fffffff; + uuid = v7({ + msecs: RFC_MSECS, + seq, + }); + assert.strictEqual(uuid.substring(0, 25), '017f22e2-79b0-76ff-bfff-f'); + }); + test('internal seq is reset upon timestamp change', () => { + v7({ + msecs: RFC_MSECS, + seq: 0x6fffffff, + }); + const uuid = v7({ + msecs: RFC_MSECS + 1, + }); + assert.ok(uuid.indexOf('fff') !== 15); + }); + test('v7() state transitions', () => { + const tests = [ + { + title: 'new time interval', + state: { msecs: 1, seq: 123 }, + now: 2, + expected: { + msecs: 2, + seq: 0x6c318c4, + }, + }, + { + title: 'same time interval', + state: { msecs: 1, seq: 123 }, + now: 1, + expected: { + msecs: 1, + seq: 124, + }, + }, + { + title: 'same time interval (sequence rollover)', + state: { msecs: 1, seq: 0xffffffff }, + now: 1, + expected: { + msecs: 2, + seq: 0, + }, + }, + { + title: 'time regression', + state: { msecs: 2, seq: 123 }, + now: 1, + expected: { + msecs: 2, + seq: 124, + }, + }, + { + title: 'time regression (sequence rollover)', + state: { msecs: 2, seq: 0xffffffff }, + now: 1, + expected: { + msecs: 3, + seq: 0, + }, + }, + ]; + for (const { title, state, now, expected } of tests) { + assert.deepStrictEqual(updateV7State(state, now, RFC_RANDOM), expected, `Failed: ${title}`); + } + }); + test('flipping bits changes the result', () => { + const asBigInt = (buf) => buf.reduce((acc, v) => (acc << 8n) | BigInt(v), 0n); + const asNumber = (bits, data) => Number(BigInt.asUintN(bits, data)); + const flip = (data, n) => data ^ (1n << BigInt(127 - n)); + const optionsFrom = (data) => { + const ms = asNumber(48, data >> 80n); + const hi = asNumber(12, data >> 64n); + const lo = asNumber(20, data >> 42n); + const r = BigInt.asUintN(42, data); + return { + msecs: ms, + seq: (hi << 20) | lo, + random: Uint8Array.from([ + ...Array(10).fill(0), + ...Array(6) + .fill(0) + .map((_, i) => asNumber(8, r >> (BigInt(i) * 8n))) + .reverse(), + ]), + }; + }; + const buf = new Uint8Array(16); + const data = asBigInt(v7({}, buf)); + const id = stringify(buf); + const reserved = [48, 49, 50, 51, 64, 65]; + for (let i = 0; i < 128; ++i) { + if (reserved.includes(i)) { + continue; + } + const flipped = flip(data, i); + assert.strictEqual(asBigInt(v7(optionsFrom(flipped), buf)).toString(16), flipped.toString(16), `Unequal uuids at bit ${i}`); + assert.notStrictEqual(stringify(buf), id); + } + }); +}); +//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoidjcudGVzdC5qcyIsInNvdXJjZVJvb3QiOiIiLCJzb3VyY2VzIjpbIi4uLy4uLy4uL3NyYy90ZXN0L3Y3LnRlc3QudHMiXSwibmFtZXMiOltdLCJtYXBwaW5ncyI6IkFBQUEsT0FBTyxLQUFLLE1BQU0sTUFBTSxRQUFRLENBQUM7QUFDakMsT0FBTyxJQUFJLEVBQUUsRUFBRSxRQUFRLEVBQUUsTUFBTSxXQUFXLENBQUM7QUFFM0MsT0FBTyxLQUFLLE1BQU0sYUFBYSxDQUFDO0FBQ2hDLE9BQU8sU0FBUyxNQUFNLG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QU8sR0FBRyxJQUFJLENBQUMsSUFBSSxFQUFFLENBQUMsQ0FBQyxDQUFDO1lBQzlCLE1BQU0sQ0FBQyxXQUFXLENBQ2hCLFFBQVEsQ0FBQyxFQUFFLENBQUMsV0FBVyxDQUFDLE9BQU8sQ0FBQyxFQUFFLEdBQUcsQ0FBQyxDQUFDLENBQUMsUUFBUSxDQUFDLEVBQUUsQ0FBQyxFQUNwRCxPQUFPLENBQUMsUUFBUSxDQUFDLEVBQUUsQ0FBQyxFQUNwQix3QkFBd0IsQ0FBQyxFQUFFLENBQzVCLENBQUM7WUFDRixNQUFNLENBQUMsY0FBYyxDQUFDLFNBQVMsQ0FBQyxHQUFHLENBQUMsRUFBRSxFQUFFLENBQUMsQ0FBQztRQUM1QyxDQUFDO0lBQ0gsQ0FBQyxDQUFDLENBQUM7QUFDTCxDQUFDLENBQUMsQ0FBQyJ9 \ No newline at end of file diff --git a/node_modules/uuid/dist/esm/test/validate.test.d.ts b/node_modules/uuid/dist/esm/test/validate.test.d.ts new file mode 100644 index 0000000000..cb0ff5c3b5 --- /dev/null +++ b/node_modules/uuid/dist/esm/test/validate.test.d.ts @@ -0,0 +1 @@ +export {}; diff --git a/node_modules/uuid/dist/esm/test/validate.test.js b/node_modules/uuid/dist/esm/test/validate.test.js new file mode 100644 index 0000000000..4f5bb9a79d --- /dev/null +++ b/node_modules/uuid/dist/esm/test/validate.test.js @@ -0,0 +1,12 @@ +import * as assert from 'assert'; +import test, { describe } from 'node:test'; +import validate from '../validate.js'; +import { TESTS } from './test_constants.js'; +describe('validate()', () => { + test('TESTS cases', () => { + for (const { value, expectedValidate } of TESTS) { + assert.strictEqual(validate(value), expectedValidate, `validate(${value}) should be ${expectedValidate}`); + } + }); +}); +//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoidmFsaWRhdGUudGVzdC5qcyIsInNvdXJjZVJvb3QiOiIiLCJzb3VyY2VzIjpbIi4uLy4uLy4uL3NyYy90ZXN0L3ZhbGlkYXRlLnRlc3QudHMiXSwibmFtZXMiOltdLCJtYXBwaW5ncyI6IkFBQUEsT0FBTyxLQUFLLE1BQU0sTUFBTSxRQUFRLENBQUM7QUFDakMsT0FBTyxJQUFJLEVBQUUsRUFBRSxRQUFRLEVBQUUsTUFBTSxXQUFXLENBQUM7QUFDM0MsT0FBTyxRQUFRLE1BQU0sZ0JBQWdCLENBQUM7QUFDdEMsT0FBTyxFQUFFLEtBQUssRUFBRSxNQUFNLHFCQUFxQixDQUFDO0FBRTVDLFFBQVEsQ0FBQyxZQUFZLEVBQUUsR0FBRyxFQUFFO0lBQzFCLElBQUksQ0FBQyxhQUFhLEVBQUUsR0FBRyxFQUFFO1FBQ3ZCLEtBQUssTUFBTSxFQUFFLEtBQUssRUFBRSxnQkFBZ0IsRUFBRSxJQUFJLEtBQUssRUFBRSxDQUFDO1lBQ2hELE1BQU0sQ0FBQyxXQUFXLENBQ2hCLFFBQVEsQ0FBQyxLQUFLLENBQUMsRUFDZixnQkFBZ0IsRUFDaEIsWUFBWSxLQUFLLGVBQWUsZ0JBQWdCLEVBQUUsQ0FDbkQsQ0FBQztRQUNKLENBQUM7SUFDSCxDQUFDLENBQUMsQ0FBQztBQUNMLENBQUMsQ0FBQyxDQUFDIn0= \ No newline at end of file diff --git a/node_modules/uuid/dist/esm/test/version.test.d.ts b/node_modules/uuid/dist/esm/test/version.test.d.ts new file mode 100644 index 0000000000..cb0ff5c3b5 --- /dev/null +++ b/node_modules/uuid/dist/esm/test/version.test.d.ts @@ -0,0 +1 @@ +export {}; diff --git a/node_modules/uuid/dist/esm/test/version.test.js b/node_modules/uuid/dist/esm/test/version.test.js new file mode 100644 index 0000000000..17ed0bdc46 --- /dev/null +++ b/node_modules/uuid/dist/esm/test/version.test.js @@ -0,0 +1,19 @@ +import * as assert from 'assert'; +import test, { describe } from 'node:test'; +import version from '../version.js'; +import { TESTS } from './test_constants.js'; +describe('version()', () => { + test('TESTS cases', () => { + for (const { value, expectedValidate, expectedVersion } of TESTS) { + try { + const actualVersion = version(value); + assert.ok(expectedValidate, `version(${value}) should throw`); + assert.strictEqual(actualVersion, expectedVersion); + } + catch { + assert.ok(!expectedValidate, `version(${value}) threw unexpectedly`); + } + } + }); +}); +//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoidmVyc2lvbi50ZXN0LmpzIiwic291cmNlUm9vdCI6IiIsInNvdXJjZXMiOlsiLi4vLi4vLi4vc3JjL3Rlc3QvdmVyc2lvbi50ZXN0LnRzIl0sIm5hbWVzIjpbXSwibWFwcGluZ3MiOiJBQUFBLE9BQU8sS0FBSyxNQUFNLE1BQU0sUUFBUSxDQUFDO0FBQ2pDLE9BQU8sSUFBSSxFQUFFLEVBQUUsUUFBUSxFQUFFLE1BQU0sV0FBVyxDQUFDO0FBQzNDLE9BQU8sT0FBTyxNQUFNLGVBQWUsQ0FBQztBQUNwQyxPQUFPLEVBQUUsS0FBSyxFQUFFLE1BQU0scUJBQXFCLENBQUM7QUFFNUMsUUFBUSxDQUFDLFdBQVcsRUFBRSxHQUFHLEVBQUU7SUFDekIsSUFBSSxDQUFDLGFBQWEsRUFBRSxHQUFHLEVBQUU7UUFDdkIsS0FBSyxNQUFNLEVBQUUsS0FBSyxFQUFFLGdCQUFnQixFQUFFLGVBQWUsRUFBRSxJQUFJLEtBQUssRUFBRSxDQUFDO1lBQ2pFLElBQUksQ0FBQztnQkFFSCxNQUFNLGFBQWEsR0FBRyxPQUFPLENBQUMsS0FBSyxDQUFDLENBQUM7Z0JBRXJDLE1BQU0sQ0FBQyxFQUFFLENBQUMsZ0JBQWdCLEVBQUUsV0FBVyxLQUFLLGdCQUFnQixDQUFDLENBQUM7Z0JBQzlELE1BQU0sQ0FBQyxXQUFXLENBQUMsYUFBYSxFQUFFLGVBQWUsQ0FBQyxDQUFDO1lBQ3JELENBQUM7WUFBQyxNQUFNLENBQUM7Z0JBQ1AsTUFBTSxDQUFDLEVBQUUsQ0FBQyxDQUFDLGdCQUFnQixFQUFFLFdBQVcsS0FBSyxzQkFBc0IsQ0FBQyxDQUFDO1lBQ3ZFLENBQUM7UUFDSCxDQUFDO0lBQ0gsQ0FBQyxDQUFDLENBQUM7QUFDTCxDQUFDLENBQUMsQ0FBQyJ9 \ No newline at end of file diff --git a/node_modules/uuid/dist/esm/uuid-bin.d.ts b/node_modules/uuid/dist/esm/uuid-bin.d.ts new file mode 100644 index 0000000000..cb0ff5c3b5 --- /dev/null +++ b/node_modules/uuid/dist/esm/uuid-bin.d.ts @@ -0,0 +1 @@ +export {}; diff --git a/node_modules/uuid/dist/esm/uuid-bin.js b/node_modules/uuid/dist/esm/uuid-bin.js new file mode 100644 index 0000000000..2e4418a6d0 --- /dev/null +++ b/node_modules/uuid/dist/esm/uuid-bin.js @@ -0,0 +1,71 @@ +import * as assert from 'assert'; +import v1 from './v1.js'; +import v3 from './v3.js'; +import v4 from './v4.js'; +import v5 from './v5.js'; +import v6 from './v6.js'; +import v7 from './v7.js'; +function usage() { + console.log('Usage:'); + console.log(' uuid'); + console.log(' uuid v1'); + console.log(' uuid v3 '); + console.log(' uuid v4'); + console.log(' uuid v5 '); + console.log(' uuid v6'); + console.log(' uuid v7'); + console.log(' uuid --help'); + console.log('\nNote: may be "URL" or "DNS" to use the corresponding UUIDs defined by RFC9562'); +} +const args = process.argv.slice(2); +if (args.indexOf('--help') >= 0) { + usage(); + process.exit(0); +} +const version = args.shift() || 'v4'; +switch (version) { + case 'v1': + console.log(v1()); + break; + case 'v3': { + const name = args.shift(); + let namespace = args.shift(); + assert.ok(name != null, 'v3 name not specified'); + assert.ok(namespace != null, 'v3 namespace not specified'); + if (namespace === 'URL') { + namespace = v3.URL; + } + if (namespace === 'DNS') { + namespace = v3.DNS; + } + console.log(v3(name, namespace)); + break; + } + case 'v4': + console.log(v4()); + break; + case 'v5': { + const name = args.shift(); + let namespace = args.shift(); + assert.ok(name != null, 'v5 name not specified'); + assert.ok(namespace != null, 'v5 namespace not specified'); + if (namespace === 'URL') { + namespace = v5.URL; + } + if (namespace === 'DNS') { + namespace = v5.DNS; + } + console.log(v5(name, namespace)); + break; + } + case 'v6': + console.log(v6()); + break; + case 'v7': + console.log(v7()); + break; + default: + usage(); + process.exit(1); +} +//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoidXVpZC1iaW4uanMiLCJzb3VyY2VSb290IjoiIiwic291cmNlcyI6WyIuLi8uLi9zcmMvdXVpZC1iaW4udHMiXSwibmFtZXMiOltdLCJtYXBwaW5ncyI6IkFBQUEsT0FBTyxLQUFLLE1BQU0sTUFBTSxRQUFRLENBQUM7QUFFakMsT0FBTyxFQUFFLE1BQU0sU0FBUyxDQUFDO0FBQ3pCLE9BQU8sRUFBRSxNQUFNLFNBQVMsQ0FBQztBQUN6QixPQUFPLEVBQUUsTUFBTSxTQUFTLENBQUM7QUFDekIsT0FBTyxFQUFFLE1BQU0sU0FBUyxDQUFDO0FBQ3pCLE9BQU8sRUFBRSxNQUFNLFNBQVMsQ0FBQztBQUN6QixPQUFPLEVBQUUsTUFBTSxTQUFTLENBQUM7QUFFekIsU0FBUyxLQUFLO0lBQ1osT0FBTyxDQUFDLEdBQUcsQ0FBQyxRQUFRLENBQUMsQ0FBQztJQUN0QixPQUFPLENBQUMsR0FBRyxDQUFDLFFBQVEsQ0FBQyxDQUFDO0lBQ3RCLE9BQU8sQ0FBQyxHQUFHLENBQUMsV0FBVyxDQUFDLENBQUM7SUFDekIsT0FBTyxDQUFDLEdBQUcsQ0FBQyxtQ0FBbUMsQ0FBQyxDQUFDO0lBQ2pELE9BQU8sQ0FBQyxHQUFHLENBQUMsV0FBVyxDQUFDLENBQUM7SUFDekIsT0FBTyxDQUFDLEdBQUcsQ0FBQyxtQ0FBbUMsQ0FBQyxDQUFDO0lBQ2pELE9BQU8sQ0FBQyxHQUFHLENBQUMsV0FBVyxDQUFDLENBQUM7SUFDekIsT0FBTyxDQUFDLEdBQUcsQ0FBQyxXQUFXLENB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UFDLENBQUM7UUFDbEIsTUFBTTtJQUVSLEtBQUssSUFBSTtRQUNQLE9BQU8sQ0FBQyxHQUFHLENBQUMsRUFBRSxFQUFFLENBQUMsQ0FBQztRQUNsQixNQUFNO0lBRVI7UUFDRSxLQUFLLEVBQUUsQ0FBQztRQUNSLE9BQU8sQ0FBQyxJQUFJLENBQUMsQ0FBQyxDQUFDLENBQUM7QUFDcEIsQ0FBQyJ9 \ No newline at end of file diff --git a/node_modules/uuid/dist/esm/v1.d.ts b/node_modules/uuid/dist/esm/v1.d.ts new file mode 100644 index 0000000000..62f1b877e0 --- /dev/null +++ b/node_modules/uuid/dist/esm/v1.d.ts @@ -0,0 +1,11 @@ +import { Version1Options } from './_types.js'; +type V1State = { + node?: Uint8Array; + clockseq?: number; + msecs?: number; + nsecs?: number; +}; +declare function v1(options?: Version1Options, buf?: undefined, offset?: number): string; +declare function v1(options?: Version1Options, buf?: Uint8Array, offset?: number): Uint8Array; +export declare function updateV1State(state: V1State, now: number, rnds: Uint8Array): V1State; +export default v1; diff --git a/node_modules/uuid/dist/esm/v1.js b/node_modules/uuid/dist/esm/v1.js new file mode 100644 index 0000000000..021794ccad --- /dev/null +++ b/node_modules/uuid/dist/esm/v1.js @@ -0,0 +1,76 @@ +import rng from './rng.js'; +import { unsafeStringify } from './stringify.js'; +const _state = {}; +function v1(options, buf, offset) { + let bytes; + const isV6 = options?._v6 ?? false; + if (options) { + const optionsKeys = Object.keys(options); + if (optionsKeys.length === 1 && optionsKeys[0] === '_v6') { + options = undefined; + } + } + if (options) { + bytes = v1Bytes(options.random ?? options.rng?.() ?? rng(), options.msecs, options.nsecs, options.clockseq, options.node, buf, offset); + } + else { + const now = Date.now(); + const rnds = rng(); + updateV1State(_state, now, rnds); + bytes = v1Bytes(rnds, _state.msecs, _state.nsecs, isV6 ? undefined : _state.clockseq, isV6 ? undefined : _state.node, buf, offset); + } + return buf ? bytes : unsafeStringify(bytes); +} +export function updateV1State(state, now, rnds) { + state.msecs ??= -Infinity; + state.nsecs ??= 0; + if (now === state.msecs) { + state.nsecs++; + if (state.nsecs >= 10000) { + state.node = undefined; + state.nsecs = 0; + } + } + else if (now > state.msecs) { + state.nsecs = 0; + } + else if (now < state.msecs) { + state.node = undefined; + } + if (!state.node) { + state.node = rnds.slice(10, 16); + state.node[0] |= 0x01; + state.clockseq = ((rnds[8] << 8) | rnds[9]) & 0x3fff; + } + state.msecs = now; + return state; +} +function v1Bytes(rnds, msecs, nsecs, clockseq, node, buf, offset = 0) { + if (!buf) { + buf = new Uint8Array(16); + offset = 0; + } + msecs ??= Date.now(); + nsecs ??= 0; + clockseq ??= ((rnds[8] << 8) | rnds[9]) & 0x3fff; + node ??= rnds.slice(10, 16); + msecs += 12219292800000; + const tl = ((msecs & 0xfffffff) * 10000 + nsecs) % 0x100000000; + buf[offset++] = (tl >>> 24) & 0xff; + buf[offset++] = (tl >>> 16) & 0xff; + buf[offset++] = (tl >>> 8) & 0xff; + buf[offset++] = tl & 0xff; + const tmh = ((msecs / 0x100000000) * 10000) & 0xfffffff; + buf[offset++] = (tmh >>> 8) & 0xff; + buf[offset++] = tmh & 0xff; + buf[offset++] = ((tmh >>> 24) & 0xf) | 0x10; + buf[offset++] = (tmh >>> 16) & 0xff; + buf[offset++] = (clockseq >>> 8) | 0x80; + buf[offset++] = clockseq & 0xff; + for (let n = 0; n < 6; ++n) { + buf[offset++] = node[n]; + } + return buf; +} +export default v1; +//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoidjEuanMiLCJzb3VyY2VSb290IjoiIiwic291cmNlcyI6WyIuLi8uLi9zcmMvdjEudHMiXSwibmFtZXMiOltdLCJtYXBwaW5ncyI6IkFBQ0EsT0FBTyxHQUFHLE1BQU0sVUFBVSxDQUFDO0FBQzNCLE9BQU8sRUFBRSxlQUFlLEVBQUUsTUFBTSxnQkFBZ0IsQ0FBQztBQXNCakQsTUFBTSxNQUFNLEdBQVksRUFBRSxDQUFDO0FBSTNCLF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FDLE1BQU0sRUFBRSxDQUFDLEdBQUcsQ0FBQyxRQUFRLEtBQUssQ0FBQyxDQUFDLEdBQUcsSUFBSSxDQUFDO0lBR3hDLEdBQUcsQ0FBQyxNQUFNLEVBQUUsQ0FBQyxHQUFHLFFBQVEsR0FBRyxJQUFJLENBQUM7SUFHaEMsS0FBSyxJQUFJLENBQUMsR0FBRyxDQUFDLEVBQUUsQ0FBQyxHQUFHLENBQUMsRUFBRSxFQUFFLENBQUMsRUFBRSxDQUFDO1FBQzNCLEdBQUcsQ0FBQyxNQUFNLEVBQUUsQ0FBQyxHQUFHLElBQUksQ0FBQyxDQUFDLENBQUMsQ0FBQztJQUMxQixDQUFDO0lBRUQsT0FBTyxHQUFHLENBQUM7QUFDYixDQUFDO0FBRUQsZUFBZSxFQUFFLENBQUMifQ== \ No newline at end of file diff --git a/node_modules/uuid/dist/esm/v1ToV6.d.ts b/node_modules/uuid/dist/esm/v1ToV6.d.ts new file mode 100644 index 0000000000..38eaaf0c26 --- /dev/null +++ b/node_modules/uuid/dist/esm/v1ToV6.d.ts @@ -0,0 +1,2 @@ +export default function v1ToV6(uuid: string): string; +export default function v1ToV6(uuid: Uint8Array): Uint8Array; diff --git a/node_modules/uuid/dist/esm/v1ToV6.js b/node_modules/uuid/dist/esm/v1ToV6.js new file mode 100644 index 0000000000..5e915bf593 --- /dev/null +++ b/node_modules/uuid/dist/esm/v1ToV6.js @@ -0,0 +1,11 @@ +import parse from './parse.js'; +import { unsafeStringify } from './stringify.js'; +export default function v1ToV6(uuid) { + const v1Bytes = typeof uuid === 'string' ? parse(uuid) : uuid; + const v6Bytes = _v1ToV6(v1Bytes); + return typeof uuid === 'string' ? unsafeStringify(v6Bytes) : v6Bytes; +} +function _v1ToV6(v1Bytes) { + return Uint8Array.of(((v1Bytes[6] & 0x0f) << 4) | ((v1Bytes[7] >> 4) & 0x0f), ((v1Bytes[7] & 0x0f) << 4) | ((v1Bytes[4] & 0xf0) >> 4), ((v1Bytes[4] & 0x0f) << 4) | ((v1Bytes[5] & 0xf0) >> 4), ((v1Bytes[5] & 0x0f) << 4) | ((v1Bytes[0] & 0xf0) >> 4), ((v1Bytes[0] & 0x0f) << 4) | ((v1Bytes[1] & 0xf0) >> 4), ((v1Bytes[1] & 0x0f) << 4) | ((v1Bytes[2] & 0xf0) >> 4), 0x60 | (v1Bytes[2] & 0x0f), v1Bytes[3], v1Bytes[8], v1Bytes[9], v1Bytes[10], v1Bytes[11], v1Bytes[12], v1Bytes[13], v1Bytes[14], v1Bytes[15]); +} +//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoidjFUb1Y2LmpzIiwic291cmNlUm9vdCI6IiIsInNvdXJjZXMiOlsiLi4vLi4vc3JjL3YxVG9WNi50cyJdLCJuYW1lcyI6W10sIm1hcHBpbmdzIjoiQUFDQSxPQUFPLEtBQUssTUFBTSxZQUFZLENBQUM7QUFDL0IsT0FBTyxFQUFFLGVBQWUsRUFBRSxNQUFNLGdCQUFnQixDQUFDO0FBV2pELE1BQU0sQ0FBQyxPQUFPLFVBQVUsTUFBTSxDQUFDLElBQXlCO0lBQ3RELE1BQU0sT0FBTyxHQUFHLE9BQU8sSUFBSSxLQUFLLFFBQVEsQ0FBQyxDQUFDLENBQUMsS0FBSyxDQUFDLElBQUksQ0FBQyxDQUFDLENBQUMsQ0FBQyxJQUFJLENBQUM7SUFFOUQsTUFBTSxPQUFPLEdBQUcsT0FBTyxDQUFDLE9BQU8sQ0FBQyxDQUFDO0lBRWpDLE9BQU8sT0FBTyxJQUFJLEtBQUssUUFBUSxDQUFDLENBQUMsQ0FBQyxlQUFlLENBQUMsT0FBTyxDQUFDLENBQUMsQ0FBQyxDQUFDLE9BQU8sQ0FBQztBQUN2RSxDQUFDO0FBR0QsU0FBUyxPQUFPLENBQUMsT0FBbUI7SUFDbEMsT0FBTyxVQUFVLENBQUMsRUFBRSxDQUNsQixDQUFDLENBQUMsT0FBTyxDQUFDLENBQUMsQ0FBQyx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MsQ0FBQyxDQUFDLEdBQUcsSUFBSSxDQUFDLEVBQzFCLE9BQU8sQ0FBQyxDQUFDLENBQUMsRUFFVixPQUFPLENBQUMsQ0FBQyxDQUFDLEVBQ1YsT0FBTyxDQUFDLENBQUMsQ0FBQyxFQUNWLE9BQU8sQ0FBQyxFQUFFLENBQUMsRUFDWCxPQUFPLENBQUMsRUFBRSxDQUFDLEVBQ1gsT0FBTyxDQUFDLEVBQUUsQ0FBQyxFQUNYLE9BQU8sQ0FBQyxFQUFFLENBQUMsRUFDWCxPQUFPLENBQUMsRUFBRSxDQUFDLEVBQ1gsT0FBTyxDQUFDLEVBQUUsQ0FBQyxDQUNaLENBQUM7QUFDSixDQUFDIn0= \ No newline at end of file diff --git a/node_modules/uuid/dist/esm/v3.d.ts b/node_modules/uuid/dist/esm/v3.d.ts new file mode 100644 index 0000000000..15690e49c6 --- /dev/null +++ b/node_modules/uuid/dist/esm/v3.d.ts @@ -0,0 +1,9 @@ +import { UUIDTypes } from './_types.js'; +export { DNS, URL } from './v35.js'; +declare function v3(value: string | Uint8Array, namespace: UUIDTypes, buf?: undefined, offset?: number): string; +declare function v3(value: string | Uint8Array, namespace: UUIDTypes, buf?: Uint8Array, offset?: number): Uint8Array; +declare namespace v3 { + var DNS: string; + var URL: string; +} +export default v3; diff --git a/node_modules/uuid/dist/esm/v3.js b/node_modules/uuid/dist/esm/v3.js new file mode 100644 index 0000000000..15c55d853d --- /dev/null +++ b/node_modules/uuid/dist/esm/v3.js @@ -0,0 +1,10 @@ +import md5 from './md5.js'; +import v35, { DNS, URL } from './v35.js'; +export { DNS, URL } from './v35.js'; +function v3(value, namespace, buf, offset) { + return v35(0x30, md5, value, namespace, buf, offset); +} +v3.DNS = DNS; +v3.URL = URL; +export default v3; +//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoidjMuanMiLCJzb3VyY2VSb290IjoiIiwic291cmNlcyI6WyIuLi8uLi9zcmMvdjMudHMiXSwibmFtZXMiOltdLCJtYXBwaW5ncyI6IkFBQ0EsT0FBTyxHQUFHLE1BQU0sVUFBVSxDQUFDO0FBQzNCLE9BQU8sR0FBRyxFQUFFLEVBQUUsR0FBRyxFQUFFLEdBQUcsRUFBRSxNQUFNLFVBQVUsQ0FBQztBQUV6QyxPQUFPLEVBQUUsR0FBRyxFQUFFLEdBQUcsRUFBRSxNQUFNLFVBQVUsQ0FBQztBQWNwQyxTQUFTLEVBQUUsQ0FBQyxLQUEwQixFQUFFLFNBQW9CLEVBQUUsR0FBZ0IsRUFBRSxNQUFlO0lBQzdGLE9BQU8sR0FBRyxDQUFDLElBQUksRUFBRSxHQUFHLEVBQUUsS0FBSyxFQUFFLFNBQVMsRUFBRSxHQUFHLEVBQUUsTUFBTSxDQUFDLENBQUM7QUFDdkQsQ0FBQztBQUVELEVBQUUsQ0FBQyxHQUFHLEdBQUcsR0FBRyxDQUFDO0FBQ2IsRUFBRSxDQUFDLEdBQUcsR0FBRyxHQUFHLENBQUM7QUFFYixlQUFlLEVBQUUsQ0FBQyJ9 \ No newline at end of file diff --git a/node_modules/uuid/dist/esm/v35.d.ts b/node_modules/uuid/dist/esm/v35.d.ts new file mode 100644 index 0000000000..be25996904 --- /dev/null +++ b/node_modules/uuid/dist/esm/v35.d.ts @@ -0,0 +1,7 @@ +import { UUIDTypes } from './_types.js'; +export declare function stringToBytes(str: string): Uint8Array; +export declare const DNS = "6ba7b810-9dad-11d1-80b4-00c04fd430c8"; +export declare const URL = "6ba7b811-9dad-11d1-80b4-00c04fd430c8"; +type HashFunction = (bytes: Uint8Array) => Uint8Array; +export default function v35(version: 0x30 | 0x50, hash: HashFunction, value: string | Uint8Array, namespace: UUIDTypes, buf?: Uint8Array, offset?: number): string | Uint8Array; +export {}; diff --git a/node_modules/uuid/dist/esm/v35.js b/node_modules/uuid/dist/esm/v35.js new file mode 100644 index 0000000000..eb52162629 --- /dev/null +++ b/node_modules/uuid/dist/esm/v35.js @@ -0,0 +1,37 @@ +import parse from './parse.js'; +import { unsafeStringify } from './stringify.js'; +export function stringToBytes(str) { + str = unescape(encodeURIComponent(str)); + const bytes = new Uint8Array(str.length); + for (let i = 0; i < str.length; ++i) { + bytes[i] = str.charCodeAt(i); + } + return bytes; +} +export const DNS = '6ba7b810-9dad-11d1-80b4-00c04fd430c8'; +export const URL = '6ba7b811-9dad-11d1-80b4-00c04fd430c8'; +export default function v35(version, hash, value, namespace, buf, offset) { + const valueBytes = typeof value === 'string' ? stringToBytes(value) : value; + const namespaceBytes = typeof namespace === 'string' ? parse(namespace) : namespace; + if (typeof namespace === 'string') { + namespace = parse(namespace); + } + if (namespace?.length !== 16) { + throw TypeError('Namespace must be array-like (16 iterable integer values, 0-255)'); + } + let bytes = new Uint8Array(16 + valueBytes.length); + bytes.set(namespaceBytes); + bytes.set(valueBytes, namespaceBytes.length); + bytes = hash(bytes); + bytes[6] = (bytes[6] & 0x0f) | version; + bytes[8] = (bytes[8] & 0x3f) | 0x80; + if (buf) { + offset = offset || 0; + for (let i = 0; i < 16; ++i) { + buf[offset + i] = bytes[i]; + } + return buf; + } + return unsafeStringify(bytes); +} +//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoidjM1LmpzIiwic291cmNlUm9vdCI6IiIsInNvdXJjZXMiOlsiLi4vLi4vc3JjL3YzNS50cyJdLCJuYW1lcyI6W10sIm1hcHBpbmdzIjoiQUFDQSxPQUFPLEtBQUssTUFBTSxZQUFZLENBQUM7QUFDL0IsT0FBTyxFQUFFLGVBQWUsRUFBRSxNQUFNLGdCQUFnQixDQUFDO0FBRWpELE1BQU0sVUFBVSxhQUFhLENBQUMsR0FBVztJQUV2QyxHQUFHLEdBQUcsUUFBUSxDQUFDLGtCQUFrQixDQUFDLEdBQUcsQ0FBQyxDQUFDLENBQUM7SUFFeEMsTUFBTSxLQUFLLEdBQUcsSUFBSSxVQUFVLENBQUMsR0FBRyxDQUFDLE1BQU0sQ0FBQyxDQUFDO0lBRXpDLEt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UFLLEdBQUcsSUFBSSxVQUFVLENBQUMsRUFBRSxHQUFHLFVBQVUsQ0FBQyxNQUFNLENBQUMsQ0FBQztJQUNuRCxLQUFLLENBQUMsR0FBRyxDQUFDLGNBQWMsQ0FBQyxDQUFDO0lBQzFCLEtBQUssQ0FBQyxHQUFHLENBQUMsVUFBVSxFQUFFLGNBQWMsQ0FBQyxNQUFNLENBQUMsQ0FBQztJQUM3QyxLQUFLLEdBQUcsSUFBSSxDQUFDLEtBQUssQ0FBQyxDQUFDO0lBRXBCLEtBQUssQ0FBQyxDQUFDLENBQUMsR0FBRyxDQUFDLEtBQUssQ0FBQyxDQUFDLENBQUMsR0FBRyxJQUFJLENBQUMsR0FBRyxPQUFPLENBQUM7SUFDdkMsS0FBSyxDQUFDLENBQUMsQ0FBQyxHQUFHLENBQUMsS0FBSyxDQUFDLENBQUMsQ0FBQyxHQUFHLElBQUksQ0FBQyxHQUFHLElBQUksQ0FBQztJQUVwQyxJQUFJLEdBQUcsRUFBRSxDQUFDO1FBQ1IsTUFBTSxHQUFHLE1BQU0sSUFBSSxDQUFDLENBQUM7UUFFckIsS0FBSyxJQUFJLENBQUMsR0FBRyxDQUFDLEVBQUUsQ0FBQyxHQUFHLEVBQUUsRUFBRSxFQUFFLENBQUMsRUFBRSxDQUFDO1lBQzVCLEdBQUcsQ0FBQyxNQUFNLEdBQUcsQ0FBQyxDQUFDLEdBQUcsS0FBSyxDQUFDLENBQUMsQ0FBQyxDQUFDO1FBQzdCLENBQUM7UUFFRCxPQUFPLEdBQUcsQ0FBQztJQUNiLENBQUM7SUFFRCxPQUFPLGVBQWUsQ0FBQyxLQUFLLENBQUMsQ0FBQztBQUNoQyxDQUFDIn0= \ No newline at end of file diff --git a/node_modules/uuid/dist/esm/v4.d.ts b/node_modules/uuid/dist/esm/v4.d.ts new file mode 100644 index 0000000000..72a516c70f --- /dev/null +++ b/node_modules/uuid/dist/esm/v4.d.ts @@ -0,0 +1,4 @@ +import { Version4Options } from './_types.js'; +declare function v4(options?: Version4Options, buf?: undefined, offset?: number): string; +declare function v4(options?: Version4Options, buf?: Uint8Array, offset?: number): Uint8Array; +export default v4; diff --git a/node_modules/uuid/dist/esm/v4.js b/node_modules/uuid/dist/esm/v4.js new file mode 100644 index 0000000000..5950df9bfb --- /dev/null +++ b/node_modules/uuid/dist/esm/v4.js @@ -0,0 +1,22 @@ +import native from './native.js'; +import rng from './rng.js'; +import { unsafeStringify } from './stringify.js'; +function v4(options, buf, offset) { + if (native.randomUUID && !buf && !options) { + return native.randomUUID(); + } + options = options || {}; + const rnds = options.random || (options.rng || rng)(); + rnds[6] = (rnds[6] & 0x0f) | 0x40; + rnds[8] = (rnds[8] & 0x3f) | 0x80; + if (buf) { + offset = offset || 0; + for (let i = 0; i < 16; ++i) { + buf[offset + i] = rnds[i]; + } + return buf; + } + return unsafeStringify(rnds); +} +export default v4; +//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoidjQuanMiLCJzb3VyY2VSb290IjoiIiwic291cmNlcyI6WyIuLi8uLi9zcmMvdjQudHMiXSwibmFtZXMiOltdLCJtYXBwaW5ncyI6IkFBQ0EsT0FBTyxNQUFNLE1BQU0sYUFBYSxDQUFDO0FBQ2pDLE9BQU8sR0FBRyxNQUFNLFVBQVUsQ0FBQztBQUMzQixPQUFPLEVBQUUsZUFBZSxFQUFFLE1BQU0sZ0JBQWdCLENBQUM7QUFJakQsU0FBUyxFQUFFLENBQUMsT0FBeUIsRUFBRSxHQUFnQixFQUFFLE1BQWU7SUFDdEUsSUFBSSxNQUFNLENBQUMsVUFBVSxJQUFJLENBQUMsR0FBRyxJQUFJLENBQUMsT0FBTyxFQUFFLENBQUM7UUFDMUMsT0FBTyxNQUFNLENBQUMsVUFBVSxFQUFFLENBQUM7SUFDN0IsQ0FBQztJQUVELE9BQU8sR0FBRyxPQUFPLElBQUksRUFBRSxDQUFDO0lBRXhCLE1BQU0sSUFBSSxHQUFHLE9BQU8sQ0FBQyxNQUFNLElBQUksQ0FBQyxPQUFPLENBQUMsR0FBRyxJQUFJLEdBQUcsQ0FBQyxFQUFFLENBQUM7SUFHdEQsSUFBSSxDQUFDLENBQUMsQ0FBQyxHQUFHLENBQUMsSUFBSSxDQUFDLENBQUMsQ0FBQyxHQUFHLElBQUksQ0FBQyxHQUFHLElBQUksQ0FBQztJQUNsQyxJQUFJLENBQUMsQ0FBQyxDQUFDLEdBQUcsQ0FBQyxJQUFJLENBQUMsQ0FBQyxDQUFDLEdBQUcsSUFBSSxDQUFDLEdBQUcsSUFBSSxDQUFDO0lBR2xDLElBQUksR0FBRyxFQUFFLENBQUM7UUFDUixNQUFNLEdBQUcsTUFBTSxJQUFJLENBQUMsQ0FBQztRQUVyQixLQUFLLElBQUksQ0FBQyxHQUFHLENBQUMsRUFBRSxDQUFDLEdBQUcsRUFBRSxFQUFFLEVBQUUsQ0FBQyxFQUFFLENBQUM7WUFDNUIsR0FBRyxDQUFDLE1BQU0sR0FBRyxDQUFDLENBQUMsR0FBRyxJQUFJLENBQUMsQ0FBQyxDQUFDLENBQUM7UUFDNUIsQ0FBQztRQUVELE9BQU8sR0FBRyxDQUFDO0lBQ2IsQ0FBQztJQUVELE9BQU8sZUFBZSxDQUFDLElBQUksQ0FBQyxDQUFDO0FBQy9CLENBQUM7QUFFRCxlQUFlLEVBQUUsQ0FBQyJ9 \ No newline at end of file diff --git a/node_modules/uuid/dist/esm/v5.d.ts b/node_modules/uuid/dist/esm/v5.d.ts new file mode 100644 index 0000000000..637ab331fd --- /dev/null +++ b/node_modules/uuid/dist/esm/v5.d.ts @@ -0,0 +1,9 @@ +import { UUIDTypes } from './_types.js'; +export { DNS, URL } from './v35.js'; +declare function v5(value: string | Uint8Array, namespace: UUIDTypes, buf?: undefined, offset?: number): string; +declare function v5(value: string | Uint8Array, namespace: UUIDTypes, buf?: Uint8Array, offset?: number): Uint8Array; +declare namespace v5 { + var DNS: string; + var URL: string; +} +export default v5; diff --git a/node_modules/uuid/dist/esm/v5.js b/node_modules/uuid/dist/esm/v5.js new file mode 100644 index 0000000000..04f7b0eb4c --- /dev/null +++ b/node_modules/uuid/dist/esm/v5.js @@ -0,0 +1,10 @@ +import sha1 from './sha1.js'; +import v35, { DNS, URL } from './v35.js'; +export { DNS, URL } from './v35.js'; +function v5(value, namespace, buf, offset) { + return v35(0x50, sha1, value, namespace, buf, offset); +} +v5.DNS = DNS; +v5.URL = URL; +export default v5; +//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoidjUuanMiLCJzb3VyY2VSb290IjoiIiwic291cmNlcyI6WyIuLi8uLi9zcmMvdjUudHMiXSwibmFtZXMiOltdLCJtYXBwaW5ncyI6IkFBQ0EsT0FBTyxJQUFJLE1BQU0sV0FBVyxDQUFDO0FBQzdCLE9BQU8sR0FBRyxFQUFFLEVBQUUsR0FBRyxFQUFFLEdBQUcsRUFBRSxNQUFNLFVBQVUsQ0FBQztBQUV6QyxPQUFPLEVBQUUsR0FBRyxFQUFFLEdBQUcsRUFBRSxNQUFNLFVBQVUsQ0FBQztBQWNwQyxTQUFTLEVBQUUsQ0FBQyxLQUEwQixFQUFFLFNBQW9CLEVBQUUsR0FBZ0IsRUFBRSxNQUFlO0lBQzdGLE9BQU8sR0FBRyxDQUFDLElBQUksRUFBRSxJQUFJLEVBQUUsS0FBSyxFQUFFLFNBQVMsRUFBRSxHQUFHLEVBQUUsTUFBTSxDQUFDLENBQUM7QUFDeEQsQ0FBQztBQUVELEVBQUUsQ0FBQyxHQUFHLEdBQUcsR0FBRyxDQUFDO0FBQ2IsRUFBRSxDQUFDLEdBQUcsR0FBRyxHQUFHLENBQUM7QUFFYixlQUFlLEVBQUUsQ0FBQyJ9 \ No newline at end of file diff --git a/node_modules/uuid/dist/esm/v6.d.ts b/node_modules/uuid/dist/esm/v6.d.ts new file mode 100644 index 0000000000..7f4483555e --- /dev/null +++ b/node_modules/uuid/dist/esm/v6.d.ts @@ -0,0 +1,4 @@ +import { Version6Options } from './_types.js'; +declare function v6(options?: Version6Options, buf?: undefined, offset?: number): string; +declare function v6(options?: Version6Options, buf?: Uint8Array, offset?: number): Uint8Array; +export default v6; diff --git a/node_modules/uuid/dist/esm/v6.js b/node_modules/uuid/dist/esm/v6.js new file mode 100644 index 0000000000..19aed4c893 --- /dev/null +++ b/node_modules/uuid/dist/esm/v6.js @@ -0,0 +1,18 @@ +import { unsafeStringify } from './stringify.js'; +import v1 from './v1.js'; +import v1ToV6 from './v1ToV6.js'; +function v6(options, buf, offset) { + options ??= {}; + offset ??= 0; + let bytes = v1({ ...options, _v6: true }, new Uint8Array(16)); + bytes = v1ToV6(bytes); + if (buf) { + for (let i = 0; i < 16; i++) { + buf[offset + i] = bytes[i]; + } + return buf; + } + return unsafeStringify(bytes); +} +export default v6; +//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoidjYuanMiLCJzb3VyY2VSb290IjoiIiwic291cmNlcyI6WyIuLi8uLi9zcmMvdjYudHMiXSwibmFtZXMiOltdLCJtYXBwaW5ncyI6IkFBQ0EsT0FBTyxFQUFFLGVBQWUsRUFBRSxNQUFNLGdCQUFnQixDQUFDO0FBQ2pELE9BQU8sRUFBRSxNQUFNLFNBQVMsQ0FBQztBQUN6QixPQUFPLE1BQU0sTUFBTSxhQUFhLENBQUM7QUFJakMsU0FBUyxFQUFFLENBQUMsT0FBeUIsRUFBRSxHQUFnQixFQUFFLE1BQWU7SUFDdEUsT0FBTyxLQUFLLEVBQUUsQ0FBQztJQUNmLE1BQU0sS0FBSyxDQUFDLENBQUM7SUFLYixJQUFJLEtBQUssR0FBRyxFQUFFLENBQUMsRUFBRSxHQUFHLE9BQU8sRUFBRSxHQUFHLEVBQUUsSUFBSSxFQUFFLEVBQUUsSUFBSSxVQUFVLENBQUMsRUFBRSxDQUFDLENBQUMsQ0FBQztJQUc5RCxLQUFLLEdBQUcsTUFBTSxDQUFDLEtBQUssQ0FBQyxDQUFDO0lBR3RCLElBQUksR0FBRyxFQUFFLENBQUM7UUFDUixLQUFLLElBQUksQ0FBQyxHQUFHLENBQUMsRUFBRSxDQUFDLEdBQUcsRUFBRSxFQUFFLENBQUMsRUFBRSxFQUFFLENBQUM7WUFDNUIsR0FBRyxDQUFDLE1BQU0sR0FBRyxDQUFDLENBQUMsR0FBRyxLQUFLLENBQUMsQ0FBQyxDQUFDLENBQUM7UUFDN0IsQ0FBQztRQUNELE9BQU8sR0FBRyxDQUFDO0lBQ2IsQ0FBQztJQUVELE9BQU8sZUFBZSxDQUFDLEtBQUssQ0FBQyxDQUFDO0FBQ2hDLENBQUM7QUFFRCxlQUFlLEVBQUUsQ0FBQyJ9 \ No newline at end of file diff --git a/node_modules/uuid/dist/esm/v6ToV1.d.ts b/node_modules/uuid/dist/esm/v6ToV1.d.ts new file mode 100644 index 0000000000..3b3ffc2113 --- /dev/null +++ b/node_modules/uuid/dist/esm/v6ToV1.d.ts @@ -0,0 +1,2 @@ +export default function v6ToV1(uuid: string): string; +export default function v6ToV1(uuid: Uint8Array): Uint8Array; diff --git a/node_modules/uuid/dist/esm/v6ToV1.js b/node_modules/uuid/dist/esm/v6ToV1.js new file mode 100644 index 0000000000..84c0638736 --- /dev/null +++ b/node_modules/uuid/dist/esm/v6ToV1.js @@ -0,0 +1,11 @@ +import parse from './parse.js'; +import { unsafeStringify } from './stringify.js'; +export default function v6ToV1(uuid) { + const v6Bytes = typeof uuid === 'string' ? parse(uuid) : uuid; + const v1Bytes = _v6ToV1(v6Bytes); + return typeof uuid === 'string' ? unsafeStringify(v1Bytes) : v1Bytes; +} +function _v6ToV1(v6Bytes) { + return Uint8Array.of(((v6Bytes[3] & 0x0f) << 4) | ((v6Bytes[4] >> 4) & 0x0f), ((v6Bytes[4] & 0x0f) << 4) | ((v6Bytes[5] & 0xf0) >> 4), ((v6Bytes[5] & 0x0f) << 4) | (v6Bytes[6] & 0x0f), v6Bytes[7], ((v6Bytes[1] & 0x0f) << 4) | ((v6Bytes[2] & 0xf0) >> 4), ((v6Bytes[2] & 0x0f) << 4) | ((v6Bytes[3] & 0xf0) >> 4), 0x10 | ((v6Bytes[0] & 0xf0) >> 4), ((v6Bytes[0] & 0x0f) << 4) | ((v6Bytes[1] & 0xf0) >> 4), v6Bytes[8], v6Bytes[9], v6Bytes[10], v6Bytes[11], v6Bytes[12], v6Bytes[13], v6Bytes[14], v6Bytes[15]); +} +//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoidjZUb1YxLmpzIiwic291cmNlUm9vdCI6IiIsInNvdXJjZXMiOlsiLi4vLi4vc3JjL3Y2VG9WMS50cyJdLCJuYW1lcyI6W10sIm1hcHBpbmdzIjoiQUFDQSxPQUFPLEtBQUssTUFBTSxZQUFZLENBQUM7QUFDL0IsT0FBTyxFQUFFLGVBQWUsRUFBRSxNQUFNLGdCQUFnQixDQUFDO0FBV2pELE1BQU0sQ0FBQyxPQUFPLFVBQVUsTUFBTSxDQUFDLElBQWU7SUFDNUMsTUFBTSxPQUFPLEdBQUcsT0FBTyxJQUFJLEtBQUssUUFBUSxDQUFDLENBQUMsQ0FBQyxLQUFLLENBQUMsSUFBSSxDQUFDLENBQUMsQ0FBQyxDQUFDLElBQUksQ0FBQztJQUU5RCxNQUFNLE9BQU8sR0FBRyxPQUFPLENBQUMsT0FBTyxDQUFDLENBQUM7SUFFakMsT0FBTyxPQUFPLElBQUksS0FBSyxRQUFRLENBQUMsQ0FBQyxDQUFDLGVBQWUsQ0FBQyxPQUFPLENBQUMsQ0FBQyxDQUFDLENBQUMsT0FBTyxDQUFDO0FBQ3ZFLENBQUM7QUFHRCxTQUFTLE9BQU8sQ0FBQyxPQUFtQjtJQUNsQyxPQUFPLFVBQVUsQ0FBQyxFQUFFLENBQ2xCLENBQUMsQ0FBQyxPQUFPLENBQUMsQ0FBQyxDQUFDLEdBQUcsSUFBSSxDQUFDLElBQUksQ0FBQyxDQUFDLEdBQUcsQ0FBQyxDQUFDLE9BQU8sQ0FBQyxDQU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FBQyxDQUFDLENBQUMsRUFDVixPQUFPLENBQUMsQ0FBQyxDQUFDLEVBQ1YsT0FBTyxDQUFDLEVBQUUsQ0FBQyxFQUNYLE9BQU8sQ0FBQyxFQUFFLENBQUMsRUFDWCxPQUFPLENBQUMsRUFBRSxDQUFDLEVBQ1gsT0FBTyxDQUFDLEVBQUUsQ0FBQyxFQUNYLE9BQU8sQ0FBQyxFQUFFLENBQUMsRUFDWCxPQUFPLENBQUMsRUFBRSxDQUFDLENBQ1osQ0FBQztBQUNKLENBQUMifQ== \ No newline at end of file diff --git a/node_modules/uuid/dist/esm/v7.d.ts b/node_modules/uuid/dist/esm/v7.d.ts new file mode 100644 index 0000000000..a5ec1b7f55 --- /dev/null +++ b/node_modules/uuid/dist/esm/v7.d.ts @@ -0,0 +1,9 @@ +import { Version7Options } from './_types.js'; +type V7State = { + msecs?: number; + seq?: number; +}; +declare function v7(options?: Version7Options, buf?: undefined, offset?: number): string; +declare function v7(options?: Version7Options, buf?: Uint8Array, offset?: number): Uint8Array; +export declare function updateV7State(state: V7State, now: number, rnds: Uint8Array): V7State; +export default v7; diff --git a/node_modules/uuid/dist/esm/v7.js b/node_modules/uuid/dist/esm/v7.js new file mode 100644 index 0000000000..89fc344103 --- /dev/null +++ b/node_modules/uuid/dist/esm/v7.js @@ -0,0 +1,58 @@ +import rng from './rng.js'; +import { unsafeStringify } from './stringify.js'; +const _state = {}; +function v7(options, buf, offset) { + let bytes; + if (options) { + bytes = v7Bytes(options.random ?? options.rng?.() ?? rng(), options.msecs, options.seq, buf, offset); + } + else { + const now = Date.now(); + const rnds = rng(); + updateV7State(_state, now, rnds); + bytes = v7Bytes(rnds, _state.msecs, _state.seq, buf, offset); + } + return buf ? bytes : unsafeStringify(bytes); +} +export function updateV7State(state, now, rnds) { + state.msecs ??= -Infinity; + state.seq ??= 0; + if (now > state.msecs) { + state.seq = (rnds[6] << 23) | (rnds[7] << 16) | (rnds[8] << 8) | rnds[9]; + state.msecs = now; + } + else { + state.seq = (state.seq + 1) | 0; + if (state.seq === 0) { + state.msecs++; + } + } + return state; +} +function v7Bytes(rnds, msecs, seq, buf, offset = 0) { + if (!buf) { + buf = new Uint8Array(16); + offset = 0; + } + msecs ??= Date.now(); + seq ??= ((rnds[6] * 0x7f) << 24) | (rnds[7] << 16) | (rnds[8] << 8) | rnds[9]; + buf[offset++] = (msecs / 0x10000000000) & 0xff; + buf[offset++] = (msecs / 0x100000000) & 0xff; + buf[offset++] = (msecs / 0x1000000) & 0xff; + buf[offset++] = (msecs / 0x10000) & 0xff; + buf[offset++] = (msecs / 0x100) & 0xff; + buf[offset++] = msecs & 0xff; + buf[offset++] = 0x70 | ((seq >>> 28) & 0x0f); + buf[offset++] = (seq >>> 20) & 0xff; + buf[offset++] = 0x80 | ((seq >>> 14) & 0x3f); + buf[offset++] = (seq >>> 6) & 0xff; + buf[offset++] = ((seq << 2) & 0xff) | (rnds[10] & 0x03); + buf[offset++] = rnds[11]; + buf[offset++] = rnds[12]; + buf[offset++] = rnds[13]; + buf[offset++] = rnds[14]; + buf[offset++] = rnds[15]; + return buf; +} +export default v7; +//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoidjcuanMiLCJzb3VyY2VSb290IjoiIiwic291cmNlcyI6WyIuLi8uLi9zcmMvdjcudHMiXSwibmFtZXMiOltdLCJtYXBwaW5ncyI6IkFBQ0EsT0FBTyxHQUFHLE1BQU0sVUFBVSxDQUFDO0FBQzNCLE9BQU8sRUFBRSxlQUFlLEVBQUUsTUFBTSxnQkFBZ0IsQ0FBQztBQU9qRCxNQUFNLE1BQU0sR0FBWSxFQUFFLENBQUM7QUFJM0IsU0FBUyxFQUFFLENBQUMsT0FBeUIsRUFBRSxHQUFnQixFQUFFLE1BQWU7SUFDdEUsSUFBSSxLQUFpQixDQUFDO0lBRXRCLElBQUksT0FBTyxFQUFFLENBQUM7UUFFWixLQUFLLEdBQUcsT0FBTyxDQUNiLE9BQU8sQ0FBQyxNQUF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xDQUFDLENBQUMsR0FBRyxJQUFJLENBQUMsR0FBRyxDQUFDLElBQUksQ0FBQyxFQUFFLENBQUMsR0FBRyxJQUFJLENBQUMsQ0FBQztJQUd4RCxHQUFHLENBQUMsTUFBTSxFQUFFLENBQUMsR0FBRyxJQUFJLENBQUMsRUFBRSxDQUFDLENBQUM7SUFDekIsR0FBRyxDQUFDLE1BQU0sRUFBRSxDQUFDLEdBQUcsSUFBSSxDQUFDLEVBQUUsQ0FBQyxDQUFDO0lBQ3pCLEdBQUcsQ0FBQyxNQUFNLEVBQUUsQ0FBQyxHQUFHLElBQUksQ0FBQyxFQUFFLENBQUMsQ0FBQztJQUN6QixHQUFHLENBQUMsTUFBTSxFQUFFLENBQUMsR0FBRyxJQUFJLENBQUMsRUFBRSxDQUFDLENBQUM7SUFDekIsR0FBRyxDQUFDLE1BQU0sRUFBRSxDQUFDLEdBQUcsSUFBSSxDQUFDLEVBQUUsQ0FBQyxDQUFDO0lBRXpCLE9BQU8sR0FBRyxDQUFDO0FBQ2IsQ0FBQztBQUVELGVBQWUsRUFBRSxDQUFDIn0= \ No newline at end of file diff --git a/node_modules/uuid/dist/esm/validate.d.ts b/node_modules/uuid/dist/esm/validate.d.ts new file mode 100644 index 0000000000..57da03d7d9 --- /dev/null +++ b/node_modules/uuid/dist/esm/validate.d.ts @@ -0,0 +1,2 @@ +declare function validate(uuid: unknown): boolean; +export default validate; diff --git a/node_modules/uuid/dist/esm/validate.js b/node_modules/uuid/dist/esm/validate.js new file mode 100644 index 0000000000..d14811a7de --- /dev/null +++ b/node_modules/uuid/dist/esm/validate.js @@ -0,0 +1,6 @@ +import REGEX from './regex.js'; +function validate(uuid) { + return typeof uuid === 'string' && REGEX.test(uuid); +} +export default validate; +//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoidmFsaWRhdGUuanMiLCJzb3VyY2VSb290IjoiIiwic291cmNlcyI6WyIuLi8uLi9zcmMvdmFsaWRhdGUudHMiXSwibmFtZXMiOltdLCJtYXBwaW5ncyI6IkFBQUEsT0FBTyxLQUFLLE1BQU0sWUFBWSxDQUFDO0FBRS9CLFNBQVMsUUFBUSxDQUFDLElBQWE7SUFDN0IsT0FBTyxPQUFPLElBQUksS0FBSyxRQUFRLElBQUksS0FBSyxDQUFDLElBQUksQ0FBQyxJQUFJLENBQUMsQ0FBQztBQUN0RCxDQUFDO0FBRUQsZUFBZSxRQUFRLENBQUMifQ== \ No newline at end of file diff --git a/node_modules/uuid/dist/esm/version.d.ts b/node_modules/uuid/dist/esm/version.d.ts new file mode 100644 index 0000000000..f1948dc805 --- /dev/null +++ b/node_modules/uuid/dist/esm/version.d.ts @@ -0,0 +1,2 @@ +declare function version(uuid: string): number; +export default version; diff --git a/node_modules/uuid/dist/esm/version.js b/node_modules/uuid/dist/esm/version.js new file mode 100644 index 0000000000..9c42ab1ed8 --- /dev/null +++ b/node_modules/uuid/dist/esm/version.js @@ -0,0 +1,9 @@ +import validate from './validate.js'; +function version(uuid) { + if (!validate(uuid)) { + throw TypeError('Invalid UUID'); + } + return parseInt(uuid.slice(14, 15), 16); +} +export default version; +//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoidmVyc2lvbi5qcyIsInNvdXJjZVJvb3QiOiIiLCJzb3VyY2VzIjpbIi4uLy4uL3NyYy92ZXJzaW9uLnRzIl0sIm5hbWVzIjpbXSwibWFwcGluZ3MiOiJBQUFBLE9BQU8sUUFBUSxNQUFNLGVBQWUsQ0FBQztBQUVyQyxTQUFTLE9BQU8sQ0FBQyxJQUFZO0lBQzNCLElBQUksQ0FBQyxRQUFRLENBQUMsSUFBSSxDQUFDLEVBQUUsQ0FBQztRQUNwQixNQUFNLFNBQVMsQ0FBQyxjQUFjLENBQUMsQ0FBQztJQUNsQyxDQUFDO0lBRUQsT0FBTyxRQUFRLENBQUMsSUFBSSxDQUFDLEtBQUssQ0FBQyxFQUFFLEVBQUUsRUFBRSxDQUFDLEVBQUUsRUFBRSxDQUFDLENBQUM7QUFDMUMsQ0FBQztBQUVELGVBQWUsT0FBTyxDQUFDIn0= \ No newline at end of file diff --git a/node_modules/uuid/dist/index.js b/node_modules/uuid/dist/index.js deleted file mode 100644 index cd6eb746ed..0000000000 --- a/node_modules/uuid/dist/index.js +++ /dev/null @@ -1,104 +0,0 @@ -"use strict"; - -Object.defineProperty(exports, "__esModule", { - value: true -}); -Object.defineProperty(exports, "MAX", { - enumerable: true, - get: function () { - return _max.default; - } -}); -Object.defineProperty(exports, "NIL", { - enumerable: true, - get: function () { - return _nil.default; - } -}); -Object.defineProperty(exports, "parse", { - enumerable: true, - get: function () { - return _parse.default; - } -}); -Object.defineProperty(exports, "stringify", { - enumerable: true, - get: function () { - return _stringify.default; - } -}); -Object.defineProperty(exports, "v1", { - enumerable: true, - get: function () { - return _v.default; - } -}); -Object.defineProperty(exports, "v1ToV6", { - enumerable: true, - get: function () { - return _v1ToV.default; - } -}); -Object.defineProperty(exports, "v3", { - enumerable: true, - get: function () { - return _v2.default; - } -}); -Object.defineProperty(exports, "v4", { - enumerable: true, - get: function () { - return _v3.default; - } -}); -Object.defineProperty(exports, "v5", { - enumerable: true, - get: function () { - return _v4.default; - } -}); -Object.defineProperty(exports, "v6", { - enumerable: true, - get: function () { - return _v5.default; - } -}); -Object.defineProperty(exports, "v6ToV1", { - enumerable: true, - get: function () { - return _v6ToV.default; - } -}); -Object.defineProperty(exports, "v7", { - enumerable: true, - get: function () { - return _v6.default; - } -}); -Object.defineProperty(exports, "validate", { - enumerable: true, - get: function () { - return _validate.default; - } -}); -Object.defineProperty(exports, "version", { - enumerable: true, - get: function () { - return _version.default; - } -}); -var _max = _interopRequireDefault(require("./max.js")); -var _nil = _interopRequireDefault(require("./nil.js")); -var _parse = _interopRequireDefault(require("./parse.js")); -var _stringify = _interopRequireDefault(require("./stringify.js")); -var _v = _interopRequireDefault(require("./v1.js")); -var _v1ToV = _interopRequireDefault(require("./v1ToV6.js")); -var _v2 = _interopRequireDefault(require("./v3.js")); -var _v3 = _interopRequireDefault(require("./v4.js")); -var _v4 = _interopRequireDefault(require("./v5.js")); -var _v5 = _interopRequireDefault(require("./v6.js")); -var _v6ToV = _interopRequireDefault(require("./v6ToV1.js")); -var _v6 = _interopRequireDefault(require("./v7.js")); -var _validate = _interopRequireDefault(require("./validate.js")); -var _version = _interopRequireDefault(require("./version.js")); -function _interopRequireDefault(e) { return e && e.__esModule ? e : { default: e }; } \ No newline at end of file diff --git a/node_modules/uuid/dist/max.js b/node_modules/uuid/dist/max.js deleted file mode 100644 index 8de76f84e5..0000000000 --- a/node_modules/uuid/dist/max.js +++ /dev/null @@ -1,7 +0,0 @@ -"use strict"; - -Object.defineProperty(exports, "__esModule", { - value: true -}); -exports.default = void 0; -var _default = exports.default = 'ffffffff-ffff-ffff-ffff-ffffffffffff'; \ No newline at end of file diff --git a/node_modules/uuid/dist/md5-browser.js b/node_modules/uuid/dist/md5-browser.js deleted file mode 100644 index f0d31f5a4d..0000000000 --- a/node_modules/uuid/dist/md5-browser.js +++ /dev/null @@ -1,200 +0,0 @@ -"use strict"; - -Object.defineProperty(exports, "__esModule", { - value: true -}); -exports.default = void 0; -/* - * Browser-compatible JavaScript MD5 - * - * Modification of JavaScript MD5 - * https://github.com/blueimp/JavaScript-MD5 - * - * Copyright 2011, Sebastian Tschan - * https://blueimp.net - * - * Licensed under the MIT license: - * https://opensource.org/licenses/MIT - * - * Based on - * A JavaScript implementation of the RSA Data Security, Inc. MD5 Message - * Digest Algorithm, as defined in RFC 1321. - * Version 2.2 Copyright (C) Paul Johnston 1999 - 2009 - * Other contributors: Greg Holt, Andrew Kepert, Ydnar, Lostinet - * Distributed under the BSD License - * See http://pajhome.org.uk/crypt/md5 for more info. - */ -function md5(bytes) { - if (typeof bytes === 'string') { - const msg = unescape(encodeURIComponent(bytes)); // UTF8 escape - - bytes = new Uint8Array(msg.length); - for (let i = 0; i < msg.length; ++i) { - bytes[i] = msg.charCodeAt(i); - } - } - return md5ToHexEncodedArray(wordsToMd5(bytesToWords(bytes), bytes.length * 8)); -} - -/* - * Convert an array of little-endian words to an array of bytes - */ -function md5ToHexEncodedArray(input) { - const output = []; - const length32 = input.length * 32; - const hexTab = '0123456789abcdef'; - for (let i = 0; i < length32; i += 8) { - const x = input[i >> 5] >>> i % 32 & 0xff; - const hex = parseInt(hexTab.charAt(x >>> 4 & 0x0f) + hexTab.charAt(x & 0x0f), 16); - output.push(hex); - } - return output; -} - -/** - * Calculate output length with padding and bit length - */ -function getOutputLength(inputLength8) { - return (inputLength8 + 64 >>> 9 << 4) + 14 + 1; -} - -/* - * Calculate the MD5 of an array of little-endian words, and a bit length. - */ -function wordsToMd5(x, len) { - /* append padding */ - x[len >> 5] |= 0x80 << len % 32; - x[getOutputLength(len) - 1] = len; - let a = 1732584193; - let b = -271733879; - let c = -1732584194; - let d = 271733878; - for (let i = 0; i < x.length; i += 16) { - const olda = a; - const oldb = b; - const oldc = c; - const oldd = d; - a = md5ff(a, b, c, d, x[i], 7, -680876936); - d = md5ff(d, a, b, c, x[i + 1], 12, -389564586); - c = md5ff(c, d, a, b, x[i + 2], 17, 606105819); - b = md5ff(b, c, d, a, x[i + 3], 22, -1044525330); - a = md5ff(a, b, c, d, x[i + 4], 7, -176418897); - d = md5ff(d, a, b, c, x[i + 5], 12, 1200080426); - c = md5ff(c, d, a, b, x[i + 6], 17, -1473231341); - b = md5ff(b, c, d, a, x[i + 7], 22, -45705983); - a = md5ff(a, b, c, d, x[i + 8], 7, 1770035416); - d = md5ff(d, a, b, c, x[i + 9], 12, -1958414417); - c = md5ff(c, d, a, b, x[i + 10], 17, -42063); - b = md5ff(b, c, d, a, x[i + 11], 22, -1990404162); - a = md5ff(a, b, c, d, x[i + 12], 7, 1804603682); - d = md5ff(d, a, b, c, x[i + 13], 12, -40341101); - c = md5ff(c, d, a, b, x[i + 14], 17, -1502002290); - b = md5ff(b, c, d, a, x[i + 15], 22, 1236535329); - a = md5gg(a, b, c, d, x[i + 1], 5, -165796510); - d = md5gg(d, a, b, c, x[i + 6], 9, -1069501632); - c = md5gg(c, d, a, b, x[i + 11], 14, 643717713); - b = md5gg(b, c, d, a, x[i], 20, -373897302); - a = md5gg(a, b, c, d, x[i + 5], 5, -701558691); - d = md5gg(d, a, b, c, x[i + 10], 9, 38016083); - c = md5gg(c, d, a, b, x[i + 15], 14, -660478335); - b = md5gg(b, c, d, a, x[i + 4], 20, -405537848); - a = md5gg(a, b, c, d, x[i + 9], 5, 568446438); - d = md5gg(d, a, b, c, x[i + 14], 9, -1019803690); - c = md5gg(c, d, a, b, x[i + 3], 14, -187363961); - b = md5gg(b, c, d, a, x[i + 8], 20, 1163531501); - a = md5gg(a, b, c, d, x[i + 13], 5, -1444681467); - d = md5gg(d, a, b, c, x[i + 2], 9, -51403784); - c = md5gg(c, d, a, b, x[i + 7], 14, 1735328473); - b = md5gg(b, c, d, a, x[i + 12], 20, -1926607734); - a = md5hh(a, b, c, d, x[i + 5], 4, -378558); - d = md5hh(d, a, b, c, x[i + 8], 11, -2022574463); - c = md5hh(c, d, a, b, x[i + 11], 16, 1839030562); - b = md5hh(b, c, d, a, x[i + 14], 23, -35309556); - a = md5hh(a, b, c, d, x[i + 1], 4, -1530992060); - d = md5hh(d, a, b, c, x[i + 4], 11, 1272893353); - c = md5hh(c, d, a, b, x[i + 7], 16, -155497632); - b = md5hh(b, c, d, a, x[i + 10], 23, -1094730640); - a = md5hh(a, b, c, d, x[i + 13], 4, 681279174); - d = md5hh(d, a, b, c, x[i], 11, -358537222); - c = md5hh(c, d, a, b, x[i + 3], 16, -722521979); - b = md5hh(b, c, d, a, x[i + 6], 23, 76029189); - a = md5hh(a, b, c, d, x[i + 9], 4, -640364487); - d = md5hh(d, a, b, c, x[i + 12], 11, -421815835); - c = md5hh(c, d, a, b, x[i + 15], 16, 530742520); - b = md5hh(b, c, d, a, x[i + 2], 23, -995338651); - a = md5ii(a, b, c, d, x[i], 6, -198630844); - d = md5ii(d, a, b, c, x[i + 7], 10, 1126891415); - c = md5ii(c, d, a, b, x[i + 14], 15, -1416354905); - b = md5ii(b, c, d, a, x[i + 5], 21, -57434055); - a = md5ii(a, b, c, d, x[i + 12], 6, 1700485571); - d = md5ii(d, a, b, c, x[i + 3], 10, -1894986606); - c = md5ii(c, d, a, b, x[i + 10], 15, -1051523); - b = md5ii(b, c, d, a, x[i + 1], 21, -2054922799); - a = md5ii(a, b, c, d, x[i + 8], 6, 1873313359); - d = md5ii(d, a, b, c, x[i + 15], 10, -30611744); - c = md5ii(c, d, a, b, x[i + 6], 15, -1560198380); - b = md5ii(b, c, d, a, x[i + 13], 21, 1309151649); - a = md5ii(a, b, c, d, x[i + 4], 6, -145523070); - d = md5ii(d, a, b, c, x[i + 11], 10, -1120210379); - c = md5ii(c, d, a, b, x[i + 2], 15, 718787259); - b = md5ii(b, c, d, a, x[i + 9], 21, -343485551); - a = safeAdd(a, olda); - b = safeAdd(b, oldb); - c = safeAdd(c, oldc); - d = safeAdd(d, oldd); - } - return [a, b, c, d]; -} - -/* - * Convert an array bytes to an array of little-endian words - * Characters >255 have their high-byte silently ignored. - */ -function bytesToWords(input) { - if (input.length === 0) { - return []; - } - const length8 = input.length * 8; - const output = new Uint32Array(getOutputLength(length8)); - for (let i = 0; i < length8; i += 8) { - output[i >> 5] |= (input[i / 8] & 0xff) << i % 32; - } - return output; -} - -/* - * Add integers, wrapping at 2^32. This uses 16-bit operations internally - * to work around bugs in some JS interpreters. - */ -function safeAdd(x, y) { - const lsw = (x & 0xffff) + (y & 0xffff); - const msw = (x >> 16) + (y >> 16) + (lsw >> 16); - return msw << 16 | lsw & 0xffff; -} - -/* - * Bitwise rotate a 32-bit number to the left. - */ -function bitRotateLeft(num, cnt) { - return num << cnt | num >>> 32 - cnt; -} - -/* - * These functions implement the four basic operations the algorithm uses. - */ -function md5cmn(q, a, b, x, s, t) { - return safeAdd(bitRotateLeft(safeAdd(safeAdd(a, q), safeAdd(x, t)), s), b); -} -function md5ff(a, b, c, d, x, s, t) { - return md5cmn(b & c | ~b & d, a, b, x, s, t); -} -function md5gg(a, b, c, d, x, s, t) { - return md5cmn(b & d | c & ~d, a, b, x, s, t); -} -function md5hh(a, b, c, d, x, s, t) { - return md5cmn(b ^ c ^ d, a, b, x, s, t); -} -function md5ii(a, b, c, d, x, s, t) { - return md5cmn(c ^ (b | ~d), a, b, x, s, t); -} -var _default = exports.default = md5; \ No newline at end of file diff --git a/node_modules/uuid/dist/md5.js b/node_modules/uuid/dist/md5.js deleted file mode 100644 index 135b24df68..0000000000 --- a/node_modules/uuid/dist/md5.js +++ /dev/null @@ -1,17 +0,0 @@ -"use strict"; - -Object.defineProperty(exports, "__esModule", { - value: true -}); -exports.default = void 0; -var _nodeCrypto = _interopRequireDefault(require("node:crypto")); -function _interopRequireDefault(e) { return e && e.__esModule ? e : { default: e }; } -function md5(bytes) { - if (Array.isArray(bytes)) { - bytes = Buffer.from(bytes); - } else if (typeof bytes === 'string') { - bytes = Buffer.from(bytes, 'utf8'); - } - return _nodeCrypto.default.createHash('md5').update(bytes).digest(); -} -var _default = exports.default = md5; \ No newline at end of file diff --git a/node_modules/uuid/dist/native-browser.js b/node_modules/uuid/dist/native-browser.js deleted file mode 100644 index bc5d3830c9..0000000000 --- a/node_modules/uuid/dist/native-browser.js +++ /dev/null @@ -1,10 +0,0 @@ -"use strict"; - -Object.defineProperty(exports, "__esModule", { - value: true -}); -exports.default = void 0; -const randomUUID = typeof crypto !== 'undefined' && crypto.randomUUID && crypto.randomUUID.bind(crypto); -var _default = exports.default = { - randomUUID -}; \ No newline at end of file diff --git a/node_modules/uuid/dist/native.js b/node_modules/uuid/dist/native.js deleted file mode 100644 index 4c273c5598..0000000000 --- a/node_modules/uuid/dist/native.js +++ /dev/null @@ -1,11 +0,0 @@ -"use strict"; - -Object.defineProperty(exports, "__esModule", { - value: true -}); -exports.default = void 0; -var _nodeCrypto = _interopRequireDefault(require("node:crypto")); -function _interopRequireDefault(e) { return e && e.__esModule ? e : { default: e }; } -var _default = exports.default = { - randomUUID: _nodeCrypto.default.randomUUID -}; \ No newline at end of file diff --git a/node_modules/uuid/dist/nil.js b/node_modules/uuid/dist/nil.js deleted file mode 100644 index f7967e90c9..0000000000 --- a/node_modules/uuid/dist/nil.js +++ /dev/null @@ -1,7 +0,0 @@ -"use strict"; - -Object.defineProperty(exports, "__esModule", { - value: true -}); -exports.default = void 0; -var _default = exports.default = '00000000-0000-0000-0000-000000000000'; \ No newline at end of file diff --git a/node_modules/uuid/dist/parse.js b/node_modules/uuid/dist/parse.js deleted file mode 100644 index 1707c9080a..0000000000 --- a/node_modules/uuid/dist/parse.js +++ /dev/null @@ -1,44 +0,0 @@ -"use strict"; - -Object.defineProperty(exports, "__esModule", { - value: true -}); -exports.default = void 0; -var _validate = _interopRequireDefault(require("./validate.js")); -function _interopRequireDefault(e) { return e && e.__esModule ? e : { default: e }; } -function parse(uuid) { - if (!(0, _validate.default)(uuid)) { - throw TypeError('Invalid UUID'); - } - let v; - const arr = new Uint8Array(16); - - // Parse ########-....-....-....-............ - arr[0] = (v = parseInt(uuid.slice(0, 8), 16)) >>> 24; - arr[1] = v >>> 16 & 0xff; - arr[2] = v >>> 8 & 0xff; - arr[3] = v & 0xff; - - // Parse ........-####-....-....-............ - arr[4] = (v = parseInt(uuid.slice(9, 13), 16)) >>> 8; - arr[5] = v & 0xff; - - // Parse ........-....-####-....-............ - arr[6] = (v = parseInt(uuid.slice(14, 18), 16)) >>> 8; - arr[7] = v & 0xff; - - // Parse ........-....-....-####-............ - arr[8] = (v = parseInt(uuid.slice(19, 23), 16)) >>> 8; - arr[9] = v & 0xff; - - // Parse ........-....-....-....-############ - // (Use "/" to avoid 32-bit truncation when bit-shifting high-order bytes) - arr[10] = (v = parseInt(uuid.slice(24, 36), 16)) / 0x10000000000 & 0xff; - arr[11] = v / 0x100000000 & 0xff; - arr[12] = v >>> 24 & 0xff; - arr[13] = v >>> 16 & 0xff; - arr[14] = v >>> 8 & 0xff; - arr[15] = v & 0xff; - return arr; -} -var _default = exports.default = parse; \ No newline at end of file diff --git a/node_modules/uuid/dist/regex.js b/node_modules/uuid/dist/regex.js deleted file mode 100644 index fc02a88e84..0000000000 --- a/node_modules/uuid/dist/regex.js +++ /dev/null @@ -1,7 +0,0 @@ -"use strict"; - -Object.defineProperty(exports, "__esModule", { - value: true -}); -exports.default = void 0; -var _default = exports.default = /^(?:[0-9a-f]{8}-[0-9a-f]{4}-[1-8][0-9a-f]{3}-[89ab][0-9a-f]{3}-[0-9a-f]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$/i; \ No newline at end of file diff --git a/node_modules/uuid/dist/rng-browser.js b/node_modules/uuid/dist/rng-browser.js deleted file mode 100644 index e257738fe3..0000000000 --- a/node_modules/uuid/dist/rng-browser.js +++ /dev/null @@ -1,23 +0,0 @@ -"use strict"; - -Object.defineProperty(exports, "__esModule", { - value: true -}); -exports.default = rng; -// Unique ID creation requires a high quality random # generator. In the browser we therefore -// require the crypto API and do not support built-in fallback to lower quality random number -// generators (like Math.random()). - -let getRandomValues; -const rnds8 = new Uint8Array(16); -function rng() { - // lazy load so that environments that need to polyfill have a chance to do so - if (!getRandomValues) { - // getRandomValues needs to be invoked in a context where "this" is a Crypto implementation. - getRandomValues = typeof crypto !== 'undefined' && crypto.getRandomValues && crypto.getRandomValues.bind(crypto); - if (!getRandomValues) { - throw new Error('crypto.getRandomValues() not supported. See https://github.com/uuidjs/uuid#getrandomvalues-not-supported'); - } - } - return getRandomValues(rnds8); -} \ No newline at end of file diff --git a/node_modules/uuid/dist/rng.js b/node_modules/uuid/dist/rng.js deleted file mode 100644 index f5eb9a1d57..0000000000 --- a/node_modules/uuid/dist/rng.js +++ /dev/null @@ -1,17 +0,0 @@ -"use strict"; - -Object.defineProperty(exports, "__esModule", { - value: true -}); -exports.default = rng; -var _nodeCrypto = _interopRequireDefault(require("node:crypto")); -function _interopRequireDefault(e) { return e && e.__esModule ? e : { default: e }; } -const rnds8Pool = new Uint8Array(256); // # of random values to pre-allocate -let poolPtr = rnds8Pool.length; -function rng() { - if (poolPtr > rnds8Pool.length - 16) { - _nodeCrypto.default.randomFillSync(rnds8Pool); - poolPtr = 0; - } - return rnds8Pool.slice(poolPtr, poolPtr += 16); -} \ No newline at end of file diff --git a/node_modules/uuid/dist/sha1-browser.js b/node_modules/uuid/dist/sha1-browser.js deleted file mode 100644 index ded98db2c3..0000000000 --- a/node_modules/uuid/dist/sha1-browser.js +++ /dev/null @@ -1,82 +0,0 @@ -"use strict"; - -Object.defineProperty(exports, "__esModule", { - value: true -}); -exports.default = void 0; -// Adapted from Chris Veness' SHA1 code at -// http://www.movable-type.co.uk/scripts/sha1.html -function f(s, x, y, z) { - switch (s) { - case 0: - return x & y ^ ~x & z; - case 1: - return x ^ y ^ z; - case 2: - return x & y ^ x & z ^ y & z; - case 3: - return x ^ y ^ z; - } -} -function ROTL(x, n) { - return x << n | x >>> 32 - n; -} -function sha1(bytes) { - const K = [0x5a827999, 0x6ed9eba1, 0x8f1bbcdc, 0xca62c1d6]; - const H = [0x67452301, 0xefcdab89, 0x98badcfe, 0x10325476, 0xc3d2e1f0]; - if (typeof bytes === 'string') { - const msg = unescape(encodeURIComponent(bytes)); // UTF8 escape - - bytes = []; - for (let i = 0; i < msg.length; ++i) { - bytes.push(msg.charCodeAt(i)); - } - } else if (!Array.isArray(bytes)) { - // Convert Array-like to Array - bytes = Array.prototype.slice.call(bytes); - } - bytes.push(0x80); - const l = bytes.length / 4 + 2; - const N = Math.ceil(l / 16); - const M = new Array(N); - for (let i = 0; i < N; ++i) { - const arr = new Uint32Array(16); - for (let j = 0; j < 16; ++j) { - arr[j] = bytes[i * 64 + j * 4] << 24 | bytes[i * 64 + j * 4 + 1] << 16 | bytes[i * 64 + j * 4 + 2] << 8 | bytes[i * 64 + j * 4 + 3]; - } - M[i] = arr; - } - M[N - 1][14] = (bytes.length - 1) * 8 / Math.pow(2, 32); - M[N - 1][14] = Math.floor(M[N - 1][14]); - M[N - 1][15] = (bytes.length - 1) * 8 & 0xffffffff; - for (let i = 0; i < N; ++i) { - const W = new Uint32Array(80); - for (let t = 0; t < 16; ++t) { - W[t] = M[i][t]; - } - for (let t = 16; t < 80; ++t) { - W[t] = ROTL(W[t - 3] ^ W[t - 8] ^ W[t - 14] ^ W[t - 16], 1); - } - let a = H[0]; - let b = H[1]; - let c = H[2]; - let d = H[3]; - let e = H[4]; - for (let t = 0; t < 80; ++t) { - const s = Math.floor(t / 20); - const T = ROTL(a, 5) + f(s, b, c, d) + e + K[s] + W[t] >>> 0; - e = d; - d = c; - c = ROTL(b, 30) >>> 0; - b = a; - a = T; - } - H[0] = H[0] + a >>> 0; - H[1] = H[1] + b >>> 0; - H[2] = H[2] + c >>> 0; - H[3] = H[3] + d >>> 0; - H[4] = H[4] + e >>> 0; - } - return [H[0] >> 24 & 0xff, H[0] >> 16 & 0xff, H[0] >> 8 & 0xff, H[0] & 0xff, H[1] >> 24 & 0xff, H[1] >> 16 & 0xff, H[1] >> 8 & 0xff, H[1] & 0xff, H[2] >> 24 & 0xff, H[2] >> 16 & 0xff, H[2] >> 8 & 0xff, H[2] & 0xff, H[3] >> 24 & 0xff, H[3] >> 16 & 0xff, H[3] >> 8 & 0xff, H[3] & 0xff, H[4] >> 24 & 0xff, H[4] >> 16 & 0xff, H[4] >> 8 & 0xff, H[4] & 0xff]; -} -var _default = exports.default = sha1; \ No newline at end of file diff --git a/node_modules/uuid/dist/sha1.js b/node_modules/uuid/dist/sha1.js deleted file mode 100644 index 3b9ded990e..0000000000 --- a/node_modules/uuid/dist/sha1.js +++ /dev/null @@ -1,17 +0,0 @@ -"use strict"; - -Object.defineProperty(exports, "__esModule", { - value: true -}); -exports.default = void 0; -var _nodeCrypto = _interopRequireDefault(require("node:crypto")); -function _interopRequireDefault(e) { return e && e.__esModule ? e : { default: e }; } -function sha1(bytes) { - if (Array.isArray(bytes)) { - bytes = Buffer.from(bytes); - } else if (typeof bytes === 'string') { - bytes = Buffer.from(bytes, 'utf8'); - } - return _nodeCrypto.default.createHash('sha1').update(bytes).digest(); -} -var _default = exports.default = sha1; \ No newline at end of file diff --git a/node_modules/uuid/dist/stringify.js b/node_modules/uuid/dist/stringify.js deleted file mode 100644 index 2522dc978b..0000000000 --- a/node_modules/uuid/dist/stringify.js +++ /dev/null @@ -1,38 +0,0 @@ -"use strict"; - -Object.defineProperty(exports, "__esModule", { - value: true -}); -exports.default = void 0; -exports.unsafeStringify = unsafeStringify; -var _validate = _interopRequireDefault(require("./validate.js")); -function _interopRequireDefault(e) { return e && e.__esModule ? e : { default: e }; } -/** - * Convert array of 16 byte values to UUID string format of the form: - * XXXXXXXX-XXXX-XXXX-XXXX-XXXXXXXXXXXX - */ -const byteToHex = []; -for (let i = 0; i < 256; ++i) { - byteToHex.push((i + 0x100).toString(16).slice(1)); -} -function unsafeStringify(arr, offset = 0) { - // Note: Be careful editing this code! It's been tuned for performance - // and works in ways you may not expect. See https://github.com/uuidjs/uuid/pull/434 - // - // Note to future-self: No, you can't remove the `toLowerCase()` call. - // REF: https://github.com/uuidjs/uuid/pull/677#issuecomment-1757351351 - return (byteToHex[arr[offset + 0]] + byteToHex[arr[offset + 1]] + byteToHex[arr[offset + 2]] + byteToHex[arr[offset + 3]] + '-' + byteToHex[arr[offset + 4]] + byteToHex[arr[offset + 5]] + '-' + byteToHex[arr[offset + 6]] + byteToHex[arr[offset + 7]] + '-' + byteToHex[arr[offset + 8]] + byteToHex[arr[offset + 9]] + '-' + byteToHex[arr[offset + 10]] + byteToHex[arr[offset + 11]] + byteToHex[arr[offset + 12]] + byteToHex[arr[offset + 13]] + byteToHex[arr[offset + 14]] + byteToHex[arr[offset + 15]]).toLowerCase(); -} -function stringify(arr, offset = 0) { - const uuid = unsafeStringify(arr, offset); - // Consistency check for valid UUID. If this throws, it's likely due to one - // of the following: - // - One or more input array values don't map to a hex octet (leading to - // "undefined" in the uuid) - // - Invalid input values for the RFC `version` or `variant` fields - if (!(0, _validate.default)(uuid)) { - throw TypeError('Stringified UUID is invalid'); - } - return uuid; -} -var _default = exports.default = stringify; \ No newline at end of file diff --git a/node_modules/uuid/dist/uuid-bin.js b/node_modules/uuid/dist/uuid-bin.js deleted file mode 100644 index d039dfe019..0000000000 --- a/node_modules/uuid/dist/uuid-bin.js +++ /dev/null @@ -1,75 +0,0 @@ -"use strict"; - -var _assert = _interopRequireDefault(require("assert")); -var _v = _interopRequireDefault(require("./v1.js")); -var _v2 = _interopRequireDefault(require("./v3.js")); -var _v3 = _interopRequireDefault(require("./v4.js")); -var _v4 = _interopRequireDefault(require("./v5.js")); -var _v5 = _interopRequireDefault(require("./v6.js")); -var _v6 = _interopRequireDefault(require("./v7.js")); -function _interopRequireDefault(e) { return e && e.__esModule ? e : { default: e }; } -function usage() { - console.log('Usage:'); - console.log(' uuid'); - console.log(' uuid v1'); - console.log(' uuid v3 '); - console.log(' uuid v4'); - console.log(' uuid v5 '); - console.log(' uuid v6'); - console.log(' uuid v7'); - console.log(' uuid --help'); - console.log('\nNote: may be "URL" or "DNS" to use the corresponding UUIDs defined by RFC9562'); -} -const args = process.argv.slice(2); -if (args.indexOf('--help') >= 0) { - usage(); - process.exit(0); -} -const version = args.shift() || 'v4'; -switch (version) { - case 'v1': - console.log((0, _v.default)()); - break; - case 'v3': - { - const name = args.shift(); - let namespace = args.shift(); - (0, _assert.default)(name != null, 'v3 name not specified'); - (0, _assert.default)(namespace != null, 'v3 namespace not specified'); - if (namespace === 'URL') { - namespace = _v2.default.URL; - } - if (namespace === 'DNS') { - namespace = _v2.default.DNS; - } - console.log((0, _v2.default)(name, namespace)); - break; - } - case 'v4': - console.log((0, _v3.default)()); - break; - case 'v5': - { - const name = args.shift(); - let namespace = args.shift(); - (0, _assert.default)(name != null, 'v5 name not specified'); - (0, _assert.default)(namespace != null, 'v5 namespace not specified'); - if (namespace === 'URL') { - namespace = _v4.default.URL; - } - if (namespace === 'DNS') { - namespace = _v4.default.DNS; - } - console.log((0, _v4.default)(name, namespace)); - break; - } - case 'v6': - console.log((0, _v5.default)()); - break; - case 'v7': - console.log((0, _v6.default)()); - break; - default: - usage(); - process.exit(1); -} \ No newline at end of file diff --git a/node_modules/uuid/dist/v1.js b/node_modules/uuid/dist/v1.js deleted file mode 100644 index c6b9344ade..0000000000 --- a/node_modules/uuid/dist/v1.js +++ /dev/null @@ -1,131 +0,0 @@ -"use strict"; - -Object.defineProperty(exports, "__esModule", { - value: true -}); -exports.default = void 0; -var _rng = _interopRequireDefault(require("./rng.js")); -var _stringify = require("./stringify.js"); -function _interopRequireDefault(e) { return e && e.__esModule ? e : { default: e }; } -// **`v1()` - Generate time-based UUID** -// -// Inspired by https://github.com/LiosK/UUID.js -// and http://docs.python.org/library/uuid.html - -let _nodeId; -let _clockseq; - -// Previous uuid creation time -let _lastMSecs = 0; -let _lastNSecs = 0; - -// See https://github.com/uuidjs/uuid for API details -function v1(options, buf, offset) { - let i = buf && offset || 0; - const b = buf || new Array(16); - options = options || {}; - let node = options.node; - let clockseq = options.clockseq; - - // v1 only: Use cached `node` and `clockseq` values - if (!options._v6) { - if (!node) { - node = _nodeId; - } - if (clockseq == null) { - clockseq = _clockseq; - } - } - - // Handle cases where we need entropy. We do this lazily to minimize issues - // related to insufficient system entropy. See #189 - if (node == null || clockseq == null) { - const seedBytes = options.random || (options.rng || _rng.default)(); - - // Randomize node - if (node == null) { - node = [seedBytes[0], seedBytes[1], seedBytes[2], seedBytes[3], seedBytes[4], seedBytes[5]]; - - // v1 only: cache node value for reuse - if (!_nodeId && !options._v6) { - // per RFC4122 4.5: Set MAC multicast bit (v1 only) - node[0] |= 0x01; // Set multicast bit - - _nodeId = node; - } - } - - // Randomize clockseq - if (clockseq == null) { - // Per 4.2.2, randomize (14 bit) clockseq - clockseq = (seedBytes[6] << 8 | seedBytes[7]) & 0x3fff; - if (_clockseq === undefined && !options._v6) { - _clockseq = clockseq; - } - } - } - - // v1 & v6 timestamps are 100 nano-second units since the Gregorian epoch, - // (1582-10-15 00:00). JSNumbers aren't precise enough for this, so time is - // handled internally as 'msecs' (integer milliseconds) and 'nsecs' - // (100-nanoseconds offset from msecs) since unix epoch, 1970-01-01 00:00. - let msecs = options.msecs !== undefined ? options.msecs : Date.now(); - - // Per 4.2.1.2, use count of uuid's generated during the current clock - // cycle to simulate higher resolution clock - let nsecs = options.nsecs !== undefined ? options.nsecs : _lastNSecs + 1; - - // Time since last uuid creation (in msecs) - const dt = msecs - _lastMSecs + (nsecs - _lastNSecs) / 10000; - - // Per 4.2.1.2, Bump clockseq on clock regression - if (dt < 0 && options.clockseq === undefined) { - clockseq = clockseq + 1 & 0x3fff; - } - - // Reset nsecs if clock regresses (new clockseq) or we've moved onto a new - // time interval - if ((dt < 0 || msecs > _lastMSecs) && options.nsecs === undefined) { - nsecs = 0; - } - - // Per 4.2.1.2 Throw error if too many uuids are requested - if (nsecs >= 10000) { - throw new Error("uuid.v1(): Can't create more than 10M uuids/sec"); - } - _lastMSecs = msecs; - _lastNSecs = nsecs; - _clockseq = clockseq; - - // Per 4.1.4 - Convert from unix epoch to Gregorian epoch - msecs += 12219292800000; - - // `time_low` - const tl = ((msecs & 0xfffffff) * 10000 + nsecs) % 0x100000000; - b[i++] = tl >>> 24 & 0xff; - b[i++] = tl >>> 16 & 0xff; - b[i++] = tl >>> 8 & 0xff; - b[i++] = tl & 0xff; - - // `time_mid` - const tmh = msecs / 0x100000000 * 10000 & 0xfffffff; - b[i++] = tmh >>> 8 & 0xff; - b[i++] = tmh & 0xff; - - // `time_high_and_version` - b[i++] = tmh >>> 24 & 0xf | 0x10; // include version - b[i++] = tmh >>> 16 & 0xff; - - // `clock_seq_hi_and_reserved` (Per 4.2.2 - include variant) - b[i++] = clockseq >>> 8 | 0x80; - - // `clock_seq_low` - b[i++] = clockseq & 0xff; - - // `node` - for (let n = 0; n < 6; ++n) { - b[i + n] = node[n]; - } - return buf || (0, _stringify.unsafeStringify)(b); -} -var _default = exports.default = v1; \ No newline at end of file diff --git a/node_modules/uuid/dist/v1ToV6.js b/node_modules/uuid/dist/v1ToV6.js deleted file mode 100644 index ce56373479..0000000000 --- a/node_modules/uuid/dist/v1ToV6.js +++ /dev/null @@ -1,26 +0,0 @@ -"use strict"; - -Object.defineProperty(exports, "__esModule", { - value: true -}); -exports.default = v1ToV6; -var _parse = _interopRequireDefault(require("./parse.js")); -var _stringify = require("./stringify.js"); -function _interopRequireDefault(e) { return e && e.__esModule ? e : { default: e }; } -/** - * Convert a v1 UUID to a v6 UUID - * - * @param {string|Uint8Array} uuid - The v1 UUID to convert to v6 - * @returns {string|Uint8Array} The v6 UUID as the same type as the `uuid` arg - * (string or Uint8Array) - */ -function v1ToV6(uuid) { - const v1Bytes = typeof uuid === 'string' ? (0, _parse.default)(uuid) : uuid; - const v6Bytes = _v1ToV6(v1Bytes); - return typeof uuid === 'string' ? (0, _stringify.unsafeStringify)(v6Bytes) : v6Bytes; -} - -// Do the field transformation needed for v1 -> v6 -function _v1ToV6(v1Bytes, randomize = false) { - return Uint8Array.of((v1Bytes[6] & 0x0f) << 4 | v1Bytes[7] >> 4 & 0x0f, (v1Bytes[7] & 0x0f) << 4 | (v1Bytes[4] & 0xf0) >> 4, (v1Bytes[4] & 0x0f) << 4 | (v1Bytes[5] & 0xf0) >> 4, (v1Bytes[5] & 0x0f) << 4 | (v1Bytes[0] & 0xf0) >> 4, (v1Bytes[0] & 0x0f) << 4 | (v1Bytes[1] & 0xf0) >> 4, (v1Bytes[1] & 0x0f) << 4 | (v1Bytes[2] & 0xf0) >> 4, 0x60 | v1Bytes[2] & 0x0f, v1Bytes[3], v1Bytes[8], v1Bytes[9], v1Bytes[10], v1Bytes[11], v1Bytes[12], v1Bytes[13], v1Bytes[14], v1Bytes[15]); -} \ No newline at end of file diff --git a/node_modules/uuid/dist/v3.js b/node_modules/uuid/dist/v3.js deleted file mode 100644 index a3eed7e567..0000000000 --- a/node_modules/uuid/dist/v3.js +++ /dev/null @@ -1,11 +0,0 @@ -"use strict"; - -Object.defineProperty(exports, "__esModule", { - value: true -}); -exports.default = void 0; -var _v = _interopRequireDefault(require("./v35.js")); -var _md = _interopRequireDefault(require("./md5.js")); -function _interopRequireDefault(e) { return e && e.__esModule ? e : { default: e }; } -const v3 = (0, _v.default)('v3', 0x30, _md.default); -var _default = exports.default = v3; \ No newline at end of file diff --git a/node_modules/uuid/dist/v35.js b/node_modules/uuid/dist/v35.js deleted file mode 100644 index f2e35ae228..0000000000 --- a/node_modules/uuid/dist/v35.js +++ /dev/null @@ -1,63 +0,0 @@ -"use strict"; - -Object.defineProperty(exports, "__esModule", { - value: true -}); -exports.URL = exports.DNS = void 0; -exports.default = v35; -var _stringify = require("./stringify.js"); -var _parse = _interopRequireDefault(require("./parse.js")); -function _interopRequireDefault(e) { return e && e.__esModule ? e : { default: e }; } -function stringToBytes(str) { - str = unescape(encodeURIComponent(str)); // UTF8 escape - - const bytes = []; - for (let i = 0; i < str.length; ++i) { - bytes.push(str.charCodeAt(i)); - } - return bytes; -} -const DNS = exports.DNS = '6ba7b810-9dad-11d1-80b4-00c04fd430c8'; -const URL = exports.URL = '6ba7b811-9dad-11d1-80b4-00c04fd430c8'; -function v35(name, version, hashfunc) { - function generateUUID(value, namespace, buf, offset) { - var _namespace; - if (typeof value === 'string') { - value = stringToBytes(value); - } - if (typeof namespace === 'string') { - namespace = (0, _parse.default)(namespace); - } - if (((_namespace = namespace) === null || _namespace === void 0 ? void 0 : _namespace.length) !== 16) { - throw TypeError('Namespace must be array-like (16 iterable integer values, 0-255)'); - } - - // Compute hash of namespace and value, Per 4.3 - // Future: Use spread syntax when supported on all platforms, e.g. `bytes = - // hashfunc([...namespace, ... value])` - let bytes = new Uint8Array(16 + value.length); - bytes.set(namespace); - bytes.set(value, namespace.length); - bytes = hashfunc(bytes); - bytes[6] = bytes[6] & 0x0f | version; - bytes[8] = bytes[8] & 0x3f | 0x80; - if (buf) { - offset = offset || 0; - for (let i = 0; i < 16; ++i) { - buf[offset + i] = bytes[i]; - } - return buf; - } - return (0, _stringify.unsafeStringify)(bytes); - } - - // Function#name is not settable on some platforms (#270) - try { - generateUUID.name = name; - } catch (err) {} - - // For CommonJS default export support - generateUUID.DNS = DNS; - generateUUID.URL = URL; - return generateUUID; -} \ No newline at end of file diff --git a/node_modules/uuid/dist/v4.js b/node_modules/uuid/dist/v4.js deleted file mode 100644 index 6f2744b898..0000000000 --- a/node_modules/uuid/dist/v4.js +++ /dev/null @@ -1,32 +0,0 @@ -"use strict"; - -Object.defineProperty(exports, "__esModule", { - value: true -}); -exports.default = void 0; -var _native = _interopRequireDefault(require("./native.js")); -var _rng = _interopRequireDefault(require("./rng.js")); -var _stringify = require("./stringify.js"); -function _interopRequireDefault(e) { return e && e.__esModule ? e : { default: e }; } -function v4(options, buf, offset) { - if (_native.default.randomUUID && !buf && !options) { - return _native.default.randomUUID(); - } - options = options || {}; - const rnds = options.random || (options.rng || _rng.default)(); - - // Per 4.4, set bits for version and `clock_seq_hi_and_reserved` - rnds[6] = rnds[6] & 0x0f | 0x40; - rnds[8] = rnds[8] & 0x3f | 0x80; - - // Copy bytes to buffer, if provided - if (buf) { - offset = offset || 0; - for (let i = 0; i < 16; ++i) { - buf[offset + i] = rnds[i]; - } - return buf; - } - return (0, _stringify.unsafeStringify)(rnds); -} -var _default = exports.default = v4; \ No newline at end of file diff --git a/node_modules/uuid/dist/v5.js b/node_modules/uuid/dist/v5.js deleted file mode 100644 index 63063bb27b..0000000000 --- a/node_modules/uuid/dist/v5.js +++ /dev/null @@ -1,11 +0,0 @@ -"use strict"; - -Object.defineProperty(exports, "__esModule", { - value: true -}); -exports.default = void 0; -var _v = _interopRequireDefault(require("./v35.js")); -var _sha = _interopRequireDefault(require("./sha1.js")); -function _interopRequireDefault(e) { return e && e.__esModule ? e : { default: e }; } -const v5 = (0, _v.default)('v5', 0x50, _sha.default); -var _default = exports.default = v5; \ No newline at end of file diff --git a/node_modules/uuid/dist/v6.js b/node_modules/uuid/dist/v6.js deleted file mode 100644 index 627c6a7bbe..0000000000 --- a/node_modules/uuid/dist/v6.js +++ /dev/null @@ -1,38 +0,0 @@ -"use strict"; - -Object.defineProperty(exports, "__esModule", { - value: true -}); -exports.default = v6; -var _stringify = require("./stringify.js"); -var _v = _interopRequireDefault(require("./v1.js")); -var _v1ToV = _interopRequireDefault(require("./v1ToV6.js")); -function _interopRequireDefault(e) { return e && e.__esModule ? e : { default: e }; } -/** - * - * @param {object} options - * @param {Uint8Array=} buf - * @param {number=} offset - * @returns - */ -function v6(options = {}, buf, offset = 0) { - // v6 is v1 with different field layout, so we start with a v1 UUID, albeit - // with slightly different behavior around how the clock_seq and node fields - // are randomized, which is why we call v1 with _v6: true. - let bytes = (0, _v.default)({ - ...options, - _v6: true - }, new Uint8Array(16)); - - // Reorder the fields to v6 layout. - bytes = (0, _v1ToV.default)(bytes); - - // Return as a byte array if requested - if (buf) { - for (let i = 0; i < 16; i++) { - buf[offset + i] = bytes[i]; - } - return buf; - } - return (0, _stringify.unsafeStringify)(bytes); -} \ No newline at end of file diff --git a/node_modules/uuid/dist/v6ToV1.js b/node_modules/uuid/dist/v6ToV1.js deleted file mode 100644 index a01986100c..0000000000 --- a/node_modules/uuid/dist/v6ToV1.js +++ /dev/null @@ -1,26 +0,0 @@ -"use strict"; - -Object.defineProperty(exports, "__esModule", { - value: true -}); -exports.default = v6ToV1; -var _parse = _interopRequireDefault(require("./parse.js")); -var _stringify = require("./stringify.js"); -function _interopRequireDefault(e) { return e && e.__esModule ? e : { default: e }; } -/** - * Convert a v6 UUID to a v1 UUID - * - * @param {string|Uint8Array} uuid - The v6 UUID to convert to v6 - * @returns {string|Uint8Array} The v1 UUID as the same type as the `uuid` arg - * (string or Uint8Array) - */ -function v6ToV1(uuid) { - const v6Bytes = typeof uuid === 'string' ? (0, _parse.default)(uuid) : uuid; - const v1Bytes = _v6ToV1(v6Bytes); - return typeof uuid === 'string' ? (0, _stringify.unsafeStringify)(v1Bytes) : v1Bytes; -} - -// Do the field transformation needed for v6 -> v1 -function _v6ToV1(v6Bytes) { - return Uint8Array.of((v6Bytes[3] & 0x0f) << 4 | v6Bytes[4] >> 4 & 0x0f, (v6Bytes[4] & 0x0f) << 4 | (v6Bytes[5] & 0xf0) >> 4, (v6Bytes[5] & 0x0f) << 4 | v6Bytes[6] & 0x0f, v6Bytes[7], (v6Bytes[1] & 0x0f) << 4 | (v6Bytes[2] & 0xf0) >> 4, (v6Bytes[2] & 0x0f) << 4 | (v6Bytes[3] & 0xf0) >> 4, 0x10 | (v6Bytes[0] & 0xf0) >> 4, (v6Bytes[0] & 0x0f) << 4 | (v6Bytes[1] & 0xf0) >> 4, v6Bytes[8], v6Bytes[9], v6Bytes[10], v6Bytes[11], v6Bytes[12], v6Bytes[13], v6Bytes[14], v6Bytes[15]); -} \ No newline at end of file diff --git a/node_modules/uuid/dist/v7.js b/node_modules/uuid/dist/v7.js deleted file mode 100644 index 85831e12df..0000000000 --- a/node_modules/uuid/dist/v7.js +++ /dev/null @@ -1,152 +0,0 @@ -"use strict"; - -Object.defineProperty(exports, "__esModule", { - value: true -}); -exports.default = void 0; -var _rng = _interopRequireDefault(require("./rng.js")); -var _stringify = require("./stringify.js"); -function _interopRequireDefault(e) { return e && e.__esModule ? e : { default: e }; } -/** - * UUID V7 - Unix Epoch time-based UUID - * - * The IETF has published RFC9562, introducing 3 new UUID versions (6,7,8). This - * implementation of V7 is based on the accepted, though not yet approved, - * revisions. - * - * RFC 9562:https://www.rfc-editor.org/rfc/rfc9562.html Universally Unique - * IDentifiers (UUIDs) - - * - * Sample V7 value: - * https://www.rfc-editor.org/rfc/rfc9562.html#name-example-of-a-uuidv7-value - * - * Monotonic Bit Layout: RFC rfc9562.6.2 Method 1, Dedicated Counter Bits ref: - * https://www.rfc-editor.org/rfc/rfc9562.html#section-6.2-5.1 - * - * 0 1 2 3 0 1 2 3 4 5 6 - * 7 8 9 0 1 2 3 4 5 6 7 8 9 0 1 2 3 4 5 6 7 8 9 0 1 - * +-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+ - * | unix_ts_ms | - * +-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+ - * | unix_ts_ms | ver | seq_hi | - * +-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+ - * |var| seq_low | rand | - * +-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+ - * | rand | - * +-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+ - * - * seq is a 31 bit serialized counter; comprised of 12 bit seq_hi and 19 bit - * seq_low, and randomly initialized upon timestamp change. 31 bit counter size - * was selected as any bitwise operations in node are done as _signed_ 32 bit - * ints. we exclude the sign bit. - */ - -let _seqLow = null; -let _seqHigh = null; -let _msecs = 0; -function v7(options, buf, offset) { - options = options || {}; - - // initialize buffer and pointer - let i = buf && offset || 0; - const b = buf || new Uint8Array(16); - - // rnds is Uint8Array(16) filled with random bytes - const rnds = options.random || (options.rng || _rng.default)(); - - // milliseconds since unix epoch, 1970-01-01 00:00 - const msecs = options.msecs !== undefined ? options.msecs : Date.now(); - - // seq is user provided 31 bit counter - let seq = options.seq !== undefined ? options.seq : null; - - // initialize local seq high/low parts - let seqHigh = _seqHigh; - let seqLow = _seqLow; - - // check if clock has advanced and user has not provided msecs - if (msecs > _msecs && options.msecs === undefined) { - _msecs = msecs; - - // unless user provided seq, reset seq parts - if (seq !== null) { - seqHigh = null; - seqLow = null; - } - } - - // if we have a user provided seq - if (seq !== null) { - // trim provided seq to 31 bits of value, avoiding overflow - if (seq > 0x7fffffff) { - seq = 0x7fffffff; - } - - // split provided seq into high/low parts - seqHigh = seq >>> 19 & 0xfff; - seqLow = seq & 0x7ffff; - } - - // randomly initialize seq - if (seqHigh === null || seqLow === null) { - seqHigh = rnds[6] & 0x7f; - seqHigh = seqHigh << 8 | rnds[7]; - seqLow = rnds[8] & 0x3f; // pad for var - seqLow = seqLow << 8 | rnds[9]; - seqLow = seqLow << 5 | rnds[10] >>> 3; - } - - // increment seq if within msecs window - if (msecs + 10000 > _msecs && seq === null) { - if (++seqLow > 0x7ffff) { - seqLow = 0; - if (++seqHigh > 0xfff) { - seqHigh = 0; - - // increment internal _msecs. this allows us to continue incrementing - // while staying monotonic. Note, once we hit 10k milliseconds beyond system - // clock, we will reset breaking monotonicity (after (2^31)*10000 generations) - _msecs++; - } - } - } else { - // resetting; we have advanced more than - // 10k milliseconds beyond system clock - _msecs = msecs; - } - _seqHigh = seqHigh; - _seqLow = seqLow; - - // [bytes 0-5] 48 bits of local timestamp - b[i++] = _msecs / 0x10000000000 & 0xff; - b[i++] = _msecs / 0x100000000 & 0xff; - b[i++] = _msecs / 0x1000000 & 0xff; - b[i++] = _msecs / 0x10000 & 0xff; - b[i++] = _msecs / 0x100 & 0xff; - b[i++] = _msecs & 0xff; - - // [byte 6] - set 4 bits of version (7) with first 4 bits seq_hi - b[i++] = seqHigh >>> 4 & 0x0f | 0x70; - - // [byte 7] remaining 8 bits of seq_hi - b[i++] = seqHigh & 0xff; - - // [byte 8] - variant (2 bits), first 6 bits seq_low - b[i++] = seqLow >>> 13 & 0x3f | 0x80; - - // [byte 9] 8 bits seq_low - b[i++] = seqLow >>> 5 & 0xff; - - // [byte 10] remaining 5 bits seq_low, 3 bits random - b[i++] = seqLow << 3 & 0xff | rnds[10] & 0x07; - - // [bytes 11-15] always random - b[i++] = rnds[11]; - b[i++] = rnds[12]; - b[i++] = rnds[13]; - b[i++] = rnds[14]; - b[i++] = rnds[15]; - return buf || (0, _stringify.unsafeStringify)(b); -} -var _default = exports.default = v7; \ No newline at end of file diff --git a/node_modules/uuid/dist/validate.js b/node_modules/uuid/dist/validate.js deleted file mode 100644 index d47181aad7..0000000000 --- a/node_modules/uuid/dist/validate.js +++ /dev/null @@ -1,12 +0,0 @@ -"use strict"; - -Object.defineProperty(exports, "__esModule", { - value: true -}); -exports.default = void 0; -var _regex = _interopRequireDefault(require("./regex.js")); -function _interopRequireDefault(e) { return e && e.__esModule ? e : { default: e }; } -function validate(uuid) { - return typeof uuid === 'string' && _regex.default.test(uuid); -} -var _default = exports.default = validate; \ No newline at end of file diff --git a/node_modules/uuid/dist/version.js b/node_modules/uuid/dist/version.js deleted file mode 100644 index 0c6bbdd5d0..0000000000 --- a/node_modules/uuid/dist/version.js +++ /dev/null @@ -1,15 +0,0 @@ -"use strict"; - -Object.defineProperty(exports, "__esModule", { - value: true -}); -exports.default = void 0; -var _validate = _interopRequireDefault(require("./validate.js")); -function _interopRequireDefault(e) { return e && e.__esModule ? e : { default: e }; } -function version(uuid) { - if (!(0, _validate.default)(uuid)) { - throw TypeError('Invalid UUID'); - } - return parseInt(uuid.slice(14, 15), 16); -} -var _default = exports.default = version; \ No newline at end of file diff --git a/node_modules/uuid/package.json b/node_modules/uuid/package.json index dea12c6e97..12ea33f052 100644 --- a/node_modules/uuid/package.json +++ b/node_modules/uuid/package.json @@ -1,7 +1,8 @@ { "name": "uuid", - "version": "10.0.0", + "version": "11.0.1", "description": "RFC9562 UUIDs", + "type": "module", "funding": [ "https://github.com/sponsors/broofa", "https://github.com/sponsors/ctavan" @@ -19,32 +20,29 @@ ], "license": "MIT", "bin": { - "uuid": "dist/bin/uuid" + "uuid": "./dist/esm/bin/uuid" }, "sideEffects": false, - "main": "./dist/index.js", + "main": "./dist/cjs/index.js", "exports": { ".": { "node": { - "module": "./dist/esm-node/index.js", - "require": "./dist/index.js", + "module": "./dist/esm/index.js", + "require": "./dist/cjs/index.js", "import": "./wrapper.mjs" }, "browser": { "import": "./dist/esm-browser/index.js", - "require": "./dist/commonjs-browser/index.js" + "require": "./dist/cjs-browser/index.js" }, "default": "./dist/esm-browser/index.js" }, "./package.json": "./package.json" }, - "module": "./dist/esm-node/index.js", + "module": "./dist/esm/index.js", "browser": { - "./dist/esm-node/index.js": "./dist/esm-browser/index.js", - "./dist/md5.js": "./dist/md5-browser.js", - "./dist/native.js": "./dist/native-browser.js", - "./dist/rng.js": "./dist/rng-browser.js", - "./dist/sha1.js": "./dist/sha1-browser.js" + "./dist/esm/index.js": "./dist/esm-browser/index.js", + "./dist/cjs/index.js": "./dist/cjs-browser/index.js" }, "files": [ "CHANGELOG.md", @@ -55,75 +53,71 @@ "wrapper.mjs" ], "devDependencies": { - "@babel/cli": "7.24.6", - "@babel/core": "7.24.6", - "@babel/eslint-parser": "7.24.6", - "@babel/plugin-syntax-import-attributes": "7.24.6", - "@babel/preset-env": "7.24.6", - "@commitlint/cli": "19.3.0", - "@commitlint/config-conventional": "19.2.2", - "@wdio/browserstack-service": "7.16.10", - "@wdio/cli": "7.16.10", - "@wdio/jasmine-framework": "7.16.6", - "@wdio/local-runner": "7.16.10", - "@wdio/spec-reporter": "7.16.9", - "@wdio/static-server-service": "7.16.6", - "bundlewatch": "0.3.3", - "eslint": "9.4.0", - "eslint-plugin-prettier": "5.1.3", - "globals": "15.3.0", - "husky": "9.0.11", + "@babel/eslint-parser": "7.25.9", + "@commitlint/cli": "19.5.0", + "@commitlint/config-conventional": "19.5.0", + "@eslint/js": "9.13.0", + "@types/eslint__js": "8.42.3", + "bundlewatch": "0.4.0", + "eslint": "9.13.0", + "eslint-config-prettier": "9.1.0", + "eslint-plugin-prettier": "5.2.1", + "globals": "15.11.0", + "husky": "9.1.6", "jest": "29.7.0", - "lint-staged": "15.2.5", - "neostandard": "0.5.1", + "lint-staged": "15.2.10", + "neostandard": "0.11.7", "npm-run-all": "4.1.5", "optional-dev-dependency": "2.0.1", - "prettier": "3.3.0", - "random-seed": "0.3.0", + "prettier": "3.3.3", + "release-please": "16.14.3", "runmd": "1.3.9", - "standard-version": "9.5.0" + "standard-version": "9.5.0", + "typescript": "5.6.3", + "typescript-eslint": "8.11.0" }, "optionalDevDependencies": { - "@wdio/browserstack-service": "7.16.10", - "@wdio/cli": "7.16.10", - "@wdio/jasmine-framework": "7.16.6", - "@wdio/local-runner": "7.16.10", - "@wdio/spec-reporter": "7.16.9", - "@wdio/static-server-service": "7.16.6" + "@wdio/browserstack-service": "9.2.1", + "@wdio/cli": "9.2.1", + "@wdio/jasmine-framework": "9.2.1", + "@wdio/local-runner": "9.2.1", + "@wdio/spec-reporter": "9.1.3", + "@wdio/static-server-service": "9.1.3" }, "scripts": { - "examples:browser:webpack:build": "cd examples/browser-webpack && npm install && npm run build", + "build": "./scripts/build.sh", + "build:watch": "tsc --watch -p tsconfig.esm.json", + "bundlewatch": "npm run pretest:browser && bundlewatch --config bundlewatch.config.json", + "docs:diff": "npm run docs && git diff --quiet README.md", + "docs": "npm run build && npx runmd --output=README.md README_js.md", + "eslint:check": "eslint src/ test/ examples/ *.[jt]s", + "eslint:fix": "eslint --fix src/ test/ examples/ *.[jt]s", "examples:browser:rollup:build": "cd examples/browser-rollup && npm install && npm run build", + "examples:browser:webpack:build": "cd examples/browser-webpack && npm install && npm run build", "examples:node:commonjs:test": "cd examples/node-commonjs && npm install && npm test", "examples:node:esmodules:test": "cd examples/node-esmodules && npm install && npm test", "examples:node:jest:test": "cd examples/node-jest && npm install && npm test", - "prepare": "husky install", "lint": "npm run eslint:check && npm run prettier:check", - "eslint:check": "eslint src/ test/ examples/ *.js", - "eslint:fix": "eslint --fix src/ test/ examples/ *.js", - "pretest": "npm run build", - "test": "BABEL_ENV=commonjsNode node --throw-deprecation node_modules/.bin/jest test/unit/", - "test:matching": "BABEL_ENV=commonjsNode node --throw-deprecation node_modules/.bin/jest test/unit/ -t", + "md": "runmd --watch --output=README.md README_js.md", + "prepack": "npm run build", + "prepare": "husky", + "pretest:benchmark": "npm run build", "pretest:browser": "optional-dev-dependency && npm run build && npm-run-all --parallel examples:browser:**", - "test:browser": "wdio run ./wdio.conf.js", "pretest:node": "npm run build", - "test:node": "npm-run-all --parallel examples:node:**", - "test:pack": "./scripts/testpack.sh", - "pretest:benchmark": "npm run build", - "test:benchmark": "cd examples/benchmark && HUSKY=0 npm install && npm test", + "pretest": "npm run build", "prettier:check": "prettier --check .", "prettier:fix": "prettier --write .", - "bundlewatch": "npm run pretest:browser && bundlewatch --config bundlewatch.config.json", - "md": "runmd --watch --output=README.md README_js.md", - "docs": "npm run build && npx runmd --output=README.md README_js.md", - "docs:diff": "npm run docs && git diff --quiet README.md", - "build": "./scripts/build.sh", - "prepack": "npm run build", - "release": "standard-version --no-verify" + "release": "standard-version --no-verify", + "test:benchmark": "cd examples/benchmark && HUSKY=0 npm install && npm test", + "test:browser": "wdio run ./wdio.conf.js", + "test:node": "npm-run-all --parallel examples:node:**", + "test:pack": "./scripts/testpack.sh", + "test:watch": "node --test --enable-source-maps --watch dist/esm/test/*.js", + "test": "node --test --enable-source-maps dist/esm/test/*.js" }, "repository": { "type": "git", - "url": "git+https://github.com/uuidjs/uuid.git" + "url": "https://github.com/uuidjs/uuid.git" }, "lint-staged": { "*": [ @@ -138,5 +132,5 @@ "postchangelog": "prettier --write CHANGELOG.md" } }, - "packageManager": "npm@10.8.1+sha256.b8807aebb9656758e2872fa6e7c564b506aa2faa9297439a478d471d2fe32483" + "packageManager": "npm@10.9.0" } diff --git a/node_modules/uuid/wrapper.mjs b/node_modules/uuid/wrapper.mjs index fba64f6ebf..9c51f45361 100644 --- a/node_modules/uuid/wrapper.mjs +++ b/node_modules/uuid/wrapper.mjs @@ -1,4 +1,4 @@ -import uuid from './dist/index.js'; +import * as uuid from './dist/esm/index.js'; export const v1 = uuid.v1; export const v1ToV6 = uuid.v1ToV6; export const v3 = uuid.v3; diff --git a/package-lock.json b/package-lock.json index f2cc68322b..2bc55a5c17 100644 --- a/package-lock.json +++ b/package-lock.json @@ -1,12 +1,12 @@ { "name": "codeql", - "version": "3.27.0", + "version": "3.27.1", "lockfileVersion": 3, "requires": true, "packages": { "": { "name": "codeql", - "version": "3.27.0", + "version": "3.27.1", "license": "MIT", "dependencies": { "@actions/artifact": "^2.1.9", @@ -15,6 +15,7 @@ "@actions/core": "^1.11.1", "@actions/exec": "^1.1.1", "@actions/github": "^5.1.1", + "@actions/glob": "^0.4.0", "@actions/io": "^1.1.3", "@actions/tool-cache": "^2.0.1", "@chrisgavin/safe-which": "^1.0.2", @@ -38,7 +39,7 @@ "node-forge": "^1.3.1", "path": "^0.12.7", "semver": "^7.6.3", - "uuid": "^10.0.0", + "uuid": "^11.0.1", "zlib": "^1.0.5" }, "devDependencies": { @@ -169,6 +170,15 @@ "uuid": "^3.3.3" } }, + "node_modules/@actions/cache/node_modules/@actions/glob": { + "version": "0.1.2", + "resolved": "https://registry.npmjs.org/@actions/glob/-/glob-0.1.2.tgz", + "integrity": "sha512-SclLR7Ia5sEqjkJTPs7Sd86maMDw43p769YxBOxvPvEWuPEhpAnBsQfENOpXjFYMmhCqd127bmf+YdvJqVqR4A==", + "dependencies": { + "@actions/core": "^1.2.6", + "minimatch": "^3.0.4" + } + }, "node_modules/@actions/cache/node_modules/semver": { "version": "6.3.1", "license": "ISC", @@ -210,10 +220,11 @@ } }, "node_modules/@actions/glob": { - "version": "0.1.2", - "license": "MIT", + "version": "0.4.0", + "resolved": "https://registry.npmjs.org/@actions/glob/-/glob-0.4.0.tgz", + "integrity": "sha512-+eKIGFhsFa4EBwaf/GMyzCdWrXWymGXfFmZU3FHQvYS8mPcHtTtZONbkcqqUMzw9mJ/pImEBFET1JNifhqGsAQ==", "dependencies": { - "@actions/core": "^1.2.6", + "@actions/core": "^1.9.1", "minimatch": "^3.0.4" } }, @@ -7331,14 +7342,15 @@ "license": "MIT" }, "node_modules/uuid": { - "version": "10.0.0", + "version": "11.0.1", + "resolved": "https://registry.npmjs.org/uuid/-/uuid-11.0.1.tgz", + "integrity": "sha512-wt9UB5EcLhnboy1UvA1mvGPXkIIrHSu+3FmUksARfdVw9tuPf3CH/CohxO0Su1ApoKAeT6BVzAJIvjTuQVSmuQ==", "funding": [ "https://github.com/sponsors/broofa", "https://github.com/sponsors/ctavan" ], - "license": "MIT", "bin": { - "uuid": "dist/bin/uuid" + "uuid": "dist/esm/bin/uuid" } }, "node_modules/webidl-conversions": { diff --git a/package.json b/package.json index c27add680f..1c2162475a 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "codeql", - "version": "3.27.0", + "version": "3.27.1", "private": true, "description": "CodeQL action", "scripts": { @@ -28,6 +28,7 @@ "@actions/core": "^1.11.1", "@actions/exec": "^1.1.1", "@actions/github": "^5.1.1", + "@actions/glob": "^0.4.0", "@actions/io": "^1.1.3", "@actions/tool-cache": "^2.0.1", "@chrisgavin/safe-which": "^1.0.2", @@ -51,7 +52,7 @@ "node-forge": "^1.3.1", "path": "^0.12.7", "semver": "^7.6.3", - "uuid": "^10.0.0", + "uuid": "^11.0.1", "zlib": "^1.0.5" }, "//": [ diff --git a/pr-checks/checks/multi-language-autodetect.yml b/pr-checks/checks/multi-language-autodetect.yml index e15e58195d..0990961bbc 100644 --- a/pr-checks/checks/multi-language-autodetect.yml +++ b/pr-checks/checks/multi-language-autodetect.yml @@ -1,5 +1,5 @@ name: "Multi-language repository" -description: "An end-to-end integration test of a multi-language repository using automatic language detection for MacOS" +description: "An end-to-end integration test of a multi-language repository using automatic language detection for macOS" operatingSystems: ["macos", "ubuntu"] steps: - uses: actions/setup-go@v5 @@ -67,7 +67,7 @@ steps: exit 1 fi - - name: Check language autodetect for Swift on MacOS + - name: Check language autodetect for Swift on macOS if: runner.os == 'macOS' shell: bash run: | diff --git a/pr-checks/checks/zstd-bundle-fallback.yml b/pr-checks/checks/zstd-bundle-fallback.yml deleted file mode 100644 index 2a43b9f503..0000000000 --- a/pr-checks/checks/zstd-bundle-fallback.yml +++ /dev/null @@ -1,76 +0,0 @@ -name: "Zstandard bundle fallback" -description: "Tests the fallback when downloading a Zstandard-compressed CodeQL Bundle fails" -versions: - - linked -operatingSystems: - - macos - - ubuntu -env: - CODEQL_ACTION_ZSTD_BUNDLE: true - CODEQL_ACTION_FORCE_ZSTD_FAILURE: true -steps: - - name: Remove CodeQL from toolcache - uses: actions/github-script@v7 - with: - script: | - const fs = require('fs'); - const path = require('path'); - const codeqlPath = path.join(process.env['RUNNER_TOOL_CACHE'], 'CodeQL'); - fs.rmdirSync(codeqlPath, { recursive: true }); - - id: init - uses: ./../action/init - with: - languages: javascript - tools: ${{ steps.prepare-test.outputs.tools-url }} - - uses: ./../action/analyze - with: - output: ${{ runner.temp }}/results - upload-database: false - - name: Upload SARIF - uses: actions/upload-artifact@v3 - with: - name: zstd-bundle.sarif - path: ${{ runner.temp }}/results/javascript.sarif - retention-days: 7 - - name: Check expected diagnostics - uses: actions/github-script@v7 - env: - SARIF_PATH: ${{ runner.temp }}/results/javascript.sarif - with: - script: | - const fs = require('fs'); - - const sarif = JSON.parse(fs.readFileSync(process.env['SARIF_PATH'], 'utf8')); - const run = sarif.runs[0]; - - const toolExecutionNotifications = run.invocations[0].toolExecutionNotifications; - const downloadTelemetryNotifications = toolExecutionNotifications.filter(n => - n.descriptor.id === 'codeql-action/bundle-download-telemetry' - ); - if (downloadTelemetryNotifications.length !== 1) { - core.setFailed( - 'Expected exactly one reporting descriptor in the ' + - `'runs[].invocations[].toolExecutionNotifications[]' SARIF property, but found ` + - `${downloadTelemetryNotifications.length}. All notification reporting descriptors: ` + - `${JSON.stringify(toolExecutionNotifications)}.` - ); - } - - const toolsUrl = downloadTelemetryNotifications[0].properties.attributes.toolsUrl; - console.log(`Found tools URL: ${toolsUrl}`); - - if (!toolsUrl.endsWith('.tar.gz')) { - core.setFailed( - `Expected the tools URL to be a .tar.gz file, but found '${toolsUrl}'.` - ); - } - - const zstdFailureReason = downloadTelemetryNotifications[0].properties.attributes.zstdFailureReason; - console.log(`Found zstd failure reason: ${zstdFailureReason}`); - - const expectedZstdFailureReason = 'Failing since CODEQL_ACTION_FORCE_ZSTD_FAILURE is true.'; - if (zstdFailureReason !== expectedZstdFailureReason) { - core.setFailed( - `Expected the zstd failure reason to be '${expectedZstdFailureReason}', but found '${zstdFailureReason}'.` - ); - } diff --git a/pr-checks/checks/zstd-bundle-streaming.yml b/pr-checks/checks/zstd-bundle-streaming.yml index 40937fa141..291f8d88bf 100644 --- a/pr-checks/checks/zstd-bundle-streaming.yml +++ b/pr-checks/checks/zstd-bundle-streaming.yml @@ -16,7 +16,9 @@ steps: const fs = require('fs'); const path = require('path'); const codeqlPath = path.join(process.env['RUNNER_TOOL_CACHE'], 'CodeQL'); - fs.rmdirSync(codeqlPath, { recursive: true }); + if (codeqlPath !== undefined) { + fs.rmdirSync(codeqlPath, { recursive: true }); + } - id: init uses: ./../action/init with: diff --git a/pr-checks/checks/zstd-bundle.yml b/pr-checks/checks/zstd-bundle.yml index a751b18bcb..9350c39f6f 100644 --- a/pr-checks/checks/zstd-bundle.yml +++ b/pr-checks/checks/zstd-bundle.yml @@ -16,7 +16,9 @@ steps: const fs = require('fs'); const path = require('path'); const codeqlPath = path.join(process.env['RUNNER_TOOL_CACHE'], 'CodeQL'); - fs.rmdirSync(codeqlPath, { recursive: true }); + if (codeqlPath !== undefined) { + fs.rmdirSync(codeqlPath, { recursive: true }); + } - id: init uses: ./../action/init with: diff --git a/pr-checks/sync.py b/pr-checks/sync.py index 2891268137..37b120b439 100755 --- a/pr-checks/sync.py +++ b/pr-checks/sync.py @@ -4,6 +4,7 @@ from ruamel.yaml.scalarstring import FoldedScalarString, SingleQuotedScalarString import pathlib import textwrap +import os # The default set of CodeQL Bundle versions to use for the PR checks. defaultTestVersions = [ @@ -98,7 +99,7 @@ def writeHeader(checkStream): steps = [ { - 'name': 'Setup Python on MacOS', + 'name': 'Setup Python on macOS', 'uses': 'actions/setup-python@v5', 'if': "runner.os == 'macOS' && matrix.version == 'stable-v2.14.6'", 'with': { @@ -153,7 +154,8 @@ def writeHeader(checkStream): checkJob['env']['CODEQL_ACTION_TEST_MODE'] = True checkName = file.stem - with open(this_dir.parent / ".github" / "workflows" / f"__{checkName}.yml", 'w') as output_stream: + raw_file = this_dir.parent / ".github" / "workflows" / f"__{checkName}.yml.raw" + with open(raw_file, 'w') as output_stream: writeHeader(output_stream) yaml.dump({ 'name': f"PR Check - {checkSpecification['name']}", @@ -175,3 +177,9 @@ def writeHeader(checkStream): checkName: checkJob } }, output_stream) + + with open(raw_file, 'r') as input_stream: + with open(this_dir.parent / ".github" / "workflows" / f"__{checkName}.yml", 'w') as output_stream: + content = input_stream.read() + output_stream.write("\n".join(list(map(lambda x:x.rstrip(), content.splitlines()))+[''])) + os.remove(raw_file) diff --git a/src/actions-util.test.ts b/src/actions-util.test.ts index 6caec4f306..fb1a1842de 100644 --- a/src/actions-util.test.ts +++ b/src/actions-util.test.ts @@ -324,3 +324,41 @@ test("determineBaseBranchHeadCommitOid other error", async (t) => { infoStub.restore(); }); + +test("decodeGitFilePath unquoted strings", async (t) => { + t.deepEqual(actionsUtil.decodeGitFilePath("foo"), "foo"); + t.deepEqual(actionsUtil.decodeGitFilePath("foo bar"), "foo bar"); + t.deepEqual(actionsUtil.decodeGitFilePath("foo\\\\bar"), "foo\\\\bar"); + t.deepEqual(actionsUtil.decodeGitFilePath('foo\\"bar'), 'foo\\"bar'); + t.deepEqual(actionsUtil.decodeGitFilePath("foo\\001bar"), "foo\\001bar"); + t.deepEqual(actionsUtil.decodeGitFilePath("foo\\abar"), "foo\\abar"); + t.deepEqual(actionsUtil.decodeGitFilePath("foo\\bbar"), "foo\\bbar"); + t.deepEqual(actionsUtil.decodeGitFilePath("foo\\fbar"), "foo\\fbar"); + t.deepEqual(actionsUtil.decodeGitFilePath("foo\\nbar"), "foo\\nbar"); + t.deepEqual(actionsUtil.decodeGitFilePath("foo\\rbar"), "foo\\rbar"); + t.deepEqual(actionsUtil.decodeGitFilePath("foo\\tbar"), "foo\\tbar"); + t.deepEqual(actionsUtil.decodeGitFilePath("foo\\vbar"), "foo\\vbar"); + t.deepEqual( + actionsUtil.decodeGitFilePath("\\a\\b\\f\\n\\r\\t\\v"), + "\\a\\b\\f\\n\\r\\t\\v", + ); +}); + +test("decodeGitFilePath quoted strings", async (t) => { + t.deepEqual(actionsUtil.decodeGitFilePath('"foo"'), "foo"); + t.deepEqual(actionsUtil.decodeGitFilePath('"foo bar"'), "foo bar"); + t.deepEqual(actionsUtil.decodeGitFilePath('"foo\\\\bar"'), "foo\\bar"); + t.deepEqual(actionsUtil.decodeGitFilePath('"foo\\"bar"'), 'foo"bar'); + t.deepEqual(actionsUtil.decodeGitFilePath('"foo\\001bar"'), "foo\x01bar"); + t.deepEqual(actionsUtil.decodeGitFilePath('"foo\\abar"'), "foo\x07bar"); + t.deepEqual(actionsUtil.decodeGitFilePath('"foo\\bbar"'), "foo\bbar"); + t.deepEqual(actionsUtil.decodeGitFilePath('"foo\\fbar"'), "foo\fbar"); + t.deepEqual(actionsUtil.decodeGitFilePath('"foo\\nbar"'), "foo\nbar"); + t.deepEqual(actionsUtil.decodeGitFilePath('"foo\\rbar"'), "foo\rbar"); + t.deepEqual(actionsUtil.decodeGitFilePath('"foo\\tbar"'), "foo\tbar"); + t.deepEqual(actionsUtil.decodeGitFilePath('"foo\\vbar"'), "foo\vbar"); + t.deepEqual( + actionsUtil.decodeGitFilePath('"\\a\\b\\f\\n\\r\\t\\v"'), + "\x07\b\f\n\r\t\v", + ); +}); diff --git a/src/actions-util.ts b/src/actions-util.ts index 8d4453428c..2cfba5f355 100644 --- a/src/actions-util.ts +++ b/src/actions-util.ts @@ -56,6 +56,7 @@ async function runGitCommand( ): Promise { let stdout = ""; let stderr = ""; + core.debug(`Running git command: git ${args.join(" ")}`); try { await new toolrunner.ToolRunner(await safeWhich.safeWhich("git"), args, { silent: true, @@ -161,6 +162,159 @@ export const determineBaseBranchHeadCommitOid = async function ( } }; +/** + * Deepen the git history of the given ref by one level. Errors are logged. + * + * This function uses the `checkout_path` to determine the repository path and + * works only when called from `analyze` or `upload-sarif`. + */ +export const deepenGitHistory = async function () { + try { + await runGitCommand( + getOptionalInput("checkout_path"), + ["fetch", "--no-tags", "--deepen=1"], + "Cannot deepen the shallow repository.", + ); + } catch { + // Errors are already logged by runGitCommand() + } +}; + +/** + * Fetch the given remote branch. Errors are logged. + * + * This function uses the `checkout_path` to determine the repository path and + * works only when called from `analyze` or `upload-sarif`. + */ +export const gitFetch = async function (branch: string, extraFlags: string[]) { + try { + await runGitCommand( + getOptionalInput("checkout_path"), + ["fetch", "--no-tags", ...extraFlags, "origin", `${branch}:${branch}`], + `Cannot fetch ${branch}.`, + ); + } catch { + // Errors are already logged by runGitCommand() + } +}; + +/** + * Compute the all merge bases between the given refs. Returns an empty array + * if no merge base is found, or if there is an error. + * + * This function uses the `checkout_path` to determine the repository path and + * works only when called from `analyze` or `upload-sarif`. + */ +export const getAllGitMergeBases = async function ( + refs: string[], +): Promise { + try { + const stdout = await runGitCommand( + getOptionalInput("checkout_path"), + ["merge-base", "--all", ...refs], + `Cannot get merge base of ${refs}.`, + ); + return stdout.trim().split("\n"); + } catch { + return []; + } +}; + +/** + * Compute the diff hunk headers between the two given refs. + * + * This function uses the `checkout_path` to determine the repository path and + * works only when called from `analyze` or `upload-sarif`. + * + * @returns an array of diff hunk headers (one element per line), or undefined + * if the action was not triggered by a pull request, or if the diff could not + * be determined. + */ +export const getGitDiffHunkHeaders = async function ( + fromRef: string, + toRef: string, +): Promise { + let stdout = ""; + try { + stdout = await runGitCommand( + getOptionalInput("checkout_path"), + [ + "-c", + "core.quotePath=false", + "diff", + "--no-renames", + "--irreversible-delete", + "-U0", + fromRef, + toRef, + ], + `Cannot get diff from ${fromRef} to ${toRef}.`, + ); + } catch { + return undefined; + } + + const headers: string[] = []; + for (const line of stdout.split("\n")) { + if ( + line.startsWith("--- ") || + line.startsWith("+++ ") || + line.startsWith("@@ ") + ) { + headers.push(line); + } + } + return headers; +}; + +/** + * Decode, if necessary, a file path produced by Git. See + * https://git-scm.com/docs/git-config#Documentation/git-config.txt-corequotePath + * for details on how Git encodes file paths with special characters. + * + * This function works only for Git output with `core.quotePath=false`. + */ +export const decodeGitFilePath = function (filePath: string): string { + if (filePath.startsWith('"') && filePath.endsWith('"')) { + filePath = filePath.substring(1, filePath.length - 1); + return filePath.replace( + /\\([abfnrtv\\"]|[0-7]{1,3})/g, + (_match, seq: string) => { + switch (seq[0]) { + case "a": + return "\x07"; + case "b": + return "\b"; + case "f": + return "\f"; + case "n": + return "\n"; + case "r": + return "\r"; + case "t": + return "\t"; + case "v": + return "\v"; + case "\\": + return "\\"; + case '"': + return '"'; + default: + // Both String.fromCharCode() and String.fromCodePoint() works only + // for constructing an entire character at once. If a Unicode + // character is encoded as a sequence of escaped bytes, calling these + // methods sequentially on the individual byte values would *not* + // produce the original multi-byte Unicode character. As a result, + // this implementation works only with the Git option core.quotePath + // set to false. + return String.fromCharCode(parseInt(seq, 8)); + } + }, + ); + } + return filePath; +}; + /** * Get the ref currently being analyzed. */ @@ -472,6 +626,11 @@ export function isSelfHostedRunner() { return process.env.RUNNER_ENVIRONMENT === "self-hosted"; } +/** Determines whether we are running in default setup. */ +export function isDefaultSetup(): boolean { + return getWorkflowEventName() === "dynamic"; +} + export function prettyPrintInvocation(cmd: string, args: string[]): string { return [cmd, ...args].map((x) => (x.includes(" ") ? `'${x}'` : x)).join(" "); } diff --git a/src/analyze-action.ts b/src/analyze-action.ts index 5c32084329..112e069a84 100644 --- a/src/analyze-action.ts +++ b/src/analyze-action.ts @@ -3,6 +3,7 @@ import path from "path"; import { performance } from "perf_hooks"; import * as core from "@actions/core"; +import * as github from "@actions/github"; import * as actionsUtil from "./actions-util"; import { @@ -12,13 +13,16 @@ import { runCleanup, runFinalize, runQueries, + setupDiffInformedQueryRun, warnIfGoInstalledAfterInit, } from "./analyze"; import { getApiDetails, getGitHubVersion } from "./api-client"; import { runAutobuild } from "./autobuild"; +import { getTotalCacheSize, shouldStoreCache } from "./caching-utils"; import { getCodeQL } from "./codeql"; import { Config, getConfig } from "./config-utils"; import { uploadDatabases } from "./database-upload"; +import { uploadDependencyCaches } from "./dependency-caching"; import { EnvVar } from "./environment"; import { Features } from "./feature-flags"; import { Language } from "./languages"; @@ -34,7 +38,6 @@ import { } from "./status-report"; import { cleanupTrapCaches, - getTotalCacheSize, TrapCacheCleanupStatusReport, uploadTrapCaches, } from "./trap-caching"; @@ -92,7 +95,7 @@ async function sendStatusReport( ...report, trap_cache_upload_duration_ms: Math.round(trapCacheUploadTime || 0), trap_cache_upload_size_bytes: Math.round( - await getTotalCacheSize(config.trapCaches, logger), + await getTotalCacheSize(Object.values(config.trapCaches), logger), ), }; await statusReport.sendStatusReport(trapCacheUploadStatusReport); @@ -260,6 +263,17 @@ async function run() { logger, ); + const pull_request = github.context.payload.pull_request; + const diffRangePackDir = + pull_request && + (await setupDiffInformedQueryRun( + pull_request.base.ref as string, + pull_request.head.ref as string, + codeql, + logger, + features, + )); + await warnIfGoInstalledAfterInit(config, logger); await runAutobuildIfLegacyGoWorkflow(config, logger); @@ -278,6 +292,7 @@ async function run() { memory, util.getAddSnippetsFlag(actionsUtil.getRequiredInput("add-snippets")), threads, + diffRangePackDir, actionsUtil.getOptionalInput("category"), config, logger, @@ -328,6 +343,11 @@ async function run() { logger, ); + // Store dependency cache(s) if dependency caching is enabled. + if (shouldStoreCache(config.dependencyCachingEnabled)) { + await uploadDependencyCaches(config, logger); + } + // We don't upload results in test mode, so don't wait for processing if (util.isInTestMode()) { logger.debug("In test mode. Waiting for processing is disabled."); diff --git a/src/analyze.test.ts b/src/analyze.test.ts index fdd423cb62..6c7fd3212c 100644 --- a/src/analyze.test.ts +++ b/src/analyze.test.ts @@ -101,6 +101,7 @@ test("status report fields", async (t) => { addSnippetsFlag, threadsFlag, undefined, + undefined, config, getRunnerLogger(true), createFeatures([Feature.QaTelemetryEnabled]), diff --git a/src/analyze.ts b/src/analyze.ts index 1c9eba39e1..f3d018da67 100644 --- a/src/analyze.ts +++ b/src/analyze.ts @@ -6,6 +6,7 @@ import { safeWhich } from "@chrisgavin/safe-which"; import del from "del"; import * as yaml from "js-yaml"; +import * as actionsUtil from "./actions-util"; import { setupCppAutobuild } from "./autobuild"; import { CODEQL_VERSION_ANALYSIS_SUMMARY_V2, @@ -17,7 +18,7 @@ import { addDiagnostic, makeDiagnostic } from "./diagnostics"; import { EnvVar } from "./environment"; import { FeatureEnablement, Feature } from "./feature-flags"; import { isScannedLanguage, Language } from "./languages"; -import { Logger } from "./logging"; +import { Logger, withGroup } from "./logging"; import { DatabaseCreationTimings, EventReport } from "./status-report"; import { ToolsFeature } from "./tools-features"; import { endTracingForCluster } from "./tracer-config"; @@ -234,12 +235,224 @@ async function finalizeDatabaseCreation( }; } +/** + * Set up the diff-informed analysis feature. + * + * @param baseRef The base branch name, used for calculating the diff range. + * @param headRef The head branch name, used for calculating the diff range. + * @param codeql + * @param logger + * @param features + * @returns Absolute path to the directory containing the extension pack for + * the diff range information, or `undefined` if the feature is disabled. + */ +export async function setupDiffInformedQueryRun( + baseRef: string, + headRef: string, + codeql: CodeQL, + logger: Logger, + features: FeatureEnablement, +): Promise { + if (!(await features.getValue(Feature.DiffInformedQueries, codeql))) { + return undefined; + } + return await withGroup("Generating diff range extension pack", async () => { + const diffRanges = await getPullRequestEditedDiffRanges( + baseRef, + headRef, + logger, + ); + return writeDiffRangeDataExtensionPack(logger, diffRanges); + }); +} + +interface DiffThunkRange { + path: string; + startLine: number; + endLine: number; +} + +/** + * Return the file line ranges that were added or modified in the pull request. + * + * @param baseRef The base branch name, used for calculating the diff range. + * @param headRef The head branch name, used for calculating the diff range. + * @param logger + * @returns An array of tuples, where each tuple contains the absolute path of a + * file, the start line and the end line (both 1-based and inclusive) of an + * added or modified range in that file. Returns `undefined` if the action was + * not triggered by a pull request or if there was an error. + */ +async function getPullRequestEditedDiffRanges( + baseRef: string, + headRef: string, + logger: Logger, +): Promise { + const checkoutPath = actionsUtil.getOptionalInput("checkout_path"); + if (checkoutPath === undefined) { + return undefined; + } + + // To compute the merge bases between the base branch and the PR topic branch, + // we need to fetch the commit graph from the branch heads to those merge + // babes. The following 4-step procedure does so while limiting the amount of + // history fetched. + + // Step 1: Deepen from the PR merge commit to the base branch head and the PR + // topic branch head, so that the PR merge commit is no longer considered a + // grafted commit. + await actionsUtil.deepenGitHistory(); + // Step 2: Fetch the base branch shallow history. This step ensures that the + // base branch name is present in the local repository. Normally the base + // branch name would be added by Step 4. However, if the base branch head is + // an ancestor of the PR topic branch head, Step 4 would fail without doing + // anything, so we need to fetch the base branch explicitly. + await actionsUtil.gitFetch(baseRef, ["--depth=1"]); + // Step 3: Fetch the PR topic branch history, stopping when we reach commits + // that are reachable from the base branch head. + await actionsUtil.gitFetch(headRef, [`--shallow-exclude=${baseRef}`]); + // Step 4: Fetch the base branch history, stopping when we reach commits that + // are reachable from the PR topic branch head. + await actionsUtil.gitFetch(baseRef, [`--shallow-exclude=${headRef}`]); + // Step 5: Deepen the history so that we have the merge bases between the base + // branch and the PR topic branch. + await actionsUtil.deepenGitHistory(); + + // To compute the exact same diff as GitHub would compute for the PR, we need + // to use the same merge base as GitHub. That is easy to do if there is only + // one merge base, which is by far the most common case. If there are multiple + // merge bases, we stop without producing a diff range. + const mergeBases = await actionsUtil.getAllGitMergeBases([baseRef, headRef]); + logger.info(`Merge bases: ${mergeBases.join(", ")}`); + if (mergeBases.length !== 1) { + logger.info( + "Cannot compute diff range because baseRef and headRef " + + `have ${mergeBases.length} merge bases (instead of exactly 1).`, + ); + return undefined; + } + + const diffHunkHeaders = await actionsUtil.getGitDiffHunkHeaders( + mergeBases[0], + headRef, + ); + if (diffHunkHeaders === undefined) { + return undefined; + } + + const results = new Array(); + + let changedFile = ""; + for (const line of diffHunkHeaders) { + if (line.startsWith("+++ ")) { + const filePath = actionsUtil.decodeGitFilePath(line.substring(4)); + if (filePath.startsWith("b/")) { + // The file was edited: track all hunks in the file + changedFile = filePath.substring(2); + } else if (filePath === "/dev/null") { + // The file was deleted: skip all hunks in the file + changedFile = ""; + } else { + logger.warning(`Failed to parse diff hunk header line: ${line}`); + return undefined; + } + continue; + } + if (line.startsWith("@@ ")) { + if (changedFile === "") continue; + + const match = line.match(/^@@ -\d+(?:,\d+)? \+(\d+)(?:,(\d+))? @@/); + if (match === null) { + logger.warning(`Failed to parse diff hunk header line: ${line}`); + return undefined; + } + const startLine = parseInt(match[1], 10); + const numLines = parseInt(match[2], 10); + if (numLines === 0) { + // The hunk was a deletion: skip it + continue; + } + const endLine = startLine + (numLines || 1) - 1; + results.push({ + path: path.join(checkoutPath, changedFile), + startLine, + endLine, + }); + } + } + return results; +} + +/** + * Create an extension pack in the temporary directory that contains the file + * line ranges that were added or modified in the pull request. + * + * @param logger + * @param ranges The file line ranges, as returned by + * `getPullRequestEditedDiffRanges`. + * @returns The absolute path of the directory containing the extension pack, or + * `undefined` if no extension pack was created. + */ +function writeDiffRangeDataExtensionPack( + logger: Logger, + ranges: DiffThunkRange[] | undefined, +): string | undefined { + if (ranges === undefined) { + return undefined; + } + + const diffRangeDir = path.join( + actionsUtil.getTemporaryDirectory(), + "pr-diff-range", + ); + fs.mkdirSync(diffRangeDir); + fs.writeFileSync( + path.join(diffRangeDir, "qlpack.yml"), + ` +name: codeql-action/pr-diff-range +version: 0.0.0 +library: true +extensionTargets: + codeql/util: '*' +dataExtensions: + - pr-diff-range.yml +`, + ); + + const header = ` +extensions: + - addsTo: + pack: codeql/util + extensible: restrictAlertsTo + data: +`; + + let data = ranges + .map((range) => ` - ["${range[0]}", ${range[1]}, ${range[2]}]\n`) + .join(""); + if (!data) { + // Ensure that the data extension is not empty, so that a pull request with + // no edited lines would exclude (instead of accepting) all alerts. + data = ' - ["", 0, 0]\n'; + } + + const extensionContents = header + data; + const extensionFilePath = path.join(diffRangeDir, "pr-diff-range.yml"); + fs.writeFileSync(extensionFilePath, extensionContents); + logger.debug( + `Wrote pr-diff-range extension pack to ${extensionFilePath}:\n${extensionContents}`, + ); + + return diffRangeDir; +} + // Runs queries and creates sarif files in the given folder export async function runQueries( sarifFolder: string, memoryFlag: string, addSnippetsFlag: string, threadsFlag: string, + diffRangePackDir: string | undefined, automationDetailsId: string | undefined, config: configUtils.Config, logger: Logger, @@ -247,8 +460,18 @@ export async function runQueries( ): Promise { const statusReport: QueriesStatusReport = {}; + const dataExtensionFlags = diffRangePackDir + ? [ + `--additional-packs=${diffRangePackDir}`, + "--extension-packs=codeql-action/pr-diff-range", + ] + : []; + const sarifRunPropertyFlag = diffRangePackDir + ? "--sarif-run-property=incrementalMode=diff-informed" + : undefined; + const codeql = await getCodeQL(config.codeQLCmd); - const queryFlags = [memoryFlag, threadsFlag]; + const queryFlags = [memoryFlag, threadsFlag, ...dataExtensionFlags]; for (const language of config.languages) { try { @@ -336,6 +559,7 @@ export async function runQueries( addSnippetsFlag, threadsFlag, enableDebugLogging ? "-vv" : "-v", + sarifRunPropertyFlag, automationDetailsId, config, features, diff --git a/src/caching-utils.ts b/src/caching-utils.ts new file mode 100644 index 0000000000..b0f228aa4d --- /dev/null +++ b/src/caching-utils.ts @@ -0,0 +1,89 @@ +import * as core from "@actions/core"; + +import { getOptionalInput, isDefaultSetup } from "./actions-util"; +import { EnvVar } from "./environment"; +import { Logger } from "./logging"; +import { isHostedRunner, tryGetFolderBytes } from "./util"; + +/** + * Returns the total size of all the specified paths. + * @param paths The paths for which to calculate the total size. + * @param logger A logger to record some informational messages to. + * @returns The total size of all specified paths. + */ +export async function getTotalCacheSize( + paths: string[], + logger: Logger, +): Promise { + const sizes = await Promise.all( + paths.map((cacheDir) => tryGetFolderBytes(cacheDir, logger)), + ); + return sizes.map((a) => a || 0).reduce((a, b) => a + b, 0); +} + +/* Enumerates caching modes. */ +export enum CachingKind { + /** Do not restore or store any caches. */ + None = "none", + /** Store caches, but do not restore any existing ones. */ + Store = "store", + /** Restore existing caches, but do not store any new ones. */ + Restore = "restore", + /** Restore existing caches, and store new ones. */ + Full = "full", +} + +/** Returns a value indicating whether new caches should be stored, based on `kind`. */ +export function shouldStoreCache(kind: CachingKind): boolean { + return kind === CachingKind.Full || kind === CachingKind.Store; +} + +/** Returns a value indicating whether existing caches should be restored, based on `kind`. */ +export function shouldRestoreCache(kind: CachingKind): boolean { + return kind === CachingKind.Full || kind === CachingKind.Restore; +} + +/** + * Parses the `upload` input into an `UploadKind`. + */ +export function getCachingKind(input: string | undefined): CachingKind { + switch (input) { + case undefined: + case "none": + case "off": + case "false": + return CachingKind.None; + case "full": + case "on": + case "true": + return CachingKind.Full; + case "store": + return CachingKind.Store; + case "restore": + return CachingKind.Restore; + default: + core.warning( + `Unrecognized 'dependency-caching' input: ${input}. Defaulting to 'none'.`, + ); + return CachingKind.None; + } +} + +/** Determines whether dependency caching is enabled. */ +export function getDependencyCachingEnabled(): CachingKind { + // If the workflow specified something always respect that + const dependencyCaching = + getOptionalInput("dependency-caching") || + process.env[EnvVar.DEPENDENCY_CACHING]; + if (dependencyCaching !== undefined) return getCachingKind(dependencyCaching); + + // On self-hosted runners which may have dependencies installed centrally, disable caching by default + if (!isHostedRunner()) return CachingKind.None; + + // Disable in advanced workflows by default. + if (!isDefaultSetup()) return CachingKind.None; + + // On hosted runners, disable dependency caching by default. + // TODO: Review later whether we can enable this by default. + return CachingKind.None; +} diff --git a/src/codeql.test.ts b/src/codeql.test.ts index 7f6d49f429..1c092eb100 100644 --- a/src/codeql.test.ts +++ b/src/codeql.test.ts @@ -69,8 +69,6 @@ async function installIntoToolcache({ cliVersion !== undefined ? { cliVersion, tagName } : SAMPLE_DEFAULT_CLI_VERSION, - - createFeatures([]), getRunnerLogger(true), false, ); @@ -130,8 +128,6 @@ test("downloads and caches explicitly requested bundles that aren't in the toolc tmpDir, util.GitHubVariant.DOTCOM, SAMPLE_DEFAULT_CLI_VERSION, - - createFeatures([]), getRunnerLogger(true), false, ); @@ -158,8 +154,6 @@ test("caches semantically versioned bundles using their semantic version number" tmpDir, util.GitHubVariant.DOTCOM, SAMPLE_DEFAULT_CLI_VERSION, - - createFeatures([]), getRunnerLogger(true), false, ); @@ -193,8 +187,6 @@ test("downloads an explicitly requested bundle even if a different version is ca tmpDir, util.GitHubVariant.DOTCOM, SAMPLE_DEFAULT_CLI_VERSION, - - createFeatures([]), getRunnerLogger(true), false, ); @@ -239,8 +231,6 @@ for (const { tmpDir, util.GitHubVariant.DOTCOM, SAMPLE_DEFAULT_CLI_VERSION, - - createFeatures([]), getRunnerLogger(true), false, ); @@ -279,8 +269,6 @@ for (const toolcacheVersion of [ tmpDir, util.GitHubVariant.DOTCOM, SAMPLE_DEFAULT_CLI_VERSION, - - createFeatures([]), getRunnerLogger(true), false, ); @@ -313,8 +301,6 @@ test(`uses a cached bundle when no tools input is given on GHES`, async (t) => { cliVersion: defaults.cliVersion, tagName: defaults.bundleVersion, }, - - createFeatures([]), getRunnerLogger(true), false, ); @@ -351,8 +337,6 @@ test(`downloads bundle if only an unpinned version is cached on GHES`, async (t) cliVersion: defaults.cliVersion, tagName: defaults.bundleVersion, }, - - createFeatures([]), getRunnerLogger(true), false, ); @@ -386,8 +370,6 @@ test('downloads bundle if "latest" tools specified but not cached', async (t) => tmpDir, util.GitHubVariant.DOTCOM, SAMPLE_DEFAULT_CLI_VERSION, - - createFeatures([]), getRunnerLogger(true), false, ); @@ -424,8 +406,6 @@ test("bundle URL from another repo is cached as 0.0.0-bundleVersion", async (t) tmpDir, util.GitHubVariant.DOTCOM, SAMPLE_DEFAULT_CLI_VERSION, - - createFeatures([]), getRunnerLogger(true), false, ); @@ -839,6 +819,7 @@ for (const { "", "", "-v", + undefined, "", Object.assign({}, stubConfig, { gitHubVersion: githubVersion }), createFeatures([]), diff --git a/src/codeql.ts b/src/codeql.ts index 7d1317d861..a952e83bb3 100644 --- a/src/codeql.ts +++ b/src/codeql.ts @@ -166,6 +166,7 @@ export interface CodeQL { addSnippetsFlag: string, threadsFlag: string, verbosityFlag: string | undefined, + sarifRunPropertyFlag: string | undefined, automationDetailsId: string | undefined, config: Config, features: FeatureEnablement, @@ -342,7 +343,6 @@ export async function setupCodeQL( tempDir: string, variant: util.GitHubVariant, defaultCliVersion: CodeQLDefaultVersionInfo, - features: FeatureEnablement, logger: Logger, checkVersion: boolean, ): Promise<{ @@ -365,7 +365,6 @@ export async function setupCodeQL( tempDir, variant, defaultCliVersion, - features, logger, ); @@ -834,6 +833,7 @@ export async function getCodeQLForCmd( addSnippetsFlag: string, threadsFlag: string, verbosityFlag: string, + sarifRunPropertyFlag: string | undefined, automationDetailsId: string | undefined, config: Config, features: FeatureEnablement, @@ -861,6 +861,9 @@ export async function getCodeQLForCmd( ...(await getJobRunUuidSarifOptions(this)), ...getExtraOptionsFromEnv(["database", "interpret-results"]), ]; + if (sarifRunPropertyFlag !== undefined) { + codeqlArgs.push(sarifRunPropertyFlag); + } if (automationDetailsId !== undefined) { codeqlArgs.push("--sarif-category", automationDetailsId); } diff --git a/src/config-utils.test.ts b/src/config-utils.test.ts index e036a2e3e9..cc8c6e9280 100644 --- a/src/config-utils.test.ts +++ b/src/config-utils.test.ts @@ -7,6 +7,7 @@ import * as yaml from "js-yaml"; import * as sinon from "sinon"; import * as api from "./api-client"; +import { CachingKind } from "./caching-utils"; import { CodeQL, getCachedCodeQL, @@ -52,6 +53,7 @@ function createTestInitConfigInputs( configInput: undefined, buildModeInput: undefined, trapCachingEnabled: false, + dependencyCachingEnabled: CachingKind.None, debugMode: false, debugArtifactName: "", debugDatabaseName: "", @@ -347,6 +349,7 @@ test("load non-empty input", async (t) => { augmentationProperties: configUtils.defaultAugmentationProperties, trapCaches: {}, trapCacheDownloadTime: 0, + dependencyCachingEnabled: CachingKind.None, }; const languagesInput = "javascript"; diff --git a/src/config-utils.ts b/src/config-utils.ts index e0d188f0df..b31de28e60 100644 --- a/src/config-utils.ts +++ b/src/config-utils.ts @@ -6,6 +6,7 @@ import * as yaml from "js-yaml"; import * as semver from "semver"; import * as api from "./api-client"; +import { CachingKind, getCachingKind } from "./caching-utils"; import { CodeQL } from "./codeql"; import { Feature, FeatureEnablement } from "./feature-flags"; import { Language, parseLanguage } from "./languages"; @@ -63,6 +64,12 @@ export interface RegistryConfigNoCredentials { // List of globs that determine which packs are associated with this registry. packages: string[] | string; + + // Kind of registry, either "github" or "docker". Default is "docker". + // "docker" refers specifically to the GitHub Container Registry, which is the usual way of sharing CodeQL packs. + // "github" refers to packs published as content in a GitHub repository. This kind of registry is used in scenarios + // where GHCR is not available, such as certain GHES environments. + kind?: "github" | "docker"; } interface ExcludeQueryFilter { @@ -136,6 +143,9 @@ export interface Config { * Time taken to download TRAP caches. Used for status reporting. */ trapCacheDownloadTime: number; + + /** A value indicating how dependency caching should be used. */ + dependencyCachingEnabled: CachingKind; } /** @@ -393,6 +403,7 @@ export interface InitConfigInputs { configInput: string | undefined; buildModeInput: string | undefined; trapCachingEnabled: boolean; + dependencyCachingEnabled: string | undefined; debugMode: boolean; debugArtifactName: string; debugDatabaseName: string; @@ -425,6 +436,7 @@ export async function getDefaultConfig({ buildModeInput, dbLocation, trapCachingEnabled, + dependencyCachingEnabled, debugMode, debugArtifactName, debugDatabaseName, @@ -476,6 +488,7 @@ export async function getDefaultConfig({ augmentationProperties, trapCaches, trapCacheDownloadTime, + dependencyCachingEnabled: getCachingKind(dependencyCachingEnabled), }; } @@ -509,6 +522,7 @@ async function loadConfig({ configFile, dbLocation, trapCachingEnabled, + dependencyCachingEnabled, debugMode, debugArtifactName, debugDatabaseName, @@ -580,6 +594,7 @@ async function loadConfig({ augmentationProperties, trapCaches, trapCacheDownloadTime, + dependencyCachingEnabled: getCachingKind(dependencyCachingEnabled), }; } @@ -871,8 +886,8 @@ export function parseRegistriesWithoutCredentials( registriesInput?: string, ): RegistryConfigNoCredentials[] | undefined { return parseRegistries(registriesInput)?.map((r) => { - const { url, packages } = r; - return { url, packages }; + const { url, packages, kind } = r; + return { url, packages, kind }; }); } @@ -1039,6 +1054,7 @@ function createRegistriesBlock(registries: RegistryConfigWithCredentials[]): { // ensure the url ends with a slash to avoid a bug in the CLI 2.10.4 url: !registry?.url.endsWith("/") ? `${registry.url}/` : registry.url, packages: registry.packages, + kind: registry.kind, })); const qlconfig = { registries: safeRegistries, diff --git a/src/defaults.json b/src/defaults.json index d817dee776..7ee20851fa 100644 --- a/src/defaults.json +++ b/src/defaults.json @@ -1,6 +1,6 @@ { - "bundleVersion": "codeql-bundle-v2.19.2", - "cliVersion": "2.19.2", - "priorBundleVersion": "codeql-bundle-v2.19.1", - "priorCliVersion": "2.19.1" + "bundleVersion": "codeql-bundle-v2.19.3", + "cliVersion": "2.19.3", + "priorBundleVersion": "codeql-bundle-v2.19.2", + "priorCliVersion": "2.19.2" } diff --git a/src/dependency-caching.ts b/src/dependency-caching.ts new file mode 100644 index 0000000000..5b86049c54 --- /dev/null +++ b/src/dependency-caching.ts @@ -0,0 +1,223 @@ +import * as os from "os"; +import { join } from "path"; + +import * as actionsCache from "@actions/cache"; +import * as glob from "@actions/glob"; + +import { getTotalCacheSize } from "./caching-utils"; +import { Config } from "./config-utils"; +import { EnvVar } from "./environment"; +import { Language } from "./languages"; +import { Logger } from "./logging"; +import { getRequiredEnvParam } from "./util"; + +/** + * Caching configuration for a particular language. + */ +interface CacheConfig { + /** The paths of directories on the runner that should be included in the cache. */ + paths: string[]; + /** + * Patterns for the paths of files whose contents affect which dependencies are used + * by a project. We find all files which match these patterns, calculate a hash for + * their contents, and use that hash as part of the cache key. + */ + hash: string[]; +} + +const CODEQL_DEPENDENCY_CACHE_PREFIX = "codeql-dependencies"; +const CODEQL_DEPENDENCY_CACHE_VERSION = 1; + +/** + * Default caching configurations per language. + */ +const CODEQL_DEFAULT_CACHE_CONFIG: { [language: string]: CacheConfig } = { + java: { + paths: [ + // Maven + join(os.homedir(), ".m2", "repository"), + // Gradle + join(os.homedir(), ".gradle", "caches"), + ], + hash: [ + // Maven + "**/pom.xml", + // Gradle + "**/*.gradle*", + "**/gradle-wrapper.properties", + "buildSrc/**/Versions.kt", + "buildSrc/**/Dependencies.kt", + "gradle/*.versions.toml", + "**/versions.properties", + ], + }, + csharp: { + paths: [join(os.homedir(), ".nuget", "packages")], + hash: [ + // NuGet + "**/packages.lock.json", + // Paket + "**/paket.lock", + ], + }, + go: { + paths: [join(os.homedir(), "go", "pkg", "mod")], + hash: ["**/go.sum"], + }, +}; + +async function makeGlobber(patterns: string[]): Promise { + return glob.create(patterns.join("\n")); +} + +/** + * Attempts to restore dependency caches for the languages being analyzed. + * + * @param languages The languages being analyzed. + * @param logger A logger to record some informational messages to. + * @returns A list of languages for which dependency caches were restored. + */ +export async function downloadDependencyCaches( + languages: Language[], + logger: Logger, +): Promise { + const restoredCaches: Language[] = []; + + for (const language of languages) { + const cacheConfig = CODEQL_DEFAULT_CACHE_CONFIG[language]; + + if (cacheConfig === undefined) { + logger.info( + `Skipping download of dependency cache for ${language} as we have no caching configuration for it.`, + ); + continue; + } + + // Check that we can find files to calculate the hash for the cache key from, so we don't end up + // with an empty string. + const globber = await makeGlobber(cacheConfig.hash); + + if ((await globber.glob()).length === 0) { + logger.info( + `Skipping download of dependency cache for ${language} as we cannot calculate a hash for the cache key.`, + ); + continue; + } + + const primaryKey = await cacheKey(language, cacheConfig); + const restoreKeys: string[] = [await cachePrefix(language)]; + + logger.info( + `Downloading cache for ${language} with key ${primaryKey} and restore keys ${restoreKeys.join( + ", ", + )}`, + ); + + const hitKey = await actionsCache.restoreCache( + cacheConfig.paths, + primaryKey, + restoreKeys, + ); + + if (hitKey !== undefined) { + logger.info(`Cache hit on key ${hitKey} for ${language}.`); + restoredCaches.push(language); + } else { + logger.info(`No suitable cache found for ${language}.`); + } + } + + return restoredCaches; +} + +/** + * Attempts to store caches for the languages that were analyzed. + * + * @param config The configuration for this workflow. + * @param logger A logger to record some informational messages to. + */ +export async function uploadDependencyCaches(config: Config, logger: Logger) { + for (const language of config.languages) { + const cacheConfig = CODEQL_DEFAULT_CACHE_CONFIG[language]; + + if (cacheConfig === undefined) { + logger.info( + `Skipping upload of dependency cache for ${language} as we have no caching configuration for it.`, + ); + continue; + } + + // Check that we can find files to calculate the hash for the cache key from, so we don't end up + // with an empty string. + const globber = await makeGlobber(cacheConfig.hash); + + if ((await globber.glob()).length === 0) { + logger.info( + `Skipping upload of dependency cache for ${language} as we cannot calculate a hash for the cache key.`, + ); + continue; + } + + // Calculate the size of the files that we would store in the cache. We use this to determine whether the + // cache should be saved or not. For example, if there are no files to store, then we skip creating the + // cache. In the future, we could also: + // - Skip uploading caches with a size below some threshold: this makes sense for avoiding the overhead + // of storing and restoring small caches, but does not help with alert wobble if a package repository + // cannot be reached in a given run. + // - Skip uploading caches with a size above some threshold: this could be a concern if other workflows + // use the cache quota that we compete with. In that case, we do not wish to use up all of the quota + // with the dependency caches. For this, we could use the Cache API to check whether other workflows + // are using the quota and how full it is. + const size = await getTotalCacheSize(cacheConfig.paths, logger); + + // Skip uploading an empty cache. + if (size === 0) { + logger.info( + `Skipping upload of dependency cache for ${language} since it is empty.`, + ); + continue; + } + + const key = await cacheKey(language, cacheConfig); + + logger.info( + `Uploading cache of size ${size} for ${language} with key ${key}`, + ); + + await actionsCache.saveCache(cacheConfig.paths, key); + } +} + +/** + * Computes a cache key for the specified language. + * + * @param language The language being analyzed. + * @param cacheConfig The cache configuration for the language. + * @returns A cache key capturing information about the project(s) being analyzed in the specified language. + */ +async function cacheKey( + language: Language, + cacheConfig: CacheConfig, +): Promise { + const hash = await glob.hashFiles(cacheConfig.hash.join("\n")); + return `${await cachePrefix(language)}${hash}`; +} + +/** + * Constructs a prefix for the cache key, comprised of a CodeQL-specific prefix, a version number that + * can be changed to invalidate old caches, the runner's operating system, and the specified language name. + * + * @param language The language being analyzed. + * @returns The prefix that identifies what a cache is for. + */ +async function cachePrefix(language: Language): Promise { + const runnerOs = getRequiredEnvParam("RUNNER_OS"); + const customPrefix = process.env[EnvVar.DEPENDENCY_CACHING_PREFIX]; + let prefix = CODEQL_DEPENDENCY_CACHE_PREFIX; + + if (customPrefix !== undefined && customPrefix.length > 0) { + prefix = `${prefix}-${customPrefix}`; + } + + return `${prefix}-${CODEQL_DEPENDENCY_CACHE_VERSION}-${runnerOs}-${language}-`; +} diff --git a/src/environment.ts b/src/environment.ts index 43a56d688f..83f0919212 100644 --- a/src/environment.ts +++ b/src/environment.ts @@ -51,7 +51,7 @@ export enum EnvVar { INIT_ACTION_HAS_RUN = "CODEQL_ACTION_INIT_HAS_RUN", /** - * For MacOS. Result of `csrutil status` to determine whether System Integrity + * For macOS. Result of `csrutil status` to determine whether System Integrity * Protection is enabled. */ IS_SIP_ENABLED = "CODEQL_ACTION_IS_SIP_ENABLED", @@ -98,4 +98,17 @@ export enum EnvVar { * We check this later to ensure that it hasn't been tampered with by a late e.g. `setup-go` step. */ GO_BINARY_LOCATION = "CODEQL_ACTION_GO_BINARY", + + /** + * Used as an alternative to the `dependency-caching` input for the `init` Action. + * Useful for experiments where it is easier to set an environment variable than + * change the inputs to the Action. + */ + DEPENDENCY_CACHING = "CODEQL_ACTION_DEPENDENCY_CACHING", + + /** + * An optional string to add into the cache key used by dependency caching. + * Useful for testing purposes where multiple caches may be stored in the same repository. + */ + DEPENDENCY_CACHING_PREFIX = "CODEQL_ACTION_DEPENDENCY_CACHE_PREFIX", } diff --git a/src/feature-flags.test.ts b/src/feature-flags.test.ts index a3d1a7d8b0..21e5596553 100644 --- a/src/feature-flags.test.ts +++ b/src/feature-flags.test.ts @@ -60,6 +60,36 @@ test(`All features are disabled if running against GHES`, async (t) => { }); }); +test(`Feature flags are requested in Proxima`, async (t) => { + await withTmpDir(async (tmpDir) => { + const loggedMessages = []; + const features = setUpFeatureFlagTests( + tmpDir, + getRecordingLogger(loggedMessages), + { type: GitHubVariant.GHE_DOTCOM }, + ); + + mockFeatureFlagApiEndpoint(200, initializeFeatures(true)); + + for (const feature of Object.values(Feature)) { + // Ensure we have gotten a response value back from the Mock API + t.assert( + await features.getValue(feature, includeCodeQlIfRequired(feature)), + ); + } + + // And that we haven't bailed preemptively. + t.assert( + loggedMessages.find( + (v: LoggedMessage) => + v.type === "debug" && + v.message === + "Not running against github.com. Disabling all toggleable features.", + ) === undefined, + ); + }); +}); + test("API response missing and features use default value", async (t) => { await withTmpDir(async (tmpDir) => { const loggedMessages: LoggedMessage[] = []; diff --git a/src/feature-flags.ts b/src/feature-flags.ts index 77ae5c3f96..6b8f3721ee 100644 --- a/src/feature-flags.ts +++ b/src/feature-flags.ts @@ -50,6 +50,7 @@ export interface FeatureEnablement { export enum Feature { ArtifactV4Upgrade = "artifact_v4_upgrade", CleanupTrapCaches = "cleanup_trap_caches", + CppBuildModeNone = "cpp_build_mode_none", CppDependencyInstallation = "cpp_dependency_installation_enabled", DiffInformedQueries = "diff_informed_queries", DisableCsharpBuildless = "disable_csharp_buildless", @@ -58,8 +59,6 @@ export enum Feature { ExportDiagnosticsEnabled = "export_diagnostics_enabled", PythonDefaultIsToNotExtractStdlib = "python_default_is_to_not_extract_stdlib", QaTelemetryEnabled = "qa_telemetry_enabled", - ZstdBundle = "zstd_bundle", - ZstdBundleStreamingExtraction = "zstd_bundle_streaming_extraction", } export const featureConfig: Record< @@ -103,6 +102,11 @@ export const featureConfig: Record< envVar: "CODEQL_ACTION_CLEANUP_TRAP_CACHES", minimumVersion: undefined, }, + [Feature.CppBuildModeNone]: { + defaultValue: false, + envVar: "CODEQL_EXTRACTOR_CPP_BUILD_MODE_NONE", + minimumVersion: undefined, + }, [Feature.CppDependencyInstallation]: { defaultValue: false, envVar: "CODEQL_EXTRACTOR_CPP_AUTOINSTALL_DEPENDENCIES", @@ -150,18 +154,6 @@ export const featureConfig: Record< legacyApi: true, minimumVersion: undefined, }, - [Feature.ZstdBundle]: { - defaultValue: false, - envVar: "CODEQL_ACTION_ZSTD_BUNDLE", - // We haven't yet installed CodeQL when we check this feature flag, so we need to implement the - // version check separately. - minimumVersion: undefined, - }, - [Feature.ZstdBundleStreamingExtraction]: { - defaultValue: false, - envVar: "CODEQL_ACTION_ZSTD_BUNDLE_STREAMING_EXTRACTION", - minimumVersion: undefined, - }, }; /** @@ -479,7 +471,10 @@ class GitHubFeatureFlags { private async loadApiResponse(): Promise { // Do nothing when not running against github.com - if (this.gitHubVersion.type !== util.GitHubVariant.DOTCOM) { + if ( + this.gitHubVersion.type !== util.GitHubVariant.DOTCOM && + this.gitHubVersion.type !== util.GitHubVariant.GHE_DOTCOM + ) { this.logger.debug( "Not running against github.com. Disabling all toggleable features.", ); diff --git a/src/init-action.ts b/src/init-action.ts index cf0c6c939e..229873e1dd 100644 --- a/src/init-action.ts +++ b/src/init-action.ts @@ -15,8 +15,14 @@ import { persistInputs, } from "./actions-util"; import { getGitHubVersion } from "./api-client"; +import { + getDependencyCachingEnabled, + getTotalCacheSize, + shouldRestoreCache, +} from "./caching-utils"; import { CodeQL } from "./codeql"; import * as configUtils from "./config-utils"; +import { downloadDependencyCaches } from "./dependency-caching"; import { addDiagnostic, flushDiagnostics, @@ -46,7 +52,6 @@ import { import { ZstdAvailability } from "./tar"; import { ToolsDownloadStatusReport } from "./tools-download"; import { ToolsFeature } from "./tools-features"; -import { getTotalCacheSize } from "./trap-caching"; import { checkDiskUsage, checkForTimeout, @@ -225,7 +230,7 @@ async function sendCompletedStatusReport( packs: JSON.stringify(packs), trap_cache_languages: Object.keys(config.trapCaches).join(","), trap_cache_download_size_bytes: Math.round( - await getTotalCacheSize(config.trapCaches, logger), + await getTotalCacheSize(Object.values(config.trapCaches), logger), ), trap_cache_download_duration_ms: Math.round(config.trapCacheDownloadTime), query_filters: JSON.stringify( @@ -314,7 +319,6 @@ async function run() { getTemporaryDirectory(), gitHubVersion.type, codeQLDefaultVersionInfo, - features, logger, ); codeql = initCodeQLResult.codeql; @@ -339,6 +343,7 @@ async function run() { dbLocation: getOptionalInput("db-location"), configInput: getOptionalInput("config"), trapCachingEnabled: getTrapCachingEnabled(), + dependencyCachingEnabled: getDependencyCachingEnabled(), // Debug mode is enabled if: // - The `init` Action is passed `debug: true`. // - Actions step debugging is enabled (e.g. by [enabling debug logging for a rerun](https://docs.github.com/en/actions/managing-workflow-runs/re-running-workflows-and-jobs#re-running-all-the-jobs-in-a-workflow), @@ -546,7 +551,22 @@ async function run() { } } - // For CLI versions <2.15.1, build tracing caused errors in MacOS ARM machines with + // Set CODEQL_EXTRACTOR_CPP_BUILD_MODE_NONE + if (config.languages.includes(Language.cpp)) { + const bmnVar = "CODEQL_EXTRACTOR_CPP_BUILD_MODE_NONE"; + const value = + process.env[bmnVar] || + (await features.getValue(Feature.CppBuildModeNone, codeql)); + logger.info(`Setting C++ build-mode: none to ${value}`); + core.exportVariable(bmnVar, value); + } + + // Restore dependency cache(s), if they exist. + if (shouldRestoreCache(config.dependencyCachingEnabled)) { + await downloadDependencyCaches(config.languages, logger); + } + + // For CLI versions <2.15.1, build tracing caused errors in macOS ARM machines with // System Integrity Protection (SIP) disabled. if ( !(await codeQlVersionAtLeast(codeql, "2.15.1")) && @@ -555,7 +575,7 @@ async function run() { !(await checkSipEnablement(logger)) ) { logger.warning( - "CodeQL versions 2.15.0 and lower are not supported on MacOS ARM machines with System Integrity Protection (SIP) disabled.", + "CodeQL versions 2.15.0 and lower are not supported on macOS ARM machines with System Integrity Protection (SIP) disabled.", ); } diff --git a/src/init.ts b/src/init.ts index 3c78e2eb6f..f75c1d5337 100644 --- a/src/init.ts +++ b/src/init.ts @@ -8,7 +8,7 @@ import { getOptionalInput, isSelfHostedRunner } from "./actions-util"; import { GitHubApiCombinedDetails, GitHubApiDetails } from "./api-client"; import { CodeQL, setupCodeQL } from "./codeql"; import * as configUtils from "./config-utils"; -import { CodeQLDefaultVersionInfo, FeatureEnablement } from "./feature-flags"; +import { CodeQLDefaultVersionInfo } from "./feature-flags"; import { Language, isScannedLanguage } from "./languages"; import { Logger } from "./logging"; import { ToolsSource } from "./setup-codeql"; @@ -24,7 +24,6 @@ export async function initCodeQL( tempDir: string, variant: util.GitHubVariant, defaultCliVersion: CodeQLDefaultVersionInfo, - features: FeatureEnablement, logger: Logger, ): Promise<{ codeql: CodeQL; @@ -46,7 +45,6 @@ export async function initCodeQL( tempDir, variant, defaultCliVersion, - features, logger, true, ); diff --git a/src/languages.ts b/src/languages.ts index 4d3513e72e..e2ac61455c 100644 --- a/src/languages.ts +++ b/src/languages.ts @@ -1,5 +1,6 @@ // All the languages supported by CodeQL export enum Language { + actions = "actions", csharp = "csharp", cpp = "cpp", go = "go", diff --git a/src/setup-codeql.test.ts b/src/setup-codeql.test.ts index 21ebdc836a..5fa69a1756 100644 --- a/src/setup-codeql.test.ts +++ b/src/setup-codeql.test.ts @@ -11,7 +11,6 @@ import { LoggedMessage, SAMPLE_DEFAULT_CLI_VERSION, SAMPLE_DOTCOM_API_DETAILS, - createFeatures, getRecordingLogger, mockBundleDownloadApi, setupActionsVars, @@ -91,7 +90,6 @@ test("getCodeQLSource sets CLI version for a semver tagged bundle", async (t) => SAMPLE_DOTCOM_API_DETAILS, GitHubVariant.DOTCOM, false, - createFeatures([]), getRunnerLogger(true), ); @@ -109,7 +107,6 @@ test("getCodeQLSource correctly returns bundled CLI version when tools == linked SAMPLE_DOTCOM_API_DETAILS, GitHubVariant.DOTCOM, false, - createFeatures([]), getRunnerLogger(true), ); @@ -130,7 +127,6 @@ test("getCodeQLSource correctly returns bundled CLI version when tools == latest SAMPLE_DOTCOM_API_DETAILS, GitHubVariant.DOTCOM, false, - createFeatures([]), logger, ); @@ -141,7 +137,7 @@ test("getCodeQLSource correctly returns bundled CLI version when tools == latest // Afterwards, ensure that we see the deprecation message in the log. const expected_message: string = - "`tools: latest` has been renamed to `tools: linked`, but the old name is still supported for now. No action is required."; + "`tools: latest` has been renamed to `tools: linked`, but the old name is still supported. No action is required."; t.assert( loggedMessages.some( (msg) => @@ -179,7 +175,6 @@ test("setupCodeQLBundle logs the CodeQL CLI version being used when asked to use "tmp/codeql_action_test/", GitHubVariant.DOTCOM, SAMPLE_DEFAULT_CLI_VERSION, - createFeatures([]), logger, ); @@ -230,7 +225,6 @@ test("setupCodeQLBundle logs the CodeQL CLI version being used when asked to dow "tmp/codeql_action_test/", GitHubVariant.DOTCOM, SAMPLE_DEFAULT_CLI_VERSION, - createFeatures([]), logger, ); @@ -249,3 +243,13 @@ test("setupCodeQLBundle logs the CodeQL CLI version being used when asked to dow ); }); }); + +test('tryGetTagNameFromUrl extracts the right tag name for a repo name containing "codeql-bundle"', (t) => { + t.is( + setupCodeql.tryGetTagNameFromUrl( + "https://github.com/org/codeql-bundle-testing/releases/download/codeql-bundle-v2.19.0/codeql-bundle-linux64.tar.zst", + getRunnerLogger(true), + ), + "codeql-bundle-v2.19.0", + ); +}); diff --git a/src/setup-codeql.ts b/src/setup-codeql.ts index 06aeb01acd..01b6b0f717 100644 --- a/src/setup-codeql.ts +++ b/src/setup-codeql.ts @@ -7,14 +7,12 @@ import * as toolcache from "@actions/tool-cache"; import { default as deepEqual } from "fast-deep-equal"; import * as semver from "semver"; -import { CommandInvocationError, isRunningLocalAction } from "./actions-util"; +import { isRunningLocalAction } from "./actions-util"; import * as api from "./api-client"; import * as defaults from "./defaults.json"; import { CODEQL_VERSION_ZSTD_BUNDLE, CodeQLDefaultVersionInfo, - Feature, - FeatureEnablement, } from "./feature-flags"; import { formatDuration, Logger } from "./logging"; import * as tar from "./tar"; @@ -138,12 +136,30 @@ function tryGetBundleVersionFromTagName( return match[1]; } -function tryGetTagNameFromUrl(url: string, logger: Logger): string | undefined { - const match = url.match(/\/(codeql-bundle-.*)\//); - if (match === null || match.length < 2) { +export function tryGetTagNameFromUrl( + url: string, + logger: Logger, +): string | undefined { + const matches = [...url.matchAll(/\/(codeql-bundle-[^/]*)\//g)]; + if (!matches.length) { logger.debug(`Could not determine tag name for URL ${url}.`); return undefined; } + // Example: https://github.com/org/codeql-bundle-testing/releases/download/codeql-bundle-v2.19.0/codeql-bundle-linux64.tar.zst + // We require a trailing forward slash to be part of the match, so the last match gives us the tag + // name. An alternative approach would be to also match against `/releases/`, but this approach + // assumes less about the structure of the URL. + const match = matches[matches.length - 1]; + + if (match === null || match.length !== 2) { + logger.debug( + `Could not determine tag name for URL ${url}. Matched ${JSON.stringify( + match, + )}.`, + ); + return undefined; + } + return match[1]; } @@ -243,7 +259,6 @@ export async function getCodeQLSource( apiDetails: api.GitHubApiDetails, variant: util.GitHubVariant, tarSupportsZstd: boolean, - features: FeatureEnablement, logger: Logger, ): Promise { if ( @@ -274,13 +289,12 @@ export async function getCodeQLSource( toolsInput && CODEQL_BUNDLE_VERSION_ALIAS.includes(toolsInput); if (forceShippedTools) { logger.info( - `Overriding the version of the CodeQL tools by ${defaultCliVersion.cliVersion}, the version shipped with the Action since ` + - `tools: ${toolsInput} was requested.`, + `'tools: ${toolsInput}' was requested, so using CodeQL version ${defaultCliVersion.cliVersion}, the version shipped with the Action.`, ); if (toolsInput === "latest") { logger.warning( - "`tools: latest` has been renamed to `tools: linked`, but the old name is still supported for now. No action is required.", + "`tools: latest` has been renamed to `tools: linked`, but the old name is still supported. No action is required.", ); } } @@ -441,7 +455,7 @@ export async function getCodeQLSource( tagName!, apiDetails, cliVersion !== undefined && - (await useZstdBundle(cliVersion, features, tarSupportsZstd)), + (await useZstdBundle(cliVersion, tarSupportsZstd)), logger, ); } @@ -490,7 +504,6 @@ export const downloadCodeQL = async function ( apiDetails: api.GitHubApiDetails, tarVersion: tar.TarVersion | undefined, tempDir: string, - features: FeatureEnablement, logger: Logger, ): Promise<{ codeqlFolder: string; @@ -525,7 +538,6 @@ export const downloadCodeQL = async function ( { "User-Agent": "CodeQL Action", ...headers }, tarVersion, tempDir, - features, logger, ); @@ -622,7 +634,6 @@ export interface SetupCodeQLResult { toolsSource: ToolsSource; toolsVersion: string; zstdAvailability: tar.ZstdAvailability; - zstdFailureReason?: string; } /** @@ -636,82 +647,16 @@ export async function setupCodeQLBundle( tempDir: string, variant: util.GitHubVariant, defaultCliVersion: CodeQLDefaultVersionInfo, - features: FeatureEnablement, logger: Logger, -): Promise { +) { const zstdAvailability = await tar.isZstdAvailable(logger); - let zstdFailureReason: string | undefined; - // If we think the installed version of tar supports zstd, try to use zstd, - // but be prepared to fall back to gzip in case we were wrong. - if (zstdAvailability.available) { - try { - // To facilitate testing the fallback, fail here if a testing environment variable is set. - if (process.env.CODEQL_ACTION_FORCE_ZSTD_FAILURE === "true") { - throw new Error( - "Failing since CODEQL_ACTION_FORCE_ZSTD_FAILURE is true.", - ); - } - return await setupCodeQLBundleWithCompressionMethod( - toolsInput, - apiDetails, - tempDir, - variant, - defaultCliVersion, - features, - logger, - zstdAvailability, - true, - ); - } catch (e) { - zstdFailureReason = util.getErrorMessage(e) || "unknown error"; - if (e instanceof CommandInvocationError) { - zstdFailureReason += ` Full error: ${e.stderr}`; - logger.debug(`Invocation output the following to stderr: ${e.stderr}`); - } - logger.warning( - `Failed to set up CodeQL tools with zstd. Falling back to gzipped version. Error: ${util.getErrorMessage( - e, - )}`, - ); - } - } - - const result = await setupCodeQLBundleWithCompressionMethod( - toolsInput, - apiDetails, - tempDir, - variant, - defaultCliVersion, - features, - logger, - zstdAvailability, - false, - ); - if (result.toolsDownloadStatusReport && zstdFailureReason) { - result.toolsDownloadStatusReport.zstdFailureReason = zstdFailureReason; - } - return result; -} - -async function setupCodeQLBundleWithCompressionMethod( - toolsInput: string | undefined, - apiDetails: api.GitHubApiDetails, - tempDir: string, - variant: util.GitHubVariant, - defaultCliVersion: CodeQLDefaultVersionInfo, - features: FeatureEnablement, - logger: Logger, - zstdAvailability: tar.ZstdAvailability, - useTarIfAvailable: boolean, -) { const source = await getCodeQLSource( toolsInput, defaultCliVersion, apiDetails, variant, - useTarIfAvailable, - features, + zstdAvailability.available, logger, ); @@ -746,7 +691,6 @@ async function setupCodeQLBundleWithCompressionMethod( apiDetails, zstdAvailability.version, tempDir, - features, logger, ); toolsVersion = result.toolsVersion; @@ -769,14 +713,12 @@ async function setupCodeQLBundleWithCompressionMethod( async function useZstdBundle( cliVersion: string, - features: FeatureEnablement, tarSupportsZstd: boolean, ): Promise { return ( // In testing, gzip performs better than zstd on Windows. process.platform !== "win32" && tarSupportsZstd && - semver.gte(cliVersion, CODEQL_VERSION_ZSTD_BUNDLE) && - !!(await features.getValue(Feature.ZstdBundle)) + semver.gte(cliVersion, CODEQL_VERSION_ZSTD_BUNDLE) ); } diff --git a/src/tar.ts b/src/tar.ts index 48f611bb16..96fe294089 100644 --- a/src/tar.ts +++ b/src/tar.ts @@ -125,27 +125,30 @@ export async function extract( "Could not determine tar version, which is required to extract a Zstandard archive.", ); } - return await extractTarZst( - fs.createReadStream(tarPath), - tarVersion, - logger, - ); + return await extractTarZst(tarPath, tarVersion, logger); } } /** * Extract a compressed tar archive * - * @param file path to the tar + * @param tar tar stream, or path to the tar * @param dest destination directory. Optional. * @returns path to the destination directory */ export async function extractTarZst( - tarStream: stream.Readable, + tar: stream.Readable | string, tarVersion: TarVersion, logger: Logger, ): Promise { const dest = await createExtractFolder(); + logger.debug( + `Extracting to ${dest}.${ + tar instanceof stream.Readable + ? ` Input stream has high water mark ${tar.readableHighWaterMark}.` + : "" + }`, + ); try { // Initialize args @@ -157,7 +160,7 @@ export async function extractTarZst( args.push("--overwrite"); } - args.push("-f", "-", "-C", dest); + args.push("-f", tar instanceof stream.Readable ? "-" : tar, "-C", dest); process.stdout.write(`[command]tar ${args.join(" ")}\n`); @@ -175,7 +178,9 @@ export async function extractTarZst( process.stdout.write(data); }); - tarStream.pipe(tarProcess.stdin); + if (tar instanceof stream.Readable) { + tar.pipe(tarProcess.stdin); + } await new Promise((resolve, reject) => { tarProcess.on("exit", (code) => { diff --git a/src/testdata/codeql-bundle-pinned.tar.zst b/src/testdata/codeql-bundle-pinned.tar.zst new file mode 100644 index 0000000000..38a07421cf Binary files /dev/null and b/src/testdata/codeql-bundle-pinned.tar.zst differ diff --git a/src/testdata/codeql-bundle.tar.zst b/src/testdata/codeql-bundle.tar.zst new file mode 100644 index 0000000000..b2a65c7314 Binary files /dev/null and b/src/testdata/codeql-bundle.tar.zst differ diff --git a/src/testing-utils.ts b/src/testing-utils.ts index af51ddcb84..a9d9e05e83 100644 --- a/src/testing-utils.ts +++ b/src/testing-utils.ts @@ -290,23 +290,30 @@ export function mockBundleDownloadApi({ : "osx64"; const baseUrl = apiDetails?.url ?? "https://example.com"; - const relativeUrl = apiDetails - ? `/${repo}/releases/download/${tagName}/codeql-bundle${ - platformSpecific ? `-${platform}` : "" - }.tar.gz` - : `/download/${tagName}/codeql-bundle.tar.gz`; - - nock(baseUrl) - .get(relativeUrl) - .replyWithFile( - 200, - path.join( - __dirname, - `/../src/testdata/codeql-bundle${isPinned ? "-pinned" : ""}.tar.gz`, - ), - ); - return `${baseUrl}${relativeUrl}`; + const bundleUrls = ["tar.gz", "tar.zst"].map((extension) => { + const relativeUrl = apiDetails + ? `/${repo}/releases/download/${tagName}/codeql-bundle${ + platformSpecific ? `-${platform}` : "" + }.${extension}` + : `/download/${tagName}/codeql-bundle.${extension}`; + + nock(baseUrl) + .get(relativeUrl) + .replyWithFile( + 200, + path.join( + __dirname, + `/../src/testdata/codeql-bundle${ + isPinned ? "-pinned" : "" + }.${extension}`, + ), + ); + return `${baseUrl}${relativeUrl}`; + }); + + // Choose an arbitrary URL to return + return bundleUrls[0]; } export function createTestConfig(overrides: Partial): Config { @@ -331,6 +338,7 @@ export function createTestConfig(overrides: Partial): Config { }, trapCaches: {}, trapCacheDownloadTime: 0, + dependencyCachingEnabled: false, }, overrides, ); diff --git a/src/tools-download.ts b/src/tools-download.ts index b392ec960c..86ddbdffd0 100644 --- a/src/tools-download.ts +++ b/src/tools-download.ts @@ -1,4 +1,4 @@ -import { IncomingMessage, OutgoingHttpHeaders } from "http"; +import { IncomingMessage, OutgoingHttpHeaders, RequestOptions } from "http"; import * as path from "path"; import { performance } from "perf_hooks"; @@ -6,11 +6,15 @@ import * as toolcache from "@actions/tool-cache"; import { https } from "follow-redirects"; import { v4 as uuidV4 } from "uuid"; -import { Feature, FeatureEnablement } from "./feature-flags"; import { formatDuration, Logger } from "./logging"; import * as tar from "./tar"; import { cleanUpGlob } from "./util"; +/** + * High watermark to use when streaming the download and extraction of the CodeQL tools. + */ +export const STREAMING_HIGH_WATERMARK_BYTES = 4 * 1024 * 1024; // 4 MiB + /** * Timing information for the download and extraction of the CodeQL tools when * we fully download the bundle before extracting. @@ -72,7 +76,6 @@ export async function downloadAndExtract( headers: OutgoingHttpHeaders, tarVersion: tar.TarVersion | undefined, tempDir: string, - features: FeatureEnablement, logger: Logger, ): Promise<{ extractedBundlePath: string; @@ -84,10 +87,7 @@ export async function downloadAndExtract( const compressionMethod = tar.inferCompressionMethod(codeqlURL); - if ( - compressionMethod === "zstd" && - (await features.getValue(Feature.ZstdBundleStreamingExtraction)) - ) { + if (compressionMethod === "zstd" && process.platform === "linux") { logger.info(`Streaming the extraction of the CodeQL bundle.`); const toolsInstallStart = performance.now(); @@ -182,7 +182,14 @@ async function downloadAndExtractZstdWithStreaming( headers, ); const response = await new Promise((resolve) => - https.get(codeqlURL, { headers }, (r) => resolve(r)), + https.get( + codeqlURL, + { + headers, + highWaterMark: STREAMING_HIGH_WATERMARK_BYTES, + } as unknown as RequestOptions, + (r) => resolve(r), + ), ); if (response.statusCode !== 200) { diff --git a/src/tracer-config.ts b/src/tracer-config.ts index bbe902a1a4..1473dd366a 100644 --- a/src/tracer-config.ts +++ b/src/tracer-config.ts @@ -111,7 +111,7 @@ export async function getCombinedTracerConfig( // If the CLI doesn't yet support setting the CODEQL_RUNNER environment variable to // the runner executable path, we set it here in the Action. if (!(await codeql.supportsFeature(ToolsFeature.SetsCodeqlRunnerEnvVar))) { - // On MacOS when System Integrity Protection is enabled, it's necessary to prefix + // On macOS when System Integrity Protection is enabled, it's necessary to prefix // the build command with the runner executable for indirect tracing, so we expose // it here via the CODEQL_RUNNER environment variable. // The executable also exists and works for other platforms so we unconditionally diff --git a/src/trap-caching.ts b/src/trap-caching.ts index 9ef4d9aa1e..df790e3e41 100644 --- a/src/trap-caching.ts +++ b/src/trap-caching.ts @@ -312,18 +312,6 @@ export async function getLanguagesSupportingCaching( return result; } -export async function getTotalCacheSize( - trapCaches: Partial>, - logger: Logger, -): Promise { - const sizes = await Promise.all( - Object.values(trapCaches).map((cacheDir) => - tryGetFolderBytes(cacheDir, logger), - ), - ); - return sizes.map((a) => a || 0).reduce((a, b) => a + b, 0); -} - async function cacheKey( codeql: CodeQL, language: Language, diff --git a/src/upload-lib.ts b/src/upload-lib.ts index e7e3ba7f1a..c6a58a0c6a 100644 --- a/src/upload-lib.ts +++ b/src/upload-lib.ts @@ -221,7 +221,6 @@ async function combineSarifFilesUsingCLI( tempDir, gitHubVersion.type, codeQLDefaultVersionInfo, - features, logger, ); diff --git a/src/util.test.ts b/src/util.test.ts index 637ac62b7b..2091e2ffea 100644 --- a/src/util.test.ts +++ b/src/util.test.ts @@ -4,6 +4,7 @@ import path from "path"; import * as core from "@actions/core"; import test from "ava"; +import * as yaml from "js-yaml"; import * as sinon from "sinon"; import * as api from "./api-client"; @@ -144,7 +145,7 @@ test("getExtraOptionsEnvParam() succeeds on valid JSON with invalid options (for process.env.CODEQL_ACTION_EXTRA_OPTIONS = origExtraOptions; }); -test("getExtraOptionsEnvParam() succeeds on valid options", (t) => { +test("getExtraOptionsEnvParam() succeeds on valid JSON options", (t) => { const origExtraOptions = process.env.CODEQL_ACTION_EXTRA_OPTIONS; const options = { database: { init: ["--debug"] } }; @@ -155,10 +156,21 @@ test("getExtraOptionsEnvParam() succeeds on valid options", (t) => { process.env.CODEQL_ACTION_EXTRA_OPTIONS = origExtraOptions; }); +test("getExtraOptionsEnvParam() succeeds on valid YAML options", (t) => { + const origExtraOptions = process.env.CODEQL_ACTION_EXTRA_OPTIONS; + + const options = { database: { init: ["--debug"] } }; + process.env.CODEQL_ACTION_EXTRA_OPTIONS = yaml.dump(options); + + t.deepEqual(util.getExtraOptionsEnvParam(), { ...options }); + + process.env.CODEQL_ACTION_EXTRA_OPTIONS = origExtraOptions; +}); + test("getExtraOptionsEnvParam() fails on invalid JSON", (t) => { const origExtraOptions = process.env.CODEQL_ACTION_EXTRA_OPTIONS; - process.env.CODEQL_ACTION_EXTRA_OPTIONS = "{{invalid-json}}"; + process.env.CODEQL_ACTION_EXTRA_OPTIONS = "{{invalid-json}"; t.throws(util.getExtraOptionsEnvParam); process.env.CODEQL_ACTION_EXTRA_OPTIONS = origExtraOptions; diff --git a/src/util.ts b/src/util.ts index 66fa910b6b..35adc35018 100644 --- a/src/util.ts +++ b/src/util.ts @@ -8,6 +8,7 @@ import * as exec from "@actions/exec/lib/exec"; import checkDiskSpace from "check-disk-space"; import del from "del"; import getFolderSize from "get-folder-size"; +import * as yaml from "js-yaml"; import * as semver from "semver"; import * as apiCompatibility from "./api-compatibility.json"; @@ -121,7 +122,7 @@ export function getExtraOptionsEnvParam(): object { return {}; } try { - return JSON.parse(raw) as object; + return yaml.load(raw) as object; } catch (unwrappedError) { const error = wrapError(unwrappedError); throw new ConfigurationError(