Comparing version 1.3.1 to 1.4.0
@@ -103,3 +103,3 @@ 'use strict'; | ||
this.types[name] = extendType(this.types[type], typeArgs); | ||
this.types[name] = typeArgs ? extendType(this.types[type], typeArgs) : this.types[type]; | ||
} else { | ||
@@ -106,0 +106,0 @@ if (functions[3]) { |
# History | ||
## 1.4.0 | ||
* implement aliases | ||
## 1.3.1 | ||
@@ -4,0 +8,0 @@ |
{ | ||
"name": "protodef", | ||
"version": "1.3.1", | ||
"version": "1.4.0", | ||
"description": "A simple yet powerful way to define binary protocols", | ||
@@ -5,0 +5,0 @@ "main": "index.js", |
@@ -92,3 +92,3 @@ const { getFieldInfo, tryCatch } = require('./utils'); | ||
let {type,typeArgs} = getFieldInfo(functions); | ||
this.types[name] = extendType(this.types[type], typeArgs); | ||
this.types[name] = typeArgs ? extendType(this.types[type], typeArgs) : this.types[type]; | ||
} | ||
@@ -95,0 +95,0 @@ else { |
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
194705