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

clean-state

Package Overview
Dependencies
Maintainers
1
Versions
21
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

clean-state - npm Package Compare versions

Comparing version 2.1.1 to 2.1.2

5

lib/container.js

@@ -1,2 +0,1 @@

import produce from 'immer';
import EventEmitter from 'eventemitter3';

@@ -50,5 +49,3 @@ import { splitPropertyAndMethod } from './helper';

if (this.rootState[namespace]) {
this.rootState[namespace] = produce(this.rootState[namespace], function (draftState) {
Object.assign(draftState, newState);
});
this.rootState[namespace] = newState;
}

@@ -55,0 +52,0 @@ this.trigger(namespace);

3

package.json
{
"name": "clean-state",
"version": "2.1.1",
"version": "2.1.2",
"description": "",

@@ -21,3 +21,2 @@ "main": "lib/index.js",

"eventemitter3": "^4.0.7",
"immer": "^8.0.0",
"react": "^17.0.1"

@@ -24,0 +23,0 @@ },

@@ -46,3 +46,3 @@ <p align="right">

reducers: {
setName({payload, state}: any) {
setName({payload, state}) {
return {...state, ...payload}

@@ -52,3 +52,3 @@ }

effects: {
async fetchNameAndSet({dispatch}: any) {
async fetchNameAndSet({dispatch}) {
const name = await Promise.resolve('fetch_name')

@@ -55,0 +55,0 @@ dispatch.user.setName({name})

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