@jsforce/jsforce-node 3.2.3 → 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 +1 -1
- package/lib/VERSION.js +1 -1
- package/lib/http-api.js +2 -0
- package/lib/transport.js +1 -1
- package/package.json +1 -1
package/lib/VERSION.d.ts
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
declare const _default: "3.
|
|
1
|
+
declare const _default: "3.3.0";
|
|
2
2
|
export default _default;
|
package/lib/VERSION.js
CHANGED
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,
|