@contrast/agent
Advanced tools
Comparing version 5.4.1 to 5.4.2
@@ -19,2 +19,3 @@ /* | ||
const process = require('process'); | ||
const W = require('node:worker_threads'); | ||
const semver = require('semver'); | ||
@@ -120,2 +121,8 @@ const _agentify = require('@contrast/agentify'); | ||
async function startAgent({ type = 'cjs' } = {}) { | ||
if (!W.isMainThread) { | ||
// todo : support workers | ||
console.warn('worker thread not instrumented by contrast'); | ||
throw new Error(); | ||
} | ||
const core = initCore(); | ||
@@ -122,0 +129,0 @@ const agentify = _agentify(core); |
{ | ||
"name": "@contrast/agent", | ||
"version": "5.4.1", | ||
"version": "5.4.2", | ||
"description": "Assess and Protect agents for Node.js", | ||
@@ -24,11 +24,11 @@ "license": "SEE LICENSE IN LICENSE", | ||
"dependencies": { | ||
"@contrast/agentify": "1.22.1", | ||
"@contrast/agentify": "1.22.2", | ||
"@contrast/architecture-components": "1.17.0", | ||
"@contrast/assess": "1.26.0", | ||
"@contrast/assess": "1.26.1", | ||
"@contrast/library-analysis": "1.18.0", | ||
"@contrast/protect": "1.34.1", | ||
"@contrast/protect": "1.34.2", | ||
"@contrast/route-coverage": "1.17.0", | ||
"@contrast/telemetry": "1.5.2", | ||
"@contrast/telemetry": "1.5.3", | ||
"semver": "^7.3.7" | ||
} | ||
} |
14372
175
+ Added@contrast/agentify@1.22.2(transitive)
+ Added@contrast/assess@1.26.1(transitive)
+ Added@contrast/config@1.26.2(transitive)
+ Added@contrast/protect@1.34.2(transitive)
+ Added@contrast/telemetry@1.5.3(transitive)
- Removed@contrast/agentify@1.22.1(transitive)
- Removed@contrast/assess@1.26.0(transitive)
- Removed@contrast/config@1.26.1(transitive)
- Removed@contrast/protect@1.34.1(transitive)
- Removed@contrast/telemetry@1.5.2(transitive)
Updated@contrast/agentify@1.22.2
Updated@contrast/assess@1.26.1
Updated@contrast/protect@1.34.2
Updated@contrast/telemetry@1.5.3