hot-updater 0.16.3 → 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/index.js CHANGED
@@ -1066,10 +1066,7 @@ var __webpack_modules__ = {
1066
1066
  if (nodeFilter) {
1067
1067
  node = nodeFilter(node);
1068
1068
  if (!node) return;
1069
- if ('string' == typeof node) {
1070
- buf.push(node);
1071
- return;
1072
- }
1069
+ if ('string' == typeof node) return void buf.push(node);
1073
1070
  }
1074
1071
  switch(node.nodeType){
1075
1072
  case ELEMENT_NODE:
@@ -4013,10 +4010,10 @@ var __webpack_modules__ = {
4013
4010
  return parts.join('');
4014
4011
  }
4015
4012
  },
4016
- "../../node_modules/.pnpm/cross-spawn@7.0.3/node_modules/cross-spawn/index.js": function(module, __unused_webpack_exports, __webpack_require__) {
4013
+ "../../node_modules/.pnpm/cross-spawn@7.0.6/node_modules/cross-spawn/index.js": function(module, __unused_webpack_exports, __webpack_require__) {
4017
4014
  const cp = __webpack_require__("child_process");
4018
- const parse = __webpack_require__("../../node_modules/.pnpm/cross-spawn@7.0.3/node_modules/cross-spawn/lib/parse.js");
4019
- const enoent = __webpack_require__("../../node_modules/.pnpm/cross-spawn@7.0.3/node_modules/cross-spawn/lib/enoent.js");
4015
+ const parse = __webpack_require__("../../node_modules/.pnpm/cross-spawn@7.0.6/node_modules/cross-spawn/lib/parse.js");
4016
+ const enoent = __webpack_require__("../../node_modules/.pnpm/cross-spawn@7.0.6/node_modules/cross-spawn/lib/enoent.js");
4020
4017
  function spawn(command, args, options) {
4021
4018
  const parsed = parse(command, args, options);
4022
4019
  const spawned = cp.spawn(parsed.command, parsed.args, parsed.options);
@@ -4035,7 +4032,7 @@ var __webpack_modules__ = {
4035
4032
  module.exports._parse = parse;
4036
4033
  module.exports._enoent = enoent;
4037
4034
  },
4038
- "../../node_modules/.pnpm/cross-spawn@7.0.3/node_modules/cross-spawn/lib/enoent.js": function(module) {
4035
+ "../../node_modules/.pnpm/cross-spawn@7.0.6/node_modules/cross-spawn/lib/enoent.js": function(module) {
4039
4036
  const isWin = 'win32' === process.platform;
4040
4037
  function notFoundError(original, syscall) {
4041
4038
  return Object.assign(new Error(`${syscall} ${original.command} ENOENT`), {
@@ -4051,7 +4048,7 @@ var __webpack_modules__ = {
4051
4048
  const originalEmit = cp.emit;
4052
4049
  cp.emit = function(name, arg1) {
4053
4050
  if ('exit' === name) {
4054
- const err = verifyENOENT(arg1, parsed, 'spawn');
4051
+ const err = verifyENOENT(arg1, parsed);
4055
4052
  if (err) return originalEmit.call(cp, 'error', err);
4056
4053
  }
4057
4054
  return originalEmit.apply(cp, arguments);
@@ -4072,11 +4069,11 @@ var __webpack_modules__ = {
4072
4069
  notFoundError
4073
4070
  };
4074
4071
  },
4075
- "../../node_modules/.pnpm/cross-spawn@7.0.3/node_modules/cross-spawn/lib/parse.js": function(module, __unused_webpack_exports, __webpack_require__) {
4072
+ "../../node_modules/.pnpm/cross-spawn@7.0.6/node_modules/cross-spawn/lib/parse.js": function(module, __unused_webpack_exports, __webpack_require__) {
4076
4073
  const path = __webpack_require__("path");
4077
- const resolveCommand = __webpack_require__("../../node_modules/.pnpm/cross-spawn@7.0.3/node_modules/cross-spawn/lib/util/resolveCommand.js");
4078
- const escape = __webpack_require__("../../node_modules/.pnpm/cross-spawn@7.0.3/node_modules/cross-spawn/lib/util/escape.js");
4079
- const readShebang = __webpack_require__("../../node_modules/.pnpm/cross-spawn@7.0.3/node_modules/cross-spawn/lib/util/readShebang.js");
4074
+ const resolveCommand = __webpack_require__("../../node_modules/.pnpm/cross-spawn@7.0.6/node_modules/cross-spawn/lib/util/resolveCommand.js");
4075
+ const escape = __webpack_require__("../../node_modules/.pnpm/cross-spawn@7.0.6/node_modules/cross-spawn/lib/util/escape.js");
4076
+ const readShebang = __webpack_require__("../../node_modules/.pnpm/cross-spawn@7.0.6/node_modules/cross-spawn/lib/util/readShebang.js");
4080
4077
  const isWin = 'win32' === process.platform;
4081
4078
  const isExecutableRegExp = /\.(?:com|exe)$/i;
4082
4079
  const isCmdShimRegExp = /node_modules[\\/].bin[\\/][^\\/]+\.cmd$/i;
@@ -4134,7 +4131,7 @@ var __webpack_modules__ = {
4134
4131
  }
4135
4132
  module.exports = parse;
4136
4133
  },
4137
- "../../node_modules/.pnpm/cross-spawn@7.0.3/node_modules/cross-spawn/lib/util/escape.js": function(module) {
4134
+ "../../node_modules/.pnpm/cross-spawn@7.0.6/node_modules/cross-spawn/lib/util/escape.js": function(module) {
4138
4135
  const metaCharsRegExp = /([()\][%!^"`<>&|;, *?])/g;
4139
4136
  function escapeCommand(arg) {
4140
4137
  arg = arg.replace(metaCharsRegExp, '^$1');
@@ -4142,8 +4139,8 @@ var __webpack_modules__ = {
4142
4139
  }
4143
4140
  function escapeArgument(arg, doubleEscapeMetaChars) {
4144
4141
  arg = `${arg}`;
4145
- arg = arg.replace(/(\\*)"/g, '$1$1\\"');
4146
- arg = arg.replace(/(\\*)$/, '$1$1');
4142
+ arg = arg.replace(/(?=(\\+?)?)\1"/g, '$1$1\\"');
4143
+ arg = arg.replace(/(?=(\\+?)?)\1$/, '$1$1');
4147
4144
  arg = `"${arg}"`;
4148
4145
  arg = arg.replace(metaCharsRegExp, '^$1');
4149
4146
  if (doubleEscapeMetaChars) arg = arg.replace(metaCharsRegExp, '^$1');
@@ -4152,7 +4149,7 @@ var __webpack_modules__ = {
4152
4149
  module.exports.command = escapeCommand;
4153
4150
  module.exports.argument = escapeArgument;
4154
4151
  },
4155
- "../../node_modules/.pnpm/cross-spawn@7.0.3/node_modules/cross-spawn/lib/util/readShebang.js": function(module, __unused_webpack_exports, __webpack_require__) {
4152
+ "../../node_modules/.pnpm/cross-spawn@7.0.6/node_modules/cross-spawn/lib/util/readShebang.js": function(module, __unused_webpack_exports, __webpack_require__) {
4156
4153
  const fs = __webpack_require__("fs");
4157
4154
  const shebangCommand = __webpack_require__("../../node_modules/.pnpm/shebang-command@2.0.0/node_modules/shebang-command/index.js");
4158
4155
  function readShebang(command) {
@@ -4168,7 +4165,7 @@ var __webpack_modules__ = {
4168
4165
  }
4169
4166
  module.exports = readShebang;
4170
4167
  },
4171
- "../../node_modules/.pnpm/cross-spawn@7.0.3/node_modules/cross-spawn/lib/util/resolveCommand.js": function(module, __unused_webpack_exports, __webpack_require__) {
4168
+ "../../node_modules/.pnpm/cross-spawn@7.0.6/node_modules/cross-spawn/lib/util/resolveCommand.js": function(module, __unused_webpack_exports, __webpack_require__) {
4172
4169
  const path = __webpack_require__("path");
4173
4170
  const which = __webpack_require__("../../node_modules/.pnpm/which@2.0.2/node_modules/which/which.js");
4174
4171
  const getPathKey = __webpack_require__("../../node_modules/.pnpm/path-key@3.1.1/node_modules/path-key/index.js");
@@ -4626,10 +4623,8 @@ var __webpack_modules__ = {
4626
4623
  const proto = arg.slice(0, firstColon + 1);
4627
4624
  if (Object.prototype.hasOwnProperty.call(protocols, proto)) return arg;
4628
4625
  const firstAt = arg.indexOf('@');
4629
- if (firstAt > -1) {
4630
- if (firstAt > firstColon) return `git+ssh://${arg}`;
4631
- return arg;
4632
- }
4626
+ if (firstAt > -1) if (firstAt > firstColon) return `git+ssh://${arg}`;
4627
+ else return arg;
4633
4628
  const doubleSlash = arg.indexOf('//');
4634
4629
  if (doubleSlash === firstColon + 1) return arg;
4635
4630
  return `${arg.slice(0, firstColon + 1)}//${arg.slice(firstColon + 1)}`;
@@ -4974,26 +4969,21 @@ var __webpack_modules__ = {
4974
4969
  url: hosted.bugs()
4975
4970
  };
4976
4971
  } else if (data.bugs) {
4977
- if ('string' == typeof data.bugs) {
4978
- if (isEmail(data.bugs)) data.bugs = {
4979
- email: data.bugs
4980
- };
4981
- else if (url.parse(data.bugs).protocol) data.bugs = {
4982
- url: data.bugs
4983
- };
4984
- else this.warn('nonEmailUrlBugsString');
4985
- } else {
4972
+ if ('string' == typeof data.bugs) if (isEmail(data.bugs)) data.bugs = {
4973
+ email: data.bugs
4974
+ };
4975
+ else if (url.parse(data.bugs).protocol) data.bugs = {
4976
+ url: data.bugs
4977
+ };
4978
+ else this.warn('nonEmailUrlBugsString');
4979
+ else {
4986
4980
  bugsTypos(data.bugs, this.warn);
4987
4981
  var oldBugs = data.bugs;
4988
4982
  data.bugs = {};
4989
- if (oldBugs.url) {
4990
- if ('string' == typeof oldBugs.url && url.parse(oldBugs.url).protocol) data.bugs.url = oldBugs.url;
4991
- else this.warn('nonUrlBugsUrlField');
4992
- }
4993
- if (oldBugs.email) {
4994
- if ('string' == typeof oldBugs.email && isEmail(oldBugs.email)) data.bugs.email = oldBugs.email;
4995
- else this.warn('nonEmailBugsEmailField');
4996
- }
4983
+ if (oldBugs.url) if ('string' == typeof oldBugs.url && url.parse(oldBugs.url).protocol) data.bugs.url = oldBugs.url;
4984
+ else this.warn('nonUrlBugsUrlField');
4985
+ if (oldBugs.email) if ('string' == typeof oldBugs.email && isEmail(oldBugs.email)) data.bugs.email = oldBugs.email;
4986
+ else this.warn('nonEmailBugsEmailField');
4997
4987
  }
4998
4988
  if (!data.bugs.email && !data.bugs.url) {
4999
4989
  delete data.bugs;
@@ -5468,10 +5458,8 @@ var __webpack_modules__ = {
5468
5458
  }
5469
5459
  constructor(comp, options){
5470
5460
  options = parseOptions(options);
5471
- if (comp instanceof Comparator) {
5472
- if (!!options.loose === comp.loose) return comp;
5473
- comp = comp.value;
5474
- }
5461
+ if (comp instanceof Comparator) if (!!options.loose === comp.loose) return comp;
5462
+ else comp = comp.value;
5475
5463
  comp = comp.trim().split(/\s+/).join(' ');
5476
5464
  debug('comparator', comp, options);
5477
5465
  this.options = options;
@@ -5537,10 +5525,8 @@ var __webpack_modules__ = {
5537
5525
  class Range {
5538
5526
  constructor(range, options){
5539
5527
  options = parseOptions(options);
5540
- if (range instanceof Range) {
5541
- if (!!options.loose === range.loose && !!options.includePrerelease === range.includePrerelease) return range;
5542
- return new Range(range.raw, options);
5543
- }
5528
+ if (range instanceof Range) if (!!options.loose === range.loose && !!options.includePrerelease === range.includePrerelease) return range;
5529
+ else return new Range(range.raw, options);
5544
5530
  if (range instanceof Comparator) {
5545
5531
  this.raw = range.value;
5546
5532
  this.set = [
@@ -5799,10 +5785,9 @@ var __webpack_modules__ = {
5799
5785
  class SemVer {
5800
5786
  constructor(version, options){
5801
5787
  options = parseOptions(options);
5802
- if (version instanceof SemVer) {
5803
- if (!!options.loose === version.loose && !!options.includePrerelease === version.includePrerelease) return version;
5804
- version = version.version;
5805
- } else if ('string' != typeof version) throw new TypeError(`Invalid version. Must be a string. Got type "${typeof version}".`);
5788
+ if (version instanceof SemVer) if (!!options.loose === version.loose && !!options.includePrerelease === version.includePrerelease) return version;
5789
+ else version = version.version;
5790
+ else if ('string' != typeof version) throw new TypeError(`Invalid version. Must be a string. Got type "${typeof version}".`);
5806
5791
  if (version.length > MAX_LENGTH) throw new TypeError(`version is longer than ${MAX_LENGTH} characters`);
5807
5792
  debug('SemVer', version, options);
5808
5793
  this.options = options;
@@ -6226,10 +6211,9 @@ var __webpack_modules__ = {
6226
6211
  class SemVer {
6227
6212
  constructor(version, options){
6228
6213
  options = parseOptions(options);
6229
- if (version instanceof SemVer) {
6230
- if (!!options.loose === version.loose && !!options.includePrerelease === version.includePrerelease) return version;
6231
- version = version.version;
6232
- } else if ('string' != typeof version) throw new TypeError(`Invalid version. Must be a string. Got type "${typeof version}".`);
6214
+ if (version instanceof SemVer) if (!!options.loose === version.loose && !!options.includePrerelease === version.includePrerelease) return version;
6215
+ else version = version.version;
6216
+ else if ('string' != typeof version) throw new TypeError(`Invalid version. Must be a string. Got type "${typeof version}".`);
6233
6217
  if (version.length > MAX_LENGTH) throw new TypeError(`version is longer than ${MAX_LENGTH} characters`);
6234
6218
  debug('SemVer', version, options);
6235
6219
  this.options = options;
@@ -7368,10 +7352,8 @@ var __webpack_modules__ = {
7368
7352
  isexe(p + ext, {
7369
7353
  pathExt: pathExtExe
7370
7354
  }, (er, is)=>{
7371
- if (!er && is) {
7372
- if (!opt.all) return resolve(p + ext);
7373
- found.push(p + ext);
7374
- }
7355
+ if (!er && is) if (!opt.all) return resolve(p + ext);
7356
+ else found.push(p + ext);
7375
7357
  return resolve(subStep(p, i, ii + 1));
7376
7358
  });
7377
7359
  });
@@ -7392,10 +7374,8 @@ var __webpack_modules__ = {
7392
7374
  const is = isexe.sync(cur, {
7393
7375
  pathExt: pathExtExe
7394
7376
  });
7395
- if (is) {
7396
- if (!opt.all) return cur;
7397
- found.push(cur);
7398
- }
7377
+ if (is) if (!opt.all) return cur;
7378
+ else found.push(cur);
7399
7379
  } catch (ex) {}
7400
7380
  }
7401
7381
  }
@@ -7450,7 +7430,7 @@ var __webpack_modules__ = {
7450
7430
  else for(i = 0, len = sources.length; i < len; i++){
7451
7431
  source = sources[i];
7452
7432
  if (null != source) {
7453
- for(key in source)if (!!hasProp.call(source, key)) target[key] = source[key];
7433
+ for(key in source)if (hasProp.call(source, key)) target[key] = source[key];
7454
7434
  }
7455
7435
  }
7456
7436
  return target;
@@ -7469,7 +7449,7 @@ var __webpack_modules__ = {
7469
7449
  isEmpty = function(val) {
7470
7450
  var key;
7471
7451
  if (isArray(val)) return !val.length;
7472
- for(key in val)if (!!hasProp.call(val, key)) return false;
7452
+ for(key in val)if (hasProp.call(val, key)) return false;
7473
7453
  return true;
7474
7454
  };
7475
7455
  isPlainObject = function(val) {
@@ -8336,7 +8316,7 @@ var __webpack_modules__ = {
8336
8316
  case NodeType.Element:
8337
8317
  attributes = {};
8338
8318
  ref = node.attribs;
8339
- for(attName in ref)if (!!hasProp.call(ref, attName)) {
8319
+ for(attName in ref)if (hasProp.call(ref, attName)) {
8340
8320
  att = ref[attName];
8341
8321
  attributes[attName] = att.value;
8342
8322
  }
@@ -8409,7 +8389,7 @@ var __webpack_modules__ = {
8409
8389
  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));
8410
8390
  if (null != name) name = getValue(name);
8411
8391
  if (isObject(name)) {
8412
- for(attName in name)if (!!hasProp.call(name, attName)) {
8392
+ for(attName in name)if (hasProp.call(name, attName)) {
8413
8393
  attValue = name[attName];
8414
8394
  this.attribute(attName, attValue);
8415
8395
  }
@@ -8458,7 +8438,7 @@ var __webpack_modules__ = {
8458
8438
  this.instruction(insTarget);
8459
8439
  }
8460
8440
  else if (isObject(target)) {
8461
- for(insTarget in target)if (!!hasProp.call(target, insTarget)) {
8441
+ for(insTarget in target)if (hasProp.call(target, insTarget)) {
8462
8442
  insValue = target[insTarget];
8463
8443
  this.instruction(insTarget, insValue);
8464
8444
  }
@@ -8553,7 +8533,7 @@ var __webpack_modules__ = {
8553
8533
  this.writerOptions.state = WriterState.OpenTag;
8554
8534
  chunk = this.writer.indent(node, this.writerOptions, this.currentLevel) + '<' + node.name;
8555
8535
  ref = node.attribs;
8556
- for(name in ref)if (!!hasProp.call(ref, name)) {
8536
+ for(name in ref)if (hasProp.call(ref, name)) {
8557
8537
  att = ref[name];
8558
8538
  chunk += this.writer.attribute(att, this.writerOptions, this.currentLevel);
8559
8539
  }
@@ -8725,7 +8705,7 @@ var __webpack_modules__ = {
8725
8705
  if (clonedSelf.isRoot) clonedSelf.documentObject = null;
8726
8706
  clonedSelf.attribs = {};
8727
8707
  ref = this.attribs;
8728
- for(attName in ref)if (!!hasProp.call(ref, attName)) {
8708
+ for(attName in ref)if (hasProp.call(ref, attName)) {
8729
8709
  att = ref[attName];
8730
8710
  clonedSelf.attribs[attName] = att.clone();
8731
8711
  }
@@ -8742,7 +8722,7 @@ var __webpack_modules__ = {
8742
8722
  var attName, attValue;
8743
8723
  if (null != name) name = getValue(name);
8744
8724
  if (isObject(name)) {
8745
- for(attName in name)if (!!hasProp.call(name, attName)) {
8725
+ for(attName in name)if (hasProp.call(name, attName)) {
8746
8726
  attValue = name[attName];
8747
8727
  this.attribute(attName, attValue);
8748
8728
  }
@@ -9017,27 +8997,25 @@ var __webpack_modules__ = {
9017
8997
  }
9018
8998
  else if (isFunction(name)) lastChild = this.element(name.apply());
9019
8999
  else if (isObject(name)) {
9020
- for(key in name)if (!!hasProp.call(name, key)) {
9000
+ for(key in name)if (hasProp.call(name, key)) {
9021
9001
  val = name[key];
9022
9002
  if (isFunction(val)) val = val.apply();
9023
9003
  if (!this.options.ignoreDecorators && this.stringify.convertAttKey && 0 === key.indexOf(this.stringify.convertAttKey)) lastChild = this.attribute(key.substr(this.stringify.convertAttKey.length), val);
9024
9004
  else if (!this.options.separateArrayItems && Array.isArray(val) && isEmpty(val)) lastChild = this.dummy();
9025
9005
  else if (isObject(val) && isEmpty(val)) lastChild = this.element(key);
9026
- else if (this.options.keepNullNodes || null != val) {
9027
- if (!this.options.separateArrayItems && Array.isArray(val)) for(k = 0, len1 = val.length; k < len1; k++){
9028
- item = val[k];
9029
- childNode = {};
9030
- childNode[key] = item;
9031
- lastChild = this.element(childNode);
9032
- }
9033
- else if (isObject(val)) {
9034
- if (!this.options.ignoreDecorators && this.stringify.convertTextKey && 0 === key.indexOf(this.stringify.convertTextKey)) lastChild = this.element(val);
9035
- else {
9036
- lastChild = this.element(key);
9037
- lastChild.element(val);
9038
- }
9039
- } else lastChild = this.element(key, val);
9040
- } else lastChild = this.dummy();
9006
+ else if (this.options.keepNullNodes || null != val) if (!this.options.separateArrayItems && Array.isArray(val)) for(k = 0, len1 = val.length; k < len1; k++){
9007
+ item = val[k];
9008
+ childNode = {};
9009
+ childNode[key] = item;
9010
+ lastChild = this.element(childNode);
9011
+ }
9012
+ else if (isObject(val)) if (!this.options.ignoreDecorators && this.stringify.convertTextKey && 0 === key.indexOf(this.stringify.convertTextKey)) lastChild = this.element(val);
9013
+ else {
9014
+ lastChild = this.element(key);
9015
+ lastChild.element(val);
9016
+ }
9017
+ else lastChild = this.element(key, val);
9018
+ else lastChild = this.dummy();
9041
9019
  }
9042
9020
  } 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();
9043
9021
  if (null == lastChild) throw new Error("Could not create any elements with: " + name + ". " + this.debugInfo());
@@ -9152,7 +9130,7 @@ var __webpack_modules__ = {
9152
9130
  this.instruction(insTarget);
9153
9131
  }
9154
9132
  else if (isObject(target)) {
9155
- for(insTarget in target)if (!!hasProp.call(target, insTarget)) {
9133
+ for(insTarget in target)if (hasProp.call(target, insTarget)) {
9156
9134
  insValue = target[insTarget];
9157
9135
  this.instruction(insTarget, insValue);
9158
9136
  }
@@ -9218,8 +9196,8 @@ var __webpack_modules__ = {
9218
9196
  root() {
9219
9197
  var node;
9220
9198
  node = this;
9221
- while(node){
9222
- if (node.type === NodeType.Document) return node.rootObject;
9199
+ while(node)if (node.type === NodeType.Document) return node.rootObject;
9200
+ else {
9223
9201
  if (node.isRoot) return node;
9224
9202
  node = node.parent;
9225
9203
  }
@@ -9227,10 +9205,8 @@ var __webpack_modules__ = {
9227
9205
  document() {
9228
9206
  var node;
9229
9207
  node = this;
9230
- while(node){
9231
- if (node.type === NodeType.Document) return node;
9232
- node = node.parent;
9233
- }
9208
+ while(node)if (node.type === NodeType.Document) return node;
9209
+ else node = node.parent;
9234
9210
  }
9235
9211
  end(options) {
9236
9212
  return this.document().end(options);
@@ -9686,7 +9662,7 @@ var __webpack_modules__ = {
9686
9662
  if (options.pretty && options.width > 0) {
9687
9663
  len = r.length;
9688
9664
  ref = node.attribs;
9689
- for(name in ref)if (!!hasProp.call(ref, name)) {
9665
+ for(name in ref)if (hasProp.call(ref, name)) {
9690
9666
  att = ref[name];
9691
9667
  ratt = this.attribute(att, options, level);
9692
9668
  attLen = ratt.length;
@@ -9702,7 +9678,7 @@ var __webpack_modules__ = {
9702
9678
  }
9703
9679
  } else {
9704
9680
  ref1 = node.attribs;
9705
- for(name in ref1)if (!!hasProp.call(ref1, name)) {
9681
+ for(name in ref1)if (hasProp.call(ref1, name)) {
9706
9682
  att = ref1[name];
9707
9683
  r += this.attribute(att, options, level);
9708
9684
  }
@@ -9712,16 +9688,15 @@ var __webpack_modules__ = {
9712
9688
  firstChildNode = 0 === childNodeCount ? null : node.children[0];
9713
9689
  if (0 === childNodeCount || node.children.every(function(e) {
9714
9690
  return (e.type === NodeType.Text || e.type === NodeType.Raw || e.type === NodeType.CData) && '' === e.value;
9715
- })) {
9716
- if (options.allowEmpty) {
9717
- this.stream.write('>');
9718
- options.state = WriterState.CloseTag;
9719
- this.stream.write('</' + node.name + '>');
9720
- } else {
9721
- options.state = WriterState.CloseTag;
9722
- this.stream.write(options.spaceBeforeSlash + '/>');
9723
- }
9724
- } else if (options.pretty && 1 === childNodeCount && (firstChildNode.type === NodeType.Text || firstChildNode.type === NodeType.Raw || firstChildNode.type === NodeType.CData) && null != firstChildNode.value) {
9691
+ })) if (options.allowEmpty) {
9692
+ this.stream.write('>');
9693
+ options.state = WriterState.CloseTag;
9694
+ this.stream.write('</' + node.name + '>');
9695
+ } else {
9696
+ options.state = WriterState.CloseTag;
9697
+ this.stream.write(options.spaceBeforeSlash + '/>');
9698
+ }
9699
+ else if (options.pretty && 1 === childNodeCount && (firstChildNode.type === NodeType.Text || firstChildNode.type === NodeType.Raw || firstChildNode.type === NodeType.CData) && null != firstChildNode.value) {
9725
9700
  this.stream.write('>');
9726
9701
  options.state = WriterState.InsideTag;
9727
9702
  options.suppressPrettyCount++;
@@ -9804,7 +9779,7 @@ var __webpack_modules__ = {
9804
9779
  this.options = options;
9805
9780
  if (!this.options.version) this.options.version = '1.0';
9806
9781
  ref = options.stringify || {};
9807
- for(key in ref)if (!!hasProp.call(ref, key)) {
9782
+ for(key in ref)if (hasProp.call(ref, key)) {
9808
9783
  value = ref[key];
9809
9784
  this[key] = value;
9810
9785
  }
@@ -10016,7 +9991,7 @@ var __webpack_modules__ = {
10016
9991
  options || (options = {});
10017
9992
  this.options = options;
10018
9993
  ref = options.writer || {};
10019
- for(key in ref)if (!!hasProp.call(ref, key)) {
9994
+ for(key in ref)if (hasProp.call(ref, key)) {
10020
9995
  value = ref[key];
10021
9996
  this["_" + key] = this[key];
10022
9997
  this[key] = value;
@@ -10143,7 +10118,7 @@ var __webpack_modules__ = {
10143
10118
  if (options.pretty && options.width > 0) {
10144
10119
  len = r.length;
10145
10120
  ref = node.attribs;
10146
- for(name in ref)if (!!hasProp.call(ref, name)) {
10121
+ for(name in ref)if (hasProp.call(ref, name)) {
10147
10122
  att = ref[name];
10148
10123
  ratt = this.attribute(att, options, level);
10149
10124
  attLen = ratt.length;
@@ -10159,7 +10134,7 @@ var __webpack_modules__ = {
10159
10134
  }
10160
10135
  } else {
10161
10136
  ref1 = node.attribs;
10162
- for(name in ref1)if (!!hasProp.call(ref1, name)) {
10137
+ for(name in ref1)if (hasProp.call(ref1, name)) {
10163
10138
  att = ref1[name];
10164
10139
  r += this.attribute(att, options, level);
10165
10140
  }
@@ -10168,16 +10143,15 @@ var __webpack_modules__ = {
10168
10143
  firstChildNode = 0 === childNodeCount ? null : node.children[0];
10169
10144
  if (0 === childNodeCount || node.children.every(function(e) {
10170
10145
  return (e.type === NodeType.Text || e.type === NodeType.Raw || e.type === NodeType.CData) && '' === e.value;
10171
- })) {
10172
- if (options.allowEmpty) {
10173
- r += '>';
10174
- options.state = WriterState.CloseTag;
10175
- r += '</' + node.name + '>' + this.endline(node, options, level);
10176
- } else {
10177
- options.state = WriterState.CloseTag;
10178
- r += options.spaceBeforeSlash + '/>' + this.endline(node, options, level);
10179
- }
10180
- } else if (options.pretty && 1 === childNodeCount && (firstChildNode.type === NodeType.Text || firstChildNode.type === NodeType.Raw || firstChildNode.type === NodeType.CData) && null != firstChildNode.value) {
10146
+ })) if (options.allowEmpty) {
10147
+ r += '>';
10148
+ options.state = WriterState.CloseTag;
10149
+ r += '</' + node.name + '>' + this.endline(node, options, level);
10150
+ } else {
10151
+ options.state = WriterState.CloseTag;
10152
+ r += options.spaceBeforeSlash + '/>' + this.endline(node, options, level);
10153
+ }
10154
+ else if (options.pretty && 1 === childNodeCount && (firstChildNode.type === NodeType.Text || firstChildNode.type === NodeType.Raw || firstChildNode.type === NodeType.CData) && null != firstChildNode.value) {
10181
10155
  r += '>';
10182
10156
  options.state = WriterState.InsideTag;
10183
10157
  options.suppressPrettyCount++;
@@ -10517,33 +10491,31 @@ var __webpack_modules__ = {
10517
10491
  const markerLines = {};
10518
10492
  if (lineDiff) for(let i = 0; i <= lineDiff; i++){
10519
10493
  const lineNumber = i + startLine;
10520
- if (startColumn) {
10521
- if (0 === i) {
10522
- const sourceLength = source[lineNumber - 1].length;
10523
- markerLines[lineNumber] = [
10524
- startColumn,
10525
- sourceLength - startColumn + 1
10526
- ];
10527
- } else if (i === lineDiff) markerLines[lineNumber] = [
10494
+ if (startColumn) if (0 === i) {
10495
+ const sourceLength = source[lineNumber - 1].length;
10496
+ markerLines[lineNumber] = [
10497
+ startColumn,
10498
+ sourceLength - startColumn + 1
10499
+ ];
10500
+ } else if (i === lineDiff) markerLines[lineNumber] = [
10501
+ 0,
10502
+ endColumn
10503
+ ];
10504
+ else {
10505
+ const sourceLength = source[lineNumber - i].length;
10506
+ markerLines[lineNumber] = [
10528
10507
  0,
10529
- endColumn
10508
+ sourceLength
10530
10509
  ];
10531
- else {
10532
- const sourceLength = source[lineNumber - i].length;
10533
- markerLines[lineNumber] = [
10534
- 0,
10535
- sourceLength
10536
- ];
10537
- }
10538
- } else markerLines[lineNumber] = true;
10510
+ }
10511
+ else markerLines[lineNumber] = true;
10539
10512
  }
10540
- else if (startColumn === endColumn) {
10541
- if (startColumn) markerLines[startLine] = [
10542
- startColumn,
10543
- 0
10544
- ];
10545
- else markerLines[startLine] = true;
10546
- } else markerLines[startLine] = [
10513
+ else if (startColumn === endColumn) if (startColumn) markerLines[startLine] = [
10514
+ startColumn,
10515
+ 0
10516
+ ];
10517
+ else markerLines[startLine] = true;
10518
+ else markerLines[startLine] = [
10547
10519
  startColumn,
10548
10520
  endColumn - startColumn
10549
10521
  ];
@@ -12012,13 +11984,11 @@ var __webpack_modules__ = {
12012
11984
  };
12013
11985
  this.#requireSize = (k, v, size, sizeCalculation)=>{
12014
11986
  if (this.#isBackgroundFetch(v)) return 0;
12015
- if (!isPosInt(size)) {
12016
- if (sizeCalculation) {
12017
- if ('function' != typeof sizeCalculation) throw new TypeError('sizeCalculation must be a function');
12018
- size = sizeCalculation(v, k);
12019
- if (!isPosInt(size)) throw new TypeError('sizeCalculation return invalid (expect positive integer)');
12020
- } else throw new TypeError("invalid size value (must be positive integer). When maxSize or maxEntrySize is used, sizeCalculation or size must be set.");
12021
- }
11987
+ if (!isPosInt(size)) if (sizeCalculation) {
11988
+ if ('function' != typeof sizeCalculation) throw new TypeError('sizeCalculation must be a function');
11989
+ size = sizeCalculation(v, k);
11990
+ if (!isPosInt(size)) throw new TypeError('sizeCalculation return invalid (expect positive integer)');
11991
+ } else throw new TypeError("invalid size value (must be positive integer). When maxSize or maxEntrySize is used, sizeCalculation or size must be set.");
12022
11992
  return size;
12023
11993
  };
12024
11994
  this.#addItemSize = (index, size, status)=>{
@@ -12041,7 +12011,7 @@ var __webpack_modules__ = {
12041
12011
  return 0;
12042
12012
  };
12043
12013
  *#indexes({ allowStale = this.allowStale } = {}) {
12044
- if (this.#size) for(let i = this.#tail;;){
12014
+ if (this.#size) for(let i = this.#tail; true;){
12045
12015
  if (!this.#isValidIndex(i)) break;
12046
12016
  if (allowStale || !this.#isStale(i)) yield i;
12047
12017
  if (i === this.#head) break;
@@ -12049,7 +12019,7 @@ var __webpack_modules__ = {
12049
12019
  }
12050
12020
  }
12051
12021
  *#rindexes({ allowStale = this.allowStale } = {}) {
12052
- if (this.#size) for(let i = this.#head;;){
12022
+ if (this.#size) for(let i = this.#head; true;){
12053
12023
  if (!this.#isValidIndex(i)) break;
12054
12024
  if (allowStale || !this.#isStale(i)) yield i;
12055
12025
  if (i === this.#tail) break;
@@ -12351,23 +12321,18 @@ var __webpack_modules__ = {
12351
12321
  const cb = (v, updateCache = false)=>{
12352
12322
  const { aborted } = ac.signal;
12353
12323
  const ignoreAbort = options.ignoreFetchAbort && void 0 !== v;
12354
- if (options.status) {
12355
- if (aborted && !updateCache) {
12356
- options.status.fetchAborted = true;
12357
- options.status.fetchError = ac.signal.reason;
12358
- if (ignoreAbort) options.status.fetchAbortIgnored = true;
12359
- } else options.status.fetchResolved = true;
12360
- }
12324
+ if (options.status) if (aborted && !updateCache) {
12325
+ options.status.fetchAborted = true;
12326
+ options.status.fetchError = ac.signal.reason;
12327
+ if (ignoreAbort) options.status.fetchAbortIgnored = true;
12328
+ } else options.status.fetchResolved = true;
12361
12329
  if (aborted && !ignoreAbort && !updateCache) return fetchFail(ac.signal.reason);
12362
12330
  const bf = p;
12363
- if (this.#valList[index] === p) {
12364
- if (void 0 === v) {
12365
- if (bf.__staleWhileFetching) this.#valList[index] = bf.__staleWhileFetching;
12366
- else this.delete(k);
12367
- } else {
12368
- if (options.status) options.status.fetchUpdated = true;
12369
- this.set(k, v, fetchOpts.options);
12370
- }
12331
+ if (this.#valList[index] === p) if (void 0 === v) if (bf.__staleWhileFetching) this.#valList[index] = bf.__staleWhileFetching;
12332
+ else this.delete(k);
12333
+ else {
12334
+ if (options.status) options.status.fetchUpdated = true;
12335
+ this.set(k, v, fetchOpts.options);
12371
12336
  }
12372
12337
  return v;
12373
12338
  };
@@ -12768,10 +12733,7 @@ var newRequest = (incoming, defaultHostname)=>{
12768
12733
  };
12769
12734
  function writeFromReadableStream(stream, writable) {
12770
12735
  if (stream.locked) throw new TypeError("ReadableStream is locked.");
12771
- if (writable.destroyed) {
12772
- stream.cancel();
12773
- return;
12774
- }
12736
+ if (writable.destroyed) return void stream.cancel();
12775
12737
  const reader = stream.getReader();
12776
12738
  writable.on("close", cancel);
12777
12739
  writable.on("error", cancel);
@@ -12930,16 +12892,14 @@ var responseViaCache = (res, outgoing)=>{
12930
12892
  }
12931
12893
  };
12932
12894
  var responseViaResponseObject = async (res, outgoing, options = {})=>{
12933
- if (res instanceof Promise) {
12934
- if (options.errorHandler) try {
12935
- res = await res;
12936
- } catch (err) {
12937
- const errRes = await options.errorHandler(err);
12938
- if (!errRes) return;
12939
- res = errRes;
12940
- }
12941
- else res = await res.catch(handleFetchError);
12895
+ if (res instanceof Promise) if (options.errorHandler) try {
12896
+ res = await res;
12897
+ } catch (err) {
12898
+ const errRes = await options.errorHandler(err);
12899
+ if (!errRes) return;
12900
+ res = errRes;
12942
12901
  }
12902
+ else res = await res.catch(handleFetchError);
12943
12903
  if (cacheKey in res) return responseViaCache(res, outgoing);
12944
12904
  const resHeaderRecord = buildOutgoingHttpHeaders(res.headers);
12945
12905
  const internalBody = getInternalBody(res);
@@ -13351,10 +13311,7 @@ const baseOpen = async (options)=>{
13351
13311
  if (options.wait) return new Promise((resolve, reject)=>{
13352
13312
  subprocess.once('error', reject);
13353
13313
  subprocess.once('close', (exitCode)=>{
13354
- if (!options.allowNonzeroExitCode && exitCode > 0) {
13355
- reject(new Error(`Exited with code ${exitCode}`));
13356
- return;
13357
- }
13314
+ if (!options.allowNonzeroExitCode && exitCode > 0) return void reject(new Error(`Exited with code ${exitCode}`));
13358
13315
  resolve(subprocess);
13359
13316
  });
13360
13317
  });
@@ -13583,7 +13540,7 @@ async function getBundleZipTargets(basePath, files) {
13583
13540
  name: relative.replace(/\\/g, "/")
13584
13541
  });
13585
13542
  }
13586
- for(const bundleBase in bundleCandidates)if (!!bundleCandidates[bundleBase]) targets.push({
13543
+ for(const bundleBase in bundleCandidates)if (bundleCandidates[bundleBase]) targets.push({
13587
13544
  path: bundleCandidates[bundleBase],
13588
13545
  name: bundleBase.replace(/\\/g, "/")
13589
13546
  });
@@ -13739,10 +13696,7 @@ const deploy = async (options)=>{
13739
13696
  ];
13740
13697
  const platform = options.platform ?? (options.interactive ? await getPlatform("Which platform do you want to deploy?") : null);
13741
13698
  if (__WEBPACK_EXTERNAL_MODULE__clack_prompts_3cae1695__.isCancel(platform)) return;
13742
- if (!platform) {
13743
- __WEBPACK_EXTERNAL_MODULE__clack_prompts_3cae1695__.log.error("Platform not found. -p <ios | android> or --platform <ios | android>");
13744
- return;
13745
- }
13699
+ if (!platform) return void __WEBPACK_EXTERNAL_MODULE__clack_prompts_3cae1695__.log.error("Platform not found. -p <ios | android> or --platform <ios | android>");
13746
13700
  const channel = options.channel;
13747
13701
  const config = await (0, __WEBPACK_EXTERNAL_MODULE__hot_updater_plugin_core_40c1c502__.loadConfig)({
13748
13702
  platform,
@@ -13763,10 +13717,7 @@ const deploy = async (options)=>{
13763
13717
  }) : null);
13764
13718
  const outputPath = options.bundleOutputPath ?? cwd;
13765
13719
  if (__WEBPACK_EXTERNAL_MODULE__clack_prompts_3cae1695__.isCancel(targetAppVersion)) return;
13766
- if (!targetAppVersion) {
13767
- __WEBPACK_EXTERNAL_MODULE__clack_prompts_3cae1695__.log.error("Target app version not found. -t <targetAppVersion> semver format (e.g. 1.0.0, 1.x.x)");
13768
- return;
13769
- }
13720
+ if (!targetAppVersion) return void __WEBPACK_EXTERNAL_MODULE__clack_prompts_3cae1695__.log.error("Target app version not found. -t <targetAppVersion> semver format (e.g. 1.0.0, 1.x.x)");
13770
13721
  __WEBPACK_EXTERNAL_MODULE__clack_prompts_3cae1695__.log.info(`Target app version: ${valid_default()(targetAppVersion)}`);
13771
13722
  let bundleId = null;
13772
13723
  let fileHash;
@@ -14682,7 +14633,7 @@ const handleCommand = (filePath, rawArguments, rawOptions)=>{
14682
14633
  verboseInfo
14683
14634
  };
14684
14635
  };
14685
- var cross_spawn = __webpack_require__("../../node_modules/.pnpm/cross-spawn@7.0.3/node_modules/cross-spawn/index.js");
14636
+ var cross_spawn = __webpack_require__("../../node_modules/.pnpm/cross-spawn@7.0.6/node_modules/cross-spawn/index.js");
14686
14637
  function pathKey(options = {}) {
14687
14638
  const { env = process.env, platform = process.platform } = options;
14688
14639
  if ('win32' !== platform) return 'PATH';
@@ -15675,14 +15626,8 @@ const getCancelSignal = async ({ anyProcess, channel, isSubprocess, ipc })=>{
15675
15626
  const startIpc = async ({ anyProcess, channel, isSubprocess, ipc })=>{
15676
15627
  if (cancelListening) return;
15677
15628
  cancelListening = true;
15678
- if (!ipc) {
15679
- throwOnMissingParent();
15680
- return;
15681
- }
15682
- if (null === channel) {
15683
- abortOnDisconnect();
15684
- return;
15685
- }
15629
+ if (!ipc) return void throwOnMissingParent();
15630
+ if (null === channel) return void abortOnDisconnect();
15686
15631
  getIpcEmitter(anyProcess, channel, isSubprocess);
15687
15632
  await __WEBPACK_EXTERNAL_MODULE_node_timers_promises_aedbf14c__.scheduler["yield"]();
15688
15633
  };
@@ -16132,10 +16077,7 @@ const appendFinalChunk = ({ state, getSize, truncateChunk, addChunk, getFinalChu
16132
16077
  const appendChunk = ({ convertedChunk, state, getSize, truncateChunk, addChunk, maxBuffer })=>{
16133
16078
  const chunkSize = getSize(convertedChunk);
16134
16079
  const newLength = state.length + chunkSize;
16135
- if (newLength <= maxBuffer) {
16136
- addNewChunk(convertedChunk, state, addChunk, newLength);
16137
- return;
16138
- }
16080
+ if (newLength <= maxBuffer) return void addNewChunk(convertedChunk, state, addChunk, newLength);
16139
16081
  const truncatedChunk = truncateChunk(convertedChunk, maxBuffer - state.length);
16140
16082
  if (void 0 !== truncatedChunk) addNewChunk(truncatedChunk, state, addChunk, maxBuffer);
16141
16083
  throw new MaxBufferError();
@@ -16488,31 +16430,29 @@ function prettyMilliseconds(milliseconds, options) {
16488
16430
  add(Number(parsed.hours), 'hour', 'h');
16489
16431
  }
16490
16432
  add(Number(parsed.minutes), 'minute', 'm');
16491
- if (!options.hideSeconds) {
16492
- if (options.separateMilliseconds || options.formatSubMilliseconds || !options.colonNotation && milliseconds < 1000) {
16493
- const seconds = Number(parsed.seconds);
16494
- const milliseconds = Number(parsed.milliseconds);
16495
- const microseconds = Number(parsed.microseconds);
16496
- const nanoseconds = Number(parsed.nanoseconds);
16497
- add(seconds, 'second', 's');
16498
- if (options.formatSubMilliseconds) {
16499
- add(milliseconds, 'millisecond', 'ms');
16500
- add(microseconds, 'microsecond', 'µs');
16501
- add(nanoseconds, 'nanosecond', 'ns');
16502
- } else {
16503
- const millisecondsAndBelow = milliseconds + microseconds / 1000 + nanoseconds / 1e6;
16504
- const millisecondsDecimalDigits = 'number' == typeof options.millisecondsDecimalDigits ? options.millisecondsDecimalDigits : 0;
16505
- const roundedMilliseconds = millisecondsAndBelow >= 1 ? Math.round(millisecondsAndBelow) : Math.ceil(millisecondsAndBelow);
16506
- const millisecondsString = millisecondsDecimalDigits ? millisecondsAndBelow.toFixed(millisecondsDecimalDigits) : roundedMilliseconds;
16507
- add(Number.parseFloat(millisecondsString), 'millisecond', 'ms', millisecondsString);
16508
- }
16433
+ if (!options.hideSeconds) if (options.separateMilliseconds || options.formatSubMilliseconds || !options.colonNotation && milliseconds < 1000) {
16434
+ const seconds = Number(parsed.seconds);
16435
+ const milliseconds = Number(parsed.milliseconds);
16436
+ const microseconds = Number(parsed.microseconds);
16437
+ const nanoseconds = Number(parsed.nanoseconds);
16438
+ add(seconds, 'second', 's');
16439
+ if (options.formatSubMilliseconds) {
16440
+ add(milliseconds, 'millisecond', 'ms');
16441
+ add(microseconds, 'microsecond', 'µs');
16442
+ add(nanoseconds, 'nanosecond', 'ns');
16509
16443
  } else {
16510
- const seconds = (isBigInt ? Number(milliseconds % ONE_DAY_IN_MILLISECONDS) : milliseconds) / 1000 % 60;
16511
- const secondsDecimalDigits = 'number' == typeof options.secondsDecimalDigits ? options.secondsDecimalDigits : 1;
16512
- const secondsFixed = floorDecimals(seconds, secondsDecimalDigits);
16513
- const secondsString = options.keepDecimalsOnWholeSeconds ? secondsFixed : secondsFixed.replace(/\.0+$/, '');
16514
- add(Number.parseFloat(secondsString), 'second', 's', secondsString);
16444
+ const millisecondsAndBelow = milliseconds + microseconds / 1000 + nanoseconds / 1e6;
16445
+ const millisecondsDecimalDigits = 'number' == typeof options.millisecondsDecimalDigits ? options.millisecondsDecimalDigits : 0;
16446
+ const roundedMilliseconds = millisecondsAndBelow >= 1 ? Math.round(millisecondsAndBelow) : Math.ceil(millisecondsAndBelow);
16447
+ const millisecondsString = millisecondsDecimalDigits ? millisecondsAndBelow.toFixed(millisecondsDecimalDigits) : roundedMilliseconds;
16448
+ add(Number.parseFloat(millisecondsString), 'millisecond', 'ms', millisecondsString);
16515
16449
  }
16450
+ } else {
16451
+ const seconds = (isBigInt ? Number(milliseconds % ONE_DAY_IN_MILLISECONDS) : milliseconds) / 1000 % 60;
16452
+ const secondsDecimalDigits = 'number' == typeof options.secondsDecimalDigits ? options.secondsDecimalDigits : 1;
16453
+ const secondsFixed = floorDecimals(seconds, secondsDecimalDigits);
16454
+ const secondsString = options.keepDecimalsOnWholeSeconds ? secondsFixed : secondsFixed.replace(/\.0+$/, '');
16455
+ add(Number.parseFloat(secondsString), 'second', 's', secondsString);
16516
16456
  }
16517
16457
  if (0 === result.length) return sign + '0' + (options.verbose ? ' milliseconds' : 'ms');
16518
16458
  const separator = options.colonNotation ? ':' : ' ';
@@ -16968,16 +16908,13 @@ const filterDuplicates = (stdioItems)=>stdioItems.filter((stdioItemOne, indexOne
16968
16908
  const getDuplicateStream = ({ stdioItem: { type, value, optionName }, direction, fileDescriptors, isSync })=>{
16969
16909
  const otherStdioItems = getOtherStdioItems(fileDescriptors, type);
16970
16910
  if (0 === otherStdioItems.length) return;
16971
- if (isSync) {
16972
- validateDuplicateStreamSync({
16973
- otherStdioItems,
16974
- type,
16975
- value,
16976
- optionName,
16977
- direction
16978
- });
16979
- return;
16980
- }
16911
+ if (isSync) return void validateDuplicateStreamSync({
16912
+ otherStdioItems,
16913
+ type,
16914
+ value,
16915
+ optionName,
16916
+ direction
16917
+ });
16981
16918
  if (SPECIAL_DUPLICATE_TYPES.has(type)) return getDuplicateStreamInstance({
16982
16919
  otherStdioItems,
16983
16920
  type,
@@ -17252,10 +17189,7 @@ const initializeSplitLines = (preserveNewlines, state)=>{
17252
17189
  };
17253
17190
  };
17254
17191
  const splitGenerator = function*(state, preserveNewlines, chunk) {
17255
- if ('string' != typeof chunk) {
17256
- yield chunk;
17257
- return;
17258
- }
17192
+ if ('string' != typeof chunk) return void (yield chunk);
17259
17193
  let { previousChunks } = state;
17260
17194
  let start = -1;
17261
17195
  for(let end = 0; end < chunk.length; end += 1)if ('\n' === chunk[end]) {
@@ -17284,10 +17218,7 @@ const getAppendNewlineGenerator = ({ binary, preserveNewlines, readableObjectMod
17284
17218
  };
17285
17219
  const appendNewlineGenerator = function*({ isWindowsNewline = false }, chunk) {
17286
17220
  const { unixNewline, windowsNewline, LF, concatBytes } = 'string' == typeof chunk ? linesStringInfo : linesUint8ArrayInfo;
17287
- if (chunk.at(-1) === LF) {
17288
- yield chunk;
17289
- return;
17290
- }
17221
+ if (chunk.at(-1) === LF) return void (yield chunk);
17291
17222
  const newline = isWindowsNewline ? windowsNewline : unixNewline;
17292
17223
  yield concatBytes(chunk, newline);
17293
17224
  };
@@ -17367,10 +17298,7 @@ const pushChunks = (0, __WEBPACK_EXTERNAL_MODULE_node_util_1b29d436__.callbackif
17367
17298
  }
17368
17299
  });
17369
17300
  const transformChunk = async function*(chunk, generators, index) {
17370
- if (index === generators.length) {
17371
- yield chunk;
17372
- return;
17373
- }
17301
+ if (index === generators.length) return void (yield chunk);
17374
17302
  const { transform = identityGenerator } = generators[index];
17375
17303
  for await (const transformedChunk of transform(chunk))yield* transformChunk(transformedChunk, generators, index + 1);
17376
17304
  };
@@ -17382,10 +17310,7 @@ const generatorFinalChunks = async function*(final, index, generators) {
17382
17310
  for await (const finalChunk of final())yield* transformChunk(finalChunk, generators, index + 1);
17383
17311
  };
17384
17312
  const destroyTransform = (0, __WEBPACK_EXTERNAL_MODULE_node_util_1b29d436__.callbackify)(async ({ currentIterable }, error)=>{
17385
- if (void 0 !== currentIterable) {
17386
- await (error ? currentIterable.throw(error) : currentIterable.return());
17387
- return;
17388
- }
17313
+ if (void 0 !== currentIterable) return void await (error ? currentIterable.throw(error) : currentIterable.return());
17389
17314
  if (error) throw error;
17390
17315
  });
17391
17316
  const identityGenerator = function*(chunk) {
@@ -17406,10 +17331,7 @@ const runTransformSync = (generators, chunks)=>[
17406
17331
  ...finalChunksSync(generators)
17407
17332
  ];
17408
17333
  const transformChunkSync = function*(chunk, generators, index) {
17409
- if (index === generators.length) {
17410
- yield chunk;
17411
- return;
17412
- }
17334
+ if (index === generators.length) return void (yield chunk);
17413
17335
  const { transform = run_sync_identityGenerator } = generators[index];
17414
17336
  for (const transformedChunk of transform(chunk))yield* transformChunkSync(transformedChunk, generators, index + 1);
17415
17337
  };
@@ -18246,10 +18168,8 @@ const endWhenStreamsDone = async ({ passThroughStream, stream, streams, ended, a
18246
18168
  controller.abort();
18247
18169
  updateMaxListeners(passThroughStream, -PASSTHROUGH_LISTENERS_PER_STREAM);
18248
18170
  }
18249
- if (streams.size > 0 && streams.size === ended.size + aborted.size) {
18250
- if (0 === ended.size && aborted.size > 0) abortStream(passThroughStream);
18251
- else endStream(passThroughStream);
18252
- }
18171
+ if (streams.size > 0 && streams.size === ended.size + aborted.size) if (0 === ended.size && aborted.size > 0) abortStream(passThroughStream);
18172
+ else endStream(passThroughStream);
18253
18173
  };
18254
18174
  const afterMergedStreamFinished = async (onFinished, stream, { signal })=>{
18255
18175
  try {
@@ -18979,13 +18899,10 @@ const getStreamOutput = async ({ stream, onStreamEnd, fdNumber, encoding, buffer
18979
18899
  verboseInfo,
18980
18900
  streamInfo
18981
18901
  });
18982
- if (!buffer) {
18983
- await Promise.all([
18984
- resumeStream(stream),
18985
- logPromise
18986
- ]);
18987
- return;
18988
- }
18902
+ if (!buffer) return void await Promise.all([
18903
+ resumeStream(stream),
18904
+ logPromise
18905
+ ]);
18989
18906
  const stripFinalNewlineValue = getStripFinalNewline(stripFinalNewline, fdNumber);
18990
18907
  const iterable = iterateForResult({
18991
18908
  stream,
@@ -19121,10 +19038,7 @@ const waitForStdioStreams = ({ subprocess, encoding, buffer, maxBuffer, lines, s
19121
19038
  const waitForSubprocessStream = async ({ stream, fdNumber, encoding, buffer, maxBuffer, lines, allMixed, stripFinalNewline, verboseInfo, streamInfo })=>{
19122
19039
  if (!stream) return;
19123
19040
  const onStreamEnd = waitForStream(stream, fdNumber, streamInfo);
19124
- if (isInputFileDescriptor(streamInfo, fdNumber)) {
19125
- await onStreamEnd;
19126
- return;
19127
- }
19041
+ if (isInputFileDescriptor(streamInfo, fdNumber)) return void await onStreamEnd;
19128
19042
  const [output] = await Promise.all([
19129
19043
  getStreamOutput({
19130
19044
  stream,
@@ -20022,10 +19936,11 @@ const init_init = async ()=>{
20022
19936
  value: {
20023
19937
  dependencies: [],
20024
19938
  devDependencies: [
20025
- "@hot-updater/metro"
19939
+ "@hot-updater/bare"
20026
19940
  ]
20027
19941
  },
20028
- label: "Metro"
19942
+ label: "Bare",
19943
+ hint: "React Native CLI"
20029
19944
  }
20030
19945
  ]
20031
19946
  });