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.5.8 to 1.5.9

2

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

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

@@ -14,2 +14,12 @@ /**

subscribe(topic, callback) {
if(!topic) {
const message = "subscribe: no topic"
console.error(message, callback)
throw new Error(message)
}
if(!callback) {
const message = "subscribe: no callback"
console.error(message, topic)
throw new Error(message)
}
if (this.topics[topic] === undefined) {

@@ -50,2 +60,7 @@ this.topics[topic] = []

publish(topic, object = {}, async = true) {
if(!topic) {
const message = "publish: no topic"
console.error(message, callback)
throw new Error(message)
}
const breadcrumbArray = topic.split("/")

@@ -52,0 +67,0 @@ let wildcardTopic = ""

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