dva-core
Advanced tools
Comparing version 2.0.1 to 2.0.2
@@ -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 @@ } |
Environment variable access
Supply chain riskPackage accesses environment variables, which may be a sign of credential stuffing or data theft.
Found 1 instance in 1 package
Environment variable access
Supply chain riskPackage accesses environment variables, which may be a sign of credential stuffing or data theft.
Found 1 instance in 1 package
99538
2834
6