publish-microfrontend 1.8.3 → 1.9.0-beta.7940

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.
Files changed (2) hide show
  1. package/lib/index.js +100 -431
  2. package/package.json +2 -2
package/lib/index.js CHANGED
@@ -435,7 +435,7 @@ var require_yargs_parser = __commonJS({
435
435
  var decamelize = require_decamelize();
436
436
  var path = require("path");
437
437
  var tokenizeArgString = require_tokenize_arg_string();
438
- var util2 = require("util");
438
+ var util3 = require("util");
439
439
  function parse(args2, opts) {
440
440
  opts = Object.assign(/* @__PURE__ */ Object.create(null), opts);
441
441
  args2 = tokenizeArgString(args2);
@@ -466,7 +466,7 @@ var require_yargs_parser = __commonJS({
466
466
  const notFlagsArgv = notFlagsOption ? "--" : "_";
467
467
  const newAliases = /* @__PURE__ */ Object.create(null);
468
468
  const defaulted = /* @__PURE__ */ Object.create(null);
469
- const __ = opts.__ || util2.format;
469
+ const __ = opts.__ || util3.format;
470
470
  const flags = {
471
471
  aliases: /* @__PURE__ */ Object.create(null),
472
472
  arrays: /* @__PURE__ */ Object.create(null),
@@ -4284,7 +4284,7 @@ var require_y18n = __commonJS({
4284
4284
  "node_modules/y18n/index.js"(exports2, module2) {
4285
4285
  var fs = require("fs");
4286
4286
  var path = require("path");
4287
- var util2 = require("util");
4287
+ var util3 = require("util");
4288
4288
  function Y18N(opts) {
4289
4289
  opts = opts || {};
4290
4290
  this.directory = opts.directory || "./locales";
@@ -4312,7 +4312,7 @@ var require_y18n = __commonJS({
4312
4312
  } else {
4313
4313
  cb();
4314
4314
  }
4315
- return util2.format.apply(util2, [this.cache[this.locale][str] || str].concat(args2));
4315
+ return util3.format.apply(util3, [this.cache[this.locale][str] || str].concat(args2));
4316
4316
  };
4317
4317
  Y18N.prototype._taggedLiteral = function(parts) {
4318
4318
  var args2 = arguments;
@@ -4397,7 +4397,7 @@ var require_y18n = __commonJS({
4397
4397
  }
4398
4398
  var values = [str];
4399
4399
  if (~str.indexOf("%d")) values.push(quantity);
4400
- return util2.format.apply(util2, values.concat(args2));
4400
+ return util3.format.apply(util3, values.concat(args2));
4401
4401
  };
4402
4402
  Y18N.prototype.setLocale = function(locale) {
4403
4403
  this.locale = locale;
@@ -9235,13 +9235,13 @@ var require_inherits_browser = __commonJS({
9235
9235
  var require_inherits = __commonJS({
9236
9236
  "../../../node_modules/inherits/inherits.js"(exports2, module2) {
9237
9237
  try {
9238
- util2 = require("util");
9239
- if (typeof util2.inherits !== "function") throw "";
9240
- module2.exports = util2.inherits;
9238
+ util3 = require("util");
9239
+ if (typeof util3.inherits !== "function") throw "";
9240
+ module2.exports = util3.inherits;
9241
9241
  } catch (e) {
9242
9242
  module2.exports = require_inherits_browser();
9243
9243
  }
9244
- var util2;
9244
+ var util3;
9245
9245
  }
9246
9246
  });
9247
9247
 
@@ -9452,7 +9452,7 @@ var require_sync = __commonJS({
9452
9452
  var minimatch = require_minimatch();
9453
9453
  var Minimatch = minimatch.Minimatch;
9454
9454
  var Glob = require_glob().Glob;
9455
- var util2 = require("util");
9455
+ var util3 = require("util");
9456
9456
  var path = require("path");
9457
9457
  var assert = require("assert");
9458
9458
  var isAbsolute = require("path").isAbsolute;
@@ -9935,7 +9935,7 @@ var require_glob = __commonJS({
9935
9935
  var setopts = common.setopts;
9936
9936
  var ownProp = common.ownProp;
9937
9937
  var inflight = require_inflight();
9938
- var util2 = require("util");
9938
+ var util3 = require("util");
9939
9939
  var childrenIgnored = common.childrenIgnored;
9940
9940
  var isIgnored = common.isIgnored;
9941
9941
  var once = require_once();
@@ -10478,7 +10478,7 @@ var require_glob = __commonJS({
10478
10478
  var require_delayed_stream = __commonJS({
10479
10479
  "../../../node_modules/delayed-stream/lib/delayed_stream.js"(exports2, module2) {
10480
10480
  var Stream = require("stream").Stream;
10481
- var util2 = require("util");
10481
+ var util3 = require("util");
10482
10482
  module2.exports = DelayedStream;
10483
10483
  function DelayedStream() {
10484
10484
  this.source = null;
@@ -10489,7 +10489,7 @@ var require_delayed_stream = __commonJS({
10489
10489
  this._released = false;
10490
10490
  this._bufferedEvents = [];
10491
10491
  }
10492
- util2.inherits(DelayedStream, Stream);
10492
+ util3.inherits(DelayedStream, Stream);
10493
10493
  DelayedStream.create = function(source, options) {
10494
10494
  var delayedStream = new this();
10495
10495
  options = options || {};
@@ -10568,7 +10568,7 @@ var require_delayed_stream = __commonJS({
10568
10568
  // ../../../node_modules/combined-stream/lib/combined_stream.js
10569
10569
  var require_combined_stream = __commonJS({
10570
10570
  "../../../node_modules/combined-stream/lib/combined_stream.js"(exports2, module2) {
10571
- var util2 = require("util");
10571
+ var util3 = require("util");
10572
10572
  var Stream = require("stream").Stream;
10573
10573
  var DelayedStream = require_delayed_stream();
10574
10574
  module2.exports = CombinedStream;
@@ -10584,7 +10584,7 @@ var require_combined_stream = __commonJS({
10584
10584
  this._insideLoop = false;
10585
10585
  this._pendingNext = false;
10586
10586
  }
10587
- util2.inherits(CombinedStream, Stream);
10587
+ util3.inherits(CombinedStream, Stream);
10588
10588
  CombinedStream.create = function(options) {
10589
10589
  var combinedStream = new this();
10590
10590
  options = options || {};
@@ -19565,9 +19565,9 @@ var require_asynckit = __commonJS({
19565
19565
  }
19566
19566
  });
19567
19567
 
19568
- // ../../../node_modules/axios/node_modules/form-data/lib/populate.js
19568
+ // ../../../node_modules/form-data/lib/populate.js
19569
19569
  var require_populate = __commonJS({
19570
- "../../../node_modules/axios/node_modules/form-data/lib/populate.js"(exports2, module2) {
19570
+ "../../../node_modules/form-data/lib/populate.js"(exports2, module2) {
19571
19571
  module2.exports = function(dst, src) {
19572
19572
  Object.keys(src).forEach(function(prop) {
19573
19573
  dst[prop] = dst[prop] || src[prop];
@@ -19577,11 +19577,11 @@ var require_populate = __commonJS({
19577
19577
  }
19578
19578
  });
19579
19579
 
19580
- // ../../../node_modules/axios/node_modules/form-data/lib/form_data.js
19580
+ // ../../../node_modules/form-data/lib/form_data.js
19581
19581
  var require_form_data = __commonJS({
19582
- "../../../node_modules/axios/node_modules/form-data/lib/form_data.js"(exports2, module2) {
19582
+ "../../../node_modules/form-data/lib/form_data.js"(exports2, module2) {
19583
19583
  var CombinedStream = require_combined_stream();
19584
- var util2 = require("util");
19584
+ var util3 = require("util");
19585
19585
  var path = require("path");
19586
19586
  var http2 = require("http");
19587
19587
  var https2 = require("https");
@@ -19592,7 +19592,7 @@ var require_form_data = __commonJS({
19592
19592
  var asynckit = require_asynckit();
19593
19593
  var populate = require_populate();
19594
19594
  module2.exports = FormData4;
19595
- util2.inherits(FormData4, CombinedStream);
19595
+ util3.inherits(FormData4, CombinedStream);
19596
19596
  function FormData4(options) {
19597
19597
  if (!(this instanceof FormData4)) {
19598
19598
  return new FormData4(options);
@@ -19617,7 +19617,7 @@ var require_form_data = __commonJS({
19617
19617
  if (typeof value == "number") {
19618
19618
  value = "" + value;
19619
19619
  }
19620
- if (util2.isArray(value)) {
19620
+ if (Array.isArray(value)) {
19621
19621
  this._error(new Error("Arrays are not supported."));
19622
19622
  return;
19623
19623
  }
@@ -19907,7 +19907,7 @@ var require_proxy_from_env = __commonJS({
19907
19907
  var stringEndsWith = String.prototype.endsWith || function(s) {
19908
19908
  return s.length <= this.length && this.indexOf(s, this.length - s.length) !== -1;
19909
19909
  };
19910
- function getProxyForUrl2(url2) {
19910
+ function getProxyForUrl(url2) {
19911
19911
  var parsedUrl = typeof url2 === "string" ? parseUrl(url2) : url2 || {};
19912
19912
  var proto2 = parsedUrl.protocol;
19913
19913
  var hostname = parsedUrl.host;
@@ -19957,7 +19957,7 @@ var require_proxy_from_env = __commonJS({
19957
19957
  function getEnv(key) {
19958
19958
  return process.env[key.toLowerCase()] || process.env[key.toUpperCase()] || "";
19959
19959
  }
19960
- exports2.getProxyForUrl = getProxyForUrl2;
19960
+ exports2.getProxyForUrl = getProxyForUrl;
19961
19961
  }
19962
19962
  });
19963
19963
 
@@ -20528,14 +20528,14 @@ var require_supports_color = __commonJS({
20528
20528
  var require_node = __commonJS({
20529
20529
  "../../../node_modules/debug/src/node.js"(exports2, module2) {
20530
20530
  var tty2 = require("tty");
20531
- var util2 = require("util");
20531
+ var util3 = require("util");
20532
20532
  exports2.init = init;
20533
20533
  exports2.log = log;
20534
20534
  exports2.formatArgs = formatArgs;
20535
20535
  exports2.save = save;
20536
20536
  exports2.load = load2;
20537
20537
  exports2.useColors = useColors;
20538
- exports2.destroy = util2.deprecate(
20538
+ exports2.destroy = util3.deprecate(
20539
20539
  () => {
20540
20540
  },
20541
20541
  "Instance method `debug.destroy()` is deprecated and no longer does anything. It will be removed in the next major version of `debug`."
@@ -20666,7 +20666,7 @@ var require_node = __commonJS({
20666
20666
  return (/* @__PURE__ */ new Date()).toISOString() + " ";
20667
20667
  }
20668
20668
  function log(...args2) {
20669
- return process.stderr.write(util2.format(...args2) + "\n");
20669
+ return process.stderr.write(util3.format(...args2) + "\n");
20670
20670
  }
20671
20671
  function save(namespaces) {
20672
20672
  if (namespaces) {
@@ -20689,11 +20689,11 @@ var require_node = __commonJS({
20689
20689
  var { formatters } = module2.exports;
20690
20690
  formatters.o = function(v) {
20691
20691
  this.inspectOpts.colors = this.useColors;
20692
- return util2.inspect(v, this.inspectOpts).split("\n").map((str) => str.trim()).join(" ");
20692
+ return util3.inspect(v, this.inspectOpts).split("\n").map((str) => str.trim()).join(" ");
20693
20693
  };
20694
20694
  formatters.O = function(v) {
20695
20695
  this.inspectOpts.colors = this.useColors;
20696
- return util2.inspect(v, this.inspectOpts);
20696
+ return util3.inspect(v, this.inspectOpts);
20697
20697
  };
20698
20698
  }
20699
20699
  });
@@ -21215,332 +21215,6 @@ var require_follow_redirects = __commonJS({
21215
21215
  }
21216
21216
  });
21217
21217
 
21218
- // ../../../node_modules/form-data/lib/populate.js
21219
- var require_populate2 = __commonJS({
21220
- "../../../node_modules/form-data/lib/populate.js"(exports2, module2) {
21221
- module2.exports = function(dst, src) {
21222
- Object.keys(src).forEach(function(prop) {
21223
- dst[prop] = dst[prop] || src[prop];
21224
- });
21225
- return dst;
21226
- };
21227
- }
21228
- });
21229
-
21230
- // ../../../node_modules/form-data/lib/form_data.js
21231
- var require_form_data2 = __commonJS({
21232
- "../../../node_modules/form-data/lib/form_data.js"(exports2, module2) {
21233
- var CombinedStream = require_combined_stream();
21234
- var util2 = require("util");
21235
- var path = require("path");
21236
- var http2 = require("http");
21237
- var https2 = require("https");
21238
- var parseUrl = require("url").parse;
21239
- var fs = require("fs");
21240
- var Stream = require("stream").Stream;
21241
- var mime = require_mime_types();
21242
- var asynckit = require_asynckit();
21243
- var populate = require_populate2();
21244
- module2.exports = FormData4;
21245
- util2.inherits(FormData4, CombinedStream);
21246
- function FormData4(options) {
21247
- if (!(this instanceof FormData4)) {
21248
- return new FormData4(options);
21249
- }
21250
- this._overheadLength = 0;
21251
- this._valueLength = 0;
21252
- this._valuesToMeasure = [];
21253
- CombinedStream.call(this);
21254
- options = options || {};
21255
- for (var option in options) {
21256
- this[option] = options[option];
21257
- }
21258
- }
21259
- FormData4.LINE_BREAK = "\r\n";
21260
- FormData4.DEFAULT_CONTENT_TYPE = "application/octet-stream";
21261
- FormData4.prototype.append = function(field, value, options) {
21262
- options = options || {};
21263
- if (typeof options == "string") {
21264
- options = { filename: options };
21265
- }
21266
- var append2 = CombinedStream.prototype.append.bind(this);
21267
- if (typeof value == "number") {
21268
- value = "" + value;
21269
- }
21270
- if (Array.isArray(value)) {
21271
- this._error(new Error("Arrays are not supported."));
21272
- return;
21273
- }
21274
- var header = this._multiPartHeader(field, value, options);
21275
- var footer = this._multiPartFooter();
21276
- append2(header);
21277
- append2(value);
21278
- append2(footer);
21279
- this._trackLength(header, value, options);
21280
- };
21281
- FormData4.prototype._trackLength = function(header, value, options) {
21282
- var valueLength = 0;
21283
- if (options.knownLength != null) {
21284
- valueLength += +options.knownLength;
21285
- } else if (Buffer.isBuffer(value)) {
21286
- valueLength = value.length;
21287
- } else if (typeof value === "string") {
21288
- valueLength = Buffer.byteLength(value);
21289
- }
21290
- this._valueLength += valueLength;
21291
- this._overheadLength += Buffer.byteLength(header) + FormData4.LINE_BREAK.length;
21292
- if (!value || !value.path && !(value.readable && value.hasOwnProperty("httpVersion")) && !(value instanceof Stream)) {
21293
- return;
21294
- }
21295
- if (!options.knownLength) {
21296
- this._valuesToMeasure.push(value);
21297
- }
21298
- };
21299
- FormData4.prototype._lengthRetriever = function(value, callback) {
21300
- if (value.hasOwnProperty("fd")) {
21301
- if (value.end != void 0 && value.end != Infinity && value.start != void 0) {
21302
- callback(null, value.end + 1 - (value.start ? value.start : 0));
21303
- } else {
21304
- fs.stat(value.path, function(err, stat2) {
21305
- var fileSize;
21306
- if (err) {
21307
- callback(err);
21308
- return;
21309
- }
21310
- fileSize = stat2.size - (value.start ? value.start : 0);
21311
- callback(null, fileSize);
21312
- });
21313
- }
21314
- } else if (value.hasOwnProperty("httpVersion")) {
21315
- callback(null, +value.headers["content-length"]);
21316
- } else if (value.hasOwnProperty("httpModule")) {
21317
- value.on("response", function(response) {
21318
- value.pause();
21319
- callback(null, +response.headers["content-length"]);
21320
- });
21321
- value.resume();
21322
- } else {
21323
- callback("Unknown stream");
21324
- }
21325
- };
21326
- FormData4.prototype._multiPartHeader = function(field, value, options) {
21327
- if (typeof options.header == "string") {
21328
- return options.header;
21329
- }
21330
- var contentDisposition = this._getContentDisposition(value, options);
21331
- var contentType = this._getContentType(value, options);
21332
- var contents = "";
21333
- var headers = {
21334
- // add custom disposition as third element or keep it two elements if not
21335
- "Content-Disposition": ["form-data", 'name="' + field + '"'].concat(contentDisposition || []),
21336
- // if no content type. allow it to be empty array
21337
- "Content-Type": [].concat(contentType || [])
21338
- };
21339
- if (typeof options.header == "object") {
21340
- populate(headers, options.header);
21341
- }
21342
- var header;
21343
- for (var prop in headers) {
21344
- if (!headers.hasOwnProperty(prop)) continue;
21345
- header = headers[prop];
21346
- if (header == null) {
21347
- continue;
21348
- }
21349
- if (!Array.isArray(header)) {
21350
- header = [header];
21351
- }
21352
- if (header.length) {
21353
- contents += prop + ": " + header.join("; ") + FormData4.LINE_BREAK;
21354
- }
21355
- }
21356
- return "--" + this.getBoundary() + FormData4.LINE_BREAK + contents + FormData4.LINE_BREAK;
21357
- };
21358
- FormData4.prototype._getContentDisposition = function(value, options) {
21359
- var filename, contentDisposition;
21360
- if (typeof options.filepath === "string") {
21361
- filename = path.normalize(options.filepath).replace(/\\/g, "/");
21362
- } else if (options.filename || value.name || value.path) {
21363
- filename = path.basename(options.filename || value.name || value.path);
21364
- } else if (value.readable && value.hasOwnProperty("httpVersion")) {
21365
- filename = path.basename(value.client._httpMessage.path || "");
21366
- }
21367
- if (filename) {
21368
- contentDisposition = 'filename="' + filename + '"';
21369
- }
21370
- return contentDisposition;
21371
- };
21372
- FormData4.prototype._getContentType = function(value, options) {
21373
- var contentType = options.contentType;
21374
- if (!contentType && value.name) {
21375
- contentType = mime.lookup(value.name);
21376
- }
21377
- if (!contentType && value.path) {
21378
- contentType = mime.lookup(value.path);
21379
- }
21380
- if (!contentType && value.readable && value.hasOwnProperty("httpVersion")) {
21381
- contentType = value.headers["content-type"];
21382
- }
21383
- if (!contentType && (options.filepath || options.filename)) {
21384
- contentType = mime.lookup(options.filepath || options.filename);
21385
- }
21386
- if (!contentType && typeof value == "object") {
21387
- contentType = FormData4.DEFAULT_CONTENT_TYPE;
21388
- }
21389
- return contentType;
21390
- };
21391
- FormData4.prototype._multiPartFooter = function() {
21392
- return function(next) {
21393
- var footer = FormData4.LINE_BREAK;
21394
- var lastPart = this._streams.length === 0;
21395
- if (lastPart) {
21396
- footer += this._lastBoundary();
21397
- }
21398
- next(footer);
21399
- }.bind(this);
21400
- };
21401
- FormData4.prototype._lastBoundary = function() {
21402
- return "--" + this.getBoundary() + "--" + FormData4.LINE_BREAK;
21403
- };
21404
- FormData4.prototype.getHeaders = function(userHeaders) {
21405
- var header;
21406
- var formHeaders = {
21407
- "content-type": "multipart/form-data; boundary=" + this.getBoundary()
21408
- };
21409
- for (header in userHeaders) {
21410
- if (userHeaders.hasOwnProperty(header)) {
21411
- formHeaders[header.toLowerCase()] = userHeaders[header];
21412
- }
21413
- }
21414
- return formHeaders;
21415
- };
21416
- FormData4.prototype.setBoundary = function(boundary) {
21417
- this._boundary = boundary;
21418
- };
21419
- FormData4.prototype.getBoundary = function() {
21420
- if (!this._boundary) {
21421
- this._generateBoundary();
21422
- }
21423
- return this._boundary;
21424
- };
21425
- FormData4.prototype.getBuffer = function() {
21426
- var dataBuffer = new Buffer.alloc(0);
21427
- var boundary = this.getBoundary();
21428
- for (var i = 0, len = this._streams.length; i < len; i++) {
21429
- if (typeof this._streams[i] !== "function") {
21430
- if (Buffer.isBuffer(this._streams[i])) {
21431
- dataBuffer = Buffer.concat([dataBuffer, this._streams[i]]);
21432
- } else {
21433
- dataBuffer = Buffer.concat([dataBuffer, Buffer.from(this._streams[i])]);
21434
- }
21435
- if (typeof this._streams[i] !== "string" || this._streams[i].substring(2, boundary.length + 2) !== boundary) {
21436
- dataBuffer = Buffer.concat([dataBuffer, Buffer.from(FormData4.LINE_BREAK)]);
21437
- }
21438
- }
21439
- }
21440
- return Buffer.concat([dataBuffer, Buffer.from(this._lastBoundary())]);
21441
- };
21442
- FormData4.prototype._generateBoundary = function() {
21443
- var boundary = "--------------------------";
21444
- for (var i = 0; i < 24; i++) {
21445
- boundary += Math.floor(Math.random() * 10).toString(16);
21446
- }
21447
- this._boundary = boundary;
21448
- };
21449
- FormData4.prototype.getLengthSync = function() {
21450
- var knownLength = this._overheadLength + this._valueLength;
21451
- if (this._streams.length) {
21452
- knownLength += this._lastBoundary().length;
21453
- }
21454
- if (!this.hasKnownLength()) {
21455
- this._error(new Error("Cannot calculate proper length in synchronous way."));
21456
- }
21457
- return knownLength;
21458
- };
21459
- FormData4.prototype.hasKnownLength = function() {
21460
- var hasKnownLength = true;
21461
- if (this._valuesToMeasure.length) {
21462
- hasKnownLength = false;
21463
- }
21464
- return hasKnownLength;
21465
- };
21466
- FormData4.prototype.getLength = function(cb) {
21467
- var knownLength = this._overheadLength + this._valueLength;
21468
- if (this._streams.length) {
21469
- knownLength += this._lastBoundary().length;
21470
- }
21471
- if (!this._valuesToMeasure.length) {
21472
- process.nextTick(cb.bind(this, null, knownLength));
21473
- return;
21474
- }
21475
- asynckit.parallel(this._valuesToMeasure, this._lengthRetriever, function(err, values) {
21476
- if (err) {
21477
- cb(err);
21478
- return;
21479
- }
21480
- values.forEach(function(length) {
21481
- knownLength += length;
21482
- });
21483
- cb(null, knownLength);
21484
- });
21485
- };
21486
- FormData4.prototype.submit = function(params, cb) {
21487
- var request, options, defaults2 = { method: "post" };
21488
- if (typeof params == "string") {
21489
- params = parseUrl(params);
21490
- options = populate({
21491
- port: params.port,
21492
- path: params.pathname,
21493
- host: params.hostname,
21494
- protocol: params.protocol
21495
- }, defaults2);
21496
- } else {
21497
- options = populate(params, defaults2);
21498
- if (!options.port) {
21499
- options.port = options.protocol == "https:" ? 443 : 80;
21500
- }
21501
- }
21502
- options.headers = this.getHeaders(params.headers);
21503
- if (options.protocol == "https:") {
21504
- request = https2.request(options);
21505
- } else {
21506
- request = http2.request(options);
21507
- }
21508
- this.getLength(function(err, length) {
21509
- if (err && err !== "Unknown stream") {
21510
- this._error(err);
21511
- return;
21512
- }
21513
- if (length) {
21514
- request.setHeader("Content-Length", length);
21515
- }
21516
- this.pipe(request);
21517
- if (cb) {
21518
- var onResponse;
21519
- var callback = function(error, responce) {
21520
- request.removeListener("error", callback);
21521
- request.removeListener("response", onResponse);
21522
- return cb.call(this, error, responce);
21523
- };
21524
- onResponse = callback.bind(this, null);
21525
- request.on("error", callback);
21526
- request.on("response", onResponse);
21527
- }
21528
- }.bind(this));
21529
- return request;
21530
- };
21531
- FormData4.prototype._error = function(err) {
21532
- if (!this.error) {
21533
- this.error = err;
21534
- this.pause();
21535
- this.emit("error", err);
21536
- }
21537
- };
21538
- FormData4.prototype.toString = function() {
21539
- return "[object FormData]";
21540
- };
21541
- }
21542
- });
21543
-
21544
21218
  // src/index.ts
21545
21219
  var import_yargs = __toESM(require_yargs3());
21546
21220
  var import_rc = __toESM(require_rc());
@@ -23252,21 +22926,6 @@ var noop = () => {
23252
22926
  var toFiniteNumber = (value, defaultValue) => {
23253
22927
  return value != null && Number.isFinite(value = +value) ? value : defaultValue;
23254
22928
  };
23255
- var ALPHA = "abcdefghijklmnopqrstuvwxyz";
23256
- var DIGIT = "0123456789";
23257
- var ALPHABET = {
23258
- DIGIT,
23259
- ALPHA,
23260
- ALPHA_DIGIT: ALPHA + ALPHA.toUpperCase() + DIGIT
23261
- };
23262
- var generateString = (size = 16, alphabet = ALPHABET.ALPHA_DIGIT) => {
23263
- let str = "";
23264
- const { length } = alphabet;
23265
- while (size--) {
23266
- str += alphabet[Math.random() * length | 0];
23267
- }
23268
- return str;
23269
- };
23270
22929
  function isSpecCompliantForm(thing) {
23271
22930
  return !!(thing && isFunction(thing.append) && thing[Symbol.toStringTag] === "FormData" && thing[Symbol.iterator]);
23272
22931
  }
@@ -23365,8 +23024,6 @@ var utils_default = {
23365
23024
  findKey,
23366
23025
  global: _global,
23367
23026
  isContextDefined,
23368
- ALPHABET,
23369
- generateString,
23370
23027
  isSpecCompliantForm,
23371
23028
  toJSONObject,
23372
23029
  isAsyncFn,
@@ -23608,6 +23265,11 @@ function buildURL(url2, params, options) {
23608
23265
  return url2;
23609
23266
  }
23610
23267
  const _encode = options && options.encode || encode2;
23268
+ if (utils_default.isFunction(options)) {
23269
+ options = {
23270
+ serialize: options
23271
+ };
23272
+ }
23611
23273
  const serializeFn = options && options.serialize;
23612
23274
  let serializedParams;
23613
23275
  if (serializeFn) {
@@ -23696,11 +23358,31 @@ var transitional_default = {
23696
23358
  clarifyTimeoutError: false
23697
23359
  };
23698
23360
 
23361
+ // ../../../node_modules/axios/lib/platform/node/index.js
23362
+ var import_crypto = __toESM(require("crypto"), 1);
23363
+
23699
23364
  // ../../../node_modules/axios/lib/platform/node/classes/URLSearchParams.js
23700
23365
  var import_url = __toESM(require("url"), 1);
23701
23366
  var URLSearchParams_default = import_url.default.URLSearchParams;
23702
23367
 
23703
23368
  // ../../../node_modules/axios/lib/platform/node/index.js
23369
+ var ALPHA = "abcdefghijklmnopqrstuvwxyz";
23370
+ var DIGIT = "0123456789";
23371
+ var ALPHABET = {
23372
+ DIGIT,
23373
+ ALPHA,
23374
+ ALPHA_DIGIT: ALPHA + ALPHA.toUpperCase() + DIGIT
23375
+ };
23376
+ var generateString = (size = 16, alphabet = ALPHABET.ALPHA_DIGIT) => {
23377
+ let str = "";
23378
+ const { length } = alphabet;
23379
+ const randomValues = new Uint32Array(size);
23380
+ import_crypto.default.randomFillSync(randomValues);
23381
+ for (let i = 0; i < size; i++) {
23382
+ str += alphabet[randomValues[i] % length];
23383
+ }
23384
+ return str;
23385
+ };
23704
23386
  var node_default = {
23705
23387
  isNode: true,
23706
23388
  classes: {
@@ -23708,6 +23390,8 @@ var node_default = {
23708
23390
  FormData: FormData_default,
23709
23391
  Blob: typeof Blob !== "undefined" && Blob || null
23710
23392
  },
23393
+ ALPHABET,
23394
+ generateString,
23711
23395
  protocols: ["http", "https", "file", "data"]
23712
23396
  };
23713
23397
 
@@ -24231,8 +23915,9 @@ function combineURLs(baseURL, relativeURL) {
24231
23915
  }
24232
23916
 
24233
23917
  // ../../../node_modules/axios/lib/core/buildFullPath.js
24234
- function buildFullPath(baseURL, requestedURL) {
24235
- if (baseURL && !isAbsoluteURL(requestedURL)) {
23918
+ function buildFullPath(baseURL, requestedURL, allowAbsoluteUrls) {
23919
+ let isRelativeUrl = !isAbsoluteURL(requestedURL);
23920
+ if (baseURL && isRelativeUrl || allowAbsoluteUrls == false) {
24236
23921
  return combineURLs(baseURL, requestedURL);
24237
23922
  }
24238
23923
  return requestedURL;
@@ -24247,7 +23932,7 @@ var import_follow_redirects = __toESM(require_follow_redirects(), 1);
24247
23932
  var import_zlib = __toESM(require("zlib"), 1);
24248
23933
 
24249
23934
  // ../../../node_modules/axios/lib/env/data.js
24250
- var VERSION = "1.7.7";
23935
+ var VERSION = "1.8.2";
24251
23936
 
24252
23937
  // ../../../node_modules/axios/lib/helpers/parseProtocol.js
24253
23938
  function parseProtocol(url2) {
@@ -24406,7 +24091,7 @@ var AxiosTransformStream_default = AxiosTransformStream;
24406
24091
  var import_events = require("events");
24407
24092
 
24408
24093
  // ../../../node_modules/axios/lib/helpers/formDataToStream.js
24409
- var import_util2 = require("util");
24094
+ var import_util2 = __toESM(require("util"), 1);
24410
24095
  var import_stream3 = require("stream");
24411
24096
 
24412
24097
  // ../../../node_modules/axios/lib/helpers/readBlob.js
@@ -24425,8 +24110,8 @@ var readBlob = async function* (blob) {
24425
24110
  var readBlob_default = readBlob;
24426
24111
 
24427
24112
  // ../../../node_modules/axios/lib/helpers/formDataToStream.js
24428
- var BOUNDARY_ALPHABET = utils_default.ALPHABET.ALPHA_DIGIT + "-_";
24429
- var textEncoder = new import_util2.TextEncoder();
24113
+ var BOUNDARY_ALPHABET = platform_default.ALPHABET.ALPHA_DIGIT + "-_";
24114
+ var textEncoder = typeof TextEncoder === "function" ? new TextEncoder() : new import_util2.default.TextEncoder();
24430
24115
  var CRLF = "\r\n";
24431
24116
  var CRLF_BYTES = textEncoder.encode(CRLF);
24432
24117
  var CRLF_BYTES_COUNT = 2;
@@ -24468,7 +24153,7 @@ var formDataToStream = (form, headersHandler, options) => {
24468
24153
  const {
24469
24154
  tag = "form-data-boundary",
24470
24155
  size = 25,
24471
- boundary = tag + "-" + utils_default.generateString(size, BOUNDARY_ALPHABET)
24156
+ boundary = tag + "-" + platform_default.generateString(size, BOUNDARY_ALPHABET)
24472
24157
  } = options || {};
24473
24158
  if (!utils_default.isFormData(form)) {
24474
24159
  throw TypeError("FormData instance required");
@@ -24676,7 +24361,7 @@ function dispatchBeforeRedirect(options, responseDetails) {
24676
24361
  function setProxy(options, configProxy, location) {
24677
24362
  let proxy = configProxy;
24678
24363
  if (!proxy && proxy !== false) {
24679
- const proxyUrl = (0, import_proxy_from_env.getProxyForUrl)(location);
24364
+ const proxyUrl = import_proxy_from_env.default.getProxyForUrl(location);
24680
24365
  if (proxyUrl) {
24681
24366
  proxy = new URL(proxyUrl);
24682
24367
  }
@@ -24784,7 +24469,7 @@ var http_default = isHttpAdapterSupported && function httpAdapter(config) {
24784
24469
  config.signal.aborted ? abort() : config.signal.addEventListener("abort", abort);
24785
24470
  }
24786
24471
  }
24787
- const fullPath = buildFullPath(config.baseURL, config.url);
24472
+ const fullPath = buildFullPath(config.baseURL, config.url, config.allowAbsoluteUrls);
24788
24473
  const parsed = new URL(fullPath, platform_default.hasBrowserEnv ? platform_default.origin : void 0);
24789
24474
  const protocol = parsed.protocol || supportedProtocols[0];
24790
24475
  if (protocol === "data:") {
@@ -24850,7 +24535,7 @@ var http_default = isHttpAdapterSupported && function httpAdapter(config) {
24850
24535
  } catch (e) {
24851
24536
  }
24852
24537
  }
24853
- } else if (utils_default.isBlob(data)) {
24538
+ } else if (utils_default.isBlob(data) || utils_default.isFile(data)) {
24854
24539
  data.size && headers.setContentType(data.type || "application/octet-stream");
24855
24540
  headers.setContentLength(data.size || 0);
24856
24541
  data = import_stream5.default.Readable.from(readBlob_default(data));
@@ -25053,7 +24738,7 @@ var http_default = isHttpAdapterSupported && function httpAdapter(config) {
25053
24738
  return;
25054
24739
  }
25055
24740
  const err = new AxiosError_default(
25056
- "maxContentLength size of " + config.maxContentLength + " exceeded",
24741
+ "stream has been aborted",
25057
24742
  AxiosError_default.ERR_BAD_RESPONSE,
25058
24743
  config,
25059
24744
  lastRequest
@@ -25148,45 +24833,13 @@ var http_default = isHttpAdapterSupported && function httpAdapter(config) {
25148
24833
  };
25149
24834
 
25150
24835
  // ../../../node_modules/axios/lib/helpers/isURLSameOrigin.js
25151
- var isURLSameOrigin_default = platform_default.hasStandardBrowserEnv ? (
25152
- // Standard browser envs have full support of the APIs needed to test
25153
- // whether the request URL is of the same origin as current location.
25154
- function standardBrowserEnv() {
25155
- const msie = platform_default.navigator && /(msie|trident)/i.test(platform_default.navigator.userAgent);
25156
- const urlParsingNode = document.createElement("a");
25157
- let originURL;
25158
- function resolveURL(url2) {
25159
- let href = url2;
25160
- if (msie) {
25161
- urlParsingNode.setAttribute("href", href);
25162
- href = urlParsingNode.href;
25163
- }
25164
- urlParsingNode.setAttribute("href", href);
25165
- return {
25166
- href: urlParsingNode.href,
25167
- protocol: urlParsingNode.protocol ? urlParsingNode.protocol.replace(/:$/, "") : "",
25168
- host: urlParsingNode.host,
25169
- search: urlParsingNode.search ? urlParsingNode.search.replace(/^\?/, "") : "",
25170
- hash: urlParsingNode.hash ? urlParsingNode.hash.replace(/^#/, "") : "",
25171
- hostname: urlParsingNode.hostname,
25172
- port: urlParsingNode.port,
25173
- pathname: urlParsingNode.pathname.charAt(0) === "/" ? urlParsingNode.pathname : "/" + urlParsingNode.pathname
25174
- };
25175
- }
25176
- originURL = resolveURL(window.location.href);
25177
- return function isURLSameOrigin(requestURL) {
25178
- const parsed = utils_default.isString(requestURL) ? resolveURL(requestURL) : requestURL;
25179
- return parsed.protocol === originURL.protocol && parsed.host === originURL.host;
25180
- };
25181
- }()
25182
- ) : (
25183
- // Non standard browser envs (web workers, react-native) lack needed support.
25184
- /* @__PURE__ */ function nonStandardBrowserEnv() {
25185
- return function isURLSameOrigin() {
25186
- return true;
25187
- };
25188
- }()
25189
- );
24836
+ var isURLSameOrigin_default = platform_default.hasStandardBrowserEnv ? /* @__PURE__ */ ((origin2, isMSIE) => (url2) => {
24837
+ url2 = new URL(url2, platform_default.origin);
24838
+ return origin2.protocol === url2.protocol && origin2.host === url2.host && (isMSIE || origin2.port === url2.port);
24839
+ })(
24840
+ new URL(platform_default.origin),
24841
+ platform_default.navigator && /(msie|trident)/i.test(platform_default.navigator.userAgent)
24842
+ ) : () => true;
25190
24843
 
25191
24844
  // ../../../node_modules/axios/lib/helpers/cookies.js
25192
24845
  var cookies_default = platform_default.hasStandardBrowserEnv ? (
@@ -25226,7 +24879,7 @@ var headersToObject = (thing) => thing instanceof AxiosHeaders_default ? { ...th
25226
24879
  function mergeConfig(config1, config2) {
25227
24880
  config2 = config2 || {};
25228
24881
  const config = {};
25229
- function getMergedValue(target, source, caseless) {
24882
+ function getMergedValue(target, source, prop, caseless) {
25230
24883
  if (utils_default.isPlainObject(target) && utils_default.isPlainObject(source)) {
25231
24884
  return utils_default.merge.call({ caseless }, target, source);
25232
24885
  } else if (utils_default.isPlainObject(source)) {
@@ -25236,11 +24889,11 @@ function mergeConfig(config1, config2) {
25236
24889
  }
25237
24890
  return source;
25238
24891
  }
25239
- function mergeDeepProperties(a, b, caseless) {
24892
+ function mergeDeepProperties(a, b, prop, caseless) {
25240
24893
  if (!utils_default.isUndefined(b)) {
25241
- return getMergedValue(a, b, caseless);
24894
+ return getMergedValue(a, b, prop, caseless);
25242
24895
  } else if (!utils_default.isUndefined(a)) {
25243
- return getMergedValue(void 0, a, caseless);
24896
+ return getMergedValue(void 0, a, prop, caseless);
25244
24897
  }
25245
24898
  }
25246
24899
  function valueFromConfig2(a, b) {
@@ -25291,7 +24944,7 @@ function mergeConfig(config1, config2) {
25291
24944
  socketPath: defaultToConfig2,
25292
24945
  responseEncoding: defaultToConfig2,
25293
24946
  validateStatus: mergeDirectKeys,
25294
- headers: (a, b) => mergeDeepProperties(headersToObject(a), headersToObject(b), true)
24947
+ headers: (a, b, prop) => mergeDeepProperties(headersToObject(a), headersToObject(b), prop, true)
25295
24948
  };
25296
24949
  utils_default.forEach(Object.keys(Object.assign({}, config1, config2)), function computeConfigValue(prop) {
25297
24950
  const merge2 = mergeMap[prop] || mergeDeepProperties;
@@ -25868,6 +25521,12 @@ validators.transitional = function transitional(validator, version, message) {
25868
25521
  return validator ? validator(value, opt, opts) : true;
25869
25522
  };
25870
25523
  };
25524
+ validators.spelling = function spelling(correctSpelling) {
25525
+ return (value, opt) => {
25526
+ console.warn(`${opt} is likely a misspelling of ${correctSpelling}`);
25527
+ return true;
25528
+ };
25529
+ };
25871
25530
  function assertOptions(options, schema, allowUnknown) {
25872
25531
  if (typeof options !== "object") {
25873
25532
  throw new AxiosError_default("options must be an object", AxiosError_default.ERR_BAD_OPTION_VALUE);
@@ -25918,8 +25577,8 @@ var Axios = class {
25918
25577
  return await this._request(configOrUrl, config);
25919
25578
  } catch (err) {
25920
25579
  if (err instanceof Error) {
25921
- let dummy;
25922
- Error.captureStackTrace ? Error.captureStackTrace(dummy = {}) : dummy = new Error();
25580
+ let dummy = {};
25581
+ Error.captureStackTrace ? Error.captureStackTrace(dummy) : dummy = new Error();
25923
25582
  const stack = dummy.stack ? dummy.stack.replace(/^.+\n/, "") : "";
25924
25583
  try {
25925
25584
  if (!err.stack) {
@@ -25961,6 +25620,16 @@ var Axios = class {
25961
25620
  }, true);
25962
25621
  }
25963
25622
  }
25623
+ if (config.allowAbsoluteUrls !== void 0) {
25624
+ } else if (this.defaults.allowAbsoluteUrls !== void 0) {
25625
+ config.allowAbsoluteUrls = this.defaults.allowAbsoluteUrls;
25626
+ } else {
25627
+ config.allowAbsoluteUrls = true;
25628
+ }
25629
+ validator_default.assertOptions(config, {
25630
+ baseUrl: validators2.spelling("baseURL"),
25631
+ withXsrfToken: validators2.spelling("withXSRFToken")
25632
+ }, true);
25964
25633
  config.method = (config.method || this.defaults.method || "get").toLowerCase();
25965
25634
  let contextHeaders = headers && utils_default.merge(
25966
25635
  headers.common,
@@ -26027,7 +25696,7 @@ var Axios = class {
26027
25696
  }
26028
25697
  getUri(config) {
26029
25698
  config = mergeConfig(this.defaults, config);
26030
- const fullPath = buildFullPath(config.baseURL, config.url);
25699
+ const fullPath = buildFullPath(config.baseURL, config.url, config.allowAbsoluteUrls);
26031
25700
  return buildURL(fullPath, config.params, config.paramsSerializer);
26032
25701
  }
26033
25702
  };
@@ -26293,7 +25962,7 @@ var {
26293
25962
  } = axios_default;
26294
25963
 
26295
25964
  // src/http.ts
26296
- var import_form_data2 = __toESM(require_form_data2());
25965
+ var import_form_data2 = __toESM(require_form_data());
26297
25966
  var import_https2 = require("https");
26298
25967
 
26299
25968
  // src/common.ts
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "publish-microfrontend",
3
- "version": "1.8.3",
3
+ "version": "1.9.0-beta.7940",
4
4
  "description": "A CLI for publishing micro frontends to a feed service.",
5
5
  "keywords": [
6
6
  "modules",
@@ -68,5 +68,5 @@
68
68
  "typescript": "^5",
69
69
  "yargs": "^15"
70
70
  },
71
- "gitHead": "7f5c780fb3cb8c1f1727a11bb753ec4366e1a1fe"
71
+ "gitHead": "a8f22ef0848f0a376fe89f727339b36f4b2738b8"
72
72
  }