diff --git a/.betterleaks.toml b/.betterleaks.toml new file mode 100644 index 0000000..c478ed7 --- /dev/null +++ b/.betterleaks.toml @@ -0,0 +1,9 @@ +# Betterleaks' default rules, plus the fixture values the tests use on purpose. +[extend] +useDefault = true + +[[allowlists]] +description = "The PDF password the submission tests pass through (test/creates/generate_pdf.test.js)" +targetRules = ["generic-password"] +regexTarget = "match" +regexes = ['''password: 's3cret''''] diff --git a/.github/dependabot.yml b/.github/dependabot.yml new file mode 100644 index 0000000..f0c730a --- /dev/null +++ b/.github/dependabot.yml @@ -0,0 +1,17 @@ +version: 2 +updates: + - package-ecosystem: npm + directory: / + schedule: + interval: weekly + cooldown: + default-days: 7 + groups: + dev-dependencies: + dependency-type: development + - package-ecosystem: github-actions + directory: / + schedule: + interval: weekly + cooldown: + default-days: 7 diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml new file mode 100644 index 0000000..0aa2415 --- /dev/null +++ b/.github/workflows/ci.yml @@ -0,0 +1,35 @@ +# Runs every check (scripts/ci.sh) on pull requests and on main. `npm run push` runs the same +# checks before it pushes a version to Zapier. +name: CI + +on: + pull_request: + push: + branches: [main] + +permissions: + contents: read + +concurrency: + group: ci-${{ github.ref }} + cancel-in-progress: ${{ github.event_name == 'pull_request' }} + +jobs: + ci: + name: Checks + runs-on: ubuntu-latest + steps: + - uses: actions/checkout@3d3c42e5aac5ba805825da76410c181273ba90b1 # v7.0.1 + with: + fetch-depth: 0 # Betterleaks scans the whole history + persist-credentials: false + + - uses: jdx/mise-action@924e7c586e33d7d4bae9c14e26c5d22e2beb6e78 # v5.3.0 + with: + cache: true + + - name: Install dependencies + run: npm ci + + - name: Checks + run: mise run ci diff --git a/.github/zizmor.yml b/.github/zizmor.yml new file mode 100644 index 0000000..b8fe61a --- /dev/null +++ b/.github/zizmor.yml @@ -0,0 +1,4 @@ +rules: + # It asks for the `$/` form of a local reusable workflow, which actionlint 1.7.12 rejects. `./` is the same file. + self-repository: + disable: true diff --git a/.jscpd.json b/.jscpd.json new file mode 100644 index 0000000..834f9d0 --- /dev/null +++ b/.jscpd.json @@ -0,0 +1,17 @@ +{ + "path": [ + "authentication.js", + "index.js", + "creates", + "lib", + "searches", + "triggers", + "scripts", + "test" + ], + "minLines": 8, + "threshold": 0, + "reporters": ["console"], + "silent": true, + "gitignore": true +} diff --git a/.oxfmtrc.json b/.oxfmtrc.json new file mode 100644 index 0000000..56d8f47 --- /dev/null +++ b/.oxfmtrc.json @@ -0,0 +1,8 @@ +{ + "$schema": "./node_modules/oxfmt/configuration_schema.json", + "semi": false, + "singleQuote": true, + "printWidth": 100, + "experimentalSortPackageJson": false, + "ignorePatterns": ["package-lock.json", "build"] +} diff --git a/AGENTS.md b/AGENTS.md new file mode 100644 index 0000000..9b923e2 --- /dev/null +++ b/AGENTS.md @@ -0,0 +1,35 @@ +# DocSpring's Zapier integration + +The integration's design and naming rules are in `DESIGN.md`; read it before changing an action, search or trigger. + +## Checks + +`mise run ci` (`scripts/ci.sh`) runs what CI runs, and the pre-push hook runs it too. Set up a checkout with +`mise install`, `npm ci` and `lefthook install`. CI (`.github/workflows/ci.yml`) runs on pull requests and on main. +A new version reaches Zapier only through `npm run push`, which runs the same checks first and stops if one fails +(it needs the Zapier CLI, `zapier-platform`, installed and signed in). + +| Check | Tool | +| ------------------------------ | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ | +| Type check | `tsc` on the JavaScript (`checkJs`, `tsconfig.json`), with Zapier's and Jest's types | +| Lint | oxlint, warnings fail | +| Tests, with a coverage floor | Jest (`jest.config.js`): statements 96%, branches 85%, functions 98%, lines 97%. Raise the floor as coverage rises; never lower it | +| Smoke test | `scripts/smoke_test.js`: Zapier's own validation of the app (what `zapier-platform validate` runs), a `CHANGELOG.md` entry for `package.json`'s version, and `.env` ignored by git, so `zapier-platform push` never uploads it | +| Dead code, unused dependencies | Knip (`knip.json`) | +| Copy-paste | jscpd (`.jscpd.json`): any clone of 8 lines or more fails. A false positive (the same `require` lines in two files) gets `// jscpd:ignore-start` and `// jscpd:ignore-end` with a comment saying what it repeats | +| File length | `scripts/check_file_length.sh`: 500 lines for code, 1000 for tests. Split the file | +| Lint suppressions | `scripts/check_lint_suppressions.sh`: no `eslint-disable`, `oxlint-disable` or `@ts-` comments | +| Spelling | typos (`_typos.toml`) | +| Workflows | actionlint, zizmor (`.github/zizmor.yml`). Actions are pinned to commit SHAs: `pinact run` | +| Secrets | Betterleaks over the whole history (`.betterleaks.toml` allows the tests' fixture password only) | +| Dependency advisories | `scripts/check_audit.mjs`: `npm audit`, minus `audit-ignores.json`. Each ignore has a reason and an expiry at most six months away, and the check fails once an ignore expires or no longer matches an advisory | +| Licences | `scripts/check_licences.mjs`: the runtime dependencies, which go into the bundle Zapier runs, must be permissive. Zapier's own SDK and three of its dependencies are named exceptions, each with its reason | + +There's no format check. The pre-commit hook (`lefthook.yml`) formats staged files with oxfmt (`.oxfmtrc.json`), fixes +spelling and what oxlint can fix, and stages the result. `npm run format` formats everything. + +`zapier-platform-cli` isn't a dev dependency: it brings several hundred packages, many with advisories, into the +audit. The smoke test runs the validation it would run through `zapier-platform-core`. + +Tool versions are pinned in `mise.toml` and `package.json`, each at least 7 days old when pinned. Dependabot +(`.github/dependabot.yml`) waits 7 days before it proposes a new version. diff --git a/DESIGN.md b/DESIGN.md index f85fd45..65f7c1a 100644 --- a/DESIGN.md +++ b/DESIGN.md @@ -30,7 +30,7 @@ Architecture and rationale for the CLI integration. Companion to `README.md`. - `lib/middleware.js` `beforeRequest` prepends the standard host to root-relative paths and, **only for requests to this connection's DocSpring hosts**, adds `Authorization: Basic base64(token_id:token_secret)`, `User-Agent: -docspring-zapier/` (so `api_logs.user_agent` counts users by version), + docspring-zapier/` (so `api_logs.user_agent` counts users by version), `Accept` and `Content-Type: application/json`. Requests anywhere else (downloading a file a user mapped into Create Template) never carry the credentials. - `afterResponse` turns DocSpring error responses into readable errors (below). There diff --git a/_typos.toml b/_typos.toml new file mode 100644 index 0000000..4d1de01 --- /dev/null +++ b/_typos.toml @@ -0,0 +1,3 @@ +[default] +# A test checks that a misspelt variable, [[ signer.nmae ]], is passed through unchanged. +extend-ignore-re = ['signer\.nmae'] diff --git a/audit-ignores.json b/audit-ignores.json new file mode 100644 index 0000000..066493d --- /dev/null +++ b/audit-ignores.json @@ -0,0 +1,53 @@ +{ + "_comment": "npm audit advisories scripts/check_audit.mjs lets through. Each needs a reason and an expiry at most six months away; the check fails once an entry expires or no longer matches anything.", + "ignores": [ + { + "id": "GHSA-ghv9-86vm-4v8m", + "package": "cross-spawn", + "reason": "Jest's dependency (through execa), dev only, and the bug is on Windows. The fixed 7.1.1 came out on 28 Nov 2026: run npm update cross-spawn once it's 7 days old.", + "expires": "2026-12-13" + }, + { + "id": "GHSA-m6qr-m48x-3xhh", + "package": "cross-spawn", + "reason": "As GHSA-ghv9-86vm-4v8m.", + "expires": "2026-12-13" + }, + { + "id": "GHSA-w3gc-668g-rf8f", + "package": "cross-spawn", + "reason": "As GHSA-ghv9-86vm-4v8m.", + "expires": "2026-12-13" + }, + { + "id": "GHSA-3g3m-2fjr-6pw4", + "package": "glob", + "reason": "Jest 30's own dependency (its reporters and coverage), dev only: Jest's version ranges don't take a fixed release yet. Check again with the next Jest release.", + "expires": "2027-03-05" + }, + { + "id": "GHSA-qxr8-q827-836c", + "package": "glob", + "reason": "Jest 30's own dependency (its reporters and coverage), dev only: Jest's version ranges don't take a fixed release yet. Check again with the next Jest release.", + "expires": "2027-03-05" + }, + { + "id": "GHSA-c6wh-w8c3-cv3g", + "package": "glob", + "reason": "Jest 30's own dependency (its reporters and coverage), dev only: Jest's version ranges don't take a fixed release yet. Check again with the next Jest release.", + "expires": "2027-03-05" + }, + { + "id": "GHSA-g3hv-75wg-m249", + "package": "minimatch", + "reason": "Jest 30's own dependency (its reporters and coverage), dev only: Jest's version ranges don't take a fixed release yet. Check again with the next Jest release.", + "expires": "2027-03-05" + }, + { + "id": "GHSA-c859-jr93-m5j4", + "package": "minimatch", + "reason": "Jest 30's own dependency (its reporters and coverage), dev only: Jest's version ranges don't take a fixed release yet. Check again with the next Jest release.", + "expires": "2027-03-05" + } + ] +} diff --git a/authentication.js b/authentication.js index f6ef1f7..49855c5 100644 --- a/authentication.js +++ b/authentication.js @@ -22,10 +22,7 @@ const test = async (z, bundle) => { const connectionLabel = (z, bundle) => { const tokenId = (bundle.authData && bundle.authData.token_id) || '' const env = tokenId.startsWith('api_test_') ? 'Test' : 'Live' - const region = ( - (bundle.authData && bundle.authData.region) || - 'us' - ).toUpperCase() + const region = ((bundle.authData && bundle.authData.region) || 'us').toUpperCase() return `DocSpring ${env} · ${region}${tokenId ? ` · ${tokenId}` : ''}` } diff --git a/creates/check_data.js b/creates/check_data.js index 611a831..104b205 100644 --- a/creates/check_data.js +++ b/creates/check_data.js @@ -45,33 +45,19 @@ function withDefaultAuthType(request) { if (!request || typeof request !== 'object' || Array.isArray(request)) { return request } - return request.auth_type === undefined - ? { ...request, auth_type: 'email_link' } - : request + return request.auth_type === undefined ? { ...request, auth_type: 'email_link' } : request } const perform = async (z, bundle) => { const input = bundle.inputData || {} - const parsed = parseJson( - z, - input.signature_requests, - 'Signature Requests', - 'array' - ) + const parsed = parseJson(z, input.signature_requests, 'Signature Requests', 'array') // An empty list is no signature requests: the email settings go only with // signers. Each one's authentication defaults to an email link, as in // Create Signature Request. const signatureRequests = - parsed && parsed.length > 0 - ? parsed.map(withoutBlankText).map(withDefaultAuthType) - : undefined + parsed && parsed.length > 0 ? parsed.map(withoutBlankText).map(withDefaultAuthType) : undefined const response = await apiRequest(z, { - url: apiPath( - 'templates', - seg(input.template_id), - 'submissions', - 'validate' - ), + url: apiPath('templates', seg(input.template_id), 'submissions', 'validate'), method: 'POST', params: compact({ version: text(input.version) }), body: compact({ @@ -91,7 +77,7 @@ async function dynamicFields(z, bundle) { let mode = 'docspring' try { mode = emailMode(z, input) - } catch (_e) { + } catch { // An invalid choice is reported by perform; show DocSpring's options meanwhile. } const fields = await templateSchemaFields({ optional: true })(z, bundle) diff --git a/creates/combine_pdfs.js b/creates/combine_pdfs.js index dee14b3..95f09d8 100644 --- a/creates/combine_pdfs.js +++ b/creates/combine_pdfs.js @@ -2,20 +2,8 @@ const { apiPath } = require('../lib/api') const { COMBINED_PDF, createAndWait } = require('../lib/records') -const { - compact, - isBlank, - parseJson, - text, - toBoolean, - toInteger, -} = require('../lib/util') -const { - metadataInput, - pdfPassphraseInput, - expiresInInput, - waitInput, -} = require('../lib/templates') +const { compact, isBlank, parseJson, text, toBoolean, toInteger } = require('../lib/util') +const { metadataInput, pdfPassphraseInput, expiresInInput, waitInput } = require('../lib/templates') const { shouldWait } = require('../lib/submissionInputs') const combinedPdf = require('../lib/resources/combinedPdf') @@ -35,28 +23,18 @@ function sourcePdf(z, row, number) { const type = text(row.type) || 'submission' if (type === 'url') { const url = text(row.url) - if (!url) - throw new z.errors.Error( - `Source PDF ${number} needs a URL.`, - 'InvalidInput', - 400 - ) + if (!url) throw new z.errors.Error(`Source PDF ${number} needs a URL.`, 'InvalidInput', 400) return { type, url } } if (!ID_TYPES.includes(type)) { throw new z.errors.Error( `Source PDF ${number} has an unknown type "${type}".`, 'InvalidInput', - 400 + 400, ) } const id = text(row.id) - if (!id) - throw new z.errors.Error( - `Source PDF ${number} needs an ID.`, - 'InvalidInput', - 400 - ) + if (!id) throw new z.errors.Error(`Source PDF ${number} needs an ID.`, 'InvalidInput', 400) if (type !== 'template') return { type, id } return compact({ type, @@ -69,15 +47,11 @@ function sourcePdf(z, row, number) { const perform = async (z, bundle) => { const input = bundle.inputData || {} // Skip wholly blank line items; a row with a type but no ID or URL is an error. - const rows = ( - Array.isArray(input.source_pdfs) ? input.source_pdfs : [] - ).filter((row) => row && !Object.values(row).every(isBlank)) + const rows = (Array.isArray(input.source_pdfs) ? input.source_pdfs : []).filter( + (row) => row && !Object.values(row).every(isBlank), + ) if (rows.length === 0) { - throw new z.errors.Error( - 'Add at least one source PDF.', - 'InvalidInput', - 400 - ) + throw new z.errors.Error('Add at least one source PDF.', 'InvalidInput', 400) } return createAndWait(z, bundle, { kind: COMBINED_PDF, @@ -150,8 +124,7 @@ module.exports = { }, { ...metadataInput, - helpText: - 'Your own data about the combined PDF, such as an ID from your app.', + helpText: 'Your own data about the combined PDF, such as an ID from your app.', }, pdfPassphraseInput, { diff --git a/creates/copy_template.js b/creates/copy_template.js index 91cd09d..b3384d4 100644 --- a/creates/copy_template.js +++ b/creates/copy_template.js @@ -1,18 +1,18 @@ 'use strict' +// jscpd:ignore-start: the same requires as move_template.js, which jscpd counts as a copy. const { apiPath, apiRequest } = require('../lib/api') const { isRoot } = require('../lib/documents') const { compact, seg, text } = require('../lib/util') const { templateInput, folderInput } = require('../lib/templates') const template = require('../lib/resources/template') +// jscpd:ignore-end const perform = async (z, bundle) => { const input = bundle.inputData || {} // Blank: the copy goes in the template's own folder (left out). `root`: // the top level (null). - const folder = isRoot(input.parent_folder_id) - ? null - : text(input.parent_folder_id) + const folder = isRoot(input.parent_folder_id) ? null : text(input.parent_folder_id) const response = await apiRequest(z, { url: apiPath('templates', seg(input.template_id), 'copy'), method: 'POST', @@ -30,8 +30,7 @@ module.exports = { noun: 'Template', display: { label: 'Copy Template', - description: - 'Copies a template, or one of its published versions, to a new template.', + description: 'Copies a template, or one of its published versions, to a new template.', }, operation: { inputFields: [ @@ -41,8 +40,7 @@ module.exports = { label: 'Name', type: 'string', required: false, - helpText: - 'Default: the template\'s name and a number, such as "Contract (2)".', + helpText: 'Default: the template\'s name and a number, such as "Contract (2)".', }, folderInput({ helpText: diff --git a/creates/create_folder.js b/creates/create_folder.js index ba37b3e..6dbd3a7 100644 --- a/creates/create_folder.js +++ b/creates/create_folder.js @@ -1,10 +1,12 @@ 'use strict' +// jscpd:ignore-start: the same requires as searches/list_folders.js, which jscpd counts as a copy. const { apiPath, apiRequest } = require('../lib/api') const { isRoot } = require('../lib/documents') const { compact, text } = require('../lib/util') const { folderInput } = require('../lib/templates') const { folder } = require('../lib/resources/other') +// jscpd:ignore-end const perform = async (z, bundle) => { const input = bundle.inputData || {} @@ -13,9 +15,7 @@ const perform = async (z, bundle) => { method: 'POST', body: compact({ name: text(input.name), - parent_folder_id: isRoot(input.parent_folder_id) - ? undefined - : text(input.parent_folder_id), + parent_folder_id: isRoot(input.parent_folder_id) ? undefined : text(input.parent_folder_id), }), }) return response.data @@ -39,8 +39,7 @@ module.exports = { }, folderInput({ label: 'Parent Folder', - helpText: - 'The folder to create it in. Leave blank (or enter `root`) for the top level.', + helpText: 'The folder to create it in. Leave blank (or enter `root`) for the top level.', }), ], perform, diff --git a/creates/create_signature_request.js b/creates/create_signature_request.js index aed3edc..6d0c28c 100644 --- a/creates/create_signature_request.js +++ b/creates/create_signature_request.js @@ -2,15 +2,7 @@ const { apiPath, apiRequest } = require('../lib/api') const { formatApiError } = require('../lib/errors') -const { - compact, - parseJson, - seg, - splitNames, - text, - toBoolean, - toInteger, -} = require('../lib/util') +const { compact, parseJson, seg, splitNames, text, toBoolean, toInteger } = require('../lib/util') const { dataFromInputs, dataJsonInput, @@ -65,7 +57,7 @@ function signerCount(z, input) { throw new z.errors.Error( `Number of Signers must be from 1 to ${MAX_SIGNERS}.`, 'InvalidInput', - 400 + 400, ) } return count @@ -106,10 +98,7 @@ function signerFields(count, fieldChoices) { label: `Signer ${i}: Role`, type: 'string', required: false, - choices: Array.from( - { length: MAX_SIGNERS }, - (_v, n) => `Signer ${n + 1}` - ), + choices: Array.from({ length: MAX_SIGNERS }, (_v, n) => `Signer ${n + 1}`), helpText: "Which of the template's signers this is. Leave blank to go in order (the first signer is Signer 1). " + 'Set it for every signer or for none.', @@ -131,8 +120,7 @@ function signerFields(count, fieldChoices) { label: `Signer ${i}: Authentication Provider`, type: 'string', required: false, - helpText: - 'For OAuth: the service that signed them in, such as `google`.', + helpText: 'For OAuth: the service that signed them in, such as `google`.', }, { key: `${p}signing_step`, @@ -157,9 +145,8 @@ function signerFields(count, fieldChoices) { label: `Signer ${i}: Ignore Unknown Fields?`, type: 'boolean', required: false, - helpText: - "Leave out field names the template doesn't have, instead of failing.", - } + helpText: "Leave out field names the template doesn't have, instead of failing.", + }, ) } return fields @@ -183,7 +170,7 @@ function emailModeFields(z, input) { let mode = 'docspring' try { mode = emailMode(z, input) - } catch (_e) { + } catch { // An invalid choice is reported by perform; show DocSpring's options meanwhile. } return mode === 'self' ? [signingLinkTypeInput] : emailOptionFields @@ -197,7 +184,7 @@ async function dynamicFields(z, bundle) { let count = 1 try { count = signerCount(z, input) - } catch (_e) { + } catch { // An invalid count is reported by perform; show one signer meanwhile. } const modeFields = emailModeFields(z, input) @@ -229,11 +216,7 @@ function signatureRequestsFromInputs(z, input) { const p = `signer_${i}_` const fields = splitNames(input[`${p}fields`]) if (fields.length === 0) { - throw new z.errors.Error( - `Signer ${i} needs at least one field.`, - 'InvalidInput', - 400 - ) + throw new z.errors.Error(`Signer ${i} needs at least one field.`, 'InvalidInput', 400) } const authType = text(input[`${p}auth_type`]) || 'email_link' const authProvider = text(input[`${p}auth_provider`]) @@ -241,7 +224,7 @@ function signatureRequestsFromInputs(z, input) { throw new z.errors.Error( `Signer ${i} uses OAuth, so it needs an Authentication Provider (such as google).`, 'InvalidInput', - 400 + 400, ) } requests.push( @@ -250,24 +233,20 @@ function signatureRequestsFromInputs(z, input) { email: text(input[`${p}email`]), role: text(input[`${p}role`]), fields, - signing_step: toInteger( - z, - input[`${p}signing_step`], - `Signer ${i}: Signing Step` - ), + signing_step: toInteger(z, input[`${p}signing_step`], `Signer ${i}: Signing Step`), auth_type: authType, auth_provider: authProvider, prefilled_values_editable: toBoolean( z, input[`${p}prefilled_values_editable`], - `Signer ${i}: Can Change Prefilled Values?` + `Signer ${i}: Can Change Prefilled Values?`, ), ignore_unknown_fields: toBoolean( z, input[`${p}ignore_unknown_fields`], - `Signer ${i}: Ignore Unknown Fields?` + `Signer ${i}: Ignore Unknown Fields?`, ), - }) + }), ) } return requests @@ -287,7 +266,7 @@ function signingLinksFailed(z, created, missing, reason, status) { `Submission: ${created.id}`, ].join('\n'), 'SigningLinkFailed', - status + status, ) } @@ -315,7 +294,7 @@ async function withSigningLinks(z, created, linkType, startedAt) { created, missing, "There wasn't time to make them within Zapier's time limit.", - 504 + 504, ) } try { @@ -335,13 +314,7 @@ async function withSigningLinks(z, created, linkType, startedAt) { await clock.sleep(retryAfter) } if (response.status >= 400) { - throw signingLinksFailed( - z, - created, - missing, - formatApiError(response), - response.status - ) + throw signingLinksFailed(z, created, missing, formatApiError(response), response.status) } enriched.push({ ...request, @@ -355,14 +328,12 @@ const perform = async (z, bundle) => { const startedAt = clock.now() const input = bundle.inputData || {} const settings = emailSettings(z, input) - const linkType = settings.send_email - ? 'none' - : text(input.signing_link_type) || 'email' + const linkType = settings.send_email ? 'none' : text(input.signing_link_type) || 'email' if (!LINK_TYPES.some((type) => type.value === linkType)) { throw new z.errors.Error( `Signing Link must be email, api or none, not "${linkType}".`, 'InvalidInput', - 400 + 400, ) } const body = compact({ diff --git a/creates/create_signing_link.js b/creates/create_signing_link.js index 7846713..7efcdb8 100644 --- a/creates/create_signing_link.js +++ b/creates/create_signing_link.js @@ -7,11 +7,7 @@ const { signatureRequestToken } = require('../lib/resources/other') const perform = async (z, bundle) => { const input = bundle.inputData || {} const response = await apiRequest(z, { - url: apiPath( - 'signature_requests', - seg(input.signature_request_id), - 'tokens' - ), + url: apiPath('signature_requests', seg(input.signature_request_id), 'tokens'), method: 'POST', body: { type: text(input.type) || 'email' }, }) diff --git a/creates/create_template.js b/creates/create_template.js index be9e739..42d242c 100644 --- a/creates/create_template.js +++ b/creates/create_template.js @@ -18,11 +18,7 @@ const perform = async (z, bundle) => { const templateType = text(input.template_type) || 'pdf' const document = await documentSource(z, input) if (templateType === 'pdf' && Object.keys(document).length === 0) { - throw new z.errors.Error( - 'A PDF template needs a PDF URL or a PDF File.', - 'InvalidInput', - 400 - ) + throw new z.errors.Error('A PDF template needs a PDF URL or a PDF File.', 'InvalidInput', 400) } return createAndWait(z, bundle, { kind: TEMPLATE, @@ -30,15 +26,9 @@ const perform = async (z, bundle) => { body: compact({ name: text(input.name), template_type: templateType, - parent_folder_id: isRoot(input.parent_folder_id) - ? undefined - : text(input.parent_folder_id), + parent_folder_id: isRoot(input.parent_folder_id) ? undefined : text(input.parent_folder_id), ...document, - detect_fields: toBoolean( - z, - input.detect_fields, - 'Detect Fields With AI?' - ), + detect_fields: toBoolean(z, input.detect_fields, 'Detect Fields With AI?'), field_source: text(input.field_source), field_naming: text(input.field_naming), field_logic: text(input.field_logic), @@ -98,8 +88,7 @@ module.exports = { choice('pdf_detection', 'Detect the fields from the page'), choice('pdf_form_fields', "Import the PDF's form fields"), ], - helpText: - 'With Detect Fields: where the fields come from. Default: Auto.', + helpText: 'With Detect Fields: where the fields come from. Default: Auto.', }, { key: 'field_naming', @@ -117,10 +106,7 @@ module.exports = { label: 'Field Logic', type: 'string', required: false, - choices: [ - choice('ai', 'Set up conditional logic with AI'), - choice('none', 'None'), - ], + choices: [choice('ai', 'Set up conditional logic with AI'), choice('none', 'None')], helpText: "With Detect Fields: whether AI sets up conditional logic and required fields. Default: your account's setting.", }, diff --git a/creates/generate_pdf_batch.js b/creates/generate_pdf_batch.js index 46e53d7..d2781cd 100644 --- a/creates/generate_pdf_batch.js +++ b/creates/generate_pdf_batch.js @@ -21,32 +21,23 @@ const submissionBatch = require('../lib/resources/submissionBatch') // The batch's submissions: line items (one row per PDF, each with its data and // metadata as JSON), or one JSON list with every property of a submission. function batchSubmissions(z, input) { - const fromJson = parseJson( - z, - input.submissions_json, - 'Submissions (JSON)', - 'array' + const fromJson = parseJson(z, input.submissions_json, 'Submissions (JSON)', 'array') + const rows = (Array.isArray(input.submissions) ? input.submissions : []).filter( + (row) => row && !Object.values(row).every(isBlank), ) - const rows = ( - Array.isArray(input.submissions) ? input.submissions : [] - ).filter((row) => row && !Object.values(row).every(isBlank)) if (fromJson && rows.length) { throw new z.errors.Error( 'Use either Submissions or Submissions (JSON), not both.', 'InvalidInput', - 400 + 400, ) } if (fromJson) return fromJson return rows.map((row, i) => compact({ data: parseJson(z, row.submission_data, `Submission ${i + 1} Data`) || {}, - metadata: parseJson( - z, - row.submission_metadata, - `Submission ${i + 1} Metadata` - ), - }) + metadata: parseJson(z, row.submission_metadata, `Submission ${i + 1} Metadata`), + }), ) } @@ -54,11 +45,7 @@ const perform = async (z, bundle) => { const input = bundle.inputData || {} const submissions = batchSubmissions(z, input) if (submissions.length === 0) { - throw new z.errors.Error( - 'Add at least one submission to the batch.', - 'InvalidInput', - 400 - ) + throw new z.errors.Error('Add at least one submission to the batch.', 'InvalidInput', 400) } return createAndWait(z, bundle, { kind: SUBMISSION_BATCH, @@ -80,8 +67,7 @@ module.exports = { noun: 'Submission Batch', display: { label: 'Create Submission Batch', - description: - 'Creates up to 50 submissions in one request, from one template or several.', + description: 'Creates up to 50 submissions in one request, from one template or several.', }, operation: { inputFields: [ @@ -109,16 +95,14 @@ module.exports = { label: 'Data (JSON)', type: 'text', required: false, - helpText: - 'The values of the template\'s fields, such as `{"first_name": "Jane"}`.', + helpText: 'The values of the template\'s fields, such as `{"first_name": "Jane"}`.', }, { key: 'submission_metadata', label: 'Metadata (JSON)', type: 'text', required: false, - helpText: - 'Your own data about this submission, such as `{"row": 1}`.', + helpText: 'Your own data about this submission, such as `{"row": 1}`.', }, ], }, diff --git a/creates/generate_submission_files.js b/creates/generate_submission_files.js index b254a82..928c1dc 100644 --- a/creates/generate_submission_files.js +++ b/creates/generate_submission_files.js @@ -89,8 +89,7 @@ module.exports = { filename: 'sub_1234567890abcdef01_page_1.png', content_type: 'image/png', size: 120394, - sha256: - '2c26b46b68ffc68ff99b453c1d30413413422d706483bfa0f98a5e886266e7ae', + sha256: '2c26b46b68ffc68ff99b453c1d30413413422d706483bfa0f98a5e886266e7ae', }, ], }, diff --git a/creates/move_template.js b/creates/move_template.js index 90a8aa3..6e83241 100644 --- a/creates/move_template.js +++ b/creates/move_template.js @@ -9,9 +9,7 @@ const template = require('../lib/resources/template') const perform = async (z, bundle) => { const input = bundle.inputData || {} // `parent_folder_id` is required: null (blank or `root`) is the top level. - const folder = isRoot(input.parent_folder_id) - ? null - : text(input.parent_folder_id) || null + const folder = isRoot(input.parent_folder_id) ? null : text(input.parent_folder_id) || null const response = await apiRequest(z, { url: apiPath('templates', seg(input.template_id), 'move'), method: 'POST', @@ -25,15 +23,13 @@ module.exports = { noun: 'Template', display: { label: 'Move Template', - description: - 'Moves a template, with all of its published versions, to another folder.', + description: 'Moves a template, with all of its published versions, to another folder.', }, operation: { inputFields: [ templateInput, folderInput({ - helpText: - 'The folder to move it to. Leave blank (or enter `root`) for the top level.', + helpText: 'The folder to move it to. Leave blank (or enter `root`) for the top level.', }), ], perform, diff --git a/creates/replace_template_pdf.js b/creates/replace_template_pdf.js index 23e5012..0f4cb5d 100644 --- a/creates/replace_template_pdf.js +++ b/creates/replace_template_pdf.js @@ -15,11 +15,7 @@ const perform = async (z, bundle) => { const input = bundle.inputData || {} const document = await documentSource(z, input) if (Object.keys(document).length === 0) { - throw new z.errors.Error( - 'Add a PDF URL or a PDF File.', - 'InvalidInput', - 400 - ) + throw new z.errors.Error('Add a PDF URL or a PDF File.', 'InvalidInput', 400) } return createAndWait(z, bundle, { kind: TEMPLATE, @@ -51,8 +47,7 @@ module.exports = { label: 'Reimport Fields?', type: 'boolean', required: false, - helpText: - "Replace all of the template's fields with the fillable fields in the new PDF.", + helpText: "Replace all of the template's fields with the fillable fields in the new PDF.", }, waitInput("template's PDF"), ], diff --git a/creates/template_fields.js b/creates/template_fields.js index fcbc114..4cc99c8 100644 --- a/creates/template_fields.js +++ b/creates/template_fields.js @@ -2,11 +2,7 @@ const { apiPath, apiRequest } = require('../lib/api') const { asArray, parseJson, seg, text, toInteger } = require('../lib/util') -const { - templateInput, - templateDropdown, - fetchTemplateFields, -} = require('../lib/templates') +const { templateInput, templateDropdown, fetchTemplateFields } = require('../lib/templates') const { templateFields } = require('../lib/resources/other') // Add, Update and Remove Template Fields. Adding and updating take the fields @@ -45,7 +41,7 @@ const addTemplateFields = { 'A JSON list of fields, such as `[{"name": "first_name", "type": "string", "page": 1, "x": 72, "y": 100, ' + '"width": 200, "height": 20}]`. Settings left out have their defaults. A field with the name of one of the ' + "template's fields shares its settings (`type`, `required`, `default` and others): leave them out or give " + - 'the same values, and change them for every field with the name with Update Template Fields.' + 'the same values, and change them for every field with the name with Update Template Fields.', ), ], perform: sendFields('POST'), @@ -66,7 +62,7 @@ const updateTemplateFields = { templateInput, fieldsJsonInput( 'A JSON list of changes, each with the `id` of the field it changes, such as ' + - '`[{"id": 1, "required": false}]`. Settings left out keep their values. Get the IDs with List Template Fields.' + '`[{"id": 1, "required": false}]`. Settings left out keep their values. Get the IDs with List Template Fields.', ), ], perform: sendFields('PUT'), @@ -78,10 +74,7 @@ const updateTemplateFields = { // The Field IDs input lists the template's fields once a template is chosen: // the draft's, since that's what fields are removed from. async function fieldIdChoices(z, bundle) { - const fields = await fetchTemplateFields( - z, - (bundle.inputData || {}).template_id - ) + const fields = await fetchTemplateFields(z, (bundle.inputData || {}).template_id) const choices = fields.map((field) => ({ value: String(field.id), sample: String(field.id), @@ -95,8 +88,7 @@ async function fieldIdChoices(z, bundle) { list: true, required: true, ...(choices.length ? { choices } : {}), - helpText: - 'The fields to remove, or their IDs (from List Template Fields).', + helpText: 'The fields to remove, or their IDs (from List Template Fields).', }, ] } @@ -112,23 +104,12 @@ const removeTemplateFields = { inputFields: [templateDropdown, fieldIdChoices], perform: async (z, bundle) => { const input = bundle.inputData || {} - const ids = asArray(input.field_ids).map((id) => - toInteger(z, id, 'Field ID') - ) + const ids = asArray(input.field_ids).map((id) => toInteger(z, id, 'Field ID')) if (ids.length === 0) { - throw new z.errors.Error( - 'Choose at least one field to remove.', - 'InvalidInput', - 400 - ) + throw new z.errors.Error('Choose at least one field to remove.', 'InvalidInput', 400) } const response = await apiRequest(z, { - url: apiPath( - 'templates', - seg(text(input.template_id)), - 'fields', - 'remove' - ), + url: apiPath('templates', seg(text(input.template_id)), 'fields', 'remove'), method: 'POST', body: { field_ids: ids }, }) diff --git a/index.js b/index.js index fd50785..9cb0c0d 100644 --- a/index.js +++ b/index.js @@ -91,8 +91,7 @@ module.exports = { key: 'list_folders', display: { label: 'Find or Create Folder', - description: - "Finds a folder by name, or creates it when there isn't one.", + description: "Finds a folder by name, or creates it when there isn't one.", }, search: 'list_folders', create: 'create_folder', diff --git a/jest.config.js b/jest.config.js index 2c719e8..44f6e56 100644 --- a/jest.config.js +++ b/jest.config.js @@ -7,4 +7,14 @@ module.exports = { testMatch: ['**/test/**/*.test.js'], // Blocks real network requests: every test mocks HTTP with nock. setupFilesAfterEnv: ['/test/setup.js'], + // The floor CI holds (`jest --coverage`). Raise it as coverage rises; never lower it. + collectCoverageFrom: [ + '*.js', + 'creates/**/*.js', + 'lib/**/*.js', + 'searches/**/*.js', + 'triggers/**/*.js', + '!jest.config.js', + ], + coverageThreshold: { global: { statements: 96, branches: 85, functions: 98, lines: 97 } }, } diff --git a/knip.json b/knip.json new file mode 100644 index 0000000..2389772 --- /dev/null +++ b/knip.json @@ -0,0 +1,15 @@ +{ + "$schema": "https://unpkg.com/knip@6/schema.json", + "entry": ["test/**/*.test.js", "scripts/*.{js,mjs}"], + "project": [ + "*.js", + "creates/**/*.js", + "lib/**/*.js", + "searches/**/*.js", + "triggers/**/*.js", + "test/**/*.js", + "scripts/**/*.{js,mjs}" + ], + "ignoreBinaries": ["mise", "zapier-platform"], + "ignoreExportsUsedInFile": true +} diff --git a/lefthook.yml b/lefthook.yml new file mode 100644 index 0000000..ee08003 --- /dev/null +++ b/lefthook.yml @@ -0,0 +1,25 @@ +# Install with `lefthook install` (AGENTS.md). The pre-commit hook fixes what it can and stages the fix; +# the pre-push hook runs everything CI runs. +pre-commit: + parallel: false + commands: + format: + glob: '*.{ts,js,mjs,cjs,json,md,yml,yaml}' + run: npx oxfmt {staged_files} + stage_fixed: true + spelling: + run: typos -w {staged_files} + stage_fixed: true + lint: + glob: '*.{js,mjs,cjs}' + run: npx oxlint --fix --deny-warnings {staged_files} + stage_fixed: true + file-length: + run: scripts/check_file_length.sh {staged_files} + secrets: + run: betterleaks git . --pre-commit --staged --config .betterleaks.toml --redact --no-banner + +pre-push: + commands: + ci: + run: mise run ci diff --git a/lib/api.js b/lib/api.js index b552d5d..021bc2a 100644 --- a/lib/api.js +++ b/lib/api.js @@ -21,8 +21,7 @@ function syncUrl(bundle, path) { // values (as unfilled template tags), which would delete the Liquid tags from // an HTML template's `html`, or text a user wrote with curly braces. function apiRequest(z, options) { - if (options.body === undefined || typeof options.body === 'string') - return z.request(options) + if (options.body === undefined || typeof options.body === 'string') return z.request(options) return z.request({ ...options, body: JSON.stringify(options.body) }) } diff --git a/lib/documents.js b/lib/documents.js index 9b1e38a..460735a 100644 --- a/lib/documents.js +++ b/lib/documents.js @@ -29,21 +29,18 @@ const documentInputs = (what) => [ label: 'Filename', type: 'string', required: false, - helpText: - "The PDF's file name. Default: the name of the file or the last part of the URL.", + helpText: "The PDF's file name. Default: the name of the file or the last part of the URL.", }, ] function filenameFrom(response, url) { - const disposition = - response.headers && response.headers.get('content-disposition') - const match = - disposition && /filename\*?=(?:UTF-8'')?"?([^";]+)"?/i.exec(disposition) + const disposition = response.headers && response.headers.get('content-disposition') + const match = disposition && /filename\*?=(?:UTF-8'')?"?([^";]+)"?/i.exec(disposition) if (match) return decodeURIComponent(match[1].trim()) try { const last = new URL(url).pathname.split('/').pop() if (last && /\.pdf$/i.test(last)) return decodeURIComponent(last) - } catch (_e) { + } catch { // Not a URL we can read a name from. } return 'document.pdf' @@ -55,11 +52,7 @@ async function documentSource(z, input) { const url = text(input.document_url) const file = text(input.document_file) if (url && file) { - throw new z.errors.Error( - 'Use PDF URL or PDF File, not both.', - 'InvalidInput', - 400 - ) + throw new z.errors.Error('Use PDF URL or PDF File, not both.', 'InvalidInput', 400) } if (url) return compact({ document_url: url, filename: text(input.filename) }) if (!file) return {} @@ -73,17 +66,13 @@ async function documentSource(z, input) { skipThrowForStatus: true, }) } catch (e) { - throw new z.errors.Error( - `Couldn't download the PDF File: ${e.message}`, - 'DownloadFailed', - 400 - ) + throw new z.errors.Error(`Couldn't download the PDF File: ${e.message}`, 'DownloadFailed', 400) } if (response.status >= 400) { throw new z.errors.Error( `Couldn't download the PDF File (HTTP ${response.status}).`, 'DownloadFailed', - 400 + 400, ) } const buffer = await response.buffer() @@ -91,7 +80,7 @@ async function documentSource(z, input) { throw new z.errors.Error( 'The PDF File is larger than 7 MB. Put it at a public https:// link and use PDF URL instead.', 'InvalidInput', - 400 + 400, ) } return { diff --git a/lib/dropdowns.js b/lib/dropdowns.js index 8c77d92..9dc1963 100644 --- a/lib/dropdowns.js +++ b/lib/dropdowns.js @@ -7,6 +7,9 @@ const { listPage } = require('./api') // page 0, then 1, 2, … as the user scrolls ("load more"); API v2 lists page by // cursor, so each page's `next_cursor` is kept with z.cursor for the next one. // Stops at 1,000 items. +/** + * @param {(bundle: any) => object} [paramsFrom] the list's query parameters + */ function pagedDropdown(path, toChoice, paramsFrom = () => ({})) { return async (z, bundle) => { const page = (bundle.meta && bundle.meta.page) || 0 @@ -19,8 +22,11 @@ function pagedDropdown(path, toChoice, paramsFrom = () => ({})) { if (!cursor) return [] } - const params = { ...paramsFrom(bundle), limit: PAGE_SIZE } - if (cursor) params.cursor = cursor + const params = { + ...paramsFrom(bundle), + limit: PAGE_SIZE, + ...(cursor ? { cursor } : {}), + } const { items, nextCursor } = await listPage(z, path, params) await z.cursor.set(nextCursor || '') return items.map(toChoice) diff --git a/lib/errors.js b/lib/errors.js index 83d300b..f00c3b2 100644 --- a/lib/errors.js +++ b/lib/errors.js @@ -28,7 +28,7 @@ function responseBody(response) { if (response.data !== undefined) return response.data try { return JSON.parse(response.content) - } catch (_e) { + } catch { // A raw response (no `content`) or a body that isn't JSON. return undefined } @@ -37,7 +37,7 @@ function responseBody(response) { function responseText(response) { try { return String(response.content || '').trim() - } catch (_e) { + } catch { return '' } } @@ -60,9 +60,7 @@ function inMessage(detail, message) { if (!detail || typeof detail !== 'object' || detail.submission_id) return false if (typeof detail.message !== 'string' || !detail.message) return false const subject = - detail.pointer === '' - ? 'the request body' - : detail.pointer || detail.parameter || '' + detail.pointer === '' ? 'the request body' : detail.pointer || detail.parameter || '' return message.includes(`${subject} ${detail.message}`.trim()) } @@ -73,14 +71,12 @@ function detailLine(detail) { const where = detail.pointer || detail.parameter const message = detail.message || detail.code || JSON.stringify(detail) const line = where ? `${where}: ${message}` : message - return detail.submission_id - ? `${line} (Submission: ${detail.submission_id})` - : line + return detail.submission_id ? `${line} (Submission: ${detail.submission_id})` : line } function recordLines(error) { return ERROR_RECORD_IDS.filter(([key]) => error[key]).map( - ([key, label]) => `${label}: ${error[key]}` + ([key, label]) => `${label}: ${error[key]}`, ) } @@ -105,9 +101,7 @@ function formatApiError(response) { } } - const lines = [ - `DocSpring API error ${response.status} ${error.code}: ${error.message}`, - ] + const lines = [`DocSpring API error ${response.status} ${error.code}: ${error.message}`] ;(Array.isArray(error.details) ? error.details : []) .filter((detail) => !inMessage(detail, error.message)) .forEach((detail) => lines.push(detailLine(detail))) @@ -132,7 +126,7 @@ function throwForApiError(response, z, bundle) { "This DocSpring server doesn't have API v2 yet. Upgrade it to the latest release, " + `or use version ${PREVIOUS_VERSION} of this integration.`, 'ApiV2Missing', - 404 + 404, ) } @@ -140,7 +134,7 @@ function throwForApiError(response, z, bundle) { throw new z.errors.Error( formatApiError(response), (error && error.code) || 'DocSpringApiError', - response.status + response.status, ) } diff --git a/lib/hooks.js b/lib/hooks.js index 077dcf7..1f9bec9 100644 --- a/lib/hooks.js +++ b/lib/hooks.js @@ -6,10 +6,7 @@ const { eventFromDelivery } = require('./payload') const { asArray, compact, seg, text } = require('./util') const { isSignedBy, signatureHeader } = require('./signatures') const { triggerOutputFields, triggerSample } = require('./resources') -const { - TEMPLATE_FILTERABLE, - TEMPLATE_FILTERABLE_TEXT, -} = require('./scopeFields') +const { TEMPLATE_FILTERABLE, TEMPLATE_FILTERABLE_TEXT } = require('./scopeFields') // Subscribe: create a webhook with API v2 (always a version 4 webhook) for // this one event. The body is flat and has no `version`; empty filters are @@ -21,14 +18,11 @@ const subscribe = (eventType) => async (z, bundle) => { const folderIds = asArray(input.folder_ids) // Only the triggers for these events offer Templates, but check anyway: // API v2 refuses to create a webhook whose filters can't match its events. - if ( - templateIds.length && - !TEMPLATE_FILTERABLE.includes(eventType.split('.')[0]) - ) { + if (templateIds.length && !TEMPLATE_FILTERABLE.includes(eventType.split('.')[0])) { throw new z.errors.Error( `Templates can only filter ${TEMPLATE_FILTERABLE_TEXT}, not ${eventType}. Remove the templates.`, 'InvalidInput', - 400 + 400, ) } const body = compact({ @@ -76,14 +70,14 @@ const perform = async (z, bundle) => { const raw = bundle.rawRequest || {} if (!isSignedBy(secret, signatureHeader(raw.headers), raw.content)) { z.console.log( - "Dropped a webhook delivery: its X-DocSpring-Signature header is missing or doesn't match its body." + "Dropped a webhook delivery: its X-DocSpring-Signature header is missing or doesn't match its body.", ) return [] } let event try { event = JSON.parse(raw.content) - } catch (_e) { + } catch { z.console.log("Dropped a webhook delivery: its body isn't JSON.") return [] } diff --git a/lib/middleware.js b/lib/middleware.js index ce4c277..58acede 100644 --- a/lib/middleware.js +++ b/lib/middleware.js @@ -7,7 +7,7 @@ const { throwForApiError } = require('./errors') function originOf(url) { try { return new URL(url).origin - } catch (_e) { + } catch { return undefined } } @@ -19,9 +19,7 @@ function originOf(url) { function isDocSpringUrl(url, bundle) { const origin = originOf(url) if (!origin) return false - return [resolveBaseUrl(bundle), resolveSyncBaseUrl(bundle)] - .map(originOf) - .includes(origin) + return [resolveBaseUrl(bundle), resolveSyncBaseUrl(bundle)].map(originOf).includes(origin) } // Set a header, replacing any other spelling of it (the platform has already @@ -49,9 +47,9 @@ const addBaseUrlAndAuth = (request, z, bundle) => { request.headers = request.headers || {} if (authData.token_id) { - const basic = Buffer.from( - `${authData.token_id}:${authData.token_secret || ''}` - ).toString('base64') + const basic = Buffer.from(`${authData.token_id}:${authData.token_secret || ''}`).toString( + 'base64', + ) request.headers.Authorization = `Basic ${basic}` } @@ -59,8 +57,7 @@ const addBaseUrlAndAuth = (request, z, bundle) => { setHeader(request.headers, 'Accept', 'application/json') // API v2 takes only JSON bodies (anything else is a 415). One header, not // the platform's `application/json; charset=utf-8` as well as ours. - if (request.body) - setHeader(request.headers, 'Content-Type', 'application/json') + if (request.body) setHeader(request.headers, 'Content-Type', 'application/json') return request } diff --git a/lib/payload.js b/lib/payload.js index 550498b..003ac1a 100644 --- a/lib/payload.js +++ b/lib/payload.js @@ -17,8 +17,7 @@ function eventFromDelivery(body) { const data = event.data return { ...event, - resource_type: - typeof eventType === 'string' ? eventType.split('.')[0] : null, + resource_type: typeof eventType === 'string' ? eventType.split('.')[0] : null, resource_id: data && data.id != null ? data.id : null, } } diff --git a/lib/performLists.js b/lib/performLists.js index 9676db4..3ffda48 100644 --- a/lib/performLists.js +++ b/lib/performLists.js @@ -17,8 +17,8 @@ function toEvents(resourceType, eventType, items) { eventType, record, `sample:${eventType}:${record.id}`, - record.updated_at || record.created_at || null - ) + record.updated_at || record.created_at || null, + ), ) } @@ -31,14 +31,9 @@ const listSubmissions = (eventType) => async (z, bundle) => { compact({ limit: RECENT_LIMIT, include_data: true, - test: - input.mode === 'test' - ? true - : input.mode === 'live' - ? false - : undefined, + test: input.mode === 'test' ? true : input.mode === 'live' ? false : undefined, template_id: templateIds.length === 1 ? templateIds[0] : undefined, - }) + }), ) return toEvents('submission', eventType, items) } diff --git a/lib/records.js b/lib/records.js index cfee052..46ae5d8 100644 --- a/lib/records.js +++ b/lib/records.js @@ -19,24 +19,17 @@ function withMessage(summary, message) { } function anyFilePending(files) { - return Object.values(files || {}).some( - (file) => file && file.state === 'pending' - ) + return Object.values(files || {}).some((file) => file && file.state === 'pending') } const SUBMISSION = { idKey: 'submission_id', path: (record) => apiPath('submissions', seg(record.id)), - isPending: (s) => - s.state === 'pending' || - (s.state === 'processed' && anyFilePending(s.files)), + isPending: (s) => s.state === 'pending' || (s.state === 'processed' && anyFilePending(s.files)), throwIfFailed: (z, s) => { if (['processed', 'pending'].includes(s.state)) return s throw failure(z, [ - withMessage( - `The PDF couldn't be generated (state: ${s.state})`, - s.error_message - ), + withMessage(`The PDF couldn't be generated (state: ${s.state})`, s.error_message), ...(Array.isArray(s.data_errors) ? s.data_errors.map(detailLine) : []), `Submission: ${s.id}`, ]) @@ -51,15 +44,15 @@ const SUBMISSION_FILES = { isPending: (s) => anyFilePending(s.files), throwIfFailed: (z, s) => { const failed = Object.keys(s.files || {}).filter( - (format) => s.files[format] && s.files[format].state === 'error' + (format) => s.files[format] && s.files[format].state === 'error', ) if (failed.length === 0) return s throw failure(z, [ ...failed.map((format) => withMessage( `The ${format} files couldn't be made (state: error)`, - s.files[format].error_message - ) + s.files[format].error_message, + ), ), `Submission: ${s.id}`, ]) @@ -71,13 +64,10 @@ const SUBMISSION_BATCH = { path: (record) => apiPath('submissions', 'batches', seg(record.id)), // A batch is `error` as soon as one submission fails, while others can // still be pending: it has finished once `processed_at` is set. - isPending: (b) => - b.state === 'pending' || (b.state === 'error' && !b.processed_at), + isPending: (b) => b.state === 'pending' || (b.state === 'error' && !b.processed_at), throwIfFailed: (z, b) => { if (b.state !== 'error') return b - const failed = (b.submissions || []).filter( - (s) => !['processed', 'pending'].includes(s.state) - ) + const failed = (b.submissions || []).filter((s) => !['processed', 'pending'].includes(s.state)) throw failure(z, [ `Some submissions in the batch couldn't be processed (state: error): ${b.error_count} of ${b.total_count} failed.`, ...failed.map((s) => withMessage(`${s.id}: ${s.state}`, s.error_message)), @@ -93,10 +83,7 @@ const COMBINED_PDF = { throwIfFailed: (z, c) => { if (['processed', 'pending'].includes(c.state)) return c throw failure(z, [ - withMessage( - `The PDFs couldn't be combined (state: ${c.state})`, - c.error_message - ), + withMessage(`The PDFs couldn't be combined (state: ${c.state})`, c.error_message), `Combined PDF: ${c.id}`, ]) }, @@ -106,20 +93,16 @@ const TEMPLATE_DOCUMENT_WAITING = ['pending', 'downloading'] const TEMPLATE = { idKey: 'template_id', path: (record) => apiPath('templates', seg(record.id)), - isPending: (t) => - !!t.document && TEMPLATE_DOCUMENT_WAITING.includes(t.document.state), + isPending: (t) => !!t.document && TEMPLATE_DOCUMENT_WAITING.includes(t.document.state), throwIfFailed: (z, t) => { const doc = t.document - if ( - !doc || - ['processed', ...TEMPLATE_DOCUMENT_WAITING].includes(doc.state) - ) { + if (!doc || ['processed', ...TEMPLATE_DOCUMENT_WAITING].includes(doc.state)) { return t } throw failure(z, [ withMessage( `The template's PDF couldn't be processed (state: ${doc.state})`, - doc.error_message + doc.error_message, ), `Template: ${t.id}`, ]) @@ -135,7 +118,7 @@ const TEMPLATE = { async function createAndWait( z, bundle, - { kind, method = 'POST', path, params, body, wait, startedAt = clock.now() } + { kind, method = 'POST', path, params = undefined, body, wait, startedAt = clock.now() }, ) { // With the time already spent, Zapier could stop the step after the record // is made but before its ID comes back: better not to make it. @@ -143,13 +126,13 @@ async function createAndWait( throw new z.errors.Error( 'The PDF File took too long to download, so nothing was created. Run the step again, or use PDF URL.', 'Timeout', - 504 + 504, ) } const response = await apiRequest(z, { url: syncUrl(bundle, path), method, - params: compact({ ...(params || {}), wait: false }), + params: compact({ ...params, wait: false }), body, }) let record = response.data diff --git a/lib/regions.js b/lib/regions.js index c8017a0..006419b 100644 --- a/lib/regions.js +++ b/lib/regions.js @@ -26,23 +26,18 @@ const REGION_CHOICES = [ ] function regionKey(bundle) { - return ( - (bundle && bundle.authData && bundle.authData.region) || - 'us' - ).toLowerCase() + return ((bundle && bundle.authData && bundle.authData.region) || 'us').toLowerCase() } // Origin for a self-hosted install. Throws a clear error (rather than silently // defaulting to the US host) if the custom host is missing — see CLAUDE.md's // "crash fast" rule for dev/test tooling. function selfHostedOrigin(bundle) { - const origin = normalizeHost( - bundle && bundle.authData && bundle.authData.custom_host - ) + const origin = normalizeHost(bundle && bundle.authData && bundle.authData.custom_host) if (!origin) { throw new Error( 'A custom host is required for the Self-hosted region. ' + - 'Enter your DocSpring domain (e.g. docspring.example.com) in the connection settings.' + 'Enter your DocSpring domain (e.g. docspring.example.com) in the connection settings.', ) } return origin diff --git a/lib/resources/combinedPdf.js b/lib/resources/combinedPdf.js index 0794767..5e2e202 100644 --- a/lib/resources/combinedPdf.js +++ b/lib/resources/combinedPdf.js @@ -1,6 +1,6 @@ 'use strict' -const { generatedFileFields, generatedFileSample } = require('./files') +const { generatedFileFields, generatedFileSample, processedRecordFields } = require('./files') // A combined PDF, as API v2 returns it (`CombinedPdf`). const ID = 'com_1234567890abcdef01' @@ -21,11 +21,7 @@ module.exports = { label: 'Delete Custom Files', type: 'boolean', }, - { key: 'expired', label: 'Expired', type: 'boolean' }, - { key: 'expires_at', label: 'Expires At', type: 'datetime' }, - { key: 'processed_at', label: 'Processed At', type: 'datetime' }, - { key: 'created_at', label: 'Created At', type: 'datetime' }, - { key: 'updated_at', label: 'Updated At', type: 'datetime' }, + ...processedRecordFields, ], sample: { id: ID, diff --git a/lib/resources/files.js b/lib/resources/files.js index a9250d5..a821468 100644 --- a/lib/resources/files.js +++ b/lib/resources/files.js @@ -42,4 +42,14 @@ function generatedFileSample(id, kind, filename) { } } -module.exports = { generatedFileFields, generatedFileSample } +// The output fields a submission and a combined PDF share after their files: when they expire and their +// timestamps. +const processedRecordFields = [ + { key: 'expired', label: 'Expired', type: 'boolean' }, + { key: 'expires_at', label: 'Expires At', type: 'datetime' }, + { key: 'processed_at', label: 'Processed At', type: 'datetime' }, + { key: 'created_at', label: 'Created At', type: 'datetime' }, + { key: 'updated_at', label: 'Updated At', type: 'datetime' }, +] + +module.exports = { generatedFileFields, generatedFileSample, processedRecordFields } diff --git a/lib/resources/index.js b/lib/resources/index.js index c097ed1..5200edb 100644 --- a/lib/resources/index.js +++ b/lib/resources/index.js @@ -42,7 +42,7 @@ function triggerOutputFields(resourceType) { ...field, key: `data__${field.key}`, label: field.key === 'id' ? field.label : `${noun}: ${field.label}`, - })) + })), ) } @@ -64,7 +64,7 @@ function triggerSample(resourceType, eventType) { eventType, resource(resourceType).sample, '6f1c2e8a-3b4d-4c5e-9f60-7a8b9c0d1e2f', - '2026-10-27T09:00:05Z' + '2026-10-27T09:00:05Z', ) } diff --git a/lib/resources/other.js b/lib/resources/other.js index 6169d9e..ccc94db 100644 --- a/lib/resources/other.js +++ b/lib/resources/other.js @@ -274,8 +274,7 @@ const submissionValidation = { template_version: null, error: { code: 'invalid_data', - message: - "The data doesn't match the template's fields: /data/last_name is required", + message: "The data doesn't match the template's fields: /data/last_name is required", details: [ { code: 'required', diff --git a/lib/resources/submission.js b/lib/resources/submission.js index 63ea568..db1b718 100644 --- a/lib/resources/submission.js +++ b/lib/resources/submission.js @@ -1,6 +1,6 @@ 'use strict' -const { generatedFileFields, generatedFileSample } = require('./files') +const { generatedFileFields, generatedFileSample, processedRecordFields } = require('./files') // A submission, as API v2 returns it (`Submission`). `data` and `metadata` are // freeform objects: they're in the sample so they can be mapped, but not @@ -50,11 +50,7 @@ module.exports = { label: 'Page Image Download URLs', type: 'string', }, - { key: 'expired', label: 'Expired', type: 'boolean' }, - { key: 'expires_at', label: 'Expires At', type: 'datetime' }, - { key: 'processed_at', label: 'Processed At', type: 'datetime' }, - { key: 'created_at', label: 'Created At', type: 'datetime' }, - { key: 'updated_at', label: 'Updated At', type: 'datetime' }, + ...processedRecordFields, ], sample: { id: ID, diff --git a/lib/resources/submissionBatch.js b/lib/resources/submissionBatch.js index 79fdcd6..d78f3ec 100644 --- a/lib/resources/submissionBatch.js +++ b/lib/resources/submissionBatch.js @@ -37,9 +37,7 @@ module.exports = { pending_count: 0, error_count: 0, completion_percentage: 100, - submissions: [ - { ...submission.sample, batch_id: 'sbb_1234567890abcdef01', data: null }, - ], + submissions: [{ ...submission.sample, batch_id: 'sbb_1234567890abcdef01', data: null }], processed_at: '2026-10-27T09:00:05Z', created_at: '2026-10-27T09:00:00Z', updated_at: '2026-10-27T09:00:05Z', diff --git a/lib/scopeFields.js b/lib/scopeFields.js index 3184c67..db6bcc5 100644 --- a/lib/scopeFields.js +++ b/lib/scopeFields.js @@ -15,8 +15,7 @@ // Webhook::TEMPLATE_SCOPABLE_RESOURCES; signature requests are // `submission_data_request` there). const TEMPLATE_FILTERABLE = ['submission', 'signature_request', 'template'] -const TEMPLATE_FILTERABLE_TEXT = - 'submission, signature request and template events' +const TEMPLATE_FILTERABLE_TEXT = 'submission, signature request and template events' const TEMPLATE_SCOPE = { key: 'template_ids', diff --git a/lib/signatures.js b/lib/signatures.js index 9130995..c3e4db3 100644 --- a/lib/signatures.js +++ b/lib/signatures.js @@ -45,17 +45,11 @@ function isSignedBy(secret, header, rawBody) { const { timestamp, signatures } = parseSignatureHeader(header) if (!timestamp || signatures.length === 0) return false const expected = Buffer.from( - crypto - .createHmac('sha256', secret) - .update(`${timestamp}.${rawBody}`, 'utf8') - .digest('hex') + crypto.createHmac('sha256', secret).update(`${timestamp}.${rawBody}`, 'utf8').digest('hex'), ) return signatures.some((signature) => { const given = Buffer.from(signature) - return ( - given.length === expected.length && - crypto.timingSafeEqual(given, expected) - ) + return given.length === expected.length && crypto.timingSafeEqual(given, expected) }) } diff --git a/lib/signerEmails.js b/lib/signerEmails.js index de31afd..317049c 100644 --- a/lib/signerEmails.js +++ b/lib/signerEmails.js @@ -65,7 +65,7 @@ const EMAIL_VARIABLES = [ ] const BRACKET_VARIABLE = new RegExp( `\\[\\[\\s*(${EMAIL_VARIABLES.map((v) => v.replace('.', '\\.')).join('|')})\\s*\\]\\]`, - 'g' + 'g', ) const VARIABLES_HELP = @@ -160,7 +160,7 @@ function emailMode(z, input) { throw new z.errors.Error( `Emails to Signers must be docspring or self, not "${mode}".`, 'InvalidInput', - 400 + 400, ) } return mode @@ -177,16 +177,8 @@ function emailSettings(z, input) { } if (mode === 'self') return compact(settings) - const intervalDays = toInteger( - z, - input.reminder_interval_days, - 'Days Between Reminders' - ) - const maxCount = toInteger( - z, - input.reminder_max_count, - 'Most Reminders per Person' - ) + const intervalDays = toInteger(z, input.reminder_interval_days, 'Days Between Reminders') + const maxCount = toInteger(z, input.reminder_max_count, 'Most Reminders per Person') const cc = splitNames(input.cc) const notificationEmails = splitNames(input.notification_emails) return compact({ @@ -200,14 +192,8 @@ function emailSettings(z, input) { ? undefined : compact({ interval_days: intervalDays, max_count: maxCount }), reply_to: text(input.reply_to), - notification_emails: notificationEmails.length - ? notificationEmails - : undefined, - notify_when_signed: toBoolean( - z, - input.notify_when_signed, - 'Notify When Each Person Signs?' - ), + notification_emails: notificationEmails.length ? notificationEmails : undefined, + notify_when_signed: toBoolean(z, input.notify_when_signed, 'Notify When Each Person Signs?'), }) } diff --git a/lib/submissionInputs.js b/lib/submissionInputs.js index 070e24a..bd2b000 100644 --- a/lib/submissionInputs.js +++ b/lib/submissionInputs.js @@ -1,13 +1,6 @@ 'use strict' -const { - asArray, - compact, - parseJson, - text, - toBoolean, - toInteger, -} = require('./util') +const { asArray, compact, parseJson, text, toBoolean, toInteger } = require('./util') const { dataFromInputs } = require('./templates') // Inputs shared by the operations that create submissions. diff --git a/lib/templates.js b/lib/templates.js index db1fb54..f932cfb 100644 --- a/lib/templates.js +++ b/lib/templates.js @@ -13,9 +13,7 @@ const { isBlank, parseJson, prettyLabel, seg, text } = require('./util') // back into a submission's `data`. function baseType(prop) { - return Array.isArray(prop.type) - ? prop.type.find((t) => t !== 'null') - : prop.type + return Array.isArray(prop.type) ? prop.type.find((t) => t !== 'null') : prop.type } // Image, signature and initials fields are a `oneOf` of {url}, {base64} (and @@ -23,9 +21,7 @@ function baseType(prop) { function isImageField(prop) { return ( Array.isArray(prop.oneOf) && - prop.oneOf.some( - (option) => option && option.properties && option.properties.url - ) + prop.oneOf.some((option) => option && option.properties && option.properties.url) ) } @@ -34,9 +30,7 @@ function isSignatureField(prop) { } function isScalarSchema(prop) { - return ['string', 'number', 'integer', 'boolean'].includes( - baseType(prop || {}) - ) + return ['string', 'number', 'integer', 'boolean'].includes(baseType(prop || {})) } function scalarFieldType(prop) { @@ -68,10 +62,7 @@ function withHelp(field, ...parts) { // Request, where the API or the signers check them) // skipSignatures: leave out signature and initials fields (only signers // can fill them in) -function jsonSchemaToZapierFields( - schema, - { optional = false, skipSignatures = false } = {} -) { +function jsonSchemaToZapierFields(schema, { optional = false, skipSignatures = false } = {}) { const safe = schema || {} const props = safe.properties || {} const required = new Set(safe.required || []) @@ -94,7 +85,7 @@ function jsonSchemaToZapierFields( required: isRequired, }, description, - 'The URL of the image. (Or JSON such as `{"base64": "..."}`.)' + 'The URL of the image. (Or JSON such as `{"base64": "..."}`.)', ) } @@ -108,7 +99,7 @@ function jsonSchemaToZapierFields( dict: true, required: isRequired, }, - description + description, ) } return withHelp( @@ -119,7 +110,7 @@ function jsonSchemaToZapierFields( required: isRequired, }, description, - 'JSON object.' + 'JSON object.', ) } @@ -134,7 +125,7 @@ function jsonSchemaToZapierFields( list: true, required: isRequired, }, - description + description, ) } return withHelp( @@ -145,7 +136,7 @@ function jsonSchemaToZapierFields( required: isRequired, }, description, - 'JSON list, such as `[{"name": "..."}]`.' + 'JSON list, such as `[{"name": "..."}]`.', ) } @@ -156,16 +147,12 @@ function jsonSchemaToZapierFields( required: isRequired, } if (Array.isArray(prop.enum)) { - field.choices = prop.enum - .filter((v) => v !== null) - .map((v) => String(v)) + field.choices = prop.enum.filter((v) => v !== null).map((v) => String(v)) } return withHelp( field, description, - prop.format === 'date' - ? 'A date as YYYY-MM-DD, such as 2026-10-27.' - : undefined + prop.format === 'date' ? 'A date as YYYY-MM-DD, such as 2026-10-27.' : undefined, ) }) } @@ -175,7 +162,7 @@ function jsonSchemaToZapierFields( // against the template); blanks are left out. A template field with a value // wins over the same key in Data (JSON). function dataFromInputs(z, input) { - const data = { ...(parseJson(z, input.json_data, 'Data (JSON)') || {}) } + const data = { ...parseJson(z, input.json_data, 'Data (JSON)') } Object.keys(input).forEach((key) => { const value = input[key] if (isBlank(value)) return @@ -183,8 +170,7 @@ function dataFromInputs(z, input) { data[key.slice(DATA_FIELD_PREFIX.length)] = value } else if (key.startsWith(DATA_JSON_FIELD_PREFIX)) { const name = key.slice(DATA_JSON_FIELD_PREFIX.length) - const parsed = - typeof value === 'string' ? parseAnyJson(z, value, name) : value + const parsed = typeof value === 'string' ? parseAnyJson(z, value, name) : value data[name] = parsed } else if (key.startsWith(DATA_IMAGE_FIELD_PREFIX)) { const name = key.slice(DATA_IMAGE_FIELD_PREFIX.length) @@ -199,11 +185,7 @@ function parseAnyJson(z, value, label) { try { return JSON.parse(value) } catch (e) { - throw new z.errors.Error( - `${label} must be valid JSON: ${e.message}`, - 'InvalidInput', - 400 - ) + throw new z.errors.Error(`${label} must be valid JSON: ${e.message}`, 'InvalidInput', 400) } } @@ -269,8 +251,7 @@ const pdfPassphraseInput = { label: 'Encrypt PDF With Passphrase', type: 'string', required: false, - helpText: - 'People need this passphrase to open the PDF. DocSpring never returns it.', + helpText: 'People need this passphrase to open the PDF. DocSpring never returns it.', } const expiresInInput = { diff --git a/lib/util.js b/lib/util.js index f8edda7..9ec879a 100644 --- a/lib/util.js +++ b/lib/util.js @@ -50,11 +50,7 @@ function toBoolean(z, value, label) { const word = String(value).trim().toLowerCase() if (TRUE_WORDS.includes(word)) return true if (FALSE_WORDS.includes(word)) return false - throw new z.errors.Error( - `${label} must be true or false, not "${value}".`, - 'InvalidInput', - 400 - ) + throw new z.errors.Error(`${label} must be true or false, not "${value}".`, 'InvalidInput', 400) } // A real integer from a Zapier integer input. Blank is undefined. @@ -63,11 +59,7 @@ function toInteger(z, value, label) { if (typeof value === 'number' && Number.isInteger(value)) return value const text = String(value).trim() if (/^-?\d+$/.test(text)) return parseInt(text, 10) - throw new z.errors.Error( - `${label} must be a whole number, not "${value}".`, - 'InvalidInput', - 400 - ) + throw new z.errors.Error(`${label} must be a whole number, not "${value}".`, 'InvalidInput', 400) } // A JSON value from a `dict` input (already an object) or a text/code input @@ -79,23 +71,16 @@ function parseJson(z, value, label, kind = 'object') { try { parsed = JSON.parse(value) } catch (e) { - throw new z.errors.Error( - `${label} must be valid JSON: ${e.message}`, - 'InvalidInput', - 400 - ) + throw new z.errors.Error(`${label} must be valid JSON: ${e.message}`, 'InvalidInput', 400) } } const isArray = Array.isArray(parsed) - const ok = - kind === 'array' - ? isArray - : parsed !== null && typeof parsed === 'object' && !isArray + const ok = kind === 'array' ? isArray : parsed !== null && typeof parsed === 'object' && !isArray if (!ok) { throw new z.errors.Error( `${label} must be a JSON ${kind === 'array' ? 'list ([...])' : 'object ({...})'}.`, 'InvalidInput', - 400 + 400, ) } return parsed @@ -150,7 +135,7 @@ function prettyLabel(name) { const HOST_LABEL = '[a-z0-9](?:[a-z0-9-]{0,61}[a-z0-9])?' const SELF_HOSTED_HOST_RE = new RegExp( '^(?:https?://)?' + HOST_LABEL + '(?:\\.' + HOST_LABEL + ')*(?::\\d{1,5})?$', - 'i' + 'i', ) // Normalize a self-hosted host string into an origin (scheme + host[:port], no @@ -165,7 +150,7 @@ function normalizeHost(host) { if (!SELF_HOSTED_HOST_RE.test(value)) { throw new Error( `Invalid self-hosted host "${value}". Enter only your DocSpring domain, ` + - 'e.g. docspring.example.com or http://localhost:3000 (no path, query string, or credentials).' + 'e.g. docspring.example.com or http://localhost:3000 (no path, query string, or credentials).', ) } if (!/^https?:\/\//i.test(value)) { diff --git a/lib/wait.js b/lib/wait.js index 4a27928..41f3f32 100644 --- a/lib/wait.js +++ b/lib/wait.js @@ -92,18 +92,13 @@ async function waitForRecord(z, { url, isPending, startedAt, idKey, id }) { } } if (response.status === 429 || response.status >= 500) { - throw notReadyError( - z, - idKey, - id, - `Checking it failed: ${formatApiError(response)}` - ) + throw notReadyError(z, idKey, id, `Checking it failed: ${formatApiError(response)}`) } if (response.status >= 400) { throw new z.errors.Error( `${formatApiError(response)}\n${NOT_READY[idKey](id)}`, 'DocSpringApiError', - response.status + response.status, ) } if (!isPending(response.data)) return response.data diff --git a/mise.toml b/mise.toml new file mode 100644 index 0000000..f8cd2a8 --- /dev/null +++ b/mise.toml @@ -0,0 +1,14 @@ +# Tool versions for the hooks and CI, each at least 7 days old when pinned. `mise run ci` runs what CI runs. +[tools] +# Zapier runs integrations on Node 22. +node = "22.23.5" +actionlint = "1.7.12" +betterleaks = "1.10.1" +lefthook = "2.2.4" +pinact = "5.0.2" +typos = "1.52.2" +zizmor = "1.33.1" + +[tasks.ci] +description = "Everything CI checks, in the order CI runs it" +run = "scripts/ci.sh" diff --git a/package-lock.json b/package-lock.json index 0ef42bf..e455312 100644 --- a/package-lock.json +++ b/package-lock.json @@ -8,11 +8,18 @@ "name": "docspring-zapier", "version": "2.1.2", "dependencies": { - "zapier-platform-core": "19.1.0" + "zapier-platform-core": "19.3.0" }, "devDependencies": { - "jest": "^29.6.0", - "nock": "^13.5.4" + "@types/jest": "30.0.0", + "@types/node": "22.20.7", + "jest": "30.5.2", + "jscpd": "5.4.3", + "knip": "6.49.0", + "nock": "^13.5.4", + "oxfmt": "0.80.0", + "oxlint": "1.95.0", + "typescript": "7.0.2" }, "engines": { "node": ">=22", @@ -45,21 +52,21 @@ } }, "node_modules/@babel/core": { - "version": "7.29.7", - "resolved": "https://registry.npmjs.org/@babel/core/-/core-7.29.7.tgz", - "integrity": "sha512-RgHBCvtjbOK2gXSNBNIkNoEc9qoVEtau3hj8gEqKQuL3HZAibKarWFEI3Lfm6EYKkLalOh8eSrj9b+ch9H/VBA==", + "version": "7.29.16", + "resolved": "https://registry.npmjs.org/@babel/core/-/core-7.29.16.tgz", + "integrity": "sha512-qK40pOeReBJY7B0JX6CCIfauMLAa0IlvuVYJ+aZBYLVJwmNUTvsQcEu0En9hVMmNjeSUSQYwvpi1JgXn5imIQw==", "dev": true, "license": "MIT", "dependencies": { "@babel/code-frame": "^7.29.7", - "@babel/generator": "^7.29.7", - "@babel/helper-compilation-targets": "^7.29.7", - "@babel/helper-module-transforms": "^7.29.7", - "@babel/helpers": "^7.29.7", - "@babel/parser": "^7.29.7", + "@babel/generator": "^7.29.16", + "@babel/helper-compilation-targets": "^7.29.13", + "@babel/helper-module-transforms": "^7.29.16", + "@babel/helpers": "^7.29.16", + "@babel/parser": "^7.29.15", "@babel/template": "^7.29.7", - "@babel/traverse": "^7.29.7", - "@babel/types": "^7.29.7", + "@babel/traverse": "^7.29.16", + "@babel/types": "^7.29.15", "@jridgewell/remapping": "^2.3.5", "convert-source-map": "^2.0.0", "debug": "^4.1.0", @@ -76,14 +83,14 @@ } }, "node_modules/@babel/generator": { - "version": "7.29.7", - "resolved": "https://registry.npmjs.org/@babel/generator/-/generator-7.29.7.tgz", - "integrity": "sha512-DkXD5OJQaAQIdZ1bt3UZdEnHAn9Imd3IVBdX03UFe+ony9Ojw5pzr9YVKGDY1jt+Gcn/FnGkNf8r+Vj5NOJWtQ==", + "version": "7.29.16", + "resolved": "https://registry.npmjs.org/@babel/generator/-/generator-7.29.16.tgz", + "integrity": "sha512-yRtddtrcYdLJt0l70aP7usb2YpMHNXAdAvJW2hXdka5boR4vKMS/F5BTR5sULkbht9xPk/EKzbY2mCczMutZqQ==", "dev": true, "license": "MIT", "dependencies": { - "@babel/parser": "^7.29.7", - "@babel/types": "^7.29.7", + "@babel/parser": "^7.29.15", + "@babel/types": "^7.29.15", "@jridgewell/gen-mapping": "^0.3.12", "@jridgewell/trace-mapping": "^0.3.28", "jsesc": "^3.0.2" @@ -93,9 +100,9 @@ } }, "node_modules/@babel/helper-compilation-targets": { - "version": "7.29.7", - "resolved": "https://registry.npmjs.org/@babel/helper-compilation-targets/-/helper-compilation-targets-7.29.7.tgz", - "integrity": "sha512-wem6WaBj4NaVYVdNhLPPVacES6ZJ+KBBfSkTMD3YZxbP3rm3Di85tJU5ljaUNhaOynt+Aj0xruhYuzQBt8n71g==", + "version": "7.29.13", + "resolved": "https://registry.npmjs.org/@babel/helper-compilation-targets/-/helper-compilation-targets-7.29.13.tgz", + "integrity": "sha512-8WxJ4/Vmes3ghacj8VOJy3NW8eyHiFY/4thU/LSBuBE470+igjR/j1ZTNn8fV5VdNrLx6iXUwig526UdOvfP0w==", "dev": true, "license": "MIT", "dependencies": { @@ -134,15 +141,15 @@ } }, "node_modules/@babel/helper-module-transforms": { - "version": "7.29.7", - "resolved": "https://registry.npmjs.org/@babel/helper-module-transforms/-/helper-module-transforms-7.29.7.tgz", - "integrity": "sha512-UPUVSyXbOh627KiCIGQSgwWzGeBKLkaJ9PJEdrngIwMSzxLR4jS4+f1f1jb7VzBbg8nFLaYotvVPFCTqdrmTAg==", + "version": "7.29.16", + "resolved": "https://registry.npmjs.org/@babel/helper-module-transforms/-/helper-module-transforms-7.29.16.tgz", + "integrity": "sha512-jzdW9nRNJXbNAfcbtfZA75vcQK8c/PRniwNL1KIQukiptryb5JlCl+nwi3idOSj611tMgiZxb9PuKg1FI0BvVQ==", "dev": true, "license": "MIT", "dependencies": { "@babel/helper-module-imports": "^7.29.7", "@babel/helper-validator-identifier": "^7.29.7", - "@babel/traverse": "^7.29.7" + "@babel/traverse": "^7.29.16" }, "engines": { "node": ">=6.9.0" @@ -162,9 +169,9 @@ } }, "node_modules/@babel/helper-string-parser": { - "version": "7.29.7", - "resolved": "https://registry.npmjs.org/@babel/helper-string-parser/-/helper-string-parser-7.29.7.tgz", - "integrity": "sha512-Pb5ijPrZ89GDH8223L4UP8i6QApWxs04RbPQJTeWDV0/keR2E36MeKnyr6LYmUUvqRRI+Iv87SuF1W6ErINzYw==", + "version": "7.29.15", + "resolved": "https://registry.npmjs.org/@babel/helper-string-parser/-/helper-string-parser-7.29.15.tgz", + "integrity": "sha512-C2FuapQ2Kh1OnVHAoLi5rD3GBJ8COb9Q609T6HEpLqaBAo560PDP5OxBE5dCI/h951MBO/+bCUYU5SZ+8ZlV+w==", "dev": true, "license": "MIT", "engines": { @@ -192,27 +199,27 @@ } }, "node_modules/@babel/helpers": { - "version": "7.29.7", - "resolved": "https://registry.npmjs.org/@babel/helpers/-/helpers-7.29.7.tgz", - "integrity": "sha512-1k2lAGRMfHTcwuNYcCNUmaUffmQv8KWMfh2iJUUeRlwlwH4FdNG7mfPI10NPfLHJFThE4Tyr4mv7kTNZOiPuBg==", + "version": "7.29.16", + "resolved": "https://registry.npmjs.org/@babel/helpers/-/helpers-7.29.16.tgz", + "integrity": "sha512-JGNbyEyvOAvceLDQoO6b/w/HbW6KX3sdWgrPCFcAyHfhfsqRoRN14vfaG3GZ90g2dVK7UEe65giopuldeimBjg==", "dev": true, "license": "MIT", "dependencies": { "@babel/template": "^7.29.7", - "@babel/types": "^7.29.7" + "@babel/types": "^7.29.15" }, "engines": { "node": ">=6.9.0" } }, "node_modules/@babel/parser": { - "version": "7.29.7", - "resolved": "https://registry.npmjs.org/@babel/parser/-/parser-7.29.7.tgz", - "integrity": "sha512-hnORnjP/1P/zFEndoeX+n+t1RwWRJiJpM/jO7FW32Kn9r5+sJB2JWOdYo4L6k78j15eCwY3Gm/7364B1EMwtNg==", + "version": "7.29.15", + "resolved": "https://registry.npmjs.org/@babel/parser/-/parser-7.29.15.tgz", + "integrity": "sha512-RpKWyisHoP81twtSCgmE02iU0RnPcq1DN5bBEbpUePrjA9Q3wXhufnCJrrayPpoZieqFh3zyZQqwtSK0gGccRA==", "dev": true, "license": "MIT", "dependencies": { - "@babel/types": "^7.29.7" + "@babel/types": "^7.29.15" }, "bin": { "parser": "bin/babel-parser.js" @@ -485,18 +492,18 @@ } }, "node_modules/@babel/traverse": { - "version": "7.29.7", - "resolved": "https://registry.npmjs.org/@babel/traverse/-/traverse-7.29.7.tgz", - "integrity": "sha512-EhlfNQtZ+NK22w5BM61ciuiq1m58ed33Wr1Xan//ZRTy6hgjnwyCffRYwzsGXdASJSUJ1guZILsErh1eQcl+zw==", + "version": "7.29.16", + "resolved": "https://registry.npmjs.org/@babel/traverse/-/traverse-7.29.16.tgz", + "integrity": "sha512-a16ah9dTLOLUq5BL7NElJ7keefg/276vgfTfExDf1PizddYboqRnQXDTooVPb0VArIqrKe8KLlghnTxlZFEZtQ==", "dev": true, "license": "MIT", "dependencies": { "@babel/code-frame": "^7.29.7", - "@babel/generator": "^7.29.7", + "@babel/generator": "^7.29.16", "@babel/helper-globals": "^7.29.7", - "@babel/parser": "^7.29.7", + "@babel/parser": "^7.29.15", "@babel/template": "^7.29.7", - "@babel/types": "^7.29.7", + "@babel/types": "^7.29.15", "debug": "^4.3.1" }, "engines": { @@ -504,13 +511,13 @@ } }, "node_modules/@babel/types": { - "version": "7.29.7", - "resolved": "https://registry.npmjs.org/@babel/types/-/types-7.29.7.tgz", - "integrity": "sha512-4zBIxpPzowiZpusoFkyGVwakdRJUyuH5PxQ/PrqghfdFWWasvnCdPfQXHrenDai+gyLARulZjZowCOj6fjT4pA==", + "version": "7.29.15", + "resolved": "https://registry.npmjs.org/@babel/types/-/types-7.29.15.tgz", + "integrity": "sha512-/XKpKDakL//LZ66bq1XsZOswuqeI5MZqPLDu18o3XdkU1fNJ7bdPtzgnc4ZNS+bBGHV0FJG8jjb8SwcC3nNVQQ==", "dev": true, "license": "MIT", "dependencies": { - "@babel/helper-string-parser": "^7.29.7", + "@babel/helper-string-parser": "^7.29.15", "@babel/helper-validator-identifier": "^7.29.7" }, "engines": { @@ -524,6 +531,143 @@ "dev": true, "license": "MIT" }, + "node_modules/@emnapi/core": { + "version": "1.11.2", + "resolved": "https://registry.npmjs.org/@emnapi/core/-/core-1.11.2.tgz", + "integrity": "sha512-TC8MkTuZUtcTSiFeuC0ksCh9QIJ5+F21MvZ4Wn4ORfYaFJ/0dsiudv5tVkejgwZlwQ39jL9WWDe2lz8x0WglOA==", + "dev": true, + "license": "MIT", + "optional": true, + "dependencies": { + "@emnapi/wasi-threads": "1.2.2", + "tslib": "^2.4.0" + } + }, + "node_modules/@emnapi/runtime": { + "version": "1.11.2", + "resolved": "https://registry.npmjs.org/@emnapi/runtime/-/runtime-1.11.2.tgz", + "integrity": "sha512-kyOl3X0DuTiT1h2ft8r2fYO8JYtU9a9Xis/zBSiGArNaagCOWx90N1k2wxp18czFDH+OgcWGb5ZP/XMt3dcyPA==", + "dev": true, + "license": "MIT", + "optional": true, + "dependencies": { + "tslib": "^2.4.0" + } + }, + "node_modules/@emnapi/wasi-threads": { + "version": "1.2.2", + "resolved": "https://registry.npmjs.org/@emnapi/wasi-threads/-/wasi-threads-1.2.2.tgz", + "integrity": "sha512-c95qOXkHdydNKhscBTebqEC1CVAZpyqOfVfBzQ1qgzyl3gfeldUjIggDbIZgDKsHLgnsM+igH7TJ/eAasaVuMA==", + "dev": true, + "license": "MIT", + "optional": true, + "dependencies": { + "tslib": "^2.4.0" + } + }, + "node_modules/@isaacs/cliui": { + "version": "8.0.2", + "resolved": "https://registry.npmjs.org/@isaacs/cliui/-/cliui-8.0.2.tgz", + "integrity": "sha512-O8jcjabXaleOG9DQ0+ARXWZBTfnP4WNAqzuiJK7ll44AmxGKv/J2M4TPjxjY3znBCfvBXFzucm1twdyFybFqEA==", + "dev": true, + "license": "ISC", + "dependencies": { + "string-width": "^5.1.2", + "string-width-cjs": "npm:string-width@^4.2.0", + "strip-ansi": "^7.0.1", + "strip-ansi-cjs": "npm:strip-ansi@^6.0.1", + "wrap-ansi": "^8.1.0", + "wrap-ansi-cjs": "npm:wrap-ansi@^7.0.0" + }, + "engines": { + "node": ">=12" + } + }, + "node_modules/@isaacs/cliui/node_modules/ansi-regex": { + "version": "6.6.0", + "resolved": "https://registry.npmjs.org/ansi-regex/-/ansi-regex-6.6.0.tgz", + "integrity": "sha512-XZ5apbzreCbXSKwPjJstu8R0zOi247w3XYwWxtwBXgpZrCyc1Ka7p9/xY0A9/diMewmHbEKz+FIraWaEWjlN5g==", + "dev": true, + "license": "MIT", + "engines": { + "node": ">=12" + }, + "funding": { + "url": "https://github.com/chalk/ansi-regex?sponsor=1" + } + }, + "node_modules/@isaacs/cliui/node_modules/ansi-styles": { + "version": "6.2.3", + "resolved": "https://registry.npmjs.org/ansi-styles/-/ansi-styles-6.2.3.tgz", + "integrity": "sha512-4Dj6M28JB+oAH8kFkTLUo+a2jwOFkuqb3yucU0CANcRRUbxS0cP0nZYCGjcc3BNXwRIsUVmDGgzawme7zvJHvg==", + "dev": true, + "license": "MIT", + "engines": { + "node": ">=12" + }, + "funding": { + "url": "https://github.com/chalk/ansi-styles?sponsor=1" + } + }, + "node_modules/@isaacs/cliui/node_modules/emoji-regex": { + "version": "9.2.2", + "resolved": "https://registry.npmjs.org/emoji-regex/-/emoji-regex-9.2.2.tgz", + "integrity": "sha512-L18DaJsXSUk2+42pv8mLs5jJT2hqFkFE4j21wOmgbUqsZ2hL72NsUU785g9RXgo3s0ZNgVl42TiHp3ZtOv/Vyg==", + "dev": true, + "license": "MIT" + }, + "node_modules/@isaacs/cliui/node_modules/string-width": { + "version": "5.1.2", + "resolved": "https://registry.npmjs.org/string-width/-/string-width-5.1.2.tgz", + "integrity": "sha512-HnLOCR3vjcY8beoNLtcjZ5/nxn2afmME6lhrDrebokqMap+XbeW8n9TXpPDOqdGK5qcI3oT0GKTW6wC7EMiVqA==", + "dev": true, + "license": "MIT", + "dependencies": { + "eastasianwidth": "^0.2.0", + "emoji-regex": "^9.2.2", + "strip-ansi": "^7.0.1" + }, + "engines": { + "node": ">=12" + }, + "funding": { + "url": "https://github.com/sponsors/sindresorhus" + } + }, + "node_modules/@isaacs/cliui/node_modules/strip-ansi": { + "version": "7.2.0", + "resolved": "https://registry.npmjs.org/strip-ansi/-/strip-ansi-7.2.0.tgz", + "integrity": "sha512-yDPMNjp4WyfYBkHnjIRLfca1i6KMyGCtsVgoKe/z1+6vukgaENdgGBZt+ZmKPc4gavvEZ5OgHfHdrazhgNyG7w==", + "dev": true, + "license": "MIT", + "dependencies": { + "ansi-regex": "^6.2.2" + }, + "engines": { + "node": ">=12" + }, + "funding": { + "url": "https://github.com/chalk/strip-ansi?sponsor=1" + } + }, + "node_modules/@isaacs/cliui/node_modules/wrap-ansi": { + "version": "8.1.0", + "resolved": "https://registry.npmjs.org/wrap-ansi/-/wrap-ansi-8.1.0.tgz", + "integrity": "sha512-si7QWI6zUMq56bESFvagtmzMdGOtoxfR+Sez11Mobfc7tm+VkUckk9bW2UeffTGVUbOksxmSw0AA2gs8g71NCQ==", + "dev": true, + "license": "MIT", + "dependencies": { + "ansi-styles": "^6.1.0", + "string-width": "^5.0.1", + "strip-ansi": "^7.0.1" + }, + "engines": { + "node": ">=12" + }, + "funding": { + "url": "https://github.com/chalk/wrap-ansi?sponsor=1" + } + }, "node_modules/@istanbuljs/load-nyc-config": { "version": "1.1.0", "resolved": "https://registry.npmjs.org/@istanbuljs/load-nyc-config/-/load-nyc-config-1.1.0.tgz", @@ -552,61 +696,61 @@ } }, "node_modules/@jest/console": { - "version": "29.7.0", - "resolved": "https://registry.npmjs.org/@jest/console/-/console-29.7.0.tgz", - "integrity": "sha512-5Ni4CU7XHQi32IJ398EEP4RrB8eV09sXP2ROqD4bksHrnTree52PsxvX8tpL8LvTZ3pFzXyPbNQReSN41CAhOg==", + "version": "30.5.2", + "resolved": "https://registry.npmjs.org/@jest/console/-/console-30.5.2.tgz", + "integrity": "sha512-e8sQC4pCMHPBrPX7Hk8TJr+DM5dkUnImSTNag8SEWFAFAF6xIz4AJvCKapnrdHnZxep4bxw4PhG+ZbimYBMyKw==", "dev": true, "license": "MIT", "dependencies": { - "@jest/types": "^29.6.3", + "@jest/types": "30.5.1", "@types/node": "*", - "chalk": "^4.0.0", - "jest-message-util": "^29.7.0", - "jest-util": "^29.7.0", + "chalk": "^4.1.2", + "jest-message-util": "30.5.1", + "jest-util": "30.5.1", "slash": "^3.0.0" }, "engines": { - "node": "^14.15.0 || ^16.10.0 || >=18.0.0" + "node": "^18.14.0 || ^20.0.0 || ^22.0.0 || >=24.0.0" } }, "node_modules/@jest/core": { - "version": "29.7.0", - "resolved": "https://registry.npmjs.org/@jest/core/-/core-29.7.0.tgz", - "integrity": "sha512-n7aeXWKMnGtDA48y8TLWJPJmLmmZ642Ceo78cYWEpiD7FzDgmNDV/GCVRorPABdXLJZ/9wzzgZAlHjXjxDHGsg==", + "version": "30.5.2", + "resolved": "https://registry.npmjs.org/@jest/core/-/core-30.5.2.tgz", + "integrity": "sha512-/jqvFWoJF7LV1a6AUpYMbMm+2yIYsHJfR474H0SCzr9k8tnO/jl9wRg6zSG6lxgf6EozNlCG4amFzWsbZSvvZA==", "dev": true, "license": "MIT", "dependencies": { - "@jest/console": "^29.7.0", - "@jest/reporters": "^29.7.0", - "@jest/test-result": "^29.7.0", - "@jest/transform": "^29.7.0", - "@jest/types": "^29.6.3", + "@jest/console": "30.5.2", + "@jest/pattern": "30.5.0", + "@jest/reporters": "30.5.2", + "@jest/test-result": "30.5.2", + "@jest/transform": "30.5.2", + "@jest/types": "30.5.1", "@types/node": "*", - "ansi-escapes": "^4.2.1", - "chalk": "^4.0.0", - "ci-info": "^3.2.0", - "exit": "^0.1.2", - "graceful-fs": "^4.2.9", - "jest-changed-files": "^29.7.0", - "jest-config": "^29.7.0", - "jest-haste-map": "^29.7.0", - "jest-message-util": "^29.7.0", - "jest-regex-util": "^29.6.3", - "jest-resolve": "^29.7.0", - "jest-resolve-dependencies": "^29.7.0", - "jest-runner": "^29.7.0", - "jest-runtime": "^29.7.0", - "jest-snapshot": "^29.7.0", - "jest-util": "^29.7.0", - "jest-validate": "^29.7.0", - "jest-watcher": "^29.7.0", - "micromatch": "^4.0.4", - "pretty-format": "^29.7.0", - "slash": "^3.0.0", - "strip-ansi": "^6.0.0" + "ansi-escapes": "^4.3.2", + "chalk": "^4.1.2", + "ci-info": "^4.2.0", + "exit-x": "^0.2.2", + "fast-json-stable-stringify": "^2.1.0", + "graceful-fs": "^4.2.11", + "jest-changed-files": "30.5.1", + "jest-config": "30.5.2", + "jest-haste-map": "30.5.1", + "jest-message-util": "30.5.1", + "jest-regex-util": "30.5.0", + "jest-resolve": "30.5.1", + "jest-resolve-dependencies": "30.5.2", + "jest-runner": "30.5.2", + "jest-runtime": "30.5.2", + "jest-snapshot": "30.5.2", + "jest-util": "30.5.1", + "jest-validate": "30.5.1", + "jest-watcher": "30.5.2", + "pretty-format": "30.5.1", + "slash": "^3.0.0" }, "engines": { - "node": "^14.15.0 || ^16.10.0 || >=18.0.0" + "node": "^18.14.0 || ^20.0.0 || ^22.0.0 || >=24.0.0" }, "peerDependencies": { "node-notifier": "^8.0.1 || ^9.0.0 || ^10.0.0" @@ -617,117 +761,166 @@ } } }, + "node_modules/@jest/diff-sequences": { + "version": "30.5.0", + "resolved": "https://registry.npmjs.org/@jest/diff-sequences/-/diff-sequences-30.5.0.tgz", + "integrity": "sha512-OsqBjHXCn8cadasoAZBP6nWYvMsRhpMzGXTpxJ5aO04NlbdhIz+FVe3q49l0AwVhsz/cEmIpBes6gAFl1/dWQg==", + "dev": true, + "license": "MIT", + "engines": { + "node": "^18.14.0 || ^20.0.0 || ^22.0.0 || >=24.0.0" + } + }, "node_modules/@jest/environment": { - "version": "29.7.0", - "resolved": "https://registry.npmjs.org/@jest/environment/-/environment-29.7.0.tgz", - "integrity": "sha512-aQIfHDq33ExsN4jP1NWGXhxgQ/wixs60gDiKO+XVMd8Mn0NWPWgc34ZQDTb2jKaUWQ7MuwoitXAsN2XVXNMpAw==", + "version": "30.5.2", + "resolved": "https://registry.npmjs.org/@jest/environment/-/environment-30.5.2.tgz", + "integrity": "sha512-nwFPOUMbmsjNNRCpnJpB9HbSZu4C07wDDds++5j+j1MezzPLxMPDdbdUVjr2o4RULDOValnDd70taPFI1EtxAg==", "dev": true, "license": "MIT", "dependencies": { - "@jest/fake-timers": "^29.7.0", - "@jest/types": "^29.6.3", + "@jest/fake-timers": "30.5.2", + "@jest/types": "30.5.1", "@types/node": "*", - "jest-mock": "^29.7.0" + "jest-mock": "30.5.2" }, "engines": { - "node": "^14.15.0 || ^16.10.0 || >=18.0.0" + "node": "^18.14.0 || ^20.0.0 || ^22.0.0 || >=24.0.0" } }, "node_modules/@jest/expect": { - "version": "29.7.0", - "resolved": "https://registry.npmjs.org/@jest/expect/-/expect-29.7.0.tgz", - "integrity": "sha512-8uMeAMycttpva3P1lBHB8VciS9V0XAr3GymPpipdyQXbBcuhkLQOSe8E/p92RyAdToS6ZD1tFkX+CkhoECE0dQ==", + "version": "30.5.2", + "resolved": "https://registry.npmjs.org/@jest/expect/-/expect-30.5.2.tgz", + "integrity": "sha512-2E+1Pg6jJxbRjLNLpciC71iri/3qsKJL222/aXJEFwC0VdUSvfS+JZQQLEVjUYYc8t8pQu2MGE3cF2+bNTYRsg==", "dev": true, "license": "MIT", "dependencies": { - "expect": "^29.7.0", - "jest-snapshot": "^29.7.0" + "expect": "30.5.2", + "jest-snapshot": "30.5.2" }, "engines": { - "node": "^14.15.0 || ^16.10.0 || >=18.0.0" + "node": "^18.14.0 || ^20.0.0 || ^22.0.0 || >=24.0.0" } }, "node_modules/@jest/expect-utils": { - "version": "29.7.0", - "resolved": "https://registry.npmjs.org/@jest/expect-utils/-/expect-utils-29.7.0.tgz", - "integrity": "sha512-GlsNBWiFQFCVi9QVSx7f5AgMeLxe9YCCs5PuP2O2LdjDAA8Jh9eX7lA1Jq/xdXw3Wb3hyvlFNfZIfcRetSzYcA==", + "version": "30.5.2", + "resolved": "https://registry.npmjs.org/@jest/expect-utils/-/expect-utils-30.5.2.tgz", + "integrity": "sha512-d/HOLSrJUlBIl6n3LzOa7cjW3xdePm5H5gQw2lixZ/0h157l9sw3mLblzFqnPcTbhDzhRQdBOX3A3KcG73nm5Q==", "dev": true, "license": "MIT", "dependencies": { - "jest-get-type": "^29.6.3" + "@jest/get-type": "30.5.0" }, "engines": { - "node": "^14.15.0 || ^16.10.0 || >=18.0.0" + "node": "^18.14.0 || ^20.0.0 || ^22.0.0 || >=24.0.0" } }, "node_modules/@jest/fake-timers": { - "version": "29.7.0", - "resolved": "https://registry.npmjs.org/@jest/fake-timers/-/fake-timers-29.7.0.tgz", - "integrity": "sha512-q4DH1Ha4TTFPdxLsqDXK1d3+ioSL7yL5oCMJZgDYm6i+6CygW5E5xVr/D1HdsGxjt1ZWSfUAs9OxSB/BNelWrQ==", + "version": "30.5.2", + "resolved": "https://registry.npmjs.org/@jest/fake-timers/-/fake-timers-30.5.2.tgz", + "integrity": "sha512-GKk0h0tKT5SpDPxDhPg3r9mm5s8/YCBzVNMOGdRiQXwUiMsjU10mVPlMaQstH6/cu50vOb8N9oQUMETHuwwxKw==", "dev": true, "license": "MIT", "dependencies": { - "@jest/types": "^29.6.3", - "@sinonjs/fake-timers": "^10.0.2", + "@jest/types": "30.5.1", + "@sinonjs/fake-timers": "^15.4.0", "@types/node": "*", - "jest-message-util": "^29.7.0", - "jest-mock": "^29.7.0", - "jest-util": "^29.7.0" + "jest-message-util": "30.5.1", + "jest-mock": "30.5.2", + "jest-util": "30.5.1" }, "engines": { - "node": "^14.15.0 || ^16.10.0 || >=18.0.0" + "node": "^18.14.0 || ^20.0.0 || ^22.0.0 || >=24.0.0" + } + }, + "node_modules/@jest/get-type": { + "version": "30.5.0", + "resolved": "https://registry.npmjs.org/@jest/get-type/-/get-type-30.5.0.tgz", + "integrity": "sha512-9/2VUPitAjmBzbvDvqrxmvB7BzWsBW0WmkkojX1ODuxX1NLGxx9gfaZpHB0z8DtJ9uhGNmZG/VXBhf8uO0OV8Q==", + "dev": true, + "license": "MIT", + "engines": { + "node": "^18.14.0 || ^20.0.0 || ^22.0.0 || >=24.0.0" } }, "node_modules/@jest/globals": { - "version": "29.7.0", - "resolved": "https://registry.npmjs.org/@jest/globals/-/globals-29.7.0.tgz", - "integrity": "sha512-mpiz3dutLbkW2MNFubUGUEVLkTGiqW6yLVTA+JbP6fI6J5iL9Y0Nlg8k95pcF8ctKwCS7WVxteBs29hhfAotzQ==", + "version": "30.5.2", + "resolved": "https://registry.npmjs.org/@jest/globals/-/globals-30.5.2.tgz", + "integrity": "sha512-62zfS+dL+M5aTNHXCNLyqD+j4oqxTIzDYrZbpqMP8Yn+gvlAGyzC6BSPNb1ZmFOakV1RtFYX/O3FCQXSWmQdgg==", + "dev": true, + "license": "MIT", + "dependencies": { + "@jest/environment": "30.5.2", + "@jest/expect": "30.5.2", + "@jest/types": "30.5.1", + "jest-mock": "30.5.2" + }, + "engines": { + "node": "^18.14.0 || ^20.0.0 || ^22.0.0 || >=24.0.0" + } + }, + "node_modules/@jest/pattern": { + "version": "30.5.0", + "resolved": "https://registry.npmjs.org/@jest/pattern/-/pattern-30.5.0.tgz", + "integrity": "sha512-HdNQYSdRTEBNrginaqzQtTjG0HRMfrra/z6Ok7uL3S87vSlarIVohEsJsSj5edu3MiHoHjAkvPROz5ZjoKai+w==", "dev": true, "license": "MIT", "dependencies": { - "@jest/environment": "^29.7.0", - "@jest/expect": "^29.7.0", - "@jest/types": "^29.6.3", - "jest-mock": "^29.7.0" + "@types/node": "*", + "jest-regex-util": "30.5.0" }, "engines": { - "node": "^14.15.0 || ^16.10.0 || >=18.0.0" + "node": "^18.14.0 || ^20.0.0 || ^22.0.0 || >=24.0.0" } }, + "node_modules/@jest/react-is-18": { + "name": "react-is", + "version": "18.3.1", + "resolved": "https://registry.npmjs.org/react-is/-/react-is-18.3.1.tgz", + "integrity": "sha512-/LLMVyas0ljjAtoYiPqYiL8VWXzUUdThrmU5+n20DZv+a+ClRoevUzw5JxU+Ieh5/c87ytoTBV9G1FiKfNJdmg==", + "dev": true, + "license": "MIT" + }, + "node_modules/@jest/react-is-19": { + "name": "react-is", + "version": "19.3.1", + "resolved": "https://registry.npmjs.org/react-is/-/react-is-19.3.1.tgz", + "integrity": "sha512-RRieF6IyxQBkcK6pP8xOHprLTPW6QjRkbGdImtqNme+/hYVwCZkLQLdlZGOhUqXwkS9IEynaGvPJtv6XB/cz0Q==", + "dev": true, + "license": "MIT" + }, "node_modules/@jest/reporters": { - "version": "29.7.0", - "resolved": "https://registry.npmjs.org/@jest/reporters/-/reporters-29.7.0.tgz", - "integrity": "sha512-DApq0KJbJOEzAFYjHADNNxAE3KbhxQB1y5Kplb5Waqw6zVbuWatSnMjE5gs8FUgEPmNsnZA3NCWl9NG0ia04Pg==", + "version": "30.5.2", + "resolved": "https://registry.npmjs.org/@jest/reporters/-/reporters-30.5.2.tgz", + "integrity": "sha512-ev6E9iG73twQcfAfoTnviuYkr3yOrYbzAtMFCimv2fxHXPIp9PBt2u1wNMt0aYWgl8FPwIcS8oqRJg6alnht4Q==", "dev": true, "license": "MIT", "dependencies": { "@bcoe/v8-coverage": "^0.2.3", - "@jest/console": "^29.7.0", - "@jest/test-result": "^29.7.0", - "@jest/transform": "^29.7.0", - "@jest/types": "^29.6.3", - "@jridgewell/trace-mapping": "^0.3.18", + "@jest/console": "30.5.2", + "@jest/test-result": "30.5.2", + "@jest/transform": "30.5.2", + "@jest/types": "30.5.1", + "@jridgewell/trace-mapping": "^0.3.31", "@types/node": "*", - "chalk": "^4.0.0", - "collect-v8-coverage": "^1.0.0", - "exit": "^0.1.2", - "glob": "^7.1.3", - "graceful-fs": "^4.2.9", + "chalk": "^4.1.2", + "collect-v8-coverage": "^1.0.2", + "exit-x": "^0.2.2", + "glob": "^13.0.6", + "graceful-fs": "^4.2.11", "istanbul-lib-coverage": "^3.0.0", "istanbul-lib-instrument": "^6.0.0", "istanbul-lib-report": "^3.0.0", - "istanbul-lib-source-maps": "^4.0.0", + "istanbul-lib-source-maps": "^5.0.0", "istanbul-reports": "^3.1.3", - "jest-message-util": "^29.7.0", - "jest-util": "^29.7.0", - "jest-worker": "^29.7.0", + "jest-message-util": "30.5.1", + "jest-util": "30.5.1", + "jest-worker": "30.5.1", "slash": "^3.0.0", - "string-length": "^4.0.1", - "strip-ansi": "^6.0.0", + "string-length": "^4.0.2", "v8-to-istanbul": "^9.0.1" }, "engines": { - "node": "^14.15.0 || ^16.10.0 || >=18.0.0" + "node": "^18.14.0 || ^20.0.0 || ^22.0.0 || >=24.0.0" }, "peerDependencies": { "node-notifier": "^8.0.1 || ^9.0.0 || ^10.0.0" @@ -739,108 +932,125 @@ } }, "node_modules/@jest/schemas": { - "version": "29.6.3", - "resolved": "https://registry.npmjs.org/@jest/schemas/-/schemas-29.6.3.tgz", - "integrity": "sha512-mo5j5X+jIZmJQveBKeS/clAueipV7KgiX1vMgCxam1RNYiqE1w62n0/tJJnHtjW8ZHcQco5gY85jA3mi0L+nSA==", + "version": "30.5.0", + "resolved": "https://registry.npmjs.org/@jest/schemas/-/schemas-30.5.0.tgz", + "integrity": "sha512-/hunigyNpc4RCjC0VaW3f5RCUZVM2+WQ65qP7z083Gmvac7or2LI50XVNOtE4YPgBpV0yxYiAgorAPGniCoJmg==", + "dev": true, + "license": "MIT", + "dependencies": { + "@sinclair/typebox": "^0.34.0" + }, + "engines": { + "node": "^18.14.0 || ^20.0.0 || ^22.0.0 || >=24.0.0" + } + }, + "node_modules/@jest/snapshot-utils": { + "version": "30.5.1", + "resolved": "https://registry.npmjs.org/@jest/snapshot-utils/-/snapshot-utils-30.5.1.tgz", + "integrity": "sha512-V3wnxNtiVmw5PPVg433Cn3VdXnsOeu/ofLw3KC04Bn2y1wIlU5kozXQn48rhrgj/02LrCVtntTEF1yBha0XSUw==", "dev": true, "license": "MIT", "dependencies": { - "@sinclair/typebox": "^0.27.8" + "@jest/types": "30.5.1", + "chalk": "^4.1.2", + "graceful-fs": "^4.2.11", + "natural-compare": "^1.4.0" }, "engines": { - "node": "^14.15.0 || ^16.10.0 || >=18.0.0" + "node": "^18.14.0 || ^20.0.0 || ^22.0.0 || >=24.0.0" } }, "node_modules/@jest/source-map": { - "version": "29.6.3", - "resolved": "https://registry.npmjs.org/@jest/source-map/-/source-map-29.6.3.tgz", - "integrity": "sha512-MHjT95QuipcPrpLM+8JMSzFx6eHp5Bm+4XeFDJlwsvVBjmKNiIAvasGK2fxz2WbGRlnvqehFbh07MMa7n3YJnw==", + "version": "30.5.2", + "resolved": "https://registry.npmjs.org/@jest/source-map/-/source-map-30.5.2.tgz", + "integrity": "sha512-c5CehvkbfHX6yyNg7bMn2ylqlp9AHXuZ/3hPH/Lh5bxD/vefd/lV9HBjMqXef9yQNqkdwyZvkLSVSwB38hy8Qw==", "dev": true, "license": "MIT", "dependencies": { - "@jridgewell/trace-mapping": "^0.3.18", - "callsites": "^3.0.0", - "graceful-fs": "^4.2.9" + "@jridgewell/trace-mapping": "^0.3.31", + "callsites": "^3.1.0", + "convert-source-map": "^2.0.0", + "graceful-fs": "^4.2.11" }, "engines": { - "node": "^14.15.0 || ^16.10.0 || >=18.0.0" + "node": "^18.14.0 || ^20.0.0 || ^22.0.0 || >=24.0.0" } }, "node_modules/@jest/test-result": { - "version": "29.7.0", - "resolved": "https://registry.npmjs.org/@jest/test-result/-/test-result-29.7.0.tgz", - "integrity": "sha512-Fdx+tv6x1zlkJPcWXmMDAG2HBnaR9XPSd5aDWQVsfrZmLVT3lU1cwyxLgRmXR9yrq4NBoEm9BMsfgFzTQAbJYA==", + "version": "30.5.2", + "resolved": "https://registry.npmjs.org/@jest/test-result/-/test-result-30.5.2.tgz", + "integrity": "sha512-eO6YU5rsLfs60ne694e0IAmRgeBnoA8mu0nlxXDbl/1j5km0o2vO9/VbbUIKIH+WRKKEI+ELgwraRGn2Lhep8g==", "dev": true, "license": "MIT", "dependencies": { - "@jest/console": "^29.7.0", - "@jest/types": "^29.6.3", - "@types/istanbul-lib-coverage": "^2.0.0", - "collect-v8-coverage": "^1.0.0" + "@jest/console": "30.5.2", + "@jest/types": "30.5.1", + "@types/istanbul-lib-coverage": "^2.0.6", + "collect-v8-coverage": "^1.0.2" }, "engines": { - "node": "^14.15.0 || ^16.10.0 || >=18.0.0" + "node": "^18.14.0 || ^20.0.0 || ^22.0.0 || >=24.0.0" } }, "node_modules/@jest/test-sequencer": { - "version": "29.7.0", - "resolved": "https://registry.npmjs.org/@jest/test-sequencer/-/test-sequencer-29.7.0.tgz", - "integrity": "sha512-GQwJ5WZVrKnOJuiYiAF52UNUJXgTZx1NHjFSEB0qEMmSZKAkdMoIzw/Cj6x6NF4AvV23AUqDpFzQkN/eYCYTxw==", + "version": "30.5.2", + "resolved": "https://registry.npmjs.org/@jest/test-sequencer/-/test-sequencer-30.5.2.tgz", + "integrity": "sha512-bmij8jZyYAC47ExT2GeP7PcrlwSNS+Bp3KeRuBH88gpcxqDv6fljN8PemS4J/lLZ79xb6mpaennQTTq0zUAVVg==", "dev": true, "license": "MIT", "dependencies": { - "@jest/test-result": "^29.7.0", - "graceful-fs": "^4.2.9", - "jest-haste-map": "^29.7.0", + "@jest/test-result": "30.5.2", + "graceful-fs": "^4.2.11", + "jest-haste-map": "30.5.1", "slash": "^3.0.0" }, "engines": { - "node": "^14.15.0 || ^16.10.0 || >=18.0.0" + "node": "^18.14.0 || ^20.0.0 || ^22.0.0 || >=24.0.0" } }, "node_modules/@jest/transform": { - "version": "29.7.0", - "resolved": "https://registry.npmjs.org/@jest/transform/-/transform-29.7.0.tgz", - "integrity": "sha512-ok/BTPFzFKVMwO5eOHRrvnBVHdRy9IrsrW1GpMaQ9MCnilNLXQKmAX8s1YXDFaai9xJpac2ySzV0YeRRECr2Vw==", + "version": "30.5.2", + "resolved": "https://registry.npmjs.org/@jest/transform/-/transform-30.5.2.tgz", + "integrity": "sha512-LBGwmaE886C41jDZ65eqR1YbXM7642MK3ZhTowZd5+xDlrDLuf4ePuDdDmVSvcr8NTVJ3MqxLkMbUCzuigUaoQ==", "dev": true, "license": "MIT", "dependencies": { - "@babel/core": "^7.11.6", - "@jest/types": "^29.6.3", - "@jridgewell/trace-mapping": "^0.3.18", - "babel-plugin-istanbul": "^6.1.1", - "chalk": "^4.0.0", + "@babel/core": "^7.27.4", + "@jest/types": "30.5.1", + "@jridgewell/trace-mapping": "^0.3.31", + "babel-plugin-istanbul": "^8.0.0", + "chalk": "^4.1.2", "convert-source-map": "^2.0.0", "fast-json-stable-stringify": "^2.1.0", - "graceful-fs": "^4.2.9", - "jest-haste-map": "^29.7.0", - "jest-regex-util": "^29.6.3", - "jest-util": "^29.7.0", - "micromatch": "^4.0.4", - "pirates": "^4.0.4", + "graceful-fs": "^4.2.11", + "jest-haste-map": "30.5.1", + "jest-regex-util": "30.5.0", + "jest-util": "30.5.1", + "pirates": "^4.0.7", "slash": "^3.0.0", - "write-file-atomic": "^4.0.2" + "write-file-atomic": "^5.0.1" }, "engines": { - "node": "^14.15.0 || ^16.10.0 || >=18.0.0" + "node": "^18.14.0 || ^20.0.0 || ^22.0.0 || >=24.0.0" } }, "node_modules/@jest/types": { - "version": "29.6.3", - "resolved": "https://registry.npmjs.org/@jest/types/-/types-29.6.3.tgz", - "integrity": "sha512-u3UPsIilWKOM3F9CXtrG8LEJmNxwoCQC/XVj4IKYXvvpx7QIi/Kg1LI5uDmDpKlac62NUtX7eLjRh+jVZcLOzw==", + "version": "30.5.1", + "resolved": "https://registry.npmjs.org/@jest/types/-/types-30.5.1.tgz", + "integrity": "sha512-LvVYn83nnXPl+Rg98nvcFgjx6nRMTArhSn6RAX/w3ELn54S8A42TYZvsCMdGUqTM8S0wyXbtlQdU6Hi6dykj9g==", "dev": true, "license": "MIT", "dependencies": { - "@jest/schemas": "^29.6.3", - "@types/istanbul-lib-coverage": "^2.0.0", - "@types/istanbul-reports": "^3.0.0", + "@jest/pattern": "30.5.0", + "@jest/schemas": "30.5.0", + "@types/istanbul-lib-coverage": "^2.0.6", + "@types/istanbul-reports": "^3.0.4", "@types/node": "*", - "@types/yargs": "^17.0.8", - "chalk": "^4.0.0" + "@types/yargs": "^17.0.33", + "chalk": "^4.1.2" }, "engines": { - "node": "^14.15.0 || ^16.10.0 || >=18.0.0" + "node": "^18.14.0 || ^20.0.0 || ^22.0.0 || >=24.0.0" } }, "node_modules/@jridgewell/gen-mapping": { @@ -866,9 +1076,9 @@ } }, "node_modules/@jridgewell/resolve-uri": { - "version": "3.1.2", - "resolved": "https://registry.npmjs.org/@jridgewell/resolve-uri/-/resolve-uri-3.1.2.tgz", - "integrity": "sha512-bRISgCIjP20/tbWSPWMEi54QVPRZExkuD9lJL+UIxUKtwVJA8wW1Trb1jMs1RFXo1CBTNZ/5hpC9QvmKWdopKw==", + "version": "3.1.3", + "resolved": "https://registry.npmjs.org/@jridgewell/resolve-uri/-/resolve-uri-3.1.3.tgz", + "integrity": "sha512-lhTtjtoEArWBjismtfS761S9Hlyn+nIZqOZVYoZ1Xn82PMNMVnk+jj/NhC4fAXGTs7ydONcJiR5vyQBTMDu27g==", "dev": true, "license": "MIT", "engines": { @@ -876,9 +1086,9 @@ } }, "node_modules/@jridgewell/sourcemap-codec": { - "version": "1.5.5", - "resolved": "https://registry.npmjs.org/@jridgewell/sourcemap-codec/-/sourcemap-codec-1.5.5.tgz", - "integrity": "sha512-cYQ9310grqxueWbl+WuIUIaiUaDcj7WOq5fVhEljNVgRfOUhY9fy2zTvfoqWsnebh8Sl70VScFbICvJnLKB0Og==", + "version": "1.6.0", + "resolved": "https://registry.npmjs.org/@jridgewell/sourcemap-codec/-/sourcemap-codec-1.6.0.tgz", + "integrity": "sha512-T7jf+5zgsZHwNJ4lvQ7/aezbyk0nNX+zJVWpmHA7VYsEx7a7qr5Rg5IbtJFqkgze5Y2sruq1RUY8Q837Od7iFw==", "dev": true, "license": "MIT" }, @@ -893,148 +1103,2535 @@ "@jridgewell/sourcemap-codec": "^1.4.14" } }, - "node_modules/@sinclair/typebox": { - "version": "0.27.10", - "resolved": "https://registry.npmjs.org/@sinclair/typebox/-/typebox-0.27.10.tgz", - "integrity": "sha512-MTBk/3jGLNB2tVxv6uLlFh1iu64iYOQ2PbdOSK3NW8JZsmlaOh2q6sdtKowBhfw8QFLmYNzTW4/oK4uATIi6ZA==", + "node_modules/@napi-rs/wasm-runtime": { + "version": "1.2.7", + "resolved": "https://registry.npmjs.org/@napi-rs/wasm-runtime/-/wasm-runtime-1.2.7.tgz", + "integrity": "sha512-zJccwplOAbgfZju95IUHazLnx9RAPtPN2YGJXI6UbrgeaR9QfPjGrQL6ERkSAtnVCA4Q+83ApGyaX5zdpCaKkQ==", "dev": true, - "license": "MIT" + "license": "MIT", + "optional": true, + "dependencies": { + "@tybys/wasm-util": "^0.10.3" + }, + "engines": { + "node": "^20.19.0 || ^22.13.0 || >=23.5.0" + }, + "funding": { + "type": "github", + "url": "https://github.com/sponsors/Brooooooklyn" + }, + "peerDependencies": { + "@emnapi/core": "^1.7.1 || 2.0.0-beta.2 || 2.0.0-beta.3", + "@emnapi/runtime": "^1.7.1 || 2.0.0-beta.2 || 2.0.0-beta.3" + } }, - "node_modules/@sinonjs/commons": { - "version": "3.0.1", - "resolved": "https://registry.npmjs.org/@sinonjs/commons/-/commons-3.0.1.tgz", - "integrity": "sha512-K3mCHKQ9sVh8o1C9cxkwxaOmXoAMlDxC1mYyHrjqOWEcBjYr76t96zL2zlj5dUGZ3HSw240X1qgH3Mjf1yJWpQ==", + "node_modules/@oxc-parser/binding-android-arm-eabi": { + "version": "0.160.0", + "resolved": "https://registry.npmjs.org/@oxc-parser/binding-android-arm-eabi/-/binding-android-arm-eabi-0.160.0.tgz", + "integrity": "sha512-IGhHufQ5uRhivrpzCcUJ92Mj4kYyFVhghaWk9hgZP/b+7WxdzdhFqBbH+PwEcfssDdIW10YHXcFvWib3kMX4Zg==", + "cpu": [ + "arm" + ], "dev": true, - "license": "BSD-3-Clause", - "dependencies": { - "type-detect": "4.0.8" + "license": "MIT", + "optional": true, + "os": [ + "android" + ], + "engines": { + "node": "^20.19.0 || >=22.12.0" } }, - "node_modules/@sinonjs/fake-timers": { - "version": "10.3.0", - "resolved": "https://registry.npmjs.org/@sinonjs/fake-timers/-/fake-timers-10.3.0.tgz", - "integrity": "sha512-V4BG07kuYSUkTCSBHG8G8TNhM+F19jXFWnQtzj+we8DrkpSBCee9Z3Ms8yiGer/dlmhe35/Xdgyo3/0rQKg7YA==", + "node_modules/@oxc-parser/binding-android-arm64": { + "version": "0.160.0", + "resolved": "https://registry.npmjs.org/@oxc-parser/binding-android-arm64/-/binding-android-arm64-0.160.0.tgz", + "integrity": "sha512-VxqVDFdTJG/QrJJ5pc/JIocKExtxCGcKf9qBsjIMS2VymVnHNdDu58d35pkgxIMFhxJ92YD79+66SBv86GXfCw==", + "cpu": [ + "arm64" + ], "dev": true, - "license": "BSD-3-Clause", - "dependencies": { - "@sinonjs/commons": "^3.0.0" + "license": "MIT", + "optional": true, + "os": [ + "android" + ], + "engines": { + "node": "^20.19.0 || >=22.12.0" } }, - "node_modules/@types/babel__core": { - "version": "7.20.5", - "resolved": "https://registry.npmjs.org/@types/babel__core/-/babel__core-7.20.5.tgz", - "integrity": "sha512-qoQprZvz5wQFJwMDqeseRXWv3rqMvhgpbXFfVyWhbx9X47POIA6i/+dXefEmZKoAgOaTdaIgNSMqMIU61yRyzA==", + "node_modules/@oxc-parser/binding-darwin-arm64": { + "version": "0.160.0", + "resolved": "https://registry.npmjs.org/@oxc-parser/binding-darwin-arm64/-/binding-darwin-arm64-0.160.0.tgz", + "integrity": "sha512-W5ULJkX2YAZAi6h2gkWCZCq1Ws5ZTIejBXjQP3tdf/UOeJaNQes4Vo5659/szYrFoBTef+WWcOU4HaY3TT4OYQ==", + "cpu": [ + "arm64" + ], "dev": true, "license": "MIT", - "dependencies": { - "@babel/parser": "^7.20.7", - "@babel/types": "^7.20.7", - "@types/babel__generator": "*", - "@types/babel__template": "*", - "@types/babel__traverse": "*" + "optional": true, + "os": [ + "darwin" + ], + "engines": { + "node": "^20.19.0 || >=22.12.0" } }, - "node_modules/@types/babel__generator": { - "version": "7.27.0", - "resolved": "https://registry.npmjs.org/@types/babel__generator/-/babel__generator-7.27.0.tgz", - "integrity": "sha512-ufFd2Xi92OAVPYsy+P4n7/U7e68fex0+Ee8gSG9KX7eo084CWiQ4sdxktvdl0bOPupXtVJPY19zk6EwWqUQ8lg==", + "node_modules/@oxc-parser/binding-darwin-x64": { + "version": "0.160.0", + "resolved": "https://registry.npmjs.org/@oxc-parser/binding-darwin-x64/-/binding-darwin-x64-0.160.0.tgz", + "integrity": "sha512-NNV6qakT/DX8SLqpe/gJ2ab2yDVJ+y6DKdJrbyTAdkpMjTP1KljiUxtAwoKVlHVPqfGMFPpSHIU9yL3FAWG/3w==", + "cpu": [ + "x64" + ], "dev": true, "license": "MIT", - "dependencies": { - "@babel/types": "^7.0.0" + "optional": true, + "os": [ + "darwin" + ], + "engines": { + "node": "^20.19.0 || >=22.12.0" } }, - "node_modules/@types/babel__template": { - "version": "7.4.4", - "resolved": "https://registry.npmjs.org/@types/babel__template/-/babel__template-7.4.4.tgz", - "integrity": "sha512-h/NUaSyG5EyxBIp8YRxo4RMe2/qQgvyowRwVMzhYhBCONbW8PUsg4lkFMrhgZhUe5z3L3MiLDuvyJ/CaPa2A8A==", + "node_modules/@oxc-parser/binding-freebsd-x64": { + "version": "0.160.0", + "resolved": "https://registry.npmjs.org/@oxc-parser/binding-freebsd-x64/-/binding-freebsd-x64-0.160.0.tgz", + "integrity": "sha512-P1Ay7bTnFJarHefoBOOrzZ8ynRluk0w92p/+PwkAYgg38Fh5Z2eQN2slzYqODyNQRDd2YrdecLV038V6KmqfXw==", + "cpu": [ + "x64" + ], "dev": true, "license": "MIT", - "dependencies": { - "@babel/parser": "^7.1.0", - "@babel/types": "^7.0.0" + "optional": true, + "os": [ + "freebsd" + ], + "engines": { + "node": "^20.19.0 || >=22.12.0" } }, - "node_modules/@types/babel__traverse": { - "version": "7.28.0", - "resolved": "https://registry.npmjs.org/@types/babel__traverse/-/babel__traverse-7.28.0.tgz", - "integrity": "sha512-8PvcXf70gTDZBgt9ptxJ8elBeBjcLOAcOtoO/mPJjtji1+CdGbHgm77om1GrsPxsiE+uXIpNSK64UYaIwQXd4Q==", + "node_modules/@oxc-parser/binding-linux-arm-gnueabihf": { + "version": "0.160.0", + "resolved": "https://registry.npmjs.org/@oxc-parser/binding-linux-arm-gnueabihf/-/binding-linux-arm-gnueabihf-0.160.0.tgz", + "integrity": "sha512-jw16rzFMeyaGRTVoHTiKAe5qHa6T5v54GX0TGoAvbEskN+hQcK0pZQ+pi5n3yGZ7b1+vTF2eBuqQP98mgcd6XA==", + "cpu": [ + "arm" + ], + "dev": true, + "license": "MIT", + "optional": true, + "os": [ + "linux" + ], + "engines": { + "node": "^20.19.0 || >=22.12.0" + } + }, + "node_modules/@oxc-parser/binding-linux-arm-musleabihf": { + "version": "0.160.0", + "resolved": "https://registry.npmjs.org/@oxc-parser/binding-linux-arm-musleabihf/-/binding-linux-arm-musleabihf-0.160.0.tgz", + "integrity": "sha512-B55bnJn8XMC8NDBbEsL6Za2ZuFx6RIG49GMSlHYfpIc2pWQ6sbJRwarP+iKXnPgpJ1N7wfOAotMp58NUYjzQaQ==", + "cpu": [ + "arm" + ], + "dev": true, + "license": "MIT", + "optional": true, + "os": [ + "linux" + ], + "engines": { + "node": "^20.19.0 || >=22.12.0" + } + }, + "node_modules/@oxc-parser/binding-linux-arm64-gnu": { + "version": "0.160.0", + "resolved": "https://registry.npmjs.org/@oxc-parser/binding-linux-arm64-gnu/-/binding-linux-arm64-gnu-0.160.0.tgz", + "integrity": "sha512-YKVHxONDpWXTPfilLv2MKvaI7VbYnKHARr5wJ3KKKGk0OkauDc0tVFyZlKFwIy9+br46fh8AjTVCnz6+9gKxVA==", + "cpu": [ + "arm64" + ], + "dev": true, + "libc": [ + "glibc" + ], + "license": "MIT", + "optional": true, + "os": [ + "linux" + ], + "engines": { + "node": "^20.19.0 || >=22.12.0" + } + }, + "node_modules/@oxc-parser/binding-linux-arm64-musl": { + "version": "0.160.0", + "resolved": "https://registry.npmjs.org/@oxc-parser/binding-linux-arm64-musl/-/binding-linux-arm64-musl-0.160.0.tgz", + "integrity": "sha512-uiVA0AemCVB3+oZ3JmjQCSEqiGIgl+o3+bLqORIfviJbyYlVUChoRh6cVbyyDG6zm4fW0RtQIdKq3fVYuNTA3Q==", + "cpu": [ + "arm64" + ], + "dev": true, + "libc": [ + "musl" + ], + "license": "MIT", + "optional": true, + "os": [ + "linux" + ], + "engines": { + "node": "^20.19.0 || >=22.12.0" + } + }, + "node_modules/@oxc-parser/binding-linux-ppc64-gnu": { + "version": "0.160.0", + "resolved": "https://registry.npmjs.org/@oxc-parser/binding-linux-ppc64-gnu/-/binding-linux-ppc64-gnu-0.160.0.tgz", + "integrity": "sha512-h/tr4lWGdRXs4rUktl84Z0CprQhdDlxN4D82/cCcoKr0Kb4TEIJriXZVqHPznp12/uBWcV+BiihUBPbeyZm1KQ==", + "cpu": [ + "ppc64" + ], + "dev": true, + "libc": [ + "glibc" + ], + "license": "MIT", + "optional": true, + "os": [ + "linux" + ], + "engines": { + "node": "^20.19.0 || >=22.12.0" + } + }, + "node_modules/@oxc-parser/binding-linux-riscv64-gnu": { + "version": "0.160.0", + "resolved": "https://registry.npmjs.org/@oxc-parser/binding-linux-riscv64-gnu/-/binding-linux-riscv64-gnu-0.160.0.tgz", + "integrity": "sha512-bA/Ba24KZYxorIUBHF2NbXM0OVY24xowGu4L0YBzpXhivt+ks1z8BT/c+BYGSfdFFqWrfNkC5TJjQGWdRkUHWQ==", + "cpu": [ + "riscv64" + ], + "dev": true, + "libc": [ + "glibc" + ], + "license": "MIT", + "optional": true, + "os": [ + "linux" + ], + "engines": { + "node": "^20.19.0 || >=22.12.0" + } + }, + "node_modules/@oxc-parser/binding-linux-riscv64-musl": { + "version": "0.160.0", + "resolved": "https://registry.npmjs.org/@oxc-parser/binding-linux-riscv64-musl/-/binding-linux-riscv64-musl-0.160.0.tgz", + "integrity": "sha512-1uI9RghjO7/JQzkL9M/EDnG0Egy5z4v3k5TCUbPESZVUawHEmC52MMnCLe7f2CjMtiLjsm879CnO2HkRtsECNA==", + "cpu": [ + "riscv64" + ], + "dev": true, + "libc": [ + "musl" + ], + "license": "MIT", + "optional": true, + "os": [ + "linux" + ], + "engines": { + "node": "^20.19.0 || >=22.12.0" + } + }, + "node_modules/@oxc-parser/binding-linux-s390x-gnu": { + "version": "0.160.0", + "resolved": "https://registry.npmjs.org/@oxc-parser/binding-linux-s390x-gnu/-/binding-linux-s390x-gnu-0.160.0.tgz", + "integrity": "sha512-1gaVKLXjT+UML8w8ypK93KUJurvUUmegqgQ/7qijDNpGCuogmTOIu0KgsYqL2hH//amY3AtfQhTTMlw9l363wA==", + "cpu": [ + "s390x" + ], + "dev": true, + "libc": [ + "glibc" + ], + "license": "MIT", + "optional": true, + "os": [ + "linux" + ], + "engines": { + "node": "^20.19.0 || >=22.12.0" + } + }, + "node_modules/@oxc-parser/binding-linux-x64-gnu": { + "version": "0.160.0", + "resolved": "https://registry.npmjs.org/@oxc-parser/binding-linux-x64-gnu/-/binding-linux-x64-gnu-0.160.0.tgz", + "integrity": "sha512-v44/JCrzpIof2jAJwF9W1j9l7mZKEaKihd8vBECBaNyIPcOiO4dtkeGX51MxnGmrJbsltdvTJb60VXLyMyAD2w==", + "cpu": [ + "x64" + ], + "dev": true, + "libc": [ + "glibc" + ], + "license": "MIT", + "optional": true, + "os": [ + "linux" + ], + "engines": { + "node": "^20.19.0 || >=22.12.0" + } + }, + "node_modules/@oxc-parser/binding-linux-x64-musl": { + "version": "0.160.0", + "resolved": "https://registry.npmjs.org/@oxc-parser/binding-linux-x64-musl/-/binding-linux-x64-musl-0.160.0.tgz", + "integrity": "sha512-NOT9x+x27Aitn+z6PggidaeHiKOpbglRXwzcHg+3VqbMT7nv/C3fnXKeVESy4o0u3Yb3mEocwPrtzlT5O53JSA==", + "cpu": [ + "x64" + ], + "dev": true, + "libc": [ + "musl" + ], + "license": "MIT", + "optional": true, + "os": [ + "linux" + ], + "engines": { + "node": "^20.19.0 || >=22.12.0" + } + }, + "node_modules/@oxc-parser/binding-openharmony-arm64": { + "version": "0.160.0", + "resolved": "https://registry.npmjs.org/@oxc-parser/binding-openharmony-arm64/-/binding-openharmony-arm64-0.160.0.tgz", + "integrity": "sha512-kXFdUqEkbB1E66dfqu7sk65w0CaDVp+uPeJ4eOacxBuVgKk/poy+b8/XpFfV443UNB8LUUvzgTzyWLxDQte2Dw==", + "cpu": [ + "arm64" + ], + "dev": true, + "license": "MIT", + "optional": true, + "os": [ + "openharmony" + ], + "engines": { + "node": "^20.19.0 || >=22.12.0" + } + }, + "node_modules/@oxc-parser/binding-win32-arm64-msvc": { + "version": "0.160.0", + "resolved": "https://registry.npmjs.org/@oxc-parser/binding-win32-arm64-msvc/-/binding-win32-arm64-msvc-0.160.0.tgz", + "integrity": "sha512-tzYHz6BOwmKCY2c8txeV06CkMzwEVQhFwug8OR75q2UVRMfksf9yD5UBjAeauPEiFhzNogg1RRyk8UZ0bjMXvg==", + "cpu": [ + "arm64" + ], + "dev": true, + "license": "MIT", + "optional": true, + "os": [ + "win32" + ], + "engines": { + "node": "^20.19.0 || >=22.12.0" + } + }, + "node_modules/@oxc-parser/binding-win32-ia32-msvc": { + "version": "0.160.0", + "resolved": "https://registry.npmjs.org/@oxc-parser/binding-win32-ia32-msvc/-/binding-win32-ia32-msvc-0.160.0.tgz", + "integrity": "sha512-vyYZ4gcWUPuPANDj66eBnZ7+CFzUU0pzX28a5armxejWxM7onM3awHkM4PB/al8eEZ3MH8l0AprX/1jXrfGh7Q==", + "cpu": [ + "ia32" + ], + "dev": true, + "license": "MIT", + "optional": true, + "os": [ + "win32" + ], + "engines": { + "node": "^20.19.0 || >=22.12.0" + } + }, + "node_modules/@oxc-parser/binding-win32-x64-msvc": { + "version": "0.160.0", + "resolved": "https://registry.npmjs.org/@oxc-parser/binding-win32-x64-msvc/-/binding-win32-x64-msvc-0.160.0.tgz", + "integrity": "sha512-KvENUAjmLfLBJBTF9yQ2wb5/DH41+FPM45oM7NMTgW0R3kN49NUj314SaDqqqkba+4cNTBt8NA2Ux5dekZB68w==", + "cpu": [ + "x64" + ], + "dev": true, + "license": "MIT", + "optional": true, + "os": [ + "win32" + ], + "engines": { + "node": "^20.19.0 || >=22.12.0" + } + }, + "node_modules/@oxc-project/types": { + "version": "0.160.0", + "resolved": "https://registry.npmjs.org/@oxc-project/types/-/types-0.160.0.tgz", + "integrity": "sha512-gw4k9syEmnckbOgw2A2FU1TBDdX9hfwV9jEn/uio65pguPzwWiXQS3OIJDMEhv9m06tj9XiEe6RoD0YA+LgreA==", + "dev": true, + "license": "MIT", + "funding": { + "url": "https://github.com/sponsors/oxc-project" + } + }, + "node_modules/@oxc-resolver/binding-android-arm-eabi": { + "version": "11.24.2", + "resolved": "https://registry.npmjs.org/@oxc-resolver/binding-android-arm-eabi/-/binding-android-arm-eabi-11.24.2.tgz", + "integrity": "sha512-y09e0L0SRI2OA2tUIrjBgoV3eH5hvUKXNkJqXmNo5V2WxIjyC7I7aJfRLMEVpA8yi95f90gFDvO0VMgrDw+vwA==", + "cpu": [ + "arm" + ], + "dev": true, + "license": "MIT", + "optional": true, + "os": [ + "android" + ] + }, + "node_modules/@oxc-resolver/binding-android-arm64": { + "version": "11.24.2", + "resolved": "https://registry.npmjs.org/@oxc-resolver/binding-android-arm64/-/binding-android-arm64-11.24.2.tgz", + "integrity": "sha512-cl4icWaZFnLdg8m6qtnh5rBMuGbxc/ptStFHLeCNwr+2cZjkjNwQu/jYRS0CHlnPecOJMpuS5M6/BH+0J/YkEg==", + "cpu": [ + "arm64" + ], + "dev": true, + "license": "MIT", + "optional": true, + "os": [ + "android" + ] + }, + "node_modules/@oxc-resolver/binding-darwin-arm64": { + "version": "11.24.2", + "resolved": "https://registry.npmjs.org/@oxc-resolver/binding-darwin-arm64/-/binding-darwin-arm64-11.24.2.tgz", + "integrity": "sha512-At29QEMF6HajbQvgY8K6OXnHD1x9rad74xBEfmCB6ZqCGsdq75aK7tOYcTbOanMy8qdIBrfL3SMr3p/lfSlb9w==", + "cpu": [ + "arm64" + ], + "dev": true, + "license": "MIT", + "optional": true, + "os": [ + "darwin" + ] + }, + "node_modules/@oxc-resolver/binding-darwin-x64": { + "version": "11.24.2", + "resolved": "https://registry.npmjs.org/@oxc-resolver/binding-darwin-x64/-/binding-darwin-x64-11.24.2.tgz", + "integrity": "sha512-A5Kqr1EUj4oIL5CF4WRssq/o5P0Y11cwoFouMRmQ7YnC/A8V93nv1nb7aSU8HwcgmXropjLNkVTl4MN87cu28Q==", + "cpu": [ + "x64" + ], + "dev": true, + "license": "MIT", + "optional": true, + "os": [ + "darwin" + ] + }, + "node_modules/@oxc-resolver/binding-freebsd-x64": { + "version": "11.24.2", + "resolved": "https://registry.npmjs.org/@oxc-resolver/binding-freebsd-x64/-/binding-freebsd-x64-11.24.2.tgz", + "integrity": "sha512-R5xkRBRRz7ceH/P5Jrc6G7FmdUdgpLYyESFAUDVTNQ9K0sGPxcp4ljiwEwEqsvNcQ4sYbMRrWcHHBCu7ksAJVw==", + "cpu": [ + "x64" + ], + "dev": true, + "license": "MIT", + "optional": true, + "os": [ + "freebsd" + ] + }, + "node_modules/@oxc-resolver/binding-linux-arm-gnueabihf": { + "version": "11.24.2", + "resolved": "https://registry.npmjs.org/@oxc-resolver/binding-linux-arm-gnueabihf/-/binding-linux-arm-gnueabihf-11.24.2.tgz", + "integrity": "sha512-k/RuYL4L/R58IBn3wT5ma3Wh4k62bp1eYCFRWCmMsasUOqL+H6sW0VGFadEzKWXFFlz+2uIMoeMk9ySSZJHgbg==", + "cpu": [ + "arm" + ], + "dev": true, + "license": "MIT", + "optional": true, + "os": [ + "linux" + ] + }, + "node_modules/@oxc-resolver/binding-linux-arm-musleabihf": { + "version": "11.24.2", + "resolved": "https://registry.npmjs.org/@oxc-resolver/binding-linux-arm-musleabihf/-/binding-linux-arm-musleabihf-11.24.2.tgz", + "integrity": "sha512-bnHAak3ujYfH5pKk4NieFNbvYvernfoQDgwLddbZ3OtMYrem87/qjlA+u+aKG0oZcqSLGCful/6/CEA+aeAgaA==", + "cpu": [ + "arm" + ], + "dev": true, + "license": "MIT", + "optional": true, + "os": [ + "linux" + ] + }, + "node_modules/@oxc-resolver/binding-linux-arm64-gnu": { + "version": "11.24.2", + "resolved": "https://registry.npmjs.org/@oxc-resolver/binding-linux-arm64-gnu/-/binding-linux-arm64-gnu-11.24.2.tgz", + "integrity": "sha512-vDT3KHgzYp47gmtNOqL2VNhCyl5Zv643eyxm//A68J8DeUGXrvD1pZFiaT4jSfe+RInfnn1R2yVHye4enx6RnA==", + "cpu": [ + "arm64" + ], + "dev": true, + "libc": [ + "glibc" + ], + "license": "MIT", + "optional": true, + "os": [ + "linux" + ] + }, + "node_modules/@oxc-resolver/binding-linux-arm64-musl": { + "version": "11.24.2", + "resolved": "https://registry.npmjs.org/@oxc-resolver/binding-linux-arm64-musl/-/binding-linux-arm64-musl-11.24.2.tgz", + "integrity": "sha512-+kMlQvbzfyEYtu5FcjE4p+ttBLpKW4d/AsAsuE69BxV6V4twZJeIQZFfD8gh/wqglY0MkPSezWXQH0jBV13MUw==", + "cpu": [ + "arm64" + ], + "dev": true, + "libc": [ + "musl" + ], + "license": "MIT", + "optional": true, + "os": [ + "linux" + ] + }, + "node_modules/@oxc-resolver/binding-linux-ppc64-gnu": { + "version": "11.24.2", + "resolved": "https://registry.npmjs.org/@oxc-resolver/binding-linux-ppc64-gnu/-/binding-linux-ppc64-gnu-11.24.2.tgz", + "integrity": "sha512-shjfMhmZ3gq9fv/w7bi3PnZlgOPG+2QAOFf0BJF0EgBSIGZ6PMLN2zbGEblTUYB/NKVDRyYhE2ff3dJ1QqNPkA==", + "cpu": [ + "ppc64" + ], + "dev": true, + "libc": [ + "glibc" + ], + "license": "MIT", + "optional": true, + "os": [ + "linux" + ] + }, + "node_modules/@oxc-resolver/binding-linux-riscv64-gnu": { + "version": "11.24.2", + "resolved": "https://registry.npmjs.org/@oxc-resolver/binding-linux-riscv64-gnu/-/binding-linux-riscv64-gnu-11.24.2.tgz", + "integrity": "sha512-zGelwFR5oRo+b69k8Lrzun86DyUHzfKN6cnjbR9l7Z7NIRznOE/2ZvPa1IUKqAL2PzAXOdwkfVqNvO1H2RlpAw==", + "cpu": [ + "riscv64" + ], + "dev": true, + "libc": [ + "glibc" + ], + "license": "MIT", + "optional": true, + "os": [ + "linux" + ] + }, + "node_modules/@oxc-resolver/binding-linux-riscv64-musl": { + "version": "11.24.2", + "resolved": "https://registry.npmjs.org/@oxc-resolver/binding-linux-riscv64-musl/-/binding-linux-riscv64-musl-11.24.2.tgz", + "integrity": "sha512-qxZ1SWCXJY0eyhAlP6Lmo9F2Nrtx7EkYj9oCgL8apDPCwXwCEDA2U697bbT81JIc2IrVjxO4KX6WU2N+oN9Z4w==", + "cpu": [ + "riscv64" + ], + "dev": true, + "libc": [ + "musl" + ], + "license": "MIT", + "optional": true, + "os": [ + "linux" + ] + }, + "node_modules/@oxc-resolver/binding-linux-s390x-gnu": { + "version": "11.24.2", + "resolved": "https://registry.npmjs.org/@oxc-resolver/binding-linux-s390x-gnu/-/binding-linux-s390x-gnu-11.24.2.tgz", + "integrity": "sha512-sGCecF3cx2DFlH4t/z7ApnOnXqN48p5p5mlHDEnHTAukQa2P+qMVE4CwyWE9W+q/m3QJ7kKfGrIjax31f44oFQ==", + "cpu": [ + "s390x" + ], + "dev": true, + "libc": [ + "glibc" + ], + "license": "MIT", + "optional": true, + "os": [ + "linux" + ] + }, + "node_modules/@oxc-resolver/binding-linux-x64-gnu": { + "version": "11.24.2", + "resolved": "https://registry.npmjs.org/@oxc-resolver/binding-linux-x64-gnu/-/binding-linux-x64-gnu-11.24.2.tgz", + "integrity": "sha512-k/VlMMcSzMlahb3/fENM4rTlsJ0s3fFROA0KXPBmKggqmTSaE383sl8F3KCOXPLmVsYfW6hCitMhXCEtNeZxxg==", + "cpu": [ + "x64" + ], + "dev": true, + "libc": [ + "glibc" + ], + "license": "MIT", + "optional": true, + "os": [ + "linux" + ] + }, + "node_modules/@oxc-resolver/binding-linux-x64-musl": { + "version": "11.24.2", + "resolved": "https://registry.npmjs.org/@oxc-resolver/binding-linux-x64-musl/-/binding-linux-x64-musl-11.24.2.tgz", + "integrity": "sha512-8hbnZyNi97b/8wapYaIF9+t9GmZKBW2vunaOc3h9HGJptH7b7XpvZqOTBSm/MpTjr7H497BlgOaSfLUdhmy2bw==", + "cpu": [ + "x64" + ], + "dev": true, + "libc": [ + "musl" + ], + "license": "MIT", + "optional": true, + "os": [ + "linux" + ] + }, + "node_modules/@oxc-resolver/binding-openharmony-arm64": { + "version": "11.24.2", + "resolved": "https://registry.npmjs.org/@oxc-resolver/binding-openharmony-arm64/-/binding-openharmony-arm64-11.24.2.tgz", + "integrity": "sha512-MvyGik3a6pVgZ0t/kWlbmFxFLmXQJwgLsY2eYFHLpy0wGwRbfzeIGgDwQ3kXqE30z+kSXennRkCrT7TUvkptNg==", + "cpu": [ + "arm64" + ], + "dev": true, + "license": "MIT", + "optional": true, + "os": [ + "openharmony" + ] + }, + "node_modules/@oxc-resolver/binding-wasm32-wasi": { + "version": "11.24.2", + "resolved": "https://registry.npmjs.org/@oxc-resolver/binding-wasm32-wasi/-/binding-wasm32-wasi-11.24.2.tgz", + "integrity": "sha512-vHcssMPwO08RTvj/c0iOBz90attxyG3wQJ0dTcyEQK43LRpcdLWZlV5feBhv6Isn6ahbQIzHbCgfa81+RiML0Q==", + "cpu": [ + "wasm32" + ], + "dev": true, + "license": "MIT", + "optional": true, + "dependencies": { + "@emnapi/core": "1.11.2", + "@emnapi/runtime": "1.11.2", + "@napi-rs/wasm-runtime": "^1.1.6" + }, + "engines": { + "node": ">=14.0.0" + } + }, + "node_modules/@oxc-resolver/binding-win32-arm64-msvc": { + "version": "11.24.2", + "resolved": "https://registry.npmjs.org/@oxc-resolver/binding-win32-arm64-msvc/-/binding-win32-arm64-msvc-11.24.2.tgz", + "integrity": "sha512-uokJqro2iBqkFvJdKQLP7d8/BUmFwESQFVmIJUQKj1Xn1a/LysJoe1vmeECLF5b3jsV8CAL5sEMJXX6SdK9Nhg==", + "cpu": [ + "arm64" + ], + "dev": true, + "license": "MIT", + "optional": true, + "os": [ + "win32" + ] + }, + "node_modules/@oxc-resolver/binding-win32-x64-msvc": { + "version": "11.24.2", + "resolved": "https://registry.npmjs.org/@oxc-resolver/binding-win32-x64-msvc/-/binding-win32-x64-msvc-11.24.2.tgz", + "integrity": "sha512-UqGPmo56KDfLlfXFAFIrNflHT8tFxWGEivWg3Zeyp4Uy2NlKN1FGPr6/BxcLGG3+kZ6Wp14g5Uj+n71boqZfiw==", + "cpu": [ + "x64" + ], + "dev": true, + "license": "MIT", + "optional": true, + "os": [ + "win32" + ] + }, + "node_modules/@oxfmt/binding-android-arm-eabi": { + "version": "0.80.0", + "resolved": "https://registry.npmjs.org/@oxfmt/binding-android-arm-eabi/-/binding-android-arm-eabi-0.80.0.tgz", + "integrity": "sha512-IKgbKL684l/0zb1yAIr7YkqmUsZmO6O02ELkb+78SLFsDJAJxCtPtLypHGUGNpeOrsdIHXIZMxYGo/9QYSHuhg==", + "cpu": [ + "arm" + ], + "dev": true, + "license": "MIT", + "optional": true, + "os": [ + "android" + ], + "engines": { + "node": "^20.19.0 || >=22.12.0" + } + }, + "node_modules/@oxfmt/binding-android-arm64": { + "version": "0.80.0", + "resolved": "https://registry.npmjs.org/@oxfmt/binding-android-arm64/-/binding-android-arm64-0.80.0.tgz", + "integrity": "sha512-fGqMAgBeKlE1CsnpKNuIlahJmJgYxLrOiwacsYdqK0fv8hu7flDAQN0MTa5joCoc0gfLV/RJKAKp0b6FsODGYQ==", + "cpu": [ + "arm64" + ], + "dev": true, + "license": "MIT", + "optional": true, + "os": [ + "android" + ], + "engines": { + "node": "^20.19.0 || >=22.12.0" + } + }, + "node_modules/@oxfmt/binding-darwin-arm64": { + "version": "0.80.0", + "resolved": "https://registry.npmjs.org/@oxfmt/binding-darwin-arm64/-/binding-darwin-arm64-0.80.0.tgz", + "integrity": "sha512-6EyFZdBrB+86OK/C4CqqqRwRPnp/sLxzFf1vWg8Ghd369zAyNLkxAu9JMXnzkXoW491j7X7cRNs/ayuFs7hMwg==", + "cpu": [ + "arm64" + ], + "dev": true, + "license": "MIT", + "optional": true, + "os": [ + "darwin" + ], + "engines": { + "node": "^20.19.0 || >=22.12.0" + } + }, + "node_modules/@oxfmt/binding-darwin-x64": { + "version": "0.80.0", + "resolved": "https://registry.npmjs.org/@oxfmt/binding-darwin-x64/-/binding-darwin-x64-0.80.0.tgz", + "integrity": "sha512-ZZEKe4O/3qrRTYcMWVBpfBN3+ANDwwEGt5FijDw4Q31zqXDj8WXfnytWsTGu0sh3nJ7tLbIzypY+oYRCfb9ffg==", + "cpu": [ + "x64" + ], + "dev": true, + "license": "MIT", + "optional": true, + "os": [ + "darwin" + ], + "engines": { + "node": "^20.19.0 || >=22.12.0" + } + }, + "node_modules/@oxfmt/binding-freebsd-x64": { + "version": "0.80.0", + "resolved": "https://registry.npmjs.org/@oxfmt/binding-freebsd-x64/-/binding-freebsd-x64-0.80.0.tgz", + "integrity": "sha512-yBTHy84SOBhag+A/KRMp0vctB0t5Vn6PjlVHfYWpqzWhWgvgktzdFplTSSV8Lu9oXY4Xr8EU+01N88J1S2tNCg==", + "cpu": [ + "x64" + ], + "dev": true, + "license": "MIT", + "optional": true, + "os": [ + "freebsd" + ], + "engines": { + "node": "^20.19.0 || >=22.12.0" + } + }, + "node_modules/@oxfmt/binding-linux-arm-gnueabihf": { + "version": "0.80.0", + "resolved": "https://registry.npmjs.org/@oxfmt/binding-linux-arm-gnueabihf/-/binding-linux-arm-gnueabihf-0.80.0.tgz", + "integrity": "sha512-HwSZYzbNF04nwduBcn0KZZ2kwnCuzEf8hCfsZ4bkRbDIzjIjhTsI6O3l+0sIKpU2F718szvkEfVPMkIksZ/NYQ==", + "cpu": [ + "arm" + ], + "dev": true, + "license": "MIT", + "optional": true, + "os": [ + "linux" + ], + "engines": { + "node": "^20.19.0 || >=22.12.0" + } + }, + "node_modules/@oxfmt/binding-linux-arm-musleabihf": { + "version": "0.80.0", + "resolved": "https://registry.npmjs.org/@oxfmt/binding-linux-arm-musleabihf/-/binding-linux-arm-musleabihf-0.80.0.tgz", + "integrity": "sha512-rVPpw9dRTiBLgxdfySNhKihMTPy1SPb1+y+EDrVK0aUj/k8pm51zTANKfFr9bMgVxcDuGO227QwzZRhT0WQcHQ==", + "cpu": [ + "arm" + ], + "dev": true, + "license": "MIT", + "optional": true, + "os": [ + "linux" + ], + "engines": { + "node": "^20.19.0 || >=22.12.0" + } + }, + "node_modules/@oxfmt/binding-linux-arm64-gnu": { + "version": "0.80.0", + "resolved": "https://registry.npmjs.org/@oxfmt/binding-linux-arm64-gnu/-/binding-linux-arm64-gnu-0.80.0.tgz", + "integrity": "sha512-1yZ3eWD9X2TcwpMt/SaQjlclyZqVVmBNh+62svgGBRZJIzWz4EIBq0ZMj5Unn20gzm3y9OLEnWdmJ4b9/izmLw==", + "cpu": [ + "arm64" + ], + "dev": true, + "libc": [ + "glibc" + ], + "license": "MIT", + "optional": true, + "os": [ + "linux" + ], + "engines": { + "node": "^20.19.0 || >=22.12.0" + } + }, + "node_modules/@oxfmt/binding-linux-arm64-musl": { + "version": "0.80.0", + "resolved": "https://registry.npmjs.org/@oxfmt/binding-linux-arm64-musl/-/binding-linux-arm64-musl-0.80.0.tgz", + "integrity": "sha512-FTCv1p32lqfXNmicCXvluPACYrqqMChrI4bVJWh8UrvwlaxO9YkF3toLu6MaESav0e3X/GA7BkK2c7wyok7qyQ==", + "cpu": [ + "arm64" + ], + "dev": true, + "libc": [ + "musl" + ], + "license": "MIT", + "optional": true, + "os": [ + "linux" + ], + "engines": { + "node": "^20.19.0 || >=22.12.0" + } + }, + "node_modules/@oxfmt/binding-linux-ppc64-gnu": { + "version": "0.80.0", + "resolved": "https://registry.npmjs.org/@oxfmt/binding-linux-ppc64-gnu/-/binding-linux-ppc64-gnu-0.80.0.tgz", + "integrity": "sha512-jl0ivd2WpjlWbe/sgcvW3E4CbJyxVXNBc9vVTSv1mNN28phPXczG97nXxWhdQu+oAikpXtyf5VAP41P4OT+48A==", + "cpu": [ + "ppc64" + ], + "dev": true, + "libc": [ + "glibc" + ], + "license": "MIT", + "optional": true, + "os": [ + "linux" + ], + "engines": { + "node": "^20.19.0 || >=22.12.0" + } + }, + "node_modules/@oxfmt/binding-linux-riscv64-gnu": { + "version": "0.80.0", + "resolved": "https://registry.npmjs.org/@oxfmt/binding-linux-riscv64-gnu/-/binding-linux-riscv64-gnu-0.80.0.tgz", + "integrity": "sha512-Iu6q6EsvYtGag7pxQl9HV/k+lEv9SbatZb4fyrWYwIFeAivAl9NNh7o4kizpzsfDOIFKWSmEPkbhzKrucSdQZg==", + "cpu": [ + "riscv64" + ], + "dev": true, + "libc": [ + "glibc" + ], + "license": "MIT", + "optional": true, + "os": [ + "linux" + ], + "engines": { + "node": "^20.19.0 || >=22.12.0" + } + }, + "node_modules/@oxfmt/binding-linux-riscv64-musl": { + "version": "0.80.0", + "resolved": "https://registry.npmjs.org/@oxfmt/binding-linux-riscv64-musl/-/binding-linux-riscv64-musl-0.80.0.tgz", + "integrity": "sha512-e6QIq9l1yHQuNp1u8+veTkQGOHBeayekax5ZfWoi2gwBGJoFVaq9Klovdt8wg/I8R+3eHQVB7yzhXekfMXozQw==", + "cpu": [ + "riscv64" + ], + "dev": true, + "libc": [ + "musl" + ], + "license": "MIT", + "optional": true, + "os": [ + "linux" + ], + "engines": { + "node": "^20.19.0 || >=22.12.0" + } + }, + "node_modules/@oxfmt/binding-linux-s390x-gnu": { + "version": "0.80.0", + "resolved": "https://registry.npmjs.org/@oxfmt/binding-linux-s390x-gnu/-/binding-linux-s390x-gnu-0.80.0.tgz", + "integrity": "sha512-Fqs2/RNU3MaHvGvLinaRIhZbXJV6MwloGnyK0COfHbF4oTmfgfmdXzrMgk/04DD+0RfdZvdF/82DoaWbYWgfqA==", + "cpu": [ + "s390x" + ], + "dev": true, + "libc": [ + "glibc" + ], + "license": "MIT", + "optional": true, + "os": [ + "linux" + ], + "engines": { + "node": "^20.19.0 || >=22.12.0" + } + }, + "node_modules/@oxfmt/binding-linux-x64-gnu": { + "version": "0.80.0", + "resolved": "https://registry.npmjs.org/@oxfmt/binding-linux-x64-gnu/-/binding-linux-x64-gnu-0.80.0.tgz", + "integrity": "sha512-5ZZBWDHwGYsqprHma9UwFXNJfkTo4IXu/obbxhz8y/qsQfl/k00HQsXZYBnIlytEWjE1tZZmSimjIObqj8Jyog==", + "cpu": [ + "x64" + ], + "dev": true, + "libc": [ + "glibc" + ], + "license": "MIT", + "optional": true, + "os": [ + "linux" + ], + "engines": { + "node": "^20.19.0 || >=22.12.0" + } + }, + "node_modules/@oxfmt/binding-linux-x64-musl": { + "version": "0.80.0", + "resolved": "https://registry.npmjs.org/@oxfmt/binding-linux-x64-musl/-/binding-linux-x64-musl-0.80.0.tgz", + "integrity": "sha512-3hbDeK3hijv3zyoZm0kONLkqJbfd4nr0cfFL/veo1chgcnovp9lyiuFiFltCqFKs0qnuEz7qA99mee0Pcm+fXw==", + "cpu": [ + "x64" + ], + "dev": true, + "libc": [ + "musl" + ], + "license": "MIT", + "optional": true, + "os": [ + "linux" + ], + "engines": { + "node": "^20.19.0 || >=22.12.0" + } + }, + "node_modules/@oxfmt/binding-openharmony-arm64": { + "version": "0.80.0", + "resolved": "https://registry.npmjs.org/@oxfmt/binding-openharmony-arm64/-/binding-openharmony-arm64-0.80.0.tgz", + "integrity": "sha512-5ThMiM6QKqfWaOxtzq+HaYyrWe48MGg49pDc9ll5KFvPEPo2Hqagz0JSk6hhZ3vOF/7tIhGIGu3mVnVuulwMQA==", + "cpu": [ + "arm64" + ], + "dev": true, + "license": "MIT", + "optional": true, + "os": [ + "openharmony" + ], + "engines": { + "node": "^20.19.0 || >=22.12.0" + } + }, + "node_modules/@oxfmt/binding-win32-arm64-msvc": { + "version": "0.80.0", + "resolved": "https://registry.npmjs.org/@oxfmt/binding-win32-arm64-msvc/-/binding-win32-arm64-msvc-0.80.0.tgz", + "integrity": "sha512-YEPyJo02Wc9fzHBqp8OofJVmb9i92PtYTfpUJ5oXmCOGjfiDoqVlIh7vGVts91LnKL8UZ3cyXuM3tuqPKoZ40g==", + "cpu": [ + "arm64" + ], + "dev": true, + "license": "MIT", + "optional": true, + "os": [ + "win32" + ], + "engines": { + "node": "^20.19.0 || >=22.12.0" + } + }, + "node_modules/@oxfmt/binding-win32-ia32-msvc": { + "version": "0.80.0", + "resolved": "https://registry.npmjs.org/@oxfmt/binding-win32-ia32-msvc/-/binding-win32-ia32-msvc-0.80.0.tgz", + "integrity": "sha512-vimQJkghBVQO/+YEe6ybFaqUd2oMl2srd/jJFGgVlpdSOIWmOVIsBv9dn9SyjzSFXJnhDrBCtU0pnTutjNWnSg==", + "cpu": [ + "ia32" + ], + "dev": true, + "license": "MIT", + "optional": true, + "os": [ + "win32" + ], + "engines": { + "node": "^20.19.0 || >=22.12.0" + } + }, + "node_modules/@oxfmt/binding-win32-x64-msvc": { + "version": "0.80.0", + "resolved": "https://registry.npmjs.org/@oxfmt/binding-win32-x64-msvc/-/binding-win32-x64-msvc-0.80.0.tgz", + "integrity": "sha512-kfJaMYppxdcTfZe+4Ify0uAVCgwEMFg/yp9WDnZ2Vh4KFd09dN5dgsomYDWN0UhzSTb9/OqDY3S7IczL+XOmaA==", + "cpu": [ + "x64" + ], + "dev": true, + "license": "MIT", + "optional": true, + "os": [ + "win32" + ], + "engines": { + "node": "^20.19.0 || >=22.12.0" + } + }, + "node_modules/@oxlint/binding-android-arm-eabi": { + "version": "1.95.0", + "resolved": "https://registry.npmjs.org/@oxlint/binding-android-arm-eabi/-/binding-android-arm-eabi-1.95.0.tgz", + "integrity": "sha512-hJna6w3COWJjfMPxomjZL82klTdrITm56PEpCsfO/xMkzQw/fNtJWauQ/YEwQqVttj0L5vDIa8rCcuhfAE3L4w==", + "cpu": [ + "arm" + ], + "dev": true, + "license": "MIT", + "optional": true, + "os": [ + "android" + ], + "engines": { + "node": "^20.19.0 || >=22.12.0" + } + }, + "node_modules/@oxlint/binding-android-arm64": { + "version": "1.95.0", + "resolved": "https://registry.npmjs.org/@oxlint/binding-android-arm64/-/binding-android-arm64-1.95.0.tgz", + "integrity": "sha512-uAIGZQ9uJVUeogeWOSboI3F7twOuM4mNuZcHXD9+LdYLcWp7J6kbtRUXJ6GVqcs5E0Cjb4emmSBK9FNrkGuhqQ==", + "cpu": [ + "arm64" + ], + "dev": true, + "license": "MIT", + "optional": true, + "os": [ + "android" + ], + "engines": { + "node": "^20.19.0 || >=22.12.0" + } + }, + "node_modules/@oxlint/binding-darwin-arm64": { + "version": "1.95.0", + "resolved": "https://registry.npmjs.org/@oxlint/binding-darwin-arm64/-/binding-darwin-arm64-1.95.0.tgz", + "integrity": "sha512-Ogh1vfHO5vshKRop/He46r+WqC5BTqonYwhB4fp9e2gvOFvg1Xi6XsHTuM/lBSH85ZcaG+DS99EMAy9GcwDong==", + "cpu": [ + "arm64" + ], + "dev": true, + "license": "MIT", + "optional": true, + "os": [ + "darwin" + ], + "engines": { + "node": "^20.19.0 || >=22.12.0" + } + }, + "node_modules/@oxlint/binding-darwin-x64": { + "version": "1.95.0", + "resolved": "https://registry.npmjs.org/@oxlint/binding-darwin-x64/-/binding-darwin-x64-1.95.0.tgz", + "integrity": "sha512-kTrE1xfpQUBMMS50Ws6KY92N8OsJ8LE6JqxKqkHEY3KdsmguQ6kKVGSjzyt1HLwsSi0fQCvNRog8YRBBovD1AA==", + "cpu": [ + "x64" + ], + "dev": true, + "license": "MIT", + "optional": true, + "os": [ + "darwin" + ], + "engines": { + "node": "^20.19.0 || >=22.12.0" + } + }, + "node_modules/@oxlint/binding-freebsd-x64": { + "version": "1.95.0", + "resolved": "https://registry.npmjs.org/@oxlint/binding-freebsd-x64/-/binding-freebsd-x64-1.95.0.tgz", + "integrity": "sha512-ho7E1VCInK0VnpneRaI1BEpe1ceJE8VjxP2O9THWdReV6bth1Q4+80kYVGGK47mHRyZ2NGztQZ2dWRo6j1lavA==", + "cpu": [ + "x64" + ], + "dev": true, + "license": "MIT", + "optional": true, + "os": [ + "freebsd" + ], + "engines": { + "node": "^20.19.0 || >=22.12.0" + } + }, + "node_modules/@oxlint/binding-linux-arm-gnueabihf": { + "version": "1.95.0", + "resolved": "https://registry.npmjs.org/@oxlint/binding-linux-arm-gnueabihf/-/binding-linux-arm-gnueabihf-1.95.0.tgz", + "integrity": "sha512-94afnouMHcnHr/OtRh07gG5LehC9M0GjiSoik3xxTtrmq6cWxXOTAhYlBtxa67u/GlycbnHlDoGJfYlTshcr/w==", + "cpu": [ + "arm" + ], + "dev": true, + "license": "MIT", + "optional": true, + "os": [ + "linux" + ], + "engines": { + "node": "^20.19.0 || >=22.12.0" + } + }, + "node_modules/@oxlint/binding-linux-arm-musleabihf": { + "version": "1.95.0", + "resolved": "https://registry.npmjs.org/@oxlint/binding-linux-arm-musleabihf/-/binding-linux-arm-musleabihf-1.95.0.tgz", + "integrity": "sha512-LEeclqV1/fafxPgJWN21Bri6HBBBZpEFluq/ZH7Avvu9HjJh/XOn6WwogJqX9X7pG2aITZ2nRH39+sUKEQt2WA==", + "cpu": [ + "arm" + ], + "dev": true, + "license": "MIT", + "optional": true, + "os": [ + "linux" + ], + "engines": { + "node": "^20.19.0 || >=22.12.0" + } + }, + "node_modules/@oxlint/binding-linux-arm64-gnu": { + "version": "1.95.0", + "resolved": "https://registry.npmjs.org/@oxlint/binding-linux-arm64-gnu/-/binding-linux-arm64-gnu-1.95.0.tgz", + "integrity": "sha512-EpXpEQKmgtkvc6RyU84LM1e3CrVDWQkgghVzf1hMGgwjBzgKAJ/QntHgnzmu5cNeLBfa7GPCY+gGXxEll8Adcg==", + "cpu": [ + "arm64" + ], + "dev": true, + "libc": [ + "glibc" + ], + "license": "MIT", + "optional": true, + "os": [ + "linux" + ], + "engines": { + "node": "^20.19.0 || >=22.12.0" + } + }, + "node_modules/@oxlint/binding-linux-arm64-musl": { + "version": "1.95.0", + "resolved": "https://registry.npmjs.org/@oxlint/binding-linux-arm64-musl/-/binding-linux-arm64-musl-1.95.0.tgz", + "integrity": "sha512-+96Md8c2BAgFp8nWHrUrpqba87DoU+HVJYIun6qA+QKFoeNd3xAWq1JYE6da4nVli9GgwRpfncfRePcgmQQaIQ==", + "cpu": [ + "arm64" + ], + "dev": true, + "libc": [ + "musl" + ], + "license": "MIT", + "optional": true, + "os": [ + "linux" + ], + "engines": { + "node": "^20.19.0 || >=22.12.0" + } + }, + "node_modules/@oxlint/binding-linux-ppc64-gnu": { + "version": "1.95.0", + "resolved": "https://registry.npmjs.org/@oxlint/binding-linux-ppc64-gnu/-/binding-linux-ppc64-gnu-1.95.0.tgz", + "integrity": "sha512-6yG99vsXct3Uv536w6Z1s03w2makRKnE0q3eJSmf+W/IwPmO56QLk8XUA6ebu/R5peCbJ67HmcWqACH+kg/6Bg==", + "cpu": [ + "ppc64" + ], + "dev": true, + "libc": [ + "glibc" + ], + "license": "MIT", + "optional": true, + "os": [ + "linux" + ], + "engines": { + "node": "^20.19.0 || >=22.12.0" + } + }, + "node_modules/@oxlint/binding-linux-riscv64-gnu": { + "version": "1.95.0", + "resolved": "https://registry.npmjs.org/@oxlint/binding-linux-riscv64-gnu/-/binding-linux-riscv64-gnu-1.95.0.tgz", + "integrity": "sha512-Eir0Z4ldh55AsQUqVDlLF4Pw3lSFXIdAl8ZNgU8tp/gTwT9JVCzWY0o3+ys9pCcpTN0vCqBwwuQfAUxzbIgvcQ==", + "cpu": [ + "riscv64" + ], + "dev": true, + "libc": [ + "glibc" + ], + "license": "MIT", + "optional": true, + "os": [ + "linux" + ], + "engines": { + "node": "^20.19.0 || >=22.12.0" + } + }, + "node_modules/@oxlint/binding-linux-riscv64-musl": { + "version": "1.95.0", + "resolved": "https://registry.npmjs.org/@oxlint/binding-linux-riscv64-musl/-/binding-linux-riscv64-musl-1.95.0.tgz", + "integrity": "sha512-ceRx+K2WJ7C3tIv+XjZS28oAoZ7DY29ZcWChPdXG5M100phI72FRDYwGRlWZEeDfmkROnarLTMKnnrQAtsC42Q==", + "cpu": [ + "riscv64" + ], + "dev": true, + "libc": [ + "musl" + ], + "license": "MIT", + "optional": true, + "os": [ + "linux" + ], + "engines": { + "node": "^20.19.0 || >=22.12.0" + } + }, + "node_modules/@oxlint/binding-linux-s390x-gnu": { + "version": "1.95.0", + "resolved": "https://registry.npmjs.org/@oxlint/binding-linux-s390x-gnu/-/binding-linux-s390x-gnu-1.95.0.tgz", + "integrity": "sha512-WbD3sM08ZDk2QE6060wK/omihQKbRm+LVzKIg4W5zNTbEhYJChciqX49UZuqW59RGF+wBUxzAup7egUIESTjUA==", + "cpu": [ + "s390x" + ], + "dev": true, + "libc": [ + "glibc" + ], + "license": "MIT", + "optional": true, + "os": [ + "linux" + ], + "engines": { + "node": "^20.19.0 || >=22.12.0" + } + }, + "node_modules/@oxlint/binding-linux-x64-gnu": { + "version": "1.95.0", + "resolved": "https://registry.npmjs.org/@oxlint/binding-linux-x64-gnu/-/binding-linux-x64-gnu-1.95.0.tgz", + "integrity": "sha512-F4ST2ZkFIiLL9OKyRCyC0KQQpwM5WIv0GTcMiZuYVa6xSRJHR05iVRqst+arOVudEPkhP47EnbuoC9UfVCYDyg==", + "cpu": [ + "x64" + ], + "dev": true, + "libc": [ + "glibc" + ], + "license": "MIT", + "optional": true, + "os": [ + "linux" + ], + "engines": { + "node": "^20.19.0 || >=22.12.0" + } + }, + "node_modules/@oxlint/binding-linux-x64-musl": { + "version": "1.95.0", + "resolved": "https://registry.npmjs.org/@oxlint/binding-linux-x64-musl/-/binding-linux-x64-musl-1.95.0.tgz", + "integrity": "sha512-hEpYDZatpuxLrWlTlkwhHZ1e8QkL02aFS55BPQX1XA9iOd+yUEADGFF1iY6z+xkw6RkpzXFrtnDFe4/JNOLSRA==", + "cpu": [ + "x64" + ], + "dev": true, + "libc": [ + "musl" + ], + "license": "MIT", + "optional": true, + "os": [ + "linux" + ], + "engines": { + "node": "^20.19.0 || >=22.12.0" + } + }, + "node_modules/@oxlint/binding-openharmony-arm64": { + "version": "1.95.0", + "resolved": "https://registry.npmjs.org/@oxlint/binding-openharmony-arm64/-/binding-openharmony-arm64-1.95.0.tgz", + "integrity": "sha512-+JwIH9/uLgQXfxBvOAKzvp616m5i0fBR5ELEBHm5D+++fStBZ+74T7YW4xBpX13zNU2blr52Swoe3GTF1JyqRg==", + "cpu": [ + "arm64" + ], + "dev": true, + "license": "MIT", + "optional": true, + "os": [ + "openharmony" + ], + "engines": { + "node": "^20.19.0 || >=22.12.0" + } + }, + "node_modules/@oxlint/binding-win32-arm64-msvc": { + "version": "1.95.0", + "resolved": "https://registry.npmjs.org/@oxlint/binding-win32-arm64-msvc/-/binding-win32-arm64-msvc-1.95.0.tgz", + "integrity": "sha512-pzJgcp3WkOSchukg5y5pn5mVIQ6P83RDI79YJ9gQZKed1pOgjhrmlc5AMizjuq6/P8VifhxzBsMqYI6LLjO2TA==", + "cpu": [ + "arm64" + ], + "dev": true, + "license": "MIT", + "optional": true, + "os": [ + "win32" + ], + "engines": { + "node": "^20.19.0 || >=22.12.0" + } + }, + "node_modules/@oxlint/binding-win32-ia32-msvc": { + "version": "1.95.0", + "resolved": "https://registry.npmjs.org/@oxlint/binding-win32-ia32-msvc/-/binding-win32-ia32-msvc-1.95.0.tgz", + "integrity": "sha512-54MeQvLRXkJqF1nEFs7wb73SrnurZJQy9fVK4NdEwumNKVwyUUxpGHhvfDMIY2NqJZS7kz0pY9uVty5664Gt1Q==", + "cpu": [ + "ia32" + ], + "dev": true, + "license": "MIT", + "optional": true, + "os": [ + "win32" + ], + "engines": { + "node": "^20.19.0 || >=22.12.0" + } + }, + "node_modules/@oxlint/binding-win32-x64-msvc": { + "version": "1.95.0", + "resolved": "https://registry.npmjs.org/@oxlint/binding-win32-x64-msvc/-/binding-win32-x64-msvc-1.95.0.tgz", + "integrity": "sha512-I/Fn+Fed1qzb1k2uRjMe2VRtRN1+ZObyU+E76B6v/Ul3Z6JdeAW5zBHSe0n5d8a0ZyU4iorzVy0Rw9LYgo3MSQ==", + "cpu": [ + "x64" + ], + "dev": true, + "license": "MIT", + "optional": true, + "os": [ + "win32" + ], + "engines": { + "node": "^20.19.0 || >=22.12.0" + } + }, + "node_modules/@parcel/watcher": { + "version": "2.6.0", + "resolved": "https://registry.npmjs.org/@parcel/watcher/-/watcher-2.6.0.tgz", + "integrity": "sha512-7FNeNl8NCE7aINx7WXiKQrPYZWC/hvrTsmk6zmxbI7LTXE7hVek/n8AfVgpe2y82zl3w0HvCHN0bVKMBoJcC0w==", + "dev": true, + "hasInstallScript": true, + "license": "MIT", + "dependencies": { + "detect-libc": "^2.0.3", + "is-glob": "^4.0.3", + "node-addon-api": "^7.0.0", + "picomatch": "^4.0.4" + }, + "engines": { + "node": ">= 10.0.0" + }, + "funding": { + "type": "opencollective", + "url": "https://opencollective.com/parcel" + }, + "optionalDependencies": { + "@parcel/watcher-android-arm64": "2.6.0", + "@parcel/watcher-darwin-arm64": "2.6.0", + "@parcel/watcher-darwin-x64": "2.6.0", + "@parcel/watcher-freebsd-x64": "2.6.0", + "@parcel/watcher-linux-arm-glibc": "2.6.0", + "@parcel/watcher-linux-arm-musl": "2.6.0", + "@parcel/watcher-linux-arm64-glibc": "2.6.0", + "@parcel/watcher-linux-arm64-musl": "2.6.0", + "@parcel/watcher-linux-x64-glibc": "2.6.0", + "@parcel/watcher-linux-x64-musl": "2.6.0", + "@parcel/watcher-win32-arm64": "2.6.0", + "@parcel/watcher-win32-x64": "2.6.0" + } + }, + "node_modules/@parcel/watcher-android-arm64": { + "version": "2.6.0", + "resolved": "https://registry.npmjs.org/@parcel/watcher-android-arm64/-/watcher-android-arm64-2.6.0.tgz", + "integrity": "sha512-trgpLSCKRC/huFjXX/Smh+0sWe4+YtKfktIToiMl59ghz7z+qkH6kMvNnUbLyRs9N11t8l4svSCs1+5B3rOAhA==", + "cpu": [ + "arm64" + ], + "dev": true, + "license": "MIT", + "optional": true, + "os": [ + "android" + ], + "engines": { + "node": ">= 10.0.0" + }, + "funding": { + "type": "opencollective", + "url": "https://opencollective.com/parcel" + } + }, + "node_modules/@parcel/watcher-darwin-arm64": { + "version": "2.6.0", + "resolved": "https://registry.npmjs.org/@parcel/watcher-darwin-arm64/-/watcher-darwin-arm64-2.6.0.tgz", + "integrity": "sha512-Y3QV0gl7Q1zbfueunkWIERICbEojQFCgpyG7YqOGNFLsckXyI1xu9mAIUpKY9QBYzBtSkN8dBPwd3yiAO9ovMw==", + "cpu": [ + "arm64" + ], + "dev": true, + "license": "MIT", + "optional": true, + "os": [ + "darwin" + ], + "engines": { + "node": ">= 10.0.0" + }, + "funding": { + "type": "opencollective", + "url": "https://opencollective.com/parcel" + } + }, + "node_modules/@parcel/watcher-darwin-x64": { + "version": "2.6.0", + "resolved": "https://registry.npmjs.org/@parcel/watcher-darwin-x64/-/watcher-darwin-x64-2.6.0.tgz", + "integrity": "sha512-Ohv6OpzhUfKYD7Beb8kDvG0jbIxORCYY1JRdZnaBtnjjkJxgD7ZVL0nw2sCYd0yTMKTvz3nnTnOF3cDifK+kvw==", + "cpu": [ + "x64" + ], + "dev": true, + "license": "MIT", + "optional": true, + "os": [ + "darwin" + ], + "engines": { + "node": ">= 10.0.0" + }, + "funding": { + "type": "opencollective", + "url": "https://opencollective.com/parcel" + } + }, + "node_modules/@parcel/watcher-freebsd-x64": { + "version": "2.6.0", + "resolved": "https://registry.npmjs.org/@parcel/watcher-freebsd-x64/-/watcher-freebsd-x64-2.6.0.tgz", + "integrity": "sha512-5HmXvDgs8VK+74jF9y9/2FE3/OnlcKmc56tjmSrEuZjpSZOGL+fvAu+HKJBdPs9uwoP2hE6TlSUpXZ/C5jUFmQ==", + "cpu": [ + "x64" + ], + "dev": true, + "license": "MIT", + "optional": true, + "os": [ + "freebsd" + ], + "engines": { + "node": ">= 10.0.0" + }, + "funding": { + "type": "opencollective", + "url": "https://opencollective.com/parcel" + } + }, + "node_modules/@parcel/watcher-linux-arm-glibc": { + "version": "2.6.0", + "resolved": "https://registry.npmjs.org/@parcel/watcher-linux-arm-glibc/-/watcher-linux-arm-glibc-2.6.0.tgz", + "integrity": "sha512-Ps/hui3A+vMbjdqlqAowK2ZL8+BO8dBjxeWXj6npTBs3jx4wWmbPpaLuqwrQrSqIVMCnpWo238bJ1U37GhQOYg==", + "cpu": [ + "arm" + ], + "dev": true, + "libc": [ + "glibc" + ], + "license": "MIT", + "optional": true, + "os": [ + "linux" + ], + "engines": { + "node": ">= 10.0.0" + }, + "funding": { + "type": "opencollective", + "url": "https://opencollective.com/parcel" + } + }, + "node_modules/@parcel/watcher-linux-arm-musl": { + "version": "2.6.0", + "resolved": "https://registry.npmjs.org/@parcel/watcher-linux-arm-musl/-/watcher-linux-arm-musl-2.6.0.tgz", + "integrity": "sha512-9c6AUHgHoG+IY88MRIHupztQiQnrbqHYQjkM2btA+Bf/wQnQMuiD0Wfk1EVv3TlNT3x41uU71rn6E4xh/+zvkw==", + "cpu": [ + "arm" + ], + "dev": true, + "libc": [ + "musl" + ], + "license": "MIT", + "optional": true, + "os": [ + "linux" + ], + "engines": { + "node": ">= 10.0.0" + }, + "funding": { + "type": "opencollective", + "url": "https://opencollective.com/parcel" + } + }, + "node_modules/@parcel/watcher-linux-arm64-glibc": { + "version": "2.6.0", + "resolved": "https://registry.npmjs.org/@parcel/watcher-linux-arm64-glibc/-/watcher-linux-arm64-glibc-2.6.0.tgz", + "integrity": "sha512-yHRqS2owEXe6Hic9z6Mh1ECsCd+ODVOGvZDyciqRd21+v+o+DnXMOrw50DSpIG2sb8GPEaPPmfeCAWKPJdq46g==", + "cpu": [ + "arm64" + ], + "dev": true, + "libc": [ + "glibc" + ], + "license": "MIT", + "optional": true, + "os": [ + "linux" + ], + "engines": { + "node": ">= 10.0.0" + }, + "funding": { + "type": "opencollective", + "url": "https://opencollective.com/parcel" + } + }, + "node_modules/@parcel/watcher-linux-arm64-musl": { + "version": "2.6.0", + "resolved": "https://registry.npmjs.org/@parcel/watcher-linux-arm64-musl/-/watcher-linux-arm64-musl-2.6.0.tgz", + "integrity": "sha512-WhB2e/V7rqdHHWZusBSPuy5Ei8S6lSz6FE5TKKQz5h3a0O+C+mhY7vxU9b/stqvMb8beLnPY82ZrFTLKs+SrKA==", + "cpu": [ + "arm64" + ], + "dev": true, + "libc": [ + "musl" + ], + "license": "MIT", + "optional": true, + "os": [ + "linux" + ], + "engines": { + "node": ">= 10.0.0" + }, + "funding": { + "type": "opencollective", + "url": "https://opencollective.com/parcel" + } + }, + "node_modules/@parcel/watcher-linux-x64-glibc": { + "version": "2.6.0", + "resolved": "https://registry.npmjs.org/@parcel/watcher-linux-x64-glibc/-/watcher-linux-x64-glibc-2.6.0.tgz", + "integrity": "sha512-ulGE6x6Oz6iAwg75T8YQSoguBWasniIbX+QWpaYPcCnDOpdWX3k+4xbEYPZVLxOuoJI+svJJPD3sEj8G7lrQ3A==", + "cpu": [ + "x64" + ], + "dev": true, + "libc": [ + "glibc" + ], + "license": "MIT", + "optional": true, + "os": [ + "linux" + ], + "engines": { + "node": ">= 10.0.0" + }, + "funding": { + "type": "opencollective", + "url": "https://opencollective.com/parcel" + } + }, + "node_modules/@parcel/watcher-linux-x64-musl": { + "version": "2.6.0", + "resolved": "https://registry.npmjs.org/@parcel/watcher-linux-x64-musl/-/watcher-linux-x64-musl-2.6.0.tgz", + "integrity": "sha512-tkBYKt7YQrjIJWYDnto2YgO8MRkjlMTSNoRHzsXinBqbLdeOM3L32wPZJvIZxqaLMfSlS/4sUjH/6STVP/XDLw==", + "cpu": [ + "x64" + ], + "dev": true, + "libc": [ + "musl" + ], + "license": "MIT", + "optional": true, + "os": [ + "linux" + ], + "engines": { + "node": ">= 10.0.0" + }, + "funding": { + "type": "opencollective", + "url": "https://opencollective.com/parcel" + } + }, + "node_modules/@parcel/watcher-win32-arm64": { + "version": "2.6.0", + "resolved": "https://registry.npmjs.org/@parcel/watcher-win32-arm64/-/watcher-win32-arm64-2.6.0.tgz", + "integrity": "sha512-gIZAP23jaHjGWasY/TY6yL7NHFClf0Ga7FN+iINvk+KN94rhm94lYZhFsbYFNcA04/onvGD9kKmiJLJB2HbNwQ==", + "cpu": [ + "arm64" + ], + "dev": true, + "license": "MIT", + "optional": true, + "os": [ + "win32" + ], + "engines": { + "node": ">= 10.0.0" + }, + "funding": { + "type": "opencollective", + "url": "https://opencollective.com/parcel" + } + }, + "node_modules/@parcel/watcher-win32-x64": { + "version": "2.6.0", + "resolved": "https://registry.npmjs.org/@parcel/watcher-win32-x64/-/watcher-win32-x64-2.6.0.tgz", + "integrity": "sha512-cA+/pXV2YkfxlIcXOQ5fSWqAzzPyD78/x5qbK/I0vUkrlYHA8TIz+MXjAbGouguKVSI4bOmkTSJ1/poVSsgt+A==", + "cpu": [ + "x64" + ], + "dev": true, + "license": "MIT", + "optional": true, + "os": [ + "win32" + ], + "engines": { + "node": ">= 10.0.0" + }, + "funding": { + "type": "opencollective", + "url": "https://opencollective.com/parcel" + } + }, + "node_modules/@pkgjs/parseargs": { + "version": "0.11.0", + "resolved": "https://registry.npmjs.org/@pkgjs/parseargs/-/parseargs-0.11.0.tgz", + "integrity": "sha512-+1VkjdD0QBLPodGrJUeqarH8VAIvQODIbwh9XpP5Syisf7YoQgsJKPNFoqqLQlu+VQ/tVSshMR6loPMn8U+dPg==", + "dev": true, + "license": "MIT", + "optional": true, + "engines": { + "node": ">=14" + } + }, + "node_modules/@pkgr/core": { + "version": "0.3.6", + "resolved": "https://registry.npmjs.org/@pkgr/core/-/core-0.3.6.tgz", + "integrity": "sha512-SEeaJLb3qBNF/OaXnaR1NmmBbFYk1zC0ZH/52fATcRPLFg/p791YrcyFFy44Bo9sLaGuSuLp5Q6axbb/O+v/RA==", + "dev": true, + "license": "MIT", + "engines": { + "node": "^14.18.0 || >=16.0.0" + }, + "funding": { + "url": "https://opencollective.com/pkgr" + } + }, + "node_modules/@sinclair/typebox": { + "version": "0.34.52", + "resolved": "https://registry.npmjs.org/@sinclair/typebox/-/typebox-0.34.52.tgz", + "integrity": "sha512-XiMQh7qqVlxZzcVD+kkGMNGMzcTrDMLWI7S4x7z1MkCkbDPrekpZXEUK0eZqZFMuHQg2a2DZOcDIh9o5v3Gonw==", + "dev": true, + "license": "MIT" + }, + "node_modules/@sinonjs/commons": { + "version": "3.0.1", + "resolved": "https://registry.npmjs.org/@sinonjs/commons/-/commons-3.0.1.tgz", + "integrity": "sha512-K3mCHKQ9sVh8o1C9cxkwxaOmXoAMlDxC1mYyHrjqOWEcBjYr76t96zL2zlj5dUGZ3HSw240X1qgH3Mjf1yJWpQ==", + "dev": true, + "license": "BSD-3-Clause", + "dependencies": { + "type-detect": "4.0.8" + } + }, + "node_modules/@sinonjs/fake-timers": { + "version": "15.5.0", + "resolved": "https://registry.npmjs.org/@sinonjs/fake-timers/-/fake-timers-15.5.0.tgz", + "integrity": "sha512-i7HpIYIsUmdSTQbtBjs2b3VqMgDsVDWfzVPV3MuUrXVqJNZmzFB8YJeM9SPms2bGg5zg7HvKH31sPS1WoLLRFg==", + "dev": true, + "license": "BSD-3-Clause", + "dependencies": { + "@sinonjs/commons": "^3.0.1" + } + }, + "node_modules/@standard-schema/spec": { + "version": "1.1.0", + "resolved": "https://registry.npmjs.org/@standard-schema/spec/-/spec-1.1.0.tgz", + "integrity": "sha512-l2aFy5jALhniG5HgqrD6jXLi/rUWrKvqN/qJx6yoJsgKhblVd+iqqU4RCXavm/jPityDo5TCvKMnpjKnOriy0w==", + "dev": true, + "license": "MIT" + }, + "node_modules/@tybys/wasm-util": { + "version": "0.10.5", + "resolved": "https://registry.npmjs.org/@tybys/wasm-util/-/wasm-util-0.10.5.tgz", + "integrity": "sha512-dOGOPxlaNV+G046mZzN+9C0dAcQZeSKcXiVaM0TYy/LM4ttTmgSBDxYfovcYI8Em3+eAbiAYpvWLOv8+ZVRJKA==", + "dev": true, + "license": "MIT", + "optional": true, + "dependencies": { + "tslib": "^2.4.0" + } + }, + "node_modules/@types/babel__core": { + "version": "7.20.5", + "resolved": "https://registry.npmjs.org/@types/babel__core/-/babel__core-7.20.5.tgz", + "integrity": "sha512-qoQprZvz5wQFJwMDqeseRXWv3rqMvhgpbXFfVyWhbx9X47POIA6i/+dXefEmZKoAgOaTdaIgNSMqMIU61yRyzA==", + "dev": true, + "license": "MIT", + "dependencies": { + "@babel/parser": "^7.20.7", + "@babel/types": "^7.20.7", + "@types/babel__generator": "*", + "@types/babel__template": "*", + "@types/babel__traverse": "*" + } + }, + "node_modules/@types/babel__generator": { + "version": "7.27.0", + "resolved": "https://registry.npmjs.org/@types/babel__generator/-/babel__generator-7.27.0.tgz", + "integrity": "sha512-ufFd2Xi92OAVPYsy+P4n7/U7e68fex0+Ee8gSG9KX7eo084CWiQ4sdxktvdl0bOPupXtVJPY19zk6EwWqUQ8lg==", + "dev": true, + "license": "MIT", + "dependencies": { + "@babel/types": "^7.0.0" + } + }, + "node_modules/@types/babel__template": { + "version": "7.4.4", + "resolved": "https://registry.npmjs.org/@types/babel__template/-/babel__template-7.4.4.tgz", + "integrity": "sha512-h/NUaSyG5EyxBIp8YRxo4RMe2/qQgvyowRwVMzhYhBCONbW8PUsg4lkFMrhgZhUe5z3L3MiLDuvyJ/CaPa2A8A==", + "dev": true, + "license": "MIT", + "dependencies": { + "@babel/parser": "^7.1.0", + "@babel/types": "^7.0.0" + } + }, + "node_modules/@types/babel__traverse": { + "version": "7.28.0", + "resolved": "https://registry.npmjs.org/@types/babel__traverse/-/babel__traverse-7.28.0.tgz", + "integrity": "sha512-8PvcXf70gTDZBgt9ptxJ8elBeBjcLOAcOtoO/mPJjtji1+CdGbHgm77om1GrsPxsiE+uXIpNSK64UYaIwQXd4Q==", + "dev": true, + "license": "MIT", + "dependencies": { + "@babel/types": "^7.28.2" + } + }, + "node_modules/@types/istanbul-lib-coverage": { + "version": "2.0.6", + "resolved": "https://registry.npmjs.org/@types/istanbul-lib-coverage/-/istanbul-lib-coverage-2.0.6.tgz", + "integrity": "sha512-2QF/t/auWm0lsy8XtKVPG19v3sSOQlJe/YHZgfjb/KBBHOGSV+J2q/S671rcq9uTBrLAXmZpqJiaQbMT+zNU1w==", + "dev": true, + "license": "MIT" + }, + "node_modules/@types/istanbul-lib-report": { + "version": "3.0.3", + "resolved": "https://registry.npmjs.org/@types/istanbul-lib-report/-/istanbul-lib-report-3.0.3.tgz", + "integrity": "sha512-NQn7AHQnk/RSLOxrBbGyJM/aVQ+pjj5HCgasFxc0K/KhoATfQ/47AyUl15I2yBUpihjmas+a+VJBOqecrFH+uA==", + "dev": true, + "license": "MIT", + "dependencies": { + "@types/istanbul-lib-coverage": "*" + } + }, + "node_modules/@types/istanbul-reports": { + "version": "3.0.4", + "resolved": "https://registry.npmjs.org/@types/istanbul-reports/-/istanbul-reports-3.0.4.tgz", + "integrity": "sha512-pk2B1NWalF9toCRu6gjBzR69syFjP4Od8WRAX+0mmf9lAjCRicLOWc+ZrxZHx/0XRjotgkF9t6iaMJ+aXcOdZQ==", + "dev": true, + "license": "MIT", + "dependencies": { + "@types/istanbul-lib-report": "*" + } + }, + "node_modules/@types/jest": { + "version": "30.0.0", + "resolved": "https://registry.npmjs.org/@types/jest/-/jest-30.0.0.tgz", + "integrity": "sha512-XTYugzhuwqWjws0CVz8QpM36+T+Dz5mTEBKhNs/esGLnCIlGdRy+Dq78NRjd7ls7r8BC8ZRMOrKlkO1hU0JOwA==", + "dev": true, + "license": "MIT", + "dependencies": { + "expect": "^30.0.0", + "pretty-format": "^30.0.0" + } + }, + "node_modules/@types/node": { + "version": "22.20.7", + "resolved": "https://registry.npmjs.org/@types/node/-/node-22.20.7.tgz", + "integrity": "sha512-F/Mcc4pD3YwXQCG50hb8BjB5RmrOere6hge7n2XHf0V8tpkZOVEjwYv9Ql7n0MpMn8Bv7+q12P9w6UHsBm0Sfw==", + "dev": true, + "license": "MIT", + "dependencies": { + "undici-types": "~6.21.0" + } + }, + "node_modules/@types/stack-utils": { + "version": "2.0.3", + "resolved": "https://registry.npmjs.org/@types/stack-utils/-/stack-utils-2.0.3.tgz", + "integrity": "sha512-9aEbYZ3TbYMznPdcdr3SmIrLXwC/AKZXQeCf9Pgao5CKb8CyHuEX5jzWPTkvregvhRJHcpRO6BFoGW9ycaOkYw==", + "dev": true, + "license": "MIT" + }, + "node_modules/@types/yargs": { + "version": "17.0.35", + "resolved": "https://registry.npmjs.org/@types/yargs/-/yargs-17.0.35.tgz", + "integrity": "sha512-qUHkeCyQFxMXg79wQfTtfndEC+N9ZZg76HJftDJp+qH2tV7Gj4OJi7l+PiWwJ+pWtW8GwSmqsDj/oymhrTWXjg==", + "dev": true, + "license": "MIT", + "dependencies": { + "@types/yargs-parser": "*" + } + }, + "node_modules/@types/yargs-parser": { + "version": "21.0.3", + "resolved": "https://registry.npmjs.org/@types/yargs-parser/-/yargs-parser-21.0.3.tgz", + "integrity": "sha512-I4q9QU9MQv4oEOz4tAHJtNz1cwuLxn2F3xcc2iV5WdqLPpUnj30aUuxt1mAxYTG+oe8CZMV/+6rU4S4gRDzqtQ==", + "dev": true, + "license": "MIT" + }, + "node_modules/@typescript/typescript-aix-ppc64": { + "version": "7.0.2", + "resolved": "https://registry.npmjs.org/@typescript/typescript-aix-ppc64/-/typescript-aix-ppc64-7.0.2.tgz", + "integrity": "sha512-MTKKkWB7p/0E9xi1d1tHtZ5PiLkGEMIq88pK2CubZjOsLtYTLqhgIgi6zepFa+9GHZ6h05NMCkQxGKiPXMxXtQ==", + "cpu": [ + "ppc64" + ], + "dev": true, + "license": "Apache-2.0", + "optional": true, + "os": [ + "aix" + ], + "engines": { + "node": ">=16.20.0" + } + }, + "node_modules/@typescript/typescript-darwin-arm64": { + "version": "7.0.2", + "resolved": "https://registry.npmjs.org/@typescript/typescript-darwin-arm64/-/typescript-darwin-arm64-7.0.2.tgz", + "integrity": "sha512-gowzar9MwS/aRWp6f3a4KUqzRjAZjOsmGNCM6LcTgXum+dBfgsBVMN+AgvOCCbguXyick6LJhpBszxMebJ8syA==", + "cpu": [ + "arm64" + ], + "dev": true, + "license": "Apache-2.0", + "optional": true, + "os": [ + "darwin" + ], + "engines": { + "node": ">=16.20.0" + } + }, + "node_modules/@typescript/typescript-darwin-x64": { + "version": "7.0.2", + "resolved": "https://registry.npmjs.org/@typescript/typescript-darwin-x64/-/typescript-darwin-x64-7.0.2.tgz", + "integrity": "sha512-SZ9xZInqApNlNGc9s0W1VSsktYSOe9cFqNOIqmN1Gs8SmkjKZYFt017G4VwPxASInODuAdbTW7sXiFUf893RgA==", + "cpu": [ + "x64" + ], + "dev": true, + "license": "Apache-2.0", + "optional": true, + "os": [ + "darwin" + ], + "engines": { + "node": ">=16.20.0" + } + }, + "node_modules/@typescript/typescript-freebsd-arm64": { + "version": "7.0.2", + "resolved": "https://registry.npmjs.org/@typescript/typescript-freebsd-arm64/-/typescript-freebsd-arm64-7.0.2.tgz", + "integrity": "sha512-W5NH4y/J0plIIS5b2xvTEkU7JFxyqdMAOgf+Ilhl0vHQXKO5dZoxd+C/jEtq56c4F3wk71RB4BMRQ2XdI+bwYQ==", + "cpu": [ + "arm64" + ], + "dev": true, + "license": "Apache-2.0", + "optional": true, + "os": [ + "freebsd" + ], + "engines": { + "node": ">=16.20.0" + } + }, + "node_modules/@typescript/typescript-freebsd-x64": { + "version": "7.0.2", + "resolved": "https://registry.npmjs.org/@typescript/typescript-freebsd-x64/-/typescript-freebsd-x64-7.0.2.tgz", + "integrity": "sha512-UMGDx5sTpzNw3WiPebH7l90IWfJggEd+egHt/q6p7/Cm3zqoV7VxkGXt+3DxPIw8CcmvAB0j3sVVfbhX+M4Tpw==", + "cpu": [ + "x64" + ], + "dev": true, + "license": "Apache-2.0", + "optional": true, + "os": [ + "freebsd" + ], + "engines": { + "node": ">=16.20.0" + } + }, + "node_modules/@typescript/typescript-linux-arm": { + "version": "7.0.2", + "resolved": "https://registry.npmjs.org/@typescript/typescript-linux-arm/-/typescript-linux-arm-7.0.2.tgz", + "integrity": "sha512-gffT3xPz9sR7j/YJExkyPntrI0P2EP9XbOyWzth2/Gs0RstK+90RBcO0ncXoXy/beYll1SXw846Nf2zdnEz0QQ==", + "cpu": [ + "arm" + ], + "dev": true, + "license": "Apache-2.0", + "optional": true, + "os": [ + "linux" + ], + "engines": { + "node": ">=16.20.0" + } + }, + "node_modules/@typescript/typescript-linux-arm64": { + "version": "7.0.2", + "resolved": "https://registry.npmjs.org/@typescript/typescript-linux-arm64/-/typescript-linux-arm64-7.0.2.tgz", + "integrity": "sha512-Qh4eU4/y3yDjnfjjyPYihMj5/ODIlmt+Bzu17OI+fiSRDW57QmU5SiN63exPRNJPKUzcc1INa1NXdrJ+MqHjUQ==", + "cpu": [ + "arm64" + ], + "dev": true, + "license": "Apache-2.0", + "optional": true, + "os": [ + "linux" + ], + "engines": { + "node": ">=16.20.0" + } + }, + "node_modules/@typescript/typescript-linux-loong64": { + "version": "7.0.2", + "resolved": "https://registry.npmjs.org/@typescript/typescript-linux-loong64/-/typescript-linux-loong64-7.0.2.tgz", + "integrity": "sha512-uEHck9i8hoAzXPiYRib1O7miOnz23SxIeVl6F4LXox+qov1K35jHcEW6VHKvZI+pyvl7fZEP4MCU5LYvIq1GuQ==", + "cpu": [ + "loong64" + ], + "dev": true, + "license": "Apache-2.0", + "optional": true, + "os": [ + "linux" + ], + "engines": { + "node": ">=16.20.0" + } + }, + "node_modules/@typescript/typescript-linux-mips64el": { + "version": "7.0.2", + "resolved": "https://registry.npmjs.org/@typescript/typescript-linux-mips64el/-/typescript-linux-mips64el-7.0.2.tgz", + "integrity": "sha512-R4KvAMnE43W5Qeqb0Ly56O3mWMWIAgsMyz36DCaycd5nbg/9kzm0liw3JocfRqyJY0KPmzFjbswozXyW0DnIYA==", + "cpu": [ + "mips64el" + ], + "dev": true, + "license": "Apache-2.0", + "optional": true, + "os": [ + "linux" + ], + "engines": { + "node": ">=16.20.0" + } + }, + "node_modules/@typescript/typescript-linux-ppc64": { + "version": "7.0.2", + "resolved": "https://registry.npmjs.org/@typescript/typescript-linux-ppc64/-/typescript-linux-ppc64-7.0.2.tgz", + "integrity": "sha512-DORx5b3sd/4S7eayxm4FQv+A7CrkUIGRaHiwI8oiHTAI1fAPWhF4J0vAlkC8biAlHSVVwxMQ3tjZ2/DVbnQiiA==", + "cpu": [ + "ppc64" + ], + "dev": true, + "license": "Apache-2.0", + "optional": true, + "os": [ + "linux" + ], + "engines": { + "node": ">=16.20.0" + } + }, + "node_modules/@typescript/typescript-linux-riscv64": { + "version": "7.0.2", + "resolved": "https://registry.npmjs.org/@typescript/typescript-linux-riscv64/-/typescript-linux-riscv64-7.0.2.tgz", + "integrity": "sha512-wf0jqEDOjrPRnKwYRyyJDRo11KMbvMFrU+q4zqKyChODBzvlkbhNQfKvLxQCcwTpdDaXSHZTVuh0JoCrKCUMHQ==", + "cpu": [ + "riscv64" + ], + "dev": true, + "license": "Apache-2.0", + "optional": true, + "os": [ + "linux" + ], + "engines": { + "node": ">=16.20.0" + } + }, + "node_modules/@typescript/typescript-linux-s390x": { + "version": "7.0.2", + "resolved": "https://registry.npmjs.org/@typescript/typescript-linux-s390x/-/typescript-linux-s390x-7.0.2.tgz", + "integrity": "sha512-IkwJc3L7yhytWd/ewjyxNDfOmswCm9GWMJT/ue/dU4aZNbwZeYAetq42VyLmsmSjvoX7z74X6ZaYCtzAr0EuGw==", + "cpu": [ + "s390x" + ], + "dev": true, + "license": "Apache-2.0", + "optional": true, + "os": [ + "linux" + ], + "engines": { + "node": ">=16.20.0" + } + }, + "node_modules/@typescript/typescript-linux-x64": { + "version": "7.0.2", + "resolved": "https://registry.npmjs.org/@typescript/typescript-linux-x64/-/typescript-linux-x64-7.0.2.tgz", + "integrity": "sha512-EYdf2cNg7rgCWJnxCdJ+F3V39O8ihb37eHAu1LK8oAFizgTQbPOK7zHHXbPt8rX24COqODXeI3sIf0fCXG7H/A==", + "cpu": [ + "x64" + ], + "dev": true, + "license": "Apache-2.0", + "optional": true, + "os": [ + "linux" + ], + "engines": { + "node": ">=16.20.0" + } + }, + "node_modules/@typescript/typescript-netbsd-arm64": { + "version": "7.0.2", + "resolved": "https://registry.npmjs.org/@typescript/typescript-netbsd-arm64/-/typescript-netbsd-arm64-7.0.2.tgz", + "integrity": "sha512-+polYF4MF04aPpO5FTkHran9yUQDSXqy5GiSDKpsll5jy3l3+g9QLhpf39T+ePtefhXLOGrLl0QIjkQP6VnelA==", + "cpu": [ + "arm64" + ], + "dev": true, + "license": "Apache-2.0", + "optional": true, + "os": [ + "netbsd" + ], + "engines": { + "node": ">=16.20.0" + } + }, + "node_modules/@typescript/typescript-netbsd-x64": { + "version": "7.0.2", + "resolved": "https://registry.npmjs.org/@typescript/typescript-netbsd-x64/-/typescript-netbsd-x64-7.0.2.tgz", + "integrity": "sha512-8YIT0EHM/3dq10ZOVF/A7pc/YSMtbcecct4rWtexrnSCHOPcpC2KTLXfTCR6vDpnSiY12heNb1GiN/wu+T/FyA==", + "cpu": [ + "x64" + ], + "dev": true, + "license": "Apache-2.0", + "optional": true, + "os": [ + "netbsd" + ], + "engines": { + "node": ">=16.20.0" + } + }, + "node_modules/@typescript/typescript-openbsd-arm64": { + "version": "7.0.2", + "resolved": "https://registry.npmjs.org/@typescript/typescript-openbsd-arm64/-/typescript-openbsd-arm64-7.0.2.tgz", + "integrity": "sha512-APT8+ClYnuYm1u9+kgGXoMj2VzWzcymwh2gNSQVySHfkRDGOTVkoWLjCmOQSaO+PoqQ57B0flRp9SA+7GnnkzQ==", + "cpu": [ + "arm64" + ], + "dev": true, + "license": "Apache-2.0", + "optional": true, + "os": [ + "openbsd" + ], + "engines": { + "node": ">=16.20.0" + } + }, + "node_modules/@typescript/typescript-openbsd-x64": { + "version": "7.0.2", + "resolved": "https://registry.npmjs.org/@typescript/typescript-openbsd-x64/-/typescript-openbsd-x64-7.0.2.tgz", + "integrity": "sha512-yX7s+Q0Dln0Dt9tEzZsAjXXR/+ytBM7AlglaqyeMPxQszJ1JhlJdZ6jLA+IzldHtflX81em7lDao1xXu+aRRkg==", + "cpu": [ + "x64" + ], + "dev": true, + "license": "Apache-2.0", + "optional": true, + "os": [ + "openbsd" + ], + "engines": { + "node": ">=16.20.0" + } + }, + "node_modules/@typescript/typescript-sunos-x64": { + "version": "7.0.2", + "resolved": "https://registry.npmjs.org/@typescript/typescript-sunos-x64/-/typescript-sunos-x64-7.0.2.tgz", + "integrity": "sha512-dLJDGaLZ1D4HPQn62u1n8mBDkJREwMsAkCdkwd4Ieqw+x3TUyTsqY0YiBCtE6H6OzzgGk3iuZ3vFWRS+E8/d1g==", + "cpu": [ + "x64" + ], + "dev": true, + "license": "Apache-2.0", + "optional": true, + "os": [ + "sunos" + ], + "engines": { + "node": ">=16.20.0" + } + }, + "node_modules/@typescript/typescript-win32-arm64": { + "version": "7.0.2", + "resolved": "https://registry.npmjs.org/@typescript/typescript-win32-arm64/-/typescript-win32-arm64-7.0.2.tgz", + "integrity": "sha512-Gyl1Vy6OsWesLzmq+EP0Fb7b4Nid5232AvcA2SFcdYreldpNtYFFofPjnt62y9hQy7VTaZp65ICJjuAQRaVcIQ==", + "cpu": [ + "arm64" + ], + "dev": true, + "license": "Apache-2.0", + "optional": true, + "os": [ + "win32" + ], + "engines": { + "node": ">=16.20.0" + } + }, + "node_modules/@typescript/typescript-win32-x64": { + "version": "7.0.2", + "resolved": "https://registry.npmjs.org/@typescript/typescript-win32-x64/-/typescript-win32-x64-7.0.2.tgz", + "integrity": "sha512-0BQ3HkAHHlKLSp1qRvf3SUhGpGsDuhB/jgFw75guyqbxJqEaS0Cw/VFO8i2nHglJUzQCRtMMR/IBAKE3ETMC4g==", + "cpu": [ + "x64" + ], + "dev": true, + "license": "Apache-2.0", + "optional": true, + "os": [ + "win32" + ], + "engines": { + "node": ">=16.20.0" + } + }, + "node_modules/@ungap/structured-clone": { + "version": "1.4.0", + "resolved": "https://registry.npmjs.org/@ungap/structured-clone/-/structured-clone-1.4.0.tgz", + "integrity": "sha512-1mEZtMKPM09vDmQt5y7YvmN2+DFTP7Tg0EWXdic8/C6VRnpb33e4ghisCIE3WZjsE2N8mf+QV1Zqh7ZFYLWInQ==", + "dev": true, + "license": "ISC" + }, + "node_modules/@unrs/resolver-binding-android-arm-eabi": { + "version": "1.13.0", + "resolved": "https://registry.npmjs.org/@unrs/resolver-binding-android-arm-eabi/-/resolver-binding-android-arm-eabi-1.13.0.tgz", + "integrity": "sha512-60E5mvmIiW+i1E/HYeSX4iE4A8s9NJSGYPu7UM0DJght1c2tTkWwuyDyAwzsEXhKM/XbbndfnTiXdfrf27d2hw==", + "cpu": [ + "arm" + ], + "dev": true, + "license": "MIT", + "optional": true, + "os": [ + "android" + ] + }, + "node_modules/@unrs/resolver-binding-android-arm64": { + "version": "1.13.0", + "resolved": "https://registry.npmjs.org/@unrs/resolver-binding-android-arm64/-/resolver-binding-android-arm64-1.13.0.tgz", + "integrity": "sha512-qlh/JR3Tuy1cJ7xtf5pR4ykvLiK6os7X7EL2+zXZbrVc/s+yB8DoFdQrCAW9/a2TOxPVbR7QVNpkPWh7UWIsEQ==", + "cpu": [ + "arm64" + ], + "dev": true, + "license": "MIT", + "optional": true, + "os": [ + "android" + ] + }, + "node_modules/@unrs/resolver-binding-darwin-arm64": { + "version": "1.13.0", + "resolved": "https://registry.npmjs.org/@unrs/resolver-binding-darwin-arm64/-/resolver-binding-darwin-arm64-1.13.0.tgz", + "integrity": "sha512-yynnnnJXUC99WeD1GfvuXPKsKNfvgzGYC2eRayFnUfsHVROjqrbFOkFQLZiSx1H8+PLy5BzU8vqyPyLqbRfeBQ==", + "cpu": [ + "arm64" + ], + "dev": true, + "license": "MIT", + "optional": true, + "os": [ + "darwin" + ] + }, + "node_modules/@unrs/resolver-binding-darwin-x64": { + "version": "1.13.0", + "resolved": "https://registry.npmjs.org/@unrs/resolver-binding-darwin-x64/-/resolver-binding-darwin-x64-1.13.0.tgz", + "integrity": "sha512-t8PXE0Ip9tmGyhRlfVsnEbzGM5iSvJIeNIXciUACjzpg0mmPs13fGv2x7W8sBa0S8zbIiohxKXS9fL/LXW/ERQ==", + "cpu": [ + "x64" + ], + "dev": true, + "license": "MIT", + "optional": true, + "os": [ + "darwin" + ] + }, + "node_modules/@unrs/resolver-binding-freebsd-x64": { + "version": "1.13.0", + "resolved": "https://registry.npmjs.org/@unrs/resolver-binding-freebsd-x64/-/resolver-binding-freebsd-x64-1.13.0.tgz", + "integrity": "sha512-qdtl9GDWDoDx6rhzF4RU5SJutV3lcLOiTiyqD6nBxYfEO6lAgLNukfrA+HJ2u2OiyWvV8JW5iEWD3LoONw7lYA==", + "cpu": [ + "x64" + ], + "dev": true, + "license": "MIT", + "optional": true, + "os": [ + "freebsd" + ] + }, + "node_modules/@unrs/resolver-binding-linux-arm-gnueabihf": { + "version": "1.13.0", + "resolved": "https://registry.npmjs.org/@unrs/resolver-binding-linux-arm-gnueabihf/-/resolver-binding-linux-arm-gnueabihf-1.13.0.tgz", + "integrity": "sha512-VrMUVwdrScTarsh4B6aUhTtziUavSlglo4Hi8XZ6CpAe4+j3nquY+XoP+tYkiSBDsXZ8386ne4pv4YYYBNi02w==", + "cpu": [ + "arm" + ], + "dev": true, + "license": "MIT", + "optional": true, + "os": [ + "linux" + ] + }, + "node_modules/@unrs/resolver-binding-linux-arm-musleabihf": { + "version": "1.13.0", + "resolved": "https://registry.npmjs.org/@unrs/resolver-binding-linux-arm-musleabihf/-/resolver-binding-linux-arm-musleabihf-1.13.0.tgz", + "integrity": "sha512-zSbTVwaxiTC+zYJ9xVNTC6c+BYO/kOV/odcTI3bHuFFXa+XmjLoUkb/8UxsZeU5YF4K000m17wrXoTblNWuzOg==", + "cpu": [ + "arm" + ], + "dev": true, + "license": "MIT", + "optional": true, + "os": [ + "linux" + ] + }, + "node_modules/@unrs/resolver-binding-linux-arm64-gnu": { + "version": "1.13.0", + "resolved": "https://registry.npmjs.org/@unrs/resolver-binding-linux-arm64-gnu/-/resolver-binding-linux-arm64-gnu-1.13.0.tgz", + "integrity": "sha512-Z/Rax87moZHsuvJ8awdfP+zrMlsCt3d7mggUPIiPe32KpeagimyzJWnZSMQoV67an9uVQghyh92Pc0VprITnYA==", + "cpu": [ + "arm64" + ], + "dev": true, + "libc": [ + "glibc" + ], + "license": "MIT", + "optional": true, + "os": [ + "linux" + ] + }, + "node_modules/@unrs/resolver-binding-linux-arm64-musl": { + "version": "1.13.0", + "resolved": "https://registry.npmjs.org/@unrs/resolver-binding-linux-arm64-musl/-/resolver-binding-linux-arm64-musl-1.13.0.tgz", + "integrity": "sha512-oUzXz8hNvFLNEAag8lBKJe1euiV2dmGHAR+eQ5fNpsZO0F1K7IMRb4J6pqYsd7uLMRQNPiu5A1WKUJHbFLWbbw==", + "cpu": [ + "arm64" + ], + "dev": true, + "libc": [ + "musl" + ], + "license": "MIT", + "optional": true, + "os": [ + "linux" + ] + }, + "node_modules/@unrs/resolver-binding-linux-loong64-gnu": { + "version": "1.13.0", + "resolved": "https://registry.npmjs.org/@unrs/resolver-binding-linux-loong64-gnu/-/resolver-binding-linux-loong64-gnu-1.13.0.tgz", + "integrity": "sha512-BxhGYvZBg0YrvNOeSEGR3eNklwXYy0mUJk7oeGJvZoQMKM68zYvbbf52+fQI3Le4X0fW276FTKIoTwjpMob80A==", + "cpu": [ + "loong64" + ], + "dev": true, + "libc": [ + "glibc" + ], + "license": "MIT", + "optional": true, + "os": [ + "linux" + ] + }, + "node_modules/@unrs/resolver-binding-linux-loong64-musl": { + "version": "1.13.0", + "resolved": "https://registry.npmjs.org/@unrs/resolver-binding-linux-loong64-musl/-/resolver-binding-linux-loong64-musl-1.13.0.tgz", + "integrity": "sha512-nZcIuup9Ar3gAlqoZfX/KW6x83TMI11tLpCjldZG5M1KeY8qNUPNJJ71+sPvG8HMBpoh+ix1pAm5gkMFvcSAcQ==", + "cpu": [ + "loong64" + ], + "dev": true, + "libc": [ + "musl" + ], + "license": "MIT", + "optional": true, + "os": [ + "linux" + ] + }, + "node_modules/@unrs/resolver-binding-linux-ppc64-gnu": { + "version": "1.13.0", + "resolved": "https://registry.npmjs.org/@unrs/resolver-binding-linux-ppc64-gnu/-/resolver-binding-linux-ppc64-gnu-1.13.0.tgz", + "integrity": "sha512-AG6AgdDrkRNjAPwD/cftFJGgZUWCiJX+E8vpYCDEnwFHLTHZ7ppBiU6/vyPPwrfjcPUPQCDbbxE/eZUXsx49jQ==", + "cpu": [ + "ppc64" + ], + "dev": true, + "libc": [ + "glibc" + ], + "license": "MIT", + "optional": true, + "os": [ + "linux" + ] + }, + "node_modules/@unrs/resolver-binding-linux-riscv64-gnu": { + "version": "1.13.0", + "resolved": "https://registry.npmjs.org/@unrs/resolver-binding-linux-riscv64-gnu/-/resolver-binding-linux-riscv64-gnu-1.13.0.tgz", + "integrity": "sha512-6vOqYGcAmzpRWpUURWutzvpf1qJ6eOu5cfYObdtPJnzZ0+Kw4cw+ZkZJqIYEh8fPuTBwSYDL/FwlUhma1G/JVQ==", + "cpu": [ + "riscv64" + ], "dev": true, + "libc": [ + "glibc" + ], "license": "MIT", - "dependencies": { - "@babel/types": "^7.28.2" - } - }, - "node_modules/@types/graceful-fs": { - "version": "4.1.9", - "resolved": "https://registry.npmjs.org/@types/graceful-fs/-/graceful-fs-4.1.9.tgz", - "integrity": "sha512-olP3sd1qOEe5dXTSaFvQG+02VdRXcdytWLAZsAq1PecU8uqQAhkrnbli7DagjtXKW/Bl7YJbUsa8MPcuc8LHEQ==", + "optional": true, + "os": [ + "linux" + ] + }, + "node_modules/@unrs/resolver-binding-linux-riscv64-musl": { + "version": "1.13.0", + "resolved": "https://registry.npmjs.org/@unrs/resolver-binding-linux-riscv64-musl/-/resolver-binding-linux-riscv64-musl-1.13.0.tgz", + "integrity": "sha512-4HeIn0S2KVUowK0A+EweXrDvZ8CKHEfTtif0kx9vt3ORNsqcXNFFIFnHE0tizma3/Gt5OGrU2ovYNuj+D/bN4g==", + "cpu": [ + "riscv64" + ], "dev": true, + "libc": [ + "musl" + ], "license": "MIT", - "dependencies": { - "@types/node": "*" - } - }, - "node_modules/@types/istanbul-lib-coverage": { - "version": "2.0.6", - "resolved": "https://registry.npmjs.org/@types/istanbul-lib-coverage/-/istanbul-lib-coverage-2.0.6.tgz", - "integrity": "sha512-2QF/t/auWm0lsy8XtKVPG19v3sSOQlJe/YHZgfjb/KBBHOGSV+J2q/S671rcq9uTBrLAXmZpqJiaQbMT+zNU1w==", + "optional": true, + "os": [ + "linux" + ] + }, + "node_modules/@unrs/resolver-binding-linux-s390x-gnu": { + "version": "1.13.0", + "resolved": "https://registry.npmjs.org/@unrs/resolver-binding-linux-s390x-gnu/-/resolver-binding-linux-s390x-gnu-1.13.0.tgz", + "integrity": "sha512-JfkvqY7NZbxyhexLE+g6Z8Hsx4utHOGaVazAVghPiBn8Upw2iERZPpKYnW1FBVU4WStv/BiIsoK/Muke0E7asA==", + "cpu": [ + "s390x" + ], "dev": true, - "license": "MIT" - }, - "node_modules/@types/istanbul-lib-report": { - "version": "3.0.3", - "resolved": "https://registry.npmjs.org/@types/istanbul-lib-report/-/istanbul-lib-report-3.0.3.tgz", - "integrity": "sha512-NQn7AHQnk/RSLOxrBbGyJM/aVQ+pjj5HCgasFxc0K/KhoATfQ/47AyUl15I2yBUpihjmas+a+VJBOqecrFH+uA==", + "libc": [ + "glibc" + ], + "license": "MIT", + "optional": true, + "os": [ + "linux" + ] + }, + "node_modules/@unrs/resolver-binding-linux-x64-gnu": { + "version": "1.13.0", + "resolved": "https://registry.npmjs.org/@unrs/resolver-binding-linux-x64-gnu/-/resolver-binding-linux-x64-gnu-1.13.0.tgz", + "integrity": "sha512-iwjLeVdZo/8v5OKAeRIC+4VQV045t1EPZr5B/AVLgUQ04IdtNthWzg6not2cNjZgH2gHpSf4fOXMmN83aLO1FA==", + "cpu": [ + "x64" + ], "dev": true, + "libc": [ + "glibc" + ], "license": "MIT", - "dependencies": { - "@types/istanbul-lib-coverage": "*" - } - }, - "node_modules/@types/istanbul-reports": { - "version": "3.0.4", - "resolved": "https://registry.npmjs.org/@types/istanbul-reports/-/istanbul-reports-3.0.4.tgz", - "integrity": "sha512-pk2B1NWalF9toCRu6gjBzR69syFjP4Od8WRAX+0mmf9lAjCRicLOWc+ZrxZHx/0XRjotgkF9t6iaMJ+aXcOdZQ==", + "optional": true, + "os": [ + "linux" + ] + }, + "node_modules/@unrs/resolver-binding-linux-x64-musl": { + "version": "1.13.0", + "resolved": "https://registry.npmjs.org/@unrs/resolver-binding-linux-x64-musl/-/resolver-binding-linux-x64-musl-1.13.0.tgz", + "integrity": "sha512-TOh1fqOjyq1OPoht3BDLd7Y+HeMJRwd5g2VNmCQclknEbjp4py5GFRmT4L/rOybF5Af8q0LT9zHs2WGkwlqtrw==", + "cpu": [ + "x64" + ], "dev": true, + "libc": [ + "musl" + ], "license": "MIT", - "dependencies": { - "@types/istanbul-lib-report": "*" - } - }, - "node_modules/@types/node": { - "version": "26.0.1", - "resolved": "https://registry.npmjs.org/@types/node/-/node-26.0.1.tgz", - "integrity": "sha512-fc3KiUoBt6kie0N9bIW3E47vZsuaMf0PM2AaUpLCLT0s/LvX1nxAim6Fc049cNxODPpGm6qRAuUOB86SkRuPQw==", + "optional": true, + "os": [ + "linux" + ] + }, + "node_modules/@unrs/resolver-binding-openharmony-arm64": { + "version": "1.13.0", + "resolved": "https://registry.npmjs.org/@unrs/resolver-binding-openharmony-arm64/-/resolver-binding-openharmony-arm64-1.13.0.tgz", + "integrity": "sha512-3T2MNtF2dd1yjaXCVqrsi+/3VZeksEzU1hygPzqqkBLVVjn+2iJzXEkxxCKIVFrWnpmEbazeHJp/ruYD0RUVWA==", + "cpu": [ + "arm64" + ], "dev": true, "license": "MIT", - "dependencies": { - "undici-types": "~8.3.0" - } - }, - "node_modules/@types/stack-utils": { - "version": "2.0.3", - "resolved": "https://registry.npmjs.org/@types/stack-utils/-/stack-utils-2.0.3.tgz", - "integrity": "sha512-9aEbYZ3TbYMznPdcdr3SmIrLXwC/AKZXQeCf9Pgao5CKb8CyHuEX5jzWPTkvregvhRJHcpRO6BFoGW9ycaOkYw==", + "optional": true, + "os": [ + "openharmony" + ] + }, + "node_modules/@unrs/resolver-binding-win32-arm64-msvc": { + "version": "1.13.0", + "resolved": "https://registry.npmjs.org/@unrs/resolver-binding-win32-arm64-msvc/-/resolver-binding-win32-arm64-msvc-1.13.0.tgz", + "integrity": "sha512-hKWfSLiN3L4cIxg0jrpyP/66AXLTcyD37jmSn//rGdOUYGlizYxTEFdJ+GZbp2NnaML3YS/A73nCysze8FaJdg==", + "cpu": [ + "arm64" + ], "dev": true, - "license": "MIT" - }, - "node_modules/@types/yargs": { - "version": "17.0.35", - "resolved": "https://registry.npmjs.org/@types/yargs/-/yargs-17.0.35.tgz", - "integrity": "sha512-qUHkeCyQFxMXg79wQfTtfndEC+N9ZZg76HJftDJp+qH2tV7Gj4OJi7l+PiWwJ+pWtW8GwSmqsDj/oymhrTWXjg==", + "license": "MIT", + "optional": true, + "os": [ + "win32" + ] + }, + "node_modules/@unrs/resolver-binding-win32-ia32-msvc": { + "version": "1.13.0", + "resolved": "https://registry.npmjs.org/@unrs/resolver-binding-win32-ia32-msvc/-/resolver-binding-win32-ia32-msvc-1.13.0.tgz", + "integrity": "sha512-N4gDKkDoiyIQEcn3vTqe2ksRxUAtBvQ8c5TiT+WonSa6FHgCAY5+RggnZ134hXJoRj57JEjv4/m+i/pAKHWrTQ==", + "cpu": [ + "ia32" + ], "dev": true, "license": "MIT", - "dependencies": { - "@types/yargs-parser": "*" - } - }, - "node_modules/@types/yargs-parser": { - "version": "21.0.3", - "resolved": "https://registry.npmjs.org/@types/yargs-parser/-/yargs-parser-21.0.3.tgz", - "integrity": "sha512-I4q9QU9MQv4oEOz4tAHJtNz1cwuLxn2F3xcc2iV5WdqLPpUnj30aUuxt1mAxYTG+oe8CZMV/+6rU4S4gRDzqtQ==", + "optional": true, + "os": [ + "win32" + ] + }, + "node_modules/@unrs/resolver-binding-win32-x64-msvc": { + "version": "1.13.0", + "resolved": "https://registry.npmjs.org/@unrs/resolver-binding-win32-x64-msvc/-/resolver-binding-win32-x64-msvc-1.13.0.tgz", + "integrity": "sha512-DpLMlAqlrk4zBVK3DiDjwKD0oq7pZNy+8BiIBRuByqb6dm5jsdoLMhIiyh/xR7+WejaW/1Ui+XgbgMNa4+zWJg==", + "cpu": [ + "x64" + ], "dev": true, - "license": "MIT" + "license": "MIT", + "optional": true, + "os": [ + "win32" + ] }, "node_modules/@zapier/secret-scrubber": { "version": "1.1.6", @@ -1102,6 +3699,19 @@ "node": ">= 8" } }, + "node_modules/anymatch/node_modules/picomatch": { + "version": "2.3.2", + "resolved": "https://registry.npmjs.org/picomatch/-/picomatch-2.3.2.tgz", + "integrity": "sha512-V7+vQEJ06Z+c5tSye8S+nHUfI51xoXIXjHQ99cQtKUkQqqO1kO/KCJUfZXuB47h/YBlDhah2H3hdUGXn8ie0oA==", + "dev": true, + "license": "MIT", + "engines": { + "node": ">=8.6" + }, + "funding": { + "url": "https://github.com/sponsors/jonschlinkert" + } + }, "node_modules/argparse": { "version": "1.0.10", "resolved": "https://registry.npmjs.org/argparse/-/argparse-1.0.10.tgz", @@ -1134,75 +3744,58 @@ } }, "node_modules/babel-jest": { - "version": "29.7.0", - "resolved": "https://registry.npmjs.org/babel-jest/-/babel-jest-29.7.0.tgz", - "integrity": "sha512-BrvGY3xZSwEcCzKvKsCi2GgHqDqsYkOP4/by5xCgIwGXQxIEh+8ew3gmrE1y7XRR6LHZIj6yLYnUi/mm2KXKBg==", + "version": "30.5.2", + "resolved": "https://registry.npmjs.org/babel-jest/-/babel-jest-30.5.2.tgz", + "integrity": "sha512-ES8WeJ2fNWPEDunyAtUfJ12nHyaWUloCHdkfK2oW5uSoQSUmjNKdWiGaXJITJwvFEWoD/evHEg/QoCXAvLaQqQ==", "dev": true, "license": "MIT", "dependencies": { - "@jest/transform": "^29.7.0", - "@types/babel__core": "^7.1.14", - "babel-plugin-istanbul": "^6.1.1", - "babel-preset-jest": "^29.6.3", - "chalk": "^4.0.0", - "graceful-fs": "^4.2.9", + "@jest/transform": "30.5.2", + "@types/babel__core": "^7.20.5", + "babel-plugin-istanbul": "^8.0.0", + "babel-preset-jest": "30.5.0", + "chalk": "^4.1.2", + "graceful-fs": "^4.2.11", "slash": "^3.0.0" }, "engines": { - "node": "^14.15.0 || ^16.10.0 || >=18.0.0" + "node": "^18.14.0 || ^20.0.0 || ^22.0.0 || >=24.0.0" }, "peerDependencies": { - "@babel/core": "^7.8.0" + "@babel/core": "^7.11.0 || ^8.0.0-0" } }, "node_modules/babel-plugin-istanbul": { - "version": "6.1.1", - "resolved": "https://registry.npmjs.org/babel-plugin-istanbul/-/babel-plugin-istanbul-6.1.1.tgz", - "integrity": "sha512-Y1IQok9821cC9onCx5otgFfRm7Lm+I+wwxOx738M/WLPZ9Q42m4IG5W0FNX8WLL2gYMZo3JkuXIH2DOpWM+qwA==", + "version": "8.0.2", + "resolved": "https://registry.npmjs.org/babel-plugin-istanbul/-/babel-plugin-istanbul-8.0.2.tgz", + "integrity": "sha512-bXWZeWQvvCZcD2uHLWVbitr4s1+YqILBbWB/szXKtHXt6crLlD6mqxHZ0qWy2X/Xx5RtQvqqW80JHAXMlp+y1Q==", "dev": true, "license": "BSD-3-Clause", + "workspaces": [ + "test/babel-8" + ], "dependencies": { "@babel/helper-plugin-utils": "^7.0.0", "@istanbuljs/load-nyc-config": "^1.0.0", - "@istanbuljs/schema": "^0.1.2", - "istanbul-lib-instrument": "^5.0.4", - "test-exclude": "^6.0.0" - }, - "engines": { - "node": ">=8" - } - }, - "node_modules/babel-plugin-istanbul/node_modules/istanbul-lib-instrument": { - "version": "5.2.1", - "resolved": "https://registry.npmjs.org/istanbul-lib-instrument/-/istanbul-lib-instrument-5.2.1.tgz", - "integrity": "sha512-pzqtp31nLv/XFOzXGuvhCb8qhjmTVo5vjVk19XE4CRlSWz0KoeJ3bw9XsA7nOp9YBf4qHjwBxkDzKcME/J29Yg==", - "dev": true, - "license": "BSD-3-Clause", - "dependencies": { - "@babel/core": "^7.12.3", - "@babel/parser": "^7.14.7", - "@istanbuljs/schema": "^0.1.2", - "istanbul-lib-coverage": "^3.2.0", - "semver": "^6.3.0" + "@istanbuljs/schema": "^0.1.3", + "istanbul-lib-instrument": "^6.0.2", + "test-exclude": "^7.0.1" }, "engines": { - "node": ">=8" + "node": ">=18" } }, "node_modules/babel-plugin-jest-hoist": { - "version": "29.6.3", - "resolved": "https://registry.npmjs.org/babel-plugin-jest-hoist/-/babel-plugin-jest-hoist-29.6.3.tgz", - "integrity": "sha512-ESAc/RJvGTFEzRwOTT4+lNDk/GNHMkKbNzsvT0qKRfDyyYTskxB5rnU2njIDYVxXCBHHEI1c0YwHob3WaYujOg==", + "version": "30.5.0", + "resolved": "https://registry.npmjs.org/babel-plugin-jest-hoist/-/babel-plugin-jest-hoist-30.5.0.tgz", + "integrity": "sha512-gtGo1B+u14jrZQv6TdSWIWkTqclboo7Qn+dFAGUOIuXLFuJKAdg3U5MIWzZnW4vfUb4dX9skmAMiby86e/SF4A==", "dev": true, "license": "MIT", "dependencies": { - "@babel/template": "^7.3.3", - "@babel/types": "^7.3.3", - "@types/babel__core": "^7.1.14", - "@types/babel__traverse": "^7.0.6" + "@types/babel__core": "^7.20.5" }, "engines": { - "node": "^14.15.0 || ^16.10.0 || >=18.0.0" + "node": "^18.14.0 || ^20.0.0 || ^22.0.0 || >=24.0.0" } }, "node_modules/babel-preset-current-node-syntax": { @@ -1233,33 +3826,36 @@ } }, "node_modules/babel-preset-jest": { - "version": "29.6.3", - "resolved": "https://registry.npmjs.org/babel-preset-jest/-/babel-preset-jest-29.6.3.tgz", - "integrity": "sha512-0B3bhxR6snWXJZtR/RliHTDPRgn1sNHOR0yVtq/IiQFyuOVjFS+wuio/R4gSNkyYmKmJB4wGZv2NZanmKmTnNA==", + "version": "30.5.0", + "resolved": "https://registry.npmjs.org/babel-preset-jest/-/babel-preset-jest-30.5.0.tgz", + "integrity": "sha512-ZGPn5ClP4lBDpuOK8W1yQIOy359HmbnZv3suucAlIe+SEE9yDsxV4S2PjSbH2Vc97U+WmzYD7vw3kr8NsQ/i6w==", "dev": true, "license": "MIT", "dependencies": { - "babel-plugin-jest-hoist": "^29.6.3", - "babel-preset-current-node-syntax": "^1.0.0" + "babel-plugin-jest-hoist": "30.5.0", + "babel-preset-current-node-syntax": "^1.2.0" }, "engines": { - "node": "^14.15.0 || ^16.10.0 || >=18.0.0" + "node": "^18.14.0 || ^20.0.0 || ^22.0.0 || >=24.0.0" }, "peerDependencies": { - "@babel/core": "^7.0.0" + "@babel/core": "^7.11.0 || ^8.0.0-beta.1 || ^8.0.0" } }, "node_modules/balanced-match": { - "version": "1.0.2", - "resolved": "https://registry.npmjs.org/balanced-match/-/balanced-match-1.0.2.tgz", - "integrity": "sha512-3oSeUO0TMV67hN1AmbXsK4yaqU7tjiHlbxRDZOpH0KW9+CeX4bRAaX0Anxt0tx2MrpRpWwQaPwIlISEJhYU5Pw==", + "version": "4.0.4", + "resolved": "https://registry.npmjs.org/balanced-match/-/balanced-match-4.0.4.tgz", + "integrity": "sha512-BLrgEcRTwX2o6gGxGOCNyMvGSp35YofuYzw9h1IMTRmKqttAZZVU67bdb9Pr2vUHA8+j3i2tJfjO6C6+4myGTA==", "dev": true, - "license": "MIT" + "license": "MIT", + "engines": { + "node": "18 || 20 || >=22" + } }, "node_modules/baseline-browser-mapping": { - "version": "2.10.40", - "resolved": "https://registry.npmjs.org/baseline-browser-mapping/-/baseline-browser-mapping-2.10.40.tgz", - "integrity": "sha512-BSSLZ9/Cjjv7Gtj5B68ZzXcXUg8iOf3fme+FCuh8rC/Go+Kmh8cox7M3A8dolou16s64QjLPOSdngh7GxXvkSw==", + "version": "2.11.40", + "resolved": "https://registry.npmjs.org/baseline-browser-mapping/-/baseline-browser-mapping-2.11.40.tgz", + "integrity": "sha512-WJhaQ3kW5+5BpOduI64ewvykhCyK/IHHG5jCIzivmW2nkYPRowUjs0DbBXY4CAr1LLrN7QEzZGL9727aXH9sJA==", "dev": true, "license": "Apache-2.0", "bin": { @@ -1270,33 +3866,22 @@ } }, "node_modules/brace-expansion": { - "version": "1.1.15", - "resolved": "https://registry.npmjs.org/brace-expansion/-/brace-expansion-1.1.15.tgz", - "integrity": "sha512-EwOCDEex4quD37XhqM3omwtMoJjr//isUZz1JopUNWms+4Z2ViyM/k1YIRePpoVNnQhENnxtFjLaxNHrT7xIUg==", - "dev": true, - "license": "MIT", - "dependencies": { - "balanced-match": "^1.0.0", - "concat-map": "0.0.1" - } - }, - "node_modules/braces": { - "version": "3.0.3", - "resolved": "https://registry.npmjs.org/braces/-/braces-3.0.3.tgz", - "integrity": "sha512-yQbXgO/OSZVD2IsiLlro+7Hf6Q18EJrKSEsdoMzKePKXct3gvD8oLcOQdIzGupr5Fj+EDe8gO/lxc1BzfMpxvA==", + "version": "5.1.0", + "resolved": "https://registry.npmjs.org/brace-expansion/-/brace-expansion-5.1.0.tgz", + "integrity": "sha512-aa11Dv491GKnYqxaul3aRJ0szew7yMJMfZPnqD44NjGrZXoj62l41OEDDpdpC4eE2P88vBFfLuSyRhpG91NUvg==", "dev": true, "license": "MIT", "dependencies": { - "fill-range": "^7.1.1" + "balanced-match": "^4.0.2" }, "engines": { - "node": ">=8" + "node": "20 || >=22" } }, "node_modules/browserslist": { - "version": "4.28.4", - "resolved": "https://registry.npmjs.org/browserslist/-/browserslist-4.28.4.tgz", - "integrity": "sha512-MTc8i/x9jBQd1iMw2CFGS+rwMa07eYjLR0CCTLDACl9xhxy+nIs3KeML/biicXtk9JrZ6dnnTatmc7ErPXIxqw==", + "version": "4.29.6", + "resolved": "https://registry.npmjs.org/browserslist/-/browserslist-4.29.6.tgz", + "integrity": "sha512-CmVVIQ3RVc5HxYEc9X84GvxK/C8C1wH8TlKAiO7uTxF8PDwt7r8t9Qk3J9NkMOVzX5O/HbLv3yzxZg9HPrnI9w==", "dev": true, "funding": [ { @@ -1314,11 +3899,11 @@ ], "license": "MIT", "dependencies": { - "baseline-browser-mapping": "^2.10.38", - "caniuse-lite": "^1.0.30001799", - "electron-to-chromium": "^1.5.376", - "node-releases": "^2.0.48", - "update-browserslist-db": "^1.2.3" + "baseline-browser-mapping": "^2.11.37", + "caniuse-lite": "^1.0.30001826", + "electron-to-chromium": "^1.5.486", + "node-releases": "^2.0.64", + "update-browserslist-db": "^1.4.0" }, "bin": { "browserslist": "cli.js" @@ -1328,22 +3913,15 @@ } }, "node_modules/bser": { - "version": "2.1.1", - "resolved": "https://registry.npmjs.org/bser/-/bser-2.1.1.tgz", - "integrity": "sha512-gQxTNE/GAfIIrmHLUE3oJyp5FO6HRBfhjnw4/wMmA63ZGDJnWBmgY/lyQBpnDUkGmAhbSe39tx2d/iTOAfglwQ==", + "version": "2.1.2", + "resolved": "https://registry.npmjs.org/bser/-/bser-2.1.2.tgz", + "integrity": "sha512-V2o8YS2EhrKMO9AumnkK0ynynfFlsajpYupwq7S46H5mhcanwxDkNTw3K67wPIcKTH1ffkA4vhMOtAc7gRmPZw==", "dev": true, - "license": "Apache-2.0", + "license": "MIT", "dependencies": { "node-int64": "^0.4.0" } }, - "node_modules/buffer-from": { - "version": "1.1.2", - "resolved": "https://registry.npmjs.org/buffer-from/-/buffer-from-1.1.2.tgz", - "integrity": "sha512-E+XQCRwSbaaiChtv6k6Dwgc+bx+Bs6vuKJHHl5kox/BaKbhiXzqQOwK4cO22yElGp2OCmjwVhT3HmxgyPGnJfQ==", - "dev": true, - "license": "MIT" - }, "node_modules/call-bind": { "version": "1.0.9", "resolved": "https://registry.npmjs.org/call-bind/-/call-bind-1.0.9.tgz", @@ -1412,9 +3990,9 @@ } }, "node_modules/caniuse-lite": { - "version": "1.0.30001799", - "resolved": "https://registry.npmjs.org/caniuse-lite/-/caniuse-lite-1.0.30001799.tgz", - "integrity": "sha512-hG1bReV+OUU+MOqK4t/ZWI0tZOyz3rqS9XuhOUz1cIcbwBKjOyJEJuw9ER5JuNyqxNk8u/JUVbGibBOL1yrjFw==", + "version": "1.0.30001828", + "resolved": "https://registry.npmjs.org/caniuse-lite/-/caniuse-lite-1.0.30001828.tgz", + "integrity": "sha512-7MWeT+3DlrpuDybTWHl4Zb1Z80Z1fLLnOXuBjDXebzDVcqnEWUlV8JcbASg8B8BhcW8QT2UiR1KAtzYFIZHZYA==", "dev": true, "funding": [ { @@ -1460,9 +4038,9 @@ } }, "node_modules/ci-info": { - "version": "3.9.0", - "resolved": "https://registry.npmjs.org/ci-info/-/ci-info-3.9.0.tgz", - "integrity": "sha512-NIxF55hv4nSqQswkAeiOi1r83xy8JldOFDTWiug55KBu9Jnblncd2U6ViHmYgHf01TPZS77NJBhBMKdWj9HQMQ==", + "version": "4.5.0", + "resolved": "https://registry.npmjs.org/ci-info/-/ci-info-4.5.0.tgz", + "integrity": "sha512-d1uM8k5UZEyPza1n/MG3ko8nKupKN0KJpFsipgPcgaCCvV+IqIfJ+NzTjetlLM+UcXZx3+cLrNr76+eAO7G1Mw==", "dev": true, "funding": [ { @@ -1490,9 +4068,9 @@ } }, "node_modules/cjs-module-lexer": { - "version": "1.4.3", - "resolved": "https://registry.npmjs.org/cjs-module-lexer/-/cjs-module-lexer-1.4.3.tgz", - "integrity": "sha512-9z8TZaGM1pfswYeXrUpzPrkx8UnWYdhJclsiYMm6x/w5+nN+8Tf/LnAgfLGQCm59qAOxU8WwHEq2vNwF6i4j+Q==", + "version": "2.3.0", + "resolved": "https://registry.npmjs.org/cjs-module-lexer/-/cjs-module-lexer-2.3.0.tgz", + "integrity": "sha512-lmNyBzi6iYiqyrExTctfmjd8tInx+dHu9PBomTfH5RXS53c27JMFJgzNv5TyAnm3PgGf+MLy0+Ws41/HlVxdKQ==", "dev": true, "license": "MIT" }, @@ -1561,13 +4139,6 @@ "node": ">= 0.8" } }, - "node_modules/concat-map": { - "version": "0.0.1", - "resolved": "https://registry.npmjs.org/concat-map/-/concat-map-0.0.1.tgz", - "integrity": "sha512-/Srv4dswyQNBfohGpz9o6Yb3Gz3SrUDqBH5rTuhGR7ahtlbYKnVxw2bCFMRljaA7EXHaXZ8wsHdodFvbkhKmqg==", - "dev": true, - "license": "MIT" - }, "node_modules/content-disposition": { "version": "0.5.4", "resolved": "https://registry.npmjs.org/content-disposition/-/content-disposition-0.5.4.tgz", @@ -1606,28 +4177,6 @@ "sha.js": "^2.4.0" } }, - "node_modules/create-jest": { - "version": "29.7.0", - "resolved": "https://registry.npmjs.org/create-jest/-/create-jest-29.7.0.tgz", - "integrity": "sha512-Adz2bdH0Vq3F53KEMJOoftQFutWCukm6J24wbPWRO4k1kMY7gS7ds/uoJkNuV8wDCtWWnuwGcJwpWcih+zEW1Q==", - "dev": true, - "license": "MIT", - "dependencies": { - "@jest/types": "^29.6.3", - "chalk": "^4.0.0", - "exit": "^0.1.2", - "graceful-fs": "^4.2.9", - "jest-config": "^29.7.0", - "jest-util": "^29.7.0", - "prompts": "^2.0.1" - }, - "bin": { - "create-jest": "bin/create-jest.js" - }, - "engines": { - "node": "^14.15.0 || ^16.10.0 || >=18.0.0" - } - }, "node_modules/cross-spawn": { "version": "7.0.6", "resolved": "https://registry.npmjs.org/cross-spawn/-/cross-spawn-7.0.6.tgz", @@ -1718,24 +4267,24 @@ "node": ">=0.4.0" } }, - "node_modules/detect-newline": { - "version": "3.1.0", - "resolved": "https://registry.npmjs.org/detect-newline/-/detect-newline-3.1.0.tgz", - "integrity": "sha512-TLz+x/vEXm/Y7P7wn1EJFNLxYpUD4TgMosxY6fAVJUnJMbupHBOncxyWUG9OpTaH9EBD7uFI5LfEgmMOc54DsA==", + "node_modules/detect-libc": { + "version": "2.1.2", + "resolved": "https://registry.npmjs.org/detect-libc/-/detect-libc-2.1.2.tgz", + "integrity": "sha512-Btj2BOOO83o3WyH59e8MgXsxEQVcarkUOpEYrubB0urwnN10yQ364rsiByU11nZlqWYZm05i/of7io4mzihBtQ==", "dev": true, - "license": "MIT", + "license": "Apache-2.0", "engines": { "node": ">=8" } }, - "node_modules/diff-sequences": { - "version": "29.6.3", - "resolved": "https://registry.npmjs.org/diff-sequences/-/diff-sequences-29.6.3.tgz", - "integrity": "sha512-EjePK1srD3P08o2j4f0ExnylqRs5B9tJjcp9t1krH2qRi8CCdsYfwe9JgSLurFBWwq4uOlipzfk5fHNvwFKr8Q==", + "node_modules/detect-newline": { + "version": "3.1.0", + "resolved": "https://registry.npmjs.org/detect-newline/-/detect-newline-3.1.0.tgz", + "integrity": "sha512-TLz+x/vEXm/Y7P7wn1EJFNLxYpUD4TgMosxY6fAVJUnJMbupHBOncxyWUG9OpTaH9EBD7uFI5LfEgmMOc54DsA==", "dev": true, "license": "MIT", "engines": { - "node": "^14.15.0 || ^16.10.0 || >=18.0.0" + "node": ">=8" } }, "node_modules/dotenv": { @@ -1764,10 +4313,17 @@ "node": ">= 0.4" } }, + "node_modules/eastasianwidth": { + "version": "0.2.0", + "resolved": "https://registry.npmjs.org/eastasianwidth/-/eastasianwidth-0.2.0.tgz", + "integrity": "sha512-I88TYZWc9XiYHRQ4/3c5rjjfgkjhLyW2luGIheGERbNQ6OY7yTybanSpDXZa8y7VUP9YmDcYa+eyq4ca7iLqWA==", + "dev": true, + "license": "MIT" + }, "node_modules/electron-to-chromium": { - "version": "1.5.381", - "resolved": "https://registry.npmjs.org/electron-to-chromium/-/electron-to-chromium-1.5.381.tgz", - "integrity": "sha512-n9Wa6yB+vDsGuA8AKbl/0z7HbvWqt5jxIdvr1IUicd0ryPrk7/xzwqLv8D9AbbvZ6avVNtXYLTfmgFHkwkyelg==", + "version": "1.5.495", + "resolved": "https://registry.npmjs.org/electron-to-chromium/-/electron-to-chromium-1.5.495.tgz", + "integrity": "sha512-dZcmtNbDI5oeT9uP9Z+D7h/H5C1mvBewDTLgZgo9WgyPmqOXSt2cmoCK99evPygUOn9lyXZ4w0Eb8APrkBjqBA==", "dev": true, "license": "ISC" }, @@ -1819,6 +4375,13 @@ "node": ">= 0.4" } }, + "node_modules/es-module-lexer": { + "version": "2.3.2", + "resolved": "https://registry.npmjs.org/es-module-lexer/-/es-module-lexer-2.3.2.tgz", + "integrity": "sha512-poHGpORABojJJucnV9KbOavETW8lBVnphkW77ER5/BQ5Fz7oXSoCNek7IH3vR5nRjdsEz926ibFYX8KtLQmdyw==", + "dev": true, + "license": "MIT" + }, "node_modules/es-object-atoms": { "version": "1.1.2", "resolved": "https://registry.npmjs.org/es-object-atoms/-/es-object-atoms-1.1.2.tgz", @@ -1904,30 +4467,32 @@ "url": "https://github.com/sindresorhus/execa?sponsor=1" } }, - "node_modules/exit": { - "version": "0.1.2", - "resolved": "https://registry.npmjs.org/exit/-/exit-0.1.2.tgz", - "integrity": "sha512-Zk/eNKV2zbjpKzrsQ+n1G6poVbErQxJ0LBOJXaKZ1EViLzH+hrLu9cdXI4zw9dBQJslwBEpbQ2P1oS7nDxs6jQ==", + "node_modules/exit-x": { + "version": "0.2.2", + "resolved": "https://registry.npmjs.org/exit-x/-/exit-x-0.2.2.tgz", + "integrity": "sha512-+I6B/IkJc1o/2tiURyz/ivu/O0nKNEArIUB5O7zBrlDVJr22SCLH3xTeEry428LvFhRzIA1g8izguxJ/gbNcVQ==", "dev": true, + "license": "MIT", "engines": { "node": ">= 0.8.0" } }, "node_modules/expect": { - "version": "29.7.0", - "resolved": "https://registry.npmjs.org/expect/-/expect-29.7.0.tgz", - "integrity": "sha512-2Zks0hf1VLFYI1kbh0I5jP3KHHyCHpkfyHBzsSXRFgl/Bg9mWYfMW8oD+PdMPlEwy5HNsR9JutYy6pMeOh61nw==", + "version": "30.5.2", + "resolved": "https://registry.npmjs.org/expect/-/expect-30.5.2.tgz", + "integrity": "sha512-0LNuMvs8/5mRYhnCR4k+lGV7fqPMs6Bnksda4S3zsCUmdxBpAn4zU4NNzXdq1pMKe/H4W5t/zVIDSJ/H3e0vDA==", "dev": true, "license": "MIT", "dependencies": { - "@jest/expect-utils": "^29.7.0", - "jest-get-type": "^29.6.3", - "jest-matcher-utils": "^29.7.0", - "jest-message-util": "^29.7.0", - "jest-util": "^29.7.0" + "@jest/expect-utils": "30.5.2", + "@jest/get-type": "30.5.0", + "jest-matcher-utils": "30.5.2", + "jest-message-util": "30.5.1", + "jest-mock": "30.5.2", + "jest-util": "30.5.1" }, "engines": { - "node": "^14.15.0 || ^16.10.0 || >=18.0.0" + "node": "^18.14.0 || ^20.0.0 || ^22.0.0 || >=24.0.0" } }, "node_modules/fast-json-stable-stringify": { @@ -1938,13 +4503,41 @@ "license": "MIT" }, "node_modules/fb-watchman": { - "version": "2.0.2", - "resolved": "https://registry.npmjs.org/fb-watchman/-/fb-watchman-2.0.2.tgz", - "integrity": "sha512-p5161BqbuCaSnB8jIbzQHOlpgsPmK5rJVDfDKO91Axs5NC1uu3HRQm6wt9cd9/+GtQQIO53JdGXXoyDpTAsgYA==", + "version": "2.0.4", + "resolved": "https://registry.npmjs.org/fb-watchman/-/fb-watchman-2.0.4.tgz", + "integrity": "sha512-tGQtaoYisPDriJBN0mT5yZSyNETnJGA1gTYxaVRAE5KUO3LI9kPUc9WIu8JXcxaIci+faIKlzXqXyPgrmubtBQ==", "dev": true, - "license": "Apache-2.0", + "license": "MIT", + "dependencies": { + "bser": "2.1.2" + } + }, + "node_modules/fd-package-json": { + "version": "2.0.0", + "resolved": "https://registry.npmjs.org/fd-package-json/-/fd-package-json-2.0.0.tgz", + "integrity": "sha512-jKmm9YtsNXN789RS/0mSzOC1NUq9mkVd65vbSSVsKdjGvYXBuE4oWe2QOEoFeRmJg+lPuZxpmrfFclNhoRMneQ==", + "dev": true, + "license": "MIT", "dependencies": { - "bser": "2.1.1" + "walk-up-path": "^4.0.0" + } + }, + "node_modules/fdir": { + "version": "6.5.0", + "resolved": "https://registry.npmjs.org/fdir/-/fdir-6.5.0.tgz", + "integrity": "sha512-tIbYtZbucOs0BRGqPJkshJUYdL+SDH7dVM8gjy+ERp3WAUjLEFJE+02kanyHtwjWOnwrKYBiwAmM0p4kLJAnXg==", + "dev": true, + "license": "MIT", + "engines": { + "node": ">=12.0.0" + }, + "peerDependencies": { + "picomatch": "^3 || ^4" + }, + "peerDependenciesMeta": { + "picomatch": { + "optional": true + } } }, "node_modules/fernet": { @@ -1957,19 +4550,6 @@ "urlsafe-base64": "1.0.0" } }, - "node_modules/fill-range": { - "version": "7.1.1", - "resolved": "https://registry.npmjs.org/fill-range/-/fill-range-7.1.1.tgz", - "integrity": "sha512-YsGpe3WHLK8ZYi4tWDg2Jy3ebRz2rXowDxnld4bkQB00cc/1Zw9AWnC0i9ztDJitivtQvaI9KaLyKrc+hBW0yg==", - "dev": true, - "license": "MIT", - "dependencies": { - "to-regex-range": "^5.0.1" - }, - "engines": { - "node": ">=8" - } - }, "node_modules/find-up": { "version": "4.1.0", "resolved": "https://registry.npmjs.org/find-up/-/find-up-4.1.0.tgz", @@ -1999,17 +4579,47 @@ "url": "https://github.com/sponsors/ljharb" } }, + "node_modules/foreground-child": { + "version": "3.3.1", + "resolved": "https://registry.npmjs.org/foreground-child/-/foreground-child-3.3.1.tgz", + "integrity": "sha512-gIXjKqtFuWEgzFRJA9WCQeSJLZDjgJUOMCMzxtvFq/37KojM1BFGufqsCy0r4qSQmYLsZYMeyRqzIWOMup03sw==", + "dev": true, + "license": "ISC", + "dependencies": { + "cross-spawn": "^7.0.6", + "signal-exit": "^4.0.1" + }, + "engines": { + "node": ">=14" + }, + "funding": { + "url": "https://github.com/sponsors/isaacs" + } + }, + "node_modules/foreground-child/node_modules/signal-exit": { + "version": "4.1.0", + "resolved": "https://registry.npmjs.org/signal-exit/-/signal-exit-4.1.0.tgz", + "integrity": "sha512-bzyZ1e88w9O1iNJbKnOlvYTrWPDl46O1bG0D3XInv+9tkPrxrN8jUUTiFlDkkmKWgn1M6CfIA13SuGqOa9Korw==", + "dev": true, + "license": "ISC", + "engines": { + "node": ">=14" + }, + "funding": { + "url": "https://github.com/sponsors/isaacs" + } + }, "node_modules/form-data": { - "version": "4.0.5", - "resolved": "https://registry.npmjs.org/form-data/-/form-data-4.0.5.tgz", - "integrity": "sha512-8RipRLol37bNs2bhoV67fiTEvdTrbMUYcFTiy3+wuuOnUog2QBHCZWXDRijWQfAkhBj2Uf5UnVaiWwA5vdd82w==", + "version": "4.0.6", + "resolved": "https://registry.npmjs.org/form-data/-/form-data-4.0.6.tgz", + "integrity": "sha512-vKatAh4SlVfgbv+YtmhiRjhEMJsYpsG1Y2rMQtR+SVSbytsSD1YGzDIcrAJmdFec88u/+VoGmxnl+80gL1tRCQ==", "license": "MIT", "dependencies": { "asynckit": "^0.4.0", "combined-stream": "^1.0.8", "es-set-tostringtag": "^2.1.0", - "hasown": "^2.0.2", - "mime-types": "^2.1.12" + "hasown": "^2.0.4", + "mime-types": "^2.1.35" }, "engines": { "node": ">= 6" @@ -2036,26 +4646,24 @@ "node": ">= 0.6" } }, - "node_modules/fs.realpath": { - "version": "1.0.0", - "resolved": "https://registry.npmjs.org/fs.realpath/-/fs.realpath-1.0.0.tgz", - "integrity": "sha512-OO0pH2lK6a0hZnAdau5ItzHPI6pUlvI7jMVnxUQRtw4owF2wk8lOSabtGDCTP4Ggrg2MbGnWO9X8K1t4+fGMDw==", - "dev": true, - "license": "ISC" - }, - "node_modules/fsevents": { - "version": "2.3.3", - "resolved": "https://registry.npmjs.org/fsevents/-/fsevents-2.3.3.tgz", - "integrity": "sha512-5xoDfX+fL7faATnagmWPpbFtwh/R77WmMMqqHGS65C3vvB0YHrgF+B1YmZ3441tMj5n63k0212XNoJwzlhffQw==", + "node_modules/formatly": { + "version": "0.12.3", + "resolved": "https://registry.npmjs.org/formatly/-/formatly-0.12.3.tgz", + "integrity": "sha512-jGtjZLVw6OXvfwqxrxYBc+x+CxmOcMT/KjZagmkrYCQTEtQxJPablRqZPFSNq75drNsHsadjb1djIsE9KE705w==", "dev": true, - "hasInstallScript": true, "license": "MIT", - "optional": true, - "os": [ - "darwin" - ], + "dependencies": { + "fd-package-json": "^2.0.0", + "package-manager-detector": "^1.8.0", + "parse-standard-args": "^0.3.0", + "tinyexec": "^1.3.1", + "zod": "^4.2.0" + }, + "bin": { + "formatly": "bin/index.mjs" + }, "engines": { - "node": "^8.16.0 || ^10.6.0 || >=11.0.0" + "node": "^20.12.0 || >=22" } }, "node_modules/function-bind": { @@ -2147,23 +4755,32 @@ "url": "https://github.com/sponsors/sindresorhus" } }, + "node_modules/get-tsconfig": { + "version": "4.14.3", + "resolved": "https://registry.npmjs.org/get-tsconfig/-/get-tsconfig-4.14.3.tgz", + "integrity": "sha512-++QEw4DIY7WGoukz+/+A/8dGYPT9l9yIadnmSgZ8Rjr3YVSVDipQSO9CdnJo9ePqFqUUqh+wk9uIaoiAwsiPkA==", + "dev": true, + "license": "MIT", + "dependencies": { + "resolve-pkg-maps": "^1.0.0" + }, + "funding": { + "url": "https://github.com/privatenumber/get-tsconfig?sponsor=1" + } + }, "node_modules/glob": { - "version": "7.2.3", - "resolved": "https://registry.npmjs.org/glob/-/glob-7.2.3.tgz", - "integrity": "sha512-nFR0zLpU2YCaRxwoCJvL6UvCH2JFyFVIvwTLsIf21AuHlMskA1hhTdk+LlYJtOlYt9v6dvszD2BGRqBL+iQK9Q==", - "deprecated": "Old versions of glob are not supported, and contain widely publicized security vulnerabilities, which have been fixed in the current version. Please update. Support for old versions may be purchased (at exorbitant rates) by contacting i@izs.me", + "version": "13.0.7", + "resolved": "https://registry.npmjs.org/glob/-/glob-13.0.7.tgz", + "integrity": "sha512-wfsFgXQ8A3SEI9XGf7Nl3Y9l7ffSrGh7SUCT7vU/2CzYPep9kjxAn1S40F9OPKxAMGCVl7HtNlJhrCJUeUq83g==", "dev": true, - "license": "ISC", + "license": "BlueOak-1.0.0", "dependencies": { - "fs.realpath": "^1.0.0", - "inflight": "^1.0.4", - "inherits": "2", - "minimatch": "^3.1.1", - "once": "^1.3.0", - "path-is-absolute": "^1.0.0" + "minimatch": "^10.2.2", + "minipass": "^7.1.3", + "path-scurry": "^2.0.2" }, "engines": { - "node": "*" + "node": "18 || 20 || >=22" }, "funding": { "url": "https://github.com/sponsors/isaacs" @@ -2182,11 +4799,11 @@ } }, "node_modules/graceful-fs": { - "version": "4.2.11", - "resolved": "https://registry.npmjs.org/graceful-fs/-/graceful-fs-4.2.11.tgz", - "integrity": "sha512-RbJ5/jmFcNNCcDV5o9eTnBLJ/HszWV0P73bc+Ff4nS/rJj+YaS6IGyiOL0VoBYX+l1Wrl3k63h/KrH+nhJ0XvQ==", + "version": "4.2.12", + "resolved": "https://registry.npmjs.org/graceful-fs/-/graceful-fs-4.2.12.tgz", + "integrity": "sha512-iuyGF2E4oafQfPsRrG2wtY2ILupMhvtdrhzrxB+0VcjsPpSPttpfYdjnGFGsTi5MaJFjI1jOKHPQ6UTbTj9TAw==", "dev": true, - "license": "ISC" + "license": "BlueOak-1.0.0" }, "node_modules/has-flag": { "version": "4.0.0", @@ -2307,20 +4924,8 @@ "integrity": "sha512-JmXMZ6wuvDmLiHEml9ykzqO6lwFbof0GG4IkcGaENdCRDDmMVnny7s5HsIgHCbaq0w2MyPhDqkhTUgS2LU2PHA==", "dev": true, "license": "MIT", - "engines": { - "node": ">=0.8.19" - } - }, - "node_modules/inflight": { - "version": "1.0.6", - "resolved": "https://registry.npmjs.org/inflight/-/inflight-1.0.6.tgz", - "integrity": "sha512-k92I/b08q4wvFscXCLvqfsHCrjrF7yiXsQuIVvVE7N82W3+aqpzuUdBbfhWcy/FZR3/4IgflMgKLOsvPDrGCJA==", - "deprecated": "This module is not supported, and leaks memory. Do not use it. Check out lru-cache if you want a good and tested way to coalesce async requests by a key value, which is much more comprehensive and powerful.", - "dev": true, - "license": "ISC", - "dependencies": { - "once": "^1.3.0", - "wrappy": "1" + "engines": { + "node": ">=0.8.19" } }, "node_modules/inherits": { @@ -2348,20 +4953,14 @@ "url": "https://github.com/sponsors/ljharb" } }, - "node_modules/is-core-module": { - "version": "2.16.2", - "resolved": "https://registry.npmjs.org/is-core-module/-/is-core-module-2.16.2.tgz", - "integrity": "sha512-evOr8xfXKxE6qSR0hSXL2r3sd7ALj8+7jQEUvPYcm5sgZFdJ+AYzT6yNmJenvIYQBgIGwfwz08sL8zoL7yq2BA==", + "node_modules/is-extglob": { + "version": "2.1.1", + "resolved": "https://registry.npmjs.org/is-extglob/-/is-extglob-2.1.1.tgz", + "integrity": "sha512-SbKbANkN603Vi4jEZv49LeVJMn4yGwsbzZworEoyEiutsN3nJYdbO36zfhGJ6QEDpOZIFkDtnq5JRxmvl3jsoQ==", "dev": true, "license": "MIT", - "dependencies": { - "hasown": "^2.0.3" - }, "engines": { - "node": ">= 0.4" - }, - "funding": { - "url": "https://github.com/sponsors/ljharb" + "node": ">=0.10.0" } }, "node_modules/is-fullwidth-code-point": { @@ -2384,14 +4983,17 @@ "node": ">=6" } }, - "node_modules/is-number": { - "version": "7.0.0", - "resolved": "https://registry.npmjs.org/is-number/-/is-number-7.0.0.tgz", - "integrity": "sha512-41Cifkg6e8TylSpdtTpeLVMqvSBEVzTttHvERD741+pnZ8ANv0004MRL43QKPDlK9cGvNp6NZWZUBlbGXYxxng==", + "node_modules/is-glob": { + "version": "4.0.3", + "resolved": "https://registry.npmjs.org/is-glob/-/is-glob-4.0.3.tgz", + "integrity": "sha512-xelSayHH36ZgE7ZWhli7pW34hNbNl8Ojv5KVmkJD4hBdD3th8Tfk9vYasLM+mXWOZhFkgZfxhLSnrwRr4elSSg==", "dev": true, "license": "MIT", + "dependencies": { + "is-extglob": "^2.1.1" + }, "engines": { - "node": ">=0.12.0" + "node": ">=0.10.0" } }, "node_modules/is-stream": { @@ -2463,9 +5065,9 @@ } }, "node_modules/istanbul-lib-instrument/node_modules/semver": { - "version": "7.8.5", - "resolved": "https://registry.npmjs.org/semver/-/semver-7.8.5.tgz", - "integrity": "sha512-Y7/KDsb8LjooZpwaqGyulO6DQlksgCncchHGk+sZIY4SBvUocMBEFH5Ur1fI4dV+Jvl0w6cjvucaIi40puRioA==", + "version": "7.8.6", + "resolved": "https://registry.npmjs.org/semver/-/semver-7.8.6.tgz", + "integrity": "sha512-9lpSSU4Mly3mrtruwLs1eLK6+gzbzqeBFwRNjIjE+9LuDpWdYctrQlQ3ej1Ilgi7gknpsTRnPoLP8DpCHqHIJw==", "dev": true, "license": "ISC", "bin": { @@ -2491,15 +5093,15 @@ } }, "node_modules/istanbul-lib-source-maps": { - "version": "4.0.1", - "resolved": "https://registry.npmjs.org/istanbul-lib-source-maps/-/istanbul-lib-source-maps-4.0.1.tgz", - "integrity": "sha512-n3s8EwkdFIJCG3BPKBYvskgXGoy88ARzvegkitk60NxRdwltLOTaH7CUiMRXvwYorl0Q712iEjcWB+fK/MrWVw==", + "version": "5.0.6", + "resolved": "https://registry.npmjs.org/istanbul-lib-source-maps/-/istanbul-lib-source-maps-5.0.6.tgz", + "integrity": "sha512-yg2d+Em4KizZC5niWhQaIomgf5WlL4vOOjZ5xGCmF8SnPE/mDWWXgvRExdcpCgh9lLRRa1/fSYp2ymmbJ1pI+A==", "dev": true, "license": "BSD-3-Clause", "dependencies": { + "@jridgewell/trace-mapping": "^0.3.23", "debug": "^4.1.1", - "istanbul-lib-coverage": "^3.0.0", - "source-map": "^0.6.1" + "istanbul-lib-coverage": "^3.0.0" }, "engines": { "node": ">=10" @@ -2519,23 +5121,39 @@ "node": ">=8" } }, + "node_modules/jackspeak": { + "version": "3.4.3", + "resolved": "https://registry.npmjs.org/jackspeak/-/jackspeak-3.4.3.tgz", + "integrity": "sha512-OGlZQpz2yfahA/Rd1Y8Cd9SIEsqvXkLVoSw/cgwhnhFMDbsQFeZYoJJ7bIZBS9BcamUW96asq/npPWugM+RQBw==", + "dev": true, + "license": "BlueOak-1.0.0", + "dependencies": { + "@isaacs/cliui": "^8.0.2" + }, + "funding": { + "url": "https://github.com/sponsors/isaacs" + }, + "optionalDependencies": { + "@pkgjs/parseargs": "^0.11.0" + } + }, "node_modules/jest": { - "version": "29.7.0", - "resolved": "https://registry.npmjs.org/jest/-/jest-29.7.0.tgz", - "integrity": "sha512-NIy3oAFp9shda19hy4HK0HRTWKtPJmGdnvywu01nOqNC2vZg+Z+fvJDxpMQA88eb2I9EcafcdjYgsDthnYTvGw==", + "version": "30.5.2", + "resolved": "https://registry.npmjs.org/jest/-/jest-30.5.2.tgz", + "integrity": "sha512-3gnpdBIza8ijCl3iMV9ChE3hSt1+46865qqod863gQtJr1DixOkAU5DoGbi3u+XlRcw++BhZQMu/y4xBdHBvSQ==", "dev": true, "license": "MIT", "dependencies": { - "@jest/core": "^29.7.0", - "@jest/types": "^29.6.3", - "import-local": "^3.0.2", - "jest-cli": "^29.7.0" + "@jest/core": "30.5.2", + "@jest/types": "30.5.1", + "import-local": "^3.2.0", + "jest-cli": "30.5.2" }, "bin": { "jest": "bin/jest.js" }, "engines": { - "node": "^14.15.0 || ^16.10.0 || >=18.0.0" + "node": "^18.14.0 || ^20.0.0 || ^22.0.0 || >=24.0.0" }, "peerDependencies": { "node-notifier": "^8.0.1 || ^9.0.0 || ^10.0.0" @@ -2547,76 +5165,75 @@ } }, "node_modules/jest-changed-files": { - "version": "29.7.0", - "resolved": "https://registry.npmjs.org/jest-changed-files/-/jest-changed-files-29.7.0.tgz", - "integrity": "sha512-fEArFiwf1BpQ+4bXSprcDc3/x4HSzL4al2tozwVpDFpsxALjLYdyiIK4e5Vz66GQJIbXJ82+35PtysofptNX2w==", + "version": "30.5.1", + "resolved": "https://registry.npmjs.org/jest-changed-files/-/jest-changed-files-30.5.1.tgz", + "integrity": "sha512-0+bvMM/ENhDI29Z8q1r4HxiDIi4G5tnBmSw4esfPQoj9q8Nik7KIyuxHkTVnnniJQf05SxpGaKDQ+4h28ynGPg==", "dev": true, "license": "MIT", "dependencies": { - "execa": "^5.0.0", - "jest-util": "^29.7.0", + "execa": "^5.1.1", + "jest-util": "30.5.1", "p-limit": "^3.1.0" }, "engines": { - "node": "^14.15.0 || ^16.10.0 || >=18.0.0" + "node": "^18.14.0 || ^20.0.0 || ^22.0.0 || >=24.0.0" } }, "node_modules/jest-circus": { - "version": "29.7.0", - "resolved": "https://registry.npmjs.org/jest-circus/-/jest-circus-29.7.0.tgz", - "integrity": "sha512-3E1nCMgipcTkCocFwM90XXQab9bS+GMsjdpmPrlelaxwD93Ad8iVEjX/vvHPdLPnFf+L40u+5+iutRdA1N9myw==", + "version": "30.5.2", + "resolved": "https://registry.npmjs.org/jest-circus/-/jest-circus-30.5.2.tgz", + "integrity": "sha512-vffFgjs5JSJ9q4ds1vNW3klKYPJfYfIY61LT/zaZgvTeASJOWZUt8LBfHgIcV4rwxlPBLl/ePBGccHEclS4PlQ==", "dev": true, "license": "MIT", "dependencies": { - "@jest/environment": "^29.7.0", - "@jest/expect": "^29.7.0", - "@jest/test-result": "^29.7.0", - "@jest/types": "^29.6.3", + "@jest/environment": "30.5.2", + "@jest/expect": "30.5.2", + "@jest/test-result": "30.5.2", + "@jest/types": "30.5.1", "@types/node": "*", - "chalk": "^4.0.0", + "chalk": "^4.1.2", "co": "^4.6.0", - "dedent": "^1.0.0", - "is-generator-fn": "^2.0.0", - "jest-each": "^29.7.0", - "jest-matcher-utils": "^29.7.0", - "jest-message-util": "^29.7.0", - "jest-runtime": "^29.7.0", - "jest-snapshot": "^29.7.0", - "jest-util": "^29.7.0", + "dedent": "^1.6.0", + "is-generator-fn": "^2.1.0", + "jest-each": "30.5.2", + "jest-matcher-utils": "30.5.2", + "jest-message-util": "30.5.1", + "jest-runtime": "30.5.2", + "jest-snapshot": "30.5.2", + "jest-util": "30.5.1", "p-limit": "^3.1.0", - "pretty-format": "^29.7.0", - "pure-rand": "^6.0.0", + "pretty-format": "30.5.1", + "pure-rand": "^7.0.0", "slash": "^3.0.0", - "stack-utils": "^2.0.3" + "stack-utils": "^2.0.6" }, "engines": { - "node": "^14.15.0 || ^16.10.0 || >=18.0.0" + "node": "^18.14.0 || ^20.0.0 || ^22.0.0 || >=24.0.0" } }, "node_modules/jest-cli": { - "version": "29.7.0", - "resolved": "https://registry.npmjs.org/jest-cli/-/jest-cli-29.7.0.tgz", - "integrity": "sha512-OVVobw2IubN/GSYsxETi+gOe7Ka59EFMR/twOU3Jb2GnKKeMGJB5SGUUrEz3SFVmJASUdZUzy83sLNNQ2gZslg==", + "version": "30.5.2", + "resolved": "https://registry.npmjs.org/jest-cli/-/jest-cli-30.5.2.tgz", + "integrity": "sha512-YYYxUUVjFgPvgEleKNKMaYGIFgR3l3832Cl0kRL/oCiDZ03v7wImUtquHl2OOBCCNgprjZgBN5bczS/JklPBDg==", "dev": true, "license": "MIT", "dependencies": { - "@jest/core": "^29.7.0", - "@jest/test-result": "^29.7.0", - "@jest/types": "^29.6.3", - "chalk": "^4.0.0", - "create-jest": "^29.7.0", - "exit": "^0.1.2", - "import-local": "^3.0.2", - "jest-config": "^29.7.0", - "jest-util": "^29.7.0", - "jest-validate": "^29.7.0", - "yargs": "^17.3.1" + "@jest/core": "30.5.2", + "@jest/test-result": "30.5.2", + "@jest/types": "30.5.1", + "chalk": "^4.1.2", + "exit-x": "^0.2.2", + "import-local": "^3.2.0", + "jest-config": "30.5.2", + "jest-util": "30.5.1", + "jest-validate": "30.5.1", + "yargs": "^17.7.2" }, "bin": { "jest": "bin/jest.js" }, "engines": { - "node": "^14.15.0 || ^16.10.0 || >=18.0.0" + "node": "^18.14.0 || ^20.0.0 || ^22.0.0 || >=24.0.0" }, "peerDependencies": { "node-notifier": "^8.0.1 || ^9.0.0 || ^10.0.0" @@ -2628,383 +5245,362 @@ } }, "node_modules/jest-config": { - "version": "29.7.0", - "resolved": "https://registry.npmjs.org/jest-config/-/jest-config-29.7.0.tgz", - "integrity": "sha512-uXbpfeQ7R6TZBqI3/TxCU4q4ttk3u0PJeC+E0zbfSoSjq6bJ7buBPxzQPL0ifrkY4DNu4JUdk0ImlBUYi840eQ==", - "dev": true, - "license": "MIT", - "dependencies": { - "@babel/core": "^7.11.6", - "@jest/test-sequencer": "^29.7.0", - "@jest/types": "^29.6.3", - "babel-jest": "^29.7.0", - "chalk": "^4.0.0", - "ci-info": "^3.2.0", - "deepmerge": "^4.2.2", - "glob": "^7.1.3", - "graceful-fs": "^4.2.9", - "jest-circus": "^29.7.0", - "jest-environment-node": "^29.7.0", - "jest-get-type": "^29.6.3", - "jest-regex-util": "^29.6.3", - "jest-resolve": "^29.7.0", - "jest-runner": "^29.7.0", - "jest-util": "^29.7.0", - "jest-validate": "^29.7.0", - "micromatch": "^4.0.4", + "version": "30.5.2", + "resolved": "https://registry.npmjs.org/jest-config/-/jest-config-30.5.2.tgz", + "integrity": "sha512-U6221OZekabePvGcGPf4raIBKMvYQWFHvhobDJRojOYaFMj2HaGytAdknjDhYc6JTz2fdHW9+6k0wWUDaNeOFQ==", + "dev": true, + "license": "MIT", + "dependencies": { + "@babel/core": "^7.27.4", + "@jest/get-type": "30.5.0", + "@jest/pattern": "30.5.0", + "@jest/test-sequencer": "30.5.2", + "@jest/types": "30.5.1", + "babel-jest": "30.5.2", + "chalk": "^4.1.2", + "ci-info": "^4.2.0", + "deepmerge": "^4.3.1", + "glob": "^13.0.6", + "graceful-fs": "^4.2.11", + "jest-circus": "30.5.2", + "jest-docblock": "30.5.0", + "jest-environment-node": "30.5.2", + "jest-regex-util": "30.5.0", + "jest-resolve": "30.5.1", + "jest-runner": "30.5.2", + "jest-util": "30.5.1", + "jest-validate": "30.5.1", "parse-json": "^5.2.0", - "pretty-format": "^29.7.0", + "pretty-format": "30.5.1", "slash": "^3.0.0", "strip-json-comments": "^3.1.1" }, "engines": { - "node": "^14.15.0 || ^16.10.0 || >=18.0.0" + "node": "^18.14.0 || ^20.0.0 || ^22.0.0 || >=24.0.0" }, "peerDependencies": { "@types/node": "*", + "esbuild-register": ">=3.4.0", "ts-node": ">=9.0.0" }, "peerDependenciesMeta": { "@types/node": { "optional": true }, + "esbuild-register": { + "optional": true + }, "ts-node": { "optional": true } } }, "node_modules/jest-diff": { - "version": "29.7.0", - "resolved": "https://registry.npmjs.org/jest-diff/-/jest-diff-29.7.0.tgz", - "integrity": "sha512-LMIgiIrhigmPrs03JHpxUh2yISK3vLFPkAodPeo0+BuF7wA2FoQbkEg1u8gBYBThncu7e1oEDUfIXVuTqLRUjw==", + "version": "30.5.2", + "resolved": "https://registry.npmjs.org/jest-diff/-/jest-diff-30.5.2.tgz", + "integrity": "sha512-rBtHnI6BWTiWj3lM7fOLVfChx7R9B0u9VV3PRHawKs79x6ZjW1QoSrKenaigNGWlvhtoi2BqvDbABDie+Os3xQ==", "dev": true, "license": "MIT", "dependencies": { - "chalk": "^4.0.0", - "diff-sequences": "^29.6.3", - "jest-get-type": "^29.6.3", - "pretty-format": "^29.7.0" + "@jest/diff-sequences": "30.5.0", + "@jest/get-type": "30.5.0", + "chalk": "^4.1.2", + "pretty-format": "30.5.1" }, "engines": { - "node": "^14.15.0 || ^16.10.0 || >=18.0.0" + "node": "^18.14.0 || ^20.0.0 || ^22.0.0 || >=24.0.0" } }, "node_modules/jest-docblock": { - "version": "29.7.0", - "resolved": "https://registry.npmjs.org/jest-docblock/-/jest-docblock-29.7.0.tgz", - "integrity": "sha512-q617Auw3A612guyaFgsbFeYpNP5t2aoUNLwBUbc/0kD1R4t9ixDbyFTHd1nok4epoVFpr7PmeWHrhvuV3XaJ4g==", + "version": "30.5.0", + "resolved": "https://registry.npmjs.org/jest-docblock/-/jest-docblock-30.5.0.tgz", + "integrity": "sha512-NwDqcxtoZi33RhuW+zJS/RVA3rmheQ8BnwpYZuc/Eruaz6seQb7+aoCeDZu/3X7W2XmD8DbSo9Pn72DbKsBFYw==", "dev": true, "license": "MIT", "dependencies": { - "detect-newline": "^3.0.0" + "detect-newline": "^3.1.0" }, "engines": { - "node": "^14.15.0 || ^16.10.0 || >=18.0.0" + "node": "^18.14.0 || ^20.0.0 || ^22.0.0 || >=24.0.0" } }, "node_modules/jest-each": { - "version": "29.7.0", - "resolved": "https://registry.npmjs.org/jest-each/-/jest-each-29.7.0.tgz", - "integrity": "sha512-gns+Er14+ZrEoC5fhOfYCY1LOHHr0TI+rQUHZS8Ttw2l7gl+80eHc/gFf2Ktkw0+SIACDTeWvpFcv3B04VembQ==", + "version": "30.5.2", + "resolved": "https://registry.npmjs.org/jest-each/-/jest-each-30.5.2.tgz", + "integrity": "sha512-GRrW+7fmmgmkvyfEBqc1QFdWnF1Ex5yG6Y6AWL4TTxnkWlKIT98dsKh3P3UuWm6v4XsQwVE6DEzXIPMzWJ3ZbA==", "dev": true, "license": "MIT", "dependencies": { - "@jest/types": "^29.6.3", - "chalk": "^4.0.0", - "jest-get-type": "^29.6.3", - "jest-util": "^29.7.0", - "pretty-format": "^29.7.0" + "@jest/get-type": "30.5.0", + "@jest/types": "30.5.1", + "chalk": "^4.1.2", + "jest-regex-util": "30.5.0", + "jest-util": "30.5.1", + "pretty-format": "30.5.1" }, "engines": { - "node": "^14.15.0 || ^16.10.0 || >=18.0.0" + "node": "^18.14.0 || ^20.0.0 || ^22.0.0 || >=24.0.0" } }, "node_modules/jest-environment-node": { - "version": "29.7.0", - "resolved": "https://registry.npmjs.org/jest-environment-node/-/jest-environment-node-29.7.0.tgz", - "integrity": "sha512-DOSwCRqXirTOyheM+4d5YZOrWcdu0LNZ87ewUoywbcb2XR4wKgqiG8vNeYwhjFMbEkfju7wx2GYH0P2gevGvFw==", + "version": "30.5.2", + "resolved": "https://registry.npmjs.org/jest-environment-node/-/jest-environment-node-30.5.2.tgz", + "integrity": "sha512-Ciz4KgTGIbojxSKpuFImgWJj5EyqfE8xMq9NxWmOXnQywHHS03H9Mv+vaCB29J5pr3JBrY27WbRV18rBdjh8Dg==", "dev": true, "license": "MIT", "dependencies": { - "@jest/environment": "^29.7.0", - "@jest/fake-timers": "^29.7.0", - "@jest/types": "^29.6.3", + "@jest/environment": "30.5.2", + "@jest/fake-timers": "30.5.2", + "@jest/types": "30.5.1", "@types/node": "*", - "jest-mock": "^29.7.0", - "jest-util": "^29.7.0" + "jest-mock": "30.5.2", + "jest-util": "30.5.1", + "jest-validate": "30.5.1" }, "engines": { - "node": "^14.15.0 || ^16.10.0 || >=18.0.0" - } - }, - "node_modules/jest-get-type": { - "version": "29.6.3", - "resolved": "https://registry.npmjs.org/jest-get-type/-/jest-get-type-29.6.3.tgz", - "integrity": "sha512-zrteXnqYxfQh7l5FHyL38jL39di8H8rHoecLH3JNxH3BwOrBsNeabdap5e0I23lD4HHI8W5VFBZqG4Eaq5LNcw==", - "dev": true, - "license": "MIT", - "engines": { - "node": "^14.15.0 || ^16.10.0 || >=18.0.0" + "node": "^18.14.0 || ^20.0.0 || ^22.0.0 || >=24.0.0" } }, "node_modules/jest-haste-map": { - "version": "29.7.0", - "resolved": "https://registry.npmjs.org/jest-haste-map/-/jest-haste-map-29.7.0.tgz", - "integrity": "sha512-fP8u2pyfqx0K1rGn1R9pyE0/KTn+G7PxktWidOBTqFPLYX0b9ksaMFkhK5vrS3DVun09pckLdlx90QthlW7AmA==", + "version": "30.5.1", + "resolved": "https://registry.npmjs.org/jest-haste-map/-/jest-haste-map-30.5.1.tgz", + "integrity": "sha512-VIFgt67jW480YDxKfEv9IYQKrFpYt7bOCMn3VsnjK7AK9qo7p6acpnA1DHwsVOULE3dTaYew/6JaTD/d0VDHoQ==", "dev": true, "license": "MIT", "dependencies": { - "@jest/types": "^29.6.3", - "@types/graceful-fs": "^4.1.3", + "@jest/types": "30.5.1", + "@parcel/watcher": "^2.6.0", "@types/node": "*", - "anymatch": "^3.0.3", - "fb-watchman": "^2.0.0", - "graceful-fs": "^4.2.9", - "jest-regex-util": "^29.6.3", - "jest-util": "^29.7.0", - "jest-worker": "^29.7.0", - "micromatch": "^4.0.4", - "walker": "^1.0.8" + "anymatch": "^3.1.3", + "fb-watchman": "^2.0.2", + "fdir": "^6.5.0", + "graceful-fs": "^4.2.11", + "jest-regex-util": "30.5.0", + "jest-util": "30.5.1", + "jest-worker": "30.5.1", + "picomatch": "^4.0.3" }, "engines": { - "node": "^14.15.0 || ^16.10.0 || >=18.0.0" - }, - "optionalDependencies": { - "fsevents": "^2.3.2" + "node": "^18.14.0 || ^20.0.0 || ^22.0.0 || >=24.0.0" } }, "node_modules/jest-leak-detector": { - "version": "29.7.0", - "resolved": "https://registry.npmjs.org/jest-leak-detector/-/jest-leak-detector-29.7.0.tgz", - "integrity": "sha512-kYA8IJcSYtST2BY9I+SMC32nDpBT3J2NvWJx8+JCuCdl/CR1I4EKUJROiP8XtCcxqgTTBGJNdbB1A8XRKbTetw==", + "version": "30.5.1", + "resolved": "https://registry.npmjs.org/jest-leak-detector/-/jest-leak-detector-30.5.1.tgz", + "integrity": "sha512-gt4GT2aWgEoCNTcBe4rqS74xTIUJxi+UD9SNSu9aOk5LmTEd6fS5KSTmAKAfitCCktQHNN+upUuL6EkBfFbMDQ==", "dev": true, "license": "MIT", "dependencies": { - "jest-get-type": "^29.6.3", - "pretty-format": "^29.7.0" + "@jest/get-type": "30.5.0", + "pretty-format": "30.5.1" }, "engines": { - "node": "^14.15.0 || ^16.10.0 || >=18.0.0" + "node": "^18.14.0 || ^20.0.0 || ^22.0.0 || >=24.0.0" } }, "node_modules/jest-matcher-utils": { - "version": "29.7.0", - "resolved": "https://registry.npmjs.org/jest-matcher-utils/-/jest-matcher-utils-29.7.0.tgz", - "integrity": "sha512-sBkD+Xi9DtcChsI3L3u0+N0opgPYnCRPtGcQYrgXmR+hmt/fYfWAL0xRXYU8eWOdfuLgBe0YCW3AFtnRLagq/g==", + "version": "30.5.2", + "resolved": "https://registry.npmjs.org/jest-matcher-utils/-/jest-matcher-utils-30.5.2.tgz", + "integrity": "sha512-lFkB365PTIHOhPzwrb9T6gvlDnPpOZ7/c3ewOKKB7bzztqjVrtlyRL2MkyfJXpyY2u2SKw001JKrTx14fBUFcQ==", "dev": true, "license": "MIT", "dependencies": { - "chalk": "^4.0.0", - "jest-diff": "^29.7.0", - "jest-get-type": "^29.6.3", - "pretty-format": "^29.7.0" + "@jest/get-type": "30.5.0", + "chalk": "^4.1.2", + "jest-diff": "30.5.2", + "pretty-format": "30.5.1" }, "engines": { - "node": "^14.15.0 || ^16.10.0 || >=18.0.0" + "node": "^18.14.0 || ^20.0.0 || ^22.0.0 || >=24.0.0" } }, "node_modules/jest-message-util": { - "version": "29.7.0", - "resolved": "https://registry.npmjs.org/jest-message-util/-/jest-message-util-29.7.0.tgz", - "integrity": "sha512-GBEV4GRADeP+qtB2+6u61stea8mGcOT4mCtrYISZwfu9/ISHFJ/5zOMXYbpBE9RsS5+Gb63DW4FgmnKJ79Kf6w==", + "version": "30.5.1", + "resolved": "https://registry.npmjs.org/jest-message-util/-/jest-message-util-30.5.1.tgz", + "integrity": "sha512-UdQlLdd9wL/Ys7xRErckqwD6wPlSZYueosSWuHc1r2ztGLwlgPvtSJq2+BPEgaEY13WLvfFbmhTj8pba0Sd1jg==", "dev": true, "license": "MIT", "dependencies": { - "@babel/code-frame": "^7.12.13", - "@jest/types": "^29.6.3", - "@types/stack-utils": "^2.0.0", - "chalk": "^4.0.0", - "graceful-fs": "^4.2.9", - "micromatch": "^4.0.4", - "pretty-format": "^29.7.0", + "@babel/code-frame": "^7.27.1", + "@jest/types": "30.5.1", + "@types/stack-utils": "^2.0.3", + "chalk": "^4.1.2", + "graceful-fs": "^4.2.11", + "jest-util": "30.5.1", + "picomatch": "^4.0.3", + "pretty-format": "30.5.1", "slash": "^3.0.0", - "stack-utils": "^2.0.3" + "stack-utils": "^2.0.6" }, "engines": { - "node": "^14.15.0 || ^16.10.0 || >=18.0.0" + "node": "^18.14.0 || ^20.0.0 || ^22.0.0 || >=24.0.0" } }, "node_modules/jest-mock": { - "version": "29.7.0", - "resolved": "https://registry.npmjs.org/jest-mock/-/jest-mock-29.7.0.tgz", - "integrity": "sha512-ITOMZn+UkYS4ZFh83xYAOzWStloNzJFO2s8DWrE4lhtGD+AorgnbkiKERe4wQVBydIGPx059g6riW5Btp6Llnw==", + "version": "30.5.2", + "resolved": "https://registry.npmjs.org/jest-mock/-/jest-mock-30.5.2.tgz", + "integrity": "sha512-KTHb37Fhj8xY8qPFvTFaFJHcdsumQp+ExsUlgoX232Agmc706gagBs53+CYvulV7MVQo9AgXOUxsqzzVBoJlrA==", "dev": true, "license": "MIT", "dependencies": { - "@jest/types": "^29.6.3", + "@jest/expect-utils": "30.5.2", + "@jest/types": "30.5.1", "@types/node": "*", - "jest-util": "^29.7.0" + "jest-util": "30.5.1" }, "engines": { - "node": "^14.15.0 || ^16.10.0 || >=18.0.0" - } - }, - "node_modules/jest-pnp-resolver": { - "version": "1.2.3", - "resolved": "https://registry.npmjs.org/jest-pnp-resolver/-/jest-pnp-resolver-1.2.3.tgz", - "integrity": "sha512-+3NpwQEnRoIBtx4fyhblQDPgJI0H1IEIkX7ShLUjPGA7TtUTvI1oiKi3SR4oBR0hQhQR80l4WAe5RrXBwWMA8w==", - "dev": true, - "license": "MIT", - "engines": { - "node": ">=6" - }, - "peerDependencies": { - "jest-resolve": "*" - }, - "peerDependenciesMeta": { - "jest-resolve": { - "optional": true - } + "node": "^18.14.0 || ^20.0.0 || ^22.0.0 || >=24.0.0" } }, "node_modules/jest-regex-util": { - "version": "29.6.3", - "resolved": "https://registry.npmjs.org/jest-regex-util/-/jest-regex-util-29.6.3.tgz", - "integrity": "sha512-KJJBsRCyyLNWCNBOvZyRDnAIfUiRJ8v+hOBQYGn8gDyF3UegwiP4gwRR3/SDa42g1YbVycTidUF3rKjyLFDWbg==", + "version": "30.5.0", + "resolved": "https://registry.npmjs.org/jest-regex-util/-/jest-regex-util-30.5.0.tgz", + "integrity": "sha512-Mg0WK7A6xRHLSA1udJ8y9f3lM0uUhFTBnLKzwPmqB9AylvpleJ6BLemR8K9dK27DY+cesDryoA7yLZCAHsPG1A==", "dev": true, "license": "MIT", "engines": { - "node": "^14.15.0 || ^16.10.0 || >=18.0.0" + "node": "^18.14.0 || ^20.0.0 || ^22.0.0 || >=24.0.0" } }, "node_modules/jest-resolve": { - "version": "29.7.0", - "resolved": "https://registry.npmjs.org/jest-resolve/-/jest-resolve-29.7.0.tgz", - "integrity": "sha512-IOVhZSrg+UvVAshDSDtHyFCCBUl/Q3AAJv8iZ6ZjnZ74xzvwuzLXid9IIIPgTnY62SJjfuupMKZsZQRsCvxEgA==", + "version": "30.5.1", + "resolved": "https://registry.npmjs.org/jest-resolve/-/jest-resolve-30.5.1.tgz", + "integrity": "sha512-wprhLejRtwN6h8ZgaqC0eYjGJ1uMdGPT/+b3eFncbG4NWuuP9QL+vWwRinu9waw7hkOLcpMJGVJAMgBwsPssMQ==", "dev": true, "license": "MIT", "dependencies": { - "chalk": "^4.0.0", - "graceful-fs": "^4.2.9", - "jest-haste-map": "^29.7.0", - "jest-pnp-resolver": "^1.2.2", - "jest-util": "^29.7.0", - "jest-validate": "^29.7.0", - "resolve": "^1.20.0", - "resolve.exports": "^2.0.0", - "slash": "^3.0.0" + "chalk": "^4.1.2", + "graceful-fs": "^4.2.11", + "jest-haste-map": "30.5.1", + "jest-util": "30.5.1", + "jest-validate": "30.5.1", + "slash": "^3.0.0", + "unrs-resolver": "^1.12.1" }, "engines": { - "node": "^14.15.0 || ^16.10.0 || >=18.0.0" + "node": "^18.14.0 || ^20.0.0 || ^22.0.0 || >=24.0.0" } }, "node_modules/jest-resolve-dependencies": { - "version": "29.7.0", - "resolved": "https://registry.npmjs.org/jest-resolve-dependencies/-/jest-resolve-dependencies-29.7.0.tgz", - "integrity": "sha512-un0zD/6qxJ+S0et7WxeI3H5XSe9lTBBR7bOHCHXkKR6luG5mwDDlIzVQ0V5cZCuoTgEdcdwzTghYkTWfubi+nA==", + "version": "30.5.2", + "resolved": "https://registry.npmjs.org/jest-resolve-dependencies/-/jest-resolve-dependencies-30.5.2.tgz", + "integrity": "sha512-GMI0DP5enX9Z2qW2zFy1bOkrCfWAOPRJQ7qHt0pdfrxBPsgWxglMPrRSK2TX/wRWYxcPRSLFg3Z88qPOzHx7FQ==", "dev": true, "license": "MIT", "dependencies": { - "jest-regex-util": "^29.6.3", - "jest-snapshot": "^29.7.0" + "jest-regex-util": "30.5.0", + "jest-snapshot": "30.5.2" }, "engines": { - "node": "^14.15.0 || ^16.10.0 || >=18.0.0" + "node": "^18.14.0 || ^20.0.0 || ^22.0.0 || >=24.0.0" } }, "node_modules/jest-runner": { - "version": "29.7.0", - "resolved": "https://registry.npmjs.org/jest-runner/-/jest-runner-29.7.0.tgz", - "integrity": "sha512-fsc4N6cPCAahybGBfTRcq5wFR6fpLznMg47sY5aDpsoejOcVYFb07AHuSnR0liMcPTgBsA3ZJL6kFOjPdoNipQ==", + "version": "30.5.2", + "resolved": "https://registry.npmjs.org/jest-runner/-/jest-runner-30.5.2.tgz", + "integrity": "sha512-/B6px7hiiNhVSRwuv9AGn0nawYvwsHeQZ3ItTd5Gp2diFd0EOKaWVeWqcbw3L88vx1GfpCKjQkxWItZCTl11Rw==", "dev": true, "license": "MIT", "dependencies": { - "@jest/console": "^29.7.0", - "@jest/environment": "^29.7.0", - "@jest/test-result": "^29.7.0", - "@jest/transform": "^29.7.0", - "@jest/types": "^29.6.3", + "@jest/console": "30.5.2", + "@jest/environment": "30.5.2", + "@jest/source-map": "30.5.2", + "@jest/test-result": "30.5.2", + "@jest/transform": "30.5.2", + "@jest/types": "30.5.1", "@types/node": "*", - "chalk": "^4.0.0", + "chalk": "^4.1.2", "emittery": "^0.13.1", - "graceful-fs": "^4.2.9", - "jest-docblock": "^29.7.0", - "jest-environment-node": "^29.7.0", - "jest-haste-map": "^29.7.0", - "jest-leak-detector": "^29.7.0", - "jest-message-util": "^29.7.0", - "jest-resolve": "^29.7.0", - "jest-runtime": "^29.7.0", - "jest-util": "^29.7.0", - "jest-watcher": "^29.7.0", - "jest-worker": "^29.7.0", - "p-limit": "^3.1.0", - "source-map-support": "0.5.13" + "exit-x": "^0.2.2", + "graceful-fs": "^4.2.11", + "jest-docblock": "30.5.0", + "jest-environment-node": "30.5.2", + "jest-haste-map": "30.5.1", + "jest-leak-detector": "30.5.1", + "jest-message-util": "30.5.1", + "jest-resolve": "30.5.1", + "jest-runtime": "30.5.2", + "jest-util": "30.5.1", + "jest-watcher": "30.5.2", + "jest-worker": "30.5.1", + "p-limit": "^3.1.0" }, "engines": { - "node": "^14.15.0 || ^16.10.0 || >=18.0.0" + "node": "^18.14.0 || ^20.0.0 || ^22.0.0 || >=24.0.0" } }, "node_modules/jest-runtime": { - "version": "29.7.0", - "resolved": "https://registry.npmjs.org/jest-runtime/-/jest-runtime-29.7.0.tgz", - "integrity": "sha512-gUnLjgwdGqW7B4LvOIkbKs9WGbn+QLqRQQ9juC6HndeDiezIwhDP+mhMwHWCEcfQ5RUXa6OPnFF8BJh5xegwwQ==", + "version": "30.5.2", + "resolved": "https://registry.npmjs.org/jest-runtime/-/jest-runtime-30.5.2.tgz", + "integrity": "sha512-0paUAHBlheai10A3XSy9Xh+YBG0IROy+/qzcDPzQ/nbbXrznQzeWy5qniICWK6d3W3scaRQCVAbXdcK0ibBq4w==", "dev": true, "license": "MIT", "dependencies": { - "@jest/environment": "^29.7.0", - "@jest/fake-timers": "^29.7.0", - "@jest/globals": "^29.7.0", - "@jest/source-map": "^29.6.3", - "@jest/test-result": "^29.7.0", - "@jest/transform": "^29.7.0", - "@jest/types": "^29.6.3", + "@jest/environment": "30.5.2", + "@jest/fake-timers": "30.5.2", + "@jest/globals": "30.5.2", + "@jest/source-map": "30.5.2", + "@jest/test-result": "30.5.2", + "@jest/transform": "30.5.2", + "@jest/types": "30.5.1", "@types/node": "*", - "chalk": "^4.0.0", - "cjs-module-lexer": "^1.0.0", - "collect-v8-coverage": "^1.0.0", - "glob": "^7.1.3", - "graceful-fs": "^4.2.9", - "jest-haste-map": "^29.7.0", - "jest-message-util": "^29.7.0", - "jest-mock": "^29.7.0", - "jest-regex-util": "^29.6.3", - "jest-resolve": "^29.7.0", - "jest-snapshot": "^29.7.0", - "jest-util": "^29.7.0", + "chalk": "^4.1.2", + "cjs-module-lexer": "^2.2.0", + "collect-v8-coverage": "^1.0.2", + "es-module-lexer": "^2.1.0", + "glob": "^13.0.6", + "graceful-fs": "^4.2.11", + "jest-haste-map": "30.5.1", + "jest-message-util": "30.5.1", + "jest-mock": "30.5.2", + "jest-regex-util": "30.5.0", + "jest-resolve": "30.5.1", + "jest-snapshot": "30.5.2", + "jest-util": "30.5.1", "slash": "^3.0.0", "strip-bom": "^4.0.0" }, "engines": { - "node": "^14.15.0 || ^16.10.0 || >=18.0.0" + "node": "^18.14.0 || ^20.0.0 || ^22.0.0 || >=24.0.0" } }, "node_modules/jest-snapshot": { - "version": "29.7.0", - "resolved": "https://registry.npmjs.org/jest-snapshot/-/jest-snapshot-29.7.0.tgz", - "integrity": "sha512-Rm0BMWtxBcioHr1/OX5YCP8Uov4riHvKPknOGs804Zg9JGZgmIBkbtlxJC/7Z4msKYVbIJtfU+tKb8xlYNfdkw==", - "dev": true, - "license": "MIT", - "dependencies": { - "@babel/core": "^7.11.6", - "@babel/generator": "^7.7.2", - "@babel/plugin-syntax-jsx": "^7.7.2", - "@babel/plugin-syntax-typescript": "^7.7.2", - "@babel/types": "^7.3.3", - "@jest/expect-utils": "^29.7.0", - "@jest/transform": "^29.7.0", - "@jest/types": "^29.6.3", - "babel-preset-current-node-syntax": "^1.0.0", - "chalk": "^4.0.0", - "expect": "^29.7.0", - "graceful-fs": "^4.2.9", - "jest-diff": "^29.7.0", - "jest-get-type": "^29.6.3", - "jest-matcher-utils": "^29.7.0", - "jest-message-util": "^29.7.0", - "jest-util": "^29.7.0", - "natural-compare": "^1.4.0", - "pretty-format": "^29.7.0", - "semver": "^7.5.3" - }, - "engines": { - "node": "^14.15.0 || ^16.10.0 || >=18.0.0" + "version": "30.5.2", + "resolved": "https://registry.npmjs.org/jest-snapshot/-/jest-snapshot-30.5.2.tgz", + "integrity": "sha512-jKIdes25AnAH73dOCi2qE6J6vHJ6L2vyBS11M89kT50DVJcLTf2AOjvcc+2vVaN8lUbY5v2R83aqXo3Ro9fqYA==", + "dev": true, + "license": "MIT", + "dependencies": { + "@babel/core": "^7.27.4", + "@babel/generator": "^7.27.5", + "@babel/plugin-syntax-jsx": "^7.27.1", + "@babel/plugin-syntax-typescript": "^7.27.1", + "@babel/types": "^7.27.3", + "@jest/expect-utils": "30.5.2", + "@jest/get-type": "30.5.0", + "@jest/snapshot-utils": "30.5.1", + "@jest/transform": "30.5.2", + "@jest/types": "30.5.1", + "babel-preset-current-node-syntax": "^1.2.0", + "chalk": "^4.1.2", + "expect": "30.5.2", + "graceful-fs": "^4.2.11", + "jest-diff": "30.5.2", + "jest-matcher-utils": "30.5.2", + "jest-message-util": "30.5.1", + "jest-util": "30.5.1", + "pretty-format": "30.5.1", + "semver": "^7.7.2", + "synckit": "^0.11.8" + }, + "engines": { + "node": "^18.14.0 || ^20.0.0 || ^22.0.0 || >=24.0.0" } }, "node_modules/jest-snapshot/node_modules/semver": { - "version": "7.8.5", - "resolved": "https://registry.npmjs.org/semver/-/semver-7.8.5.tgz", - "integrity": "sha512-Y7/KDsb8LjooZpwaqGyulO6DQlksgCncchHGk+sZIY4SBvUocMBEFH5Ur1fI4dV+Jvl0w6cjvucaIi40puRioA==", + "version": "7.8.6", + "resolved": "https://registry.npmjs.org/semver/-/semver-7.8.6.tgz", + "integrity": "sha512-9lpSSU4Mly3mrtruwLs1eLK6+gzbzqeBFwRNjIjE+9LuDpWdYctrQlQ3ej1Ilgi7gknpsTRnPoLP8DpCHqHIJw==", "dev": true, "license": "ISC", "bin": { @@ -3015,39 +5611,39 @@ } }, "node_modules/jest-util": { - "version": "29.7.0", - "resolved": "https://registry.npmjs.org/jest-util/-/jest-util-29.7.0.tgz", - "integrity": "sha512-z6EbKajIpqGKU56y5KBUgy1dt1ihhQJgWzUlZHArA/+X2ad7Cb5iF+AK1EWVL/Bo7Rz9uurpqw6SiBCefUbCGA==", + "version": "30.5.1", + "resolved": "https://registry.npmjs.org/jest-util/-/jest-util-30.5.1.tgz", + "integrity": "sha512-yKuxmNy2rSbTXw+3SIPanJo+nV4/BS1p26v44IYBFMsswSQySfMMcPHErnOncda7i9HEz0q605rIhSTBVgrZTg==", "dev": true, "license": "MIT", "dependencies": { - "@jest/types": "^29.6.3", + "@jest/types": "30.5.1", "@types/node": "*", - "chalk": "^4.0.0", - "ci-info": "^3.2.0", - "graceful-fs": "^4.2.9", - "picomatch": "^2.2.3" + "chalk": "^4.1.2", + "ci-info": "^4.2.0", + "graceful-fs": "^4.2.11", + "picomatch": "^4.0.3" }, "engines": { - "node": "^14.15.0 || ^16.10.0 || >=18.0.0" + "node": "^18.14.0 || ^20.0.0 || ^22.0.0 || >=24.0.0" } }, "node_modules/jest-validate": { - "version": "29.7.0", - "resolved": "https://registry.npmjs.org/jest-validate/-/jest-validate-29.7.0.tgz", - "integrity": "sha512-ZB7wHqaRGVw/9hST/OuFUReG7M8vKeq0/J2egIGLdvjHCmYqGARhzXmtgi+gVeZ5uXFF219aOc3Ls2yLg27tkw==", + "version": "30.5.1", + "resolved": "https://registry.npmjs.org/jest-validate/-/jest-validate-30.5.1.tgz", + "integrity": "sha512-i/buJ56wTpxihE93hQYNMfdOThS87+HGvLZzZJmU4xggPcdTYQq051iwALLCHp3q+SkCGH+EFejQZz5EbBSkkg==", "dev": true, "license": "MIT", "dependencies": { - "@jest/types": "^29.6.3", - "camelcase": "^6.2.0", - "chalk": "^4.0.0", - "jest-get-type": "^29.6.3", + "@jest/get-type": "30.5.0", + "@jest/types": "30.5.1", + "camelcase": "^6.3.0", + "chalk": "^4.1.2", "leven": "^3.1.0", - "pretty-format": "^29.7.0" + "pretty-format": "30.5.1" }, "engines": { - "node": "^14.15.0 || ^16.10.0 || >=18.0.0" + "node": "^18.14.0 || ^20.0.0 || ^22.0.0 || >=24.0.0" } }, "node_modules/jest-validate/node_modules/camelcase": { @@ -3064,39 +5660,40 @@ } }, "node_modules/jest-watcher": { - "version": "29.7.0", - "resolved": "https://registry.npmjs.org/jest-watcher/-/jest-watcher-29.7.0.tgz", - "integrity": "sha512-49Fg7WXkU3Vl2h6LbLtMQ/HyB6rXSIX7SqvBLQmssRBGN9I0PNvPmAmCWSOY6SOvrjhI/F7/bGAv9RtnsPA03g==", + "version": "30.5.2", + "resolved": "https://registry.npmjs.org/jest-watcher/-/jest-watcher-30.5.2.tgz", + "integrity": "sha512-rqRgg4R11GA9m1UsEZwQeixHsgZReCn6TOHAHtIH33yXrIvoX0OGPA20Yzzjkz7X40fZvcRSxEpQppYPcWzmcQ==", "dev": true, "license": "MIT", "dependencies": { - "@jest/test-result": "^29.7.0", - "@jest/types": "^29.6.3", + "@jest/test-result": "30.5.2", + "@jest/types": "30.5.1", "@types/node": "*", - "ansi-escapes": "^4.2.1", - "chalk": "^4.0.0", + "ansi-escapes": "^4.3.2", + "chalk": "^4.1.2", "emittery": "^0.13.1", - "jest-util": "^29.7.0", - "string-length": "^4.0.1" + "jest-util": "30.5.1", + "string-length": "^4.0.2" }, "engines": { - "node": "^14.15.0 || ^16.10.0 || >=18.0.0" + "node": "^18.14.0 || ^20.0.0 || ^22.0.0 || >=24.0.0" } }, "node_modules/jest-worker": { - "version": "29.7.0", - "resolved": "https://registry.npmjs.org/jest-worker/-/jest-worker-29.7.0.tgz", - "integrity": "sha512-eIz2msL/EzL9UFTFFx7jBTkeZfku0yUAyZZZmJ93H2TYEiroIx2PQjEXcwYtYl8zXCxb+PAmA2hLIt/6ZEkPHw==", + "version": "30.5.1", + "resolved": "https://registry.npmjs.org/jest-worker/-/jest-worker-30.5.1.tgz", + "integrity": "sha512-Cbxh5v7AoLuFRmFJSM4/aHdQ68rjXvUWr716EE0Dh3I7T+T/3FgFKhOERGXHcU2Meftq9+9zxPM3TSNyI9D+HA==", "dev": true, "license": "MIT", "dependencies": { "@types/node": "*", - "jest-util": "^29.7.0", + "@ungap/structured-clone": "^1.3.0", + "jest-util": "30.5.1", "merge-stream": "^2.0.0", - "supports-color": "^8.0.0" + "supports-color": "^8.1.1" }, "engines": { - "node": "^14.15.0 || ^16.10.0 || >=18.0.0" + "node": "^18.14.0 || ^20.0.0 || ^22.0.0 || >=24.0.0" } }, "node_modules/jest-worker/node_modules/supports-color": { @@ -3115,6 +5712,16 @@ "url": "https://github.com/chalk/supports-color?sponsor=1" } }, + "node_modules/jiti": { + "version": "2.7.0", + "resolved": "https://registry.npmjs.org/jiti/-/jiti-2.7.0.tgz", + "integrity": "sha512-AC/7JofJvZGrrneWNaEnJeOLUx+JlGt7tNa0wZiRPT4MY1wmfKjt2+6O2p2uz2+skll8OZZmJMNqeke7kKbNgQ==", + "dev": true, + "license": "MIT", + "bin": { + "jiti": "lib/jiti-cli.mjs" + } + }, "node_modules/js-tokens": { "version": "4.0.0", "resolved": "https://registry.npmjs.org/js-tokens/-/js-tokens-4.0.0.tgz", @@ -3123,9 +5730,9 @@ "license": "MIT" }, "node_modules/js-yaml": { - "version": "3.15.0", - "resolved": "https://registry.npmjs.org/js-yaml/-/js-yaml-3.15.0.tgz", - "integrity": "sha512-ttBQIIQPDeLjpPOohtUdXuXUVoA2uIB6fEH9HyJ7234s5mBJ5wTx20njxplLZQgLaOfpmPQA7X2t5AX6tIPbog==", + "version": "3.15.2", + "resolved": "https://registry.npmjs.org/js-yaml/-/js-yaml-3.15.2.tgz", + "integrity": "sha512-6EuL879VkRA+1Cz578mKMiKvjPNEuk6+r1JaFzoSWejZmtf7xWbIyw1e3KkxlkzTIt9Taw6JBhEppG7utc1P+w==", "dev": true, "license": "MIT", "dependencies": { @@ -3136,6 +5743,156 @@ "js-yaml": "bin/js-yaml.js" } }, + "node_modules/jscpd": { + "version": "5.4.3", + "resolved": "https://registry.npmjs.org/jscpd/-/jscpd-5.4.3.tgz", + "integrity": "sha512-2Ult/j407sgAx4Z8kW4nOB3wfGwvtyKyPN9XE+tbvNEP/QemBN8pijKtG6zC+8nfMuIiiWjNcez7VZo5ZjJRtA==", + "dev": true, + "license": "MIT", + "bin": { + "jscpd": "run-jscpd.js" + }, + "engines": { + "node": ">=18" + }, + "funding": { + "url": "https://opencollective.com/jscpd" + }, + "optionalDependencies": { + "jscpd-darwin-arm64": "5.4.3", + "jscpd-darwin-x64": "5.4.3", + "jscpd-linux-arm64-gnu": "5.4.3", + "jscpd-linux-arm64-musl": "5.4.3", + "jscpd-linux-x64-gnu": "5.4.3", + "jscpd-linux-x64-musl": "5.4.3", + "jscpd-windows-arm64-msvc": "5.4.3", + "jscpd-windows-x64-msvc": "5.4.3" + } + }, + "node_modules/jscpd-darwin-arm64": { + "version": "5.4.3", + "resolved": "https://registry.npmjs.org/jscpd-darwin-arm64/-/jscpd-darwin-arm64-5.4.3.tgz", + "integrity": "sha512-2Zu6FrML6exhznj4hryUrnfVRM6dmfH0N7nldeY09cs7fA2TRQD+xzo5wA7SIqzhRDaUo0CBPBNVJz/XFmUEbg==", + "cpu": [ + "arm64" + ], + "dev": true, + "license": "MIT", + "optional": true, + "os": [ + "darwin" + ] + }, + "node_modules/jscpd-darwin-x64": { + "version": "5.4.3", + "resolved": "https://registry.npmjs.org/jscpd-darwin-x64/-/jscpd-darwin-x64-5.4.3.tgz", + "integrity": "sha512-Y4KykQqxMtVEV3pdjtfYbzONCmLOEgAyX8d2fUbwLW+uH/IZqUVCIwB3LrgCVv4Y+b/7mbOsdrGuIragTGpC/Q==", + "cpu": [ + "x64" + ], + "dev": true, + "license": "MIT", + "optional": true, + "os": [ + "darwin" + ] + }, + "node_modules/jscpd-linux-arm64-gnu": { + "version": "5.4.3", + "resolved": "https://registry.npmjs.org/jscpd-linux-arm64-gnu/-/jscpd-linux-arm64-gnu-5.4.3.tgz", + "integrity": "sha512-08d2DKt9BELglfZj0ZfhEs7I4gxiAk9Iflgjnsd0z4pB1OjWA4+DGDbfWmGOf6W2sVMDpwkVoa5Q5DWaOMPyoA==", + "cpu": [ + "arm64" + ], + "dev": true, + "libc": [ + "glibc" + ], + "license": "MIT", + "optional": true, + "os": [ + "linux" + ] + }, + "node_modules/jscpd-linux-arm64-musl": { + "version": "5.4.3", + "resolved": "https://registry.npmjs.org/jscpd-linux-arm64-musl/-/jscpd-linux-arm64-musl-5.4.3.tgz", + "integrity": "sha512-YbgJ7tQzztL441UCKX6UVN6n8zXc7eEwuJ4MHCdFtTf5w6EGpfFDi7+lgBi+MtwampG2k1PoltCYYiRZyPg4/g==", + "cpu": [ + "arm64" + ], + "dev": true, + "libc": [ + "musl" + ], + "license": "MIT", + "optional": true, + "os": [ + "linux" + ] + }, + "node_modules/jscpd-linux-x64-gnu": { + "version": "5.4.3", + "resolved": "https://registry.npmjs.org/jscpd-linux-x64-gnu/-/jscpd-linux-x64-gnu-5.4.3.tgz", + "integrity": "sha512-BbL0HypadbjpxNfK/KY4CfpD4sCd2zf9HpFnGwwOjdryjdTG098isft/95BiS/XvZjVT3p6lwLf5ToI97OoqCg==", + "cpu": [ + "x64" + ], + "dev": true, + "libc": [ + "glibc" + ], + "license": "MIT", + "optional": true, + "os": [ + "linux" + ] + }, + "node_modules/jscpd-linux-x64-musl": { + "version": "5.4.3", + "resolved": "https://registry.npmjs.org/jscpd-linux-x64-musl/-/jscpd-linux-x64-musl-5.4.3.tgz", + "integrity": "sha512-0DlkzVDuuZ83JRZMOc4Fd2tBFKIrtXDHkHvxdF6d4HK+b954PZxuKhwBMArg76CtVSOQcuiICd/zxU9HtdT+mg==", + "cpu": [ + "x64" + ], + "dev": true, + "libc": [ + "musl" + ], + "license": "MIT", + "optional": true, + "os": [ + "linux" + ] + }, + "node_modules/jscpd-windows-arm64-msvc": { + "version": "5.4.3", + "resolved": "https://registry.npmjs.org/jscpd-windows-arm64-msvc/-/jscpd-windows-arm64-msvc-5.4.3.tgz", + "integrity": "sha512-BUD8kCzLyXUomw3vWRDbaBcIPByX6yU3VyqsKSf7/sjzr8y9ZmTRcn0cwmCV2WChrzD5JF4HeQl+hZlb7+s8lg==", + "cpu": [ + "arm64" + ], + "dev": true, + "license": "MIT", + "optional": true, + "os": [ + "win32" + ] + }, + "node_modules/jscpd-windows-x64-msvc": { + "version": "5.4.3", + "resolved": "https://registry.npmjs.org/jscpd-windows-x64-msvc/-/jscpd-windows-x64-msvc-5.4.3.tgz", + "integrity": "sha512-qYSVGZE2WP0NNdZU1S8DsfcCDpjwKSExvsUd86c4Vx9eWwZdw1i+V7h/9FWazo3PxEa+FzPLsCD5YjVawaarRA==", + "cpu": [ + "x64" + ], + "dev": true, + "license": "MIT", + "optional": true, + "os": [ + "win32" + ] + }, "node_modules/jsesc": { "version": "3.1.0", "resolved": "https://registry.npmjs.org/jsesc/-/jsesc-3.1.0.tgz", @@ -3204,14 +5961,54 @@ "node": "*" } }, - "node_modules/kleur": { - "version": "3.0.3", - "resolved": "https://registry.npmjs.org/kleur/-/kleur-3.0.3.tgz", - "integrity": "sha512-eTIzlVOSUR+JxdDFepEYcBMtZ9Qqdef+rnzWdRZuMbOywu5tO2w2N7rqjoANZ5k9vywhL6Br1VRjUIgTQx4E8w==", + "node_modules/knip": { + "version": "6.49.0", + "resolved": "https://registry.npmjs.org/knip/-/knip-6.49.0.tgz", + "integrity": "sha512-8Gf4R0xcJx1NdNKfr6gOGgSVBE1flB+KHPKPybDTKJ/hPtnswxyFE7Zpsk71kBvzAKReezakbe3DbQ0qAT4vzA==", + "dev": true, + "funding": [ + { + "type": "github", + "url": "https://github.com/sponsors/webpro" + }, + { + "type": "opencollective", + "url": "https://opencollective.com/knip" + } + ], + "license": "ISC", + "dependencies": { + "formatly": "^0.12.3", + "get-tsconfig": "4.14.3", + "jiti": "^2.7.0", + "oxc-parser": "^0.160.0", + "oxc-resolver": "11.24.2", + "picomatch": "^4.0.7", + "smol-toml": "^1.9.1", + "strip-json-comments": "5.0.3", + "tinyglobby": "^0.2.17", + "unbash": "^6.0.5", + "yaml": "^2.9.1" + }, + "bin": { + "knip": "bin/knip.js", + "knip-bun": "bin/knip-bun.js" + }, + "engines": { + "node": "^20.19.0 || >=22.12.0" + } + }, + "node_modules/knip/node_modules/strip-json-comments": { + "version": "5.0.3", + "resolved": "https://registry.npmjs.org/strip-json-comments/-/strip-json-comments-5.0.3.tgz", + "integrity": "sha512-1tB5mhVo7U+ETBKNf92xT4hrQa3pm0MZ0PQvuDnWgAAGHDsfp4lPSpiS6psrSiet87wyGPh9ft6wmhOMQ0hDiw==", "dev": true, "license": "MIT", "engines": { - "node": ">=6" + "node": ">=14.16" + }, + "funding": { + "url": "https://github.com/sponsors/sindresorhus" } }, "node_modules/leven": { @@ -3283,9 +6080,9 @@ } }, "node_modules/make-dir/node_modules/semver": { - "version": "7.8.5", - "resolved": "https://registry.npmjs.org/semver/-/semver-7.8.5.tgz", - "integrity": "sha512-Y7/KDsb8LjooZpwaqGyulO6DQlksgCncchHGk+sZIY4SBvUocMBEFH5Ur1fI4dV+Jvl0w6cjvucaIi40puRioA==", + "version": "7.8.6", + "resolved": "https://registry.npmjs.org/semver/-/semver-7.8.6.tgz", + "integrity": "sha512-9lpSSU4Mly3mrtruwLs1eLK6+gzbzqeBFwRNjIjE+9LuDpWdYctrQlQ3ej1Ilgi7gknpsTRnPoLP8DpCHqHIJw==", "dev": true, "license": "ISC", "bin": { @@ -3295,16 +6092,6 @@ "node": ">=10" } }, - "node_modules/makeerror": { - "version": "1.0.12", - "resolved": "https://registry.npmjs.org/makeerror/-/makeerror-1.0.12.tgz", - "integrity": "sha512-JmqCvUhmt43madlpFzG4BQzG2Z3m6tvQDNKdClZnO3VbIudJYmxsT0FNJMeiB2+JTSlTQTSbU8QdesVmwJcmLg==", - "dev": true, - "license": "BSD-3-Clause", - "dependencies": { - "tmpl": "1.0.5" - } - }, "node_modules/math-intrinsics": { "version": "1.1.0", "resolved": "https://registry.npmjs.org/math-intrinsics/-/math-intrinsics-1.1.0.tgz", @@ -3332,20 +6119,6 @@ "dev": true, "license": "MIT" }, - "node_modules/micromatch": { - "version": "4.0.8", - "resolved": "https://registry.npmjs.org/micromatch/-/micromatch-4.0.8.tgz", - "integrity": "sha512-PXwfBhYu0hBCPw8Dn0E+WDYb7af3dSLVWKi3HGv84IdF4TyFoC0ysxFd0Goxw7nSv4T/PzEJQxsYsEiFCKo2BA==", - "dev": true, - "license": "MIT", - "dependencies": { - "braces": "^3.0.3", - "picomatch": "^2.3.1" - }, - "engines": { - "node": ">=8.6" - } - }, "node_modules/mime-db": { "version": "1.54.0", "resolved": "https://registry.npmjs.org/mime-db/-/mime-db-1.54.0.tgz", @@ -3378,16 +6151,29 @@ } }, "node_modules/minimatch": { - "version": "3.1.5", - "resolved": "https://registry.npmjs.org/minimatch/-/minimatch-3.1.5.tgz", - "integrity": "sha512-VgjWUsnnT6n+NUk6eZq77zeFdpW2LWDzP6zFGrCbHXiYNul5Dzqk2HHQ5uFH2DNW5Xbp8+jVzaeNt94ssEEl4w==", + "version": "10.2.6", + "resolved": "https://registry.npmjs.org/minimatch/-/minimatch-10.2.6.tgz", + "integrity": "sha512-vpLQEs+VLCr1nU0BXS07maYoFwlDAH0gngQuuttxIwutDFEMHq2blX+8vpgxDdK3J1PwjCJiep77OitTZ4Ll1A==", "dev": true, - "license": "ISC", + "license": "BlueOak-1.0.0", "dependencies": { - "brace-expansion": "^1.1.7" + "brace-expansion": "^5.0.8" }, "engines": { - "node": "*" + "node": "18 || 20 || >=22" + }, + "funding": { + "url": "https://github.com/sponsors/isaacs" + } + }, + "node_modules/minipass": { + "version": "7.1.3", + "resolved": "https://registry.npmjs.org/minipass/-/minipass-7.1.3.tgz", + "integrity": "sha512-tEBHqDnIoM/1rXME1zgka9g6Q2lcoCkxHLuc7ODJ5BxbP5d4c2Z5cGgtXAku59200Cx7diuHTOYfSBD8n6mm8A==", + "dev": true, + "license": "BlueOak-1.0.0", + "engines": { + "node": ">=16 || 14 >=14.17" } }, "node_modules/ms": { @@ -3397,6 +6183,23 @@ "dev": true, "license": "MIT" }, + "node_modules/napi-postinstall": { + "version": "0.3.8", + "resolved": "https://registry.npmjs.org/napi-postinstall/-/napi-postinstall-0.3.8.tgz", + "integrity": "sha512-dHbDC5V1g/EI8OLEtL4Iuwbu0fgzmyykxenn2KnlsX9XdhTXL3gWnfbbP+ab+oUcgV6CFpb8QGyQt/ZXA0UXig==", + "dev": true, + "license": "MIT", + "bin": { + "napi-patch": "lib/patch.js", + "napi-postinstall": "lib/cli.js" + }, + "engines": { + "node": "^12.20.0 || ^14.18.0 || >=16.0.0" + }, + "funding": { + "url": "https://opencollective.com/napi-postinstall" + } + }, "node_modules/natural-compare": { "version": "1.4.0", "resolved": "https://registry.npmjs.org/natural-compare/-/natural-compare-1.4.0.tgz", @@ -3425,6 +6228,13 @@ "integrity": "sha512-AGK2yQKIjRuqnc6VkX2Xj5d+QW8xZ87pa1UK6yA6ouUyuxfHuMP6umE5QK7UmTeOAymo+Zx1Fxiuw9rVx8taHQ==", "license": "MIT" }, + "node_modules/node-addon-api": { + "version": "7.1.1", + "resolved": "https://registry.npmjs.org/node-addon-api/-/node-addon-api-7.1.1.tgz", + "integrity": "sha512-5m3bsyrjFWE1xf7nz7YXdN4udnVtXK6/Yfgn5qnahL6bCkf2yKt4k3nuTKAtT4r3IG8JNR2ncsIMdZuAzJjHQQ==", + "dev": true, + "license": "MIT" + }, "node_modules/node-fetch": { "version": "2.7.0", "resolved": "https://registry.npmjs.org/node-fetch/-/node-fetch-2.7.0.tgz", @@ -3453,9 +6263,9 @@ "license": "MIT" }, "node_modules/node-releases": { - "version": "2.0.50", - "resolved": "https://registry.npmjs.org/node-releases/-/node-releases-2.0.50.tgz", - "integrity": "sha512-J6l92tKHX6w8Jy5nO1Vuc01NoIiRGi/d6qBKVxh+IQ8Cr3b6HbVNfKiF8ZpFKufTwpwxMmce2W3iQZ861ZRyTg==", + "version": "2.0.66", + "resolved": "https://registry.npmjs.org/node-releases/-/node-releases-2.0.66.tgz", + "integrity": "sha512-uSMWN9/XtWzxaE0d9ZNHe00Hda6028AXH3WRjTsK71neiPCSeL5nGSD9MXTQX/6Qx0k7Op1AyyinmIUw9fBzrg==", "dev": true, "license": "MIT", "engines": { @@ -3494,16 +6304,6 @@ "node": "*" } }, - "node_modules/once": { - "version": "1.4.0", - "resolved": "https://registry.npmjs.org/once/-/once-1.4.0.tgz", - "integrity": "sha512-lNaJgI+2Q5URQBkccEKHTQOPaXdUxnZZElQTZY0MFUAuaEqe1E+Nyvgdz/aIyNi6Z9MzO5dv1H8n58/GELp3+w==", - "dev": true, - "license": "ISC", - "dependencies": { - "wrappy": "1" - } - }, "node_modules/onetime": { "version": "5.1.2", "resolved": "https://registry.npmjs.org/onetime/-/onetime-5.1.2.tgz", @@ -3520,6 +6320,179 @@ "url": "https://github.com/sponsors/sindresorhus" } }, + "node_modules/oxc-parser": { + "version": "0.160.0", + "resolved": "https://registry.npmjs.org/oxc-parser/-/oxc-parser-0.160.0.tgz", + "integrity": "sha512-IIc9PydmdnTcH1hucWCHfTUbAuHWPDEs8+WlmW7td3jJnaYrbzvPQgcc99FEJc0gURrVU8EskpAr2VMyJ8VbzA==", + "dev": true, + "license": "MIT", + "dependencies": { + "@oxc-project/types": "^0.160.0" + }, + "engines": { + "node": "^20.19.0 || >=22.12.0" + }, + "funding": { + "url": "https://github.com/sponsors/oxc-project" + }, + "optionalDependencies": { + "@oxc-parser/binding-android-arm-eabi": "0.160.0", + "@oxc-parser/binding-android-arm64": "0.160.0", + "@oxc-parser/binding-darwin-arm64": "0.160.0", + "@oxc-parser/binding-darwin-x64": "0.160.0", + "@oxc-parser/binding-freebsd-x64": "0.160.0", + "@oxc-parser/binding-linux-arm-gnueabihf": "0.160.0", + "@oxc-parser/binding-linux-arm-musleabihf": "0.160.0", + "@oxc-parser/binding-linux-arm64-gnu": "0.160.0", + "@oxc-parser/binding-linux-arm64-musl": "0.160.0", + "@oxc-parser/binding-linux-ppc64-gnu": "0.160.0", + "@oxc-parser/binding-linux-riscv64-gnu": "0.160.0", + "@oxc-parser/binding-linux-riscv64-musl": "0.160.0", + "@oxc-parser/binding-linux-s390x-gnu": "0.160.0", + "@oxc-parser/binding-linux-x64-gnu": "0.160.0", + "@oxc-parser/binding-linux-x64-musl": "0.160.0", + "@oxc-parser/binding-openharmony-arm64": "0.160.0", + "@oxc-parser/binding-win32-arm64-msvc": "0.160.0", + "@oxc-parser/binding-win32-ia32-msvc": "0.160.0", + "@oxc-parser/binding-win32-x64-msvc": "0.160.0" + } + }, + "node_modules/oxc-resolver": { + "version": "11.24.2", + "resolved": "https://registry.npmjs.org/oxc-resolver/-/oxc-resolver-11.24.2.tgz", + "integrity": "sha512-FY91FiDBj7ls5MsFS9jN3tjz2o0/zsdSsymlakySaBwVJZorHhkWyICLZMKxlu1R9vYo+sd3z1jwb4J8x7bNDw==", + "dev": true, + "license": "MIT", + "funding": { + "url": "https://github.com/sponsors/Boshen" + }, + "optionalDependencies": { + "@oxc-resolver/binding-android-arm-eabi": "11.24.2", + "@oxc-resolver/binding-android-arm64": "11.24.2", + "@oxc-resolver/binding-darwin-arm64": "11.24.2", + "@oxc-resolver/binding-darwin-x64": "11.24.2", + "@oxc-resolver/binding-freebsd-x64": "11.24.2", + "@oxc-resolver/binding-linux-arm-gnueabihf": "11.24.2", + "@oxc-resolver/binding-linux-arm-musleabihf": "11.24.2", + "@oxc-resolver/binding-linux-arm64-gnu": "11.24.2", + "@oxc-resolver/binding-linux-arm64-musl": "11.24.2", + "@oxc-resolver/binding-linux-ppc64-gnu": "11.24.2", + "@oxc-resolver/binding-linux-riscv64-gnu": "11.24.2", + "@oxc-resolver/binding-linux-riscv64-musl": "11.24.2", + "@oxc-resolver/binding-linux-s390x-gnu": "11.24.2", + "@oxc-resolver/binding-linux-x64-gnu": "11.24.2", + "@oxc-resolver/binding-linux-x64-musl": "11.24.2", + "@oxc-resolver/binding-openharmony-arm64": "11.24.2", + "@oxc-resolver/binding-wasm32-wasi": "11.24.2", + "@oxc-resolver/binding-win32-arm64-msvc": "11.24.2", + "@oxc-resolver/binding-win32-x64-msvc": "11.24.2" + } + }, + "node_modules/oxfmt": { + "version": "0.80.0", + "resolved": "https://registry.npmjs.org/oxfmt/-/oxfmt-0.80.0.tgz", + "integrity": "sha512-jy8/kYEomtC6g1LqXDl1LEXk5Ih+c7a1jB5wxqEp8qBmDoOD7Ei+XCxU2jGEjGUdBfoPef6rDiSENVLJ5gWq+Q==", + "dev": true, + "license": "MIT", + "dependencies": { + "tinypool": "2.2.0" + }, + "bin": { + "oxfmt": "bin/oxfmt" + }, + "engines": { + "node": "^20.19.0 || >=22.12.0" + }, + "funding": { + "url": "https://github.com/sponsors/oxc-project" + }, + "optionalDependencies": { + "@oxfmt/binding-android-arm-eabi": "0.80.0", + "@oxfmt/binding-android-arm64": "0.80.0", + "@oxfmt/binding-darwin-arm64": "0.80.0", + "@oxfmt/binding-darwin-x64": "0.80.0", + "@oxfmt/binding-freebsd-x64": "0.80.0", + "@oxfmt/binding-linux-arm-gnueabihf": "0.80.0", + "@oxfmt/binding-linux-arm-musleabihf": "0.80.0", + "@oxfmt/binding-linux-arm64-gnu": "0.80.0", + "@oxfmt/binding-linux-arm64-musl": "0.80.0", + "@oxfmt/binding-linux-ppc64-gnu": "0.80.0", + "@oxfmt/binding-linux-riscv64-gnu": "0.80.0", + "@oxfmt/binding-linux-riscv64-musl": "0.80.0", + "@oxfmt/binding-linux-s390x-gnu": "0.80.0", + "@oxfmt/binding-linux-x64-gnu": "0.80.0", + "@oxfmt/binding-linux-x64-musl": "0.80.0", + "@oxfmt/binding-openharmony-arm64": "0.80.0", + "@oxfmt/binding-win32-arm64-msvc": "0.80.0", + "@oxfmt/binding-win32-ia32-msvc": "0.80.0", + "@oxfmt/binding-win32-x64-msvc": "0.80.0" + }, + "peerDependencies": { + "@astrojs/compiler-rs": "^0.5.0", + "svelte": "^5.0.0", + "vite-plus": "*" + }, + "peerDependenciesMeta": { + "@astrojs/compiler-rs": { + "optional": true + }, + "svelte": { + "optional": true + }, + "vite-plus": { + "optional": true + } + } + }, + "node_modules/oxlint": { + "version": "1.95.0", + "resolved": "https://registry.npmjs.org/oxlint/-/oxlint-1.95.0.tgz", + "integrity": "sha512-eNzjFjm1TU02/+ohAJjOB7aekRQgTXhOWxMGscEm8VJMokNnnix+PCZn7kqIuGIqxAoBnHxatqlN3Chz3N6PKA==", + "dev": true, + "license": "MIT", + "bin": { + "oxlint": "bin/oxlint" + }, + "engines": { + "node": "^20.19.0 || >=22.12.0" + }, + "funding": { + "url": "https://github.com/sponsors/oxc-project" + }, + "optionalDependencies": { + "@oxlint/binding-android-arm-eabi": "1.95.0", + "@oxlint/binding-android-arm64": "1.95.0", + "@oxlint/binding-darwin-arm64": "1.95.0", + "@oxlint/binding-darwin-x64": "1.95.0", + "@oxlint/binding-freebsd-x64": "1.95.0", + "@oxlint/binding-linux-arm-gnueabihf": "1.95.0", + "@oxlint/binding-linux-arm-musleabihf": "1.95.0", + "@oxlint/binding-linux-arm64-gnu": "1.95.0", + "@oxlint/binding-linux-arm64-musl": "1.95.0", + "@oxlint/binding-linux-ppc64-gnu": "1.95.0", + "@oxlint/binding-linux-riscv64-gnu": "1.95.0", + "@oxlint/binding-linux-riscv64-musl": "1.95.0", + "@oxlint/binding-linux-s390x-gnu": "1.95.0", + "@oxlint/binding-linux-x64-gnu": "1.95.0", + "@oxlint/binding-linux-x64-musl": "1.95.0", + "@oxlint/binding-openharmony-arm64": "1.95.0", + "@oxlint/binding-win32-arm64-msvc": "1.95.0", + "@oxlint/binding-win32-ia32-msvc": "1.95.0", + "@oxlint/binding-win32-x64-msvc": "1.95.0" + }, + "peerDependencies": { + "oxlint-tsgolint": ">=7.0.2008", + "vite-plus": "*" + }, + "peerDependenciesMeta": { + "oxlint-tsgolint": { + "optional": true + }, + "vite-plus": { + "optional": true + } + } + }, "node_modules/p-limit": { "version": "3.1.0", "resolved": "https://registry.npmjs.org/p-limit/-/p-limit-3.1.0.tgz", @@ -3575,6 +6548,20 @@ "node": ">=6" } }, + "node_modules/package-json-from-dist": { + "version": "1.0.1", + "resolved": "https://registry.npmjs.org/package-json-from-dist/-/package-json-from-dist-1.0.1.tgz", + "integrity": "sha512-UEZIS3/by4OC8vL3P2dTXRETpebLI2NiI5vIrjaD/5UtrkFX/tNbwjTSRAGC/+7CAo2pIcBaRgWmcBBHcsaCIw==", + "dev": true, + "license": "BlueOak-1.0.0" + }, + "node_modules/package-manager-detector": { + "version": "1.9.0", + "resolved": "https://registry.npmjs.org/package-manager-detector/-/package-manager-detector-1.9.0.tgz", + "integrity": "sha512-zAMfbta9nPA8AKkA4WdmNAT8R8s6Dk0/xwPsqNnRidMFcLo1YkLuPDTgs2f64XdzS8vbLNnoJ+uUIkgbz7oRHA==", + "dev": true, + "license": "MIT" + }, "node_modules/parse-json": { "version": "5.2.0", "resolved": "https://registry.npmjs.org/parse-json/-/parse-json-5.2.0.tgz", @@ -3594,24 +6581,35 @@ "url": "https://github.com/sponsors/sindresorhus" } }, - "node_modules/path-exists": { - "version": "4.0.0", - "resolved": "https://registry.npmjs.org/path-exists/-/path-exists-4.0.0.tgz", - "integrity": "sha512-ak9Qy5Q7jYb2Wwcey5Fpvg2KoAc/ZIhLSLOSBmRmygPsGwkVVt0fZa0qrtMz+m6tJTAHfZQ8FnmB4MG4LWy7/w==", + "node_modules/parse-standard-args": { + "version": "0.3.0", + "resolved": "https://registry.npmjs.org/parse-standard-args/-/parse-standard-args-0.3.0.tgz", + "integrity": "sha512-SH663jox6V7vxSZgroZJw9DgvSbcNHWOnjHjgvsPyj0/+OIbFraNJyDQbA+ATaAUIi0OGAmV27bIGUgcAEM41g==", "dev": true, "license": "MIT", + "dependencies": { + "@standard-schema/spec": "^1.1.0" + }, "engines": { - "node": ">=8" + "node": ">=18.7.0" + }, + "peerDependencies": { + "@clack/prompts": ">=0.11" + }, + "peerDependenciesMeta": { + "@clack/prompts": { + "optional": true + } } }, - "node_modules/path-is-absolute": { - "version": "1.0.1", - "resolved": "https://registry.npmjs.org/path-is-absolute/-/path-is-absolute-1.0.1.tgz", - "integrity": "sha512-AVbw3UJ2e9bq64vSaS9Am0fje1Pa8pbGqTTsmXfaIiMpnr5DlDhfJOuLj9Sf95ZPVDAUerDfEk88MPmPe7UCQg==", + "node_modules/path-exists": { + "version": "4.0.0", + "resolved": "https://registry.npmjs.org/path-exists/-/path-exists-4.0.0.tgz", + "integrity": "sha512-ak9Qy5Q7jYb2Wwcey5Fpvg2KoAc/ZIhLSLOSBmRmygPsGwkVVt0fZa0qrtMz+m6tJTAHfZQ8FnmB4MG4LWy7/w==", "dev": true, "license": "MIT", "engines": { - "node": ">=0.10.0" + "node": ">=8" } }, "node_modules/path-key": { @@ -3624,12 +6622,32 @@ "node": ">=8" } }, - "node_modules/path-parse": { - "version": "1.0.7", - "resolved": "https://registry.npmjs.org/path-parse/-/path-parse-1.0.7.tgz", - "integrity": "sha512-LDJzPVEEEPR+y48z93A0Ed0yXb8pAByGWo/k5YYdYgpY2/2EsOsksJrq7lOHxryrVOn1ejG6oAp8ahvOIQD8sw==", + "node_modules/path-scurry": { + "version": "2.0.2", + "resolved": "https://registry.npmjs.org/path-scurry/-/path-scurry-2.0.2.tgz", + "integrity": "sha512-3O/iVVsJAPsOnpwWIeD+d6z/7PmqApyQePUtCndjatj/9I5LylHvt5qluFaBT3I5h3r1ejfR056c+FCv+NnNXg==", "dev": true, - "license": "MIT" + "license": "BlueOak-1.0.0", + "dependencies": { + "lru-cache": "^11.0.0", + "minipass": "^7.1.2" + }, + "engines": { + "node": "18 || 20 || >=22" + }, + "funding": { + "url": "https://github.com/sponsors/isaacs" + } + }, + "node_modules/path-scurry/node_modules/lru-cache": { + "version": "11.5.3", + "resolved": "https://registry.npmjs.org/lru-cache/-/lru-cache-11.5.3.tgz", + "integrity": "sha512-U4N8FgzmWxc8k1VH8Kr6lQg18U7Fjvby6wXHVRX/ZZ7IwWbRMgrRbP0Wrb5q5NVinryp4SQampHKdvtecItxUg==", + "dev": true, + "license": "BlueOak-1.0.0", + "engines": { + "node": "20 || >=22" + } }, "node_modules/picocolors": { "version": "1.1.1", @@ -3639,13 +6657,13 @@ "license": "ISC" }, "node_modules/picomatch": { - "version": "2.3.2", - "resolved": "https://registry.npmjs.org/picomatch/-/picomatch-2.3.2.tgz", - "integrity": "sha512-V7+vQEJ06Z+c5tSye8S+nHUfI51xoXIXjHQ99cQtKUkQqqO1kO/KCJUfZXuB47h/YBlDhah2H3hdUGXn8ie0oA==", + "version": "4.0.7", + "resolved": "https://registry.npmjs.org/picomatch/-/picomatch-4.0.7.tgz", + "integrity": "sha512-qcJu88Q2IWqJsDD529JKMdwGm/dvInW4HvQnRwiH9JtihJvzGOscDtHE3x1pBKeUOTysQ8kVmLnJ2kJu7yhcGA==", "dev": true, "license": "MIT", "engines": { - "node": ">=8.6" + "node": ">=12" }, "funding": { "url": "https://github.com/sponsors/jonschlinkert" @@ -3684,18 +6702,19 @@ } }, "node_modules/pretty-format": { - "version": "29.7.0", - "resolved": "https://registry.npmjs.org/pretty-format/-/pretty-format-29.7.0.tgz", - "integrity": "sha512-Pdlw/oPxN+aXdmM9R00JVC9WVFoCLTKJvDVLgmJ+qAffBMxsV85l/Lu7sNx4zSzPyoL2euImuEwHhOXdEgNFZQ==", + "version": "30.5.1", + "resolved": "https://registry.npmjs.org/pretty-format/-/pretty-format-30.5.1.tgz", + "integrity": "sha512-byhRAPguVKMQIj4kjJwJ5lAskVhfuiSdiYl/aLTWpgkGEmic2jYhJh1yE9ih8Ox44Xg9ccCT11/S6QrzSJuNrg==", "dev": true, "license": "MIT", "dependencies": { - "@jest/schemas": "^29.6.3", - "ansi-styles": "^5.0.0", - "react-is": "^18.0.0" + "@jest/react-is-18": "npm:react-is@^18.3.1", + "@jest/react-is-19": "npm:react-is@^19.2.5", + "@jest/schemas": "30.5.0", + "ansi-styles": "^5.2.0" }, "engines": { - "node": "^14.15.0 || ^16.10.0 || >=18.0.0" + "node": "^18.14.0 || ^20.0.0 || ^22.0.0 || >=24.0.0" } }, "node_modules/pretty-format/node_modules/ansi-styles": { @@ -3717,20 +6736,6 @@ "integrity": "sha512-3ouUOpQhtgrbOa17J7+uxOTpITYWaGP7/AhoR3+A+/1e9skrzelGi/dXzEYyvbxubEF6Wn2ypscTKiKJFFn1ag==", "license": "MIT" }, - "node_modules/prompts": { - "version": "2.4.2", - "resolved": "https://registry.npmjs.org/prompts/-/prompts-2.4.2.tgz", - "integrity": "sha512-NxNv/kLguCA7p3jE8oL2aEBsrJWgAakBpgmgK6lpPWV+WuOmY6r2/zbAVnP+T8bQlA0nzHXSJSJW0Hq7ylaD2Q==", - "dev": true, - "license": "MIT", - "dependencies": { - "kleur": "^3.0.3", - "sisteransi": "^1.0.5" - }, - "engines": { - "node": ">= 6" - } - }, "node_modules/propagate": { "version": "2.0.1", "resolved": "https://registry.npmjs.org/propagate/-/propagate-2.0.1.tgz", @@ -3742,9 +6747,9 @@ } }, "node_modules/pure-rand": { - "version": "6.1.0", - "resolved": "https://registry.npmjs.org/pure-rand/-/pure-rand-6.1.0.tgz", - "integrity": "sha512-bVWawvoZoBYpp6yIoQtQXHZjmz35RSVHnUOTefl8Vcjr8snTPY1wnpSPMWekcFwbxI6gtmT7rSYPFvz71ldiOA==", + "version": "7.0.1", + "resolved": "https://registry.npmjs.org/pure-rand/-/pure-rand-7.0.1.tgz", + "integrity": "sha512-oTUZM/NAZS8p7ANR3SHh30kXB+zK2r2BPcEn/awJIbOvq82WoMN4p62AWWp3Hhw50G0xMsw1mhIBLqHw64EcNQ==", "dev": true, "funding": [ { @@ -3758,13 +6763,6 @@ ], "license": "MIT" }, - "node_modules/react-is": { - "version": "18.3.1", - "resolved": "https://registry.npmjs.org/react-is/-/react-is-18.3.1.tgz", - "integrity": "sha512-/LLMVyas0ljjAtoYiPqYiL8VWXzUUdThrmU5+n20DZv+a+ClRoevUzw5JxU+Ieh5/c87ytoTBV9G1FiKfNJdmg==", - "dev": true, - "license": "MIT" - }, "node_modules/readable-stream": { "version": "2.3.8", "resolved": "https://registry.npmjs.org/readable-stream/-/readable-stream-2.3.8.tgz", @@ -3796,28 +6794,6 @@ "node": ">=0.10.0" } }, - "node_modules/resolve": { - "version": "1.22.12", - "resolved": "https://registry.npmjs.org/resolve/-/resolve-1.22.12.tgz", - "integrity": "sha512-TyeJ1zif53BPfHootBGwPRYT1RUt6oGWsaQr8UyZW/eAm9bKoijtvruSDEmZHm92CwS9nj7/fWttqPCgzep8CA==", - "dev": true, - "license": "MIT", - "dependencies": { - "es-errors": "^1.3.0", - "is-core-module": "^2.16.1", - "path-parse": "^1.0.7", - "supports-preserve-symlinks-flag": "^1.0.0" - }, - "bin": { - "resolve": "bin/resolve" - }, - "engines": { - "node": ">= 0.4" - }, - "funding": { - "url": "https://github.com/sponsors/ljharb" - } - }, "node_modules/resolve-cwd": { "version": "3.0.0", "resolved": "https://registry.npmjs.org/resolve-cwd/-/resolve-cwd-3.0.0.tgz", @@ -3841,14 +6817,14 @@ "node": ">=8" } }, - "node_modules/resolve.exports": { - "version": "2.0.3", - "resolved": "https://registry.npmjs.org/resolve.exports/-/resolve.exports-2.0.3.tgz", - "integrity": "sha512-OcXjMsGdhL4XnbShKpAcSqPMzQoYkYyhbEaeSko47MjRP9NfEQMhZkXL1DoFlt9LWQn4YttrdnV6X2OiyzBi+A==", + "node_modules/resolve-pkg-maps": { + "version": "1.0.0", + "resolved": "https://registry.npmjs.org/resolve-pkg-maps/-/resolve-pkg-maps-1.0.0.tgz", + "integrity": "sha512-seS2Tj26TBVOC2NIc2rOe2y2ZO7efxITtLZcGSOnHHNOQ7CkiUBfw0Iw2ck6xkIhPwLhKNLS8BO+hEpngQlqzw==", "dev": true, "license": "MIT", - "engines": { - "node": ">=10" + "funding": { + "url": "https://github.com/privatenumber/resolve-pkg-maps?sponsor=1" } }, "node_modules/ripemd160": { @@ -3885,9 +6861,9 @@ "license": "MIT" }, "node_modules/semver": { - "version": "6.3.1", - "resolved": "https://registry.npmjs.org/semver/-/semver-6.3.1.tgz", - "integrity": "sha512-BR7VvDCVHO+q2xBEWskxS6DJE1qRnb7DxzUrogb71CWoSficBxYsiAGd+Kl0mmq/MprG9yArRkyrQxTO6XjMzA==", + "version": "6.3.2", + "resolved": "https://registry.npmjs.org/semver/-/semver-6.3.2.tgz", + "integrity": "sha512-GYrCADwpu6yV5OAvchkQ27Z5wwMxWAEMg5NNWjyHh/5DboFFqbdbvYNIvZouQpxXyeMPoTOh0vdPYKlf0ZswdQ==", "dev": true, "license": "ISC", "bin": { @@ -3961,13 +6937,6 @@ "dev": true, "license": "ISC" }, - "node_modules/sisteransi": { - "version": "1.0.5", - "resolved": "https://registry.npmjs.org/sisteransi/-/sisteransi-1.0.5.tgz", - "integrity": "sha512-bLGGlR1QxBcynn2d5YmDX4MGjlZvy2MRBDRNHLJ8VI6l6+9FUiyTFNJ0IveOSP0bcXgVDPRcfGqA0pjaqUpfVg==", - "dev": true, - "license": "MIT" - }, "node_modules/slash": { "version": "3.0.0", "resolved": "https://registry.npmjs.org/slash/-/slash-3.0.0.tgz", @@ -3978,25 +6947,17 @@ "node": ">=8" } }, - "node_modules/source-map": { - "version": "0.6.1", - "resolved": "https://registry.npmjs.org/source-map/-/source-map-0.6.1.tgz", - "integrity": "sha512-UjgapumWlbMhkBgzT7Ykc5YXUT46F0iKu8SGXq0bcwP5dz/h0Plj6enJqjz1Zbq2l5WaqYnrVbwWOWMyF3F47g==", + "node_modules/smol-toml": { + "version": "1.9.1", + "resolved": "https://registry.npmjs.org/smol-toml/-/smol-toml-1.9.1.tgz", + "integrity": "sha512-j7WyPdf0CJoutMzMoPLF/bVXHtKZIT9Rb4eGeEbWw8X2t5oirjPgpL+OpaENZrILYaXqYwnVH+qgUwVbl+pUJQ==", "dev": true, "license": "BSD-3-Clause", "engines": { - "node": ">=0.10.0" - } - }, - "node_modules/source-map-support": { - "version": "0.5.13", - "resolved": "https://registry.npmjs.org/source-map-support/-/source-map-support-0.5.13.tgz", - "integrity": "sha512-SHSKFHadjVA5oR4PPqhtAVdcBWwRYVd6g6cAXnIbRiIwc2EhPrTuKUBdSLvlEKyIP3GCf89fltvcZiP9MMFA1w==", - "dev": true, - "license": "MIT", - "dependencies": { - "buffer-from": "^1.0.0", - "source-map": "^0.6.0" + "node": ">= 18" + }, + "funding": { + "url": "https://github.com/sponsors/cyyynthia" } }, "node_modules/sprintf-js": { @@ -4063,6 +7024,22 @@ "node": ">=8" } }, + "node_modules/string-width-cjs": { + "name": "string-width", + "version": "4.2.3", + "resolved": "https://registry.npmjs.org/string-width/-/string-width-4.2.3.tgz", + "integrity": "sha512-wKyQRQpjJ0sIp62ErSZdGsjMJWsap5oRNihHhu6G7JVO/9jIB6UyevL+tXuOqrng8j/cxKTWyWUwvSTriiZz/g==", + "dev": true, + "license": "MIT", + "dependencies": { + "emoji-regex": "^8.0.0", + "is-fullwidth-code-point": "^3.0.0", + "strip-ansi": "^6.0.1" + }, + "engines": { + "node": ">=8" + } + }, "node_modules/strip-ansi": { "version": "6.0.1", "resolved": "https://registry.npmjs.org/strip-ansi/-/strip-ansi-6.0.1.tgz", @@ -4076,6 +7053,20 @@ "node": ">=8" } }, + "node_modules/strip-ansi-cjs": { + "name": "strip-ansi", + "version": "6.0.1", + "resolved": "https://registry.npmjs.org/strip-ansi/-/strip-ansi-6.0.1.tgz", + "integrity": "sha512-Y38VPSHcqkFrCpFnQ9vuSXmquuv5oXOKpGeT6aGrr3o3Gc9AlVa6JBfUSOCnbxGGZF+/0ooI7KrPuUSztUdU5A==", + "dev": true, + "license": "MIT", + "dependencies": { + "ansi-regex": "^5.0.1" + }, + "engines": { + "node": ">=8" + } + }, "node_modules/strip-bom": { "version": "4.0.0", "resolved": "https://registry.npmjs.org/strip-bom/-/strip-bom-4.0.0.tgz", @@ -4122,40 +7113,152 @@ "node": ">=8" } }, - "node_modules/supports-preserve-symlinks-flag": { - "version": "1.0.0", - "resolved": "https://registry.npmjs.org/supports-preserve-symlinks-flag/-/supports-preserve-symlinks-flag-1.0.0.tgz", - "integrity": "sha512-ot0WnXS9fgdkgIcePe6RHNk1WA8+muPa6cSjeR3V8K27q9BB1rTE3R1p7Hv0z1ZyAc8s6Vvv8DIyWf681MAt0w==", + "node_modules/synckit": { + "version": "0.11.13", + "resolved": "https://registry.npmjs.org/synckit/-/synckit-0.11.13.tgz", + "integrity": "sha512-eNRKgb3z66Yp3D2CixVujOUvXLFUTij/zVnV8KRyvFdQwpz7I5DS8UfRkTeLzb64u+dkzDSdelE24izu+zSSUg==", "dev": true, "license": "MIT", + "dependencies": { + "@pkgr/core": "^0.3.6" + }, "engines": { - "node": ">= 0.4" + "node": "^14.18.0 || >=16.0.0" }, "funding": { - "url": "https://github.com/sponsors/ljharb" + "url": "https://opencollective.com/synckit" } }, "node_modules/test-exclude": { - "version": "6.0.0", - "resolved": "https://registry.npmjs.org/test-exclude/-/test-exclude-6.0.0.tgz", - "integrity": "sha512-cAGWPIyOHU6zlmg88jwm7VRyXnMN7iV68OGAbYDk/Mh/xC/pzVPlQtY6ngoIH/5/tciuhGfvESU8GrHrcxD56w==", + "version": "7.0.2", + "resolved": "https://registry.npmjs.org/test-exclude/-/test-exclude-7.0.2.tgz", + "integrity": "sha512-u9E6A+ZDYdp7a4WnarkXPZOx8Ilz46+kby6p1yZ8zsGTz9gYa6FIS7lj2oezzNKmtdyyJNNmmXDppga5GB7kSw==", "dev": true, "license": "ISC", "dependencies": { "@istanbuljs/schema": "^0.1.2", - "glob": "^7.1.4", - "minimatch": "^3.0.4" + "glob": "^10.4.1", + "minimatch": "^10.2.2" }, "engines": { - "node": ">=8" + "node": ">=18" } }, - "node_modules/tmpl": { - "version": "1.0.5", - "resolved": "https://registry.npmjs.org/tmpl/-/tmpl-1.0.5.tgz", - "integrity": "sha512-3f0uOEAQwIqGuWW2MVzYg8fV/QNnc/IpuJNG837rLuczAaLVHslWHZQj4IGiEl5Hs3kkbhwL9Ab7Hrsmuj+Smw==", + "node_modules/test-exclude/node_modules/balanced-match": { + "version": "1.0.2", + "resolved": "https://registry.npmjs.org/balanced-match/-/balanced-match-1.0.2.tgz", + "integrity": "sha512-3oSeUO0TMV67hN1AmbXsK4yaqU7tjiHlbxRDZOpH0KW9+CeX4bRAaX0Anxt0tx2MrpRpWwQaPwIlISEJhYU5Pw==", "dev": true, - "license": "BSD-3-Clause" + "license": "MIT" + }, + "node_modules/test-exclude/node_modules/brace-expansion": { + "version": "2.1.8", + "resolved": "https://registry.npmjs.org/brace-expansion/-/brace-expansion-2.1.8.tgz", + "integrity": "sha512-BnlDzDYQoplTsZSvPi86CNzmbcb07X8ufR8fk1zivaiEJlXJkiq1MQyDCVmlWcsWbj6aWXqHnrwwevbrm/Saig==", + "dev": true, + "license": "MIT", + "dependencies": { + "balanced-match": "^1.0.0" + } + }, + "node_modules/test-exclude/node_modules/glob": { + "version": "10.5.0", + "resolved": "https://registry.npmjs.org/glob/-/glob-10.5.0.tgz", + "integrity": "sha512-DfXN8DfhJ7NH3Oe7cFmu3NCu1wKbkReJ8TorzSAFbSKrlNaQSKfIzqYqVY8zlbs2NLBbWpRiU52GX2PbaBVNkg==", + "deprecated": "Old versions of glob are not supported, and contain widely publicized security vulnerabilities, which have been fixed in the current version. Please update. Support for old versions may be purchased (at exorbitant rates) by contacting i@izs.me", + "dev": true, + "license": "ISC", + "dependencies": { + "foreground-child": "^3.1.0", + "jackspeak": "^3.1.2", + "minimatch": "^9.0.4", + "minipass": "^7.1.2", + "package-json-from-dist": "^1.0.0", + "path-scurry": "^1.11.1" + }, + "bin": { + "glob": "dist/esm/bin.mjs" + }, + "funding": { + "url": "https://github.com/sponsors/isaacs" + } + }, + "node_modules/test-exclude/node_modules/glob/node_modules/minimatch": { + "version": "9.0.9", + "resolved": "https://registry.npmjs.org/minimatch/-/minimatch-9.0.9.tgz", + "integrity": "sha512-OBwBN9AL4dqmETlpS2zasx+vTeWclWzkblfZk7KTA5j3jeOONz/tRCnZomUyvNg83wL5Zv9Ss6HMJXAgL8R2Yg==", + "dev": true, + "license": "ISC", + "dependencies": { + "brace-expansion": "^2.0.2" + }, + "engines": { + "node": ">=16 || 14 >=14.17" + }, + "funding": { + "url": "https://github.com/sponsors/isaacs" + } + }, + "node_modules/test-exclude/node_modules/lru-cache": { + "version": "10.4.3", + "resolved": "https://registry.npmjs.org/lru-cache/-/lru-cache-10.4.3.tgz", + "integrity": "sha512-JNAzZcXrCt42VGLuYz0zfAzDfAvJWW6AfYlDBQyDV5DClI2m5sAmK+OIO7s59XfsRsWHp02jAJrRadPRGTt6SQ==", + "dev": true, + "license": "ISC" + }, + "node_modules/test-exclude/node_modules/path-scurry": { + "version": "1.11.1", + "resolved": "https://registry.npmjs.org/path-scurry/-/path-scurry-1.11.1.tgz", + "integrity": "sha512-Xa4Nw17FS9ApQFJ9umLiJS4orGjm7ZzwUrwamcGQuHSzDyth9boKDaycYdDcZDuqYATXw4HFXgaqWTctW/v1HA==", + "dev": true, + "license": "BlueOak-1.0.0", + "dependencies": { + "lru-cache": "^10.2.0", + "minipass": "^5.0.0 || ^6.0.2 || ^7.0.0" + }, + "engines": { + "node": ">=16 || 14 >=14.18" + }, + "funding": { + "url": "https://github.com/sponsors/isaacs" + } + }, + "node_modules/tinyexec": { + "version": "1.4.0", + "resolved": "https://registry.npmjs.org/tinyexec/-/tinyexec-1.4.0.tgz", + "integrity": "sha512-PV6lIcJQh57aFeJDwx16JNHmgFRh5xguzallrDW1qe8nAghYgr5MKz2K5k7wEyV/ygZhdnIAP8+HZSarHPBCsg==", + "dev": true, + "license": "MIT", + "engines": { + "node": ">=18" + } + }, + "node_modules/tinyglobby": { + "version": "0.2.17", + "resolved": "https://registry.npmjs.org/tinyglobby/-/tinyglobby-0.2.17.tgz", + "integrity": "sha512-wXR/dYpcqKmfWpEdZjiKJOwCNFndD0DMnrW/cYjVGttEkBfVgcLFHoNrlj47mjOVic9yyNu65alsgF4NQyTa2g==", + "dev": true, + "license": "MIT", + "dependencies": { + "fdir": "^6.5.0", + "picomatch": "^4.0.4" + }, + "engines": { + "node": ">=12.0.0" + }, + "funding": { + "url": "https://github.com/sponsors/SuperchupuDev" + } + }, + "node_modules/tinypool": { + "version": "2.2.0", + "resolved": "https://registry.npmjs.org/tinypool/-/tinypool-2.2.0.tgz", + "integrity": "sha512-jBrmx4lYmaC9k/mgPbylxs7kBUxHtD8256up+HjLaDFfXScKJQyil+SWXSvhAtT7XHo+yTVlpB81PGmHP8oLSQ==", + "dev": true, + "license": "MIT", + "engines": { + "node": "^20.0.0 || >=22.0.0" + } }, "node_modules/to-buffer": { "version": "1.2.2", @@ -4177,19 +7280,6 @@ "integrity": "sha512-xHjhDr3cNBK0BzdUJSPXZntQUx/mwMS5Rw4A7lPJ90XGAO6ISP/ePDNuo0vhqOZU+UD5JoodwCAAoZQd3FeAKw==", "license": "MIT" }, - "node_modules/to-regex-range": { - "version": "5.0.1", - "resolved": "https://registry.npmjs.org/to-regex-range/-/to-regex-range-5.0.1.tgz", - "integrity": "sha512-65P7iz6X5yEr1cwcgvQxbbIw7Uk3gOy5dIdtZ4rDveLqhrdJP+Li/Hx6tyK0NEb+2GCyneCMJiGqrADCSNk8sQ==", - "dev": true, - "license": "MIT", - "dependencies": { - "is-number": "^7.0.0" - }, - "engines": { - "node": ">=8.0" - } - }, "node_modules/tr46": { "version": "0.0.3", "resolved": "https://registry.npmjs.org/tr46/-/tr46-0.0.3.tgz", @@ -4202,6 +7292,14 @@ "integrity": "sha512-FPAhNPFMrkwz76P7cdjdmiShwMynZYN6SgOujD1urY4oNm80Ou9oMdmbR45LotcKOXoy7wSmHkRFE6Mxbrhefw==", "license": "MIT" }, + "node_modules/tslib": { + "version": "2.9.1", + "resolved": "https://registry.npmjs.org/tslib/-/tslib-2.9.1.tgz", + "integrity": "sha512-a4Ux9VKuIMHsOS7ENbEq6hK2ZGYIT27Rtl0E4eD9KqwxhKiQeMZE/9xb3IdYwWaSOyIBQLExhQgXDTYoiCxnWA==", + "dev": true, + "license": "0BSD", + "optional": true + }, "node_modules/type-detect": { "version": "4.0.8", "resolved": "https://registry.npmjs.org/type-detect/-/type-detect-4.0.8.tgz", @@ -4239,17 +7337,98 @@ "node": ">= 0.4" } }, - "node_modules/undici-types": { - "version": "8.3.0", - "resolved": "https://registry.npmjs.org/undici-types/-/undici-types-8.3.0.tgz", - "integrity": "sha512-j375ScV60dom+YkPFIfTLcOiPxkN/buHz5GobjLhixFuANaNs3C9l4GmrWqejgXWJ7BbJcFYpTEUkS1Ge8bpZQ==", + "node_modules/typescript": { + "version": "7.0.2", + "resolved": "https://registry.npmjs.org/typescript/-/typescript-7.0.2.tgz", + "integrity": "sha512-8FYau96o3NKOhbjKi/qNvG/W5jhzxkbdm5sj9AbZ/5T5sWqn3hJgLfGx27sRKZWTvyzCP8dLRBTf5tBTSRVUNA==", + "dev": true, + "license": "Apache-2.0", + "bin": { + "tsc": "bin/tsc" + }, + "engines": { + "node": ">=16.20.0" + }, + "optionalDependencies": { + "@typescript/typescript-aix-ppc64": "7.0.2", + "@typescript/typescript-darwin-arm64": "7.0.2", + "@typescript/typescript-darwin-x64": "7.0.2", + "@typescript/typescript-freebsd-arm64": "7.0.2", + "@typescript/typescript-freebsd-x64": "7.0.2", + "@typescript/typescript-linux-arm": "7.0.2", + "@typescript/typescript-linux-arm64": "7.0.2", + "@typescript/typescript-linux-loong64": "7.0.2", + "@typescript/typescript-linux-mips64el": "7.0.2", + "@typescript/typescript-linux-ppc64": "7.0.2", + "@typescript/typescript-linux-riscv64": "7.0.2", + "@typescript/typescript-linux-s390x": "7.0.2", + "@typescript/typescript-linux-x64": "7.0.2", + "@typescript/typescript-netbsd-arm64": "7.0.2", + "@typescript/typescript-netbsd-x64": "7.0.2", + "@typescript/typescript-openbsd-arm64": "7.0.2", + "@typescript/typescript-openbsd-x64": "7.0.2", + "@typescript/typescript-sunos-x64": "7.0.2", + "@typescript/typescript-win32-arm64": "7.0.2", + "@typescript/typescript-win32-x64": "7.0.2" + } + }, + "node_modules/unbash": { + "version": "6.0.5", + "resolved": "https://registry.npmjs.org/unbash/-/unbash-6.0.5.tgz", + "integrity": "sha512-5P8o+nYRueKpHxmemofYqZRZCSWAi+Tqy31MQS8l/sT54Z+Axn55N9CnWPo19BxxJD4wYYf6RqlcURhWkrFXew==", "dev": true, + "license": "ISC", + "engines": { + "node": ">=14" + } + }, + "node_modules/undici-types": { + "version": "6.21.0", + "resolved": "https://registry.npmjs.org/undici-types/-/undici-types-6.21.0.tgz", + "integrity": "sha512-iwDZqg0QAGrg9Rav5H4n0M64c3mkR59cJ6wQp+7C4nI0gsmExaedaYLNO44eT4AtBBwjbTiGPMlt2Md0T9H9JQ==", + "devOptional": true, "license": "MIT" }, + "node_modules/unrs-resolver": { + "version": "1.13.0", + "resolved": "https://registry.npmjs.org/unrs-resolver/-/unrs-resolver-1.13.0.tgz", + "integrity": "sha512-mcPQo9Vm6kXd84d/WqMiYBi2CcA57QHBX/ev5PoUEb8b2oQzUvJ6xYsfseQblnCncgnVmCZGWiFwK7KkS5JZJA==", + "dev": true, + "license": "MIT", + "dependencies": { + "napi-postinstall": "^0.3.7" + }, + "funding": { + "url": "https://opencollective.com/unrs-resolver" + }, + "optionalDependencies": { + "@unrs/resolver-binding-android-arm-eabi": "1.13.0", + "@unrs/resolver-binding-android-arm64": "1.13.0", + "@unrs/resolver-binding-darwin-arm64": "1.13.0", + "@unrs/resolver-binding-darwin-x64": "1.13.0", + "@unrs/resolver-binding-freebsd-x64": "1.13.0", + "@unrs/resolver-binding-linux-arm-gnueabihf": "1.13.0", + "@unrs/resolver-binding-linux-arm-musleabihf": "1.13.0", + "@unrs/resolver-binding-linux-arm64-gnu": "1.13.0", + "@unrs/resolver-binding-linux-arm64-musl": "1.13.0", + "@unrs/resolver-binding-linux-loong64-gnu": "1.13.0", + "@unrs/resolver-binding-linux-loong64-musl": "1.13.0", + "@unrs/resolver-binding-linux-ppc64-gnu": "1.13.0", + "@unrs/resolver-binding-linux-riscv64-gnu": "1.13.0", + "@unrs/resolver-binding-linux-riscv64-musl": "1.13.0", + "@unrs/resolver-binding-linux-s390x-gnu": "1.13.0", + "@unrs/resolver-binding-linux-x64-gnu": "1.13.0", + "@unrs/resolver-binding-linux-x64-musl": "1.13.0", + "@unrs/resolver-binding-openharmony-arm64": "1.13.0", + "@unrs/resolver-binding-win32-arm64-msvc": "1.13.0", + "@unrs/resolver-binding-win32-ia32-msvc": "1.13.0", + "@unrs/resolver-binding-win32-x64-msvc": "1.13.0" + } + }, "node_modules/update-browserslist-db": { - "version": "1.2.3", - "resolved": "https://registry.npmjs.org/update-browserslist-db/-/update-browserslist-db-1.2.3.tgz", - "integrity": "sha512-Js0m9cx+qOgDxo0eMiFGEueWztz+d4+M3rGlmKPT+T4IS/jP4ylw3Nwpu6cpTTP8R1MAC1kF4VbdLt3ARf209w==", + "version": "1.4.0", + "resolved": "https://registry.npmjs.org/update-browserslist-db/-/update-browserslist-db-1.4.0.tgz", + "integrity": "sha512-WPJuOnjI9FWDct4fB+ej4Mz8opLaw5CDcZ2t44tFZ0vIQVYWzBhWR3mkixuUj/A7+vY4V9+ApOZ2YYLwdgq46w==", "dev": true, "funding": [ { @@ -4303,14 +7482,14 @@ "node": ">=10.12.0" } }, - "node_modules/walker": { - "version": "1.0.8", - "resolved": "https://registry.npmjs.org/walker/-/walker-1.0.8.tgz", - "integrity": "sha512-ts/8E8l5b7kY0vlWLewOkDXMmPdLcVV4GmOQLyxuSswIJsweeFZtAsMF7k1Nszz+TYBQrlYRmzOnr398y1JemQ==", + "node_modules/walk-up-path": { + "version": "4.0.0", + "resolved": "https://registry.npmjs.org/walk-up-path/-/walk-up-path-4.0.0.tgz", + "integrity": "sha512-3hu+tD8YzSLGuFYtPRb48vdhKMi0KQV5sn+uWr8+7dMEq/2G/dtLrdDinkLjqq5TIbIBjYJ4Ax/n3YiaW7QM8A==", "dev": true, - "license": "Apache-2.0", - "dependencies": { - "makeerror": "1.0.12" + "license": "ISC", + "engines": { + "node": "20 || >=22" } }, "node_modules/webidl-conversions": { @@ -4384,25 +7563,50 @@ "url": "https://github.com/chalk/wrap-ansi?sponsor=1" } }, - "node_modules/wrappy": { - "version": "1.0.2", - "resolved": "https://registry.npmjs.org/wrappy/-/wrappy-1.0.2.tgz", - "integrity": "sha512-l4Sp/DRseor9wL6EvV2+TuQn63dMkPjZ/sp9XkghTEbV9KlPS1xUsZ3u7/IQO4wxtcFB4bgpQPRcR3QCvezPcQ==", + "node_modules/wrap-ansi-cjs": { + "name": "wrap-ansi", + "version": "7.0.0", + "resolved": "https://registry.npmjs.org/wrap-ansi/-/wrap-ansi-7.0.0.tgz", + "integrity": "sha512-YVGIj2kamLSTxw6NsZjoBxfSwsn0ycdesmc4p+Q21c5zPuZ1pl+NfxVdxPtdHvmNVOQ6XSYG4AUtyt/Fi7D16Q==", "dev": true, - "license": "ISC" + "license": "MIT", + "dependencies": { + "ansi-styles": "^4.0.0", + "string-width": "^4.1.0", + "strip-ansi": "^6.0.0" + }, + "engines": { + "node": ">=10" + }, + "funding": { + "url": "https://github.com/chalk/wrap-ansi?sponsor=1" + } }, "node_modules/write-file-atomic": { - "version": "4.0.2", - "resolved": "https://registry.npmjs.org/write-file-atomic/-/write-file-atomic-4.0.2.tgz", - "integrity": "sha512-7KxauUdBmSdWnmpaGFg+ppNjKF8uNLry8LyzjauQDOVONfFLNKrKvQOxZ/VuTIcS/gge/YNahf5RIIQWTSarlg==", + "version": "5.0.1", + "resolved": "https://registry.npmjs.org/write-file-atomic/-/write-file-atomic-5.0.1.tgz", + "integrity": "sha512-+QU2zd6OTD8XWIJCbffaiQeH9U73qIqafo1x6V1snCWYGJf6cVE0cDR4D8xRzcEnfI21IFrUPzPGtcPf8AC+Rw==", "dev": true, "license": "ISC", "dependencies": { "imurmurhash": "^0.1.4", - "signal-exit": "^3.0.7" + "signal-exit": "^4.0.1" }, "engines": { - "node": "^12.13.0 || ^14.15.0 || >=16.0.0" + "node": "^14.17.0 || ^16.13.0 || >=18.0.0" + } + }, + "node_modules/write-file-atomic/node_modules/signal-exit": { + "version": "4.1.0", + "resolved": "https://registry.npmjs.org/signal-exit/-/signal-exit-4.1.0.tgz", + "integrity": "sha512-bzyZ1e88w9O1iNJbKnOlvYTrWPDl46O1bG0D3XInv+9tkPrxrN8jUUTiFlDkkmKWgn1M6CfIA13SuGqOa9Korw==", + "dev": true, + "license": "ISC", + "engines": { + "node": ">=14" + }, + "funding": { + "url": "https://github.com/sponsors/isaacs" } }, "node_modules/y18n": { @@ -4422,6 +7626,22 @@ "dev": true, "license": "ISC" }, + "node_modules/yaml": { + "version": "2.9.1", + "resolved": "https://registry.npmjs.org/yaml/-/yaml-2.9.1.tgz", + "integrity": "sha512-3NxN8+78OdzbT7C/WjGsyfPAtJaN3FNDsWxv7Y7mcDsT/oOmgW8BpyQQFFBnvZE3j9Y2Sdz1ULFLezL7Eb2yFw==", + "dev": true, + "license": "ISC", + "bin": { + "yaml": "bin.mjs" + }, + "engines": { + "node": ">= 14.6" + }, + "funding": { + "url": "https://github.com/sponsors/eemeli" + } + }, "node_modules/yargs": { "version": "17.7.3", "resolved": "https://registry.npmjs.org/yargs/-/yargs-17.7.3.tgz", @@ -4465,16 +7685,16 @@ } }, "node_modules/zapier-platform-core": { - "version": "19.1.0", - "resolved": "https://registry.npmjs.org/zapier-platform-core/-/zapier-platform-core-19.1.0.tgz", - "integrity": "sha512-MWR11n0SNNxixay1zT5SFb4yJHH7zp/4GFbgLw6l70uJ2iJipzpAjro095ygUitM6RHDfIbICPk2yUHWtEtb+w==", + "version": "19.3.0", + "resolved": "https://registry.npmjs.org/zapier-platform-core/-/zapier-platform-core-19.3.0.tgz", + "integrity": "sha512-LDR6hd82wtTq78iR6KJ6UMe/mqDaJWYwETTlk0mxPZ+W8C6MnRhRBJ56QXTe3TKSj5M3yO21W686f0Z3LCLhRw==", "license": "SEE LICENSE IN LICENSE", "dependencies": { "@zapier/secret-scrubber": "^1.1.2", "content-disposition": "0.5.4", "dotenv": "17.2.1", "fernet": "^0.3.3", - "form-data": "4.0.5", + "form-data": "4.0.6", "json-schema-to-ts": "3.1.1", "lodash": "4.18.1", "mime-types": "3.0.1", @@ -4482,7 +7702,7 @@ "node-fetch": "2.7.0", "oauth-sign": "0.9.0", "semver": "7.7.2", - "zapier-platform-schema": "19.1.0" + "zapier-platform-schema": "19.3.0" }, "engines": { "node": ">=16", @@ -4522,23 +7742,26 @@ "node": ">=10" } }, - "node_modules/zapier-platform-core/node_modules/undici-types": { - "version": "6.21.0", - "resolved": "https://registry.npmjs.org/undici-types/-/undici-types-6.21.0.tgz", - "integrity": "sha512-iwDZqg0QAGrg9Rav5H4n0M64c3mkR59cJ6wQp+7C4nI0gsmExaedaYLNO44eT4AtBBwjbTiGPMlt2Md0T9H9JQ==", - "license": "MIT", - "optional": true - }, "node_modules/zapier-platform-schema": { - "version": "19.1.0", - "resolved": "https://registry.npmjs.org/zapier-platform-schema/-/zapier-platform-schema-19.1.0.tgz", - "integrity": "sha512-aD7/29RRvuMz/UIEe0++fjQY+/VCNUj5DjUUM3FvX2JKXj9zNXVhrTfEsc5nFbsKmm3mnQyPHwk3FGZewmDalA==", + "version": "19.3.0", + "resolved": "https://registry.npmjs.org/zapier-platform-schema/-/zapier-platform-schema-19.3.0.tgz", + "integrity": "sha512-i+JO3Ty9TUdBmPksEfgus/FybMNPm9Oia7up0QiyDEDBQkEfFuL6wx2k9IlP7zQbDvEQ86DYEgm0l3y2EX8QTA==", "license": "SEE LICENSE IN LICENSE", "dependencies": { "json-metaschema": "1.3.0", "jsonschema": "1.5.0", "lodash": "4.18.1" } + }, + "node_modules/zod": { + "version": "4.6.7", + "resolved": "https://registry.npmjs.org/zod/-/zod-4.6.7.tgz", + "integrity": "sha512-g8W2D2kU6a8untc053fX1uVBKzM7yqAxW/3zwk83+6RyF2+SKOuV+c0wBDhUwzV1PaGapmZH+rmcUzPf+3CGwg==", + "dev": true, + "license": "MIT", + "funding": { + "url": "https://github.com/sponsors/colinhacks" + } } } } diff --git a/package.json b/package.json index 5517df5..d4541c8 100644 --- a/package.json +++ b/package.json @@ -6,18 +6,29 @@ "scripts": { "test": "jest --testTimeout 10000", "validate": "zapier-platform validate", - "push": "zapier-platform push" + "push": "mise run ci && zapier-platform push", + "format": "oxfmt .", + "lint": "oxlint --deny-warnings", + "duplicates": "jscpd", + "ci": "mise run ci" }, "engines": { "node": ">=22", "npm": ">=5.6.0" }, "dependencies": { - "zapier-platform-core": "19.1.0" + "zapier-platform-core": "19.3.0" }, "devDependencies": { - "jest": "^29.6.0", - "nock": "^13.5.4" + "@types/jest": "30.0.0", + "@types/node": "22.20.7", + "jest": "30.5.2", + "jscpd": "5.4.3", + "knip": "6.49.0", + "nock": "^13.5.4", + "oxfmt": "0.80.0", + "oxlint": "1.95.0", + "typescript": "7.0.2" }, "private": true, "zapier": { diff --git a/scripts/check_audit.mjs b/scripts/check_audit.mjs new file mode 100644 index 0000000..a90586e --- /dev/null +++ b/scripts/check_audit.mjs @@ -0,0 +1,67 @@ +// Fails on any npm audit advisory that audit-ignores.json doesn't list, on an ignore that has expired, and on an +// ignore that no longer matches an advisory (so the list can't grow stale). +import { execFileSync } from 'node:child_process' +import fs from 'node:fs' + +const MAX_IGNORE_DAYS = 183 + +function audit() { + try { + return execFileSync('npm', ['audit', '--json'], { + encoding: 'utf8', + stdio: ['ignore', 'pipe', 'inherit'], + }) + } catch (error) { + // npm audit exits 1 when it finds anything; its JSON is still on stdout. + if (typeof error.stdout === 'string' && error.stdout.trim().startsWith('{')) return error.stdout + throw error + } +} + +const report = JSON.parse(audit()) +if (!report.vulnerabilities) + throw new Error( + `npm audit returned no vulnerabilities key: ${JSON.stringify(report).slice(0, 500)}`, + ) + +const found = new Map() +for (const [name, vulnerability] of Object.entries(report.vulnerabilities)) { + for (const via of vulnerability.via) { + if (typeof via !== 'object') continue + const id = via.url.split('/').pop() + found.set(`${name} ${id}`, `${name}: ${id} (${via.severity}) ${via.title}`) + } +} + +const { ignores } = JSON.parse( + fs.readFileSync(new URL('../audit-ignores.json', import.meta.url), 'utf8'), +) +const today = new Date().toISOString().slice(0, 10) +const latest = new Date(Date.now() + MAX_IGNORE_DAYS * 86400000).toISOString().slice(0, 10) +const problems = [] +const ignored = new Set() +for (const ignore of ignores) { + const key = `${ignore.package} ${ignore.id}` + if (!ignore.reason) problems.push(`${key}: the ignore has no reason`) + if (!/^\d{4}-\d{2}-\d{2}$/.test(ignore.expires ?? '')) + problems.push(`${key}: expires must be YYYY-MM-DD`) + else if (ignore.expires < today) + problems.push( + `${key}: the ignore expired on ${ignore.expires}. Fix it or renew it with a reason.`, + ) + else if (ignore.expires > latest) + problems.push(`${key}: the ignore expires more than ${MAX_IGNORE_DAYS} days away`) + if (!found.has(key)) problems.push(`${key}: npm audit no longer reports this. Remove the ignore.`) + ignored.add(key) +} +for (const [key, text] of found) { + if (!ignored.has(key)) problems.push(text) +} + +if (problems.length > 0) { + console.error( + `npm audit: ${problems.length} problem(s)\n${problems.map((p) => ` ${p}`).join('\n')}`, + ) + process.exit(1) +} +console.log(`npm audit: nothing new (${ignored.size} advisories ignored until their expiry)`) diff --git a/scripts/check_file_length.sh b/scripts/check_file_length.sh new file mode 100755 index 0000000..ceaf884 --- /dev/null +++ b/scripts/check_file_length.sh @@ -0,0 +1,32 @@ +#!/bin/sh +# Code files may have at most 500 lines and test files 1000 (as rack-gateway). Long files are where agents lose +# track of what a change touches; split them instead of raising the limit. +# +# Usage: scripts/check_file_length.sh [files...] (no arguments: every tracked file) +set -eu + +check() { + file=$1 + case "$file" in + *.ts | *.js | *.mjs | *.cjs | *.sh) ;; + *) return 0 ;; + esac + [ -f "$file" ] || return 0 + case "$file" in + test/*) max=1000 ;; + *) max=500 ;; + esac + lines=$(wc -l <"$file" | tr -d ' ') + if [ "$lines" -gt "$max" ]; then + echo "$file has $lines lines (at most $max). Split it." + status=1 + fi +} + +status=0 +if [ $# -gt 0 ]; then + for file in "$@"; do check "$file"; done +else + for file in $(git ls-files); do check "$file"; done +fi +exit $status diff --git a/scripts/check_licences.mjs b/scripts/check_licences.mjs new file mode 100644 index 0000000..716df86 --- /dev/null +++ b/scripts/check_licences.mjs @@ -0,0 +1,103 @@ +// The integration's runtime dependencies, which go into the bundle Zapier runs, must be under a permissive licence. +// Dev dependencies aren't in the bundle and aren't checked. +import { execFileSync } from 'node:child_process' +import fs from 'node:fs' +import path from 'node:path' + +const ALLOWED = new Set([ + 'MIT', + 'ISC', + 'Apache-2.0', + 'BSD-2-Clause', + 'BSD-3-Clause', + '0BSD', + 'BlueOak-1.0.0', + 'Unlicense', +]) + +// Packages whose package.json doesn't name an allowed licence, each with the reason it's fine. +const EXCEPTIONS = { + 'zapier-platform-core': + "Zapier's own SDK, under the Zapier Platform Agreement: the integration only runs on Zapier.", + 'zapier-platform-schema': 'Part of the same SDK, under the same agreement.', + 'urlsafe-base64': + "MIT, as its readme says (its package.json names no licence); a dependency of Zapier's SDK.", + 'json-metaschema': "Public domain; a dependency of Zapier's SDK.", +} + +// Whether an SPDX expression lets us use the package under allowed licences only: OR needs one side allowed, AND +// both, AND binds tighter than OR, and parentheses group. `WITH` (a licence exception) is never allowed. +function allowed(licence) { + if (!licence) return false + const tokens = licence.match(/\(|\)|[^\s()]+/g) ?? [] + let i = 0 + const orExpression = () => { + let result = andExpression() + while (tokens[i] === 'OR') { + i += 1 + result = andExpression() || result + } + return result + } + const andExpression = () => { + let result = term() + while (tokens[i] === 'AND') { + i += 1 + result = term() && result + } + return result + } + const term = () => { + const token = tokens[i++] + if (token === '(') { + const result = orExpression() + if (tokens[i++] !== ')') throw new Error('unbalanced') + return result + } + if (token === undefined) throw new Error('incomplete') + if (tokens[i] === 'WITH') { + i += 2 + return false + } + return ALLOWED.has(token) + } + // Text that isn't an SPDX expression ("SEE LICENSE IN LICENSE") isn't allowed: it needs a named exception. + try { + const result = orExpression() + return i === tokens.length && result + } catch { + return false + } +} + +const tree = JSON.parse( + execFileSync('npm', ['ls', '--omit=dev', '--all', '--json', '--long'], { + encoding: 'utf8', + }), +) +const problems = [] +const used = new Set() +let count = 0 +function walk(deps) { + for (const [name, dep] of Object.entries(deps ?? {})) { + if (!dep.path) continue + count += 1 + const manifest = JSON.parse(fs.readFileSync(path.join(dep.path, 'package.json'), 'utf8')) + const licence = typeof manifest.license === 'string' ? manifest.license : manifest.license?.type + if (!allowed(licence)) { + if (EXCEPTIONS[name]) used.add(name) + else problems.push(`${name}@${dep.version}: ${licence ?? 'no licence'}`) + } + walk(dep.dependencies) + } +} +walk(tree.dependencies) + +for (const name of Object.keys(EXCEPTIONS)) { + if (!used.has(name)) problems.push(`${name}: the exception no longer applies. Remove it.`) +} +if (problems.length > 0) { + console.error(`Runtime dependency licences:\n${problems.map((p) => ` ${p}`).join('\n')}`) + process.exit(1) +} +console.log(`Licences: ${count} runtime dependencies, all allowed (${used.size} named exceptions)`) diff --git a/scripts/check_lint_suppressions.sh b/scripts/check_lint_suppressions.sh new file mode 100755 index 0000000..5296439 --- /dev/null +++ b/scripts/check_lint_suppressions.sh @@ -0,0 +1,12 @@ +#!/bin/sh +# No comments that switch a linter or the type checker off. Fix the code, or turn a rule off for every file in +# eslint.config.mjs or .oxlintrc.json with a comment saying why. +set -eu + +found=$(git grep -n -E 'eslint-disable|oxlint-disable|@ts-ignore|@ts-expect-error|@ts-nocheck' -- \ + '*.ts' '*.js' '*.mjs' ':!scripts/check_lint_suppressions.sh' || true) +if [ -n "$found" ]; then + echo "Lint or type check suppressions:" + echo "$found" + exit 1 +fi diff --git a/scripts/ci.sh b/scripts/ci.sh new file mode 100755 index 0000000..6bf9a3f --- /dev/null +++ b/scripts/ci.sh @@ -0,0 +1,35 @@ +#!/bin/sh +# Everything CI checks: CI runs this script, and so do the pre-push hook and `npm run push` (`mise run ci`). There's +# no format check: the pre-commit hook formats with oxfmt. +set -eu +cd "$(dirname "$0")/.." + +step() { printf '\n==> %s\n' "$1"; } + +step 'Type check' +npx tsc -p . +step 'oxlint' +npx oxlint --deny-warnings +step 'Tests, with a coverage floor' +npx jest --coverage --coverageReporters=text-summary +step "Smoke test: Zapier's validation, the changelog, what a push uploads" +node scripts/smoke_test.js +step 'Dead code and unused dependencies (Knip)' +npx knip +step 'Copy-paste (jscpd)' +npm run duplicates +step 'File lengths' +scripts/check_file_length.sh +step 'Lint suppressions' +scripts/check_lint_suppressions.sh +step 'Spelling (typos)' +typos +step 'Workflows (actionlint, zizmor)' +actionlint +zizmor --offline .github +step 'Secrets (Betterleaks)' +betterleaks git . --config .betterleaks.toml --redact --no-banner +step 'Dependency advisories (npm audit)' +node scripts/check_audit.mjs +step 'Licences' +node scripts/check_licences.mjs diff --git a/scripts/smoke_test.js b/scripts/smoke_test.js new file mode 100644 index 0000000..70aa8a3 --- /dev/null +++ b/scripts/smoke_test.js @@ -0,0 +1,53 @@ +'use strict' + +// Loads the integration as Zapier does (index.js through zapier-platform-core) and checks what a push would upload: +// - Zapier's own validation of the definition, as `zapier-platform validate` runs it; +// - CHANGELOG.md has an entry for package.json's version, which index.js gives Zapier; +// - files that hold secrets stay out of source.zip, which `zapier-platform push` builds from what git doesn't ignore. +const { execFileSync } = require('node:child_process') +const fs = require('node:fs') +const path = require('node:path') + +const root = path.resolve(__dirname, '..') +const zapier = require('zapier-platform-core') +const App = require(path.join(root, 'index.js')) +const pkg = require(path.join(root, 'package.json')) + +async function main() { + const problems = [] + + const { results } = await zapier.createAppHandler(App)( + { command: 'validate', calledFromCli: true }, + {}, + ) + for (const error of results) { + problems.push(`Zapier's validation: ${error.property} ${error.message}`) + } + + const changelog = fs.readFileSync(path.join(root, 'CHANGELOG.md'), 'utf8') + if (!changelog.split('\n').includes(`## ${pkg.version}`)) { + problems.push(`CHANGELOG.md has no "## ${pkg.version}" entry`) + } + + for (const file of ['.env', '.environment']) { + try { + execFileSync('git', ['check-ignore', '-q', file], { cwd: root }) + } catch { + problems.push(`git doesn't ignore ${file}, so zapier-platform push would upload it`) + } + } + + const count = ['creates', 'searches', 'triggers'].map( + (kind) => `${Object.keys(App[kind]).length} ${kind}`, + ) + if (problems.length > 0) { + console.error(`Smoke test:\n${problems.map((p) => ` ${p}`).join('\n')}`) + process.exit(1) + } + console.log(`Smoke test: version ${pkg.version} is valid (${count.join(', ')})`) +} + +main().catch((error) => { + console.error(error) + process.exit(1) +}) diff --git a/searches/list_folders.js b/searches/list_folders.js index bd49a07..d33f21a 100644 --- a/searches/list_folders.js +++ b/searches/list_folders.js @@ -15,9 +15,7 @@ const { folder } = require('../lib/resources/other') const perform = async (z, bundle) => { const input = bundle.inputData || {} const name = text(input.name) - const parent = isRoot(input.parent_folder_id) - ? undefined - : text(input.parent_folder_id) + const parent = isRoot(input.parent_folder_id) ? undefined : text(input.parent_folder_id) // The API lists every folder at any depth without a parent, so the top // level is picked out here. const rootOnly = !parent @@ -35,7 +33,7 @@ const perform = async (z, bundle) => { const { items, nextCursor } = await listPage( z, apiPath('folders'), - compact({ parent_folder_id: parent, limit: PAGE_SIZE, cursor }) + compact({ parent_folder_id: parent, limit: PAGE_SIZE, cursor }), ) seen += items.length matches.push(...items.filter(keep)) @@ -49,8 +47,7 @@ module.exports = { noun: 'Folder', display: { label: 'List Folders', - description: - 'Lists the folders in a folder or at the top level, or finds a folder by name.', + description: 'Lists the folders in a folder or at the top level, or finds a folder by name.', }, operation: { inputFields: [ @@ -59,13 +56,11 @@ module.exports = { label: 'Name', type: 'string', required: false, - helpText: - 'Only folders with this name (ignoring case). Leave blank to list them.', + helpText: 'Only folders with this name (ignoring case). Leave blank to list them.', }, folderInput({ label: 'Parent Folder', - helpText: - 'Only folders in this folder. Leave blank (or enter `root`) for the top level.', + helpText: 'Only folders in this folder. Leave blank (or enter `root`) for the top level.', }), ], perform, diff --git a/searches/submissions.js b/searches/submissions.js index a821979..bb860ea 100644 --- a/searches/submissions.js +++ b/searches/submissions.js @@ -15,12 +15,12 @@ function getById({ label, description, idKey, - idLabel, - idHelp, - idInput, + idLabel = undefined, + idHelp = undefined, + idInput = undefined, path, extraInputs = [], - params, + params = undefined, resource, }) { return { @@ -44,7 +44,7 @@ function getById({ z, bundle, path(seg(input[idKey])), - params ? compact(params(z, input)) : undefined + params ? compact(params(z, input)) : undefined, ) return record ? [record] : [] }, @@ -58,8 +58,7 @@ const getSubmission = getById({ key: 'get_submission', noun: 'Submission', label: 'Get Submission', - description: - 'Gets a submission by its ID, with its data and the links to its PDF.', + description: 'Gets a submission by its ID, with its data and the links to its PDF.', idKey: 'submission_id', idLabel: 'Submission ID', idHelp: 'The submission ID (`sub_…`).', @@ -134,8 +133,7 @@ const findSubmissions = { type: 'string', required: false, dynamic: 'template_choices.id.label', - helpText: - "Only this template's submissions. Leave blank for every template.", + helpText: "Only this template's submissions. Leave blank for every template.", }, { key: 'test', @@ -181,16 +179,14 @@ const findSubmissions = { const mode = text(input.test) const { items } = await listPage( z, - templateId - ? apiPath('templates', seg(templateId), 'submissions') - : apiPath('submissions'), + templateId ? apiPath('templates', seg(templateId), 'submissions') : apiPath('submissions'), compact({ test: mode === 'test' ? true : mode === 'live' ? false : undefined, created_after: text(input.created_after), created_before: text(input.created_before), include_data: toBoolean(z, input.include_data, 'Include Data?'), limit: toInteger(z, input.limit, 'Limit') || 10, - }) + }), ) return items }, diff --git a/searches/templates.js b/searches/templates.js index 598fc7b..f75b48a 100644 --- a/searches/templates.js +++ b/searches/templates.js @@ -67,7 +67,7 @@ const findTemplates = { query: text(input.query), parent_folder_id: text(input.parent_folder_id), limit: toInteger(z, input.limit, 'Limit') || 10, - }) + }), ) return items }, @@ -80,8 +80,7 @@ const getTemplate = getById({ key: 'get_template', noun: 'Template', label: 'Get Template', - description: - 'Gets a template by its ID, with its settings and published versions.', + description: 'Gets a template by its ID, with its settings and published versions.', idKey: 'template_id', idInput: TEMPLATE_ID_INPUT, path: (id) => apiPath('templates', id), diff --git a/test/auth.test.js b/test/auth.test.js index ddac5b4..127b3e6 100644 --- a/test/auth.test.js +++ b/test/auth.test.js @@ -1,21 +1,13 @@ 'use strict' const nock = require('nock') -const { - App, - appTester, - authData, - API, - apiError, - errorFrom, -} = require('./helpers') +const { App, appTester, authData, API, apiError, errorFrom } = require('./helpers') describe('authentication', () => { it('tests GET /api/v2/authentication on the region host with Basic auth and our User-Agent', async () => { const scope = nock(API, { reqheaders: { - authorization: - 'Basic ' + Buffer.from('api_test_abc:sekret').toString('base64'), + authorization: 'Basic ' + Buffer.from('api_test_abc:sekret').toString('base64'), 'user-agent': 'docspring-zapier/2.1.2', }, }) @@ -31,11 +23,9 @@ describe('authentication', () => { nock(API) .get('/api/v2/authentication') .reply(401, apiError('unauthorized', 'Invalid API token')) - const error = await errorFrom( - appTester(App.authentication.test, { authData }) - ) + const error = await errorFrom(appTester(App.authentication.test, { authData })) expect(error.message).toBe( - 'DocSpring API error 401 unauthorized: Invalid API token\nRequest ID: req_1234567890abcdef01' + 'DocSpring API error 401 unauthorized: Invalid API token\nRequest ID: req_1234567890abcdef01', ) expect(error.status).toBe(401) }) @@ -51,10 +41,10 @@ describe('authentication', () => { region: 'self_hosted', custom_host: 'docspring.example.com', }, - }) + }), ) expect(error.message).toBe( - "This DocSpring server doesn't have API v2 yet. Upgrade it to the latest release, or use version 1.1.0 of this integration." + "This DocSpring server doesn't have API v2 yet. Upgrade it to the latest release, or use version 1.1.0 of this integration.", ) }) @@ -69,14 +59,9 @@ describe('authentication', () => { }) it('derives a Test/Live connection label from the token id and region', () => { - expect(App.authentication.connectionLabel({}, { authData })).toMatch( - /DocSpring Test · US/ - ) + expect(App.authentication.connectionLabel({}, { authData })).toMatch(/DocSpring Test · US/) expect( - App.authentication.connectionLabel( - {}, - { authData: { region: 'eu', token_id: 'api_xyz' } } - ) + App.authentication.connectionLabel({}, { authData: { region: 'eu', token_id: 'api_xyz' } }), ).toMatch(/DocSpring Live · EU/) }) }) diff --git a/test/creates/combine_and_batch.test.js b/test/creates/combine_and_batch.test.js index 9b4fa09..f1739ae 100644 --- a/test/creates/combine_and_batch.test.js +++ b/test/creates/combine_and_batch.test.js @@ -10,6 +10,7 @@ const { fakeClock, apiError, errorFrom, + saveBody, } = require('../helpers') describe('combine_pdfs', () => { @@ -19,10 +20,10 @@ describe('combine_pdfs', () => { fakeClock() let body nock(SYNC) - .post('/api/v2/combined_pdfs', (b) => { - body = b - return true - }) + .post( + '/api/v2/combined_pdfs', + saveBody((b) => (body = b)), + ) .query({ wait: 'false' }) .reply(201, { id: 'com_1', state: 'pending' }) const poll = nock(API) @@ -74,10 +75,10 @@ describe('combine_pdfs', () => { it('defaults a source to a submission and checks each one has an ID or URL', async () => { let body nock(SYNC) - .post('/api/v2/combined_pdfs', (b) => { - body = b - return true - }) + .post( + '/api/v2/combined_pdfs', + saveBody((b) => (body = b)), + ) .query(true) .reply(201, { id: 'com_1', state: 'processed' }) await appTester(op.perform, { @@ -90,7 +91,7 @@ describe('combine_pdfs', () => { appTester(op.perform, { authData, inputData: { source_pdfs: [{ type: 'url' }] }, - }) + }), ) expect(error.message).toBe('Source PDF 1 needs a URL.') }) @@ -104,10 +105,10 @@ describe('combine_pdfs', () => { appTester(op.perform, { authData, inputData: { source_pdfs: [{ id: 'sub_1' }] }, - }) + }), ) expect(error.message).toBe( - "The PDFs couldn't be combined (state: error): Bad PDF\nCombined PDF: com_1" + "The PDFs couldn't be combined (state: error): Bad PDF\nCombined PDF: com_1", ) }) }) @@ -119,20 +120,18 @@ describe('generate_pdf_batch', () => { fakeClock() let body nock(SYNC) - .post('/api/v2/submissions/batches', (b) => { - body = b - return true - }) + .post( + '/api/v2/submissions/batches', + saveBody((b) => (body = b)), + ) .query({ wait: 'false' }) .reply(201, { id: 'sbb_1', state: 'pending', processed_at: null }) - nock(API) - .get('/api/v2/submissions/batches/sbb_1') - .reply(200, { - id: 'sbb_1', - state: 'processed', - processed_at: '2026-10-27T09:00:05Z', - submissions: [], - }) + nock(API).get('/api/v2/submissions/batches/sbb_1').reply(200, { + id: 'sbb_1', + state: 'processed', + processed_at: '2026-10-27T09:00:05Z', + submissions: [], + }) const result = await appTester(op.perform, { authData, @@ -167,19 +166,17 @@ describe('generate_pdf_batch', () => { it('takes the submissions as a JSON list instead', async () => { let body nock(SYNC) - .post('/api/v2/submissions/batches', (b) => { - body = b - return true - }) + .post( + '/api/v2/submissions/batches', + saveBody((b) => (body = b)), + ) .query(true) .reply(201, { id: 'sbb_1', state: 'processed', processed_at: '2026-10-27T09:00:05Z', }) - const submissions = [ - { template_id: 'tpl_2', data: { a: 1 }, expires_in: 60 }, - ] + const submissions = [{ template_id: 'tpl_2', data: { a: 1 }, expires_in: 60 }] await appTester(op.perform, { authData, inputData: { submissions_json: JSON.stringify(submissions) }, @@ -216,14 +213,14 @@ describe('generate_pdf_batch', () => { appTester(op.perform, { authData, inputData: { template_id: 'tpl_1', submissions_json: '[{"data": {}}]' }, - }) + }), ) expect(error.message).toBe( [ "Some submissions in the batch couldn't be processed (state: error): 1 of 2 failed.", 'sub_2: image_download_failed: No image at that URL', 'Submission batch: sbb_1', - ].join('\n') + ].join('\n'), ) }) @@ -244,7 +241,7 @@ describe('generate_pdf_batch', () => { submission_id: 'sub_b', }, ], - }) + }), ) const error = await errorFrom( appTester(op.perform, { @@ -253,20 +250,20 @@ describe('generate_pdf_batch', () => { template_id: 'tpl_1', submissions_json: '[{"data": {}}, {"data": {}}]', }, - }) + }), ) expect(error.message).toBe( [ 'DocSpring API error 422 invalid_data: Some submissions are invalid', '/submissions/1/data/last_name: is required (Submission: sub_b)', 'Request ID: req_1234567890abcdef01', - ].join('\n') + ].join('\n'), ) }) it('needs at least one submission', async () => { const error = await errorFrom( - appTester(op.perform, { authData, inputData: { template_id: 'tpl_1' } }) + appTester(op.perform, { authData, inputData: { template_id: 'tpl_1' } }), ) expect(error.message).toBe('Add at least one submission to the batch.') }) diff --git a/test/creates/create_signature_request.test.js b/test/creates/create_signature_request.test.js index 94657d3..adcff46 100644 --- a/test/creates/create_signature_request.test.js +++ b/test/creates/create_signature_request.test.js @@ -9,9 +9,26 @@ const { apiError, errorFrom, fakeClock, + saveBody, } = require('../helpers') const op = App.creates.create_signature_request.operation + +// Creates a signature request for template tpl_1 with these inputs, and returns the body it sent. +async function createWith(inputs) { + let body + nock(API) + .post( + '/api/v2/templates/tpl_1/submissions', + saveBody((b) => (body = b)), + ) + .reply(201, created) + await appTester(op.perform, { + authData, + inputData: { template_id: 'tpl_1', ...inputs }, + }) + return body +} const dynamicFields = op.inputFields[op.inputFields.length - 1] const created = { @@ -70,9 +87,7 @@ describe('create_signature_request', () => { expect(byKey.signer_2_email).toBeDefined() expect(byKey.signer_3_email).toBeUndefined() expect(byKey.signer_1_auth_type.default).toBe('email_link') - expect(byKey.signer_1_auth_type.choices.map((c) => c.value)).not.toContain( - 'none' - ) + expect(byKey.signer_1_auth_type.choices.map((c) => c.value)).not.toContain('none') // Prefill fields are optional, and only signers fill in signature fields. expect(byKey.data__first_name).toMatchObject({ required: false, @@ -107,10 +122,7 @@ describe('create_signature_request', () => { }) expect(scope.isDone()).toBe(true) // Each name once, in the API's order, without fields that take no value. - expect(fields.find((f) => f.key === 'signer_1_fields').choices).toEqual([ - 'signature', - 'date', - ]) + expect(fields.find((f) => f.key === 'signer_1_fields').choices).toEqual(['signature', 'date']) }) it('shows only the signer inputs for a template mapped from an earlier step, and prefills from Data (JSON)', async () => { @@ -118,17 +130,15 @@ describe('create_signature_request', () => { authData, inputData: { template_id: '{{123__id}}', signer_count: '1' }, }) - expect(fields.find((f) => f.key === 'signer_1_fields')).not.toHaveProperty( - 'choices' - ) + expect(fields.find((f) => f.key === 'signer_1_fields')).not.toHaveProperty('choices') expect(fields.some((f) => f.key.startsWith('data'))).toBe(false) let body nock(API) - .post('/api/v2/templates/tpl_9/submissions', (b) => { - body = b - return true - }) + .post( + '/api/v2/templates/tpl_9/submissions', + saveBody((b) => (body = b)), + ) .reply(201, { ...created, signature_requests: [] }) await appTester(op.perform, { authData, @@ -144,10 +154,10 @@ describe('create_signature_request', () => { it('creates the submission with signature_requests on the standard host and, when you send the links, a signing link for each', async () => { let body const scope = nock(API) - .post('/api/v2/templates/tpl_1/submissions', (b) => { - body = b - return true - }) + .post( + '/api/v2/templates/tpl_1/submissions', + saveBody((b) => (body = b)), + ) .query({ version: 'draft' }) .reply(201, created) .post('/api/v2/signature_requests/srq_1/tokens', { type: 'email' }) @@ -201,9 +211,7 @@ describe('create_signature_request', () => { expect(body).not.toHaveProperty('editable') expect(result.state).toBe('waiting_for_signature_requests') expect(result.first_signature_request_id).toBe('srq_1') - expect(result.first_signing_url).toBe( - tokenFor('srq_1').signature_request_url - ) + expect(result.first_signing_url).toBe(tokenFor('srq_1').signature_request_url) expect(result.signature_requests.map((r) => r.signing_url)).toEqual([ tokenFor('srq_1').signature_request_url, tokenFor('srq_2').signature_request_url, @@ -213,10 +221,10 @@ describe('create_signature_request', () => { it('lets DocSpring email the signers by default, and makes no signing links', async () => { let body const scope = nock(API) - .post('/api/v2/templates/tpl_1/submissions', (b) => { - body = b - return true - }) + .post( + '/api/v2/templates/tpl_1/submissions', + saveBody((b) => (body = b)), + ) .reply(201, { ...created, signature_requests: created.signature_requests.map((r) => ({ @@ -242,49 +250,31 @@ describe('create_signature_request', () => { // nock fails any request it wasn't given, such as a token. expect(scope.isDone()).toBe(true) expect(body.send_email).toBe(true) - expect(body.signature_requests.map((r) => r.auth_type)).toEqual([ - 'email_link', - 'email_link', - ]) - expect(result.signature_requests.map((r) => r.signing_url)).toEqual([ - null, - null, - ]) + expect(body.signature_requests.map((r) => r.auth_type)).toEqual(['email_link', 'email_link']) + expect(result.signature_requests.map((r) => r.signing_url)).toEqual([null, null]) expect(result.first_signature_request_id).toBe('srq_1') expect(result.first_signing_url).toBeNull() }) it("sends DocSpring's email options, the signing order and each signer's step, leaving out empty ones", async () => { - let body - nock(API) - .post('/api/v2/templates/tpl_1/submissions', (b) => { - body = b - return true - }) - .reply(201, created) - - await appTester(op.perform, { - authData, - inputData: { - template_id: 'tpl_1', - send_email: 'docspring', - signing_order: 'sequential', - email_subject: ' Please sign {{ document.name }} ', - email_message: 'Sign by Friday.', - cc: ['records@example.com, legal@example.com'], - reminder_interval_days: '3', - reminder_max_count: 2, - reply_to: '', - notification_emails: [], - notify_when_signed: 'true', - signer_count: '2', - signer_1_email: 'jane@example.com', - signer_1_fields: ['signature'], - signer_1_signing_step: '1', - signer_2_email: 'john@example.com', - signer_2_fields: ['initials'], - signer_2_signing_step: 2, - }, + const body = await createWith({ + send_email: 'docspring', + signing_order: 'sequential', + email_subject: ' Please sign {{ document.name }} ', + email_message: 'Sign by Friday.', + cc: ['records@example.com, legal@example.com'], + reminder_interval_days: '3', + reminder_max_count: 2, + reply_to: '', + notification_emails: [], + notify_when_signed: 'true', + signer_count: '2', + signer_1_email: 'jane@example.com', + signer_1_fields: ['signature'], + signer_1_signing_step: '1', + signer_2_email: 'john@example.com', + signer_2_fields: ['initials'], + signer_2_signing_step: 2, }) expect(body).toEqual({ @@ -316,10 +306,10 @@ describe('create_signature_request', () => { it("leaves out DocSpring's email options when you send the links, which the API refuses then", async () => { let body nock(API) - .post('/api/v2/templates/tpl_1/submissions', (b) => { - body = b - return true - }) + .post( + '/api/v2/templates/tpl_1/submissions', + saveBody((b) => (body = b)), + ) .reply(201, { ...created, signature_requests: [] }) await appTester(op.perform, { @@ -346,31 +336,19 @@ describe('create_signature_request', () => { }) it("sends [[ signer.name ]] and DocSpring's other variables as {{ }}, which Zapier would empty", async () => { - let body - nock(API) - .post('/api/v2/templates/tpl_1/submissions', (b) => { - body = b - return true - }) - .reply(201, created) - - await appTester(op.perform, { - authData, - inputData: { - template_id: 'tpl_1', - email_subject: 'Please sign, [[ signer.name ]]', - email_message: - 'Hi [[signer.name]] ([[ signer.email ]]), [[ sender.name ]] at [[ account.name ]] sent ' + - '[[ document.name ]]. Keep [[ this ]] and [[ signer.nmae ]].', - signer_1_email: 'jane@example.com', - signer_1_fields: ['signature'], - }, + const body = await createWith({ + email_subject: 'Please sign, [[ signer.name ]]', + email_message: + 'Hi [[signer.name]] ([[ signer.email ]]), [[ sender.name ]] at [[ account.name ]] sent ' + + '[[ document.name ]]. Keep [[ this ]] and [[ signer.nmae ]].', + signer_1_email: 'jane@example.com', + signer_1_fields: ['signature'], }) expect(body.email_subject).toBe('Please sign, {{ signer.name }}') expect(body.email_message).toBe( 'Hi {{ signer.name }} ({{ signer.email }}), {{ sender.name }} at {{ account.name }} sent ' + - '{{ document.name }}. Keep [[ this ]] and [[ signer.nmae ]].' + '{{ document.name }}. Keep [[ this ]] and [[ signer.nmae ]].', ) }) @@ -398,11 +376,9 @@ describe('create_signature_request', () => { send_email: 'yes', signer_1_fields: ['a'], }, - }) - ) - expect(error.message).toContain( - 'Emails to Signers must be docspring or self, not "yes".' + }), ) + expect(error.message).toContain('Emails to Signers must be docspring or self, not "yes".') }) it("shows DocSpring's email options, or the link type when you send the links, and a signing step for each signer", async () => { @@ -427,7 +403,7 @@ describe('create_signature_request', () => { 'notify_when_signed', 'signer_1_signing_step', 'signer_2_signing_step', - ]) + ]), ) expect(docspring).not.toContain('signing_link_type') @@ -455,9 +431,7 @@ describe('create_signature_request', () => { signer_1_fields: ['a'], }, }) - expect(withApi.first_signing_url).toBe( - tokenFor('srq_1').signature_request_url - ) + expect(withApi.first_signing_url).toBe(tokenFor('srq_1').signature_request_url) nock(API).post('/api/v2/templates/tpl_1/submissions').reply(201, created) const none = await appTester(op.perform, { @@ -479,7 +453,7 @@ describe('create_signature_request', () => { appTester(op.perform, { authData, inputData: { template_id: 'tpl_1', signer_1_email: 'a@x.com' }, - }) + }), ) expect(noFields.message).toBe('Signer 1 needs at least one field.') @@ -491,10 +465,10 @@ describe('create_signature_request', () => { signer_1_fields: ['a'], signer_1_auth_type: 'oauth', }, - }) + }), ) expect(noProvider.message).toMatch( - /Signer 1 uses OAuth, so it needs an Authentication Provider/ + /Signer 1 uses OAuth, so it needs an Authentication Provider/, ) }) @@ -515,14 +489,12 @@ describe('create_signature_request', () => { send_email: 'self', signer_1_fields: ['a'], }, - }) - ) - expect(error.message).toMatch( - /^The signature requests were created, but the signing link for srq_1 couldn't be made\. Make it with Create Signing Link instead of running this step again\./ + }), ) expect(error.message).toMatch( - /DocSpring API error 500 internal_error: Something went wrong/ + /^The signature requests were created, but the signing link for srq_1 couldn't be made\. Make it with Create Signing Link instead of running this step again\./, ) + expect(error.message).toMatch(/DocSpring API error 500 internal_error: Something went wrong/) expect(error.message).toMatch(/Submission: sub_1/) }) @@ -595,7 +567,7 @@ describe('create_signature_request', () => { signer_2_fields: ['b'], signer_3_fields: ['c'], }, - }) + }), ) expect(error.code).toBe('SigningLinkFailed') expect(error.message).toBe( @@ -605,7 +577,7 @@ describe('create_signature_request', () => { 'DocSpring API error 429 rate_limited: Too many requests', 'Request ID: req_1234567890abcdef01', 'Submission: sub_1', - ].join('\n') + ].join('\n'), ) expect(clock.sleeps).toEqual([]) }) @@ -624,10 +596,10 @@ describe('create_signature_request', () => { send_email: 'self', signer_1_fields: ['a'], }, - }) + }), ) expect(error.message).toMatch( - /^The signature requests were created, but the signing links for srq_1, srq_2 couldn't be made\./ + /^The signature requests were created, but the signing links for srq_1, srq_2 couldn't be made\./, ) expect(error.message).toMatch(/socket hang up/) expect(error.message).toMatch(/Submission: sub_1$/) @@ -650,7 +622,7 @@ describe('create_signature_request', () => { send_email: 'self', signer_1_fields: ['a'], }, - }) + }), ) expect(error.message).toBe( [ @@ -658,7 +630,7 @@ describe('create_signature_request', () => { 'Make them with Create Signing Link instead of running this step again.', "There wasn't time to make them within Zapier's time limit.", 'Submission: sub_1', - ].join('\n') + ].join('\n'), ) }) }) diff --git a/test/creates/generate_pdf.test.js b/test/creates/generate_pdf.test.js index fed7544..6525cf3 100644 --- a/test/creates/generate_pdf.test.js +++ b/test/creates/generate_pdf.test.js @@ -10,9 +10,27 @@ const { fakeClock, apiError, errorFrom, + saveBody, } = require('../helpers') const op = App.creates.generate_pdf.operation + +// Creates a submission for template tpl_1 with these inputs, and returns the body it sent. +async function generateWith(inputs) { + let body + nock(SYNC) + .post( + '/api/v2/templates/tpl_1/submissions', + saveBody((b) => (body = b)), + ) + .query(true) + .reply(201, processed) + await appTester(op.perform, { + authData, + inputData: { template_id: 'tpl_1', ...inputs }, + }) + return body +} const dynamicFields = op.inputFields[op.inputFields.length - 1] const pending = { id: 'sub_1', state: 'pending', files: {} } @@ -42,19 +60,17 @@ describe('generate_pdf', () => { inputData: { template_id: 'tpl_1', version: '1.2.0' }, }) expect(scope.isDone()).toBe(true) - expect(fields).toEqual([ - { key: 'data__name', label: 'Name', type: 'string', required: true }, - ]) + expect(fields).toEqual([{ key: 'data__name', label: 'Name', type: 'string', required: true }]) }) it('creates the submission on the sync host with wait=false and version in the query, then waits for it', async () => { fakeClock() let body const scope = nock(SYNC) - .post('/api/v2/templates/tpl_1/submissions', (b) => { - body = b - return true - }) + .post( + '/api/v2/templates/tpl_1/submissions', + saveBody((b) => (body = b)), + ) .query({ wait: 'false', version: 'draft' }) .reply(201, pending) const poll = nock(API) @@ -100,23 +116,10 @@ describe('generate_pdf', () => { // A template ID mapped from an earlier step has no fields to show, so its // data comes as JSON. A template field with a value wins over the same key. it('merges Data (JSON) under the template field inputs', async () => { - let body - nock(SYNC) - .post('/api/v2/templates/tpl_1/submissions', (b) => { - body = b - return true - }) - .query(true) - .reply(201, processed) - await appTester(op.perform, { - authData, - inputData: { - template_id: 'tpl_1', - json_data: - '{"name": "From JSON", "address": {"city": "Auckland"}, "age": 42}', - data__name: 'Jane', - data__age: '', - }, + const body = await generateWith({ + json_data: '{"name": "From JSON", "address": {"city": "Auckland"}, "age": 42}', + data__name: 'Jane', + data__age: '', }) expect(body.data).toEqual({ name: 'Jane', @@ -128,28 +131,21 @@ describe('generate_pdf', () => { it.each([ ['{"name": ', /^Data \(JSON\) must be valid JSON: /], ['["a"]', /^Data \(JSON\) must be a JSON object/], - ])( - 'rejects Data (JSON) %p before sending anything', - async (json, message) => { - const error = await errorFrom( - appTester(op.perform, { - authData, - inputData: { template_id: 'tpl_1', json_data: json }, - }) - ) - expect(error.message).toMatch(message) - } - ) + ])('rejects Data (JSON) %p before sending anything', async (json, message) => { + const error = await errorFrom( + appTester(op.perform, { + authData, + inputData: { template_id: 'tpl_1', json_data: json }, + }), + ) + expect(error.message).toMatch(message) + }) it('has a Data (JSON) input, and no template fields for a template mapped from an earlier step', async () => { - ;['generate_pdf', 'check_data', 'create_signature_request'].forEach( - (key) => { - const input = App.creates[key].operation.inputFields.find( - (f) => f.key === 'json_data' - ) - expect([key, input && input.type]).toEqual([key, 'code']) - } - ) + ;['generate_pdf', 'check_data', 'create_signature_request'].forEach((key) => { + const input = App.creates[key].operation.inputFields.find((f) => f.key === 'json_data') + expect([key, input && input.type]).toEqual([key, 'code']) + }) // No request is mocked: one would fail with a network error. const fields = await appTester(dynamicFields, { authData, @@ -159,18 +155,7 @@ describe('generate_pdf', () => { }) it('sends test: true only when the PDF is a test', async () => { - let body - nock(SYNC) - .post('/api/v2/templates/tpl_1/submissions', (b) => { - body = b - return true - }) - .query(true) - .reply(201, processed) - await appTester(op.perform, { - authData, - inputData: { template_id: 'tpl_1', test: true }, - }) + const body = await generateWith({ test: true }) expect(body).toEqual({ data: {}, test: true }) }) @@ -186,61 +171,47 @@ describe('generate_pdf', () => { expect(result).toEqual(pending) }) - it.each([ - 'error', - 'syntax_error', - 'image_download_failed', - 'image_processing_failed', - ])( + it.each(['error', 'syntax_error', 'image_download_failed', 'image_processing_failed'])( 'fails for a submission whose state is %s, naming its error and ID', async (state) => { - nock(SYNC) - .post('/api/v2/templates/tpl_1/submissions') - .query(true) - .reply(201, { - id: 'sub_1', - state, - error_message: 'Could not download the image', - }) + nock(SYNC).post('/api/v2/templates/tpl_1/submissions').query(true).reply(201, { + id: 'sub_1', + state, + error_message: 'Could not download the image', + }) const error = await errorFrom( - appTester(op.perform, { authData, inputData: { template_id: 'tpl_1' } }) + appTester(op.perform, { authData, inputData: { template_id: 'tpl_1' } }), ) expect(error.message).toBe( - `The PDF couldn't be generated (state: ${state}): Could not download the image\nSubmission: sub_1` + `The PDF couldn't be generated (state: ${state}): Could not download the image\nSubmission: sub_1`, ) - } + }, ) it('fails when the polled submission ends in a failure state', async () => { fakeClock() - nock(SYNC) - .post('/api/v2/templates/tpl_1/submissions') - .query(true) - .reply(201, pending) + nock(SYNC).post('/api/v2/templates/tpl_1/submissions').query(true).reply(201, pending) nock(API) .get('/api/v2/submissions/sub_1') .reply(200, { id: 'sub_1', state: 'error', error_message: 'Boom' }) const error = await errorFrom( - appTester(op.perform, { authData, inputData: { template_id: 'tpl_1' } }) + appTester(op.perform, { authData, inputData: { template_id: 'tpl_1' } }), ) expect(error.message).toBe( - "The PDF couldn't be generated (state: error): Boom\nSubmission: sub_1" + "The PDF couldn't be generated (state: error): Boom\nSubmission: sub_1", ) }) it("stops waiting within Zapier's time limit and says how to get the PDF later", async () => { const clock = fakeClock() - nock(SYNC) - .post('/api/v2/templates/tpl_1/submissions') - .query(true) - .reply(201, pending) + nock(SYNC).post('/api/v2/templates/tpl_1/submissions').query(true).reply(201, pending) nock(API).get('/api/v2/submissions/sub_1').times(20).reply(200, pending) const error = await errorFrom( - appTester(op.perform, { authData, inputData: { template_id: 'tpl_1' } }) + appTester(op.perform, { authData, inputData: { template_id: 'tpl_1' } }), ) expect(error.message).toBe( - "The PDF wasn't ready in time. Get it later with Get Submission (sub_1), or use the submission.processed trigger." + "The PDF wasn't ready in time. Get it later with Get Submission (sub_1), or use the submission.processed trigger.", ) // Zapier stops an action after 30 seconds. expect(clock.now).toBeLessThanOrEqual(25000) @@ -249,28 +220,17 @@ describe('generate_pdf', () => { it('waits between checks for 1, 2, 4, 8, 8 seconds, then checks once more at 25 seconds', async () => { const clock = fakeClock() - nock(SYNC) - .post('/api/v2/templates/tpl_1/submissions') - .query(true) - .reply(201, pending) - const polls = nock(API) - .get('/api/v2/submissions/sub_1') - .times(6) - .reply(200, pending) + nock(SYNC).post('/api/v2/templates/tpl_1/submissions').query(true).reply(201, pending) + const polls = nock(API).get('/api/v2/submissions/sub_1').times(6).reply(200, pending) - await errorFrom( - appTester(op.perform, { authData, inputData: { template_id: 'tpl_1' } }) - ) + await errorFrom(appTester(op.perform, { authData, inputData: { template_id: 'tpl_1' } })) expect(clock.sleeps).toEqual([1000, 2000, 4000, 8000, 8000, 2000]) expect(polls.isDone()).toBe(true) }) it('waits for Retry-After when a check is rate limited and there is time', async () => { const clock = fakeClock() - nock(SYNC) - .post('/api/v2/templates/tpl_1/submissions') - .query(true) - .reply(201, pending) + nock(SYNC).post('/api/v2/templates/tpl_1/submissions').query(true).reply(201, pending) nock(API) .get('/api/v2/submissions/sub_1') .reply(429, apiError('rate_limited', 'Too many requests'), { @@ -289,40 +249,34 @@ describe('generate_pdf', () => { it('stops waiting (without creating it again) when a check is rate limited for longer than the time left', async () => { fakeClock() - nock(SYNC) - .post('/api/v2/templates/tpl_1/submissions') - .query(true) - .reply(201, pending) + nock(SYNC).post('/api/v2/templates/tpl_1/submissions').query(true).reply(201, pending) nock(API) .get('/api/v2/submissions/sub_1') .reply(429, apiError('rate_limited', 'Too many requests'), { 'Retry-After': '30', }) const error = await errorFrom( - appTester(op.perform, { authData, inputData: { template_id: 'tpl_1' } }) + appTester(op.perform, { authData, inputData: { template_id: 'tpl_1' } }), ) expect(error.message).toMatch( - /^The PDF wasn't ready in time\. Get it later with Get Submission \(sub_1\)/ + /^The PDF wasn't ready in time\. Get it later with Get Submission \(sub_1\)/, ) expect(error.message).toMatch( - /Checking it failed: DocSpring API error 429 rate_limited: Too many requests/ + /Checking it failed: DocSpring API error 429 rate_limited: Too many requests/, ) }) it('stops waiting when a rate-limited check gives no Retry-After', async () => { fakeClock() - nock(SYNC) - .post('/api/v2/templates/tpl_1/submissions') - .query(true) - .reply(201, pending) + nock(SYNC).post('/api/v2/templates/tpl_1/submissions').query(true).reply(201, pending) nock(API) .get('/api/v2/submissions/sub_1') .reply(429, apiError('rate_limited', 'Too many requests')) const error = await errorFrom( - appTester(op.perform, { authData, inputData: { template_id: 'tpl_1' } }) + appTester(op.perform, { authData, inputData: { template_id: 'tpl_1' } }), ) expect(error.message).toMatch( - /^The PDF wasn't ready in time\. Get it later with Get Submission \(sub_1\)/ + /^The PDF wasn't ready in time\. Get it later with Get Submission \(sub_1\)/, ) }) @@ -348,24 +302,17 @@ describe('generate_pdf', () => { expect(result.files.png.state).toBe('processed') }) - it("asks a Word template for its Word document and OpenDocument file, and lists them in the output", async () => { + it('asks a Word template for its Word document and OpenDocument file, and lists them in the output', async () => { for (const create of [App.creates.generate_pdf, App.creates.generate_pdf_batch]) { - const input = create.operation.inputFields.find( - (f) => f.key === 'output_formats' - ) - expect(input.choices.map((c) => c.value)).toEqual([ - 'pdf', - 'docx', - 'odt', - 'png', - ]) + const input = create.operation.inputFields.find((f) => f.key === 'output_formats') + expect(input.choices.map((c) => c.value)).toEqual(['pdf', 'docx', 'odt', 'png']) } let body nock(SYNC) - .post('/api/v2/templates/tpl_1/submissions', (b) => { - body = b - return true - }) + .post( + '/api/v2/templates/tpl_1/submissions', + saveBody((b) => (body = b)), + ) .query(true) .reply(201, { id: 'sub_1', @@ -404,18 +351,18 @@ describe('generate_pdf', () => { }, ], submission_id: 'sub_bad', - } - ) + }, + ), ) const error = await errorFrom( - appTester(op.perform, { authData, inputData: { template_id: 'tpl_1' } }) + appTester(op.perform, { authData, inputData: { template_id: 'tpl_1' } }), ) expect(error.message).toBe( [ "DocSpring API error 422 invalid_data: The data doesn't match the template's fields: /data/last_name is required", 'Submission: sub_bad', 'Request ID: req_1234567890abcdef01', - ].join('\n') + ].join('\n'), ) }) @@ -424,11 +371,9 @@ describe('generate_pdf', () => { appTester(op.perform, { authData, inputData: { template_id: 'tpl_1', expires_in: 'tomorrow' }, - }) - ) - expect(error.message).toBe( - 'Expires In must be a whole number, not "tomorrow".' + }), ) + expect(error.message).toBe('Expires In must be a whole number, not "tomorrow".') }) it('uses the EU sync host for the EU region', async () => { diff --git a/test/creates/submission_actions.test.js b/test/creates/submission_actions.test.js index 789dd2a..49acd90 100644 --- a/test/creates/submission_actions.test.js +++ b/test/creates/submission_actions.test.js @@ -9,11 +9,28 @@ const { SYNC, fakeClock, errorFrom, + saveBody, } = require('../helpers') describe('check_data', () => { const op = App.creates.check_data.operation + // Runs Check Data for template tpl_1 with these inputs, and returns the body it sent. + async function checkData(inputs) { + let body + nock(API) + .post( + '/api/v2/templates/tpl_1/submissions/validate', + saveBody((b) => (body = b)), + ) + .reply(200, { valid: true }) + await appTester(op.perform, { + authData, + inputData: { template_id: 'tpl_1', ...inputs }, + }) + return body + } + it('validates the data with version in the query, and returns valid: false without failing', async () => { let body const result = { @@ -23,10 +40,10 @@ describe('check_data', () => { error: { code: 'invalid_data' }, } nock(API) - .post('/api/v2/templates/tpl_1/submissions/validate', (b) => { - body = b - return true - }) + .post( + '/api/v2/templates/tpl_1/submissions/validate', + saveBody((b) => (body = b)), + ) .query({ version: '1' }) .reply(200, result) const output = await appTester(op.perform, { @@ -36,8 +53,7 @@ describe('check_data', () => { version: '1', data__first_name: 'Jane', test: 'false', - signature_requests: - '[{"fields": ["signature"], "auth_type": "email_link"}]', + signature_requests: '[{"fields": ["signature"], "auth_type": "email_link"}]', }, }) expect(output).toEqual(result) @@ -48,13 +64,13 @@ describe('check_data', () => { }) }) - it("checks the email settings Create Signature Request sends, only with signature requests", async () => { + it('checks the email settings Create Signature Request sends, only with signature requests', async () => { const bodies = [] nock(API) - .post('/api/v2/templates/tpl_1/submissions/validate', (b) => { - bodies.push(b) - return true - }) + .post( + '/api/v2/templates/tpl_1/submissions/validate', + saveBody((b) => bodies.push(b)), + ) .times(3) .reply(200, { valid: true }) const settings = { @@ -105,21 +121,10 @@ describe('check_data', () => { }) it('leaves out blank values in the signature requests, which the API refuses', async () => { - let body - nock(API) - .post('/api/v2/templates/tpl_1/submissions/validate', (b) => { - body = b - return true - }) - .reply(200, { valid: true }) - await appTester(op.perform, { - authData, - inputData: { - template_id: 'tpl_1', - send_email: 'self', - signature_requests: - '[{"fields": ["signature"], "auth_type": "password", "email": "", "name": " ", "role": "Signer 1"}]', - }, + const body = await checkData({ + send_email: 'self', + signature_requests: + '[{"fields": ["signature"], "auth_type": "password", "email": "", "name": " ", "role": "Signer 1"}]', }) expect(body.signature_requests).toEqual([ { fields: ['signature'], auth_type: 'password', role: 'Signer 1' }, @@ -127,40 +132,18 @@ describe('check_data', () => { }) it('treats an empty list as no signature requests, so no email settings are sent', async () => { - let body - nock(API) - .post('/api/v2/templates/tpl_1/submissions/validate', (b) => { - body = b - return true - }) - .reply(200, { valid: true }) - await appTester(op.perform, { - authData, - inputData: { - template_id: 'tpl_1', - signing_order: 'parallel', - signature_requests: '[]', - }, + const body = await checkData({ + signing_order: 'parallel', + signature_requests: '[]', }) expect(body).toEqual({ data: {} }) }) it("defaults each signature request's authentication to an email link, as Create Signature Request does", async () => { - let body - nock(API) - .post('/api/v2/templates/tpl_1/submissions/validate', (b) => { - body = b - return true - }) - .reply(200, { valid: true }) - await appTester(op.perform, { - authData, - inputData: { - template_id: 'tpl_1', - send_email: 'self', - signature_requests: - '[{"name": "Jane Doe", "fields": ["signature"]}, {"fields": ["initials"], "auth_type": "password"}]', - }, + const body = await checkData({ + send_email: 'self', + signature_requests: + '[{"name": "Jane Doe", "fields": ["signature"]}, {"fields": ["initials"], "auth_type": "password"}]', }) expect(body.signature_requests).toEqual([ { name: 'Jane Doe', fields: ['signature'], auth_type: 'email_link' }, @@ -232,12 +215,7 @@ describe('generate_submission_files', () => { it("offers a Word template submission's PDF, Word document and OpenDocument file, and asks for them", async () => { const formats = op.inputFields.find((f) => f.key === 'formats') - expect(formats.choices.map((c) => c.value)).toEqual([ - 'png', - 'pdf', - 'docx', - 'odt', - ]) + expect(formats.choices.map((c) => c.value)).toEqual(['png', 'pdf', 'docx', 'odt']) expect(formats.default).toBe('png') nock(SYNC) .post('/api/v2/submissions/sub_1/generate_files', { @@ -266,26 +244,21 @@ describe('generate_submission_files', () => { files: { png: { state: 'error', error_message: 'Too many pages' } }, }) const error = await errorFrom( - appTester(op.perform, { authData, inputData: { submission_id: 'sub_1' } }) + appTester(op.perform, { authData, inputData: { submission_id: 'sub_1' } }), ) expect(error.message).toBe( - "The png files couldn't be made (state: error): Too many pages\nSubmission: sub_1" + "The png files couldn't be made (state: error): Too many pages\nSubmission: sub_1", ) }) }) describe('expire_submission', () => { it('deletes the submission and returns it as it was expired', async () => { - nock(API) - .delete('/api/v2/submissions/sub_1') - .reply(200, { id: 'sub_1', expired: true }) - const result = await appTester( - App.creates.expire_submission.operation.perform, - { - authData, - inputData: { submission_id: 'sub_1' }, - } - ) + nock(API).delete('/api/v2/submissions/sub_1').reply(200, { id: 'sub_1', expired: true }) + const result = await appTester(App.creates.expire_submission.operation.perform, { + authData, + inputData: { submission_id: 'sub_1' }, + }) expect(result).toEqual({ id: 'sub_1', expired: true }) }) }) @@ -297,12 +270,9 @@ describe('create_signing_link', () => { const token = { id: 'tok_1', type: 'api', - signature_request_url: - 'https://app.docspring.com/signature_requests/srq_1?x', + signature_request_url: 'https://app.docspring.com/signature_requests/srq_1?x', } - nock(API) - .post('/api/v2/signature_requests/srq_1/tokens', { type: 'api' }) - .reply(201, token) + nock(API).post('/api/v2/signature_requests/srq_1/tokens', { type: 'api' }).reply(201, token) const result = await appTester(op.perform, { authData, inputData: { signature_request_id: 'srq_1', type: 'api' }, @@ -325,26 +295,23 @@ describe('create_signing_link', () => { describe('IDs in paths', () => { // `..` would move the request up a level: Expire Submission with the ID // `..` would send DELETE /api/v2/ (and `../templates/tpl_1` is encoded). - it.each(['..', '.', ' .. '])( - 'rejects %p as an ID before sending anything', - async (id) => { - const error = await errorFrom( - appTester(App.creates.expire_submission.operation.perform, { - authData, - inputData: { submission_id: id }, - }) - ) - expect(error.message).toBe(`"${id.trim()}" isn't a valid ID.`) - expect(error.code).toBe('InvalidInput') - } - ) + it.each(['..', '.', ' .. '])('rejects %p as an ID before sending anything', async (id) => { + const error = await errorFrom( + appTester(App.creates.expire_submission.operation.perform, { + authData, + inputData: { submission_id: id }, + }), + ) + expect(error.message).toBe(`"${id.trim()}" isn't a valid ID.`) + expect(error.code).toBe('InvalidInput') + }) it('rejects a blank ID instead of sending a request to the list path', async () => { const error = await errorFrom( appTester(App.searches.get_submission.operation.perform, { authData, inputData: { submission_id: ' ' }, - }) + }), ) expect(error.message).toBe('An ID is blank.') }) diff --git a/test/creates/templates.test.js b/test/creates/templates.test.js index b93f174..8994cf3 100644 --- a/test/creates/templates.test.js +++ b/test/creates/templates.test.js @@ -9,17 +9,24 @@ const { SYNC, fakeClock, errorFrom, + saveBody, } = require('../helpers') const create = (key) => App.creates[key].operation -function capture(scope, method, path) { - const seen = {} - scope[method](path, (b) => { - seen.body = b - return true - }) - return seen +// A PDF File whose download takes 20 seconds, and a template whose PDF stays pending: for the tests that check the +// download counts against Zapier's 30 seconds. +function slowDownloadThenPendingPdf(clock) { + nock('https://zapier-files.example.com') + .get('/hydrated/slow') + .reply(() => { + clock.now += 20000 + return [200, Buffer.from('%PDF-1.7 test')] + }) + nock(API) + .get('/api/v2/templates/tpl_1') + .times(20) + .reply(200, { id: 'tpl_1', document: { state: 'pending' } }) } describe('create_template', () => { @@ -105,20 +112,11 @@ describe('create_template', () => { // from the start of the step, not from after the download. it('counts the PDF File download against the wait', async () => { const clock = fakeClock() - nock('https://zapier-files.example.com') - .get('/hydrated/slow') - .reply(() => { - clock.now += 20000 - return [200, Buffer.from('%PDF-1.7 test')] - }) + slowDownloadThenPendingPdf(clock) nock(SYNC) .post('/api/v2/templates') .query(true) .reply(201, { id: 'tpl_1', document: { state: 'pending' } }) - nock(API) - .get('/api/v2/templates/tpl_1') - .times(20) - .reply(200, { id: 'tpl_1', document: { state: 'pending' } }) const error = await errorFrom( appTester(create('create_template').perform, { @@ -127,10 +125,10 @@ describe('create_template', () => { name: 'Lease', document_file: 'https://zapier-files.example.com/hydrated/slow', }, - }) + }), ) expect(error.message).toBe( - "The template's PDF wasn't ready in time. Get the template later with Get Template (tpl_1)." + "The template's PDF wasn't ready in time. Get the template later with Get Template (tpl_1).", ) expect(clock.now).toBeLessThanOrEqual(25000) }) @@ -151,10 +149,10 @@ describe('create_template', () => { name: 'Lease', document_file: 'https://zapier-files.example.com/hydrated/slower', }, - }) + }), ) expect(error.message).toBe( - 'The PDF File took too long to download, so nothing was created. Run the step again, or use PDF URL.' + 'The PDF File took too long to download, so nothing was created. Run the step again, or use PDF URL.', ) }) @@ -203,10 +201,10 @@ describe('create_template', () => { name: 'Lease', document_url: 'https://example.com/missing.pdf', }, - }) + }), ) expect(error.message).toBe( - "The template's PDF couldn't be processed (state: download_failed): The URL returned a 404\nTemplate: tpl_1" + "The template's PDF couldn't be processed (state: download_failed): The URL returned a 404\nTemplate: tpl_1", ) }) @@ -215,7 +213,7 @@ describe('create_template', () => { appTester(create('create_template').perform, { authData, inputData: { name: 'Lease' }, - }) + }), ) expect(none.message).toBe('A PDF template needs a PDF URL or a PDF File.') const both = await errorFrom( @@ -226,7 +224,7 @@ describe('create_template', () => { document_url: 'https://a/x.pdf', document_file: 'https://b/y', }, - }) + }), ) expect(both.message).toBe('Use PDF URL or PDF File, not both.') }) @@ -261,20 +259,11 @@ describe('replace_template_pdf', () => { }) it('counts the PDF File download against the wait for a new PDF too', async () => { const clock = fakeClock() - nock('https://zapier-files.example.com') - .get('/hydrated/slow') - .reply(() => { - clock.now += 20000 - return [200, Buffer.from('%PDF-1.7 test')] - }) + slowDownloadThenPendingPdf(clock) nock(SYNC) .put('/api/v2/templates/tpl_1/document') .query(true) .reply(200, { id: 'tpl_1', document: { state: 'pending' } }) - nock(API) - .get('/api/v2/templates/tpl_1') - .times(20) - .reply(200, { id: 'tpl_1', document: { state: 'pending' } }) const error = await errorFrom( appTester(create('replace_template_pdf').perform, { @@ -283,7 +272,7 @@ describe('replace_template_pdf', () => { template_id: 'tpl_1', document_file: 'https://zapier-files.example.com/hydrated/slow', }, - }) + }), ) expect(error.message).toMatch(/^The template's PDF wasn't ready in time/) expect(clock.now).toBeLessThanOrEqual(25000) @@ -295,7 +284,10 @@ describe('copy, move and publish', () => { const scope = nock(API) const bodies = [] scope - .post('/api/v2/templates/tpl_1/copy', (b) => bodies.push(b)) + .post( + '/api/v2/templates/tpl_1/copy', + saveBody((b) => bodies.push(b)), + ) .times(3) .reply(201, { id: 'tpl_2' }) for (const folder of ['', 'root', 'fld_1']) { @@ -318,7 +310,10 @@ describe('copy, move and publish', () => { it('moves to a folder, or to the root with null', async () => { const bodies = [] nock(API) - .post('/api/v2/templates/tpl_1/move', (b) => bodies.push(b)) + .post( + '/api/v2/templates/tpl_1/move', + saveBody((b) => bodies.push(b)), + ) .times(3) .reply(200, { id: 'tpl_1' }) for (const folder of ['fld_1', '', 'root']) { @@ -383,7 +378,7 @@ describe('template fields', () => { appTester(create('add_template_fields').perform, { authData, inputData: { template_id: 'tpl_1', fields: '{"name": "x"}' }, - }) + }), ) expect(error.message).toBe('Fields must be a JSON list ([...]).') }) @@ -400,9 +395,7 @@ describe('template fields', () => { authData, inputData: { template_id: 'tpl_1' }, }) - expect(input.choices).toEqual([ - { value: '7', sample: '7', label: 'first_name (page 1, ID 7)' }, - ]) + expect(input.choices).toEqual([{ value: '7', sample: '7', label: 'first_name (page 1, ID 7)' }]) const scope = nock(API) .post('/api/v2/templates/tpl_1/fields/remove', { field_ids: [7, 8] }) @@ -419,7 +412,10 @@ describe('create_folder', () => { it('creates a folder in a parent folder, or at the top level', async () => { const bodies = [] nock(API) - .post('/api/v2/folders', (b) => bodies.push(b)) + .post( + '/api/v2/folders', + saveBody((b) => bodies.push(b)), + ) .times(2) .reply(201, { id: 'fld_2', name: 'Leases' }) await appTester(create('create_folder').perform, { @@ -430,9 +426,6 @@ describe('create_folder', () => { authData, inputData: { name: 'Leases', parent_folder_id: 'root' }, }) - expect(bodies).toEqual([ - { name: 'Leases', parent_folder_id: 'fld_1' }, - { name: 'Leases' }, - ]) + expect(bodies).toEqual([{ name: 'Leases', parent_folder_id: 'fld_1' }, { name: 'Leases' }]) }) }) diff --git a/test/helpers.js b/test/helpers.js index e6a8488..16bdb3b 100644 --- a/test/helpers.js +++ b/test/helpers.js @@ -24,8 +24,7 @@ function runWithCursor(perform, bundle, store) { const cursor = { get: async () => store.cursor || null, set: async (value) => { - if (typeof value !== 'string') - throw new TypeError('cursor value must be a string') + if (typeof value !== 'string') throw new TypeError('cursor value must be a string') store.cursor = value }, } @@ -65,15 +64,23 @@ async function errorFrom(promise) { } catch (e) { try { return JSON.parse(e.message) - } catch (_e) { + } catch { return { message: e.message, name: e.name } } } throw new Error('Expected the promise to reject') } +// A nock body matcher that matches any body and hands it to `save`, so a test can check what was sent: +// `.post(path, saveBody((b) => (body = b)))`. +const saveBody = (save) => (b) => { + save(b) + return true +} + module.exports = { App, + saveBody, appTester, authData, API, diff --git a/test/index.test.js b/test/index.test.js index 5a79cf3..57de996 100644 --- a/test/index.test.js +++ b/test/index.test.js @@ -12,9 +12,7 @@ function sourceFiles(dir) { return fs.readdirSync(dir, { withFileTypes: true }).flatMap((entry) => { const full = path.join(dir, entry.name) if (entry.isDirectory()) { - return ['node_modules', 'test', '.git', 'build'].includes(entry.name) - ? [] - : sourceFiles(full) + return ['node_modules', 'test', '.git', 'build'].includes(entry.name) ? [] : sourceFiles(full) } return entry.name.endsWith('.js') ? [full] : [] }) @@ -29,7 +27,7 @@ describe('app definition', () => { it('never calls API v1', () => { const offenders = sourceFiles(ROOT).filter((file) => - fs.readFileSync(file, 'utf8').includes('/api/v1') + fs.readFileSync(file, 'utf8').includes('/api/v1'), ) expect(offenders).toEqual([]) }) @@ -62,7 +60,7 @@ describe('app definition', () => { 'update_template_fields', 'remove_template_fields', 'create_folder', - ].sort() + ].sort(), ) expect(Object.keys(App.searches).sort()).toEqual( [ @@ -76,7 +74,7 @@ describe('app definition', () => { 'list_template_fields', 'get_template_page_images', 'list_folders', - ].sort() + ].sort(), ) expect(App.searchOrCreates.list_folders).toMatchObject({ search: 'list_folders', @@ -111,21 +109,18 @@ describe('app definition', () => { 'folder.created', 'folder.updated', 'folder.deleted', - ].sort() + ].sort(), ) EVENT_TYPES.forEach((eventType) => { expect(App.triggers[eventType.replace('.', '_')]).toBeDefined() }) const hidden = Object.values(App.triggers).filter((t) => t.display.hidden) - expect(hidden.map((t) => t.key).sort()).toEqual([ - 'folder_choices', - 'template_choices', - ]) + expect(hidden.map((t) => t.key).sort()).toEqual(['folder_choices', 'template_choices']) }) it('never says "data request" or "UID" to users', () => { const userText = JSON.stringify(App, (key, value) => - typeof value === 'function' ? undefined : value + typeof value === 'function' ? undefined : value, ) expect(userText).not.toMatch(/data request/i) expect(userText).not.toMatch(/\bUID\b/) @@ -135,11 +130,7 @@ describe('app definition', () => { it('links every required auth field to where its value is found (D002)', () => { const markdownLink = /\[[^\]]+\]\(https:\/\/[^)\s]+\)/ const required = App.authentication.fields.filter((f) => f.required) - expect(required.map((f) => f.key)).toEqual([ - 'region', - 'token_id', - 'token_secret', - ]) + expect(required.map((f) => f.key)).toEqual(['region', 'token_id', 'token_secret']) for (const field of required) { expect(field.helpText).toMatch(markdownLink) } diff --git a/test/lib/middleware.test.js b/test/lib/middleware.test.js index 4693cf4..46810e0 100644 --- a/test/lib/middleware.test.js +++ b/test/lib/middleware.test.js @@ -29,8 +29,7 @@ describe('addBaseUrlAndAuth', () => { }) it('leaves full sync host URLs as they are, and authenticates them', () => { - const url = - 'https://sync.api-eu.docspring.com/api/v2/templates/tpl_1/submissions' + const url = 'https://sync.api-eu.docspring.com/api/v2/templates/tpl_1/submissions' const req = addBaseUrlAndAuth({ url }, z, bundle) expect(req.url).toBe(url) expect(req.headers.Authorization).toBe(BASIC) @@ -46,7 +45,7 @@ describe('addBaseUrlAndAuth', () => { const req = addBaseUrlAndAuth( { url: 'https://files.example.com/form.pdf', headers: {} }, z, - bundle + bundle, ) expect(req.headers.Authorization).toBeUndefined() expect(req.headers['User-Agent']).toBeUndefined() @@ -54,7 +53,7 @@ describe('addBaseUrlAndAuth', () => { const us = addBaseUrlAndAuth( { url: 'https://api.docspring.com/api/v2/x', headers: {} }, z, - bundle + bundle, ) expect(us.headers.Authorization).toBeUndefined() }) @@ -70,7 +69,7 @@ describe('addBaseUrlAndAuth', () => { }, }, z, - bundle + bundle, ) expect(req.headers).toEqual({ Authorization: BASIC, @@ -82,11 +81,7 @@ describe('addBaseUrlAndAuth', () => { }) describe('checkForErrors', () => { - const res = ( - status, - data, - url = 'https://api-eu.docspring.com/api/v2/x' - ) => ({ + const res = (status, data, url = 'https://api-eu.docspring.com/api/v2/x') => ({ status, data, content: data === undefined ? '' : JSON.stringify(data), @@ -99,26 +94,22 @@ describe('checkForErrors', () => { }) it('shows the code, message, each detail, the record and the request ID', () => { - const body = apiError( - 'invalid_data', - "The data doesn't match the template's fields", - { - details: [ - { - code: 'required', - message: 'is required', - pointer: '/data/last_name', - }, - { - code: 'type', - message: 'must be a boolean', - parameter: 'include_data', - }, - { code: 'other', message: 'something about the whole request' }, - ], - submission_id: 'sub_1', - } - ) + const body = apiError('invalid_data', "The data doesn't match the template's fields", { + details: [ + { + code: 'required', + message: 'is required', + pointer: '/data/last_name', + }, + { + code: 'type', + message: 'must be a boolean', + parameter: 'include_data', + }, + { code: 'other', message: 'something about the whole request' }, + ], + submission_id: 'sub_1', + }) expect(() => checkForErrors(res(422, body), z, bundle)).toThrow( [ "DocSpring API error 422 invalid_data: The data doesn't match the template's fields", @@ -127,7 +118,7 @@ describe('checkForErrors', () => { 'something about the whole request', 'Submission: sub_1', 'Request ID: req_1234567890abcdef01', - ].join('\n') + ].join('\n'), ) }) @@ -142,7 +133,7 @@ describe('checkForErrors', () => { const body = apiError( 'invalid_request', "Invalid request: /data/a is required; wait must be a boolean; the request body isn't valid JSON (and 2 more)", - { details } + { details }, ) expect(() => checkForErrors(res(422, body), z, bundle)).toThrow( [ @@ -150,7 +141,7 @@ describe('checkForErrors', () => { '/data/d: is required', '/data/e: is required', 'Request ID: req_1234567890abcdef01', - ].join('\n') + ].join('\n'), ) }) @@ -168,7 +159,7 @@ describe('checkForErrors', () => { }, ], submission_batch_id: 'sbb_1', - } + }, ) expect(() => checkForErrors(res(422, body), z, bundle)).toThrow( [ @@ -176,23 +167,19 @@ describe('checkForErrors', () => { '/submissions/1/data/a: is required (Submission: sub_2)', 'Submission batch: sbb_1', 'Request ID: req_1234567890abcdef01', - ].join('\n') + ].join('\n'), ) }) it('never shows [object Object]', () => { let message try { - checkForErrors( - res(404, apiError('not_found', 'Submission not found')), - z, - bundle - ) + checkForErrors(res(404, apiError('not_found', 'Submission not found')), z, bundle) } catch (e) { message = e.message } expect(message).toBe( - 'DocSpring API error 404 not_found: Submission not found\nRequest ID: req_1234567890abcdef01' + 'DocSpring API error 404 not_found: Submission not found\nRequest ID: req_1234567890abcdef01', ) expect(message).not.toMatch(/object Object/) }) @@ -203,16 +190,16 @@ describe('checkForErrors', () => { 'Timed out waiting for the submission to be processed.', { submission_id: 'sub_9', - } + }, ) expect(() => checkForErrors(res(504, body), z, bundle)).toThrow( - "The PDF wasn't ready in time. Get it later with Get Submission (sub_9), or use the submission.processed trigger." + "The PDF wasn't ready in time. Get it later with Get Submission (sub_9), or use the submission.processed trigger.", ) const combined = apiError('polling_timeout', 'Timed out.', { combined_pdf_id: 'com_9', }) expect(() => checkForErrors(res(504, combined), z, bundle)).toThrow( - /Get Combined PDF \(com_9\)/ + /Get Combined PDF \(com_9\)/, ) }) @@ -223,7 +210,7 @@ describe('checkForErrors', () => { request: { url: 'https://api-eu.docspring.com/api/v2/x' }, } expect(() => checkForErrors(response, z, bundle)).toThrow( - 'DocSpring API error 502: Bad Gateway' + 'DocSpring API error 502: Bad Gateway', ) }) @@ -235,16 +222,14 @@ describe('checkForErrors', () => { describe('errors from a real request', () => { it('throw for an ordinary request (the platform flag no longer hides them)', async () => { - nock(API) - .get('/api/v2/templates/tpl_x') - .reply(404, apiError('not_found', 'Template not found')) + nock(API).get('/api/v2/templates/tpl_x').reply(404, apiError('not_found', 'Template not found')) const error = await errorFrom( appTester(async (zz) => zz.request({ url: '/api/v2/templates/tpl_x' }), { authData, - }) + }), ) expect(error.message).toBe( - 'DocSpring API error 404 not_found: Template not found\nRequest ID: req_1234567890abcdef01' + 'DocSpring API error 404 not_found: Template not found\nRequest ID: req_1234567890abcdef01', ) }) }) diff --git a/test/lib/payload.test.js b/test/lib/payload.test.js index ac59fde..92c51fa 100644 --- a/test/lib/payload.test.js +++ b/test/lib/payload.test.js @@ -17,9 +17,7 @@ const delivery = { describe('eventFromDelivery', () => { it('keeps the event ID as the top-level (dedup) id', () => { - expect(eventFromDelivery(delivery).id).toBe( - '6f1c2e8a-3b4d-4c5e-9f60-7a8b9c0d1e2f' - ) + expect(eventFromDelivery(delivery).id).toBe('6f1c2e8a-3b4d-4c5e-9f60-7a8b9c0d1e2f') }) it('adds resource_type and resource_id without touching the event or the resource', () => { @@ -36,7 +34,7 @@ describe('eventFromDelivery', () => { ...delivery, event_type: 'signature_request.completed', data: { id: 'srq_1' }, - }) + }), ).toMatchObject({ resource_type: 'signature_request', resource_id: 'srq_1', @@ -46,7 +44,7 @@ describe('eventFromDelivery', () => { ...delivery, event_type: 'combined_pdf.failed', data: { id: 'com_1' }, - }).resource_type + }).resource_type, ).toBe('combined_pdf') }) diff --git a/test/lib/regions.test.js b/test/lib/regions.test.js index 1a55b2c..2fb47e1 100644 --- a/test/lib/regions.test.js +++ b/test/lib/regions.test.js @@ -18,43 +18,37 @@ describe('resolveBaseUrl', () => { }) it('uses the normalized custom host for self-hosted', () => { - expect( - resolveBaseUrl(bundleFor('self_hosted', 'docspring.example.com')) - ).toBe('https://docspring.example.com') - expect( - resolveBaseUrl(bundleFor('self_hosted', 'http://localhost:3000/')) - ).toBe('http://localhost:3000') + expect(resolveBaseUrl(bundleFor('self_hosted', 'docspring.example.com'))).toBe( + 'https://docspring.example.com', + ) + expect(resolveBaseUrl(bundleFor('self_hosted', 'http://localhost:3000/'))).toBe( + 'http://localhost:3000', + ) }) it('throws a clear error when self-hosted host is missing', () => { - expect(() => resolveBaseUrl(bundleFor('self_hosted', ''))).toThrow( - /custom host is required/i - ) + expect(() => resolveBaseUrl(bundleFor('self_hosted', ''))).toThrow(/custom host is required/i) }) it('rejects a self-hosted host that is not a plain host[:port]', () => { - expect(() => - resolveBaseUrl(bundleFor('self_hosted', 'docspring.example.com/api')) - ).toThrow(/invalid self-hosted host/i) - expect(() => - resolveSyncBaseUrl(bundleFor('self_hosted', 'https://evil.com/?next=')) - ).toThrow(/invalid self-hosted host/i) + expect(() => resolveBaseUrl(bundleFor('self_hosted', 'docspring.example.com/api'))).toThrow( + /invalid self-hosted host/i, + ) + expect(() => resolveSyncBaseUrl(bundleFor('self_hosted', 'https://evil.com/?next='))).toThrow( + /invalid self-hosted host/i, + ) }) }) describe('resolveSyncBaseUrl', () => { it('maps each region to its sync host', () => { - expect(resolveSyncBaseUrl(bundleFor('us'))).toBe( - 'https://sync.api.docspring.com' - ) - expect(resolveSyncBaseUrl(bundleFor('eu'))).toBe( - 'https://sync.api-eu.docspring.com' - ) + expect(resolveSyncBaseUrl(bundleFor('us'))).toBe('https://sync.api.docspring.com') + expect(resolveSyncBaseUrl(bundleFor('eu'))).toBe('https://sync.api-eu.docspring.com') }) it('falls back to the single custom origin for self-hosted', () => { - expect( - resolveSyncBaseUrl(bundleFor('self_hosted', 'docspring.example.com')) - ).toBe('https://docspring.example.com') + expect(resolveSyncBaseUrl(bundleFor('self_hosted', 'docspring.example.com'))).toBe( + 'https://docspring.example.com', + ) }) }) diff --git a/test/lib/samples.test.js b/test/lib/samples.test.js index ee92618..27e3bbb 100644 --- a/test/lib/samples.test.js +++ b/test/lib/samples.test.js @@ -165,11 +165,9 @@ const FIELD_KEYS = [ describe('samples', () => { it('Template samples have every key TemplateSummary and Template require', () => { - expect(Object.keys(template.sample).sort()).toEqual( - [...TEMPLATE_SUMMARY_KEYS].sort() - ) + expect(Object.keys(template.sample).sort()).toEqual([...TEMPLATE_SUMMARY_KEYS].sort()) expect(Object.keys(template.fullSample).sort()).toEqual( - [...TEMPLATE_SUMMARY_KEYS, ...TEMPLATE_EXTRA_KEYS].sort() + [...TEMPLATE_SUMMARY_KEYS, ...TEMPLATE_EXTRA_KEYS].sort(), ) }) diff --git a/test/lib/templates.test.js b/test/lib/templates.test.js index 3746fd7..c0986cc 100644 --- a/test/lib/templates.test.js +++ b/test/lib/templates.test.js @@ -1,9 +1,6 @@ 'use strict' -const { - jsonSchemaToZapierFields, - dataFromInputs, -} = require('../../lib/templates') +const { jsonSchemaToZapierFields, dataFromInputs } = require('../../lib/templates') const z = { errors: { @@ -82,7 +79,7 @@ describe('jsonSchemaToZapierFields', () => { 'data_json__items', 'data_image__logo', 'data_image__signature', - ].sort() + ].sort(), ) }) @@ -146,8 +143,7 @@ describe('dataFromInputs', () => { data__address: { city: 'Auckland' }, data_json__items: '[{"price": 9.5}]', data_image__logo: 'https://example.com/logo.png', - data_image__signature: - '{"text": {"name": "Jane Doe", "typeface": "Caveat"}}', + data_image__signature: '{"text": {"name": "Jane Doe", "typeface": "Caveat"}}', }) expect(data).toEqual({ full_name: 'Jane', @@ -162,8 +158,6 @@ describe('dataFromInputs', () => { }) it('reports JSON it cannot read', () => { - expect(() => dataFromInputs(z, { data_json__items: '[{' })).toThrow( - /items must be valid JSON/ - ) + expect(() => dataFromInputs(z, { data_json__items: '[{' })).toThrow(/items must be valid JSON/) }) }) diff --git a/test/lib/util.test.js b/test/lib/util.test.js index 90f3751..25f9fc9 100644 --- a/test/lib/util.test.js +++ b/test/lib/util.test.js @@ -13,20 +13,14 @@ describe('normalizeHost', () => { }) it('accepts a bare domain and defaults to https', () => { - expect(normalizeHost('docspring.example.com')).toBe( - 'https://docspring.example.com' - ) - expect(normalizeHost(' DocSpring.Example.com/ ')).toBe( - 'https://DocSpring.Example.com' - ) + expect(normalizeHost('docspring.example.com')).toBe('https://docspring.example.com') + expect(normalizeHost(' DocSpring.Example.com/ ')).toBe('https://DocSpring.Example.com') }) it('preserves an explicit scheme and port, stripping trailing slashes', () => { - expect(normalizeHost('http://localhost:3000/')).toBe( - 'http://localhost:3000' - ) + expect(normalizeHost('http://localhost:3000/')).toBe('http://localhost:3000') expect(normalizeHost('https://docspring.example.com:8443//')).toBe( - 'https://docspring.example.com:8443' + 'https://docspring.example.com:8443', ) expect(normalizeHost('10.0.0.5:8080')).toBe('https://10.0.0.5:8080') }) @@ -80,7 +74,7 @@ describe('toBoolean', () => { it("rejects what isn't a yes or no", () => { expect(() => toBoolean(z, 'maybe', 'Test PDF?')).toThrow( - 'Test PDF? must be true or false, not "maybe".' + 'Test PDF? must be true or false, not "maybe".', ) }) }) @@ -94,7 +88,7 @@ describe('toInteger', () => { it("rejects what isn't a whole number", () => { expect(() => toInteger(z, '1.5', 'Expires In')).toThrow( - 'Expires In must be a whole number, not "1.5".' + 'Expires In must be a whole number, not "1.5".', ) expect(() => toInteger(z, 'soon', 'Expires In')).toThrow(/whole number/) }) @@ -110,23 +104,22 @@ describe('parseJson', () => { }) it('rejects invalid JSON and the wrong kind of value', () => { - expect(() => parseJson(z, '{nope', 'Metadata')).toThrow( - /Metadata must be valid JSON/ - ) - expect(() => parseJson(z, '[1]', 'Metadata')).toThrow( - 'Metadata must be a JSON object ({...}).' - ) + expect(() => parseJson(z, '{nope', 'Metadata')).toThrow(/Metadata must be valid JSON/) + expect(() => parseJson(z, '[1]', 'Metadata')).toThrow('Metadata must be a JSON object ({...}).') expect(() => parseJson(z, '{"a": 1}', 'Fields', 'array')).toThrow( - 'Fields must be a JSON list ([...]).' + 'Fields must be a JSON list ([...]).', ) }) }) describe('splitNames', () => { it('splits entries on commas and new lines, trims and dedupes', () => { - expect( - splitNames(['first_name, last_name', 'signature\ndate', 'first_name', '']) - ).toEqual(['first_name', 'last_name', 'signature', 'date']) + expect(splitNames(['first_name, last_name', 'signature\ndate', 'first_name', ''])).toEqual([ + 'first_name', + 'last_name', + 'signature', + 'date', + ]) expect(splitNames('')).toEqual([]) }) }) @@ -155,10 +148,7 @@ describe('seg', () => { // A URL treats `.` and `..` as "this folder" and "the folder above", so // encoding can't keep them in their segment. - it.each(['.', '..', ' .. ', ''])( - 'rejects %p before it reaches a URL', - (id) => { - expect(() => seg(id)).toThrow(/ID/) - } - ) + it.each(['.', '..', ' .. ', ''])('rejects %p before it reaches a URL', (id) => { + expect(() => seg(id)).toThrow(/ID/) + }) }) diff --git a/test/searches/searches.test.js b/test/searches/searches.test.js index fd4db55..f6b5e92 100644 --- a/test/searches/searches.test.js +++ b/test/searches/searches.test.js @@ -1,71 +1,36 @@ 'use strict' const nock = require('nock') -const { - App, - appTester, - authData, - API, - apiError, - errorFrom, -} = require('../helpers') +const { App, appTester, authData, API, apiError, errorFrom } = require('../helpers') const search = (key) => App.searches[key].operation describe('get-by-ID searches', () => { it.each([ ['get_submission', 'submission_id', 'sub_1', '/api/v2/submissions/sub_1'], - [ - 'get_submission_batch', - 'submission_batch_id', - 'sbb_1', - '/api/v2/submissions/batches/sbb_1', - ], - [ - 'get_combined_pdf', - 'combined_pdf_id', - 'com_1', - '/api/v2/combined_pdfs/com_1', - ], - [ - 'get_signature_request', - 'signature_request_id', - 'srq_1', - '/api/v2/signature_requests/srq_1', - ], + ['get_submission_batch', 'submission_batch_id', 'sbb_1', '/api/v2/submissions/batches/sbb_1'], + ['get_combined_pdf', 'combined_pdf_id', 'com_1', '/api/v2/combined_pdfs/com_1'], + ['get_signature_request', 'signature_request_id', 'srq_1', '/api/v2/signature_requests/srq_1'], ['get_template', 'template_id', 'tpl_1', '/api/v2/templates/tpl_1'], - [ - 'list_template_fields', - 'template_id', - 'tpl_1', - '/api/v2/templates/tpl_1/fields', - ], - [ - 'get_template_page_images', - 'template_id', - 'tpl_1', - '/api/v2/templates/tpl_1/page_images', - ], - ])( - '%s returns the record from GET %s, and nothing for a 404', - async (key, idKey, id, path) => { - nock(API).get(path).reply(200, { id }) - expect( - await appTester(search(key).perform, { - authData, - inputData: { [idKey]: id }, - }) - ).toEqual([{ id }]) + ['list_template_fields', 'template_id', 'tpl_1', '/api/v2/templates/tpl_1/fields'], + ['get_template_page_images', 'template_id', 'tpl_1', '/api/v2/templates/tpl_1/page_images'], + ])('%s returns the record from GET %s, and nothing for a 404', async (key, idKey, id, path) => { + nock(API).get(path).reply(200, { id }) + expect( + await appTester(search(key).perform, { + authData, + inputData: { [idKey]: id }, + }), + ).toEqual([{ id }]) - nock(API).get(path).reply(404, apiError('not_found', 'Not found')) - expect( - await appTester(search(key).perform, { - authData, - inputData: { [idKey]: id }, - }) - ).toEqual([]) - } - ) + nock(API).get(path).reply(404, apiError('not_found', 'Not found')) + expect( + await appTester(search(key).perform, { + authData, + inputData: { [idKey]: id }, + }), + ).toEqual([]) + }) it('still reports errors other than a 404', async () => { nock(API) @@ -75,7 +40,7 @@ describe('get-by-ID searches', () => { appTester(search('get_submission').perform, { authData, inputData: { submission_id: 'sub_1' }, - }) + }), ) expect(error.message).toMatch(/^DocSpring API error 401 unauthorized/) }) @@ -107,9 +72,7 @@ describe('get-by-ID searches', () => { }) it('URL-encodes IDs', async () => { - const scope = nock(API) - .get('/api/v2/submissions/sub_1%2F..%2Fx') - .reply(200, { id: 'x' }) + const scope = nock(API).get('/api/v2/submissions/sub_1%2F..%2Fx').reply(200, { id: 'x' }) await appTester(search('get_submission').perform, { authData, inputData: { submission_id: 'sub_1/../x' }, @@ -232,6 +195,6 @@ describe('list_folders', () => { inputData, }) expect(result.map((f) => f.id)).toEqual(['fld_1']) - } + }, ) }) diff --git a/test/triggers/dropdowns.test.js b/test/triggers/dropdowns.test.js index 273d623..1f37c0a 100644 --- a/test/triggers/dropdowns.test.js +++ b/test/triggers/dropdowns.test.js @@ -21,11 +21,7 @@ describe('template_choices (Template dropdowns)', () => { .query({ limit: '100', cursor: 'tpl_2' }) .reply(200, page(['tpl_3'], null)) - const first = await runWithCursor( - method, - { authData, meta: { page: 0 } }, - cursors - ) + const first = await runWithCursor(method, { authData, meta: { page: 0 } }, cursors) expect(first).toEqual([ { id: 'tpl_1', @@ -40,23 +36,15 @@ describe('template_choices (Template dropdowns)', () => { path: '/Contracts', }, ]) - const second = await runWithCursor( - method, - { authData, meta: { page: 1 } }, - cursors - ) + const second = await runWithCursor(method, { authData, meta: { page: 1 } }, cursors) expect(second.map((t) => t.id)).toEqual(['tpl_3']) // The last page leaves no cursor, so there's no third request. - expect( - await runWithCursor(method, { authData, meta: { page: 2 } }, cursors) - ).toEqual([]) + expect(await runWithCursor(method, { authData, meta: { page: 2 } }, cursors)).toEqual([]) }) it('stops at 1,000 templates', async () => { const cursors = { cursor: 'tpl_1000' } - expect( - await runWithCursor(method, { authData, meta: { page: 10 } }, cursors) - ).toEqual([]) + expect(await runWithCursor(method, { authData, meta: { page: 10 } }, cursors)).toEqual([]) }) }) @@ -82,20 +70,12 @@ describe('folder_choices (Folder dropdowns)', () => { next_cursor: null, }) - const first = await runWithCursor( - method, - { authData, meta: { page: 0 } }, - cursors - ) + const first = await runWithCursor(method, { authData, meta: { page: 0 } }, cursors) expect(first).toEqual([ { id: 'fld_1', label: '/Contracts', name: 'Contracts' }, { id: 'fld_2', label: '/Contracts/2026', name: '2026' }, ]) - const second = await runWithCursor( - method, - { authData, meta: { page: 1 } }, - cursors - ) + const second = await runWithCursor(method, { authData, meta: { page: 1 } }, cursors) expect(second).toEqual([{ id: 'fld_3', label: '/Old', name: 'Old' }]) }) }) diff --git a/test/triggers/scope_fields.test.js b/test/triggers/scope_fields.test.js index 23c5cb5..e4fff6a 100644 --- a/test/triggers/scope_fields.test.js +++ b/test/triggers/scope_fields.test.js @@ -29,14 +29,14 @@ describe('trigger filters match what each webhook event can be scoped by', () => '%s offers template and folder filters (template events have no mode)', (key) => { expect(inputKeys(key)).toEqual(['template_ids', 'folder_ids']) - } + }, ) it.each(['folder_created', 'folder_updated', 'folder_deleted'])( '%s offers only the folder filter', (key) => { expect(inputKeys(key)).toEqual(['folder_ids']) - } + }, ) it.each([ diff --git a/test/triggers/webhooks.test.js b/test/triggers/webhooks.test.js index 68503b0..0a7d80e 100644 --- a/test/triggers/webhooks.test.js +++ b/test/triggers/webhooks.test.js @@ -2,14 +2,7 @@ const crypto = require('crypto') const nock = require('nock') -const { - App, - appTester, - authData, - API, - apiError, - errorFrom, -} = require('../helpers') +const { App, appTester, authData, API, apiError, errorFrom, saveBody } = require('../helpers') const { EVENT_TYPES } = require('../../triggers/webhook_events') const trigger = (key) => App.triggers[key].operation @@ -18,10 +11,10 @@ describe('webhook triggers', () => { it('subscribe with a flat API v2 webhook body: v2 event name, no version, filters; keeps the ID and signing secret', async () => { let body nock(API) - .post('/api/v2/webhooks', (b) => { - body = b - return true - }) + .post( + '/api/v2/webhooks', + saveBody((b) => (body = b)), + ) .reply(201, { id: 'whk_1', version: 4, @@ -29,18 +22,15 @@ describe('webhook triggers', () => { url: 'https://hooks.zapier.com/abc', }) - const subscribeData = await appTester( - trigger('signature_request_completed').performSubscribe, - { - authData, - targetUrl: 'https://hooks.zapier.com/abc', - inputData: { - mode: 'live', - template_ids: ['tpl_1', ''], - folder_ids: '', - }, - } - ) + const subscribeData = await appTester(trigger('signature_request_completed').performSubscribe, { + authData, + targetUrl: 'https://hooks.zapier.com/abc', + inputData: { + mode: 'live', + template_ids: ['tpl_1', ''], + folder_ids: '', + }, + }) expect(body).toEqual({ url: 'https://hooks.zapier.com/abc', @@ -57,10 +47,10 @@ describe('webhook triggers', () => { it.each(EVENT_TYPES)('%s subscribes to its own event', async (eventType) => { let body nock(API) - .post('/api/v2/webhooks', (b) => { - body = b - return true - }) + .post( + '/api/v2/webhooks', + saveBody((b) => (body = b)), + ) .reply(201, { id: 'whk_1' }) await appTester(trigger(eventType.replace('.', '_')).performSubscribe, { authData, @@ -77,14 +67,12 @@ describe('webhook triggers', () => { // Templates, but a subscription must never send one it can't take. it('says which events the Templates filter applies to', () => { const templates = trigger('submission_processed').inputFields.find( - (f) => f.key === 'template_ids' - ) - expect(templates.helpText).toMatch( - /submission, signature request and template events/ + (f) => f.key === 'template_ids', ) + expect(templates.helpText).toMatch(/submission, signature request and template events/) EVENT_TYPES.forEach((eventType) => { const offered = trigger(eventType.replace('.', '_')).inputFields.some( - (f) => f.key === 'template_ids' + (f) => f.key === 'template_ids', ) expect([eventType, offered]).toEqual([ eventType, @@ -99,18 +87,16 @@ describe('webhook triggers', () => { authData, targetUrl: 'https://hooks.zapier.com/x', inputData: { template_ids: ['tpl_1'] }, - }) + }), ) expect(error.message).toBe( 'Templates can only filter submission, signature request and template events, ' + - 'not combined_pdf.processed. Remove the templates.' + 'not combined_pdf.processed. Remove the templates.', ) }) it('unsubscribe deletes the webhook by ID', async () => { - const scope = nock(API) - .delete('/api/v2/webhooks/whk_1') - .reply(200, { id: 'whk_1' }) + const scope = nock(API).delete('/api/v2/webhooks/whk_1').reply(200, { id: 'whk_1' }) await appTester(trigger('submission_processed').performUnsubscribe, { authData, subscribeData: { id: 'whk_1' }, @@ -126,7 +112,7 @@ describe('webhook triggers', () => { appTester(trigger('submission_processed').performUnsubscribe, { authData, subscribeData: { id: 'whk_gone' }, - }) + }), ).resolves.toEqual({}) }) @@ -138,11 +124,9 @@ describe('webhook triggers', () => { appTester(trigger('submission_processed').performUnsubscribe, { authData, subscribeData: { id: 'whk_1' }, - }) - ) - expect(error.message).toMatch( - /^DocSpring API error 401 unauthorized: Invalid API token/ + }), ) + expect(error.message).toMatch(/^DocSpring API error 401 unauthorized: Invalid API token/) }) it('perform outputs the version 4 event with the event ID as `id`, plus resource_type and resource_id', async () => { @@ -160,9 +144,7 @@ describe('webhook triggers', () => { authData, cleanedRequest: delivery, }) - expect(result).toEqual([ - { ...delivery, resource_type: 'combined_pdf', resource_id: 'com_1' }, - ]) + expect(result).toEqual([{ ...delivery, resource_type: 'combined_pdf', resource_id: 'com_1' }]) }) it("performList shows recent submissions as events, with the trigger's filters", async () => { @@ -184,13 +166,10 @@ describe('webhook triggers', () => { ], next_cursor: null, }) - const result = await appTester( - trigger('submission_processed').performList, - { - authData, - inputData: { mode: 'test', template_ids: ['tpl_1'] }, - } - ) + const result = await appTester(trigger('submission_processed').performList, { + authData, + inputData: { mode: 'test', template_ids: ['tpl_1'] }, + }) expect(result).toEqual([ { id: 'sample:submission.processed:sub_1', @@ -236,7 +215,7 @@ describe('webhook triggers', () => { inputData: {}, }) expect(result).toEqual([trigger(key).sample]) - } + }, ) it('every sample is shaped like a delivery for its own event', () => { @@ -259,17 +238,11 @@ describe('webhook triggers', () => { const parsed = JSON.parse(RAW) const T = '1782532874' const sign = (body, secret = SECRET, t = T) => - crypto - .createHmac('sha256', secret) - .update(`${t}.${body}`, 'utf8') - .digest('hex') + crypto.createHmac('sha256', secret).update(`${t}.${body}`, 'utf8').digest('hex') const perform = trigger('submission_processed').perform // Zapier's bundle.rawRequest renames headers: `Http-` + Camel-Case. - const deliver = ( - headers, - content = RAW, - subscribeData = { id: 'whk_1', secret: SECRET } - ) => + /** @param {{ id: string, secret?: string }} [subscribeData] */ + const deliver = (headers, content = RAW, subscribeData = { id: 'whk_1', secret: SECRET }) => appTester(perform, { authData, subscribeData, @@ -281,9 +254,7 @@ describe('webhook triggers', () => { }, cleanedRequest: JSON.parse(content), }) - const expected = [ - { ...parsed, resource_type: 'submission', resource_id: 'sub_1' }, - ] + const expected = [{ ...parsed, resource_type: 'submission', resource_id: 'sub_1' }] // A dropped delivery is logged with z.console (Zapier's monitoring logs). let log @@ -307,18 +278,12 @@ describe('webhook triggers', () => { }) it.each([ - [ - 'a signature made with another secret', - () => `t=${T},v1=${sign(RAW, 'whsec_other')}`, - ], + ['a signature made with another secret', () => `t=${T},v1=${sign(RAW, 'whsec_other')}`], [ 'a signature over the re-serialised body', () => `t=${T},v1=${sign(JSON.stringify(parsed))}`, ], - [ - 'a signature for another timestamp', - () => `t=1782532875,v1=${sign(RAW)}`, - ], + ['a signature for another timestamp', () => `t=1782532875,v1=${sign(RAW)}`], ['no v1', () => `t=${T}`], ['no timestamp', () => `v1=${sign(RAW)}`], ])('drops a delivery with %s', async (_name, header) => { @@ -330,15 +295,12 @@ describe('webhook triggers', () => { expect(await deliver({})).toEqual([]) expect(log).toHaveBeenCalledWith( expect.stringMatching( - /^Dropped a webhook delivery: its X-DocSpring-Signature header is missing or doesn't match its body\./ - ) + /^Dropped a webhook delivery: its X-DocSpring-Signature header is missing or doesn't match its body\./, + ), ) const changed = RAW.replace('processed', 'failed') expect( - await deliver( - { 'Http-X-Docspring-Signature': `t=${T},v1=${sign(RAW)}` }, - changed - ) + await deliver({ 'Http-X-Docspring-Signature': `t=${T},v1=${sign(RAW)}` }, changed), ).toEqual([]) }) diff --git a/triggers/template_choices.js b/triggers/template_choices.js index 561f062..652f5ff 100644 --- a/triggers/template_choices.js +++ b/triggers/template_choices.js @@ -8,8 +8,7 @@ const { pagedDropdown } = require('../lib/dropdowns') // folder so two templates with the same name can be told apart. const toChoice = (template) => { const name = template.name || template.id - const label = - template.path && template.path !== '/' ? `${name} (${template.path})` : name + const label = template.path && template.path !== '/' ? `${name} (${template.path})` : name return { id: template.id, label, name: template.name, path: template.path } } diff --git a/triggers/webhook_events.js b/triggers/webhook_events.js index 26ac325..bada8af 100644 --- a/triggers/webhook_events.js +++ b/triggers/webhook_events.js @@ -8,6 +8,7 @@ const lists = require('../lib/performLists') // webhook-events in the DocSpring docs). Each subscribes a version 4 webhook to // its one event. // [event type, label, description, filters, performList builder] +/** @type {[string, string, string, object[], (eventType: string) => Function][]} */ const EVENTS = [ [ 'submission.created', @@ -189,20 +190,20 @@ const NOUNS = { folder: 'Folder', } -module.exports = EVENTS.map( - ([eventType, label, description, inputFields, performList]) => { - const resourceType = eventType.split('.')[0] - return makeHookTrigger({ - key: eventType.replace('.', '_'), - noun: NOUNS[resourceType], - label, - description, - eventType, - resourceType, - inputFields, - performList: performList(eventType), - }) - } -) +const triggers = EVENTS.map(([eventType, label, description, inputFields, performList]) => { + const resourceType = eventType.split('.')[0] + return makeHookTrigger({ + key: eventType.replace('.', '_'), + noun: NOUNS[resourceType], + label, + description, + eventType, + resourceType, + inputFields, + performList: performList(eventType), + }) +}) -module.exports.EVENT_TYPES = EVENTS.map(([eventType]) => eventType) +module.exports = Object.assign(triggers, { + EVENT_TYPES: EVENTS.map(([eventType]) => eventType), +}) diff --git a/tsconfig.json b/tsconfig.json new file mode 100644 index 0000000..136de4f --- /dev/null +++ b/tsconfig.json @@ -0,0 +1,16 @@ +{ + "compilerOptions": { + "allowJs": true, + "checkJs": true, + "noEmit": true, + "strict": false, + "module": "preserve", + "moduleResolution": "bundler", + "target": "es2022", + "lib": ["es2023"], + "types": ["node", "jest"], + "skipLibCheck": true, + "resolveJsonModule": true + }, + "include": ["*.js", "creates", "lib", "searches", "triggers", "test"] +}