Socket
Socket
Sign inDemoInstall

builder-util-runtime

Package Overview
Dependencies
Maintainers
1
Versions
99
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

builder-util-runtime - npm Package Compare versions

Comparing version 3.3.0 to 3.3.1

14

out/httpExecutor.js

@@ -132,3 +132,3 @@ "use strict";

}
this.doApiRequest(configureRequestOptionsFromUrl(redirectUrl, Object.assign({}, options)), cancellationToken, requestProcessor, redirectCount).then(resolve).catch(reject);
this.doApiRequest(prepareRedirectUrlOptions(redirectUrl, options), cancellationToken, requestProcessor, redirectCount).then(resolve).catch(reject);
return;

@@ -164,3 +164,3 @@ }

if (redirectCount < this.maxRedirects) {
this.doDownload(configureRequestOptionsFromUrl(redirectUrl, Object.assign({}, requestOptions)), destination, redirectCount++, options, callback, onCancel);
this.doDownload(prepareRedirectUrlOptions(redirectUrl, requestOptions), destination, redirectCount++, options, callback, onCancel);
} else {

@@ -328,2 +328,12 @@ callback(new Error(`Too many redirects (> ${this.maxRedirects})`));

}
function prepareRedirectUrlOptions(redirectUrl, options) {
const newOptions = configureRequestOptionsFromUrl(redirectUrl, Object.assign({}, options));
if (newOptions.headers != null && newOptions.headers.Authorization != null && newOptions.headers.Authorization.startsWith("token")) {
const parsedNewUrl = new (_url || _load_url()).URL(redirectUrl);
if (parsedNewUrl.hostname.endsWith(".amazonaws.com")) {
delete newOptions.headers.Authorization;
}
}
return newOptions;
}
//# sourceMappingURL=httpExecutor.js.map

4

package.json
{
"name": "builder-util-runtime",
"version": "3.3.0",
"version": "3.3.1",
"main": "out/index.js",

@@ -18,3 +18,3 @@ "author": "Vladimir Krivosheev",

"debug": "^3.1.0",
"fs-extra-p": "^4.4.4",
"fs-extra-p": "^4.4.5",
"bluebird-lst": "^1.0.5",

@@ -21,0 +21,0 @@ "sax": "^1.2.4"

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