alasql 4.2.5 → 4.2.6

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/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.5",
4
+ "version": "4.2.6",
5
5
  "author": "Andrey Gershun <agershun@gmail.com>",
6
6
  "contributors": [
7
7
  "Mathias Wulff <m@rawu.dk>"
@@ -53,8 +53,8 @@
53
53
  "blueimp-md5": "2.19.0",
54
54
  "cmdmix": "2.1.1",
55
55
  "dom-storage": "2.1.0",
56
- "esbuild": "^0.19.3",
57
- "eslint": "8.53.0",
56
+ "esbuild": "0.19.12",
57
+ "eslint": "8.56.0",
58
58
  "eslint-config-standard": "17.1.0",
59
59
  "eslint-plugin-import": "2.29.1",
60
60
  "eslint-plugin-n": "16.3.1",
@@ -63,11 +63,11 @@
63
63
  "git-branch-is": "4.0.0",
64
64
  "husky": "8.0.3",
65
65
  "jison-gho": "^0.6.1-216",
66
- "lint-staged": "15.1.0",
66
+ "lint-staged": "15.2.0",
67
67
  "mocha": "10.2.0",
68
68
  "mocha.parallel": "0.15.6",
69
- "open": "10.0.2",
70
- "prettier": "^3.0.3",
69
+ "open": "10.0.3",
70
+ "prettier": "3.2.4",
71
71
  "react-native-fetch-blob": "^0.10.8",
72
72
  "react-native-fs": "^2.20.0",
73
73
  "rexreplace": "7.1.3",
@@ -82,7 +82,9 @@
82
82
  "underscore": "1",
83
83
  "glob-parent": "6",
84
84
  "decode-uri-component": "0.2",
85
- "semver": "7"
85
+ "semver": "7",
86
+ "@gerhobbelt/json5": "2.1.0-48",
87
+ "minimist": "1.2.6"
86
88
  },
87
89
  "engines": {
88
90
  "node": ">=15"
package/types/alasql.d.ts CHANGED
@@ -138,6 +138,22 @@ declare module 'alasql' {
138
138
  [tableName: string]: table;
139
139
  }
140
140
 
141
+ interface Database {
142
+ databaseid: string;
143
+ dbversion: number;
144
+ tables: {[key: string]: any};
145
+ views: {[key: string]: any};
146
+ triggers: {[key: string]: any};
147
+ indices: {[key: string]: any};
148
+ objects: {[key: string]: any};
149
+ counter: number;
150
+ sqlCache: {[key: string]: any};
151
+ sqlCacheSize: number;
152
+ astCache: {[key: string]: any};
153
+ resetSqlCache: () => void;
154
+ exec: (sql: string, params?: object, cb?: Function) => any;
155
+ autoval: (tablename: string, colname: string, getNext: boolean) => any;
156
+ }
141
157
  interface AlaSQL {
142
158
  options: AlaSQLOptions;
143
159
  error: Error;
@@ -150,6 +166,7 @@ declare module 'alasql' {
150
166
  autoval(tablename: string, colname: string, getNext?: boolean): number;
151
167
  yy: {};
152
168
  setXLSX(xlsxlib: typeof xlsx): void;
169
+ Database: Database;
153
170
 
154
171
  /**
155
172
  * Array of databases in the AlaSQL object.