From 0b6b62f3b38ef5b1065d1b5e6a3ca9644a8bb72f Mon Sep 17 00:00:00 2001 From: Alex Gleason Date: Wed, 15 May 2024 20:27:54 -0500 Subject: [PATCH] policyWorker: import deno-safe-fetch --- deno.json | 1 + src/deps.ts | 2 +- src/workers/policy.worker.ts | 1 + 3 files changed, 3 insertions(+), 1 deletion(-) diff --git a/deno.json b/deno.json index 399f474..c8eba2a 100644 --- a/deno.json +++ b/deno.json @@ -34,6 +34,7 @@ "@std/media-types": "jsr:@std/media-types@^0.224.0", "@std/streams": "jsr:@std/streams@^0.223.0", "comlink": "npm:comlink@^4.4.1", + "deno-safe-fetch": "https://gitlab.com/soapbox-pub/deno-safe-fetch/-/raw/v1.0.0/load.ts", "fast-stable-stringify": "npm:fast-stable-stringify@^1.0.0", "formdata-helper": "npm:formdata-helper@^0.3.0", "hono": "https://deno.land/x/hono@v3.10.1/mod.ts", diff --git a/src/deps.ts b/src/deps.ts index 7a8fa9a..46d8fec 100644 --- a/src/deps.ts +++ b/src/deps.ts @@ -1,4 +1,4 @@ -import 'https://gitlab.com/soapbox-pub/deno-safe-fetch/-/raw/v1.0.0/load.ts'; +import 'deno-safe-fetch'; // @deno-types="npm:@types/lodash@4.14.194" export { default as lodash } from 'https://esm.sh/lodash@4.17.21'; // @deno-types="npm:@types/mime@3.0.0" diff --git a/src/workers/policy.worker.ts b/src/workers/policy.worker.ts index 146a116..4e4bcae 100644 --- a/src/workers/policy.worker.ts +++ b/src/workers/policy.worker.ts @@ -1,3 +1,4 @@ +import 'deno-safe-fetch'; import { NostrEvent, NostrRelayOK, NPolicy } from '@nostrify/nostrify'; import { ReadOnlyPolicy } from '@nostrify/nostrify/policies'; import * as Comlink from 'comlink';