@aws-amplify/datastore 3.7.7-cloud-logging.3 → 3.7.7-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.
@@ -27857,6 +27857,220 @@ function isnan (val) {
27857
27857
 
27858
27858
  /* WEBPACK VAR INJECTION */}.call(this, __webpack_require__(/*! ./../webpack/buildin/global.js */ "../../node_modules/webpack/buildin/global.js")))
27859
27859
 
27860
+ /***/ }),
27861
+
27862
+ /***/ "../../node_modules/cookie/index.js":
27863
+ /*!*****************************************************!*\
27864
+ !*** /root/amplify-js/node_modules/cookie/index.js ***!
27865
+ \*****************************************************/
27866
+ /*! no static exports found */
27867
+ /***/ (function(module, exports, __webpack_require__) {
27868
+
27869
+ "use strict";
27870
+ /*!
27871
+ * cookie
27872
+ * Copyright(c) 2012-2014 Roman Shtylman
27873
+ * Copyright(c) 2015 Douglas Christopher Wilson
27874
+ * MIT Licensed
27875
+ */
27876
+
27877
+
27878
+
27879
+ /**
27880
+ * Module exports.
27881
+ * @public
27882
+ */
27883
+
27884
+ exports.parse = parse;
27885
+ exports.serialize = serialize;
27886
+
27887
+ /**
27888
+ * Module variables.
27889
+ * @private
27890
+ */
27891
+
27892
+ var decode = decodeURIComponent;
27893
+ var encode = encodeURIComponent;
27894
+
27895
+ /**
27896
+ * RegExp to match field-content in RFC 7230 sec 3.2
27897
+ *
27898
+ * field-content = field-vchar [ 1*( SP / HTAB ) field-vchar ]
27899
+ * field-vchar = VCHAR / obs-text
27900
+ * obs-text = %x80-FF
27901
+ */
27902
+
27903
+ var fieldContentRegExp = /^[\u0009\u0020-\u007e\u0080-\u00ff]+$/;
27904
+
27905
+ /**
27906
+ * Parse a cookie header.
27907
+ *
27908
+ * Parse the given cookie header string into an object
27909
+ * The object has the various cookies as keys(names) => values
27910
+ *
27911
+ * @param {string} str
27912
+ * @param {object} [options]
27913
+ * @return {object}
27914
+ * @public
27915
+ */
27916
+
27917
+ function parse(str, options) {
27918
+ if (typeof str !== 'string') {
27919
+ throw new TypeError('argument str must be a string');
27920
+ }
27921
+
27922
+ var obj = {}
27923
+ var opt = options || {};
27924
+ var pairs = str.split(';')
27925
+ var dec = opt.decode || decode;
27926
+
27927
+ for (var i = 0; i < pairs.length; i++) {
27928
+ var pair = pairs[i];
27929
+ var index = pair.indexOf('=')
27930
+
27931
+ // skip things that don't look like key=value
27932
+ if (index < 0) {
27933
+ continue;
27934
+ }
27935
+
27936
+ var key = pair.substring(0, index).trim()
27937
+
27938
+ // only assign once
27939
+ if (undefined == obj[key]) {
27940
+ var val = pair.substring(index + 1, pair.length).trim()
27941
+
27942
+ // quoted values
27943
+ if (val[0] === '"') {
27944
+ val = val.slice(1, -1)
27945
+ }
27946
+
27947
+ obj[key] = tryDecode(val, dec);
27948
+ }
27949
+ }
27950
+
27951
+ return obj;
27952
+ }
27953
+
27954
+ /**
27955
+ * Serialize data into a cookie header.
27956
+ *
27957
+ * Serialize the a name value pair into a cookie string suitable for
27958
+ * http headers. An optional options object specified cookie parameters.
27959
+ *
27960
+ * serialize('foo', 'bar', { httpOnly: true })
27961
+ * => "foo=bar; httpOnly"
27962
+ *
27963
+ * @param {string} name
27964
+ * @param {string} val
27965
+ * @param {object} [options]
27966
+ * @return {string}
27967
+ * @public
27968
+ */
27969
+
27970
+ function serialize(name, val, options) {
27971
+ var opt = options || {};
27972
+ var enc = opt.encode || encode;
27973
+
27974
+ if (typeof enc !== 'function') {
27975
+ throw new TypeError('option encode is invalid');
27976
+ }
27977
+
27978
+ if (!fieldContentRegExp.test(name)) {
27979
+ throw new TypeError('argument name is invalid');
27980
+ }
27981
+
27982
+ var value = enc(val);
27983
+
27984
+ if (value && !fieldContentRegExp.test(value)) {
27985
+ throw new TypeError('argument val is invalid');
27986
+ }
27987
+
27988
+ var str = name + '=' + value;
27989
+
27990
+ if (null != opt.maxAge) {
27991
+ var maxAge = opt.maxAge - 0;
27992
+
27993
+ if (isNaN(maxAge) || !isFinite(maxAge)) {
27994
+ throw new TypeError('option maxAge is invalid')
27995
+ }
27996
+
27997
+ str += '; Max-Age=' + Math.floor(maxAge);
27998
+ }
27999
+
28000
+ if (opt.domain) {
28001
+ if (!fieldContentRegExp.test(opt.domain)) {
28002
+ throw new TypeError('option domain is invalid');
28003
+ }
28004
+
28005
+ str += '; Domain=' + opt.domain;
28006
+ }
28007
+
28008
+ if (opt.path) {
28009
+ if (!fieldContentRegExp.test(opt.path)) {
28010
+ throw new TypeError('option path is invalid');
28011
+ }
28012
+
28013
+ str += '; Path=' + opt.path;
28014
+ }
28015
+
28016
+ if (opt.expires) {
28017
+ if (typeof opt.expires.toUTCString !== 'function') {
28018
+ throw new TypeError('option expires is invalid');
28019
+ }
28020
+
28021
+ str += '; Expires=' + opt.expires.toUTCString();
28022
+ }
28023
+
28024
+ if (opt.httpOnly) {
28025
+ str += '; HttpOnly';
28026
+ }
28027
+
28028
+ if (opt.secure) {
28029
+ str += '; Secure';
28030
+ }
28031
+
28032
+ if (opt.sameSite) {
28033
+ var sameSite = typeof opt.sameSite === 'string'
28034
+ ? opt.sameSite.toLowerCase() : opt.sameSite;
28035
+
28036
+ switch (sameSite) {
28037
+ case true:
28038
+ str += '; SameSite=Strict';
28039
+ break;
28040
+ case 'lax':
28041
+ str += '; SameSite=Lax';
28042
+ break;
28043
+ case 'strict':
28044
+ str += '; SameSite=Strict';
28045
+ break;
28046
+ case 'none':
28047
+ str += '; SameSite=None';
28048
+ break;
28049
+ default:
28050
+ throw new TypeError('option sameSite is invalid');
28051
+ }
28052
+ }
28053
+
28054
+ return str;
28055
+ }
28056
+
28057
+ /**
28058
+ * Try decoding a string using a decoding function.
28059
+ *
28060
+ * @param {string} str
28061
+ * @param {function} decode
28062
+ * @private
28063
+ */
28064
+
28065
+ function tryDecode(str, decode) {
28066
+ try {
28067
+ return decode(str);
28068
+ } catch (e) {
28069
+ return str;
28070
+ }
28071
+ }
28072
+
28073
+
27860
28074
  /***/ }),
27861
28075
 
27862
28076
  /***/ "../../node_modules/fast-text-encoding/text.min.js":
@@ -48582,7 +48796,7 @@ __webpack_require__.r(__webpack_exports__);
48582
48796
 
48583
48797
  "use strict";
48584
48798
  __webpack_require__.r(__webpack_exports__);
48585
- /* harmony import */ var cookie__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! cookie */ "../../node_modules/universal-cookie/node_modules/cookie/index.js");
48799
+ /* harmony import */ var cookie__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! cookie */ "../../node_modules/cookie/index.js");
48586
48800
  /* harmony import */ var cookie__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(cookie__WEBPACK_IMPORTED_MODULE_0__);
48587
48801
  /* harmony import */ var _utils__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ./utils */ "../../node_modules/universal-cookie/es6/utils.js");
48588
48802
  var __assign = (undefined && undefined.__assign) || function () {
@@ -48699,7 +48913,7 @@ __webpack_require__.r(__webpack_exports__);
48699
48913
  /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "parseCookies", function() { return parseCookies; });
48700
48914
  /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "isParsingCookie", function() { return isParsingCookie; });
48701
48915
  /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "readCookie", function() { return readCookie; });
48702
- /* harmony import */ var cookie__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! cookie */ "../../node_modules/universal-cookie/node_modules/cookie/index.js");
48916
+ /* harmony import */ var cookie__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! cookie */ "../../node_modules/cookie/index.js");
48703
48917
  /* harmony import */ var cookie__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(cookie__WEBPACK_IMPORTED_MODULE_0__);
48704
48918
 
48705
48919
  function hasDocumentCookie() {
@@ -48756,220 +48970,6 @@ function cleanupCookieValue(value) {
48756
48970
  }
48757
48971
 
48758
48972
 
48759
- /***/ }),
48760
-
48761
- /***/ "../../node_modules/universal-cookie/node_modules/cookie/index.js":
48762
- /*!***********************************************************************************!*\
48763
- !*** /root/amplify-js/node_modules/universal-cookie/node_modules/cookie/index.js ***!
48764
- \***********************************************************************************/
48765
- /*! no static exports found */
48766
- /***/ (function(module, exports, __webpack_require__) {
48767
-
48768
- "use strict";
48769
- /*!
48770
- * cookie
48771
- * Copyright(c) 2012-2014 Roman Shtylman
48772
- * Copyright(c) 2015 Douglas Christopher Wilson
48773
- * MIT Licensed
48774
- */
48775
-
48776
-
48777
-
48778
- /**
48779
- * Module exports.
48780
- * @public
48781
- */
48782
-
48783
- exports.parse = parse;
48784
- exports.serialize = serialize;
48785
-
48786
- /**
48787
- * Module variables.
48788
- * @private
48789
- */
48790
-
48791
- var decode = decodeURIComponent;
48792
- var encode = encodeURIComponent;
48793
-
48794
- /**
48795
- * RegExp to match field-content in RFC 7230 sec 3.2
48796
- *
48797
- * field-content = field-vchar [ 1*( SP / HTAB ) field-vchar ]
48798
- * field-vchar = VCHAR / obs-text
48799
- * obs-text = %x80-FF
48800
- */
48801
-
48802
- var fieldContentRegExp = /^[\u0009\u0020-\u007e\u0080-\u00ff]+$/;
48803
-
48804
- /**
48805
- * Parse a cookie header.
48806
- *
48807
- * Parse the given cookie header string into an object
48808
- * The object has the various cookies as keys(names) => values
48809
- *
48810
- * @param {string} str
48811
- * @param {object} [options]
48812
- * @return {object}
48813
- * @public
48814
- */
48815
-
48816
- function parse(str, options) {
48817
- if (typeof str !== 'string') {
48818
- throw new TypeError('argument str must be a string');
48819
- }
48820
-
48821
- var obj = {}
48822
- var opt = options || {};
48823
- var pairs = str.split(';')
48824
- var dec = opt.decode || decode;
48825
-
48826
- for (var i = 0; i < pairs.length; i++) {
48827
- var pair = pairs[i];
48828
- var index = pair.indexOf('=')
48829
-
48830
- // skip things that don't look like key=value
48831
- if (index < 0) {
48832
- continue;
48833
- }
48834
-
48835
- var key = pair.substring(0, index).trim()
48836
-
48837
- // only assign once
48838
- if (undefined == obj[key]) {
48839
- var val = pair.substring(index + 1, pair.length).trim()
48840
-
48841
- // quoted values
48842
- if (val[0] === '"') {
48843
- val = val.slice(1, -1)
48844
- }
48845
-
48846
- obj[key] = tryDecode(val, dec);
48847
- }
48848
- }
48849
-
48850
- return obj;
48851
- }
48852
-
48853
- /**
48854
- * Serialize data into a cookie header.
48855
- *
48856
- * Serialize the a name value pair into a cookie string suitable for
48857
- * http headers. An optional options object specified cookie parameters.
48858
- *
48859
- * serialize('foo', 'bar', { httpOnly: true })
48860
- * => "foo=bar; httpOnly"
48861
- *
48862
- * @param {string} name
48863
- * @param {string} val
48864
- * @param {object} [options]
48865
- * @return {string}
48866
- * @public
48867
- */
48868
-
48869
- function serialize(name, val, options) {
48870
- var opt = options || {};
48871
- var enc = opt.encode || encode;
48872
-
48873
- if (typeof enc !== 'function') {
48874
- throw new TypeError('option encode is invalid');
48875
- }
48876
-
48877
- if (!fieldContentRegExp.test(name)) {
48878
- throw new TypeError('argument name is invalid');
48879
- }
48880
-
48881
- var value = enc(val);
48882
-
48883
- if (value && !fieldContentRegExp.test(value)) {
48884
- throw new TypeError('argument val is invalid');
48885
- }
48886
-
48887
- var str = name + '=' + value;
48888
-
48889
- if (null != opt.maxAge) {
48890
- var maxAge = opt.maxAge - 0;
48891
-
48892
- if (isNaN(maxAge) || !isFinite(maxAge)) {
48893
- throw new TypeError('option maxAge is invalid')
48894
- }
48895
-
48896
- str += '; Max-Age=' + Math.floor(maxAge);
48897
- }
48898
-
48899
- if (opt.domain) {
48900
- if (!fieldContentRegExp.test(opt.domain)) {
48901
- throw new TypeError('option domain is invalid');
48902
- }
48903
-
48904
- str += '; Domain=' + opt.domain;
48905
- }
48906
-
48907
- if (opt.path) {
48908
- if (!fieldContentRegExp.test(opt.path)) {
48909
- throw new TypeError('option path is invalid');
48910
- }
48911
-
48912
- str += '; Path=' + opt.path;
48913
- }
48914
-
48915
- if (opt.expires) {
48916
- if (typeof opt.expires.toUTCString !== 'function') {
48917
- throw new TypeError('option expires is invalid');
48918
- }
48919
-
48920
- str += '; Expires=' + opt.expires.toUTCString();
48921
- }
48922
-
48923
- if (opt.httpOnly) {
48924
- str += '; HttpOnly';
48925
- }
48926
-
48927
- if (opt.secure) {
48928
- str += '; Secure';
48929
- }
48930
-
48931
- if (opt.sameSite) {
48932
- var sameSite = typeof opt.sameSite === 'string'
48933
- ? opt.sameSite.toLowerCase() : opt.sameSite;
48934
-
48935
- switch (sameSite) {
48936
- case true:
48937
- str += '; SameSite=Strict';
48938
- break;
48939
- case 'lax':
48940
- str += '; SameSite=Lax';
48941
- break;
48942
- case 'strict':
48943
- str += '; SameSite=Strict';
48944
- break;
48945
- case 'none':
48946
- str += '; SameSite=None';
48947
- break;
48948
- default:
48949
- throw new TypeError('option sameSite is invalid');
48950
- }
48951
- }
48952
-
48953
- return str;
48954
- }
48955
-
48956
- /**
48957
- * Try decoding a string using a decoding function.
48958
- *
48959
- * @param {string} str
48960
- * @param {function} decode
48961
- * @private
48962
- */
48963
-
48964
- function tryDecode(str, decode) {
48965
- try {
48966
- return decode(str);
48967
- } catch (e) {
48968
- return str;
48969
- }
48970
- }
48971
-
48972
-
48973
48973
  /***/ }),
48974
48974
 
48975
48975
  /***/ "../../node_modules/url/url.js":