Socket
Socket
Sign inDemoInstall

hyperx

Package Overview
Dependencies
Maintainers
24
Versions
33
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

hyperx - npm Package Compare versions

Comparing version 2.3.3 to 2.4.0

test/tags.js

17

index.js

@@ -33,3 +33,12 @@ var attrToProp = require('hyperscript-attribute-to-property')

if (xstate === ATTR) xstate = ATTR_KEY
p.push([ VAR, xstate, arg ])
if (xstate === OPEN) {
if (reg === '/') {
p.push([ OPEN, '/', arg ])
reg = ''
} else {
p.push([ OPEN, arg ])
}
} else {
p.push([ VAR, xstate, arg ])
}
parts.push.apply(parts, p)

@@ -152,3 +161,3 @@ } else parts.push.apply(parts, parse(strings[i]))

} else if (c === '>' && !quot(state) && state !== COMMENT) {
if (state === OPEN) {
if (state === OPEN && reg.length) {
res.push([OPEN,reg])

@@ -180,3 +189,5 @@ } else if (state === ATTR_KEY) {

} else if (state === OPEN && /\s/.test(c)) {
res.push([OPEN, reg])
if (reg.length) {
res.push([OPEN, reg])
}
reg = ''

@@ -183,0 +194,0 @@ state = ATTR

2

package.json
{
"name": "hyperx",
"version": "2.3.3",
"version": "2.4.0",
"description": "tagged template string virtual dom builder",

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

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