hot-updater 0.16.2 → 0.16.4
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/dist/config.cjs +5 -3
- package/dist/index.cjs +259 -303
- package/dist/index.js +241 -296
- package/dist/plugins/babel.cjs +109 -127
- package/dist/plugins/babel.js +102 -124
- package/package.json +8 -4
package/dist/index.cjs
CHANGED
|
@@ -1032,10 +1032,7 @@ var __webpack_modules__ = {
|
|
|
1032
1032
|
if (nodeFilter) {
|
|
1033
1033
|
node = nodeFilter(node);
|
|
1034
1034
|
if (!node) return;
|
|
1035
|
-
if ('string' == typeof node)
|
|
1036
|
-
buf.push(node);
|
|
1037
|
-
return;
|
|
1038
|
-
}
|
|
1035
|
+
if ('string' == typeof node) return void buf.push(node);
|
|
1039
1036
|
}
|
|
1040
1037
|
switch(node.nodeType){
|
|
1041
1038
|
case ELEMENT_NODE:
|
|
@@ -3981,11 +3978,11 @@ var __webpack_modules__ = {
|
|
|
3981
3978
|
return parts.join('');
|
|
3982
3979
|
}
|
|
3983
3980
|
},
|
|
3984
|
-
"../../node_modules/.pnpm/cross-spawn@7.0.
|
|
3981
|
+
"../../node_modules/.pnpm/cross-spawn@7.0.6/node_modules/cross-spawn/index.js": function(module, __unused_webpack_exports, __webpack_require__) {
|
|
3985
3982
|
"use strict";
|
|
3986
3983
|
const cp = __webpack_require__("child_process");
|
|
3987
|
-
const parse = __webpack_require__("../../node_modules/.pnpm/cross-spawn@7.0.
|
|
3988
|
-
const enoent = __webpack_require__("../../node_modules/.pnpm/cross-spawn@7.0.
|
|
3984
|
+
const parse = __webpack_require__("../../node_modules/.pnpm/cross-spawn@7.0.6/node_modules/cross-spawn/lib/parse.js");
|
|
3985
|
+
const enoent = __webpack_require__("../../node_modules/.pnpm/cross-spawn@7.0.6/node_modules/cross-spawn/lib/enoent.js");
|
|
3989
3986
|
function spawn(command, args, options) {
|
|
3990
3987
|
const parsed = parse(command, args, options);
|
|
3991
3988
|
const spawned = cp.spawn(parsed.command, parsed.args, parsed.options);
|
|
@@ -4004,7 +4001,7 @@ var __webpack_modules__ = {
|
|
|
4004
4001
|
module.exports._parse = parse;
|
|
4005
4002
|
module.exports._enoent = enoent;
|
|
4006
4003
|
},
|
|
4007
|
-
"../../node_modules/.pnpm/cross-spawn@7.0.
|
|
4004
|
+
"../../node_modules/.pnpm/cross-spawn@7.0.6/node_modules/cross-spawn/lib/enoent.js": function(module) {
|
|
4008
4005
|
"use strict";
|
|
4009
4006
|
const isWin = 'win32' === process.platform;
|
|
4010
4007
|
function notFoundError(original, syscall) {
|
|
@@ -4021,7 +4018,7 @@ var __webpack_modules__ = {
|
|
|
4021
4018
|
const originalEmit = cp.emit;
|
|
4022
4019
|
cp.emit = function(name, arg1) {
|
|
4023
4020
|
if ('exit' === name) {
|
|
4024
|
-
const err = verifyENOENT(arg1, parsed
|
|
4021
|
+
const err = verifyENOENT(arg1, parsed);
|
|
4025
4022
|
if (err) return originalEmit.call(cp, 'error', err);
|
|
4026
4023
|
}
|
|
4027
4024
|
return originalEmit.apply(cp, arguments);
|
|
@@ -4042,12 +4039,12 @@ var __webpack_modules__ = {
|
|
|
4042
4039
|
notFoundError
|
|
4043
4040
|
};
|
|
4044
4041
|
},
|
|
4045
|
-
"../../node_modules/.pnpm/cross-spawn@7.0.
|
|
4042
|
+
"../../node_modules/.pnpm/cross-spawn@7.0.6/node_modules/cross-spawn/lib/parse.js": function(module, __unused_webpack_exports, __webpack_require__) {
|
|
4046
4043
|
"use strict";
|
|
4047
4044
|
const path = __webpack_require__("path");
|
|
4048
|
-
const resolveCommand = __webpack_require__("../../node_modules/.pnpm/cross-spawn@7.0.
|
|
4049
|
-
const escape = __webpack_require__("../../node_modules/.pnpm/cross-spawn@7.0.
|
|
4050
|
-
const readShebang = __webpack_require__("../../node_modules/.pnpm/cross-spawn@7.0.
|
|
4045
|
+
const resolveCommand = __webpack_require__("../../node_modules/.pnpm/cross-spawn@7.0.6/node_modules/cross-spawn/lib/util/resolveCommand.js");
|
|
4046
|
+
const escape = __webpack_require__("../../node_modules/.pnpm/cross-spawn@7.0.6/node_modules/cross-spawn/lib/util/escape.js");
|
|
4047
|
+
const readShebang = __webpack_require__("../../node_modules/.pnpm/cross-spawn@7.0.6/node_modules/cross-spawn/lib/util/readShebang.js");
|
|
4051
4048
|
const isWin = 'win32' === process.platform;
|
|
4052
4049
|
const isExecutableRegExp = /\.(?:com|exe)$/i;
|
|
4053
4050
|
const isCmdShimRegExp = /node_modules[\\/].bin[\\/][^\\/]+\.cmd$/i;
|
|
@@ -4105,7 +4102,7 @@ var __webpack_modules__ = {
|
|
|
4105
4102
|
}
|
|
4106
4103
|
module.exports = parse;
|
|
4107
4104
|
},
|
|
4108
|
-
"../../node_modules/.pnpm/cross-spawn@7.0.
|
|
4105
|
+
"../../node_modules/.pnpm/cross-spawn@7.0.6/node_modules/cross-spawn/lib/util/escape.js": function(module) {
|
|
4109
4106
|
"use strict";
|
|
4110
4107
|
const metaCharsRegExp = /([()\][%!^"`<>&|;, *?])/g;
|
|
4111
4108
|
function escapeCommand(arg) {
|
|
@@ -4114,8 +4111,8 @@ var __webpack_modules__ = {
|
|
|
4114
4111
|
}
|
|
4115
4112
|
function escapeArgument(arg, doubleEscapeMetaChars) {
|
|
4116
4113
|
arg = `${arg}`;
|
|
4117
|
-
arg = arg.replace(/(
|
|
4118
|
-
arg = arg.replace(/(
|
|
4114
|
+
arg = arg.replace(/(?=(\\+?)?)\1"/g, '$1$1\\"');
|
|
4115
|
+
arg = arg.replace(/(?=(\\+?)?)\1$/, '$1$1');
|
|
4119
4116
|
arg = `"${arg}"`;
|
|
4120
4117
|
arg = arg.replace(metaCharsRegExp, '^$1');
|
|
4121
4118
|
if (doubleEscapeMetaChars) arg = arg.replace(metaCharsRegExp, '^$1');
|
|
@@ -4124,7 +4121,7 @@ var __webpack_modules__ = {
|
|
|
4124
4121
|
module.exports.command = escapeCommand;
|
|
4125
4122
|
module.exports.argument = escapeArgument;
|
|
4126
4123
|
},
|
|
4127
|
-
"../../node_modules/.pnpm/cross-spawn@7.0.
|
|
4124
|
+
"../../node_modules/.pnpm/cross-spawn@7.0.6/node_modules/cross-spawn/lib/util/readShebang.js": function(module, __unused_webpack_exports, __webpack_require__) {
|
|
4128
4125
|
"use strict";
|
|
4129
4126
|
const fs = __webpack_require__("fs");
|
|
4130
4127
|
const shebangCommand = __webpack_require__("../../node_modules/.pnpm/shebang-command@2.0.0/node_modules/shebang-command/index.js");
|
|
@@ -4141,7 +4138,7 @@ var __webpack_modules__ = {
|
|
|
4141
4138
|
}
|
|
4142
4139
|
module.exports = readShebang;
|
|
4143
4140
|
},
|
|
4144
|
-
"../../node_modules/.pnpm/cross-spawn@7.0.
|
|
4141
|
+
"../../node_modules/.pnpm/cross-spawn@7.0.6/node_modules/cross-spawn/lib/util/resolveCommand.js": function(module, __unused_webpack_exports, __webpack_require__) {
|
|
4145
4142
|
"use strict";
|
|
4146
4143
|
const path = __webpack_require__("path");
|
|
4147
4144
|
const which = __webpack_require__("../../node_modules/.pnpm/which@2.0.2/node_modules/which/which.js");
|
|
@@ -4603,10 +4600,8 @@ var __webpack_modules__ = {
|
|
|
4603
4600
|
const proto = arg.slice(0, firstColon + 1);
|
|
4604
4601
|
if (Object.prototype.hasOwnProperty.call(protocols, proto)) return arg;
|
|
4605
4602
|
const firstAt = arg.indexOf('@');
|
|
4606
|
-
if (firstAt > -1) {
|
|
4607
|
-
|
|
4608
|
-
return arg;
|
|
4609
|
-
}
|
|
4603
|
+
if (firstAt > -1) if (firstAt > firstColon) return `git+ssh://${arg}`;
|
|
4604
|
+
else return arg;
|
|
4610
4605
|
const doubleSlash = arg.indexOf('//');
|
|
4611
4606
|
if (doubleSlash === firstColon + 1) return arg;
|
|
4612
4607
|
return `${arg.slice(0, firstColon + 1)}//${arg.slice(firstColon + 1)}`;
|
|
@@ -4951,26 +4946,21 @@ var __webpack_modules__ = {
|
|
|
4951
4946
|
url: hosted.bugs()
|
|
4952
4947
|
};
|
|
4953
4948
|
} else if (data.bugs) {
|
|
4954
|
-
if ('string' == typeof data.bugs) {
|
|
4955
|
-
|
|
4956
|
-
|
|
4957
|
-
|
|
4958
|
-
|
|
4959
|
-
|
|
4960
|
-
|
|
4961
|
-
|
|
4962
|
-
} else {
|
|
4949
|
+
if ('string' == typeof data.bugs) if (isEmail(data.bugs)) data.bugs = {
|
|
4950
|
+
email: data.bugs
|
|
4951
|
+
};
|
|
4952
|
+
else if (url.parse(data.bugs).protocol) data.bugs = {
|
|
4953
|
+
url: data.bugs
|
|
4954
|
+
};
|
|
4955
|
+
else this.warn('nonEmailUrlBugsString');
|
|
4956
|
+
else {
|
|
4963
4957
|
bugsTypos(data.bugs, this.warn);
|
|
4964
4958
|
var oldBugs = data.bugs;
|
|
4965
4959
|
data.bugs = {};
|
|
4966
|
-
if (oldBugs.url)
|
|
4967
|
-
|
|
4968
|
-
|
|
4969
|
-
|
|
4970
|
-
if (oldBugs.email) {
|
|
4971
|
-
if ('string' == typeof oldBugs.email && isEmail(oldBugs.email)) data.bugs.email = oldBugs.email;
|
|
4972
|
-
else this.warn('nonEmailBugsEmailField');
|
|
4973
|
-
}
|
|
4960
|
+
if (oldBugs.url) if ('string' == typeof oldBugs.url && url.parse(oldBugs.url).protocol) data.bugs.url = oldBugs.url;
|
|
4961
|
+
else this.warn('nonUrlBugsUrlField');
|
|
4962
|
+
if (oldBugs.email) if ('string' == typeof oldBugs.email && isEmail(oldBugs.email)) data.bugs.email = oldBugs.email;
|
|
4963
|
+
else this.warn('nonEmailBugsEmailField');
|
|
4974
4964
|
}
|
|
4975
4965
|
if (!data.bugs.email && !data.bugs.url) {
|
|
4976
4966
|
delete data.bugs;
|
|
@@ -5446,10 +5436,8 @@ var __webpack_modules__ = {
|
|
|
5446
5436
|
}
|
|
5447
5437
|
constructor(comp, options){
|
|
5448
5438
|
options = parseOptions(options);
|
|
5449
|
-
if (comp instanceof Comparator)
|
|
5450
|
-
|
|
5451
|
-
comp = comp.value;
|
|
5452
|
-
}
|
|
5439
|
+
if (comp instanceof Comparator) if (!!options.loose === comp.loose) return comp;
|
|
5440
|
+
else comp = comp.value;
|
|
5453
5441
|
comp = comp.trim().split(/\s+/).join(' ');
|
|
5454
5442
|
debug('comparator', comp, options);
|
|
5455
5443
|
this.options = options;
|
|
@@ -5515,10 +5503,8 @@ var __webpack_modules__ = {
|
|
|
5515
5503
|
class Range {
|
|
5516
5504
|
constructor(range, options){
|
|
5517
5505
|
options = parseOptions(options);
|
|
5518
|
-
if (range instanceof Range)
|
|
5519
|
-
|
|
5520
|
-
return new Range(range.raw, options);
|
|
5521
|
-
}
|
|
5506
|
+
if (range instanceof Range) if (!!options.loose === range.loose && !!options.includePrerelease === range.includePrerelease) return range;
|
|
5507
|
+
else return new Range(range.raw, options);
|
|
5522
5508
|
if (range instanceof Comparator) {
|
|
5523
5509
|
this.raw = range.value;
|
|
5524
5510
|
this.set = [
|
|
@@ -5777,10 +5763,9 @@ var __webpack_modules__ = {
|
|
|
5777
5763
|
class SemVer {
|
|
5778
5764
|
constructor(version, options){
|
|
5779
5765
|
options = parseOptions(options);
|
|
5780
|
-
if (version instanceof SemVer)
|
|
5781
|
-
|
|
5782
|
-
|
|
5783
|
-
} else if ('string' != typeof version) throw new TypeError(`Invalid version. Must be a string. Got type "${typeof version}".`);
|
|
5766
|
+
if (version instanceof SemVer) if (!!options.loose === version.loose && !!options.includePrerelease === version.includePrerelease) return version;
|
|
5767
|
+
else version = version.version;
|
|
5768
|
+
else if ('string' != typeof version) throw new TypeError(`Invalid version. Must be a string. Got type "${typeof version}".`);
|
|
5784
5769
|
if (version.length > MAX_LENGTH) throw new TypeError(`version is longer than ${MAX_LENGTH} characters`);
|
|
5785
5770
|
debug('SemVer', version, options);
|
|
5786
5771
|
this.options = options;
|
|
@@ -6204,10 +6189,9 @@ var __webpack_modules__ = {
|
|
|
6204
6189
|
class SemVer {
|
|
6205
6190
|
constructor(version, options){
|
|
6206
6191
|
options = parseOptions(options);
|
|
6207
|
-
if (version instanceof SemVer)
|
|
6208
|
-
|
|
6209
|
-
|
|
6210
|
-
} else if ('string' != typeof version) throw new TypeError(`Invalid version. Must be a string. Got type "${typeof version}".`);
|
|
6192
|
+
if (version instanceof SemVer) if (!!options.loose === version.loose && !!options.includePrerelease === version.includePrerelease) return version;
|
|
6193
|
+
else version = version.version;
|
|
6194
|
+
else if ('string' != typeof version) throw new TypeError(`Invalid version. Must be a string. Got type "${typeof version}".`);
|
|
6211
6195
|
if (version.length > MAX_LENGTH) throw new TypeError(`version is longer than ${MAX_LENGTH} characters`);
|
|
6212
6196
|
debug('SemVer', version, options);
|
|
6213
6197
|
this.options = options;
|
|
@@ -7351,10 +7335,8 @@ var __webpack_modules__ = {
|
|
|
7351
7335
|
isexe(p + ext, {
|
|
7352
7336
|
pathExt: pathExtExe
|
|
7353
7337
|
}, (er, is)=>{
|
|
7354
|
-
if (!er && is)
|
|
7355
|
-
|
|
7356
|
-
found.push(p + ext);
|
|
7357
|
-
}
|
|
7338
|
+
if (!er && is) if (!opt.all) return resolve(p + ext);
|
|
7339
|
+
else found.push(p + ext);
|
|
7358
7340
|
return resolve(subStep(p, i, ii + 1));
|
|
7359
7341
|
});
|
|
7360
7342
|
});
|
|
@@ -7375,10 +7357,8 @@ var __webpack_modules__ = {
|
|
|
7375
7357
|
const is = isexe.sync(cur, {
|
|
7376
7358
|
pathExt: pathExtExe
|
|
7377
7359
|
});
|
|
7378
|
-
if (is)
|
|
7379
|
-
|
|
7380
|
-
found.push(cur);
|
|
7381
|
-
}
|
|
7360
|
+
if (is) if (!opt.all) return cur;
|
|
7361
|
+
else found.push(cur);
|
|
7382
7362
|
} catch (ex) {}
|
|
7383
7363
|
}
|
|
7384
7364
|
}
|
|
@@ -7433,7 +7413,7 @@ var __webpack_modules__ = {
|
|
|
7433
7413
|
else for(i = 0, len = sources.length; i < len; i++){
|
|
7434
7414
|
source = sources[i];
|
|
7435
7415
|
if (null != source) {
|
|
7436
|
-
for(key in source)if (
|
|
7416
|
+
for(key in source)if (hasProp.call(source, key)) target[key] = source[key];
|
|
7437
7417
|
}
|
|
7438
7418
|
}
|
|
7439
7419
|
return target;
|
|
@@ -7452,7 +7432,7 @@ var __webpack_modules__ = {
|
|
|
7452
7432
|
isEmpty = function(val) {
|
|
7453
7433
|
var key;
|
|
7454
7434
|
if (isArray(val)) return !val.length;
|
|
7455
|
-
for(key in val)if (
|
|
7435
|
+
for(key in val)if (hasProp.call(val, key)) return false;
|
|
7456
7436
|
return true;
|
|
7457
7437
|
};
|
|
7458
7438
|
isPlainObject = function(val) {
|
|
@@ -8319,7 +8299,7 @@ var __webpack_modules__ = {
|
|
|
8319
8299
|
case NodeType.Element:
|
|
8320
8300
|
attributes = {};
|
|
8321
8301
|
ref = node.attribs;
|
|
8322
|
-
for(attName in ref)if (
|
|
8302
|
+
for(attName in ref)if (hasProp.call(ref, attName)) {
|
|
8323
8303
|
att = ref[attName];
|
|
8324
8304
|
attributes[attName] = att.value;
|
|
8325
8305
|
}
|
|
@@ -8392,7 +8372,7 @@ var __webpack_modules__ = {
|
|
|
8392
8372
|
if (!this.currentNode || this.currentNode.children) throw new Error("att() can only be used immediately after an ele() call in callback mode. " + this.debugInfo(name));
|
|
8393
8373
|
if (null != name) name = getValue(name);
|
|
8394
8374
|
if (isObject(name)) {
|
|
8395
|
-
for(attName in name)if (
|
|
8375
|
+
for(attName in name)if (hasProp.call(name, attName)) {
|
|
8396
8376
|
attValue = name[attName];
|
|
8397
8377
|
this.attribute(attName, attValue);
|
|
8398
8378
|
}
|
|
@@ -8441,7 +8421,7 @@ var __webpack_modules__ = {
|
|
|
8441
8421
|
this.instruction(insTarget);
|
|
8442
8422
|
}
|
|
8443
8423
|
else if (isObject(target)) {
|
|
8444
|
-
for(insTarget in target)if (
|
|
8424
|
+
for(insTarget in target)if (hasProp.call(target, insTarget)) {
|
|
8445
8425
|
insValue = target[insTarget];
|
|
8446
8426
|
this.instruction(insTarget, insValue);
|
|
8447
8427
|
}
|
|
@@ -8536,7 +8516,7 @@ var __webpack_modules__ = {
|
|
|
8536
8516
|
this.writerOptions.state = WriterState.OpenTag;
|
|
8537
8517
|
chunk = this.writer.indent(node, this.writerOptions, this.currentLevel) + '<' + node.name;
|
|
8538
8518
|
ref = node.attribs;
|
|
8539
|
-
for(name in ref)if (
|
|
8519
|
+
for(name in ref)if (hasProp.call(ref, name)) {
|
|
8540
8520
|
att = ref[name];
|
|
8541
8521
|
chunk += this.writer.attribute(att, this.writerOptions, this.currentLevel);
|
|
8542
8522
|
}
|
|
@@ -8708,7 +8688,7 @@ var __webpack_modules__ = {
|
|
|
8708
8688
|
if (clonedSelf.isRoot) clonedSelf.documentObject = null;
|
|
8709
8689
|
clonedSelf.attribs = {};
|
|
8710
8690
|
ref = this.attribs;
|
|
8711
|
-
for(attName in ref)if (
|
|
8691
|
+
for(attName in ref)if (hasProp.call(ref, attName)) {
|
|
8712
8692
|
att = ref[attName];
|
|
8713
8693
|
clonedSelf.attribs[attName] = att.clone();
|
|
8714
8694
|
}
|
|
@@ -8725,7 +8705,7 @@ var __webpack_modules__ = {
|
|
|
8725
8705
|
var attName, attValue;
|
|
8726
8706
|
if (null != name) name = getValue(name);
|
|
8727
8707
|
if (isObject(name)) {
|
|
8728
|
-
for(attName in name)if (
|
|
8708
|
+
for(attName in name)if (hasProp.call(name, attName)) {
|
|
8729
8709
|
attValue = name[attName];
|
|
8730
8710
|
this.attribute(attName, attValue);
|
|
8731
8711
|
}
|
|
@@ -9000,27 +8980,25 @@ var __webpack_modules__ = {
|
|
|
9000
8980
|
}
|
|
9001
8981
|
else if (isFunction(name)) lastChild = this.element(name.apply());
|
|
9002
8982
|
else if (isObject(name)) {
|
|
9003
|
-
for(key in name)if (
|
|
8983
|
+
for(key in name)if (hasProp.call(name, key)) {
|
|
9004
8984
|
val = name[key];
|
|
9005
8985
|
if (isFunction(val)) val = val.apply();
|
|
9006
8986
|
if (!this.options.ignoreDecorators && this.stringify.convertAttKey && 0 === key.indexOf(this.stringify.convertAttKey)) lastChild = this.attribute(key.substr(this.stringify.convertAttKey.length), val);
|
|
9007
8987
|
else if (!this.options.separateArrayItems && Array.isArray(val) && isEmpty(val)) lastChild = this.dummy();
|
|
9008
8988
|
else if (isObject(val) && isEmpty(val)) lastChild = this.element(key);
|
|
9009
|
-
else if (this.options.keepNullNodes || null != val) {
|
|
9010
|
-
|
|
9011
|
-
|
|
9012
|
-
|
|
9013
|
-
|
|
9014
|
-
|
|
9015
|
-
|
|
9016
|
-
|
|
9017
|
-
|
|
9018
|
-
|
|
9019
|
-
|
|
9020
|
-
|
|
9021
|
-
|
|
9022
|
-
} else lastChild = this.element(key, val);
|
|
9023
|
-
} else lastChild = this.dummy();
|
|
8989
|
+
else if (this.options.keepNullNodes || null != val) if (!this.options.separateArrayItems && Array.isArray(val)) for(k = 0, len1 = val.length; k < len1; k++){
|
|
8990
|
+
item = val[k];
|
|
8991
|
+
childNode = {};
|
|
8992
|
+
childNode[key] = item;
|
|
8993
|
+
lastChild = this.element(childNode);
|
|
8994
|
+
}
|
|
8995
|
+
else if (isObject(val)) if (!this.options.ignoreDecorators && this.stringify.convertTextKey && 0 === key.indexOf(this.stringify.convertTextKey)) lastChild = this.element(val);
|
|
8996
|
+
else {
|
|
8997
|
+
lastChild = this.element(key);
|
|
8998
|
+
lastChild.element(val);
|
|
8999
|
+
}
|
|
9000
|
+
else lastChild = this.element(key, val);
|
|
9001
|
+
else lastChild = this.dummy();
|
|
9024
9002
|
}
|
|
9025
9003
|
} else lastChild = this.options.keepNullNodes || null !== text ? !this.options.ignoreDecorators && this.stringify.convertTextKey && 0 === name.indexOf(this.stringify.convertTextKey) ? this.text(text) : !this.options.ignoreDecorators && this.stringify.convertCDataKey && 0 === name.indexOf(this.stringify.convertCDataKey) ? this.cdata(text) : !this.options.ignoreDecorators && this.stringify.convertCommentKey && 0 === name.indexOf(this.stringify.convertCommentKey) ? this.comment(text) : !this.options.ignoreDecorators && this.stringify.convertRawKey && 0 === name.indexOf(this.stringify.convertRawKey) ? this.raw(text) : !this.options.ignoreDecorators && this.stringify.convertPIKey && 0 === name.indexOf(this.stringify.convertPIKey) ? this.instruction(name.substr(this.stringify.convertPIKey.length), text) : this.node(name, attributes, text) : this.dummy();
|
|
9026
9004
|
if (null == lastChild) throw new Error("Could not create any elements with: " + name + ". " + this.debugInfo());
|
|
@@ -9135,7 +9113,7 @@ var __webpack_modules__ = {
|
|
|
9135
9113
|
this.instruction(insTarget);
|
|
9136
9114
|
}
|
|
9137
9115
|
else if (isObject(target)) {
|
|
9138
|
-
for(insTarget in target)if (
|
|
9116
|
+
for(insTarget in target)if (hasProp.call(target, insTarget)) {
|
|
9139
9117
|
insValue = target[insTarget];
|
|
9140
9118
|
this.instruction(insTarget, insValue);
|
|
9141
9119
|
}
|
|
@@ -9201,8 +9179,8 @@ var __webpack_modules__ = {
|
|
|
9201
9179
|
root() {
|
|
9202
9180
|
var node;
|
|
9203
9181
|
node = this;
|
|
9204
|
-
while(node)
|
|
9205
|
-
|
|
9182
|
+
while(node)if (node.type === NodeType.Document) return node.rootObject;
|
|
9183
|
+
else {
|
|
9206
9184
|
if (node.isRoot) return node;
|
|
9207
9185
|
node = node.parent;
|
|
9208
9186
|
}
|
|
@@ -9210,10 +9188,8 @@ var __webpack_modules__ = {
|
|
|
9210
9188
|
document() {
|
|
9211
9189
|
var node;
|
|
9212
9190
|
node = this;
|
|
9213
|
-
while(node)
|
|
9214
|
-
|
|
9215
|
-
node = node.parent;
|
|
9216
|
-
}
|
|
9191
|
+
while(node)if (node.type === NodeType.Document) return node;
|
|
9192
|
+
else node = node.parent;
|
|
9217
9193
|
}
|
|
9218
9194
|
end(options) {
|
|
9219
9195
|
return this.document().end(options);
|
|
@@ -9669,7 +9645,7 @@ var __webpack_modules__ = {
|
|
|
9669
9645
|
if (options.pretty && options.width > 0) {
|
|
9670
9646
|
len = r.length;
|
|
9671
9647
|
ref = node.attribs;
|
|
9672
|
-
for(name in ref)if (
|
|
9648
|
+
for(name in ref)if (hasProp.call(ref, name)) {
|
|
9673
9649
|
att = ref[name];
|
|
9674
9650
|
ratt = this.attribute(att, options, level);
|
|
9675
9651
|
attLen = ratt.length;
|
|
@@ -9685,7 +9661,7 @@ var __webpack_modules__ = {
|
|
|
9685
9661
|
}
|
|
9686
9662
|
} else {
|
|
9687
9663
|
ref1 = node.attribs;
|
|
9688
|
-
for(name in ref1)if (
|
|
9664
|
+
for(name in ref1)if (hasProp.call(ref1, name)) {
|
|
9689
9665
|
att = ref1[name];
|
|
9690
9666
|
r += this.attribute(att, options, level);
|
|
9691
9667
|
}
|
|
@@ -9695,16 +9671,15 @@ var __webpack_modules__ = {
|
|
|
9695
9671
|
firstChildNode = 0 === childNodeCount ? null : node.children[0];
|
|
9696
9672
|
if (0 === childNodeCount || node.children.every(function(e) {
|
|
9697
9673
|
return (e.type === NodeType.Text || e.type === NodeType.Raw || e.type === NodeType.CData) && '' === e.value;
|
|
9698
|
-
})) {
|
|
9699
|
-
|
|
9700
|
-
|
|
9701
|
-
|
|
9702
|
-
|
|
9703
|
-
|
|
9704
|
-
|
|
9705
|
-
|
|
9706
|
-
|
|
9707
|
-
} else if (options.pretty && 1 === childNodeCount && (firstChildNode.type === NodeType.Text || firstChildNode.type === NodeType.Raw || firstChildNode.type === NodeType.CData) && null != firstChildNode.value) {
|
|
9674
|
+
})) if (options.allowEmpty) {
|
|
9675
|
+
this.stream.write('>');
|
|
9676
|
+
options.state = WriterState.CloseTag;
|
|
9677
|
+
this.stream.write('</' + node.name + '>');
|
|
9678
|
+
} else {
|
|
9679
|
+
options.state = WriterState.CloseTag;
|
|
9680
|
+
this.stream.write(options.spaceBeforeSlash + '/>');
|
|
9681
|
+
}
|
|
9682
|
+
else if (options.pretty && 1 === childNodeCount && (firstChildNode.type === NodeType.Text || firstChildNode.type === NodeType.Raw || firstChildNode.type === NodeType.CData) && null != firstChildNode.value) {
|
|
9708
9683
|
this.stream.write('>');
|
|
9709
9684
|
options.state = WriterState.InsideTag;
|
|
9710
9685
|
options.suppressPrettyCount++;
|
|
@@ -9787,7 +9762,7 @@ var __webpack_modules__ = {
|
|
|
9787
9762
|
this.options = options;
|
|
9788
9763
|
if (!this.options.version) this.options.version = '1.0';
|
|
9789
9764
|
ref = options.stringify || {};
|
|
9790
|
-
for(key in ref)if (
|
|
9765
|
+
for(key in ref)if (hasProp.call(ref, key)) {
|
|
9791
9766
|
value = ref[key];
|
|
9792
9767
|
this[key] = value;
|
|
9793
9768
|
}
|
|
@@ -9999,7 +9974,7 @@ var __webpack_modules__ = {
|
|
|
9999
9974
|
options || (options = {});
|
|
10000
9975
|
this.options = options;
|
|
10001
9976
|
ref = options.writer || {};
|
|
10002
|
-
for(key in ref)if (
|
|
9977
|
+
for(key in ref)if (hasProp.call(ref, key)) {
|
|
10003
9978
|
value = ref[key];
|
|
10004
9979
|
this["_" + key] = this[key];
|
|
10005
9980
|
this[key] = value;
|
|
@@ -10126,7 +10101,7 @@ var __webpack_modules__ = {
|
|
|
10126
10101
|
if (options.pretty && options.width > 0) {
|
|
10127
10102
|
len = r.length;
|
|
10128
10103
|
ref = node.attribs;
|
|
10129
|
-
for(name in ref)if (
|
|
10104
|
+
for(name in ref)if (hasProp.call(ref, name)) {
|
|
10130
10105
|
att = ref[name];
|
|
10131
10106
|
ratt = this.attribute(att, options, level);
|
|
10132
10107
|
attLen = ratt.length;
|
|
@@ -10142,7 +10117,7 @@ var __webpack_modules__ = {
|
|
|
10142
10117
|
}
|
|
10143
10118
|
} else {
|
|
10144
10119
|
ref1 = node.attribs;
|
|
10145
|
-
for(name in ref1)if (
|
|
10120
|
+
for(name in ref1)if (hasProp.call(ref1, name)) {
|
|
10146
10121
|
att = ref1[name];
|
|
10147
10122
|
r += this.attribute(att, options, level);
|
|
10148
10123
|
}
|
|
@@ -10151,16 +10126,15 @@ var __webpack_modules__ = {
|
|
|
10151
10126
|
firstChildNode = 0 === childNodeCount ? null : node.children[0];
|
|
10152
10127
|
if (0 === childNodeCount || node.children.every(function(e) {
|
|
10153
10128
|
return (e.type === NodeType.Text || e.type === NodeType.Raw || e.type === NodeType.CData) && '' === e.value;
|
|
10154
|
-
})) {
|
|
10155
|
-
|
|
10156
|
-
|
|
10157
|
-
|
|
10158
|
-
|
|
10159
|
-
|
|
10160
|
-
|
|
10161
|
-
|
|
10162
|
-
|
|
10163
|
-
} else if (options.pretty && 1 === childNodeCount && (firstChildNode.type === NodeType.Text || firstChildNode.type === NodeType.Raw || firstChildNode.type === NodeType.CData) && null != firstChildNode.value) {
|
|
10129
|
+
})) if (options.allowEmpty) {
|
|
10130
|
+
r += '>';
|
|
10131
|
+
options.state = WriterState.CloseTag;
|
|
10132
|
+
r += '</' + node.name + '>' + this.endline(node, options, level);
|
|
10133
|
+
} else {
|
|
10134
|
+
options.state = WriterState.CloseTag;
|
|
10135
|
+
r += options.spaceBeforeSlash + '/>' + this.endline(node, options, level);
|
|
10136
|
+
}
|
|
10137
|
+
else if (options.pretty && 1 === childNodeCount && (firstChildNode.type === NodeType.Text || firstChildNode.type === NodeType.Raw || firstChildNode.type === NodeType.CData) && null != firstChildNode.value) {
|
|
10164
10138
|
r += '>';
|
|
10165
10139
|
options.state = WriterState.InsideTag;
|
|
10166
10140
|
options.suppressPrettyCount++;
|
|
@@ -10417,15 +10391,27 @@ var __webpack_modules__ = {
|
|
|
10417
10391
|
},
|
|
10418
10392
|
"@hot-updater/aws/iac": function(module) {
|
|
10419
10393
|
"use strict";
|
|
10420
|
-
module.exports = import("@hot-updater/aws/iac")
|
|
10394
|
+
module.exports = import("@hot-updater/aws/iac").then(function(module) {
|
|
10395
|
+
return module;
|
|
10396
|
+
});
|
|
10421
10397
|
},
|
|
10422
10398
|
"@hot-updater/cloudflare/iac": function(module) {
|
|
10423
10399
|
"use strict";
|
|
10424
|
-
module.exports = import("@hot-updater/cloudflare/iac")
|
|
10400
|
+
module.exports = import("@hot-updater/cloudflare/iac").then(function(module) {
|
|
10401
|
+
return module;
|
|
10402
|
+
});
|
|
10403
|
+
},
|
|
10404
|
+
"@hot-updater/firebase/iac": function(module) {
|
|
10405
|
+
"use strict";
|
|
10406
|
+
module.exports = import("@hot-updater/firebase/iac").then(function(module) {
|
|
10407
|
+
return module;
|
|
10408
|
+
});
|
|
10425
10409
|
},
|
|
10426
10410
|
"@hot-updater/supabase/iac": function(module) {
|
|
10427
10411
|
"use strict";
|
|
10428
|
-
module.exports = import("@hot-updater/supabase/iac")
|
|
10412
|
+
module.exports = import("@hot-updater/supabase/iac").then(function(module) {
|
|
10413
|
+
return module;
|
|
10414
|
+
});
|
|
10429
10415
|
},
|
|
10430
10416
|
"../../node_modules/.pnpm/@babel+code-frame@7.26.2/node_modules/@babel/code-frame/lib/index.js": function(__unused_webpack_module, exports1, __webpack_require__) {
|
|
10431
10417
|
"use strict";
|
|
@@ -10520,33 +10506,31 @@ var __webpack_modules__ = {
|
|
|
10520
10506
|
const markerLines = {};
|
|
10521
10507
|
if (lineDiff) for(let i = 0; i <= lineDiff; i++){
|
|
10522
10508
|
const lineNumber = i + startLine;
|
|
10523
|
-
if (startColumn) {
|
|
10524
|
-
|
|
10525
|
-
|
|
10526
|
-
|
|
10527
|
-
|
|
10528
|
-
|
|
10529
|
-
|
|
10530
|
-
|
|
10509
|
+
if (startColumn) if (0 === i) {
|
|
10510
|
+
const sourceLength = source[lineNumber - 1].length;
|
|
10511
|
+
markerLines[lineNumber] = [
|
|
10512
|
+
startColumn,
|
|
10513
|
+
sourceLength - startColumn + 1
|
|
10514
|
+
];
|
|
10515
|
+
} else if (i === lineDiff) markerLines[lineNumber] = [
|
|
10516
|
+
0,
|
|
10517
|
+
endColumn
|
|
10518
|
+
];
|
|
10519
|
+
else {
|
|
10520
|
+
const sourceLength = source[lineNumber - i].length;
|
|
10521
|
+
markerLines[lineNumber] = [
|
|
10531
10522
|
0,
|
|
10532
|
-
|
|
10523
|
+
sourceLength
|
|
10533
10524
|
];
|
|
10534
|
-
|
|
10535
|
-
|
|
10536
|
-
markerLines[lineNumber] = [
|
|
10537
|
-
0,
|
|
10538
|
-
sourceLength
|
|
10539
|
-
];
|
|
10540
|
-
}
|
|
10541
|
-
} else markerLines[lineNumber] = true;
|
|
10525
|
+
}
|
|
10526
|
+
else markerLines[lineNumber] = true;
|
|
10542
10527
|
}
|
|
10543
|
-
else if (startColumn === endColumn)
|
|
10544
|
-
|
|
10545
|
-
|
|
10546
|
-
|
|
10547
|
-
|
|
10548
|
-
|
|
10549
|
-
} else markerLines[startLine] = [
|
|
10528
|
+
else if (startColumn === endColumn) if (startColumn) markerLines[startLine] = [
|
|
10529
|
+
startColumn,
|
|
10530
|
+
0
|
|
10531
|
+
];
|
|
10532
|
+
else markerLines[startLine] = true;
|
|
10533
|
+
else markerLines[startLine] = [
|
|
10550
10534
|
startColumn,
|
|
10551
10535
|
endColumn - startColumn
|
|
10552
10536
|
];
|
|
@@ -12019,13 +12003,11 @@ var __webpack_modules__ = {
|
|
|
12019
12003
|
};
|
|
12020
12004
|
this.#requireSize = (k, v, size, sizeCalculation)=>{
|
|
12021
12005
|
if (this.#isBackgroundFetch(v)) return 0;
|
|
12022
|
-
if (!isPosInt(size)) {
|
|
12023
|
-
if (sizeCalculation)
|
|
12024
|
-
|
|
12025
|
-
|
|
12026
|
-
|
|
12027
|
-
} else throw new TypeError("invalid size value (must be positive integer). When maxSize or maxEntrySize is used, sizeCalculation or size must be set.");
|
|
12028
|
-
}
|
|
12006
|
+
if (!isPosInt(size)) if (sizeCalculation) {
|
|
12007
|
+
if ('function' != typeof sizeCalculation) throw new TypeError('sizeCalculation must be a function');
|
|
12008
|
+
size = sizeCalculation(v, k);
|
|
12009
|
+
if (!isPosInt(size)) throw new TypeError('sizeCalculation return invalid (expect positive integer)');
|
|
12010
|
+
} else throw new TypeError("invalid size value (must be positive integer). When maxSize or maxEntrySize is used, sizeCalculation or size must be set.");
|
|
12029
12011
|
return size;
|
|
12030
12012
|
};
|
|
12031
12013
|
this.#addItemSize = (index, size, status)=>{
|
|
@@ -12048,7 +12030,7 @@ var __webpack_modules__ = {
|
|
|
12048
12030
|
return 0;
|
|
12049
12031
|
};
|
|
12050
12032
|
*#indexes({ allowStale = this.allowStale } = {}) {
|
|
12051
|
-
if (this.#size) for(let i = this.#tail
|
|
12033
|
+
if (this.#size) for(let i = this.#tail; true;){
|
|
12052
12034
|
if (!this.#isValidIndex(i)) break;
|
|
12053
12035
|
if (allowStale || !this.#isStale(i)) yield i;
|
|
12054
12036
|
if (i === this.#head) break;
|
|
@@ -12056,7 +12038,7 @@ var __webpack_modules__ = {
|
|
|
12056
12038
|
}
|
|
12057
12039
|
}
|
|
12058
12040
|
*#rindexes({ allowStale = this.allowStale } = {}) {
|
|
12059
|
-
if (this.#size) for(let i = this.#head
|
|
12041
|
+
if (this.#size) for(let i = this.#head; true;){
|
|
12060
12042
|
if (!this.#isValidIndex(i)) break;
|
|
12061
12043
|
if (allowStale || !this.#isStale(i)) yield i;
|
|
12062
12044
|
if (i === this.#tail) break;
|
|
@@ -12358,23 +12340,18 @@ var __webpack_modules__ = {
|
|
|
12358
12340
|
const cb = (v, updateCache = false)=>{
|
|
12359
12341
|
const { aborted } = ac.signal;
|
|
12360
12342
|
const ignoreAbort = options.ignoreFetchAbort && void 0 !== v;
|
|
12361
|
-
if (options.status) {
|
|
12362
|
-
|
|
12363
|
-
|
|
12364
|
-
|
|
12365
|
-
|
|
12366
|
-
} else options.status.fetchResolved = true;
|
|
12367
|
-
}
|
|
12343
|
+
if (options.status) if (aborted && !updateCache) {
|
|
12344
|
+
options.status.fetchAborted = true;
|
|
12345
|
+
options.status.fetchError = ac.signal.reason;
|
|
12346
|
+
if (ignoreAbort) options.status.fetchAbortIgnored = true;
|
|
12347
|
+
} else options.status.fetchResolved = true;
|
|
12368
12348
|
if (aborted && !ignoreAbort && !updateCache) return fetchFail(ac.signal.reason);
|
|
12369
12349
|
const bf = p;
|
|
12370
|
-
if (this.#valList[index] === p)
|
|
12371
|
-
|
|
12372
|
-
|
|
12373
|
-
|
|
12374
|
-
|
|
12375
|
-
if (options.status) options.status.fetchUpdated = true;
|
|
12376
|
-
this.set(k, v, fetchOpts.options);
|
|
12377
|
-
}
|
|
12350
|
+
if (this.#valList[index] === p) if (void 0 === v) if (bf.__staleWhileFetching) this.#valList[index] = bf.__staleWhileFetching;
|
|
12351
|
+
else this.delete(k);
|
|
12352
|
+
else {
|
|
12353
|
+
if (options.status) options.status.fetchUpdated = true;
|
|
12354
|
+
this.set(k, v, fetchOpts.options);
|
|
12378
12355
|
}
|
|
12379
12356
|
return v;
|
|
12380
12357
|
};
|
|
@@ -12788,10 +12765,7 @@ var __webpack_exports__ = {};
|
|
|
12788
12765
|
};
|
|
12789
12766
|
function writeFromReadableStream(stream, writable) {
|
|
12790
12767
|
if (stream.locked) throw new TypeError("ReadableStream is locked.");
|
|
12791
|
-
if (writable.destroyed)
|
|
12792
|
-
stream.cancel();
|
|
12793
|
-
return;
|
|
12794
|
-
}
|
|
12768
|
+
if (writable.destroyed) return void stream.cancel();
|
|
12795
12769
|
const reader = stream.getReader();
|
|
12796
12770
|
writable.on("close", cancel);
|
|
12797
12771
|
writable.on("error", cancel);
|
|
@@ -12950,16 +12924,14 @@ var __webpack_exports__ = {};
|
|
|
12950
12924
|
}
|
|
12951
12925
|
};
|
|
12952
12926
|
var responseViaResponseObject = async (res, outgoing, options = {})=>{
|
|
12953
|
-
if (res instanceof Promise) {
|
|
12954
|
-
|
|
12955
|
-
|
|
12956
|
-
|
|
12957
|
-
|
|
12958
|
-
|
|
12959
|
-
|
|
12960
|
-
|
|
12961
|
-
else res = await res.catch(handleFetchError);
|
|
12962
|
-
}
|
|
12927
|
+
if (res instanceof Promise) if (options.errorHandler) try {
|
|
12928
|
+
res = await res;
|
|
12929
|
+
} catch (err) {
|
|
12930
|
+
const errRes = await options.errorHandler(err);
|
|
12931
|
+
if (!errRes) return;
|
|
12932
|
+
res = errRes;
|
|
12933
|
+
}
|
|
12934
|
+
else res = await res.catch(handleFetchError);
|
|
12963
12935
|
if (cacheKey in res) return responseViaCache(res, outgoing);
|
|
12964
12936
|
const resHeaderRecord = buildOutgoingHttpHeaders(res.headers);
|
|
12965
12937
|
const internalBody = getInternalBody(res);
|
|
@@ -13384,10 +13356,7 @@ var __webpack_exports__ = {};
|
|
|
13384
13356
|
if (options.wait) return new Promise((resolve, reject)=>{
|
|
13385
13357
|
subprocess.once('error', reject);
|
|
13386
13358
|
subprocess.once('close', (exitCode)=>{
|
|
13387
|
-
if (!options.allowNonzeroExitCode && exitCode > 0) {
|
|
13388
|
-
reject(new Error(`Exited with code ${exitCode}`));
|
|
13389
|
-
return;
|
|
13390
|
-
}
|
|
13359
|
+
if (!options.allowNonzeroExitCode && exitCode > 0) return void reject(new Error(`Exited with code ${exitCode}`));
|
|
13391
13360
|
resolve(subprocess);
|
|
13392
13361
|
});
|
|
13393
13362
|
});
|
|
@@ -13622,7 +13591,7 @@ var __webpack_exports__ = {};
|
|
|
13622
13591
|
name: relative.replace(/\\/g, "/")
|
|
13623
13592
|
});
|
|
13624
13593
|
}
|
|
13625
|
-
for(const bundleBase in bundleCandidates)if (
|
|
13594
|
+
for(const bundleBase in bundleCandidates)if (bundleCandidates[bundleBase]) targets.push({
|
|
13626
13595
|
path: bundleCandidates[bundleBase],
|
|
13627
13596
|
name: bundleBase.replace(/\\/g, "/")
|
|
13628
13597
|
});
|
|
@@ -13777,10 +13746,7 @@ var __webpack_exports__ = {};
|
|
|
13777
13746
|
];
|
|
13778
13747
|
const platform = options.platform ?? (options.interactive ? await getPlatform("Which platform do you want to deploy?") : null);
|
|
13779
13748
|
if (prompts_namespaceObject.isCancel(platform)) return;
|
|
13780
|
-
if (!platform)
|
|
13781
|
-
prompts_namespaceObject.log.error("Platform not found. -p <ios | android> or --platform <ios | android>");
|
|
13782
|
-
return;
|
|
13783
|
-
}
|
|
13749
|
+
if (!platform) return void prompts_namespaceObject.log.error("Platform not found. -p <ios | android> or --platform <ios | android>");
|
|
13784
13750
|
const channel = options.channel;
|
|
13785
13751
|
const config = await (0, plugin_core_namespaceObject.loadConfig)({
|
|
13786
13752
|
platform,
|
|
@@ -13801,10 +13767,7 @@ var __webpack_exports__ = {};
|
|
|
13801
13767
|
}) : null);
|
|
13802
13768
|
const outputPath = options.bundleOutputPath ?? cwd;
|
|
13803
13769
|
if (prompts_namespaceObject.isCancel(targetAppVersion)) return;
|
|
13804
|
-
if (!targetAppVersion)
|
|
13805
|
-
prompts_namespaceObject.log.error("Target app version not found. -t <targetAppVersion> semver format (e.g. 1.0.0, 1.x.x)");
|
|
13806
|
-
return;
|
|
13807
|
-
}
|
|
13770
|
+
if (!targetAppVersion) return void prompts_namespaceObject.log.error("Target app version not found. -t <targetAppVersion> semver format (e.g. 1.0.0, 1.x.x)");
|
|
13808
13771
|
prompts_namespaceObject.log.info(`Target app version: ${valid_default()(targetAppVersion)}`);
|
|
13809
13772
|
let bundleId = null;
|
|
13810
13773
|
let fileHash;
|
|
@@ -14722,7 +14685,7 @@ Please set the "stdio" option to ensure that file descriptor exists.`);
|
|
|
14722
14685
|
verboseInfo
|
|
14723
14686
|
};
|
|
14724
14687
|
};
|
|
14725
|
-
var cross_spawn = __webpack_require__("../../node_modules/.pnpm/cross-spawn@7.0.
|
|
14688
|
+
var cross_spawn = __webpack_require__("../../node_modules/.pnpm/cross-spawn@7.0.6/node_modules/cross-spawn/index.js");
|
|
14726
14689
|
function pathKey(options = {}) {
|
|
14727
14690
|
const { env = process.env, platform = process.platform } = options;
|
|
14728
14691
|
if ('win32' !== platform) return 'PATH';
|
|
@@ -15717,14 +15680,8 @@ Please set this option with "pipe" instead.`;
|
|
|
15717
15680
|
const startIpc = async ({ anyProcess, channel, isSubprocess, ipc })=>{
|
|
15718
15681
|
if (cancelListening) return;
|
|
15719
15682
|
cancelListening = true;
|
|
15720
|
-
if (!ipc)
|
|
15721
|
-
|
|
15722
|
-
return;
|
|
15723
|
-
}
|
|
15724
|
-
if (null === channel) {
|
|
15725
|
-
abortOnDisconnect();
|
|
15726
|
-
return;
|
|
15727
|
-
}
|
|
15683
|
+
if (!ipc) return void throwOnMissingParent();
|
|
15684
|
+
if (null === channel) return void abortOnDisconnect();
|
|
15728
15685
|
getIpcEmitter(anyProcess, channel, isSubprocess);
|
|
15729
15686
|
await external_node_timers_promises_namespaceObject.scheduler["yield"]();
|
|
15730
15687
|
};
|
|
@@ -16175,10 +16132,7 @@ Please rename it to one of: ${correctEncodings}.`);
|
|
|
16175
16132
|
const appendChunk = ({ convertedChunk, state, getSize, truncateChunk, addChunk, maxBuffer })=>{
|
|
16176
16133
|
const chunkSize = getSize(convertedChunk);
|
|
16177
16134
|
const newLength = state.length + chunkSize;
|
|
16178
|
-
if (newLength <= maxBuffer)
|
|
16179
|
-
addNewChunk(convertedChunk, state, addChunk, newLength);
|
|
16180
|
-
return;
|
|
16181
|
-
}
|
|
16135
|
+
if (newLength <= maxBuffer) return void addNewChunk(convertedChunk, state, addChunk, newLength);
|
|
16182
16136
|
const truncatedChunk = truncateChunk(convertedChunk, maxBuffer - state.length);
|
|
16183
16137
|
if (void 0 !== truncatedChunk) addNewChunk(truncatedChunk, state, addChunk, maxBuffer);
|
|
16184
16138
|
throw new MaxBufferError();
|
|
@@ -16531,31 +16485,29 @@ Please rename it to one of: ${correctEncodings}.`);
|
|
|
16531
16485
|
add(Number(parsed.hours), 'hour', 'h');
|
|
16532
16486
|
}
|
|
16533
16487
|
add(Number(parsed.minutes), 'minute', 'm');
|
|
16534
|
-
if (!options.hideSeconds) {
|
|
16535
|
-
|
|
16536
|
-
|
|
16537
|
-
|
|
16538
|
-
|
|
16539
|
-
|
|
16540
|
-
|
|
16541
|
-
|
|
16542
|
-
|
|
16543
|
-
|
|
16544
|
-
add(nanoseconds, 'nanosecond', 'ns');
|
|
16545
|
-
} else {
|
|
16546
|
-
const millisecondsAndBelow = milliseconds + microseconds / 1000 + nanoseconds / 1e6;
|
|
16547
|
-
const millisecondsDecimalDigits = 'number' == typeof options.millisecondsDecimalDigits ? options.millisecondsDecimalDigits : 0;
|
|
16548
|
-
const roundedMilliseconds = millisecondsAndBelow >= 1 ? Math.round(millisecondsAndBelow) : Math.ceil(millisecondsAndBelow);
|
|
16549
|
-
const millisecondsString = millisecondsDecimalDigits ? millisecondsAndBelow.toFixed(millisecondsDecimalDigits) : roundedMilliseconds;
|
|
16550
|
-
add(Number.parseFloat(millisecondsString), 'millisecond', 'ms', millisecondsString);
|
|
16551
|
-
}
|
|
16488
|
+
if (!options.hideSeconds) if (options.separateMilliseconds || options.formatSubMilliseconds || !options.colonNotation && milliseconds < 1000) {
|
|
16489
|
+
const seconds = Number(parsed.seconds);
|
|
16490
|
+
const milliseconds = Number(parsed.milliseconds);
|
|
16491
|
+
const microseconds = Number(parsed.microseconds);
|
|
16492
|
+
const nanoseconds = Number(parsed.nanoseconds);
|
|
16493
|
+
add(seconds, 'second', 's');
|
|
16494
|
+
if (options.formatSubMilliseconds) {
|
|
16495
|
+
add(milliseconds, 'millisecond', 'ms');
|
|
16496
|
+
add(microseconds, 'microsecond', 'µs');
|
|
16497
|
+
add(nanoseconds, 'nanosecond', 'ns');
|
|
16552
16498
|
} else {
|
|
16553
|
-
const
|
|
16554
|
-
const
|
|
16555
|
-
const
|
|
16556
|
-
const
|
|
16557
|
-
add(Number.parseFloat(
|
|
16499
|
+
const millisecondsAndBelow = milliseconds + microseconds / 1000 + nanoseconds / 1e6;
|
|
16500
|
+
const millisecondsDecimalDigits = 'number' == typeof options.millisecondsDecimalDigits ? options.millisecondsDecimalDigits : 0;
|
|
16501
|
+
const roundedMilliseconds = millisecondsAndBelow >= 1 ? Math.round(millisecondsAndBelow) : Math.ceil(millisecondsAndBelow);
|
|
16502
|
+
const millisecondsString = millisecondsDecimalDigits ? millisecondsAndBelow.toFixed(millisecondsDecimalDigits) : roundedMilliseconds;
|
|
16503
|
+
add(Number.parseFloat(millisecondsString), 'millisecond', 'ms', millisecondsString);
|
|
16558
16504
|
}
|
|
16505
|
+
} else {
|
|
16506
|
+
const seconds = (isBigInt ? Number(milliseconds % ONE_DAY_IN_MILLISECONDS) : milliseconds) / 1000 % 60;
|
|
16507
|
+
const secondsDecimalDigits = 'number' == typeof options.secondsDecimalDigits ? options.secondsDecimalDigits : 1;
|
|
16508
|
+
const secondsFixed = floorDecimals(seconds, secondsDecimalDigits);
|
|
16509
|
+
const secondsString = options.keepDecimalsOnWholeSeconds ? secondsFixed : secondsFixed.replace(/\.0+$/, '');
|
|
16510
|
+
add(Number.parseFloat(secondsString), 'second', 's', secondsString);
|
|
16559
16511
|
}
|
|
16560
16512
|
if (0 === result.length) return sign + '0' + (options.verbose ? ' milliseconds' : 'ms');
|
|
16561
16513
|
const separator = options.colonNotation ? ':' : ' ';
|
|
@@ -17011,16 +16963,13 @@ Please rename it to one of: ${correctEncodings}.`);
|
|
|
17011
16963
|
const getDuplicateStream = ({ stdioItem: { type, value, optionName }, direction, fileDescriptors, isSync })=>{
|
|
17012
16964
|
const otherStdioItems = getOtherStdioItems(fileDescriptors, type);
|
|
17013
16965
|
if (0 === otherStdioItems.length) return;
|
|
17014
|
-
if (isSync) {
|
|
17015
|
-
|
|
17016
|
-
|
|
17017
|
-
|
|
17018
|
-
|
|
17019
|
-
|
|
17020
|
-
|
|
17021
|
-
});
|
|
17022
|
-
return;
|
|
17023
|
-
}
|
|
16966
|
+
if (isSync) return void validateDuplicateStreamSync({
|
|
16967
|
+
otherStdioItems,
|
|
16968
|
+
type,
|
|
16969
|
+
value,
|
|
16970
|
+
optionName,
|
|
16971
|
+
direction
|
|
16972
|
+
});
|
|
17024
16973
|
if (SPECIAL_DUPLICATE_TYPES.has(type)) return getDuplicateStreamInstance({
|
|
17025
16974
|
otherStdioItems,
|
|
17026
16975
|
type,
|
|
@@ -17296,10 +17245,7 @@ For example, you can use the \`pathToFileURL()\` method of the \`url\` core modu
|
|
|
17296
17245
|
};
|
|
17297
17246
|
};
|
|
17298
17247
|
const splitGenerator = function*(state, preserveNewlines, chunk) {
|
|
17299
|
-
if ('string' != typeof chunk)
|
|
17300
|
-
yield chunk;
|
|
17301
|
-
return;
|
|
17302
|
-
}
|
|
17248
|
+
if ('string' != typeof chunk) return void (yield chunk);
|
|
17303
17249
|
let { previousChunks } = state;
|
|
17304
17250
|
let start = -1;
|
|
17305
17251
|
for(let end = 0; end < chunk.length; end += 1)if ('\n' === chunk[end]) {
|
|
@@ -17328,10 +17274,7 @@ For example, you can use the \`pathToFileURL()\` method of the \`url\` core modu
|
|
|
17328
17274
|
};
|
|
17329
17275
|
const appendNewlineGenerator = function*({ isWindowsNewline = false }, chunk) {
|
|
17330
17276
|
const { unixNewline, windowsNewline, LF, concatBytes } = 'string' == typeof chunk ? linesStringInfo : linesUint8ArrayInfo;
|
|
17331
|
-
if (chunk.at(-1) === LF)
|
|
17332
|
-
yield chunk;
|
|
17333
|
-
return;
|
|
17334
|
-
}
|
|
17277
|
+
if (chunk.at(-1) === LF) return void (yield chunk);
|
|
17335
17278
|
const newline = isWindowsNewline ? windowsNewline : unixNewline;
|
|
17336
17279
|
yield concatBytes(chunk, newline);
|
|
17337
17280
|
};
|
|
@@ -17411,10 +17354,7 @@ Instead, \`yield\` should either be called with a value, or not be called at all
|
|
|
17411
17354
|
}
|
|
17412
17355
|
});
|
|
17413
17356
|
const transformChunk = async function*(chunk, generators, index) {
|
|
17414
|
-
if (index === generators.length)
|
|
17415
|
-
yield chunk;
|
|
17416
|
-
return;
|
|
17417
|
-
}
|
|
17357
|
+
if (index === generators.length) return void (yield chunk);
|
|
17418
17358
|
const { transform = identityGenerator } = generators[index];
|
|
17419
17359
|
for await (const transformedChunk of transform(chunk))yield* transformChunk(transformedChunk, generators, index + 1);
|
|
17420
17360
|
};
|
|
@@ -17426,10 +17366,7 @@ Instead, \`yield\` should either be called with a value, or not be called at all
|
|
|
17426
17366
|
for await (const finalChunk of final())yield* transformChunk(finalChunk, generators, index + 1);
|
|
17427
17367
|
};
|
|
17428
17368
|
const destroyTransform = (0, external_node_util_namespaceObject.callbackify)(async ({ currentIterable }, error)=>{
|
|
17429
|
-
if (void 0 !== currentIterable)
|
|
17430
|
-
await (error ? currentIterable.throw(error) : currentIterable.return());
|
|
17431
|
-
return;
|
|
17432
|
-
}
|
|
17369
|
+
if (void 0 !== currentIterable) return void await (error ? currentIterable.throw(error) : currentIterable.return());
|
|
17433
17370
|
if (error) throw error;
|
|
17434
17371
|
});
|
|
17435
17372
|
const identityGenerator = function*(chunk) {
|
|
@@ -17450,10 +17387,7 @@ Instead, \`yield\` should either be called with a value, or not be called at all
|
|
|
17450
17387
|
...finalChunksSync(generators)
|
|
17451
17388
|
];
|
|
17452
17389
|
const transformChunkSync = function*(chunk, generators, index) {
|
|
17453
|
-
if (index === generators.length)
|
|
17454
|
-
yield chunk;
|
|
17455
|
-
return;
|
|
17456
|
-
}
|
|
17390
|
+
if (index === generators.length) return void (yield chunk);
|
|
17457
17391
|
const { transform = run_sync_identityGenerator } = generators[index];
|
|
17458
17392
|
for (const transformedChunk of transform(chunk))yield* transformChunkSync(transformedChunk, generators, index + 1);
|
|
17459
17393
|
};
|
|
@@ -18291,10 +18225,8 @@ Instead, \`yield\` should either be called with a value, or not be called at all
|
|
|
18291
18225
|
controller.abort();
|
|
18292
18226
|
updateMaxListeners(passThroughStream, -PASSTHROUGH_LISTENERS_PER_STREAM);
|
|
18293
18227
|
}
|
|
18294
|
-
if (streams.size > 0 && streams.size === ended.size + aborted.size)
|
|
18295
|
-
|
|
18296
|
-
else endStream(passThroughStream);
|
|
18297
|
-
}
|
|
18228
|
+
if (streams.size > 0 && streams.size === ended.size + aborted.size) if (0 === ended.size && aborted.size > 0) abortStream(passThroughStream);
|
|
18229
|
+
else endStream(passThroughStream);
|
|
18298
18230
|
};
|
|
18299
18231
|
const afterMergedStreamFinished = async (onFinished, stream, { signal })=>{
|
|
18300
18232
|
try {
|
|
@@ -19024,13 +18956,10 @@ Instead, \`yield\` should either be called with a value, or not be called at all
|
|
|
19024
18956
|
verboseInfo,
|
|
19025
18957
|
streamInfo
|
|
19026
18958
|
});
|
|
19027
|
-
if (!buffer)
|
|
19028
|
-
|
|
19029
|
-
|
|
19030
|
-
|
|
19031
|
-
]);
|
|
19032
|
-
return;
|
|
19033
|
-
}
|
|
18959
|
+
if (!buffer) return void await Promise.all([
|
|
18960
|
+
resumeStream(stream),
|
|
18961
|
+
logPromise
|
|
18962
|
+
]);
|
|
19034
18963
|
const stripFinalNewlineValue = getStripFinalNewline(stripFinalNewline, fdNumber);
|
|
19035
18964
|
const iterable = iterateForResult({
|
|
19036
18965
|
stream,
|
|
@@ -19166,10 +19095,7 @@ Instead, \`yield\` should either be called with a value, or not be called at all
|
|
|
19166
19095
|
const waitForSubprocessStream = async ({ stream, fdNumber, encoding, buffer, maxBuffer, lines, allMixed, stripFinalNewline, verboseInfo, streamInfo })=>{
|
|
19167
19096
|
if (!stream) return;
|
|
19168
19097
|
const onStreamEnd = waitForStream(stream, fdNumber, streamInfo);
|
|
19169
|
-
if (isInputFileDescriptor(streamInfo, fdNumber))
|
|
19170
|
-
await onStreamEnd;
|
|
19171
|
-
return;
|
|
19172
|
-
}
|
|
19098
|
+
if (isInputFileDescriptor(streamInfo, fdNumber)) return void await onStreamEnd;
|
|
19173
19099
|
const [output] = await Promise.all([
|
|
19174
19100
|
getStreamOutput({
|
|
19175
19101
|
stream,
|
|
@@ -19979,15 +19905,21 @@ Instead, \`yield\` should either be called with a value, or not be called at all
|
|
|
19979
19905
|
title: "Checking packages",
|
|
19980
19906
|
task: async (message)=>{
|
|
19981
19907
|
message(`Installing ${dependenciesToInstall.join(", ")}...`);
|
|
19982
|
-
|
|
19983
|
-
|
|
19984
|
-
|
|
19985
|
-
|
|
19986
|
-
|
|
19987
|
-
|
|
19908
|
+
try {
|
|
19909
|
+
const result = await execa(packageManager, [
|
|
19910
|
+
"yarn" === packageManager ? "add" : "install",
|
|
19911
|
+
...dependenciesToInstall.map(ensurePackageVersion)
|
|
19912
|
+
]);
|
|
19913
|
+
if (result.stderr) {
|
|
19914
|
+
prompts_namespaceObject.log.error(result.stderr);
|
|
19915
|
+
process.exit(1);
|
|
19916
|
+
}
|
|
19917
|
+
return `Installed ${dependenciesToInstall.join(", ")}`;
|
|
19918
|
+
} catch (e) {
|
|
19919
|
+
if (e instanceof ExecaError) prompts_namespaceObject.log.error(e.stderr || e.stdout || e.message);
|
|
19920
|
+
else if (e instanceof Error) prompts_namespaceObject.log.error(e.message);
|
|
19988
19921
|
process.exit(1);
|
|
19989
19922
|
}
|
|
19990
|
-
return `Installed ${dependenciesToInstall.join(", ")}`;
|
|
19991
19923
|
}
|
|
19992
19924
|
},
|
|
19993
19925
|
{
|
|
@@ -19995,16 +19927,22 @@ Instead, \`yield\` should either be called with a value, or not be called at all
|
|
|
19995
19927
|
title: "Installing dev dependencies",
|
|
19996
19928
|
task: async (message)=>{
|
|
19997
19929
|
message(`Installing ${devDependenciesToInstall.join(", ")}...`);
|
|
19998
|
-
|
|
19999
|
-
|
|
20000
|
-
|
|
20001
|
-
|
|
20002
|
-
|
|
20003
|
-
|
|
20004
|
-
|
|
19930
|
+
try {
|
|
19931
|
+
const result = await execa(packageManager, [
|
|
19932
|
+
"yarn" === packageManager ? "add" : "install",
|
|
19933
|
+
...devDependenciesToInstall.map(ensurePackageVersion),
|
|
19934
|
+
"yarn" === packageManager ? "--dev" : "--save-dev"
|
|
19935
|
+
]);
|
|
19936
|
+
if (result.stderr) {
|
|
19937
|
+
prompts_namespaceObject.log.error(result.stderr);
|
|
19938
|
+
process.exit(1);
|
|
19939
|
+
}
|
|
19940
|
+
return `Installed ${devDependenciesToInstall.join(", ")}`;
|
|
19941
|
+
} catch (e) {
|
|
19942
|
+
if (e instanceof ExecaError) prompts_namespaceObject.log.error(e.stderr || e.stdout || e.message);
|
|
19943
|
+
else if (e instanceof Error) prompts_namespaceObject.log.error(e.message);
|
|
20005
19944
|
process.exit(1);
|
|
20006
19945
|
}
|
|
20007
|
-
return `Installed ${devDependenciesToInstall.join(", ")}`;
|
|
20008
19946
|
}
|
|
20009
19947
|
}
|
|
20010
19948
|
]);
|
|
@@ -20036,26 +19974,35 @@ Instead, \`yield\` should either be called with a value, or not be called at all
|
|
|
20036
19974
|
"wrangler",
|
|
20037
19975
|
"@hot-updater/cloudflare"
|
|
20038
19976
|
]
|
|
19977
|
+
},
|
|
19978
|
+
firebase: {
|
|
19979
|
+
dependencies: [],
|
|
19980
|
+
devDependencies: [
|
|
19981
|
+
"firebase-tools",
|
|
19982
|
+
"firebase-admin",
|
|
19983
|
+
"@hot-updater/firebase"
|
|
19984
|
+
]
|
|
20039
19985
|
}
|
|
20040
19986
|
};
|
|
20041
19987
|
const init_init = async ()=>{
|
|
20042
19988
|
printBanner();
|
|
20043
|
-
const buildPluginPackage = await
|
|
19989
|
+
const buildPluginPackage = await prompts_namespaceObject.select({
|
|
20044
19990
|
message: "Select a build plugin",
|
|
20045
19991
|
options: [
|
|
20046
19992
|
{
|
|
20047
19993
|
value: {
|
|
20048
19994
|
dependencies: [],
|
|
20049
19995
|
devDependencies: [
|
|
20050
|
-
"@hot-updater/
|
|
19996
|
+
"@hot-updater/bare"
|
|
20051
19997
|
]
|
|
20052
19998
|
},
|
|
20053
|
-
label: "
|
|
19999
|
+
label: "Bare",
|
|
20000
|
+
hint: "React Native CLI"
|
|
20054
20001
|
}
|
|
20055
20002
|
]
|
|
20056
20003
|
});
|
|
20057
|
-
if (
|
|
20058
|
-
const provider = await
|
|
20004
|
+
if (prompts_namespaceObject.isCancel(buildPluginPackage)) process.exit(0);
|
|
20005
|
+
const provider = await prompts_namespaceObject.select({
|
|
20059
20006
|
message: "Select a provider",
|
|
20060
20007
|
options: [
|
|
20061
20008
|
{
|
|
@@ -20069,10 +20016,14 @@ Instead, \`yield\` should either be called with a value, or not be called at all
|
|
|
20069
20016
|
{
|
|
20070
20017
|
value: "aws",
|
|
20071
20018
|
label: "AWS S3 + Lambda@Edge"
|
|
20019
|
+
},
|
|
20020
|
+
{
|
|
20021
|
+
value: "firebase",
|
|
20022
|
+
label: "Firebase"
|
|
20072
20023
|
}
|
|
20073
20024
|
]
|
|
20074
20025
|
});
|
|
20075
|
-
if (
|
|
20026
|
+
if (prompts_namespaceObject.isCancel(provider)) process.exit(0);
|
|
20076
20027
|
try {
|
|
20077
20028
|
await ensureInstallPackages({
|
|
20078
20029
|
dependencies: [
|
|
@@ -20110,6 +20061,12 @@ Instead, \`yield\` should either be called with a value, or not be called at all
|
|
|
20110
20061
|
await aws.runInit();
|
|
20111
20062
|
break;
|
|
20112
20063
|
}
|
|
20064
|
+
case "firebase":
|
|
20065
|
+
{
|
|
20066
|
+
const firebase = await Promise.resolve().then(__webpack_require__.bind(__webpack_require__, "@hot-updater/firebase/iac"));
|
|
20067
|
+
await firebase.runInit();
|
|
20068
|
+
break;
|
|
20069
|
+
}
|
|
20113
20070
|
default:
|
|
20114
20071
|
throw new Error("Invalid provider");
|
|
20115
20072
|
}
|
|
@@ -20149,8 +20106,7 @@ Instead, \`yield\` should either be called with a value, or not be called at all
|
|
|
20149
20106
|
});
|
|
20150
20107
|
program.parse(process.argv);
|
|
20151
20108
|
})();
|
|
20152
|
-
var
|
|
20153
|
-
|
|
20154
|
-
if (__webpack_exports__.__esModule) Object.defineProperty(__webpack_export_target__, '__esModule', {
|
|
20109
|
+
for(var __webpack_i__ in __webpack_exports__)exports[__webpack_i__] = __webpack_exports__[__webpack_i__];
|
|
20110
|
+
Object.defineProperty(exports, '__esModule', {
|
|
20155
20111
|
value: true
|
|
20156
20112
|
});
|