@fern-api/fern-api-dev 5.23.3-761-ga2940802a07 → 5.23.3-765-gc7c3e4796f9
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 +24 -88
- package/package.json +1 -1
package/cli.cjs
CHANGED
|
@@ -52666,9 +52666,9 @@ var init_streamObjectToFile = __esm({
|
|
|
52666
52666
|
}
|
|
52667
52667
|
});
|
|
52668
52668
|
|
|
52669
|
-
// ../../../node_modules/.pnpm/tmp@0.2.
|
|
52669
|
+
// ../../../node_modules/.pnpm/tmp@0.2.7/node_modules/tmp/lib/tmp.js
|
|
52670
52670
|
var require_tmp = __commonJS({
|
|
52671
|
-
"../../../node_modules/.pnpm/tmp@0.2.
|
|
52671
|
+
"../../../node_modules/.pnpm/tmp@0.2.7/node_modules/tmp/lib/tmp.js"(exports2, module4) {
|
|
52672
52672
|
"use strict";
|
|
52673
52673
|
var fs34 = require("fs");
|
|
52674
52674
|
var os22 = require("os");
|
|
@@ -52919,11 +52919,14 @@ var require_tmp = __commonJS({
|
|
|
52919
52919
|
].join("");
|
|
52920
52920
|
return path118.join(tmpDir, opts.dir, name2);
|
|
52921
52921
|
}
|
|
52922
|
-
function _assertPath(
|
|
52923
|
-
if (
|
|
52922
|
+
function _assertPath(option, value2) {
|
|
52923
|
+
if (typeof value2 !== "string") {
|
|
52924
|
+
throw new Error(`${option} option must be a string, got "${typeof value2}".`);
|
|
52925
|
+
}
|
|
52926
|
+
if (value2.includes("..")) {
|
|
52924
52927
|
throw new Error("Relative value not allowed");
|
|
52925
52928
|
}
|
|
52926
|
-
return
|
|
52929
|
+
return value2;
|
|
52927
52930
|
}
|
|
52928
52931
|
function _assertOptionsBase(options2) {
|
|
52929
52932
|
if (!_isUndefined(options2.name)) {
|
|
@@ -52934,8 +52937,13 @@ var require_tmp = __commonJS({
|
|
|
52934
52937
|
throw new Error(`name option must not contain a path, found "${name2}".`);
|
|
52935
52938
|
}
|
|
52936
52939
|
}
|
|
52937
|
-
if (!_isUndefined(options2.template)
|
|
52938
|
-
|
|
52940
|
+
if (!_isUndefined(options2.template)) {
|
|
52941
|
+
if (typeof options2.template !== "string") {
|
|
52942
|
+
throw new Error(`template option must be a string, got "${typeof options2.template}".`);
|
|
52943
|
+
}
|
|
52944
|
+
if (!options2.template.match(TEMPLATE_PATTERN)) {
|
|
52945
|
+
throw new Error(`Invalid template, found "${options2.template}".`);
|
|
52946
|
+
}
|
|
52939
52947
|
}
|
|
52940
52948
|
if (!_isUndefined(options2.tries) && isNaN(options2.tries) || options2.tries < 0) {
|
|
52941
52949
|
throw new Error(`Invalid tries, found "${options2.tries}".`);
|
|
@@ -52945,9 +52953,9 @@ var require_tmp = __commonJS({
|
|
|
52945
52953
|
options2.detachDescriptor = !!options2.detachDescriptor;
|
|
52946
52954
|
options2.discardDescriptor = !!options2.discardDescriptor;
|
|
52947
52955
|
options2.unsafeCleanup = !!options2.unsafeCleanup;
|
|
52948
|
-
options2.prefix = _isUndefined(options2.prefix) ? "" : _assertPath(options2.prefix);
|
|
52949
|
-
options2.postfix = _isUndefined(options2.postfix) ? "" : _assertPath(options2.postfix);
|
|
52950
|
-
options2.template = _isUndefined(options2.template) ? void 0 : _assertPath(options2.template);
|
|
52956
|
+
options2.prefix = _isUndefined(options2.prefix) ? "" : _assertPath("prefix", options2.prefix);
|
|
52957
|
+
options2.postfix = _isUndefined(options2.postfix) ? "" : _assertPath("postfix", options2.postfix);
|
|
52958
|
+
options2.template = _isUndefined(options2.template) ? void 0 : _assertPath("template", options2.template);
|
|
52951
52959
|
}
|
|
52952
52960
|
function _getRelativePath(option, name2, tmpDir, cb) {
|
|
52953
52961
|
if (_isUndefined(name2)) return cb(null);
|
|
@@ -536242,13 +536250,6 @@ function inferCommonPropertiesFromVariants({ variants, discriminant: discriminan
|
|
|
536242
536250
|
if (firstVariantProps == null) {
|
|
536243
536251
|
return [];
|
|
536244
536252
|
}
|
|
536245
|
-
const inheritedFromSharedParent = getPropertyNamesInheritedFromSharedAllOfRefParents({
|
|
536246
|
-
variants,
|
|
536247
|
-
context: context3,
|
|
536248
|
-
breadcrumbs,
|
|
536249
|
-
source: source2,
|
|
536250
|
-
namespace
|
|
536251
|
-
});
|
|
536252
536253
|
const variantRequiredSets = variants.map((variant) => getAllRequiredPropertyNames({ schema: variant, context: context3, visited: /* @__PURE__ */ new Set() }));
|
|
536253
536254
|
const result = [];
|
|
536254
536255
|
for (const [propertyName, firstSchema] of Object.entries(firstVariantProps)) {
|
|
@@ -536258,9 +536259,6 @@ function inferCommonPropertiesFromVariants({ variants, discriminant: discriminan
|
|
|
536258
536259
|
if (existingPropertyNames.has(propertyName)) {
|
|
536259
536260
|
continue;
|
|
536260
536261
|
}
|
|
536261
|
-
if (inheritedFromSharedParent.has(propertyName)) {
|
|
536262
|
-
continue;
|
|
536263
|
-
}
|
|
536264
536262
|
let presentInAll = true;
|
|
536265
536263
|
for (let i6 = 1; i6 < variantPropertyMaps.length; i6++) {
|
|
536266
536264
|
const map16 = variantPropertyMaps[i6];
|
|
@@ -536312,68 +536310,6 @@ function getAllRequiredPropertyNames({ schema: schema2, context: context3, visit
|
|
|
536312
536310
|
}
|
|
536313
536311
|
return result;
|
|
536314
536312
|
}
|
|
536315
|
-
function getPropertyNamesInheritedFromSharedAllOfRefParents({ variants, context: context3, breadcrumbs, source: source2, namespace }) {
|
|
536316
|
-
if (variants.length === 0) {
|
|
536317
|
-
return /* @__PURE__ */ new Set();
|
|
536318
|
-
}
|
|
536319
|
-
const refsPerVariant = variants.map((variant) => collectTransitiveAllOfRefs({ schema: variant, context: context3, visited: /* @__PURE__ */ new Set() }));
|
|
536320
|
-
const firstSet = refsPerVariant[0];
|
|
536321
|
-
if (firstSet == null || firstSet.size === 0) {
|
|
536322
|
-
return /* @__PURE__ */ new Set();
|
|
536323
|
-
}
|
|
536324
|
-
const inherited = /* @__PURE__ */ new Set();
|
|
536325
|
-
for (const [refKey, refObject] of firstSet) {
|
|
536326
|
-
const sharedAcrossAllVariants = refsPerVariant.every((s5) => s5.has(refKey));
|
|
536327
|
-
if (!sharedAcrossAllVariants) {
|
|
536328
|
-
continue;
|
|
536329
|
-
}
|
|
536330
|
-
const parentProperties = getAllProperties({
|
|
536331
|
-
schema: refObject,
|
|
536332
|
-
context: context3,
|
|
536333
|
-
breadcrumbs,
|
|
536334
|
-
source: source2,
|
|
536335
|
-
namespace
|
|
536336
|
-
});
|
|
536337
|
-
for (const propertyName of Object.keys(parentProperties)) {
|
|
536338
|
-
inherited.add(propertyName);
|
|
536339
|
-
}
|
|
536340
|
-
}
|
|
536341
|
-
return inherited;
|
|
536342
|
-
}
|
|
536343
|
-
function collectTransitiveAllOfRefs({ schema: schema2, context: context3, visited }) {
|
|
536344
|
-
const result = /* @__PURE__ */ new Map();
|
|
536345
|
-
let resolved;
|
|
536346
|
-
if (isReferenceObject(schema2)) {
|
|
536347
|
-
if (visited.has(schema2.$ref)) {
|
|
536348
|
-
return result;
|
|
536349
|
-
}
|
|
536350
|
-
visited.add(schema2.$ref);
|
|
536351
|
-
resolved = context3.resolveSchemaReference(schema2);
|
|
536352
|
-
} else {
|
|
536353
|
-
resolved = schema2;
|
|
536354
|
-
}
|
|
536355
|
-
for (const allOfElement of resolved.allOf ?? []) {
|
|
536356
|
-
if (isReferenceObject(allOfElement)) {
|
|
536357
|
-
if (!result.has(allOfElement.$ref)) {
|
|
536358
|
-
result.set(allOfElement.$ref, allOfElement);
|
|
536359
|
-
}
|
|
536360
|
-
const nested = collectTransitiveAllOfRefs({ schema: allOfElement, context: context3, visited });
|
|
536361
|
-
for (const [k4, v3] of nested) {
|
|
536362
|
-
if (!result.has(k4)) {
|
|
536363
|
-
result.set(k4, v3);
|
|
536364
|
-
}
|
|
536365
|
-
}
|
|
536366
|
-
} else {
|
|
536367
|
-
const nested = collectTransitiveAllOfRefs({ schema: allOfElement, context: context3, visited });
|
|
536368
|
-
for (const [k4, v3] of nested) {
|
|
536369
|
-
if (!result.has(k4)) {
|
|
536370
|
-
result.set(k4, v3);
|
|
536371
|
-
}
|
|
536372
|
-
}
|
|
536373
|
-
}
|
|
536374
|
-
}
|
|
536375
|
-
return result;
|
|
536376
|
-
}
|
|
536377
536313
|
|
|
536378
536314
|
// ../api-importers/openapi/openapi-ir-parser/lib/schema/convertEncoding.js
|
|
536379
536315
|
function convertEncoding(encodingSchema) {
|
|
@@ -628739,7 +628675,7 @@ var AccessTokenPosthogManager = class {
|
|
|
628739
628675
|
properties: {
|
|
628740
628676
|
...event,
|
|
628741
628677
|
...event.properties,
|
|
628742
|
-
version: "5.23.3-
|
|
628678
|
+
version: "5.23.3-765-gc7c3e4796f9",
|
|
628743
628679
|
usingAccessToken: true,
|
|
628744
628680
|
...getRunIdProperties()
|
|
628745
628681
|
}
|
|
@@ -628803,7 +628739,7 @@ var UserPosthogManager = class {
|
|
|
628803
628739
|
distinctId: this.userId ?? await this.getPersistedDistinctId(),
|
|
628804
628740
|
event: "CLI",
|
|
628805
628741
|
properties: {
|
|
628806
|
-
version: "5.23.3-
|
|
628742
|
+
version: "5.23.3-765-gc7c3e4796f9",
|
|
628807
628743
|
...event,
|
|
628808
628744
|
...event.properties,
|
|
628809
628745
|
usingAccessToken: false,
|
|
@@ -820818,7 +820754,7 @@ var LOCAL_STORAGE_FOLDER4 = ".fern-dev";
|
|
|
820818
820754
|
var LOGS_FOLDER_NAME = "logs";
|
|
820819
820755
|
var MAX_LOGS_DIR_SIZE_BYTES = 100 * 1024 * 1024;
|
|
820820
820756
|
function getCliSource() {
|
|
820821
|
-
const version7 = "5.23.3-
|
|
820757
|
+
const version7 = "5.23.3-765-gc7c3e4796f9";
|
|
820822
820758
|
return `cli@${version7}`;
|
|
820823
820759
|
}
|
|
820824
820760
|
var DebugLogger = class {
|
|
@@ -852151,7 +852087,7 @@ var LegacyDocsPublisher = class {
|
|
|
852151
852087
|
previewId,
|
|
852152
852088
|
disableTemplates: void 0,
|
|
852153
852089
|
skipUpload,
|
|
852154
|
-
cliVersion: "5.23.3-
|
|
852090
|
+
cliVersion: "5.23.3-765-gc7c3e4796f9",
|
|
852155
852091
|
loginCommand: "fern auth login"
|
|
852156
852092
|
});
|
|
852157
852093
|
if (taskContext.getResult() === TaskResult.Failure) {
|
|
@@ -917537,7 +917473,7 @@ function getAutomationContextFromEnv() {
|
|
|
917537
917473
|
config_branch: process.env.FERN_CONFIG_BRANCH,
|
|
917538
917474
|
config_pr_number: process.env.FERN_CONFIG_PR_NUMBER,
|
|
917539
917475
|
trigger: process.env.GITHUB_EVENT_NAME,
|
|
917540
|
-
cli_version: "5.23.3-
|
|
917476
|
+
cli_version: "5.23.3-765-gc7c3e4796f9"
|
|
917541
917477
|
};
|
|
917542
917478
|
}
|
|
917543
917479
|
function isAutomationMode() {
|
|
@@ -918363,7 +918299,7 @@ var CliContext = class _CliContext {
|
|
|
918363
918299
|
if (false) {
|
|
918364
918300
|
this.logger.error("CLI_VERSION is not defined");
|
|
918365
918301
|
}
|
|
918366
|
-
return "5.23.3-
|
|
918302
|
+
return "5.23.3-765-gc7c3e4796f9";
|
|
918367
918303
|
}
|
|
918368
918304
|
getCliName() {
|
|
918369
918305
|
if (false) {
|
package/package.json
CHANGED