@times-components/ssr 2.59.37-cd34e7501f9f4771bff0083579dbe4d3742a99ac.16 → 2.59.37-ff2e6faedb6f9bf15b7079cc9bb0602ee7d0bda3.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/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@times-components/ssr",
3
3
  "main": "src",
4
- "version": "2.59.37-cd34e7501f9f4771bff0083579dbe4d3742a99ac.16+cd34e7501f",
4
+ "version": "2.59.37-ff2e6faedb6f9bf15b7079cc9bb0602ee7d0bda3.19+ff2e6faedb",
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",
@@ -79,5 +79,5 @@
79
79
  "publishConfig": {
80
80
  "access": "public"
81
81
  },
82
- "gitHead": "cd34e7501f9f4771bff0083579dbe4d3742a99ac"
82
+ "gitHead": "ff2e6faedb6f9bf15b7079cc9bb0602ee7d0bda3"
83
83
  }
@@ -60,9 +60,9 @@ module.exports = (client, analyticsStream, data, helmetContext) => {
60
60
  ? providerData.draftArticle
61
61
  : providerData.article;
62
62
  const articleTemplate = article ? article.template : null;
63
- const formattedArticle = article.content.map(contentItem =>
64
- setExternalLinkTargets(contentItem.children)
65
- );
63
+ const articleContent = setExternalLinkTargets(article.content);
64
+
65
+ const formattedArticle = { ...article, content: articleContent };
66
66
 
67
67
  // eslint-disable-next-line no-console
68
68
  console.log("Article: ", article);
@@ -90,7 +90,7 @@ module.exports = (client, analyticsStream, data, helmetContext) => {
90
90
  React.createElement(Article, {
91
91
  analyticsStream,
92
92
  article: {
93
- ...article,
93
+ ...formattedArticle,
94
94
  section: article
95
95
  ? getSectionNameForAnalytics(article)
96
96
  : "unknown section",