Socket
Socket
Sign inDemoInstall

cssauron

Package Overview
Dependencies
1
Maintainers
1
Versions
14
Alerts
File Explorer

Advanced tools

Install Socket

Detect and block malicious and high-risk dependencies

Install

Comparing version 1.1.1 to 1.1.2

2

package.json
{
"name": "cssauron",
"version": "1.1.1",
"version": "1.1.2",
"description": "create matching selectors from css for your very own nested object hierarchy",

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

@@ -67,2 +67,6 @@ var cssauron = require('../index')

assert.ok(!language('[dne]')(data))
assert.ok(language('[first=test]')(data))
assert.ok(language('[first="test"]')(data))
assert.ok(language('[second="gary busey"]')(data))
assert.ok(language('[second="gary busey"] [second="gary busey"]')(data))
assert.ok(language('[third|=m]')(data))

@@ -69,0 +73,0 @@ assert.ok(language('[third|=richard]')(data))

@@ -162,3 +162,3 @@ module.exports = tokenize

function state_pseudostart() {
if(gathered.length === 0) {
if(gathered.length === 0 && !quote) {
quote = /['"]/.test(c) ? c : null

@@ -169,3 +169,3 @@

}
}
}

@@ -250,3 +250,3 @@ if(quote) {

function state_attr_end() {
if(!gathered.length) {
if(!gathered.length && !quote) {
quote = /['"]/.test(c) ? c : null

@@ -267,4 +267,8 @@

if(c === '\\') {
escaped ? gathered.push(c) : (escaped = true)
if(escaped) {
gathered.push(c)
}
escaped = !escaped
return

@@ -284,3 +288,3 @@ }

}
stream.queue({

@@ -291,3 +295,3 @@ type: ATTR

, rhs: gathered.join('')
, cmp: cmp
, cmp: cmp
}

@@ -294,0 +298,0 @@ })

SocketSocket SOC 2 Logo

Product

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

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc