@fern-api/fern-api-dev 4.103.1-1-g8017431f978 → 4.103.1
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 +17 -62
- package/package.json +1 -1
package/cli.cjs
CHANGED
|
@@ -511311,8 +511311,7 @@ var FernDocsConfigError = class extends Error {
|
|
|
511311
511311
|
statusCode;
|
|
511312
511312
|
body;
|
|
511313
511313
|
rawResponse;
|
|
511314
|
-
|
|
511315
|
-
constructor({ message, statusCode, body, rawResponse, cause }) {
|
|
511314
|
+
constructor({ message, statusCode, body, rawResponse }) {
|
|
511316
511315
|
super(buildMessage2({ message, statusCode, body }));
|
|
511317
511316
|
Object.setPrototypeOf(this, new.target.prototype);
|
|
511318
511317
|
if (Error.captureStackTrace) {
|
|
@@ -511322,9 +511321,6 @@ var FernDocsConfigError = class extends Error {
|
|
|
511322
511321
|
this.statusCode = statusCode;
|
|
511323
511322
|
this.body = body;
|
|
511324
511323
|
this.rawResponse = rawResponse;
|
|
511325
|
-
if (cause != null) {
|
|
511326
|
-
this.cause = cause;
|
|
511327
|
-
}
|
|
511328
511324
|
}
|
|
511329
511325
|
};
|
|
511330
511326
|
function buildMessage2({ message, statusCode, body }) {
|
|
@@ -511343,17 +511339,13 @@ function buildMessage2({ message, statusCode, body }) {
|
|
|
511343
511339
|
|
|
511344
511340
|
// ../configuration/lib/docs-yml/schemas/sdk/errors/FernDocsConfigTimeoutError.js
|
|
511345
511341
|
var FernDocsConfigTimeoutError = class extends Error {
|
|
511346
|
-
|
|
511347
|
-
constructor(message, opts) {
|
|
511342
|
+
constructor(message) {
|
|
511348
511343
|
super(message);
|
|
511349
511344
|
Object.setPrototypeOf(this, new.target.prototype);
|
|
511350
511345
|
if (Error.captureStackTrace) {
|
|
511351
511346
|
Error.captureStackTrace(this, this.constructor);
|
|
511352
511347
|
}
|
|
511353
511348
|
this.name = this.constructor.name;
|
|
511354
|
-
if (opts?.cause != null) {
|
|
511355
|
-
this.cause = opts.cause;
|
|
511356
|
-
}
|
|
511357
511349
|
}
|
|
511358
511350
|
};
|
|
511359
511351
|
|
|
@@ -511816,7 +511808,6 @@ __export(schemas_exports6, {
|
|
|
511816
511808
|
object: () => object4,
|
|
511817
511809
|
objectWithoutOptionalProperties: () => objectWithoutOptionalProperties3,
|
|
511818
511810
|
optional: () => optional4,
|
|
511819
|
-
partialRecord: () => partialRecord2,
|
|
511820
511811
|
property: () => property4,
|
|
511821
511812
|
record: () => record4,
|
|
511822
511813
|
set: () => set6,
|
|
@@ -511915,24 +511906,22 @@ function stringifyValidationError3(error50) {
|
|
|
511915
511906
|
}
|
|
511916
511907
|
|
|
511917
511908
|
// ../configuration/lib/docs-yml/schemas/sdk/core/schemas/builders/schema-utils/JsonError.js
|
|
511918
|
-
var JsonError3 = class extends Error {
|
|
511909
|
+
var JsonError3 = class _JsonError extends Error {
|
|
511919
511910
|
errors;
|
|
511920
511911
|
constructor(errors4) {
|
|
511921
511912
|
super(errors4.map(stringifyValidationError3).join("; "));
|
|
511922
511913
|
this.errors = errors4;
|
|
511923
|
-
Object.setPrototypeOf(this,
|
|
511924
|
-
this.name = this.constructor.name;
|
|
511914
|
+
Object.setPrototypeOf(this, _JsonError.prototype);
|
|
511925
511915
|
}
|
|
511926
511916
|
};
|
|
511927
511917
|
|
|
511928
511918
|
// ../configuration/lib/docs-yml/schemas/sdk/core/schemas/builders/schema-utils/ParseError.js
|
|
511929
|
-
var ParseError3 = class extends Error {
|
|
511919
|
+
var ParseError3 = class _ParseError extends Error {
|
|
511930
511920
|
errors;
|
|
511931
511921
|
constructor(errors4) {
|
|
511932
511922
|
super(errors4.map(stringifyValidationError3).join("; "));
|
|
511933
511923
|
this.errors = errors4;
|
|
511934
|
-
Object.setPrototypeOf(this,
|
|
511935
|
-
this.name = this.constructor.name;
|
|
511924
|
+
Object.setPrototypeOf(this, _ParseError.prototype);
|
|
511936
511925
|
}
|
|
511937
511926
|
};
|
|
511938
511927
|
|
|
@@ -512958,45 +512947,6 @@ function record4(keySchema, valueSchema) {
|
|
|
512958
512947
|
...getSchemaUtils3(baseSchema)
|
|
512959
512948
|
};
|
|
512960
512949
|
}
|
|
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
|
-
}
|
|
513000
512950
|
function validateAndTransformRecord3({ value: value2, isKeyNumeric, transformKey, transformValue, breadcrumbsPrefix = [] }) {
|
|
513001
512951
|
if (!isPlainObject10(value2)) {
|
|
513002
512952
|
return {
|
|
@@ -542068,7 +542018,12 @@ async function parseDocsConfiguration({ rawDocsConfiguration, absolutePathToFern
|
|
|
542068
542018
|
heap: void 0
|
|
542069
542019
|
},
|
|
542070
542020
|
/* integrations */
|
|
542071
|
-
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
|
+
},
|
|
542072
542027
|
/* scripts */
|
|
542073
542028
|
css,
|
|
542074
542029
|
js: js7,
|
|
@@ -620962,7 +620917,7 @@ var AccessTokenPosthogManager = class {
|
|
|
620962
620917
|
properties: {
|
|
620963
620918
|
...event,
|
|
620964
620919
|
...event.properties,
|
|
620965
|
-
version: "4.103.1
|
|
620920
|
+
version: "4.103.1",
|
|
620966
620921
|
usingAccessToken: true
|
|
620967
620922
|
}
|
|
620968
620923
|
});
|
|
@@ -621016,7 +620971,7 @@ var UserPosthogManager = class {
|
|
|
621016
620971
|
distinctId: this.userId ?? await this.getPersistedDistinctId(),
|
|
621017
620972
|
event: "CLI",
|
|
621018
620973
|
properties: {
|
|
621019
|
-
version: "4.103.1
|
|
620974
|
+
version: "4.103.1",
|
|
621020
620975
|
...event,
|
|
621021
620976
|
...event.properties,
|
|
621022
620977
|
usingAccessToken: false,
|
|
@@ -832310,7 +832265,7 @@ var LOCAL_STORAGE_FOLDER4 = ".fern-dev";
|
|
|
832310
832265
|
var LOGS_FOLDER_NAME = "logs";
|
|
832311
832266
|
var MAX_LOGS_DIR_SIZE_BYTES = 100 * 1024 * 1024;
|
|
832312
832267
|
function getCliSource() {
|
|
832313
|
-
const version7 = "4.103.1
|
|
832268
|
+
const version7 = "4.103.1";
|
|
832314
832269
|
return `cli@${version7}`;
|
|
832315
832270
|
}
|
|
832316
832271
|
var DebugLogger = class {
|
|
@@ -844666,7 +844621,7 @@ var LegacyDocsPublisher = class {
|
|
|
844666
844621
|
previewId,
|
|
844667
844622
|
disableTemplates: void 0,
|
|
844668
844623
|
skipUpload,
|
|
844669
|
-
cliVersion: "4.103.1
|
|
844624
|
+
cliVersion: "4.103.1",
|
|
844670
844625
|
loginCommand: "fern auth login"
|
|
844671
844626
|
});
|
|
844672
844627
|
if (taskContext.getResult() === TaskResult.Failure) {
|
|
@@ -918757,7 +918712,7 @@ var CliContext = class _CliContext {
|
|
|
918757
918712
|
if (false) {
|
|
918758
918713
|
this.logger.error("CLI_VERSION is not defined");
|
|
918759
918714
|
}
|
|
918760
|
-
return "4.103.1
|
|
918715
|
+
return "4.103.1";
|
|
918761
918716
|
}
|
|
918762
918717
|
getCliName() {
|
|
918763
918718
|
if (false) {
|
package/package.json
CHANGED