@jsforce/jsforce-node 3.2.4 → 3.3.0

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.
package/lib/VERSION.d.ts CHANGED
@@ -1,2 +1,2 @@
1
- declare const _default: "3.2.4";
1
+ declare const _default: "3.3.0";
2
2
  export default _default;
package/lib/VERSION.js CHANGED
@@ -1,3 +1,3 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
- exports.default = '3.2.4';
3
+ exports.default = '3.3.0';
package/lib/http-api.js CHANGED
@@ -192,6 +192,8 @@ class HttpApi extends events_1.EventEmitter {
192
192
  return parseBody(response.body);
193
193
  }
194
194
  catch (e) {
195
+ // TODO(next major): we could throw a new "invalid response body" error instead.
196
+ this._logger.debug(`Failed to parse body of content-type: ${contentType}. Error: ${e.message}`);
195
197
  return response.body;
196
198
  }
197
199
  }
package/lib/transport.js CHANGED
@@ -43,7 +43,7 @@ function normalizeApiHost(apiHost) {
43
43
  return apiHost;
44
44
  }
45
45
  (0, request_1.setDefaults)({
46
- httpProxy: process.env.HTTPS_PROXY ?? process.env.HTTP_PROXY ?? undefined,
46
+ httpProxy: process.env.https_proxy ?? process.env.http_proxy ?? process.env.HTTPS_PROXY ?? process.env.HTTP_PROXY ?? undefined,
47
47
  timeout: process.env.HTTP_TIMEOUT
48
48
  ? parseInt(process.env.HTTP_TIMEOUT, 10)
49
49
  : undefined,
package/package.json CHANGED
@@ -10,7 +10,7 @@
10
10
  "database.com"
11
11
  ],
12
12
  "homepage": "http://github.com/jsforce/jsforce",
13
- "version": "3.2.4",
13
+ "version": "3.3.0",
14
14
  "repository": {
15
15
  "type": "git",
16
16
  "url": "git://github.com/jsforce/jsforce.git"