From 5521f876798026f06069ccd2ed5fbc8a4d31945b Mon Sep 17 00:00:00 2001 From: Rostislav Melkumyan Date: Thu, 19 Dec 2024 22:17:17 +0100 Subject: [PATCH] chore(cli): bump template validator (#8115) --- packages/@sanity/cli/package.json | 2 +- .../init-project/bootstrapRemoteTemplate.ts | 17 +- .../@sanity/cli/src/util/remoteTemplate.ts | 40 +---- pnpm-lock.yaml | 166 ++++++++---------- 4 files changed, 90 insertions(+), 135 deletions(-) diff --git a/packages/@sanity/cli/package.json b/packages/@sanity/cli/package.json index 3b3855fdaa7..b6ce624dbc1 100644 --- a/packages/@sanity/cli/package.json +++ b/packages/@sanity/cli/package.json @@ -60,7 +60,7 @@ "@sanity/client": "^6.24.1", "@sanity/codegen": "3.68.2", "@sanity/telemetry": "^0.7.7", - "@sanity/template-validator": "^1.0.2", + "@sanity/template-validator": "^1.2.1", "@sanity/util": "3.68.2", "chalk": "^4.1.2", "debug": "^4.3.4", diff --git a/packages/@sanity/cli/src/actions/init-project/bootstrapRemoteTemplate.ts b/packages/@sanity/cli/src/actions/init-project/bootstrapRemoteTemplate.ts index 4f0aff7ddad..e036924827d 100644 --- a/packages/@sanity/cli/src/actions/init-project/bootstrapRemoteTemplate.ts +++ b/packages/@sanity/cli/src/actions/init-project/bootstrapRemoteTemplate.ts @@ -1,6 +1,7 @@ import {mkdir} from 'node:fs/promises' import {join} from 'node:path' +import {getMonoRepo, GitHubFileReader, validateTemplate} from '@sanity/template-validator' import {type Framework, frameworks} from '@vercel/frameworks' import {detectFrameworkRecord, LocalFileSystemDetector} from '@vercel/fs-detectors' @@ -12,11 +13,10 @@ import { checkNeedsReadToken, downloadAndExtractRepo, generateSanityApiReadToken, - getPackages, + getGitHubRawContentUrl, type RepoInfo, setCorsOrigin, tryApplyPackageName, - validateRemoteTemplate, } from '../../util/remoteTemplate' import {type GenerateConfigOptions} from './createStudioConfig' import {tryGitInit} from './git' @@ -39,11 +39,20 @@ export async function bootstrapRemoteTemplate( const {outputPath, repoInfo, bearerToken, variables, packageName} = opts const {output, apiClient} = context const name = [repoInfo.username, repoInfo.name, repoInfo.filePath].filter(Boolean).join('/') + const contentsUrl = getGitHubRawContentUrl(repoInfo) + const headers: Record = {} + if (bearerToken) { + headers.Authorization = `Bearer ${bearerToken}` + } const spinner = output.spinner(`Bootstrapping files from template "${name}"`).start() debug('Validating remote template') - const packages = await getPackages(repoInfo, bearerToken) - await validateRemoteTemplate(repoInfo, packages, bearerToken) + const fileReader = new GitHubFileReader(contentsUrl, headers) + const packages = await getMonoRepo(fileReader) + const validation = await validateTemplate(fileReader, packages) + if (!validation.isValid) { + throw new Error(validation.errors.join('\n')) + } debug('Create new directory "%s"', outputPath) await mkdir(outputPath, {recursive: true}) diff --git a/packages/@sanity/cli/src/util/remoteTemplate.ts b/packages/@sanity/cli/src/util/remoteTemplate.ts index 0995ccaacdd..b42b153dbfc 100644 --- a/packages/@sanity/cli/src/util/remoteTemplate.ts +++ b/packages/@sanity/cli/src/util/remoteTemplate.ts @@ -4,12 +4,7 @@ import {Readable} from 'node:stream' import {pipeline} from 'node:stream/promises' import {type ReadableStream} from 'node:stream/web' -import { - ENV_TEMPLATE_FILES, - getMonoRepo, - REQUIRED_ENV_VAR, - validateSanityTemplate, -} from '@sanity/template-validator' +import {ENV_TEMPLATE_FILES, REQUIRED_ENV_VAR} from '@sanity/template-validator' import {x} from 'tar' import {debug} from '../debug' @@ -42,7 +37,7 @@ export type RepoInfo = { filePath: string } -function getGitHubRawContentUrl(repoInfo: RepoInfo): string { +export function getGitHubRawContentUrl(repoInfo: RepoInfo): string { const {username, name, branch, filePath} = repoInfo return `https://raw.githubusercontent.com/${username}/${name}/${branch}/${filePath}` } @@ -196,37 +191,6 @@ export async function downloadAndExtractRepo( ) } -/** - * Checks if a GitHub repository is a monorepo by examining common monorepo configuration files. - * Supports pnpm workspaces, Lerna, Rush, and npm workspaces (package.json). - * @returns Promise that resolves to an array of package paths/names if monorepo is detected, undefined otherwise - */ -export async function getPackages( - repoInfo: RepoInfo, - bearerToken?: string, -): Promise { - const headers: Record = {} - if (bearerToken) { - headers.Authorization = `Bearer ${bearerToken}` - } - return getMonoRepo(getGitHubRawContentUrl(repoInfo), headers) -} - -export async function validateRemoteTemplate( - repoInfo: RepoInfo, - packages: string[] = [''], - bearerToken?: string, -): Promise { - const headers: Record = {} - if (bearerToken) { - headers.Authorization = `Bearer ${bearerToken}` - } - const result = await validateSanityTemplate(getGitHubRawContentUrl(repoInfo), packages, headers) - if (!result.isValid) { - throw new Error(result.errors.join('\n')) - } -} - export async function checkNeedsReadToken(root: string): Promise { try { const templatePath = await Promise.any( diff --git a/pnpm-lock.yaml b/pnpm-lock.yaml index d9d899e0d93..ae0a173c785 100644 --- a/pnpm-lock.yaml +++ b/pnpm-lock.yaml @@ -521,7 +521,7 @@ importers: version: link:../../packages/@sanity/migrate '@sanity/preview-url-secret': specifier: ^2.0.0 - version: 2.0.5(@sanity/client@6.24.1(debug@4.4.0)) + version: 2.0.5(@sanity/client@6.24.1) '@sanity/react-loader': specifier: ^1.8.3 version: 1.10.30(react@18.3.1) @@ -802,7 +802,7 @@ importers: dependencies: '@babel/traverse': specifier: ^7.23.5 - version: 7.26.4 + version: 7.26.4(supports-color@5.5.0) '@sanity/client': specifier: ^6.24.1 version: 6.24.1(debug@4.4.0) @@ -813,8 +813,8 @@ importers: specifier: ^0.7.7 version: 0.7.9(react@19.0.0-rc-f994737d14-20240522) '@sanity/template-validator': - specifier: ^1.0.2 - version: 1.0.3(@types/babel__core@7.20.5)(@types/node@22.10.2)(debug@4.4.0) + specifier: ^1.2.1 + version: 1.2.1(@types/babel__core@7.20.5)(@types/node@22.10.2)(debug@4.4.0) '@sanity/util': specifier: 3.68.2 version: link:../util @@ -823,7 +823,7 @@ importers: version: 4.1.2 debug: specifier: ^4.3.4 - version: 4.4.0(supports-color@9.4.0) + version: 4.4.0(supports-color@5.5.0) decompress: specifier: ^4.2.0 version: 4.2.1 @@ -1034,13 +1034,13 @@ importers: version: 7.25.9(@babel/core@7.26.0) '@babel/traverse': specifier: ^7.23.5 - version: 7.26.4 + version: 7.26.4(supports-color@5.5.0) '@babel/types': specifier: ^7.23.9 version: 7.26.3 debug: specifier: ^4.3.4 - version: 4.4.0(supports-color@9.4.0) + version: 4.4.0(supports-color@5.5.0) globby: specifier: ^11.1.0 version: 11.1.0 @@ -1120,7 +1120,7 @@ importers: version: 2.0.1 debug: specifier: ^4.3.4 - version: 4.4.0(supports-color@9.4.0) + version: 4.4.0(supports-color@5.5.0) fast-fifo: specifier: ^1.3.2 version: 1.3.2 @@ -1160,7 +1160,7 @@ importers: version: 3.0.2 debug: specifier: ^4.3.4 - version: 4.4.0(supports-color@9.4.0) + version: 4.4.0(supports-color@5.5.0) lodash: specifier: ^4.17.21 version: 4.17.21 @@ -1588,7 +1588,7 @@ importers: version: 2.30.0 debug: specifier: ^4.3.4 - version: 4.4.0(supports-color@9.4.0) + version: 4.4.0(supports-color@5.5.0) esbuild: specifier: 0.21.5 version: 0.21.5 @@ -4903,9 +4903,10 @@ packages: peerDependencies: react: ^18.2 || >=19.0.0-rc - '@sanity/template-validator@1.0.3': - resolution: {integrity: sha512-yXJNdJ8Yrz+cN3DoEUPY0MN8TZu/j4bG7DOkm/BqYMAhRlsQAEDlezznqbrm6eh6TbVFZ+yRVzhx6dYrcpfhmg==} + '@sanity/template-validator@1.2.1': + resolution: {integrity: sha512-yFrtQw0My/YcEn8XRNlh01VfGwHfFv3b6p3rXkClotgoM17l86Vg6Ox4zTMexSO93By+bpmkP57Wdb3fftG7Ug==} engines: {node: '>=18.0.0'} + hasBin: true '@sanity/test@0.0.1-alpha.1': resolution: {integrity: sha512-o2X2Veh9YWyVK/Iou/cToSS6ufcTLREoCVMcvBQbSqCFUIGaN1Ko3zxChJMWdf39dyaJ/ixMKtc8pciF/tL6Sw==} @@ -12452,10 +12453,10 @@ snapshots: '@babel/helpers': 7.26.0 '@babel/parser': 7.26.3 '@babel/template': 7.25.9 - '@babel/traverse': 7.26.4 + '@babel/traverse': 7.26.4(supports-color@5.5.0) '@babel/types': 7.26.3 convert-source-map: 2.0.0 - debug: 4.4.0(supports-color@9.4.0) + debug: 4.4.0(supports-color@5.5.0) gensync: 1.0.0-beta.2 json5: 2.2.3 semver: 6.3.1 @@ -12498,7 +12499,7 @@ snapshots: '@babel/helper-optimise-call-expression': 7.25.9 '@babel/helper-replace-supers': 7.25.9(@babel/core@7.26.0) '@babel/helper-skip-transparent-expression-wrappers': 7.25.9 - '@babel/traverse': 7.26.4 + '@babel/traverse': 7.26.4(supports-color@5.5.0) semver: 6.3.1 transitivePeerDependencies: - supports-color @@ -12515,7 +12516,7 @@ snapshots: '@babel/core': 7.26.0 '@babel/helper-compilation-targets': 7.25.9 '@babel/helper-plugin-utils': 7.25.9 - debug: 4.4.0(supports-color@9.4.0) + debug: 4.4.0(supports-color@5.5.0) lodash.debounce: 4.0.8 resolve: 1.22.9 transitivePeerDependencies: @@ -12523,14 +12524,7 @@ snapshots: '@babel/helper-member-expression-to-functions@7.25.9': dependencies: - '@babel/traverse': 7.26.4 - '@babel/types': 7.26.3 - transitivePeerDependencies: - - supports-color - - '@babel/helper-module-imports@7.25.9': - dependencies: - '@babel/traverse': 7.26.4 + '@babel/traverse': 7.26.4(supports-color@5.5.0) '@babel/types': 7.26.3 transitivePeerDependencies: - supports-color @@ -12545,9 +12539,9 @@ snapshots: '@babel/helper-module-transforms@7.26.0(@babel/core@7.26.0)': dependencies: '@babel/core': 7.26.0 - '@babel/helper-module-imports': 7.25.9 + '@babel/helper-module-imports': 7.25.9(supports-color@5.5.0) '@babel/helper-validator-identifier': 7.25.9 - '@babel/traverse': 7.26.4 + '@babel/traverse': 7.26.4(supports-color@5.5.0) transitivePeerDependencies: - supports-color @@ -12562,7 +12556,7 @@ snapshots: '@babel/core': 7.26.0 '@babel/helper-annotate-as-pure': 7.25.9 '@babel/helper-wrap-function': 7.25.9 - '@babel/traverse': 7.26.4 + '@babel/traverse': 7.26.4(supports-color@5.5.0) transitivePeerDependencies: - supports-color @@ -12571,13 +12565,13 @@ snapshots: '@babel/core': 7.26.0 '@babel/helper-member-expression-to-functions': 7.25.9 '@babel/helper-optimise-call-expression': 7.25.9 - '@babel/traverse': 7.26.4 + '@babel/traverse': 7.26.4(supports-color@5.5.0) transitivePeerDependencies: - supports-color '@babel/helper-skip-transparent-expression-wrappers@7.25.9': dependencies: - '@babel/traverse': 7.26.4 + '@babel/traverse': 7.26.4(supports-color@5.5.0) '@babel/types': 7.26.3 transitivePeerDependencies: - supports-color @@ -12591,7 +12585,7 @@ snapshots: '@babel/helper-wrap-function@7.25.9': dependencies: '@babel/template': 7.25.9 - '@babel/traverse': 7.26.4 + '@babel/traverse': 7.26.4(supports-color@5.5.0) '@babel/types': 7.26.3 transitivePeerDependencies: - supports-color @@ -12609,7 +12603,7 @@ snapshots: dependencies: '@babel/core': 7.26.0 '@babel/helper-plugin-utils': 7.25.9 - '@babel/traverse': 7.26.4 + '@babel/traverse': 7.26.4(supports-color@5.5.0) transitivePeerDependencies: - supports-color @@ -12636,7 +12630,7 @@ snapshots: dependencies: '@babel/core': 7.26.0 '@babel/helper-plugin-utils': 7.25.9 - '@babel/traverse': 7.26.4 + '@babel/traverse': 7.26.4(supports-color@5.5.0) transitivePeerDependencies: - supports-color @@ -12688,14 +12682,14 @@ snapshots: '@babel/core': 7.26.0 '@babel/helper-plugin-utils': 7.25.9 '@babel/helper-remap-async-to-generator': 7.25.9(@babel/core@7.26.0) - '@babel/traverse': 7.26.4 + '@babel/traverse': 7.26.4(supports-color@5.5.0) transitivePeerDependencies: - supports-color '@babel/plugin-transform-async-to-generator@7.25.9(@babel/core@7.26.0)': dependencies: '@babel/core': 7.26.0 - '@babel/helper-module-imports': 7.25.9 + '@babel/helper-module-imports': 7.25.9(supports-color@5.5.0) '@babel/helper-plugin-utils': 7.25.9 '@babel/helper-remap-async-to-generator': 7.25.9(@babel/core@7.26.0) transitivePeerDependencies: @@ -12734,7 +12728,7 @@ snapshots: '@babel/helper-compilation-targets': 7.25.9 '@babel/helper-plugin-utils': 7.25.9 '@babel/helper-replace-supers': 7.25.9(@babel/core@7.26.0) - '@babel/traverse': 7.26.4 + '@babel/traverse': 7.26.4(supports-color@5.5.0) globals: 11.12.0 transitivePeerDependencies: - supports-color @@ -12795,7 +12789,7 @@ snapshots: '@babel/core': 7.26.0 '@babel/helper-compilation-targets': 7.25.9 '@babel/helper-plugin-utils': 7.25.9 - '@babel/traverse': 7.26.4 + '@babel/traverse': 7.26.4(supports-color@5.5.0) transitivePeerDependencies: - supports-color @@ -12841,7 +12835,7 @@ snapshots: '@babel/helper-module-transforms': 7.26.0(@babel/core@7.26.0) '@babel/helper-plugin-utils': 7.25.9 '@babel/helper-validator-identifier': 7.25.9 - '@babel/traverse': 7.26.4 + '@babel/traverse': 7.26.4(supports-color@5.5.0) transitivePeerDependencies: - supports-color @@ -12955,7 +12949,7 @@ snapshots: dependencies: '@babel/core': 7.26.0 '@babel/helper-annotate-as-pure': 7.25.9 - '@babel/helper-module-imports': 7.25.9 + '@babel/helper-module-imports': 7.25.9(supports-color@5.5.0) '@babel/helper-plugin-utils': 7.25.9 '@babel/plugin-syntax-jsx': 7.25.9(@babel/core@7.26.0) '@babel/types': 7.26.3 @@ -13171,18 +13165,6 @@ snapshots: '@babel/parser': 7.26.3 '@babel/types': 7.26.3 - '@babel/traverse@7.26.4': - dependencies: - '@babel/code-frame': 7.26.2 - '@babel/generator': 7.26.3 - '@babel/parser': 7.26.3 - '@babel/template': 7.25.9 - '@babel/types': 7.26.3 - debug: 4.4.0(supports-color@9.4.0) - globals: 11.12.0 - transitivePeerDependencies: - - supports-color - '@babel/traverse@7.26.4(supports-color@5.5.0)': dependencies: '@babel/code-frame': 7.26.2 @@ -13401,7 +13383,7 @@ snapshots: '@emotion/babel-plugin@11.13.5': dependencies: - '@babel/helper-module-imports': 7.25.9 + '@babel/helper-module-imports': 7.25.9(supports-color@5.5.0) '@babel/runtime': 7.26.0 '@emotion/hash': 0.9.2 '@emotion/memoize': 0.9.0 @@ -13834,7 +13816,7 @@ snapshots: '@eslint/eslintrc@2.1.4': dependencies: ajv: 6.12.6 - debug: 4.4.0(supports-color@9.4.0) + debug: 4.4.0(supports-color@5.5.0) espree: 9.6.1 globals: 13.24.0 ignore: 5.3.2 @@ -13919,7 +13901,7 @@ snapshots: '@humanwhocodes/config-array@0.13.0': dependencies: '@humanwhocodes/object-schema': 2.0.3 - debug: 4.4.0(supports-color@9.4.0) + debug: 4.4.0(supports-color@5.5.0) minimatch: 3.1.2 transitivePeerDependencies: - supports-color @@ -14898,7 +14880,7 @@ snapshots: '@sanity/schema': link:packages/@sanity/schema '@sanity/types': link:packages/@sanity/types '@xstate/react': 5.0.0(@types/react@18.3.17)(react@18.3.1)(xstate@5.19.0) - debug: 4.4.0(supports-color@9.4.0) + debug: 4.4.0(supports-color@5.5.0) get-random-values-esm: 1.0.2 lodash: 4.17.21 lodash.startcase: 4.4.0 @@ -14971,7 +14953,7 @@ snapshots: '@rollup/plugin-babel@6.0.4(@babel/core@7.26.0)(@types/babel__core@7.20.5)(rollup@4.28.1)': dependencies: '@babel/core': 7.26.0 - '@babel/helper-module-imports': 7.25.9 + '@babel/helper-module-imports': 7.25.9(supports-color@5.5.0) '@rollup/pluginutils': 5.1.4(rollup@4.28.1) optionalDependencies: '@types/babel__core': 7.20.5 @@ -15293,7 +15275,7 @@ snapshots: '@sanity/client': 6.24.1(debug@4.4.0) '@sanity/util': 3.37.2(debug@4.4.0) archiver: 7.0.1 - debug: 4.4.0(supports-color@9.4.0) + debug: 4.4.0(supports-color@5.5.0) get-it: 8.6.5(debug@4.4.0) lodash: 4.17.21 mississippi: 4.0.0 @@ -15338,7 +15320,7 @@ snapshots: '@sanity/generate-help-url': 3.0.0 '@sanity/mutator': link:packages/@sanity/mutator '@sanity/uuid': 3.0.2 - debug: 4.4.0(supports-color@9.4.0) + debug: 4.4.0(supports-color@5.5.0) file-url: 2.0.2 get-it: 8.6.5(debug@4.4.0) get-uri: 2.0.4 @@ -15550,7 +15532,7 @@ snapshots: '@sanity/comlink': 2.0.2 '@sanity/icons': 3.5.5(react@18.3.1) '@sanity/logos': 2.1.13(@sanity/color@3.0.6)(react@18.3.1) - '@sanity/preview-url-secret': 2.0.5(@sanity/client@6.24.1(debug@4.4.0)) + '@sanity/preview-url-secret': 2.0.5(@sanity/client@6.24.1) '@sanity/ui': 2.10.12(@emotion/is-prop-valid@1.3.1)(react-dom@18.3.1(react@18.3.1))(react-is@18.3.1)(react@18.3.1)(styled-components@6.1.13(react-dom@18.3.1(react@18.3.1))(react@18.3.1)) '@sanity/uuid': 3.0.2 fast-deep-equal: 3.1.3 @@ -15577,7 +15559,7 @@ snapshots: prettier: 3.4.2 prettier-plugin-packagejson: 2.5.6(prettier@3.4.2) - '@sanity/preview-url-secret@2.0.5(@sanity/client@6.24.1(debug@4.4.0))': + '@sanity/preview-url-secret@2.0.5(@sanity/client@6.24.1)': dependencies: '@sanity/client': 6.24.1(debug@4.4.0) '@sanity/uuid': 3.0.2 @@ -15604,7 +15586,7 @@ snapshots: rxjs: 7.8.1 typeid-js: 0.3.0 - '@sanity/template-validator@1.0.3(@types/babel__core@7.20.5)(@types/node@22.10.2)(debug@4.4.0)': + '@sanity/template-validator@1.2.1(@types/babel__core@7.20.5)(@types/node@22.10.2)(debug@4.4.0)': dependencies: '@actions/core': 1.11.1 '@actions/github': 6.0.0 @@ -15957,7 +15939,7 @@ snapshots: dependencies: '@sanity/comlink': 2.0.2 '@sanity/mutate': 0.11.0-canary.4(xstate@5.19.0) - '@sanity/preview-url-secret': 2.0.5(@sanity/client@6.24.1(debug@4.4.0)) + '@sanity/preview-url-secret': 2.0.5(@sanity/client@6.24.1) '@vercel/stega': 0.1.2 get-random-values-esm: 1.0.2 react: 18.3.1 @@ -16060,7 +16042,7 @@ snapshots: '@swc-node/sourcemap-support': 0.5.1 '@swc/core': 1.10.1(@swc/helpers@0.5.15) colorette: 2.0.20 - debug: 4.4.0(supports-color@9.4.0) + debug: 4.4.0(supports-color@5.5.0) oxc-resolver: 1.12.0 pirates: 4.0.6 tslib: 2.8.1 @@ -16511,7 +16493,7 @@ snapshots: '@typescript-eslint/types': 7.18.0 '@typescript-eslint/typescript-estree': 7.18.0(typescript@5.7.2) '@typescript-eslint/visitor-keys': 7.18.0 - debug: 4.4.0(supports-color@9.4.0) + debug: 4.4.0(supports-color@5.5.0) eslint: 8.57.1 optionalDependencies: typescript: 5.7.2 @@ -16527,7 +16509,7 @@ snapshots: dependencies: '@typescript-eslint/typescript-estree': 7.18.0(typescript@5.7.2) '@typescript-eslint/utils': 7.18.0(eslint@8.57.1)(typescript@5.7.2) - debug: 4.4.0(supports-color@9.4.0) + debug: 4.4.0(supports-color@5.5.0) eslint: 8.57.1 ts-api-utils: 1.4.3(typescript@5.7.2) optionalDependencies: @@ -16541,7 +16523,7 @@ snapshots: dependencies: '@typescript-eslint/types': 7.18.0 '@typescript-eslint/visitor-keys': 7.18.0 - debug: 4.4.0(supports-color@9.4.0) + debug: 4.4.0(supports-color@5.5.0) globby: 11.1.0 is-glob: 4.0.3 minimatch: 9.0.5 @@ -16683,7 +16665,7 @@ snapshots: dependencies: '@ampproject/remapping': 2.3.0 '@bcoe/v8-coverage': 0.2.3 - debug: 4.4.0(supports-color@9.4.0) + debug: 4.4.0(supports-color@5.5.0) istanbul-lib-coverage: 3.2.2 istanbul-lib-report: 3.0.1 istanbul-lib-source-maps: 5.0.6 @@ -16864,7 +16846,7 @@ snapshots: agent-base@6.0.2: dependencies: - debug: 4.4.0(supports-color@9.4.0) + debug: 4.4.0(supports-color@5.5.0) transitivePeerDependencies: - supports-color @@ -18086,12 +18068,12 @@ snapshots: depcheck@1.4.7: dependencies: '@babel/parser': 7.26.3 - '@babel/traverse': 7.26.4 + '@babel/traverse': 7.26.4(supports-color@5.5.0) '@vue/compiler-sfc': 3.5.13 callsite: 1.0.0 camelcase: 6.3.0 cosmiconfig: 7.1.0 - debug: 4.4.0(supports-color@9.4.0) + debug: 4.4.0(supports-color@5.5.0) deps-regex: 0.2.0 findup-sync: 5.0.0 ignore: 5.3.2 @@ -18429,21 +18411,21 @@ snapshots: esbuild-register@3.6.0(esbuild@0.19.12): dependencies: - debug: 4.4.0(supports-color@9.4.0) + debug: 4.4.0(supports-color@5.5.0) esbuild: 0.19.12 transitivePeerDependencies: - supports-color esbuild-register@3.6.0(esbuild@0.21.5): dependencies: - debug: 4.4.0(supports-color@9.4.0) + debug: 4.4.0(supports-color@5.5.0) esbuild: 0.21.5 transitivePeerDependencies: - supports-color esbuild-register@3.6.0(esbuild@0.24.0): dependencies: - debug: 4.4.0(supports-color@9.4.0) + debug: 4.4.0(supports-color@5.5.0) esbuild: 0.24.0 transitivePeerDependencies: - supports-color @@ -18621,7 +18603,7 @@ snapshots: eslint-import-resolver-typescript@3.7.0(eslint-plugin-import@2.31.0)(eslint@8.57.1): dependencies: '@nolyfill/is-core-module': 1.0.39 - debug: 4.4.0(supports-color@9.4.0) + debug: 4.4.0(supports-color@5.5.0) enhanced-resolve: 5.17.1 eslint: 8.57.1 fast-glob: 3.3.2 @@ -18841,7 +18823,7 @@ snapshots: ajv: 6.12.6 chalk: 4.1.2 cross-spawn: 7.0.6 - debug: 4.4.0(supports-color@9.4.0) + debug: 4.4.0(supports-color@5.5.0) doctrine: 3.0.0 escape-string-regexp: 4.0.0 eslint-scope: 7.2.2 @@ -19229,7 +19211,7 @@ snapshots: follow-redirects@1.15.9(debug@4.4.0): optionalDependencies: - debug: 4.4.0(supports-color@9.4.0) + debug: 4.4.0(supports-color@5.5.0) for-each@0.3.3: dependencies: @@ -19658,7 +19640,7 @@ snapshots: groq-js@1.14.2: dependencies: - debug: 4.4.0(supports-color@9.4.0) + debug: 4.4.0(supports-color@5.5.0) transitivePeerDependencies: - supports-color @@ -19818,28 +19800,28 @@ snapshots: dependencies: '@tootallnate/once': 2.0.0 agent-base: 6.0.2 - debug: 4.4.0(supports-color@9.4.0) + debug: 4.4.0(supports-color@5.5.0) transitivePeerDependencies: - supports-color http-proxy-agent@7.0.2: dependencies: agent-base: 7.1.3 - debug: 4.4.0(supports-color@9.4.0) + debug: 4.4.0(supports-color@5.5.0) transitivePeerDependencies: - supports-color https-proxy-agent@5.0.1: dependencies: agent-base: 6.0.2 - debug: 4.4.0(supports-color@9.4.0) + debug: 4.4.0(supports-color@5.5.0) transitivePeerDependencies: - supports-color https-proxy-agent@7.0.6: dependencies: agent-base: 7.1.3 - debug: 4.4.0(supports-color@9.4.0) + debug: 4.4.0(supports-color@5.5.0) transitivePeerDependencies: - supports-color @@ -20292,7 +20274,7 @@ snapshots: istanbul-lib-source-maps@5.0.6: dependencies: '@jridgewell/trace-mapping': 0.3.25 - debug: 4.4.0(supports-color@9.4.0) + debug: 4.4.0(supports-color@5.5.0) istanbul-lib-coverage: 3.2.2 transitivePeerDependencies: - supports-color @@ -22652,7 +22634,7 @@ snapshots: rollup-plugin-esbuild@6.1.1(esbuild@0.24.0)(rollup@4.28.1): dependencies: '@rollup/pluginutils': 5.1.4(rollup@4.28.1) - debug: 4.4.0(supports-color@9.4.0) + debug: 4.4.0(supports-color@5.5.0) es-module-lexer: 1.5.4 esbuild: 0.24.0 get-tsconfig: 4.8.1 @@ -23209,7 +23191,7 @@ snapshots: socks-proxy-agent@8.0.5: dependencies: agent-base: 7.1.3 - debug: 4.4.0(supports-color@9.4.0) + debug: 4.4.0(supports-color@5.5.0) socks: 2.8.3 transitivePeerDependencies: - supports-color @@ -23862,7 +23844,7 @@ snapshots: tuf-js@2.2.1: dependencies: '@tufjs/models': 2.0.1 - debug: 4.4.0(supports-color@9.4.0) + debug: 4.4.0(supports-color@5.5.0) make-fetch-happen: 13.0.1 transitivePeerDependencies: - supports-color @@ -24185,7 +24167,7 @@ snapshots: vite-node@2.1.1(@types/node@22.10.2)(terser@5.37.0): dependencies: cac: 6.7.14 - debug: 4.4.0(supports-color@9.4.0) + debug: 4.4.0(supports-color@5.5.0) pathe: 1.1.2 vite: 5.4.11(@types/node@22.10.2)(terser@5.37.0) transitivePeerDependencies: @@ -24202,7 +24184,7 @@ snapshots: vite-node@2.1.8(@types/node@18.19.68)(terser@5.37.0): dependencies: cac: 6.7.14 - debug: 4.4.0(supports-color@9.4.0) + debug: 4.4.0(supports-color@5.5.0) es-module-lexer: 1.5.4 pathe: 1.1.2 vite: 5.4.11(@types/node@18.19.68)(terser@5.37.0) @@ -24220,7 +24202,7 @@ snapshots: vite-node@2.1.8(@types/node@22.10.2)(terser@5.37.0): dependencies: cac: 6.7.14 - debug: 4.4.0(supports-color@9.4.0) + debug: 4.4.0(supports-color@5.5.0) es-module-lexer: 1.5.4 pathe: 1.1.2 vite: 5.4.11(@types/node@22.10.2)(terser@5.37.0) @@ -24237,7 +24219,7 @@ snapshots: vite-tsconfig-paths@4.3.2(typescript@5.7.2)(vite@5.4.11(@types/node@22.10.2)(terser@5.37.0)): dependencies: - debug: 4.4.0(supports-color@9.4.0) + debug: 4.4.0(supports-color@5.5.0) globrex: 0.1.2 tsconfck: 3.1.4(typescript@5.7.2) optionalDependencies: @@ -24297,7 +24279,7 @@ snapshots: '@vitest/spy': 2.1.1 '@vitest/utils': 2.1.1 chai: 5.1.2 - debug: 4.4.0(supports-color@9.4.0) + debug: 4.4.0(supports-color@5.5.0) magic-string: 0.30.17 pathe: 1.1.2 std-env: 3.8.0 @@ -24332,7 +24314,7 @@ snapshots: '@vitest/spy': 2.1.8 '@vitest/utils': 2.1.8 chai: 5.1.2 - debug: 4.4.0(supports-color@9.4.0) + debug: 4.4.0(supports-color@5.5.0) expect-type: 1.1.0 magic-string: 0.30.17 pathe: 1.1.2 @@ -24368,7 +24350,7 @@ snapshots: '@vitest/spy': 2.1.8 '@vitest/utils': 2.1.8 chai: 5.1.2 - debug: 4.4.0(supports-color@9.4.0) + debug: 4.4.0(supports-color@5.5.0) expect-type: 1.1.0 magic-string: 0.30.17 pathe: 1.1.2 @@ -24404,7 +24386,7 @@ snapshots: '@vitest/spy': 2.1.8 '@vitest/utils': 2.1.8 chai: 5.1.2 - debug: 4.4.0(supports-color@9.4.0) + debug: 4.4.0(supports-color@5.5.0) expect-type: 1.1.0 magic-string: 0.30.17 pathe: 1.1.2