@harnessa-fe/node-runtime
Advanced tools
+2
-0
@@ -14,2 +14,4 @@ /** | ||
| * HARNESSA_FE_MCP_URL — optional; daemon WS URL (default ws://127.0.0.1:47729) | ||
| * HARNESSA_FE_TOKEN — optional; appended to mcpUrl as ?token= when set | ||
| * (use this when the daemon runs in LAN mode) | ||
| * HARNESSA_FE_NODE_CONSOLE — set to '1' to enable console capture | ||
@@ -16,0 +18,0 @@ * NODE_ENV — only registers in 'development' |
+11
-1
@@ -14,2 +14,4 @@ /** | ||
| * HARNESSA_FE_MCP_URL — optional; daemon WS URL (default ws://127.0.0.1:47729) | ||
| * HARNESSA_FE_TOKEN — optional; appended to mcpUrl as ?token= when set | ||
| * (use this when the daemon runs in LAN mode) | ||
| * HARNESSA_FE_NODE_CONSOLE — set to '1' to enable console capture | ||
@@ -20,2 +22,10 @@ * NODE_ENV — only registers in 'development' | ||
| const projectId = process.env.HARNESSA_FE_PROJECT_ID; | ||
| function withToken(url, token) { | ||
| if (!url || !token) | ||
| return url; | ||
| if (/[?&]token=/.test(url)) | ||
| return url; | ||
| const sep = url.includes('?') ? '&' : '?'; | ||
| return `${url}${sep}token=${encodeURIComponent(token)}`; | ||
| } | ||
| if (process.env.NODE_ENV === 'development' && projectId) { | ||
@@ -26,4 +36,4 @@ register({ | ||
| buildId: process.env.HARNESSA_FE_BUILD_ID, | ||
| mcpUrl: process.env.HARNESSA_FE_MCP_URL, | ||
| mcpUrl: withToken(process.env.HARNESSA_FE_MCP_URL, process.env.HARNESSA_FE_TOKEN), | ||
| }); | ||
| } |
+2
-2
| { | ||
| "name": "@harnessa-fe/node-runtime", | ||
| "version": "1.0.2", | ||
| "version": "2.0.0", | ||
| "description": "Node.js server-side SDK for Harnessa-FE. Captures server errors, console output, and Route Handler traces — links them to the browser session via a shared sessionId.", | ||
@@ -39,3 +39,3 @@ "type": "module", | ||
| "dependencies": { | ||
| "@harnessa-fe/protocol": "1.0.2" | ||
| "@harnessa-fe/protocol": "2.0.0" | ||
| }, | ||
@@ -42,0 +42,0 @@ "peerDependencies": { |
+10
-1
@@ -14,2 +14,4 @@ /** | ||
| * HARNESSA_FE_MCP_URL — optional; daemon WS URL (default ws://127.0.0.1:47729) | ||
| * HARNESSA_FE_TOKEN — optional; appended to mcpUrl as ?token= when set | ||
| * (use this when the daemon runs in LAN mode) | ||
| * HARNESSA_FE_NODE_CONSOLE — set to '1' to enable console capture | ||
@@ -23,2 +25,9 @@ * NODE_ENV — only registers in 'development' | ||
| function withToken(url: string | undefined, token: string | undefined): string | undefined { | ||
| if (!url || !token) return url; | ||
| if (/[?&]token=/.test(url)) return url; | ||
| const sep = url.includes('?') ? '&' : '?'; | ||
| return `${url}${sep}token=${encodeURIComponent(token)}`; | ||
| } | ||
| if (process.env.NODE_ENV === 'development' && projectId) { | ||
@@ -29,4 +38,4 @@ register({ | ||
| buildId: process.env.HARNESSA_FE_BUILD_ID, | ||
| mcpUrl: process.env.HARNESSA_FE_MCP_URL, | ||
| mcpUrl: withToken(process.env.HARNESSA_FE_MCP_URL, process.env.HARNESSA_FE_TOKEN), | ||
| }); | ||
| } |
Network access
Supply chain riskThis module accesses the network.
Found 1 instance in 1 package
Environment variable access
Supply chain riskPackage accesses environment variables, which may be a sign of credential stuffing or data theft.
Found 11 instances in 1 package
Long strings
Supply chain riskContains long string literals, which may be a sign of obfuscated or packed code.
Found 1 instance in 1 package
URL strings
Supply chain riskPackage contains fragments of external URLs or IP addresses, which the package may be accessing at runtime.
Found 1 instance in 1 package
Network access
Supply chain riskThis module accesses the network.
Found 1 instance in 1 package
Environment variable access
Supply chain riskPackage accesses environment variables, which may be a sign of credential stuffing or data theft.
Found 10 instances in 1 package
Long strings
Supply chain riskContains long string literals, which may be a sign of obfuscated or packed code.
Found 1 instance in 1 package
URL strings
Supply chain riskPackage contains fragments of external URLs or IP addresses, which the package may be accessing at runtime.
Found 1 instance in 1 package
95435
1.15%2069
0.98%62
3.33%+ Added
- Removed
Updated