@quantform/sqlite 0.7.0-beta.47 → 0.7.0-beta.49
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/dist/sqlite-storage.js +2 -2
- package/package.json +5 -5
- package/src/sqlite-storage.ts +3 -3
package/dist/sqlite-storage.js
CHANGED
|
@@ -51,7 +51,7 @@ class SQLiteStorage {
|
|
|
51
51
|
return this.connection
|
|
52
52
|
.prepare("SELECT name FROM sqlite_master WHERE type='table'")
|
|
53
53
|
.all()
|
|
54
|
-
.map(it => it.name);
|
|
54
|
+
.map((it) => it.name);
|
|
55
55
|
});
|
|
56
56
|
}
|
|
57
57
|
// eslint-disable-next-line complexity
|
|
@@ -67,7 +67,7 @@ class SQLiteStorage {
|
|
|
67
67
|
.prepare(sqlite_language_1.SQLiteLanguage.query(type, query))
|
|
68
68
|
.all();
|
|
69
69
|
const types = Object.keys(type.type);
|
|
70
|
-
objects.forEach(it => {
|
|
70
|
+
objects.forEach((it) => {
|
|
71
71
|
for (const prop of types) {
|
|
72
72
|
if (type.type[prop] == 'decimal') {
|
|
73
73
|
it[prop] = (0, core_1.d)(it[prop]);
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@quantform/sqlite",
|
|
3
|
-
"version": "0.7.0-beta.
|
|
3
|
+
"version": "0.7.0-beta.49",
|
|
4
4
|
"license": "MIT",
|
|
5
5
|
"author": "Mateusz Majchrzak",
|
|
6
6
|
"description": "Node.js library for building systematic trading strategies in reactive way.",
|
|
@@ -14,14 +14,14 @@
|
|
|
14
14
|
"main": "dist/index.js",
|
|
15
15
|
"typings": "dist/index.d.ts",
|
|
16
16
|
"dependencies": {
|
|
17
|
-
"better-sqlite3": "
|
|
17
|
+
"better-sqlite3": "11.7.0"
|
|
18
18
|
},
|
|
19
19
|
"devDependencies": {
|
|
20
|
-
"@types/better-sqlite3": "^7.6.
|
|
21
|
-
"@quantform/core": "0.7.0-beta.
|
|
20
|
+
"@types/better-sqlite3": "^7.6.12",
|
|
21
|
+
"@quantform/core": "0.7.0-beta.49"
|
|
22
22
|
},
|
|
23
23
|
"peerDependencies": {
|
|
24
|
-
"@quantform/core": "0.7.0-beta.
|
|
24
|
+
"@quantform/core": "0.7.0-beta.49"
|
|
25
25
|
},
|
|
26
26
|
"scripts": {
|
|
27
27
|
"build": "tsc && tsc-alias",
|
package/src/sqlite-storage.ts
CHANGED
|
@@ -44,7 +44,7 @@ export class SQLiteStorage implements Storage {
|
|
|
44
44
|
return this.connection
|
|
45
45
|
.prepare("SELECT name FROM sqlite_master WHERE type='table'")
|
|
46
46
|
.all()
|
|
47
|
-
.map(it => it.name);
|
|
47
|
+
.map((it: any) => it.name);
|
|
48
48
|
}
|
|
49
49
|
|
|
50
50
|
// eslint-disable-next-line complexity
|
|
@@ -60,13 +60,13 @@ export class SQLiteStorage implements Storage {
|
|
|
60
60
|
return [];
|
|
61
61
|
}
|
|
62
62
|
|
|
63
|
-
const objects = await this.connection
|
|
63
|
+
const objects: any[] = await this.connection
|
|
64
64
|
.prepare(SQLiteLanguage.query(type, query))
|
|
65
65
|
.all();
|
|
66
66
|
|
|
67
67
|
const types = Object.keys(type.type);
|
|
68
68
|
|
|
69
|
-
objects.forEach(it => {
|
|
69
|
+
objects.forEach((it: any) => {
|
|
70
70
|
for (const prop of types) {
|
|
71
71
|
if (type.type[prop] == 'decimal') {
|
|
72
72
|
it[prop] = d(it[prop]);
|