@arcote.tech/arc 0.0.6 → 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 -4
- 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({}, {
|
|
@@ -832,6 +830,7 @@ class RTCClient {
|
|
|
832
830
|
}
|
|
833
831
|
break;
|
|
834
832
|
case "sync-done":
|
|
833
|
+
window.localStorage.setItem("lastSync", message.date);
|
|
835
834
|
break;
|
|
836
835
|
case "collection-changes":
|
|
837
836
|
const deserializedChanges = deserializeChanges(message.changes, (name) => this.model.getCollection(name));
|
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.",
|