@jsforce/jsforce-node 3.6.5 → 3.6.6
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/request.js +2 -6
- package/package.json +1 -1
package/lib/VERSION.d.ts
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
declare const _default: "3.6.
|
|
1
|
+
declare const _default: "3.6.6";
|
|
2
2
|
export default _default;
|
package/lib/VERSION.js
CHANGED
package/lib/request.js
CHANGED
|
@@ -84,9 +84,7 @@ async function startFetchRequest(request, options, input, output, emitter, count
|
|
|
84
84
|
if (resOrErr instanceof node_fetch_1.Response) {
|
|
85
85
|
if (retryOpts.statusCodes.includes(resOrErr.status)) {
|
|
86
86
|
if (maxRetry === retryCount) {
|
|
87
|
-
|
|
88
|
-
err.name = 'RequestRetryError';
|
|
89
|
-
throw err;
|
|
87
|
+
return false;
|
|
90
88
|
}
|
|
91
89
|
else {
|
|
92
90
|
return true;
|
|
@@ -160,9 +158,7 @@ async function startFetchRequest(request, options, input, output, emitter, count
|
|
|
160
158
|
}
|
|
161
159
|
logger.debug('Skipping retry...');
|
|
162
160
|
if (maxRetry === retryCount) {
|
|
163
|
-
|
|
164
|
-
error.name = 'RequestRetryError';
|
|
165
|
-
throw error;
|
|
161
|
+
throw err;
|
|
166
162
|
}
|
|
167
163
|
else {
|
|
168
164
|
throw err;
|