Socket
Socket
Sign inDemoInstall

anotherstatemanager

Package Overview
Dependencies
Maintainers
1
Versions
24
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

anotherstatemanager - npm Package Compare versions

Comparing version 1.0.14 to 1.0.15

4

package.json
{
"name": "anotherstatemanager",
"version": "1.0.14",
"version": "1.0.15",
"description": "Very flexible, performant, simple state management for managing a lot of rapid changes and various scenarios. Great for low overhead event management of game inputs and data streams.",

@@ -23,3 +23,3 @@ "main": "StateManager.js",

"dependencies": {
"objectlisteners": "1.0.2"
"objectlisteners": "1.0.3"
},

@@ -26,0 +26,0 @@ "bugs": {

@@ -462,18 +462,23 @@ import ObjectListener from 'objectlisteners'

//console.log(value);
if (prev[key] === value || idx === 0) {
path.push(key);
parents.push(value.pushed);
} else {
while (idx-- >= 0) {
prev = parents[idx];
if (prev[key] === value) {
idx += 2;
parents.length = idx;
path.length = idx;
--idx;
parents[idx] = value;
path[idx] = key;
break;
if(typeof prev === 'object') {
if (prev[key] === value || idx === 0) {
path.push(key);
parents.push(value.pushed);
} else {
while (idx-- >= 0) {
prev = parents[idx];
if(typeof prev === 'object') {
if (prev[key] === value) {
idx += 2;
parents.length = idx;
path.length = idx;
--idx;
parents[idx] = value;
path[idx] = key;
break;
}
}
idx++;
}
}
}
}

@@ -480,0 +485,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