slnodejs 6.1.888 → 6.1.900

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.
@@ -30621,7 +30621,7 @@ module.exports={
30621
30621
  "_resolved": "https://registry.npmjs.org/elliptic/-/elliptic-6.5.6.tgz",
30622
30622
  "_shasum": "ee5f7c3a00b98a2144ac84d67d01f04d438fa53e",
30623
30623
  "_spec": "elliptic@^6.5.5",
30624
- "_where": "/var/lib/jenkins/workspace/.OnPremise.Agent.JavaScript_main@3/browser-agent/node_modules/browserify-sign",
30624
+ "_where": "/var/lib/jenkins/workspace/.OnPremise.Agent.JavaScript_main/browser-agent/node_modules/browserify-sign",
30625
30625
  "author": {
30626
30626
  "name": "Fedor Indutny",
30627
30627
  "email": "fedor@indutny.com"
@@ -45322,6 +45322,7 @@ var defaults = {
45322
45322
  parameterLimit: 1000,
45323
45323
  parseArrays: true,
45324
45324
  plainObjects: false,
45325
+ strictDepth: false,
45325
45326
  strictNullHandling: false
45326
45327
  };
45327
45328
 
@@ -45499,9 +45500,12 @@ var parseKeys = function parseQueryStringKeys(givenKey, val, options, valuesPars
45499
45500
  keys.push(segment[1]);
45500
45501
  }
45501
45502
 
45502
- // If there's a remainder, just add whatever is left
45503
+ // If there's a remainder, check strictDepth option for throw, else just add whatever is left
45503
45504
 
45504
45505
  if (segment) {
45506
+ if (options.strictDepth === true) {
45507
+ throw new RangeError('Input depth exceeded depth option of ' + options.depth + ' and strictDepth is true');
45508
+ }
45505
45509
  keys.push('[' + key.slice(segment.index) + ']');
45506
45510
  }
45507
45511
 
@@ -45558,6 +45562,7 @@ var normalizeParseOptions = function normalizeParseOptions(opts) {
45558
45562
  parameterLimit: typeof opts.parameterLimit === 'number' ? opts.parameterLimit : defaults.parameterLimit,
45559
45563
  parseArrays: opts.parseArrays !== false,
45560
45564
  plainObjects: typeof opts.plainObjects === 'boolean' ? opts.plainObjects : defaults.plainObjects,
45565
+ strictDepth: typeof opts.strictDepth === 'boolean' ? !!opts.strictDepth : defaults.strictDepth,
45561
45566
  strictNullHandling: typeof opts.strictNullHandling === 'boolean' ? opts.strictNullHandling : defaults.strictNullHandling
45562
45567
  };
45563
45568
  };
@@ -57141,7 +57146,7 @@ var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, ge
57141
57146
  "use strict";
57142
57147
  Object.defineProperty(exports, "__esModule", { value: true });
57143
57148
  exports.SL_AGENT_TYPE = exports.SL_AGENT_VERSION = void 0;
57144
- exports.SL_AGENT_VERSION = '6.1.888';
57149
+ exports.SL_AGENT_VERSION = '6.1.900';
57145
57150
  exports.SL_AGENT_TYPE = 'browser';
57146
57151
  });
57147
57152
 
@@ -61963,6 +61968,7 @@ var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, ge
61963
61968
  static inProcessInstrumentation() { return env_var_parsing_1.EnvVarParsing.parseBoolean(SlEnvVars.CIA.IN_PROCESS_INSTRUMENTATION); }
61964
61969
  static useExperimentalSizeReduction() { return env_var_parsing_1.EnvVarParsing.parseBoolean(SlEnvVars.CIA.USE_EXPERIMENTAL_SIZE_REDUCTION); }
61965
61970
  static useNewInstrumenter() { return env_var_parsing_1.EnvVarParsing.parseBoolean(SlEnvVars.CIA.USE_NEW_INSTRUMENTER); }
61971
+ static scanDotFolders() { return env_var_parsing_1.EnvVarParsing.parseBoolean(SlEnvVars.CIA.SCAN_DOT_FOLDERS); }
61966
61972
  static getMaxBuffer() {
61967
61973
  const bufferInBytes = env_var_parsing_1.EnvVarParsing.parseNumber(SlEnvVars.CIA.MAX_BUFFER);
61968
61974
  if (bufferInBytes !== null) {
@@ -61981,6 +61987,7 @@ var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, ge
61981
61987
  _a.IN_PROCESS_INSTRUMENTATION = 'SL_inProcessInstrumentation',
61982
61988
  _a.USE_EXPERIMENTAL_SIZE_REDUCTION = 'SL_experimentalSizeReduction',
61983
61989
  _a.USE_NEW_INSTRUMENTER = 'SL_newInstrumenter',
61990
+ _a.SCAN_DOT_FOLDERS = 'SL_scanDotFolders',
61984
61991
  _a.SEND_COMMIT_TITLES = 'SL_sendCommitTitles',
61985
61992
  _a.MAX_BUFFER = 'SL_maxBuffer',
61986
61993
  _a);
@@ -72911,29 +72918,31 @@ RequestSigner.prototype.canonicalString = function() {
72911
72918
  ].join('\n')
72912
72919
  }
72913
72920
 
72921
+ RequestSigner.prototype.filterHeaders = function() {
72922
+ var headers = this.request.headers,
72923
+ extraHeadersToInclude = this.extraHeadersToInclude,
72924
+ extraHeadersToIgnore = this.extraHeadersToIgnore
72925
+ this.filteredHeaders = Object.keys(headers)
72926
+ .map(function(key) { return [key.toLowerCase(), headers[key]] })
72927
+ .filter(function(entry) {
72928
+ return extraHeadersToInclude[entry[0]] ||
72929
+ (HEADERS_TO_IGNORE[entry[0]] == null && !extraHeadersToIgnore[entry[0]])
72930
+ })
72931
+ .sort(function(a, b) { return a[0] < b[0] ? -1 : 1 })
72932
+ }
72933
+
72914
72934
  RequestSigner.prototype.canonicalHeaders = function() {
72915
- var headers = this.request.headers
72916
- function trimAll(header) {
72917
- return header.toString().trim().replace(/\s+/g, ' ')
72918
- }
72919
- return Object.keys(headers)
72920
- .filter(function(key) { return HEADERS_TO_IGNORE[key.toLowerCase()] == null })
72921
- .sort(function(a, b) { return a.toLowerCase() < b.toLowerCase() ? -1 : 1 })
72922
- .map(function(key) { return key.toLowerCase() + ':' + trimAll(headers[key]) })
72923
- .join('\n')
72935
+ if (!this.filteredHeaders) this.filterHeaders()
72936
+
72937
+ return this.filteredHeaders.map(function(entry) {
72938
+ return entry[0] + ':' + entry[1].toString().trim().replace(/\s+/g, ' ')
72939
+ }).join('\n')
72924
72940
  }
72925
72941
 
72926
72942
  RequestSigner.prototype.signedHeaders = function() {
72927
- var extraHeadersToInclude = this.extraHeadersToInclude,
72928
- extraHeadersToIgnore = this.extraHeadersToIgnore
72929
- return Object.keys(this.request.headers)
72930
- .map(function(key) { return key.toLowerCase() })
72931
- .filter(function(key) {
72932
- return extraHeadersToInclude[key] ||
72933
- (HEADERS_TO_IGNORE[key] == null && !extraHeadersToIgnore[key])
72934
- })
72935
- .sort()
72936
- .join(';')
72943
+ if (!this.filteredHeaders) this.filterHeaders()
72944
+
72945
+ return this.filteredHeaders.map(function(entry) { return entry[0] }).join(';')
72937
72946
  }
72938
72947
 
72939
72948
  RequestSigner.prototype.credentialString = function() {