@aws-amplify/datastore 3.7.8-cloud-logging.7 → 3.7.8-unstable.3
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-datastore.js +159 -573
- package/dist/aws-amplify-datastore.js.map +1 -1
- package/dist/aws-amplify-datastore.min.js +22 -78
- package/dist/aws-amplify-datastore.min.js.map +1 -1
- package/lib/datastore/datastore.js +9 -18
- package/lib/datastore/datastore.js.map +1 -1
- package/lib/storage/adapter/index.d.ts +0 -1
- package/lib/storage/storage.d.ts +0 -2
- package/lib/storage/storage.js +0 -24
- package/lib/storage/storage.js.map +1 -1
- package/lib/sync/index.js +13 -20
- package/lib/sync/index.js.map +1 -1
- package/lib/sync/processors/mutation.js +0 -1
- package/lib/sync/processors/mutation.js.map +1 -1
- package/lib/types.d.ts +0 -1
- package/lib/types.js.map +1 -1
- package/lib-esm/datastore/datastore.js +9 -18
- package/lib-esm/datastore/datastore.js.map +1 -1
- package/lib-esm/storage/adapter/index.d.ts +0 -1
- package/lib-esm/storage/storage.d.ts +0 -2
- package/lib-esm/storage/storage.js +0 -24
- package/lib-esm/storage/storage.js.map +1 -1
- package/lib-esm/sync/index.js +13 -20
- package/lib-esm/sync/index.js.map +1 -1
- package/lib-esm/sync/processors/mutation.js +0 -1
- package/lib-esm/sync/processors/mutation.js.map +1 -1
- package/lib-esm/types.d.ts +0 -1
- package/lib-esm/types.js.map +1 -1
- package/package.json +7 -7
- package/src/datastore/datastore.ts +1 -10
- package/src/storage/adapter/index.ts +0 -1
- package/src/storage/storage.ts +0 -11
- package/src/sync/index.ts +0 -8
- package/src/sync/processors/mutation.ts +24 -21
- package/src/types.ts +12 -11
|
@@ -28071,24 +28071,6 @@ function tryDecode(str, decode) {
|
|
|
28071
28071
|
}
|
|
28072
28072
|
|
|
28073
28073
|
|
|
28074
|
-
/***/ }),
|
|
28075
|
-
|
|
28076
|
-
/***/ "../../node_modules/fast-text-encoding/text.min.js":
|
|
28077
|
-
/*!********************************************************************!*\
|
|
28078
|
-
!*** /root/amplify-js/node_modules/fast-text-encoding/text.min.js ***!
|
|
28079
|
-
\********************************************************************/
|
|
28080
|
-
/*! no static exports found */
|
|
28081
|
-
/***/ (function(module, exports, __webpack_require__) {
|
|
28082
|
-
|
|
28083
|
-
/* WEBPACK VAR INJECTION */(function(global, Buffer) {(function(l){function m(){}function k(a,c){a=void 0===a?"utf-8":a;c=void 0===c?{fatal:!1}:c;if(-1===r.indexOf(a.toLowerCase()))throw new RangeError("Failed to construct 'TextDecoder': The encoding label provided ('"+a+"') is invalid.");if(c.fatal)throw Error("Failed to construct 'TextDecoder': the 'fatal' option is unsupported.");}function t(a){return Buffer.from(a.buffer,a.byteOffset,a.byteLength).toString("utf-8")}function u(a){var c=URL.createObjectURL(new Blob([a],{type:"text/plain;charset=UTF-8"}));
|
|
28084
|
-
try{var f=new XMLHttpRequest;f.open("GET",c,!1);f.send();return f.responseText}catch(e){return q(a)}finally{URL.revokeObjectURL(c)}}function q(a){for(var c=0,f=Math.min(65536,a.length+1),e=new Uint16Array(f),h=[],d=0;;){var b=c<a.length;if(!b||d>=f-1){h.push(String.fromCharCode.apply(null,e.subarray(0,d)));if(!b)return h.join("");a=a.subarray(c);d=c=0}b=a[c++];if(0===(b&128))e[d++]=b;else if(192===(b&224)){var g=a[c++]&63;e[d++]=(b&31)<<6|g}else if(224===(b&240)){g=a[c++]&63;var n=a[c++]&63;e[d++]=
|
|
28085
|
-
(b&31)<<12|g<<6|n}else if(240===(b&248)){g=a[c++]&63;n=a[c++]&63;var v=a[c++]&63;b=(b&7)<<18|g<<12|n<<6|v;65535<b&&(b-=65536,e[d++]=b>>>10&1023|55296,b=56320|b&1023);e[d++]=b}}}if(l.TextEncoder&&l.TextDecoder)return!1;var r=["utf-8","utf8","unicode-1-1-utf-8"];Object.defineProperty(m.prototype,"encoding",{value:"utf-8"});m.prototype.encode=function(a,c){c=void 0===c?{stream:!1}:c;if(c.stream)throw Error("Failed to encode: the 'stream' option is unsupported.");c=0;for(var f=a.length,e=0,h=Math.max(32,
|
|
28086
|
-
f+(f>>>1)+7),d=new Uint8Array(h>>>3<<3);c<f;){var b=a.charCodeAt(c++);if(55296<=b&&56319>=b){if(c<f){var g=a.charCodeAt(c);56320===(g&64512)&&(++c,b=((b&1023)<<10)+(g&1023)+65536)}if(55296<=b&&56319>=b)continue}e+4>d.length&&(h+=8,h*=1+c/a.length*2,h=h>>>3<<3,g=new Uint8Array(h),g.set(d),d=g);if(0===(b&4294967168))d[e++]=b;else{if(0===(b&4294965248))d[e++]=b>>>6&31|192;else if(0===(b&4294901760))d[e++]=b>>>12&15|224,d[e++]=b>>>6&63|128;else if(0===(b&4292870144))d[e++]=b>>>18&7|240,d[e++]=b>>>12&
|
|
28087
|
-
63|128,d[e++]=b>>>6&63|128;else continue;d[e++]=b&63|128}}return d.slice?d.slice(0,e):d.subarray(0,e)};Object.defineProperty(k.prototype,"encoding",{value:"utf-8"});Object.defineProperty(k.prototype,"fatal",{value:!1});Object.defineProperty(k.prototype,"ignoreBOM",{value:!1});var p=q;"function"===typeof Buffer&&Buffer.from?p=t:"function"===typeof Blob&&"function"===typeof URL&&"function"===typeof URL.createObjectURL&&(p=u);k.prototype.decode=function(a,c){c=void 0===c?{stream:!1}:c;if(c.stream)throw Error("Failed to decode: the 'stream' option is unsupported.");
|
|
28088
|
-
a=a instanceof Uint8Array?a:a.buffer instanceof ArrayBuffer?new Uint8Array(a.buffer):new Uint8Array(a);return p(a)};l.TextEncoder=m;l.TextDecoder=k})("undefined"!==typeof window?window:"undefined"!==typeof global?global:this);
|
|
28089
|
-
|
|
28090
|
-
/* WEBPACK VAR INJECTION */}.call(this, __webpack_require__(/*! ./../webpack/buildin/global.js */ "../../node_modules/webpack/buildin/global.js"), __webpack_require__(/*! ./../buffer/index.js */ "../../node_modules/buffer/index.js").Buffer))
|
|
28091
|
-
|
|
28092
28074
|
/***/ }),
|
|
28093
28075
|
|
|
28094
28076
|
/***/ "../../node_modules/graphql/error/GraphQLError.mjs":
|
|
@@ -51312,20 +51294,8 @@ module.exports = PushStream;
|
|
|
51312
51294
|
__webpack_require__.r(__webpack_exports__);
|
|
51313
51295
|
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "default", function() { return AuthenticationDetails; });
|
|
51314
51296
|
/*!
|
|
51315
|
-
* Copyright
|
|
51316
|
-
*
|
|
51317
|
-
*
|
|
51318
|
-
* Licensed under the Amazon Software License (the "License").
|
|
51319
|
-
* You may not use this file except in compliance with the
|
|
51320
|
-
* License. A copy of the License is located at
|
|
51321
|
-
*
|
|
51322
|
-
* http://aws.amazon.com/asl/
|
|
51323
|
-
*
|
|
51324
|
-
* or in the "license" file accompanying this file. This file is
|
|
51325
|
-
* distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR
|
|
51326
|
-
* CONDITIONS OF ANY KIND, express or implied. See the License
|
|
51327
|
-
* for the specific language governing permissions and
|
|
51328
|
-
* limitations under the License.
|
|
51297
|
+
* Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
|
|
51298
|
+
* SPDX-License-Identifier: Apache-2.0
|
|
51329
51299
|
*/
|
|
51330
51300
|
|
|
51331
51301
|
/** @class */
|
|
@@ -51425,20 +51395,8 @@ __webpack_require__.r(__webpack_exports__);
|
|
|
51425
51395
|
/* harmony import */ var _utils_WordArray__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(/*! ./utils/WordArray */ "../amazon-cognito-identity-js/es/utils/WordArray.js");
|
|
51426
51396
|
/* harmony import */ var _BigInteger__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__(/*! ./BigInteger */ "../amazon-cognito-identity-js/es/BigInteger.js");
|
|
51427
51397
|
/*!
|
|
51428
|
-
* Copyright
|
|
51429
|
-
*
|
|
51430
|
-
*
|
|
51431
|
-
* Licensed under the Amazon Software License (the "License").
|
|
51432
|
-
* You may not use this file except in compliance with the
|
|
51433
|
-
* License. A copy of the License is located at
|
|
51434
|
-
*
|
|
51435
|
-
* http://aws.amazon.com/asl/
|
|
51436
|
-
*
|
|
51437
|
-
* or in the "license" file accompanying this file. This file is
|
|
51438
|
-
* distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR
|
|
51439
|
-
* CONDITIONS OF ANY KIND, express or implied. See the License
|
|
51440
|
-
* for the specific language governing permissions and
|
|
51441
|
-
* limitations under the License.
|
|
51398
|
+
* Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
|
|
51399
|
+
* SPDX-License-Identifier: Apache-2.0
|
|
51442
51400
|
*/
|
|
51443
51401
|
|
|
51444
51402
|
|
|
@@ -53075,21 +53033,9 @@ function _setPrototypeOf(o, p) {
|
|
|
53075
53033
|
|
|
53076
53034
|
return _setPrototypeOf(o, p);
|
|
53077
53035
|
}
|
|
53078
|
-
|
|
53079
|
-
* Copyright
|
|
53080
|
-
*
|
|
53081
|
-
*
|
|
53082
|
-
* Licensed under the Amazon Software License (the "License").
|
|
53083
|
-
* You may not use this file except in compliance with the
|
|
53084
|
-
* License. A copy of the License is located at
|
|
53085
|
-
*
|
|
53086
|
-
* http://aws.amazon.com/asl/
|
|
53087
|
-
*
|
|
53088
|
-
* or in the "license" file accompanying this file. This file is
|
|
53089
|
-
* distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR
|
|
53090
|
-
* CONDITIONS OF ANY KIND, express or implied. See the License
|
|
53091
|
-
* for the specific language governing permissions and
|
|
53092
|
-
* limitations under the License.
|
|
53036
|
+
/*!
|
|
53037
|
+
* Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
|
|
53038
|
+
* SPDX-License-Identifier: Apache-2.0
|
|
53093
53039
|
*/
|
|
53094
53040
|
|
|
53095
53041
|
|
|
@@ -53145,20 +53091,8 @@ function _setPrototypeOf(o, p) {
|
|
|
53145
53091
|
return _setPrototypeOf(o, p);
|
|
53146
53092
|
}
|
|
53147
53093
|
/*!
|
|
53148
|
-
* Copyright
|
|
53149
|
-
*
|
|
53150
|
-
*
|
|
53151
|
-
* Licensed under the Amazon Software License (the "License").
|
|
53152
|
-
* You may not use this file except in compliance with the
|
|
53153
|
-
* License. A copy of the License is located at
|
|
53154
|
-
*
|
|
53155
|
-
* http://aws.amazon.com/asl/
|
|
53156
|
-
*
|
|
53157
|
-
* or in the "license" file accompanying this file. This file is
|
|
53158
|
-
* distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR
|
|
53159
|
-
* CONDITIONS OF ANY KIND, express or implied. See the License
|
|
53160
|
-
* for the specific language governing permissions and
|
|
53161
|
-
* limitations under the License.
|
|
53094
|
+
* Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
|
|
53095
|
+
* SPDX-License-Identifier: Apache-2.0
|
|
53162
53096
|
*/
|
|
53163
53097
|
|
|
53164
53098
|
|
|
@@ -53200,20 +53134,8 @@ __webpack_require__.r(__webpack_exports__);
|
|
|
53200
53134
|
/* harmony import */ var buffer__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! buffer */ "../../node_modules/buffer/index.js");
|
|
53201
53135
|
/* harmony import */ var buffer__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(buffer__WEBPACK_IMPORTED_MODULE_0__);
|
|
53202
53136
|
/*!
|
|
53203
|
-
* Copyright
|
|
53204
|
-
*
|
|
53205
|
-
*
|
|
53206
|
-
* Licensed under the Amazon Software License (the "License").
|
|
53207
|
-
* You may not use this file except in compliance with the
|
|
53208
|
-
* License. A copy of the License is located at
|
|
53209
|
-
*
|
|
53210
|
-
* http://aws.amazon.com/asl/
|
|
53211
|
-
*
|
|
53212
|
-
* or in the "license" file accompanying this file. This file is
|
|
53213
|
-
* distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR
|
|
53214
|
-
* CONDITIONS OF ANY KIND, express or implied. See the License
|
|
53215
|
-
* for the specific language governing permissions and
|
|
53216
|
-
* limitations under the License.
|
|
53137
|
+
* Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
|
|
53138
|
+
* SPDX-License-Identifier: Apache-2.0
|
|
53217
53139
|
*/
|
|
53218
53140
|
|
|
53219
53141
|
/** @class */
|
|
@@ -53287,20 +53209,8 @@ var CognitoJwtToken = /*#__PURE__*/function () {
|
|
|
53287
53209
|
__webpack_require__.r(__webpack_exports__);
|
|
53288
53210
|
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "default", function() { return CognitoRefreshToken; });
|
|
53289
53211
|
/*!
|
|
53290
|
-
* Copyright
|
|
53291
|
-
*
|
|
53292
|
-
*
|
|
53293
|
-
* Licensed under the Amazon Software License (the "License").
|
|
53294
|
-
* You may not use this file except in compliance with the
|
|
53295
|
-
* License. A copy of the License is located at
|
|
53296
|
-
*
|
|
53297
|
-
* http://aws.amazon.com/asl/
|
|
53298
|
-
*
|
|
53299
|
-
* or in the "license" file accompanying this file. This file is
|
|
53300
|
-
* distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR
|
|
53301
|
-
* CONDITIONS OF ANY KIND, express or implied. See the License
|
|
53302
|
-
* for the specific language governing permissions and
|
|
53303
|
-
* limitations under the License.
|
|
53212
|
+
* Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
|
|
53213
|
+
* SPDX-License-Identifier: Apache-2.0
|
|
53304
53214
|
*/
|
|
53305
53215
|
|
|
53306
53216
|
/** @class */
|
|
@@ -53364,20 +53274,8 @@ __webpack_require__.r(__webpack_exports__);
|
|
|
53364
53274
|
/* harmony import */ var _CognitoUserAttribute__WEBPACK_IMPORTED_MODULE_12__ = __webpack_require__(/*! ./CognitoUserAttribute */ "../amazon-cognito-identity-js/es/CognitoUserAttribute.js");
|
|
53365
53275
|
/* harmony import */ var _StorageHelper__WEBPACK_IMPORTED_MODULE_13__ = __webpack_require__(/*! ./StorageHelper */ "../amazon-cognito-identity-js/es/StorageHelper.js");
|
|
53366
53276
|
/*!
|
|
53367
|
-
* Copyright
|
|
53368
|
-
*
|
|
53369
|
-
*
|
|
53370
|
-
* Licensed under the Amazon Software License (the "License").
|
|
53371
|
-
* You may not use this file except in compliance with the
|
|
53372
|
-
* License. A copy of the License is located at
|
|
53373
|
-
*
|
|
53374
|
-
* http://aws.amazon.com/asl/
|
|
53375
|
-
*
|
|
53376
|
-
* or in the "license" file accompanying this file. This file is
|
|
53377
|
-
* distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR
|
|
53378
|
-
* CONDITIONS OF ANY KIND, express or implied. See the License
|
|
53379
|
-
* for the specific language governing permissions and
|
|
53380
|
-
* limitations under the License.
|
|
53277
|
+
* Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
|
|
53278
|
+
* SPDX-License-Identifier: Apache-2.0
|
|
53381
53279
|
*/
|
|
53382
53280
|
|
|
53383
53281
|
|
|
@@ -55485,20 +55383,8 @@ var CognitoUser = /*#__PURE__*/function () {
|
|
|
55485
55383
|
__webpack_require__.r(__webpack_exports__);
|
|
55486
55384
|
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "default", function() { return CognitoUserAttribute; });
|
|
55487
55385
|
/*!
|
|
55488
|
-
* Copyright
|
|
55489
|
-
*
|
|
55490
|
-
*
|
|
55491
|
-
* Licensed under the Amazon Software License (the "License").
|
|
55492
|
-
* You may not use this file except in compliance with the
|
|
55493
|
-
* License. A copy of the License is located at
|
|
55494
|
-
*
|
|
55495
|
-
* http://aws.amazon.com/asl/
|
|
55496
|
-
*
|
|
55497
|
-
* or in the "license" file accompanying this file. This file is
|
|
55498
|
-
* distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR
|
|
55499
|
-
* CONDITIONS OF ANY KIND, express or implied. See the License
|
|
55500
|
-
* for the specific language governing permissions and
|
|
55501
|
-
* limitations under the License.
|
|
55386
|
+
* Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
|
|
55387
|
+
* SPDX-License-Identifier: Apache-2.0
|
|
55502
55388
|
*/
|
|
55503
55389
|
|
|
55504
55390
|
/** @class */
|
|
@@ -55597,20 +55483,8 @@ __webpack_require__.r(__webpack_exports__);
|
|
|
55597
55483
|
/* harmony import */ var _CognitoUser__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ./CognitoUser */ "../amazon-cognito-identity-js/es/CognitoUser.js");
|
|
55598
55484
|
/* harmony import */ var _StorageHelper__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ./StorageHelper */ "../amazon-cognito-identity-js/es/StorageHelper.js");
|
|
55599
55485
|
/*!
|
|
55600
|
-
* Copyright
|
|
55601
|
-
*
|
|
55602
|
-
*
|
|
55603
|
-
* Licensed under the Amazon Software License (the "License").
|
|
55604
|
-
* You may not use this file except in compliance with the
|
|
55605
|
-
* License. A copy of the License is located at
|
|
55606
|
-
*
|
|
55607
|
-
* http://aws.amazon.com/asl/
|
|
55608
|
-
*
|
|
55609
|
-
* or in the "license" file accompanying this file. This file is
|
|
55610
|
-
* distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR
|
|
55611
|
-
* CONDITIONS OF ANY KIND, express or implied. See the License
|
|
55612
|
-
* for the specific language governing permissions and
|
|
55613
|
-
* limitations under the License.
|
|
55486
|
+
* Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
|
|
55487
|
+
* SPDX-License-Identifier: Apache-2.0
|
|
55614
55488
|
*/
|
|
55615
55489
|
|
|
55616
55490
|
|
|
@@ -55811,20 +55685,8 @@ var CognitoUserPool = /*#__PURE__*/function () {
|
|
|
55811
55685
|
__webpack_require__.r(__webpack_exports__);
|
|
55812
55686
|
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "default", function() { return CognitoUserSession; });
|
|
55813
55687
|
/*!
|
|
55814
|
-
* Copyright
|
|
55815
|
-
*
|
|
55816
|
-
*
|
|
55817
|
-
* Licensed under the Amazon Software License (the "License").
|
|
55818
|
-
* You may not use this file except in compliance with the
|
|
55819
|
-
* License. A copy of the License is located at
|
|
55820
|
-
*
|
|
55821
|
-
* http://aws.amazon.com/asl/
|
|
55822
|
-
*
|
|
55823
|
-
* or in the "license" file accompanying this file. This file is
|
|
55824
|
-
* distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR
|
|
55825
|
-
* CONDITIONS OF ANY KIND, express or implied. See the License
|
|
55826
|
-
* for the specific language governing permissions and
|
|
55827
|
-
* limitations under the License.
|
|
55688
|
+
* Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
|
|
55689
|
+
* SPDX-License-Identifier: Apache-2.0
|
|
55828
55690
|
*/
|
|
55829
55691
|
|
|
55830
55692
|
/** @class */
|
|
@@ -56073,20 +55935,8 @@ var CookieStorage = /*#__PURE__*/function () {
|
|
|
56073
55935
|
__webpack_require__.r(__webpack_exports__);
|
|
56074
55936
|
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "default", function() { return DateHelper; });
|
|
56075
55937
|
/*!
|
|
56076
|
-
* Copyright
|
|
56077
|
-
*
|
|
56078
|
-
*
|
|
56079
|
-
* Licensed under the Amazon Software License (the "License").
|
|
56080
|
-
* You may not use this file except in compliance with the
|
|
56081
|
-
* License. A copy of the License is located at
|
|
56082
|
-
*
|
|
56083
|
-
* http://aws.amazon.com/asl/
|
|
56084
|
-
*
|
|
56085
|
-
* or in the "license" file accompanying this file. This file is
|
|
56086
|
-
* distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR
|
|
56087
|
-
* CONDITIONS OF ANY KIND, express or implied. See the License
|
|
56088
|
-
* for the specific language governing permissions and
|
|
56089
|
-
* limitations under the License.
|
|
55938
|
+
* Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
|
|
55939
|
+
* SPDX-License-Identifier: Apache-2.0
|
|
56090
55940
|
*/
|
|
56091
55941
|
var monthNames = ['Jan', 'Feb', 'Mar', 'Apr', 'May', 'Jun', 'Jul', 'Aug', 'Sep', 'Oct', 'Nov', 'Dec'];
|
|
56092
55942
|
var weekNames = ['Sun', 'Mon', 'Tue', 'Wed', 'Thu', 'Fri', 'Sat'];
|
|
@@ -56148,17 +55998,9 @@ __webpack_require__.r(__webpack_exports__);
|
|
|
56148
55998
|
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "Platform", function() { return Platform; });
|
|
56149
55999
|
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "getUserAgent", function() { return getUserAgent; });
|
|
56150
56000
|
/* harmony import */ var _version__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ./version */ "../amazon-cognito-identity-js/es/Platform/version.js");
|
|
56151
|
-
|
|
56152
|
-
* Copyright
|
|
56153
|
-
*
|
|
56154
|
-
* Licensed under the Apache License, Version 2.0 (the "License"). You may not use this file except in compliance with
|
|
56155
|
-
* the License. A copy of the License is located at
|
|
56156
|
-
*
|
|
56157
|
-
* http://aws.amazon.com/apache2.0/
|
|
56158
|
-
*
|
|
56159
|
-
* or in the "license" file accompanying this file. This file is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR
|
|
56160
|
-
* CONDITIONS OF ANY KIND, either express or implied. See the License for the specific language governing permissions
|
|
56161
|
-
* and limitations under the License.
|
|
56001
|
+
/*!
|
|
56002
|
+
* Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
|
|
56003
|
+
* SPDX-License-Identifier: Apache-2.0
|
|
56162
56004
|
*/
|
|
56163
56005
|
|
|
56164
56006
|
var BASE_USER_AGENT = "aws-amplify/" + _version__WEBPACK_IMPORTED_MODULE_0__["version"];
|
|
@@ -56224,20 +56066,8 @@ __webpack_require__.r(__webpack_exports__);
|
|
|
56224
56066
|
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "MemoryStorage", function() { return MemoryStorage; });
|
|
56225
56067
|
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "default", function() { return StorageHelper; });
|
|
56226
56068
|
/*!
|
|
56227
|
-
* Copyright
|
|
56228
|
-
*
|
|
56229
|
-
*
|
|
56230
|
-
* Licensed under the Amazon Software License (the "License").
|
|
56231
|
-
* You may not use this file except in compliance with the
|
|
56232
|
-
* License. A copy of the License is located at
|
|
56233
|
-
*
|
|
56234
|
-
* http://aws.amazon.com/asl/
|
|
56235
|
-
*
|
|
56236
|
-
* or in the "license" file accompanying this file. This file is
|
|
56237
|
-
* distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR
|
|
56238
|
-
* CONDITIONS OF ANY KIND, express or implied. See the License
|
|
56239
|
-
* for the specific language governing permissions and
|
|
56240
|
-
* limitations under the License.
|
|
56069
|
+
* Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
|
|
56070
|
+
* SPDX-License-Identifier: Apache-2.0
|
|
56241
56071
|
*/
|
|
56242
56072
|
var dataMemory = {};
|
|
56243
56073
|
/** @class */
|
|
@@ -56409,20 +56239,8 @@ __webpack_require__.r(__webpack_exports__);
|
|
|
56409
56239
|
/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "WordArray", function() { return _utils_WordArray__WEBPACK_IMPORTED_MODULE_12__["default"]; });
|
|
56410
56240
|
|
|
56411
56241
|
/*!
|
|
56412
|
-
* Copyright
|
|
56413
|
-
*
|
|
56414
|
-
*
|
|
56415
|
-
* Licensed under the Amazon Software License (the "License").
|
|
56416
|
-
* You may not use this file except in compliance with the
|
|
56417
|
-
* License. A copy of the License is located at
|
|
56418
|
-
*
|
|
56419
|
-
* http://aws.amazon.com/asl/
|
|
56420
|
-
*
|
|
56421
|
-
* or in the "license" file accompanying this file. This file is
|
|
56422
|
-
* distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR
|
|
56423
|
-
* CONDITIONS OF ANY KIND, express or implied. See the License
|
|
56424
|
-
* for the specific language governing permissions and
|
|
56425
|
-
* limitations under the License.
|
|
56242
|
+
* Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
|
|
56243
|
+
* SPDX-License-Identifier: Apache-2.0
|
|
56426
56244
|
*/
|
|
56427
56245
|
|
|
56428
56246
|
|
|
@@ -61929,7 +61747,7 @@ function () {
|
|
|
61929
61747
|
* Delete the current authenticated user
|
|
61930
61748
|
* @return {Promise}
|
|
61931
61749
|
**/
|
|
61932
|
-
//
|
|
61750
|
+
//TODO: Check return type void
|
|
61933
61751
|
|
|
61934
61752
|
|
|
61935
61753
|
AuthClass.prototype.deleteUser = function () {
|
|
@@ -69785,7 +69603,6 @@ var LOG_LEVELS = {
|
|
|
69785
69603
|
WARN: 4,
|
|
69786
69604
|
ERROR: 5
|
|
69787
69605
|
};
|
|
69788
|
-
var COMPATIBLE_PLUGINS = [_Util_Constants__WEBPACK_IMPORTED_MODULE_0__["AWS_CLOUDWATCH_CATEGORY"]];
|
|
69789
69606
|
var LOG_TYPE;
|
|
69790
69607
|
|
|
69791
69608
|
(function (LOG_TYPE) {
|
|
@@ -69795,13 +69612,12 @@ var LOG_TYPE;
|
|
|
69795
69612
|
LOG_TYPE["WARN"] = "WARN";
|
|
69796
69613
|
LOG_TYPE["VERBOSE"] = "VERBOSE";
|
|
69797
69614
|
})(LOG_TYPE || (LOG_TYPE = {}));
|
|
69798
|
-
|
|
69799
|
-
var cloudWatchExcludeList = ['AWSCloudWatch', 'Amplify', 'Credentials', 'AuthClass', 'CloudLogger'];
|
|
69800
69615
|
/**
|
|
69801
69616
|
* Write logs
|
|
69802
69617
|
* @class Logger
|
|
69803
69618
|
*/
|
|
69804
69619
|
|
|
69620
|
+
|
|
69805
69621
|
var ConsoleLogger =
|
|
69806
69622
|
/** @class */
|
|
69807
69623
|
function () {
|
|
@@ -69817,19 +69633,8 @@ function () {
|
|
|
69817
69633
|
this.name = name;
|
|
69818
69634
|
this.level = level;
|
|
69819
69635
|
this._pluggables = [];
|
|
69820
|
-
this.addPluggable = this.addPluggable.bind(this);
|
|
69821
69636
|
}
|
|
69822
69637
|
|
|
69823
|
-
ConsoleLogger.globalPluggables = function (pluggable) {
|
|
69824
|
-
if (pluggable && COMPATIBLE_PLUGINS.includes(pluggable.getCategoryName())) {
|
|
69825
|
-
ConsoleLogger._globalpluggables.push(pluggable);
|
|
69826
|
-
}
|
|
69827
|
-
};
|
|
69828
|
-
|
|
69829
|
-
ConsoleLogger.clearGlobalPluggables = function () {
|
|
69830
|
-
ConsoleLogger._globalpluggables = [];
|
|
69831
|
-
};
|
|
69832
|
-
|
|
69833
69638
|
ConsoleLogger.prototype._padding = function (n) {
|
|
69834
69639
|
return n < 10 ? '0' + n : '' + n;
|
|
69835
69640
|
};
|
|
@@ -69844,20 +69649,6 @@ function () {
|
|
|
69844
69649
|
this._config = config;
|
|
69845
69650
|
return this._config;
|
|
69846
69651
|
};
|
|
69847
|
-
|
|
69848
|
-
ConsoleLogger.prototype._checkPluggables = function () {
|
|
69849
|
-
if (this._pluggables.length !== ConsoleLogger._globalpluggables.length) {
|
|
69850
|
-
if (ConsoleLogger._globalpluggables.length > 0) {
|
|
69851
|
-
ConsoleLogger._globalpluggables.forEach(this.addPluggable);
|
|
69852
|
-
|
|
69853
|
-
return;
|
|
69854
|
-
}
|
|
69855
|
-
|
|
69856
|
-
if (ConsoleLogger._globalpluggables.length === 0) {
|
|
69857
|
-
this._pluggables = [];
|
|
69858
|
-
}
|
|
69859
|
-
}
|
|
69860
|
-
};
|
|
69861
69652
|
/**
|
|
69862
69653
|
* Write log
|
|
69863
69654
|
* @method
|
|
@@ -69870,47 +69661,12 @@ function () {
|
|
|
69870
69661
|
ConsoleLogger.prototype._log = function (type) {
|
|
69871
69662
|
var e_1, _a;
|
|
69872
69663
|
|
|
69873
|
-
var _this = this;
|
|
69874
|
-
|
|
69875
69664
|
var msg = [];
|
|
69876
69665
|
|
|
69877
69666
|
for (var _i = 1; _i < arguments.length; _i++) {
|
|
69878
69667
|
msg[_i - 1] = arguments[_i];
|
|
69879
69668
|
}
|
|
69880
69669
|
|
|
69881
|
-
if (!cloudWatchExcludeList.includes(this.name)) {
|
|
69882
|
-
this._checkPluggables();
|
|
69883
|
-
}
|
|
69884
|
-
|
|
69885
|
-
var generateCloudMessage = function generateCloudMessage(msg) {
|
|
69886
|
-
var message = '';
|
|
69887
|
-
var data;
|
|
69888
|
-
|
|
69889
|
-
if (msg.length === 1 && typeof msg[0] === 'string') {
|
|
69890
|
-
message = msg[0];
|
|
69891
|
-
} else if (msg.length === 1) {
|
|
69892
|
-
data = msg[0];
|
|
69893
|
-
} else if (typeof msg[0] === 'string') {
|
|
69894
|
-
var obj = msg.slice(1);
|
|
69895
|
-
|
|
69896
|
-
if (obj.length === 1) {
|
|
69897
|
-
obj = obj[0];
|
|
69898
|
-
}
|
|
69899
|
-
|
|
69900
|
-
message = msg[0];
|
|
69901
|
-
data = obj;
|
|
69902
|
-
} else {
|
|
69903
|
-
data = msg;
|
|
69904
|
-
}
|
|
69905
|
-
|
|
69906
|
-
return JSON.stringify({
|
|
69907
|
-
level: type,
|
|
69908
|
-
"class": _this.name,
|
|
69909
|
-
message: message,
|
|
69910
|
-
data: data
|
|
69911
|
-
});
|
|
69912
|
-
};
|
|
69913
|
-
|
|
69914
69670
|
var logger_level_name = this.level;
|
|
69915
69671
|
|
|
69916
69672
|
if (ConsoleLogger.LOG_LEVEL) {
|
|
@@ -69924,72 +69680,62 @@ function () {
|
|
|
69924
69680
|
var logger_level = LOG_LEVELS[logger_level_name];
|
|
69925
69681
|
var type_level = LOG_LEVELS[type];
|
|
69926
69682
|
|
|
69927
|
-
if (type_level >= logger_level) {
|
|
69928
|
-
|
|
69683
|
+
if (!(type_level >= logger_level)) {
|
|
69684
|
+
// Do nothing if type is not greater than or equal to logger level (handle undefined)
|
|
69685
|
+
return;
|
|
69686
|
+
}
|
|
69929
69687
|
|
|
69930
|
-
|
|
69931
|
-
log = console.error.bind(console);
|
|
69932
|
-
}
|
|
69688
|
+
var log = console.log.bind(console);
|
|
69933
69689
|
|
|
69934
|
-
|
|
69935
|
-
|
|
69936
|
-
|
|
69690
|
+
if (type === LOG_TYPE.ERROR && console.error) {
|
|
69691
|
+
log = console.error.bind(console);
|
|
69692
|
+
}
|
|
69937
69693
|
|
|
69938
|
-
|
|
69939
|
-
|
|
69940
|
-
|
|
69694
|
+
if (type === LOG_TYPE.WARN && console.warn) {
|
|
69695
|
+
log = console.warn.bind(console);
|
|
69696
|
+
}
|
|
69941
69697
|
|
|
69942
|
-
|
|
69943
|
-
|
|
69944
|
-
log(prefix + " - " + message);
|
|
69945
|
-
} else if (msg.length === 1) {
|
|
69946
|
-
data = msg[0];
|
|
69947
|
-
log(prefix, data);
|
|
69948
|
-
} else if (typeof msg[0] === 'string') {
|
|
69949
|
-
var obj = msg.slice(1);
|
|
69698
|
+
var prefix = "[" + type + "] " + this._ts() + " " + this.name;
|
|
69699
|
+
var message = '';
|
|
69950
69700
|
|
|
69951
|
-
|
|
69952
|
-
|
|
69953
|
-
|
|
69701
|
+
if (msg.length === 1 && typeof msg[0] === 'string') {
|
|
69702
|
+
message = prefix + " - " + msg[0];
|
|
69703
|
+
log(message);
|
|
69704
|
+
} else if (msg.length === 1) {
|
|
69705
|
+
message = prefix + " " + msg[0];
|
|
69706
|
+
log(prefix, msg[0]);
|
|
69707
|
+
} else if (typeof msg[0] === 'string') {
|
|
69708
|
+
var obj = msg.slice(1);
|
|
69954
69709
|
|
|
69955
|
-
|
|
69956
|
-
|
|
69957
|
-
log(prefix + " - " + message, data);
|
|
69958
|
-
} else {
|
|
69959
|
-
data = msg;
|
|
69960
|
-
log(prefix, data);
|
|
69710
|
+
if (obj.length === 1) {
|
|
69711
|
+
obj = obj[0];
|
|
69961
69712
|
}
|
|
69962
|
-
}
|
|
69963
69713
|
|
|
69964
|
-
|
|
69965
|
-
|
|
69966
|
-
|
|
69967
|
-
|
|
69968
|
-
|
|
69969
|
-
|
|
69970
|
-
var logger_level_1 = LOG_LEVELS[ConsoleLogger.CLOUD_LOG_LEVEL];
|
|
69971
|
-
var type_level_1 = LOG_LEVELS[type];
|
|
69972
|
-
var logEvent = {
|
|
69973
|
-
message: cloudMessage,
|
|
69974
|
-
timestamp: Date.now()
|
|
69975
|
-
};
|
|
69714
|
+
message = prefix + " - " + msg[0] + " " + obj;
|
|
69715
|
+
log(prefix + " - " + msg[0], obj);
|
|
69716
|
+
} else {
|
|
69717
|
+
message = prefix + " " + msg;
|
|
69718
|
+
log(prefix, msg);
|
|
69719
|
+
}
|
|
69976
69720
|
|
|
69977
|
-
|
|
69978
|
-
|
|
69979
|
-
|
|
69980
|
-
|
|
69981
|
-
|
|
69982
|
-
|
|
69983
|
-
} catch (e_1_1) {
|
|
69984
|
-
e_1 = {
|
|
69985
|
-
error: e_1_1
|
|
69721
|
+
try {
|
|
69722
|
+
for (var _b = __values(this._pluggables), _c = _b.next(); !_c.done; _c = _b.next()) {
|
|
69723
|
+
var plugin = _c.value;
|
|
69724
|
+
var logEvent = {
|
|
69725
|
+
message: message,
|
|
69726
|
+
timestamp: Date.now()
|
|
69986
69727
|
};
|
|
69728
|
+
plugin.pushLogs([logEvent]);
|
|
69729
|
+
}
|
|
69730
|
+
} catch (e_1_1) {
|
|
69731
|
+
e_1 = {
|
|
69732
|
+
error: e_1_1
|
|
69733
|
+
};
|
|
69734
|
+
} finally {
|
|
69735
|
+
try {
|
|
69736
|
+
if (_c && !_c.done && (_a = _b["return"])) _a.call(_b);
|
|
69987
69737
|
} finally {
|
|
69988
|
-
|
|
69989
|
-
if (_c && !_c.done && (_a = _b["return"])) _a.call(_b);
|
|
69990
|
-
} finally {
|
|
69991
|
-
if (e_1) throw e_1.error;
|
|
69992
|
-
}
|
|
69738
|
+
if (e_1) throw e_1.error;
|
|
69993
69739
|
}
|
|
69994
69740
|
}
|
|
69995
69741
|
};
|
|
@@ -70097,8 +69843,10 @@ function () {
|
|
|
70097
69843
|
};
|
|
70098
69844
|
|
|
70099
69845
|
ConsoleLogger.prototype.addPluggable = function (pluggable) {
|
|
70100
|
-
if (pluggable &&
|
|
69846
|
+
if (pluggable && pluggable.getCategoryName() === _Util_Constants__WEBPACK_IMPORTED_MODULE_0__["AWS_CLOUDWATCH_CATEGORY"]) {
|
|
70101
69847
|
this._pluggables.push(pluggable);
|
|
69848
|
+
|
|
69849
|
+
pluggable.configure(this._config);
|
|
70102
69850
|
}
|
|
70103
69851
|
};
|
|
70104
69852
|
|
|
@@ -70106,9 +69854,7 @@ function () {
|
|
|
70106
69854
|
return this._pluggables;
|
|
70107
69855
|
};
|
|
70108
69856
|
|
|
70109
|
-
ConsoleLogger._globalpluggables = [];
|
|
70110
69857
|
ConsoleLogger.LOG_LEVEL = null;
|
|
70111
|
-
ConsoleLogger.CLOUD_LOG_LEVEL = null;
|
|
70112
69858
|
return ConsoleLogger;
|
|
70113
69859
|
}();
|
|
70114
69860
|
|
|
@@ -70956,15 +70702,6 @@ __webpack_require__.r(__webpack_exports__);
|
|
|
70956
70702
|
/* harmony import */ var _Platform__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! ../Platform */ "../core/lib-esm/Platform/index.js");
|
|
70957
70703
|
/* harmony import */ var _Parser__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! ../Parser */ "../core/lib-esm/Parser.js");
|
|
70958
70704
|
/* harmony import */ var _Util_Constants__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(/*! ../Util/Constants */ "../core/lib-esm/Util/Constants.js");
|
|
70959
|
-
function _typeof(obj) {
|
|
70960
|
-
"@babel/helpers - typeof";
|
|
70961
|
-
|
|
70962
|
-
return _typeof = "function" == typeof Symbol && "symbol" == typeof Symbol.iterator ? function (obj) {
|
|
70963
|
-
return typeof obj;
|
|
70964
|
-
} : function (obj) {
|
|
70965
|
-
return obj && "function" == typeof Symbol && obj.constructor === Symbol && obj !== Symbol.prototype ? "symbol" : typeof obj;
|
|
70966
|
-
}, _typeof(obj);
|
|
70967
|
-
}
|
|
70968
70705
|
/*
|
|
70969
70706
|
* Copyright 2017-2019 Amazon.com, Inc. or its affiliates. All Rights Reserved.
|
|
70970
70707
|
*
|
|
@@ -70977,8 +70714,6 @@ function _typeof(obj) {
|
|
|
70977
70714
|
* CONDITIONS OF ANY KIND, either express or implied. See the License for the specific language governing permissions
|
|
70978
70715
|
* and limitations under the License.
|
|
70979
70716
|
*/
|
|
70980
|
-
|
|
70981
|
-
|
|
70982
70717
|
var __awaiter = undefined && undefined.__awaiter || function (thisArg, _arguments, P, generator) {
|
|
70983
70718
|
function adopt(value) {
|
|
70984
70719
|
return value instanceof P ? value : new P(function (resolve) {
|
|
@@ -71122,42 +70857,61 @@ var __generator = undefined && undefined.__generator || function (thisArg, body)
|
|
|
71122
70857
|
}
|
|
71123
70858
|
};
|
|
71124
70859
|
|
|
70860
|
+
var __read = undefined && undefined.__read || function (o, n) {
|
|
70861
|
+
var m = typeof Symbol === "function" && o[Symbol.iterator];
|
|
70862
|
+
if (!m) return o;
|
|
70863
|
+
var i = m.call(o),
|
|
70864
|
+
r,
|
|
70865
|
+
ar = [],
|
|
70866
|
+
e;
|
|
71125
70867
|
|
|
70868
|
+
try {
|
|
70869
|
+
while ((n === void 0 || n-- > 0) && !(r = i.next()).done) {
|
|
70870
|
+
ar.push(r.value);
|
|
70871
|
+
}
|
|
70872
|
+
} catch (error) {
|
|
70873
|
+
e = {
|
|
70874
|
+
error: error
|
|
70875
|
+
};
|
|
70876
|
+
} finally {
|
|
70877
|
+
try {
|
|
70878
|
+
if (r && !r.done && (m = i["return"])) m.call(i);
|
|
70879
|
+
} finally {
|
|
70880
|
+
if (e) throw e.error;
|
|
70881
|
+
}
|
|
70882
|
+
}
|
|
70883
|
+
|
|
70884
|
+
return ar;
|
|
70885
|
+
};
|
|
70886
|
+
|
|
70887
|
+
var __spread = undefined && undefined.__spread || function () {
|
|
70888
|
+
for (var ar = [], i = 0; i < arguments.length; i++) {
|
|
70889
|
+
ar = ar.concat(__read(arguments[i]));
|
|
70890
|
+
}
|
|
70891
|
+
|
|
70892
|
+
return ar;
|
|
70893
|
+
};
|
|
71126
70894
|
|
|
71127
70895
|
|
|
71128
70896
|
|
|
71129
70897
|
|
|
71130
70898
|
|
|
71131
70899
|
|
|
71132
|
-
if (typeof window === 'undefined' || (typeof window === "undefined" ? "undefined" : _typeof(window)) === 'object' && !window.TextEncoder) {
|
|
71133
|
-
__webpack_require__(/*! fast-text-encoding */ "../../node_modules/fast-text-encoding/text.min.js");
|
|
71134
|
-
}
|
|
71135
70900
|
|
|
71136
70901
|
var logger = new _Logger__WEBPACK_IMPORTED_MODULE_2__["ConsoleLogger"]('AWSCloudWatch');
|
|
71137
|
-
var INTERVAL = 10000;
|
|
71138
70902
|
|
|
71139
70903
|
var AWSCloudWatchProvider =
|
|
71140
70904
|
/** @class */
|
|
71141
70905
|
function () {
|
|
71142
70906
|
function AWSCloudWatchProvider(config) {
|
|
71143
|
-
this.
|
|
71144
|
-
|
|
71145
|
-
|
|
71146
|
-
|
|
71147
|
-
|
|
71148
|
-
|
|
71149
|
-
eventUploadInProgress: false,
|
|
71150
|
-
logEvents: [],
|
|
71151
|
-
verifiedLogGroup: {
|
|
71152
|
-
logGroupName: this._config.logGroupName
|
|
71153
|
-
}
|
|
71154
|
-
};
|
|
71155
|
-
this._currentLogBatch = [];
|
|
71156
|
-
|
|
71157
|
-
this._initiateLogPushInterval();
|
|
70907
|
+
this.configure(config);
|
|
70908
|
+
this._dataTracker = {
|
|
70909
|
+
eventUploadInProgress: false,
|
|
70910
|
+
logEvents: []
|
|
70911
|
+
};
|
|
70912
|
+
this._currentLogBatch = [];
|
|
71158
70913
|
|
|
71159
|
-
|
|
71160
|
-
}
|
|
70914
|
+
this._initiateLogPushInterval();
|
|
71161
70915
|
}
|
|
71162
70916
|
|
|
71163
70917
|
AWSCloudWatchProvider.prototype.getProviderName = function () {
|
|
@@ -71172,12 +70926,6 @@ function () {
|
|
|
71172
70926
|
return this._dataTracker.logEvents;
|
|
71173
70927
|
};
|
|
71174
70928
|
|
|
71175
|
-
AWSCloudWatchProvider.prototype.setPreFlightCheck = function (cb) {
|
|
71176
|
-
if (typeof cb === 'function') {
|
|
71177
|
-
this._preFlightCheck = cb;
|
|
71178
|
-
}
|
|
71179
|
-
};
|
|
71180
|
-
|
|
71181
70929
|
AWSCloudWatchProvider.prototype.configure = function (config) {
|
|
71182
70930
|
if (!config) return this._config || {};
|
|
71183
70931
|
var conf = Object.assign({}, this._config, Object(_Parser__WEBPACK_IMPORTED_MODULE_4__["parseMobileHubConfig"])(config).Logging, config);
|
|
@@ -71431,27 +71179,8 @@ function () {
|
|
|
71431
71179
|
};
|
|
71432
71180
|
|
|
71433
71181
|
AWSCloudWatchProvider.prototype.pushLogs = function (logs) {
|
|
71434
|
-
logger.debug('pushing log events to
|
|
71435
|
-
this._dataTracker.logEvents = this._dataTracker.logEvents
|
|
71436
|
-
};
|
|
71437
|
-
|
|
71438
|
-
AWSCloudWatchProvider.prototype.pause = function () {
|
|
71439
|
-
this._processing = false;
|
|
71440
|
-
|
|
71441
|
-
if (this._timer) {
|
|
71442
|
-
clearInterval(this._timer);
|
|
71443
|
-
}
|
|
71444
|
-
};
|
|
71445
|
-
|
|
71446
|
-
AWSCloudWatchProvider.prototype.resume = function () {
|
|
71447
|
-
this._processing = true;
|
|
71448
|
-
|
|
71449
|
-
this._initiateLogPushInterval();
|
|
71450
|
-
};
|
|
71451
|
-
|
|
71452
|
-
AWSCloudWatchProvider.prototype.clear = function () {
|
|
71453
|
-
this._dataTracker.logEvents = [];
|
|
71454
|
-
this._currentLogBatch = [];
|
|
71182
|
+
logger.debug('pushing log events to Cloudwatch...');
|
|
71183
|
+
this._dataTracker.logEvents = __spread(this._dataTracker.logEvents, logs);
|
|
71455
71184
|
};
|
|
71456
71185
|
|
|
71457
71186
|
AWSCloudWatchProvider.prototype._validateLogGroupExistsAndCreate = function (logGroupName) {
|
|
@@ -71768,33 +71497,13 @@ function () {
|
|
|
71768
71497
|
return __generator(this, function (_a) {
|
|
71769
71498
|
switch (_a.label) {
|
|
71770
71499
|
case 0:
|
|
71771
|
-
_a.trys.push([0,
|
|
71772
|
-
|
|
71773
|
-
return [4
|
|
71774
|
-
/*yield*/
|
|
71775
|
-
, this._preFlightCheck()];
|
|
71776
|
-
|
|
71777
|
-
case 1:
|
|
71778
|
-
/**
|
|
71779
|
-
* CloudWatch has restrictions on the size of the log events that get sent up.
|
|
71780
|
-
* We need to track both the size of each event and the total size of the batch
|
|
71781
|
-
* of logs.
|
|
71782
|
-
*
|
|
71783
|
-
* We also need to ensure that the logs in the batch are sorted in chronological order.
|
|
71784
|
-
* https://docs.aws.amazon.com/AmazonCloudWatchLogs/latest/APIReference/API_PutLogEvents.html
|
|
71785
|
-
*/
|
|
71786
|
-
if (!_a.sent()) {
|
|
71787
|
-
this.clear();
|
|
71788
|
-
return [2
|
|
71789
|
-
/*return*/
|
|
71790
|
-
];
|
|
71791
|
-
}
|
|
71500
|
+
_a.trys.push([0, 3,, 4]);
|
|
71792
71501
|
|
|
71793
71502
|
return [4
|
|
71794
71503
|
/*yield*/
|
|
71795
71504
|
, this._getNextSequenceToken()];
|
|
71796
71505
|
|
|
71797
|
-
case
|
|
71506
|
+
case 1:
|
|
71798
71507
|
seqToken = _a.sent();
|
|
71799
71508
|
logBatch = this._currentLogBatch.length === 0 ? this._getBufferedBatchOfLogs() : this._currentLogBatch;
|
|
71800
71509
|
putLogsPayload = {
|
|
@@ -71808,7 +71517,7 @@ function () {
|
|
|
71808
71517
|
/*yield*/
|
|
71809
71518
|
, this._sendLogEvents(putLogsPayload)];
|
|
71810
71519
|
|
|
71811
|
-
case
|
|
71520
|
+
case 2:
|
|
71812
71521
|
sendLogEventsResponse = _a.sent();
|
|
71813
71522
|
this._nextSequenceToken = sendLogEventsResponse.nextSequenceToken;
|
|
71814
71523
|
this._dataTracker.eventUploadInProgress = false;
|
|
@@ -71817,7 +71526,7 @@ function () {
|
|
|
71817
71526
|
/*return*/
|
|
71818
71527
|
, sendLogEventsResponse];
|
|
71819
71528
|
|
|
71820
|
-
case
|
|
71529
|
+
case 3:
|
|
71821
71530
|
err_5 = _a.sent();
|
|
71822
71531
|
logger.error("error during _safeUploadLogEvents: " + err_5);
|
|
71823
71532
|
|
|
@@ -71834,9 +71543,9 @@ function () {
|
|
|
71834
71543
|
|
|
71835
71544
|
return [3
|
|
71836
71545
|
/*break*/
|
|
71837
|
-
,
|
|
71546
|
+
, 4];
|
|
71838
71547
|
|
|
71839
|
-
case
|
|
71548
|
+
case 4:
|
|
71840
71549
|
return [2
|
|
71841
71550
|
/*return*/
|
|
71842
71551
|
];
|
|
@@ -71845,41 +71554,6 @@ function () {
|
|
|
71845
71554
|
});
|
|
71846
71555
|
};
|
|
71847
71556
|
|
|
71848
|
-
AWSCloudWatchProvider.prototype.truncateOversizedEvent = function (event) {
|
|
71849
|
-
var timestamp = event.timestamp,
|
|
71850
|
-
message = event.message;
|
|
71851
|
-
var messageJson;
|
|
71852
|
-
|
|
71853
|
-
try {
|
|
71854
|
-
messageJson = JSON.parse(message);
|
|
71855
|
-
var truncated = JSON.stringify({
|
|
71856
|
-
level: messageJson.level,
|
|
71857
|
-
"class": messageJson["class"],
|
|
71858
|
-
message: messageJson.message.substring(0, 500)
|
|
71859
|
-
});
|
|
71860
|
-
|
|
71861
|
-
if (messageJson.data != null) {
|
|
71862
|
-
truncated['data'] = "OBJECT SIZE EXCEEDS CLOUDWATCH EVENT LIMIT. Truncated: " + JSON.stringify(messageJson.data).substring(0, 500);
|
|
71863
|
-
}
|
|
71864
|
-
|
|
71865
|
-
return {
|
|
71866
|
-
timestamp: timestamp,
|
|
71867
|
-
message: truncated
|
|
71868
|
-
};
|
|
71869
|
-
} catch (error) {
|
|
71870
|
-
logger.warn('Could not minify oversized event', error);
|
|
71871
|
-
var truncated = JSON.stringify({
|
|
71872
|
-
level: 'UNKNOWN',
|
|
71873
|
-
"class": 'Unknown',
|
|
71874
|
-
message: 'OBJECT SIZE EXCEEDS CLOUDWATCH EVENT LIMIT. Could not parse event to truncate'
|
|
71875
|
-
});
|
|
71876
|
-
return {
|
|
71877
|
-
timestamp: timestamp,
|
|
71878
|
-
message: truncated
|
|
71879
|
-
};
|
|
71880
|
-
}
|
|
71881
|
-
};
|
|
71882
|
-
|
|
71883
71557
|
AWSCloudWatchProvider.prototype._getBufferedBatchOfLogs = function () {
|
|
71884
71558
|
/**
|
|
71885
71559
|
* CloudWatch has restrictions on the size of the log events that get sent up.
|
|
@@ -71899,9 +71573,7 @@ function () {
|
|
|
71899
71573
|
if (eventSize > _Util_Constants__WEBPACK_IMPORTED_MODULE_5__["AWS_CLOUDWATCH_MAX_EVENT_SIZE"]) {
|
|
71900
71574
|
var errString = "Log entry exceeds maximum size for CloudWatch logs. Log size: " + eventSize + ". Truncating log message.";
|
|
71901
71575
|
logger.warn(errString);
|
|
71902
|
-
currentEvent =
|
|
71903
|
-
this._dataTracker.logEvents[currentEventIdx] = currentEvent;
|
|
71904
|
-
eventSize = new TextEncoder().encode(currentEvent.message).length + _Util_Constants__WEBPACK_IMPORTED_MODULE_5__["AWS_CLOUDWATCH_BASE_BUFFER_SIZE"];
|
|
71576
|
+
currentEvent.message = currentEvent.message.substring(0, eventSize);
|
|
71905
71577
|
}
|
|
71906
71578
|
|
|
71907
71579
|
if (totalByteSize + eventSize > _Util_Constants__WEBPACK_IMPORTED_MODULE_5__["AWS_CLOUDWATCH_MAX_BATCH_EVENT_SIZE"]) break;
|
|
@@ -71992,7 +71664,6 @@ function () {
|
|
|
71992
71664
|
case 3:
|
|
71993
71665
|
err_7 = _a.sent();
|
|
71994
71666
|
logger.error("error when calling _safeUploadLogEvents in the timer interval - " + err_7);
|
|
71995
|
-
this.pause();
|
|
71996
71667
|
return [3
|
|
71997
71668
|
/*break*/
|
|
71998
71669
|
, 4];
|
|
@@ -72004,7 +71675,7 @@ function () {
|
|
|
72004
71675
|
}
|
|
72005
71676
|
});
|
|
72006
71677
|
});
|
|
72007
|
-
},
|
|
71678
|
+
}, 2000);
|
|
72008
71679
|
};
|
|
72009
71680
|
|
|
72010
71681
|
AWSCloudWatchProvider.prototype._getDocUploadPermissibility = function () {
|
|
@@ -73036,7 +72707,7 @@ function () {
|
|
|
73036
72707
|
/*!*****************************************!*\
|
|
73037
72708
|
!*** ../core/lib-esm/Util/Constants.js ***!
|
|
73038
72709
|
\*****************************************/
|
|
73039
|
-
/*! exports provided: AWS_CLOUDWATCH_BASE_BUFFER_SIZE, AWS_CLOUDWATCH_CATEGORY, AWS_CLOUDWATCH_MAX_BATCH_EVENT_SIZE, AWS_CLOUDWATCH_MAX_EVENT_SIZE, AWS_CLOUDWATCH_PROVIDER_NAME, NO_CREDS_ERROR_STRING, RETRY_ERROR_CODES
|
|
72710
|
+
/*! exports provided: AWS_CLOUDWATCH_BASE_BUFFER_SIZE, AWS_CLOUDWATCH_CATEGORY, AWS_CLOUDWATCH_MAX_BATCH_EVENT_SIZE, AWS_CLOUDWATCH_MAX_EVENT_SIZE, AWS_CLOUDWATCH_PROVIDER_NAME, NO_CREDS_ERROR_STRING, RETRY_ERROR_CODES */
|
|
73040
72711
|
/***/ (function(module, __webpack_exports__, __webpack_require__) {
|
|
73041
72712
|
|
|
73042
72713
|
"use strict";
|
|
@@ -73048,8 +72719,6 @@ __webpack_require__.r(__webpack_exports__);
|
|
|
73048
72719
|
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "AWS_CLOUDWATCH_PROVIDER_NAME", function() { return AWS_CLOUDWATCH_PROVIDER_NAME; });
|
|
73049
72720
|
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "NO_CREDS_ERROR_STRING", function() { return NO_CREDS_ERROR_STRING; });
|
|
73050
72721
|
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "RETRY_ERROR_CODES", function() { return RETRY_ERROR_CODES; });
|
|
73051
|
-
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "AMAZON_KINESIS_LOGGING_PROVIDER_NAME", function() { return AMAZON_KINESIS_LOGGING_PROVIDER_NAME; });
|
|
73052
|
-
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "AMAZON_KINESIS_LOGGING_CATEGORY", function() { return AMAZON_KINESIS_LOGGING_CATEGORY; });
|
|
73053
72722
|
/*
|
|
73054
72723
|
* Copyright 2017-2019 Amazon.com, Inc. or its affiliates. All Rights Reserved.
|
|
73055
72724
|
*
|
|
@@ -73063,14 +72732,11 @@ __webpack_require__.r(__webpack_exports__);
|
|
|
73063
72732
|
* and limitations under the License.
|
|
73064
72733
|
*/
|
|
73065
72734
|
// Logging constants
|
|
73066
|
-
// Cloudwatch
|
|
73067
72735
|
var AWS_CLOUDWATCH_BASE_BUFFER_SIZE = 26;
|
|
73068
72736
|
var AWS_CLOUDWATCH_MAX_BATCH_EVENT_SIZE = 1048576;
|
|
73069
72737
|
var AWS_CLOUDWATCH_MAX_EVENT_SIZE = 256000;
|
|
73070
72738
|
var AWS_CLOUDWATCH_CATEGORY = 'Logging';
|
|
73071
72739
|
var AWS_CLOUDWATCH_PROVIDER_NAME = 'AWSCloudWatch';
|
|
73072
|
-
var AMAZON_KINESIS_LOGGING_CATEGORY = 'KinesisLogging';
|
|
73073
|
-
var AMAZON_KINESIS_LOGGING_PROVIDER_NAME = 'AmazonKinesisLogging';
|
|
73074
72740
|
var NO_CREDS_ERROR_STRING = 'No credentials';
|
|
73075
72741
|
var RETRY_ERROR_CODES = ['ResourceNotFoundException', 'InvalidSequenceTokenException'];
|
|
73076
72742
|
|
|
@@ -73656,7 +73322,7 @@ function retry(functionToRetry, args, delayFn, attempt) {
|
|
|
73656
73322
|
throw Error('functionToRetry must be a function');
|
|
73657
73323
|
}
|
|
73658
73324
|
|
|
73659
|
-
logger.debug(functionToRetry.name + " attempt #" + attempt + " with this vars:"
|
|
73325
|
+
logger.debug(functionToRetry.name + " attempt #" + attempt + " with this vars: " + JSON.stringify(args));
|
|
73660
73326
|
_a.label = 1;
|
|
73661
73327
|
|
|
73662
73328
|
case 1:
|
|
@@ -73773,7 +73439,7 @@ function urlSafeDecode(hex) {
|
|
|
73773
73439
|
/*!*************************************!*\
|
|
73774
73440
|
!*** ../core/lib-esm/Util/index.js ***!
|
|
73775
73441
|
\*************************************/
|
|
73776
|
-
/*! exports provided: NonRetryableError, retry, jitteredExponentialRetry, Mutex, Reachability, DateUtils, urlSafeEncode, urlSafeDecode, AWS_CLOUDWATCH_BASE_BUFFER_SIZE, AWS_CLOUDWATCH_CATEGORY, AWS_CLOUDWATCH_MAX_BATCH_EVENT_SIZE, AWS_CLOUDWATCH_MAX_EVENT_SIZE, AWS_CLOUDWATCH_PROVIDER_NAME, NO_CREDS_ERROR_STRING, RETRY_ERROR_CODES
|
|
73442
|
+
/*! exports provided: NonRetryableError, retry, jitteredExponentialRetry, Mutex, Reachability, DateUtils, urlSafeEncode, urlSafeDecode, AWS_CLOUDWATCH_BASE_BUFFER_SIZE, AWS_CLOUDWATCH_CATEGORY, AWS_CLOUDWATCH_MAX_BATCH_EVENT_SIZE, AWS_CLOUDWATCH_MAX_EVENT_SIZE, AWS_CLOUDWATCH_PROVIDER_NAME, NO_CREDS_ERROR_STRING, RETRY_ERROR_CODES */
|
|
73777
73443
|
/***/ (function(module, __webpack_exports__, __webpack_require__) {
|
|
73778
73444
|
|
|
73779
73445
|
"use strict";
|
|
@@ -73814,10 +73480,6 @@ __webpack_require__.r(__webpack_exports__);
|
|
|
73814
73480
|
|
|
73815
73481
|
/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "RETRY_ERROR_CODES", function() { return _Constants__WEBPACK_IMPORTED_MODULE_5__["RETRY_ERROR_CODES"]; });
|
|
73816
73482
|
|
|
73817
|
-
/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "AMAZON_KINESIS_LOGGING_PROVIDER_NAME", function() { return _Constants__WEBPACK_IMPORTED_MODULE_5__["AMAZON_KINESIS_LOGGING_PROVIDER_NAME"]; });
|
|
73818
|
-
|
|
73819
|
-
/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "AMAZON_KINESIS_LOGGING_CATEGORY", function() { return _Constants__WEBPACK_IMPORTED_MODULE_5__["AMAZON_KINESIS_LOGGING_CATEGORY"]; });
|
|
73820
|
-
|
|
73821
73483
|
|
|
73822
73484
|
|
|
73823
73485
|
|
|
@@ -73867,7 +73529,7 @@ var USER_AGENT_HEADER = 'x-amz-user-agent';
|
|
|
73867
73529
|
/*!********************************!*\
|
|
73868
73530
|
!*** ../core/lib-esm/index.js ***!
|
|
73869
73531
|
\********************************/
|
|
73870
|
-
/*! exports provided: AmplifyClass, ClientDevice, ConsoleLogger, Logger, missingConfig, invalidParameter, Hub, I18n, isEmpty, sortByField, objectLessAttributes, filenameToContentType, isTextFile, generateRandomString, makeQuerablePromise, isWebWorker, browserOrNode, transferKeyToLowerCase, transferKeyToUpperCase, isStrictObject, JS, Signer, parseMobileHubConfig, Parser, AWSCloudWatchProvider, FacebookOAuth, GoogleOAuth, Linking, AppState, AsyncStorage, Credentials, CredentialsClass, ServiceWorker, StorageHelper, MemoryStorage, UniversalStorage, Platform, getAmplifyUserAgent, INTERNAL_AWS_APPSYNC_PUBSUB_PROVIDER, INTERNAL_AWS_APPSYNC_REALTIME_PUBSUB_PROVIDER, USER_AGENT_HEADER, Constants, NonRetryableError, retry, jitteredExponentialRetry, Mutex, Reachability, DateUtils, urlSafeEncode, urlSafeDecode, AWS_CLOUDWATCH_BASE_BUFFER_SIZE, AWS_CLOUDWATCH_CATEGORY, AWS_CLOUDWATCH_MAX_BATCH_EVENT_SIZE, AWS_CLOUDWATCH_MAX_EVENT_SIZE, AWS_CLOUDWATCH_PROVIDER_NAME, NO_CREDS_ERROR_STRING, RETRY_ERROR_CODES,
|
|
73532
|
+
/*! exports provided: AmplifyClass, ClientDevice, ConsoleLogger, Logger, missingConfig, invalidParameter, Hub, I18n, isEmpty, sortByField, objectLessAttributes, filenameToContentType, isTextFile, generateRandomString, makeQuerablePromise, isWebWorker, browserOrNode, transferKeyToLowerCase, transferKeyToUpperCase, isStrictObject, JS, Signer, parseMobileHubConfig, Parser, AWSCloudWatchProvider, FacebookOAuth, GoogleOAuth, Linking, AppState, AsyncStorage, Credentials, CredentialsClass, ServiceWorker, StorageHelper, MemoryStorage, UniversalStorage, Platform, getAmplifyUserAgent, INTERNAL_AWS_APPSYNC_PUBSUB_PROVIDER, INTERNAL_AWS_APPSYNC_REALTIME_PUBSUB_PROVIDER, USER_AGENT_HEADER, Constants, NonRetryableError, retry, jitteredExponentialRetry, Mutex, Reachability, DateUtils, urlSafeEncode, urlSafeDecode, AWS_CLOUDWATCH_BASE_BUFFER_SIZE, AWS_CLOUDWATCH_CATEGORY, AWS_CLOUDWATCH_MAX_BATCH_EVENT_SIZE, AWS_CLOUDWATCH_MAX_EVENT_SIZE, AWS_CLOUDWATCH_PROVIDER_NAME, NO_CREDS_ERROR_STRING, RETRY_ERROR_CODES, Amplify, default */
|
|
73871
73533
|
/***/ (function(module, __webpack_exports__, __webpack_require__) {
|
|
73872
73534
|
|
|
73873
73535
|
"use strict";
|
|
@@ -74006,10 +73668,6 @@ __webpack_require__.r(__webpack_exports__);
|
|
|
74006
73668
|
|
|
74007
73669
|
/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "RETRY_ERROR_CODES", function() { return _Util__WEBPACK_IMPORTED_MODULE_18__["RETRY_ERROR_CODES"]; });
|
|
74008
73670
|
|
|
74009
|
-
/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "AMAZON_KINESIS_LOGGING_PROVIDER_NAME", function() { return _Util__WEBPACK_IMPORTED_MODULE_18__["AMAZON_KINESIS_LOGGING_PROVIDER_NAME"]; });
|
|
74010
|
-
|
|
74011
|
-
/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "AMAZON_KINESIS_LOGGING_CATEGORY", function() { return _Util__WEBPACK_IMPORTED_MODULE_18__["AMAZON_KINESIS_LOGGING_CATEGORY"]; });
|
|
74012
|
-
|
|
74013
73671
|
/*
|
|
74014
73672
|
* Copyright 2017-2017 Amazon.com, Inc. or its affiliates. All Rights Reserved.
|
|
74015
73673
|
*
|
|
@@ -82244,7 +81902,7 @@ function defaultConflictHandler(conflictData) {
|
|
|
82244
81902
|
}
|
|
82245
81903
|
|
|
82246
81904
|
function defaultErrorHandler(error) {
|
|
82247
|
-
logger.warn(
|
|
81905
|
+
logger.warn(error);
|
|
82248
81906
|
}
|
|
82249
81907
|
|
|
82250
81908
|
function getModelConstructorByModelName(namespaceName, modelName) {
|
|
@@ -82457,32 +82115,24 @@ function () {
|
|
|
82457
82115
|
case 4:
|
|
82458
82116
|
_b.sent();
|
|
82459
82117
|
|
|
82460
|
-
logger.debug('Debug info before sync');
|
|
82461
|
-
return [4
|
|
82462
|
-
/*yield*/
|
|
82463
|
-
, this.storage.logDebugInfo()];
|
|
82464
|
-
|
|
82465
|
-
case 5:
|
|
82466
|
-
_b.sent();
|
|
82467
|
-
|
|
82468
82118
|
return [4
|
|
82469
82119
|
/*yield*/
|
|
82470
82120
|
, checkSchemaVersion(this.storage, schema.version)];
|
|
82471
82121
|
|
|
82472
|
-
case
|
|
82122
|
+
case 5:
|
|
82473
82123
|
_b.sent();
|
|
82474
82124
|
|
|
82475
82125
|
aws_appsync_graphqlEndpoint = this.amplifyConfig.aws_appsync_graphqlEndpoint;
|
|
82476
82126
|
if (!aws_appsync_graphqlEndpoint) return [3
|
|
82477
82127
|
/*break*/
|
|
82478
|
-
,
|
|
82128
|
+
, 7];
|
|
82479
82129
|
logger.debug('GraphQL endpoint available', aws_appsync_graphqlEndpoint);
|
|
82480
82130
|
_a = this;
|
|
82481
82131
|
return [4
|
|
82482
82132
|
/*yield*/
|
|
82483
82133
|
, this.processSyncExpressions()];
|
|
82484
82134
|
|
|
82485
|
-
case
|
|
82135
|
+
case 6:
|
|
82486
82136
|
_a.syncPredicates = _b.sent();
|
|
82487
82137
|
this.sync = new _sync__WEBPACK_IMPORTED_MODULE_7__["SyncEngine"](schema, namespaceResolver, syncClasses, userClasses, this.storage, modelInstanceCreator, this.conflictHandler, this.errorHandler, this.syncPredicates, this.amplifyConfig, this.authModeStrategy);
|
|
82488
82138
|
fullSyncIntervalInMilliseconds = this.fullSyncInterval * 1000 * 60;
|
|
@@ -82500,16 +82150,6 @@ function () {
|
|
|
82500
82150
|
_this.initResolve();
|
|
82501
82151
|
}
|
|
82502
82152
|
|
|
82503
|
-
if (type === _sync__WEBPACK_IMPORTED_MODULE_7__["ControlMessage"].SYNC_ENGINE_SYNC_QUERIES_READY) {
|
|
82504
|
-
logger.debug('Debug info after sync');
|
|
82505
|
-
|
|
82506
|
-
_this.storage.logDebugInfo();
|
|
82507
|
-
}
|
|
82508
|
-
|
|
82509
|
-
logger.debug({
|
|
82510
|
-
event: type,
|
|
82511
|
-
data: data
|
|
82512
|
-
});
|
|
82513
82153
|
_aws_amplify_core__WEBPACK_IMPORTED_MODULE_0__["Hub"].dispatch('datastore', {
|
|
82514
82154
|
event: type,
|
|
82515
82155
|
data: data
|
|
@@ -82523,21 +82163,21 @@ function () {
|
|
|
82523
82163
|
});
|
|
82524
82164
|
return [3
|
|
82525
82165
|
/*break*/
|
|
82526
|
-
,
|
|
82166
|
+
, 8];
|
|
82527
82167
|
|
|
82528
|
-
case
|
|
82168
|
+
case 7:
|
|
82529
82169
|
logger.warn("Data won't be synchronized. No GraphQL endpoint configured. Did you forget `Amplify.configure(awsconfig)`?", {
|
|
82530
82170
|
config: this.amplifyConfig
|
|
82531
82171
|
});
|
|
82532
82172
|
this.initResolve();
|
|
82533
|
-
_b.label =
|
|
82173
|
+
_b.label = 8;
|
|
82534
82174
|
|
|
82535
|
-
case
|
|
82175
|
+
case 8:
|
|
82536
82176
|
return [4
|
|
82537
82177
|
/*yield*/
|
|
82538
82178
|
, this.initialized];
|
|
82539
82179
|
|
|
82540
|
-
case
|
|
82180
|
+
case 9:
|
|
82541
82181
|
_b.sent();
|
|
82542
82182
|
|
|
82543
82183
|
return [2
|
|
@@ -89533,33 +89173,6 @@ function () {
|
|
|
89533
89173
|
});
|
|
89534
89174
|
};
|
|
89535
89175
|
|
|
89536
|
-
StorageClass.prototype.logDebugInfo = function () {
|
|
89537
|
-
return __awaiter(this, void 0, void 0, function () {
|
|
89538
|
-
var results;
|
|
89539
|
-
return __generator(this, function (_a) {
|
|
89540
|
-
switch (_a.label) {
|
|
89541
|
-
case 0:
|
|
89542
|
-
if (!(typeof this.adapter.getDebugInfo === 'function')) return [3
|
|
89543
|
-
/*break*/
|
|
89544
|
-
, 2];
|
|
89545
|
-
return [4
|
|
89546
|
-
/*yield*/
|
|
89547
|
-
, this.adapter.getDebugInfo()];
|
|
89548
|
-
|
|
89549
|
-
case 1:
|
|
89550
|
-
results = _a.sent();
|
|
89551
|
-
logger.debug('DB Debug Info', results);
|
|
89552
|
-
_a.label = 2;
|
|
89553
|
-
|
|
89554
|
-
case 2:
|
|
89555
|
-
return [2
|
|
89556
|
-
/*return*/
|
|
89557
|
-
];
|
|
89558
|
-
}
|
|
89559
|
-
});
|
|
89560
|
-
});
|
|
89561
|
-
};
|
|
89562
|
-
|
|
89563
89176
|
return StorageClass;
|
|
89564
89177
|
}();
|
|
89565
89178
|
|
|
@@ -89665,18 +89278,6 @@ function () {
|
|
|
89665
89278
|
return this.storage.batchSave(modelConstructor, items);
|
|
89666
89279
|
};
|
|
89667
89280
|
|
|
89668
|
-
ExclusiveStorage.prototype.logDebugInfo = function () {
|
|
89669
|
-
return __awaiter(this, void 0, void 0, function () {
|
|
89670
|
-
return __generator(this, function (_a) {
|
|
89671
|
-
return [2
|
|
89672
|
-
/*return*/
|
|
89673
|
-
, this.runExclusive(function (storage) {
|
|
89674
|
-
return storage.logDebugInfo();
|
|
89675
|
-
})];
|
|
89676
|
-
});
|
|
89677
|
-
});
|
|
89678
|
-
};
|
|
89679
|
-
|
|
89680
89281
|
ExclusiveStorage.prototype.init = function () {
|
|
89681
89282
|
return __awaiter(this, void 0, void 0, function () {
|
|
89682
89283
|
return __generator(this, function (_a) {
|
|
@@ -90287,12 +89888,6 @@ function () {
|
|
|
90287
89888
|
isEmpty: !hasMore
|
|
90288
89889
|
}
|
|
90289
89890
|
});
|
|
90290
|
-
|
|
90291
|
-
if (!hasMore) {
|
|
90292
|
-
logger.debug('Debug info after queue drained');
|
|
90293
|
-
|
|
90294
|
-
_this.storage.logDebugInfo();
|
|
90295
|
-
}
|
|
90296
89891
|
})); //#endregion
|
|
90297
89892
|
//#region Merge subscriptions buffer
|
|
90298
89893
|
// TODO: extract to function
|
|
@@ -90316,34 +89911,26 @@ function () {
|
|
|
90316
89911
|
|
|
90317
89912
|
return [3
|
|
90318
89913
|
/*break*/
|
|
90319
|
-
,
|
|
89914
|
+
, 11];
|
|
90320
89915
|
|
|
90321
89916
|
case 10:
|
|
90322
|
-
if (
|
|
90323
|
-
|
|
90324
|
-
|
|
90325
|
-
|
|
90326
|
-
|
|
90327
|
-
|
|
90328
|
-
|
|
90329
|
-
|
|
90330
|
-
|
|
90331
|
-
|
|
90332
|
-
|
|
90333
|
-
|
|
90334
|
-
|
|
90335
|
-
, this.storage.logDebugInfo()];
|
|
90336
|
-
|
|
90337
|
-
case 11:
|
|
90338
|
-
_c.sent();
|
|
89917
|
+
if (!online) {
|
|
89918
|
+
this.online = online;
|
|
89919
|
+
observer.next({
|
|
89920
|
+
type: ControlMessage.SYNC_ENGINE_NETWORK_STATUS,
|
|
89921
|
+
data: {
|
|
89922
|
+
active: this.online
|
|
89923
|
+
}
|
|
89924
|
+
});
|
|
89925
|
+
subscriptions.forEach(function (sub) {
|
|
89926
|
+
return sub.unsubscribe();
|
|
89927
|
+
});
|
|
89928
|
+
subscriptions = [];
|
|
89929
|
+
}
|
|
90339
89930
|
|
|
90340
|
-
|
|
90341
|
-
return sub.unsubscribe();
|
|
90342
|
-
});
|
|
90343
|
-
subscriptions = [];
|
|
90344
|
-
_c.label = 12;
|
|
89931
|
+
_c.label = 11;
|
|
90345
89932
|
|
|
90346
|
-
case
|
|
89933
|
+
case 11:
|
|
90347
89934
|
resolve();
|
|
90348
89935
|
return [2
|
|
90349
89936
|
/*return*/
|
|
@@ -92840,7 +92427,6 @@ function () {
|
|
|
92840
92427
|
/*yield*/
|
|
92841
92428
|
, this.errorHandler({
|
|
92842
92429
|
localModel: this.modelInstanceCreator(modelConstructor, variables.input),
|
|
92843
|
-
modelName: model,
|
|
92844
92430
|
message: error.message,
|
|
92845
92431
|
operation: operation,
|
|
92846
92432
|
errorType: error.errorType,
|