@financial-times/dotcom-middleware-navigation 5.0.0 → 6.0.1
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/dist/node/navigation.js +2 -0
- package/package.json +3 -3
- package/src/navigation.ts +2 -0
package/dist/node/navigation.js
CHANGED
|
@@ -30,8 +30,10 @@ exports.init = (userOptions = {}) => {
|
|
|
30
30
|
options.enableSubNavigation ? getSubNavigationFor(currentPath) : null
|
|
31
31
|
]);
|
|
32
32
|
const editions = navigation.getEditionsFor(currentEdition);
|
|
33
|
+
const subscribeAction = navigation.getSubscribeAction();
|
|
33
34
|
const navigationData = {
|
|
34
35
|
editions,
|
|
36
|
+
subscribeAction,
|
|
35
37
|
currentPath,
|
|
36
38
|
...menusData,
|
|
37
39
|
...subNavigationData
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@financial-times/dotcom-middleware-navigation",
|
|
3
|
-
"version": "
|
|
3
|
+
"version": "6.0.1",
|
|
4
4
|
"description": "",
|
|
5
5
|
"main": "dist/node/index.js",
|
|
6
6
|
"types": "src/index.ts",
|
|
@@ -19,8 +19,8 @@
|
|
|
19
19
|
"author": "",
|
|
20
20
|
"license": "MIT",
|
|
21
21
|
"dependencies": {
|
|
22
|
-
"@financial-times/dotcom-server-navigation": "^
|
|
23
|
-
"@financial-times/dotcom-types-navigation": "^
|
|
22
|
+
"@financial-times/dotcom-server-navigation": "^6.0.1",
|
|
23
|
+
"@financial-times/dotcom-types-navigation": "^6.0.1"
|
|
24
24
|
},
|
|
25
25
|
"devDependencies": {
|
|
26
26
|
"check-engine": "^1.10.1",
|
package/src/navigation.ts
CHANGED
|
@@ -37,9 +37,11 @@ export const init = (userOptions: MiddlewareOptions = {}) => {
|
|
|
37
37
|
])
|
|
38
38
|
|
|
39
39
|
const editions = navigation.getEditionsFor(currentEdition)
|
|
40
|
+
const subscribeAction = navigation.getSubscribeAction()
|
|
40
41
|
|
|
41
42
|
const navigationData: TNavigationData = {
|
|
42
43
|
editions,
|
|
44
|
+
subscribeAction,
|
|
43
45
|
currentPath,
|
|
44
46
|
...menusData,
|
|
45
47
|
...subNavigationData
|