@aws-amplify/core 4.3.11 → 4.3.12-unstable.1

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.
@@ -25765,6 +25765,220 @@ 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
+
25768
25982
  /***/ }),
25769
25983
 
25770
25984
  /***/ "../../node_modules/ieee754/index.js":
@@ -27077,7 +27291,7 @@ function __classPrivateFieldSet(receiver, privateMap, value) {
27077
27291
 
27078
27292
  "use strict";
27079
27293
  __webpack_require__.r(__webpack_exports__);
27080
- /* harmony import */ var cookie__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! cookie */ "../../node_modules/universal-cookie/node_modules/cookie/index.js");
27294
+ /* harmony import */ var cookie__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! cookie */ "../../node_modules/cookie/index.js");
27081
27295
  /* harmony import */ var cookie__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(cookie__WEBPACK_IMPORTED_MODULE_0__);
27082
27296
  /* harmony import */ var _utils__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ./utils */ "../../node_modules/universal-cookie/es6/utils.js");
27083
27297
  var __assign = (undefined && undefined.__assign) || function () {
@@ -27194,7 +27408,7 @@ __webpack_require__.r(__webpack_exports__);
27194
27408
  /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "parseCookies", function() { return parseCookies; });
27195
27409
  /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "isParsingCookie", function() { return isParsingCookie; });
27196
27410
  /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "readCookie", function() { return readCookie; });
27197
- /* harmony import */ var cookie__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! cookie */ "../../node_modules/universal-cookie/node_modules/cookie/index.js");
27411
+ /* harmony import */ var cookie__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! cookie */ "../../node_modules/cookie/index.js");
27198
27412
  /* harmony import */ var cookie__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(cookie__WEBPACK_IMPORTED_MODULE_0__);
27199
27413
 
27200
27414
  function hasDocumentCookie() {
@@ -27251,220 +27465,6 @@ function cleanupCookieValue(value) {
27251
27465
  }
27252
27466
 
27253
27467
 
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
- var pairSplitRegExp = /; */;
27289
-
27290
- /**
27291
- * RegExp to match field-content in RFC 7230 sec 3.2
27292
- *
27293
- * field-content = field-vchar [ 1*( SP / HTAB ) field-vchar ]
27294
- * field-vchar = VCHAR / obs-text
27295
- * obs-text = %x80-FF
27296
- */
27297
-
27298
- var fieldContentRegExp = /^[\u0009\u0020-\u007e\u0080-\u00ff]+$/;
27299
-
27300
- /**
27301
- * Parse a cookie header.
27302
- *
27303
- * Parse the given cookie header string into an object
27304
- * The object has the various cookies as keys(names) => values
27305
- *
27306
- * @param {string} str
27307
- * @param {object} [options]
27308
- * @return {object}
27309
- * @public
27310
- */
27311
-
27312
- function parse(str, options) {
27313
- if (typeof str !== 'string') {
27314
- throw new TypeError('argument str must be a string');
27315
- }
27316
-
27317
- var obj = {}
27318
- var opt = options || {};
27319
- var pairs = str.split(pairSplitRegExp);
27320
- var dec = opt.decode || decode;
27321
-
27322
- for (var i = 0; i < pairs.length; i++) {
27323
- var pair = pairs[i];
27324
- var eq_idx = pair.indexOf('=');
27325
-
27326
- // skip things that don't look like key=value
27327
- if (eq_idx < 0) {
27328
- continue;
27329
- }
27330
-
27331
- var key = pair.substr(0, eq_idx).trim()
27332
- var val = pair.substr(++eq_idx, pair.length).trim();
27333
-
27334
- // quoted values
27335
- if ('"' == val[0]) {
27336
- val = val.slice(1, -1);
27337
- }
27338
-
27339
- // only assign once
27340
- if (undefined == obj[key]) {
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":
@@ -30852,7 +30852,7 @@ function () {
30852
30852
 
30853
30853
 
30854
30854
  /*We export a __default__ instance of HubClass to use it as a
30855
- psuedo Singleton for the main messaging bus, however you can still create
30855
+ pseudo Singleton for the main messaging bus, however you can still create
30856
30856
  your own instance of HubClass() for a separate "private bus" of events.*/
30857
30857
 
30858
30858
  var Hub = new HubClass('__default__');
@@ -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.10';
32728
+ var version = '4.3.11';
32729
32729
 
32730
32730
  /***/ }),
32731
32731