halfcab 14.0.4 → 14.0.5
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/halfcab.mjs +1 -1
- package/package.json +1 -1
package/halfcab.mjs
CHANGED
|
@@ -75,7 +75,7 @@ let html = (strings, ...values) => {
|
|
|
75
75
|
// Check if it's a CSJS object (has custom toString and isn't a TemplateResult)
|
|
76
76
|
// TemplateResult usually has 'strings' and 'values' or '_$litType$'
|
|
77
77
|
// DirectiveResult (unsafeHTML) uses default toString, so we shouldn't call it.
|
|
78
|
-
if (value && typeof value.toString === 'function' && value.toString !== Object.prototype.toString && !value.strings && !value._$litType$) {
|
|
78
|
+
if (value && typeof value !== 'function' && !Array.isArray(value) && typeof value.toString === 'function' && value.toString !== Object.prototype.toString && !value.strings && !value._$litType$) {
|
|
79
79
|
return value.toString()
|
|
80
80
|
}
|
|
81
81
|
return value
|
package/package.json
CHANGED