File tree 9 files changed +19
-124
lines changed
9 files changed +19
-124
lines changed Original file line number Diff line number Diff line change @@ -17,3 +17,4 @@ yarn.lock
17
17
18
18
# build task results for ci
19
19
coverage /
20
+ .nyc_output /
Load Diff This file was deleted.
Original file line number Diff line number Diff line change @@ -4,6 +4,7 @@ language: node_js
4
4
node_js :
5
5
- ' 8'
6
6
- ' 10'
7
+ - ' 12'
7
8
- " lts/*" # Active LTS release
8
9
- " node" # Latest stable release
9
10
after_success :
Load Diff This file was deleted.
Original file line number Diff line number Diff line change @@ -24,7 +24,7 @@ YARN := yarn
24
24
NPM := npm
25
25
COVERALLS := $(NODE_BIN ) /coveralls
26
26
ESLINT := $(NODE_BIN ) /eslint
27
- ISTANBUL := $(NODE_BIN ) /istanbul
27
+ ISTANBUL := $(NODE_BIN ) /nyc
28
28
MOCHA := $(NODE_BIN ) /mocha
29
29
_MOCHA := $(NODE_BIN ) /_mocha
30
30
UNLEASH := $(NODE_BIN ) /unleash
@@ -100,12 +100,12 @@ test: $(NODE_MODULES) ## Run unit tests
100
100
101
101
.PHONY : coverage
102
102
coverage : $(NODE_MODULES ) clean-coverage # # Generate test coverage
103
- @$(ISTANBUL ) cover $( _MOCHA ) --report lcovonly -- -R spec
103
+ @$(ISTANBUL ) --report lcovonly $( _MOCHA ) -R spec
104
104
105
105
106
106
.PHONY : report-coverage
107
107
report-coverage : $(NODE_MODULES ) coverage # # Report test coverage to Coveralls
108
- @cat $( LCOV ) | $(COVERALLS )
108
+ $( ISTANBUL ) report --reporter=text-lcov | $(COVERALLS )
109
109
110
110
111
111
.PHONY : clean-coverage
Original file line number Diff line number Diff line change 5
5
[ ![ Coverage Status] ( https://coveralls.io/repos/restify/errors/badge.svg?branch=master )] ( https://coveralls.io/r/restify/errors?branch=master )
6
6
[ ![ Dependency Status] ( https://david-dm.org/restify/errors.svg )] ( https://david-dm.org/restify/errors )
7
7
[ ![ devDependency Status] ( https://david-dm.org/restify/errors/dev-status.svg )] ( https://david-dm.org/restify/errors#info=devDependencies )
8
- [ ![ bitHound Score] ( https://www.bithound.io/github/restify/errors/badges/score.svg )] ( https://www.bithound.io/github/restify/errors/master )
9
8
10
9
> A collection of HTTP and REST Error constructors.
11
10
Original file line number Diff line number Diff line change @@ -90,7 +90,7 @@ function HttpError() {
90
90
* @property
91
91
* @type {Function }
92
92
*/
93
- if ( opts . hasOwnProperty ( 'toJSON' ) ) {
93
+ if ( Object . prototype . hasOwnProperty . call ( opts , 'toJSON' ) ) {
94
94
self . toJSON = opts . toJSON ;
95
95
}
96
96
@@ -100,7 +100,7 @@ function HttpError() {
100
100
* @property
101
101
* @type {Function }
102
102
*/
103
- if ( opts . hasOwnProperty ( 'toString' ) ) {
103
+ if ( Object . prototype . hasOwnProperty . call ( opts , 'toString' ) ) {
104
104
self . toString = opts . toString ;
105
105
}
106
106
}
Original file line number Diff line number Diff line change @@ -46,7 +46,7 @@ function parseVErrorArgs(ctorArgs) {
46
46
if ( _ . isPlainObject ( args [ 0 ] ) ) {
47
47
// split restify-errors options from verror options
48
48
_ . forOwn ( args [ 0 ] , function ( val , key ) {
49
- if ( INTERNAL_OPTS_KEYS . hasOwnProperty ( key ) ) {
49
+ if ( Object . prototype . hasOwnProperty . call ( INTERNAL_OPTS_KEYS , key ) ) {
50
50
internalOpts [ key ] = val ;
51
51
} else {
52
52
verrorOpts [ key ] = val ;
Original file line number Diff line number Diff line change 35
35
"test" : " make test"
36
36
},
37
37
"devDependencies" : {
38
- "bunyan" : " ^1.8.10 " ,
38
+ "bunyan" : " ^1.8.12 " ,
39
39
"chai" : " ^4.2.0" ,
40
- "conventional-changelog-angular" : " ^5.0.0" ,
41
- "conventional-recommended-bump" : " ^4.0.0" ,
42
- "coveralls" : " ^3.0.3" ,
43
- "eslint" : " ^5.16.0" ,
44
- "istanbul" : " ^0.4.5" ,
40
+ "conventional-changelog-angular" : " ^5.0.6" ,
41
+ "conventional-recommended-bump" : " ^6.0.5" ,
42
+ "coveralls" : " ^3.0.9" ,
43
+ "eslint" : " ^6.7.2" ,
45
44
"mkdirp" : " ^0.5.1" ,
46
- "mocha" : " ^6.1.4" ,
47
- "restify" : " ^8.3.1" ,
48
- "restify-clients" : " ^2.6.4" ,
45
+ "mocha" : " ^6.2.2" ,
46
+ "nyc" : " ^14.1.1" ,
47
+ "restify" : " ^8.5.0" ,
48
+ "restify-clients" : " ^2.6.7" ,
49
49
"unleash" : " ^2.0.1"
50
50
},
51
51
"optionalDependencies" : {
52
- "safe-json-stringify" : " ^1.0.4 "
52
+ "safe-json-stringify" : " ^1.2.0 "
53
53
},
54
54
"dependencies" : {
55
- "@netflix/nerror" : " ^1.0.0 " ,
55
+ "@netflix/nerror" : " ^1.1.3 " ,
56
56
"assert-plus" : " ^1.0.0" ,
57
57
"lodash" : " ^4.17.15"
58
58
}
You can’t perform that action at this time.
0 commit comments