@arcote.tech/arc-react 0.0.28 → 0.0.29
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 +3 -2
- package/package.json +1 -1
package/dist/index.js
CHANGED
|
@@ -70,6 +70,8 @@ class IDBReadTransaction {
|
|
|
70
70
|
const keyPath = idbIndex.keyPath;
|
|
71
71
|
let keyRange;
|
|
72
72
|
const getKey = (obj) => {
|
|
73
|
+
if (!obj)
|
|
74
|
+
return;
|
|
73
75
|
const key = keyPath.map((key2) => obj[key2]);
|
|
74
76
|
if (key.some((value) => value === undefined))
|
|
75
77
|
return;
|
|
@@ -91,7 +93,6 @@ class IDBReadTransaction {
|
|
|
91
93
|
} else {
|
|
92
94
|
keyRange = IDBKeyRange.only(simpleKey);
|
|
93
95
|
}
|
|
94
|
-
console.log(keyRange);
|
|
95
96
|
const result = idbIndex.getAll(keyRange);
|
|
96
97
|
result.onsuccess = (e) => {
|
|
97
98
|
resolve(e.target.result);
|
|
@@ -292,4 +293,4 @@ export {
|
|
|
292
293
|
formResolver
|
|
293
294
|
};
|
|
294
295
|
|
|
295
|
-
//# debugId=
|
|
296
|
+
//# debugId=EB08DA6873B8C68E64756E2164756E21
|
package/package.json
CHANGED
|
@@ -4,7 +4,7 @@
|
|
|
4
4
|
"main": "dist/index.js",
|
|
5
5
|
"types": "dist/index.d.ts",
|
|
6
6
|
"type": "module",
|
|
7
|
-
"version": "0.0.
|
|
7
|
+
"version": "0.0.29",
|
|
8
8
|
"private": false,
|
|
9
9
|
"author": "Przemysław Krasiński [arcote.tech]",
|
|
10
10
|
"description": "React client for the Arc framework, providing utilities for querying data and executing commands, enhancing the development of reactive and efficient user interfaces.",
|