@cardano-ogmios/client
Advanced tools
Comparing version 6.0.0-rc5 to 6.0.0-rc6
@@ -93,5 +93,10 @@ "use strict"; | ||
return new Promise((resolve, reject) => { | ||
function onUnexpectedClose(code, reason) { | ||
reject(new JSONRPCError(-32000, 'Connection closed', { code, reason })); | ||
} | ||
socket.once('close', onUnexpectedClose); | ||
send(socket) | ||
.then(resolve) | ||
.catch(error => reject(JSONRPCError.tryFrom(error) || error)); | ||
.catch(error => reject(JSONRPCError.tryFrom(error) || error)) | ||
.finally(() => socket.removeListener('close', onUnexpectedClose)); | ||
}); | ||
@@ -98,0 +103,0 @@ }; |
{ | ||
"name": "@cardano-ogmios/client", | ||
"version": "6.0.0-rc5", | ||
"version": "6.0.0-rc6", | ||
"description": "TypeScript client library for Cardano Ogmios", | ||
@@ -50,3 +50,3 @@ "engines": { | ||
"dependencies": { | ||
"@cardano-ogmios/schema": "6.0.0-rc5", | ||
"@cardano-ogmios/schema": "6.0.0-rc6", | ||
"@cardanosolutions/json-bigint": "^1.0.1", | ||
@@ -53,0 +53,0 @@ "@types/json-bigint": "^1.0.1", |
Sorry, the diff of this file is not supported yet
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
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
184732
1890
+ Added@cardano-ogmios/schema@6.0.0-rc6(transitive)
- Removed@cardano-ogmios/schema@6.0.0-rc5(transitive)