ghost 5.2.2 → 5.2.3
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/core/frontend/helpers/date.js +3 -1
- package/package.json +3 -3
- package/yarn.lock +15 -53
|
@@ -45,7 +45,9 @@ module.exports = function (...attrs) {
|
|
|
45
45
|
// i18n: Making dates, including month names, translatable to any language.
|
|
46
46
|
// Documentation: http://momentjs.com/docs/#/i18n/
|
|
47
47
|
// Locales: https://github.com/moment/moment/tree/develop/locale
|
|
48
|
-
|
|
48
|
+
if (locale && locale.match('^[^/\\\\]*$') !== null) {
|
|
49
|
+
dateMoment.locale(locale);
|
|
50
|
+
}
|
|
49
51
|
|
|
50
52
|
if (timeago) {
|
|
51
53
|
date = dateMoment.tz(timezone).from(timeNow);
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "ghost",
|
|
3
|
-
"version": "5.2.
|
|
3
|
+
"version": "5.2.3",
|
|
4
4
|
"description": "The professional publishing platform",
|
|
5
5
|
"author": "Ghost Foundation",
|
|
6
6
|
"homepage": "https://ghost.org",
|
|
@@ -198,7 +198,7 @@
|
|
|
198
198
|
"cli-progress": "3.11.1",
|
|
199
199
|
"coffeescript": "2.7.0",
|
|
200
200
|
"cssnano": "5.1.10",
|
|
201
|
-
"eslint": "8.
|
|
201
|
+
"eslint": "8.17.0",
|
|
202
202
|
"eslint-plugin-ghost": "2.14.0",
|
|
203
203
|
"grunt": "1.5.3",
|
|
204
204
|
"grunt-bg-shell": "2.3.3",
|
|
@@ -216,7 +216,7 @@
|
|
|
216
216
|
"mocha": "10.0.0",
|
|
217
217
|
"mocha-slow-test-reporter": "0.1.2",
|
|
218
218
|
"mock-knex": "TryGhost/mock-knex#8ecb8c227bf463c991c3d820d33f59efc3ab9682",
|
|
219
|
-
"nock": "13.2.
|
|
219
|
+
"nock": "13.2.6",
|
|
220
220
|
"papaparse": "5.3.2",
|
|
221
221
|
"postcss": "8.4.14",
|
|
222
222
|
"rewire": "6.0.0",
|
package/yarn.lock
CHANGED
|
@@ -1582,7 +1582,7 @@
|
|
|
1582
1582
|
resolved "https://registry.yarnpkg.com/@tryghost/database-info/-/database-info-0.3.7.tgz#370c4d43bdd349fb423ebd95c56ffda0dbc8da70"
|
|
1583
1583
|
integrity sha512-+kTVHmLkeBzvS3HJ4a+T8ejhgAN60JIs6cHg++QWyoiaPRKBDKf7gO0VsTI/A8erlhygURThtTZ/K7ffY10Oyw==
|
|
1584
1584
|
|
|
1585
|
-
"@tryghost/debug@0.1.17", "@tryghost/debug@^0.1.17":
|
|
1585
|
+
"@tryghost/debug@0.1.17", "@tryghost/debug@^0.1.13", "@tryghost/debug@^0.1.17", "@tryghost/debug@^0.1.2", "@tryghost/debug@^0.1.4", "@tryghost/debug@^0.1.5", "@tryghost/debug@^0.1.8", "@tryghost/debug@^0.1.9":
|
|
1586
1586
|
version "0.1.17"
|
|
1587
1587
|
resolved "https://registry.yarnpkg.com/@tryghost/debug/-/debug-0.1.17.tgz#2655fa1c71b2608e71de7f166f5f7b1a1c086915"
|
|
1588
1588
|
integrity sha512-Sz7O4+uCV2CLDb4daEP8/lLkSf0ttTGMpF3RzhwyQKXNCIeutAeaW8nqhr+BIq1e3LeMV/sVRzh4LeyKKDEkrw==
|
|
@@ -1590,14 +1590,6 @@
|
|
|
1590
1590
|
"@tryghost/root-utils" "^0.3.15"
|
|
1591
1591
|
debug "^4.3.1"
|
|
1592
1592
|
|
|
1593
|
-
"@tryghost/debug@^0.1.13", "@tryghost/debug@^0.1.2", "@tryghost/debug@^0.1.4", "@tryghost/debug@^0.1.5", "@tryghost/debug@^0.1.8", "@tryghost/debug@^0.1.9":
|
|
1594
|
-
version "0.1.16"
|
|
1595
|
-
resolved "https://registry.yarnpkg.com/@tryghost/debug/-/debug-0.1.16.tgz#a66211c01cb1d5866fcd7b8fa37b420bd9b4ea5b"
|
|
1596
|
-
integrity sha512-kPUXRJ8FTEcJyLkYAnPnEbURk9nD9MNVhaDvNpGH6Zga2gVpWr07LkoU+kSJhhw1ZnPF4Sr3egFezR62jhi7Hg==
|
|
1597
|
-
dependencies:
|
|
1598
|
-
"@tryghost/root-utils" "^0.3.14"
|
|
1599
|
-
debug "^4.3.1"
|
|
1600
|
-
|
|
1601
1593
|
"@tryghost/domain-events@0.1.14", "@tryghost/domain-events@^0.1.14":
|
|
1602
1594
|
version "0.1.14"
|
|
1603
1595
|
resolved "https://registry.yarnpkg.com/@tryghost/domain-events/-/domain-events-0.1.14.tgz#a0206b21981d8e3337dfc0ed56df182d6e7188b3"
|
|
@@ -1637,7 +1629,7 @@
|
|
|
1637
1629
|
dependencies:
|
|
1638
1630
|
html-to-text "^5.1.1"
|
|
1639
1631
|
|
|
1640
|
-
"@tryghost/errors@1.2.13"
|
|
1632
|
+
"@tryghost/errors@1.2.13":
|
|
1641
1633
|
version "1.2.13"
|
|
1642
1634
|
resolved "https://registry.yarnpkg.com/@tryghost/errors/-/errors-1.2.13.tgz#09a680f81e5b14a008427d772689683d1280e221"
|
|
1643
1635
|
integrity sha512-uZmPndO4UriA+n1qw+X6V25SG1X3WLNy1sgHflDlMAYiKtwDlKl6N5128BXoydLrATLAqb+to+G3QorM4+4nKw==
|
|
@@ -1646,7 +1638,7 @@
|
|
|
1646
1638
|
utils-copy-error "^1.0.1"
|
|
1647
1639
|
uuid "^8.3.2"
|
|
1648
1640
|
|
|
1649
|
-
"@tryghost/errors@1.2.14", "@tryghost/errors@^1.2.14":
|
|
1641
|
+
"@tryghost/errors@1.2.14", "@tryghost/errors@^1.0.0", "@tryghost/errors@^1.1.0", "@tryghost/errors@^1.1.1", "@tryghost/errors@^1.2.1", "@tryghost/errors@^1.2.14", "@tryghost/errors@^1.2.3", "@tryghost/errors@^1.2.5":
|
|
1650
1642
|
version "1.2.14"
|
|
1651
1643
|
resolved "https://registry.yarnpkg.com/@tryghost/errors/-/errors-1.2.14.tgz#af5e0ea1450b6fac7bde94585177943f85f0e41f"
|
|
1652
1644
|
integrity sha512-ycXhblMBlbwXo+PfmVJZtT26/B1wu6Ae/8SBjXlzHAp6qlkho/Z5hZPKMRo0frfBt6CDGyX/abKTeVQzSkTPYA==
|
|
@@ -2108,14 +2100,6 @@
|
|
|
2108
2100
|
caller "^1.0.1"
|
|
2109
2101
|
find-root "^1.1.0"
|
|
2110
2102
|
|
|
2111
|
-
"@tryghost/root-utils@^0.3.14":
|
|
2112
|
-
version "0.3.14"
|
|
2113
|
-
resolved "https://registry.yarnpkg.com/@tryghost/root-utils/-/root-utils-0.3.14.tgz#ade604a1d2de7948b0841ec1eee7fe0a68d045b3"
|
|
2114
|
-
integrity sha512-APWd8XVy1XpGbeb/yL7V/OTBAQ9qWyla1QQVHVOmZv9x+IH0PEYMcf0xZBivyZmCrQokbc+NMVYcra/7M9OjSg==
|
|
2115
|
-
dependencies:
|
|
2116
|
-
caller "^1.0.1"
|
|
2117
|
-
find-root "^1.1.0"
|
|
2118
|
-
|
|
2119
2103
|
"@tryghost/security@0.3.2":
|
|
2120
2104
|
version "0.3.2"
|
|
2121
2105
|
resolved "https://registry.yarnpkg.com/@tryghost/security/-/security-0.3.2.tgz#d2276dac041acbb52d2103175e87465f73dc90e7"
|
|
@@ -2168,20 +2152,13 @@
|
|
|
2168
2152
|
dependencies:
|
|
2169
2153
|
unidecode "^0.1.8"
|
|
2170
2154
|
|
|
2171
|
-
"@tryghost/tpl@0.1.17", "@tryghost/tpl@^0.1.17":
|
|
2155
|
+
"@tryghost/tpl@0.1.17", "@tryghost/tpl@^0.1.17", "@tryghost/tpl@^0.1.2", "@tryghost/tpl@^0.1.3", "@tryghost/tpl@^0.1.4", "@tryghost/tpl@^0.1.5", "@tryghost/tpl@^0.1.7", "@tryghost/tpl@^0.1.8":
|
|
2172
2156
|
version "0.1.17"
|
|
2173
2157
|
resolved "https://registry.yarnpkg.com/@tryghost/tpl/-/tpl-0.1.17.tgz#3663f732346f0759a1ce4a241f5158dbca1ebb5c"
|
|
2174
2158
|
integrity sha512-Lfo/ITYoFofvfee2Wgh/LjRoXfut1J7ETcPZppvxyavwjuNAk0Z3kOHstjVkRllFnMtox10gwDlwlqe/QS4o2g==
|
|
2175
2159
|
dependencies:
|
|
2176
2160
|
lodash.template "^4.5.0"
|
|
2177
2161
|
|
|
2178
|
-
"@tryghost/tpl@^0.1.2", "@tryghost/tpl@^0.1.3", "@tryghost/tpl@^0.1.4", "@tryghost/tpl@^0.1.5", "@tryghost/tpl@^0.1.7", "@tryghost/tpl@^0.1.8":
|
|
2179
|
-
version "0.1.16"
|
|
2180
|
-
resolved "https://registry.yarnpkg.com/@tryghost/tpl/-/tpl-0.1.16.tgz#59c7847a324a6e06261923c71615b5b7a9a65c8c"
|
|
2181
|
-
integrity sha512-tYekSSf5wolhUwF4CMapvBLD4yUCoUf9eDHRhYI/wwtmvzy/N5dIGFO3A1+++0pOfUD0XFUXBnHtjfArhdeT+g==
|
|
2182
|
-
dependencies:
|
|
2183
|
-
lodash.template "^4.5.0"
|
|
2184
|
-
|
|
2185
2162
|
"@tryghost/update-check-service@0.3.4":
|
|
2186
2163
|
version "0.3.4"
|
|
2187
2164
|
resolved "https://registry.yarnpkg.com/@tryghost/update-check-service/-/update-check-service-0.3.4.tgz#96a106c797508a26876bf69a6dbecd6db46658d5"
|
|
@@ -2389,16 +2366,11 @@
|
|
|
2389
2366
|
resolved "https://registry.yarnpkg.com/@types/mime/-/mime-1.3.2.tgz#93e25bf9ee75fe0fd80b594bc4feb0e862111b5a"
|
|
2390
2367
|
integrity sha512-YATxVxgRqNH6nHEIsvg6k2Boc1JHI9ZbH5iWFFv/MTkchz3b1ieGDa5T0a9RznNdI0KhVbdbWSN+KWWrQZRxTw==
|
|
2391
2368
|
|
|
2392
|
-
"@types/node@*":
|
|
2369
|
+
"@types/node@*", "@types/node@>=8.1.0":
|
|
2393
2370
|
version "17.0.38"
|
|
2394
2371
|
resolved "https://registry.yarnpkg.com/@types/node/-/node-17.0.38.tgz#f8bb07c371ccb1903f3752872c89f44006132947"
|
|
2395
2372
|
integrity sha512-5jY9RhV7c0Z4Jy09G+NIDTsCZ5G0L5n+Z+p+Y7t5VJHM30bgwzSjVtlcBxqAj+6L/swIlvtOSzr8rBk/aNyV2g==
|
|
2396
2373
|
|
|
2397
|
-
"@types/node@>=8.1.0":
|
|
2398
|
-
version "17.0.23"
|
|
2399
|
-
resolved "https://registry.yarnpkg.com/@types/node/-/node-17.0.23.tgz#3b41a6e643589ac6442bdbd7a4a3ded62f33f7da"
|
|
2400
|
-
integrity sha512-UxDxWn7dl97rKVeVS61vErvw086aCYhDLyvRQZ5Rk65rZKepaFdm53GeqXaKBuOhED4e9uWq34IC3TdSdJJ2Gw==
|
|
2401
|
-
|
|
2402
2374
|
"@types/normalize-package-data@^2.4.0":
|
|
2403
2375
|
version "2.4.1"
|
|
2404
2376
|
resolved "https://registry.yarnpkg.com/@types/normalize-package-data/-/normalize-package-data-2.4.1.tgz#d3357479a0fdfdd5907fe67e17e0a85c906e1301"
|
|
@@ -4967,10 +4939,10 @@ eslint-visitor-keys@^3.3.0:
|
|
|
4967
4939
|
resolved "https://registry.yarnpkg.com/eslint-visitor-keys/-/eslint-visitor-keys-3.3.0.tgz#f6480fa6b1f30efe2d1968aa8ac745b862469826"
|
|
4968
4940
|
integrity sha512-mQ+suqKJVyeuwGYHAdjMFqjCyfl8+Ldnxuyp3ldiMBFKkvytrXUZWaiPCEav8qDHKty44bD+qV1IP4T+w+xXRA==
|
|
4969
4941
|
|
|
4970
|
-
eslint@8.
|
|
4971
|
-
version "8.
|
|
4972
|
-
resolved "https://registry.yarnpkg.com/eslint/-/eslint-8.
|
|
4973
|
-
integrity sha512-
|
|
4942
|
+
eslint@8.17.0:
|
|
4943
|
+
version "8.17.0"
|
|
4944
|
+
resolved "https://registry.yarnpkg.com/eslint/-/eslint-8.17.0.tgz#1cfc4b6b6912f77d24b874ca1506b0fe09328c21"
|
|
4945
|
+
integrity sha512-gq0m0BTJfci60Fz4nczYxNAlED+sMcihltndR8t9t1evnU/azx53x3t2UHXC/uRjcbvRw/XctpaNygSTcQD+Iw==
|
|
4974
4946
|
dependencies:
|
|
4975
4947
|
"@eslint/eslintrc" "^1.3.0"
|
|
4976
4948
|
"@humanwhocodes/config-array" "^0.9.2"
|
|
@@ -6000,16 +5972,11 @@ got@~11.8.0:
|
|
|
6000
5972
|
p-cancelable "^2.0.0"
|
|
6001
5973
|
responselike "^2.0.0"
|
|
6002
5974
|
|
|
6003
|
-
graceful-fs@^4.1.6, graceful-fs@^4.2.0:
|
|
5975
|
+
graceful-fs@^4.1.6, graceful-fs@^4.2.0, graceful-fs@^4.2.6, graceful-fs@^4.2.9:
|
|
6004
5976
|
version "4.2.10"
|
|
6005
5977
|
resolved "https://registry.yarnpkg.com/graceful-fs/-/graceful-fs-4.2.10.tgz#147d3a006da4ca3ce14728c7aefc287c367d7a6c"
|
|
6006
5978
|
integrity sha512-9ByhssR2fPVsNZj478qUUbKfmL0+t5BDVyjShtyZZLiK7ZDAArFFfopyOTj0M05wE2tJPisA4iTnnXl2YoPvOA==
|
|
6007
5979
|
|
|
6008
|
-
graceful-fs@^4.2.6, graceful-fs@^4.2.9:
|
|
6009
|
-
version "4.2.9"
|
|
6010
|
-
resolved "https://registry.yarnpkg.com/graceful-fs/-/graceful-fs-4.2.9.tgz#041b05df45755e587a24942279b9d113146e1c96"
|
|
6011
|
-
integrity sha512-NtNxqUcXgpW2iMrfqSfR73Glt39K+BLwWsPs94yR63v45T0Wbej7eRmL5cWfwEgqXnmjQp3zaJTshdRW/qC2ZQ==
|
|
6012
|
-
|
|
6013
5980
|
grunt-bg-shell@2.3.3:
|
|
6014
5981
|
version "2.3.3"
|
|
6015
5982
|
resolved "https://registry.yarnpkg.com/grunt-bg-shell/-/grunt-bg-shell-2.3.3.tgz#139ae8f9c76f68a0db4ee9dbbd4ec825b9227fff"
|
|
@@ -7985,11 +7952,6 @@ lodash.reject@^4.4.0:
|
|
|
7985
7952
|
resolved "https://registry.yarnpkg.com/lodash.reject/-/lodash.reject-4.6.0.tgz#80d6492dc1470864bbf583533b651f42a9f52415"
|
|
7986
7953
|
integrity sha1-gNZJLcFHCGS79YNTO2UfQqn1JBU=
|
|
7987
7954
|
|
|
7988
|
-
lodash.set@^4.3.2:
|
|
7989
|
-
version "4.3.2"
|
|
7990
|
-
resolved "https://registry.yarnpkg.com/lodash.set/-/lodash.set-4.3.2.tgz#d8757b1da807dde24816b0d6a84bea1a76230b23"
|
|
7991
|
-
integrity sha1-2HV7HagH3eJIFrDWqEvqGnYjCyM=
|
|
7992
|
-
|
|
7993
7955
|
lodash.snakecase@4.1.1:
|
|
7994
7956
|
version "4.1.1"
|
|
7995
7957
|
resolved "https://registry.yarnpkg.com/lodash.snakecase/-/lodash.snakecase-4.1.1.tgz#39d714a35357147837aefd64b5dcbb16becd8f8d"
|
|
@@ -8884,14 +8846,14 @@ no-case@^3.0.4:
|
|
|
8884
8846
|
lower-case "^2.0.2"
|
|
8885
8847
|
tslib "^2.0.3"
|
|
8886
8848
|
|
|
8887
|
-
nock@13.2.
|
|
8888
|
-
version "13.2.
|
|
8889
|
-
resolved "https://registry.yarnpkg.com/nock/-/nock-13.2.
|
|
8890
|
-
integrity sha512-
|
|
8849
|
+
nock@13.2.6:
|
|
8850
|
+
version "13.2.6"
|
|
8851
|
+
resolved "https://registry.yarnpkg.com/nock/-/nock-13.2.6.tgz#35e419cd9d385ffa67e59523d9699e41b29e1a03"
|
|
8852
|
+
integrity sha512-GbyeSwSEP0FYouzETZ0l/XNm5tNcDNcXJKw3LCAb+mx8bZSwg1wEEvdL0FAyg5TkBJYiWSCtw6ag4XfmBy60FA==
|
|
8891
8853
|
dependencies:
|
|
8892
8854
|
debug "^4.1.0"
|
|
8893
8855
|
json-stringify-safe "^5.0.1"
|
|
8894
|
-
lodash
|
|
8856
|
+
lodash "^4.17.21"
|
|
8895
8857
|
propagate "^2.0.0"
|
|
8896
8858
|
|
|
8897
8859
|
node-abi@^3.3.0:
|