mithril-node-render
Advanced tools
Comparing version 2.3.1 to 2.3.2
@@ -64,3 +64,6 @@ 'use strict' | ||
keys = keys || [] | ||
const res = Object.assign(Object.create(Object.getPrototypeOf(source)), source) | ||
const res = Object.assign( | ||
Object.create(Object.getPrototypeOf(source)), | ||
source | ||
) | ||
keys.forEach(function (key) { | ||
@@ -114,2 +117,3 @@ if (key in res) { | ||
if ( | ||
name === 'key' || | ||
typeof value === 'undefined' || | ||
@@ -116,0 +120,0 @@ value === null || |
{ | ||
"name": "mithril-node-render", | ||
"version": "2.3.1", | ||
"version": "2.3.2", | ||
"description": "Node rending of mithril views", | ||
@@ -25,5 +25,2 @@ "main": "index.js", | ||
"homepage": "https://github.com/StephanHoyer/mithril-node-render", | ||
"dependencies": { | ||
"co": "4.6.0" | ||
}, | ||
"peerDependencies": { | ||
@@ -39,4 +36,4 @@ "mithril": "1.1.6" | ||
"eslint-plugin-standard": "3.0.1", | ||
"mithril": "^1.1.6" | ||
"mithril": "1.1.6" | ||
} | ||
} |
@@ -81,2 +81,5 @@ 'use strict' | ||
o(await render(m('div', { a: undefined }))).equals('<div></div>') | ||
o(await render(m('div', { key: '123', a: '123' }))).equals( | ||
'<div a="123"></div>' | ||
) | ||
o(await render(m('div', { style: null }))).equals('<div></div>') | ||
@@ -83,0 +86,0 @@ o(await render(m('div', { style: '' }))).equals('<div></div>') |
28731
1
826