@fern-api/fern-api-dev 4.76.1 → 4.76.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 +120 -102
- package/package.json +1 -1
package/cli.cjs
CHANGED
|
@@ -393585,9 +393585,9 @@ var require_file2 = __commonJS({
|
|
|
393585
393585
|
}
|
|
393586
393586
|
});
|
|
393587
393587
|
|
|
393588
|
-
// ../../../node_modules/.pnpm/basic-ftp@5.
|
|
393588
|
+
// ../../../node_modules/.pnpm/basic-ftp@5.3.0/node_modules/basic-ftp/dist/parseControlResponse.js
|
|
393589
393589
|
var require_parseControlResponse = __commonJS({
|
|
393590
|
-
"../../../node_modules/.pnpm/basic-ftp@5.
|
|
393590
|
+
"../../../node_modules/.pnpm/basic-ftp@5.3.0/node_modules/basic-ftp/dist/parseControlResponse.js"(exports2) {
|
|
393591
393591
|
"use strict";
|
|
393592
393592
|
Object.defineProperty(exports2, "__esModule", { value: true });
|
|
393593
393593
|
exports2.parseControlResponse = parseControlResponse;
|
|
@@ -393637,9 +393637,9 @@ var require_parseControlResponse = __commonJS({
|
|
|
393637
393637
|
}
|
|
393638
393638
|
});
|
|
393639
393639
|
|
|
393640
|
-
// ../../../node_modules/.pnpm/basic-ftp@5.
|
|
393640
|
+
// ../../../node_modules/.pnpm/basic-ftp@5.3.0/node_modules/basic-ftp/dist/FtpContext.js
|
|
393641
393641
|
var require_FtpContext = __commonJS({
|
|
393642
|
-
"../../../node_modules/.pnpm/basic-ftp@5.
|
|
393642
|
+
"../../../node_modules/.pnpm/basic-ftp@5.3.0/node_modules/basic-ftp/dist/FtpContext.js"(exports2) {
|
|
393643
393643
|
"use strict";
|
|
393644
393644
|
Object.defineProperty(exports2, "__esModule", { value: true });
|
|
393645
393645
|
exports2.FTPContext = exports2.FTPError = void 0;
|
|
@@ -393957,9 +393957,60 @@ Closing reason: ${this._closingError.stack}`;
|
|
|
393957
393957
|
}
|
|
393958
393958
|
});
|
|
393959
393959
|
|
|
393960
|
-
// ../../../node_modules/.pnpm/basic-ftp@5.
|
|
393960
|
+
// ../../../node_modules/.pnpm/basic-ftp@5.3.0/node_modules/basic-ftp/dist/netUtils.js
|
|
393961
|
+
var require_netUtils = __commonJS({
|
|
393962
|
+
"../../../node_modules/.pnpm/basic-ftp@5.3.0/node_modules/basic-ftp/dist/netUtils.js"(exports2) {
|
|
393963
|
+
"use strict";
|
|
393964
|
+
Object.defineProperty(exports2, "__esModule", { value: true });
|
|
393965
|
+
exports2.describeTLS = describeTLS;
|
|
393966
|
+
exports2.describeAddress = describeAddress;
|
|
393967
|
+
exports2.upgradeSocket = upgradeSocket;
|
|
393968
|
+
exports2.ipIsPrivateV4Address = ipIsPrivateV4Address;
|
|
393969
|
+
var tls_1 = require("tls");
|
|
393970
|
+
function describeTLS(socket) {
|
|
393971
|
+
if (socket instanceof tls_1.TLSSocket) {
|
|
393972
|
+
const protocol2 = socket.getProtocol();
|
|
393973
|
+
return protocol2 ? protocol2 : "Server socket or disconnected client socket";
|
|
393974
|
+
}
|
|
393975
|
+
return "No encryption";
|
|
393976
|
+
}
|
|
393977
|
+
function describeAddress(socket) {
|
|
393978
|
+
if (socket.remoteFamily === "IPv6") {
|
|
393979
|
+
return `[${socket.remoteAddress}]:${socket.remotePort}`;
|
|
393980
|
+
}
|
|
393981
|
+
return `${socket.remoteAddress}:${socket.remotePort}`;
|
|
393982
|
+
}
|
|
393983
|
+
function upgradeSocket(socket, options2) {
|
|
393984
|
+
return new Promise((resolve13, reject) => {
|
|
393985
|
+
const tlsOptions = Object.assign({}, options2, {
|
|
393986
|
+
socket
|
|
393987
|
+
});
|
|
393988
|
+
const tlsSocket = (0, tls_1.connect)(tlsOptions, () => {
|
|
393989
|
+
const expectCertificate = tlsOptions.rejectUnauthorized !== false;
|
|
393990
|
+
if (expectCertificate && !tlsSocket.authorized) {
|
|
393991
|
+
reject(tlsSocket.authorizationError);
|
|
393992
|
+
} else {
|
|
393993
|
+
tlsSocket.removeAllListeners("error");
|
|
393994
|
+
resolve13(tlsSocket);
|
|
393995
|
+
}
|
|
393996
|
+
}).once("error", (error50) => {
|
|
393997
|
+
reject(error50);
|
|
393998
|
+
});
|
|
393999
|
+
});
|
|
394000
|
+
}
|
|
394001
|
+
function ipIsPrivateV4Address(ip4 = "") {
|
|
394002
|
+
if (ip4.startsWith("::ffff:")) {
|
|
394003
|
+
ip4 = ip4.substr(7);
|
|
394004
|
+
}
|
|
394005
|
+
const octets = ip4.split(".").map((o14) => parseInt(o14, 10));
|
|
394006
|
+
return octets[0] === 10 || octets[0] === 172 && octets[1] >= 16 && octets[1] <= 31 || octets[0] === 192 && octets[1] === 168 || ip4 === "127.0.0.1";
|
|
394007
|
+
}
|
|
394008
|
+
}
|
|
394009
|
+
});
|
|
394010
|
+
|
|
394011
|
+
// ../../../node_modules/.pnpm/basic-ftp@5.3.0/node_modules/basic-ftp/dist/FileInfo.js
|
|
393961
394012
|
var require_FileInfo = __commonJS({
|
|
393962
|
-
"../../../node_modules/.pnpm/basic-ftp@5.
|
|
394013
|
+
"../../../node_modules/.pnpm/basic-ftp@5.3.0/node_modules/basic-ftp/dist/FileInfo.js"(exports2) {
|
|
393963
394014
|
"use strict";
|
|
393964
394015
|
Object.defineProperty(exports2, "__esModule", { value: true });
|
|
393965
394016
|
exports2.FileInfo = exports2.FileType = void 0;
|
|
@@ -394014,9 +394065,9 @@ var require_FileInfo = __commonJS({
|
|
|
394014
394065
|
}
|
|
394015
394066
|
});
|
|
394016
394067
|
|
|
394017
|
-
// ../../../node_modules/.pnpm/basic-ftp@5.
|
|
394068
|
+
// ../../../node_modules/.pnpm/basic-ftp@5.3.0/node_modules/basic-ftp/dist/parseListDOS.js
|
|
394018
394069
|
var require_parseListDOS = __commonJS({
|
|
394019
|
-
"../../../node_modules/.pnpm/basic-ftp@5.
|
|
394070
|
+
"../../../node_modules/.pnpm/basic-ftp@5.3.0/node_modules/basic-ftp/dist/parseListDOS.js"(exports2) {
|
|
394020
394071
|
"use strict";
|
|
394021
394072
|
Object.defineProperty(exports2, "__esModule", { value: true });
|
|
394022
394073
|
exports2.testLine = testLine;
|
|
@@ -394057,9 +394108,9 @@ var require_parseListDOS = __commonJS({
|
|
|
394057
394108
|
}
|
|
394058
394109
|
});
|
|
394059
394110
|
|
|
394060
|
-
// ../../../node_modules/.pnpm/basic-ftp@5.
|
|
394111
|
+
// ../../../node_modules/.pnpm/basic-ftp@5.3.0/node_modules/basic-ftp/dist/parseListUnix.js
|
|
394061
394112
|
var require_parseListUnix = __commonJS({
|
|
394062
|
-
"../../../node_modules/.pnpm/basic-ftp@5.
|
|
394113
|
+
"../../../node_modules/.pnpm/basic-ftp@5.3.0/node_modules/basic-ftp/dist/parseListUnix.js"(exports2) {
|
|
394063
394114
|
"use strict";
|
|
394064
394115
|
Object.defineProperty(exports2, "__esModule", { value: true });
|
|
394065
394116
|
exports2.testLine = testLine;
|
|
@@ -394143,9 +394194,9 @@ var require_parseListUnix = __commonJS({
|
|
|
394143
394194
|
}
|
|
394144
394195
|
});
|
|
394145
394196
|
|
|
394146
|
-
// ../../../node_modules/.pnpm/basic-ftp@5.
|
|
394197
|
+
// ../../../node_modules/.pnpm/basic-ftp@5.3.0/node_modules/basic-ftp/dist/parseListMLSD.js
|
|
394147
394198
|
var require_parseListMLSD = __commonJS({
|
|
394148
|
-
"../../../node_modules/.pnpm/basic-ftp@5.
|
|
394199
|
+
"../../../node_modules/.pnpm/basic-ftp@5.3.0/node_modules/basic-ftp/dist/parseListMLSD.js"(exports2) {
|
|
394149
394200
|
"use strict";
|
|
394150
394201
|
Object.defineProperty(exports2, "__esModule", { value: true });
|
|
394151
394202
|
exports2.testLine = testLine;
|
|
@@ -394308,9 +394359,9 @@ var require_parseListMLSD = __commonJS({
|
|
|
394308
394359
|
}
|
|
394309
394360
|
});
|
|
394310
394361
|
|
|
394311
|
-
// ../../../node_modules/.pnpm/basic-ftp@5.
|
|
394362
|
+
// ../../../node_modules/.pnpm/basic-ftp@5.3.0/node_modules/basic-ftp/dist/parseList.js
|
|
394312
394363
|
var require_parseList = __commonJS({
|
|
394313
|
-
"../../../node_modules/.pnpm/basic-ftp@5.
|
|
394364
|
+
"../../../node_modules/.pnpm/basic-ftp@5.3.0/node_modules/basic-ftp/dist/parseList.js"(exports2) {
|
|
394314
394365
|
"use strict";
|
|
394315
394366
|
var __createBinding2 = exports2 && exports2.__createBinding || (Object.create ? (function(o14, m11, k19, k23) {
|
|
394316
394367
|
if (k23 === void 0) k23 = k19;
|
|
@@ -394386,9 +394437,9 @@ var require_parseList = __commonJS({
|
|
|
394386
394437
|
}
|
|
394387
394438
|
});
|
|
394388
394439
|
|
|
394389
|
-
// ../../../node_modules/.pnpm/basic-ftp@5.
|
|
394440
|
+
// ../../../node_modules/.pnpm/basic-ftp@5.3.0/node_modules/basic-ftp/dist/ProgressTracker.js
|
|
394390
394441
|
var require_ProgressTracker = __commonJS({
|
|
394391
|
-
"../../../node_modules/.pnpm/basic-ftp@5.
|
|
394442
|
+
"../../../node_modules/.pnpm/basic-ftp@5.3.0/node_modules/basic-ftp/dist/ProgressTracker.js"(exports2) {
|
|
394392
394443
|
"use strict";
|
|
394393
394444
|
Object.defineProperty(exports2, "__esModule", { value: true });
|
|
394394
394445
|
exports2.ProgressTracker = void 0;
|
|
@@ -394457,88 +394508,44 @@ var require_ProgressTracker = __commonJS({
|
|
|
394457
394508
|
}
|
|
394458
394509
|
});
|
|
394459
394510
|
|
|
394460
|
-
// ../../../node_modules/.pnpm/basic-ftp@5.
|
|
394511
|
+
// ../../../node_modules/.pnpm/basic-ftp@5.3.0/node_modules/basic-ftp/dist/StringWriter.js
|
|
394461
394512
|
var require_StringWriter = __commonJS({
|
|
394462
|
-
"../../../node_modules/.pnpm/basic-ftp@5.
|
|
394513
|
+
"../../../node_modules/.pnpm/basic-ftp@5.3.0/node_modules/basic-ftp/dist/StringWriter.js"(exports2) {
|
|
394463
394514
|
"use strict";
|
|
394464
394515
|
Object.defineProperty(exports2, "__esModule", { value: true });
|
|
394465
394516
|
exports2.StringWriter = void 0;
|
|
394466
394517
|
var stream_1 = require("stream");
|
|
394467
394518
|
var StringWriter = class extends stream_1.Writable {
|
|
394468
|
-
constructor() {
|
|
394469
|
-
super(
|
|
394470
|
-
this.
|
|
394519
|
+
constructor(maxByteLength = 1 * 1024 * 1024) {
|
|
394520
|
+
super();
|
|
394521
|
+
this.maxByteLength = maxByteLength;
|
|
394522
|
+
this.byteLength = 0;
|
|
394523
|
+
this.bufs = [];
|
|
394471
394524
|
}
|
|
394472
394525
|
_write(chunk2, _16, callback) {
|
|
394473
|
-
if (chunk2 instanceof Buffer) {
|
|
394474
|
-
|
|
394475
|
-
|
|
394476
|
-
}
|
|
394477
|
-
|
|
394526
|
+
if (!(chunk2 instanceof Buffer)) {
|
|
394527
|
+
callback(new Error("StringWriter: expects chunks of type 'Buffer'."));
|
|
394528
|
+
return;
|
|
394529
|
+
}
|
|
394530
|
+
if (this.byteLength + chunk2.byteLength > this.maxByteLength) {
|
|
394531
|
+
callback(new Error(`StringWriter: Maximum bytes exceeded, maxByteLength=${this.maxByteLength}.`));
|
|
394532
|
+
return;
|
|
394478
394533
|
}
|
|
394534
|
+
this.byteLength += chunk2.byteLength;
|
|
394535
|
+
this.bufs.push(chunk2);
|
|
394536
|
+
callback(null);
|
|
394479
394537
|
}
|
|
394480
394538
|
getText(encoding) {
|
|
394481
|
-
return this.
|
|
394539
|
+
return Buffer.concat(this.bufs).toString(encoding);
|
|
394482
394540
|
}
|
|
394483
394541
|
};
|
|
394484
394542
|
exports2.StringWriter = StringWriter;
|
|
394485
394543
|
}
|
|
394486
394544
|
});
|
|
394487
394545
|
|
|
394488
|
-
// ../../../node_modules/.pnpm/basic-ftp@5.
|
|
394489
|
-
var require_netUtils = __commonJS({
|
|
394490
|
-
"../../../node_modules/.pnpm/basic-ftp@5.2.2/node_modules/basic-ftp/dist/netUtils.js"(exports2) {
|
|
394491
|
-
"use strict";
|
|
394492
|
-
Object.defineProperty(exports2, "__esModule", { value: true });
|
|
394493
|
-
exports2.describeTLS = describeTLS;
|
|
394494
|
-
exports2.describeAddress = describeAddress;
|
|
394495
|
-
exports2.upgradeSocket = upgradeSocket;
|
|
394496
|
-
exports2.ipIsPrivateV4Address = ipIsPrivateV4Address;
|
|
394497
|
-
var tls_1 = require("tls");
|
|
394498
|
-
function describeTLS(socket) {
|
|
394499
|
-
if (socket instanceof tls_1.TLSSocket) {
|
|
394500
|
-
const protocol2 = socket.getProtocol();
|
|
394501
|
-
return protocol2 ? protocol2 : "Server socket or disconnected client socket";
|
|
394502
|
-
}
|
|
394503
|
-
return "No encryption";
|
|
394504
|
-
}
|
|
394505
|
-
function describeAddress(socket) {
|
|
394506
|
-
if (socket.remoteFamily === "IPv6") {
|
|
394507
|
-
return `[${socket.remoteAddress}]:${socket.remotePort}`;
|
|
394508
|
-
}
|
|
394509
|
-
return `${socket.remoteAddress}:${socket.remotePort}`;
|
|
394510
|
-
}
|
|
394511
|
-
function upgradeSocket(socket, options2) {
|
|
394512
|
-
return new Promise((resolve13, reject) => {
|
|
394513
|
-
const tlsOptions = Object.assign({}, options2, {
|
|
394514
|
-
socket
|
|
394515
|
-
});
|
|
394516
|
-
const tlsSocket = (0, tls_1.connect)(tlsOptions, () => {
|
|
394517
|
-
const expectCertificate = tlsOptions.rejectUnauthorized !== false;
|
|
394518
|
-
if (expectCertificate && !tlsSocket.authorized) {
|
|
394519
|
-
reject(tlsSocket.authorizationError);
|
|
394520
|
-
} else {
|
|
394521
|
-
tlsSocket.removeAllListeners("error");
|
|
394522
|
-
resolve13(tlsSocket);
|
|
394523
|
-
}
|
|
394524
|
-
}).once("error", (error50) => {
|
|
394525
|
-
reject(error50);
|
|
394526
|
-
});
|
|
394527
|
-
});
|
|
394528
|
-
}
|
|
394529
|
-
function ipIsPrivateV4Address(ip4 = "") {
|
|
394530
|
-
if (ip4.startsWith("::ffff:")) {
|
|
394531
|
-
ip4 = ip4.substr(7);
|
|
394532
|
-
}
|
|
394533
|
-
const octets = ip4.split(".").map((o14) => parseInt(o14, 10));
|
|
394534
|
-
return octets[0] === 10 || octets[0] === 172 && octets[1] >= 16 && octets[1] <= 31 || octets[0] === 192 && octets[1] === 168 || ip4 === "127.0.0.1";
|
|
394535
|
-
}
|
|
394536
|
-
}
|
|
394537
|
-
});
|
|
394538
|
-
|
|
394539
|
-
// ../../../node_modules/.pnpm/basic-ftp@5.2.2/node_modules/basic-ftp/dist/transfer.js
|
|
394546
|
+
// ../../../node_modules/.pnpm/basic-ftp@5.3.0/node_modules/basic-ftp/dist/transfer.js
|
|
394540
394547
|
var require_transfer = __commonJS({
|
|
394541
|
-
"../../../node_modules/.pnpm/basic-ftp@5.
|
|
394548
|
+
"../../../node_modules/.pnpm/basic-ftp@5.3.0/node_modules/basic-ftp/dist/transfer.js"(exports2) {
|
|
394542
394549
|
"use strict";
|
|
394543
394550
|
Object.defineProperty(exports2, "__esModule", { value: true });
|
|
394544
394551
|
exports2.enterPassiveModeIPv6 = enterPassiveModeIPv6;
|
|
@@ -394788,9 +394795,9 @@ var require_transfer = __commonJS({
|
|
|
394788
394795
|
}
|
|
394789
394796
|
});
|
|
394790
394797
|
|
|
394791
|
-
// ../../../node_modules/.pnpm/basic-ftp@5.
|
|
394798
|
+
// ../../../node_modules/.pnpm/basic-ftp@5.3.0/node_modules/basic-ftp/dist/Client.js
|
|
394792
394799
|
var require_Client9 = __commonJS({
|
|
394793
|
-
"../../../node_modules/.pnpm/basic-ftp@5.
|
|
394800
|
+
"../../../node_modules/.pnpm/basic-ftp@5.3.0/node_modules/basic-ftp/dist/Client.js"(exports2) {
|
|
394794
394801
|
"use strict";
|
|
394795
394802
|
Object.defineProperty(exports2, "__esModule", { value: true });
|
|
394796
394803
|
exports2.Client = void 0;
|
|
@@ -394799,13 +394806,13 @@ var require_Client9 = __commonJS({
|
|
|
394799
394806
|
var tls_1 = require("tls");
|
|
394800
394807
|
var util_1 = require("util");
|
|
394801
394808
|
var FtpContext_1 = require_FtpContext();
|
|
394809
|
+
var netUtils_1 = require_netUtils();
|
|
394810
|
+
var parseControlResponse_1 = require_parseControlResponse();
|
|
394802
394811
|
var parseList_1 = require_parseList();
|
|
394812
|
+
var parseListMLSD_1 = require_parseListMLSD();
|
|
394803
394813
|
var ProgressTracker_1 = require_ProgressTracker();
|
|
394804
394814
|
var StringWriter_1 = require_StringWriter();
|
|
394805
|
-
var parseListMLSD_1 = require_parseListMLSD();
|
|
394806
|
-
var netUtils_1 = require_netUtils();
|
|
394807
394815
|
var transfer_1 = require_transfer();
|
|
394808
|
-
var parseControlResponse_1 = require_parseControlResponse();
|
|
394809
394816
|
var fsReadDir = (0, util_1.promisify)(fs_1.readdir);
|
|
394810
394817
|
var fsMkDir = (0, util_1.promisify)(fs_1.mkdir);
|
|
394811
394818
|
var fsStat2 = (0, util_1.promisify)(fs_1.stat);
|
|
@@ -394813,7 +394820,8 @@ var require_Client9 = __commonJS({
|
|
|
394813
394820
|
var fsClose = (0, util_1.promisify)(fs_1.close);
|
|
394814
394821
|
var fsUnlink = (0, util_1.promisify)(fs_1.unlink);
|
|
394815
394822
|
var defaultClientOptions = {
|
|
394816
|
-
allowSeparateTransferHost: true
|
|
394823
|
+
allowSeparateTransferHost: true,
|
|
394824
|
+
maxListingBytes: 40 * 1024 * 1024
|
|
394817
394825
|
};
|
|
394818
394826
|
var LIST_COMMANDS_DEFAULT = () => ["LIST -a", "LIST"];
|
|
394819
394827
|
var LIST_COMMANDS_MLSD = () => ["MLSD", "LIST -a", "LIST"];
|
|
@@ -394823,13 +394831,15 @@ var require_Client9 = __commonJS({
|
|
|
394823
394831
|
*
|
|
394824
394832
|
* @param timeout Timeout in milliseconds, use 0 for no timeout. Optional, default is 30 seconds.
|
|
394825
394833
|
*/
|
|
394826
|
-
constructor(timeout4 = 3e4,
|
|
394834
|
+
constructor(timeout4 = 3e4, userOptions2 = defaultClientOptions) {
|
|
394827
394835
|
this.availableListCommands = LIST_COMMANDS_DEFAULT();
|
|
394836
|
+
const options2 = { ...defaultClientOptions, ...userOptions2 };
|
|
394828
394837
|
this.ftp = new FtpContext_1.FTPContext(timeout4);
|
|
394829
394838
|
this.prepareTransfer = this._enterFirstCompatibleMode([
|
|
394830
394839
|
transfer_1.enterPassiveModeIPv6,
|
|
394831
394840
|
options2.allowSeparateTransferHost ? transfer_1.enterPassiveModeIPv4 : transfer_1.enterPassiveModeIPv4_forceControlHostIP
|
|
394832
394841
|
]);
|
|
394842
|
+
this.options = options2;
|
|
394833
394843
|
this.parseList = parseList_1.parseList;
|
|
394834
394844
|
this._progressTracker = new ProgressTracker_1.ProgressTracker();
|
|
394835
394845
|
}
|
|
@@ -395266,7 +395276,7 @@ var require_Client9 = __commonJS({
|
|
|
395266
395276
|
* @protected
|
|
395267
395277
|
*/
|
|
395268
395278
|
async _requestListWithCommand(command3) {
|
|
395269
|
-
const buffer = new StringWriter_1.StringWriter();
|
|
395279
|
+
const buffer = new StringWriter_1.StringWriter(this.options.maxListingBytes);
|
|
395270
395280
|
await (0, transfer_1.downloadTo)(buffer, {
|
|
395271
395281
|
ftp: this.ftp,
|
|
395272
395282
|
tracker: this._progressTracker,
|
|
@@ -395521,17 +395531,17 @@ var require_Client9 = __commonJS({
|
|
|
395521
395531
|
}
|
|
395522
395532
|
});
|
|
395523
395533
|
|
|
395524
|
-
// ../../../node_modules/.pnpm/basic-ftp@5.
|
|
395534
|
+
// ../../../node_modules/.pnpm/basic-ftp@5.3.0/node_modules/basic-ftp/dist/StringEncoding.js
|
|
395525
395535
|
var require_StringEncoding = __commonJS({
|
|
395526
|
-
"../../../node_modules/.pnpm/basic-ftp@5.
|
|
395536
|
+
"../../../node_modules/.pnpm/basic-ftp@5.3.0/node_modules/basic-ftp/dist/StringEncoding.js"(exports2) {
|
|
395527
395537
|
"use strict";
|
|
395528
395538
|
Object.defineProperty(exports2, "__esModule", { value: true });
|
|
395529
395539
|
}
|
|
395530
395540
|
});
|
|
395531
395541
|
|
|
395532
|
-
// ../../../node_modules/.pnpm/basic-ftp@5.
|
|
395542
|
+
// ../../../node_modules/.pnpm/basic-ftp@5.3.0/node_modules/basic-ftp/dist/index.js
|
|
395533
395543
|
var require_dist17 = __commonJS({
|
|
395534
|
-
"../../../node_modules/.pnpm/basic-ftp@5.
|
|
395544
|
+
"../../../node_modules/.pnpm/basic-ftp@5.3.0/node_modules/basic-ftp/dist/index.js"(exports2) {
|
|
395535
395545
|
"use strict";
|
|
395536
395546
|
var __createBinding2 = exports2 && exports2.__createBinding || (Object.create ? (function(o14, m11, k19, k23) {
|
|
395537
395547
|
if (k23 === void 0) k23 = k19;
|
|
@@ -621981,7 +621991,7 @@ var AccessTokenPosthogManager = class {
|
|
|
621981
621991
|
properties: {
|
|
621982
621992
|
...event,
|
|
621983
621993
|
...event.properties,
|
|
621984
|
-
version: "4.76.
|
|
621994
|
+
version: "4.76.2",
|
|
621985
621995
|
usingAccessToken: true
|
|
621986
621996
|
}
|
|
621987
621997
|
});
|
|
@@ -622035,7 +622045,7 @@ var UserPosthogManager = class {
|
|
|
622035
622045
|
distinctId: this.userId ?? await this.getPersistedDistinctId(),
|
|
622036
622046
|
event: "CLI",
|
|
622037
622047
|
properties: {
|
|
622038
|
-
version: "4.76.
|
|
622048
|
+
version: "4.76.2",
|
|
622039
622049
|
...event,
|
|
622040
622050
|
...event.properties,
|
|
622041
622051
|
usingAccessToken: false,
|
|
@@ -812799,6 +812809,16 @@ function pathToRegexp(path98, keys24, options2) {
|
|
|
812799
812809
|
}
|
|
812800
812810
|
|
|
812801
812811
|
// ../yaml/docs-validator/lib/rules/missing-redirects/missing-redirects-logic.js
|
|
812812
|
+
function keepLatestEntryPerPageId(entries23) {
|
|
812813
|
+
const latestByPageId = /* @__PURE__ */ new Map();
|
|
812814
|
+
for (const entry of entries23) {
|
|
812815
|
+
const existing = latestByPageId.get(entry.pageId);
|
|
812816
|
+
if (existing == null || Date.parse(entry.lastUpdated) >= Date.parse(existing.lastUpdated)) {
|
|
812817
|
+
latestByPageId.set(entry.pageId, entry);
|
|
812818
|
+
}
|
|
812819
|
+
}
|
|
812820
|
+
return Array.from(latestByPageId.values());
|
|
812821
|
+
}
|
|
812802
812822
|
function removeTrailingSlash4(pathname) {
|
|
812803
812823
|
return pathname.endsWith("/") ? pathname.slice(0, -1) : pathname;
|
|
812804
812824
|
}
|
|
@@ -812885,10 +812905,7 @@ async function fetchMarkdownEntries(fdrOrigin, domain3, basepath, authToken) {
|
|
|
812885
812905
|
}
|
|
812886
812906
|
const data2 = await response.json();
|
|
812887
812907
|
return {
|
|
812888
|
-
entries:
|
|
812889
|
-
pageId: entry.pageId,
|
|
812890
|
-
slug: entry.slug
|
|
812891
|
-
}))
|
|
812908
|
+
entries: data2.entries
|
|
812892
812909
|
};
|
|
812893
812910
|
} catch (error50) {
|
|
812894
812911
|
const message = error50 instanceof Error ? error50.message : String(error50);
|
|
@@ -812937,7 +812954,8 @@ var MissingRedirectsRule = {
|
|
|
812937
812954
|
}
|
|
812938
812955
|
const root6 = navigation_exports2.migrate.FernNavigationV1ToLatest.create().root(resolvedDocsDefinition.config.root);
|
|
812939
812956
|
const localPageIdToSlug = buildPageIdToSlugMap(root6);
|
|
812940
|
-
const
|
|
812957
|
+
const latestEntries = keepLatestEntryPerPageId(result.entries);
|
|
812958
|
+
const removedSlugs = findRemovedSlugs(latestEntries, localPageIdToSlug);
|
|
812941
812959
|
if (removedSlugs.length === 0) {
|
|
812942
812960
|
return {};
|
|
812943
812961
|
}
|
|
@@ -839245,7 +839263,7 @@ var LOCAL_STORAGE_FOLDER4 = ".fern-dev";
|
|
|
839245
839263
|
var LOGS_FOLDER_NAME = "logs";
|
|
839246
839264
|
var MAX_LOGS_DIR_SIZE_BYTES = 100 * 1024 * 1024;
|
|
839247
839265
|
function getCliSource() {
|
|
839248
|
-
const version7 = "4.76.
|
|
839266
|
+
const version7 = "4.76.2";
|
|
839249
839267
|
return `cli@${version7}`;
|
|
839250
839268
|
}
|
|
839251
839269
|
var DebugLogger = class {
|
|
@@ -850560,7 +850578,7 @@ var LegacyDocsPublisher = class {
|
|
|
850560
850578
|
previewId,
|
|
850561
850579
|
disableTemplates: void 0,
|
|
850562
850580
|
skipUpload,
|
|
850563
|
-
cliVersion: "4.76.
|
|
850581
|
+
cliVersion: "4.76.2"
|
|
850564
850582
|
});
|
|
850565
850583
|
if (taskContext.getResult() === TaskResult.Failure) {
|
|
850566
850584
|
return { success: false };
|
|
@@ -925018,7 +925036,7 @@ var CliContext = class _CliContext {
|
|
|
925018
925036
|
if (false) {
|
|
925019
925037
|
this.logger.error("CLI_VERSION is not defined");
|
|
925020
925038
|
}
|
|
925021
|
-
return "4.76.
|
|
925039
|
+
return "4.76.2";
|
|
925022
925040
|
}
|
|
925023
925041
|
getCliName() {
|
|
925024
925042
|
if (false) {
|
package/package.json
CHANGED