apify-client 2.23.5-beta.1 → 2.23.5-beta.10
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/dist/apify_api_error.js +37 -84
- package/dist/apify_client.js +6 -36
- package/dist/base/api_client.js +10 -56
- package/dist/bundle.js +1 -1
- package/dist/bundle.js.map +1 -1
- package/dist/http_client.js +15 -77
- package/dist/interceptors.js +5 -17
- package/dist/resource_clients/actor.js +3 -3
- package/dist/resource_clients/actor_collection.d.ts +2 -0
- package/dist/resource_clients/dataset.js +3 -5
- package/dist/resource_clients/dataset_collection.js +1 -1
- package/dist/resource_clients/key_value_store.js +2 -2
- package/dist/resource_clients/key_value_store_collection.js +1 -1
- package/dist/resource_clients/log.js +7 -42
- package/dist/resource_clients/request_queue.js +14 -36
- package/dist/resource_clients/run.js +5 -7
- package/dist/statistics.js +13 -30
- package/dist/utils.js +6 -31
- package/package.json +5 -5
package/dist/utils.js
CHANGED
|
@@ -165,37 +165,12 @@ function getVersionData() {
|
|
|
165
165
|
* Helper class to create async iterators from paginated list endpoints with exclusive start key.
|
|
166
166
|
*/
|
|
167
167
|
class RequestQueuePaginationIterator {
|
|
168
|
+
maxPageLimit;
|
|
169
|
+
getPage;
|
|
170
|
+
limit;
|
|
171
|
+
exclusiveStartId;
|
|
172
|
+
cursor;
|
|
168
173
|
constructor(options) {
|
|
169
|
-
Object.defineProperty(this, "maxPageLimit", {
|
|
170
|
-
enumerable: true,
|
|
171
|
-
configurable: true,
|
|
172
|
-
writable: true,
|
|
173
|
-
value: void 0
|
|
174
|
-
});
|
|
175
|
-
Object.defineProperty(this, "getPage", {
|
|
176
|
-
enumerable: true,
|
|
177
|
-
configurable: true,
|
|
178
|
-
writable: true,
|
|
179
|
-
value: void 0
|
|
180
|
-
});
|
|
181
|
-
Object.defineProperty(this, "limit", {
|
|
182
|
-
enumerable: true,
|
|
183
|
-
configurable: true,
|
|
184
|
-
writable: true,
|
|
185
|
-
value: void 0
|
|
186
|
-
});
|
|
187
|
-
Object.defineProperty(this, "exclusiveStartId", {
|
|
188
|
-
enumerable: true,
|
|
189
|
-
configurable: true,
|
|
190
|
-
writable: true,
|
|
191
|
-
value: void 0
|
|
192
|
-
});
|
|
193
|
-
Object.defineProperty(this, "cursor", {
|
|
194
|
-
enumerable: true,
|
|
195
|
-
configurable: true,
|
|
196
|
-
writable: true,
|
|
197
|
-
value: void 0
|
|
198
|
-
});
|
|
199
174
|
this.maxPageLimit = options.maxPageLimit;
|
|
200
175
|
this.limit = options.limit;
|
|
201
176
|
this.exclusiveStartId = options.exclusiveStartId;
|
|
@@ -243,7 +218,7 @@ function asArray(value) {
|
|
|
243
218
|
* Adds query parameters to a given URL based on the provided options object.
|
|
244
219
|
*/
|
|
245
220
|
function applyQueryParamsToUrl(url, options) {
|
|
246
|
-
for (const [key, value] of Object.entries(options
|
|
221
|
+
for (const [key, value] of Object.entries(options ?? {})) {
|
|
247
222
|
// skip undefined values
|
|
248
223
|
if (value === undefined)
|
|
249
224
|
continue;
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "apify-client",
|
|
3
|
-
"version": "2.23.5-beta.
|
|
3
|
+
"version": "2.23.5-beta.10",
|
|
4
4
|
"description": "Apify API client for JavaScript",
|
|
5
5
|
"main": "dist/index.js",
|
|
6
6
|
"module": "dist/index.mjs",
|
|
@@ -64,7 +64,7 @@
|
|
|
64
64
|
},
|
|
65
65
|
"devDependencies": {
|
|
66
66
|
"@apify/oxlint-config": "^0.2.5",
|
|
67
|
-
"@apify/tsconfig": "^0.
|
|
67
|
+
"@apify/tsconfig": "^0.2.0",
|
|
68
68
|
"@crawlee/puppeteer": "^3.2.2",
|
|
69
69
|
"@rsbuild/core": "^2.0.0",
|
|
70
70
|
"@rsbuild/plugin-node-polyfill": "^1.3.0",
|
|
@@ -78,11 +78,11 @@
|
|
|
78
78
|
"ajv": "^8.17.1",
|
|
79
79
|
"body-parser": "^2.0.0",
|
|
80
80
|
"compression": "^1.7.4",
|
|
81
|
-
"esbuild": "0.28.
|
|
81
|
+
"esbuild": "0.28.1",
|
|
82
82
|
"express": "^5.0.0",
|
|
83
83
|
"gen-esm-wrapper": "^1.1.2",
|
|
84
|
-
"oxfmt": "0.
|
|
85
|
-
"oxlint": "1.
|
|
84
|
+
"oxfmt": "0.55.0",
|
|
85
|
+
"oxlint": "1.70.0",
|
|
86
86
|
"oxlint-tsgolint": "0.23.0",
|
|
87
87
|
"puppeteer": "^25.0.0",
|
|
88
88
|
"rimraf": "^6.0.0",
|