@kubb/agent 5.0.0-alpha.2 → 5.0.0-alpha.21
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 +2 -2
- package/.output/server/chunks/nitro/nitro.mjs +2984 -1682
- package/.output/server/chunks/nitro/nitro.mjs.map +1 -1
- package/.output/server/chunks/routes/api/health.get.mjs +3 -5
- package/.output/server/chunks/routes/api/health.get.mjs.map +1 -1
- package/.output/server/index.mjs +3 -5
- package/.output/server/index.mjs.map +1 -1
- package/.output/server/node_modules/.nitro/{ws@8.19.0 → ws@8.20.0}/lib/permessage-deflate.js +6 -6
- package/.output/server/node_modules/.nitro/{ws@8.19.0 → ws@8.20.0}/lib/websocket-server.js +5 -5
- package/.output/server/node_modules/.nitro/{ws@8.19.0 → ws@8.20.0}/lib/websocket.js +6 -6
- package/.output/server/node_modules/.nitro/{ws@8.19.0 → ws@8.20.0}/package.json +4 -3
- package/.output/server/node_modules/.nitro/ws@8.20.0/wrapper.mjs +21 -0
- package/.output/server/node_modules/@kubb/fabric-core/dist/{chunk-BVHe6Par.js → chunk-O_arW02_.js} +6 -11
- package/.output/server/node_modules/@kubb/fabric-core/dist/{defaultParser-BD_N68Bo.js → defaultParser-iCpMSYCp.js} +4 -5
- package/.output/server/node_modules/@kubb/fabric-core/dist/{getRelativePath-C4Au07ON.js → getRelativePath-NAm_Y-vp.js} +3 -6
- package/.output/server/node_modules/@kubb/fabric-core/dist/index.js +71 -89
- package/.output/server/node_modules/@kubb/fabric-core/dist/{onProcessExit-CnZym153.js → onProcessExit-Cput7j2c.js} +124 -138
- package/.output/server/node_modules/@kubb/fabric-core/dist/parsers/typescript.js +3 -4
- package/.output/server/node_modules/@kubb/fabric-core/dist/parsers.js +4 -5
- package/.output/server/node_modules/@kubb/fabric-core/dist/plugins.js +6 -12
- package/.output/server/node_modules/@kubb/fabric-core/package.json +2 -2
- package/.output/server/node_modules/@kubb/react-fabric/dist/{chunk-DbZtQ4qb.js → chunk-BGCRLu6H.js} +12 -21
- package/.output/server/node_modules/@kubb/react-fabric/dist/index.js +33 -35
- package/.output/server/node_modules/@kubb/react-fabric/dist/{react-C2cYsofv.js → jsx-runtime-Bl0DfUmV.js} +262 -7
- package/.output/server/node_modules/@kubb/react-fabric/dist/jsx-runtime.js +3 -5
- package/.output/server/node_modules/@kubb/react-fabric/dist/parsers.js +2 -3
- package/.output/server/node_modules/@kubb/react-fabric/dist/plugins.js +4 -7
- package/.output/server/node_modules/@kubb/react-fabric/dist/{reactPlugin-DGKBWjiR.js → reactPlugin-QQPrjNuQ.js} +13 -28
- package/.output/server/node_modules/@kubb/react-fabric/package.json +7 -2
- package/.output/server/node_modules/@redocly/config/lib/root-config-schema.js +22 -2
- package/.output/server/node_modules/@redocly/config/package.json +2 -2
- package/.output/server/node_modules/@redocly/openapi-core/lib/config/all.js +5 -0
- package/.output/server/node_modules/@redocly/openapi-core/lib/config/minimal.js +5 -0
- package/.output/server/node_modules/@redocly/openapi-core/lib/config/recommended-strict.js +5 -0
- package/.output/server/node_modules/@redocly/openapi-core/lib/config/recommended.js +5 -0
- package/.output/server/node_modules/@redocly/openapi-core/lib/config/spec.js +5 -0
- package/.output/server/node_modules/@redocly/openapi-core/lib/index.js +1 -0
- package/.output/server/node_modules/@redocly/openapi-core/lib/ref-utils.js +7 -6
- package/.output/server/node_modules/@redocly/openapi-core/lib/rules/arazzo/index.js +2 -0
- package/.output/server/node_modules/@redocly/openapi-core/lib/rules/async2/index.js +2 -0
- package/.output/server/node_modules/@redocly/openapi-core/lib/rules/async3/index.js +2 -0
- package/.output/server/node_modules/@redocly/openapi-core/lib/rules/common/no-mixed-number-range-constraints.js +19 -0
- package/.output/server/node_modules/@redocly/openapi-core/lib/rules/oas3/index.js +2 -0
- package/.output/server/node_modules/@redocly/openapi-core/lib/types/redocly-yaml.js +4 -0
- package/.output/server/node_modules/@redocly/openapi-core/package.json +2 -2
- package/.output/server/package.json +6 -6
- package/package.json +20 -20
- package/.output/server/node_modules/.nitro/ws@8.19.0/wrapper.mjs +0 -8
- package/.output/server/node_modules/@kubb/react-fabric/dist/jsx-runtime-CZxrhUx8.js +0 -266
- /package/.output/server/node_modules/.nitro/{ws@8.19.0 → ws@8.20.0}/lib/buffer-util.js +0 -0
- /package/.output/server/node_modules/.nitro/{ws@8.19.0 → ws@8.20.0}/lib/constants.js +0 -0
- /package/.output/server/node_modules/.nitro/{ws@8.19.0 → ws@8.20.0}/lib/event-target.js +0 -0
- /package/.output/server/node_modules/.nitro/{ws@8.19.0 → ws@8.20.0}/lib/extension.js +0 -0
- /package/.output/server/node_modules/.nitro/{ws@8.19.0 → ws@8.20.0}/lib/limiter.js +0 -0
- /package/.output/server/node_modules/.nitro/{ws@8.19.0 → ws@8.20.0}/lib/receiver.js +0 -0
- /package/.output/server/node_modules/.nitro/{ws@8.19.0 → ws@8.20.0}/lib/sender.js +0 -0
- /package/.output/server/node_modules/.nitro/{ws@8.19.0 → ws@8.20.0}/lib/stream.js +0 -0
- /package/.output/server/node_modules/.nitro/{ws@8.19.0 → ws@8.20.0}/lib/subprotocol.js +0 -0
- /package/.output/server/node_modules/.nitro/{ws@8.19.0 → ws@8.20.0}/lib/validation.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.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","../../../../../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-Pw3tLCiV.js","../../../../../plugin-oas/dist/SchemaMapper-CqMkO2T1.js","../../../../../oas/dist/index.js","../../../../../plugin-oas/dist/requestBody-DQMKhTin.js","../../../../../plugin-oas/dist/utils.js","../../../../../plugin-client/dist/StaticClassClient-CCn9g9eF.js","../../../../../plugin-oas/dist/generators-B8HiBWvT.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-LmqJfxMv.js","../../../../../core/dist/hooks.js","../../../../../plugin-oas/dist/hooks.js","../../../../../plugin-ts/dist/plugin-DoLrDl9P.js","../../../../../plugin-zod/dist/generators-CRKtFRi1.js","../../../../../plugin-zod/dist/templates/ToZod.source.js","../../../../../plugin-zod/dist/index.js","../../../../../plugin-client/dist/generators-C2jT7XCH.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-BImGfp9Q.js","../../../../../plugin-cypress/dist/index.js","../../../../../plugin-faker/dist/components-BkBIov4R.js","../../../../../plugin-faker/dist/fakerGenerator-BuATcfwD.js","../../../../../plugin-faker/dist/index.js","../../../../../plugin-mcp/dist/Server-KWLMg0Lm.js","../../../../../plugin-mcp/dist/generators-BFPqVSmg.js","../../../../../plugin-mcp/dist/index.js","../../../../../plugin-msw/dist/components-DgtTZkWX.js","../../../../../plugin-msw/dist/generators-Cs46KGm7.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-BZn1n6rK.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-5ZZQ5Oz3.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-BjJF5K9h.js","../../../../../plugin-svelte-query/dist/index.js","../../../../../plugin-swr/dist/chunk--u3MIqq1.js","../../../../../plugin-swr/dist/components-DRDGvgXG.js","../../../../../plugin-swr/dist/generators-D0W2bxXt.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-BzA136hL.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","build","readdir","version","_c","_d","_e","_f","_g","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,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.4_db0@0.3.4_ioredis@5.10.1/node_modules/unstorage/dist/shared/unstorage.zVDD2mZo.mjs","../../../../../../node_modules/.pnpm/unstorage@1.17.4_db0@0.3.4_ioredis@5.10.1/node_modules/unstorage/dist/index.mjs","../../../../../../node_modules/.pnpm/unstorage@1.17.4_db0@0.3.4_ioredis@5.10.1/node_modules/unstorage/drivers/utils/index.mjs","../../../../../../node_modules/.pnpm/unstorage@1.17.4_db0@0.3.4_ioredis@5.10.1/node_modules/unstorage/drivers/utils/node-fs.mjs","../../../../../../node_modules/.pnpm/unstorage@1.17.4_db0@0.3.4_ioredis@5.10.1/node_modules/unstorage/drivers/fs.mjs","../../../../../../node_modules/.pnpm/unstorage@1.17.4_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-bs_SwfEj.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","../../../../../plugin-ts/dist/chunk--u3MIqq1.js","../../../../../plugin-ts/dist/builderTs-DausqHpc.js","../../../../../plugin-ts/dist/casing-BJHFg-zZ.js","../../../../../../node_modules/.pnpm/typescript@5.9.3/node_modules/typescript/lib/typescript.js","../../../../../plugin-ts/dist/printerTs-BgZucv4T.js","../../../../../plugin-ts/dist/Type-B6fo0gSk.js","../../../../../plugin-ts/dist/resolverTsLegacy-DLl854-P.js","../../../../../plugin-ts/dist/generators-ByK18qUn.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-C4q64yZV.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-17bLNXlW.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-CLDtrp-l.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-B7vvLmr4.js","../../../../../plugin-svelte-query/dist/index.js","../../../../../plugin-swr/dist/chunk--u3MIqq1.js","../../../../../plugin-swr/dist/components-BWYZa8xS.js","../../../../../plugin-swr/dist/generators-DaEpxxj8.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-Cdudcnn7.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","extname","x","performance","build","readdir","version","_c","_d","_e","_f","renderOperation","renderSchema","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","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,58,115,116,117,118]}
|
|
@@ -14,7 +14,6 @@ import 'node:crypto';
|
|
|
14
14
|
import 'node:process';
|
|
15
15
|
import '@logtail/node';
|
|
16
16
|
import 'consola';
|
|
17
|
-
import 'node:module';
|
|
18
17
|
import 'node:fs/promises';
|
|
19
18
|
import '@kubb/react-fabric';
|
|
20
19
|
import '@kubb/react-fabric/parsers';
|
|
@@ -22,11 +21,10 @@ import '@kubb/react-fabric/plugins';
|
|
|
22
21
|
import 'node:perf_hooks';
|
|
23
22
|
import 'fflate';
|
|
24
23
|
import 'tinyexec';
|
|
25
|
-
import '
|
|
26
|
-
import '
|
|
24
|
+
import '@kubb/react-fabric/jsx-runtime';
|
|
25
|
+
import 'remeda';
|
|
27
26
|
import 'empathic/package';
|
|
28
27
|
import 'semver';
|
|
29
|
-
import 'remeda';
|
|
30
28
|
import 'node:util';
|
|
31
29
|
import 'jiti';
|
|
32
30
|
import 'jsonpointer';
|
|
@@ -37,12 +35,12 @@ import '@stoplight/yaml';
|
|
|
37
35
|
import 'oas/types';
|
|
38
36
|
import 'oas-normalize';
|
|
39
37
|
import 'swagger2openapi';
|
|
40
|
-
import '@kubb/react-fabric/jsx-runtime';
|
|
41
38
|
import '@kubb/fabric-core/parsers/typescript';
|
|
42
39
|
import 'fs';
|
|
43
40
|
import 'path';
|
|
44
41
|
import 'os';
|
|
45
42
|
import 'inspector';
|
|
43
|
+
import 'node:url';
|
|
46
44
|
import 'handlebars';
|
|
47
45
|
import 'ws';
|
|
48
46
|
|
|
@@ -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
|
@@ -14,7 +14,6 @@ import 'node:crypto';
|
|
|
14
14
|
import 'node:process';
|
|
15
15
|
import '@logtail/node';
|
|
16
16
|
import 'consola';
|
|
17
|
-
import 'node:module';
|
|
18
17
|
import 'node:fs/promises';
|
|
19
18
|
import '@kubb/react-fabric';
|
|
20
19
|
import '@kubb/react-fabric/parsers';
|
|
@@ -22,11 +21,10 @@ import '@kubb/react-fabric/plugins';
|
|
|
22
21
|
import 'node:perf_hooks';
|
|
23
22
|
import 'fflate';
|
|
24
23
|
import 'tinyexec';
|
|
25
|
-
import '
|
|
26
|
-
import '
|
|
24
|
+
import '@kubb/react-fabric/jsx-runtime';
|
|
25
|
+
import 'remeda';
|
|
27
26
|
import 'empathic/package';
|
|
28
27
|
import 'semver';
|
|
29
|
-
import 'remeda';
|
|
30
28
|
import 'node:util';
|
|
31
29
|
import 'jiti';
|
|
32
30
|
import 'jsonpointer';
|
|
@@ -37,12 +35,12 @@ import '@stoplight/yaml';
|
|
|
37
35
|
import 'oas/types';
|
|
38
36
|
import 'oas-normalize';
|
|
39
37
|
import 'swagger2openapi';
|
|
40
|
-
import '@kubb/react-fabric/jsx-runtime';
|
|
41
38
|
import '@kubb/fabric-core/parsers/typescript';
|
|
42
39
|
import 'fs';
|
|
43
40
|
import 'path';
|
|
44
41
|
import 'os';
|
|
45
42
|
import 'inspector';
|
|
43
|
+
import 'node:url';
|
|
46
44
|
import 'handlebars';
|
|
47
45
|
import 'ws';
|
|
48
46
|
//# sourceMappingURL=index.mjs.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.mjs","sources":[],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"index.mjs","sources":[],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;"}
|
package/.output/server/node_modules/.nitro/{ws@8.19.0 → ws@8.20.0}/lib/permessage-deflate.js
RENAMED
|
@@ -37,6 +37,9 @@ class PerMessageDeflate {
|
|
|
37
37
|
* acknowledge disabling of client context takeover
|
|
38
38
|
* @param {Number} [options.concurrencyLimit=10] The number of concurrent
|
|
39
39
|
* calls to zlib
|
|
40
|
+
* @param {Boolean} [options.isServer=false] Create the instance in either
|
|
41
|
+
* server or client mode
|
|
42
|
+
* @param {Number} [options.maxPayload=0] The maximum allowed message length
|
|
40
43
|
* @param {(Boolean|Number)} [options.serverMaxWindowBits] Request/confirm the
|
|
41
44
|
* use of a custom server window size
|
|
42
45
|
* @param {Boolean} [options.serverNoContextTakeover=false] Request/accept
|
|
@@ -47,16 +50,13 @@ class PerMessageDeflate {
|
|
|
47
50
|
* deflate
|
|
48
51
|
* @param {Object} [options.zlibInflateOptions] Options to pass to zlib on
|
|
49
52
|
* inflate
|
|
50
|
-
* @param {Boolean} [isServer=false] Create the instance in either server or
|
|
51
|
-
* client mode
|
|
52
|
-
* @param {Number} [maxPayload=0] The maximum allowed message length
|
|
53
53
|
*/
|
|
54
|
-
constructor(options
|
|
55
|
-
this._maxPayload = maxPayload | 0;
|
|
54
|
+
constructor(options) {
|
|
56
55
|
this._options = options || {};
|
|
57
56
|
this._threshold =
|
|
58
57
|
this._options.threshold !== undefined ? this._options.threshold : 1024;
|
|
59
|
-
this.
|
|
58
|
+
this._maxPayload = this._options.maxPayload | 0;
|
|
59
|
+
this._isServer = !!this._options.isServer;
|
|
60
60
|
this._deflate = null;
|
|
61
61
|
this._inflate = null;
|
|
62
62
|
|
|
@@ -293,11 +293,11 @@ class WebSocketServer extends EventEmitter {
|
|
|
293
293
|
this.options.perMessageDeflate &&
|
|
294
294
|
secWebSocketExtensions !== undefined
|
|
295
295
|
) {
|
|
296
|
-
const perMessageDeflate = new PerMessageDeflate(
|
|
297
|
-
this.options.perMessageDeflate,
|
|
298
|
-
true,
|
|
299
|
-
this.options.maxPayload
|
|
300
|
-
);
|
|
296
|
+
const perMessageDeflate = new PerMessageDeflate({
|
|
297
|
+
...this.options.perMessageDeflate,
|
|
298
|
+
isServer: true,
|
|
299
|
+
maxPayload: this.options.maxPayload
|
|
300
|
+
});
|
|
301
301
|
|
|
302
302
|
try {
|
|
303
303
|
const offers = extension.parse(secWebSocketExtensions);
|
|
@@ -693,7 +693,7 @@ function initAsClient(websocket, address, protocols, options) {
|
|
|
693
693
|
} else {
|
|
694
694
|
try {
|
|
695
695
|
parsedUrl = new URL(address);
|
|
696
|
-
} catch
|
|
696
|
+
} catch {
|
|
697
697
|
throw new SyntaxError(`Invalid URL: ${address}`);
|
|
698
698
|
}
|
|
699
699
|
}
|
|
@@ -755,11 +755,11 @@ function initAsClient(websocket, address, protocols, options) {
|
|
|
755
755
|
opts.timeout = opts.handshakeTimeout;
|
|
756
756
|
|
|
757
757
|
if (opts.perMessageDeflate) {
|
|
758
|
-
perMessageDeflate = new PerMessageDeflate(
|
|
759
|
-
opts.perMessageDeflate
|
|
760
|
-
false,
|
|
761
|
-
opts.maxPayload
|
|
762
|
-
);
|
|
758
|
+
perMessageDeflate = new PerMessageDeflate({
|
|
759
|
+
...opts.perMessageDeflate,
|
|
760
|
+
isServer: false,
|
|
761
|
+
maxPayload: opts.maxPayload
|
|
762
|
+
});
|
|
763
763
|
opts.headers['Sec-WebSocket-Extensions'] = format({
|
|
764
764
|
[PerMessageDeflate.extensionName]: perMessageDeflate.offer()
|
|
765
765
|
});
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "ws",
|
|
3
|
-
"version": "8.
|
|
3
|
+
"version": "8.20.0",
|
|
4
4
|
"description": "Simple to use, blazing fast and thoroughly tested websocket client and server for Node.js",
|
|
5
5
|
"keywords": [
|
|
6
6
|
"HyBi",
|
|
@@ -55,12 +55,13 @@
|
|
|
55
55
|
}
|
|
56
56
|
},
|
|
57
57
|
"devDependencies": {
|
|
58
|
+
"@eslint/js": "^10.0.1",
|
|
58
59
|
"benchmark": "^2.1.4",
|
|
59
60
|
"bufferutil": "^4.0.1",
|
|
60
|
-
"eslint": "^
|
|
61
|
+
"eslint": "^10.0.1",
|
|
61
62
|
"eslint-config-prettier": "^10.0.1",
|
|
62
63
|
"eslint-plugin-prettier": "^5.0.0",
|
|
63
|
-
"globals": "^
|
|
64
|
+
"globals": "^17.0.0",
|
|
64
65
|
"mocha": "^8.4.0",
|
|
65
66
|
"nyc": "^15.0.0",
|
|
66
67
|
"prettier": "^3.0.0",
|
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
import createWebSocketStream from './lib/stream.js';
|
|
2
|
+
import extension from './lib/extension.js';
|
|
3
|
+
import PerMessageDeflate from './lib/permessage-deflate.js';
|
|
4
|
+
import Receiver from './lib/receiver.js';
|
|
5
|
+
import Sender from './lib/sender.js';
|
|
6
|
+
import subprotocol from './lib/subprotocol.js';
|
|
7
|
+
import WebSocket from './lib/websocket.js';
|
|
8
|
+
import WebSocketServer from './lib/websocket-server.js';
|
|
9
|
+
|
|
10
|
+
export {
|
|
11
|
+
createWebSocketStream,
|
|
12
|
+
extension,
|
|
13
|
+
PerMessageDeflate,
|
|
14
|
+
Receiver,
|
|
15
|
+
Sender,
|
|
16
|
+
subprotocol,
|
|
17
|
+
WebSocket,
|
|
18
|
+
WebSocketServer
|
|
19
|
+
};
|
|
20
|
+
|
|
21
|
+
export default WebSocket;
|
package/.output/server/node_modules/@kubb/fabric-core/dist/{chunk-BVHe6Par.js → chunk-O_arW02_.js}
RENAMED
|
@@ -6,17 +6,12 @@ var __name = (target, value) => __defProp(target, "name", {
|
|
|
6
6
|
});
|
|
7
7
|
var __exportAll = (all, no_symbols) => {
|
|
8
8
|
let target = {};
|
|
9
|
-
for (var name in all) {
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
}
|
|
15
|
-
if (!no_symbols) {
|
|
16
|
-
__defProp(target, Symbol.toStringTag, { value: "Module" });
|
|
17
|
-
}
|
|
9
|
+
for (var name in all) __defProp(target, name, {
|
|
10
|
+
get: all[name],
|
|
11
|
+
enumerable: true
|
|
12
|
+
});
|
|
13
|
+
if (!no_symbols) __defProp(target, Symbol.toStringTag, { value: "Module" });
|
|
18
14
|
return target;
|
|
19
15
|
};
|
|
20
|
-
|
|
21
16
|
//#endregion
|
|
22
|
-
export { __name as n, __exportAll as t };
|
|
17
|
+
export { __name as n, __exportAll as t };
|
|
@@ -1,6 +1,5 @@
|
|
|
1
|
-
import
|
|
2
|
-
import { n as defineParser } from "./getRelativePath-
|
|
3
|
-
|
|
1
|
+
import "./chunk-O_arW02_.js";
|
|
2
|
+
import { n as defineParser } from "./getRelativePath-NAm_Y-vp.js";
|
|
4
3
|
//#region src/parsers/defaultParser.ts
|
|
5
4
|
const defaultParser = defineParser({
|
|
6
5
|
name: "default",
|
|
@@ -10,7 +9,7 @@ const defaultParser = defineParser({
|
|
|
10
9
|
return file.sources.map((item) => item.value).join("\n\n");
|
|
11
10
|
}
|
|
12
11
|
});
|
|
13
|
-
|
|
14
12
|
//#endregion
|
|
15
13
|
export { defaultParser as t };
|
|
16
|
-
|
|
14
|
+
|
|
15
|
+
//# sourceMappingURL=defaultParser-iCpMSYCp.js.map
|
|
@@ -1,11 +1,9 @@
|
|
|
1
|
-
import
|
|
1
|
+
import "./chunk-O_arW02_.js";
|
|
2
2
|
import { normalize, relative } from "node:path";
|
|
3
|
-
|
|
4
3
|
//#region src/utils/trimExtName.ts
|
|
5
4
|
function trimExtName(text) {
|
|
6
5
|
return text.replace(/\.[^/.]+$/, "");
|
|
7
6
|
}
|
|
8
|
-
|
|
9
7
|
//#endregion
|
|
10
8
|
//#region src/parsers/defineParser.ts
|
|
11
9
|
/**
|
|
@@ -37,7 +35,6 @@ function defineParser(parser) {
|
|
|
37
35
|
...parser
|
|
38
36
|
};
|
|
39
37
|
}
|
|
40
|
-
|
|
41
38
|
//#endregion
|
|
42
39
|
//#region src/utils/getRelativePath.ts
|
|
43
40
|
function slash(path, platform = "linux") {
|
|
@@ -52,7 +49,7 @@ function getRelativePath(rootDir, filePath, platform = "linux") {
|
|
|
52
49
|
if (slashedPath.startsWith("../")) return slashedPath;
|
|
53
50
|
return `./${slashedPath}`;
|
|
54
51
|
}
|
|
55
|
-
|
|
56
52
|
//#endregion
|
|
57
53
|
export { defineParser as n, trimExtName as r, getRelativePath as t };
|
|
58
|
-
|
|
54
|
+
|
|
55
|
+
//# sourceMappingURL=getRelativePath-NAm_Y-vp.js.map
|
|
@@ -1,14 +1,32 @@
|
|
|
1
|
-
import
|
|
2
|
-
import { _ as provide, a as
|
|
3
|
-
import { t as getRelativePath } from "./getRelativePath-
|
|
1
|
+
import "./chunk-O_arW02_.js";
|
|
2
|
+
import { _ as provide, a as FileManager, c as createFile, d as createIntrinsic, f as renderIndent, g as inject, h as createContext, i as TreeNode, l as NodeTreeContext, m as RenderContext, n as Root, o as FileProcessor, p as renderIntrinsic, r as RootContext, s as AsyncEventEmitter, t as onProcessExit, u as createComponent, v as unprovide } from "./onProcessExit-Cput7j2c.js";
|
|
3
|
+
import { t as getRelativePath } from "./getRelativePath-NAm_Y-vp.js";
|
|
4
4
|
import { createExport, createImport, print } from "./parsers/typescript.js";
|
|
5
5
|
import { isFunction } from "remeda";
|
|
6
|
-
|
|
6
|
+
//#region src/components/Br.ts
|
|
7
|
+
/**
|
|
8
|
+
* Generates a line break in the output.
|
|
9
|
+
*
|
|
10
|
+
* Use this component to add newlines in generated code.
|
|
11
|
+
*
|
|
12
|
+
* @example
|
|
13
|
+
* ```tsx
|
|
14
|
+
* <>
|
|
15
|
+
* const x = 1
|
|
16
|
+
* <Br />
|
|
17
|
+
* const y = 2
|
|
18
|
+
* </>
|
|
19
|
+
* ```
|
|
20
|
+
*/
|
|
21
|
+
const Br = createComponent("br", () => {
|
|
22
|
+
return createIntrinsic("br");
|
|
23
|
+
});
|
|
24
|
+
Br.displayName = "Br";
|
|
25
|
+
//#endregion
|
|
7
26
|
//#region src/composables/useContext.ts
|
|
8
27
|
function useContext(key, defaultValue) {
|
|
9
28
|
return inject(key, defaultValue);
|
|
10
29
|
}
|
|
11
|
-
|
|
12
30
|
//#endregion
|
|
13
31
|
//#region src/composables/useNodeTree.ts
|
|
14
32
|
/**
|
|
@@ -30,72 +48,6 @@ function useContext(key, defaultValue) {
|
|
|
30
48
|
function useNodeTree() {
|
|
31
49
|
return useContext(NodeTreeContext);
|
|
32
50
|
}
|
|
33
|
-
|
|
34
|
-
//#endregion
|
|
35
|
-
//#region src/contexts/AppContext.ts
|
|
36
|
-
/**
|
|
37
|
-
* Provides app-level metadata and lifecycle hooks (like `exit`) to
|
|
38
|
-
* components and composables within a Fabric runtime.
|
|
39
|
-
*/
|
|
40
|
-
const AppContext = createContext({
|
|
41
|
-
exit: () => {},
|
|
42
|
-
meta: {}
|
|
43
|
-
});
|
|
44
|
-
|
|
45
|
-
//#endregion
|
|
46
|
-
//#region src/components/App.ts
|
|
47
|
-
/**
|
|
48
|
-
* Container component providing App context with metadata and lifecycle.
|
|
49
|
-
*
|
|
50
|
-
* Use this component to wrap your application and provide shared metadata
|
|
51
|
-
* that can be accessed by child components using the useApp composable.
|
|
52
|
-
*
|
|
53
|
-
* @example
|
|
54
|
-
* ```tsx
|
|
55
|
-
* <App meta={{ version: '1.0.0', author: 'John Doe' }}>
|
|
56
|
-
* <File baseName="user.ts" path="./user.ts">
|
|
57
|
-
* <File.Source>export type User = {}</File.Source>
|
|
58
|
-
* </File>
|
|
59
|
-
* </App>
|
|
60
|
-
* ```
|
|
61
|
-
*/
|
|
62
|
-
const App = createComponent("App", ({ children, ...props }) => {
|
|
63
|
-
const { meta = {} } = props;
|
|
64
|
-
const { exit } = useContext(RootContext);
|
|
65
|
-
const nodeTree = useNodeTree();
|
|
66
|
-
if (nodeTree) provide(NodeTreeContext, nodeTree.addChild({
|
|
67
|
-
type: "App",
|
|
68
|
-
props
|
|
69
|
-
}));
|
|
70
|
-
provide(AppContext, {
|
|
71
|
-
exit,
|
|
72
|
-
meta
|
|
73
|
-
});
|
|
74
|
-
return children;
|
|
75
|
-
});
|
|
76
|
-
App.displayName = "App";
|
|
77
|
-
|
|
78
|
-
//#endregion
|
|
79
|
-
//#region src/components/Br.ts
|
|
80
|
-
/**
|
|
81
|
-
* Generates a line break in the output.
|
|
82
|
-
*
|
|
83
|
-
* Use this component to add newlines in generated code.
|
|
84
|
-
*
|
|
85
|
-
* @example
|
|
86
|
-
* ```tsx
|
|
87
|
-
* <>
|
|
88
|
-
* const x = 1
|
|
89
|
-
* <Br />
|
|
90
|
-
* const y = 2
|
|
91
|
-
* </>
|
|
92
|
-
* ```
|
|
93
|
-
*/
|
|
94
|
-
const Br = createComponent("br", () => {
|
|
95
|
-
return createIntrinsic("br");
|
|
96
|
-
});
|
|
97
|
-
Br.displayName = "Br";
|
|
98
|
-
|
|
99
51
|
//#endregion
|
|
100
52
|
//#region src/utils/createJSDoc.ts
|
|
101
53
|
/**
|
|
@@ -111,7 +63,6 @@ function createJSDoc({ comments }) {
|
|
|
111
63
|
" */"
|
|
112
64
|
].join("\n");
|
|
113
65
|
}
|
|
114
|
-
|
|
115
66
|
//#endregion
|
|
116
67
|
//#region src/components/Const.ts
|
|
117
68
|
/**
|
|
@@ -145,7 +96,6 @@ const Const = createComponent("Const", ({ children, ...props }) => {
|
|
|
145
96
|
return result;
|
|
146
97
|
});
|
|
147
98
|
Const.displayName = "Const";
|
|
148
|
-
|
|
149
99
|
//#endregion
|
|
150
100
|
//#region src/components/Dedent.ts
|
|
151
101
|
/**
|
|
@@ -169,7 +119,48 @@ const Dedent = createComponent("dedent", () => {
|
|
|
169
119
|
return createIntrinsic("dedent");
|
|
170
120
|
});
|
|
171
121
|
Dedent.displayName = "Dedent";
|
|
172
|
-
|
|
122
|
+
//#endregion
|
|
123
|
+
//#region src/contexts/FabricContext.ts
|
|
124
|
+
/**
|
|
125
|
+
* Provides app-level metadata and lifecycle hooks (like `exit`) to
|
|
126
|
+
* components and composables within a Fabric runtime.
|
|
127
|
+
*/
|
|
128
|
+
const FabricContext = createContext({
|
|
129
|
+
exit: () => {},
|
|
130
|
+
meta: {}
|
|
131
|
+
});
|
|
132
|
+
//#endregion
|
|
133
|
+
//#region src/components/Fabric.ts
|
|
134
|
+
/**
|
|
135
|
+
* Container component providing App context with metadata and lifecycle.
|
|
136
|
+
*
|
|
137
|
+
* Use this component to wrap your application and provide shared metadata
|
|
138
|
+
* that can be accessed by child components using the useApp composable.
|
|
139
|
+
*
|
|
140
|
+
* @example
|
|
141
|
+
* ```tsx
|
|
142
|
+
* <Fabric meta={{ version: '1.0.0', author: 'John Doe' }}>
|
|
143
|
+
* <File baseName="user.ts" path="./user.ts">
|
|
144
|
+
* <File.Source>export type User = {}</File.Source>
|
|
145
|
+
* </File>
|
|
146
|
+
* </Fabric>
|
|
147
|
+
* ```
|
|
148
|
+
*/
|
|
149
|
+
const Fabric = createComponent("Fabric", ({ children, ...props }) => {
|
|
150
|
+
const { meta = {} } = props;
|
|
151
|
+
const { exit } = useContext(RootContext);
|
|
152
|
+
const nodeTree = useNodeTree();
|
|
153
|
+
if (nodeTree) provide(NodeTreeContext, nodeTree.addChild({
|
|
154
|
+
type: "Fabric",
|
|
155
|
+
props
|
|
156
|
+
}));
|
|
157
|
+
provide(FabricContext, {
|
|
158
|
+
exit,
|
|
159
|
+
meta
|
|
160
|
+
});
|
|
161
|
+
return children;
|
|
162
|
+
});
|
|
163
|
+
Fabric.displayName = "Fabric";
|
|
173
164
|
//#endregion
|
|
174
165
|
//#region src/contexts/FileContext.ts
|
|
175
166
|
/**
|
|
@@ -177,7 +168,6 @@ Dedent.displayName = "Dedent";
|
|
|
177
168
|
* components and composables within a Fabric runtime.
|
|
178
169
|
*/
|
|
179
170
|
const FileContext = createContext(null);
|
|
180
|
-
|
|
181
171
|
//#endregion
|
|
182
172
|
//#region src/composables/useFile.ts
|
|
183
173
|
/**
|
|
@@ -200,7 +190,6 @@ const FileContext = createContext(null);
|
|
|
200
190
|
function useFile() {
|
|
201
191
|
return useContext(FileContext);
|
|
202
192
|
}
|
|
203
|
-
|
|
204
193
|
//#endregion
|
|
205
194
|
//#region src/composables/useFileManager.ts
|
|
206
195
|
/**
|
|
@@ -225,7 +214,6 @@ function useFileManager() {
|
|
|
225
214
|
const { fileManager } = useContext(RootContext);
|
|
226
215
|
return fileManager;
|
|
227
216
|
}
|
|
228
|
-
|
|
229
217
|
//#endregion
|
|
230
218
|
//#region src/components/File.ts
|
|
231
219
|
/**
|
|
@@ -361,7 +349,6 @@ const FileImport = createComponent("FileImport", (props) => {
|
|
|
361
349
|
File.Source = FileSource;
|
|
362
350
|
File.Import = FileImport;
|
|
363
351
|
File.Export = FileExport;
|
|
364
|
-
|
|
365
352
|
//#endregion
|
|
366
353
|
//#region src/components/Indent.ts
|
|
367
354
|
/**
|
|
@@ -385,7 +372,6 @@ const Indent = createComponent("indent", () => {
|
|
|
385
372
|
return createIntrinsic("indent");
|
|
386
373
|
});
|
|
387
374
|
Indent.displayName = "Indent";
|
|
388
|
-
|
|
389
375
|
//#endregion
|
|
390
376
|
//#region src/components/Function.ts
|
|
391
377
|
/**
|
|
@@ -490,7 +476,6 @@ const ArrowFunction = createComponent("ArrowFunction", ({ children, ...props })
|
|
|
490
476
|
});
|
|
491
477
|
ArrowFunction.displayName = "ArrowFunction";
|
|
492
478
|
Function.Arrow = ArrowFunction;
|
|
493
|
-
|
|
494
479
|
//#endregion
|
|
495
480
|
//#region src/components/Type.ts
|
|
496
481
|
/**
|
|
@@ -522,9 +507,8 @@ const Type = createComponent("Type", ({ children, ...props }) => {
|
|
|
522
507
|
return result;
|
|
523
508
|
});
|
|
524
509
|
Type.displayName = "Type";
|
|
525
|
-
|
|
526
510
|
//#endregion
|
|
527
|
-
//#region src/composables/
|
|
511
|
+
//#region src/composables/useFabric.ts
|
|
528
512
|
/**
|
|
529
513
|
* Accesses the App context with metadata and exit function.
|
|
530
514
|
*
|
|
@@ -535,14 +519,13 @@ Type.displayName = "Type";
|
|
|
535
519
|
*
|
|
536
520
|
* @example
|
|
537
521
|
* ```ts
|
|
538
|
-
* const { meta, exit } =
|
|
522
|
+
* const { meta, exit } = useFabric<{ version: string }>()
|
|
539
523
|
* console.log(meta.version)
|
|
540
524
|
* ```
|
|
541
525
|
*/
|
|
542
|
-
function
|
|
543
|
-
return useContext(
|
|
526
|
+
function useFabric() {
|
|
527
|
+
return useContext(FabricContext);
|
|
544
528
|
}
|
|
545
|
-
|
|
546
529
|
//#endregion
|
|
547
530
|
//#region src/composables/useLifecycle.ts
|
|
548
531
|
/**
|
|
@@ -567,7 +550,6 @@ function useLifecycle() {
|
|
|
567
550
|
const { exit } = useContext(RootContext);
|
|
568
551
|
return { exit };
|
|
569
552
|
}
|
|
570
|
-
|
|
571
553
|
//#endregion
|
|
572
554
|
//#region src/createFabric.ts
|
|
573
555
|
/**
|
|
@@ -665,7 +647,7 @@ function createFabric(config = { mode: "sequential" }) {
|
|
|
665
647
|
};
|
|
666
648
|
return fabric;
|
|
667
649
|
}
|
|
668
|
-
|
|
669
650
|
//#endregion
|
|
670
|
-
export {
|
|
651
|
+
export { Br, Const, Dedent, Fabric, FabricContext, File, FileContext, FileManager, FileProcessor, Function, Indent, NodeTreeContext, RenderContext, Root, RootContext, TreeNode, Type, createComponent, createContext, createFabric, createFile, createJSDoc, getRelativePath, inject, onProcessExit, provide, renderIndent, renderIntrinsic, unprovide, useContext, useFabric, useFile, useFileManager, useLifecycle, useNodeTree };
|
|
652
|
+
|
|
671
653
|
//# sourceMappingURL=index.js.map
|