vomebook commited on
Commit ·
10fc3f9
1
Parent(s): 04d5e52
Gate search releases on static checks
Browse files- .gitignore +2 -0
- Dockerfile +39 -0
- eslint.config.mjs +56 -0
- jsconfig.check.json +33 -0
- package-lock.json +1516 -0
- package.json +22 -0
- pyrightconfig.json +10 -0
- requirements-audit.txt +1 -0
- requirements-static-check.txt +1 -0
- ruff.toml +19 -0
- scripts/check_markup.mjs +77 -0
- scripts/check_python_static.py +14 -0
- static/reader/pdf/pdf-first-page-worker-adapter.mjs +3 -1
- tests/test_reader_backend.py +0 -110
- tests/test_static_checks.py +137 -0
- tests/test_static_contract.py +13 -3
.gitignore
CHANGED
|
@@ -1,4 +1,6 @@
|
|
| 1 |
__pycache__/
|
|
|
|
|
|
|
| 2 |
*.py[cod]
|
| 3 |
_search_index_native*.so
|
| 4 |
static/vendor/*
|
|
|
|
| 1 |
__pycache__/
|
| 2 |
+
node_modules/
|
| 3 |
+
.ruff_cache/
|
| 4 |
*.py[cod]
|
| 5 |
_search_index_native*.so
|
| 6 |
static/vendor/*
|
Dockerfile
CHANGED
|
@@ -1,3 +1,39 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
FROM node:26.11.1-bookworm-slim AS static-assets
|
| 2 |
|
| 3 |
ARG ESBUILD_VERSION=0.28.2
|
|
@@ -7,6 +43,9 @@ WORKDIR /build
|
|
| 7 |
|
| 8 |
RUN printf '%s\n' "$READER_BUILD_REV" >/tmp/reader-build-rev
|
| 9 |
|
|
|
|
|
|
|
|
|
|
| 10 |
RUN npm install --global "esbuild@${ESBUILD_VERSION}" \
|
| 11 |
&& test "$(esbuild --version)" = "${ESBUILD_VERSION}"
|
| 12 |
|
|
|
|
| 1 |
+
FROM node:26.11.1-bookworm-slim AS source-check-node
|
| 2 |
+
|
| 3 |
+
WORKDIR /check
|
| 4 |
+
COPY package.json package-lock.json eslint.config.mjs jsconfig.check.json pyrightconfig.json ./
|
| 5 |
+
RUN npm ci --ignore-scripts --no-audit --no-fund
|
| 6 |
+
COPY static/ static/
|
| 7 |
+
COPY scripts/ scripts/
|
| 8 |
+
COPY tests/ tests/
|
| 9 |
+
COPY backend/ backend/
|
| 10 |
+
COPY app.py ./
|
| 11 |
+
RUN npm run check:static && npx --no-install pyright --project pyrightconfig.json
|
| 12 |
+
|
| 13 |
+
FROM python:3.11.17-slim AS source-check-python
|
| 14 |
+
|
| 15 |
+
WORKDIR /check
|
| 16 |
+
COPY requirements-static-check.txt ruff.toml ./
|
| 17 |
+
RUN pip install --no-cache-dir -r requirements-static-check.txt
|
| 18 |
+
COPY app.py ./
|
| 19 |
+
COPY backend/ backend/
|
| 20 |
+
COPY scripts/ scripts/
|
| 21 |
+
COPY tests/ tests/
|
| 22 |
+
RUN python -B scripts/check_python_static.py
|
| 23 |
+
|
| 24 |
+
FROM node:26.11.1-bookworm-slim AS static-gate-test
|
| 25 |
+
|
| 26 |
+
WORKDIR /check
|
| 27 |
+
RUN apt-get update && apt-get install -y --no-install-recommends python3 \
|
| 28 |
+
&& rm -rf /var/lib/apt/lists/*
|
| 29 |
+
COPY --from=source-check-node /check/ /check/
|
| 30 |
+
COPY --from=source-check-python /usr/local/lib/python3.11/site-packages/ /tmp/python-static-tools/
|
| 31 |
+
COPY --from=source-check-python /usr/local/bin/ruff /tmp/python-static-tools/bin/ruff
|
| 32 |
+
COPY requirements-static-check.txt ruff.toml ./
|
| 33 |
+
ENV PYTHONPATH=/tmp/python-static-tools
|
| 34 |
+
RUN python3 -B -m unittest -v tests.test_static_checks \
|
| 35 |
+
&& printf 'static gate tests passed\n' >/check/static-gate-test-ok
|
| 36 |
+
|
| 37 |
FROM node:26.11.1-bookworm-slim AS static-assets
|
| 38 |
|
| 39 |
ARG ESBUILD_VERSION=0.28.2
|
|
|
|
| 43 |
|
| 44 |
RUN printf '%s\n' "$READER_BUILD_REV" >/tmp/reader-build-rev
|
| 45 |
|
| 46 |
+
# Make source checks and their regression tests mandatory without shipping tools.
|
| 47 |
+
COPY --from=static-gate-test /check/static-gate-test-ok /tmp/checked-static-gate-test-ok
|
| 48 |
+
|
| 49 |
RUN npm install --global "esbuild@${ESBUILD_VERSION}" \
|
| 50 |
&& test "$(esbuild --version)" = "${ESBUILD_VERSION}"
|
| 51 |
|
eslint.config.mjs
ADDED
|
@@ -0,0 +1,56 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
import globals from "globals";
|
| 2 |
+
import js from "@eslint/js";
|
| 3 |
+
|
| 4 |
+
// Project JS includes classic-script globals, ES modules, workers and Node
|
| 5 |
+
// tools. Model those environments separately; never lint vendored sources.
|
| 6 |
+
|
| 7 |
+
const rules = Object.fromEntries([
|
| 8 |
+
"no-undef", "no-unreachable", "no-constant-binary-expression", "no-duplicate-case",
|
| 9 |
+
"no-dupe-args", "no-dupe-keys", "no-unsafe-finally", "no-self-assign",
|
| 10 |
+
"no-unexpected-multiline", "use-isnan", "valid-typeof"
|
| 11 |
+
].map(name => [name, "error"]));
|
| 12 |
+
|
| 13 |
+
export default [
|
| 14 |
+
// ESLint's global ignore also prevents parsing third-party minified files.
|
| 15 |
+
{ ignores: ["**/vendor/**", "**/foliate-reader/**", "**/node_modules/**"] },
|
| 16 |
+
{
|
| 17 |
+
files: ["static/**/*.{js,mjs}"],
|
| 18 |
+
languageOptions: {
|
| 19 |
+
ecmaVersion: "latest",
|
| 20 |
+
globals: { ...globals.browser, ...globals.serviceworker, ...globals.worker,
|
| 21 |
+
module: "readonly", require: "readonly",
|
| 22 |
+
...Object.fromEntries(["VoiceOfMLReaderSecurity", "VoiceOfMLReader", "VoiceOfMLReaderResources",
|
| 23 |
+
"VoiceOfMLReaderStore", "VoiceOfMLReaderChapters", "VoiceOfMLReaderVirtual", "VoiceOfMLReaderNavigation",
|
| 24 |
+
"VoiceOfMLDownloadController", "VoiceOfMLSearchSession", "VoiceOfMLReaderRequests", "VoiceOfMLReaderRuntime",
|
| 25 |
+
"VoiceOfMLReaderAdapters", "VoiceOfMLReaderScroll", "DOMPurify", "marked"]
|
| 26 |
+
.map(name => [name, "readonly"])) }
|
| 27 |
+
},
|
| 28 |
+
rules: { ...js.configs.recommended.rules, ...rules,
|
| 29 |
+
// Classic hosts/tests intentionally expose globals; security filters use
|
| 30 |
+
// control-character regexes. These noisy rules are not zero-baselined yet.
|
| 31 |
+
"no-unused-vars": "off", "no-useless-assignment": "off", "no-control-regex": "off",
|
| 32 |
+
"no-useless-escape": "off", "preserve-caught-error": "off", "no-ex-assign": "off",
|
| 33 |
+
"no-empty": ["error", { allowEmptyCatch: true }],
|
| 34 |
+
"no-constant-condition": ["error", { checkLoops: false }]
|
| 35 |
+
}
|
| 36 |
+
},
|
| 37 |
+
{ files: ["static/**/*.js"], languageOptions: { sourceType: "script" } },
|
| 38 |
+
{ files: ["static/**/*.mjs", "static/**/reader.js", "static/**/reader-pdf-text.js", "static/**/reader-book-text.js"],
|
| 39 |
+
languageOptions: { sourceType: "module" } },
|
| 40 |
+
{ files: ["static/**/tts-client.js"], languageOptions: { globals: { CCRDSpeechPlan: "readonly", openPreview: "readonly", showToast: "readonly" } } },
|
| 41 |
+
{
|
| 42 |
+
files: ["{scripts,tests}/**/*.{js,mjs}"],
|
| 43 |
+
languageOptions: { ecmaVersion: "latest", globals: { ...globals.node } },
|
| 44 |
+
rules: { ...js.configs.recommended.rules, ...rules,
|
| 45 |
+
"no-unused-vars": "off", "no-useless-assignment": "off", "no-control-regex": "off",
|
| 46 |
+
"no-useless-escape": "off", "preserve-caught-error": "off", "no-ex-assign": "off",
|
| 47 |
+
"no-regex-spaces": "off", "no-empty": ["error", { allowEmptyCatch: true }],
|
| 48 |
+
"no-constant-condition": ["error", { checkLoops: false }]
|
| 49 |
+
}
|
| 50 |
+
},
|
| 51 |
+
{ files: ["{scripts,tests}/**/*.js"], languageOptions: { sourceType: "commonjs" } },
|
| 52 |
+
{ files: ["tests/test_reader_djvu_only.mjs"], languageOptions: { globals: { VoiceOfMLReader: "readonly" } } },
|
| 53 |
+
{ files: ["tests/test_reader_djvu_png.mjs"], languageOptions: { globals: { VoiceOfMLReaderSecurity: "readonly" } } },
|
| 54 |
+
{ files: ["tests/test_reader_image_memory.mjs"], languageOptions: { globals: { window: "readonly" } } },
|
| 55 |
+
{ files: ["tests/test_reader_pdf_scroll_scheduling.mjs"], languageOptions: { globals: { document: "readonly" } } }
|
| 56 |
+
];
|
jsconfig.check.json
ADDED
|
@@ -0,0 +1,33 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
{
|
| 2 |
+
"compilerOptions": {
|
| 3 |
+
"allowJs": true,
|
| 4 |
+
"checkJs": true,
|
| 5 |
+
"noEmit": true,
|
| 6 |
+
"strict": false,
|
| 7 |
+
"skipLibCheck": true,
|
| 8 |
+
"target": "es2022",
|
| 9 |
+
"module": "esnext",
|
| 10 |
+
"moduleResolution": "bundler"
|
| 11 |
+
},
|
| 12 |
+
"files": [
|
| 13 |
+
"static/reader/core/reader-diagnostics.mjs",
|
| 14 |
+
"static/reader/core/reader-request-manager.js",
|
| 15 |
+
"static/reader/core/reader-runtime.js",
|
| 16 |
+
"static/reader/formats/reader-chapter-repository.js",
|
| 17 |
+
"static/reader/formats/reader-format-adapters.js",
|
| 18 |
+
"static/reader/formats/reader-image-loader.mjs",
|
| 19 |
+
"static/reader/pdf/pdf-first-page-worker-adapter.mjs",
|
| 20 |
+
"static/reader/pdf/reader-pdf-text.js",
|
| 21 |
+
"static/reader/pdf/reader-v3.mjs",
|
| 22 |
+
"static/reader/search/reader-book-text.js",
|
| 23 |
+
"static/reader/search/reader-dom-search.mjs",
|
| 24 |
+
"static/reader/search/reader-search-controller.mjs",
|
| 25 |
+
"static/reader/search/workers/reader-chapter-search-worker.mjs",
|
| 26 |
+
"static/reader/ui/reader-document-styles.mjs",
|
| 27 |
+
"static/reader/ui/reader-scroll-anchor.js",
|
| 28 |
+
"static/reader-resources.js",
|
| 29 |
+
"static/search/reader-navigation.js",
|
| 30 |
+
"static/search/search-session.js",
|
| 31 |
+
"static/reader/search/reader-pdf-book-search.mjs"
|
| 32 |
+
]
|
| 33 |
+
}
|
package-lock.json
ADDED
|
@@ -0,0 +1,1516 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
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|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
{
|
| 2 |
+
"name": "reader-static-checks",
|
| 3 |
+
"lockfileVersion": 3,
|
| 4 |
+
"requires": true,
|
| 5 |
+
"packages": {
|
| 6 |
+
"": {
|
| 7 |
+
"name": "reader-static-checks",
|
| 8 |
+
"devDependencies": {
|
| 9 |
+
"@eslint/js": "10.0.1",
|
| 10 |
+
"eslint": "10.14.0",
|
| 11 |
+
"espree": "11.2.0",
|
| 12 |
+
"globals": "17.14.0",
|
| 13 |
+
"parse5": "8.1.0",
|
| 14 |
+
"postcss": "8.5.32",
|
| 15 |
+
"pyright": "1.1.414",
|
| 16 |
+
"typescript": "7.0.2"
|
| 17 |
+
}
|
| 18 |
+
},
|
| 19 |
+
"node_modules/@cacheable/memory": {
|
| 20 |
+
"version": "2.2.0",
|
| 21 |
+
"resolved": "https://registry.npmjs.org/@cacheable/memory/-/memory-2.2.0.tgz",
|
| 22 |
+
"integrity": "sha512-CTLKqLItRCEixEAewD3/j9DB3/o96gpTPD4eJ1v+DGOlxZRZncRQkGYqqnAGCscYd6RNeXfGeiuCphsPtqyIfQ==",
|
| 23 |
+
"dev": true,
|
| 24 |
+
"license": "MIT",
|
| 25 |
+
"dependencies": {
|
| 26 |
+
"@cacheable/utils": "^2.5.0",
|
| 27 |
+
"@keyv/bigmap": "^1.3.1",
|
| 28 |
+
"hookified": "^1.15.1",
|
| 29 |
+
"keyv": "^5.6.0"
|
| 30 |
+
}
|
| 31 |
+
},
|
| 32 |
+
"node_modules/@cacheable/utils": {
|
| 33 |
+
"version": "2.5.0",
|
| 34 |
+
"resolved": "https://registry.npmjs.org/@cacheable/utils/-/utils-2.5.0.tgz",
|
| 35 |
+
"integrity": "sha512-buipgOVDkkPXNR5+xBpDw7Zk2n1EvU7qBJCNUcL7rhQ//kfpOXPAvQ511Os0vpLYJ1pZnvudNytkQt2hst3wqA==",
|
| 36 |
+
"dev": true,
|
| 37 |
+
"license": "MIT",
|
| 38 |
+
"dependencies": {
|
| 39 |
+
"hashery": "^1.5.1",
|
| 40 |
+
"keyv": "^5.6.0"
|
| 41 |
+
}
|
| 42 |
+
},
|
| 43 |
+
"node_modules/@eslint-community/eslint-utils": {
|
| 44 |
+
"version": "4.10.1",
|
| 45 |
+
"resolved": "https://registry.npmjs.org/@eslint-community/eslint-utils/-/eslint-utils-4.10.1.tgz",
|
| 46 |
+
"integrity": "sha512-cuadcxVFE8sDK6iWJbs8Sn0av2Nrh2QSGQhVlBW9AaAHqHwjWsZHT8LJ4hFGPh7ASBV2deFdM7H/DPjulmh8rg==",
|
| 47 |
+
"dev": true,
|
| 48 |
+
"license": "MIT",
|
| 49 |
+
"dependencies": {
|
| 50 |
+
"eslint-visitor-keys": "^3.4.3"
|
| 51 |
+
},
|
| 52 |
+
"engines": {
|
| 53 |
+
"node": "^12.22.0 || ^14.17.0 || >=16.0.0"
|
| 54 |
+
},
|
| 55 |
+
"funding": {
|
| 56 |
+
"url": "https://opencollective.com/eslint"
|
| 57 |
+
},
|
| 58 |
+
"peerDependencies": {
|
| 59 |
+
"eslint": "^6.0.0 || ^7.0.0 || >=8.0.0"
|
| 60 |
+
}
|
| 61 |
+
},
|
| 62 |
+
"node_modules/@eslint-community/eslint-utils/node_modules/eslint-visitor-keys": {
|
| 63 |
+
"version": "3.4.3",
|
| 64 |
+
"resolved": "https://registry.npmjs.org/eslint-visitor-keys/-/eslint-visitor-keys-3.4.3.tgz",
|
| 65 |
+
"integrity": "sha512-wpc+LXeiyiisxPlEkUzU6svyS1frIO3Mgxj1fdy7Pm8Ygzguax2N3Fa/D/ag1WqbOprdI+uY6wMUl8/a2G+iag==",
|
| 66 |
+
"dev": true,
|
| 67 |
+
"license": "Apache-2.0",
|
| 68 |
+
"engines": {
|
| 69 |
+
"node": "^12.22.0 || ^14.17.0 || >=16.0.0"
|
| 70 |
+
},
|
| 71 |
+
"funding": {
|
| 72 |
+
"url": "https://opencollective.com/eslint"
|
| 73 |
+
}
|
| 74 |
+
},
|
| 75 |
+
"node_modules/@eslint-community/regexpp": {
|
| 76 |
+
"version": "4.12.2",
|
| 77 |
+
"resolved": "https://registry.npmjs.org/@eslint-community/regexpp/-/regexpp-4.12.2.tgz",
|
| 78 |
+
"integrity": "sha512-EriSTlt5OC9/7SXkRSCAhfSxxoSUgBm33OH+IkwbdpgoqsSsUg7y3uh+IICI/Qg4BBWr3U2i39RpmycbxMq4ew==",
|
| 79 |
+
"dev": true,
|
| 80 |
+
"license": "MIT",
|
| 81 |
+
"engines": {
|
| 82 |
+
"node": "^12.0.0 || ^14.0.0 || >=16.0.0"
|
| 83 |
+
}
|
| 84 |
+
},
|
| 85 |
+
"node_modules/@eslint/config-array": {
|
| 86 |
+
"version": "0.23.5",
|
| 87 |
+
"resolved": "https://registry.npmjs.org/@eslint/config-array/-/config-array-0.23.5.tgz",
|
| 88 |
+
"integrity": "sha512-Y3kKLvC1dvTOT+oGlqNQ1XLqK6D1HU2YXPc52NmAlJZbMMWDzGYXMiPRJ8TYD39muD/OTjlZmNJ4ib7dvSrMBA==",
|
| 89 |
+
"dev": true,
|
| 90 |
+
"license": "Apache-2.0",
|
| 91 |
+
"dependencies": {
|
| 92 |
+
"@eslint/object-schema": "^3.0.5",
|
| 93 |
+
"debug": "^4.3.1",
|
| 94 |
+
"minimatch": "^10.2.4"
|
| 95 |
+
},
|
| 96 |
+
"engines": {
|
| 97 |
+
"node": "^20.19.0 || ^22.13.0 || >=24"
|
| 98 |
+
}
|
| 99 |
+
},
|
| 100 |
+
"node_modules/@eslint/config-helpers": {
|
| 101 |
+
"version": "0.7.0",
|
| 102 |
+
"resolved": "https://registry.npmjs.org/@eslint/config-helpers/-/config-helpers-0.7.0.tgz",
|
| 103 |
+
"integrity": "sha512-DObd/KKUsU+FaFv4PLxSRenpXfQWmPXXP3pPZ6/K1PCrMu2vQpMDMuQe/BqYeoLcz8ro0bVDF1RxOJgfVEdhUw==",
|
| 104 |
+
"dev": true,
|
| 105 |
+
"license": "Apache-2.0",
|
| 106 |
+
"dependencies": {
|
| 107 |
+
"@eslint/core": "^1.2.1"
|
| 108 |
+
},
|
| 109 |
+
"engines": {
|
| 110 |
+
"node": "^20.19.0 || ^22.13.0 || >=24"
|
| 111 |
+
}
|
| 112 |
+
},
|
| 113 |
+
"node_modules/@eslint/core": {
|
| 114 |
+
"version": "1.2.1",
|
| 115 |
+
"resolved": "https://registry.npmjs.org/@eslint/core/-/core-1.2.1.tgz",
|
| 116 |
+
"integrity": "sha512-MwcE1P+AZ4C6DWlpin/OmOA54mmIZ/+xZuJiQd4SyB29oAJjN30UW9wkKNptW2ctp4cEsvhlLY/CsQ1uoHDloQ==",
|
| 117 |
+
"dev": true,
|
| 118 |
+
"license": "Apache-2.0",
|
| 119 |
+
"dependencies": {
|
| 120 |
+
"@types/json-schema": "^7.0.15"
|
| 121 |
+
},
|
| 122 |
+
"engines": {
|
| 123 |
+
"node": "^20.19.0 || ^22.13.0 || >=24"
|
| 124 |
+
}
|
| 125 |
+
},
|
| 126 |
+
"node_modules/@eslint/js": {
|
| 127 |
+
"version": "10.0.1",
|
| 128 |
+
"resolved": "https://registry.npmjs.org/@eslint/js/-/js-10.0.1.tgz",
|
| 129 |
+
"integrity": "sha512-zeR9k5pd4gxjZ0abRoIaxdc7I3nDktoXZk2qOv9gCNWx3mVwEn32VRhyLaRsDiJjTs0xq/T8mfPtyuXu7GWBcA==",
|
| 130 |
+
"dev": true,
|
| 131 |
+
"license": "MIT",
|
| 132 |
+
"engines": {
|
| 133 |
+
"node": "^20.19.0 || ^22.13.0 || >=24"
|
| 134 |
+
},
|
| 135 |
+
"funding": {
|
| 136 |
+
"url": "https://eslint.org/donate"
|
| 137 |
+
},
|
| 138 |
+
"peerDependencies": {
|
| 139 |
+
"eslint": "^10.0.0"
|
| 140 |
+
},
|
| 141 |
+
"peerDependenciesMeta": {
|
| 142 |
+
"eslint": {
|
| 143 |
+
"optional": true
|
| 144 |
+
}
|
| 145 |
+
}
|
| 146 |
+
},
|
| 147 |
+
"node_modules/@eslint/object-schema": {
|
| 148 |
+
"version": "3.0.5",
|
| 149 |
+
"resolved": "https://registry.npmjs.org/@eslint/object-schema/-/object-schema-3.0.5.tgz",
|
| 150 |
+
"integrity": "sha512-vqTaUEgxzm+YDSdElad6PiRoX4t8VGDjCtt05zn4nU810UIx/uNEV7/lZJ6KwFThKZOzOxzXy48da+No7HZaMw==",
|
| 151 |
+
"dev": true,
|
| 152 |
+
"license": "Apache-2.0",
|
| 153 |
+
"engines": {
|
| 154 |
+
"node": "^20.19.0 || ^22.13.0 || >=24"
|
| 155 |
+
}
|
| 156 |
+
},
|
| 157 |
+
"node_modules/@eslint/plugin-kit": {
|
| 158 |
+
"version": "0.7.3",
|
| 159 |
+
"resolved": "https://registry.npmjs.org/@eslint/plugin-kit/-/plugin-kit-0.7.3.tgz",
|
| 160 |
+
"integrity": "sha512-IkO+/KEUvwbVpiURZg+P7zF74z5Jxe0UgJxVni+RtoHQ6IZieXaO02kmadomap/q+l6bc/jdPGGqTjhuZnuz1Q==",
|
| 161 |
+
"dev": true,
|
| 162 |
+
"license": "Apache-2.0",
|
| 163 |
+
"dependencies": {
|
| 164 |
+
"@eslint/core": "^1.2.1",
|
| 165 |
+
"levn": "^0.4.1"
|
| 166 |
+
},
|
| 167 |
+
"engines": {
|
| 168 |
+
"node": "^20.19.0 || ^22.13.0 || >=24"
|
| 169 |
+
}
|
| 170 |
+
},
|
| 171 |
+
"node_modules/@humanfs/core": {
|
| 172 |
+
"version": "0.19.2",
|
| 173 |
+
"resolved": "https://registry.npmjs.org/@humanfs/core/-/core-0.19.2.tgz",
|
| 174 |
+
"integrity": "sha512-UhXNm+CFMWcbChXywFwkmhqjs3PRCmcSa/hfBgLIb7oQ5HNb1wS0icWsGtSAUNgefHeI+eBrA8I1fxmbHsGdvA==",
|
| 175 |
+
"dev": true,
|
| 176 |
+
"license": "Apache-2.0",
|
| 177 |
+
"dependencies": {
|
| 178 |
+
"@humanfs/types": "^0.15.0"
|
| 179 |
+
},
|
| 180 |
+
"engines": {
|
| 181 |
+
"node": ">=18.18.0"
|
| 182 |
+
}
|
| 183 |
+
},
|
| 184 |
+
"node_modules/@humanfs/node": {
|
| 185 |
+
"version": "0.16.8",
|
| 186 |
+
"resolved": "https://registry.npmjs.org/@humanfs/node/-/node-0.16.8.tgz",
|
| 187 |
+
"integrity": "sha512-gE1eQNZ3R++kTzFUpdGlpmy8kDZD/MLyHqDwqjkVQI0JMdI1D51sy1H958PNXYkM2rAac7e5/CnIKZrHtPh3BQ==",
|
| 188 |
+
"dev": true,
|
| 189 |
+
"license": "Apache-2.0",
|
| 190 |
+
"dependencies": {
|
| 191 |
+
"@humanfs/core": "^0.19.2",
|
| 192 |
+
"@humanfs/types": "^0.15.0",
|
| 193 |
+
"@humanwhocodes/retry": "^0.4.0"
|
| 194 |
+
},
|
| 195 |
+
"engines": {
|
| 196 |
+
"node": ">=18.18.0"
|
| 197 |
+
}
|
| 198 |
+
},
|
| 199 |
+
"node_modules/@humanfs/types": {
|
| 200 |
+
"version": "0.15.0",
|
| 201 |
+
"resolved": "https://registry.npmjs.org/@humanfs/types/-/types-0.15.0.tgz",
|
| 202 |
+
"integrity": "sha512-ZZ1w0aoQkwuUuC7Yf+7sdeaNfqQiiLcSRbfI08oAxqLtpXQr9AIVX7Ay7HLDuiLYAaFPu8oBYNq/QIi9URHJ3Q==",
|
| 203 |
+
"dev": true,
|
| 204 |
+
"license": "Apache-2.0",
|
| 205 |
+
"engines": {
|
| 206 |
+
"node": ">=18.18.0"
|
| 207 |
+
}
|
| 208 |
+
},
|
| 209 |
+
"node_modules/@humanwhocodes/module-importer": {
|
| 210 |
+
"version": "1.0.1",
|
| 211 |
+
"resolved": "https://registry.npmjs.org/@humanwhocodes/module-importer/-/module-importer-1.0.1.tgz",
|
| 212 |
+
"integrity": "sha512-bxveV4V8v5Yb4ncFTT3rPSgZBOpCkjfK0y4oVVVJwIuDVBRMDXrPyXRL988i5ap9m9bnyEEjWfm5WkBmtffLfA==",
|
| 213 |
+
"dev": true,
|
| 214 |
+
"license": "Apache-2.0",
|
| 215 |
+
"engines": {
|
| 216 |
+
"node": ">=12.22"
|
| 217 |
+
},
|
| 218 |
+
"funding": {
|
| 219 |
+
"type": "github",
|
| 220 |
+
"url": "https://github.com/sponsors/nzakas"
|
| 221 |
+
}
|
| 222 |
+
},
|
| 223 |
+
"node_modules/@humanwhocodes/retry": {
|
| 224 |
+
"version": "0.4.3",
|
| 225 |
+
"resolved": "https://registry.npmjs.org/@humanwhocodes/retry/-/retry-0.4.3.tgz",
|
| 226 |
+
"integrity": "sha512-bV0Tgo9K4hfPCek+aMAn81RppFKv2ySDQeMoSZuvTASywNTnVJCArCZE2FWqpvIatKu7VMRLWlR1EazvVhDyhQ==",
|
| 227 |
+
"dev": true,
|
| 228 |
+
"license": "Apache-2.0",
|
| 229 |
+
"engines": {
|
| 230 |
+
"node": ">=18.18"
|
| 231 |
+
},
|
| 232 |
+
"funding": {
|
| 233 |
+
"type": "github",
|
| 234 |
+
"url": "https://github.com/sponsors/nzakas"
|
| 235 |
+
}
|
| 236 |
+
},
|
| 237 |
+
"node_modules/@isaacs/nonrecursive-glob-match": {
|
| 238 |
+
"version": "1.0.3",
|
| 239 |
+
"resolved": "https://registry.npmjs.org/@isaacs/nonrecursive-glob-match/-/nonrecursive-glob-match-1.0.3.tgz",
|
| 240 |
+
"integrity": "sha512-SI7kyKHq4XXDRozw+r9GlRZkia1ZkFrpLW98r2IC2Bpr8YkFGE3fvjzmxCG0x78A++69HmDNrDvSMYBZmHGpKA==",
|
| 241 |
+
"dev": true,
|
| 242 |
+
"license": "BlueOak-1.0.0"
|
| 243 |
+
},
|
| 244 |
+
"node_modules/@keyv/bigmap": {
|
| 245 |
+
"version": "1.3.1",
|
| 246 |
+
"resolved": "https://registry.npmjs.org/@keyv/bigmap/-/bigmap-1.3.1.tgz",
|
| 247 |
+
"integrity": "sha512-WbzE9sdmQtKy8vrNPa9BRnwZh5UF4s1KTmSK0KUVLo3eff5BlQNNWDnFOouNpKfPKDnms9xynJjsMYjMaT/aFQ==",
|
| 248 |
+
"dev": true,
|
| 249 |
+
"license": "MIT",
|
| 250 |
+
"dependencies": {
|
| 251 |
+
"hashery": "^1.4.0",
|
| 252 |
+
"hookified": "^1.15.0"
|
| 253 |
+
},
|
| 254 |
+
"engines": {
|
| 255 |
+
"node": ">= 18"
|
| 256 |
+
},
|
| 257 |
+
"peerDependencies": {
|
| 258 |
+
"keyv": "^5.6.0"
|
| 259 |
+
}
|
| 260 |
+
},
|
| 261 |
+
"node_modules/@keyv/serialize": {
|
| 262 |
+
"version": "1.1.1",
|
| 263 |
+
"resolved": "https://registry.npmjs.org/@keyv/serialize/-/serialize-1.1.1.tgz",
|
| 264 |
+
"integrity": "sha512-dXn3FZhPv0US+7dtJsIi2R+c7qWYiReoEh5zUntWCf4oSpMNib8FDhSoed6m3QyZdx5hK7iLFkYk3rNxwt8vTA==",
|
| 265 |
+
"dev": true,
|
| 266 |
+
"license": "MIT"
|
| 267 |
+
},
|
| 268 |
+
"node_modules/@types/esrecurse": {
|
| 269 |
+
"version": "4.3.1",
|
| 270 |
+
"resolved": "https://registry.npmjs.org/@types/esrecurse/-/esrecurse-4.3.1.tgz",
|
| 271 |
+
"integrity": "sha512-xJBAbDifo5hpffDBuHl0Y8ywswbiAp/Wi7Y/GtAgSlZyIABppyurxVueOPE8LUQOxdlgi6Zqce7uoEpqNTeiUw==",
|
| 272 |
+
"dev": true,
|
| 273 |
+
"license": "MIT"
|
| 274 |
+
},
|
| 275 |
+
"node_modules/@types/estree": {
|
| 276 |
+
"version": "1.0.10",
|
| 277 |
+
"resolved": "https://registry.npmjs.org/@types/estree/-/estree-1.0.10.tgz",
|
| 278 |
+
"integrity": "sha512-lTyOMnOcmRBzdCv6/4zUZCrEhV0xrqQiUZBZtVcbmLHBXKLnN8q89v/wKRF/Q0HbwVsqbIG3o5HDoFl9sduM+g==",
|
| 279 |
+
"dev": true,
|
| 280 |
+
"license": "MIT"
|
| 281 |
+
},
|
| 282 |
+
"node_modules/@types/json-schema": {
|
| 283 |
+
"version": "7.0.15",
|
| 284 |
+
"resolved": "https://registry.npmjs.org/@types/json-schema/-/json-schema-7.0.15.tgz",
|
| 285 |
+
"integrity": "sha512-5+fP8P8MFNC+AyZCDxrB2pkZFPGzqQWUzpSeuuVLvm8VMcorNYavBqoFcxK8bQz4Qsbn4oUEEem4wDLfcysGHA==",
|
| 286 |
+
"dev": true,
|
| 287 |
+
"license": "MIT"
|
| 288 |
+
},
|
| 289 |
+
"node_modules/@typescript/typescript-aix-ppc64": {
|
| 290 |
+
"version": "7.0.2",
|
| 291 |
+
"resolved": "https://registry.npmjs.org/@typescript/typescript-aix-ppc64/-/typescript-aix-ppc64-7.0.2.tgz",
|
| 292 |
+
"integrity": "sha512-MTKKkWB7p/0E9xi1d1tHtZ5PiLkGEMIq88pK2CubZjOsLtYTLqhgIgi6zepFa+9GHZ6h05NMCkQxGKiPXMxXtQ==",
|
| 293 |
+
"cpu": [
|
| 294 |
+
"ppc64"
|
| 295 |
+
],
|
| 296 |
+
"dev": true,
|
| 297 |
+
"license": "Apache-2.0",
|
| 298 |
+
"optional": true,
|
| 299 |
+
"os": [
|
| 300 |
+
"aix"
|
| 301 |
+
],
|
| 302 |
+
"engines": {
|
| 303 |
+
"node": ">=16.20.0"
|
| 304 |
+
}
|
| 305 |
+
},
|
| 306 |
+
"node_modules/@typescript/typescript-darwin-arm64": {
|
| 307 |
+
"version": "7.0.2",
|
| 308 |
+
"resolved": "https://registry.npmjs.org/@typescript/typescript-darwin-arm64/-/typescript-darwin-arm64-7.0.2.tgz",
|
| 309 |
+
"integrity": "sha512-gowzar9MwS/aRWp6f3a4KUqzRjAZjOsmGNCM6LcTgXum+dBfgsBVMN+AgvOCCbguXyick6LJhpBszxMebJ8syA==",
|
| 310 |
+
"cpu": [
|
| 311 |
+
"arm64"
|
| 312 |
+
],
|
| 313 |
+
"dev": true,
|
| 314 |
+
"license": "Apache-2.0",
|
| 315 |
+
"optional": true,
|
| 316 |
+
"os": [
|
| 317 |
+
"darwin"
|
| 318 |
+
],
|
| 319 |
+
"engines": {
|
| 320 |
+
"node": ">=16.20.0"
|
| 321 |
+
}
|
| 322 |
+
},
|
| 323 |
+
"node_modules/@typescript/typescript-darwin-x64": {
|
| 324 |
+
"version": "7.0.2",
|
| 325 |
+
"resolved": "https://registry.npmjs.org/@typescript/typescript-darwin-x64/-/typescript-darwin-x64-7.0.2.tgz",
|
| 326 |
+
"integrity": "sha512-SZ9xZInqApNlNGc9s0W1VSsktYSOe9cFqNOIqmN1Gs8SmkjKZYFt017G4VwPxASInODuAdbTW7sXiFUf893RgA==",
|
| 327 |
+
"cpu": [
|
| 328 |
+
"x64"
|
| 329 |
+
],
|
| 330 |
+
"dev": true,
|
| 331 |
+
"license": "Apache-2.0",
|
| 332 |
+
"optional": true,
|
| 333 |
+
"os": [
|
| 334 |
+
"darwin"
|
| 335 |
+
],
|
| 336 |
+
"engines": {
|
| 337 |
+
"node": ">=16.20.0"
|
| 338 |
+
}
|
| 339 |
+
},
|
| 340 |
+
"node_modules/@typescript/typescript-freebsd-arm64": {
|
| 341 |
+
"version": "7.0.2",
|
| 342 |
+
"resolved": "https://registry.npmjs.org/@typescript/typescript-freebsd-arm64/-/typescript-freebsd-arm64-7.0.2.tgz",
|
| 343 |
+
"integrity": "sha512-W5NH4y/J0plIIS5b2xvTEkU7JFxyqdMAOgf+Ilhl0vHQXKO5dZoxd+C/jEtq56c4F3wk71RB4BMRQ2XdI+bwYQ==",
|
| 344 |
+
"cpu": [
|
| 345 |
+
"arm64"
|
| 346 |
+
],
|
| 347 |
+
"dev": true,
|
| 348 |
+
"license": "Apache-2.0",
|
| 349 |
+
"optional": true,
|
| 350 |
+
"os": [
|
| 351 |
+
"freebsd"
|
| 352 |
+
],
|
| 353 |
+
"engines": {
|
| 354 |
+
"node": ">=16.20.0"
|
| 355 |
+
}
|
| 356 |
+
},
|
| 357 |
+
"node_modules/@typescript/typescript-freebsd-x64": {
|
| 358 |
+
"version": "7.0.2",
|
| 359 |
+
"resolved": "https://registry.npmjs.org/@typescript/typescript-freebsd-x64/-/typescript-freebsd-x64-7.0.2.tgz",
|
| 360 |
+
"integrity": "sha512-UMGDx5sTpzNw3WiPebH7l90IWfJggEd+egHt/q6p7/Cm3zqoV7VxkGXt+3DxPIw8CcmvAB0j3sVVfbhX+M4Tpw==",
|
| 361 |
+
"cpu": [
|
| 362 |
+
"x64"
|
| 363 |
+
],
|
| 364 |
+
"dev": true,
|
| 365 |
+
"license": "Apache-2.0",
|
| 366 |
+
"optional": true,
|
| 367 |
+
"os": [
|
| 368 |
+
"freebsd"
|
| 369 |
+
],
|
| 370 |
+
"engines": {
|
| 371 |
+
"node": ">=16.20.0"
|
| 372 |
+
}
|
| 373 |
+
},
|
| 374 |
+
"node_modules/@typescript/typescript-linux-arm": {
|
| 375 |
+
"version": "7.0.2",
|
| 376 |
+
"resolved": "https://registry.npmjs.org/@typescript/typescript-linux-arm/-/typescript-linux-arm-7.0.2.tgz",
|
| 377 |
+
"integrity": "sha512-gffT3xPz9sR7j/YJExkyPntrI0P2EP9XbOyWzth2/Gs0RstK+90RBcO0ncXoXy/beYll1SXw846Nf2zdnEz0QQ==",
|
| 378 |
+
"cpu": [
|
| 379 |
+
"arm"
|
| 380 |
+
],
|
| 381 |
+
"dev": true,
|
| 382 |
+
"license": "Apache-2.0",
|
| 383 |
+
"optional": true,
|
| 384 |
+
"os": [
|
| 385 |
+
"linux"
|
| 386 |
+
],
|
| 387 |
+
"engines": {
|
| 388 |
+
"node": ">=16.20.0"
|
| 389 |
+
}
|
| 390 |
+
},
|
| 391 |
+
"node_modules/@typescript/typescript-linux-arm64": {
|
| 392 |
+
"version": "7.0.2",
|
| 393 |
+
"resolved": "https://registry.npmjs.org/@typescript/typescript-linux-arm64/-/typescript-linux-arm64-7.0.2.tgz",
|
| 394 |
+
"integrity": "sha512-Qh4eU4/y3yDjnfjjyPYihMj5/ODIlmt+Bzu17OI+fiSRDW57QmU5SiN63exPRNJPKUzcc1INa1NXdrJ+MqHjUQ==",
|
| 395 |
+
"cpu": [
|
| 396 |
+
"arm64"
|
| 397 |
+
],
|
| 398 |
+
"dev": true,
|
| 399 |
+
"license": "Apache-2.0",
|
| 400 |
+
"optional": true,
|
| 401 |
+
"os": [
|
| 402 |
+
"linux"
|
| 403 |
+
],
|
| 404 |
+
"engines": {
|
| 405 |
+
"node": ">=16.20.0"
|
| 406 |
+
}
|
| 407 |
+
},
|
| 408 |
+
"node_modules/@typescript/typescript-linux-loong64": {
|
| 409 |
+
"version": "7.0.2",
|
| 410 |
+
"resolved": "https://registry.npmjs.org/@typescript/typescript-linux-loong64/-/typescript-linux-loong64-7.0.2.tgz",
|
| 411 |
+
"integrity": "sha512-uEHck9i8hoAzXPiYRib1O7miOnz23SxIeVl6F4LXox+qov1K35jHcEW6VHKvZI+pyvl7fZEP4MCU5LYvIq1GuQ==",
|
| 412 |
+
"cpu": [
|
| 413 |
+
"loong64"
|
| 414 |
+
],
|
| 415 |
+
"dev": true,
|
| 416 |
+
"license": "Apache-2.0",
|
| 417 |
+
"optional": true,
|
| 418 |
+
"os": [
|
| 419 |
+
"linux"
|
| 420 |
+
],
|
| 421 |
+
"engines": {
|
| 422 |
+
"node": ">=16.20.0"
|
| 423 |
+
}
|
| 424 |
+
},
|
| 425 |
+
"node_modules/@typescript/typescript-linux-mips64el": {
|
| 426 |
+
"version": "7.0.2",
|
| 427 |
+
"resolved": "https://registry.npmjs.org/@typescript/typescript-linux-mips64el/-/typescript-linux-mips64el-7.0.2.tgz",
|
| 428 |
+
"integrity": "sha512-R4KvAMnE43W5Qeqb0Ly56O3mWMWIAgsMyz36DCaycd5nbg/9kzm0liw3JocfRqyJY0KPmzFjbswozXyW0DnIYA==",
|
| 429 |
+
"cpu": [
|
| 430 |
+
"mips64el"
|
| 431 |
+
],
|
| 432 |
+
"dev": true,
|
| 433 |
+
"license": "Apache-2.0",
|
| 434 |
+
"optional": true,
|
| 435 |
+
"os": [
|
| 436 |
+
"linux"
|
| 437 |
+
],
|
| 438 |
+
"engines": {
|
| 439 |
+
"node": ">=16.20.0"
|
| 440 |
+
}
|
| 441 |
+
},
|
| 442 |
+
"node_modules/@typescript/typescript-linux-ppc64": {
|
| 443 |
+
"version": "7.0.2",
|
| 444 |
+
"resolved": "https://registry.npmjs.org/@typescript/typescript-linux-ppc64/-/typescript-linux-ppc64-7.0.2.tgz",
|
| 445 |
+
"integrity": "sha512-DORx5b3sd/4S7eayxm4FQv+A7CrkUIGRaHiwI8oiHTAI1fAPWhF4J0vAlkC8biAlHSVVwxMQ3tjZ2/DVbnQiiA==",
|
| 446 |
+
"cpu": [
|
| 447 |
+
"ppc64"
|
| 448 |
+
],
|
| 449 |
+
"dev": true,
|
| 450 |
+
"license": "Apache-2.0",
|
| 451 |
+
"optional": true,
|
| 452 |
+
"os": [
|
| 453 |
+
"linux"
|
| 454 |
+
],
|
| 455 |
+
"engines": {
|
| 456 |
+
"node": ">=16.20.0"
|
| 457 |
+
}
|
| 458 |
+
},
|
| 459 |
+
"node_modules/@typescript/typescript-linux-riscv64": {
|
| 460 |
+
"version": "7.0.2",
|
| 461 |
+
"resolved": "https://registry.npmjs.org/@typescript/typescript-linux-riscv64/-/typescript-linux-riscv64-7.0.2.tgz",
|
| 462 |
+
"integrity": "sha512-wf0jqEDOjrPRnKwYRyyJDRo11KMbvMFrU+q4zqKyChODBzvlkbhNQfKvLxQCcwTpdDaXSHZTVuh0JoCrKCUMHQ==",
|
| 463 |
+
"cpu": [
|
| 464 |
+
"riscv64"
|
| 465 |
+
],
|
| 466 |
+
"dev": true,
|
| 467 |
+
"license": "Apache-2.0",
|
| 468 |
+
"optional": true,
|
| 469 |
+
"os": [
|
| 470 |
+
"linux"
|
| 471 |
+
],
|
| 472 |
+
"engines": {
|
| 473 |
+
"node": ">=16.20.0"
|
| 474 |
+
}
|
| 475 |
+
},
|
| 476 |
+
"node_modules/@typescript/typescript-linux-s390x": {
|
| 477 |
+
"version": "7.0.2",
|
| 478 |
+
"resolved": "https://registry.npmjs.org/@typescript/typescript-linux-s390x/-/typescript-linux-s390x-7.0.2.tgz",
|
| 479 |
+
"integrity": "sha512-IkwJc3L7yhytWd/ewjyxNDfOmswCm9GWMJT/ue/dU4aZNbwZeYAetq42VyLmsmSjvoX7z74X6ZaYCtzAr0EuGw==",
|
| 480 |
+
"cpu": [
|
| 481 |
+
"s390x"
|
| 482 |
+
],
|
| 483 |
+
"dev": true,
|
| 484 |
+
"license": "Apache-2.0",
|
| 485 |
+
"optional": true,
|
| 486 |
+
"os": [
|
| 487 |
+
"linux"
|
| 488 |
+
],
|
| 489 |
+
"engines": {
|
| 490 |
+
"node": ">=16.20.0"
|
| 491 |
+
}
|
| 492 |
+
},
|
| 493 |
+
"node_modules/@typescript/typescript-linux-x64": {
|
| 494 |
+
"version": "7.0.2",
|
| 495 |
+
"resolved": "https://registry.npmjs.org/@typescript/typescript-linux-x64/-/typescript-linux-x64-7.0.2.tgz",
|
| 496 |
+
"integrity": "sha512-EYdf2cNg7rgCWJnxCdJ+F3V39O8ihb37eHAu1LK8oAFizgTQbPOK7zHHXbPt8rX24COqODXeI3sIf0fCXG7H/A==",
|
| 497 |
+
"cpu": [
|
| 498 |
+
"x64"
|
| 499 |
+
],
|
| 500 |
+
"dev": true,
|
| 501 |
+
"license": "Apache-2.0",
|
| 502 |
+
"optional": true,
|
| 503 |
+
"os": [
|
| 504 |
+
"linux"
|
| 505 |
+
],
|
| 506 |
+
"engines": {
|
| 507 |
+
"node": ">=16.20.0"
|
| 508 |
+
}
|
| 509 |
+
},
|
| 510 |
+
"node_modules/@typescript/typescript-netbsd-arm64": {
|
| 511 |
+
"version": "7.0.2",
|
| 512 |
+
"resolved": "https://registry.npmjs.org/@typescript/typescript-netbsd-arm64/-/typescript-netbsd-arm64-7.0.2.tgz",
|
| 513 |
+
"integrity": "sha512-+polYF4MF04aPpO5FTkHran9yUQDSXqy5GiSDKpsll5jy3l3+g9QLhpf39T+ePtefhXLOGrLl0QIjkQP6VnelA==",
|
| 514 |
+
"cpu": [
|
| 515 |
+
"arm64"
|
| 516 |
+
],
|
| 517 |
+
"dev": true,
|
| 518 |
+
"license": "Apache-2.0",
|
| 519 |
+
"optional": true,
|
| 520 |
+
"os": [
|
| 521 |
+
"netbsd"
|
| 522 |
+
],
|
| 523 |
+
"engines": {
|
| 524 |
+
"node": ">=16.20.0"
|
| 525 |
+
}
|
| 526 |
+
},
|
| 527 |
+
"node_modules/@typescript/typescript-netbsd-x64": {
|
| 528 |
+
"version": "7.0.2",
|
| 529 |
+
"resolved": "https://registry.npmjs.org/@typescript/typescript-netbsd-x64/-/typescript-netbsd-x64-7.0.2.tgz",
|
| 530 |
+
"integrity": "sha512-8YIT0EHM/3dq10ZOVF/A7pc/YSMtbcecct4rWtexrnSCHOPcpC2KTLXfTCR6vDpnSiY12heNb1GiN/wu+T/FyA==",
|
| 531 |
+
"cpu": [
|
| 532 |
+
"x64"
|
| 533 |
+
],
|
| 534 |
+
"dev": true,
|
| 535 |
+
"license": "Apache-2.0",
|
| 536 |
+
"optional": true,
|
| 537 |
+
"os": [
|
| 538 |
+
"netbsd"
|
| 539 |
+
],
|
| 540 |
+
"engines": {
|
| 541 |
+
"node": ">=16.20.0"
|
| 542 |
+
}
|
| 543 |
+
},
|
| 544 |
+
"node_modules/@typescript/typescript-openbsd-arm64": {
|
| 545 |
+
"version": "7.0.2",
|
| 546 |
+
"resolved": "https://registry.npmjs.org/@typescript/typescript-openbsd-arm64/-/typescript-openbsd-arm64-7.0.2.tgz",
|
| 547 |
+
"integrity": "sha512-APT8+ClYnuYm1u9+kgGXoMj2VzWzcymwh2gNSQVySHfkRDGOTVkoWLjCmOQSaO+PoqQ57B0flRp9SA+7GnnkzQ==",
|
| 548 |
+
"cpu": [
|
| 549 |
+
"arm64"
|
| 550 |
+
],
|
| 551 |
+
"dev": true,
|
| 552 |
+
"license": "Apache-2.0",
|
| 553 |
+
"optional": true,
|
| 554 |
+
"os": [
|
| 555 |
+
"openbsd"
|
| 556 |
+
],
|
| 557 |
+
"engines": {
|
| 558 |
+
"node": ">=16.20.0"
|
| 559 |
+
}
|
| 560 |
+
},
|
| 561 |
+
"node_modules/@typescript/typescript-openbsd-x64": {
|
| 562 |
+
"version": "7.0.2",
|
| 563 |
+
"resolved": "https://registry.npmjs.org/@typescript/typescript-openbsd-x64/-/typescript-openbsd-x64-7.0.2.tgz",
|
| 564 |
+
"integrity": "sha512-yX7s+Q0Dln0Dt9tEzZsAjXXR/+ytBM7AlglaqyeMPxQszJ1JhlJdZ6jLA+IzldHtflX81em7lDao1xXu+aRRkg==",
|
| 565 |
+
"cpu": [
|
| 566 |
+
"x64"
|
| 567 |
+
],
|
| 568 |
+
"dev": true,
|
| 569 |
+
"license": "Apache-2.0",
|
| 570 |
+
"optional": true,
|
| 571 |
+
"os": [
|
| 572 |
+
"openbsd"
|
| 573 |
+
],
|
| 574 |
+
"engines": {
|
| 575 |
+
"node": ">=16.20.0"
|
| 576 |
+
}
|
| 577 |
+
},
|
| 578 |
+
"node_modules/@typescript/typescript-sunos-x64": {
|
| 579 |
+
"version": "7.0.2",
|
| 580 |
+
"resolved": "https://registry.npmjs.org/@typescript/typescript-sunos-x64/-/typescript-sunos-x64-7.0.2.tgz",
|
| 581 |
+
"integrity": "sha512-dLJDGaLZ1D4HPQn62u1n8mBDkJREwMsAkCdkwd4Ieqw+x3TUyTsqY0YiBCtE6H6OzzgGk3iuZ3vFWRS+E8/d1g==",
|
| 582 |
+
"cpu": [
|
| 583 |
+
"x64"
|
| 584 |
+
],
|
| 585 |
+
"dev": true,
|
| 586 |
+
"license": "Apache-2.0",
|
| 587 |
+
"optional": true,
|
| 588 |
+
"os": [
|
| 589 |
+
"sunos"
|
| 590 |
+
],
|
| 591 |
+
"engines": {
|
| 592 |
+
"node": ">=16.20.0"
|
| 593 |
+
}
|
| 594 |
+
},
|
| 595 |
+
"node_modules/@typescript/typescript-win32-arm64": {
|
| 596 |
+
"version": "7.0.2",
|
| 597 |
+
"resolved": "https://registry.npmjs.org/@typescript/typescript-win32-arm64/-/typescript-win32-arm64-7.0.2.tgz",
|
| 598 |
+
"integrity": "sha512-Gyl1Vy6OsWesLzmq+EP0Fb7b4Nid5232AvcA2SFcdYreldpNtYFFofPjnt62y9hQy7VTaZp65ICJjuAQRaVcIQ==",
|
| 599 |
+
"cpu": [
|
| 600 |
+
"arm64"
|
| 601 |
+
],
|
| 602 |
+
"dev": true,
|
| 603 |
+
"license": "Apache-2.0",
|
| 604 |
+
"optional": true,
|
| 605 |
+
"os": [
|
| 606 |
+
"win32"
|
| 607 |
+
],
|
| 608 |
+
"engines": {
|
| 609 |
+
"node": ">=16.20.0"
|
| 610 |
+
}
|
| 611 |
+
},
|
| 612 |
+
"node_modules/@typescript/typescript-win32-x64": {
|
| 613 |
+
"version": "7.0.2",
|
| 614 |
+
"resolved": "https://registry.npmjs.org/@typescript/typescript-win32-x64/-/typescript-win32-x64-7.0.2.tgz",
|
| 615 |
+
"integrity": "sha512-0BQ3HkAHHlKLSp1qRvf3SUhGpGsDuhB/jgFw75guyqbxJqEaS0Cw/VFO8i2nHglJUzQCRtMMR/IBAKE3ETMC4g==",
|
| 616 |
+
"cpu": [
|
| 617 |
+
"x64"
|
| 618 |
+
],
|
| 619 |
+
"dev": true,
|
| 620 |
+
"license": "Apache-2.0",
|
| 621 |
+
"optional": true,
|
| 622 |
+
"os": [
|
| 623 |
+
"win32"
|
| 624 |
+
],
|
| 625 |
+
"engines": {
|
| 626 |
+
"node": ">=16.20.0"
|
| 627 |
+
}
|
| 628 |
+
},
|
| 629 |
+
"node_modules/acorn": {
|
| 630 |
+
"version": "8.19.0",
|
| 631 |
+
"resolved": "https://registry.npmjs.org/acorn/-/acorn-8.19.0.tgz",
|
| 632 |
+
"integrity": "sha512-oJlA3XiRm7Cyk6qFD2Jn8ak9B7jSy0qy00ADO3+8dpT0LSjFihQYv4C02LFCSYJV3Q37xYwwRy5m+IpIiUzqWw==",
|
| 633 |
+
"dev": true,
|
| 634 |
+
"license": "MIT",
|
| 635 |
+
"bin": {
|
| 636 |
+
"acorn": "bin/acorn"
|
| 637 |
+
},
|
| 638 |
+
"engines": {
|
| 639 |
+
"node": ">=0.4.0"
|
| 640 |
+
}
|
| 641 |
+
},
|
| 642 |
+
"node_modules/acorn-jsx": {
|
| 643 |
+
"version": "5.3.2",
|
| 644 |
+
"resolved": "https://registry.npmjs.org/acorn-jsx/-/acorn-jsx-5.3.2.tgz",
|
| 645 |
+
"integrity": "sha512-rq9s+JNhf0IChjtDXxllJ7g41oZk5SlXtp0LHwyA5cejwn7vKmKp4pPri6YEePv2PU65sAsegbXtIinmDFDXgQ==",
|
| 646 |
+
"dev": true,
|
| 647 |
+
"license": "MIT",
|
| 648 |
+
"peerDependencies": {
|
| 649 |
+
"acorn": "^6.0.0 || ^7.0.0 || ^8.0.0"
|
| 650 |
+
}
|
| 651 |
+
},
|
| 652 |
+
"node_modules/ajv": {
|
| 653 |
+
"version": "6.15.0",
|
| 654 |
+
"resolved": "https://registry.npmjs.org/ajv/-/ajv-6.15.0.tgz",
|
| 655 |
+
"integrity": "sha512-fgFx7Hfoq60ytK2c7DhnF8jIvzYgOMxfugjLOSMHjLIPgenqa7S7oaagATUq99mV6IYvN2tRmC0wnTYX6iPbMw==",
|
| 656 |
+
"dev": true,
|
| 657 |
+
"license": "MIT",
|
| 658 |
+
"dependencies": {
|
| 659 |
+
"fast-deep-equal": "^3.1.1",
|
| 660 |
+
"fast-json-stable-stringify": "^2.0.0",
|
| 661 |
+
"json-schema-traverse": "^0.4.1",
|
| 662 |
+
"uri-js": "^4.2.2"
|
| 663 |
+
},
|
| 664 |
+
"funding": {
|
| 665 |
+
"type": "github",
|
| 666 |
+
"url": "https://github.com/sponsors/epoberezkin"
|
| 667 |
+
}
|
| 668 |
+
},
|
| 669 |
+
"node_modules/balanced-match": {
|
| 670 |
+
"version": "4.0.4",
|
| 671 |
+
"resolved": "https://registry.npmjs.org/balanced-match/-/balanced-match-4.0.4.tgz",
|
| 672 |
+
"integrity": "sha512-BLrgEcRTwX2o6gGxGOCNyMvGSp35YofuYzw9h1IMTRmKqttAZZVU67bdb9Pr2vUHA8+j3i2tJfjO6C6+4myGTA==",
|
| 673 |
+
"dev": true,
|
| 674 |
+
"license": "MIT",
|
| 675 |
+
"engines": {
|
| 676 |
+
"node": "18 || 20 || >=22"
|
| 677 |
+
}
|
| 678 |
+
},
|
| 679 |
+
"node_modules/brace-expansion": {
|
| 680 |
+
"version": "5.0.12",
|
| 681 |
+
"resolved": "https://registry.npmjs.org/brace-expansion/-/brace-expansion-5.0.12.tgz",
|
| 682 |
+
"integrity": "sha512-YovQ3rzhaLMIrDjNDMkNS01tea93qhEhG5xy8f6+R0l+dw3Ki+5sCoIoI942iuLZTHWogWktgwVDhU09iNEimQ==",
|
| 683 |
+
"dev": true,
|
| 684 |
+
"license": "MIT",
|
| 685 |
+
"dependencies": {
|
| 686 |
+
"balanced-match": "^4.0.2"
|
| 687 |
+
},
|
| 688 |
+
"engines": {
|
| 689 |
+
"node": "20 || >=22"
|
| 690 |
+
}
|
| 691 |
+
},
|
| 692 |
+
"node_modules/cacheable": {
|
| 693 |
+
"version": "2.5.0",
|
| 694 |
+
"resolved": "https://registry.npmjs.org/cacheable/-/cacheable-2.5.0.tgz",
|
| 695 |
+
"integrity": "sha512-60cyAOytib/OzBw1JNSoSV/boK1AtHryDIjvVBk7XbN4ugfkM3+Sry7fEjNgPMGgOjuaZPAp8ruZ0Cxafwyq9g==",
|
| 696 |
+
"dev": true,
|
| 697 |
+
"license": "MIT",
|
| 698 |
+
"dependencies": {
|
| 699 |
+
"@cacheable/memory": "^2.2.0",
|
| 700 |
+
"@cacheable/utils": "^2.5.0",
|
| 701 |
+
"hookified": "^1.15.0",
|
| 702 |
+
"keyv": "^5.6.0",
|
| 703 |
+
"qified": "^0.10.1"
|
| 704 |
+
}
|
| 705 |
+
},
|
| 706 |
+
"node_modules/cross-spawn": {
|
| 707 |
+
"version": "7.0.6",
|
| 708 |
+
"resolved": "https://registry.npmjs.org/cross-spawn/-/cross-spawn-7.0.6.tgz",
|
| 709 |
+
"integrity": "sha512-uV2QOWP2nWzsy2aMp8aRibhi9dlzF5Hgh5SHaB9OiTGEyDTiJJyx0uy51QXdyWbtAHNua4XJzUKca3OzKUd3vA==",
|
| 710 |
+
"dev": true,
|
| 711 |
+
"license": "MIT",
|
| 712 |
+
"dependencies": {
|
| 713 |
+
"path-key": "^3.1.0",
|
| 714 |
+
"shebang-command": "^2.0.0",
|
| 715 |
+
"which": "^2.0.1"
|
| 716 |
+
},
|
| 717 |
+
"engines": {
|
| 718 |
+
"node": ">= 8"
|
| 719 |
+
}
|
| 720 |
+
},
|
| 721 |
+
"node_modules/debug": {
|
| 722 |
+
"version": "4.4.3",
|
| 723 |
+
"resolved": "https://registry.npmjs.org/debug/-/debug-4.4.3.tgz",
|
| 724 |
+
"integrity": "sha512-RGwwWnwQvkVfavKVt22FGLw+xYSdzARwm0ru6DhTVA3umU5hZc28V3kO4stgYryrTlLpuvgI9GiijltAjNbcqA==",
|
| 725 |
+
"dev": true,
|
| 726 |
+
"license": "MIT",
|
| 727 |
+
"dependencies": {
|
| 728 |
+
"ms": "^2.1.3"
|
| 729 |
+
},
|
| 730 |
+
"engines": {
|
| 731 |
+
"node": ">=6.0"
|
| 732 |
+
},
|
| 733 |
+
"peerDependenciesMeta": {
|
| 734 |
+
"supports-color": {
|
| 735 |
+
"optional": true
|
| 736 |
+
}
|
| 737 |
+
}
|
| 738 |
+
},
|
| 739 |
+
"node_modules/deep-is": {
|
| 740 |
+
"version": "0.1.4",
|
| 741 |
+
"resolved": "https://registry.npmjs.org/deep-is/-/deep-is-0.1.4.tgz",
|
| 742 |
+
"integrity": "sha512-oIPzksmTg4/MriiaYGO+okXDT7ztn/w3Eptv/+gSIdMdKsJo0u4CfYNFJPy+4SKMuCqGw2wxnA+URMg3t8a/bQ==",
|
| 743 |
+
"dev": true,
|
| 744 |
+
"license": "MIT"
|
| 745 |
+
},
|
| 746 |
+
"node_modules/entities": {
|
| 747 |
+
"version": "9.0.0",
|
| 748 |
+
"resolved": "https://registry.npmjs.org/entities/-/entities-9.0.0.tgz",
|
| 749 |
+
"integrity": "sha512-oJFNDJg3kTPwAD1cNn2+WmUq4wFoo09npc3Ydf1D7ED4smRiWrsKnaLxykrTWgyGEcusc87P5dxlAleol9kpkg==",
|
| 750 |
+
"dev": true,
|
| 751 |
+
"license": "BSD-2-Clause",
|
| 752 |
+
"engines": {
|
| 753 |
+
"node": ">=20.19.0"
|
| 754 |
+
},
|
| 755 |
+
"funding": {
|
| 756 |
+
"url": "https://github.com/fb55/entities?sponsor=1"
|
| 757 |
+
}
|
| 758 |
+
},
|
| 759 |
+
"node_modules/escape-string-regexp": {
|
| 760 |
+
"version": "4.0.0",
|
| 761 |
+
"resolved": "https://registry.npmjs.org/escape-string-regexp/-/escape-string-regexp-4.0.0.tgz",
|
| 762 |
+
"integrity": "sha512-TtpcNJ3XAzx3Gq8sWRzJaVajRs0uVxA2YAkdb1jm2YkPz4G6egUFAyA3n5vtEIZefPk5Wa4UXbKuS5fKkJWdgA==",
|
| 763 |
+
"dev": true,
|
| 764 |
+
"license": "MIT",
|
| 765 |
+
"engines": {
|
| 766 |
+
"node": ">=10"
|
| 767 |
+
},
|
| 768 |
+
"funding": {
|
| 769 |
+
"url": "https://github.com/sponsors/sindresorhus"
|
| 770 |
+
}
|
| 771 |
+
},
|
| 772 |
+
"node_modules/eslint": {
|
| 773 |
+
"version": "10.14.0",
|
| 774 |
+
"resolved": "https://registry.npmjs.org/eslint/-/eslint-10.14.0.tgz",
|
| 775 |
+
"integrity": "sha512-T0pNsxkb9IKmtQjhpK3d7nWOpFv+YHuMbTJnSVMoQblF0onvXfErrtp4V1jHtsQPan7dKaGVD0q1WCXnzMF31A==",
|
| 776 |
+
"dev": true,
|
| 777 |
+
"license": "MIT",
|
| 778 |
+
"workspaces": [
|
| 779 |
+
"packages/*"
|
| 780 |
+
],
|
| 781 |
+
"dependencies": {
|
| 782 |
+
"@eslint-community/eslint-utils": "^4.8.0",
|
| 783 |
+
"@eslint-community/regexpp": "^4.12.2",
|
| 784 |
+
"@eslint/config-array": "^0.23.5",
|
| 785 |
+
"@eslint/config-helpers": "^0.7.0",
|
| 786 |
+
"@eslint/core": "^1.2.1",
|
| 787 |
+
"@eslint/plugin-kit": "^0.7.3",
|
| 788 |
+
"@humanfs/node": "^0.16.8",
|
| 789 |
+
"@humanwhocodes/module-importer": "^1.0.1",
|
| 790 |
+
"@humanwhocodes/retry": "^0.4.2",
|
| 791 |
+
"@types/estree": "^1.0.6",
|
| 792 |
+
"ajv": "^6.14.0",
|
| 793 |
+
"cross-spawn": "^7.0.6",
|
| 794 |
+
"debug": "^4.3.2",
|
| 795 |
+
"escape-string-regexp": "^4.0.0",
|
| 796 |
+
"eslint-scope": "^9.1.2",
|
| 797 |
+
"eslint-visitor-keys": "^5.0.1",
|
| 798 |
+
"espree": "^11.2.0",
|
| 799 |
+
"esquery": "^1.7.0",
|
| 800 |
+
"esutils": "^2.0.2",
|
| 801 |
+
"fast-deep-equal": "^3.1.3",
|
| 802 |
+
"file-entry-cache": "11.1.5 || >11.1.6 <12",
|
| 803 |
+
"find-up": "^5.0.0",
|
| 804 |
+
"glob-parent": "^6.0.2",
|
| 805 |
+
"ignore": "^5.2.0",
|
| 806 |
+
"imurmurhash": "^0.1.4",
|
| 807 |
+
"is-glob": "^4.0.0",
|
| 808 |
+
"json-stable-stringify-without-jsonify": "^1.0.1",
|
| 809 |
+
"minimatch": "^10.2.6",
|
| 810 |
+
"natural-compare": "^1.4.0",
|
| 811 |
+
"optionator": "^0.9.3"
|
| 812 |
+
},
|
| 813 |
+
"bin": {
|
| 814 |
+
"eslint": "bin/eslint.js"
|
| 815 |
+
},
|
| 816 |
+
"engines": {
|
| 817 |
+
"node": "^20.19.0 || ^22.13.0 || >=24"
|
| 818 |
+
},
|
| 819 |
+
"funding": {
|
| 820 |
+
"url": "https://eslint.org/donate"
|
| 821 |
+
},
|
| 822 |
+
"peerDependencies": {
|
| 823 |
+
"jiti": "*"
|
| 824 |
+
},
|
| 825 |
+
"peerDependenciesMeta": {
|
| 826 |
+
"jiti": {
|
| 827 |
+
"optional": true
|
| 828 |
+
}
|
| 829 |
+
}
|
| 830 |
+
},
|
| 831 |
+
"node_modules/eslint-scope": {
|
| 832 |
+
"version": "9.1.2",
|
| 833 |
+
"resolved": "https://registry.npmjs.org/eslint-scope/-/eslint-scope-9.1.2.tgz",
|
| 834 |
+
"integrity": "sha512-xS90H51cKw0jltxmvmHy2Iai1LIqrfbw57b79w/J7MfvDfkIkFZ+kj6zC3BjtUwh150HsSSdxXZcsuv72miDFQ==",
|
| 835 |
+
"dev": true,
|
| 836 |
+
"license": "BSD-2-Clause",
|
| 837 |
+
"dependencies": {
|
| 838 |
+
"@types/esrecurse": "^4.3.1",
|
| 839 |
+
"@types/estree": "^1.0.8",
|
| 840 |
+
"esrecurse": "^4.3.0",
|
| 841 |
+
"estraverse": "^5.2.0"
|
| 842 |
+
},
|
| 843 |
+
"engines": {
|
| 844 |
+
"node": "^20.19.0 || ^22.13.0 || >=24"
|
| 845 |
+
},
|
| 846 |
+
"funding": {
|
| 847 |
+
"url": "https://opencollective.com/eslint"
|
| 848 |
+
}
|
| 849 |
+
},
|
| 850 |
+
"node_modules/eslint-visitor-keys": {
|
| 851 |
+
"version": "5.0.1",
|
| 852 |
+
"resolved": "https://registry.npmjs.org/eslint-visitor-keys/-/eslint-visitor-keys-5.0.1.tgz",
|
| 853 |
+
"integrity": "sha512-tD40eHxA35h0PEIZNeIjkHoDR4YjjJp34biM0mDvplBe//mB+IHCqHDGV7pxF+7MklTvighcCPPZC7ynWyjdTA==",
|
| 854 |
+
"dev": true,
|
| 855 |
+
"license": "Apache-2.0",
|
| 856 |
+
"engines": {
|
| 857 |
+
"node": "^20.19.0 || ^22.13.0 || >=24"
|
| 858 |
+
},
|
| 859 |
+
"funding": {
|
| 860 |
+
"url": "https://opencollective.com/eslint"
|
| 861 |
+
}
|
| 862 |
+
},
|
| 863 |
+
"node_modules/espree": {
|
| 864 |
+
"version": "11.2.0",
|
| 865 |
+
"resolved": "https://registry.npmjs.org/espree/-/espree-11.2.0.tgz",
|
| 866 |
+
"integrity": "sha512-7p3DrVEIopW1B1avAGLuCSh1jubc01H2JHc8B4qqGblmg5gI9yumBgACjWo4JlIc04ufug4xJ3SQI8HkS/Rgzw==",
|
| 867 |
+
"dev": true,
|
| 868 |
+
"license": "BSD-2-Clause",
|
| 869 |
+
"dependencies": {
|
| 870 |
+
"acorn": "^8.16.0",
|
| 871 |
+
"acorn-jsx": "^5.3.2",
|
| 872 |
+
"eslint-visitor-keys": "^5.0.1"
|
| 873 |
+
},
|
| 874 |
+
"engines": {
|
| 875 |
+
"node": "^20.19.0 || ^22.13.0 || >=24"
|
| 876 |
+
},
|
| 877 |
+
"funding": {
|
| 878 |
+
"url": "https://opencollective.com/eslint"
|
| 879 |
+
}
|
| 880 |
+
},
|
| 881 |
+
"node_modules/esquery": {
|
| 882 |
+
"version": "1.7.0",
|
| 883 |
+
"resolved": "https://registry.npmjs.org/esquery/-/esquery-1.7.0.tgz",
|
| 884 |
+
"integrity": "sha512-Ap6G0WQwcU/LHsvLwON1fAQX9Zp0A2Y6Y/cJBl9r/JbW90Zyg4/zbG6zzKa2OTALELarYHmKu0GhpM5EO+7T0g==",
|
| 885 |
+
"dev": true,
|
| 886 |
+
"license": "BSD-3-Clause",
|
| 887 |
+
"dependencies": {
|
| 888 |
+
"estraverse": "^5.1.0"
|
| 889 |
+
},
|
| 890 |
+
"engines": {
|
| 891 |
+
"node": ">=0.10"
|
| 892 |
+
}
|
| 893 |
+
},
|
| 894 |
+
"node_modules/esrecurse": {
|
| 895 |
+
"version": "4.3.0",
|
| 896 |
+
"resolved": "https://registry.npmjs.org/esrecurse/-/esrecurse-4.3.0.tgz",
|
| 897 |
+
"integrity": "sha512-KmfKL3b6G+RXvP8N1vr3Tq1kL/oCFgn2NYXEtqP8/L3pKapUA4G8cFVaoF3SU323CD4XypR/ffioHmkti6/Tag==",
|
| 898 |
+
"dev": true,
|
| 899 |
+
"license": "BSD-2-Clause",
|
| 900 |
+
"dependencies": {
|
| 901 |
+
"estraverse": "^5.2.0"
|
| 902 |
+
},
|
| 903 |
+
"engines": {
|
| 904 |
+
"node": ">=4.0"
|
| 905 |
+
}
|
| 906 |
+
},
|
| 907 |
+
"node_modules/estraverse": {
|
| 908 |
+
"version": "5.3.0",
|
| 909 |
+
"resolved": "https://registry.npmjs.org/estraverse/-/estraverse-5.3.0.tgz",
|
| 910 |
+
"integrity": "sha512-MMdARuVEQziNTeJD8DgMqmhwR11BRQ/cBP+pLtYdSTnf3MIO8fFeiINEbX36ZdNlfU/7A9f3gUw49B3oQsvwBA==",
|
| 911 |
+
"dev": true,
|
| 912 |
+
"license": "BSD-2-Clause",
|
| 913 |
+
"engines": {
|
| 914 |
+
"node": ">=4.0"
|
| 915 |
+
}
|
| 916 |
+
},
|
| 917 |
+
"node_modules/esutils": {
|
| 918 |
+
"version": "2.0.3",
|
| 919 |
+
"resolved": "https://registry.npmjs.org/esutils/-/esutils-2.0.3.tgz",
|
| 920 |
+
"integrity": "sha512-kVscqXk4OCp68SZ0dkgEKVi6/8ij300KBWTJq32P/dYeWTSwK41WyTxalN1eRmA5Z9UU/LX9D7FWSmV9SAYx6g==",
|
| 921 |
+
"dev": true,
|
| 922 |
+
"license": "BSD-2-Clause",
|
| 923 |
+
"engines": {
|
| 924 |
+
"node": ">=0.10.0"
|
| 925 |
+
}
|
| 926 |
+
},
|
| 927 |
+
"node_modules/fast-deep-equal": {
|
| 928 |
+
"version": "3.1.3",
|
| 929 |
+
"resolved": "https://registry.npmjs.org/fast-deep-equal/-/fast-deep-equal-3.1.3.tgz",
|
| 930 |
+
"integrity": "sha512-f3qQ9oQy9j2AhBe/H9VC91wLmKBCCU/gDOnKNAYG5hswO7BLKj09Hc5HYNz9cGI++xlpDCIgDaitVs03ATR84Q==",
|
| 931 |
+
"dev": true,
|
| 932 |
+
"license": "MIT"
|
| 933 |
+
},
|
| 934 |
+
"node_modules/fast-json-stable-stringify": {
|
| 935 |
+
"version": "2.1.0",
|
| 936 |
+
"resolved": "https://registry.npmjs.org/fast-json-stable-stringify/-/fast-json-stable-stringify-2.1.0.tgz",
|
| 937 |
+
"integrity": "sha512-lhd/wF+Lk98HZoTCtlVraHtfh5XYijIjalXck7saUtuanSDyLMxnHhSXEDJqHxD7msR8D0uCmqlkwjCV8xvwHw==",
|
| 938 |
+
"dev": true,
|
| 939 |
+
"license": "MIT"
|
| 940 |
+
},
|
| 941 |
+
"node_modules/fast-levenshtein": {
|
| 942 |
+
"version": "2.0.6",
|
| 943 |
+
"resolved": "https://registry.npmjs.org/fast-levenshtein/-/fast-levenshtein-2.0.6.tgz",
|
| 944 |
+
"integrity": "sha512-DCXu6Ifhqcks7TZKY3Hxp3y6qphY5SJZmrWMDrKcERSOXWQdMhU9Ig/PYrzyw/ul9jOIyh0N4M0tbC5hodg8dw==",
|
| 945 |
+
"dev": true,
|
| 946 |
+
"license": "MIT"
|
| 947 |
+
},
|
| 948 |
+
"node_modules/file-entry-cache": {
|
| 949 |
+
"version": "11.1.5",
|
| 950 |
+
"resolved": "https://registry.npmjs.org/file-entry-cache/-/file-entry-cache-11.1.5.tgz",
|
| 951 |
+
"integrity": "sha512-+PFTHITI08JIGhnNpGNI8T8inUpgZfk3GNEqfT9R2zZV2iFXg3CvqzSl/uEhs7TSGujYRELEANyDvS8Fj7+S7Q==",
|
| 952 |
+
"dev": true,
|
| 953 |
+
"license": "MIT",
|
| 954 |
+
"dependencies": {
|
| 955 |
+
"flat-cache": "^6.1.23"
|
| 956 |
+
}
|
| 957 |
+
},
|
| 958 |
+
"node_modules/find-up": {
|
| 959 |
+
"version": "5.0.0",
|
| 960 |
+
"resolved": "https://registry.npmjs.org/find-up/-/find-up-5.0.0.tgz",
|
| 961 |
+
"integrity": "sha512-78/PXT1wlLLDgTzDs7sjq9hzz0vXD+zn+7wypEe4fXQxCmdmqfGsEPQxmiCSQI3ajFV91bVSsvNtrJRiW6nGng==",
|
| 962 |
+
"dev": true,
|
| 963 |
+
"license": "MIT",
|
| 964 |
+
"dependencies": {
|
| 965 |
+
"locate-path": "^6.0.0",
|
| 966 |
+
"path-exists": "^4.0.0"
|
| 967 |
+
},
|
| 968 |
+
"engines": {
|
| 969 |
+
"node": ">=10"
|
| 970 |
+
},
|
| 971 |
+
"funding": {
|
| 972 |
+
"url": "https://github.com/sponsors/sindresorhus"
|
| 973 |
+
}
|
| 974 |
+
},
|
| 975 |
+
"node_modules/flat-cache": {
|
| 976 |
+
"version": "6.1.23",
|
| 977 |
+
"resolved": "https://registry.npmjs.org/flat-cache/-/flat-cache-6.1.23.tgz",
|
| 978 |
+
"integrity": "sha512-f++BY9pTk+983xK1FLzlLpmM0i0z+jHmx3QESGkURMXujQZz1k5wzwX6hjnQ8goaD0B+sYnDK1yZ6MTyZfUaqA==",
|
| 979 |
+
"dev": true,
|
| 980 |
+
"license": "MIT",
|
| 981 |
+
"dependencies": {
|
| 982 |
+
"cacheable": "^2.5.0",
|
| 983 |
+
"flatted": "^3.4.2",
|
| 984 |
+
"hookified": "^1.15.0"
|
| 985 |
+
}
|
| 986 |
+
},
|
| 987 |
+
"node_modules/flatted": {
|
| 988 |
+
"version": "3.4.4",
|
| 989 |
+
"resolved": "https://registry.npmjs.org/flatted/-/flatted-3.4.4.tgz",
|
| 990 |
+
"integrity": "sha512-5+ybhBZANEJxaH3X5evAFatUxLfEHSr7n6kYJ+1Qd0mUqr4eu9gIf6GDbWHf8RJijHrjjO8G+la14SlL2SeS1Q==",
|
| 991 |
+
"dev": true,
|
| 992 |
+
"license": "ISC"
|
| 993 |
+
},
|
| 994 |
+
"node_modules/fsevents": {
|
| 995 |
+
"version": "2.3.3",
|
| 996 |
+
"resolved": "https://registry.npmjs.org/fsevents/-/fsevents-2.3.3.tgz",
|
| 997 |
+
"integrity": "sha512-5xoDfX+fL7faATnagmWPpbFtwh/R77WmMMqqHGS65C3vvB0YHrgF+B1YmZ3441tMj5n63k0212XNoJwzlhffQw==",
|
| 998 |
+
"dev": true,
|
| 999 |
+
"hasInstallScript": true,
|
| 1000 |
+
"license": "MIT",
|
| 1001 |
+
"optional": true,
|
| 1002 |
+
"os": [
|
| 1003 |
+
"darwin"
|
| 1004 |
+
],
|
| 1005 |
+
"engines": {
|
| 1006 |
+
"node": "^8.16.0 || ^10.6.0 || >=11.0.0"
|
| 1007 |
+
}
|
| 1008 |
+
},
|
| 1009 |
+
"node_modules/glob-parent": {
|
| 1010 |
+
"version": "6.0.2",
|
| 1011 |
+
"resolved": "https://registry.npmjs.org/glob-parent/-/glob-parent-6.0.2.tgz",
|
| 1012 |
+
"integrity": "sha512-XxwI8EOhVQgWp6iDL+3b0r86f4d6AX6zSU55HfB4ydCEuXLXc5FcYeOu+nnGftS4TEju/11rt4KJPTMgbfmv4A==",
|
| 1013 |
+
"dev": true,
|
| 1014 |
+
"license": "ISC",
|
| 1015 |
+
"dependencies": {
|
| 1016 |
+
"is-glob": "^4.0.3"
|
| 1017 |
+
},
|
| 1018 |
+
"engines": {
|
| 1019 |
+
"node": ">=10.13.0"
|
| 1020 |
+
}
|
| 1021 |
+
},
|
| 1022 |
+
"node_modules/globals": {
|
| 1023 |
+
"version": "17.14.0",
|
| 1024 |
+
"resolved": "https://registry.npmjs.org/globals/-/globals-17.14.0.tgz",
|
| 1025 |
+
"integrity": "sha512-UtdkTVyAJePQv0J2M9Xe4L0ruNSDV314XiIJsADI2Zf40bcdAonE/D/OhAU8AT99oij9mhLByb+NvA3QWZYgCg==",
|
| 1026 |
+
"dev": true,
|
| 1027 |
+
"license": "MIT",
|
| 1028 |
+
"engines": {
|
| 1029 |
+
"node": ">=18"
|
| 1030 |
+
},
|
| 1031 |
+
"funding": {
|
| 1032 |
+
"url": "https://github.com/sponsors/sindresorhus"
|
| 1033 |
+
}
|
| 1034 |
+
},
|
| 1035 |
+
"node_modules/hashery": {
|
| 1036 |
+
"version": "1.5.1",
|
| 1037 |
+
"resolved": "https://registry.npmjs.org/hashery/-/hashery-1.5.1.tgz",
|
| 1038 |
+
"integrity": "sha512-iZyKG96/JwPz1N55vj2Ie2vXbhu440zfUfJvSwEqEbeLluk7NnapfGqa7LH0mOsnDxTF85Mx8/dyR6HfqcbmbQ==",
|
| 1039 |
+
"dev": true,
|
| 1040 |
+
"license": "MIT",
|
| 1041 |
+
"dependencies": {
|
| 1042 |
+
"hookified": "^1.15.0"
|
| 1043 |
+
},
|
| 1044 |
+
"engines": {
|
| 1045 |
+
"node": ">=20"
|
| 1046 |
+
}
|
| 1047 |
+
},
|
| 1048 |
+
"node_modules/hookified": {
|
| 1049 |
+
"version": "1.15.1",
|
| 1050 |
+
"resolved": "https://registry.npmjs.org/hookified/-/hookified-1.15.1.tgz",
|
| 1051 |
+
"integrity": "sha512-MvG/clsADq1GPM2KGo2nyfaWVyn9naPiXrqIe4jYjXNZQt238kWyOGrsyc/DmRAQ+Re6yeo6yX/yoNCG5KAEVg==",
|
| 1052 |
+
"dev": true,
|
| 1053 |
+
"license": "MIT"
|
| 1054 |
+
},
|
| 1055 |
+
"node_modules/ignore": {
|
| 1056 |
+
"version": "5.3.2",
|
| 1057 |
+
"resolved": "https://registry.npmjs.org/ignore/-/ignore-5.3.2.tgz",
|
| 1058 |
+
"integrity": "sha512-hsBTNUqQTDwkWtcdYI2i06Y/nUBEsNEDJKjWdigLvegy8kDuJAS8uRlpkkcQpyEXL0Z/pjDy5HBmMjRCJ2gq+g==",
|
| 1059 |
+
"dev": true,
|
| 1060 |
+
"license": "MIT",
|
| 1061 |
+
"engines": {
|
| 1062 |
+
"node": ">= 4"
|
| 1063 |
+
}
|
| 1064 |
+
},
|
| 1065 |
+
"node_modules/imurmurhash": {
|
| 1066 |
+
"version": "0.1.4",
|
| 1067 |
+
"resolved": "https://registry.npmjs.org/imurmurhash/-/imurmurhash-0.1.4.tgz",
|
| 1068 |
+
"integrity": "sha512-JmXMZ6wuvDmLiHEml9ykzqO6lwFbof0GG4IkcGaENdCRDDmMVnny7s5HsIgHCbaq0w2MyPhDqkhTUgS2LU2PHA==",
|
| 1069 |
+
"dev": true,
|
| 1070 |
+
"license": "MIT",
|
| 1071 |
+
"engines": {
|
| 1072 |
+
"node": ">=0.8.19"
|
| 1073 |
+
}
|
| 1074 |
+
},
|
| 1075 |
+
"node_modules/is-extglob": {
|
| 1076 |
+
"version": "2.1.1",
|
| 1077 |
+
"resolved": "https://registry.npmjs.org/is-extglob/-/is-extglob-2.1.1.tgz",
|
| 1078 |
+
"integrity": "sha512-SbKbANkN603Vi4jEZv49LeVJMn4yGwsbzZworEoyEiutsN3nJYdbO36zfhGJ6QEDpOZIFkDtnq5JRxmvl3jsoQ==",
|
| 1079 |
+
"dev": true,
|
| 1080 |
+
"license": "MIT",
|
| 1081 |
+
"engines": {
|
| 1082 |
+
"node": ">=0.10.0"
|
| 1083 |
+
}
|
| 1084 |
+
},
|
| 1085 |
+
"node_modules/is-glob": {
|
| 1086 |
+
"version": "4.0.3",
|
| 1087 |
+
"resolved": "https://registry.npmjs.org/is-glob/-/is-glob-4.0.3.tgz",
|
| 1088 |
+
"integrity": "sha512-xelSayHH36ZgE7ZWhli7pW34hNbNl8Ojv5KVmkJD4hBdD3th8Tfk9vYasLM+mXWOZhFkgZfxhLSnrwRr4elSSg==",
|
| 1089 |
+
"dev": true,
|
| 1090 |
+
"license": "MIT",
|
| 1091 |
+
"dependencies": {
|
| 1092 |
+
"is-extglob": "^2.1.1"
|
| 1093 |
+
},
|
| 1094 |
+
"engines": {
|
| 1095 |
+
"node": ">=0.10.0"
|
| 1096 |
+
}
|
| 1097 |
+
},
|
| 1098 |
+
"node_modules/isexe": {
|
| 1099 |
+
"version": "2.0.0",
|
| 1100 |
+
"resolved": "https://registry.npmjs.org/isexe/-/isexe-2.0.0.tgz",
|
| 1101 |
+
"integrity": "sha512-RHxMLp9lnKHGHRng9QFhRCMbYAcVpn69smSGcq3f36xjgVVWThj4qqLbTLlq7Ssj8B+fIQ1EuCEGI2lKsyQeIw==",
|
| 1102 |
+
"dev": true,
|
| 1103 |
+
"license": "ISC"
|
| 1104 |
+
},
|
| 1105 |
+
"node_modules/json-schema-traverse": {
|
| 1106 |
+
"version": "0.4.1",
|
| 1107 |
+
"resolved": "https://registry.npmjs.org/json-schema-traverse/-/json-schema-traverse-0.4.1.tgz",
|
| 1108 |
+
"integrity": "sha512-xbbCH5dCYU5T8LcEhhuh7HJ88HXuW3qsI3Y0zOZFKfZEHcpWiHU/Jxzk629Brsab/mMiHQti9wMP+845RPe3Vg==",
|
| 1109 |
+
"dev": true,
|
| 1110 |
+
"license": "MIT"
|
| 1111 |
+
},
|
| 1112 |
+
"node_modules/json-stable-stringify-without-jsonify": {
|
| 1113 |
+
"version": "1.0.1",
|
| 1114 |
+
"resolved": "https://registry.npmjs.org/json-stable-stringify-without-jsonify/-/json-stable-stringify-without-jsonify-1.0.1.tgz",
|
| 1115 |
+
"integrity": "sha512-Bdboy+l7tA3OGW6FjyFHWkP5LuByj1Tk33Ljyq0axyzdk9//JSi2u3fP1QSmd1KNwq6VOKYGlAu87CisVir6Pw==",
|
| 1116 |
+
"dev": true,
|
| 1117 |
+
"license": "MIT"
|
| 1118 |
+
},
|
| 1119 |
+
"node_modules/keyv": {
|
| 1120 |
+
"version": "5.6.0",
|
| 1121 |
+
"resolved": "https://registry.npmjs.org/keyv/-/keyv-5.6.0.tgz",
|
| 1122 |
+
"integrity": "sha512-CYDD3SOtsHtyXeEORYRx2qBtpDJFjRTGXUtmNEMGyzYOKj1TE3tycdlho7kA1Ufx9OYWZzg52QFBGALTirzDSw==",
|
| 1123 |
+
"dev": true,
|
| 1124 |
+
"license": "MIT",
|
| 1125 |
+
"dependencies": {
|
| 1126 |
+
"@keyv/serialize": "^1.1.1"
|
| 1127 |
+
}
|
| 1128 |
+
},
|
| 1129 |
+
"node_modules/levn": {
|
| 1130 |
+
"version": "0.4.1",
|
| 1131 |
+
"resolved": "https://registry.npmjs.org/levn/-/levn-0.4.1.tgz",
|
| 1132 |
+
"integrity": "sha512-+bT2uH4E5LGE7h/n3evcS/sQlJXCpIp6ym8OWJ5eV6+67Dsql/LaaT7qJBAt2rzfoa/5QBGBhxDix1dMt2kQKQ==",
|
| 1133 |
+
"dev": true,
|
| 1134 |
+
"license": "MIT",
|
| 1135 |
+
"dependencies": {
|
| 1136 |
+
"prelude-ls": "^1.2.1",
|
| 1137 |
+
"type-check": "~0.4.0"
|
| 1138 |
+
},
|
| 1139 |
+
"engines": {
|
| 1140 |
+
"node": ">= 0.8.0"
|
| 1141 |
+
}
|
| 1142 |
+
},
|
| 1143 |
+
"node_modules/locate-path": {
|
| 1144 |
+
"version": "6.0.0",
|
| 1145 |
+
"resolved": "https://registry.npmjs.org/locate-path/-/locate-path-6.0.0.tgz",
|
| 1146 |
+
"integrity": "sha512-iPZK6eYjbxRu3uB4/WZ3EsEIMJFMqAoopl3R+zuq0UjcAm/MO6KCweDgPfP3elTztoKP3KtnVHxTn2NHBSDVUw==",
|
| 1147 |
+
"dev": true,
|
| 1148 |
+
"license": "MIT",
|
| 1149 |
+
"dependencies": {
|
| 1150 |
+
"p-locate": "^5.0.0"
|
| 1151 |
+
},
|
| 1152 |
+
"engines": {
|
| 1153 |
+
"node": ">=10"
|
| 1154 |
+
},
|
| 1155 |
+
"funding": {
|
| 1156 |
+
"url": "https://github.com/sponsors/sindresorhus"
|
| 1157 |
+
}
|
| 1158 |
+
},
|
| 1159 |
+
"node_modules/minimatch": {
|
| 1160 |
+
"version": "11.0.3",
|
| 1161 |
+
"resolved": "https://registry.npmjs.org/minimatch/-/minimatch-11.0.3.tgz",
|
| 1162 |
+
"integrity": "sha512-iny/40PEGkNJQ5/Pv6z3nm6FbRAby32GeZRjCUJk2WnNDbgPSTcdI+DDvLqsgBdD4cD5sMtMheqPPnehCCa8Nw==",
|
| 1163 |
+
"dev": true,
|
| 1164 |
+
"license": "BlueOak-1.0.0",
|
| 1165 |
+
"dependencies": {
|
| 1166 |
+
"@isaacs/nonrecursive-glob-match": "^1.0.3",
|
| 1167 |
+
"brace-expansion": "^5.0.12"
|
| 1168 |
+
},
|
| 1169 |
+
"engines": {
|
| 1170 |
+
"node": "18 || 20 || >=22"
|
| 1171 |
+
},
|
| 1172 |
+
"funding": {
|
| 1173 |
+
"url": "https://github.com/sponsors/isaacs"
|
| 1174 |
+
}
|
| 1175 |
+
},
|
| 1176 |
+
"node_modules/ms": {
|
| 1177 |
+
"version": "2.1.3",
|
| 1178 |
+
"resolved": "https://registry.npmjs.org/ms/-/ms-2.1.3.tgz",
|
| 1179 |
+
"integrity": "sha512-6FlzubTLZG3J2a/NVCAleEhjzq5oxgHyaCU9yYXvcLsvoVaHJq/s5xXI6/XXP6tz7R9xAOtHnSO/tXtF3WRTlA==",
|
| 1180 |
+
"dev": true,
|
| 1181 |
+
"license": "MIT"
|
| 1182 |
+
},
|
| 1183 |
+
"node_modules/nanoid": {
|
| 1184 |
+
"version": "3.3.20",
|
| 1185 |
+
"resolved": "https://registry.npmjs.org/nanoid/-/nanoid-3.3.20.tgz",
|
| 1186 |
+
"integrity": "sha512-uKdg2G3GNCKQn9byYOpxbGqrT2fGO5KRt5J/8b3pok8rT6qxGWF6hxMyJiEYtAf+FVyYuD9hRaDqX5uPFYJ4ZQ==",
|
| 1187 |
+
"dev": true,
|
| 1188 |
+
"funding": [
|
| 1189 |
+
{
|
| 1190 |
+
"type": "github",
|
| 1191 |
+
"url": "https://github.com/sponsors/ai"
|
| 1192 |
+
}
|
| 1193 |
+
],
|
| 1194 |
+
"license": "MIT",
|
| 1195 |
+
"bin": {
|
| 1196 |
+
"nanoid": "bin/nanoid.cjs"
|
| 1197 |
+
},
|
| 1198 |
+
"engines": {
|
| 1199 |
+
"node": "^10 || ^12 || ^13.7 || ^14 || >=15.0.1"
|
| 1200 |
+
}
|
| 1201 |
+
},
|
| 1202 |
+
"node_modules/natural-compare": {
|
| 1203 |
+
"version": "1.4.0",
|
| 1204 |
+
"resolved": "https://registry.npmjs.org/natural-compare/-/natural-compare-1.4.0.tgz",
|
| 1205 |
+
"integrity": "sha512-OWND8ei3VtNC9h7V60qff3SVobHr996CTwgxubgyQYEpg290h9J0buyECNNJexkFm5sOajh5G116RYA1c8ZMSw==",
|
| 1206 |
+
"dev": true,
|
| 1207 |
+
"license": "MIT"
|
| 1208 |
+
},
|
| 1209 |
+
"node_modules/optionator": {
|
| 1210 |
+
"version": "0.9.4",
|
| 1211 |
+
"resolved": "https://registry.npmjs.org/optionator/-/optionator-0.9.4.tgz",
|
| 1212 |
+
"integrity": "sha512-6IpQ7mKUxRcZNLIObR0hz7lxsapSSIYNZJwXPGeF0mTVqGKFIXj1DQcMoT22S3ROcLyY/rz0PWaWZ9ayWmad9g==",
|
| 1213 |
+
"dev": true,
|
| 1214 |
+
"license": "MIT",
|
| 1215 |
+
"dependencies": {
|
| 1216 |
+
"deep-is": "^0.1.3",
|
| 1217 |
+
"fast-levenshtein": "^2.0.6",
|
| 1218 |
+
"levn": "^0.4.1",
|
| 1219 |
+
"prelude-ls": "^1.2.1",
|
| 1220 |
+
"type-check": "^0.4.0",
|
| 1221 |
+
"word-wrap": "^1.2.5"
|
| 1222 |
+
},
|
| 1223 |
+
"engines": {
|
| 1224 |
+
"node": ">= 0.8.0"
|
| 1225 |
+
}
|
| 1226 |
+
},
|
| 1227 |
+
"node_modules/p-limit": {
|
| 1228 |
+
"version": "3.1.0",
|
| 1229 |
+
"resolved": "https://registry.npmjs.org/p-limit/-/p-limit-3.1.0.tgz",
|
| 1230 |
+
"integrity": "sha512-TYOanM3wGwNGsZN2cVTYPArw454xnXj5qmWF1bEoAc4+cU/ol7GVh7odevjp1FNHduHc3KZMcFduxU5Xc6uJRQ==",
|
| 1231 |
+
"dev": true,
|
| 1232 |
+
"license": "MIT",
|
| 1233 |
+
"dependencies": {
|
| 1234 |
+
"yocto-queue": "^0.1.0"
|
| 1235 |
+
},
|
| 1236 |
+
"engines": {
|
| 1237 |
+
"node": ">=10"
|
| 1238 |
+
},
|
| 1239 |
+
"funding": {
|
| 1240 |
+
"url": "https://github.com/sponsors/sindresorhus"
|
| 1241 |
+
}
|
| 1242 |
+
},
|
| 1243 |
+
"node_modules/p-locate": {
|
| 1244 |
+
"version": "5.0.0",
|
| 1245 |
+
"resolved": "https://registry.npmjs.org/p-locate/-/p-locate-5.0.0.tgz",
|
| 1246 |
+
"integrity": "sha512-LaNjtRWUBY++zB5nE/NwcaoMylSPk+S+ZHNB1TzdbMJMny6dynpAGt7X/tl/QYq3TIeE6nxHppbo2LGymrG5Pw==",
|
| 1247 |
+
"dev": true,
|
| 1248 |
+
"license": "MIT",
|
| 1249 |
+
"dependencies": {
|
| 1250 |
+
"p-limit": "^3.0.2"
|
| 1251 |
+
},
|
| 1252 |
+
"engines": {
|
| 1253 |
+
"node": ">=10"
|
| 1254 |
+
},
|
| 1255 |
+
"funding": {
|
| 1256 |
+
"url": "https://github.com/sponsors/sindresorhus"
|
| 1257 |
+
}
|
| 1258 |
+
},
|
| 1259 |
+
"node_modules/parse5": {
|
| 1260 |
+
"version": "8.1.0",
|
| 1261 |
+
"resolved": "https://registry.npmjs.org/parse5/-/parse5-8.1.0.tgz",
|
| 1262 |
+
"integrity": "sha512-sq3qBFpee5jeocbFbO48VHlGr8sT7mbXS0vxlKN6sottBtJzrOG3998sr0llSZcQAGgfpdmEYAIZE0P9z0dE8w==",
|
| 1263 |
+
"dev": true,
|
| 1264 |
+
"license": "MIT",
|
| 1265 |
+
"dependencies": {
|
| 1266 |
+
"entities": "^9.0.0"
|
| 1267 |
+
},
|
| 1268 |
+
"funding": {
|
| 1269 |
+
"url": "https://github.com/inikulin/parse5?sponsor=1"
|
| 1270 |
+
}
|
| 1271 |
+
},
|
| 1272 |
+
"node_modules/path-exists": {
|
| 1273 |
+
"version": "4.0.0",
|
| 1274 |
+
"resolved": "https://registry.npmjs.org/path-exists/-/path-exists-4.0.0.tgz",
|
| 1275 |
+
"integrity": "sha512-ak9Qy5Q7jYb2Wwcey5Fpvg2KoAc/ZIhLSLOSBmRmygPsGwkVVt0fZa0qrtMz+m6tJTAHfZQ8FnmB4MG4LWy7/w==",
|
| 1276 |
+
"dev": true,
|
| 1277 |
+
"license": "MIT",
|
| 1278 |
+
"engines": {
|
| 1279 |
+
"node": ">=8"
|
| 1280 |
+
}
|
| 1281 |
+
},
|
| 1282 |
+
"node_modules/path-key": {
|
| 1283 |
+
"version": "3.1.1",
|
| 1284 |
+
"resolved": "https://registry.npmjs.org/path-key/-/path-key-3.1.1.tgz",
|
| 1285 |
+
"integrity": "sha512-ojmeN0qd+y0jszEtoY48r0Peq5dwMEkIlCOu6Q5f41lfkswXuKtYrhgoTpLnyIcHm24Uhqx+5Tqm2InSwLhE6Q==",
|
| 1286 |
+
"dev": true,
|
| 1287 |
+
"license": "MIT",
|
| 1288 |
+
"engines": {
|
| 1289 |
+
"node": ">=8"
|
| 1290 |
+
}
|
| 1291 |
+
},
|
| 1292 |
+
"node_modules/picocolors": {
|
| 1293 |
+
"version": "1.1.1",
|
| 1294 |
+
"resolved": "https://registry.npmjs.org/picocolors/-/picocolors-1.1.1.tgz",
|
| 1295 |
+
"integrity": "sha512-xceH2snhtb5M9liqDsmEw56le376mTZkEX/jEb/RxNFyegNul7eNslCXP9FDj/Lcu0X8KEyMceP2ntpaHrDEVA==",
|
| 1296 |
+
"dev": true,
|
| 1297 |
+
"license": "ISC"
|
| 1298 |
+
},
|
| 1299 |
+
"node_modules/postcss": {
|
| 1300 |
+
"version": "8.5.32",
|
| 1301 |
+
"resolved": "https://registry.npmjs.org/postcss/-/postcss-8.5.32.tgz",
|
| 1302 |
+
"integrity": "sha512-LJlKCCAUFKOuZxipUdYw1NzIITEsPcgyOG9LkvRJvuKj/bRzbuRY0ARXvL0pWGpsZvn8jku+LMep2eU0seHp8g==",
|
| 1303 |
+
"dev": true,
|
| 1304 |
+
"funding": [
|
| 1305 |
+
{
|
| 1306 |
+
"type": "opencollective",
|
| 1307 |
+
"url": "https://opencollective.com/postcss/"
|
| 1308 |
+
},
|
| 1309 |
+
{
|
| 1310 |
+
"type": "tidelift",
|
| 1311 |
+
"url": "https://tidelift.com/funding/github/npm/postcss"
|
| 1312 |
+
},
|
| 1313 |
+
{
|
| 1314 |
+
"type": "github",
|
| 1315 |
+
"url": "https://github.com/sponsors/ai"
|
| 1316 |
+
}
|
| 1317 |
+
],
|
| 1318 |
+
"license": "MIT",
|
| 1319 |
+
"dependencies": {
|
| 1320 |
+
"nanoid": "^3.3.20",
|
| 1321 |
+
"picocolors": "^1.1.1",
|
| 1322 |
+
"source-map-js": "^1.2.2"
|
| 1323 |
+
},
|
| 1324 |
+
"engines": {
|
| 1325 |
+
"node": "^10 || ^12 || >=14"
|
| 1326 |
+
}
|
| 1327 |
+
},
|
| 1328 |
+
"node_modules/prelude-ls": {
|
| 1329 |
+
"version": "1.2.1",
|
| 1330 |
+
"resolved": "https://registry.npmjs.org/prelude-ls/-/prelude-ls-1.2.1.tgz",
|
| 1331 |
+
"integrity": "sha512-vkcDPrRZo1QZLbn5RLGPpg/WmIQ65qoWWhcGKf/b5eplkkarX0m9z8ppCat4mlOqUsWpyNuYgO3VRyrYHSzX5g==",
|
| 1332 |
+
"dev": true,
|
| 1333 |
+
"license": "MIT",
|
| 1334 |
+
"engines": {
|
| 1335 |
+
"node": ">= 0.8.0"
|
| 1336 |
+
}
|
| 1337 |
+
},
|
| 1338 |
+
"node_modules/punycode": {
|
| 1339 |
+
"version": "2.3.1",
|
| 1340 |
+
"resolved": "https://registry.npmjs.org/punycode/-/punycode-2.3.1.tgz",
|
| 1341 |
+
"integrity": "sha512-vYt7UD1U9Wg6138shLtLOvdAu+8DsC/ilFtEVHcH+wydcSpNE20AfSOduf6MkRFahL5FY7X1oU7nKVZFtfq8Fg==",
|
| 1342 |
+
"dev": true,
|
| 1343 |
+
"license": "MIT",
|
| 1344 |
+
"engines": {
|
| 1345 |
+
"node": ">=6"
|
| 1346 |
+
}
|
| 1347 |
+
},
|
| 1348 |
+
"node_modules/pyright": {
|
| 1349 |
+
"version": "1.1.414",
|
| 1350 |
+
"resolved": "https://registry.npmjs.org/pyright/-/pyright-1.1.414.tgz",
|
| 1351 |
+
"integrity": "sha512-FPZZb51jepDX4eP7TEYDeNFtmE3WgwkkEcJpvH3/QmUSsj0EAy3LXu+xB4T/FWDejtsXlCfFr/rbWFjwuwuXww==",
|
| 1352 |
+
"dev": true,
|
| 1353 |
+
"license": "MIT",
|
| 1354 |
+
"bin": {
|
| 1355 |
+
"pyright": "index.js",
|
| 1356 |
+
"pyright-langserver": "langserver.index.js"
|
| 1357 |
+
},
|
| 1358 |
+
"engines": {
|
| 1359 |
+
"node": ">=14.0.0"
|
| 1360 |
+
},
|
| 1361 |
+
"optionalDependencies": {
|
| 1362 |
+
"fsevents": "~2.3.3"
|
| 1363 |
+
}
|
| 1364 |
+
},
|
| 1365 |
+
"node_modules/qified": {
|
| 1366 |
+
"version": "0.10.1",
|
| 1367 |
+
"resolved": "https://registry.npmjs.org/qified/-/qified-0.10.1.tgz",
|
| 1368 |
+
"integrity": "sha512-+Owyggi9IxT1ePKGafcI87ubSmxol6smwJ+RAHDQlx9+9cPwFWDiKFFCPuWhr9ignlGpZ9vDQLw67N4dcTVFEA==",
|
| 1369 |
+
"dev": true,
|
| 1370 |
+
"license": "MIT",
|
| 1371 |
+
"dependencies": {
|
| 1372 |
+
"hookified": "^2.1.1"
|
| 1373 |
+
},
|
| 1374 |
+
"engines": {
|
| 1375 |
+
"node": ">=20"
|
| 1376 |
+
}
|
| 1377 |
+
},
|
| 1378 |
+
"node_modules/qified/node_modules/hookified": {
|
| 1379 |
+
"version": "2.2.0",
|
| 1380 |
+
"resolved": "https://registry.npmjs.org/hookified/-/hookified-2.2.0.tgz",
|
| 1381 |
+
"integrity": "sha512-p/LgFzRN5FeoD3DLS6bkUapeye6E4SI6yJs6KetENd18S+FBthqYq2amJUWpt5z0EQwwHemidjY5OqJGEKm5uA==",
|
| 1382 |
+
"dev": true,
|
| 1383 |
+
"license": "MIT"
|
| 1384 |
+
},
|
| 1385 |
+
"node_modules/shebang-command": {
|
| 1386 |
+
"version": "2.0.0",
|
| 1387 |
+
"resolved": "https://registry.npmjs.org/shebang-command/-/shebang-command-2.0.0.tgz",
|
| 1388 |
+
"integrity": "sha512-kHxr2zZpYtdmrN1qDjrrX/Z1rR1kG8Dx+gkpK1G4eXmvXswmcE1hTWBWYUzlraYw1/yZp6YuDY77YtvbN0dmDA==",
|
| 1389 |
+
"dev": true,
|
| 1390 |
+
"license": "MIT",
|
| 1391 |
+
"dependencies": {
|
| 1392 |
+
"shebang-regex": "^3.0.0"
|
| 1393 |
+
},
|
| 1394 |
+
"engines": {
|
| 1395 |
+
"node": ">=8"
|
| 1396 |
+
}
|
| 1397 |
+
},
|
| 1398 |
+
"node_modules/shebang-regex": {
|
| 1399 |
+
"version": "3.0.0",
|
| 1400 |
+
"resolved": "https://registry.npmjs.org/shebang-regex/-/shebang-regex-3.0.0.tgz",
|
| 1401 |
+
"integrity": "sha512-7++dFhtcx3353uBaq8DDR4NuxBetBzC7ZQOhmTQInHEd6bSrXdiEyzCvG07Z44UYdLShWUyXt5M/yhz8ekcb1A==",
|
| 1402 |
+
"dev": true,
|
| 1403 |
+
"license": "MIT",
|
| 1404 |
+
"engines": {
|
| 1405 |
+
"node": ">=8"
|
| 1406 |
+
}
|
| 1407 |
+
},
|
| 1408 |
+
"node_modules/source-map-js": {
|
| 1409 |
+
"version": "1.2.2",
|
| 1410 |
+
"resolved": "https://registry.npmjs.org/source-map-js/-/source-map-js-1.2.2.tgz",
|
| 1411 |
+
"integrity": "sha512-KGj/8Y43x35aZVDtt+J4mK1hoLGHULMYfSkODJNQjNDC3oW1PqPoxMwo0pLUsWM/UEGzON/NxeHywEfNXNP3Vw==",
|
| 1412 |
+
"dev": true,
|
| 1413 |
+
"license": "BSD-3-Clause",
|
| 1414 |
+
"engines": {
|
| 1415 |
+
"node": ">=0.10.0"
|
| 1416 |
+
}
|
| 1417 |
+
},
|
| 1418 |
+
"node_modules/type-check": {
|
| 1419 |
+
"version": "0.4.0",
|
| 1420 |
+
"resolved": "https://registry.npmjs.org/type-check/-/type-check-0.4.0.tgz",
|
| 1421 |
+
"integrity": "sha512-XleUoc9uwGXqjWwXaUTZAmzMcFZ5858QA2vvx1Ur5xIcixXIP+8LnFDgRplU30us6teqdlskFfu+ae4K79Ooew==",
|
| 1422 |
+
"dev": true,
|
| 1423 |
+
"license": "MIT",
|
| 1424 |
+
"dependencies": {
|
| 1425 |
+
"prelude-ls": "^1.2.1"
|
| 1426 |
+
},
|
| 1427 |
+
"engines": {
|
| 1428 |
+
"node": ">= 0.8.0"
|
| 1429 |
+
}
|
| 1430 |
+
},
|
| 1431 |
+
"node_modules/typescript": {
|
| 1432 |
+
"version": "7.0.2",
|
| 1433 |
+
"resolved": "https://registry.npmjs.org/typescript/-/typescript-7.0.2.tgz",
|
| 1434 |
+
"integrity": "sha512-8FYau96o3NKOhbjKi/qNvG/W5jhzxkbdm5sj9AbZ/5T5sWqn3hJgLfGx27sRKZWTvyzCP8dLRBTf5tBTSRVUNA==",
|
| 1435 |
+
"dev": true,
|
| 1436 |
+
"license": "Apache-2.0",
|
| 1437 |
+
"bin": {
|
| 1438 |
+
"tsc": "bin/tsc"
|
| 1439 |
+
},
|
| 1440 |
+
"engines": {
|
| 1441 |
+
"node": ">=16.20.0"
|
| 1442 |
+
},
|
| 1443 |
+
"optionalDependencies": {
|
| 1444 |
+
"@typescript/typescript-aix-ppc64": "7.0.2",
|
| 1445 |
+
"@typescript/typescript-darwin-arm64": "7.0.2",
|
| 1446 |
+
"@typescript/typescript-darwin-x64": "7.0.2",
|
| 1447 |
+
"@typescript/typescript-freebsd-arm64": "7.0.2",
|
| 1448 |
+
"@typescript/typescript-freebsd-x64": "7.0.2",
|
| 1449 |
+
"@typescript/typescript-linux-arm": "7.0.2",
|
| 1450 |
+
"@typescript/typescript-linux-arm64": "7.0.2",
|
| 1451 |
+
"@typescript/typescript-linux-loong64": "7.0.2",
|
| 1452 |
+
"@typescript/typescript-linux-mips64el": "7.0.2",
|
| 1453 |
+
"@typescript/typescript-linux-ppc64": "7.0.2",
|
| 1454 |
+
"@typescript/typescript-linux-riscv64": "7.0.2",
|
| 1455 |
+
"@typescript/typescript-linux-s390x": "7.0.2",
|
| 1456 |
+
"@typescript/typescript-linux-x64": "7.0.2",
|
| 1457 |
+
"@typescript/typescript-netbsd-arm64": "7.0.2",
|
| 1458 |
+
"@typescript/typescript-netbsd-x64": "7.0.2",
|
| 1459 |
+
"@typescript/typescript-openbsd-arm64": "7.0.2",
|
| 1460 |
+
"@typescript/typescript-openbsd-x64": "7.0.2",
|
| 1461 |
+
"@typescript/typescript-sunos-x64": "7.0.2",
|
| 1462 |
+
"@typescript/typescript-win32-arm64": "7.0.2",
|
| 1463 |
+
"@typescript/typescript-win32-x64": "7.0.2"
|
| 1464 |
+
}
|
| 1465 |
+
},
|
| 1466 |
+
"node_modules/uri-js": {
|
| 1467 |
+
"version": "4.4.1",
|
| 1468 |
+
"resolved": "https://registry.npmjs.org/uri-js/-/uri-js-4.4.1.tgz",
|
| 1469 |
+
"integrity": "sha512-7rKUyy33Q1yc98pQ1DAmLtwX109F7TIfWlW1Ydo8Wl1ii1SeHieeh0HHfPeL2fMXK6z0s8ecKs9frCuLJvndBg==",
|
| 1470 |
+
"dev": true,
|
| 1471 |
+
"license": "BSD-2-Clause",
|
| 1472 |
+
"dependencies": {
|
| 1473 |
+
"punycode": "^2.1.0"
|
| 1474 |
+
}
|
| 1475 |
+
},
|
| 1476 |
+
"node_modules/which": {
|
| 1477 |
+
"version": "2.0.2",
|
| 1478 |
+
"resolved": "https://registry.npmjs.org/which/-/which-2.0.2.tgz",
|
| 1479 |
+
"integrity": "sha512-BLI3Tl1TW3Pvl70l3yq3Y64i+awpwXqsGBYWkkqMtnbXgrMD+yj7rhW0kuEDxzJaYXGjEW5ogapKNMEKNMjibA==",
|
| 1480 |
+
"dev": true,
|
| 1481 |
+
"license": "ISC",
|
| 1482 |
+
"dependencies": {
|
| 1483 |
+
"isexe": "^2.0.0"
|
| 1484 |
+
},
|
| 1485 |
+
"bin": {
|
| 1486 |
+
"node-which": "bin/node-which"
|
| 1487 |
+
},
|
| 1488 |
+
"engines": {
|
| 1489 |
+
"node": ">= 8"
|
| 1490 |
+
}
|
| 1491 |
+
},
|
| 1492 |
+
"node_modules/word-wrap": {
|
| 1493 |
+
"version": "1.2.5",
|
| 1494 |
+
"resolved": "https://registry.npmjs.org/word-wrap/-/word-wrap-1.2.5.tgz",
|
| 1495 |
+
"integrity": "sha512-BN22B5eaMMI9UMtjrGd5g5eCYPpCPDUy0FJXbYsaT5zYxjFOckS53SQDE3pWkVoWpHXVb3BrYcEN4Twa55B5cA==",
|
| 1496 |
+
"dev": true,
|
| 1497 |
+
"license": "MIT",
|
| 1498 |
+
"engines": {
|
| 1499 |
+
"node": ">=0.10.0"
|
| 1500 |
+
}
|
| 1501 |
+
},
|
| 1502 |
+
"node_modules/yocto-queue": {
|
| 1503 |
+
"version": "0.1.0",
|
| 1504 |
+
"resolved": "https://registry.npmjs.org/yocto-queue/-/yocto-queue-0.1.0.tgz",
|
| 1505 |
+
"integrity": "sha512-rVksvsnNCdJ/ohGc6xgPwyN8eheCxsiLM8mxuE/t/mOVqJewPuO1miLpTHQiRgTKCLexL4MeAFVagts7HmNZ2Q==",
|
| 1506 |
+
"dev": true,
|
| 1507 |
+
"license": "MIT",
|
| 1508 |
+
"engines": {
|
| 1509 |
+
"node": ">=10"
|
| 1510 |
+
},
|
| 1511 |
+
"funding": {
|
| 1512 |
+
"url": "https://github.com/sponsors/sindresorhus"
|
| 1513 |
+
}
|
| 1514 |
+
}
|
| 1515 |
+
}
|
| 1516 |
+
}
|
package.json
ADDED
|
@@ -0,0 +1,22 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
{
|
| 2 |
+
"name": "reader-static-checks",
|
| 3 |
+
"private": true,
|
| 4 |
+
"scripts": {
|
| 5 |
+
"lint": "eslint static scripts tests --max-warnings 0",
|
| 6 |
+
"markup": "node scripts/check_markup.mjs",
|
| 7 |
+
"types": "tsc --project jsconfig.check.json",
|
| 8 |
+
"check:static": "npm run lint && npm run markup && npm run types"
|
| 9 |
+
},
|
| 10 |
+
"_overrideNote": "minimatch 11.0.3 addresses GHSA-g3hv-75wg-m249 in the 10.x dependency; rerun checker regressions when updating ESLint.",
|
| 11 |
+
"overrides": { "minimatch": "11.0.3" },
|
| 12 |
+
"devDependencies": {
|
| 13 |
+
"@eslint/js": "10.0.1",
|
| 14 |
+
"eslint": "10.14.0",
|
| 15 |
+
"espree": "11.2.0",
|
| 16 |
+
"globals": "17.14.0",
|
| 17 |
+
"parse5": "8.1.0",
|
| 18 |
+
"postcss": "8.5.32",
|
| 19 |
+
"pyright": "1.1.414",
|
| 20 |
+
"typescript": "7.0.2"
|
| 21 |
+
}
|
| 22 |
+
}
|
pyrightconfig.json
ADDED
|
@@ -0,0 +1,10 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
{
|
| 2 |
+
"include": [
|
| 3 |
+
"backend/data_formats.py",
|
| 4 |
+
"backend/reader_assets.py",
|
| 5 |
+
"backend/search_execution.py",
|
| 6 |
+
"backend/upstream_http.py"
|
| 7 |
+
],
|
| 8 |
+
"pythonVersion": "3.11",
|
| 9 |
+
"typeCheckingMode": "basic"
|
| 10 |
+
}
|
requirements-audit.txt
ADDED
|
@@ -0,0 +1 @@
|
|
|
|
|
|
|
| 1 |
+
pip-audit==2.10.1
|
requirements-static-check.txt
ADDED
|
@@ -0,0 +1 @@
|
|
|
|
|
|
|
| 1 |
+
ruff==0.17.3
|
ruff.toml
ADDED
|
@@ -0,0 +1,19 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
target-version = "py311"
|
| 2 |
+
extend-exclude = ["static/vendor", "static/foliate-reader"]
|
| 3 |
+
|
| 4 |
+
[lint]
|
| 5 |
+
select = ["F", "E9", "S"]
|
| 6 |
+
[lint.per-file-ignores]
|
| 7 |
+
# These imports are API entry points or compatibility re-exports. Random
|
| 8 |
+
# choices in backend/app.py select public books, not security-sensitive data.
|
| 9 |
+
# Keep F401 enabled for all other production files.
|
| 10 |
+
"app.py" = ["F401"]
|
| 11 |
+
"backend/app.py" = ["F401", "S311"]
|
| 12 |
+
# Build/benchmark helpers intentionally launch fixed local tools and commands.
|
| 13 |
+
"scripts/benchmarks/benchmark_djvu.py" = ["S607"]
|
| 14 |
+
"scripts/benchmarks/compare_djvu.py" = ["S603"]
|
| 15 |
+
"scripts/build/build_search_index_native.py" = ["S603"]
|
| 16 |
+
"scripts/check_python_static.py" = ["S603"]
|
| 17 |
+
# Tests intentionally use assertions and mocks and sometimes retain handles
|
| 18 |
+
# for asynchronous work; duplicate names and undefined references still fail.
|
| 19 |
+
"tests/**/*.py" = ["F401", "F841", "S"]
|
scripts/check_markup.mjs
ADDED
|
@@ -0,0 +1,77 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
import fs from "node:fs";
|
| 2 |
+
import path from "node:path";
|
| 3 |
+
import { parse } from "parse5";
|
| 4 |
+
import * as espree from "espree";
|
| 5 |
+
import postcss from "postcss";
|
| 6 |
+
|
| 7 |
+
// Parse own HTML/CSS as well as inline styles. External/vendor assets are
|
| 8 |
+
// checksum-checked by the Reader release gate, not treated as project source.
|
| 9 |
+
const root = path.resolve(process.argv[2] || ".");
|
| 10 |
+
const sources = path.join(root, "static");
|
| 11 |
+
let count = 0;
|
| 12 |
+
let errors = 0;
|
| 13 |
+
|
| 14 |
+
function report(file, detail) {
|
| 15 |
+
errors++;
|
| 16 |
+
console.error(`${path.relative(root, file)}: ${detail}`);
|
| 17 |
+
}
|
| 18 |
+
|
| 19 |
+
function css(file, text, label = "") {
|
| 20 |
+
try {
|
| 21 |
+
postcss.parse(text, { from: file });
|
| 22 |
+
count++;
|
| 23 |
+
} catch (error) {
|
| 24 |
+
report(file, `${label}CSS ${error.line}:${error.column}: ${error.reason || error.message}`);
|
| 25 |
+
}
|
| 26 |
+
}
|
| 27 |
+
|
| 28 |
+
function html(file) {
|
| 29 |
+
const ids = new Set();
|
| 30 |
+
const document = parse(fs.readFileSync(file, "utf8"), {
|
| 31 |
+
sourceCodeLocationInfo: true,
|
| 32 |
+
onParseError(error) { report(file, `HTML ${error.startLine}:${error.startCol}: ${error.code}`); }
|
| 33 |
+
});
|
| 34 |
+
count++;
|
| 35 |
+
function visit(node) {
|
| 36 |
+
const loc = node.sourceCodeLocation?.startTag;
|
| 37 |
+
const label = loc ? `HTML ${loc.startLine}:${loc.startCol}: ` : "";
|
| 38 |
+
for (const attribute of node.attrs || []) {
|
| 39 |
+
if (attribute.name === "id" && attribute.value) {
|
| 40 |
+
if (ids.has(attribute.value)) report(file, `${label}duplicate id ${JSON.stringify(attribute.value)}`);
|
| 41 |
+
ids.add(attribute.value);
|
| 42 |
+
}
|
| 43 |
+
if (attribute.name === "style") css(file, `x{${attribute.value}}`, label);
|
| 44 |
+
}
|
| 45 |
+
if (node.tagName === "style") css(file,
|
| 46 |
+
(node.childNodes || []).filter(child => child.nodeName === "#text").map(child => child.value).join(""), label);
|
| 47 |
+
if (node.tagName === "script" && !(node.attrs || []).some(attribute => attribute.name === "src")) {
|
| 48 |
+
const type = (node.attrs || []).find(attribute => attribute.name === "type")?.value.toLowerCase() || "";
|
| 49 |
+
const text = (node.childNodes || []).filter(child => child.nodeName === "#text").map(child => child.value).join("");
|
| 50 |
+
if (type === "application/ld+json") {
|
| 51 |
+
try { JSON.parse(text); count++; }
|
| 52 |
+
catch (error) { report(file, `${label}invalid JSON-LD: ${error.message}`); }
|
| 53 |
+
} else if (!type || ["text/javascript", "application/javascript", "module"].includes(type)) {
|
| 54 |
+
try { espree.parse(text, { ecmaVersion: "latest", sourceType: type === "module" ? "module" : "script" }); count++; }
|
| 55 |
+
catch (error) { report(file, `${label}inline JavaScript ${error.lineNumber}:${error.column}: ${error.message}`); }
|
| 56 |
+
} else report(file, `${label}unrecognized inline script type ${JSON.stringify(type)}`);
|
| 57 |
+
}
|
| 58 |
+
for (const child of node.childNodes || []) visit(child);
|
| 59 |
+
if (node.content) visit(node.content);
|
| 60 |
+
}
|
| 61 |
+
visit(document);
|
| 62 |
+
}
|
| 63 |
+
|
| 64 |
+
function visitDirectory(directory) {
|
| 65 |
+
for (const entry of fs.readdirSync(directory, { withFileTypes: true })) {
|
| 66 |
+
if (entry.name === "vendor" || entry.name === "foliate-reader") continue;
|
| 67 |
+
const file = path.join(directory, entry.name);
|
| 68 |
+
if (entry.isDirectory()) visitDirectory(file);
|
| 69 |
+
else if (entry.isFile() && entry.name.endsWith(".html")) html(file);
|
| 70 |
+
else if (entry.isFile() && entry.name.endsWith(".css")) css(file, fs.readFileSync(file, "utf8"));
|
| 71 |
+
}
|
| 72 |
+
}
|
| 73 |
+
|
| 74 |
+
if (!fs.statSync(sources).isDirectory()) throw new Error("Static source directory is missing");
|
| 75 |
+
visitDirectory(sources);
|
| 76 |
+
if (errors) process.exitCode = 1;
|
| 77 |
+
else console.log(`Markup syntax and unique IDs: ${count} HTML/CSS, inline script and JSON-LD units checked`);
|
scripts/check_python_static.py
ADDED
|
@@ -0,0 +1,14 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
"""Check all repository-owned Python sources, not generated/vendor files."""
|
| 2 |
+
from __future__ import annotations
|
| 3 |
+
|
| 4 |
+
from pathlib import Path
|
| 5 |
+
import subprocess
|
| 6 |
+
import sys
|
| 7 |
+
|
| 8 |
+
|
| 9 |
+
root = Path(__file__).resolve().parent.parent
|
| 10 |
+
paths = [path.name for path in (root / "app.py", root / "backend", root / "scripts", root / "tests") if path.exists()]
|
| 11 |
+
if not paths or not (root / "scripts").is_dir() or not (root / "tests").is_dir():
|
| 12 |
+
raise SystemExit("Static-check source inventory is incomplete")
|
| 13 |
+
print("Python static check:", ", ".join(paths), flush=True)
|
| 14 |
+
subprocess.run([sys.executable, "-m", "ruff", "check", *paths], cwd=root, check=True)
|
static/reader/pdf/pdf-first-page-worker-adapter.mjs
CHANGED
|
@@ -405,7 +405,9 @@ export function makeFirstPageWorkerSource(source) {
|
|
| 405 |
return source;
|
| 406 |
}
|
| 407 |
|
| 408 |
-
|
|
|
|
|
|
|
| 409 |
const owner = new AbortController(), active = signal ? AbortSignal.any([signal, owner.signal]) : owner.signal;
|
| 410 |
const timer = setTimeout(() => owner.abort(), 20000);
|
| 411 |
try {
|
|
|
|
| 405 |
return source;
|
| 406 |
}
|
| 407 |
|
| 408 |
+
/** @param {{signal?: AbortSignal, response?: Promise<Response>}} [options] */
|
| 409 |
+
export async function installFirstPageWorker(url, expectedDigest, options = {}) {
|
| 410 |
+
const {signal, response:pendingResponse} = options;
|
| 411 |
const owner = new AbortController(), active = signal ? AbortSignal.any([signal, owner.signal]) : owner.signal;
|
| 412 |
const timer = setTimeout(() => owner.abort(), 20000);
|
| 413 |
try {
|
tests/test_reader_backend.py
CHANGED
|
@@ -418,27 +418,6 @@ class ReaderBackendTests(unittest.IsolatedAsyncioTestCase):
|
|
| 418 |
self.assertTrue(upstream.released)
|
| 419 |
self.assertEqual(app.app.state.upstream_semaphore._value, 1)
|
| 420 |
|
| 421 |
-
async def test_bucket_image_disconnect_stops_stream_and_releases_slot(self):
|
| 422 |
-
path = "pages/image/bmp/" + "a" * 64 + "/pages/page-000001.webp"
|
| 423 |
-
upstream = FakeResponse(chunks=(b"image",))
|
| 424 |
-
self.session(upstream)
|
| 425 |
-
with patch.object(app, "get_reader_bucket_resource", AsyncMock()) as buffered:
|
| 426 |
-
response = await app.api_reader_bucket_resource(path, SimpleNamespace(method="GET", headers={}))
|
| 427 |
-
buffered.assert_not_awaited()
|
| 428 |
-
started = asyncio.Event()
|
| 429 |
-
|
| 430 |
-
async def send(message):
|
| 431 |
-
started.set()
|
| 432 |
-
await asyncio.Event().wait()
|
| 433 |
-
|
| 434 |
-
async def receive():
|
| 435 |
-
await started.wait()
|
| 436 |
-
return {"type": "http.disconnect"}
|
| 437 |
-
|
| 438 |
-
await asyncio.wait_for(response({"type": "http", "asgi": {"spec_version": "2.0"}}, receive, send), 1)
|
| 439 |
-
self.assertTrue(upstream.released)
|
| 440 |
-
self.assertEqual(app.app.state.upstream_semaphore._value, 1)
|
| 441 |
-
|
| 442 |
async def test_cold_ocr_parse_is_shared_between_concurrent_readers(self):
|
| 443 |
path = "derived/test/" + "a" * 32 + "/ocr/book-text.json.gz"
|
| 444 |
pages = [{"page": 1, "text": "ok", "folded": "ok", "spans": [], "layout": {}}]
|
|
@@ -449,95 +428,6 @@ class ReaderBackendTests(unittest.IsolatedAsyncioTestCase):
|
|
| 449 |
self.assertIs(first, second)
|
| 450 |
loader.assert_awaited_once_with(path)
|
| 451 |
|
| 452 |
-
async def test_uncached_bucket_bodies_stream_without_filesystem_worker(self):
|
| 453 |
-
prefix = 'a' * 64
|
| 454 |
-
paths = [f'documents/text/txt/{prefix}/document.txt',
|
| 455 |
-
f'documents/web/html/{prefix}/document.html',
|
| 456 |
-
f'documents/office/docx/{prefix}/document.docx',
|
| 457 |
-
f'chapters/ebook/epub/{prefix}/'+'b'*16+'/chapters/chapter-0001.xhtml',
|
| 458 |
-
f'media/swf/native/{prefix}/document.swf']
|
| 459 |
-
for path in paths:
|
| 460 |
-
with self.subTest(path=path):
|
| 461 |
-
upstream = FakeResponse(chunks=(b'body',))
|
| 462 |
-
self.session(upstream)
|
| 463 |
-
with patch.object(app, 'get_reader_bucket_resource', AsyncMock()) as buffered:
|
| 464 |
-
response = await app.api_reader_bucket_resource(path, SimpleNamespace(method='GET', headers={}))
|
| 465 |
-
buffered.assert_not_awaited()
|
| 466 |
-
self.assertEqual(b''.join([chunk async for chunk in response.body_iterator]), b'body')
|
| 467 |
-
self.assertTrue(upstream.released)
|
| 468 |
-
self.assertEqual(app.app.state.upstream_semaphore._value, 1)
|
| 469 |
-
|
| 470 |
-
async def test_disconnect_while_waiting_for_headers_releases_transport_slot(self):
|
| 471 |
-
self.session()
|
| 472 |
-
disconnected = asyncio.Event()
|
| 473 |
-
started = asyncio.Event()
|
| 474 |
-
cancelled = asyncio.Event()
|
| 475 |
-
|
| 476 |
-
async def open_upstream(*args, **kwargs):
|
| 477 |
-
started.set()
|
| 478 |
-
try:
|
| 479 |
-
await asyncio.Event().wait()
|
| 480 |
-
finally:
|
| 481 |
-
cancelled.set()
|
| 482 |
-
|
| 483 |
-
request = SimpleNamespace(method="GET", headers={},
|
| 484 |
-
is_disconnected=AsyncMock(side_effect=lambda: disconnected.is_set()))
|
| 485 |
-
with patch.object(app, "open_download_response", side_effect=open_upstream):
|
| 486 |
-
task = asyncio.create_task(app.stream_reader_document(request, SOURCE))
|
| 487 |
-
await asyncio.wait_for(started.wait(), 1)
|
| 488 |
-
disconnected.set()
|
| 489 |
-
with self.assertRaises(asyncio.CancelledError):
|
| 490 |
-
await asyncio.wait_for(task, 1)
|
| 491 |
-
self.assertTrue(cancelled.is_set())
|
| 492 |
-
self.assertEqual(app.app.state.upstream_semaphore._value, 1)
|
| 493 |
-
|
| 494 |
-
async def test_disconnect_while_queued_does_not_start_upstream(self):
|
| 495 |
-
await app.app.state.upstream_semaphore.acquire()
|
| 496 |
-
request = SimpleNamespace(method="GET", headers={}, is_disconnected=AsyncMock(return_value=True))
|
| 497 |
-
with patch.object(app, "open_download_response", AsyncMock()) as opened:
|
| 498 |
-
with self.assertRaises(asyncio.CancelledError):
|
| 499 |
-
await asyncio.wait_for(app.stream_reader_document(request, SOURCE), 1)
|
| 500 |
-
opened.assert_not_awaited()
|
| 501 |
-
self.assertEqual(app.app.state.upstream_semaphore._value, 0)
|
| 502 |
-
app.app.state.upstream_semaphore.release()
|
| 503 |
-
|
| 504 |
-
async def test_cached_range_finishes_when_disconnect_probe_swallows_cancellation(self):
|
| 505 |
-
app.app.state.reader_range_cache = app.OrderedDict()
|
| 506 |
-
app.app.state.reader_range_cache_bytes = 3
|
| 507 |
-
key = (SOURCE, 'bytes=0-2', app.READER_DOCUMENT_MAX_BYTES, None)
|
| 508 |
-
app.app.state.reader_range_cache[key] = (time.monotonic(), b'pdf', {
|
| 509 |
-
'Content-Type':'application/pdf', 'Content-Length':'3', 'Content-Range':'bytes 0-2/3'})
|
| 510 |
-
|
| 511 |
-
async def probe():
|
| 512 |
-
try:
|
| 513 |
-
await asyncio.Event().wait()
|
| 514 |
-
except asyncio.CancelledError:
|
| 515 |
-
# Starlette's Request probe owns a cancellation scope.
|
| 516 |
-
return False
|
| 517 |
-
|
| 518 |
-
request = SimpleNamespace(method='GET', headers={'Range':'bytes=0-2'}, is_disconnected=probe)
|
| 519 |
-
with patch.object(app, 'open_download_response', AsyncMock()) as opened:
|
| 520 |
-
response = await asyncio.wait_for(app.stream_reader_document(request, SOURCE), .5)
|
| 521 |
-
self.assertEqual(response.status_code, 206)
|
| 522 |
-
self.assertEqual(response.body, b'pdf')
|
| 523 |
-
self.assertEqual(response.headers['cache-control'], 'no-store')
|
| 524 |
-
opened.assert_not_awaited()
|
| 525 |
-
|
| 526 |
-
async def test_cold_resolve_waits_for_conversion_and_empty_failure_is_not_cacheable(self):
|
| 527 |
-
with patch.object(app, "reader_assets_cache", {"v": 1, "f": {}}):
|
| 528 |
-
await app.api_reader_resolve("0ym7e7wbcxau0")
|
| 529 |
-
app.get_reader_assets.assert_awaited_with(wait=True)
|
| 530 |
-
self.assets['f'][app.build_reader_asset_key(self.record)] = {
|
| 531 |
-
's':2, 'm':'p', 'p':'documents/pdf/ps/'+'a'*64+'/document.pdf',
|
| 532 |
-
'b':'vomebook/reader-assets-v2'}
|
| 533 |
-
with patch.object(app, "reader_assets_cache", self.assets):
|
| 534 |
-
response = await app.api_reader_resolve("0ym7e7wbcxau0")
|
| 535 |
-
app.get_reader_assets.assert_awaited_with(wait=False)
|
| 536 |
-
self.assertEqual(json.loads(response.body)['extension'], 'pdf')
|
| 537 |
-
self.assets['f'].clear()
|
| 538 |
-
response = await app.api_reader_resolve("0ym7e7wbcxau0")
|
| 539 |
-
self.assertEqual(response.headers['cache-control'], 'no-store')
|
| 540 |
-
|
| 541 |
async def test_bucket_audio_resource_uses_audio_mime_type(self):
|
| 542 |
path = "media/audio/native/" + "a" * 64 + "/audio.flac"
|
| 543 |
with patch.object(app, "get_reader_bucket_resource", AsyncMock(return_value=b"flac")):
|
|
|
|
| 418 |
self.assertTrue(upstream.released)
|
| 419 |
self.assertEqual(app.app.state.upstream_semaphore._value, 1)
|
| 420 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 421 |
async def test_cold_ocr_parse_is_shared_between_concurrent_readers(self):
|
| 422 |
path = "derived/test/" + "a" * 32 + "/ocr/book-text.json.gz"
|
| 423 |
pages = [{"page": 1, "text": "ok", "folded": "ok", "spans": [], "layout": {}}]
|
|
|
|
| 428 |
self.assertIs(first, second)
|
| 429 |
loader.assert_awaited_once_with(path)
|
| 430 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 431 |
async def test_bucket_audio_resource_uses_audio_mime_type(self):
|
| 432 |
path = "media/audio/native/" + "a" * 64 + "/audio.flac"
|
| 433 |
with patch.object(app, "get_reader_bucket_resource", AsyncMock(return_value=b"flac")):
|
tests/test_static_checks.py
ADDED
|
@@ -0,0 +1,137 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
"""Mutation tests for the static quality gate (no source files are changed)."""
|
| 2 |
+
from __future__ import annotations
|
| 3 |
+
|
| 4 |
+
import json
|
| 5 |
+
import os
|
| 6 |
+
from pathlib import Path
|
| 7 |
+
import shutil
|
| 8 |
+
import subprocess
|
| 9 |
+
import sys
|
| 10 |
+
import tempfile
|
| 11 |
+
import unittest
|
| 12 |
+
|
| 13 |
+
|
| 14 |
+
ROOT = Path(__file__).resolve().parents[1]
|
| 15 |
+
|
| 16 |
+
|
| 17 |
+
class StaticGateTests(unittest.TestCase):
|
| 18 |
+
def setUp(self):
|
| 19 |
+
# Use the system temp directory even if a caller set TMPDIR to the
|
| 20 |
+
# checkout; otherwise eslint may discover fixtures during its own scan.
|
| 21 |
+
self.temp = tempfile.TemporaryDirectory(prefix="static-gate-", dir="/tmp")
|
| 22 |
+
self.addCleanup(self.temp.cleanup)
|
| 23 |
+
self.root = Path(self.temp.name)
|
| 24 |
+
for filename in ("eslint.config.mjs", "ruff.toml"):
|
| 25 |
+
shutil.copyfile(ROOT / filename, self.root / filename)
|
| 26 |
+
# Node's module resolver follows this symlink to the already installed,
|
| 27 |
+
# version-pinned dependencies; temporary fixtures never leave the host.
|
| 28 |
+
(self.root / "node_modules").symlink_to(ROOT / "node_modules", target_is_directory=True)
|
| 29 |
+
for directory in ("static", "static/vendor", "scripts", "tests"):
|
| 30 |
+
(self.root / directory).mkdir(parents=True, exist_ok=True)
|
| 31 |
+
(self.root / "static/index.html").write_text('<!doctype html><html><body><p id="ok">ok</p></body></html>')
|
| 32 |
+
(self.root / "static/style.css").write_text("p { color: red; }")
|
| 33 |
+
(self.root / "static/main.js").write_text("const valid = 1;\nconsole.log(valid);\n")
|
| 34 |
+
(self.root / "static/vendor/ignored.js").write_text("not valid javascript ! !\n")
|
| 35 |
+
(self.root / "scripts/check_python_static.py").write_bytes((ROOT / "scripts/check_python_static.py").read_bytes())
|
| 36 |
+
(self.root / "scripts/sample.py").write_text("print('ok')\n")
|
| 37 |
+
|
| 38 |
+
def run_check(self, *command):
|
| 39 |
+
return subprocess.run(command, cwd=self.root, text=True, stdout=subprocess.PIPE,
|
| 40 |
+
stderr=subprocess.STDOUT, env=os.environ.copy(), timeout=30)
|
| 41 |
+
|
| 42 |
+
def assert_check(self, result, success, message):
|
| 43 |
+
self.assertEqual(result.returncode == 0, success, result.stdout)
|
| 44 |
+
if message:
|
| 45 |
+
self.assertIn(message, result.stdout)
|
| 46 |
+
|
| 47 |
+
def test_javascript_reports_undefined_names_and_ignores_vendor(self):
|
| 48 |
+
eslint = ROOT / "node_modules/eslint/bin/eslint.js"
|
| 49 |
+
self.assert_check(self.run_check("node", eslint, "static"), True, "")
|
| 50 |
+
(self.root / "static/main.js").write_text("console.log(missingStaticGateName);\n")
|
| 51 |
+
self.assert_check(self.run_check("node", eslint, "static"), False, "no-undef")
|
| 52 |
+
|
| 53 |
+
def test_python_reports_undefined_names_and_duplicate_tests(self):
|
| 54 |
+
check = [sys.executable, "-B", "scripts/check_python_static.py"]
|
| 55 |
+
self.assert_check(self.run_check(*check), True, "All checks passed")
|
| 56 |
+
sample = self.root / "scripts/sample.py"
|
| 57 |
+
sample.write_text("print(missing_static_gate_name)\n")
|
| 58 |
+
self.assert_check(self.run_check(*check), False, "F821")
|
| 59 |
+
sample.write_text("def test_duplicate(): pass\ndef test_duplicate(): pass\n")
|
| 60 |
+
self.assert_check(self.run_check(*check), False, "F811")
|
| 61 |
+
|
| 62 |
+
@unittest.skipUnless((ROOT / "pyrightconfig.json").exists(), "HF backend security gate")
|
| 63 |
+
def test_backend_security_rule_is_enabled(self):
|
| 64 |
+
backend = self.root / "backend"
|
| 65 |
+
backend.mkdir()
|
| 66 |
+
(backend / "risky.py").write_text("def run(value):\n return eval(value)\n")
|
| 67 |
+
check = [sys.executable, "-B", "scripts/check_python_static.py"]
|
| 68 |
+
self.assert_check(self.run_check(*check), False, "S307")
|
| 69 |
+
|
| 70 |
+
def test_unused_imports_are_checked_in_production_scripts(self):
|
| 71 |
+
(self.root / "scripts/sample.py").write_text("import fractions\n")
|
| 72 |
+
check = [sys.executable, "-B", "scripts/check_python_static.py"]
|
| 73 |
+
self.assert_check(self.run_check(*check), False, "F401")
|
| 74 |
+
|
| 75 |
+
def test_markup_checks_html_css_inline_javascript_and_jsonld(self):
|
| 76 |
+
check = ["node", ROOT / "scripts/check_markup.mjs", self.root]
|
| 77 |
+
self.assert_check(self.run_check(*check), True, "unique IDs")
|
| 78 |
+
html = self.root / "static/index.html"
|
| 79 |
+
css = self.root / "static/style.css"
|
| 80 |
+
cases = [
|
| 81 |
+
(html, '<!doctype html><html><body><div id="x"></div><b id="x"></b></body></html>', "duplicate id"),
|
| 82 |
+
(html, '<!doctype html><html><body><div id="x" id="y"></div></body></html>', "duplicate-attribute"),
|
| 83 |
+
(html, '<!doctype html><html><head><script>const = ;</script></head></html>', "inline JavaScript"),
|
| 84 |
+
(html, '<!doctype html><html><head><script type="application/ld+json">{</script></head></html>', "invalid JSON-LD"),
|
| 85 |
+
(css, 'p { color: red;', "CSS"),
|
| 86 |
+
]
|
| 87 |
+
originals = {item: item.read_text() for item, _, _ in cases}
|
| 88 |
+
for file, content, expected in cases:
|
| 89 |
+
with self.subTest(expected=expected):
|
| 90 |
+
file.write_text(content)
|
| 91 |
+
self.assert_check(self.run_check(*check), False, expected)
|
| 92 |
+
file.write_text(originals[file])
|
| 93 |
+
|
| 94 |
+
def test_typescript_checks_selected_modules(self):
|
| 95 |
+
compiler = ROOT / "node_modules/typescript/bin/tsc"
|
| 96 |
+
source = self.root / "static/typed.js"
|
| 97 |
+
config = self.root / "jsconfig.json"
|
| 98 |
+
config.write_text(json.dumps({"compilerOptions": {"allowJs": True, "checkJs": True, "noEmit": True,
|
| 99 |
+
"strict": False, "skipLibCheck": True, "target": "es2022"}, "files": ["static/typed.js"]}))
|
| 100 |
+
source.write_text('/** @type {number} */ let value = 1;\nconsole.log(value);\n')
|
| 101 |
+
check = ["node", compiler, "--project", config]
|
| 102 |
+
self.assert_check(self.run_check(*check), True, "")
|
| 103 |
+
source.write_text('/** @type {number} */ let value = "wrong";\nconsole.log(value);\n')
|
| 104 |
+
self.assert_check(self.run_check(*check), False, "TS2322")
|
| 105 |
+
|
| 106 |
+
def test_source_inventory_includes_production_trees(self):
|
| 107 |
+
config = (ROOT / "eslint.config.mjs").read_text()
|
| 108 |
+
package = json.loads((ROOT / "package.json").read_text())
|
| 109 |
+
self.assertIn("eslint static scripts tests", package["scripts"]["lint"])
|
| 110 |
+
self.assertIn('"static/**/*.{js,mjs}"', config)
|
| 111 |
+
self.assertIn('"{scripts,tests}/**/*.{js,mjs}"', config)
|
| 112 |
+
self.assertIn('"**/vendor/**"', config)
|
| 113 |
+
self.assertIn('"**/foliate-reader/**"', config)
|
| 114 |
+
self.assertIn('"no-undef"', config)
|
| 115 |
+
self.assertIn('"tests/**/*.py" = ["F401", "F841"', (ROOT / "ruff.toml").read_text())
|
| 116 |
+
paths = (self.root / "scripts/check_python_static.py").read_text()
|
| 117 |
+
for expected in ('root / "app.py"', 'root / "backend"', 'root / "scripts"', 'root / "tests"'):
|
| 118 |
+
self.assertIn(expected, paths)
|
| 119 |
+
if (ROOT / "pyrightconfig.json").exists():
|
| 120 |
+
self.assertTrue((ROOT / "backend/app.py").is_file())
|
| 121 |
+
|
| 122 |
+
@unittest.skipUnless((ROOT / "pyrightconfig.json").exists(), "HF backend-only type gate")
|
| 123 |
+
def test_pyright_checks_selected_backend_modules(self):
|
| 124 |
+
module = self.root / "backend/example.py"
|
| 125 |
+
module.parent.mkdir()
|
| 126 |
+
config = self.root / "pyrightconfig.json"
|
| 127 |
+
config.write_text(json.dumps({"include": ["backend/example.py"], "pythonVersion": "3.11",
|
| 128 |
+
"typeCheckingMode": "basic"}))
|
| 129 |
+
module.write_text("def value() -> int:\n return 1\n")
|
| 130 |
+
check = ["node", ROOT / "node_modules/pyright/index.js", "--project", config]
|
| 131 |
+
self.assert_check(self.run_check(*check), True, "0 errors")
|
| 132 |
+
module.write_text("def value() -> int:\n return 'wrong'\n")
|
| 133 |
+
self.assert_check(self.run_check(*check), False, "reportReturnType")
|
| 134 |
+
|
| 135 |
+
|
| 136 |
+
if __name__ == "__main__":
|
| 137 |
+
unittest.main()
|
tests/test_static_contract.py
CHANGED
|
@@ -37,7 +37,7 @@ class StaticFrontendContractTests(unittest.TestCase):
|
|
| 37 |
self.assertEqual(len(re.findall(r'<script[^>]+src="/static/app\.js"', self.html)), 1)
|
| 38 |
|
| 39 |
def test_docker_copies_local_backend_imports(self):
|
| 40 |
-
docker = (ROOT / "Dockerfile").read_text(encoding="utf-8")
|
| 41 |
copied = set()
|
| 42 |
for line in docker.splitlines():
|
| 43 |
if line.startswith("COPY ") and line.endswith(" ."):
|
|
@@ -431,8 +431,18 @@ class StaticFrontendContractTests(unittest.TestCase):
|
|
| 431 |
self.assertIn("esbuild /out/sw.js --minify --target=es2019 --charset=utf8 --legal-comments=none", dockerfile)
|
| 432 |
self.assertIn("COPY --from=static-assets /out/ static/", dockerfile)
|
| 433 |
self.assertIn("COPY txt/ txt/", dockerfile)
|
| 434 |
-
self.assertEqual(dockerfile.count("FROM node:"),
|
| 435 |
-
self.assertEqual(dockerfile.count("FROM python:"),
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 436 |
self.assertIn("FROM python:3.11.17-slim AS search-index-build", dockerfile)
|
| 437 |
self.assertIn("python scripts/build/build_search_index_native.py --output-dir /native", dockerfile)
|
| 438 |
runtime = re.split(r'^FROM ', dockerfile, flags=re.M)[-1]
|
|
|
|
| 37 |
self.assertEqual(len(re.findall(r'<script[^>]+src="/static/app\.js"', self.html)), 1)
|
| 38 |
|
| 39 |
def test_docker_copies_local_backend_imports(self):
|
| 40 |
+
docker = re.split(r'^FROM ', (ROOT / "Dockerfile").read_text(encoding="utf-8"), flags=re.M)[-1]
|
| 41 |
copied = set()
|
| 42 |
for line in docker.splitlines():
|
| 43 |
if line.startswith("COPY ") and line.endswith(" ."):
|
|
|
|
| 431 |
self.assertIn("esbuild /out/sw.js --minify --target=es2019 --charset=utf8 --legal-comments=none", dockerfile)
|
| 432 |
self.assertIn("COPY --from=static-assets /out/ static/", dockerfile)
|
| 433 |
self.assertIn("COPY txt/ txt/", dockerfile)
|
| 434 |
+
self.assertEqual(dockerfile.count("FROM node:"), 3)
|
| 435 |
+
self.assertEqual(dockerfile.count("FROM python:"), 3)
|
| 436 |
+
self.assertIn("FROM node:26.11.1-bookworm-slim AS source-check-node", dockerfile)
|
| 437 |
+
self.assertIn("RUN npm run check:static && npx --no-install pyright --project pyrightconfig.json", dockerfile)
|
| 438 |
+
self.assertIn("FROM python:3.11.17-slim AS source-check-python", dockerfile)
|
| 439 |
+
self.assertIn("RUN python -B scripts/check_python_static.py", dockerfile)
|
| 440 |
+
self.assertIn("FROM node:26.11.1-bookworm-slim AS static-gate-test", dockerfile)
|
| 441 |
+
self.assertIn("python3 -B -m unittest -v tests.test_static_checks", dockerfile)
|
| 442 |
+
self.assertIn("COPY --from=source-check-node /check/ /check/", dockerfile)
|
| 443 |
+
self.assertIn("COPY --from=source-check-python /usr/local/lib/python3.11/site-packages/ /tmp/python-static-tools/", dockerfile)
|
| 444 |
+
self.assertIn("COPY --from=source-check-python /usr/local/bin/ruff /tmp/python-static-tools/bin/ruff", dockerfile)
|
| 445 |
+
self.assertIn("COPY --from=static-gate-test /check/static-gate-test-ok /tmp/checked-static-gate-test-ok", dockerfile)
|
| 446 |
self.assertIn("FROM python:3.11.17-slim AS search-index-build", dockerfile)
|
| 447 |
self.assertIn("python scripts/build/build_search_index_native.py --output-dir /native", dockerfile)
|
| 448 |
runtime = re.split(r'^FROM ', dockerfile, flags=re.M)[-1]
|