Skip to content

Commit 06b8241

Browse files
committed
chore: fix dependencies issues with versions, bumping to node18
1 parent 0004c43 commit 06b8241

File tree

2 files changed

+13
-12
lines changed

2 files changed

+13
-12
lines changed

package.json

+10-9
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@
1818
"build-watch": "tsc -w",
1919
"prepare": "npm run build",
2020
"snyk-test": "snyk test",
21-
"pkg-binaries": "npx pkg . -t node12-linux-x64,node12-macos-x64,node12-win-x64 --out-path ./dist/binaries"
21+
"pkg-binaries": "npx pkg . -t node128-linux-x64,node18-macos-x64,node18-win-x64 --out-path ./dist/binaries"
2222
},
2323
"types": "./dist/index.d.ts",
2424
"repository": {
@@ -28,38 +28,39 @@
2828
"author": "Snyk Tech Services",
2929
"license": "Apache-2.0",
3030
"engines": {
31-
"node": ">=12"
31+
"node": ">=18"
3232
},
3333
"files": [
3434
"dist"
3535
],
3636
"homepage": "https://github.com/snyk-tech-services/snyk-prevent-gh-commit-status#readme",
3737
"dependencies": {
3838
"@snyk/configstore": "^3.2.0-rc1",
39+
"@types/node": "^20.3.2",
3940
"axios": "^0.27.2",
4041
"debug": "^4.1.1",
4142
"lodash": "^4.17.21",
42-
"snyk-delta": "^1.8.0",
4343
"snyk-config": "^4.0.0",
44+
"snyk-delta": "^1.8.0",
4445
"source-map-support": "^0.5.16",
4546
"tslib": "^1.10.0"
4647
},
4748
"devDependencies": {
48-
"@types/jest": "^25.1.1",
49-
"@types/lodash": "^4.14.149",
50-
"@types/node": "^12.12.26",
49+
"@types/jest": "^29.5.2",
50+
"@types/lodash": "4.14.182",
51+
"@types/node": "^12.12.31",
5152
"@typescript-eslint/eslint-plugin": "^2.18.0",
5253
"@typescript-eslint/parser": "^2.18.0",
5354
"eslint": "^6.8.0",
5455
"eslint-config-prettier": "^6.10.0",
55-
"jest": "^25.1.0",
56+
"jest": "^29.5.0",
5657
"nock": "^13.0.2",
5758
"prettier": "^1.19.1",
5859
"snyk": "^1.760.0",
59-
"ts-jest": "^25.1.0",
60+
"ts-jest": "^29.1.1",
6061
"ts-node": "8.6.2",
6162
"tsc-watch": "^4.1.0",
62-
"typescript": "^3.7.5"
63+
"typescript": "^5.1.6"
6364
},
6465
"pkg": {
6566
"scripts": [

src/lib/index.ts

+3-3
Original file line numberDiff line numberDiff line change
@@ -142,7 +142,7 @@ const main = async () => {
142142
status: ghCommitStatusUpdateResponse,
143143
prComment: ghPrCommentsCreateResponse,
144144
});
145-
} catch (err) {
145+
} catch (err: any) {
146146
console.error(err.message);
147147
}
148148
} else {
@@ -151,8 +151,8 @@ const main = async () => {
151151
}
152152

153153
return responseArray;
154-
} catch (err) {
155-
throw new Error(err);
154+
} catch (err: any) {
155+
throw new Error(err.message);
156156
}
157157
};
158158

0 commit comments

Comments
 (0)