@kubb/plugin-oas 2.18.9 → 2.19.1

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.
@@ -1,6 +1,6 @@
1
1
  import {
2
2
  init_esm_shims
3
- } from "./chunk-P25U53FI.js";
3
+ } from "./chunk-2ET4YKQY.js";
4
4
 
5
5
  // src/utils/parseFromConfig.ts
6
6
  init_esm_shims();
@@ -31,4 +31,4 @@ function parseFromConfig(config, options = {}) {
31
31
  export {
32
32
  parseFromConfig
33
33
  };
34
- //# sourceMappingURL=chunk-AF4LOGVP.js.map
34
+ //# sourceMappingURL=chunk-L6JC24QP.js.map
@@ -1,12 +1,12 @@
1
1
  import {
2
2
  SchemaGenerator,
3
3
  schemaKeywords
4
- } from "./chunk-TKI775FL.js";
4
+ } from "./chunk-BQKBWVDS.js";
5
5
  import {
6
6
  __commonJS,
7
7
  __toESM,
8
8
  init_esm_shims
9
- } from "./chunk-P25U53FI.js";
9
+ } from "./chunk-2ET4YKQY.js";
10
10
 
11
11
  // ../../node_modules/.pnpm/react@18.3.1/node_modules/react/cjs/react.production.min.js
12
12
  var require_react_production_min = __commonJS({
@@ -3291,4 +3291,4 @@ react/cjs/react-jsx-runtime.development.js:
3291
3291
  * LICENSE file in the root directory of this source tree.
3292
3292
  *)
3293
3293
  */
3294
- //# sourceMappingURL=chunk-6XCLXSEM.js.map
3294
+ //# sourceMappingURL=chunk-NY2RUVI5.js.map
@@ -49,9 +49,9 @@ var __privateMethod = (obj, member, method) => {
49
49
  return method;
50
50
  };
51
51
 
52
- // ../../node_modules/.pnpm/tsup@8.0.2_@microsoft+api-extractor@7.43.7_@types+node@20.12.12__postcss@8.4.38_ts-node@10.9._dy5qhwn3cpukwvxksukntlsgd4/node_modules/tsup/assets/cjs_shims.js
52
+ // ../../node_modules/.pnpm/tsup@8.0.2_@microsoft+api-extractor@7.43.8_@types+node@20.12.12__postcss@8.4.38_ts-node@10.9._lowhwmpkdo6u62s3emggnwdcfy/node_modules/tsup/assets/cjs_shims.js
53
53
  var init_cjs_shims = __esm({
54
- "../../node_modules/.pnpm/tsup@8.0.2_@microsoft+api-extractor@7.43.7_@types+node@20.12.12__postcss@8.4.38_ts-node@10.9._dy5qhwn3cpukwvxksukntlsgd4/node_modules/tsup/assets/cjs_shims.js"() {
54
+ "../../node_modules/.pnpm/tsup@8.0.2_@microsoft+api-extractor@7.43.8_@types+node@20.12.12__postcss@8.4.38_ts-node@10.9._lowhwmpkdo6u62s3emggnwdcfy/node_modules/tsup/assets/cjs_shims.js"() {
55
55
  "use strict";
56
56
  }
57
57
  });
@@ -112,4 +112,4 @@ function getSchemaFactory(oas) {
112
112
 
113
113
 
114
114
  exports.__commonJS = __commonJS; exports.__toESM = __toESM; exports.__privateGet = __privateGet; exports.__privateAdd = __privateAdd; exports.__privateSet = __privateSet; exports.__privateMethod = __privateMethod; exports.init_cjs_shims = init_cjs_shims; exports.getSchemas = getSchemas; exports.getSchemaFactory = getSchemaFactory;
115
- //# sourceMappingURL=chunk-QJS4KZ57.cjs.map
115
+ //# sourceMappingURL=chunk-W34TDAOS.cjs.map
@@ -1 +1 @@
1
- {"version":3,"sources":["../../../node_modules/.pnpm/tsup@8.0.2_@microsoft+api-extractor@7.43.7_@types+node@20.12.12__postcss@8.4.38_ts-node@10.9._dy5qhwn3cpukwvxksukntlsgd4/node_modules/tsup/assets/cjs_shims.js","../src/utils/getSchemas.ts","../src/utils/getSchemaFactory.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAAA;AAAA;AAAA;AAAA;AAAA;;;ACAA;AAUO,SAAS,WAAW,EAAE,KAAK,aAAa,WAAW,CAAC,WAAW,iBAAiB,WAAW,EAAE,GAA2D;AAC7J,QAAM,aAAa,IAAI,cAAc,EAAE;AAEvC,MAAI,UAAiD,CAAC;AAEtD,MAAI,SAAS,SAAS,SAAS,GAAG;AAChC,cAAU;AAAA,MACR,GAAG;AAAA,MACH,GAAK,YAAY,WAAqD,CAAC;AAAA,IACzE;AAAA,EACF;AAEA,QAAM,gBAAgB,YAAY,iBAAiB,CAAC;AACpD,MAAI,SAAS,SAAS,WAAW,GAAG;AAClC,UAAM,YAAY,YAAY,aAAa,CAAC;AAE5C,WAAO,QAAQ,SAAS,EAAE,QAAQ,CAAC,CAAC,MAAM,QAAQ,MAAyC;AACzF,UAAI,SAAS,WAAW,CAAC,QAAQ,IAAI,GAAG;AACtC,cAAM,mBAAmB,OAAO,KAAK,SAAS,OAAO,EAAE,CAAC,KAAK;AAC7D,gBAAQ,IAAI,IAAI,SAAS,UAAU,eAAe,gBAAgB,GAAG;AAAA,MACvE;AAAA,IACF,CAAC;AAAA,EACH;AAEA,MAAI,SAAS,SAAS,eAAe,GAAG;AACtC,WAAO,QAAQ,aAAa,EAAE,QAAQ,CAAC,CAAC,MAAM,OAAO,MAA4C;AAC/F,UAAI,QAAQ,WAAW,CAAC,QAAQ,IAAI,GAAG;AACrC,cAAM,mBAAmB,OAAO,KAAK,QAAQ,OAAO,EAAE,CAAC,KAAK;AAC5D,gBAAQ,IAAI,IAAI,QAAQ,UAAU,eAAe,gBAAgB,GAAG;AAAA,MACtE;AAAA,IACF,CAAC;AAAA,EACH;AAEA,SAAO;AACT;;;AC5CA;AAAA,SAAS,6BAA6B;AAuB/B,SAAS,iBAAmD,KAA6D;AAC9H,SAAO,CAAC,WAA0B;AAChC,UAAM,UAAU,sBAAsB,IAAI,GAAG,IAAI,QAAQ;AAEzD,WAAO;AAAA,MACL;AAAA,MACA;AAAA,IACF;AAAA,EACF;AACF","sourcesContent":["// Shim globals in cjs bundle\n// There's a weird bug that esbuild will always inject importMetaUrl\n// if we export it as `const importMetaUrl = ... __filename ...`\n// But using a function will not cause this issue\n\nconst getImportMetaUrl = () =>\n typeof document === 'undefined'\n ? new URL('file:' + __filename).href\n : (document.currentScript && document.currentScript.src) ||\n new URL('main.js', document.baseURI).href\n\nexport const importMetaUrl = /* @__PURE__ */ getImportMetaUrl()\n","import type { Oas, OasTypes, contentType } from '@kubb/oas'\n\ntype Mode = 'schemas' | 'responses' | 'requestBodies'\n\nexport type GetSchemasProps = {\n oas: Oas\n contentType?: contentType\n includes?: Mode[]\n}\n\nexport function getSchemas({ oas, contentType, includes = ['schemas', 'requestBodies', 'responses'] }: GetSchemasProps): Record<string, OasTypes.SchemaObject> {\n const components = oas.getDefinition().components\n\n let schemas: Record<string, OasTypes.SchemaObject> = {}\n\n if (includes.includes('schemas')) {\n schemas = {\n ...schemas,\n ...((components?.schemas as Record<string, OasTypes.SchemaObject>) || {}),\n }\n }\n\n const requestBodies = components?.requestBodies || {}\n if (includes.includes('responses')) {\n const responses = components?.responses || {}\n\n Object.entries(responses).forEach(([name, response]: [string, OasTypes.ResponseObject]) => {\n if (response.content && !schemas[name]) {\n const firstContentType = Object.keys(response.content)[0] || 'application/json'\n schemas[name] = response.content?.[contentType || firstContentType]?.schema as OasTypes.SchemaObject\n }\n })\n }\n\n if (includes.includes('requestBodies')) {\n Object.entries(requestBodies).forEach(([name, request]: [string, OasTypes.RequestBodyObject]) => {\n if (request.content && !schemas[name]) {\n const firstContentType = Object.keys(request.content)[0] || 'application/json'\n schemas[name] = request.content?.[contentType || firstContentType]?.schema as OasTypes.SchemaObject\n }\n })\n }\n\n return schemas\n}\n","import { isOpenApiV3_1Document } from '@kubb/oas'\n\nimport type { Oas, OpenAPIV3, OpenAPIV3_1, SchemaObject } from '@kubb/oas'\n\n/**\n * Make it possible to narrow down the schema based on a specific version(3 or 3.1)\n */\ntype SchemaResult<TWithRef extends boolean = false> =\n | {\n schema?: (TWithRef extends true ? OpenAPIV3.SchemaObject | OpenAPIV3.ReferenceObject : OpenAPIV3.SchemaObject) & {\n nullable?: boolean\n 'x-nullable'?: boolean\n }\n version: '3.0'\n }\n | {\n schema?: (TWithRef extends true ? OpenAPIV3_1.SchemaObject | OpenAPIV3_1.ReferenceObject : OpenAPIV3_1.SchemaObject) & {\n nullable?: boolean\n 'x-nullable'?: boolean\n }\n version: '3.1'\n }\n\nexport function getSchemaFactory<TWithRef extends boolean = false>(oas: Oas): (schema?: SchemaObject) => SchemaResult<TWithRef> {\n return (schema?: SchemaObject) => {\n const version = isOpenApiV3_1Document(oas.api) ? '3.1' : '3.0'\n\n return {\n schema,\n version,\n } as SchemaResult<TWithRef>\n }\n}\n"]}
1
+ {"version":3,"sources":["../../../node_modules/.pnpm/tsup@8.0.2_@microsoft+api-extractor@7.43.8_@types+node@20.12.12__postcss@8.4.38_ts-node@10.9._lowhwmpkdo6u62s3emggnwdcfy/node_modules/tsup/assets/cjs_shims.js","../src/utils/getSchemas.ts","../src/utils/getSchemaFactory.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAAA;AAAA;AAAA;AAAA;AAAA;;;ACAA;AAUO,SAAS,WAAW,EAAE,KAAK,aAAa,WAAW,CAAC,WAAW,iBAAiB,WAAW,EAAE,GAA2D;AAC7J,QAAM,aAAa,IAAI,cAAc,EAAE;AAEvC,MAAI,UAAiD,CAAC;AAEtD,MAAI,SAAS,SAAS,SAAS,GAAG;AAChC,cAAU;AAAA,MACR,GAAG;AAAA,MACH,GAAK,YAAY,WAAqD,CAAC;AAAA,IACzE;AAAA,EACF;AAEA,QAAM,gBAAgB,YAAY,iBAAiB,CAAC;AACpD,MAAI,SAAS,SAAS,WAAW,GAAG;AAClC,UAAM,YAAY,YAAY,aAAa,CAAC;AAE5C,WAAO,QAAQ,SAAS,EAAE,QAAQ,CAAC,CAAC,MAAM,QAAQ,MAAyC;AACzF,UAAI,SAAS,WAAW,CAAC,QAAQ,IAAI,GAAG;AACtC,cAAM,mBAAmB,OAAO,KAAK,SAAS,OAAO,EAAE,CAAC,KAAK;AAC7D,gBAAQ,IAAI,IAAI,SAAS,UAAU,eAAe,gBAAgB,GAAG;AAAA,MACvE;AAAA,IACF,CAAC;AAAA,EACH;AAEA,MAAI,SAAS,SAAS,eAAe,GAAG;AACtC,WAAO,QAAQ,aAAa,EAAE,QAAQ,CAAC,CAAC,MAAM,OAAO,MAA4C;AAC/F,UAAI,QAAQ,WAAW,CAAC,QAAQ,IAAI,GAAG;AACrC,cAAM,mBAAmB,OAAO,KAAK,QAAQ,OAAO,EAAE,CAAC,KAAK;AAC5D,gBAAQ,IAAI,IAAI,QAAQ,UAAU,eAAe,gBAAgB,GAAG;AAAA,MACtE;AAAA,IACF,CAAC;AAAA,EACH;AAEA,SAAO;AACT;;;AC5CA;AAAA,SAAS,6BAA6B;AAuB/B,SAAS,iBAAmD,KAA6D;AAC9H,SAAO,CAAC,WAA0B;AAChC,UAAM,UAAU,sBAAsB,IAAI,GAAG,IAAI,QAAQ;AAEzD,WAAO;AAAA,MACL;AAAA,MACA;AAAA,IACF;AAAA,EACF;AACF","sourcesContent":["// Shim globals in cjs bundle\n// There's a weird bug that esbuild will always inject importMetaUrl\n// if we export it as `const importMetaUrl = ... __filename ...`\n// But using a function will not cause this issue\n\nconst getImportMetaUrl = () =>\n typeof document === 'undefined'\n ? new URL('file:' + __filename).href\n : (document.currentScript && document.currentScript.src) ||\n new URL('main.js', document.baseURI).href\n\nexport const importMetaUrl = /* @__PURE__ */ getImportMetaUrl()\n","import type { Oas, OasTypes, contentType } from '@kubb/oas'\n\ntype Mode = 'schemas' | 'responses' | 'requestBodies'\n\nexport type GetSchemasProps = {\n oas: Oas\n contentType?: contentType\n includes?: Mode[]\n}\n\nexport function getSchemas({ oas, contentType, includes = ['schemas', 'requestBodies', 'responses'] }: GetSchemasProps): Record<string, OasTypes.SchemaObject> {\n const components = oas.getDefinition().components\n\n let schemas: Record<string, OasTypes.SchemaObject> = {}\n\n if (includes.includes('schemas')) {\n schemas = {\n ...schemas,\n ...((components?.schemas as Record<string, OasTypes.SchemaObject>) || {}),\n }\n }\n\n const requestBodies = components?.requestBodies || {}\n if (includes.includes('responses')) {\n const responses = components?.responses || {}\n\n Object.entries(responses).forEach(([name, response]: [string, OasTypes.ResponseObject]) => {\n if (response.content && !schemas[name]) {\n const firstContentType = Object.keys(response.content)[0] || 'application/json'\n schemas[name] = response.content?.[contentType || firstContentType]?.schema as OasTypes.SchemaObject\n }\n })\n }\n\n if (includes.includes('requestBodies')) {\n Object.entries(requestBodies).forEach(([name, request]: [string, OasTypes.RequestBodyObject]) => {\n if (request.content && !schemas[name]) {\n const firstContentType = Object.keys(request.content)[0] || 'application/json'\n schemas[name] = request.content?.[contentType || firstContentType]?.schema as OasTypes.SchemaObject\n }\n })\n }\n\n return schemas\n}\n","import { isOpenApiV3_1Document } from '@kubb/oas'\n\nimport type { Oas, OpenAPIV3, OpenAPIV3_1, SchemaObject } from '@kubb/oas'\n\n/**\n * Make it possible to narrow down the schema based on a specific version(3 or 3.1)\n */\ntype SchemaResult<TWithRef extends boolean = false> =\n | {\n schema?: (TWithRef extends true ? OpenAPIV3.SchemaObject | OpenAPIV3.ReferenceObject : OpenAPIV3.SchemaObject) & {\n nullable?: boolean\n 'x-nullable'?: boolean\n }\n version: '3.0'\n }\n | {\n schema?: (TWithRef extends true ? OpenAPIV3_1.SchemaObject | OpenAPIV3_1.ReferenceObject : OpenAPIV3_1.SchemaObject) & {\n nullable?: boolean\n 'x-nullable'?: boolean\n }\n version: '3.1'\n }\n\nexport function getSchemaFactory<TWithRef extends boolean = false>(oas: Oas): (schema?: SchemaObject) => SchemaResult<TWithRef> {\n return (schema?: SchemaObject) => {\n const version = isOpenApiV3_1Document(oas.api) ? '3.1' : '3.0'\n\n return {\n schema,\n version,\n } as SchemaResult<TWithRef>\n }\n}\n"]}
@@ -1,18 +1,18 @@
1
1
  "use strict";Object.defineProperty(exports, "__esModule", {value: true}); function _nullishCoalesce(lhs, rhsFn) { if (lhs != null) { return lhs; } else { return rhsFn(); } } function _optionalChain(ops) { let lastAccessLHS = undefined; let value = ops[0]; let i = 1; while (i < ops.length) { const op = ops[i]; const fn = ops[i + 1]; i += 2; if ((op === 'optionalAccess' || op === 'optionalCall') && value == null) { return undefined; } if (op === 'access' || op === 'optionalAccess') { lastAccessLHS = value; value = fn(value); } else if (op === 'call' || op === 'optionalCall') { value = fn((...args) => value.call(lastAccessLHS, ...args)); lastAccessLHS = undefined; } } return value; }
2
2
 
3
3
 
4
- var _chunkXIKKS7CEcjs = require('./chunk-XIKKS7CE.cjs');
4
+ var _chunkKZAW64ZQcjs = require('./chunk-KZAW64ZQ.cjs');
5
5
 
6
6
 
7
7
 
8
8
 
9
- var _chunkQJS4KZ57cjs = require('./chunk-QJS4KZ57.cjs');
9
+ var _chunkW34TDAOScjs = require('./chunk-W34TDAOS.cjs');
10
10
 
11
11
  // ../../node_modules/.pnpm/react@18.3.1/node_modules/react/cjs/react.production.min.js
12
- var require_react_production_min = _chunkQJS4KZ57cjs.__commonJS.call(void 0, {
12
+ var require_react_production_min = _chunkW34TDAOScjs.__commonJS.call(void 0, {
13
13
  "../../node_modules/.pnpm/react@18.3.1/node_modules/react/cjs/react.production.min.js"(exports) {
14
14
  "use strict";
15
- _chunkQJS4KZ57cjs.init_cjs_shims.call(void 0, );
15
+ _chunkW34TDAOScjs.init_cjs_shims.call(void 0, );
16
16
  var l = Symbol.for("react.element");
17
17
  var n = Symbol.for("react.portal");
18
18
  var p = Symbol.for("react.fragment");
@@ -309,10 +309,10 @@ var require_react_production_min = _chunkQJS4KZ57cjs.__commonJS.call(void 0, {
309
309
  });
310
310
 
311
311
  // ../../node_modules/.pnpm/react@18.3.1/node_modules/react/cjs/react.development.js
312
- var require_react_development = _chunkQJS4KZ57cjs.__commonJS.call(void 0, {
312
+ var require_react_development = _chunkW34TDAOScjs.__commonJS.call(void 0, {
313
313
  "../../node_modules/.pnpm/react@18.3.1/node_modules/react/cjs/react.development.js"(exports, module) {
314
314
  "use strict";
315
- _chunkQJS4KZ57cjs.init_cjs_shims.call(void 0, );
315
+ _chunkW34TDAOScjs.init_cjs_shims.call(void 0, );
316
316
  if (process.env.NODE_ENV !== "production") {
317
317
  (function() {
318
318
  "use strict";
@@ -2184,10 +2184,10 @@ var require_react_development = _chunkQJS4KZ57cjs.__commonJS.call(void 0, {
2184
2184
  });
2185
2185
 
2186
2186
  // ../../node_modules/.pnpm/react@18.3.1/node_modules/react/index.js
2187
- var require_react = _chunkQJS4KZ57cjs.__commonJS.call(void 0, {
2187
+ var require_react = _chunkW34TDAOScjs.__commonJS.call(void 0, {
2188
2188
  "../../node_modules/.pnpm/react@18.3.1/node_modules/react/index.js"(exports, module) {
2189
2189
  "use strict";
2190
- _chunkQJS4KZ57cjs.init_cjs_shims.call(void 0, );
2190
+ _chunkW34TDAOScjs.init_cjs_shims.call(void 0, );
2191
2191
  if (process.env.NODE_ENV === "production") {
2192
2192
  module.exports = require_react_production_min();
2193
2193
  } else {
@@ -2197,10 +2197,10 @@ var require_react = _chunkQJS4KZ57cjs.__commonJS.call(void 0, {
2197
2197
  });
2198
2198
 
2199
2199
  // ../../node_modules/.pnpm/react@18.3.1/node_modules/react/cjs/react-jsx-runtime.production.min.js
2200
- var require_react_jsx_runtime_production_min = _chunkQJS4KZ57cjs.__commonJS.call(void 0, {
2200
+ var require_react_jsx_runtime_production_min = _chunkW34TDAOScjs.__commonJS.call(void 0, {
2201
2201
  "../../node_modules/.pnpm/react@18.3.1/node_modules/react/cjs/react-jsx-runtime.production.min.js"(exports) {
2202
2202
  "use strict";
2203
- _chunkQJS4KZ57cjs.init_cjs_shims.call(void 0, );
2203
+ _chunkW34TDAOScjs.init_cjs_shims.call(void 0, );
2204
2204
  var f = require_react();
2205
2205
  var k = Symbol.for("react.element");
2206
2206
  var l = Symbol.for("react.fragment");
@@ -2226,10 +2226,10 @@ var require_react_jsx_runtime_production_min = _chunkQJS4KZ57cjs.__commonJS.call
2226
2226
  });
2227
2227
 
2228
2228
  // ../../node_modules/.pnpm/react@18.3.1/node_modules/react/cjs/react-jsx-runtime.development.js
2229
- var require_react_jsx_runtime_development = _chunkQJS4KZ57cjs.__commonJS.call(void 0, {
2229
+ var require_react_jsx_runtime_development = _chunkW34TDAOScjs.__commonJS.call(void 0, {
2230
2230
  "../../node_modules/.pnpm/react@18.3.1/node_modules/react/cjs/react-jsx-runtime.development.js"(exports) {
2231
2231
  "use strict";
2232
- _chunkQJS4KZ57cjs.init_cjs_shims.call(void 0, );
2232
+ _chunkW34TDAOScjs.init_cjs_shims.call(void 0, );
2233
2233
  if (process.env.NODE_ENV !== "production") {
2234
2234
  (function() {
2235
2235
  "use strict";
@@ -3120,10 +3120,10 @@ var require_react_jsx_runtime_development = _chunkQJS4KZ57cjs.__commonJS.call(vo
3120
3120
  });
3121
3121
 
3122
3122
  // ../../node_modules/.pnpm/react@18.3.1/node_modules/react/jsx-runtime.js
3123
- var require_jsx_runtime = _chunkQJS4KZ57cjs.__commonJS.call(void 0, {
3123
+ var require_jsx_runtime = _chunkW34TDAOScjs.__commonJS.call(void 0, {
3124
3124
  "../../node_modules/.pnpm/react@18.3.1/node_modules/react/jsx-runtime.js"(exports, module) {
3125
3125
  "use strict";
3126
- _chunkQJS4KZ57cjs.init_cjs_shims.call(void 0, );
3126
+ _chunkW34TDAOScjs.init_cjs_shims.call(void 0, );
3127
3127
  if (process.env.NODE_ENV === "production") {
3128
3128
  module.exports = require_react_jsx_runtime_production_min();
3129
3129
  } else {
@@ -3133,8 +3133,8 @@ var require_jsx_runtime = _chunkQJS4KZ57cjs.__commonJS.call(void 0, {
3133
3133
  });
3134
3134
 
3135
3135
  // src/components/Operation.tsx
3136
- _chunkQJS4KZ57cjs.init_cjs_shims.call(void 0, );
3137
- var import_jsx_runtime = _chunkQJS4KZ57cjs.__toESM.call(void 0, require_jsx_runtime(), 1);
3136
+ _chunkW34TDAOScjs.init_cjs_shims.call(void 0, );
3137
+ var import_jsx_runtime = _chunkW34TDAOScjs.__toESM.call(void 0, require_jsx_runtime(), 1);
3138
3138
  var _react = require('@kubb/react');
3139
3139
  var OperationContext = _react.createContext.call(void 0, {});
3140
3140
  function Operation({ operation, children }) {
@@ -3143,13 +3143,13 @@ function Operation({ operation, children }) {
3143
3143
  Operation.Context = OperationContext;
3144
3144
 
3145
3145
  // src/hooks/useSchema.ts
3146
- _chunkQJS4KZ57cjs.init_cjs_shims.call(void 0, );
3146
+ _chunkW34TDAOScjs.init_cjs_shims.call(void 0, );
3147
3147
 
3148
3148
 
3149
3149
  // src/components/Schema.tsx
3150
- _chunkQJS4KZ57cjs.init_cjs_shims.call(void 0, );
3150
+ _chunkW34TDAOScjs.init_cjs_shims.call(void 0, );
3151
3151
 
3152
- var import_jsx_runtime2 = _chunkQJS4KZ57cjs.__toESM.call(void 0, require_jsx_runtime(), 1);
3152
+ var import_jsx_runtime2 = _chunkW34TDAOScjs.__toESM.call(void 0, require_jsx_runtime(), 1);
3153
3153
  var SchemaContext = _react.createContext.call(void 0, {
3154
3154
  name: "unknown",
3155
3155
  tree: []
@@ -3211,7 +3211,7 @@ Schema.File = function({ output, isTypeOnly, children }) {
3211
3211
  Schema.Imports = ({ isTypeOnly }) => {
3212
3212
  const { tree } = useSchema();
3213
3213
  const { path: root } = _react.useFile.call(void 0, );
3214
- const refs = _chunkXIKKS7CEcjs.SchemaGenerator.deepSearch(tree, _chunkXIKKS7CEcjs.schemaKeywords.ref);
3214
+ const refs = _chunkKZAW64ZQcjs.SchemaGenerator.deepSearch(tree, _chunkKZAW64ZQcjs.schemaKeywords.ref);
3215
3215
  return /* @__PURE__ */ (0, import_jsx_runtime2.jsx)(import_jsx_runtime2.Fragment, { children: _optionalChain([refs, 'optionalAccess', _ => _.map, 'call', _2 => _2((item, i) => {
3216
3216
  if (!item.args.path) {
3217
3217
  return void 0;
@@ -3228,9 +3228,9 @@ function useSchema() {
3228
3228
  }
3229
3229
 
3230
3230
  // src/components/Oas.tsx
3231
- _chunkQJS4KZ57cjs.init_cjs_shims.call(void 0, );
3231
+ _chunkW34TDAOScjs.init_cjs_shims.call(void 0, );
3232
3232
 
3233
- var import_jsx_runtime3 = _chunkQJS4KZ57cjs.__toESM.call(void 0, require_jsx_runtime(), 1);
3233
+ var import_jsx_runtime3 = _chunkW34TDAOScjs.__toESM.call(void 0, require_jsx_runtime(), 1);
3234
3234
  var OasContext = _react.createContext.call(void 0, {});
3235
3235
  function Oas({ oas, children, operations, generator }) {
3236
3236
  return /* @__PURE__ */ (0, import_jsx_runtime3.jsx)(OasContext.Provider, { value: { oas, generator, operations }, children });
@@ -3291,4 +3291,4 @@ react/cjs/react-jsx-runtime.development.js:
3291
3291
  * LICENSE file in the root directory of this source tree.
3292
3292
  *)
3293
3293
  */
3294
- //# sourceMappingURL=chunk-FLKY72HI.cjs.map
3294
+ //# sourceMappingURL=chunk-Y2SDFI4S.cjs.map
@@ -2,17 +2,17 @@
2
2
 
3
3
 
4
4
 
5
- var _chunkFLKY72HIcjs = require('./chunk-FLKY72HI.cjs');
6
- require('./chunk-XIKKS7CE.cjs');
5
+ var _chunkY2SDFI4Scjs = require('./chunk-Y2SDFI4S.cjs');
6
+ require('./chunk-KZAW64ZQ.cjs');
7
7
 
8
8
 
9
- var _chunkQJS4KZ57cjs = require('./chunk-QJS4KZ57.cjs');
9
+ var _chunkW34TDAOScjs = require('./chunk-W34TDAOS.cjs');
10
10
 
11
11
  // src/components/index.ts
12
- _chunkQJS4KZ57cjs.init_cjs_shims.call(void 0, );
12
+ _chunkW34TDAOScjs.init_cjs_shims.call(void 0, );
13
13
 
14
14
 
15
15
 
16
16
 
17
- exports.Oas = _chunkFLKY72HIcjs.Oas; exports.Operation = _chunkFLKY72HIcjs.Operation; exports.Schema = _chunkFLKY72HIcjs.Schema;
17
+ exports.Oas = _chunkY2SDFI4Scjs.Oas; exports.Operation = _chunkY2SDFI4Scjs.Operation; exports.Schema = _chunkY2SDFI4Scjs.Schema;
18
18
  //# sourceMappingURL=components.cjs.map
@@ -2,11 +2,11 @@ import {
2
2
  Oas,
3
3
  Operation,
4
4
  Schema
5
- } from "./chunk-6XCLXSEM.js";
6
- import "./chunk-TKI775FL.js";
5
+ } from "./chunk-NY2RUVI5.js";
6
+ import "./chunk-BQKBWVDS.js";
7
7
  import {
8
8
  init_esm_shims
9
- } from "./chunk-P25U53FI.js";
9
+ } from "./chunk-2ET4YKQY.js";
10
10
 
11
11
  // src/components/index.ts
12
12
  init_esm_shims();
package/dist/hooks.cjs CHANGED
@@ -2,20 +2,20 @@
2
2
 
3
3
 
4
4
 
5
- var _chunkFLKY72HIcjs = require('./chunk-FLKY72HI.cjs');
6
- require('./chunk-XIKKS7CE.cjs');
5
+ var _chunkY2SDFI4Scjs = require('./chunk-Y2SDFI4S.cjs');
6
+ require('./chunk-KZAW64ZQ.cjs');
7
7
 
8
8
 
9
- var _chunkQJS4KZ57cjs = require('./chunk-QJS4KZ57.cjs');
9
+ var _chunkW34TDAOScjs = require('./chunk-W34TDAOS.cjs');
10
10
 
11
11
  // src/hooks/index.ts
12
- _chunkQJS4KZ57cjs.init_cjs_shims.call(void 0, );
12
+ _chunkW34TDAOScjs.init_cjs_shims.call(void 0, );
13
13
 
14
14
  // src/hooks/useOas.ts
15
- _chunkQJS4KZ57cjs.init_cjs_shims.call(void 0, );
15
+ _chunkW34TDAOScjs.init_cjs_shims.call(void 0, );
16
16
  var _react = require('@kubb/react');
17
17
  function useOas() {
18
- const { oas } = _react.useContext.call(void 0, _chunkFLKY72HIcjs.Oas.Context);
18
+ const { oas } = _react.useContext.call(void 0, _chunkY2SDFI4Scjs.Oas.Context);
19
19
  if (!oas) {
20
20
  throw new Error("Oas is not defined");
21
21
  }
@@ -23,10 +23,10 @@ function useOas() {
23
23
  }
24
24
 
25
25
  // src/hooks/useOperation.ts
26
- _chunkQJS4KZ57cjs.init_cjs_shims.call(void 0, );
26
+ _chunkW34TDAOScjs.init_cjs_shims.call(void 0, );
27
27
 
28
28
  function useOperation() {
29
- const { operation } = _react.useContext.call(void 0, _chunkFLKY72HIcjs.Operation.Context);
29
+ const { operation } = _react.useContext.call(void 0, _chunkY2SDFI4Scjs.Operation.Context);
30
30
  if (!operation) {
31
31
  throw new Error("Operation is not defined");
32
32
  }
@@ -34,11 +34,11 @@ function useOperation() {
34
34
  }
35
35
 
36
36
  // src/hooks/useOperationManager.ts
37
- _chunkQJS4KZ57cjs.init_cjs_shims.call(void 0, );
37
+ _chunkW34TDAOScjs.init_cjs_shims.call(void 0, );
38
38
 
39
39
  function useOperationManager() {
40
40
  const { plugin, pluginManager } = _react.useApp.call(void 0, );
41
- const { generator } = _react.useContext.call(void 0, _chunkFLKY72HIcjs.Oas.Context);
41
+ const { generator } = _react.useContext.call(void 0, _chunkY2SDFI4Scjs.Oas.Context);
42
42
  if (!generator) {
43
43
  throw new Error(`'generator' is not defined`);
44
44
  }
@@ -126,10 +126,10 @@ function useOperationManager() {
126
126
  }
127
127
 
128
128
  // src/hooks/useOperations.ts
129
- _chunkQJS4KZ57cjs.init_cjs_shims.call(void 0, );
129
+ _chunkW34TDAOScjs.init_cjs_shims.call(void 0, );
130
130
 
131
131
  function useOperations({ method, path } = {}) {
132
- const { operations } = _react.useContext.call(void 0, _chunkFLKY72HIcjs.Oas.Context);
132
+ const { operations } = _react.useContext.call(void 0, _chunkY2SDFI4Scjs.Oas.Context);
133
133
  if (!operations) {
134
134
  throw new Error("Operations is not defined");
135
135
  }
@@ -148,5 +148,5 @@ function useOperations({ method, path } = {}) {
148
148
 
149
149
 
150
150
 
151
- exports.useOas = useOas; exports.useOperation = useOperation; exports.useOperationManager = useOperationManager; exports.useOperations = useOperations; exports.useSchema = _chunkFLKY72HIcjs.useSchema;
151
+ exports.useOas = useOas; exports.useOperation = useOperation; exports.useOperationManager = useOperationManager; exports.useOperations = useOperations; exports.useSchema = _chunkY2SDFI4Scjs.useSchema;
152
152
  //# sourceMappingURL=hooks.cjs.map
package/dist/hooks.js CHANGED
@@ -2,11 +2,11 @@ import {
2
2
  Oas,
3
3
  Operation,
4
4
  useSchema
5
- } from "./chunk-6XCLXSEM.js";
6
- import "./chunk-TKI775FL.js";
5
+ } from "./chunk-NY2RUVI5.js";
6
+ import "./chunk-BQKBWVDS.js";
7
7
  import {
8
8
  init_esm_shims
9
- } from "./chunk-P25U53FI.js";
9
+ } from "./chunk-2ET4YKQY.js";
10
10
 
11
11
  // src/hooks/index.ts
12
12
  init_esm_shims();
package/dist/index.cjs CHANGED
@@ -1,11 +1,11 @@
1
1
  "use strict";Object.defineProperty(exports, "__esModule", {value: true}); function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; } function _optionalChain(ops) { let lastAccessLHS = undefined; let value = ops[0]; let i = 1; while (i < ops.length) { const op = ops[i]; const fn = ops[i + 1]; i += 2; if ((op === 'optionalAccess' || op === 'optionalCall') && value == null) { return undefined; } if (op === 'access' || op === 'optionalAccess') { lastAccessLHS = value; value = fn(value); } else if (op === 'call' || op === 'optionalCall') { value = fn((...args) => value.call(lastAccessLHS, ...args)); lastAccessLHS = undefined; } } return value; }
2
2
 
3
- var _chunkGVD6HGYScjs = require('./chunk-GVD6HGYS.cjs');
3
+ var _chunkILFKN72Ycjs = require('./chunk-ILFKN72Y.cjs');
4
4
 
5
5
 
6
6
 
7
7
 
8
- var _chunkXIKKS7CEcjs = require('./chunk-XIKKS7CE.cjs');
8
+ var _chunkKZAW64ZQcjs = require('./chunk-KZAW64ZQ.cjs');
9
9
 
10
10
 
11
11
 
@@ -13,13 +13,13 @@ var _chunkXIKKS7CEcjs = require('./chunk-XIKKS7CE.cjs');
13
13
 
14
14
 
15
15
 
16
- var _chunkQJS4KZ57cjs = require('./chunk-QJS4KZ57.cjs');
16
+ var _chunkW34TDAOScjs = require('./chunk-W34TDAOS.cjs');
17
17
 
18
18
  // src/index.ts
19
- _chunkQJS4KZ57cjs.init_cjs_shims.call(void 0, );
19
+ _chunkW34TDAOScjs.init_cjs_shims.call(void 0, );
20
20
 
21
21
  // src/plugin.ts
22
- _chunkQJS4KZ57cjs.init_cjs_shims.call(void 0, );
22
+ _chunkW34TDAOScjs.init_cjs_shims.call(void 0, );
23
23
  var _path = require('path'); var _path2 = _interopRequireDefault(_path);
24
24
  var _core = require('@kubb/core');
25
25
  var _transformers = require('@kubb/core/transformers'); var _transformers2 = _interopRequireDefault(_transformers);
@@ -35,7 +35,7 @@ var pluginOas = _core.createPlugin.call(void 0, (options) => {
35
35
  } = options;
36
36
  const getOas = async ({ config, logger, formatOptions }) => {
37
37
  try {
38
- const oas = await _chunkGVD6HGYScjs.parseFromConfig.call(void 0, config, formatOptions);
38
+ const oas = await _chunkILFKN72Ycjs.parseFromConfig.call(void 0, config, formatOptions);
39
39
  if (validate) {
40
40
  await oas.valdiate();
41
41
  }
@@ -43,7 +43,7 @@ var pluginOas = _core.createPlugin.call(void 0, (options) => {
43
43
  } catch (e) {
44
44
  const error = e;
45
45
  logger.emit("warning", _optionalChain([error, 'optionalAccess', _ => _.message]));
46
- return _chunkGVD6HGYScjs.parseFromConfig.call(void 0, config);
46
+ return _chunkILFKN72Ycjs.parseFromConfig.call(void 0, config);
47
47
  }
48
48
  };
49
49
  return {
@@ -57,7 +57,7 @@ var pluginOas = _core.createPlugin.call(void 0, (options) => {
57
57
  },
58
58
  async getSchemas({ includes } = {}) {
59
59
  const oas = await this.getOas();
60
- return _chunkQJS4KZ57cjs.getSchemas.call(void 0, { oas, contentType, includes });
60
+ return _chunkW34TDAOScjs.getSchemas.call(void 0, { oas, contentType, includes });
61
61
  },
62
62
  async getBaseURL() {
63
63
  const oasInstance = await this.getOas();
@@ -96,7 +96,7 @@ var pluginOas = _core.createPlugin.call(void 0, (options) => {
96
96
  }
97
97
  });
98
98
  await oas.dereference();
99
- const schemas = _chunkQJS4KZ57cjs.getSchemas.call(void 0, { oas, contentType });
99
+ const schemas = _chunkW34TDAOScjs.getSchemas.call(void 0, { oas, contentType });
100
100
  const mapSchema = async ([name, schema]) => {
101
101
  const resolvedPath = this.resolvePath({
102
102
  baseName: `${name}.json`,
@@ -126,32 +126,32 @@ var pluginOas = _core.createPlugin.call(void 0, (options) => {
126
126
  });
127
127
 
128
128
  // src/OperationGenerator.ts
129
- _chunkQJS4KZ57cjs.init_cjs_shims.call(void 0, );
129
+ _chunkW34TDAOScjs.init_cjs_shims.call(void 0, );
130
130
 
131
131
 
132
132
  var _operationsByMethod, _getOptions, getOptions_fn, _isExcluded, isExcluded_fn, _isIncluded, isIncluded_fn, _methods, methods_get;
133
133
  var OperationGenerator = class extends _core.Generator {
134
134
  constructor() {
135
135
  super(...arguments);
136
- _chunkQJS4KZ57cjs.__privateAdd.call(void 0, this, _getOptions);
136
+ _chunkW34TDAOScjs.__privateAdd.call(void 0, this, _getOptions);
137
137
  /**
138
138
  *
139
139
  * @deprecated
140
140
  */
141
- _chunkQJS4KZ57cjs.__privateAdd.call(void 0, this, _isExcluded);
141
+ _chunkW34TDAOScjs.__privateAdd.call(void 0, this, _isExcluded);
142
142
  /**
143
143
  *
144
144
  * @deprecated
145
145
  */
146
- _chunkQJS4KZ57cjs.__privateAdd.call(void 0, this, _isIncluded);
147
- _chunkQJS4KZ57cjs.__privateAdd.call(void 0, this, _methods);
148
- _chunkQJS4KZ57cjs.__privateAdd.call(void 0, this, _operationsByMethod, {});
146
+ _chunkW34TDAOScjs.__privateAdd.call(void 0, this, _isIncluded);
147
+ _chunkW34TDAOScjs.__privateAdd.call(void 0, this, _methods);
148
+ _chunkW34TDAOScjs.__privateAdd.call(void 0, this, _operationsByMethod, {});
149
149
  }
150
150
  get operationsByMethod() {
151
- return _chunkQJS4KZ57cjs.__privateGet.call(void 0, this, _operationsByMethod);
151
+ return _chunkW34TDAOScjs.__privateGet.call(void 0, this, _operationsByMethod);
152
152
  }
153
153
  set operationsByMethod(paths) {
154
- _chunkQJS4KZ57cjs.__privateSet.call(void 0, this, _operationsByMethod, paths);
154
+ _chunkW34TDAOScjs.__privateSet.call(void 0, this, _operationsByMethod, paths);
155
155
  }
156
156
  getSchemas(operation, forStatusCode) {
157
157
  const pathParamsSchema = this.context.oas.getParametersSchema(operation, "path");
@@ -234,9 +234,9 @@ var OperationGenerator = class extends _core.Generator {
234
234
  const methods = Object.keys(method);
235
235
  methods.forEach((method2) => {
236
236
  const operation = oas.operation(path2, method2);
237
- if (operation && _chunkQJS4KZ57cjs.__privateGet.call(void 0, this, _methods, methods_get)[method2]) {
238
- const isExcluded = _chunkQJS4KZ57cjs.__privateMethod.call(void 0, this, _isExcluded, isExcluded_fn).call(this, operation, method2);
239
- const isIncluded = this.context.include ? _chunkQJS4KZ57cjs.__privateMethod.call(void 0, this, _isIncluded, isIncluded_fn).call(this, operation, method2) : true;
237
+ if (operation && _chunkW34TDAOScjs.__privateGet.call(void 0, this, _methods, methods_get)[method2]) {
238
+ const isExcluded = _chunkW34TDAOScjs.__privateMethod.call(void 0, this, _isExcluded, isExcluded_fn).call(this, operation, method2);
239
+ const isIncluded = this.context.include ? _chunkW34TDAOScjs.__privateMethod.call(void 0, this, _isIncluded, isIncluded_fn).call(this, operation, method2) : true;
240
240
  if (isIncluded && !isExcluded) {
241
241
  if (!acc[path2]) {
242
242
  acc[path2] = {};
@@ -257,8 +257,8 @@ var OperationGenerator = class extends _core.Generator {
257
257
  const methods = this.operationsByMethod[path2] ? Object.keys(this.operationsByMethod[path2]) : [];
258
258
  methods.forEach((method) => {
259
259
  const { operation } = _optionalChain([this, 'access', _37 => _37.operationsByMethod, 'access', _38 => _38[path2], 'optionalAccess', _39 => _39[method]]);
260
- const options = _chunkQJS4KZ57cjs.__privateMethod.call(void 0, this, _getOptions, getOptions_fn).call(this, operation, method);
261
- const promiseMethod = _optionalChain([_chunkQJS4KZ57cjs.__privateGet.call(void 0, this, _methods, methods_get), 'access', _40 => _40[method], 'optionalAccess', _41 => _41.call, 'call', _42 => _42(this, operation, {
260
+ const options = _chunkW34TDAOScjs.__privateMethod.call(void 0, this, _getOptions, getOptions_fn).call(this, operation, method);
261
+ const promiseMethod = _optionalChain([_chunkW34TDAOScjs.__privateGet.call(void 0, this, _methods, methods_get), 'access', _40 => _40[method], 'optionalAccess', _41 => _41.call, 'call', _42 => _42(this, operation, {
262
262
  ...this.options,
263
263
  ...options
264
264
  })]);
@@ -408,5 +408,5 @@ var src_default = definePluginDefault;
408
408
 
409
409
 
410
410
 
411
- exports.OperationGenerator = OperationGenerator; exports.SchemaGenerator = _chunkXIKKS7CEcjs.SchemaGenerator; exports.default = src_default; exports.isKeyword = _chunkXIKKS7CEcjs.isKeyword; exports.pluginOas = pluginOas; exports.pluginOasName = pluginOasName; exports.schemaKeywords = _chunkXIKKS7CEcjs.schemaKeywords;
411
+ exports.OperationGenerator = OperationGenerator; exports.SchemaGenerator = _chunkKZAW64ZQcjs.SchemaGenerator; exports.default = src_default; exports.isKeyword = _chunkKZAW64ZQcjs.isKeyword; exports.pluginOas = pluginOas; exports.pluginOasName = pluginOasName; exports.schemaKeywords = _chunkKZAW64ZQcjs.schemaKeywords;
412
412
  //# sourceMappingURL=index.cjs.map
package/dist/index.d.cts CHANGED
@@ -72,7 +72,7 @@ declare abstract class SchemaGenerator<TOptions extends SchemaGeneratorOptions =
72
72
  /**
73
73
  * Schema
74
74
  */
75
- abstract schema(name: string, object: SchemaObject): SchemaMethodResult<TFileMeta>;
75
+ abstract schema(name: string, object: SchemaObject, options: TOptions): SchemaMethodResult<TFileMeta>;
76
76
  }
77
77
 
78
78
  /**
package/dist/index.d.ts CHANGED
@@ -72,7 +72,7 @@ declare abstract class SchemaGenerator<TOptions extends SchemaGeneratorOptions =
72
72
  /**
73
73
  * Schema
74
74
  */
75
- abstract schema(name: string, object: SchemaObject): SchemaMethodResult<TFileMeta>;
75
+ abstract schema(name: string, object: SchemaObject, options: TOptions): SchemaMethodResult<TFileMeta>;
76
76
  }
77
77
 
78
78
  /**
package/dist/index.js CHANGED
@@ -1,11 +1,11 @@
1
1
  import {
2
2
  parseFromConfig
3
- } from "./chunk-AF4LOGVP.js";
3
+ } from "./chunk-L6JC24QP.js";
4
4
  import {
5
5
  SchemaGenerator,
6
6
  isKeyword,
7
7
  schemaKeywords
8
- } from "./chunk-TKI775FL.js";
8
+ } from "./chunk-BQKBWVDS.js";
9
9
  import {
10
10
  __privateAdd,
11
11
  __privateGet,
@@ -13,7 +13,7 @@ import {
13
13
  __privateSet,
14
14
  getSchemas,
15
15
  init_esm_shims
16
- } from "./chunk-P25U53FI.js";
16
+ } from "./chunk-2ET4YKQY.js";
17
17
 
18
18
  // src/index.ts
19
19
  init_esm_shims();
package/dist/utils.cjs CHANGED
@@ -1,17 +1,17 @@
1
1
  "use strict";Object.defineProperty(exports, "__esModule", {value: true}); function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; } function _optionalChain(ops) { let lastAccessLHS = undefined; let value = ops[0]; let i = 1; while (i < ops.length) { const op = ops[i]; const fn = ops[i + 1]; i += 2; if ((op === 'optionalAccess' || op === 'optionalCall') && value == null) { return undefined; } if (op === 'access' || op === 'optionalAccess') { lastAccessLHS = value; value = fn(value); } else if (op === 'call' || op === 'optionalCall') { value = fn((...args) => value.call(lastAccessLHS, ...args)); lastAccessLHS = undefined; } } return value; }
2
2
 
3
- var _chunkGVD6HGYScjs = require('./chunk-GVD6HGYS.cjs');
3
+ var _chunkILFKN72Ycjs = require('./chunk-ILFKN72Y.cjs');
4
4
 
5
5
 
6
6
 
7
7
 
8
- var _chunkQJS4KZ57cjs = require('./chunk-QJS4KZ57.cjs');
8
+ var _chunkW34TDAOScjs = require('./chunk-W34TDAOS.cjs');
9
9
 
10
10
  // src/utils/index.ts
11
- _chunkQJS4KZ57cjs.init_cjs_shims.call(void 0, );
11
+ _chunkW34TDAOScjs.init_cjs_shims.call(void 0, );
12
12
 
13
13
  // src/utils/getComments.ts
14
- _chunkQJS4KZ57cjs.init_cjs_shims.call(void 0, );
14
+ _chunkW34TDAOScjs.init_cjs_shims.call(void 0, );
15
15
  var _transformers = require('@kubb/core/transformers'); var _transformers2 = _interopRequireDefault(_transformers);
16
16
  var _utils = require('@kubb/core/utils');
17
17
  function getComments(operation) {
@@ -24,7 +24,7 @@ function getComments(operation) {
24
24
  }
25
25
 
26
26
  // src/utils/getGroupedByTagFiles.ts
27
- _chunkQJS4KZ57cjs.init_cjs_shims.call(void 0, );
27
+ _chunkW34TDAOScjs.init_cjs_shims.call(void 0, );
28
28
  var _path = require('path');
29
29
  var _core = require('@kubb/core');
30
30
 
@@ -69,7 +69,7 @@ async function getGroupedByTagFiles({ logger, files, plugin, template, exportAs,
69
69
  }
70
70
 
71
71
  // src/utils/getParams.ts
72
- _chunkQJS4KZ57cjs.init_cjs_shims.call(void 0, );
72
+ _chunkW34TDAOScjs.init_cjs_shims.call(void 0, );
73
73
  var _oas = require('@kubb/oas');
74
74
  function getASTParams(operationSchema, {
75
75
  typed = false,
@@ -103,7 +103,7 @@ function getPathParams(operationSchema, options = {}) {
103
103
  }
104
104
 
105
105
  // src/utils/refSorter.ts
106
- _chunkQJS4KZ57cjs.init_cjs_shims.call(void 0, );
106
+ _chunkW34TDAOScjs.init_cjs_shims.call(void 0, );
107
107
  function refsSorter(a, b) {
108
108
  if (_optionalChain([Object, 'access', _10 => _10.keys, 'call', _11 => _11(a.import.refs), 'optionalAccess', _12 => _12.length]) < _optionalChain([Object, 'access', _13 => _13.keys, 'call', _14 => _14(b.import.refs), 'optionalAccess', _15 => _15.length])) {
109
109
  return -1;
@@ -122,5 +122,5 @@ function refsSorter(a, b) {
122
122
 
123
123
 
124
124
 
125
- exports.getASTParams = getASTParams; exports.getComments = getComments; exports.getGroupedByTagFiles = getGroupedByTagFiles; exports.getPathParams = getPathParams; exports.getSchemaFactory = _chunkQJS4KZ57cjs.getSchemaFactory; exports.getSchemas = _chunkQJS4KZ57cjs.getSchemas; exports.parseFromConfig = _chunkGVD6HGYScjs.parseFromConfig; exports.refsSorter = refsSorter;
125
+ exports.getASTParams = getASTParams; exports.getComments = getComments; exports.getGroupedByTagFiles = getGroupedByTagFiles; exports.getPathParams = getPathParams; exports.getSchemaFactory = _chunkW34TDAOScjs.getSchemaFactory; exports.getSchemas = _chunkW34TDAOScjs.getSchemas; exports.parseFromConfig = _chunkILFKN72Ycjs.parseFromConfig; exports.refsSorter = refsSorter;
126
126
  //# sourceMappingURL=utils.cjs.map
package/dist/utils.js CHANGED
@@ -1,11 +1,11 @@
1
1
  import {
2
2
  parseFromConfig
3
- } from "./chunk-AF4LOGVP.js";
3
+ } from "./chunk-L6JC24QP.js";
4
4
  import {
5
5
  getSchemaFactory,
6
6
  getSchemas,
7
7
  init_esm_shims
8
- } from "./chunk-P25U53FI.js";
8
+ } from "./chunk-2ET4YKQY.js";
9
9
 
10
10
  // src/utils/index.ts
11
11
  init_esm_shims();
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@kubb/plugin-oas",
3
- "version": "2.18.9",
3
+ "version": "2.19.1",
4
4
  "description": "Generator swagger",
5
5
  "keywords": [
6
6
  "typescript",
@@ -68,10 +68,10 @@
68
68
  "dependencies": {
69
69
  "@stoplight/yaml": "^4.3.0",
70
70
  "remeda": "^1.61.0",
71
- "@kubb/core": "2.18.9",
72
- "@kubb/fs": "2.18.9",
73
- "@kubb/oas": "2.18.9",
74
- "@kubb/react": "2.18.9"
71
+ "@kubb/core": "2.19.1",
72
+ "@kubb/fs": "2.19.1",
73
+ "@kubb/oas": "2.19.1",
74
+ "@kubb/react": "2.19.1"
75
75
  },
76
76
  "devDependencies": {
77
77
  "@types/react": "^18.3.2",
@@ -79,12 +79,12 @@
79
79
  "react": "^18.3.1",
80
80
  "tsup": "^8.0.2",
81
81
  "typescript": "^5.4.5",
82
- "@kubb/config-biome": "2.18.9",
83
- "@kubb/config-ts": "2.18.9",
84
- "@kubb/config-tsup": "2.18.9"
82
+ "@kubb/config-biome": "2.19.1",
83
+ "@kubb/config-ts": "2.19.1",
84
+ "@kubb/config-tsup": "2.19.1"
85
85
  },
86
86
  "peerDependencies": {
87
- "@kubb/react": "2.18.9"
87
+ "@kubb/react": "2.19.1"
88
88
  },
89
89
  "engines": {
90
90
  "node": ">=18"