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 () {
1313 function JsdocCommand ( options , cache ) {
1414 _classCallCheck ( this , JsdocCommand ) ;
1515
16- require ( 'promise.prototype.finally' ) ;
1716 options = options || { } ;
1817 options . files = arrayify ( options . files ) ;
1918
@@ -43,7 +42,8 @@ var JsdocCommand = function () {
4342 var err = this . validate ( ) ;
4443 this . output = this . getOutput ( err ) ;
4544 if ( this . output instanceof Promise ) {
46- this . output . finally ( function ( ) {
45+ var promiseFinally = require ( 'promise.prototype.finally' ) ;
46+ promiseFinally ( this . output ) . then ( function ( ) {
4747 _this . postExecute ( ) ;
4848 } ) ;
4949 } else {
Original file line number Diff line number Diff line change @@ -12,7 +12,6 @@ const path = require('path')
1212 */
1313class JsdocCommand {
1414 constructor ( options , cache ) {
15- require ( 'promise.prototype.finally' )
1615 options = options || { }
1716 options . files = arrayify ( options . files )
1817
@@ -50,7 +49,8 @@ class JsdocCommand {
5049 const err = this . validate ( )
5150 this . output = this . getOutput ( err )
5251 if ( this . output instanceof Promise ) {
53- this . output . finally ( ( ) => {
52+ const promiseFinally = require ( 'promise.prototype.finally' )
53+ promiseFinally ( this . output ) . then ( ( ) => {
5454 this . postExecute ( )
5555 } )
5656 } else {
Original file line number Diff line number Diff line change 3030 "coveralls" : " ^2.11.12" ,
3131 "jsdoc-to-markdown" : " ^2.0.0-alpha.8" ,
3232 "rimraf" : " ^2.5.4" ,
33- "test-runner" : " ~0.1.11 "
33+ "test-runner" : " ~0.1.13 "
3434 },
3535 "dependencies" : {
3636 "array-back" : " ^1.0.3" ,
3737 "cache-point" : " ~0.3.3" ,
3838 "collect-all" : " ^1.0.2" ,
3939 "core-js" : " ^2.4.1" ,
4040 "feature-detect-es6" : " ^1.3.1" ,
41- "file-set" : " ^1.0.1 " ,
41+ "file-set" : " ^1.0.2 " ,
4242 "jsdoc-75lb" : " ^3.5.6" ,
4343 "object-to-spawn-args" : " ^1.1.0" ,
44- "promise.prototype.finally" : " ^1 .0.1 " ,
44+ "promise.prototype.finally" : " ^2 .0.0 " ,
4545 "temp-path" : " ^1.0.0" ,
4646 "then-fs" : " ^2.0.0" ,
4747 "walk-back" : " ^2.0.1"
You can’t perform that action at this time.
0 commit comments