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

alamid-junction

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

alamid-junction - npm Package Compare versions

Comparing version 0.9.2 to 0.9.3

4

lib/Junction.js

@@ -125,8 +125,10 @@ "use strict";

this._values = {};
for (key in signals) {
if (signals.hasOwnProperty(key)) {
// just making sure that the signal's value is always in sync with the junction's value
this._values[key] = undefined;
signals[key](undefined);
}
}
this._values = {};

@@ -133,0 +135,0 @@ return this;

{
"name": "alamid-junction",
"version": "0.9.2",
"version": "0.9.3",
"description": "Provides convenient methods for setting and retrieving multiple signals",

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

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

chai.Assertion.includeStack = true;
chai.config.includeStack = true;
chai.use(require("sinon-chai"));

@@ -257,2 +257,5 @@

it("should remove all keys from the junction", function () {
// creating a signal instance just to make sure that this has no side-effect on reset()
junction.signal("greeting");
junction.reset();

@@ -259,0 +262,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