@times-components/ssr 2.64.9-eecbdf92e08f924d4529152ce24d81a0dfc9e930.0 → 2.64.9

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.64.9-eecbdf92e08f924d4529152ce24d81a0dfc9e930.0+eecbdf92e0",
4
+ "version": "2.64.9",
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",
@@ -35,9 +35,9 @@
35
35
  },
36
36
  "homepage": "https://github.com/newsuk/times-components#readme",
37
37
  "devDependencies": {
38
- "@times-components/eslint-config-thetimes": "^0.8.18",
39
- "@times-components/fixture-generator": "^0.36.0",
40
- "@times-components/mock-tpa-server": "^0.4.18",
38
+ "@times-components/eslint-config-thetimes": "0.8.18",
39
+ "@times-components/fixture-generator": "0.36.0",
40
+ "@times-components/mock-tpa-server": "0.4.18",
41
41
  "axe-core": "3.3.1",
42
42
  "cypress-axe": "0.13.0",
43
43
  "cypress-failed-log": "2.5.1",
@@ -52,14 +52,14 @@
52
52
  "webpack": "4.30.0"
53
53
  },
54
54
  "dependencies": {
55
- "@times-components/article": "^7.21.4-eecbdf92e08f924d4529152ce24d81a0dfc9e930.0+eecbdf92e0",
56
- "@times-components/author-profile": "^6.22.15-eecbdf92e08f924d4529152ce24d81a0dfc9e930.0+eecbdf92e0",
57
- "@times-components/context": "^1.29.1",
58
- "@times-components/provider": "^1.48.14",
59
- "@times-components/schema": "^0.7.5",
60
- "@times-components/tealium": "^1.15.3",
61
- "@times-components/ts-styleguide": "^1.56.15",
62
- "@times-components/utils": "^6.35.1",
55
+ "@times-components/article": "7.21.4",
56
+ "@times-components/author-profile": "6.22.15",
57
+ "@times-components/context": "1.29.1",
58
+ "@times-components/provider": "1.48.15",
59
+ "@times-components/schema": "0.7.5",
60
+ "@times-components/tealium": "1.15.3",
61
+ "@times-components/ts-styleguide": "1.56.16",
62
+ "@times-components/utils": "6.35.2",
63
63
  "apollo-cache-inmemory": "1.5.1",
64
64
  "apollo-client": "2.5.1",
65
65
  "apollo-link": "1.2.4",
@@ -79,5 +79,5 @@
79
79
  "publishConfig": {
80
80
  "access": "public"
81
81
  },
82
- "gitHead": "eecbdf92e08f924d4529152ce24d81a0dfc9e930"
82
+ "gitHead": "5af5b2c0ad33d05ad19d8433924d7899238e2277"
83
83
  }
@@ -3,6 +3,7 @@
3
3
  const React = require("react");
4
4
  const { ApolloProvider } = require("react-apollo");
5
5
  const { HelmetProvider } = require("react-helmet-async");
6
+ const { getSectionNameForAnalytics } = require("@times-components/utils/rnw");
6
7
  const { getSectionFromTiles } = require("@times-components/utils/rnw");
7
8
  const { ArticleProvider } = require("@times-components/provider/rnw");
8
9
  const { DraftArticleProvider } = require("@times-components/provider/rnw");
@@ -78,9 +79,9 @@ module.exports = (client, analyticsStream, data, helmetContext) => {
78
79
  analyticsStream,
79
80
  article: {
80
81
  ...article,
81
- /* section: article
82
+ section: article
82
83
  ? getSectionNameForAnalytics(article)
83
- : "unknown section", */
84
+ : "unknown section",
84
85
  isPreview
85
86
  },
86
87
  error,