apify-client 2.22.4-beta.2 → 2.23.0
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/bundle.js +24 -6
- package/dist/bundle.js.map +1 -1
- package/dist/resource_clients/actor.d.ts +30 -3
- package/dist/resource_clients/actor.d.ts.map +1 -1
- package/dist/resource_clients/actor.js +20 -3
- package/dist/resource_clients/actor.js.map +1 -1
- package/dist/resource_clients/store_collection.d.ts +5 -0
- package/dist/resource_clients/store_collection.d.ts.map +1 -1
- package/dist/resource_clients/store_collection.js +1 -0
- package/dist/resource_clients/store_collection.js.map +1 -1
- package/package.json +112 -112
package/dist/bundle.js
CHANGED
|
@@ -13557,11 +13557,28 @@ __webpack_require__.d(__webpack_exports__, {
|
|
|
13557
13557
|
return (0,_utils__rspack_import_3.cast)((0,_utils__rspack_import_3.parseDateFields)((0,_utils__rspack_import_3.pluckData)(response.data)));
|
|
13558
13558
|
}
|
|
13559
13559
|
/**
|
|
13560
|
-
*
|
|
13560
|
+
* Returns a client for the default build of this Actor.
|
|
13561
13561
|
*
|
|
13562
|
-
*
|
|
13563
|
-
*
|
|
13562
|
+
* Makes an API call to resolve the Actor's default build, then returns a {@link BuildClient}
|
|
13563
|
+
* for that build. Use the returned client to get build details, wait for the build to finish,
|
|
13564
|
+
* or access its logs.
|
|
13565
|
+
*
|
|
13566
|
+
* @param options - Options for getting the default build
|
|
13567
|
+
* @param options.waitForFinish - Maximum time to wait (in seconds, max 60s) for the build to finish on the API side before returning. Default is 0 (returns immediately).
|
|
13568
|
+
* @returns A client for the default build
|
|
13564
13569
|
* @see https://docs.apify.com/api/v2/act-build-default-get
|
|
13570
|
+
*
|
|
13571
|
+
* @example
|
|
13572
|
+
* ```javascript
|
|
13573
|
+
* // Get the default build client, then fetch build details
|
|
13574
|
+
* const buildClient = await client.actor('my-actor').defaultBuild();
|
|
13575
|
+
* const build = await buildClient.get();
|
|
13576
|
+
* console.log(`Default build status: ${build.status}`);
|
|
13577
|
+
*
|
|
13578
|
+
* // Wait up to 60 seconds for the default build to finish
|
|
13579
|
+
* const buildClient = await client.actor('my-actor').defaultBuild({ waitForFinish: 60 });
|
|
13580
|
+
* const build = await buildClient.get();
|
|
13581
|
+
* ```
|
|
13565
13582
|
*/ async defaultBuild() {
|
|
13566
13583
|
let options = arguments.length > 0 && arguments[0] !== void 0 ? arguments[0] : {};
|
|
13567
13584
|
const response = await this.httpClient.call({
|
|
@@ -17023,7 +17040,8 @@ __webpack_require__.d(__webpack_exports__, {
|
|
|
17023
17040
|
sortBy: (ow__rspack_import_1_default().optional.string),
|
|
17024
17041
|
category: (ow__rspack_import_1_default().optional.string),
|
|
17025
17042
|
username: (ow__rspack_import_1_default().optional.string),
|
|
17026
|
-
pricingModel: (ow__rspack_import_1_default().optional.string)
|
|
17043
|
+
pricingModel: (ow__rspack_import_1_default().optional.string),
|
|
17044
|
+
includeUnrunnableActors: (ow__rspack_import_1_default().optional.boolean)
|
|
17027
17045
|
}));
|
|
17028
17046
|
return this._listPaginated(options);
|
|
17029
17047
|
}
|
|
@@ -18011,7 +18029,7 @@ function isStream(value) {
|
|
|
18011
18029
|
function getVersionData() {
|
|
18012
18030
|
if (true) {
|
|
18013
18031
|
return {
|
|
18014
|
-
version: "2.
|
|
18032
|
+
version: "2.23.0"
|
|
18015
18033
|
};
|
|
18016
18034
|
}
|
|
18017
18035
|
// eslint-disable-next-line
|
|
@@ -26451,7 +26469,7 @@ const isIterable = (thing) => thing != null && isFunction(thing[iterator]);
|
|
|
26451
26469
|
},
|
|
26452
26470
|
8330(module) {
|
|
26453
26471
|
"use strict";
|
|
26454
|
-
module.exports = JSON.parse('{"name":"apify-client","version":"2.
|
|
26472
|
+
module.exports = JSON.parse('{"name":"apify-client","version":"2.23.0","description":"Apify API client for JavaScript","main":"dist/index.js","module":"dist/index.mjs","types":"dist/index.d.ts","browser":"dist/bundle.js","unpkg":"dist/bundle.js","exports":{"./package.json":"./package.json","./browser":"./dist/bundle.js",".":{"import":"./dist/index.mjs","require":"./dist/index.js","types":"./dist/index.d.ts","browser":"./dist/bundle.js"}},"keywords":["apify","api","apifier","crawler","scraper"],"author":{"name":"Apify","email":"support@apify.com","url":"https://apify.com"},"contributors":["Jan Curn <jan@apify.com>","Marek Trunkát <marek@apify.com>","Ondra Urban <ondra@apify.com>","Jakub Drobník <jakub.drobnik@apify.com>"],"license":"Apache-2.0","repository":{"type":"git","url":"git+https://github.com/apify/apify-client-js"},"bugs":{"url":"https://github.com/apify/apify-client-js/issues"},"homepage":"https://docs.apify.com/api/client/js/","files":["dist","!dist/*.tsbuildinfo"],"scripts":{"build":"npm run clean && npm run build:node && npm run build:browser","postbuild":"gen-esm-wrapper dist/index.js dist/index.mjs","prepublishOnly":"(test $CI || (echo \\"Publishing is reserved to CI!\\"; exit 1))","clean":"rimraf dist","test":"npm run build && vitest run","test:bundling":"npm run build && npm --prefix=./test/bundling run bundle:all","lint":"eslint","lint:fix":"eslint --fix","tsc-check-tests":"tsc --noEmit --project test/tsconfig.json","format":"prettier --write .","format:check":"prettier --check .","build:node":"tsc","build:browser":"rsbuild build"},"dependencies":{"@apify/consts":"^2.50.0","@apify/log":"^2.2.6","@apify/utilities":"^2.23.2","@crawlee/types":"^3.3.0","ansi-colors":"^4.1.1","async-retry":"^1.3.3","axios":"^1.6.7","content-type":"^1.0.5","ow":"^0.28.2","proxy-agent":"^6.5.0","tslib":"^2.5.0","type-fest":"^4.0.0"},"devDependencies":{"@apify/eslint-config":"^1.0.0","@apify/tsconfig":"^0.1.1","@crawlee/puppeteer":"^3.2.2","@rsbuild/core":"^1.3.6","@rsbuild/plugin-node-polyfill":"^1.3.0","@rspack/cli":"^1.7.6","@rspack/core":"^1.7.6","@stylistic/eslint-plugin-ts":"^4.2.0","@types/async-retry":"^1.4.5","@types/compression":"^1.8.1","@types/content-type":"^1.1.5","@types/express":"^5.0.0","@types/node":"^24.0.0","ajv":"^8.17.1","body-parser":"^2.0.0","compression":"^1.7.4","esbuild":"0.27.4","eslint":"^9.24.0","eslint-config-prettier":"^10.1.2","express":"^5.0.0","gen-esm-wrapper":"^1.1.2","globals":"^17.0.0","prettier":"^3.5.3","puppeteer":"^24.0.0","rimraf":"^6.0.0","rolldown":"^1.0.0-rc.4","typescript":"^5.8.3","typescript-eslint":"^8.29.1","vitest":"^4.0.16","webpack":"^5.105.2","webpack-cli":"^7.0.0"},"packageManager":"npm@10.9.2"}')
|
|
26455
26473
|
|
|
26456
26474
|
},
|
|
26457
26475
|
|