@sprucelabs/data-stores 25.7.2 → 25.7.4
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.
|
@@ -11,6 +11,7 @@ var __rest = (this && this.__rest) || function (s, e) {
|
|
|
11
11
|
return t;
|
|
12
12
|
};
|
|
13
13
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
14
|
+
const schema_1 = require("@sprucelabs/schema");
|
|
14
15
|
class BatchCursorImpl {
|
|
15
16
|
constructor(store, query, options) {
|
|
16
17
|
this.store = store;
|
|
@@ -26,6 +27,7 @@ class BatchCursorImpl {
|
|
|
26
27
|
};
|
|
27
28
|
}
|
|
28
29
|
static Cursor(store, query, options) {
|
|
30
|
+
(0, schema_1.assertOptions)({ store }, ['store'], 'You need to pass a store to BatchCursor.Cursor()');
|
|
29
31
|
return new this(store, query, options);
|
|
30
32
|
}
|
|
31
33
|
setOnNextResults(cb) {
|
|
@@ -18,6 +18,7 @@ var __rest = (this && this.__rest) || function (s, e) {
|
|
|
18
18
|
}
|
|
19
19
|
return t;
|
|
20
20
|
};
|
|
21
|
+
import { assertOptions } from '@sprucelabs/schema';
|
|
21
22
|
export default class BatchCursorImpl {
|
|
22
23
|
constructor(store, query, options) {
|
|
23
24
|
this.store = store;
|
|
@@ -33,6 +34,7 @@ export default class BatchCursorImpl {
|
|
|
33
34
|
};
|
|
34
35
|
}
|
|
35
36
|
static Cursor(store, query, options) {
|
|
37
|
+
assertOptions({ store }, ['store'], 'You need to pass a store to BatchCursor.Cursor()');
|
|
36
38
|
return new this(store, query, options);
|
|
37
39
|
}
|
|
38
40
|
setOnNextResults(cb) {
|
package/package.json
CHANGED
|
@@ -3,7 +3,7 @@
|
|
|
3
3
|
"publishConfig": {
|
|
4
4
|
"access": "public"
|
|
5
5
|
},
|
|
6
|
-
"version": "25.7.
|
|
6
|
+
"version": "25.7.4",
|
|
7
7
|
"files": [
|
|
8
8
|
"build/**/*",
|
|
9
9
|
"!build/__tests__",
|
|
@@ -70,24 +70,24 @@
|
|
|
70
70
|
"dependencies": {
|
|
71
71
|
"@sprucelabs/error": "^5.1.38",
|
|
72
72
|
"@sprucelabs/globby": "^1.0.3",
|
|
73
|
-
"@sprucelabs/schema": "^29.0.
|
|
74
|
-
"@sprucelabs/spruce-skill-utils": "^30.1.
|
|
73
|
+
"@sprucelabs/schema": "^29.0.75",
|
|
74
|
+
"@sprucelabs/spruce-skill-utils": "^30.1.9",
|
|
75
75
|
"just-clone": "^6.2.0",
|
|
76
76
|
"lodash": "^4.17.21",
|
|
77
77
|
"mongodb": "^6.2.0",
|
|
78
78
|
"nedb": "^1.8.0"
|
|
79
79
|
},
|
|
80
80
|
"devDependencies": {
|
|
81
|
-
"@sprucelabs/esm-postbuild": "^5.0.
|
|
82
|
-
"@sprucelabs/jest-json-reporter": "^7.0.
|
|
81
|
+
"@sprucelabs/esm-postbuild": "^5.0.87",
|
|
82
|
+
"@sprucelabs/jest-json-reporter": "^7.0.114",
|
|
83
83
|
"@sprucelabs/jest-sheets-reporter": "^3.0.26",
|
|
84
84
|
"@sprucelabs/resolve-path-aliases": "^1.1.255",
|
|
85
85
|
"@sprucelabs/semantic-release": "^4.0.8",
|
|
86
86
|
"@sprucelabs/test": "^8.0.23",
|
|
87
|
-
"@sprucelabs/test-utils": "^4.0.
|
|
87
|
+
"@sprucelabs/test-utils": "^4.0.64",
|
|
88
88
|
"@types/lodash": "^4.14.200",
|
|
89
89
|
"@types/nedb": "^1.8.15",
|
|
90
|
-
"@types/node": "^20.8.
|
|
90
|
+
"@types/node": "^20.8.10",
|
|
91
91
|
"chokidar-cli": "^3.0.0",
|
|
92
92
|
"concurrently": "^8.2.2",
|
|
93
93
|
"dotenv": "^16.3.1",
|