@sprucelabs/data-stores 28.1.240 → 28.1.242

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,6 +1,5 @@
1
- import { Schema } from '@sprucelabs/schema';
2
- import AbstractStore from '../stores/AbstractStore';
1
+ import { DataStore, DataStorePlugin } from '../types/stores.types';
3
2
  declare const storePluginAssert: {
4
- storeHasPlugin: (store: AbstractStore<Schema>, pluginName: string) => import("..").DataStorePlugin;
3
+ storeHasPlugin: (store: DataStore, pluginName: string) => DataStorePlugin;
5
4
  };
6
5
  export default storePluginAssert;
@@ -9,11 +9,11 @@ const storePluginAssert = {
9
9
  //@ts-ignore
10
10
  const { plugins } = store;
11
11
  if (!(plugins === null || plugins === void 0 ? void 0 : plugins.length)) {
12
- assert.fail(`The store you passed has no plugins. Add one to 'protected plugins: DataStorePlugin[] = [...]' or add it in the constructor of your store with 'this.plugins[...]'`);
12
+ assert.fail(`The store you passed has no plugins. Add one to 'protected plugins: DataStorePlugin[] = [...]' or add it in the constructor of your store with 'this.plugins.push(...)'`);
13
13
  }
14
14
  const plugin = plugins === null || plugins === void 0 ? void 0 : plugins.find((p) => p.getName() === pluginName);
15
15
  if ((plugin === null || plugin === void 0 ? void 0 : plugin.getName()) !== pluginName) {
16
- assert.fail(`I could not find the plugin '${pluginName}' in the store you passed. Make sure you added it to 'protected plugins: DataStorePlugin[] = [...]' or added it in the constructor of your store with 'this.plugins[...]'`);
16
+ assert.fail(`I could not find the plugin '${pluginName}' in the store you passed. Make sure you added it to 'protected plugins: DataStorePlugin[] = [...]' or added it in the constructor of your store with 'this.plugins.push(...)'`);
17
17
  }
18
18
  return plugin;
19
19
  },
@@ -1,6 +1,5 @@
1
- import { Schema } from '@sprucelabs/schema';
2
- import AbstractStore from '../stores/AbstractStore';
1
+ import { DataStore, DataStorePlugin } from '../types/stores.types';
3
2
  declare const storePluginAssert: {
4
- storeHasPlugin: (store: AbstractStore<Schema>, pluginName: string) => import("..").DataStorePlugin;
3
+ storeHasPlugin: (store: DataStore, pluginName: string) => DataStorePlugin;
5
4
  };
6
5
  export default storePluginAssert;
@@ -11,11 +11,11 @@ const storePluginAssert = {
11
11
  //@ts-ignore
12
12
  const { plugins } = store;
13
13
  if (!(plugins === null || plugins === void 0 ? void 0 : plugins.length)) {
14
- test_utils_1.assert.fail(`The store you passed has no plugins. Add one to 'protected plugins: DataStorePlugin[] = [...]' or add it in the constructor of your store with 'this.plugins[...]'`);
14
+ test_utils_1.assert.fail(`The store you passed has no plugins. Add one to 'protected plugins: DataStorePlugin[] = [...]' or add it in the constructor of your store with 'this.plugins.push(...)'`);
15
15
  }
16
16
  const plugin = plugins === null || plugins === void 0 ? void 0 : plugins.find((p) => p.getName() === pluginName);
17
17
  if ((plugin === null || plugin === void 0 ? void 0 : plugin.getName()) !== pluginName) {
18
- test_utils_1.assert.fail(`I could not find the plugin '${pluginName}' in the store you passed. Make sure you added it to 'protected plugins: DataStorePlugin[] = [...]' or added it in the constructor of your store with 'this.plugins[...]'`);
18
+ test_utils_1.assert.fail(`I could not find the plugin '${pluginName}' in the store you passed. Make sure you added it to 'protected plugins: DataStorePlugin[] = [...]' or added it in the constructor of your store with 'this.plugins.push(...)'`);
19
19
  }
20
20
  return plugin;
21
21
  },
package/package.json CHANGED
@@ -3,7 +3,7 @@
3
3
  "publishConfig": {
4
4
  "access": "public"
5
5
  },
6
- "version": "28.1.240",
6
+ "version": "28.1.242",
7
7
  "files": [
8
8
  "build/**/*",
9
9
  "!build/__tests__",
@@ -64,22 +64,22 @@
64
64
  "watch.tsc": "tsc -w"
65
65
  },
66
66
  "dependencies": {
67
- "@sprucelabs/error": "^6.0.240",
68
- "@sprucelabs/globby": "^2.0.200",
69
- "@sprucelabs/schema": "^30.0.290",
70
- "@sprucelabs/spruce-skill-utils": "^31.0.304",
67
+ "@sprucelabs/error": "^6.0.241",
68
+ "@sprucelabs/globby": "^2.0.201",
69
+ "@sprucelabs/schema": "^30.0.291",
70
+ "@sprucelabs/spruce-skill-utils": "^31.0.305",
71
71
  "just-clone": "^6.2.0",
72
72
  "lodash": "^4.17.21",
73
73
  "mongodb": "^6.8.0",
74
74
  "nedb": "^1.8.0"
75
75
  },
76
76
  "devDependencies": {
77
- "@sprucelabs/esm-postbuild": "^6.0.224",
78
- "@sprucelabs/jest-json-reporter": "^8.0.242",
79
- "@sprucelabs/resolve-path-aliases": "^2.0.219",
77
+ "@sprucelabs/esm-postbuild": "^6.0.225",
78
+ "@sprucelabs/jest-json-reporter": "^8.0.243",
79
+ "@sprucelabs/resolve-path-aliases": "^2.0.220",
80
80
  "@sprucelabs/semantic-release": "^5.0.2",
81
81
  "@sprucelabs/test": "^9.0.41",
82
- "@sprucelabs/test-utils": "^5.1.182",
82
+ "@sprucelabs/test-utils": "^5.1.183",
83
83
  "@types/lodash": "^4.17.7",
84
84
  "@types/nedb": "^1.8.16",
85
85
  "@types/node": "^22.5.0",