@civic/api-key-hook
Advanced tools
| > @civic/api-key-hook@0.1.2 build /home/runner/work/mcp-hooks/mcp-hooks/packages/api-key-hook | ||
| > @civic/api-key-hook@0.2.0 build /home/runner/work/mcp-hooks/mcp-hooks/packages/api-key-hook | ||
| > tsc | ||
+1
-1
@@ -6,3 +6,3 @@ /** | ||
| */ | ||
| export type { ApiKeyHookConfig } from "./hook.js"; | ||
| export { ApiKeyHook } from "./hook.js"; | ||
| export type { ApiKeyHookConfig } from "./hook.js"; |
+1
-1
@@ -10,3 +10,3 @@ /** | ||
| // Configuration | ||
| const PORT = process.env.PORT ? Number.parseInt(process.env.PORT) : 33010; | ||
| const PORT = process.env.PORT ? Number.parseInt(process.env.PORT, 10) : 33010; | ||
| const API_KEY = process.env.API_KEY || "test-api-key-12345"; | ||
@@ -13,0 +13,0 @@ const HEADER_NAME = process.env.API_KEY_HEADER || "X-API-Key"; |
+7
-7
| { | ||
| "name": "@civic/api-key-hook", | ||
| "version": "0.1.2", | ||
| "version": "0.2.0", | ||
| "description": "MCP hook that adds API key authentication headers to requests", | ||
@@ -11,10 +11,10 @@ "author": "Civic", | ||
| "dependencies": { | ||
| "@civic/hook-common": "0.8.0" | ||
| "@civic/hook-common": "0.9.0" | ||
| }, | ||
| "devDependencies": { | ||
| "@biomejs/biome": "^1.9.4", | ||
| "@types/node": "^22.10.2", | ||
| "tsx": "^4.19.4", | ||
| "typescript": "^5.7.2", | ||
| "vitest": "^2.1.8" | ||
| "@biomejs/biome": "^2.3.10", | ||
| "@types/node": "^25.0.3", | ||
| "tsx": "^4.21.0", | ||
| "typescript": "^5.9.3", | ||
| "vitest": "^4.0.16" | ||
| }, | ||
@@ -21,0 +21,0 @@ "scripts": { |
+2
-2
@@ -12,3 +12,3 @@ /** | ||
| // Configuration | ||
| const PORT = process.env.PORT ? Number.parseInt(process.env.PORT) : 33010; | ||
| const PORT = process.env.PORT ? Number.parseInt(process.env.PORT, 10) : 33010; | ||
| const API_KEY = process.env.API_KEY || "test-api-key-12345"; | ||
@@ -34,4 +34,4 @@ const HEADER_NAME = process.env.API_KEY_HEADER || "X-API-Key"; | ||
| export type { ApiKeyHookConfig } from "./hook.js"; | ||
| // Export for programmatic use | ||
| export { ApiKeyHook } from "./hook.js"; | ||
| export type { ApiKeyHookConfig } from "./hook.js"; |
Environment variable access
Supply chain riskPackage accesses environment variables, which may be a sign of credential stuffing or data theft.
Found 3 instances in 1 package
Environment variable access
Supply chain riskPackage accesses environment variables, which may be a sign of credential stuffing or data theft.
Found 3 instances in 1 package
10783
0.08%+ Added
- Removed
Updated