1import { ApifyClient } from 'apify-client';
2
3
4
5const client = new ApifyClient({
6 token: '<YOUR_API_TOKEN>',
7});
8
9
10const input = {
11 "targets": [
12 "npm:express@^4.0.0",
13 "npm:request@latest",
14 "pypi:requests@>=2.31,<3",
15 "cargo:serde@^1.0"
16 ],
17 "includePrerelease": false,
18 "failOn": [
19 "withdrawn",
20 "no_live_files",
21 "tag_retargeted"
22 ],
23 "stateStoreName": "release-channel-resolution-state",
24 "requestTimeoutSeconds": 30,
25 "concurrency": 4
26};
27
28
29const run = await client.actor("kingii98/release-channel-resolution-safety-and-withdrawn-artifact-watch").call(input);
30
31
32console.log('Results from dataset');
33console.log(`💾 Check your data here: https://console.apify.com/storage/datasets/${run.defaultDatasetId}`);
34const { items } = await client.dataset(run.defaultDatasetId).listItems();
35items.forEach((item) => {
36 console.dir(item);
37});
38
39