sfc-utils 1.4.175 → 1.4.176

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.
Files changed (3) hide show
  1. package/index.js +1 -6
  2. package/package.json +1 -1
  3. package/settings.js +15 -15
package/index.js CHANGED
@@ -38,12 +38,7 @@ let blendHDN = function (meta) {
38
38
  if (MARKET_KEY === "CT") {
39
39
  BASE_DOMAIN = "ctinsider.com";
40
40
  }
41
- let siteDomain;
42
- if (CANONICAL_URL) {
43
- siteDomain = CANONICAL_URL.match("^(.+?).com")[0];
44
- } else {
45
- siteDomain = MAIN_DOMAIN;
46
- }
41
+ const siteDomain = MAIN_DOMAIN;
47
42
  // Check if we need a slash
48
43
  let slash = OPT_SLASH;
49
44
 
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "sfc-utils",
3
- "version": "1.4.175",
3
+ "version": "1.4.176",
4
4
  "author": "ewagstaff <evanjwagstaff@gmail.com>",
5
5
  "dependencies": {
6
6
  "archieml": "^0.4.2",
package/settings.js CHANGED
@@ -71,31 +71,31 @@ let getSettings = function () {
71
71
  // Default newsletter based by market
72
72
  let defaultNewsletter, defaultNewsletterPromo, defaultNewsletterLegal;
73
73
  switch (storySettings.Market_Key) {
74
- case 'SFC':
75
- defaultNewsletter = 'SFC_TheMustRead';
74
+ case "SFC":
75
+ defaultNewsletter = "SFC_TheMustRead";
76
76
  defaultNewsletterPromo = `The Chronicle’s most popular stories and best reads of the moment.`;
77
77
  defaultNewsletterLegal = `By subscribing, you agree to our <a href="https://www.sfchronicle.com/terms_of_use/">Terms of Use</a> and acknowledge that your information will be used as described in our <a href="https://www.sfchronicle.com/privacy_policy/"> Privacy Notice</a>.`;
78
- break
79
- case 'Houston':
80
- defaultNewsletter = 'HC_The713';
78
+ break;
79
+ case "Houston":
80
+ defaultNewsletter = "HC_The713";
81
81
  defaultNewsletterPromo = `A morning newsletter that keeps you connected to Houston in 5 minutes or less.`;
82
82
  defaultNewsletterLegal = `By subscribing, you agree to our <a href="https://www.houstonchronicle.com/terms_of_use/">Terms of Use</a> and acknowledge that your information will be used as described in our <a href="https://www.houstonchronicle.com/privacy_policy/"> Privacy Notice</a>.`;
83
- break
84
- case 'SanAntonio':
85
- defaultNewsletter = 'SAEN_OnOurRadar';
83
+ break;
84
+ case "SanAntonio":
85
+ defaultNewsletter = "SAEN_OnOurRadar";
86
86
  defaultNewsletterPromo = `Get the mid-morning scoop on developing news in San Antonio.`;
87
87
  defaultNewsletterLegal = `By subscribing, you agree to our <a href="https://www.expressnews.com/terms_of_use/">Terms of Use</a> and acknowledge that your information will be used as described in our <a href="https://www.expressnews.com/privacy_policy/"> Privacy Notice</a>.`;
88
- break
89
- case 'Albany':
90
- defaultNewsletter = 'ALB_SundayRead';
88
+ break;
89
+ case "Albany":
90
+ defaultNewsletter = "ALB_SundayRead";
91
91
  defaultNewsletterPromo = `Answering the week’s biggest questions and delivering them to your inbox.`;
92
92
  defaultNewsletterLegal = `By subscribing, you agree to our <a href="https://www.timesunion.com/termsofservice/">Terms of Use</a> and acknowledge that your information will be used as described in our <a href="https://www.timesunion.com/privacypolicy/"> Privacy Notice</a>.`;
93
- break
94
- case 'CT':
95
- defaultNewsletter = 'ct_ins_morning_briefing';
93
+ break;
94
+ case "CT":
95
+ defaultNewsletter = "ct_ins_morning_briefing";
96
96
  defaultNewsletterPromo = `Stay connected to Connecticut’s stories with a daily digest of top headlines.`;
97
97
  defaultNewsletterLegal = `By subscribing, you agree to our <a href="https://www.ctinsider.com/tos/">Terms of Use</a> and acknowledge that your information will be used as described in our <a href="https://www.ctinsider.com/privacy/"> Privacy Notice</a>.`;
98
- break
98
+ break;
99
99
  }
100
100
 
101
101
  // Populate with sheet settings