@fern-api/fern-api-dev 4.103.0 → 4.103.1-4-g44dd803daf9
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 +63 -18
- package/package.json +1 -1
package/cli.cjs
CHANGED
|
@@ -511311,7 +511311,8 @@ var FernDocsConfigError = class extends Error {
|
|
|
511311
511311
|
statusCode;
|
|
511312
511312
|
body;
|
|
511313
511313
|
rawResponse;
|
|
511314
|
-
|
|
511314
|
+
cause;
|
|
511315
|
+
constructor({ message, statusCode, body, rawResponse, cause }) {
|
|
511315
511316
|
super(buildMessage2({ message, statusCode, body }));
|
|
511316
511317
|
Object.setPrototypeOf(this, new.target.prototype);
|
|
511317
511318
|
if (Error.captureStackTrace) {
|
|
@@ -511321,6 +511322,9 @@ var FernDocsConfigError = class extends Error {
|
|
|
511321
511322
|
this.statusCode = statusCode;
|
|
511322
511323
|
this.body = body;
|
|
511323
511324
|
this.rawResponse = rawResponse;
|
|
511325
|
+
if (cause != null) {
|
|
511326
|
+
this.cause = cause;
|
|
511327
|
+
}
|
|
511324
511328
|
}
|
|
511325
511329
|
};
|
|
511326
511330
|
function buildMessage2({ message, statusCode, body }) {
|
|
@@ -511339,13 +511343,17 @@ function buildMessage2({ message, statusCode, body }) {
|
|
|
511339
511343
|
|
|
511340
511344
|
// ../configuration/lib/docs-yml/schemas/sdk/errors/FernDocsConfigTimeoutError.js
|
|
511341
511345
|
var FernDocsConfigTimeoutError = class extends Error {
|
|
511342
|
-
|
|
511346
|
+
cause;
|
|
511347
|
+
constructor(message, opts) {
|
|
511343
511348
|
super(message);
|
|
511344
511349
|
Object.setPrototypeOf(this, new.target.prototype);
|
|
511345
511350
|
if (Error.captureStackTrace) {
|
|
511346
511351
|
Error.captureStackTrace(this, this.constructor);
|
|
511347
511352
|
}
|
|
511348
511353
|
this.name = this.constructor.name;
|
|
511354
|
+
if (opts?.cause != null) {
|
|
511355
|
+
this.cause = opts.cause;
|
|
511356
|
+
}
|
|
511349
511357
|
}
|
|
511350
511358
|
};
|
|
511351
511359
|
|
|
@@ -511808,6 +511816,7 @@ __export(schemas_exports6, {
|
|
|
511808
511816
|
object: () => object4,
|
|
511809
511817
|
objectWithoutOptionalProperties: () => objectWithoutOptionalProperties3,
|
|
511810
511818
|
optional: () => optional4,
|
|
511819
|
+
partialRecord: () => partialRecord2,
|
|
511811
511820
|
property: () => property4,
|
|
511812
511821
|
record: () => record4,
|
|
511813
511822
|
set: () => set6,
|
|
@@ -511906,22 +511915,24 @@ function stringifyValidationError3(error50) {
|
|
|
511906
511915
|
}
|
|
511907
511916
|
|
|
511908
511917
|
// ../configuration/lib/docs-yml/schemas/sdk/core/schemas/builders/schema-utils/JsonError.js
|
|
511909
|
-
var JsonError3 = class
|
|
511918
|
+
var JsonError3 = class extends Error {
|
|
511910
511919
|
errors;
|
|
511911
511920
|
constructor(errors4) {
|
|
511912
511921
|
super(errors4.map(stringifyValidationError3).join("; "));
|
|
511913
511922
|
this.errors = errors4;
|
|
511914
|
-
Object.setPrototypeOf(this,
|
|
511923
|
+
Object.setPrototypeOf(this, new.target.prototype);
|
|
511924
|
+
this.name = this.constructor.name;
|
|
511915
511925
|
}
|
|
511916
511926
|
};
|
|
511917
511927
|
|
|
511918
511928
|
// ../configuration/lib/docs-yml/schemas/sdk/core/schemas/builders/schema-utils/ParseError.js
|
|
511919
|
-
var ParseError3 = class
|
|
511929
|
+
var ParseError3 = class extends Error {
|
|
511920
511930
|
errors;
|
|
511921
511931
|
constructor(errors4) {
|
|
511922
511932
|
super(errors4.map(stringifyValidationError3).join("; "));
|
|
511923
511933
|
this.errors = errors4;
|
|
511924
|
-
Object.setPrototypeOf(this,
|
|
511934
|
+
Object.setPrototypeOf(this, new.target.prototype);
|
|
511935
|
+
this.name = this.constructor.name;
|
|
511925
511936
|
}
|
|
511926
511937
|
};
|
|
511927
511938
|
|
|
@@ -512947,6 +512958,45 @@ function record4(keySchema, valueSchema) {
|
|
|
512947
512958
|
...getSchemaUtils3(baseSchema)
|
|
512948
512959
|
};
|
|
512949
512960
|
}
|
|
512961
|
+
function partialRecord2(keySchema, valueSchema) {
|
|
512962
|
+
const baseSchema = {
|
|
512963
|
+
parse: (raw, opts) => {
|
|
512964
|
+
return validateAndTransformRecord3({
|
|
512965
|
+
value: raw,
|
|
512966
|
+
isKeyNumeric: keySchema.getType() === SchemaType3.NUMBER,
|
|
512967
|
+
transformKey: (key2) => keySchema.parse(key2, {
|
|
512968
|
+
...opts,
|
|
512969
|
+
breadcrumbsPrefix: [...opts?.breadcrumbsPrefix ?? [], `${key2} (key)`]
|
|
512970
|
+
}),
|
|
512971
|
+
transformValue: (value2, key2) => valueSchema.parse(value2, {
|
|
512972
|
+
...opts,
|
|
512973
|
+
breadcrumbsPrefix: [...opts?.breadcrumbsPrefix ?? [], `${key2}`]
|
|
512974
|
+
}),
|
|
512975
|
+
breadcrumbsPrefix: opts?.breadcrumbsPrefix
|
|
512976
|
+
});
|
|
512977
|
+
},
|
|
512978
|
+
json: (parsed, opts) => {
|
|
512979
|
+
return validateAndTransformRecord3({
|
|
512980
|
+
value: parsed,
|
|
512981
|
+
isKeyNumeric: keySchema.getType() === SchemaType3.NUMBER,
|
|
512982
|
+
transformKey: (key2) => keySchema.json(key2, {
|
|
512983
|
+
...opts,
|
|
512984
|
+
breadcrumbsPrefix: [...opts?.breadcrumbsPrefix ?? [], `${key2} (key)`]
|
|
512985
|
+
}),
|
|
512986
|
+
transformValue: (value2, key2) => valueSchema.json(value2, {
|
|
512987
|
+
...opts,
|
|
512988
|
+
breadcrumbsPrefix: [...opts?.breadcrumbsPrefix ?? [], `${key2}`]
|
|
512989
|
+
}),
|
|
512990
|
+
breadcrumbsPrefix: opts?.breadcrumbsPrefix
|
|
512991
|
+
});
|
|
512992
|
+
},
|
|
512993
|
+
getType: () => SchemaType3.RECORD
|
|
512994
|
+
};
|
|
512995
|
+
return {
|
|
512996
|
+
...maybeSkipValidation3(baseSchema),
|
|
512997
|
+
...getSchemaUtils3(baseSchema)
|
|
512998
|
+
};
|
|
512999
|
+
}
|
|
512950
513000
|
function validateAndTransformRecord3({ value: value2, isKeyNumeric, transformKey, transformValue, breadcrumbsPrefix = [] }) {
|
|
512951
513001
|
if (!isPlainObject10(value2)) {
|
|
512952
513002
|
return {
|
|
@@ -542018,12 +542068,7 @@ async function parseDocsConfiguration({ rawDocsConfiguration, absolutePathToFern
|
|
|
542018
542068
|
heap: void 0
|
|
542019
542069
|
},
|
|
542020
542070
|
/* integrations */
|
|
542021
|
-
integrations: {
|
|
542022
|
-
...integrations,
|
|
542023
|
-
// context7 is handled separately via context7File (resolved to AbsoluteFilePath)
|
|
542024
|
-
context7: void 0,
|
|
542025
|
-
intercom: integrations?.intercom ? integrations.intercom : void 0
|
|
542026
|
-
},
|
|
542071
|
+
integrations: integrations != null ? { intercom: integrations.intercom ?? void 0 } : void 0,
|
|
542027
542072
|
/* scripts */
|
|
542028
542073
|
css,
|
|
542029
542074
|
js: js7,
|
|
@@ -620917,7 +620962,7 @@ var AccessTokenPosthogManager = class {
|
|
|
620917
620962
|
properties: {
|
|
620918
620963
|
...event,
|
|
620919
620964
|
...event.properties,
|
|
620920
|
-
version: "4.103.
|
|
620965
|
+
version: "4.103.1-4-g44dd803daf9",
|
|
620921
620966
|
usingAccessToken: true
|
|
620922
620967
|
}
|
|
620923
620968
|
});
|
|
@@ -620971,7 +621016,7 @@ var UserPosthogManager = class {
|
|
|
620971
621016
|
distinctId: this.userId ?? await this.getPersistedDistinctId(),
|
|
620972
621017
|
event: "CLI",
|
|
620973
621018
|
properties: {
|
|
620974
|
-
version: "4.103.
|
|
621019
|
+
version: "4.103.1-4-g44dd803daf9",
|
|
620975
621020
|
...event,
|
|
620976
621021
|
...event.properties,
|
|
620977
621022
|
usingAccessToken: false,
|
|
@@ -806085,7 +806130,7 @@ var TranslationDirectoriesExistRule = {
|
|
|
806085
806130
|
if (translations == null || translations.length === 0) {
|
|
806086
806131
|
return violations;
|
|
806087
806132
|
}
|
|
806088
|
-
const defaultLocale = translations.find((t3) => t3.default === true)?.lang;
|
|
806133
|
+
const defaultLocale = (translations.find((t3) => t3.default === true) ?? translations[0])?.lang;
|
|
806089
806134
|
const translationsDir = join8(workspace.absoluteFilePath, RelativeFilePath2.of("translations"));
|
|
806090
806135
|
const translationsDirExists = await doesPathExist(translationsDir);
|
|
806091
806136
|
const missingDirs = [];
|
|
@@ -832265,7 +832310,7 @@ var LOCAL_STORAGE_FOLDER4 = ".fern-dev";
|
|
|
832265
832310
|
var LOGS_FOLDER_NAME = "logs";
|
|
832266
832311
|
var MAX_LOGS_DIR_SIZE_BYTES = 100 * 1024 * 1024;
|
|
832267
832312
|
function getCliSource() {
|
|
832268
|
-
const version7 = "4.103.
|
|
832313
|
+
const version7 = "4.103.1-4-g44dd803daf9";
|
|
832269
832314
|
return `cli@${version7}`;
|
|
832270
832315
|
}
|
|
832271
832316
|
var DebugLogger = class {
|
|
@@ -844621,7 +844666,7 @@ var LegacyDocsPublisher = class {
|
|
|
844621
844666
|
previewId,
|
|
844622
844667
|
disableTemplates: void 0,
|
|
844623
844668
|
skipUpload,
|
|
844624
|
-
cliVersion: "4.103.
|
|
844669
|
+
cliVersion: "4.103.1-4-g44dd803daf9",
|
|
844625
844670
|
loginCommand: "fern auth login"
|
|
844626
844671
|
});
|
|
844627
844672
|
if (taskContext.getResult() === TaskResult.Failure) {
|
|
@@ -918712,7 +918757,7 @@ var CliContext = class _CliContext {
|
|
|
918712
918757
|
if (false) {
|
|
918713
918758
|
this.logger.error("CLI_VERSION is not defined");
|
|
918714
918759
|
}
|
|
918715
|
-
return "4.103.
|
|
918760
|
+
return "4.103.1-4-g44dd803daf9";
|
|
918716
918761
|
}
|
|
918717
918762
|
getCliName() {
|
|
918718
918763
|
if (false) {
|
package/package.json
CHANGED