Comparing version 3.1.1 to 3.1.2
@@ -1723,3 +1723,8 @@ /* jshint node: true */ | ||
field = this._fields[i]; | ||
value = field._type._copy(val[field._name], opts); | ||
value = val[field._name]; | ||
if (value === undefined && field.hasOwnProperty('getDefault')) { | ||
value = field.getDefault(); | ||
} else { | ||
value = field._type._copy(val[field._name], opts); | ||
} | ||
if (hook) { | ||
@@ -1726,0 +1731,0 @@ value = hook(field, value, this); |
{ | ||
"name": "avsc", | ||
"version": "3.1.1", | ||
"version": "3.1.2", | ||
"description": "Blazing fast serialization", | ||
@@ -5,0 +5,0 @@ "homepage": "https://github.com/mtth/avsc", |
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
106792
3428