posthtml-component
Advanced tools
Comparing version
{ | ||
"name": "posthtml-component", | ||
"version": "1.0.0-beta.13", | ||
"version": "1.0.0-beta.14", | ||
"description": "PostHTML Components Blade-like with slots, attributes as props and custom tag", | ||
@@ -5,0 +5,0 @@ "license": "MIT", |
@@ -12,2 +12,4 @@ 'use strict'; | ||
const extend = require('lodash/extend'); | ||
const isString = require('lodash/isString'); | ||
const isObject = require('lodash/isObject'); | ||
@@ -69,2 +71,4 @@ /** | ||
delete nodeAttrs[key]; | ||
} else if (key !== 'compose' && !isObject(nodeAttrs[key]) && !isString(nodeAttrs[key])) { | ||
nodeAttrs[key] = nodeAttrs[key].toString(); | ||
} | ||
@@ -71,0 +75,0 @@ }); |
55040
0.43%630
0.64%