@aws-amplify/datastore 3.7.5 → 3.7.6-unstable.4
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 +8 -10
- package/dist/aws-amplify-datastore.js.map +1 -1
- package/dist/aws-amplify-datastore.min.js +2 -2
- package/dist/aws-amplify-datastore.min.js.map +1 -1
- package/lib/datastore/datastore.js +7 -5
- package/lib/datastore/datastore.js.map +1 -1
- package/lib/sync/index.d.ts +1 -3
- package/lib/sync/index.js +1 -3
- package/lib/sync/index.js.map +1 -1
- package/lib-esm/datastore/datastore.js +7 -5
- package/lib-esm/datastore/datastore.js.map +1 -1
- package/lib-esm/sync/index.d.ts +1 -3
- package/lib-esm/sync/index.js +1 -3
- package/lib-esm/sync/index.js.map +1 -1
- package/package.json +7 -7
- package/src/datastore/datastore.ts +6 -6
- package/src/sync/index.ts +23 -32
|
@@ -70852,7 +70852,7 @@ var getAmplifyUserAgent = function getAmplifyUserAgent() {
|
|
|
70852
70852
|
__webpack_require__.r(__webpack_exports__);
|
|
70853
70853
|
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "version", function() { return version; });
|
|
70854
70854
|
// generated by genversion
|
|
70855
|
-
var version = '4.3.
|
|
70855
|
+
var version = '4.3.13';
|
|
70856
70856
|
|
|
70857
70857
|
/***/ }),
|
|
70858
70858
|
|
|
@@ -82304,7 +82304,7 @@ function () {
|
|
|
82304
82304
|
|
|
82305
82305
|
case 6:
|
|
82306
82306
|
_a.syncPredicates = _b.sent();
|
|
82307
|
-
this.sync = new _sync__WEBPACK_IMPORTED_MODULE_7__["SyncEngine"](schema, namespaceResolver, syncClasses, userClasses, this.storage, modelInstanceCreator, this.
|
|
82307
|
+
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);
|
|
82308
82308
|
fullSyncIntervalInMilliseconds = this.fullSyncInterval * 1000 * 60;
|
|
82309
82309
|
syncSubscription = this.sync.start({
|
|
82310
82310
|
fullSyncInterval: fullSyncIntervalInMilliseconds
|
|
@@ -82912,16 +82912,16 @@ function () {
|
|
|
82912
82912
|
|
|
82913
82913
|
|
|
82914
82914
|
_this.amplifyConfig.authProviders = configDataStore && configDataStore.authProviders || configAuthProviders;
|
|
82915
|
-
_this.syncExpressions = configDataStore && configDataStore.syncExpressions || _this.syncExpressions
|
|
82916
|
-
_this.maxRecordsToSync = configDataStore && configDataStore.maxRecordsToSync || configMaxRecordsToSync || 10000; // store on config object, so that Sync, Subscription, and Mutation processors can have access
|
|
82915
|
+
_this.syncExpressions = configDataStore && configDataStore.syncExpressions || configSyncExpressions || _this.syncExpressions;
|
|
82916
|
+
_this.maxRecordsToSync = configDataStore && configDataStore.maxRecordsToSync || configMaxRecordsToSync || _this.maxRecordsToSync || 10000; // store on config object, so that Sync, Subscription, and Mutation processors can have access
|
|
82917
82917
|
|
|
82918
82918
|
_this.amplifyConfig.maxRecordsToSync = _this.maxRecordsToSync;
|
|
82919
|
-
_this.syncPageSize = configDataStore && configDataStore.syncPageSize || configSyncPageSize || 1000; // store on config object, so that Sync, Subscription, and Mutation processors can have access
|
|
82919
|
+
_this.syncPageSize = configDataStore && configDataStore.syncPageSize || configSyncPageSize || _this.syncPageSize || 1000; // store on config object, so that Sync, Subscription, and Mutation processors can have access
|
|
82920
82920
|
|
|
82921
82921
|
_this.amplifyConfig.syncPageSize = _this.syncPageSize;
|
|
82922
|
-
_this.fullSyncInterval = configDataStore && configDataStore.fullSyncInterval || _this.fullSyncInterval ||
|
|
82922
|
+
_this.fullSyncInterval = configDataStore && configDataStore.fullSyncInterval || configFullSyncInterval || _this.fullSyncInterval || 24 * 60; // 1 day
|
|
82923
82923
|
|
|
82924
|
-
_this.storageAdapter = configDataStore && configDataStore.storageAdapter || _this.storageAdapter ||
|
|
82924
|
+
_this.storageAdapter = configDataStore && configDataStore.storageAdapter || configStorageAdapter || _this.storageAdapter || undefined;
|
|
82925
82925
|
_this.sessionId = _this.retrieveSessionId();
|
|
82926
82926
|
};
|
|
82927
82927
|
|
|
@@ -89836,7 +89836,7 @@ var ControlMessage;
|
|
|
89836
89836
|
var SyncEngine =
|
|
89837
89837
|
/** @class */
|
|
89838
89838
|
function () {
|
|
89839
|
-
function SyncEngine(schema, namespaceResolver, modelClasses, userModelClasses, storage, modelInstanceCreator,
|
|
89839
|
+
function SyncEngine(schema, namespaceResolver, modelClasses, userModelClasses, storage, modelInstanceCreator, conflictHandler, errorHandler, syncPredicates, amplifyConfig, authModeStrategy) {
|
|
89840
89840
|
if (amplifyConfig === void 0) {
|
|
89841
89841
|
amplifyConfig = {};
|
|
89842
89842
|
}
|
|
@@ -89847,8 +89847,6 @@ function () {
|
|
|
89847
89847
|
this.userModelClasses = userModelClasses;
|
|
89848
89848
|
this.storage = storage;
|
|
89849
89849
|
this.modelInstanceCreator = modelInstanceCreator;
|
|
89850
|
-
this.maxRecordsToSync = maxRecordsToSync;
|
|
89851
|
-
this.syncPageSize = syncPageSize;
|
|
89852
89850
|
this.syncPredicates = syncPredicates;
|
|
89853
89851
|
this.amplifyConfig = amplifyConfig;
|
|
89854
89852
|
this.authModeStrategy = authModeStrategy;
|