From 7792e600231bb280451571243971eae869f956cb Mon Sep 17 00:00:00 2001 From: Mike Bostock Date: Mon, 2 Nov 2026 16:00:53 -0800 Subject: [PATCH 01/10] es bundle, pnpm Co-Authored-By: Claude Opus 5.5 --- .github/eslint.json | 18 - .github/workflows/node.js.yml | 30 - .github/workflows/publish.yml | 26 + .github/workflows/test.yml | 22 + LICENSE | 2 +- package.json | 24 +- pnpm-lock.yaml | 1647 +++++++++++++++++++++++++++++++++ rollup.config.js | 88 +- yarn.lock | 1131 ---------------------- 9 files changed, 1765 insertions(+), 1223 deletions(-) delete mode 100644 .github/eslint.json delete mode 100644 .github/workflows/node.js.yml create mode 100644 .github/workflows/publish.yml create mode 100644 .github/workflows/test.yml create mode 100644 pnpm-lock.yaml delete mode 100644 yarn.lock diff --git a/.github/eslint.json b/.github/eslint.json deleted file mode 100644 index c280fdb..0000000 --- a/.github/eslint.json +++ /dev/null @@ -1,18 +0,0 @@ -{ - "problemMatcher": [ - { - "owner": "eslint-compact", - "pattern": [ - { - "regexp": "^(.+):\\sline\\s(\\d+),\\scol\\s(\\d+),\\s(Error|Warning|Info)\\s-\\s(.+)\\s\\((.+)\\)$", - "file": 1, - "line": 2, - "column": 3, - "severity": 4, - "message": 5, - "code": 6 - } - ] - } - ] -} diff --git a/.github/workflows/node.js.yml b/.github/workflows/node.js.yml deleted file mode 100644 index 7e5ee59..0000000 --- a/.github/workflows/node.js.yml +++ /dev/null @@ -1,30 +0,0 @@ -# https://help.github.com/actions/language-and-framework-guides/using-nodejs-with-github-actions - -name: Node.js CI - -on: - push: - branches: [ main ] - pull_request: - branches: [ main ] - -jobs: - build: - - runs-on: ubuntu-latest - - strategy: - matrix: - node-version: [14.x] - - steps: - - uses: actions/checkout@v2 - - name: Use Node.js ${{ matrix.node-version }} - uses: actions/setup-node@v1 - with: - node-version: ${{ matrix.node-version }} - - run: yarn --frozen-lockfile - - run: | - echo ::add-matcher::.github/eslint.json - yarn run eslint src test --format=compact - - run: yarn test diff --git a/.github/workflows/publish.yml b/.github/workflows/publish.yml new file mode 100644 index 0000000..839d5c5 --- /dev/null +++ b/.github/workflows/publish.yml @@ -0,0 +1,26 @@ +name: Publish + +on: + workflow_dispatch: {} + release: + types: [published] + +permissions: + id-token: write + contents: read + +jobs: + publish: + runs-on: ubuntu-latest + steps: + - uses: actions/checkout@v7 + - uses: pnpm/action-setup@v6 + with: + version: 10 + - uses: actions/setup-node@v7 + with: + node-version: 24 + cache: pnpm + - run: pnpm install + - run: pnpm run test + - run: npm publish diff --git a/.github/workflows/test.yml b/.github/workflows/test.yml new file mode 100644 index 0000000..00a5a94 --- /dev/null +++ b/.github/workflows/test.yml @@ -0,0 +1,22 @@ +name: Test + +on: + push: + branches: [main] + pull_request: + branches: [main] + +jobs: + test: + runs-on: ubuntu-latest + steps: + - uses: actions/checkout@v7 + - uses: pnpm/action-setup@v6 + with: + version: 10 + - uses: actions/setup-node@v7 + with: + node-version: 24 + cache: pnpm + - run: pnpm install + - run: pnpm run test diff --git a/LICENSE b/LICENSE index b014515..a8918c4 100644 --- a/LICENSE +++ b/LICENSE @@ -1,4 +1,4 @@ -Copyright 2010-2021 Mike Bostock +Copyright 2010-2026 Mike Bostock Permission to use, copy, modify, and/or distribute this software for any purpose with or without fee is hereby granted, provided that the above copyright notice diff --git a/package.json b/package.json index fbdac72..e977761 100644 --- a/package.json +++ b/package.json @@ -23,36 +23,34 @@ "type": "module", "files": [ "dist/**/*.js", - "src/**/*.js", + "dist/**/*.mjs", "locale/*.json" ], - "module": "src/index.js", - "main": "src/index.js", + "module": "dist/d3-time-format.mjs", + "main": "dist/d3-time-format.mjs", "jsdelivr": "dist/d3-time-format.min.js", "unpkg": "dist/d3-time-format.min.js", "exports": { ".": { "umd": "./dist/d3-time-format.min.js", - "default": "./src/index.js" + "default": "./dist/d3-time-format.mjs" }, "./locale/*": "./locale/*.json" }, - "sideEffects": [ - "./src/defaultLocale.js" - ], + "sideEffects": false, "dependencies": { "d3-time": "1 - 3" }, "devDependencies": { - "eslint": "8", - "mocha": "9", - "rollup": "2", - "rollup-plugin-terser": "7" + "@rollup/plugin-node-resolve": "^16.0.3", + "@rollup/plugin-terser": "^1.0.2", + "eslint": "^8.57.1", + "mocha": "^10.8.2", + "rollup": "^4.67.4" }, "scripts": { "test": "TZ=America/Los_Angeles mocha 'test/**/*-test.js' && eslint src test", - "prepublishOnly": "rm -rf dist && yarn test && rollup -c", - "postpublish": "git push && git push --tags && cd ../d3.github.com && git pull && cp ../${npm_package_name}/dist/${npm_package_name}.js ${npm_package_name}.v${npm_package_version%%.*}.js && cp ../${npm_package_name}/dist/${npm_package_name}.min.js ${npm_package_name}.v${npm_package_version%%.*}.min.js && git add ${npm_package_name}.v${npm_package_version%%.*}.js ${npm_package_name}.v${npm_package_version%%.*}.min.js && git commit -m \"${npm_package_name} ${npm_package_version}\" && git push && cd -" + "prepublishOnly": "rm -rf dist && rollup -c" }, "engines": { "node": ">=12" diff --git a/pnpm-lock.yaml b/pnpm-lock.yaml new file mode 100644 index 0000000..d26af14 --- /dev/null +++ b/pnpm-lock.yaml @@ -0,0 +1,1647 @@ +lockfileVersion: '9.0' + +settings: + autoInstallPeers: true + excludeLinksFromLockfile: false + +importers: + + .: + dependencies: + d3-time: + specifier: 1 - 3 + version: 3.1.0 + devDependencies: + '@rollup/plugin-node-resolve': + specifier: ^16.0.3 + version: 16.0.3(rollup@4.67.4) + '@rollup/plugin-terser': + specifier: ^1.0.2 + version: 1.0.2(rollup@4.67.4) + eslint: + specifier: ^8.57.1 + version: 8.57.1 + mocha: + specifier: ^10.8.2 + version: 10.8.2 + rollup: + specifier: ^4.67.4 + version: 4.67.4 + +packages: + + '@eslint-community/eslint-utils@4.10.1': + resolution: {integrity: sha512-cuadcxVFE8sDK6iWJbs8Sn0av2Nrh2QSGQhVlBW9AaAHqHwjWsZHT8LJ4hFGPh7ASBV2deFdM7H/DPjulmh8rg==} + engines: {node: ^12.22.0 || ^14.17.0 || >=16.0.0} + peerDependencies: + eslint: ^6.0.0 || ^7.0.0 || >=8.0.0 + + '@eslint-community/regexpp@4.12.2': + resolution: {integrity: sha512-EriSTlt5OC9/7SXkRSCAhfSxxoSUgBm33OH+IkwbdpgoqsSsUg7y3uh+IICI/Qg4BBWr3U2i39RpmycbxMq4ew==} + engines: {node: ^12.0.0 || ^14.0.0 || >=16.0.0} + + '@eslint/eslintrc@2.1.4': + resolution: {integrity: sha512-269Z39MS6wVJtsoUl10L60WdkhJVdPG24Q4eZTH3nnF6lpvSShEK3wQjDX9JRWAUPvPh7COouPpU9IrqaZFvtQ==} + engines: {node: ^12.22.0 || ^14.17.0 || >=16.0.0} + + '@eslint/js@8.57.1': + resolution: {integrity: sha512-d9zaMRSTIKDLhctzH12MtXvJKSSUhaHcjV+2Z+GK+EEY7XKpP5yR4x+N3TAcHTcu963nIr+TMcCb4DBCYX1z6Q==} + engines: {node: ^12.22.0 || ^14.17.0 || >=16.0.0} + + '@humanwhocodes/config-array@0.13.0': + resolution: {integrity: sha512-DZLEEqFWQFiyK6h5YIeynKx7JlvCYWL0cImfSRXZ9l4Sg2efkFGTuFf6vzXjK1cq6IYkU+Eg/JizXw+TD2vRNw==} + engines: {node: '>=10.10.0'} + deprecated: Use @eslint/config-array instead + + '@humanwhocodes/module-importer@1.0.1': + resolution: {integrity: sha512-bxveV4V8v5Yb4ncFTT3rPSgZBOpCkjfK0y4oVVVJwIuDVBRMDXrPyXRL988i5ap9m9bnyEEjWfm5WkBmtffLfA==} + engines: {node: '>=12.22'} + + '@humanwhocodes/object-schema@2.0.3': + resolution: {integrity: sha512-93zYdMES/c1D69yZiKDBj0V24vqNzB/koF26KPaagAfd3P/4gUlh3Dys5ogAK+Exi9QyzlD8x/08Zt7wIKcDcA==} + deprecated: Use @eslint/object-schema instead + + '@jridgewell/gen-mapping@0.3.13': + resolution: {integrity: sha512-2kkt/7niJ6MgEPxF0bYdQ6etZaA+fQvDcLKckhy1yIQOzaoKjBBjSj63/aLVjYE3qhRt5dvM+uUyfCg6UKCBbA==} + + '@jridgewell/resolve-uri@3.1.2': + resolution: {integrity: sha512-bRISgCIjP20/tbWSPWMEi54QVPRZExkuD9lJL+UIxUKtwVJA8wW1Trb1jMs1RFXo1CBTNZ/5hpC9QvmKWdopKw==} + engines: {node: '>=6.0.0'} + + '@jridgewell/source-map@0.3.11': + resolution: {integrity: sha512-ZMp1V8ZFcPG5dIWnQLr3NSI1MiCU7UETdS/A0G8V/XWHvJv3ZsFqutJn1Y5RPmAPX6F3BiE397OqveU/9NCuIA==} + + '@jridgewell/sourcemap-codec@1.6.0': + resolution: {integrity: sha512-T7jf+5zgsZHwNJ4lvQ7/aezbyk0nNX+zJVWpmHA7VYsEx7a7qr5Rg5IbtJFqkgze5Y2sruq1RUY8Q837Od7iFw==} + + '@jridgewell/trace-mapping@0.3.31': + resolution: {integrity: sha512-zzNR+SdQSDJzc8joaeP8QQoCQr8NuYx2dIIytl1QeBEZHJ9uW6hebsrYgbz8hJwUQao3TWCMtmfV8Nu1twOLAw==} + + '@napi-rs/lzma-linux-x64-gnu@1.5.1': + resolution: {integrity: sha512-oTXEIha4SsuXdTA4Iyskj0kpdx2yVXdhd75c2v3xGrHFfVMsbhTPZU/nMPL4sWKo4pBHm3aucLaqGlF696dTyQ==} + engines: {node: ^22.20 || ^24.12 || >=25} + cpu: [x64] + os: [linux] + libc: [glibc] + + '@nodelib/fs.scandir@2.1.5': + resolution: {integrity: sha512-vq24Bq3ym5HEQm2NKCr3yXDwjc7vTsEThRDnkp2DK9p1uqLR+DHurm/NOTo0KG7HYHU7eppKZj3MyqYuMBf62g==} + engines: {node: '>= 8'} + + '@nodelib/fs.stat@2.0.5': + resolution: {integrity: sha512-RkhPPp2zrqDAQA/2jNhnztcPAlv64XdhIp7a7454A5ovI7Bukxgt7MX7udwAu3zg1DcpPU0rz3VV1SeaqvY4+A==} + engines: {node: '>= 8'} + + '@nodelib/fs.walk@1.2.8': + resolution: {integrity: sha512-oGB+UxlgWcgQkgwo8GcEGwemoTFt3FIO9ababBmaGwXIoBKZ+GTy0pP185beGg7Llih/NSHSV2XAs1lnznocSg==} + engines: {node: '>= 8'} + + '@rollup/plugin-node-resolve@16.0.3': + resolution: {integrity: sha512-lUYM3UBGuM93CnMPG1YocWu7X802BrNF3jW2zny5gQyLQgRFJhV1Sq0Zi74+dh/6NBx1DxFC4b4GXg9wUCG5Qg==} + engines: {node: '>=14.0.0'} + peerDependencies: + rollup: ^2.78.0||^3.0.0||^4.0.0 + peerDependenciesMeta: + rollup: + optional: true + + '@rollup/plugin-terser@1.0.2': + resolution: {integrity: sha512-+UihHnuLnQDQ/9wog7ym+7oawCXkjTIo0WwkK7s//0mkktTN0VhYk6fGVxH+NtGzW064w5RCGgreMDxRVhHCzw==} + engines: {node: '>=20.0.0'} + peerDependencies: + rollup: ^2.0.0||^3.0.0||^4.0.0 + peerDependenciesMeta: + rollup: + optional: true + + '@rollup/pluginutils@5.5.1': + resolution: {integrity: sha512-P9ZvnfouRu4MSC+ilERaw6FmZs8zqKhpHxEs4aGDGWQAMzQGXnhvCSvoNwokfNvdt7t3Y5Y4p6gStQgezeIqug==} + engines: {node: '>=14.0.0'} + peerDependencies: + rollup: ^1.20.0||^2.0.0||^3.0.0||^4.0.0 + peerDependenciesMeta: + rollup: + optional: true + + '@rollup/rollup-android-arm-eabi@4.67.4': + resolution: {integrity: sha512-/v/pUAPOcwp+r1Hjjdg0cBV1TE89CzGKrKh2FgkIQw2QBcIMmVPOCSfuOZStCn4Xh/98HXfo/ht6ztcssctPNg==} + cpu: [arm] + os: [android] + + '@rollup/rollup-android-arm64@4.67.4': + resolution: {integrity: sha512-6tmmB/P52Vt167FXXEw5auiEUgTtZz7aqUgWHqYXToIUE0HFDY6fTdAyeekjjsNk6O/8dtpSKtClxSj1mMneKQ==} + cpu: [arm64] + os: [android] + + '@rollup/rollup-android-x64@4.67.4': + resolution: {integrity: sha512-8Z9Q4RmotVmuL4llOvqX814JNiOK1oqoBv+glG5KbpRfUiypqzz2/fxIzK4Pq129l4dT5a8Gszmpc0/XPYoFuQ==} + cpu: [x64] + os: [android] + + '@rollup/rollup-darwin-arm64@4.67.4': + resolution: {integrity: sha512-pnq6hssxTtwuRAl6Kdi/+IDY+b1IhkUetjhUkdLAAJCssjfqtL2Oqy/FXJVJFtAWOu1oRlArIvf0Yk1O92x2HQ==} + cpu: [arm64] + os: [darwin] + + '@rollup/rollup-darwin-x64@4.67.4': + resolution: {integrity: sha512-BeIrGZvHMVdJg/N+ohZfFywG/gF41684YhDj2wBvouj7m9ziP1tZDUNwzXRiDY+3WIKngaC4hiUBqVtBPGP5og==} + cpu: [x64] + os: [darwin] + + '@rollup/rollup-freebsd-arm64@4.67.4': + resolution: {integrity: sha512-fRFX/oqNg/g780DKoS8RIfYcZD59Ru5O/bSeK1N7gQljBFrTxJY/q5EX4eMs5SrJf32VgVBVVYCdfPpzAwPPnQ==} + cpu: [arm64] + os: [freebsd] + + '@rollup/rollup-freebsd-x64@4.67.4': + resolution: {integrity: sha512-bSrBRopG1q+0RuOsW0NtYTtIODlvNA3T3ebx5WnQVdSxWIoXFmj+rZdHUHdSLgFdZ5M6VGmekYE7r4RMGQXjfg==} + cpu: [x64] + os: [freebsd] + + '@rollup/rollup-linux-arm-gnueabihf@4.67.4': + resolution: {integrity: sha512-L8IvdrJVtl65g1ozwDSyjGPG+FmibhCdFUwmqTItJLw0S3+Oj4QzFs7rfgTUiK7rsPjkCLdG1/GApFxoynXFJQ==} + cpu: [arm] + os: [linux] + libc: [glibc] + + '@rollup/rollup-linux-arm-musleabihf@4.67.4': + resolution: {integrity: sha512-h7PcoQOzC31jshNpQ48J0akB9tsghjkSjSl5AZ6XsVGTxVsln7t7C4SQyw62tNVSaz2SeHgk4VT2ELbL17BSHQ==} + cpu: [arm] + os: [linux] + libc: [musl] + + '@rollup/rollup-linux-arm64-gnu@4.67.4': + resolution: {integrity: sha512-KSPuOBNHoOl7AsVjeY1KZci8+0up0U4TFAHU5IzBYN8P+Z6cB9DZq28+JQycZW7f6WLLa/tSzhV7Rdy95bVi+g==} + cpu: [arm64] + os: [linux] + libc: [glibc] + + '@rollup/rollup-linux-arm64-musl@4.67.4': + resolution: {integrity: sha512-0E/mKmVk1PlQeQYygIwQm0jlwjANTzGSiNBMPrFx+rdFGFj/2Axh4p6XwcrystQIqXZVudTaGsdbDpzYgJ4wSA==} + cpu: [arm64] + os: [linux] + libc: [musl] + + '@rollup/rollup-linux-loong64-gnu@4.67.4': + resolution: {integrity: sha512-Fvw7dOSc2Sa9UOipRZVI0zOgdLCzsjVyD/6JuHXzUHTXFu7mMgmeX/0/bCVBIut1dz+nWz3pV4WpS/Qg0XVnxw==} + cpu: [loong64] + os: [linux] + libc: [glibc] + + '@rollup/rollup-linux-loong64-musl@4.67.4': + resolution: {integrity: sha512-jzxbVHaE7V3F+P0wEK7UydQtvv7Twfdtx58jI5/3VRx1jJxyrn+qFwfXmqjVFxPhBl+zjaRs+ZJMFJw7vdHaQA==} + cpu: [loong64] + os: [linux] + libc: [musl] + + '@rollup/rollup-linux-ppc64-gnu@4.67.4': + resolution: {integrity: sha512-fhtrzp9p4GjEJVaigaap9g6X9nP6xgJtKiLLXSDgpE18HXufA5aqfltGn+KAqMtVZReJZfOrXm//y5YSA9BWbA==} + cpu: [ppc64] + os: [linux] + libc: [glibc] + + '@rollup/rollup-linux-ppc64-musl@4.67.4': + resolution: {integrity: sha512-uynaF7IUHwAckV0S+yC1f5esy9gB+aqCBsPH5BOck32TYdCuAn2lVG5tvUcFnEsrviGEmRZxE1NHSOieUPYJEg==} + cpu: [ppc64] + os: [linux] + libc: [musl] + + '@rollup/rollup-linux-riscv64-gnu@4.67.4': + resolution: {integrity: sha512-uaqRFdfb8eIa2bVHN/FE3ndCvR0zV2xv0AwjCfxrqSu6l6fp/54VhjfhslKlf2RIik9L1jwlt4E56PeVX6tQtQ==} + cpu: [riscv64] + os: [linux] + libc: [glibc] + + '@rollup/rollup-linux-riscv64-musl@4.67.4': + resolution: {integrity: sha512-JZRow7kmxUDEASnxHuVG5itTm+nTXi9BQUABcVUnUEngC+OPwMrpx1uJ9hIA/v+IcAEBL52ktCSPXk5OJn9Jqg==} + cpu: [riscv64] + os: [linux] + libc: [musl] + + '@rollup/rollup-linux-s390x-gnu@4.67.4': + resolution: {integrity: sha512-rdrh4e+Lq9fCNKoDPaCqeHXbQCe7yl77Ukl45tlSClwYdZ1gpFGZz1XLJdYtY++FRlfL5aHvb6/0n3GDW/Nxsw==} + cpu: [s390x] + os: [linux] + libc: [glibc] + + '@rollup/rollup-linux-x64-gnu@4.67.4': + resolution: {integrity: sha512-wL7MS4r0fYcxluF3ne2plofHZiB/LsqNCnyaUlyiKpAJLb6agPSFz7DEFCfkonWAZXMrLwCmC08b2ZEnEdJkog==} + cpu: [x64] + os: [linux] + libc: [glibc] + + '@rollup/rollup-linux-x64-musl@4.67.4': + resolution: {integrity: sha512-4H0XHfd2VufGjX7NjUyeue78sD0bRIoKSGjGqO+F5nSvL6jN48NAU7esdmtFEYxZXwObLtt3MJ/kHS0jASMW3g==} + cpu: [x64] + os: [linux] + libc: [musl] + + '@rollup/rollup-openbsd-x64@4.67.4': + resolution: {integrity: sha512-osRHQbE55pZpCLetpMsFmhkapyZnAUH73qRKMh+npi3boUom6u6hdaTTPSxlInXxwJHsn9r2uDhdz0V7Yoxx2A==} + cpu: [x64] + os: [openbsd] + + '@rollup/rollup-openharmony-arm64@4.67.4': + resolution: {integrity: sha512-95+exYEyOwrZePsE0czi4q7X5lxKPa21+lmyAZlwbYENITQ0Unk4HAQAFp/p+KhXBHBx9mUABXRYjOC5A1wY3Q==} + cpu: [arm64] + os: [openharmony] + + '@rollup/rollup-win32-arm64-msvc@4.67.4': + resolution: {integrity: sha512-FOXOcKhNQpO4Po+Ynan6IbtM67SrXZbgpRJWVYwz53CT5veI7sVzDwVBmWS65N5Imv+wK3SVhIPAl+C5DXXNCg==} + cpu: [arm64] + os: [win32] + + '@rollup/rollup-win32-ia32-msvc@4.67.4': + resolution: {integrity: sha512-cklKh0gJOkAZQcWziQa3hrjxZKN+PCHZ7SPTyGJDAiBVr05ZXlEjGFCG7zFJMaVibxsmzAe1FimN4u/HBns9+Q==} + cpu: [ia32] + os: [win32] + + '@rollup/rollup-win32-x64-gnu@4.67.4': + resolution: {integrity: sha512-AegwxJPc9bvUp8fQtlsUHkFMOMkGylWU7glyL+YD4vwG+QaYoGXYLSsQoeTD7kvoLZrVlMWNVhTg1dedY5C1VQ==} + cpu: [x64] + os: [win32] + + '@rollup/rollup-win32-x64-msvc@4.67.4': + resolution: {integrity: sha512-RJZnrwTWj7Iq2ooBwoGbDdC65tDwYawneGcAfFMJqVUrRZMcskka6nTkBpXR/47G7kzn3EW2qupExnaBy11vwg==} + cpu: [x64] + os: [win32] + + '@types/estree@1.0.10': + resolution: {integrity: sha512-lTyOMnOcmRBzdCv6/4zUZCrEhV0xrqQiUZBZtVcbmLHBXKLnN8q89v/wKRF/Q0HbwVsqbIG3o5HDoFl9sduM+g==} + + '@types/resolve@1.20.2': + resolution: {integrity: sha512-60BCwRFOZCQhDncwQdxxeOEEkbc5dIMccYLwbxsS4TUNeVECQ/pBJ0j09mrHOl/JJvpRPGwO9SvE4nR2Nb/a4Q==} + + '@ungap/structured-clone@1.4.0': + resolution: {integrity: sha512-1mEZtMKPM09vDmQt5y7YvmN2+DFTP7Tg0EWXdic8/C6VRnpb33e4ghisCIE3WZjsE2N8mf+QV1Zqh7ZFYLWInQ==} + + acorn-jsx@5.3.2: + resolution: {integrity: sha512-rq9s+JNhf0IChjtDXxllJ7g41oZk5SlXtp0LHwyA5cejwn7vKmKp4pPri6YEePv2PU65sAsegbXtIinmDFDXgQ==} + peerDependencies: + acorn: ^6.0.0 || ^7.0.0 || ^8.0.0 + + acorn@8.19.0: + resolution: {integrity: sha512-oJlA3XiRm7Cyk6qFD2Jn8ak9B7jSy0qy00ADO3+8dpT0LSjFihQYv4C02LFCSYJV3Q37xYwwRy5m+IpIiUzqWw==} + engines: {node: '>=0.4.0'} + hasBin: true + + ajv@6.15.0: + resolution: {integrity: sha512-fgFx7Hfoq60ytK2c7DhnF8jIvzYgOMxfugjLOSMHjLIPgenqa7S7oaagATUq99mV6IYvN2tRmC0wnTYX6iPbMw==} + + ansi-colors@4.1.3: + resolution: {integrity: sha512-/6w/C21Pm1A7aZitlI5Ni/2J6FFQN8i1Cvz3kHABAAbw93v/NlvKdVOqz7CCWz/3iv/JplRSEEZ83XION15ovw==} + engines: {node: '>=6'} + + ansi-regex@5.0.1: + resolution: {integrity: sha512-quJQXlTSUGL2LH9SUXo8VwsY4soanhgo6LNSm84E1LBcE8s3O0wpdiRzyR9z/ZZJMlMWv37qOOb9pdJlMUEKFQ==} + engines: {node: '>=8'} + + ansi-styles@4.3.0: + resolution: {integrity: sha512-zbB9rCJAT1rbjiVDb2hqKFHNYLxgtk8NURxZ3IZwD3F6NtxbXZQCnnSi1Lkx+IDohdPlFp222wVALIheZJQSEg==} + engines: {node: '>=8'} + + anymatch@3.1.3: + resolution: {integrity: sha512-KMReFUr0B4t+D+OBkjR3KYqvocp2XaSzO55UcB6mgQMd3KbcE+mWTyvVV7D/zsdEbNnV6acZUutkiHQXvTr1Rw==} + engines: {node: '>= 8'} + + argparse@2.0.1: + resolution: {integrity: sha512-8+9WqebbFzpX9OR+Wa6O29asIogeRMzcGtAINdpMHHyAg10f05aSFVBbcEqGf/PXw1EjAZ+q2/bEBg3DvurK3Q==} + + balanced-match@1.0.2: + resolution: {integrity: sha512-3oSeUO0TMV67hN1AmbXsK4yaqU7tjiHlbxRDZOpH0KW9+CeX4bRAaX0Anxt0tx2MrpRpWwQaPwIlISEJhYU5Pw==} + + binary-extensions@2.3.0: + resolution: {integrity: sha512-Ceh+7ox5qe7LJuLHoY0feh3pHuUDHAcRUeyL2VYghZwfpkNIy/+8Ocg0a3UuSoYzavmylwuLWQOf3hl0jjMMIw==} + engines: {node: '>=8'} + + brace-expansion@1.1.21: + resolution: {integrity: sha512-9zeA+KLZNNzglF2TPKRQEDyx6Yby7daAkuy8MiPzpXPsYDWi/DRM8jmwUDxokQjYqBpv5DgPiwD4h4ZZSy1Ujw==} + + brace-expansion@2.1.7: + resolution: {integrity: sha512-uZbew1NqdmPDTMJ8ah1y+b+9QEJrfkXFk3RcTQw3X0jW/xRUvFKsg1CfQdSYGdTbXZWExtU3J3ccxtnfw1Fi0g==} + + braces@3.0.3: + resolution: {integrity: sha512-yQbXgO/OSZVD2IsiLlro+7Hf6Q18EJrKSEsdoMzKePKXct3gvD8oLcOQdIzGupr5Fj+EDe8gO/lxc1BzfMpxvA==} + engines: {node: '>=8'} + + browser-stdout@1.3.1: + resolution: {integrity: sha512-qhAVI1+Av2X7qelOfAIYwXONood6XlZE/fXaBSmW/T5SzLAmCgzi+eiWE7fUvbHaeNBQH13UftjpXxsfLkMpgw==} + + buffer-from@1.1.2: + resolution: {integrity: sha512-E+XQCRwSbaaiChtv6k6Dwgc+bx+Bs6vuKJHHl5kox/BaKbhiXzqQOwK4cO22yElGp2OCmjwVhT3HmxgyPGnJfQ==} + + callsites@3.1.0: + resolution: {integrity: sha512-P8BjAsXvZS+VIDUI11hHCQEv74YT67YUi5JJFNWIqL235sBmjX4+qx9Muvls5ivyNENctx46xQLQ3aTuE7ssaQ==} + engines: {node: '>=6'} + + camelcase@6.3.0: + resolution: {integrity: sha512-Gmy6FhYlCY7uOElZUSbxo2UCDH8owEk996gkbrpsgGtrJLM3J7jGxl9Ic7Qwwj4ivOE5AWZWRMecDdF7hqGjFA==} + engines: {node: '>=10'} + + chalk@4.1.2: + resolution: {integrity: sha512-oKnbhFyRIXpUuez8iBMmyEa4nbj4IOQyuhc/wy9kY7/WVPcwIO9VA668Pu8RkO7+0G76SLROeyw9CpQ061i4mA==} + engines: {node: '>=10'} + + chokidar@3.6.0: + resolution: {integrity: sha512-7VT13fmjotKpGipCW9JEQAusEPE+Ei8nl6/g4FBAmIm0GOOLMua9NDDo/DWp0ZAxCr3cPq5ZpBqmPAQgDda2Pw==} + engines: {node: '>= 8.10.0'} + + cliui@7.0.4: + resolution: {integrity: sha512-OcRE68cOsVMXp1Yvonl/fzkQOyjLSu/8bhPDfQt0e0/Eb283TKP20Fs2MqoPsr9SwA595rRCA+QMzYc9nBP+JQ==} + + color-convert@2.0.1: + resolution: {integrity: sha512-RRECPsj7iu/xb5oKYcsFHSppFNnsj/52OVTRKb4zP5onXwVF3zVmmToNcOfGC+CRDpfK/U584fMg38ZHCaElKQ==} + engines: {node: '>=7.0.0'} + + color-name@1.1.4: + resolution: {integrity: sha512-dOy+3AuW3a2wNbZHIuMZpTcgjGuLU/uBL/ubcZF9OXbDo8ff4O8yVp5Bf0efS8uEoYo5q4Fx7dY9OgQGXgAsQA==} + + commander@2.20.3: + resolution: {integrity: sha512-GpVkmM8vF2vQUkj2LvZmD35JxeJOLCwJ9cUkugyk2nuhbv3+mJvpLYYt+0+USMxE+oj+ey/lJEnhZw75x/OMcQ==} + + concat-map@0.0.1: + resolution: {integrity: sha512-/Srv4dswyQNBfohGpz9o6Yb3Gz3SrUDqBH5rTuhGR7ahtlbYKnVxw2bCFMRljaA7EXHaXZ8wsHdodFvbkhKmqg==} + + cross-spawn@7.0.6: + resolution: {integrity: sha512-uV2QOWP2nWzsy2aMp8aRibhi9dlzF5Hgh5SHaB9OiTGEyDTiJJyx0uy51QXdyWbtAHNua4XJzUKca3OzKUd3vA==} + engines: {node: '>= 8'} + + d3-array@3.2.4: + resolution: {integrity: sha512-tdQAmyA18i4J7wprpYq8ClcxZy3SC31QMeByyCFyRt7BVHdREQZ5lpzoe5mFEYZUWe+oq8HBvk9JjpibyEV4Jg==} + engines: {node: '>=12'} + + d3-time@3.1.0: + resolution: {integrity: sha512-VqKjzBLejbSMT4IgbmVgDjpkYrNWUYJnbCGo874u7MMKIWsILRX+OpX/gTk8MqjpT1A/c6HY2dCA77ZN0lkQ2Q==} + engines: {node: '>=12'} + + debug@4.4.3: + resolution: {integrity: sha512-RGwwWnwQvkVfavKVt22FGLw+xYSdzARwm0ru6DhTVA3umU5hZc28V3kO4stgYryrTlLpuvgI9GiijltAjNbcqA==} + engines: {node: '>=6.0'} + peerDependencies: + supports-color: '*' + peerDependenciesMeta: + supports-color: + optional: true + + decamelize@4.0.0: + resolution: {integrity: sha512-9iE1PgSik9HeIIw2JO94IidnE3eBoQrFJ3w7sFuzSX4DpmZ3v5sZpUiV5Swcf6mQEF+Y0ru8Neo+p+nyh2J+hQ==} + engines: {node: '>=10'} + + deep-is@0.1.4: + resolution: {integrity: sha512-oIPzksmTg4/MriiaYGO+okXDT7ztn/w3Eptv/+gSIdMdKsJo0u4CfYNFJPy+4SKMuCqGw2wxnA+URMg3t8a/bQ==} + + deepmerge@4.3.1: + resolution: {integrity: sha512-3sUqbMEc77XqpdNO7FRyRog+eW3ph+GYCbj+rK+uYyRMuwsVy0rMiVtPn+QJlKFvWP/1PYpapqYn0Me2knFn+A==} + engines: {node: '>=0.10.0'} + + diff@5.2.2: + resolution: {integrity: sha512-vtcDfH3TOjP8UekytvnHH1o1P4FcUdt4eQ1Y+Abap1tk/OB2MWQvcwS2ClCd1zuIhc3JKOx6p3kod8Vfys3E+A==} + engines: {node: '>=0.3.1'} + + doctrine@3.0.0: + resolution: {integrity: sha512-yS+Q5i3hBf7GBkd4KG8a7eBNNWNGLTaEwwYWUijIYM7zrlYDM0BFXHjjPWlWZ1Rg7UaddZeIDmi9jF3HmqiQ2w==} + engines: {node: '>=6.0.0'} + + emoji-regex@8.0.0: + resolution: {integrity: sha512-MSjYzcWNOA0ewAHpz0MxpYFvwg6yjy1NG3xteoqz644VCo/RPgnr1/GGt+ic3iJTzQ8Eu3TdM14SawnVUmGE6A==} + + es-errors@1.3.0: + resolution: {integrity: sha512-Zf5H2Kxt2xjTvbJvP2ZWLEICxA6j+hAmMzIlypy4xcBg1vKVnx89Wy0GbS+kf5cwCVFFzdCFh2XSCFNULS6csw==} + engines: {node: '>= 0.4'} + + escalade@3.2.0: + resolution: {integrity: sha512-WUj2qlxaQtO4g6Pq5c29GTcWGDyd8itL8zTlipgECz3JesAiiOKotd8JU6otB3PACgG6xkJUyVhboMS+bje/jA==} + engines: {node: '>=6'} + + escape-string-regexp@4.0.0: + resolution: {integrity: sha512-TtpcNJ3XAzx3Gq8sWRzJaVajRs0uVxA2YAkdb1jm2YkPz4G6egUFAyA3n5vtEIZefPk5Wa4UXbKuS5fKkJWdgA==} + engines: {node: '>=10'} + + eslint-scope@7.2.2: + resolution: {integrity: sha512-dOt21O7lTMhDM+X9mB4GX+DZrZtCUJPL/wlcTqxyrx5IvO0IYtILdtrQGQp+8n5S0gwSVmOf9NQrjMOgfQZlIg==} + engines: {node: ^12.22.0 || ^14.17.0 || >=16.0.0} + + eslint-visitor-keys@3.4.3: + resolution: {integrity: sha512-wpc+LXeiyiisxPlEkUzU6svyS1frIO3Mgxj1fdy7Pm8Ygzguax2N3Fa/D/ag1WqbOprdI+uY6wMUl8/a2G+iag==} + engines: {node: ^12.22.0 || ^14.17.0 || >=16.0.0} + + eslint@8.57.1: + resolution: {integrity: sha512-ypowyDxpVSYpkXr9WPv2PAZCtNip1Mv5KTW0SCurXv/9iOpcrH9PaqUElksqEB6pChqHGDRCFTyrZlGhnLNGiA==} + engines: {node: ^12.22.0 || ^14.17.0 || >=16.0.0} + deprecated: This version is no longer supported. Please see https://eslint.org/version-support for other options. + hasBin: true + + espree@9.6.1: + resolution: {integrity: sha512-oruZaFkjorTpF32kDSI5/75ViwGeZginGGy2NoOSg3Q9bnwlnmDm4HLnkl0RE3n+njDXR037aY1+x58Z/zFdwQ==} + engines: {node: ^12.22.0 || ^14.17.0 || >=16.0.0} + + esquery@1.7.0: + resolution: {integrity: sha512-Ap6G0WQwcU/LHsvLwON1fAQX9Zp0A2Y6Y/cJBl9r/JbW90Zyg4/zbG6zzKa2OTALELarYHmKu0GhpM5EO+7T0g==} + engines: {node: '>=0.10'} + + esrecurse@4.3.0: + resolution: {integrity: sha512-KmfKL3b6G+RXvP8N1vr3Tq1kL/oCFgn2NYXEtqP8/L3pKapUA4G8cFVaoF3SU323CD4XypR/ffioHmkti6/Tag==} + engines: {node: '>=4.0'} + + estraverse@5.3.0: + resolution: {integrity: sha512-MMdARuVEQziNTeJD8DgMqmhwR11BRQ/cBP+pLtYdSTnf3MIO8fFeiINEbX36ZdNlfU/7A9f3gUw49B3oQsvwBA==} + engines: {node: '>=4.0'} + + estree-walker@2.0.2: + resolution: {integrity: sha512-Rfkk/Mp/DL7JVje3u18FxFujQlTNR2q6QfMSMB7AvCBx91NGj/ba3kCfza0f6dVDbw7YlRf/nDrn7pQrCCyQ/w==} + + esutils@2.0.3: + resolution: {integrity: sha512-kVscqXk4OCp68SZ0dkgEKVi6/8ij300KBWTJq32P/dYeWTSwK41WyTxalN1eRmA5Z9UU/LX9D7FWSmV9SAYx6g==} + engines: {node: '>=0.10.0'} + + fast-deep-equal@3.1.3: + resolution: {integrity: sha512-f3qQ9oQy9j2AhBe/H9VC91wLmKBCCU/gDOnKNAYG5hswO7BLKj09Hc5HYNz9cGI++xlpDCIgDaitVs03ATR84Q==} + + fast-json-stable-stringify@2.1.0: + resolution: {integrity: sha512-lhd/wF+Lk98HZoTCtlVraHtfh5XYijIjalXck7saUtuanSDyLMxnHhSXEDJqHxD7msR8D0uCmqlkwjCV8xvwHw==} + + fast-levenshtein@2.0.6: + resolution: {integrity: sha512-DCXu6Ifhqcks7TZKY3Hxp3y6qphY5SJZmrWMDrKcERSOXWQdMhU9Ig/PYrzyw/ul9jOIyh0N4M0tbC5hodg8dw==} + + fastq@1.20.3: + resolution: {integrity: sha512-XKv5nnLs6nLF71NgiKJLIZFLkPyIEuOselLG7ujZnGrRfQK8HpvY+WqKhAJUAdLomwVHErVS4LfxFlPq0/FTAw==} + + file-entry-cache@6.0.1: + resolution: {integrity: sha512-7Gps/XWymbLk2QLYK4NzpMOrYjMhdIxXuIvy2QBsLE6ljuodKvdkWs/cpyJJ3CVIVpH0Oi1Hvg1ovbMzLdFBBg==} + engines: {node: ^10.12.0 || >=12.0.0} + + fill-range@7.1.1: + resolution: {integrity: sha512-YsGpe3WHLK8ZYi4tWDg2Jy3ebRz2rXowDxnld4bkQB00cc/1Zw9AWnC0i9ztDJitivtQvaI9KaLyKrc+hBW0yg==} + engines: {node: '>=8'} + + find-up@5.0.0: + resolution: {integrity: sha512-78/PXT1wlLLDgTzDs7sjq9hzz0vXD+zn+7wypEe4fXQxCmdmqfGsEPQxmiCSQI3ajFV91bVSsvNtrJRiW6nGng==} + engines: {node: '>=10'} + + flat-cache@3.2.0: + resolution: {integrity: sha512-CYcENa+FtcUKLmhhqyctpclsq7QF38pKjZHsGNiSQF5r4FtoKDWabFDl3hzaEQMvT1LHEysw5twgLvpYYb4vbw==} + engines: {node: ^10.12.0 || >=12.0.0} + + flat@5.0.2: + resolution: {integrity: sha512-b6suED+5/3rTpUBdG1gupIl8MPFCAMA0QXwmljLhvCUKcUvdE4gWky9zpuGCcXHOsz4J9wPGNWq6OKpmIzz3hQ==} + hasBin: true + + flatted@3.4.4: + resolution: {integrity: sha512-5+ybhBZANEJxaH3X5evAFatUxLfEHSr7n6kYJ+1Qd0mUqr4eu9gIf6GDbWHf8RJijHrjjO8G+la14SlL2SeS1Q==} + + fs.realpath@1.0.0: + resolution: {integrity: sha512-OO0pH2lK6a0hZnAdau5ItzHPI6pUlvI7jMVnxUQRtw4owF2wk8lOSabtGDCTP4Ggrg2MbGnWO9X8K1t4+fGMDw==} + + fsevents@2.3.3: + resolution: {integrity: sha512-5xoDfX+fL7faATnagmWPpbFtwh/R77WmMMqqHGS65C3vvB0YHrgF+B1YmZ3441tMj5n63k0212XNoJwzlhffQw==} + engines: {node: ^8.16.0 || ^10.6.0 || >=11.0.0} + os: [darwin] + + function-bind@1.1.2: + resolution: {integrity: sha512-7XHNxH7qX9xG5mIwxkhumTox/MIRNcOgDrxWsMt2pAr23WHp6MrRlN7FBSFpCpr+oVO0F744iUgR82nJMfG2SA==} + + get-caller-file@2.0.5: + resolution: {integrity: sha512-DyFP3BM/3YHTQOCUL/w0OZHR0lpKeGrxotcHWcqNEdnltqFwXVfhEBQ94eIo34AfQpo0rGki4cyIiftY06h2Fg==} + engines: {node: 6.* || 8.* || >= 10.*} + + glob-parent@5.1.2: + resolution: {integrity: sha512-AOIgSQCepiJYwP3ARnGx+5VnTu2HBYdzbGP45eLw1vr3zB3vZLeyed1sC9hnbcOc9/SrMyM5RPQrkGz4aS9Zow==} + engines: {node: '>= 6'} + + glob-parent@6.0.2: + resolution: {integrity: sha512-XxwI8EOhVQgWp6iDL+3b0r86f4d6AX6zSU55HfB4ydCEuXLXc5FcYeOu+nnGftS4TEju/11rt4KJPTMgbfmv4A==} + engines: {node: '>=10.13.0'} + + glob@7.2.3: + resolution: {integrity: sha512-nFR0zLpU2YCaRxwoCJvL6UvCH2JFyFVIvwTLsIf21AuHlMskA1hhTdk+LlYJtOlYt9v6dvszD2BGRqBL+iQK9Q==} + deprecated: Old versions of glob are not supported, and contain widely publicized security vulnerabilities, which have been fixed in the current version. Please update. Support for old versions may be purchased (at exorbitant rates) by contacting i@izs.me + + glob@8.1.0: + resolution: {integrity: sha512-r8hpEjiQEYlF2QU0df3dS+nxxSIreXQS1qRhMJM0Q5NDdR386C7jb7Hwwod8Fgiuex+k0GFjgft18yvxm5XoCQ==} + engines: {node: '>=12'} + deprecated: Old versions of glob are not supported, and contain widely publicized security vulnerabilities, which have been fixed in the current version. Please update. Support for old versions may be purchased (at exorbitant rates) by contacting i@izs.me + + globals@13.24.0: + resolution: {integrity: sha512-AhO5QUcj8llrbG09iWhPU2B204J1xnPeL8kQmVorSsy+Sjj1sk8gIyh6cUocGmH4L0UuhAJy+hJMRA4mgA4mFQ==} + engines: {node: '>=8'} + + graphemer@1.4.0: + resolution: {integrity: sha512-EtKwoO6kxCL9WO5xipiHTZlSzBm7WLT627TqC/uVRd0HKmq8NXyebnNYxDoBi7wt8eTWrUrKXCOVaFq9x1kgag==} + + has-flag@4.0.0: + resolution: {integrity: sha512-EykJT/Q1KjTWctppgIAgfSO0tKVuZUjhgMr17kqTumMl6Afv3EISleU7qZUzoXDFTAHTDC4NOoG/ZxU3EvlMPQ==} + engines: {node: '>=8'} + + hasown@2.0.4: + resolution: {integrity: sha512-T2UbfbBEF32wiepXIsMlTW9+dDYC6wMh/t/vYA4tuOMKqWz/n3vr1NFSxQiyP+zk2mXsoMA/i/7qV6LKut1t1A==} + engines: {node: '>= 0.4'} + + he@1.2.0: + resolution: {integrity: sha512-F/1DnUGPopORZi0ni+CvrCgHQ5FyEAHRLSApuYWMmrbSwoN2Mn/7k+Gl38gJnR7yyDZk6WLXwiGod1JOWNDKGw==} + hasBin: true + + ignore@5.3.2: + resolution: {integrity: sha512-hsBTNUqQTDwkWtcdYI2i06Y/nUBEsNEDJKjWdigLvegy8kDuJAS8uRlpkkcQpyEXL0Z/pjDy5HBmMjRCJ2gq+g==} + engines: {node: '>= 4'} + + import-fresh@3.3.1: + resolution: {integrity: sha512-TR3KfrTZTYLPB6jUjfx6MF9WcWrHL9su5TObK4ZkYgBdWKPOFoSoQIdEuTuR82pmtxH2spWG9h6etwfr1pLBqQ==} + engines: {node: '>=6'} + + imurmurhash@0.1.4: + resolution: {integrity: sha512-JmXMZ6wuvDmLiHEml9ykzqO6lwFbof0GG4IkcGaENdCRDDmMVnny7s5HsIgHCbaq0w2MyPhDqkhTUgS2LU2PHA==} + engines: {node: '>=0.8.19'} + + inflight@1.0.6: + resolution: {integrity: sha512-k92I/b08q4wvFscXCLvqfsHCrjrF7yiXsQuIVvVE7N82W3+aqpzuUdBbfhWcy/FZR3/4IgflMgKLOsvPDrGCJA==} + deprecated: This module is not supported, and leaks memory. Do not use it. Check out lru-cache if you want a good and tested way to coalesce async requests by a key value, which is much more comprehensive and powerful. + + inherits@2.0.4: + resolution: {integrity: sha512-k/vGaX4/Yla3WzyMCvTQOXYeIHvqOKtnqBduzTHpzpQZzAskKMhZ2K+EnBiSM9zGSoIFeMpXKxa4dYeZIQqewQ==} + + internmap@2.0.3: + resolution: {integrity: sha512-5Hh7Y1wQbvY5ooGgPbDaL5iYLAPzMTUrjMulskHLH6wnv/A+1q5rgEaiuqEjB+oxGXIVZs1FF+R/KPN3ZSQYYg==} + engines: {node: '>=12'} + + is-binary-path@2.1.0: + resolution: {integrity: sha512-ZMERYes6pDydyuGidse7OsHxtbI7WVeUEozgR/g7rd0xUimYNlvZRE/K2MgZTjWy725IfelLeVcEM97mmtRGXw==} + engines: {node: '>=8'} + + is-core-module@2.17.0: + resolution: {integrity: sha512-J/vG0zBCbIKOQFfufSwyXdMrsohyJIUNkrnmo6WZGzoM7tr/lsbfW5b2BvisL6zsyMzK9UxV9L6c7AoFbyXHOA==} + engines: {node: '>= 0.4'} + + is-extglob@2.1.1: + resolution: {integrity: sha512-SbKbANkN603Vi4jEZv49LeVJMn4yGwsbzZworEoyEiutsN3nJYdbO36zfhGJ6QEDpOZIFkDtnq5JRxmvl3jsoQ==} + engines: {node: '>=0.10.0'} + + is-fullwidth-code-point@3.0.0: + resolution: {integrity: sha512-zymm5+u+sCsSWyD9qNaejV3DFvhCKclKdizYaJUuHA83RLjb7nSuGnddCHGv0hk+KY7BMAlsWeK4Ueg6EV6XQg==} + engines: {node: '>=8'} + + is-glob@4.0.3: + resolution: {integrity: sha512-xelSayHH36ZgE7ZWhli7pW34hNbNl8Ojv5KVmkJD4hBdD3th8Tfk9vYasLM+mXWOZhFkgZfxhLSnrwRr4elSSg==} + engines: {node: '>=0.10.0'} + + is-module@1.0.0: + resolution: {integrity: sha512-51ypPSPCoTEIN9dy5Oy+h4pShgJmPCygKfyRCISBI+JoWT/2oJvK8QPxmwv7b/p239jXrm9M1mlQbyKJ5A152g==} + + is-number@7.0.0: + resolution: {integrity: sha512-41Cifkg6e8TylSpdtTpeLVMqvSBEVzTttHvERD741+pnZ8ANv0004MRL43QKPDlK9cGvNp6NZWZUBlbGXYxxng==} + engines: {node: '>=0.12.0'} + + is-path-inside@3.0.3: + resolution: {integrity: sha512-Fd4gABb+ycGAmKou8eMftCupSir5lRxqf4aD/vd0cD2qc4HL07OjCeuHMr8Ro4CoMaeCKDB0/ECBOVWjTwUvPQ==} + engines: {node: '>=8'} + + is-plain-obj@2.1.0: + resolution: {integrity: sha512-YWnfyRwxL/+SsrWYfOpUtz5b3YD+nyfkHvjbcanzk8zgyO4ASD67uVMRt8k5bM4lLMDnXfriRhOpemw+NfT1eA==} + engines: {node: '>=8'} + + is-unicode-supported@0.1.0: + resolution: {integrity: sha512-knxG2q4UC3u8stRGyAVJCOdxFmv5DZiRcdlIaAQXAbSfJya+OhopNotLQrstBhququ4ZpuKbDc/8S6mgXgPFPw==} + engines: {node: '>=10'} + + isexe@2.0.0: + resolution: {integrity: sha512-RHxMLp9lnKHGHRng9QFhRCMbYAcVpn69smSGcq3f36xjgVVWThj4qqLbTLlq7Ssj8B+fIQ1EuCEGI2lKsyQeIw==} + + js-yaml@4.3.2: + resolution: {integrity: sha512-SFNOvSJ+Dgf/9An904Yx+CgSlIPCkIpao4qo51lpee25TIRejdH3rhR4EZMGoNx3/TP3O+wzWuiTFl4sqbltzA==} + hasBin: true + + json-buffer@3.0.1: + resolution: {integrity: sha512-4bV5BfR2mqfQTJm+V5tPPdf+ZpuhiIvTuAB5g8kcrXOZpTT/QwwVRWBywX1ozr6lEuPdbHxwaJlm9G6mI2sfSQ==} + + json-schema-traverse@0.4.1: + resolution: {integrity: sha512-xbbCH5dCYU5T8LcEhhuh7HJ88HXuW3qsI3Y0zOZFKfZEHcpWiHU/Jxzk629Brsab/mMiHQti9wMP+845RPe3Vg==} + + json-stable-stringify-without-jsonify@1.0.1: + resolution: {integrity: sha512-Bdboy+l7tA3OGW6FjyFHWkP5LuByj1Tk33Ljyq0axyzdk9//JSi2u3fP1QSmd1KNwq6VOKYGlAu87CisVir6Pw==} + + keyv@4.5.4: + resolution: {integrity: sha512-oxVHkHR/EJf2CNXnWxRLW6mg7JyCCUcG0DtEGmL2ctUo1PNTin1PUil+r/+4r5MpVgC/fn1kjsx7mjSujKqIpw==} + + levn@0.4.1: + resolution: {integrity: sha512-+bT2uH4E5LGE7h/n3evcS/sQlJXCpIp6ym8OWJ5eV6+67Dsql/LaaT7qJBAt2rzfoa/5QBGBhxDix1dMt2kQKQ==} + engines: {node: '>= 0.8.0'} + + locate-path@6.0.0: + resolution: {integrity: sha512-iPZK6eYjbxRu3uB4/WZ3EsEIMJFMqAoopl3R+zuq0UjcAm/MO6KCweDgPfP3elTztoKP3KtnVHxTn2NHBSDVUw==} + engines: {node: '>=10'} + + lodash.merge@4.6.2: + resolution: {integrity: sha512-0KpjqXRVvrYyCsX1swR/XTK0va6VQkQM6MNo7PqW77ByjAhoARA8EfrP1N4+KlKj8YS0ZUCtRT/YUuhyYDujIQ==} + + log-symbols@4.1.0: + resolution: {integrity: sha512-8XPvpAA8uyhfteu8pIvQxpJZ7SYYdpUivZpGy6sFsBuKRY/7rQGavedeB8aK+Zkyq6upMFVL/9AW6vOYzfRyLg==} + engines: {node: '>=10'} + + minimatch@3.1.5: + resolution: {integrity: sha512-VgjWUsnnT6n+NUk6eZq77zeFdpW2LWDzP6zFGrCbHXiYNul5Dzqk2HHQ5uFH2DNW5Xbp8+jVzaeNt94ssEEl4w==} + + minimatch@5.1.9: + resolution: {integrity: sha512-7o1wEA2RyMP7Iu7GNba9vc0RWWGACJOCZBJX2GJWip0ikV+wcOsgVuY9uE8CPiyQhkGFSlhuSkZPavN7u1c2Fw==} + engines: {node: '>=10'} + + mocha@10.8.2: + resolution: {integrity: sha512-VZlYo/WE8t1tstuRmqgeyBgCbJc/lEdopaa+axcKzTBJ+UIdlAB9XnmvTCAH4pwR4ElNInaedhEBmZD8iCSVEg==} + engines: {node: '>= 14.0.0'} + hasBin: true + + ms@2.1.3: + resolution: {integrity: sha512-6FlzubTLZG3J2a/NVCAleEhjzq5oxgHyaCU9yYXvcLsvoVaHJq/s5xXI6/XXP6tz7R9xAOtHnSO/tXtF3WRTlA==} + + natural-compare@1.4.0: + resolution: {integrity: sha512-OWND8ei3VtNC9h7V60qff3SVobHr996CTwgxubgyQYEpg290h9J0buyECNNJexkFm5sOajh5G116RYA1c8ZMSw==} + + normalize-path@3.0.0: + resolution: {integrity: sha512-6eZs5Ls3WtCisHWp9S2GUy8dqkpGi4BVSz3GaqiE6ezub0512ESztXUwUB6C6IKbQkY2Pnb/mD4WYojCRwcwLA==} + engines: {node: '>=0.10.0'} + + once@1.4.0: + resolution: {integrity: sha512-lNaJgI+2Q5URQBkccEKHTQOPaXdUxnZZElQTZY0MFUAuaEqe1E+Nyvgdz/aIyNi6Z9MzO5dv1H8n58/GELp3+w==} + + optionator@0.9.4: + resolution: {integrity: sha512-6IpQ7mKUxRcZNLIObR0hz7lxsapSSIYNZJwXPGeF0mTVqGKFIXj1DQcMoT22S3ROcLyY/rz0PWaWZ9ayWmad9g==} + engines: {node: '>= 0.8.0'} + + p-limit@3.1.0: + resolution: {integrity: sha512-TYOanM3wGwNGsZN2cVTYPArw454xnXj5qmWF1bEoAc4+cU/ol7GVh7odevjp1FNHduHc3KZMcFduxU5Xc6uJRQ==} + engines: {node: '>=10'} + + p-locate@5.0.0: + resolution: {integrity: sha512-LaNjtRWUBY++zB5nE/NwcaoMylSPk+S+ZHNB1TzdbMJMny6dynpAGt7X/tl/QYq3TIeE6nxHppbo2LGymrG5Pw==} + engines: {node: '>=10'} + + parent-module@1.0.1: + resolution: {integrity: sha512-GQ2EWRpQV8/o+Aw8YqtfZZPfNRWZYkbidE9k5rpl/hC3vtHHBfGm2Ifi6qWV+coDGkrUKZAxE3Lot5kcsRlh+g==} + engines: {node: '>=6'} + + path-exists@4.0.0: + resolution: {integrity: sha512-ak9Qy5Q7jYb2Wwcey5Fpvg2KoAc/ZIhLSLOSBmRmygPsGwkVVt0fZa0qrtMz+m6tJTAHfZQ8FnmB4MG4LWy7/w==} + engines: {node: '>=8'} + + path-is-absolute@1.0.1: + resolution: {integrity: sha512-AVbw3UJ2e9bq64vSaS9Am0fje1Pa8pbGqTTsmXfaIiMpnr5DlDhfJOuLj9Sf95ZPVDAUerDfEk88MPmPe7UCQg==} + engines: {node: '>=0.10.0'} + + path-key@3.1.1: + resolution: {integrity: sha512-ojmeN0qd+y0jszEtoY48r0Peq5dwMEkIlCOu6Q5f41lfkswXuKtYrhgoTpLnyIcHm24Uhqx+5Tqm2InSwLhE6Q==} + engines: {node: '>=8'} + + path-parse@1.0.7: + resolution: {integrity: sha512-LDJzPVEEEPR+y48z93A0Ed0yXb8pAByGWo/k5YYdYgpY2/2EsOsksJrq7lOHxryrVOn1ejG6oAp8ahvOIQD8sw==} + + picomatch@2.3.2: + resolution: {integrity: sha512-V7+vQEJ06Z+c5tSye8S+nHUfI51xoXIXjHQ99cQtKUkQqqO1kO/KCJUfZXuB47h/YBlDhah2H3hdUGXn8ie0oA==} + engines: {node: '>=8.6'} + + picomatch@4.0.7: + resolution: {integrity: sha512-qcJu88Q2IWqJsDD529JKMdwGm/dvInW4HvQnRwiH9JtihJvzGOscDtHE3x1pBKeUOTysQ8kVmLnJ2kJu7yhcGA==} + engines: {node: '>=12'} + + prelude-ls@1.2.1: + resolution: {integrity: sha512-vkcDPrRZo1QZLbn5RLGPpg/WmIQ65qoWWhcGKf/b5eplkkarX0m9z8ppCat4mlOqUsWpyNuYgO3VRyrYHSzX5g==} + engines: {node: '>= 0.8.0'} + + punycode@2.3.1: + resolution: {integrity: sha512-vYt7UD1U9Wg6138shLtLOvdAu+8DsC/ilFtEVHcH+wydcSpNE20AfSOduf6MkRFahL5FY7X1oU7nKVZFtfq8Fg==} + engines: {node: '>=6'} + + queue-microtask@1.2.3: + resolution: {integrity: sha512-NuaNSa6flKT5JaSYQzJok04JzTL1CA6aGhv5rfLW3PgqA+M2ChpZQnAC8h8i4ZFkBS8X5RqkDBHA7r4hej3K9A==} + + randombytes@2.1.0: + resolution: {integrity: sha512-vYl3iOX+4CKUWuxGi9Ukhie6fsqXqS9FE2Zaic4tNFD2N2QQaXOMFbuKK4QmDHC0JO6B1Zp41J0LpT0oR68amQ==} + + readdirp@3.6.0: + resolution: {integrity: sha512-hOS089on8RduqdbhvQ5Z37A0ESjsqz6qnRcffsMU3495FuTdqSm+7bhJ29JvIOsBDEEnan5DPu9t3To9VRlMzA==} + engines: {node: '>=8.10.0'} + + require-directory@2.1.1: + resolution: {integrity: sha512-fGxEI7+wsG9xrvdjsrlmL22OMTTiHRwAMroiEeMgq8gzoLC/PQr7RsRDSTLUg/bZAZtF+TVIkHc6/4RIKrui+Q==} + engines: {node: '>=0.10.0'} + + resolve-from@4.0.0: + resolution: {integrity: sha512-pb/MYmXstAkysRFx8piNI1tGFNQIFA3vkE3Gq4EuA1dF6gHp/+vgZqsCGJapvy8N3Q+4o7FwvquPJcnZ7RYy4g==} + engines: {node: '>=4'} + + resolve@1.22.13: + resolution: {integrity: sha512-Dj/cW9zBV2aRj6XzCxuGIs3ESZKv02jixne3q6jFZYZ3/Tg09gHHviSMDL4kObh9pqSahdRHEnDoaP2gn8YLhA==} + engines: {node: '>= 0.4'} + hasBin: true + + reusify@1.1.0: + resolution: {integrity: sha512-g6QUff04oZpHs0eG5p83rFLhHeV00ug/Yf9nZM6fLeUrPguBTkTQOdpAWWspMh55TZfVQDPaN3NQJfbVRAxdIw==} + engines: {iojs: '>=1.0.0', node: '>=0.10.0'} + + rimraf@3.0.2: + resolution: {integrity: sha512-JZkJMZkAGFFPP2YqXZXPbMlMBgsxzE8ILs4lMIX/2o0L9UBw9O/Y3o6wFw/i9YLapcUJWwqbi3kdxIPdC62TIA==} + deprecated: Rimraf versions prior to v4 are no longer supported + hasBin: true + + rollup@4.67.4: + resolution: {integrity: sha512-Lsv3oKcz5jgOQJej/p7nfwbVEdAbDT+z6OPf/SCdI+nF+q2ENp0pTKT35ZwXAmH8g45mfrIiJeEyAqKYSYoL9Q==} + engines: {node: '>=18.0.0', npm: '>=8.0.0'} + hasBin: true + + run-parallel@1.2.0: + resolution: {integrity: sha512-5l4VyZR86LZ/lDxZTR6jqL8AFE2S0IFLMP26AbjsLVADxHdhB/c0GUsH+y39UfCi3dzz8OlQuPmnaJOMoDHQBA==} + + safe-buffer@5.2.1: + resolution: {integrity: sha512-rp3So07KcdmmKbGvgaNxQSJr7bGVSVk5S9Eq1F+ppbRo70+YeaDxkw5Dd8NPN+GD6bjnYm2VuPuCXmpuYvmCXQ==} + + serialize-javascript@6.0.2: + resolution: {integrity: sha512-Saa1xPByTTq2gdeFZYLLo+RFE35NHZkAbqZeWNd3BpzppeVisAqpDjcp8dyf6uIvEqJRd46jemmyA4iFIeVk8g==} + + serialize-javascript@7.1.4: + resolution: {integrity: sha512-FqlEuoTq/zRmA4Lg6aOqyH3lCHbUtCB0bmHCeFniX2GBdDqMJM3FwdvEhlE5Pim1dlt2FfBdVPmUNNiGhhKqpw==} + engines: {node: '>=20.0.0'} + + shebang-command@2.0.0: + resolution: {integrity: sha512-kHxr2zZpYtdmrN1qDjrrX/Z1rR1kG8Dx+gkpK1G4eXmvXswmcE1hTWBWYUzlraYw1/yZp6YuDY77YtvbN0dmDA==} + engines: {node: '>=8'} + + shebang-regex@3.0.0: + resolution: {integrity: sha512-7++dFhtcx3353uBaq8DDR4NuxBetBzC7ZQOhmTQInHEd6bSrXdiEyzCvG07Z44UYdLShWUyXt5M/yhz8ekcb1A==} + engines: {node: '>=8'} + + smob@1.6.2: + resolution: {integrity: sha512-RQsvleCbF8cVHEv+xuDGaA4pOizFqJ0GgjtMSRo6oP8pnN7WsigHgVGey6aILRBKv4W2YOMHLqbKdnB6hpB9fw==} + engines: {node: '>=20.0.0'} + + source-map-support@0.5.21: + resolution: {integrity: sha512-uBHU3L3czsIyYXKX88fdrGovxdSCoTGDRZ6SYXtSRxLZUzHg5P/66Ht6uoUlHu9EZod+inXhKo3qQgwXUT/y1w==} + + source-map@0.6.1: + resolution: {integrity: sha512-UjgapumWlbMhkBgzT7Ykc5YXUT46F0iKu8SGXq0bcwP5dz/h0Plj6enJqjz1Zbq2l5WaqYnrVbwWOWMyF3F47g==} + engines: {node: '>=0.10.0'} + + string-width@4.2.3: + resolution: {integrity: sha512-wKyQRQpjJ0sIp62ErSZdGsjMJWsap5oRNihHhu6G7JVO/9jIB6UyevL+tXuOqrng8j/cxKTWyWUwvSTriiZz/g==} + engines: {node: '>=8'} + + strip-ansi@6.0.1: + resolution: {integrity: sha512-Y38VPSHcqkFrCpFnQ9vuSXmquuv5oXOKpGeT6aGrr3o3Gc9AlVa6JBfUSOCnbxGGZF+/0ooI7KrPuUSztUdU5A==} + engines: {node: '>=8'} + + strip-json-comments@3.1.1: + resolution: {integrity: sha512-6fPc+R4ihwqP6N/aIv2f1gMH8lOVtWQHoqC4yK6oSDVVocumAsfCqjkXnqiYMhmMwS/mEHLp7Vehlt3ql6lEig==} + engines: {node: '>=8'} + + supports-color@7.2.0: + resolution: {integrity: sha512-qpCAvRl9stuOHveKsn7HncJRvv501qIacKzQlO/+Lwxc9+0q2wLyv4Dfvt80/DPn2pqOBsJdDiogXGR9+OvwRw==} + engines: {node: '>=8'} + + supports-color@8.1.1: + resolution: {integrity: sha512-MpUEN2OodtUzxvKQl72cUF7RQ5EiHsGvSsVG0ia9c5RbWGL2CI4C7EpPS8UTBIplnlzZiNuV56w+FuNxy3ty2Q==} + engines: {node: '>=10'} + + supports-preserve-symlinks-flag@1.0.0: + resolution: {integrity: sha512-ot0WnXS9fgdkgIcePe6RHNk1WA8+muPa6cSjeR3V8K27q9BB1rTE3R1p7Hv0z1ZyAc8s6Vvv8DIyWf681MAt0w==} + engines: {node: '>= 0.4'} + + terser@5.51.2: + resolution: {integrity: sha512-bWnjSNscmuI+GJze6ZupnHP8G/cTcsJF+bXCeQknk2SHQsgbNJnLrqiH9jZ2W4STPVXH2mDKKRX3iwPhc9Cn/Q==} + engines: {node: '>=10'} + hasBin: true + + text-table@0.2.0: + resolution: {integrity: sha512-N+8UisAXDGk8PFXP4HAzVR9nbfmVJ3zYLAWiTIoqC5v5isinhr+r5uaO8+7r3BMfuNIufIsA7RdpVgacC2cSpw==} + + to-regex-range@5.0.1: + resolution: {integrity: sha512-65P7iz6X5yEr1cwcgvQxbbIw7Uk3gOy5dIdtZ4rDveLqhrdJP+Li/Hx6tyK0NEb+2GCyneCMJiGqrADCSNk8sQ==} + engines: {node: '>=8.0'} + + type-check@0.4.0: + resolution: {integrity: sha512-XleUoc9uwGXqjWwXaUTZAmzMcFZ5858QA2vvx1Ur5xIcixXIP+8LnFDgRplU30us6teqdlskFfu+ae4K79Ooew==} + engines: {node: '>= 0.8.0'} + + type-fest@0.20.2: + resolution: {integrity: sha512-Ne+eE4r0/iWnpAxD852z3A+N0Bt5RN//NjJwRd2VFHEmrywxf5vsZlh4R6lixl6B+wz/8d+maTSAkN1FIkI3LQ==} + engines: {node: '>=10'} + + uri-js@4.4.1: + resolution: {integrity: sha512-7rKUyy33Q1yc98pQ1DAmLtwX109F7TIfWlW1Ydo8Wl1ii1SeHieeh0HHfPeL2fMXK6z0s8ecKs9frCuLJvndBg==} + + which@2.0.2: + resolution: {integrity: sha512-BLI3Tl1TW3Pvl70l3yq3Y64i+awpwXqsGBYWkkqMtnbXgrMD+yj7rhW0kuEDxzJaYXGjEW5ogapKNMEKNMjibA==} + engines: {node: '>= 8'} + hasBin: true + + word-wrap@1.2.5: + resolution: {integrity: sha512-BN22B5eaMMI9UMtjrGd5g5eCYPpCPDUy0FJXbYsaT5zYxjFOckS53SQDE3pWkVoWpHXVb3BrYcEN4Twa55B5cA==} + engines: {node: '>=0.10.0'} + + workerpool@6.5.1: + resolution: {integrity: sha512-Fs4dNYcsdpYSAfVxhnl1L5zTksjvOJxtC5hzMNl+1t9B8hTJTdKDyZ5ju7ztgPy+ft9tBFXoOlDNiOT9WUXZlA==} + + wrap-ansi@7.0.0: + resolution: {integrity: sha512-YVGIj2kamLSTxw6NsZjoBxfSwsn0ycdesmc4p+Q21c5zPuZ1pl+NfxVdxPtdHvmNVOQ6XSYG4AUtyt/Fi7D16Q==} + engines: {node: '>=10'} + + wrappy@1.0.2: + resolution: {integrity: sha512-l4Sp/DRseor9wL6EvV2+TuQn63dMkPjZ/sp9XkghTEbV9KlPS1xUsZ3u7/IQO4wxtcFB4bgpQPRcR3QCvezPcQ==} + + y18n@5.0.8: + resolution: {integrity: sha512-0pfFzegeDWJHJIAmTLRP2DwHjdF5s7jo9tuztdQxAhINCdvS+3nGINqPd00AphqJR/0LhANUS6/+7SCb98YOfA==} + engines: {node: '>=10'} + + yargs-parser@20.2.9: + resolution: {integrity: sha512-y11nGElTIV+CT3Zv9t7VKl+Q3hTQoT9a1Qzezhhl6Rp21gJ/IVTW7Z3y9EWXhuUBC2Shnf+DX0antecpAwSP8w==} + engines: {node: '>=10'} + + yargs-unparser@2.0.0: + resolution: {integrity: sha512-7pRTIA9Qc1caZ0bZ6RYRGbHJthJWuakf+WmHK0rVeLkNrrGhfoabBNdue6kdINI6r4if7ocq9aD/n7xwKOdzOA==} + engines: {node: '>=10'} + + yargs@16.2.2: + resolution: {integrity: sha512-Nt9ZJjXTv5R8MHbqby/wXQ6Gi0Bb3TcYZkR1bzuL4yB2OxWPkXknz513gEF0GoA6tn00UpbPvERW8rzCuWCA6w==} + engines: {node: '>=10'} + + yocto-queue@0.1.0: + resolution: {integrity: sha512-rVksvsnNCdJ/ohGc6xgPwyN8eheCxsiLM8mxuE/t/mOVqJewPuO1miLpTHQiRgTKCLexL4MeAFVagts7HmNZ2Q==} + engines: {node: '>=10'} + +snapshots: + + '@eslint-community/eslint-utils@4.10.1(eslint@8.57.1)': + dependencies: + eslint: 8.57.1 + eslint-visitor-keys: 3.4.3 + + '@eslint-community/regexpp@4.12.2': {} + + '@eslint/eslintrc@2.1.4': + dependencies: + ajv: 6.15.0 + debug: 4.4.3(supports-color@8.1.1) + espree: 9.6.1 + globals: 13.24.0 + ignore: 5.3.2 + import-fresh: 3.3.1 + js-yaml: 4.3.2 + minimatch: 3.1.5 + strip-json-comments: 3.1.1 + transitivePeerDependencies: + - supports-color + + '@eslint/js@8.57.1': {} + + '@humanwhocodes/config-array@0.13.0': + dependencies: + '@humanwhocodes/object-schema': 2.0.3 + debug: 4.4.3(supports-color@8.1.1) + minimatch: 3.1.5 + transitivePeerDependencies: + - supports-color + + '@humanwhocodes/module-importer@1.0.1': {} + + '@humanwhocodes/object-schema@2.0.3': {} + + '@jridgewell/gen-mapping@0.3.13': + dependencies: + '@jridgewell/sourcemap-codec': 1.6.0 + '@jridgewell/trace-mapping': 0.3.31 + + '@jridgewell/resolve-uri@3.1.2': {} + + '@jridgewell/source-map@0.3.11': + dependencies: + '@jridgewell/gen-mapping': 0.3.13 + '@jridgewell/trace-mapping': 0.3.31 + + '@jridgewell/sourcemap-codec@1.6.0': {} + + '@jridgewell/trace-mapping@0.3.31': + dependencies: + '@jridgewell/resolve-uri': 3.1.2 + '@jridgewell/sourcemap-codec': 1.6.0 + + '@napi-rs/lzma-linux-x64-gnu@1.5.1': + optional: true + + '@nodelib/fs.scandir@2.1.5': + dependencies: + '@nodelib/fs.stat': 2.0.5 + run-parallel: 1.2.0 + + '@nodelib/fs.stat@2.0.5': {} + + '@nodelib/fs.walk@1.2.8': + dependencies: + '@nodelib/fs.scandir': 2.1.5 + fastq: 1.20.3 + + '@rollup/plugin-node-resolve@16.0.3(rollup@4.67.4)': + dependencies: + '@rollup/pluginutils': 5.5.1(rollup@4.67.4) + '@types/resolve': 1.20.2 + deepmerge: 4.3.1 + is-module: 1.0.0 + resolve: 1.22.13 + optionalDependencies: + rollup: 4.67.4 + + '@rollup/plugin-terser@1.0.2(rollup@4.67.4)': + dependencies: + serialize-javascript: 7.1.4 + smob: 1.6.2 + terser: 5.51.2 + optionalDependencies: + rollup: 4.67.4 + + '@rollup/pluginutils@5.5.1(rollup@4.67.4)': + dependencies: + '@types/estree': 1.0.10 + estree-walker: 2.0.2 + picomatch: 4.0.7 + optionalDependencies: + rollup: 4.67.4 + + '@rollup/rollup-android-arm-eabi@4.67.4': + optional: true + + '@rollup/rollup-android-arm64@4.67.4': + optional: true + + '@rollup/rollup-android-x64@4.67.4': + optional: true + + '@rollup/rollup-darwin-arm64@4.67.4': + optional: true + + '@rollup/rollup-darwin-x64@4.67.4': + optional: true + + '@rollup/rollup-freebsd-arm64@4.67.4': + optional: true + + '@rollup/rollup-freebsd-x64@4.67.4': + optional: true + + '@rollup/rollup-linux-arm-gnueabihf@4.67.4': + optional: true + + '@rollup/rollup-linux-arm-musleabihf@4.67.4': + optional: true + + '@rollup/rollup-linux-arm64-gnu@4.67.4': + optional: true + + '@rollup/rollup-linux-arm64-musl@4.67.4': + optional: true + + '@rollup/rollup-linux-loong64-gnu@4.67.4': + optional: true + + '@rollup/rollup-linux-loong64-musl@4.67.4': + optional: true + + '@rollup/rollup-linux-ppc64-gnu@4.67.4': + optional: true + + '@rollup/rollup-linux-ppc64-musl@4.67.4': + optional: true + + '@rollup/rollup-linux-riscv64-gnu@4.67.4': + optional: true + + '@rollup/rollup-linux-riscv64-musl@4.67.4': + optional: true + + '@rollup/rollup-linux-s390x-gnu@4.67.4': + optional: true + + '@rollup/rollup-linux-x64-gnu@4.67.4': + optional: true + + '@rollup/rollup-linux-x64-musl@4.67.4': + optional: true + + '@rollup/rollup-openbsd-x64@4.67.4': + optional: true + + '@rollup/rollup-openharmony-arm64@4.67.4': + optional: true + + '@rollup/rollup-win32-arm64-msvc@4.67.4': + optional: true + + '@rollup/rollup-win32-ia32-msvc@4.67.4': + optional: true + + '@rollup/rollup-win32-x64-gnu@4.67.4': + optional: true + + '@rollup/rollup-win32-x64-msvc@4.67.4': + optional: true + + '@types/estree@1.0.10': {} + + '@types/resolve@1.20.2': {} + + '@ungap/structured-clone@1.4.0': {} + + acorn-jsx@5.3.2(acorn@8.19.0): + dependencies: + acorn: 8.19.0 + + acorn@8.19.0: {} + + ajv@6.15.0: + dependencies: + fast-deep-equal: 3.1.3 + fast-json-stable-stringify: 2.1.0 + json-schema-traverse: 0.4.1 + uri-js: 4.4.1 + + ansi-colors@4.1.3: {} + + ansi-regex@5.0.1: {} + + ansi-styles@4.3.0: + dependencies: + color-convert: 2.0.1 + + anymatch@3.1.3: + dependencies: + normalize-path: 3.0.0 + picomatch: 2.3.2 + + argparse@2.0.1: {} + + balanced-match@1.0.2: {} + + binary-extensions@2.3.0: {} + + brace-expansion@1.1.21: + dependencies: + balanced-match: 1.0.2 + concat-map: 0.0.1 + + brace-expansion@2.1.7: + dependencies: + balanced-match: 1.0.2 + + braces@3.0.3: + dependencies: + fill-range: 7.1.1 + + browser-stdout@1.3.1: {} + + buffer-from@1.1.2: {} + + callsites@3.1.0: {} + + camelcase@6.3.0: {} + + chalk@4.1.2: + dependencies: + ansi-styles: 4.3.0 + supports-color: 7.2.0 + + chokidar@3.6.0: + dependencies: + anymatch: 3.1.3 + braces: 3.0.3 + glob-parent: 5.1.2 + is-binary-path: 2.1.0 + is-glob: 4.0.3 + normalize-path: 3.0.0 + readdirp: 3.6.0 + optionalDependencies: + fsevents: 2.3.3 + + cliui@7.0.4: + dependencies: + string-width: 4.2.3 + strip-ansi: 6.0.1 + wrap-ansi: 7.0.0 + + color-convert@2.0.1: + dependencies: + color-name: 1.1.4 + + color-name@1.1.4: {} + + commander@2.20.3: {} + + concat-map@0.0.1: {} + + cross-spawn@7.0.6: + dependencies: + path-key: 3.1.1 + shebang-command: 2.0.0 + which: 2.0.2 + + d3-array@3.2.4: + dependencies: + internmap: 2.0.3 + + d3-time@3.1.0: + dependencies: + d3-array: 3.2.4 + + debug@4.4.3(supports-color@8.1.1): + dependencies: + ms: 2.1.3 + optionalDependencies: + supports-color: 8.1.1 + + decamelize@4.0.0: {} + + deep-is@0.1.4: {} + + deepmerge@4.3.1: {} + + diff@5.2.2: {} + + doctrine@3.0.0: + dependencies: + esutils: 2.0.3 + + emoji-regex@8.0.0: {} + + es-errors@1.3.0: {} + + escalade@3.2.0: {} + + escape-string-regexp@4.0.0: {} + + eslint-scope@7.2.2: + dependencies: + esrecurse: 4.3.0 + estraverse: 5.3.0 + + eslint-visitor-keys@3.4.3: {} + + eslint@8.57.1: + dependencies: + '@eslint-community/eslint-utils': 4.10.1(eslint@8.57.1) + '@eslint-community/regexpp': 4.12.2 + '@eslint/eslintrc': 2.1.4 + '@eslint/js': 8.57.1 + '@humanwhocodes/config-array': 0.13.0 + '@humanwhocodes/module-importer': 1.0.1 + '@nodelib/fs.walk': 1.2.8 + '@ungap/structured-clone': 1.4.0 + ajv: 6.15.0 + chalk: 4.1.2 + cross-spawn: 7.0.6 + debug: 4.4.3(supports-color@8.1.1) + doctrine: 3.0.0 + escape-string-regexp: 4.0.0 + eslint-scope: 7.2.2 + eslint-visitor-keys: 3.4.3 + espree: 9.6.1 + esquery: 1.7.0 + esutils: 2.0.3 + fast-deep-equal: 3.1.3 + file-entry-cache: 6.0.1 + find-up: 5.0.0 + glob-parent: 6.0.2 + globals: 13.24.0 + graphemer: 1.4.0 + ignore: 5.3.2 + imurmurhash: 0.1.4 + is-glob: 4.0.3 + is-path-inside: 3.0.3 + js-yaml: 4.3.2 + json-stable-stringify-without-jsonify: 1.0.1 + levn: 0.4.1 + lodash.merge: 4.6.2 + minimatch: 3.1.5 + natural-compare: 1.4.0 + optionator: 0.9.4 + strip-ansi: 6.0.1 + text-table: 0.2.0 + transitivePeerDependencies: + - supports-color + + espree@9.6.1: + dependencies: + acorn: 8.19.0 + acorn-jsx: 5.3.2(acorn@8.19.0) + eslint-visitor-keys: 3.4.3 + + esquery@1.7.0: + dependencies: + estraverse: 5.3.0 + + esrecurse@4.3.0: + dependencies: + estraverse: 5.3.0 + + estraverse@5.3.0: {} + + estree-walker@2.0.2: {} + + esutils@2.0.3: {} + + fast-deep-equal@3.1.3: {} + + fast-json-stable-stringify@2.1.0: {} + + fast-levenshtein@2.0.6: {} + + fastq@1.20.3: + dependencies: + reusify: 1.1.0 + + file-entry-cache@6.0.1: + dependencies: + flat-cache: 3.2.0 + + fill-range@7.1.1: + dependencies: + to-regex-range: 5.0.1 + + find-up@5.0.0: + dependencies: + locate-path: 6.0.0 + path-exists: 4.0.0 + + flat-cache@3.2.0: + dependencies: + flatted: 3.4.4 + keyv: 4.5.4 + rimraf: 3.0.2 + + flat@5.0.2: {} + + flatted@3.4.4: {} + + fs.realpath@1.0.0: {} + + fsevents@2.3.3: + optional: true + + function-bind@1.1.2: {} + + get-caller-file@2.0.5: {} + + glob-parent@5.1.2: + dependencies: + is-glob: 4.0.3 + + glob-parent@6.0.2: + dependencies: + is-glob: 4.0.3 + + glob@7.2.3: + dependencies: + fs.realpath: 1.0.0 + inflight: 1.0.6 + inherits: 2.0.4 + minimatch: 3.1.5 + once: 1.4.0 + path-is-absolute: 1.0.1 + + glob@8.1.0: + dependencies: + fs.realpath: 1.0.0 + inflight: 1.0.6 + inherits: 2.0.4 + minimatch: 5.1.9 + once: 1.4.0 + + globals@13.24.0: + dependencies: + type-fest: 0.20.2 + + graphemer@1.4.0: {} + + has-flag@4.0.0: {} + + hasown@2.0.4: + dependencies: + function-bind: 1.1.2 + + he@1.2.0: {} + + ignore@5.3.2: {} + + import-fresh@3.3.1: + dependencies: + parent-module: 1.0.1 + resolve-from: 4.0.0 + + imurmurhash@0.1.4: {} + + inflight@1.0.6: + dependencies: + once: 1.4.0 + wrappy: 1.0.2 + + inherits@2.0.4: {} + + internmap@2.0.3: {} + + is-binary-path@2.1.0: + dependencies: + binary-extensions: 2.3.0 + + is-core-module@2.17.0: + dependencies: + hasown: 2.0.4 + + is-extglob@2.1.1: {} + + is-fullwidth-code-point@3.0.0: {} + + is-glob@4.0.3: + dependencies: + is-extglob: 2.1.1 + + is-module@1.0.0: {} + + is-number@7.0.0: {} + + is-path-inside@3.0.3: {} + + is-plain-obj@2.1.0: {} + + is-unicode-supported@0.1.0: {} + + isexe@2.0.0: {} + + js-yaml@4.3.2: + dependencies: + argparse: 2.0.1 + + json-buffer@3.0.1: {} + + json-schema-traverse@0.4.1: {} + + json-stable-stringify-without-jsonify@1.0.1: {} + + keyv@4.5.4: + dependencies: + json-buffer: 3.0.1 + + levn@0.4.1: + dependencies: + prelude-ls: 1.2.1 + type-check: 0.4.0 + + locate-path@6.0.0: + dependencies: + p-locate: 5.0.0 + + lodash.merge@4.6.2: {} + + log-symbols@4.1.0: + dependencies: + chalk: 4.1.2 + is-unicode-supported: 0.1.0 + + minimatch@3.1.5: + dependencies: + brace-expansion: 1.1.21 + + minimatch@5.1.9: + dependencies: + brace-expansion: 2.1.7 + + mocha@10.8.2: + dependencies: + ansi-colors: 4.1.3 + browser-stdout: 1.3.1 + chokidar: 3.6.0 + debug: 4.4.3(supports-color@8.1.1) + diff: 5.2.2 + escape-string-regexp: 4.0.0 + find-up: 5.0.0 + glob: 8.1.0 + he: 1.2.0 + js-yaml: 4.3.2 + log-symbols: 4.1.0 + minimatch: 5.1.9 + ms: 2.1.3 + serialize-javascript: 6.0.2 + strip-json-comments: 3.1.1 + supports-color: 8.1.1 + workerpool: 6.5.1 + yargs: 16.2.2 + yargs-parser: 20.2.9 + yargs-unparser: 2.0.0 + + ms@2.1.3: {} + + natural-compare@1.4.0: {} + + normalize-path@3.0.0: {} + + once@1.4.0: + dependencies: + wrappy: 1.0.2 + + optionator@0.9.4: + dependencies: + deep-is: 0.1.4 + fast-levenshtein: 2.0.6 + levn: 0.4.1 + prelude-ls: 1.2.1 + type-check: 0.4.0 + word-wrap: 1.2.5 + + p-limit@3.1.0: + dependencies: + yocto-queue: 0.1.0 + + p-locate@5.0.0: + dependencies: + p-limit: 3.1.0 + + parent-module@1.0.1: + dependencies: + callsites: 3.1.0 + + path-exists@4.0.0: {} + + path-is-absolute@1.0.1: {} + + path-key@3.1.1: {} + + path-parse@1.0.7: {} + + picomatch@2.3.2: {} + + picomatch@4.0.7: {} + + prelude-ls@1.2.1: {} + + punycode@2.3.1: {} + + queue-microtask@1.2.3: {} + + randombytes@2.1.0: + dependencies: + safe-buffer: 5.2.1 + + readdirp@3.6.0: + dependencies: + picomatch: 2.3.2 + + require-directory@2.1.1: {} + + resolve-from@4.0.0: {} + + resolve@1.22.13: + dependencies: + es-errors: 1.3.0 + is-core-module: 2.17.0 + path-parse: 1.0.7 + supports-preserve-symlinks-flag: 1.0.0 + + reusify@1.1.0: {} + + rimraf@3.0.2: + dependencies: + glob: 7.2.3 + + rollup@4.67.4: + dependencies: + '@types/estree': 1.0.10 + optionalDependencies: + '@napi-rs/lzma-linux-x64-gnu': 1.5.1 + '@rollup/rollup-android-arm-eabi': 4.67.4 + '@rollup/rollup-android-arm64': 4.67.4 + '@rollup/rollup-android-x64': 4.67.4 + '@rollup/rollup-darwin-arm64': 4.67.4 + '@rollup/rollup-darwin-x64': 4.67.4 + '@rollup/rollup-freebsd-arm64': 4.67.4 + '@rollup/rollup-freebsd-x64': 4.67.4 + '@rollup/rollup-linux-arm-gnueabihf': 4.67.4 + '@rollup/rollup-linux-arm-musleabihf': 4.67.4 + '@rollup/rollup-linux-arm64-gnu': 4.67.4 + '@rollup/rollup-linux-arm64-musl': 4.67.4 + '@rollup/rollup-linux-loong64-gnu': 4.67.4 + '@rollup/rollup-linux-loong64-musl': 4.67.4 + '@rollup/rollup-linux-ppc64-gnu': 4.67.4 + '@rollup/rollup-linux-ppc64-musl': 4.67.4 + '@rollup/rollup-linux-riscv64-gnu': 4.67.4 + '@rollup/rollup-linux-riscv64-musl': 4.67.4 + '@rollup/rollup-linux-s390x-gnu': 4.67.4 + '@rollup/rollup-linux-x64-gnu': 4.67.4 + '@rollup/rollup-linux-x64-musl': 4.67.4 + '@rollup/rollup-openbsd-x64': 4.67.4 + '@rollup/rollup-openharmony-arm64': 4.67.4 + '@rollup/rollup-win32-arm64-msvc': 4.67.4 + '@rollup/rollup-win32-ia32-msvc': 4.67.4 + '@rollup/rollup-win32-x64-gnu': 4.67.4 + '@rollup/rollup-win32-x64-msvc': 4.67.4 + fsevents: 2.3.3 + + run-parallel@1.2.0: + dependencies: + queue-microtask: 1.2.3 + + safe-buffer@5.2.1: {} + + serialize-javascript@6.0.2: + dependencies: + randombytes: 2.1.0 + + serialize-javascript@7.1.4: {} + + shebang-command@2.0.0: + dependencies: + shebang-regex: 3.0.0 + + shebang-regex@3.0.0: {} + + smob@1.6.2: {} + + source-map-support@0.5.21: + dependencies: + buffer-from: 1.1.2 + source-map: 0.6.1 + + source-map@0.6.1: {} + + string-width@4.2.3: + dependencies: + emoji-regex: 8.0.0 + is-fullwidth-code-point: 3.0.0 + strip-ansi: 6.0.1 + + strip-ansi@6.0.1: + dependencies: + ansi-regex: 5.0.1 + + strip-json-comments@3.1.1: {} + + supports-color@7.2.0: + dependencies: + has-flag: 4.0.0 + + supports-color@8.1.1: + dependencies: + has-flag: 4.0.0 + + supports-preserve-symlinks-flag@1.0.0: {} + + terser@5.51.2: + dependencies: + '@jridgewell/source-map': 0.3.11 + acorn: 8.19.0 + commander: 2.20.3 + source-map-support: 0.5.21 + + text-table@0.2.0: {} + + to-regex-range@5.0.1: + dependencies: + is-number: 7.0.0 + + type-check@0.4.0: + dependencies: + prelude-ls: 1.2.1 + + type-fest@0.20.2: {} + + uri-js@4.4.1: + dependencies: + punycode: 2.3.1 + + which@2.0.2: + dependencies: + isexe: 2.0.0 + + word-wrap@1.2.5: {} + + workerpool@6.5.1: {} + + wrap-ansi@7.0.0: + dependencies: + ansi-styles: 4.3.0 + string-width: 4.2.3 + strip-ansi: 6.0.1 + + wrappy@1.0.2: {} + + y18n@5.0.8: {} + + yargs-parser@20.2.9: {} + + yargs-unparser@2.0.0: + dependencies: + camelcase: 6.3.0 + decamelize: 4.0.0 + flat: 5.0.2 + is-plain-obj: 2.1.0 + + yargs@16.2.2: + dependencies: + cliui: 7.0.4 + escalade: 3.2.0 + get-caller-file: 2.0.5 + require-directory: 2.1.1 + string-width: 4.2.3 + y18n: 5.0.8 + yargs-parser: 20.2.9 + + yocto-queue@0.1.0: {} diff --git a/rollup.config.js b/rollup.config.js index 4c6ccad..a13a979 100644 --- a/rollup.config.js +++ b/rollup.config.js @@ -1,44 +1,72 @@ -import {readFileSync} from "fs"; -import {terser} from "rollup-plugin-terser"; -import * as meta from "./package.json"; +import {readFileSync} from "node:fs"; +import RollupNode from "@rollup/plugin-node-resolve"; +import RollupTerser from "@rollup/plugin-terser"; +import meta from "./package.json" with {type: "json"}; // Extract copyrights from the LICENSE. const copyright = readFileSync("./LICENSE", "utf-8") .split(/\n/g) - .filter(line => /^Copyright\s+/.test(line)) - .map(line => line.replace(/^Copyright\s+/, "")) + .filter(line => /^copyright\s+/i.test(line)) + .map(line => line.replace(/^copyright\s+/i, "")) .join(", "); -const config = { - input: "src/index.js", - external: Object.keys(meta.dependencies || {}).filter(key => /^d3-/.test(key)), +const banner = `// ${meta.homepage} v${meta.version} Copyright ${copyright}`; + +const terser = RollupTerser({ output: { - file: `dist/${meta.name}.js`, - name: "d3", - format: "umd", - indent: false, - extend: true, - banner: `// ${meta.homepage} v${meta.version} Copyright ${copyright}`, - globals: Object.assign({}, ...Object.keys(meta.dependencies || {}).filter(key => /^d3-/.test(key)).map(key => ({[key]: "d3"}))) - }, - plugins: [] -}; + preamble: banner + } +}); + +function config(options) { + return { + ...options, + input: "src/index.js", + external: Object.keys(meta.dependencies || {}).filter(key => /^d3-/.test(key)), + output: { + ...options.output, + name: "d3", + indent: false, + extend: true, + banner, + globals: Object.assign({}, ...Object.keys(meta.dependencies || {}).filter(key => /^d3-/.test(key)).map(key => ({[key]: "d3"}))) + }, + plugins: [ + RollupNode(), + ...(options.plugins ?? []) + ] + }; +} export default [ - config, - { - ...config, + config({ output: { - ...config.output, - file: `dist/${meta.name}.min.js` + file: `dist/${meta.name}.mjs`, + format: "es" + } + }), + config({ + output: { + file: `dist/${meta.name}.min.mjs`, + format: "es" }, plugins: [ - ...config.plugins, - terser({ - output: { - preamble: config.output.banner - } - }) + terser ] - } + }), + config({ + output: { + file: `dist/${meta.name}.js`, + format: "umd", + } + }), + config({ + output: { + file: `dist/${meta.name}.min.js`, + format: "umd" + }, + plugins: [ + terser + ] + }) ]; diff --git a/yarn.lock b/yarn.lock deleted file mode 100644 index 5787dd9..0000000 --- a/yarn.lock +++ /dev/null @@ -1,1131 +0,0 @@ -# THIS IS AN AUTOGENERATED FILE. DO NOT EDIT THIS FILE DIRECTLY. -# yarn lockfile v1 - - -"@babel/code-frame@^7.10.4": - version "7.16.0" - resolved "https://registry.yarnpkg.com/@babel/code-frame/-/code-frame-7.16.0.tgz#0dfc80309beec8411e65e706461c408b0bb9b431" - integrity sha512-IF4EOMEV+bfYwOmNxGzSnjR2EmQod7f1UXOpZM3l4i4o4QNwzjtJAu/HxdjHq0aYBvdqMuQEY1eg0nqW9ZPORA== - dependencies: - "@babel/highlight" "^7.16.0" - -"@babel/helper-validator-identifier@^7.15.7": - version "7.15.7" - resolved "https://registry.yarnpkg.com/@babel/helper-validator-identifier/-/helper-validator-identifier-7.15.7.tgz#220df993bfe904a4a6b02ab4f3385a5ebf6e2389" - integrity sha512-K4JvCtQqad9OY2+yTU8w+E82ywk/fe+ELNlt1G8z3bVGlZfn/hOcQQsUhGhW/N+tb3fxK800wLtKOE/aM0m72w== - -"@babel/highlight@^7.16.0": - version "7.16.0" - resolved "https://registry.yarnpkg.com/@babel/highlight/-/highlight-7.16.0.tgz#6ceb32b2ca4b8f5f361fb7fd821e3fddf4a1725a" - integrity sha512-t8MH41kUQylBtu2+4IQA3atqevA2lRgqA2wyVB/YiWmsDSuylZZuXOUy9ric30hfzauEFfdsuk/eXTRrGrfd0g== - dependencies: - "@babel/helper-validator-identifier" "^7.15.7" - chalk "^2.0.0" - js-tokens "^4.0.0" - -"@eslint/eslintrc@^1.0.5": - version "1.0.5" - resolved "https://registry.yarnpkg.com/@eslint/eslintrc/-/eslintrc-1.0.5.tgz#33f1b838dbf1f923bfa517e008362b78ddbbf318" - integrity sha512-BLxsnmK3KyPunz5wmCCpqy0YelEoxxGmH73Is+Z74oOTMtExcjkr3dDR6quwrjh1YspA8DH9gnX1o069KiS9AQ== - dependencies: - ajv "^6.12.4" - debug "^4.3.2" - espree "^9.2.0" - globals "^13.9.0" - ignore "^4.0.6" - import-fresh "^3.2.1" - js-yaml "^4.1.0" - minimatch "^3.0.4" - strip-json-comments "^3.1.1" - -"@humanwhocodes/config-array@^0.9.2": - version "0.9.2" - resolved "https://registry.yarnpkg.com/@humanwhocodes/config-array/-/config-array-0.9.2.tgz#68be55c737023009dfc5fe245d51181bb6476914" - integrity sha512-UXOuFCGcwciWckOpmfKDq/GyhlTf9pN/BzG//x8p8zTOFEcGuA68ANXheFS0AGvy3qgZqLBUkMs7hqzqCKOVwA== - dependencies: - "@humanwhocodes/object-schema" "^1.2.1" - debug "^4.1.1" - minimatch "^3.0.4" - -"@humanwhocodes/object-schema@^1.2.1": - version "1.2.1" - resolved "https://registry.yarnpkg.com/@humanwhocodes/object-schema/-/object-schema-1.2.1.tgz#b520529ec21d8e5945a1851dfd1c32e94e39ff45" - integrity sha512-ZnQMnLV4e7hDlUvw8H+U8ASL02SS2Gn6+9Ac3wGGLIe7+je2AeAOxPY+izIPJDfFDb7eDjev0Us8MO1iFRN8hA== - -"@types/node@*": - version "16.11.11" - resolved "https://registry.yarnpkg.com/@types/node/-/node-16.11.11.tgz#6ea7342dfb379ea1210835bada87b3c512120234" - integrity sha512-KB0sixD67CeecHC33MYn+eYARkqTheIRNuu97y2XMjR7Wu3XibO1vaY6VBV6O/a89SPI81cEUIYT87UqUWlZNw== - -"@ungap/promise-all-settled@1.1.2": - version "1.1.2" - resolved "https://registry.yarnpkg.com/@ungap/promise-all-settled/-/promise-all-settled-1.1.2.tgz#aa58042711d6e3275dd37dc597e5d31e8c290a44" - integrity sha512-sL/cEvJWAnClXw0wHk85/2L0G6Sj8UB0Ctc1TEMbKSsmpRosqhwj9gWgFRZSrBr2f9tiXISwNhCPmlfqUqyb9Q== - -acorn-jsx@^5.3.1: - version "5.3.2" - resolved "https://registry.yarnpkg.com/acorn-jsx/-/acorn-jsx-5.3.2.tgz#7ed5bb55908b3b2f1bc55c6af1653bada7f07937" - integrity sha512-rq9s+JNhf0IChjtDXxllJ7g41oZk5SlXtp0LHwyA5cejwn7vKmKp4pPri6YEePv2PU65sAsegbXtIinmDFDXgQ== - -acorn@^8.6.0: - version "8.6.0" - resolved "https://registry.yarnpkg.com/acorn/-/acorn-8.6.0.tgz#e3692ba0eb1a0c83eaa4f37f5fa7368dd7142895" - integrity sha512-U1riIR+lBSNi3IbxtaHOIKdH8sLFv3NYfNv8sg7ZsNhcfl4HF2++BfqqrNAxoCLQW1iiylOj76ecnaUxz+z9yw== - -ajv@^6.10.0, ajv@^6.12.4: - version "6.12.6" - resolved "https://registry.yarnpkg.com/ajv/-/ajv-6.12.6.tgz#baf5a62e802b07d977034586f8c3baf5adf26df4" - integrity sha512-j3fVLgvTo527anyYyJOGTYJbG+vnnQYvE0m5mmkc1TK+nxAppkCLMIL0aZ4dblVCNoGShhm+kzE4ZUykBoMg4g== - dependencies: - fast-deep-equal "^3.1.1" - fast-json-stable-stringify "^2.0.0" - json-schema-traverse "^0.4.1" - uri-js "^4.2.2" - -ansi-colors@4.1.1, ansi-colors@^4.1.1: - version "4.1.1" - resolved "https://registry.yarnpkg.com/ansi-colors/-/ansi-colors-4.1.1.tgz#cbb9ae256bf750af1eab344f229aa27fe94ba348" - integrity sha512-JoX0apGbHaUJBNl6yF+p6JAFYZ666/hhCGKN5t9QFjbJQKUU/g8MNbFDbvfrgKXvI1QpZplPOnwIo99lX/AAmA== - -ansi-regex@^5.0.1: - version "5.0.1" - resolved "https://registry.yarnpkg.com/ansi-regex/-/ansi-regex-5.0.1.tgz#082cb2c89c9fe8659a311a53bd6a4dc5301db304" - integrity sha512-quJQXlTSUGL2LH9SUXo8VwsY4soanhgo6LNSm84E1LBcE8s3O0wpdiRzyR9z/ZZJMlMWv37qOOb9pdJlMUEKFQ== - -ansi-styles@^3.2.1: - version "3.2.1" - resolved "https://registry.yarnpkg.com/ansi-styles/-/ansi-styles-3.2.1.tgz#41fbb20243e50b12be0f04b8dedbf07520ce841d" - integrity sha512-VT0ZI6kZRdTh8YyJw3SMbYm/u+NqfsAxEpWO0Pf9sq8/e94WxxOpPKx9FR1FlyCtOVDNOQ+8ntlqFxiRc+r5qA== - dependencies: - color-convert "^1.9.0" - -ansi-styles@^4.0.0, ansi-styles@^4.1.0: - version "4.3.0" - resolved "https://registry.yarnpkg.com/ansi-styles/-/ansi-styles-4.3.0.tgz#edd803628ae71c04c85ae7a0906edad34b648937" - integrity sha512-zbB9rCJAT1rbjiVDb2hqKFHNYLxgtk8NURxZ3IZwD3F6NtxbXZQCnnSi1Lkx+IDohdPlFp222wVALIheZJQSEg== - dependencies: - color-convert "^2.0.1" - -anymatch@~3.1.2: - version "3.1.2" - resolved "https://registry.yarnpkg.com/anymatch/-/anymatch-3.1.2.tgz#c0557c096af32f106198f4f4e2a383537e378716" - integrity sha512-P43ePfOAIupkguHUycrc4qJ9kz8ZiuOUijaETwX7THt0Y/GNK7v0aa8rY816xWjZ7rJdA5XdMcpVFTKMq+RvWg== - dependencies: - normalize-path "^3.0.0" - picomatch "^2.0.4" - -argparse@^2.0.1: - version "2.0.1" - resolved "https://registry.yarnpkg.com/argparse/-/argparse-2.0.1.tgz#246f50f3ca78a3240f6c997e8a9bd1eac49e4b38" - integrity sha512-8+9WqebbFzpX9OR+Wa6O29asIogeRMzcGtAINdpMHHyAg10f05aSFVBbcEqGf/PXw1EjAZ+q2/bEBg3DvurK3Q== - -balanced-match@^1.0.0: - version "1.0.2" - resolved "https://registry.yarnpkg.com/balanced-match/-/balanced-match-1.0.2.tgz#e83e3a7e3f300b34cb9d87f615fa0cbf357690ee" - integrity sha512-3oSeUO0TMV67hN1AmbXsK4yaqU7tjiHlbxRDZOpH0KW9+CeX4bRAaX0Anxt0tx2MrpRpWwQaPwIlISEJhYU5Pw== - -binary-extensions@^2.0.0: - version "2.2.0" - resolved "https://registry.yarnpkg.com/binary-extensions/-/binary-extensions-2.2.0.tgz#75f502eeaf9ffde42fc98829645be4ea76bd9e2d" - integrity sha512-jDctJ/IVQbZoJykoeHbhXpOlNBqGNcwXJKJog42E5HDPUwQTSdjCHdihjj0DlnheQ7blbT6dHOafNAiS8ooQKA== - -brace-expansion@^1.1.7: - version "1.1.11" - resolved "https://registry.yarnpkg.com/brace-expansion/-/brace-expansion-1.1.11.tgz#3c7fcbf529d87226f3d2f52b966ff5271eb441dd" - integrity sha512-iCuPHDFgrHX7H2vEI/5xpz07zSHB00TpugqhmYtVmMO6518mCuRMoOYFldEBl0g187ufozdaHgWKcYFb61qGiA== - dependencies: - balanced-match "^1.0.0" - concat-map "0.0.1" - -braces@~3.0.2: - version "3.0.2" - resolved "https://registry.yarnpkg.com/braces/-/braces-3.0.2.tgz#3454e1a462ee8d599e236df336cd9ea4f8afe107" - integrity sha512-b8um+L1RzM3WDSzvhm6gIz1yfTbBt6YTlcEKAvsmqCZZFw46z626lVj9j1yEPW33H5H+lBQpZMP1k8l+78Ha0A== - dependencies: - fill-range "^7.0.1" - -browser-stdout@1.3.1: - version "1.3.1" - resolved "https://registry.yarnpkg.com/browser-stdout/-/browser-stdout-1.3.1.tgz#baa559ee14ced73452229bad7326467c61fabd60" - integrity sha512-qhAVI1+Av2X7qelOfAIYwXONood6XlZE/fXaBSmW/T5SzLAmCgzi+eiWE7fUvbHaeNBQH13UftjpXxsfLkMpgw== - -buffer-from@^1.0.0: - version "1.1.2" - resolved "https://registry.yarnpkg.com/buffer-from/-/buffer-from-1.1.2.tgz#2b146a6fd72e80b4f55d255f35ed59a3a9a41bd5" - integrity sha512-E+XQCRwSbaaiChtv6k6Dwgc+bx+Bs6vuKJHHl5kox/BaKbhiXzqQOwK4cO22yElGp2OCmjwVhT3HmxgyPGnJfQ== - -callsites@^3.0.0: - version "3.1.0" - resolved "https://registry.yarnpkg.com/callsites/-/callsites-3.1.0.tgz#b3630abd8943432f54b3f0519238e33cd7df2f73" - integrity sha512-P8BjAsXvZS+VIDUI11hHCQEv74YT67YUi5JJFNWIqL235sBmjX4+qx9Muvls5ivyNENctx46xQLQ3aTuE7ssaQ== - -camelcase@^6.0.0: - version "6.2.1" - resolved "https://registry.yarnpkg.com/camelcase/-/camelcase-6.2.1.tgz#250fd350cfd555d0d2160b1d51510eaf8326e86e" - integrity sha512-tVI4q5jjFV5CavAU8DXfza/TJcZutVKo/5Foskmsqcm0MsL91moHvwiGNnqaa2o6PF/7yT5ikDRcVcl8Rj6LCA== - -chalk@^2.0.0: - version "2.4.2" - resolved "https://registry.yarnpkg.com/chalk/-/chalk-2.4.2.tgz#cd42541677a54333cf541a49108c1432b44c9424" - integrity sha512-Mti+f9lpJNcwF4tWV8/OrTTtF1gZi+f8FqlyAdouralcFWFQWF2+NgCHShjkCb+IFBLq9buZwE1xckQU4peSuQ== - dependencies: - ansi-styles "^3.2.1" - escape-string-regexp "^1.0.5" - supports-color "^5.3.0" - -chalk@^4.0.0, chalk@^4.1.0: - version "4.1.2" - resolved "https://registry.yarnpkg.com/chalk/-/chalk-4.1.2.tgz#aac4e2b7734a740867aeb16bf02aad556a1e7a01" - integrity sha512-oKnbhFyRIXpUuez8iBMmyEa4nbj4IOQyuhc/wy9kY7/WVPcwIO9VA668Pu8RkO7+0G76SLROeyw9CpQ061i4mA== - dependencies: - ansi-styles "^4.1.0" - supports-color "^7.1.0" - -chokidar@3.5.2: - version "3.5.2" - resolved "https://registry.yarnpkg.com/chokidar/-/chokidar-3.5.2.tgz#dba3976fcadb016f66fd365021d91600d01c1e75" - integrity sha512-ekGhOnNVPgT77r4K/U3GDhu+FQ2S8TnK/s2KbIGXi0SZWuwkZ2QNyfWdZW+TVfn84DpEP7rLeCt2UI6bJ8GwbQ== - dependencies: - anymatch "~3.1.2" - braces "~3.0.2" - glob-parent "~5.1.2" - is-binary-path "~2.1.0" - is-glob "~4.0.1" - normalize-path "~3.0.0" - readdirp "~3.6.0" - optionalDependencies: - fsevents "~2.3.2" - -cliui@^7.0.2: - version "7.0.4" - resolved "https://registry.yarnpkg.com/cliui/-/cliui-7.0.4.tgz#a0265ee655476fc807aea9df3df8df7783808b4f" - integrity sha512-OcRE68cOsVMXp1Yvonl/fzkQOyjLSu/8bhPDfQt0e0/Eb283TKP20Fs2MqoPsr9SwA595rRCA+QMzYc9nBP+JQ== - dependencies: - string-width "^4.2.0" - strip-ansi "^6.0.0" - wrap-ansi "^7.0.0" - -color-convert@^1.9.0: - version "1.9.3" - resolved "https://registry.yarnpkg.com/color-convert/-/color-convert-1.9.3.tgz#bb71850690e1f136567de629d2d5471deda4c1e8" - integrity sha512-QfAUtd+vFdAtFQcC8CCyYt1fYWxSqAiK2cSD6zDB8N3cpsEBAvRxp9zOGg6G/SHHJYAT88/az/IuDGALsNVbGg== - dependencies: - color-name "1.1.3" - -color-convert@^2.0.1: - version "2.0.1" - resolved "https://registry.yarnpkg.com/color-convert/-/color-convert-2.0.1.tgz#72d3a68d598c9bdb3af2ad1e84f21d896abd4de3" - integrity sha512-RRECPsj7iu/xb5oKYcsFHSppFNnsj/52OVTRKb4zP5onXwVF3zVmmToNcOfGC+CRDpfK/U584fMg38ZHCaElKQ== - dependencies: - color-name "~1.1.4" - -color-name@1.1.3: - version "1.1.3" - resolved "https://registry.yarnpkg.com/color-name/-/color-name-1.1.3.tgz#a7d0558bd89c42f795dd42328f740831ca53bc25" - integrity sha1-p9BVi9icQveV3UIyj3QIMcpTvCU= - -color-name@~1.1.4: - version "1.1.4" - resolved "https://registry.yarnpkg.com/color-name/-/color-name-1.1.4.tgz#c2a09a87acbde69543de6f63fa3995c826c536a2" - integrity sha512-dOy+3AuW3a2wNbZHIuMZpTcgjGuLU/uBL/ubcZF9OXbDo8ff4O8yVp5Bf0efS8uEoYo5q4Fx7dY9OgQGXgAsQA== - -commander@^2.20.0: - version "2.20.3" - resolved "https://registry.yarnpkg.com/commander/-/commander-2.20.3.tgz#fd485e84c03eb4881c20722ba48035e8531aeb33" - integrity sha512-GpVkmM8vF2vQUkj2LvZmD35JxeJOLCwJ9cUkugyk2nuhbv3+mJvpLYYt+0+USMxE+oj+ey/lJEnhZw75x/OMcQ== - -concat-map@0.0.1: - version "0.0.1" - resolved "https://registry.yarnpkg.com/concat-map/-/concat-map-0.0.1.tgz#d8a96bd77fd68df7793a73036a3ba0d5405d477b" - integrity sha1-2Klr13/Wjfd5OnMDajug1UBdR3s= - -cross-spawn@^7.0.2: - version "7.0.3" - resolved "https://registry.yarnpkg.com/cross-spawn/-/cross-spawn-7.0.3.tgz#f73a85b9d5d41d045551c177e2882d4ac85728a6" - integrity sha512-iRDPJKUPVEND7dHPO8rkbOnPpyDygcDFtWjpeWNCgy8WP2rXcxXL8TskReQl6OrB2G7+UJrags1q15Fudc7G6w== - dependencies: - path-key "^3.1.0" - shebang-command "^2.0.0" - which "^2.0.1" - -"d3-array@2 - 3": - version "3.1.1" - resolved "https://registry.yarnpkg.com/d3-array/-/d3-array-3.1.1.tgz#7797eb53ead6b9083c75a45a681e93fc41bc468c" - integrity sha512-33qQ+ZoZlli19IFiQx4QEpf2CBEayMRzhlisJHSCsSUbDXv6ZishqS1x7uFVClKG4Wr7rZVHvaAttoLow6GqdQ== - dependencies: - internmap "1 - 2" - -"d3-time@1 - 3": - version "3.0.0" - resolved "https://registry.yarnpkg.com/d3-time/-/d3-time-3.0.0.tgz#65972cb98ae2d4954ef5c932e8704061335d4975" - integrity sha512-zmV3lRnlaLI08y9IMRXSDshQb5Nj77smnfpnd2LrBa/2K281Jijactokeak14QacHs/kKq0AQ121nidNYlarbQ== - dependencies: - d3-array "2 - 3" - -debug@4.3.2: - version "4.3.2" - resolved "https://registry.yarnpkg.com/debug/-/debug-4.3.2.tgz#f0a49c18ac8779e31d4a0c6029dfb76873c7428b" - integrity sha512-mOp8wKcvj7XxC78zLgw/ZA+6TSgkoE2C/ienthhRD298T7UNwAg9diBpLRxC0mOezLl4B0xV7M0cCO6P/O0Xhw== - dependencies: - ms "2.1.2" - -debug@^4.1.1, debug@^4.3.2: - version "4.3.3" - resolved "https://registry.yarnpkg.com/debug/-/debug-4.3.3.tgz#04266e0b70a98d4462e6e288e38259213332b664" - integrity sha512-/zxw5+vh1Tfv+4Qn7a5nsbcJKPaSvCDhojn6FEl9vupwK2VCSDtEiEtqr8DFtzYFOdz63LBkxec7DYuc2jon6Q== - dependencies: - ms "2.1.2" - -decamelize@^4.0.0: - version "4.0.0" - resolved "https://registry.yarnpkg.com/decamelize/-/decamelize-4.0.0.tgz#aa472d7bf660eb15f3494efd531cab7f2a709837" - integrity sha512-9iE1PgSik9HeIIw2JO94IidnE3eBoQrFJ3w7sFuzSX4DpmZ3v5sZpUiV5Swcf6mQEF+Y0ru8Neo+p+nyh2J+hQ== - -deep-is@^0.1.3: - version "0.1.4" - resolved "https://registry.yarnpkg.com/deep-is/-/deep-is-0.1.4.tgz#a6f2dce612fadd2ef1f519b73551f17e85199831" - integrity sha512-oIPzksmTg4/MriiaYGO+okXDT7ztn/w3Eptv/+gSIdMdKsJo0u4CfYNFJPy+4SKMuCqGw2wxnA+URMg3t8a/bQ== - -diff@5.0.0: - version "5.0.0" - resolved "https://registry.yarnpkg.com/diff/-/diff-5.0.0.tgz#7ed6ad76d859d030787ec35855f5b1daf31d852b" - integrity sha512-/VTCrvm5Z0JGty/BWHljh+BAiw3IK+2j87NGMu8Nwc/f48WoDAC395uomO9ZD117ZOBaHmkX1oyLvkVM/aIT3w== - -doctrine@^3.0.0: - version "3.0.0" - resolved "https://registry.yarnpkg.com/doctrine/-/doctrine-3.0.0.tgz#addebead72a6574db783639dc87a121773973961" - integrity sha512-yS+Q5i3hBf7GBkd4KG8a7eBNNWNGLTaEwwYWUijIYM7zrlYDM0BFXHjjPWlWZ1Rg7UaddZeIDmi9jF3HmqiQ2w== - dependencies: - esutils "^2.0.2" - -emoji-regex@^8.0.0: - version "8.0.0" - resolved "https://registry.yarnpkg.com/emoji-regex/-/emoji-regex-8.0.0.tgz#e818fd69ce5ccfcb404594f842963bf53164cc37" - integrity sha512-MSjYzcWNOA0ewAHpz0MxpYFvwg6yjy1NG3xteoqz644VCo/RPgnr1/GGt+ic3iJTzQ8Eu3TdM14SawnVUmGE6A== - -enquirer@^2.3.5: - version "2.3.6" - resolved "https://registry.yarnpkg.com/enquirer/-/enquirer-2.3.6.tgz#2a7fe5dd634a1e4125a975ec994ff5456dc3734d" - integrity sha512-yjNnPr315/FjS4zIsUxYguYUPP2e1NK4d7E7ZOLiyYCcbFBiTMyID+2wvm2w6+pZ/odMA7cRkjhsPbltwBOrLg== - dependencies: - ansi-colors "^4.1.1" - -escalade@^3.1.1: - version "3.1.1" - resolved "https://registry.yarnpkg.com/escalade/-/escalade-3.1.1.tgz#d8cfdc7000965c5a0174b4a82eaa5c0552742e40" - integrity sha512-k0er2gUkLf8O0zKJiAhmkTnJlTvINGv7ygDNPbeIsX/TJjGJZHuh9B2UxbsaEkmlEo9MfhrSzmhIlhRlI2GXnw== - -escape-string-regexp@4.0.0, escape-string-regexp@^4.0.0: - version "4.0.0" - resolved "https://registry.yarnpkg.com/escape-string-regexp/-/escape-string-regexp-4.0.0.tgz#14ba83a5d373e3d311e5afca29cf5bfad965bf34" - integrity sha512-TtpcNJ3XAzx3Gq8sWRzJaVajRs0uVxA2YAkdb1jm2YkPz4G6egUFAyA3n5vtEIZefPk5Wa4UXbKuS5fKkJWdgA== - -escape-string-regexp@^1.0.5: - version "1.0.5" - resolved "https://registry.yarnpkg.com/escape-string-regexp/-/escape-string-regexp-1.0.5.tgz#1b61c0562190a8dff6ae3bb2cf0200ca130b86d4" - integrity sha1-G2HAViGQqN/2rjuyzwIAyhMLhtQ= - -eslint-scope@^7.1.0: - version "7.1.0" - resolved "https://registry.yarnpkg.com/eslint-scope/-/eslint-scope-7.1.0.tgz#c1f6ea30ac583031f203d65c73e723b01298f153" - integrity sha512-aWwkhnS0qAXqNOgKOK0dJ2nvzEbhEvpy8OlJ9kZ0FeZnA6zpjv1/Vei+puGFFX7zkPCkHHXb7IDX3A+7yPrRWg== - dependencies: - esrecurse "^4.3.0" - estraverse "^5.2.0" - -eslint-utils@^3.0.0: - version "3.0.0" - resolved "https://registry.yarnpkg.com/eslint-utils/-/eslint-utils-3.0.0.tgz#8aebaface7345bb33559db0a1f13a1d2d48c3672" - integrity sha512-uuQC43IGctw68pJA1RgbQS8/NP7rch6Cwd4j3ZBtgo4/8Flj4eGE7ZYSZRN3iq5pVUv6GPdW5Z1RFleo84uLDA== - dependencies: - eslint-visitor-keys "^2.0.0" - -eslint-visitor-keys@^2.0.0: - version "2.1.0" - resolved "https://registry.yarnpkg.com/eslint-visitor-keys/-/eslint-visitor-keys-2.1.0.tgz#f65328259305927392c938ed44eb0a5c9b2bd303" - integrity sha512-0rSmRBzXgDzIsD6mGdJgevzgezI534Cer5L/vyMX0kHzT/jiB43jRhd9YUlMGYLQy2zprNmoT8qasCGtY+QaKw== - -eslint-visitor-keys@^3.1.0: - version "3.1.0" - resolved "https://registry.yarnpkg.com/eslint-visitor-keys/-/eslint-visitor-keys-3.1.0.tgz#eee4acea891814cda67a7d8812d9647dd0179af2" - integrity sha512-yWJFpu4DtjsWKkt5GeNBBuZMlNcYVs6vRCLoCVEJrTjaSB6LC98gFipNK/erM2Heg/E8mIK+hXG/pJMLK+eRZA== - -eslint@8: - version "8.4.0" - resolved "https://registry.yarnpkg.com/eslint/-/eslint-8.4.0.tgz#2fa01b271cafc28addc2719e551acff5e89f5230" - integrity sha512-kv0XQcAQJL/VD9THQKhTQZVqkJKA+tIj/v2ZKNaIHRAADcJWFb+B/BAewUYuF6UVg1s2xC5qXVoDk0G8sKGeTA== - dependencies: - "@eslint/eslintrc" "^1.0.5" - "@humanwhocodes/config-array" "^0.9.2" - ajv "^6.10.0" - chalk "^4.0.0" - cross-spawn "^7.0.2" - debug "^4.3.2" - doctrine "^3.0.0" - enquirer "^2.3.5" - escape-string-regexp "^4.0.0" - eslint-scope "^7.1.0" - eslint-utils "^3.0.0" - eslint-visitor-keys "^3.1.0" - espree "^9.2.0" - esquery "^1.4.0" - esutils "^2.0.2" - fast-deep-equal "^3.1.3" - file-entry-cache "^6.0.1" - functional-red-black-tree "^1.0.1" - glob-parent "^6.0.1" - globals "^13.6.0" - ignore "^4.0.6" - import-fresh "^3.0.0" - imurmurhash "^0.1.4" - is-glob "^4.0.0" - js-yaml "^4.1.0" - json-stable-stringify-without-jsonify "^1.0.1" - levn "^0.4.1" - lodash.merge "^4.6.2" - minimatch "^3.0.4" - natural-compare "^1.4.0" - optionator "^0.9.1" - progress "^2.0.0" - regexpp "^3.2.0" - semver "^7.2.1" - strip-ansi "^6.0.1" - strip-json-comments "^3.1.0" - text-table "^0.2.0" - v8-compile-cache "^2.0.3" - -espree@^9.2.0: - version "9.2.0" - resolved "https://registry.yarnpkg.com/espree/-/espree-9.2.0.tgz#c50814e01611c2d0f8bd4daa83c369eabba80dbc" - integrity sha512-oP3utRkynpZWF/F2x/HZJ+AGtnIclaR7z1pYPxy7NYM2fSO6LgK/Rkny8anRSPK/VwEA1eqm2squui0T7ZMOBg== - dependencies: - acorn "^8.6.0" - acorn-jsx "^5.3.1" - eslint-visitor-keys "^3.1.0" - -esquery@^1.4.0: - version "1.4.0" - resolved "https://registry.yarnpkg.com/esquery/-/esquery-1.4.0.tgz#2148ffc38b82e8c7057dfed48425b3e61f0f24a5" - integrity sha512-cCDispWt5vHHtwMY2YrAQ4ibFkAL8RbH5YGBnZBc90MolvvfkkQcJro/aZiAQUlQ3qgrYS6D6v8Gc5G5CQsc9w== - dependencies: - estraverse "^5.1.0" - -esrecurse@^4.3.0: - version "4.3.0" - resolved "https://registry.yarnpkg.com/esrecurse/-/esrecurse-4.3.0.tgz#7ad7964d679abb28bee72cec63758b1c5d2c9921" - integrity sha512-KmfKL3b6G+RXvP8N1vr3Tq1kL/oCFgn2NYXEtqP8/L3pKapUA4G8cFVaoF3SU323CD4XypR/ffioHmkti6/Tag== - dependencies: - estraverse "^5.2.0" - -estraverse@^5.1.0, estraverse@^5.2.0: - version "5.3.0" - resolved "https://registry.yarnpkg.com/estraverse/-/estraverse-5.3.0.tgz#2eea5290702f26ab8fe5370370ff86c965d21123" - integrity sha512-MMdARuVEQziNTeJD8DgMqmhwR11BRQ/cBP+pLtYdSTnf3MIO8fFeiINEbX36ZdNlfU/7A9f3gUw49B3oQsvwBA== - -esutils@^2.0.2: - version "2.0.3" - resolved "https://registry.yarnpkg.com/esutils/-/esutils-2.0.3.tgz#74d2eb4de0b8da1293711910d50775b9b710ef64" - integrity sha512-kVscqXk4OCp68SZ0dkgEKVi6/8ij300KBWTJq32P/dYeWTSwK41WyTxalN1eRmA5Z9UU/LX9D7FWSmV9SAYx6g== - -fast-deep-equal@^3.1.1, fast-deep-equal@^3.1.3: - version "3.1.3" - resolved "https://registry.yarnpkg.com/fast-deep-equal/-/fast-deep-equal-3.1.3.tgz#3a7d56b559d6cbc3eb512325244e619a65c6c525" - integrity sha512-f3qQ9oQy9j2AhBe/H9VC91wLmKBCCU/gDOnKNAYG5hswO7BLKj09Hc5HYNz9cGI++xlpDCIgDaitVs03ATR84Q== - -fast-json-stable-stringify@^2.0.0: - version "2.1.0" - resolved "https://registry.yarnpkg.com/fast-json-stable-stringify/-/fast-json-stable-stringify-2.1.0.tgz#874bf69c6f404c2b5d99c481341399fd55892633" - integrity sha512-lhd/wF+Lk98HZoTCtlVraHtfh5XYijIjalXck7saUtuanSDyLMxnHhSXEDJqHxD7msR8D0uCmqlkwjCV8xvwHw== - -fast-levenshtein@^2.0.6: - version "2.0.6" - resolved "https://registry.yarnpkg.com/fast-levenshtein/-/fast-levenshtein-2.0.6.tgz#3d8a5c66883a16a30ca8643e851f19baa7797917" - integrity sha1-PYpcZog6FqMMqGQ+hR8Zuqd5eRc= - -file-entry-cache@^6.0.1: - version "6.0.1" - resolved "https://registry.yarnpkg.com/file-entry-cache/-/file-entry-cache-6.0.1.tgz#211b2dd9659cb0394b073e7323ac3c933d522027" - integrity sha512-7Gps/XWymbLk2QLYK4NzpMOrYjMhdIxXuIvy2QBsLE6ljuodKvdkWs/cpyJJ3CVIVpH0Oi1Hvg1ovbMzLdFBBg== - dependencies: - flat-cache "^3.0.4" - -fill-range@^7.0.1: - version "7.0.1" - resolved "https://registry.yarnpkg.com/fill-range/-/fill-range-7.0.1.tgz#1919a6a7c75fe38b2c7c77e5198535da9acdda40" - integrity sha512-qOo9F+dMUmC2Lcb4BbVvnKJxTPjCm+RRpe4gDuGrzkL7mEVl/djYSu2OdQ2Pa302N4oqkSg9ir6jaLWJ2USVpQ== - dependencies: - to-regex-range "^5.0.1" - -find-up@5.0.0: - version "5.0.0" - resolved "https://registry.yarnpkg.com/find-up/-/find-up-5.0.0.tgz#4c92819ecb7083561e4f4a240a86be5198f536fc" - integrity sha512-78/PXT1wlLLDgTzDs7sjq9hzz0vXD+zn+7wypEe4fXQxCmdmqfGsEPQxmiCSQI3ajFV91bVSsvNtrJRiW6nGng== - dependencies: - locate-path "^6.0.0" - path-exists "^4.0.0" - -flat-cache@^3.0.4: - version "3.0.4" - resolved "https://registry.yarnpkg.com/flat-cache/-/flat-cache-3.0.4.tgz#61b0338302b2fe9f957dcc32fc2a87f1c3048b11" - integrity sha512-dm9s5Pw7Jc0GvMYbshN6zchCA9RgQlzzEZX3vylR9IqFfS8XciblUXOKfW6SiuJ0e13eDYZoZV5wdrev7P3Nwg== - dependencies: - flatted "^3.1.0" - rimraf "^3.0.2" - -flat@^5.0.2: - version "5.0.2" - resolved "https://registry.yarnpkg.com/flat/-/flat-5.0.2.tgz#8ca6fe332069ffa9d324c327198c598259ceb241" - integrity sha512-b6suED+5/3rTpUBdG1gupIl8MPFCAMA0QXwmljLhvCUKcUvdE4gWky9zpuGCcXHOsz4J9wPGNWq6OKpmIzz3hQ== - -flatted@^3.1.0: - version "3.2.4" - resolved "https://registry.yarnpkg.com/flatted/-/flatted-3.2.4.tgz#28d9969ea90661b5134259f312ab6aa7929ac5e2" - integrity sha512-8/sOawo8tJ4QOBX8YlQBMxL8+RLZfxMQOif9o0KUKTNTjMYElWPE0r/m5VNFxTRd0NSw8qSy8dajrwX4RYI1Hw== - -fs.realpath@^1.0.0: - version "1.0.0" - resolved "https://registry.yarnpkg.com/fs.realpath/-/fs.realpath-1.0.0.tgz#1504ad2523158caa40db4a2787cb01411994ea4f" - integrity sha1-FQStJSMVjKpA20onh8sBQRmU6k8= - -fsevents@~2.3.2: - version "2.3.2" - resolved "https://registry.yarnpkg.com/fsevents/-/fsevents-2.3.2.tgz#8a526f78b8fdf4623b709e0b975c52c24c02fd1a" - integrity sha512-xiqMQR4xAeHTuB9uWm+fFRcIOgKBMiOBP+eXiyT7jsgVCq1bkVygt00oASowB7EdtpOHaaPgKt812P9ab+DDKA== - -functional-red-black-tree@^1.0.1: - version "1.0.1" - resolved "https://registry.yarnpkg.com/functional-red-black-tree/-/functional-red-black-tree-1.0.1.tgz#1b0ab3bd553b2a0d6399d29c0e3ea0b252078327" - integrity sha1-GwqzvVU7Kg1jmdKcDj6gslIHgyc= - -get-caller-file@^2.0.5: - version "2.0.5" - resolved "https://registry.yarnpkg.com/get-caller-file/-/get-caller-file-2.0.5.tgz#4f94412a82db32f36e3b0b9741f8a97feb031f7e" - integrity sha512-DyFP3BM/3YHTQOCUL/w0OZHR0lpKeGrxotcHWcqNEdnltqFwXVfhEBQ94eIo34AfQpo0rGki4cyIiftY06h2Fg== - -glob-parent@^6.0.1: - version "6.0.2" - resolved "https://registry.yarnpkg.com/glob-parent/-/glob-parent-6.0.2.tgz#6d237d99083950c79290f24c7642a3de9a28f9e3" - integrity sha512-XxwI8EOhVQgWp6iDL+3b0r86f4d6AX6zSU55HfB4ydCEuXLXc5FcYeOu+nnGftS4TEju/11rt4KJPTMgbfmv4A== - dependencies: - is-glob "^4.0.3" - -glob-parent@~5.1.2: - version "5.1.2" - resolved "https://registry.yarnpkg.com/glob-parent/-/glob-parent-5.1.2.tgz#869832c58034fe68a4093c17dc15e8340d8401c4" - integrity sha512-AOIgSQCepiJYwP3ARnGx+5VnTu2HBYdzbGP45eLw1vr3zB3vZLeyed1sC9hnbcOc9/SrMyM5RPQrkGz4aS9Zow== - dependencies: - is-glob "^4.0.1" - -glob@7.1.7: - version "7.1.7" - resolved "https://registry.yarnpkg.com/glob/-/glob-7.1.7.tgz#3b193e9233f01d42d0b3f78294bbeeb418f94a90" - integrity sha512-OvD9ENzPLbegENnYP5UUfJIirTg4+XwMWGaQfQTY0JenxNvvIKP3U3/tAQSPIu/lHxXYSZmpXlUHeqAIdKzBLQ== - dependencies: - fs.realpath "^1.0.0" - inflight "^1.0.4" - inherits "2" - minimatch "^3.0.4" - once "^1.3.0" - path-is-absolute "^1.0.0" - -glob@^7.1.3: - version "7.2.0" - resolved "https://registry.yarnpkg.com/glob/-/glob-7.2.0.tgz#d15535af7732e02e948f4c41628bd910293f6023" - integrity sha512-lmLf6gtyrPq8tTjSmrO94wBeQbFR3HbLHbuyD69wuyQkImp2hWqMGB47OX65FBkPffO641IP9jWa1z4ivqG26Q== - dependencies: - fs.realpath "^1.0.0" - inflight "^1.0.4" - inherits "2" - minimatch "^3.0.4" - once "^1.3.0" - path-is-absolute "^1.0.0" - -globals@^13.6.0, globals@^13.9.0: - version "13.12.0" - resolved "https://registry.yarnpkg.com/globals/-/globals-13.12.0.tgz#4d733760304230a0082ed96e21e5c565f898089e" - integrity sha512-uS8X6lSKN2JumVoXrbUz+uG4BYG+eiawqm3qFcT7ammfbUHeCBoJMlHcec/S3krSk73/AE/f0szYFmgAA3kYZg== - dependencies: - type-fest "^0.20.2" - -growl@1.10.5: - version "1.10.5" - resolved "https://registry.yarnpkg.com/growl/-/growl-1.10.5.tgz#f2735dc2283674fa67478b10181059355c369e5e" - integrity sha512-qBr4OuELkhPenW6goKVXiv47US3clb3/IbuWF9KNKEijAy9oeHxU9IgzjvJhHkUzhaj7rOUD7+YGWqUjLp5oSA== - -has-flag@^3.0.0: - version "3.0.0" - resolved "https://registry.yarnpkg.com/has-flag/-/has-flag-3.0.0.tgz#b5d454dc2199ae225699f3467e5a07f3b955bafd" - integrity sha1-tdRU3CGZriJWmfNGfloH87lVuv0= - -has-flag@^4.0.0: - version "4.0.0" - resolved "https://registry.yarnpkg.com/has-flag/-/has-flag-4.0.0.tgz#944771fd9c81c81265c4d6941860da06bb59479b" - integrity sha512-EykJT/Q1KjTWctppgIAgfSO0tKVuZUjhgMr17kqTumMl6Afv3EISleU7qZUzoXDFTAHTDC4NOoG/ZxU3EvlMPQ== - -he@1.2.0: - version "1.2.0" - resolved "https://registry.yarnpkg.com/he/-/he-1.2.0.tgz#84ae65fa7eafb165fddb61566ae14baf05664f0f" - integrity sha512-F/1DnUGPopORZi0ni+CvrCgHQ5FyEAHRLSApuYWMmrbSwoN2Mn/7k+Gl38gJnR7yyDZk6WLXwiGod1JOWNDKGw== - -ignore@^4.0.6: - version "4.0.6" - resolved "https://registry.yarnpkg.com/ignore/-/ignore-4.0.6.tgz#750e3db5862087b4737ebac8207ffd1ef27b25fc" - integrity sha512-cyFDKrqc/YdcWFniJhzI42+AzS+gNwmUzOSFcRCQYwySuBBBy/KjuxWLZ/FHEH6Moq1NizMOBWyTcv8O4OZIMg== - -import-fresh@^3.0.0, import-fresh@^3.2.1: - version "3.3.0" - resolved "https://registry.yarnpkg.com/import-fresh/-/import-fresh-3.3.0.tgz#37162c25fcb9ebaa2e6e53d5b4d88ce17d9e0c2b" - integrity sha512-veYYhQa+D1QBKznvhUHxb8faxlrwUnxseDAbAp457E0wLNio2bOSKnjYDhMj+YiAq61xrMGhQk9iXVk5FzgQMw== - dependencies: - parent-module "^1.0.0" - resolve-from "^4.0.0" - -imurmurhash@^0.1.4: - version "0.1.4" - resolved "https://registry.yarnpkg.com/imurmurhash/-/imurmurhash-0.1.4.tgz#9218b9b2b928a238b13dc4fb6b6d576f231453ea" - integrity sha1-khi5srkoojixPcT7a21XbyMUU+o= - -inflight@^1.0.4: - version "1.0.6" - resolved "https://registry.yarnpkg.com/inflight/-/inflight-1.0.6.tgz#49bd6331d7d02d0c09bc910a1075ba8165b56df9" - integrity sha1-Sb1jMdfQLQwJvJEKEHW6gWW1bfk= - dependencies: - once "^1.3.0" - wrappy "1" - -inherits@2: - version "2.0.4" - resolved "https://registry.yarnpkg.com/inherits/-/inherits-2.0.4.tgz#0fa2c64f932917c3433a0ded55363aae37416b7c" - integrity sha512-k/vGaX4/Yla3WzyMCvTQOXYeIHvqOKtnqBduzTHpzpQZzAskKMhZ2K+EnBiSM9zGSoIFeMpXKxa4dYeZIQqewQ== - -"internmap@1 - 2": - version "2.0.3" - resolved "https://registry.yarnpkg.com/internmap/-/internmap-2.0.3.tgz#6685f23755e43c524e251d29cbc97248e3061009" - integrity sha512-5Hh7Y1wQbvY5ooGgPbDaL5iYLAPzMTUrjMulskHLH6wnv/A+1q5rgEaiuqEjB+oxGXIVZs1FF+R/KPN3ZSQYYg== - -is-binary-path@~2.1.0: - version "2.1.0" - resolved "https://registry.yarnpkg.com/is-binary-path/-/is-binary-path-2.1.0.tgz#ea1f7f3b80f064236e83470f86c09c254fb45b09" - integrity sha512-ZMERYes6pDydyuGidse7OsHxtbI7WVeUEozgR/g7rd0xUimYNlvZRE/K2MgZTjWy725IfelLeVcEM97mmtRGXw== - dependencies: - binary-extensions "^2.0.0" - -is-extglob@^2.1.1: - version "2.1.1" - resolved "https://registry.yarnpkg.com/is-extglob/-/is-extglob-2.1.1.tgz#a88c02535791f02ed37c76a1b9ea9773c833f8c2" - integrity sha1-qIwCU1eR8C7TfHahueqXc8gz+MI= - -is-fullwidth-code-point@^3.0.0: - version "3.0.0" - resolved "https://registry.yarnpkg.com/is-fullwidth-code-point/-/is-fullwidth-code-point-3.0.0.tgz#f116f8064fe90b3f7844a38997c0b75051269f1d" - integrity sha512-zymm5+u+sCsSWyD9qNaejV3DFvhCKclKdizYaJUuHA83RLjb7nSuGnddCHGv0hk+KY7BMAlsWeK4Ueg6EV6XQg== - -is-glob@^4.0.0, is-glob@^4.0.1, is-glob@^4.0.3, is-glob@~4.0.1: - version "4.0.3" - resolved "https://registry.yarnpkg.com/is-glob/-/is-glob-4.0.3.tgz#64f61e42cbbb2eec2071a9dac0b28ba1e65d5084" - integrity sha512-xelSayHH36ZgE7ZWhli7pW34hNbNl8Ojv5KVmkJD4hBdD3th8Tfk9vYasLM+mXWOZhFkgZfxhLSnrwRr4elSSg== - dependencies: - is-extglob "^2.1.1" - -is-number@^7.0.0: - version "7.0.0" - resolved "https://registry.yarnpkg.com/is-number/-/is-number-7.0.0.tgz#7535345b896734d5f80c4d06c50955527a14f12b" - integrity sha512-41Cifkg6e8TylSpdtTpeLVMqvSBEVzTttHvERD741+pnZ8ANv0004MRL43QKPDlK9cGvNp6NZWZUBlbGXYxxng== - -is-plain-obj@^2.1.0: - version "2.1.0" - resolved "https://registry.yarnpkg.com/is-plain-obj/-/is-plain-obj-2.1.0.tgz#45e42e37fccf1f40da8e5f76ee21515840c09287" - integrity sha512-YWnfyRwxL/+SsrWYfOpUtz5b3YD+nyfkHvjbcanzk8zgyO4ASD67uVMRt8k5bM4lLMDnXfriRhOpemw+NfT1eA== - -is-unicode-supported@^0.1.0: - version "0.1.0" - resolved "https://registry.yarnpkg.com/is-unicode-supported/-/is-unicode-supported-0.1.0.tgz#3f26c76a809593b52bfa2ecb5710ed2779b522a7" - integrity sha512-knxG2q4UC3u8stRGyAVJCOdxFmv5DZiRcdlIaAQXAbSfJya+OhopNotLQrstBhququ4ZpuKbDc/8S6mgXgPFPw== - -isexe@^2.0.0: - version "2.0.0" - resolved "https://registry.yarnpkg.com/isexe/-/isexe-2.0.0.tgz#e8fbf374dc556ff8947a10dcb0572d633f2cfa10" - integrity sha1-6PvzdNxVb/iUehDcsFctYz8s+hA= - -jest-worker@^26.2.1: - version "26.6.2" - resolved "https://registry.yarnpkg.com/jest-worker/-/jest-worker-26.6.2.tgz#7f72cbc4d643c365e27b9fd775f9d0eaa9c7a8ed" - integrity sha512-KWYVV1c4i+jbMpaBC+U++4Va0cp8OisU185o73T1vo99hqi7w8tSJfUXYswwqqrjzwxa6KpRK54WhPvwf5w6PQ== - dependencies: - "@types/node" "*" - merge-stream "^2.0.0" - supports-color "^7.0.0" - -js-tokens@^4.0.0: - version "4.0.0" - resolved "https://registry.yarnpkg.com/js-tokens/-/js-tokens-4.0.0.tgz#19203fb59991df98e3a287050d4647cdeaf32499" - integrity sha512-RdJUflcE3cUzKiMqQgsCu06FPu9UdIJO0beYbPhHN4k6apgJtifcoCtT9bcxOpYBtpD2kCM6Sbzg4CausW/PKQ== - -js-yaml@4.1.0, js-yaml@^4.1.0: - version "4.1.0" - resolved "https://registry.yarnpkg.com/js-yaml/-/js-yaml-4.1.0.tgz#c1fb65f8f5017901cdd2c951864ba18458a10602" - integrity sha512-wpxZs9NoxZaJESJGIZTyDEaYpl0FKSA+FB9aJiyemKhMwkxQg63h4T1KJgUGHpTqPDNRcmmYLugrRjJlBtWvRA== - dependencies: - argparse "^2.0.1" - -json-schema-traverse@^0.4.1: - version "0.4.1" - resolved "https://registry.yarnpkg.com/json-schema-traverse/-/json-schema-traverse-0.4.1.tgz#69f6a87d9513ab8bb8fe63bdb0979c448e684660" - integrity sha512-xbbCH5dCYU5T8LcEhhuh7HJ88HXuW3qsI3Y0zOZFKfZEHcpWiHU/Jxzk629Brsab/mMiHQti9wMP+845RPe3Vg== - -json-stable-stringify-without-jsonify@^1.0.1: - version "1.0.1" - resolved "https://registry.yarnpkg.com/json-stable-stringify-without-jsonify/-/json-stable-stringify-without-jsonify-1.0.1.tgz#9db7b59496ad3f3cfef30a75142d2d930ad72651" - integrity sha1-nbe1lJatPzz+8wp1FC0tkwrXJlE= - -levn@^0.4.1: - version "0.4.1" - resolved "https://registry.yarnpkg.com/levn/-/levn-0.4.1.tgz#ae4562c007473b932a6200d403268dd2fffc6ade" - integrity sha512-+bT2uH4E5LGE7h/n3evcS/sQlJXCpIp6ym8OWJ5eV6+67Dsql/LaaT7qJBAt2rzfoa/5QBGBhxDix1dMt2kQKQ== - dependencies: - prelude-ls "^1.2.1" - type-check "~0.4.0" - -locate-path@^6.0.0: - version "6.0.0" - resolved "https://registry.yarnpkg.com/locate-path/-/locate-path-6.0.0.tgz#55321eb309febbc59c4801d931a72452a681d286" - integrity sha512-iPZK6eYjbxRu3uB4/WZ3EsEIMJFMqAoopl3R+zuq0UjcAm/MO6KCweDgPfP3elTztoKP3KtnVHxTn2NHBSDVUw== - dependencies: - p-locate "^5.0.0" - -lodash.merge@^4.6.2: - version "4.6.2" - resolved "https://registry.yarnpkg.com/lodash.merge/-/lodash.merge-4.6.2.tgz#558aa53b43b661e1925a0afdfa36a9a1085fe57a" - integrity sha512-0KpjqXRVvrYyCsX1swR/XTK0va6VQkQM6MNo7PqW77ByjAhoARA8EfrP1N4+KlKj8YS0ZUCtRT/YUuhyYDujIQ== - -log-symbols@4.1.0: - version "4.1.0" - resolved "https://registry.yarnpkg.com/log-symbols/-/log-symbols-4.1.0.tgz#3fbdbb95b4683ac9fc785111e792e558d4abd503" - integrity sha512-8XPvpAA8uyhfteu8pIvQxpJZ7SYYdpUivZpGy6sFsBuKRY/7rQGavedeB8aK+Zkyq6upMFVL/9AW6vOYzfRyLg== - dependencies: - chalk "^4.1.0" - is-unicode-supported "^0.1.0" - -lru-cache@^6.0.0: - version "6.0.0" - resolved "https://registry.yarnpkg.com/lru-cache/-/lru-cache-6.0.0.tgz#6d6fe6570ebd96aaf90fcad1dafa3b2566db3a94" - integrity sha512-Jo6dJ04CmSjuznwJSS3pUeWmd/H0ffTlkXXgwZi+eq1UCmqQwCh+eLsYOYCwY991i2Fah4h1BEMCx4qThGbsiA== - dependencies: - yallist "^4.0.0" - -merge-stream@^2.0.0: - version "2.0.0" - resolved "https://registry.yarnpkg.com/merge-stream/-/merge-stream-2.0.0.tgz#52823629a14dd00c9770fb6ad47dc6310f2c1f60" - integrity sha512-abv/qOcuPfk3URPfDzmZU1LKmuw8kT+0nIHvKrKgFrwifol/doWcdA4ZqsWQ8ENrFKkd67Mfpo/LovbIUsbt3w== - -minimatch@3.0.4, minimatch@^3.0.4: - version "3.0.4" - resolved "https://registry.yarnpkg.com/minimatch/-/minimatch-3.0.4.tgz#5166e286457f03306064be5497e8dbb0c3d32083" - integrity sha512-yJHVQEhyqPLUTgt9B83PXu6W3rx4MvvHvSUvToogpwoGDOUQ+yDrR0HRot+yOCdCO7u4hX3pWft6kWBBcqh0UA== - dependencies: - brace-expansion "^1.1.7" - -mocha@9: - version "9.1.3" - resolved "https://registry.yarnpkg.com/mocha/-/mocha-9.1.3.tgz#8a623be6b323810493d8c8f6f7667440fa469fdb" - integrity sha512-Xcpl9FqXOAYqI3j79pEtHBBnQgVXIhpULjGQa7DVb0Po+VzmSIK9kanAiWLHoRR/dbZ2qpdPshuXr8l1VaHCzw== - dependencies: - "@ungap/promise-all-settled" "1.1.2" - ansi-colors "4.1.1" - browser-stdout "1.3.1" - chokidar "3.5.2" - debug "4.3.2" - diff "5.0.0" - escape-string-regexp "4.0.0" - find-up "5.0.0" - glob "7.1.7" - growl "1.10.5" - he "1.2.0" - js-yaml "4.1.0" - log-symbols "4.1.0" - minimatch "3.0.4" - ms "2.1.3" - nanoid "3.1.25" - serialize-javascript "6.0.0" - strip-json-comments "3.1.1" - supports-color "8.1.1" - which "2.0.2" - workerpool "6.1.5" - yargs "16.2.0" - yargs-parser "20.2.4" - yargs-unparser "2.0.0" - -ms@2.1.2: - version "2.1.2" - resolved "https://registry.yarnpkg.com/ms/-/ms-2.1.2.tgz#d09d1f357b443f493382a8eb3ccd183872ae6009" - integrity sha512-sGkPx+VjMtmA6MX27oA4FBFELFCZZ4S4XqeGOXCv68tT+jb3vk/RyaKWP0PTKyWtmLSM0b+adUTEvbs1PEaH2w== - -ms@2.1.3: - version "2.1.3" - resolved "https://registry.yarnpkg.com/ms/-/ms-2.1.3.tgz#574c8138ce1d2b5861f0b44579dbadd60c6615b2" - integrity sha512-6FlzubTLZG3J2a/NVCAleEhjzq5oxgHyaCU9yYXvcLsvoVaHJq/s5xXI6/XXP6tz7R9xAOtHnSO/tXtF3WRTlA== - -nanoid@3.1.25: - version "3.1.25" - resolved "https://registry.yarnpkg.com/nanoid/-/nanoid-3.1.25.tgz#09ca32747c0e543f0e1814b7d3793477f9c8e152" - integrity sha512-rdwtIXaXCLFAQbnfqDRnI6jaRHp9fTcYBjtFKE8eezcZ7LuLjhUaQGNeMXf1HmRoCH32CLz6XwX0TtxEOS/A3Q== - -natural-compare@^1.4.0: - version "1.4.0" - resolved "https://registry.yarnpkg.com/natural-compare/-/natural-compare-1.4.0.tgz#4abebfeed7541f2c27acfb29bdbbd15c8d5ba4f7" - integrity sha1-Sr6/7tdUHywnrPspvbvRXI1bpPc= - -normalize-path@^3.0.0, normalize-path@~3.0.0: - version "3.0.0" - resolved "https://registry.yarnpkg.com/normalize-path/-/normalize-path-3.0.0.tgz#0dcd69ff23a1c9b11fd0978316644a0388216a65" - integrity sha512-6eZs5Ls3WtCisHWp9S2GUy8dqkpGi4BVSz3GaqiE6ezub0512ESztXUwUB6C6IKbQkY2Pnb/mD4WYojCRwcwLA== - -once@^1.3.0: - version "1.4.0" - resolved "https://registry.yarnpkg.com/once/-/once-1.4.0.tgz#583b1aa775961d4b113ac17d9c50baef9dd76bd1" - integrity sha1-WDsap3WWHUsROsF9nFC6753Xa9E= - dependencies: - wrappy "1" - -optionator@^0.9.1: - version "0.9.1" - resolved "https://registry.yarnpkg.com/optionator/-/optionator-0.9.1.tgz#4f236a6373dae0566a6d43e1326674f50c291499" - integrity sha512-74RlY5FCnhq4jRxVUPKDaRwrVNXMqsGsiW6AJw4XK8hmtm10wC0ypZBLw5IIp85NZMr91+qd1RvvENwg7jjRFw== - dependencies: - deep-is "^0.1.3" - fast-levenshtein "^2.0.6" - levn "^0.4.1" - prelude-ls "^1.2.1" - type-check "^0.4.0" - word-wrap "^1.2.3" - -p-limit@^3.0.2: - version "3.1.0" - resolved "https://registry.yarnpkg.com/p-limit/-/p-limit-3.1.0.tgz#e1daccbe78d0d1388ca18c64fea38e3e57e3706b" - integrity sha512-TYOanM3wGwNGsZN2cVTYPArw454xnXj5qmWF1bEoAc4+cU/ol7GVh7odevjp1FNHduHc3KZMcFduxU5Xc6uJRQ== - dependencies: - yocto-queue "^0.1.0" - -p-locate@^5.0.0: - version "5.0.0" - resolved "https://registry.yarnpkg.com/p-locate/-/p-locate-5.0.0.tgz#83c8315c6785005e3bd021839411c9e110e6d834" - integrity sha512-LaNjtRWUBY++zB5nE/NwcaoMylSPk+S+ZHNB1TzdbMJMny6dynpAGt7X/tl/QYq3TIeE6nxHppbo2LGymrG5Pw== - dependencies: - p-limit "^3.0.2" - -parent-module@^1.0.0: - version "1.0.1" - resolved "https://registry.yarnpkg.com/parent-module/-/parent-module-1.0.1.tgz#691d2709e78c79fae3a156622452d00762caaaa2" - integrity sha512-GQ2EWRpQV8/o+Aw8YqtfZZPfNRWZYkbidE9k5rpl/hC3vtHHBfGm2Ifi6qWV+coDGkrUKZAxE3Lot5kcsRlh+g== - dependencies: - callsites "^3.0.0" - -path-exists@^4.0.0: - version "4.0.0" - resolved "https://registry.yarnpkg.com/path-exists/-/path-exists-4.0.0.tgz#513bdbe2d3b95d7762e8c1137efa195c6c61b5b3" - integrity sha512-ak9Qy5Q7jYb2Wwcey5Fpvg2KoAc/ZIhLSLOSBmRmygPsGwkVVt0fZa0qrtMz+m6tJTAHfZQ8FnmB4MG4LWy7/w== - -path-is-absolute@^1.0.0: - version "1.0.1" - resolved "https://registry.yarnpkg.com/path-is-absolute/-/path-is-absolute-1.0.1.tgz#174b9268735534ffbc7ace6bf53a5a9e1b5c5f5f" - integrity sha1-F0uSaHNVNP+8es5r9TpanhtcX18= - -path-key@^3.1.0: - version "3.1.1" - resolved "https://registry.yarnpkg.com/path-key/-/path-key-3.1.1.tgz#581f6ade658cbba65a0d3380de7753295054f375" - integrity sha512-ojmeN0qd+y0jszEtoY48r0Peq5dwMEkIlCOu6Q5f41lfkswXuKtYrhgoTpLnyIcHm24Uhqx+5Tqm2InSwLhE6Q== - -picomatch@^2.0.4, picomatch@^2.2.1: - version "2.3.0" - resolved "https://registry.yarnpkg.com/picomatch/-/picomatch-2.3.0.tgz#f1f061de8f6a4bf022892e2d128234fb98302972" - integrity sha512-lY1Q/PiJGC2zOv/z391WOTD+Z02bCgsFfvxoXXf6h7kv9o+WmsmzYqrAwY63sNgOxE4xEdq0WyUnXfKeBrSvYw== - -prelude-ls@^1.2.1: - version "1.2.1" - resolved "https://registry.yarnpkg.com/prelude-ls/-/prelude-ls-1.2.1.tgz#debc6489d7a6e6b0e7611888cec880337d316396" - integrity sha512-vkcDPrRZo1QZLbn5RLGPpg/WmIQ65qoWWhcGKf/b5eplkkarX0m9z8ppCat4mlOqUsWpyNuYgO3VRyrYHSzX5g== - -progress@^2.0.0: - version "2.0.3" - resolved "https://registry.yarnpkg.com/progress/-/progress-2.0.3.tgz#7e8cf8d8f5b8f239c1bc68beb4eb78567d572ef8" - integrity sha512-7PiHtLll5LdnKIMw100I+8xJXR5gW2QwWYkT6iJva0bXitZKa/XMrSbdmg3r2Xnaidz9Qumd0VPaMrZlF9V9sA== - -punycode@^2.1.0: - version "2.1.1" - resolved "https://registry.yarnpkg.com/punycode/-/punycode-2.1.1.tgz#b58b010ac40c22c5657616c8d2c2c02c7bf479ec" - integrity sha512-XRsRjdf+j5ml+y/6GKHPZbrF/8p2Yga0JPtdqTIY2Xe5ohJPD9saDJJLPvp9+NSBprVvevdXZybnj2cv8OEd0A== - -randombytes@^2.1.0: - version "2.1.0" - resolved "https://registry.yarnpkg.com/randombytes/-/randombytes-2.1.0.tgz#df6f84372f0270dc65cdf6291349ab7a473d4f2a" - integrity sha512-vYl3iOX+4CKUWuxGi9Ukhie6fsqXqS9FE2Zaic4tNFD2N2QQaXOMFbuKK4QmDHC0JO6B1Zp41J0LpT0oR68amQ== - dependencies: - safe-buffer "^5.1.0" - -readdirp@~3.6.0: - version "3.6.0" - resolved "https://registry.yarnpkg.com/readdirp/-/readdirp-3.6.0.tgz#74a370bd857116e245b29cc97340cd431a02a6c7" - integrity sha512-hOS089on8RduqdbhvQ5Z37A0ESjsqz6qnRcffsMU3495FuTdqSm+7bhJ29JvIOsBDEEnan5DPu9t3To9VRlMzA== - dependencies: - picomatch "^2.2.1" - -regexpp@^3.2.0: - version "3.2.0" - resolved "https://registry.yarnpkg.com/regexpp/-/regexpp-3.2.0.tgz#0425a2768d8f23bad70ca4b90461fa2f1213e1b2" - integrity sha512-pq2bWo9mVD43nbts2wGv17XLiNLya+GklZ8kaDLV2Z08gDCsGpnKn9BFMepvWuHCbyVvY7J5o5+BVvoQbmlJLg== - -require-directory@^2.1.1: - version "2.1.1" - resolved "https://registry.yarnpkg.com/require-directory/-/require-directory-2.1.1.tgz#8c64ad5fd30dab1c976e2344ffe7f792a6a6df42" - integrity sha1-jGStX9MNqxyXbiNE/+f3kqam30I= - -resolve-from@^4.0.0: - version "4.0.0" - resolved "https://registry.yarnpkg.com/resolve-from/-/resolve-from-4.0.0.tgz#4abcd852ad32dd7baabfe9b40e00a36db5f392e6" - integrity sha512-pb/MYmXstAkysRFx8piNI1tGFNQIFA3vkE3Gq4EuA1dF6gHp/+vgZqsCGJapvy8N3Q+4o7FwvquPJcnZ7RYy4g== - -rimraf@^3.0.2: - version "3.0.2" - resolved "https://registry.yarnpkg.com/rimraf/-/rimraf-3.0.2.tgz#f1a5402ba6220ad52cc1282bac1ae3aa49fd061a" - integrity sha512-JZkJMZkAGFFPP2YqXZXPbMlMBgsxzE8ILs4lMIX/2o0L9UBw9O/Y3o6wFw/i9YLapcUJWwqbi3kdxIPdC62TIA== - dependencies: - glob "^7.1.3" - -rollup-plugin-terser@7: - version "7.0.2" - resolved "https://registry.yarnpkg.com/rollup-plugin-terser/-/rollup-plugin-terser-7.0.2.tgz#e8fbba4869981b2dc35ae7e8a502d5c6c04d324d" - integrity sha512-w3iIaU4OxcF52UUXiZNsNeuXIMDvFrr+ZXK6bFZ0Q60qyVfq4uLptoS4bbq3paG3x216eQllFZX7zt6TIImguQ== - dependencies: - "@babel/code-frame" "^7.10.4" - jest-worker "^26.2.1" - serialize-javascript "^4.0.0" - terser "^5.0.0" - -rollup@2: - version "2.60.2" - resolved "https://registry.yarnpkg.com/rollup/-/rollup-2.60.2.tgz#3f45ace36a9b10b4297181831ea0719922513463" - integrity sha512-1Bgjpq61sPjgoZzuiDSGvbI1tD91giZABgjCQBKM5aYLnzjq52GoDuWVwT/cm/MCxCMPU8gqQvkj8doQ5C8Oqw== - optionalDependencies: - fsevents "~2.3.2" - -safe-buffer@^5.1.0: - version "5.2.1" - resolved "https://registry.yarnpkg.com/safe-buffer/-/safe-buffer-5.2.1.tgz#1eaf9fa9bdb1fdd4ec75f58f9cdb4e6b7827eec6" - integrity sha512-rp3So07KcdmmKbGvgaNxQSJr7bGVSVk5S9Eq1F+ppbRo70+YeaDxkw5Dd8NPN+GD6bjnYm2VuPuCXmpuYvmCXQ== - -semver@^7.2.1: - version "7.3.5" - resolved "https://registry.yarnpkg.com/semver/-/semver-7.3.5.tgz#0b621c879348d8998e4b0e4be94b3f12e6018ef7" - integrity sha512-PoeGJYh8HK4BTO/a9Tf6ZG3veo/A7ZVsYrSA6J8ny9nb3B1VrpkuN+z9OE5wfE5p6H4LchYZsegiQgbJD94ZFQ== - dependencies: - lru-cache "^6.0.0" - -serialize-javascript@6.0.0: - version "6.0.0" - resolved "https://registry.yarnpkg.com/serialize-javascript/-/serialize-javascript-6.0.0.tgz#efae5d88f45d7924141da8b5c3a7a7e663fefeb8" - integrity sha512-Qr3TosvguFt8ePWqsvRfrKyQXIiW+nGbYpy8XK24NQHE83caxWt+mIymTT19DGFbNWNLfEwsrkSmN64lVWB9ag== - dependencies: - randombytes "^2.1.0" - -serialize-javascript@^4.0.0: - version "4.0.0" - resolved "https://registry.yarnpkg.com/serialize-javascript/-/serialize-javascript-4.0.0.tgz#b525e1238489a5ecfc42afacc3fe99e666f4b1aa" - integrity sha512-GaNA54380uFefWghODBWEGisLZFj00nS5ACs6yHa9nLqlLpVLO8ChDGeKRjZnV4Nh4n0Qi7nhYZD/9fCPzEqkw== - dependencies: - randombytes "^2.1.0" - -shebang-command@^2.0.0: - version "2.0.0" - resolved "https://registry.yarnpkg.com/shebang-command/-/shebang-command-2.0.0.tgz#ccd0af4f8835fbdc265b82461aaf0c36663f34ea" - integrity sha512-kHxr2zZpYtdmrN1qDjrrX/Z1rR1kG8Dx+gkpK1G4eXmvXswmcE1hTWBWYUzlraYw1/yZp6YuDY77YtvbN0dmDA== - dependencies: - shebang-regex "^3.0.0" - -shebang-regex@^3.0.0: - version "3.0.0" - resolved "https://registry.yarnpkg.com/shebang-regex/-/shebang-regex-3.0.0.tgz#ae16f1644d873ecad843b0307b143362d4c42172" - integrity sha512-7++dFhtcx3353uBaq8DDR4NuxBetBzC7ZQOhmTQInHEd6bSrXdiEyzCvG07Z44UYdLShWUyXt5M/yhz8ekcb1A== - -source-map-support@~0.5.20: - version "0.5.21" - resolved "https://registry.yarnpkg.com/source-map-support/-/source-map-support-0.5.21.tgz#04fe7c7f9e1ed2d662233c28cb2b35b9f63f6e4f" - integrity sha512-uBHU3L3czsIyYXKX88fdrGovxdSCoTGDRZ6SYXtSRxLZUzHg5P/66Ht6uoUlHu9EZod+inXhKo3qQgwXUT/y1w== - dependencies: - buffer-from "^1.0.0" - source-map "^0.6.0" - -source-map@^0.6.0: - version "0.6.1" - resolved "https://registry.yarnpkg.com/source-map/-/source-map-0.6.1.tgz#74722af32e9614e9c287a8d0bbde48b5e2f1a263" - integrity sha512-UjgapumWlbMhkBgzT7Ykc5YXUT46F0iKu8SGXq0bcwP5dz/h0Plj6enJqjz1Zbq2l5WaqYnrVbwWOWMyF3F47g== - -source-map@~0.7.2: - version "0.7.3" - resolved "https://registry.yarnpkg.com/source-map/-/source-map-0.7.3.tgz#5302f8169031735226544092e64981f751750383" - integrity sha512-CkCj6giN3S+n9qrYiBTX5gystlENnRW5jZeNLHpe6aue+SrHcG5VYwujhW9s4dY31mEGsxBDrHR6oI69fTXsaQ== - -string-width@^4.1.0, string-width@^4.2.0: - version "4.2.3" - resolved "https://registry.yarnpkg.com/string-width/-/string-width-4.2.3.tgz#269c7117d27b05ad2e536830a8ec895ef9c6d010" - integrity sha512-wKyQRQpjJ0sIp62ErSZdGsjMJWsap5oRNihHhu6G7JVO/9jIB6UyevL+tXuOqrng8j/cxKTWyWUwvSTriiZz/g== - dependencies: - emoji-regex "^8.0.0" - is-fullwidth-code-point "^3.0.0" - strip-ansi "^6.0.1" - -strip-ansi@^6.0.0, strip-ansi@^6.0.1: - version "6.0.1" - resolved "https://registry.yarnpkg.com/strip-ansi/-/strip-ansi-6.0.1.tgz#9e26c63d30f53443e9489495b2105d37b67a85d9" - integrity sha512-Y38VPSHcqkFrCpFnQ9vuSXmquuv5oXOKpGeT6aGrr3o3Gc9AlVa6JBfUSOCnbxGGZF+/0ooI7KrPuUSztUdU5A== - dependencies: - ansi-regex "^5.0.1" - -strip-json-comments@3.1.1, strip-json-comments@^3.1.0, strip-json-comments@^3.1.1: - version "3.1.1" - resolved "https://registry.yarnpkg.com/strip-json-comments/-/strip-json-comments-3.1.1.tgz#31f1281b3832630434831c310c01cccda8cbe006" - integrity sha512-6fPc+R4ihwqP6N/aIv2f1gMH8lOVtWQHoqC4yK6oSDVVocumAsfCqjkXnqiYMhmMwS/mEHLp7Vehlt3ql6lEig== - -supports-color@8.1.1: - version "8.1.1" - resolved "https://registry.yarnpkg.com/supports-color/-/supports-color-8.1.1.tgz#cd6fc17e28500cff56c1b86c0a7fd4a54a73005c" - integrity sha512-MpUEN2OodtUzxvKQl72cUF7RQ5EiHsGvSsVG0ia9c5RbWGL2CI4C7EpPS8UTBIplnlzZiNuV56w+FuNxy3ty2Q== - dependencies: - has-flag "^4.0.0" - -supports-color@^5.3.0: - version "5.5.0" - resolved "https://registry.yarnpkg.com/supports-color/-/supports-color-5.5.0.tgz#e2e69a44ac8772f78a1ec0b35b689df6530efc8f" - integrity sha512-QjVjwdXIt408MIiAqCX4oUKsgU2EqAGzs2Ppkm4aQYbjm+ZEWEcW4SfFNTr4uMNZma0ey4f5lgLrkB0aX0QMow== - dependencies: - has-flag "^3.0.0" - -supports-color@^7.0.0, supports-color@^7.1.0: - version "7.2.0" - resolved "https://registry.yarnpkg.com/supports-color/-/supports-color-7.2.0.tgz#1b7dcdcb32b8138801b3e478ba6a51caa89648da" - integrity sha512-qpCAvRl9stuOHveKsn7HncJRvv501qIacKzQlO/+Lwxc9+0q2wLyv4Dfvt80/DPn2pqOBsJdDiogXGR9+OvwRw== - dependencies: - has-flag "^4.0.0" - -terser@^5.0.0: - version "5.10.0" - resolved "https://registry.yarnpkg.com/terser/-/terser-5.10.0.tgz#b86390809c0389105eb0a0b62397563096ddafcc" - integrity sha512-AMmF99DMfEDiRJfxfY5jj5wNH/bYO09cniSqhfoyxc8sFoYIgkJy86G04UoZU5VjlpnplVu0K6Tx6E9b5+DlHA== - dependencies: - commander "^2.20.0" - source-map "~0.7.2" - source-map-support "~0.5.20" - -text-table@^0.2.0: - version "0.2.0" - resolved "https://registry.yarnpkg.com/text-table/-/text-table-0.2.0.tgz#7f5ee823ae805207c00af2df4a84ec3fcfa570b4" - integrity sha1-f17oI66AUgfACvLfSoTsP8+lcLQ= - -to-regex-range@^5.0.1: - version "5.0.1" - resolved "https://registry.yarnpkg.com/to-regex-range/-/to-regex-range-5.0.1.tgz#1648c44aae7c8d988a326018ed72f5b4dd0392e4" - integrity sha512-65P7iz6X5yEr1cwcgvQxbbIw7Uk3gOy5dIdtZ4rDveLqhrdJP+Li/Hx6tyK0NEb+2GCyneCMJiGqrADCSNk8sQ== - dependencies: - is-number "^7.0.0" - -type-check@^0.4.0, type-check@~0.4.0: - version "0.4.0" - resolved "https://registry.yarnpkg.com/type-check/-/type-check-0.4.0.tgz#07b8203bfa7056c0657050e3ccd2c37730bab8f1" - integrity sha512-XleUoc9uwGXqjWwXaUTZAmzMcFZ5858QA2vvx1Ur5xIcixXIP+8LnFDgRplU30us6teqdlskFfu+ae4K79Ooew== - dependencies: - prelude-ls "^1.2.1" - -type-fest@^0.20.2: - version "0.20.2" - resolved "https://registry.yarnpkg.com/type-fest/-/type-fest-0.20.2.tgz#1bf207f4b28f91583666cb5fbd327887301cd5f4" - integrity sha512-Ne+eE4r0/iWnpAxD852z3A+N0Bt5RN//NjJwRd2VFHEmrywxf5vsZlh4R6lixl6B+wz/8d+maTSAkN1FIkI3LQ== - -uri-js@^4.2.2: - version "4.4.1" - resolved "https://registry.yarnpkg.com/uri-js/-/uri-js-4.4.1.tgz#9b1a52595225859e55f669d928f88c6c57f2a77e" - integrity sha512-7rKUyy33Q1yc98pQ1DAmLtwX109F7TIfWlW1Ydo8Wl1ii1SeHieeh0HHfPeL2fMXK6z0s8ecKs9frCuLJvndBg== - dependencies: - punycode "^2.1.0" - -v8-compile-cache@^2.0.3: - version "2.3.0" - resolved "https://registry.yarnpkg.com/v8-compile-cache/-/v8-compile-cache-2.3.0.tgz#2de19618c66dc247dcfb6f99338035d8245a2cee" - integrity sha512-l8lCEmLcLYZh4nbunNZvQCJc5pv7+RCwa8q/LdUx8u7lsWvPDKmpodJAJNwkAhJC//dFY48KuIEmjtd4RViDrA== - -which@2.0.2, which@^2.0.1: - version "2.0.2" - resolved "https://registry.yarnpkg.com/which/-/which-2.0.2.tgz#7c6a8dd0a636a0327e10b59c9286eee93f3f51b1" - integrity sha512-BLI3Tl1TW3Pvl70l3yq3Y64i+awpwXqsGBYWkkqMtnbXgrMD+yj7rhW0kuEDxzJaYXGjEW5ogapKNMEKNMjibA== - dependencies: - isexe "^2.0.0" - -word-wrap@^1.2.3: - version "1.2.3" - resolved "https://registry.yarnpkg.com/word-wrap/-/word-wrap-1.2.3.tgz#610636f6b1f703891bd34771ccb17fb93b47079c" - integrity sha512-Hz/mrNwitNRh/HUAtM/VT/5VH+ygD6DV7mYKZAtHOrbs8U7lvPS6xf7EJKMF0uW1KJCl0H701g3ZGus+muE5vQ== - -workerpool@6.1.5: - version "6.1.5" - resolved "https://registry.yarnpkg.com/workerpool/-/workerpool-6.1.5.tgz#0f7cf076b6215fd7e1da903ff6f22ddd1886b581" - integrity sha512-XdKkCK0Zqc6w3iTxLckiuJ81tiD/o5rBE/m+nXpRCB+/Sq4DqkfXZ/x0jW02DG1tGsfUGXbTJyZDP+eu67haSw== - -wrap-ansi@^7.0.0: - version "7.0.0" - resolved "https://registry.yarnpkg.com/wrap-ansi/-/wrap-ansi-7.0.0.tgz#67e145cff510a6a6984bdf1152911d69d2eb9e43" - integrity sha512-YVGIj2kamLSTxw6NsZjoBxfSwsn0ycdesmc4p+Q21c5zPuZ1pl+NfxVdxPtdHvmNVOQ6XSYG4AUtyt/Fi7D16Q== - dependencies: - ansi-styles "^4.0.0" - string-width "^4.1.0" - strip-ansi "^6.0.0" - -wrappy@1: - version "1.0.2" - resolved "https://registry.yarnpkg.com/wrappy/-/wrappy-1.0.2.tgz#b5243d8f3ec1aa35f1364605bc0d1036e30ab69f" - integrity sha1-tSQ9jz7BqjXxNkYFvA0QNuMKtp8= - -y18n@^5.0.5: - version "5.0.8" - resolved "https://registry.yarnpkg.com/y18n/-/y18n-5.0.8.tgz#7f4934d0f7ca8c56f95314939ddcd2dd91ce1d55" - integrity sha512-0pfFzegeDWJHJIAmTLRP2DwHjdF5s7jo9tuztdQxAhINCdvS+3nGINqPd00AphqJR/0LhANUS6/+7SCb98YOfA== - -yallist@^4.0.0: - version "4.0.0" - resolved "https://registry.yarnpkg.com/yallist/-/yallist-4.0.0.tgz#9bb92790d9c0effec63be73519e11a35019a3a72" - integrity sha512-3wdGidZyq5PB084XLES5TpOSRA3wjXAlIWMhum2kRcv/41Sn2emQ0dycQW4uZXLejwKvg6EsvbdlVL+FYEct7A== - -yargs-parser@20.2.4: - version "20.2.4" - resolved "https://registry.yarnpkg.com/yargs-parser/-/yargs-parser-20.2.4.tgz#b42890f14566796f85ae8e3a25290d205f154a54" - integrity sha512-WOkpgNhPTlE73h4VFAFsOnomJVaovO8VqLDzy5saChRBFQFBoMYirowyW+Q9HB4HFF4Z7VZTiG3iSzJJA29yRA== - -yargs-parser@^20.2.2: - version "20.2.9" - resolved "https://registry.yarnpkg.com/yargs-parser/-/yargs-parser-20.2.9.tgz#2eb7dc3b0289718fc295f362753845c41a0c94ee" - integrity sha512-y11nGElTIV+CT3Zv9t7VKl+Q3hTQoT9a1Qzezhhl6Rp21gJ/IVTW7Z3y9EWXhuUBC2Shnf+DX0antecpAwSP8w== - -yargs-unparser@2.0.0: - version "2.0.0" - resolved "https://registry.yarnpkg.com/yargs-unparser/-/yargs-unparser-2.0.0.tgz#f131f9226911ae5d9ad38c432fe809366c2325eb" - integrity sha512-7pRTIA9Qc1caZ0bZ6RYRGbHJthJWuakf+WmHK0rVeLkNrrGhfoabBNdue6kdINI6r4if7ocq9aD/n7xwKOdzOA== - dependencies: - camelcase "^6.0.0" - decamelize "^4.0.0" - flat "^5.0.2" - is-plain-obj "^2.1.0" - -yargs@16.2.0: - version "16.2.0" - resolved "https://registry.yarnpkg.com/yargs/-/yargs-16.2.0.tgz#1c82bf0f6b6a66eafce7ef30e376f49a12477f66" - integrity sha512-D1mvvtDG0L5ft/jGWkLpG1+m0eQxOfaBvTNELraWj22wSVUMWxZUvYgJYcKh6jGGIkJFhH4IZPQhR4TKpc8mBw== - dependencies: - cliui "^7.0.2" - escalade "^3.1.1" - get-caller-file "^2.0.5" - require-directory "^2.1.1" - string-width "^4.2.0" - y18n "^5.0.5" - yargs-parser "^20.2.2" - -yocto-queue@^0.1.0: - version "0.1.0" - resolved "https://registry.yarnpkg.com/yocto-queue/-/yocto-queue-0.1.0.tgz#0294eb3dee05028d31ee1a5fa2c556a6aaf10a1b" - integrity sha512-rVksvsnNCdJ/ohGc6xgPwyN8eheCxsiLM8mxuE/t/mOVqJewPuO1miLpTHQiRgTKCLexL4MeAFVagts7HmNZ2Q== From 5f2ec8c8537e21dca4ce55b770931418ea500be1 Mon Sep 17 00:00:00 2001 From: Mike Bostock Date: Mon, 2 Nov 2026 17:57:09 -0800 Subject: [PATCH 02/10] vitest, eslint 9 Co-Authored-By: Claude Opus 5.5 --- .eslintrc.json | 13 - .github/workflows/publish.yml | 1 + .github/workflows/test.yml | 1 + eslint.config.js | 10 + package.json | 11 +- pnpm-lock.yaml | 1317 +++++++++++++++++++-------------- test/.eslintrc.json | 11 - test/defaultLocale-test.js | 19 +- test/format-test.js | 67 +- test/isoFormat-test.js | 3 +- test/isoParse-test.js | 3 +- test/locale-test.js | 3 +- test/parse-test.js | 77 +- test/utcFormat-test.js | 73 +- test/utcParse-test.js | 55 +- vitest.config.js | 3 + 16 files changed, 951 insertions(+), 716 deletions(-) delete mode 100644 .eslintrc.json create mode 100644 eslint.config.js delete mode 100644 test/.eslintrc.json create mode 100644 vitest.config.js diff --git a/.eslintrc.json b/.eslintrc.json deleted file mode 100644 index 7e80b00..0000000 --- a/.eslintrc.json +++ /dev/null @@ -1,13 +0,0 @@ -{ - "extends": "eslint:recommended", - "parserOptions": { - "sourceType": "module", - "ecmaVersion": 8 - }, - "env": { - "es6": true - }, - "rules": { - "no-cond-assign": 0 - } -} diff --git a/.github/workflows/publish.yml b/.github/workflows/publish.yml index 839d5c5..623fc14 100644 --- a/.github/workflows/publish.yml +++ b/.github/workflows/publish.yml @@ -23,4 +23,5 @@ jobs: cache: pnpm - run: pnpm install - run: pnpm run test + - run: pnpm run lint - run: npm publish diff --git a/.github/workflows/test.yml b/.github/workflows/test.yml index 00a5a94..63d0c51 100644 --- a/.github/workflows/test.yml +++ b/.github/workflows/test.yml @@ -20,3 +20,4 @@ jobs: cache: pnpm - run: pnpm install - run: pnpm run test + - run: pnpm run lint diff --git a/eslint.config.js b/eslint.config.js new file mode 100644 index 0000000..d1afaa5 --- /dev/null +++ b/eslint.config.js @@ -0,0 +1,10 @@ +import js from "@eslint/js"; +import globals from "globals"; +import {defineConfig} from "eslint/config"; + +export default defineConfig([ + {files: ["**/*.{js,ts,jsx,tsx}"], plugins: {js}, extends: ["js/recommended"]}, + {files: ["**/*.{js,ts,jsx,tsx}"], languageOptions: {globals: globals.browser}}, + {languageOptions: {ecmaVersion: 2019, sourceType: "module"}}, + {rules: {"no-cond-assign": 0}} +]); diff --git a/package.json b/package.json index e977761..b93aab3 100644 --- a/package.json +++ b/package.json @@ -42,14 +42,17 @@ "d3-time": "1 - 3" }, "devDependencies": { + "@eslint/js": "^9.39.5", "@rollup/plugin-node-resolve": "^16.0.3", "@rollup/plugin-terser": "^1.0.2", - "eslint": "^8.57.1", - "mocha": "^10.8.2", - "rollup": "^4.67.4" + "eslint": "^9.39.5", + "globals": "^17.14.0", + "rollup": "^4.67.4", + "vitest": "^4.1.12" }, "scripts": { - "test": "TZ=America/Los_Angeles mocha 'test/**/*-test.js' && eslint src test", + "test": "TZ=America/Los_Angeles vitest", + "lint": "eslint src test", "prepublishOnly": "rm -rf dist && rollup -c" }, "engines": { diff --git a/pnpm-lock.yaml b/pnpm-lock.yaml index d26af14..2299d98 100644 --- a/pnpm-lock.yaml +++ b/pnpm-lock.yaml @@ -12,6 +12,9 @@ importers: specifier: 1 - 3 version: 3.1.0 devDependencies: + '@eslint/js': + specifier: ^9.39.5 + version: 9.39.5 '@rollup/plugin-node-resolve': specifier: ^16.0.3 version: 16.0.3(rollup@4.67.4) @@ -19,14 +22,17 @@ importers: specifier: ^1.0.2 version: 1.0.2(rollup@4.67.4) eslint: - specifier: ^8.57.1 - version: 8.57.1 - mocha: - specifier: ^10.8.2 - version: 10.8.2 + specifier: ^9.39.5 + version: 9.39.5 + globals: + specifier: ^17.14.0 + version: 17.14.0 rollup: specifier: ^4.67.4 version: 4.67.4 + vitest: + specifier: ^4.1.12 + version: 4.1.12(vite@8.3.5(terser@5.51.2)) packages: @@ -40,26 +46,53 @@ packages: resolution: {integrity: sha512-EriSTlt5OC9/7SXkRSCAhfSxxoSUgBm33OH+IkwbdpgoqsSsUg7y3uh+IICI/Qg4BBWr3U2i39RpmycbxMq4ew==} engines: {node: ^12.0.0 || ^14.0.0 || >=16.0.0} - '@eslint/eslintrc@2.1.4': - resolution: {integrity: sha512-269Z39MS6wVJtsoUl10L60WdkhJVdPG24Q4eZTH3nnF6lpvSShEK3wQjDX9JRWAUPvPh7COouPpU9IrqaZFvtQ==} - engines: {node: ^12.22.0 || ^14.17.0 || >=16.0.0} + '@eslint/config-array@0.21.2': + resolution: {integrity: sha512-nJl2KGTlrf9GjLimgIru+V/mzgSK0ABCDQRvxw5BjURL7WfH5uoWmizbH7QB6MmnMBd8cIC9uceWnezL1VZWWw==} + engines: {node: ^18.18.0 || ^20.9.0 || >=21.1.0} - '@eslint/js@8.57.1': - resolution: {integrity: sha512-d9zaMRSTIKDLhctzH12MtXvJKSSUhaHcjV+2Z+GK+EEY7XKpP5yR4x+N3TAcHTcu963nIr+TMcCb4DBCYX1z6Q==} - engines: {node: ^12.22.0 || ^14.17.0 || >=16.0.0} + '@eslint/config-helpers@0.4.2': + resolution: {integrity: sha512-gBrxN88gOIf3R7ja5K9slwNayVcZgK6SOUORm2uBzTeIEfeVaIhOpCtTox3P6R7o2jLFwLFTLnC7kU/RGcYEgw==} + engines: {node: ^18.18.0 || ^20.9.0 || >=21.1.0} + + '@eslint/core@0.17.0': + resolution: {integrity: sha512-yL/sLrpmtDaFEiUj1osRP4TI2MDz1AddJL+jZ7KSqvBuliN4xqYY54IfdN8qD8Toa6g1iloph1fxQNkjOxrrpQ==} + engines: {node: ^18.18.0 || ^20.9.0 || >=21.1.0} + + '@eslint/eslintrc@3.3.7': + resolution: {integrity: sha512-F42g89Qd5oAWtp0k0nnSrjziAKza7w8SVT4mStc18LZMaRb4J1HQAHLCalEtDCxrTuksx7NU9qsmeLwpOfPqWw==} + engines: {node: ^18.18.0 || ^20.9.0 || >=21.1.0} + + '@eslint/js@9.39.5': + resolution: {integrity: sha512-QywQuszQh77pIXCsq998c8hbhSTI/azTty1Z6N53dmAudKHhy573j3yvRLsX2BSp8YpLtoCEG8E9DJe+8zUh4A==} + engines: {node: ^18.18.0 || ^20.9.0 || >=21.1.0} + + '@eslint/object-schema@2.1.7': + resolution: {integrity: sha512-VtAOaymWVfZcmZbp6E2mympDIHvyjXs/12LqWYjVw6qjrfF+VK+fyG33kChz3nnK+SU5/NeHOqrTEHS8sXO3OA==} + engines: {node: ^18.18.0 || ^20.9.0 || >=21.1.0} + + '@eslint/plugin-kit@0.4.1': + resolution: {integrity: sha512-43/qtrDUokr7LJqoF2c3+RInu/t4zfrpYdoSDfYyhg52rwLV6TnOvdG4fXm7IkSB3wErkcmJS9iEhjVtOSEjjA==} + engines: {node: ^18.18.0 || ^20.9.0 || >=21.1.0} + + '@humanfs/core@0.19.2': + resolution: {integrity: sha512-UhXNm+CFMWcbChXywFwkmhqjs3PRCmcSa/hfBgLIb7oQ5HNb1wS0icWsGtSAUNgefHeI+eBrA8I1fxmbHsGdvA==} + engines: {node: '>=18.18.0'} - '@humanwhocodes/config-array@0.13.0': - resolution: {integrity: sha512-DZLEEqFWQFiyK6h5YIeynKx7JlvCYWL0cImfSRXZ9l4Sg2efkFGTuFf6vzXjK1cq6IYkU+Eg/JizXw+TD2vRNw==} - engines: {node: '>=10.10.0'} - deprecated: Use @eslint/config-array instead + '@humanfs/node@0.16.8': + resolution: {integrity: sha512-gE1eQNZ3R++kTzFUpdGlpmy8kDZD/MLyHqDwqjkVQI0JMdI1D51sy1H958PNXYkM2rAac7e5/CnIKZrHtPh3BQ==} + engines: {node: '>=18.18.0'} + + '@humanfs/types@0.15.0': + resolution: {integrity: sha512-ZZ1w0aoQkwuUuC7Yf+7sdeaNfqQiiLcSRbfI08oAxqLtpXQr9AIVX7Ay7HLDuiLYAaFPu8oBYNq/QIi9URHJ3Q==} + engines: {node: '>=18.18.0'} '@humanwhocodes/module-importer@1.0.1': resolution: {integrity: sha512-bxveV4V8v5Yb4ncFTT3rPSgZBOpCkjfK0y4oVVVJwIuDVBRMDXrPyXRL988i5ap9m9bnyEEjWfm5WkBmtffLfA==} engines: {node: '>=12.22'} - '@humanwhocodes/object-schema@2.0.3': - resolution: {integrity: sha512-93zYdMES/c1D69yZiKDBj0V24vqNzB/koF26KPaagAfd3P/4gUlh3Dys5ogAK+Exi9QyzlD8x/08Zt7wIKcDcA==} - deprecated: Use @eslint/object-schema instead + '@humanwhocodes/retry@0.4.3': + resolution: {integrity: sha512-bV0Tgo9K4hfPCek+aMAn81RppFKv2ySDQeMoSZuvTASywNTnVJCArCZE2FWqpvIatKu7VMRLWlR1EazvVhDyhQ==} + engines: {node: '>=18.18'} '@jridgewell/gen-mapping@0.3.13': resolution: {integrity: sha512-2kkt/7niJ6MgEPxF0bYdQ6etZaA+fQvDcLKckhy1yIQOzaoKjBBjSj63/aLVjYE3qhRt5dvM+uUyfCg6UKCBbA==} @@ -84,17 +117,107 @@ packages: os: [linux] libc: [glibc] - '@nodelib/fs.scandir@2.1.5': - resolution: {integrity: sha512-vq24Bq3ym5HEQm2NKCr3yXDwjc7vTsEThRDnkp2DK9p1uqLR+DHurm/NOTo0KG7HYHU7eppKZj3MyqYuMBf62g==} - engines: {node: '>= 8'} + '@oxc-project/types@0.156.0': + resolution: {integrity: sha512-1Duyg48TdJNdyhEB8Xn1L36bT9Pv6GUtlKjHxOys8xkaF/rQq3XJE+bAurSK/AgIz5mGFsb77cn9Pb20+WCScw==} - '@nodelib/fs.stat@2.0.5': - resolution: {integrity: sha512-RkhPPp2zrqDAQA/2jNhnztcPAlv64XdhIp7a7454A5ovI7Bukxgt7MX7udwAu3zg1DcpPU0rz3VV1SeaqvY4+A==} - engines: {node: '>= 8'} + '@rolldown/binding-android-arm-eabi@1.2.16': + resolution: {integrity: sha512-ia3DwAs0OsMGS7+IConptSiyk9pEXkOx/AbJ2n/lAGxH3QkWQus1t8d7gnAT38FCU2sQu8lUbeR6AiZFv4JxaA==} + engines: {node: ^20.19.0 || >=22.12.0} + cpu: [arm] + os: [android] - '@nodelib/fs.walk@1.2.8': - resolution: {integrity: sha512-oGB+UxlgWcgQkgwo8GcEGwemoTFt3FIO9ababBmaGwXIoBKZ+GTy0pP185beGg7Llih/NSHSV2XAs1lnznocSg==} - engines: {node: '>= 8'} + '@rolldown/binding-android-arm64@1.2.16': + resolution: {integrity: sha512-kx5wBiMB6E7TEvpl2B9gjLU004BkvEm2Dr941BFjx/SontPwSzNuQUIoVKxHHoSjpFIfHMmcguyLOtyn0hObRg==} + engines: {node: ^20.19.0 || >=22.12.0} + cpu: [arm64] + os: [android] + + '@rolldown/binding-darwin-arm64@1.2.16': + resolution: {integrity: sha512-qslZrXnKJU4cUpjoAmtAo/KQM9e2IRMlmpig6Zpwj+8KWxW8v+nkAf9216Bsek9lOC1jvg2yCjygCFo2f83msQ==} + engines: {node: ^20.19.0 || >=22.12.0} + cpu: [arm64] + os: [darwin] + + '@rolldown/binding-darwin-x64@1.2.16': + resolution: {integrity: sha512-FdF+y48ND13eAyM2mQn+85kvAqNlvRWROy2rhgA463X/0Gv4vGtazZtfaF1mRBLscYvtOlh4QnLjOWiFzX69OQ==} + engines: {node: ^20.19.0 || >=22.12.0} + cpu: [x64] + os: [darwin] + + '@rolldown/binding-freebsd-x64@1.2.16': + resolution: {integrity: sha512-ddjqFM5e95AgLbUPtKIS7V1KTVlA0RUgCVr5mn+/IEhsdy3pr+Vuj/HZ7nlMN2FyxIwUktOH1LEPIQXO1v9y1Q==} + engines: {node: ^20.19.0 || >=22.12.0} + cpu: [x64] + os: [freebsd] + + '@rolldown/binding-linux-arm-gnueabihf@1.2.16': + resolution: {integrity: sha512-tHdKWbFkFBI687iim3LIyIvyL7j66VvQYkDPss5Stn/qyE2tWkR1YD0dXmXPFKKqT/o5ZEJVsaRsWS2meQwGOA==} + engines: {node: ^20.19.0 || >=22.12.0} + cpu: [arm] + os: [linux] + + '@rolldown/binding-linux-arm64-gnu@1.2.16': + resolution: {integrity: sha512-FJiLGAblPBMlBEdbOqw6kW6QcXDWAf/oJu7gYs9ZJZwmg+K+/zjFLxPTIY9izJUzxzc24FHvmseyA0IvJSl17w==} + engines: {node: ^20.19.0 || >=22.12.0} + cpu: [arm64] + os: [linux] + libc: [glibc] + + '@rolldown/binding-linux-arm64-musl@1.2.16': + resolution: {integrity: sha512-hrJpblMsrQ58U9veWpbXzkhV5zStunds6HWLprqq1qauvgBr1E6P+24kLj6lSLI9vjRn/RYpjprhkHQPKGWpNg==} + engines: {node: ^20.19.0 || >=22.12.0} + cpu: [arm64] + os: [linux] + libc: [musl] + + '@rolldown/binding-linux-ppc64-gnu@1.2.16': + resolution: {integrity: sha512-qJd/dC6j6CwLG9/s/RP2nb1RZ0GIgj7Ioj7x/SYa3RzjVrlzrmH0fhIOpfvqQDeIsdP0loi+kHaMhJzY1PBIaA==} + engines: {node: ^20.19.0 || >=22.12.0} + cpu: [ppc64] + os: [linux] + libc: [glibc] + + '@rolldown/binding-linux-s390x-gnu@1.2.16': + resolution: {integrity: sha512-Vx7Xg5uUJuNcujJjI70OICaH0EYj80BtOLZTSN7uOYg8QOLlyKnaG0IW7Fn/J0IpJsaKzmDKMhOQv1JBM9m9vg==} + engines: {node: ^20.19.0 || >=22.12.0} + cpu: [s390x] + os: [linux] + libc: [glibc] + + '@rolldown/binding-linux-x64-gnu@1.2.16': + resolution: {integrity: sha512-TNKhgE3uJTsTzatUSSYt0Kgo+Oa2uSlSjz4r1aEIea7HX6ULBym4fAlYUhG1i6pjNf2njfCUAfKwr6C3E9Xg1w==} + engines: {node: ^20.19.0 || >=22.12.0} + cpu: [x64] + os: [linux] + libc: [glibc] + + '@rolldown/binding-linux-x64-musl@1.2.16': + resolution: {integrity: sha512-7chXdpjXZ8qG0+mIxECN3cT9kvhZ3/oZhMX6Pp876P7CDrIy8nJswva6Mq357JR7eYXfuskwZxMeV1SzoZdHrA==} + engines: {node: ^20.19.0 || >=22.12.0} + cpu: [x64] + os: [linux] + libc: [musl] + + '@rolldown/binding-openharmony-arm64@1.2.16': + resolution: {integrity: sha512-Kwjt+7uNTJK5/MDkGWGVO2KQPnj8yAV75dMpfwyHZrJSXWHrniOB0aUEWlVYf3H1hOqFLIStLdM5QXq6bnKmOQ==} + engines: {node: ^20.19.0 || >=22.12.0} + cpu: [arm64] + os: [openharmony] + + '@rolldown/binding-win32-arm64-msvc@1.2.16': + resolution: {integrity: sha512-/LH6WfjDRXXJz/p5xl4TmU+jpcnwcxbKEQBW/GZE0JHfN0lGIyTtsUEGaQ/q/GikkGJ2yLKe6pwm7AnEWO8pdw==} + engines: {node: ^20.19.0 || >=22.12.0} + cpu: [arm64] + os: [win32] + + '@rolldown/binding-win32-x64-msvc@1.2.16': + resolution: {integrity: sha512-1lv1KvX0Z871zfk7vw+dnXMMnHNyDwMzWG8Kv3HxDXMOhzCX4SHc7HK319fInP0i+0p9D8brkfzL7pJOaGl+tw==} + engines: {node: ^20.19.0 || >=22.12.0} + cpu: [x64] + os: [win32] + + '@rolldown/pluginutils@1.0.1': + resolution: {integrity: sha512-2j9bGt5Jh8hj+vPtgzPtl72j0yRxHAyumoo6TNfAjsLB04UtpSvPbPcDcBMxz7n+9CYB0c1GxQFxYRg2jimqGw==} '@rollup/plugin-node-resolve@16.0.3': resolution: {integrity: sha512-lUYM3UBGuM93CnMPG1YocWu7X802BrNF3jW2zny5gQyLQgRFJhV1Sq0Zi74+dh/6NBx1DxFC4b4GXg9wUCG5Qg==} @@ -266,14 +389,52 @@ packages: cpu: [x64] os: [win32] + '@standard-schema/spec@1.1.0': + resolution: {integrity: sha512-l2aFy5jALhniG5HgqrD6jXLi/rUWrKvqN/qJx6yoJsgKhblVd+iqqU4RCXavm/jPityDo5TCvKMnpjKnOriy0w==} + + '@types/chai@5.2.3': + resolution: {integrity: sha512-Mw558oeA9fFbv65/y4mHtXDs9bPnFMZAL/jxdPFUpOHHIXX91mcgEHbS5Lahr+pwZFR8A7GQleRWeI6cGFC2UA==} + + '@types/deep-eql@4.0.2': + resolution: {integrity: sha512-c9h9dVVMigMPc4bwTvC5dxqtqJZwQPePsWjPlpSOnojbor6pGqdk541lfA7AqFQr5pB1BRdq0juY9db81BwyFw==} + '@types/estree@1.0.10': resolution: {integrity: sha512-lTyOMnOcmRBzdCv6/4zUZCrEhV0xrqQiUZBZtVcbmLHBXKLnN8q89v/wKRF/Q0HbwVsqbIG3o5HDoFl9sduM+g==} + '@types/json-schema@7.0.15': + resolution: {integrity: sha512-5+fP8P8MFNC+AyZCDxrB2pkZFPGzqQWUzpSeuuVLvm8VMcorNYavBqoFcxK8bQz4Qsbn4oUEEem4wDLfcysGHA==} + '@types/resolve@1.20.2': resolution: {integrity: sha512-60BCwRFOZCQhDncwQdxxeOEEkbc5dIMccYLwbxsS4TUNeVECQ/pBJ0j09mrHOl/JJvpRPGwO9SvE4nR2Nb/a4Q==} - '@ungap/structured-clone@1.4.0': - resolution: {integrity: sha512-1mEZtMKPM09vDmQt5y7YvmN2+DFTP7Tg0EWXdic8/C6VRnpb33e4ghisCIE3WZjsE2N8mf+QV1Zqh7ZFYLWInQ==} + '@vitest/expect@4.1.12': + resolution: {integrity: sha512-vFlTt+YEu9WBpNjdGayNmlMVzrWPi1+sv853/7t2FU7hpO5gAFBKHzQmkCq5Xjpr+evegF2994LQT3hF3mRlqQ==} + + '@vitest/mocker@4.1.12': + resolution: {integrity: sha512-fKShNpKZzupWZuY0z7egydvL0sqW4INEZBEExMBMAa6izlENEVHwoXgdaTCaBZ5fwlr4xf2o1wXC83n9RpO+NA==} + peerDependencies: + msw: ^2.4.9 + vite: ^6.0.0 || ^7.0.0 || ^8.0.0 + peerDependenciesMeta: + msw: + optional: true + vite: + optional: true + + '@vitest/pretty-format@4.1.12': + resolution: {integrity: sha512-XW9O8+Mxx4VpCtkYdMJLZQQwsVryP9wk7cPKDxtXFfwSak6yRh5+2fep/Y0XF/ElBvJHq8bcYdi6aeuai0opZA==} + + '@vitest/runner@4.1.12': + resolution: {integrity: sha512-NKlVKCr5QnCe8jijdMnmkpHHU+WTqiLFR6G0pHji9uRjXK9xJl1k1nTw6F3pOOj2PDcsDt2GKQMI7wIsaT491w==} + + '@vitest/snapshot@4.1.12': + resolution: {integrity: sha512-ko1y1Qgb/slzQ9mr+b89Cuqud8WG1TKtsPD8r7ZUBdvVOGt85Af2HwCqHujrhwJq95hs/9RM7fcAPg57o1vlzw==} + + '@vitest/spy@4.1.12': + resolution: {integrity: sha512-RGq9x4JNGNTZHEJxvN0oSiJjeSCExm0n2gZKKJZHY9cX5AVA6M7VJILBT3ZJ/tJ/0J9uWT7fETV9/btoi//vSg==} + + '@vitest/utils@4.1.12': + resolution: {integrity: sha512-Q3awXrwOfEV+qc3WmO5ONyE0yO7Q1gQ9/oyHxGLZ/pl7N3NO/ZztqQwKLuwMkV+CA1JYSIeO3gkHnRDIo4AVaA==} acorn-jsx@5.3.2: resolution: {integrity: sha512-rq9s+JNhf0IChjtDXxllJ7g41oZk5SlXtp0LHwyA5cejwn7vKmKp4pPri6YEePv2PU65sAsegbXtIinmDFDXgQ==} @@ -288,45 +449,23 @@ packages: ajv@6.15.0: resolution: {integrity: sha512-fgFx7Hfoq60ytK2c7DhnF8jIvzYgOMxfugjLOSMHjLIPgenqa7S7oaagATUq99mV6IYvN2tRmC0wnTYX6iPbMw==} - ansi-colors@4.1.3: - resolution: {integrity: sha512-/6w/C21Pm1A7aZitlI5Ni/2J6FFQN8i1Cvz3kHABAAbw93v/NlvKdVOqz7CCWz/3iv/JplRSEEZ83XION15ovw==} - engines: {node: '>=6'} - - ansi-regex@5.0.1: - resolution: {integrity: sha512-quJQXlTSUGL2LH9SUXo8VwsY4soanhgo6LNSm84E1LBcE8s3O0wpdiRzyR9z/ZZJMlMWv37qOOb9pdJlMUEKFQ==} - engines: {node: '>=8'} - ansi-styles@4.3.0: resolution: {integrity: sha512-zbB9rCJAT1rbjiVDb2hqKFHNYLxgtk8NURxZ3IZwD3F6NtxbXZQCnnSi1Lkx+IDohdPlFp222wVALIheZJQSEg==} engines: {node: '>=8'} - anymatch@3.1.3: - resolution: {integrity: sha512-KMReFUr0B4t+D+OBkjR3KYqvocp2XaSzO55UcB6mgQMd3KbcE+mWTyvVV7D/zsdEbNnV6acZUutkiHQXvTr1Rw==} - engines: {node: '>= 8'} - argparse@2.0.1: resolution: {integrity: sha512-8+9WqebbFzpX9OR+Wa6O29asIogeRMzcGtAINdpMHHyAg10f05aSFVBbcEqGf/PXw1EjAZ+q2/bEBg3DvurK3Q==} + assertion-error@2.0.1: + resolution: {integrity: sha512-Izi8RQcffqCeNVgFigKli1ssklIbpHnCYc6AknXGYoB6grJqyeby7jv12JUQgmTAnIDnbck1uxksT4dzN3PWBA==} + engines: {node: '>=12'} + balanced-match@1.0.2: resolution: {integrity: sha512-3oSeUO0TMV67hN1AmbXsK4yaqU7tjiHlbxRDZOpH0KW9+CeX4bRAaX0Anxt0tx2MrpRpWwQaPwIlISEJhYU5Pw==} - binary-extensions@2.3.0: - resolution: {integrity: sha512-Ceh+7ox5qe7LJuLHoY0feh3pHuUDHAcRUeyL2VYghZwfpkNIy/+8Ocg0a3UuSoYzavmylwuLWQOf3hl0jjMMIw==} - engines: {node: '>=8'} - brace-expansion@1.1.21: resolution: {integrity: sha512-9zeA+KLZNNzglF2TPKRQEDyx6Yby7daAkuy8MiPzpXPsYDWi/DRM8jmwUDxokQjYqBpv5DgPiwD4h4ZZSy1Ujw==} - brace-expansion@2.1.7: - resolution: {integrity: sha512-uZbew1NqdmPDTMJ8ah1y+b+9QEJrfkXFk3RcTQw3X0jW/xRUvFKsg1CfQdSYGdTbXZWExtU3J3ccxtnfw1Fi0g==} - - braces@3.0.3: - resolution: {integrity: sha512-yQbXgO/OSZVD2IsiLlro+7Hf6Q18EJrKSEsdoMzKePKXct3gvD8oLcOQdIzGupr5Fj+EDe8gO/lxc1BzfMpxvA==} - engines: {node: '>=8'} - - browser-stdout@1.3.1: - resolution: {integrity: sha512-qhAVI1+Av2X7qelOfAIYwXONood6XlZE/fXaBSmW/T5SzLAmCgzi+eiWE7fUvbHaeNBQH13UftjpXxsfLkMpgw==} - buffer-from@1.1.2: resolution: {integrity: sha512-E+XQCRwSbaaiChtv6k6Dwgc+bx+Bs6vuKJHHl5kox/BaKbhiXzqQOwK4cO22yElGp2OCmjwVhT3HmxgyPGnJfQ==} @@ -334,21 +473,14 @@ packages: resolution: {integrity: sha512-P8BjAsXvZS+VIDUI11hHCQEv74YT67YUi5JJFNWIqL235sBmjX4+qx9Muvls5ivyNENctx46xQLQ3aTuE7ssaQ==} engines: {node: '>=6'} - camelcase@6.3.0: - resolution: {integrity: sha512-Gmy6FhYlCY7uOElZUSbxo2UCDH8owEk996gkbrpsgGtrJLM3J7jGxl9Ic7Qwwj4ivOE5AWZWRMecDdF7hqGjFA==} - engines: {node: '>=10'} + chai@6.3.0: + resolution: {integrity: sha512-XWAtwJ6OHO+tj0EKCs0Y2UamnyOxseZWltU4x2U2wh8g4AigdjwvtUjvLP2tqkA/avxHEtzxNaqGq/YGNwckKg==} + engines: {node: '>=18'} chalk@4.1.2: resolution: {integrity: sha512-oKnbhFyRIXpUuez8iBMmyEa4nbj4IOQyuhc/wy9kY7/WVPcwIO9VA668Pu8RkO7+0G76SLROeyw9CpQ061i4mA==} engines: {node: '>=10'} - chokidar@3.6.0: - resolution: {integrity: sha512-7VT13fmjotKpGipCW9JEQAusEPE+Ei8nl6/g4FBAmIm0GOOLMua9NDDo/DWp0ZAxCr3cPq5ZpBqmPAQgDda2Pw==} - engines: {node: '>= 8.10.0'} - - cliui@7.0.4: - resolution: {integrity: sha512-OcRE68cOsVMXp1Yvonl/fzkQOyjLSu/8bhPDfQt0e0/Eb283TKP20Fs2MqoPsr9SwA595rRCA+QMzYc9nBP+JQ==} - color-convert@2.0.1: resolution: {integrity: sha512-RRECPsj7iu/xb5oKYcsFHSppFNnsj/52OVTRKb4zP5onXwVF3zVmmToNcOfGC+CRDpfK/U584fMg38ZHCaElKQ==} engines: {node: '>=7.0.0'} @@ -362,6 +494,9 @@ packages: concat-map@0.0.1: resolution: {integrity: sha512-/Srv4dswyQNBfohGpz9o6Yb3Gz3SrUDqBH5rTuhGR7ahtlbYKnVxw2bCFMRljaA7EXHaXZ8wsHdodFvbkhKmqg==} + convert-source-map@2.0.0: + resolution: {integrity: sha512-Kvp459HrV2FEJ1CAsi1Ku+MY3kasH19TFykTz2xWmMeq6bk2NU3XXvfJ+Q61m0xktWwt+1HSYf3JZsTms3aRJg==} + cross-spawn@7.0.6: resolution: {integrity: sha512-uV2QOWP2nWzsy2aMp8aRibhi9dlzF5Hgh5SHaB9OiTGEyDTiJJyx0uy51QXdyWbtAHNua4XJzUKca3OzKUd3vA==} engines: {node: '>= 8'} @@ -383,10 +518,6 @@ packages: supports-color: optional: true - decamelize@4.0.0: - resolution: {integrity: sha512-9iE1PgSik9HeIIw2JO94IidnE3eBoQrFJ3w7sFuzSX4DpmZ3v5sZpUiV5Swcf6mQEF+Y0ru8Neo+p+nyh2J+hQ==} - engines: {node: '>=10'} - deep-is@0.1.4: resolution: {integrity: sha512-oIPzksmTg4/MriiaYGO+okXDT7ztn/w3Eptv/+gSIdMdKsJo0u4CfYNFJPy+4SKMuCqGw2wxnA+URMg3t8a/bQ==} @@ -394,46 +525,47 @@ packages: resolution: {integrity: sha512-3sUqbMEc77XqpdNO7FRyRog+eW3ph+GYCbj+rK+uYyRMuwsVy0rMiVtPn+QJlKFvWP/1PYpapqYn0Me2knFn+A==} engines: {node: '>=0.10.0'} - diff@5.2.2: - resolution: {integrity: sha512-vtcDfH3TOjP8UekytvnHH1o1P4FcUdt4eQ1Y+Abap1tk/OB2MWQvcwS2ClCd1zuIhc3JKOx6p3kod8Vfys3E+A==} - engines: {node: '>=0.3.1'} - - doctrine@3.0.0: - resolution: {integrity: sha512-yS+Q5i3hBf7GBkd4KG8a7eBNNWNGLTaEwwYWUijIYM7zrlYDM0BFXHjjPWlWZ1Rg7UaddZeIDmi9jF3HmqiQ2w==} - engines: {node: '>=6.0.0'} - - emoji-regex@8.0.0: - resolution: {integrity: sha512-MSjYzcWNOA0ewAHpz0MxpYFvwg6yjy1NG3xteoqz644VCo/RPgnr1/GGt+ic3iJTzQ8Eu3TdM14SawnVUmGE6A==} + detect-libc@2.1.2: + resolution: {integrity: sha512-Btj2BOOO83o3WyH59e8MgXsxEQVcarkUOpEYrubB0urwnN10yQ364rsiByU11nZlqWYZm05i/of7io4mzihBtQ==} + engines: {node: '>=8'} es-errors@1.3.0: resolution: {integrity: sha512-Zf5H2Kxt2xjTvbJvP2ZWLEICxA6j+hAmMzIlypy4xcBg1vKVnx89Wy0GbS+kf5cwCVFFzdCFh2XSCFNULS6csw==} engines: {node: '>= 0.4'} - escalade@3.2.0: - resolution: {integrity: sha512-WUj2qlxaQtO4g6Pq5c29GTcWGDyd8itL8zTlipgECz3JesAiiOKotd8JU6otB3PACgG6xkJUyVhboMS+bje/jA==} - engines: {node: '>=6'} + es-module-lexer@2.3.2: + resolution: {integrity: sha512-poHGpORABojJJucnV9KbOavETW8lBVnphkW77ER5/BQ5Fz7oXSoCNek7IH3vR5nRjdsEz926ibFYX8KtLQmdyw==} escape-string-regexp@4.0.0: resolution: {integrity: sha512-TtpcNJ3XAzx3Gq8sWRzJaVajRs0uVxA2YAkdb1jm2YkPz4G6egUFAyA3n5vtEIZefPk5Wa4UXbKuS5fKkJWdgA==} engines: {node: '>=10'} - eslint-scope@7.2.2: - resolution: {integrity: sha512-dOt21O7lTMhDM+X9mB4GX+DZrZtCUJPL/wlcTqxyrx5IvO0IYtILdtrQGQp+8n5S0gwSVmOf9NQrjMOgfQZlIg==} - engines: {node: ^12.22.0 || ^14.17.0 || >=16.0.0} + eslint-scope@8.4.0: + resolution: {integrity: sha512-sNXOfKCn74rt8RICKMvJS7XKV/Xk9kA7DyJr8mJik3S7Cwgy3qlkkmyS2uQB3jiJg6VNdZd/pDBJu0nvG2NlTg==} + engines: {node: ^18.18.0 || ^20.9.0 || >=21.1.0} eslint-visitor-keys@3.4.3: resolution: {integrity: sha512-wpc+LXeiyiisxPlEkUzU6svyS1frIO3Mgxj1fdy7Pm8Ygzguax2N3Fa/D/ag1WqbOprdI+uY6wMUl8/a2G+iag==} engines: {node: ^12.22.0 || ^14.17.0 || >=16.0.0} - eslint@8.57.1: - resolution: {integrity: sha512-ypowyDxpVSYpkXr9WPv2PAZCtNip1Mv5KTW0SCurXv/9iOpcrH9PaqUElksqEB6pChqHGDRCFTyrZlGhnLNGiA==} - engines: {node: ^12.22.0 || ^14.17.0 || >=16.0.0} + eslint-visitor-keys@4.2.1: + resolution: {integrity: sha512-Uhdk5sfqcee/9H/rCOJikYz67o0a2Tw2hGRPOG2Y1R2dg7brRe1uG0yaNQDHu+TO/uQPF/5eCapvYSmHUjt7JQ==} + engines: {node: ^18.18.0 || ^20.9.0 || >=21.1.0} + + eslint@9.39.5: + resolution: {integrity: sha512-DgZS62aPLXKlnxILS/AYCoRvHaZeXceIzlXPkkGGzJWSow1aEk0lbTlxUSlyjC8jcaKxAdOnTDz+o1JFSBsyjw==} + engines: {node: ^18.18.0 || ^20.9.0 || >=21.1.0} deprecated: This version is no longer supported. Please see https://eslint.org/version-support for other options. hasBin: true + peerDependencies: + jiti: '*' + peerDependenciesMeta: + jiti: + optional: true - espree@9.6.1: - resolution: {integrity: sha512-oruZaFkjorTpF32kDSI5/75ViwGeZginGGy2NoOSg3Q9bnwlnmDm4HLnkl0RE3n+njDXR037aY1+x58Z/zFdwQ==} - engines: {node: ^12.22.0 || ^14.17.0 || >=16.0.0} + espree@10.4.0: + resolution: {integrity: sha512-j6PAQ2uUr79PZhBjP5C5fhl8e39FmRnOjsD5lGnWrFU8i2G776tBK7+nP8KuQUTTyAZUwfQqXAgrVH5MbH9CYQ==} + engines: {node: ^18.18.0 || ^20.9.0 || >=21.1.0} esquery@1.7.0: resolution: {integrity: sha512-Ap6G0WQwcU/LHsvLwON1fAQX9Zp0A2Y6Y/cJBl9r/JbW90Zyg4/zbG6zzKa2OTALELarYHmKu0GhpM5EO+7T0g==} @@ -450,10 +582,17 @@ packages: estree-walker@2.0.2: resolution: {integrity: sha512-Rfkk/Mp/DL7JVje3u18FxFujQlTNR2q6QfMSMB7AvCBx91NGj/ba3kCfza0f6dVDbw7YlRf/nDrn7pQrCCyQ/w==} + estree-walker@3.0.3: + resolution: {integrity: sha512-7RUKfXgSMMkzt6ZuXmqapOurLGPPfgj6l9uRZ7lRGolvk0y2yocc35LdcxKC5PQZdn2DMqioAQ2NoWcrTKmm6g==} + esutils@2.0.3: resolution: {integrity: sha512-kVscqXk4OCp68SZ0dkgEKVi6/8ij300KBWTJq32P/dYeWTSwK41WyTxalN1eRmA5Z9UU/LX9D7FWSmV9SAYx6g==} engines: {node: '>=0.10.0'} + expect-type@1.4.0: + resolution: {integrity: sha512-KfYbmpRm0VbLjEvVa9yGwCi9GI34xvi7A/HXYWQO65CSD2u3MczUJSuwXKFIxlGsgBQizV9q5J9NHj4VG0n+pA==} + engines: {node: '>=12.0.0'} + fast-deep-equal@3.1.3: resolution: {integrity: sha512-f3qQ9oQy9j2AhBe/H9VC91wLmKBCCU/gDOnKNAYG5hswO7BLKj09Hc5HYNz9cGI++xlpDCIgDaitVs03ATR84Q==} @@ -463,35 +602,30 @@ packages: fast-levenshtein@2.0.6: resolution: {integrity: sha512-DCXu6Ifhqcks7TZKY3Hxp3y6qphY5SJZmrWMDrKcERSOXWQdMhU9Ig/PYrzyw/ul9jOIyh0N4M0tbC5hodg8dw==} - fastq@1.20.3: - resolution: {integrity: sha512-XKv5nnLs6nLF71NgiKJLIZFLkPyIEuOselLG7ujZnGrRfQK8HpvY+WqKhAJUAdLomwVHErVS4LfxFlPq0/FTAw==} - - file-entry-cache@6.0.1: - resolution: {integrity: sha512-7Gps/XWymbLk2QLYK4NzpMOrYjMhdIxXuIvy2QBsLE6ljuodKvdkWs/cpyJJ3CVIVpH0Oi1Hvg1ovbMzLdFBBg==} - engines: {node: ^10.12.0 || >=12.0.0} + fdir@6.5.0: + resolution: {integrity: sha512-tIbYtZbucOs0BRGqPJkshJUYdL+SDH7dVM8gjy+ERp3WAUjLEFJE+02kanyHtwjWOnwrKYBiwAmM0p4kLJAnXg==} + engines: {node: '>=12.0.0'} + peerDependencies: + picomatch: ^3 || ^4 + peerDependenciesMeta: + picomatch: + optional: true - fill-range@7.1.1: - resolution: {integrity: sha512-YsGpe3WHLK8ZYi4tWDg2Jy3ebRz2rXowDxnld4bkQB00cc/1Zw9AWnC0i9ztDJitivtQvaI9KaLyKrc+hBW0yg==} - engines: {node: '>=8'} + file-entry-cache@8.0.0: + resolution: {integrity: sha512-XXTUwCvisa5oacNGRP9SfNtYBNAMi+RPwBFmblZEF7N7swHYQS6/Zfk7SRwx4D5j3CH211YNRco1DEMNVfZCnQ==} + engines: {node: '>=16.0.0'} find-up@5.0.0: resolution: {integrity: sha512-78/PXT1wlLLDgTzDs7sjq9hzz0vXD+zn+7wypEe4fXQxCmdmqfGsEPQxmiCSQI3ajFV91bVSsvNtrJRiW6nGng==} engines: {node: '>=10'} - flat-cache@3.2.0: - resolution: {integrity: sha512-CYcENa+FtcUKLmhhqyctpclsq7QF38pKjZHsGNiSQF5r4FtoKDWabFDl3hzaEQMvT1LHEysw5twgLvpYYb4vbw==} - engines: {node: ^10.12.0 || >=12.0.0} - - flat@5.0.2: - resolution: {integrity: sha512-b6suED+5/3rTpUBdG1gupIl8MPFCAMA0QXwmljLhvCUKcUvdE4gWky9zpuGCcXHOsz4J9wPGNWq6OKpmIzz3hQ==} - hasBin: true + flat-cache@4.0.1: + resolution: {integrity: sha512-f7ccFPK3SXFHpx15UIGyRJ/FJQctuKZ0zVuN3frBo4HnK3cay9VEW0R6yPYFHC0AgqhukPzKjq22t5DmAyqGyw==} + engines: {node: '>=16'} flatted@3.4.4: resolution: {integrity: sha512-5+ybhBZANEJxaH3X5evAFatUxLfEHSr7n6kYJ+1Qd0mUqr4eu9gIf6GDbWHf8RJijHrjjO8G+la14SlL2SeS1Q==} - fs.realpath@1.0.0: - resolution: {integrity: sha512-OO0pH2lK6a0hZnAdau5ItzHPI6pUlvI7jMVnxUQRtw4owF2wk8lOSabtGDCTP4Ggrg2MbGnWO9X8K1t4+fGMDw==} - fsevents@2.3.3: resolution: {integrity: sha512-5xoDfX+fL7faATnagmWPpbFtwh/R77WmMMqqHGS65C3vvB0YHrgF+B1YmZ3441tMj5n63k0212XNoJwzlhffQw==} engines: {node: ^8.16.0 || ^10.6.0 || >=11.0.0} @@ -500,33 +634,17 @@ packages: function-bind@1.1.2: resolution: {integrity: sha512-7XHNxH7qX9xG5mIwxkhumTox/MIRNcOgDrxWsMt2pAr23WHp6MrRlN7FBSFpCpr+oVO0F744iUgR82nJMfG2SA==} - get-caller-file@2.0.5: - resolution: {integrity: sha512-DyFP3BM/3YHTQOCUL/w0OZHR0lpKeGrxotcHWcqNEdnltqFwXVfhEBQ94eIo34AfQpo0rGki4cyIiftY06h2Fg==} - engines: {node: 6.* || 8.* || >= 10.*} - - glob-parent@5.1.2: - resolution: {integrity: sha512-AOIgSQCepiJYwP3ARnGx+5VnTu2HBYdzbGP45eLw1vr3zB3vZLeyed1sC9hnbcOc9/SrMyM5RPQrkGz4aS9Zow==} - engines: {node: '>= 6'} - glob-parent@6.0.2: resolution: {integrity: sha512-XxwI8EOhVQgWp6iDL+3b0r86f4d6AX6zSU55HfB4ydCEuXLXc5FcYeOu+nnGftS4TEju/11rt4KJPTMgbfmv4A==} engines: {node: '>=10.13.0'} - glob@7.2.3: - resolution: {integrity: sha512-nFR0zLpU2YCaRxwoCJvL6UvCH2JFyFVIvwTLsIf21AuHlMskA1hhTdk+LlYJtOlYt9v6dvszD2BGRqBL+iQK9Q==} - deprecated: Old versions of glob are not supported, and contain widely publicized security vulnerabilities, which have been fixed in the current version. Please update. Support for old versions may be purchased (at exorbitant rates) by contacting i@izs.me - - glob@8.1.0: - resolution: {integrity: sha512-r8hpEjiQEYlF2QU0df3dS+nxxSIreXQS1qRhMJM0Q5NDdR386C7jb7Hwwod8Fgiuex+k0GFjgft18yvxm5XoCQ==} - engines: {node: '>=12'} - deprecated: Old versions of glob are not supported, and contain widely publicized security vulnerabilities, which have been fixed in the current version. Please update. Support for old versions may be purchased (at exorbitant rates) by contacting i@izs.me - - globals@13.24.0: - resolution: {integrity: sha512-AhO5QUcj8llrbG09iWhPU2B204J1xnPeL8kQmVorSsy+Sjj1sk8gIyh6cUocGmH4L0UuhAJy+hJMRA4mgA4mFQ==} - engines: {node: '>=8'} + globals@14.0.0: + resolution: {integrity: sha512-oahGvuMGQlPw/ivIYBjVSrWAfWLBeku5tpPE2fOPLi+WHffIWbuh2tCjhyQhTBPMf5E9jDEH4FOmTYgYwbKwtQ==} + engines: {node: '>=18'} - graphemer@1.4.0: - resolution: {integrity: sha512-EtKwoO6kxCL9WO5xipiHTZlSzBm7WLT627TqC/uVRd0HKmq8NXyebnNYxDoBi7wt8eTWrUrKXCOVaFq9x1kgag==} + globals@17.14.0: + resolution: {integrity: sha512-UtdkTVyAJePQv0J2M9Xe4L0ruNSDV314XiIJsADI2Zf40bcdAonE/D/OhAU8AT99oij9mhLByb+NvA3QWZYgCg==} + engines: {node: '>=18'} has-flag@4.0.0: resolution: {integrity: sha512-EykJT/Q1KjTWctppgIAgfSO0tKVuZUjhgMr17kqTumMl6Afv3EISleU7qZUzoXDFTAHTDC4NOoG/ZxU3EvlMPQ==} @@ -536,10 +654,6 @@ packages: resolution: {integrity: sha512-T2UbfbBEF32wiepXIsMlTW9+dDYC6wMh/t/vYA4tuOMKqWz/n3vr1NFSxQiyP+zk2mXsoMA/i/7qV6LKut1t1A==} engines: {node: '>= 0.4'} - he@1.2.0: - resolution: {integrity: sha512-F/1DnUGPopORZi0ni+CvrCgHQ5FyEAHRLSApuYWMmrbSwoN2Mn/7k+Gl38gJnR7yyDZk6WLXwiGod1JOWNDKGw==} - hasBin: true - ignore@5.3.2: resolution: {integrity: sha512-hsBTNUqQTDwkWtcdYI2i06Y/nUBEsNEDJKjWdigLvegy8kDuJAS8uRlpkkcQpyEXL0Z/pjDy5HBmMjRCJ2gq+g==} engines: {node: '>= 4'} @@ -552,21 +666,10 @@ packages: resolution: {integrity: sha512-JmXMZ6wuvDmLiHEml9ykzqO6lwFbof0GG4IkcGaENdCRDDmMVnny7s5HsIgHCbaq0w2MyPhDqkhTUgS2LU2PHA==} engines: {node: '>=0.8.19'} - inflight@1.0.6: - resolution: {integrity: sha512-k92I/b08q4wvFscXCLvqfsHCrjrF7yiXsQuIVvVE7N82W3+aqpzuUdBbfhWcy/FZR3/4IgflMgKLOsvPDrGCJA==} - deprecated: This module is not supported, and leaks memory. Do not use it. Check out lru-cache if you want a good and tested way to coalesce async requests by a key value, which is much more comprehensive and powerful. - - inherits@2.0.4: - resolution: {integrity: sha512-k/vGaX4/Yla3WzyMCvTQOXYeIHvqOKtnqBduzTHpzpQZzAskKMhZ2K+EnBiSM9zGSoIFeMpXKxa4dYeZIQqewQ==} - internmap@2.0.3: resolution: {integrity: sha512-5Hh7Y1wQbvY5ooGgPbDaL5iYLAPzMTUrjMulskHLH6wnv/A+1q5rgEaiuqEjB+oxGXIVZs1FF+R/KPN3ZSQYYg==} engines: {node: '>=12'} - is-binary-path@2.1.0: - resolution: {integrity: sha512-ZMERYes6pDydyuGidse7OsHxtbI7WVeUEozgR/g7rd0xUimYNlvZRE/K2MgZTjWy725IfelLeVcEM97mmtRGXw==} - engines: {node: '>=8'} - is-core-module@2.17.0: resolution: {integrity: sha512-J/vG0zBCbIKOQFfufSwyXdMrsohyJIUNkrnmo6WZGzoM7tr/lsbfW5b2BvisL6zsyMzK9UxV9L6c7AoFbyXHOA==} engines: {node: '>= 0.4'} @@ -575,10 +678,6 @@ packages: resolution: {integrity: sha512-SbKbANkN603Vi4jEZv49LeVJMn4yGwsbzZworEoyEiutsN3nJYdbO36zfhGJ6QEDpOZIFkDtnq5JRxmvl3jsoQ==} engines: {node: '>=0.10.0'} - is-fullwidth-code-point@3.0.0: - resolution: {integrity: sha512-zymm5+u+sCsSWyD9qNaejV3DFvhCKclKdizYaJUuHA83RLjb7nSuGnddCHGv0hk+KY7BMAlsWeK4Ueg6EV6XQg==} - engines: {node: '>=8'} - is-glob@4.0.3: resolution: {integrity: sha512-xelSayHH36ZgE7ZWhli7pW34hNbNl8Ojv5KVmkJD4hBdD3th8Tfk9vYasLM+mXWOZhFkgZfxhLSnrwRr4elSSg==} engines: {node: '>=0.10.0'} @@ -586,22 +685,6 @@ packages: is-module@1.0.0: resolution: {integrity: sha512-51ypPSPCoTEIN9dy5Oy+h4pShgJmPCygKfyRCISBI+JoWT/2oJvK8QPxmwv7b/p239jXrm9M1mlQbyKJ5A152g==} - is-number@7.0.0: - resolution: {integrity: sha512-41Cifkg6e8TylSpdtTpeLVMqvSBEVzTttHvERD741+pnZ8ANv0004MRL43QKPDlK9cGvNp6NZWZUBlbGXYxxng==} - engines: {node: '>=0.12.0'} - - is-path-inside@3.0.3: - resolution: {integrity: sha512-Fd4gABb+ycGAmKou8eMftCupSir5lRxqf4aD/vd0cD2qc4HL07OjCeuHMr8Ro4CoMaeCKDB0/ECBOVWjTwUvPQ==} - engines: {node: '>=8'} - - is-plain-obj@2.1.0: - resolution: {integrity: sha512-YWnfyRwxL/+SsrWYfOpUtz5b3YD+nyfkHvjbcanzk8zgyO4ASD67uVMRt8k5bM4lLMDnXfriRhOpemw+NfT1eA==} - engines: {node: '>=8'} - - is-unicode-supported@0.1.0: - resolution: {integrity: sha512-knxG2q4UC3u8stRGyAVJCOdxFmv5DZiRcdlIaAQXAbSfJya+OhopNotLQrstBhququ4ZpuKbDc/8S6mgXgPFPw==} - engines: {node: '>=10'} - isexe@2.0.0: resolution: {integrity: sha512-RHxMLp9lnKHGHRng9QFhRCMbYAcVpn69smSGcq3f36xjgVVWThj4qqLbTLlq7Ssj8B+fIQ1EuCEGI2lKsyQeIw==} @@ -625,6 +708,80 @@ packages: resolution: {integrity: sha512-+bT2uH4E5LGE7h/n3evcS/sQlJXCpIp6ym8OWJ5eV6+67Dsql/LaaT7qJBAt2rzfoa/5QBGBhxDix1dMt2kQKQ==} engines: {node: '>= 0.8.0'} + lightningcss-android-arm64@1.33.0: + resolution: {integrity: sha512-gEpRTalKdosp4Bb8qWtc2iOgE5SeIHlpS1up9bFq2wAyYhl1UdTObYiHe98zEM9SQvSoqQZ1IQD0JNpg3Ml5pg==} + engines: {node: '>= 12.0.0'} + cpu: [arm64] + os: [android] + + lightningcss-darwin-arm64@1.33.0: + resolution: {integrity: sha512-Sciaz8eenNTKn9b3t7+xr0ipTp9YxKQY4npwQ3mrRuL0BAVHBLyZxofhaKBAVtzmtRZ/zTyo0/to4B1uWG/Djg==} + engines: {node: '>= 12.0.0'} + cpu: [arm64] + os: [darwin] + + lightningcss-darwin-x64@1.33.0: + resolution: {integrity: sha512-Z5UPAxzrjlWNNyGy6i65cJzzvgJ5D3T6wMvs+gWpY9d7qRhANrxqAp6LhxIgZhWEw18RfJTGcRxjuLIBr+m8XQ==} + engines: {node: '>= 12.0.0'} + cpu: [x64] + os: [darwin] + + lightningcss-freebsd-x64@1.33.0: + resolution: {integrity: sha512-QQM/Ti/hQajJwCY+RiWuCZ9sdtI/XQk7nDK5vC8kkdwixezOlDgvDx7+RT+QjK6FcFT4MpsuoBnHIo/O3StRRg==} + engines: {node: '>= 12.0.0'} + cpu: [x64] + os: [freebsd] + + lightningcss-linux-arm-gnueabihf@1.33.0: + resolution: {integrity: sha512-N7FVBe6iS24MlM6R/4RBTxGhQheZGs7tiQ9U32UtF75NzP5Q7xWPRqLBCKxlRQRk3rY1jCIPLzx7WzOhuUIRLQ==} + engines: {node: '>= 12.0.0'} + cpu: [arm] + os: [linux] + + lightningcss-linux-arm64-gnu@1.33.0: + resolution: {integrity: sha512-j2v/itmy4HlNxlc6voKXYgBqNi0Ng2LShg4z7GufpEgs05P+2suBVyi9I6YHq5uoVFx9ETin3eCEhLVyXGQnKg==} + engines: {node: '>= 12.0.0'} + cpu: [arm64] + os: [linux] + libc: [glibc] + + lightningcss-linux-arm64-musl@1.33.0: + resolution: {integrity: sha512-yiO5ROMuYQgXbC60yjZU5CYSFZGKXL0HFATXt9mHJn1+zW55oCtMI9NfcVhYLMFDL7gV7oBPon/EmMMGg2OvtQ==} + engines: {node: '>= 12.0.0'} + cpu: [arm64] + os: [linux] + libc: [musl] + + lightningcss-linux-x64-gnu@1.33.0: + resolution: {integrity: sha512-ar+Ju7LmcN0Jo4FpL4hpFybwNG9/3A/Br5KW2n2jyODg3MEZXaDYADdemoNS+BDNfMgKvylJLj4S5tyRActuAg==} + engines: {node: '>= 12.0.0'} + cpu: [x64] + os: [linux] + libc: [glibc] + + lightningcss-linux-x64-musl@1.33.0: + resolution: {integrity: sha512-RYiYbkokw0trfKqqzfF55lginwEPrD3OJDfTuJzFs1MK6iFnDenaz1fqLLtX4ITG3OktJQXOeTaw1awrBAlZPw==} + engines: {node: '>= 12.0.0'} + cpu: [x64] + os: [linux] + libc: [musl] + + lightningcss-win32-arm64-msvc@1.33.0: + resolution: {integrity: sha512-1K+MPfLSFVpphzpdbfkhlWk6wBrTObBzS2T6db10PNOZgR9GoVsAWzwNyuhUYYbTp23j+4RrncfujZ4uAzXvwA==} + engines: {node: '>= 12.0.0'} + cpu: [arm64] + os: [win32] + + lightningcss-win32-x64-msvc@1.33.0: + resolution: {integrity: sha512-OlEICDx/Xl0FqSp4bry8zFnCvGpig3Gl4gCquvYwHuqJKEC1+n9NgDniFvqHGmMv1ZkqDJrDqKKSykTDX+ehuA==} + engines: {node: '>= 12.0.0'} + cpu: [x64] + os: [win32] + + lightningcss@1.33.0: + resolution: {integrity: sha512-WkUDrojuJs0xkgGf2udWxa3yGBRxPtxUkB79i6aCZLRgc7PM8fZe9TosfPDcvEpQZbuFASnHYmRLBLUbmLOIIA==} + engines: {node: '>= 12.0.0'} + locate-path@6.0.0: resolution: {integrity: sha512-iPZK6eYjbxRu3uB4/WZ3EsEIMJFMqAoopl3R+zuq0UjcAm/MO6KCweDgPfP3elTztoKP3KtnVHxTn2NHBSDVUw==} engines: {node: '>=10'} @@ -632,34 +789,26 @@ packages: lodash.merge@4.6.2: resolution: {integrity: sha512-0KpjqXRVvrYyCsX1swR/XTK0va6VQkQM6MNo7PqW77ByjAhoARA8EfrP1N4+KlKj8YS0ZUCtRT/YUuhyYDujIQ==} - log-symbols@4.1.0: - resolution: {integrity: sha512-8XPvpAA8uyhfteu8pIvQxpJZ7SYYdpUivZpGy6sFsBuKRY/7rQGavedeB8aK+Zkyq6upMFVL/9AW6vOYzfRyLg==} - engines: {node: '>=10'} + magic-string@0.30.21: + resolution: {integrity: sha512-vd2F4YUyEXKGcLHoq+TEyCjxueSeHnFxyyjNp80yg0XV4vUhnDer/lvvlqM/arB5bXQN5K2/3oinyCRyx8T2CQ==} minimatch@3.1.5: resolution: {integrity: sha512-VgjWUsnnT6n+NUk6eZq77zeFdpW2LWDzP6zFGrCbHXiYNul5Dzqk2HHQ5uFH2DNW5Xbp8+jVzaeNt94ssEEl4w==} - minimatch@5.1.9: - resolution: {integrity: sha512-7o1wEA2RyMP7Iu7GNba9vc0RWWGACJOCZBJX2GJWip0ikV+wcOsgVuY9uE8CPiyQhkGFSlhuSkZPavN7u1c2Fw==} - engines: {node: '>=10'} - - mocha@10.8.2: - resolution: {integrity: sha512-VZlYo/WE8t1tstuRmqgeyBgCbJc/lEdopaa+axcKzTBJ+UIdlAB9XnmvTCAH4pwR4ElNInaedhEBmZD8iCSVEg==} - engines: {node: '>= 14.0.0'} - hasBin: true - ms@2.1.3: resolution: {integrity: sha512-6FlzubTLZG3J2a/NVCAleEhjzq5oxgHyaCU9yYXvcLsvoVaHJq/s5xXI6/XXP6tz7R9xAOtHnSO/tXtF3WRTlA==} + nanoid@3.3.20: + resolution: {integrity: sha512-uKdg2G3GNCKQn9byYOpxbGqrT2fGO5KRt5J/8b3pok8rT6qxGWF6hxMyJiEYtAf+FVyYuD9hRaDqX5uPFYJ4ZQ==} + engines: {node: ^10 || ^12 || ^13.7 || ^14 || >=15.0.1} + hasBin: true + natural-compare@1.4.0: resolution: {integrity: sha512-OWND8ei3VtNC9h7V60qff3SVobHr996CTwgxubgyQYEpg290h9J0buyECNNJexkFm5sOajh5G116RYA1c8ZMSw==} - normalize-path@3.0.0: - resolution: {integrity: sha512-6eZs5Ls3WtCisHWp9S2GUy8dqkpGi4BVSz3GaqiE6ezub0512ESztXUwUB6C6IKbQkY2Pnb/mD4WYojCRwcwLA==} - engines: {node: '>=0.10.0'} - - once@1.4.0: - resolution: {integrity: sha512-lNaJgI+2Q5URQBkccEKHTQOPaXdUxnZZElQTZY0MFUAuaEqe1E+Nyvgdz/aIyNi6Z9MzO5dv1H8n58/GELp3+w==} + obug@2.2.1: + resolution: {integrity: sha512-XrsrhT5sybtKI6wakr2SPOlGZWWYbUXZ7a0jT8/QOeAPau+1X/bSegNe5YR75oJmEZQbKningirmGOEJCIk61Q==} + engines: {node: '>=12.20.0'} optionator@0.9.4: resolution: {integrity: sha512-6IpQ7mKUxRcZNLIObR0hz7lxsapSSIYNZJwXPGeF0mTVqGKFIXj1DQcMoT22S3ROcLyY/rz0PWaWZ9ayWmad9g==} @@ -681,10 +830,6 @@ packages: resolution: {integrity: sha512-ak9Qy5Q7jYb2Wwcey5Fpvg2KoAc/ZIhLSLOSBmRmygPsGwkVVt0fZa0qrtMz+m6tJTAHfZQ8FnmB4MG4LWy7/w==} engines: {node: '>=8'} - path-is-absolute@1.0.1: - resolution: {integrity: sha512-AVbw3UJ2e9bq64vSaS9Am0fje1Pa8pbGqTTsmXfaIiMpnr5DlDhfJOuLj9Sf95ZPVDAUerDfEk88MPmPe7UCQg==} - engines: {node: '>=0.10.0'} - path-key@3.1.1: resolution: {integrity: sha512-ojmeN0qd+y0jszEtoY48r0Peq5dwMEkIlCOu6Q5f41lfkswXuKtYrhgoTpLnyIcHm24Uhqx+5Tqm2InSwLhE6Q==} engines: {node: '>=8'} @@ -692,14 +837,20 @@ packages: path-parse@1.0.7: resolution: {integrity: sha512-LDJzPVEEEPR+y48z93A0Ed0yXb8pAByGWo/k5YYdYgpY2/2EsOsksJrq7lOHxryrVOn1ejG6oAp8ahvOIQD8sw==} - picomatch@2.3.2: - resolution: {integrity: sha512-V7+vQEJ06Z+c5tSye8S+nHUfI51xoXIXjHQ99cQtKUkQqqO1kO/KCJUfZXuB47h/YBlDhah2H3hdUGXn8ie0oA==} - engines: {node: '>=8.6'} + pathe@2.0.3: + resolution: {integrity: sha512-WUjGcAqP1gQacoQe+OBJsFA7Ld4DyXuUIjZ5cc75cLHvJ7dtNsTugphxIADwspS+AraAUePCKrSVtPLFj/F88w==} + + picocolors@1.1.1: + resolution: {integrity: sha512-xceH2snhtb5M9liqDsmEw56le376mTZkEX/jEb/RxNFyegNul7eNslCXP9FDj/Lcu0X8KEyMceP2ntpaHrDEVA==} picomatch@4.0.7: resolution: {integrity: sha512-qcJu88Q2IWqJsDD529JKMdwGm/dvInW4HvQnRwiH9JtihJvzGOscDtHE3x1pBKeUOTysQ8kVmLnJ2kJu7yhcGA==} engines: {node: '>=12'} + postcss@8.5.32: + resolution: {integrity: sha512-LJlKCCAUFKOuZxipUdYw1NzIITEsPcgyOG9LkvRJvuKj/bRzbuRY0ARXvL0pWGpsZvn8jku+LMep2eU0seHp8g==} + engines: {node: ^10 || ^12 || >=14} + prelude-ls@1.2.1: resolution: {integrity: sha512-vkcDPrRZo1QZLbn5RLGPpg/WmIQ65qoWWhcGKf/b5eplkkarX0m9z8ppCat4mlOqUsWpyNuYgO3VRyrYHSzX5g==} engines: {node: '>= 0.8.0'} @@ -708,20 +859,6 @@ packages: resolution: {integrity: sha512-vYt7UD1U9Wg6138shLtLOvdAu+8DsC/ilFtEVHcH+wydcSpNE20AfSOduf6MkRFahL5FY7X1oU7nKVZFtfq8Fg==} engines: {node: '>=6'} - queue-microtask@1.2.3: - resolution: {integrity: sha512-NuaNSa6flKT5JaSYQzJok04JzTL1CA6aGhv5rfLW3PgqA+M2ChpZQnAC8h8i4ZFkBS8X5RqkDBHA7r4hej3K9A==} - - randombytes@2.1.0: - resolution: {integrity: sha512-vYl3iOX+4CKUWuxGi9Ukhie6fsqXqS9FE2Zaic4tNFD2N2QQaXOMFbuKK4QmDHC0JO6B1Zp41J0LpT0oR68amQ==} - - readdirp@3.6.0: - resolution: {integrity: sha512-hOS089on8RduqdbhvQ5Z37A0ESjsqz6qnRcffsMU3495FuTdqSm+7bhJ29JvIOsBDEEnan5DPu9t3To9VRlMzA==} - engines: {node: '>=8.10.0'} - - require-directory@2.1.1: - resolution: {integrity: sha512-fGxEI7+wsG9xrvdjsrlmL22OMTTiHRwAMroiEeMgq8gzoLC/PQr7RsRDSTLUg/bZAZtF+TVIkHc6/4RIKrui+Q==} - engines: {node: '>=0.10.0'} - resolve-from@4.0.0: resolution: {integrity: sha512-pb/MYmXstAkysRFx8piNI1tGFNQIFA3vkE3Gq4EuA1dF6gHp/+vgZqsCGJapvy8N3Q+4o7FwvquPJcnZ7RYy4g==} engines: {node: '>=4'} @@ -731,13 +868,9 @@ packages: engines: {node: '>= 0.4'} hasBin: true - reusify@1.1.0: - resolution: {integrity: sha512-g6QUff04oZpHs0eG5p83rFLhHeV00ug/Yf9nZM6fLeUrPguBTkTQOdpAWWspMh55TZfVQDPaN3NQJfbVRAxdIw==} - engines: {iojs: '>=1.0.0', node: '>=0.10.0'} - - rimraf@3.0.2: - resolution: {integrity: sha512-JZkJMZkAGFFPP2YqXZXPbMlMBgsxzE8ILs4lMIX/2o0L9UBw9O/Y3o6wFw/i9YLapcUJWwqbi3kdxIPdC62TIA==} - deprecated: Rimraf versions prior to v4 are no longer supported + rolldown@1.2.16: + resolution: {integrity: sha512-bWvlMpFKiTfDKfnK7FC2MPgPeWCf/Kpwsq49ApdW+FQaBZb6O6dZ4MAPbPUjp7hYQrw/RobqCzn64BRrQecGHw==} + engines: {node: ^20.19.0 || >=22.12.0} hasBin: true rollup@4.67.4: @@ -745,15 +878,6 @@ packages: engines: {node: '>=18.0.0', npm: '>=8.0.0'} hasBin: true - run-parallel@1.2.0: - resolution: {integrity: sha512-5l4VyZR86LZ/lDxZTR6jqL8AFE2S0IFLMP26AbjsLVADxHdhB/c0GUsH+y39UfCi3dzz8OlQuPmnaJOMoDHQBA==} - - safe-buffer@5.2.1: - resolution: {integrity: sha512-rp3So07KcdmmKbGvgaNxQSJr7bGVSVk5S9Eq1F+ppbRo70+YeaDxkw5Dd8NPN+GD6bjnYm2VuPuCXmpuYvmCXQ==} - - serialize-javascript@6.0.2: - resolution: {integrity: sha512-Saa1xPByTTq2gdeFZYLLo+RFE35NHZkAbqZeWNd3BpzppeVisAqpDjcp8dyf6uIvEqJRd46jemmyA4iFIeVk8g==} - serialize-javascript@7.1.4: resolution: {integrity: sha512-FqlEuoTq/zRmA4Lg6aOqyH3lCHbUtCB0bmHCeFniX2GBdDqMJM3FwdvEhlE5Pim1dlt2FfBdVPmUNNiGhhKqpw==} engines: {node: '>=20.0.0'} @@ -766,10 +890,17 @@ packages: resolution: {integrity: sha512-7++dFhtcx3353uBaq8DDR4NuxBetBzC7ZQOhmTQInHEd6bSrXdiEyzCvG07Z44UYdLShWUyXt5M/yhz8ekcb1A==} engines: {node: '>=8'} + siginfo@2.0.0: + resolution: {integrity: sha512-ybx0WO1/8bSBLEWXZvEd7gMW3Sn3JFlW3TvX1nREbDLRNQNaeNN8WK0meBwPdAaOI7TtRRRJn/Es1zhrrCHu7g==} + smob@1.6.2: resolution: {integrity: sha512-RQsvleCbF8cVHEv+xuDGaA4pOizFqJ0GgjtMSRo6oP8pnN7WsigHgVGey6aILRBKv4W2YOMHLqbKdnB6hpB9fw==} engines: {node: '>=20.0.0'} + source-map-js@1.2.2: + resolution: {integrity: sha512-KGj/8Y43x35aZVDtt+J4mK1hoLGHULMYfSkODJNQjNDC3oW1PqPoxMwo0pLUsWM/UEGzON/NxeHywEfNXNP3Vw==} + engines: {node: '>=0.10.0'} + source-map-support@0.5.21: resolution: {integrity: sha512-uBHU3L3czsIyYXKX88fdrGovxdSCoTGDRZ6SYXtSRxLZUzHg5P/66Ht6uoUlHu9EZod+inXhKo3qQgwXUT/y1w==} @@ -777,13 +908,11 @@ packages: resolution: {integrity: sha512-UjgapumWlbMhkBgzT7Ykc5YXUT46F0iKu8SGXq0bcwP5dz/h0Plj6enJqjz1Zbq2l5WaqYnrVbwWOWMyF3F47g==} engines: {node: '>=0.10.0'} - string-width@4.2.3: - resolution: {integrity: sha512-wKyQRQpjJ0sIp62ErSZdGsjMJWsap5oRNihHhu6G7JVO/9jIB6UyevL+tXuOqrng8j/cxKTWyWUwvSTriiZz/g==} - engines: {node: '>=8'} + stackback@0.0.2: + resolution: {integrity: sha512-1XMJE5fQo1jGH6Y/7ebnwPOBEkIEnT4QF32d5R1+VXdXveM0IBMJt8zfaxX1P3QhVwrYe+576+jkANtSS2mBbw==} - strip-ansi@6.0.1: - resolution: {integrity: sha512-Y38VPSHcqkFrCpFnQ9vuSXmquuv5oXOKpGeT6aGrr3o3Gc9AlVa6JBfUSOCnbxGGZF+/0ooI7KrPuUSztUdU5A==} - engines: {node: '>=8'} + std-env@4.3.0: + resolution: {integrity: sha512-OtU/EgQ1kIm5KwqQpBC6ZEMXrZRui11w8zgfTWp8cdO9B8OaPsbA8bTHO2P+HNo1VlUTGMVBwPhydu6poeXiag==} strip-json-comments@3.1.1: resolution: {integrity: sha512-6fPc+R4ihwqP6N/aIv2f1gMH8lOVtWQHoqC4yK6oSDVVocumAsfCqjkXnqiYMhmMwS/mEHLp7Vehlt3ql6lEig==} @@ -793,10 +922,6 @@ packages: resolution: {integrity: sha512-qpCAvRl9stuOHveKsn7HncJRvv501qIacKzQlO/+Lwxc9+0q2wLyv4Dfvt80/DPn2pqOBsJdDiogXGR9+OvwRw==} engines: {node: '>=8'} - supports-color@8.1.1: - resolution: {integrity: sha512-MpUEN2OodtUzxvKQl72cUF7RQ5EiHsGvSsVG0ia9c5RbWGL2CI4C7EpPS8UTBIplnlzZiNuV56w+FuNxy3ty2Q==} - engines: {node: '>=10'} - supports-preserve-symlinks-flag@1.0.0: resolution: {integrity: sha512-ot0WnXS9fgdkgIcePe6RHNk1WA8+muPa6cSjeR3V8K27q9BB1rTE3R1p7Hv0z1ZyAc8s6Vvv8DIyWf681MAt0w==} engines: {node: '>= 0.4'} @@ -806,78 +931,161 @@ packages: engines: {node: '>=10'} hasBin: true - text-table@0.2.0: - resolution: {integrity: sha512-N+8UisAXDGk8PFXP4HAzVR9nbfmVJ3zYLAWiTIoqC5v5isinhr+r5uaO8+7r3BMfuNIufIsA7RdpVgacC2cSpw==} + tinybench@2.9.0: + resolution: {integrity: sha512-0+DUvqWMValLmha6lr4kD8iAMK1HzV0/aKnCtWb9v9641TnP/MFb7Pc2bxoxQjTXAErryXVgUOfv2YqNllqGeg==} - to-regex-range@5.0.1: - resolution: {integrity: sha512-65P7iz6X5yEr1cwcgvQxbbIw7Uk3gOy5dIdtZ4rDveLqhrdJP+Li/Hx6tyK0NEb+2GCyneCMJiGqrADCSNk8sQ==} - engines: {node: '>=8.0'} + tinyexec@1.3.1: + resolution: {integrity: sha512-GCvB3aoys96IuDFBMcTB46JOR6mdMtAToqwiW8JlWhsoh1mhHi/xn9ss/Dg7N555GiJyEt2qzoG/NHCwM6h1EA==} + engines: {node: '>=18'} + + tinyglobby@0.2.17: + resolution: {integrity: sha512-wXR/dYpcqKmfWpEdZjiKJOwCNFndD0DMnrW/cYjVGttEkBfVgcLFHoNrlj47mjOVic9yyNu65alsgF4NQyTa2g==} + engines: {node: '>=12.0.0'} + + tinyrainbow@3.2.0: + resolution: {integrity: sha512-LgO3D9yZJjApUiuUfl9iFAwrtaX4+lok3wJIqttGoKCHlWUqHqbQpnxCf82L8FjgKsh4iGo78hqJwgL8F6To2A==} + engines: {node: '>=14.0.0'} type-check@0.4.0: resolution: {integrity: sha512-XleUoc9uwGXqjWwXaUTZAmzMcFZ5858QA2vvx1Ur5xIcixXIP+8LnFDgRplU30us6teqdlskFfu+ae4K79Ooew==} engines: {node: '>= 0.8.0'} - type-fest@0.20.2: - resolution: {integrity: sha512-Ne+eE4r0/iWnpAxD852z3A+N0Bt5RN//NjJwRd2VFHEmrywxf5vsZlh4R6lixl6B+wz/8d+maTSAkN1FIkI3LQ==} - engines: {node: '>=10'} - uri-js@4.4.1: resolution: {integrity: sha512-7rKUyy33Q1yc98pQ1DAmLtwX109F7TIfWlW1Ydo8Wl1ii1SeHieeh0HHfPeL2fMXK6z0s8ecKs9frCuLJvndBg==} + vite@8.3.5: + resolution: {integrity: sha512-z1YpjieJ9g0ebTmQpLBv/oq9E3F9EIlOe+7LahW8SrE3LTiG3udBRUXQOlYXP9b+IC2q2phHeVxj9xGlw34OEQ==} + engines: {node: ^20.19.0 || >=22.12.0} + hasBin: true + peerDependencies: + '@types/node': ^20.19.0 || >=22.12.0 + '@vitejs/devtools': ^0.7.1 || ^0.8.0 + esbuild: ^0.27.0 || ^0.28.0 + jiti: '>=1.21.0' + less: ^4.0.0 + sass: ^1.70.0 + sass-embedded: ^1.70.0 + stylus: '>=0.54.8' + sugarss: ^5.0.0 + terser: ^5.16.0 + tsx: ^4.8.1 + yaml: ^2.4.2 + peerDependenciesMeta: + '@types/node': + optional: true + '@vitejs/devtools': + optional: true + esbuild: + optional: true + jiti: + optional: true + less: + optional: true + sass: + optional: true + sass-embedded: + optional: true + stylus: + optional: true + sugarss: + optional: true + terser: + optional: true + tsx: + optional: true + yaml: + optional: true + + vitest@4.1.12: + resolution: {integrity: sha512-5eWdz2yb3ajxWF3C8C4TjkXl7FGm3n2E/VlazALrQHzK7nYMSGFnCZto0bbPNl77AwkOZVLk0YnBAejUu0NiWA==} + engines: {node: ^20.0.0 || ^22.0.0 || >=24.0.0} + hasBin: true + peerDependencies: + '@edge-runtime/vm': '*' + '@opentelemetry/api': ^1.9.0 + '@types/node': ^20.0.0 || ^22.0.0 || >=24.0.0 + '@vitest/browser-playwright': 4.1.12 + '@vitest/browser-preview': 4.1.12 + '@vitest/browser-webdriverio': ^4.1.11 + '@vitest/coverage-istanbul': 4.1.12 + '@vitest/coverage-v8': 4.1.12 + '@vitest/ui': 4.1.12 + happy-dom: '*' + jsdom: '*' + vite: ^6.0.0 || ^7.0.0 || ^8.0.0 + peerDependenciesMeta: + '@edge-runtime/vm': + optional: true + '@opentelemetry/api': + optional: true + '@types/node': + optional: true + '@vitest/browser-playwright': + optional: true + '@vitest/browser-preview': + optional: true + '@vitest/browser-webdriverio': + optional: true + '@vitest/coverage-istanbul': + optional: true + '@vitest/coverage-v8': + optional: true + '@vitest/ui': + optional: true + happy-dom: + optional: true + jsdom: + optional: true + which@2.0.2: resolution: {integrity: sha512-BLI3Tl1TW3Pvl70l3yq3Y64i+awpwXqsGBYWkkqMtnbXgrMD+yj7rhW0kuEDxzJaYXGjEW5ogapKNMEKNMjibA==} engines: {node: '>= 8'} hasBin: true + why-is-node-running@2.3.0: + resolution: {integrity: sha512-hUrmaWBdVDcxvYqnyh09zunKzROWjbZTiNy8dBEjkS7ehEDQibXJ7XvlmtbwuTclUiIyN+CyXQD4Vmko8fNm8w==} + engines: {node: '>=8'} + hasBin: true + word-wrap@1.2.5: resolution: {integrity: sha512-BN22B5eaMMI9UMtjrGd5g5eCYPpCPDUy0FJXbYsaT5zYxjFOckS53SQDE3pWkVoWpHXVb3BrYcEN4Twa55B5cA==} engines: {node: '>=0.10.0'} - workerpool@6.5.1: - resolution: {integrity: sha512-Fs4dNYcsdpYSAfVxhnl1L5zTksjvOJxtC5hzMNl+1t9B8hTJTdKDyZ5ju7ztgPy+ft9tBFXoOlDNiOT9WUXZlA==} - - wrap-ansi@7.0.0: - resolution: {integrity: sha512-YVGIj2kamLSTxw6NsZjoBxfSwsn0ycdesmc4p+Q21c5zPuZ1pl+NfxVdxPtdHvmNVOQ6XSYG4AUtyt/Fi7D16Q==} - engines: {node: '>=10'} - - wrappy@1.0.2: - resolution: {integrity: sha512-l4Sp/DRseor9wL6EvV2+TuQn63dMkPjZ/sp9XkghTEbV9KlPS1xUsZ3u7/IQO4wxtcFB4bgpQPRcR3QCvezPcQ==} - - y18n@5.0.8: - resolution: {integrity: sha512-0pfFzegeDWJHJIAmTLRP2DwHjdF5s7jo9tuztdQxAhINCdvS+3nGINqPd00AphqJR/0LhANUS6/+7SCb98YOfA==} - engines: {node: '>=10'} - - yargs-parser@20.2.9: - resolution: {integrity: sha512-y11nGElTIV+CT3Zv9t7VKl+Q3hTQoT9a1Qzezhhl6Rp21gJ/IVTW7Z3y9EWXhuUBC2Shnf+DX0antecpAwSP8w==} - engines: {node: '>=10'} - - yargs-unparser@2.0.0: - resolution: {integrity: sha512-7pRTIA9Qc1caZ0bZ6RYRGbHJthJWuakf+WmHK0rVeLkNrrGhfoabBNdue6kdINI6r4if7ocq9aD/n7xwKOdzOA==} - engines: {node: '>=10'} - - yargs@16.2.2: - resolution: {integrity: sha512-Nt9ZJjXTv5R8MHbqby/wXQ6Gi0Bb3TcYZkR1bzuL4yB2OxWPkXknz513gEF0GoA6tn00UpbPvERW8rzCuWCA6w==} - engines: {node: '>=10'} - yocto-queue@0.1.0: resolution: {integrity: sha512-rVksvsnNCdJ/ohGc6xgPwyN8eheCxsiLM8mxuE/t/mOVqJewPuO1miLpTHQiRgTKCLexL4MeAFVagts7HmNZ2Q==} engines: {node: '>=10'} snapshots: - '@eslint-community/eslint-utils@4.10.1(eslint@8.57.1)': + '@eslint-community/eslint-utils@4.10.1(eslint@9.39.5)': dependencies: - eslint: 8.57.1 + eslint: 9.39.5 eslint-visitor-keys: 3.4.3 '@eslint-community/regexpp@4.12.2': {} - '@eslint/eslintrc@2.1.4': + '@eslint/config-array@0.21.2': + dependencies: + '@eslint/object-schema': 2.1.7 + debug: 4.4.3 + minimatch: 3.1.5 + transitivePeerDependencies: + - supports-color + + '@eslint/config-helpers@0.4.2': + dependencies: + '@eslint/core': 0.17.0 + + '@eslint/core@0.17.0': + dependencies: + '@types/json-schema': 7.0.15 + + '@eslint/eslintrc@3.3.7': dependencies: ajv: 6.15.0 - debug: 4.4.3(supports-color@8.1.1) - espree: 9.6.1 - globals: 13.24.0 + debug: 4.4.3 + espree: 10.4.0 + globals: 14.0.0 ignore: 5.3.2 import-fresh: 3.3.1 js-yaml: 4.3.2 @@ -886,19 +1094,30 @@ snapshots: transitivePeerDependencies: - supports-color - '@eslint/js@8.57.1': {} + '@eslint/js@9.39.5': {} + + '@eslint/object-schema@2.1.7': {} - '@humanwhocodes/config-array@0.13.0': + '@eslint/plugin-kit@0.4.1': dependencies: - '@humanwhocodes/object-schema': 2.0.3 - debug: 4.4.3(supports-color@8.1.1) - minimatch: 3.1.5 - transitivePeerDependencies: - - supports-color + '@eslint/core': 0.17.0 + levn: 0.4.1 + + '@humanfs/core@0.19.2': + dependencies: + '@humanfs/types': 0.15.0 + + '@humanfs/node@0.16.8': + dependencies: + '@humanfs/core': 0.19.2 + '@humanfs/types': 0.15.0 + '@humanwhocodes/retry': 0.4.3 + + '@humanfs/types@0.15.0': {} '@humanwhocodes/module-importer@1.0.1': {} - '@humanwhocodes/object-schema@2.0.3': {} + '@humanwhocodes/retry@0.4.3': {} '@jridgewell/gen-mapping@0.3.13': dependencies: @@ -922,17 +1141,54 @@ snapshots: '@napi-rs/lzma-linux-x64-gnu@1.5.1': optional: true - '@nodelib/fs.scandir@2.1.5': - dependencies: - '@nodelib/fs.stat': 2.0.5 - run-parallel: 1.2.0 + '@oxc-project/types@0.156.0': {} - '@nodelib/fs.stat@2.0.5': {} + '@rolldown/binding-android-arm-eabi@1.2.16': + optional: true - '@nodelib/fs.walk@1.2.8': - dependencies: - '@nodelib/fs.scandir': 2.1.5 - fastq: 1.20.3 + '@rolldown/binding-android-arm64@1.2.16': + optional: true + + '@rolldown/binding-darwin-arm64@1.2.16': + optional: true + + '@rolldown/binding-darwin-x64@1.2.16': + optional: true + + '@rolldown/binding-freebsd-x64@1.2.16': + optional: true + + '@rolldown/binding-linux-arm-gnueabihf@1.2.16': + optional: true + + '@rolldown/binding-linux-arm64-gnu@1.2.16': + optional: true + + '@rolldown/binding-linux-arm64-musl@1.2.16': + optional: true + + '@rolldown/binding-linux-ppc64-gnu@1.2.16': + optional: true + + '@rolldown/binding-linux-s390x-gnu@1.2.16': + optional: true + + '@rolldown/binding-linux-x64-gnu@1.2.16': + optional: true + + '@rolldown/binding-linux-x64-musl@1.2.16': + optional: true + + '@rolldown/binding-openharmony-arm64@1.2.16': + optional: true + + '@rolldown/binding-win32-arm64-msvc@1.2.16': + optional: true + + '@rolldown/binding-win32-x64-msvc@1.2.16': + optional: true + + '@rolldown/pluginutils@1.0.1': {} '@rollup/plugin-node-resolve@16.0.3(rollup@4.67.4)': dependencies: @@ -1038,11 +1294,61 @@ snapshots: '@rollup/rollup-win32-x64-msvc@4.67.4': optional: true + '@standard-schema/spec@1.1.0': {} + + '@types/chai@5.2.3': + dependencies: + '@types/deep-eql': 4.0.2 + assertion-error: 2.0.1 + + '@types/deep-eql@4.0.2': {} + '@types/estree@1.0.10': {} + '@types/json-schema@7.0.15': {} + '@types/resolve@1.20.2': {} - '@ungap/structured-clone@1.4.0': {} + '@vitest/expect@4.1.12': + dependencies: + '@standard-schema/spec': 1.1.0 + '@types/chai': 5.2.3 + '@vitest/spy': 4.1.12 + '@vitest/utils': 4.1.12 + chai: 6.3.0 + tinyrainbow: 3.2.0 + + '@vitest/mocker@4.1.12(vite@8.3.5(terser@5.51.2))': + dependencies: + '@vitest/spy': 4.1.12 + estree-walker: 3.0.3 + magic-string: 0.30.21 + optionalDependencies: + vite: 8.3.5(terser@5.51.2) + + '@vitest/pretty-format@4.1.12': + dependencies: + tinyrainbow: 3.2.0 + + '@vitest/runner@4.1.12': + dependencies: + '@vitest/utils': 4.1.12 + pathe: 2.0.3 + + '@vitest/snapshot@4.1.12': + dependencies: + '@vitest/pretty-format': 4.1.12 + '@vitest/utils': 4.1.12 + magic-string: 0.30.21 + pathe: 2.0.3 + + '@vitest/spy@4.1.12': {} + + '@vitest/utils@4.1.12': + dependencies: + '@vitest/pretty-format': 4.1.12 + convert-source-map: 2.0.0 + tinyrainbow: 3.2.0 acorn-jsx@5.3.2(acorn@8.19.0): dependencies: @@ -1057,69 +1363,32 @@ snapshots: json-schema-traverse: 0.4.1 uri-js: 4.4.1 - ansi-colors@4.1.3: {} - - ansi-regex@5.0.1: {} - ansi-styles@4.3.0: dependencies: color-convert: 2.0.1 - anymatch@3.1.3: - dependencies: - normalize-path: 3.0.0 - picomatch: 2.3.2 - argparse@2.0.1: {} - balanced-match@1.0.2: {} + assertion-error@2.0.1: {} - binary-extensions@2.3.0: {} + balanced-match@1.0.2: {} brace-expansion@1.1.21: dependencies: balanced-match: 1.0.2 concat-map: 0.0.1 - brace-expansion@2.1.7: - dependencies: - balanced-match: 1.0.2 - - braces@3.0.3: - dependencies: - fill-range: 7.1.1 - - browser-stdout@1.3.1: {} - buffer-from@1.1.2: {} callsites@3.1.0: {} - camelcase@6.3.0: {} + chai@6.3.0: {} chalk@4.1.2: dependencies: ansi-styles: 4.3.0 supports-color: 7.2.0 - chokidar@3.6.0: - dependencies: - anymatch: 3.1.3 - braces: 3.0.3 - glob-parent: 5.1.2 - is-binary-path: 2.1.0 - is-glob: 4.0.3 - normalize-path: 3.0.0 - readdirp: 3.6.0 - optionalDependencies: - fsevents: 2.3.3 - - cliui@7.0.4: - dependencies: - string-width: 4.2.3 - strip-ansi: 6.0.1 - wrap-ansi: 7.0.0 - color-convert@2.0.1: dependencies: color-name: 1.1.4 @@ -1130,6 +1399,8 @@ snapshots: concat-map@0.0.1: {} + convert-source-map@2.0.0: {} + cross-spawn@7.0.6: dependencies: path-key: 3.1.1 @@ -1144,87 +1415,75 @@ snapshots: dependencies: d3-array: 3.2.4 - debug@4.4.3(supports-color@8.1.1): + debug@4.4.3: dependencies: ms: 2.1.3 - optionalDependencies: - supports-color: 8.1.1 - - decamelize@4.0.0: {} deep-is@0.1.4: {} deepmerge@4.3.1: {} - diff@5.2.2: {} - - doctrine@3.0.0: - dependencies: - esutils: 2.0.3 - - emoji-regex@8.0.0: {} + detect-libc@2.1.2: {} es-errors@1.3.0: {} - escalade@3.2.0: {} + es-module-lexer@2.3.2: {} escape-string-regexp@4.0.0: {} - eslint-scope@7.2.2: + eslint-scope@8.4.0: dependencies: esrecurse: 4.3.0 estraverse: 5.3.0 eslint-visitor-keys@3.4.3: {} - eslint@8.57.1: + eslint-visitor-keys@4.2.1: {} + + eslint@9.39.5: dependencies: - '@eslint-community/eslint-utils': 4.10.1(eslint@8.57.1) + '@eslint-community/eslint-utils': 4.10.1(eslint@9.39.5) '@eslint-community/regexpp': 4.12.2 - '@eslint/eslintrc': 2.1.4 - '@eslint/js': 8.57.1 - '@humanwhocodes/config-array': 0.13.0 + '@eslint/config-array': 0.21.2 + '@eslint/config-helpers': 0.4.2 + '@eslint/core': 0.17.0 + '@eslint/eslintrc': 3.3.7 + '@eslint/js': 9.39.5 + '@eslint/plugin-kit': 0.4.1 + '@humanfs/node': 0.16.8 '@humanwhocodes/module-importer': 1.0.1 - '@nodelib/fs.walk': 1.2.8 - '@ungap/structured-clone': 1.4.0 + '@humanwhocodes/retry': 0.4.3 + '@types/estree': 1.0.10 ajv: 6.15.0 chalk: 4.1.2 cross-spawn: 7.0.6 - debug: 4.4.3(supports-color@8.1.1) - doctrine: 3.0.0 + debug: 4.4.3 escape-string-regexp: 4.0.0 - eslint-scope: 7.2.2 - eslint-visitor-keys: 3.4.3 - espree: 9.6.1 + eslint-scope: 8.4.0 + eslint-visitor-keys: 4.2.1 + espree: 10.4.0 esquery: 1.7.0 esutils: 2.0.3 fast-deep-equal: 3.1.3 - file-entry-cache: 6.0.1 + file-entry-cache: 8.0.0 find-up: 5.0.0 glob-parent: 6.0.2 - globals: 13.24.0 - graphemer: 1.4.0 ignore: 5.3.2 imurmurhash: 0.1.4 is-glob: 4.0.3 - is-path-inside: 3.0.3 - js-yaml: 4.3.2 json-stable-stringify-without-jsonify: 1.0.1 - levn: 0.4.1 lodash.merge: 4.6.2 minimatch: 3.1.5 natural-compare: 1.4.0 optionator: 0.9.4 - strip-ansi: 6.0.1 - text-table: 0.2.0 transitivePeerDependencies: - supports-color - espree@9.6.1: + espree@10.4.0: dependencies: acorn: 8.19.0 acorn-jsx: 5.3.2(acorn@8.19.0) - eslint-visitor-keys: 3.4.3 + eslint-visitor-keys: 4.2.1 esquery@1.7.0: dependencies: @@ -1238,80 +1497,52 @@ snapshots: estree-walker@2.0.2: {} + estree-walker@3.0.3: + dependencies: + '@types/estree': 1.0.10 + esutils@2.0.3: {} + expect-type@1.4.0: {} + fast-deep-equal@3.1.3: {} fast-json-stable-stringify@2.1.0: {} fast-levenshtein@2.0.6: {} - fastq@1.20.3: - dependencies: - reusify: 1.1.0 - - file-entry-cache@6.0.1: - dependencies: - flat-cache: 3.2.0 + fdir@6.5.0(picomatch@4.0.7): + optionalDependencies: + picomatch: 4.0.7 - fill-range@7.1.1: + file-entry-cache@8.0.0: dependencies: - to-regex-range: 5.0.1 + flat-cache: 4.0.1 find-up@5.0.0: dependencies: locate-path: 6.0.0 path-exists: 4.0.0 - flat-cache@3.2.0: + flat-cache@4.0.1: dependencies: flatted: 3.4.4 keyv: 4.5.4 - rimraf: 3.0.2 - - flat@5.0.2: {} flatted@3.4.4: {} - fs.realpath@1.0.0: {} - fsevents@2.3.3: optional: true function-bind@1.1.2: {} - get-caller-file@2.0.5: {} - - glob-parent@5.1.2: - dependencies: - is-glob: 4.0.3 - glob-parent@6.0.2: dependencies: is-glob: 4.0.3 - glob@7.2.3: - dependencies: - fs.realpath: 1.0.0 - inflight: 1.0.6 - inherits: 2.0.4 - minimatch: 3.1.5 - once: 1.4.0 - path-is-absolute: 1.0.1 - - glob@8.1.0: - dependencies: - fs.realpath: 1.0.0 - inflight: 1.0.6 - inherits: 2.0.4 - minimatch: 5.1.9 - once: 1.4.0 - - globals@13.24.0: - dependencies: - type-fest: 0.20.2 + globals@14.0.0: {} - graphemer@1.4.0: {} + globals@17.14.0: {} has-flag@4.0.0: {} @@ -1319,8 +1550,6 @@ snapshots: dependencies: function-bind: 1.1.2 - he@1.2.0: {} - ignore@5.3.2: {} import-fresh@3.3.1: @@ -1330,41 +1559,20 @@ snapshots: imurmurhash@0.1.4: {} - inflight@1.0.6: - dependencies: - once: 1.4.0 - wrappy: 1.0.2 - - inherits@2.0.4: {} - internmap@2.0.3: {} - is-binary-path@2.1.0: - dependencies: - binary-extensions: 2.3.0 - is-core-module@2.17.0: dependencies: hasown: 2.0.4 is-extglob@2.1.1: {} - is-fullwidth-code-point@3.0.0: {} - is-glob@4.0.3: dependencies: is-extglob: 2.1.1 is-module@1.0.0: {} - is-number@7.0.0: {} - - is-path-inside@3.0.3: {} - - is-plain-obj@2.1.0: {} - - is-unicode-supported@0.1.0: {} - isexe@2.0.0: {} js-yaml@4.3.2: @@ -1386,57 +1594,76 @@ snapshots: prelude-ls: 1.2.1 type-check: 0.4.0 + lightningcss-android-arm64@1.33.0: + optional: true + + lightningcss-darwin-arm64@1.33.0: + optional: true + + lightningcss-darwin-x64@1.33.0: + optional: true + + lightningcss-freebsd-x64@1.33.0: + optional: true + + lightningcss-linux-arm-gnueabihf@1.33.0: + optional: true + + lightningcss-linux-arm64-gnu@1.33.0: + optional: true + + lightningcss-linux-arm64-musl@1.33.0: + optional: true + + lightningcss-linux-x64-gnu@1.33.0: + optional: true + + lightningcss-linux-x64-musl@1.33.0: + optional: true + + lightningcss-win32-arm64-msvc@1.33.0: + optional: true + + lightningcss-win32-x64-msvc@1.33.0: + optional: true + + lightningcss@1.33.0: + dependencies: + detect-libc: 2.1.2 + optionalDependencies: + lightningcss-android-arm64: 1.33.0 + lightningcss-darwin-arm64: 1.33.0 + lightningcss-darwin-x64: 1.33.0 + lightningcss-freebsd-x64: 1.33.0 + lightningcss-linux-arm-gnueabihf: 1.33.0 + lightningcss-linux-arm64-gnu: 1.33.0 + lightningcss-linux-arm64-musl: 1.33.0 + lightningcss-linux-x64-gnu: 1.33.0 + lightningcss-linux-x64-musl: 1.33.0 + lightningcss-win32-arm64-msvc: 1.33.0 + lightningcss-win32-x64-msvc: 1.33.0 + locate-path@6.0.0: dependencies: p-locate: 5.0.0 lodash.merge@4.6.2: {} - log-symbols@4.1.0: + magic-string@0.30.21: dependencies: - chalk: 4.1.2 - is-unicode-supported: 0.1.0 + '@jridgewell/sourcemap-codec': 1.6.0 minimatch@3.1.5: dependencies: brace-expansion: 1.1.21 - minimatch@5.1.9: - dependencies: - brace-expansion: 2.1.7 - - mocha@10.8.2: - dependencies: - ansi-colors: 4.1.3 - browser-stdout: 1.3.1 - chokidar: 3.6.0 - debug: 4.4.3(supports-color@8.1.1) - diff: 5.2.2 - escape-string-regexp: 4.0.0 - find-up: 5.0.0 - glob: 8.1.0 - he: 1.2.0 - js-yaml: 4.3.2 - log-symbols: 4.1.0 - minimatch: 5.1.9 - ms: 2.1.3 - serialize-javascript: 6.0.2 - strip-json-comments: 3.1.1 - supports-color: 8.1.1 - workerpool: 6.5.1 - yargs: 16.2.2 - yargs-parser: 20.2.9 - yargs-unparser: 2.0.0 - ms@2.1.3: {} + nanoid@3.3.20: {} + natural-compare@1.4.0: {} - normalize-path@3.0.0: {} - - once@1.4.0: - dependencies: - wrappy: 1.0.2 + obug@2.2.1: {} optionator@0.9.4: dependencies: @@ -1461,31 +1688,25 @@ snapshots: path-exists@4.0.0: {} - path-is-absolute@1.0.1: {} - path-key@3.1.1: {} path-parse@1.0.7: {} - picomatch@2.3.2: {} - - picomatch@4.0.7: {} - - prelude-ls@1.2.1: {} + pathe@2.0.3: {} - punycode@2.3.1: {} + picocolors@1.1.1: {} - queue-microtask@1.2.3: {} + picomatch@4.0.7: {} - randombytes@2.1.0: + postcss@8.5.32: dependencies: - safe-buffer: 5.2.1 + nanoid: 3.3.20 + picocolors: 1.1.1 + source-map-js: 1.2.2 - readdirp@3.6.0: - dependencies: - picomatch: 2.3.2 + prelude-ls@1.2.1: {} - require-directory@2.1.1: {} + punycode@2.3.1: {} resolve-from@4.0.0: {} @@ -1496,11 +1717,26 @@ snapshots: path-parse: 1.0.7 supports-preserve-symlinks-flag: 1.0.0 - reusify@1.1.0: {} - - rimraf@3.0.2: + rolldown@1.2.16: dependencies: - glob: 7.2.3 + '@oxc-project/types': 0.156.0 + '@rolldown/pluginutils': 1.0.1 + optionalDependencies: + '@rolldown/binding-android-arm-eabi': 1.2.16 + '@rolldown/binding-android-arm64': 1.2.16 + '@rolldown/binding-darwin-arm64': 1.2.16 + '@rolldown/binding-darwin-x64': 1.2.16 + '@rolldown/binding-freebsd-x64': 1.2.16 + '@rolldown/binding-linux-arm-gnueabihf': 1.2.16 + '@rolldown/binding-linux-arm64-gnu': 1.2.16 + '@rolldown/binding-linux-arm64-musl': 1.2.16 + '@rolldown/binding-linux-ppc64-gnu': 1.2.16 + '@rolldown/binding-linux-s390x-gnu': 1.2.16 + '@rolldown/binding-linux-x64-gnu': 1.2.16 + '@rolldown/binding-linux-x64-musl': 1.2.16 + '@rolldown/binding-openharmony-arm64': 1.2.16 + '@rolldown/binding-win32-arm64-msvc': 1.2.16 + '@rolldown/binding-win32-x64-msvc': 1.2.16 rollup@4.67.4: dependencies: @@ -1535,16 +1771,6 @@ snapshots: '@rollup/rollup-win32-x64-msvc': 4.67.4 fsevents: 2.3.3 - run-parallel@1.2.0: - dependencies: - queue-microtask: 1.2.3 - - safe-buffer@5.2.1: {} - - serialize-javascript@6.0.2: - dependencies: - randombytes: 2.1.0 - serialize-javascript@7.1.4: {} shebang-command@2.0.0: @@ -1553,8 +1779,12 @@ snapshots: shebang-regex@3.0.0: {} + siginfo@2.0.0: {} + smob@1.6.2: {} + source-map-js@1.2.2: {} + source-map-support@0.5.21: dependencies: buffer-from: 1.1.2 @@ -1562,15 +1792,9 @@ snapshots: source-map@0.6.1: {} - string-width@4.2.3: - dependencies: - emoji-regex: 8.0.0 - is-fullwidth-code-point: 3.0.0 - strip-ansi: 6.0.1 + stackback@0.0.2: {} - strip-ansi@6.0.1: - dependencies: - ansi-regex: 5.0.1 + std-env@4.3.0: {} strip-json-comments@3.1.1: {} @@ -1578,10 +1802,6 @@ snapshots: dependencies: has-flag: 4.0.0 - supports-color@8.1.1: - dependencies: - has-flag: 4.0.0 - supports-preserve-symlinks-flag@1.0.0: {} terser@5.51.2: @@ -1591,57 +1811,70 @@ snapshots: commander: 2.20.3 source-map-support: 0.5.21 - text-table@0.2.0: {} + tinybench@2.9.0: {} + + tinyexec@1.3.1: {} - to-regex-range@5.0.1: + tinyglobby@0.2.17: dependencies: - is-number: 7.0.0 + fdir: 6.5.0(picomatch@4.0.7) + picomatch: 4.0.7 + + tinyrainbow@3.2.0: {} type-check@0.4.0: dependencies: prelude-ls: 1.2.1 - type-fest@0.20.2: {} - uri-js@4.4.1: dependencies: punycode: 2.3.1 - which@2.0.2: + vite@8.3.5(terser@5.51.2): dependencies: - isexe: 2.0.0 - - word-wrap@1.2.5: {} + lightningcss: 1.33.0 + picomatch: 4.0.7 + postcss: 8.5.32 + rolldown: 1.2.16 + tinyglobby: 0.2.17 + optionalDependencies: + fsevents: 2.3.3 + terser: 5.51.2 - workerpool@6.5.1: {} + vitest@4.1.12(vite@8.3.5(terser@5.51.2)): + dependencies: + '@vitest/expect': 4.1.12 + '@vitest/mocker': 4.1.12(vite@8.3.5(terser@5.51.2)) + '@vitest/pretty-format': 4.1.12 + '@vitest/runner': 4.1.12 + '@vitest/snapshot': 4.1.12 + '@vitest/spy': 4.1.12 + '@vitest/utils': 4.1.12 + es-module-lexer: 2.3.2 + expect-type: 1.4.0 + magic-string: 0.30.21 + obug: 2.2.1 + pathe: 2.0.3 + picomatch: 4.0.7 + std-env: 4.3.0 + tinybench: 2.9.0 + tinyexec: 1.3.1 + tinyglobby: 0.2.17 + tinyrainbow: 3.2.0 + vite: 8.3.5(terser@5.51.2) + why-is-node-running: 2.3.0 + transitivePeerDependencies: + - msw - wrap-ansi@7.0.0: + which@2.0.2: dependencies: - ansi-styles: 4.3.0 - string-width: 4.2.3 - strip-ansi: 6.0.1 - - wrappy@1.0.2: {} - - y18n@5.0.8: {} - - yargs-parser@20.2.9: {} + isexe: 2.0.0 - yargs-unparser@2.0.0: + why-is-node-running@2.3.0: dependencies: - camelcase: 6.3.0 - decamelize: 4.0.0 - flat: 5.0.2 - is-plain-obj: 2.1.0 + siginfo: 2.0.0 + stackback: 0.0.2 - yargs@16.2.2: - dependencies: - cliui: 7.0.4 - escalade: 3.2.0 - get-caller-file: 2.0.5 - require-directory: 2.1.1 - string-width: 4.2.3 - y18n: 5.0.8 - yargs-parser: 20.2.9 + word-wrap@1.2.5: {} yocto-queue@0.1.0: {} diff --git a/test/.eslintrc.json b/test/.eslintrc.json deleted file mode 100644 index 39d0931..0000000 --- a/test/.eslintrc.json +++ /dev/null @@ -1,11 +0,0 @@ -{ - "extends": "eslint:recommended", - "parserOptions": { - "sourceType": "module", - "ecmaVersion": 8 - }, - "env": { - "es6": true, - "mocha": true - } -} diff --git a/test/defaultLocale-test.js b/test/defaultLocale-test.js index 0c8f537..23a12c8 100644 --- a/test/defaultLocale-test.js +++ b/test/defaultLocale-test.js @@ -1,3 +1,4 @@ +import {test} from "vitest"; import assert from "assert"; import {readFileSync} from "fs"; import {timeFormat, timeFormatDefaultLocale, timeParse, utcFormat, utcParse} from "../src/index.js"; @@ -5,23 +6,23 @@ import {timeFormat, timeFormatDefaultLocale, timeParse, utcFormat, utcParse} fro const enUs = JSON.parse(readFileSync("./locale/en-US.json")); const frFr = JSON.parse(readFileSync("./locale/fr-FR.json")); -it("timeFormat(specifier) defaults to en-US", () => { +test("timeFormat(specifier) defaults to en-US", () => { assert.strictEqual(timeFormat("%c")(new Date(2000, 0, 1)), "1/1/2000, 12:00:00 AM"); }); -it("timeParse(specifier) defaults to en-US", () => { +test("timeParse(specifier) defaults to en-US", () => { assert.strictEqual(+timeParse("%c")("1/1/2000, 12:00:00 AM"), +new Date(2000, 0, 1)); }); -it("utcFormat(specifier) defaults to en-US", () => { +test("utcFormat(specifier) defaults to en-US", () => { assert.strictEqual(utcFormat("%c")(new Date(Date.UTC(2000, 0, 1))), "1/1/2000, 12:00:00 AM"); }); -it("utcParse(specifier) defaults to en-US", () => { +test("utcParse(specifier) defaults to en-US", () => { assert.strictEqual(+utcParse("%c")("1/1/2000, 12:00:00 AM"), +new Date(Date.UTC(2000, 0, 1))); }); -it("timeFormatDefaultLocale(definition) returns the new default locale", () => { +test("timeFormatDefaultLocale(definition) returns the new default locale", () => { const locale = timeFormatDefaultLocale(frFr); try { assert.strictEqual(locale.format("%c")(new Date(2000, 0, 1)), "samedi 1 janvier 2000 à 00:00:00"); @@ -30,7 +31,7 @@ it("timeFormatDefaultLocale(definition) returns the new default locale", () => { } }); -it("timeFormatDefaultLocale(definition) affects timeFormat", () => { +test("timeFormatDefaultLocale(definition) affects timeFormat", () => { const locale = timeFormatDefaultLocale(frFr); try { assert.strictEqual(timeFormat, locale.format); @@ -40,7 +41,7 @@ it("timeFormatDefaultLocale(definition) affects timeFormat", () => { } }); -it("timeFormatDefaultLocale(definition) affects timeParse", () => { +test("timeFormatDefaultLocale(definition) affects timeParse", () => { const locale = timeFormatDefaultLocale(frFr); try { assert.strictEqual(timeParse, locale.parse); @@ -50,7 +51,7 @@ it("timeFormatDefaultLocale(definition) affects timeParse", () => { } }); -it("timeFormatDefaultLocale(definition) affects utcFormat", () => { +test("timeFormatDefaultLocale(definition) affects utcFormat", () => { const locale = timeFormatDefaultLocale(frFr); try { assert.strictEqual(utcFormat, locale.utcFormat); @@ -60,7 +61,7 @@ it("timeFormatDefaultLocale(definition) affects utcFormat", () => { } }); -it("timeFormatDefaultLocale(definition) affects utcParse", () => { +test("timeFormatDefaultLocale(definition) affects utcParse", () => { const locale = timeFormatDefaultLocale(frFr); try { assert.strictEqual(utcParse, locale.utcParse); diff --git a/test/format-test.js b/test/format-test.js index bbe7454..354a9c6 100644 --- a/test/format-test.js +++ b/test/format-test.js @@ -1,3 +1,4 @@ +import {test} from "vitest"; import assert from "assert"; import {timeSecond, timeMinute, timeHour, timeDay, timeMonth, timeWeek, timeYear} from "d3-time"; import {timeFormat} from "../src/index.js"; @@ -22,7 +23,7 @@ function multi(d) { : formatYear)(d); } -it("timeFormat(date) coerces the specified date to a Date", () => { +test("timeFormat(date) coerces the specified date to a Date", () => { const f = timeFormat("%c"); assert.strictEqual(f(+local(1990, 0, 1)), "1/1/1990, 12:00:00 AM"); assert.strictEqual(f(+local(1990, 0, 2)), "1/2/1990, 12:00:00 AM"); @@ -33,7 +34,7 @@ it("timeFormat(date) coerces the specified date to a Date", () => { assert.strictEqual(f(+local(1990, 0, 7)), "1/7/1990, 12:00:00 AM"); }); -it("timeFormat(\"%a\")(date) formats abbreviated weekdays", () => { +test("timeFormat(\"%a\")(date) formats abbreviated weekdays", () => { const f = timeFormat("%a"); assert.strictEqual(f(local(1990, 0, 1)), "Mon"); assert.strictEqual(f(local(1990, 0, 2)), "Tue"); @@ -44,7 +45,7 @@ it("timeFormat(\"%a\")(date) formats abbreviated weekdays", () => { assert.strictEqual(f(local(1990, 0, 7)), "Sun"); }); -it("timeFormat(\"%A\")(date) formats weekdays", () => { +test("timeFormat(\"%A\")(date) formats weekdays", () => { const f = timeFormat("%A"); assert.strictEqual(f(local(1990, 0, 1)), "Monday"); assert.strictEqual(f(local(1990, 0, 2)), "Tuesday"); @@ -55,7 +56,7 @@ it("timeFormat(\"%A\")(date) formats weekdays", () => { assert.strictEqual(f(local(1990, 0, 7)), "Sunday"); }); -it("timeFormat(\"%b\")(date) formats abbreviated months", () => { +test("timeFormat(\"%b\")(date) formats abbreviated months", () => { const f = timeFormat("%b"); assert.strictEqual(f(local(1990, 0, 1)), "Jan"); assert.strictEqual(f(local(1990, 1, 1)), "Feb"); @@ -71,7 +72,7 @@ it("timeFormat(\"%b\")(date) formats abbreviated months", () => { assert.strictEqual(f(local(1990, 11, 1)), "Dec"); }); -it("timeFormat(\"%B\")(date) formats months", () => { +test("timeFormat(\"%B\")(date) formats months", () => { const f = timeFormat("%B"); assert.strictEqual(f(local(1990, 0, 1)), "January"); assert.strictEqual(f(local(1990, 1, 1)), "February"); @@ -87,48 +88,48 @@ it("timeFormat(\"%B\")(date) formats months", () => { assert.strictEqual(f(local(1990, 11, 1)), "December"); }); -it("timeFormat(\"%c\")(date) formats localized dates and times", () => { +test("timeFormat(\"%c\")(date) formats localized dates and times", () => { const f = timeFormat("%c"); assert.strictEqual(f(local(1990, 0, 1)), "1/1/1990, 12:00:00 AM"); }); -it("timeFormat(\"%d\")(date) formats zero-padded dates", () => { +test("timeFormat(\"%d\")(date) formats zero-padded dates", () => { const f = timeFormat("%d"); assert.strictEqual(f(local(1990, 0, 1)), "01"); }); -it("timeFormat(\"%e\")(date) formats space-padded dates", () => { +test("timeFormat(\"%e\")(date) formats space-padded dates", () => { const f = timeFormat("%e"); assert.strictEqual(f(local(1990, 0, 1)), " 1"); }); -it("timeFormat(\"%g\")(date) formats zero-padded two-digit ISO 8601 years", () => { +test("timeFormat(\"%g\")(date) formats zero-padded two-digit ISO 8601 years", () => { const f = timeFormat("%g"); assert.strictEqual(f(local(2018, 11, 30, 0)), "18"); // Sunday assert.strictEqual(f(local(2018, 11, 31, 0)), "19"); // Monday assert.strictEqual(f(local(2019, 0, 1, 0)), "19"); }); -it("timeFormat(\"%G\")(date) formats zero-padded four-digit ISO 8601 years", () => { +test("timeFormat(\"%G\")(date) formats zero-padded four-digit ISO 8601 years", () => { const f = timeFormat("%G"); assert.strictEqual(f(local(2018, 11, 30, 0)), "2018"); // Sunday assert.strictEqual(f(local(2018, 11, 31, 0)), "2019"); // Monday assert.strictEqual(f(local(2019, 0, 1, 0)), "2019"); }); -it("timeFormat(\"%H\")(date) formats zero-padded hours (24)", () => { +test("timeFormat(\"%H\")(date) formats zero-padded hours (24)", () => { const f = timeFormat("%H"); assert.strictEqual(f(local(1990, 0, 1, 0)), "00"); assert.strictEqual(f(local(1990, 0, 1, 13)), "13"); }); -it("timeFormat(\"%I\")(date) formats zero-padded hours (12)", () => { +test("timeFormat(\"%I\")(date) formats zero-padded hours (12)", () => { const f = timeFormat("%I"); assert.strictEqual(f(local(1990, 0, 1, 0)), "12"); assert.strictEqual(f(local(1990, 0, 1, 13)), "01"); }); -it("timeFormat(\"%j\")(date) formats zero-padded day of year numbers", () => { +test("timeFormat(\"%j\")(date) formats zero-padded day of year numbers", () => { const f = timeFormat("%j"); assert.strictEqual(f(local(1990, 0, 1)), "001"); assert.strictEqual(f(local(1990, 5, 1)), "152"); @@ -140,25 +141,25 @@ it("timeFormat(\"%j\")(date) formats zero-padded day of year numbers", () => { assert.strictEqual(f(local(2010, 10, 8)), "312"); }); -it("timeFormat(\"%m\")(date) formats zero-padded months", () => { +test("timeFormat(\"%m\")(date) formats zero-padded months", () => { const f = timeFormat("%m"); assert.strictEqual(f(local(1990, 0, 1)), "01"); assert.strictEqual(f(local(1990, 9, 1)), "10"); }); -it("timeFormat(\"%M\")(date) formats zero-padded minutes", () => { +test("timeFormat(\"%M\")(date) formats zero-padded minutes", () => { const f = timeFormat("%M"); assert.strictEqual(f(local(1990, 0, 1, 0, 0)), "00"); assert.strictEqual(f(local(1990, 0, 1, 0, 32)), "32"); }); -it("timeFormat(\"%p\")(date) formats AM or PM", () => { +test("timeFormat(\"%p\")(date) formats AM or PM", () => { const f = timeFormat("%p"); assert.strictEqual(f(local(1990, 0, 1, 0)), "AM"); assert.strictEqual(f(local(1990, 0, 1, 13)), "PM"); }); -it("timeFormat(\"%q\")(date) formats quarters", () => { +test("timeFormat(\"%q\")(date) formats quarters", () => { const f = timeFormat("%q"); assert.strictEqual(f(local(1990, 0, 1)), "1"); assert.strictEqual(f(local(1990, 3, 1)), "2"); @@ -166,7 +167,7 @@ it("timeFormat(\"%q\")(date) formats quarters", () => { assert.strictEqual(f(local(1990, 9, 1)), "4"); }); -it("timeFormat(\"%S\")(date) formats zero-padded seconds", () => { +test("timeFormat(\"%S\")(date) formats zero-padded seconds", () => { const f = timeFormat("%S"); assert.strictEqual(f(local(1990, 0, 1, 0, 0, 0)), "00"); assert.strictEqual(f(local(1990, 0, 1, 0, 0, 32)), "32"); @@ -175,40 +176,40 @@ it("timeFormat(\"%S\")(date) formats zero-padded seconds", () => { assert.strictEqual(f2(local(1990, 0, 1, 0, 0, 32)), "32"); }); -it("timeFormat(\"%_S\")(date) formats space-padded seconds", () => { +test("timeFormat(\"%_S\")(date) formats space-padded seconds", () => { const f = timeFormat("%_S"); assert.strictEqual(f(local(1990, 0, 1, 0, 0, 0)), " 0"); assert.strictEqual(f(local(1990, 0, 1, 0, 0, 3)), " 3"); assert.strictEqual(f(local(1990, 0, 1, 0, 0, 32)), "32"); }); -it("timeFormat(\"-S\")(date) formats no-padded seconds", () => { +test("timeFormat(\"-S\")(date) formats no-padded seconds", () => { const f = timeFormat("%-S"); assert.strictEqual(f(local(1990, 0, 1, 0, 0, 0)), "0"); assert.strictEqual(f(local(1990, 0, 1, 0, 0, 3)), "3"); assert.strictEqual(f(local(1990, 0, 1, 0, 0, 32)), "32"); }); -it("timeFormat(\"%L\")(date) formats zero-padded milliseconds", () => { +test("timeFormat(\"%L\")(date) formats zero-padded milliseconds", () => { const f = timeFormat("%L"); assert.strictEqual(f(local(1990, 0, 1, 0, 0, 0, 0)), "000"); assert.strictEqual(f(local(1990, 0, 1, 0, 0, 0, 432)), "432"); }); -it("timeFormat(\"%u\")(date) formats week day numbers", () => { +test("timeFormat(\"%u\")(date) formats week day numbers", () => { const f = timeFormat("%u"); assert.strictEqual(f(local(1990, 0, 1, 0)), "1"); assert.strictEqual(f(local(1990, 0, 7, 0)), "7"); assert.strictEqual(f(local(2010, 2, 13, 23)), "6"); }); -it("timeFormat(\"%f\")(date) formats zero-padded microseconds", () => { +test("timeFormat(\"%f\")(date) formats zero-padded microseconds", () => { const f = timeFormat("%f"); assert.strictEqual(f(local(1990, 0, 1, 0, 0, 0, 0)), "000000"); assert.strictEqual(f(local(1990, 0, 1, 0, 0, 0, 432)), "432000"); }); -it("timeFormat(\"%U\")(date) formats zero-padded week numbers", () => { +test("timeFormat(\"%U\")(date) formats zero-padded week numbers", () => { const f = timeFormat("%U"); assert.strictEqual(f(local(1990, 0, 1, 0)), "00"); assert.strictEqual(f(local(1990, 5, 1, 0)), "21"); @@ -221,7 +222,7 @@ it("timeFormat(\"%U\")(date) formats zero-padded week numbers", () => { assert.strictEqual(f(local(2012, 0, 1, 0)), "01"); // Sunday! }); -it("timeFormat(\"%W\")(date) formats zero-padded week numbers", () => { +test("timeFormat(\"%W\")(date) formats zero-padded week numbers", () => { const f = timeFormat("%W"); assert.strictEqual(f(local(1990, 0, 1, 0)), "01"); // Monday! assert.strictEqual(f(local(1990, 5, 1, 0)), "22"); @@ -229,7 +230,7 @@ it("timeFormat(\"%W\")(date) formats zero-padded week numbers", () => { assert.strictEqual(f(local(2010, 10, 8, 0)), "45"); }); -it("timeFormat(\"%V\")(date) formats zero-padded ISO 8601 week numbers", () => { +test("timeFormat(\"%V\")(date) formats zero-padded ISO 8601 week numbers", () => { const f = timeFormat("%V"); assert.strictEqual(f(local(1990, 0, 1, 0)), "01"); assert.strictEqual(f(local(1990, 5, 1, 0)), "22"); @@ -243,26 +244,26 @@ it("timeFormat(\"%V\")(date) formats zero-padded ISO 8601 week numbers", () => { assert.strictEqual(f(local(2016, 0, 1, 0)), "53"); }); -it("timeFormat(\"%x\")(date) formats localized dates", () => { +test("timeFormat(\"%x\")(date) formats localized dates", () => { const f = timeFormat("%x"); assert.strictEqual(f(local(1990, 0, 1)), "1/1/1990"); assert.strictEqual(f(local(2010, 5, 1)), "6/1/2010"); }); -it("timeFormat(\"%X\")(date) formats localized times", () => { +test("timeFormat(\"%X\")(date) formats localized times", () => { const f = timeFormat("%X"); assert.strictEqual(f(local(1990, 0, 1, 0, 0, 0)), "12:00:00 AM"); assert.strictEqual(f(local(1990, 0, 1, 13, 34, 59)), "1:34:59 PM"); }); -it("timeFormat(\"%y\")(date) formats zero-padded two-digit years", () => { +test("timeFormat(\"%y\")(date) formats zero-padded two-digit years", () => { const f = timeFormat("%y"); assert.strictEqual(f(local(+1990, 0, 1)), "90"); assert.strictEqual(f(local(+2002, 0, 1)), "02"); assert.strictEqual(f(local(-2, 0, 1)), "-02"); }); -it("timeFormat(\"%Y\")(date) formats zero-padded four-digit years", () => { +test("timeFormat(\"%Y\")(date) formats zero-padded four-digit years", () => { const f = timeFormat("%Y"); assert.strictEqual(f(local( 123, 0, 1)), "0123"); assert.strictEqual(f(local( 1990, 0, 1)), "1990"); @@ -271,17 +272,17 @@ it("timeFormat(\"%Y\")(date) formats zero-padded four-digit years", () => { assert.strictEqual(f(local( -2, 0, 1)), "-0002"); }); -it("timeFormat(\"%Z\")(date) formats time zones", () => { +test("timeFormat(\"%Z\")(date) formats time zones", () => { const f = timeFormat("%Z"); assert.strictEqual(f(local(1990, 0, 1)), "-0800"); }); -it("timeFormat(\"%%\")(date) formats literal percent signs", () => { +test("timeFormat(\"%%\")(date) formats literal percent signs", () => { const f = timeFormat("%%"); assert.strictEqual(f(local(1990, 0, 1)), "%"); }); -it("timeFormat(…) can be used to create a conditional multi-format", () => { +test("timeFormat(…) can be used to create a conditional multi-format", () => { assert.strictEqual(multi(local(1990, 0, 1, 0, 0, 0, 12)), ".012"); assert.strictEqual(multi(local(1990, 0, 1, 0, 0, 1, 0)), ":01"); assert.strictEqual(multi(local(1990, 0, 1, 0, 1, 0, 0)), "12:01"); diff --git a/test/isoFormat-test.js b/test/isoFormat-test.js index 4f0cf75..a44a1a9 100644 --- a/test/isoFormat-test.js +++ b/test/isoFormat-test.js @@ -1,8 +1,9 @@ +import {test} from "vitest"; import assert from "assert"; import {isoFormat} from "../src/index.js"; import {utc} from "./date.js"; -it("isoFormat(date) returns an ISO 8601 UTC string", () => { +test("isoFormat(date) returns an ISO 8601 UTC string", () => { assert.strictEqual(isoFormat(utc(1990, 0, 1, 0, 0, 0)), "1990-01-01T00:00:00.000Z"); assert.strictEqual(isoFormat(utc(2011, 11, 31, 23, 59, 59)), "2011-12-31T23:59:59.000Z"); }); diff --git a/test/isoParse-test.js b/test/isoParse-test.js index d4e333d..327869f 100644 --- a/test/isoParse-test.js +++ b/test/isoParse-test.js @@ -1,8 +1,9 @@ +import {test} from "vitest"; import assert from "assert"; import {isoParse} from "../src/index.js"; import {utc} from "./date.js"; -it("isoParse as ISO 8601", () => { +test("isoParse as ISO 8601", () => { assert.deepStrictEqual(isoParse("1990-01-01T00:00:00.000Z"), utc(1990, 0, 1, 0, 0, 0)); assert.deepStrictEqual(isoParse("2011-12-31T23:59:59.000Z"), utc(2011, 11, 31, 23, 59, 59)); assert.strictEqual(isoParse("1990-01-01T00:00:00.000X"), null); diff --git a/test/locale-test.js b/test/locale-test.js index f28ac01..e2e843a 100644 --- a/test/locale-test.js +++ b/test/locale-test.js @@ -1,9 +1,10 @@ +import {test} from "vitest"; import assert from "assert"; import {readdirSync, readFileSync} from "fs"; import {join} from "path"; import {timeFormatLocale} from "../src/index.js"; -it("locale data is valid", () => { +test("locale data is valid", () => { for (const localePath of readdirSync("locale")) { if (!/\.json$/i.test(localePath)) continue; const locale = JSON.parse(readFileSync(join("locale", localePath), "utf8")); diff --git a/test/parse-test.js b/test/parse-test.js index 105bb88..ac68cb9 100644 --- a/test/parse-test.js +++ b/test/parse-test.js @@ -1,3 +1,4 @@ +import {test} from "vitest"; import assert from "assert"; import {readFileSync} from "fs"; import {timeFormatLocale, timeParse} from "../src/index.js"; @@ -5,7 +6,7 @@ import {local} from "./date.js"; const fiFi = JSON.parse(readFileSync("./locale/fi-FI.json")); -it("parse(string) coerces the specified string to a string", () => { +test("parse(string) coerces the specified string to a string", () => { const p = timeParse("%c"); assert.deepStrictEqual(p({toString: function() { return "1/1/1990, 12:00:00 AM"; }}), local(1990, 0, 1)); assert.deepStrictEqual(p({toString: function() { return "1/2/1990, 12:00:00 AM"; }}), local(1990, 0, 2)); @@ -16,33 +17,33 @@ it("parse(string) coerces the specified string to a string", () => { assert.deepStrictEqual(p({toString: function() { return "1/7/1990, 12:00:00 AM"; }}), local(1990, 0, 7)); }); -it("timeParse(specifier) coerces the specified specifier to a string", () => { +test("timeParse(specifier) coerces the specified specifier to a string", () => { const p = timeParse({toString: function() { return "%c"; }}); assert.deepStrictEqual(p("1/1/1990, 12:00:00 AM"), local(1990, 0, 1)); }); -it("timeParse(\"%a %m/%d/%Y\")(date) parses abbreviated weekday and date", () => { +test("timeParse(\"%a %m/%d/%Y\")(date) parses abbreviated weekday and date", () => { const p = timeParse("%a %m/%d/%Y"); assert.deepStrictEqual(p("Sun 01/01/1990"), local(1990, 0, 1)); assert.deepStrictEqual(p("Wed 02/03/1991"), local(1991, 1, 3)); assert.strictEqual(p("XXX 03/10/2010"), null); }); -it("timeParse(\"%A %m/%d/%Y\")(date) parses weekday and date", () => { +test("timeParse(\"%A %m/%d/%Y\")(date) parses weekday and date", () => { const p = timeParse("%A %m/%d/%Y"); assert.deepStrictEqual(p("Sunday 01/01/1990"), local(1990, 0, 1)); assert.deepStrictEqual(p("Wednesday 02/03/1991"), local(1991, 1, 3)); assert.strictEqual(p("Caturday 03/10/2010"), null); }); -it("timeParse(\"%U %Y\")(date) parses week number (Sunday) and year", () => { +test("timeParse(\"%U %Y\")(date) parses week number (Sunday) and year", () => { const p = timeParse("%U %Y"); assert.deepStrictEqual(p("00 1990"), local(1989, 11, 31)); assert.deepStrictEqual(p("05 1991"), local(1991, 1, 3)); assert.deepStrictEqual(p("01 1995"), local(1995, 0, 1)); }); -it("timeParse(\"%a %U %Y\")(date) parses abbreviated weekday, week number (Sunday) and year", () => { +test("timeParse(\"%a %U %Y\")(date) parses abbreviated weekday, week number (Sunday) and year", () => { const p = timeParse("%a %U %Y"); assert.deepStrictEqual(p("Mon 00 1990"), local(1990, 0, 1)); assert.deepStrictEqual(p("Sun 05 1991"), local(1991, 1, 3)); @@ -50,7 +51,7 @@ it("timeParse(\"%a %U %Y\")(date) parses abbreviated weekday, week number (Sunda assert.strictEqual(p("XXX 03 2010"), null); }); -it("timeParse(\"%A %U %Y\")(date) parses weekday, week number (Sunday) and year", () => { +test("timeParse(\"%A %U %Y\")(date) parses weekday, week number (Sunday) and year", () => { const p = timeParse("%A %U %Y"); assert.deepStrictEqual(p("Monday 00 1990"), local(1990, 0, 1)); assert.deepStrictEqual(p("Sunday 05 1991"), local(1991, 1, 3)); @@ -58,7 +59,7 @@ it("timeParse(\"%A %U %Y\")(date) parses weekday, week number (Sunday) and year" assert.strictEqual(p("Caturday 03 2010"), null); }); -it("timeParse(\"%w %U %Y\")(date) parses numeric weekday (Sunday), week number (Sunday) and year", () => { +test("timeParse(\"%w %U %Y\")(date) parses numeric weekday (Sunday), week number (Sunday) and year", () => { const p = timeParse("%w %U %Y"); assert.deepStrictEqual(p("1 00 1990"), local(1990, 0, 1)); assert.deepStrictEqual(p("0 05 1991"), local(1991, 1, 3)); @@ -66,7 +67,7 @@ it("timeParse(\"%w %U %Y\")(date) parses numeric weekday (Sunday), week number ( assert.strictEqual(p("X 03 2010"), null); }); -it("timeParse(\"%w %V %G\")(date) parses numeric weekday, week number (ISO) and corresponding year", () => { +test("timeParse(\"%w %V %G\")(date) parses numeric weekday, week number (ISO) and corresponding year", () => { const p = timeParse("%w %V %G"); assert.deepStrictEqual(p("1 01 1990"), local(1990, 0, 1)); assert.deepStrictEqual(p("0 05 1991"), local(1991, 1, 3)); @@ -77,7 +78,7 @@ it("timeParse(\"%w %V %G\")(date) parses numeric weekday, week number (ISO) and assert.deepStrictEqual(p("1 01 2019"), local(2018, 11, 31)); }); -it("timeParse(\"%w %V %g\")(date) parses numeric weekday, week number (ISO) and corresponding two-digits year", () => { +test("timeParse(\"%w %V %g\")(date) parses numeric weekday, week number (ISO) and corresponding two-digits year", () => { const p = timeParse("%w %V %g"); assert.deepStrictEqual(p("1 01 90"), local(1990, 0, 1)); assert.deepStrictEqual(p("0 05 91"), local(1991, 1, 3)); @@ -88,7 +89,7 @@ it("timeParse(\"%w %V %g\")(date) parses numeric weekday, week number (ISO) and assert.deepStrictEqual(p("1 01 19"), local(2018, 11, 31)); }); -it("timeParse(\"%V %g\")(date) parses week number (ISO) and corresponding two-digits year", () => { +test("timeParse(\"%V %g\")(date) parses week number (ISO) and corresponding two-digits year", () => { const p = timeParse("%V %g"); assert.deepStrictEqual(p("01 90"), local(1990, 0, 1)); assert.deepStrictEqual(p("05 91"), local(1991, 0, 28)); @@ -99,7 +100,7 @@ it("timeParse(\"%V %g\")(date) parses week number (ISO) and corresponding two-di assert.deepStrictEqual(p("01 19"), local(2018, 11, 31)); }); -it("timeParse(\"%u %U %Y\")(date) parses numeric weekday (Monday), week number (Monday) and year", () => { +test("timeParse(\"%u %U %Y\")(date) parses numeric weekday (Monday), week number (Monday) and year", () => { const p = timeParse("%u %W %Y"); assert.deepStrictEqual(p("1 00 1990"), local(1989, 11, 25)); assert.deepStrictEqual(p("1 01 1990"), local(1990, 0, 1)); @@ -109,14 +110,14 @@ it("timeParse(\"%u %U %Y\")(date) parses numeric weekday (Monday), week number ( assert.strictEqual(p("X 03 2010"), null); }); -it("timeParse(\"%W %Y\")(date) parses week number (Monday) and year", () => { +test("timeParse(\"%W %Y\")(date) parses week number (Monday) and year", () => { const p = timeParse("%W %Y"); assert.deepStrictEqual(p("01 1990"), local(1990, 0, 1)); assert.deepStrictEqual(p("04 1991"), local(1991, 0, 28)); assert.deepStrictEqual(p("00 1995"), local(1994, 11, 26)); }); -it("timeParse(\"%a %W %Y\")(date) parses abbreviated weekday, week number (Monday) and year", () => { +test("timeParse(\"%a %W %Y\")(date) parses abbreviated weekday, week number (Monday) and year", () => { const p = timeParse("%a %W %Y"); assert.deepStrictEqual(p("Mon 01 1990"), local(1990, 0, 1)); assert.deepStrictEqual(p("Sun 04 1991"), local(1991, 1, 3)); @@ -124,7 +125,7 @@ it("timeParse(\"%a %W %Y\")(date) parses abbreviated weekday, week number (Monda assert.strictEqual(p("XXX 03 2010"), null); }); -it("timeParse(\"%A %W %Y\")(date) parses weekday, week number (Monday) and year", () => { +test("timeParse(\"%A %W %Y\")(date) parses weekday, week number (Monday) and year", () => { const p = timeParse("%A %W %Y"); assert.deepStrictEqual(p("Monday 01 1990"), local(1990, 0, 1)); assert.deepStrictEqual(p("Sunday 04 1991"), local(1991, 1, 3)); @@ -132,7 +133,7 @@ it("timeParse(\"%A %W %Y\")(date) parses weekday, week number (Monday) and year" assert.strictEqual(p("Caturday 03 2010"), null); }); -it("timeParse(\"%w %W %Y\")(date) parses numeric weekday (Sunday), week number (Monday) and year", () => { +test("timeParse(\"%w %W %Y\")(date) parses numeric weekday (Sunday), week number (Monday) and year", () => { const p = timeParse("%w %W %Y"); assert.deepStrictEqual(p("1 01 1990"), local(1990, 0, 1)); assert.deepStrictEqual(p("0 04 1991"), local(1991, 1, 3)); @@ -140,7 +141,7 @@ it("timeParse(\"%w %W %Y\")(date) parses numeric weekday (Sunday), week number ( assert.strictEqual(p("X 03 2010"), null); }); -it("timeParse(\"%u %W %Y\")(date) parses numeric weekday (Monday), week number (Monday) and year", () => { +test("timeParse(\"%u %W %Y\")(date) parses numeric weekday (Monday), week number (Monday) and year", () => { const p = timeParse("%u %W %Y"); assert.deepStrictEqual(p("1 01 1990"), local(1990, 0, 1)); assert.deepStrictEqual(p("7 04 1991"), local(1991, 1, 3)); @@ -148,7 +149,7 @@ it("timeParse(\"%u %W %Y\")(date) parses numeric weekday (Monday), week number ( assert.strictEqual(p("X 03 2010"), null); }); -it("timeParse(\"%m/%d/%y\")(date) parses month, date and two-digit year", () => { +test("timeParse(\"%m/%d/%y\")(date) parses month, date and two-digit year", () => { const p = timeParse("%m/%d/%y"); assert.deepStrictEqual(p("02/03/69"), local(1969, 1, 3)); assert.deepStrictEqual(p("01/01/90"), local(1990, 0, 1)); @@ -157,40 +158,40 @@ it("timeParse(\"%m/%d/%y\")(date) parses month, date and two-digit year", () => assert.strictEqual(p("03/10/2010"), null); }); -it("timeParse(\"%x\")(date) parses locale date", () => { +test("timeParse(\"%x\")(date) parses locale date", () => { const p = timeParse("%x"); assert.deepStrictEqual(p("1/1/1990"), local(1990, 0, 1)); assert.deepStrictEqual(p("2/3/1991"), local(1991, 1, 3)); assert.deepStrictEqual(p("3/10/2010"), local(2010, 2, 10)); }); -it("timeParse(\"%b %d, %Y\")(date) parses abbreviated month, date and year", () => { +test("timeParse(\"%b %d, %Y\")(date) parses abbreviated month, date and year", () => { const p = timeParse("%b %d, %Y"); assert.deepStrictEqual(p("jan 01, 1990"), local(1990, 0, 1)); assert.deepStrictEqual(p("feb 2, 2010"), local(2010, 1, 2)); assert.strictEqual(p("jan. 1, 1990"), null); }); -it("timeParse(\"%B %d, %Y\")(date) parses month, date and year", () => { +test("timeParse(\"%B %d, %Y\")(date) parses month, date and year", () => { const p = timeParse("%B %d, %Y"); assert.deepStrictEqual(p("january 01, 1990"), local(1990, 0, 1)); assert.deepStrictEqual(p("February 2, 2010"), local(2010, 1, 2)); assert.strictEqual(p("jan 1, 1990"), null); }); -it("timeParse(\"%j %m/%d/%Y\")(date) parses day of year and date", () => { +test("timeParse(\"%j %m/%d/%Y\")(date) parses day of year and date", () => { const p = timeParse("%j %m/%d/%Y"); assert.deepStrictEqual(p("001 01/01/1990"), local(1990, 0, 1)); assert.deepStrictEqual(p("034 02/03/1991"), local(1991, 1, 3)); assert.strictEqual(p("2012 03/10/2010"), null); }); -it("timeParse(\"%c\")(date) parses locale date and time", () => { +test("timeParse(\"%c\")(date) parses locale date and time", () => { const p = timeParse("%c"); assert.deepStrictEqual(p("1/1/1990, 12:00:00 AM"), local(1990, 0, 1)); }); -it("timeParse(\"%H:%M:%S\")(date) parses twenty-four hour, minute and second", () => { +test("timeParse(\"%H:%M:%S\")(date) parses twenty-four hour, minute and second", () => { const p = timeParse("%H:%M:%S"); assert.deepStrictEqual(p("00:00:00"), local(1900, 0, 1, 0, 0, 0)); assert.deepStrictEqual(p("11:59:59"), local(1900, 0, 1, 11, 59, 59)); @@ -199,7 +200,7 @@ it("timeParse(\"%H:%M:%S\")(date) parses twenty-four hour, minute and second", ( assert.deepStrictEqual(p("23:59:59"), local(1900, 0, 1, 23, 59, 59)); }); -it("timeParse(\"%X\")(date) parses locale time", () => { +test("timeParse(\"%X\")(date) parses locale time", () => { const p = timeParse("%X"); assert.deepStrictEqual(p("12:00:00 AM"), local(1900, 0, 1, 0, 0, 0)); assert.deepStrictEqual(p("11:59:59 AM"), local(1900, 0, 1, 11, 59, 59)); @@ -208,17 +209,17 @@ it("timeParse(\"%X\")(date) parses locale time", () => { assert.deepStrictEqual(p("11:59:59 PM"), local(1900, 0, 1, 23, 59, 59)); }); -it("timeParse(\"%L\")(date) parses milliseconds", () => { +test("timeParse(\"%L\")(date) parses milliseconds", () => { const p = timeParse("%L"); assert.deepStrictEqual(p("432"), local(1900, 0, 1, 0, 0, 0, 432)); }); -it("timeParse(\"%f\")(date) parses microseconds", () => { +test("timeParse(\"%f\")(date) parses microseconds", () => { const p = timeParse("%f"); assert.deepStrictEqual(p("432000"), local(1900, 0, 1, 0, 0, 0, 432)); }); -it("timeParse(\"%I:%M:%S %p\")(date) parses twelve hour, minute and second", () => { +test("timeParse(\"%I:%M:%S %p\")(date) parses twelve hour, minute and second", () => { const p = timeParse("%I:%M:%S %p"); assert.deepStrictEqual(p("12:00:00 am"), local(1900, 0, 1, 0, 0, 0)); assert.deepStrictEqual(p("11:59:59 AM"), local(1900, 0, 1, 11, 59, 59)); @@ -227,7 +228,7 @@ it("timeParse(\"%I:%M:%S %p\")(date) parses twelve hour, minute and second", () assert.deepStrictEqual(p("11:59:59 PM"), local(1900, 0, 1, 23, 59, 59)); }); -it("timeParse(\"%I %p\")(date) parses period in non-English locales", () => { +test("timeParse(\"%I %p\")(date) parses period in non-English locales", () => { const p = timeFormatLocale(fiFi).parse("%I:%M:%S %p"); assert.deepStrictEqual(p("12:00:00 a.m."), local(1900, 0, 1, 0, 0, 0)); assert.deepStrictEqual(p("11:59:59 A.M."), local(1900, 0, 1, 11, 59, 59)); @@ -236,7 +237,7 @@ it("timeParse(\"%I %p\")(date) parses period in non-English locales", () => { assert.deepStrictEqual(p("11:59:59 P.M."), local(1900, 0, 1, 23, 59, 59)); }); -it("timeParse(\"%Y %q\")(date) parses quarters", () => { +test("timeParse(\"%Y %q\")(date) parses quarters", () => { const p = timeParse("%Y %q"); assert.deepStrictEqual(p("1990 1"), local(1990, 0, 1)); assert.deepStrictEqual(p("1990 2"), local(1990, 3, 1)); @@ -244,7 +245,7 @@ it("timeParse(\"%Y %q\")(date) parses quarters", () => { assert.deepStrictEqual(p("1990 4"), local(1990, 9, 1)); }); -it("timeParse(\"%Y %q %m\")(date) gives the month number priority", () => { +test("timeParse(\"%Y %q %m\")(date) gives the month number priority", () => { const p = timeParse("%Y %q %m"); assert.deepStrictEqual(p("1990 1 2"), local(1990, 1, 1)); assert.deepStrictEqual(p("1990 2 5"), local(1990, 4, 1)); @@ -252,14 +253,14 @@ it("timeParse(\"%Y %q %m\")(date) gives the month number priority", () => { assert.deepStrictEqual(p("1990 4 9"), local(1990, 8, 1)); }); -it("timeParse(\"%% %m/%d/%Y\")(date) parses literal %", () => { +test("timeParse(\"%% %m/%d/%Y\")(date) parses literal %", () => { const p = timeParse("%% %m/%d/%Y"); assert.deepStrictEqual(p("% 01/01/1990"), local(1990, 0, 1)); assert.deepStrictEqual(p("% 02/03/1991"), local(1991, 1, 3)); assert.strictEqual(p("%% 03/10/2010"), null); }); -it("timeParse(\"%m/%d/%Y %Z\")(date) parses timezone offset", () => { +test("timeParse(\"%m/%d/%Y %Z\")(date) parses timezone offset", () => { const p = timeParse("%m/%d/%Y %Z"); assert.deepStrictEqual(p("01/02/1990 +0000"), local(1990, 0, 1, 16)); assert.deepStrictEqual(p("01/02/1990 +0100"), local(1990, 0, 1, 15)); @@ -269,29 +270,29 @@ it("timeParse(\"%m/%d/%Y %Z\")(date) parses timezone offset", () => { assert.deepStrictEqual(p("01/02/1990 -0800"), local(1990, 0, 2, 0)); }); -it("timeParse(\"%m/%d/%Y %Z\")(date) parses timezone offset in the form '+-hh:mm'", () => { +test("timeParse(\"%m/%d/%Y %Z\")(date) parses timezone offset in the form '+-hh:mm'", () => { const p = timeParse("%m/%d/%Y %Z"); assert.deepStrictEqual(p("01/02/1990 +01:30"), local(1990, 0, 1, 14, 30)); assert.deepStrictEqual(p("01/02/1990 -01:30"), local(1990, 0, 1, 17, 30)); }); -it("timeParse(\"%m/%d/%Y %Z\")(date) parses timezone offset in the form '+-hh'", () => { +test("timeParse(\"%m/%d/%Y %Z\")(date) parses timezone offset in the form '+-hh'", () => { const p = timeParse("%m/%d/%Y %Z"); assert.deepStrictEqual(p("01/02/1990 +01"), local(1990, 0, 1, 15)); assert.deepStrictEqual(p("01/02/1990 -01"), local(1990, 0, 1, 17)); }); -it("timeParse(\"%m/%d/%Y %Z\")(date) parses timezone offset in the form 'Z'", () => { +test("timeParse(\"%m/%d/%Y %Z\")(date) parses timezone offset in the form 'Z'", () => { const p = timeParse("%m/%d/%Y %Z"); assert.deepStrictEqual(p("01/02/1990 Z"), local(1990, 0, 1, 16)); }); -it("timeParse(\"%-m/%0d/%_Y\")(date) ignores optional padding modifier, skipping zeroes and spaces", () => { +test("timeParse(\"%-m/%0d/%_Y\")(date) ignores optional padding modifier, skipping zeroes and spaces", () => { const p = timeParse("%-m/%0d/%_Y"); assert.deepStrictEqual(p("01/ 1/1990"), local(1990, 0, 1)); }); -it("timeParse(\"%b %d, %Y\")(date) doesn't crash when given weird strings", () => { +test("timeParse(\"%b %d, %Y\")(date) doesn't crash when given weird strings", () => { try { Object.prototype.foo = 10; const p = timeParse("%b %d, %Y"); diff --git a/test/utcFormat-test.js b/test/utcFormat-test.js index eb3e02c..77784db 100644 --- a/test/utcFormat-test.js +++ b/test/utcFormat-test.js @@ -1,3 +1,4 @@ +import {test} from "vitest"; import assert from "assert"; import {utcSecond, utcMinute, utcHour, utcDay, utcMonth, utcWeek, utcYear} from "d3-time"; import {utcFormat} from "../src/index.js"; @@ -22,7 +23,7 @@ function multi(d) { : formatYear)(d); } -it("utcFormat(\"%a\")(date) formats abbreviated weekdays", () => { +test("utcFormat(\"%a\")(date) formats abbreviated weekdays", () => { const f = utcFormat("%a"); assert.strictEqual(f(utc(1990, 0, 1)), "Mon"); assert.strictEqual(f(utc(1990, 0, 2)), "Tue"); @@ -33,7 +34,7 @@ it("utcFormat(\"%a\")(date) formats abbreviated weekdays", () => { assert.strictEqual(f(utc(1990, 0, 7)), "Sun"); }); -it("utcFormat(\"%A\")(date) formats weekdays", () => { +test("utcFormat(\"%A\")(date) formats weekdays", () => { const f = utcFormat("%A"); assert.strictEqual(f(utc(1990, 0, 1)), "Monday"); assert.strictEqual(f(utc(1990, 0, 2)), "Tuesday"); @@ -44,7 +45,7 @@ it("utcFormat(\"%A\")(date) formats weekdays", () => { assert.strictEqual(f(utc(1990, 0, 7)), "Sunday"); }); -it("utcFormat(\"%b\")(date) formats abbreviated months", () => { +test("utcFormat(\"%b\")(date) formats abbreviated months", () => { const f = utcFormat("%b"); assert.strictEqual(f(utc(1990, 0, 1)), "Jan"); assert.strictEqual(f(utc(1990, 1, 1)), "Feb"); @@ -60,7 +61,7 @@ it("utcFormat(\"%b\")(date) formats abbreviated months", () => { assert.strictEqual(f(utc(1990, 11, 1)), "Dec"); }); -it("utcFormat(\"%B\")(date) formats months", () => { +test("utcFormat(\"%B\")(date) formats months", () => { const f = utcFormat("%B"); assert.strictEqual(f(utc(1990, 0, 1)), "January"); assert.strictEqual(f(utc(1990, 1, 1)), "February"); @@ -76,48 +77,48 @@ it("utcFormat(\"%B\")(date) formats months", () => { assert.strictEqual(f(utc(1990, 11, 1)), "December"); }); -it("utcFormat(\"%c\")(date) formats localized dates and times", () => { +test("utcFormat(\"%c\")(date) formats localized dates and times", () => { const f = utcFormat("%c"); assert.strictEqual(f(utc(1990, 0, 1)), "1/1/1990, 12:00:00 AM"); }); -it("utcFormat(\"%d\")(date) formats zero-padded dates", () => { +test("utcFormat(\"%d\")(date) formats zero-padded dates", () => { const f = utcFormat("%d"); assert.strictEqual(f(utc(1990, 0, 1)), "01"); }); -it("utcFormat(\"%e\")(date) formats space-padded dates", () => { +test("utcFormat(\"%e\")(date) formats space-padded dates", () => { const f = utcFormat("%e"); assert.strictEqual(f(utc(1990, 0, 1)), " 1"); }); -it("timeFormat(\"%g\")(date) formats zero-padded two-digit ISO 8601 years", () => { +test("timeFormat(\"%g\")(date) formats zero-padded two-digit ISO 8601 years", () => { const f = utcFormat("%g"); assert.strictEqual(f(utc(2018, 11, 30, 0)), "18"); // Sunday assert.strictEqual(f(utc(2018, 11, 31, 0)), "19"); // Monday assert.strictEqual(f(utc(2019, 0, 1, 0)), "19"); }); -it("utcFormat(\"%G\")(date) formats zero-padded four-digit ISO 8601 years", () => { +test("utcFormat(\"%G\")(date) formats zero-padded four-digit ISO 8601 years", () => { const f = utcFormat("%G"); assert.strictEqual(f(utc(2018, 11, 30, 0)), "2018"); // Sunday assert.strictEqual(f(utc(2018, 11, 31, 0)), "2019"); // Monday assert.strictEqual(f(utc(2019, 0, 1, 0)), "2019"); }); -it("utcFormat(\"%H\")(date) formats zero-padded hours (24)", () => { +test("utcFormat(\"%H\")(date) formats zero-padded hours (24)", () => { const f = utcFormat("%H"); assert.strictEqual(f(utc(1990, 0, 1, 0)), "00"); assert.strictEqual(f(utc(1990, 0, 1, 13)), "13"); }); -it("utcFormat(\"%I\")(date) formats zero-padded hours (12)", () => { +test("utcFormat(\"%I\")(date) formats zero-padded hours (12)", () => { const f = utcFormat("%I"); assert.strictEqual(f(utc(1990, 0, 1, 0)), "12"); assert.strictEqual(f(utc(1990, 0, 1, 13)), "01"); }); -it("utcFormat(\"%j\")(date) formats zero-padded day of year numbers", () => { +test("utcFormat(\"%j\")(date) formats zero-padded day of year numbers", () => { const f = utcFormat("%j"); assert.strictEqual(f(utc(1990, 0, 1)), "001"); assert.strictEqual(f(utc(1990, 5, 1)), "152"); @@ -129,25 +130,25 @@ it("utcFormat(\"%j\")(date) formats zero-padded day of year numbers", () => { assert.strictEqual(f(utc(2010, 10, 8)), "312"); }); -it("utcFormat(\"%m\")(date) formats zero-padded months", () => { +test("utcFormat(\"%m\")(date) formats zero-padded months", () => { const f = utcFormat("%m"); assert.strictEqual(f(utc(1990, 0, 1)), "01"); assert.strictEqual(f(utc(1990, 9, 1)), "10"); }); -it("utcFormat(\"%M\")(date) formats zero-padded minutes", () => { +test("utcFormat(\"%M\")(date) formats zero-padded minutes", () => { const f = utcFormat("%M"); assert.strictEqual(f(utc(1990, 0, 1, 0, 0)), "00"); assert.strictEqual(f(utc(1990, 0, 1, 0, 32)), "32"); }); -it("utcFormat(\"%p\")(date) formats AM or PM", () => { +test("utcFormat(\"%p\")(date) formats AM or PM", () => { const f = utcFormat("%p"); assert.strictEqual(f(utc(1990, 0, 1, 0)), "AM"); assert.strictEqual(f(utc(1990, 0, 1, 13)), "PM"); }); -it("utcFormat(\"%q\")(date) formats quarters", () => { +test("utcFormat(\"%q\")(date) formats quarters", () => { const f = utcFormat("%q"); assert.strictEqual(f(utc(1990, 0, 1)), "1"); assert.strictEqual(f(utc(1990, 3, 1)), "2"); @@ -155,33 +156,33 @@ it("utcFormat(\"%q\")(date) formats quarters", () => { assert.strictEqual(f(utc(1990, 9, 1)), "4"); }); -it("utcFormat(\"%Q\")(date) formats UNIX timestamps", () => { +test("utcFormat(\"%Q\")(date) formats UNIX timestamps", () => { const f = utcFormat("%Q"); assert.strictEqual(f(utc(1970, 0, 1, 0, 0, 0)), "0"); assert.strictEqual(f(utc(1990, 0, 1, 0, 0, 0)), "631152000000"); assert.strictEqual(f(utc(1990, 0, 1, 12, 34, 56)), "631197296000"); }); -it("utcFormat(\"%s\")(date) formats UNIX timetamps in seconds", () => { +test("utcFormat(\"%s\")(date) formats UNIX timetamps in seconds", () => { const f = utcFormat("%s"); assert.strictEqual(f(utc(1970, 0, 1, 0, 0, 0)), "0"); assert.strictEqual(f(utc(1990, 0, 1, 0, 0, 0)), "631152000"); assert.strictEqual(f(utc(1990, 0, 1, 12, 34, 56)), "631197296"); }); -it("utcFormat(\"%s.%L\")(date) formats UNIX timetamps in seconds and milliseconds", () => { +test("utcFormat(\"%s.%L\")(date) formats UNIX timetamps in seconds and milliseconds", () => { const f = utcFormat("%s.%L"); assert.strictEqual(f(utc(1990, 0, 1, 0, 0, 0, 123)), "631152000.123"); assert.strictEqual(f(utc(1990, 0, 1, 12, 34, 56, 789)), "631197296.789"); }); -it("utcFormat(\"%s.%f\")(date) formats UNIX timetamps in seconds and microseconds", () => { +test("utcFormat(\"%s.%f\")(date) formats UNIX timetamps in seconds and microseconds", () => { const f = utcFormat("%s.%f"); assert.strictEqual(f(utc(1990, 0, 1, 0, 0, 0, 123)), "631152000.123000"); assert.strictEqual(f(utc(1990, 0, 1, 12, 34, 56, 789)), "631197296.789000"); }); -it("utcFormat(\"%S\")(date) formats zero-padded seconds", () => { +test("utcFormat(\"%S\")(date) formats zero-padded seconds", () => { const f = utcFormat("%S"); assert.strictEqual(f(utc(1990, 0, 1, 0, 0, 0)), "00"); assert.strictEqual(f(utc(1990, 0, 1, 0, 0, 32)), "32"); @@ -190,40 +191,40 @@ it("utcFormat(\"%S\")(date) formats zero-padded seconds", () => { assert.strictEqual(f2(utc(1990, 0, 1, 0, 0, 32)), "32"); }); -it("utcFormat(\"%_S\")(date) formats space-padded seconds", () => { +test("utcFormat(\"%_S\")(date) formats space-padded seconds", () => { const f = utcFormat("%_S"); assert.strictEqual(f(utc(1990, 0, 1, 0, 0, 0)), " 0"); assert.strictEqual(f(utc(1990, 0, 1, 0, 0, 3)), " 3"); assert.strictEqual(f(utc(1990, 0, 1, 0, 0, 32)), "32"); }); -it("utcFormat(\"-S\")(date) formats no-padded seconds", () => { +test("utcFormat(\"-S\")(date) formats no-padded seconds", () => { const f = utcFormat("%-S"); assert.strictEqual(f(utc(1990, 0, 1, 0, 0, 0)), "0"); assert.strictEqual(f(utc(1990, 0, 1, 0, 0, 3)), "3"); assert.strictEqual(f(utc(1990, 0, 1, 0, 0, 32)), "32"); }); -it("utcFormat(\"%L\")(date) formats zero-padded milliseconds", () => { +test("utcFormat(\"%L\")(date) formats zero-padded milliseconds", () => { const f = utcFormat("%L"); assert.strictEqual(f(utc(1990, 0, 1, 0, 0, 0, 0)), "000"); assert.strictEqual(f(utc(1990, 0, 1, 0, 0, 0, 432)), "432"); }); -it("utcFormat(\"%u\")(date) formats week day numbers", () => { +test("utcFormat(\"%u\")(date) formats week day numbers", () => { const f = utcFormat("%u"); assert.strictEqual(f(utc(1990, 0, 1, 0)), "1"); assert.strictEqual(f(utc(1990, 0, 7, 0)), "7"); assert.strictEqual(f(utc(2010, 2, 13, 23)), "6"); }); -it("utcFormat(\"%f\")(date) formats zero-padded microseconds", () => { +test("utcFormat(\"%f\")(date) formats zero-padded microseconds", () => { const f = utcFormat("%f"); assert.strictEqual(f(utc(1990, 0, 1, 0, 0, 0, 0)), "000000"); assert.strictEqual(f(utc(1990, 0, 1, 0, 0, 0, 432)), "432000"); }); -it("utcFormat(\"%U\")(date) formats zero-padded week numbers", () => { +test("utcFormat(\"%U\")(date) formats zero-padded week numbers", () => { const f = utcFormat("%U"); assert.strictEqual(f(utc(1990, 0, 1, 0)), "00"); assert.strictEqual(f(utc(1990, 5, 1, 0)), "21"); @@ -236,7 +237,7 @@ it("utcFormat(\"%U\")(date) formats zero-padded week numbers", () => { assert.strictEqual(f(utc(2012, 0, 1, 0)), "01"); // Sunday! }); -it("utcFormat(\"%W\")(date) formats zero-padded week numbers", () => { +test("utcFormat(\"%W\")(date) formats zero-padded week numbers", () => { const f = utcFormat("%W"); assert.strictEqual(f(utc(1990, 0, 1, 0)), "01"); // Monday! assert.strictEqual(f(utc(1990, 5, 1, 0)), "22"); @@ -244,7 +245,7 @@ it("utcFormat(\"%W\")(date) formats zero-padded week numbers", () => { assert.strictEqual(f(utc(2010, 10, 8, 0)), "45"); }); -it("utcFormat(\"%V\")(date) formats zero-padded ISO 8601 week numbers", () => { +test("utcFormat(\"%V\")(date) formats zero-padded ISO 8601 week numbers", () => { const f = utcFormat("%V"); assert.strictEqual(f(utc(1990, 0, 1, 0)), "01"); assert.strictEqual(f(utc(1990, 5, 1, 0)), "22"); @@ -258,26 +259,26 @@ it("utcFormat(\"%V\")(date) formats zero-padded ISO 8601 week numbers", () => { assert.strictEqual(f(utc(2016, 0, 1, 0)), "53"); }); -it("utcFormat(\"%x\")(date) formats localized dates", () => { +test("utcFormat(\"%x\")(date) formats localized dates", () => { const f = utcFormat("%x"); assert.strictEqual(f(utc(1990, 0, 1)), "1/1/1990"); assert.strictEqual(f(utc(2010, 5, 1)), "6/1/2010"); }); -it("utcFormat(\"%X\")(date) formats localized times", () => { +test("utcFormat(\"%X\")(date) formats localized times", () => { const f = utcFormat("%X"); assert.strictEqual(f(utc(1990, 0, 1, 0, 0, 0)), "12:00:00 AM"); assert.strictEqual(f(utc(1990, 0, 1, 13, 34, 59)), "1:34:59 PM"); }); -it("utcFormat(\"%y\")(date) formats zero-padded two-digit years", () => { +test("utcFormat(\"%y\")(date) formats zero-padded two-digit years", () => { const f = utcFormat("%y"); assert.strictEqual(f(utc(+1990, 0, 1)), "90"); assert.strictEqual(f(utc(+2002, 0, 1)), "02"); assert.strictEqual(f(utc(-2, 0, 1)), "-02"); }); -it("utcFormat(\"%Y\")(date) formats zero-padded four-digit years", () => { +test("utcFormat(\"%Y\")(date) formats zero-padded four-digit years", () => { const f = utcFormat("%Y"); assert.strictEqual(f(utc( 123, 0, 1)), "0123"); assert.strictEqual(f(utc( 1990, 0, 1)), "1990"); @@ -286,17 +287,17 @@ it("utcFormat(\"%Y\")(date) formats zero-padded four-digit years", () => { assert.strictEqual(f(utc( -2, 0, 1)), "-0002"); }); -it("utcFormat(\"%Z\")(date) formats time zones", () => { +test("utcFormat(\"%Z\")(date) formats time zones", () => { const f = utcFormat("%Z"); assert.strictEqual(f(utc(1990, 0, 1)), "+0000"); }); -it("utcFormat(\"%%\")(date) formats literal percent signs", () => { +test("utcFormat(\"%%\")(date) formats literal percent signs", () => { const f = utcFormat("%%"); assert.strictEqual(f(utc(1990, 0, 1)), "%"); }); -it("utcFormat(…) can be used to create a conditional multi-format", () => { +test("utcFormat(…) can be used to create a conditional multi-format", () => { assert.strictEqual(multi(utc(1990, 0, 1, 0, 0, 0, 12)), ".012"); assert.strictEqual(multi(utc(1990, 0, 1, 0, 0, 1, 0)), ":01"); assert.strictEqual(multi(utc(1990, 0, 1, 0, 1, 0, 0)), "12:01"); diff --git a/test/utcParse-test.js b/test/utcParse-test.js index 482e9bd..7324745 100644 --- a/test/utcParse-test.js +++ b/test/utcParse-test.js @@ -1,60 +1,61 @@ +import {test} from "vitest"; import assert from "assert"; import {utcParse} from "../src/index.js"; import {local, utc} from "./date.js"; -it("utcParse(specifier) coerces the specified specifier to a string", () => { +test("utcParse(specifier) coerces the specified specifier to a string", () => { const p = utcParse({toString: function() { return "%c"; }}); assert.deepStrictEqual(p("1/1/1990, 12:00:00 AM"), utc(1990, 0, 1)); }); -it("utcParse(\"\")(date) parses abbreviated weekday and numeric date", () => { +test("utcParse(\"\")(date) parses abbreviated weekday and numeric date", () => { const p = utcParse("%a %m/%d/%Y"); assert.deepStrictEqual(p("Sun 01/01/1990"), utc(1990, 0, 1)); assert.deepStrictEqual(p("Wed 02/03/1991"), utc(1991, 1, 3)); assert.strictEqual(p("XXX 03/10/2010"), null); }); -it("utcParse(\"\")(date) parses weekday and numeric date", () => { +test("utcParse(\"\")(date) parses weekday and numeric date", () => { const p = utcParse("%A %m/%d/%Y"); assert.deepStrictEqual(p("Sunday 01/01/1990"), utc(1990, 0, 1)); assert.deepStrictEqual(p("Wednesday 02/03/1991"), utc(1991, 1, 3)); assert.strictEqual(p("Caturday 03/10/2010"), null); }); -it("utcParse(\"\")(date) parses numeric date", () => { +test("utcParse(\"\")(date) parses numeric date", () => { const p = utcParse("%m/%d/%y"); assert.deepStrictEqual(p("01/01/90"), utc(1990, 0, 1)); assert.deepStrictEqual(p("02/03/91"), utc(1991, 1, 3)); assert.strictEqual(p("03/10/2010"), null); }); -it("utcParse(\"\")(date) parses locale date", () => { +test("utcParse(\"\")(date) parses locale date", () => { const p = utcParse("%x"); assert.deepStrictEqual(p("01/01/1990"), utc(1990, 0, 1)); assert.deepStrictEqual(p("02/03/1991"), utc(1991, 1, 3)); assert.deepStrictEqual(p("03/10/2010"), utc(2010, 2, 10)); }); -it("utcParse(\"\")(date) parses abbreviated month, date and year", () => { +test("utcParse(\"\")(date) parses abbreviated month, date and year", () => { const p = utcParse("%b %d, %Y"); assert.deepStrictEqual(p("jan 01, 1990"), utc(1990, 0, 1)); assert.deepStrictEqual(p("feb 2, 2010"), utc(2010, 1, 2)); assert.strictEqual(p("jan. 1, 1990"), null); }); -it("utcParse(\"\")(date) parses month, date and year", () => { +test("utcParse(\"\")(date) parses month, date and year", () => { const p = utcParse("%B %d, %Y"); assert.deepStrictEqual(p("january 01, 1990"), utc(1990, 0, 1)); assert.deepStrictEqual(p("February 2, 2010"), utc(2010, 1, 2)); assert.strictEqual(p("jan 1, 1990"), null); }); -it("utcParse(\"\")(date) parses locale date and time", () => { +test("utcParse(\"\")(date) parses locale date and time", () => { const p = utcParse("%c"); assert.deepStrictEqual(p("1/1/1990, 12:00:00 AM"), utc(1990, 0, 1)); }); -it("utcParse(\"\")(date) parses twenty-four hour, minute and second", () => { +test("utcParse(\"\")(date) parses twenty-four hour, minute and second", () => { const p = utcParse("%H:%M:%S"); assert.deepStrictEqual(p("00:00:00"), utc(1900, 0, 1, 0, 0, 0)); assert.deepStrictEqual(p("11:59:59"), utc(1900, 0, 1, 11, 59, 59)); @@ -63,7 +64,7 @@ it("utcParse(\"\")(date) parses twenty-four hour, minute and second", () => { assert.deepStrictEqual(p("23:59:59"), utc(1900, 0, 1, 23, 59, 59)); }); -it("utcParse(\"\")(date) parses locale time", () => { +test("utcParse(\"\")(date) parses locale time", () => { const p = utcParse("%X"); assert.deepStrictEqual(p("12:00:00 AM"), utc(1900, 0, 1, 0, 0, 0)); assert.deepStrictEqual(p("11:59:59 AM"), utc(1900, 0, 1, 11, 59, 59)); @@ -72,17 +73,17 @@ it("utcParse(\"\")(date) parses locale time", () => { assert.deepStrictEqual(p("11:59:59 PM"), utc(1900, 0, 1, 23, 59, 59)); }); -it("utcParse(\"%L\")(date) parses milliseconds", () => { +test("utcParse(\"%L\")(date) parses milliseconds", () => { const p = utcParse("%L"); assert.deepStrictEqual(p("432"), utc(1900, 0, 1, 0, 0, 0, 432)); }); -it("utcParse(\"%f\")(date) parses microseconds", () => { +test("utcParse(\"%f\")(date) parses microseconds", () => { const p = utcParse("%f"); assert.deepStrictEqual(p("432000"), utc(1900, 0, 1, 0, 0, 0, 432)); }); -it("utcParse(\"\")(date) parses twelve hour, minute and second", () => { +test("utcParse(\"\")(date) parses twelve hour, minute and second", () => { const p = utcParse("%I:%M:%S %p"); assert.deepStrictEqual(p("12:00:00 am"), utc(1900, 0, 1, 0, 0, 0)); assert.deepStrictEqual(p("11:59:59 AM"), utc(1900, 0, 1, 11, 59, 59)); @@ -91,7 +92,7 @@ it("utcParse(\"\")(date) parses twelve hour, minute and second", () => { assert.deepStrictEqual(p("11:59:59 PM"), utc(1900, 0, 1, 23, 59, 59)); }); -it("utcParse(\"\")(date) parses timezone offset", () => { +test("utcParse(\"\")(date) parses timezone offset", () => { const p = utcParse("%m/%d/%Y %Z"); assert.deepStrictEqual(p("01/02/1990 +0000"), utc(1990, 0, 2)); assert.deepStrictEqual(p("01/02/1990 +0100"), utc(1990, 0, 1, 23)); @@ -99,29 +100,29 @@ it("utcParse(\"\")(date) parses timezone offset", () => { assert.deepStrictEqual(p("01/02/1990 -0800"), local(1990, 0, 2)); }); -it("utcParse(\"\")(date) parses timezone offset (in the form '+-hh:mm')", () => { +test("utcParse(\"\")(date) parses timezone offset (in the form '+-hh:mm')", () => { const p = utcParse("%m/%d/%Y %Z"); assert.deepStrictEqual(p("01/02/1990 +01:30"), utc(1990, 0, 1, 22, 30)); assert.deepStrictEqual(p("01/02/1990 -01:30"), utc(1990, 0, 2, 1, 30)); }); -it("utcParse(\"\")(date) parses timezone offset (in the form '+-hh')", () => { +test("utcParse(\"\")(date) parses timezone offset (in the form '+-hh')", () => { const p = utcParse("%m/%d/%Y %Z"); assert.deepStrictEqual(p("01/02/1990 +01"), utc(1990, 0, 1, 23)); assert.deepStrictEqual(p("01/02/1990 -01"), utc(1990, 0, 2, 1)); }); -it("utcParse(\"\")(date) parses timezone offset (in the form 'Z')", () => { +test("utcParse(\"\")(date) parses timezone offset (in the form 'Z')", () => { const p = utcParse("%m/%d/%Y %Z"); assert.deepStrictEqual(p("01/02/1990 Z"), utc(1990, 0, 2)); }); -it("utcParse(\"%Y %U %w\")(date) handles a year that starts on Sunday", () => { +test("utcParse(\"%Y %U %w\")(date) handles a year that starts on Sunday", () => { const p = utcParse("%Y %U %w"); assert.deepStrictEqual(p("2012 01 0"), utc(2012, 0, 1)); }); -it("utcParse(\"%w %V %Y\")(date) parses numeric weekday, week number (ISO) and year", () => { +test("utcParse(\"%w %V %Y\")(date) parses numeric weekday, week number (ISO) and year", () => { const p = utcParse("%w %V %Y"); assert.deepStrictEqual(p("1 01 1990"), utc(1990, 0, 1)); assert.deepStrictEqual(p("0 05 1991"), utc(1991, 1, 3)); @@ -131,7 +132,7 @@ it("utcParse(\"%w %V %Y\")(date) parses numeric weekday, week number (ISO) and y assert.strictEqual(p("X 03 2010"), null); }); -it("utcParse(\"%w %V %G\")(date) parses numeric weekday, week number (ISO) and corresponding year", () => { +test("utcParse(\"%w %V %G\")(date) parses numeric weekday, week number (ISO) and corresponding year", () => { const p = utcParse("%w %V %G"); assert.deepStrictEqual(p("1 01 1990"), utc(1990, 0, 1)); assert.deepStrictEqual(p("0 05 1991"), utc(1991, 1, 3)); @@ -143,7 +144,7 @@ it("utcParse(\"%w %V %G\")(date) parses numeric weekday, week number (ISO) and c assert.strictEqual(p("X 03 2010"), null); }); -it("utcParse(\"%V %Y\")(date) week number (ISO) and year", () => { +test("utcParse(\"%V %Y\")(date) week number (ISO) and year", () => { const p = utcParse("%V %Y"); assert.deepStrictEqual(p("01 1990"), utc(1990, 0, 1)); assert.deepStrictEqual(p("05 1991"), utc(1991, 0, 28)); @@ -155,7 +156,7 @@ it("utcParse(\"%V %Y\")(date) week number (ISO) and year", () => { assert.deepStrictEqual(p("X 1995"), null); }); -it("utcParse(\"%V %g\")(date) week number (ISO) and corresponding two-digits year", () => { +test("utcParse(\"%V %g\")(date) week number (ISO) and corresponding two-digits year", () => { const p = utcParse("%V %g"); assert.deepStrictEqual(p("01 90"), utc(1990, 0, 1)); assert.deepStrictEqual(p("05 91"), utc(1991, 0, 28)); @@ -169,7 +170,7 @@ it("utcParse(\"%V %g\")(date) week number (ISO) and corresponding two-digits yea assert.deepStrictEqual(p("X 95"), null); }); -it("utcParse(\"%V %G\")(date) week number (ISO) and corresponding year", () => { +test("utcParse(\"%V %G\")(date) week number (ISO) and corresponding year", () => { const p = utcParse("%V %G"); assert.deepStrictEqual(p("01 1990"), utc(1990, 0, 1)); assert.deepStrictEqual(p("05 1991"), utc(1991, 0, 28)); @@ -183,25 +184,25 @@ it("utcParse(\"%V %G\")(date) week number (ISO) and corresponding year", () => { assert.deepStrictEqual(p("X 1995"), null); }); -it("utcParse(\"%Q\")(date) parses UNIX timestamps", () => { +test("utcParse(\"%Q\")(date) parses UNIX timestamps", () => { const p = utcParse("%Q"); assert.deepStrictEqual(p("0"), utc(1970, 0, 1)); assert.deepStrictEqual(p("631152000000"), utc(1990, 0, 1)); }); -it("utcParse(\"%s\")(date) parses UNIX timestamps in seconds", () => { +test("utcParse(\"%s\")(date) parses UNIX timestamps in seconds", () => { const p = utcParse("%s"); assert.deepStrictEqual(p("0"), utc(1970, 0, 1)); assert.deepStrictEqual(p("631152000"), utc(1990, 0, 1)); }); -it("utcParse(\"%s.%L\")(date) parses UNIX timetamps in seconds and milliseconds", () => { +test("utcParse(\"%s.%L\")(date) parses UNIX timetamps in seconds and milliseconds", () => { const p = utcParse("%s.%L"); assert.deepStrictEqual(p("631152000.123"), utc(1990, 0, 1, 0, 0, 0, 123)); assert.deepStrictEqual(p("631197296.789"), utc(1990, 0, 1, 12, 34, 56, 789)); }); -it("utcParse(\"%s.%f\")(date) parses UNIX timetamps in seconds and microseconds", () => { +test("utcParse(\"%s.%f\")(date) parses UNIX timetamps in seconds and microseconds", () => { const p = utcParse("%s.%f"); assert.deepStrictEqual(p("631152000.123000"), utc(1990, 0, 1, 0, 0, 0, 123)); assert.deepStrictEqual(p("631197296.789000"), utc(1990, 0, 1, 12, 34, 56, 789)); diff --git a/vitest.config.js b/vitest.config.js new file mode 100644 index 0000000..b728050 --- /dev/null +++ b/vitest.config.js @@ -0,0 +1,3 @@ +import {defineConfig} from "vitest/config"; + +export default defineConfig({test: {include: ["test/**/*-test.js"]}}); From d1d4d181a2b02fabbeca1f4e2b626dff48084d29 Mon Sep 17 00:00:00 2001 From: Mike Bostock Date: Mon, 2 Nov 2026 18:12:44 -0800 Subject: [PATCH 03/10] eslint 10, vitest 5 Co-Authored-By: Claude Opus 5.5 --- package.json | 6 +- pnpm-lock.yaml | 559 +++++++++++++++++++------------------------------ 2 files changed, 216 insertions(+), 349 deletions(-) diff --git a/package.json b/package.json index b93aab3..6962584 100644 --- a/package.json +++ b/package.json @@ -42,13 +42,13 @@ "d3-time": "1 - 3" }, "devDependencies": { - "@eslint/js": "^9.39.5", + "@eslint/js": "^10.0.1", "@rollup/plugin-node-resolve": "^16.0.3", "@rollup/plugin-terser": "^1.0.2", - "eslint": "^9.39.5", + "eslint": "^10.14.0", "globals": "^17.14.0", "rollup": "^4.67.4", - "vitest": "^4.1.12" + "vitest": "^5.1.0" }, "scripts": { "test": "TZ=America/Los_Angeles vitest", diff --git a/pnpm-lock.yaml b/pnpm-lock.yaml index 2299d98..76c289e 100644 --- a/pnpm-lock.yaml +++ b/pnpm-lock.yaml @@ -13,8 +13,8 @@ importers: version: 3.1.0 devDependencies: '@eslint/js': - specifier: ^9.39.5 - version: 9.39.5 + specifier: ^10.0.1 + version: 10.0.1(eslint@10.14.0) '@rollup/plugin-node-resolve': specifier: ^16.0.3 version: 16.0.3(rollup@4.67.4) @@ -22,8 +22,8 @@ importers: specifier: ^1.0.2 version: 1.0.2(rollup@4.67.4) eslint: - specifier: ^9.39.5 - version: 9.39.5 + specifier: ^10.14.0 + version: 10.14.0 globals: specifier: ^17.14.0 version: 17.14.0 @@ -31,11 +31,17 @@ importers: specifier: ^4.67.4 version: 4.67.4 vitest: - specifier: ^4.1.12 - version: 4.1.12(vite@8.3.5(terser@5.51.2)) + specifier: ^5.1.0 + version: 5.1.0(vite@8.3.5(terser@5.51.2)) packages: + '@cacheable/memory@2.2.0': + resolution: {integrity: sha512-CTLKqLItRCEixEAewD3/j9DB3/o96gpTPD4eJ1v+DGOlxZRZncRQkGYqqnAGCscYd6RNeXfGeiuCphsPtqyIfQ==} + + '@cacheable/utils@2.5.0': + resolution: {integrity: sha512-buipgOVDkkPXNR5+xBpDw7Zk2n1EvU7qBJCNUcL7rhQ//kfpOXPAvQ511Os0vpLYJ1pZnvudNytkQt2hst3wqA==} + '@eslint-community/eslint-utils@4.10.1': resolution: {integrity: sha512-cuadcxVFE8sDK6iWJbs8Sn0av2Nrh2QSGQhVlBW9AaAHqHwjWsZHT8LJ4hFGPh7ASBV2deFdM7H/DPjulmh8rg==} engines: {node: ^12.22.0 || ^14.17.0 || >=16.0.0} @@ -46,33 +52,34 @@ packages: resolution: {integrity: sha512-EriSTlt5OC9/7SXkRSCAhfSxxoSUgBm33OH+IkwbdpgoqsSsUg7y3uh+IICI/Qg4BBWr3U2i39RpmycbxMq4ew==} engines: {node: ^12.0.0 || ^14.0.0 || >=16.0.0} - '@eslint/config-array@0.21.2': - resolution: {integrity: sha512-nJl2KGTlrf9GjLimgIru+V/mzgSK0ABCDQRvxw5BjURL7WfH5uoWmizbH7QB6MmnMBd8cIC9uceWnezL1VZWWw==} - engines: {node: ^18.18.0 || ^20.9.0 || >=21.1.0} + '@eslint/config-array@0.23.5': + resolution: {integrity: sha512-Y3kKLvC1dvTOT+oGlqNQ1XLqK6D1HU2YXPc52NmAlJZbMMWDzGYXMiPRJ8TYD39muD/OTjlZmNJ4ib7dvSrMBA==} + engines: {node: ^20.19.0 || ^22.13.0 || >=24} - '@eslint/config-helpers@0.4.2': - resolution: {integrity: sha512-gBrxN88gOIf3R7ja5K9slwNayVcZgK6SOUORm2uBzTeIEfeVaIhOpCtTox3P6R7o2jLFwLFTLnC7kU/RGcYEgw==} - engines: {node: ^18.18.0 || ^20.9.0 || >=21.1.0} + '@eslint/config-helpers@0.7.0': + resolution: {integrity: sha512-DObd/KKUsU+FaFv4PLxSRenpXfQWmPXXP3pPZ6/K1PCrMu2vQpMDMuQe/BqYeoLcz8ro0bVDF1RxOJgfVEdhUw==} + engines: {node: ^20.19.0 || ^22.13.0 || >=24} - '@eslint/core@0.17.0': - resolution: {integrity: sha512-yL/sLrpmtDaFEiUj1osRP4TI2MDz1AddJL+jZ7KSqvBuliN4xqYY54IfdN8qD8Toa6g1iloph1fxQNkjOxrrpQ==} - engines: {node: ^18.18.0 || ^20.9.0 || >=21.1.0} + '@eslint/core@1.2.1': + resolution: {integrity: sha512-MwcE1P+AZ4C6DWlpin/OmOA54mmIZ/+xZuJiQd4SyB29oAJjN30UW9wkKNptW2ctp4cEsvhlLY/CsQ1uoHDloQ==} + engines: {node: ^20.19.0 || ^22.13.0 || >=24} - '@eslint/eslintrc@3.3.7': - resolution: {integrity: sha512-F42g89Qd5oAWtp0k0nnSrjziAKza7w8SVT4mStc18LZMaRb4J1HQAHLCalEtDCxrTuksx7NU9qsmeLwpOfPqWw==} - engines: {node: ^18.18.0 || ^20.9.0 || >=21.1.0} - - '@eslint/js@9.39.5': - resolution: {integrity: sha512-QywQuszQh77pIXCsq998c8hbhSTI/azTty1Z6N53dmAudKHhy573j3yvRLsX2BSp8YpLtoCEG8E9DJe+8zUh4A==} - engines: {node: ^18.18.0 || ^20.9.0 || >=21.1.0} + '@eslint/js@10.0.1': + resolution: {integrity: sha512-zeR9k5pd4gxjZ0abRoIaxdc7I3nDktoXZk2qOv9gCNWx3mVwEn32VRhyLaRsDiJjTs0xq/T8mfPtyuXu7GWBcA==} + engines: {node: ^20.19.0 || ^22.13.0 || >=24} + peerDependencies: + eslint: ^10.0.0 + peerDependenciesMeta: + eslint: + optional: true - '@eslint/object-schema@2.1.7': - resolution: {integrity: sha512-VtAOaymWVfZcmZbp6E2mympDIHvyjXs/12LqWYjVw6qjrfF+VK+fyG33kChz3nnK+SU5/NeHOqrTEHS8sXO3OA==} - engines: {node: ^18.18.0 || ^20.9.0 || >=21.1.0} + '@eslint/object-schema@3.0.5': + resolution: {integrity: sha512-vqTaUEgxzm+YDSdElad6PiRoX4t8VGDjCtt05zn4nU810UIx/uNEV7/lZJ6KwFThKZOzOxzXy48da+No7HZaMw==} + engines: {node: ^20.19.0 || ^22.13.0 || >=24} - '@eslint/plugin-kit@0.4.1': - resolution: {integrity: sha512-43/qtrDUokr7LJqoF2c3+RInu/t4zfrpYdoSDfYyhg52rwLV6TnOvdG4fXm7IkSB3wErkcmJS9iEhjVtOSEjjA==} - engines: {node: ^18.18.0 || ^20.9.0 || >=21.1.0} + '@eslint/plugin-kit@0.7.3': + resolution: {integrity: sha512-IkO+/KEUvwbVpiURZg+P7zF74z5Jxe0UgJxVni+RtoHQ6IZieXaO02kmadomap/q+l6bc/jdPGGqTjhuZnuz1Q==} + engines: {node: ^20.19.0 || ^22.13.0 || >=24} '@humanfs/core@0.19.2': resolution: {integrity: sha512-UhXNm+CFMWcbChXywFwkmhqjs3PRCmcSa/hfBgLIb7oQ5HNb1wS0icWsGtSAUNgefHeI+eBrA8I1fxmbHsGdvA==} @@ -110,6 +117,15 @@ packages: '@jridgewell/trace-mapping@0.3.31': resolution: {integrity: sha512-zzNR+SdQSDJzc8joaeP8QQoCQr8NuYx2dIIytl1QeBEZHJ9uW6hebsrYgbz8hJwUQao3TWCMtmfV8Nu1twOLAw==} + '@keyv/bigmap@1.3.1': + resolution: {integrity: sha512-WbzE9sdmQtKy8vrNPa9BRnwZh5UF4s1KTmSK0KUVLo3eff5BlQNNWDnFOouNpKfPKDnms9xynJjsMYjMaT/aFQ==} + engines: {node: '>= 18'} + peerDependencies: + keyv: ^5.6.0 + + '@keyv/serialize@1.1.1': + resolution: {integrity: sha512-dXn3FZhPv0US+7dtJsIi2R+c7qWYiReoEh5zUntWCf4oSpMNib8FDhSoed6m3QyZdx5hK7iLFkYk3rNxwt8vTA==} + '@napi-rs/lzma-linux-x64-gnu@1.5.1': resolution: {integrity: sha512-oTXEIha4SsuXdTA4Iyskj0kpdx2yVXdhd75c2v3xGrHFfVMsbhTPZU/nMPL4sWKo4pBHm3aucLaqGlF696dTyQ==} engines: {node: ^22.20 || ^24.12 || >=25} @@ -389,15 +405,15 @@ packages: cpu: [x64] os: [win32] - '@standard-schema/spec@1.1.0': - resolution: {integrity: sha512-l2aFy5jALhniG5HgqrD6jXLi/rUWrKvqN/qJx6yoJsgKhblVd+iqqU4RCXavm/jPityDo5TCvKMnpjKnOriy0w==} - '@types/chai@5.2.3': resolution: {integrity: sha512-Mw558oeA9fFbv65/y4mHtXDs9bPnFMZAL/jxdPFUpOHHIXX91mcgEHbS5Lahr+pwZFR8A7GQleRWeI6cGFC2UA==} '@types/deep-eql@4.0.2': resolution: {integrity: sha512-c9h9dVVMigMPc4bwTvC5dxqtqJZwQPePsWjPlpSOnojbor6pGqdk541lfA7AqFQr5pB1BRdq0juY9db81BwyFw==} + '@types/esrecurse@4.3.1': + resolution: {integrity: sha512-xJBAbDifo5hpffDBuHl0Y8ywswbiAp/Wi7Y/GtAgSlZyIABppyurxVueOPE8LUQOxdlgi6Zqce7uoEpqNTeiUw==} + '@types/estree@1.0.10': resolution: {integrity: sha512-lTyOMnOcmRBzdCv6/4zUZCrEhV0xrqQiUZBZtVcbmLHBXKLnN8q89v/wKRF/Q0HbwVsqbIG3o5HDoFl9sduM+g==} @@ -407,13 +423,10 @@ packages: '@types/resolve@1.20.2': resolution: {integrity: sha512-60BCwRFOZCQhDncwQdxxeOEEkbc5dIMccYLwbxsS4TUNeVECQ/pBJ0j09mrHOl/JJvpRPGwO9SvE4nR2Nb/a4Q==} - '@vitest/expect@4.1.12': - resolution: {integrity: sha512-vFlTt+YEu9WBpNjdGayNmlMVzrWPi1+sv853/7t2FU7hpO5gAFBKHzQmkCq5Xjpr+evegF2994LQT3hF3mRlqQ==} - - '@vitest/mocker@4.1.12': - resolution: {integrity: sha512-fKShNpKZzupWZuY0z7egydvL0sqW4INEZBEExMBMAa6izlENEVHwoXgdaTCaBZ5fwlr4xf2o1wXC83n9RpO+NA==} + '@vitest/mocker@5.1.0': + resolution: {integrity: sha512-5umB9/jlWcqVS6fsrFmv5Gdnpu6wAUio/lEOwAmvB7v+lFo/IW2B9FhAD0p19GCULTgMzLCdUmuCDCnAzWgppQ==} peerDependencies: - msw: ^2.4.9 + msw: ^2.4.9 || ^3.0.0 vite: ^6.0.0 || ^7.0.0 || ^8.0.0 peerDependenciesMeta: msw: @@ -421,20 +434,8 @@ packages: vite: optional: true - '@vitest/pretty-format@4.1.12': - resolution: {integrity: sha512-XW9O8+Mxx4VpCtkYdMJLZQQwsVryP9wk7cPKDxtXFfwSak6yRh5+2fep/Y0XF/ElBvJHq8bcYdi6aeuai0opZA==} - - '@vitest/runner@4.1.12': - resolution: {integrity: sha512-NKlVKCr5QnCe8jijdMnmkpHHU+WTqiLFR6G0pHji9uRjXK9xJl1k1nTw6F3pOOj2PDcsDt2GKQMI7wIsaT491w==} - - '@vitest/snapshot@4.1.12': - resolution: {integrity: sha512-ko1y1Qgb/slzQ9mr+b89Cuqud8WG1TKtsPD8r7ZUBdvVOGt85Af2HwCqHujrhwJq95hs/9RM7fcAPg57o1vlzw==} - - '@vitest/spy@4.1.12': - resolution: {integrity: sha512-RGq9x4JNGNTZHEJxvN0oSiJjeSCExm0n2gZKKJZHY9cX5AVA6M7VJILBT3ZJ/tJ/0J9uWT7fETV9/btoi//vSg==} - - '@vitest/utils@4.1.12': - resolution: {integrity: sha512-Q3awXrwOfEV+qc3WmO5ONyE0yO7Q1gQ9/oyHxGLZ/pl7N3NO/ZztqQwKLuwMkV+CA1JYSIeO3gkHnRDIo4AVaA==} + '@vitest/spy@5.1.0': + resolution: {integrity: sha512-2DPO5OMHWKrBngC+fCmTQqemNF0gidRhp3lxbBmRhW+M1XJrfgPpqNqWVevXtn2f2ufD5ZaR1B6B641aAlcX5A==} acorn-jsx@5.3.2: resolution: {integrity: sha512-rq9s+JNhf0IChjtDXxllJ7g41oZk5SlXtp0LHwyA5cejwn7vKmKp4pPri6YEePv2PU65sAsegbXtIinmDFDXgQ==} @@ -449,54 +450,31 @@ packages: ajv@6.15.0: resolution: {integrity: sha512-fgFx7Hfoq60ytK2c7DhnF8jIvzYgOMxfugjLOSMHjLIPgenqa7S7oaagATUq99mV6IYvN2tRmC0wnTYX6iPbMw==} - ansi-styles@4.3.0: - resolution: {integrity: sha512-zbB9rCJAT1rbjiVDb2hqKFHNYLxgtk8NURxZ3IZwD3F6NtxbXZQCnnSi1Lkx+IDohdPlFp222wVALIheZJQSEg==} - engines: {node: '>=8'} - - argparse@2.0.1: - resolution: {integrity: sha512-8+9WqebbFzpX9OR+Wa6O29asIogeRMzcGtAINdpMHHyAg10f05aSFVBbcEqGf/PXw1EjAZ+q2/bEBg3DvurK3Q==} - assertion-error@2.0.1: resolution: {integrity: sha512-Izi8RQcffqCeNVgFigKli1ssklIbpHnCYc6AknXGYoB6grJqyeby7jv12JUQgmTAnIDnbck1uxksT4dzN3PWBA==} engines: {node: '>=12'} - balanced-match@1.0.2: - resolution: {integrity: sha512-3oSeUO0TMV67hN1AmbXsK4yaqU7tjiHlbxRDZOpH0KW9+CeX4bRAaX0Anxt0tx2MrpRpWwQaPwIlISEJhYU5Pw==} + balanced-match@4.0.4: + resolution: {integrity: sha512-BLrgEcRTwX2o6gGxGOCNyMvGSp35YofuYzw9h1IMTRmKqttAZZVU67bdb9Pr2vUHA8+j3i2tJfjO6C6+4myGTA==} + engines: {node: 18 || 20 || >=22} - brace-expansion@1.1.21: - resolution: {integrity: sha512-9zeA+KLZNNzglF2TPKRQEDyx6Yby7daAkuy8MiPzpXPsYDWi/DRM8jmwUDxokQjYqBpv5DgPiwD4h4ZZSy1Ujw==} + brace-expansion@5.0.12: + resolution: {integrity: sha512-YovQ3rzhaLMIrDjNDMkNS01tea93qhEhG5xy8f6+R0l+dw3Ki+5sCoIoI942iuLZTHWogWktgwVDhU09iNEimQ==} + engines: {node: 20 || >=22} buffer-from@1.1.2: resolution: {integrity: sha512-E+XQCRwSbaaiChtv6k6Dwgc+bx+Bs6vuKJHHl5kox/BaKbhiXzqQOwK4cO22yElGp2OCmjwVhT3HmxgyPGnJfQ==} - callsites@3.1.0: - resolution: {integrity: sha512-P8BjAsXvZS+VIDUI11hHCQEv74YT67YUi5JJFNWIqL235sBmjX4+qx9Muvls5ivyNENctx46xQLQ3aTuE7ssaQ==} - engines: {node: '>=6'} + cacheable@2.5.0: + resolution: {integrity: sha512-60cyAOytib/OzBw1JNSoSV/boK1AtHryDIjvVBk7XbN4ugfkM3+Sry7fEjNgPMGgOjuaZPAp8ruZ0Cxafwyq9g==} chai@6.3.0: resolution: {integrity: sha512-XWAtwJ6OHO+tj0EKCs0Y2UamnyOxseZWltU4x2U2wh8g4AigdjwvtUjvLP2tqkA/avxHEtzxNaqGq/YGNwckKg==} engines: {node: '>=18'} - chalk@4.1.2: - resolution: {integrity: sha512-oKnbhFyRIXpUuez8iBMmyEa4nbj4IOQyuhc/wy9kY7/WVPcwIO9VA668Pu8RkO7+0G76SLROeyw9CpQ061i4mA==} - engines: {node: '>=10'} - - color-convert@2.0.1: - resolution: {integrity: sha512-RRECPsj7iu/xb5oKYcsFHSppFNnsj/52OVTRKb4zP5onXwVF3zVmmToNcOfGC+CRDpfK/U584fMg38ZHCaElKQ==} - engines: {node: '>=7.0.0'} - - color-name@1.1.4: - resolution: {integrity: sha512-dOy+3AuW3a2wNbZHIuMZpTcgjGuLU/uBL/ubcZF9OXbDo8ff4O8yVp5Bf0efS8uEoYo5q4Fx7dY9OgQGXgAsQA==} - commander@2.20.3: resolution: {integrity: sha512-GpVkmM8vF2vQUkj2LvZmD35JxeJOLCwJ9cUkugyk2nuhbv3+mJvpLYYt+0+USMxE+oj+ey/lJEnhZw75x/OMcQ==} - concat-map@0.0.1: - resolution: {integrity: sha512-/Srv4dswyQNBfohGpz9o6Yb3Gz3SrUDqBH5rTuhGR7ahtlbYKnVxw2bCFMRljaA7EXHaXZ8wsHdodFvbkhKmqg==} - - convert-source-map@2.0.0: - resolution: {integrity: sha512-Kvp459HrV2FEJ1CAsi1Ku+MY3kasH19TFykTz2xWmMeq6bk2NU3XXvfJ+Q61m0xktWwt+1HSYf3JZsTms3aRJg==} - cross-spawn@7.0.6: resolution: {integrity: sha512-uV2QOWP2nWzsy2aMp8aRibhi9dlzF5Hgh5SHaB9OiTGEyDTiJJyx0uy51QXdyWbtAHNua4XJzUKca3OzKUd3vA==} engines: {node: '>= 8'} @@ -540,22 +518,21 @@ packages: resolution: {integrity: sha512-TtpcNJ3XAzx3Gq8sWRzJaVajRs0uVxA2YAkdb1jm2YkPz4G6egUFAyA3n5vtEIZefPk5Wa4UXbKuS5fKkJWdgA==} engines: {node: '>=10'} - eslint-scope@8.4.0: - resolution: {integrity: sha512-sNXOfKCn74rt8RICKMvJS7XKV/Xk9kA7DyJr8mJik3S7Cwgy3qlkkmyS2uQB3jiJg6VNdZd/pDBJu0nvG2NlTg==} - engines: {node: ^18.18.0 || ^20.9.0 || >=21.1.0} + eslint-scope@9.1.2: + resolution: {integrity: sha512-xS90H51cKw0jltxmvmHy2Iai1LIqrfbw57b79w/J7MfvDfkIkFZ+kj6zC3BjtUwh150HsSSdxXZcsuv72miDFQ==} + engines: {node: ^20.19.0 || ^22.13.0 || >=24} eslint-visitor-keys@3.4.3: resolution: {integrity: sha512-wpc+LXeiyiisxPlEkUzU6svyS1frIO3Mgxj1fdy7Pm8Ygzguax2N3Fa/D/ag1WqbOprdI+uY6wMUl8/a2G+iag==} engines: {node: ^12.22.0 || ^14.17.0 || >=16.0.0} - eslint-visitor-keys@4.2.1: - resolution: {integrity: sha512-Uhdk5sfqcee/9H/rCOJikYz67o0a2Tw2hGRPOG2Y1R2dg7brRe1uG0yaNQDHu+TO/uQPF/5eCapvYSmHUjt7JQ==} - engines: {node: ^18.18.0 || ^20.9.0 || >=21.1.0} + eslint-visitor-keys@5.0.1: + resolution: {integrity: sha512-tD40eHxA35h0PEIZNeIjkHoDR4YjjJp34biM0mDvplBe//mB+IHCqHDGV7pxF+7MklTvighcCPPZC7ynWyjdTA==} + engines: {node: ^20.19.0 || ^22.13.0 || >=24} - eslint@9.39.5: - resolution: {integrity: sha512-DgZS62aPLXKlnxILS/AYCoRvHaZeXceIzlXPkkGGzJWSow1aEk0lbTlxUSlyjC8jcaKxAdOnTDz+o1JFSBsyjw==} - engines: {node: ^18.18.0 || ^20.9.0 || >=21.1.0} - deprecated: This version is no longer supported. Please see https://eslint.org/version-support for other options. + eslint@10.14.0: + resolution: {integrity: sha512-T0pNsxkb9IKmtQjhpK3d7nWOpFv+YHuMbTJnSVMoQblF0onvXfErrtp4V1jHtsQPan7dKaGVD0q1WCXnzMF31A==} + engines: {node: ^20.19.0 || ^22.13.0 || >=24} hasBin: true peerDependencies: jiti: '*' @@ -563,9 +540,9 @@ packages: jiti: optional: true - espree@10.4.0: - resolution: {integrity: sha512-j6PAQ2uUr79PZhBjP5C5fhl8e39FmRnOjsD5lGnWrFU8i2G776tBK7+nP8KuQUTTyAZUwfQqXAgrVH5MbH9CYQ==} - engines: {node: ^18.18.0 || ^20.9.0 || >=21.1.0} + espree@11.2.0: + resolution: {integrity: sha512-7p3DrVEIopW1B1avAGLuCSh1jubc01H2JHc8B4qqGblmg5gI9yumBgACjWo4JlIc04ufug4xJ3SQI8HkS/Rgzw==} + engines: {node: ^20.19.0 || ^22.13.0 || >=24} esquery@1.7.0: resolution: {integrity: sha512-Ap6G0WQwcU/LHsvLwON1fAQX9Zp0A2Y6Y/cJBl9r/JbW90Zyg4/zbG6zzKa2OTALELarYHmKu0GhpM5EO+7T0g==} @@ -611,17 +588,15 @@ packages: picomatch: optional: true - file-entry-cache@8.0.0: - resolution: {integrity: sha512-XXTUwCvisa5oacNGRP9SfNtYBNAMi+RPwBFmblZEF7N7swHYQS6/Zfk7SRwx4D5j3CH211YNRco1DEMNVfZCnQ==} - engines: {node: '>=16.0.0'} + file-entry-cache@11.1.5: + resolution: {integrity: sha512-+PFTHITI08JIGhnNpGNI8T8inUpgZfk3GNEqfT9R2zZV2iFXg3CvqzSl/uEhs7TSGujYRELEANyDvS8Fj7+S7Q==} find-up@5.0.0: resolution: {integrity: sha512-78/PXT1wlLLDgTzDs7sjq9hzz0vXD+zn+7wypEe4fXQxCmdmqfGsEPQxmiCSQI3ajFV91bVSsvNtrJRiW6nGng==} engines: {node: '>=10'} - flat-cache@4.0.1: - resolution: {integrity: sha512-f7ccFPK3SXFHpx15UIGyRJ/FJQctuKZ0zVuN3frBo4HnK3cay9VEW0R6yPYFHC0AgqhukPzKjq22t5DmAyqGyw==} - engines: {node: '>=16'} + flat-cache@6.1.23: + resolution: {integrity: sha512-f++BY9pTk+983xK1FLzlLpmM0i0z+jHmx3QESGkURMXujQZz1k5wzwX6hjnQ8goaD0B+sYnDK1yZ6MTyZfUaqA==} flatted@3.4.4: resolution: {integrity: sha512-5+ybhBZANEJxaH3X5evAFatUxLfEHSr7n6kYJ+1Qd0mUqr4eu9gIf6GDbWHf8RJijHrjjO8G+la14SlL2SeS1Q==} @@ -638,30 +613,28 @@ packages: resolution: {integrity: sha512-XxwI8EOhVQgWp6iDL+3b0r86f4d6AX6zSU55HfB4ydCEuXLXc5FcYeOu+nnGftS4TEju/11rt4KJPTMgbfmv4A==} engines: {node: '>=10.13.0'} - globals@14.0.0: - resolution: {integrity: sha512-oahGvuMGQlPw/ivIYBjVSrWAfWLBeku5tpPE2fOPLi+WHffIWbuh2tCjhyQhTBPMf5E9jDEH4FOmTYgYwbKwtQ==} - engines: {node: '>=18'} - globals@17.14.0: resolution: {integrity: sha512-UtdkTVyAJePQv0J2M9Xe4L0ruNSDV314XiIJsADI2Zf40bcdAonE/D/OhAU8AT99oij9mhLByb+NvA3QWZYgCg==} engines: {node: '>=18'} - has-flag@4.0.0: - resolution: {integrity: sha512-EykJT/Q1KjTWctppgIAgfSO0tKVuZUjhgMr17kqTumMl6Afv3EISleU7qZUzoXDFTAHTDC4NOoG/ZxU3EvlMPQ==} - engines: {node: '>=8'} + hashery@1.5.1: + resolution: {integrity: sha512-iZyKG96/JwPz1N55vj2Ie2vXbhu440zfUfJvSwEqEbeLluk7NnapfGqa7LH0mOsnDxTF85Mx8/dyR6HfqcbmbQ==} + engines: {node: '>=20'} hasown@2.0.4: resolution: {integrity: sha512-T2UbfbBEF32wiepXIsMlTW9+dDYC6wMh/t/vYA4tuOMKqWz/n3vr1NFSxQiyP+zk2mXsoMA/i/7qV6LKut1t1A==} engines: {node: '>= 0.4'} + hookified@1.15.1: + resolution: {integrity: sha512-MvG/clsADq1GPM2KGo2nyfaWVyn9naPiXrqIe4jYjXNZQt238kWyOGrsyc/DmRAQ+Re6yeo6yX/yoNCG5KAEVg==} + + hookified@2.2.0: + resolution: {integrity: sha512-p/LgFzRN5FeoD3DLS6bkUapeye6E4SI6yJs6KetENd18S+FBthqYq2amJUWpt5z0EQwwHemidjY5OqJGEKm5uA==} + ignore@5.3.2: resolution: {integrity: sha512-hsBTNUqQTDwkWtcdYI2i06Y/nUBEsNEDJKjWdigLvegy8kDuJAS8uRlpkkcQpyEXL0Z/pjDy5HBmMjRCJ2gq+g==} engines: {node: '>= 4'} - import-fresh@3.3.1: - resolution: {integrity: sha512-TR3KfrTZTYLPB6jUjfx6MF9WcWrHL9su5TObK4ZkYgBdWKPOFoSoQIdEuTuR82pmtxH2spWG9h6etwfr1pLBqQ==} - engines: {node: '>=6'} - imurmurhash@0.1.4: resolution: {integrity: sha512-JmXMZ6wuvDmLiHEml9ykzqO6lwFbof0GG4IkcGaENdCRDDmMVnny7s5HsIgHCbaq0w2MyPhDqkhTUgS2LU2PHA==} engines: {node: '>=0.8.19'} @@ -688,21 +661,14 @@ packages: isexe@2.0.0: resolution: {integrity: sha512-RHxMLp9lnKHGHRng9QFhRCMbYAcVpn69smSGcq3f36xjgVVWThj4qqLbTLlq7Ssj8B+fIQ1EuCEGI2lKsyQeIw==} - js-yaml@4.3.2: - resolution: {integrity: sha512-SFNOvSJ+Dgf/9An904Yx+CgSlIPCkIpao4qo51lpee25TIRejdH3rhR4EZMGoNx3/TP3O+wzWuiTFl4sqbltzA==} - hasBin: true - - json-buffer@3.0.1: - resolution: {integrity: sha512-4bV5BfR2mqfQTJm+V5tPPdf+ZpuhiIvTuAB5g8kcrXOZpTT/QwwVRWBywX1ozr6lEuPdbHxwaJlm9G6mI2sfSQ==} - json-schema-traverse@0.4.1: resolution: {integrity: sha512-xbbCH5dCYU5T8LcEhhuh7HJ88HXuW3qsI3Y0zOZFKfZEHcpWiHU/Jxzk629Brsab/mMiHQti9wMP+845RPe3Vg==} json-stable-stringify-without-jsonify@1.0.1: resolution: {integrity: sha512-Bdboy+l7tA3OGW6FjyFHWkP5LuByj1Tk33Ljyq0axyzdk9//JSi2u3fP1QSmd1KNwq6VOKYGlAu87CisVir6Pw==} - keyv@4.5.4: - resolution: {integrity: sha512-oxVHkHR/EJf2CNXnWxRLW6mg7JyCCUcG0DtEGmL2ctUo1PNTin1PUil+r/+4r5MpVgC/fn1kjsx7mjSujKqIpw==} + keyv@5.6.0: + resolution: {integrity: sha512-CYDD3SOtsHtyXeEORYRx2qBtpDJFjRTGXUtmNEMGyzYOKj1TE3tycdlho7kA1Ufx9OYWZzg52QFBGALTirzDSw==} levn@0.4.1: resolution: {integrity: sha512-+bT2uH4E5LGE7h/n3evcS/sQlJXCpIp6ym8OWJ5eV6+67Dsql/LaaT7qJBAt2rzfoa/5QBGBhxDix1dMt2kQKQ==} @@ -786,14 +752,12 @@ packages: resolution: {integrity: sha512-iPZK6eYjbxRu3uB4/WZ3EsEIMJFMqAoopl3R+zuq0UjcAm/MO6KCweDgPfP3elTztoKP3KtnVHxTn2NHBSDVUw==} engines: {node: '>=10'} - lodash.merge@4.6.2: - resolution: {integrity: sha512-0KpjqXRVvrYyCsX1swR/XTK0va6VQkQM6MNo7PqW77ByjAhoARA8EfrP1N4+KlKj8YS0ZUCtRT/YUuhyYDujIQ==} - - magic-string@0.30.21: - resolution: {integrity: sha512-vd2F4YUyEXKGcLHoq+TEyCjxueSeHnFxyyjNp80yg0XV4vUhnDer/lvvlqM/arB5bXQN5K2/3oinyCRyx8T2CQ==} + magic-string@1.4.5: + resolution: {integrity: sha512-oLLC2+YvQUfAa+vxoufE/yc1icb87M9iXIRqAoR/2EhE/8cb3SF/+Gi0c2By1B+5Vz2e2vQtUvHiu1+63Znh+w==} - minimatch@3.1.5: - resolution: {integrity: sha512-VgjWUsnnT6n+NUk6eZq77zeFdpW2LWDzP6zFGrCbHXiYNul5Dzqk2HHQ5uFH2DNW5Xbp8+jVzaeNt94ssEEl4w==} + minimatch@10.2.6: + resolution: {integrity: sha512-vpLQEs+VLCr1nU0BXS07maYoFwlDAH0gngQuuttxIwutDFEMHq2blX+8vpgxDdK3J1PwjCJiep77OitTZ4Ll1A==} + engines: {node: 18 || 20 || >=22} ms@2.1.3: resolution: {integrity: sha512-6FlzubTLZG3J2a/NVCAleEhjzq5oxgHyaCU9yYXvcLsvoVaHJq/s5xXI6/XXP6tz7R9xAOtHnSO/tXtF3WRTlA==} @@ -806,8 +770,8 @@ packages: natural-compare@1.4.0: resolution: {integrity: sha512-OWND8ei3VtNC9h7V60qff3SVobHr996CTwgxubgyQYEpg290h9J0buyECNNJexkFm5sOajh5G116RYA1c8ZMSw==} - obug@2.2.1: - resolution: {integrity: sha512-XrsrhT5sybtKI6wakr2SPOlGZWWYbUXZ7a0jT8/QOeAPau+1X/bSegNe5YR75oJmEZQbKningirmGOEJCIk61Q==} + obug@3.0.0: + resolution: {integrity: sha512-5vvB5+W7ePv+p3uqxi+RcW1XAzLW0/hxt3/4X4Lc4qHudzOhmBiBwOY6DRob4WnanAEGvNcLjF+KNOufrUoEQw==} engines: {node: '>=12.20.0'} optionator@0.9.4: @@ -822,10 +786,6 @@ packages: resolution: {integrity: sha512-LaNjtRWUBY++zB5nE/NwcaoMylSPk+S+ZHNB1TzdbMJMny6dynpAGt7X/tl/QYq3TIeE6nxHppbo2LGymrG5Pw==} engines: {node: '>=10'} - parent-module@1.0.1: - resolution: {integrity: sha512-GQ2EWRpQV8/o+Aw8YqtfZZPfNRWZYkbidE9k5rpl/hC3vtHHBfGm2Ifi6qWV+coDGkrUKZAxE3Lot5kcsRlh+g==} - engines: {node: '>=6'} - path-exists@4.0.0: resolution: {integrity: sha512-ak9Qy5Q7jYb2Wwcey5Fpvg2KoAc/ZIhLSLOSBmRmygPsGwkVVt0fZa0qrtMz+m6tJTAHfZQ8FnmB4MG4LWy7/w==} engines: {node: '>=8'} @@ -837,9 +797,6 @@ packages: path-parse@1.0.7: resolution: {integrity: sha512-LDJzPVEEEPR+y48z93A0Ed0yXb8pAByGWo/k5YYdYgpY2/2EsOsksJrq7lOHxryrVOn1ejG6oAp8ahvOIQD8sw==} - pathe@2.0.3: - resolution: {integrity: sha512-WUjGcAqP1gQacoQe+OBJsFA7Ld4DyXuUIjZ5cc75cLHvJ7dtNsTugphxIADwspS+AraAUePCKrSVtPLFj/F88w==} - picocolors@1.1.1: resolution: {integrity: sha512-xceH2snhtb5M9liqDsmEw56le376mTZkEX/jEb/RxNFyegNul7eNslCXP9FDj/Lcu0X8KEyMceP2ntpaHrDEVA==} @@ -859,9 +816,9 @@ packages: resolution: {integrity: sha512-vYt7UD1U9Wg6138shLtLOvdAu+8DsC/ilFtEVHcH+wydcSpNE20AfSOduf6MkRFahL5FY7X1oU7nKVZFtfq8Fg==} engines: {node: '>=6'} - resolve-from@4.0.0: - resolution: {integrity: sha512-pb/MYmXstAkysRFx8piNI1tGFNQIFA3vkE3Gq4EuA1dF6gHp/+vgZqsCGJapvy8N3Q+4o7FwvquPJcnZ7RYy4g==} - engines: {node: '>=4'} + qified@0.10.1: + resolution: {integrity: sha512-+Owyggi9IxT1ePKGafcI87ubSmxol6smwJ+RAHDQlx9+9cPwFWDiKFFCPuWhr9ignlGpZ9vDQLw67N4dcTVFEA==} + engines: {node: '>=20'} resolve@1.22.13: resolution: {integrity: sha512-Dj/cW9zBV2aRj6XzCxuGIs3ESZKv02jixne3q6jFZYZ3/Tg09gHHviSMDL4kObh9pqSahdRHEnDoaP2gn8YLhA==} @@ -890,9 +847,6 @@ packages: resolution: {integrity: sha512-7++dFhtcx3353uBaq8DDR4NuxBetBzC7ZQOhmTQInHEd6bSrXdiEyzCvG07Z44UYdLShWUyXt5M/yhz8ekcb1A==} engines: {node: '>=8'} - siginfo@2.0.0: - resolution: {integrity: sha512-ybx0WO1/8bSBLEWXZvEd7gMW3Sn3JFlW3TvX1nREbDLRNQNaeNN8WK0meBwPdAaOI7TtRRRJn/Es1zhrrCHu7g==} - smob@1.6.2: resolution: {integrity: sha512-RQsvleCbF8cVHEv+xuDGaA4pOizFqJ0GgjtMSRo6oP8pnN7WsigHgVGey6aILRBKv4W2YOMHLqbKdnB6hpB9fw==} engines: {node: '>=20.0.0'} @@ -908,20 +862,9 @@ packages: resolution: {integrity: sha512-UjgapumWlbMhkBgzT7Ykc5YXUT46F0iKu8SGXq0bcwP5dz/h0Plj6enJqjz1Zbq2l5WaqYnrVbwWOWMyF3F47g==} engines: {node: '>=0.10.0'} - stackback@0.0.2: - resolution: {integrity: sha512-1XMJE5fQo1jGH6Y/7ebnwPOBEkIEnT4QF32d5R1+VXdXveM0IBMJt8zfaxX1P3QhVwrYe+576+jkANtSS2mBbw==} - std-env@4.3.0: resolution: {integrity: sha512-OtU/EgQ1kIm5KwqQpBC6ZEMXrZRui11w8zgfTWp8cdO9B8OaPsbA8bTHO2P+HNo1VlUTGMVBwPhydu6poeXiag==} - strip-json-comments@3.1.1: - resolution: {integrity: sha512-6fPc+R4ihwqP6N/aIv2f1gMH8lOVtWQHoqC4yK6oSDVVocumAsfCqjkXnqiYMhmMwS/mEHLp7Vehlt3ql6lEig==} - engines: {node: '>=8'} - - supports-color@7.2.0: - resolution: {integrity: sha512-qpCAvRl9stuOHveKsn7HncJRvv501qIacKzQlO/+Lwxc9+0q2wLyv4Dfvt80/DPn2pqOBsJdDiogXGR9+OvwRw==} - engines: {node: '>=8'} - supports-preserve-symlinks-flag@1.0.0: resolution: {integrity: sha512-ot0WnXS9fgdkgIcePe6RHNk1WA8+muPa6cSjeR3V8K27q9BB1rTE3R1p7Hv0z1ZyAc8s6Vvv8DIyWf681MAt0w==} engines: {node: '>= 0.4'} @@ -931,8 +874,9 @@ packages: engines: {node: '>=10'} hasBin: true - tinybench@2.9.0: - resolution: {integrity: sha512-0+DUvqWMValLmha6lr4kD8iAMK1HzV0/aKnCtWb9v9641TnP/MFb7Pc2bxoxQjTXAErryXVgUOfv2YqNllqGeg==} + tinybench@6.2.3: + resolution: {integrity: sha512-Al01C2JIBnO2CXCAPbpAl6sUiOZHeThGtHYNTa51JRw9PyWOCdr+9Ong05R4qg/Sk3+H645E8ov1h2c58ityNw==} + engines: {node: '>=20.0.0'} tinyexec@1.3.1: resolution: {integrity: sha512-GCvB3aoys96IuDFBMcTB46JOR6mdMtAToqwiW8JlWhsoh1mhHi/xn9ss/Dg7N555GiJyEt2qzoG/NHCwM6h1EA==} @@ -942,10 +886,6 @@ packages: resolution: {integrity: sha512-wXR/dYpcqKmfWpEdZjiKJOwCNFndD0DMnrW/cYjVGttEkBfVgcLFHoNrlj47mjOVic9yyNu65alsgF4NQyTa2g==} engines: {node: '>=12.0.0'} - tinyrainbow@3.2.0: - resolution: {integrity: sha512-LgO3D9yZJjApUiuUfl9iFAwrtaX4+lok3wJIqttGoKCHlWUqHqbQpnxCf82L8FjgKsh4iGo78hqJwgL8F6To2A==} - engines: {node: '>=14.0.0'} - type-check@0.4.0: resolution: {integrity: sha512-XleUoc9uwGXqjWwXaUTZAmzMcFZ5858QA2vvx1Ur5xIcixXIP+8LnFDgRplU30us6teqdlskFfu+ae4K79Ooew==} engines: {node: '>= 0.8.0'} @@ -996,23 +936,23 @@ packages: yaml: optional: true - vitest@4.1.12: - resolution: {integrity: sha512-5eWdz2yb3ajxWF3C8C4TjkXl7FGm3n2E/VlazALrQHzK7nYMSGFnCZto0bbPNl77AwkOZVLk0YnBAejUu0NiWA==} - engines: {node: ^20.0.0 || ^22.0.0 || >=24.0.0} + vitest@5.1.0: + resolution: {integrity: sha512-MzmNFnrwa8v8lF1bLxw3UJ4EREwVOVb75VqJZmUDRjJ6EluK/x9th7qTbaeDk41WxE1GxWqmTXcdsfobfH5sOA==} + engines: {node: ^22.12.0 || ^24.0.0 || >=26.0.0} hasBin: true peerDependencies: '@edge-runtime/vm': '*' '@opentelemetry/api': ^1.9.0 - '@types/node': ^20.0.0 || ^22.0.0 || >=24.0.0 - '@vitest/browser-playwright': 4.1.12 - '@vitest/browser-preview': 4.1.12 - '@vitest/browser-webdriverio': ^4.1.11 - '@vitest/coverage-istanbul': 4.1.12 - '@vitest/coverage-v8': 4.1.12 - '@vitest/ui': 4.1.12 + '@types/node': ^22.0.0 || >=24.0.0 + '@vitest/browser-playwright': 5.1.0 + '@vitest/browser-preview': 5.1.0 + '@vitest/browser-webdriverio': ^5.0.0-beta.5 || >=5.0.0 + '@vitest/coverage-istanbul': 5.1.0 + '@vitest/coverage-v8': 5.1.0 + '@vitest/ui': 5.1.0 happy-dom: '*' jsdom: '*' - vite: ^6.0.0 || ^7.0.0 || ^8.0.0 + vite: ^6.4.0 || ^7.0.0 || ^8.0.0 peerDependenciesMeta: '@edge-runtime/vm': optional: true @@ -1042,9 +982,9 @@ packages: engines: {node: '>= 8'} hasBin: true - why-is-node-running@2.3.0: - resolution: {integrity: sha512-hUrmaWBdVDcxvYqnyh09zunKzROWjbZTiNy8dBEjkS7ehEDQibXJ7XvlmtbwuTclUiIyN+CyXQD4Vmko8fNm8w==} - engines: {node: '>=8'} + why-is-node-running@3.2.1: + resolution: {integrity: sha512-Tb2FUhB4vUsGQlfSquQLYkApkuPAFQXGFzxWKHHumVz2dK+X1RUm/HnID4+TfIGYJ1kTcwOaCk/buYCEJr6YjQ==} + engines: {node: '>=20.11'} hasBin: true word-wrap@1.2.5: @@ -1057,50 +997,50 @@ packages: snapshots: - '@eslint-community/eslint-utils@4.10.1(eslint@9.39.5)': + '@cacheable/memory@2.2.0': dependencies: - eslint: 9.39.5 + '@cacheable/utils': 2.5.0 + '@keyv/bigmap': 1.3.1(keyv@5.6.0) + hookified: 1.15.1 + keyv: 5.6.0 + + '@cacheable/utils@2.5.0': + dependencies: + hashery: 1.5.1 + keyv: 5.6.0 + + '@eslint-community/eslint-utils@4.10.1(eslint@10.14.0)': + dependencies: + eslint: 10.14.0 eslint-visitor-keys: 3.4.3 '@eslint-community/regexpp@4.12.2': {} - '@eslint/config-array@0.21.2': + '@eslint/config-array@0.23.5': dependencies: - '@eslint/object-schema': 2.1.7 + '@eslint/object-schema': 3.0.5 debug: 4.4.3 - minimatch: 3.1.5 + minimatch: 10.2.6 transitivePeerDependencies: - supports-color - '@eslint/config-helpers@0.4.2': + '@eslint/config-helpers@0.7.0': dependencies: - '@eslint/core': 0.17.0 + '@eslint/core': 1.2.1 - '@eslint/core@0.17.0': + '@eslint/core@1.2.1': dependencies: '@types/json-schema': 7.0.15 - '@eslint/eslintrc@3.3.7': - dependencies: - ajv: 6.15.0 - debug: 4.4.3 - espree: 10.4.0 - globals: 14.0.0 - ignore: 5.3.2 - import-fresh: 3.3.1 - js-yaml: 4.3.2 - minimatch: 3.1.5 - strip-json-comments: 3.1.1 - transitivePeerDependencies: - - supports-color - - '@eslint/js@9.39.5': {} + '@eslint/js@10.0.1(eslint@10.14.0)': + optionalDependencies: + eslint: 10.14.0 - '@eslint/object-schema@2.1.7': {} + '@eslint/object-schema@3.0.5': {} - '@eslint/plugin-kit@0.4.1': + '@eslint/plugin-kit@0.7.3': dependencies: - '@eslint/core': 0.17.0 + '@eslint/core': 1.2.1 levn: 0.4.1 '@humanfs/core@0.19.2': @@ -1138,6 +1078,14 @@ snapshots: '@jridgewell/resolve-uri': 3.1.2 '@jridgewell/sourcemap-codec': 1.6.0 + '@keyv/bigmap@1.3.1(keyv@5.6.0)': + dependencies: + hashery: 1.5.1 + hookified: 1.15.1 + keyv: 5.6.0 + + '@keyv/serialize@1.1.1': {} + '@napi-rs/lzma-linux-x64-gnu@1.5.1': optional: true @@ -1294,8 +1242,6 @@ snapshots: '@rollup/rollup-win32-x64-msvc@4.67.4': optional: true - '@standard-schema/spec@1.1.0': {} - '@types/chai@5.2.3': dependencies: '@types/deep-eql': 4.0.2 @@ -1303,52 +1249,24 @@ snapshots: '@types/deep-eql@4.0.2': {} + '@types/esrecurse@4.3.1': {} + '@types/estree@1.0.10': {} '@types/json-schema@7.0.15': {} '@types/resolve@1.20.2': {} - '@vitest/expect@4.1.12': + '@vitest/mocker@5.1.0(vite@8.3.5(terser@5.51.2))': dependencies: - '@standard-schema/spec': 1.1.0 - '@types/chai': 5.2.3 - '@vitest/spy': 4.1.12 - '@vitest/utils': 4.1.12 - chai: 6.3.0 - tinyrainbow: 3.2.0 - - '@vitest/mocker@4.1.12(vite@8.3.5(terser@5.51.2))': - dependencies: - '@vitest/spy': 4.1.12 + '@jridgewell/trace-mapping': 0.3.31 + '@vitest/spy': 5.1.0 estree-walker: 3.0.3 - magic-string: 0.30.21 + magic-string: 1.4.5 optionalDependencies: vite: 8.3.5(terser@5.51.2) - '@vitest/pretty-format@4.1.12': - dependencies: - tinyrainbow: 3.2.0 - - '@vitest/runner@4.1.12': - dependencies: - '@vitest/utils': 4.1.12 - pathe: 2.0.3 - - '@vitest/snapshot@4.1.12': - dependencies: - '@vitest/pretty-format': 4.1.12 - '@vitest/utils': 4.1.12 - magic-string: 0.30.21 - pathe: 2.0.3 - - '@vitest/spy@4.1.12': {} - - '@vitest/utils@4.1.12': - dependencies: - '@vitest/pretty-format': 4.1.12 - convert-source-map: 2.0.0 - tinyrainbow: 3.2.0 + '@vitest/spy@5.1.0': {} acorn-jsx@5.3.2(acorn@8.19.0): dependencies: @@ -1363,44 +1281,28 @@ snapshots: json-schema-traverse: 0.4.1 uri-js: 4.4.1 - ansi-styles@4.3.0: - dependencies: - color-convert: 2.0.1 - - argparse@2.0.1: {} - assertion-error@2.0.1: {} - balanced-match@1.0.2: {} + balanced-match@4.0.4: {} - brace-expansion@1.1.21: + brace-expansion@5.0.12: dependencies: - balanced-match: 1.0.2 - concat-map: 0.0.1 + balanced-match: 4.0.4 buffer-from@1.1.2: {} - callsites@3.1.0: {} - - chai@6.3.0: {} - - chalk@4.1.2: + cacheable@2.5.0: dependencies: - ansi-styles: 4.3.0 - supports-color: 7.2.0 + '@cacheable/memory': 2.2.0 + '@cacheable/utils': 2.5.0 + hookified: 1.15.1 + keyv: 5.6.0 + qified: 0.10.1 - color-convert@2.0.1: - dependencies: - color-name: 1.1.4 - - color-name@1.1.4: {} + chai@6.3.0: {} commander@2.20.3: {} - concat-map@0.0.1: {} - - convert-source-map@2.0.0: {} - cross-spawn@7.0.6: dependencies: path-key: 3.1.1 @@ -1431,59 +1333,57 @@ snapshots: escape-string-regexp@4.0.0: {} - eslint-scope@8.4.0: + eslint-scope@9.1.2: dependencies: + '@types/esrecurse': 4.3.1 + '@types/estree': 1.0.10 esrecurse: 4.3.0 estraverse: 5.3.0 eslint-visitor-keys@3.4.3: {} - eslint-visitor-keys@4.2.1: {} + eslint-visitor-keys@5.0.1: {} - eslint@9.39.5: + eslint@10.14.0: dependencies: - '@eslint-community/eslint-utils': 4.10.1(eslint@9.39.5) + '@eslint-community/eslint-utils': 4.10.1(eslint@10.14.0) '@eslint-community/regexpp': 4.12.2 - '@eslint/config-array': 0.21.2 - '@eslint/config-helpers': 0.4.2 - '@eslint/core': 0.17.0 - '@eslint/eslintrc': 3.3.7 - '@eslint/js': 9.39.5 - '@eslint/plugin-kit': 0.4.1 + '@eslint/config-array': 0.23.5 + '@eslint/config-helpers': 0.7.0 + '@eslint/core': 1.2.1 + '@eslint/plugin-kit': 0.7.3 '@humanfs/node': 0.16.8 '@humanwhocodes/module-importer': 1.0.1 '@humanwhocodes/retry': 0.4.3 '@types/estree': 1.0.10 ajv: 6.15.0 - chalk: 4.1.2 cross-spawn: 7.0.6 debug: 4.4.3 escape-string-regexp: 4.0.0 - eslint-scope: 8.4.0 - eslint-visitor-keys: 4.2.1 - espree: 10.4.0 + eslint-scope: 9.1.2 + eslint-visitor-keys: 5.0.1 + espree: 11.2.0 esquery: 1.7.0 esutils: 2.0.3 fast-deep-equal: 3.1.3 - file-entry-cache: 8.0.0 + file-entry-cache: 11.1.5 find-up: 5.0.0 glob-parent: 6.0.2 ignore: 5.3.2 imurmurhash: 0.1.4 is-glob: 4.0.3 json-stable-stringify-without-jsonify: 1.0.1 - lodash.merge: 4.6.2 - minimatch: 3.1.5 + minimatch: 10.2.6 natural-compare: 1.4.0 optionator: 0.9.4 transitivePeerDependencies: - supports-color - espree@10.4.0: + espree@11.2.0: dependencies: acorn: 8.19.0 acorn-jsx: 5.3.2(acorn@8.19.0) - eslint-visitor-keys: 4.2.1 + eslint-visitor-keys: 5.0.1 esquery@1.7.0: dependencies: @@ -1515,19 +1415,20 @@ snapshots: optionalDependencies: picomatch: 4.0.7 - file-entry-cache@8.0.0: + file-entry-cache@11.1.5: dependencies: - flat-cache: 4.0.1 + flat-cache: 6.1.23 find-up@5.0.0: dependencies: locate-path: 6.0.0 path-exists: 4.0.0 - flat-cache@4.0.1: + flat-cache@6.1.23: dependencies: + cacheable: 2.5.0 flatted: 3.4.4 - keyv: 4.5.4 + hookified: 1.15.1 flatted@3.4.4: {} @@ -1540,22 +1441,21 @@ snapshots: dependencies: is-glob: 4.0.3 - globals@14.0.0: {} - globals@17.14.0: {} - has-flag@4.0.0: {} + hashery@1.5.1: + dependencies: + hookified: 1.15.1 hasown@2.0.4: dependencies: function-bind: 1.1.2 - ignore@5.3.2: {} + hookified@1.15.1: {} - import-fresh@3.3.1: - dependencies: - parent-module: 1.0.1 - resolve-from: 4.0.0 + hookified@2.2.0: {} + + ignore@5.3.2: {} imurmurhash@0.1.4: {} @@ -1575,19 +1475,13 @@ snapshots: isexe@2.0.0: {} - js-yaml@4.3.2: - dependencies: - argparse: 2.0.1 - - json-buffer@3.0.1: {} - json-schema-traverse@0.4.1: {} json-stable-stringify-without-jsonify@1.0.1: {} - keyv@4.5.4: + keyv@5.6.0: dependencies: - json-buffer: 3.0.1 + '@keyv/serialize': 1.1.1 levn@0.4.1: dependencies: @@ -1647,15 +1541,13 @@ snapshots: dependencies: p-locate: 5.0.0 - lodash.merge@4.6.2: {} - - magic-string@0.30.21: + magic-string@1.4.5: dependencies: '@jridgewell/sourcemap-codec': 1.6.0 - minimatch@3.1.5: + minimatch@10.2.6: dependencies: - brace-expansion: 1.1.21 + brace-expansion: 5.0.12 ms@2.1.3: {} @@ -1663,7 +1555,7 @@ snapshots: natural-compare@1.4.0: {} - obug@2.2.1: {} + obug@3.0.0: {} optionator@0.9.4: dependencies: @@ -1682,18 +1574,12 @@ snapshots: dependencies: p-limit: 3.1.0 - parent-module@1.0.1: - dependencies: - callsites: 3.1.0 - path-exists@4.0.0: {} path-key@3.1.1: {} path-parse@1.0.7: {} - pathe@2.0.3: {} - picocolors@1.1.1: {} picomatch@4.0.7: {} @@ -1708,7 +1594,9 @@ snapshots: punycode@2.3.1: {} - resolve-from@4.0.0: {} + qified@0.10.1: + dependencies: + hookified: 2.2.0 resolve@1.22.13: dependencies: @@ -1779,8 +1667,6 @@ snapshots: shebang-regex@3.0.0: {} - siginfo@2.0.0: {} - smob@1.6.2: {} source-map-js@1.2.2: {} @@ -1792,16 +1678,8 @@ snapshots: source-map@0.6.1: {} - stackback@0.0.2: {} - std-env@4.3.0: {} - strip-json-comments@3.1.1: {} - - supports-color@7.2.0: - dependencies: - has-flag: 4.0.0 - supports-preserve-symlinks-flag@1.0.0: {} terser@5.51.2: @@ -1811,7 +1689,7 @@ snapshots: commander: 2.20.3 source-map-support: 0.5.21 - tinybench@2.9.0: {} + tinybench@6.2.3: {} tinyexec@1.3.1: {} @@ -1820,8 +1698,6 @@ snapshots: fdir: 6.5.0(picomatch@4.0.7) picomatch: 4.0.7 - tinyrainbow@3.2.0: {} - type-check@0.4.0: dependencies: prelude-ls: 1.2.1 @@ -1841,28 +1717,22 @@ snapshots: fsevents: 2.3.3 terser: 5.51.2 - vitest@4.1.12(vite@8.3.5(terser@5.51.2)): + vitest@5.1.0(vite@8.3.5(terser@5.51.2)): dependencies: - '@vitest/expect': 4.1.12 - '@vitest/mocker': 4.1.12(vite@8.3.5(terser@5.51.2)) - '@vitest/pretty-format': 4.1.12 - '@vitest/runner': 4.1.12 - '@vitest/snapshot': 4.1.12 - '@vitest/spy': 4.1.12 - '@vitest/utils': 4.1.12 + '@types/chai': 5.2.3 + '@vitest/mocker': 5.1.0(vite@8.3.5(terser@5.51.2)) + chai: 6.3.0 es-module-lexer: 2.3.2 expect-type: 1.4.0 - magic-string: 0.30.21 - obug: 2.2.1 - pathe: 2.0.3 + magic-string: 1.4.5 + obug: 3.0.0 picomatch: 4.0.7 std-env: 4.3.0 - tinybench: 2.9.0 + tinybench: 6.2.3 tinyexec: 1.3.1 tinyglobby: 0.2.17 - tinyrainbow: 3.2.0 vite: 8.3.5(terser@5.51.2) - why-is-node-running: 2.3.0 + why-is-node-running: 3.2.1 transitivePeerDependencies: - msw @@ -1870,10 +1740,7 @@ snapshots: dependencies: isexe: 2.0.0 - why-is-node-running@2.3.0: - dependencies: - siginfo: 2.0.0 - stackback: 0.0.2 + why-is-node-running@3.2.1: {} word-wrap@1.2.5: {} From 2611de25d7ff052101181410e3f01b7337d0afae Mon Sep 17 00:00:00 2001 From: Mike Bostock Date: Mon, 2 Nov 2026 18:19:38 -0800 Subject: [PATCH 04/10] import it from vitest Co-Authored-By: Claude Opus 5.5 --- test/defaultLocale-test.js | 20 +++++----- test/format-test.js | 68 ++++++++++++++++----------------- test/isoFormat-test.js | 4 +- test/isoParse-test.js | 4 +- test/locale-test.js | 4 +- test/parse-test.js | 78 +++++++++++++++++++------------------- test/utcFormat-test.js | 74 ++++++++++++++++++------------------ test/utcParse-test.js | 56 +++++++++++++-------------- 8 files changed, 154 insertions(+), 154 deletions(-) diff --git a/test/defaultLocale-test.js b/test/defaultLocale-test.js index 23a12c8..347065c 100644 --- a/test/defaultLocale-test.js +++ b/test/defaultLocale-test.js @@ -1,4 +1,4 @@ -import {test} from "vitest"; +import {it} from "vitest"; import assert from "assert"; import {readFileSync} from "fs"; import {timeFormat, timeFormatDefaultLocale, timeParse, utcFormat, utcParse} from "../src/index.js"; @@ -6,23 +6,23 @@ import {timeFormat, timeFormatDefaultLocale, timeParse, utcFormat, utcParse} fro const enUs = JSON.parse(readFileSync("./locale/en-US.json")); const frFr = JSON.parse(readFileSync("./locale/fr-FR.json")); -test("timeFormat(specifier) defaults to en-US", () => { +it("timeFormat(specifier) defaults to en-US", () => { assert.strictEqual(timeFormat("%c")(new Date(2000, 0, 1)), "1/1/2000, 12:00:00 AM"); }); -test("timeParse(specifier) defaults to en-US", () => { +it("timeParse(specifier) defaults to en-US", () => { assert.strictEqual(+timeParse("%c")("1/1/2000, 12:00:00 AM"), +new Date(2000, 0, 1)); }); -test("utcFormat(specifier) defaults to en-US", () => { +it("utcFormat(specifier) defaults to en-US", () => { assert.strictEqual(utcFormat("%c")(new Date(Date.UTC(2000, 0, 1))), "1/1/2000, 12:00:00 AM"); }); -test("utcParse(specifier) defaults to en-US", () => { +it("utcParse(specifier) defaults to en-US", () => { assert.strictEqual(+utcParse("%c")("1/1/2000, 12:00:00 AM"), +new Date(Date.UTC(2000, 0, 1))); }); -test("timeFormatDefaultLocale(definition) returns the new default locale", () => { +it("timeFormatDefaultLocale(definition) returns the new default locale", () => { const locale = timeFormatDefaultLocale(frFr); try { assert.strictEqual(locale.format("%c")(new Date(2000, 0, 1)), "samedi 1 janvier 2000 à 00:00:00"); @@ -31,7 +31,7 @@ test("timeFormatDefaultLocale(definition) returns the new default locale", () => } }); -test("timeFormatDefaultLocale(definition) affects timeFormat", () => { +it("timeFormatDefaultLocale(definition) affects timeFormat", () => { const locale = timeFormatDefaultLocale(frFr); try { assert.strictEqual(timeFormat, locale.format); @@ -41,7 +41,7 @@ test("timeFormatDefaultLocale(definition) affects timeFormat", () => { } }); -test("timeFormatDefaultLocale(definition) affects timeParse", () => { +it("timeFormatDefaultLocale(definition) affects timeParse", () => { const locale = timeFormatDefaultLocale(frFr); try { assert.strictEqual(timeParse, locale.parse); @@ -51,7 +51,7 @@ test("timeFormatDefaultLocale(definition) affects timeParse", () => { } }); -test("timeFormatDefaultLocale(definition) affects utcFormat", () => { +it("timeFormatDefaultLocale(definition) affects utcFormat", () => { const locale = timeFormatDefaultLocale(frFr); try { assert.strictEqual(utcFormat, locale.utcFormat); @@ -61,7 +61,7 @@ test("timeFormatDefaultLocale(definition) affects utcFormat", () => { } }); -test("timeFormatDefaultLocale(definition) affects utcParse", () => { +it("timeFormatDefaultLocale(definition) affects utcParse", () => { const locale = timeFormatDefaultLocale(frFr); try { assert.strictEqual(utcParse, locale.utcParse); diff --git a/test/format-test.js b/test/format-test.js index 354a9c6..bad101d 100644 --- a/test/format-test.js +++ b/test/format-test.js @@ -1,4 +1,4 @@ -import {test} from "vitest"; +import {it} from "vitest"; import assert from "assert"; import {timeSecond, timeMinute, timeHour, timeDay, timeMonth, timeWeek, timeYear} from "d3-time"; import {timeFormat} from "../src/index.js"; @@ -23,7 +23,7 @@ function multi(d) { : formatYear)(d); } -test("timeFormat(date) coerces the specified date to a Date", () => { +it("timeFormat(date) coerces the specified date to a Date", () => { const f = timeFormat("%c"); assert.strictEqual(f(+local(1990, 0, 1)), "1/1/1990, 12:00:00 AM"); assert.strictEqual(f(+local(1990, 0, 2)), "1/2/1990, 12:00:00 AM"); @@ -34,7 +34,7 @@ test("timeFormat(date) coerces the specified date to a Date", () => { assert.strictEqual(f(+local(1990, 0, 7)), "1/7/1990, 12:00:00 AM"); }); -test("timeFormat(\"%a\")(date) formats abbreviated weekdays", () => { +it("timeFormat(\"%a\")(date) formats abbreviated weekdays", () => { const f = timeFormat("%a"); assert.strictEqual(f(local(1990, 0, 1)), "Mon"); assert.strictEqual(f(local(1990, 0, 2)), "Tue"); @@ -45,7 +45,7 @@ test("timeFormat(\"%a\")(date) formats abbreviated weekdays", () => { assert.strictEqual(f(local(1990, 0, 7)), "Sun"); }); -test("timeFormat(\"%A\")(date) formats weekdays", () => { +it("timeFormat(\"%A\")(date) formats weekdays", () => { const f = timeFormat("%A"); assert.strictEqual(f(local(1990, 0, 1)), "Monday"); assert.strictEqual(f(local(1990, 0, 2)), "Tuesday"); @@ -56,7 +56,7 @@ test("timeFormat(\"%A\")(date) formats weekdays", () => { assert.strictEqual(f(local(1990, 0, 7)), "Sunday"); }); -test("timeFormat(\"%b\")(date) formats abbreviated months", () => { +it("timeFormat(\"%b\")(date) formats abbreviated months", () => { const f = timeFormat("%b"); assert.strictEqual(f(local(1990, 0, 1)), "Jan"); assert.strictEqual(f(local(1990, 1, 1)), "Feb"); @@ -72,7 +72,7 @@ test("timeFormat(\"%b\")(date) formats abbreviated months", () => { assert.strictEqual(f(local(1990, 11, 1)), "Dec"); }); -test("timeFormat(\"%B\")(date) formats months", () => { +it("timeFormat(\"%B\")(date) formats months", () => { const f = timeFormat("%B"); assert.strictEqual(f(local(1990, 0, 1)), "January"); assert.strictEqual(f(local(1990, 1, 1)), "February"); @@ -88,48 +88,48 @@ test("timeFormat(\"%B\")(date) formats months", () => { assert.strictEqual(f(local(1990, 11, 1)), "December"); }); -test("timeFormat(\"%c\")(date) formats localized dates and times", () => { +it("timeFormat(\"%c\")(date) formats localized dates and times", () => { const f = timeFormat("%c"); assert.strictEqual(f(local(1990, 0, 1)), "1/1/1990, 12:00:00 AM"); }); -test("timeFormat(\"%d\")(date) formats zero-padded dates", () => { +it("timeFormat(\"%d\")(date) formats zero-padded dates", () => { const f = timeFormat("%d"); assert.strictEqual(f(local(1990, 0, 1)), "01"); }); -test("timeFormat(\"%e\")(date) formats space-padded dates", () => { +it("timeFormat(\"%e\")(date) formats space-padded dates", () => { const f = timeFormat("%e"); assert.strictEqual(f(local(1990, 0, 1)), " 1"); }); -test("timeFormat(\"%g\")(date) formats zero-padded two-digit ISO 8601 years", () => { +it("timeFormat(\"%g\")(date) formats zero-padded two-digit ISO 8601 years", () => { const f = timeFormat("%g"); assert.strictEqual(f(local(2018, 11, 30, 0)), "18"); // Sunday assert.strictEqual(f(local(2018, 11, 31, 0)), "19"); // Monday assert.strictEqual(f(local(2019, 0, 1, 0)), "19"); }); -test("timeFormat(\"%G\")(date) formats zero-padded four-digit ISO 8601 years", () => { +it("timeFormat(\"%G\")(date) formats zero-padded four-digit ISO 8601 years", () => { const f = timeFormat("%G"); assert.strictEqual(f(local(2018, 11, 30, 0)), "2018"); // Sunday assert.strictEqual(f(local(2018, 11, 31, 0)), "2019"); // Monday assert.strictEqual(f(local(2019, 0, 1, 0)), "2019"); }); -test("timeFormat(\"%H\")(date) formats zero-padded hours (24)", () => { +it("timeFormat(\"%H\")(date) formats zero-padded hours (24)", () => { const f = timeFormat("%H"); assert.strictEqual(f(local(1990, 0, 1, 0)), "00"); assert.strictEqual(f(local(1990, 0, 1, 13)), "13"); }); -test("timeFormat(\"%I\")(date) formats zero-padded hours (12)", () => { +it("timeFormat(\"%I\")(date) formats zero-padded hours (12)", () => { const f = timeFormat("%I"); assert.strictEqual(f(local(1990, 0, 1, 0)), "12"); assert.strictEqual(f(local(1990, 0, 1, 13)), "01"); }); -test("timeFormat(\"%j\")(date) formats zero-padded day of year numbers", () => { +it("timeFormat(\"%j\")(date) formats zero-padded day of year numbers", () => { const f = timeFormat("%j"); assert.strictEqual(f(local(1990, 0, 1)), "001"); assert.strictEqual(f(local(1990, 5, 1)), "152"); @@ -141,25 +141,25 @@ test("timeFormat(\"%j\")(date) formats zero-padded day of year numbers", () => { assert.strictEqual(f(local(2010, 10, 8)), "312"); }); -test("timeFormat(\"%m\")(date) formats zero-padded months", () => { +it("timeFormat(\"%m\")(date) formats zero-padded months", () => { const f = timeFormat("%m"); assert.strictEqual(f(local(1990, 0, 1)), "01"); assert.strictEqual(f(local(1990, 9, 1)), "10"); }); -test("timeFormat(\"%M\")(date) formats zero-padded minutes", () => { +it("timeFormat(\"%M\")(date) formats zero-padded minutes", () => { const f = timeFormat("%M"); assert.strictEqual(f(local(1990, 0, 1, 0, 0)), "00"); assert.strictEqual(f(local(1990, 0, 1, 0, 32)), "32"); }); -test("timeFormat(\"%p\")(date) formats AM or PM", () => { +it("timeFormat(\"%p\")(date) formats AM or PM", () => { const f = timeFormat("%p"); assert.strictEqual(f(local(1990, 0, 1, 0)), "AM"); assert.strictEqual(f(local(1990, 0, 1, 13)), "PM"); }); -test("timeFormat(\"%q\")(date) formats quarters", () => { +it("timeFormat(\"%q\")(date) formats quarters", () => { const f = timeFormat("%q"); assert.strictEqual(f(local(1990, 0, 1)), "1"); assert.strictEqual(f(local(1990, 3, 1)), "2"); @@ -167,7 +167,7 @@ test("timeFormat(\"%q\")(date) formats quarters", () => { assert.strictEqual(f(local(1990, 9, 1)), "4"); }); -test("timeFormat(\"%S\")(date) formats zero-padded seconds", () => { +it("timeFormat(\"%S\")(date) formats zero-padded seconds", () => { const f = timeFormat("%S"); assert.strictEqual(f(local(1990, 0, 1, 0, 0, 0)), "00"); assert.strictEqual(f(local(1990, 0, 1, 0, 0, 32)), "32"); @@ -176,40 +176,40 @@ test("timeFormat(\"%S\")(date) formats zero-padded seconds", () => { assert.strictEqual(f2(local(1990, 0, 1, 0, 0, 32)), "32"); }); -test("timeFormat(\"%_S\")(date) formats space-padded seconds", () => { +it("timeFormat(\"%_S\")(date) formats space-padded seconds", () => { const f = timeFormat("%_S"); assert.strictEqual(f(local(1990, 0, 1, 0, 0, 0)), " 0"); assert.strictEqual(f(local(1990, 0, 1, 0, 0, 3)), " 3"); assert.strictEqual(f(local(1990, 0, 1, 0, 0, 32)), "32"); }); -test("timeFormat(\"-S\")(date) formats no-padded seconds", () => { +it("timeFormat(\"-S\")(date) formats no-padded seconds", () => { const f = timeFormat("%-S"); assert.strictEqual(f(local(1990, 0, 1, 0, 0, 0)), "0"); assert.strictEqual(f(local(1990, 0, 1, 0, 0, 3)), "3"); assert.strictEqual(f(local(1990, 0, 1, 0, 0, 32)), "32"); }); -test("timeFormat(\"%L\")(date) formats zero-padded milliseconds", () => { +it("timeFormat(\"%L\")(date) formats zero-padded milliseconds", () => { const f = timeFormat("%L"); assert.strictEqual(f(local(1990, 0, 1, 0, 0, 0, 0)), "000"); assert.strictEqual(f(local(1990, 0, 1, 0, 0, 0, 432)), "432"); }); -test("timeFormat(\"%u\")(date) formats week day numbers", () => { +it("timeFormat(\"%u\")(date) formats week day numbers", () => { const f = timeFormat("%u"); assert.strictEqual(f(local(1990, 0, 1, 0)), "1"); assert.strictEqual(f(local(1990, 0, 7, 0)), "7"); assert.strictEqual(f(local(2010, 2, 13, 23)), "6"); }); -test("timeFormat(\"%f\")(date) formats zero-padded microseconds", () => { +it("timeFormat(\"%f\")(date) formats zero-padded microseconds", () => { const f = timeFormat("%f"); assert.strictEqual(f(local(1990, 0, 1, 0, 0, 0, 0)), "000000"); assert.strictEqual(f(local(1990, 0, 1, 0, 0, 0, 432)), "432000"); }); -test("timeFormat(\"%U\")(date) formats zero-padded week numbers", () => { +it("timeFormat(\"%U\")(date) formats zero-padded week numbers", () => { const f = timeFormat("%U"); assert.strictEqual(f(local(1990, 0, 1, 0)), "00"); assert.strictEqual(f(local(1990, 5, 1, 0)), "21"); @@ -222,7 +222,7 @@ test("timeFormat(\"%U\")(date) formats zero-padded week numbers", () => { assert.strictEqual(f(local(2012, 0, 1, 0)), "01"); // Sunday! }); -test("timeFormat(\"%W\")(date) formats zero-padded week numbers", () => { +it("timeFormat(\"%W\")(date) formats zero-padded week numbers", () => { const f = timeFormat("%W"); assert.strictEqual(f(local(1990, 0, 1, 0)), "01"); // Monday! assert.strictEqual(f(local(1990, 5, 1, 0)), "22"); @@ -230,7 +230,7 @@ test("timeFormat(\"%W\")(date) formats zero-padded week numbers", () => { assert.strictEqual(f(local(2010, 10, 8, 0)), "45"); }); -test("timeFormat(\"%V\")(date) formats zero-padded ISO 8601 week numbers", () => { +it("timeFormat(\"%V\")(date) formats zero-padded ISO 8601 week numbers", () => { const f = timeFormat("%V"); assert.strictEqual(f(local(1990, 0, 1, 0)), "01"); assert.strictEqual(f(local(1990, 5, 1, 0)), "22"); @@ -244,26 +244,26 @@ test("timeFormat(\"%V\")(date) formats zero-padded ISO 8601 week numbers", () => assert.strictEqual(f(local(2016, 0, 1, 0)), "53"); }); -test("timeFormat(\"%x\")(date) formats localized dates", () => { +it("timeFormat(\"%x\")(date) formats localized dates", () => { const f = timeFormat("%x"); assert.strictEqual(f(local(1990, 0, 1)), "1/1/1990"); assert.strictEqual(f(local(2010, 5, 1)), "6/1/2010"); }); -test("timeFormat(\"%X\")(date) formats localized times", () => { +it("timeFormat(\"%X\")(date) formats localized times", () => { const f = timeFormat("%X"); assert.strictEqual(f(local(1990, 0, 1, 0, 0, 0)), "12:00:00 AM"); assert.strictEqual(f(local(1990, 0, 1, 13, 34, 59)), "1:34:59 PM"); }); -test("timeFormat(\"%y\")(date) formats zero-padded two-digit years", () => { +it("timeFormat(\"%y\")(date) formats zero-padded two-digit years", () => { const f = timeFormat("%y"); assert.strictEqual(f(local(+1990, 0, 1)), "90"); assert.strictEqual(f(local(+2002, 0, 1)), "02"); assert.strictEqual(f(local(-2, 0, 1)), "-02"); }); -test("timeFormat(\"%Y\")(date) formats zero-padded four-digit years", () => { +it("timeFormat(\"%Y\")(date) formats zero-padded four-digit years", () => { const f = timeFormat("%Y"); assert.strictEqual(f(local( 123, 0, 1)), "0123"); assert.strictEqual(f(local( 1990, 0, 1)), "1990"); @@ -272,17 +272,17 @@ test("timeFormat(\"%Y\")(date) formats zero-padded four-digit years", () => { assert.strictEqual(f(local( -2, 0, 1)), "-0002"); }); -test("timeFormat(\"%Z\")(date) formats time zones", () => { +it("timeFormat(\"%Z\")(date) formats time zones", () => { const f = timeFormat("%Z"); assert.strictEqual(f(local(1990, 0, 1)), "-0800"); }); -test("timeFormat(\"%%\")(date) formats literal percent signs", () => { +it("timeFormat(\"%%\")(date) formats literal percent signs", () => { const f = timeFormat("%%"); assert.strictEqual(f(local(1990, 0, 1)), "%"); }); -test("timeFormat(…) can be used to create a conditional multi-format", () => { +it("timeFormat(…) can be used to create a conditional multi-format", () => { assert.strictEqual(multi(local(1990, 0, 1, 0, 0, 0, 12)), ".012"); assert.strictEqual(multi(local(1990, 0, 1, 0, 0, 1, 0)), ":01"); assert.strictEqual(multi(local(1990, 0, 1, 0, 1, 0, 0)), "12:01"); diff --git a/test/isoFormat-test.js b/test/isoFormat-test.js index a44a1a9..d711d83 100644 --- a/test/isoFormat-test.js +++ b/test/isoFormat-test.js @@ -1,9 +1,9 @@ -import {test} from "vitest"; +import {it} from "vitest"; import assert from "assert"; import {isoFormat} from "../src/index.js"; import {utc} from "./date.js"; -test("isoFormat(date) returns an ISO 8601 UTC string", () => { +it("isoFormat(date) returns an ISO 8601 UTC string", () => { assert.strictEqual(isoFormat(utc(1990, 0, 1, 0, 0, 0)), "1990-01-01T00:00:00.000Z"); assert.strictEqual(isoFormat(utc(2011, 11, 31, 23, 59, 59)), "2011-12-31T23:59:59.000Z"); }); diff --git a/test/isoParse-test.js b/test/isoParse-test.js index 327869f..8beb417 100644 --- a/test/isoParse-test.js +++ b/test/isoParse-test.js @@ -1,9 +1,9 @@ -import {test} from "vitest"; +import {it} from "vitest"; import assert from "assert"; import {isoParse} from "../src/index.js"; import {utc} from "./date.js"; -test("isoParse as ISO 8601", () => { +it("isoParse as ISO 8601", () => { assert.deepStrictEqual(isoParse("1990-01-01T00:00:00.000Z"), utc(1990, 0, 1, 0, 0, 0)); assert.deepStrictEqual(isoParse("2011-12-31T23:59:59.000Z"), utc(2011, 11, 31, 23, 59, 59)); assert.strictEqual(isoParse("1990-01-01T00:00:00.000X"), null); diff --git a/test/locale-test.js b/test/locale-test.js index e2e843a..7ad5b14 100644 --- a/test/locale-test.js +++ b/test/locale-test.js @@ -1,10 +1,10 @@ -import {test} from "vitest"; +import {it} from "vitest"; import assert from "assert"; import {readdirSync, readFileSync} from "fs"; import {join} from "path"; import {timeFormatLocale} from "../src/index.js"; -test("locale data is valid", () => { +it("locale data is valid", () => { for (const localePath of readdirSync("locale")) { if (!/\.json$/i.test(localePath)) continue; const locale = JSON.parse(readFileSync(join("locale", localePath), "utf8")); diff --git a/test/parse-test.js b/test/parse-test.js index ac68cb9..b47cd0e 100644 --- a/test/parse-test.js +++ b/test/parse-test.js @@ -1,4 +1,4 @@ -import {test} from "vitest"; +import {it} from "vitest"; import assert from "assert"; import {readFileSync} from "fs"; import {timeFormatLocale, timeParse} from "../src/index.js"; @@ -6,7 +6,7 @@ import {local} from "./date.js"; const fiFi = JSON.parse(readFileSync("./locale/fi-FI.json")); -test("parse(string) coerces the specified string to a string", () => { +it("parse(string) coerces the specified string to a string", () => { const p = timeParse("%c"); assert.deepStrictEqual(p({toString: function() { return "1/1/1990, 12:00:00 AM"; }}), local(1990, 0, 1)); assert.deepStrictEqual(p({toString: function() { return "1/2/1990, 12:00:00 AM"; }}), local(1990, 0, 2)); @@ -17,33 +17,33 @@ test("parse(string) coerces the specified string to a string", () => { assert.deepStrictEqual(p({toString: function() { return "1/7/1990, 12:00:00 AM"; }}), local(1990, 0, 7)); }); -test("timeParse(specifier) coerces the specified specifier to a string", () => { +it("timeParse(specifier) coerces the specified specifier to a string", () => { const p = timeParse({toString: function() { return "%c"; }}); assert.deepStrictEqual(p("1/1/1990, 12:00:00 AM"), local(1990, 0, 1)); }); -test("timeParse(\"%a %m/%d/%Y\")(date) parses abbreviated weekday and date", () => { +it("timeParse(\"%a %m/%d/%Y\")(date) parses abbreviated weekday and date", () => { const p = timeParse("%a %m/%d/%Y"); assert.deepStrictEqual(p("Sun 01/01/1990"), local(1990, 0, 1)); assert.deepStrictEqual(p("Wed 02/03/1991"), local(1991, 1, 3)); assert.strictEqual(p("XXX 03/10/2010"), null); }); -test("timeParse(\"%A %m/%d/%Y\")(date) parses weekday and date", () => { +it("timeParse(\"%A %m/%d/%Y\")(date) parses weekday and date", () => { const p = timeParse("%A %m/%d/%Y"); assert.deepStrictEqual(p("Sunday 01/01/1990"), local(1990, 0, 1)); assert.deepStrictEqual(p("Wednesday 02/03/1991"), local(1991, 1, 3)); assert.strictEqual(p("Caturday 03/10/2010"), null); }); -test("timeParse(\"%U %Y\")(date) parses week number (Sunday) and year", () => { +it("timeParse(\"%U %Y\")(date) parses week number (Sunday) and year", () => { const p = timeParse("%U %Y"); assert.deepStrictEqual(p("00 1990"), local(1989, 11, 31)); assert.deepStrictEqual(p("05 1991"), local(1991, 1, 3)); assert.deepStrictEqual(p("01 1995"), local(1995, 0, 1)); }); -test("timeParse(\"%a %U %Y\")(date) parses abbreviated weekday, week number (Sunday) and year", () => { +it("timeParse(\"%a %U %Y\")(date) parses abbreviated weekday, week number (Sunday) and year", () => { const p = timeParse("%a %U %Y"); assert.deepStrictEqual(p("Mon 00 1990"), local(1990, 0, 1)); assert.deepStrictEqual(p("Sun 05 1991"), local(1991, 1, 3)); @@ -51,7 +51,7 @@ test("timeParse(\"%a %U %Y\")(date) parses abbreviated weekday, week number (Sun assert.strictEqual(p("XXX 03 2010"), null); }); -test("timeParse(\"%A %U %Y\")(date) parses weekday, week number (Sunday) and year", () => { +it("timeParse(\"%A %U %Y\")(date) parses weekday, week number (Sunday) and year", () => { const p = timeParse("%A %U %Y"); assert.deepStrictEqual(p("Monday 00 1990"), local(1990, 0, 1)); assert.deepStrictEqual(p("Sunday 05 1991"), local(1991, 1, 3)); @@ -59,7 +59,7 @@ test("timeParse(\"%A %U %Y\")(date) parses weekday, week number (Sunday) and yea assert.strictEqual(p("Caturday 03 2010"), null); }); -test("timeParse(\"%w %U %Y\")(date) parses numeric weekday (Sunday), week number (Sunday) and year", () => { +it("timeParse(\"%w %U %Y\")(date) parses numeric weekday (Sunday), week number (Sunday) and year", () => { const p = timeParse("%w %U %Y"); assert.deepStrictEqual(p("1 00 1990"), local(1990, 0, 1)); assert.deepStrictEqual(p("0 05 1991"), local(1991, 1, 3)); @@ -67,7 +67,7 @@ test("timeParse(\"%w %U %Y\")(date) parses numeric weekday (Sunday), week number assert.strictEqual(p("X 03 2010"), null); }); -test("timeParse(\"%w %V %G\")(date) parses numeric weekday, week number (ISO) and corresponding year", () => { +it("timeParse(\"%w %V %G\")(date) parses numeric weekday, week number (ISO) and corresponding year", () => { const p = timeParse("%w %V %G"); assert.deepStrictEqual(p("1 01 1990"), local(1990, 0, 1)); assert.deepStrictEqual(p("0 05 1991"), local(1991, 1, 3)); @@ -78,7 +78,7 @@ test("timeParse(\"%w %V %G\")(date) parses numeric weekday, week number (ISO) an assert.deepStrictEqual(p("1 01 2019"), local(2018, 11, 31)); }); -test("timeParse(\"%w %V %g\")(date) parses numeric weekday, week number (ISO) and corresponding two-digits year", () => { +it("timeParse(\"%w %V %g\")(date) parses numeric weekday, week number (ISO) and corresponding two-digits year", () => { const p = timeParse("%w %V %g"); assert.deepStrictEqual(p("1 01 90"), local(1990, 0, 1)); assert.deepStrictEqual(p("0 05 91"), local(1991, 1, 3)); @@ -89,7 +89,7 @@ test("timeParse(\"%w %V %g\")(date) parses numeric weekday, week number (ISO) an assert.deepStrictEqual(p("1 01 19"), local(2018, 11, 31)); }); -test("timeParse(\"%V %g\")(date) parses week number (ISO) and corresponding two-digits year", () => { +it("timeParse(\"%V %g\")(date) parses week number (ISO) and corresponding two-digits year", () => { const p = timeParse("%V %g"); assert.deepStrictEqual(p("01 90"), local(1990, 0, 1)); assert.deepStrictEqual(p("05 91"), local(1991, 0, 28)); @@ -100,7 +100,7 @@ test("timeParse(\"%V %g\")(date) parses week number (ISO) and corresponding two- assert.deepStrictEqual(p("01 19"), local(2018, 11, 31)); }); -test("timeParse(\"%u %U %Y\")(date) parses numeric weekday (Monday), week number (Monday) and year", () => { +it("timeParse(\"%u %U %Y\")(date) parses numeric weekday (Monday), week number (Monday) and year", () => { const p = timeParse("%u %W %Y"); assert.deepStrictEqual(p("1 00 1990"), local(1989, 11, 25)); assert.deepStrictEqual(p("1 01 1990"), local(1990, 0, 1)); @@ -110,14 +110,14 @@ test("timeParse(\"%u %U %Y\")(date) parses numeric weekday (Monday), week number assert.strictEqual(p("X 03 2010"), null); }); -test("timeParse(\"%W %Y\")(date) parses week number (Monday) and year", () => { +it("timeParse(\"%W %Y\")(date) parses week number (Monday) and year", () => { const p = timeParse("%W %Y"); assert.deepStrictEqual(p("01 1990"), local(1990, 0, 1)); assert.deepStrictEqual(p("04 1991"), local(1991, 0, 28)); assert.deepStrictEqual(p("00 1995"), local(1994, 11, 26)); }); -test("timeParse(\"%a %W %Y\")(date) parses abbreviated weekday, week number (Monday) and year", () => { +it("timeParse(\"%a %W %Y\")(date) parses abbreviated weekday, week number (Monday) and year", () => { const p = timeParse("%a %W %Y"); assert.deepStrictEqual(p("Mon 01 1990"), local(1990, 0, 1)); assert.deepStrictEqual(p("Sun 04 1991"), local(1991, 1, 3)); @@ -125,7 +125,7 @@ test("timeParse(\"%a %W %Y\")(date) parses abbreviated weekday, week number (Mon assert.strictEqual(p("XXX 03 2010"), null); }); -test("timeParse(\"%A %W %Y\")(date) parses weekday, week number (Monday) and year", () => { +it("timeParse(\"%A %W %Y\")(date) parses weekday, week number (Monday) and year", () => { const p = timeParse("%A %W %Y"); assert.deepStrictEqual(p("Monday 01 1990"), local(1990, 0, 1)); assert.deepStrictEqual(p("Sunday 04 1991"), local(1991, 1, 3)); @@ -133,7 +133,7 @@ test("timeParse(\"%A %W %Y\")(date) parses weekday, week number (Monday) and yea assert.strictEqual(p("Caturday 03 2010"), null); }); -test("timeParse(\"%w %W %Y\")(date) parses numeric weekday (Sunday), week number (Monday) and year", () => { +it("timeParse(\"%w %W %Y\")(date) parses numeric weekday (Sunday), week number (Monday) and year", () => { const p = timeParse("%w %W %Y"); assert.deepStrictEqual(p("1 01 1990"), local(1990, 0, 1)); assert.deepStrictEqual(p("0 04 1991"), local(1991, 1, 3)); @@ -141,7 +141,7 @@ test("timeParse(\"%w %W %Y\")(date) parses numeric weekday (Sunday), week number assert.strictEqual(p("X 03 2010"), null); }); -test("timeParse(\"%u %W %Y\")(date) parses numeric weekday (Monday), week number (Monday) and year", () => { +it("timeParse(\"%u %W %Y\")(date) parses numeric weekday (Monday), week number (Monday) and year", () => { const p = timeParse("%u %W %Y"); assert.deepStrictEqual(p("1 01 1990"), local(1990, 0, 1)); assert.deepStrictEqual(p("7 04 1991"), local(1991, 1, 3)); @@ -149,7 +149,7 @@ test("timeParse(\"%u %W %Y\")(date) parses numeric weekday (Monday), week number assert.strictEqual(p("X 03 2010"), null); }); -test("timeParse(\"%m/%d/%y\")(date) parses month, date and two-digit year", () => { +it("timeParse(\"%m/%d/%y\")(date) parses month, date and two-digit year", () => { const p = timeParse("%m/%d/%y"); assert.deepStrictEqual(p("02/03/69"), local(1969, 1, 3)); assert.deepStrictEqual(p("01/01/90"), local(1990, 0, 1)); @@ -158,40 +158,40 @@ test("timeParse(\"%m/%d/%y\")(date) parses month, date and two-digit year", () = assert.strictEqual(p("03/10/2010"), null); }); -test("timeParse(\"%x\")(date) parses locale date", () => { +it("timeParse(\"%x\")(date) parses locale date", () => { const p = timeParse("%x"); assert.deepStrictEqual(p("1/1/1990"), local(1990, 0, 1)); assert.deepStrictEqual(p("2/3/1991"), local(1991, 1, 3)); assert.deepStrictEqual(p("3/10/2010"), local(2010, 2, 10)); }); -test("timeParse(\"%b %d, %Y\")(date) parses abbreviated month, date and year", () => { +it("timeParse(\"%b %d, %Y\")(date) parses abbreviated month, date and year", () => { const p = timeParse("%b %d, %Y"); assert.deepStrictEqual(p("jan 01, 1990"), local(1990, 0, 1)); assert.deepStrictEqual(p("feb 2, 2010"), local(2010, 1, 2)); assert.strictEqual(p("jan. 1, 1990"), null); }); -test("timeParse(\"%B %d, %Y\")(date) parses month, date and year", () => { +it("timeParse(\"%B %d, %Y\")(date) parses month, date and year", () => { const p = timeParse("%B %d, %Y"); assert.deepStrictEqual(p("january 01, 1990"), local(1990, 0, 1)); assert.deepStrictEqual(p("February 2, 2010"), local(2010, 1, 2)); assert.strictEqual(p("jan 1, 1990"), null); }); -test("timeParse(\"%j %m/%d/%Y\")(date) parses day of year and date", () => { +it("timeParse(\"%j %m/%d/%Y\")(date) parses day of year and date", () => { const p = timeParse("%j %m/%d/%Y"); assert.deepStrictEqual(p("001 01/01/1990"), local(1990, 0, 1)); assert.deepStrictEqual(p("034 02/03/1991"), local(1991, 1, 3)); assert.strictEqual(p("2012 03/10/2010"), null); }); -test("timeParse(\"%c\")(date) parses locale date and time", () => { +it("timeParse(\"%c\")(date) parses locale date and time", () => { const p = timeParse("%c"); assert.deepStrictEqual(p("1/1/1990, 12:00:00 AM"), local(1990, 0, 1)); }); -test("timeParse(\"%H:%M:%S\")(date) parses twenty-four hour, minute and second", () => { +it("timeParse(\"%H:%M:%S\")(date) parses twenty-four hour, minute and second", () => { const p = timeParse("%H:%M:%S"); assert.deepStrictEqual(p("00:00:00"), local(1900, 0, 1, 0, 0, 0)); assert.deepStrictEqual(p("11:59:59"), local(1900, 0, 1, 11, 59, 59)); @@ -200,7 +200,7 @@ test("timeParse(\"%H:%M:%S\")(date) parses twenty-four hour, minute and second", assert.deepStrictEqual(p("23:59:59"), local(1900, 0, 1, 23, 59, 59)); }); -test("timeParse(\"%X\")(date) parses locale time", () => { +it("timeParse(\"%X\")(date) parses locale time", () => { const p = timeParse("%X"); assert.deepStrictEqual(p("12:00:00 AM"), local(1900, 0, 1, 0, 0, 0)); assert.deepStrictEqual(p("11:59:59 AM"), local(1900, 0, 1, 11, 59, 59)); @@ -209,17 +209,17 @@ test("timeParse(\"%X\")(date) parses locale time", () => { assert.deepStrictEqual(p("11:59:59 PM"), local(1900, 0, 1, 23, 59, 59)); }); -test("timeParse(\"%L\")(date) parses milliseconds", () => { +it("timeParse(\"%L\")(date) parses milliseconds", () => { const p = timeParse("%L"); assert.deepStrictEqual(p("432"), local(1900, 0, 1, 0, 0, 0, 432)); }); -test("timeParse(\"%f\")(date) parses microseconds", () => { +it("timeParse(\"%f\")(date) parses microseconds", () => { const p = timeParse("%f"); assert.deepStrictEqual(p("432000"), local(1900, 0, 1, 0, 0, 0, 432)); }); -test("timeParse(\"%I:%M:%S %p\")(date) parses twelve hour, minute and second", () => { +it("timeParse(\"%I:%M:%S %p\")(date) parses twelve hour, minute and second", () => { const p = timeParse("%I:%M:%S %p"); assert.deepStrictEqual(p("12:00:00 am"), local(1900, 0, 1, 0, 0, 0)); assert.deepStrictEqual(p("11:59:59 AM"), local(1900, 0, 1, 11, 59, 59)); @@ -228,7 +228,7 @@ test("timeParse(\"%I:%M:%S %p\")(date) parses twelve hour, minute and second", ( assert.deepStrictEqual(p("11:59:59 PM"), local(1900, 0, 1, 23, 59, 59)); }); -test("timeParse(\"%I %p\")(date) parses period in non-English locales", () => { +it("timeParse(\"%I %p\")(date) parses period in non-English locales", () => { const p = timeFormatLocale(fiFi).parse("%I:%M:%S %p"); assert.deepStrictEqual(p("12:00:00 a.m."), local(1900, 0, 1, 0, 0, 0)); assert.deepStrictEqual(p("11:59:59 A.M."), local(1900, 0, 1, 11, 59, 59)); @@ -237,7 +237,7 @@ test("timeParse(\"%I %p\")(date) parses period in non-English locales", () => { assert.deepStrictEqual(p("11:59:59 P.M."), local(1900, 0, 1, 23, 59, 59)); }); -test("timeParse(\"%Y %q\")(date) parses quarters", () => { +it("timeParse(\"%Y %q\")(date) parses quarters", () => { const p = timeParse("%Y %q"); assert.deepStrictEqual(p("1990 1"), local(1990, 0, 1)); assert.deepStrictEqual(p("1990 2"), local(1990, 3, 1)); @@ -245,7 +245,7 @@ test("timeParse(\"%Y %q\")(date) parses quarters", () => { assert.deepStrictEqual(p("1990 4"), local(1990, 9, 1)); }); -test("timeParse(\"%Y %q %m\")(date) gives the month number priority", () => { +it("timeParse(\"%Y %q %m\")(date) gives the month number priority", () => { const p = timeParse("%Y %q %m"); assert.deepStrictEqual(p("1990 1 2"), local(1990, 1, 1)); assert.deepStrictEqual(p("1990 2 5"), local(1990, 4, 1)); @@ -253,14 +253,14 @@ test("timeParse(\"%Y %q %m\")(date) gives the month number priority", () => { assert.deepStrictEqual(p("1990 4 9"), local(1990, 8, 1)); }); -test("timeParse(\"%% %m/%d/%Y\")(date) parses literal %", () => { +it("timeParse(\"%% %m/%d/%Y\")(date) parses literal %", () => { const p = timeParse("%% %m/%d/%Y"); assert.deepStrictEqual(p("% 01/01/1990"), local(1990, 0, 1)); assert.deepStrictEqual(p("% 02/03/1991"), local(1991, 1, 3)); assert.strictEqual(p("%% 03/10/2010"), null); }); -test("timeParse(\"%m/%d/%Y %Z\")(date) parses timezone offset", () => { +it("timeParse(\"%m/%d/%Y %Z\")(date) parses timezone offset", () => { const p = timeParse("%m/%d/%Y %Z"); assert.deepStrictEqual(p("01/02/1990 +0000"), local(1990, 0, 1, 16)); assert.deepStrictEqual(p("01/02/1990 +0100"), local(1990, 0, 1, 15)); @@ -270,29 +270,29 @@ test("timeParse(\"%m/%d/%Y %Z\")(date) parses timezone offset", () => { assert.deepStrictEqual(p("01/02/1990 -0800"), local(1990, 0, 2, 0)); }); -test("timeParse(\"%m/%d/%Y %Z\")(date) parses timezone offset in the form '+-hh:mm'", () => { +it("timeParse(\"%m/%d/%Y %Z\")(date) parses timezone offset in the form '+-hh:mm'", () => { const p = timeParse("%m/%d/%Y %Z"); assert.deepStrictEqual(p("01/02/1990 +01:30"), local(1990, 0, 1, 14, 30)); assert.deepStrictEqual(p("01/02/1990 -01:30"), local(1990, 0, 1, 17, 30)); }); -test("timeParse(\"%m/%d/%Y %Z\")(date) parses timezone offset in the form '+-hh'", () => { +it("timeParse(\"%m/%d/%Y %Z\")(date) parses timezone offset in the form '+-hh'", () => { const p = timeParse("%m/%d/%Y %Z"); assert.deepStrictEqual(p("01/02/1990 +01"), local(1990, 0, 1, 15)); assert.deepStrictEqual(p("01/02/1990 -01"), local(1990, 0, 1, 17)); }); -test("timeParse(\"%m/%d/%Y %Z\")(date) parses timezone offset in the form 'Z'", () => { +it("timeParse(\"%m/%d/%Y %Z\")(date) parses timezone offset in the form 'Z'", () => { const p = timeParse("%m/%d/%Y %Z"); assert.deepStrictEqual(p("01/02/1990 Z"), local(1990, 0, 1, 16)); }); -test("timeParse(\"%-m/%0d/%_Y\")(date) ignores optional padding modifier, skipping zeroes and spaces", () => { +it("timeParse(\"%-m/%0d/%_Y\")(date) ignores optional padding modifier, skipping zeroes and spaces", () => { const p = timeParse("%-m/%0d/%_Y"); assert.deepStrictEqual(p("01/ 1/1990"), local(1990, 0, 1)); }); -test("timeParse(\"%b %d, %Y\")(date) doesn't crash when given weird strings", () => { +it("timeParse(\"%b %d, %Y\")(date) doesn't crash when given weird strings", () => { try { Object.prototype.foo = 10; const p = timeParse("%b %d, %Y"); diff --git a/test/utcFormat-test.js b/test/utcFormat-test.js index 77784db..2dbc7f5 100644 --- a/test/utcFormat-test.js +++ b/test/utcFormat-test.js @@ -1,4 +1,4 @@ -import {test} from "vitest"; +import {it} from "vitest"; import assert from "assert"; import {utcSecond, utcMinute, utcHour, utcDay, utcMonth, utcWeek, utcYear} from "d3-time"; import {utcFormat} from "../src/index.js"; @@ -23,7 +23,7 @@ function multi(d) { : formatYear)(d); } -test("utcFormat(\"%a\")(date) formats abbreviated weekdays", () => { +it("utcFormat(\"%a\")(date) formats abbreviated weekdays", () => { const f = utcFormat("%a"); assert.strictEqual(f(utc(1990, 0, 1)), "Mon"); assert.strictEqual(f(utc(1990, 0, 2)), "Tue"); @@ -34,7 +34,7 @@ test("utcFormat(\"%a\")(date) formats abbreviated weekdays", () => { assert.strictEqual(f(utc(1990, 0, 7)), "Sun"); }); -test("utcFormat(\"%A\")(date) formats weekdays", () => { +it("utcFormat(\"%A\")(date) formats weekdays", () => { const f = utcFormat("%A"); assert.strictEqual(f(utc(1990, 0, 1)), "Monday"); assert.strictEqual(f(utc(1990, 0, 2)), "Tuesday"); @@ -45,7 +45,7 @@ test("utcFormat(\"%A\")(date) formats weekdays", () => { assert.strictEqual(f(utc(1990, 0, 7)), "Sunday"); }); -test("utcFormat(\"%b\")(date) formats abbreviated months", () => { +it("utcFormat(\"%b\")(date) formats abbreviated months", () => { const f = utcFormat("%b"); assert.strictEqual(f(utc(1990, 0, 1)), "Jan"); assert.strictEqual(f(utc(1990, 1, 1)), "Feb"); @@ -61,7 +61,7 @@ test("utcFormat(\"%b\")(date) formats abbreviated months", () => { assert.strictEqual(f(utc(1990, 11, 1)), "Dec"); }); -test("utcFormat(\"%B\")(date) formats months", () => { +it("utcFormat(\"%B\")(date) formats months", () => { const f = utcFormat("%B"); assert.strictEqual(f(utc(1990, 0, 1)), "January"); assert.strictEqual(f(utc(1990, 1, 1)), "February"); @@ -77,48 +77,48 @@ test("utcFormat(\"%B\")(date) formats months", () => { assert.strictEqual(f(utc(1990, 11, 1)), "December"); }); -test("utcFormat(\"%c\")(date) formats localized dates and times", () => { +it("utcFormat(\"%c\")(date) formats localized dates and times", () => { const f = utcFormat("%c"); assert.strictEqual(f(utc(1990, 0, 1)), "1/1/1990, 12:00:00 AM"); }); -test("utcFormat(\"%d\")(date) formats zero-padded dates", () => { +it("utcFormat(\"%d\")(date) formats zero-padded dates", () => { const f = utcFormat("%d"); assert.strictEqual(f(utc(1990, 0, 1)), "01"); }); -test("utcFormat(\"%e\")(date) formats space-padded dates", () => { +it("utcFormat(\"%e\")(date) formats space-padded dates", () => { const f = utcFormat("%e"); assert.strictEqual(f(utc(1990, 0, 1)), " 1"); }); -test("timeFormat(\"%g\")(date) formats zero-padded two-digit ISO 8601 years", () => { +it("timeFormat(\"%g\")(date) formats zero-padded two-digit ISO 8601 years", () => { const f = utcFormat("%g"); assert.strictEqual(f(utc(2018, 11, 30, 0)), "18"); // Sunday assert.strictEqual(f(utc(2018, 11, 31, 0)), "19"); // Monday assert.strictEqual(f(utc(2019, 0, 1, 0)), "19"); }); -test("utcFormat(\"%G\")(date) formats zero-padded four-digit ISO 8601 years", () => { +it("utcFormat(\"%G\")(date) formats zero-padded four-digit ISO 8601 years", () => { const f = utcFormat("%G"); assert.strictEqual(f(utc(2018, 11, 30, 0)), "2018"); // Sunday assert.strictEqual(f(utc(2018, 11, 31, 0)), "2019"); // Monday assert.strictEqual(f(utc(2019, 0, 1, 0)), "2019"); }); -test("utcFormat(\"%H\")(date) formats zero-padded hours (24)", () => { +it("utcFormat(\"%H\")(date) formats zero-padded hours (24)", () => { const f = utcFormat("%H"); assert.strictEqual(f(utc(1990, 0, 1, 0)), "00"); assert.strictEqual(f(utc(1990, 0, 1, 13)), "13"); }); -test("utcFormat(\"%I\")(date) formats zero-padded hours (12)", () => { +it("utcFormat(\"%I\")(date) formats zero-padded hours (12)", () => { const f = utcFormat("%I"); assert.strictEqual(f(utc(1990, 0, 1, 0)), "12"); assert.strictEqual(f(utc(1990, 0, 1, 13)), "01"); }); -test("utcFormat(\"%j\")(date) formats zero-padded day of year numbers", () => { +it("utcFormat(\"%j\")(date) formats zero-padded day of year numbers", () => { const f = utcFormat("%j"); assert.strictEqual(f(utc(1990, 0, 1)), "001"); assert.strictEqual(f(utc(1990, 5, 1)), "152"); @@ -130,25 +130,25 @@ test("utcFormat(\"%j\")(date) formats zero-padded day of year numbers", () => { assert.strictEqual(f(utc(2010, 10, 8)), "312"); }); -test("utcFormat(\"%m\")(date) formats zero-padded months", () => { +it("utcFormat(\"%m\")(date) formats zero-padded months", () => { const f = utcFormat("%m"); assert.strictEqual(f(utc(1990, 0, 1)), "01"); assert.strictEqual(f(utc(1990, 9, 1)), "10"); }); -test("utcFormat(\"%M\")(date) formats zero-padded minutes", () => { +it("utcFormat(\"%M\")(date) formats zero-padded minutes", () => { const f = utcFormat("%M"); assert.strictEqual(f(utc(1990, 0, 1, 0, 0)), "00"); assert.strictEqual(f(utc(1990, 0, 1, 0, 32)), "32"); }); -test("utcFormat(\"%p\")(date) formats AM or PM", () => { +it("utcFormat(\"%p\")(date) formats AM or PM", () => { const f = utcFormat("%p"); assert.strictEqual(f(utc(1990, 0, 1, 0)), "AM"); assert.strictEqual(f(utc(1990, 0, 1, 13)), "PM"); }); -test("utcFormat(\"%q\")(date) formats quarters", () => { +it("utcFormat(\"%q\")(date) formats quarters", () => { const f = utcFormat("%q"); assert.strictEqual(f(utc(1990, 0, 1)), "1"); assert.strictEqual(f(utc(1990, 3, 1)), "2"); @@ -156,33 +156,33 @@ test("utcFormat(\"%q\")(date) formats quarters", () => { assert.strictEqual(f(utc(1990, 9, 1)), "4"); }); -test("utcFormat(\"%Q\")(date) formats UNIX timestamps", () => { +it("utcFormat(\"%Q\")(date) formats UNIX timestamps", () => { const f = utcFormat("%Q"); assert.strictEqual(f(utc(1970, 0, 1, 0, 0, 0)), "0"); assert.strictEqual(f(utc(1990, 0, 1, 0, 0, 0)), "631152000000"); assert.strictEqual(f(utc(1990, 0, 1, 12, 34, 56)), "631197296000"); }); -test("utcFormat(\"%s\")(date) formats UNIX timetamps in seconds", () => { +it("utcFormat(\"%s\")(date) formats UNIX timetamps in seconds", () => { const f = utcFormat("%s"); assert.strictEqual(f(utc(1970, 0, 1, 0, 0, 0)), "0"); assert.strictEqual(f(utc(1990, 0, 1, 0, 0, 0)), "631152000"); assert.strictEqual(f(utc(1990, 0, 1, 12, 34, 56)), "631197296"); }); -test("utcFormat(\"%s.%L\")(date) formats UNIX timetamps in seconds and milliseconds", () => { +it("utcFormat(\"%s.%L\")(date) formats UNIX timetamps in seconds and milliseconds", () => { const f = utcFormat("%s.%L"); assert.strictEqual(f(utc(1990, 0, 1, 0, 0, 0, 123)), "631152000.123"); assert.strictEqual(f(utc(1990, 0, 1, 12, 34, 56, 789)), "631197296.789"); }); -test("utcFormat(\"%s.%f\")(date) formats UNIX timetamps in seconds and microseconds", () => { +it("utcFormat(\"%s.%f\")(date) formats UNIX timetamps in seconds and microseconds", () => { const f = utcFormat("%s.%f"); assert.strictEqual(f(utc(1990, 0, 1, 0, 0, 0, 123)), "631152000.123000"); assert.strictEqual(f(utc(1990, 0, 1, 12, 34, 56, 789)), "631197296.789000"); }); -test("utcFormat(\"%S\")(date) formats zero-padded seconds", () => { +it("utcFormat(\"%S\")(date) formats zero-padded seconds", () => { const f = utcFormat("%S"); assert.strictEqual(f(utc(1990, 0, 1, 0, 0, 0)), "00"); assert.strictEqual(f(utc(1990, 0, 1, 0, 0, 32)), "32"); @@ -191,40 +191,40 @@ test("utcFormat(\"%S\")(date) formats zero-padded seconds", () => { assert.strictEqual(f2(utc(1990, 0, 1, 0, 0, 32)), "32"); }); -test("utcFormat(\"%_S\")(date) formats space-padded seconds", () => { +it("utcFormat(\"%_S\")(date) formats space-padded seconds", () => { const f = utcFormat("%_S"); assert.strictEqual(f(utc(1990, 0, 1, 0, 0, 0)), " 0"); assert.strictEqual(f(utc(1990, 0, 1, 0, 0, 3)), " 3"); assert.strictEqual(f(utc(1990, 0, 1, 0, 0, 32)), "32"); }); -test("utcFormat(\"-S\")(date) formats no-padded seconds", () => { +it("utcFormat(\"-S\")(date) formats no-padded seconds", () => { const f = utcFormat("%-S"); assert.strictEqual(f(utc(1990, 0, 1, 0, 0, 0)), "0"); assert.strictEqual(f(utc(1990, 0, 1, 0, 0, 3)), "3"); assert.strictEqual(f(utc(1990, 0, 1, 0, 0, 32)), "32"); }); -test("utcFormat(\"%L\")(date) formats zero-padded milliseconds", () => { +it("utcFormat(\"%L\")(date) formats zero-padded milliseconds", () => { const f = utcFormat("%L"); assert.strictEqual(f(utc(1990, 0, 1, 0, 0, 0, 0)), "000"); assert.strictEqual(f(utc(1990, 0, 1, 0, 0, 0, 432)), "432"); }); -test("utcFormat(\"%u\")(date) formats week day numbers", () => { +it("utcFormat(\"%u\")(date) formats week day numbers", () => { const f = utcFormat("%u"); assert.strictEqual(f(utc(1990, 0, 1, 0)), "1"); assert.strictEqual(f(utc(1990, 0, 7, 0)), "7"); assert.strictEqual(f(utc(2010, 2, 13, 23)), "6"); }); -test("utcFormat(\"%f\")(date) formats zero-padded microseconds", () => { +it("utcFormat(\"%f\")(date) formats zero-padded microseconds", () => { const f = utcFormat("%f"); assert.strictEqual(f(utc(1990, 0, 1, 0, 0, 0, 0)), "000000"); assert.strictEqual(f(utc(1990, 0, 1, 0, 0, 0, 432)), "432000"); }); -test("utcFormat(\"%U\")(date) formats zero-padded week numbers", () => { +it("utcFormat(\"%U\")(date) formats zero-padded week numbers", () => { const f = utcFormat("%U"); assert.strictEqual(f(utc(1990, 0, 1, 0)), "00"); assert.strictEqual(f(utc(1990, 5, 1, 0)), "21"); @@ -237,7 +237,7 @@ test("utcFormat(\"%U\")(date) formats zero-padded week numbers", () => { assert.strictEqual(f(utc(2012, 0, 1, 0)), "01"); // Sunday! }); -test("utcFormat(\"%W\")(date) formats zero-padded week numbers", () => { +it("utcFormat(\"%W\")(date) formats zero-padded week numbers", () => { const f = utcFormat("%W"); assert.strictEqual(f(utc(1990, 0, 1, 0)), "01"); // Monday! assert.strictEqual(f(utc(1990, 5, 1, 0)), "22"); @@ -245,7 +245,7 @@ test("utcFormat(\"%W\")(date) formats zero-padded week numbers", () => { assert.strictEqual(f(utc(2010, 10, 8, 0)), "45"); }); -test("utcFormat(\"%V\")(date) formats zero-padded ISO 8601 week numbers", () => { +it("utcFormat(\"%V\")(date) formats zero-padded ISO 8601 week numbers", () => { const f = utcFormat("%V"); assert.strictEqual(f(utc(1990, 0, 1, 0)), "01"); assert.strictEqual(f(utc(1990, 5, 1, 0)), "22"); @@ -259,26 +259,26 @@ test("utcFormat(\"%V\")(date) formats zero-padded ISO 8601 week numbers", () => assert.strictEqual(f(utc(2016, 0, 1, 0)), "53"); }); -test("utcFormat(\"%x\")(date) formats localized dates", () => { +it("utcFormat(\"%x\")(date) formats localized dates", () => { const f = utcFormat("%x"); assert.strictEqual(f(utc(1990, 0, 1)), "1/1/1990"); assert.strictEqual(f(utc(2010, 5, 1)), "6/1/2010"); }); -test("utcFormat(\"%X\")(date) formats localized times", () => { +it("utcFormat(\"%X\")(date) formats localized times", () => { const f = utcFormat("%X"); assert.strictEqual(f(utc(1990, 0, 1, 0, 0, 0)), "12:00:00 AM"); assert.strictEqual(f(utc(1990, 0, 1, 13, 34, 59)), "1:34:59 PM"); }); -test("utcFormat(\"%y\")(date) formats zero-padded two-digit years", () => { +it("utcFormat(\"%y\")(date) formats zero-padded two-digit years", () => { const f = utcFormat("%y"); assert.strictEqual(f(utc(+1990, 0, 1)), "90"); assert.strictEqual(f(utc(+2002, 0, 1)), "02"); assert.strictEqual(f(utc(-2, 0, 1)), "-02"); }); -test("utcFormat(\"%Y\")(date) formats zero-padded four-digit years", () => { +it("utcFormat(\"%Y\")(date) formats zero-padded four-digit years", () => { const f = utcFormat("%Y"); assert.strictEqual(f(utc( 123, 0, 1)), "0123"); assert.strictEqual(f(utc( 1990, 0, 1)), "1990"); @@ -287,17 +287,17 @@ test("utcFormat(\"%Y\")(date) formats zero-padded four-digit years", () => { assert.strictEqual(f(utc( -2, 0, 1)), "-0002"); }); -test("utcFormat(\"%Z\")(date) formats time zones", () => { +it("utcFormat(\"%Z\")(date) formats time zones", () => { const f = utcFormat("%Z"); assert.strictEqual(f(utc(1990, 0, 1)), "+0000"); }); -test("utcFormat(\"%%\")(date) formats literal percent signs", () => { +it("utcFormat(\"%%\")(date) formats literal percent signs", () => { const f = utcFormat("%%"); assert.strictEqual(f(utc(1990, 0, 1)), "%"); }); -test("utcFormat(…) can be used to create a conditional multi-format", () => { +it("utcFormat(…) can be used to create a conditional multi-format", () => { assert.strictEqual(multi(utc(1990, 0, 1, 0, 0, 0, 12)), ".012"); assert.strictEqual(multi(utc(1990, 0, 1, 0, 0, 1, 0)), ":01"); assert.strictEqual(multi(utc(1990, 0, 1, 0, 1, 0, 0)), "12:01"); diff --git a/test/utcParse-test.js b/test/utcParse-test.js index 7324745..dda6948 100644 --- a/test/utcParse-test.js +++ b/test/utcParse-test.js @@ -1,61 +1,61 @@ -import {test} from "vitest"; +import {it} from "vitest"; import assert from "assert"; import {utcParse} from "../src/index.js"; import {local, utc} from "./date.js"; -test("utcParse(specifier) coerces the specified specifier to a string", () => { +it("utcParse(specifier) coerces the specified specifier to a string", () => { const p = utcParse({toString: function() { return "%c"; }}); assert.deepStrictEqual(p("1/1/1990, 12:00:00 AM"), utc(1990, 0, 1)); }); -test("utcParse(\"\")(date) parses abbreviated weekday and numeric date", () => { +it("utcParse(\"\")(date) parses abbreviated weekday and numeric date", () => { const p = utcParse("%a %m/%d/%Y"); assert.deepStrictEqual(p("Sun 01/01/1990"), utc(1990, 0, 1)); assert.deepStrictEqual(p("Wed 02/03/1991"), utc(1991, 1, 3)); assert.strictEqual(p("XXX 03/10/2010"), null); }); -test("utcParse(\"\")(date) parses weekday and numeric date", () => { +it("utcParse(\"\")(date) parses weekday and numeric date", () => { const p = utcParse("%A %m/%d/%Y"); assert.deepStrictEqual(p("Sunday 01/01/1990"), utc(1990, 0, 1)); assert.deepStrictEqual(p("Wednesday 02/03/1991"), utc(1991, 1, 3)); assert.strictEqual(p("Caturday 03/10/2010"), null); }); -test("utcParse(\"\")(date) parses numeric date", () => { +it("utcParse(\"\")(date) parses numeric date", () => { const p = utcParse("%m/%d/%y"); assert.deepStrictEqual(p("01/01/90"), utc(1990, 0, 1)); assert.deepStrictEqual(p("02/03/91"), utc(1991, 1, 3)); assert.strictEqual(p("03/10/2010"), null); }); -test("utcParse(\"\")(date) parses locale date", () => { +it("utcParse(\"\")(date) parses locale date", () => { const p = utcParse("%x"); assert.deepStrictEqual(p("01/01/1990"), utc(1990, 0, 1)); assert.deepStrictEqual(p("02/03/1991"), utc(1991, 1, 3)); assert.deepStrictEqual(p("03/10/2010"), utc(2010, 2, 10)); }); -test("utcParse(\"\")(date) parses abbreviated month, date and year", () => { +it("utcParse(\"\")(date) parses abbreviated month, date and year", () => { const p = utcParse("%b %d, %Y"); assert.deepStrictEqual(p("jan 01, 1990"), utc(1990, 0, 1)); assert.deepStrictEqual(p("feb 2, 2010"), utc(2010, 1, 2)); assert.strictEqual(p("jan. 1, 1990"), null); }); -test("utcParse(\"\")(date) parses month, date and year", () => { +it("utcParse(\"\")(date) parses month, date and year", () => { const p = utcParse("%B %d, %Y"); assert.deepStrictEqual(p("january 01, 1990"), utc(1990, 0, 1)); assert.deepStrictEqual(p("February 2, 2010"), utc(2010, 1, 2)); assert.strictEqual(p("jan 1, 1990"), null); }); -test("utcParse(\"\")(date) parses locale date and time", () => { +it("utcParse(\"\")(date) parses locale date and time", () => { const p = utcParse("%c"); assert.deepStrictEqual(p("1/1/1990, 12:00:00 AM"), utc(1990, 0, 1)); }); -test("utcParse(\"\")(date) parses twenty-four hour, minute and second", () => { +it("utcParse(\"\")(date) parses twenty-four hour, minute and second", () => { const p = utcParse("%H:%M:%S"); assert.deepStrictEqual(p("00:00:00"), utc(1900, 0, 1, 0, 0, 0)); assert.deepStrictEqual(p("11:59:59"), utc(1900, 0, 1, 11, 59, 59)); @@ -64,7 +64,7 @@ test("utcParse(\"\")(date) parses twenty-four hour, minute and second", () => { assert.deepStrictEqual(p("23:59:59"), utc(1900, 0, 1, 23, 59, 59)); }); -test("utcParse(\"\")(date) parses locale time", () => { +it("utcParse(\"\")(date) parses locale time", () => { const p = utcParse("%X"); assert.deepStrictEqual(p("12:00:00 AM"), utc(1900, 0, 1, 0, 0, 0)); assert.deepStrictEqual(p("11:59:59 AM"), utc(1900, 0, 1, 11, 59, 59)); @@ -73,17 +73,17 @@ test("utcParse(\"\")(date) parses locale time", () => { assert.deepStrictEqual(p("11:59:59 PM"), utc(1900, 0, 1, 23, 59, 59)); }); -test("utcParse(\"%L\")(date) parses milliseconds", () => { +it("utcParse(\"%L\")(date) parses milliseconds", () => { const p = utcParse("%L"); assert.deepStrictEqual(p("432"), utc(1900, 0, 1, 0, 0, 0, 432)); }); -test("utcParse(\"%f\")(date) parses microseconds", () => { +it("utcParse(\"%f\")(date) parses microseconds", () => { const p = utcParse("%f"); assert.deepStrictEqual(p("432000"), utc(1900, 0, 1, 0, 0, 0, 432)); }); -test("utcParse(\"\")(date) parses twelve hour, minute and second", () => { +it("utcParse(\"\")(date) parses twelve hour, minute and second", () => { const p = utcParse("%I:%M:%S %p"); assert.deepStrictEqual(p("12:00:00 am"), utc(1900, 0, 1, 0, 0, 0)); assert.deepStrictEqual(p("11:59:59 AM"), utc(1900, 0, 1, 11, 59, 59)); @@ -92,7 +92,7 @@ test("utcParse(\"\")(date) parses twelve hour, minute and second", () => { assert.deepStrictEqual(p("11:59:59 PM"), utc(1900, 0, 1, 23, 59, 59)); }); -test("utcParse(\"\")(date) parses timezone offset", () => { +it("utcParse(\"\")(date) parses timezone offset", () => { const p = utcParse("%m/%d/%Y %Z"); assert.deepStrictEqual(p("01/02/1990 +0000"), utc(1990, 0, 2)); assert.deepStrictEqual(p("01/02/1990 +0100"), utc(1990, 0, 1, 23)); @@ -100,29 +100,29 @@ test("utcParse(\"\")(date) parses timezone offset", () => { assert.deepStrictEqual(p("01/02/1990 -0800"), local(1990, 0, 2)); }); -test("utcParse(\"\")(date) parses timezone offset (in the form '+-hh:mm')", () => { +it("utcParse(\"\")(date) parses timezone offset (in the form '+-hh:mm')", () => { const p = utcParse("%m/%d/%Y %Z"); assert.deepStrictEqual(p("01/02/1990 +01:30"), utc(1990, 0, 1, 22, 30)); assert.deepStrictEqual(p("01/02/1990 -01:30"), utc(1990, 0, 2, 1, 30)); }); -test("utcParse(\"\")(date) parses timezone offset (in the form '+-hh')", () => { +it("utcParse(\"\")(date) parses timezone offset (in the form '+-hh')", () => { const p = utcParse("%m/%d/%Y %Z"); assert.deepStrictEqual(p("01/02/1990 +01"), utc(1990, 0, 1, 23)); assert.deepStrictEqual(p("01/02/1990 -01"), utc(1990, 0, 2, 1)); }); -test("utcParse(\"\")(date) parses timezone offset (in the form 'Z')", () => { +it("utcParse(\"\")(date) parses timezone offset (in the form 'Z')", () => { const p = utcParse("%m/%d/%Y %Z"); assert.deepStrictEqual(p("01/02/1990 Z"), utc(1990, 0, 2)); }); -test("utcParse(\"%Y %U %w\")(date) handles a year that starts on Sunday", () => { +it("utcParse(\"%Y %U %w\")(date) handles a year that starts on Sunday", () => { const p = utcParse("%Y %U %w"); assert.deepStrictEqual(p("2012 01 0"), utc(2012, 0, 1)); }); -test("utcParse(\"%w %V %Y\")(date) parses numeric weekday, week number (ISO) and year", () => { +it("utcParse(\"%w %V %Y\")(date) parses numeric weekday, week number (ISO) and year", () => { const p = utcParse("%w %V %Y"); assert.deepStrictEqual(p("1 01 1990"), utc(1990, 0, 1)); assert.deepStrictEqual(p("0 05 1991"), utc(1991, 1, 3)); @@ -132,7 +132,7 @@ test("utcParse(\"%w %V %Y\")(date) parses numeric weekday, week number (ISO) and assert.strictEqual(p("X 03 2010"), null); }); -test("utcParse(\"%w %V %G\")(date) parses numeric weekday, week number (ISO) and corresponding year", () => { +it("utcParse(\"%w %V %G\")(date) parses numeric weekday, week number (ISO) and corresponding year", () => { const p = utcParse("%w %V %G"); assert.deepStrictEqual(p("1 01 1990"), utc(1990, 0, 1)); assert.deepStrictEqual(p("0 05 1991"), utc(1991, 1, 3)); @@ -144,7 +144,7 @@ test("utcParse(\"%w %V %G\")(date) parses numeric weekday, week number (ISO) and assert.strictEqual(p("X 03 2010"), null); }); -test("utcParse(\"%V %Y\")(date) week number (ISO) and year", () => { +it("utcParse(\"%V %Y\")(date) week number (ISO) and year", () => { const p = utcParse("%V %Y"); assert.deepStrictEqual(p("01 1990"), utc(1990, 0, 1)); assert.deepStrictEqual(p("05 1991"), utc(1991, 0, 28)); @@ -156,7 +156,7 @@ test("utcParse(\"%V %Y\")(date) week number (ISO) and year", () => { assert.deepStrictEqual(p("X 1995"), null); }); -test("utcParse(\"%V %g\")(date) week number (ISO) and corresponding two-digits year", () => { +it("utcParse(\"%V %g\")(date) week number (ISO) and corresponding two-digits year", () => { const p = utcParse("%V %g"); assert.deepStrictEqual(p("01 90"), utc(1990, 0, 1)); assert.deepStrictEqual(p("05 91"), utc(1991, 0, 28)); @@ -170,7 +170,7 @@ test("utcParse(\"%V %g\")(date) week number (ISO) and corresponding two-digits y assert.deepStrictEqual(p("X 95"), null); }); -test("utcParse(\"%V %G\")(date) week number (ISO) and corresponding year", () => { +it("utcParse(\"%V %G\")(date) week number (ISO) and corresponding year", () => { const p = utcParse("%V %G"); assert.deepStrictEqual(p("01 1990"), utc(1990, 0, 1)); assert.deepStrictEqual(p("05 1991"), utc(1991, 0, 28)); @@ -184,25 +184,25 @@ test("utcParse(\"%V %G\")(date) week number (ISO) and corresponding year", () => assert.deepStrictEqual(p("X 1995"), null); }); -test("utcParse(\"%Q\")(date) parses UNIX timestamps", () => { +it("utcParse(\"%Q\")(date) parses UNIX timestamps", () => { const p = utcParse("%Q"); assert.deepStrictEqual(p("0"), utc(1970, 0, 1)); assert.deepStrictEqual(p("631152000000"), utc(1990, 0, 1)); }); -test("utcParse(\"%s\")(date) parses UNIX timestamps in seconds", () => { +it("utcParse(\"%s\")(date) parses UNIX timestamps in seconds", () => { const p = utcParse("%s"); assert.deepStrictEqual(p("0"), utc(1970, 0, 1)); assert.deepStrictEqual(p("631152000"), utc(1990, 0, 1)); }); -test("utcParse(\"%s.%L\")(date) parses UNIX timetamps in seconds and milliseconds", () => { +it("utcParse(\"%s.%L\")(date) parses UNIX timetamps in seconds and milliseconds", () => { const p = utcParse("%s.%L"); assert.deepStrictEqual(p("631152000.123"), utc(1990, 0, 1, 0, 0, 0, 123)); assert.deepStrictEqual(p("631197296.789"), utc(1990, 0, 1, 12, 34, 56, 789)); }); -test("utcParse(\"%s.%f\")(date) parses UNIX timetamps in seconds and microseconds", () => { +it("utcParse(\"%s.%f\")(date) parses UNIX timetamps in seconds and microseconds", () => { const p = utcParse("%s.%f"); assert.deepStrictEqual(p("631152000.123000"), utc(1990, 0, 1, 0, 0, 0, 123)); assert.deepStrictEqual(p("631197296.789000"), utc(1990, 0, 1, 12, 34, 56, 789)); From 8b63cf5c3e1e21b10892136cb7c740b1870df9a3 Mon Sep 17 00:00:00 2001 From: Mike Bostock Date: Mon, 2 Nov 2026 18:31:35 -0800 Subject: [PATCH 05/10] node: imports Co-Authored-By: Claude Opus 5.5 --- test/defaultLocale-test.js | 4 ++-- test/format-test.js | 2 +- test/isoFormat-test.js | 2 +- test/isoParse-test.js | 2 +- test/locale-test.js | 6 +++--- test/parse-test.js | 4 ++-- test/utcFormat-test.js | 2 +- test/utcParse-test.js | 2 +- 8 files changed, 12 insertions(+), 12 deletions(-) diff --git a/test/defaultLocale-test.js b/test/defaultLocale-test.js index 347065c..ae644ca 100644 --- a/test/defaultLocale-test.js +++ b/test/defaultLocale-test.js @@ -1,6 +1,6 @@ +import assert from "node:assert"; +import {readFileSync} from "node:fs"; import {it} from "vitest"; -import assert from "assert"; -import {readFileSync} from "fs"; import {timeFormat, timeFormatDefaultLocale, timeParse, utcFormat, utcParse} from "../src/index.js"; const enUs = JSON.parse(readFileSync("./locale/en-US.json")); diff --git a/test/format-test.js b/test/format-test.js index bad101d..db6ce54 100644 --- a/test/format-test.js +++ b/test/format-test.js @@ -1,5 +1,5 @@ +import assert from "node:assert"; import {it} from "vitest"; -import assert from "assert"; import {timeSecond, timeMinute, timeHour, timeDay, timeMonth, timeWeek, timeYear} from "d3-time"; import {timeFormat} from "../src/index.js"; import {local} from "./date.js"; diff --git a/test/isoFormat-test.js b/test/isoFormat-test.js index d711d83..3693726 100644 --- a/test/isoFormat-test.js +++ b/test/isoFormat-test.js @@ -1,5 +1,5 @@ +import assert from "node:assert"; import {it} from "vitest"; -import assert from "assert"; import {isoFormat} from "../src/index.js"; import {utc} from "./date.js"; diff --git a/test/isoParse-test.js b/test/isoParse-test.js index 8beb417..80a0b7c 100644 --- a/test/isoParse-test.js +++ b/test/isoParse-test.js @@ -1,5 +1,5 @@ +import assert from "node:assert"; import {it} from "vitest"; -import assert from "assert"; import {isoParse} from "../src/index.js"; import {utc} from "./date.js"; diff --git a/test/locale-test.js b/test/locale-test.js index 7ad5b14..3b91b08 100644 --- a/test/locale-test.js +++ b/test/locale-test.js @@ -1,7 +1,7 @@ +import assert from "node:assert"; +import {readdirSync, readFileSync} from "node:fs"; +import {join} from "node:path"; import {it} from "vitest"; -import assert from "assert"; -import {readdirSync, readFileSync} from "fs"; -import {join} from "path"; import {timeFormatLocale} from "../src/index.js"; it("locale data is valid", () => { diff --git a/test/parse-test.js b/test/parse-test.js index b47cd0e..0f5a21f 100644 --- a/test/parse-test.js +++ b/test/parse-test.js @@ -1,6 +1,6 @@ +import assert from "node:assert"; +import {readFileSync} from "node:fs"; import {it} from "vitest"; -import assert from "assert"; -import {readFileSync} from "fs"; import {timeFormatLocale, timeParse} from "../src/index.js"; import {local} from "./date.js"; diff --git a/test/utcFormat-test.js b/test/utcFormat-test.js index 2dbc7f5..cd15049 100644 --- a/test/utcFormat-test.js +++ b/test/utcFormat-test.js @@ -1,5 +1,5 @@ +import assert from "node:assert"; import {it} from "vitest"; -import assert from "assert"; import {utcSecond, utcMinute, utcHour, utcDay, utcMonth, utcWeek, utcYear} from "d3-time"; import {utcFormat} from "../src/index.js"; import {utc} from "./date.js"; diff --git a/test/utcParse-test.js b/test/utcParse-test.js index dda6948..97e72c2 100644 --- a/test/utcParse-test.js +++ b/test/utcParse-test.js @@ -1,5 +1,5 @@ +import assert from "node:assert"; import {it} from "vitest"; -import assert from "assert"; import {utcParse} from "../src/index.js"; import {local, utc} from "./date.js"; From 47d22e18ff25b0cde3e6797355d58d8350ec5775 Mon Sep 17 00:00:00 2001 From: Mike Bostock Date: Mon, 2 Nov 2026 19:00:10 -0800 Subject: [PATCH 06/10] eslint config Co-Authored-By: Claude Opus 5.5 --- eslint.config.js | 8 +++++--- package.json | 2 +- rollup.config.js | 2 +- 3 files changed, 7 insertions(+), 5 deletions(-) diff --git a/eslint.config.js b/eslint.config.js index d1afaa5..55dba4c 100644 --- a/eslint.config.js +++ b/eslint.config.js @@ -3,8 +3,10 @@ import globals from "globals"; import {defineConfig} from "eslint/config"; export default defineConfig([ - {files: ["**/*.{js,ts,jsx,tsx}"], plugins: {js}, extends: ["js/recommended"]}, - {files: ["**/*.{js,ts,jsx,tsx}"], languageOptions: {globals: globals.browser}}, + {ignores: ["dist/"]}, + {files: ["**/*.{js,ts}"], plugins: {js}, extends: ["js/recommended"]}, + {files: ["**/*.{js,ts}"], languageOptions: {globals: globals.node}}, {languageOptions: {ecmaVersion: 2019, sourceType: "module"}}, - {rules: {"no-cond-assign": 0}} + {rules: {"no-cond-assign": 0}}, + {files: ["rollup.config.js"], languageOptions: {ecmaVersion: 2026}} ]); diff --git a/package.json b/package.json index 6962584..b0ca3e4 100644 --- a/package.json +++ b/package.json @@ -52,7 +52,7 @@ }, "scripts": { "test": "TZ=America/Los_Angeles vitest", - "lint": "eslint src test", + "lint": "eslint", "prepublishOnly": "rm -rf dist && rollup -c" }, "engines": { diff --git a/rollup.config.js b/rollup.config.js index a13a979..d05a0a3 100644 --- a/rollup.config.js +++ b/rollup.config.js @@ -57,7 +57,7 @@ export default [ config({ output: { file: `dist/${meta.name}.js`, - format: "umd", + format: "umd" } }), config({ From 6bd0179605a79733306456ce1d061ba9d5c4f36e Mon Sep 17 00:00:00 2001 From: Mike Bostock Date: Mon, 2 Nov 2026 19:05:26 -0800 Subject: [PATCH 07/10] browser globals for src Co-Authored-By: Claude Opus 5.5 --- eslint.config.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/eslint.config.js b/eslint.config.js index 55dba4c..2f1c554 100644 --- a/eslint.config.js +++ b/eslint.config.js @@ -5,7 +5,7 @@ import {defineConfig} from "eslint/config"; export default defineConfig([ {ignores: ["dist/"]}, {files: ["**/*.{js,ts}"], plugins: {js}, extends: ["js/recommended"]}, - {files: ["**/*.{js,ts}"], languageOptions: {globals: globals.node}}, + {files: ["src/**/*.{js,ts}"], languageOptions: {globals: globals.browser}}, {languageOptions: {ecmaVersion: 2019, sourceType: "module"}}, {rules: {"no-cond-assign": 0}}, {files: ["rollup.config.js"], languageOptions: {ecmaVersion: 2026}} From b9d9e6edb1e31d546e8c891b39a9bda3c07a25b8 Mon Sep 17 00:00:00 2001 From: Mike Bostock Date: Mon, 2 Nov 2026 22:24:24 -0800 Subject: [PATCH 08/10] d3-time-format alias --- test/defaultLocale-test.js | 2 +- test/format-test.js | 2 +- test/isoFormat-test.js | 2 +- test/isoParse-test.js | 2 +- test/locale-test.js | 2 +- test/parse-test.js | 2 +- test/utcFormat-test.js | 2 +- test/utcParse-test.js | 2 +- vitest.config.js | 5 ++++- 9 files changed, 12 insertions(+), 9 deletions(-) diff --git a/test/defaultLocale-test.js b/test/defaultLocale-test.js index ae644ca..2c6c759 100644 --- a/test/defaultLocale-test.js +++ b/test/defaultLocale-test.js @@ -1,7 +1,7 @@ import assert from "node:assert"; import {readFileSync} from "node:fs"; import {it} from "vitest"; -import {timeFormat, timeFormatDefaultLocale, timeParse, utcFormat, utcParse} from "../src/index.js"; +import {timeFormat, timeFormatDefaultLocale, timeParse, utcFormat, utcParse} from "d3-time-format"; const enUs = JSON.parse(readFileSync("./locale/en-US.json")); const frFr = JSON.parse(readFileSync("./locale/fr-FR.json")); diff --git a/test/format-test.js b/test/format-test.js index db6ce54..1734365 100644 --- a/test/format-test.js +++ b/test/format-test.js @@ -1,7 +1,7 @@ import assert from "node:assert"; import {it} from "vitest"; import {timeSecond, timeMinute, timeHour, timeDay, timeMonth, timeWeek, timeYear} from "d3-time"; -import {timeFormat} from "../src/index.js"; +import {timeFormat} from "d3-time-format"; import {local} from "./date.js"; const formatMillisecond = timeFormat(".%L"), diff --git a/test/isoFormat-test.js b/test/isoFormat-test.js index 3693726..eca55db 100644 --- a/test/isoFormat-test.js +++ b/test/isoFormat-test.js @@ -1,6 +1,6 @@ import assert from "node:assert"; import {it} from "vitest"; -import {isoFormat} from "../src/index.js"; +import {isoFormat} from "d3-time-format"; import {utc} from "./date.js"; it("isoFormat(date) returns an ISO 8601 UTC string", () => { diff --git a/test/isoParse-test.js b/test/isoParse-test.js index 80a0b7c..55d8368 100644 --- a/test/isoParse-test.js +++ b/test/isoParse-test.js @@ -1,6 +1,6 @@ import assert from "node:assert"; import {it} from "vitest"; -import {isoParse} from "../src/index.js"; +import {isoParse} from "d3-time-format"; import {utc} from "./date.js"; it("isoParse as ISO 8601", () => { diff --git a/test/locale-test.js b/test/locale-test.js index 3b91b08..b5bd15c 100644 --- a/test/locale-test.js +++ b/test/locale-test.js @@ -2,7 +2,7 @@ import assert from "node:assert"; import {readdirSync, readFileSync} from "node:fs"; import {join} from "node:path"; import {it} from "vitest"; -import {timeFormatLocale} from "../src/index.js"; +import {timeFormatLocale} from "d3-time-format"; it("locale data is valid", () => { for (const localePath of readdirSync("locale")) { diff --git a/test/parse-test.js b/test/parse-test.js index 0f5a21f..44f26de 100644 --- a/test/parse-test.js +++ b/test/parse-test.js @@ -1,7 +1,7 @@ import assert from "node:assert"; import {readFileSync} from "node:fs"; import {it} from "vitest"; -import {timeFormatLocale, timeParse} from "../src/index.js"; +import {timeFormatLocale, timeParse} from "d3-time-format"; import {local} from "./date.js"; const fiFi = JSON.parse(readFileSync("./locale/fi-FI.json")); diff --git a/test/utcFormat-test.js b/test/utcFormat-test.js index cd15049..33763ae 100644 --- a/test/utcFormat-test.js +++ b/test/utcFormat-test.js @@ -1,7 +1,7 @@ import assert from "node:assert"; import {it} from "vitest"; import {utcSecond, utcMinute, utcHour, utcDay, utcMonth, utcWeek, utcYear} from "d3-time"; -import {utcFormat} from "../src/index.js"; +import {utcFormat} from "d3-time-format"; import {utc} from "./date.js"; const formatMillisecond = utcFormat(".%L"), diff --git a/test/utcParse-test.js b/test/utcParse-test.js index 97e72c2..97499a3 100644 --- a/test/utcParse-test.js +++ b/test/utcParse-test.js @@ -1,6 +1,6 @@ import assert from "node:assert"; import {it} from "vitest"; -import {utcParse} from "../src/index.js"; +import {utcParse} from "d3-time-format"; import {local, utc} from "./date.js"; it("utcParse(specifier) coerces the specified specifier to a string", () => { diff --git a/vitest.config.js b/vitest.config.js index b728050..efbfa44 100644 --- a/vitest.config.js +++ b/vitest.config.js @@ -1,3 +1,6 @@ import {defineConfig} from "vitest/config"; -export default defineConfig({test: {include: ["test/**/*-test.js"]}}); +export default defineConfig({ + resolve: {alias: {"d3-time-format": "src/index.js"}}, + test: {include: ["test/**/*-test.js"]} +}); From bcfac15ba528eca9b9578594900f0aed24c63b6d Mon Sep 17 00:00:00 2001 From: Mike Bostock Date: Mon, 2 Nov 2026 22:24:39 -0800 Subject: [PATCH 09/10] 4.1.1 --- package.json | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/package.json b/package.json index b0ca3e4..b001fb1 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "d3-time-format", - "version": "4.1.0", + "version": "4.1.1", "description": "A JavaScript time formatter and parser inspired by strftime and strptime.", "homepage": "https://d3js.org/d3-time-format/", "repository": { From c026c06ce901eb970d62b1a3e6d4eafe7955520c Mon Sep 17 00:00:00 2001 From: Mike Bostock Date: Mon, 2 Nov 2026 22:25:10 -0800 Subject: [PATCH 10/10] update dependencies --- pnpm-lock.yaml | 16 ++++++++-------- 1 file changed, 8 insertions(+), 8 deletions(-) diff --git a/pnpm-lock.yaml b/pnpm-lock.yaml index 76c289e..c1aad1e 100644 --- a/pnpm-lock.yaml +++ b/pnpm-lock.yaml @@ -10,7 +10,7 @@ importers: dependencies: d3-time: specifier: 1 - 3 - version: 3.1.0 + version: 3.1.1 devDependencies: '@eslint/js': specifier: ^10.0.1 @@ -479,12 +479,12 @@ packages: resolution: {integrity: sha512-uV2QOWP2nWzsy2aMp8aRibhi9dlzF5Hgh5SHaB9OiTGEyDTiJJyx0uy51QXdyWbtAHNua4XJzUKca3OzKUd3vA==} engines: {node: '>= 8'} - d3-array@3.2.4: - resolution: {integrity: sha512-tdQAmyA18i4J7wprpYq8ClcxZy3SC31QMeByyCFyRt7BVHdREQZ5lpzoe5mFEYZUWe+oq8HBvk9JjpibyEV4Jg==} + d3-array@3.2.5: + resolution: {integrity: sha512-Th8qGXoBalmWsstpkuhmBuTsBQIFqYOJtjlBvNVvBfJ8E3uYusBUwUR8HU20U0qKKQkgCvKyR1YjiozWadk5QA==} engines: {node: '>=12'} - d3-time@3.1.0: - resolution: {integrity: sha512-VqKjzBLejbSMT4IgbmVgDjpkYrNWUYJnbCGo874u7MMKIWsILRX+OpX/gTk8MqjpT1A/c6HY2dCA77ZN0lkQ2Q==} + d3-time@3.1.1: + resolution: {integrity: sha512-Ze7rjrhMzdeulh0/hjcfFj7XLAHOfowtEMfsoG6DU866HPynQNW7Wfen6hzXcqKTv8XzxvF6Hzr5XD6bMHr2ug==} engines: {node: '>=12'} debug@4.4.3: @@ -1309,13 +1309,13 @@ snapshots: shebang-command: 2.0.0 which: 2.0.2 - d3-array@3.2.4: + d3-array@3.2.5: dependencies: internmap: 2.0.3 - d3-time@3.1.0: + d3-time@3.1.1: dependencies: - d3-array: 3.2.4 + d3-array: 3.2.5 debug@4.4.3: dependencies: