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

@grpc/proto-loader

Package Overview
Dependencies
Maintainers
3
Versions
57
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@grpc/proto-loader - npm Package Compare versions

Comparing version 0.6.0-pre16 to 0.6.0-pre17

6

build/bin/proto-loader-gen-types.js

@@ -541,3 +541,3 @@ #!/usr/bin/env node

const grpcImportPath = options.grpcLib.startsWith('.') ? getPathToRoot(serviceType) + options.grpcLib : options.grpcLib;
formatter.writeLine(`import * as grpc from '${grpcImportPath}'`);
formatter.writeLine(`import type * as grpc from '${grpcImportPath}'`);
const dependencies = new Set();

@@ -593,3 +593,3 @@ for (const method of serviceType.methodsArray) {

function generateRootFile(formatter, root, options) {
formatter.writeLine(`import * as grpc from '${options.grpcLib}';`);
formatter.writeLine(`import type * as grpc from '${options.grpcLib}';`);
formatter.writeLine("import type { ServiceDefinition, EnumTypeDefinition, MessageTypeDefinition } from '@grpc/proto-loader';");

@@ -599,3 +599,3 @@ formatter.writeLine('');

formatter.writeLine('');
formatter.writeLine('type SubtypeConstructor<Constructor, Subtype> = {');
formatter.writeLine('type SubtypeConstructor<Constructor extends new (...args: any) => any, Subtype> = {');
formatter.writeLine(' new(...args: ConstructorParameters<Constructor>): Subtype;');

@@ -602,0 +602,0 @@ formatter.writeLine('};');

{
"name": "@grpc/proto-loader",
"version": "0.6.0-pre16",
"version": "0.6.0-pre17",
"author": "Google Inc.",

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

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