slnodejs 6.1.259 → 6.1.270

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -43775,7 +43775,7 @@ var __extends = (this && this.__extends) || (function () {
43775
43775
  "use strict";
43776
43776
  Object.defineProperty(exports, "__esModule", { value: true });
43777
43777
  exports.SL_AGENT_TYPE = exports.SL_AGENT_VERSION = void 0;
43778
- exports.SL_AGENT_VERSION = '6.1.259';
43778
+ exports.SL_AGENT_VERSION = '6.1.270';
43779
43779
  exports.SL_AGENT_TYPE = 'browser';
43780
43780
  });
43781
43781
 
@@ -58820,6 +58820,9 @@ function RequestSigner(request, credentials) {
58820
58820
  request.hostname = headers.Host || headers.host
58821
58821
 
58822
58822
  this.isCodeCommitGit = this.service === 'codecommit' && request.method === 'GIT'
58823
+
58824
+ this.extraHeadersToIgnore = request.extraHeadersToIgnore || Object.create(null)
58825
+ this.extraHeadersToInclude = request.extraHeadersToInclude || Object.create(null)
58823
58826
  }
58824
58827
 
58825
58828
  RequestSigner.prototype.matchHost = function(host) {
@@ -58829,7 +58832,7 @@ RequestSigner.prototype.matchHost = function(host) {
58829
58832
  // ES's hostParts are sometimes the other way round, if the value that is expected
58830
58833
  // to be region equals ‘es’ switch them back
58831
58834
  // e.g. search-cluster-name-aaaa00aaaa0aaa0aaaaaaa0aaa.us-east-1.es.amazonaws.com
58832
- if (hostParts[1] === 'es')
58835
+ if (hostParts[1] === 'es' || hostParts[1] === 'aoss')
58833
58836
  hostParts = hostParts.reverse()
58834
58837
 
58835
58838
  if (hostParts[1] == 's3') {
@@ -59053,9 +59056,14 @@ RequestSigner.prototype.canonicalHeaders = function() {
59053
59056
  }
59054
59057
 
59055
59058
  RequestSigner.prototype.signedHeaders = function() {
59059
+ var extraHeadersToInclude = this.extraHeadersToInclude,
59060
+ extraHeadersToIgnore = this.extraHeadersToIgnore
59056
59061
  return Object.keys(this.request.headers)
59057
59062
  .map(function(key) { return key.toLowerCase() })
59058
- .filter(function(key) { return HEADERS_TO_IGNORE[key] == null })
59063
+ .filter(function(key) {
59064
+ return extraHeadersToInclude[key] ||
59065
+ (HEADERS_TO_IGNORE[key] == null && !extraHeadersToIgnore[key])
59066
+ })
59059
59067
  .sort()
59060
59068
  .join(';')
59061
59069
  }