From 08ed52a57b5d37bc5a336a146dc8f7287eaddefc Mon Sep 17 00:00:00 2001 From: Alex Gleason Date: Wed, 1 May 2024 16:37:01 -0500 Subject: [PATCH] formdata-helper alias --- deno.json | 1 + deno.lock | 1 + src/deps.ts | 2 -- src/utils/api.ts | 2 +- 4 files changed, 3 insertions(+), 3 deletions(-) diff --git a/deno.json b/deno.json index 9ea8d73c..24bc364e 100644 --- a/deno.json +++ b/deno.json @@ -31,6 +31,7 @@ "@std/streams": "jsr:@std/streams@^0.223.0", "comlink": "npm:comlink@^4.4.1", "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", "hono/middleware": "https://deno.land/x/hono@v3.10.1/middleware.ts", "iso-639-1": "npm:iso-639-1@2.1.15", diff --git a/deno.lock b/deno.lock index e568a59e..494d289a 100644 --- a/deno.lock +++ b/deno.lock @@ -1546,6 +1546,7 @@ "npm:@noble/secp256k1@^2.0.0", "npm:comlink@^4.4.1", "npm:fast-stable-stringify@^1.0.0", + "npm:formdata-helper@^0.3.0", "npm:iso-639-1@2.1.15", "npm:kysely@^0.27.3", "npm:linkify-plugin-hashtag@^4.1.1", diff --git a/src/deps.ts b/src/deps.ts index 09eb5b5d..16723657 100644 --- a/src/deps.ts +++ b/src/deps.ts @@ -1,5 +1,4 @@ import 'https://gitlab.com/soapbox-pub/deno-safe-fetch/-/raw/v1.0.0/load.ts'; -export { parseFormData } from 'npm:formdata-helper@^0.3.0'; // @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" @@ -19,4 +18,3 @@ export { SqliteError, } from 'https://raw.githubusercontent.com/alexgleason/deno-sqlite/325f66d8c395e7f6f5ee78ebfa42a0eeea4a942b/mod.ts'; export { Database as DenoSqlite3 } from 'https://deno.land/x/sqlite3@0.9.1/mod.ts'; -export * as cron from 'https://deno.land/x/deno_cron@v1.0.0/cron.ts'; diff --git a/src/utils/api.ts b/src/utils/api.ts index 85d57832..72f4c3e5 100644 --- a/src/utils/api.ts +++ b/src/utils/api.ts @@ -1,13 +1,13 @@ import { NostrEvent, NostrFilter } from '@nostrify/nostrify'; import Debug from '@soapbox/stickynotes/debug'; import { type Context, HTTPException } from 'hono'; +import { parseFormData } from 'formdata-helper'; import { EventTemplate } from 'nostr-tools'; import * as TypeFest from 'type-fest'; import { z } from 'zod'; import { type AppContext } from '@/app.ts'; import { Conf } from '@/config.ts'; -import { parseFormData } from '@/deps.ts'; import * as pipeline from '@/pipeline.ts'; import { AdminSigner } from '@/signers/AdminSigner.ts'; import { APISigner } from '@/signers/APISigner.ts';