@wixc3/engine-runtime-node
Advanced tools
Comparing version 44.0.4 to 44.0.5
@@ -170,8 +170,10 @@ "use strict"; | ||
host.removeEventListener('message', handleClientMessage); | ||
try { | ||
await (0, micro_rpc_1.rpcCall)(worker, 'terminate', 15000); | ||
if (process.env.ENGINE_GRACEFUL_TERMINATION !== 'false') { | ||
try { | ||
await (0, micro_rpc_1.rpcCall)(worker, 'terminate', 15000); | ||
} | ||
catch (e) { | ||
console.error(`failed terminating environment gracefully ${envName}, terminating worker.`, e); | ||
} | ||
} | ||
catch (e) { | ||
console.error(`failed terminating environment gracefully ${envName}, terminating worker.`, e); | ||
} | ||
await worker.terminate(); | ||
@@ -178,0 +180,0 @@ }, |
{ | ||
"name": "@wixc3/engine-runtime-node", | ||
"version": "44.0.4", | ||
"version": "44.0.5", | ||
"main": "dist/index.js", | ||
@@ -15,3 +15,3 @@ "exports": { | ||
"@wixc3/common": "^16.2.0", | ||
"@wixc3/engine-core": "^44.0.4", | ||
"@wixc3/engine-core": "^44.0.5", | ||
"@wixc3/patterns": "^16.2.0", | ||
@@ -18,0 +18,0 @@ "create-listening-server": "^2.1.0", |
@@ -225,6 +225,8 @@ import { | ||
host.removeEventListener('message', handleClientMessage); | ||
try { | ||
await rpcCall(worker, 'terminate', 15000); | ||
} catch (e) { | ||
console.error(`failed terminating environment gracefully ${envName}, terminating worker.`, e); | ||
if (process.env.ENGINE_GRACEFUL_TERMINATION !== 'false') { | ||
try { | ||
await rpcCall(worker, 'terminate', 15000); | ||
} catch (e) { | ||
console.error(`failed terminating environment gracefully ${envName}, terminating worker.`, e); | ||
} | ||
} | ||
@@ -231,0 +233,0 @@ await worker.terminate(); |
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
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
Environment variable access
Supply chain riskPackage accesses environment variables, which may be a sign of credential stuffing or data theft.
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
273087
4470
12
Updated@wixc3/engine-core@^44.0.5