From 055c60931a1b12ea4d0b08c2d4fa6d9a19e29209 Mon Sep 17 00:00:00 2001 From: Dave Norman Date: Sat, 16 Nov 2024 22:21:25 -0600 Subject: [PATCH] review feedback updates --- packages/adapter-sqlite/package.json | 4 ---- packages/core/src/settings.ts | 2 ++ packages/core/src/tests/token.test.ts | 6 ------ packages/plugin-solana/src/index.ts | 4 +--- 4 files changed, 3 insertions(+), 13 deletions(-) diff --git a/packages/adapter-sqlite/package.json b/packages/adapter-sqlite/package.json index 56491b57..9fa7c7a5 100644 --- a/packages/adapter-sqlite/package.json +++ b/packages/adapter-sqlite/package.json @@ -19,9 +19,5 @@ }, "peerDependencies": { "whatwg-url": "7.1.0" - }, - "exports": { - ".": "./dist/index.js", - "./sqlite_vec": "./dist/sqlite_vec.js" } } diff --git a/packages/core/src/settings.ts b/packages/core/src/settings.ts index f915615a..9f4f7c75 100644 --- a/packages/core/src/settings.ts +++ b/packages/core/src/settings.ts @@ -46,6 +46,8 @@ export function loadEnvConfig() { if (result.error) { throw new Error(`Error loading .env file: ${result.error}`); } + + console.log(`Loaded .env file from: ${envPath}`); return process.env; } diff --git a/packages/core/src/tests/token.test.ts b/packages/core/src/tests/token.test.ts index e59eb3c7..5b5f7d5b 100644 --- a/packages/core/src/tests/token.test.ts +++ b/packages/core/src/tests/token.test.ts @@ -1,8 +1,3 @@ -import { loadEnvConfig } from '../settings'; - -// Load the environment variables -loadEnvConfig(); - // Now import other modules import { createRuntime } from "../test_resources/createRuntime"; import { TokenProvider, WalletProvider, Connection, PublicKey } from "@ai16z/plugin-solana"; @@ -70,7 +65,6 @@ describe("TokenProvider Tests", () => { top10HolderPercent: 20, }); - console.log({ securityData }); // Ensure the mock was called expect(fetchSpy).toHaveBeenCalled(); diff --git a/packages/plugin-solana/src/index.ts b/packages/plugin-solana/src/index.ts index 8f0c2343..6fda3384 100644 --- a/packages/plugin-solana/src/index.ts +++ b/packages/plugin-solana/src/index.ts @@ -14,10 +14,8 @@ import { trustScoreProvider } from "./providers/trustScoreProvider.ts"; import { trustEvaluator } from "./evaluators/trust.ts"; import { TokenProvider } from "./providers/token.ts"; import { WalletProvider } from "./providers/wallet.ts"; -import { Connection } from "@solana/web3.js"; -import { PublicKey } from "@solana/web3.js"; -export { TokenProvider, WalletProvider, Connection, PublicKey }; +export { TokenProvider, WalletProvider }; export const solanaPlugin: Plugin = { name: "solana",