@sap/ux-ui5-tooling 1.10.6 → 1.11.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/CHANGELOG.md +4 -1
- package/dist/cli/index.js +12140 -8630
- package/dist/middlewares/fiori-tools-appreload.js +379 -132
- package/dist/middlewares/fiori-tools-preview.js +9025 -6539
- package/dist/middlewares/fiori-tools-proxy.js +12453 -6845
- package/dist/middlewares/fiori-tools-servestatic.js +331 -140
- package/dist/tasks/cf-deploy/index.js +8975 -6490
- package/dist/tasks/deploy/index.js +11200 -6690
- package/dist/templates/control-property-editor/app.css +1 -1
- package/dist/templates/control-property-editor/app.js +117 -301
- package/dist/templates/control-property-editor/ui5-adaptation.js +1 -1
- package/package.json +10 -10
|
@@ -22,7 +22,14 @@ var __copyProps = (to, from, except, desc) => {
|
|
|
22
22
|
}
|
|
23
23
|
return to;
|
|
24
24
|
};
|
|
25
|
-
var __toESM = (mod, isNodeMode, target) => (target = mod != null ? __create(__getProtoOf(mod)) : {}, __copyProps(
|
|
25
|
+
var __toESM = (mod, isNodeMode, target) => (target = mod != null ? __create(__getProtoOf(mod)) : {}, __copyProps(
|
|
26
|
+
// If the importer is in node compatibility mode or this is not an ESM
|
|
27
|
+
// file that has been converted to a CommonJS file using a Babel-
|
|
28
|
+
// compatible transform (i.e. "__esModule" has not been set), then set
|
|
29
|
+
// "default" to the CommonJS "module.exports" for node compatibility.
|
|
30
|
+
isNodeMode || !mod || !mod.__esModule ? __defProp(target, "default", { value: mod, enumerable: true }) : target,
|
|
31
|
+
mod
|
|
32
|
+
));
|
|
26
33
|
var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod);
|
|
27
34
|
|
|
28
35
|
// ../../node_modules/@ui5/logger/node_modules/are-we-there-yet/tracker-base.js
|
|
@@ -251,7 +258,8 @@ var require_util = __commonJS({
|
|
|
251
258
|
}
|
|
252
259
|
exports.isFunction = isFunction;
|
|
253
260
|
function isPrimitive(arg) {
|
|
254
|
-
return arg === null || typeof arg === "boolean" || typeof arg === "number" || typeof arg === "string" || typeof arg === "symbol" ||
|
|
261
|
+
return arg === null || typeof arg === "boolean" || typeof arg === "number" || typeof arg === "string" || typeof arg === "symbol" || // ES6 symbol
|
|
262
|
+
typeof arg === "undefined";
|
|
255
263
|
}
|
|
256
264
|
exports.isPrimitive = isPrimitive;
|
|
257
265
|
exports.isBuffer = Buffer.isBuffer;
|
|
@@ -673,6 +681,9 @@ var require_stream_writable = __commonJS({
|
|
|
673
681
|
return chunk;
|
|
674
682
|
}
|
|
675
683
|
Object.defineProperty(Writable.prototype, "writableHighWaterMark", {
|
|
684
|
+
// making it explicit this property is not enumerable
|
|
685
|
+
// because otherwise some prototype manipulation in
|
|
686
|
+
// userland will fail
|
|
676
687
|
enumerable: false,
|
|
677
688
|
get: function() {
|
|
678
689
|
return this._writableState.highWaterMark;
|
|
@@ -976,6 +987,9 @@ var require_stream_duplex = __commonJS({
|
|
|
976
987
|
this.once("end", onend);
|
|
977
988
|
}
|
|
978
989
|
Object.defineProperty(Duplex.prototype, "writableHighWaterMark", {
|
|
990
|
+
// making it explicit this property is not enumerable
|
|
991
|
+
// because otherwise some prototype manipulation in
|
|
992
|
+
// userland will fail
|
|
979
993
|
enumerable: false,
|
|
980
994
|
get: function() {
|
|
981
995
|
return this._writableState.highWaterMark;
|
|
@@ -1904,6 +1918,9 @@ var require_stream_readable = __commonJS({
|
|
|
1904
1918
|
return this;
|
|
1905
1919
|
};
|
|
1906
1920
|
Object.defineProperty(Readable.prototype, "readableHighWaterMark", {
|
|
1921
|
+
// making it explicit this property is not enumerable
|
|
1922
|
+
// because otherwise some prototype manipulation in
|
|
1923
|
+
// userland will fail
|
|
1907
1924
|
enumerable: false,
|
|
1908
1925
|
get: function() {
|
|
1909
1926
|
return this._readableState.highWaterMark;
|
|
@@ -2315,7 +2332,9 @@ var require_tracker_group = __commonJS({
|
|
|
2315
2332
|
var toTest = this;
|
|
2316
2333
|
while (toTest) {
|
|
2317
2334
|
if (unit === toTest) {
|
|
2318
|
-
throw new Error(
|
|
2335
|
+
throw new Error(
|
|
2336
|
+
"Attempted to add tracker group " + unit.name + " to tree that already includes it " + this.nameInTree(this)
|
|
2337
|
+
);
|
|
2319
2338
|
}
|
|
2320
2339
|
toTest = toTest.parentGroup;
|
|
2321
2340
|
}
|
|
@@ -2439,14 +2458,17 @@ var require_console_control_strings = __commonJS({
|
|
|
2439
2458
|
};
|
|
2440
2459
|
var colors = {
|
|
2441
2460
|
reset: 0,
|
|
2461
|
+
// styles
|
|
2442
2462
|
bold: 1,
|
|
2443
2463
|
italic: 3,
|
|
2444
2464
|
underline: 4,
|
|
2445
2465
|
inverse: 7,
|
|
2466
|
+
// resets
|
|
2446
2467
|
stopBold: 22,
|
|
2447
2468
|
stopItalic: 23,
|
|
2448
2469
|
stopUnderline: 24,
|
|
2449
2470
|
stopInverse: 27,
|
|
2471
|
+
// colors
|
|
2450
2472
|
white: 37,
|
|
2451
2473
|
black: 30,
|
|
2452
2474
|
blue: 34,
|
|
@@ -2527,7 +2549,22 @@ var require_is_fullwidth_code_point = __commonJS({
|
|
|
2527
2549
|
if (Number.isNaN(x)) {
|
|
2528
2550
|
return false;
|
|
2529
2551
|
}
|
|
2530
|
-
if (x >= 4352 && (x <= 4447 ||
|
|
2552
|
+
if (x >= 4352 && (x <= 4447 || // Hangul Jamo
|
|
2553
|
+
x === 9001 || // LEFT-POINTING ANGLE BRACKET
|
|
2554
|
+
x === 9002 || // RIGHT-POINTING ANGLE BRACKET
|
|
2555
|
+
// CJK Radicals Supplement .. Enclosed CJK Letters and Months
|
|
2556
|
+
11904 <= x && x <= 12871 && x !== 12351 || // Enclosed CJK Letters and Months .. CJK Unified Ideographs Extension A
|
|
2557
|
+
12880 <= x && x <= 19903 || // CJK Unified Ideographs .. Yi Radicals
|
|
2558
|
+
19968 <= x && x <= 42182 || // Hangul Jamo Extended-A
|
|
2559
|
+
43360 <= x && x <= 43388 || // Hangul Syllables
|
|
2560
|
+
44032 <= x && x <= 55203 || // CJK Compatibility Ideographs
|
|
2561
|
+
63744 <= x && x <= 64255 || // Vertical Forms
|
|
2562
|
+
65040 <= x && x <= 65049 || // CJK Compatibility Forms .. Small Form Variants
|
|
2563
|
+
65072 <= x && x <= 65131 || // Halfwidth and Fullwidth Forms
|
|
2564
|
+
65281 <= x && x <= 65376 || 65504 <= x && x <= 65510 || // Kana Supplement
|
|
2565
|
+
110592 <= x && x <= 110593 || // Enclosed Ideographic Supplement
|
|
2566
|
+
127488 <= x && x <= 127569 || // CJK Unified Ideographs Extension B .. Tertiary Ideographic Plane
|
|
2567
|
+
131072 <= x && x <= 262141)) {
|
|
2531
2568
|
return true;
|
|
2532
2569
|
}
|
|
2533
2570
|
return false;
|
|
@@ -2741,7 +2778,10 @@ var require_aproba = __commonJS({
|
|
|
2741
2778
|
return newException("EWRONGARGCOUNT", "Expected " + english + " " + args + " but got " + got);
|
|
2742
2779
|
}
|
|
2743
2780
|
function moreThanOneError(schema) {
|
|
2744
|
-
return newException(
|
|
2781
|
+
return newException(
|
|
2782
|
+
"ETOOMANYERRORTYPES",
|
|
2783
|
+
'Only one error type per argument signature is allowed, more than one found in "' + schema + '"'
|
|
2784
|
+
);
|
|
2745
2785
|
}
|
|
2746
2786
|
function newException(code, msg) {
|
|
2747
2787
|
var e = new Error(msg);
|
|
@@ -2882,7 +2922,22 @@ var require_is_fullwidth_code_point2 = __commonJS({
|
|
|
2882
2922
|
if (numberIsNan(x)) {
|
|
2883
2923
|
return false;
|
|
2884
2924
|
}
|
|
2885
|
-
if (x >= 4352 && (x <= 4447 ||
|
|
2925
|
+
if (x >= 4352 && (x <= 4447 || // Hangul Jamo
|
|
2926
|
+
9001 === x || // LEFT-POINTING ANGLE BRACKET
|
|
2927
|
+
9002 === x || // RIGHT-POINTING ANGLE BRACKET
|
|
2928
|
+
// CJK Radicals Supplement .. Enclosed CJK Letters and Months
|
|
2929
|
+
11904 <= x && x <= 12871 && x !== 12351 || // Enclosed CJK Letters and Months .. CJK Unified Ideographs Extension A
|
|
2930
|
+
12880 <= x && x <= 19903 || // CJK Unified Ideographs .. Yi Radicals
|
|
2931
|
+
19968 <= x && x <= 42182 || // Hangul Jamo Extended-A
|
|
2932
|
+
43360 <= x && x <= 43388 || // Hangul Syllables
|
|
2933
|
+
44032 <= x && x <= 55203 || // CJK Compatibility Ideographs
|
|
2934
|
+
63744 <= x && x <= 64255 || // Vertical Forms
|
|
2935
|
+
65040 <= x && x <= 65049 || // CJK Compatibility Forms .. Small Form Variants
|
|
2936
|
+
65072 <= x && x <= 65131 || // Halfwidth and Fullwidth Forms
|
|
2937
|
+
65281 <= x && x <= 65376 || 65504 <= x && x <= 65510 || // Kana Supplement
|
|
2938
|
+
110592 <= x && x <= 110593 || // Enclosed Ideographic Supplement
|
|
2939
|
+
127488 <= x && x <= 127569 || // CJK Unified Ideographs Extension B .. Tertiary Ideographic Plane
|
|
2940
|
+
131072 <= x && x <= 262141)) {
|
|
2886
2941
|
return true;
|
|
2887
2942
|
}
|
|
2888
2943
|
return false;
|
|
@@ -3323,10 +3378,28 @@ var require_signals = __commonJS({
|
|
|
3323
3378
|
"SIGTERM"
|
|
3324
3379
|
];
|
|
3325
3380
|
if (process.platform !== "win32") {
|
|
3326
|
-
module2.exports.push(
|
|
3381
|
+
module2.exports.push(
|
|
3382
|
+
"SIGVTALRM",
|
|
3383
|
+
"SIGXCPU",
|
|
3384
|
+
"SIGXFSZ",
|
|
3385
|
+
"SIGUSR2",
|
|
3386
|
+
"SIGTRAP",
|
|
3387
|
+
"SIGSYS",
|
|
3388
|
+
"SIGQUIT",
|
|
3389
|
+
"SIGIOT"
|
|
3390
|
+
// should detect profiler and enable/disable accordingly.
|
|
3391
|
+
// see #21
|
|
3392
|
+
// 'SIGPROF'
|
|
3393
|
+
);
|
|
3327
3394
|
}
|
|
3328
3395
|
if (process.platform === "linux") {
|
|
3329
|
-
module2.exports.push(
|
|
3396
|
+
module2.exports.push(
|
|
3397
|
+
"SIGIO",
|
|
3398
|
+
"SIGPOLL",
|
|
3399
|
+
"SIGPWR",
|
|
3400
|
+
"SIGSTKFLT",
|
|
3401
|
+
"SIGUNUSED"
|
|
3402
|
+
);
|
|
3330
3403
|
}
|
|
3331
3404
|
}
|
|
3332
3405
|
});
|
|
@@ -3611,7 +3684,9 @@ var require_theme_set = __commonJS({
|
|
|
3611
3684
|
return err;
|
|
3612
3685
|
};
|
|
3613
3686
|
ThemeSetProto.newMissingDefaultThemeError = function newMissingDefaultThemeError(platformName, hasUnicode, hasColor) {
|
|
3614
|
-
var err = new Error(
|
|
3687
|
+
var err = new Error(
|
|
3688
|
+
"Could not find a gauge theme for your platform/unicode/color use combo:\n platform = " + platformName + "\n hasUnicode = " + hasUnicode + "\n hasColor = " + hasColor
|
|
3689
|
+
);
|
|
3615
3690
|
Error.captureStackTrace.call(err, newMissingDefaultThemeError);
|
|
3616
3691
|
err.platform = platformName;
|
|
3617
3692
|
err.hasUnicode = hasUnicode;
|
|
@@ -4000,6 +4075,7 @@ var require_log = __commonJS({
|
|
|
4000
4075
|
log3.level = "info";
|
|
4001
4076
|
log3.gauge = new Gauge(stream, {
|
|
4002
4077
|
enabled: false,
|
|
4078
|
+
// no progress bars unless asked
|
|
4003
4079
|
theme: { hasColor: log3.useColor() },
|
|
4004
4080
|
template: [
|
|
4005
4081
|
{ type: "progressbar", length: 20 },
|
|
@@ -4123,7 +4199,10 @@ var require_log = __commonJS({
|
|
|
4123
4199
|
log3.log = function(lvl, prefix, message) {
|
|
4124
4200
|
var l = this.levels[lvl];
|
|
4125
4201
|
if (l === void 0) {
|
|
4126
|
-
return this.emit("error", new Error(util.format(
|
|
4202
|
+
return this.emit("error", new Error(util.format(
|
|
4203
|
+
"Undefined log level: %j",
|
|
4204
|
+
lvl
|
|
4205
|
+
)));
|
|
4127
4206
|
}
|
|
4128
4207
|
var a = new Array(arguments.length - 2);
|
|
4129
4208
|
var stack = null;
|
|
@@ -4319,7 +4398,7 @@ var require_logger = __commonJS({
|
|
|
4319
4398
|
return this._logger;
|
|
4320
4399
|
}
|
|
4321
4400
|
};
|
|
4322
|
-
var GroupLogger = class extends Logger2 {
|
|
4401
|
+
var GroupLogger = class _GroupLogger extends Logger2 {
|
|
4323
4402
|
constructor(moduleName, weight = 0, parentLogger) {
|
|
4324
4403
|
super(moduleName);
|
|
4325
4404
|
if (parentLogger) {
|
|
@@ -4329,7 +4408,7 @@ var require_logger = __commonJS({
|
|
|
4329
4408
|
}
|
|
4330
4409
|
}
|
|
4331
4410
|
createSubLogger(name, weight) {
|
|
4332
|
-
return new
|
|
4411
|
+
return new _GroupLogger(this._moduleName + " " + name, weight, this);
|
|
4333
4412
|
}
|
|
4334
4413
|
createTaskLogger(name, todo, weight) {
|
|
4335
4414
|
return new TaskLogger(this._moduleName + " " + name, todo, weight, this);
|
|
@@ -4684,14 +4763,18 @@ var require_enhanceError = __commonJS({
|
|
|
4684
4763
|
error2.isAxiosError = true;
|
|
4685
4764
|
error2.toJSON = function toJSON() {
|
|
4686
4765
|
return {
|
|
4766
|
+
// Standard
|
|
4687
4767
|
message: this.message,
|
|
4688
4768
|
name: this.name,
|
|
4769
|
+
// Microsoft
|
|
4689
4770
|
description: this.description,
|
|
4690
4771
|
number: this.number,
|
|
4772
|
+
// Mozilla
|
|
4691
4773
|
fileName: this.fileName,
|
|
4692
4774
|
lineNumber: this.lineNumber,
|
|
4693
4775
|
columnNumber: this.columnNumber,
|
|
4694
4776
|
stack: this.stack,
|
|
4777
|
+
// Axios
|
|
4695
4778
|
config: this.config,
|
|
4696
4779
|
code: this.code,
|
|
4697
4780
|
status: this.response && this.response.status ? this.response.status : null
|
|
@@ -4724,7 +4807,13 @@ var require_settle = __commonJS({
|
|
|
4724
4807
|
if (!response.status || !validateStatus || validateStatus(response.status)) {
|
|
4725
4808
|
resolve(response);
|
|
4726
4809
|
} else {
|
|
4727
|
-
reject2(createError(
|
|
4810
|
+
reject2(createError(
|
|
4811
|
+
"Request failed with status code " + response.status,
|
|
4812
|
+
response.config,
|
|
4813
|
+
null,
|
|
4814
|
+
response.request,
|
|
4815
|
+
response
|
|
4816
|
+
));
|
|
4728
4817
|
}
|
|
4729
4818
|
};
|
|
4730
4819
|
}
|
|
@@ -4735,44 +4824,50 @@ var require_cookies = __commonJS({
|
|
|
4735
4824
|
"../../node_modules/axios/lib/helpers/cookies.js"(exports, module2) {
|
|
4736
4825
|
"use strict";
|
|
4737
4826
|
var utils = require_utils();
|
|
4738
|
-
module2.exports = utils.isStandardBrowserEnv() ?
|
|
4739
|
-
|
|
4740
|
-
|
|
4741
|
-
|
|
4742
|
-
|
|
4743
|
-
|
|
4744
|
-
cookie.push("
|
|
4745
|
-
|
|
4746
|
-
|
|
4747
|
-
|
|
4748
|
-
|
|
4749
|
-
|
|
4750
|
-
|
|
4827
|
+
module2.exports = utils.isStandardBrowserEnv() ? (
|
|
4828
|
+
// Standard browser envs support document.cookie
|
|
4829
|
+
function standardBrowserEnv() {
|
|
4830
|
+
return {
|
|
4831
|
+
write: function write(name, value, expires, path, domain, secure) {
|
|
4832
|
+
var cookie = [];
|
|
4833
|
+
cookie.push(name + "=" + encodeURIComponent(value));
|
|
4834
|
+
if (utils.isNumber(expires)) {
|
|
4835
|
+
cookie.push("expires=" + new Date(expires).toGMTString());
|
|
4836
|
+
}
|
|
4837
|
+
if (utils.isString(path)) {
|
|
4838
|
+
cookie.push("path=" + path);
|
|
4839
|
+
}
|
|
4840
|
+
if (utils.isString(domain)) {
|
|
4841
|
+
cookie.push("domain=" + domain);
|
|
4842
|
+
}
|
|
4843
|
+
if (secure === true) {
|
|
4844
|
+
cookie.push("secure");
|
|
4845
|
+
}
|
|
4846
|
+
document.cookie = cookie.join("; ");
|
|
4847
|
+
},
|
|
4848
|
+
read: function read(name) {
|
|
4849
|
+
var match = document.cookie.match(new RegExp("(^|;\\s*)(" + name + ")=([^;]*)"));
|
|
4850
|
+
return match ? decodeURIComponent(match[3]) : null;
|
|
4851
|
+
},
|
|
4852
|
+
remove: function remove2(name) {
|
|
4853
|
+
this.write(name, "", Date.now() - 864e5);
|
|
4751
4854
|
}
|
|
4752
|
-
|
|
4753
|
-
|
|
4855
|
+
};
|
|
4856
|
+
}()
|
|
4857
|
+
) : (
|
|
4858
|
+
// Non standard browser env (web workers, react-native) lack needed support.
|
|
4859
|
+
function nonStandardBrowserEnv() {
|
|
4860
|
+
return {
|
|
4861
|
+
write: function write() {
|
|
4862
|
+
},
|
|
4863
|
+
read: function read() {
|
|
4864
|
+
return null;
|
|
4865
|
+
},
|
|
4866
|
+
remove: function remove2() {
|
|
4754
4867
|
}
|
|
4755
|
-
|
|
4756
|
-
|
|
4757
|
-
|
|
4758
|
-
var match = document.cookie.match(new RegExp("(^|;\\s*)(" + name + ")=([^;]*)"));
|
|
4759
|
-
return match ? decodeURIComponent(match[3]) : null;
|
|
4760
|
-
},
|
|
4761
|
-
remove: function remove2(name) {
|
|
4762
|
-
this.write(name, "", Date.now() - 864e5);
|
|
4763
|
-
}
|
|
4764
|
-
};
|
|
4765
|
-
}() : function nonStandardBrowserEnv() {
|
|
4766
|
-
return {
|
|
4767
|
-
write: function write() {
|
|
4768
|
-
},
|
|
4769
|
-
read: function read() {
|
|
4770
|
-
return null;
|
|
4771
|
-
},
|
|
4772
|
-
remove: function remove2() {
|
|
4773
|
-
}
|
|
4774
|
-
};
|
|
4775
|
-
}();
|
|
4868
|
+
};
|
|
4869
|
+
}()
|
|
4870
|
+
);
|
|
4776
4871
|
}
|
|
4777
4872
|
});
|
|
4778
4873
|
|
|
@@ -4868,38 +4963,45 @@ var require_isURLSameOrigin = __commonJS({
|
|
|
4868
4963
|
"../../node_modules/axios/lib/helpers/isURLSameOrigin.js"(exports, module2) {
|
|
4869
4964
|
"use strict";
|
|
4870
4965
|
var utils = require_utils();
|
|
4871
|
-
module2.exports = utils.isStandardBrowserEnv() ?
|
|
4872
|
-
|
|
4873
|
-
|
|
4874
|
-
|
|
4875
|
-
|
|
4876
|
-
var
|
|
4877
|
-
|
|
4966
|
+
module2.exports = utils.isStandardBrowserEnv() ? (
|
|
4967
|
+
// Standard browser envs have full support of the APIs needed to test
|
|
4968
|
+
// whether the request URL is of the same origin as current location.
|
|
4969
|
+
function standardBrowserEnv() {
|
|
4970
|
+
var msie = /(msie|trident)/i.test(navigator.userAgent);
|
|
4971
|
+
var urlParsingNode = document.createElement("a");
|
|
4972
|
+
var originURL;
|
|
4973
|
+
function resolveURL(url) {
|
|
4974
|
+
var href = url;
|
|
4975
|
+
if (msie) {
|
|
4976
|
+
urlParsingNode.setAttribute("href", href);
|
|
4977
|
+
href = urlParsingNode.href;
|
|
4978
|
+
}
|
|
4878
4979
|
urlParsingNode.setAttribute("href", href);
|
|
4879
|
-
|
|
4980
|
+
return {
|
|
4981
|
+
href: urlParsingNode.href,
|
|
4982
|
+
protocol: urlParsingNode.protocol ? urlParsingNode.protocol.replace(/:$/, "") : "",
|
|
4983
|
+
host: urlParsingNode.host,
|
|
4984
|
+
search: urlParsingNode.search ? urlParsingNode.search.replace(/^\?/, "") : "",
|
|
4985
|
+
hash: urlParsingNode.hash ? urlParsingNode.hash.replace(/^#/, "") : "",
|
|
4986
|
+
hostname: urlParsingNode.hostname,
|
|
4987
|
+
port: urlParsingNode.port,
|
|
4988
|
+
pathname: urlParsingNode.pathname.charAt(0) === "/" ? urlParsingNode.pathname : "/" + urlParsingNode.pathname
|
|
4989
|
+
};
|
|
4880
4990
|
}
|
|
4881
|
-
|
|
4882
|
-
return {
|
|
4883
|
-
|
|
4884
|
-
|
|
4885
|
-
host: urlParsingNode.host,
|
|
4886
|
-
search: urlParsingNode.search ? urlParsingNode.search.replace(/^\?/, "") : "",
|
|
4887
|
-
hash: urlParsingNode.hash ? urlParsingNode.hash.replace(/^#/, "") : "",
|
|
4888
|
-
hostname: urlParsingNode.hostname,
|
|
4889
|
-
port: urlParsingNode.port,
|
|
4890
|
-
pathname: urlParsingNode.pathname.charAt(0) === "/" ? urlParsingNode.pathname : "/" + urlParsingNode.pathname
|
|
4991
|
+
originURL = resolveURL(window.location.href);
|
|
4992
|
+
return function isURLSameOrigin(requestURL) {
|
|
4993
|
+
var parsed = utils.isString(requestURL) ? resolveURL(requestURL) : requestURL;
|
|
4994
|
+
return parsed.protocol === originURL.protocol && parsed.host === originURL.host;
|
|
4891
4995
|
};
|
|
4892
|
-
}
|
|
4893
|
-
|
|
4894
|
-
|
|
4895
|
-
|
|
4896
|
-
return
|
|
4897
|
-
|
|
4898
|
-
|
|
4899
|
-
|
|
4900
|
-
|
|
4901
|
-
};
|
|
4902
|
-
}();
|
|
4996
|
+
}()
|
|
4997
|
+
) : (
|
|
4998
|
+
// Non standard browser envs (web workers, react-native) lack needed support.
|
|
4999
|
+
function nonStandardBrowserEnv() {
|
|
5000
|
+
return function isURLSameOrigin() {
|
|
5001
|
+
return true;
|
|
5002
|
+
};
|
|
5003
|
+
}()
|
|
5004
|
+
);
|
|
4903
5005
|
}
|
|
4904
5006
|
});
|
|
4905
5007
|
|
|
@@ -5011,7 +5113,12 @@ var require_xhr = __commonJS({
|
|
|
5011
5113
|
if (config.timeoutErrorMessage) {
|
|
5012
5114
|
timeoutErrorMessage = config.timeoutErrorMessage;
|
|
5013
5115
|
}
|
|
5014
|
-
reject2(createError(
|
|
5116
|
+
reject2(createError(
|
|
5117
|
+
timeoutErrorMessage,
|
|
5118
|
+
config,
|
|
5119
|
+
transitional.clarifyTimeoutError ? "ETIMEDOUT" : "ECONNABORTED",
|
|
5120
|
+
request
|
|
5121
|
+
));
|
|
5015
5122
|
request = null;
|
|
5016
5123
|
};
|
|
5017
5124
|
if (utils.isStandardBrowserEnv()) {
|
|
@@ -5081,14 +5188,18 @@ var require_ms = __commonJS({
|
|
|
5081
5188
|
} else if (type === "number" && isFinite(val)) {
|
|
5082
5189
|
return options.long ? fmtLong(val) : fmtShort(val);
|
|
5083
5190
|
}
|
|
5084
|
-
throw new Error(
|
|
5191
|
+
throw new Error(
|
|
5192
|
+
"val is not a non-empty string or a valid number. val=" + JSON.stringify(val)
|
|
5193
|
+
);
|
|
5085
5194
|
};
|
|
5086
5195
|
function parse(str) {
|
|
5087
5196
|
str = String(str);
|
|
5088
5197
|
if (str.length > 100) {
|
|
5089
5198
|
return;
|
|
5090
5199
|
}
|
|
5091
|
-
var match = /^(-?(?:\d+)?\.?\d+) *(milliseconds?|msecs?|ms|seconds?|secs?|s|minutes?|mins?|m|hours?|hrs?|h|days?|d|weeks?|w|years?|yrs?|y)?$/i.exec(
|
|
5200
|
+
var match = /^(-?(?:\d+)?\.?\d+) *(milliseconds?|msecs?|ms|seconds?|secs?|s|minutes?|mins?|m|hours?|hrs?|h|days?|d|weeks?|w|years?|yrs?|y)?$/i.exec(
|
|
5201
|
+
str
|
|
5202
|
+
);
|
|
5092
5203
|
if (!match) {
|
|
5093
5204
|
return;
|
|
5094
5205
|
}
|
|
@@ -5210,7 +5321,7 @@ var require_common = __commonJS({
|
|
|
5210
5321
|
return;
|
|
5211
5322
|
}
|
|
5212
5323
|
const self = debug;
|
|
5213
|
-
const curr = Number(new Date());
|
|
5324
|
+
const curr = Number(/* @__PURE__ */ new Date());
|
|
5214
5325
|
const ms = curr - (prevTime || curr);
|
|
5215
5326
|
self.diff = ms;
|
|
5216
5327
|
self.prev = prevTime;
|
|
@@ -5422,7 +5533,11 @@ var require_browser = __commonJS({
|
|
|
5422
5533
|
if (typeof navigator !== "undefined" && navigator.userAgent && navigator.userAgent.toLowerCase().match(/(edge|trident)\/(\d+)/)) {
|
|
5423
5534
|
return false;
|
|
5424
5535
|
}
|
|
5425
|
-
return typeof document !== "undefined" && document.documentElement && document.documentElement.style && document.documentElement.style.WebkitAppearance ||
|
|
5536
|
+
return typeof document !== "undefined" && document.documentElement && document.documentElement.style && document.documentElement.style.WebkitAppearance || // Is firebug? http://stackoverflow.com/a/398120/376773
|
|
5537
|
+
typeof window !== "undefined" && window.console && (window.console.firebug || window.console.exception && window.console.table) || // Is firefox >= v31?
|
|
5538
|
+
// https://developer.mozilla.org/en-US/docs/Tools/Web_Console#Styling_messages
|
|
5539
|
+
typeof navigator !== "undefined" && navigator.userAgent && navigator.userAgent.toLowerCase().match(/firefox\/(\d+)/) && parseInt(RegExp.$1, 10) >= 31 || // Double check webkit in userAgent just in case we are in a worker
|
|
5540
|
+
typeof navigator !== "undefined" && navigator.userAgent && navigator.userAgent.toLowerCase().match(/applewebkit\/(\d+)/);
|
|
5426
5541
|
}
|
|
5427
5542
|
function formatArgs(args) {
|
|
5428
5543
|
args[0] = (this.useColors ? "%c" : "") + this.namespace + (this.useColors ? " %c" : " ") + args[0] + (this.useColors ? "%c " : " ") + "+" + module2.exports.humanize(this.diff);
|
|
@@ -5734,7 +5849,7 @@ var require_node2 = __commonJS({
|
|
|
5734
5849
|
if (exports.inspectOpts.hideDate) {
|
|
5735
5850
|
return "";
|
|
5736
5851
|
}
|
|
5737
|
-
return new Date().toISOString() + " ";
|
|
5852
|
+
return (/* @__PURE__ */ new Date()).toISOString() + " ";
|
|
5738
5853
|
}
|
|
5739
5854
|
function log3(...args) {
|
|
5740
5855
|
return process.stderr.write(util.format(...args) + "\n");
|
|
@@ -5817,10 +5932,22 @@ var require_follow_redirects = __commonJS({
|
|
|
5817
5932
|
this._redirectable.emit(event, arg1, arg2, arg3);
|
|
5818
5933
|
};
|
|
5819
5934
|
});
|
|
5820
|
-
var RedirectionError = createErrorType(
|
|
5821
|
-
|
|
5822
|
-
|
|
5823
|
-
|
|
5935
|
+
var RedirectionError = createErrorType(
|
|
5936
|
+
"ERR_FR_REDIRECTION_FAILURE",
|
|
5937
|
+
"Redirected request failed"
|
|
5938
|
+
);
|
|
5939
|
+
var TooManyRedirectsError = createErrorType(
|
|
5940
|
+
"ERR_FR_TOO_MANY_REDIRECTS",
|
|
5941
|
+
"Maximum number of redirects exceeded"
|
|
5942
|
+
);
|
|
5943
|
+
var MaxBodyLengthExceededError = createErrorType(
|
|
5944
|
+
"ERR_FR_MAX_BODY_LENGTH_EXCEEDED",
|
|
5945
|
+
"Request body larger than maxBodyLength limit"
|
|
5946
|
+
);
|
|
5947
|
+
var WriteAfterEndError = createErrorType(
|
|
5948
|
+
"ERR_STREAM_WRITE_AFTER_END",
|
|
5949
|
+
"write after end"
|
|
5950
|
+
);
|
|
5824
5951
|
function RedirectableRequest(options, responseCallback) {
|
|
5825
5952
|
Writable.call(this);
|
|
5826
5953
|
this._sanitizeOptions(options);
|
|
@@ -6037,7 +6164,11 @@ var require_follow_redirects = __commonJS({
|
|
|
6037
6164
|
this.emit("error", new TooManyRedirectsError());
|
|
6038
6165
|
return;
|
|
6039
6166
|
}
|
|
6040
|
-
if ((statusCode === 301 || statusCode === 302) && this._options.method === "POST" ||
|
|
6167
|
+
if ((statusCode === 301 || statusCode === 302) && this._options.method === "POST" || // RFC7231§6.4.4: The 303 (See Other) status code indicates that
|
|
6168
|
+
// the server is redirecting the user agent to a different resource […]
|
|
6169
|
+
// A user agent can perform a retrieval request targeting that URI
|
|
6170
|
+
// (a GET or HEAD request if using HTTP) […]
|
|
6171
|
+
statusCode === 303 && !/^(?:GET|HEAD)$/.test(this._options.method)) {
|
|
6041
6172
|
this._options.method = "GET";
|
|
6042
6173
|
this._requestBodyBuffers = [];
|
|
6043
6174
|
removeMatchingHeaders(/^content-/i, this._options.headers);
|
|
@@ -6137,7 +6268,10 @@ var require_follow_redirects = __commonJS({
|
|
|
6137
6268
|
function urlToOptions(urlObject) {
|
|
6138
6269
|
var options = {
|
|
6139
6270
|
protocol: urlObject.protocol,
|
|
6140
|
-
hostname: urlObject.hostname.startsWith("[") ?
|
|
6271
|
+
hostname: urlObject.hostname.startsWith("[") ? (
|
|
6272
|
+
/* istanbul ignore next */
|
|
6273
|
+
urlObject.hostname.slice(1, -1)
|
|
6274
|
+
) : urlObject.hostname,
|
|
6141
6275
|
hash: urlObject.hash,
|
|
6142
6276
|
search: urlObject.search,
|
|
6143
6277
|
pathname: urlObject.pathname,
|
|
@@ -6278,7 +6412,10 @@ var require_http = __commonJS({
|
|
|
6278
6412
|
} else if (utils.isString(data)) {
|
|
6279
6413
|
data = Buffer.from(data, "utf-8");
|
|
6280
6414
|
} else {
|
|
6281
|
-
return reject2(createError(
|
|
6415
|
+
return reject2(createError(
|
|
6416
|
+
"Data after transformation must be a string, an ArrayBuffer, a Buffer, or a Stream",
|
|
6417
|
+
config
|
|
6418
|
+
));
|
|
6282
6419
|
}
|
|
6283
6420
|
if (config.maxBodyLength > -1 && data.length > config.maxBodyLength) {
|
|
6284
6421
|
return reject2(createError("Request body larger than maxBodyLength limit", config));
|
|
@@ -6427,7 +6564,12 @@ var require_http = __commonJS({
|
|
|
6427
6564
|
if (config.maxContentLength > -1 && totalResponseBytes > config.maxContentLength) {
|
|
6428
6565
|
rejected = true;
|
|
6429
6566
|
stream.destroy();
|
|
6430
|
-
reject2(createError(
|
|
6567
|
+
reject2(createError(
|
|
6568
|
+
"maxContentLength size of " + config.maxContentLength + " exceeded",
|
|
6569
|
+
config,
|
|
6570
|
+
null,
|
|
6571
|
+
lastRequest
|
|
6572
|
+
));
|
|
6431
6573
|
}
|
|
6432
6574
|
});
|
|
6433
6575
|
stream.on("aborted", function handlerStreamAborted() {
|
|
@@ -6470,7 +6612,12 @@ var require_http = __commonJS({
|
|
|
6470
6612
|
if (config.timeout) {
|
|
6471
6613
|
var timeout2 = parseInt(config.timeout, 10);
|
|
6472
6614
|
if (isNaN(timeout2)) {
|
|
6473
|
-
reject2(createError(
|
|
6615
|
+
reject2(createError(
|
|
6616
|
+
"error trying to parse `config.timeout` to int",
|
|
6617
|
+
config,
|
|
6618
|
+
"ERR_PARSE_TIMEOUT",
|
|
6619
|
+
req
|
|
6620
|
+
));
|
|
6474
6621
|
return;
|
|
6475
6622
|
}
|
|
6476
6623
|
req.setTimeout(timeout2, function handleRequestTimeout() {
|
|
@@ -6482,7 +6629,12 @@ var require_http = __commonJS({
|
|
|
6482
6629
|
timeoutErrorMessage = "timeout of " + config.timeout + "ms exceeded";
|
|
6483
6630
|
}
|
|
6484
6631
|
var transitional = config.transitional || defaults.transitional;
|
|
6485
|
-
reject2(createError(
|
|
6632
|
+
reject2(createError(
|
|
6633
|
+
timeoutErrorMessage,
|
|
6634
|
+
config,
|
|
6635
|
+
transitional.clarifyTimeoutError ? "ETIMEDOUT" : "ECONNABORTED",
|
|
6636
|
+
req
|
|
6637
|
+
));
|
|
6486
6638
|
});
|
|
6487
6639
|
}
|
|
6488
6640
|
if (config.cancelToken || config.signal) {
|
|
@@ -6591,6 +6743,10 @@ var require_defaults = __commonJS({
|
|
|
6591
6743
|
}
|
|
6592
6744
|
return data;
|
|
6593
6745
|
}],
|
|
6746
|
+
/**
|
|
6747
|
+
* A timeout in milliseconds to abort a request. If set to 0 (default) a
|
|
6748
|
+
* timeout is not created.
|
|
6749
|
+
*/
|
|
6594
6750
|
timeout: 0,
|
|
6595
6751
|
xsrfCookieName: "XSRF-TOKEN",
|
|
6596
6752
|
xsrfHeaderName: "X-XSRF-TOKEN",
|
|
@@ -6661,21 +6817,43 @@ var require_dispatchRequest = __commonJS({
|
|
|
6661
6817
|
module2.exports = function dispatchRequest(config) {
|
|
6662
6818
|
throwIfCancellationRequested(config);
|
|
6663
6819
|
config.headers = config.headers || {};
|
|
6664
|
-
config.data = transformData.call(
|
|
6665
|
-
|
|
6666
|
-
|
|
6667
|
-
|
|
6668
|
-
|
|
6820
|
+
config.data = transformData.call(
|
|
6821
|
+
config,
|
|
6822
|
+
config.data,
|
|
6823
|
+
config.headers,
|
|
6824
|
+
config.transformRequest
|
|
6825
|
+
);
|
|
6826
|
+
config.headers = utils.merge(
|
|
6827
|
+
config.headers.common || {},
|
|
6828
|
+
config.headers[config.method] || {},
|
|
6829
|
+
config.headers
|
|
6830
|
+
);
|
|
6831
|
+
utils.forEach(
|
|
6832
|
+
["delete", "get", "head", "post", "put", "patch", "common"],
|
|
6833
|
+
function cleanHeaderConfig(method) {
|
|
6834
|
+
delete config.headers[method];
|
|
6835
|
+
}
|
|
6836
|
+
);
|
|
6669
6837
|
var adapter = config.adapter || defaults.adapter;
|
|
6670
6838
|
return adapter(config).then(function onAdapterResolution(response) {
|
|
6671
6839
|
throwIfCancellationRequested(config);
|
|
6672
|
-
response.data = transformData.call(
|
|
6840
|
+
response.data = transformData.call(
|
|
6841
|
+
config,
|
|
6842
|
+
response.data,
|
|
6843
|
+
response.headers,
|
|
6844
|
+
config.transformResponse
|
|
6845
|
+
);
|
|
6673
6846
|
return response;
|
|
6674
6847
|
}, function onAdapterRejection(reason) {
|
|
6675
6848
|
if (!isCancel(reason)) {
|
|
6676
6849
|
throwIfCancellationRequested(config);
|
|
6677
6850
|
if (reason && reason.response) {
|
|
6678
|
-
reason.response.data = transformData.call(
|
|
6851
|
+
reason.response.data = transformData.call(
|
|
6852
|
+
config,
|
|
6853
|
+
reason.response.data,
|
|
6854
|
+
reason.response.headers,
|
|
6855
|
+
config.transformResponse
|
|
6856
|
+
);
|
|
6679
6857
|
}
|
|
6680
6858
|
}
|
|
6681
6859
|
return Promise.reject(reason);
|
|
@@ -6788,7 +6966,12 @@ var require_validator = __commonJS({
|
|
|
6788
6966
|
}
|
|
6789
6967
|
if (version && !deprecatedWarnings[opt]) {
|
|
6790
6968
|
deprecatedWarnings[opt] = true;
|
|
6791
|
-
console.warn(
|
|
6969
|
+
console.warn(
|
|
6970
|
+
formatMessage(
|
|
6971
|
+
opt,
|
|
6972
|
+
" has been deprecated since v" + version + " and will be removed in the near future"
|
|
6973
|
+
)
|
|
6974
|
+
);
|
|
6792
6975
|
}
|
|
6793
6976
|
return validator ? validator(value, opt, opts) : true;
|
|
6794
6977
|
};
|
|
@@ -7593,7 +7776,9 @@ function auto(tasks, concurrency, callback) {
|
|
|
7593
7776
|
});
|
|
7594
7777
|
}
|
|
7595
7778
|
if (counter !== numTasks) {
|
|
7596
|
-
throw new Error(
|
|
7779
|
+
throw new Error(
|
|
7780
|
+
"async.auto cannot execute tasks due to a recursive dependency"
|
|
7781
|
+
);
|
|
7597
7782
|
}
|
|
7598
7783
|
}
|
|
7599
7784
|
function getDependents(taskName) {
|
|
@@ -7946,11 +8131,16 @@ function seq(...functions) {
|
|
|
7946
8131
|
} else {
|
|
7947
8132
|
cb = promiseCallback();
|
|
7948
8133
|
}
|
|
7949
|
-
reduce$1(
|
|
7950
|
-
|
|
7951
|
-
|
|
7952
|
-
|
|
7953
|
-
|
|
8134
|
+
reduce$1(
|
|
8135
|
+
_functions,
|
|
8136
|
+
args,
|
|
8137
|
+
(newargs, fn, iterCb) => {
|
|
8138
|
+
fn.apply(that, newargs.concat((err, ...nextargs) => {
|
|
8139
|
+
iterCb(err, nextargs);
|
|
8140
|
+
}));
|
|
8141
|
+
},
|
|
8142
|
+
(err, results) => cb(err, ...results)
|
|
8143
|
+
);
|
|
7954
8144
|
return cb[PROMISE_SYMBOL];
|
|
7955
8145
|
};
|
|
7956
8146
|
}
|
|
@@ -8968,6 +9158,7 @@ var init_async = __esm({
|
|
|
8968
9158
|
until,
|
|
8969
9159
|
waterfall: waterfall$1,
|
|
8970
9160
|
whilst: whilst$1,
|
|
9161
|
+
// aliases
|
|
8971
9162
|
all: every$1,
|
|
8972
9163
|
allLimit: everyLimit$1,
|
|
8973
9164
|
allSeries: everySeries$1,
|
|
@@ -9038,7 +9229,7 @@ var require_common2 = __commonJS({
|
|
|
9038
9229
|
args[_key] = arguments[_key];
|
|
9039
9230
|
}
|
|
9040
9231
|
var self = debug;
|
|
9041
|
-
var curr = Number(new Date());
|
|
9232
|
+
var curr = Number(/* @__PURE__ */ new Date());
|
|
9042
9233
|
var ms = curr - (prevTime || curr);
|
|
9043
9234
|
self.diff = ms;
|
|
9044
9235
|
self.prev = prevTime;
|
|
@@ -9177,7 +9368,11 @@ var require_browser2 = __commonJS({
|
|
|
9177
9368
|
if (typeof navigator !== "undefined" && navigator.userAgent && navigator.userAgent.toLowerCase().match(/(edge|trident)\/(\d+)/)) {
|
|
9178
9369
|
return false;
|
|
9179
9370
|
}
|
|
9180
|
-
return typeof document !== "undefined" && document.documentElement && document.documentElement.style && document.documentElement.style.WebkitAppearance ||
|
|
9371
|
+
return typeof document !== "undefined" && document.documentElement && document.documentElement.style && document.documentElement.style.WebkitAppearance || // Is firebug? http://stackoverflow.com/a/398120/376773
|
|
9372
|
+
typeof window !== "undefined" && window.console && (window.console.firebug || window.console.exception && window.console.table) || // Is firefox >= v31?
|
|
9373
|
+
// https://developer.mozilla.org/en-US/docs/Tools/Web_Console#Styling_messages
|
|
9374
|
+
typeof navigator !== "undefined" && navigator.userAgent && navigator.userAgent.toLowerCase().match(/firefox\/(\d+)/) && parseInt(RegExp.$1, 10) >= 31 || // Double check webkit in userAgent just in case we are in a worker
|
|
9375
|
+
typeof navigator !== "undefined" && navigator.userAgent && navigator.userAgent.toLowerCase().match(/applewebkit\/(\d+)/);
|
|
9181
9376
|
}
|
|
9182
9377
|
function formatArgs(args) {
|
|
9183
9378
|
args[0] = (this.useColors ? "%c" : "") + this.namespace + (this.useColors ? " %c" : " ") + args[0] + (this.useColors ? "%c " : " ") + "+" + module2.exports.humanize(this.diff);
|
|
@@ -9301,7 +9496,7 @@ var require_node3 = __commonJS({
|
|
|
9301
9496
|
if (exports.inspectOpts.hideDate) {
|
|
9302
9497
|
return "";
|
|
9303
9498
|
}
|
|
9304
|
-
return new Date().toISOString() + " ";
|
|
9499
|
+
return (/* @__PURE__ */ new Date()).toISOString() + " ";
|
|
9305
9500
|
}
|
|
9306
9501
|
function log3() {
|
|
9307
9502
|
return process.stderr.write(util.format.apply(util, arguments) + "\n");
|
|
@@ -9531,7 +9726,11 @@ var require_portfinder = __commonJS({
|
|
|
9531
9726
|
currentHost = host;
|
|
9532
9727
|
return next(err);
|
|
9533
9728
|
} else {
|
|
9534
|
-
debugGetPort(
|
|
9729
|
+
debugGetPort(
|
|
9730
|
+
"in eachSeries() iteration callback testPort() callback",
|
|
9731
|
+
"with a success for port",
|
|
9732
|
+
port
|
|
9733
|
+
);
|
|
9535
9734
|
openPorts.push(port);
|
|
9536
9735
|
return next();
|
|
9537
9736
|
}
|
|
@@ -9718,7 +9917,7 @@ var require_connect_livereload = __commonJS({
|
|
|
9718
9917
|
function snippet(host) {
|
|
9719
9918
|
var src = opt.src || "//" + host + ":" + port + "/livereload.js?snipver=1";
|
|
9720
9919
|
return [src].concat(plugins).map(function(source) {
|
|
9721
|
-
return '<script src="' + source + '" async="" defer=""
|
|
9920
|
+
return '<script src="' + source + '" async="" defer=""></script>';
|
|
9722
9921
|
}).join("");
|
|
9723
9922
|
}
|
|
9724
9923
|
var regex = function() {
|
|
@@ -11119,9 +11318,15 @@ var PluralResolver = /* @__PURE__ */ function() {
|
|
|
11119
11318
|
if (typeof suffix === "number")
|
|
11120
11319
|
return "_plural_".concat(suffix.toString());
|
|
11121
11320
|
return returnSuffix();
|
|
11122
|
-
} else if (
|
|
11321
|
+
} else if (
|
|
11322
|
+
/* v2 */
|
|
11323
|
+
this.options.compatibilityJSON === "v2"
|
|
11324
|
+
) {
|
|
11123
11325
|
return returnSuffix();
|
|
11124
|
-
} else if (
|
|
11326
|
+
} else if (
|
|
11327
|
+
/* v3 - gettext index */
|
|
11328
|
+
this.options.simplifyPluralSuffix && rule.numbers.length === 2 && rule.numbers[0] === 1
|
|
11329
|
+
) {
|
|
11125
11330
|
return returnSuffix();
|
|
11126
11331
|
}
|
|
11127
11332
|
return this.options.prepend && idx.toString() ? this.options.prepend + idx.toString() : idx.toString();
|
|
@@ -11428,6 +11633,7 @@ var Connector = /* @__PURE__ */ function(_EventEmitter) {
|
|
|
11428
11633
|
callback(err, data);
|
|
11429
11634
|
});
|
|
11430
11635
|
}
|
|
11636
|
+
/* eslint consistent-return: 0 */
|
|
11431
11637
|
}, {
|
|
11432
11638
|
key: "prepareLoading",
|
|
11433
11639
|
value: function prepareLoading(languages, namespaces) {
|
|
@@ -11489,9 +11695,16 @@ var Connector = /* @__PURE__ */ function(_EventEmitter) {
|
|
|
11489
11695
|
if (key === void 0 || key === null || key === "")
|
|
11490
11696
|
return;
|
|
11491
11697
|
if (this.backend && this.backend.create) {
|
|
11492
|
-
this.backend.create(
|
|
11493
|
-
|
|
11494
|
-
|
|
11698
|
+
this.backend.create(
|
|
11699
|
+
languages,
|
|
11700
|
+
namespace,
|
|
11701
|
+
key,
|
|
11702
|
+
fallbackValue,
|
|
11703
|
+
null,
|
|
11704
|
+
_objectSpread({}, options, {
|
|
11705
|
+
isUpdate
|
|
11706
|
+
})
|
|
11707
|
+
);
|
|
11495
11708
|
}
|
|
11496
11709
|
if (!languages || !languages[0])
|
|
11497
11710
|
return;
|
|
@@ -11508,30 +11721,48 @@ function get() {
|
|
|
11508
11721
|
defaultNS: ["translation"],
|
|
11509
11722
|
fallbackLng: ["dev"],
|
|
11510
11723
|
fallbackNS: false,
|
|
11724
|
+
// string or array of namespaces
|
|
11511
11725
|
whitelist: false,
|
|
11726
|
+
// array with whitelisted languages
|
|
11512
11727
|
nonExplicitWhitelist: false,
|
|
11513
11728
|
load: "all",
|
|
11729
|
+
// | currentOnly | languageOnly
|
|
11514
11730
|
preload: false,
|
|
11731
|
+
// array with preload languages
|
|
11515
11732
|
simplifyPluralSuffix: true,
|
|
11516
11733
|
keySeparator: ".",
|
|
11517
11734
|
nsSeparator: ":",
|
|
11518
11735
|
pluralSeparator: "_",
|
|
11519
11736
|
contextSeparator: "_",
|
|
11520
11737
|
partialBundledLanguages: false,
|
|
11738
|
+
// allow bundling certain languages that are not remotely fetched
|
|
11521
11739
|
saveMissing: false,
|
|
11740
|
+
// enable to send missing values
|
|
11522
11741
|
updateMissing: false,
|
|
11742
|
+
// enable to update default values if different from translated value (only useful on initial development, or when keeping code as source of truth)
|
|
11523
11743
|
saveMissingTo: "fallback",
|
|
11744
|
+
// 'current' || 'all'
|
|
11524
11745
|
saveMissingPlurals: true,
|
|
11746
|
+
// will save all forms not only singular key
|
|
11525
11747
|
missingKeyHandler: false,
|
|
11748
|
+
// function(lng, ns, key, fallbackValue) -> override if prefer on handling
|
|
11526
11749
|
missingInterpolationHandler: false,
|
|
11750
|
+
// function(str, match)
|
|
11527
11751
|
postProcess: false,
|
|
11752
|
+
// string or array of postProcessor names
|
|
11528
11753
|
postProcessPassResolved: false,
|
|
11754
|
+
// pass resolved object into 'options.i18nResolved' for postprocessor
|
|
11529
11755
|
returnNull: true,
|
|
11756
|
+
// allows null value as valid translation
|
|
11530
11757
|
returnEmptyString: true,
|
|
11758
|
+
// allows empty string value as valid translation
|
|
11531
11759
|
returnObjects: false,
|
|
11532
11760
|
joinArrays: false,
|
|
11761
|
+
// or string to join array
|
|
11533
11762
|
returnedObjectHandler: false,
|
|
11763
|
+
// function(key, value, options) triggered if key returns object but returnObjects is set to false
|
|
11534
11764
|
parseMissingKeyHandler: false,
|
|
11765
|
+
// function(key) parsed a key that was not found in t() before returning
|
|
11535
11766
|
appendNamespaceToMissingKey: false,
|
|
11536
11767
|
appendNamespaceToCIMode: false,
|
|
11537
11768
|
overloadTranslationOptionHandler: function handle2(args) {
|
|
@@ -11558,10 +11789,17 @@ function get() {
|
|
|
11558
11789
|
prefix: "{{",
|
|
11559
11790
|
suffix: "}}",
|
|
11560
11791
|
formatSeparator: ",",
|
|
11792
|
+
// prefixEscaped: '{{',
|
|
11793
|
+
// suffixEscaped: '}}',
|
|
11794
|
+
// unescapeSuffix: '',
|
|
11561
11795
|
unescapePrefix: "-",
|
|
11562
11796
|
nestingPrefix: "$t(",
|
|
11563
11797
|
nestingSuffix: ")",
|
|
11798
|
+
// nestingPrefixEscaped: '$t(',
|
|
11799
|
+
// nestingSuffixEscaped: ')',
|
|
11800
|
+
// defaultVariables: undefined // object that can have values to interpolate on - extends passed in interpolation data
|
|
11564
11801
|
maxReplaces: 1e3
|
|
11802
|
+
// max replaces to prevent endless loop
|
|
11565
11803
|
}
|
|
11566
11804
|
};
|
|
11567
11805
|
}
|
|
@@ -11699,6 +11937,7 @@ var I18n = /* @__PURE__ */ function(_EventEmitter) {
|
|
|
11699
11937
|
}
|
|
11700
11938
|
return deferred;
|
|
11701
11939
|
}
|
|
11940
|
+
/* eslint consistent-return: 0 */
|
|
11702
11941
|
}, {
|
|
11703
11942
|
key: "loadResources",
|
|
11704
11943
|
value: function loadResources(language) {
|
|
@@ -11956,6 +12195,7 @@ var I18n = /* @__PURE__ */ function(_EventEmitter) {
|
|
|
11956
12195
|
var rtlLngs = ["ar", "shu", "sqr", "ssh", "xaa", "yhd", "yud", "aao", "abh", "abv", "acm", "acq", "acw", "acx", "acy", "adf", "ads", "aeb", "aec", "afb", "ajp", "apc", "apd", "arb", "arq", "ars", "ary", "arz", "auz", "avl", "ayh", "ayl", "ayn", "ayp", "bbz", "pga", "he", "iw", "ps", "pbt", "pbu", "pst", "prp", "prd", "ur", "ydd", "yds", "yih", "ji", "yi", "hbo", "men", "xmn", "fa", "jpr", "peo", "pes", "prs", "dv", "sam"];
|
|
11957
12196
|
return rtlLngs.indexOf(this.services.languageUtils.getLanguagePartFromCode(lng)) >= 0 ? "rtl" : "ltr";
|
|
11958
12197
|
}
|
|
12198
|
+
/* eslint class-methods-use-this: 0 */
|
|
11959
12199
|
}, {
|
|
11960
12200
|
key: "createInstance",
|
|
11961
12201
|
value: function createInstance() {
|
|
@@ -12130,17 +12370,20 @@ var import_axios = __toESM(require_axios2());
|
|
|
12130
12370
|
var import_portfinder = __toESM(require_portfinder());
|
|
12131
12371
|
var getAvailablePort = (port) => {
|
|
12132
12372
|
return new Promise((resolve, reject2) => {
|
|
12133
|
-
(0, import_portfinder.getPort)(
|
|
12134
|
-
|
|
12135
|
-
|
|
12136
|
-
|
|
12137
|
-
|
|
12138
|
-
|
|
12139
|
-
|
|
12140
|
-
|
|
12141
|
-
|
|
12373
|
+
(0, import_portfinder.getPort)(
|
|
12374
|
+
{
|
|
12375
|
+
port,
|
|
12376
|
+
stopPort: port + 200
|
|
12377
|
+
},
|
|
12378
|
+
(error2, port2) => {
|
|
12379
|
+
if (error2) {
|
|
12380
|
+
console.error(error2);
|
|
12381
|
+
reject2(error2);
|
|
12382
|
+
} else {
|
|
12383
|
+
resolve(port2);
|
|
12384
|
+
}
|
|
12142
12385
|
}
|
|
12143
|
-
|
|
12386
|
+
);
|
|
12144
12387
|
});
|
|
12145
12388
|
};
|
|
12146
12389
|
var exposeLivereloadPort = async (port, log3) => {
|
|
@@ -12190,8 +12433,12 @@ module.exports = async function({
|
|
|
12190
12433
|
livereloadServer.watch(fullWatchPath);
|
|
12191
12434
|
return connectLivereload(connectOptions);
|
|
12192
12435
|
};
|
|
12193
|
-
|
|
12194
|
-
|
|
12195
|
-
|
|
12196
|
-
|
|
12436
|
+
/*! Bundled license information:
|
|
12437
|
+
|
|
12438
|
+
object-assign/index.js:
|
|
12439
|
+
(*
|
|
12440
|
+
object-assign
|
|
12441
|
+
(c) Sindre Sorhus
|
|
12442
|
+
@license MIT
|
|
12443
|
+
*)
|
|
12197
12444
|
*/
|