builder-util
Advanced tools
Comparing version 5.3.0 to 5.3.1
@@ -1,2 +0,1 @@ | ||
import BluebirdPromise from "bluebird-lst"; | ||
export declare function hashFile(file: string, algorithm?: string, encoding?: "base64" | "hex", options?: any): BluebirdPromise<string>; | ||
export declare function hashFile(file: string, algorithm?: string, encoding?: "base64" | "hex", options?: any): Promise<string>; |
@@ -8,8 +8,2 @@ "use strict"; | ||
var _bluebirdLst; | ||
function _load_bluebirdLst() { | ||
return _bluebirdLst = _interopRequireDefault(require("bluebird-lst")); | ||
} | ||
var _crypto; | ||
@@ -27,6 +21,4 @@ | ||
function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; } | ||
function hashFile(file, algorithm = "sha512", encoding = "base64", options) { | ||
return new (_bluebirdLst || _load_bluebirdLst()).default((resolve, reject) => { | ||
return new Promise((resolve, reject) => { | ||
const hash = (0, (_crypto || _load_crypto()).createHash)(algorithm); | ||
@@ -33,0 +25,0 @@ hash.on("error", reject).setEncoding(encoding); |
@@ -39,2 +39,4 @@ "use strict"; | ||
} | ||
// noinspection JSMethodCanBeStatic | ||
// noinspection JSUnusedGlobalSymbols | ||
doRequest(options, callback) { | ||
@@ -41,0 +43,0 @@ return (options.protocol === "http:" ? (_http || _load_http()).request : (_https || _load_https()).request)(options, callback); |
{ | ||
"name": "builder-util", | ||
"version": "5.3.0", | ||
"version": "5.3.1", | ||
"main": "out/util.js", | ||
@@ -14,5 +14,5 @@ "author": "Vladimir Krivosheev", | ||
"dependencies": { | ||
"app-builder-bin": "1.3.5", | ||
"app-builder-bin": "1.3.6", | ||
"temp-file": "^3.1.1", | ||
"fs-extra-p": "^4.5.0", | ||
"fs-extra-p": "^4.5.2", | ||
"is-ci": "^1.1.0", | ||
@@ -19,0 +19,0 @@ "stat-mode": "^0.2.2", |
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
189044
2375
+ Addedapp-builder-bin@1.3.6(transitive)
+ Addedapp-builder-bin-linux@1.3.6(transitive)
+ Addedapp-builder-bin-mac@1.3.6(transitive)
+ Addedapp-builder-bin-win@1.3.6(transitive)
- Removedapp-builder-bin@1.3.5(transitive)
- Removedapp-builder-bin-linux@1.3.5(transitive)
- Removedapp-builder-bin-mac@1.3.5(transitive)
- Removedapp-builder-bin-win@1.3.5(transitive)
Updatedapp-builder-bin@1.3.6
Updatedfs-extra-p@^4.5.2