alasql 4.2.3 → 4.2.5
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 +6 -5
- package/build.sh +1 -7
- package/dist/alasql-worker.js +2 -2
- package/dist/alasql.d.ts +93 -0
- package/dist/alasql.fs.js +191 -329
- package/dist/alasql.js +191 -329
- package/dist/alasql.min.js +48 -48
- package/package.json +5 -4
- package/types/alasql.d.ts +93 -0
- package/Untitled-1.js +0 -1
package/package.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "alasql",
|
|
3
3
|
"description": "Use SQL to select and filter javascript data - including relational joins and search in nested objects (JSON). Export to and import from Excel and CSV",
|
|
4
|
-
"version": "4.2.
|
|
4
|
+
"version": "4.2.5",
|
|
5
5
|
"author": "Andrey Gershun <agershun@gmail.com>",
|
|
6
6
|
"contributors": [
|
|
7
7
|
"Mathias Wulff <m@rawu.dk>"
|
|
@@ -56,7 +56,7 @@
|
|
|
56
56
|
"esbuild": "^0.19.3",
|
|
57
57
|
"eslint": "8.53.0",
|
|
58
58
|
"eslint-config-standard": "17.1.0",
|
|
59
|
-
"eslint-plugin-import": "2.29.
|
|
59
|
+
"eslint-plugin-import": "2.29.1",
|
|
60
60
|
"eslint-plugin-n": "16.3.1",
|
|
61
61
|
"eslint-plugin-node": "11.1.0",
|
|
62
62
|
"eslint-plugin-promise": "6.1.1",
|
|
@@ -66,16 +66,17 @@
|
|
|
66
66
|
"lint-staged": "15.1.0",
|
|
67
67
|
"mocha": "10.2.0",
|
|
68
68
|
"mocha.parallel": "0.15.6",
|
|
69
|
-
"open": "
|
|
69
|
+
"open": "10.0.2",
|
|
70
70
|
"prettier": "^3.0.3",
|
|
71
71
|
"react-native-fetch-blob": "^0.10.8",
|
|
72
72
|
"react-native-fs": "^2.20.0",
|
|
73
|
+
"rexreplace": "7.1.3",
|
|
73
74
|
"strftime": "0.10.2",
|
|
74
75
|
"tabletop": "1.6.3",
|
|
75
76
|
"uglify-js": "3.17.4"
|
|
76
77
|
},
|
|
77
78
|
"resolutions": {
|
|
78
|
-
"got": "
|
|
79
|
+
"got": "14.0.0",
|
|
79
80
|
"axios": "1",
|
|
80
81
|
"json5": "2",
|
|
81
82
|
"underscore": "1",
|
package/types/alasql.d.ts
CHANGED
|
@@ -82,6 +82,62 @@ declare module 'alasql' {
|
|
|
82
82
|
[x: string]: userFromFunction;
|
|
83
83
|
}
|
|
84
84
|
|
|
85
|
+
/**
|
|
86
|
+
* AlaSQL database object. This is a lightweight implimentation
|
|
87
|
+
*
|
|
88
|
+
* @interface database
|
|
89
|
+
*/
|
|
90
|
+
interface database {
|
|
91
|
+
/**
|
|
92
|
+
* The database ID.
|
|
93
|
+
*
|
|
94
|
+
* @type {string}
|
|
95
|
+
* @memberof database
|
|
96
|
+
*/
|
|
97
|
+
databaseid: string;
|
|
98
|
+
|
|
99
|
+
/**
|
|
100
|
+
* The collection of tables in the database.
|
|
101
|
+
*
|
|
102
|
+
* @type {tableLookUp}
|
|
103
|
+
* @memberof database
|
|
104
|
+
*/
|
|
105
|
+
tables: tableLookUp;
|
|
106
|
+
}
|
|
107
|
+
|
|
108
|
+
/**
|
|
109
|
+
* AlaSQL table object. This is a lightweight implimentation
|
|
110
|
+
*
|
|
111
|
+
* @interface table
|
|
112
|
+
*/
|
|
113
|
+
interface table {
|
|
114
|
+
/**
|
|
115
|
+
* The array of data stored in the table which can be queried
|
|
116
|
+
*
|
|
117
|
+
* @type {any[]}
|
|
118
|
+
* @memberof table
|
|
119
|
+
*/
|
|
120
|
+
data: any[];
|
|
121
|
+
}
|
|
122
|
+
|
|
123
|
+
/**
|
|
124
|
+
* AlaSQL database dictionary
|
|
125
|
+
*
|
|
126
|
+
* @interface databaseLookUp
|
|
127
|
+
*/
|
|
128
|
+
interface databaseLookUp {
|
|
129
|
+
[databaseName: string]: database;
|
|
130
|
+
}
|
|
131
|
+
|
|
132
|
+
/**
|
|
133
|
+
* AlaSQL table dictionary
|
|
134
|
+
*
|
|
135
|
+
* @interface tableLookUp
|
|
136
|
+
*/
|
|
137
|
+
interface tableLookUp {
|
|
138
|
+
[tableName: string]: table;
|
|
139
|
+
}
|
|
140
|
+
|
|
85
141
|
interface AlaSQL {
|
|
86
142
|
options: AlaSQLOptions;
|
|
87
143
|
error: Error;
|
|
@@ -94,6 +150,43 @@ declare module 'alasql' {
|
|
|
94
150
|
autoval(tablename: string, colname: string, getNext?: boolean): number;
|
|
95
151
|
yy: {};
|
|
96
152
|
setXLSX(xlsxlib: typeof xlsx): void;
|
|
153
|
+
|
|
154
|
+
/**
|
|
155
|
+
* Array of databases in the AlaSQL object.
|
|
156
|
+
*
|
|
157
|
+
* @type {databaseLookUp}
|
|
158
|
+
* @memberof AlaSQL
|
|
159
|
+
*/
|
|
160
|
+
databases: databaseLookUp;
|
|
161
|
+
|
|
162
|
+
/**
|
|
163
|
+
* Equivalent to alasql('USE '+databaseid). This will change the current
|
|
164
|
+
* database to the one specified. This will update the useid property and
|
|
165
|
+
* the tables property.
|
|
166
|
+
*
|
|
167
|
+
* @param {string} databaseid
|
|
168
|
+
* @memberof AlaSQL
|
|
169
|
+
*/
|
|
170
|
+
use(databaseid: string): void;
|
|
171
|
+
|
|
172
|
+
/**
|
|
173
|
+
* The current database ID. If no database is selected, this is the
|
|
174
|
+
* default database ID (called alasql).
|
|
175
|
+
*
|
|
176
|
+
* @type {string}
|
|
177
|
+
* @memberof AlaSQL
|
|
178
|
+
*/
|
|
179
|
+
useid: string;
|
|
180
|
+
|
|
181
|
+
/**
|
|
182
|
+
* Array of the tables in the default database (called alasql). If
|
|
183
|
+
* the database is changes via a USE statement or the use method, this
|
|
184
|
+
* becomes the tables in the new database.
|
|
185
|
+
*
|
|
186
|
+
* @type {tableLookUp}
|
|
187
|
+
* @memberof AlaSQL
|
|
188
|
+
*/
|
|
189
|
+
tables: tableLookUp;
|
|
97
190
|
}
|
|
98
191
|
|
|
99
192
|
const alasql: AlaSQL;
|
package/Untitled-1.js
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
≤
|