@wildix/xbees-conversations-utils 1.1.89 → 1.1.90

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.
@@ -5,7 +5,7 @@ const processStreamBudgetHeaders_1 = require("./processStreamBudgetHeaders");
5
5
  const processStreamRateLimitHeaders_1 = require("./processStreamRateLimitHeaders");
6
6
  const attachedInterceptors = new WeakSet();
7
7
  function hasResponseInterceptors(value) {
8
- return (typeof value === 'object' &&
8
+ return ((typeof value === 'object' || typeof value === 'function') &&
9
9
  value !== null &&
10
10
  typeof value.interceptors?.response?.use === 'function');
11
11
  }
@@ -2,7 +2,7 @@ import { processStreamBudgetHeaders } from './processStreamBudgetHeaders';
2
2
  import { processStreamRateLimitHeaders } from './processStreamRateLimitHeaders';
3
3
  const attachedInterceptors = new WeakSet();
4
4
  function hasResponseInterceptors(value) {
5
- return (typeof value === 'object' &&
5
+ return ((typeof value === 'object' || typeof value === 'function') &&
6
6
  value !== null &&
7
7
  typeof value.interceptors?.response?.use === 'function');
8
8
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@wildix/xbees-conversations-utils",
3
- "version": "1.1.89",
3
+ "version": "1.1.90",
4
4
  "description": "",
5
5
  "main": "./dist-cjs/index.js",
6
6
  "module": "./dist-es/index.js",