Skip to content

Commit

Permalink
use deno import maps
Browse files Browse the repository at this point in the history
  • Loading branch information
martypdx committed Nov 3, 2023
1 parent 971b0d9 commit 2a7c0b5
Show file tree
Hide file tree
Showing 5 changed files with 12 additions and 10 deletions.
5 changes: 5 additions & 0 deletions deno.jsonc
Expand Up @@ -11,5 +11,10 @@
"include": [
"supabase/functions"
]
},
"imports": {
"@supabase": "https://esm.sh/@supabase/supabase-js@2/",
"@supabase/types": "https://esm.sh/@supabase/supabase-js@2/dist/module/index.d.ts",
"@http/status": "https://deno.land/std/http/status.ts"
}
}
3 changes: 2 additions & 1 deletion deno.lock
Expand Up @@ -4,6 +4,7 @@
"https://deno.land/std/http/http_status.ts": "https://deno.land/std@0.205.0/http/http_status.ts",
"https://deno.land/std/http/status.ts": "https://deno.land/std@0.205.0/http/status.ts",
"https://esm.sh/@supabase/supabase-js@2": "https://esm.sh/@supabase/supabase-js@2.38.4",
"https://esm.sh/@supabase/supabase-js@2/": "https://esm.sh/@supabase/supabase-js@2.38.4/",
"https://esm.sh/@supabase/supabase-js@2/dist/module/index.d.ts": "https://esm.sh/v133/@supabase/supabase-js@2.38.4/dist/module/index.d.ts"
},
"remote": {
Expand Down Expand Up @@ -35,4 +36,4 @@
"https://deno.land/x/lz4@v0.1.2/mod.ts": "4decfc1a3569d03fd1813bd39128b71c8f082850fe98ecfdde20025772916582",
"https://deno.land/x/lz4@v0.1.2/wasm.js": "b9c65605327ba273f0c76a6dc596ec534d4cda0f0225d7a94ebc606782319e46"
}
}
}
2 changes: 1 addition & 1 deletion supabase/functions/_lib/session.ts
Expand Up @@ -2,7 +2,7 @@ import {
PostgrestMaybeSingleResponse,
PostgrestSingleResponse,
SupabaseClient,
} from 'https://esm.sh/@supabase/supabase-js@2/dist/module/index.d.ts';
} from '@supabase/types';
import type { Database } from '../schema.gen.ts';
import type { Healer, Service, Step } from '../database.types.ts';
import { handleResponse } from './supabase.ts';
Expand Down
7 changes: 2 additions & 5 deletions supabase/functions/_lib/supabase.ts
@@ -1,9 +1,6 @@
import type { Database } from '../schema.gen.ts';
import {
PostgrestSingleResponse,
SupabaseClient,
} from 'https://esm.sh/@supabase/supabase-js@2/dist/module/index.d.ts';
import { createClient as create } from 'https://esm.sh/@supabase/supabase-js@2';
import { PostgrestSingleResponse, SupabaseClient } from '@supabase/types';
import { createClient as create } from '@supabase';

export function createClient(
Authorization: string,
Expand Down
5 changes: 2 additions & 3 deletions supabase/functions/play/index.ts
@@ -1,7 +1,6 @@
// import { streamCompletion } from '../_lib/openai.ts';
import { handleCors } from '../_lib/cors.ts';
import type { SupabaseClient } from 'https://esm.sh/@supabase/supabase-js@2/dist/module/index.d.ts';
import { Status } from 'https://deno.land/std/http/status.ts';
import type { SupabaseClient } from '@supabase/types';
import { Status } from '@http/status';
import { createClient } from '../_lib/supabase.ts';
import { SessionManager } from '../_lib/session.ts';
import { createMessages } from '../_lib/prompt.ts';
Expand Down

0 comments on commit 2a7c0b5

Please sign in to comment.