@kubb/plugin-ts 3.0.0-alpha.13 → 3.0.0-alpha.14
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/dist/{chunk-ACLOC5VF.js → chunk-3WKPPYM2.js} +3 -3
- package/dist/{chunk-ACLOC5VF.js.map → chunk-3WKPPYM2.js.map} +1 -1
- package/dist/{chunk-WG3GHGN2.cjs → chunk-FH2ZK3AD.cjs} +4 -4
- package/dist/{chunk-WG3GHGN2.cjs.map → chunk-FH2ZK3AD.cjs.map} +1 -1
- package/dist/{chunk-NNWWVCR6.cjs → chunk-GAQFG5UG.cjs} +18 -18
- package/dist/{chunk-NNWWVCR6.cjs.map → chunk-GAQFG5UG.cjs.map} +1 -1
- package/dist/{chunk-GHD7XUM4.js → chunk-T4IY5VUG.js} +4 -4
- package/dist/{chunk-GHD7XUM4.js.map → chunk-T4IY5VUG.js.map} +1 -1
- package/dist/components.cjs +6 -6
- package/dist/components.js +2 -2
- package/dist/index.cjs +4 -4
- package/dist/index.js +2 -2
- package/dist/oas.cjs +2 -2
- package/dist/oas.js +1 -1
- package/package.json +11 -11
|
@@ -29,14 +29,14 @@ var __toESM = (mod, isNodeMode, target) => (target = mod != null ? __create(__ge
|
|
|
29
29
|
mod
|
|
30
30
|
));
|
|
31
31
|
|
|
32
|
-
// ../../node_modules/.pnpm/tsup@8.2.4_@microsoft+api-extractor@7.47.7_@types+node@20.16.3__@swc+core@1.7.22_jiti@1.21.
|
|
32
|
+
// ../../node_modules/.pnpm/tsup@8.2.4_@microsoft+api-extractor@7.47.7_@types+node@20.16.3__@swc+core@1.7.22_jiti@1.21.6__u7skpyfxefj3p74f4ezafa3xla/node_modules/tsup/assets/cjs_shims.js
|
|
33
33
|
var init_cjs_shims = __esm({
|
|
34
|
-
"../../node_modules/.pnpm/tsup@8.2.4_@microsoft+api-extractor@7.47.7_@types+node@20.16.3__@swc+core@1.7.22_jiti@1.21.
|
|
34
|
+
"../../node_modules/.pnpm/tsup@8.2.4_@microsoft+api-extractor@7.47.7_@types+node@20.16.3__@swc+core@1.7.22_jiti@1.21.6__u7skpyfxefj3p74f4ezafa3xla/node_modules/tsup/assets/cjs_shims.js"() {
|
|
35
35
|
}
|
|
36
36
|
});
|
|
37
37
|
|
|
38
38
|
exports.__commonJS = __commonJS;
|
|
39
39
|
exports.__toESM = __toESM;
|
|
40
40
|
exports.init_cjs_shims = init_cjs_shims;
|
|
41
|
-
//# sourceMappingURL=chunk-
|
|
42
|
-
//# sourceMappingURL=chunk-
|
|
41
|
+
//# sourceMappingURL=chunk-FH2ZK3AD.cjs.map
|
|
42
|
+
//# sourceMappingURL=chunk-FH2ZK3AD.cjs.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"sources":["../../../node_modules/.pnpm/tsup@8.2.4_@microsoft+api-extractor@7.47.7_@types+node@20.16.3__@swc+core@1.7.22_jiti@1.21.
|
|
1
|
+
{"version":3,"sources":["../../../node_modules/.pnpm/tsup@8.2.4_@microsoft+api-extractor@7.47.7_@types+node@20.16.3__@swc+core@1.7.22_jiti@1.21.6__u7skpyfxefj3p74f4ezafa3xla/node_modules/tsup/assets/cjs_shims.js"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAAA,IAAA,cAAA,GAAA,KAAA,CAAA;AAAA,EAAA,yLAAA,GAAA;AAAA,GAAA;AAAA,CAAA","file":"chunk-FH2ZK3AD.cjs","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"]}
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
'use strict';
|
|
2
2
|
|
|
3
|
-
var
|
|
3
|
+
var chunkFH2ZK3AD_cjs = require('./chunk-FH2ZK3AD.cjs');
|
|
4
4
|
var path = require('path');
|
|
5
5
|
var core = require('@kubb/core');
|
|
6
6
|
var transformers2 = require('@kubb/core/transformers');
|
|
@@ -38,9 +38,9 @@ var transformers2__default = /*#__PURE__*/_interopDefault(transformers2);
|
|
|
38
38
|
var factory__namespace = /*#__PURE__*/_interopNamespace(factory);
|
|
39
39
|
|
|
40
40
|
// ../../node_modules/.pnpm/react@18.3.1/node_modules/react/cjs/react.production.min.js
|
|
41
|
-
var require_react_production_min =
|
|
41
|
+
var require_react_production_min = chunkFH2ZK3AD_cjs.__commonJS({
|
|
42
42
|
"../../node_modules/.pnpm/react@18.3.1/node_modules/react/cjs/react.production.min.js"(exports) {
|
|
43
|
-
|
|
43
|
+
chunkFH2ZK3AD_cjs.init_cjs_shims();
|
|
44
44
|
var l = Symbol.for("react.element");
|
|
45
45
|
var n = Symbol.for("react.portal");
|
|
46
46
|
var p = Symbol.for("react.fragment");
|
|
@@ -311,9 +311,9 @@ var require_react_production_min = chunkWG3GHGN2_cjs.__commonJS({
|
|
|
311
311
|
});
|
|
312
312
|
|
|
313
313
|
// ../../node_modules/.pnpm/react@18.3.1/node_modules/react/cjs/react.development.js
|
|
314
|
-
var require_react_development =
|
|
314
|
+
var require_react_development = chunkFH2ZK3AD_cjs.__commonJS({
|
|
315
315
|
"../../node_modules/.pnpm/react@18.3.1/node_modules/react/cjs/react.development.js"(exports, module) {
|
|
316
|
-
|
|
316
|
+
chunkFH2ZK3AD_cjs.init_cjs_shims();
|
|
317
317
|
if (process.env.NODE_ENV !== "production") {
|
|
318
318
|
(function() {
|
|
319
319
|
if (typeof __REACT_DEVTOOLS_GLOBAL_HOOK__ !== "undefined" && typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStart === "function") {
|
|
@@ -2184,9 +2184,9 @@ var require_react_development = chunkWG3GHGN2_cjs.__commonJS({
|
|
|
2184
2184
|
});
|
|
2185
2185
|
|
|
2186
2186
|
// ../../node_modules/.pnpm/react@18.3.1/node_modules/react/index.js
|
|
2187
|
-
var require_react =
|
|
2187
|
+
var require_react = chunkFH2ZK3AD_cjs.__commonJS({
|
|
2188
2188
|
"../../node_modules/.pnpm/react@18.3.1/node_modules/react/index.js"(exports, module) {
|
|
2189
|
-
|
|
2189
|
+
chunkFH2ZK3AD_cjs.init_cjs_shims();
|
|
2190
2190
|
if (process.env.NODE_ENV === "production") {
|
|
2191
2191
|
module.exports = require_react_production_min();
|
|
2192
2192
|
} else {
|
|
@@ -2196,16 +2196,16 @@ var require_react = chunkWG3GHGN2_cjs.__commonJS({
|
|
|
2196
2196
|
});
|
|
2197
2197
|
|
|
2198
2198
|
// src/index.ts
|
|
2199
|
-
|
|
2199
|
+
chunkFH2ZK3AD_cjs.init_cjs_shims();
|
|
2200
2200
|
|
|
2201
2201
|
// src/plugin.ts
|
|
2202
|
-
|
|
2202
|
+
chunkFH2ZK3AD_cjs.init_cjs_shims();
|
|
2203
2203
|
|
|
2204
2204
|
// src/OperationGenerator.tsx
|
|
2205
|
-
|
|
2205
|
+
chunkFH2ZK3AD_cjs.init_cjs_shims();
|
|
2206
2206
|
|
|
2207
2207
|
// src/components/OasType.tsx
|
|
2208
|
-
|
|
2208
|
+
chunkFH2ZK3AD_cjs.init_cjs_shims();
|
|
2209
2209
|
function Template({ name, typeName, api }) {
|
|
2210
2210
|
return /* @__PURE__ */ jsxRuntime.jsxs(jsxRuntime.Fragment, { children: [
|
|
2211
2211
|
/* @__PURE__ */ jsxRuntime.jsx(react.File.Source, { name, isExportable: true, isIndexable: true, children: `export const ${name} = ${JSON.stringify(api, void 0, 2)} as const` }),
|
|
@@ -2233,17 +2233,17 @@ OasType.File = function({ name, typeName, templates = defaultTemplates }) {
|
|
|
2233
2233
|
OasType.templates = defaultTemplates;
|
|
2234
2234
|
|
|
2235
2235
|
// src/components/OperationSchema.tsx
|
|
2236
|
-
|
|
2236
|
+
chunkFH2ZK3AD_cjs.init_cjs_shims();
|
|
2237
2237
|
|
|
2238
2238
|
// src/SchemaGenerator.tsx
|
|
2239
|
-
|
|
2239
|
+
chunkFH2ZK3AD_cjs.init_cjs_shims();
|
|
2240
2240
|
|
|
2241
2241
|
// src/components/Schema.tsx
|
|
2242
|
-
|
|
2243
|
-
var import_react3 =
|
|
2242
|
+
chunkFH2ZK3AD_cjs.init_cjs_shims();
|
|
2243
|
+
var import_react3 = chunkFH2ZK3AD_cjs.__toESM(require_react(), 1);
|
|
2244
2244
|
|
|
2245
2245
|
// src/parser/index.ts
|
|
2246
|
-
|
|
2246
|
+
chunkFH2ZK3AD_cjs.init_cjs_shims();
|
|
2247
2247
|
var typeKeywordMapper = {
|
|
2248
2248
|
any: () => factory__namespace.keywordTypeNodes.any,
|
|
2249
2249
|
unknown: () => factory__namespace.keywordTypeNodes.unknown,
|
|
@@ -2815,5 +2815,5 @@ exports.OperationSchema = OperationSchema;
|
|
|
2815
2815
|
exports.Schema = Schema;
|
|
2816
2816
|
exports.pluginTs = pluginTs;
|
|
2817
2817
|
exports.pluginTsName = pluginTsName;
|
|
2818
|
-
//# sourceMappingURL=chunk-
|
|
2819
|
-
//# sourceMappingURL=chunk-
|
|
2818
|
+
//# sourceMappingURL=chunk-GAQFG5UG.cjs.map
|
|
2819
|
+
//# sourceMappingURL=chunk-GAQFG5UG.cjs.map
|