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 CHANGED
@@ -9102,6 +9102,9 @@ class BigqueryReplicator extends base_replicator_class_default {
9102
9102
  }
9103
9103
  }
9104
9104
  const success = errors.length === 0;
9105
+ if (errors.length > 0) {
9106
+ console.warn(`[BigqueryReplicator] Replication completed with errors for ${resourceName}:`, errors);
9107
+ }
9105
9108
  this.emit("replicated", {
9106
9109
  replicator: this.name,
9107
9110
  resourceName,
@@ -9152,6 +9155,9 @@ class BigqueryReplicator extends base_replicator_class_default {
9152
9155
  errors.push({ id: record.id, error: err.message });
9153
9156
  }
9154
9157
  }
9158
+ if (errors.length > 0) {
9159
+ console.warn(`[BigqueryReplicator] Batch replication completed with ${errors.length} error(s) for ${resourceName}:`, errors);
9160
+ }
9155
9161
  return {
9156
9162
  success: errors.length === 0,
9157
9163
  results,
@@ -9382,6 +9388,9 @@ class PostgresReplicator extends base_replicator_class_default {
9382
9388
  }
9383
9389
  }
9384
9390
  const success = errors.length === 0;
9391
+ if (errors.length > 0) {
9392
+ console.warn(`[PostgresReplicator] Replication completed with errors for ${resourceName}:`, errors);
9393
+ }
9385
9394
  this.emit("replicated", {
9386
9395
  replicator: this.name,
9387
9396
  resourceName,
@@ -9432,6 +9441,9 @@ class PostgresReplicator extends base_replicator_class_default {
9432
9441
  errors.push({ id: record.id, error: err.message });
9433
9442
  }
9434
9443
  }
9444
+ if (errors.length > 0) {
9445
+ console.warn(`[PostgresReplicator] Batch replication completed with ${errors.length} error(s) for ${resourceName}:`, errors);
9446
+ }
9435
9447
  return {
9436
9448
  success: errors.length === 0,
9437
9449
  results,
@@ -13182,7 +13194,7 @@ class Database extends EventEmitter {
13182
13194
  super();
13183
13195
  this.version = "1";
13184
13196
  this.s3dbVersion = (() => {
13185
- const [ok, err, version] = try_fn_default(() => true ? "7.3.6" : "latest");
13197
+ const [ok, err, version] = try_fn_default(() => true ? "7.3.7" : "latest");
13186
13198
  return ok ? version : "latest";
13187
13199
  })();
13188
13200
  this.resources = {};
@@ -13924,6 +13936,9 @@ class S3dbReplicator extends base_replicator_class_default {
13924
13936
  errors.push({ id: record.id, error: err.message });
13925
13937
  }
13926
13938
  }
13939
+ if (errors.length > 0) {
13940
+ console.warn(`[S3dbReplicator] Batch replication completed with ${errors.length} error(s) for ${resourceName}:`, errors);
13941
+ }
13927
13942
  this.emit("batch_replicated", {
13928
13943
  replicator: this.name,
13929
13944
  resourceName,
@@ -14221,6 +14236,9 @@ class SqsReplicator extends base_replicator_class_default {
14221
14236
  }
14222
14237
  }
14223
14238
  }
14239
+ if (errors.length > 0) {
14240
+ console.warn(`[SqsReplicator] Batch replication completed with ${errors.length} error(s) for ${resource}:`, errors);
14241
+ }
14224
14242
  this.emit("batch_replicated", {
14225
14243
  replicator: this.name,
14226
14244
  resource,