@fern-api/fern-api-dev 5.22.0 → 5.22.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 +143 -52
- package/package.json +1 -1
package/cli.cjs
CHANGED
|
@@ -40040,12 +40040,15 @@ var require_data = __commonJS({
|
|
|
40040
40040
|
}
|
|
40041
40041
|
});
|
|
40042
40042
|
|
|
40043
|
-
// ../../../node_modules/.pnpm/fast-uri@3.1.
|
|
40043
|
+
// ../../../node_modules/.pnpm/fast-uri@3.1.2/node_modules/fast-uri/lib/utils.js
|
|
40044
40044
|
var require_utils16 = __commonJS({
|
|
40045
|
-
"../../../node_modules/.pnpm/fast-uri@3.1.
|
|
40045
|
+
"../../../node_modules/.pnpm/fast-uri@3.1.2/node_modules/fast-uri/lib/utils.js"(exports2, module4) {
|
|
40046
40046
|
"use strict";
|
|
40047
40047
|
var isUUID = RegExp.prototype.test.bind(/^[\da-f]{8}-[\da-f]{4}-[\da-f]{4}-[\da-f]{4}-[\da-f]{12}$/iu);
|
|
40048
40048
|
var isIPv4 = RegExp.prototype.test.bind(/^(?:(?:25[0-5]|2[0-4]\d|1\d{2}|[1-9]\d|\d)\.){3}(?:25[0-5]|2[0-4]\d|1\d{2}|[1-9]\d|\d)$/u);
|
|
40049
|
+
var isHexPair = RegExp.prototype.test.bind(/^[\da-f]{2}$/iu);
|
|
40050
|
+
var isUnreserved = RegExp.prototype.test.bind(/^[\da-z\-._~]$/iu);
|
|
40051
|
+
var isPathCharacter = RegExp.prototype.test.bind(/^[\da-z\-._~!$&'()*+,;=:@/]$/iu);
|
|
40049
40052
|
function stringArrayToHexStripped(input3) {
|
|
40050
40053
|
let acc = "";
|
|
40051
40054
|
let code5 = 0;
|
|
@@ -40238,27 +40241,77 @@ var require_utils16 = __commonJS({
|
|
|
40238
40241
|
}
|
|
40239
40242
|
return output2.join("");
|
|
40240
40243
|
}
|
|
40241
|
-
|
|
40242
|
-
|
|
40243
|
-
|
|
40244
|
-
|
|
40245
|
-
|
|
40246
|
-
|
|
40247
|
-
|
|
40248
|
-
|
|
40249
|
-
|
|
40250
|
-
|
|
40244
|
+
var HOST_DELIMS = { "@": "%40", "/": "%2F", "?": "%3F", "#": "%23", ":": "%3A" };
|
|
40245
|
+
var HOST_DELIM_RE = /[@/?#:]/g;
|
|
40246
|
+
var HOST_DELIM_NO_COLON_RE = /[@/?#]/g;
|
|
40247
|
+
function reescapeHostDelimiters(host, isIP3) {
|
|
40248
|
+
const re10 = isIP3 ? HOST_DELIM_NO_COLON_RE : HOST_DELIM_RE;
|
|
40249
|
+
re10.lastIndex = 0;
|
|
40250
|
+
return host.replace(re10, (ch) => HOST_DELIMS[ch]);
|
|
40251
|
+
}
|
|
40252
|
+
function normalizePercentEncoding(input3, decodeUnreserved = false) {
|
|
40253
|
+
if (input3.indexOf("%") === -1) {
|
|
40254
|
+
return input3;
|
|
40251
40255
|
}
|
|
40252
|
-
|
|
40253
|
-
|
|
40256
|
+
let output2 = "";
|
|
40257
|
+
for (let i9 = 0; i9 < input3.length; i9++) {
|
|
40258
|
+
if (input3[i9] === "%" && i9 + 2 < input3.length) {
|
|
40259
|
+
const hex3 = input3.slice(i9 + 1, i9 + 3);
|
|
40260
|
+
if (isHexPair(hex3)) {
|
|
40261
|
+
const normalizedHex = hex3.toUpperCase();
|
|
40262
|
+
const decoded = String.fromCharCode(parseInt(normalizedHex, 16));
|
|
40263
|
+
if (decodeUnreserved && isUnreserved(decoded)) {
|
|
40264
|
+
output2 += decoded;
|
|
40265
|
+
} else {
|
|
40266
|
+
output2 += "%" + normalizedHex;
|
|
40267
|
+
}
|
|
40268
|
+
i9 += 2;
|
|
40269
|
+
continue;
|
|
40270
|
+
}
|
|
40271
|
+
}
|
|
40272
|
+
output2 += input3[i9];
|
|
40254
40273
|
}
|
|
40255
|
-
|
|
40256
|
-
|
|
40274
|
+
return output2;
|
|
40275
|
+
}
|
|
40276
|
+
function normalizePathEncoding(input3) {
|
|
40277
|
+
let output2 = "";
|
|
40278
|
+
for (let i9 = 0; i9 < input3.length; i9++) {
|
|
40279
|
+
if (input3[i9] === "%" && i9 + 2 < input3.length) {
|
|
40280
|
+
const hex3 = input3.slice(i9 + 1, i9 + 3);
|
|
40281
|
+
if (isHexPair(hex3)) {
|
|
40282
|
+
const normalizedHex = hex3.toUpperCase();
|
|
40283
|
+
const decoded = String.fromCharCode(parseInt(normalizedHex, 16));
|
|
40284
|
+
if (decoded !== "." && isUnreserved(decoded)) {
|
|
40285
|
+
output2 += decoded;
|
|
40286
|
+
} else {
|
|
40287
|
+
output2 += "%" + normalizedHex;
|
|
40288
|
+
}
|
|
40289
|
+
i9 += 2;
|
|
40290
|
+
continue;
|
|
40291
|
+
}
|
|
40292
|
+
}
|
|
40293
|
+
if (isPathCharacter(input3[i9])) {
|
|
40294
|
+
output2 += input3[i9];
|
|
40295
|
+
} else {
|
|
40296
|
+
output2 += escape(input3[i9]);
|
|
40297
|
+
}
|
|
40257
40298
|
}
|
|
40258
|
-
|
|
40259
|
-
|
|
40299
|
+
return output2;
|
|
40300
|
+
}
|
|
40301
|
+
function escapePreservingEscapes(input3) {
|
|
40302
|
+
let output2 = "";
|
|
40303
|
+
for (let i9 = 0; i9 < input3.length; i9++) {
|
|
40304
|
+
if (input3[i9] === "%" && i9 + 2 < input3.length) {
|
|
40305
|
+
const hex3 = input3.slice(i9 + 1, i9 + 3);
|
|
40306
|
+
if (isHexPair(hex3)) {
|
|
40307
|
+
output2 += "%" + hex3.toUpperCase();
|
|
40308
|
+
i9 += 2;
|
|
40309
|
+
continue;
|
|
40310
|
+
}
|
|
40311
|
+
}
|
|
40312
|
+
output2 += escape(input3[i9]);
|
|
40260
40313
|
}
|
|
40261
|
-
return
|
|
40314
|
+
return output2;
|
|
40262
40315
|
}
|
|
40263
40316
|
function recomposeAuthority(component) {
|
|
40264
40317
|
const uriTokens = [];
|
|
@@ -40273,7 +40326,7 @@ var require_utils16 = __commonJS({
|
|
|
40273
40326
|
if (ipV6res.isIPV6 === true) {
|
|
40274
40327
|
host = `[${ipV6res.escapedHost}]`;
|
|
40275
40328
|
} else {
|
|
40276
|
-
host =
|
|
40329
|
+
host = reescapeHostDelimiters(host, false);
|
|
40277
40330
|
}
|
|
40278
40331
|
}
|
|
40279
40332
|
uriTokens.push(host);
|
|
@@ -40287,7 +40340,10 @@ var require_utils16 = __commonJS({
|
|
|
40287
40340
|
module4.exports = {
|
|
40288
40341
|
nonSimpleDomain,
|
|
40289
40342
|
recomposeAuthority,
|
|
40290
|
-
|
|
40343
|
+
reescapeHostDelimiters,
|
|
40344
|
+
normalizePercentEncoding,
|
|
40345
|
+
normalizePathEncoding,
|
|
40346
|
+
escapePreservingEscapes,
|
|
40291
40347
|
removeDotSegments,
|
|
40292
40348
|
isIPv4,
|
|
40293
40349
|
isUUID,
|
|
@@ -40297,9 +40353,9 @@ var require_utils16 = __commonJS({
|
|
|
40297
40353
|
}
|
|
40298
40354
|
});
|
|
40299
40355
|
|
|
40300
|
-
// ../../../node_modules/.pnpm/fast-uri@3.1.
|
|
40356
|
+
// ../../../node_modules/.pnpm/fast-uri@3.1.2/node_modules/fast-uri/lib/schemes.js
|
|
40301
40357
|
var require_schemes = __commonJS({
|
|
40302
|
-
"../../../node_modules/.pnpm/fast-uri@3.1.
|
|
40358
|
+
"../../../node_modules/.pnpm/fast-uri@3.1.2/node_modules/fast-uri/lib/schemes.js"(exports2, module4) {
|
|
40303
40359
|
"use strict";
|
|
40304
40360
|
var { isUUID } = require_utils16();
|
|
40305
40361
|
var URN_REG = /([\da-z][\d\-a-z]{0,31}):((?:[\w!$'()*+,\-.:;=@]|%[\da-f]{2})+)/iu;
|
|
@@ -40507,16 +40563,16 @@ var require_schemes = __commonJS({
|
|
|
40507
40563
|
}
|
|
40508
40564
|
});
|
|
40509
40565
|
|
|
40510
|
-
// ../../../node_modules/.pnpm/fast-uri@3.1.
|
|
40566
|
+
// ../../../node_modules/.pnpm/fast-uri@3.1.2/node_modules/fast-uri/index.js
|
|
40511
40567
|
var require_fast_uri = __commonJS({
|
|
40512
|
-
"../../../node_modules/.pnpm/fast-uri@3.1.
|
|
40568
|
+
"../../../node_modules/.pnpm/fast-uri@3.1.2/node_modules/fast-uri/index.js"(exports2, module4) {
|
|
40513
40569
|
"use strict";
|
|
40514
|
-
var { normalizeIPv6, removeDotSegments, recomposeAuthority,
|
|
40570
|
+
var { normalizeIPv6, removeDotSegments, recomposeAuthority, normalizePercentEncoding, normalizePathEncoding, escapePreservingEscapes, reescapeHostDelimiters, isIPv4, nonSimpleDomain } = require_utils16();
|
|
40515
40571
|
var { SCHEMES, getSchemeHandler } = require_schemes();
|
|
40516
40572
|
function normalize13(uri, options2) {
|
|
40517
40573
|
if (typeof uri === "string") {
|
|
40518
40574
|
uri = /** @type {T} */
|
|
40519
|
-
|
|
40575
|
+
normalizeString(uri, options2);
|
|
40520
40576
|
} else if (typeof uri === "object") {
|
|
40521
40577
|
uri = /** @type {T} */
|
|
40522
40578
|
parse19(serialize5(uri, options2), options2);
|
|
@@ -40583,19 +40639,9 @@ var require_fast_uri = __commonJS({
|
|
|
40583
40639
|
return target;
|
|
40584
40640
|
}
|
|
40585
40641
|
function equal(uriA, uriB, options2) {
|
|
40586
|
-
|
|
40587
|
-
|
|
40588
|
-
|
|
40589
|
-
} else if (typeof uriA === "object") {
|
|
40590
|
-
uriA = serialize5(normalizeComponentEncoding(uriA, true), { ...options2, skipEscape: true });
|
|
40591
|
-
}
|
|
40592
|
-
if (typeof uriB === "string") {
|
|
40593
|
-
uriB = unescape(uriB);
|
|
40594
|
-
uriB = serialize5(normalizeComponentEncoding(parse19(uriB, options2), true), { ...options2, skipEscape: true });
|
|
40595
|
-
} else if (typeof uriB === "object") {
|
|
40596
|
-
uriB = serialize5(normalizeComponentEncoding(uriB, true), { ...options2, skipEscape: true });
|
|
40597
|
-
}
|
|
40598
|
-
return uriA.toLowerCase() === uriB.toLowerCase();
|
|
40642
|
+
const normalizedA = normalizeComparableURI(uriA, options2);
|
|
40643
|
+
const normalizedB = normalizeComparableURI(uriB, options2);
|
|
40644
|
+
return normalizedA !== void 0 && normalizedB !== void 0 && normalizedA.toLowerCase() === normalizedB.toLowerCase();
|
|
40599
40645
|
}
|
|
40600
40646
|
function serialize5(cmpts, opts) {
|
|
40601
40647
|
const component = {
|
|
@@ -40620,12 +40666,12 @@ var require_fast_uri = __commonJS({
|
|
|
40620
40666
|
if (schemeHandler && schemeHandler.serialize) schemeHandler.serialize(component, options2);
|
|
40621
40667
|
if (component.path !== void 0) {
|
|
40622
40668
|
if (!options2.skipEscape) {
|
|
40623
|
-
component.path =
|
|
40669
|
+
component.path = escapePreservingEscapes(component.path);
|
|
40624
40670
|
if (component.scheme !== void 0) {
|
|
40625
40671
|
component.path = component.path.split("%3A").join(":");
|
|
40626
40672
|
}
|
|
40627
40673
|
} else {
|
|
40628
|
-
component.path =
|
|
40674
|
+
component.path = normalizePercentEncoding(component.path);
|
|
40629
40675
|
}
|
|
40630
40676
|
}
|
|
40631
40677
|
if (options2.reference !== "suffix" && component.scheme) {
|
|
@@ -40660,7 +40706,16 @@ var require_fast_uri = __commonJS({
|
|
|
40660
40706
|
return uriTokens.join("");
|
|
40661
40707
|
}
|
|
40662
40708
|
var URI_PARSE = /^(?:([^#/:?]+):)?(?:\/\/((?:([^#/?@]*)@)?(\[[^#/?\]]+\]|[^#/:?]*)(?::(\d*))?))?([^#?]*)(?:\?([^#]*))?(?:#((?:.|[\n\r])*))?/u;
|
|
40663
|
-
function
|
|
40709
|
+
function getParseError(parsed, matches) {
|
|
40710
|
+
if (matches[2] !== void 0 && parsed.path && parsed.path[0] !== "/") {
|
|
40711
|
+
return 'URI path must start with "/" when authority is present.';
|
|
40712
|
+
}
|
|
40713
|
+
if (typeof parsed.port === "number" && (parsed.port < 0 || parsed.port > 65535)) {
|
|
40714
|
+
return "URI port is malformed.";
|
|
40715
|
+
}
|
|
40716
|
+
return void 0;
|
|
40717
|
+
}
|
|
40718
|
+
function parseWithStatus(uri, opts) {
|
|
40664
40719
|
const options2 = Object.assign({}, opts);
|
|
40665
40720
|
const parsed = {
|
|
40666
40721
|
scheme: void 0,
|
|
@@ -40671,6 +40726,7 @@ var require_fast_uri = __commonJS({
|
|
|
40671
40726
|
query: void 0,
|
|
40672
40727
|
fragment: void 0
|
|
40673
40728
|
};
|
|
40729
|
+
let malformedAuthorityOrPort = false;
|
|
40674
40730
|
let isIP3 = false;
|
|
40675
40731
|
if (options2.reference === "suffix") {
|
|
40676
40732
|
if (options2.scheme) {
|
|
@@ -40691,6 +40747,11 @@ var require_fast_uri = __commonJS({
|
|
|
40691
40747
|
if (isNaN(parsed.port)) {
|
|
40692
40748
|
parsed.port = matches[5];
|
|
40693
40749
|
}
|
|
40750
|
+
const parseError = getParseError(parsed, matches);
|
|
40751
|
+
if (parseError !== void 0) {
|
|
40752
|
+
parsed.error = parsed.error || parseError;
|
|
40753
|
+
malformedAuthorityOrPort = true;
|
|
40754
|
+
}
|
|
40694
40755
|
if (parsed.host) {
|
|
40695
40756
|
const ipv4result = isIPv4(parsed.host);
|
|
40696
40757
|
if (ipv4result === false) {
|
|
@@ -40729,14 +40790,18 @@ var require_fast_uri = __commonJS({
|
|
|
40729
40790
|
parsed.scheme = unescape(parsed.scheme);
|
|
40730
40791
|
}
|
|
40731
40792
|
if (parsed.host !== void 0) {
|
|
40732
|
-
parsed.host = unescape(parsed.host);
|
|
40793
|
+
parsed.host = reescapeHostDelimiters(unescape(parsed.host), isIP3);
|
|
40733
40794
|
}
|
|
40734
40795
|
}
|
|
40735
40796
|
if (parsed.path) {
|
|
40736
|
-
parsed.path =
|
|
40797
|
+
parsed.path = normalizePathEncoding(parsed.path);
|
|
40737
40798
|
}
|
|
40738
40799
|
if (parsed.fragment) {
|
|
40739
|
-
|
|
40800
|
+
try {
|
|
40801
|
+
parsed.fragment = encodeURI(decodeURIComponent(parsed.fragment));
|
|
40802
|
+
} catch {
|
|
40803
|
+
parsed.error = parsed.error || "URI malformed";
|
|
40804
|
+
}
|
|
40740
40805
|
}
|
|
40741
40806
|
}
|
|
40742
40807
|
if (schemeHandler && schemeHandler.parse) {
|
|
@@ -40745,7 +40810,29 @@ var require_fast_uri = __commonJS({
|
|
|
40745
40810
|
} else {
|
|
40746
40811
|
parsed.error = parsed.error || "URI can not be parsed.";
|
|
40747
40812
|
}
|
|
40748
|
-
return parsed;
|
|
40813
|
+
return { parsed, malformedAuthorityOrPort };
|
|
40814
|
+
}
|
|
40815
|
+
function parse19(uri, opts) {
|
|
40816
|
+
return parseWithStatus(uri, opts).parsed;
|
|
40817
|
+
}
|
|
40818
|
+
function normalizeString(uri, opts) {
|
|
40819
|
+
return normalizeStringWithStatus(uri, opts).normalized;
|
|
40820
|
+
}
|
|
40821
|
+
function normalizeStringWithStatus(uri, opts) {
|
|
40822
|
+
const { parsed, malformedAuthorityOrPort } = parseWithStatus(uri, opts);
|
|
40823
|
+
return {
|
|
40824
|
+
normalized: malformedAuthorityOrPort ? uri : serialize5(parsed, opts),
|
|
40825
|
+
malformedAuthorityOrPort
|
|
40826
|
+
};
|
|
40827
|
+
}
|
|
40828
|
+
function normalizeComparableURI(uri, opts) {
|
|
40829
|
+
if (typeof uri === "string") {
|
|
40830
|
+
const { normalized, malformedAuthorityOrPort } = normalizeStringWithStatus(uri, opts);
|
|
40831
|
+
return malformedAuthorityOrPort ? void 0 : normalized;
|
|
40832
|
+
}
|
|
40833
|
+
if (typeof uri === "object") {
|
|
40834
|
+
return serialize5(uri, opts);
|
|
40835
|
+
}
|
|
40749
40836
|
}
|
|
40750
40837
|
var fastUri = {
|
|
40751
40838
|
SCHEMES,
|
|
@@ -661252,7 +661339,7 @@ var AccessTokenPosthogManager = class {
|
|
|
661252
661339
|
properties: {
|
|
661253
661340
|
...event,
|
|
661254
661341
|
...event.properties,
|
|
661255
|
-
version: "5.22.
|
|
661342
|
+
version: "5.22.1",
|
|
661256
661343
|
usingAccessToken: true,
|
|
661257
661344
|
...getRunIdProperties()
|
|
661258
661345
|
}
|
|
@@ -661307,7 +661394,7 @@ var UserPosthogManager = class {
|
|
|
661307
661394
|
distinctId: this.userId ?? await this.getPersistedDistinctId(),
|
|
661308
661395
|
event: "CLI",
|
|
661309
661396
|
properties: {
|
|
661310
|
-
version: "5.22.
|
|
661397
|
+
version: "5.22.1",
|
|
661311
661398
|
...event,
|
|
661312
661399
|
...event.properties,
|
|
661313
661400
|
usingAccessToken: false,
|
|
@@ -852580,7 +852667,7 @@ var LOCAL_STORAGE_FOLDER4 = ".fern-dev";
|
|
|
852580
852667
|
var LOGS_FOLDER_NAME = "logs";
|
|
852581
852668
|
var MAX_LOGS_DIR_SIZE_BYTES = 100 * 1024 * 1024;
|
|
852582
852669
|
function getCliSource() {
|
|
852583
|
-
const version7 = "5.22.
|
|
852670
|
+
const version7 = "5.22.1";
|
|
852584
852671
|
return `cli@${version7}`;
|
|
852585
852672
|
}
|
|
852586
852673
|
var DebugLogger = class {
|
|
@@ -853279,6 +853366,10 @@ async function downloadBundle({ bucketUrl, logger: logger4, preferCached, app =
|
|
|
853279
853366
|
code: CliError.Code.EnvironmentError
|
|
853280
853367
|
});
|
|
853281
853368
|
}
|
|
853369
|
+
const workspaceConfigPath = import_path63.default.join(absolutePathToBundleFolder, "pnpm-workspace.yaml");
|
|
853370
|
+
if (!(0, import_fs27.existsSync)(workspaceConfigPath)) {
|
|
853371
|
+
await (0, import_promises87.writeFile)(workspaceConfigPath, "onlyBuiltDependencies:\n - esbuild\n");
|
|
853372
|
+
}
|
|
853282
853373
|
try {
|
|
853283
853374
|
logger4.debug("Installing esbuild");
|
|
853284
853375
|
await loggingExeca(logger4, "pnpm", ["i", "esbuild"], {
|
|
@@ -865389,7 +865480,7 @@ var LegacyDocsPublisher = class {
|
|
|
865389
865480
|
previewId,
|
|
865390
865481
|
disableTemplates: void 0,
|
|
865391
865482
|
skipUpload,
|
|
865392
|
-
cliVersion: "5.22.
|
|
865483
|
+
cliVersion: "5.22.1",
|
|
865393
865484
|
loginCommand: "fern auth login"
|
|
865394
865485
|
});
|
|
865395
865486
|
if (taskContext.getResult() === TaskResult.Failure) {
|
|
@@ -940192,7 +940283,7 @@ var CliContext = class _CliContext {
|
|
|
940192
940283
|
if (false) {
|
|
940193
940284
|
this.logger.error("CLI_VERSION is not defined");
|
|
940194
940285
|
}
|
|
940195
|
-
return "5.22.
|
|
940286
|
+
return "5.22.1";
|
|
940196
940287
|
}
|
|
940197
940288
|
getCliName() {
|
|
940198
940289
|
if (false) {
|
package/package.json
CHANGED