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

easy-state

Package Overview
Dependencies
Maintainers
1
Versions
11
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

easy-state - npm Package Compare versions

Comparing version 1.1.2 to 1.1.3

.npmignore

4

lib/createStateTree.js

@@ -47,6 +47,6 @@ 'use strict';

(0, _utils.checkForUndefinedKeys)(previousState, nextState);
currentState = Object.assign({}, initialState, nextState);
currentState = Object.assign({}, currentState, nextState);
} else if (typeof nextState === 'function') {
(0, _utils.checkForUndefinedKeys)(previousState, nextState(previousState));
currentState = Object.assign({}, initialState, nextState(previousState));
currentState = Object.assign({}, currentState, nextState(previousState));
} else {

@@ -53,0 +53,0 @@ throw new Error('Expected nextState to be a plain object or a callback function.');

{
"name": "easy-state",
"version": "1.1.2",
"version": "1.1.3",
"description": "Simple state manipulation without any frameworks.",

@@ -5,0 +5,0 @@ "main": "./lib/index.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