Skip to content

Commit

Permalink
Run CI on Node.js 22 and upgrade devDependencies (#69)
Browse files Browse the repository at this point in the history
  • Loading branch information
ehmicky committed May 4, 2024
1 parent 4cd0909 commit 763fe07
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 4 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/main.yml
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ jobs:
fail-fast: false
matrix:
node-version:
- 20
- 22
- 18
steps:
- uses: actions/checkout@v4
Expand Down
2 changes: 1 addition & 1 deletion index.js
Original file line number Diff line number Diff line change
Expand Up @@ -43,7 +43,7 @@ export default function prettyMilliseconds(milliseconds, options) {
return;
}

valueString = valueString ?? String(value);
valueString ??= String(value);
if (options.colonNotation) {
const wholeDigits = valueString.includes('.') ? valueString.split('.')[0].length : valueString.length;
const minLength = result.length > 0 ? 2 : 1;
Expand Down
4 changes: 2 additions & 2 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -49,7 +49,7 @@
},
"devDependencies": {
"ava": "^6.0.1",
"tsd": "^0.30.4",
"xo": "^0.56.0"
"tsd": "^0.31.0",
"xo": "^0.58.0"
}
}

0 comments on commit 763fe07

Please sign in to comment.