Skip to content

Commit

Permalink
review feedback updates
Browse files Browse the repository at this point in the history
  • Loading branch information
normand1 committed Nov 17, 2024
1 parent 5a338d0 commit 055c609
Show file tree
Hide file tree
Showing 4 changed files with 3 additions and 13 deletions.
4 changes: 0 additions & 4 deletions packages/adapter-sqlite/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -19,9 +19,5 @@
},
"peerDependencies": {
"whatwg-url": "7.1.0"
},
"exports": {
".": "./dist/index.js",
"./sqlite_vec": "./dist/sqlite_vec.js"
}
}
2 changes: 2 additions & 0 deletions packages/core/src/settings.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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;
}

Expand Down
6 changes: 0 additions & 6 deletions packages/core/src/tests/token.test.ts
Original file line number Diff line number Diff line change
@@ -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";
Expand Down Expand Up @@ -70,7 +65,6 @@ describe("TokenProvider Tests", () => {
top10HolderPercent: 20,
});

console.log({ securityData });
// Ensure the mock was called
expect(fetchSpy).toHaveBeenCalled();

Expand Down
4 changes: 1 addition & 3 deletions packages/plugin-solana/src/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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",
Expand Down

0 comments on commit 055c609

Please sign in to comment.