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

dom-utils

Package Overview
Dependencies
Maintainers
1
Versions
14
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

dom-utils - npm Package Compare versions

Comparing version 0.3.0 to 0.3.1

8

CHANGELOG.md
Changelog
=========
### 0.3.1 (September 18, 2016)
* Add support for `path` in addition to `deepPath`
### 0.3.0 (August 2, 2016)
* Add explicit `window` namespace to `Element`
### 0.2.2 (June 2, 2016)

@@ -5,0 +13,0 @@

5

lib/delegate.js

@@ -26,4 +26,5 @@ var closest = require('./closest');

// check the deep nodes.
if (opts.deep && typeof event.deepPath == 'function') {
var path = event.deepPath();
if (opts.deep && (event.path || event.deepPath)) {
var path = typeof event.deepPath == 'function' ?
event.deepPath() : event.path;
for (var i = 0, node; node = path[i]; i++) {

@@ -30,0 +31,0 @@ if (node.nodeType == 1 && matches(node, selector)) {

22

package.json
{
"name": "dom-utils",
"version": "0.3.0",
"version": "0.3.1",
"description": "A small, modular DOM utilities library",

@@ -34,17 +34,2 @@ "scripts": {

[
"Windows 10",
"chrome",
"latest"
],
[
"Linux",
"firefox",
"latest"
],
[
"OS X 10.11",
"safari",
"9"
],
[
"OS X 10.8",

@@ -75,7 +60,2 @@ "safari",

[
"Windows XP",
"internet explorer",
"8"
],
[
"OS X 10.10",

@@ -82,0 +62,0 @@ "iPhone",

@@ -168,6 +168,9 @@ var assert = require('assert');

// TODO(philipwalton): at the moment this test doesn't work in any
// browser because events triggered via JavaScript do not seem to buble
// outside of the shadow root.
it('can delegate to elements inside a shadow tree', function() {
// Skips this test in unsupporting browsers.
if (!Element.prototype.attachShadow) this.skip();
if (!('deepPath' in Event.prototype)) this.skip();

@@ -174,0 +177,0 @@ afixShadowDom();

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