@salesforce/core-bundle 8.18.5 → 8.18.7
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/lib/index.js +1840 -2215
- package/package.json +3 -3
package/lib/index.js
CHANGED
|
@@ -12336,7 +12336,7 @@ var require_package2 = __commonJS({
|
|
|
12336
12336
|
"package.json"(exports2, module2) {
|
|
12337
12337
|
module2.exports = {
|
|
12338
12338
|
name: "@salesforce/core-bundle",
|
|
12339
|
-
version: "8.18.
|
|
12339
|
+
version: "8.18.7",
|
|
12340
12340
|
description: "Core libraries to interact with SFDX projects, orgs, and APIs.",
|
|
12341
12341
|
main: "lib/index",
|
|
12342
12342
|
types: "lib/index.d.ts",
|
|
@@ -12373,9 +12373,9 @@ var require_package2 = __commonJS({
|
|
|
12373
12373
|
"messageTransformer/messageTransformer.ts"
|
|
12374
12374
|
],
|
|
12375
12375
|
dependencies: {
|
|
12376
|
-
"@jsforce/jsforce-node": "^3.
|
|
12376
|
+
"@jsforce/jsforce-node": "^3.10.0",
|
|
12377
12377
|
"@salesforce/kit": "^3.2.2",
|
|
12378
|
-
"@salesforce/schemas": "^1.9.
|
|
12378
|
+
"@salesforce/schemas": "^1.9.1",
|
|
12379
12379
|
"@salesforce/ts-types": "^2.0.10",
|
|
12380
12380
|
ajv: "^8.17.1",
|
|
12381
12381
|
"change-case": "^4.1.2",
|
|
@@ -31693,1794 +31693,348 @@ var require_asynckit = __commonJS({
|
|
|
31693
31693
|
}
|
|
31694
31694
|
});
|
|
31695
31695
|
|
|
31696
|
-
// node_modules
|
|
31697
|
-
var
|
|
31698
|
-
"node_modules
|
|
31699
|
-
|
|
31700
|
-
|
|
31701
|
-
|
|
31702
|
-
|
|
31703
|
-
|
|
31696
|
+
// node_modules/es-object-atoms/index.js
|
|
31697
|
+
var require_es_object_atoms = __commonJS({
|
|
31698
|
+
"node_modules/es-object-atoms/index.js"(exports2, module2) {
|
|
31699
|
+
"use strict";
|
|
31700
|
+
module2.exports = Object;
|
|
31701
|
+
}
|
|
31702
|
+
});
|
|
31703
|
+
|
|
31704
|
+
// node_modules/es-errors/index.js
|
|
31705
|
+
var require_es_errors = __commonJS({
|
|
31706
|
+
"node_modules/es-errors/index.js"(exports2, module2) {
|
|
31707
|
+
"use strict";
|
|
31708
|
+
module2.exports = Error;
|
|
31709
|
+
}
|
|
31710
|
+
});
|
|
31711
|
+
|
|
31712
|
+
// node_modules/es-errors/eval.js
|
|
31713
|
+
var require_eval = __commonJS({
|
|
31714
|
+
"node_modules/es-errors/eval.js"(exports2, module2) {
|
|
31715
|
+
"use strict";
|
|
31716
|
+
module2.exports = EvalError;
|
|
31717
|
+
}
|
|
31718
|
+
});
|
|
31719
|
+
|
|
31720
|
+
// node_modules/es-errors/range.js
|
|
31721
|
+
var require_range2 = __commonJS({
|
|
31722
|
+
"node_modules/es-errors/range.js"(exports2, module2) {
|
|
31723
|
+
"use strict";
|
|
31724
|
+
module2.exports = RangeError;
|
|
31725
|
+
}
|
|
31726
|
+
});
|
|
31727
|
+
|
|
31728
|
+
// node_modules/es-errors/ref.js
|
|
31729
|
+
var require_ref = __commonJS({
|
|
31730
|
+
"node_modules/es-errors/ref.js"(exports2, module2) {
|
|
31731
|
+
"use strict";
|
|
31732
|
+
module2.exports = ReferenceError;
|
|
31733
|
+
}
|
|
31734
|
+
});
|
|
31735
|
+
|
|
31736
|
+
// node_modules/es-errors/syntax.js
|
|
31737
|
+
var require_syntax = __commonJS({
|
|
31738
|
+
"node_modules/es-errors/syntax.js"(exports2, module2) {
|
|
31739
|
+
"use strict";
|
|
31740
|
+
module2.exports = SyntaxError;
|
|
31741
|
+
}
|
|
31742
|
+
});
|
|
31743
|
+
|
|
31744
|
+
// node_modules/es-errors/type.js
|
|
31745
|
+
var require_type = __commonJS({
|
|
31746
|
+
"node_modules/es-errors/type.js"(exports2, module2) {
|
|
31747
|
+
"use strict";
|
|
31748
|
+
module2.exports = TypeError;
|
|
31749
|
+
}
|
|
31750
|
+
});
|
|
31751
|
+
|
|
31752
|
+
// node_modules/es-errors/uri.js
|
|
31753
|
+
var require_uri = __commonJS({
|
|
31754
|
+
"node_modules/es-errors/uri.js"(exports2, module2) {
|
|
31755
|
+
"use strict";
|
|
31756
|
+
module2.exports = URIError;
|
|
31757
|
+
}
|
|
31758
|
+
});
|
|
31759
|
+
|
|
31760
|
+
// node_modules/math-intrinsics/abs.js
|
|
31761
|
+
var require_abs = __commonJS({
|
|
31762
|
+
"node_modules/math-intrinsics/abs.js"(exports2, module2) {
|
|
31763
|
+
"use strict";
|
|
31764
|
+
module2.exports = Math.abs;
|
|
31765
|
+
}
|
|
31766
|
+
});
|
|
31767
|
+
|
|
31768
|
+
// node_modules/math-intrinsics/floor.js
|
|
31769
|
+
var require_floor = __commonJS({
|
|
31770
|
+
"node_modules/math-intrinsics/floor.js"(exports2, module2) {
|
|
31771
|
+
"use strict";
|
|
31772
|
+
module2.exports = Math.floor;
|
|
31773
|
+
}
|
|
31774
|
+
});
|
|
31775
|
+
|
|
31776
|
+
// node_modules/math-intrinsics/max.js
|
|
31777
|
+
var require_max = __commonJS({
|
|
31778
|
+
"node_modules/math-intrinsics/max.js"(exports2, module2) {
|
|
31779
|
+
"use strict";
|
|
31780
|
+
module2.exports = Math.max;
|
|
31781
|
+
}
|
|
31782
|
+
});
|
|
31783
|
+
|
|
31784
|
+
// node_modules/math-intrinsics/min.js
|
|
31785
|
+
var require_min = __commonJS({
|
|
31786
|
+
"node_modules/math-intrinsics/min.js"(exports2, module2) {
|
|
31787
|
+
"use strict";
|
|
31788
|
+
module2.exports = Math.min;
|
|
31789
|
+
}
|
|
31790
|
+
});
|
|
31791
|
+
|
|
31792
|
+
// node_modules/math-intrinsics/pow.js
|
|
31793
|
+
var require_pow = __commonJS({
|
|
31794
|
+
"node_modules/math-intrinsics/pow.js"(exports2, module2) {
|
|
31795
|
+
"use strict";
|
|
31796
|
+
module2.exports = Math.pow;
|
|
31797
|
+
}
|
|
31798
|
+
});
|
|
31799
|
+
|
|
31800
|
+
// node_modules/math-intrinsics/round.js
|
|
31801
|
+
var require_round = __commonJS({
|
|
31802
|
+
"node_modules/math-intrinsics/round.js"(exports2, module2) {
|
|
31803
|
+
"use strict";
|
|
31804
|
+
module2.exports = Math.round;
|
|
31805
|
+
}
|
|
31806
|
+
});
|
|
31807
|
+
|
|
31808
|
+
// node_modules/math-intrinsics/isNaN.js
|
|
31809
|
+
var require_isNaN = __commonJS({
|
|
31810
|
+
"node_modules/math-intrinsics/isNaN.js"(exports2, module2) {
|
|
31811
|
+
"use strict";
|
|
31812
|
+
module2.exports = Number.isNaN || function isNaN2(a) {
|
|
31813
|
+
return a !== a;
|
|
31704
31814
|
};
|
|
31705
31815
|
}
|
|
31706
31816
|
});
|
|
31707
31817
|
|
|
31708
|
-
// node_modules
|
|
31709
|
-
var
|
|
31710
|
-
"node_modules
|
|
31711
|
-
|
|
31712
|
-
var
|
|
31713
|
-
|
|
31714
|
-
|
|
31715
|
-
|
|
31716
|
-
var parseUrl = require("url").parse;
|
|
31717
|
-
var fs = require("fs");
|
|
31718
|
-
var Stream = require("stream").Stream;
|
|
31719
|
-
var mime = require_mime_types();
|
|
31720
|
-
var asynckit = require_asynckit();
|
|
31721
|
-
var populate = require_populate();
|
|
31722
|
-
module2.exports = FormData2;
|
|
31723
|
-
util.inherits(FormData2, CombinedStream);
|
|
31724
|
-
function FormData2(options) {
|
|
31725
|
-
if (!(this instanceof FormData2)) {
|
|
31726
|
-
return new FormData2(options);
|
|
31818
|
+
// node_modules/math-intrinsics/sign.js
|
|
31819
|
+
var require_sign = __commonJS({
|
|
31820
|
+
"node_modules/math-intrinsics/sign.js"(exports2, module2) {
|
|
31821
|
+
"use strict";
|
|
31822
|
+
var $isNaN = require_isNaN();
|
|
31823
|
+
module2.exports = function sign(number) {
|
|
31824
|
+
if ($isNaN(number) || number === 0) {
|
|
31825
|
+
return number;
|
|
31727
31826
|
}
|
|
31728
|
-
|
|
31729
|
-
|
|
31730
|
-
|
|
31731
|
-
|
|
31732
|
-
|
|
31733
|
-
|
|
31734
|
-
|
|
31827
|
+
return number < 0 ? -1 : 1;
|
|
31828
|
+
};
|
|
31829
|
+
}
|
|
31830
|
+
});
|
|
31831
|
+
|
|
31832
|
+
// node_modules/gopd/gOPD.js
|
|
31833
|
+
var require_gOPD = __commonJS({
|
|
31834
|
+
"node_modules/gopd/gOPD.js"(exports2, module2) {
|
|
31835
|
+
"use strict";
|
|
31836
|
+
module2.exports = Object.getOwnPropertyDescriptor;
|
|
31837
|
+
}
|
|
31838
|
+
});
|
|
31839
|
+
|
|
31840
|
+
// node_modules/gopd/index.js
|
|
31841
|
+
var require_gopd = __commonJS({
|
|
31842
|
+
"node_modules/gopd/index.js"(exports2, module2) {
|
|
31843
|
+
"use strict";
|
|
31844
|
+
var $gOPD = require_gOPD();
|
|
31845
|
+
if ($gOPD) {
|
|
31846
|
+
try {
|
|
31847
|
+
$gOPD([], "length");
|
|
31848
|
+
} catch (e) {
|
|
31849
|
+
$gOPD = null;
|
|
31735
31850
|
}
|
|
31736
31851
|
}
|
|
31737
|
-
|
|
31738
|
-
|
|
31739
|
-
|
|
31740
|
-
|
|
31741
|
-
|
|
31742
|
-
|
|
31852
|
+
module2.exports = $gOPD;
|
|
31853
|
+
}
|
|
31854
|
+
});
|
|
31855
|
+
|
|
31856
|
+
// node_modules/es-define-property/index.js
|
|
31857
|
+
var require_es_define_property = __commonJS({
|
|
31858
|
+
"node_modules/es-define-property/index.js"(exports2, module2) {
|
|
31859
|
+
"use strict";
|
|
31860
|
+
var $defineProperty = Object.defineProperty || false;
|
|
31861
|
+
if ($defineProperty) {
|
|
31862
|
+
try {
|
|
31863
|
+
$defineProperty({}, "a", { value: 1 });
|
|
31864
|
+
} catch (e) {
|
|
31865
|
+
$defineProperty = false;
|
|
31743
31866
|
}
|
|
31744
|
-
|
|
31745
|
-
|
|
31746
|
-
|
|
31867
|
+
}
|
|
31868
|
+
module2.exports = $defineProperty;
|
|
31869
|
+
}
|
|
31870
|
+
});
|
|
31871
|
+
|
|
31872
|
+
// node_modules/has-symbols/shams.js
|
|
31873
|
+
var require_shams = __commonJS({
|
|
31874
|
+
"node_modules/has-symbols/shams.js"(exports2, module2) {
|
|
31875
|
+
"use strict";
|
|
31876
|
+
module2.exports = function hasSymbols() {
|
|
31877
|
+
if (typeof Symbol !== "function" || typeof Object.getOwnPropertySymbols !== "function") {
|
|
31878
|
+
return false;
|
|
31747
31879
|
}
|
|
31748
|
-
if (
|
|
31749
|
-
|
|
31750
|
-
return;
|
|
31880
|
+
if (typeof Symbol.iterator === "symbol") {
|
|
31881
|
+
return true;
|
|
31751
31882
|
}
|
|
31752
|
-
var
|
|
31753
|
-
var
|
|
31754
|
-
|
|
31755
|
-
|
|
31756
|
-
|
|
31757
|
-
this._trackLength(header, value, options);
|
|
31758
|
-
};
|
|
31759
|
-
FormData2.prototype._trackLength = function(header, value, options) {
|
|
31760
|
-
var valueLength = 0;
|
|
31761
|
-
if (options.knownLength != null) {
|
|
31762
|
-
valueLength += +options.knownLength;
|
|
31763
|
-
} else if (Buffer.isBuffer(value)) {
|
|
31764
|
-
valueLength = value.length;
|
|
31765
|
-
} else if (typeof value === "string") {
|
|
31766
|
-
valueLength = Buffer.byteLength(value);
|
|
31883
|
+
var obj = {};
|
|
31884
|
+
var sym = Symbol("test");
|
|
31885
|
+
var symObj = Object(sym);
|
|
31886
|
+
if (typeof sym === "string") {
|
|
31887
|
+
return false;
|
|
31767
31888
|
}
|
|
31768
|
-
|
|
31769
|
-
|
|
31770
|
-
if (!value || !value.path && !(value.readable && value.hasOwnProperty("httpVersion")) && !(value instanceof Stream)) {
|
|
31771
|
-
return;
|
|
31889
|
+
if (Object.prototype.toString.call(sym) !== "[object Symbol]") {
|
|
31890
|
+
return false;
|
|
31772
31891
|
}
|
|
31773
|
-
if (
|
|
31774
|
-
|
|
31892
|
+
if (Object.prototype.toString.call(symObj) !== "[object Symbol]") {
|
|
31893
|
+
return false;
|
|
31775
31894
|
}
|
|
31776
|
-
|
|
31777
|
-
|
|
31778
|
-
|
|
31779
|
-
|
|
31780
|
-
callback(null, value.end + 1 - (value.start ? value.start : 0));
|
|
31781
|
-
} else {
|
|
31782
|
-
fs.stat(value.path, function(err, stat) {
|
|
31783
|
-
var fileSize;
|
|
31784
|
-
if (err) {
|
|
31785
|
-
callback(err);
|
|
31786
|
-
return;
|
|
31787
|
-
}
|
|
31788
|
-
fileSize = stat.size - (value.start ? value.start : 0);
|
|
31789
|
-
callback(null, fileSize);
|
|
31790
|
-
});
|
|
31791
|
-
}
|
|
31792
|
-
} else if (value.hasOwnProperty("httpVersion")) {
|
|
31793
|
-
callback(null, +value.headers["content-length"]);
|
|
31794
|
-
} else if (value.hasOwnProperty("httpModule")) {
|
|
31795
|
-
value.on("response", function(response) {
|
|
31796
|
-
value.pause();
|
|
31797
|
-
callback(null, +response.headers["content-length"]);
|
|
31798
|
-
});
|
|
31799
|
-
value.resume();
|
|
31800
|
-
} else {
|
|
31801
|
-
callback("Unknown stream");
|
|
31895
|
+
var symVal = 42;
|
|
31896
|
+
obj[sym] = symVal;
|
|
31897
|
+
for (var _ in obj) {
|
|
31898
|
+
return false;
|
|
31802
31899
|
}
|
|
31803
|
-
|
|
31804
|
-
|
|
31805
|
-
if (typeof options.header == "string") {
|
|
31806
|
-
return options.header;
|
|
31900
|
+
if (typeof Object.keys === "function" && Object.keys(obj).length !== 0) {
|
|
31901
|
+
return false;
|
|
31807
31902
|
}
|
|
31808
|
-
|
|
31809
|
-
|
|
31810
|
-
var contents = "";
|
|
31811
|
-
var headers = {
|
|
31812
|
-
// add custom disposition as third element or keep it two elements if not
|
|
31813
|
-
"Content-Disposition": ["form-data", 'name="' + field + '"'].concat(contentDisposition || []),
|
|
31814
|
-
// if no content type. allow it to be empty array
|
|
31815
|
-
"Content-Type": [].concat(contentType || [])
|
|
31816
|
-
};
|
|
31817
|
-
if (typeof options.header == "object") {
|
|
31818
|
-
populate(headers, options.header);
|
|
31903
|
+
if (typeof Object.getOwnPropertyNames === "function" && Object.getOwnPropertyNames(obj).length !== 0) {
|
|
31904
|
+
return false;
|
|
31819
31905
|
}
|
|
31820
|
-
var
|
|
31821
|
-
|
|
31822
|
-
|
|
31823
|
-
header = headers[prop];
|
|
31824
|
-
if (header == null) {
|
|
31825
|
-
continue;
|
|
31826
|
-
}
|
|
31827
|
-
if (!Array.isArray(header)) {
|
|
31828
|
-
header = [header];
|
|
31829
|
-
}
|
|
31830
|
-
if (header.length) {
|
|
31831
|
-
contents += prop + ": " + header.join("; ") + FormData2.LINE_BREAK;
|
|
31832
|
-
}
|
|
31906
|
+
var syms = Object.getOwnPropertySymbols(obj);
|
|
31907
|
+
if (syms.length !== 1 || syms[0] !== sym) {
|
|
31908
|
+
return false;
|
|
31833
31909
|
}
|
|
31834
|
-
|
|
31835
|
-
|
|
31836
|
-
FormData2.prototype._getContentDisposition = function(value, options) {
|
|
31837
|
-
var filename, contentDisposition;
|
|
31838
|
-
if (typeof options.filepath === "string") {
|
|
31839
|
-
filename = path.normalize(options.filepath).replace(/\\/g, "/");
|
|
31840
|
-
} else if (options.filename || value.name || value.path) {
|
|
31841
|
-
filename = path.basename(options.filename || value.name || value.path);
|
|
31842
|
-
} else if (value.readable && value.hasOwnProperty("httpVersion")) {
|
|
31843
|
-
filename = path.basename(value.client._httpMessage.path || "");
|
|
31910
|
+
if (!Object.prototype.propertyIsEnumerable.call(obj, sym)) {
|
|
31911
|
+
return false;
|
|
31844
31912
|
}
|
|
31845
|
-
if (
|
|
31846
|
-
|
|
31913
|
+
if (typeof Object.getOwnPropertyDescriptor === "function") {
|
|
31914
|
+
var descriptor = (
|
|
31915
|
+
/** @type {PropertyDescriptor} */
|
|
31916
|
+
Object.getOwnPropertyDescriptor(obj, sym)
|
|
31917
|
+
);
|
|
31918
|
+
if (descriptor.value !== symVal || descriptor.enumerable !== true) {
|
|
31919
|
+
return false;
|
|
31920
|
+
}
|
|
31847
31921
|
}
|
|
31848
|
-
return
|
|
31922
|
+
return true;
|
|
31849
31923
|
};
|
|
31850
|
-
|
|
31851
|
-
|
|
31852
|
-
|
|
31853
|
-
|
|
31854
|
-
|
|
31855
|
-
|
|
31856
|
-
|
|
31857
|
-
|
|
31858
|
-
|
|
31859
|
-
|
|
31860
|
-
|
|
31861
|
-
|
|
31862
|
-
contentType = mime.lookup(options.filepath || options.filename);
|
|
31924
|
+
}
|
|
31925
|
+
});
|
|
31926
|
+
|
|
31927
|
+
// node_modules/has-symbols/index.js
|
|
31928
|
+
var require_has_symbols = __commonJS({
|
|
31929
|
+
"node_modules/has-symbols/index.js"(exports2, module2) {
|
|
31930
|
+
"use strict";
|
|
31931
|
+
var origSymbol = typeof Symbol !== "undefined" && Symbol;
|
|
31932
|
+
var hasSymbolSham = require_shams();
|
|
31933
|
+
module2.exports = function hasNativeSymbols() {
|
|
31934
|
+
if (typeof origSymbol !== "function") {
|
|
31935
|
+
return false;
|
|
31863
31936
|
}
|
|
31864
|
-
if (
|
|
31865
|
-
|
|
31937
|
+
if (typeof Symbol !== "function") {
|
|
31938
|
+
return false;
|
|
31866
31939
|
}
|
|
31867
|
-
|
|
31868
|
-
|
|
31869
|
-
FormData2.prototype._multiPartFooter = function() {
|
|
31870
|
-
return function(next) {
|
|
31871
|
-
var footer = FormData2.LINE_BREAK;
|
|
31872
|
-
var lastPart = this._streams.length === 0;
|
|
31873
|
-
if (lastPart) {
|
|
31874
|
-
footer += this._lastBoundary();
|
|
31875
|
-
}
|
|
31876
|
-
next(footer);
|
|
31877
|
-
}.bind(this);
|
|
31878
|
-
};
|
|
31879
|
-
FormData2.prototype._lastBoundary = function() {
|
|
31880
|
-
return "--" + this.getBoundary() + "--" + FormData2.LINE_BREAK;
|
|
31881
|
-
};
|
|
31882
|
-
FormData2.prototype.getHeaders = function(userHeaders) {
|
|
31883
|
-
var header;
|
|
31884
|
-
var formHeaders = {
|
|
31885
|
-
"content-type": "multipart/form-data; boundary=" + this.getBoundary()
|
|
31886
|
-
};
|
|
31887
|
-
for (header in userHeaders) {
|
|
31888
|
-
if (userHeaders.hasOwnProperty(header)) {
|
|
31889
|
-
formHeaders[header.toLowerCase()] = userHeaders[header];
|
|
31890
|
-
}
|
|
31940
|
+
if (typeof origSymbol("foo") !== "symbol") {
|
|
31941
|
+
return false;
|
|
31891
31942
|
}
|
|
31892
|
-
|
|
31893
|
-
|
|
31894
|
-
FormData2.prototype.setBoundary = function(boundary) {
|
|
31895
|
-
this._boundary = boundary;
|
|
31896
|
-
};
|
|
31897
|
-
FormData2.prototype.getBoundary = function() {
|
|
31898
|
-
if (!this._boundary) {
|
|
31899
|
-
this._generateBoundary();
|
|
31943
|
+
if (typeof Symbol("bar") !== "symbol") {
|
|
31944
|
+
return false;
|
|
31900
31945
|
}
|
|
31901
|
-
return
|
|
31946
|
+
return hasSymbolSham();
|
|
31902
31947
|
};
|
|
31903
|
-
|
|
31904
|
-
|
|
31905
|
-
|
|
31906
|
-
|
|
31907
|
-
|
|
31908
|
-
|
|
31909
|
-
|
|
31910
|
-
|
|
31911
|
-
|
|
31912
|
-
|
|
31913
|
-
|
|
31914
|
-
|
|
31915
|
-
|
|
31916
|
-
|
|
31948
|
+
}
|
|
31949
|
+
});
|
|
31950
|
+
|
|
31951
|
+
// node_modules/get-proto/Reflect.getPrototypeOf.js
|
|
31952
|
+
var require_Reflect_getPrototypeOf = __commonJS({
|
|
31953
|
+
"node_modules/get-proto/Reflect.getPrototypeOf.js"(exports2, module2) {
|
|
31954
|
+
"use strict";
|
|
31955
|
+
module2.exports = typeof Reflect !== "undefined" && Reflect.getPrototypeOf || null;
|
|
31956
|
+
}
|
|
31957
|
+
});
|
|
31958
|
+
|
|
31959
|
+
// node_modules/get-proto/Object.getPrototypeOf.js
|
|
31960
|
+
var require_Object_getPrototypeOf = __commonJS({
|
|
31961
|
+
"node_modules/get-proto/Object.getPrototypeOf.js"(exports2, module2) {
|
|
31962
|
+
"use strict";
|
|
31963
|
+
var $Object = require_es_object_atoms();
|
|
31964
|
+
module2.exports = $Object.getPrototypeOf || null;
|
|
31965
|
+
}
|
|
31966
|
+
});
|
|
31967
|
+
|
|
31968
|
+
// node_modules/function-bind/implementation.js
|
|
31969
|
+
var require_implementation = __commonJS({
|
|
31970
|
+
"node_modules/function-bind/implementation.js"(exports2, module2) {
|
|
31971
|
+
"use strict";
|
|
31972
|
+
var ERROR_MESSAGE = "Function.prototype.bind called on incompatible ";
|
|
31973
|
+
var toStr = Object.prototype.toString;
|
|
31974
|
+
var max = Math.max;
|
|
31975
|
+
var funcType = "[object Function]";
|
|
31976
|
+
var concatty = function concatty2(a, b) {
|
|
31977
|
+
var arr = [];
|
|
31978
|
+
for (var i = 0; i < a.length; i += 1) {
|
|
31979
|
+
arr[i] = a[i];
|
|
31917
31980
|
}
|
|
31918
|
-
|
|
31919
|
-
|
|
31920
|
-
FormData2.prototype._generateBoundary = function() {
|
|
31921
|
-
var boundary = "--------------------------";
|
|
31922
|
-
for (var i = 0; i < 24; i++) {
|
|
31923
|
-
boundary += Math.floor(Math.random() * 10).toString(16);
|
|
31981
|
+
for (var j = 0; j < b.length; j += 1) {
|
|
31982
|
+
arr[j + a.length] = b[j];
|
|
31924
31983
|
}
|
|
31925
|
-
|
|
31984
|
+
return arr;
|
|
31926
31985
|
};
|
|
31927
|
-
|
|
31928
|
-
var
|
|
31929
|
-
|
|
31930
|
-
|
|
31931
|
-
}
|
|
31932
|
-
if (!this.hasKnownLength()) {
|
|
31933
|
-
this._error(new Error("Cannot calculate proper length in synchronous way."));
|
|
31986
|
+
var slicy = function slicy2(arrLike, offset) {
|
|
31987
|
+
var arr = [];
|
|
31988
|
+
for (var i = offset || 0, j = 0; i < arrLike.length; i += 1, j += 1) {
|
|
31989
|
+
arr[j] = arrLike[i];
|
|
31934
31990
|
}
|
|
31935
|
-
return
|
|
31991
|
+
return arr;
|
|
31936
31992
|
};
|
|
31937
|
-
|
|
31938
|
-
var
|
|
31939
|
-
|
|
31940
|
-
|
|
31993
|
+
var joiny = function(arr, joiner) {
|
|
31994
|
+
var str = "";
|
|
31995
|
+
for (var i = 0; i < arr.length; i += 1) {
|
|
31996
|
+
str += arr[i];
|
|
31997
|
+
if (i + 1 < arr.length) {
|
|
31998
|
+
str += joiner;
|
|
31999
|
+
}
|
|
31941
32000
|
}
|
|
31942
|
-
return
|
|
32001
|
+
return str;
|
|
31943
32002
|
};
|
|
31944
|
-
|
|
31945
|
-
var
|
|
31946
|
-
if (
|
|
31947
|
-
|
|
31948
|
-
}
|
|
31949
|
-
if (!this._valuesToMeasure.length) {
|
|
31950
|
-
process.nextTick(cb.bind(this, null, knownLength));
|
|
31951
|
-
return;
|
|
32003
|
+
module2.exports = function bind(that) {
|
|
32004
|
+
var target = this;
|
|
32005
|
+
if (typeof target !== "function" || toStr.apply(target) !== funcType) {
|
|
32006
|
+
throw new TypeError(ERROR_MESSAGE + target);
|
|
31952
32007
|
}
|
|
31953
|
-
|
|
31954
|
-
|
|
31955
|
-
|
|
31956
|
-
|
|
31957
|
-
|
|
31958
|
-
|
|
31959
|
-
|
|
31960
|
-
|
|
31961
|
-
|
|
31962
|
-
|
|
31963
|
-
|
|
31964
|
-
|
|
31965
|
-
var request, options, defaults = { method: "post" };
|
|
31966
|
-
if (typeof params == "string") {
|
|
31967
|
-
params = parseUrl(params);
|
|
31968
|
-
options = populate({
|
|
31969
|
-
port: params.port,
|
|
31970
|
-
path: params.pathname,
|
|
31971
|
-
host: params.hostname,
|
|
31972
|
-
protocol: params.protocol
|
|
31973
|
-
}, defaults);
|
|
31974
|
-
} else {
|
|
31975
|
-
options = populate(params, defaults);
|
|
31976
|
-
if (!options.port) {
|
|
31977
|
-
options.port = options.protocol == "https:" ? 443 : 80;
|
|
32008
|
+
var args = slicy(arguments, 1);
|
|
32009
|
+
var bound;
|
|
32010
|
+
var binder = function() {
|
|
32011
|
+
if (this instanceof bound) {
|
|
32012
|
+
var result = target.apply(
|
|
32013
|
+
this,
|
|
32014
|
+
concatty(args, arguments)
|
|
32015
|
+
);
|
|
32016
|
+
if (Object(result) === result) {
|
|
32017
|
+
return result;
|
|
32018
|
+
}
|
|
32019
|
+
return this;
|
|
31978
32020
|
}
|
|
32021
|
+
return target.apply(
|
|
32022
|
+
that,
|
|
32023
|
+
concatty(args, arguments)
|
|
32024
|
+
);
|
|
32025
|
+
};
|
|
32026
|
+
var boundLength = max(0, target.length - args.length);
|
|
32027
|
+
var boundArgs = [];
|
|
32028
|
+
for (var i = 0; i < boundLength; i++) {
|
|
32029
|
+
boundArgs[i] = "$" + i;
|
|
31979
32030
|
}
|
|
31980
|
-
|
|
31981
|
-
if (
|
|
31982
|
-
|
|
31983
|
-
|
|
31984
|
-
|
|
31985
|
-
|
|
31986
|
-
|
|
31987
|
-
if (err && err !== "Unknown stream") {
|
|
31988
|
-
this._error(err);
|
|
31989
|
-
return;
|
|
31990
|
-
}
|
|
31991
|
-
if (length) {
|
|
31992
|
-
request.setHeader("Content-Length", length);
|
|
31993
|
-
}
|
|
31994
|
-
this.pipe(request);
|
|
31995
|
-
if (cb) {
|
|
31996
|
-
var onResponse;
|
|
31997
|
-
var callback = function(error, responce) {
|
|
31998
|
-
request.removeListener("error", callback);
|
|
31999
|
-
request.removeListener("response", onResponse);
|
|
32000
|
-
return cb.call(this, error, responce);
|
|
32001
|
-
};
|
|
32002
|
-
onResponse = callback.bind(this, null);
|
|
32003
|
-
request.on("error", callback);
|
|
32004
|
-
request.on("response", onResponse);
|
|
32005
|
-
}
|
|
32006
|
-
}.bind(this));
|
|
32007
|
-
return request;
|
|
32008
|
-
};
|
|
32009
|
-
FormData2.prototype._error = function(err) {
|
|
32010
|
-
if (!this.error) {
|
|
32011
|
-
this.error = err;
|
|
32012
|
-
this.pause();
|
|
32013
|
-
this.emit("error", err);
|
|
32014
|
-
}
|
|
32015
|
-
};
|
|
32016
|
-
FormData2.prototype.toString = function() {
|
|
32017
|
-
return "[object FormData]";
|
|
32018
|
-
};
|
|
32019
|
-
}
|
|
32020
|
-
});
|
|
32021
|
-
|
|
32022
|
-
// node_modules/@jsforce/jsforce-node/lib/request-helper.js
|
|
32023
|
-
var require_request_helper = __commonJS({
|
|
32024
|
-
"node_modules/@jsforce/jsforce-node/lib/request-helper.js"(exports2) {
|
|
32025
|
-
"use strict";
|
|
32026
|
-
var __importDefault3 = exports2 && exports2.__importDefault || function(mod) {
|
|
32027
|
-
return mod && mod.__esModule ? mod : { "default": mod };
|
|
32028
|
-
};
|
|
32029
|
-
Object.defineProperty(exports2, "__esModule", { value: true });
|
|
32030
|
-
exports2.executeWithTimeout = exports2.performRedirectRequest = exports2.isRedirect = exports2.createHttpRequestHandlerStreams = void 0;
|
|
32031
|
-
var stream_1 = require("stream");
|
|
32032
|
-
var stream_2 = require_stream();
|
|
32033
|
-
var form_data_1 = __importDefault3(require_form_data());
|
|
32034
|
-
function createHttpRequestHandlerStreams(req, options = {}) {
|
|
32035
|
-
const { body: reqBody } = req;
|
|
32036
|
-
const input = new stream_1.PassThrough();
|
|
32037
|
-
const output = new stream_1.PassThrough();
|
|
32038
|
-
const duplex = (0, stream_2.concatStreamsAsDuplex)(input, output);
|
|
32039
|
-
if (typeof reqBody !== "undefined") {
|
|
32040
|
-
setTimeout(() => {
|
|
32041
|
-
if (reqBody instanceof form_data_1.default) {
|
|
32042
|
-
duplex.end(reqBody.getBuffer());
|
|
32043
|
-
} else {
|
|
32044
|
-
duplex.end(reqBody, "utf8");
|
|
32045
|
-
}
|
|
32046
|
-
}, 0);
|
|
32047
|
-
}
|
|
32048
|
-
duplex.on("response", async (res) => {
|
|
32049
|
-
if (duplex.listenerCount("complete") > 0) {
|
|
32050
|
-
const resBody = await (0, stream_2.readAll)(duplex, options.encoding);
|
|
32051
|
-
duplex.emit("complete", {
|
|
32052
|
-
...res,
|
|
32053
|
-
body: resBody
|
|
32054
|
-
});
|
|
32055
|
-
}
|
|
32056
|
-
});
|
|
32057
|
-
return { input, output, stream: duplex };
|
|
32058
|
-
}
|
|
32059
|
-
exports2.createHttpRequestHandlerStreams = createHttpRequestHandlerStreams;
|
|
32060
|
-
var redirectStatuses = /* @__PURE__ */ new Set([301, 302, 303, 307, 308]);
|
|
32061
|
-
function isRedirect(status) {
|
|
32062
|
-
return redirectStatuses.has(status);
|
|
32063
|
-
}
|
|
32064
|
-
exports2.isRedirect = isRedirect;
|
|
32065
|
-
var MAX_REDIRECT_COUNT = 10;
|
|
32066
|
-
function performRedirectRequest(req, res, followRedirect, counter, redirectCallback) {
|
|
32067
|
-
if (counter >= MAX_REDIRECT_COUNT) {
|
|
32068
|
-
throw new Error("Reached to maximum redirect count");
|
|
32069
|
-
}
|
|
32070
|
-
const redirectUrl = res.headers["location"];
|
|
32071
|
-
if (!redirectUrl) {
|
|
32072
|
-
throw new Error("No redirect URI found");
|
|
32073
|
-
}
|
|
32074
|
-
const getRedirectRequest = typeof followRedirect === "function" ? followRedirect : () => ({
|
|
32075
|
-
method: "GET",
|
|
32076
|
-
url: redirectUrl,
|
|
32077
|
-
headers: req.headers
|
|
32078
|
-
});
|
|
32079
|
-
const nextReqParams = getRedirectRequest(redirectUrl);
|
|
32080
|
-
if (!nextReqParams) {
|
|
32081
|
-
throw new Error("Cannot handle redirect for " + redirectUrl);
|
|
32082
|
-
}
|
|
32083
|
-
redirectCallback(nextReqParams);
|
|
32084
|
-
}
|
|
32085
|
-
exports2.performRedirectRequest = performRedirectRequest;
|
|
32086
|
-
async function executeWithTimeout(execFn, msec, cancelCallback) {
|
|
32087
|
-
let timeout = false;
|
|
32088
|
-
const pid = msec != null ? setTimeout(() => {
|
|
32089
|
-
timeout = true;
|
|
32090
|
-
cancelCallback?.();
|
|
32091
|
-
}, msec) : void 0;
|
|
32092
|
-
let res;
|
|
32093
|
-
try {
|
|
32094
|
-
res = await execFn();
|
|
32095
|
-
} finally {
|
|
32096
|
-
if (pid) {
|
|
32097
|
-
clearTimeout(pid);
|
|
32098
|
-
}
|
|
32099
|
-
}
|
|
32100
|
-
if (timeout) {
|
|
32101
|
-
throw new Error("Request Timeout");
|
|
32102
|
-
}
|
|
32103
|
-
return res;
|
|
32104
|
-
}
|
|
32105
|
-
exports2.executeWithTimeout = executeWithTimeout;
|
|
32106
|
-
}
|
|
32107
|
-
});
|
|
32108
|
-
|
|
32109
|
-
// node_modules/@jsforce/jsforce-node/lib/util/logger.js
|
|
32110
|
-
var require_logger2 = __commonJS({
|
|
32111
|
-
"node_modules/@jsforce/jsforce-node/lib/util/logger.js"(exports2) {
|
|
32112
|
-
"use strict";
|
|
32113
|
-
Object.defineProperty(exports2, "__esModule", { value: true });
|
|
32114
|
-
exports2.getLogger = exports2.Logger = exports2.LogLevels = void 0;
|
|
32115
|
-
exports2.LogLevels = {
|
|
32116
|
-
DEBUG: 1,
|
|
32117
|
-
INFO: 2,
|
|
32118
|
-
WARN: 3,
|
|
32119
|
-
ERROR: 4,
|
|
32120
|
-
FATAL: 5,
|
|
32121
|
-
NONE: 6
|
|
32122
|
-
};
|
|
32123
|
-
var LogLevelLabels = ["", "DEBUG", "INFO", "WARN", "ERROR", "FATAL", "NONE"];
|
|
32124
|
-
var globalLogLevelConfig = (() => {
|
|
32125
|
-
const globalLogLevelStr = process.env.JSFORCE_LOG_LEVEL || global.__JSFORCE_LOG_LEVEL__ || "NONE";
|
|
32126
|
-
if (/^(DEBUG|INFO|WARN|ERROR|FATAL|NONE)$/i.test(globalLogLevelStr)) {
|
|
32127
|
-
return { "*": globalLogLevelStr };
|
|
32128
|
-
}
|
|
32129
|
-
try {
|
|
32130
|
-
return JSON.parse(globalLogLevelStr);
|
|
32131
|
-
} catch (e) {
|
|
32132
|
-
return { "*": "NONE" };
|
|
32133
|
-
}
|
|
32134
|
-
})();
|
|
32135
|
-
function getModuleLogLevel(logLevelConfig, moduleName) {
|
|
32136
|
-
const logLevel = logLevelConfig[moduleName] || logLevelConfig["*"];
|
|
32137
|
-
return typeof logLevel === "number" ? logLevel : exports2.LogLevels[logLevel] || exports2.LogLevels.NONE;
|
|
32138
|
-
}
|
|
32139
|
-
var Logger = class _Logger {
|
|
32140
|
-
_moduleName;
|
|
32141
|
-
_logLevel;
|
|
32142
|
-
constructor(moduleName, logLevelConfig = globalLogLevelConfig) {
|
|
32143
|
-
this._moduleName = moduleName;
|
|
32144
|
-
this._logLevel = typeof logLevelConfig === "number" ? logLevelConfig : typeof logLevelConfig === "string" ? exports2.LogLevels[logLevelConfig] || exports2.LogLevels.NONE : getModuleLogLevel(logLevelConfig, moduleName);
|
|
32145
|
-
}
|
|
32146
|
-
createInstance(logLevelConfig = this._logLevel) {
|
|
32147
|
-
return new _Logger(this._moduleName, logLevelConfig);
|
|
32148
|
-
}
|
|
32149
|
-
setLogLevel(logLevel) {
|
|
32150
|
-
if (typeof logLevel === "string") {
|
|
32151
|
-
this._logLevel = exports2.LogLevels[logLevel] || exports2.LogLevels.NONE;
|
|
32152
|
-
} else {
|
|
32153
|
-
this._logLevel = logLevel;
|
|
32154
|
-
}
|
|
32155
|
-
}
|
|
32156
|
-
log(logLevel, ...messages) {
|
|
32157
|
-
if (this._logLevel <= logLevel) {
|
|
32158
|
-
const msgs = [
|
|
32159
|
-
`${LogLevelLabels[logLevel]} [${this._moduleName}] `,
|
|
32160
|
-
...messages
|
|
32161
|
-
];
|
|
32162
|
-
if (logLevel < exports2.LogLevels.ERROR) {
|
|
32163
|
-
console.log(...msgs);
|
|
32164
|
-
} else {
|
|
32165
|
-
console.error(...msgs);
|
|
32166
|
-
}
|
|
32167
|
-
}
|
|
32168
|
-
}
|
|
32169
|
-
debug(...messages) {
|
|
32170
|
-
this.log(exports2.LogLevels.DEBUG, ...messages);
|
|
32171
|
-
}
|
|
32172
|
-
info(...messages) {
|
|
32173
|
-
this.log(exports2.LogLevels.INFO, ...messages);
|
|
32174
|
-
}
|
|
32175
|
-
warn(...messages) {
|
|
32176
|
-
this.log(exports2.LogLevels.WARN, ...messages);
|
|
32177
|
-
}
|
|
32178
|
-
error(...messages) {
|
|
32179
|
-
this.log(exports2.LogLevels.ERROR, ...messages);
|
|
32180
|
-
}
|
|
32181
|
-
fatal(...messages) {
|
|
32182
|
-
this.log(exports2.LogLevels.FATAL, ...messages);
|
|
32183
|
-
}
|
|
32184
|
-
};
|
|
32185
|
-
exports2.Logger = Logger;
|
|
32186
|
-
var loggers = {};
|
|
32187
|
-
function getLogger(moduleName) {
|
|
32188
|
-
const logger = loggers[moduleName] || new Logger(moduleName);
|
|
32189
|
-
loggers[moduleName] = logger;
|
|
32190
|
-
return logger;
|
|
32191
|
-
}
|
|
32192
|
-
exports2.getLogger = getLogger;
|
|
32193
|
-
}
|
|
32194
|
-
});
|
|
32195
|
-
|
|
32196
|
-
// node_modules/@sindresorhus/is/dist/index.js
|
|
32197
|
-
var require_dist17 = __commonJS({
|
|
32198
|
-
"node_modules/@sindresorhus/is/dist/index.js"(exports2, module2) {
|
|
32199
|
-
"use strict";
|
|
32200
|
-
Object.defineProperty(exports2, "__esModule", { value: true });
|
|
32201
|
-
var typedArrayTypeNames = [
|
|
32202
|
-
"Int8Array",
|
|
32203
|
-
"Uint8Array",
|
|
32204
|
-
"Uint8ClampedArray",
|
|
32205
|
-
"Int16Array",
|
|
32206
|
-
"Uint16Array",
|
|
32207
|
-
"Int32Array",
|
|
32208
|
-
"Uint32Array",
|
|
32209
|
-
"Float32Array",
|
|
32210
|
-
"Float64Array",
|
|
32211
|
-
"BigInt64Array",
|
|
32212
|
-
"BigUint64Array"
|
|
32213
|
-
];
|
|
32214
|
-
function isTypedArrayName(name) {
|
|
32215
|
-
return typedArrayTypeNames.includes(name);
|
|
32216
|
-
}
|
|
32217
|
-
var objectTypeNames = [
|
|
32218
|
-
"Function",
|
|
32219
|
-
"Generator",
|
|
32220
|
-
"AsyncGenerator",
|
|
32221
|
-
"GeneratorFunction",
|
|
32222
|
-
"AsyncGeneratorFunction",
|
|
32223
|
-
"AsyncFunction",
|
|
32224
|
-
"Observable",
|
|
32225
|
-
"Array",
|
|
32226
|
-
"Buffer",
|
|
32227
|
-
"Blob",
|
|
32228
|
-
"Object",
|
|
32229
|
-
"RegExp",
|
|
32230
|
-
"Date",
|
|
32231
|
-
"Error",
|
|
32232
|
-
"Map",
|
|
32233
|
-
"Set",
|
|
32234
|
-
"WeakMap",
|
|
32235
|
-
"WeakSet",
|
|
32236
|
-
"ArrayBuffer",
|
|
32237
|
-
"SharedArrayBuffer",
|
|
32238
|
-
"DataView",
|
|
32239
|
-
"Promise",
|
|
32240
|
-
"URL",
|
|
32241
|
-
"FormData",
|
|
32242
|
-
"URLSearchParams",
|
|
32243
|
-
"HTMLElement",
|
|
32244
|
-
...typedArrayTypeNames
|
|
32245
|
-
];
|
|
32246
|
-
function isObjectTypeName(name) {
|
|
32247
|
-
return objectTypeNames.includes(name);
|
|
32248
|
-
}
|
|
32249
|
-
var primitiveTypeNames = [
|
|
32250
|
-
"null",
|
|
32251
|
-
"undefined",
|
|
32252
|
-
"string",
|
|
32253
|
-
"number",
|
|
32254
|
-
"bigint",
|
|
32255
|
-
"boolean",
|
|
32256
|
-
"symbol"
|
|
32257
|
-
];
|
|
32258
|
-
function isPrimitiveTypeName(name) {
|
|
32259
|
-
return primitiveTypeNames.includes(name);
|
|
32260
|
-
}
|
|
32261
|
-
function isOfType(type2) {
|
|
32262
|
-
return (value) => typeof value === type2;
|
|
32263
|
-
}
|
|
32264
|
-
var { toString } = Object.prototype;
|
|
32265
|
-
var getObjectType = (value) => {
|
|
32266
|
-
const objectTypeName = toString.call(value).slice(8, -1);
|
|
32267
|
-
if (/HTML\w+Element/.test(objectTypeName) && is.domElement(value)) {
|
|
32268
|
-
return "HTMLElement";
|
|
32269
|
-
}
|
|
32270
|
-
if (isObjectTypeName(objectTypeName)) {
|
|
32271
|
-
return objectTypeName;
|
|
32272
|
-
}
|
|
32273
|
-
return void 0;
|
|
32274
|
-
};
|
|
32275
|
-
var isObjectOfType = (type2) => (value) => getObjectType(value) === type2;
|
|
32276
|
-
function is(value) {
|
|
32277
|
-
if (value === null) {
|
|
32278
|
-
return "null";
|
|
32279
|
-
}
|
|
32280
|
-
switch (typeof value) {
|
|
32281
|
-
case "undefined":
|
|
32282
|
-
return "undefined";
|
|
32283
|
-
case "string":
|
|
32284
|
-
return "string";
|
|
32285
|
-
case "number":
|
|
32286
|
-
return "number";
|
|
32287
|
-
case "boolean":
|
|
32288
|
-
return "boolean";
|
|
32289
|
-
case "function":
|
|
32290
|
-
return "Function";
|
|
32291
|
-
case "bigint":
|
|
32292
|
-
return "bigint";
|
|
32293
|
-
case "symbol":
|
|
32294
|
-
return "symbol";
|
|
32295
|
-
default:
|
|
32296
|
-
}
|
|
32297
|
-
if (is.observable(value)) {
|
|
32298
|
-
return "Observable";
|
|
32299
|
-
}
|
|
32300
|
-
if (is.array(value)) {
|
|
32301
|
-
return "Array";
|
|
32302
|
-
}
|
|
32303
|
-
if (is.buffer(value)) {
|
|
32304
|
-
return "Buffer";
|
|
32305
|
-
}
|
|
32306
|
-
const tagType = getObjectType(value);
|
|
32307
|
-
if (tagType) {
|
|
32308
|
-
return tagType;
|
|
32309
|
-
}
|
|
32310
|
-
if (value instanceof String || value instanceof Boolean || value instanceof Number) {
|
|
32311
|
-
throw new TypeError("Please don't use object wrappers for primitive types");
|
|
32312
|
-
}
|
|
32313
|
-
return "Object";
|
|
32314
|
-
}
|
|
32315
|
-
is.undefined = isOfType("undefined");
|
|
32316
|
-
is.string = isOfType("string");
|
|
32317
|
-
var isNumberType = isOfType("number");
|
|
32318
|
-
is.number = (value) => isNumberType(value) && !is.nan(value);
|
|
32319
|
-
is.bigint = isOfType("bigint");
|
|
32320
|
-
is.function_ = isOfType("function");
|
|
32321
|
-
is.null_ = (value) => value === null;
|
|
32322
|
-
is.class_ = (value) => is.function_(value) && value.toString().startsWith("class ");
|
|
32323
|
-
is.boolean = (value) => value === true || value === false;
|
|
32324
|
-
is.symbol = isOfType("symbol");
|
|
32325
|
-
is.numericString = (value) => is.string(value) && !is.emptyStringOrWhitespace(value) && !Number.isNaN(Number(value));
|
|
32326
|
-
is.array = (value, assertion) => {
|
|
32327
|
-
if (!Array.isArray(value)) {
|
|
32328
|
-
return false;
|
|
32329
|
-
}
|
|
32330
|
-
if (!is.function_(assertion)) {
|
|
32331
|
-
return true;
|
|
32332
|
-
}
|
|
32333
|
-
return value.every(assertion);
|
|
32334
|
-
};
|
|
32335
|
-
is.buffer = (value) => {
|
|
32336
|
-
var _a, _b, _c, _d;
|
|
32337
|
-
return (_d = (_c = (_b = (_a = value) === null || _a === void 0 ? void 0 : _a.constructor) === null || _b === void 0 ? void 0 : _b.isBuffer) === null || _c === void 0 ? void 0 : _c.call(_b, value)) !== null && _d !== void 0 ? _d : false;
|
|
32338
|
-
};
|
|
32339
|
-
is.blob = (value) => isObjectOfType("Blob")(value);
|
|
32340
|
-
is.nullOrUndefined = (value) => is.null_(value) || is.undefined(value);
|
|
32341
|
-
is.object = (value) => !is.null_(value) && (typeof value === "object" || is.function_(value));
|
|
32342
|
-
is.iterable = (value) => {
|
|
32343
|
-
var _a;
|
|
32344
|
-
return is.function_((_a = value) === null || _a === void 0 ? void 0 : _a[Symbol.iterator]);
|
|
32345
|
-
};
|
|
32346
|
-
is.asyncIterable = (value) => {
|
|
32347
|
-
var _a;
|
|
32348
|
-
return is.function_((_a = value) === null || _a === void 0 ? void 0 : _a[Symbol.asyncIterator]);
|
|
32349
|
-
};
|
|
32350
|
-
is.generator = (value) => {
|
|
32351
|
-
var _a, _b;
|
|
32352
|
-
return is.iterable(value) && is.function_((_a = value) === null || _a === void 0 ? void 0 : _a.next) && is.function_((_b = value) === null || _b === void 0 ? void 0 : _b.throw);
|
|
32353
|
-
};
|
|
32354
|
-
is.asyncGenerator = (value) => is.asyncIterable(value) && is.function_(value.next) && is.function_(value.throw);
|
|
32355
|
-
is.nativePromise = (value) => isObjectOfType("Promise")(value);
|
|
32356
|
-
var hasPromiseAPI = (value) => {
|
|
32357
|
-
var _a, _b;
|
|
32358
|
-
return is.function_((_a = value) === null || _a === void 0 ? void 0 : _a.then) && is.function_((_b = value) === null || _b === void 0 ? void 0 : _b.catch);
|
|
32359
|
-
};
|
|
32360
|
-
is.promise = (value) => is.nativePromise(value) || hasPromiseAPI(value);
|
|
32361
|
-
is.generatorFunction = isObjectOfType("GeneratorFunction");
|
|
32362
|
-
is.asyncGeneratorFunction = (value) => getObjectType(value) === "AsyncGeneratorFunction";
|
|
32363
|
-
is.asyncFunction = (value) => getObjectType(value) === "AsyncFunction";
|
|
32364
|
-
is.boundFunction = (value) => is.function_(value) && !value.hasOwnProperty("prototype");
|
|
32365
|
-
is.regExp = isObjectOfType("RegExp");
|
|
32366
|
-
is.date = isObjectOfType("Date");
|
|
32367
|
-
is.error = isObjectOfType("Error");
|
|
32368
|
-
is.map = (value) => isObjectOfType("Map")(value);
|
|
32369
|
-
is.set = (value) => isObjectOfType("Set")(value);
|
|
32370
|
-
is.weakMap = (value) => isObjectOfType("WeakMap")(value);
|
|
32371
|
-
is.weakSet = (value) => isObjectOfType("WeakSet")(value);
|
|
32372
|
-
is.int8Array = isObjectOfType("Int8Array");
|
|
32373
|
-
is.uint8Array = isObjectOfType("Uint8Array");
|
|
32374
|
-
is.uint8ClampedArray = isObjectOfType("Uint8ClampedArray");
|
|
32375
|
-
is.int16Array = isObjectOfType("Int16Array");
|
|
32376
|
-
is.uint16Array = isObjectOfType("Uint16Array");
|
|
32377
|
-
is.int32Array = isObjectOfType("Int32Array");
|
|
32378
|
-
is.uint32Array = isObjectOfType("Uint32Array");
|
|
32379
|
-
is.float32Array = isObjectOfType("Float32Array");
|
|
32380
|
-
is.float64Array = isObjectOfType("Float64Array");
|
|
32381
|
-
is.bigInt64Array = isObjectOfType("BigInt64Array");
|
|
32382
|
-
is.bigUint64Array = isObjectOfType("BigUint64Array");
|
|
32383
|
-
is.arrayBuffer = isObjectOfType("ArrayBuffer");
|
|
32384
|
-
is.sharedArrayBuffer = isObjectOfType("SharedArrayBuffer");
|
|
32385
|
-
is.dataView = isObjectOfType("DataView");
|
|
32386
|
-
is.enumCase = (value, targetEnum) => Object.values(targetEnum).includes(value);
|
|
32387
|
-
is.directInstanceOf = (instance, class_) => Object.getPrototypeOf(instance) === class_.prototype;
|
|
32388
|
-
is.urlInstance = (value) => isObjectOfType("URL")(value);
|
|
32389
|
-
is.urlString = (value) => {
|
|
32390
|
-
if (!is.string(value)) {
|
|
32391
|
-
return false;
|
|
32392
|
-
}
|
|
32393
|
-
try {
|
|
32394
|
-
new URL(value);
|
|
32395
|
-
return true;
|
|
32396
|
-
} catch (_a) {
|
|
32397
|
-
return false;
|
|
32398
|
-
}
|
|
32399
|
-
};
|
|
32400
|
-
is.truthy = (value) => Boolean(value);
|
|
32401
|
-
is.falsy = (value) => !value;
|
|
32402
|
-
is.nan = (value) => Number.isNaN(value);
|
|
32403
|
-
is.primitive = (value) => is.null_(value) || isPrimitiveTypeName(typeof value);
|
|
32404
|
-
is.integer = (value) => Number.isInteger(value);
|
|
32405
|
-
is.safeInteger = (value) => Number.isSafeInteger(value);
|
|
32406
|
-
is.plainObject = (value) => {
|
|
32407
|
-
if (toString.call(value) !== "[object Object]") {
|
|
32408
|
-
return false;
|
|
32409
|
-
}
|
|
32410
|
-
const prototype = Object.getPrototypeOf(value);
|
|
32411
|
-
return prototype === null || prototype === Object.getPrototypeOf({});
|
|
32412
|
-
};
|
|
32413
|
-
is.typedArray = (value) => isTypedArrayName(getObjectType(value));
|
|
32414
|
-
var isValidLength = (value) => is.safeInteger(value) && value >= 0;
|
|
32415
|
-
is.arrayLike = (value) => !is.nullOrUndefined(value) && !is.function_(value) && isValidLength(value.length);
|
|
32416
|
-
is.inRange = (value, range) => {
|
|
32417
|
-
if (is.number(range)) {
|
|
32418
|
-
return value >= Math.min(0, range) && value <= Math.max(range, 0);
|
|
32419
|
-
}
|
|
32420
|
-
if (is.array(range) && range.length === 2) {
|
|
32421
|
-
return value >= Math.min(...range) && value <= Math.max(...range);
|
|
32422
|
-
}
|
|
32423
|
-
throw new TypeError(`Invalid range: ${JSON.stringify(range)}`);
|
|
32424
|
-
};
|
|
32425
|
-
var NODE_TYPE_ELEMENT = 1;
|
|
32426
|
-
var DOM_PROPERTIES_TO_CHECK = [
|
|
32427
|
-
"innerHTML",
|
|
32428
|
-
"ownerDocument",
|
|
32429
|
-
"style",
|
|
32430
|
-
"attributes",
|
|
32431
|
-
"nodeValue"
|
|
32432
|
-
];
|
|
32433
|
-
is.domElement = (value) => {
|
|
32434
|
-
return is.object(value) && value.nodeType === NODE_TYPE_ELEMENT && is.string(value.nodeName) && !is.plainObject(value) && DOM_PROPERTIES_TO_CHECK.every((property) => property in value);
|
|
32435
|
-
};
|
|
32436
|
-
is.observable = (value) => {
|
|
32437
|
-
var _a, _b, _c, _d;
|
|
32438
|
-
if (!value) {
|
|
32439
|
-
return false;
|
|
32440
|
-
}
|
|
32441
|
-
if (value === ((_b = (_a = value)[Symbol.observable]) === null || _b === void 0 ? void 0 : _b.call(_a))) {
|
|
32442
|
-
return true;
|
|
32443
|
-
}
|
|
32444
|
-
if (value === ((_d = (_c = value)["@@observable"]) === null || _d === void 0 ? void 0 : _d.call(_c))) {
|
|
32445
|
-
return true;
|
|
32446
|
-
}
|
|
32447
|
-
return false;
|
|
32448
|
-
};
|
|
32449
|
-
is.nodeStream = (value) => is.object(value) && is.function_(value.pipe) && !is.observable(value);
|
|
32450
|
-
is.infinite = (value) => value === Infinity || value === -Infinity;
|
|
32451
|
-
var isAbsoluteMod2 = (remainder) => (value) => is.integer(value) && Math.abs(value % 2) === remainder;
|
|
32452
|
-
is.evenInteger = isAbsoluteMod2(0);
|
|
32453
|
-
is.oddInteger = isAbsoluteMod2(1);
|
|
32454
|
-
is.emptyArray = (value) => is.array(value) && value.length === 0;
|
|
32455
|
-
is.nonEmptyArray = (value) => is.array(value) && value.length > 0;
|
|
32456
|
-
is.emptyString = (value) => is.string(value) && value.length === 0;
|
|
32457
|
-
var isWhiteSpaceString = (value) => is.string(value) && !/\S/.test(value);
|
|
32458
|
-
is.emptyStringOrWhitespace = (value) => is.emptyString(value) || isWhiteSpaceString(value);
|
|
32459
|
-
is.nonEmptyString = (value) => is.string(value) && value.length > 0;
|
|
32460
|
-
is.nonEmptyStringAndNotWhitespace = (value) => is.string(value) && !is.emptyStringOrWhitespace(value);
|
|
32461
|
-
is.emptyObject = (value) => is.object(value) && !is.map(value) && !is.set(value) && Object.keys(value).length === 0;
|
|
32462
|
-
is.nonEmptyObject = (value) => is.object(value) && !is.map(value) && !is.set(value) && Object.keys(value).length > 0;
|
|
32463
|
-
is.emptySet = (value) => is.set(value) && value.size === 0;
|
|
32464
|
-
is.nonEmptySet = (value) => is.set(value) && value.size > 0;
|
|
32465
|
-
is.emptyMap = (value) => is.map(value) && value.size === 0;
|
|
32466
|
-
is.nonEmptyMap = (value) => is.map(value) && value.size > 0;
|
|
32467
|
-
is.propertyKey = (value) => is.any([is.string, is.number, is.symbol], value);
|
|
32468
|
-
is.formData = (value) => isObjectOfType("FormData")(value);
|
|
32469
|
-
is.urlSearchParams = (value) => isObjectOfType("URLSearchParams")(value);
|
|
32470
|
-
var predicateOnArray = (method, predicate, values) => {
|
|
32471
|
-
if (!is.function_(predicate)) {
|
|
32472
|
-
throw new TypeError(`Invalid predicate: ${JSON.stringify(predicate)}`);
|
|
32473
|
-
}
|
|
32474
|
-
if (values.length === 0) {
|
|
32475
|
-
throw new TypeError("Invalid number of values");
|
|
32476
|
-
}
|
|
32477
|
-
return method.call(values, predicate);
|
|
32478
|
-
};
|
|
32479
|
-
is.any = (predicate, ...values) => {
|
|
32480
|
-
const predicates = is.array(predicate) ? predicate : [predicate];
|
|
32481
|
-
return predicates.some((singlePredicate) => predicateOnArray(Array.prototype.some, singlePredicate, values));
|
|
32482
|
-
};
|
|
32483
|
-
is.all = (predicate, ...values) => predicateOnArray(Array.prototype.every, predicate, values);
|
|
32484
|
-
var assertType = (condition, description2, value, options = {}) => {
|
|
32485
|
-
if (!condition) {
|
|
32486
|
-
const { multipleValues } = options;
|
|
32487
|
-
const valuesMessage = multipleValues ? `received values of types ${[
|
|
32488
|
-
...new Set(value.map((singleValue) => `\`${is(singleValue)}\``))
|
|
32489
|
-
].join(", ")}` : `received value of type \`${is(value)}\``;
|
|
32490
|
-
throw new TypeError(`Expected value which is \`${description2}\`, ${valuesMessage}.`);
|
|
32491
|
-
}
|
|
32492
|
-
};
|
|
32493
|
-
exports2.assert = {
|
|
32494
|
-
// Unknowns.
|
|
32495
|
-
undefined: (value) => assertType(is.undefined(value), "undefined", value),
|
|
32496
|
-
string: (value) => assertType(is.string(value), "string", value),
|
|
32497
|
-
number: (value) => assertType(is.number(value), "number", value),
|
|
32498
|
-
bigint: (value) => assertType(is.bigint(value), "bigint", value),
|
|
32499
|
-
// eslint-disable-next-line @typescript-eslint/ban-types
|
|
32500
|
-
function_: (value) => assertType(is.function_(value), "Function", value),
|
|
32501
|
-
null_: (value) => assertType(is.null_(value), "null", value),
|
|
32502
|
-
class_: (value) => assertType(is.class_(value), "Class", value),
|
|
32503
|
-
boolean: (value) => assertType(is.boolean(value), "boolean", value),
|
|
32504
|
-
symbol: (value) => assertType(is.symbol(value), "symbol", value),
|
|
32505
|
-
numericString: (value) => assertType(is.numericString(value), "string with a number", value),
|
|
32506
|
-
array: (value, assertion) => {
|
|
32507
|
-
const assert = assertType;
|
|
32508
|
-
assert(is.array(value), "Array", value);
|
|
32509
|
-
if (assertion) {
|
|
32510
|
-
value.forEach(assertion);
|
|
32511
|
-
}
|
|
32512
|
-
},
|
|
32513
|
-
buffer: (value) => assertType(is.buffer(value), "Buffer", value),
|
|
32514
|
-
blob: (value) => assertType(is.blob(value), "Blob", value),
|
|
32515
|
-
nullOrUndefined: (value) => assertType(is.nullOrUndefined(value), "null or undefined", value),
|
|
32516
|
-
object: (value) => assertType(is.object(value), "Object", value),
|
|
32517
|
-
iterable: (value) => assertType(is.iterable(value), "Iterable", value),
|
|
32518
|
-
asyncIterable: (value) => assertType(is.asyncIterable(value), "AsyncIterable", value),
|
|
32519
|
-
generator: (value) => assertType(is.generator(value), "Generator", value),
|
|
32520
|
-
asyncGenerator: (value) => assertType(is.asyncGenerator(value), "AsyncGenerator", value),
|
|
32521
|
-
nativePromise: (value) => assertType(is.nativePromise(value), "native Promise", value),
|
|
32522
|
-
promise: (value) => assertType(is.promise(value), "Promise", value),
|
|
32523
|
-
generatorFunction: (value) => assertType(is.generatorFunction(value), "GeneratorFunction", value),
|
|
32524
|
-
asyncGeneratorFunction: (value) => assertType(is.asyncGeneratorFunction(value), "AsyncGeneratorFunction", value),
|
|
32525
|
-
// eslint-disable-next-line @typescript-eslint/ban-types
|
|
32526
|
-
asyncFunction: (value) => assertType(is.asyncFunction(value), "AsyncFunction", value),
|
|
32527
|
-
// eslint-disable-next-line @typescript-eslint/ban-types
|
|
32528
|
-
boundFunction: (value) => assertType(is.boundFunction(value), "Function", value),
|
|
32529
|
-
regExp: (value) => assertType(is.regExp(value), "RegExp", value),
|
|
32530
|
-
date: (value) => assertType(is.date(value), "Date", value),
|
|
32531
|
-
error: (value) => assertType(is.error(value), "Error", value),
|
|
32532
|
-
map: (value) => assertType(is.map(value), "Map", value),
|
|
32533
|
-
set: (value) => assertType(is.set(value), "Set", value),
|
|
32534
|
-
weakMap: (value) => assertType(is.weakMap(value), "WeakMap", value),
|
|
32535
|
-
weakSet: (value) => assertType(is.weakSet(value), "WeakSet", value),
|
|
32536
|
-
int8Array: (value) => assertType(is.int8Array(value), "Int8Array", value),
|
|
32537
|
-
uint8Array: (value) => assertType(is.uint8Array(value), "Uint8Array", value),
|
|
32538
|
-
uint8ClampedArray: (value) => assertType(is.uint8ClampedArray(value), "Uint8ClampedArray", value),
|
|
32539
|
-
int16Array: (value) => assertType(is.int16Array(value), "Int16Array", value),
|
|
32540
|
-
uint16Array: (value) => assertType(is.uint16Array(value), "Uint16Array", value),
|
|
32541
|
-
int32Array: (value) => assertType(is.int32Array(value), "Int32Array", value),
|
|
32542
|
-
uint32Array: (value) => assertType(is.uint32Array(value), "Uint32Array", value),
|
|
32543
|
-
float32Array: (value) => assertType(is.float32Array(value), "Float32Array", value),
|
|
32544
|
-
float64Array: (value) => assertType(is.float64Array(value), "Float64Array", value),
|
|
32545
|
-
bigInt64Array: (value) => assertType(is.bigInt64Array(value), "BigInt64Array", value),
|
|
32546
|
-
bigUint64Array: (value) => assertType(is.bigUint64Array(value), "BigUint64Array", value),
|
|
32547
|
-
arrayBuffer: (value) => assertType(is.arrayBuffer(value), "ArrayBuffer", value),
|
|
32548
|
-
sharedArrayBuffer: (value) => assertType(is.sharedArrayBuffer(value), "SharedArrayBuffer", value),
|
|
32549
|
-
dataView: (value) => assertType(is.dataView(value), "DataView", value),
|
|
32550
|
-
enumCase: (value, targetEnum) => assertType(is.enumCase(value, targetEnum), "EnumCase", value),
|
|
32551
|
-
urlInstance: (value) => assertType(is.urlInstance(value), "URL", value),
|
|
32552
|
-
urlString: (value) => assertType(is.urlString(value), "string with a URL", value),
|
|
32553
|
-
truthy: (value) => assertType(is.truthy(value), "truthy", value),
|
|
32554
|
-
falsy: (value) => assertType(is.falsy(value), "falsy", value),
|
|
32555
|
-
nan: (value) => assertType(is.nan(value), "NaN", value),
|
|
32556
|
-
primitive: (value) => assertType(is.primitive(value), "primitive", value),
|
|
32557
|
-
integer: (value) => assertType(is.integer(value), "integer", value),
|
|
32558
|
-
safeInteger: (value) => assertType(is.safeInteger(value), "integer", value),
|
|
32559
|
-
plainObject: (value) => assertType(is.plainObject(value), "plain object", value),
|
|
32560
|
-
typedArray: (value) => assertType(is.typedArray(value), "TypedArray", value),
|
|
32561
|
-
arrayLike: (value) => assertType(is.arrayLike(value), "array-like", value),
|
|
32562
|
-
domElement: (value) => assertType(is.domElement(value), "HTMLElement", value),
|
|
32563
|
-
observable: (value) => assertType(is.observable(value), "Observable", value),
|
|
32564
|
-
nodeStream: (value) => assertType(is.nodeStream(value), "Node.js Stream", value),
|
|
32565
|
-
infinite: (value) => assertType(is.infinite(value), "infinite number", value),
|
|
32566
|
-
emptyArray: (value) => assertType(is.emptyArray(value), "empty array", value),
|
|
32567
|
-
nonEmptyArray: (value) => assertType(is.nonEmptyArray(value), "non-empty array", value),
|
|
32568
|
-
emptyString: (value) => assertType(is.emptyString(value), "empty string", value),
|
|
32569
|
-
emptyStringOrWhitespace: (value) => assertType(is.emptyStringOrWhitespace(value), "empty string or whitespace", value),
|
|
32570
|
-
nonEmptyString: (value) => assertType(is.nonEmptyString(value), "non-empty string", value),
|
|
32571
|
-
nonEmptyStringAndNotWhitespace: (value) => assertType(is.nonEmptyStringAndNotWhitespace(value), "non-empty string and not whitespace", value),
|
|
32572
|
-
emptyObject: (value) => assertType(is.emptyObject(value), "empty object", value),
|
|
32573
|
-
nonEmptyObject: (value) => assertType(is.nonEmptyObject(value), "non-empty object", value),
|
|
32574
|
-
emptySet: (value) => assertType(is.emptySet(value), "empty set", value),
|
|
32575
|
-
nonEmptySet: (value) => assertType(is.nonEmptySet(value), "non-empty set", value),
|
|
32576
|
-
emptyMap: (value) => assertType(is.emptyMap(value), "empty map", value),
|
|
32577
|
-
nonEmptyMap: (value) => assertType(is.nonEmptyMap(value), "non-empty map", value),
|
|
32578
|
-
propertyKey: (value) => assertType(is.propertyKey(value), "PropertyKey", value),
|
|
32579
|
-
formData: (value) => assertType(is.formData(value), "FormData", value),
|
|
32580
|
-
urlSearchParams: (value) => assertType(is.urlSearchParams(value), "URLSearchParams", value),
|
|
32581
|
-
// Numbers.
|
|
32582
|
-
evenInteger: (value) => assertType(is.evenInteger(value), "even integer", value),
|
|
32583
|
-
oddInteger: (value) => assertType(is.oddInteger(value), "odd integer", value),
|
|
32584
|
-
// Two arguments.
|
|
32585
|
-
directInstanceOf: (instance, class_) => assertType(is.directInstanceOf(instance, class_), "T", instance),
|
|
32586
|
-
inRange: (value, range) => assertType(is.inRange(value, range), "in range", value),
|
|
32587
|
-
// Variadic functions.
|
|
32588
|
-
any: (predicate, ...values) => {
|
|
32589
|
-
return assertType(is.any(predicate, ...values), "predicate returns truthy for any value", values, { multipleValues: true });
|
|
32590
|
-
},
|
|
32591
|
-
all: (predicate, ...values) => assertType(is.all(predicate, ...values), "predicate returns truthy for all values", values, { multipleValues: true })
|
|
32592
|
-
};
|
|
32593
|
-
Object.defineProperties(is, {
|
|
32594
|
-
class: {
|
|
32595
|
-
value: is.class_
|
|
32596
|
-
},
|
|
32597
|
-
function: {
|
|
32598
|
-
value: is.function_
|
|
32599
|
-
},
|
|
32600
|
-
null: {
|
|
32601
|
-
value: is.null_
|
|
32602
|
-
}
|
|
32603
|
-
});
|
|
32604
|
-
Object.defineProperties(exports2.assert, {
|
|
32605
|
-
class: {
|
|
32606
|
-
value: exports2.assert.class_
|
|
32607
|
-
},
|
|
32608
|
-
function: {
|
|
32609
|
-
value: exports2.assert.function_
|
|
32610
|
-
},
|
|
32611
|
-
null: {
|
|
32612
|
-
value: exports2.assert.null_
|
|
32613
|
-
}
|
|
32614
|
-
});
|
|
32615
|
-
exports2.default = is;
|
|
32616
|
-
module2.exports = is;
|
|
32617
|
-
module2.exports.default = is;
|
|
32618
|
-
module2.exports.assert = exports2.assert;
|
|
32619
|
-
}
|
|
32620
|
-
});
|
|
32621
|
-
|
|
32622
|
-
// node_modules/@jsforce/jsforce-node/lib/request.js
|
|
32623
|
-
var require_request = __commonJS({
|
|
32624
|
-
"node_modules/@jsforce/jsforce-node/lib/request.js"(exports2) {
|
|
32625
|
-
"use strict";
|
|
32626
|
-
var __createBinding3 = exports2 && exports2.__createBinding || (Object.create ? function(o, m, k, k2) {
|
|
32627
|
-
if (k2 === void 0) k2 = k;
|
|
32628
|
-
var desc = Object.getOwnPropertyDescriptor(m, k);
|
|
32629
|
-
if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
|
|
32630
|
-
desc = { enumerable: true, get: function() {
|
|
32631
|
-
return m[k];
|
|
32632
|
-
} };
|
|
32633
|
-
}
|
|
32634
|
-
Object.defineProperty(o, k2, desc);
|
|
32635
|
-
} : function(o, m, k, k2) {
|
|
32636
|
-
if (k2 === void 0) k2 = k;
|
|
32637
|
-
o[k2] = m[k];
|
|
32638
|
-
});
|
|
32639
|
-
var __setModuleDefault2 = exports2 && exports2.__setModuleDefault || (Object.create ? function(o, v) {
|
|
32640
|
-
Object.defineProperty(o, "default", { enumerable: true, value: v });
|
|
32641
|
-
} : function(o, v) {
|
|
32642
|
-
o["default"] = v;
|
|
32643
|
-
});
|
|
32644
|
-
var __importStar2 = exports2 && exports2.__importStar || function(mod) {
|
|
32645
|
-
if (mod && mod.__esModule) return mod;
|
|
32646
|
-
var result = {};
|
|
32647
|
-
if (mod != null) {
|
|
32648
|
-
for (var k in mod) if (k !== "default" && Object.prototype.hasOwnProperty.call(mod, k)) __createBinding3(result, mod, k);
|
|
32649
|
-
}
|
|
32650
|
-
__setModuleDefault2(result, mod);
|
|
32651
|
-
return result;
|
|
32652
|
-
};
|
|
32653
|
-
var __importDefault3 = exports2 && exports2.__importDefault || function(mod) {
|
|
32654
|
-
return mod && mod.__esModule ? mod : { "default": mod };
|
|
32655
|
-
};
|
|
32656
|
-
Object.defineProperty(exports2, "__esModule", { value: true });
|
|
32657
|
-
exports2.setDefaults = void 0;
|
|
32658
|
-
var stream_1 = require("stream");
|
|
32659
|
-
var node_fetch_1 = __importStar2(require_lib4());
|
|
32660
|
-
var https_proxy_agent_1 = __importDefault3(require_dist16());
|
|
32661
|
-
var request_helper_1 = require_request_helper();
|
|
32662
|
-
var logger_12 = require_logger2();
|
|
32663
|
-
var is_1 = __importDefault3(require_dist17());
|
|
32664
|
-
var defaults = {};
|
|
32665
|
-
function setDefaults(defaults_) {
|
|
32666
|
-
defaults = defaults_;
|
|
32667
|
-
}
|
|
32668
|
-
exports2.setDefaults = setDefaults;
|
|
32669
|
-
async function startFetchRequest(request2, options, input, output, emitter, counter = 0) {
|
|
32670
|
-
const logger = (0, logger_12.getLogger)("fetch");
|
|
32671
|
-
const { httpProxy, followRedirect } = options;
|
|
32672
|
-
const agent = httpProxy ? (0, https_proxy_agent_1.default)(httpProxy) : void 0;
|
|
32673
|
-
const { url, body, ...rrequest } = request2;
|
|
32674
|
-
const controller = new AbortController();
|
|
32675
|
-
let retryCount = 0;
|
|
32676
|
-
const retryOpts = {
|
|
32677
|
-
statusCodes: options.retry?.statusCodes ?? [420, 429, 500, 502, 503, 504],
|
|
32678
|
-
maxRetries: options.retry?.maxRetries ?? 5,
|
|
32679
|
-
minTimeout: options.retry?.minTimeout ?? 500,
|
|
32680
|
-
timeoutFactor: options.retry?.timeoutFactor ?? 2,
|
|
32681
|
-
errorCodes: options.retry?.errorCodes ?? [
|
|
32682
|
-
"ECONNRESET",
|
|
32683
|
-
"ECONNREFUSED",
|
|
32684
|
-
"ENOTFOUND",
|
|
32685
|
-
"ENETDOWN",
|
|
32686
|
-
"ENETUNREACH",
|
|
32687
|
-
"EHOSTDOWN",
|
|
32688
|
-
"UND_ERR_SOCKET",
|
|
32689
|
-
"ETIMEDOUT",
|
|
32690
|
-
"EPIPE"
|
|
32691
|
-
],
|
|
32692
|
-
methods: options.retry?.methods ?? [
|
|
32693
|
-
"GET",
|
|
32694
|
-
"PUT",
|
|
32695
|
-
"HEAD",
|
|
32696
|
-
"OPTIONS",
|
|
32697
|
-
"DELETE"
|
|
32698
|
-
]
|
|
32699
|
-
};
|
|
32700
|
-
const shouldRetryRequest = (maxRetry, resOrErr) => {
|
|
32701
|
-
if (!retryOpts.methods.includes(request2.method))
|
|
32702
|
-
return false;
|
|
32703
|
-
if (resOrErr instanceof node_fetch_1.Response) {
|
|
32704
|
-
if (retryOpts.statusCodes.includes(resOrErr.status)) {
|
|
32705
|
-
if (maxRetry === retryCount) {
|
|
32706
|
-
return false;
|
|
32707
|
-
} else {
|
|
32708
|
-
return true;
|
|
32709
|
-
}
|
|
32710
|
-
}
|
|
32711
|
-
return false;
|
|
32712
|
-
} else {
|
|
32713
|
-
if (maxRetry === retryCount)
|
|
32714
|
-
return false;
|
|
32715
|
-
if (resOrErr.name != "FetchError")
|
|
32716
|
-
return false;
|
|
32717
|
-
if (is_1.default.nodeStream(body) && stream_1.Readable.isDisturbed(body)) {
|
|
32718
|
-
logger.debug("Body of type stream was read, unable to retry request.");
|
|
32719
|
-
return false;
|
|
32720
|
-
}
|
|
32721
|
-
if ("code" in resOrErr && resOrErr.code && retryOpts?.errorCodes?.includes(resOrErr.code))
|
|
32722
|
-
return true;
|
|
32723
|
-
return false;
|
|
32724
|
-
}
|
|
32725
|
-
};
|
|
32726
|
-
const fetchWithRetries = async (maxRetry = retryOpts?.maxRetries) => {
|
|
32727
|
-
const fetchOpts = {
|
|
32728
|
-
...rrequest,
|
|
32729
|
-
...input && /^(post|put|patch)$/i.test(request2.method) ? { body: input } : {},
|
|
32730
|
-
redirect: "manual",
|
|
32731
|
-
signal: controller.signal,
|
|
32732
|
-
agent
|
|
32733
|
-
};
|
|
32734
|
-
try {
|
|
32735
|
-
const res2 = await (0, node_fetch_1.default)(url, fetchOpts);
|
|
32736
|
-
if (shouldRetryRequest(retryOpts.maxRetries, res2)) {
|
|
32737
|
-
logger.debug(`retrying for the ${retryCount + 1} time`);
|
|
32738
|
-
logger.debug("reason: statusCode match");
|
|
32739
|
-
await sleep(retryCount === 0 ? retryOpts.minTimeout : retryOpts.minTimeout * retryOpts.timeoutFactor ** retryCount);
|
|
32740
|
-
emitter.emit("retry", retryCount);
|
|
32741
|
-
retryCount++;
|
|
32742
|
-
return await fetchWithRetries(maxRetry);
|
|
32743
|
-
}
|
|
32744
|
-
return res2;
|
|
32745
|
-
} catch (err) {
|
|
32746
|
-
logger.debug("Request failed");
|
|
32747
|
-
const error = err;
|
|
32748
|
-
if (error.name === "AbortError") {
|
|
32749
|
-
throw error;
|
|
32750
|
-
}
|
|
32751
|
-
if (shouldRetryRequest(retryOpts.maxRetries, error)) {
|
|
32752
|
-
logger.debug(`retrying for the ${retryCount + 1} time`);
|
|
32753
|
-
logger.debug(`Error: ${err.message}`);
|
|
32754
|
-
await sleep(retryCount === 0 ? retryOpts.minTimeout : retryOpts.minTimeout * retryOpts.timeoutFactor ** retryCount);
|
|
32755
|
-
emitter.emit("retry", retryCount);
|
|
32756
|
-
retryCount++;
|
|
32757
|
-
return fetchWithRetries(maxRetry);
|
|
32758
|
-
}
|
|
32759
|
-
logger.debug("Skipping retry...");
|
|
32760
|
-
if (maxRetry === retryCount) {
|
|
32761
|
-
throw err;
|
|
32762
|
-
} else {
|
|
32763
|
-
throw err;
|
|
32764
|
-
}
|
|
32765
|
-
}
|
|
32766
|
-
};
|
|
32767
|
-
let res;
|
|
32768
|
-
try {
|
|
32769
|
-
res = await (0, request_helper_1.executeWithTimeout)(fetchWithRetries, options.timeout, () => controller.abort());
|
|
32770
|
-
} catch (err) {
|
|
32771
|
-
emitter.emit("error", err);
|
|
32772
|
-
return;
|
|
32773
|
-
}
|
|
32774
|
-
const headers = {};
|
|
32775
|
-
for (const headerName of res.headers.keys()) {
|
|
32776
|
-
headers[headerName.toLowerCase()] = res.headers.get(headerName);
|
|
32777
|
-
}
|
|
32778
|
-
const response = {
|
|
32779
|
-
statusCode: res.status,
|
|
32780
|
-
headers
|
|
32781
|
-
};
|
|
32782
|
-
if (followRedirect && (0, request_helper_1.isRedirect)(response.statusCode)) {
|
|
32783
|
-
try {
|
|
32784
|
-
(0, request_helper_1.performRedirectRequest)(request2, response, followRedirect, counter, (req) => startFetchRequest(req, options, void 0, output, emitter, counter + 1));
|
|
32785
|
-
} catch (err) {
|
|
32786
|
-
emitter.emit("error", err);
|
|
32787
|
-
}
|
|
32788
|
-
return;
|
|
32789
|
-
}
|
|
32790
|
-
emitter.emit("response", response);
|
|
32791
|
-
res.body.pipe(output);
|
|
32792
|
-
}
|
|
32793
|
-
function request(req, options_ = {}) {
|
|
32794
|
-
const options = { ...defaults, ...options_ };
|
|
32795
|
-
const { input, output, stream } = (0, request_helper_1.createHttpRequestHandlerStreams)(req, options);
|
|
32796
|
-
startFetchRequest(req, options, input, output, stream);
|
|
32797
|
-
return stream;
|
|
32798
|
-
}
|
|
32799
|
-
exports2.default = request;
|
|
32800
|
-
var sleep = (ms) => new Promise((r) => setTimeout(r, ms));
|
|
32801
|
-
}
|
|
32802
|
-
});
|
|
32803
|
-
|
|
32804
|
-
// node_modules/@jsforce/jsforce-node/lib/util/promise.js
|
|
32805
|
-
var require_promise = __commonJS({
|
|
32806
|
-
"node_modules/@jsforce/jsforce-node/lib/util/promise.js"(exports2) {
|
|
32807
|
-
"use strict";
|
|
32808
|
-
Object.defineProperty(exports2, "__esModule", { value: true });
|
|
32809
|
-
exports2.StreamPromise = void 0;
|
|
32810
|
-
var stream_1 = require("stream");
|
|
32811
|
-
var StreamPromise = class _StreamPromise extends Promise {
|
|
32812
|
-
stream() {
|
|
32813
|
-
return new stream_1.Duplex();
|
|
32814
|
-
}
|
|
32815
|
-
static create(builder) {
|
|
32816
|
-
const { stream, promise } = builder();
|
|
32817
|
-
const streamPromise = new _StreamPromise((resolve, reject) => {
|
|
32818
|
-
promise.then(resolve, reject);
|
|
32819
|
-
});
|
|
32820
|
-
streamPromise.stream = () => stream;
|
|
32821
|
-
return streamPromise;
|
|
32822
|
-
}
|
|
32823
|
-
};
|
|
32824
|
-
exports2.StreamPromise = StreamPromise;
|
|
32825
|
-
}
|
|
32826
|
-
});
|
|
32827
|
-
|
|
32828
|
-
// node_modules/@jsforce/jsforce-node/lib/browser/jsonp.js
|
|
32829
|
-
var require_jsonp = __commonJS({
|
|
32830
|
-
"node_modules/@jsforce/jsforce-node/lib/browser/jsonp.js"(exports2) {
|
|
32831
|
-
"use strict";
|
|
32832
|
-
Object.defineProperty(exports2, "__esModule", { value: true });
|
|
32833
|
-
var stream_1 = require("stream");
|
|
32834
|
-
var _index = 0;
|
|
32835
|
-
async function processJsonpRequest(params, jsonpParam, timeout) {
|
|
32836
|
-
if (params.method.toUpperCase() !== "GET") {
|
|
32837
|
-
throw new Error("JSONP only supports GET request.");
|
|
32838
|
-
}
|
|
32839
|
-
_index += 1;
|
|
32840
|
-
const cbFuncName = `_jsforce_jsonpCallback_${_index}`;
|
|
32841
|
-
const callbacks = window;
|
|
32842
|
-
let url = params.url;
|
|
32843
|
-
url += url.indexOf("?") > 0 ? "&" : "?";
|
|
32844
|
-
url += `${jsonpParam}=${cbFuncName}`;
|
|
32845
|
-
const script = document.createElement("script");
|
|
32846
|
-
script.type = "text/javascript";
|
|
32847
|
-
script.src = url;
|
|
32848
|
-
if (document.documentElement) {
|
|
32849
|
-
document.documentElement.appendChild(script);
|
|
32850
|
-
}
|
|
32851
|
-
let pid;
|
|
32852
|
-
try {
|
|
32853
|
-
const res = await new Promise((resolve, reject) => {
|
|
32854
|
-
pid = setTimeout(() => {
|
|
32855
|
-
reject(new Error("JSONP call time out."));
|
|
32856
|
-
}, timeout);
|
|
32857
|
-
callbacks[cbFuncName] = resolve;
|
|
32858
|
-
});
|
|
32859
|
-
return {
|
|
32860
|
-
statusCode: 200,
|
|
32861
|
-
headers: { "content-type": "application/json" },
|
|
32862
|
-
body: JSON.stringify(res)
|
|
32863
|
-
};
|
|
32864
|
-
} finally {
|
|
32865
|
-
clearTimeout(pid);
|
|
32866
|
-
if (document.documentElement) {
|
|
32867
|
-
document.documentElement.removeChild(script);
|
|
32868
|
-
}
|
|
32869
|
-
delete callbacks[cbFuncName];
|
|
32870
|
-
}
|
|
32871
|
-
}
|
|
32872
|
-
function createRequest(jsonpParam = "callback", timeout = 1e4) {
|
|
32873
|
-
return (params) => {
|
|
32874
|
-
const stream = new stream_1.Transform({
|
|
32875
|
-
transform(chunk, encoding, callback) {
|
|
32876
|
-
callback();
|
|
32877
|
-
},
|
|
32878
|
-
flush() {
|
|
32879
|
-
(async () => {
|
|
32880
|
-
const response = await processJsonpRequest(params, jsonpParam, timeout);
|
|
32881
|
-
stream.emit("response", response);
|
|
32882
|
-
stream.emit("complete", response);
|
|
32883
|
-
stream.push(response.body);
|
|
32884
|
-
stream.push(null);
|
|
32885
|
-
})();
|
|
32886
|
-
}
|
|
32887
|
-
});
|
|
32888
|
-
stream.end();
|
|
32889
|
-
return stream;
|
|
32890
|
-
};
|
|
32891
|
-
}
|
|
32892
|
-
exports2.default = {
|
|
32893
|
-
supported: typeof window !== "undefined" && typeof document !== "undefined",
|
|
32894
|
-
createRequest
|
|
32895
|
-
};
|
|
32896
|
-
}
|
|
32897
|
-
});
|
|
32898
|
-
|
|
32899
|
-
// node_modules/@jsforce/jsforce-node/lib/browser/canvas.js
|
|
32900
|
-
var require_canvas = __commonJS({
|
|
32901
|
-
"node_modules/@jsforce/jsforce-node/lib/browser/canvas.js"(exports2) {
|
|
32902
|
-
"use strict";
|
|
32903
|
-
Object.defineProperty(exports2, "__esModule", { value: true });
|
|
32904
|
-
var stream_1 = require("stream");
|
|
32905
|
-
function parseHeaders(hs) {
|
|
32906
|
-
const headers = {};
|
|
32907
|
-
for (const line of hs.split(/\n/)) {
|
|
32908
|
-
const [name, value] = line.split(/\s*:\s*/);
|
|
32909
|
-
headers[name.toLowerCase()] = value;
|
|
32910
|
-
}
|
|
32911
|
-
return headers;
|
|
32912
|
-
}
|
|
32913
|
-
async function processCanvasRequest(params, signedRequest, requestBody) {
|
|
32914
|
-
const settings = {
|
|
32915
|
-
client: signedRequest.client,
|
|
32916
|
-
method: params.method,
|
|
32917
|
-
data: requestBody
|
|
32918
|
-
};
|
|
32919
|
-
const paramHeaders = params.headers;
|
|
32920
|
-
if (paramHeaders) {
|
|
32921
|
-
settings.headers = {};
|
|
32922
|
-
for (const name of Object.keys(paramHeaders)) {
|
|
32923
|
-
if (name.toLowerCase() === "content-type") {
|
|
32924
|
-
settings.contentType = paramHeaders[name];
|
|
32925
|
-
} else {
|
|
32926
|
-
settings.headers[name] = paramHeaders[name];
|
|
32927
|
-
}
|
|
32928
|
-
}
|
|
32929
|
-
}
|
|
32930
|
-
const data = await new Promise((resolve, reject) => {
|
|
32931
|
-
settings.success = resolve;
|
|
32932
|
-
settings.failure = reject;
|
|
32933
|
-
Sfdc.canvas.client.ajax(params.url, settings);
|
|
32934
|
-
});
|
|
32935
|
-
const headers = parseHeaders(data.responseHeaders);
|
|
32936
|
-
let responseBody = data.payload;
|
|
32937
|
-
if (typeof responseBody !== "string") {
|
|
32938
|
-
responseBody = JSON.stringify(responseBody);
|
|
32939
|
-
}
|
|
32940
|
-
return {
|
|
32941
|
-
statusCode: data.status,
|
|
32942
|
-
headers,
|
|
32943
|
-
body: responseBody
|
|
32944
|
-
};
|
|
32945
|
-
}
|
|
32946
|
-
function createRequest(signedRequest) {
|
|
32947
|
-
return (params) => {
|
|
32948
|
-
const buf = [];
|
|
32949
|
-
const stream = new stream_1.Transform({
|
|
32950
|
-
transform(chunk, encoding, callback) {
|
|
32951
|
-
buf.push(typeof chunk === "string" ? chunk : chunk.toString("utf8"));
|
|
32952
|
-
callback();
|
|
32953
|
-
},
|
|
32954
|
-
flush() {
|
|
32955
|
-
(async () => {
|
|
32956
|
-
const body = buf.join("");
|
|
32957
|
-
const response = await processCanvasRequest(params, signedRequest, body);
|
|
32958
|
-
stream.emit("response", response);
|
|
32959
|
-
stream.emit("complete", response);
|
|
32960
|
-
stream.push(response.body);
|
|
32961
|
-
stream.push(null);
|
|
32962
|
-
})();
|
|
32963
|
-
}
|
|
32964
|
-
});
|
|
32965
|
-
if (params.body) {
|
|
32966
|
-
stream.end(params.body);
|
|
32967
|
-
}
|
|
32968
|
-
return stream;
|
|
32969
|
-
};
|
|
32970
|
-
}
|
|
32971
|
-
exports2.default = {
|
|
32972
|
-
supported: typeof Sfdc === "object" && typeof Sfdc.canvas !== "undefined",
|
|
32973
|
-
createRequest
|
|
32974
|
-
};
|
|
32975
|
-
}
|
|
32976
|
-
});
|
|
32977
|
-
|
|
32978
|
-
// node_modules/@jsforce/jsforce-node/lib/transport.js
|
|
32979
|
-
var require_transport2 = __commonJS({
|
|
32980
|
-
"node_modules/@jsforce/jsforce-node/lib/transport.js"(exports2) {
|
|
32981
|
-
"use strict";
|
|
32982
|
-
var __createBinding3 = exports2 && exports2.__createBinding || (Object.create ? function(o, m, k, k2) {
|
|
32983
|
-
if (k2 === void 0) k2 = k;
|
|
32984
|
-
var desc = Object.getOwnPropertyDescriptor(m, k);
|
|
32985
|
-
if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
|
|
32986
|
-
desc = { enumerable: true, get: function() {
|
|
32987
|
-
return m[k];
|
|
32988
|
-
} };
|
|
32989
|
-
}
|
|
32990
|
-
Object.defineProperty(o, k2, desc);
|
|
32991
|
-
} : function(o, m, k, k2) {
|
|
32992
|
-
if (k2 === void 0) k2 = k;
|
|
32993
|
-
o[k2] = m[k];
|
|
32994
|
-
});
|
|
32995
|
-
var __setModuleDefault2 = exports2 && exports2.__setModuleDefault || (Object.create ? function(o, v) {
|
|
32996
|
-
Object.defineProperty(o, "default", { enumerable: true, value: v });
|
|
32997
|
-
} : function(o, v) {
|
|
32998
|
-
o["default"] = v;
|
|
32999
|
-
});
|
|
33000
|
-
var __importStar2 = exports2 && exports2.__importStar || function(mod) {
|
|
33001
|
-
if (mod && mod.__esModule) return mod;
|
|
33002
|
-
var result = {};
|
|
33003
|
-
if (mod != null) {
|
|
33004
|
-
for (var k in mod) if (k !== "default" && Object.prototype.hasOwnProperty.call(mod, k)) __createBinding3(result, mod, k);
|
|
33005
|
-
}
|
|
33006
|
-
__setModuleDefault2(result, mod);
|
|
33007
|
-
return result;
|
|
33008
|
-
};
|
|
33009
|
-
var __importDefault3 = exports2 && exports2.__importDefault || function(mod) {
|
|
33010
|
-
return mod && mod.__esModule ? mod : { "default": mod };
|
|
33011
|
-
};
|
|
33012
|
-
Object.defineProperty(exports2, "__esModule", { value: true });
|
|
33013
|
-
exports2.HttpProxyTransport = exports2.XdProxyTransport = exports2.CanvasTransport = exports2.JsonpTransport = exports2.Transport = void 0;
|
|
33014
|
-
var request_1 = __importStar2(require_request());
|
|
33015
|
-
var promise_1 = require_promise();
|
|
33016
|
-
var jsonp_1 = __importDefault3(require_jsonp());
|
|
33017
|
-
var canvas_1 = __importDefault3(require_canvas());
|
|
33018
|
-
function normalizeApiHost(apiHost) {
|
|
33019
|
-
const m = /(\w+)\.(visual\.force|salesforce)\.com$/.exec(apiHost);
|
|
33020
|
-
if (m) {
|
|
33021
|
-
return `${m[1]}.salesforce.com`;
|
|
33022
|
-
}
|
|
33023
|
-
return apiHost;
|
|
33024
|
-
}
|
|
33025
|
-
(0, request_1.setDefaults)({
|
|
33026
|
-
httpProxy: process.env.https_proxy ?? process.env.http_proxy ?? process.env.HTTPS_PROXY ?? process.env.HTTP_PROXY ?? void 0,
|
|
33027
|
-
timeout: process.env.HTTP_TIMEOUT ? parseInt(process.env.HTTP_TIMEOUT, 10) : void 0,
|
|
33028
|
-
followRedirect: true
|
|
33029
|
-
});
|
|
33030
|
-
var baseUrl = typeof window !== "undefined" && window.location && window.location.host ? `https://${normalizeApiHost(window.location.host)}` : process.env.LOCATION_BASE_URL || "";
|
|
33031
|
-
var Transport = class {
|
|
33032
|
-
/**
|
|
33033
|
-
*/
|
|
33034
|
-
httpRequest(req, options = {}) {
|
|
33035
|
-
return promise_1.StreamPromise.create(() => {
|
|
33036
|
-
const createStream = this.getRequestStreamCreator();
|
|
33037
|
-
const stream = createStream(req, options);
|
|
33038
|
-
const promise = new Promise((resolve, reject) => {
|
|
33039
|
-
stream.on("complete", (res) => resolve(res)).on("error", reject);
|
|
33040
|
-
});
|
|
33041
|
-
return { stream, promise };
|
|
33042
|
-
});
|
|
33043
|
-
}
|
|
33044
|
-
/**
|
|
33045
|
-
* @protected
|
|
33046
|
-
*/
|
|
33047
|
-
getRequestStreamCreator() {
|
|
33048
|
-
return request_1.default;
|
|
33049
|
-
}
|
|
33050
|
-
};
|
|
33051
|
-
exports2.Transport = Transport;
|
|
33052
|
-
var JsonpTransport = class extends Transport {
|
|
33053
|
-
static supprted = jsonp_1.default.supported;
|
|
33054
|
-
_jsonpParam;
|
|
33055
|
-
constructor(jsonpParam) {
|
|
33056
|
-
super();
|
|
33057
|
-
this._jsonpParam = jsonpParam;
|
|
33058
|
-
}
|
|
33059
|
-
getRequestStreamCreator() {
|
|
33060
|
-
const jsonpRequest = jsonp_1.default.createRequest(this._jsonpParam);
|
|
33061
|
-
return (params) => jsonpRequest(params);
|
|
33062
|
-
}
|
|
33063
|
-
};
|
|
33064
|
-
exports2.JsonpTransport = JsonpTransport;
|
|
33065
|
-
var CanvasTransport = class extends Transport {
|
|
33066
|
-
static supported = canvas_1.default.supported;
|
|
33067
|
-
_signedRequest;
|
|
33068
|
-
constructor(signedRequest) {
|
|
33069
|
-
super();
|
|
33070
|
-
this._signedRequest = signedRequest;
|
|
33071
|
-
}
|
|
33072
|
-
getRequestStreamCreator() {
|
|
33073
|
-
const canvasRequest = canvas_1.default.createRequest(this._signedRequest);
|
|
33074
|
-
return (params) => canvasRequest(params);
|
|
33075
|
-
}
|
|
33076
|
-
};
|
|
33077
|
-
exports2.CanvasTransport = CanvasTransport;
|
|
33078
|
-
function createXdProxyRequest(req, proxyUrl) {
|
|
33079
|
-
const headers = {
|
|
33080
|
-
"salesforceproxy-endpoint": req.url
|
|
33081
|
-
};
|
|
33082
|
-
if (req.headers) {
|
|
33083
|
-
for (const name of Object.keys(req.headers)) {
|
|
33084
|
-
headers[name] = req.headers[name];
|
|
33085
|
-
}
|
|
33086
|
-
}
|
|
33087
|
-
const nocache = `${Date.now()}.${String(Math.random()).substring(2)}`;
|
|
33088
|
-
return {
|
|
33089
|
-
method: req.method,
|
|
33090
|
-
url: `${proxyUrl}?${nocache}`,
|
|
33091
|
-
headers,
|
|
33092
|
-
...req.body != null ? { body: req.body } : {}
|
|
33093
|
-
};
|
|
33094
|
-
}
|
|
33095
|
-
var XdProxyTransport = class extends Transport {
|
|
33096
|
-
_xdProxyUrl;
|
|
33097
|
-
constructor(xdProxyUrl) {
|
|
33098
|
-
super();
|
|
33099
|
-
this._xdProxyUrl = xdProxyUrl;
|
|
33100
|
-
}
|
|
33101
|
-
/**
|
|
33102
|
-
* Make HTTP request via AJAX proxy
|
|
33103
|
-
*/
|
|
33104
|
-
httpRequest(req, _options = {}) {
|
|
33105
|
-
const xdProxyUrl = this._xdProxyUrl;
|
|
33106
|
-
const { url, body, ...rreq } = req;
|
|
33107
|
-
const canonicalUrl = url.startsWith("/") ? baseUrl + url : url;
|
|
33108
|
-
const xdProxyReq = createXdProxyRequest({ ...rreq, url: canonicalUrl, body }, xdProxyUrl);
|
|
33109
|
-
return super.httpRequest(xdProxyReq, {
|
|
33110
|
-
followRedirect: (redirectUrl) => createXdProxyRequest({ ...rreq, method: "GET", url: redirectUrl }, xdProxyUrl)
|
|
33111
|
-
});
|
|
33112
|
-
}
|
|
33113
|
-
};
|
|
33114
|
-
exports2.XdProxyTransport = XdProxyTransport;
|
|
33115
|
-
var HttpProxyTransport = class extends Transport {
|
|
33116
|
-
_httpProxy;
|
|
33117
|
-
constructor(httpProxy) {
|
|
33118
|
-
super();
|
|
33119
|
-
this._httpProxy = httpProxy;
|
|
33120
|
-
}
|
|
33121
|
-
/**
|
|
33122
|
-
* Make HTTP request via proxy server
|
|
33123
|
-
*/
|
|
33124
|
-
httpRequest(req, options_ = {}) {
|
|
33125
|
-
const options = { ...options_, httpProxy: this._httpProxy };
|
|
33126
|
-
return super.httpRequest(req, options);
|
|
33127
|
-
}
|
|
33128
|
-
};
|
|
33129
|
-
exports2.HttpProxyTransport = HttpProxyTransport;
|
|
33130
|
-
exports2.default = Transport;
|
|
33131
|
-
}
|
|
33132
|
-
});
|
|
33133
|
-
|
|
33134
|
-
// node_modules/es-set-tostringtag/node_modules/es-object-atoms/index.js
|
|
33135
|
-
var require_es_object_atoms = __commonJS({
|
|
33136
|
-
"node_modules/es-set-tostringtag/node_modules/es-object-atoms/index.js"(exports2, module2) {
|
|
33137
|
-
"use strict";
|
|
33138
|
-
module2.exports = Object;
|
|
33139
|
-
}
|
|
33140
|
-
});
|
|
33141
|
-
|
|
33142
|
-
// node_modules/es-errors/index.js
|
|
33143
|
-
var require_es_errors = __commonJS({
|
|
33144
|
-
"node_modules/es-errors/index.js"(exports2, module2) {
|
|
33145
|
-
"use strict";
|
|
33146
|
-
module2.exports = Error;
|
|
33147
|
-
}
|
|
33148
|
-
});
|
|
33149
|
-
|
|
33150
|
-
// node_modules/es-errors/eval.js
|
|
33151
|
-
var require_eval = __commonJS({
|
|
33152
|
-
"node_modules/es-errors/eval.js"(exports2, module2) {
|
|
33153
|
-
"use strict";
|
|
33154
|
-
module2.exports = EvalError;
|
|
33155
|
-
}
|
|
33156
|
-
});
|
|
33157
|
-
|
|
33158
|
-
// node_modules/es-errors/range.js
|
|
33159
|
-
var require_range2 = __commonJS({
|
|
33160
|
-
"node_modules/es-errors/range.js"(exports2, module2) {
|
|
33161
|
-
"use strict";
|
|
33162
|
-
module2.exports = RangeError;
|
|
33163
|
-
}
|
|
33164
|
-
});
|
|
33165
|
-
|
|
33166
|
-
// node_modules/es-errors/ref.js
|
|
33167
|
-
var require_ref = __commonJS({
|
|
33168
|
-
"node_modules/es-errors/ref.js"(exports2, module2) {
|
|
33169
|
-
"use strict";
|
|
33170
|
-
module2.exports = ReferenceError;
|
|
33171
|
-
}
|
|
33172
|
-
});
|
|
33173
|
-
|
|
33174
|
-
// node_modules/es-errors/syntax.js
|
|
33175
|
-
var require_syntax = __commonJS({
|
|
33176
|
-
"node_modules/es-errors/syntax.js"(exports2, module2) {
|
|
33177
|
-
"use strict";
|
|
33178
|
-
module2.exports = SyntaxError;
|
|
33179
|
-
}
|
|
33180
|
-
});
|
|
33181
|
-
|
|
33182
|
-
// node_modules/es-errors/type.js
|
|
33183
|
-
var require_type = __commonJS({
|
|
33184
|
-
"node_modules/es-errors/type.js"(exports2, module2) {
|
|
33185
|
-
"use strict";
|
|
33186
|
-
module2.exports = TypeError;
|
|
33187
|
-
}
|
|
33188
|
-
});
|
|
33189
|
-
|
|
33190
|
-
// node_modules/es-errors/uri.js
|
|
33191
|
-
var require_uri = __commonJS({
|
|
33192
|
-
"node_modules/es-errors/uri.js"(exports2, module2) {
|
|
33193
|
-
"use strict";
|
|
33194
|
-
module2.exports = URIError;
|
|
33195
|
-
}
|
|
33196
|
-
});
|
|
33197
|
-
|
|
33198
|
-
// node_modules/math-intrinsics/abs.js
|
|
33199
|
-
var require_abs = __commonJS({
|
|
33200
|
-
"node_modules/math-intrinsics/abs.js"(exports2, module2) {
|
|
33201
|
-
"use strict";
|
|
33202
|
-
module2.exports = Math.abs;
|
|
33203
|
-
}
|
|
33204
|
-
});
|
|
33205
|
-
|
|
33206
|
-
// node_modules/math-intrinsics/floor.js
|
|
33207
|
-
var require_floor = __commonJS({
|
|
33208
|
-
"node_modules/math-intrinsics/floor.js"(exports2, module2) {
|
|
33209
|
-
"use strict";
|
|
33210
|
-
module2.exports = Math.floor;
|
|
33211
|
-
}
|
|
33212
|
-
});
|
|
33213
|
-
|
|
33214
|
-
// node_modules/math-intrinsics/max.js
|
|
33215
|
-
var require_max = __commonJS({
|
|
33216
|
-
"node_modules/math-intrinsics/max.js"(exports2, module2) {
|
|
33217
|
-
"use strict";
|
|
33218
|
-
module2.exports = Math.max;
|
|
33219
|
-
}
|
|
33220
|
-
});
|
|
33221
|
-
|
|
33222
|
-
// node_modules/math-intrinsics/min.js
|
|
33223
|
-
var require_min = __commonJS({
|
|
33224
|
-
"node_modules/math-intrinsics/min.js"(exports2, module2) {
|
|
33225
|
-
"use strict";
|
|
33226
|
-
module2.exports = Math.min;
|
|
33227
|
-
}
|
|
33228
|
-
});
|
|
33229
|
-
|
|
33230
|
-
// node_modules/math-intrinsics/pow.js
|
|
33231
|
-
var require_pow = __commonJS({
|
|
33232
|
-
"node_modules/math-intrinsics/pow.js"(exports2, module2) {
|
|
33233
|
-
"use strict";
|
|
33234
|
-
module2.exports = Math.pow;
|
|
33235
|
-
}
|
|
33236
|
-
});
|
|
33237
|
-
|
|
33238
|
-
// node_modules/math-intrinsics/round.js
|
|
33239
|
-
var require_round = __commonJS({
|
|
33240
|
-
"node_modules/math-intrinsics/round.js"(exports2, module2) {
|
|
33241
|
-
"use strict";
|
|
33242
|
-
module2.exports = Math.round;
|
|
33243
|
-
}
|
|
33244
|
-
});
|
|
33245
|
-
|
|
33246
|
-
// node_modules/math-intrinsics/isNaN.js
|
|
33247
|
-
var require_isNaN = __commonJS({
|
|
33248
|
-
"node_modules/math-intrinsics/isNaN.js"(exports2, module2) {
|
|
33249
|
-
"use strict";
|
|
33250
|
-
module2.exports = Number.isNaN || function isNaN2(a) {
|
|
33251
|
-
return a !== a;
|
|
33252
|
-
};
|
|
33253
|
-
}
|
|
33254
|
-
});
|
|
33255
|
-
|
|
33256
|
-
// node_modules/math-intrinsics/sign.js
|
|
33257
|
-
var require_sign = __commonJS({
|
|
33258
|
-
"node_modules/math-intrinsics/sign.js"(exports2, module2) {
|
|
33259
|
-
"use strict";
|
|
33260
|
-
var $isNaN = require_isNaN();
|
|
33261
|
-
module2.exports = function sign(number) {
|
|
33262
|
-
if ($isNaN(number) || number === 0) {
|
|
33263
|
-
return number;
|
|
33264
|
-
}
|
|
33265
|
-
return number < 0 ? -1 : 1;
|
|
33266
|
-
};
|
|
33267
|
-
}
|
|
33268
|
-
});
|
|
33269
|
-
|
|
33270
|
-
// node_modules/es-set-tostringtag/node_modules/gopd/gOPD.js
|
|
33271
|
-
var require_gOPD = __commonJS({
|
|
33272
|
-
"node_modules/es-set-tostringtag/node_modules/gopd/gOPD.js"(exports2, module2) {
|
|
33273
|
-
"use strict";
|
|
33274
|
-
module2.exports = Object.getOwnPropertyDescriptor;
|
|
33275
|
-
}
|
|
33276
|
-
});
|
|
33277
|
-
|
|
33278
|
-
// node_modules/es-set-tostringtag/node_modules/gopd/index.js
|
|
33279
|
-
var require_gopd = __commonJS({
|
|
33280
|
-
"node_modules/es-set-tostringtag/node_modules/gopd/index.js"(exports2, module2) {
|
|
33281
|
-
"use strict";
|
|
33282
|
-
var $gOPD = require_gOPD();
|
|
33283
|
-
if ($gOPD) {
|
|
33284
|
-
try {
|
|
33285
|
-
$gOPD([], "length");
|
|
33286
|
-
} catch (e) {
|
|
33287
|
-
$gOPD = null;
|
|
33288
|
-
}
|
|
33289
|
-
}
|
|
33290
|
-
module2.exports = $gOPD;
|
|
33291
|
-
}
|
|
33292
|
-
});
|
|
33293
|
-
|
|
33294
|
-
// node_modules/es-set-tostringtag/node_modules/es-define-property/index.js
|
|
33295
|
-
var require_es_define_property = __commonJS({
|
|
33296
|
-
"node_modules/es-set-tostringtag/node_modules/es-define-property/index.js"(exports2, module2) {
|
|
33297
|
-
"use strict";
|
|
33298
|
-
var $defineProperty = Object.defineProperty || false;
|
|
33299
|
-
if ($defineProperty) {
|
|
33300
|
-
try {
|
|
33301
|
-
$defineProperty({}, "a", { value: 1 });
|
|
33302
|
-
} catch (e) {
|
|
33303
|
-
$defineProperty = false;
|
|
33304
|
-
}
|
|
33305
|
-
}
|
|
33306
|
-
module2.exports = $defineProperty;
|
|
33307
|
-
}
|
|
33308
|
-
});
|
|
33309
|
-
|
|
33310
|
-
// node_modules/es-set-tostringtag/node_modules/has-symbols/shams.js
|
|
33311
|
-
var require_shams = __commonJS({
|
|
33312
|
-
"node_modules/es-set-tostringtag/node_modules/has-symbols/shams.js"(exports2, module2) {
|
|
33313
|
-
"use strict";
|
|
33314
|
-
module2.exports = function hasSymbols() {
|
|
33315
|
-
if (typeof Symbol !== "function" || typeof Object.getOwnPropertySymbols !== "function") {
|
|
33316
|
-
return false;
|
|
33317
|
-
}
|
|
33318
|
-
if (typeof Symbol.iterator === "symbol") {
|
|
33319
|
-
return true;
|
|
33320
|
-
}
|
|
33321
|
-
var obj = {};
|
|
33322
|
-
var sym = Symbol("test");
|
|
33323
|
-
var symObj = Object(sym);
|
|
33324
|
-
if (typeof sym === "string") {
|
|
33325
|
-
return false;
|
|
33326
|
-
}
|
|
33327
|
-
if (Object.prototype.toString.call(sym) !== "[object Symbol]") {
|
|
33328
|
-
return false;
|
|
33329
|
-
}
|
|
33330
|
-
if (Object.prototype.toString.call(symObj) !== "[object Symbol]") {
|
|
33331
|
-
return false;
|
|
33332
|
-
}
|
|
33333
|
-
var symVal = 42;
|
|
33334
|
-
obj[sym] = symVal;
|
|
33335
|
-
for (var _ in obj) {
|
|
33336
|
-
return false;
|
|
33337
|
-
}
|
|
33338
|
-
if (typeof Object.keys === "function" && Object.keys(obj).length !== 0) {
|
|
33339
|
-
return false;
|
|
33340
|
-
}
|
|
33341
|
-
if (typeof Object.getOwnPropertyNames === "function" && Object.getOwnPropertyNames(obj).length !== 0) {
|
|
33342
|
-
return false;
|
|
33343
|
-
}
|
|
33344
|
-
var syms = Object.getOwnPropertySymbols(obj);
|
|
33345
|
-
if (syms.length !== 1 || syms[0] !== sym) {
|
|
33346
|
-
return false;
|
|
33347
|
-
}
|
|
33348
|
-
if (!Object.prototype.propertyIsEnumerable.call(obj, sym)) {
|
|
33349
|
-
return false;
|
|
33350
|
-
}
|
|
33351
|
-
if (typeof Object.getOwnPropertyDescriptor === "function") {
|
|
33352
|
-
var descriptor = (
|
|
33353
|
-
/** @type {PropertyDescriptor} */
|
|
33354
|
-
Object.getOwnPropertyDescriptor(obj, sym)
|
|
33355
|
-
);
|
|
33356
|
-
if (descriptor.value !== symVal || descriptor.enumerable !== true) {
|
|
33357
|
-
return false;
|
|
33358
|
-
}
|
|
33359
|
-
}
|
|
33360
|
-
return true;
|
|
33361
|
-
};
|
|
33362
|
-
}
|
|
33363
|
-
});
|
|
33364
|
-
|
|
33365
|
-
// node_modules/es-set-tostringtag/node_modules/has-symbols/index.js
|
|
33366
|
-
var require_has_symbols = __commonJS({
|
|
33367
|
-
"node_modules/es-set-tostringtag/node_modules/has-symbols/index.js"(exports2, module2) {
|
|
33368
|
-
"use strict";
|
|
33369
|
-
var origSymbol = typeof Symbol !== "undefined" && Symbol;
|
|
33370
|
-
var hasSymbolSham = require_shams();
|
|
33371
|
-
module2.exports = function hasNativeSymbols() {
|
|
33372
|
-
if (typeof origSymbol !== "function") {
|
|
33373
|
-
return false;
|
|
33374
|
-
}
|
|
33375
|
-
if (typeof Symbol !== "function") {
|
|
33376
|
-
return false;
|
|
33377
|
-
}
|
|
33378
|
-
if (typeof origSymbol("foo") !== "symbol") {
|
|
33379
|
-
return false;
|
|
33380
|
-
}
|
|
33381
|
-
if (typeof Symbol("bar") !== "symbol") {
|
|
33382
|
-
return false;
|
|
33383
|
-
}
|
|
33384
|
-
return hasSymbolSham();
|
|
33385
|
-
};
|
|
33386
|
-
}
|
|
33387
|
-
});
|
|
33388
|
-
|
|
33389
|
-
// node_modules/get-proto/Reflect.getPrototypeOf.js
|
|
33390
|
-
var require_Reflect_getPrototypeOf = __commonJS({
|
|
33391
|
-
"node_modules/get-proto/Reflect.getPrototypeOf.js"(exports2, module2) {
|
|
33392
|
-
"use strict";
|
|
33393
|
-
module2.exports = typeof Reflect !== "undefined" && Reflect.getPrototypeOf || null;
|
|
33394
|
-
}
|
|
33395
|
-
});
|
|
33396
|
-
|
|
33397
|
-
// node_modules/es-object-atoms/index.js
|
|
33398
|
-
var require_es_object_atoms2 = __commonJS({
|
|
33399
|
-
"node_modules/es-object-atoms/index.js"(exports2, module2) {
|
|
33400
|
-
"use strict";
|
|
33401
|
-
module2.exports = Object;
|
|
33402
|
-
}
|
|
33403
|
-
});
|
|
33404
|
-
|
|
33405
|
-
// node_modules/get-proto/Object.getPrototypeOf.js
|
|
33406
|
-
var require_Object_getPrototypeOf = __commonJS({
|
|
33407
|
-
"node_modules/get-proto/Object.getPrototypeOf.js"(exports2, module2) {
|
|
33408
|
-
"use strict";
|
|
33409
|
-
var $Object = require_es_object_atoms2();
|
|
33410
|
-
module2.exports = $Object.getPrototypeOf || null;
|
|
33411
|
-
}
|
|
33412
|
-
});
|
|
33413
|
-
|
|
33414
|
-
// node_modules/function-bind/implementation.js
|
|
33415
|
-
var require_implementation = __commonJS({
|
|
33416
|
-
"node_modules/function-bind/implementation.js"(exports2, module2) {
|
|
33417
|
-
"use strict";
|
|
33418
|
-
var ERROR_MESSAGE = "Function.prototype.bind called on incompatible ";
|
|
33419
|
-
var toStr = Object.prototype.toString;
|
|
33420
|
-
var max = Math.max;
|
|
33421
|
-
var funcType = "[object Function]";
|
|
33422
|
-
var concatty = function concatty2(a, b) {
|
|
33423
|
-
var arr = [];
|
|
33424
|
-
for (var i = 0; i < a.length; i += 1) {
|
|
33425
|
-
arr[i] = a[i];
|
|
33426
|
-
}
|
|
33427
|
-
for (var j = 0; j < b.length; j += 1) {
|
|
33428
|
-
arr[j + a.length] = b[j];
|
|
33429
|
-
}
|
|
33430
|
-
return arr;
|
|
33431
|
-
};
|
|
33432
|
-
var slicy = function slicy2(arrLike, offset) {
|
|
33433
|
-
var arr = [];
|
|
33434
|
-
for (var i = offset || 0, j = 0; i < arrLike.length; i += 1, j += 1) {
|
|
33435
|
-
arr[j] = arrLike[i];
|
|
33436
|
-
}
|
|
33437
|
-
return arr;
|
|
33438
|
-
};
|
|
33439
|
-
var joiny = function(arr, joiner) {
|
|
33440
|
-
var str = "";
|
|
33441
|
-
for (var i = 0; i < arr.length; i += 1) {
|
|
33442
|
-
str += arr[i];
|
|
33443
|
-
if (i + 1 < arr.length) {
|
|
33444
|
-
str += joiner;
|
|
33445
|
-
}
|
|
33446
|
-
}
|
|
33447
|
-
return str;
|
|
33448
|
-
};
|
|
33449
|
-
module2.exports = function bind(that) {
|
|
33450
|
-
var target = this;
|
|
33451
|
-
if (typeof target !== "function" || toStr.apply(target) !== funcType) {
|
|
33452
|
-
throw new TypeError(ERROR_MESSAGE + target);
|
|
33453
|
-
}
|
|
33454
|
-
var args = slicy(arguments, 1);
|
|
33455
|
-
var bound;
|
|
33456
|
-
var binder = function() {
|
|
33457
|
-
if (this instanceof bound) {
|
|
33458
|
-
var result = target.apply(
|
|
33459
|
-
this,
|
|
33460
|
-
concatty(args, arguments)
|
|
33461
|
-
);
|
|
33462
|
-
if (Object(result) === result) {
|
|
33463
|
-
return result;
|
|
33464
|
-
}
|
|
33465
|
-
return this;
|
|
33466
|
-
}
|
|
33467
|
-
return target.apply(
|
|
33468
|
-
that,
|
|
33469
|
-
concatty(args, arguments)
|
|
33470
|
-
);
|
|
33471
|
-
};
|
|
33472
|
-
var boundLength = max(0, target.length - args.length);
|
|
33473
|
-
var boundArgs = [];
|
|
33474
|
-
for (var i = 0; i < boundLength; i++) {
|
|
33475
|
-
boundArgs[i] = "$" + i;
|
|
33476
|
-
}
|
|
33477
|
-
bound = Function("binder", "return function (" + joiny(boundArgs, ",") + "){ return binder.apply(this,arguments); }")(binder);
|
|
33478
|
-
if (target.prototype) {
|
|
33479
|
-
var Empty = function Empty2() {
|
|
33480
|
-
};
|
|
33481
|
-
Empty.prototype = target.prototype;
|
|
33482
|
-
bound.prototype = new Empty();
|
|
33483
|
-
Empty.prototype = null;
|
|
32031
|
+
bound = Function("binder", "return function (" + joiny(boundArgs, ",") + "){ return binder.apply(this,arguments); }")(binder);
|
|
32032
|
+
if (target.prototype) {
|
|
32033
|
+
var Empty = function Empty2() {
|
|
32034
|
+
};
|
|
32035
|
+
Empty.prototype = target.prototype;
|
|
32036
|
+
bound.prototype = new Empty();
|
|
32037
|
+
Empty.prototype = null;
|
|
33484
32038
|
}
|
|
33485
32039
|
return bound;
|
|
33486
32040
|
};
|
|
@@ -33549,36 +32103,12 @@ var require_call_bind_apply_helpers = __commonJS({
|
|
|
33549
32103
|
}
|
|
33550
32104
|
});
|
|
33551
32105
|
|
|
33552
|
-
// node_modules/dunder-proto/node_modules/gopd/gOPD.js
|
|
33553
|
-
var require_gOPD2 = __commonJS({
|
|
33554
|
-
"node_modules/dunder-proto/node_modules/gopd/gOPD.js"(exports2, module2) {
|
|
33555
|
-
"use strict";
|
|
33556
|
-
module2.exports = Object.getOwnPropertyDescriptor;
|
|
33557
|
-
}
|
|
33558
|
-
});
|
|
33559
|
-
|
|
33560
|
-
// node_modules/dunder-proto/node_modules/gopd/index.js
|
|
33561
|
-
var require_gopd2 = __commonJS({
|
|
33562
|
-
"node_modules/dunder-proto/node_modules/gopd/index.js"(exports2, module2) {
|
|
33563
|
-
"use strict";
|
|
33564
|
-
var $gOPD = require_gOPD2();
|
|
33565
|
-
if ($gOPD) {
|
|
33566
|
-
try {
|
|
33567
|
-
$gOPD([], "length");
|
|
33568
|
-
} catch (e) {
|
|
33569
|
-
$gOPD = null;
|
|
33570
|
-
}
|
|
33571
|
-
}
|
|
33572
|
-
module2.exports = $gOPD;
|
|
33573
|
-
}
|
|
33574
|
-
});
|
|
33575
|
-
|
|
33576
32106
|
// node_modules/dunder-proto/get.js
|
|
33577
32107
|
var require_get2 = __commonJS({
|
|
33578
32108
|
"node_modules/dunder-proto/get.js"(exports2, module2) {
|
|
33579
32109
|
"use strict";
|
|
33580
32110
|
var callBind = require_call_bind_apply_helpers();
|
|
33581
|
-
var gOPD =
|
|
32111
|
+
var gOPD = require_gopd();
|
|
33582
32112
|
var hasProtoAccessor;
|
|
33583
32113
|
try {
|
|
33584
32114
|
hasProtoAccessor = /** @type {{ __proto__?: typeof Array.prototype }} */
|
|
@@ -33635,9 +32165,9 @@ var require_hasown = __commonJS({
|
|
|
33635
32165
|
}
|
|
33636
32166
|
});
|
|
33637
32167
|
|
|
33638
|
-
// node_modules/
|
|
32168
|
+
// node_modules/get-intrinsic/index.js
|
|
33639
32169
|
var require_get_intrinsic = __commonJS({
|
|
33640
|
-
"node_modules/
|
|
32170
|
+
"node_modules/get-intrinsic/index.js"(exports2, module2) {
|
|
33641
32171
|
"use strict";
|
|
33642
32172
|
var undefined2;
|
|
33643
32173
|
var $Object = require_es_object_atoms();
|
|
@@ -33877,519 +32407,1580 @@ var require_get_intrinsic = __commonJS({
|
|
|
33877
32407
|
$replace(string, rePropName, function(match, number, quote, subString) {
|
|
33878
32408
|
result[result.length] = quote ? $replace(subString, reEscapeChar, "$1") : number || match;
|
|
33879
32409
|
});
|
|
33880
|
-
return result;
|
|
32410
|
+
return result;
|
|
32411
|
+
};
|
|
32412
|
+
var getBaseIntrinsic = function getBaseIntrinsic2(name, allowMissing) {
|
|
32413
|
+
var intrinsicName = name;
|
|
32414
|
+
var alias;
|
|
32415
|
+
if (hasOwn(LEGACY_ALIASES, intrinsicName)) {
|
|
32416
|
+
alias = LEGACY_ALIASES[intrinsicName];
|
|
32417
|
+
intrinsicName = "%" + alias[0] + "%";
|
|
32418
|
+
}
|
|
32419
|
+
if (hasOwn(INTRINSICS, intrinsicName)) {
|
|
32420
|
+
var value = INTRINSICS[intrinsicName];
|
|
32421
|
+
if (value === needsEval) {
|
|
32422
|
+
value = doEval(intrinsicName);
|
|
32423
|
+
}
|
|
32424
|
+
if (typeof value === "undefined" && !allowMissing) {
|
|
32425
|
+
throw new $TypeError("intrinsic " + name + " exists, but is not available. Please file an issue!");
|
|
32426
|
+
}
|
|
32427
|
+
return {
|
|
32428
|
+
alias,
|
|
32429
|
+
name: intrinsicName,
|
|
32430
|
+
value
|
|
32431
|
+
};
|
|
32432
|
+
}
|
|
32433
|
+
throw new $SyntaxError("intrinsic " + name + " does not exist!");
|
|
32434
|
+
};
|
|
32435
|
+
module2.exports = function GetIntrinsic(name, allowMissing) {
|
|
32436
|
+
if (typeof name !== "string" || name.length === 0) {
|
|
32437
|
+
throw new $TypeError("intrinsic name must be a non-empty string");
|
|
32438
|
+
}
|
|
32439
|
+
if (arguments.length > 1 && typeof allowMissing !== "boolean") {
|
|
32440
|
+
throw new $TypeError('"allowMissing" argument must be a boolean');
|
|
32441
|
+
}
|
|
32442
|
+
if ($exec(/^%?[^%]*%?$/, name) === null) {
|
|
32443
|
+
throw new $SyntaxError("`%` may not be present anywhere but at the beginning and end of the intrinsic name");
|
|
32444
|
+
}
|
|
32445
|
+
var parts = stringToPath(name);
|
|
32446
|
+
var intrinsicBaseName = parts.length > 0 ? parts[0] : "";
|
|
32447
|
+
var intrinsic = getBaseIntrinsic("%" + intrinsicBaseName + "%", allowMissing);
|
|
32448
|
+
var intrinsicRealName = intrinsic.name;
|
|
32449
|
+
var value = intrinsic.value;
|
|
32450
|
+
var skipFurtherCaching = false;
|
|
32451
|
+
var alias = intrinsic.alias;
|
|
32452
|
+
if (alias) {
|
|
32453
|
+
intrinsicBaseName = alias[0];
|
|
32454
|
+
$spliceApply(parts, $concat([0, 1], alias));
|
|
32455
|
+
}
|
|
32456
|
+
for (var i = 1, isOwn = true; i < parts.length; i += 1) {
|
|
32457
|
+
var part = parts[i];
|
|
32458
|
+
var first = $strSlice(part, 0, 1);
|
|
32459
|
+
var last = $strSlice(part, -1);
|
|
32460
|
+
if ((first === '"' || first === "'" || first === "`" || (last === '"' || last === "'" || last === "`")) && first !== last) {
|
|
32461
|
+
throw new $SyntaxError("property names with quotes must have matching quotes");
|
|
32462
|
+
}
|
|
32463
|
+
if (part === "constructor" || !isOwn) {
|
|
32464
|
+
skipFurtherCaching = true;
|
|
32465
|
+
}
|
|
32466
|
+
intrinsicBaseName += "." + part;
|
|
32467
|
+
intrinsicRealName = "%" + intrinsicBaseName + "%";
|
|
32468
|
+
if (hasOwn(INTRINSICS, intrinsicRealName)) {
|
|
32469
|
+
value = INTRINSICS[intrinsicRealName];
|
|
32470
|
+
} else if (value != null) {
|
|
32471
|
+
if (!(part in value)) {
|
|
32472
|
+
if (!allowMissing) {
|
|
32473
|
+
throw new $TypeError("base intrinsic for " + name + " exists, but the property is not available.");
|
|
32474
|
+
}
|
|
32475
|
+
return void undefined2;
|
|
32476
|
+
}
|
|
32477
|
+
if ($gOPD && i + 1 >= parts.length) {
|
|
32478
|
+
var desc = $gOPD(value, part);
|
|
32479
|
+
isOwn = !!desc;
|
|
32480
|
+
if (isOwn && "get" in desc && !("originalValue" in desc.get)) {
|
|
32481
|
+
value = desc.get;
|
|
32482
|
+
} else {
|
|
32483
|
+
value = value[part];
|
|
32484
|
+
}
|
|
32485
|
+
} else {
|
|
32486
|
+
isOwn = hasOwn(value, part);
|
|
32487
|
+
value = value[part];
|
|
32488
|
+
}
|
|
32489
|
+
if (isOwn && !skipFurtherCaching) {
|
|
32490
|
+
INTRINSICS[intrinsicRealName] = value;
|
|
32491
|
+
}
|
|
32492
|
+
}
|
|
32493
|
+
}
|
|
32494
|
+
return value;
|
|
32495
|
+
};
|
|
32496
|
+
}
|
|
32497
|
+
});
|
|
32498
|
+
|
|
32499
|
+
// node_modules/has-tostringtag/shams.js
|
|
32500
|
+
var require_shams2 = __commonJS({
|
|
32501
|
+
"node_modules/has-tostringtag/shams.js"(exports2, module2) {
|
|
32502
|
+
"use strict";
|
|
32503
|
+
var hasSymbols = require_shams();
|
|
32504
|
+
module2.exports = function hasToStringTagShams() {
|
|
32505
|
+
return hasSymbols() && !!Symbol.toStringTag;
|
|
32506
|
+
};
|
|
32507
|
+
}
|
|
32508
|
+
});
|
|
32509
|
+
|
|
32510
|
+
// node_modules/es-set-tostringtag/index.js
|
|
32511
|
+
var require_es_set_tostringtag = __commonJS({
|
|
32512
|
+
"node_modules/es-set-tostringtag/index.js"(exports2, module2) {
|
|
32513
|
+
"use strict";
|
|
32514
|
+
var GetIntrinsic = require_get_intrinsic();
|
|
32515
|
+
var $defineProperty = GetIntrinsic("%Object.defineProperty%", true);
|
|
32516
|
+
var hasToStringTag = require_shams2()();
|
|
32517
|
+
var hasOwn = require_hasown();
|
|
32518
|
+
var $TypeError = require_type();
|
|
32519
|
+
var toStringTag = hasToStringTag ? Symbol.toStringTag : null;
|
|
32520
|
+
module2.exports = function setToStringTag(object, value) {
|
|
32521
|
+
var overrideIfSet = arguments.length > 2 && !!arguments[2] && arguments[2].force;
|
|
32522
|
+
var nonConfigurable = arguments.length > 2 && !!arguments[2] && arguments[2].nonConfigurable;
|
|
32523
|
+
if (typeof overrideIfSet !== "undefined" && typeof overrideIfSet !== "boolean" || typeof nonConfigurable !== "undefined" && typeof nonConfigurable !== "boolean") {
|
|
32524
|
+
throw new $TypeError("if provided, the `overrideIfSet` and `nonConfigurable` options must be booleans");
|
|
32525
|
+
}
|
|
32526
|
+
if (toStringTag && (overrideIfSet || !hasOwn(object, toStringTag))) {
|
|
32527
|
+
if ($defineProperty) {
|
|
32528
|
+
$defineProperty(object, toStringTag, {
|
|
32529
|
+
configurable: !nonConfigurable,
|
|
32530
|
+
enumerable: false,
|
|
32531
|
+
value,
|
|
32532
|
+
writable: false
|
|
32533
|
+
});
|
|
32534
|
+
} else {
|
|
32535
|
+
object[toStringTag] = value;
|
|
32536
|
+
}
|
|
32537
|
+
}
|
|
32538
|
+
};
|
|
32539
|
+
}
|
|
32540
|
+
});
|
|
32541
|
+
|
|
32542
|
+
// node_modules/form-data/lib/populate.js
|
|
32543
|
+
var require_populate = __commonJS({
|
|
32544
|
+
"node_modules/form-data/lib/populate.js"(exports2, module2) {
|
|
32545
|
+
"use strict";
|
|
32546
|
+
module2.exports = function(dst, src) {
|
|
32547
|
+
Object.keys(src).forEach(function(prop) {
|
|
32548
|
+
dst[prop] = dst[prop] || src[prop];
|
|
32549
|
+
});
|
|
32550
|
+
return dst;
|
|
32551
|
+
};
|
|
32552
|
+
}
|
|
32553
|
+
});
|
|
32554
|
+
|
|
32555
|
+
// node_modules/form-data/lib/form_data.js
|
|
32556
|
+
var require_form_data = __commonJS({
|
|
32557
|
+
"node_modules/form-data/lib/form_data.js"(exports2, module2) {
|
|
32558
|
+
"use strict";
|
|
32559
|
+
var CombinedStream = require_combined_stream();
|
|
32560
|
+
var util = require("util");
|
|
32561
|
+
var path = require("path");
|
|
32562
|
+
var http = require("http");
|
|
32563
|
+
var https = require("https");
|
|
32564
|
+
var parseUrl = require("url").parse;
|
|
32565
|
+
var fs = require("fs");
|
|
32566
|
+
var Stream = require("stream").Stream;
|
|
32567
|
+
var crypto = require("crypto");
|
|
32568
|
+
var mime = require_mime_types();
|
|
32569
|
+
var asynckit = require_asynckit();
|
|
32570
|
+
var setToStringTag = require_es_set_tostringtag();
|
|
32571
|
+
var hasOwn = require_hasown();
|
|
32572
|
+
var populate = require_populate();
|
|
32573
|
+
function FormData2(options) {
|
|
32574
|
+
if (!(this instanceof FormData2)) {
|
|
32575
|
+
return new FormData2(options);
|
|
32576
|
+
}
|
|
32577
|
+
this._overheadLength = 0;
|
|
32578
|
+
this._valueLength = 0;
|
|
32579
|
+
this._valuesToMeasure = [];
|
|
32580
|
+
CombinedStream.call(this);
|
|
32581
|
+
options = options || {};
|
|
32582
|
+
for (var option in options) {
|
|
32583
|
+
this[option] = options[option];
|
|
32584
|
+
}
|
|
32585
|
+
}
|
|
32586
|
+
util.inherits(FormData2, CombinedStream);
|
|
32587
|
+
FormData2.LINE_BREAK = "\r\n";
|
|
32588
|
+
FormData2.DEFAULT_CONTENT_TYPE = "application/octet-stream";
|
|
32589
|
+
FormData2.prototype.append = function(field, value, options) {
|
|
32590
|
+
options = options || {};
|
|
32591
|
+
if (typeof options === "string") {
|
|
32592
|
+
options = { filename: options };
|
|
32593
|
+
}
|
|
32594
|
+
var append = CombinedStream.prototype.append.bind(this);
|
|
32595
|
+
if (typeof value === "number" || value == null) {
|
|
32596
|
+
value = String(value);
|
|
32597
|
+
}
|
|
32598
|
+
if (Array.isArray(value)) {
|
|
32599
|
+
this._error(new Error("Arrays are not supported."));
|
|
32600
|
+
return;
|
|
32601
|
+
}
|
|
32602
|
+
var header = this._multiPartHeader(field, value, options);
|
|
32603
|
+
var footer = this._multiPartFooter();
|
|
32604
|
+
append(header);
|
|
32605
|
+
append(value);
|
|
32606
|
+
append(footer);
|
|
32607
|
+
this._trackLength(header, value, options);
|
|
32608
|
+
};
|
|
32609
|
+
FormData2.prototype._trackLength = function(header, value, options) {
|
|
32610
|
+
var valueLength = 0;
|
|
32611
|
+
if (options.knownLength != null) {
|
|
32612
|
+
valueLength += Number(options.knownLength);
|
|
32613
|
+
} else if (Buffer.isBuffer(value)) {
|
|
32614
|
+
valueLength = value.length;
|
|
32615
|
+
} else if (typeof value === "string") {
|
|
32616
|
+
valueLength = Buffer.byteLength(value);
|
|
32617
|
+
}
|
|
32618
|
+
this._valueLength += valueLength;
|
|
32619
|
+
this._overheadLength += Buffer.byteLength(header) + FormData2.LINE_BREAK.length;
|
|
32620
|
+
if (!value || !value.path && !(value.readable && hasOwn(value, "httpVersion")) && !(value instanceof Stream)) {
|
|
32621
|
+
return;
|
|
32622
|
+
}
|
|
32623
|
+
if (!options.knownLength) {
|
|
32624
|
+
this._valuesToMeasure.push(value);
|
|
32625
|
+
}
|
|
32626
|
+
};
|
|
32627
|
+
FormData2.prototype._lengthRetriever = function(value, callback) {
|
|
32628
|
+
if (hasOwn(value, "fd")) {
|
|
32629
|
+
if (value.end != void 0 && value.end != Infinity && value.start != void 0) {
|
|
32630
|
+
callback(null, value.end + 1 - (value.start ? value.start : 0));
|
|
32631
|
+
} else {
|
|
32632
|
+
fs.stat(value.path, function(err, stat) {
|
|
32633
|
+
if (err) {
|
|
32634
|
+
callback(err);
|
|
32635
|
+
return;
|
|
32636
|
+
}
|
|
32637
|
+
var fileSize = stat.size - (value.start ? value.start : 0);
|
|
32638
|
+
callback(null, fileSize);
|
|
32639
|
+
});
|
|
32640
|
+
}
|
|
32641
|
+
} else if (hasOwn(value, "httpVersion")) {
|
|
32642
|
+
callback(null, Number(value.headers["content-length"]));
|
|
32643
|
+
} else if (hasOwn(value, "httpModule")) {
|
|
32644
|
+
value.on("response", function(response) {
|
|
32645
|
+
value.pause();
|
|
32646
|
+
callback(null, Number(response.headers["content-length"]));
|
|
32647
|
+
});
|
|
32648
|
+
value.resume();
|
|
32649
|
+
} else {
|
|
32650
|
+
callback("Unknown stream");
|
|
32651
|
+
}
|
|
32652
|
+
};
|
|
32653
|
+
FormData2.prototype._multiPartHeader = function(field, value, options) {
|
|
32654
|
+
if (typeof options.header === "string") {
|
|
32655
|
+
return options.header;
|
|
32656
|
+
}
|
|
32657
|
+
var contentDisposition = this._getContentDisposition(value, options);
|
|
32658
|
+
var contentType = this._getContentType(value, options);
|
|
32659
|
+
var contents = "";
|
|
32660
|
+
var headers = {
|
|
32661
|
+
// add custom disposition as third element or keep it two elements if not
|
|
32662
|
+
"Content-Disposition": ["form-data", 'name="' + field + '"'].concat(contentDisposition || []),
|
|
32663
|
+
// if no content type. allow it to be empty array
|
|
32664
|
+
"Content-Type": [].concat(contentType || [])
|
|
32665
|
+
};
|
|
32666
|
+
if (typeof options.header === "object") {
|
|
32667
|
+
populate(headers, options.header);
|
|
32668
|
+
}
|
|
32669
|
+
var header;
|
|
32670
|
+
for (var prop in headers) {
|
|
32671
|
+
if (hasOwn(headers, prop)) {
|
|
32672
|
+
header = headers[prop];
|
|
32673
|
+
if (header == null) {
|
|
32674
|
+
continue;
|
|
32675
|
+
}
|
|
32676
|
+
if (!Array.isArray(header)) {
|
|
32677
|
+
header = [header];
|
|
32678
|
+
}
|
|
32679
|
+
if (header.length) {
|
|
32680
|
+
contents += prop + ": " + header.join("; ") + FormData2.LINE_BREAK;
|
|
32681
|
+
}
|
|
32682
|
+
}
|
|
32683
|
+
}
|
|
32684
|
+
return "--" + this.getBoundary() + FormData2.LINE_BREAK + contents + FormData2.LINE_BREAK;
|
|
32685
|
+
};
|
|
32686
|
+
FormData2.prototype._getContentDisposition = function(value, options) {
|
|
32687
|
+
var filename;
|
|
32688
|
+
if (typeof options.filepath === "string") {
|
|
32689
|
+
filename = path.normalize(options.filepath).replace(/\\/g, "/");
|
|
32690
|
+
} else if (options.filename || value && (value.name || value.path)) {
|
|
32691
|
+
filename = path.basename(options.filename || value && (value.name || value.path));
|
|
32692
|
+
} else if (value && value.readable && hasOwn(value, "httpVersion")) {
|
|
32693
|
+
filename = path.basename(value.client._httpMessage.path || "");
|
|
32694
|
+
}
|
|
32695
|
+
if (filename) {
|
|
32696
|
+
return 'filename="' + filename + '"';
|
|
32697
|
+
}
|
|
32698
|
+
};
|
|
32699
|
+
FormData2.prototype._getContentType = function(value, options) {
|
|
32700
|
+
var contentType = options.contentType;
|
|
32701
|
+
if (!contentType && value && value.name) {
|
|
32702
|
+
contentType = mime.lookup(value.name);
|
|
32703
|
+
}
|
|
32704
|
+
if (!contentType && value && value.path) {
|
|
32705
|
+
contentType = mime.lookup(value.path);
|
|
32706
|
+
}
|
|
32707
|
+
if (!contentType && value && value.readable && hasOwn(value, "httpVersion")) {
|
|
32708
|
+
contentType = value.headers["content-type"];
|
|
32709
|
+
}
|
|
32710
|
+
if (!contentType && (options.filepath || options.filename)) {
|
|
32711
|
+
contentType = mime.lookup(options.filepath || options.filename);
|
|
32712
|
+
}
|
|
32713
|
+
if (!contentType && value && typeof value === "object") {
|
|
32714
|
+
contentType = FormData2.DEFAULT_CONTENT_TYPE;
|
|
32715
|
+
}
|
|
32716
|
+
return contentType;
|
|
32717
|
+
};
|
|
32718
|
+
FormData2.prototype._multiPartFooter = function() {
|
|
32719
|
+
return function(next) {
|
|
32720
|
+
var footer = FormData2.LINE_BREAK;
|
|
32721
|
+
var lastPart = this._streams.length === 0;
|
|
32722
|
+
if (lastPart) {
|
|
32723
|
+
footer += this._lastBoundary();
|
|
32724
|
+
}
|
|
32725
|
+
next(footer);
|
|
32726
|
+
}.bind(this);
|
|
32727
|
+
};
|
|
32728
|
+
FormData2.prototype._lastBoundary = function() {
|
|
32729
|
+
return "--" + this.getBoundary() + "--" + FormData2.LINE_BREAK;
|
|
32730
|
+
};
|
|
32731
|
+
FormData2.prototype.getHeaders = function(userHeaders) {
|
|
32732
|
+
var header;
|
|
32733
|
+
var formHeaders = {
|
|
32734
|
+
"content-type": "multipart/form-data; boundary=" + this.getBoundary()
|
|
32735
|
+
};
|
|
32736
|
+
for (header in userHeaders) {
|
|
32737
|
+
if (hasOwn(userHeaders, header)) {
|
|
32738
|
+
formHeaders[header.toLowerCase()] = userHeaders[header];
|
|
32739
|
+
}
|
|
32740
|
+
}
|
|
32741
|
+
return formHeaders;
|
|
32742
|
+
};
|
|
32743
|
+
FormData2.prototype.setBoundary = function(boundary) {
|
|
32744
|
+
if (typeof boundary !== "string") {
|
|
32745
|
+
throw new TypeError("FormData boundary must be a string");
|
|
32746
|
+
}
|
|
32747
|
+
this._boundary = boundary;
|
|
32748
|
+
};
|
|
32749
|
+
FormData2.prototype.getBoundary = function() {
|
|
32750
|
+
if (!this._boundary) {
|
|
32751
|
+
this._generateBoundary();
|
|
32752
|
+
}
|
|
32753
|
+
return this._boundary;
|
|
32754
|
+
};
|
|
32755
|
+
FormData2.prototype.getBuffer = function() {
|
|
32756
|
+
var dataBuffer = new Buffer.alloc(0);
|
|
32757
|
+
var boundary = this.getBoundary();
|
|
32758
|
+
for (var i = 0, len = this._streams.length; i < len; i++) {
|
|
32759
|
+
if (typeof this._streams[i] !== "function") {
|
|
32760
|
+
if (Buffer.isBuffer(this._streams[i])) {
|
|
32761
|
+
dataBuffer = Buffer.concat([dataBuffer, this._streams[i]]);
|
|
32762
|
+
} else {
|
|
32763
|
+
dataBuffer = Buffer.concat([dataBuffer, Buffer.from(this._streams[i])]);
|
|
32764
|
+
}
|
|
32765
|
+
if (typeof this._streams[i] !== "string" || this._streams[i].substring(2, boundary.length + 2) !== boundary) {
|
|
32766
|
+
dataBuffer = Buffer.concat([dataBuffer, Buffer.from(FormData2.LINE_BREAK)]);
|
|
32767
|
+
}
|
|
32768
|
+
}
|
|
32769
|
+
}
|
|
32770
|
+
return Buffer.concat([dataBuffer, Buffer.from(this._lastBoundary())]);
|
|
32771
|
+
};
|
|
32772
|
+
FormData2.prototype._generateBoundary = function() {
|
|
32773
|
+
this._boundary = "--------------------------" + crypto.randomBytes(12).toString("hex");
|
|
32774
|
+
};
|
|
32775
|
+
FormData2.prototype.getLengthSync = function() {
|
|
32776
|
+
var knownLength = this._overheadLength + this._valueLength;
|
|
32777
|
+
if (this._streams.length) {
|
|
32778
|
+
knownLength += this._lastBoundary().length;
|
|
32779
|
+
}
|
|
32780
|
+
if (!this.hasKnownLength()) {
|
|
32781
|
+
this._error(new Error("Cannot calculate proper length in synchronous way."));
|
|
32782
|
+
}
|
|
32783
|
+
return knownLength;
|
|
32784
|
+
};
|
|
32785
|
+
FormData2.prototype.hasKnownLength = function() {
|
|
32786
|
+
var hasKnownLength = true;
|
|
32787
|
+
if (this._valuesToMeasure.length) {
|
|
32788
|
+
hasKnownLength = false;
|
|
32789
|
+
}
|
|
32790
|
+
return hasKnownLength;
|
|
32791
|
+
};
|
|
32792
|
+
FormData2.prototype.getLength = function(cb) {
|
|
32793
|
+
var knownLength = this._overheadLength + this._valueLength;
|
|
32794
|
+
if (this._streams.length) {
|
|
32795
|
+
knownLength += this._lastBoundary().length;
|
|
32796
|
+
}
|
|
32797
|
+
if (!this._valuesToMeasure.length) {
|
|
32798
|
+
process.nextTick(cb.bind(this, null, knownLength));
|
|
32799
|
+
return;
|
|
32800
|
+
}
|
|
32801
|
+
asynckit.parallel(this._valuesToMeasure, this._lengthRetriever, function(err, values) {
|
|
32802
|
+
if (err) {
|
|
32803
|
+
cb(err);
|
|
32804
|
+
return;
|
|
32805
|
+
}
|
|
32806
|
+
values.forEach(function(length) {
|
|
32807
|
+
knownLength += length;
|
|
32808
|
+
});
|
|
32809
|
+
cb(null, knownLength);
|
|
32810
|
+
});
|
|
33881
32811
|
};
|
|
33882
|
-
|
|
33883
|
-
var
|
|
33884
|
-
var
|
|
33885
|
-
|
|
33886
|
-
|
|
33887
|
-
|
|
32812
|
+
FormData2.prototype.submit = function(params, cb) {
|
|
32813
|
+
var request;
|
|
32814
|
+
var options;
|
|
32815
|
+
var defaults = { method: "post" };
|
|
32816
|
+
if (typeof params === "string") {
|
|
32817
|
+
params = parseUrl(params);
|
|
32818
|
+
options = populate({
|
|
32819
|
+
port: params.port,
|
|
32820
|
+
path: params.pathname,
|
|
32821
|
+
host: params.hostname,
|
|
32822
|
+
protocol: params.protocol
|
|
32823
|
+
}, defaults);
|
|
32824
|
+
} else {
|
|
32825
|
+
options = populate(params, defaults);
|
|
32826
|
+
if (!options.port) {
|
|
32827
|
+
options.port = options.protocol === "https:" ? 443 : 80;
|
|
32828
|
+
}
|
|
33888
32829
|
}
|
|
33889
|
-
|
|
33890
|
-
|
|
33891
|
-
|
|
33892
|
-
|
|
32830
|
+
options.headers = this.getHeaders(params.headers);
|
|
32831
|
+
if (options.protocol === "https:") {
|
|
32832
|
+
request = https.request(options);
|
|
32833
|
+
} else {
|
|
32834
|
+
request = http.request(options);
|
|
32835
|
+
}
|
|
32836
|
+
this.getLength(function(err, length) {
|
|
32837
|
+
if (err && err !== "Unknown stream") {
|
|
32838
|
+
this._error(err);
|
|
32839
|
+
return;
|
|
33893
32840
|
}
|
|
33894
|
-
if (
|
|
33895
|
-
|
|
32841
|
+
if (length) {
|
|
32842
|
+
request.setHeader("Content-Length", length);
|
|
33896
32843
|
}
|
|
33897
|
-
|
|
33898
|
-
|
|
33899
|
-
|
|
33900
|
-
|
|
33901
|
-
|
|
32844
|
+
this.pipe(request);
|
|
32845
|
+
if (cb) {
|
|
32846
|
+
var onResponse;
|
|
32847
|
+
var callback = function(error, responce) {
|
|
32848
|
+
request.removeListener("error", callback);
|
|
32849
|
+
request.removeListener("response", onResponse);
|
|
32850
|
+
return cb.call(this, error, responce);
|
|
32851
|
+
};
|
|
32852
|
+
onResponse = callback.bind(this, null);
|
|
32853
|
+
request.on("error", callback);
|
|
32854
|
+
request.on("response", onResponse);
|
|
32855
|
+
}
|
|
32856
|
+
}.bind(this));
|
|
32857
|
+
return request;
|
|
32858
|
+
};
|
|
32859
|
+
FormData2.prototype._error = function(err) {
|
|
32860
|
+
if (!this.error) {
|
|
32861
|
+
this.error = err;
|
|
32862
|
+
this.pause();
|
|
32863
|
+
this.emit("error", err);
|
|
33902
32864
|
}
|
|
33903
|
-
throw new $SyntaxError("intrinsic " + name + " does not exist!");
|
|
33904
32865
|
};
|
|
33905
|
-
|
|
33906
|
-
|
|
33907
|
-
|
|
32866
|
+
FormData2.prototype.toString = function() {
|
|
32867
|
+
return "[object FormData]";
|
|
32868
|
+
};
|
|
32869
|
+
setToStringTag(FormData2, "FormData");
|
|
32870
|
+
module2.exports = FormData2;
|
|
32871
|
+
}
|
|
32872
|
+
});
|
|
32873
|
+
|
|
32874
|
+
// node_modules/@jsforce/jsforce-node/lib/request-helper.js
|
|
32875
|
+
var require_request_helper = __commonJS({
|
|
32876
|
+
"node_modules/@jsforce/jsforce-node/lib/request-helper.js"(exports2) {
|
|
32877
|
+
"use strict";
|
|
32878
|
+
var __importDefault3 = exports2 && exports2.__importDefault || function(mod) {
|
|
32879
|
+
return mod && mod.__esModule ? mod : { "default": mod };
|
|
32880
|
+
};
|
|
32881
|
+
Object.defineProperty(exports2, "__esModule", { value: true });
|
|
32882
|
+
exports2.executeWithTimeout = exports2.performRedirectRequest = exports2.isRedirect = exports2.createHttpRequestHandlerStreams = void 0;
|
|
32883
|
+
var stream_1 = require("stream");
|
|
32884
|
+
var stream_2 = require_stream();
|
|
32885
|
+
var form_data_1 = __importDefault3(require_form_data());
|
|
32886
|
+
function createHttpRequestHandlerStreams(req, options = {}) {
|
|
32887
|
+
const { body: reqBody } = req;
|
|
32888
|
+
const input = new stream_1.PassThrough();
|
|
32889
|
+
const output = new stream_1.PassThrough();
|
|
32890
|
+
const duplex = (0, stream_2.concatStreamsAsDuplex)(input, output);
|
|
32891
|
+
if (typeof reqBody !== "undefined") {
|
|
32892
|
+
setTimeout(() => {
|
|
32893
|
+
if (reqBody instanceof form_data_1.default) {
|
|
32894
|
+
duplex.end(reqBody.getBuffer());
|
|
32895
|
+
} else {
|
|
32896
|
+
duplex.end(reqBody, "utf8");
|
|
32897
|
+
}
|
|
32898
|
+
}, 0);
|
|
33908
32899
|
}
|
|
33909
|
-
|
|
33910
|
-
|
|
32900
|
+
duplex.on("response", async (res) => {
|
|
32901
|
+
if (duplex.listenerCount("complete") > 0) {
|
|
32902
|
+
const resBody = await (0, stream_2.readAll)(duplex, options.encoding);
|
|
32903
|
+
duplex.emit("complete", {
|
|
32904
|
+
...res,
|
|
32905
|
+
body: resBody
|
|
32906
|
+
});
|
|
32907
|
+
}
|
|
32908
|
+
});
|
|
32909
|
+
return { input, output, stream: duplex };
|
|
32910
|
+
}
|
|
32911
|
+
exports2.createHttpRequestHandlerStreams = createHttpRequestHandlerStreams;
|
|
32912
|
+
var redirectStatuses = /* @__PURE__ */ new Set([301, 302, 303, 307, 308]);
|
|
32913
|
+
function isRedirect(status) {
|
|
32914
|
+
return redirectStatuses.has(status);
|
|
32915
|
+
}
|
|
32916
|
+
exports2.isRedirect = isRedirect;
|
|
32917
|
+
var MAX_REDIRECT_COUNT = 10;
|
|
32918
|
+
function performRedirectRequest(req, res, followRedirect, counter, redirectCallback) {
|
|
32919
|
+
if (counter >= MAX_REDIRECT_COUNT) {
|
|
32920
|
+
throw new Error("Reached to maximum redirect count");
|
|
33911
32921
|
}
|
|
33912
|
-
|
|
33913
|
-
|
|
32922
|
+
const redirectUrl = res.headers["location"];
|
|
32923
|
+
if (!redirectUrl) {
|
|
32924
|
+
throw new Error("No redirect URI found");
|
|
33914
32925
|
}
|
|
33915
|
-
|
|
33916
|
-
|
|
33917
|
-
|
|
33918
|
-
|
|
33919
|
-
|
|
33920
|
-
|
|
33921
|
-
|
|
33922
|
-
|
|
33923
|
-
intrinsicBaseName = alias[0];
|
|
33924
|
-
$spliceApply(parts, $concat([0, 1], alias));
|
|
32926
|
+
const getRedirectRequest = typeof followRedirect === "function" ? followRedirect : () => ({
|
|
32927
|
+
method: "GET",
|
|
32928
|
+
url: redirectUrl,
|
|
32929
|
+
headers: req.headers
|
|
32930
|
+
});
|
|
32931
|
+
const nextReqParams = getRedirectRequest(redirectUrl);
|
|
32932
|
+
if (!nextReqParams) {
|
|
32933
|
+
throw new Error("Cannot handle redirect for " + redirectUrl);
|
|
33925
32934
|
}
|
|
33926
|
-
|
|
33927
|
-
|
|
33928
|
-
|
|
33929
|
-
|
|
33930
|
-
|
|
33931
|
-
|
|
32935
|
+
redirectCallback(nextReqParams);
|
|
32936
|
+
}
|
|
32937
|
+
exports2.performRedirectRequest = performRedirectRequest;
|
|
32938
|
+
async function executeWithTimeout(execFn, msec, cancelCallback) {
|
|
32939
|
+
let timeout = false;
|
|
32940
|
+
const pid = msec != null ? setTimeout(() => {
|
|
32941
|
+
timeout = true;
|
|
32942
|
+
cancelCallback?.();
|
|
32943
|
+
}, msec) : void 0;
|
|
32944
|
+
let res;
|
|
32945
|
+
try {
|
|
32946
|
+
res = await execFn();
|
|
32947
|
+
} finally {
|
|
32948
|
+
if (pid) {
|
|
32949
|
+
clearTimeout(pid);
|
|
33932
32950
|
}
|
|
33933
|
-
|
|
33934
|
-
|
|
32951
|
+
}
|
|
32952
|
+
if (timeout) {
|
|
32953
|
+
throw new Error("Request Timeout");
|
|
32954
|
+
}
|
|
32955
|
+
return res;
|
|
32956
|
+
}
|
|
32957
|
+
exports2.executeWithTimeout = executeWithTimeout;
|
|
32958
|
+
}
|
|
32959
|
+
});
|
|
32960
|
+
|
|
32961
|
+
// node_modules/@jsforce/jsforce-node/lib/util/logger.js
|
|
32962
|
+
var require_logger2 = __commonJS({
|
|
32963
|
+
"node_modules/@jsforce/jsforce-node/lib/util/logger.js"(exports2) {
|
|
32964
|
+
"use strict";
|
|
32965
|
+
Object.defineProperty(exports2, "__esModule", { value: true });
|
|
32966
|
+
exports2.getLogger = exports2.Logger = exports2.LogLevels = void 0;
|
|
32967
|
+
exports2.LogLevels = {
|
|
32968
|
+
DEBUG: 1,
|
|
32969
|
+
INFO: 2,
|
|
32970
|
+
WARN: 3,
|
|
32971
|
+
ERROR: 4,
|
|
32972
|
+
FATAL: 5,
|
|
32973
|
+
NONE: 6
|
|
32974
|
+
};
|
|
32975
|
+
var LogLevelLabels = ["", "DEBUG", "INFO", "WARN", "ERROR", "FATAL", "NONE"];
|
|
32976
|
+
var globalLogLevelConfig = (() => {
|
|
32977
|
+
const globalLogLevelStr = process.env.JSFORCE_LOG_LEVEL || global.__JSFORCE_LOG_LEVEL__ || "NONE";
|
|
32978
|
+
if (/^(DEBUG|INFO|WARN|ERROR|FATAL|NONE)$/i.test(globalLogLevelStr)) {
|
|
32979
|
+
return { "*": globalLogLevelStr };
|
|
32980
|
+
}
|
|
32981
|
+
try {
|
|
32982
|
+
return JSON.parse(globalLogLevelStr);
|
|
32983
|
+
} catch (e) {
|
|
32984
|
+
return { "*": "NONE" };
|
|
32985
|
+
}
|
|
32986
|
+
})();
|
|
32987
|
+
function getModuleLogLevel(logLevelConfig, moduleName) {
|
|
32988
|
+
const logLevel = logLevelConfig[moduleName] || logLevelConfig["*"];
|
|
32989
|
+
return typeof logLevel === "number" ? logLevel : exports2.LogLevels[logLevel] || exports2.LogLevels.NONE;
|
|
32990
|
+
}
|
|
32991
|
+
var Logger = class _Logger {
|
|
32992
|
+
_moduleName;
|
|
32993
|
+
_logLevel;
|
|
32994
|
+
constructor(moduleName, logLevelConfig = globalLogLevelConfig) {
|
|
32995
|
+
this._moduleName = moduleName;
|
|
32996
|
+
this._logLevel = typeof logLevelConfig === "number" ? logLevelConfig : typeof logLevelConfig === "string" ? exports2.LogLevels[logLevelConfig] || exports2.LogLevels.NONE : getModuleLogLevel(logLevelConfig, moduleName);
|
|
32997
|
+
}
|
|
32998
|
+
createInstance(logLevelConfig = this._logLevel) {
|
|
32999
|
+
return new _Logger(this._moduleName, logLevelConfig);
|
|
33000
|
+
}
|
|
33001
|
+
setLogLevel(logLevel) {
|
|
33002
|
+
if (typeof logLevel === "string") {
|
|
33003
|
+
this._logLevel = exports2.LogLevels[logLevel] || exports2.LogLevels.NONE;
|
|
33004
|
+
} else {
|
|
33005
|
+
this._logLevel = logLevel;
|
|
33935
33006
|
}
|
|
33936
|
-
|
|
33937
|
-
|
|
33938
|
-
if (
|
|
33939
|
-
|
|
33940
|
-
|
|
33941
|
-
|
|
33942
|
-
|
|
33943
|
-
|
|
33944
|
-
|
|
33945
|
-
return void undefined2;
|
|
33946
|
-
}
|
|
33947
|
-
if ($gOPD && i + 1 >= parts.length) {
|
|
33948
|
-
var desc = $gOPD(value, part);
|
|
33949
|
-
isOwn = !!desc;
|
|
33950
|
-
if (isOwn && "get" in desc && !("originalValue" in desc.get)) {
|
|
33951
|
-
value = desc.get;
|
|
33952
|
-
} else {
|
|
33953
|
-
value = value[part];
|
|
33954
|
-
}
|
|
33007
|
+
}
|
|
33008
|
+
log(logLevel, ...messages) {
|
|
33009
|
+
if (this._logLevel <= logLevel) {
|
|
33010
|
+
const msgs = [
|
|
33011
|
+
`${LogLevelLabels[logLevel]} [${this._moduleName}] `,
|
|
33012
|
+
...messages
|
|
33013
|
+
];
|
|
33014
|
+
if (logLevel < exports2.LogLevels.ERROR) {
|
|
33015
|
+
console.log(...msgs);
|
|
33955
33016
|
} else {
|
|
33956
|
-
|
|
33957
|
-
value = value[part];
|
|
33958
|
-
}
|
|
33959
|
-
if (isOwn && !skipFurtherCaching) {
|
|
33960
|
-
INTRINSICS[intrinsicRealName] = value;
|
|
33017
|
+
console.error(...msgs);
|
|
33961
33018
|
}
|
|
33962
33019
|
}
|
|
33963
33020
|
}
|
|
33964
|
-
|
|
33021
|
+
debug(...messages) {
|
|
33022
|
+
this.log(exports2.LogLevels.DEBUG, ...messages);
|
|
33023
|
+
}
|
|
33024
|
+
info(...messages) {
|
|
33025
|
+
this.log(exports2.LogLevels.INFO, ...messages);
|
|
33026
|
+
}
|
|
33027
|
+
warn(...messages) {
|
|
33028
|
+
this.log(exports2.LogLevels.WARN, ...messages);
|
|
33029
|
+
}
|
|
33030
|
+
error(...messages) {
|
|
33031
|
+
this.log(exports2.LogLevels.ERROR, ...messages);
|
|
33032
|
+
}
|
|
33033
|
+
fatal(...messages) {
|
|
33034
|
+
this.log(exports2.LogLevels.FATAL, ...messages);
|
|
33035
|
+
}
|
|
33965
33036
|
};
|
|
33037
|
+
exports2.Logger = Logger;
|
|
33038
|
+
var loggers = {};
|
|
33039
|
+
function getLogger(moduleName) {
|
|
33040
|
+
const logger = loggers[moduleName] || new Logger(moduleName);
|
|
33041
|
+
loggers[moduleName] = logger;
|
|
33042
|
+
return logger;
|
|
33043
|
+
}
|
|
33044
|
+
exports2.getLogger = getLogger;
|
|
33966
33045
|
}
|
|
33967
33046
|
});
|
|
33968
33047
|
|
|
33969
|
-
// node_modules/
|
|
33970
|
-
var
|
|
33971
|
-
"node_modules/
|
|
33048
|
+
// node_modules/@sindresorhus/is/dist/index.js
|
|
33049
|
+
var require_dist17 = __commonJS({
|
|
33050
|
+
"node_modules/@sindresorhus/is/dist/index.js"(exports2, module2) {
|
|
33972
33051
|
"use strict";
|
|
33973
|
-
|
|
33974
|
-
|
|
33052
|
+
Object.defineProperty(exports2, "__esModule", { value: true });
|
|
33053
|
+
var typedArrayTypeNames = [
|
|
33054
|
+
"Int8Array",
|
|
33055
|
+
"Uint8Array",
|
|
33056
|
+
"Uint8ClampedArray",
|
|
33057
|
+
"Int16Array",
|
|
33058
|
+
"Uint16Array",
|
|
33059
|
+
"Int32Array",
|
|
33060
|
+
"Uint32Array",
|
|
33061
|
+
"Float32Array",
|
|
33062
|
+
"Float64Array",
|
|
33063
|
+
"BigInt64Array",
|
|
33064
|
+
"BigUint64Array"
|
|
33065
|
+
];
|
|
33066
|
+
function isTypedArrayName(name) {
|
|
33067
|
+
return typedArrayTypeNames.includes(name);
|
|
33068
|
+
}
|
|
33069
|
+
var objectTypeNames = [
|
|
33070
|
+
"Function",
|
|
33071
|
+
"Generator",
|
|
33072
|
+
"AsyncGenerator",
|
|
33073
|
+
"GeneratorFunction",
|
|
33074
|
+
"AsyncGeneratorFunction",
|
|
33075
|
+
"AsyncFunction",
|
|
33076
|
+
"Observable",
|
|
33077
|
+
"Array",
|
|
33078
|
+
"Buffer",
|
|
33079
|
+
"Blob",
|
|
33080
|
+
"Object",
|
|
33081
|
+
"RegExp",
|
|
33082
|
+
"Date",
|
|
33083
|
+
"Error",
|
|
33084
|
+
"Map",
|
|
33085
|
+
"Set",
|
|
33086
|
+
"WeakMap",
|
|
33087
|
+
"WeakSet",
|
|
33088
|
+
"ArrayBuffer",
|
|
33089
|
+
"SharedArrayBuffer",
|
|
33090
|
+
"DataView",
|
|
33091
|
+
"Promise",
|
|
33092
|
+
"URL",
|
|
33093
|
+
"FormData",
|
|
33094
|
+
"URLSearchParams",
|
|
33095
|
+
"HTMLElement",
|
|
33096
|
+
...typedArrayTypeNames
|
|
33097
|
+
];
|
|
33098
|
+
function isObjectTypeName(name) {
|
|
33099
|
+
return objectTypeNames.includes(name);
|
|
33100
|
+
}
|
|
33101
|
+
var primitiveTypeNames = [
|
|
33102
|
+
"null",
|
|
33103
|
+
"undefined",
|
|
33104
|
+
"string",
|
|
33105
|
+
"number",
|
|
33106
|
+
"bigint",
|
|
33107
|
+
"boolean",
|
|
33108
|
+
"symbol"
|
|
33109
|
+
];
|
|
33110
|
+
function isPrimitiveTypeName(name) {
|
|
33111
|
+
return primitiveTypeNames.includes(name);
|
|
33112
|
+
}
|
|
33113
|
+
function isOfType(type2) {
|
|
33114
|
+
return (value) => typeof value === type2;
|
|
33115
|
+
}
|
|
33116
|
+
var { toString } = Object.prototype;
|
|
33117
|
+
var getObjectType = (value) => {
|
|
33118
|
+
const objectTypeName = toString.call(value).slice(8, -1);
|
|
33119
|
+
if (/HTML\w+Element/.test(objectTypeName) && is.domElement(value)) {
|
|
33120
|
+
return "HTMLElement";
|
|
33121
|
+
}
|
|
33122
|
+
if (isObjectTypeName(objectTypeName)) {
|
|
33123
|
+
return objectTypeName;
|
|
33124
|
+
}
|
|
33125
|
+
return void 0;
|
|
33126
|
+
};
|
|
33127
|
+
var isObjectOfType = (type2) => (value) => getObjectType(value) === type2;
|
|
33128
|
+
function is(value) {
|
|
33129
|
+
if (value === null) {
|
|
33130
|
+
return "null";
|
|
33131
|
+
}
|
|
33132
|
+
switch (typeof value) {
|
|
33133
|
+
case "undefined":
|
|
33134
|
+
return "undefined";
|
|
33135
|
+
case "string":
|
|
33136
|
+
return "string";
|
|
33137
|
+
case "number":
|
|
33138
|
+
return "number";
|
|
33139
|
+
case "boolean":
|
|
33140
|
+
return "boolean";
|
|
33141
|
+
case "function":
|
|
33142
|
+
return "Function";
|
|
33143
|
+
case "bigint":
|
|
33144
|
+
return "bigint";
|
|
33145
|
+
case "symbol":
|
|
33146
|
+
return "symbol";
|
|
33147
|
+
default:
|
|
33148
|
+
}
|
|
33149
|
+
if (is.observable(value)) {
|
|
33150
|
+
return "Observable";
|
|
33151
|
+
}
|
|
33152
|
+
if (is.array(value)) {
|
|
33153
|
+
return "Array";
|
|
33154
|
+
}
|
|
33155
|
+
if (is.buffer(value)) {
|
|
33156
|
+
return "Buffer";
|
|
33157
|
+
}
|
|
33158
|
+
const tagType = getObjectType(value);
|
|
33159
|
+
if (tagType) {
|
|
33160
|
+
return tagType;
|
|
33161
|
+
}
|
|
33162
|
+
if (value instanceof String || value instanceof Boolean || value instanceof Number) {
|
|
33163
|
+
throw new TypeError("Please don't use object wrappers for primitive types");
|
|
33164
|
+
}
|
|
33165
|
+
return "Object";
|
|
33166
|
+
}
|
|
33167
|
+
is.undefined = isOfType("undefined");
|
|
33168
|
+
is.string = isOfType("string");
|
|
33169
|
+
var isNumberType = isOfType("number");
|
|
33170
|
+
is.number = (value) => isNumberType(value) && !is.nan(value);
|
|
33171
|
+
is.bigint = isOfType("bigint");
|
|
33172
|
+
is.function_ = isOfType("function");
|
|
33173
|
+
is.null_ = (value) => value === null;
|
|
33174
|
+
is.class_ = (value) => is.function_(value) && value.toString().startsWith("class ");
|
|
33175
|
+
is.boolean = (value) => value === true || value === false;
|
|
33176
|
+
is.symbol = isOfType("symbol");
|
|
33177
|
+
is.numericString = (value) => is.string(value) && !is.emptyStringOrWhitespace(value) && !Number.isNaN(Number(value));
|
|
33178
|
+
is.array = (value, assertion) => {
|
|
33179
|
+
if (!Array.isArray(value)) {
|
|
33975
33180
|
return false;
|
|
33976
33181
|
}
|
|
33977
|
-
if (
|
|
33182
|
+
if (!is.function_(assertion)) {
|
|
33978
33183
|
return true;
|
|
33979
33184
|
}
|
|
33980
|
-
|
|
33981
|
-
|
|
33982
|
-
|
|
33983
|
-
|
|
33185
|
+
return value.every(assertion);
|
|
33186
|
+
};
|
|
33187
|
+
is.buffer = (value) => {
|
|
33188
|
+
var _a, _b, _c, _d;
|
|
33189
|
+
return (_d = (_c = (_b = (_a = value) === null || _a === void 0 ? void 0 : _a.constructor) === null || _b === void 0 ? void 0 : _b.isBuffer) === null || _c === void 0 ? void 0 : _c.call(_b, value)) !== null && _d !== void 0 ? _d : false;
|
|
33190
|
+
};
|
|
33191
|
+
is.blob = (value) => isObjectOfType("Blob")(value);
|
|
33192
|
+
is.nullOrUndefined = (value) => is.null_(value) || is.undefined(value);
|
|
33193
|
+
is.object = (value) => !is.null_(value) && (typeof value === "object" || is.function_(value));
|
|
33194
|
+
is.iterable = (value) => {
|
|
33195
|
+
var _a;
|
|
33196
|
+
return is.function_((_a = value) === null || _a === void 0 ? void 0 : _a[Symbol.iterator]);
|
|
33197
|
+
};
|
|
33198
|
+
is.asyncIterable = (value) => {
|
|
33199
|
+
var _a;
|
|
33200
|
+
return is.function_((_a = value) === null || _a === void 0 ? void 0 : _a[Symbol.asyncIterator]);
|
|
33201
|
+
};
|
|
33202
|
+
is.generator = (value) => {
|
|
33203
|
+
var _a, _b;
|
|
33204
|
+
return is.iterable(value) && is.function_((_a = value) === null || _a === void 0 ? void 0 : _a.next) && is.function_((_b = value) === null || _b === void 0 ? void 0 : _b.throw);
|
|
33205
|
+
};
|
|
33206
|
+
is.asyncGenerator = (value) => is.asyncIterable(value) && is.function_(value.next) && is.function_(value.throw);
|
|
33207
|
+
is.nativePromise = (value) => isObjectOfType("Promise")(value);
|
|
33208
|
+
var hasPromiseAPI = (value) => {
|
|
33209
|
+
var _a, _b;
|
|
33210
|
+
return is.function_((_a = value) === null || _a === void 0 ? void 0 : _a.then) && is.function_((_b = value) === null || _b === void 0 ? void 0 : _b.catch);
|
|
33211
|
+
};
|
|
33212
|
+
is.promise = (value) => is.nativePromise(value) || hasPromiseAPI(value);
|
|
33213
|
+
is.generatorFunction = isObjectOfType("GeneratorFunction");
|
|
33214
|
+
is.asyncGeneratorFunction = (value) => getObjectType(value) === "AsyncGeneratorFunction";
|
|
33215
|
+
is.asyncFunction = (value) => getObjectType(value) === "AsyncFunction";
|
|
33216
|
+
is.boundFunction = (value) => is.function_(value) && !value.hasOwnProperty("prototype");
|
|
33217
|
+
is.regExp = isObjectOfType("RegExp");
|
|
33218
|
+
is.date = isObjectOfType("Date");
|
|
33219
|
+
is.error = isObjectOfType("Error");
|
|
33220
|
+
is.map = (value) => isObjectOfType("Map")(value);
|
|
33221
|
+
is.set = (value) => isObjectOfType("Set")(value);
|
|
33222
|
+
is.weakMap = (value) => isObjectOfType("WeakMap")(value);
|
|
33223
|
+
is.weakSet = (value) => isObjectOfType("WeakSet")(value);
|
|
33224
|
+
is.int8Array = isObjectOfType("Int8Array");
|
|
33225
|
+
is.uint8Array = isObjectOfType("Uint8Array");
|
|
33226
|
+
is.uint8ClampedArray = isObjectOfType("Uint8ClampedArray");
|
|
33227
|
+
is.int16Array = isObjectOfType("Int16Array");
|
|
33228
|
+
is.uint16Array = isObjectOfType("Uint16Array");
|
|
33229
|
+
is.int32Array = isObjectOfType("Int32Array");
|
|
33230
|
+
is.uint32Array = isObjectOfType("Uint32Array");
|
|
33231
|
+
is.float32Array = isObjectOfType("Float32Array");
|
|
33232
|
+
is.float64Array = isObjectOfType("Float64Array");
|
|
33233
|
+
is.bigInt64Array = isObjectOfType("BigInt64Array");
|
|
33234
|
+
is.bigUint64Array = isObjectOfType("BigUint64Array");
|
|
33235
|
+
is.arrayBuffer = isObjectOfType("ArrayBuffer");
|
|
33236
|
+
is.sharedArrayBuffer = isObjectOfType("SharedArrayBuffer");
|
|
33237
|
+
is.dataView = isObjectOfType("DataView");
|
|
33238
|
+
is.enumCase = (value, targetEnum) => Object.values(targetEnum).includes(value);
|
|
33239
|
+
is.directInstanceOf = (instance, class_) => Object.getPrototypeOf(instance) === class_.prototype;
|
|
33240
|
+
is.urlInstance = (value) => isObjectOfType("URL")(value);
|
|
33241
|
+
is.urlString = (value) => {
|
|
33242
|
+
if (!is.string(value)) {
|
|
33984
33243
|
return false;
|
|
33985
33244
|
}
|
|
33986
|
-
|
|
33245
|
+
try {
|
|
33246
|
+
new URL(value);
|
|
33247
|
+
return true;
|
|
33248
|
+
} catch (_a) {
|
|
33987
33249
|
return false;
|
|
33988
33250
|
}
|
|
33989
|
-
|
|
33251
|
+
};
|
|
33252
|
+
is.truthy = (value) => Boolean(value);
|
|
33253
|
+
is.falsy = (value) => !value;
|
|
33254
|
+
is.nan = (value) => Number.isNaN(value);
|
|
33255
|
+
is.primitive = (value) => is.null_(value) || isPrimitiveTypeName(typeof value);
|
|
33256
|
+
is.integer = (value) => Number.isInteger(value);
|
|
33257
|
+
is.safeInteger = (value) => Number.isSafeInteger(value);
|
|
33258
|
+
is.plainObject = (value) => {
|
|
33259
|
+
if (toString.call(value) !== "[object Object]") {
|
|
33990
33260
|
return false;
|
|
33991
33261
|
}
|
|
33992
|
-
|
|
33993
|
-
|
|
33994
|
-
|
|
33995
|
-
|
|
33262
|
+
const prototype = Object.getPrototypeOf(value);
|
|
33263
|
+
return prototype === null || prototype === Object.getPrototypeOf({});
|
|
33264
|
+
};
|
|
33265
|
+
is.typedArray = (value) => isTypedArrayName(getObjectType(value));
|
|
33266
|
+
var isValidLength = (value) => is.safeInteger(value) && value >= 0;
|
|
33267
|
+
is.arrayLike = (value) => !is.nullOrUndefined(value) && !is.function_(value) && isValidLength(value.length);
|
|
33268
|
+
is.inRange = (value, range) => {
|
|
33269
|
+
if (is.number(range)) {
|
|
33270
|
+
return value >= Math.min(0, range) && value <= Math.max(range, 0);
|
|
33271
|
+
}
|
|
33272
|
+
if (is.array(range) && range.length === 2) {
|
|
33273
|
+
return value >= Math.min(...range) && value <= Math.max(...range);
|
|
33996
33274
|
}
|
|
33997
|
-
|
|
33275
|
+
throw new TypeError(`Invalid range: ${JSON.stringify(range)}`);
|
|
33276
|
+
};
|
|
33277
|
+
var NODE_TYPE_ELEMENT = 1;
|
|
33278
|
+
var DOM_PROPERTIES_TO_CHECK = [
|
|
33279
|
+
"innerHTML",
|
|
33280
|
+
"ownerDocument",
|
|
33281
|
+
"style",
|
|
33282
|
+
"attributes",
|
|
33283
|
+
"nodeValue"
|
|
33284
|
+
];
|
|
33285
|
+
is.domElement = (value) => {
|
|
33286
|
+
return is.object(value) && value.nodeType === NODE_TYPE_ELEMENT && is.string(value.nodeName) && !is.plainObject(value) && DOM_PROPERTIES_TO_CHECK.every((property) => property in value);
|
|
33287
|
+
};
|
|
33288
|
+
is.observable = (value) => {
|
|
33289
|
+
var _a, _b, _c, _d;
|
|
33290
|
+
if (!value) {
|
|
33998
33291
|
return false;
|
|
33999
33292
|
}
|
|
34000
|
-
if (
|
|
34001
|
-
return
|
|
33293
|
+
if (value === ((_b = (_a = value)[Symbol.observable]) === null || _b === void 0 ? void 0 : _b.call(_a))) {
|
|
33294
|
+
return true;
|
|
34002
33295
|
}
|
|
34003
|
-
|
|
34004
|
-
|
|
34005
|
-
return false;
|
|
33296
|
+
if (value === ((_d = (_c = value)["@@observable"]) === null || _d === void 0 ? void 0 : _d.call(_c))) {
|
|
33297
|
+
return true;
|
|
34006
33298
|
}
|
|
34007
|
-
|
|
34008
|
-
|
|
33299
|
+
return false;
|
|
33300
|
+
};
|
|
33301
|
+
is.nodeStream = (value) => is.object(value) && is.function_(value.pipe) && !is.observable(value);
|
|
33302
|
+
is.infinite = (value) => value === Infinity || value === -Infinity;
|
|
33303
|
+
var isAbsoluteMod2 = (remainder) => (value) => is.integer(value) && Math.abs(value % 2) === remainder;
|
|
33304
|
+
is.evenInteger = isAbsoluteMod2(0);
|
|
33305
|
+
is.oddInteger = isAbsoluteMod2(1);
|
|
33306
|
+
is.emptyArray = (value) => is.array(value) && value.length === 0;
|
|
33307
|
+
is.nonEmptyArray = (value) => is.array(value) && value.length > 0;
|
|
33308
|
+
is.emptyString = (value) => is.string(value) && value.length === 0;
|
|
33309
|
+
var isWhiteSpaceString = (value) => is.string(value) && !/\S/.test(value);
|
|
33310
|
+
is.emptyStringOrWhitespace = (value) => is.emptyString(value) || isWhiteSpaceString(value);
|
|
33311
|
+
is.nonEmptyString = (value) => is.string(value) && value.length > 0;
|
|
33312
|
+
is.nonEmptyStringAndNotWhitespace = (value) => is.string(value) && !is.emptyStringOrWhitespace(value);
|
|
33313
|
+
is.emptyObject = (value) => is.object(value) && !is.map(value) && !is.set(value) && Object.keys(value).length === 0;
|
|
33314
|
+
is.nonEmptyObject = (value) => is.object(value) && !is.map(value) && !is.set(value) && Object.keys(value).length > 0;
|
|
33315
|
+
is.emptySet = (value) => is.set(value) && value.size === 0;
|
|
33316
|
+
is.nonEmptySet = (value) => is.set(value) && value.size > 0;
|
|
33317
|
+
is.emptyMap = (value) => is.map(value) && value.size === 0;
|
|
33318
|
+
is.nonEmptyMap = (value) => is.map(value) && value.size > 0;
|
|
33319
|
+
is.propertyKey = (value) => is.any([is.string, is.number, is.symbol], value);
|
|
33320
|
+
is.formData = (value) => isObjectOfType("FormData")(value);
|
|
33321
|
+
is.urlSearchParams = (value) => isObjectOfType("URLSearchParams")(value);
|
|
33322
|
+
var predicateOnArray = (method, predicate, values) => {
|
|
33323
|
+
if (!is.function_(predicate)) {
|
|
33324
|
+
throw new TypeError(`Invalid predicate: ${JSON.stringify(predicate)}`);
|
|
34009
33325
|
}
|
|
34010
|
-
if (
|
|
34011
|
-
|
|
34012
|
-
if (descriptor.value !== symVal || descriptor.enumerable !== true) {
|
|
34013
|
-
return false;
|
|
34014
|
-
}
|
|
33326
|
+
if (values.length === 0) {
|
|
33327
|
+
throw new TypeError("Invalid number of values");
|
|
34015
33328
|
}
|
|
34016
|
-
return
|
|
33329
|
+
return method.call(values, predicate);
|
|
34017
33330
|
};
|
|
34018
|
-
|
|
34019
|
-
|
|
34020
|
-
|
|
34021
|
-
// node_modules/has-tostringtag/shams.js
|
|
34022
|
-
var require_shams3 = __commonJS({
|
|
34023
|
-
"node_modules/has-tostringtag/shams.js"(exports2, module2) {
|
|
34024
|
-
"use strict";
|
|
34025
|
-
var hasSymbols = require_shams2();
|
|
34026
|
-
module2.exports = function hasToStringTagShams() {
|
|
34027
|
-
return hasSymbols() && !!Symbol.toStringTag;
|
|
33331
|
+
is.any = (predicate, ...values) => {
|
|
33332
|
+
const predicates = is.array(predicate) ? predicate : [predicate];
|
|
33333
|
+
return predicates.some((singlePredicate) => predicateOnArray(Array.prototype.some, singlePredicate, values));
|
|
34028
33334
|
};
|
|
34029
|
-
|
|
34030
|
-
})
|
|
34031
|
-
|
|
34032
|
-
|
|
34033
|
-
|
|
34034
|
-
|
|
34035
|
-
|
|
34036
|
-
|
|
34037
|
-
var $defineProperty = GetIntrinsic("%Object.defineProperty%", true);
|
|
34038
|
-
var hasToStringTag = require_shams3()();
|
|
34039
|
-
var hasOwn = require_hasown();
|
|
34040
|
-
var $TypeError = require_type();
|
|
34041
|
-
var toStringTag = hasToStringTag ? Symbol.toStringTag : null;
|
|
34042
|
-
module2.exports = function setToStringTag(object, value) {
|
|
34043
|
-
var overrideIfSet = arguments.length > 2 && !!arguments[2] && arguments[2].force;
|
|
34044
|
-
var nonConfigurable = arguments.length > 2 && !!arguments[2] && arguments[2].nonConfigurable;
|
|
34045
|
-
if (typeof overrideIfSet !== "undefined" && typeof overrideIfSet !== "boolean" || typeof nonConfigurable !== "undefined" && typeof nonConfigurable !== "boolean") {
|
|
34046
|
-
throw new $TypeError("if provided, the `overrideIfSet` and `nonConfigurable` options must be booleans");
|
|
34047
|
-
}
|
|
34048
|
-
if (toStringTag && (overrideIfSet || !hasOwn(object, toStringTag))) {
|
|
34049
|
-
if ($defineProperty) {
|
|
34050
|
-
$defineProperty(object, toStringTag, {
|
|
34051
|
-
configurable: !nonConfigurable,
|
|
34052
|
-
enumerable: false,
|
|
34053
|
-
value,
|
|
34054
|
-
writable: false
|
|
34055
|
-
});
|
|
34056
|
-
} else {
|
|
34057
|
-
object[toStringTag] = value;
|
|
34058
|
-
}
|
|
33335
|
+
is.all = (predicate, ...values) => predicateOnArray(Array.prototype.every, predicate, values);
|
|
33336
|
+
var assertType = (condition, description2, value, options = {}) => {
|
|
33337
|
+
if (!condition) {
|
|
33338
|
+
const { multipleValues } = options;
|
|
33339
|
+
const valuesMessage = multipleValues ? `received values of types ${[
|
|
33340
|
+
...new Set(value.map((singleValue) => `\`${is(singleValue)}\``))
|
|
33341
|
+
].join(", ")}` : `received value of type \`${is(value)}\``;
|
|
33342
|
+
throw new TypeError(`Expected value which is \`${description2}\`, ${valuesMessage}.`);
|
|
34059
33343
|
}
|
|
34060
33344
|
};
|
|
34061
|
-
|
|
34062
|
-
|
|
34063
|
-
|
|
34064
|
-
|
|
34065
|
-
|
|
34066
|
-
|
|
34067
|
-
|
|
34068
|
-
|
|
34069
|
-
|
|
34070
|
-
|
|
34071
|
-
|
|
34072
|
-
|
|
33345
|
+
exports2.assert = {
|
|
33346
|
+
// Unknowns.
|
|
33347
|
+
undefined: (value) => assertType(is.undefined(value), "undefined", value),
|
|
33348
|
+
string: (value) => assertType(is.string(value), "string", value),
|
|
33349
|
+
number: (value) => assertType(is.number(value), "number", value),
|
|
33350
|
+
bigint: (value) => assertType(is.bigint(value), "bigint", value),
|
|
33351
|
+
// eslint-disable-next-line @typescript-eslint/ban-types
|
|
33352
|
+
function_: (value) => assertType(is.function_(value), "Function", value),
|
|
33353
|
+
null_: (value) => assertType(is.null_(value), "null", value),
|
|
33354
|
+
class_: (value) => assertType(is.class_(value), "Class", value),
|
|
33355
|
+
boolean: (value) => assertType(is.boolean(value), "boolean", value),
|
|
33356
|
+
symbol: (value) => assertType(is.symbol(value), "symbol", value),
|
|
33357
|
+
numericString: (value) => assertType(is.numericString(value), "string with a number", value),
|
|
33358
|
+
array: (value, assertion) => {
|
|
33359
|
+
const assert = assertType;
|
|
33360
|
+
assert(is.array(value), "Array", value);
|
|
33361
|
+
if (assertion) {
|
|
33362
|
+
value.forEach(assertion);
|
|
33363
|
+
}
|
|
33364
|
+
},
|
|
33365
|
+
buffer: (value) => assertType(is.buffer(value), "Buffer", value),
|
|
33366
|
+
blob: (value) => assertType(is.blob(value), "Blob", value),
|
|
33367
|
+
nullOrUndefined: (value) => assertType(is.nullOrUndefined(value), "null or undefined", value),
|
|
33368
|
+
object: (value) => assertType(is.object(value), "Object", value),
|
|
33369
|
+
iterable: (value) => assertType(is.iterable(value), "Iterable", value),
|
|
33370
|
+
asyncIterable: (value) => assertType(is.asyncIterable(value), "AsyncIterable", value),
|
|
33371
|
+
generator: (value) => assertType(is.generator(value), "Generator", value),
|
|
33372
|
+
asyncGenerator: (value) => assertType(is.asyncGenerator(value), "AsyncGenerator", value),
|
|
33373
|
+
nativePromise: (value) => assertType(is.nativePromise(value), "native Promise", value),
|
|
33374
|
+
promise: (value) => assertType(is.promise(value), "Promise", value),
|
|
33375
|
+
generatorFunction: (value) => assertType(is.generatorFunction(value), "GeneratorFunction", value),
|
|
33376
|
+
asyncGeneratorFunction: (value) => assertType(is.asyncGeneratorFunction(value), "AsyncGeneratorFunction", value),
|
|
33377
|
+
// eslint-disable-next-line @typescript-eslint/ban-types
|
|
33378
|
+
asyncFunction: (value) => assertType(is.asyncFunction(value), "AsyncFunction", value),
|
|
33379
|
+
// eslint-disable-next-line @typescript-eslint/ban-types
|
|
33380
|
+
boundFunction: (value) => assertType(is.boundFunction(value), "Function", value),
|
|
33381
|
+
regExp: (value) => assertType(is.regExp(value), "RegExp", value),
|
|
33382
|
+
date: (value) => assertType(is.date(value), "Date", value),
|
|
33383
|
+
error: (value) => assertType(is.error(value), "Error", value),
|
|
33384
|
+
map: (value) => assertType(is.map(value), "Map", value),
|
|
33385
|
+
set: (value) => assertType(is.set(value), "Set", value),
|
|
33386
|
+
weakMap: (value) => assertType(is.weakMap(value), "WeakMap", value),
|
|
33387
|
+
weakSet: (value) => assertType(is.weakSet(value), "WeakSet", value),
|
|
33388
|
+
int8Array: (value) => assertType(is.int8Array(value), "Int8Array", value),
|
|
33389
|
+
uint8Array: (value) => assertType(is.uint8Array(value), "Uint8Array", value),
|
|
33390
|
+
uint8ClampedArray: (value) => assertType(is.uint8ClampedArray(value), "Uint8ClampedArray", value),
|
|
33391
|
+
int16Array: (value) => assertType(is.int16Array(value), "Int16Array", value),
|
|
33392
|
+
uint16Array: (value) => assertType(is.uint16Array(value), "Uint16Array", value),
|
|
33393
|
+
int32Array: (value) => assertType(is.int32Array(value), "Int32Array", value),
|
|
33394
|
+
uint32Array: (value) => assertType(is.uint32Array(value), "Uint32Array", value),
|
|
33395
|
+
float32Array: (value) => assertType(is.float32Array(value), "Float32Array", value),
|
|
33396
|
+
float64Array: (value) => assertType(is.float64Array(value), "Float64Array", value),
|
|
33397
|
+
bigInt64Array: (value) => assertType(is.bigInt64Array(value), "BigInt64Array", value),
|
|
33398
|
+
bigUint64Array: (value) => assertType(is.bigUint64Array(value), "BigUint64Array", value),
|
|
33399
|
+
arrayBuffer: (value) => assertType(is.arrayBuffer(value), "ArrayBuffer", value),
|
|
33400
|
+
sharedArrayBuffer: (value) => assertType(is.sharedArrayBuffer(value), "SharedArrayBuffer", value),
|
|
33401
|
+
dataView: (value) => assertType(is.dataView(value), "DataView", value),
|
|
33402
|
+
enumCase: (value, targetEnum) => assertType(is.enumCase(value, targetEnum), "EnumCase", value),
|
|
33403
|
+
urlInstance: (value) => assertType(is.urlInstance(value), "URL", value),
|
|
33404
|
+
urlString: (value) => assertType(is.urlString(value), "string with a URL", value),
|
|
33405
|
+
truthy: (value) => assertType(is.truthy(value), "truthy", value),
|
|
33406
|
+
falsy: (value) => assertType(is.falsy(value), "falsy", value),
|
|
33407
|
+
nan: (value) => assertType(is.nan(value), "NaN", value),
|
|
33408
|
+
primitive: (value) => assertType(is.primitive(value), "primitive", value),
|
|
33409
|
+
integer: (value) => assertType(is.integer(value), "integer", value),
|
|
33410
|
+
safeInteger: (value) => assertType(is.safeInteger(value), "integer", value),
|
|
33411
|
+
plainObject: (value) => assertType(is.plainObject(value), "plain object", value),
|
|
33412
|
+
typedArray: (value) => assertType(is.typedArray(value), "TypedArray", value),
|
|
33413
|
+
arrayLike: (value) => assertType(is.arrayLike(value), "array-like", value),
|
|
33414
|
+
domElement: (value) => assertType(is.domElement(value), "HTMLElement", value),
|
|
33415
|
+
observable: (value) => assertType(is.observable(value), "Observable", value),
|
|
33416
|
+
nodeStream: (value) => assertType(is.nodeStream(value), "Node.js Stream", value),
|
|
33417
|
+
infinite: (value) => assertType(is.infinite(value), "infinite number", value),
|
|
33418
|
+
emptyArray: (value) => assertType(is.emptyArray(value), "empty array", value),
|
|
33419
|
+
nonEmptyArray: (value) => assertType(is.nonEmptyArray(value), "non-empty array", value),
|
|
33420
|
+
emptyString: (value) => assertType(is.emptyString(value), "empty string", value),
|
|
33421
|
+
emptyStringOrWhitespace: (value) => assertType(is.emptyStringOrWhitespace(value), "empty string or whitespace", value),
|
|
33422
|
+
nonEmptyString: (value) => assertType(is.nonEmptyString(value), "non-empty string", value),
|
|
33423
|
+
nonEmptyStringAndNotWhitespace: (value) => assertType(is.nonEmptyStringAndNotWhitespace(value), "non-empty string and not whitespace", value),
|
|
33424
|
+
emptyObject: (value) => assertType(is.emptyObject(value), "empty object", value),
|
|
33425
|
+
nonEmptyObject: (value) => assertType(is.nonEmptyObject(value), "non-empty object", value),
|
|
33426
|
+
emptySet: (value) => assertType(is.emptySet(value), "empty set", value),
|
|
33427
|
+
nonEmptySet: (value) => assertType(is.nonEmptySet(value), "non-empty set", value),
|
|
33428
|
+
emptyMap: (value) => assertType(is.emptyMap(value), "empty map", value),
|
|
33429
|
+
nonEmptyMap: (value) => assertType(is.nonEmptyMap(value), "non-empty map", value),
|
|
33430
|
+
propertyKey: (value) => assertType(is.propertyKey(value), "PropertyKey", value),
|
|
33431
|
+
formData: (value) => assertType(is.formData(value), "FormData", value),
|
|
33432
|
+
urlSearchParams: (value) => assertType(is.urlSearchParams(value), "URLSearchParams", value),
|
|
33433
|
+
// Numbers.
|
|
33434
|
+
evenInteger: (value) => assertType(is.evenInteger(value), "even integer", value),
|
|
33435
|
+
oddInteger: (value) => assertType(is.oddInteger(value), "odd integer", value),
|
|
33436
|
+
// Two arguments.
|
|
33437
|
+
directInstanceOf: (instance, class_) => assertType(is.directInstanceOf(instance, class_), "T", instance),
|
|
33438
|
+
inRange: (value, range) => assertType(is.inRange(value, range), "in range", value),
|
|
33439
|
+
// Variadic functions.
|
|
33440
|
+
any: (predicate, ...values) => {
|
|
33441
|
+
return assertType(is.any(predicate, ...values), "predicate returns truthy for any value", values, { multipleValues: true });
|
|
33442
|
+
},
|
|
33443
|
+
all: (predicate, ...values) => assertType(is.all(predicate, ...values), "predicate returns truthy for all values", values, { multipleValues: true })
|
|
34073
33444
|
};
|
|
33445
|
+
Object.defineProperties(is, {
|
|
33446
|
+
class: {
|
|
33447
|
+
value: is.class_
|
|
33448
|
+
},
|
|
33449
|
+
function: {
|
|
33450
|
+
value: is.function_
|
|
33451
|
+
},
|
|
33452
|
+
null: {
|
|
33453
|
+
value: is.null_
|
|
33454
|
+
}
|
|
33455
|
+
});
|
|
33456
|
+
Object.defineProperties(exports2.assert, {
|
|
33457
|
+
class: {
|
|
33458
|
+
value: exports2.assert.class_
|
|
33459
|
+
},
|
|
33460
|
+
function: {
|
|
33461
|
+
value: exports2.assert.function_
|
|
33462
|
+
},
|
|
33463
|
+
null: {
|
|
33464
|
+
value: exports2.assert.null_
|
|
33465
|
+
}
|
|
33466
|
+
});
|
|
33467
|
+
exports2.default = is;
|
|
33468
|
+
module2.exports = is;
|
|
33469
|
+
module2.exports.default = is;
|
|
33470
|
+
module2.exports.assert = exports2.assert;
|
|
34074
33471
|
}
|
|
34075
33472
|
});
|
|
34076
33473
|
|
|
34077
|
-
// node_modules/
|
|
34078
|
-
var
|
|
34079
|
-
"node_modules/
|
|
33474
|
+
// node_modules/@jsforce/jsforce-node/lib/request.js
|
|
33475
|
+
var require_request = __commonJS({
|
|
33476
|
+
"node_modules/@jsforce/jsforce-node/lib/request.js"(exports2) {
|
|
34080
33477
|
"use strict";
|
|
34081
|
-
var
|
|
34082
|
-
|
|
34083
|
-
|
|
34084
|
-
|
|
34085
|
-
|
|
34086
|
-
|
|
34087
|
-
|
|
34088
|
-
var Stream = require("stream").Stream;
|
|
34089
|
-
var crypto = require("crypto");
|
|
34090
|
-
var mime = require_mime_types();
|
|
34091
|
-
var asynckit = require_asynckit();
|
|
34092
|
-
var setToStringTag = require_es_set_tostringtag();
|
|
34093
|
-
var hasOwn = require_hasown();
|
|
34094
|
-
var populate = require_populate2();
|
|
34095
|
-
function FormData2(options) {
|
|
34096
|
-
if (!(this instanceof FormData2)) {
|
|
34097
|
-
return new FormData2(options);
|
|
34098
|
-
}
|
|
34099
|
-
this._overheadLength = 0;
|
|
34100
|
-
this._valueLength = 0;
|
|
34101
|
-
this._valuesToMeasure = [];
|
|
34102
|
-
CombinedStream.call(this);
|
|
34103
|
-
options = options || {};
|
|
34104
|
-
for (var option in options) {
|
|
34105
|
-
this[option] = options[option];
|
|
34106
|
-
}
|
|
34107
|
-
}
|
|
34108
|
-
util.inherits(FormData2, CombinedStream);
|
|
34109
|
-
FormData2.LINE_BREAK = "\r\n";
|
|
34110
|
-
FormData2.DEFAULT_CONTENT_TYPE = "application/octet-stream";
|
|
34111
|
-
FormData2.prototype.append = function(field, value, options) {
|
|
34112
|
-
options = options || {};
|
|
34113
|
-
if (typeof options === "string") {
|
|
34114
|
-
options = { filename: options };
|
|
34115
|
-
}
|
|
34116
|
-
var append = CombinedStream.prototype.append.bind(this);
|
|
34117
|
-
if (typeof value === "number" || value == null) {
|
|
34118
|
-
value = String(value);
|
|
33478
|
+
var __createBinding3 = exports2 && exports2.__createBinding || (Object.create ? function(o, m, k, k2) {
|
|
33479
|
+
if (k2 === void 0) k2 = k;
|
|
33480
|
+
var desc = Object.getOwnPropertyDescriptor(m, k);
|
|
33481
|
+
if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
|
|
33482
|
+
desc = { enumerable: true, get: function() {
|
|
33483
|
+
return m[k];
|
|
33484
|
+
} };
|
|
34119
33485
|
}
|
|
34120
|
-
|
|
34121
|
-
|
|
34122
|
-
|
|
33486
|
+
Object.defineProperty(o, k2, desc);
|
|
33487
|
+
} : function(o, m, k, k2) {
|
|
33488
|
+
if (k2 === void 0) k2 = k;
|
|
33489
|
+
o[k2] = m[k];
|
|
33490
|
+
});
|
|
33491
|
+
var __setModuleDefault2 = exports2 && exports2.__setModuleDefault || (Object.create ? function(o, v) {
|
|
33492
|
+
Object.defineProperty(o, "default", { enumerable: true, value: v });
|
|
33493
|
+
} : function(o, v) {
|
|
33494
|
+
o["default"] = v;
|
|
33495
|
+
});
|
|
33496
|
+
var __importStar2 = exports2 && exports2.__importStar || function(mod) {
|
|
33497
|
+
if (mod && mod.__esModule) return mod;
|
|
33498
|
+
var result = {};
|
|
33499
|
+
if (mod != null) {
|
|
33500
|
+
for (var k in mod) if (k !== "default" && Object.prototype.hasOwnProperty.call(mod, k)) __createBinding3(result, mod, k);
|
|
34123
33501
|
}
|
|
34124
|
-
|
|
34125
|
-
|
|
34126
|
-
append(header);
|
|
34127
|
-
append(value);
|
|
34128
|
-
append(footer);
|
|
34129
|
-
this._trackLength(header, value, options);
|
|
33502
|
+
__setModuleDefault2(result, mod);
|
|
33503
|
+
return result;
|
|
34130
33504
|
};
|
|
34131
|
-
|
|
34132
|
-
|
|
34133
|
-
if (options.knownLength != null) {
|
|
34134
|
-
valueLength += Number(options.knownLength);
|
|
34135
|
-
} else if (Buffer.isBuffer(value)) {
|
|
34136
|
-
valueLength = value.length;
|
|
34137
|
-
} else if (typeof value === "string") {
|
|
34138
|
-
valueLength = Buffer.byteLength(value);
|
|
34139
|
-
}
|
|
34140
|
-
this._valueLength += valueLength;
|
|
34141
|
-
this._overheadLength += Buffer.byteLength(header) + FormData2.LINE_BREAK.length;
|
|
34142
|
-
if (!value || !value.path && !(value.readable && hasOwn(value, "httpVersion")) && !(value instanceof Stream)) {
|
|
34143
|
-
return;
|
|
34144
|
-
}
|
|
34145
|
-
if (!options.knownLength) {
|
|
34146
|
-
this._valuesToMeasure.push(value);
|
|
34147
|
-
}
|
|
33505
|
+
var __importDefault3 = exports2 && exports2.__importDefault || function(mod) {
|
|
33506
|
+
return mod && mod.__esModule ? mod : { "default": mod };
|
|
34148
33507
|
};
|
|
34149
|
-
|
|
34150
|
-
|
|
34151
|
-
|
|
34152
|
-
|
|
34153
|
-
|
|
34154
|
-
|
|
34155
|
-
|
|
34156
|
-
|
|
34157
|
-
|
|
33508
|
+
Object.defineProperty(exports2, "__esModule", { value: true });
|
|
33509
|
+
exports2.setDefaults = void 0;
|
|
33510
|
+
var stream_1 = require("stream");
|
|
33511
|
+
var node_fetch_1 = __importStar2(require_lib4());
|
|
33512
|
+
var https_proxy_agent_1 = __importDefault3(require_dist16());
|
|
33513
|
+
var request_helper_1 = require_request_helper();
|
|
33514
|
+
var logger_12 = require_logger2();
|
|
33515
|
+
var is_1 = __importDefault3(require_dist17());
|
|
33516
|
+
var defaults = {};
|
|
33517
|
+
function setDefaults(defaults_) {
|
|
33518
|
+
defaults = defaults_;
|
|
33519
|
+
}
|
|
33520
|
+
exports2.setDefaults = setDefaults;
|
|
33521
|
+
async function startFetchRequest(request2, options, input, output, emitter, counter = 0) {
|
|
33522
|
+
const logger = (0, logger_12.getLogger)("fetch");
|
|
33523
|
+
const { httpProxy, followRedirect } = options;
|
|
33524
|
+
const agent = httpProxy ? (0, https_proxy_agent_1.default)(httpProxy) : void 0;
|
|
33525
|
+
const { url, body, ...rrequest } = request2;
|
|
33526
|
+
const controller = new AbortController();
|
|
33527
|
+
let retryCount = 0;
|
|
33528
|
+
const retryOpts = {
|
|
33529
|
+
statusCodes: options.retry?.statusCodes ?? [420, 429, 500, 502, 503, 504],
|
|
33530
|
+
maxRetries: options.retry?.maxRetries ?? 5,
|
|
33531
|
+
minTimeout: options.retry?.minTimeout ?? 500,
|
|
33532
|
+
timeoutFactor: options.retry?.timeoutFactor ?? 2,
|
|
33533
|
+
errorCodes: options.retry?.errorCodes ?? [
|
|
33534
|
+
"ECONNRESET",
|
|
33535
|
+
"ECONNREFUSED",
|
|
33536
|
+
"ENOTFOUND",
|
|
33537
|
+
"ENETDOWN",
|
|
33538
|
+
"ENETUNREACH",
|
|
33539
|
+
"EHOSTDOWN",
|
|
33540
|
+
"UND_ERR_SOCKET",
|
|
33541
|
+
"ETIMEDOUT",
|
|
33542
|
+
"EPIPE"
|
|
33543
|
+
],
|
|
33544
|
+
methods: options.retry?.methods ?? [
|
|
33545
|
+
"GET",
|
|
33546
|
+
"PUT",
|
|
33547
|
+
"HEAD",
|
|
33548
|
+
"OPTIONS",
|
|
33549
|
+
"DELETE"
|
|
33550
|
+
]
|
|
33551
|
+
};
|
|
33552
|
+
const shouldRetryRequest = (maxRetry, resOrErr) => {
|
|
33553
|
+
if (!retryOpts.methods.includes(request2.method))
|
|
33554
|
+
return false;
|
|
33555
|
+
if (resOrErr instanceof node_fetch_1.Response) {
|
|
33556
|
+
if (retryOpts.statusCodes.includes(resOrErr.status)) {
|
|
33557
|
+
if (maxRetry === retryCount) {
|
|
33558
|
+
return false;
|
|
33559
|
+
} else {
|
|
33560
|
+
return true;
|
|
34158
33561
|
}
|
|
34159
|
-
|
|
34160
|
-
|
|
34161
|
-
|
|
33562
|
+
}
|
|
33563
|
+
return false;
|
|
33564
|
+
} else {
|
|
33565
|
+
if (maxRetry === retryCount)
|
|
33566
|
+
return false;
|
|
33567
|
+
if (resOrErr.name != "FetchError")
|
|
33568
|
+
return false;
|
|
33569
|
+
if (is_1.default.nodeStream(body) && stream_1.Readable.isDisturbed(body)) {
|
|
33570
|
+
logger.debug("Body of type stream was read, unable to retry request.");
|
|
33571
|
+
return false;
|
|
33572
|
+
}
|
|
33573
|
+
if ("code" in resOrErr && resOrErr.code && retryOpts?.errorCodes?.includes(resOrErr.code))
|
|
33574
|
+
return true;
|
|
33575
|
+
return false;
|
|
34162
33576
|
}
|
|
34163
|
-
} else if (hasOwn(value, "httpVersion")) {
|
|
34164
|
-
callback(null, Number(value.headers["content-length"]));
|
|
34165
|
-
} else if (hasOwn(value, "httpModule")) {
|
|
34166
|
-
value.on("response", function(response) {
|
|
34167
|
-
value.pause();
|
|
34168
|
-
callback(null, Number(response.headers["content-length"]));
|
|
34169
|
-
});
|
|
34170
|
-
value.resume();
|
|
34171
|
-
} else {
|
|
34172
|
-
callback("Unknown stream");
|
|
34173
|
-
}
|
|
34174
|
-
};
|
|
34175
|
-
FormData2.prototype._multiPartHeader = function(field, value, options) {
|
|
34176
|
-
if (typeof options.header === "string") {
|
|
34177
|
-
return options.header;
|
|
34178
|
-
}
|
|
34179
|
-
var contentDisposition = this._getContentDisposition(value, options);
|
|
34180
|
-
var contentType = this._getContentType(value, options);
|
|
34181
|
-
var contents = "";
|
|
34182
|
-
var headers = {
|
|
34183
|
-
// add custom disposition as third element or keep it two elements if not
|
|
34184
|
-
"Content-Disposition": ["form-data", 'name="' + field + '"'].concat(contentDisposition || []),
|
|
34185
|
-
// if no content type. allow it to be empty array
|
|
34186
|
-
"Content-Type": [].concat(contentType || [])
|
|
34187
33577
|
};
|
|
34188
|
-
|
|
34189
|
-
|
|
34190
|
-
|
|
34191
|
-
|
|
34192
|
-
|
|
34193
|
-
|
|
34194
|
-
|
|
34195
|
-
|
|
34196
|
-
|
|
33578
|
+
const fetchWithRetries = async (maxRetry = retryOpts?.maxRetries) => {
|
|
33579
|
+
const fetchOpts = {
|
|
33580
|
+
...rrequest,
|
|
33581
|
+
...input && /^(post|put|patch)$/i.test(request2.method) ? { body: input } : {},
|
|
33582
|
+
redirect: "manual",
|
|
33583
|
+
signal: controller.signal,
|
|
33584
|
+
agent
|
|
33585
|
+
};
|
|
33586
|
+
try {
|
|
33587
|
+
const res2 = await (0, node_fetch_1.default)(url, fetchOpts);
|
|
33588
|
+
if (shouldRetryRequest(retryOpts.maxRetries, res2)) {
|
|
33589
|
+
logger.debug(`retrying for the ${retryCount + 1} time`);
|
|
33590
|
+
logger.debug("reason: statusCode match");
|
|
33591
|
+
await sleep(retryCount === 0 ? retryOpts.minTimeout : retryOpts.minTimeout * retryOpts.timeoutFactor ** retryCount);
|
|
33592
|
+
emitter.emit("retry", retryCount);
|
|
33593
|
+
retryCount++;
|
|
33594
|
+
return await fetchWithRetries(maxRetry);
|
|
34197
33595
|
}
|
|
34198
|
-
|
|
34199
|
-
|
|
33596
|
+
return res2;
|
|
33597
|
+
} catch (err) {
|
|
33598
|
+
logger.debug("Request failed");
|
|
33599
|
+
const error = err;
|
|
33600
|
+
if (error.name === "AbortError") {
|
|
33601
|
+
throw error;
|
|
34200
33602
|
}
|
|
34201
|
-
if (
|
|
34202
|
-
|
|
33603
|
+
if (shouldRetryRequest(retryOpts.maxRetries, error)) {
|
|
33604
|
+
logger.debug(`retrying for the ${retryCount + 1} time`);
|
|
33605
|
+
logger.debug(`Error: ${err.message}`);
|
|
33606
|
+
await sleep(retryCount === 0 ? retryOpts.minTimeout : retryOpts.minTimeout * retryOpts.timeoutFactor ** retryCount);
|
|
33607
|
+
emitter.emit("retry", retryCount);
|
|
33608
|
+
retryCount++;
|
|
33609
|
+
return fetchWithRetries(maxRetry);
|
|
34203
33610
|
}
|
|
34204
|
-
|
|
34205
|
-
|
|
34206
|
-
|
|
34207
|
-
|
|
34208
|
-
|
|
34209
|
-
|
|
34210
|
-
|
|
34211
|
-
|
|
34212
|
-
|
|
34213
|
-
|
|
34214
|
-
|
|
34215
|
-
|
|
33611
|
+
logger.debug("Skipping retry...");
|
|
33612
|
+
if (maxRetry === retryCount) {
|
|
33613
|
+
throw err;
|
|
33614
|
+
} else {
|
|
33615
|
+
throw err;
|
|
33616
|
+
}
|
|
33617
|
+
}
|
|
33618
|
+
};
|
|
33619
|
+
let res;
|
|
33620
|
+
const fetchTimeout = options.timeout ?? 6e4;
|
|
33621
|
+
try {
|
|
33622
|
+
res = await (0, request_helper_1.executeWithTimeout)(fetchWithRetries, fetchTimeout, () => controller.abort());
|
|
33623
|
+
} catch (err) {
|
|
33624
|
+
emitter.emit("error", err);
|
|
33625
|
+
return;
|
|
34216
33626
|
}
|
|
34217
|
-
|
|
34218
|
-
|
|
33627
|
+
const headers = {};
|
|
33628
|
+
for (const headerName of res.headers.keys()) {
|
|
33629
|
+
headers[headerName.toLowerCase()] = res.headers.get(headerName);
|
|
34219
33630
|
}
|
|
34220
|
-
|
|
34221
|
-
|
|
34222
|
-
|
|
34223
|
-
|
|
34224
|
-
|
|
33631
|
+
const response = {
|
|
33632
|
+
statusCode: res.status,
|
|
33633
|
+
headers
|
|
33634
|
+
};
|
|
33635
|
+
if (followRedirect && (0, request_helper_1.isRedirect)(response.statusCode)) {
|
|
33636
|
+
try {
|
|
33637
|
+
(0, request_helper_1.performRedirectRequest)(request2, response, followRedirect, counter, (req) => startFetchRequest(req, options, void 0, output, emitter, counter + 1));
|
|
33638
|
+
} catch (err) {
|
|
33639
|
+
emitter.emit("error", err);
|
|
33640
|
+
}
|
|
33641
|
+
return;
|
|
34225
33642
|
}
|
|
34226
|
-
|
|
34227
|
-
|
|
33643
|
+
emitter.emit("response", response);
|
|
33644
|
+
res.body.pipe(output);
|
|
33645
|
+
}
|
|
33646
|
+
function request(req, options_ = {}) {
|
|
33647
|
+
const options = { ...defaults, ...options_ };
|
|
33648
|
+
const { input, output, stream } = (0, request_helper_1.createHttpRequestHandlerStreams)(req, options);
|
|
33649
|
+
startFetchRequest(req, options, input, output, stream);
|
|
33650
|
+
return stream;
|
|
33651
|
+
}
|
|
33652
|
+
exports2.default = request;
|
|
33653
|
+
var sleep = (ms) => new Promise((r) => setTimeout(r, ms));
|
|
33654
|
+
}
|
|
33655
|
+
});
|
|
33656
|
+
|
|
33657
|
+
// node_modules/@jsforce/jsforce-node/lib/util/promise.js
|
|
33658
|
+
var require_promise = __commonJS({
|
|
33659
|
+
"node_modules/@jsforce/jsforce-node/lib/util/promise.js"(exports2) {
|
|
33660
|
+
"use strict";
|
|
33661
|
+
Object.defineProperty(exports2, "__esModule", { value: true });
|
|
33662
|
+
exports2.StreamPromise = void 0;
|
|
33663
|
+
var stream_1 = require("stream");
|
|
33664
|
+
var StreamPromise = class _StreamPromise extends Promise {
|
|
33665
|
+
stream() {
|
|
33666
|
+
return new stream_1.Duplex();
|
|
34228
33667
|
}
|
|
34229
|
-
|
|
34230
|
-
|
|
33668
|
+
static create(builder) {
|
|
33669
|
+
const { stream, promise } = builder();
|
|
33670
|
+
const streamPromise = new _StreamPromise((resolve, reject) => {
|
|
33671
|
+
promise.then(resolve, reject);
|
|
33672
|
+
});
|
|
33673
|
+
streamPromise.stream = () => stream;
|
|
33674
|
+
return streamPromise;
|
|
34231
33675
|
}
|
|
34232
|
-
|
|
34233
|
-
|
|
33676
|
+
};
|
|
33677
|
+
exports2.StreamPromise = StreamPromise;
|
|
33678
|
+
}
|
|
33679
|
+
});
|
|
33680
|
+
|
|
33681
|
+
// node_modules/@jsforce/jsforce-node/lib/browser/jsonp.js
|
|
33682
|
+
var require_jsonp = __commonJS({
|
|
33683
|
+
"node_modules/@jsforce/jsforce-node/lib/browser/jsonp.js"(exports2) {
|
|
33684
|
+
"use strict";
|
|
33685
|
+
Object.defineProperty(exports2, "__esModule", { value: true });
|
|
33686
|
+
var stream_1 = require("stream");
|
|
33687
|
+
var _index = 0;
|
|
33688
|
+
async function processJsonpRequest(params, jsonpParam, timeout) {
|
|
33689
|
+
if (params.method.toUpperCase() !== "GET") {
|
|
33690
|
+
throw new Error("JSONP only supports GET request.");
|
|
34234
33691
|
}
|
|
34235
|
-
|
|
34236
|
-
|
|
33692
|
+
_index += 1;
|
|
33693
|
+
const cbFuncName = `_jsforce_jsonpCallback_${_index}`;
|
|
33694
|
+
const callbacks = window;
|
|
33695
|
+
let url = params.url;
|
|
33696
|
+
url += url.indexOf("?") > 0 ? "&" : "?";
|
|
33697
|
+
url += `${jsonpParam}=${cbFuncName}`;
|
|
33698
|
+
const script = document.createElement("script");
|
|
33699
|
+
script.type = "text/javascript";
|
|
33700
|
+
script.src = url;
|
|
33701
|
+
if (document.documentElement) {
|
|
33702
|
+
document.documentElement.appendChild(script);
|
|
34237
33703
|
}
|
|
34238
|
-
|
|
34239
|
-
|
|
34240
|
-
|
|
34241
|
-
|
|
34242
|
-
|
|
34243
|
-
|
|
34244
|
-
|
|
34245
|
-
|
|
34246
|
-
|
|
34247
|
-
|
|
34248
|
-
|
|
34249
|
-
|
|
34250
|
-
|
|
34251
|
-
|
|
34252
|
-
|
|
34253
|
-
|
|
34254
|
-
|
|
34255
|
-
var formHeaders = {
|
|
34256
|
-
"content-type": "multipart/form-data; boundary=" + this.getBoundary()
|
|
34257
|
-
};
|
|
34258
|
-
for (header in userHeaders) {
|
|
34259
|
-
if (hasOwn(userHeaders, header)) {
|
|
34260
|
-
formHeaders[header.toLowerCase()] = userHeaders[header];
|
|
33704
|
+
let pid;
|
|
33705
|
+
try {
|
|
33706
|
+
const res = await new Promise((resolve, reject) => {
|
|
33707
|
+
pid = setTimeout(() => {
|
|
33708
|
+
reject(new Error("JSONP call time out."));
|
|
33709
|
+
}, timeout);
|
|
33710
|
+
callbacks[cbFuncName] = resolve;
|
|
33711
|
+
});
|
|
33712
|
+
return {
|
|
33713
|
+
statusCode: 200,
|
|
33714
|
+
headers: { "content-type": "application/json" },
|
|
33715
|
+
body: JSON.stringify(res)
|
|
33716
|
+
};
|
|
33717
|
+
} finally {
|
|
33718
|
+
clearTimeout(pid);
|
|
33719
|
+
if (document.documentElement) {
|
|
33720
|
+
document.documentElement.removeChild(script);
|
|
34261
33721
|
}
|
|
33722
|
+
delete callbacks[cbFuncName];
|
|
34262
33723
|
}
|
|
34263
|
-
|
|
34264
|
-
|
|
34265
|
-
|
|
34266
|
-
|
|
34267
|
-
|
|
34268
|
-
|
|
34269
|
-
|
|
33724
|
+
}
|
|
33725
|
+
function createRequest(jsonpParam = "callback", timeout = 1e4) {
|
|
33726
|
+
return (params) => {
|
|
33727
|
+
const stream = new stream_1.Transform({
|
|
33728
|
+
transform(chunk, encoding, callback) {
|
|
33729
|
+
callback();
|
|
33730
|
+
},
|
|
33731
|
+
flush() {
|
|
33732
|
+
(async () => {
|
|
33733
|
+
const response = await processJsonpRequest(params, jsonpParam, timeout);
|
|
33734
|
+
stream.emit("response", response);
|
|
33735
|
+
stream.emit("complete", response);
|
|
33736
|
+
stream.push(response.body);
|
|
33737
|
+
stream.push(null);
|
|
33738
|
+
})();
|
|
33739
|
+
}
|
|
33740
|
+
});
|
|
33741
|
+
stream.end();
|
|
33742
|
+
return stream;
|
|
33743
|
+
};
|
|
33744
|
+
}
|
|
33745
|
+
exports2.default = {
|
|
33746
|
+
supported: typeof window !== "undefined" && typeof document !== "undefined",
|
|
33747
|
+
createRequest
|
|
34270
33748
|
};
|
|
34271
|
-
|
|
34272
|
-
|
|
34273
|
-
|
|
33749
|
+
}
|
|
33750
|
+
});
|
|
33751
|
+
|
|
33752
|
+
// node_modules/@jsforce/jsforce-node/lib/browser/canvas.js
|
|
33753
|
+
var require_canvas = __commonJS({
|
|
33754
|
+
"node_modules/@jsforce/jsforce-node/lib/browser/canvas.js"(exports2) {
|
|
33755
|
+
"use strict";
|
|
33756
|
+
Object.defineProperty(exports2, "__esModule", { value: true });
|
|
33757
|
+
var stream_1 = require("stream");
|
|
33758
|
+
function parseHeaders(hs) {
|
|
33759
|
+
const headers = {};
|
|
33760
|
+
for (const line of hs.split(/\n/)) {
|
|
33761
|
+
const [name, value] = line.split(/\s*:\s*/);
|
|
33762
|
+
headers[name.toLowerCase()] = value;
|
|
34274
33763
|
}
|
|
34275
|
-
return
|
|
34276
|
-
}
|
|
34277
|
-
|
|
34278
|
-
|
|
34279
|
-
|
|
34280
|
-
|
|
34281
|
-
|
|
34282
|
-
|
|
34283
|
-
|
|
33764
|
+
return headers;
|
|
33765
|
+
}
|
|
33766
|
+
async function processCanvasRequest(params, signedRequest, requestBody) {
|
|
33767
|
+
const settings = {
|
|
33768
|
+
client: signedRequest.client,
|
|
33769
|
+
method: params.method,
|
|
33770
|
+
data: requestBody
|
|
33771
|
+
};
|
|
33772
|
+
const paramHeaders = params.headers;
|
|
33773
|
+
if (paramHeaders) {
|
|
33774
|
+
settings.headers = {};
|
|
33775
|
+
for (const name of Object.keys(paramHeaders)) {
|
|
33776
|
+
if (name.toLowerCase() === "content-type") {
|
|
33777
|
+
settings.contentType = paramHeaders[name];
|
|
34284
33778
|
} else {
|
|
34285
|
-
|
|
33779
|
+
settings.headers[name] = paramHeaders[name];
|
|
34286
33780
|
}
|
|
34287
|
-
|
|
34288
|
-
|
|
33781
|
+
}
|
|
33782
|
+
}
|
|
33783
|
+
const data = await new Promise((resolve, reject) => {
|
|
33784
|
+
settings.success = resolve;
|
|
33785
|
+
settings.failure = reject;
|
|
33786
|
+
Sfdc.canvas.client.ajax(params.url, settings);
|
|
33787
|
+
});
|
|
33788
|
+
const headers = parseHeaders(data.responseHeaders);
|
|
33789
|
+
let responseBody = data.payload;
|
|
33790
|
+
if (typeof responseBody !== "string") {
|
|
33791
|
+
responseBody = JSON.stringify(responseBody);
|
|
33792
|
+
}
|
|
33793
|
+
return {
|
|
33794
|
+
statusCode: data.status,
|
|
33795
|
+
headers,
|
|
33796
|
+
body: responseBody
|
|
33797
|
+
};
|
|
33798
|
+
}
|
|
33799
|
+
function createRequest(signedRequest) {
|
|
33800
|
+
return (params) => {
|
|
33801
|
+
const buf = [];
|
|
33802
|
+
const stream = new stream_1.Transform({
|
|
33803
|
+
transform(chunk, encoding, callback) {
|
|
33804
|
+
buf.push(typeof chunk === "string" ? chunk : chunk.toString("utf8"));
|
|
33805
|
+
callback();
|
|
33806
|
+
},
|
|
33807
|
+
flush() {
|
|
33808
|
+
(async () => {
|
|
33809
|
+
const body = buf.join("");
|
|
33810
|
+
const response = await processCanvasRequest(params, signedRequest, body);
|
|
33811
|
+
stream.emit("response", response);
|
|
33812
|
+
stream.emit("complete", response);
|
|
33813
|
+
stream.push(response.body);
|
|
33814
|
+
stream.push(null);
|
|
33815
|
+
})();
|
|
34289
33816
|
}
|
|
33817
|
+
});
|
|
33818
|
+
if (params.body) {
|
|
33819
|
+
stream.end(params.body);
|
|
34290
33820
|
}
|
|
33821
|
+
return stream;
|
|
33822
|
+
};
|
|
33823
|
+
}
|
|
33824
|
+
exports2.default = {
|
|
33825
|
+
supported: typeof Sfdc === "object" && typeof Sfdc.canvas !== "undefined",
|
|
33826
|
+
createRequest
|
|
33827
|
+
};
|
|
33828
|
+
}
|
|
33829
|
+
});
|
|
33830
|
+
|
|
33831
|
+
// node_modules/@jsforce/jsforce-node/lib/transport.js
|
|
33832
|
+
var require_transport2 = __commonJS({
|
|
33833
|
+
"node_modules/@jsforce/jsforce-node/lib/transport.js"(exports2) {
|
|
33834
|
+
"use strict";
|
|
33835
|
+
var __createBinding3 = exports2 && exports2.__createBinding || (Object.create ? function(o, m, k, k2) {
|
|
33836
|
+
if (k2 === void 0) k2 = k;
|
|
33837
|
+
var desc = Object.getOwnPropertyDescriptor(m, k);
|
|
33838
|
+
if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
|
|
33839
|
+
desc = { enumerable: true, get: function() {
|
|
33840
|
+
return m[k];
|
|
33841
|
+
} };
|
|
34291
33842
|
}
|
|
34292
|
-
|
|
33843
|
+
Object.defineProperty(o, k2, desc);
|
|
33844
|
+
} : function(o, m, k, k2) {
|
|
33845
|
+
if (k2 === void 0) k2 = k;
|
|
33846
|
+
o[k2] = m[k];
|
|
33847
|
+
});
|
|
33848
|
+
var __setModuleDefault2 = exports2 && exports2.__setModuleDefault || (Object.create ? function(o, v) {
|
|
33849
|
+
Object.defineProperty(o, "default", { enumerable: true, value: v });
|
|
33850
|
+
} : function(o, v) {
|
|
33851
|
+
o["default"] = v;
|
|
33852
|
+
});
|
|
33853
|
+
var __importStar2 = exports2 && exports2.__importStar || function(mod) {
|
|
33854
|
+
if (mod && mod.__esModule) return mod;
|
|
33855
|
+
var result = {};
|
|
33856
|
+
if (mod != null) {
|
|
33857
|
+
for (var k in mod) if (k !== "default" && Object.prototype.hasOwnProperty.call(mod, k)) __createBinding3(result, mod, k);
|
|
33858
|
+
}
|
|
33859
|
+
__setModuleDefault2(result, mod);
|
|
33860
|
+
return result;
|
|
34293
33861
|
};
|
|
34294
|
-
|
|
34295
|
-
|
|
33862
|
+
var __importDefault3 = exports2 && exports2.__importDefault || function(mod) {
|
|
33863
|
+
return mod && mod.__esModule ? mod : { "default": mod };
|
|
34296
33864
|
};
|
|
34297
|
-
|
|
34298
|
-
|
|
34299
|
-
|
|
34300
|
-
|
|
33865
|
+
Object.defineProperty(exports2, "__esModule", { value: true });
|
|
33866
|
+
exports2.HttpProxyTransport = exports2.XdProxyTransport = exports2.CanvasTransport = exports2.JsonpTransport = exports2.Transport = void 0;
|
|
33867
|
+
var request_1 = __importStar2(require_request());
|
|
33868
|
+
var promise_1 = require_promise();
|
|
33869
|
+
var jsonp_1 = __importDefault3(require_jsonp());
|
|
33870
|
+
var canvas_1 = __importDefault3(require_canvas());
|
|
33871
|
+
function normalizeApiHost(apiHost) {
|
|
33872
|
+
const m = /(\w+)\.(visual\.force|salesforce)\.com$/.exec(apiHost);
|
|
33873
|
+
if (m) {
|
|
33874
|
+
return `${m[1]}.salesforce.com`;
|
|
34301
33875
|
}
|
|
34302
|
-
|
|
34303
|
-
|
|
33876
|
+
return apiHost;
|
|
33877
|
+
}
|
|
33878
|
+
(0, request_1.setDefaults)({
|
|
33879
|
+
httpProxy: process.env.https_proxy ?? process.env.http_proxy ?? process.env.HTTPS_PROXY ?? process.env.HTTP_PROXY ?? void 0,
|
|
33880
|
+
timeout: process.env.HTTP_TIMEOUT ? parseInt(process.env.HTTP_TIMEOUT, 10) : void 0,
|
|
33881
|
+
followRedirect: true
|
|
33882
|
+
});
|
|
33883
|
+
var baseUrl = typeof window !== "undefined" && window.location && window.location.host ? `https://${normalizeApiHost(window.location.host)}` : process.env.LOCATION_BASE_URL || "";
|
|
33884
|
+
var Transport = class {
|
|
33885
|
+
/**
|
|
33886
|
+
*/
|
|
33887
|
+
httpRequest(req, options = {}) {
|
|
33888
|
+
return promise_1.StreamPromise.create(() => {
|
|
33889
|
+
const createStream = this.getRequestStreamCreator();
|
|
33890
|
+
const stream = createStream(req, options);
|
|
33891
|
+
const promise = new Promise((resolve, reject) => {
|
|
33892
|
+
stream.on("complete", (res) => resolve(res)).on("error", reject);
|
|
33893
|
+
});
|
|
33894
|
+
return { stream, promise };
|
|
33895
|
+
});
|
|
33896
|
+
}
|
|
33897
|
+
/**
|
|
33898
|
+
* @protected
|
|
33899
|
+
*/
|
|
33900
|
+
getRequestStreamCreator() {
|
|
33901
|
+
return request_1.default;
|
|
34304
33902
|
}
|
|
34305
|
-
return knownLength;
|
|
34306
33903
|
};
|
|
34307
|
-
|
|
34308
|
-
|
|
34309
|
-
|
|
34310
|
-
|
|
33904
|
+
exports2.Transport = Transport;
|
|
33905
|
+
var JsonpTransport = class extends Transport {
|
|
33906
|
+
static supprted = jsonp_1.default.supported;
|
|
33907
|
+
_jsonpParam;
|
|
33908
|
+
constructor(jsonpParam) {
|
|
33909
|
+
super();
|
|
33910
|
+
this._jsonpParam = jsonpParam;
|
|
33911
|
+
}
|
|
33912
|
+
getRequestStreamCreator() {
|
|
33913
|
+
const jsonpRequest = jsonp_1.default.createRequest(this._jsonpParam);
|
|
33914
|
+
return (params) => jsonpRequest(params);
|
|
34311
33915
|
}
|
|
34312
|
-
return hasKnownLength;
|
|
34313
33916
|
};
|
|
34314
|
-
|
|
34315
|
-
|
|
34316
|
-
|
|
34317
|
-
|
|
33917
|
+
exports2.JsonpTransport = JsonpTransport;
|
|
33918
|
+
var CanvasTransport = class extends Transport {
|
|
33919
|
+
static supported = canvas_1.default.supported;
|
|
33920
|
+
_signedRequest;
|
|
33921
|
+
constructor(signedRequest) {
|
|
33922
|
+
super();
|
|
33923
|
+
this._signedRequest = signedRequest;
|
|
34318
33924
|
}
|
|
34319
|
-
|
|
34320
|
-
|
|
34321
|
-
return;
|
|
33925
|
+
getRequestStreamCreator() {
|
|
33926
|
+
const canvasRequest = canvas_1.default.createRequest(this._signedRequest);
|
|
33927
|
+
return (params) => canvasRequest(params);
|
|
34322
33928
|
}
|
|
34323
|
-
asynckit.parallel(this._valuesToMeasure, this._lengthRetriever, function(err, values) {
|
|
34324
|
-
if (err) {
|
|
34325
|
-
cb(err);
|
|
34326
|
-
return;
|
|
34327
|
-
}
|
|
34328
|
-
values.forEach(function(length) {
|
|
34329
|
-
knownLength += length;
|
|
34330
|
-
});
|
|
34331
|
-
cb(null, knownLength);
|
|
34332
|
-
});
|
|
34333
33929
|
};
|
|
34334
|
-
|
|
34335
|
-
|
|
34336
|
-
|
|
34337
|
-
|
|
34338
|
-
|
|
34339
|
-
|
|
34340
|
-
|
|
34341
|
-
|
|
34342
|
-
path: params.pathname,
|
|
34343
|
-
host: params.hostname,
|
|
34344
|
-
protocol: params.protocol
|
|
34345
|
-
}, defaults);
|
|
34346
|
-
} else {
|
|
34347
|
-
options = populate(params, defaults);
|
|
34348
|
-
if (!options.port) {
|
|
34349
|
-
options.port = options.protocol === "https:" ? 443 : 80;
|
|
33930
|
+
exports2.CanvasTransport = CanvasTransport;
|
|
33931
|
+
function createXdProxyRequest(req, proxyUrl) {
|
|
33932
|
+
const headers = {
|
|
33933
|
+
"salesforceproxy-endpoint": req.url
|
|
33934
|
+
};
|
|
33935
|
+
if (req.headers) {
|
|
33936
|
+
for (const name of Object.keys(req.headers)) {
|
|
33937
|
+
headers[name] = req.headers[name];
|
|
34350
33938
|
}
|
|
34351
33939
|
}
|
|
34352
|
-
|
|
34353
|
-
|
|
34354
|
-
|
|
34355
|
-
|
|
34356
|
-
|
|
33940
|
+
const nocache = `${Date.now()}.${String(Math.random()).substring(2)}`;
|
|
33941
|
+
return {
|
|
33942
|
+
method: req.method,
|
|
33943
|
+
url: `${proxyUrl}?${nocache}`,
|
|
33944
|
+
headers,
|
|
33945
|
+
...req.body != null ? { body: req.body } : {}
|
|
33946
|
+
};
|
|
33947
|
+
}
|
|
33948
|
+
var XdProxyTransport = class extends Transport {
|
|
33949
|
+
_xdProxyUrl;
|
|
33950
|
+
constructor(xdProxyUrl) {
|
|
33951
|
+
super();
|
|
33952
|
+
this._xdProxyUrl = xdProxyUrl;
|
|
34357
33953
|
}
|
|
34358
|
-
|
|
34359
|
-
|
|
34360
|
-
|
|
34361
|
-
|
|
34362
|
-
|
|
34363
|
-
|
|
34364
|
-
|
|
34365
|
-
}
|
|
34366
|
-
|
|
34367
|
-
|
|
34368
|
-
|
|
34369
|
-
var callback = function(error, responce) {
|
|
34370
|
-
request.removeListener("error", callback);
|
|
34371
|
-
request.removeListener("response", onResponse);
|
|
34372
|
-
return cb.call(this, error, responce);
|
|
34373
|
-
};
|
|
34374
|
-
onResponse = callback.bind(this, null);
|
|
34375
|
-
request.on("error", callback);
|
|
34376
|
-
request.on("response", onResponse);
|
|
34377
|
-
}
|
|
34378
|
-
}.bind(this));
|
|
34379
|
-
return request;
|
|
34380
|
-
};
|
|
34381
|
-
FormData2.prototype._error = function(err) {
|
|
34382
|
-
if (!this.error) {
|
|
34383
|
-
this.error = err;
|
|
34384
|
-
this.pause();
|
|
34385
|
-
this.emit("error", err);
|
|
33954
|
+
/**
|
|
33955
|
+
* Make HTTP request via AJAX proxy
|
|
33956
|
+
*/
|
|
33957
|
+
httpRequest(req, _options = {}) {
|
|
33958
|
+
const xdProxyUrl = this._xdProxyUrl;
|
|
33959
|
+
const { url, body, ...rreq } = req;
|
|
33960
|
+
const canonicalUrl = url.startsWith("/") ? baseUrl + url : url;
|
|
33961
|
+
const xdProxyReq = createXdProxyRequest({ ...rreq, url: canonicalUrl, body }, xdProxyUrl);
|
|
33962
|
+
return super.httpRequest(xdProxyReq, {
|
|
33963
|
+
followRedirect: (redirectUrl) => createXdProxyRequest({ ...rreq, method: "GET", url: redirectUrl }, xdProxyUrl)
|
|
33964
|
+
});
|
|
34386
33965
|
}
|
|
34387
33966
|
};
|
|
34388
|
-
|
|
34389
|
-
|
|
33967
|
+
exports2.XdProxyTransport = XdProxyTransport;
|
|
33968
|
+
var HttpProxyTransport = class extends Transport {
|
|
33969
|
+
_httpProxy;
|
|
33970
|
+
constructor(httpProxy) {
|
|
33971
|
+
super();
|
|
33972
|
+
this._httpProxy = httpProxy;
|
|
33973
|
+
}
|
|
33974
|
+
/**
|
|
33975
|
+
* Make HTTP request via proxy server
|
|
33976
|
+
*/
|
|
33977
|
+
httpRequest(req, options_ = {}) {
|
|
33978
|
+
const options = { ...options_, httpProxy: this._httpProxy };
|
|
33979
|
+
return super.httpRequest(req, options);
|
|
33980
|
+
}
|
|
34390
33981
|
};
|
|
34391
|
-
|
|
34392
|
-
|
|
33982
|
+
exports2.HttpProxyTransport = HttpProxyTransport;
|
|
33983
|
+
exports2.default = Transport;
|
|
34393
33984
|
}
|
|
34394
33985
|
});
|
|
34395
33986
|
|
|
@@ -34398,7 +33989,7 @@ var require_VERSION = __commonJS({
|
|
|
34398
33989
|
"node_modules/@jsforce/jsforce-node/lib/VERSION.js"(exports2) {
|
|
34399
33990
|
"use strict";
|
|
34400
33991
|
Object.defineProperty(exports2, "__esModule", { value: true });
|
|
34401
|
-
exports2.default = "3.
|
|
33992
|
+
exports2.default = "3.10.0";
|
|
34402
33993
|
}
|
|
34403
33994
|
});
|
|
34404
33995
|
|
|
@@ -44485,7 +44076,7 @@ var require_http_api = __commonJS({
|
|
|
44485
44076
|
return mod && mod.__esModule ? mod : { "default": mod };
|
|
44486
44077
|
};
|
|
44487
44078
|
Object.defineProperty(exports2, "__esModule", { value: true });
|
|
44488
|
-
exports2.HttpApi = void 0;
|
|
44079
|
+
exports2.isBrowser = exports2.HttpApi = void 0;
|
|
44489
44080
|
var events_1 = require("events");
|
|
44490
44081
|
var xml2js_1 = __importDefault3(require_xml2js());
|
|
44491
44082
|
var logger_12 = require_logger2();
|
|
@@ -44595,7 +44186,9 @@ var require_http_api = __commonJS({
|
|
|
44595
44186
|
}
|
|
44596
44187
|
const bodySize = (0, get_body_size_1.getBodySize)(request.body, headers);
|
|
44597
44188
|
const cannotHaveBody = ["GET", "HEAD", "OPTIONS"].includes(request.method);
|
|
44598
|
-
|
|
44189
|
+
const isBrowser = "window" in globalThis || "self" in globalThis;
|
|
44190
|
+
if (!isBrowser && // Don't set content-length in browsers as it's not allowed
|
|
44191
|
+
!cannotHaveBody && !!request.body && !("transfer-encoding" in headers) && !("content-length" in headers) && !!bodySize) {
|
|
44599
44192
|
this._logger.debug(`missing 'content-length' header, setting it to: ${bodySize}`);
|
|
44600
44193
|
headers["content-length"] = String(bodySize);
|
|
44601
44194
|
}
|
|
@@ -44727,6 +44320,7 @@ See \`error.data\` for the full html response.`, error.errorCode, error.message)
|
|
|
44727
44320
|
}
|
|
44728
44321
|
};
|
|
44729
44322
|
exports2.default = HttpApi;
|
|
44323
|
+
exports2.isBrowser = "window" in globalThis || "self" in globalThis;
|
|
44730
44324
|
}
|
|
44731
44325
|
});
|
|
44732
44326
|
|
|
@@ -53394,12 +52988,36 @@ var require_jwt = __commonJS({
|
|
|
53394
52988
|
var require_soap = __commonJS({
|
|
53395
52989
|
"node_modules/@jsforce/jsforce-node/lib/soap.js"(exports2) {
|
|
53396
52990
|
"use strict";
|
|
53397
|
-
var
|
|
53398
|
-
|
|
52991
|
+
var __createBinding3 = exports2 && exports2.__createBinding || (Object.create ? function(o, m, k, k2) {
|
|
52992
|
+
if (k2 === void 0) k2 = k;
|
|
52993
|
+
var desc = Object.getOwnPropertyDescriptor(m, k);
|
|
52994
|
+
if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
|
|
52995
|
+
desc = { enumerable: true, get: function() {
|
|
52996
|
+
return m[k];
|
|
52997
|
+
} };
|
|
52998
|
+
}
|
|
52999
|
+
Object.defineProperty(o, k2, desc);
|
|
53000
|
+
} : function(o, m, k, k2) {
|
|
53001
|
+
if (k2 === void 0) k2 = k;
|
|
53002
|
+
o[k2] = m[k];
|
|
53003
|
+
});
|
|
53004
|
+
var __setModuleDefault2 = exports2 && exports2.__setModuleDefault || (Object.create ? function(o, v) {
|
|
53005
|
+
Object.defineProperty(o, "default", { enumerable: true, value: v });
|
|
53006
|
+
} : function(o, v) {
|
|
53007
|
+
o["default"] = v;
|
|
53008
|
+
});
|
|
53009
|
+
var __importStar2 = exports2 && exports2.__importStar || function(mod) {
|
|
53010
|
+
if (mod && mod.__esModule) return mod;
|
|
53011
|
+
var result = {};
|
|
53012
|
+
if (mod != null) {
|
|
53013
|
+
for (var k in mod) if (k !== "default" && Object.prototype.hasOwnProperty.call(mod, k)) __createBinding3(result, mod, k);
|
|
53014
|
+
}
|
|
53015
|
+
__setModuleDefault2(result, mod);
|
|
53016
|
+
return result;
|
|
53399
53017
|
};
|
|
53400
53018
|
Object.defineProperty(exports2, "__esModule", { value: true });
|
|
53401
53019
|
exports2.SOAP = exports2.castTypeUsingSchema = void 0;
|
|
53402
|
-
var http_api_1 =
|
|
53020
|
+
var http_api_1 = __importStar2(require_http_api());
|
|
53403
53021
|
var function_1 = require_function2();
|
|
53404
53022
|
var get_body_size_1 = require_get_body_size();
|
|
53405
53023
|
var jwt_1 = require_jwt();
|
|
@@ -53548,7 +53166,8 @@ var require_soap = __commonJS({
|
|
|
53548
53166
|
request.body = this._createEnvelope(request._message);
|
|
53549
53167
|
const headers = request.headers || {};
|
|
53550
53168
|
const bodySize = (0, get_body_size_1.getBodySize)(request.body, request.headers);
|
|
53551
|
-
if (
|
|
53169
|
+
if (!http_api_1.isBrowser && // Don't set content-length in browsers as it's not allowed
|
|
53170
|
+
request.method === "POST" && !("transfer-encoding" in headers) && !("content-length" in headers) && !!bodySize) {
|
|
53552
53171
|
this._logger.debug(`missing 'content-length' header, setting it to: ${bodySize}`);
|
|
53553
53172
|
headers["content-length"] = String(bodySize);
|
|
53554
53173
|
}
|
|
@@ -93903,6 +93522,12 @@ var init_sfdx_project_schema = __esm({
|
|
|
93903
93522
|
],
|
|
93904
93523
|
type: "object"
|
|
93905
93524
|
},
|
|
93525
|
+
calculateTransitiveDependencies: {
|
|
93526
|
+
default: false,
|
|
93527
|
+
description: "Set to true if only specifing direct package dependencies and the transitive (i.e., indirect) dependencies should be calculated by Salesforce.",
|
|
93528
|
+
title: "Calculate Transitive Dependencies",
|
|
93529
|
+
type: "boolean"
|
|
93530
|
+
},
|
|
93906
93531
|
default: {
|
|
93907
93532
|
default: true,
|
|
93908
93533
|
description: "If you have specified more than one path, include this parameter for the default path to indicate which is the default package directory.",
|
|
@@ -111409,7 +111034,7 @@ var require_deviceOauthService = __commonJS({
|
|
|
111409
111034
|
var transport_1 = __importDefault3(require_transport2());
|
|
111410
111035
|
var kit_1 = require_lib2();
|
|
111411
111036
|
var ts_types_1 = require_lib();
|
|
111412
|
-
var form_data_1 = __importDefault3(
|
|
111037
|
+
var form_data_1 = __importDefault3(require_form_data());
|
|
111413
111038
|
var logger_12 = require_logger();
|
|
111414
111039
|
var authInfo_12 = require_authInfo();
|
|
111415
111040
|
var connection_12 = require_connection3();
|