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.7 to 0.0.8

2

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

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

@@ -246,5 +246,7 @@ const protobufjs = require('protobufjs');

outputDir: utils.getArgValue(process.argv, '--output-dir'),
onlyProto: utils.getArgValue(process.argv, '--only-proto'),
onlyProto: utils.getArgValue(process.argv, '--only-proto', JSON.parse),
};
console.log(processArgv);
if (!processArgv.protoDir || !processArgv.protoFile || !processArgv.outputDir) {

@@ -251,0 +253,0 @@ process.exit(1);

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

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

@@ -6,0 +11,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