@workglow/indexeddb 0.3.22 → 0.3.23
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/storage/node.js
CHANGED
|
@@ -1293,6 +1293,14 @@ class IndexedDbTabularStorage extends BaseTabularStorage {
|
|
|
1293
1293
|
}
|
|
1294
1294
|
});
|
|
1295
1295
|
}
|
|
1296
|
+
async updateWhere(match, patch) {
|
|
1297
|
+
this.assertPatchKeepsPrimaryKey(patch);
|
|
1298
|
+
const matches = await this.query(match) ?? [];
|
|
1299
|
+
if (matches.length === 0)
|
|
1300
|
+
return;
|
|
1301
|
+
const updated = { ...matches[0], ...patch };
|
|
1302
|
+
return this.put(updated);
|
|
1303
|
+
}
|
|
1296
1304
|
getEqualityCriterionValue(criteria, column) {
|
|
1297
1305
|
const criterion = criteria[column];
|
|
1298
1306
|
if (criterion === undefined)
|
|
@@ -1673,4 +1681,4 @@ export {
|
|
|
1673
1681
|
IDB_KV_REPOSITORY
|
|
1674
1682
|
};
|
|
1675
1683
|
|
|
1676
|
-
//# debugId=
|
|
1684
|
+
//# debugId=E13F90B4076DCB4E64756E2164756E21
|