@times-components/ssr 2.60.4-05b39b8d4c5d3a1e1994fe5f530b1fa942a3ab68.8 → 2.60.5-0c3ec102948dfcb77f297bdce09fbce3af969539.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/CHANGELOG.md +11 -0
- package/dist/article.react.bundle.js +4 -4
- package/dist/article.react.bundle.js.map +1 -1
- package/dist/author-profile.react.bundle.js +1 -1
- package/dist/author-profile.react.bundle.js.map +1 -1
- package/dist/common.react.bundle.js +5 -5
- package/package.json +3 -3
- package/src/lib/skimlinks-wrapping.js +7 -6
- package/src/lib/trackonomics-wrapping.js +6 -5
package/package.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@times-components/ssr",
|
|
3
3
|
"main": "src",
|
|
4
|
-
"version": "2.60.
|
|
4
|
+
"version": "2.60.5-0c3ec102948dfcb77f297bdce09fbce3af969539.9+0c3ec10294",
|
|
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,7 +52,7 @@
|
|
|
52
52
|
"webpack": "4.30.0"
|
|
53
53
|
},
|
|
54
54
|
"dependencies": {
|
|
55
|
-
"@times-components/article": "^7.17.
|
|
55
|
+
"@times-components/article": "^7.17.65",
|
|
56
56
|
"@times-components/author-profile": "^6.19.26",
|
|
57
57
|
"@times-components/context": "^1.24.0",
|
|
58
58
|
"@times-components/provider": "^1.41.5",
|
|
@@ -79,5 +79,5 @@
|
|
|
79
79
|
"publishConfig": {
|
|
80
80
|
"access": "public"
|
|
81
81
|
},
|
|
82
|
-
"gitHead": "
|
|
82
|
+
"gitHead": "0c3ec102948dfcb77f297bdce09fbce3af969539"
|
|
83
83
|
}
|
|
@@ -1,16 +1,16 @@
|
|
|
1
1
|
const { publisherId } = require("../constants/affiliate-links-validation");
|
|
2
|
-
const { skimlinksDomainSet } = require("../constants/skimlinks-domains");
|
|
2
|
+
/* const { skimlinksDomainSet } = require("../constants/skimlinks-domains"); */
|
|
3
3
|
|
|
4
|
-
const extractDomain = url => {
|
|
4
|
+
/* const extractDomain = url => {
|
|
5
5
|
try {
|
|
6
6
|
const { hostname } = new URL(url);
|
|
7
7
|
return hostname.replace(/^www\./, "");
|
|
8
8
|
} catch (error) {
|
|
9
9
|
return null;
|
|
10
10
|
}
|
|
11
|
-
};
|
|
11
|
+
}; */
|
|
12
12
|
|
|
13
|
-
const urlContainsDomain = url => {
|
|
13
|
+
/* const urlContainsDomain = url => {
|
|
14
14
|
const domain = extractDomain(url);
|
|
15
15
|
|
|
16
16
|
// Ensure skimlinksDomainSet is a Set and domain is valid
|
|
@@ -19,7 +19,7 @@ const urlContainsDomain = url => {
|
|
|
19
19
|
}
|
|
20
20
|
|
|
21
21
|
return false;
|
|
22
|
-
};
|
|
22
|
+
}; */
|
|
23
23
|
|
|
24
24
|
/**
|
|
25
25
|
*
|
|
@@ -36,6 +36,7 @@ const constructSkimlinksUrl = (merchantUrl, contentPageUrl) => {
|
|
|
36
36
|
};
|
|
37
37
|
|
|
38
38
|
const wrapSkimlinks = (url, contentPageUrl) =>
|
|
39
|
-
urlContainsDomain(url) ? constructSkimlinksUrl(url, contentPageUrl) : url;
|
|
39
|
+
/* urlContainsDomain(url) ? constructSkimlinksUrl(url, contentPageUrl) : url; */
|
|
40
|
+
constructSkimlinksUrl(url, contentPageUrl);
|
|
40
41
|
|
|
41
42
|
module.exports = { wrapSkimlinks };
|
|
@@ -1,10 +1,9 @@
|
|
|
1
1
|
const {
|
|
2
2
|
travelSiteCode,
|
|
3
|
-
theTimesSiteCode
|
|
4
|
-
trackonomicsRegex
|
|
3
|
+
theTimesSiteCode
|
|
5
4
|
} = require("../constants/affiliate-links-validation");
|
|
6
5
|
|
|
7
|
-
const isTrackonomicsUrl = url => trackonomicsRegex.test(url);
|
|
6
|
+
/* const isTrackonomicsUrl = url => trackonomicsRegex.test(url); */
|
|
8
7
|
|
|
9
8
|
const getSiteCode = contentPageUrl => {
|
|
10
9
|
const isTravelUrl =
|
|
@@ -25,8 +24,10 @@ const constructTrackonomicsUrl = (trackonomicsUrl, contentPageUrl) => {
|
|
|
25
24
|
};
|
|
26
25
|
|
|
27
26
|
const wrapTrackonomics = (skimlinksUrl, contentPageUrl) =>
|
|
28
|
-
isTrackonomicsUrl(skimlinksUrl)
|
|
27
|
+
/* isTrackonomicsUrl(skimlinksUrl)
|
|
29
28
|
? constructTrackonomicsUrl(skimlinksUrl, contentPageUrl)
|
|
30
|
-
: skimlinksUrl;
|
|
29
|
+
: skimlinksUrl; */
|
|
30
|
+
|
|
31
|
+
constructTrackonomicsUrl(skimlinksUrl, contentPageUrl);
|
|
31
32
|
|
|
32
33
|
module.exports = { wrapTrackonomics };
|