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

snabbdom-selector

Package Overview
Dependencies
Maintainers
1
Versions
24
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

snabbdom-selector - npm Package Compare versions

Comparing version 0.3.2 to 0.4.0

9

CHANGELOG.md

@@ -0,1 +1,10 @@

# v0.4.0 (2016-05-21)
## Features
- **atts:** check for id in attrs module
([0d471e74](https://github.com/git+https://github.com/tylors/snabbdom-selector.git/commits/0d471e74d3a1fd95374138cc75a75db9c7941c85))
# v0.3.2 (2015-12-18)

@@ -2,0 +11,0 @@

2

lib/classNameFromVNode.js

@@ -19,2 +19,3 @@ 'use strict';

if (!vNode.data) {

@@ -28,2 +29,3 @@ return cn;

if (dataClass) {

@@ -30,0 +32,0 @@ var c = Object.keys(vNode.data.class).filter(function (cl) {

2

lib/index.js

@@ -43,3 +43,3 @@ 'use strict';

traverse(wrappedVNode, function (node) {
var result = undefined;
var result = void 0;
if (node.data && node.data.vnode) {

@@ -46,0 +46,0 @@ result = selector(node.data.vnode);

@@ -34,2 +34,4 @@ 'use strict';

return vNode.data.props.id;
} else if (vNode.data && vNode.data.attrs && vNode.data.attrs.id) {
return vNode.data.attrs.id;
}

@@ -36,0 +38,0 @@ return (0, _selectorParser2.default)(vNode.sel).id;

@@ -20,3 +20,3 @@ 'use strict';

var tagName = undefined;
var tagName = void 0;
var id = '';

@@ -31,5 +31,5 @@ var classes = [];

var part = undefined;
var type = undefined;
var i = undefined;
var part = void 0;
var type = void 0;
var i = void 0;

@@ -36,0 +36,0 @@ for (i = 0; i < tagParts.length; i++) {

{
"name": "snabbdom-selector",
"version": "0.3.2",
"version": "0.4.0",
"description": "Snabbdom CSS-Selector",

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

@@ -19,2 +19,5 @@ import cssauron from 'cssauron'

}
else if (vNode.data && vNode.data.attrs && vNode.data.attrs.id) {
return vNode.data.attrs.id
}
return selectorParser(vNode.sel).id

@@ -21,0 +24,0 @@ }

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