Comparing version 2.2.5 to 2.2.6
@@ -172,3 +172,6 @@ "use strict"; | ||
const result = resultBuffer.toString("base64"); | ||
return (0, ts_poet_1.code) `'${extension.name}': ${typeName}.decode(Buffer.from('${result}', 'base64'))`; | ||
const encoded = ctx.options.env === options_1.EnvOption.NODE | ||
? (0, ts_poet_1.code) `Buffer.from('${result}', 'base64')` | ||
: (0, ts_poet_1.code) `${ctx.utils.bytesFromBase64}("${result}")`; | ||
return (0, ts_poet_1.code) `'${extension.name}': ${typeName}.decode(${encoded})`; | ||
} | ||
@@ -175,0 +178,0 @@ else { |
{ | ||
"name": "ts-proto", | ||
"version": "2.2.5", | ||
"version": "2.2.6", | ||
"description": "", | ||
@@ -5,0 +5,0 @@ "main": "build/src/plugin.js", |
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
654235
13146