swagger-typescript-api 13.7.1 → 13.7.2
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/cli.cjs +1 -1
- package/dist/cli.mjs +1 -1
- package/dist/index.cjs +1 -1
- package/dist/index.mjs +1 -1
- package/dist/{src-pyGddI9m.cjs → src-UwNroIF-.cjs} +9 -9
- package/dist/src-UwNroIF-.cjs.map +1 -0
- package/dist/{src-DwI4veBU.mjs → src-m02XHGVc.mjs} +9 -9
- package/dist/src-m02XHGVc.mjs.map +1 -0
- package/package.json +1 -1
- package/dist/src-DwI4veBU.mjs.map +0 -1
- package/dist/src-pyGddI9m.cjs.map +0 -1
package/dist/cli.cjs
CHANGED
package/dist/cli.mjs
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
#!/usr/bin/env node
|
|
2
|
-
import { d as version, l as description, n as generateTemplates, o as CodeGenConfig, r as TemplatesGenConfig, s as HTTP_CLIENT, t as generateApi, u as name } from "./src-
|
|
2
|
+
import { d as version, l as description, n as generateTemplates, o as CodeGenConfig, r as TemplatesGenConfig, s as HTTP_CLIENT, t as generateApi, u as name } from "./src-m02XHGVc.mjs";
|
|
3
3
|
import * as path$1 from "node:path";
|
|
4
4
|
import { loadConfig } from "c12";
|
|
5
5
|
import { defineCommand, runMain } from "citty";
|
package/dist/index.cjs
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
Object.defineProperty(exports, Symbol.toStringTag, { value: "Module" });
|
|
2
|
-
const require_src = require("./src-
|
|
2
|
+
const require_src = require("./src-UwNroIF-.cjs");
|
|
3
3
|
exports.RequestContentKind = require_src.RequestContentKind;
|
|
4
4
|
exports.SCHEMA_TYPES = require_src.SCHEMA_TYPES;
|
|
5
5
|
Object.defineProperty(exports, "constants", {
|
package/dist/index.mjs
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import { a as SCHEMA_TYPES, c as constants_exports, i as RequestContentKind, n as generateTemplates, t as generateApi } from "./src-
|
|
1
|
+
import { a as SCHEMA_TYPES, c as constants_exports, i as RequestContentKind, n as generateTemplates, t as generateApi } from "./src-m02XHGVc.mjs";
|
|
2
2
|
export { RequestContentKind, SCHEMA_TYPES, constants_exports as constants, generateApi, generateTemplates };
|
|
@@ -208,7 +208,7 @@ var ComponentTypeNameResolver = class extends NameResolver {
|
|
|
208
208
|
//#endregion
|
|
209
209
|
//#region package.json
|
|
210
210
|
var name = "swagger-typescript-api";
|
|
211
|
-
var version = "13.7.
|
|
211
|
+
var version = "13.7.2";
|
|
212
212
|
var description = "Generate the API client for Fetch or Axios from an OpenAPI Specification";
|
|
213
213
|
//#endregion
|
|
214
214
|
//#region src/constants.ts
|
|
@@ -2508,12 +2508,12 @@ function mergeBrokenDoubleQuotedMapLines(content) {
|
|
|
2508
2508
|
function tryRepairSplitDoubleQuotedMapValue(line, nextLine) {
|
|
2509
2509
|
const unterminated = matchMapKeyOpeningDoubleQuotedScalar(line);
|
|
2510
2510
|
if (!unterminated) return null;
|
|
2511
|
-
const closing =
|
|
2511
|
+
const closing = matchClosingQuoteLine(nextLine);
|
|
2512
2512
|
if (!closing) return null;
|
|
2513
2513
|
const { keyPrefixAndQuote, valueBeforeBreak } = unterminated;
|
|
2514
|
-
const {
|
|
2514
|
+
const { lineBeforeClosingQuote } = closing;
|
|
2515
2515
|
if (valueBeforeBreak.endsWith("\\")) return null;
|
|
2516
|
-
return `${keyPrefixAndQuote}${valueBeforeBreak}\\n${
|
|
2516
|
+
return `${keyPrefixAndQuote}${valueBeforeBreak}\\n${lineBeforeClosingQuote}"`;
|
|
2517
2517
|
}
|
|
2518
2518
|
/** ` foo: "text` with no `"` before end of line (value may be empty). */
|
|
2519
2519
|
function matchMapKeyOpeningDoubleQuotedScalar(line) {
|
|
@@ -2524,11 +2524,11 @@ function matchMapKeyOpeningDoubleQuotedScalar(line) {
|
|
|
2524
2524
|
valueBeforeBreak: match[2]
|
|
2525
2525
|
};
|
|
2526
2526
|
}
|
|
2527
|
-
/** `
|
|
2528
|
-
function
|
|
2529
|
-
const match = /^(\s
|
|
2527
|
+
/** ` any text here"` — indented continuation that closes the quote. */
|
|
2528
|
+
function matchClosingQuoteLine(line) {
|
|
2529
|
+
const match = /^(\s+)([^"]+?)"\s*$/.exec(line);
|
|
2530
2530
|
if (!match?.[2]) return null;
|
|
2531
|
-
return {
|
|
2531
|
+
return { lineBeforeClosingQuote: match[2].trim() };
|
|
2532
2532
|
}
|
|
2533
2533
|
function normalizeYamlEscapedLineBreaks(content) {
|
|
2534
2534
|
let normalized = "";
|
|
@@ -3903,4 +3903,4 @@ Object.defineProperty(exports, "version", {
|
|
|
3903
3903
|
}
|
|
3904
3904
|
});
|
|
3905
3905
|
|
|
3906
|
-
//# sourceMappingURL=src-
|
|
3906
|
+
//# sourceMappingURL=src-UwNroIF-.cjs.map
|