Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Commit118bdc8

Browse files
committed
fix(dev): upgrade dependencies
1 parent6e9fa27 commit118bdc8

File tree

7 files changed

+32
-16
lines changed

7 files changed

+32
-16
lines changed

‎.eslintrc‎

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,6 @@
11
{
22
"extends": "eslint-config-airbnb/base",
3+
"parser": "babel-eslint",
34
"env": {
45
"mocha": true,
56
"node": true
@@ -8,10 +9,12 @@
89
"expect": true
910
},
1011
"rules": {
12+
"arrow-body-style": 0,
1113
"padded-blocks": 0,
1214
"no-use-before-define": [2, "nofunc"],
1315
"no-unused-expressions": 0,
1416
"no-reserved-keys": 0,
15-
"space-infix-ops": 0
17+
"space-infix-ops": 0,
18+
"import/no-extraneous-dependencies": 0
1619
}
1720
}

‎.npmignore‎

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1 +1,7 @@
11
src
2+
.babelrc
3+
.eslintrc
4+
.npmrc
5+
.nvmrc
6+
.travis.yml
7+
Makefile

‎.nvmrc‎

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
6.3

‎package.json‎

Lines changed: 13 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -24,20 +24,21 @@
2424
},
2525
"license":"MIT",
2626
"devDependencies": {
27-
"babel-cli":"6.4.0",
28-
"babel-core":"6.3.26",
29-
"babel-eslint":"6.0.1",
30-
"babel-preset-es2015":"6.3.13",
31-
"babel-preset-stage-0":"6.3.13",
32-
"chai":"3.4.1",
33-
"eslint":"1.10.3",
34-
"eslint-config-airbnb":"2.1.1",
35-
"lodash.isplainobject":"3.2.0",
36-
"mocha":"2.3.4",
27+
"babel-cli":"6.11.4",
28+
"babel-core":"6.13.2",
29+
"babel-eslint":"6.1.2",
30+
"babel-preset-es2015":"6.13.2",
31+
"babel-preset-stage-0":"6.5.0",
32+
"chai":"3.5.0",
33+
"eslint":"3.3.1",
34+
"eslint-config-airbnb":"10.0.1",
35+
"eslint-plugin-import":"1.13.0",
36+
"lodash.isplainobject":"4.0.6",
37+
"mocha":"3.0.2",
3738
"semantic-release":"4.3.5"
3839
},
3940
"dependencies": {
40-
"flux-standard-action":"0.6.0",
41-
"is-my-json-valid":"2.12.3"
41+
"flux-standard-action":"0.6.1",
42+
"is-my-json-valid":"2.13.1"
4243
}
4344
}

‎src/__tests__/createAction-test.js‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
1-
import{createAction}from'../';
21
importisPlainObjectfrom'lodash.isplainobject';
2+
import{createAction}from'../';
33

44
describe('createAction()',()=>{
55
describe('resulting action creator',()=>{

‎src/__tests__/init.js‎

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,2 +1,3 @@
11
importchaifrom'chai';
2+
23
global.expect=chai.expect;

‎src/createAction.js‎

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -28,13 +28,17 @@ function propertyCreator(spec, name) {
2828
}
2929
if(typeofspec==='object'&&specinstanceofArray){
3030
return(data)=>spec.reduce((res,prop)=>{
31-
res[prop]=data[prop];
32-
returnres;
31+
return{
32+
...res,
33+
[prop]:data[prop],
34+
};
3335
},{});
3436
}
3537
if(isValidator(spec)){
3638
returnvalidatedIdentity(spec,name);
3739
}
40+
41+
returnundefined;
3842
}
3943

4044
exportdefaultfunctioncreateAction(type,payloadSpec,metaSpec){

0 commit comments

Comments
 (0)

[8]ページ先頭

©2009-2025 Movatter.jp