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

ts-proto

Package Overview
Dependencies
Maintainers
1
Versions
359
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

ts-proto - npm Package Compare versions

Comparing version 1.164.1 to 1.164.2

34

build/generate-grpc-web.js

@@ -304,9 +304,2 @@ "use strict";

const { useAbortSignal } = options;
const maybeAbortSignal = useAbortSignal
? `
if (abortSignal) abortSignal.addEventListener("abort", () => {
observer.error(abortSignal.reason);
client.close();
});`
: "";
return (0, ts_poet_1.code) `

@@ -348,10 +341,23 @@ invoke<T extends UnaryMethodDefinitionish>(

});
observer.add(() => {
${!useAbortSignal
? `return client.close();`
: `if (!abortSignal || !abortSignal.aborted)
return client.close();`}
});
${useAbortSignal
? `
if (abortSignal) {
const abort = () => {
observer.error(abortSignal.reason);
client.close();
};
abortSignal.addEventListener("abort", abort);
observer.add(() => {
if (abortSignal.aborted) {
return;
}
${maybeAbortSignal}
abortSignal.removeEventListener('abort', abort);
client.close();
});
} else {
observer.add(() => client.close());
}
`
: `observer.add(() => client.close());`}
});

@@ -358,0 +364,0 @@ upStream();

{
"name": "ts-proto",
"version": "1.164.1",
"version": "1.164.2",
"description": "",

@@ -5,0 +5,0 @@ "main": "build/plugin.js",

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