piral-cli 1.8.3-beta.7926 → 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/external/index.js +99 -413
  2. package/package.json +2 -2
@@ -18874,332 +18874,6 @@ var require_form_data = __commonJS({
18874
18874
  }
18875
18875
  });
18876
18876
 
18877
- // node_modules/axios/node_modules/form-data/lib/populate.js
18878
- var require_populate2 = __commonJS({
18879
- "node_modules/axios/node_modules/form-data/lib/populate.js"(exports2, module2) {
18880
- module2.exports = function(dst, src) {
18881
- Object.keys(src).forEach(function(prop) {
18882
- dst[prop] = dst[prop] || src[prop];
18883
- });
18884
- return dst;
18885
- };
18886
- }
18887
- });
18888
-
18889
- // node_modules/axios/node_modules/form-data/lib/form_data.js
18890
- var require_form_data2 = __commonJS({
18891
- "node_modules/axios/node_modules/form-data/lib/form_data.js"(exports2, module2) {
18892
- var CombinedStream = require_combined_stream();
18893
- var util3 = require("util");
18894
- var path9 = require("path");
18895
- var http2 = require("http");
18896
- var https2 = require("https");
18897
- var parseUrl = require("url").parse;
18898
- var fs13 = require("fs");
18899
- var Stream2 = require("stream").Stream;
18900
- var mime = require_mime_types();
18901
- var asynckit = require_asynckit();
18902
- var populate = require_populate2();
18903
- module2.exports = FormData4;
18904
- util3.inherits(FormData4, CombinedStream);
18905
- function FormData4(options) {
18906
- if (!(this instanceof FormData4)) {
18907
- return new FormData4(options);
18908
- }
18909
- this._overheadLength = 0;
18910
- this._valueLength = 0;
18911
- this._valuesToMeasure = [];
18912
- CombinedStream.call(this);
18913
- options = options || {};
18914
- for (var option in options) {
18915
- this[option] = options[option];
18916
- }
18917
- }
18918
- FormData4.LINE_BREAK = "\r\n";
18919
- FormData4.DEFAULT_CONTENT_TYPE = "application/octet-stream";
18920
- FormData4.prototype.append = function(field, value, options) {
18921
- options = options || {};
18922
- if (typeof options == "string") {
18923
- options = { filename: options };
18924
- }
18925
- var append2 = CombinedStream.prototype.append.bind(this);
18926
- if (typeof value == "number") {
18927
- value = "" + value;
18928
- }
18929
- if (util3.isArray(value)) {
18930
- this._error(new Error("Arrays are not supported."));
18931
- return;
18932
- }
18933
- var header = this._multiPartHeader(field, value, options);
18934
- var footer = this._multiPartFooter();
18935
- append2(header);
18936
- append2(value);
18937
- append2(footer);
18938
- this._trackLength(header, value, options);
18939
- };
18940
- FormData4.prototype._trackLength = function(header, value, options) {
18941
- var valueLength = 0;
18942
- if (options.knownLength != null) {
18943
- valueLength += +options.knownLength;
18944
- } else if (Buffer.isBuffer(value)) {
18945
- valueLength = value.length;
18946
- } else if (typeof value === "string") {
18947
- valueLength = Buffer.byteLength(value);
18948
- }
18949
- this._valueLength += valueLength;
18950
- this._overheadLength += Buffer.byteLength(header) + FormData4.LINE_BREAK.length;
18951
- if (!value || !value.path && !(value.readable && value.hasOwnProperty("httpVersion")) && !(value instanceof Stream2)) {
18952
- return;
18953
- }
18954
- if (!options.knownLength) {
18955
- this._valuesToMeasure.push(value);
18956
- }
18957
- };
18958
- FormData4.prototype._lengthRetriever = function(value, callback) {
18959
- if (value.hasOwnProperty("fd")) {
18960
- if (value.end != void 0 && value.end != Infinity && value.start != void 0) {
18961
- callback(null, value.end + 1 - (value.start ? value.start : 0));
18962
- } else {
18963
- fs13.stat(value.path, function(err, stat4) {
18964
- var fileSize;
18965
- if (err) {
18966
- callback(err);
18967
- return;
18968
- }
18969
- fileSize = stat4.size - (value.start ? value.start : 0);
18970
- callback(null, fileSize);
18971
- });
18972
- }
18973
- } else if (value.hasOwnProperty("httpVersion")) {
18974
- callback(null, +value.headers["content-length"]);
18975
- } else if (value.hasOwnProperty("httpModule")) {
18976
- value.on("response", function(response) {
18977
- value.pause();
18978
- callback(null, +response.headers["content-length"]);
18979
- });
18980
- value.resume();
18981
- } else {
18982
- callback("Unknown stream");
18983
- }
18984
- };
18985
- FormData4.prototype._multiPartHeader = function(field, value, options) {
18986
- if (typeof options.header == "string") {
18987
- return options.header;
18988
- }
18989
- var contentDisposition = this._getContentDisposition(value, options);
18990
- var contentType = this._getContentType(value, options);
18991
- var contents = "";
18992
- var headers = {
18993
- // add custom disposition as third element or keep it two elements if not
18994
- "Content-Disposition": ["form-data", 'name="' + field + '"'].concat(contentDisposition || []),
18995
- // if no content type. allow it to be empty array
18996
- "Content-Type": [].concat(contentType || [])
18997
- };
18998
- if (typeof options.header == "object") {
18999
- populate(headers, options.header);
19000
- }
19001
- var header;
19002
- for (var prop in headers) {
19003
- if (!headers.hasOwnProperty(prop)) continue;
19004
- header = headers[prop];
19005
- if (header == null) {
19006
- continue;
19007
- }
19008
- if (!Array.isArray(header)) {
19009
- header = [header];
19010
- }
19011
- if (header.length) {
19012
- contents += prop + ": " + header.join("; ") + FormData4.LINE_BREAK;
19013
- }
19014
- }
19015
- return "--" + this.getBoundary() + FormData4.LINE_BREAK + contents + FormData4.LINE_BREAK;
19016
- };
19017
- FormData4.prototype._getContentDisposition = function(value, options) {
19018
- var filename, contentDisposition;
19019
- if (typeof options.filepath === "string") {
19020
- filename = path9.normalize(options.filepath).replace(/\\/g, "/");
19021
- } else if (options.filename || value.name || value.path) {
19022
- filename = path9.basename(options.filename || value.name || value.path);
19023
- } else if (value.readable && value.hasOwnProperty("httpVersion")) {
19024
- filename = path9.basename(value.client._httpMessage.path || "");
19025
- }
19026
- if (filename) {
19027
- contentDisposition = 'filename="' + filename + '"';
19028
- }
19029
- return contentDisposition;
19030
- };
19031
- FormData4.prototype._getContentType = function(value, options) {
19032
- var contentType = options.contentType;
19033
- if (!contentType && value.name) {
19034
- contentType = mime.lookup(value.name);
19035
- }
19036
- if (!contentType && value.path) {
19037
- contentType = mime.lookup(value.path);
19038
- }
19039
- if (!contentType && value.readable && value.hasOwnProperty("httpVersion")) {
19040
- contentType = value.headers["content-type"];
19041
- }
19042
- if (!contentType && (options.filepath || options.filename)) {
19043
- contentType = mime.lookup(options.filepath || options.filename);
19044
- }
19045
- if (!contentType && typeof value == "object") {
19046
- contentType = FormData4.DEFAULT_CONTENT_TYPE;
19047
- }
19048
- return contentType;
19049
- };
19050
- FormData4.prototype._multiPartFooter = function() {
19051
- return function(next) {
19052
- var footer = FormData4.LINE_BREAK;
19053
- var lastPart = this._streams.length === 0;
19054
- if (lastPart) {
19055
- footer += this._lastBoundary();
19056
- }
19057
- next(footer);
19058
- }.bind(this);
19059
- };
19060
- FormData4.prototype._lastBoundary = function() {
19061
- return "--" + this.getBoundary() + "--" + FormData4.LINE_BREAK;
19062
- };
19063
- FormData4.prototype.getHeaders = function(userHeaders) {
19064
- var header;
19065
- var formHeaders = {
19066
- "content-type": "multipart/form-data; boundary=" + this.getBoundary()
19067
- };
19068
- for (header in userHeaders) {
19069
- if (userHeaders.hasOwnProperty(header)) {
19070
- formHeaders[header.toLowerCase()] = userHeaders[header];
19071
- }
19072
- }
19073
- return formHeaders;
19074
- };
19075
- FormData4.prototype.setBoundary = function(boundary) {
19076
- this._boundary = boundary;
19077
- };
19078
- FormData4.prototype.getBoundary = function() {
19079
- if (!this._boundary) {
19080
- this._generateBoundary();
19081
- }
19082
- return this._boundary;
19083
- };
19084
- FormData4.prototype.getBuffer = function() {
19085
- var dataBuffer = new Buffer.alloc(0);
19086
- var boundary = this.getBoundary();
19087
- for (var i = 0, len = this._streams.length; i < len; i++) {
19088
- if (typeof this._streams[i] !== "function") {
19089
- if (Buffer.isBuffer(this._streams[i])) {
19090
- dataBuffer = Buffer.concat([dataBuffer, this._streams[i]]);
19091
- } else {
19092
- dataBuffer = Buffer.concat([dataBuffer, Buffer.from(this._streams[i])]);
19093
- }
19094
- if (typeof this._streams[i] !== "string" || this._streams[i].substring(2, boundary.length + 2) !== boundary) {
19095
- dataBuffer = Buffer.concat([dataBuffer, Buffer.from(FormData4.LINE_BREAK)]);
19096
- }
19097
- }
19098
- }
19099
- return Buffer.concat([dataBuffer, Buffer.from(this._lastBoundary())]);
19100
- };
19101
- FormData4.prototype._generateBoundary = function() {
19102
- var boundary = "--------------------------";
19103
- for (var i = 0; i < 24; i++) {
19104
- boundary += Math.floor(Math.random() * 10).toString(16);
19105
- }
19106
- this._boundary = boundary;
19107
- };
19108
- FormData4.prototype.getLengthSync = function() {
19109
- var knownLength = this._overheadLength + this._valueLength;
19110
- if (this._streams.length) {
19111
- knownLength += this._lastBoundary().length;
19112
- }
19113
- if (!this.hasKnownLength()) {
19114
- this._error(new Error("Cannot calculate proper length in synchronous way."));
19115
- }
19116
- return knownLength;
19117
- };
19118
- FormData4.prototype.hasKnownLength = function() {
19119
- var hasKnownLength = true;
19120
- if (this._valuesToMeasure.length) {
19121
- hasKnownLength = false;
19122
- }
19123
- return hasKnownLength;
19124
- };
19125
- FormData4.prototype.getLength = function(cb) {
19126
- var knownLength = this._overheadLength + this._valueLength;
19127
- if (this._streams.length) {
19128
- knownLength += this._lastBoundary().length;
19129
- }
19130
- if (!this._valuesToMeasure.length) {
19131
- process.nextTick(cb.bind(this, null, knownLength));
19132
- return;
19133
- }
19134
- asynckit.parallel(this._valuesToMeasure, this._lengthRetriever, function(err, values) {
19135
- if (err) {
19136
- cb(err);
19137
- return;
19138
- }
19139
- values.forEach(function(length) {
19140
- knownLength += length;
19141
- });
19142
- cb(null, knownLength);
19143
- });
19144
- };
19145
- FormData4.prototype.submit = function(params, cb) {
19146
- var request, options, defaults3 = { method: "post" };
19147
- if (typeof params == "string") {
19148
- params = parseUrl(params);
19149
- options = populate({
19150
- port: params.port,
19151
- path: params.pathname,
19152
- host: params.hostname,
19153
- protocol: params.protocol
19154
- }, defaults3);
19155
- } else {
19156
- options = populate(params, defaults3);
19157
- if (!options.port) {
19158
- options.port = options.protocol == "https:" ? 443 : 80;
19159
- }
19160
- }
19161
- options.headers = this.getHeaders(params.headers);
19162
- if (options.protocol == "https:") {
19163
- request = https2.request(options);
19164
- } else {
19165
- request = http2.request(options);
19166
- }
19167
- this.getLength(function(err, length) {
19168
- if (err && err !== "Unknown stream") {
19169
- this._error(err);
19170
- return;
19171
- }
19172
- if (length) {
19173
- request.setHeader("Content-Length", length);
19174
- }
19175
- this.pipe(request);
19176
- if (cb) {
19177
- var onResponse;
19178
- var callback = function(error, responce) {
19179
- request.removeListener("error", callback);
19180
- request.removeListener("response", onResponse);
19181
- return cb.call(this, error, responce);
19182
- };
19183
- onResponse = callback.bind(this, null);
19184
- request.on("error", callback);
19185
- request.on("response", onResponse);
19186
- }
19187
- }.bind(this));
19188
- return request;
19189
- };
19190
- FormData4.prototype._error = function(err) {
19191
- if (!this.error) {
19192
- this.error = err;
19193
- this.pause();
19194
- this.emit("error", err);
19195
- }
19196
- };
19197
- FormData4.prototype.toString = function() {
19198
- return "[object FormData]";
19199
- };
19200
- }
19201
- });
19202
-
19203
18877
  // ../../../node_modules/proxy-from-env/index.js
19204
18878
  var require_proxy_from_env = __commonJS({
19205
18879
  "../../../node_modules/proxy-from-env/index.js"(exports2) {
@@ -29794,7 +29468,7 @@ var require_tmp = __commonJS({
29794
29468
  "../../../node_modules/tmp/lib/tmp.js"(exports2, module2) {
29795
29469
  var fs13 = require("fs");
29796
29470
  var path9 = require("path");
29797
- var crypto = require("crypto");
29471
+ var crypto2 = require("crypto");
29798
29472
  var osTmpDir = require_os_tmpdir();
29799
29473
  var _c = process.binding("constants");
29800
29474
  var tmpDir = osTmpDir();
@@ -29812,9 +29486,9 @@ var require_tmp = __commonJS({
29812
29486
  function _randomChars(howMany) {
29813
29487
  var value = [], rnd = null;
29814
29488
  try {
29815
- rnd = crypto.randomBytes(howMany);
29489
+ rnd = crypto2.randomBytes(howMany);
29816
29490
  } catch (e) {
29817
- rnd = crypto.pseudoRandomBytes(howMany);
29491
+ rnd = crypto2.pseudoRandomBytes(howMany);
29818
29492
  }
29819
29493
  for (var i = 0; i < howMany; i++) {
29820
29494
  value.push(RANDOM_CHARS[rnd[i] % RANDOM_CHARS.length]);
@@ -55934,14 +55608,14 @@ var Mime_default = Mime;
55934
55608
  // ../../../node_modules/mime/dist/src/index.js
55935
55609
  var src_default = new Mime_default(standard_default, other_default)._freeze();
55936
55610
 
55937
- // node_modules/axios/lib/helpers/bind.js
55611
+ // ../../../node_modules/axios/lib/helpers/bind.js
55938
55612
  function bind(fn, thisArg) {
55939
55613
  return function wrap2() {
55940
55614
  return fn.apply(thisArg, arguments);
55941
55615
  };
55942
55616
  }
55943
55617
 
55944
- // node_modules/axios/lib/utils.js
55618
+ // ../../../node_modules/axios/lib/utils.js
55945
55619
  var { toString } = Object.prototype;
55946
55620
  var { getPrototypeOf } = Object;
55947
55621
  var kindOf = /* @__PURE__ */ ((cache) => (thing) => {
@@ -56197,21 +55871,6 @@ var noop2 = () => {
56197
55871
  var toFiniteNumber = (value, defaultValue) => {
56198
55872
  return value != null && Number.isFinite(value = +value) ? value : defaultValue;
56199
55873
  };
56200
- var ALPHA = "abcdefghijklmnopqrstuvwxyz";
56201
- var DIGIT = "0123456789";
56202
- var ALPHABET = {
56203
- DIGIT,
56204
- ALPHA,
56205
- ALPHA_DIGIT: ALPHA + ALPHA.toUpperCase() + DIGIT
56206
- };
56207
- var generateString = (size = 16, alphabet = ALPHABET.ALPHA_DIGIT) => {
56208
- let str = "";
56209
- const { length } = alphabet;
56210
- while (size--) {
56211
- str += alphabet[Math.random() * length | 0];
56212
- }
56213
- return str;
56214
- };
56215
55874
  function isSpecCompliantForm(thing) {
56216
55875
  return !!(thing && isFunction(thing.append) && thing[Symbol.toStringTag] === "FormData" && thing[Symbol.iterator]);
56217
55876
  }
@@ -56310,8 +55969,6 @@ var utils_default = {
56310
55969
  findKey,
56311
55970
  global: _global,
56312
55971
  isContextDefined,
56313
- ALPHABET,
56314
- generateString,
56315
55972
  isSpecCompliantForm,
56316
55973
  toJSONObject,
56317
55974
  isAsyncFn,
@@ -56320,7 +55977,7 @@ var utils_default = {
56320
55977
  asap
56321
55978
  };
56322
55979
 
56323
- // node_modules/axios/lib/core/AxiosError.js
55980
+ // ../../../node_modules/axios/lib/core/AxiosError.js
56324
55981
  function AxiosError(message, code2, config, request, response) {
56325
55982
  Error.call(this);
56326
55983
  if (Error.captureStackTrace) {
@@ -56395,11 +56052,11 @@ AxiosError.from = (error, code2, config, request, response, customProps) => {
56395
56052
  };
56396
56053
  var AxiosError_default = AxiosError;
56397
56054
 
56398
- // node_modules/axios/lib/platform/node/classes/FormData.js
56399
- var import_form_data = __toESM(require_form_data2(), 1);
56055
+ // ../../../node_modules/axios/lib/platform/node/classes/FormData.js
56056
+ var import_form_data = __toESM(require_form_data(), 1);
56400
56057
  var FormData_default = import_form_data.default;
56401
56058
 
56402
- // node_modules/axios/lib/helpers/toFormData.js
56059
+ // ../../../node_modules/axios/lib/helpers/toFormData.js
56403
56060
  function isVisitable(thing) {
56404
56061
  return utils_default.isPlainObject(thing) || utils_default.isArray(thing);
56405
56062
  }
@@ -56511,7 +56168,7 @@ function toFormData(obj, formData, options) {
56511
56168
  }
56512
56169
  var toFormData_default = toFormData;
56513
56170
 
56514
- // node_modules/axios/lib/helpers/AxiosURLSearchParams.js
56171
+ // ../../../node_modules/axios/lib/helpers/AxiosURLSearchParams.js
56515
56172
  function encode3(str) {
56516
56173
  const charMap = {
56517
56174
  "!": "%21",
@@ -56544,7 +56201,7 @@ prototype2.toString = function toString2(encoder) {
56544
56201
  };
56545
56202
  var AxiosURLSearchParams_default = AxiosURLSearchParams;
56546
56203
 
56547
- // node_modules/axios/lib/helpers/buildURL.js
56204
+ // ../../../node_modules/axios/lib/helpers/buildURL.js
56548
56205
  function encode4(val) {
56549
56206
  return encodeURIComponent(val).replace(/%3A/gi, ":").replace(/%24/g, "$").replace(/%2C/gi, ",").replace(/%20/g, "+").replace(/%5B/gi, "[").replace(/%5D/gi, "]");
56550
56207
  }
@@ -56575,7 +56232,7 @@ function buildURL(url2, params, options) {
56575
56232
  return url2;
56576
56233
  }
56577
56234
 
56578
- // node_modules/axios/lib/core/InterceptorManager.js
56235
+ // ../../../node_modules/axios/lib/core/InterceptorManager.js
56579
56236
  var InterceptorManager = class {
56580
56237
  constructor() {
56581
56238
  this.handlers = [];
@@ -56639,18 +56296,38 @@ var InterceptorManager = class {
56639
56296
  };
56640
56297
  var InterceptorManager_default = InterceptorManager;
56641
56298
 
56642
- // node_modules/axios/lib/defaults/transitional.js
56299
+ // ../../../node_modules/axios/lib/defaults/transitional.js
56643
56300
  var transitional_default = {
56644
56301
  silentJSONParsing: true,
56645
56302
  forcedJSONParsing: true,
56646
56303
  clarifyTimeoutError: false
56647
56304
  };
56648
56305
 
56649
- // node_modules/axios/lib/platform/node/classes/URLSearchParams.js
56306
+ // ../../../node_modules/axios/lib/platform/node/index.js
56307
+ var import_crypto = __toESM(require("crypto"), 1);
56308
+
56309
+ // ../../../node_modules/axios/lib/platform/node/classes/URLSearchParams.js
56650
56310
  var import_url = __toESM(require("url"), 1);
56651
56311
  var URLSearchParams_default = import_url.default.URLSearchParams;
56652
56312
 
56653
- // node_modules/axios/lib/platform/node/index.js
56313
+ // ../../../node_modules/axios/lib/platform/node/index.js
56314
+ var ALPHA = "abcdefghijklmnopqrstuvwxyz";
56315
+ var DIGIT = "0123456789";
56316
+ var ALPHABET = {
56317
+ DIGIT,
56318
+ ALPHA,
56319
+ ALPHA_DIGIT: ALPHA + ALPHA.toUpperCase() + DIGIT
56320
+ };
56321
+ var generateString = (size = 16, alphabet = ALPHABET.ALPHA_DIGIT) => {
56322
+ let str = "";
56323
+ const { length } = alphabet;
56324
+ const randomValues = new Uint32Array(size);
56325
+ import_crypto.default.randomFillSync(randomValues);
56326
+ for (let i = 0; i < size; i++) {
56327
+ str += alphabet[randomValues[i] % length];
56328
+ }
56329
+ return str;
56330
+ };
56654
56331
  var node_default = {
56655
56332
  isNode: true,
56656
56333
  classes: {
@@ -56658,10 +56335,12 @@ var node_default = {
56658
56335
  FormData: FormData_default,
56659
56336
  Blob: typeof Blob !== "undefined" && Blob || null
56660
56337
  },
56338
+ ALPHABET,
56339
+ generateString,
56661
56340
  protocols: ["http", "https", "file", "data"]
56662
56341
  };
56663
56342
 
56664
- // node_modules/axios/lib/platform/common/utils.js
56343
+ // ../../../node_modules/axios/lib/platform/common/utils.js
56665
56344
  var utils_exports = {};
56666
56345
  __export(utils_exports, {
56667
56346
  hasBrowserEnv: () => hasBrowserEnv,
@@ -56679,13 +56358,13 @@ var hasStandardBrowserWebWorkerEnv = (() => {
56679
56358
  })();
56680
56359
  var origin = hasBrowserEnv && window.location.href || "http://localhost";
56681
56360
 
56682
- // node_modules/axios/lib/platform/index.js
56361
+ // ../../../node_modules/axios/lib/platform/index.js
56683
56362
  var platform_default = {
56684
56363
  ...utils_exports,
56685
56364
  ...node_default
56686
56365
  };
56687
56366
 
56688
- // node_modules/axios/lib/helpers/toURLEncodedForm.js
56367
+ // ../../../node_modules/axios/lib/helpers/toURLEncodedForm.js
56689
56368
  function toURLEncodedForm(data, options) {
56690
56369
  return toFormData_default(data, new platform_default.classes.URLSearchParams(), Object.assign({
56691
56370
  visitor: function(value, key, path9, helpers) {
@@ -56698,7 +56377,7 @@ function toURLEncodedForm(data, options) {
56698
56377
  }, options));
56699
56378
  }
56700
56379
 
56701
- // node_modules/axios/lib/helpers/formDataToJSON.js
56380
+ // ../../../node_modules/axios/lib/helpers/formDataToJSON.js
56702
56381
  function parsePropPath(name2) {
56703
56382
  return utils_default.matchAll(/\w+|\[(\w*)]/g, name2).map((match2) => {
56704
56383
  return match2[0] === "[]" ? "" : match2[1] || match2[0];
@@ -56751,7 +56430,7 @@ function formDataToJSON(formData) {
56751
56430
  }
56752
56431
  var formDataToJSON_default = formDataToJSON;
56753
56432
 
56754
- // node_modules/axios/lib/defaults/index.js
56433
+ // ../../../node_modules/axios/lib/defaults/index.js
56755
56434
  function stringifySafely(rawValue, parser, encoder) {
56756
56435
  if (utils_default.isString(rawValue)) {
56757
56436
  try {
@@ -56860,7 +56539,7 @@ utils_default.forEach(["delete", "get", "head", "post", "put", "patch"], (method
56860
56539
  });
56861
56540
  var defaults_default = defaults;
56862
56541
 
56863
- // node_modules/axios/lib/helpers/parseHeaders.js
56542
+ // ../../../node_modules/axios/lib/helpers/parseHeaders.js
56864
56543
  var ignoreDuplicateOf = utils_default.toObjectSet([
56865
56544
  "age",
56866
56545
  "authorization",
@@ -56905,7 +56584,7 @@ var parseHeaders_default = (rawHeaders) => {
56905
56584
  return parsed;
56906
56585
  };
56907
56586
 
56908
- // node_modules/axios/lib/core/AxiosHeaders.js
56587
+ // ../../../node_modules/axios/lib/core/AxiosHeaders.js
56909
56588
  var $internals = Symbol("internals");
56910
56589
  function normalizeHeader(header) {
56911
56590
  return header && String(header).trim().toLowerCase();
@@ -57126,7 +56805,7 @@ utils_default.reduceDescriptors(AxiosHeaders.prototype, ({ value }, key) => {
57126
56805
  utils_default.freezeMethods(AxiosHeaders);
57127
56806
  var AxiosHeaders_default = AxiosHeaders;
57128
56807
 
57129
- // node_modules/axios/lib/core/transformData.js
56808
+ // ../../../node_modules/axios/lib/core/transformData.js
57130
56809
  function transformData(fns, response) {
57131
56810
  const config = this || defaults_default;
57132
56811
  const context = response || config;
@@ -57139,12 +56818,12 @@ function transformData(fns, response) {
57139
56818
  return data;
57140
56819
  }
57141
56820
 
57142
- // node_modules/axios/lib/cancel/isCancel.js
56821
+ // ../../../node_modules/axios/lib/cancel/isCancel.js
57143
56822
  function isCancel(value) {
57144
56823
  return !!(value && value.__CANCEL__);
57145
56824
  }
57146
56825
 
57147
- // node_modules/axios/lib/cancel/CanceledError.js
56826
+ // ../../../node_modules/axios/lib/cancel/CanceledError.js
57148
56827
  function CanceledError(message, config, request) {
57149
56828
  AxiosError_default.call(this, message == null ? "canceled" : message, AxiosError_default.ERR_CANCELED, config, request);
57150
56829
  this.name = "CanceledError";
@@ -57154,7 +56833,7 @@ utils_default.inherits(CanceledError, AxiosError_default, {
57154
56833
  });
57155
56834
  var CanceledError_default = CanceledError;
57156
56835
 
57157
- // node_modules/axios/lib/core/settle.js
56836
+ // ../../../node_modules/axios/lib/core/settle.js
57158
56837
  function settle(resolve7, reject, response) {
57159
56838
  const validateStatus2 = response.config.validateStatus;
57160
56839
  if (!response.status || !validateStatus2 || validateStatus2(response.status)) {
@@ -57170,25 +56849,26 @@ function settle(resolve7, reject, response) {
57170
56849
  }
57171
56850
  }
57172
56851
 
57173
- // node_modules/axios/lib/helpers/isAbsoluteURL.js
56852
+ // ../../../node_modules/axios/lib/helpers/isAbsoluteURL.js
57174
56853
  function isAbsoluteURL(url2) {
57175
56854
  return /^([a-z][a-z\d+\-.]*:)?\/\//i.test(url2);
57176
56855
  }
57177
56856
 
57178
- // node_modules/axios/lib/helpers/combineURLs.js
56857
+ // ../../../node_modules/axios/lib/helpers/combineURLs.js
57179
56858
  function combineURLs(baseURL, relativeURL) {
57180
56859
  return relativeURL ? baseURL.replace(/\/?\/$/, "") + "/" + relativeURL.replace(/^\/+/, "") : baseURL;
57181
56860
  }
57182
56861
 
57183
- // node_modules/axios/lib/core/buildFullPath.js
57184
- function buildFullPath(baseURL, requestedURL) {
57185
- if (baseURL && !isAbsoluteURL(requestedURL)) {
56862
+ // ../../../node_modules/axios/lib/core/buildFullPath.js
56863
+ function buildFullPath(baseURL, requestedURL, allowAbsoluteUrls) {
56864
+ let isRelativeUrl = !isAbsoluteURL(requestedURL);
56865
+ if (baseURL && isRelativeUrl || allowAbsoluteUrls == false) {
57186
56866
  return combineURLs(baseURL, requestedURL);
57187
56867
  }
57188
56868
  return requestedURL;
57189
56869
  }
57190
56870
 
57191
- // node_modules/axios/lib/adapters/http.js
56871
+ // ../../../node_modules/axios/lib/adapters/http.js
57192
56872
  var import_proxy_from_env = __toESM(require_proxy_from_env(), 1);
57193
56873
  var import_http = __toESM(require("http"), 1);
57194
56874
  var import_https = __toESM(require("https"), 1);
@@ -57196,16 +56876,16 @@ var import_util2 = __toESM(require("util"), 1);
57196
56876
  var import_follow_redirects = __toESM(require_follow_redirects(), 1);
57197
56877
  var import_zlib3 = __toESM(require("zlib"), 1);
57198
56878
 
57199
- // node_modules/axios/lib/env/data.js
57200
- var VERSION = "1.7.9";
56879
+ // ../../../node_modules/axios/lib/env/data.js
56880
+ var VERSION = "1.8.2";
57201
56881
 
57202
- // node_modules/axios/lib/helpers/parseProtocol.js
56882
+ // ../../../node_modules/axios/lib/helpers/parseProtocol.js
57203
56883
  function parseProtocol(url2) {
57204
56884
  const match2 = /^([-+\w]{1,25})(:?\/\/|:)/.exec(url2);
57205
56885
  return match2 && match2[1] || "";
57206
56886
  }
57207
56887
 
57208
- // node_modules/axios/lib/helpers/fromDataURI.js
56888
+ // ../../../node_modules/axios/lib/helpers/fromDataURI.js
57209
56889
  var DATA_URL_PATTERN = /^(?:([^;]+);)?(?:[^;]+;)?(base64|),([\s\S]*)$/;
57210
56890
  function fromDataURI(uri, asBlob, options) {
57211
56891
  const _Blob = options && options.Blob || platform_default.classes.Blob;
@@ -57234,10 +56914,10 @@ function fromDataURI(uri, asBlob, options) {
57234
56914
  throw new AxiosError_default("Unsupported protocol " + protocol, AxiosError_default.ERR_NOT_SUPPORT);
57235
56915
  }
57236
56916
 
57237
- // node_modules/axios/lib/adapters/http.js
56917
+ // ../../../node_modules/axios/lib/adapters/http.js
57238
56918
  var import_stream4 = __toESM(require("stream"), 1);
57239
56919
 
57240
- // node_modules/axios/lib/helpers/AxiosTransformStream.js
56920
+ // ../../../node_modules/axios/lib/helpers/AxiosTransformStream.js
57241
56921
  var import_stream = __toESM(require("stream"), 1);
57242
56922
  var kInternals = Symbol("internals");
57243
56923
  var AxiosTransformStream = class extends import_stream.default.Transform {
@@ -57352,14 +57032,14 @@ var AxiosTransformStream = class extends import_stream.default.Transform {
57352
57032
  };
57353
57033
  var AxiosTransformStream_default = AxiosTransformStream;
57354
57034
 
57355
- // node_modules/axios/lib/adapters/http.js
57035
+ // ../../../node_modules/axios/lib/adapters/http.js
57356
57036
  var import_events3 = require("events");
57357
57037
 
57358
- // node_modules/axios/lib/helpers/formDataToStream.js
57038
+ // ../../../node_modules/axios/lib/helpers/formDataToStream.js
57359
57039
  var import_util = __toESM(require("util"), 1);
57360
57040
  var import_stream2 = require("stream");
57361
57041
 
57362
- // node_modules/axios/lib/helpers/readBlob.js
57042
+ // ../../../node_modules/axios/lib/helpers/readBlob.js
57363
57043
  var { asyncIterator } = Symbol;
57364
57044
  var readBlob = async function* (blob) {
57365
57045
  if (blob.stream) {
@@ -57374,8 +57054,8 @@ var readBlob = async function* (blob) {
57374
57054
  };
57375
57055
  var readBlob_default = readBlob;
57376
57056
 
57377
- // node_modules/axios/lib/helpers/formDataToStream.js
57378
- var BOUNDARY_ALPHABET = utils_default.ALPHABET.ALPHA_DIGIT + "-_";
57057
+ // ../../../node_modules/axios/lib/helpers/formDataToStream.js
57058
+ var BOUNDARY_ALPHABET = platform_default.ALPHABET.ALPHA_DIGIT + "-_";
57379
57059
  var textEncoder = typeof TextEncoder === "function" ? new TextEncoder() : new import_util.default.TextEncoder();
57380
57060
  var CRLF = "\r\n";
57381
57061
  var CRLF_BYTES = textEncoder.encode(CRLF);
@@ -57418,7 +57098,7 @@ var formDataToStream = (form, headersHandler, options) => {
57418
57098
  const {
57419
57099
  tag = "form-data-boundary",
57420
57100
  size = 25,
57421
- boundary = tag + "-" + utils_default.generateString(size, BOUNDARY_ALPHABET)
57101
+ boundary = tag + "-" + platform_default.generateString(size, BOUNDARY_ALPHABET)
57422
57102
  } = options || {};
57423
57103
  if (!utils_default.isFormData(form)) {
57424
57104
  throw TypeError("FormData instance required");
@@ -57453,7 +57133,7 @@ var formDataToStream = (form, headersHandler, options) => {
57453
57133
  };
57454
57134
  var formDataToStream_default = formDataToStream;
57455
57135
 
57456
- // node_modules/axios/lib/helpers/ZlibHeaderTransformStream.js
57136
+ // ../../../node_modules/axios/lib/helpers/ZlibHeaderTransformStream.js
57457
57137
  var import_stream3 = __toESM(require("stream"), 1);
57458
57138
  var ZlibHeaderTransformStream = class extends import_stream3.default.Transform {
57459
57139
  __transform(chunk, encoding, callback) {
@@ -57475,7 +57155,7 @@ var ZlibHeaderTransformStream = class extends import_stream3.default.Transform {
57475
57155
  };
57476
57156
  var ZlibHeaderTransformStream_default = ZlibHeaderTransformStream;
57477
57157
 
57478
- // node_modules/axios/lib/helpers/callbackify.js
57158
+ // ../../../node_modules/axios/lib/helpers/callbackify.js
57479
57159
  var callbackify = (fn, reducer) => {
57480
57160
  return utils_default.isAsyncFn(fn) ? function(...args) {
57481
57161
  const cb = args.pop();
@@ -57490,7 +57170,7 @@ var callbackify = (fn, reducer) => {
57490
57170
  };
57491
57171
  var callbackify_default = callbackify;
57492
57172
 
57493
- // node_modules/axios/lib/helpers/speedometer.js
57173
+ // ../../../node_modules/axios/lib/helpers/speedometer.js
57494
57174
  function speedometer(samplesCount, min) {
57495
57175
  samplesCount = samplesCount || 10;
57496
57176
  const bytes = new Array(samplesCount);
@@ -57526,7 +57206,7 @@ function speedometer(samplesCount, min) {
57526
57206
  }
57527
57207
  var speedometer_default = speedometer;
57528
57208
 
57529
- // node_modules/axios/lib/helpers/throttle.js
57209
+ // ../../../node_modules/axios/lib/helpers/throttle.js
57530
57210
  function throttle(fn, freq) {
57531
57211
  let timestamp = 0;
57532
57212
  let threshold = 1e3 / freq;
@@ -57561,7 +57241,7 @@ function throttle(fn, freq) {
57561
57241
  }
57562
57242
  var throttle_default = throttle;
57563
57243
 
57564
- // node_modules/axios/lib/helpers/progressEventReducer.js
57244
+ // ../../../node_modules/axios/lib/helpers/progressEventReducer.js
57565
57245
  var progressEventReducer = (listener, isDownloadStream, freq = 3) => {
57566
57246
  let bytesNotified = 0;
57567
57247
  const _speedometer = speedometer_default(50, 250);
@@ -57596,7 +57276,7 @@ var progressEventDecorator = (total, throttled) => {
57596
57276
  };
57597
57277
  var asyncDecorator = (fn) => (...args) => utils_default.asap(() => fn(...args));
57598
57278
 
57599
- // node_modules/axios/lib/adapters/http.js
57279
+ // ../../../node_modules/axios/lib/adapters/http.js
57600
57280
  var zlibOptions = {
57601
57281
  flush: import_zlib3.default.constants.Z_SYNC_FLUSH,
57602
57282
  finishFlush: import_zlib3.default.constants.Z_SYNC_FLUSH
@@ -57734,7 +57414,7 @@ var http_default = isHttpAdapterSupported && function httpAdapter(config) {
57734
57414
  config.signal.aborted ? abort() : config.signal.addEventListener("abort", abort);
57735
57415
  }
57736
57416
  }
57737
- const fullPath = buildFullPath(config.baseURL, config.url);
57417
+ const fullPath = buildFullPath(config.baseURL, config.url, config.allowAbsoluteUrls);
57738
57418
  const parsed = new URL(fullPath, platform_default.hasBrowserEnv ? platform_default.origin : void 0);
57739
57419
  const protocol = parsed.protocol || supportedProtocols[0];
57740
57420
  if (protocol === "data:") {
@@ -58097,7 +57777,7 @@ var http_default = isHttpAdapterSupported && function httpAdapter(config) {
58097
57777
  });
58098
57778
  };
58099
57779
 
58100
- // node_modules/axios/lib/helpers/isURLSameOrigin.js
57780
+ // ../../../node_modules/axios/lib/helpers/isURLSameOrigin.js
58101
57781
  var isURLSameOrigin_default = platform_default.hasStandardBrowserEnv ? /* @__PURE__ */ ((origin2, isMSIE) => (url2) => {
58102
57782
  url2 = new URL(url2, platform_default.origin);
58103
57783
  return origin2.protocol === url2.protocol && origin2.host === url2.host && (isMSIE || origin2.port === url2.port);
@@ -58106,7 +57786,7 @@ var isURLSameOrigin_default = platform_default.hasStandardBrowserEnv ? /* @__PUR
58106
57786
  platform_default.navigator && /(msie|trident)/i.test(platform_default.navigator.userAgent)
58107
57787
  ) : () => true;
58108
57788
 
58109
- // node_modules/axios/lib/helpers/cookies.js
57789
+ // ../../../node_modules/axios/lib/helpers/cookies.js
58110
57790
  var cookies_default = platform_default.hasStandardBrowserEnv ? (
58111
57791
  // Standard browser envs support document.cookie
58112
57792
  {
@@ -58139,7 +57819,7 @@ var cookies_default = platform_default.hasStandardBrowserEnv ? (
58139
57819
  }
58140
57820
  );
58141
57821
 
58142
- // node_modules/axios/lib/core/mergeConfig.js
57822
+ // ../../../node_modules/axios/lib/core/mergeConfig.js
58143
57823
  var headersToObject = (thing) => thing instanceof AxiosHeaders_default ? { ...thing } : thing;
58144
57824
  function mergeConfig(config1, config2) {
58145
57825
  config2 = config2 || {};
@@ -58219,7 +57899,7 @@ function mergeConfig(config1, config2) {
58219
57899
  return config;
58220
57900
  }
58221
57901
 
58222
- // node_modules/axios/lib/helpers/resolveConfig.js
57902
+ // ../../../node_modules/axios/lib/helpers/resolveConfig.js
58223
57903
  var resolveConfig_default = (config) => {
58224
57904
  const newConfig = mergeConfig({}, config);
58225
57905
  let { data, withXSRFToken, xsrfHeaderName, xsrfCookieName, headers, auth } = newConfig;
@@ -58252,7 +57932,7 @@ var resolveConfig_default = (config) => {
58252
57932
  return newConfig;
58253
57933
  };
58254
57934
 
58255
- // node_modules/axios/lib/adapters/xhr.js
57935
+ // ../../../node_modules/axios/lib/adapters/xhr.js
58256
57936
  var isXHRAdapterSupported = typeof XMLHttpRequest !== "undefined";
58257
57937
  var xhr_default = isXHRAdapterSupported && function(config) {
58258
57938
  return new Promise(function dispatchXhrRequest(resolve7, reject) {
@@ -58379,7 +58059,7 @@ var xhr_default = isXHRAdapterSupported && function(config) {
58379
58059
  });
58380
58060
  };
58381
58061
 
58382
- // node_modules/axios/lib/helpers/composeSignals.js
58062
+ // ../../../node_modules/axios/lib/helpers/composeSignals.js
58383
58063
  var composeSignals = (signals3, timeout2) => {
58384
58064
  const { length } = signals3 = signals3 ? signals3.filter(Boolean) : [];
58385
58065
  if (timeout2 || length) {
@@ -58415,7 +58095,7 @@ var composeSignals = (signals3, timeout2) => {
58415
58095
  };
58416
58096
  var composeSignals_default = composeSignals;
58417
58097
 
58418
- // node_modules/axios/lib/helpers/trackStream.js
58098
+ // ../../../node_modules/axios/lib/helpers/trackStream.js
58419
58099
  var streamChunk = function* (chunk, chunkSize) {
58420
58100
  let len = chunk.byteLength;
58421
58101
  if (!chunkSize || len < chunkSize) {
@@ -58492,7 +58172,7 @@ var trackStream = (stream5, chunkSize, onProgress, onFinish) => {
58492
58172
  });
58493
58173
  };
58494
58174
 
58495
- // node_modules/axios/lib/adapters/fetch.js
58175
+ // ../../../node_modules/axios/lib/adapters/fetch.js
58496
58176
  var isFetchSupported = typeof fetch === "function" && typeof Request === "function" && typeof Response === "function";
58497
58177
  var isReadableStreamSupported = isFetchSupported && typeof ReadableStream === "function";
58498
58178
  var encodeText = isFetchSupported && (typeof TextEncoder === "function" ? /* @__PURE__ */ ((encoder) => (str) => encoder.encode(str))(new TextEncoder()) : async (str) => new Uint8Array(await new Response(str).arrayBuffer()));
@@ -58656,7 +58336,7 @@ var fetch_default = isFetchSupported && (async (config) => {
58656
58336
  }
58657
58337
  });
58658
58338
 
58659
- // node_modules/axios/lib/adapters/adapters.js
58339
+ // ../../../node_modules/axios/lib/adapters/adapters.js
58660
58340
  var knownAdapters = {
58661
58341
  http: http_default,
58662
58342
  xhr: xhr_default,
@@ -58710,7 +58390,7 @@ var adapters_default = {
58710
58390
  adapters: knownAdapters
58711
58391
  };
58712
58392
 
58713
- // node_modules/axios/lib/core/dispatchRequest.js
58393
+ // ../../../node_modules/axios/lib/core/dispatchRequest.js
58714
58394
  function throwIfCancellationRequested(config) {
58715
58395
  if (config.cancelToken) {
58716
58396
  config.cancelToken.throwIfRequested();
@@ -58755,7 +58435,7 @@ function dispatchRequest(config) {
58755
58435
  });
58756
58436
  }
58757
58437
 
58758
- // node_modules/axios/lib/helpers/validator.js
58438
+ // ../../../node_modules/axios/lib/helpers/validator.js
58759
58439
  var validators = {};
58760
58440
  ["object", "boolean", "number", "function", "string", "symbol"].forEach((type, i) => {
58761
58441
  validators[type] = function validator(thing) {
@@ -58819,7 +58499,7 @@ var validator_default = {
58819
58499
  validators
58820
58500
  };
58821
58501
 
58822
- // node_modules/axios/lib/core/Axios.js
58502
+ // ../../../node_modules/axios/lib/core/Axios.js
58823
58503
  var validators2 = validator_default.validators;
58824
58504
  var Axios = class {
58825
58505
  constructor(instanceConfig) {
@@ -58885,6 +58565,12 @@ var Axios = class {
58885
58565
  }, true);
58886
58566
  }
58887
58567
  }
58568
+ if (config.allowAbsoluteUrls !== void 0) {
58569
+ } else if (this.defaults.allowAbsoluteUrls !== void 0) {
58570
+ config.allowAbsoluteUrls = this.defaults.allowAbsoluteUrls;
58571
+ } else {
58572
+ config.allowAbsoluteUrls = true;
58573
+ }
58888
58574
  validator_default.assertOptions(config, {
58889
58575
  baseUrl: validators2.spelling("baseURL"),
58890
58576
  withXsrfToken: validators2.spelling("withXSRFToken")
@@ -58955,7 +58641,7 @@ var Axios = class {
58955
58641
  }
58956
58642
  getUri(config) {
58957
58643
  config = mergeConfig(this.defaults, config);
58958
- const fullPath = buildFullPath(config.baseURL, config.url);
58644
+ const fullPath = buildFullPath(config.baseURL, config.url, config.allowAbsoluteUrls);
58959
58645
  return buildURL(fullPath, config.params, config.paramsSerializer);
58960
58646
  }
58961
58647
  };
@@ -58986,7 +58672,7 @@ utils_default.forEach(["post", "put", "patch"], function forEachMethodWithData(m
58986
58672
  });
58987
58673
  var Axios_default = Axios;
58988
58674
 
58989
- // node_modules/axios/lib/cancel/CancelToken.js
58675
+ // ../../../node_modules/axios/lib/cancel/CancelToken.js
58990
58676
  var CancelToken = class _CancelToken {
58991
58677
  constructor(executor) {
58992
58678
  if (typeof executor !== "function") {
@@ -59084,19 +58770,19 @@ var CancelToken = class _CancelToken {
59084
58770
  };
59085
58771
  var CancelToken_default = CancelToken;
59086
58772
 
59087
- // node_modules/axios/lib/helpers/spread.js
58773
+ // ../../../node_modules/axios/lib/helpers/spread.js
59088
58774
  function spread(callback) {
59089
58775
  return function wrap2(arr) {
59090
58776
  return callback.apply(null, arr);
59091
58777
  };
59092
58778
  }
59093
58779
 
59094
- // node_modules/axios/lib/helpers/isAxiosError.js
58780
+ // ../../../node_modules/axios/lib/helpers/isAxiosError.js
59095
58781
  function isAxiosError(payload) {
59096
58782
  return utils_default.isObject(payload) && payload.isAxiosError === true;
59097
58783
  }
59098
58784
 
59099
- // node_modules/axios/lib/helpers/HttpStatusCode.js
58785
+ // ../../../node_modules/axios/lib/helpers/HttpStatusCode.js
59100
58786
  var HttpStatusCode = {
59101
58787
  Continue: 100,
59102
58788
  SwitchingProtocols: 101,
@@ -59167,7 +58853,7 @@ Object.entries(HttpStatusCode).forEach(([key, value]) => {
59167
58853
  });
59168
58854
  var HttpStatusCode_default = HttpStatusCode;
59169
58855
 
59170
- // node_modules/axios/lib/axios.js
58856
+ // ../../../node_modules/axios/lib/axios.js
59171
58857
  function createInstance(defaultConfig) {
59172
58858
  const context = new Axios_default(defaultConfig);
59173
58859
  const instance = bind(Axios_default.prototype.request, context);
@@ -59200,7 +58886,7 @@ axios.HttpStatusCode = HttpStatusCode_default;
59200
58886
  axios.default = axios;
59201
58887
  var axios_default = axios;
59202
58888
 
59203
- // node_modules/axios/index.js
58889
+ // ../../../node_modules/axios/index.js
59204
58890
  var {
59205
58891
  Axios: Axios2,
59206
58892
  AxiosError: AxiosError2,
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "piral-cli",
3
- "version": "1.8.3-beta.7926",
3
+ "version": "1.9.0-beta.7940",
4
4
  "description": "The standard CLI for creating and building a Piral instance or a Pilet.",
5
5
  "keywords": [
6
6
  "portal",
@@ -78,5 +78,5 @@
78
78
  "open": "^10",
79
79
  "typescript": "^5"
80
80
  },
81
- "gitHead": "0d07048816a9d439792ef1809dda10576a75044a"
81
+ "gitHead": "a8f22ef0848f0a376fe89f727339b36f4b2738b8"
82
82
  }