@fern-api/fern-api-dev 3.32.0-4-g29e87be1fe → 3.32.0-5-g3b35967bca
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 +177 -171
- package/package.json +1 -1
package/cli.cjs
CHANGED
|
@@ -11441,15 +11441,15 @@ var require_tmp = __commonJS({
|
|
|
11441
11441
|
"../../../node_modules/.pnpm/tmp@0.2.5/node_modules/tmp/lib/tmp.js"(exports2, module2) {
|
|
11442
11442
|
"use strict";
|
|
11443
11443
|
var fs23 = require("fs");
|
|
11444
|
-
var
|
|
11444
|
+
var os18 = require("os");
|
|
11445
11445
|
var path68 = require("path");
|
|
11446
11446
|
var crypto5 = require("crypto");
|
|
11447
|
-
var _c4 = { fs: fs23.constants, os:
|
|
11447
|
+
var _c4 = { fs: fs23.constants, os: os18.constants };
|
|
11448
11448
|
var RANDOM_CHARS = "0123456789ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz";
|
|
11449
11449
|
var TEMPLATE_PATTERN = /XXXXXX/;
|
|
11450
11450
|
var DEFAULT_TRIES = 3;
|
|
11451
11451
|
var CREATE_FLAGS = (_c4.O_CREAT || _c4.fs.O_CREAT) | (_c4.O_EXCL || _c4.fs.O_EXCL) | (_c4.O_RDWR || _c4.fs.O_RDWR);
|
|
11452
|
-
var IS_WIN32 =
|
|
11452
|
+
var IS_WIN32 = os18.platform() === "win32";
|
|
11453
11453
|
var EBADF = _c4.EBADF || _c4.os.errno.EBADF;
|
|
11454
11454
|
var ENOENT2 = _c4.ENOENT || _c4.os.errno.ENOENT;
|
|
11455
11455
|
var DIR_MODE = 448;
|
|
@@ -11772,10 +11772,10 @@ var require_tmp = __commonJS({
|
|
|
11772
11772
|
_gracefulCleanup = true;
|
|
11773
11773
|
}
|
|
11774
11774
|
function _getTmpDir(options2, cb2) {
|
|
11775
|
-
return fs23.realpath(options2 && options2.tmpdir ||
|
|
11775
|
+
return fs23.realpath(options2 && options2.tmpdir || os18.tmpdir(), cb2);
|
|
11776
11776
|
}
|
|
11777
11777
|
function _getTmpDirSync(options2) {
|
|
11778
|
-
return fs23.realpathSync(options2 && options2.tmpdir ||
|
|
11778
|
+
return fs23.realpathSync(options2 && options2.tmpdir || os18.tmpdir());
|
|
11779
11779
|
}
|
|
11780
11780
|
process.addListener(EXIT3, _garbageCollector);
|
|
11781
11781
|
Object.defineProperty(module2.exports, "tmpdir", {
|
|
@@ -32832,7 +32832,7 @@ var require_has_flag = __commonJS({
|
|
|
32832
32832
|
var require_supports_color = __commonJS({
|
|
32833
32833
|
"../../../node_modules/.pnpm/supports-color@4.5.0/node_modules/supports-color/index.js"(exports2, module2) {
|
|
32834
32834
|
"use strict";
|
|
32835
|
-
var
|
|
32835
|
+
var os18 = require("os");
|
|
32836
32836
|
var hasFlag2 = require_has_flag();
|
|
32837
32837
|
var env5 = process.env;
|
|
32838
32838
|
var support = (level) => {
|
|
@@ -32863,7 +32863,7 @@ var require_supports_color = __commonJS({
|
|
|
32863
32863
|
return 0;
|
|
32864
32864
|
}
|
|
32865
32865
|
if (process.platform === "win32") {
|
|
32866
|
-
const osRelease =
|
|
32866
|
+
const osRelease = os18.release().split(".");
|
|
32867
32867
|
if (Number(process.versions.node.split(".")[0]) >= 8 && Number(osRelease[0]) >= 10 && Number(osRelease[2]) >= 10586) {
|
|
32868
32868
|
return 2;
|
|
32869
32869
|
}
|
|
@@ -56294,7 +56294,7 @@ var require_polyfills = __commonJS({
|
|
|
56294
56294
|
var constants = require("constants");
|
|
56295
56295
|
var origCwd = process.cwd;
|
|
56296
56296
|
var cwd2 = null;
|
|
56297
|
-
var
|
|
56297
|
+
var platform = process.env.GRACEFUL_FS_PLATFORM || process.platform;
|
|
56298
56298
|
process.cwd = function() {
|
|
56299
56299
|
if (!cwd2)
|
|
56300
56300
|
cwd2 = origCwd.call(process);
|
|
@@ -56353,7 +56353,7 @@ var require_polyfills = __commonJS({
|
|
|
56353
56353
|
fs23.lchownSync = function() {
|
|
56354
56354
|
};
|
|
56355
56355
|
}
|
|
56356
|
-
if (
|
|
56356
|
+
if (platform === "win32") {
|
|
56357
56357
|
fs23.rename = typeof fs23.rename !== "function" ? fs23.rename : (function(fs$rename) {
|
|
56358
56358
|
function rename3(from4, to7, cb2) {
|
|
56359
56359
|
var start2 = Date.now();
|
|
@@ -78589,7 +78589,7 @@ var require_has_flag2 = __commonJS({
|
|
|
78589
78589
|
var require_supports_color2 = __commonJS({
|
|
78590
78590
|
"../../../node_modules/.pnpm/supports-color@7.2.0/node_modules/supports-color/index.js"(exports2, module2) {
|
|
78591
78591
|
"use strict";
|
|
78592
|
-
var
|
|
78592
|
+
var os18 = require("os");
|
|
78593
78593
|
var tty2 = require("tty");
|
|
78594
78594
|
var hasFlag2 = require_has_flag2();
|
|
78595
78595
|
var { env: env5 } = process;
|
|
@@ -78637,7 +78637,7 @@ var require_supports_color2 = __commonJS({
|
|
|
78637
78637
|
return min;
|
|
78638
78638
|
}
|
|
78639
78639
|
if (process.platform === "win32") {
|
|
78640
|
-
const osRelease =
|
|
78640
|
+
const osRelease = os18.release().split(".");
|
|
78641
78641
|
if (Number(osRelease[0]) >= 10 && Number(osRelease[2]) >= 10586) {
|
|
78642
78642
|
return Number(osRelease[2]) >= 14931 ? 3 : 2;
|
|
78643
78643
|
}
|
|
@@ -95125,14 +95125,14 @@ var require_is_docker = __commonJS({
|
|
|
95125
95125
|
var require_is_wsl = __commonJS({
|
|
95126
95126
|
"../../../node_modules/.pnpm/is-wsl@2.2.0/node_modules/is-wsl/index.js"(exports2, module2) {
|
|
95127
95127
|
"use strict";
|
|
95128
|
-
var
|
|
95128
|
+
var os18 = require("os");
|
|
95129
95129
|
var fs23 = require("fs");
|
|
95130
95130
|
var isDocker = require_is_docker();
|
|
95131
95131
|
var isWsl = () => {
|
|
95132
95132
|
if (process.platform !== "linux") {
|
|
95133
95133
|
return false;
|
|
95134
95134
|
}
|
|
95135
|
-
if (
|
|
95135
|
+
if (os18.release().toLowerCase().includes("microsoft")) {
|
|
95136
95136
|
if (isDocker()) {
|
|
95137
95137
|
return false;
|
|
95138
95138
|
}
|
|
@@ -95186,7 +95186,7 @@ var require_open = __commonJS({
|
|
|
95186
95186
|
var isDocker = require_is_docker();
|
|
95187
95187
|
var defineLazyProperty = require_define_lazy_prop();
|
|
95188
95188
|
var localXdgOpenPath = path68.join(__dirname, "xdg-open");
|
|
95189
|
-
var { platform
|
|
95189
|
+
var { platform, arch } = process;
|
|
95190
95190
|
var hasContainerEnv = () => {
|
|
95191
95191
|
try {
|
|
95192
95192
|
fs23.statSync("/run/.containerenv");
|
|
@@ -95268,7 +95268,7 @@ var require_open = __commonJS({
|
|
|
95268
95268
|
let command;
|
|
95269
95269
|
const cliArguments = [];
|
|
95270
95270
|
const childProcessOptions = {};
|
|
95271
|
-
if (
|
|
95271
|
+
if (platform === "darwin") {
|
|
95272
95272
|
command = "open";
|
|
95273
95273
|
if (options2.wait) {
|
|
95274
95274
|
cliArguments.push("--wait-apps");
|
|
@@ -95282,7 +95282,7 @@ var require_open = __commonJS({
|
|
|
95282
95282
|
if (app) {
|
|
95283
95283
|
cliArguments.push("-a", app);
|
|
95284
95284
|
}
|
|
95285
|
-
} else if (
|
|
95285
|
+
} else if (platform === "win32" || isWsl && !isInsideContainer() && !app) {
|
|
95286
95286
|
const mountPoint = await getWslDrivesMountPoint();
|
|
95287
95287
|
command = isWsl ? `${mountPoint}c/Windows/System32/WindowsPowerShell/v1.0/powershell.exe` : `${process.env.SYSTEMROOT}\\System32\\WindowsPowerShell\\v1.0\\powershell`;
|
|
95288
95288
|
cliArguments.push(
|
|
@@ -95323,7 +95323,7 @@ var require_open = __commonJS({
|
|
|
95323
95323
|
exeLocalXdgOpen = true;
|
|
95324
95324
|
} catch {
|
|
95325
95325
|
}
|
|
95326
|
-
const useSystemXdgOpen = process.versions.electron ||
|
|
95326
|
+
const useSystemXdgOpen = process.versions.electron || platform === "android" || isBundled || !exeLocalXdgOpen;
|
|
95327
95327
|
command = useSystemXdgOpen ? "xdg-open" : localXdgOpenPath;
|
|
95328
95328
|
}
|
|
95329
95329
|
if (appArguments.length > 0) {
|
|
@@ -95337,7 +95337,7 @@ var require_open = __commonJS({
|
|
|
95337
95337
|
if (options2.target) {
|
|
95338
95338
|
cliArguments.push(options2.target);
|
|
95339
95339
|
}
|
|
95340
|
-
if (
|
|
95340
|
+
if (platform === "darwin" && appArguments.length > 0) {
|
|
95341
95341
|
cliArguments.push("--args", ...appArguments);
|
|
95342
95342
|
}
|
|
95343
95343
|
const subprocess = childProcess2.spawn(command, cliArguments, childProcessOptions);
|
|
@@ -95391,12 +95391,12 @@ var require_open = __commonJS({
|
|
|
95391
95391
|
}
|
|
95392
95392
|
return archBinary;
|
|
95393
95393
|
}
|
|
95394
|
-
function detectPlatformBinary({ [
|
|
95394
|
+
function detectPlatformBinary({ [platform]: platformBinary }, { wsl }) {
|
|
95395
95395
|
if (wsl && isWsl) {
|
|
95396
95396
|
return detectArchBinary(wsl);
|
|
95397
95397
|
}
|
|
95398
95398
|
if (!platformBinary) {
|
|
95399
|
-
throw new Error(`${
|
|
95399
|
+
throw new Error(`${platform} is not supported`);
|
|
95400
95400
|
}
|
|
95401
95401
|
return detectArchBinary(platformBinary);
|
|
95402
95402
|
}
|
|
@@ -137409,22 +137409,22 @@ var init_Page2 = __esm({
|
|
|
137409
137409
|
async setUserAgent(userAgentOrOptions, userAgentMetadata) {
|
|
137410
137410
|
let userAgent4;
|
|
137411
137411
|
let metadata;
|
|
137412
|
-
let
|
|
137412
|
+
let platform;
|
|
137413
137413
|
if (typeof userAgentOrOptions === "string") {
|
|
137414
137414
|
userAgent4 = userAgentOrOptions;
|
|
137415
137415
|
metadata = userAgentMetadata;
|
|
137416
137416
|
} else {
|
|
137417
137417
|
userAgent4 = userAgentOrOptions.userAgent ?? await this.#browserContext.browser().userAgent();
|
|
137418
137418
|
metadata = userAgentOrOptions.userAgentMetadata;
|
|
137419
|
-
|
|
137419
|
+
platform = userAgentOrOptions.platform;
|
|
137420
137420
|
}
|
|
137421
|
-
if (!this.#browserContext.browser().cdpSupported && (metadata ||
|
|
137421
|
+
if (!this.#browserContext.browser().cdpSupported && (metadata || platform)) {
|
|
137422
137422
|
throw new UnsupportedOperation("Current Browser does not support `userAgentMetadata` or `platform`");
|
|
137423
|
-
} else if (this.#browserContext.browser().cdpSupported && (metadata ||
|
|
137423
|
+
} else if (this.#browserContext.browser().cdpSupported && (metadata || platform)) {
|
|
137424
137424
|
return await this._client().send("Network.setUserAgentOverride", {
|
|
137425
137425
|
userAgent: userAgent4,
|
|
137426
137426
|
userAgentMetadata: metadata,
|
|
137427
|
-
platform
|
|
137427
|
+
platform
|
|
137428
137428
|
});
|
|
137429
137429
|
}
|
|
137430
137430
|
const enable = userAgent4 !== "";
|
|
@@ -137436,14 +137436,14 @@ var init_Page2 = __esm({
|
|
|
137436
137436
|
"beforeRequestSent"
|
|
137437
137437
|
/* Bidi.Network.InterceptPhase.BeforeRequestSent */
|
|
137438
137438
|
], this.#userAgentInterception, enable);
|
|
137439
|
-
const overrideNavigatorProperties = (userAgent5,
|
|
137439
|
+
const overrideNavigatorProperties = (userAgent5, platform2) => {
|
|
137440
137440
|
Object.defineProperty(navigator, "userAgent", {
|
|
137441
137441
|
value: userAgent5,
|
|
137442
137442
|
configurable: true
|
|
137443
137443
|
});
|
|
137444
|
-
if (
|
|
137444
|
+
if (platform2) {
|
|
137445
137445
|
Object.defineProperty(navigator, "platform", {
|
|
137446
|
-
value:
|
|
137446
|
+
value: platform2,
|
|
137447
137447
|
configurable: true
|
|
137448
137448
|
});
|
|
137449
137449
|
}
|
|
@@ -137456,11 +137456,11 @@ var init_Page2 = __esm({
|
|
|
137456
137456
|
await this.removeScriptToEvaluateOnNewDocument(this.#userAgentPreloadScript);
|
|
137457
137457
|
}
|
|
137458
137458
|
const [evaluateToken] = await Promise.all([
|
|
137459
|
-
enable ? this.evaluateOnNewDocument(overrideNavigatorProperties, userAgent4,
|
|
137459
|
+
enable ? this.evaluateOnNewDocument(overrideNavigatorProperties, userAgent4, platform || void 0) : void 0,
|
|
137460
137460
|
// When we disable the UserAgent we want to
|
|
137461
137461
|
// evaluate the original value in all Browsing Contexts
|
|
137462
137462
|
...frames.map((frame) => {
|
|
137463
|
-
return frame.evaluate(overrideNavigatorProperties, userAgent4,
|
|
137463
|
+
return frame.evaluate(overrideNavigatorProperties, userAgent4, platform || void 0);
|
|
137464
137464
|
})
|
|
137465
137465
|
]);
|
|
137466
137466
|
this.#userAgentPreloadScript = evaluateToken?.identifier;
|
|
@@ -173974,9 +173974,9 @@ var require_env_paths = __commonJS({
|
|
|
173974
173974
|
"../../../node_modules/.pnpm/env-paths@2.2.1/node_modules/env-paths/index.js"(exports2, module2) {
|
|
173975
173975
|
"use strict";
|
|
173976
173976
|
var path68 = require("path");
|
|
173977
|
-
var
|
|
173978
|
-
var homedir8 =
|
|
173979
|
-
var tmpdir3 =
|
|
173977
|
+
var os18 = require("os");
|
|
173978
|
+
var homedir8 = os18.homedir();
|
|
173979
|
+
var tmpdir3 = os18.tmpdir();
|
|
173980
173980
|
var { env: env5 } = process;
|
|
173981
173981
|
var macos = (name2) => {
|
|
173982
173982
|
const library = path68.join(homedir8, "Library");
|
|
@@ -181338,7 +181338,7 @@ var require_polyfills2 = __commonJS({
|
|
|
181338
181338
|
var constants = require("constants");
|
|
181339
181339
|
var origCwd = process.cwd;
|
|
181340
181340
|
var cwd2 = null;
|
|
181341
|
-
var
|
|
181341
|
+
var platform = process.env.GRACEFUL_FS_PLATFORM || process.platform;
|
|
181342
181342
|
process.cwd = function() {
|
|
181343
181343
|
if (!cwd2)
|
|
181344
181344
|
cwd2 = origCwd.call(process);
|
|
@@ -181397,7 +181397,7 @@ var require_polyfills2 = __commonJS({
|
|
|
181397
181397
|
fs23.lchownSync = function() {
|
|
181398
181398
|
};
|
|
181399
181399
|
}
|
|
181400
|
-
if (
|
|
181400
|
+
if (platform === "win32") {
|
|
181401
181401
|
fs23.rename = typeof fs23.rename !== "function" ? fs23.rename : (function(fs$rename) {
|
|
181402
181402
|
function rename3(from4, to7, cb2) {
|
|
181403
181403
|
var start2 = Date.now();
|
|
@@ -182983,9 +182983,9 @@ var require_conf = __commonJS({
|
|
|
182983
182983
|
var require_defaults5 = __commonJS({
|
|
182984
182984
|
"../../../node_modules/.pnpm/@pnpm+npm-conf@2.3.1/node_modules/@pnpm/npm-conf/lib/defaults.js"(exports2) {
|
|
182985
182985
|
"use strict";
|
|
182986
|
-
var
|
|
182986
|
+
var os18 = require("os");
|
|
182987
182987
|
var path68 = require("path");
|
|
182988
|
-
var temp =
|
|
182988
|
+
var temp = os18.tmpdir();
|
|
182989
182989
|
var uidOrPid = process.getuid ? process.getuid() : process.pid;
|
|
182990
182990
|
var hasUnicode2 = () => true;
|
|
182991
182991
|
var isWindows = process.platform === "win32";
|
|
@@ -182996,7 +182996,7 @@ var require_defaults5 = __commonJS({
|
|
|
182996
182996
|
var umask = {
|
|
182997
182997
|
fromString: () => process.umask()
|
|
182998
182998
|
};
|
|
182999
|
-
var home =
|
|
182999
|
+
var home = os18.homedir();
|
|
183000
183000
|
if (home) {
|
|
183001
183001
|
process.env.HOME = home;
|
|
183002
183002
|
} else {
|
|
@@ -212864,8 +212864,8 @@ var require_minizlib = __commonJS({
|
|
|
212864
212864
|
var require_normalize_windows_path = __commonJS({
|
|
212865
212865
|
"../../../node_modules/.pnpm/tar@6.2.1/node_modules/tar/lib/normalize-windows-path.js"(exports2, module2) {
|
|
212866
212866
|
"use strict";
|
|
212867
|
-
var
|
|
212868
|
-
module2.exports =
|
|
212867
|
+
var platform = process.env.TESTING_TAR_FAKE_PLATFORM || process.platform;
|
|
212868
|
+
module2.exports = platform !== "win32" ? (p9) => p9 : (p9) => p9 && p9.replace(/\\/g, "/");
|
|
212869
212869
|
}
|
|
212870
212870
|
});
|
|
212871
212871
|
|
|
@@ -215656,7 +215656,7 @@ var require_opts_arg = __commonJS({
|
|
|
215656
215656
|
var require_path_arg = __commonJS({
|
|
215657
215657
|
"../../../node_modules/.pnpm/mkdirp@1.0.4/node_modules/mkdirp/lib/path-arg.js"(exports2, module2) {
|
|
215658
215658
|
"use strict";
|
|
215659
|
-
var
|
|
215659
|
+
var platform = process.env.__TESTING_MKDIRP_PLATFORM__ || process.platform;
|
|
215660
215660
|
var { resolve: resolve10, parse: parse12 } = require("path");
|
|
215661
215661
|
var pathArg = (path68) => {
|
|
215662
215662
|
if (/\0/.test(path68)) {
|
|
@@ -215669,7 +215669,7 @@ var require_path_arg = __commonJS({
|
|
|
215669
215669
|
);
|
|
215670
215670
|
}
|
|
215671
215671
|
path68 = resolve10(path68);
|
|
215672
|
-
if (
|
|
215672
|
+
if (platform === "win32") {
|
|
215673
215673
|
const badWinChars = /[*|"<>?:]/;
|
|
215674
215674
|
const { root: root6 } = parse12(path68);
|
|
215675
215675
|
if (badWinChars.test(path68.substr(root6.length))) {
|
|
@@ -216201,8 +216201,8 @@ var require_path_reservations = __commonJS({
|
|
|
216201
216201
|
var normalize6 = require_normalize_unicode();
|
|
216202
216202
|
var stripSlashes = require_strip_trailing_slashes();
|
|
216203
216203
|
var { join: join13 } = require("path");
|
|
216204
|
-
var
|
|
216205
|
-
var isWindows =
|
|
216204
|
+
var platform = process.env.TESTING_TAR_FAKE_PLATFORM || process.platform;
|
|
216205
|
+
var isWindows = platform === "win32";
|
|
216206
216206
|
module2.exports = () => {
|
|
216207
216207
|
const queues = /* @__PURE__ */ new Map();
|
|
216208
216208
|
const reservations = /* @__PURE__ */ new Map();
|
|
@@ -216312,8 +216312,8 @@ var require_path_reservations = __commonJS({
|
|
|
216312
216312
|
var require_get_write_flag = __commonJS({
|
|
216313
216313
|
"../../../node_modules/.pnpm/tar@6.2.1/node_modules/tar/lib/get-write-flag.js"(exports2, module2) {
|
|
216314
216314
|
"use strict";
|
|
216315
|
-
var
|
|
216316
|
-
var isWindows =
|
|
216315
|
+
var platform = process.env.__FAKE_PLATFORM__ || process.platform;
|
|
216316
|
+
var isWindows = platform === "win32";
|
|
216317
216317
|
var fs23 = global.__FAKE_TESTING_FS__ || require("fs");
|
|
216318
216318
|
var { O_CREAT, O_TRUNC, O_WRONLY, UV_FS_O_FILEMAP = 0 } = fs23.constants;
|
|
216319
216319
|
var fMapEnabled = isWindows && !!UV_FS_O_FILEMAP;
|
|
@@ -216366,8 +216366,8 @@ var require_unpack = __commonJS({
|
|
|
216366
216366
|
var CHECKED_CWD = Symbol("checkedCwd");
|
|
216367
216367
|
var crypto5 = require("crypto");
|
|
216368
216368
|
var getFlag2 = require_get_write_flag();
|
|
216369
|
-
var
|
|
216370
|
-
var isWindows =
|
|
216369
|
+
var platform = process.env.TESTING_TAR_FAKE_PLATFORM || process.platform;
|
|
216370
|
+
var isWindows = platform === "win32";
|
|
216371
216371
|
var DEFAULT_MAX_DEPTH = 1024;
|
|
216372
216372
|
var unlinkFile = (path69, cb2) => {
|
|
216373
216373
|
if (!isWindows) {
|
|
@@ -221845,8 +221845,8 @@ var require_path_key = __commonJS({
|
|
|
221845
221845
|
"use strict";
|
|
221846
221846
|
var pathKey = (options2 = {}) => {
|
|
221847
221847
|
const environment2 = options2.env || process.env;
|
|
221848
|
-
const
|
|
221849
|
-
if (
|
|
221848
|
+
const platform = options2.platform || process.platform;
|
|
221849
|
+
if (platform !== "win32") {
|
|
221850
221850
|
return "PATH";
|
|
221851
221851
|
}
|
|
221852
221852
|
return Object.keys(environment2).reverse().find((key) => key.toUpperCase() === "PATH") || "Path";
|
|
@@ -222692,7 +222692,7 @@ var require_stdio = __commonJS({
|
|
|
222692
222692
|
var require_kill = __commonJS({
|
|
222693
222693
|
"../../../node_modules/.pnpm/execa@5.1.1/node_modules/execa/lib/kill.js"(exports2, module2) {
|
|
222694
222694
|
"use strict";
|
|
222695
|
-
var
|
|
222695
|
+
var os18 = require("os");
|
|
222696
222696
|
var onExit2 = require_signal_exit();
|
|
222697
222697
|
var DEFAULT_FORCE_KILL_TIMEOUT = 1e3 * 5;
|
|
222698
222698
|
var spawnedKill = (kill, signal = "SIGTERM", options2 = {}) => {
|
|
@@ -222716,7 +222716,7 @@ var require_kill = __commonJS({
|
|
|
222716
222716
|
return isSigterm(signal) && forceKillAfterTimeout !== false && killResult;
|
|
222717
222717
|
};
|
|
222718
222718
|
var isSigterm = (signal) => {
|
|
222719
|
-
return signal ===
|
|
222719
|
+
return signal === os18.constants.signals.SIGTERM || typeof signal === "string" && signal.toUpperCase() === "SIGTERM";
|
|
222720
222720
|
};
|
|
222721
222721
|
var getForceKillAfterTimeout = ({ forceKillAfterTimeout = true }) => {
|
|
222722
222722
|
if (forceKillAfterTimeout === true) {
|
|
@@ -1316845,7 +1316845,7 @@ var Pattern = class _Pattern {
|
|
|
1316845
1316845
|
#isUNC;
|
|
1316846
1316846
|
#isAbsolute;
|
|
1316847
1316847
|
#followGlobstar = true;
|
|
1316848
|
-
constructor(patternList, globList, index2,
|
|
1316848
|
+
constructor(patternList, globList, index2, platform) {
|
|
1316849
1316849
|
if (!isPatternList(patternList)) {
|
|
1316850
1316850
|
throw new TypeError("empty pattern list");
|
|
1316851
1316851
|
}
|
|
@@ -1316862,7 +1316862,7 @@ var Pattern = class _Pattern {
|
|
|
1316862
1316862
|
this.#patternList = patternList;
|
|
1316863
1316863
|
this.#globList = globList;
|
|
1316864
1316864
|
this.#index = index2;
|
|
1316865
|
-
this.#platform =
|
|
1316865
|
+
this.#platform = platform;
|
|
1316866
1316866
|
if (this.#index === 0) {
|
|
1316867
1316867
|
if (this.isUNC()) {
|
|
1316868
1316868
|
const [p0, p1, p23, p32, ...prest] = this.#patternList;
|
|
@@ -1317004,12 +1317004,12 @@ var Ignore = class {
|
|
|
1317004
1317004
|
absoluteChildren;
|
|
1317005
1317005
|
platform;
|
|
1317006
1317006
|
mmopts;
|
|
1317007
|
-
constructor(ignored, { nobrace, nocase, noext, noglobstar, platform
|
|
1317007
|
+
constructor(ignored, { nobrace, nocase, noext, noglobstar, platform = defaultPlatform2 }) {
|
|
1317008
1317008
|
this.relative = [];
|
|
1317009
1317009
|
this.absolute = [];
|
|
1317010
1317010
|
this.relativeChildren = [];
|
|
1317011
1317011
|
this.absoluteChildren = [];
|
|
1317012
|
-
this.platform =
|
|
1317012
|
+
this.platform = platform;
|
|
1317013
1317013
|
this.mmopts = {
|
|
1317014
1317014
|
dot: true,
|
|
1317015
1317015
|
nobrace,
|
|
@@ -1317017,7 +1317017,7 @@ var Ignore = class {
|
|
|
1317017
1317017
|
noext,
|
|
1317018
1317018
|
noglobstar,
|
|
1317019
1317019
|
optimizationLevel: 2,
|
|
1317020
|
-
platform
|
|
1317020
|
+
platform,
|
|
1317021
1317021
|
nocomment: true,
|
|
1317022
1317022
|
nonegate: true
|
|
1317023
1317023
|
};
|
|
@@ -1411844,9 +1411844,9 @@ var ErrorPropertiesBuilder = class {
|
|
|
1411844
1411844
|
|
|
1411845
1411845
|
// ../../../node_modules/.pnpm/@posthog+core@1.8.1/node_modules/@posthog/core/dist/error-tracking/parsers/base.mjs
|
|
1411846
1411846
|
var UNKNOWN_FUNCTION = "?";
|
|
1411847
|
-
function createFrame(
|
|
1411847
|
+
function createFrame(platform, filename, func, lineno, colno) {
|
|
1411848
1411848
|
const frame = {
|
|
1411849
|
-
platform
|
|
1411849
|
+
platform,
|
|
1411850
1411850
|
filename,
|
|
1411851
1411851
|
function: "<anonymous>" === func ? UNKNOWN_FUNCTION : func,
|
|
1411852
1411852
|
in_app: true
|
|
@@ -1411873,11 +1411873,11 @@ var extractSafariExtensionDetails = (func, filename) => {
|
|
|
1411873
1411873
|
var chromeRegexNoFnName = /^\s*at (\S+?)(?::(\d+))(?::(\d+))\s*$/i;
|
|
1411874
1411874
|
var chromeRegex = /^\s*at (?:(.+?\)(?: \[.+\])?|.*?) ?\((?:address at )?)?(?:async )?((?:<anonymous>|[-a-z]+:|.*bundle|\/)?.*?)(?::(\d+))?(?::(\d+))?\)?\s*$/i;
|
|
1411875
1411875
|
var chromeEvalRegex = /\((\S*)(?::(\d+))(?::(\d+))\)/;
|
|
1411876
|
-
var chromeStackLineParser = (line,
|
|
1411876
|
+
var chromeStackLineParser = (line, platform) => {
|
|
1411877
1411877
|
const noFnParts = chromeRegexNoFnName.exec(line);
|
|
1411878
1411878
|
if (noFnParts) {
|
|
1411879
1411879
|
const [, filename, line2, col] = noFnParts;
|
|
1411880
|
-
return createFrame(
|
|
1411880
|
+
return createFrame(platform, filename, UNKNOWN_FUNCTION, +line2, +col);
|
|
1411881
1411881
|
}
|
|
1411882
1411882
|
const parts = chromeRegex.exec(line);
|
|
1411883
1411883
|
if (parts) {
|
|
@@ -1411891,21 +1411891,21 @@ var chromeStackLineParser = (line, platform2) => {
|
|
|
1411891
1411891
|
}
|
|
1411892
1411892
|
}
|
|
1411893
1411893
|
const [func, filename] = extractSafariExtensionDetails(parts[1] || UNKNOWN_FUNCTION, parts[2]);
|
|
1411894
|
-
return createFrame(
|
|
1411894
|
+
return createFrame(platform, filename, func, parts[3] ? +parts[3] : void 0, parts[4] ? +parts[4] : void 0);
|
|
1411895
1411895
|
}
|
|
1411896
1411896
|
};
|
|
1411897
1411897
|
|
|
1411898
1411898
|
// ../../../node_modules/.pnpm/@posthog+core@1.8.1/node_modules/@posthog/core/dist/error-tracking/parsers/winjs.mjs
|
|
1411899
1411899
|
var winjsRegex = /^\s*at (?:((?:\[object object\])?.+) )?\(?((?:[-a-z]+):.*?):(\d+)(?::(\d+))?\)?\s*$/i;
|
|
1411900
|
-
var winjsStackLineParser = (line,
|
|
1411900
|
+
var winjsStackLineParser = (line, platform) => {
|
|
1411901
1411901
|
const parts = winjsRegex.exec(line);
|
|
1411902
|
-
return parts ? createFrame(
|
|
1411902
|
+
return parts ? createFrame(platform, parts[2], parts[1] || UNKNOWN_FUNCTION, +parts[3], parts[4] ? +parts[4] : void 0) : void 0;
|
|
1411903
1411903
|
};
|
|
1411904
1411904
|
|
|
1411905
1411905
|
// ../../../node_modules/.pnpm/@posthog+core@1.8.1/node_modules/@posthog/core/dist/error-tracking/parsers/gecko.mjs
|
|
1411906
1411906
|
var geckoREgex = /^\s*(.*?)(?:\((.*?)\))?(?:^|@)?((?:[-a-z]+)?:\/.*?|\[native code\]|[^@]*(?:bundle|\d+\.js)|\/[\w\-. /=]+)(?::(\d+))?(?::(\d+))?\s*$/i;
|
|
1411907
1411907
|
var geckoEvalRegex = /(\S+) line (\d+)(?: > eval line \d+)* > eval/i;
|
|
1411908
|
-
var geckoStackLineParser = (line,
|
|
1411908
|
+
var geckoStackLineParser = (line, platform) => {
|
|
1411909
1411909
|
const parts = geckoREgex.exec(line);
|
|
1411910
1411910
|
if (parts) {
|
|
1411911
1411911
|
const isEval = parts[3] && parts[3].indexOf(" > eval") > -1;
|
|
@@ -1411921,26 +1411921,26 @@ var geckoStackLineParser = (line, platform2) => {
|
|
|
1411921
1411921
|
let filename = parts[3];
|
|
1411922
1411922
|
let func = parts[1] || UNKNOWN_FUNCTION;
|
|
1411923
1411923
|
[func, filename] = extractSafariExtensionDetails(func, filename);
|
|
1411924
|
-
return createFrame(
|
|
1411924
|
+
return createFrame(platform, filename, func, parts[4] ? +parts[4] : void 0, parts[5] ? +parts[5] : void 0);
|
|
1411925
1411925
|
}
|
|
1411926
1411926
|
};
|
|
1411927
1411927
|
|
|
1411928
1411928
|
// ../../../node_modules/.pnpm/@posthog+core@1.8.1/node_modules/@posthog/core/dist/error-tracking/parsers/opera.mjs
|
|
1411929
1411929
|
var opera10Regex = / line (\d+).*script (?:in )?(\S+)(?:: in function (\S+))?$/i;
|
|
1411930
|
-
var opera10StackLineParser = (line,
|
|
1411930
|
+
var opera10StackLineParser = (line, platform) => {
|
|
1411931
1411931
|
const parts = opera10Regex.exec(line);
|
|
1411932
|
-
return parts ? createFrame(
|
|
1411932
|
+
return parts ? createFrame(platform, parts[2], parts[3] || UNKNOWN_FUNCTION, +parts[1]) : void 0;
|
|
1411933
1411933
|
};
|
|
1411934
1411934
|
var opera11Regex = / line (\d+), column (\d+)\s*(?:in (?:<anonymous function: ([^>]+)>|([^)]+))\(.*\))? in (.*):\s*$/i;
|
|
1411935
|
-
var opera11StackLineParser = (line,
|
|
1411935
|
+
var opera11StackLineParser = (line, platform) => {
|
|
1411936
1411936
|
const parts = opera11Regex.exec(line);
|
|
1411937
|
-
return parts ? createFrame(
|
|
1411937
|
+
return parts ? createFrame(platform, parts[5], parts[3] || parts[4] || UNKNOWN_FUNCTION, +parts[1], +parts[2]) : void 0;
|
|
1411938
1411938
|
};
|
|
1411939
1411939
|
|
|
1411940
1411940
|
// ../../../node_modules/.pnpm/@posthog+core@1.8.1/node_modules/@posthog/core/dist/error-tracking/parsers/node.mjs
|
|
1411941
1411941
|
var FILENAME_MATCH = /^\s*[-]{4,}$/;
|
|
1411942
1411942
|
var FULL_MATCH = /at (?:async )?(?:(.+?)\s+\()?(?:(.+):(\d+):(\d+)?|([^)]+))\)?/;
|
|
1411943
|
-
var nodeStackLineParser = (line,
|
|
1411943
|
+
var nodeStackLineParser = (line, platform) => {
|
|
1411944
1411944
|
const lineMatch = line.match(FULL_MATCH);
|
|
1411945
1411945
|
if (lineMatch) {
|
|
1411946
1411946
|
let object8;
|
|
@@ -1411986,12 +1411986,12 @@ var nodeStackLineParser = (line, platform2) => {
|
|
|
1411986
1411986
|
lineno: _parseIntOrUndefined(lineMatch[3]),
|
|
1411987
1411987
|
colno: _parseIntOrUndefined(lineMatch[4]),
|
|
1411988
1411988
|
in_app: filenameIsInApp(filename || "", isNative),
|
|
1411989
|
-
platform
|
|
1411989
|
+
platform
|
|
1411990
1411990
|
};
|
|
1411991
1411991
|
}
|
|
1411992
1411992
|
if (line.match(FILENAME_MATCH)) return {
|
|
1411993
1411993
|
filename: line,
|
|
1411994
|
-
platform
|
|
1411994
|
+
platform
|
|
1411995
1411995
|
};
|
|
1411996
1411996
|
};
|
|
1411997
1411997
|
function filenameIsInApp(filename, isNative = false) {
|
|
@@ -1412018,7 +1412018,7 @@ function reverseAndStripFrames(stack) {
|
|
|
1412018
1412018
|
function getLastStackFrame(arr) {
|
|
1412019
1412019
|
return arr[arr.length - 1] || {};
|
|
1412020
1412020
|
}
|
|
1412021
|
-
function createStackParser(
|
|
1412021
|
+
function createStackParser(platform, ...parsers12) {
|
|
1412022
1412022
|
return (stack, skipFirstLines = 0) => {
|
|
1412023
1412023
|
const frames = [];
|
|
1412024
1412024
|
const lines = stack.split("\n");
|
|
@@ -1412028,7 +1412028,7 @@ function createStackParser(platform2, ...parsers12) {
|
|
|
1412028
1412028
|
const cleanedLine = WEBPACK_ERROR_REGEXP.test(line) ? line.replace(WEBPACK_ERROR_REGEXP, "$1") : line;
|
|
1412029
1412029
|
if (!cleanedLine.match(/\S*Error: /)) {
|
|
1412030
1412030
|
for (const parser5 of parsers12) {
|
|
1412031
|
-
const frame = parser5(cleanedLine,
|
|
1412031
|
+
const frame = parser5(cleanedLine, platform);
|
|
1412032
1412032
|
if (frame) {
|
|
1412033
1412033
|
frames.push(frame);
|
|
1412034
1412034
|
break;
|
|
@@ -1413765,7 +1413765,7 @@ var AccessTokenPosthogManager = class {
|
|
|
1413765
1413765
|
properties: {
|
|
1413766
1413766
|
...event,
|
|
1413767
1413767
|
...event.properties,
|
|
1413768
|
-
version: "3.32.0-
|
|
1413768
|
+
version: "3.32.0-5-g3b35967bca",
|
|
1413769
1413769
|
usingAccessToken: true
|
|
1413770
1413770
|
}
|
|
1413771
1413771
|
});
|
|
@@ -1413864,7 +1413864,7 @@ var UserPosthogManager = class {
|
|
|
1413864
1413864
|
distinctId: this.userId ?? await this.getPersistedDistinctId(),
|
|
1413865
1413865
|
event: "CLI",
|
|
1413866
1413866
|
properties: {
|
|
1413867
|
-
version: "3.32.0-
|
|
1413867
|
+
version: "3.32.0-5-g3b35967bca",
|
|
1413868
1413868
|
...event,
|
|
1413869
1413869
|
...event.properties,
|
|
1413870
1413870
|
usingAccessToken: false,
|
|
@@ -1454683,10 +1454683,10 @@ var NetworkManager = class extends EventEmitter4 {
|
|
|
1454683
1454683
|
throw error2;
|
|
1454684
1454684
|
}
|
|
1454685
1454685
|
}
|
|
1454686
|
-
async setUserAgent(userAgent4, userAgentMetadata,
|
|
1454686
|
+
async setUserAgent(userAgent4, userAgentMetadata, platform) {
|
|
1454687
1454687
|
this.#userAgent = userAgent4;
|
|
1454688
1454688
|
this.#userAgentMetadata = userAgentMetadata;
|
|
1454689
|
-
this.#platform =
|
|
1454689
|
+
this.#platform = platform;
|
|
1454690
1454690
|
await this.#applyToAllClients(this.#applyUserAgent.bind(this));
|
|
1454691
1454691
|
}
|
|
1454692
1454692
|
async #applyUserAgent(client2) {
|
|
@@ -1460078,8 +1460078,8 @@ function getText2(url2) {
|
|
|
1460078
1460078
|
}
|
|
1460079
1460079
|
|
|
1460080
1460080
|
// ../../../node_modules/.pnpm/@puppeteer+browsers@2.10.10/node_modules/@puppeteer/browsers/lib/esm/browser-data/chrome.js
|
|
1460081
|
-
function folder(
|
|
1460082
|
-
switch (
|
|
1460081
|
+
function folder(platform) {
|
|
1460082
|
+
switch (platform) {
|
|
1460083
1460083
|
case BrowserPlatform.LINUX_ARM:
|
|
1460084
1460084
|
case BrowserPlatform.LINUX:
|
|
1460085
1460085
|
return "linux64";
|
|
@@ -1460093,23 +1460093,23 @@ function folder(platform2) {
|
|
|
1460093
1460093
|
return "win64";
|
|
1460094
1460094
|
}
|
|
1460095
1460095
|
}
|
|
1460096
|
-
function resolveDownloadUrl(
|
|
1460097
|
-
return `${baseUrl}/${resolveDownloadPath(
|
|
1460096
|
+
function resolveDownloadUrl(platform, buildId, baseUrl = "https://storage.googleapis.com/chrome-for-testing-public") {
|
|
1460097
|
+
return `${baseUrl}/${resolveDownloadPath(platform, buildId).join("/")}`;
|
|
1460098
1460098
|
}
|
|
1460099
|
-
function resolveDownloadPath(
|
|
1460100
|
-
return [buildId, folder(
|
|
1460099
|
+
function resolveDownloadPath(platform, buildId) {
|
|
1460100
|
+
return [buildId, folder(platform), `chrome-${folder(platform)}.zip`];
|
|
1460101
1460101
|
}
|
|
1460102
|
-
function relativeExecutablePath(
|
|
1460103
|
-
switch (
|
|
1460102
|
+
function relativeExecutablePath(platform, _buildId) {
|
|
1460103
|
+
switch (platform) {
|
|
1460104
1460104
|
case BrowserPlatform.MAC:
|
|
1460105
1460105
|
case BrowserPlatform.MAC_ARM:
|
|
1460106
|
-
return import_node_path8.default.join("chrome-" + folder(
|
|
1460106
|
+
return import_node_path8.default.join("chrome-" + folder(platform), "Google Chrome for Testing.app", "Contents", "MacOS", "Google Chrome for Testing");
|
|
1460107
1460107
|
case BrowserPlatform.LINUX_ARM:
|
|
1460108
1460108
|
case BrowserPlatform.LINUX:
|
|
1460109
1460109
|
return import_node_path8.default.join("chrome-linux64", "chrome");
|
|
1460110
1460110
|
case BrowserPlatform.WIN32:
|
|
1460111
1460111
|
case BrowserPlatform.WIN64:
|
|
1460112
|
-
return import_node_path8.default.join("chrome-" + folder(
|
|
1460112
|
+
return import_node_path8.default.join("chrome-" + folder(platform), "chrome.exe");
|
|
1460113
1460113
|
}
|
|
1460114
1460114
|
}
|
|
1460115
1460115
|
async function getLastKnownGoodReleaseForChannel(channel) {
|
|
@@ -1460140,8 +1460140,8 @@ async function resolveBuildId(channel) {
|
|
|
1460140
1460140
|
}
|
|
1460141
1460141
|
return;
|
|
1460142
1460142
|
}
|
|
1460143
|
-
function resolveSystemExecutablePath(
|
|
1460144
|
-
switch (
|
|
1460143
|
+
function resolveSystemExecutablePath(platform, channel) {
|
|
1460144
|
+
switch (platform) {
|
|
1460145
1460145
|
case BrowserPlatform.WIN64:
|
|
1460146
1460146
|
case BrowserPlatform.WIN32:
|
|
1460147
1460147
|
switch (channel) {
|
|
@@ -1460197,8 +1460197,8 @@ function compareVersions(a10, b18) {
|
|
|
1460197
1460197
|
}
|
|
1460198
1460198
|
|
|
1460199
1460199
|
// ../../../node_modules/.pnpm/@puppeteer+browsers@2.10.10/node_modules/@puppeteer/browsers/lib/esm/browser-data/chrome-headless-shell.js
|
|
1460200
|
-
function folder2(
|
|
1460201
|
-
switch (
|
|
1460200
|
+
function folder2(platform) {
|
|
1460201
|
+
switch (platform) {
|
|
1460202
1460202
|
case BrowserPlatform.LINUX_ARM:
|
|
1460203
1460203
|
case BrowserPlatform.LINUX:
|
|
1460204
1460204
|
return "linux64";
|
|
@@ -1460212,34 +1460212,34 @@ function folder2(platform2) {
|
|
|
1460212
1460212
|
return "win64";
|
|
1460213
1460213
|
}
|
|
1460214
1460214
|
}
|
|
1460215
|
-
function resolveDownloadUrl2(
|
|
1460216
|
-
return `${baseUrl}/${resolveDownloadPath2(
|
|
1460215
|
+
function resolveDownloadUrl2(platform, buildId, baseUrl = "https://storage.googleapis.com/chrome-for-testing-public") {
|
|
1460216
|
+
return `${baseUrl}/${resolveDownloadPath2(platform, buildId).join("/")}`;
|
|
1460217
1460217
|
}
|
|
1460218
|
-
function resolveDownloadPath2(
|
|
1460218
|
+
function resolveDownloadPath2(platform, buildId) {
|
|
1460219
1460219
|
return [
|
|
1460220
1460220
|
buildId,
|
|
1460221
|
-
folder2(
|
|
1460222
|
-
`chrome-headless-shell-${folder2(
|
|
1460221
|
+
folder2(platform),
|
|
1460222
|
+
`chrome-headless-shell-${folder2(platform)}.zip`
|
|
1460223
1460223
|
];
|
|
1460224
1460224
|
}
|
|
1460225
|
-
function relativeExecutablePath2(
|
|
1460226
|
-
switch (
|
|
1460225
|
+
function relativeExecutablePath2(platform, _buildId) {
|
|
1460226
|
+
switch (platform) {
|
|
1460227
1460227
|
case BrowserPlatform.MAC:
|
|
1460228
1460228
|
case BrowserPlatform.MAC_ARM:
|
|
1460229
|
-
return import_node_path9.default.join("chrome-headless-shell-" + folder2(
|
|
1460229
|
+
return import_node_path9.default.join("chrome-headless-shell-" + folder2(platform), "chrome-headless-shell");
|
|
1460230
1460230
|
case BrowserPlatform.LINUX_ARM:
|
|
1460231
1460231
|
case BrowserPlatform.LINUX:
|
|
1460232
1460232
|
return import_node_path9.default.join("chrome-headless-shell-linux64", "chrome-headless-shell");
|
|
1460233
1460233
|
case BrowserPlatform.WIN32:
|
|
1460234
1460234
|
case BrowserPlatform.WIN64:
|
|
1460235
|
-
return import_node_path9.default.join("chrome-headless-shell-" + folder2(
|
|
1460235
|
+
return import_node_path9.default.join("chrome-headless-shell-" + folder2(platform), "chrome-headless-shell.exe");
|
|
1460236
1460236
|
}
|
|
1460237
1460237
|
}
|
|
1460238
1460238
|
|
|
1460239
1460239
|
// ../../../node_modules/.pnpm/@puppeteer+browsers@2.10.10/node_modules/@puppeteer/browsers/lib/esm/browser-data/chromedriver.js
|
|
1460240
1460240
|
var import_node_path10 = __toESM(require("path"), 1);
|
|
1460241
|
-
function folder3(
|
|
1460242
|
-
switch (
|
|
1460241
|
+
function folder3(platform) {
|
|
1460242
|
+
switch (platform) {
|
|
1460243
1460243
|
case BrowserPlatform.LINUX_ARM:
|
|
1460244
1460244
|
case BrowserPlatform.LINUX:
|
|
1460245
1460245
|
return "linux64";
|
|
@@ -1460253,30 +1460253,30 @@ function folder3(platform2) {
|
|
|
1460253
1460253
|
return "win64";
|
|
1460254
1460254
|
}
|
|
1460255
1460255
|
}
|
|
1460256
|
-
function resolveDownloadUrl3(
|
|
1460257
|
-
return `${baseUrl}/${resolveDownloadPath3(
|
|
1460256
|
+
function resolveDownloadUrl3(platform, buildId, baseUrl = "https://storage.googleapis.com/chrome-for-testing-public") {
|
|
1460257
|
+
return `${baseUrl}/${resolveDownloadPath3(platform, buildId).join("/")}`;
|
|
1460258
1460258
|
}
|
|
1460259
|
-
function resolveDownloadPath3(
|
|
1460260
|
-
return [buildId, folder3(
|
|
1460259
|
+
function resolveDownloadPath3(platform, buildId) {
|
|
1460260
|
+
return [buildId, folder3(platform), `chromedriver-${folder3(platform)}.zip`];
|
|
1460261
1460261
|
}
|
|
1460262
|
-
function relativeExecutablePath3(
|
|
1460263
|
-
switch (
|
|
1460262
|
+
function relativeExecutablePath3(platform, _buildId) {
|
|
1460263
|
+
switch (platform) {
|
|
1460264
1460264
|
case BrowserPlatform.MAC:
|
|
1460265
1460265
|
case BrowserPlatform.MAC_ARM:
|
|
1460266
|
-
return import_node_path10.default.join("chromedriver-" + folder3(
|
|
1460266
|
+
return import_node_path10.default.join("chromedriver-" + folder3(platform), "chromedriver");
|
|
1460267
1460267
|
case BrowserPlatform.LINUX_ARM:
|
|
1460268
1460268
|
case BrowserPlatform.LINUX:
|
|
1460269
1460269
|
return import_node_path10.default.join("chromedriver-linux64", "chromedriver");
|
|
1460270
1460270
|
case BrowserPlatform.WIN32:
|
|
1460271
1460271
|
case BrowserPlatform.WIN64:
|
|
1460272
|
-
return import_node_path10.default.join("chromedriver-" + folder3(
|
|
1460272
|
+
return import_node_path10.default.join("chromedriver-" + folder3(platform), "chromedriver.exe");
|
|
1460273
1460273
|
}
|
|
1460274
1460274
|
}
|
|
1460275
1460275
|
|
|
1460276
1460276
|
// ../../../node_modules/.pnpm/@puppeteer+browsers@2.10.10/node_modules/@puppeteer/browsers/lib/esm/browser-data/chromium.js
|
|
1460277
1460277
|
var import_node_path11 = __toESM(require("path"), 1);
|
|
1460278
|
-
function archive(
|
|
1460279
|
-
switch (
|
|
1460278
|
+
function archive(platform, buildId) {
|
|
1460279
|
+
switch (platform) {
|
|
1460280
1460280
|
case BrowserPlatform.LINUX_ARM:
|
|
1460281
1460281
|
case BrowserPlatform.LINUX:
|
|
1460282
1460282
|
return "chrome-linux";
|
|
@@ -1460288,8 +1460288,8 @@ function archive(platform2, buildId) {
|
|
|
1460288
1460288
|
return parseInt(buildId, 10) > 591479 ? "chrome-win" : "chrome-win32";
|
|
1460289
1460289
|
}
|
|
1460290
1460290
|
}
|
|
1460291
|
-
function folder4(
|
|
1460292
|
-
switch (
|
|
1460291
|
+
function folder4(platform) {
|
|
1460292
|
+
switch (platform) {
|
|
1460293
1460293
|
case BrowserPlatform.LINUX_ARM:
|
|
1460294
1460294
|
case BrowserPlatform.LINUX:
|
|
1460295
1460295
|
return "Linux_x64";
|
|
@@ -1460303,14 +1460303,14 @@ function folder4(platform2) {
|
|
|
1460303
1460303
|
return "Win_x64";
|
|
1460304
1460304
|
}
|
|
1460305
1460305
|
}
|
|
1460306
|
-
function resolveDownloadUrl4(
|
|
1460307
|
-
return `${baseUrl}/${resolveDownloadPath4(
|
|
1460306
|
+
function resolveDownloadUrl4(platform, buildId, baseUrl = "https://storage.googleapis.com/chromium-browser-snapshots") {
|
|
1460307
|
+
return `${baseUrl}/${resolveDownloadPath4(platform, buildId).join("/")}`;
|
|
1460308
1460308
|
}
|
|
1460309
|
-
function resolveDownloadPath4(
|
|
1460310
|
-
return [folder4(
|
|
1460309
|
+
function resolveDownloadPath4(platform, buildId) {
|
|
1460310
|
+
return [folder4(platform), buildId, `${archive(platform, buildId)}.zip`];
|
|
1460311
1460311
|
}
|
|
1460312
|
-
function relativeExecutablePath4(
|
|
1460313
|
-
switch (
|
|
1460312
|
+
function relativeExecutablePath4(platform, _buildId) {
|
|
1460313
|
+
switch (platform) {
|
|
1460314
1460314
|
case BrowserPlatform.MAC:
|
|
1460315
1460315
|
case BrowserPlatform.MAC_ARM:
|
|
1460316
1460316
|
return import_node_path11.default.join("chrome-mac", "Chromium.app", "Contents", "MacOS", "Chromium");
|
|
@@ -1460322,8 +1460322,8 @@ function relativeExecutablePath4(platform2, _buildId) {
|
|
|
1460322
1460322
|
return import_node_path11.default.join("chrome-win", "chrome.exe");
|
|
1460323
1460323
|
}
|
|
1460324
1460324
|
}
|
|
1460325
|
-
async function resolveBuildId2(
|
|
1460326
|
-
return await getText2(new URL(`https://storage.googleapis.com/chromium-browser-snapshots/${folder4(
|
|
1460325
|
+
async function resolveBuildId2(platform) {
|
|
1460326
|
+
return await getText2(new URL(`https://storage.googleapis.com/chromium-browser-snapshots/${folder4(platform)}/LAST_CHANGE`));
|
|
1460327
1460327
|
}
|
|
1460328
1460328
|
function compareVersions2(a10, b18) {
|
|
1460329
1460329
|
return Number(a10) - Number(b18);
|
|
@@ -1460336,8 +1460336,8 @@ function getFormat2(buildId) {
|
|
|
1460336
1460336
|
const majorVersion = Number(buildId.split(".").shift());
|
|
1460337
1460337
|
return majorVersion >= 135 ? "xz" : "bz2";
|
|
1460338
1460338
|
}
|
|
1460339
|
-
function archiveNightly(
|
|
1460340
|
-
switch (
|
|
1460339
|
+
function archiveNightly(platform, buildId) {
|
|
1460340
|
+
switch (platform) {
|
|
1460341
1460341
|
case BrowserPlatform.LINUX:
|
|
1460342
1460342
|
return `firefox-${buildId}.en-US.linux-x86_64.tar.${getFormat2(buildId)}`;
|
|
1460343
1460343
|
case BrowserPlatform.LINUX_ARM:
|
|
@@ -1460347,11 +1460347,11 @@ function archiveNightly(platform2, buildId) {
|
|
|
1460347
1460347
|
return `firefox-${buildId}.en-US.mac.dmg`;
|
|
1460348
1460348
|
case BrowserPlatform.WIN32:
|
|
1460349
1460349
|
case BrowserPlatform.WIN64:
|
|
1460350
|
-
return `firefox-${buildId}.en-US.${
|
|
1460350
|
+
return `firefox-${buildId}.en-US.${platform}.zip`;
|
|
1460351
1460351
|
}
|
|
1460352
1460352
|
}
|
|
1460353
|
-
function archive2(
|
|
1460354
|
-
switch (
|
|
1460353
|
+
function archive2(platform, buildId) {
|
|
1460354
|
+
switch (platform) {
|
|
1460355
1460355
|
case BrowserPlatform.LINUX_ARM:
|
|
1460356
1460356
|
case BrowserPlatform.LINUX:
|
|
1460357
1460357
|
return `firefox-${buildId}.tar.${getFormat2(buildId)}`;
|
|
@@ -1460363,8 +1460363,8 @@ function archive2(platform2, buildId) {
|
|
|
1460363
1460363
|
return `Firefox Setup ${buildId}.exe`;
|
|
1460364
1460364
|
}
|
|
1460365
1460365
|
}
|
|
1460366
|
-
function platformName(
|
|
1460367
|
-
switch (
|
|
1460366
|
+
function platformName(platform) {
|
|
1460367
|
+
switch (platform) {
|
|
1460368
1460368
|
case BrowserPlatform.LINUX:
|
|
1460369
1460369
|
return `linux-x86_64`;
|
|
1460370
1460370
|
case BrowserPlatform.LINUX_ARM:
|
|
@@ -1460374,7 +1460374,7 @@ function platformName(platform2) {
|
|
|
1460374
1460374
|
return `mac`;
|
|
1460375
1460375
|
case BrowserPlatform.WIN32:
|
|
1460376
1460376
|
case BrowserPlatform.WIN64:
|
|
1460377
|
-
return
|
|
1460377
|
+
return platform;
|
|
1460378
1460378
|
}
|
|
1460379
1460379
|
}
|
|
1460380
1460380
|
function parseBuildId(buildId) {
|
|
@@ -1460386,7 +1460386,7 @@ function parseBuildId(buildId) {
|
|
|
1460386
1460386
|
}
|
|
1460387
1460387
|
return [FirefoxChannel.NIGHTLY, buildId];
|
|
1460388
1460388
|
}
|
|
1460389
|
-
function resolveDownloadUrl5(
|
|
1460389
|
+
function resolveDownloadUrl5(platform, buildId, baseUrl) {
|
|
1460390
1460390
|
const [channel] = parseBuildId(buildId);
|
|
1460391
1460391
|
switch (channel) {
|
|
1460392
1460392
|
case FirefoxChannel.NIGHTLY:
|
|
@@ -1460401,30 +1460401,30 @@ function resolveDownloadUrl5(platform2, buildId, baseUrl) {
|
|
|
1460401
1460401
|
baseUrl ??= "https://archive.mozilla.org/pub/firefox/releases";
|
|
1460402
1460402
|
break;
|
|
1460403
1460403
|
}
|
|
1460404
|
-
return `${baseUrl}/${resolveDownloadPath5(
|
|
1460404
|
+
return `${baseUrl}/${resolveDownloadPath5(platform, buildId).join("/")}`;
|
|
1460405
1460405
|
}
|
|
1460406
|
-
function resolveDownloadPath5(
|
|
1460406
|
+
function resolveDownloadPath5(platform, buildId) {
|
|
1460407
1460407
|
const [channel, resolvedBuildId] = parseBuildId(buildId);
|
|
1460408
1460408
|
switch (channel) {
|
|
1460409
1460409
|
case FirefoxChannel.NIGHTLY:
|
|
1460410
|
-
return [archiveNightly(
|
|
1460410
|
+
return [archiveNightly(platform, resolvedBuildId)];
|
|
1460411
1460411
|
case FirefoxChannel.DEVEDITION:
|
|
1460412
1460412
|
case FirefoxChannel.BETA:
|
|
1460413
1460413
|
case FirefoxChannel.STABLE:
|
|
1460414
1460414
|
case FirefoxChannel.ESR:
|
|
1460415
1460415
|
return [
|
|
1460416
1460416
|
resolvedBuildId,
|
|
1460417
|
-
platformName(
|
|
1460417
|
+
platformName(platform),
|
|
1460418
1460418
|
"en-US",
|
|
1460419
|
-
archive2(
|
|
1460419
|
+
archive2(platform, resolvedBuildId)
|
|
1460420
1460420
|
];
|
|
1460421
1460421
|
}
|
|
1460422
1460422
|
}
|
|
1460423
|
-
function relativeExecutablePath5(
|
|
1460423
|
+
function relativeExecutablePath5(platform, buildId) {
|
|
1460424
1460424
|
const [channel] = parseBuildId(buildId);
|
|
1460425
1460425
|
switch (channel) {
|
|
1460426
1460426
|
case FirefoxChannel.NIGHTLY:
|
|
1460427
|
-
switch (
|
|
1460427
|
+
switch (platform) {
|
|
1460428
1460428
|
case BrowserPlatform.MAC_ARM:
|
|
1460429
1460429
|
case BrowserPlatform.MAC:
|
|
1460430
1460430
|
return import_node_path12.default.join("Firefox Nightly.app", "Contents", "MacOS", "firefox");
|
|
@@ -1460439,7 +1460439,7 @@ function relativeExecutablePath5(platform2, buildId) {
|
|
|
1460439
1460439
|
case FirefoxChannel.DEVEDITION:
|
|
1460440
1460440
|
case FirefoxChannel.ESR:
|
|
1460441
1460441
|
case FirefoxChannel.STABLE:
|
|
1460442
|
-
switch (
|
|
1460442
|
+
switch (platform) {
|
|
1460443
1460443
|
case BrowserPlatform.MAC_ARM:
|
|
1460444
1460444
|
case BrowserPlatform.MAC:
|
|
1460445
1460445
|
return import_node_path12.default.join("Firefox.app", "Contents", "MacOS", "firefox");
|
|
@@ -1460710,7 +1460710,7 @@ var versionComparators = {
|
|
|
1460710
1460710
|
[Browser3.CHROMIUM]: compareVersions2,
|
|
1460711
1460711
|
[Browser3.FIREFOX]: compareVersions3
|
|
1460712
1460712
|
};
|
|
1460713
|
-
async function resolveBuildIdForBrowserTag(browser,
|
|
1460713
|
+
async function resolveBuildIdForBrowserTag(browser, platform, tag) {
|
|
1460714
1460714
|
switch (browser) {
|
|
1460715
1460715
|
case Browser3.FIREFOX:
|
|
1460716
1460716
|
switch (tag) {
|
|
@@ -1460785,7 +1460785,7 @@ async function resolveBuildIdForBrowserTag(browser, platform2, tag) {
|
|
|
1460785
1460785
|
case Browser3.CHROMIUM:
|
|
1460786
1460786
|
switch (tag) {
|
|
1460787
1460787
|
case BrowserTag.LATEST:
|
|
1460788
|
-
return await resolveBuildId2(
|
|
1460788
|
+
return await resolveBuildId2(platform);
|
|
1460789
1460789
|
case BrowserTag.NIGHTLY:
|
|
1460790
1460790
|
case BrowserTag.CANARY:
|
|
1460791
1460791
|
case BrowserTag.DEV:
|
|
@@ -1460797,10 +1460797,10 @@ async function resolveBuildIdForBrowserTag(browser, platform2, tag) {
|
|
|
1460797
1460797
|
}
|
|
1460798
1460798
|
}
|
|
1460799
1460799
|
}
|
|
1460800
|
-
async function resolveBuildId4(browser,
|
|
1460800
|
+
async function resolveBuildId4(browser, platform, tag) {
|
|
1460801
1460801
|
const browserTag = tag;
|
|
1460802
1460802
|
if (Object.values(BrowserTag).includes(browserTag)) {
|
|
1460803
|
-
return await resolveBuildIdForBrowserTag(browser,
|
|
1460803
|
+
return await resolveBuildIdForBrowserTag(browser, platform, browserTag);
|
|
1460804
1460804
|
}
|
|
1460805
1460805
|
switch (browser) {
|
|
1460806
1460806
|
case Browser3.FIREFOX:
|
|
@@ -1460836,7 +1460836,7 @@ async function createProfile2(browser, opts) {
|
|
|
1460836
1460836
|
throw new Error(`Profile creation is not support for ${browser} yet`);
|
|
1460837
1460837
|
}
|
|
1460838
1460838
|
}
|
|
1460839
|
-
function resolveSystemExecutablePath2(browser,
|
|
1460839
|
+
function resolveSystemExecutablePath2(browser, platform, channel) {
|
|
1460840
1460840
|
switch (browser) {
|
|
1460841
1460841
|
case Browser3.CHROMEDRIVER:
|
|
1460842
1460842
|
case Browser3.CHROMEHEADLESSSHELL:
|
|
@@ -1460844,7 +1460844,7 @@ function resolveSystemExecutablePath2(browser, platform2, channel) {
|
|
|
1460844
1460844
|
case Browser3.CHROMIUM:
|
|
1460845
1460845
|
throw new Error(`System browser detection is not supported for ${browser} yet.`);
|
|
1460846
1460846
|
case Browser3.CHROME:
|
|
1460847
|
-
return resolveSystemExecutablePath(
|
|
1460847
|
+
return resolveSystemExecutablePath(platform, channel);
|
|
1460848
1460848
|
}
|
|
1460849
1460849
|
}
|
|
1460850
1460850
|
function getVersionComparator(browser) {
|
|
@@ -1460860,9 +1460860,9 @@ var import_debug2 = __toESM(require_src(), 1);
|
|
|
1460860
1460860
|
// ../../../node_modules/.pnpm/@puppeteer+browsers@2.10.10/node_modules/@puppeteer/browsers/lib/esm/detectPlatform.js
|
|
1460861
1460861
|
var import_node_os3 = __toESM(require("os"), 1);
|
|
1460862
1460862
|
function detectBrowserPlatform() {
|
|
1460863
|
-
const
|
|
1460863
|
+
const platform = import_node_os3.default.platform();
|
|
1460864
1460864
|
const arch = import_node_os3.default.arch();
|
|
1460865
|
-
switch (
|
|
1460865
|
+
switch (platform) {
|
|
1460866
1460866
|
case "darwin":
|
|
1460867
1460867
|
return arch === "arm64" ? BrowserPlatform.MAC_ARM : BrowserPlatform.MAC;
|
|
1460868
1460868
|
case "linux":
|
|
@@ -1460896,15 +1460896,15 @@ var InstalledBrowser = class {
|
|
|
1460896
1460896
|
/**
|
|
1460897
1460897
|
* @internal
|
|
1460898
1460898
|
*/
|
|
1460899
|
-
constructor(cache3, browser, buildId,
|
|
1460899
|
+
constructor(cache3, browser, buildId, platform) {
|
|
1460900
1460900
|
this.#cache = cache3;
|
|
1460901
1460901
|
this.browser = browser;
|
|
1460902
1460902
|
this.buildId = buildId;
|
|
1460903
|
-
this.platform =
|
|
1460903
|
+
this.platform = platform;
|
|
1460904
1460904
|
this.executablePath = cache3.computeExecutablePath({
|
|
1460905
1460905
|
browser,
|
|
1460906
1460906
|
buildId,
|
|
1460907
|
-
platform
|
|
1460907
|
+
platform
|
|
1460908
1460908
|
});
|
|
1460909
1460909
|
}
|
|
1460910
1460910
|
/**
|
|
@@ -1460961,8 +1460961,8 @@ var Cache = class {
|
|
|
1460961
1460961
|
}
|
|
1460962
1460962
|
return metadata.aliases[alias];
|
|
1460963
1460963
|
}
|
|
1460964
|
-
installationDir(browser,
|
|
1460965
|
-
return import_node_path13.default.join(this.browserRoot(browser), `${
|
|
1460964
|
+
installationDir(browser, platform, buildId) {
|
|
1460965
|
+
return import_node_path13.default.join(this.browserRoot(browser), `${platform}-${buildId}`);
|
|
1460966
1460966
|
}
|
|
1460967
1460967
|
clear() {
|
|
1460968
1460968
|
import_node_fs7.default.rmSync(this.#rootDir, {
|
|
@@ -1460972,14 +1460972,14 @@ var Cache = class {
|
|
|
1460972
1460972
|
retryDelay: 500
|
|
1460973
1460973
|
});
|
|
1460974
1460974
|
}
|
|
1460975
|
-
uninstall(browser,
|
|
1460975
|
+
uninstall(browser, platform, buildId) {
|
|
1460976
1460976
|
const metadata = this.readMetadata(browser);
|
|
1460977
1460977
|
for (const alias of Object.keys(metadata.aliases)) {
|
|
1460978
1460978
|
if (metadata.aliases[alias] === buildId) {
|
|
1460979
1460979
|
delete metadata.aliases[alias];
|
|
1460980
1460980
|
}
|
|
1460981
1460981
|
}
|
|
1460982
|
-
import_node_fs7.default.rmSync(this.installationDir(browser,
|
|
1460982
|
+
import_node_fs7.default.rmSync(this.installationDir(browser, platform, buildId), {
|
|
1460983
1460983
|
force: true,
|
|
1460984
1460984
|
recursive: true,
|
|
1460985
1460985
|
maxRetries: 10,
|
|
@@ -1461027,11 +1461027,11 @@ function parseFolderPath(folderPath) {
|
|
|
1461027
1461027
|
if (splits.length !== 2) {
|
|
1461028
1461028
|
return;
|
|
1461029
1461029
|
}
|
|
1461030
|
-
const [
|
|
1461031
|
-
if (!buildId || !
|
|
1461030
|
+
const [platform, buildId] = splits;
|
|
1461031
|
+
if (!buildId || !platform) {
|
|
1461032
1461032
|
return;
|
|
1461033
1461033
|
}
|
|
1461034
|
-
return { platform
|
|
1461034
|
+
return { platform, buildId };
|
|
1461035
1461035
|
}
|
|
1461036
1461036
|
|
|
1461037
1461037
|
// ../../../node_modules/.pnpm/@puppeteer+browsers@2.10.10/node_modules/@puppeteer/browsers/lib/esm/debug.js
|
|
@@ -1462326,8 +1462326,8 @@ var PuppeteerNode = class extends Puppeteer {
|
|
|
1462326
1462326
|
* @public
|
|
1462327
1462327
|
*/
|
|
1462328
1462328
|
async trimCache() {
|
|
1462329
|
-
const
|
|
1462330
|
-
if (!
|
|
1462329
|
+
const platform = detectBrowserPlatform();
|
|
1462330
|
+
if (!platform) {
|
|
1462331
1462331
|
throw new Error("The current platform is not supported.");
|
|
1462332
1462332
|
}
|
|
1462333
1462333
|
const cacheDir = this.configuration.cacheDirectory;
|
|
@@ -1462348,7 +1462348,7 @@ var PuppeteerNode = class extends Puppeteer {
|
|
|
1462348
1462348
|
];
|
|
1462349
1462349
|
for (const item of puppeteerBrowsers) {
|
|
1462350
1462350
|
const tag = this.configuration?.[item.product]?.version ?? PUPPETEER_REVISIONS[item.product];
|
|
1462351
|
-
item.currentBuildId = await resolveBuildId4(item.browser,
|
|
1462351
|
+
item.currentBuildId = await resolveBuildId4(item.browser, platform, tag);
|
|
1462352
1462352
|
}
|
|
1462353
1462353
|
const currentBrowserBuilds = new Set(puppeteerBrowsers.map((browser) => {
|
|
1462354
1462354
|
return `${browser.browser}_${browser.currentBuildId}`;
|
|
@@ -1462365,7 +1462365,7 @@ var PuppeteerNode = class extends Puppeteer {
|
|
|
1462365
1462365
|
}
|
|
1462366
1462366
|
await uninstall({
|
|
1462367
1462367
|
browser: installedBrowser.browser,
|
|
1462368
|
-
platform
|
|
1462368
|
+
platform,
|
|
1462369
1462369
|
cacheDir,
|
|
1462370
1462370
|
buildId: installedBrowser.buildId
|
|
1462371
1462371
|
});
|
|
@@ -1493932,7 +1493932,7 @@ var CliContext = class {
|
|
|
1493932
1493932
|
if (false) {
|
|
1493933
1493933
|
this.logger.error("CLI_VERSION is not defined");
|
|
1493934
1493934
|
}
|
|
1493935
|
-
return "3.32.0-
|
|
1493935
|
+
return "3.32.0-5-g3b35967bca";
|
|
1493936
1493936
|
}
|
|
1493937
1493937
|
getCliName() {
|
|
1493938
1493938
|
if (false) {
|
|
@@ -1588792,7 +1588792,7 @@ var import_path35 = __toESM(require("path"), 1);
|
|
|
1588792
1588792
|
var LOCAL_STORAGE_FOLDER4 = ".fern-dev";
|
|
1588793
1588793
|
var LOGS_FOLDER_NAME = "logs";
|
|
1588794
1588794
|
function getCliSource() {
|
|
1588795
|
-
const version6 = "3.32.0-
|
|
1588795
|
+
const version6 = "3.32.0-5-g3b35967bca";
|
|
1588796
1588796
|
return `cli@${version6}`;
|
|
1588797
1588797
|
}
|
|
1588798
1588798
|
var DebugLogger = class {
|
|
@@ -1607830,7 +1607830,6 @@ async function checkOutputDirectory(outputPath, cliContext, force) {
|
|
|
1607830
1607830
|
}
|
|
1607831
1607831
|
|
|
1607832
1607832
|
// ../generation/local-generation/local-workspace-runner/lib/AutoVersioningService.js
|
|
1607833
|
-
var os17 = __toESM(require("os"), 1);
|
|
1607834
1607833
|
var AutoVersioningException = class extends Error {
|
|
1607835
1607834
|
constructor(message, cause) {
|
|
1607836
1607835
|
super(message);
|
|
@@ -1608123,13 +1608122,20 @@ var AutoVersioningService = class {
|
|
|
1608123
1608122
|
async replaceMagicVersion(workingDirectory, mappedMagicVersion, finalVersion) {
|
|
1608124
1608123
|
this.logger.debug(`Replacing placeholder version ${mappedMagicVersion} with final version: ${finalVersion}`);
|
|
1608125
1608124
|
const sedCommand = `s/${this.escapeForSed(mappedMagicVersion)}/${this.escapeForSed(finalVersion)}/g`;
|
|
1608126
|
-
|
|
1608127
|
-
|
|
1608125
|
+
let isGNUSed = false;
|
|
1608126
|
+
try {
|
|
1608127
|
+
await loggingExeca(this.logger, "sed", ["--version"], {
|
|
1608128
|
+
doNotPipeOutput: true
|
|
1608129
|
+
});
|
|
1608130
|
+
isGNUSed = true;
|
|
1608131
|
+
} catch {
|
|
1608132
|
+
isGNUSed = false;
|
|
1608133
|
+
}
|
|
1608128
1608134
|
let command;
|
|
1608129
|
-
if (
|
|
1608130
|
-
command = `find "${workingDirectory}" -type f -not -path "*/.git/*" -exec sed -i '' '${sedCommand}' {} +`;
|
|
1608131
|
-
} else {
|
|
1608135
|
+
if (isGNUSed) {
|
|
1608132
1608136
|
command = `find "${workingDirectory}" -type f -not -path "*/.git/*" -exec sed -i '${sedCommand}' {} +`;
|
|
1608137
|
+
} else {
|
|
1608138
|
+
command = `find "${workingDirectory}" -type f -not -path "*/.git/*" -exec sed -i '' '${sedCommand}' {} +`;
|
|
1608133
1608139
|
}
|
|
1608134
1608140
|
await loggingExeca(this.logger, "bash", ["-c", command], {
|
|
1608135
1608141
|
cwd: workingDirectory,
|
package/package.json
CHANGED