Skip to content

Commit 0d2bf6a

Browse files
author
FalkWolsky
committedSep 18, 2024
Introducing Supabase as included JavaScript Object
1 parent ad41427 commit 0d2bf6a

File tree

6 files changed

+105
-1
lines changed

6 files changed

+105
-1
lines changed
 

‎client/package.json

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -73,6 +73,7 @@
7373
"dependencies": {
7474
"@lottiefiles/react-lottie-player": "^3.5.3",
7575
"@remixicon/react": "^4.1.1",
76+
"@supabase/supabase-js": "^2.45.4",
7677
"@testing-library/react": "^14.1.2",
7778
"@testing-library/user-event": "^14.5.1",
7879
"@types/styled-components": "^5.1.34",
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"]);
1+
export const libNames = new Set(["uuid", "numbro", "Papa", "supabase"]);

‎client/packages/lowcoder/src/global.ts

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -5,5 +5,9 @@ declare global {
55
printPerf: () => void;
66
__LOWCODER_ORG__?: {};
77
dayjs: {};
8+
supabase: any;
9+
numbro: any;
10+
Papa: any;
11+
uuid: any;
812
}
913
}

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

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

56
import * as styledNameExports from "styled-components";
67
import styledDefault from "styled-components";
@@ -134,3 +135,4 @@ export const styled = { ...styledDefault, ...styledNameExports };
134135
window.numbro = numbro;
135136
window.Papa = Papa;
136137
window.uuid = uuid;
138+
window.supabase = supabase;

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

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,8 @@ import "core-js/actual";
22
import ResizeObserver from "resize-observer-polyfill";
33
import numbro from "numbro";
44
import Papa from "papaparse";
5+
import * as supabase from "@supabase/supabase-js";
6+
57
import * as uuid from "uuid";
68
import "regenerator-runtime/runtime";
79
import "virtual:globals";
@@ -15,6 +17,7 @@ import 'animate.css';
1517
window.numbro = numbro;
1618
window.Papa = Papa;
1719
window.uuid = uuid;
20+
window.supabase = supabase;
1821

1922
// for chrome 63
2023
if (!window.ResizeObserver) {

‎client/yarn.lock

Lines changed: 94 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4059,6 +4059,77 @@ __metadata:
40594059
languageName: node
40604060
linkType: hard
40614061

4062+
"@supabase/auth-js@npm:2.65.0":
4063+
version: 2.65.0
4064+
resolution: "@supabase/auth-js@npm:2.65.0"
4065+
dependencies:
4066+
"@supabase/node-fetch": ^2.6.14
4067+
checksum: c6396f6c384f4787352a09e40c192cbf990dd566773b6e55eb7921726052144bfe592e2550bd1bd743545af3a03b2602ef41a9e69f9f966f84923049d0128404
4068+
languageName: node
4069+
linkType: hard
4070+
4071+
"@supabase/functions-js@npm:2.4.1":
4072+
version: 2.4.1
4073+
resolution: "@supabase/functions-js@npm:2.4.1"
4074+
dependencies:
4075+
"@supabase/node-fetch": ^2.6.14
4076+
checksum: 786a1499b26b928f39b9af68b44bfc0a016c525d85c6b8bd2f6cd712e53db3ab5099ed4e7b1038ae8527dcee16a3aa8f80618a7227d322052810d378746d7154
4077+
languageName: node
4078+
linkType: hard
4079+
4080+
"@supabase/node-fetch@npm:2.6.15, @supabase/node-fetch@npm:^2.6.14":
4081+
version: 2.6.15
4082+
resolution: "@supabase/node-fetch@npm:2.6.15"
4083+
dependencies:
4084+
whatwg-url: ^5.0.0
4085+
checksum: 9673b49236a56df49eb7ea5cb789cf4e8b1393069b84b4964ac052995e318a34872f428726d128f232139e17c3375a531e45e99edd3e96a25cce60d914b53879
4086+
languageName: node
4087+
linkType: hard
4088+
4089+
"@supabase/postgrest-js@npm:1.16.1":
4090+
version: 1.16.1
4091+
resolution: "@supabase/postgrest-js@npm:1.16.1"
4092+
dependencies:
4093+
"@supabase/node-fetch": ^2.6.14
4094+
checksum: 695d41c935c8745a16ee3b597fe2d1b94ba69715f3b15da8f1e332ef4a556e41ba0591889fa37cadb53900e2c58f4298ece4dd13e35f6b25fbeb54c3e0aabc90
4095+
languageName: node
4096+
linkType: hard
4097+
4098+
"@supabase/realtime-js@npm:2.10.2":
4099+
version: 2.10.2
4100+
resolution: "@supabase/realtime-js@npm:2.10.2"
4101+
dependencies:
4102+
"@supabase/node-fetch": ^2.6.14
4103+
"@types/phoenix": ^1.5.4
4104+
"@types/ws": ^8.5.10
4105+
ws: ^8.14.2
4106+
checksum: a98342e6a8437c2c14a86728abd12f21d853f167fb22ede46ef680cc0ef990bf7c8a8403c448ab335d884cfe8c3b2f6c4e3363dcb777511ee3abb6270d65a954
4107+
languageName: node
4108+
linkType: hard
4109+
4110+
"@supabase/storage-js@npm:2.7.0":
4111+
version: 2.7.0
4112+
resolution: "@supabase/storage-js@npm:2.7.0"
4113+
dependencies:
4114+
"@supabase/node-fetch": ^2.6.14
4115+
checksum: 1796214103d0afae0d9e960bd22cbd621f746a845c56e409a5a7fa88cbdfcec6a53ac0ffb6b5197ec88540c8c17a5cc888ec3edf5928b48b83bb7f315a17465c
4116+
languageName: node
4117+
linkType: hard
4118+
4119+
"@supabase/supabase-js@npm:^2.45.4":
4120+
version: 2.45.4
4121+
resolution: "@supabase/supabase-js@npm:2.45.4"
4122+
dependencies:
4123+
"@supabase/auth-js": 2.65.0
4124+
"@supabase/functions-js": 2.4.1
4125+
"@supabase/node-fetch": 2.6.15
4126+
"@supabase/postgrest-js": 1.16.1
4127+
"@supabase/realtime-js": 2.10.2
4128+
"@supabase/storage-js": 2.7.0
4129+
checksum: 5611e13a1ffd0e0773148eccdadcf746240b4d47dfe771220793c3f6ec2d8eedef638d27aa23a2b020bce3fb68efda511d4e9746792e7524349f7e17bd53eb99
4130+
languageName: node
4131+
linkType: hard
4132+
40624133
"@svgr/babel-plugin-add-jsx-attribute@npm:8.0.0":
40634134
version: 8.0.0
40644135
resolution: "@svgr/babel-plugin-add-jsx-attribute@npm:8.0.0"
@@ -4914,6 +4985,13 @@ __metadata:
49144985
languageName: node
49154986
linkType: hard
49164987

4988+
"@types/phoenix@npm:^1.5.4":
4989+
version: 1.6.5
4990+
resolution: "@types/phoenix@npm:1.6.5"
4991+
checksum: b87416393159f0ba2812875fc2721914a3284cde8b1f263dfcd46f4149dae7f4efc2bfa062d558c8bbfb7ae2a9d802487b0dd4744ff08799386cbc49c19368f0
4992+
languageName: node
4993+
linkType: hard
4994+
49174995
"@types/prop-types@npm:*, @types/prop-types@npm:^15.0.0":
49184996
version: 15.7.12
49194997
resolution: "@types/prop-types@npm:15.7.12"
@@ -13931,6 +14009,7 @@ coolshapes-react@lowcoder-org/coolshapes-react:
1393114009
"@lottiefiles/react-lottie-player": ^3.5.3
1393214010
"@remixicon/react": ^4.1.1
1393314011
"@rollup/plugin-typescript": ^8.5.0
14012+
"@supabase/supabase-js": ^2.45.4
1393414013
"@testing-library/jest-dom": ^5.16.5
1393514014
"@testing-library/react": ^14.1.2
1393614015
"@testing-library/user-event": ^14.5.1
@@ -22350,6 +22429,21 @@ coolshapes-react@lowcoder-org/coolshapes-react:
2235022429
languageName: node
2235122430
linkType: hard
2235222431

22432+
"ws@npm:^8.14.2":
22433+
version: 8.18.0
22434+
resolution: "ws@npm:8.18.0"
22435+
peerDependencies:
22436+
bufferutil: ^4.0.1
22437+
utf-8-validate: ">=5.0.2"
22438+
peerDependenciesMeta:
22439+
bufferutil:
22440+
optional: true
22441+
utf-8-validate:
22442+
optional: true
22443+
checksum: 91d4d35bc99ff6df483bdf029b9ea4bfd7af1f16fc91231a96777a63d263e1eabf486e13a2353970efc534f9faa43bdbf9ee76525af22f4752cbc5ebda333975
22444+
languageName: node
22445+
linkType: hard
22446+
2235322447
"xlsx@npm:^0.18.5":
2235422448
version: 0.18.5
2235522449
resolution: "xlsx@npm:0.18.5"

0 commit comments

Comments
 (0)