Socket
Socket
Sign inDemoInstall

hyperscript

Package Overview
Dependencies
Maintainers
1
Versions
27
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

hyperscript - npm Package Compare versions

Comparing version 1.4.6 to 1.4.7

6

index.js

@@ -14,3 +14,7 @@ var split = require('browser-split')

function parseClass (string) {
var m = split(string, /([\.#]?[a-zA-Z0-9_:-]+)/)
// Our minimal parser doesn’t understand escaping CSS special
// characters like `#`. Don’t use them. More reading:
// https://mathiasbynens.be/notes/css-escapes .
var m = split(string, /([\.#]?[^\s#.]+)/)
if(/^\.|#/.test(m[1]))

@@ -17,0 +21,0 @@ e = document.createElement('div')

2

package.json
{
"name": "hyperscript",
"version": "1.4.6",
"version": "1.4.7",
"homepage": "https://github.com/dominictarr/hyperscript",

@@ -5,0 +5,0 @@ "repository": {

@@ -124,3 +124,3 @@ # HyperScript

Each item in the array is treated like a ordinary child. (string or HTMLElement)
this is uesful when you want to iterate over an object:
this is useful when you want to iterate over an object:

@@ -127,0 +127,0 @@ ``` js

@@ -155,1 +155,7 @@

})
test('unicode selectors', function (t) {
t.equal(h('.⛄').outerHTML, '<div class="⛄"></div>')
t.equal(h('span#⛄').outerHTML, '<span id="⛄"></span>')
t.end()
})
SocketSocket SOC 2 Logo

Product

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

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc