@theshelf/database 0.4.1 → 0.4.3
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/README.md +1 -1
- package/dist/drivers/Memory.js +0 -1
- package/package.json +3 -3
package/README.md
CHANGED
|
@@ -110,7 +110,7 @@ There is one driver included in this package. Other drivers are available in sep
|
|
|
110
110
|
|
|
111
111
|
### Memory
|
|
112
112
|
|
|
113
|
-
In
|
|
113
|
+
In-memory database (suited for testing). It doesn't have any configuration options, but has an additional operation.
|
|
114
114
|
|
|
115
115
|
```ts
|
|
116
116
|
// Clear the memory
|
package/dist/drivers/Memory.js
CHANGED
|
@@ -129,7 +129,6 @@ export default class Memory {
|
|
|
129
129
|
#buildFilterFunction(query) {
|
|
130
130
|
const statementCode = this.#buildStatementCode(query);
|
|
131
131
|
const functionCode = statementCode === '' ? 'true' : statementCode;
|
|
132
|
-
// eslint-disable-next-line sonarjs/code-eval
|
|
133
132
|
return new Function('record', `return ${functionCode}`);
|
|
134
133
|
}
|
|
135
134
|
#buildStatementCode(query) {
|
package/package.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@theshelf/database",
|
|
3
3
|
"private": false,
|
|
4
|
-
"version": "0.4.
|
|
4
|
+
"version": "0.4.3",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"repository": {
|
|
7
7
|
"url": "git+https://github.com/MaskingTechnology/theshelf.git"
|
|
@@ -23,12 +23,12 @@
|
|
|
23
23
|
"types": "./dist/index.d.ts",
|
|
24
24
|
"exports": "./dist/index.js",
|
|
25
25
|
"dependencies": {
|
|
26
|
-
"sanitize-html": "2.17.
|
|
26
|
+
"sanitize-html": "2.17.1"
|
|
27
27
|
},
|
|
28
28
|
"devDependencies": {
|
|
29
29
|
"@types/sanitize-html": "2.16.0"
|
|
30
30
|
},
|
|
31
31
|
"peerDependencies": {
|
|
32
|
-
"@theshelf/logging": "^0.4.
|
|
32
|
+
"@theshelf/logging": "^0.4.3"
|
|
33
33
|
}
|
|
34
34
|
}
|