Skip to content

Commit

Permalink
fix(dev): upgrade dependencies
Browse files Browse the repository at this point in the history
  • Loading branch information
rstuven committed Aug 17, 2016
1 parent 6e9fa27 commit 118bdc8
Show file tree
Hide file tree
Showing 7 changed files with 32 additions and 16 deletions.
5 changes: 4 additions & 1 deletion .eslintrc
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
{
"extends": "eslint-config-airbnb/base",
"parser": "babel-eslint",
"env": {
"mocha": true,
"node": true
Expand All @@ -8,10 +9,12 @@
"expect": true
},
"rules": {
"arrow-body-style": 0,
"padded-blocks": 0,
"no-use-before-define": [2, "nofunc"],
"no-unused-expressions": 0,
"no-reserved-keys": 0,
"space-infix-ops": 0
"space-infix-ops": 0,
"import/no-extraneous-dependencies": 0
}
}
6 changes: 6 additions & 0 deletions .npmignore
Original file line number Diff line number Diff line change
@@ -1 +1,7 @@
src
.babelrc
.eslintrc
.npmrc
.nvmrc
.travis.yml
Makefile
1 change: 1 addition & 0 deletions .nvmrc
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
6.3
25 changes: 13 additions & 12 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -24,20 +24,21 @@
},
"license": "MIT",
"devDependencies": {
"babel-cli": "6.4.0",
"babel-core": "6.3.26",
"babel-eslint": "6.0.1",
"babel-preset-es2015": "6.3.13",
"babel-preset-stage-0": "6.3.13",
"chai": "3.4.1",
"eslint": "1.10.3",
"eslint-config-airbnb": "2.1.1",
"lodash.isplainobject": "3.2.0",
"mocha": "2.3.4",
"babel-cli": "6.11.4",
"babel-core": "6.13.2",
"babel-eslint": "6.1.2",
"babel-preset-es2015": "6.13.2",
"babel-preset-stage-0": "6.5.0",
"chai": "3.5.0",
"eslint": "3.3.1",
"eslint-config-airbnb": "10.0.1",
"eslint-plugin-import": "1.13.0",
"lodash.isplainobject": "4.0.6",
"mocha": "3.0.2",
"semantic-release": "4.3.5"
},
"dependencies": {
"flux-standard-action": "0.6.0",
"is-my-json-valid": "2.12.3"
"flux-standard-action": "0.6.1",
"is-my-json-valid": "2.13.1"
}
}
2 changes: 1 addition & 1 deletion src/__tests__/createAction-test.js
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
import { createAction } from '../';
import isPlainObject from 'lodash.isplainobject';
import { createAction } from '../';

describe('createAction()', () => {
describe('resulting action creator', () => {
Expand Down
1 change: 1 addition & 0 deletions src/__tests__/init.js
Original file line number Diff line number Diff line change
@@ -1,2 +1,3 @@
import chai from 'chai';

global.expect = chai.expect;
8 changes: 6 additions & 2 deletions src/createAction.js
Original file line number Diff line number Diff line change
Expand Up @@ -28,13 +28,17 @@ function propertyCreator(spec, name) {
}
if (typeof spec === 'object' && spec instanceof Array) {
return (data) => spec.reduce((res, prop) => {
res[prop] = data[prop];
return res;
return {
...res,
[prop]: data[prop],
};
}, {});
}
if (isValidator(spec)) {
return validatedIdentity(spec, name);
}

return undefined;
}

export default function createAction(type, payloadSpec, metaSpec) {
Expand Down

0 comments on commit 118bdc8

Please sign in to comment.