@jsforce/jsforce-node 3.9.4 → 3.9.5

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.9.4";
1
+ declare const _default: "3.9.5";
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.9.4';
3
+ exports.default = '3.9.5';
package/lib/request.js CHANGED
@@ -166,8 +166,12 @@ async function startFetchRequest(request, options, input, output, emitter, count
166
166
  }
167
167
  };
168
168
  let res;
169
+ // Timeout after 60s without a response
170
+ //
171
+ // node-fetch's default timeout is 0 and jsforce consumers can't set this when calling `Connection` methods so we set a long default at the fetch wrapper level.
172
+ const fetchTimeout = options.timeout ?? 60000;
169
173
  try {
170
- res = await (0, request_helper_1.executeWithTimeout)(fetchWithRetries, options.timeout, () => controller.abort());
174
+ res = await (0, request_helper_1.executeWithTimeout)(fetchWithRetries, fetchTimeout, () => controller.abort());
171
175
  }
172
176
  catch (err) {
173
177
  emitter.emit('error', err);
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.9.4",
13
+ "version": "3.9.5",
14
14
  "repository": {
15
15
  "type": "git",
16
16
  "url": "git://github.com/jsforce/jsforce.git"