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

refect

Package Overview
Dependencies
Maintainers
3
Versions
12
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

refect - npm Package Compare versions

Comparing version 0.1.0-alpha.3 to 0.1.0-alpha.4

14

lib/core/middleware.js

@@ -118,5 +118,3 @@ 'use strict';

function getEffects(namespace, getActions) {
var customedEffects = customEffects ? customEffects(getStore, namespace, getActions) : {};
return _extends({
return {
get: function get(path) {

@@ -164,3 +162,3 @@ var store = getStore();

}
}, customedEffects);
};
}

@@ -175,3 +173,5 @@

var taskActionCreators = (0, _parseRefect.parseTasksActions)(refectTasks, namespace);
var originEffects = getEffects(namespace, getActions);
var coreEffects = getEffects(namespace, getActions);
var customedEffects = customEffects ? customEffects(getStore, namespace, getActions) : {};
var plugins = {};

@@ -189,3 +189,3 @@

var finalEffects = _extends({}, originEffects, plugins);
var finalEffects = _extends({}, coreEffects, customedEffects, plugins);

@@ -197,3 +197,3 @@ return (0, _utils.map)(taskActionCreators, function (actionCreator, actionName) {

var bundActions = (0, _utils.deepBindActions)(actions, dispatch);
var taskMap = refectTasks(bundActions, finalEffects, originEffects, plugins);
var taskMap = refectTasks(bundActions, finalEffects, coreEffects, _extends({}, customedEffects, plugins));
var task = taskMap[actionName];

@@ -200,0 +200,0 @@

{
"name": "refect",
"version": "0.1.0-alpha.3",
"version": "0.1.0-alpha.4",
"description": "",

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

@@ -85,5 +85,2 @@ import { get, getActionType, is, check, map, deepBindActions } from 'utils';

function getEffects(namespace, getActions) {
const customedEffects = customEffects ?
customEffects(getStore, namespace, getActions) : {};
return {

@@ -119,3 +116,2 @@ get(path) {

},
...customedEffects,
};

@@ -126,3 +122,6 @@ }

const taskActionCreators = parseTasksActions(refectTasks, namespace);
const originEffects = getEffects(namespace, getActions);
const coreEffects = getEffects(namespace, getActions);
const customedEffects = customEffects ?
customEffects(getStore, namespace, getActions) : {};
let plugins = {};

@@ -144,3 +143,4 @@

const finalEffects = {
...originEffects,
...coreEffects,
...customedEffects,
...plugins,

@@ -154,3 +154,6 @@ };

const bundActions = deepBindActions(actions, dispatch);
const taskMap = refectTasks(bundActions, finalEffects, originEffects, plugins);
const taskMap = refectTasks(bundActions, finalEffects, coreEffects, {
...customedEffects,
...plugins,
});
const task = taskMap[actionName];

@@ -157,0 +160,0 @@

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