@fern-api/fern-api-dev 4.104.0 → 4.105.0
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 +38 -17
- package/package.json +1 -1
package/cli.cjs
CHANGED
|
@@ -346934,7 +346934,14 @@ var require_pushSignedCommit = __commonJS({
|
|
|
346934
346934
|
return typeof err === "object" && err != null && "status" in err && typeof err.status === "number";
|
|
346935
346935
|
}
|
|
346936
346936
|
function isNotFoundError(err) {
|
|
346937
|
-
|
|
346937
|
+
if (hasNumericStatus(err) && err.status === 404) {
|
|
346938
|
+
return true;
|
|
346939
|
+
}
|
|
346940
|
+
if (hasNumericStatus(err) && err.status === 422) {
|
|
346941
|
+
const message = (0, core_utils_1.extractErrorMessage)(err).toLowerCase();
|
|
346942
|
+
return message.includes("reference does not exist");
|
|
346943
|
+
}
|
|
346944
|
+
return false;
|
|
346938
346945
|
}
|
|
346939
346946
|
function isNonFastForwardError(err) {
|
|
346940
346947
|
if (!hasNumericStatus(err) || err.status !== 422) {
|
|
@@ -620978,7 +620985,7 @@ var AccessTokenPosthogManager = class {
|
|
|
620978
620985
|
properties: {
|
|
620979
620986
|
...event,
|
|
620980
620987
|
...event.properties,
|
|
620981
|
-
version: "4.
|
|
620988
|
+
version: "4.105.0",
|
|
620982
620989
|
usingAccessToken: true
|
|
620983
620990
|
}
|
|
620984
620991
|
});
|
|
@@ -621032,7 +621039,7 @@ var UserPosthogManager = class {
|
|
|
621032
621039
|
distinctId: this.userId ?? await this.getPersistedDistinctId(),
|
|
621033
621040
|
event: "CLI",
|
|
621034
621041
|
properties: {
|
|
621035
|
-
version: "4.
|
|
621042
|
+
version: "4.105.0",
|
|
621036
621043
|
...event,
|
|
621037
621044
|
...event.properties,
|
|
621038
621045
|
usingAccessToken: false,
|
|
@@ -832328,7 +832335,7 @@ var LOCAL_STORAGE_FOLDER4 = ".fern-dev";
|
|
|
832328
832335
|
var LOGS_FOLDER_NAME = "logs";
|
|
832329
832336
|
var MAX_LOGS_DIR_SIZE_BYTES = 100 * 1024 * 1024;
|
|
832330
832337
|
function getCliSource() {
|
|
832331
|
-
const version7 = "4.
|
|
832338
|
+
const version7 = "4.105.0";
|
|
832332
832339
|
return `cli@${version7}`;
|
|
832333
832340
|
}
|
|
832334
832341
|
var DebugLogger = class {
|
|
@@ -832687,7 +832694,7 @@ var STANDALONE_FOLDER_NAME = "standalone";
|
|
|
832687
832694
|
var LOCAL_STORAGE_FOLDER5 = ".fern-dev";
|
|
832688
832695
|
var INSTRUMENTATION_PATH = "packages/fern-docs/bundle/.next/server/instrumentation.js";
|
|
832689
832696
|
var COREPACK_MISSING_KEYID_ERROR_MESSAGE = 'Cannot find matching keyid: {"signatures":';
|
|
832690
|
-
function
|
|
832697
|
+
function assertLongPathsEnabled(logger4) {
|
|
832691
832698
|
try {
|
|
832692
832699
|
const output2 = (0, import_child_process6.execSync)('reg query "HKLM\\SYSTEM\\CurrentControlSet\\Control\\FileSystem" /v LongPathsEnabled', { encoding: "utf-8", timeout: 5e3 });
|
|
832693
832700
|
const match3 = output2.match(/LongPathsEnabled\s+REG_DWORD\s+0x(\d+)/i);
|
|
@@ -832697,7 +832704,11 @@ function warnIfLongPathsDisabled(logger4) {
|
|
|
832697
832704
|
} catch (error50) {
|
|
832698
832705
|
logger4.debug(`Registry query for LongPathsEnabled failed: ${error50}`);
|
|
832699
832706
|
}
|
|
832700
|
-
|
|
832707
|
+
throw new CliError({
|
|
832708
|
+
message: "Windows long path support is not enabled. The docs bundle contains deeply nested .pnpm paths that exceed the 260-character MAX_PATH limit.\n\nTo fix, run this in an elevated PowerShell:\n\n New-ItemProperty -Path 'HKLM:\\SYSTEM\\CurrentControlSet\\Control\\FileSystem' -Name 'LongPathsEnabled' -Value 1 -PropertyType DWORD -Force\n\nThen restart your terminal.",
|
|
832709
|
+
code: CliError.Code.EnvironmentError,
|
|
832710
|
+
docsLink: "https://learn.microsoft.com/en-us/windows/win32/fileio/maximum-file-path-limitation"
|
|
832711
|
+
});
|
|
832701
832712
|
}
|
|
832702
832713
|
function isWithinOutputDir(resolvedPath, outputDir) {
|
|
832703
832714
|
const rel2 = import_path57.default.relative(outputDir, resolvedPath);
|
|
@@ -832926,7 +832937,7 @@ async function downloadBundle({ bucketUrl, logger: logger4, preferCached, app =
|
|
|
832926
832937
|
}, 50);
|
|
832927
832938
|
}
|
|
832928
832939
|
if (PLATFORM_IS_WINDOWS) {
|
|
832929
|
-
|
|
832940
|
+
assertLongPathsEnabled(logger4);
|
|
832930
832941
|
}
|
|
832931
832942
|
const collectedSymlinks = [];
|
|
832932
832943
|
try {
|
|
@@ -844695,7 +844706,7 @@ var LegacyDocsPublisher = class {
|
|
|
844695
844706
|
previewId,
|
|
844696
844707
|
disableTemplates: void 0,
|
|
844697
844708
|
skipUpload,
|
|
844698
|
-
cliVersion: "4.
|
|
844709
|
+
cliVersion: "4.105.0",
|
|
844699
844710
|
loginCommand: "fern auth login"
|
|
844700
844711
|
});
|
|
844701
844712
|
if (taskContext.getResult() === TaskResult.Failure) {
|
|
@@ -892828,14 +892839,24 @@ var EndpointSnippetGenerator9 = class {
|
|
|
892828
892839
|
const filePropertyInfo = this.getFilePropertyInfo({ request: request7, snippet: snippet2 });
|
|
892829
892840
|
this.context.errors.unscope();
|
|
892830
892841
|
if (request7.body != null) {
|
|
892831
|
-
|
|
892832
|
-
|
|
892833
|
-
|
|
892834
|
-
|
|
892835
|
-
|
|
892836
|
-
|
|
892837
|
-
|
|
892838
|
-
|
|
892842
|
+
if (request7.body.type === "referenced") {
|
|
892843
|
+
args.push(swift_exports.functionArgument({
|
|
892844
|
+
label: "request",
|
|
892845
|
+
value: this.getReferencedRequestBodyPropertyTypeLiteral({
|
|
892846
|
+
body: request7.body.bodyType,
|
|
892847
|
+
value: snippet2.requestBody
|
|
892848
|
+
})
|
|
892849
|
+
}));
|
|
892850
|
+
} else {
|
|
892851
|
+
args.push(swift_exports.functionArgument({
|
|
892852
|
+
label: "request",
|
|
892853
|
+
value: this.getInlinedRequestArg({
|
|
892854
|
+
request: request7,
|
|
892855
|
+
snippet: snippet2,
|
|
892856
|
+
filePropertyInfo
|
|
892857
|
+
})
|
|
892858
|
+
}));
|
|
892859
|
+
}
|
|
892839
892860
|
}
|
|
892840
892861
|
return args;
|
|
892841
892862
|
}
|
|
@@ -918786,7 +918807,7 @@ var CliContext = class _CliContext {
|
|
|
918786
918807
|
if (false) {
|
|
918787
918808
|
this.logger.error("CLI_VERSION is not defined");
|
|
918788
918809
|
}
|
|
918789
|
-
return "4.
|
|
918810
|
+
return "4.105.0";
|
|
918790
918811
|
}
|
|
918791
918812
|
getCliName() {
|
|
918792
918813
|
if (false) {
|
package/package.json
CHANGED