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.0 to 0.1.0-alpha.1

20

lib/core/configureRefect.js

@@ -18,13 +18,13 @@ 'use strict';

function combineRefectReducer() {
for (var _len = arguments.length, rexReducers = Array(_len), _key = 0; _key < _len; _key++) {
rexReducers[_key] = arguments[_key];
for (var _len = arguments.length, refectReducers = Array(_len), _key = 0; _key < _len; _key++) {
refectReducers[_key] = arguments[_key];
}
return function (state, manager) {
var rexReducerMaps = rexReducers.map(function (rexReducer) {
return rexReducer(state, manager);
var refectReducerMaps = refectReducers.map(function (refectReducer) {
return refectReducer(state, manager);
});
return rexReducerMaps.reduce(function (finalMap, rexReducerMap) {
return _extends({}, finalMap, rexReducerMap);
return refectReducerMaps.reduce(function (finalMap, refectReducerMap) {
return _extends({}, finalMap, refectReducerMap);
}, {});

@@ -44,5 +44,5 @@ };

var _options$reducer = options.reducer,
rexReducer = _options$reducer === undefined ? defaultRefectReducer : _options$reducer,
refectReducer = _options$reducer === undefined ? defaultRefectReducer : _options$reducer,
_options$tasks = options.tasks,
rexTasks = _options$tasks === undefined ? _utils.defaultRefectTasks : _options$tasks,
refectTasks = _options$tasks === undefined ? _utils.defaultRefectTasks : _options$tasks,
initialState = options.initialState,

@@ -71,3 +71,3 @@ _options$effects = options.effects,

});
var finalRefectReducer = combineRefectReducer.apply(undefined, [rexReducer].concat(_toConsumableArray(putinReducers)));
var finalRefectReducer = combineRefectReducer.apply(undefined, [refectReducer].concat(_toConsumableArray(putinReducers)));
var reducerActionCreators = (0, _parseRefect.parseRefectActions)(finalRefectReducer, namespace);

@@ -78,3 +78,3 @@ var reducer = (0, _parseRefect.parseRefectReducer)(finalRefectReducer, namespace, initialState);

var taskActionCreators = store.runTask({
rexTasks: rexTasks, namespace: namespace, getActions: getActions,
refectTasks: refectTasks, namespace: namespace, getActions: getActions,
effects: effects.map(function (effect) {

@@ -81,0 +81,0 @@ return effect.plugin || _utils.defaultRefectTasks;

{
"name": "refect",
"version": "0.1.0-alpha.0",
"version": "0.1.0-alpha.1",
"description": "",

@@ -8,3 +8,3 @@ "main": "lib/index.js",

"dev": "babel src --out-dir lib -w",
"build": "babel src --out-dir lib",
"build": "rm -rf lib && babel src --out-dir lib",
"demo": "webpack-dev-server --progress --port 3030 --colors --content-base demos --hot --inline --config demos/webpack.config.js",

@@ -11,0 +11,0 @@ "autofix": "eslint src --fix",

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