Skip to content

Commit

Permalink
fix: upgrade Typebox and cross-env
Browse files Browse the repository at this point in the history
  • Loading branch information
whilefoo committed Nov 20, 2024
1 parent ec0cf48 commit f6ca42a
Show file tree
Hide file tree
Showing 3 changed files with 9 additions and 4 deletions.
4 changes: 2 additions & 2 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@
"prepare": "husky install",
"supabase:generate:local": "supabase gen types typescript --local > src/types/database.ts",
"supabase:generate:remote": "cross-env-shell \"supabase gen types typescript --project-id $SUPABASE_PROJECT_ID --schema public > src/types/database.ts\"",
"test": "jest --setupFiles dotenv/config --coverage"
"test": "cross-env NODE_OPTIONS=\"$NODE_OPTIONS --experimental-vm-modules\" jest --setupFiles dotenv/config --coverage"
},
"keywords": [
"typescript",
Expand All @@ -31,7 +31,7 @@
],
"dependencies": {
"@octokit/rest": "^20.1.0",
"@sinclair/typebox": "^0.33.21",
"@sinclair/typebox": "0.34.3",
"@supabase/supabase-js": "2.43.2",
"@ubiquity-os/plugin-sdk": "^1.0.11",
"@ubiquity-os/ubiquity-os-logger": "^1.3.2",
Expand Down
4 changes: 2 additions & 2 deletions src/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,7 @@ import { Database } from "./types/database";
import { Env, envSchema } from "./types/env";
import { PluginSettings, pluginSettingsSchema } from "./types/plugin-input";
import { Command } from "./types/command";
import { Manifest } from "@ubiquity-os/plugin-sdk/manifest";

export default {
async fetch(request: Request, env: Env, executionContext: ExecutionContext) {
Expand All @@ -17,8 +18,7 @@ export default {
const supabase = createClient<Database>(context.env.SUPABASE_URL, context.env.SUPABASE_KEY);
return run({ ...context, adapters: createAdapters(supabase, context) });
},
// @ts-expect-error strings cannot be assigned to events
manifest,
manifest as Manifest,
{ kernelPublicKey: env.KERNEL_PUBLIC_KEY, settingsSchema: pluginSettingsSchema, envSchema: envSchema }
).fetch(request, env, executionContext);
},
Expand Down
5 changes: 5 additions & 0 deletions yarn.lock
Original file line number Diff line number Diff line change
Expand Up @@ -1808,6 +1808,11 @@
resolved "https://registry.yarnpkg.com/@pkgr/core/-/core-0.1.1.tgz#1ec17e2edbec25c8306d424ecfbf13c7de1aaa31"
integrity sha512-cq8o4cWH0ibXh9VGi5P20Tu9XF/0fFXl9EUinr9QfTM7a7p0oTA4iJRCQWppXR1Pg8dSM0UCItCkPwsk9qWWYA==

"@sinclair/[email protected]":
version "0.34.3"
resolved "https://registry.yarnpkg.com/@sinclair/typebox/-/typebox-0.34.3.tgz#530e4a1a1b45985576312f2a3f4a45c6100044b0"
integrity sha512-fEgncmnqn6WGibPn34deH5PwmMTuNCZ2clwlwevgFn8rP0l38zzWRg3KVYhoOZwkZ2Ew3yhZ/STdGDuMig66oQ==

"@sinclair/typebox@^0.27.8":
version "0.27.8"
resolved "https://registry.yarnpkg.com/@sinclair/typebox/-/typebox-0.27.8.tgz#6667fac16c436b5434a387a34dedb013198f6e6e"
Expand Down

0 comments on commit f6ca42a

Please sign in to comment.