From f6046c015b2cb0800f2217c12272f8a50b8efbff Mon Sep 17 00:00:00 2001 From: Alex Gleason Date: Fri, 18 Oct 2024 13:22:34 -0500 Subject: [PATCH] Remove @std/dotenv --- deno.json | 1 - deno.lock | 5 ----- src/config.ts | 8 -------- 3 files changed, 14 deletions(-) diff --git a/deno.json b/deno.json index 243b83be..0de69b95 100644 --- a/deno.json +++ b/deno.json @@ -54,7 +54,6 @@ "@std/assert": "jsr:@std/assert@^0.225.1", "@std/cli": "jsr:@std/cli@^0.223.0", "@std/crypto": "jsr:@std/crypto@^0.224.0", - "@std/dotenv": "jsr:@std/dotenv@^0.224.0", "@std/encoding": "jsr:@std/encoding@^0.224.0", "@std/fs": "jsr:@std/fs@^0.229.3", "@std/json": "jsr:@std/json@^0.223.0", diff --git a/deno.lock b/deno.lock index 24c4ed15..c0e4711c 100644 --- a/deno.lock +++ b/deno.lock @@ -59,7 +59,6 @@ "jsr:@std/bytes@^1.0.2-rc.3": "1.0.2", "jsr:@std/cli@0.223": "0.223.0", "jsr:@std/crypto@0.224": "0.224.0", - "jsr:@std/dotenv@0.224": "0.224.2", "jsr:@std/encoding@0.213.1": "0.213.1", "jsr:@std/encoding@0.224": "0.224.3", "jsr:@std/encoding@0.224.0": "0.224.0", @@ -527,9 +526,6 @@ "@std/dotenv@0.224.0": { "integrity": "d9234cdf551507dcda60abb6c474289843741d8c07ee8ce540c60f5c1b220a1d" }, - "@std/dotenv@0.224.2": { - "integrity": "29081695357e4534696c9e986b2560be29c141ccf52daa32b6c20ff5b5c64ab9" - }, "@std/encoding@0.213.1": { "integrity": "fcbb6928713dde941a18ca5db88ca1544d0755ec8fb20fe61e2dc8144b390c62" }, @@ -2101,7 +2097,6 @@ "jsr:@std/assert@~0.225.1", "jsr:@std/cli@0.223", "jsr:@std/crypto@0.224", - "jsr:@std/dotenv@0.224", "jsr:@std/encoding@0.224", "jsr:@std/fs@~0.229.3", "jsr:@std/json@0.223", diff --git a/src/config.ts b/src/config.ts index 530ecbb2..9860b394 100644 --- a/src/config.ts +++ b/src/config.ts @@ -1,6 +1,5 @@ import os from 'node:os'; import ISO6391, { LanguageCode } from 'iso-639-1'; -import * as dotenv from '@std/dotenv'; import { getPublicKey, nip19 } from 'nostr-tools'; import { z } from 'zod'; import { decodeBase64 } from '@std/encoding/base64'; @@ -8,13 +7,6 @@ import { encodeBase64Url } from '@std/encoding/base64url'; import { getEcdsaPublicKey } from '@/utils/crypto.ts'; -/** Load environment config from `.env` */ -await dotenv.load({ - export: true, - defaultsPath: null, - examplePath: null, -}); - /** Application-wide configuration. */ class Conf { private static _pubkey: string | undefined;