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

treble-hook

Package Overview
Dependencies
Maintainers
6
Versions
66
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

treble-hook - npm Package Compare versions

Comparing version 1.0.8 to 1.0.9

2

lib/index.js

@@ -107,5 +107,5 @@ "use strict";

}, []);
return [state || defaultState, publish(topic), unsubscribe(topic, subscriptionId)];
return [typeof state !== 'undefined' ? state : defaultState, publish(topic), unsubscribe(topic, subscriptionId)];
}
exports.usePubSub = usePubSub;
//# sourceMappingURL=index.js.map
{
"name": "treble-hook",
"version": "1.0.8",
"version": "1.0.9",
"description": "Get hooked on simple subscribe-and-publish in ReactJS.",

@@ -5,0 +5,0 @@ "main": "./lib/index.js",

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