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
1
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 0.0.13 to 0.0.14

4

lib/index.d.ts

@@ -1,5 +0,5 @@

declare function usePubSub<T>(topic: string, defaultState: T): SubscriptionTuple<T>;
export default usePubSub;
export declare function usePubSub<T>(topic: string, defaultState: T): SubscriptionTuple<T>;
declare type Publish<T> = (newState: T) => void;
declare type PublicUnsubscribe = () => void;
declare type SubscriptionTuple<T> = [T, Publish<T>, PublicUnsubscribe];
export {};

@@ -75,3 +75,3 @@ "use strict";

}
exports.default = usePubSub;
exports.usePubSub = usePubSub;
//# sourceMappingURL=index.js.map
{
"name": "treble-hook",
"version": "0.0.13",
"version": "0.0.14",
"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