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

pubsub-js

Package Overview
Dependencies
Maintainers
1
Versions
28
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

pubsub-js - npm Package Compare versions

Comparing version 1.5.4 to 1.5.5

2

package.json
{
"name": "pubsub-js",
"version": "1.5.4",
"version": "1.5.5",
"description": "Dependency free publish/subscribe library",

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

function reportError(message) {
if (typeof console !== 'undefined'){
console.error(new Error(errorMessage));
return;
}
if ($.error) {
$.error(errorMessage);
}
}
if ( $.pubsub ){
$.error( 'pubsub is already defined on jQuery, skipping integration of PubSubJS' );
reportError('pubsub is already defined on jQuery, skipping integration of PubSubJS');
return false;

@@ -10,5 +21,5 @@ }

return PubSub[ method ].apply( self, Array.prototype.slice.call( arguments, 1 ) );
} else {
$.error( 'Method ' + method + ' does not exist on jQuery.pubsub' );
}
reportError('Method ' + method + ' does not exist on jQuery.pubsub');
}

@@ -15,0 +26,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