@kubb/agent 5.0.0-alpha.23 → 5.0.0-alpha.24
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/.output/nitro.json +1 -1
- package/.output/server/chunks/nitro/nitro.mjs +528 -181
- package/.output/server/chunks/nitro/nitro.mjs.map +1 -1
- package/.output/server/node_modules/.nitro/{picomatch@4.0.3 → picomatch@4.0.4}/lib/constants.js +4 -0
- package/.output/server/node_modules/.nitro/{picomatch@4.0.3 → picomatch@4.0.4}/lib/parse.js +301 -0
- package/.output/server/node_modules/.nitro/{picomatch@4.0.3 → picomatch@4.0.4}/lib/picomatch.js +11 -3
- package/.output/server/node_modules/.nitro/{picomatch@4.0.3 → picomatch@4.0.4}/package.json +2 -3
- package/.output/server/node_modules/@redocly/config/lib/default-theme-config-schema.js +1 -0
- package/.output/server/node_modules/@redocly/config/lib/ex-theme-config-schemas.js +6 -1
- package/.output/server/node_modules/@redocly/config/lib/root-config-schema.js +1 -1
- package/.output/server/node_modules/@redocly/config/package.json +1 -1
- package/.output/server/node_modules/@redocly/openapi-core/lib/bundle/bundle-visitor.js +1 -1
- package/.output/server/node_modules/@redocly/openapi-core/lib/bundle/bundle.js +2 -2
- package/.output/server/node_modules/@redocly/openapi-core/lib/config/bundle-extends.js +1 -0
- package/.output/server/node_modules/@redocly/openapi-core/lib/config/config-resolvers.js +14 -5
- package/.output/server/node_modules/@redocly/openapi-core/lib/lint.js +1 -1
- package/.output/server/node_modules/@redocly/openapi-core/lib/types/json-schema-draft7.shared.js +1 -1
- package/.output/server/node_modules/@redocly/openapi-core/lib/types/oas2.js +1 -1
- package/.output/server/node_modules/@redocly/openapi-core/lib/types/oas3.js +1 -1
- package/.output/server/node_modules/@redocly/openapi-core/package.json +3 -3
- package/.output/server/package.json +3 -3
- package/package.json +16 -16
- /package/.output/server/node_modules/.nitro/{picomatch@4.0.3 → picomatch@4.0.4}/index.js +0 -0
- /package/.output/server/node_modules/.nitro/{picomatch@4.0.3 → picomatch@4.0.4}/lib/scan.js +0 -0
- /package/.output/server/node_modules/.nitro/{picomatch@4.0.3 → picomatch@4.0.4}/lib/utils.js +0 -0
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"nitro.mjs","sources":["../../../../../../node_modules/.pnpm/destr@2.0.5/node_modules/destr/dist/index.mjs","../../../../../../node_modules/.pnpm/ufo@1.6.3/node_modules/ufo/dist/index.mjs","../../../../../../node_modules/.pnpm/radix3@1.1.2/node_modules/radix3/dist/index.mjs","../../../../../../node_modules/.pnpm/defu@6.1.4/node_modules/defu/dist/defu.mjs","../../../../../../node_modules/.pnpm/node-mock-http@1.0.4/node_modules/node-mock-http/dist/index.mjs","../../../../../../node_modules/.pnpm/h3@1.15.9/node_modules/h3/dist/index.mjs","../../../../../../node_modules/.pnpm/hookable@5.5.3/node_modules/hookable/dist/index.mjs","../../../../../../node_modules/.pnpm/node-fetch-native@1.6.7/node_modules/node-fetch-native/dist/native.mjs","../../../../../../node_modules/.pnpm/ofetch@1.5.1/node_modules/ofetch/dist/shared/ofetch.CWycOUEr.mjs","../../../../../../node_modules/.pnpm/ofetch@1.5.1/node_modules/ofetch/dist/node.mjs","../../../../../../node_modules/.pnpm/unstorage@1.17.5_db0@0.3.4_ioredis@5.10.1/node_modules/unstorage/dist/shared/unstorage.zVDD2mZo.mjs","../../../../../../node_modules/.pnpm/unstorage@1.17.5_db0@0.3.4_ioredis@5.10.1/node_modules/unstorage/dist/index.mjs","../../../../../../node_modules/.pnpm/unstorage@1.17.5_db0@0.3.4_ioredis@5.10.1/node_modules/unstorage/drivers/utils/index.mjs","../../../../../../node_modules/.pnpm/unstorage@1.17.5_db0@0.3.4_ioredis@5.10.1/node_modules/unstorage/drivers/utils/node-fs.mjs","../../../../../../node_modules/.pnpm/unstorage@1.17.5_db0@0.3.4_ioredis@5.10.1/node_modules/unstorage/drivers/fs.mjs","../../../../../../node_modules/.pnpm/unstorage@1.17.5_db0@0.3.4_ioredis@5.10.1/node_modules/unstorage/drivers/fs-lite.mjs","../../../../../../node_modules/.pnpm/nitropack@2.13.2_encoding@0.1.13_rolldown@1.0.0-rc.12/node_modules/nitropack/dist/runtime/internal/storage.mjs","../../../../../../node_modules/.pnpm/ohash@2.0.11/node_modules/ohash/dist/crypto/node/index.mjs","../../../../../../node_modules/.pnpm/nitropack@2.13.2_encoding@0.1.13_rolldown@1.0.0-rc.12/node_modules/nitropack/dist/runtime/internal/hash.mjs","../../../../../../node_modules/.pnpm/nitropack@2.13.2_encoding@0.1.13_rolldown@1.0.0-rc.12/node_modules/nitropack/dist/runtime/internal/cache.mjs","../../../../../../node_modules/.pnpm/klona@2.0.6/node_modules/klona/dist/index.mjs","../../../../../../node_modules/.pnpm/scule@1.3.0/node_modules/scule/dist/index.mjs","../../../../../../node_modules/.pnpm/nitropack@2.13.2_encoding@0.1.13_rolldown@1.0.0-rc.12/node_modules/nitropack/dist/runtime/internal/utils.env.mjs","../../../../../../node_modules/.pnpm/nitropack@2.13.2_encoding@0.1.13_rolldown@1.0.0-rc.12/node_modules/nitropack/dist/runtime/internal/config.mjs","../../../../../../node_modules/.pnpm/unctx@2.5.0/node_modules/unctx/dist/index.mjs","../../../../../../node_modules/.pnpm/nitropack@2.13.2_encoding@0.1.13_rolldown@1.0.0-rc.12/node_modules/nitropack/dist/runtime/internal/context.mjs","../../../../../../node_modules/.pnpm/nitropack@2.13.2_encoding@0.1.13_rolldown@1.0.0-rc.12/node_modules/nitropack/dist/runtime/internal/route-rules.mjs","../../../../../../node_modules/.pnpm/nitropack@2.13.2_encoding@0.1.13_rolldown@1.0.0-rc.12/node_modules/nitropack/dist/runtime/internal/utils.mjs","../../../../../../node_modules/.pnpm/nitropack@2.13.2_encoding@0.1.13_rolldown@1.0.0-rc.12/node_modules/nitropack/dist/runtime/internal/error/utils.mjs","../../../../../../node_modules/.pnpm/nitropack@2.13.2_encoding@0.1.13_rolldown@1.0.0-rc.12/node_modules/nitropack/dist/runtime/internal/error/prod.mjs","../../../../../../node_modules/.pnpm/nitropack@2.13.2_encoding@0.1.13_rolldown@1.0.0-rc.12/node_modules/nitropack/dist/runtime/internal/plugin.mjs","../../../../server/utils/logger.ts","../../../../server/plugins/fetch-logger.ts","../../../../../../internals/utils/dist/index.js","../../../../server/plugins/heartbeat.ts","../../../../server/utils/token.ts","../../../../server/utils/api.ts","../../../../../ast/dist/index.js","../../../../../core/dist/index.js","../../../../server/types/agent.ts","../../../../server/utils/agentCache.ts","../../../../server/utils/executeHooks.ts","../../../../server/utils/generate.ts","../../../../server/utils/getCosmiConfig.ts","../../../../server/utils/loadConfig.ts","../../../../../plugin-client/dist/chunk--u3MIqq1.js","../../../../../plugin-oas/dist/getFooter-Dz4u5Mg4.js","../../../../../plugin-oas/dist/SchemaMapper-CqMkO2T1.js","../../../../../oas/dist/index.js","../../../../../plugin-oas/dist/requestBody-Ccu5imDC.js","../../../../../plugin-oas/dist/utils.js","../../../../../plugin-client/dist/StaticClassClient-DsWHXZ_Z.js","../../../../../plugin-oas/dist/generators-hPE06pZB.js","../../../../../plugin-oas/dist/index.js","../../../../../plugin-zod/dist/components-DW4Q2yVq.js","../../../../../../node_modules/.pnpm/typescript@5.9.3/node_modules/typescript/lib/typescript.js","../../../../../plugin-ts/dist/index.js","../../../../../core/dist/hooks.js","../../../../../plugin-oas/dist/hooks.js","../../../../../plugin-zod/dist/generators-maqx12yN.js","../../../../../plugin-zod/dist/templates/ToZod.source.js","../../../../../plugin-zod/dist/index.js","../../../../../plugin-client/dist/generators-D6_PXE7w.js","../../../../../plugin-client/dist/templates/clients/axios.source.js","../../../../../plugin-client/dist/templates/clients/fetch.source.js","../../../../../plugin-client/dist/templates/config.source.js","../../../../../plugin-client/dist/index.js","../../../../../plugin-cypress/dist/components-BO5E__bN.js","../../../../../plugin-cypress/dist/generators-wVWvhp28.js","../../../../../plugin-cypress/dist/index.js","../../../../../plugin-faker/dist/components-CRVgxJhG.js","../../../../../plugin-faker/dist/fakerGenerator-BviedIXa.js","../../../../../plugin-faker/dist/index.js","../../../../../plugin-mcp/dist/Server-kM1BVYP3.js","../../../../../plugin-mcp/dist/generators-Cc2InAz4.js","../../../../../plugin-mcp/dist/index.js","../../../../../plugin-msw/dist/components-Hy13rv6B.js","../../../../../plugin-msw/dist/generators-NHFKYOuW.js","../../../../../plugin-msw/dist/index.js","../../../../../plugin-react-query/dist/chunk--u3MIqq1.js","../../../../../plugin-react-query/dist/components-BMhCuuyw.js","../../../../../plugin-react-query/dist/generators-NQ_wqrMC.js","../../../../../plugin-react-query/dist/index.js","../../../../../adapter-oas/dist/index.js","../../../../../plugin-redoc/dist/index.js","../../../../../plugin-solid-query/dist/chunk--u3MIqq1.js","../../../../../plugin-solid-query/dist/components-C3Y0aR6S.js","../../../../../plugin-solid-query/dist/generators-CDkOFlnm.js","../../../../../plugin-solid-query/dist/index.js","../../../../../plugin-svelte-query/dist/chunk--u3MIqq1.js","../../../../../plugin-svelte-query/dist/components-C4oLO5tl.js","../../../../../plugin-svelte-query/dist/generators-DMAW4pIS.js","../../../../../plugin-svelte-query/dist/index.js","../../../../../plugin-swr/dist/chunk--u3MIqq1.js","../../../../../plugin-swr/dist/components-BWYZa8xS.js","../../../../../plugin-swr/dist/generators-DKQE6KOX.js","../../../../../plugin-swr/dist/index.js","../../../../../plugin-vue-query/dist/chunk--u3MIqq1.js","../../../../../plugin-vue-query/dist/components-FCfsweek.js","../../../../../plugin-vue-query/dist/generators-BqBPe_sx.js","../../../../../plugin-vue-query/dist/index.js","../../../../server/utils/resolvePlugins.ts","../../../../server/utils/mergePlugins.ts","../../../../server/utils/publish.ts","../../../../server/utils/setupHookListener.ts","../../../../server/utils/ws.ts","../../../../server/utils/connectStudio.ts","../../../../server/plugins/studio.ts","../../../../../../node_modules/.pnpm/nitropack@2.13.2_encoding@0.1.13_rolldown@1.0.0-rc.12/node_modules/nitropack/dist/runtime/internal/app.mjs","../../../../../../node_modules/.pnpm/nitropack@2.13.2_encoding@0.1.13_rolldown@1.0.0-rc.12/node_modules/nitropack/dist/runtime/internal/lib/http-graceful-shutdown.mjs","../../../../../../node_modules/.pnpm/nitropack@2.13.2_encoding@0.1.13_rolldown@1.0.0-rc.12/node_modules/nitropack/dist/runtime/internal/shutdown.mjs","../../../../../../node_modules/.pnpm/nitropack@2.13.2_encoding@0.1.13_rolldown@1.0.0-rc.12/node_modules/nitropack/dist/presets/node/runtime/node-server.mjs"],"names":["createRouter","f","h","i","l","createError","mergeHeaders","s","nodeFetch","Headers","Headers$1","AbortController$1","stringify","normalizeKey","defineDriver","DRIVER_NAME","createStorage","fsPromises","PATH_TRAVERSE_RE","fsp","snakeCase","_inlineAppConfig","createRadixRouter","formatMs","_a","process","toCamelOrPascal","applyToFileParts","camelCase","isValidVarName","__privateAdd","__privateGet","pascalCase","path","readFile","writeFile","URLPath","_b","_URLPath_instances","__publicField","_options","__privateSet","__privateMethod","transformParam_fn","eachParam_fn","match","Node","Queue","_head","_tail","_size","__privateWrapper","pLimit","validateConcurrency","resolve","_c","plugin","extname","performance","build","readdir","version","_d","_e","_f","renderOperation","renderSchema","x","item","trimExtName","defaultResolver","error","__defProp","__name","isPlainObject","parse","loadConfig","schema","params","_context","trimQuotes","schemas","normalizedSchema","name","min","max","getParams$1","getParams","Operations","validate","oas","options","jsStringEscape","toRegExpString","Type","siblings","require","global","modifiers","questionToken","transform","node","operationsGenerator","source","Function","baseURL","source$2","Response","getNestedAccessor","getTransformer$1","MutationKey","getParams$9","getTransformer","QueryKey","getParams$8","QueryOptions","getParams$7","InfiniteQuery","getParams$6","InfiniteQueryOptions","getParams$5","getParams$4","Mutation","getParams$3","Query","getParams$2","operations","fs","infiniteQueryGenerator","mutationGenerator","queryGenerator","__filename","__dirname","pkg","generics","nitroApp","callNodeRequestHandler","fetchNodeRequestHandler","gracefulShutdown","HttpsServer","HttpServer"],"mappings":"","x_google_ignoreList":[0,1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,16,17,18,19,20,21,22,23,24,25,26,27,28,29,30,55,108,109,110,111]}
|
|
1
|
+
{"version":3,"file":"nitro.mjs","sources":["../../../../../../node_modules/.pnpm/destr@2.0.5/node_modules/destr/dist/index.mjs","../../../../../../node_modules/.pnpm/ufo@1.6.3/node_modules/ufo/dist/index.mjs","../../../../../../node_modules/.pnpm/radix3@1.1.2/node_modules/radix3/dist/index.mjs","../../../../../../node_modules/.pnpm/defu@6.1.4/node_modules/defu/dist/defu.mjs","../../../../../../node_modules/.pnpm/node-mock-http@1.0.4/node_modules/node-mock-http/dist/index.mjs","../../../../../../node_modules/.pnpm/h3@1.15.9/node_modules/h3/dist/index.mjs","../../../../../../node_modules/.pnpm/hookable@5.5.3/node_modules/hookable/dist/index.mjs","../../../../../../node_modules/.pnpm/node-fetch-native@1.6.7/node_modules/node-fetch-native/dist/native.mjs","../../../../../../node_modules/.pnpm/ofetch@1.5.1/node_modules/ofetch/dist/shared/ofetch.CWycOUEr.mjs","../../../../../../node_modules/.pnpm/ofetch@1.5.1/node_modules/ofetch/dist/node.mjs","../../../../../../node_modules/.pnpm/unstorage@1.17.5_db0@0.3.4_ioredis@5.10.1/node_modules/unstorage/dist/shared/unstorage.zVDD2mZo.mjs","../../../../../../node_modules/.pnpm/unstorage@1.17.5_db0@0.3.4_ioredis@5.10.1/node_modules/unstorage/dist/index.mjs","../../../../../../node_modules/.pnpm/unstorage@1.17.5_db0@0.3.4_ioredis@5.10.1/node_modules/unstorage/drivers/utils/index.mjs","../../../../../../node_modules/.pnpm/unstorage@1.17.5_db0@0.3.4_ioredis@5.10.1/node_modules/unstorage/drivers/utils/node-fs.mjs","../../../../../../node_modules/.pnpm/unstorage@1.17.5_db0@0.3.4_ioredis@5.10.1/node_modules/unstorage/drivers/fs.mjs","../../../../../../node_modules/.pnpm/unstorage@1.17.5_db0@0.3.4_ioredis@5.10.1/node_modules/unstorage/drivers/fs-lite.mjs","../../../../../../node_modules/.pnpm/nitropack@2.13.2_encoding@0.1.13_rolldown@1.0.0-rc.12/node_modules/nitropack/dist/runtime/internal/storage.mjs","../../../../../../node_modules/.pnpm/ohash@2.0.11/node_modules/ohash/dist/crypto/node/index.mjs","../../../../../../node_modules/.pnpm/nitropack@2.13.2_encoding@0.1.13_rolldown@1.0.0-rc.12/node_modules/nitropack/dist/runtime/internal/hash.mjs","../../../../../../node_modules/.pnpm/nitropack@2.13.2_encoding@0.1.13_rolldown@1.0.0-rc.12/node_modules/nitropack/dist/runtime/internal/cache.mjs","../../../../../../node_modules/.pnpm/klona@2.0.6/node_modules/klona/dist/index.mjs","../../../../../../node_modules/.pnpm/scule@1.3.0/node_modules/scule/dist/index.mjs","../../../../../../node_modules/.pnpm/nitropack@2.13.2_encoding@0.1.13_rolldown@1.0.0-rc.12/node_modules/nitropack/dist/runtime/internal/utils.env.mjs","../../../../../../node_modules/.pnpm/nitropack@2.13.2_encoding@0.1.13_rolldown@1.0.0-rc.12/node_modules/nitropack/dist/runtime/internal/config.mjs","../../../../../../node_modules/.pnpm/unctx@2.5.0/node_modules/unctx/dist/index.mjs","../../../../../../node_modules/.pnpm/nitropack@2.13.2_encoding@0.1.13_rolldown@1.0.0-rc.12/node_modules/nitropack/dist/runtime/internal/context.mjs","../../../../../../node_modules/.pnpm/nitropack@2.13.2_encoding@0.1.13_rolldown@1.0.0-rc.12/node_modules/nitropack/dist/runtime/internal/route-rules.mjs","../../../../../../node_modules/.pnpm/nitropack@2.13.2_encoding@0.1.13_rolldown@1.0.0-rc.12/node_modules/nitropack/dist/runtime/internal/utils.mjs","../../../../../../node_modules/.pnpm/nitropack@2.13.2_encoding@0.1.13_rolldown@1.0.0-rc.12/node_modules/nitropack/dist/runtime/internal/error/utils.mjs","../../../../../../node_modules/.pnpm/nitropack@2.13.2_encoding@0.1.13_rolldown@1.0.0-rc.12/node_modules/nitropack/dist/runtime/internal/error/prod.mjs","../../../../../../node_modules/.pnpm/nitropack@2.13.2_encoding@0.1.13_rolldown@1.0.0-rc.12/node_modules/nitropack/dist/runtime/internal/plugin.mjs","../../../../server/utils/logger.ts","../../../../server/plugins/fetch-logger.ts","../../../../../../internals/utils/dist/index.js","../../../../server/plugins/heartbeat.ts","../../../../server/utils/token.ts","../../../../server/utils/api.ts","../../../../../ast/dist/index.js","../../../../../core/dist/index.js","../../../../server/types/agent.ts","../../../../server/utils/agentCache.ts","../../../../server/utils/executeHooks.ts","../../../../server/utils/generate.ts","../../../../server/utils/getCosmiConfig.ts","../../../../server/utils/loadConfig.ts","../../../../../plugin-client/dist/chunk--u3MIqq1.js","../../../../../plugin-oas/dist/getFooter-Dz4u5Mg4.js","../../../../../plugin-oas/dist/SchemaMapper-CqMkO2T1.js","../../../../../oas/dist/index.js","../../../../../plugin-oas/dist/requestBody-Ccu5imDC.js","../../../../../plugin-oas/dist/utils.js","../../../../../plugin-client/dist/StaticClassClient-DsWHXZ_Z.js","../../../../../plugin-oas/dist/generators-hPE06pZB.js","../../../../../plugin-oas/dist/index.js","../../../../../plugin-zod/dist/components-DW4Q2yVq.js","../../../../../../node_modules/.pnpm/typescript@5.9.3/node_modules/typescript/lib/typescript.js","../../../../../plugin-ts/dist/index.js","../../../../../core/dist/hooks.js","../../../../../plugin-oas/dist/hooks.js","../../../../../plugin-zod/dist/generators-maqx12yN.js","../../../../../plugin-zod/dist/templates/ToZod.source.js","../../../../../plugin-zod/dist/index.js","../../../../../plugin-client/dist/generators-D6_PXE7w.js","../../../../../plugin-client/dist/templates/clients/axios.source.js","../../../../../plugin-client/dist/templates/clients/fetch.source.js","../../../../../plugin-client/dist/templates/config.source.js","../../../../../plugin-client/dist/index.js","../../../../../plugin-cypress/dist/index.js","../../../../../plugin-faker/dist/components-CRVgxJhG.js","../../../../../plugin-faker/dist/fakerGenerator-BviedIXa.js","../../../../../plugin-faker/dist/index.js","../../../../../plugin-mcp/dist/Server-kM1BVYP3.js","../../../../../plugin-mcp/dist/generators-Cc2InAz4.js","../../../../../plugin-mcp/dist/index.js","../../../../../plugin-msw/dist/components-Hy13rv6B.js","../../../../../plugin-msw/dist/generators-NHFKYOuW.js","../../../../../plugin-msw/dist/index.js","../../../../../plugin-react-query/dist/chunk--u3MIqq1.js","../../../../../plugin-react-query/dist/components-BMhCuuyw.js","../../../../../plugin-react-query/dist/generators-NQ_wqrMC.js","../../../../../plugin-react-query/dist/index.js","../../../../../adapter-oas/dist/index.js","../../../../../plugin-redoc/dist/index.js","../../../../../plugin-solid-query/dist/chunk--u3MIqq1.js","../../../../../plugin-solid-query/dist/components-C3Y0aR6S.js","../../../../../plugin-solid-query/dist/generators-CDkOFlnm.js","../../../../../plugin-solid-query/dist/index.js","../../../../../plugin-svelte-query/dist/chunk--u3MIqq1.js","../../../../../plugin-svelte-query/dist/components-C4oLO5tl.js","../../../../../plugin-svelte-query/dist/generators-DMAW4pIS.js","../../../../../plugin-svelte-query/dist/index.js","../../../../../plugin-swr/dist/chunk--u3MIqq1.js","../../../../../plugin-swr/dist/components-BWYZa8xS.js","../../../../../plugin-swr/dist/generators-DKQE6KOX.js","../../../../../plugin-swr/dist/index.js","../../../../../plugin-vue-query/dist/chunk--u3MIqq1.js","../../../../../plugin-vue-query/dist/components-FCfsweek.js","../../../../../plugin-vue-query/dist/generators-BqBPe_sx.js","../../../../../plugin-vue-query/dist/index.js","../../../../server/utils/resolvePlugins.ts","../../../../server/utils/mergePlugins.ts","../../../../server/utils/publish.ts","../../../../server/utils/setupHookListener.ts","../../../../server/utils/ws.ts","../../../../server/utils/connectStudio.ts","../../../../server/plugins/studio.ts","../../../../../../node_modules/.pnpm/nitropack@2.13.2_encoding@0.1.13_rolldown@1.0.0-rc.12/node_modules/nitropack/dist/runtime/internal/app.mjs","../../../../../../node_modules/.pnpm/nitropack@2.13.2_encoding@0.1.13_rolldown@1.0.0-rc.12/node_modules/nitropack/dist/runtime/internal/lib/http-graceful-shutdown.mjs","../../../../../../node_modules/.pnpm/nitropack@2.13.2_encoding@0.1.13_rolldown@1.0.0-rc.12/node_modules/nitropack/dist/runtime/internal/shutdown.mjs","../../../../../../node_modules/.pnpm/nitropack@2.13.2_encoding@0.1.13_rolldown@1.0.0-rc.12/node_modules/nitropack/dist/presets/node/runtime/node-server.mjs"],"names":["createRouter","f","h","i","l","createError","mergeHeaders","s","nodeFetch","Headers","Headers$1","AbortController$1","stringify","normalizeKey","defineDriver","DRIVER_NAME","createStorage","fsPromises","PATH_TRAVERSE_RE","fsp","snakeCase","_inlineAppConfig","createRadixRouter","formatMs","_a","process","toCamelOrPascal","applyToFileParts","camelCase","isValidVarName","__privateAdd","__privateGet","pascalCase","path","readFile","writeFile","URLPath","_b","_URLPath_instances","__publicField","_options","__privateSet","__privateMethod","transformParam_fn","eachParam_fn","match","Node","Queue","_head","_tail","_size","__privateWrapper","pLimit","validateConcurrency","resolve","_c","plugin","extname","performance","build","readdir","version","_d","_e","_f","renderOperation","renderSchema","x","item","trimExtName","defaultResolver","error","__defProp","__name","isPlainObject","parse","loadConfig","schema","params","_context","trimQuotes","schemas","normalizedSchema","name","min","max","getParams$1","getParams","Operations","validate","oas","options","jsStringEscape","toRegExpString","Type","siblings","require","global","modifiers","questionToken","transform","node","presets","operationsGenerator","source","Function","baseURL","source$2","Response","getNestedAccessor","getTransformer$1","MutationKey","getParams$9","getTransformer","QueryKey","getParams$8","QueryOptions","getParams$7","InfiniteQuery","getParams$6","InfiniteQueryOptions","getParams$5","getParams$4","Mutation","getParams$3","Query","getParams$2","operations","fs","infiniteQueryGenerator","mutationGenerator","queryGenerator","__filename","__dirname","pkg","generics","nitroApp","callNodeRequestHandler","fetchNodeRequestHandler","gracefulShutdown","HttpsServer","HttpServer"],"mappings":"","x_google_ignoreList":[0,1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,16,17,18,19,20,21,22,23,24,25,26,27,28,29,30,55,106,107,108,109]}
|
package/.output/server/node_modules/.nitro/{picomatch@4.0.3 → picomatch@4.0.4}/lib/constants.js
RENAMED
|
@@ -3,6 +3,8 @@
|
|
|
3
3
|
const WIN_SLASH = '\\\\/';
|
|
4
4
|
const WIN_NO_SLASH = `[^${WIN_SLASH}]`;
|
|
5
5
|
|
|
6
|
+
const DEFAULT_MAX_EXTGLOB_RECURSION = 0;
|
|
7
|
+
|
|
6
8
|
/**
|
|
7
9
|
* Posix glob regex
|
|
8
10
|
*/
|
|
@@ -69,6 +71,7 @@ const WINDOWS_CHARS = {
|
|
|
69
71
|
*/
|
|
70
72
|
|
|
71
73
|
const POSIX_REGEX_SOURCE = {
|
|
74
|
+
__proto__: null,
|
|
72
75
|
alnum: 'a-zA-Z0-9',
|
|
73
76
|
alpha: 'a-zA-Z',
|
|
74
77
|
ascii: '\\x00-\\x7F',
|
|
@@ -86,6 +89,7 @@ const POSIX_REGEX_SOURCE = {
|
|
|
86
89
|
};
|
|
87
90
|
|
|
88
91
|
module.exports = {
|
|
92
|
+
DEFAULT_MAX_EXTGLOB_RECURSION,
|
|
89
93
|
MAX_LENGTH: 1024 * 64,
|
|
90
94
|
POSIX_REGEX_SOURCE,
|
|
91
95
|
|
|
@@ -45,6 +45,277 @@ const syntaxError = (type, char) => {
|
|
|
45
45
|
return `Missing ${type}: "${char}" - use "\\\\${char}" to match literal characters`;
|
|
46
46
|
};
|
|
47
47
|
|
|
48
|
+
const splitTopLevel = input => {
|
|
49
|
+
const parts = [];
|
|
50
|
+
let bracket = 0;
|
|
51
|
+
let paren = 0;
|
|
52
|
+
let quote = 0;
|
|
53
|
+
let value = '';
|
|
54
|
+
let escaped = false;
|
|
55
|
+
|
|
56
|
+
for (const ch of input) {
|
|
57
|
+
if (escaped === true) {
|
|
58
|
+
value += ch;
|
|
59
|
+
escaped = false;
|
|
60
|
+
continue;
|
|
61
|
+
}
|
|
62
|
+
|
|
63
|
+
if (ch === '\\') {
|
|
64
|
+
value += ch;
|
|
65
|
+
escaped = true;
|
|
66
|
+
continue;
|
|
67
|
+
}
|
|
68
|
+
|
|
69
|
+
if (ch === '"') {
|
|
70
|
+
quote = quote === 1 ? 0 : 1;
|
|
71
|
+
value += ch;
|
|
72
|
+
continue;
|
|
73
|
+
}
|
|
74
|
+
|
|
75
|
+
if (quote === 0) {
|
|
76
|
+
if (ch === '[') {
|
|
77
|
+
bracket++;
|
|
78
|
+
} else if (ch === ']' && bracket > 0) {
|
|
79
|
+
bracket--;
|
|
80
|
+
} else if (bracket === 0) {
|
|
81
|
+
if (ch === '(') {
|
|
82
|
+
paren++;
|
|
83
|
+
} else if (ch === ')' && paren > 0) {
|
|
84
|
+
paren--;
|
|
85
|
+
} else if (ch === '|' && paren === 0) {
|
|
86
|
+
parts.push(value);
|
|
87
|
+
value = '';
|
|
88
|
+
continue;
|
|
89
|
+
}
|
|
90
|
+
}
|
|
91
|
+
}
|
|
92
|
+
|
|
93
|
+
value += ch;
|
|
94
|
+
}
|
|
95
|
+
|
|
96
|
+
parts.push(value);
|
|
97
|
+
return parts;
|
|
98
|
+
};
|
|
99
|
+
|
|
100
|
+
const isPlainBranch = branch => {
|
|
101
|
+
let escaped = false;
|
|
102
|
+
|
|
103
|
+
for (const ch of branch) {
|
|
104
|
+
if (escaped === true) {
|
|
105
|
+
escaped = false;
|
|
106
|
+
continue;
|
|
107
|
+
}
|
|
108
|
+
|
|
109
|
+
if (ch === '\\') {
|
|
110
|
+
escaped = true;
|
|
111
|
+
continue;
|
|
112
|
+
}
|
|
113
|
+
|
|
114
|
+
if (/[?*+@!()[\]{}]/.test(ch)) {
|
|
115
|
+
return false;
|
|
116
|
+
}
|
|
117
|
+
}
|
|
118
|
+
|
|
119
|
+
return true;
|
|
120
|
+
};
|
|
121
|
+
|
|
122
|
+
const normalizeSimpleBranch = branch => {
|
|
123
|
+
let value = branch.trim();
|
|
124
|
+
let changed = true;
|
|
125
|
+
|
|
126
|
+
while (changed === true) {
|
|
127
|
+
changed = false;
|
|
128
|
+
|
|
129
|
+
if (/^@\([^\\()[\]{}|]+\)$/.test(value)) {
|
|
130
|
+
value = value.slice(2, -1);
|
|
131
|
+
changed = true;
|
|
132
|
+
}
|
|
133
|
+
}
|
|
134
|
+
|
|
135
|
+
if (!isPlainBranch(value)) {
|
|
136
|
+
return;
|
|
137
|
+
}
|
|
138
|
+
|
|
139
|
+
return value.replace(/\\(.)/g, '$1');
|
|
140
|
+
};
|
|
141
|
+
|
|
142
|
+
const hasRepeatedCharPrefixOverlap = branches => {
|
|
143
|
+
const values = branches.map(normalizeSimpleBranch).filter(Boolean);
|
|
144
|
+
|
|
145
|
+
for (let i = 0; i < values.length; i++) {
|
|
146
|
+
for (let j = i + 1; j < values.length; j++) {
|
|
147
|
+
const a = values[i];
|
|
148
|
+
const b = values[j];
|
|
149
|
+
const char = a[0];
|
|
150
|
+
|
|
151
|
+
if (!char || a !== char.repeat(a.length) || b !== char.repeat(b.length)) {
|
|
152
|
+
continue;
|
|
153
|
+
}
|
|
154
|
+
|
|
155
|
+
if (a === b || a.startsWith(b) || b.startsWith(a)) {
|
|
156
|
+
return true;
|
|
157
|
+
}
|
|
158
|
+
}
|
|
159
|
+
}
|
|
160
|
+
|
|
161
|
+
return false;
|
|
162
|
+
};
|
|
163
|
+
|
|
164
|
+
const parseRepeatedExtglob = (pattern, requireEnd = true) => {
|
|
165
|
+
if ((pattern[0] !== '+' && pattern[0] !== '*') || pattern[1] !== '(') {
|
|
166
|
+
return;
|
|
167
|
+
}
|
|
168
|
+
|
|
169
|
+
let bracket = 0;
|
|
170
|
+
let paren = 0;
|
|
171
|
+
let quote = 0;
|
|
172
|
+
let escaped = false;
|
|
173
|
+
|
|
174
|
+
for (let i = 1; i < pattern.length; i++) {
|
|
175
|
+
const ch = pattern[i];
|
|
176
|
+
|
|
177
|
+
if (escaped === true) {
|
|
178
|
+
escaped = false;
|
|
179
|
+
continue;
|
|
180
|
+
}
|
|
181
|
+
|
|
182
|
+
if (ch === '\\') {
|
|
183
|
+
escaped = true;
|
|
184
|
+
continue;
|
|
185
|
+
}
|
|
186
|
+
|
|
187
|
+
if (ch === '"') {
|
|
188
|
+
quote = quote === 1 ? 0 : 1;
|
|
189
|
+
continue;
|
|
190
|
+
}
|
|
191
|
+
|
|
192
|
+
if (quote === 1) {
|
|
193
|
+
continue;
|
|
194
|
+
}
|
|
195
|
+
|
|
196
|
+
if (ch === '[') {
|
|
197
|
+
bracket++;
|
|
198
|
+
continue;
|
|
199
|
+
}
|
|
200
|
+
|
|
201
|
+
if (ch === ']' && bracket > 0) {
|
|
202
|
+
bracket--;
|
|
203
|
+
continue;
|
|
204
|
+
}
|
|
205
|
+
|
|
206
|
+
if (bracket > 0) {
|
|
207
|
+
continue;
|
|
208
|
+
}
|
|
209
|
+
|
|
210
|
+
if (ch === '(') {
|
|
211
|
+
paren++;
|
|
212
|
+
continue;
|
|
213
|
+
}
|
|
214
|
+
|
|
215
|
+
if (ch === ')') {
|
|
216
|
+
paren--;
|
|
217
|
+
|
|
218
|
+
if (paren === 0) {
|
|
219
|
+
if (requireEnd === true && i !== pattern.length - 1) {
|
|
220
|
+
return;
|
|
221
|
+
}
|
|
222
|
+
|
|
223
|
+
return {
|
|
224
|
+
type: pattern[0],
|
|
225
|
+
body: pattern.slice(2, i),
|
|
226
|
+
end: i
|
|
227
|
+
};
|
|
228
|
+
}
|
|
229
|
+
}
|
|
230
|
+
}
|
|
231
|
+
};
|
|
232
|
+
|
|
233
|
+
const getStarExtglobSequenceOutput = pattern => {
|
|
234
|
+
let index = 0;
|
|
235
|
+
const chars = [];
|
|
236
|
+
|
|
237
|
+
while (index < pattern.length) {
|
|
238
|
+
const match = parseRepeatedExtglob(pattern.slice(index), false);
|
|
239
|
+
|
|
240
|
+
if (!match || match.type !== '*') {
|
|
241
|
+
return;
|
|
242
|
+
}
|
|
243
|
+
|
|
244
|
+
const branches = splitTopLevel(match.body).map(branch => branch.trim());
|
|
245
|
+
if (branches.length !== 1) {
|
|
246
|
+
return;
|
|
247
|
+
}
|
|
248
|
+
|
|
249
|
+
const branch = normalizeSimpleBranch(branches[0]);
|
|
250
|
+
if (!branch || branch.length !== 1) {
|
|
251
|
+
return;
|
|
252
|
+
}
|
|
253
|
+
|
|
254
|
+
chars.push(branch);
|
|
255
|
+
index += match.end + 1;
|
|
256
|
+
}
|
|
257
|
+
|
|
258
|
+
if (chars.length < 1) {
|
|
259
|
+
return;
|
|
260
|
+
}
|
|
261
|
+
|
|
262
|
+
const source = chars.length === 1
|
|
263
|
+
? utils.escapeRegex(chars[0])
|
|
264
|
+
: `[${chars.map(ch => utils.escapeRegex(ch)).join('')}]`;
|
|
265
|
+
|
|
266
|
+
return `${source}*`;
|
|
267
|
+
};
|
|
268
|
+
|
|
269
|
+
const repeatedExtglobRecursion = pattern => {
|
|
270
|
+
let depth = 0;
|
|
271
|
+
let value = pattern.trim();
|
|
272
|
+
let match = parseRepeatedExtglob(value);
|
|
273
|
+
|
|
274
|
+
while (match) {
|
|
275
|
+
depth++;
|
|
276
|
+
value = match.body.trim();
|
|
277
|
+
match = parseRepeatedExtglob(value);
|
|
278
|
+
}
|
|
279
|
+
|
|
280
|
+
return depth;
|
|
281
|
+
};
|
|
282
|
+
|
|
283
|
+
const analyzeRepeatedExtglob = (body, options) => {
|
|
284
|
+
if (options.maxExtglobRecursion === false) {
|
|
285
|
+
return { risky: false };
|
|
286
|
+
}
|
|
287
|
+
|
|
288
|
+
const max =
|
|
289
|
+
typeof options.maxExtglobRecursion === 'number'
|
|
290
|
+
? options.maxExtglobRecursion
|
|
291
|
+
: constants.DEFAULT_MAX_EXTGLOB_RECURSION;
|
|
292
|
+
|
|
293
|
+
const branches = splitTopLevel(body).map(branch => branch.trim());
|
|
294
|
+
|
|
295
|
+
if (branches.length > 1) {
|
|
296
|
+
if (
|
|
297
|
+
branches.some(branch => branch === '') ||
|
|
298
|
+
branches.some(branch => /^[*?]+$/.test(branch)) ||
|
|
299
|
+
hasRepeatedCharPrefixOverlap(branches)
|
|
300
|
+
) {
|
|
301
|
+
return { risky: true };
|
|
302
|
+
}
|
|
303
|
+
}
|
|
304
|
+
|
|
305
|
+
for (const branch of branches) {
|
|
306
|
+
const safeOutput = getStarExtglobSequenceOutput(branch);
|
|
307
|
+
if (safeOutput) {
|
|
308
|
+
return { risky: true, safeOutput };
|
|
309
|
+
}
|
|
310
|
+
|
|
311
|
+
if (repeatedExtglobRecursion(branch) > max) {
|
|
312
|
+
return { risky: true };
|
|
313
|
+
}
|
|
314
|
+
}
|
|
315
|
+
|
|
316
|
+
return { risky: false };
|
|
317
|
+
};
|
|
318
|
+
|
|
48
319
|
/**
|
|
49
320
|
* Parse the given input string.
|
|
50
321
|
* @param {String} input
|
|
@@ -225,6 +496,8 @@ const parse = (input, options) => {
|
|
|
225
496
|
token.prev = prev;
|
|
226
497
|
token.parens = state.parens;
|
|
227
498
|
token.output = state.output;
|
|
499
|
+
token.startIndex = state.index;
|
|
500
|
+
token.tokensIndex = tokens.length;
|
|
228
501
|
const output = (opts.capture ? '(' : '') + token.open;
|
|
229
502
|
|
|
230
503
|
increment('parens');
|
|
@@ -234,6 +507,34 @@ const parse = (input, options) => {
|
|
|
234
507
|
};
|
|
235
508
|
|
|
236
509
|
const extglobClose = token => {
|
|
510
|
+
const literal = input.slice(token.startIndex, state.index + 1);
|
|
511
|
+
const body = input.slice(token.startIndex + 2, state.index);
|
|
512
|
+
const analysis = analyzeRepeatedExtglob(body, opts);
|
|
513
|
+
|
|
514
|
+
if ((token.type === 'plus' || token.type === 'star') && analysis.risky) {
|
|
515
|
+
const safeOutput = analysis.safeOutput
|
|
516
|
+
? (token.output ? '' : ONE_CHAR) + (opts.capture ? `(${analysis.safeOutput})` : analysis.safeOutput)
|
|
517
|
+
: undefined;
|
|
518
|
+
const open = tokens[token.tokensIndex];
|
|
519
|
+
|
|
520
|
+
open.type = 'text';
|
|
521
|
+
open.value = literal;
|
|
522
|
+
open.output = safeOutput || utils.escapeRegex(literal);
|
|
523
|
+
|
|
524
|
+
for (let i = token.tokensIndex + 1; i < tokens.length; i++) {
|
|
525
|
+
tokens[i].value = '';
|
|
526
|
+
tokens[i].output = '';
|
|
527
|
+
delete tokens[i].suffix;
|
|
528
|
+
}
|
|
529
|
+
|
|
530
|
+
state.output = token.output + open.output;
|
|
531
|
+
state.backtrack = true;
|
|
532
|
+
|
|
533
|
+
push({ type: 'paren', extglob: true, value, output: '' });
|
|
534
|
+
decrement('parens');
|
|
535
|
+
return;
|
|
536
|
+
}
|
|
537
|
+
|
|
237
538
|
let output = token.close + (opts.capture ? ')' : '');
|
|
238
539
|
let rest;
|
|
239
540
|
|
package/.output/server/node_modules/.nitro/{picomatch@4.0.3 → picomatch@4.0.4}/lib/picomatch.js
RENAMED
|
@@ -233,6 +233,14 @@ picomatch.scan = (input, options) => scan(input, options);
|
|
|
233
233
|
* Compile a regular expression from the `state` object returned by the
|
|
234
234
|
* [parse()](#parse) method.
|
|
235
235
|
*
|
|
236
|
+
* ```js
|
|
237
|
+
* const picomatch = require('picomatch');
|
|
238
|
+
* const state = picomatch.parse('*.js');
|
|
239
|
+
* // picomatch.compileRe(state[, options]);
|
|
240
|
+
*
|
|
241
|
+
* console.log(picomatch.compileRe(state));
|
|
242
|
+
* //=> /^(?:(?!\.)(?=.)[^/]*?\.js)$/
|
|
243
|
+
* ```
|
|
236
244
|
* @param {Object} `state`
|
|
237
245
|
* @param {Object} `options`
|
|
238
246
|
* @param {Boolean} `returnOutput` Intended for implementors, this argument allows you to return the raw output from the parser.
|
|
@@ -268,10 +276,10 @@ picomatch.compileRe = (state, options, returnOutput = false, returnState = false
|
|
|
268
276
|
*
|
|
269
277
|
* ```js
|
|
270
278
|
* const picomatch = require('picomatch');
|
|
271
|
-
*
|
|
272
|
-
* // picomatch.compileRe(state[, options]);
|
|
279
|
+
* // picomatch.makeRe(state[, options]);
|
|
273
280
|
*
|
|
274
|
-
*
|
|
281
|
+
* const result = picomatch.makeRe('*.js');
|
|
282
|
+
* console.log(result);
|
|
275
283
|
* //=> /^(?:(?!\.)(?=.)[^/]*?\.js)$/
|
|
276
284
|
* ```
|
|
277
285
|
* @param {String} `state` The object returned from the `.parse` method.
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "picomatch",
|
|
3
3
|
"description": "Blazing fast and accurate glob matcher written in JavaScript, with no dependencies and full support for standard and extended Bash glob features, including braces, extglobs, POSIX brackets, and regular expressions.",
|
|
4
|
-
"version": "4.0.
|
|
4
|
+
"version": "4.0.4",
|
|
5
5
|
"homepage": "https://github.com/micromatch/picomatch",
|
|
6
6
|
"author": "Jon Schlinkert (https://github.com/jonschlinkert)",
|
|
7
7
|
"funding": "https://github.com/sponsors/jonschlinkert",
|
|
@@ -32,8 +32,7 @@
|
|
|
32
32
|
"fill-range": "^7.0.1",
|
|
33
33
|
"gulp-format-md": "^2.0.0",
|
|
34
34
|
"mocha": "^10.4.0",
|
|
35
|
-
"nyc": "^15.1.0"
|
|
36
|
-
"time-require": "github:jonschlinkert/time-require"
|
|
35
|
+
"nyc": "^15.1.0"
|
|
37
36
|
},
|
|
38
37
|
"keywords": [
|
|
39
38
|
"glob",
|
|
@@ -28,6 +28,7 @@ exports.themeConfigSchema = {
|
|
|
28
28
|
search: ex_theme_config_schemas_1.searchConfigSchema,
|
|
29
29
|
aiAssistant: ex_theme_config_schemas_1.aiAssistantSchema,
|
|
30
30
|
colorMode: ex_theme_config_schemas_1.colorModeConfigSchema,
|
|
31
|
+
palette: ex_theme_config_schemas_1.paletteConfigSchema,
|
|
31
32
|
navigation: ex_theme_config_schemas_1.navigationConfigSchema,
|
|
32
33
|
codeSnippet: ex_theme_config_schemas_1.codeSnippetConfigSchema,
|
|
33
34
|
markdown: ex_theme_config_schemas_1.markdownConfigSchema,
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.scorecardConfigSchema = exports.catalogsConfigSchema = exports.catalogSchema = exports.catalogFilterSchema = exports.breadcrumbsConfigSchema = exports.versionPickerConfigSchema = exports.userMenuConfigSchema = exports.analyticsConfigSchema = exports.googleAnalyticsConfigSchema = exports.productGoogleAnalyticsConfigSchema = exports.gtmAnalyticsConfigSchema = exports.segmentAnalyticsConfigSchema = exports.rudderstackAnalyticsConfigSchema = exports.heapAnalyticsConfigSchema = exports.fullstoryAnalyticsConfigSchema = exports.amplitudeAnalyticsConfigSchema = exports.asyncapiConfigSchema = exports.openapiConfigSchema = exports.markdownConfigSchema = exports.codeSnippetConfigSchema = exports.navigationConfigSchema = exports.colorModeConfigSchema = exports.aiAssistantSchema = exports.searchConfigSchema = exports.linksConfigSchema = exports.scriptsConfigSchema = exports.sidebarConfigSchema = exports.footerConfigSchema = exports.productsConfigSchema = exports.navbarConfigSchema = exports.logoConfigSchema = exports.searchFiltersConfigSchema = exports.searchFacetsConfigSchema = exports.aiSearchConfigSchema = exports.productConfigSchema = exports.navItemsSchema = void 0;
|
|
3
|
+
exports.scorecardConfigSchema = exports.catalogsConfigSchema = exports.catalogSchema = exports.catalogFilterSchema = exports.breadcrumbsConfigSchema = exports.versionPickerConfigSchema = exports.userMenuConfigSchema = exports.analyticsConfigSchema = exports.googleAnalyticsConfigSchema = exports.productGoogleAnalyticsConfigSchema = exports.gtmAnalyticsConfigSchema = exports.segmentAnalyticsConfigSchema = exports.rudderstackAnalyticsConfigSchema = exports.heapAnalyticsConfigSchema = exports.fullstoryAnalyticsConfigSchema = exports.amplitudeAnalyticsConfigSchema = exports.asyncapiConfigSchema = exports.openapiConfigSchema = exports.markdownConfigSchema = exports.codeSnippetConfigSchema = exports.navigationConfigSchema = exports.paletteConfigSchema = exports.colorModeConfigSchema = exports.aiAssistantSchema = exports.searchConfigSchema = exports.linksConfigSchema = exports.scriptsConfigSchema = exports.sidebarConfigSchema = exports.footerConfigSchema = exports.productsConfigSchema = exports.navbarConfigSchema = exports.logoConfigSchema = exports.searchFiltersConfigSchema = exports.searchFacetsConfigSchema = exports.aiSearchConfigSchema = exports.productConfigSchema = exports.navItemsSchema = void 0;
|
|
4
4
|
const redoc_config_schema_1 = require("./redoc-config-schema");
|
|
5
5
|
const reference_docs_config_schema_1 = require("./reference-docs-config-schema");
|
|
6
6
|
const common_1 = require("./common");
|
|
@@ -275,6 +275,11 @@ exports.colorModeConfigSchema = {
|
|
|
275
275
|
} }, hideConfigSchema.properties),
|
|
276
276
|
additionalProperties: false,
|
|
277
277
|
};
|
|
278
|
+
exports.paletteConfigSchema = {
|
|
279
|
+
type: 'string',
|
|
280
|
+
enum: ['slate', 'pink', 'coral', 'amber', 'jade', 'cyan', 'ocean', 'indigo', 'iris', 'default'],
|
|
281
|
+
default: 'default',
|
|
282
|
+
};
|
|
278
283
|
const navigationActionsConfigSchema = {
|
|
279
284
|
type: 'object',
|
|
280
285
|
properties: Object.assign(Object.assign({}, hideConfigSchema.properties), { items: {
|
|
@@ -555,7 +555,7 @@ exports.redoclyConfigSchema = {
|
|
|
555
555
|
*/
|
|
556
556
|
theme: default_theme_config_schema_1.themeConfigSchema, reunite: reunite_config_schema_1.reuniteConfigSchema,
|
|
557
557
|
// Ex theme properties
|
|
558
|
-
logo: ex_theme_config_schemas_1.logoConfigSchema, navbar: ex_theme_config_schemas_1.navbarConfigSchema, products: ex_theme_config_schemas_1.productsConfigSchema, footer: ex_theme_config_schemas_1.footerConfigSchema, sidebar: ex_theme_config_schemas_1.sidebarConfigSchema, scripts: ex_theme_config_schemas_1.scriptsConfigSchema, links: ex_theme_config_schemas_1.linksConfigSchema, feedback: feedback_config_schema_1.feedbackConfigSchema, search: ex_theme_config_schemas_1.searchConfigSchema, aiAssistant: ex_theme_config_schemas_1.aiAssistantSchema, colorMode: ex_theme_config_schemas_1.colorModeConfigSchema, navigation: ex_theme_config_schemas_1.navigationConfigSchema, codeSnippet: ex_theme_config_schemas_1.codeSnippetConfigSchema, markdown: ex_theme_config_schemas_1.markdownConfigSchema, openapi: ex_theme_config_schemas_1.openapiConfigSchema, graphql: graphql_config_schema_1.graphqlConfigSchema, analytics: ex_theme_config_schemas_1.analyticsConfigSchema, userMenu: ex_theme_config_schemas_1.userMenuConfigSchema, versionPicker: ex_theme_config_schemas_1.versionPickerConfigSchema, breadcrumbs: ex_theme_config_schemas_1.breadcrumbsConfigSchema,
|
|
558
|
+
logo: ex_theme_config_schemas_1.logoConfigSchema, navbar: ex_theme_config_schemas_1.navbarConfigSchema, products: ex_theme_config_schemas_1.productsConfigSchema, footer: ex_theme_config_schemas_1.footerConfigSchema, sidebar: ex_theme_config_schemas_1.sidebarConfigSchema, scripts: ex_theme_config_schemas_1.scriptsConfigSchema, links: ex_theme_config_schemas_1.linksConfigSchema, feedback: feedback_config_schema_1.feedbackConfigSchema, search: ex_theme_config_schemas_1.searchConfigSchema, aiAssistant: ex_theme_config_schemas_1.aiAssistantSchema, colorMode: ex_theme_config_schemas_1.colorModeConfigSchema, palette: ex_theme_config_schemas_1.paletteConfigSchema, navigation: ex_theme_config_schemas_1.navigationConfigSchema, codeSnippet: ex_theme_config_schemas_1.codeSnippetConfigSchema, markdown: ex_theme_config_schemas_1.markdownConfigSchema, openapi: ex_theme_config_schemas_1.openapiConfigSchema, graphql: graphql_config_schema_1.graphqlConfigSchema, analytics: ex_theme_config_schemas_1.analyticsConfigSchema, userMenu: ex_theme_config_schemas_1.userMenuConfigSchema, versionPicker: ex_theme_config_schemas_1.versionPickerConfigSchema, breadcrumbs: ex_theme_config_schemas_1.breadcrumbsConfigSchema,
|
|
559
559
|
/**
|
|
560
560
|
* @deprecated Should use `catalogClassic` instead
|
|
561
561
|
*/
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { isAbsoluteUrl, replaceRef, isExternalValue, isRef, refBaseName } from '../ref-utils.js';
|
|
1
|
+
import { isAbsoluteUrl, replaceRef, isExternalValue, isRef, refBaseName, } from '../ref-utils.js';
|
|
2
2
|
import { reportUnresolvedRef } from '../rules/common/no-unresolved-refs.js';
|
|
3
3
|
import { dequal } from '../utils/dequal.js';
|
|
4
4
|
import { isTruthy } from '../utils/is-truthy.js';
|
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
import { CONFIG_BUNDLER_VISITOR_ID, PLUGINS_COLLECTOR_VISITOR_ID } from '../config/constants.js';
|
|
2
|
-
import { configBundlerVisitor, pluginsCollectorVisitor } from '../config/visitors.js';
|
|
2
|
+
import { configBundlerVisitor, pluginsCollectorVisitor, } from '../config/visitors.js';
|
|
3
3
|
import { detectSpec } from '../detect-spec.js';
|
|
4
4
|
import { getTypes } from '../oas-types.js';
|
|
5
|
-
import { BaseResolver, makeDocumentFromString } from '../resolve.js';
|
|
5
|
+
import { BaseResolver, makeDocumentFromString, } from '../resolve.js';
|
|
6
6
|
import { NormalizedConfigTypes } from '../types/redocly-yaml.js';
|
|
7
7
|
import { walkDocument } from '../walk.js';
|
|
8
8
|
import { bundleDocument } from './bundle-document.js';
|
|
@@ -8,6 +8,7 @@ export function bundleExtends({ node, ctx, plugins, }) {
|
|
|
8
8
|
return node;
|
|
9
9
|
}
|
|
10
10
|
const resolvedExtends = (node.extends || [])
|
|
11
|
+
.filter(isTruthy)
|
|
11
12
|
.map((presetItem) => {
|
|
12
13
|
if (!isAbsoluteUrl(presetItem) && !path.extname(presetItem)) {
|
|
13
14
|
return resolvePreset(presetItem, plugins);
|
|
@@ -6,7 +6,7 @@ import { bundleConfig, collectConfigPlugins } from '../bundle/bundle.js';
|
|
|
6
6
|
import { isBrowser } from '../env.js';
|
|
7
7
|
import { colorize, logger } from '../logger.js';
|
|
8
8
|
import { isAbsoluteUrl } from '../ref-utils.js';
|
|
9
|
-
import { resolveDocument, BaseResolver, Source } from '../resolve.js';
|
|
9
|
+
import { resolveDocument, BaseResolver, Source, } from '../resolve.js';
|
|
10
10
|
import { NormalizedConfigTypes } from '../types/redocly-yaml.js';
|
|
11
11
|
import { isDefined } from '../utils/is-defined.js';
|
|
12
12
|
import { isNotString } from '../utils/is-not-string.js';
|
|
@@ -23,7 +23,10 @@ export async function resolveConfig({ rawConfigDocument, configPath, externalRef
|
|
|
23
23
|
if (customExtends !== undefined && isPlainObject(config)) {
|
|
24
24
|
config.extends = customExtends;
|
|
25
25
|
}
|
|
26
|
-
if (isPlainObject(config) &&
|
|
26
|
+
if (isPlainObject(config) &&
|
|
27
|
+
(config?.extends?.some(isNotString) ||
|
|
28
|
+
config?.scorecardClassic?.levels?.some((level) => level?.extends?.some(isNotString)) ||
|
|
29
|
+
config?.scorecard?.levels?.some((level) => level?.extends?.some(isNotString)))) {
|
|
27
30
|
throw new Error(`Configuration format not detected in extends: values must be strings.`);
|
|
28
31
|
}
|
|
29
32
|
const rootDocument = rawConfigDocument ?? {
|
|
@@ -90,9 +93,11 @@ export const preResolvePluginPath = (plugin, base, rootConfigDir) => {
|
|
|
90
93
|
return plugin;
|
|
91
94
|
}
|
|
92
95
|
const maybeAbsolutePluginPath = path.resolve(path.dirname(base), plugin);
|
|
93
|
-
|
|
94
|
-
|
|
95
|
-
|
|
96
|
+
if (fs.existsSync(maybeAbsolutePluginPath)) {
|
|
97
|
+
return { absolutePath: maybeAbsolutePluginPath, rawPath: plugin, isModule: false };
|
|
98
|
+
}
|
|
99
|
+
try {
|
|
100
|
+
return {
|
|
96
101
|
absolutePath: module.createRequire(import.meta.url ?? __dirname).resolve(plugin, {
|
|
97
102
|
paths: [
|
|
98
103
|
// Plugins imported from the node_modules in the project directory
|
|
@@ -104,6 +109,10 @@ export const preResolvePluginPath = (plugin, base, rootConfigDir) => {
|
|
|
104
109
|
isModule: true,
|
|
105
110
|
rawPath: plugin,
|
|
106
111
|
};
|
|
112
|
+
}
|
|
113
|
+
catch {
|
|
114
|
+
throw new Error(`Plugin "${plugin}" not found.`);
|
|
115
|
+
}
|
|
107
116
|
};
|
|
108
117
|
export async function resolvePlugins(plugins, configDir) {
|
|
109
118
|
if (!plugins)
|
|
@@ -8,7 +8,7 @@ import { NoUnresolvedRefs } from './rules/common/no-unresolved-refs.js';
|
|
|
8
8
|
import { Struct } from './rules/common/struct.js';
|
|
9
9
|
import { normalizeTypes } from './types/index.js';
|
|
10
10
|
import { createConfigTypes } from './types/redocly-yaml.js';
|
|
11
|
-
import { normalizeVisitors } from './visitors.js';
|
|
11
|
+
import { normalizeVisitors, } from './visitors.js';
|
|
12
12
|
import { walkDocument } from './walk.js';
|
|
13
13
|
// FIXME: remove this once we remove `theme` from the schema
|
|
14
14
|
const { theme: _, ...propertiesWithoutTheme } = rootRedoclyConfigSchema.properties;
|
package/.output/server/node_modules/@redocly/openapi-core/lib/types/json-schema-draft7.shared.js
CHANGED
|
@@ -83,7 +83,7 @@ export const Dependencies = {
|
|
|
83
83
|
export const DiscriminatorMapping = {
|
|
84
84
|
properties: {},
|
|
85
85
|
additionalProperties: (value) => {
|
|
86
|
-
if (isMappingRef(value)) {
|
|
86
|
+
if (typeof value === 'string' && isMappingRef(value)) {
|
|
87
87
|
return { type: 'string', directResolveAs: 'Schema' };
|
|
88
88
|
}
|
|
89
89
|
else {
|
|
@@ -242,7 +242,7 @@ const Header = {
|
|
|
242
242
|
multipleOf: { type: 'number' },
|
|
243
243
|
},
|
|
244
244
|
required(value) {
|
|
245
|
-
if (value && value.type === 'array') {
|
|
245
|
+
if (value && typeof value === 'object' && 'type' in value && value.type === 'array') {
|
|
246
246
|
return ['type', 'items'];
|
|
247
247
|
}
|
|
248
248
|
else {
|
|
@@ -581,7 +581,7 @@ const SchemaProperties = {
|
|
|
581
581
|
const DiscriminatorMapping = {
|
|
582
582
|
properties: {},
|
|
583
583
|
additionalProperties: (value) => {
|
|
584
|
-
if (isMappingRef(value)) {
|
|
584
|
+
if (typeof value === 'string' && isMappingRef(value)) {
|
|
585
585
|
return { type: 'string', directResolveAs: 'Schema' };
|
|
586
586
|
}
|
|
587
587
|
else {
|