chore: Run prettier on examples folder (#43851)

This PR runs `prettier` on the `examples` folder.

Depends on https://github.com/supabase/supabase/pull/43849.
This commit is contained in:
Ivan Vasilov authored and GitHub committed 2026-03-18 10:51:10 +01:00
1 parent 0aa54d95f4
commit d07e78a616
343 files changed
+11828 -16637

No files matched your search

+3 -3
View File
@@ -47,7 +47,7 @@ npx wrangler secret put SUPABASE_ANON_KEY
**Query data from Supabase**
```javascript
const { data } = await supabase.from("articles").select("*");
const { data } = await supabase.from('articles').select('*')
```
**Send JSON response**
@@ -55,9 +55,9 @@ const { data } = await supabase.from("articles").select("*");
```javascript
return new Response(JSON.stringify(data), {
headers: {
"Content-Type": "application/json",
'Content-Type': 'application/json',
},
});
})
```
## Resources
+45 -135
View File
@@ -49,14 +49,10 @@
"version": "0.16.3",
"resolved": "https://registry.npmjs.org/@esbuild/android-arm/-/android-arm-0.16.3.tgz",
"integrity": "sha512-mueuEoh+s1eRbSJqq9KNBQwI4QhQV6sRXIfTyLXSHGMpyew61rOK4qY21uKbXl1iBoMb0AdL1deWFCQVlN2qHA==",
"cpu": [
"arm"
],
"cpu": ["arm"],
"dev": true,
"optional": true,
"os": [
"android"
],
"os": ["android"],
"engines": {
"node": ">=12"
}
@@ -65,14 +61,10 @@
"version": "0.16.3",
"resolved": "https://registry.npmjs.org/@esbuild/android-arm64/-/android-arm64-0.16.3.tgz",
"integrity": "sha512-RolFVeinkeraDvN/OoRf1F/lP0KUfGNb5jxy/vkIMeRRChkrX/HTYN6TYZosRJs3a1+8wqpxAo5PI5hFmxyPRg==",
"cpu": [
"arm64"
],
"cpu": ["arm64"],
"dev": true,
"optional": true,
"os": [
"android"
],
"os": ["android"],
"engines": {
"node": ">=12"
}
@@ -81,14 +73,10 @@
"version": "0.16.3",
"resolved": "https://registry.npmjs.org/@esbuild/android-x64/-/android-x64-0.16.3.tgz",
"integrity": "sha512-SFpTUcIT1bIJuCCBMCQWq1bL2gPTjWoLZdjmIhjdcQHaUfV41OQfho6Ici5uvvkMmZRXIUGpM3GxysP/EU7ifQ==",
"cpu": [
"x64"
],
"cpu": ["x64"],
"dev": true,
"optional": true,
"os": [
"android"
],
"os": ["android"],
"engines": {
"node": ">=12"
}
@@ -97,14 +85,10 @@
"version": "0.16.3",
"resolved": "https://registry.npmjs.org/@esbuild/darwin-arm64/-/darwin-arm64-0.16.3.tgz",
"integrity": "sha512-DO8WykMyB+N9mIDfI/Hug70Dk1KipavlGAecxS3jDUwAbTpDXj0Lcwzw9svkhxfpCagDmpaTMgxWK8/C/XcXvw==",
"cpu": [
"arm64"
],
"cpu": ["arm64"],
"dev": true,
"optional": true,
"os": [
"darwin"
],
"os": ["darwin"],
"engines": {
"node": ">=12"
}
@@ -113,14 +97,10 @@
"version": "0.16.3",
"resolved": "https://registry.npmjs.org/@esbuild/darwin-x64/-/darwin-x64-0.16.3.tgz",
"integrity": "sha512-uEqZQ2omc6BvWqdCiyZ5+XmxuHEi1SPzpVxXCSSV2+Sh7sbXbpeNhHIeFrIpRjAs0lI1FmA1iIOxFozKBhKgRQ==",
"cpu": [
"x64"
],
"cpu": ["x64"],
"dev": true,
"optional": true,
"os": [
"darwin"
],
"os": ["darwin"],
"engines": {
"node": ">=12"
}
@@ -129,14 +109,10 @@
"version": "0.16.3",
"resolved": "https://registry.npmjs.org/@esbuild/freebsd-arm64/-/freebsd-arm64-0.16.3.tgz",
"integrity": "sha512-nJansp3sSXakNkOD5i5mIz2Is/HjzIhFs49b1tjrPrpCmwgBmH9SSzhC/Z1UqlkivqMYkhfPwMw1dGFUuwmXhw==",
"cpu": [
"arm64"
],
"cpu": ["arm64"],
"dev": true,
"optional": true,
"os": [
"freebsd"
],
"os": ["freebsd"],
"engines": {
"node": ">=12"
}
@@ -145,14 +121,10 @@
"version": "0.16.3",
"resolved": "https://registry.npmjs.org/@esbuild/freebsd-x64/-/freebsd-x64-0.16.3.tgz",
"integrity": "sha512-TfoDzLw+QHfc4a8aKtGSQ96Wa+6eimljjkq9HKR0rHlU83vw8aldMOUSJTUDxbcUdcgnJzPaX8/vGWm7vyV7ug==",
"cpu": [
"x64"
],
"cpu": ["x64"],
"dev": true,
"optional": true,
"os": [
"freebsd"
],
"os": ["freebsd"],
"engines": {
"node": ">=12"
}
@@ -161,14 +133,10 @@
"version": "0.16.3",
"resolved": "https://registry.npmjs.org/@esbuild/linux-arm/-/linux-arm-0.16.3.tgz",
"integrity": "sha512-VwswmSYwVAAq6LysV59Fyqk3UIjbhuc6wb3vEcJ7HEJUtFuLK9uXWuFoH1lulEbE4+5GjtHi3MHX+w1gNHdOWQ==",
"cpu": [
"arm"
],
"cpu": ["arm"],
"dev": true,
"optional": true,
"os": [
"linux"
],
"os": ["linux"],
"engines": {
"node": ">=12"
}
@@ -177,14 +145,10 @@
"version": "0.16.3",
"resolved": "https://registry.npmjs.org/@esbuild/linux-arm64/-/linux-arm64-0.16.3.tgz",
"integrity": "sha512-7I3RlsnxEFCHVZNBLb2w7unamgZ5sVwO0/ikE2GaYvYuUQs9Qte/w7TqWcXHtCwxvZx/2+F97ndiUQAWs47ZfQ==",
"cpu": [
"arm64"
],
"cpu": ["arm64"],
"dev": true,
"optional": true,
"os": [
"linux"
],
"os": ["linux"],
"engines": {
"node": ">=12"
}
@@ -193,14 +157,10 @@
"version": "0.16.3",
"resolved": "https://registry.npmjs.org/@esbuild/linux-ia32/-/linux-ia32-0.16.3.tgz",
"integrity": "sha512-X8FDDxM9cqda2rJE+iblQhIMYY49LfvW4kaEjoFbTTQ4Go8G96Smj2w3BRTwA8IHGoi9dPOPGAX63dhuv19UqA==",
"cpu": [
"ia32"
],
"cpu": ["ia32"],
"dev": true,
"optional": true,
"os": [
"linux"
],
"os": ["linux"],
"engines": {
"node": ">=12"
}
@@ -209,14 +169,10 @@
"version": "0.16.3",
"resolved": "https://registry.npmjs.org/@esbuild/linux-loong64/-/linux-loong64-0.16.3.tgz",
"integrity": "sha512-hIbeejCOyO0X9ujfIIOKjBjNAs9XD/YdJ9JXAy1lHA+8UXuOqbFe4ErMCqMr8dhlMGBuvcQYGF7+kO7waj2KHw==",
"cpu": [
"loong64"
],
"cpu": ["loong64"],
"dev": true,
"optional": true,
"os": [
"linux"
],
"os": ["linux"],
"engines": {
"node": ">=12"
}
@@ -225,14 +181,10 @@
"version": "0.16.3",
"resolved": "https://registry.npmjs.org/@esbuild/linux-mips64el/-/linux-mips64el-0.16.3.tgz",
"integrity": "sha512-znFRzICT/V8VZQMt6rjb21MtAVJv/3dmKRMlohlShrbVXdBuOdDrGb+C2cZGQAR8RFyRe7HS6klmHq103WpmVw==",
"cpu": [
"mips64el"
],
"cpu": ["mips64el"],
"dev": true,
"optional": true,
"os": [
"linux"
],
"os": ["linux"],
"engines": {
"node": ">=12"
}
@@ -241,14 +193,10 @@
"version": "0.16.3",
"resolved": "https://registry.npmjs.org/@esbuild/linux-ppc64/-/linux-ppc64-0.16.3.tgz",
"integrity": "sha512-EV7LuEybxhXrVTDpbqWF2yehYRNz5e5p+u3oQUS2+ZFpknyi1NXxr8URk4ykR8Efm7iu04//4sBg249yNOwy5Q==",
"cpu": [
"ppc64"
],
"cpu": ["ppc64"],
"dev": true,
"optional": true,
"os": [
"linux"
],
"os": ["linux"],
"engines": {
"node": ">=12"
}
@@ -257,14 +205,10 @@
"version": "0.16.3",
"resolved": "https://registry.npmjs.org/@esbuild/linux-riscv64/-/linux-riscv64-0.16.3.tgz",
"integrity": "sha512-uDxqFOcLzFIJ+r/pkTTSE9lsCEaV/Y6rMlQjUI9BkzASEChYL/aSQjZjchtEmdnVxDKETnUAmsaZ4pqK1eE5BQ==",
"cpu": [
"riscv64"
],
"cpu": ["riscv64"],
"dev": true,
"optional": true,
"os": [
"linux"
],
"os": ["linux"],
"engines": {
"node": ">=12"
}
@@ -273,14 +217,10 @@
"version": "0.16.3",
"resolved": "https://registry.npmjs.org/@esbuild/linux-s390x/-/linux-s390x-0.16.3.tgz",
"integrity": "sha512-NbeREhzSxYwFhnCAQOQZmajsPYtX71Ufej3IQ8W2Gxskfz9DK58ENEju4SbpIj48VenktRASC52N5Fhyf/aliQ==",
"cpu": [
"s390x"
],
"cpu": ["s390x"],
"dev": true,
"optional": true,
"os": [
"linux"
],
"os": ["linux"],
"engines": {
"node": ">=12"
}
@@ -289,14 +229,10 @@
"version": "0.16.3",
"resolved": "https://registry.npmjs.org/@esbuild/linux-x64/-/linux-x64-0.16.3.tgz",
"integrity": "sha512-SDiG0nCixYO9JgpehoKgScwic7vXXndfasjnD5DLbp1xltANzqZ425l7LSdHynt19UWOcDjG9wJJzSElsPvk0w==",
"cpu": [
"x64"
],
"cpu": ["x64"],
"dev": true,
"optional": true,
"os": [
"linux"
],
"os": ["linux"],
"engines": {
"node": ">=12"
}
@@ -305,14 +241,10 @@
"version": "0.16.3",
"resolved": "https://registry.npmjs.org/@esbuild/netbsd-x64/-/netbsd-x64-0.16.3.tgz",
"integrity": "sha512-AzbsJqiHEq1I/tUvOfAzCY15h4/7Ivp3ff/o1GpP16n48JMNAtbW0qui2WCgoIZArEHD0SUQ95gvR0oSO7ZbdA==",
"cpu": [
"x64"
],
"cpu": ["x64"],
"dev": true,
"optional": true,
"os": [
"netbsd"
],
"os": ["netbsd"],
"engines": {
"node": ">=12"
}
@@ -321,14 +253,10 @@
"version": "0.16.3",
"resolved": "https://registry.npmjs.org/@esbuild/openbsd-x64/-/openbsd-x64-0.16.3.tgz",
"integrity": "sha512-gSABi8qHl8k3Cbi/4toAzHiykuBuWLZs43JomTcXkjMZVkp0gj3gg9mO+9HJW/8GB5H89RX/V0QP4JGL7YEEVg==",
"cpu": [
"x64"
],
"cpu": ["x64"],
"dev": true,
"optional": true,
"os": [
"openbsd"
],
"os": ["openbsd"],
"engines": {
"node": ">=12"
}
@@ -337,14 +265,10 @@
"version": "0.16.3",
"resolved": "https://registry.npmjs.org/@esbuild/sunos-x64/-/sunos-x64-0.16.3.tgz",
"integrity": "sha512-SF9Kch5Ete4reovvRO6yNjMxrvlfT0F0Flm+NPoUw5Z4Q3r1d23LFTgaLwm3Cp0iGbrU/MoUI+ZqwCv5XJijCw==",
"cpu": [
"x64"
],
"cpu": ["x64"],
"dev": true,
"optional": true,
"os": [
"sunos"
],
"os": ["sunos"],
"engines": {
"node": ">=12"
}
@@ -353,14 +277,10 @@
"version": "0.16.3",
"resolved": "https://registry.npmjs.org/@esbuild/win32-arm64/-/win32-arm64-0.16.3.tgz",
"integrity": "sha512-u5aBonZIyGopAZyOnoPAA6fGsDeHByZ9CnEzyML9NqntK6D/xl5jteZUKm/p6nD09+v3pTM6TuUIqSPcChk5gg==",
"cpu": [
"arm64"
],
"cpu": ["arm64"],
"dev": true,
"optional": true,
"os": [
"win32"
],
"os": ["win32"],
"engines": {
"node": ">=12"
}
@@ -369,14 +289,10 @@
"version": "0.16.3",
"resolved": "https://registry.npmjs.org/@esbuild/win32-ia32/-/win32-ia32-0.16.3.tgz",
"integrity": "sha512-GlgVq1WpvOEhNioh74TKelwla9KDuAaLZrdxuuUgsP2vayxeLgVc+rbpIv0IYF4+tlIzq2vRhofV+KGLD+37EQ==",
"cpu": [
"ia32"
],
"cpu": ["ia32"],
"dev": true,
"optional": true,
"os": [
"win32"
],
"os": ["win32"],
"engines": {
"node": ">=12"
}
@@ -385,14 +301,10 @@
"version": "0.16.3",
"resolved": "https://registry.npmjs.org/@esbuild/win32-x64/-/win32-x64-0.16.3.tgz",
"integrity": "sha512-5/JuTd8OWW8UzEtyf19fbrtMJENza+C9JoPIkvItgTBQ1FO2ZLvjbPO6Xs54vk0s5JB5QsfieUEshRQfu7ZHow==",
"cpu": [
"x64"
],
"cpu": ["x64"],
"dev": true,
"optional": true,
"os": [
"win32"
],
"os": ["win32"],
"engines": {
"node": ">=12"
}
@@ -1050,9 +962,7 @@
"dev": true,
"hasInstallScript": true,
"optional": true,
"os": [
"darwin"
],
"os": ["darwin"],
"engines": {
"node": "^8.16.0 || ^10.6.0 || >=11.0.0"
}
@@ -1,14 +1,14 @@
import { createClient } from "@supabase/supabase-js";
import { createClient } from '@supabase/supabase-js'
export default {
async fetch(request, { SUPABASE_URL, SUPABASE_ANON_KEY }) {
const supabase = createClient(SUPABASE_URL, SUPABASE_ANON_KEY);
const supabase = createClient(SUPABASE_URL, SUPABASE_ANON_KEY)
const { data } = await supabase.from("articles").select("*");
const { data } = await supabase.from('articles').select('*')
return new Response(JSON.stringify(data), {
headers: {
"Content-Type": "application/json",
'Content-Type': 'application/json',
},
});
})
},
};
}