cry-synced-db-client 0.1.214 → 0.1.215

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/index.js CHANGED
@@ -3333,7 +3333,9 @@ var SyncEngine = class {
3333
3333
  items: items.length,
3334
3334
  itemsCumulative: _perCollectionItems.get(collection),
3335
3335
  isNewCollection: isNewColl,
3336
- processingMs: Math.round(_processingMs)
3336
+ processingMs: Math.round(_processingMs),
3337
+ dexieMs: Math.round(stats.dexieMs),
3338
+ inMemMs: Math.round(stats.inMemMs)
3337
3339
  });
3338
3340
  },
3339
3341
  {
@@ -251,6 +251,8 @@ export interface SyncEngineCallbacks {
251
251
  itemsCumulative?: number;
252
252
  isNewCollection?: boolean;
253
253
  processingMs?: number;
254
+ dexieMs?: number;
255
+ inMemMs?: number;
254
256
  }) => void;
255
257
  onServerSyncStart?: (info: {
256
258
  calledFrom?: string;
@@ -680,8 +680,12 @@ export interface SyncedDbConfig {
680
680
  itemsCumulative?: number;
681
681
  /** True only for the first chunk of a new collection */
682
682
  isNewCollection?: boolean;
683
- /** Processing time for this chunk: Dexie save + InMem write (ms) */
683
+ /** Total processing time for this chunk (ms) */
684
684
  processingMs?: number;
685
+ /** Dexie (IndexedDB) write time for this chunk (ms) */
686
+ dexieMs?: number;
687
+ /** InMem (Vuex/dbx) write time for this chunk (ms) */
688
+ inMemMs?: number;
685
689
  }) => void;
686
690
  /**
687
691
  * Callback when per-collection hydration status changes (hydration end,
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "cry-synced-db-client",
3
- "version": "0.1.214",
3
+ "version": "0.1.215",
4
4
  "type": "module",
5
5
  "main": "./dist/index.js",
6
6
  "module": "./dist/index.js",