1import { ApifyClient } from 'apify-client';
2
3
4
5const client = new ApifyClient({
6 token: '<YOUR_API_TOKEN>',
7});
8
9
10const input = {
11 "pins": [
12 "npm:express@4.18.2",
13 "npm:lodash@4.17.21",
14 "pypi:requests@2.31.0",
15 "maven:com.google.guava:guava@32.1.3-jre",
16 "nuget:Newtonsoft.Json@13.0.3"
17 ],
18 "cooldownDays": 30,
19 "asOf": "2023-10-20",
20 "exemptPackages": [
21 "lodash"
22 ]
23};
24
25
26const run = await client.actor("kingii98/dependency-release-cooldown-admission-ledger").call(input);
27
28
29console.log('Results from dataset');
30console.log(`💾 Check your data here: https://console.apify.com/storage/datasets/${run.defaultDatasetId}`);
31const { items } = await client.dataset(run.defaultDatasetId).listItems();
32items.forEach((item) => {
33 console.dir(item);
34});
35
36