Skip to content
This repository has been archived by the owner on Aug 4, 2024. It is now read-only.

Commit

Permalink
[Snyk] Upgrade typescript from 4.9.5 to 5.0.2 (#279)
Browse files Browse the repository at this point in the history
* feat: upgrade typescript from 4.9.5 to 5.0.2

Snyk has created this PR to upgrade typescript from 4.9.5 to 5.0.2.

See this package in npm:
https://www.npmjs.com/package/typescript

See this project in Snyk:
https://app.snyk.io/org/lukemnet/project/c8ad1a9e-c1bb-49f5-8a01-578e0d6df8cf?utm_source=github&utm_medium=referral&page=upgrade-pr

* Fix checkIfProfileIdLooksValid method to work with TS 5.x

---------

Co-authored-by: snyk-bot <[email protected]>
  • Loading branch information
lwojcik and snyk-bot authored Apr 19, 2023
1 parent 128bd4f commit 517b365
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -69,7 +69,7 @@
"rollup-plugin-esbuild": "^5.0.0",
"sort-package-json": "^2.4.1",
"ts-jest": "^29.0.5",
"typescript": "^4.9.5"
"typescript": "^5.0.2"
},
"licenses": [
{
Expand Down
2 changes: 1 addition & 1 deletion src/helpers/profileIds/checkIfProfileIdLooksValid.ts
Original file line number Diff line number Diff line change
@@ -1,3 +1,3 @@
export const checkIfProfileIdLooksValid = (profileId: number | string) =>
profileId > 0 &&
Number(profileId) > 0 &&
profileId.toString() === parseInt(profileId as string, 10).toString();
2 changes: 1 addition & 1 deletion tests/__testData__/invalidProfileIds.json
Original file line number Diff line number Diff line change
@@ -1 +1 @@
[-1, "a33434", "nodigitshere", "12121g3424"]
[-1, 0, "a33434", "nodigitshere", "12121g3424"]

0 comments on commit 517b365

Please sign in to comment.