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.0.1 to 1.0.2

3

package.json
{
"name": "ts-proto",
"version": "1.0.1",
"version": "1.0.2",
"description": "",

@@ -8,2 +8,3 @@ "main": "build/plugin.js",

"setup": "./pbjs.sh && mkdir -p build/integration && yarn ts-node integration/setup.ts",
"setup-ours": "yarn ts-node integration/setup.ts",
"test": "yarn jest -c jest.config.js"

@@ -10,0 +11,0 @@ },

@@ -369,3 +369,9 @@ import {

.addStatement('const data = %L.encode(request).finish()', requestType(typeMap, methodDesc))
.addStatement('const promise = this.rpc.request(%S, %S, %L)', serviceDesc.name, methodDesc.name, 'data')
.addStatement(
'const promise = this.rpc.request("%L.%L", %S, %L)',
fileDesc.package,
serviceDesc.name,
methodDesc.name,
'data'
)
.addStatement('return promise.then(data => %L.decode(new Reader(data)))', responseType(typeMap, methodDesc))

@@ -372,0 +378,0 @@ .returns(responsePromise(typeMap, methodDesc))

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