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/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "s3db.js",
3
- "version": "7.3.6",
3
+ "version": "7.3.8",
4
4
  "description": "Use AWS S3, the world's most reliable document storage, as a database with this ORM.",
5
5
  "main": "dist/s3db.cjs.js",
6
6
  "module": "dist/s3db.es.js",
@@ -291,6 +291,12 @@ class BigqueryReplicator extends BaseReplicator {
291
291
  }
292
292
 
293
293
  const success = errors.length === 0;
294
+
295
+ // Log errors if any occurred
296
+ if (errors.length > 0) {
297
+ console.warn(`[BigqueryReplicator] Replication completed with errors for ${resourceName}:`, errors);
298
+ }
299
+
294
300
  this.emit('replicated', {
295
301
  replicator: this.name,
296
302
  resourceName,
@@ -348,6 +354,11 @@ class BigqueryReplicator extends BaseReplicator {
348
354
  }
349
355
  }
350
356
 
357
+ // Log errors if any occurred during batch processing
358
+ if (errors.length > 0) {
359
+ console.warn(`[BigqueryReplicator] Batch replication completed with ${errors.length} error(s) for ${resourceName}:`, errors);
360
+ }
361
+
351
362
  return {
352
363
  success: errors.length === 0,
353
364
  results,
@@ -261,6 +261,12 @@ class PostgresReplicator extends BaseReplicator {
261
261
  }
262
262
  }
263
263
  const success = errors.length === 0;
264
+
265
+ // Log errors if any occurred
266
+ if (errors.length > 0) {
267
+ console.warn(`[PostgresReplicator] Replication completed with errors for ${resourceName}:`, errors);
268
+ }
269
+
264
270
  this.emit('replicated', {
265
271
  replicator: this.name,
266
272
  resourceName,
@@ -314,6 +320,11 @@ class PostgresReplicator extends BaseReplicator {
314
320
  }
315
321
  }
316
322
 
323
+ // Log errors if any occurred during batch processing
324
+ if (errors.length > 0) {
325
+ console.warn(`[PostgresReplicator] Batch replication completed with ${errors.length} error(s) for ${resourceName}:`, errors);
326
+ }
327
+
317
328
  return {
318
329
  success: errors.length === 0,
319
330
  results,
@@ -345,6 +345,11 @@ class S3dbReplicator extends BaseReplicator {
345
345
  }
346
346
  }
347
347
 
348
+ // Log errors if any occurred during batch processing
349
+ if (errors.length > 0) {
350
+ console.warn(`[S3dbReplicator] Batch replication completed with ${errors.length} error(s) for ${resourceName}:`, errors);
351
+ }
352
+
348
353
  this.emit('batch_replicated', {
349
354
  replicator: this.name,
350
355
  resourceName,
@@ -260,6 +260,11 @@ class SqsReplicator extends BaseReplicator {
260
260
  }
261
261
  }
262
262
  }
263
+ // Log errors if any occurred during batch processing
264
+ if (errors.length > 0) {
265
+ console.warn(`[SqsReplicator] Batch replication completed with ${errors.length} error(s) for ${resource}:`, errors);
266
+ }
267
+
263
268
  this.emit('batch_replicated', {
264
269
  replicator: this.name,
265
270
  resource,