Comparing version 1.8.0 to 1.8.1
# History | ||
## 1.8.1 | ||
* fixed to aliases in compiler (thanks @Karang) | ||
## 1.8.0 | ||
@@ -4,0 +8,0 @@ |
{ | ||
"name": "protodef", | ||
"version": "1.8.0", | ||
"version": "1.8.1", | ||
"description": "A simple yet powerful way to define binary protocols", | ||
@@ -5,0 +5,0 @@ "main": "index.js", |
@@ -223,3 +223,3 @@ const numeric = require('./datatypes/numeric') | ||
functions[type] = this.compileType(this.types[type]) | ||
if (functions[type].startsWith('ctx')) { functions[type] = this.wrapCode(functions[type]) } | ||
if (functions[type].startsWith('ctx')) { functions[type] = this.wrapCode('return ' + this.callType(functions[type].split('.')[1])) } | ||
if (!isNaN(functions[type])) { functions[type] = this.wrapCode(' return ' + functions[type]) } | ||
@@ -226,0 +226,0 @@ } else { |
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
149872