@galaxar/types
Advanced tools
Comparing version 1.0.5 to 1.0.6
@@ -93,3 +93,3 @@ "use strict"; | ||
if (value == null) { | ||
if (meta.default != null) { | ||
if (meta?.default != null) { | ||
return [ | ||
@@ -99,3 +99,3 @@ true, | ||
]; | ||
} else if (meta.optional) { | ||
} else if (meta?.optional) { | ||
return [ | ||
@@ -113,3 +113,3 @@ true, | ||
} | ||
if (meta.rawValue) return [ | ||
if (meta?.rawValue) return [ | ||
true, | ||
@@ -116,0 +116,0 @@ value |
@@ -63,5 +63,5 @@ import { InvalidArgument, ValidationError } from './errors'; | ||
if (value == null) { | ||
if (meta.default != null) { | ||
if (meta?.default != null) { | ||
return [true, meta.default]; | ||
} else if (meta.optional) { | ||
} else if (meta?.optional) { | ||
return [true, null]; | ||
@@ -78,3 +78,3 @@ } | ||
if (meta.rawValue) return [true, value]; | ||
if (meta?.rawValue) return [true, value]; | ||
@@ -81,0 +81,0 @@ return [false]; |
{ | ||
"name": "@galaxar/types", | ||
"version": "1.0.5", | ||
"version": "1.0.6", | ||
"description": "Galaxar Semantic Data Types", | ||
@@ -5,0 +5,0 @@ "main": "cjs/index.js", |
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
98723