@nsshunt/stsuxvue 1.0.115 → 1.0.116
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/stsuxvue.cjs +35 -5
- package/dist/stsuxvue.cjs.map +1 -1
- package/dist/stsuxvue.mjs +35 -5
- package/dist/stsuxvue.mjs.map +1 -1
- package/package.json +5 -5
package/dist/stsuxvue.cjs
CHANGED
|
@@ -10815,12 +10815,30 @@ var parseHeaders_default = (rawHeaders) => {
|
|
|
10815
10815
|
//#endregion
|
|
10816
10816
|
//#region node_modules/axios/lib/core/AxiosHeaders.js
|
|
10817
10817
|
var $internals = Symbol("internals");
|
|
10818
|
+
var isValidHeaderValue = (value) => !/[\r\n]/.test(value);
|
|
10819
|
+
function assertValidHeaderValue(value, header) {
|
|
10820
|
+
if (value === false || value == null) return;
|
|
10821
|
+
if (utils_default.isArray(value)) {
|
|
10822
|
+
value.forEach((v) => assertValidHeaderValue(v, header));
|
|
10823
|
+
return;
|
|
10824
|
+
}
|
|
10825
|
+
if (!isValidHeaderValue(String(value))) throw new Error(`Invalid character in header content ["${header}"]`);
|
|
10826
|
+
}
|
|
10818
10827
|
function normalizeHeader(header) {
|
|
10819
10828
|
return header && String(header).trim().toLowerCase();
|
|
10820
10829
|
}
|
|
10830
|
+
function stripTrailingCRLF(str) {
|
|
10831
|
+
let end = str.length;
|
|
10832
|
+
while (end > 0) {
|
|
10833
|
+
const charCode = str.charCodeAt(end - 1);
|
|
10834
|
+
if (charCode !== 10 && charCode !== 13) break;
|
|
10835
|
+
end -= 1;
|
|
10836
|
+
}
|
|
10837
|
+
return end === str.length ? str : str.slice(0, end);
|
|
10838
|
+
}
|
|
10821
10839
|
function normalizeValue(value) {
|
|
10822
10840
|
if (value === false || value == null) return value;
|
|
10823
|
-
return utils_default.isArray(value) ? value.map(normalizeValue) : String(value)
|
|
10841
|
+
return utils_default.isArray(value) ? value.map(normalizeValue) : stripTrailingCRLF(String(value));
|
|
10824
10842
|
}
|
|
10825
10843
|
function parseTokens(str) {
|
|
10826
10844
|
const tokens = Object.create(null);
|
|
@@ -10867,7 +10885,10 @@ var AxiosHeaders = class {
|
|
|
10867
10885
|
const lHeader = normalizeHeader(_header);
|
|
10868
10886
|
if (!lHeader) throw new Error("header name must be a non-empty string");
|
|
10869
10887
|
const key = utils_default.findKey(self, lHeader);
|
|
10870
|
-
if (!key || self[key] === void 0 || _rewrite === true || _rewrite === void 0 && self[key] !== false)
|
|
10888
|
+
if (!key || self[key] === void 0 || _rewrite === true || _rewrite === void 0 && self[key] !== false) {
|
|
10889
|
+
assertValidHeaderValue(_value, _header);
|
|
10890
|
+
self[key || _header] = normalizeValue(_value);
|
|
10891
|
+
}
|
|
10871
10892
|
}
|
|
10872
10893
|
const setHeaders = (headers, _rewrite) => utils_default.forEach(headers, (_value, _header) => setHeader(_value, _header, _rewrite));
|
|
10873
10894
|
if (utils_default.isPlainObject(header) || header instanceof this.constructor) setHeaders(header, valueOrRewrite);
|
|
@@ -11851,7 +11872,7 @@ function dispatchRequest(config) {
|
|
|
11851
11872
|
}
|
|
11852
11873
|
//#endregion
|
|
11853
11874
|
//#region node_modules/axios/lib/env/data.js
|
|
11854
|
-
var VERSION = "1.
|
|
11875
|
+
var VERSION = "1.15.0";
|
|
11855
11876
|
//#endregion
|
|
11856
11877
|
//#region node_modules/axios/lib/helpers/validator.js
|
|
11857
11878
|
var validators$1 = {};
|
|
@@ -11958,10 +11979,19 @@ var Axios = class {
|
|
|
11958
11979
|
if (err instanceof Error) {
|
|
11959
11980
|
let dummy = {};
|
|
11960
11981
|
Error.captureStackTrace ? Error.captureStackTrace(dummy) : dummy = /* @__PURE__ */ new Error();
|
|
11961
|
-
const stack =
|
|
11982
|
+
const stack = (() => {
|
|
11983
|
+
if (!dummy.stack) return "";
|
|
11984
|
+
const firstNewlineIndex = dummy.stack.indexOf("\n");
|
|
11985
|
+
return firstNewlineIndex === -1 ? "" : dummy.stack.slice(firstNewlineIndex + 1);
|
|
11986
|
+
})();
|
|
11962
11987
|
try {
|
|
11963
11988
|
if (!err.stack) err.stack = stack;
|
|
11964
|
-
else if (stack
|
|
11989
|
+
else if (stack) {
|
|
11990
|
+
const firstNewlineIndex = stack.indexOf("\n");
|
|
11991
|
+
const secondNewlineIndex = firstNewlineIndex === -1 ? -1 : stack.indexOf("\n", firstNewlineIndex + 1);
|
|
11992
|
+
const stackWithoutTwoTopLines = secondNewlineIndex === -1 ? "" : stack.slice(secondNewlineIndex + 1);
|
|
11993
|
+
if (!String(err.stack).endsWith(stackWithoutTwoTopLines)) err.stack += "\n" + stack;
|
|
11994
|
+
}
|
|
11965
11995
|
} catch (e) {}
|
|
11966
11996
|
}
|
|
11967
11997
|
throw err;
|