Comparing version 2.0.4 to 2.0.5
'use strict'; | ||
var _typeof = typeof Symbol === "function" && typeof Symbol.iterator === "symbol" ? function (obj) { return typeof obj; } : function (obj) { return obj && typeof Symbol === "function" && obj.constructor === Symbol ? "symbol" : typeof obj; }; | ||
var _typeof = typeof Symbol === "function" && typeof Symbol.iterator === "symbol" ? function (obj) { return typeof obj; } : function (obj) { return obj && typeof Symbol === "function" && obj.constructor === Symbol && obj !== Symbol.prototype ? "symbol" : typeof obj; }; | ||
@@ -11,4 +11,2 @@ var _createClass = function () { function defineProperties(target, props) { for (var i = 0; i < props.length; i++) { var descriptor = props[i]; descriptor.enumerable = descriptor.enumerable || false; descriptor.configurable = true; if ("value" in descriptor) descriptor.writable = true; Object.defineProperty(target, descriptor.key, descriptor); } } return function (Constructor, protoProps, staticProps) { if (protoProps) defineProperties(Constructor.prototype, protoProps); if (staticProps) defineProperties(Constructor, staticProps); return Constructor; }; }(); | ||
var path = require('path'); | ||
var promiseFinally = require('promise.prototype.finally'); | ||
promiseFinally.shim(); | ||
@@ -49,7 +47,7 @@ var JsdocCommand = function () { | ||
return this.output.then(function (result) { | ||
_this.postExecute(); | ||
return result; | ||
}).catch(function (err) { | ||
_this.postExecute(); | ||
throw err; | ||
}).finally(function () { | ||
return _this.postExecute(); | ||
}); | ||
@@ -113,3 +111,3 @@ } else { | ||
var _ret = function () { | ||
var fs = require('then-fs'); | ||
var fs = require('fs-then-native'); | ||
var promises = _this2.inputFileSet.files.map(function (file) { | ||
@@ -116,0 +114,0 @@ return fs.readFile(file, 'utf8'); |
@@ -22,3 +22,3 @@ 'use strict'; | ||
var homePath = require('home-path'); | ||
var fs = require('then-fs'); | ||
var fs = require('fs-then-native'); | ||
@@ -25,0 +25,0 @@ var CACHE_DIR = path.resolve(homePath(), '.jsdoc-api'); |
{ | ||
"name": "jsdoc-api", | ||
"author": "Lloyd Brookes <75pound@gmail.com>", | ||
"version": "2.0.4", | ||
"version": "2.0.5", | ||
"description": "A programmatic interface for jsdoc", | ||
@@ -6,0 +6,0 @@ "repository": "https://github.com/jsdoc2md/jsdoc-api.git", |
@@ -6,3 +6,3 @@ 'use strict' | ||
var path = require('path') | ||
var fs = require('then-fs') | ||
var fs = require('fs-then-native') | ||
var a = require('core-assert') | ||
@@ -9,0 +9,0 @@ |
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
1106399
2370
11