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

@rushstack/rush-amazon-s3-build-cache-plugin

Package Overview
Dependencies
Maintainers
3
Versions
280
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@rushstack/rush-amazon-s3-build-cache-plugin - npm Package Compare versions

Comparing version 5.144.0 to 5.144.1-pr5037.0

18

lib/AmazonS3Client.js

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

hasNetworkError: false,
response: await response.buffer()
response: await response.getBufferAsync()
};

@@ -167,5 +167,5 @@ }

const bodyHash = this._getSha256(body);
const headers = new WebClient_1.WebClientHeaders();
headers.set(DATE_HEADER_NAME, isoDateString.dateTime);
headers.set(CONTENT_HASH_HEADER_NAME, bodyHash);
const headers = {};
headers[DATE_HEADER_NAME] = isoDateString.dateTime;
headers[CONTENT_HASH_HEADER_NAME] = bodyHash;
// the host can be e.g. https://s3.aws.com or http://localhost:9000

@@ -244,6 +244,6 @@ const host = this._s3Endpoint.replace(protocolRegex, '');

const authorizationHeader = `AWS4-HMAC-SHA256 Credential=${this._credentials.accessKeyId}/${scope},SignedHeaders=${signedHeaderNamesString},Signature=${signature}`;
headers.set('Authorization', authorizationHeader);
headers[WebClient_1.AUTHORIZATION_HEADER_NAME] = authorizationHeader;
if (this._credentials.sessionToken) {
// Handle signing with temporary credentials (via sts:assume-role)
headers.set('X-Amz-Security-Token', this._credentials.sessionToken);
headers['X-Amz-Security-Token'] = this._credentials.sessionToken;
}

@@ -262,5 +262,5 @@ }

this._writeDebugLine(terminal_1.Colorize.bold('Headers: '));
headers.forEach((value, name) => {
for (const [name, value] of Object.entries(headers)) {
this._writeDebugLine(terminal_1.Colorize.cyan(`\t${name}: ${value}`));
});
}
const response = await this._webClient.fetchAsync(url, webFetchOptions);

@@ -303,3 +303,3 @@ return response;

try {
return await response.text();
return await response.getTextAsync();
}

@@ -306,0 +306,0 @@ catch (err) {

{
"name": "@rushstack/rush-amazon-s3-build-cache-plugin",
"version": "5.144.0",
"version": "5.144.1-pr5037.0",
"description": "Rush plugin for Amazon S3 cloud build cache",

@@ -17,9 +17,9 @@ "repository": {

"@rushstack/node-core-library": "5.10.0",
"@rushstack/rush-sdk": "5.144.0",
"@rushstack/rush-sdk": "5.144.1-pr5037.0",
"@rushstack/terminal": "0.14.3"
},
"devDependencies": {
"@microsoft/rush-lib": "5.144.0",
"@rushstack/heft": "0.68.9",
"local-node-rig": "1.0.0"
"@microsoft/rush-lib": "5.144.1-pr5037.0",
"local-node-rig": "1.0.0",
"@rushstack/heft": "0.68.10"
},

@@ -26,0 +26,0 @@ "scripts": {

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