@pisell/pisellos 2.2.87 → 2.2.88
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.
|
@@ -1175,7 +1175,7 @@ export var ProductsModule = /*#__PURE__*/function (_BaseModule) {
|
|
|
1175
1175
|
return this.dbManager.clear(INDEXDB_STORE_NAME);
|
|
1176
1176
|
case 8:
|
|
1177
1177
|
_context16.next = 10;
|
|
1178
|
-
return this.dbManager.
|
|
1178
|
+
return this.dbManager.bulkUpdate(INDEXDB_STORE_NAME, products);
|
|
1179
1179
|
case 10:
|
|
1180
1180
|
perfMark('saveProductsToIndexDB', performance.now() - t0, {
|
|
1181
1181
|
count: products.length
|
|
@@ -673,7 +673,7 @@ var ProductsModule = class extends import_BaseModule.BaseModule {
|
|
|
673
673
|
try {
|
|
674
674
|
const t0 = performance.now();
|
|
675
675
|
await this.dbManager.clear(INDEXDB_STORE_NAME);
|
|
676
|
-
await this.dbManager.
|
|
676
|
+
await this.dbManager.bulkUpdate(INDEXDB_STORE_NAME, products);
|
|
677
677
|
(0, import_product.perfMark)("saveProductsToIndexDB", performance.now() - t0, { count: products.length });
|
|
678
678
|
console.log(
|
|
679
679
|
`[Products] 已将 ${products.length} 个商品平铺保存到 IndexDB`
|