mirror of
https://github.com/lnbits/lnbits.git
synced 2025-03-17 13:21:48 +01:00
chore(deps): bump axios from 1.7.7 to 1.8.2 (#3042)
* chore(deps): bump axios from 1.7.7 to 1.8.2 Bumps [axios](https://github.com/axios/axios) from 1.7.7 to 1.8.2. - [Release notes](https://github.com/axios/axios/releases) - [Changelog](https://github.com/axios/axios/blob/v1.x/CHANGELOG.md) - [Commits](https://github.com/axios/axios/compare/v1.7.7...v1.8.2) --- updated-dependencies: - dependency-name: axios dependency-type: direct:production ... Signed-off-by: dependabot[bot] <support@github.com> * bundle --------- Signed-off-by: dependabot[bot] <support@github.com> Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com> Co-authored-by: dni ⚡ <office@dnilabs.com>
This commit is contained in:
parent
2661d12ff1
commit
b759ec7468
4
lnbits/static/bundle.min.js
vendored
4
lnbits/static/bundle.min.js
vendored
File diff suppressed because one or more lines are too long
126
lnbits/static/vendor/axios.js
vendored
126
lnbits/static/vendor/axios.js
vendored
@ -1,4 +1,4 @@
|
||||
// Axios v1.7.7 Copyright (c) 2024 Matt Zabriskie and contributors
|
||||
/*! Axios v1.8.2 Copyright (c) 2025 Matt Zabriskie and contributors */
|
||||
(function (global, factory) {
|
||||
typeof exports === 'object' && typeof module !== 'undefined' ? module.exports = factory() :
|
||||
typeof define === 'function' && define.amd ? define(factory) :
|
||||
@ -1266,23 +1266,6 @@
|
||||
var toFiniteNumber = function toFiniteNumber(value, defaultValue) {
|
||||
return value != null && Number.isFinite(value = +value) ? value : defaultValue;
|
||||
};
|
||||
var ALPHA = 'abcdefghijklmnopqrstuvwxyz';
|
||||
var DIGIT = '0123456789';
|
||||
var ALPHABET = {
|
||||
DIGIT: DIGIT,
|
||||
ALPHA: ALPHA,
|
||||
ALPHA_DIGIT: ALPHA + ALPHA.toUpperCase() + DIGIT
|
||||
};
|
||||
var generateString = function generateString() {
|
||||
var size = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : 16;
|
||||
var alphabet = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : ALPHABET.ALPHA_DIGIT;
|
||||
var str = '';
|
||||
var length = alphabet.length;
|
||||
while (size--) {
|
||||
str += alphabet[Math.random() * length | 0];
|
||||
}
|
||||
return str;
|
||||
};
|
||||
|
||||
/**
|
||||
* If the thing is a FormData object, return true, otherwise return false.
|
||||
@ -1399,8 +1382,6 @@
|
||||
findKey: findKey,
|
||||
global: _global,
|
||||
isContextDefined: isContextDefined,
|
||||
ALPHABET: ALPHABET,
|
||||
generateString: generateString,
|
||||
isSpecCompliantForm: isSpecCompliantForm,
|
||||
toJSONObject: toJSONObject,
|
||||
isAsyncFn: isAsyncFn,
|
||||
@ -1735,7 +1716,7 @@
|
||||
*
|
||||
* @param {string} url The base of the url (e.g., http://www.google.com)
|
||||
* @param {object} [params] The params to be appended
|
||||
* @param {?object} options
|
||||
* @param {?(object|Function)} options
|
||||
*
|
||||
* @returns {string} The formatted url
|
||||
*/
|
||||
@ -1745,6 +1726,11 @@
|
||||
return url;
|
||||
}
|
||||
var _encode = options && options.encode || encode;
|
||||
if (utils$1.isFunction(options)) {
|
||||
options = {
|
||||
serialize: options
|
||||
};
|
||||
}
|
||||
var serializeFn = options && options.serialize;
|
||||
var serializedParams;
|
||||
if (serializeFn) {
|
||||
@ -2642,60 +2628,14 @@
|
||||
};
|
||||
};
|
||||
|
||||
var isURLSameOrigin = platform.hasStandardBrowserEnv ?
|
||||
// Standard browser envs have full support of the APIs needed to test
|
||||
// whether the request URL is of the same origin as current location.
|
||||
function standardBrowserEnv() {
|
||||
var msie = platform.navigator && /(msie|trident)/i.test(platform.navigator.userAgent);
|
||||
var urlParsingNode = document.createElement('a');
|
||||
var originURL;
|
||||
|
||||
/**
|
||||
* Parse a URL to discover its components
|
||||
*
|
||||
* @param {String} url The URL to be parsed
|
||||
* @returns {Object}
|
||||
*/
|
||||
function resolveURL(url) {
|
||||
var href = url;
|
||||
if (msie) {
|
||||
// IE needs attribute set twice to normalize properties
|
||||
urlParsingNode.setAttribute('href', href);
|
||||
href = urlParsingNode.href;
|
||||
}
|
||||
urlParsingNode.setAttribute('href', href);
|
||||
|
||||
// urlParsingNode provides the UrlUtils interface - http://url.spec.whatwg.org/#urlutils
|
||||
return {
|
||||
href: urlParsingNode.href,
|
||||
protocol: urlParsingNode.protocol ? urlParsingNode.protocol.replace(/:$/, '') : '',
|
||||
host: urlParsingNode.host,
|
||||
search: urlParsingNode.search ? urlParsingNode.search.replace(/^\?/, '') : '',
|
||||
hash: urlParsingNode.hash ? urlParsingNode.hash.replace(/^#/, '') : '',
|
||||
hostname: urlParsingNode.hostname,
|
||||
port: urlParsingNode.port,
|
||||
pathname: urlParsingNode.pathname.charAt(0) === '/' ? urlParsingNode.pathname : '/' + urlParsingNode.pathname
|
||||
var isURLSameOrigin = platform.hasStandardBrowserEnv ? function (origin, isMSIE) {
|
||||
return function (url) {
|
||||
url = new URL(url, platform.origin);
|
||||
return origin.protocol === url.protocol && origin.host === url.host && (isMSIE || origin.port === url.port);
|
||||
};
|
||||
}
|
||||
originURL = resolveURL(window.location.href);
|
||||
|
||||
/**
|
||||
* Determine if a URL shares the same origin as the current location
|
||||
*
|
||||
* @param {String} requestURL The URL to test
|
||||
* @returns {boolean} True if URL shares the same origin, otherwise false
|
||||
*/
|
||||
return function isURLSameOrigin(requestURL) {
|
||||
var parsed = utils$1.isString(requestURL) ? resolveURL(requestURL) : requestURL;
|
||||
return parsed.protocol === originURL.protocol && parsed.host === originURL.host;
|
||||
};
|
||||
}() :
|
||||
// Non standard browser envs (web workers, react-native) lack needed support.
|
||||
function nonStandardBrowserEnv() {
|
||||
return function isURLSameOrigin() {
|
||||
}(new URL(platform.origin), platform.navigator && /(msie|trident)/i.test(platform.navigator.userAgent)) : function () {
|
||||
return true;
|
||||
};
|
||||
}();
|
||||
|
||||
var cookies = platform.hasStandardBrowserEnv ?
|
||||
// Standard browser envs support document.cookie
|
||||
@ -2761,8 +2701,9 @@
|
||||
*
|
||||
* @returns {string} The combined full path
|
||||
*/
|
||||
function buildFullPath(baseURL, requestedURL) {
|
||||
if (baseURL && !isAbsoluteURL(requestedURL)) {
|
||||
function buildFullPath(baseURL, requestedURL, allowAbsoluteUrls) {
|
||||
var isRelativeUrl = !isAbsoluteURL(requestedURL);
|
||||
if (baseURL && isRelativeUrl || allowAbsoluteUrls == false) {
|
||||
return combineURLs(baseURL, requestedURL);
|
||||
}
|
||||
return requestedURL;
|
||||
@ -2785,7 +2726,7 @@
|
||||
// eslint-disable-next-line no-param-reassign
|
||||
config2 = config2 || {};
|
||||
var config = {};
|
||||
function getMergedValue(target, source, caseless) {
|
||||
function getMergedValue(target, source, prop, caseless) {
|
||||
if (utils$1.isPlainObject(target) && utils$1.isPlainObject(source)) {
|
||||
return utils$1.merge.call({
|
||||
caseless: caseless
|
||||
@ -2799,11 +2740,11 @@
|
||||
}
|
||||
|
||||
// eslint-disable-next-line consistent-return
|
||||
function mergeDeepProperties(a, b, caseless) {
|
||||
function mergeDeepProperties(a, b, prop, caseless) {
|
||||
if (!utils$1.isUndefined(b)) {
|
||||
return getMergedValue(a, b, caseless);
|
||||
return getMergedValue(a, b, prop, caseless);
|
||||
} else if (!utils$1.isUndefined(a)) {
|
||||
return getMergedValue(undefined, a, caseless);
|
||||
return getMergedValue(undefined, a, prop, caseless);
|
||||
}
|
||||
}
|
||||
|
||||
@ -2860,8 +2801,8 @@
|
||||
socketPath: defaultToConfig2,
|
||||
responseEncoding: defaultToConfig2,
|
||||
validateStatus: mergeDirectKeys,
|
||||
headers: function headers(a, b) {
|
||||
return mergeDeepProperties(headersToObject(a), headersToObject(b), true);
|
||||
headers: function headers(a, b, prop) {
|
||||
return mergeDeepProperties(headersToObject(a), headersToObject(b), prop, true);
|
||||
}
|
||||
};
|
||||
utils$1.forEach(Object.keys(Object.assign({}, config1, config2)), function computeConfigValue(prop) {
|
||||
@ -3717,7 +3658,7 @@
|
||||
});
|
||||
}
|
||||
|
||||
var VERSION = "1.7.7";
|
||||
var VERSION = "1.8.2";
|
||||
|
||||
var validators$1 = {};
|
||||
|
||||
@ -3756,6 +3697,13 @@
|
||||
return validator ? validator(value, opt, opts) : true;
|
||||
};
|
||||
};
|
||||
validators$1.spelling = function spelling(correctSpelling) {
|
||||
return function (value, opt) {
|
||||
// eslint-disable-next-line no-console
|
||||
console.warn("".concat(opt, " is likely a misspelling of ").concat(correctSpelling));
|
||||
return true;
|
||||
};
|
||||
};
|
||||
|
||||
/**
|
||||
* Assert object's properties type
|
||||
@ -3838,7 +3786,8 @@
|
||||
_context.prev = 6;
|
||||
_context.t0 = _context["catch"](0);
|
||||
if (_context.t0 instanceof Error) {
|
||||
Error.captureStackTrace ? Error.captureStackTrace(dummy = {}) : dummy = new Error();
|
||||
dummy = {};
|
||||
Error.captureStackTrace ? Error.captureStackTrace(dummy) : dummy = new Error();
|
||||
|
||||
// slice off the Error: ... line
|
||||
stack = dummy.stack ? dummy.stack.replace(/^.+\n/, '') : '';
|
||||
@ -3901,6 +3850,17 @@
|
||||
}
|
||||
}
|
||||
|
||||
// Set config.allowAbsoluteUrls
|
||||
if (config.allowAbsoluteUrls !== undefined) ; else if (this.defaults.allowAbsoluteUrls !== undefined) {
|
||||
config.allowAbsoluteUrls = this.defaults.allowAbsoluteUrls;
|
||||
} else {
|
||||
config.allowAbsoluteUrls = true;
|
||||
}
|
||||
validator.assertOptions(config, {
|
||||
baseUrl: validators.spelling('baseURL'),
|
||||
withXsrfToken: validators.spelling('withXSRFToken')
|
||||
}, true);
|
||||
|
||||
// Set config.method
|
||||
config.method = (config.method || this.defaults.method || 'get').toLowerCase();
|
||||
|
||||
@ -3968,7 +3928,7 @@
|
||||
key: "getUri",
|
||||
value: function getUri(config) {
|
||||
config = mergeConfig(this.defaults, config);
|
||||
var fullPath = buildFullPath(config.baseURL, config.url);
|
||||
var fullPath = buildFullPath(config.baseURL, config.url, config.allowAbsoluteUrls);
|
||||
return buildURL(fullPath, config.params, config.paramsSerializer);
|
||||
}
|
||||
}]);
|
||||
|
9
package-lock.json
generated
9
package-lock.json
generated
@ -6,7 +6,7 @@
|
||||
"": {
|
||||
"name": "lnbits",
|
||||
"dependencies": {
|
||||
"axios": "^1.7.7",
|
||||
"axios": "^1.8.2",
|
||||
"chart.js": "^4.4.4",
|
||||
"moment": "^2.30.1",
|
||||
"nostr-tools": "^2.7.2",
|
||||
@ -402,9 +402,10 @@
|
||||
"integrity": "sha512-Oei9OH4tRh0YqU3GxhX79dM/mwVgvbZJaSNaRk+bshkj0S5cfHcgYakreBjrHwatXKbz+IoIdYLxrKim2MjW0Q=="
|
||||
},
|
||||
"node_modules/axios": {
|
||||
"version": "1.7.7",
|
||||
"resolved": "https://registry.npmjs.org/axios/-/axios-1.7.7.tgz",
|
||||
"integrity": "sha512-S4kL7XrjgBmvdGut0sN3yJxqYzrDOnivkBiN0OFs6hLiUam3UPvswUo0kqGyhqUZGEOytHyumEdXsAkgCOUf3Q==",
|
||||
"version": "1.8.2",
|
||||
"resolved": "https://registry.npmjs.org/axios/-/axios-1.8.2.tgz",
|
||||
"integrity": "sha512-ls4GYBm5aig9vWx8AWDSGLpnpDQRtWAfrjU+EuytuODrFBkqesN2RkOQCBzrA1RQNHw1SmRMSDDDSwzNAYQ6Rg==",
|
||||
"license": "MIT",
|
||||
"dependencies": {
|
||||
"follow-redirects": "^1.15.6",
|
||||
"form-data": "^4.0.0",
|
||||
|
@ -20,7 +20,7 @@
|
||||
"sass": "^1.78.0"
|
||||
},
|
||||
"dependencies": {
|
||||
"axios": "^1.7.7",
|
||||
"axios": "^1.8.2",
|
||||
"chart.js": "^4.4.4",
|
||||
"moment": "^2.30.1",
|
||||
"qrcode.vue": "^3.4.1",
|
||||
|
Loading…
x
Reference in New Issue
Block a user