Socket
Socket
Sign inDemoInstall

@rematch/immer

Package Overview
Dependencies
3
Maintainers
3
Versions
22
Alerts
File Explorer

Advanced tools

Install Socket

Detect and block malicious and high-risk dependencies

Install

Comparing version 2.0.0 to 2.0.1

dist/README.md

11

CHANGELOG.md

@@ -6,2 +6,13 @@ # Change Log

## [2.0.1](https://github.com/rematch/rematch/compare/@rematch/immer@2.0.0...@rematch/immer@2.0.1) (2021-02-23)
### Bug Fixes
* immer `whitelist` and `blacklist` conf no longer ignored ([#867](https://github.com/rematch/rematch/issues/867)) ([775258e](https://github.com/rematch/rematch/commit/775258eb8c81ad4bb3548b0d43445c4061bbbd5d))
# [2.0.0](https://github.com/rematch/rematch/compare/@rematch/immer@2.0.0-next.10...@rematch/immer@2.0.0) (2021-01-31)

@@ -8,0 +19,0 @@

2

dist/immer.cjs.development.js

@@ -22,3 +22,3 @@ 'use strict';

onReducer: function onReducer(reducer, model) {
if (!config || !config.whitelist && !config.blacklist || config.whitelist && model in config.whitelist || config.blacklist && !(model in config.blacklist)) {
if (!config || !config.whitelist && !config.blacklist || config.whitelist && config.whitelist.includes(model) || config.blacklist && !config.blacklist.includes(model)) {
return wrapReducerWithImmer(reducer);

@@ -25,0 +25,0 @@ }

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

"use strict";Object.defineProperty(exports,"__esModule",{value:!0});var t,e=(t=require("immer"))&&"object"==typeof t&&"default"in t?t.default:t;exports.default=function(t){return{onReducer:function(i,r){if(!t||!t.whitelist&&!t.blacklist||t.whitelist&&r in t.whitelist||t.blacklist&&!(r in t.blacklist))return function(t){return function(i,r){return"object"==typeof i?e(i,(function(e){var i=t(e,r);if("object"==typeof i)return i})):t(i,r)}}(i)}}};
"use strict";Object.defineProperty(exports,"__esModule",{value:!0});var e,t=(e=require("immer"))&&"object"==typeof e&&"default"in e?e.default:e;exports.default=function(e){return{onReducer:function(i,r){if(!e||!e.whitelist&&!e.blacklist||e.whitelist&&e.whitelist.includes(r)||e.blacklist&&!e.blacklist.includes(r))return function(e){return function(i,r){return"object"==typeof i?t(i,(function(t){var i=e(t,r);if("object"==typeof i)return i})):e(i,r)}}(i)}}};
//# sourceMappingURL=immer.cjs.production.min.js.map

@@ -16,3 +16,3 @@ import produce from 'immer';

onReducer: function onReducer(reducer, model) {
if (!config || !config.whitelist && !config.blacklist || config.whitelist && model in config.whitelist || config.blacklist && !(model in config.blacklist)) {
if (!config || !config.whitelist && !config.blacklist || config.whitelist && config.whitelist.includes(model) || config.blacklist && !config.blacklist.includes(model)) {
return wrapReducerWithImmer(reducer);

@@ -19,0 +19,0 @@ }

@@ -22,3 +22,3 @@ (function (global, factory) {

onReducer: function onReducer(reducer, model) {
if (!config || !config.whitelist && !config.blacklist || config.whitelist && model in config.whitelist || config.blacklist && !(model in config.blacklist)) {
if (!config || !config.whitelist && !config.blacklist || config.whitelist && config.whitelist.includes(model) || config.blacklist && !config.blacklist.includes(model)) {
return wrapReducerWithImmer(reducer);

@@ -25,0 +25,0 @@ }

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

!function(e,t){"object"==typeof exports&&"undefined"!=typeof module?t(exports,require("immer")):"function"==typeof define&&define.amd?define(["exports","immer"],t):t((e=e||self)["@rematch/immer"]={},e.produce)}(this,(function(e,t){"use strict";t=t&&Object.prototype.hasOwnProperty.call(t,"default")?t.default:t,e.default=function(e){return{onReducer:function(i,n){if(!e||!e.whitelist&&!e.blacklist||e.whitelist&&n in e.whitelist||e.blacklist&&!(n in e.blacklist))return function(e){return function(i,n){return"object"==typeof i?t(i,(function(t){var i=e(t,n);if("object"==typeof i)return i})):e(i,n)}}(i)}}},Object.defineProperty(e,"__esModule",{value:!0})}));
!function(e,t){"object"==typeof exports&&"undefined"!=typeof module?t(exports,require("immer")):"function"==typeof define&&define.amd?define(["exports","immer"],t):t((e=e||self)["@rematch/immer"]={},e.produce)}(this,(function(e,t){"use strict";t=t&&Object.prototype.hasOwnProperty.call(t,"default")?t.default:t,e.default=function(e){return{onReducer:function(i,n){if(!e||!e.whitelist&&!e.blacklist||e.whitelist&&e.whitelist.includes(n)||e.blacklist&&!e.blacklist.includes(n))return function(e){return function(i,n){return"object"==typeof i?t(i,(function(t){var i=e(t,n);if("object"==typeof i)return i})):e(i,n)}}(i)}}},Object.defineProperty(e,"__esModule",{value:!0})}));
//# sourceMappingURL=immer.umd.production.min.js.map
{
"name": "@rematch/immer",
"version": "2.0.0",
"version": "2.0.1",
"description": "Redux-Immer v6 plugin for Rematch. Provides immutable ability for rematch.",

@@ -27,8 +27,8 @@ "homepage": "https://rematch.github.io/rematch",

"devDependencies": {
"@rematch/core": "^2.0.0",
"immer": "^7.0.9",
"@rematch/core": "^2.0.1",
"immer": "^8.0.1",
"redux": "^4.0.5"
},
"peerDependencies": {
"@rematch/core": ">=2.0.0-next.0",
"@rematch/core": "^2.0.0",
"immer": ">=7 | >= 8",

@@ -58,3 +58,3 @@ "redux": ">=4"

},
"gitHead": "d575883af19a6f105655ea23b143e64590720acb"
"gitHead": "e123bb5976bcc1ef7f178c2b685bed9805d80cda"
}

@@ -32,4 +32,4 @@ import { Plugin, Models } from '@rematch/core'

(!config.whitelist && !config.blacklist) ||
(config.whitelist && model in config.whitelist) ||
(config.blacklist && !(model in config.blacklist))
(config.whitelist && config.whitelist.includes(model)) ||
(config.blacklist && !config.blacklist.includes(model))
) {

@@ -36,0 +36,0 @@ return wrapReducerWithImmer(reducer)

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc