2
0
mirror of https://github.com/tenrok/axios.git synced 2026-06-23 20:40:40 +03:00

chore: release v1.1.0

This commit is contained in:
Jay
2022-10-06 21:17:46 +02:00
parent 52d64ac3b7
commit 9c3dce366b
14 changed files with 48 additions and 31 deletions
+1 -1
View File
@@ -1,7 +1,7 @@
{ {
"name": "axios", "name": "axios",
"main": "./dist/axios.js", "main": "./dist/axios.js",
"version": "1.0.0", "version": "1.1.0",
"homepage": "https://axios-http.com", "homepage": "https://axios-http.com",
"authors": [ "authors": [
"Matt Zabriskie" "Matt Zabriskie"
+14 -8
View File
@@ -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) { (function (global, factory) {
typeof exports === 'object' && typeof module !== 'undefined' ? module.exports = factory() : typeof exports === 'object' && typeof module !== 'undefined' ? factory(exports) :
typeof define === 'function' && define.amd ? define(factory) : typeof define === 'function' && define.amd ? define(['exports'], factory) :
(global = typeof globalThis !== 'undefined' ? globalThis : global || self, global.axios = factory()); (global = typeof globalThis !== 'undefined' ? globalThis : global || self, factory(global.axios = {}));
})(this, (function () { 'use strict'; })(this, (function (exports) { 'use strict';
function _typeof(obj) { function _typeof(obj) {
"@babel/helpers - typeof"; "@babel/helpers - typeof";
@@ -191,7 +191,7 @@
} }
var prototype = getPrototypeOf(val); 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 * Determine if a value is a Date
@@ -2442,7 +2442,7 @@
return config; return config;
} }
var VERSION = "1.0.0"; var VERSION = "1.1.0";
var validators$1 = {}; // eslint-disable-next-line func-names var validators$1 = {}; // eslint-disable-next-line func-names
@@ -2915,7 +2915,13 @@
return formDataToJSON(utils.isHTMLForm(thing) ? new FormData(thing) : thing); 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 //# sourceMappingURL=axios.js.map
+1 -1
View File
File diff suppressed because one or more lines are too long
+1 -1
View File
File diff suppressed because one or more lines are too long
+1 -1
View File
File diff suppressed because one or more lines are too long
+4 -4
View File
@@ -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) { function bind(fn, thisArg) {
return function wrap() { return function wrap() {
return fn.apply(thisArg, arguments); return fn.apply(thisArg, arguments);
@@ -135,7 +135,7 @@ const isPlainObject = (val) => {
} }
const prototype = getPrototypeOf(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; return config;
} }
const VERSION = "1.0.0"; const VERSION = "1.1.0";
const validators$1 = {}; const validators$1 = {};
@@ -2938,5 +2938,5 @@ axios.formToJSON = thing => {
return formDataToJSON(utils.isHTMLForm(thing) ? new FormData(thing) : 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 //# sourceMappingURL=axios.js.map
+1 -1
View File
File diff suppressed because one or more lines are too long
+1 -1
View File
File diff suppressed because one or more lines are too long
+1 -1
View File
File diff suppressed because one or more lines are too long
+18 -7
View File
@@ -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'; 'use strict';
Object.defineProperty(exports, '__esModule', { value: true });
const FormData$1 = require('form-data'); const FormData$1 = require('form-data');
const url = require('url'); const url = require('url');
const proxyFromEnv = require('proxy-from-env'); const proxyFromEnv = require('proxy-from-env');
@@ -158,7 +160,7 @@ const isPlainObject = (val) => {
} }
const prototype = getPrototypeOf(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; 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. * A `CanceledError` is an object that is thrown when an operation is canceled.
@@ -2251,9 +2253,14 @@ function httpAdapter(config) {
auth && headers.delete('authorization'); auth && headers.delete('authorization');
const path = parsed.pathname.concat(parsed.searchParams); let path;
try { try {
buildURL(path, config.params, config.paramsSerializer).replace(/^\?/, ''); path = buildURL(
parsed.pathname + parsed.search,
config.params,
config.paramsSerializer
).replace(/^\?/, '');
} catch (err) { } catch (err) {
const customErr = new Error(err.message); const customErr = new Error(err.message);
customErr.config = config; customErr.config = config;
@@ -2265,7 +2272,7 @@ function httpAdapter(config) {
headers.set('Accept-Encoding', 'gzip, deflate, br', false); headers.set('Accept-Encoding', 'gzip, deflate, br', false);
const options = { const options = {
path: buildURL(path, config.params, config.paramsSerializer).replace(/^\?/, ''), path,
method: method, method: method,
headers: headers.toJSON(), headers: headers.toJSON(),
agents: { http: config.httpAgent, https: config.httpsAgent }, agents: { http: config.httpAgent, https: config.httpsAgent },
@@ -3746,5 +3753,9 @@ axios.formToJSON = thing => {
return formDataToJSON(utils.isHTMLForm(thing) ? new FormData(thing) : 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 //# sourceMappingURL=axios.cjs.map
+1 -1
View File
File diff suppressed because one or more lines are too long
+1 -1
View File
@@ -1 +1 @@
export const VERSION = "1.0.0"; export const VERSION = "1.1.0";
+2 -2
View File
@@ -1,12 +1,12 @@
{ {
"name": "axios", "name": "axios",
"version": "1.0.0", "version": "1.1.0",
"lockfileVersion": 2, "lockfileVersion": 2,
"requires": true, "requires": true,
"packages": { "packages": {
"": { "": {
"name": "axios", "name": "axios",
"version": "1.0.0", "version": "1.1.0",
"license": "MIT", "license": "MIT",
"dependencies": { "dependencies": {
"follow-redirects": "^1.15.0", "follow-redirects": "^1.15.0",
+1 -1
View File
@@ -1,6 +1,6 @@
{ {
"name": "axios", "name": "axios",
"version": "1.0.0", "version": "1.1.0",
"description": "Promise based HTTP client for the browser and node.js", "description": "Promise based HTTP client for the browser and node.js",
"main": "index.js", "main": "index.js",
"exports": { "exports": {