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

@mapbox/node-pre-gyp

Package Overview
Dependencies
Maintainers
14
Versions
20
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@mapbox/node-pre-gyp - npm Package Compare versions

Comparing version 1.0.0-alpha5 to 1.0.0-alpha6

16

lib/install.js

@@ -227,13 +227,11 @@ 'use strict';

mkdirp(to, (err) => {
if (err) {
after_place(err);
mkdirp(to).then(() => {
const fileName = from.startsWith('file://') && from.slice('file://'.length);
if (fileName) {
extract_from_local(fileName, to, after_place);
} else {
const fileName = from.startsWith('file://') && from.slice('file://'.length);
if (fileName) {
extract_from_local(fileName, to, after_place);
} else {
place_binary(from, to, opts, after_place);
}
place_binary(from, to, opts, after_place);
}
}).catch((err) => {
after_place(err);
});

@@ -240,0 +238,0 @@

@@ -52,4 +52,3 @@ 'use strict';

};
mkdirp(path.dirname(tarball), (err) => {
if (err) return callback(err);
mkdirp(path.dirname(tarball)).then(() => {
let files = readdirSync(from);

@@ -71,4 +70,6 @@ const base = path.basename(from);

});
}).catch((err) => {
return callback(err);
});
});
}

@@ -31,13 +31,11 @@ 'use strict';

mkdirp(to, (err) => {
if (err) {
return callback(err);
} else {
tar.extract({
file: tarball,
cwd: to,
strip: 1,
onentry: filter_func
}).then(after_extract, callback);
}
mkdirp(to).then(() => {
tar.extract({
file: tarball,
cwd: to,
strip: 1,
onentry: filter_func
}).then(after_extract, callback);
}).catch((err) => {
return callback(err);
});

@@ -44,0 +42,0 @@

{
"name": "@mapbox/node-pre-gyp",
"description": "Node.js native addon binary install tool",
"version": "1.0.0-alpha5",
"version": "1.0.0-alpha6",
"keywords": [

@@ -25,3 +25,3 @@ "native",

"http-proxy-agent": "^4.0.1",
"mkdirp": "^0.5.5",
"mkdirp": "^1.0.4",
"node-fetch": "^2.6.1",

@@ -38,3 +38,3 @@ "nopt": "^5.0.0",

"action-walk": "^2.2.0",
"aws-sdk": "^2.829.0",
"aws-sdk": "^2.840.0",
"codecov": "^3.8.1",

@@ -41,0 +41,0 @@ "eslint": "^7.18.0",

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