Comparing version 1.2.0 to 1.2.1
@@ -76,3 +76,3 @@ "use strict"; | ||
.beginControlFlow('if (long.gt(Number.MAX_SAFE_INTEGER))') | ||
.addStatement('throw new Error("Value is larger than Number.MAX_SAFE_INTEGER")') | ||
.addStatement('throw new global.Error("Value is larger than Number.MAX_SAFE_INTEGER")') | ||
.endControlFlow() | ||
@@ -131,3 +131,3 @@ .addStatement('return long.toNumber()'))); | ||
.add('default:%>\n') | ||
.addStatement('throw new Error(`Invalid value ${object}`)%<') | ||
.addStatement('throw new global.Error(`Invalid value ${object}`)%<') | ||
.endControlFlow(); | ||
@@ -134,0 +134,0 @@ return func.addCodeBlock(body); |
{ | ||
"name": "ts-proto", | ||
"version": "1.2.0", | ||
"version": "1.2.1", | ||
"description": "", | ||
@@ -5,0 +5,0 @@ "main": "build/plugin.js", |
@@ -129,3 +129,3 @@ import { | ||
.beginControlFlow('if (long.gt(Number.MAX_SAFE_INTEGER))') | ||
.addStatement('throw new Error("Value is larger than Number.MAX_SAFE_INTEGER")') | ||
.addStatement('throw new global.Error("Value is larger than Number.MAX_SAFE_INTEGER")') | ||
.endControlFlow() | ||
@@ -201,3 +201,3 @@ .addStatement('return long.toNumber()') | ||
.add('default:%>\n') | ||
.addStatement('throw new Error(`Invalid value ${object}`)%<') | ||
.addStatement('throw new global.Error(`Invalid value ${object}`)%<') | ||
.endControlFlow(); | ||
@@ -204,0 +204,0 @@ return func.addCodeBlock(body); |
Sorry, the diff of this file is not supported yet
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
823792