@statezero/core 0.1.64 → 0.1.65
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.
|
@@ -1,5 +1,4 @@
|
|
|
1
|
-
export
|
|
2
|
-
declare class ModelStoreRegistry {
|
|
1
|
+
export class ModelStoreRegistry {
|
|
3
2
|
_stores: Map<any, any>;
|
|
4
3
|
syncManager: () => void;
|
|
5
4
|
clear(): void;
|
|
@@ -8,4 +7,4 @@ declare class ModelStoreRegistry {
|
|
|
8
7
|
getEntity(modelClass: any, pk: any): any;
|
|
9
8
|
setEntity(modelClass: any, pk: any, data: any): any;
|
|
10
9
|
}
|
|
11
|
-
export
|
|
10
|
+
export const modelStoreRegistry: ModelStoreRegistry;
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { ModelStore } from '../stores/modelStore.js';
|
|
2
2
|
import { isNil } from 'lodash-es';
|
|
3
|
-
class ModelStoreRegistry {
|
|
3
|
+
export class ModelStoreRegistry {
|
|
4
4
|
constructor() {
|
|
5
5
|
this._stores = new Map();
|
|
6
6
|
this.syncManager = () => { console.warn("SyncManager not set for ModelStoreRegistry"); };
|
|
@@ -22,8 +22,7 @@ export class LiveQueryset {
|
|
|
22
22
|
private getCurrentItems;
|
|
23
23
|
#private;
|
|
24
24
|
}
|
|
25
|
-
export
|
|
26
|
-
declare class QuerysetStoreRegistry {
|
|
25
|
+
export class QuerysetStoreRegistry {
|
|
27
26
|
_stores: Map<any, any>;
|
|
28
27
|
_tempStores: WeakMap<object, any>;
|
|
29
28
|
followingQuerysets: Map<any, any>;
|
|
@@ -65,5 +64,5 @@ declare class QuerysetStoreRegistry {
|
|
|
65
64
|
*/
|
|
66
65
|
getAllStoresForModel(ModelClass: any): any[];
|
|
67
66
|
}
|
|
67
|
+
export const querysetStoreRegistry: QuerysetStoreRegistry;
|
|
68
68
|
import { QuerysetStoreGraph } from './querysetStoreGraph.js';
|
|
69
|
-
export {};
|
|
@@ -117,7 +117,7 @@ export class LiveQueryset {
|
|
|
117
117
|
}
|
|
118
118
|
}
|
|
119
119
|
_LiveQueryset_queryset = new WeakMap(), _LiveQueryset_ModelClass = new WeakMap(), _LiveQueryset_proxy = new WeakMap(), _LiveQueryset_array = new WeakMap();
|
|
120
|
-
class QuerysetStoreRegistry {
|
|
120
|
+
export class QuerysetStoreRegistry {
|
|
121
121
|
constructor() {
|
|
122
122
|
this._stores = new Map(); // Map<semanticKey, Store>
|
|
123
123
|
this._tempStores = new WeakMap(); // WeakMap<Queryset, Store>
|
package/package.json
CHANGED