Skip to content

Commit

Permalink
fix(deps): update dependency moment to v2.30.1 (#2477)
Browse files Browse the repository at this point in the history
Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
Co-authored-by: pre-commit-ci[bot] <66853113+pre-commit-ci[bot]@users.noreply.github.com>
Co-authored-by: Anna <[email protected]>
  • Loading branch information
3 people authored Jan 27, 2025
1 parent b0b0dc0 commit c4a4fde
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 11 deletions.
2 changes: 1 addition & 1 deletion frontend/public/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -64,7 +64,7 @@
"lodash": "4.17.21",
"mini-css-extract-plugin": "2.9.2",
"mocha": "9.2.2",
"moment": "2.29.4",
"moment": "2.30.1",
"moment-locales-webpack-plugin": "^1.2.0",
"moment-timezone": "^0.5.43",
"named-urls": "1.4.0",
Expand Down
3 changes: 2 additions & 1 deletion frontend/public/src/lib/util_test.js
Original file line number Diff line number Diff line change
Expand Up @@ -180,7 +180,8 @@ describe("utility functions", () => {
})

it("formatPrettyDate should return a formatted moment date", () => {
const momentDate = moment("2019-01-01T00:00:00.000000Z")
moment.locale("en")
const momentDate = moment("2019-01-01T00:00:00.000000")
assert.equal(formatPrettyDate(momentDate), "January 1, 2019")
})

Expand Down
11 changes: 2 additions & 9 deletions yarn.lock
Original file line number Diff line number Diff line change
Expand Up @@ -16138,7 +16138,7 @@ __metadata:
lodash: 4.17.21
mini-css-extract-plugin: 2.9.2
mocha: 9.2.2
moment: 2.29.4
moment: 2.30.1
moment-locales-webpack-plugin: ^1.2.0
moment-timezone: ^0.5.43
named-urls: 1.4.0
Expand Down Expand Up @@ -16332,14 +16332,7 @@ __metadata:
languageName: node
linkType: hard

"moment@npm:2.29.4":
version: 2.29.4
resolution: "moment@npm:2.29.4"
checksum: 0ec3f9c2bcba38dc2451b1daed5daded747f17610b92427bebe1d08d48d8b7bdd8d9197500b072d14e326dd0ccf3e326b9e3d07c5895d3d49e39b6803b76e80e
languageName: node
linkType: hard

"moment@npm:^2.15.2, moment@npm:^2.29.4":
"moment@npm:2.30.1, moment@npm:^2.15.2, moment@npm:^2.29.4":
version: 2.30.1
resolution: "moment@npm:2.30.1"
checksum: 859236bab1e88c3e5802afcf797fc801acdbd0ee509d34ea3df6eea21eb6bcc2abd4ae4e4e64aa7c986aa6cba563c6e62806218e6412a765010712e5fa121ba6
Expand Down

0 comments on commit c4a4fde

Please sign in to comment.