grpc-web-generator
Advanced tools
Comparing version 0.0.6 to 0.0.7
{ | ||
"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 @@ }; |
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
11149
272