Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

builder-util

Package Overview
Dependencies
Maintainers
1
Versions
258
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

builder-util - npm Package Compare versions

Comparing version 5.3.0 to 5.3.1

3

out/hash.d.ts

@@ -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

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc