Socket
Socket
Sign inDemoInstall

mithril-node-render

Package Overview
Dependencies
1
Maintainers
1
Versions
43
Alerts
File Explorer

Advanced tools

Install Socket

Detect and block malicious and high-risk dependencies

Install

Comparing version 2.3.1 to 2.3.2

6

index.js

@@ -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 ||

7

package.json
{
"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>')

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap

Packages

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc