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

cm-web-modules

Package Overview
Dependencies
Maintainers
1
Versions
146
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

cm-web-modules - npm Package Compare versions

Comparing version 1.9.13 to 1.9.14

2

package.json
{
"name": "cm-web-modules",
"version": "1.9.13",
"version": "1.9.14",
"description": "Collection of clean and small ES6 modules for the web",

@@ -5,0 +5,0 @@ "main": "src/LibraryManager.js",

@@ -6,4 +6,6 @@ /**

*/
import {EventUtils} from "../utils/EventUtils.js";
import {EventUtils} from "../utils/EventUtils.js"
const DEBUG = false // set `true`, to make some console logging
/**

@@ -43,2 +45,5 @@ * A Component is a kind of controller which couples js and html elements

const eventListenerElements = this.context.querySelectorAll("[data-event-listener]")
if(DEBUG) {
console.log("eventListenerElements", this.context, eventListenerElements)
}
for (const eventListenerElement of eventListenerElements) {

@@ -53,5 +58,11 @@ const eventName = eventListenerElement.dataset.eventListener

EventUtils.delegate(eventListenerElement, eventName, delegate, (target) => {
if(DEBUG) {
console.log("delegate", action, target)
}
this.actions[action](target)
})
} else {
if(DEBUG) {
console.log("addEventListener", eventName, action)
}
eventListenerElement.addEventListener(eventName, this.actions[action].bind(this))

@@ -58,0 +69,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