@telia-ace/alliance-utilities 1.0.5 → 1.0.6
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/CHANGELOG.md +12 -0
- package/dist/index.js +104 -100
- package/dist/index.js.map +1 -1
- package/dist/translations.d.ts +2 -1
- package/package.json +1 -1
package/CHANGELOG.md
CHANGED
|
@@ -1,5 +1,17 @@
|
|
|
1
1
|
# @telia-ace/alliance-utilities
|
|
2
2
|
|
|
3
|
+
## 1.0.6
|
|
4
|
+
|
|
5
|
+
### Patch Changes
|
|
6
|
+
|
|
7
|
+
- bcb8666: Add new translation text for logging in using dev server.
|
|
8
|
+
|
|
9
|
+
## 1.0.6-next.0
|
|
10
|
+
|
|
11
|
+
### Patch Changes
|
|
12
|
+
|
|
13
|
+
- 4c7f3d9: Add new translation text for logging in using dev server.
|
|
14
|
+
|
|
3
15
|
## 1.0.5
|
|
4
16
|
|
|
5
17
|
### Patch Changes
|
package/dist/index.js
CHANGED
|
@@ -4,7 +4,7 @@ var Le = (e, t, r) => ($n(e, typeof t != "symbol" ? t + "" : t, r), r);
|
|
|
4
4
|
import pr from "fs";
|
|
5
5
|
import Q from "path";
|
|
6
6
|
import { pipeline as Pn } from "stream/promises";
|
|
7
|
-
var dr = /* @__PURE__ */ ((e) => (e[e.Done = 0] = "Done", e[e.NoWorkspaceName = 1] = "NoWorkspaceName", e[e.NoAppName = 2] = "NoAppName", e[e.AlreadyExists = 3] = "AlreadyExists", e[e.NoAppOrWorkspaceInCurrentDirectory = 4] = "NoAppOrWorkspaceInCurrentDirectory", e[e.UnrecognizedCommand = 5] = "UnrecognizedCommand", e[e.WorkspaceCreated = 6] = "WorkspaceCreated", e[e.AppCreated = 7] = "AppCreated", e[e.ServedStopped = 8] = "ServedStopped", e[e.WorkspaceNameInquiry = 9] = "WorkspaceNameInquiry", e[e.AppNameInquiry = 10] = "AppNameInquiry", e[e.ServerModeInquiry = 11] = "ServerModeInquiry", e[e.CreateWorkspaceDescription = 12] = "CreateWorkspaceDescription", e[e.CreateAppDescription = 13] = "CreateAppDescription", e[e.ServeDescription = 14] = "ServeDescription", e[e.BuildDescription = 15] = "BuildDescription", e[e.MissingTranslationKey = 16] = "MissingTranslationKey", e[e.OperationCancelled = 17] = "OperationCancelled", e[e.StopServerInstructions = 18] = "StopServerInstructions", e[e.TemplateLanguageInquiry = 19] = "TemplateLanguageInquiry", e[e.TemplateFrameworkInquiry = 20] = "TemplateFrameworkInquiry", e[e.DevServerPortDescription = 21] = "DevServerPortDescription", e[e.ApiGatewayPortDescription = 22] = "ApiGatewayPortDescription", e[e.ApiServerModeDescription = 23] = "ApiServerModeDescription", e[e.DevServerOpenDescription = 24] = "DevServerOpenDescription", e[e.BuildWatchDescription = 25] = "BuildWatchDescription", e[e.CouldNotStartGatewayInDocker = 26] = "CouldNotStartGatewayInDocker", e[e.PullingLatestImage = 27] = "PullingLatestImage", e[e.AppEntryBuildOptionDescription = 28] = "AppEntryBuildOptionDescription", e[e.ManifestEntryBuildOptionDescription = 29] = "ManifestEntryBuildOptionDescription", e[e.BuildModeOptionDescription = 30] = "BuildModeOptionDescription", e[e.FetchPackageVersionError = 31] = "FetchPackageVersionError", e[e.DockerNotStartedOrInstalled = 32] = "DockerNotStartedOrInstalled", e[e.EnableDevAuthentication = 33] = "EnableDevAuthentication", e[e.NoAppNameFound = 34] = "NoAppNameFound", e[e.AppConfigurationPath = 35] = "AppConfigurationPath", e[e.ServerGatewayMode = 36] = "ServerGatewayMode", e[e.ServerProxyMode = 37] = "ServerProxyMode", e[e.ServerMode = 38] = "ServerMode", e))(dr || {});
|
|
7
|
+
var dr = /* @__PURE__ */ ((e) => (e[e.Done = 0] = "Done", e[e.NoWorkspaceName = 1] = "NoWorkspaceName", e[e.NoAppName = 2] = "NoAppName", e[e.AlreadyExists = 3] = "AlreadyExists", e[e.NoAppOrWorkspaceInCurrentDirectory = 4] = "NoAppOrWorkspaceInCurrentDirectory", e[e.UnrecognizedCommand = 5] = "UnrecognizedCommand", e[e.WorkspaceCreated = 6] = "WorkspaceCreated", e[e.AppCreated = 7] = "AppCreated", e[e.ServedStopped = 8] = "ServedStopped", e[e.WorkspaceNameInquiry = 9] = "WorkspaceNameInquiry", e[e.AppNameInquiry = 10] = "AppNameInquiry", e[e.ServerModeInquiry = 11] = "ServerModeInquiry", e[e.CreateWorkspaceDescription = 12] = "CreateWorkspaceDescription", e[e.CreateAppDescription = 13] = "CreateAppDescription", e[e.ServeDescription = 14] = "ServeDescription", e[e.BuildDescription = 15] = "BuildDescription", e[e.MissingTranslationKey = 16] = "MissingTranslationKey", e[e.OperationCancelled = 17] = "OperationCancelled", e[e.StopServerInstructions = 18] = "StopServerInstructions", e[e.TemplateLanguageInquiry = 19] = "TemplateLanguageInquiry", e[e.TemplateFrameworkInquiry = 20] = "TemplateFrameworkInquiry", e[e.DevServerPortDescription = 21] = "DevServerPortDescription", e[e.ApiGatewayPortDescription = 22] = "ApiGatewayPortDescription", e[e.ApiServerModeDescription = 23] = "ApiServerModeDescription", e[e.DevServerOpenDescription = 24] = "DevServerOpenDescription", e[e.BuildWatchDescription = 25] = "BuildWatchDescription", e[e.CouldNotStartGatewayInDocker = 26] = "CouldNotStartGatewayInDocker", e[e.PullingLatestImage = 27] = "PullingLatestImage", e[e.AppEntryBuildOptionDescription = 28] = "AppEntryBuildOptionDescription", e[e.ManifestEntryBuildOptionDescription = 29] = "ManifestEntryBuildOptionDescription", e[e.BuildModeOptionDescription = 30] = "BuildModeOptionDescription", e[e.FetchPackageVersionError = 31] = "FetchPackageVersionError", e[e.DockerNotStartedOrInstalled = 32] = "DockerNotStartedOrInstalled", e[e.EnableDevAuthentication = 33] = "EnableDevAuthentication", e[e.NoAppNameFound = 34] = "NoAppNameFound", e[e.AppConfigurationPath = 35] = "AppConfigurationPath", e[e.ServerGatewayMode = 36] = "ServerGatewayMode", e[e.ServerProxyMode = 37] = "ServerProxyMode", e[e.ServerMode = 38] = "ServerMode", e[e.DevLoginUrl = 39] = "DevLoginUrl", e))(dr || {});
|
|
8
8
|
const Fn = {
|
|
9
9
|
[
|
|
10
10
|
0
|
|
@@ -162,7 +162,11 @@ const Fn = {
|
|
|
162
162
|
[
|
|
163
163
|
36
|
|
164
164
|
/* ServerGatewayMode */
|
|
165
|
-
]: "Server with gateway"
|
|
165
|
+
]: "Server with gateway",
|
|
166
|
+
[
|
|
167
|
+
39
|
|
168
|
+
/* DevLoginUrl */
|
|
169
|
+
]: "Log in using http://localhost:{0}/-/dev/login"
|
|
166
170
|
}, et = class {
|
|
167
171
|
};
|
|
168
172
|
let je = et;
|
|
@@ -477,14 +481,14 @@ function Mn(e) {
|
|
|
477
481
|
this.busy = !1, this._queue = [], this.fd === null && (this._open = e.open, this._queue.push([this._open, this.path, this.flags, this.mode, void 0]), this.flush());
|
|
478
482
|
}
|
|
479
483
|
}
|
|
480
|
-
var Rn =
|
|
484
|
+
var Rn = Un, Wn = Object.getPrototypeOf || function(e) {
|
|
481
485
|
return e.__proto__;
|
|
482
486
|
};
|
|
483
|
-
function
|
|
487
|
+
function Un(e) {
|
|
484
488
|
if (e === null || typeof e != "object")
|
|
485
489
|
return e;
|
|
486
490
|
if (e instanceof Object)
|
|
487
|
-
var t = { __proto__:
|
|
491
|
+
var t = { __proto__: Wn(e) };
|
|
488
492
|
else
|
|
489
493
|
var t = /* @__PURE__ */ Object.create(null);
|
|
490
494
|
return Object.getOwnPropertyNames(e).forEach(function(r) {
|
|
@@ -514,8 +518,8 @@ var Nt = {}, mr = {}, hr = function() {
|
|
|
514
518
|
return !1;
|
|
515
519
|
}
|
|
516
520
|
return !0;
|
|
517
|
-
},
|
|
518
|
-
return
|
|
521
|
+
}, Tn = hr, tt = function() {
|
|
522
|
+
return Tn() && !!Symbol.toStringTag;
|
|
519
523
|
}, Ht = typeof Symbol < "u" && Symbol, Ln = hr, Gn = function() {
|
|
520
524
|
return typeof Ht != "function" || typeof Symbol != "function" || typeof Ht("foo") != "symbol" || typeof Symbol("bar") != "symbol" ? !1 : Ln();
|
|
521
525
|
}, Jn = "Function.prototype.bind called on incompatible ", ct = Array.prototype.slice, Vn = Object.prototype.toString, zn = "[object Function]", xn = function(t) {
|
|
@@ -934,14 +938,14 @@ if (Ye)
|
|
|
934
938
|
} catch {
|
|
935
939
|
Ye = null;
|
|
936
940
|
}
|
|
937
|
-
var Pr = Ye, Fr = Er, Ri = $r, Mt = _t,
|
|
941
|
+
var Pr = Ye, Fr = Er, Ri = $r, Mt = _t, Wi = Mt("Object.prototype.toString"), kr = tt(), Qe = Pr, Ui = typeof globalThis > "u" ? Ee : globalThis, jr = Ri(), Ti = Mt("Array.prototype.indexOf", !0) || function(t, r) {
|
|
938
942
|
for (var n = 0; n < t.length; n += 1)
|
|
939
943
|
if (t[n] === r)
|
|
940
944
|
return n;
|
|
941
945
|
return -1;
|
|
942
946
|
}, Li = Mt("String.prototype.slice"), Dr = {}, dt = Object.getPrototypeOf;
|
|
943
947
|
kr && Qe && dt && Fr(jr, function(e) {
|
|
944
|
-
var t = new
|
|
948
|
+
var t = new Ui[e]();
|
|
945
949
|
if (Symbol.toStringTag in t) {
|
|
946
950
|
var r = dt(t), n = Qe(r, Symbol.toStringTag);
|
|
947
951
|
if (!n) {
|
|
@@ -964,8 +968,8 @@ var Gi = function(t) {
|
|
|
964
968
|
if (!t || typeof t != "object")
|
|
965
969
|
return !1;
|
|
966
970
|
if (!kr || !(Symbol.toStringTag in t)) {
|
|
967
|
-
var r = Li(
|
|
968
|
-
return
|
|
971
|
+
var r = Li(Wi(t), 8, -1);
|
|
972
|
+
return Ti(jr, r) > -1;
|
|
969
973
|
}
|
|
970
974
|
return Qe ? Gi(t) : !1;
|
|
971
975
|
}, Nr = Er, Ji = $r, Cr = _t, mt = Pr, Vi = Cr("Object.prototype.toString"), Br = tt(), Xt = typeof globalThis > "u" ? Ee : globalThis, zi = Ji(), xi = Cr("String.prototype.slice"), _r = {}, ht = Object.getPrototypeOf;
|
|
@@ -1071,10 +1075,10 @@ var qi = function(t) {
|
|
|
1071
1075
|
return y(l) === "[object Map]";
|
|
1072
1076
|
}
|
|
1073
1077
|
_.working = typeof Map < "u" && _(/* @__PURE__ */ new Map());
|
|
1074
|
-
function
|
|
1078
|
+
function T(l) {
|
|
1075
1079
|
return typeof Map > "u" ? !1 : _.working ? _(l) : l instanceof Map;
|
|
1076
1080
|
}
|
|
1077
|
-
e.isMap =
|
|
1081
|
+
e.isMap = T;
|
|
1078
1082
|
function M(l) {
|
|
1079
1083
|
return y(l) === "[object Set]";
|
|
1080
1084
|
}
|
|
@@ -1091,22 +1095,22 @@ var qi = function(t) {
|
|
|
1091
1095
|
return typeof WeakMap > "u" ? !1 : C.working ? C(l) : l instanceof WeakMap;
|
|
1092
1096
|
}
|
|
1093
1097
|
e.isWeakMap = D;
|
|
1094
|
-
function
|
|
1098
|
+
function W(l) {
|
|
1095
1099
|
return y(l) === "[object WeakSet]";
|
|
1096
1100
|
}
|
|
1097
|
-
|
|
1101
|
+
W.working = typeof WeakSet < "u" && W(/* @__PURE__ */ new WeakSet());
|
|
1098
1102
|
function P(l) {
|
|
1099
|
-
return
|
|
1103
|
+
return W(l);
|
|
1100
1104
|
}
|
|
1101
1105
|
e.isWeakSet = P;
|
|
1102
1106
|
function fe(l) {
|
|
1103
1107
|
return y(l) === "[object ArrayBuffer]";
|
|
1104
1108
|
}
|
|
1105
1109
|
fe.working = typeof ArrayBuffer < "u" && fe(new ArrayBuffer());
|
|
1106
|
-
function
|
|
1110
|
+
function We(l) {
|
|
1107
1111
|
return typeof ArrayBuffer > "u" ? !1 : fe.working ? fe(l) : l instanceof ArrayBuffer;
|
|
1108
1112
|
}
|
|
1109
|
-
e.isArrayBuffer =
|
|
1113
|
+
e.isArrayBuffer = We;
|
|
1110
1114
|
function c(l) {
|
|
1111
1115
|
return y(l) === "[object DataView]";
|
|
1112
1116
|
}
|
|
@@ -1147,28 +1151,28 @@ var qi = function(t) {
|
|
|
1147
1151
|
return S(l, g);
|
|
1148
1152
|
}
|
|
1149
1153
|
e.isNumberObject = se;
|
|
1150
|
-
function
|
|
1154
|
+
function Ue(l) {
|
|
1151
1155
|
return S(l, f);
|
|
1152
1156
|
}
|
|
1153
|
-
e.isStringObject =
|
|
1157
|
+
e.isStringObject = Ue;
|
|
1154
1158
|
function Se(l) {
|
|
1155
1159
|
return S(l, d);
|
|
1156
1160
|
}
|
|
1157
1161
|
e.isBooleanObject = Se;
|
|
1158
|
-
function
|
|
1162
|
+
function Te(l) {
|
|
1159
1163
|
return a && S(l, m);
|
|
1160
1164
|
}
|
|
1161
|
-
e.isBigIntObject =
|
|
1165
|
+
e.isBigIntObject = Te;
|
|
1162
1166
|
function zt(l) {
|
|
1163
1167
|
return u && S(l, h);
|
|
1164
1168
|
}
|
|
1165
1169
|
e.isSymbolObject = zt;
|
|
1166
1170
|
function bn(l) {
|
|
1167
|
-
return se(l) ||
|
|
1171
|
+
return se(l) || Ue(l) || Se(l) || Te(l) || zt(l);
|
|
1168
1172
|
}
|
|
1169
1173
|
e.isBoxedPrimitive = bn;
|
|
1170
1174
|
function An(l) {
|
|
1171
|
-
return typeof Uint8Array < "u" && (
|
|
1175
|
+
return typeof Uint8Array < "u" && (We(l) || j(l));
|
|
1172
1176
|
}
|
|
1173
1177
|
e.isAnyArrayBuffer = An, ["isProxy", "isExternal", "isModuleNamespaceObject"].forEach(function(l) {
|
|
1174
1178
|
Object.defineProperty(e, l, {
|
|
@@ -1348,8 +1352,8 @@ typeof Object.create == "function" ? Zt.exports = function(t, r) {
|
|
|
1348
1352
|
}
|
|
1349
1353
|
var R = "", H = !1, se = ["{", "}"];
|
|
1350
1354
|
if (k(s) && (H = !0, se = ["[", "]"]), _(s)) {
|
|
1351
|
-
var
|
|
1352
|
-
R = " [Function" +
|
|
1355
|
+
var Ue = s.name ? ": " + s.name : "";
|
|
1356
|
+
R = " [Function" + Ue + "]";
|
|
1353
1357
|
}
|
|
1354
1358
|
if (K(s) && (R = " " + RegExp.prototype.toString.call(s)), A(s) && (R = " " + Date.prototype.toUTCString.call(s)), b(s) && (R = " " + m(s)), B.length === 0 && (!H || s.length == 0))
|
|
1355
1359
|
return se[0] + R + se[1];
|
|
@@ -1357,8 +1361,8 @@ typeof Object.create == "function" ? Zt.exports = function(t, r) {
|
|
|
1357
1361
|
return K(s) ? c.stylize(RegExp.prototype.toString.call(s), "regexp") : c.stylize("[Object]", "special");
|
|
1358
1362
|
c.seen.push(s);
|
|
1359
1363
|
var Se;
|
|
1360
|
-
return H ? Se = h(c, s, p, O, B) : Se = B.map(function(
|
|
1361
|
-
return S(c, s, p, O,
|
|
1364
|
+
return H ? Se = h(c, s, p, O, B) : Se = B.map(function(Te) {
|
|
1365
|
+
return S(c, s, p, O, Te, H);
|
|
1362
1366
|
}), c.seen.pop(), $(Se, R, se);
|
|
1363
1367
|
}
|
|
1364
1368
|
function d(c, s) {
|
|
@@ -1380,7 +1384,7 @@ typeof Object.create == "function" ? Zt.exports = function(t, r) {
|
|
|
1380
1384
|
}
|
|
1381
1385
|
function h(c, s, p, w, j) {
|
|
1382
1386
|
for (var B = [], O = 0, F = s.length; O < F; ++O)
|
|
1383
|
-
|
|
1387
|
+
W(s, String(O)) ? B.push(S(
|
|
1384
1388
|
c,
|
|
1385
1389
|
s,
|
|
1386
1390
|
p,
|
|
@@ -1401,7 +1405,7 @@ typeof Object.create == "function" ? Zt.exports = function(t, r) {
|
|
|
1401
1405
|
}
|
|
1402
1406
|
function S(c, s, p, w, j, B) {
|
|
1403
1407
|
var O, F, R;
|
|
1404
|
-
if (R = Object.getOwnPropertyDescriptor(s, j) || { value: s[j] }, R.get ? R.set ? F = c.stylize("[Getter/Setter]", "special") : F = c.stylize("[Getter]", "special") : R.set && (F = c.stylize("[Setter]", "special")),
|
|
1408
|
+
if (R = Object.getOwnPropertyDescriptor(s, j) || { value: s[j] }, R.get ? R.set ? F = c.stylize("[Getter/Setter]", "special") : F = c.stylize("[Getter]", "special") : R.set && (F = c.stylize("[Setter]", "special")), W(w, j) || (O = "[" + j + "]"), F || (c.seen.indexOf(R.value) < 0 ? (L(p) ? F = f(c, R.value, null) : F = f(c, R.value, p - 1), F.indexOf(`
|
|
1405
1409
|
`) > -1 && (B ? F = F.split(`
|
|
1406
1410
|
`).map(function(H) {
|
|
1407
1411
|
return " " + H;
|
|
@@ -1480,11 +1484,11 @@ typeof Object.create == "function" ? Zt.exports = function(t, r) {
|
|
|
1480
1484
|
return typeof c == "function";
|
|
1481
1485
|
}
|
|
1482
1486
|
e.isFunction = _;
|
|
1483
|
-
function
|
|
1487
|
+
function T(c) {
|
|
1484
1488
|
return c === null || typeof c == "boolean" || typeof c == "number" || typeof c == "string" || typeof c == "symbol" || // ES6 symbol
|
|
1485
1489
|
typeof c > "u";
|
|
1486
1490
|
}
|
|
1487
|
-
e.isPrimitive =
|
|
1491
|
+
e.isPrimitive = T, e.isBuffer = Qi;
|
|
1488
1492
|
function M(c) {
|
|
1489
1493
|
return Object.prototype.toString.call(c);
|
|
1490
1494
|
}
|
|
@@ -1522,7 +1526,7 @@ typeof Object.create == "function" ? Zt.exports = function(t, r) {
|
|
|
1522
1526
|
c[p[w]] = s[p[w]];
|
|
1523
1527
|
return c;
|
|
1524
1528
|
};
|
|
1525
|
-
function
|
|
1529
|
+
function W(c, s) {
|
|
1526
1530
|
return Object.prototype.hasOwnProperty.call(c, s);
|
|
1527
1531
|
}
|
|
1528
1532
|
var P = typeof Symbol < "u" ? Symbol("util.promisify.custom") : void 0;
|
|
@@ -1572,7 +1576,7 @@ typeof Object.create == "function" ? Zt.exports = function(t, r) {
|
|
|
1572
1576
|
}
|
|
1573
1577
|
return s(c);
|
|
1574
1578
|
}
|
|
1575
|
-
function
|
|
1579
|
+
function We(c) {
|
|
1576
1580
|
if (typeof c != "function")
|
|
1577
1581
|
throw new TypeError('The "original" argument must be of type Function');
|
|
1578
1582
|
function s() {
|
|
@@ -1598,9 +1602,9 @@ typeof Object.create == "function" ? Zt.exports = function(t, r) {
|
|
|
1598
1602
|
t(c)
|
|
1599
1603
|
), s;
|
|
1600
1604
|
}
|
|
1601
|
-
e.callbackify =
|
|
1605
|
+
e.callbackify = We;
|
|
1602
1606
|
})(Nt);
|
|
1603
|
-
var
|
|
1607
|
+
var U = pr, Xi = Cn, Zi = _n, Ki = Rn, Ge = Nt, V, Ke;
|
|
1604
1608
|
typeof Symbol == "function" && typeof Symbol.for == "function" ? (V = Symbol.for("graceful-fs.queue"), Ke = Symbol.for("graceful-fs.previous")) : (V = "___graceful-fs.queue", Ke = "___graceful-fs.previous");
|
|
1605
1609
|
function eo() {
|
|
1606
1610
|
}
|
|
@@ -1617,70 +1621,70 @@ Ge.debuglog ? pe = Ge.debuglog("gfs4") : /\bgfs4\b/i.test(process.env.NODE_DEBUG
|
|
|
1617
1621
|
e = "GFS4: " + e.split(/\n/).join(`
|
|
1618
1622
|
GFS4: `), console.error(e);
|
|
1619
1623
|
});
|
|
1620
|
-
if (!
|
|
1624
|
+
if (!U[V]) {
|
|
1621
1625
|
var to = Ee[V] || [];
|
|
1622
|
-
Mr(
|
|
1626
|
+
Mr(U, to), U.close = function(e) {
|
|
1623
1627
|
function t(r, n) {
|
|
1624
|
-
return e.call(
|
|
1628
|
+
return e.call(U, r, function(i) {
|
|
1625
1629
|
i || Kt(), typeof n == "function" && n.apply(this, arguments);
|
|
1626
1630
|
});
|
|
1627
1631
|
}
|
|
1628
1632
|
return Object.defineProperty(t, Ke, {
|
|
1629
1633
|
value: e
|
|
1630
1634
|
}), t;
|
|
1631
|
-
}(
|
|
1635
|
+
}(U.close), U.closeSync = function(e) {
|
|
1632
1636
|
function t(r) {
|
|
1633
|
-
e.apply(
|
|
1637
|
+
e.apply(U, arguments), Kt();
|
|
1634
1638
|
}
|
|
1635
1639
|
return Object.defineProperty(t, Ke, {
|
|
1636
1640
|
value: e
|
|
1637
1641
|
}), t;
|
|
1638
|
-
}(
|
|
1639
|
-
pe(
|
|
1642
|
+
}(U.closeSync), /\bgfs4\b/i.test(process.env.NODE_DEBUG || "") && process.on("exit", function() {
|
|
1643
|
+
pe(U[V]), It.equal(U[V].length, 0);
|
|
1640
1644
|
});
|
|
1641
1645
|
}
|
|
1642
|
-
Ee[V] || Mr(Ee,
|
|
1643
|
-
var X = Rt(Ki(
|
|
1644
|
-
process.env.TEST_GRACEFUL_FS_GLOBAL_PATCH && !
|
|
1646
|
+
Ee[V] || Mr(Ee, U[V]);
|
|
1647
|
+
var X = Rt(Ki(U));
|
|
1648
|
+
process.env.TEST_GRACEFUL_FS_GLOBAL_PATCH && !U.__patched && (X = Rt(U), U.__patched = !0);
|
|
1645
1649
|
function Rt(e) {
|
|
1646
1650
|
Xi(e), e.gracefulify = Rt, e.createReadStream = ie, e.createWriteStream = he;
|
|
1647
1651
|
var t = e.readFile;
|
|
1648
1652
|
e.readFile = r;
|
|
1649
1653
|
function r(v, A, b) {
|
|
1650
1654
|
return typeof A == "function" && (b = A, A = null), _(v, A, b);
|
|
1651
|
-
function _(
|
|
1652
|
-
return t(
|
|
1653
|
-
D && (D.code === "EMFILE" || D.code === "ENFILE") ? ve([_, [
|
|
1655
|
+
function _(T, M, N, C) {
|
|
1656
|
+
return t(T, M, function(D) {
|
|
1657
|
+
D && (D.code === "EMFILE" || D.code === "ENFILE") ? ve([_, [T, M, N], D, C || Date.now(), Date.now()]) : typeof N == "function" && N.apply(this, arguments);
|
|
1654
1658
|
});
|
|
1655
1659
|
}
|
|
1656
1660
|
}
|
|
1657
1661
|
var n = e.writeFile;
|
|
1658
1662
|
e.writeFile = i;
|
|
1659
1663
|
function i(v, A, b, _) {
|
|
1660
|
-
return typeof b == "function" && (_ = b, b = null),
|
|
1661
|
-
function
|
|
1664
|
+
return typeof b == "function" && (_ = b, b = null), T(v, A, b, _);
|
|
1665
|
+
function T(M, N, C, D, W) {
|
|
1662
1666
|
return n(M, N, C, function(P) {
|
|
1663
|
-
P && (P.code === "EMFILE" || P.code === "ENFILE") ? ve([
|
|
1667
|
+
P && (P.code === "EMFILE" || P.code === "ENFILE") ? ve([T, [M, N, C, D], P, W || Date.now(), Date.now()]) : typeof D == "function" && D.apply(this, arguments);
|
|
1664
1668
|
});
|
|
1665
1669
|
}
|
|
1666
1670
|
}
|
|
1667
1671
|
var o = e.appendFile;
|
|
1668
1672
|
o && (e.appendFile = a);
|
|
1669
1673
|
function a(v, A, b, _) {
|
|
1670
|
-
return typeof b == "function" && (_ = b, b = null),
|
|
1671
|
-
function
|
|
1674
|
+
return typeof b == "function" && (_ = b, b = null), T(v, A, b, _);
|
|
1675
|
+
function T(M, N, C, D, W) {
|
|
1672
1676
|
return o(M, N, C, function(P) {
|
|
1673
|
-
P && (P.code === "EMFILE" || P.code === "ENFILE") ? ve([
|
|
1677
|
+
P && (P.code === "EMFILE" || P.code === "ENFILE") ? ve([T, [M, N, C, D], P, W || Date.now(), Date.now()]) : typeof D == "function" && D.apply(this, arguments);
|
|
1674
1678
|
});
|
|
1675
1679
|
}
|
|
1676
1680
|
}
|
|
1677
1681
|
var u = e.copyFile;
|
|
1678
1682
|
u && (e.copyFile = y);
|
|
1679
1683
|
function y(v, A, b, _) {
|
|
1680
|
-
return typeof b == "function" && (_ = b, b = 0),
|
|
1681
|
-
function
|
|
1684
|
+
return typeof b == "function" && (_ = b, b = 0), T(v, A, b, _);
|
|
1685
|
+
function T(M, N, C, D, W) {
|
|
1682
1686
|
return u(M, N, C, function(P) {
|
|
1683
|
-
P && (P.code === "EMFILE" || P.code === "ENFILE") ? ve([
|
|
1687
|
+
P && (P.code === "EMFILE" || P.code === "ENFILE") ? ve([T, [M, N, C, D], P, W || Date.now(), Date.now()]) : typeof D == "function" && D.apply(this, arguments);
|
|
1684
1688
|
});
|
|
1685
1689
|
}
|
|
1686
1690
|
}
|
|
@@ -1689,31 +1693,31 @@ function Rt(e) {
|
|
|
1689
1693
|
var f = /^v[0-5]\./;
|
|
1690
1694
|
function d(v, A, b) {
|
|
1691
1695
|
typeof A == "function" && (b = A, A = null);
|
|
1692
|
-
var _ = f.test(process.version) ? function(N, C, D,
|
|
1693
|
-
return g(N,
|
|
1696
|
+
var _ = f.test(process.version) ? function(N, C, D, W) {
|
|
1697
|
+
return g(N, T(
|
|
1694
1698
|
N,
|
|
1695
1699
|
C,
|
|
1696
1700
|
D,
|
|
1697
|
-
|
|
1701
|
+
W
|
|
1698
1702
|
));
|
|
1699
|
-
} : function(N, C, D,
|
|
1700
|
-
return g(N, C,
|
|
1703
|
+
} : function(N, C, D, W) {
|
|
1704
|
+
return g(N, C, T(
|
|
1701
1705
|
N,
|
|
1702
1706
|
C,
|
|
1703
1707
|
D,
|
|
1704
|
-
|
|
1708
|
+
W
|
|
1705
1709
|
));
|
|
1706
1710
|
};
|
|
1707
1711
|
return _(v, A, b);
|
|
1708
|
-
function
|
|
1709
|
-
return function(
|
|
1710
|
-
|
|
1712
|
+
function T(M, N, C, D) {
|
|
1713
|
+
return function(W, P) {
|
|
1714
|
+
W && (W.code === "EMFILE" || W.code === "ENFILE") ? ve([
|
|
1711
1715
|
_,
|
|
1712
1716
|
[M, N, C],
|
|
1713
|
-
|
|
1717
|
+
W,
|
|
1714
1718
|
D || Date.now(),
|
|
1715
1719
|
Date.now()
|
|
1716
|
-
]) : (P && P.sort && P.sort(), typeof C == "function" && C.call(this,
|
|
1720
|
+
]) : (P && P.sort && P.sort(), typeof C == "function" && C.call(this, W, P));
|
|
1717
1721
|
};
|
|
1718
1722
|
}
|
|
1719
1723
|
}
|
|
@@ -1792,27 +1796,27 @@ function Rt(e) {
|
|
|
1792
1796
|
var Z = e.open;
|
|
1793
1797
|
e.open = K;
|
|
1794
1798
|
function K(v, A, b, _) {
|
|
1795
|
-
return typeof b == "function" && (_ = b, b = null),
|
|
1796
|
-
function
|
|
1799
|
+
return typeof b == "function" && (_ = b, b = null), T(v, A, b, _);
|
|
1800
|
+
function T(M, N, C, D, W) {
|
|
1797
1801
|
return Z(M, N, C, function(P, fe) {
|
|
1798
|
-
P && (P.code === "EMFILE" || P.code === "ENFILE") ? ve([
|
|
1802
|
+
P && (P.code === "EMFILE" || P.code === "ENFILE") ? ve([T, [M, N, C, D], P, W || Date.now(), Date.now()]) : typeof D == "function" && D.apply(this, arguments);
|
|
1799
1803
|
});
|
|
1800
1804
|
}
|
|
1801
1805
|
}
|
|
1802
1806
|
return e;
|
|
1803
1807
|
}
|
|
1804
1808
|
function ve(e) {
|
|
1805
|
-
pe("ENQUEUE", e[0].name, e[1]),
|
|
1809
|
+
pe("ENQUEUE", e[0].name, e[1]), U[V].push(e), Wt();
|
|
1806
1810
|
}
|
|
1807
1811
|
var Je;
|
|
1808
1812
|
function Kt() {
|
|
1809
|
-
for (var e = Date.now(), t = 0; t <
|
|
1810
|
-
|
|
1811
|
-
|
|
1813
|
+
for (var e = Date.now(), t = 0; t < U[V].length; ++t)
|
|
1814
|
+
U[V][t].length > 2 && (U[V][t][3] = e, U[V][t][4] = e);
|
|
1815
|
+
Wt();
|
|
1812
1816
|
}
|
|
1813
|
-
function
|
|
1814
|
-
if (clearTimeout(Je), Je = void 0,
|
|
1815
|
-
var e =
|
|
1817
|
+
function Wt() {
|
|
1818
|
+
if (clearTimeout(Je), Je = void 0, U[V].length !== 0) {
|
|
1819
|
+
var e = U[V].shift(), t = e[0], r = e[1], n = e[2], i = e[3], o = e[4];
|
|
1816
1820
|
if (i === void 0)
|
|
1817
1821
|
pe("RETRY", t.name, r), t.apply(null, r);
|
|
1818
1822
|
else if (Date.now() - i >= 6e4) {
|
|
@@ -1821,9 +1825,9 @@ function Tt() {
|
|
|
1821
1825
|
typeof a == "function" && a.call(null, n);
|
|
1822
1826
|
} else {
|
|
1823
1827
|
var u = Date.now() - o, y = Math.max(o - i, 1), g = Math.min(y * 1.2, 100);
|
|
1824
|
-
u >= g ? (pe("RETRY", t.name, r), t.apply(null, r.concat([i]))) :
|
|
1828
|
+
u >= g ? (pe("RETRY", t.name, r), t.apply(null, r.concat([i]))) : U[V].push(e);
|
|
1825
1829
|
}
|
|
1826
|
-
Je === void 0 && (Je = setTimeout(
|
|
1830
|
+
Je === void 0 && (Je = setTimeout(Wt, 0));
|
|
1827
1831
|
}
|
|
1828
1832
|
}
|
|
1829
1833
|
(function(e) {
|
|
@@ -1905,7 +1909,7 @@ function Tt() {
|
|
|
1905
1909
|
"fs-extra-WARN0003"
|
|
1906
1910
|
);
|
|
1907
1911
|
})(de);
|
|
1908
|
-
var
|
|
1912
|
+
var Ut = {}, Rr = {};
|
|
1909
1913
|
const ro = Q;
|
|
1910
1914
|
Rr.checkPath = function(t) {
|
|
1911
1915
|
if (process.platform === "win32" && /[<>:"|?*]/.test(t.replace(ro.parse(t).root, ""))) {
|
|
@@ -1913,19 +1917,19 @@ Rr.checkPath = function(t) {
|
|
|
1913
1917
|
throw n.code = "EINVAL", n;
|
|
1914
1918
|
}
|
|
1915
1919
|
};
|
|
1916
|
-
const
|
|
1920
|
+
const Wr = de, { checkPath: Ur } = Rr, Tr = (e) => {
|
|
1917
1921
|
const t = { mode: 511 };
|
|
1918
1922
|
return typeof e == "number" ? e : { ...t, ...e }.mode;
|
|
1919
1923
|
};
|
|
1920
|
-
|
|
1921
|
-
mode:
|
|
1924
|
+
Ut.makeDir = async (e, t) => (Ur(e), Wr.mkdir(e, {
|
|
1925
|
+
mode: Tr(t),
|
|
1922
1926
|
recursive: !0
|
|
1923
1927
|
}));
|
|
1924
|
-
|
|
1925
|
-
mode:
|
|
1928
|
+
Ut.makeDirSync = (e, t) => (Ur(e), Wr.mkdirSync(e, {
|
|
1929
|
+
mode: Tr(t),
|
|
1926
1930
|
recursive: !0
|
|
1927
1931
|
}));
|
|
1928
|
-
const no = q.fromPromise, { makeDir: io, makeDirSync: St } =
|
|
1932
|
+
const no = q.fromPromise, { makeDir: io, makeDirSync: St } = Ut, gt = no(io);
|
|
1929
1933
|
var ne = {
|
|
1930
1934
|
mkdirs: gt,
|
|
1931
1935
|
mkdirsSync: St,
|
|
@@ -2002,7 +2006,7 @@ function yo(e, t, r, n, i) {
|
|
|
2002
2006
|
if (!u.isDirectory() && y.isDirectory())
|
|
2003
2007
|
return i(new Error(`Cannot overwrite directory '${t}' with non-directory '${e}'.`));
|
|
2004
2008
|
}
|
|
2005
|
-
return u.isDirectory() &&
|
|
2009
|
+
return u.isDirectory() && Tt(e, t) ? i(new Error(nt(e, t, r))) : i(null, { srcStat: u, destStat: y });
|
|
2006
2010
|
});
|
|
2007
2011
|
}
|
|
2008
2012
|
function po(e, t, r, n) {
|
|
@@ -2019,7 +2023,7 @@ function po(e, t, r, n) {
|
|
|
2019
2023
|
if (!i.isDirectory() && o.isDirectory())
|
|
2020
2024
|
throw new Error(`Cannot overwrite directory '${t}' with non-directory '${e}'.`);
|
|
2021
2025
|
}
|
|
2022
|
-
if (i.isDirectory() &&
|
|
2026
|
+
if (i.isDirectory() && Tt(e, t))
|
|
2023
2027
|
throw new Error(nt(e, t, r));
|
|
2024
2028
|
return { srcStat: i, destStat: o };
|
|
2025
2029
|
}
|
|
@@ -2048,7 +2052,7 @@ function Vr(e, t, r, n) {
|
|
|
2048
2052
|
function Re(e, t) {
|
|
2049
2053
|
return t.ino && t.dev && t.ino === e.ino && t.dev === e.dev;
|
|
2050
2054
|
}
|
|
2051
|
-
function
|
|
2055
|
+
function Tt(e, t) {
|
|
2052
2056
|
const r = J.resolve(e).split(J.sep).filter((i) => i), n = J.resolve(t).split(J.sep).filter((i) => i);
|
|
2053
2057
|
return r.reduce((i, o, a) => i && n[a] === o, !0);
|
|
2054
2058
|
}
|
|
@@ -2060,7 +2064,7 @@ var ke = {
|
|
|
2060
2064
|
checkPathsSync: po,
|
|
2061
2065
|
checkParentPaths: Jr,
|
|
2062
2066
|
checkParentPathsSync: Vr,
|
|
2063
|
-
isSrcSubdir:
|
|
2067
|
+
isSrcSubdir: Tt,
|
|
2064
2068
|
areIdentical: Re
|
|
2065
2069
|
};
|
|
2066
2070
|
const Y = X, Ne = Q, mo = ne.mkdirs, ho = me.pathExists, So = Gr.utimesMillis, Ce = ke;
|
|
@@ -2221,18 +2225,18 @@ function Yr(e, t, r, n) {
|
|
|
2221
2225
|
return z.copyFileSync(t, r), n.preserveTimestamps && Ro(e.mode, t, r), Lt(r, e.mode);
|
|
2222
2226
|
}
|
|
2223
2227
|
function Ro(e, t, r) {
|
|
2224
|
-
return
|
|
2228
|
+
return Wo(e) && Uo(r, e), To(t, r);
|
|
2225
2229
|
}
|
|
2226
|
-
function
|
|
2230
|
+
function Wo(e) {
|
|
2227
2231
|
return (e & 128) === 0;
|
|
2228
2232
|
}
|
|
2229
|
-
function
|
|
2233
|
+
function Uo(e, t) {
|
|
2230
2234
|
return Lt(e, t | 128);
|
|
2231
2235
|
}
|
|
2232
2236
|
function Lt(e, t) {
|
|
2233
2237
|
return z.chmodSync(e, t);
|
|
2234
2238
|
}
|
|
2235
|
-
function
|
|
2239
|
+
function To(e, t) {
|
|
2236
2240
|
const r = z.statSync(e);
|
|
2237
2241
|
return Co(t, r.atime, r.mtime);
|
|
2238
2242
|
}
|
|
@@ -2629,11 +2633,11 @@ var Ra = {
|
|
|
2629
2633
|
writeJson: Ve.writeFile,
|
|
2630
2634
|
writeJsonSync: Ve.writeFileSync
|
|
2631
2635
|
};
|
|
2632
|
-
const
|
|
2633
|
-
function
|
|
2636
|
+
const Wa = q.fromCallback, Ie = X, hn = Q, Sn = ne, Ua = me.pathExists;
|
|
2637
|
+
function Ta(e, t, r, n) {
|
|
2634
2638
|
typeof r == "function" && (n = r, r = "utf8");
|
|
2635
2639
|
const i = hn.dirname(e);
|
|
2636
|
-
|
|
2640
|
+
Ua(i, (o, a) => {
|
|
2637
2641
|
if (o)
|
|
2638
2642
|
return n(o);
|
|
2639
2643
|
if (a)
|
|
@@ -2652,7 +2656,7 @@ function La(e, ...t) {
|
|
|
2652
2656
|
Sn.mkdirsSync(r), Ie.writeFileSync(e, ...t);
|
|
2653
2657
|
}
|
|
2654
2658
|
var Vt = {
|
|
2655
|
-
outputFile: Ta
|
|
2659
|
+
outputFile: Wa(Ta),
|
|
2656
2660
|
outputFileSync: La
|
|
2657
2661
|
};
|
|
2658
2662
|
const { stringify: Ga } = Jt, { outputFile: Ja } = Vt;
|