Skip to content

Commit

Permalink
Bump moment-timezone.
Browse files Browse the repository at this point in the history
issue TryGhost#10870

The cause of the problem: there were 2 installations of moment-timezone. 
And moment-timezone overrides updateOffset function of moment. And the moment was calling the wrong one because there were 2 of them. 

I fixed yarn.lock to install only one of them.
  • Loading branch information
sainthkh committed Sep 11, 2020
1 parent 453faff commit fa83c8d
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 15 deletions.
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -117,7 +117,7 @@
"metascraper-title": "5.11.9",
"metascraper-url": "5.11.9",
"moment": "2.24.0",
"moment-timezone": "0.5.23",
"moment-timezone": "0.5.31",
"multer": "1.4.2",
"mysql": "2.18.1",
"nconf": "0.10.0",
Expand Down
23 changes: 9 additions & 14 deletions yarn.lock
Original file line number Diff line number Diff line change
Expand Up @@ -596,7 +596,7 @@
dependencies:
unidecode "^0.1.8"

"@tryghost/url-utils@0.6.20":
"@tryghost/url-utils@0.6.20", "@tryghost/url-utils@^0.6.14":
version "0.6.20"
resolved "https://registry.yarnpkg.com/@tryghost/url-utils/-/url-utils-0.6.20.tgz#cb04b922f2946164a54b1bd2b521f340b2baa88e"
integrity sha512-f3cwL4c5B4GGw6u00pga6LAzgw95xsKfW32mXuQj7+ZZnptC3OYTqIdpa42zqt+/vlDMiMku0QqZY2MzqvTeDg==
Expand All @@ -608,18 +608,6 @@
remark-footnotes "^1.0.0"
unist-util-visit "^2.0.0"

"@tryghost/url-utils@^0.6.14":
version "0.6.18"
resolved "https://registry.yarnpkg.com/@tryghost/url-utils/-/url-utils-0.6.18.tgz#e1c8ab1cbb4f97b2f04a12f6c55b7f41ccf5ca84"
integrity sha512-nYx6qs8gaz1b6Rd9ntv9mQ35EvwR74YnHok1EF22Udm+VfMtQXTaOHviAQqPy4OuEizZqyqj5i8cHEwfH55CKg==
dependencies:
cheerio "0.22.0"
moment "2.24.0"
moment-timezone "0.5.28"
remark "^11.0.2"
remark-footnotes "^1.0.0"
unist-util-visit "^2.0.0"

"@tryghost/vhost-middleware@1.0.8":
version "1.0.8"
resolved "https://registry.yarnpkg.com/@tryghost/vhost-middleware/-/vhost-middleware-1.0.8.tgz#b44ded495475687b8981c50da2402d0724ca66a6"
Expand Down Expand Up @@ -6206,13 +6194,20 @@ module-not-found-error@^1.0.1:
resolved "https://registry.yarnpkg.com/module-not-found-error/-/module-not-found-error-1.0.1.tgz#cf8b4ff4f29640674d6cdd02b0e3bc523c2bbdc0"
integrity sha1-z4tP9PKWQGdNbN0CsOO8UjwrvcA=

moment-timezone@0.5.23, moment-timezone@0.5.28, moment-timezone@0.5.31:
moment-timezone@0.5.23:
version "0.5.23"
resolved "https://registry.yarnpkg.com/moment-timezone/-/moment-timezone-0.5.23.tgz#7cbb00db2c14c71b19303cb47b0fb0a6d8651463"
integrity sha512-WHFH85DkCfiNMDX5D3X7hpNH3/PUhjTGcD0U1SgfBGZxJ3qUmJh5FdvaFjcClxOvB3rzdfj4oRffbI38jEnC1w==
dependencies:
moment ">= 2.9.0"

moment-timezone@0.5.31:
version "0.5.31"
resolved "https://registry.yarnpkg.com/moment-timezone/-/moment-timezone-0.5.31.tgz#9c40d8c5026f0c7ab46eda3d63e49c155148de05"
integrity sha512-+GgHNg8xRhMXfEbv81iDtrVeTcWt0kWmTEY1XQK14dICTXnWJnT0dxdlPspwqF3keKMVPXwayEsk1DI0AA/jdA==
dependencies:
moment ">= 2.9.0"

moment@2.24.0, moment@2.27.0, "moment@>= 2.9.0", moment@^2.10.6, moment@^2.15.2, moment@^2.18.1, moment@^2.19.3:
version "2.24.0"
resolved "https://registry.yarnpkg.com/moment/-/moment-2.24.0.tgz#0d055d53f5052aa653c9f6eb68bb5d12bf5c2b5b"
Expand Down

0 comments on commit fa83c8d

Please sign in to comment.