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

asr-active-state-watcher

Package Overview
Dependencies
Maintainers
1
Versions
4
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

asr-active-state-watcher - npm Package Compare versions

Comparing version 1.0.1 to 1.0.2

6

es5.js

@@ -20,5 +20,9 @@ 'use strict';

var state = _ref2.state;
var domApi = _ref2.domApi;
if (!currentDomApis[state.name]) {
console.error('detaching, but no current dom api for that name was found');
}
currentDetachListeners.forEach(function (fn) {
return fn(currentDomApis[state.name]);
return fn(domApi);
});

@@ -25,0 +29,0 @@ delete currentDomApis[state.name];

7

index.js

@@ -11,4 +11,7 @@ module.exports = function magicalDomThingy(stateRouter) {

function detachFromState({ state }) {
currentDetachListeners.forEach(fn => fn(currentDomApis[state.name]))
function detachFromState({ state, domApi }) {
if (!currentDomApis[state.name]) {
console.error('detaching, but no current dom api for that name was found')
}
currentDetachListeners.forEach(fn => fn(domApi))
delete currentDomApis[state.name]

@@ -15,0 +18,0 @@ }

{
"name": "asr-active-state-watcher",
"version": "1.0.1",
"version": "1.0.2",
"description": "Waches an abstract-state-router and calls your function with all active DOM APIs",

@@ -5,0 +5,0 @@ "main": "es5.js",

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