@times-components/ssr 2.59.37-908662fe7cb6864673c1e02bd8263456c56a1fae.15 → 2.59.37-91d4eb0c0159a68d8b6a2be3d9242e346dd2b7d2.0

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-908662fe7cb6864673c1e02bd8263456c56a1fae.15+908662fe7c",
4
+ "version": "2.59.37-91d4eb0c0159a68d8b6a2be3d9242e346dd2b7d2.0+91d4eb0c01",
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,8 +52,8 @@
52
52
  "webpack": "4.30.0"
53
53
  },
54
54
  "dependencies": {
55
- "@times-components/article": "^7.17.55",
56
- "@times-components/author-profile": "^6.19.20",
55
+ "@times-components/article": "^7.17.56-91d4eb0c0159a68d8b6a2be3d9242e346dd2b7d2.0+91d4eb0c01",
56
+ "@times-components/author-profile": "^6.19.21-91d4eb0c0159a68d8b6a2be3d9242e346dd2b7d2.0+91d4eb0c01",
57
57
  "@times-components/context": "^1.24.0",
58
58
  "@times-components/provider": "^1.41.5",
59
59
  "@times-components/schema": "^0.7.5",
@@ -79,5 +79,5 @@
79
79
  "publishConfig": {
80
80
  "access": "public"
81
81
  },
82
- "gitHead": "908662fe7cb6864673c1e02bd8263456c56a1fae"
82
+ "gitHead": "91d4eb0c0159a68d8b6a2be3d9242e346dd2b7d2"
83
83
  }
@@ -13,7 +13,6 @@ const {
13
13
  defaults
14
14
  } = require("@times-components/context/rnw");
15
15
  const { scales, themeFactory } = require("@times-components/ts-styleguide/rnw");
16
- const { addAttribute } = require("../lib/add-attribute");
17
16
 
18
17
  const scale = scales.large;
19
18
 
@@ -60,10 +59,6 @@ module.exports = (client, analyticsStream, data, helmetContext) => {
60
59
  ? providerData.draftArticle
61
60
  : providerData.article;
62
61
  const articleTemplate = article ? article.template : null;
63
- const formattedArticle = addAttribute(article);
64
-
65
- // eslint-disable-next-line no-console
66
- console.log("Formatted Article: ", formattedArticle);
67
62
 
68
63
  return React.createElement(
69
64
  ContextProviderWithDefaults,
@@ -85,7 +80,7 @@ module.exports = (client, analyticsStream, data, helmetContext) => {
85
80
  React.createElement(Article, {
86
81
  analyticsStream,
87
82
  article: {
88
- ...formattedArticle,
83
+ ...article,
89
84
  section: article
90
85
  ? getSectionNameForAnalytics(article)
91
86
  : "unknown section",
@@ -1,5 +0,0 @@
1
- module.exports.addAttribute = article => ({
2
- ...article,
3
- content: [...article.content.slice(0, 2)],
4
- ssrAttr: "new-ssr-attr"
5
- });