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.
Files changed (2) hide show
  1. package/halfcab.mjs +1 -1
  2. 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
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "halfcab",
3
- "version": "14.0.4",
3
+ "version": "14.0.5",
4
4
  "type": "module",
5
5
  "description": "A simple universal JavaScript framework focused on making use of es2015 template strings to build components.",
6
6
  "main": "halfcab.mjs",