Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

hyperx

Package Overview
Dependencies
Maintainers
1
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 1.0.5 to 1.0.6

example/deku/index.html

4

index.js

@@ -151,3 +151,3 @@ var VAR = 0, TEXT = 1, OPEN = 2, CLOSE = 3, ATTR = 4

state = ATTR
} else if (state === ATTR_VALUE_SQ && c === '"') {
} else if (state === ATTR_VALUE_SQ && c === "'") {
res.push([ATTR_VALUE,reg])

@@ -207,3 +207,3 @@ reg = ''

'source', 'track', 'wbr'
].join('|') + ')$')
].join('|') + ')(?:[\.#][a-zA-Z0-9\u007F-\uFFFF_:-]+)*$')
function selfClosing (tag) { return closeRE.test(tag) }
{
"name": "hyperx",
"version": "1.0.5",
"version": "1.0.6",
"description": "tagged template string virtual dom builder",

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

@@ -6,3 +6,3 @@ var test = require('tape')

test('escape', function (t) {
test('escape double quotes', function (t) {
var value = '">'

@@ -16,1 +16,11 @@ var tree = hx`<input type="text" value="${value}"></h1>`

})
test('escape single quotes', function (t) {
var value = "'>"
var tree = hx`<input type='text' value='${value}'></h1>`
t.equal(
vdom.create(tree).toString(),
`<input type="text" value="'&gt;" />`
)
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