Comparing version 3.1.1 to 3.1.2
@@ -269,6 +269,6 @@ 'use strict'; | ||
} catch (error) { | ||
if (error.message === 'Timeout reached') { | ||
error.code = error.httpCode = 408; | ||
} | ||
return void client.error(error.code, { id, error }); | ||
let code = error.code === 'ETIMEOUT' ? 408 : 500; | ||
if (typeof error.code === 'number') code = error.code; | ||
error.httpCode = code; | ||
return void client.error(code, { id, error }); | ||
} finally { | ||
@@ -275,0 +275,0 @@ proc.leave(); |
{ | ||
"name": "metacom", | ||
"version": "3.1.1", | ||
"version": "3.1.2", | ||
"author": "Timur Shemsedinov <timur.shemsedinov@gmail.com>", | ||
@@ -56,3 +56,3 @@ "description": "Communication protocol for Metarhia stack with rpc, events, binary streams, memory and db access", | ||
"dependencies": { | ||
"metautil": "^3.14.0", | ||
"metautil": "^3.15.0", | ||
"ws": "^8.14.0" | ||
@@ -59,0 +59,0 @@ }, |
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
55444
Updatedmetautil@^3.15.0