Socket
Socket
Sign inDemoInstall

dva-core

Package Overview
Dependencies
15
Maintainers
1
Versions
29
Alerts
File Explorer

Advanced tools

Install Socket

Detect and block malicious and high-risk dependencies

Install

Comparing version 2.0.1 to 2.0.2

3

dist/index.esm.js

@@ -297,4 +297,5 @@ import _objectSpread from '@babel/runtime/helpers/esm/objectSpread';

var typeWithoutAffix = prefixedType.replace(/\/@@[^/]+?$/, '');
var reducer = Array.isArray(model.reducers) ? model.reducers[0][typeWithoutAffix] : model.reducers && model.reducers[typeWithoutAffix];
if (model.reducers && model.reducers[typeWithoutAffix] || model.effects && model.effects[typeWithoutAffix]) {
if (reducer || model.effects && model.effects[typeWithoutAffix]) {
return prefixedType;

@@ -301,0 +302,0 @@ }

@@ -423,4 +423,5 @@ 'use strict';

var typeWithoutAffix = prefixedType.replace(/\/@@[^/]+?$/, '');
var reducer = Array.isArray(model.reducers) ? model.reducers[0][typeWithoutAffix] : model.reducers && model.reducers[typeWithoutAffix];
if (model.reducers && model.reducers[typeWithoutAffix] || model.effects && model.effects[typeWithoutAffix]) {
if (reducer || model.effects && model.effects[typeWithoutAffix]) {
return prefixedType;

@@ -427,0 +428,0 @@ }

{
"name": "dva-core",
"version": "2.0.1",
"version": "2.0.2",
"description": "The core lightweight library for dva, based on redux and redux-saga.",

@@ -5,0 +5,0 @@ "main": "dist/index.js",

@@ -6,6 +6,7 @@ import { NAMESPACE_SEP } from './constants';

const typeWithoutAffix = prefixedType.replace(/\/@@[^/]+?$/, '');
if (
(model.reducers && model.reducers[typeWithoutAffix]) ||
(model.effects && model.effects[typeWithoutAffix])
) {
const reducer = Array.isArray(model.reducers)
? model.reducers[0][typeWithoutAffix]
: model.reducers && model.reducers[typeWithoutAffix];
if (reducer || (model.effects && model.effects[typeWithoutAffix])) {
return prefixedType;

@@ -12,0 +13,0 @@ }

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