s3db.js 7.3.6 → 7.3.8
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/s3db.cjs.js +19 -1
- package/dist/s3db.cjs.min.js +1 -1
- package/dist/s3db.es.js +19 -1
- package/dist/s3db.es.min.js +1 -1
- package/dist/s3db.iife.js +19 -1
- package/dist/s3db.iife.min.js +1 -1
- package/package.json +1 -1
- package/src/plugins/replicators/bigquery-replicator.class.js +11 -0
- package/src/plugins/replicators/postgres-replicator.class.js +11 -0
- package/src/plugins/replicators/s3db-replicator.class.js +5 -0
- package/src/plugins/replicators/sqs-replicator.class.js +5 -0
package/dist/s3db.es.js
CHANGED
|
@@ -9098,6 +9098,9 @@ class BigqueryReplicator extends base_replicator_class_default {
|
|
|
9098
9098
|
}
|
|
9099
9099
|
}
|
|
9100
9100
|
const success = errors.length === 0;
|
|
9101
|
+
if (errors.length > 0) {
|
|
9102
|
+
console.warn(`[BigqueryReplicator] Replication completed with errors for ${resourceName}:`, errors);
|
|
9103
|
+
}
|
|
9101
9104
|
this.emit("replicated", {
|
|
9102
9105
|
replicator: this.name,
|
|
9103
9106
|
resourceName,
|
|
@@ -9148,6 +9151,9 @@ class BigqueryReplicator extends base_replicator_class_default {
|
|
|
9148
9151
|
errors.push({ id: record.id, error: err.message });
|
|
9149
9152
|
}
|
|
9150
9153
|
}
|
|
9154
|
+
if (errors.length > 0) {
|
|
9155
|
+
console.warn(`[BigqueryReplicator] Batch replication completed with ${errors.length} error(s) for ${resourceName}:`, errors);
|
|
9156
|
+
}
|
|
9151
9157
|
return {
|
|
9152
9158
|
success: errors.length === 0,
|
|
9153
9159
|
results,
|
|
@@ -9378,6 +9384,9 @@ class PostgresReplicator extends base_replicator_class_default {
|
|
|
9378
9384
|
}
|
|
9379
9385
|
}
|
|
9380
9386
|
const success = errors.length === 0;
|
|
9387
|
+
if (errors.length > 0) {
|
|
9388
|
+
console.warn(`[PostgresReplicator] Replication completed with errors for ${resourceName}:`, errors);
|
|
9389
|
+
}
|
|
9381
9390
|
this.emit("replicated", {
|
|
9382
9391
|
replicator: this.name,
|
|
9383
9392
|
resourceName,
|
|
@@ -9428,6 +9437,9 @@ class PostgresReplicator extends base_replicator_class_default {
|
|
|
9428
9437
|
errors.push({ id: record.id, error: err.message });
|
|
9429
9438
|
}
|
|
9430
9439
|
}
|
|
9440
|
+
if (errors.length > 0) {
|
|
9441
|
+
console.warn(`[PostgresReplicator] Batch replication completed with ${errors.length} error(s) for ${resourceName}:`, errors);
|
|
9442
|
+
}
|
|
9431
9443
|
return {
|
|
9432
9444
|
success: errors.length === 0,
|
|
9433
9445
|
results,
|
|
@@ -13178,7 +13190,7 @@ class Database extends EventEmitter {
|
|
|
13178
13190
|
super();
|
|
13179
13191
|
this.version = "1";
|
|
13180
13192
|
this.s3dbVersion = (() => {
|
|
13181
|
-
const [ok, err, version] = try_fn_default(() => true ? "7.3.
|
|
13193
|
+
const [ok, err, version] = try_fn_default(() => true ? "7.3.7" : "latest");
|
|
13182
13194
|
return ok ? version : "latest";
|
|
13183
13195
|
})();
|
|
13184
13196
|
this.resources = {};
|
|
@@ -13920,6 +13932,9 @@ class S3dbReplicator extends base_replicator_class_default {
|
|
|
13920
13932
|
errors.push({ id: record.id, error: err.message });
|
|
13921
13933
|
}
|
|
13922
13934
|
}
|
|
13935
|
+
if (errors.length > 0) {
|
|
13936
|
+
console.warn(`[S3dbReplicator] Batch replication completed with ${errors.length} error(s) for ${resourceName}:`, errors);
|
|
13937
|
+
}
|
|
13923
13938
|
this.emit("batch_replicated", {
|
|
13924
13939
|
replicator: this.name,
|
|
13925
13940
|
resourceName,
|
|
@@ -14217,6 +14232,9 @@ class SqsReplicator extends base_replicator_class_default {
|
|
|
14217
14232
|
}
|
|
14218
14233
|
}
|
|
14219
14234
|
}
|
|
14235
|
+
if (errors.length > 0) {
|
|
14236
|
+
console.warn(`[SqsReplicator] Batch replication completed with ${errors.length} error(s) for ${resource}:`, errors);
|
|
14237
|
+
}
|
|
14220
14238
|
this.emit("batch_replicated", {
|
|
14221
14239
|
replicator: this.name,
|
|
14222
14240
|
resource,
|