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

typed-signals

Package Overview
Dependencies
Maintainers
1
Versions
13
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

typed-signals - npm Package Compare versions

Comparing version 1.0.4 to 1.0.5

7

dist/src/Signal.d.ts

@@ -58,2 +58,9 @@ /**

/**
* Unsubscribe from this signal with the original callback instance.
* While you can use this method, the SignalConnection returned by connect() will not be updated!
*
* @param callback The callback you passed to connect().
*/
disconnect(callback: CB): boolean;
/**
* Disconnect all handlers from this signal event.

@@ -60,0 +67,0 @@ */

@@ -148,2 +148,17 @@ "use strict";

/**
* Unsubscribe from this signal with the original callback instance.
* While you can use this method, the SignalConnection returned by connect() will not be updated!
*
* @param callback The callback you passed to connect().
*/
Signal.prototype.disconnect = function (callback) {
for (var link = this.head.next; link !== this.head; link = link.next) {
if (link.callback === callback) {
link.unlink();
return true;
}
}
return false;
};
/**
* Disconnect all handlers from this signal event.

@@ -150,0 +165,0 @@ */

2

package.json
{
"name": "typed-signals",
"version": "1.0.4",
"version": "1.0.5",
"description": "A type checked signal library for TypeScript (and JavaScript)",

@@ -5,0 +5,0 @@ "keywords": [

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