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

@eknkc/dux

Package Overview
Dependencies
Maintainers
1
Versions
21
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@eknkc/dux - npm Package Compare versions

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": {

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