@arcote.tech/arc 0.0.5 → 0.0.7
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 -5
- package/package.json +1 -1
package/dist/index.js
CHANGED
|
@@ -682,10 +682,8 @@ class ArcModel {
|
|
|
682
682
|
return query;
|
|
683
683
|
}
|
|
684
684
|
async runQuery(query) {
|
|
685
|
-
|
|
686
|
-
|
|
687
|
-
query.run(dbAdapter, this.changes$);
|
|
688
|
-
}
|
|
685
|
+
const dbAdapter = await this.dbAdapterPromise;
|
|
686
|
+
query.run(dbAdapter, this.changes$);
|
|
689
687
|
}
|
|
690
688
|
commands() {
|
|
691
689
|
return new Proxy({}, {
|
|
@@ -819,7 +817,7 @@ class RTCClient {
|
|
|
819
817
|
console.error(`Collection ${collection3} not found`);
|
|
820
818
|
return;
|
|
821
819
|
}
|
|
822
|
-
const deserializedItems = items.map((item) => c.
|
|
820
|
+
const deserializedItems = items.map((item) => c.deserialize(item));
|
|
823
821
|
this.model.executeCommand(async (ctx) => {
|
|
824
822
|
for (const item of deserializedItems) {
|
|
825
823
|
const id3 = item._id;
|
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.7",
|
|
8
8
|
"private": false,
|
|
9
9
|
"author": "Przemysław Krasiński [arcote.tech]",
|
|
10
10
|
"description": "Arc is a framework designed to align code closely with business logic, streamlining development and enhancing productivity.",
|