@salesforce/core 3.31.16 → 3.31.18

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.
@@ -148,7 +148,14 @@ class Connection extends jsforce_1.Connection {
148
148
  */
149
149
  request(request, options) {
150
150
  const httpRequest = (0, ts_types_1.isString)(request) ? { method: 'GET', url: request } : request;
151
- httpRequest.headers = Object.assign({}, exports.SFDX_HTTP_HEADERS, httpRequest.headers);
151
+ // prevent duplicate headers by lowercasing the keys on the incoming request
152
+ const lowercasedHeaders = httpRequest.headers
153
+ ? Object.fromEntries(Object.entries(httpRequest.headers).map(([key, value]) => [key.toLowerCase(), value]))
154
+ : {};
155
+ httpRequest.headers = {
156
+ ...exports.SFDX_HTTP_HEADERS,
157
+ ...lowercasedHeaders,
158
+ };
152
159
  this.logger.debug(`request: ${JSON.stringify(httpRequest)}`);
153
160
  return super.request(httpRequest, options);
154
161
  }
@@ -17,3 +17,4 @@ Successfully created org with ID: %s and name: %s. Unfortunately, source trackin
17
17
  # hubOrgIsNotDevHub
18
18
 
19
19
  Make sure that the org with username %s and ID %s is enabled as a Dev Hub. To enable it, open the org in your browser, navigate to the Dev Hub page in Setup, and click Enable.
20
+ If you still see this error after enabling the Dev Hub feature, then re-authenticate to the org.
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@salesforce/core",
3
- "version": "3.31.16",
3
+ "version": "3.31.18",
4
4
  "description": "Core libraries to interact with SFDX projects, orgs, and APIs.",
5
5
  "main": "lib/exported",
6
6
  "types": "lib/exported.d.ts",
@@ -61,15 +61,15 @@
61
61
  "@types/chai-string": "^1.4.2",
62
62
  "@types/debug": "0.0.31",
63
63
  "@types/jsen": "0.0.21",
64
- "@types/jsonwebtoken": "8.5.7",
65
- "@types/lodash": "^4.14.182",
64
+ "@types/jsonwebtoken": "8.5.9",
65
+ "@types/lodash": "^4.14.186",
66
66
  "@types/shelljs": "0.8.11",
67
- "@typescript-eslint/eslint-plugin": "^5.33.0",
68
- "@typescript-eslint/parser": "^5.33.0",
67
+ "@typescript-eslint/eslint-plugin": "^5.41.0",
68
+ "@typescript-eslint/parser": "^5.41.0",
69
69
  "chai": "^4.3.4",
70
70
  "chai-string": "^1.5.0",
71
71
  "commitizen": "^3.1.2",
72
- "eslint": "^8.21.0",
72
+ "eslint": "^8.26.0",
73
73
  "eslint-config-prettier": "^8.5.0",
74
74
  "eslint-config-salesforce": "^1.1.0",
75
75
  "eslint-config-salesforce-license": "^0.1.6",