New Case Study:See how Anthropic automated 95% of dependency reviews with Socket.Learn More
Socket
Sign inDemoInstall
Socket

stump-cycle-dom

Package Overview
Dependencies
Maintainers
1
Versions
16
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

stump-cycle-dom - npm Package Compare versions

Comparing version 0.0.15 to 0.0.16

11

lib/cjs/EventDelegator.js

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

var SymbolTree_1 = require("./SymbolTree");
var RemovalSet_1 = require("./RemovalSet");
var PriorityQueue_1 = require("./PriorityQueue");

@@ -69,3 +68,3 @@ var whenComplete_1 = require("./whenComplete");

this.virtualListeners = new SymbolTree_1.default(function (x) { return x.scope; });
this.nonBubblingListenersToAdd = new RemovalSet_1.default();
this.nonBubblingListenersToAdd = new Set();
this.virtualNonBubblingListener = [];

@@ -108,3 +107,3 @@ this.isolateModule.setEventDelegator(this);

else {
var input_1 = this.nonBubblingListenersToAdd.find(function (x) {
var input_1 = Array.from(this.nonBubblingListenersToAdd).find(function (x) {
var _sub = x[0], et = x[1], ef = x[2], _ = x[3];

@@ -118,3 +117,3 @@ return eventType === et && utils_1.isEqualNamespace(ef.namespace, namespace);

input_1 = [subject, eventType, finder, dest];
this.setupNonBubblingListener(input_1);
this.nonBubblingListenersToAdd.add(input_1);
non_bubble_subject = subject;

@@ -224,3 +223,2 @@ }

if (!this.origin) {
this.nonBubblingListenersToAdd.add(input);
return;

@@ -254,5 +252,2 @@ }

}
else {
this.nonBubblingListenersToAdd.add(input);
}
};

@@ -259,0 +254,0 @@ EventDelegator.prototype.resetEventListeners = function () {

@@ -17,3 +17,2 @@ var __assign = (this && this.__assign) || function () {

import SymbolTree from './SymbolTree';
import RemovalSet from './RemovalSet';
import PriorityQueue from './PriorityQueue';

@@ -67,3 +66,3 @@ import whenComplete from './whenComplete';

this.virtualListeners = new SymbolTree(function (x) { return x.scope; });
this.nonBubblingListenersToAdd = new RemovalSet();
this.nonBubblingListenersToAdd = new Set();
this.virtualNonBubblingListener = [];

@@ -106,3 +105,3 @@ this.isolateModule.setEventDelegator(this);

else {
var input_1 = this.nonBubblingListenersToAdd.find(function (x) {
var input_1 = Array.from(this.nonBubblingListenersToAdd).find(function (x) {
var _sub = x[0], et = x[1], ef = x[2], _ = x[3];

@@ -116,3 +115,3 @@ return eventType === et && isEqualNamespace(ef.namespace, namespace);

input_1 = [subject, eventType, finder, dest];
this.setupNonBubblingListener(input_1);
this.nonBubblingListenersToAdd.add(input_1);
non_bubble_subject = subject;

@@ -222,3 +221,2 @@ }

if (!this.origin) {
this.nonBubblingListenersToAdd.add(input);
return;

@@ -252,5 +250,2 @@ }

}
else {
this.nonBubblingListenersToAdd.add(input);
}
};

@@ -257,0 +252,0 @@ EventDelegator.prototype.resetEventListeners = function () {

{
"name": "stump-cycle-dom",
"version": "0.0.15",
"version": "0.0.16",
"description": "The standard DOM Driver for Cycle.js, based on Snabbdom",

@@ -5,0 +5,0 @@ "license": "MIT",

import xs, {Stream, Subscription} from 'xstream';
import {ScopeChecker} from './ScopeChecker';
import {IsolateModule} from './IsolateModule';
import {getSelectors, isEqualNamespace, makeInsert} from './utils';
import {getSelectors, isEqualNamespace} from './utils';
import {ElementFinder} from './ElementFinder';

@@ -9,3 +9,2 @@ import {EventsFnOptions} from './DOMSource';

import SymbolTree from './SymbolTree';
import RemovalSet from './RemovalSet';
import PriorityQueue from './PriorityQueue';

@@ -94,3 +93,3 @@ import whenComplete from './whenComplete'

private domListenersToAdd: Map<string, boolean>;
private nonBubblingListenersToAdd = new RemovalSet<
private nonBubblingListenersToAdd = new Set<
[Stream<Event>, string, ElementFinder, Destination]

@@ -154,3 +153,3 @@ >();

} else {
let input = this.nonBubblingListenersToAdd.find(x => {
let input = Array.from(this.nonBubblingListenersToAdd).find(x => {
const [_sub, et, ef, _] = x

@@ -166,3 +165,3 @@ return eventType === et && isEqualNamespace(ef.namespace, namespace)

this.setupNonBubblingListener(input);
this.nonBubblingListenersToAdd.add(input);

@@ -310,3 +309,2 @@ non_bubble_subject = subject

if (!this.origin) {
this.nonBubblingListenersToAdd.add(input);
return;

@@ -351,4 +349,2 @@ }

});
} else {
this.nonBubblingListenersToAdd.add(input);
}

@@ -355,0 +351,0 @@ }

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

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