Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

chore: update dependencies 📦 #3982

Merged
merged 1 commit into from
Nov 11, 2023
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Jump to
Jump to file
Failed to load files.
Diff view
Diff view
2 changes: 1 addition & 1 deletion packages/workers/groups/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@
"@hey/data": "workspace:*",
"@hey/lib": "workspace:*",
"@hey/supabase": "workspace:*",
"@tsndr/cloudflare-worker-jwt": "^2.2.5",
"@tsndr/cloudflare-worker-jwt": "^2.2.6",
"itty-router": "^4.0.23",
"zod": "^3.22.4"
},
Expand Down
2 changes: 1 addition & 1 deletion packages/workers/live/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@
"dependencies": {
"@hey/data": "workspace:*",
"@hey/lib": "workspace:*",
"@tsndr/cloudflare-worker-jwt": "^2.2.5",
"@tsndr/cloudflare-worker-jwt": "^2.2.6",
"itty-router": "^4.0.23",
"zod": "^3.22.4"
},
Expand Down
2 changes: 1 addition & 1 deletion packages/workers/preferences/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@
"@hey/data": "workspace:*",
"@hey/lib": "workspace:*",
"@hey/supabase": "workspace:*",
"@tsndr/cloudflare-worker-jwt": "^2.2.5",
"@tsndr/cloudflare-worker-jwt": "^2.2.6",
"itty-router": "^4.0.23",
"zod": "^3.22.4"
},
Expand Down
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
import parseJwt from '@hey/lib/parseJwt';
import response from '@hey/lib/response';
import createSupabaseClient from '@hey/supabase/createSupabaseClient';
import jwt from '@tsndr/cloudflare-worker-jwt';

import { GARDENER_FEATURE_ID } from '../constants';
import type { WorkerRequest } from '../types';
Expand All @@ -17,8 +17,7 @@ const validateIsGardener = async (request: WorkerRequest) => {
return response({ success: false, error: 'No proper headers provided!' });
}

const payload = parseJwt(accessToken);

const { payload } = jwt.decode(accessToken);
const client = createSupabaseClient(request.env.SUPABASE_KEY);

const { data, error } = await client
Expand Down
5 changes: 2 additions & 3 deletions packages/workers/preferences/src/helpers/validateIsStaff.ts
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
import parseJwt from '@hey/lib/parseJwt';
import response from '@hey/lib/response';
import createSupabaseClient from '@hey/supabase/createSupabaseClient';
import jwt from '@tsndr/cloudflare-worker-jwt';

import { STAFF_FEATURE_ID } from '../constants';
import type { WorkerRequest } from '../types';
Expand All @@ -17,8 +17,7 @@ const validateIsStaff = async (request: WorkerRequest) => {
return response({ success: false, error: 'No proper headers provided!' });
}

const payload = parseJwt(accessToken);

const { payload } = jwt.decode(accessToken);
const client = createSupabaseClient(request.env.SUPABASE_KEY);

const { data, error } = await client
Expand Down
2 changes: 1 addition & 1 deletion packages/workers/staff-picks/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@
"@hey/data": "workspace:*",
"@hey/lib": "workspace:*",
"@hey/supabase": "workspace:*",
"@tsndr/cloudflare-worker-jwt": "^2.2.5",
"@tsndr/cloudflare-worker-jwt": "^2.2.6",
"itty-router": "^4.0.23",
"zod": "^3.22.4"
},
Expand Down
25 changes: 15 additions & 10 deletions pnpm-lock.yaml

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.