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

grpc-web-generator

Package Overview
Dependencies
Maintainers
1
Versions
9
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

grpc-web-generator - npm Package Compare versions

Comparing version 0.0.6 to 0.0.7

2

package.json
{
"name": "grpc-web-generator",
"version": "0.0.6",
"version": "0.0.7",
"license": "MIT",

@@ -5,0 +5,0 @@ "bin": {

@@ -243,6 +243,6 @@ const protobufjs = require('protobufjs');

const processArgv = {
protoDir: utils.getArgValue(process.argv, '--proto-dir', String),
protoFile: utils.getArgValue(process.argv, '--proto-file', String),
outputDir: utils.getArgValue(process.argv, '--output-dir', String),
onlyProto: utils.getArgValue(process.argv, '--only-proto', JSON.parse),
protoDir: utils.getArgValue(process.argv, '--proto-dir'),
protoFile: utils.getArgValue(process.argv, '--proto-file'),
outputDir: utils.getArgValue(process.argv, '--output-dir'),
onlyProto: utils.getArgValue(process.argv, '--only-proto'),
};

@@ -249,0 +249,0 @@

@@ -1,10 +0,5 @@

const getArgValue = (args, arg, transformer = (v) => v) => {
const getArgValue = (args, arg) => {
const argValue = args.find((a) => a.startsWith(`${arg}=`));
let value = argValue.slice(`${arg}=`.length);
try {
if (value) {
return transformer(value);
}
} catch (error) {
return value;
if (argValue) {
return argValue.slice(`${arg}=`.length);
}

@@ -11,0 +6,0 @@ };

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