Skip to content

Commit b376b58

Browse files
committed
upgrade deps
1 parent 0fa9a91 commit b376b58

File tree

3 files changed

+7
-7
lines changed

3 files changed

+7
-7
lines changed

es5/jsdoc-command.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff 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 {

lib/jsdoc-command.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,6 @@ const path = require('path')
1212
*/
1313
class 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 {

package.json

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -30,18 +30,18 @@
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"

0 commit comments

Comments
 (0)