@stream-io/feeds-client 0.2.19 → 0.2.20
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/CHANGELOG.md +7 -0
- package/dist/cjs/index.js +1 -1
- package/dist/cjs/react-bindings.js +1 -1
- package/dist/es/index.mjs +2 -2
- package/dist/es/react-bindings.mjs +1 -1
- package/dist/{feeds-client-CFadXO-B.mjs → feeds-client-BObWT4vl.mjs} +4 -3
- package/dist/{feeds-client-CFadXO-B.mjs.map → feeds-client-BObWT4vl.mjs.map} +1 -1
- package/dist/{feeds-client-C09giTf1.js → feeds-client-BlR_3zy2.js} +4 -3
- package/dist/{feeds-client-C09giTf1.js.map → feeds-client-BlR_3zy2.js.map} +1 -1
- package/dist/tsconfig.tsbuildinfo +1 -1
- package/dist/types/utils/throttling/throttled-get-batched-own-capabilities.d.ts.map +1 -1
- package/package.json +1 -1
- package/src/utils/throttling/throttled-get-batched-own-capabilities.ts +3 -1
|
@@ -3748,7 +3748,7 @@ const getRateLimitFromResponseHeader = (response_headers) => {
|
|
|
3748
3748
|
};
|
|
3749
3749
|
return result;
|
|
3750
3750
|
};
|
|
3751
|
-
const version = "0.2.
|
|
3751
|
+
const version = "0.2.20";
|
|
3752
3752
|
class ApiClient {
|
|
3753
3753
|
constructor(apiKey, tokenManager, connectionIdManager, options) {
|
|
3754
3754
|
this.apiKey = apiKey;
|
|
@@ -6646,6 +6646,7 @@ const throttle = (fn, timeout = 200, {
|
|
|
6646
6646
|
}
|
|
6647
6647
|
};
|
|
6648
6648
|
};
|
|
6649
|
+
const BATCH_OWN_CAPABILITIES_API_LIMIT = 100;
|
|
6649
6650
|
const DEFAULT_BATCH_OWN_CAPABILITIES_THROTTLING_INTERVAL = 2e3;
|
|
6650
6651
|
const queuedFeeds = /* @__PURE__ */ new Set();
|
|
6651
6652
|
function queueBatchedOwnCapabilities({ feeds }) {
|
|
@@ -6654,7 +6655,7 @@ function queueBatchedOwnCapabilities({ feeds }) {
|
|
|
6654
6655
|
}
|
|
6655
6656
|
if (queuedFeeds.size > 0) {
|
|
6656
6657
|
this.throttledGetBatchOwnCapabilities(
|
|
6657
|
-
[...queuedFeeds],
|
|
6658
|
+
[...queuedFeeds].slice(0, BATCH_OWN_CAPABILITIES_API_LIMIT),
|
|
6658
6659
|
(feedsToClear) => {
|
|
6659
6660
|
for (const feed of feedsToClear) {
|
|
6660
6661
|
queuedFeeds.delete(feed);
|
|
@@ -7208,4 +7209,4 @@ exports.replaceUniqueArrayMerge = replaceUniqueArrayMerge;
|
|
|
7208
7209
|
exports.shouldUpdateState = shouldUpdateState;
|
|
7209
7210
|
exports.uniqueArrayMerge = uniqueArrayMerge;
|
|
7210
7211
|
exports.updateEntityInArray = updateEntityInArray;
|
|
7211
|
-
//# sourceMappingURL=feeds-client-
|
|
7212
|
+
//# sourceMappingURL=feeds-client-BlR_3zy2.js.map
|