tlsclientwrapper
Advanced tools
Comparing version 2.0.3 to 2.0.4
{ | ||
"name": "tlsclientwrapper", | ||
"version": "2.0.3", | ||
"version": "2.0.4", | ||
"main": "index.js", | ||
@@ -5,0 +5,0 @@ "scripts": { |
@@ -103,2 +103,5 @@ import koffi from 'koffi'; | ||
return workerpool.pool(path.join(__dirname, 'client.js'), { | ||
workerThreadOpts: { | ||
argv: [this.TLS_LIB_PATH] | ||
} | ||
}) | ||
@@ -112,5 +115,12 @@ } | ||
if (!workerpool.isMainThread) { | ||
const client = new Client(); | ||
while (!fs.existsSync(process.argv[2])) { | ||
// Wait for the library to be downloaded | ||
setTimeout(() => { }, 100); | ||
} | ||
const client = new Client({ | ||
customLibraryPath: process.argv[2] | ||
}); | ||
await client.open(); | ||
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
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
47700
847