1import { ApifyClient } from 'apify-client';
2
3
4
5const client = new ApifyClient({
6 token: '<YOUR_API_TOKEN>',
7});
8
9
10const input = {
11 "packages": [
12 {
13 "ecosystem": "PyPI",
14 "name": "requests",
15 "pinnedVersion": "2.30.0",
16 "targetVersion": "2.32.0"
17 },
18 {
19 "ecosystem": "npm",
20 "name": "express",
21 "pinnedVersion": "4.18.0",
22 "targetVersion": "5.0.0"
23 }
24 ],
25 "maxConcurrency": 5
26};
27
28
29const run = await client.actor("kingii98/pinned-dependency-upgrade-range-breaking-change-brief").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