@eknkc/dux
Advanced tools
Comparing version 1.1.0 to 1.1.1
18
build.js
@@ -44,3 +44,5 @@ 'use strict'; | ||
function createAction(name) { | ||
let mapper = arguments.length <= 1 || arguments[1] === undefined ? x => x : arguments[1]; | ||
var mapper = arguments.length <= 1 || arguments[1] === undefined ? function (x) { | ||
return x; | ||
} : arguments[1]; | ||
@@ -63,4 +65,4 @@ var symbol = Symbol(name); | ||
return function () { | ||
let state = arguments.length <= 0 || arguments[0] === undefined ? defState : arguments[0]; | ||
let action = arguments[1]; | ||
var state = arguments.length <= 0 || arguments[0] === undefined ? defState : arguments[0]; | ||
var action = arguments[1]; | ||
@@ -81,8 +83,8 @@ if (!_immutable2.default.Iterable.isIterable(state)) state = _immutable2.default.fromJS(state); | ||
return function () { | ||
let state = arguments.length <= 0 || arguments[0] === undefined ? new _immutable2.default.Map() : arguments[0]; | ||
let action = arguments[1]; | ||
var state = arguments.length <= 0 || arguments[0] === undefined ? new _immutable2.default.Map() : arguments[0]; | ||
var action = arguments[1]; | ||
Object.keys(reducers).forEach(rkey => { | ||
let oldState = state.get(rkey); | ||
let newState = reducers[rkey](oldState, action); | ||
Object.keys(reducers).forEach(function (rkey) { | ||
var oldState = state.get(rkey); | ||
var newState = reducers[rkey](oldState, action); | ||
@@ -89,0 +91,0 @@ if (typeof newState === 'undefined') throw new Error("Received undefined as new state."); |
{ | ||
"name": "@eknkc/dux", | ||
"version": "1.1.0", | ||
"version": "1.1.1", | ||
"description": "Redux helpers", | ||
"main": "build.js", | ||
"scripts": { | ||
"build": "./node_modules/.bin/babel --presets es2015-node4 index.js -o build.js", | ||
"build": "./node_modules/.bin/babel --presets es2015 index.js -o build.js", | ||
"prepublish": "npm run build" | ||
@@ -18,3 +18,3 @@ }, | ||
"babel-cli": "^6.6.5", | ||
"babel-preset-es2015-node4": "^2.0.3" | ||
"babel-preset-es2015": "^6.6.0" | ||
}, | ||
@@ -21,0 +21,0 @@ "dependencies": { |
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
4993
113