@aws-amplify/core 4.3.13 → 4.3.14-beta.8
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.
- package/dist/aws-amplify-core.js +217 -217
- package/dist/aws-amplify-core.js.map +1 -1
- package/dist/aws-amplify-core.min.js +2 -2
- package/dist/aws-amplify-core.min.js.map +1 -1
- package/lib/Platform/version.d.ts +1 -1
- package/lib/Platform/version.js +1 -1
- package/lib-esm/Platform/version.d.ts +1 -1
- package/lib-esm/Platform/version.js +1 -1
- package/package.json +3 -3
- package/src/Platform/version.ts +1 -1
package/dist/aws-amplify-core.js
CHANGED
|
@@ -25765,220 +25765,6 @@ function isnan (val) {
|
|
|
25765
25765
|
|
|
25766
25766
|
/* WEBPACK VAR INJECTION */}.call(this, __webpack_require__(/*! ./../webpack/buildin/global.js */ "../../node_modules/webpack/buildin/global.js")))
|
|
25767
25767
|
|
|
25768
|
-
/***/ }),
|
|
25769
|
-
|
|
25770
|
-
/***/ "../../node_modules/cookie/index.js":
|
|
25771
|
-
/*!*****************************************************!*\
|
|
25772
|
-
!*** /root/amplify-js/node_modules/cookie/index.js ***!
|
|
25773
|
-
\*****************************************************/
|
|
25774
|
-
/*! no static exports found */
|
|
25775
|
-
/***/ (function(module, exports, __webpack_require__) {
|
|
25776
|
-
|
|
25777
|
-
"use strict";
|
|
25778
|
-
/*!
|
|
25779
|
-
* cookie
|
|
25780
|
-
* Copyright(c) 2012-2014 Roman Shtylman
|
|
25781
|
-
* Copyright(c) 2015 Douglas Christopher Wilson
|
|
25782
|
-
* MIT Licensed
|
|
25783
|
-
*/
|
|
25784
|
-
|
|
25785
|
-
|
|
25786
|
-
|
|
25787
|
-
/**
|
|
25788
|
-
* Module exports.
|
|
25789
|
-
* @public
|
|
25790
|
-
*/
|
|
25791
|
-
|
|
25792
|
-
exports.parse = parse;
|
|
25793
|
-
exports.serialize = serialize;
|
|
25794
|
-
|
|
25795
|
-
/**
|
|
25796
|
-
* Module variables.
|
|
25797
|
-
* @private
|
|
25798
|
-
*/
|
|
25799
|
-
|
|
25800
|
-
var decode = decodeURIComponent;
|
|
25801
|
-
var encode = encodeURIComponent;
|
|
25802
|
-
var pairSplitRegExp = /; */;
|
|
25803
|
-
|
|
25804
|
-
/**
|
|
25805
|
-
* RegExp to match field-content in RFC 7230 sec 3.2
|
|
25806
|
-
*
|
|
25807
|
-
* field-content = field-vchar [ 1*( SP / HTAB ) field-vchar ]
|
|
25808
|
-
* field-vchar = VCHAR / obs-text
|
|
25809
|
-
* obs-text = %x80-FF
|
|
25810
|
-
*/
|
|
25811
|
-
|
|
25812
|
-
var fieldContentRegExp = /^[\u0009\u0020-\u007e\u0080-\u00ff]+$/;
|
|
25813
|
-
|
|
25814
|
-
/**
|
|
25815
|
-
* Parse a cookie header.
|
|
25816
|
-
*
|
|
25817
|
-
* Parse the given cookie header string into an object
|
|
25818
|
-
* The object has the various cookies as keys(names) => values
|
|
25819
|
-
*
|
|
25820
|
-
* @param {string} str
|
|
25821
|
-
* @param {object} [options]
|
|
25822
|
-
* @return {object}
|
|
25823
|
-
* @public
|
|
25824
|
-
*/
|
|
25825
|
-
|
|
25826
|
-
function parse(str, options) {
|
|
25827
|
-
if (typeof str !== 'string') {
|
|
25828
|
-
throw new TypeError('argument str must be a string');
|
|
25829
|
-
}
|
|
25830
|
-
|
|
25831
|
-
var obj = {}
|
|
25832
|
-
var opt = options || {};
|
|
25833
|
-
var pairs = str.split(pairSplitRegExp);
|
|
25834
|
-
var dec = opt.decode || decode;
|
|
25835
|
-
|
|
25836
|
-
for (var i = 0; i < pairs.length; i++) {
|
|
25837
|
-
var pair = pairs[i];
|
|
25838
|
-
var eq_idx = pair.indexOf('=');
|
|
25839
|
-
|
|
25840
|
-
// skip things that don't look like key=value
|
|
25841
|
-
if (eq_idx < 0) {
|
|
25842
|
-
continue;
|
|
25843
|
-
}
|
|
25844
|
-
|
|
25845
|
-
var key = pair.substr(0, eq_idx).trim()
|
|
25846
|
-
var val = pair.substr(++eq_idx, pair.length).trim();
|
|
25847
|
-
|
|
25848
|
-
// quoted values
|
|
25849
|
-
if ('"' == val[0]) {
|
|
25850
|
-
val = val.slice(1, -1);
|
|
25851
|
-
}
|
|
25852
|
-
|
|
25853
|
-
// only assign once
|
|
25854
|
-
if (undefined == obj[key]) {
|
|
25855
|
-
obj[key] = tryDecode(val, dec);
|
|
25856
|
-
}
|
|
25857
|
-
}
|
|
25858
|
-
|
|
25859
|
-
return obj;
|
|
25860
|
-
}
|
|
25861
|
-
|
|
25862
|
-
/**
|
|
25863
|
-
* Serialize data into a cookie header.
|
|
25864
|
-
*
|
|
25865
|
-
* Serialize the a name value pair into a cookie string suitable for
|
|
25866
|
-
* http headers. An optional options object specified cookie parameters.
|
|
25867
|
-
*
|
|
25868
|
-
* serialize('foo', 'bar', { httpOnly: true })
|
|
25869
|
-
* => "foo=bar; httpOnly"
|
|
25870
|
-
*
|
|
25871
|
-
* @param {string} name
|
|
25872
|
-
* @param {string} val
|
|
25873
|
-
* @param {object} [options]
|
|
25874
|
-
* @return {string}
|
|
25875
|
-
* @public
|
|
25876
|
-
*/
|
|
25877
|
-
|
|
25878
|
-
function serialize(name, val, options) {
|
|
25879
|
-
var opt = options || {};
|
|
25880
|
-
var enc = opt.encode || encode;
|
|
25881
|
-
|
|
25882
|
-
if (typeof enc !== 'function') {
|
|
25883
|
-
throw new TypeError('option encode is invalid');
|
|
25884
|
-
}
|
|
25885
|
-
|
|
25886
|
-
if (!fieldContentRegExp.test(name)) {
|
|
25887
|
-
throw new TypeError('argument name is invalid');
|
|
25888
|
-
}
|
|
25889
|
-
|
|
25890
|
-
var value = enc(val);
|
|
25891
|
-
|
|
25892
|
-
if (value && !fieldContentRegExp.test(value)) {
|
|
25893
|
-
throw new TypeError('argument val is invalid');
|
|
25894
|
-
}
|
|
25895
|
-
|
|
25896
|
-
var str = name + '=' + value;
|
|
25897
|
-
|
|
25898
|
-
if (null != opt.maxAge) {
|
|
25899
|
-
var maxAge = opt.maxAge - 0;
|
|
25900
|
-
|
|
25901
|
-
if (isNaN(maxAge) || !isFinite(maxAge)) {
|
|
25902
|
-
throw new TypeError('option maxAge is invalid')
|
|
25903
|
-
}
|
|
25904
|
-
|
|
25905
|
-
str += '; Max-Age=' + Math.floor(maxAge);
|
|
25906
|
-
}
|
|
25907
|
-
|
|
25908
|
-
if (opt.domain) {
|
|
25909
|
-
if (!fieldContentRegExp.test(opt.domain)) {
|
|
25910
|
-
throw new TypeError('option domain is invalid');
|
|
25911
|
-
}
|
|
25912
|
-
|
|
25913
|
-
str += '; Domain=' + opt.domain;
|
|
25914
|
-
}
|
|
25915
|
-
|
|
25916
|
-
if (opt.path) {
|
|
25917
|
-
if (!fieldContentRegExp.test(opt.path)) {
|
|
25918
|
-
throw new TypeError('option path is invalid');
|
|
25919
|
-
}
|
|
25920
|
-
|
|
25921
|
-
str += '; Path=' + opt.path;
|
|
25922
|
-
}
|
|
25923
|
-
|
|
25924
|
-
if (opt.expires) {
|
|
25925
|
-
if (typeof opt.expires.toUTCString !== 'function') {
|
|
25926
|
-
throw new TypeError('option expires is invalid');
|
|
25927
|
-
}
|
|
25928
|
-
|
|
25929
|
-
str += '; Expires=' + opt.expires.toUTCString();
|
|
25930
|
-
}
|
|
25931
|
-
|
|
25932
|
-
if (opt.httpOnly) {
|
|
25933
|
-
str += '; HttpOnly';
|
|
25934
|
-
}
|
|
25935
|
-
|
|
25936
|
-
if (opt.secure) {
|
|
25937
|
-
str += '; Secure';
|
|
25938
|
-
}
|
|
25939
|
-
|
|
25940
|
-
if (opt.sameSite) {
|
|
25941
|
-
var sameSite = typeof opt.sameSite === 'string'
|
|
25942
|
-
? opt.sameSite.toLowerCase() : opt.sameSite;
|
|
25943
|
-
|
|
25944
|
-
switch (sameSite) {
|
|
25945
|
-
case true:
|
|
25946
|
-
str += '; SameSite=Strict';
|
|
25947
|
-
break;
|
|
25948
|
-
case 'lax':
|
|
25949
|
-
str += '; SameSite=Lax';
|
|
25950
|
-
break;
|
|
25951
|
-
case 'strict':
|
|
25952
|
-
str += '; SameSite=Strict';
|
|
25953
|
-
break;
|
|
25954
|
-
case 'none':
|
|
25955
|
-
str += '; SameSite=None';
|
|
25956
|
-
break;
|
|
25957
|
-
default:
|
|
25958
|
-
throw new TypeError('option sameSite is invalid');
|
|
25959
|
-
}
|
|
25960
|
-
}
|
|
25961
|
-
|
|
25962
|
-
return str;
|
|
25963
|
-
}
|
|
25964
|
-
|
|
25965
|
-
/**
|
|
25966
|
-
* Try decoding a string using a decoding function.
|
|
25967
|
-
*
|
|
25968
|
-
* @param {string} str
|
|
25969
|
-
* @param {function} decode
|
|
25970
|
-
* @private
|
|
25971
|
-
*/
|
|
25972
|
-
|
|
25973
|
-
function tryDecode(str, decode) {
|
|
25974
|
-
try {
|
|
25975
|
-
return decode(str);
|
|
25976
|
-
} catch (e) {
|
|
25977
|
-
return str;
|
|
25978
|
-
}
|
|
25979
|
-
}
|
|
25980
|
-
|
|
25981
|
-
|
|
25982
25768
|
/***/ }),
|
|
25983
25769
|
|
|
25984
25770
|
/***/ "../../node_modules/ieee754/index.js":
|
|
@@ -27291,7 +27077,7 @@ function __classPrivateFieldSet(receiver, privateMap, value) {
|
|
|
27291
27077
|
|
|
27292
27078
|
"use strict";
|
|
27293
27079
|
__webpack_require__.r(__webpack_exports__);
|
|
27294
|
-
/* harmony import */ var cookie__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! cookie */ "../../node_modules/cookie/index.js");
|
|
27080
|
+
/* harmony import */ var cookie__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! cookie */ "../../node_modules/universal-cookie/node_modules/cookie/index.js");
|
|
27295
27081
|
/* harmony import */ var cookie__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(cookie__WEBPACK_IMPORTED_MODULE_0__);
|
|
27296
27082
|
/* harmony import */ var _utils__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ./utils */ "../../node_modules/universal-cookie/es6/utils.js");
|
|
27297
27083
|
var __assign = (undefined && undefined.__assign) || function () {
|
|
@@ -27408,7 +27194,7 @@ __webpack_require__.r(__webpack_exports__);
|
|
|
27408
27194
|
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "parseCookies", function() { return parseCookies; });
|
|
27409
27195
|
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "isParsingCookie", function() { return isParsingCookie; });
|
|
27410
27196
|
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "readCookie", function() { return readCookie; });
|
|
27411
|
-
/* harmony import */ var cookie__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! cookie */ "../../node_modules/cookie/index.js");
|
|
27197
|
+
/* harmony import */ var cookie__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! cookie */ "../../node_modules/universal-cookie/node_modules/cookie/index.js");
|
|
27412
27198
|
/* harmony import */ var cookie__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(cookie__WEBPACK_IMPORTED_MODULE_0__);
|
|
27413
27199
|
|
|
27414
27200
|
function hasDocumentCookie() {
|
|
@@ -27465,6 +27251,220 @@ function cleanupCookieValue(value) {
|
|
|
27465
27251
|
}
|
|
27466
27252
|
|
|
27467
27253
|
|
|
27254
|
+
/***/ }),
|
|
27255
|
+
|
|
27256
|
+
/***/ "../../node_modules/universal-cookie/node_modules/cookie/index.js":
|
|
27257
|
+
/*!***********************************************************************************!*\
|
|
27258
|
+
!*** /root/amplify-js/node_modules/universal-cookie/node_modules/cookie/index.js ***!
|
|
27259
|
+
\***********************************************************************************/
|
|
27260
|
+
/*! no static exports found */
|
|
27261
|
+
/***/ (function(module, exports, __webpack_require__) {
|
|
27262
|
+
|
|
27263
|
+
"use strict";
|
|
27264
|
+
/*!
|
|
27265
|
+
* cookie
|
|
27266
|
+
* Copyright(c) 2012-2014 Roman Shtylman
|
|
27267
|
+
* Copyright(c) 2015 Douglas Christopher Wilson
|
|
27268
|
+
* MIT Licensed
|
|
27269
|
+
*/
|
|
27270
|
+
|
|
27271
|
+
|
|
27272
|
+
|
|
27273
|
+
/**
|
|
27274
|
+
* Module exports.
|
|
27275
|
+
* @public
|
|
27276
|
+
*/
|
|
27277
|
+
|
|
27278
|
+
exports.parse = parse;
|
|
27279
|
+
exports.serialize = serialize;
|
|
27280
|
+
|
|
27281
|
+
/**
|
|
27282
|
+
* Module variables.
|
|
27283
|
+
* @private
|
|
27284
|
+
*/
|
|
27285
|
+
|
|
27286
|
+
var decode = decodeURIComponent;
|
|
27287
|
+
var encode = encodeURIComponent;
|
|
27288
|
+
|
|
27289
|
+
/**
|
|
27290
|
+
* RegExp to match field-content in RFC 7230 sec 3.2
|
|
27291
|
+
*
|
|
27292
|
+
* field-content = field-vchar [ 1*( SP / HTAB ) field-vchar ]
|
|
27293
|
+
* field-vchar = VCHAR / obs-text
|
|
27294
|
+
* obs-text = %x80-FF
|
|
27295
|
+
*/
|
|
27296
|
+
|
|
27297
|
+
var fieldContentRegExp = /^[\u0009\u0020-\u007e\u0080-\u00ff]+$/;
|
|
27298
|
+
|
|
27299
|
+
/**
|
|
27300
|
+
* Parse a cookie header.
|
|
27301
|
+
*
|
|
27302
|
+
* Parse the given cookie header string into an object
|
|
27303
|
+
* The object has the various cookies as keys(names) => values
|
|
27304
|
+
*
|
|
27305
|
+
* @param {string} str
|
|
27306
|
+
* @param {object} [options]
|
|
27307
|
+
* @return {object}
|
|
27308
|
+
* @public
|
|
27309
|
+
*/
|
|
27310
|
+
|
|
27311
|
+
function parse(str, options) {
|
|
27312
|
+
if (typeof str !== 'string') {
|
|
27313
|
+
throw new TypeError('argument str must be a string');
|
|
27314
|
+
}
|
|
27315
|
+
|
|
27316
|
+
var obj = {}
|
|
27317
|
+
var opt = options || {};
|
|
27318
|
+
var pairs = str.split(';')
|
|
27319
|
+
var dec = opt.decode || decode;
|
|
27320
|
+
|
|
27321
|
+
for (var i = 0; i < pairs.length; i++) {
|
|
27322
|
+
var pair = pairs[i];
|
|
27323
|
+
var index = pair.indexOf('=')
|
|
27324
|
+
|
|
27325
|
+
// skip things that don't look like key=value
|
|
27326
|
+
if (index < 0) {
|
|
27327
|
+
continue;
|
|
27328
|
+
}
|
|
27329
|
+
|
|
27330
|
+
var key = pair.substring(0, index).trim()
|
|
27331
|
+
|
|
27332
|
+
// only assign once
|
|
27333
|
+
if (undefined == obj[key]) {
|
|
27334
|
+
var val = pair.substring(index + 1, pair.length).trim()
|
|
27335
|
+
|
|
27336
|
+
// quoted values
|
|
27337
|
+
if (val[0] === '"') {
|
|
27338
|
+
val = val.slice(1, -1)
|
|
27339
|
+
}
|
|
27340
|
+
|
|
27341
|
+
obj[key] = tryDecode(val, dec);
|
|
27342
|
+
}
|
|
27343
|
+
}
|
|
27344
|
+
|
|
27345
|
+
return obj;
|
|
27346
|
+
}
|
|
27347
|
+
|
|
27348
|
+
/**
|
|
27349
|
+
* Serialize data into a cookie header.
|
|
27350
|
+
*
|
|
27351
|
+
* Serialize the a name value pair into a cookie string suitable for
|
|
27352
|
+
* http headers. An optional options object specified cookie parameters.
|
|
27353
|
+
*
|
|
27354
|
+
* serialize('foo', 'bar', { httpOnly: true })
|
|
27355
|
+
* => "foo=bar; httpOnly"
|
|
27356
|
+
*
|
|
27357
|
+
* @param {string} name
|
|
27358
|
+
* @param {string} val
|
|
27359
|
+
* @param {object} [options]
|
|
27360
|
+
* @return {string}
|
|
27361
|
+
* @public
|
|
27362
|
+
*/
|
|
27363
|
+
|
|
27364
|
+
function serialize(name, val, options) {
|
|
27365
|
+
var opt = options || {};
|
|
27366
|
+
var enc = opt.encode || encode;
|
|
27367
|
+
|
|
27368
|
+
if (typeof enc !== 'function') {
|
|
27369
|
+
throw new TypeError('option encode is invalid');
|
|
27370
|
+
}
|
|
27371
|
+
|
|
27372
|
+
if (!fieldContentRegExp.test(name)) {
|
|
27373
|
+
throw new TypeError('argument name is invalid');
|
|
27374
|
+
}
|
|
27375
|
+
|
|
27376
|
+
var value = enc(val);
|
|
27377
|
+
|
|
27378
|
+
if (value && !fieldContentRegExp.test(value)) {
|
|
27379
|
+
throw new TypeError('argument val is invalid');
|
|
27380
|
+
}
|
|
27381
|
+
|
|
27382
|
+
var str = name + '=' + value;
|
|
27383
|
+
|
|
27384
|
+
if (null != opt.maxAge) {
|
|
27385
|
+
var maxAge = opt.maxAge - 0;
|
|
27386
|
+
|
|
27387
|
+
if (isNaN(maxAge) || !isFinite(maxAge)) {
|
|
27388
|
+
throw new TypeError('option maxAge is invalid')
|
|
27389
|
+
}
|
|
27390
|
+
|
|
27391
|
+
str += '; Max-Age=' + Math.floor(maxAge);
|
|
27392
|
+
}
|
|
27393
|
+
|
|
27394
|
+
if (opt.domain) {
|
|
27395
|
+
if (!fieldContentRegExp.test(opt.domain)) {
|
|
27396
|
+
throw new TypeError('option domain is invalid');
|
|
27397
|
+
}
|
|
27398
|
+
|
|
27399
|
+
str += '; Domain=' + opt.domain;
|
|
27400
|
+
}
|
|
27401
|
+
|
|
27402
|
+
if (opt.path) {
|
|
27403
|
+
if (!fieldContentRegExp.test(opt.path)) {
|
|
27404
|
+
throw new TypeError('option path is invalid');
|
|
27405
|
+
}
|
|
27406
|
+
|
|
27407
|
+
str += '; Path=' + opt.path;
|
|
27408
|
+
}
|
|
27409
|
+
|
|
27410
|
+
if (opt.expires) {
|
|
27411
|
+
if (typeof opt.expires.toUTCString !== 'function') {
|
|
27412
|
+
throw new TypeError('option expires is invalid');
|
|
27413
|
+
}
|
|
27414
|
+
|
|
27415
|
+
str += '; Expires=' + opt.expires.toUTCString();
|
|
27416
|
+
}
|
|
27417
|
+
|
|
27418
|
+
if (opt.httpOnly) {
|
|
27419
|
+
str += '; HttpOnly';
|
|
27420
|
+
}
|
|
27421
|
+
|
|
27422
|
+
if (opt.secure) {
|
|
27423
|
+
str += '; Secure';
|
|
27424
|
+
}
|
|
27425
|
+
|
|
27426
|
+
if (opt.sameSite) {
|
|
27427
|
+
var sameSite = typeof opt.sameSite === 'string'
|
|
27428
|
+
? opt.sameSite.toLowerCase() : opt.sameSite;
|
|
27429
|
+
|
|
27430
|
+
switch (sameSite) {
|
|
27431
|
+
case true:
|
|
27432
|
+
str += '; SameSite=Strict';
|
|
27433
|
+
break;
|
|
27434
|
+
case 'lax':
|
|
27435
|
+
str += '; SameSite=Lax';
|
|
27436
|
+
break;
|
|
27437
|
+
case 'strict':
|
|
27438
|
+
str += '; SameSite=Strict';
|
|
27439
|
+
break;
|
|
27440
|
+
case 'none':
|
|
27441
|
+
str += '; SameSite=None';
|
|
27442
|
+
break;
|
|
27443
|
+
default:
|
|
27444
|
+
throw new TypeError('option sameSite is invalid');
|
|
27445
|
+
}
|
|
27446
|
+
}
|
|
27447
|
+
|
|
27448
|
+
return str;
|
|
27449
|
+
}
|
|
27450
|
+
|
|
27451
|
+
/**
|
|
27452
|
+
* Try decoding a string using a decoding function.
|
|
27453
|
+
*
|
|
27454
|
+
* @param {string} str
|
|
27455
|
+
* @param {function} decode
|
|
27456
|
+
* @private
|
|
27457
|
+
*/
|
|
27458
|
+
|
|
27459
|
+
function tryDecode(str, decode) {
|
|
27460
|
+
try {
|
|
27461
|
+
return decode(str);
|
|
27462
|
+
} catch (e) {
|
|
27463
|
+
return str;
|
|
27464
|
+
}
|
|
27465
|
+
}
|
|
27466
|
+
|
|
27467
|
+
|
|
27468
27468
|
/***/ }),
|
|
27469
27469
|
|
|
27470
27470
|
/***/ "../../node_modules/url/url.js":
|
|
@@ -32725,7 +32725,7 @@ var getAmplifyUserAgent = function getAmplifyUserAgent() {
|
|
|
32725
32725
|
__webpack_require__.r(__webpack_exports__);
|
|
32726
32726
|
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "version", function() { return version; });
|
|
32727
32727
|
// generated by genversion
|
|
32728
|
-
var version = '4.3.
|
|
32728
|
+
var version = '4.3.13';
|
|
32729
32729
|
|
|
32730
32730
|
/***/ }),
|
|
32731
32731
|
|