@protobufjs/codegen
Advanced tools
Comparing version 2.0.3 to 2.0.4
@@ -27,3 +27,3 @@ export = codegen; | ||
namespace codegen { | ||
declare namespace codegen { | ||
@@ -30,0 +30,0 @@ /** When set to `true`, codegen will log generated code to console. Useful for debugging. */ |
@@ -50,6 +50,5 @@ "use strict"; | ||
scopeParams[scopeOffset] = source; | ||
return Function.apply(null, scopeParams) | ||
.apply(null, scopeValues); | ||
return Function.apply(null, scopeParams).apply(null, scopeValues); // eslint-disable-line no-new-func | ||
} | ||
return Function(source)(); | ||
return Function(source)(); // eslint-disable-line no-new-func | ||
} | ||
@@ -81,3 +80,3 @@ | ||
return "function " + (functionNameOverride || functionName || "") + "(" + (functionParams && functionParams.join(",") || "") + "){\n " + body.join("\n ") + "\n}"; | ||
}; | ||
} | ||
@@ -84,0 +83,0 @@ Codegen.toString = toString; |
{ | ||
"name": "@protobufjs/codegen", | ||
"description": "A minimalistic code generation utility.", | ||
"version": "2.0.3", | ||
"version": "2.0.4", | ||
"author": "Daniel Wirtz <dcode+protobufjs@dcode.io>", | ||
@@ -6,0 +6,0 @@ "repository": { |
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
9136
123