apify-client 3.0.0-beta.114 → 3.0.0-beta.115
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/README.md +1 -1
- package/dist/bundle.js +8 -8
- package/dist/bundle.js.map +1 -1
- package/dist/http_clients/axios.d.ts +7 -4
- package/dist/http_clients/axios.js +29 -10
- package/dist/http_clients/base.d.ts +11 -9
- package/dist/http_clients/base.js +17 -6
- package/dist/http_clients/fetch.js +2 -2
- package/dist/resource_clients/actor_server.d.ts +6 -7
- package/dist/resource_clients/actor_server.js +0 -4
- package/dist/resource_clients/dataset.d.ts +14 -15
- package/dist/resource_clients/dataset.js +0 -4
- package/dist/resource_clients/key_value_store.d.ts +8 -9
- package/dist/resource_clients/key_value_store.js +6 -4
- package/dist/resource_clients/log.d.ts +10 -11
- package/dist/resource_clients/log.js +4 -3
- package/dist/runtime/node.js +2 -4
- package/dist/runtime/types.d.ts +4 -4
- package/dist/runtime/web.js +2 -2
- package/dist/utils.d.ts +4 -0
- package/dist/utils.js +6 -0
- package/package.json +1 -1
package/dist/utils.js
CHANGED
|
@@ -246,6 +246,12 @@ export function isBlob(value) {
|
|
|
246
246
|
function isTagged(value, tag) {
|
|
247
247
|
return Object.prototype.toString.call(value) === `[object ${tag}]`;
|
|
248
248
|
}
|
|
249
|
+
/**
|
|
250
|
+
* Whether a value is a web `ReadableStream`, which is what the callers get for a streamed response.
|
|
251
|
+
*/
|
|
252
|
+
export function isWebStream(value) {
|
|
253
|
+
return isTagged(value, 'ReadableStream');
|
|
254
|
+
}
|
|
249
255
|
export function isStream(value) {
|
|
250
256
|
if (value === null || typeof value !== 'object')
|
|
251
257
|
return false;
|