mirror of
https://github.com/tenrok/axios.git
synced 2026-06-20 20:00:40 +03:00
Releasing 0.19.2
This commit is contained in:
+1
-1
@@ -1,7 +1,7 @@
|
|||||||
{
|
{
|
||||||
"name": "axios",
|
"name": "axios",
|
||||||
"main": "./dist/axios.js",
|
"main": "./dist/axios.js",
|
||||||
"version": "0.19.1",
|
"version": "0.19.2",
|
||||||
"homepage": "https://github.com/axios/axios",
|
"homepage": "https://github.com/axios/axios",
|
||||||
"authors": [
|
"authors": [
|
||||||
"Matt Zabriskie"
|
"Matt Zabriskie"
|
||||||
|
|||||||
Vendored
+12
-30
@@ -1,4 +1,4 @@
|
|||||||
/* axios v0.19.1 | (c) 2020 by Matt Zabriskie */
|
/* axios v0.19.2 | (c) 2020 by Matt Zabriskie */
|
||||||
(function webpackUniversalModuleDefinition(root, factory) {
|
(function webpackUniversalModuleDefinition(root, factory) {
|
||||||
if(typeof exports === 'object' && typeof module === 'object')
|
if(typeof exports === 'object' && typeof module === 'object')
|
||||||
module.exports = factory();
|
module.exports = factory();
|
||||||
@@ -66,7 +66,7 @@ return /******/ (function(modules) { // webpackBootstrap
|
|||||||
var utils = __webpack_require__(2);
|
var utils = __webpack_require__(2);
|
||||||
var bind = __webpack_require__(3);
|
var bind = __webpack_require__(3);
|
||||||
var Axios = __webpack_require__(4);
|
var Axios = __webpack_require__(4);
|
||||||
var mergeConfig = __webpack_require__(23);
|
var mergeConfig = __webpack_require__(22);
|
||||||
var defaults = __webpack_require__(10);
|
var defaults = __webpack_require__(10);
|
||||||
|
|
||||||
/**
|
/**
|
||||||
@@ -100,15 +100,15 @@ return /******/ (function(modules) { // webpackBootstrap
|
|||||||
};
|
};
|
||||||
|
|
||||||
// Expose Cancel & CancelToken
|
// Expose Cancel & CancelToken
|
||||||
axios.Cancel = __webpack_require__(24);
|
axios.Cancel = __webpack_require__(23);
|
||||||
axios.CancelToken = __webpack_require__(25);
|
axios.CancelToken = __webpack_require__(24);
|
||||||
axios.isCancel = __webpack_require__(9);
|
axios.isCancel = __webpack_require__(9);
|
||||||
|
|
||||||
// Expose all/spread
|
// Expose all/spread
|
||||||
axios.all = function all(promises) {
|
axios.all = function all(promises) {
|
||||||
return Promise.all(promises);
|
return Promise.all(promises);
|
||||||
};
|
};
|
||||||
axios.spread = __webpack_require__(26);
|
axios.spread = __webpack_require__(25);
|
||||||
|
|
||||||
module.exports = axios;
|
module.exports = axios;
|
||||||
|
|
||||||
@@ -493,7 +493,7 @@ return /******/ (function(modules) { // webpackBootstrap
|
|||||||
var buildURL = __webpack_require__(5);
|
var buildURL = __webpack_require__(5);
|
||||||
var InterceptorManager = __webpack_require__(6);
|
var InterceptorManager = __webpack_require__(6);
|
||||||
var dispatchRequest = __webpack_require__(7);
|
var dispatchRequest = __webpack_require__(7);
|
||||||
var mergeConfig = __webpack_require__(23);
|
var mergeConfig = __webpack_require__(22);
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Create a new instance of Axios
|
* Create a new instance of Axios
|
||||||
@@ -1070,7 +1070,7 @@ return /******/ (function(modules) { // webpackBootstrap
|
|||||||
// This is only done if running in a standard browser environment.
|
// This is only done if running in a standard browser environment.
|
||||||
// Specifically not if we're in a web worker, or react-native.
|
// Specifically not if we're in a web worker, or react-native.
|
||||||
if (utils.isStandardBrowserEnv()) {
|
if (utils.isStandardBrowserEnv()) {
|
||||||
var cookies = __webpack_require__(22);
|
var cookies = __webpack_require__(21);
|
||||||
|
|
||||||
// Add xsrf header
|
// Add xsrf header
|
||||||
var xsrfValue = (config.withCredentials || isURLSameOrigin(fullPath)) && config.xsrfCookieName ?
|
var xsrfValue = (config.withCredentials || isURLSameOrigin(fullPath)) && config.xsrfCookieName ?
|
||||||
@@ -1382,7 +1382,6 @@ return /******/ (function(modules) { // webpackBootstrap
|
|||||||
'use strict';
|
'use strict';
|
||||||
|
|
||||||
var utils = __webpack_require__(2);
|
var utils = __webpack_require__(2);
|
||||||
var isValidXss = __webpack_require__(21);
|
|
||||||
|
|
||||||
module.exports = (
|
module.exports = (
|
||||||
utils.isStandardBrowserEnv() ?
|
utils.isStandardBrowserEnv() ?
|
||||||
@@ -1403,10 +1402,6 @@ return /******/ (function(modules) { // webpackBootstrap
|
|||||||
function resolveURL(url) {
|
function resolveURL(url) {
|
||||||
var href = url;
|
var href = url;
|
||||||
|
|
||||||
if (isValidXss(url)) {
|
|
||||||
throw new Error('URL contains XSS injection attempt');
|
|
||||||
}
|
|
||||||
|
|
||||||
if (msie) {
|
if (msie) {
|
||||||
// IE needs attribute set twice to normalize properties
|
// IE needs attribute set twice to normalize properties
|
||||||
urlParsingNode.setAttribute('href', href);
|
urlParsingNode.setAttribute('href', href);
|
||||||
@@ -1456,19 +1451,6 @@ return /******/ (function(modules) { // webpackBootstrap
|
|||||||
|
|
||||||
/***/ }),
|
/***/ }),
|
||||||
/* 21 */
|
/* 21 */
|
||||||
/***/ (function(module, exports) {
|
|
||||||
|
|
||||||
'use strict';
|
|
||||||
|
|
||||||
module.exports = function isValidXss(requestURL) {
|
|
||||||
var xssRegex = /(\b)(on\w+)=|javascript|(<\s*)(\/*)script/gi;
|
|
||||||
return xssRegex.test(requestURL);
|
|
||||||
};
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
/***/ }),
|
|
||||||
/* 22 */
|
|
||||||
/***/ (function(module, exports, __webpack_require__) {
|
/***/ (function(module, exports, __webpack_require__) {
|
||||||
|
|
||||||
'use strict';
|
'use strict';
|
||||||
@@ -1527,7 +1509,7 @@ return /******/ (function(modules) { // webpackBootstrap
|
|||||||
|
|
||||||
|
|
||||||
/***/ }),
|
/***/ }),
|
||||||
/* 23 */
|
/* 22 */
|
||||||
/***/ (function(module, exports, __webpack_require__) {
|
/***/ (function(module, exports, __webpack_require__) {
|
||||||
|
|
||||||
'use strict';
|
'use strict';
|
||||||
@@ -1606,7 +1588,7 @@ return /******/ (function(modules) { // webpackBootstrap
|
|||||||
|
|
||||||
|
|
||||||
/***/ }),
|
/***/ }),
|
||||||
/* 24 */
|
/* 23 */
|
||||||
/***/ (function(module, exports) {
|
/***/ (function(module, exports) {
|
||||||
|
|
||||||
'use strict';
|
'use strict';
|
||||||
@@ -1631,12 +1613,12 @@ return /******/ (function(modules) { // webpackBootstrap
|
|||||||
|
|
||||||
|
|
||||||
/***/ }),
|
/***/ }),
|
||||||
/* 25 */
|
/* 24 */
|
||||||
/***/ (function(module, exports, __webpack_require__) {
|
/***/ (function(module, exports, __webpack_require__) {
|
||||||
|
|
||||||
'use strict';
|
'use strict';
|
||||||
|
|
||||||
var Cancel = __webpack_require__(24);
|
var Cancel = __webpack_require__(23);
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* A `CancelToken` is an object that can be used to request cancellation of an operation.
|
* A `CancelToken` is an object that can be used to request cancellation of an operation.
|
||||||
@@ -1694,7 +1676,7 @@ return /******/ (function(modules) { // webpackBootstrap
|
|||||||
|
|
||||||
|
|
||||||
/***/ }),
|
/***/ }),
|
||||||
/* 26 */
|
/* 25 */
|
||||||
/***/ (function(module, exports) {
|
/***/ (function(module, exports) {
|
||||||
|
|
||||||
'use strict';
|
'use strict';
|
||||||
|
|||||||
Vendored
+1
-1
File diff suppressed because one or more lines are too long
Vendored
+2
-2
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
+1
-1
@@ -1,6 +1,6 @@
|
|||||||
{
|
{
|
||||||
"name": "axios",
|
"name": "axios",
|
||||||
"version": "0.19.1",
|
"version": "0.19.2",
|
||||||
"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",
|
||||||
"scripts": {
|
"scripts": {
|
||||||
|
|||||||
Reference in New Issue
Block a user