Comparing version 2.0.3 to 2.0.4
'use strict' | ||
const arrayify = require('array-back') | ||
const path = require('path') | ||
const promiseFinally = require('promise.prototype.finally') | ||
promiseFinally.shim() | ||
@@ -56,8 +54,9 @@ /** | ||
.then(result => { | ||
this.postExecute() | ||
return result | ||
}) | ||
.catch(err => { | ||
this.postExecute() | ||
throw err | ||
}) | ||
.finally(() => this.postExecute()) | ||
} else { | ||
@@ -130,3 +129,3 @@ this.postExecute() | ||
if (this.cache) { | ||
const fs = require('then-fs') | ||
const fs = require('fs-then-native') | ||
const promises = this.inputFileSet.files.map(file => fs.readFile(file, 'utf8')) | ||
@@ -133,0 +132,0 @@ return Promise.all(promises) |
{ | ||
"name": "jsdoc-api", | ||
"author": "Lloyd Brookes <75pound@gmail.com>", | ||
"version": "2.0.3", | ||
"version": "2.0.4", | ||
"description": "A programmatic interface for jsdoc", | ||
@@ -27,5 +27,5 @@ "repository": "https://github.com/jsdoc2md/jsdoc-api.git", | ||
"devDependencies": { | ||
"babel-preset-es2015": "^6.14.0", | ||
"babel-preset-es2015": "^6.16.0", | ||
"collect-json": "^1.0.8", | ||
"core-assert": "~0.2.0", | ||
"core-assert": "~0.2.1", | ||
"coveralls": "^2.11.14", | ||
@@ -42,8 +42,7 @@ "jsdoc-to-markdown": "^2.0.0-alpha.8", | ||
"feature-detect-es6": "^1.3.1", | ||
"file-set": "^1.0.2", | ||
"file-set": "^1.1.1", | ||
"fs-then-native": "^0.1.0", | ||
"jsdoc-75lb": "^3.5.6", | ||
"object-to-spawn-args": "^1.1.0", | ||
"promise.prototype.finally": "^2.0.1", | ||
"temp-path": "^1.0.0", | ||
"then-fs": "^2.0.0", | ||
"walk-back": "^2.0.1" | ||
@@ -50,0 +49,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
Filesystem access
Supply chain riskAccesses the file system, and could potentially read sensitive data.
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
11
1106441
2372
8
+ Addedfs-then-native@^0.1.0
+ Addedfs-then-native@0.1.2(transitive)
- Removedpromise.prototype.finally@^2.0.1
- Removedthen-fs@^2.0.0
- Removedarray-buffer-byte-length@1.0.1(transitive)
- Removedarraybuffer.prototype.slice@1.0.3(transitive)
- Removedasap@2.0.6(transitive)
- Removedavailable-typed-arrays@1.0.7(transitive)
- Removedcall-bind@1.0.7(transitive)
- Removeddata-view-buffer@1.0.1(transitive)
- Removeddata-view-byte-length@1.0.1(transitive)
- Removeddata-view-byte-offset@1.0.0(transitive)
- Removeddefine-data-property@1.1.4(transitive)
- Removeddefine-properties@1.2.1(transitive)
- Removedes-abstract@1.23.3(transitive)
- Removedes-define-property@1.0.0(transitive)
- Removedes-errors@1.3.0(transitive)
- Removedes-object-atoms@1.0.0(transitive)
- Removedes-set-tostringtag@2.0.3(transitive)
- Removedes-to-primitive@1.2.1(transitive)
- Removedfor-each@0.3.3(transitive)
- Removedfunction-bind@1.1.2(transitive)
- Removedfunction.prototype.name@1.1.6(transitive)
- Removedfunctions-have-names@1.2.3(transitive)
- Removedget-intrinsic@1.2.4(transitive)
- Removedget-symbol-description@1.0.2(transitive)
- Removedglobalthis@1.0.4(transitive)
- Removedgopd@1.0.1(transitive)
- Removedhas-bigints@1.0.2(transitive)
- Removedhas-property-descriptors@1.0.2(transitive)
- Removedhas-proto@1.0.3(transitive)
- Removedhas-symbols@1.0.3(transitive)
- Removedhas-tostringtag@1.0.2(transitive)
- Removedhasown@2.0.2(transitive)
- Removedinternal-slot@1.0.7(transitive)
- Removedis-array-buffer@3.0.4(transitive)
- Removedis-bigint@1.0.4(transitive)
- Removedis-boolean-object@1.1.2(transitive)
- Removedis-callable@1.2.7(transitive)
- Removedis-data-view@1.0.1(transitive)
- Removedis-date-object@1.0.5(transitive)
- Removedis-negative-zero@2.0.3(transitive)
- Removedis-number-object@1.0.7(transitive)
- Removedis-regex@1.1.4(transitive)
- Removedis-shared-array-buffer@1.0.3(transitive)
- Removedis-string@1.0.7(transitive)
- Removedis-symbol@1.0.4(transitive)
- Removedis-typed-array@1.1.13(transitive)
- Removedis-weakref@1.0.2(transitive)
- Removedisarray@2.0.5(transitive)
- Removedobject-inspect@1.13.3(transitive)
- Removedobject-keys@1.1.1(transitive)
- Removedobject.assign@4.1.5(transitive)
- Removedpossible-typed-array-names@1.0.0(transitive)
- Removedpromise@7.3.1(transitive)
- Removedpromise.prototype.finally@2.0.1(transitive)
- Removedregexp.prototype.flags@1.5.3(transitive)
- Removedsafe-array-concat@1.1.2(transitive)
- Removedsafe-regex-test@1.0.3(transitive)
- Removedset-function-length@1.2.2(transitive)
- Removedset-function-name@2.0.2(transitive)
- Removedside-channel@1.0.6(transitive)
- Removedstring.prototype.trim@1.2.9(transitive)
- Removedstring.prototype.trimend@1.0.8(transitive)
- Removedstring.prototype.trimstart@1.0.8(transitive)
- Removedthen-fs@2.0.0(transitive)
- Removedtyped-array-buffer@1.0.2(transitive)
- Removedtyped-array-byte-length@1.0.1(transitive)
- Removedtyped-array-byte-offset@1.0.2(transitive)
- Removedtyped-array-length@1.0.6(transitive)
- Removedunbox-primitive@1.0.2(transitive)
- Removedwhich-boxed-primitive@1.0.2(transitive)
- Removedwhich-typed-array@1.1.15(transitive)
Updatedfile-set@^1.1.1