Skip to content

Commit c08019a

Browse files
added alasql and expose in JS
1 parent c3068a6 commit c08019a

File tree

6 files changed

+63
-2
lines changed

6 files changed

+63
-2
lines changed

client/packages/lowcoder/package.json

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -36,6 +36,7 @@
3636
"@types/react-signature-canvas": "^1.0.2",
3737
"@types/react-test-renderer": "^18.0.0",
3838
"@types/react-virtualized": "^9.21.21",
39+
"alasql": "^4.6.2",
3940
"animate.css": "^4.1.1",
4041
"antd": "^5.20.0",
4142
"axios": "^1.7.7",
Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
export const libNames = new Set(["uuid", "numbro", "Papa", "supabase"]);
1+
export const libNames = new Set(["uuid", "numbro", "Papa", "supabase", "alasql"]);

client/packages/lowcoder/src/global.ts

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -9,5 +9,6 @@ declare global {
99
numbro: any;
1010
Papa: any;
1111
uuid: any;
12+
alasql: any;
1213
}
1314
}

client/packages/lowcoder/src/index.sdk.ts

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,7 @@ import numbro from "numbro";
22
import Papa from "papaparse";
33
import * as uuid from "uuid";
44
import * as supabase from "@supabase/supabase-js";
5+
import * as alasql from "alasql";
56

67
import * as styledNameExports from "styled-components";
78
import styledDefault from "styled-components";
@@ -136,3 +137,4 @@ window.numbro = numbro;
136137
window.Papa = Papa;
137138
window.uuid = uuid;
138139
window.supabase = supabase;
140+
window.alasql = alasql;

client/packages/lowcoder/src/index.ts

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,7 @@ import ResizeObserver from "resize-observer-polyfill";
33
import numbro from "numbro";
44
import Papa from "papaparse";
55
import * as supabase from "@supabase/supabase-js";
6+
import * as alasql from "alasql";
67

78
import * as uuid from "uuid";
89
import "regenerator-runtime/runtime";
@@ -18,6 +19,7 @@ window.numbro = numbro;
1819
window.Papa = Papa;
1920
window.uuid = uuid;
2021
window.supabase = supabase;
22+
window.alasql = alasql;
2123

2224
// for chrome 63
2325
if (!window.ResizeObserver) {

client/yarn.lock

Lines changed: 56 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5932,6 +5932,18 @@ __metadata:
59325932
languageName: node
59335933
linkType: hard
59345934

5935+
"alasql@npm:^4.6.2":
5936+
version: 4.6.2
5937+
resolution: "alasql@npm:4.6.2"
5938+
dependencies:
5939+
cross-fetch: 4.1.0
5940+
yargs: 16
5941+
bin:
5942+
alasql: bin/alasql-cli.js
5943+
checksum: cc68e87eeaa72ddaec5f20c4ca631e2a8ddb45e38d4b7de41cb14661ead657b1afec8d9530160f66fe5253e9724db9ada5fc63ba2c5bcacf5b8f9583c7b0870f
5944+
languageName: node
5945+
linkType: hard
5946+
59355947
"animate.css@npm:^4.1.1":
59365948
version: 4.1.1
59375949
resolution: "animate.css@npm:4.1.1"
@@ -7309,6 +7321,17 @@ __metadata:
73097321
languageName: node
73107322
linkType: hard
73117323

7324+
"cliui@npm:^7.0.2":
7325+
version: 7.0.4
7326+
resolution: "cliui@npm:7.0.4"
7327+
dependencies:
7328+
string-width: ^4.2.0
7329+
strip-ansi: ^6.0.0
7330+
wrap-ansi: ^7.0.0
7331+
checksum: ce2e8f578a4813806788ac399b9e866297740eecd4ad1823c27fd344d78b22c5f8597d548adbcc46f0573e43e21e751f39446c5a5e804a12aace402b7a315d7f
7332+
languageName: node
7333+
linkType: hard
7334+
73127335
"cliui@npm:^8.0.1":
73137336
version: 8.0.1
73147337
resolution: "cliui@npm:8.0.1"
@@ -7870,6 +7893,15 @@ coolshapes-react@lowcoder-org/coolshapes-react:
78707893
languageName: node
78717894
linkType: hard
78727895

7896+
"cross-fetch@npm:4.1.0":
7897+
version: 4.1.0
7898+
resolution: "cross-fetch@npm:4.1.0"
7899+
dependencies:
7900+
node-fetch: ^2.7.0
7901+
checksum: c02fa85d59f83e50dbd769ee472c9cc984060c403ee5ec8654659f61a525c1a655eef1c7a35e365c1a107b4e72d76e786718b673d1cb3c97f61d4644cb0a9f9d
7902+
languageName: node
7903+
linkType: hard
7904+
78737905
"cross-fetch@npm:^3.1.5":
78747906
version: 3.1.8
78757907
resolution: "cross-fetch@npm:3.1.8"
@@ -14090,6 +14122,7 @@ coolshapes-react@lowcoder-org/coolshapes-react:
1409014122
"@types/regenerator-runtime": ^0.13.1
1409114123
"@types/uuid": ^8.3.4
1409214124
"@vitejs/plugin-react": ^2.2.0
14125+
alasql: ^4.6.2
1409314126
animate.css: ^4.1.1
1409414127
antd: ^5.20.0
1409514128
axios: ^1.7.7
@@ -15684,7 +15717,7 @@ coolshapes-react@lowcoder-org/coolshapes-react:
1568415717
languageName: node
1568515718
linkType: hard
1568615719

15687-
"node-fetch@npm:^2.6.12":
15720+
"node-fetch@npm:^2.6.12, node-fetch@npm:^2.7.0":
1568815721
version: 2.7.0
1568915722
resolution: "node-fetch@npm:2.7.0"
1569015723
dependencies:
@@ -22446,13 +22479,35 @@ coolshapes-react@lowcoder-org/coolshapes-react:
2244622479
languageName: node
2244722480
linkType: hard
2244822481

22482+
"yargs-parser@npm:^20.2.2":
22483+
version: 20.2.9
22484+
resolution: "yargs-parser@npm:20.2.9"
22485+
checksum: 8bb69015f2b0ff9e17b2c8e6bfe224ab463dd00ca211eece72a4cd8a906224d2703fb8a326d36fdd0e68701e201b2a60ed7cf81ce0fd9b3799f9fe7745977ae3
22486+
languageName: node
22487+
linkType: hard
22488+
2244922489
"yargs-parser@npm:^21.1.1":
2245022490
version: 21.1.1
2245122491
resolution: "yargs-parser@npm:21.1.1"
2245222492
checksum: ed2d96a616a9e3e1cc7d204c62ecc61f7aaab633dcbfab2c6df50f7f87b393993fe6640d017759fe112d0cb1e0119f2b4150a87305cc873fd90831c6a58ccf1c
2245322493
languageName: node
2245422494
linkType: hard
2245522495

22496+
"yargs@npm:16":
22497+
version: 16.2.0
22498+
resolution: "yargs@npm:16.2.0"
22499+
dependencies:
22500+
cliui: ^7.0.2
22501+
escalade: ^3.1.1
22502+
get-caller-file: ^2.0.5
22503+
require-directory: ^2.1.1
22504+
string-width: ^4.2.0
22505+
y18n: ^5.0.5
22506+
yargs-parser: ^20.2.2
22507+
checksum: b14afbb51e3251a204d81937c86a7e9d4bdbf9a2bcee38226c900d00f522969ab675703bee2a6f99f8e20103f608382936034e64d921b74df82b63c07c5e8f59
22508+
languageName: node
22509+
linkType: hard
22510+
2245622511
"yargs@npm:^17.3.1, yargs@npm:^17.5.1":
2245722512
version: 17.7.2
2245822513
resolution: "yargs@npm:17.7.2"

0 commit comments

Comments
 (0)