Comparing version 8.2.11 to 8.2.12
{ | ||
"name": "hybrids", | ||
"version": "8.2.11", | ||
"version": "8.2.12", | ||
"description": "A JavaScript framework for creating fully-featured web applications, components libraries, and single web components with unique declarative and functional architecture", | ||
@@ -5,0 +5,0 @@ "type": "module", |
@@ -992,3 +992,6 @@ import * as cache from "./cache.js"; | ||
throw TypeError( | ||
stringifyModel(Model, "Provided model definition does not support id"), | ||
stringifyModel( | ||
Model, | ||
`Provided model definition does not support id: ${JSON.stringify(id)}`, | ||
), | ||
); | ||
@@ -1522,4 +1525,6 @@ } | ||
: (host, value) => { | ||
if (value !== null && typeof value === "object") return value.id; | ||
return value ? String(value) : undefined; | ||
if (value !== null && value !== undefined) { | ||
return typeof value === "object" ? value.id : String(value); | ||
} | ||
return undefined; | ||
}; | ||
@@ -1526,0 +1531,0 @@ |
201108
6401