@fern-api/fern-api-dev 5.36.1 → 5.37.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 +156 -138
- package/package.json +1 -1
package/cli.cjs
CHANGED
|
@@ -6684,14 +6684,14 @@ var require_require_in_the_middle = __commonJS({
|
|
|
6684
6684
|
moduleName = parsedPath.name;
|
|
6685
6685
|
basedir = parsedPath.dir;
|
|
6686
6686
|
} else {
|
|
6687
|
-
const
|
|
6688
|
-
if (
|
|
6687
|
+
const stat7 = moduleDetailsFromPath(filename);
|
|
6688
|
+
if (stat7 === void 0) {
|
|
6689
6689
|
debug9("could not parse filename: %s", filename);
|
|
6690
6690
|
return exports3;
|
|
6691
6691
|
}
|
|
6692
|
-
moduleName =
|
|
6693
|
-
basedir =
|
|
6694
|
-
const fullModuleName = resolveModuleName(
|
|
6692
|
+
moduleName = stat7.name;
|
|
6693
|
+
basedir = stat7.basedir;
|
|
6694
|
+
const fullModuleName = resolveModuleName(stat7);
|
|
6695
6695
|
debug9("resolved filename to module: %s (id: %s, resolved: %s, basedir: %s)", moduleName, id2, fullModuleName, basedir);
|
|
6696
6696
|
let matchFound = false;
|
|
6697
6697
|
if (hasWhitelist) {
|
|
@@ -6753,9 +6753,9 @@ var require_require_in_the_middle = __commonJS({
|
|
|
6753
6753
|
}
|
|
6754
6754
|
}
|
|
6755
6755
|
};
|
|
6756
|
-
function resolveModuleName(
|
|
6757
|
-
const normalizedPath = path115.sep !== "/" ?
|
|
6758
|
-
return path115.posix.join(
|
|
6756
|
+
function resolveModuleName(stat7) {
|
|
6757
|
+
const normalizedPath = path115.sep !== "/" ? stat7.path.split(path115.sep).join("/") : stat7.path;
|
|
6758
|
+
return path115.posix.join(stat7.name, normalizedPath).replace(normalize13, "");
|
|
6759
6759
|
}
|
|
6760
6760
|
}
|
|
6761
6761
|
});
|
|
@@ -44850,11 +44850,11 @@ var init_dirname2 = __esm({
|
|
|
44850
44850
|
// ../../commons/fs-utils/lib/doesPathExist.js
|
|
44851
44851
|
async function isPathEmpty(filepath) {
|
|
44852
44852
|
try {
|
|
44853
|
-
const
|
|
44854
|
-
if (
|
|
44855
|
-
return
|
|
44853
|
+
const stat7 = await (0, import_promises.lstat)(filepath);
|
|
44854
|
+
if (stat7.isFile()) {
|
|
44855
|
+
return stat7.size === 0;
|
|
44856
44856
|
}
|
|
44857
|
-
if (
|
|
44857
|
+
if (stat7.isDirectory()) {
|
|
44858
44858
|
const entries24 = await (0, import_promises.readdir)(filepath);
|
|
44859
44859
|
return entries24.length === 0;
|
|
44860
44860
|
}
|
|
@@ -44865,11 +44865,11 @@ async function isPathEmpty(filepath) {
|
|
|
44865
44865
|
}
|
|
44866
44866
|
async function doesPathExist(filepath, mode) {
|
|
44867
44867
|
try {
|
|
44868
|
-
const
|
|
44869
|
-
if (mode === "file" && !
|
|
44868
|
+
const stat7 = await (0, import_promises.lstat)(filepath);
|
|
44869
|
+
if (mode === "file" && !stat7.isFile()) {
|
|
44870
44870
|
return false;
|
|
44871
44871
|
}
|
|
44872
|
-
if (mode === "directory" && !
|
|
44872
|
+
if (mode === "directory" && !stat7.isDirectory()) {
|
|
44873
44873
|
return false;
|
|
44874
44874
|
}
|
|
44875
44875
|
return true;
|
|
@@ -44879,11 +44879,11 @@ async function doesPathExist(filepath, mode) {
|
|
|
44879
44879
|
}
|
|
44880
44880
|
function doesPathExistSync(filepath, mode) {
|
|
44881
44881
|
try {
|
|
44882
|
-
const
|
|
44883
|
-
if (mode === "file" && !
|
|
44882
|
+
const stat7 = (0, import_fs8.lstatSync)(filepath);
|
|
44883
|
+
if (mode === "file" && !stat7.isFile()) {
|
|
44884
44884
|
return false;
|
|
44885
44885
|
}
|
|
44886
|
-
if (mode === "directory" && !
|
|
44886
|
+
if (mode === "directory" && !stat7.isDirectory()) {
|
|
44887
44887
|
return false;
|
|
44888
44888
|
}
|
|
44889
44889
|
return true;
|
|
@@ -53194,12 +53194,12 @@ var require_src22 = __commonJS({
|
|
|
53194
53194
|
function check3(path115, isFile3, isDirectory) {
|
|
53195
53195
|
log4(`checking %s`, path115);
|
|
53196
53196
|
try {
|
|
53197
|
-
const
|
|
53198
|
-
if (
|
|
53197
|
+
const stat7 = fs_1.statSync(path115);
|
|
53198
|
+
if (stat7.isFile() && isFile3) {
|
|
53199
53199
|
log4(`[OK] path represents a file`);
|
|
53200
53200
|
return true;
|
|
53201
53201
|
}
|
|
53202
|
-
if (
|
|
53202
|
+
if (stat7.isDirectory() && isDirectory) {
|
|
53203
53203
|
log4(`[OK] path represents a directory`);
|
|
53204
53204
|
return true;
|
|
53205
53205
|
}
|
|
@@ -214313,12 +214313,12 @@ var require_form_data = __commonJS({
|
|
|
214313
214313
|
if (value2.end != void 0 && value2.end != Infinity && value2.start != void 0) {
|
|
214314
214314
|
callback(null, value2.end + 1 - (value2.start ? value2.start : 0));
|
|
214315
214315
|
} else {
|
|
214316
|
-
fs32.stat(value2.path, function(err,
|
|
214316
|
+
fs32.stat(value2.path, function(err, stat7) {
|
|
214317
214317
|
if (err) {
|
|
214318
214318
|
callback(err);
|
|
214319
214319
|
return;
|
|
214320
214320
|
}
|
|
214321
|
-
var fileSize =
|
|
214321
|
+
var fileSize = stat7.size - (value2.start ? value2.start : 0);
|
|
214322
214322
|
callback(null, fileSize);
|
|
214323
214323
|
});
|
|
214324
214324
|
}
|
|
@@ -225046,15 +225046,15 @@ var require_windows = __commonJS({
|
|
|
225046
225046
|
}
|
|
225047
225047
|
return false;
|
|
225048
225048
|
}
|
|
225049
|
-
function checkStat(
|
|
225050
|
-
if (!
|
|
225049
|
+
function checkStat(stat7, path115, options2) {
|
|
225050
|
+
if (!stat7.isSymbolicLink() && !stat7.isFile()) {
|
|
225051
225051
|
return false;
|
|
225052
225052
|
}
|
|
225053
225053
|
return checkPathExt(path115, options2);
|
|
225054
225054
|
}
|
|
225055
225055
|
function isexe(path115, options2, cb) {
|
|
225056
|
-
fs32.stat(path115, function(er11,
|
|
225057
|
-
cb(er11, er11 ? false : checkStat(
|
|
225056
|
+
fs32.stat(path115, function(er11, stat7) {
|
|
225057
|
+
cb(er11, er11 ? false : checkStat(stat7, path115, options2));
|
|
225058
225058
|
});
|
|
225059
225059
|
}
|
|
225060
225060
|
function sync2(path115, options2) {
|
|
@@ -225071,20 +225071,20 @@ var require_mode = __commonJS({
|
|
|
225071
225071
|
isexe.sync = sync2;
|
|
225072
225072
|
var fs32 = require("fs");
|
|
225073
225073
|
function isexe(path115, options2, cb) {
|
|
225074
|
-
fs32.stat(path115, function(er11,
|
|
225075
|
-
cb(er11, er11 ? false : checkStat(
|
|
225074
|
+
fs32.stat(path115, function(er11, stat7) {
|
|
225075
|
+
cb(er11, er11 ? false : checkStat(stat7, options2));
|
|
225076
225076
|
});
|
|
225077
225077
|
}
|
|
225078
225078
|
function sync2(path115, options2) {
|
|
225079
225079
|
return checkStat(fs32.statSync(path115), options2);
|
|
225080
225080
|
}
|
|
225081
|
-
function checkStat(
|
|
225082
|
-
return
|
|
225081
|
+
function checkStat(stat7, options2) {
|
|
225082
|
+
return stat7.isFile() && checkMode(stat7, options2);
|
|
225083
225083
|
}
|
|
225084
|
-
function checkMode(
|
|
225085
|
-
var mod =
|
|
225086
|
-
var uid =
|
|
225087
|
-
var gid =
|
|
225084
|
+
function checkMode(stat7, options2) {
|
|
225085
|
+
var mod = stat7.mode;
|
|
225086
|
+
var uid = stat7.uid;
|
|
225087
|
+
var gid = stat7.gid;
|
|
225088
225088
|
var myUid = options2.uid !== void 0 ? options2.uid : process.getuid && process.getuid();
|
|
225089
225089
|
var myGid = options2.gid !== void 0 ? options2.gid : process.getgid && process.getgid();
|
|
225090
225090
|
var u6 = parseInt("100", 8);
|
|
@@ -328461,13 +328461,13 @@ var require_view = __commonJS({
|
|
|
328461
328461
|
View.prototype.resolve = function resolve16(dir, file4) {
|
|
328462
328462
|
var ext2 = this.ext;
|
|
328463
328463
|
var path116 = join27(dir, file4);
|
|
328464
|
-
var
|
|
328465
|
-
if (
|
|
328464
|
+
var stat7 = tryStat(path116);
|
|
328465
|
+
if (stat7 && stat7.isFile()) {
|
|
328466
328466
|
return path116;
|
|
328467
328467
|
}
|
|
328468
328468
|
path116 = join27(dir, basename6(file4, ext2), "index" + ext2);
|
|
328469
|
-
|
|
328470
|
-
if (
|
|
328469
|
+
stat7 = tryStat(path116);
|
|
328470
|
+
if (stat7 && stat7.isFile()) {
|
|
328471
328471
|
return path116;
|
|
328472
328472
|
}
|
|
328473
328473
|
};
|
|
@@ -328679,9 +328679,9 @@ var require_etag = __commonJS({
|
|
|
328679
328679
|
}
|
|
328680
328680
|
return obj && typeof obj === "object" && "ctime" in obj && toString10.call(obj.ctime) === "[object Date]" && "mtime" in obj && toString10.call(obj.mtime) === "[object Date]" && "ino" in obj && typeof obj.ino === "number" && "size" in obj && typeof obj.size === "number";
|
|
328681
328681
|
}
|
|
328682
|
-
function stattag(
|
|
328683
|
-
var mtime =
|
|
328684
|
-
var size2 =
|
|
328682
|
+
function stattag(stat7) {
|
|
328683
|
+
var mtime = stat7.mtime.getTime().toString(16);
|
|
328684
|
+
var size2 = stat7.size.toString(16);
|
|
328685
328685
|
return '"' + size2 + "-" + mtime + '"';
|
|
328686
328686
|
}
|
|
328687
328687
|
}
|
|
@@ -329179,8 +329179,8 @@ var require_send = __commonJS({
|
|
|
329179
329179
|
this.sendFile(path116);
|
|
329180
329180
|
return res;
|
|
329181
329181
|
};
|
|
329182
|
-
SendStream.prototype.send = function send2(path116,
|
|
329183
|
-
var len =
|
|
329182
|
+
SendStream.prototype.send = function send2(path116, stat7) {
|
|
329183
|
+
var len = stat7.size;
|
|
329184
329184
|
var options2 = this.options;
|
|
329185
329185
|
var opts = {};
|
|
329186
329186
|
var res = this.res;
|
|
@@ -329192,7 +329192,7 @@ var require_send = __commonJS({
|
|
|
329192
329192
|
return;
|
|
329193
329193
|
}
|
|
329194
329194
|
debug9('pipe "%s"', path116);
|
|
329195
|
-
this.setHeader(path116,
|
|
329195
|
+
this.setHeader(path116, stat7);
|
|
329196
329196
|
this.type(path116);
|
|
329197
329197
|
if (this.isConditionalGET()) {
|
|
329198
329198
|
if (this.isPreconditionFailure()) {
|
|
@@ -329248,14 +329248,14 @@ var require_send = __commonJS({
|
|
|
329248
329248
|
var i9 = 0;
|
|
329249
329249
|
var self2 = this;
|
|
329250
329250
|
debug9('stat "%s"', path116);
|
|
329251
|
-
fs32.stat(path116, function onstat(err,
|
|
329251
|
+
fs32.stat(path116, function onstat(err, stat7) {
|
|
329252
329252
|
if (err && err.code === "ENOENT" && !extname2(path116) && path116[path116.length - 1] !== sep11) {
|
|
329253
329253
|
return next2(err);
|
|
329254
329254
|
}
|
|
329255
329255
|
if (err) return self2.onStatError(err);
|
|
329256
|
-
if (
|
|
329257
|
-
self2.emit("file", path116,
|
|
329258
|
-
self2.send(path116,
|
|
329256
|
+
if (stat7.isDirectory()) return self2.redirect(path116);
|
|
329257
|
+
self2.emit("file", path116, stat7);
|
|
329258
|
+
self2.send(path116, stat7);
|
|
329259
329259
|
});
|
|
329260
329260
|
function next2(err) {
|
|
329261
329261
|
if (self2._extensions.length <= i9) {
|
|
@@ -329263,11 +329263,11 @@ var require_send = __commonJS({
|
|
|
329263
329263
|
}
|
|
329264
329264
|
var p14 = path116 + "." + self2._extensions[i9++];
|
|
329265
329265
|
debug9('stat "%s"', p14);
|
|
329266
|
-
fs32.stat(p14, function(err2,
|
|
329266
|
+
fs32.stat(p14, function(err2, stat7) {
|
|
329267
329267
|
if (err2) return next2(err2);
|
|
329268
|
-
if (
|
|
329269
|
-
self2.emit("file", p14,
|
|
329270
|
-
self2.send(p14,
|
|
329268
|
+
if (stat7.isDirectory()) return next2();
|
|
329269
|
+
self2.emit("file", p14, stat7);
|
|
329270
|
+
self2.send(p14, stat7);
|
|
329271
329271
|
});
|
|
329272
329272
|
}
|
|
329273
329273
|
};
|
|
@@ -329281,11 +329281,11 @@ var require_send = __commonJS({
|
|
|
329281
329281
|
}
|
|
329282
329282
|
var p14 = join27(path116, self2._index[i9]);
|
|
329283
329283
|
debug9('stat "%s"', p14);
|
|
329284
|
-
fs32.stat(p14, function(err2,
|
|
329284
|
+
fs32.stat(p14, function(err2, stat7) {
|
|
329285
329285
|
if (err2) return next2(err2);
|
|
329286
|
-
if (
|
|
329287
|
-
self2.emit("file", p14,
|
|
329288
|
-
self2.send(p14,
|
|
329286
|
+
if (stat7.isDirectory()) return next2();
|
|
329287
|
+
self2.emit("file", p14, stat7);
|
|
329288
|
+
self2.send(p14, stat7);
|
|
329289
329289
|
});
|
|
329290
329290
|
}
|
|
329291
329291
|
next2();
|
|
@@ -329320,9 +329320,9 @@ var require_send = __commonJS({
|
|
|
329320
329320
|
debug9("content-type %s", type9);
|
|
329321
329321
|
res.setHeader("Content-Type", type9 + (charset ? "; charset=" + charset : ""));
|
|
329322
329322
|
};
|
|
329323
|
-
SendStream.prototype.setHeader = function setHeader(path116,
|
|
329323
|
+
SendStream.prototype.setHeader = function setHeader(path116, stat7) {
|
|
329324
329324
|
var res = this.res;
|
|
329325
|
-
this.emit("headers", res, path116,
|
|
329325
|
+
this.emit("headers", res, path116, stat7);
|
|
329326
329326
|
if (this._acceptRanges && !res.getHeader("Accept-Ranges")) {
|
|
329327
329327
|
debug9("accept ranges");
|
|
329328
329328
|
res.setHeader("Accept-Ranges", "bytes");
|
|
@@ -329336,12 +329336,12 @@ var require_send = __commonJS({
|
|
|
329336
329336
|
res.setHeader("Cache-Control", cacheControl);
|
|
329337
329337
|
}
|
|
329338
329338
|
if (this._lastModified && !res.getHeader("Last-Modified")) {
|
|
329339
|
-
var modified =
|
|
329339
|
+
var modified = stat7.mtime.toUTCString();
|
|
329340
329340
|
debug9("modified %s", modified);
|
|
329341
329341
|
res.setHeader("Last-Modified", modified);
|
|
329342
329342
|
}
|
|
329343
329343
|
if (this._etag && !res.getHeader("ETag")) {
|
|
329344
|
-
var val = etag(
|
|
329344
|
+
var val = etag(stat7);
|
|
329345
329345
|
debug9("etag %s", val);
|
|
329346
329346
|
res.setHeader("ETag", val);
|
|
329347
329347
|
}
|
|
@@ -346189,7 +346189,7 @@ var require_make_dir = __commonJS({
|
|
|
346189
346189
|
checkPath(input3);
|
|
346190
346190
|
opts = Object.assign({}, defaults3, opts);
|
|
346191
346191
|
const mkdir44 = pify(opts.fs.mkdir);
|
|
346192
|
-
const
|
|
346192
|
+
const stat7 = pify(opts.fs.stat);
|
|
346193
346193
|
const make = (pth) => {
|
|
346194
346194
|
return mkdir44(pth, opts.mode).then(() => pth).catch((err) => {
|
|
346195
346195
|
if (err.code === "ENOENT") {
|
|
@@ -346198,7 +346198,7 @@ var require_make_dir = __commonJS({
|
|
|
346198
346198
|
}
|
|
346199
346199
|
return make(path115.dirname(pth)).then(() => make(pth));
|
|
346200
346200
|
}
|
|
346201
|
-
return
|
|
346201
|
+
return stat7(pth).then((stats) => stats.isDirectory() ? pth : Promise.reject()).catch(() => {
|
|
346202
346202
|
throw err;
|
|
346203
346203
|
});
|
|
346204
346204
|
});
|
|
@@ -364951,8 +364951,8 @@ If you want to keep these lines, restore them in a follow-up commit and re-run r
|
|
|
364951
364951
|
return null;
|
|
364952
364952
|
}
|
|
364953
364953
|
try {
|
|
364954
|
-
const
|
|
364955
|
-
if (
|
|
364954
|
+
const stat7 = (0, import_node_fs33.statSync)(fullPath);
|
|
364955
|
+
if (stat7.isDirectory()) {
|
|
364956
364956
|
return null;
|
|
364957
364957
|
}
|
|
364958
364958
|
return (0, import_node_fs33.readFileSync)(fullPath, "utf-8");
|
|
@@ -403654,7 +403654,7 @@ var require_copy = __commonJS({
|
|
|
403654
403654
|
var { mkdirs } = require_mkdirs();
|
|
403655
403655
|
var { pathExists: pathExists2 } = require_path_exists();
|
|
403656
403656
|
var { utimesMillis } = require_utimes();
|
|
403657
|
-
var
|
|
403657
|
+
var stat7 = require_stat();
|
|
403658
403658
|
var { asyncIteratorConcurrentProcess } = require_async6();
|
|
403659
403659
|
async function copy(src, dest, opts = {}) {
|
|
403660
403660
|
if (typeof opts === "function") {
|
|
@@ -403669,8 +403669,8 @@ var require_copy = __commonJS({
|
|
|
403669
403669
|
"fs-extra-WARN0001"
|
|
403670
403670
|
);
|
|
403671
403671
|
}
|
|
403672
|
-
const { srcStat, destStat } = await
|
|
403673
|
-
await
|
|
403672
|
+
const { srcStat, destStat } = await stat7.checkPaths(src, dest, "copy", opts);
|
|
403673
|
+
await stat7.checkParentPaths(src, srcStat, dest, "copy");
|
|
403674
403674
|
const include = await runFilter(src, dest, opts);
|
|
403675
403675
|
if (!include) return;
|
|
403676
403676
|
const destParent = path115.dirname(dest);
|
|
@@ -403730,7 +403730,7 @@ var require_copy = __commonJS({
|
|
|
403730
403730
|
const destItem = path115.join(dest, item.name);
|
|
403731
403731
|
const include = await runFilter(srcItem, destItem, opts);
|
|
403732
403732
|
if (include) {
|
|
403733
|
-
const { destStat: destStat2 } = await
|
|
403733
|
+
const { destStat: destStat2 } = await stat7.checkPaths(srcItem, destItem, "copy", opts);
|
|
403734
403734
|
await getStatsAndPerformCopy(destStat2, srcItem, destItem, opts);
|
|
403735
403735
|
}
|
|
403736
403736
|
});
|
|
@@ -403757,10 +403757,10 @@ var require_copy = __commonJS({
|
|
|
403757
403757
|
resolvedDest = path115.resolve(process.cwd(), resolvedDest);
|
|
403758
403758
|
}
|
|
403759
403759
|
if (resolvedSrc !== resolvedDest) {
|
|
403760
|
-
if (
|
|
403760
|
+
if (stat7.isSrcSubdir(resolvedSrc, resolvedDest)) {
|
|
403761
403761
|
throw new Error(`Cannot copy '${resolvedSrc}' to a subdirectory of itself, '${resolvedDest}'.`);
|
|
403762
403762
|
}
|
|
403763
|
-
if (
|
|
403763
|
+
if (stat7.isSrcSubdir(resolvedDest, resolvedSrc)) {
|
|
403764
403764
|
throw new Error(`Cannot overwrite '${resolvedDest}' with '${resolvedSrc}'.`);
|
|
403765
403765
|
}
|
|
403766
403766
|
}
|
|
@@ -403779,7 +403779,7 @@ var require_copy_sync = __commonJS({
|
|
|
403779
403779
|
var path115 = require("path");
|
|
403780
403780
|
var mkdirsSync = require_mkdirs().mkdirsSync;
|
|
403781
403781
|
var utimesMillisSync = require_utimes().utimesMillisSync;
|
|
403782
|
-
var
|
|
403782
|
+
var stat7 = require_stat();
|
|
403783
403783
|
function copySync(src, dest, opts) {
|
|
403784
403784
|
if (typeof opts === "function") {
|
|
403785
403785
|
opts = { filter: opts };
|
|
@@ -403794,8 +403794,8 @@ var require_copy_sync = __commonJS({
|
|
|
403794
403794
|
"fs-extra-WARN0002"
|
|
403795
403795
|
);
|
|
403796
403796
|
}
|
|
403797
|
-
const { srcStat, destStat } =
|
|
403798
|
-
|
|
403797
|
+
const { srcStat, destStat } = stat7.checkPathsSync(src, dest, "copy", opts);
|
|
403798
|
+
stat7.checkParentPathsSync(src, srcStat, dest, "copy");
|
|
403799
403799
|
if (opts.filter && !opts.filter(src, dest)) return;
|
|
403800
403800
|
const destParent = path115.dirname(dest);
|
|
403801
403801
|
if (!fs32.existsSync(destParent)) mkdirsSync(destParent);
|
|
@@ -403869,7 +403869,7 @@ var require_copy_sync = __commonJS({
|
|
|
403869
403869
|
const srcItem = path115.join(src, item);
|
|
403870
403870
|
const destItem = path115.join(dest, item);
|
|
403871
403871
|
if (opts.filter && !opts.filter(srcItem, destItem)) return;
|
|
403872
|
-
const { destStat } =
|
|
403872
|
+
const { destStat } = stat7.checkPathsSync(srcItem, destItem, "copy", opts);
|
|
403873
403873
|
return getStats(destStat, srcItem, destItem, opts);
|
|
403874
403874
|
}
|
|
403875
403875
|
function onLink(destStat, src, dest, opts) {
|
|
@@ -403891,10 +403891,10 @@ var require_copy_sync = __commonJS({
|
|
|
403891
403891
|
resolvedDest = path115.resolve(process.cwd(), resolvedDest);
|
|
403892
403892
|
}
|
|
403893
403893
|
if (resolvedSrc !== resolvedDest) {
|
|
403894
|
-
if (
|
|
403894
|
+
if (stat7.isSrcSubdir(resolvedSrc, resolvedDest)) {
|
|
403895
403895
|
throw new Error(`Cannot copy '${resolvedSrc}' to a subdirectory of itself, '${resolvedDest}'.`);
|
|
403896
403896
|
}
|
|
403897
|
-
if (
|
|
403897
|
+
if (stat7.isSrcSubdir(resolvedDest, resolvedSrc)) {
|
|
403898
403898
|
throw new Error(`Cannot overwrite '${resolvedDest}' with '${resolvedSrc}'.`);
|
|
403899
403899
|
}
|
|
403900
403900
|
}
|
|
@@ -404500,11 +404500,11 @@ var require_move = __commonJS({
|
|
|
404500
404500
|
var { remove: remove3 } = require_remove3();
|
|
404501
404501
|
var { mkdirp } = require_mkdirs();
|
|
404502
404502
|
var { pathExists: pathExists2 } = require_path_exists();
|
|
404503
|
-
var
|
|
404503
|
+
var stat7 = require_stat();
|
|
404504
404504
|
async function move(src, dest, opts = {}) {
|
|
404505
404505
|
const overwrite = opts.overwrite || opts.clobber || false;
|
|
404506
|
-
const { srcStat, isChangingCase = false } = await
|
|
404507
|
-
await
|
|
404506
|
+
const { srcStat, isChangingCase = false } = await stat7.checkPaths(src, dest, "move", opts);
|
|
404507
|
+
await stat7.checkParentPaths(src, srcStat, dest, "move");
|
|
404508
404508
|
const destParent = path115.dirname(dest);
|
|
404509
404509
|
const parsedParentPath = path115.parse(destParent);
|
|
404510
404510
|
if (parsedParentPath.root !== destParent) {
|
|
@@ -404551,12 +404551,12 @@ var require_move_sync = __commonJS({
|
|
|
404551
404551
|
var copySync = require_copy2().copySync;
|
|
404552
404552
|
var removeSync = require_remove3().removeSync;
|
|
404553
404553
|
var mkdirpSync = require_mkdirs().mkdirpSync;
|
|
404554
|
-
var
|
|
404554
|
+
var stat7 = require_stat();
|
|
404555
404555
|
function moveSync(src, dest, opts) {
|
|
404556
404556
|
opts = opts || {};
|
|
404557
404557
|
const overwrite = opts.overwrite || opts.clobber || false;
|
|
404558
|
-
const { srcStat, isChangingCase = false } =
|
|
404559
|
-
|
|
404558
|
+
const { srcStat, isChangingCase = false } = stat7.checkPathsSync(src, dest, "move", opts);
|
|
404559
|
+
stat7.checkParentPathsSync(src, srcStat, dest, "move");
|
|
404560
404560
|
if (!isParentRoot(dest)) mkdirpSync(path115.dirname(dest));
|
|
404561
404561
|
return doRename(src, dest, overwrite, isChangingCase);
|
|
404562
404562
|
}
|
|
@@ -441894,8 +441894,8 @@ var require_file2 = __commonJS({
|
|
|
441894
441894
|
debug9("Normalized pathname: %o", filepath);
|
|
441895
441895
|
const fdHandle = await fs_1.promises.open(filepath, flags2, mode);
|
|
441896
441896
|
const fd2 = fdHandle.fd;
|
|
441897
|
-
const
|
|
441898
|
-
if (cache2 && cache2.stat &&
|
|
441897
|
+
const stat7 = await fdHandle.stat();
|
|
441898
|
+
if (cache2 && cache2.stat && stat7 && isNotModified(cache2.stat, stat7)) {
|
|
441899
441899
|
await fdHandle.close();
|
|
441900
441900
|
throw new notmodified_1.default();
|
|
441901
441901
|
}
|
|
@@ -441904,7 +441904,7 @@ var require_file2 = __commonJS({
|
|
|
441904
441904
|
...opts,
|
|
441905
441905
|
fd: fd2
|
|
441906
441906
|
});
|
|
441907
|
-
rs6.stat =
|
|
441907
|
+
rs6.stat = stat7;
|
|
441908
441908
|
return rs6;
|
|
441909
441909
|
} catch (err) {
|
|
441910
441910
|
if (err.code === "ENOENT") {
|
|
@@ -467849,37 +467849,37 @@ var require_tar_fs = __commonJS({
|
|
|
467849
467849
|
pack2.entry(header, onnextentry);
|
|
467850
467850
|
});
|
|
467851
467851
|
}
|
|
467852
|
-
function onstat(err, filename,
|
|
467852
|
+
function onstat(err, filename, stat7) {
|
|
467853
467853
|
if (pack2.destroyed) return;
|
|
467854
467854
|
if (err) return pack2.destroy(err);
|
|
467855
467855
|
if (!filename) {
|
|
467856
467856
|
if (opts.finalize !== false) pack2.finalize();
|
|
467857
467857
|
return finish(pack2);
|
|
467858
467858
|
}
|
|
467859
|
-
if (
|
|
467859
|
+
if (stat7.isSocket()) return onnextentry();
|
|
467860
467860
|
let header = {
|
|
467861
467861
|
name: normalize13(filename),
|
|
467862
|
-
mode: (
|
|
467863
|
-
mtime:
|
|
467864
|
-
size:
|
|
467862
|
+
mode: (stat7.mode | (stat7.isDirectory() ? dmode : fmode)) & umask,
|
|
467863
|
+
mtime: stat7.mtime,
|
|
467864
|
+
size: stat7.size,
|
|
467865
467865
|
type: "file",
|
|
467866
|
-
uid:
|
|
467867
|
-
gid:
|
|
467866
|
+
uid: stat7.uid,
|
|
467867
|
+
gid: stat7.gid
|
|
467868
467868
|
};
|
|
467869
|
-
if (
|
|
467869
|
+
if (stat7.isDirectory()) {
|
|
467870
467870
|
header.size = 0;
|
|
467871
467871
|
header.type = "directory";
|
|
467872
467872
|
header = map16(header) || header;
|
|
467873
467873
|
return pack2.entry(header, onnextentry);
|
|
467874
467874
|
}
|
|
467875
|
-
if (
|
|
467875
|
+
if (stat7.isSymbolicLink()) {
|
|
467876
467876
|
header.size = 0;
|
|
467877
467877
|
header.type = "symlink";
|
|
467878
467878
|
header = map16(header) || header;
|
|
467879
467879
|
return onsymlink(filename, header);
|
|
467880
467880
|
}
|
|
467881
467881
|
header = map16(header) || header;
|
|
467882
|
-
if (!
|
|
467882
|
+
if (!stat7.isFile()) {
|
|
467883
467883
|
if (strict) return pack2.destroy(new Error("unsupported type for " + filename));
|
|
467884
467884
|
return onnextentry();
|
|
467885
467885
|
}
|
|
@@ -467954,7 +467954,7 @@ var require_tar_fs = __commonJS({
|
|
|
467954
467954
|
uid: header.uid,
|
|
467955
467955
|
gid: header.gid,
|
|
467956
467956
|
mode: header.mode
|
|
467957
|
-
},
|
|
467957
|
+
}, stat7);
|
|
467958
467958
|
}
|
|
467959
467959
|
mkdirfix(dir, {
|
|
467960
467960
|
fs: xfs,
|
|
@@ -467980,7 +467980,7 @@ var require_tar_fs = __commonJS({
|
|
|
467980
467980
|
next2();
|
|
467981
467981
|
});
|
|
467982
467982
|
});
|
|
467983
|
-
function
|
|
467983
|
+
function stat7(err) {
|
|
467984
467984
|
if (err) return next2(err);
|
|
467985
467985
|
utimes(name2, header, function(err2) {
|
|
467986
467986
|
if (err2) return next2(err2);
|
|
@@ -467996,7 +467996,7 @@ var require_tar_fs = __commonJS({
|
|
|
467996
467996
|
validateNotSymlink(xfs, dst, path115.join(cwd2, "."), function(err, valid2) {
|
|
467997
467997
|
if (err) return next2(err);
|
|
467998
467998
|
if (!valid2 && validateSymLinks) return next2(new Error(name2 + " is not a valid symlink"));
|
|
467999
|
-
xfs.symlink(header.linkname, name2,
|
|
467999
|
+
xfs.symlink(header.linkname, name2, stat7);
|
|
468000
468000
|
});
|
|
468001
468001
|
});
|
|
468002
468002
|
}
|
|
@@ -468011,7 +468011,7 @@ var require_tar_fs = __commonJS({
|
|
|
468011
468011
|
stream5 = xfs.createReadStream(dst);
|
|
468012
468012
|
return onfile();
|
|
468013
468013
|
}
|
|
468014
|
-
|
|
468014
|
+
stat7(err2);
|
|
468015
468015
|
});
|
|
468016
468016
|
});
|
|
468017
468017
|
});
|
|
@@ -468027,7 +468027,7 @@ var require_tar_fs = __commonJS({
|
|
|
468027
468027
|
});
|
|
468028
468028
|
pump(rs6, ws5, function(err) {
|
|
468029
468029
|
if (err) return next2(err);
|
|
468030
|
-
ws5.on("close",
|
|
468030
|
+
ws5.on("close", stat7);
|
|
468031
468031
|
});
|
|
468032
468032
|
}
|
|
468033
468033
|
}
|
|
@@ -468096,23 +468096,23 @@ var require_tar_fs = __commonJS({
|
|
|
468096
468096
|
function normalize13(name2) {
|
|
468097
468097
|
return win322 ? name2.replace(/\\/g, "/").replace(/[:?<>|]/g, "_") : name2;
|
|
468098
468098
|
}
|
|
468099
|
-
function statAll(fs33,
|
|
468099
|
+
function statAll(fs33, stat7, cwd2, ignore4, entries24, sort) {
|
|
468100
468100
|
if (!entries24) entries24 = ["."];
|
|
468101
468101
|
const queue = entries24.slice(0);
|
|
468102
468102
|
return function loop(callback) {
|
|
468103
468103
|
if (!queue.length) return callback(null);
|
|
468104
468104
|
const next2 = queue.shift();
|
|
468105
468105
|
const nextAbs = path115.join(cwd2, next2);
|
|
468106
|
-
|
|
468106
|
+
stat7.call(fs33, nextAbs, function(err, stat8) {
|
|
468107
468107
|
if (err) return callback(entries24.indexOf(next2) === -1 && err.code === "ENOENT" ? null : err);
|
|
468108
|
-
if (!
|
|
468108
|
+
if (!stat8.isDirectory()) return callback(null, next2, stat8);
|
|
468109
468109
|
fs33.readdir(nextAbs, function(err2, files) {
|
|
468110
468110
|
if (err2) return callback(err2);
|
|
468111
468111
|
if (sort) files.sort();
|
|
468112
468112
|
for (let i9 = 0; i9 < files.length; i9++) {
|
|
468113
468113
|
if (!ignore4(path115.join(cwd2, next2, files[i9]))) queue.push(path115.join(next2, files[i9]));
|
|
468114
468114
|
}
|
|
468115
|
-
callback(null, next2,
|
|
468115
|
+
callback(null, next2, stat8);
|
|
468116
468116
|
});
|
|
468117
468117
|
});
|
|
468118
468118
|
};
|
|
@@ -469737,8 +469737,8 @@ var require_util9 = __commonJS({
|
|
|
469737
469737
|
exports2.removeUndefinedValuesFromObject = removeUndefinedValuesFromObject;
|
|
469738
469738
|
async function isDirectory(path115) {
|
|
469739
469739
|
try {
|
|
469740
|
-
const
|
|
469741
|
-
return
|
|
469740
|
+
const stat7 = await fs_1.promises.stat(path115);
|
|
469741
|
+
return stat7.isDirectory();
|
|
469742
469742
|
} catch (e8) {
|
|
469743
469743
|
if (e8.code === "ENOENT") {
|
|
469744
469744
|
return false;
|
|
@@ -469749,8 +469749,8 @@ var require_util9 = __commonJS({
|
|
|
469749
469749
|
exports2.isDirectory = isDirectory;
|
|
469750
469750
|
function isDirectorySync(path115) {
|
|
469751
469751
|
try {
|
|
469752
|
-
const
|
|
469753
|
-
return
|
|
469752
|
+
const stat7 = fs_1.default.statSync(path115);
|
|
469753
|
+
return stat7.isDirectory();
|
|
469754
469754
|
} catch (e8) {
|
|
469755
469755
|
if (e8.code === "ENOENT") {
|
|
469756
469756
|
return false;
|
|
@@ -597271,7 +597271,7 @@ function checkType(type8) {
|
|
|
597271
597271
|
}
|
|
597272
597272
|
throw new Error(`Invalid type specified: ${type8}`);
|
|
597273
597273
|
}
|
|
597274
|
-
var matchType = (type8,
|
|
597274
|
+
var matchType = (type8, stat7) => stat7[typeMappings[type8]]();
|
|
597275
597275
|
var toPath2 = (urlOrPath) => urlOrPath instanceof URL ? (0, import_node_url3.fileURLToPath)(urlOrPath) : urlOrPath;
|
|
597276
597276
|
async function locatePath(paths, {
|
|
597277
597277
|
cwd: cwd2 = import_node_process2.default.cwd(),
|
|
@@ -597285,8 +597285,8 @@ async function locatePath(paths, {
|
|
|
597285
597285
|
const statFunction = allowSymlinks ? import_node_fs4.promises.stat : import_node_fs4.promises.lstat;
|
|
597286
597286
|
return pLocate(paths, async (path_) => {
|
|
597287
597287
|
try {
|
|
597288
|
-
const
|
|
597289
|
-
return matchType(type8,
|
|
597288
|
+
const stat7 = await statFunction(import_node_path7.default.resolve(cwd2, path_));
|
|
597289
|
+
return matchType(type8, stat7);
|
|
597290
597290
|
} catch {
|
|
597291
597291
|
return false;
|
|
597292
597292
|
}
|
|
@@ -669123,7 +669123,7 @@ var AccessTokenPosthogManager = class {
|
|
|
669123
669123
|
properties: {
|
|
669124
669124
|
...event,
|
|
669125
669125
|
...event.properties,
|
|
669126
|
-
version: "5.
|
|
669126
|
+
version: "5.37.0",
|
|
669127
669127
|
usingAccessToken: true,
|
|
669128
669128
|
...getRunIdProperties()
|
|
669129
669129
|
}
|
|
@@ -669187,7 +669187,7 @@ var UserPosthogManager = class {
|
|
|
669187
669187
|
distinctId: this.userId ?? await this.getPersistedDistinctId(),
|
|
669188
669188
|
event: "CLI",
|
|
669189
669189
|
properties: {
|
|
669190
|
-
version: "5.
|
|
669190
|
+
version: "5.37.0",
|
|
669191
669191
|
...event,
|
|
669192
669192
|
...event.properties,
|
|
669193
669193
|
usingAccessToken: false,
|
|
@@ -671956,8 +671956,8 @@ var VersionsCache = class {
|
|
|
671956
671956
|
total += await this.directorySize(entryPath);
|
|
671957
671957
|
} else if (entry.isFile()) {
|
|
671958
671958
|
try {
|
|
671959
|
-
const
|
|
671960
|
-
total +=
|
|
671959
|
+
const stat7 = await import_promises53.default.stat(entryPath);
|
|
671960
|
+
total += stat7.size;
|
|
671961
671961
|
} catch {
|
|
671962
671962
|
}
|
|
671963
671963
|
}
|
|
@@ -833645,8 +833645,8 @@ var FileTokenizer = class _FileTokenizer extends AbstractTokenizer {
|
|
|
833645
833645
|
*/
|
|
833646
833646
|
static async fromFile(sourceFilePath) {
|
|
833647
833647
|
const fileHandle = await (0, import_promises73.open)(sourceFilePath, "r");
|
|
833648
|
-
const
|
|
833649
|
-
return new _FileTokenizer(fileHandle, { fileInfo: { path: sourceFilePath, size:
|
|
833648
|
+
const stat7 = await fileHandle.stat();
|
|
833649
|
+
return new _FileTokenizer(fileHandle, { fileInfo: { path: sourceFilePath, size: stat7.size } });
|
|
833650
833650
|
}
|
|
833651
833651
|
constructor(fileHandle, options2) {
|
|
833652
833652
|
super(options2);
|
|
@@ -859868,16 +859868,16 @@ var readdir13 = (rootPath, options2) => {
|
|
|
859868
859868
|
return;
|
|
859869
859869
|
populateResultFromSymlink(subPath, depth + 1);
|
|
859870
859870
|
};
|
|
859871
|
-
const handleStat = (dirmap, rootPath2, name2,
|
|
859871
|
+
const handleStat = (dirmap, rootPath2, name2, stat7, depth) => {
|
|
859872
859872
|
if (signal.aborted)
|
|
859873
859873
|
return;
|
|
859874
859874
|
if (isIgnored2(rootPath2))
|
|
859875
859875
|
return;
|
|
859876
|
-
if (
|
|
859876
|
+
if (stat7.isDirectory()) {
|
|
859877
859877
|
handleDirectory(dirmap, rootPath2, name2, depth);
|
|
859878
|
-
} else if (
|
|
859878
|
+
} else if (stat7.isFile()) {
|
|
859879
859879
|
handleFile(dirmap, rootPath2, name2);
|
|
859880
|
-
} else if (
|
|
859880
|
+
} else if (stat7.isSymbolicLink()) {
|
|
859881
859881
|
handleSymlink(dirmap, rootPath2, name2, depth);
|
|
859882
859882
|
}
|
|
859883
859883
|
};
|
|
@@ -859932,14 +859932,14 @@ var readdir13 = (rootPath, options2) => {
|
|
|
859932
859932
|
return decrement();
|
|
859933
859933
|
if (signal.aborted)
|
|
859934
859934
|
return decrement();
|
|
859935
|
-
import_node_fs16.default.stat(realPath, (error51,
|
|
859935
|
+
import_node_fs16.default.stat(realPath, (error51, stat7) => {
|
|
859936
859936
|
if (error51)
|
|
859937
859937
|
return decrement();
|
|
859938
859938
|
if (signal.aborted)
|
|
859939
859939
|
return decrement();
|
|
859940
859940
|
const name2 = import_node_path21.default.basename(realPath);
|
|
859941
859941
|
const dirmap = map16[rootPath2] = { directories: [], directoriesNames: /* @__PURE__ */ new Set(), directoriesNamesToPaths: {}, files: [], filesNames: /* @__PURE__ */ new Set(), filesNamesToPaths: {}, symlinks: [], symlinksNames: /* @__PURE__ */ new Set(), symlinksNamesToPaths: {} };
|
|
859942
|
-
handleStat(dirmap, realPath, name2,
|
|
859942
|
+
handleStat(dirmap, realPath, name2, stat7, depth);
|
|
859943
859943
|
decrement();
|
|
859944
859944
|
});
|
|
859945
859945
|
});
|
|
@@ -861053,7 +861053,7 @@ var LOCAL_STORAGE_FOLDER4 = ".fern-dev";
|
|
|
861053
861053
|
var LOGS_FOLDER_NAME = "logs";
|
|
861054
861054
|
var MAX_LOGS_DIR_SIZE_BYTES = 100 * 1024 * 1024;
|
|
861055
861055
|
function getCliSource() {
|
|
861056
|
-
const version7 = "5.
|
|
861056
|
+
const version7 = "5.37.0";
|
|
861057
861057
|
return `cli@${version7}`;
|
|
861058
861058
|
}
|
|
861059
861059
|
var DebugLogger = class {
|
|
@@ -861489,8 +861489,8 @@ function resolveWindowsSymlinks(outputDir, symlinks, logger4, onProgress) {
|
|
|
861489
861489
|
}
|
|
861490
861490
|
try {
|
|
861491
861491
|
(0, import_fs28.mkdirSync)(import_path67.default.dirname(fullSymlinkPath), { recursive: true });
|
|
861492
|
-
const
|
|
861493
|
-
if (
|
|
861492
|
+
const stat7 = (0, import_fs28.lstatSync)(sourcePath);
|
|
861493
|
+
if (stat7.isDirectory()) {
|
|
861494
861494
|
(0, import_fs28.symlinkSync)(sourcePath, fullSymlinkPath, "junction");
|
|
861495
861495
|
junctions++;
|
|
861496
861496
|
} else {
|
|
@@ -879925,7 +879925,7 @@ var LegacyDocsPublisher = class {
|
|
|
879925
879925
|
previewId,
|
|
879926
879926
|
disableTemplates: void 0,
|
|
879927
879927
|
skipUpload,
|
|
879928
|
-
cliVersion: "5.
|
|
879928
|
+
cliVersion: "5.37.0",
|
|
879929
879929
|
loginCommand: "fern auth login"
|
|
879930
879930
|
});
|
|
879931
879931
|
if (taskContext.getResult() === TaskResult.Failure) {
|
|
@@ -882566,8 +882566,8 @@ var ForgetCommand = class {
|
|
|
882566
882566
|
}
|
|
882567
882567
|
context3.stderr.info(`${matched.length} patch(es) matched:`);
|
|
882568
882568
|
for (const patch5 of matched) {
|
|
882569
|
-
const
|
|
882570
|
-
context3.stderr.info(` ${patch5.id}: ${patch5.message} (${
|
|
882569
|
+
const stat7 = `+${patch5.diffstat.additions}/-${patch5.diffstat.deletions}`;
|
|
882570
|
+
context3.stderr.info(` ${patch5.id}: ${patch5.message} (${stat7})`);
|
|
882571
882571
|
}
|
|
882572
882572
|
if (dryRun) {
|
|
882573
882573
|
context3.stderr.info("\nDry run \u2014 no patches removed.");
|
|
@@ -932235,8 +932235,15 @@ var LocalTaskHandler = class {
|
|
|
932235
932235
|
}
|
|
932236
932236
|
}
|
|
932237
932237
|
async copySnippetJSON({ absolutePathToTmpSnippetJSON, absolutePathToLocalSnippetJSON }) {
|
|
932238
|
+
const outcome = await copySnippetJsonIfNonEmpty({
|
|
932239
|
+
src: absolutePathToTmpSnippetJSON,
|
|
932240
|
+
dest: absolutePathToLocalSnippetJSON
|
|
932241
|
+
});
|
|
932242
|
+
if (outcome === "skipped-empty") {
|
|
932243
|
+
this.context.logger.debug(`Skipping empty snippet.json copy from ${absolutePathToTmpSnippetJSON}`);
|
|
932244
|
+
return;
|
|
932245
|
+
}
|
|
932238
932246
|
this.context.logger.debug(`Copying generated snippets to ${absolutePathToLocalSnippetJSON}`);
|
|
932239
|
-
await (0, import_promises120.cp)(absolutePathToTmpSnippetJSON, absolutePathToLocalSnippetJSON);
|
|
932240
932247
|
}
|
|
932241
932248
|
/**
|
|
932242
932249
|
* Checks whether the generated output is missing README.md.
|
|
@@ -932376,6 +932383,14 @@ var LocalTaskHandler = class {
|
|
|
932376
932383
|
return diffFile;
|
|
932377
932384
|
}
|
|
932378
932385
|
};
|
|
932386
|
+
async function copySnippetJsonIfNonEmpty({ src, dest }) {
|
|
932387
|
+
const tmpStat = await (0, import_promises120.stat)(src);
|
|
932388
|
+
if (tmpStat.size === 0) {
|
|
932389
|
+
return "skipped-empty";
|
|
932390
|
+
}
|
|
932391
|
+
await (0, import_promises120.cp)(src, dest);
|
|
932392
|
+
return "copied";
|
|
932393
|
+
}
|
|
932379
932394
|
|
|
932380
932395
|
// ../generation/local-generation/local-workspace-runner/lib/rawSpecs.js
|
|
932381
932396
|
init_lib4();
|
|
@@ -932452,7 +932467,8 @@ async function resolveOpenAPIOrAsyncAPI({ spec, hostOutputDir, containerBaseDir,
|
|
|
932452
932467
|
context3.logger.debug(`Resolved ${isAsync2 ? "AsyncAPI" : "OpenAPI"} spec ${spec.absoluteFilepath} -> ${filename}`);
|
|
932453
932468
|
return {
|
|
932454
932469
|
type: isAsync2 ? "asyncapi" : "openapi",
|
|
932455
|
-
specPath: toContainerPath(filename, containerBaseDir)
|
|
932470
|
+
specPath: toContainerPath(filename, containerBaseDir),
|
|
932471
|
+
namespace: spec.namespace
|
|
932456
932472
|
};
|
|
932457
932473
|
}
|
|
932458
932474
|
async function resolveOpenRPC({ spec, hostOutputDir, containerBaseDir, context: context3, index: index3 }) {
|
|
@@ -932483,7 +932499,8 @@ async function resolveOpenRPC({ spec, hostOutputDir, containerBaseDir, context:
|
|
|
932483
932499
|
context3.logger.debug(`Resolved OpenRPC spec ${spec.absoluteFilepath} -> ${filename}`);
|
|
932484
932500
|
return {
|
|
932485
932501
|
type: "openrpc",
|
|
932486
|
-
specPath: toContainerPath(filename, containerBaseDir)
|
|
932502
|
+
specPath: toContainerPath(filename, containerBaseDir),
|
|
932503
|
+
namespace: spec.namespace
|
|
932487
932504
|
};
|
|
932488
932505
|
}
|
|
932489
932506
|
async function copyProtobuf({ spec, hostOutputDir, containerBaseDir, index: index3 }) {
|
|
@@ -932511,7 +932528,8 @@ async function copyGraphQL({ spec, hostOutputDir, containerBaseDir, index: index
|
|
|
932511
932528
|
await (0, import_promises121.copyFile)(spec.absoluteFilepath, import_path92.default.join(hostOutputDir, filename));
|
|
932512
932529
|
const entry = {
|
|
932513
932530
|
type: "graphql",
|
|
932514
|
-
specPath: toContainerPath(filename, containerBaseDir)
|
|
932531
|
+
specPath: toContainerPath(filename, containerBaseDir),
|
|
932532
|
+
namespace: spec.namespace
|
|
932515
932533
|
};
|
|
932516
932534
|
const overrides = normalizeOverrides(spec.absoluteFilepathToOverrides);
|
|
932517
932535
|
if (overrides.length > 0) {
|
|
@@ -954783,7 +954801,7 @@ function getAutomationContextFromEnv() {
|
|
|
954783
954801
|
config_branch: process.env.FERN_CONFIG_BRANCH,
|
|
954784
954802
|
config_pr_number: process.env.FERN_CONFIG_PR_NUMBER,
|
|
954785
954803
|
trigger: process.env.GITHUB_EVENT_NAME,
|
|
954786
|
-
cli_version: "5.
|
|
954804
|
+
cli_version: "5.37.0"
|
|
954787
954805
|
};
|
|
954788
954806
|
}
|
|
954789
954807
|
function isAutomationMode() {
|
|
@@ -955609,7 +955627,7 @@ var CliContext = class _CliContext {
|
|
|
955609
955627
|
if (false) {
|
|
955610
955628
|
this.logger.error("CLI_VERSION is not defined");
|
|
955611
955629
|
}
|
|
955612
|
-
return "5.
|
|
955630
|
+
return "5.37.0";
|
|
955613
955631
|
}
|
|
955614
955632
|
getCliName() {
|
|
955615
955633
|
if (false) {
|
|
@@ -973328,8 +973346,8 @@ function addReplayForgetCommand(cli, cliContext) {
|
|
|
973328
973346
|
}
|
|
973329
973347
|
cliContext.logger.info(`${matched.length} patch(es) matched:`);
|
|
973330
973348
|
for (const patch5 of matched) {
|
|
973331
|
-
const
|
|
973332
|
-
cliContext.logger.info(` ${patch5.id}: ${patch5.message} (${
|
|
973349
|
+
const stat7 = `+${patch5.diffstat.additions}/-${patch5.diffstat.deletions}`;
|
|
973350
|
+
cliContext.logger.info(` ${patch5.id}: ${patch5.message} (${stat7})`);
|
|
973333
973351
|
}
|
|
973334
973352
|
if (dryRun) {
|
|
973335
973353
|
cliContext.logger.info("\nDry run \u2014 no patches removed.");
|
package/package.json
CHANGED