File tree Expand file tree Collapse file tree 3 files changed +7
-7
lines changed Expand file tree Collapse file tree 3 files changed +7
-7
lines changed Original file line number Diff line number Diff line change @@ -13,7 +13,6 @@ var JsdocCommand = function () {
13
13
function JsdocCommand ( options , cache ) {
14
14
_classCallCheck ( this , JsdocCommand ) ;
15
15
16
- require ( 'promise.prototype.finally' ) ;
17
16
options = options || { } ;
18
17
options . files = arrayify ( options . files ) ;
19
18
@@ -43,7 +42,8 @@ var JsdocCommand = function () {
43
42
var err = this . validate ( ) ;
44
43
this . output = this . getOutput ( err ) ;
45
44
if ( this . output instanceof Promise ) {
46
- this . output . finally ( function ( ) {
45
+ var promiseFinally = require ( 'promise.prototype.finally' ) ;
46
+ promiseFinally ( this . output ) . then ( function ( ) {
47
47
_this . postExecute ( ) ;
48
48
} ) ;
49
49
} else {
Original file line number Diff line number Diff line change @@ -12,7 +12,6 @@ const path = require('path')
12
12
*/
13
13
class JsdocCommand {
14
14
constructor ( options , cache ) {
15
- require ( 'promise.prototype.finally' )
16
15
options = options || { }
17
16
options . files = arrayify ( options . files )
18
17
@@ -50,7 +49,8 @@ class JsdocCommand {
50
49
const err = this . validate ( )
51
50
this . output = this . getOutput ( err )
52
51
if ( this . output instanceof Promise ) {
53
- this . output . finally ( ( ) => {
52
+ const promiseFinally = require ( 'promise.prototype.finally' )
53
+ promiseFinally ( this . output ) . then ( ( ) => {
54
54
this . postExecute ( )
55
55
} )
56
56
} else {
Original file line number Diff line number Diff line change 30
30
"coveralls" : " ^2.11.12" ,
31
31
"jsdoc-to-markdown" : " ^2.0.0-alpha.8" ,
32
32
"rimraf" : " ^2.5.4" ,
33
- "test-runner" : " ~0.1.11 "
33
+ "test-runner" : " ~0.1.13 "
34
34
},
35
35
"dependencies" : {
36
36
"array-back" : " ^1.0.3" ,
37
37
"cache-point" : " ~0.3.3" ,
38
38
"collect-all" : " ^1.0.2" ,
39
39
"core-js" : " ^2.4.1" ,
40
40
"feature-detect-es6" : " ^1.3.1" ,
41
- "file-set" : " ^1.0.1 " ,
41
+ "file-set" : " ^1.0.2 " ,
42
42
"jsdoc-75lb" : " ^3.5.6" ,
43
43
"object-to-spawn-args" : " ^1.1.0" ,
44
- "promise.prototype.finally" : " ^1 .0.1 " ,
44
+ "promise.prototype.finally" : " ^2 .0.0 " ,
45
45
"temp-path" : " ^1.0.0" ,
46
46
"then-fs" : " ^2.0.0" ,
47
47
"walk-back" : " ^2.0.1"
You can’t perform that action at this time.
0 commit comments