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