Comparing version 1.4.18 to 1.4.19
{ | ||
"name": "mongot", | ||
"version": "1.4.18", | ||
"version": "1.4.19", | ||
"description": "MongoT is a modern ODM library for MongoDb.", | ||
@@ -5,0 +5,0 @@ "main": "src/index.js", |
@@ -126,7 +126,7 @@ "use strict"; | ||
static castToArray(type, proto, value) { | ||
assert_1.ok(true === Array.isArray(value), `${type.name} need an array value for constructor given ${value.toString()}.`); | ||
assert_1.ok(true === Array.isArray(value), `${type.name} need an array value for constructor.`); | ||
return new type(value, x => TypeCast.cast(proto, x)); | ||
} | ||
static castToFragmentArray(type, proto, value) { | ||
assert_1.ok(true === Array.isArray(value), `${type.name} need an array value for constructor given ${value.toString()}.`); | ||
assert_1.ok(true === Array.isArray(value), `${type.name} need an array value for constructor.`); | ||
return new type(value, x => TypeCast.cast(SchemaFragment, x, proto)); | ||
@@ -133,0 +133,0 @@ } |
Sorry, the diff of this file is not supported yet
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
148629