File tree Expand file tree Collapse file tree 2 files changed +7
-9
lines changed Expand file tree Collapse file tree 2 files changed +7
-9
lines changed Original file line number Diff line number Diff line change 1
1
'use strict'
2
2
const arrayify = require ( 'array-back' )
3
3
const path = require ( 'path' )
4
- const promiseFinally = require ( 'promise.prototype.finally' )
5
- promiseFinally . shim ( )
6
4
7
5
/**
8
6
* @module jsdoc-command
@@ -53,12 +51,13 @@ class JsdocCommand {
53
51
if ( this . output instanceof Promise ) {
54
52
return this . output
55
53
. then ( result => {
54
+ this . postExecute ( )
56
55
return result
57
56
} )
58
57
. catch ( err => {
58
+ this . postExecute ( )
59
59
throw err
60
60
} )
61
- . finally ( ( ) => this . postExecute ( ) )
62
61
} else {
63
62
this . postExecute ( )
64
63
return this . output
@@ -126,7 +125,7 @@ class JsdocCommand {
126
125
*/
127
126
readCache ( ) {
128
127
if ( this . cache ) {
129
- const fs = require ( 'then-fs ' )
128
+ const fs = require ( 'fs- then-native ' )
130
129
const promises = this . inputFileSet . files . map ( file => fs . readFile ( file , 'utf8' ) )
131
130
return Promise . all ( promises )
132
131
. then ( contents => {
Original file line number Diff line number Diff line change 24
24
"cover" : " istanbul cover ./node_modules/.bin/test-runner test/*.js && cat coverage/lcov.info | ./node_modules/.bin/coveralls && rm -rf coverage; echo"
25
25
},
26
26
"devDependencies" : {
27
- "babel-preset-es2015" : " ^6.14 .0" ,
27
+ "babel-preset-es2015" : " ^6.16 .0" ,
28
28
"collect-json" : " ^1.0.8" ,
29
- "core-assert" : " ~0.2.0 " ,
29
+ "core-assert" : " ~0.2.1 " ,
30
30
"coveralls" : " ^2.11.14" ,
31
31
"jsdoc-to-markdown" : " ^2.0.0-alpha.8" ,
32
32
"rimraf" : " ^2.5.4" ,
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.2" ,
41
+ "file-set" : " ^1.1.1" ,
42
+ "fs-then-native" : " ^0.1.0" ,
42
43
"jsdoc-75lb" : " ^3.5.6" ,
43
44
"object-to-spawn-args" : " ^1.1.0" ,
44
- "promise.prototype.finally" : " ^2.0.1" ,
45
45
"temp-path" : " ^1.0.0" ,
46
- "then-fs" : " ^2.0.0" ,
47
46
"walk-back" : " ^2.0.1"
48
47
},
49
48
"standard" : {
You can’t perform that action at this time.
0 commit comments