alasql 4.1.9 → 4.1.11

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.1.9",
4
+ "version": "4.1.11",
5
5
  "author": "Andrey Gershun <agershun@gmail.com>",
6
6
  "contributors": [
7
7
  "Mathias Wulff <m@rawu.dk>"
@@ -13,14 +13,14 @@
13
13
  },
14
14
  "typings": "types/alasql.d.ts",
15
15
  "scripts": {
16
- "test": "gulp && yarn test-only",
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",
18
+ "test-only": "mocha ./test --reporter dot # npx bun node_modules/.bin/mocha ./test --reporter dot",
19
+ "#test-only": "(command -v bun && bun node_modules/.bin/mocha ./test --reporter dot) || npx bun node_modules/.bin/mocha ./test --reporter dot",
19
20
  "test-browser": "node test/browserTestRunner.js 7387",
20
21
  "test-cover": "# istanbul cover -x 'lib/zt/zt.js' --dir test/coverage _mocha",
21
- "build": "yarn format && gulp",
22
- "build-jison": "gulp --jison && gulp",
23
- "build-watch": "gulp watch",
22
+ "build": "yarn format && yarn build-only",
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
26
  "jison": "npx jison-gho ./src/alasqlparser.jison -o ./src/alasqlparser.js",
@@ -53,27 +53,23 @@
53
53
  "blueimp-md5": "2.19.0",
54
54
  "cmdmix": "2.1.1",
55
55
  "dom-storage": "2.1.0",
56
- "eslint": "8.48.0",
56
+ "esbuild": "^0.19.3",
57
+ "eslint": "8.50.0",
57
58
  "eslint-config-standard": "17.1.0",
58
59
  "eslint-plugin-import": "2.28.1",
59
60
  "eslint-plugin-n": "16.1.0",
60
61
  "eslint-plugin-node": "11.1.0",
61
62
  "eslint-plugin-promise": "6.1.1",
62
63
  "git-branch-is": "4.0.0",
63
- "gulp": "4.0.2",
64
- "gulp-concat": "2.6.1",
65
- "gulp-exec": "5.0.0",
66
- "gulp-jison": "1.2.0",
67
- "gulp-rename": "2.0.0",
68
- "gulp-replace": "1.1.4",
69
- "gulp-shell": "0.8.0",
70
- "gulp-uglify": "3.0.2",
71
64
  "husky": "8.0.3",
65
+ "jison-gho": "^0.6.1-216",
72
66
  "lint-staged": "14.0.1",
73
67
  "mocha": "10.2.0",
74
68
  "mocha.parallel": "0.15.6",
75
69
  "open": "9.1.0",
76
70
  "prettier": "^3.0.3",
71
+ "react-native-fetch-blob": "^0.10.8",
72
+ "react-native-fs": "^2.20.0",
77
73
  "strftime": "0.10.2",
78
74
  "tabletop": "1.6.3",
79
75
  "uglify-js": "3.17.4"
@@ -124,4 +120,4 @@
124
120
  "pre-push": "yarn test-format || (echo please format using 'yarn format' && exit 1)"
125
121
  }
126
122
  }
127
- }
123
+ }
@@ -1,2 +0,0 @@
1
- //! AlaSQL v4.1.8 build: develop-274f71f6 | © 2014-2023 Andrey Gershun & Mathias Wulff | License: MIT
2
- !function(r,e){"function"==typeof define&&define.amd?define([],e):"object"==typeof exports?module.exports=e():r.alasql=e()}(this,function(){function i(r,e,o){"function"==typeof(e=e||[])&&(scope=o,o=e,e=[]),"object"!=typeof e&&(e=[e]);var t=i.lastid++;i.buffer[t]=o,i.webworker.postMessage({id:t,sql:r,params:e})}var a;if(i.options={},i.options.progress=function(){},isArray=function(r){return"[object Array]"===Object.prototype.toString.call(r)},i.promise=function(){throw new Error("Please include a Promise/A+ library")},"undefined"!=typeof Promise&&(a=function(r,e,n,s){return new Promise(function(o,t){i(r,e,function(r,e){e?t(e):(n&&s&&!1!==i.options.progress&&i.options.progress(n,s),o(r))})})},i.promise=function(r,e){if("undefined"==typeof Promise)throw new Error("Please include a Promise/A+ library");if("string"==typeof r)return a(r,e);if(!isArray(r)||r.length<1||void 0!==e)throw new Error("Error in .promise parameters");var o=r;if(!(o.length<1)){for(var t,n,s=[],i=0;i<o.length;i++){if("string"==typeof(n=o[i])&&(n=[n]),!isArray(n)||n.length<1||2<n.length)throw new Error("Error in .promise parameter");t=n[0],n=n[1]||void 0,s.push(a(t,n,i,o.length))}return Promise.all(s)}}),i=i||!1)return i.worker=function(){throw new Error("Can find webworker in this enviroment")},"undefined"!=typeof Worker&&(i.worker=function(r,e,o){if(void 0===(r=!0===r?void 0:r))for(var t=document.getElementsByTagName("script"),n=0;n<t.length;n++){if("alasql-worker.js"===t[n].src.substr(-16).toLowerCase()){r=t[n].src.substr(0,t[n].src.length-16)+"alasql.js";break}if("alasql-worker.min.js"===t[n].src.substr(-20).toLowerCase()){r=t[n].src.substr(0,t[n].src.length-20)+"alasql.min.js";break}if("alasql.js"===t[n].src.substr(-9).toLowerCase()){r=t[n].src;break}if("alasql.min.js"===t[n].src.substr(-13).toLowerCase()){r=t[n].src.substr(0,t[n].src.length-13)+"alasql.min.js";break}}if(void 0===r)throw new Error("Path to alasql.js is not specified");var s;!1!==r?(s=(s="importScripts('")+r+"');self.onmessage = function(event) {alasql(event.data.sql,event.data.params, function(data){postMessage({id:event.data.id, data:data});});}",s=new Blob([s],{type:"text/plain"}),i.webworker=new Worker(URL.createObjectURL(s)),i.webworker.onmessage=function(r){var e=r.data.id;i.buffer[e](r.data.data),delete i.buffer[e]},i.webworker.onerror=function(r){throw r},1<arguments.length&&i("REQUIRE "+e.map(function(r){return'"'+r+'"'}).join(","),[],o)):!1===r&&delete i.webworker}),i.lastid=0,i.buffer={},i.worker(),i;throw new Error("alasql was not found")});