makerspace-react-rails 0.1.2 → 0.1.5
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: de6b80b17a885444e2283c57e58929d9566120697636c9fd457a9670574be36a
|
4
|
+
data.tar.gz: c8d602f9028dbe4e0e8bab89df536a0a812902c45da397ee5fd82ac8a99ed5c2
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 91df6432ba55bd6657547aaa02918131768f71f400996f076e5b1df7de3d210adfc443b40b2550c4d1871d86249be170cfbb4a6c5ab0b477b2301ac2875bb929
|
7
|
+
data.tar.gz: 4fb7219c0d2afe45fd4d621ffa110cf2fc7094284816e51ca58e91f6de4deb0c5c193bec2f88865df69d2d04bf7f90931de513ac62ecdd08e9eb2b34d0376143
|
@@ -40013,7 +40013,6 @@ var buildURL = __webpack_require__(/*! ./../helpers/buildURL */ "./node_modules/
|
|
40013
40013
|
var parseHeaders = __webpack_require__(/*! ./../helpers/parseHeaders */ "./node_modules/axios/lib/helpers/parseHeaders.js");
|
40014
40014
|
var isURLSameOrigin = __webpack_require__(/*! ./../helpers/isURLSameOrigin */ "./node_modules/axios/lib/helpers/isURLSameOrigin.js");
|
40015
40015
|
var createError = __webpack_require__(/*! ../core/createError */ "./node_modules/axios/lib/core/createError.js");
|
40016
|
-
var btoa = (typeof window !== 'undefined' && window.btoa && window.btoa.bind(window)) || __webpack_require__(/*! ./../helpers/btoa */ "./node_modules/axios/lib/helpers/btoa.js");
|
40017
40016
|
|
40018
40017
|
module.exports = function xhrAdapter(config) {
|
40019
40018
|
return new Promise(function dispatchXhrRequest(resolve, reject) {
|
@@ -40025,22 +40024,6 @@ module.exports = function xhrAdapter(config) {
|
|
40025
40024
|
}
|
40026
40025
|
|
40027
40026
|
var request = new XMLHttpRequest();
|
40028
|
-
var loadEvent = 'onreadystatechange';
|
40029
|
-
var xDomain = false;
|
40030
|
-
|
40031
|
-
// For IE 8/9 CORS support
|
40032
|
-
// Only supports POST and GET calls and doesn't returns the response headers.
|
40033
|
-
// DON'T do this for testing b/c XMLHttpRequest is mocked, not XDomainRequest.
|
40034
|
-
if ( true &&
|
40035
|
-
typeof window !== 'undefined' &&
|
40036
|
-
window.XDomainRequest && !('withCredentials' in request) &&
|
40037
|
-
!isURLSameOrigin(config.url)) {
|
40038
|
-
request = new window.XDomainRequest();
|
40039
|
-
loadEvent = 'onload';
|
40040
|
-
xDomain = true;
|
40041
|
-
request.onprogress = function handleProgress() {};
|
40042
|
-
request.ontimeout = function handleTimeout() {};
|
40043
|
-
}
|
40044
40027
|
|
40045
40028
|
// HTTP basic authentication
|
40046
40029
|
if (config.auth) {
|
@@ -40055,8 +40038,8 @@ module.exports = function xhrAdapter(config) {
|
|
40055
40038
|
request.timeout = config.timeout;
|
40056
40039
|
|
40057
40040
|
// Listen for ready state
|
40058
|
-
request
|
40059
|
-
if (!request ||
|
40041
|
+
request.onreadystatechange = function handleLoad() {
|
40042
|
+
if (!request || request.readyState !== 4) {
|
40060
40043
|
return;
|
40061
40044
|
}
|
40062
40045
|
|
@@ -40073,9 +40056,8 @@ module.exports = function xhrAdapter(config) {
|
|
40073
40056
|
var responseData = !config.responseType || config.responseType === 'text' ? request.responseText : request.response;
|
40074
40057
|
var response = {
|
40075
40058
|
data: responseData,
|
40076
|
-
|
40077
|
-
|
40078
|
-
statusText: request.status === 1223 ? 'No Content' : request.statusText,
|
40059
|
+
status: request.status,
|
40060
|
+
statusText: request.statusText,
|
40079
40061
|
headers: responseHeaders,
|
40080
40062
|
config: config,
|
40081
40063
|
request: request
|
@@ -40087,6 +40069,18 @@ module.exports = function xhrAdapter(config) {
|
|
40087
40069
|
request = null;
|
40088
40070
|
};
|
40089
40071
|
|
40072
|
+
// Handle browser request cancellation (as opposed to a manual cancellation)
|
40073
|
+
request.onabort = function handleAbort() {
|
40074
|
+
if (!request) {
|
40075
|
+
return;
|
40076
|
+
}
|
40077
|
+
|
40078
|
+
reject(createError('Request aborted', config, 'ECONNABORTED', request));
|
40079
|
+
|
40080
|
+
// Clean up request
|
40081
|
+
request = null;
|
40082
|
+
};
|
40083
|
+
|
40090
40084
|
// Handle low level network errors
|
40091
40085
|
request.onerror = function handleError() {
|
40092
40086
|
// Real errors are hidden from us by the browser
|
@@ -40114,8 +40108,8 @@ module.exports = function xhrAdapter(config) {
|
|
40114
40108
|
|
40115
40109
|
// Add xsrf header
|
40116
40110
|
var xsrfValue = (config.withCredentials || isURLSameOrigin(config.url)) && config.xsrfCookieName ?
|
40117
|
-
|
40118
|
-
|
40111
|
+
cookies.read(config.xsrfCookieName) :
|
40112
|
+
undefined;
|
40119
40113
|
|
40120
40114
|
if (xsrfValue) {
|
40121
40115
|
requestHeaders[config.xsrfHeaderName] = xsrfValue;
|
@@ -40202,6 +40196,7 @@ module.exports = function xhrAdapter(config) {
|
|
40202
40196
|
var utils = __webpack_require__(/*! ./utils */ "./node_modules/axios/lib/utils.js");
|
40203
40197
|
var bind = __webpack_require__(/*! ./helpers/bind */ "./node_modules/axios/lib/helpers/bind.js");
|
40204
40198
|
var Axios = __webpack_require__(/*! ./core/Axios */ "./node_modules/axios/lib/core/Axios.js");
|
40199
|
+
var mergeConfig = __webpack_require__(/*! ./core/mergeConfig */ "./node_modules/axios/lib/core/mergeConfig.js");
|
40205
40200
|
var defaults = __webpack_require__(/*! ./defaults */ "./node_modules/axios/lib/defaults.js");
|
40206
40201
|
|
40207
40202
|
/**
|
@@ -40231,7 +40226,7 @@ axios.Axios = Axios;
|
|
40231
40226
|
|
40232
40227
|
// Factory for creating new instances
|
40233
40228
|
axios.create = function create(instanceConfig) {
|
40234
|
-
return createInstance(
|
40229
|
+
return createInstance(mergeConfig(axios.defaults, instanceConfig));
|
40235
40230
|
};
|
40236
40231
|
|
40237
40232
|
// Expose Cancel & CancelToken
|
@@ -40380,10 +40375,11 @@ module.exports = function isCancel(value) {
|
|
40380
40375
|
"use strict";
|
40381
40376
|
|
40382
40377
|
|
40383
|
-
var defaults = __webpack_require__(/*! ./../defaults */ "./node_modules/axios/lib/defaults.js");
|
40384
40378
|
var utils = __webpack_require__(/*! ./../utils */ "./node_modules/axios/lib/utils.js");
|
40379
|
+
var buildURL = __webpack_require__(/*! ../helpers/buildURL */ "./node_modules/axios/lib/helpers/buildURL.js");
|
40385
40380
|
var InterceptorManager = __webpack_require__(/*! ./InterceptorManager */ "./node_modules/axios/lib/core/InterceptorManager.js");
|
40386
40381
|
var dispatchRequest = __webpack_require__(/*! ./dispatchRequest */ "./node_modules/axios/lib/core/dispatchRequest.js");
|
40382
|
+
var mergeConfig = __webpack_require__(/*! ./mergeConfig */ "./node_modules/axios/lib/core/mergeConfig.js");
|
40387
40383
|
|
40388
40384
|
/**
|
40389
40385
|
* Create a new instance of Axios
|
@@ -40407,13 +40403,14 @@ Axios.prototype.request = function request(config) {
|
|
40407
40403
|
/*eslint no-param-reassign:0*/
|
40408
40404
|
// Allow for axios('example/url'[, config]) a la fetch API
|
40409
40405
|
if (typeof config === 'string') {
|
40410
|
-
config =
|
40411
|
-
|
40412
|
-
|
40406
|
+
config = arguments[1] || {};
|
40407
|
+
config.url = arguments[0];
|
40408
|
+
} else {
|
40409
|
+
config = config || {};
|
40413
40410
|
}
|
40414
40411
|
|
40415
|
-
config =
|
40416
|
-
config.method = config.method.toLowerCase();
|
40412
|
+
config = mergeConfig(this.defaults, config);
|
40413
|
+
config.method = config.method ? config.method.toLowerCase() : 'get';
|
40417
40414
|
|
40418
40415
|
// Hook up interceptors middleware
|
40419
40416
|
var chain = [dispatchRequest, undefined];
|
@@ -40434,6 +40431,11 @@ Axios.prototype.request = function request(config) {
|
|
40434
40431
|
return promise;
|
40435
40432
|
};
|
40436
40433
|
|
40434
|
+
Axios.prototype.getUri = function getUri(config) {
|
40435
|
+
config = mergeConfig(this.defaults, config);
|
40436
|
+
return buildURL(config.url, config.params, config.paramsSerializer).replace(/^\?/, '');
|
40437
|
+
};
|
40438
|
+
|
40437
40439
|
// Provide aliases for supported request methods
|
40438
40440
|
utils.forEach(['delete', 'get', 'head', 'options'], function forEachMethodNoData(method) {
|
40439
40441
|
/*eslint func-names:0*/
|
@@ -40678,12 +40680,96 @@ module.exports = function enhanceError(error, config, code, request, response) {
|
|
40678
40680
|
if (code) {
|
40679
40681
|
error.code = code;
|
40680
40682
|
}
|
40683
|
+
|
40681
40684
|
error.request = request;
|
40682
40685
|
error.response = response;
|
40686
|
+
error.isAxiosError = true;
|
40687
|
+
|
40688
|
+
error.toJSON = function() {
|
40689
|
+
return {
|
40690
|
+
// Standard
|
40691
|
+
message: this.message,
|
40692
|
+
name: this.name,
|
40693
|
+
// Microsoft
|
40694
|
+
description: this.description,
|
40695
|
+
number: this.number,
|
40696
|
+
// Mozilla
|
40697
|
+
fileName: this.fileName,
|
40698
|
+
lineNumber: this.lineNumber,
|
40699
|
+
columnNumber: this.columnNumber,
|
40700
|
+
stack: this.stack,
|
40701
|
+
// Axios
|
40702
|
+
config: this.config,
|
40703
|
+
code: this.code
|
40704
|
+
};
|
40705
|
+
};
|
40683
40706
|
return error;
|
40684
40707
|
};
|
40685
40708
|
|
40686
40709
|
|
40710
|
+
/***/ }),
|
40711
|
+
|
40712
|
+
/***/ "./node_modules/axios/lib/core/mergeConfig.js":
|
40713
|
+
/*!****************************************************!*\
|
40714
|
+
!*** ./node_modules/axios/lib/core/mergeConfig.js ***!
|
40715
|
+
\****************************************************/
|
40716
|
+
/*! no static exports found */
|
40717
|
+
/***/ (function(module, exports, __webpack_require__) {
|
40718
|
+
|
40719
|
+
"use strict";
|
40720
|
+
|
40721
|
+
|
40722
|
+
var utils = __webpack_require__(/*! ../utils */ "./node_modules/axios/lib/utils.js");
|
40723
|
+
|
40724
|
+
/**
|
40725
|
+
* Config-specific merge-function which creates a new config-object
|
40726
|
+
* by merging two configuration objects together.
|
40727
|
+
*
|
40728
|
+
* @param {Object} config1
|
40729
|
+
* @param {Object} config2
|
40730
|
+
* @returns {Object} New object resulting from merging config2 to config1
|
40731
|
+
*/
|
40732
|
+
module.exports = function mergeConfig(config1, config2) {
|
40733
|
+
// eslint-disable-next-line no-param-reassign
|
40734
|
+
config2 = config2 || {};
|
40735
|
+
var config = {};
|
40736
|
+
|
40737
|
+
utils.forEach(['url', 'method', 'params', 'data'], function valueFromConfig2(prop) {
|
40738
|
+
if (typeof config2[prop] !== 'undefined') {
|
40739
|
+
config[prop] = config2[prop];
|
40740
|
+
}
|
40741
|
+
});
|
40742
|
+
|
40743
|
+
utils.forEach(['headers', 'auth', 'proxy'], function mergeDeepProperties(prop) {
|
40744
|
+
if (utils.isObject(config2[prop])) {
|
40745
|
+
config[prop] = utils.deepMerge(config1[prop], config2[prop]);
|
40746
|
+
} else if (typeof config2[prop] !== 'undefined') {
|
40747
|
+
config[prop] = config2[prop];
|
40748
|
+
} else if (utils.isObject(config1[prop])) {
|
40749
|
+
config[prop] = utils.deepMerge(config1[prop]);
|
40750
|
+
} else if (typeof config1[prop] !== 'undefined') {
|
40751
|
+
config[prop] = config1[prop];
|
40752
|
+
}
|
40753
|
+
});
|
40754
|
+
|
40755
|
+
utils.forEach([
|
40756
|
+
'baseURL', 'transformRequest', 'transformResponse', 'paramsSerializer',
|
40757
|
+
'timeout', 'withCredentials', 'adapter', 'responseType', 'xsrfCookieName',
|
40758
|
+
'xsrfHeaderName', 'onUploadProgress', 'onDownloadProgress', 'maxContentLength',
|
40759
|
+
'validateStatus', 'maxRedirects', 'httpAgent', 'httpsAgent', 'cancelToken',
|
40760
|
+
'socketPath'
|
40761
|
+
], function defaultToConfig2(prop) {
|
40762
|
+
if (typeof config2[prop] !== 'undefined') {
|
40763
|
+
config[prop] = config2[prop];
|
40764
|
+
} else if (typeof config1[prop] !== 'undefined') {
|
40765
|
+
config[prop] = config1[prop];
|
40766
|
+
}
|
40767
|
+
});
|
40768
|
+
|
40769
|
+
return config;
|
40770
|
+
};
|
40771
|
+
|
40772
|
+
|
40687
40773
|
/***/ }),
|
40688
40774
|
|
40689
40775
|
/***/ "./node_modules/axios/lib/core/settle.js":
|
@@ -40707,8 +40793,7 @@ var createError = __webpack_require__(/*! ./createError */ "./node_modules/axios
|
|
40707
40793
|
*/
|
40708
40794
|
module.exports = function settle(resolve, reject, response) {
|
40709
40795
|
var validateStatus = response.config.validateStatus;
|
40710
|
-
|
40711
|
-
if (!response.status || !validateStatus || validateStatus(response.status)) {
|
40796
|
+
if (!validateStatus || validateStatus(response.status)) {
|
40712
40797
|
resolve(response);
|
40713
40798
|
} else {
|
40714
40799
|
reject(createError(
|
@@ -40781,12 +40866,13 @@ function setContentTypeIfUnset(headers, value) {
|
|
40781
40866
|
|
40782
40867
|
function getDefaultAdapter() {
|
40783
40868
|
var adapter;
|
40784
|
-
|
40785
|
-
|
40786
|
-
adapter = __webpack_require__(/*! ./adapters/xhr */ "./node_modules/axios/lib/adapters/xhr.js");
|
40787
|
-
} else if (typeof process !== 'undefined') {
|
40869
|
+
// Only Node.JS has a process variable that is of [[Class]] process
|
40870
|
+
if (typeof process !== 'undefined' && Object.prototype.toString.call(process) === '[object process]') {
|
40788
40871
|
// For node use HTTP adapter
|
40789
40872
|
adapter = __webpack_require__(/*! ./adapters/http */ "./node_modules/axios/lib/adapters/xhr.js");
|
40873
|
+
} else if (typeof XMLHttpRequest !== 'undefined') {
|
40874
|
+
// For browsers use XHR adapter
|
40875
|
+
adapter = __webpack_require__(/*! ./adapters/xhr */ "./node_modules/axios/lib/adapters/xhr.js");
|
40790
40876
|
}
|
40791
40877
|
return adapter;
|
40792
40878
|
}
|
@@ -40795,6 +40881,7 @@ var defaults = {
|
|
40795
40881
|
adapter: getDefaultAdapter(),
|
40796
40882
|
|
40797
40883
|
transformRequest: [function transformRequest(data, headers) {
|
40884
|
+
normalizeHeaderName(headers, 'Accept');
|
40798
40885
|
normalizeHeaderName(headers, 'Content-Type');
|
40799
40886
|
if (utils.isFormData(data) ||
|
40800
40887
|
utils.isArrayBuffer(data) ||
|
@@ -40886,54 +40973,6 @@ module.exports = function bind(fn, thisArg) {
|
|
40886
40973
|
};
|
40887
40974
|
|
40888
40975
|
|
40889
|
-
/***/ }),
|
40890
|
-
|
40891
|
-
/***/ "./node_modules/axios/lib/helpers/btoa.js":
|
40892
|
-
/*!************************************************!*\
|
40893
|
-
!*** ./node_modules/axios/lib/helpers/btoa.js ***!
|
40894
|
-
\************************************************/
|
40895
|
-
/*! no static exports found */
|
40896
|
-
/***/ (function(module, exports, __webpack_require__) {
|
40897
|
-
|
40898
|
-
"use strict";
|
40899
|
-
|
40900
|
-
|
40901
|
-
// btoa polyfill for IE<10 courtesy https://github.com/davidchambers/Base64.js
|
40902
|
-
|
40903
|
-
var chars = 'ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/=';
|
40904
|
-
|
40905
|
-
function E() {
|
40906
|
-
this.message = 'String contains an invalid character';
|
40907
|
-
}
|
40908
|
-
E.prototype = new Error;
|
40909
|
-
E.prototype.code = 5;
|
40910
|
-
E.prototype.name = 'InvalidCharacterError';
|
40911
|
-
|
40912
|
-
function btoa(input) {
|
40913
|
-
var str = String(input);
|
40914
|
-
var output = '';
|
40915
|
-
for (
|
40916
|
-
// initialize result and counter
|
40917
|
-
var block, charCode, idx = 0, map = chars;
|
40918
|
-
// if the next str index does not exist:
|
40919
|
-
// change the mapping table to "="
|
40920
|
-
// check if d has no fractional digits
|
40921
|
-
str.charAt(idx | 0) || (map = '=', idx % 1);
|
40922
|
-
// "8 - idx % 1 * 8" generates the sequence 2, 4, 6, 8
|
40923
|
-
output += map.charAt(63 & block >> 8 - idx % 1 * 8)
|
40924
|
-
) {
|
40925
|
-
charCode = str.charCodeAt(idx += 3 / 4);
|
40926
|
-
if (charCode > 0xFF) {
|
40927
|
-
throw new E();
|
40928
|
-
}
|
40929
|
-
block = block << 8 | charCode;
|
40930
|
-
}
|
40931
|
-
return output;
|
40932
|
-
}
|
40933
|
-
|
40934
|
-
module.exports = btoa;
|
40935
|
-
|
40936
|
-
|
40937
40976
|
/***/ }),
|
40938
40977
|
|
40939
40978
|
/***/ "./node_modules/axios/lib/helpers/buildURL.js":
|
@@ -41005,6 +41044,11 @@ module.exports = function buildURL(url, params, paramsSerializer) {
|
|
41005
41044
|
}
|
41006
41045
|
|
41007
41046
|
if (serializedParams) {
|
41047
|
+
var hashmarkIndex = url.indexOf('#');
|
41048
|
+
if (hashmarkIndex !== -1) {
|
41049
|
+
url = url.slice(0, hashmarkIndex);
|
41050
|
+
}
|
41051
|
+
|
41008
41052
|
url += (url.indexOf('?') === -1 ? '?' : '&') + serializedParams;
|
41009
41053
|
}
|
41010
41054
|
|
@@ -41056,50 +41100,50 @@ module.exports = (
|
|
41056
41100
|
utils.isStandardBrowserEnv() ?
|
41057
41101
|
|
41058
41102
|
// Standard browser envs support document.cookie
|
41059
|
-
|
41060
|
-
|
41061
|
-
|
41062
|
-
|
41063
|
-
|
41103
|
+
(function standardBrowserEnv() {
|
41104
|
+
return {
|
41105
|
+
write: function write(name, value, expires, path, domain, secure) {
|
41106
|
+
var cookie = [];
|
41107
|
+
cookie.push(name + '=' + encodeURIComponent(value));
|
41064
41108
|
|
41065
|
-
|
41066
|
-
|
41067
|
-
|
41109
|
+
if (utils.isNumber(expires)) {
|
41110
|
+
cookie.push('expires=' + new Date(expires).toGMTString());
|
41111
|
+
}
|
41068
41112
|
|
41069
|
-
|
41070
|
-
|
41071
|
-
|
41113
|
+
if (utils.isString(path)) {
|
41114
|
+
cookie.push('path=' + path);
|
41115
|
+
}
|
41072
41116
|
|
41073
|
-
|
41074
|
-
|
41075
|
-
|
41117
|
+
if (utils.isString(domain)) {
|
41118
|
+
cookie.push('domain=' + domain);
|
41119
|
+
}
|
41076
41120
|
|
41077
|
-
|
41078
|
-
|
41079
|
-
|
41121
|
+
if (secure === true) {
|
41122
|
+
cookie.push('secure');
|
41123
|
+
}
|
41080
41124
|
|
41081
|
-
|
41082
|
-
|
41125
|
+
document.cookie = cookie.join('; ');
|
41126
|
+
},
|
41083
41127
|
|
41084
|
-
|
41085
|
-
|
41086
|
-
|
41087
|
-
|
41128
|
+
read: function read(name) {
|
41129
|
+
var match = document.cookie.match(new RegExp('(^|;\\s*)(' + name + ')=([^;]*)'));
|
41130
|
+
return (match ? decodeURIComponent(match[3]) : null);
|
41131
|
+
},
|
41088
41132
|
|
41089
|
-
|
41090
|
-
|
41091
|
-
|
41092
|
-
|
41093
|
-
|
41133
|
+
remove: function remove(name) {
|
41134
|
+
this.write(name, '', Date.now() - 86400000);
|
41135
|
+
}
|
41136
|
+
};
|
41137
|
+
})() :
|
41094
41138
|
|
41095
41139
|
// Non standard browser env (web workers, react-native) lack needed support.
|
41096
|
-
|
41097
|
-
|
41098
|
-
|
41099
|
-
|
41100
|
-
|
41101
|
-
|
41102
|
-
|
41140
|
+
(function nonStandardBrowserEnv() {
|
41141
|
+
return {
|
41142
|
+
write: function write() {},
|
41143
|
+
read: function read() { return null; },
|
41144
|
+
remove: function remove() {}
|
41145
|
+
};
|
41146
|
+
})()
|
41103
41147
|
);
|
41104
41148
|
|
41105
41149
|
|
@@ -41148,64 +41192,64 @@ module.exports = (
|
|
41148
41192
|
|
41149
41193
|
// Standard browser envs have full support of the APIs needed to test
|
41150
41194
|
// whether the request URL is of the same origin as current location.
|
41151
|
-
|
41152
|
-
|
41153
|
-
|
41154
|
-
|
41195
|
+
(function standardBrowserEnv() {
|
41196
|
+
var msie = /(msie|trident)/i.test(navigator.userAgent);
|
41197
|
+
var urlParsingNode = document.createElement('a');
|
41198
|
+
var originURL;
|
41155
41199
|
|
41156
|
-
|
41200
|
+
/**
|
41157
41201
|
* Parse a URL to discover it's components
|
41158
41202
|
*
|
41159
41203
|
* @param {String} url The URL to be parsed
|
41160
41204
|
* @returns {Object}
|
41161
41205
|
*/
|
41162
|
-
|
41163
|
-
|
41206
|
+
function resolveURL(url) {
|
41207
|
+
var href = url;
|
41164
41208
|
|
41165
|
-
|
41209
|
+
if (msie) {
|
41166
41210
|
// IE needs attribute set twice to normalize properties
|
41167
|
-
|
41168
|
-
|
41169
|
-
|
41211
|
+
urlParsingNode.setAttribute('href', href);
|
41212
|
+
href = urlParsingNode.href;
|
41213
|
+
}
|
41170
41214
|
|
41171
|
-
|
41215
|
+
urlParsingNode.setAttribute('href', href);
|
41172
41216
|
|
41173
|
-
|
41174
|
-
|
41175
|
-
|
41176
|
-
|
41177
|
-
|
41178
|
-
|
41179
|
-
|
41180
|
-
|
41181
|
-
|
41182
|
-
|
41183
|
-
|
41184
|
-
|
41185
|
-
|
41186
|
-
|
41217
|
+
// urlParsingNode provides the UrlUtils interface - http://url.spec.whatwg.org/#urlutils
|
41218
|
+
return {
|
41219
|
+
href: urlParsingNode.href,
|
41220
|
+
protocol: urlParsingNode.protocol ? urlParsingNode.protocol.replace(/:$/, '') : '',
|
41221
|
+
host: urlParsingNode.host,
|
41222
|
+
search: urlParsingNode.search ? urlParsingNode.search.replace(/^\?/, '') : '',
|
41223
|
+
hash: urlParsingNode.hash ? urlParsingNode.hash.replace(/^#/, '') : '',
|
41224
|
+
hostname: urlParsingNode.hostname,
|
41225
|
+
port: urlParsingNode.port,
|
41226
|
+
pathname: (urlParsingNode.pathname.charAt(0) === '/') ?
|
41227
|
+
urlParsingNode.pathname :
|
41228
|
+
'/' + urlParsingNode.pathname
|
41229
|
+
};
|
41230
|
+
}
|
41187
41231
|
|
41188
|
-
|
41232
|
+
originURL = resolveURL(window.location.href);
|
41189
41233
|
|
41190
|
-
|
41234
|
+
/**
|
41191
41235
|
* Determine if a URL shares the same origin as the current location
|
41192
41236
|
*
|
41193
41237
|
* @param {String} requestURL The URL to test
|
41194
41238
|
* @returns {boolean} True if URL shares the same origin, otherwise false
|
41195
41239
|
*/
|
41196
|
-
|
41197
|
-
|
41198
|
-
|
41240
|
+
return function isURLSameOrigin(requestURL) {
|
41241
|
+
var parsed = (utils.isString(requestURL)) ? resolveURL(requestURL) : requestURL;
|
41242
|
+
return (parsed.protocol === originURL.protocol &&
|
41199
41243
|
parsed.host === originURL.host);
|
41200
|
-
|
41201
|
-
|
41244
|
+
};
|
41245
|
+
})() :
|
41202
41246
|
|
41203
41247
|
// Non standard browser envs (web workers, react-native) lack needed support.
|
41204
|
-
|
41205
|
-
|
41206
|
-
|
41207
|
-
|
41208
|
-
|
41248
|
+
(function nonStandardBrowserEnv() {
|
41249
|
+
return function isURLSameOrigin() {
|
41250
|
+
return true;
|
41251
|
+
};
|
41252
|
+
})()
|
41209
41253
|
);
|
41210
41254
|
|
41211
41255
|
|
@@ -41350,7 +41394,7 @@ module.exports = function spread(callback) {
|
|
41350
41394
|
|
41351
41395
|
|
41352
41396
|
var bind = __webpack_require__(/*! ./helpers/bind */ "./node_modules/axios/lib/helpers/bind.js");
|
41353
|
-
var isBuffer = __webpack_require__(/*! is-buffer */ "./node_modules/is-buffer/index.js");
|
41397
|
+
var isBuffer = __webpack_require__(/*! is-buffer */ "./node_modules/axios/node_modules/is-buffer/index.js");
|
41354
41398
|
|
41355
41399
|
/*global toString:true*/
|
41356
41400
|
|
@@ -41526,9 +41570,13 @@ function trim(str) {
|
|
41526
41570
|
*
|
41527
41571
|
* react-native:
|
41528
41572
|
* navigator.product -> 'ReactNative'
|
41573
|
+
* nativescript
|
41574
|
+
* navigator.product -> 'NativeScript' or 'NS'
|
41529
41575
|
*/
|
41530
41576
|
function isStandardBrowserEnv() {
|
41531
|
-
if (typeof navigator !== 'undefined' && navigator.product === 'ReactNative'
|
41577
|
+
if (typeof navigator !== 'undefined' && (navigator.product === 'ReactNative' ||
|
41578
|
+
navigator.product === 'NativeScript' ||
|
41579
|
+
navigator.product === 'NS')) {
|
41532
41580
|
return false;
|
41533
41581
|
}
|
41534
41582
|
return (
|
@@ -41609,6 +41657,32 @@ function merge(/* obj1, obj2, obj3, ... */) {
|
|
41609
41657
|
return result;
|
41610
41658
|
}
|
41611
41659
|
|
41660
|
+
/**
|
41661
|
+
* Function equal to merge with the difference being that no reference
|
41662
|
+
* to original objects is kept.
|
41663
|
+
*
|
41664
|
+
* @see merge
|
41665
|
+
* @param {Object} obj1 Object to merge
|
41666
|
+
* @returns {Object} Result of all merge properties
|
41667
|
+
*/
|
41668
|
+
function deepMerge(/* obj1, obj2, obj3, ... */) {
|
41669
|
+
var result = {};
|
41670
|
+
function assignValue(val, key) {
|
41671
|
+
if (typeof result[key] === 'object' && typeof val === 'object') {
|
41672
|
+
result[key] = deepMerge(result[key], val);
|
41673
|
+
} else if (typeof val === 'object') {
|
41674
|
+
result[key] = deepMerge({}, val);
|
41675
|
+
} else {
|
41676
|
+
result[key] = val;
|
41677
|
+
}
|
41678
|
+
}
|
41679
|
+
|
41680
|
+
for (var i = 0, l = arguments.length; i < l; i++) {
|
41681
|
+
forEach(arguments[i], assignValue);
|
41682
|
+
}
|
41683
|
+
return result;
|
41684
|
+
}
|
41685
|
+
|
41612
41686
|
/**
|
41613
41687
|
* Extends object a by mutably adding to it the properties of object b.
|
41614
41688
|
*
|
@@ -41647,11 +41721,34 @@ module.exports = {
|
|
41647
41721
|
isStandardBrowserEnv: isStandardBrowserEnv,
|
41648
41722
|
forEach: forEach,
|
41649
41723
|
merge: merge,
|
41724
|
+
deepMerge: deepMerge,
|
41650
41725
|
extend: extend,
|
41651
41726
|
trim: trim
|
41652
41727
|
};
|
41653
41728
|
|
41654
41729
|
|
41730
|
+
/***/ }),
|
41731
|
+
|
41732
|
+
/***/ "./node_modules/axios/node_modules/is-buffer/index.js":
|
41733
|
+
/*!************************************************************!*\
|
41734
|
+
!*** ./node_modules/axios/node_modules/is-buffer/index.js ***!
|
41735
|
+
\************************************************************/
|
41736
|
+
/*! no static exports found */
|
41737
|
+
/***/ (function(module, exports) {
|
41738
|
+
|
41739
|
+
/*!
|
41740
|
+
* Determine if an object is a Buffer
|
41741
|
+
*
|
41742
|
+
* @author Feross Aboukhadijeh <https://feross.org>
|
41743
|
+
* @license MIT
|
41744
|
+
*/
|
41745
|
+
|
41746
|
+
module.exports = function isBuffer (obj) {
|
41747
|
+
return obj != null && obj.constructor != null &&
|
41748
|
+
typeof obj.constructor.isBuffer === 'function' && obj.constructor.isBuffer(obj)
|
41749
|
+
}
|
41750
|
+
|
41751
|
+
|
41655
41752
|
/***/ }),
|
41656
41753
|
|
41657
41754
|
/***/ "./node_modules/base64-js/index.js":
|
@@ -74402,38 +74499,6 @@ var invariant = function(condition, format, a, b, c, d, e, f) {
|
|
74402
74499
|
module.exports = invariant;
|
74403
74500
|
|
74404
74501
|
|
74405
|
-
/***/ }),
|
74406
|
-
|
74407
|
-
/***/ "./node_modules/is-buffer/index.js":
|
74408
|
-
/*!*****************************************!*\
|
74409
|
-
!*** ./node_modules/is-buffer/index.js ***!
|
74410
|
-
\*****************************************/
|
74411
|
-
/*! no static exports found */
|
74412
|
-
/***/ (function(module, exports) {
|
74413
|
-
|
74414
|
-
/*!
|
74415
|
-
* Determine if an object is a Buffer
|
74416
|
-
*
|
74417
|
-
* @author Feross Aboukhadijeh <https://feross.org>
|
74418
|
-
* @license MIT
|
74419
|
-
*/
|
74420
|
-
|
74421
|
-
// The _isBuffer check is for Safari 5-7 support, because it's missing
|
74422
|
-
// Object.prototype.constructor. Remove this eventually
|
74423
|
-
module.exports = function (obj) {
|
74424
|
-
return obj != null && (isBuffer(obj) || isSlowBuffer(obj) || !!obj._isBuffer)
|
74425
|
-
}
|
74426
|
-
|
74427
|
-
function isBuffer (obj) {
|
74428
|
-
return !!obj.constructor && typeof obj.constructor.isBuffer === 'function' && obj.constructor.isBuffer(obj)
|
74429
|
-
}
|
74430
|
-
|
74431
|
-
// For Node v0.10 support. Remove this eventually.
|
74432
|
-
function isSlowBuffer (obj) {
|
74433
|
-
return typeof obj.readFloatLE === 'function' && typeof obj.slice === 'function' && isBuffer(obj.slice(0, 0))
|
74434
|
-
}
|
74435
|
-
|
74436
|
-
|
74437
74502
|
/***/ }),
|
74438
74503
|
|
74439
74504
|
/***/ "./node_modules/is-in-browser/dist/module.js":
|