tlsclientwrapper
Advanced tools
Comparing version 1.0.4 to 1.0.5
@@ -118,3 +118,7 @@ import Client from "./utils/client.js"; | ||
terminate() { | ||
return this.pool.terminate(); | ||
try { | ||
return this.pool?.terminate?.(); | ||
} catch (error) { | ||
return undefined; | ||
} | ||
} | ||
@@ -121,0 +125,0 @@ |
{ | ||
"name": "tlsclientwrapper", | ||
"version": "1.0.4", | ||
"version": "1.0.5", | ||
"main": "index.js", | ||
@@ -5,0 +5,0 @@ "scripts": { |
@@ -136,3 +136,3 @@ import ffiRs from 'ffi-rs'; | ||
return workerpool.pool(path.join(__dirname, 'client.js'), { | ||
}); | ||
}); | ||
} | ||
@@ -144,5 +144,5 @@ } | ||
// For the workerpool to work, you need to run the following code | ||
const client = new Client(); | ||
if (!workerpool.isMainThread) { | ||
const client = new Client(); | ||
client.startWorker(); | ||
} |
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
AI-detected potential code anomaly
Supply chain riskAI has identified unusual behaviors that may pose a security risk.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
42962
785
1