Socket
Book a DemoSign in
Socket

@mapbox/node-pre-gyp

Package Overview
Dependencies
Maintainers
28
Versions
30
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
2.0.2-dev.2
to
2.0.2
+3
-0
CHANGELOG.md

@@ -5,2 +5,5 @@ # node-pre-gyp changelog

## 2.0.2
- Support private ACL for S3 buckets [#923](https://github.com/mapbox/node-pre-gyp/pull/923)
## 2.0.1

@@ -7,0 +10,0 @@ - Update abi_crosswalk.json for abi 137 / node 24 (https://github.com/mapbox/node-pre-gyp/pull/904)

+8
-2

@@ -32,3 +32,3 @@ 'use strict';

// Check if AWS credentials are available
if (!process.env.AWS_ACCESS_KEY_ID && !process.env.AWS_SECRET_ACCESS_KEY) {
if (!process.env.AWS_ACCESS_KEY_ID || !process.env.AWS_SECRET_ACCESS_KEY) {
const err = new Error('Binary is private but AWS credentials not found. Please configure AWS_ACCESS_KEY_ID and AWS_SECRET_ACCESS_KEY environment variables, or use --fallback-to-build to compile from source.');

@@ -131,3 +131,6 @@ err.statusCode = 403;

log.info('install', 'Received 403 Forbidden - attempting authenticated download');
return place_binary_authenticated(opts, targetDir, callback);
// Call place_binary_authenticated and return a special marker
// to prevent the promise chain from calling callback again
place_binary_authenticated(opts, targetDir, callback);
return { authenticated: true };
}

@@ -158,2 +161,5 @@ throw new Error(`response status ${res.status} ${res.statusText} on ${sanitized}`);

.then((text) => {
if (text && text.authenticated) {
return; // Don't call callback - place_binary_authenticated will handle it
}
log.info(text);

@@ -160,0 +166,0 @@ callback();

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

@@ -6,0 +6,0 @@ "native",