Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

@matrixai/rpc

Package Overview
Dependencies
Maintainers
3
Versions
28
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@matrixai/rpc - npm Package Compare versions

Comparing version 0.5.0 to 0.5.1

17

dist/RPCClient.js

@@ -241,9 +241,20 @@ "use strict";

let rpcStream;
const streamFactoryProm = this.streamFactory({ signal, timer });
const streamFactoryProm = this.streamFactory({ signal, timer }).then((e) => ({ status: 'fulfilled', value: e }), (e) => ({ status: 'rejected', reason: e }));
try {
rpcStream = await Promise.race([streamFactoryProm, abortRaceProm.p]);
const rpcStreamResult = await Promise.race([
streamFactoryProm,
abortRaceProm.p,
]);
if (rpcStreamResult.status === 'rejected') {
throw rpcStreamResult.reason;
}
rpcStream = rpcStreamResult.value;
}
catch (e) {
cleanUp();
void streamFactoryProm.then((stream) => stream.cancel(errors.ErrorRPCStreamEnded));
void streamFactoryProm.then((streamResult) => {
if (streamResult.status === 'fulfilled') {
streamResult.value.cancel(errors.ErrorRPCStreamEnded);
}
});
throw e;

@@ -250,0 +261,0 @@ }

2

package.json
{
"name": "@matrixai/rpc",
"version": "0.5.0",
"version": "0.5.1",
"author": "Matrix AI",

@@ -5,0 +5,0 @@ "contributors": [

Sorry, the diff of this file is not supported yet

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc