@rushstack/rush-amazon-s3-build-cache-plugin
Advanced tools
Comparing version 5.144.0 to 5.144.1-pr5037.0
@@ -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
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
No v1
QualityPackage is not semver >=1. This means it is not stable and does not support ^ ranges.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
97418
1
+ Added@rushstack/lookup-by-path@0.4.6(transitive)
+ Added@rushstack/package-deps-hash@4.2.11(transitive)
+ Added@rushstack/rush-sdk@5.144.1-pr5037.0(transitive)
- Removed@rushstack/lookup-by-path@0.4.5(transitive)
- Removed@rushstack/package-deps-hash@4.2.10(transitive)
- Removed@rushstack/rush-sdk@5.144.0(transitive)
- Removed@types/node@22.10.2(transitive)
- Removed@types/node-fetch@2.6.2(transitive)
- Removedasynckit@0.4.0(transitive)
- Removedcombined-stream@1.0.8(transitive)
- Removeddelayed-stream@1.0.0(transitive)
- Removedform-data@3.0.2(transitive)
- Removedmime-db@1.52.0(transitive)
- Removedmime-types@2.1.35(transitive)
- Removedundici-types@6.20.0(transitive)