@aws-amplify/core 4.3.15-cloud-logging.3 → 4.3.15-cloud-logging.9

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
+
25803
+ /**
25804
+ * RegExp to match field-content in RFC 7230 sec 3.2
25805
+ *
25806
+ * field-content = field-vchar [ 1*( SP / HTAB ) field-vchar ]
25807
+ * field-vchar = VCHAR / obs-text
25808
+ * obs-text = %x80-FF
25809
+ */
25810
+
25811
+ var fieldContentRegExp = /^[\u0009\u0020-\u007e\u0080-\u00ff]+$/;
25812
+
25813
+ /**
25814
+ * Parse a cookie header.
25815
+ *
25816
+ * Parse the given cookie header string into an object
25817
+ * The object has the various cookies as keys(names) => values
25818
+ *
25819
+ * @param {string} str
25820
+ * @param {object} [options]
25821
+ * @return {object}
25822
+ * @public
25823
+ */
25824
+
25825
+ function parse(str, options) {
25826
+ if (typeof str !== 'string') {
25827
+ throw new TypeError('argument str must be a string');
25828
+ }
25829
+
25830
+ var obj = {}
25831
+ var opt = options || {};
25832
+ var pairs = str.split(';')
25833
+ var dec = opt.decode || decode;
25834
+
25835
+ for (var i = 0; i < pairs.length; i++) {
25836
+ var pair = pairs[i];
25837
+ var index = pair.indexOf('=')
25838
+
25839
+ // skip things that don't look like key=value
25840
+ if (index < 0) {
25841
+ continue;
25842
+ }
25843
+
25844
+ var key = pair.substring(0, index).trim()
25845
+
25846
+ // only assign once
25847
+ if (undefined == obj[key]) {
25848
+ var val = pair.substring(index + 1, pair.length).trim()
25849
+
25850
+ // quoted values
25851
+ if (val[0] === '"') {
25852
+ val = val.slice(1, -1)
25853
+ }
25854
+
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/fast-text-encoding/text.min.js":
@@ -27095,7 +27309,7 @@ function __classPrivateFieldSet(receiver, privateMap, value) {
27095
27309
 
27096
27310
  "use strict";
27097
27311
  __webpack_require__.r(__webpack_exports__);
27098
- /* harmony import */ var cookie__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! cookie */ "../../node_modules/universal-cookie/node_modules/cookie/index.js");
27312
+ /* harmony import */ var cookie__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! cookie */ "../../node_modules/cookie/index.js");
27099
27313
  /* harmony import */ var cookie__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(cookie__WEBPACK_IMPORTED_MODULE_0__);
27100
27314
  /* harmony import */ var _utils__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ./utils */ "../../node_modules/universal-cookie/es6/utils.js");
27101
27315
  var __assign = (undefined && undefined.__assign) || function () {
@@ -27212,7 +27426,7 @@ __webpack_require__.r(__webpack_exports__);
27212
27426
  /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "parseCookies", function() { return parseCookies; });
27213
27427
  /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "isParsingCookie", function() { return isParsingCookie; });
27214
27428
  /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "readCookie", function() { return readCookie; });
27215
- /* harmony import */ var cookie__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! cookie */ "../../node_modules/universal-cookie/node_modules/cookie/index.js");
27429
+ /* harmony import */ var cookie__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! cookie */ "../../node_modules/cookie/index.js");
27216
27430
  /* harmony import */ var cookie__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(cookie__WEBPACK_IMPORTED_MODULE_0__);
27217
27431
 
27218
27432
  function hasDocumentCookie() {
@@ -27269,220 +27483,6 @@ function cleanupCookieValue(value) {
27269
27483
  }
27270
27484
 
27271
27485
 
27272
- /***/ }),
27273
-
27274
- /***/ "../../node_modules/universal-cookie/node_modules/cookie/index.js":
27275
- /*!***********************************************************************************!*\
27276
- !*** /root/amplify-js/node_modules/universal-cookie/node_modules/cookie/index.js ***!
27277
- \***********************************************************************************/
27278
- /*! no static exports found */
27279
- /***/ (function(module, exports, __webpack_require__) {
27280
-
27281
- "use strict";
27282
- /*!
27283
- * cookie
27284
- * Copyright(c) 2012-2014 Roman Shtylman
27285
- * Copyright(c) 2015 Douglas Christopher Wilson
27286
- * MIT Licensed
27287
- */
27288
-
27289
-
27290
-
27291
- /**
27292
- * Module exports.
27293
- * @public
27294
- */
27295
-
27296
- exports.parse = parse;
27297
- exports.serialize = serialize;
27298
-
27299
- /**
27300
- * Module variables.
27301
- * @private
27302
- */
27303
-
27304
- var decode = decodeURIComponent;
27305
- var encode = encodeURIComponent;
27306
-
27307
- /**
27308
- * RegExp to match field-content in RFC 7230 sec 3.2
27309
- *
27310
- * field-content = field-vchar [ 1*( SP / HTAB ) field-vchar ]
27311
- * field-vchar = VCHAR / obs-text
27312
- * obs-text = %x80-FF
27313
- */
27314
-
27315
- var fieldContentRegExp = /^[\u0009\u0020-\u007e\u0080-\u00ff]+$/;
27316
-
27317
- /**
27318
- * Parse a cookie header.
27319
- *
27320
- * Parse the given cookie header string into an object
27321
- * The object has the various cookies as keys(names) => values
27322
- *
27323
- * @param {string} str
27324
- * @param {object} [options]
27325
- * @return {object}
27326
- * @public
27327
- */
27328
-
27329
- function parse(str, options) {
27330
- if (typeof str !== 'string') {
27331
- throw new TypeError('argument str must be a string');
27332
- }
27333
-
27334
- var obj = {}
27335
- var opt = options || {};
27336
- var pairs = str.split(';')
27337
- var dec = opt.decode || decode;
27338
-
27339
- for (var i = 0; i < pairs.length; i++) {
27340
- var pair = pairs[i];
27341
- var index = pair.indexOf('=')
27342
-
27343
- // skip things that don't look like key=value
27344
- if (index < 0) {
27345
- continue;
27346
- }
27347
-
27348
- var key = pair.substring(0, index).trim()
27349
-
27350
- // only assign once
27351
- if (undefined == obj[key]) {
27352
- var val = pair.substring(index + 1, pair.length).trim()
27353
-
27354
- // quoted values
27355
- if (val[0] === '"') {
27356
- val = val.slice(1, -1)
27357
- }
27358
-
27359
- obj[key] = tryDecode(val, dec);
27360
- }
27361
- }
27362
-
27363
- return obj;
27364
- }
27365
-
27366
- /**
27367
- * Serialize data into a cookie header.
27368
- *
27369
- * Serialize the a name value pair into a cookie string suitable for
27370
- * http headers. An optional options object specified cookie parameters.
27371
- *
27372
- * serialize('foo', 'bar', { httpOnly: true })
27373
- * => "foo=bar; httpOnly"
27374
- *
27375
- * @param {string} name
27376
- * @param {string} val
27377
- * @param {object} [options]
27378
- * @return {string}
27379
- * @public
27380
- */
27381
-
27382
- function serialize(name, val, options) {
27383
- var opt = options || {};
27384
- var enc = opt.encode || encode;
27385
-
27386
- if (typeof enc !== 'function') {
27387
- throw new TypeError('option encode is invalid');
27388
- }
27389
-
27390
- if (!fieldContentRegExp.test(name)) {
27391
- throw new TypeError('argument name is invalid');
27392
- }
27393
-
27394
- var value = enc(val);
27395
-
27396
- if (value && !fieldContentRegExp.test(value)) {
27397
- throw new TypeError('argument val is invalid');
27398
- }
27399
-
27400
- var str = name + '=' + value;
27401
-
27402
- if (null != opt.maxAge) {
27403
- var maxAge = opt.maxAge - 0;
27404
-
27405
- if (isNaN(maxAge) || !isFinite(maxAge)) {
27406
- throw new TypeError('option maxAge is invalid')
27407
- }
27408
-
27409
- str += '; Max-Age=' + Math.floor(maxAge);
27410
- }
27411
-
27412
- if (opt.domain) {
27413
- if (!fieldContentRegExp.test(opt.domain)) {
27414
- throw new TypeError('option domain is invalid');
27415
- }
27416
-
27417
- str += '; Domain=' + opt.domain;
27418
- }
27419
-
27420
- if (opt.path) {
27421
- if (!fieldContentRegExp.test(opt.path)) {
27422
- throw new TypeError('option path is invalid');
27423
- }
27424
-
27425
- str += '; Path=' + opt.path;
27426
- }
27427
-
27428
- if (opt.expires) {
27429
- if (typeof opt.expires.toUTCString !== 'function') {
27430
- throw new TypeError('option expires is invalid');
27431
- }
27432
-
27433
- str += '; Expires=' + opt.expires.toUTCString();
27434
- }
27435
-
27436
- if (opt.httpOnly) {
27437
- str += '; HttpOnly';
27438
- }
27439
-
27440
- if (opt.secure) {
27441
- str += '; Secure';
27442
- }
27443
-
27444
- if (opt.sameSite) {
27445
- var sameSite = typeof opt.sameSite === 'string'
27446
- ? opt.sameSite.toLowerCase() : opt.sameSite;
27447
-
27448
- switch (sameSite) {
27449
- case true:
27450
- str += '; SameSite=Strict';
27451
- break;
27452
- case 'lax':
27453
- str += '; SameSite=Lax';
27454
- break;
27455
- case 'strict':
27456
- str += '; SameSite=Strict';
27457
- break;
27458
- case 'none':
27459
- str += '; SameSite=None';
27460
- break;
27461
- default:
27462
- throw new TypeError('option sameSite is invalid');
27463
- }
27464
- }
27465
-
27466
- return str;
27467
- }
27468
-
27469
- /**
27470
- * Try decoding a string using a decoding function.
27471
- *
27472
- * @param {string} str
27473
- * @param {function} decode
27474
- * @private
27475
- */
27476
-
27477
- function tryDecode(str, decode) {
27478
- try {
27479
- return decode(str);
27480
- } catch (e) {
27481
- return str;
27482
- }
27483
- }
27484
-
27485
-
27486
27486
  /***/ }),
27487
27487
 
27488
27488
  /***/ "../../node_modules/url/url.js":