@jsforce/jsforce-node 3.6.4 → 3.6.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 +1 -1
- package/lib/VERSION.js +1 -1
- package/lib/http-api.js +3 -1
- 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.5";
|
|
2
2
|
export default _default;
|
package/lib/VERSION.js
CHANGED
package/lib/http-api.js
CHANGED
|
@@ -223,7 +223,9 @@ class HttpApi extends events_1.EventEmitter {
|
|
|
223
223
|
* @protected
|
|
224
224
|
*/
|
|
225
225
|
isSessionExpired(response) {
|
|
226
|
-
|
|
226
|
+
// TODO:
|
|
227
|
+
// The connected app msg only applies to Agent API requests, we should move this to a separate SFAP/Agent API class later.
|
|
228
|
+
return response.statusCode === 401 && !response.body.includes('Connected app is not attached to Agent');
|
|
227
229
|
}
|
|
228
230
|
/**
|
|
229
231
|
* Detect error response
|