alasql 4.3.3 → 4.5.0

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.3.3",
4
+ "version": "4.5.0",
5
5
  "author": "Andrey Gershun <agershun@gmail.com>",
6
6
  "contributors": [
7
7
  "Mathias Wulff <m@rawu.dk>"
@@ -15,7 +15,7 @@
15
15
  "scripts": {
16
16
  "test": "sh build.sh && yarn test-only",
17
17
  "test-ci": "(yarn test-format || 1) && yarn test && yarn install-g && alasql 'select 1 as Succes'",
18
- "test-only": "mocha ./test --reporter dot # npx bun node_modules/.bin/mocha ./test --reporter dot",
18
+ "test-only": "node node_modules/mocha/bin/mocha.js ./test --reporter dot",
19
19
  "#test-only": "(command -v bun && bun node_modules/.bin/mocha ./test --reporter dot) || npx bun node_modules/.bin/mocha ./test --reporter dot",
20
20
  "test-browser": "node test/browserTestRunner.js 7387",
21
21
  "test-cover": "# istanbul cover -x 'lib/zt/zt.js' --dir test/coverage _mocha",
@@ -23,7 +23,7 @@
23
23
  "build-only": "sh build.sh",
24
24
  "install-g": "yarn build && npm uninstall alasql -g && npm install -g .",
25
25
  "release": "yarn version",
26
- "jison": "npx jison-gho ./src/alasqlparser.jison -o ./src/alasqlparser.js",
26
+ "jison": "jison ./src/alasqlparser.jison -o ./src/alasqlparser.js",
27
27
  "fmt": "yarn pretty-commit --write",
28
28
  "format": "yarn pretty-since-dev --write",
29
29
  "format-all": "yarn pretty-all --write",
@@ -53,30 +53,29 @@
53
53
  "blueimp-md5": "2.19.0",
54
54
  "cmdmix": "2.1.1",
55
55
  "dom-storage": "2.1.0",
56
- "esbuild": "0.20.2",
57
- "eslint": "8.57.0",
56
+ "esbuild": "0.23.0",
57
+ "eslint": "9.6.0",
58
58
  "eslint-config-standard": "17.1.0",
59
59
  "eslint-plugin-import": "2.29.1",
60
- "eslint-plugin-n": "16.6.2",
61
- "eslint-plugin-node": "11.1.0",
62
- "eslint-plugin-promise": "6.1.1",
60
+ "eslint-plugin-n": "14.0.0",
61
+ "eslint-plugin-promise": "6.4.0",
63
62
  "git-branch-is": "4.0.0",
64
63
  "husky": "8.0.3",
65
- "jison-gho": "^0.6.1-216",
66
- "lint-staged": "15.2.2",
67
- "mocha": "10.4.0",
64
+ "jison": "^0.4.18",
65
+ "lint-staged": "15.2.7",
66
+ "mocha": "10.6.0",
68
67
  "mocha.parallel": "0.15.6",
69
68
  "open": "10.1.0",
70
- "prettier": "3.2.5",
69
+ "prettier": "3.3.2",
71
70
  "react-native-fetch-blob": "^0.10.8",
72
71
  "react-native-fs": "^2.20.0",
73
72
  "rexreplace": "7.1.3",
74
- "strftime": "0.10.2",
73
+ "strftime": "0.10.3",
75
74
  "tabletop": "1.6.3",
76
- "uglify-js": "3.17.4"
75
+ "uglify-js": "3.18.0"
77
76
  },
78
77
  "resolutions": {
79
- "got": "14.2.1",
78
+ "got": "14.4.1",
80
79
  "axios": "1",
81
80
  "json5": "2",
82
81
  "underscore": "1",
package/types/alasql.d.ts CHANGED
@@ -139,6 +139,7 @@ declare module 'alasql' {
139
139
  }
140
140
 
141
141
  interface Database {
142
+ new (databaseid?: string): Database;
142
143
  databaseid: string;
143
144
  dbversion: number;
144
145
  tables: {[key: string]: any};
@@ -166,7 +167,9 @@ declare module 'alasql' {
166
167
  autoval(tablename: string, colname: string, getNext?: boolean): number;
167
168
  yy: {};
168
169
  setXLSX(xlsxlib: typeof xlsx): void;
169
- Database: Database;
170
+ Database: {
171
+ new (databaseid?: string): Database;
172
+ };
170
173
 
171
174
  /**
172
175
  * Array of databases in the AlaSQL object.