From e9a23e2e6bb4c048c56024ed35c7027745410417 Mon Sep 17 00:00:00 2001 From: ghe Date: Wed, 12 Oct 2022 14:22:10 +0100 Subject: [PATCH] feat: bump all prod deps to latest --- package.json | 30 +++++++++++++++--------------- src/lib/generate-report/index.ts | 4 ++-- 2 files changed, 17 insertions(+), 17 deletions(-) diff --git a/package.json b/package.json index a025605..50e9452 100644 --- a/package.json +++ b/package.json @@ -36,28 +36,28 @@ ], "homepage": "https://github.com/snyk-tech-services/snyk-licenses-texts#readme", "dependencies": { - "@snyk/configstore": "^3.2.0-rc1", - "cheerio": "1.0.0-rc.3", + "@snyk/configstore": "3.2.0-rc1", + "cheerio": "1.0.0-rc.12", "debug": "4.3.4", "handlebars": "4.7.7", "lodash": "4.17.21", "node-fetch": "2.6.7", - "p-map": "4.0.0", - "puppeteer": "5.4.1", - "snyk-api-ts-client": "1.8.1", - "snyk-config": "4.0.0", - "snyk-request-manager": "1.5.0", - "source-map-support": "^0.5.16", + "p-map": "5.5.0", + "puppeteer": "18.2.1", + "snyk-api-ts-client": "1.10.0", + "snyk-config": "5.1.0", + "snyk-request-manager": "1.8.0", + "source-map-support": "0.5.21", "tslib": "2.4.0", - "yargs": "16.2.0" + "yargs": "17.6.0" }, "devDependencies": { - "@types/cheerio": "0.22.23", - "@types/jest": "26.0.13", - "@types/lodash": "4.14.161", - "@types/node": "14.6.3", - "@typescript-eslint/eslint-plugin": "5.29.0", - "@typescript-eslint/parser": "5.29.0", + "@types/cheerio": "0.22.31", + "@types/jest": "29.1.2", + "@types/lodash": "4.14.186", + "@types/node": "18.8.4", + "@typescript-eslint/eslint-plugin": "5.40.0", + "@typescript-eslint/parser": "5.40.0", "cpx": "1.5.0", "eslint": "8.18.0", "jest": "26.4.2", diff --git a/src/lib/generate-report/index.ts b/src/lib/generate-report/index.ts index c0338e4..218fb6a 100644 --- a/src/lib/generate-report/index.ts +++ b/src/lib/generate-report/index.ts @@ -149,9 +149,9 @@ async function compileTemplate( ); } -function readFile(filePath: string, encoding: string): Promise { +function readFile(filePath: string, encoding: BufferEncoding): Promise { return new Promise((resolve, reject) => { - fs.readFile(filePath, encoding, (err, data) => { + fs.readFile(filePath, { encoding }, (err, data) => { if (err) { reject(err); }