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

redux-supermodel

Package Overview
Dependencies
Maintainers
1
Versions
27
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

redux-supermodel - npm Package Compare versions

Comparing version 0.3.0 to 0.4.0

6

dist/reducer.js

@@ -32,2 +32,8 @@ 'use strict';

{
if (payload === undefined) {
const newState = _extends({}, state);
delete newState[meta.resourceName];
return newState;
}
const resource = { initialized: true, busy: false, payload: payload, previous: null };

@@ -34,0 +40,0 @@ return _extends({}, state, { [meta.resourceName]: resource });

2

package.json
{
"name": "redux-supermodel",
"version": "0.3.0",
"version": "0.4.0",
"description": "A package of action creator functions and reducers that deal with the state management of REST-like APIs for you... all you need is a URL!",

@@ -5,0 +5,0 @@ "repository": "https://github.com/MrLeebo/redux-supermodel",

@@ -256,1 +256,3 @@ # redux-supermodel

```
If you call `reset()` without any parameters, it will destroy all of the state associated with your resource, it will be as if it was brand new.
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