@bundled-es-modules/axios
Advanced tools
Comparing version 0.18.0 to 0.18.1
125
axios.js
@@ -8,3 +8,3 @@ var commonjsGlobal = typeof window !== 'undefined' ? window : typeof global !== 'undefined' ? global : typeof self !== 'undefined' ? self : {}; | ||
var axios = createCommonjsModule(function (module, exports) { | ||
/* axios v0.18.0 | (c) 2018 by Matt Zabriskie */ | ||
/* axios v0.18.1 | (c) 2019 by Matt Zabriskie */ | ||
(function webpackUniversalModuleDefinition(root, factory) { | ||
@@ -101,5 +101,5 @@ module.exports = factory(); | ||
// Expose Cancel & CancelToken | ||
axios.Cancel = __webpack_require__(23); | ||
axios.CancelToken = __webpack_require__(24); | ||
axios.isCancel = __webpack_require__(20); | ||
axios.Cancel = __webpack_require__(22); | ||
axios.CancelToken = __webpack_require__(23); | ||
axios.isCancel = __webpack_require__(19); | ||
@@ -110,3 +110,3 @@ // Expose all/spread | ||
}; | ||
axios.spread = __webpack_require__(25); | ||
axios.spread = __webpack_require__(24); | ||
@@ -452,16 +452,6 @@ module.exports = axios; | ||
// The _isBuffer check is for Safari 5-7 support, because it's missing | ||
// Object.prototype.constructor. Remove this eventually | ||
module.exports = function (obj) { | ||
return obj != null && (isBuffer(obj) || isSlowBuffer(obj) || !!obj._isBuffer) | ||
module.exports = function isBuffer (obj) { | ||
return obj != null && obj.constructor != null && | ||
typeof obj.constructor.isBuffer === 'function' && obj.constructor.isBuffer(obj) | ||
}; | ||
function isBuffer (obj) { | ||
return !!obj.constructor && typeof obj.constructor.isBuffer === 'function' && obj.constructor.isBuffer(obj) | ||
} | ||
// For Node v0.10 support. Remove this eventually. | ||
function isSlowBuffer (obj) { | ||
return typeof obj.readFloatLE === 'function' && typeof obj.slice === 'function' && isBuffer(obj.slice(0, 0)) | ||
} | ||
@@ -475,4 +465,4 @@ | ||
var utils = __webpack_require__(2); | ||
var InterceptorManager = __webpack_require__(17); | ||
var dispatchRequest = __webpack_require__(18); | ||
var InterceptorManager = __webpack_require__(16); | ||
var dispatchRequest = __webpack_require__(17); | ||
@@ -679,3 +669,2 @@ /** | ||
var createError = __webpack_require__(10); | ||
var btoa = (typeof window !== 'undefined' && window.btoa && window.btoa.bind(window)) || __webpack_require__(15); | ||
@@ -692,18 +681,3 @@ module.exports = function xhrAdapter(config) { | ||
var request = new XMLHttpRequest(); | ||
var loadEvent = 'onreadystatechange'; | ||
var xDomain = false; | ||
// For IE 8/9 CORS support | ||
// Only supports POST and GET calls and doesn't returns the response headers. | ||
// DON'T do this for testing b/c XMLHttpRequest is mocked, not XDomainRequest. | ||
if (typeof window !== 'undefined' && | ||
window.XDomainRequest && !('withCredentials' in request) && | ||
!isURLSameOrigin(config.url)) { | ||
request = new window.XDomainRequest(); | ||
loadEvent = 'onload'; | ||
xDomain = true; | ||
request.onprogress = function handleProgress() {}; | ||
request.ontimeout = function handleTimeout() {}; | ||
} | ||
// HTTP basic authentication | ||
@@ -722,4 +696,4 @@ if (config.auth) { | ||
// Listen for ready state | ||
request[loadEvent] = function handleLoad() { | ||
if (!request || (request.readyState !== 4 && !xDomain)) { | ||
request.onreadystatechange = function handleLoad() { | ||
if (!request || request.readyState !== 4) { | ||
return; | ||
@@ -741,5 +715,4 @@ } | ||
data: responseData, | ||
// IE sends 1223 instead of 204 (https://github.com/axios/axios/issues/201) | ||
status: request.status === 1223 ? 204 : request.status, | ||
statusText: request.status === 1223 ? 'No Content' : request.statusText, | ||
status: request.status, | ||
statusText: request.statusText, | ||
headers: responseHeaders, | ||
@@ -779,3 +752,3 @@ config: config, | ||
if (utils.isStandardBrowserEnv()) { | ||
var cookies = __webpack_require__(16); | ||
var cookies = __webpack_require__(15); | ||
@@ -1135,42 +1108,2 @@ // Add xsrf header | ||
/* 15 */ | ||
/***/ (function(module, exports) { | ||
// btoa polyfill for IE<10 courtesy https://github.com/davidchambers/Base64.js | ||
var chars = 'ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/='; | ||
function E() { | ||
this.message = 'String contains an invalid character'; | ||
} | ||
E.prototype = new Error; | ||
E.prototype.code = 5; | ||
E.prototype.name = 'InvalidCharacterError'; | ||
function btoa(input) { | ||
var str = String(input); | ||
var output = ''; | ||
for ( | ||
// initialize result and counter | ||
var block, charCode, idx = 0, map = chars; | ||
// if the next str index does not exist: | ||
// change the mapping table to "=" | ||
// check if d has no fractional digits | ||
str.charAt(idx | 0) || (map = '=', idx % 1); | ||
// "8 - idx % 1 * 8" generates the sequence 2, 4, 6, 8 | ||
output += map.charAt(63 & block >> 8 - idx % 1 * 8) | ||
) { | ||
charCode = str.charCodeAt(idx += 3 / 4); | ||
if (charCode > 0xFF) { | ||
throw new E(); | ||
} | ||
block = block << 8 | charCode; | ||
} | ||
return output; | ||
} | ||
module.exports = btoa; | ||
/***/ }), | ||
/* 16 */ | ||
/***/ (function(module, exports, __webpack_require__) { | ||
@@ -1232,3 +1165,3 @@ | ||
/***/ }), | ||
/* 17 */ | ||
/* 16 */ | ||
/***/ (function(module, exports, __webpack_require__) { | ||
@@ -1289,11 +1222,11 @@ | ||
/***/ }), | ||
/* 18 */ | ||
/* 17 */ | ||
/***/ (function(module, exports, __webpack_require__) { | ||
var utils = __webpack_require__(2); | ||
var transformData = __webpack_require__(19); | ||
var isCancel = __webpack_require__(20); | ||
var transformData = __webpack_require__(18); | ||
var isCancel = __webpack_require__(19); | ||
var defaults = __webpack_require__(6); | ||
var isAbsoluteURL = __webpack_require__(21); | ||
var combineURLs = __webpack_require__(22); | ||
var isAbsoluteURL = __webpack_require__(20); | ||
var combineURLs = __webpack_require__(21); | ||
@@ -1380,3 +1313,3 @@ /** | ||
/***/ }), | ||
/* 19 */ | ||
/* 18 */ | ||
/***/ (function(module, exports, __webpack_require__) { | ||
@@ -1405,3 +1338,3 @@ | ||
/***/ }), | ||
/* 20 */ | ||
/* 19 */ | ||
/***/ (function(module, exports) { | ||
@@ -1415,3 +1348,3 @@ | ||
/***/ }), | ||
/* 21 */ | ||
/* 20 */ | ||
/***/ (function(module, exports) { | ||
@@ -1434,3 +1367,3 @@ | ||
/***/ }), | ||
/* 22 */ | ||
/* 21 */ | ||
/***/ (function(module, exports) { | ||
@@ -1453,3 +1386,3 @@ | ||
/***/ }), | ||
/* 23 */ | ||
/* 22 */ | ||
/***/ (function(module, exports) { | ||
@@ -1477,6 +1410,6 @@ | ||
/***/ }), | ||
/* 24 */ | ||
/* 23 */ | ||
/***/ (function(module, exports, __webpack_require__) { | ||
var Cancel = __webpack_require__(23); | ||
var Cancel = __webpack_require__(22); | ||
@@ -1539,3 +1472,3 @@ /** | ||
/***/ }), | ||
/* 25 */ | ||
/* 24 */ | ||
/***/ (function(module, exports) { | ||
@@ -1542,0 +1475,0 @@ |
{ | ||
"name": "@bundled-es-modules/axios", | ||
"version": "0.18.0", | ||
"version": "0.18.1", | ||
"description": "mirror of axios, bundled and exposed as ES module", | ||
@@ -8,3 +8,3 @@ "author": "Mikhail Bashkirov <bashmish@gmail.com>", | ||
"devDependencies": { | ||
"axios": "0.18.0", | ||
"axios": "0.18.1", | ||
"rollup": "^0.62.0", | ||
@@ -11,0 +11,0 @@ "rollup-plugin-commonjs": "^9.1.3" |
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
41477
1274