@fern-api/fern-api-dev 5.49.1 → 5.49.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/cli.cjs +8 -83
- package/package.json +1 -1
package/cli.cjs
CHANGED
|
@@ -397124,7 +397124,6 @@ var require_pushSignedCommit = __commonJS({
|
|
|
397124
397124
|
exports2.pushSignedCommit = pushSignedCommit;
|
|
397125
397125
|
exports2.isNonFastForwardError = isNonFastForwardError;
|
|
397126
397126
|
var core_utils_1 = (init_lib4(), __toCommonJS(lib_exports));
|
|
397127
|
-
var constants_1 = require_constants8();
|
|
397128
397127
|
var MAX_CONCURRENT_PUSH_RETRIES = 3;
|
|
397129
397128
|
async function pushSignedCommit({ repository, octokit, owner, repo, branch, force, rebaseOnConflict = false, author, logger: logger4 }) {
|
|
397130
397129
|
const tempRef = `refs/temp/fern-${Date.now()}`;
|
|
@@ -397139,16 +397138,14 @@ var require_pushSignedCommit = __commonJS({
|
|
|
397139
397138
|
await repository.pushObjectToRef(localHeadSha, tempRef);
|
|
397140
397139
|
tempRefPushed = true;
|
|
397141
397140
|
for (let attempt = 0; attempt < MAX_CONCURRENT_PUSH_RETRIES; attempt++) {
|
|
397142
|
-
const
|
|
397143
|
-
const committerField = author != null ? { committer: author } : {};
|
|
397141
|
+
const identityFields = author != null ? { author, committer: author } : {};
|
|
397144
397142
|
const { data: signedCommit } = await octokit.git.createCommit({
|
|
397145
397143
|
owner,
|
|
397146
397144
|
repo,
|
|
397147
397145
|
message,
|
|
397148
397146
|
tree: treeSha,
|
|
397149
397147
|
parents,
|
|
397150
|
-
|
|
397151
|
-
...committerField
|
|
397148
|
+
...identityFields
|
|
397152
397149
|
});
|
|
397153
397150
|
const signedSha = signedCommit.sha;
|
|
397154
397151
|
try {
|
|
@@ -536245,13 +536242,6 @@ function inferCommonPropertiesFromVariants({ variants, discriminant: discriminan
|
|
|
536245
536242
|
if (firstVariantProps == null) {
|
|
536246
536243
|
return [];
|
|
536247
536244
|
}
|
|
536248
|
-
const inheritedFromSharedParent = getPropertyNamesInheritedFromSharedAllOfRefParents({
|
|
536249
|
-
variants,
|
|
536250
|
-
context: context3,
|
|
536251
|
-
breadcrumbs,
|
|
536252
|
-
source: source2,
|
|
536253
|
-
namespace
|
|
536254
|
-
});
|
|
536255
536245
|
const variantRequiredSets = variants.map((variant) => getAllRequiredPropertyNames({ schema: variant, context: context3, visited: /* @__PURE__ */ new Set() }));
|
|
536256
536246
|
const result = [];
|
|
536257
536247
|
for (const [propertyName, firstSchema] of Object.entries(firstVariantProps)) {
|
|
@@ -536261,9 +536251,6 @@ function inferCommonPropertiesFromVariants({ variants, discriminant: discriminan
|
|
|
536261
536251
|
if (existingPropertyNames.has(propertyName)) {
|
|
536262
536252
|
continue;
|
|
536263
536253
|
}
|
|
536264
|
-
if (inheritedFromSharedParent.has(propertyName)) {
|
|
536265
|
-
continue;
|
|
536266
|
-
}
|
|
536267
536254
|
let presentInAll = true;
|
|
536268
536255
|
for (let i6 = 1; i6 < variantPropertyMaps.length; i6++) {
|
|
536269
536256
|
const map16 = variantPropertyMaps[i6];
|
|
@@ -536315,68 +536302,6 @@ function getAllRequiredPropertyNames({ schema: schema2, context: context3, visit
|
|
|
536315
536302
|
}
|
|
536316
536303
|
return result;
|
|
536317
536304
|
}
|
|
536318
|
-
function getPropertyNamesInheritedFromSharedAllOfRefParents({ variants, context: context3, breadcrumbs, source: source2, namespace }) {
|
|
536319
|
-
if (variants.length === 0) {
|
|
536320
|
-
return /* @__PURE__ */ new Set();
|
|
536321
|
-
}
|
|
536322
|
-
const refsPerVariant = variants.map((variant) => collectTransitiveAllOfRefs({ schema: variant, context: context3, visited: /* @__PURE__ */ new Set() }));
|
|
536323
|
-
const firstSet = refsPerVariant[0];
|
|
536324
|
-
if (firstSet == null || firstSet.size === 0) {
|
|
536325
|
-
return /* @__PURE__ */ new Set();
|
|
536326
|
-
}
|
|
536327
|
-
const inherited = /* @__PURE__ */ new Set();
|
|
536328
|
-
for (const [refKey, refObject] of firstSet) {
|
|
536329
|
-
const sharedAcrossAllVariants = refsPerVariant.every((s5) => s5.has(refKey));
|
|
536330
|
-
if (!sharedAcrossAllVariants) {
|
|
536331
|
-
continue;
|
|
536332
|
-
}
|
|
536333
|
-
const parentProperties = getAllProperties({
|
|
536334
|
-
schema: refObject,
|
|
536335
|
-
context: context3,
|
|
536336
|
-
breadcrumbs,
|
|
536337
|
-
source: source2,
|
|
536338
|
-
namespace
|
|
536339
|
-
});
|
|
536340
|
-
for (const propertyName of Object.keys(parentProperties)) {
|
|
536341
|
-
inherited.add(propertyName);
|
|
536342
|
-
}
|
|
536343
|
-
}
|
|
536344
|
-
return inherited;
|
|
536345
|
-
}
|
|
536346
|
-
function collectTransitiveAllOfRefs({ schema: schema2, context: context3, visited }) {
|
|
536347
|
-
const result = /* @__PURE__ */ new Map();
|
|
536348
|
-
let resolved;
|
|
536349
|
-
if (isReferenceObject(schema2)) {
|
|
536350
|
-
if (visited.has(schema2.$ref)) {
|
|
536351
|
-
return result;
|
|
536352
|
-
}
|
|
536353
|
-
visited.add(schema2.$ref);
|
|
536354
|
-
resolved = context3.resolveSchemaReference(schema2);
|
|
536355
|
-
} else {
|
|
536356
|
-
resolved = schema2;
|
|
536357
|
-
}
|
|
536358
|
-
for (const allOfElement of resolved.allOf ?? []) {
|
|
536359
|
-
if (isReferenceObject(allOfElement)) {
|
|
536360
|
-
if (!result.has(allOfElement.$ref)) {
|
|
536361
|
-
result.set(allOfElement.$ref, allOfElement);
|
|
536362
|
-
}
|
|
536363
|
-
const nested = collectTransitiveAllOfRefs({ schema: allOfElement, context: context3, visited });
|
|
536364
|
-
for (const [k4, v3] of nested) {
|
|
536365
|
-
if (!result.has(k4)) {
|
|
536366
|
-
result.set(k4, v3);
|
|
536367
|
-
}
|
|
536368
|
-
}
|
|
536369
|
-
} else {
|
|
536370
|
-
const nested = collectTransitiveAllOfRefs({ schema: allOfElement, context: context3, visited });
|
|
536371
|
-
for (const [k4, v3] of nested) {
|
|
536372
|
-
if (!result.has(k4)) {
|
|
536373
|
-
result.set(k4, v3);
|
|
536374
|
-
}
|
|
536375
|
-
}
|
|
536376
|
-
}
|
|
536377
|
-
}
|
|
536378
|
-
return result;
|
|
536379
|
-
}
|
|
536380
536305
|
|
|
536381
536306
|
// ../api-importers/openapi/openapi-ir-parser/lib/schema/convertEncoding.js
|
|
536382
536307
|
function convertEncoding(encodingSchema) {
|
|
@@ -628742,7 +628667,7 @@ var AccessTokenPosthogManager = class {
|
|
|
628742
628667
|
properties: {
|
|
628743
628668
|
...event,
|
|
628744
628669
|
...event.properties,
|
|
628745
|
-
version: "5.49.
|
|
628670
|
+
version: "5.49.2",
|
|
628746
628671
|
usingAccessToken: true,
|
|
628747
628672
|
...getRunIdProperties()
|
|
628748
628673
|
}
|
|
@@ -628806,7 +628731,7 @@ var UserPosthogManager = class {
|
|
|
628806
628731
|
distinctId: this.userId ?? await this.getPersistedDistinctId(),
|
|
628807
628732
|
event: "CLI",
|
|
628808
628733
|
properties: {
|
|
628809
|
-
version: "5.49.
|
|
628734
|
+
version: "5.49.2",
|
|
628810
628735
|
...event,
|
|
628811
628736
|
...event.properties,
|
|
628812
628737
|
usingAccessToken: false,
|
|
@@ -820821,7 +820746,7 @@ var LOCAL_STORAGE_FOLDER4 = ".fern-dev";
|
|
|
820821
820746
|
var LOGS_FOLDER_NAME = "logs";
|
|
820822
820747
|
var MAX_LOGS_DIR_SIZE_BYTES = 100 * 1024 * 1024;
|
|
820823
820748
|
function getCliSource() {
|
|
820824
|
-
const version7 = "5.49.
|
|
820749
|
+
const version7 = "5.49.2";
|
|
820825
820750
|
return `cli@${version7}`;
|
|
820826
820751
|
}
|
|
820827
820752
|
var DebugLogger = class {
|
|
@@ -852154,7 +852079,7 @@ var LegacyDocsPublisher = class {
|
|
|
852154
852079
|
previewId,
|
|
852155
852080
|
disableTemplates: void 0,
|
|
852156
852081
|
skipUpload,
|
|
852157
|
-
cliVersion: "5.49.
|
|
852082
|
+
cliVersion: "5.49.2",
|
|
852158
852083
|
loginCommand: "fern auth login"
|
|
852159
852084
|
});
|
|
852160
852085
|
if (taskContext.getResult() === TaskResult.Failure) {
|
|
@@ -917540,7 +917465,7 @@ function getAutomationContextFromEnv() {
|
|
|
917540
917465
|
config_branch: process.env.FERN_CONFIG_BRANCH,
|
|
917541
917466
|
config_pr_number: process.env.FERN_CONFIG_PR_NUMBER,
|
|
917542
917467
|
trigger: process.env.GITHUB_EVENT_NAME,
|
|
917543
|
-
cli_version: "5.49.
|
|
917468
|
+
cli_version: "5.49.2"
|
|
917544
917469
|
};
|
|
917545
917470
|
}
|
|
917546
917471
|
function isAutomationMode() {
|
|
@@ -918366,7 +918291,7 @@ var CliContext = class _CliContext {
|
|
|
918366
918291
|
if (false) {
|
|
918367
918292
|
this.logger.error("CLI_VERSION is not defined");
|
|
918368
918293
|
}
|
|
918369
|
-
return "5.49.
|
|
918294
|
+
return "5.49.2";
|
|
918370
918295
|
}
|
|
918371
918296
|
getCliName() {
|
|
918372
918297
|
if (false) {
|
package/package.json
CHANGED