File tree Expand file tree Collapse file tree 2 files changed +13
-13
lines changed Expand file tree Collapse file tree 2 files changed +13
-13
lines changed Original file line number Diff line number Diff line change 41
41
"test" : " yarn run coverage" ,
42
42
"coverage" : " nyc mocha" ,
43
43
"coverage-html" : " nyc report --reporter=html && open ./coverage/index.html" ,
44
- "check-coverage" : " nyc check-coverage --statements 40 --functions 40 --branches 0 --lines 40 " ,
44
+ "check-coverage" : " nyc check-coverage --statements 35 --functions 35 --branches 0 --lines 35 " ,
45
45
"report" : " nyc report" ,
46
46
"coverage-lcov" : " nyc report --reporter=lcov" ,
47
47
"codacy" : " cat ./coverage/lcov.info | codacy-coverage" ,
54
54
"main" : " ./src/main.js" ,
55
55
"dependencies" : {
56
56
"clipboardy" : " ^2.1.0" ,
57
- "diff2html" : " ^2.7.0 " ,
57
+ "diff2html" : " ^2.11.2 " ,
58
58
"extend" : " ^3.0.2" ,
59
- "open" : " ^6.0 .0" ,
59
+ "open" : " ^6.4 .0" ,
60
60
"request" : " ^2.88.0" ,
61
- "yargs" : " ^12 .0.5 "
61
+ "yargs" : " ^14 .0.0 "
62
62
},
63
63
"devDependencies" : {
64
64
"codacy-coverage" : " ^3.4.0" ,
65
- "eslint" : " ^5.13.0 " ,
66
- "eslint-plugin-promise" : " ^4.0 .1" ,
67
- "eslint-plugin-standard" : " ^4.0.0 " ,
68
- "mocha" : " ^5 .2.0" ,
69
- "nyc" : " ^13.2.0 " ,
70
- "sinon" : " ^7.2.3 "
65
+ "eslint" : " ^6.2.1 " ,
66
+ "eslint-plugin-promise" : " ^4.2 .1" ,
67
+ "eslint-plugin-standard" : " ^4.0.1 " ,
68
+ "mocha" : " ^6 .2.0" ,
69
+ "nyc" : " ^14.1.1 " ,
70
+ "sinon" : " ^7.4.1 "
71
71
},
72
72
"license" : " MIT" ,
73
73
"files" : [
Original file line number Diff line number Diff line change 23
23
response . on ( 'data' , function ( body ) {
24
24
try {
25
25
var object = JSON . parse ( body . toString ( 'utf8' ) ) ;
26
- if ( object . id ) {
27
- return callback ( null , " https://diffy.org/diff/" + object . id ) ;
26
+ if ( object . id ) {
27
+ return callback ( null , ' https://diffy.org/diff/' + object . id ) ;
28
28
} else if ( object . error ) {
29
29
return callback ( new Error ( object . error ) ) ;
30
- } else {
30
+ } else {
31
31
return callback ( new Error ( body . toString ( 'utf8' ) ) ) ;
32
32
}
33
33
} catch ( err ) {
You can’t perform that action at this time.
0 commit comments