@times-components/ssr 2.38.18 → 2.38.19
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/CHANGELOG.md +8 -0
- package/dist/article.react.bundle.js +3 -3
- package/dist/article.react.bundle.js.map +1 -1
- package/dist/common.react.bundle.js +2 -2
- package/dist/common.react.bundle.js.map +1 -1
- package/package.json +8 -8
- package/src/client/article.js +4 -2
- package/src/component/article.js +4 -2
- package/src/server/article.js +5 -2
package/package.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@times-components/ssr",
|
|
3
3
|
"main": "src",
|
|
4
|
-
"version": "2.38.
|
|
4
|
+
"version": "2.38.19",
|
|
5
5
|
"scripts": {
|
|
6
6
|
"bundle:dev": "yarn cleanup-dist && webpack --config=webpack.config.js",
|
|
7
7
|
"bundle:prod": "yarn cleanup-dist && NODE_ENV=production webpack --config=webpack.config.js -p",
|
|
@@ -52,15 +52,15 @@
|
|
|
52
52
|
"webpack": "4.30.0"
|
|
53
53
|
},
|
|
54
54
|
"dependencies": {
|
|
55
|
-
"@times-components/article": "7.13.
|
|
56
|
-
"@times-components/author-profile": "6.9.
|
|
57
|
-
"@times-components/context": "1.10.
|
|
55
|
+
"@times-components/article": "7.13.19",
|
|
56
|
+
"@times-components/author-profile": "6.9.14",
|
|
57
|
+
"@times-components/context": "1.10.4",
|
|
58
58
|
"@times-components/provider": "1.33.5",
|
|
59
59
|
"@times-components/schema": "0.7.3",
|
|
60
60
|
"@times-components/tealium": "1.15.0",
|
|
61
|
-
"@times-components/topic": "5.7.
|
|
62
|
-
"@times-components/ts-styleguide": "1.37.
|
|
63
|
-
"@times-components/utils": "6.15.
|
|
61
|
+
"@times-components/topic": "5.7.14",
|
|
62
|
+
"@times-components/ts-styleguide": "1.37.5",
|
|
63
|
+
"@times-components/utils": "6.15.5",
|
|
64
64
|
"apollo-cache-inmemory": "1.5.1",
|
|
65
65
|
"apollo-client": "2.5.1",
|
|
66
66
|
"apollo-link": "1.2.4",
|
|
@@ -79,5 +79,5 @@
|
|
|
79
79
|
"publishConfig": {
|
|
80
80
|
"access": "public"
|
|
81
81
|
},
|
|
82
|
-
"gitHead": "
|
|
82
|
+
"gitHead": "5509fb4407fbee9a7e36774179b488622ed1dea4"
|
|
83
83
|
}
|
package/src/client/article.js
CHANGED
|
@@ -14,7 +14,8 @@ if (window.nuk && window.nuk.ssr && window.nuk.article) {
|
|
|
14
14
|
userState,
|
|
15
15
|
isPreview,
|
|
16
16
|
swgProductId,
|
|
17
|
-
commentCount
|
|
17
|
+
commentCount,
|
|
18
|
+
realnameInlineBlueBanner
|
|
18
19
|
} = window.nuk.article;
|
|
19
20
|
const { getCookieValue } = window.nuk;
|
|
20
21
|
|
|
@@ -30,7 +31,8 @@ if (window.nuk && window.nuk.ssr && window.nuk.article) {
|
|
|
30
31
|
userState,
|
|
31
32
|
isPreview,
|
|
32
33
|
swgProductId,
|
|
33
|
-
commentCount
|
|
34
|
+
commentCount,
|
|
35
|
+
realnameInlineBlueBanner
|
|
34
36
|
};
|
|
35
37
|
|
|
36
38
|
const clientOptions = {
|
package/src/component/article.js
CHANGED
|
@@ -30,7 +30,8 @@ module.exports = (client, analyticsStream, data, helmetContext) => {
|
|
|
30
30
|
paidContentClassName,
|
|
31
31
|
isPreview,
|
|
32
32
|
swgProductId,
|
|
33
|
-
getFallbackThumbnailUrl169
|
|
33
|
+
getFallbackThumbnailUrl169,
|
|
34
|
+
realnameInlineBlueBanner
|
|
34
35
|
} = data;
|
|
35
36
|
|
|
36
37
|
return React.createElement(
|
|
@@ -87,7 +88,8 @@ module.exports = (client, analyticsStream, data, helmetContext) => {
|
|
|
87
88
|
paidContentClassName,
|
|
88
89
|
isPreview,
|
|
89
90
|
swgProductId,
|
|
90
|
-
getFallbackThumbnailUrl169
|
|
91
|
+
getFallbackThumbnailUrl169,
|
|
92
|
+
realnameInlineBlueBanner
|
|
91
93
|
})
|
|
92
94
|
);
|
|
93
95
|
}
|
package/src/server/article.js
CHANGED
|
@@ -22,7 +22,8 @@ module.exports = (
|
|
|
22
22
|
isPreview,
|
|
23
23
|
swgProductId,
|
|
24
24
|
getFallbackThumbnailUrl169,
|
|
25
|
-
commentCount
|
|
25
|
+
commentCount,
|
|
26
|
+
realnameInlineBlueBanner
|
|
26
27
|
},
|
|
27
28
|
userState
|
|
28
29
|
) => {
|
|
@@ -72,10 +73,12 @@ module.exports = (
|
|
|
72
73
|
paidContentClassName,
|
|
73
74
|
isPreview,
|
|
74
75
|
swgProductId,
|
|
75
|
-
commentCount
|
|
76
|
+
commentCount,
|
|
77
|
+
realnameInlineBlueBanner
|
|
76
78
|
},
|
|
77
79
|
name: "article"
|
|
78
80
|
};
|
|
81
|
+
|
|
79
82
|
return runServer(article, options).catch(error => {
|
|
80
83
|
throw new Error(error);
|
|
81
84
|
});
|