grpc-web-generator
Advanced tools
Comparing version 0.0.7 to 0.0.8
{ | ||
"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 @@ }; |
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
AI-detected possible typosquat
Supply chain riskAI has identified this package as a potential typosquat of a more popular package. This suggests that the package may be intentionally mimicking another package's name, description, or other metadata.
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
11329
278
1