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.
Files changed (82) hide show
  1. package/lib/_enums/store.type.enum.d.ts +6 -6
  2. package/lib/_enums/store.type.enum.js +9 -9
  3. package/lib/_types/connection.manager.refresh.type.d.ts +9 -9
  4. package/lib/_types/connection.manager.refresh.type.js +2 -2
  5. package/lib/_types/cronjob.type.d.ts +7 -7
  6. package/lib/_types/cronjob.type.js +2 -2
  7. package/lib/_types/store.scope.type.d.ts +2 -2
  8. package/lib/_types/store.scope.type.js +2 -2
  9. package/lib/_types/store.subscription.config.type.d.ts +15 -15
  10. package/lib/_types/store.subscription.config.type.js +2 -2
  11. package/lib/_types/store.subscription.update.type.d.ts +9 -9
  12. package/lib/_types/store.subscription.update.type.js +2 -2
  13. package/lib/_types/subscription.methods.type.d.ts +6 -6
  14. package/lib/_types/subscription.methods.type.js +2 -2
  15. package/lib/_types/watcher.type.d.ts +6 -5
  16. package/lib/_types/watcher.type.js +2 -2
  17. package/lib/_types/worker.type.d.ts +5 -5
  18. package/lib/_types/worker.type.js +2 -2
  19. package/lib/auth/i.connection.manager.d.ts +9 -9
  20. package/lib/auth/i.connection.manager.js +2 -2
  21. package/lib/functions/action/add.action.cronjobs.d.ts +1 -1
  22. package/lib/functions/action/add.action.cronjobs.js +25 -25
  23. package/lib/functions/action/add.action.watchers.d.ts +1 -1
  24. package/lib/functions/action/add.action.watchers.js +22 -22
  25. package/lib/functions/action/add.action.workers.d.ts +1 -1
  26. package/lib/functions/action/add.action.workers.js +22 -22
  27. package/lib/functions/execute/execute.cronjob.d.ts +3 -3
  28. package/lib/functions/execute/execute.cronjob.js +12 -12
  29. package/lib/functions/execute/execute.on.files.recursively.d.ts +2 -2
  30. package/lib/functions/execute/execute.on.files.recursively.js +17 -17
  31. package/lib/functions/execute/execute.processes.in.folder.d.ts +2 -2
  32. package/lib/functions/execute/execute.processes.in.folder.js +10 -10
  33. package/lib/functions/execute/execute.watcher.d.ts +3 -3
  34. package/lib/functions/execute/execute.watcher.js +16 -11
  35. package/lib/functions/execute/execute.watcher.js.map +1 -1
  36. package/lib/functions/execute/execute.worker.d.ts +3 -3
  37. package/lib/functions/execute/execute.worker.js +11 -11
  38. package/lib/functions/initiate.cronjobs.d.ts +2 -2
  39. package/lib/functions/initiate.cronjobs.js +8 -8
  40. package/lib/functions/initiate.watchers.d.ts +2 -2
  41. package/lib/functions/initiate.watchers.js +8 -8
  42. package/lib/functions/initiate.workers.d.ts +2 -2
  43. package/lib/functions/initiate.workers.js +8 -8
  44. package/lib/middleware/data.middleware.map.d.ts +7 -7
  45. package/lib/middleware/data.middleware.map.js +18 -18
  46. package/lib/middleware/data.middleware.map.js.map +1 -1
  47. package/lib/mongodb/collections.models.map.d.ts +8 -8
  48. package/lib/mongodb/collections.models.map.js +22 -22
  49. package/lib/mongodb/collections.models.map.js.map +1 -1
  50. package/lib/mongodb/functions/index/add.both.indices.to.attributes.d.ts +3 -3
  51. package/lib/mongodb/functions/index/add.both.indices.to.attributes.js +8 -8
  52. package/lib/mongodb/functions/index/add.down.indices.to.attributes.d.ts +3 -3
  53. package/lib/mongodb/functions/index/add.down.indices.to.attributes.js +5 -5
  54. package/lib/mongodb/functions/index/add.index.to.attributes.d.ts +3 -3
  55. package/lib/mongodb/functions/index/add.index.to.attributes.js +11 -11
  56. package/lib/mongodb/functions/index/add.up.and.down.indices.to.attributes.d.ts +3 -3
  57. package/lib/mongodb/functions/index/add.up.and.down.indices.to.attributes.js +9 -9
  58. package/lib/mongodb/functions/index/add.up.indices.to.attributes.d.ts +3 -3
  59. package/lib/mongodb/functions/index/add.up.indices.to.attributes.js +5 -5
  60. package/lib/mongodb/functions/observable.database.d.ts +3 -3
  61. package/lib/mongodb/functions/observable.database.js +22 -22
  62. package/lib/mongodb/functions/observable.model.d.ts +4 -4
  63. package/lib/mongodb/functions/observable.model.js +41 -41
  64. package/lib/mongodb/functions/process.models.d.ts +2 -2
  65. package/lib/mongodb/functions/process.models.js +40 -40
  66. package/lib/mongodb/mongodb.connector.d.ts +7 -7
  67. package/lib/mongodb/mongodb.connector.js +51 -51
  68. package/lib/owservable.client.d.ts +23 -23
  69. package/lib/owservable.client.js +162 -162
  70. package/lib/owservable.d.ts +41 -41
  71. package/lib/owservable.js +63 -63
  72. package/lib/store/a.store.d.ts +37 -37
  73. package/lib/store/a.store.js +126 -126
  74. package/lib/store/collection.store.d.ts +8 -8
  75. package/lib/store/collection.store.js +111 -111
  76. package/lib/store/count.store.d.ts +7 -7
  77. package/lib/store/count.store.js +46 -46
  78. package/lib/store/document.store.d.ts +12 -12
  79. package/lib/store/document.store.js +134 -134
  80. package/lib/store/factories/store.factory.d.ts +4 -4
  81. package/lib/store/factories/store.factory.js +15 -15
  82. 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.40",
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.9",
38
- "@owservable/folders": "^0.0.8",
39
- "@types/lodash": "^4.14.191",
40
- "@types/node": "^18.14.6",
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.4",
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.23.26",
70
- "typescript": "^4.9.5"
69
+ "typedoc": "^0.24.1",
70
+ "typescript": "^5.0.4"
71
71
  }
72
72
  }