@fern-api/fern-api-dev 3.60.0 → 3.60.2-1-g4e59243ad4c
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/cli.cjs +48 -40
- package/package.json +1 -1
package/cli.cjs
CHANGED
|
@@ -1413296,7 +1413296,7 @@ var range = (a10, b18, str3) => {
|
|
|
1413296
1413296
|
return result;
|
|
1413297
1413297
|
};
|
|
1413298
1413298
|
|
|
1413299
|
-
// ../../../node_modules/.pnpm/@isaacs+brace-expansion@5.0.
|
|
1413299
|
+
// ../../../node_modules/.pnpm/@isaacs+brace-expansion@5.0.1/node_modules/@isaacs/brace-expansion/dist/esm/index.js
|
|
1413300
1413300
|
var escSlash = "\0SLASH" + Math.random() + "\0";
|
|
1413301
1413301
|
var escOpen = "\0OPEN" + Math.random() + "\0";
|
|
1413302
1413302
|
var escClose = "\0CLOSE" + Math.random() + "\0";
|
|
@@ -1413312,6 +1413312,7 @@ var openPattern = /\\{/g;
|
|
|
1413312
1413312
|
var closePattern = /\\}/g;
|
|
1413313
1413313
|
var commaPattern = /\\,/g;
|
|
1413314
1413314
|
var periodPattern = /\\./g;
|
|
1413315
|
+
var EXPANSION_MAX = 1e5;
|
|
1413315
1413316
|
function numeric(str3) {
|
|
1413316
1413317
|
return !isNaN(str3) ? parseInt(str3, 10) : str3.charCodeAt(0);
|
|
1413317
1413318
|
}
|
|
@@ -1413342,14 +1413343,15 @@ function parseCommaParts(str3) {
|
|
|
1413342
1413343
|
parts.push.apply(parts, p9);
|
|
1413343
1413344
|
return parts;
|
|
1413344
1413345
|
}
|
|
1413345
|
-
function expand(str3) {
|
|
1413346
|
+
function expand(str3, options2 = {}) {
|
|
1413346
1413347
|
if (!str3) {
|
|
1413347
1413348
|
return [];
|
|
1413348
1413349
|
}
|
|
1413350
|
+
const { max = EXPANSION_MAX } = options2;
|
|
1413349
1413351
|
if (str3.slice(0, 2) === "{}") {
|
|
1413350
1413352
|
str3 = "\\{\\}" + str3.slice(2);
|
|
1413351
1413353
|
}
|
|
1413352
|
-
return expand_(escapeBraces(str3), true).map(unescapeBraces);
|
|
1413354
|
+
return expand_(escapeBraces(str3), max, true).map(unescapeBraces);
|
|
1413353
1413355
|
}
|
|
1413354
1413356
|
function embrace(str3) {
|
|
1413355
1413357
|
return "{" + str3 + "}";
|
|
@@ -1413363,15 +1413365,15 @@ function lte(i11, y23) {
|
|
|
1413363
1413365
|
function gte(i11, y23) {
|
|
1413364
1413366
|
return i11 >= y23;
|
|
1413365
1413367
|
}
|
|
1413366
|
-
function expand_(str3, isTop) {
|
|
1413368
|
+
function expand_(str3, max, isTop) {
|
|
1413367
1413369
|
const expansions = [];
|
|
1413368
1413370
|
const m10 = balanced("{", "}", str3);
|
|
1413369
1413371
|
if (!m10)
|
|
1413370
1413372
|
return [str3];
|
|
1413371
1413373
|
const pre = m10.pre;
|
|
1413372
|
-
const post = m10.post.length ? expand_(m10.post, false) : [""];
|
|
1413374
|
+
const post = m10.post.length ? expand_(m10.post, max, false) : [""];
|
|
1413373
1413375
|
if (/\$$/.test(m10.pre)) {
|
|
1413374
|
-
for (let k18 = 0; k18 < post.length; k18++) {
|
|
1413376
|
+
for (let k18 = 0; k18 < post.length && k18 < max; k18++) {
|
|
1413375
1413377
|
const expansion = pre + "{" + m10.body + "}" + post[k18];
|
|
1413376
1413378
|
expansions.push(expansion);
|
|
1413377
1413379
|
}
|
|
@@ -1413383,7 +1413385,7 @@ function expand_(str3, isTop) {
|
|
|
1413383
1413385
|
if (!isSequence && !isOptions) {
|
|
1413384
1413386
|
if (m10.post.match(/,(?!,).*\}/)) {
|
|
1413385
1413387
|
str3 = m10.pre + "{" + m10.body + escClose + m10.post;
|
|
1413386
|
-
return expand_(str3);
|
|
1413388
|
+
return expand_(str3, max, true);
|
|
1413387
1413389
|
}
|
|
1413388
1413390
|
return [str3];
|
|
1413389
1413391
|
}
|
|
@@ -1413393,7 +1413395,7 @@ function expand_(str3, isTop) {
|
|
|
1413393
1413395
|
} else {
|
|
1413394
1413396
|
n6 = parseCommaParts(m10.body);
|
|
1413395
1413397
|
if (n6.length === 1 && n6[0] !== void 0) {
|
|
1413396
|
-
n6 = expand_(n6[0], false).map(embrace);
|
|
1413398
|
+
n6 = expand_(n6[0], max, false).map(embrace);
|
|
1413397
1413399
|
if (n6.length === 1) {
|
|
1413398
1413400
|
return post.map((p9) => m10.pre + n6[0] + p9);
|
|
1413399
1413401
|
}
|
|
@@ -1413439,11 +1413441,11 @@ function expand_(str3, isTop) {
|
|
|
1413439
1413441
|
} else {
|
|
1413440
1413442
|
N12 = [];
|
|
1413441
1413443
|
for (let j15 = 0; j15 < n6.length; j15++) {
|
|
1413442
|
-
N12.push.apply(N12, expand_(n6[j15], false));
|
|
1413444
|
+
N12.push.apply(N12, expand_(n6[j15], max, false));
|
|
1413443
1413445
|
}
|
|
1413444
1413446
|
}
|
|
1413445
1413447
|
for (let j15 = 0; j15 < N12.length; j15++) {
|
|
1413446
|
-
for (let k18 = 0; k18 < post.length; k18++) {
|
|
1413448
|
+
for (let k18 = 0; k18 < post.length && expansions.length < max; k18++) {
|
|
1413447
1413449
|
const expansion = pre + N12[j15] + post[k18];
|
|
1413448
1413450
|
if (!isTop || isSequence || expansion) {
|
|
1413449
1413451
|
expansions.push(expansion);
|
|
@@ -1413454,7 +1413456,7 @@ function expand_(str3, isTop) {
|
|
|
1413454
1413456
|
return expansions;
|
|
1413455
1413457
|
}
|
|
1413456
1413458
|
|
|
1413457
|
-
// ../../../node_modules/.pnpm/minimatch@10.1.
|
|
1413459
|
+
// ../../../node_modules/.pnpm/minimatch@10.1.2/node_modules/minimatch/dist/esm/assert-valid-pattern.js
|
|
1413458
1413460
|
var MAX_PATTERN_LENGTH = 1024 * 64;
|
|
1413459
1413461
|
var assertValidPattern = (pattern) => {
|
|
1413460
1413462
|
if (typeof pattern !== "string") {
|
|
@@ -1413465,7 +1413467,7 @@ var assertValidPattern = (pattern) => {
|
|
|
1413465
1413467
|
}
|
|
1413466
1413468
|
};
|
|
1413467
1413469
|
|
|
1413468
|
-
// ../../../node_modules/.pnpm/minimatch@10.1.
|
|
1413470
|
+
// ../../../node_modules/.pnpm/minimatch@10.1.2/node_modules/minimatch/dist/esm/brace-expressions.js
|
|
1413469
1413471
|
var posixClasses = {
|
|
1413470
1413472
|
"[:alnum:]": ["\\p{L}\\p{Nl}\\p{Nd}", true],
|
|
1413471
1413473
|
"[:alpha:]": ["\\p{L}\\p{Nl}", true],
|
|
@@ -1413574,7 +1413576,7 @@ var parseClass = (glob2, position4) => {
|
|
|
1413574
1413576
|
return [comb, uflag, endPos - pos2, true];
|
|
1413575
1413577
|
};
|
|
1413576
1413578
|
|
|
1413577
|
-
// ../../../node_modules/.pnpm/minimatch@10.1.
|
|
1413579
|
+
// ../../../node_modules/.pnpm/minimatch@10.1.2/node_modules/minimatch/dist/esm/unescape.js
|
|
1413578
1413580
|
var unescape2 = (s9, { windowsPathsNoEscape = false, magicalBraces = true } = {}) => {
|
|
1413579
1413581
|
if (magicalBraces) {
|
|
1413580
1413582
|
return windowsPathsNoEscape ? s9.replace(/\[([^\/\\])\]/g, "$1") : s9.replace(/((?!\\).|^)\[([^\/\\])\]/g, "$1$2").replace(/\\([^\/])/g, "$1");
|
|
@@ -1413582,7 +1413584,7 @@ var unescape2 = (s9, { windowsPathsNoEscape = false, magicalBraces = true } = {}
|
|
|
1413582
1413584
|
return windowsPathsNoEscape ? s9.replace(/\[([^\/\\{}])\]/g, "$1") : s9.replace(/((?!\\).|^)\[([^\/\\{}])\]/g, "$1$2").replace(/\\([^\/{}])/g, "$1");
|
|
1413583
1413585
|
};
|
|
1413584
1413586
|
|
|
1413585
|
-
// ../../../node_modules/.pnpm/minimatch@10.1.
|
|
1413587
|
+
// ../../../node_modules/.pnpm/minimatch@10.1.2/node_modules/minimatch/dist/esm/ast.js
|
|
1413586
1413588
|
var types = /* @__PURE__ */ new Set(["!", "?", "+", "*", "@"]);
|
|
1413587
1413589
|
var isExtglobType = (c16) => types.has(c16);
|
|
1413588
1413590
|
var startNoTraversal = "(?!(?:^|/)\\.\\.?(?:$|/))";
|
|
@@ -1414058,7 +1414060,7 @@ var AST = class _AST {
|
|
|
1414058
1414060
|
}
|
|
1414059
1414061
|
};
|
|
1414060
1414062
|
|
|
1414061
|
-
// ../../../node_modules/.pnpm/minimatch@10.1.
|
|
1414063
|
+
// ../../../node_modules/.pnpm/minimatch@10.1.2/node_modules/minimatch/dist/esm/escape.js
|
|
1414062
1414064
|
var escape3 = (s9, { windowsPathsNoEscape = false, magicalBraces = false } = {}) => {
|
|
1414063
1414065
|
if (magicalBraces) {
|
|
1414064
1414066
|
return windowsPathsNoEscape ? s9.replace(/[?*()[\]{}]/g, "[$&]") : s9.replace(/[?*()[\]\\{}]/g, "\\$&");
|
|
@@ -1414066,7 +1414068,7 @@ var escape3 = (s9, { windowsPathsNoEscape = false, magicalBraces = false } = {})
|
|
|
1414066
1414068
|
return windowsPathsNoEscape ? s9.replace(/[?*()[\]]/g, "[$&]") : s9.replace(/[?*()[\]\\]/g, "\\$&");
|
|
1414067
1414069
|
};
|
|
1414068
1414070
|
|
|
1414069
|
-
// ../../../node_modules/.pnpm/minimatch@10.1.
|
|
1414071
|
+
// ../../../node_modules/.pnpm/minimatch@10.1.2/node_modules/minimatch/dist/esm/index.js
|
|
1414070
1414072
|
var minimatch = (p9, pattern, options2 = {}) => {
|
|
1414071
1414073
|
assertValidPattern(pattern);
|
|
1414072
1414074
|
if (!options2.nocomment && pattern.charAt(0) === "#") {
|
|
@@ -1467992,7 +1467994,9 @@ var DocsConfiguration = schemas_exports8.object({
|
|
|
1467992
1467994
|
theme: ThemeConfig.optional(),
|
|
1467993
1467995
|
integrations: IntegrationsConfig.optional(),
|
|
1467994
1467996
|
css: CssConfig.optional(),
|
|
1467995
|
-
js: JsConfig.optional()
|
|
1467997
|
+
js: JsConfig.optional(),
|
|
1467998
|
+
header: schemas_exports8.string().optional(),
|
|
1467999
|
+
footer: schemas_exports8.string().optional()
|
|
1467996
1468000
|
});
|
|
1467997
1468001
|
|
|
1467998
1468002
|
// ../configuration/lib/docs-yml/schemas/sdk/serialization/resources/docs/types/FolderConfiguration.js
|
|
@@ -1479338,24 +1479342,19 @@ function buildEndpointExample({ endpointExample, context: context2 }) {
|
|
|
1479338
1479342
|
}
|
|
1479339
1479343
|
}
|
|
1479340
1479344
|
for (const [header, info] of Object.entries(globalHeaders)) {
|
|
1479341
|
-
if (endpointHeaderNames.has(header)) {
|
|
1479342
|
-
continue;
|
|
1479343
|
-
}
|
|
1479344
1479345
|
if (info != null && typeof info === "object" && info.type != null) {
|
|
1479345
1479346
|
const valueToUse = recursivelyVisitRawTypeReference({
|
|
1479346
1479347
|
type: info.type,
|
|
1479347
1479348
|
_default: void 0,
|
|
1479348
1479349
|
validation: void 0,
|
|
1479349
|
-
// generic visitor to extract the string value from the literal
|
|
1479350
|
-
// todo: add handling for other types in this visitor
|
|
1479351
1479350
|
visitor: {
|
|
1479352
|
-
primitive:
|
|
1479353
|
-
map:
|
|
1479354
|
-
list:
|
|
1479355
|
-
optional: (
|
|
1479356
|
-
nullable: (
|
|
1479357
|
-
set:
|
|
1479358
|
-
named:
|
|
1479351
|
+
primitive: noop2,
|
|
1479352
|
+
map: noop2,
|
|
1479353
|
+
list: noop2,
|
|
1479354
|
+
optional: (inner2) => inner2,
|
|
1479355
|
+
nullable: (inner2) => inner2,
|
|
1479356
|
+
set: noop2,
|
|
1479357
|
+
named: noop2,
|
|
1479359
1479358
|
literal: (literal3) => {
|
|
1479360
1479359
|
if (literal3.type === "string") {
|
|
1479361
1479360
|
return literal3.string;
|
|
@@ -1479368,17 +1479367,26 @@ function buildEndpointExample({ endpointExample, context: context2 }) {
|
|
|
1479368
1479367
|
}
|
|
1479369
1479368
|
});
|
|
1479370
1479369
|
if (valueToUse != null) {
|
|
1479371
|
-
namedFullExamples.
|
|
1479370
|
+
const existingIdx = namedFullExamples.findIndex((e6) => e6.name === header);
|
|
1479371
|
+
const newExample = {
|
|
1479372
1479372
|
name: header,
|
|
1479373
1479373
|
value: FullExample.literal(LiteralExample.string(valueToUse))
|
|
1479374
|
-
}
|
|
1479374
|
+
};
|
|
1479375
|
+
if (existingIdx >= 0) {
|
|
1479376
|
+
namedFullExamples[existingIdx] = newExample;
|
|
1479377
|
+
} else {
|
|
1479378
|
+
namedFullExamples.push(newExample);
|
|
1479379
|
+
}
|
|
1479380
|
+
continue;
|
|
1479375
1479381
|
}
|
|
1479376
|
-
} else {
|
|
1479377
|
-
namedFullExamples.push({
|
|
1479378
|
-
name: header,
|
|
1479379
|
-
value: FullExample.primitive(PrimitiveExample.string(header))
|
|
1479380
|
-
});
|
|
1479381
1479382
|
}
|
|
1479383
|
+
if (endpointHeaderNames.has(header)) {
|
|
1479384
|
+
continue;
|
|
1479385
|
+
}
|
|
1479386
|
+
namedFullExamples.push({
|
|
1479387
|
+
name: header,
|
|
1479388
|
+
value: FullExample.primitive(PrimitiveExample.string(header))
|
|
1479389
|
+
});
|
|
1479382
1479390
|
}
|
|
1479383
1479391
|
example.headers = convertHeaderExamples2({
|
|
1479384
1479392
|
context: context2,
|
|
@@ -1678886,7 +1678894,7 @@ var AccessTokenPosthogManager = class {
|
|
|
1678886
1678894
|
properties: {
|
|
1678887
1678895
|
...event,
|
|
1678888
1678896
|
...event.properties,
|
|
1678889
|
-
version: "3.60.
|
|
1678897
|
+
version: "3.60.2-1-g4e59243ad4c",
|
|
1678890
1678898
|
usingAccessToken: true
|
|
1678891
1678899
|
}
|
|
1678892
1678900
|
});
|
|
@@ -1678936,7 +1678944,7 @@ var UserPosthogManager = class {
|
|
|
1678936
1678944
|
distinctId: this.userId ?? await this.getPersistedDistinctId(),
|
|
1678937
1678945
|
event: "CLI",
|
|
1678938
1678946
|
properties: {
|
|
1678939
|
-
version: "3.60.
|
|
1678947
|
+
version: "3.60.2-1-g4e59243ad4c",
|
|
1678940
1678948
|
...event,
|
|
1678941
1678949
|
...event.properties,
|
|
1678942
1678950
|
usingAccessToken: false,
|
|
@@ -1710858,7 +1710866,7 @@ var CliContext = class {
|
|
|
1710858
1710866
|
if (false) {
|
|
1710859
1710867
|
this.logger.error("CLI_VERSION is not defined");
|
|
1710860
1710868
|
}
|
|
1710861
|
-
return "3.60.
|
|
1710869
|
+
return "3.60.2-1-g4e59243ad4c";
|
|
1710862
1710870
|
}
|
|
1710863
1710871
|
getCliName() {
|
|
1710864
1710872
|
if (false) {
|
|
@@ -1713972,7 +1713980,7 @@ var import_path56 = __toESM(require("path"), 1);
|
|
|
1713972
1713980
|
var LOCAL_STORAGE_FOLDER4 = ".fern-dev";
|
|
1713973
1713981
|
var LOGS_FOLDER_NAME = "logs";
|
|
1713974
1713982
|
function getCliSource() {
|
|
1713975
|
-
const version7 = "3.60.
|
|
1713983
|
+
const version7 = "3.60.2-1-g4e59243ad4c";
|
|
1713976
1713984
|
return `cli@${version7}`;
|
|
1713977
1713985
|
}
|
|
1713978
1713986
|
var DebugLogger = class {
|
package/package.json
CHANGED