owservable 0.8.40 → 0.8.41
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/lib/_enums/store.type.enum.d.ts +6 -6
- package/lib/_enums/store.type.enum.js +9 -9
- package/lib/_types/connection.manager.refresh.type.d.ts +9 -9
- package/lib/_types/connection.manager.refresh.type.js +2 -2
- package/lib/_types/cronjob.type.d.ts +7 -7
- package/lib/_types/cronjob.type.js +2 -2
- package/lib/_types/store.scope.type.d.ts +2 -2
- package/lib/_types/store.scope.type.js +2 -2
- package/lib/_types/store.subscription.config.type.d.ts +15 -15
- package/lib/_types/store.subscription.config.type.js +2 -2
- package/lib/_types/store.subscription.update.type.d.ts +9 -9
- package/lib/_types/store.subscription.update.type.js +2 -2
- package/lib/_types/subscription.methods.type.d.ts +6 -6
- package/lib/_types/subscription.methods.type.js +2 -2
- package/lib/_types/watcher.type.d.ts +6 -5
- package/lib/_types/watcher.type.js +2 -2
- package/lib/_types/worker.type.d.ts +5 -5
- package/lib/_types/worker.type.js +2 -2
- package/lib/auth/i.connection.manager.d.ts +9 -9
- package/lib/auth/i.connection.manager.js +2 -2
- package/lib/functions/action/add.action.cronjobs.d.ts +1 -1
- package/lib/functions/action/add.action.cronjobs.js +25 -25
- package/lib/functions/action/add.action.watchers.d.ts +1 -1
- package/lib/functions/action/add.action.watchers.js +22 -22
- package/lib/functions/action/add.action.workers.d.ts +1 -1
- package/lib/functions/action/add.action.workers.js +22 -22
- package/lib/functions/execute/execute.cronjob.d.ts +3 -3
- package/lib/functions/execute/execute.cronjob.js +12 -12
- package/lib/functions/execute/execute.on.files.recursively.d.ts +2 -2
- package/lib/functions/execute/execute.on.files.recursively.js +17 -17
- package/lib/functions/execute/execute.processes.in.folder.d.ts +2 -2
- package/lib/functions/execute/execute.processes.in.folder.js +10 -10
- package/lib/functions/execute/execute.watcher.d.ts +3 -3
- package/lib/functions/execute/execute.watcher.js +16 -11
- package/lib/functions/execute/execute.watcher.js.map +1 -1
- package/lib/functions/execute/execute.worker.d.ts +3 -3
- package/lib/functions/execute/execute.worker.js +11 -11
- package/lib/functions/initiate.cronjobs.d.ts +2 -2
- package/lib/functions/initiate.cronjobs.js +8 -8
- package/lib/functions/initiate.watchers.d.ts +2 -2
- package/lib/functions/initiate.watchers.js +8 -8
- package/lib/functions/initiate.workers.d.ts +2 -2
- package/lib/functions/initiate.workers.js +8 -8
- package/lib/middleware/data.middleware.map.d.ts +7 -7
- package/lib/middleware/data.middleware.map.js +18 -18
- package/lib/middleware/data.middleware.map.js.map +1 -1
- package/lib/mongodb/collections.models.map.d.ts +8 -8
- package/lib/mongodb/collections.models.map.js +22 -22
- package/lib/mongodb/collections.models.map.js.map +1 -1
- package/lib/mongodb/functions/index/add.both.indices.to.attributes.d.ts +3 -3
- package/lib/mongodb/functions/index/add.both.indices.to.attributes.js +8 -8
- package/lib/mongodb/functions/index/add.down.indices.to.attributes.d.ts +3 -3
- package/lib/mongodb/functions/index/add.down.indices.to.attributes.js +5 -5
- package/lib/mongodb/functions/index/add.index.to.attributes.d.ts +3 -3
- package/lib/mongodb/functions/index/add.index.to.attributes.js +11 -11
- package/lib/mongodb/functions/index/add.up.and.down.indices.to.attributes.d.ts +3 -3
- package/lib/mongodb/functions/index/add.up.and.down.indices.to.attributes.js +9 -9
- package/lib/mongodb/functions/index/add.up.indices.to.attributes.d.ts +3 -3
- package/lib/mongodb/functions/index/add.up.indices.to.attributes.js +5 -5
- package/lib/mongodb/functions/observable.database.d.ts +3 -3
- package/lib/mongodb/functions/observable.database.js +22 -22
- package/lib/mongodb/functions/observable.model.d.ts +4 -4
- package/lib/mongodb/functions/observable.model.js +41 -41
- package/lib/mongodb/functions/process.models.d.ts +2 -2
- package/lib/mongodb/functions/process.models.js +40 -40
- package/lib/mongodb/mongodb.connector.d.ts +7 -7
- package/lib/mongodb/mongodb.connector.js +51 -51
- package/lib/owservable.client.d.ts +23 -23
- package/lib/owservable.client.js +162 -162
- package/lib/owservable.d.ts +41 -41
- package/lib/owservable.js +63 -63
- package/lib/store/a.store.d.ts +37 -37
- package/lib/store/a.store.js +126 -126
- package/lib/store/collection.store.d.ts +8 -8
- package/lib/store/collection.store.js +111 -111
- package/lib/store/count.store.d.ts +7 -7
- package/lib/store/count.store.js +46 -46
- package/lib/store/document.store.d.ts +12 -12
- package/lib/store/document.store.js +134 -134
- package/lib/store/factories/store.factory.d.ts +4 -4
- package/lib/store/factories/store.factory.js +15 -15
- package/package.json +8 -8
|
@@ -1,16 +1,16 @@
|
|
|
1
|
-
'use strict';
|
|
2
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
const count_store_1 = require("../count.store");
|
|
4
|
-
const document_store_1 = require("../document.store");
|
|
5
|
-
const collection_store_1 = require("../collection.store");
|
|
6
|
-
const collections_models_map_1 = require("../../mongodb/collections.models.map");
|
|
7
|
-
const storeFactory = (scope, observe, target) => {
|
|
8
|
-
const model = collections_models_map_1.default.getModelByCollection(observe);
|
|
9
|
-
if (scope === 'many')
|
|
10
|
-
return new collection_store_1.default(model, target);
|
|
11
|
-
if (scope === 'count')
|
|
12
|
-
return new count_store_1.default(model, target);
|
|
13
|
-
return new document_store_1.default(model, target);
|
|
14
|
-
};
|
|
15
|
-
exports.default = storeFactory;
|
|
1
|
+
'use strict';
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
const count_store_1 = require("../count.store");
|
|
4
|
+
const document_store_1 = require("../document.store");
|
|
5
|
+
const collection_store_1 = require("../collection.store");
|
|
6
|
+
const collections_models_map_1 = require("../../mongodb/collections.models.map");
|
|
7
|
+
const storeFactory = (scope, observe, target) => {
|
|
8
|
+
const model = collections_models_map_1.default.getModelByCollection(observe);
|
|
9
|
+
if (scope === 'many')
|
|
10
|
+
return new collection_store_1.default(model, target);
|
|
11
|
+
if (scope === 'count')
|
|
12
|
+
return new count_store_1.default(model, target);
|
|
13
|
+
return new document_store_1.default(model, target);
|
|
14
|
+
};
|
|
15
|
+
exports.default = storeFactory;
|
|
16
16
|
//# sourceMappingURL=store.factory.js.map
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "owservable",
|
|
3
|
-
"version": "0.8.
|
|
3
|
+
"version": "0.8.41",
|
|
4
4
|
"description": "owservable backend",
|
|
5
5
|
"engines": {
|
|
6
6
|
"node": ">=16"
|
|
@@ -34,10 +34,10 @@
|
|
|
34
34
|
"srctree": "dir src /s /b > srctree.txt"
|
|
35
35
|
},
|
|
36
36
|
"dependencies": {
|
|
37
|
-
"@owservable/actions": "^0.0
|
|
38
|
-
"@owservable/folders": "^0.0
|
|
39
|
-
"@types/lodash": "^4.14.
|
|
40
|
-
"@types/node": "^18.
|
|
37
|
+
"@owservable/actions": "^0.1.0",
|
|
38
|
+
"@owservable/folders": "^0.1.0",
|
|
39
|
+
"@types/lodash": "^4.14.192",
|
|
40
|
+
"@types/node": "^18.15.11",
|
|
41
41
|
"@types/node-cron": "^3.0.7",
|
|
42
42
|
"deprecated-decorator": "^0.1.6",
|
|
43
43
|
"jsondiffpatch": "^0.4.1",
|
|
@@ -57,7 +57,7 @@
|
|
|
57
57
|
"coveralls": "^3.0.9",
|
|
58
58
|
"mocha": "^10.2.0",
|
|
59
59
|
"nyc": "^15.1.0",
|
|
60
|
-
"prettier": "^2.8.
|
|
60
|
+
"prettier": "^2.8.7",
|
|
61
61
|
"rewire": "^6.0.0",
|
|
62
62
|
"sonarjs": "^1.0.0",
|
|
63
63
|
"source-map-support": "^0.5.21",
|
|
@@ -66,7 +66,7 @@
|
|
|
66
66
|
"tslint-config-prettier": "^1.18.0",
|
|
67
67
|
"tslint-etc": "^1.13.7",
|
|
68
68
|
"tslint-no-unused-expression-chai": "^0.1.4",
|
|
69
|
-
"typedoc": "^0.
|
|
70
|
-
"typescript": "^
|
|
69
|
+
"typedoc": "^0.24.1",
|
|
70
|
+
"typescript": "^5.0.4"
|
|
71
71
|
}
|
|
72
72
|
}
|