Skip to content

Commit

Permalink
Update packages to fix Node 20 build failure
Browse files Browse the repository at this point in the history
  • Loading branch information
becseya committed Jul 21, 2024
1 parent bfc6ba2 commit a39de36
Show file tree
Hide file tree
Showing 4 changed files with 944 additions and 1,365 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/main.yml
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ jobs:

strategy:
matrix:
node-version: [14.x, 16.x]
node-version: [14.x, 16.x, 20.x]

steps:
- uses: actions/checkout@v3
Expand Down
2 changes: 1 addition & 1 deletion helpers.ts
Original file line number Diff line number Diff line change
Expand Up @@ -284,7 +284,7 @@ export function parseNumberOrString(str?: string): number | string {

const num = parseFloat(str);

return num === NaN ? str : num;
return Number.isNaN(num) ? str : num;
}


Expand Down
12 changes: 6 additions & 6 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -36,14 +36,14 @@
"node": ">= 8.0.0"
},
"devDependencies": {
"@serialport/parser-readline": "^8.0.6",
"@types/mocha": "^7.0.2",
"@types/serialport": "^8.0.0",
"mocha": "^7.1.1",
"serialport": "^8.0.7",
"@serialport/parser-readline": "^12.0.0",
"@types/mocha": "^10.0.7",
"@types/serialport": "^8.0.5",
"mocha": "^10.7.0",
"serialport": "^12.0.0",
"should": "^13.2.3",
"tslint": "^6.1.1",
"typescript": "^3.8.3"
"typescript": "^5.5.3"
},
"dependencies": {}
}
Loading

0 comments on commit a39de36

Please sign in to comment.