mirror of
https://github.com/tenrok/axios.git
synced 2026-06-08 17:22:34 +03:00
chore: release v1.1.0
This commit is contained in:
+1
-1
@@ -1,7 +1,7 @@
|
||||
{
|
||||
"name": "axios",
|
||||
"main": "./dist/axios.js",
|
||||
"version": "1.0.0",
|
||||
"version": "1.1.0",
|
||||
"homepage": "https://axios-http.com",
|
||||
"authors": [
|
||||
"Matt Zabriskie"
|
||||
|
||||
Vendored
+14
-8
@@ -1,9 +1,9 @@
|
||||
// Axios v1.0.0 Copyright (c) 2022 Matt Zabriskie and contributors
|
||||
// Axios v1.1.0 Copyright (c) 2022 Matt Zabriskie and contributors
|
||||
(function (global, factory) {
|
||||
typeof exports === 'object' && typeof module !== 'undefined' ? module.exports = factory() :
|
||||
typeof define === 'function' && define.amd ? define(factory) :
|
||||
(global = typeof globalThis !== 'undefined' ? globalThis : global || self, global.axios = factory());
|
||||
})(this, (function () { 'use strict';
|
||||
typeof exports === 'object' && typeof module !== 'undefined' ? factory(exports) :
|
||||
typeof define === 'function' && define.amd ? define(['exports'], factory) :
|
||||
(global = typeof globalThis !== 'undefined' ? globalThis : global || self, factory(global.axios = {}));
|
||||
})(this, (function (exports) { 'use strict';
|
||||
|
||||
function _typeof(obj) {
|
||||
"@babel/helpers - typeof";
|
||||
@@ -191,7 +191,7 @@
|
||||
}
|
||||
|
||||
var prototype = getPrototypeOf(val);
|
||||
return prototype === null || prototype === Object.prototype;
|
||||
return (prototype === null || prototype === Object.prototype || Object.getPrototypeOf(prototype) === null) && !(Symbol.toStringTag in val) && !(Symbol.iterator in val);
|
||||
};
|
||||
/**
|
||||
* Determine if a value is a Date
|
||||
@@ -2442,7 +2442,7 @@
|
||||
return config;
|
||||
}
|
||||
|
||||
var VERSION = "1.0.0";
|
||||
var VERSION = "1.1.0";
|
||||
|
||||
var validators$1 = {}; // eslint-disable-next-line func-names
|
||||
|
||||
@@ -2915,7 +2915,13 @@
|
||||
return formDataToJSON(utils.isHTMLForm(thing) ? new FormData(thing) : thing);
|
||||
};
|
||||
|
||||
return axios;
|
||||
exports.Axios = Axios;
|
||||
exports.AxiosError = AxiosError;
|
||||
exports.AxiosHeaders = AxiosHeaders;
|
||||
exports.CanceledError = CanceledError;
|
||||
exports["default"] = axios;
|
||||
|
||||
Object.defineProperty(exports, '__esModule', { value: true });
|
||||
|
||||
}));
|
||||
//# sourceMappingURL=axios.js.map
|
||||
|
||||
Vendored
+1
-1
File diff suppressed because one or more lines are too long
Vendored
+1
-1
File diff suppressed because one or more lines are too long
Vendored
+1
-1
File diff suppressed because one or more lines are too long
Vendored
+4
-4
@@ -1,4 +1,4 @@
|
||||
// Axios v1.0.0 Copyright (c) 2022 Matt Zabriskie and contributors
|
||||
// Axios v1.1.0 Copyright (c) 2022 Matt Zabriskie and contributors
|
||||
function bind(fn, thisArg) {
|
||||
return function wrap() {
|
||||
return fn.apply(thisArg, arguments);
|
||||
@@ -135,7 +135,7 @@ const isPlainObject = (val) => {
|
||||
}
|
||||
|
||||
const prototype = getPrototypeOf(val);
|
||||
return prototype === null || prototype === Object.prototype;
|
||||
return (prototype === null || prototype === Object.prototype || Object.getPrototypeOf(prototype) === null) && !(Symbol.toStringTag in val) && !(Symbol.iterator in val);
|
||||
};
|
||||
|
||||
/**
|
||||
@@ -2461,7 +2461,7 @@ function mergeConfig(config1, config2) {
|
||||
return config;
|
||||
}
|
||||
|
||||
const VERSION = "1.0.0";
|
||||
const VERSION = "1.1.0";
|
||||
|
||||
const validators$1 = {};
|
||||
|
||||
@@ -2938,5 +2938,5 @@ axios.formToJSON = thing => {
|
||||
return formDataToJSON(utils.isHTMLForm(thing) ? new FormData(thing) : thing);
|
||||
};
|
||||
|
||||
export { axios as default };
|
||||
export { Axios, AxiosError, AxiosHeaders, CanceledError, axios as default };
|
||||
//# sourceMappingURL=axios.js.map
|
||||
|
||||
Vendored
+1
-1
File diff suppressed because one or more lines are too long
Vendored
+1
-1
File diff suppressed because one or more lines are too long
Vendored
+1
-1
File diff suppressed because one or more lines are too long
Vendored
+18
-7
@@ -1,6 +1,8 @@
|
||||
// Axios v1.0.0 Copyright (c) 2022 Matt Zabriskie and contributors
|
||||
// Axios v1.1.0 Copyright (c) 2022 Matt Zabriskie and contributors
|
||||
'use strict';
|
||||
|
||||
Object.defineProperty(exports, '__esModule', { value: true });
|
||||
|
||||
const FormData$1 = require('form-data');
|
||||
const url = require('url');
|
||||
const proxyFromEnv = require('proxy-from-env');
|
||||
@@ -158,7 +160,7 @@ const isPlainObject = (val) => {
|
||||
}
|
||||
|
||||
const prototype = getPrototypeOf(val);
|
||||
return prototype === null || prototype === Object.prototype;
|
||||
return (prototype === null || prototype === Object.prototype || Object.getPrototypeOf(prototype) === null) && !(Symbol.toStringTag in val) && !(Symbol.iterator in val);
|
||||
};
|
||||
|
||||
/**
|
||||
@@ -1313,7 +1315,7 @@ function buildFullPath(baseURL, requestedURL) {
|
||||
return requestedURL;
|
||||
}
|
||||
|
||||
const VERSION = "1.0.0";
|
||||
const VERSION = "1.1.0";
|
||||
|
||||
/**
|
||||
* A `CanceledError` is an object that is thrown when an operation is canceled.
|
||||
@@ -2251,9 +2253,14 @@ function httpAdapter(config) {
|
||||
|
||||
auth && headers.delete('authorization');
|
||||
|
||||
const path = parsed.pathname.concat(parsed.searchParams);
|
||||
let path;
|
||||
|
||||
try {
|
||||
buildURL(path, config.params, config.paramsSerializer).replace(/^\?/, '');
|
||||
path = buildURL(
|
||||
parsed.pathname + parsed.search,
|
||||
config.params,
|
||||
config.paramsSerializer
|
||||
).replace(/^\?/, '');
|
||||
} catch (err) {
|
||||
const customErr = new Error(err.message);
|
||||
customErr.config = config;
|
||||
@@ -2265,7 +2272,7 @@ function httpAdapter(config) {
|
||||
headers.set('Accept-Encoding', 'gzip, deflate, br', false);
|
||||
|
||||
const options = {
|
||||
path: buildURL(path, config.params, config.paramsSerializer).replace(/^\?/, ''),
|
||||
path,
|
||||
method: method,
|
||||
headers: headers.toJSON(),
|
||||
agents: { http: config.httpAgent, https: config.httpsAgent },
|
||||
@@ -3746,5 +3753,9 @@ axios.formToJSON = thing => {
|
||||
return formDataToJSON(utils.isHTMLForm(thing) ? new FormData(thing) : thing);
|
||||
};
|
||||
|
||||
module.exports = axios;
|
||||
exports.Axios = Axios;
|
||||
exports.AxiosError = AxiosError;
|
||||
exports.AxiosHeaders = AxiosHeaders;
|
||||
exports.CanceledError = CanceledError;
|
||||
exports["default"] = axios;
|
||||
//# sourceMappingURL=axios.cjs.map
|
||||
|
||||
Vendored
+1
-1
File diff suppressed because one or more lines are too long
Vendored
+1
-1
@@ -1 +1 @@
|
||||
export const VERSION = "1.0.0";
|
||||
export const VERSION = "1.1.0";
|
||||
Generated
+2
-2
@@ -1,12 +1,12 @@
|
||||
{
|
||||
"name": "axios",
|
||||
"version": "1.0.0",
|
||||
"version": "1.1.0",
|
||||
"lockfileVersion": 2,
|
||||
"requires": true,
|
||||
"packages": {
|
||||
"": {
|
||||
"name": "axios",
|
||||
"version": "1.0.0",
|
||||
"version": "1.1.0",
|
||||
"license": "MIT",
|
||||
"dependencies": {
|
||||
"follow-redirects": "^1.15.0",
|
||||
|
||||
+1
-1
@@ -1,6 +1,6 @@
|
||||
{
|
||||
"name": "axios",
|
||||
"version": "1.0.0",
|
||||
"version": "1.1.0",
|
||||
"description": "Promise based HTTP client for the browser and node.js",
|
||||
"main": "index.js",
|
||||
"exports": {
|
||||
|
||||
Reference in New Issue
Block a user