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 3.0.1 to 3.0.2

3

index.js

@@ -32,2 +32,5 @@ 'use strict'

function toStyleKey(str) {
if (str[0] === '-' && str[1] === '-') {
return str
}
return str

@@ -34,0 +37,0 @@ .replace(/\W+/g, '-')

2

package.json
{
"name": "mithril-node-render",
"version": "3.0.1",
"version": "3.0.2",
"description": "Node rending of mithril views",

@@ -5,0 +5,0 @@ "main": "index.js",

@@ -88,2 +88,10 @@ 'use strict'

o('should respect css vars', () => {
o(
render.sync(
m('span', { style: { '--some-var': '10px', '--someVar': 'red' } })
)
).equals('<span style="--some-var:10px;--someVar:red"></span>')
})
o('should render numbers as text nodes', () => {

@@ -90,0 +98,0 @@ o(render.sync(m('div', [1, m('span'), '2']))).equals(

Sorry, the diff of this file is not supported yet

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