@kubb/agent 4.33.5 → 4.34.0
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 +22 -4176
- package/.output/server/chunks/nitro/nitro.mjs.map +1 -1
- package/.output/server/chunks/routes/api/health.get.mjs +1 -0
- package/.output/server/chunks/routes/api/health.get.mjs.map +1 -1
- package/.output/server/index.mjs +1 -0
- package/.output/server/index.mjs.map +1 -1
- package/.output/server/node_modules/@stoplight/ordered-object-literal/package.json +53 -0
- package/.output/server/node_modules/@stoplight/ordered-object-literal/src/index.cjs +221 -0
- package/.output/server/node_modules/@stoplight/types/dist/index.js +129 -0
- package/.output/server/node_modules/@stoplight/types/package.json +81 -0
- package/.output/server/node_modules/@stoplight/yaml/buildJsonPath.js +41 -0
- package/.output/server/node_modules/@stoplight/yaml/dereferenceAnchor.js +38 -0
- package/.output/server/node_modules/@stoplight/yaml/getJsonPathForPosition.js +98 -0
- package/.output/server/node_modules/@stoplight/yaml/getLocationForJsonPath.js +145 -0
- package/.output/server/node_modules/@stoplight/yaml/index.js +16 -0
- package/.output/server/node_modules/@stoplight/yaml/lineForPosition.js +31 -0
- package/.output/server/node_modules/@stoplight/yaml/package.json +33 -0
- package/.output/server/node_modules/@stoplight/yaml/parse.js +5 -0
- package/.output/server/node_modules/@stoplight/yaml/parseWithPointers.js +456 -0
- package/.output/server/node_modules/@stoplight/yaml/safeStringify.js +5 -0
- package/.output/server/node_modules/@stoplight/yaml/trapAccess.js +11 -0
- package/.output/server/node_modules/@stoplight/yaml/types.js +6 -0
- package/.output/server/node_modules/@stoplight/yaml/utils.js +4 -0
- package/.output/server/node_modules/@stoplight/yaml-ast-parser/dist/src/common.js +45 -0
- package/.output/server/node_modules/@stoplight/yaml-ast-parser/dist/src/dumper.js +710 -0
- package/.output/server/node_modules/@stoplight/yaml-ast-parser/dist/src/exception.js +35 -0
- package/.output/server/node_modules/@stoplight/yaml-ast-parser/dist/src/index.js +22 -0
- package/.output/server/node_modules/@stoplight/yaml-ast-parser/dist/src/loader.js +1414 -0
- package/.output/server/node_modules/@stoplight/yaml-ast-parser/dist/src/mark.js +58 -0
- package/.output/server/node_modules/@stoplight/yaml-ast-parser/dist/src/scalarInference.js +90 -0
- package/.output/server/node_modules/@stoplight/yaml-ast-parser/dist/src/schema/core.js +8 -0
- package/.output/server/node_modules/@stoplight/yaml-ast-parser/dist/src/schema/default_full.js +14 -0
- package/.output/server/node_modules/@stoplight/yaml-ast-parser/dist/src/schema/default_safe.js +19 -0
- package/.output/server/node_modules/@stoplight/yaml-ast-parser/dist/src/schema/failsafe.js +10 -0
- package/.output/server/node_modules/@stoplight/yaml-ast-parser/dist/src/schema/json.js +14 -0
- package/.output/server/node_modules/@stoplight/yaml-ast-parser/dist/src/schema.js +77 -0
- package/.output/server/node_modules/@stoplight/yaml-ast-parser/dist/src/type/binary.js +92 -0
- package/.output/server/node_modules/@stoplight/yaml-ast-parser/dist/src/type/bool.js +32 -0
- package/.output/server/node_modules/@stoplight/yaml-ast-parser/dist/src/type/float.js +94 -0
- package/.output/server/node_modules/@stoplight/yaml-ast-parser/dist/src/type/int.js +159 -0
- package/.output/server/node_modules/@stoplight/yaml-ast-parser/dist/src/type/js/regexp.js +64 -0
- package/.output/server/node_modules/@stoplight/yaml-ast-parser/dist/src/type/js/undefined.js +22 -0
- package/.output/server/node_modules/@stoplight/yaml-ast-parser/dist/src/type/map.js +7 -0
- package/.output/server/node_modules/@stoplight/yaml-ast-parser/dist/src/type/merge.js +10 -0
- package/.output/server/node_modules/@stoplight/yaml-ast-parser/dist/src/type/null.js +30 -0
- package/.output/server/node_modules/@stoplight/yaml-ast-parser/dist/src/type/omap.js +46 -0
- package/.output/server/node_modules/@stoplight/yaml-ast-parser/dist/src/type/pairs.js +55 -0
- package/.output/server/node_modules/@stoplight/yaml-ast-parser/dist/src/type/seq.js +7 -0
- package/.output/server/node_modules/@stoplight/yaml-ast-parser/dist/src/type/set.js +22 -0
- package/.output/server/node_modules/@stoplight/yaml-ast-parser/dist/src/type/str.js +7 -0
- package/.output/server/node_modules/@stoplight/yaml-ast-parser/dist/src/type/timestamp.js +70 -0
- package/.output/server/node_modules/@stoplight/yaml-ast-parser/dist/src/type.js +53 -0
- package/.output/server/node_modules/@stoplight/yaml-ast-parser/dist/src/yamlAST.js +81 -0
- package/.output/server/node_modules/@stoplight/yaml-ast-parser/package.json +38 -0
- package/.output/server/node_modules/tslib/package.json +47 -0
- package/.output/server/node_modules/tslib/tslib.js +484 -0
- package/.output/server/package.json +6 -1
- package/package.json +16 -16
|
@@ -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.5/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.4_db0@0.3.4_ioredis@5.9.3/node_modules/unstorage/dist/shared/unstorage.zVDD2mZo.mjs","../../../../../../node_modules/.pnpm/unstorage@1.17.4_db0@0.3.4_ioredis@5.9.3/node_modules/unstorage/dist/index.mjs","../../../../../../node_modules/.pnpm/unstorage@1.17.4_db0@0.3.4_ioredis@5.9.3/node_modules/unstorage/drivers/utils/index.mjs","../../../../../../node_modules/.pnpm/unstorage@1.17.4_db0@0.3.4_ioredis@5.9.3/node_modules/unstorage/drivers/utils/node-fs.mjs","../../../../../../node_modules/.pnpm/unstorage@1.17.4_db0@0.3.4_ioredis@5.9.3/node_modules/unstorage/drivers/fs.mjs","../../../../../../node_modules/.pnpm/unstorage@1.17.4_db0@0.3.4_ioredis@5.9.3/node_modules/unstorage/drivers/fs-lite.mjs","../../../../../../node_modules/.pnpm/nitropack@2.13.1_encoding@0.1.13_rolldown@1.0.0-rc.9/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.1_encoding@0.1.13_rolldown@1.0.0-rc.9/node_modules/nitropack/dist/runtime/internal/hash.mjs","../../../../../../node_modules/.pnpm/nitropack@2.13.1_encoding@0.1.13_rolldown@1.0.0-rc.9/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.1_encoding@0.1.13_rolldown@1.0.0-rc.9/node_modules/nitropack/dist/runtime/internal/utils.env.mjs","../../../../../../node_modules/.pnpm/nitropack@2.13.1_encoding@0.1.13_rolldown@1.0.0-rc.9/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.1_encoding@0.1.13_rolldown@1.0.0-rc.9/node_modules/nitropack/dist/runtime/internal/context.mjs","../../../../../../node_modules/.pnpm/nitropack@2.13.1_encoding@0.1.13_rolldown@1.0.0-rc.9/node_modules/nitropack/dist/runtime/internal/route-rules.mjs","../../../../../../node_modules/.pnpm/nitropack@2.13.1_encoding@0.1.13_rolldown@1.0.0-rc.9/node_modules/nitropack/dist/runtime/internal/utils.mjs","../../../../../../node_modules/.pnpm/nitropack@2.13.1_encoding@0.1.13_rolldown@1.0.0-rc.9/node_modules/nitropack/dist/runtime/internal/error/utils.mjs","../../../../../../node_modules/.pnpm/nitropack@2.13.1_encoding@0.1.13_rolldown@1.0.0-rc.9/node_modules/nitropack/dist/runtime/internal/error/prod.mjs","../../../../../../node_modules/.pnpm/nitropack@2.13.1_encoding@0.1.13_rolldown@1.0.0-rc.9/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","../../../../server/types/agent.ts","../../../../server/utils/agentCache.ts","../../../../../core/dist/index.js","../../../../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-Pw3tLCiV.js","../../../../../plugin-oas/dist/SchemaMapper-CqMkO2T1.js","../../../../../oas/dist/chunk-OuPHjz6n.js","../../../../../oas/dist/index.js","../../../../../plugin-oas/dist/requestBody-CB2dFgmS.js","../../../../../plugin-oas/dist/utils.js","../../../../../plugin-client/dist/StaticClassClient-CCn9g9eF.js","../../../../../plugin-oas/dist/generators-DRPPf38p.js","../../../../../plugin-oas/dist/index.js","../../../../../plugin-zod/dist/components-eECfXVou.js","../../../../../../node_modules/.pnpm/typescript@5.9.3/node_modules/typescript/lib/typescript.js","../../../../../plugin-ts/dist/components-NEa1bRXI.js","../../../../../core/dist/hooks.js","../../../../../plugin-oas/dist/hooks.js","../../../../../plugin-ts/dist/plugin-BXLIMAnz.js","../../../../../plugin-zod/dist/generators-D1R6NNf2.js","../../../../../plugin-zod/dist/templates/ToZod.source.js","../../../../../plugin-zod/dist/index.js","../../../../../plugin-client/dist/generators-BEBJMOJC.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-BK_6GU4v.js","../../../../../plugin-cypress/dist/generators-D5YFtyyC.js","../../../../../plugin-cypress/dist/index.js","../../../../../plugin-faker/dist/components-BkBIov4R.js","../../../../../plugin-faker/dist/fakerGenerator-BztogaeO.js","../../../../../plugin-faker/dist/index.js","../../../../../plugin-mcp/dist/Server-KWLMg0Lm.js","../../../../../plugin-mcp/dist/generators-80MDR6tQ.js","../../../../../plugin-mcp/dist/index.js","../../../../../plugin-msw/dist/components-DgtTZkWX.js","../../../../../plugin-msw/dist/generators-C34kqa1L.js","../../../../../plugin-msw/dist/index.js","../../../../../plugin-react-query/dist/chunk--u3MIqq1.js","../../../../../plugin-react-query/dist/components-CpyHYGOw.js","../../../../../plugin-react-query/dist/generators-CpiBv5eE.js","../../../../../plugin-react-query/dist/index.js","../../../../../plugin-redoc/dist/index.js","../../../../../plugin-solid-query/dist/chunk--u3MIqq1.js","../../../../../plugin-solid-query/dist/components-BhStIi1M.js","../../../../../plugin-solid-query/dist/generators-CQClzsST.js","../../../../../plugin-solid-query/dist/index.js","../../../../../plugin-svelte-query/dist/chunk--u3MIqq1.js","../../../../../plugin-svelte-query/dist/components-DntKBsnB.js","../../../../../plugin-svelte-query/dist/generators-BtTsGGrM.js","../../../../../plugin-svelte-query/dist/index.js","../../../../../plugin-swr/dist/chunk--u3MIqq1.js","../../../../../plugin-swr/dist/components-DRDGvgXG.js","../../../../../plugin-swr/dist/generators-ClWZJ-YG.js","../../../../../plugin-swr/dist/index.js","../../../../../plugin-vue-query/dist/chunk--u3MIqq1.js","../../../../../plugin-vue-query/dist/components-_AMBl0g-.js","../../../../../plugin-vue-query/dist/generators-Zb1s5Wmb.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.1_encoding@0.1.13_rolldown@1.0.0-rc.9/node_modules/nitropack/dist/runtime/internal/app.mjs","../../../../../../node_modules/.pnpm/nitropack@2.13.1_encoding@0.1.13_rolldown@1.0.0-rc.9/node_modules/nitropack/dist/runtime/internal/lib/http-graceful-shutdown.mjs","../../../../../../node_modules/.pnpm/nitropack@2.13.1_encoding@0.1.13_rolldown@1.0.0-rc.9/node_modules/nitropack/dist/runtime/internal/shutdown.mjs","../../../../../../node_modules/.pnpm/nitropack@2.13.1_encoding@0.1.13_rolldown@1.0.0-rc.9/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","fsPromises","PATH_TRAVERSE_RE","fsp","snakeCase","_inlineAppConfig","createRadixRouter","_emitter","_a","toError","AsyncEventEmitter","__privateAdd","__privateGet","formatMs","parseHex","hex","process","toCamelOrPascal","applyToFileParts","camelCase","path","readFile","writeFile","isValidVarName","URLPath","_b","_URLPath_instances","__publicField","_options","__privateSet","__privateMethod","transformParam_fn","eachParam_fn","Node","Queue","_head","_tail","_size","__privateWrapper","pLimit","validateConcurrency","resolve","x","performance","version","_c","_d","_e","build","os","item","trimExtName","error","__defProp","__name","pascalCase","v","d","b","__assign","o","exports","Kind","YAMLException","string","ScalarType","Comments","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","propertyName","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.5/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.4_db0@0.3.4_ioredis@5.9.3/node_modules/unstorage/dist/shared/unstorage.zVDD2mZo.mjs","../../../../../../node_modules/.pnpm/unstorage@1.17.4_db0@0.3.4_ioredis@5.9.3/node_modules/unstorage/dist/index.mjs","../../../../../../node_modules/.pnpm/unstorage@1.17.4_db0@0.3.4_ioredis@5.9.3/node_modules/unstorage/drivers/utils/index.mjs","../../../../../../node_modules/.pnpm/unstorage@1.17.4_db0@0.3.4_ioredis@5.9.3/node_modules/unstorage/drivers/utils/node-fs.mjs","../../../../../../node_modules/.pnpm/unstorage@1.17.4_db0@0.3.4_ioredis@5.9.3/node_modules/unstorage/drivers/fs.mjs","../../../../../../node_modules/.pnpm/unstorage@1.17.4_db0@0.3.4_ioredis@5.9.3/node_modules/unstorage/drivers/fs-lite.mjs","../../../../../../node_modules/.pnpm/nitropack@2.13.1_encoding@0.1.13_rolldown@1.0.0-rc.9/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.1_encoding@0.1.13_rolldown@1.0.0-rc.9/node_modules/nitropack/dist/runtime/internal/hash.mjs","../../../../../../node_modules/.pnpm/nitropack@2.13.1_encoding@0.1.13_rolldown@1.0.0-rc.9/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.1_encoding@0.1.13_rolldown@1.0.0-rc.9/node_modules/nitropack/dist/runtime/internal/utils.env.mjs","../../../../../../node_modules/.pnpm/nitropack@2.13.1_encoding@0.1.13_rolldown@1.0.0-rc.9/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.1_encoding@0.1.13_rolldown@1.0.0-rc.9/node_modules/nitropack/dist/runtime/internal/context.mjs","../../../../../../node_modules/.pnpm/nitropack@2.13.1_encoding@0.1.13_rolldown@1.0.0-rc.9/node_modules/nitropack/dist/runtime/internal/route-rules.mjs","../../../../../../node_modules/.pnpm/nitropack@2.13.1_encoding@0.1.13_rolldown@1.0.0-rc.9/node_modules/nitropack/dist/runtime/internal/utils.mjs","../../../../../../node_modules/.pnpm/nitropack@2.13.1_encoding@0.1.13_rolldown@1.0.0-rc.9/node_modules/nitropack/dist/runtime/internal/error/utils.mjs","../../../../../../node_modules/.pnpm/nitropack@2.13.1_encoding@0.1.13_rolldown@1.0.0-rc.9/node_modules/nitropack/dist/runtime/internal/error/prod.mjs","../../../../../../node_modules/.pnpm/nitropack@2.13.1_encoding@0.1.13_rolldown@1.0.0-rc.9/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","../../../../server/types/agent.ts","../../../../server/utils/agentCache.ts","../../../../../core/dist/index.js","../../../../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-Pw3tLCiV.js","../../../../../plugin-oas/dist/SchemaMapper-CqMkO2T1.js","../../../../../oas/dist/index.js","../../../../../plugin-oas/dist/requestBody-CB2dFgmS.js","../../../../../plugin-oas/dist/utils.js","../../../../../plugin-client/dist/StaticClassClient-CCn9g9eF.js","../../../../../plugin-oas/dist/generators-DRPPf38p.js","../../../../../plugin-oas/dist/index.js","../../../../../plugin-zod/dist/components-eECfXVou.js","../../../../../../node_modules/.pnpm/typescript@5.9.3/node_modules/typescript/lib/typescript.js","../../../../../plugin-ts/dist/components-NEa1bRXI.js","../../../../../core/dist/hooks.js","../../../../../plugin-oas/dist/hooks.js","../../../../../plugin-ts/dist/plugin-BXLIMAnz.js","../../../../../plugin-zod/dist/generators-D1R6NNf2.js","../../../../../plugin-zod/dist/templates/ToZod.source.js","../../../../../plugin-zod/dist/index.js","../../../../../plugin-client/dist/generators-BEBJMOJC.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-BK_6GU4v.js","../../../../../plugin-cypress/dist/generators-D5YFtyyC.js","../../../../../plugin-cypress/dist/index.js","../../../../../plugin-faker/dist/components-BkBIov4R.js","../../../../../plugin-faker/dist/fakerGenerator-BztogaeO.js","../../../../../plugin-faker/dist/index.js","../../../../../plugin-mcp/dist/Server-KWLMg0Lm.js","../../../../../plugin-mcp/dist/generators-80MDR6tQ.js","../../../../../plugin-mcp/dist/index.js","../../../../../plugin-msw/dist/components-DgtTZkWX.js","../../../../../plugin-msw/dist/generators-C34kqa1L.js","../../../../../plugin-msw/dist/index.js","../../../../../plugin-react-query/dist/chunk--u3MIqq1.js","../../../../../plugin-react-query/dist/components-CpyHYGOw.js","../../../../../plugin-react-query/dist/generators-CpiBv5eE.js","../../../../../plugin-react-query/dist/index.js","../../../../../plugin-redoc/dist/index.js","../../../../../plugin-solid-query/dist/chunk--u3MIqq1.js","../../../../../plugin-solid-query/dist/components-BhStIi1M.js","../../../../../plugin-solid-query/dist/generators-CQClzsST.js","../../../../../plugin-solid-query/dist/index.js","../../../../../plugin-svelte-query/dist/chunk--u3MIqq1.js","../../../../../plugin-svelte-query/dist/components-DntKBsnB.js","../../../../../plugin-svelte-query/dist/generators-BtTsGGrM.js","../../../../../plugin-svelte-query/dist/index.js","../../../../../plugin-swr/dist/chunk--u3MIqq1.js","../../../../../plugin-swr/dist/components-DRDGvgXG.js","../../../../../plugin-swr/dist/generators-ClWZJ-YG.js","../../../../../plugin-swr/dist/index.js","../../../../../plugin-vue-query/dist/chunk--u3MIqq1.js","../../../../../plugin-vue-query/dist/components-_AMBl0g-.js","../../../../../plugin-vue-query/dist/generators-Zb1s5Wmb.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.1_encoding@0.1.13_rolldown@1.0.0-rc.9/node_modules/nitropack/dist/runtime/internal/app.mjs","../../../../../../node_modules/.pnpm/nitropack@2.13.1_encoding@0.1.13_rolldown@1.0.0-rc.9/node_modules/nitropack/dist/runtime/internal/lib/http-graceful-shutdown.mjs","../../../../../../node_modules/.pnpm/nitropack@2.13.1_encoding@0.1.13_rolldown@1.0.0-rc.9/node_modules/nitropack/dist/runtime/internal/shutdown.mjs","../../../../../../node_modules/.pnpm/nitropack@2.13.1_encoding@0.1.13_rolldown@1.0.0-rc.9/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","fsPromises","PATH_TRAVERSE_RE","fsp","snakeCase","_inlineAppConfig","createRadixRouter","_emitter","_a","toError","AsyncEventEmitter","__privateAdd","__privateGet","formatMs","parseHex","hex","process","toCamelOrPascal","applyToFileParts","camelCase","path","readFile","writeFile","isValidVarName","URLPath","_b","_URLPath_instances","__publicField","_options","__privateSet","__privateMethod","transformParam_fn","eachParam_fn","Node","Queue","_head","_tail","_size","__privateWrapper","pLimit","validateConcurrency","resolve","x","performance","version","_c","_d","_e","build","os","item","trimExtName","error","__defProp","__name","pascalCase","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","propertyName","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,54,107,108,109,110]}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"health.get.mjs","sources":["../../../../../server/routes/api/health.get.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"health.get.mjs","sources":["../../../../../server/routes/api/health.get.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAOA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,EAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA;AACA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA;AAAA,CAAA,CAAA,CAAA,CACA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,EAAA,CAAA,CAAA,CAAA,CAAA;AAAA,CAAA,CAAA,CAAA,CACA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA;AAAA,CAAA,CAAA,CACA;AACA,CAAA,CAAA;;"}
|
package/.output/server/index.mjs
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.mjs","sources":[],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"index.mjs","sources":[],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;"}
|
|
@@ -0,0 +1,53 @@
|
|
|
1
|
+
{
|
|
2
|
+
"name": "@stoplight/ordered-object-literal",
|
|
3
|
+
"version": "1.0.5",
|
|
4
|
+
"description": "Object literal maintaining its properties in the order they were added",
|
|
5
|
+
"keywords": [
|
|
6
|
+
"object",
|
|
7
|
+
"object-literal",
|
|
8
|
+
"iteration"
|
|
9
|
+
],
|
|
10
|
+
"homepage": "https://github.com/stoplightio/ordered-object-literal",
|
|
11
|
+
"bugs": {
|
|
12
|
+
"url": "https://github.com/stoplightio/ordered-object-literal/issues"
|
|
13
|
+
},
|
|
14
|
+
"engines": {
|
|
15
|
+
"node": ">=8"
|
|
16
|
+
},
|
|
17
|
+
"files": [
|
|
18
|
+
"src"
|
|
19
|
+
],
|
|
20
|
+
"typings": "./src/index.d.ts",
|
|
21
|
+
"main": "./src/index.cjs",
|
|
22
|
+
"module": "./src/index.mjs",
|
|
23
|
+
"exports": {
|
|
24
|
+
"types": "./src/index.d.ts",
|
|
25
|
+
"import": "./src/index.mjs",
|
|
26
|
+
"require": "./src/index.cjs"
|
|
27
|
+
},
|
|
28
|
+
"license": "Apache-2.0",
|
|
29
|
+
"author": "Stoplight <support@stoplight.io>",
|
|
30
|
+
"repository": {
|
|
31
|
+
"type": "git",
|
|
32
|
+
"url": "https://github.com/stoplightio/ordered-object-literal"
|
|
33
|
+
},
|
|
34
|
+
"scripts": {
|
|
35
|
+
"build": "NODE_ENV=production rollup -c",
|
|
36
|
+
"lint": "eslint --cache --cache-location .cache/ src/**/*.mjs",
|
|
37
|
+
"test": "NODE_ENV=test c8 mocha --experimental-modules --config .mocharc ./src/__tests__/*.mjs",
|
|
38
|
+
"prepublish": "npm run lint && npm run test && npm run build"
|
|
39
|
+
},
|
|
40
|
+
"devDependencies": {
|
|
41
|
+
"c8": "^7.1.0",
|
|
42
|
+
"chai": "^4.2.0",
|
|
43
|
+
"eslint": "^6.8.0",
|
|
44
|
+
"eslint-config-prettier": "^6.10.1",
|
|
45
|
+
"eslint-plugin-chai-expect": "^2.1.0",
|
|
46
|
+
"eslint-plugin-chai-friendly": "^0.5.0",
|
|
47
|
+
"eslint-plugin-prettier": "^3.1.2",
|
|
48
|
+
"husky": "^4.2.5",
|
|
49
|
+
"mocha": "^10.2.0",
|
|
50
|
+
"prettier": "^2.0.4",
|
|
51
|
+
"rollup": "^2.4.0"
|
|
52
|
+
}
|
|
53
|
+
}
|
|
@@ -0,0 +1,221 @@
|
|
|
1
|
+
'use strict';
|
|
2
|
+
|
|
3
|
+
Object.defineProperty(exports, '__esModule', { value: true });
|
|
4
|
+
|
|
5
|
+
const TIMESTAMP = Math.floor(Date.now() / 3600000); // 1-day should be sufficient in most circumstances
|
|
6
|
+
|
|
7
|
+
const ORDER_KEY_ID = `__object_order_${TIMESTAMP}__`;
|
|
8
|
+
|
|
9
|
+
const ORDER_KEY = Symbol.for(ORDER_KEY_ID);
|
|
10
|
+
const STRINGIFIED_ORDER_KEY = String(ORDER_KEY);
|
|
11
|
+
|
|
12
|
+
const traps = {
|
|
13
|
+
defineProperty(target, key, descriptor) {
|
|
14
|
+
const hasKey = Object.prototype.hasOwnProperty.call(target, key);
|
|
15
|
+
if (!hasKey && ORDER_KEY in target) {
|
|
16
|
+
target[ORDER_KEY].push(key);
|
|
17
|
+
} else if (
|
|
18
|
+
'value' in descriptor &&
|
|
19
|
+
key === ORDER_KEY &&
|
|
20
|
+
descriptor.value.lastIndexOf(ORDER_KEY) === -1
|
|
21
|
+
) {
|
|
22
|
+
descriptor.value.push(ORDER_KEY);
|
|
23
|
+
}
|
|
24
|
+
|
|
25
|
+
return Reflect.defineProperty(target, key, descriptor);
|
|
26
|
+
},
|
|
27
|
+
|
|
28
|
+
deleteProperty(target, key) {
|
|
29
|
+
const hasKey = Object.prototype.hasOwnProperty.call(target, key);
|
|
30
|
+
const deleted = Reflect.deleteProperty(target, key);
|
|
31
|
+
|
|
32
|
+
if (deleted && hasKey && ORDER_KEY in target) {
|
|
33
|
+
const index = target[ORDER_KEY].indexOf(key);
|
|
34
|
+
if (index !== -1) {
|
|
35
|
+
target[ORDER_KEY].splice(index, 1);
|
|
36
|
+
}
|
|
37
|
+
}
|
|
38
|
+
|
|
39
|
+
return deleted;
|
|
40
|
+
},
|
|
41
|
+
|
|
42
|
+
ownKeys(target) {
|
|
43
|
+
if (ORDER_KEY in target) {
|
|
44
|
+
return target[ORDER_KEY];
|
|
45
|
+
}
|
|
46
|
+
|
|
47
|
+
return Reflect.ownKeys(target);
|
|
48
|
+
},
|
|
49
|
+
|
|
50
|
+
set(target, key, value) {
|
|
51
|
+
const hasKey = Object.prototype.hasOwnProperty.call(target, key);
|
|
52
|
+
const set = Reflect.set(target, key, value);
|
|
53
|
+
|
|
54
|
+
if (set && !hasKey && ORDER_KEY in target) {
|
|
55
|
+
target[ORDER_KEY].push(key);
|
|
56
|
+
}
|
|
57
|
+
|
|
58
|
+
return set;
|
|
59
|
+
},
|
|
60
|
+
};
|
|
61
|
+
|
|
62
|
+
function createObj(target, order = Reflect.ownKeys(target)) {
|
|
63
|
+
assertObjectLiteral(target);
|
|
64
|
+
const t = new Proxy(target, traps);
|
|
65
|
+
setOrder(t, order);
|
|
66
|
+
return t;
|
|
67
|
+
}
|
|
68
|
+
|
|
69
|
+
function setOrder(target, order) {
|
|
70
|
+
if (ORDER_KEY in target) {
|
|
71
|
+
target[ORDER_KEY].length = 0;
|
|
72
|
+
target[ORDER_KEY].push(...order);
|
|
73
|
+
return true;
|
|
74
|
+
} else {
|
|
75
|
+
return Reflect.defineProperty(target, ORDER_KEY, {
|
|
76
|
+
configurable: true,
|
|
77
|
+
value: order,
|
|
78
|
+
});
|
|
79
|
+
}
|
|
80
|
+
}
|
|
81
|
+
|
|
82
|
+
function getOrder(target) {
|
|
83
|
+
return target[ORDER_KEY];
|
|
84
|
+
}
|
|
85
|
+
|
|
86
|
+
function serializeArray(target) {
|
|
87
|
+
const newTarget = target.slice();
|
|
88
|
+
|
|
89
|
+
for (let i = 0; i < newTarget.length; i += 1) {
|
|
90
|
+
const value = newTarget[i];
|
|
91
|
+
if (isObject(value)) {
|
|
92
|
+
newTarget[i] = Array.isArray(value)
|
|
93
|
+
? serializeArray(value)
|
|
94
|
+
: serialize(value, true);
|
|
95
|
+
}
|
|
96
|
+
}
|
|
97
|
+
|
|
98
|
+
return newTarget;
|
|
99
|
+
}
|
|
100
|
+
|
|
101
|
+
function serialize(target, deep) {
|
|
102
|
+
assertObjectLiteral(target, 'Invalid target provided');
|
|
103
|
+
|
|
104
|
+
const newTarget = { ...target };
|
|
105
|
+
|
|
106
|
+
if (ORDER_KEY in target) {
|
|
107
|
+
Object.defineProperty(newTarget, STRINGIFIED_ORDER_KEY, {
|
|
108
|
+
enumerable: true,
|
|
109
|
+
value: target[ORDER_KEY].filter((item) => item !== ORDER_KEY),
|
|
110
|
+
});
|
|
111
|
+
}
|
|
112
|
+
|
|
113
|
+
if (deep) {
|
|
114
|
+
for (const key of Object.keys(target)) {
|
|
115
|
+
if (key === STRINGIFIED_ORDER_KEY) continue;
|
|
116
|
+
const value = target[key];
|
|
117
|
+
if (isObject(value)) {
|
|
118
|
+
newTarget[key] = Array.isArray(value)
|
|
119
|
+
? serializeArray(value)
|
|
120
|
+
: serialize(value, true);
|
|
121
|
+
}
|
|
122
|
+
}
|
|
123
|
+
}
|
|
124
|
+
|
|
125
|
+
return newTarget;
|
|
126
|
+
}
|
|
127
|
+
|
|
128
|
+
function deserializeArray(target) {
|
|
129
|
+
for (let i = 0; i < target.length; i += 1) {
|
|
130
|
+
const value = target[i];
|
|
131
|
+
if (isObject(value)) {
|
|
132
|
+
target[i] = Array.isArray(value)
|
|
133
|
+
? deserializeArray(value)
|
|
134
|
+
: deserialize(value, true);
|
|
135
|
+
}
|
|
136
|
+
}
|
|
137
|
+
|
|
138
|
+
return target;
|
|
139
|
+
}
|
|
140
|
+
|
|
141
|
+
function deserialize(target, deep) {
|
|
142
|
+
assertObjectLiteral(target, 'Invalid target provided');
|
|
143
|
+
|
|
144
|
+
const newTarget = createObj(
|
|
145
|
+
target,
|
|
146
|
+
STRINGIFIED_ORDER_KEY in target
|
|
147
|
+
? target[STRINGIFIED_ORDER_KEY]
|
|
148
|
+
: Reflect.ownKeys(target),
|
|
149
|
+
);
|
|
150
|
+
|
|
151
|
+
delete newTarget[STRINGIFIED_ORDER_KEY];
|
|
152
|
+
|
|
153
|
+
if (deep) {
|
|
154
|
+
for (const key of Object.keys(target)) {
|
|
155
|
+
const value = target[key];
|
|
156
|
+
if (isObject(value)) {
|
|
157
|
+
target[key] = Array.isArray(value)
|
|
158
|
+
? deserializeArray(value)
|
|
159
|
+
: deserialize(value, true);
|
|
160
|
+
}
|
|
161
|
+
}
|
|
162
|
+
}
|
|
163
|
+
|
|
164
|
+
return newTarget;
|
|
165
|
+
}
|
|
166
|
+
|
|
167
|
+
function isOrderedObject(target) {
|
|
168
|
+
return ORDER_KEY in target;
|
|
169
|
+
}
|
|
170
|
+
|
|
171
|
+
function isObject(maybeObj) {
|
|
172
|
+
return maybeObj !== null && typeof maybeObj === 'object';
|
|
173
|
+
}
|
|
174
|
+
|
|
175
|
+
function isObjectLiteral(obj) {
|
|
176
|
+
if (!isObject(obj)) return false;
|
|
177
|
+
if (obj[Symbol.toStringTag] !== void 0) {
|
|
178
|
+
const proto = Object.getPrototypeOf(obj);
|
|
179
|
+
return proto === null || proto === Object.prototype;
|
|
180
|
+
}
|
|
181
|
+
|
|
182
|
+
return toStringTag(obj) === 'Object';
|
|
183
|
+
}
|
|
184
|
+
|
|
185
|
+
function toStringTag(obj) {
|
|
186
|
+
const tag = obj[Symbol.toStringTag];
|
|
187
|
+
if (typeof tag === 'string') {
|
|
188
|
+
return tag;
|
|
189
|
+
}
|
|
190
|
+
|
|
191
|
+
const name = Reflect.apply(Object.prototype.toString, obj, []);
|
|
192
|
+
return name.slice(8, name.length - 1);
|
|
193
|
+
}
|
|
194
|
+
|
|
195
|
+
function assertObjectLiteral(maybeObj, message) {
|
|
196
|
+
if (isDevEnv() && !isObjectLiteral(maybeObj)) {
|
|
197
|
+
throw new TypeError(message);
|
|
198
|
+
}
|
|
199
|
+
}
|
|
200
|
+
|
|
201
|
+
function isDevEnv() {
|
|
202
|
+
if (
|
|
203
|
+
typeof process === 'undefined' ||
|
|
204
|
+
!isObject(process) ||
|
|
205
|
+
!isObject(process.env)
|
|
206
|
+
) {
|
|
207
|
+
return false;
|
|
208
|
+
}
|
|
209
|
+
|
|
210
|
+
return (
|
|
211
|
+
process.env.NODE_ENV === 'development' || process.env.NODE_ENV === 'test'
|
|
212
|
+
);
|
|
213
|
+
}
|
|
214
|
+
|
|
215
|
+
exports.ORDER_KEY_ID = ORDER_KEY_ID;
|
|
216
|
+
exports.default = createObj;
|
|
217
|
+
exports.deserialize = deserialize;
|
|
218
|
+
exports.getOrder = getOrder;
|
|
219
|
+
exports.isOrderedObject = isOrderedObject;
|
|
220
|
+
exports.serialize = serialize;
|
|
221
|
+
exports.setOrder = setOrder;
|
|
@@ -0,0 +1,129 @@
|
|
|
1
|
+
'use strict';
|
|
2
|
+
|
|
3
|
+
Object.defineProperty(exports, '__esModule', { value: true });
|
|
4
|
+
|
|
5
|
+
exports.HttpOperationSecurityDeclarationTypes = void 0;
|
|
6
|
+
(function (HttpOperationSecurityDeclarationTypes) {
|
|
7
|
+
/** Indicates that the operation has no security declarations. */
|
|
8
|
+
HttpOperationSecurityDeclarationTypes["None"] = "none";
|
|
9
|
+
/** Indicates that the operation has explicit security declarations. */
|
|
10
|
+
HttpOperationSecurityDeclarationTypes["Declared"] = "declared";
|
|
11
|
+
/** Indicates that the operation inherits its security declarations from the service. */
|
|
12
|
+
HttpOperationSecurityDeclarationTypes["InheritedFromService"] = "inheritedFromService";
|
|
13
|
+
})(exports.HttpOperationSecurityDeclarationTypes || (exports.HttpOperationSecurityDeclarationTypes = {}));
|
|
14
|
+
exports.HttpParamStyles = void 0;
|
|
15
|
+
(function (HttpParamStyles) {
|
|
16
|
+
/** Used when OAS2 type !== array */
|
|
17
|
+
HttpParamStyles["Unspecified"] = "unspecified";
|
|
18
|
+
/**
|
|
19
|
+
* OAS 3.x style simple
|
|
20
|
+
* OAS 2 collectionFormat csv
|
|
21
|
+
*/
|
|
22
|
+
HttpParamStyles["Simple"] = "simple";
|
|
23
|
+
/**
|
|
24
|
+
* OAS 3.x style matrix
|
|
25
|
+
* OAS 2 collectionFormat no support
|
|
26
|
+
*/
|
|
27
|
+
HttpParamStyles["Matrix"] = "matrix";
|
|
28
|
+
/**
|
|
29
|
+
* OAS 3.x style label
|
|
30
|
+
* OAS 2 collectionFormat no support
|
|
31
|
+
*/
|
|
32
|
+
HttpParamStyles["Label"] = "label";
|
|
33
|
+
/**
|
|
34
|
+
* OAS 3.x style form
|
|
35
|
+
* OAS 2 collectionFormat
|
|
36
|
+
* * csv, when explode === false
|
|
37
|
+
* * multi, when explode === true
|
|
38
|
+
*/
|
|
39
|
+
HttpParamStyles["Form"] = "form";
|
|
40
|
+
/**
|
|
41
|
+
* OAS 3.x no support
|
|
42
|
+
* OAS 2 collectionFormat csv when explode === undefined
|
|
43
|
+
*/
|
|
44
|
+
HttpParamStyles["CommaDelimited"] = "commaDelimited";
|
|
45
|
+
/**
|
|
46
|
+
* OAS 3.x style spaceDelimited
|
|
47
|
+
* OAS 2 collectionFormat ssv
|
|
48
|
+
*/
|
|
49
|
+
HttpParamStyles["SpaceDelimited"] = "spaceDelimited";
|
|
50
|
+
/**
|
|
51
|
+
* OAS 3.x style spaceDelimited
|
|
52
|
+
* OAS 2 collectionFormat pipes
|
|
53
|
+
*/
|
|
54
|
+
HttpParamStyles["PipeDelimited"] = "pipeDelimited";
|
|
55
|
+
/**
|
|
56
|
+
* OAS 3.x style deepObject
|
|
57
|
+
* OAS 2 collectionFormat no support
|
|
58
|
+
*/
|
|
59
|
+
HttpParamStyles["DeepObject"] = "deepObject";
|
|
60
|
+
/**
|
|
61
|
+
* OAS 3.x style no support
|
|
62
|
+
* OAS 2 collectionFormat tsv
|
|
63
|
+
*/
|
|
64
|
+
HttpParamStyles["TabDelimited"] = "tabDelimited";
|
|
65
|
+
})(exports.HttpParamStyles || (exports.HttpParamStyles = {}));
|
|
66
|
+
|
|
67
|
+
/**
|
|
68
|
+
* Represents the severity of diagnostics.
|
|
69
|
+
*/
|
|
70
|
+
exports.DiagnosticSeverity = void 0;
|
|
71
|
+
(function (DiagnosticSeverity) {
|
|
72
|
+
/**
|
|
73
|
+
* Something not allowed by the rules of a language or other means.
|
|
74
|
+
*/
|
|
75
|
+
DiagnosticSeverity[DiagnosticSeverity["Error"] = 0] = "Error";
|
|
76
|
+
/**
|
|
77
|
+
* Something suspicious but allowed.
|
|
78
|
+
*/
|
|
79
|
+
DiagnosticSeverity[DiagnosticSeverity["Warning"] = 1] = "Warning";
|
|
80
|
+
/**
|
|
81
|
+
* Something to inform about but not a problem.
|
|
82
|
+
*/
|
|
83
|
+
DiagnosticSeverity[DiagnosticSeverity["Information"] = 2] = "Information";
|
|
84
|
+
/**
|
|
85
|
+
* Something to hint to a better way of doing it, like proposing
|
|
86
|
+
* a refactoring.
|
|
87
|
+
*/
|
|
88
|
+
DiagnosticSeverity[DiagnosticSeverity["Hint"] = 3] = "Hint";
|
|
89
|
+
})(exports.DiagnosticSeverity || (exports.DiagnosticSeverity = {}));
|
|
90
|
+
|
|
91
|
+
/**
|
|
92
|
+
* Stoplight node types
|
|
93
|
+
*/
|
|
94
|
+
exports.NodeType = void 0;
|
|
95
|
+
(function (NodeType) {
|
|
96
|
+
NodeType["Article"] = "article";
|
|
97
|
+
NodeType["HttpService"] = "http_service";
|
|
98
|
+
NodeType["HttpServer"] = "http_server";
|
|
99
|
+
NodeType["HttpOperation"] = "http_operation";
|
|
100
|
+
NodeType["HttpCallback"] = "http_callback";
|
|
101
|
+
NodeType["HttpWebhook"] = "http_webhook";
|
|
102
|
+
NodeType["Model"] = "model";
|
|
103
|
+
NodeType["Generic"] = "generic";
|
|
104
|
+
NodeType["Unknown"] = "unknown";
|
|
105
|
+
NodeType["TableOfContents"] = "table_of_contents";
|
|
106
|
+
NodeType["SpectralRuleset"] = "spectral_ruleset";
|
|
107
|
+
NodeType["Styleguide"] = "styleguide";
|
|
108
|
+
NodeType["Image"] = "image";
|
|
109
|
+
NodeType["StoplightResolutions"] = "stoplight_resolutions";
|
|
110
|
+
NodeType["StoplightOverride"] = "stoplight_override";
|
|
111
|
+
})(exports.NodeType || (exports.NodeType = {}));
|
|
112
|
+
/**
|
|
113
|
+
* Node data formats
|
|
114
|
+
*/
|
|
115
|
+
exports.NodeFormat = void 0;
|
|
116
|
+
(function (NodeFormat) {
|
|
117
|
+
NodeFormat["Json"] = "json";
|
|
118
|
+
NodeFormat["Markdown"] = "markdown";
|
|
119
|
+
NodeFormat["Yaml"] = "yaml";
|
|
120
|
+
NodeFormat["Javascript"] = "javascript";
|
|
121
|
+
NodeFormat["Apng"] = "apng";
|
|
122
|
+
NodeFormat["Avif"] = "avif";
|
|
123
|
+
NodeFormat["Bmp"] = "bmp";
|
|
124
|
+
NodeFormat["Gif"] = "gif";
|
|
125
|
+
NodeFormat["Jpeg"] = "jpeg";
|
|
126
|
+
NodeFormat["Png"] = "png";
|
|
127
|
+
NodeFormat["Svg"] = "svg";
|
|
128
|
+
NodeFormat["Webp"] = "webp";
|
|
129
|
+
})(exports.NodeFormat || (exports.NodeFormat = {}));
|
|
@@ -0,0 +1,81 @@
|
|
|
1
|
+
{
|
|
2
|
+
"name": "@stoplight/types",
|
|
3
|
+
"version": "14.1.1",
|
|
4
|
+
"description": "Common typings for the Stoplight ecosystem.",
|
|
5
|
+
"keywords": [],
|
|
6
|
+
"sideEffects": false,
|
|
7
|
+
"homepage": "https://github.com/stoplightio/types",
|
|
8
|
+
"bugs": "https://github.com/stoplightio/types/issues",
|
|
9
|
+
"author": "Stoplight <support@stoplight.io>",
|
|
10
|
+
"repository": {
|
|
11
|
+
"type": "git",
|
|
12
|
+
"url": "https://github.com/stoplightio/types.git"
|
|
13
|
+
},
|
|
14
|
+
"type": "commonjs",
|
|
15
|
+
"main": "./dist/index.js",
|
|
16
|
+
"module": "./dist/index.esm.js",
|
|
17
|
+
"types": "./dist/index.d.ts",
|
|
18
|
+
"exports": {
|
|
19
|
+
".": {
|
|
20
|
+
"types": "./dist/index.d.ts",
|
|
21
|
+
"require": "./dist/index.js",
|
|
22
|
+
"import": "./dist/index.mjs"
|
|
23
|
+
}
|
|
24
|
+
},
|
|
25
|
+
"license": "Apache-2.0",
|
|
26
|
+
"files": [
|
|
27
|
+
"dist/*"
|
|
28
|
+
],
|
|
29
|
+
"engines": {
|
|
30
|
+
"node": "^12.20 || >=14.13"
|
|
31
|
+
},
|
|
32
|
+
"scripts": {
|
|
33
|
+
"build": "rollup -c && tsc --emitDeclarationOnly",
|
|
34
|
+
"postbuild": "cp ./dist/index.mjs ./dist/index.esm.js",
|
|
35
|
+
"commit": "git-cz",
|
|
36
|
+
"lint": "tslint -c tslint.json 'src/**/*.ts?'",
|
|
37
|
+
"lint.fix": "yarn lint --fix",
|
|
38
|
+
"release": "semantic-release",
|
|
39
|
+
"test": "jest",
|
|
40
|
+
"test.prod": "yarn lint && yarn test --coverage --no-cache",
|
|
41
|
+
"test.update": "yarn test --updateSnapshot",
|
|
42
|
+
"test.watch": "yarn test --watch"
|
|
43
|
+
},
|
|
44
|
+
"dependencies": {
|
|
45
|
+
"@types/json-schema": "^7.0.4",
|
|
46
|
+
"utility-types": "^3.10.0"
|
|
47
|
+
},
|
|
48
|
+
"devDependencies": {
|
|
49
|
+
"@rollup/plugin-typescript": "^8.2.1",
|
|
50
|
+
"@types/jest": "^25.1.4",
|
|
51
|
+
"jest": "^25.1.0",
|
|
52
|
+
"rollup": "^2.70.1",
|
|
53
|
+
"semantic-release": "^17.0.4",
|
|
54
|
+
"ts-jest": "^25.2.1",
|
|
55
|
+
"tslint": "^6.1.0",
|
|
56
|
+
"tslint-config-stoplight": "^1.4.0",
|
|
57
|
+
"typescript": "3.8.3"
|
|
58
|
+
},
|
|
59
|
+
"lint-staged": {
|
|
60
|
+
"*.ts": [
|
|
61
|
+
"tslint -c tslint.json --fix",
|
|
62
|
+
"git add"
|
|
63
|
+
]
|
|
64
|
+
},
|
|
65
|
+
"husky": {
|
|
66
|
+
"hooks": {
|
|
67
|
+
"commit-msg": "commitlint -E HUSKY_GIT_PARAMS",
|
|
68
|
+
"pre-commit": "lint-staged"
|
|
69
|
+
}
|
|
70
|
+
},
|
|
71
|
+
"config": {
|
|
72
|
+
"commitizen": {
|
|
73
|
+
"path": "node_modules/cz-conventional-changelog"
|
|
74
|
+
}
|
|
75
|
+
},
|
|
76
|
+
"commitlint": {
|
|
77
|
+
"extends": [
|
|
78
|
+
"@commitlint/config-conventional"
|
|
79
|
+
]
|
|
80
|
+
}
|
|
81
|
+
}
|
|
@@ -0,0 +1,41 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
const types_1 = require("./types");
|
|
4
|
+
const utils_1 = require("./utils");
|
|
5
|
+
function buildJsonPath(node) {
|
|
6
|
+
const path = [];
|
|
7
|
+
let prevNode = node;
|
|
8
|
+
while (node) {
|
|
9
|
+
switch (node.kind) {
|
|
10
|
+
case types_1.Kind.SCALAR:
|
|
11
|
+
path.unshift(node.value);
|
|
12
|
+
break;
|
|
13
|
+
case types_1.Kind.MAPPING:
|
|
14
|
+
if (prevNode !== node.key) {
|
|
15
|
+
if (path.length > 0 && utils_1.isObject(node.value) && node.value.value === path[0]) {
|
|
16
|
+
path[0] = node.key.value;
|
|
17
|
+
}
|
|
18
|
+
else {
|
|
19
|
+
path.unshift(node.key.value);
|
|
20
|
+
}
|
|
21
|
+
}
|
|
22
|
+
break;
|
|
23
|
+
case types_1.Kind.SEQ:
|
|
24
|
+
if (prevNode) {
|
|
25
|
+
const index = node.items.indexOf(prevNode);
|
|
26
|
+
if (prevNode.kind === types_1.Kind.SCALAR) {
|
|
27
|
+
path[0] = index;
|
|
28
|
+
}
|
|
29
|
+
else if (index !== -1) {
|
|
30
|
+
path.unshift(index);
|
|
31
|
+
}
|
|
32
|
+
}
|
|
33
|
+
break;
|
|
34
|
+
}
|
|
35
|
+
prevNode = node;
|
|
36
|
+
node = node.parent;
|
|
37
|
+
}
|
|
38
|
+
return path;
|
|
39
|
+
}
|
|
40
|
+
exports.buildJsonPath = buildJsonPath;
|
|
41
|
+
//# sourceMappingURL=buildJsonPath.js.map
|
|
@@ -0,0 +1,38 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
const types_1 = require("./types");
|
|
4
|
+
const utils_1 = require("./utils");
|
|
5
|
+
exports.dereferenceAnchor = (node, anchorId) => {
|
|
6
|
+
if (!utils_1.isObject(node))
|
|
7
|
+
return node;
|
|
8
|
+
if (node.kind === types_1.Kind.ANCHOR_REF && node.referencesAnchor === anchorId)
|
|
9
|
+
return null;
|
|
10
|
+
switch (node.kind) {
|
|
11
|
+
case types_1.Kind.MAP:
|
|
12
|
+
return Object.assign({}, node, { mappings: node.mappings.map(mapping => exports.dereferenceAnchor(mapping, anchorId)) });
|
|
13
|
+
case types_1.Kind.SEQ:
|
|
14
|
+
return Object.assign({}, node, { items: node.items.map(item => exports.dereferenceAnchor(item, anchorId)) });
|
|
15
|
+
case types_1.Kind.MAPPING:
|
|
16
|
+
return Object.assign({}, node, { value: exports.dereferenceAnchor(node.value, anchorId) });
|
|
17
|
+
case types_1.Kind.SCALAR:
|
|
18
|
+
return node;
|
|
19
|
+
case types_1.Kind.ANCHOR_REF:
|
|
20
|
+
if (utils_1.isObject(node.value) && isSelfReferencingAnchorRef(node)) {
|
|
21
|
+
return null;
|
|
22
|
+
}
|
|
23
|
+
return node;
|
|
24
|
+
default:
|
|
25
|
+
return node;
|
|
26
|
+
}
|
|
27
|
+
};
|
|
28
|
+
const isSelfReferencingAnchorRef = (anchorRef) => {
|
|
29
|
+
const { referencesAnchor } = anchorRef;
|
|
30
|
+
let node = anchorRef;
|
|
31
|
+
while ((node = node.parent)) {
|
|
32
|
+
if ('anchorId' in node && node.anchorId === referencesAnchor) {
|
|
33
|
+
return true;
|
|
34
|
+
}
|
|
35
|
+
}
|
|
36
|
+
return false;
|
|
37
|
+
};
|
|
38
|
+
//# sourceMappingURL=dereferenceAnchor.js.map
|