@roc-db/indexed-db 0.2.0-pre.23 → 0.2.0-pre.25
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
|
@@ -32,7 +32,7 @@ __export(exports_functions, {
|
|
|
32
32
|
|
|
33
33
|
// src/functions/readEntity.ts
|
|
34
34
|
import { DELETED_IN_CHANGE_SET_SYMBOL } from "roc-db";
|
|
35
|
-
var readEntity = (txn, ref) => {
|
|
35
|
+
var readEntity = async (txn, ref) => {
|
|
36
36
|
if (txn.request.changeSetRef) {
|
|
37
37
|
const doc = txn.engineOpts.changeSet.entities.get(ref);
|
|
38
38
|
if (doc === DELETED_IN_CHANGE_SET_SYMBOL)
|
|
@@ -275,7 +275,7 @@ var patchEntity = async (txn, ref, { data = {}, children = {}, parents = {}, anc
|
|
|
275
275
|
}
|
|
276
276
|
};
|
|
277
277
|
// src/functions/readMutation.ts
|
|
278
|
-
var readMutation = (engineOpts, ref) => {
|
|
278
|
+
var readMutation = async (engineOpts, ref) => {
|
|
279
279
|
const objectStore = engineOpts.txn.objectStore("mutations");
|
|
280
280
|
const request = objectStore.get(ref);
|
|
281
281
|
return new Promise((resolve, reject) => {
|
|
@@ -289,7 +289,7 @@ var readMutation = (engineOpts, ref) => {
|
|
|
289
289
|
});
|
|
290
290
|
};
|
|
291
291
|
// src/functions/saveMutation.ts
|
|
292
|
-
var saveMutation = (txn, finalizedMutation) => {
|
|
292
|
+
var saveMutation = async (txn, finalizedMutation) => {
|
|
293
293
|
const objectStore = txn.engineOpts.txn.objectStore("mutations");
|
|
294
294
|
let request;
|
|
295
295
|
if (finalizedMutation.debounceCount > 0) {
|
|
@@ -1 +1 @@
|
|
|
1
|
-
export declare const readEntity: (txn: any, ref: any) => any
|
|
1
|
+
export declare const readEntity: (txn: any, ref: any) => Promise<any>;
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@roc-db/indexed-db",
|
|
3
|
-
"version": "0.2.0-pre.
|
|
3
|
+
"version": "0.2.0-pre.25",
|
|
4
4
|
"type": "module",
|
|
5
5
|
"exports": {
|
|
6
6
|
".": {
|
|
@@ -14,7 +14,7 @@
|
|
|
14
14
|
"sideEffects": false,
|
|
15
15
|
"dependencies": {},
|
|
16
16
|
"peerDependencies": {
|
|
17
|
-
"roc-db": "0.2.0-pre.
|
|
17
|
+
"roc-db": "0.2.0-pre.25",
|
|
18
18
|
"zod": "^3.0.0"
|
|
19
19
|
},
|
|
20
20
|
"keywords": [],
|