sfc-utils 1.4.199 → 1.4.201

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/brands3.js CHANGED
@@ -236,11 +236,10 @@ let getBrands3 = function (market) {
236
236
  siteName: "Dallas Morning News",
237
237
  twitter: "dallasnews",
238
238
  invert: true,
239
- // We're faking all this stuff below until Dallas is actually in WCM
240
239
  gaAccount: "UA-1616916-99",
241
- subscribeLink: "https://join.dallasnews.com/",
242
- sailCustomer: "",
243
- sailSiteName: "",
240
+ subscribeLink: "https://subscription.dallasnews.com/",
241
+ sailCustomer: "54a7348a6246e8483fe32f4979403990",
242
+ sailSiteName: "dallasnews",
244
243
  siteId: 101,
245
244
  siteCode: "dallasnews",
246
245
  },
@@ -266,7 +265,7 @@ let getBrands3 = function (market) {
266
265
  styles: Object.assign(defaultObj.styles, marketObj[market].styles),
267
266
  attributes: Object.assign(
268
267
  defaultObj.attributes,
269
- marketObj[market].attributes
268
+ marketObj[market].attributes,
270
269
  ),
271
270
  };
272
271
  return combinedStyles;
@@ -23,7 +23,7 @@ function appendLayoutScripts(
23
23
  marketKey,
24
24
  category,
25
25
  enableBC,
26
- slug
26
+ slug,
27
27
  ) {
28
28
  const isApp = appCheck();
29
29
 
@@ -63,6 +63,10 @@ function appendLayoutScripts(
63
63
  const fullURL = window.location.href;
64
64
  const shortDomain = domain.replace("https://www.", "");
65
65
  const script = document.createElement("script");
66
+ // Dallas is a special flower
67
+ if (shortDomain === "dallasnews.com") {
68
+ shortDomain = "dallasmorningnews.com";
69
+ }
66
70
  // Try to get the htlbid URL to see if it's enabled
67
71
  script.type = "text/javascript";
68
72
  script.src = `https://htlbid.com/v3/${shortDomain}/hnpbid.js`;
@@ -82,7 +86,7 @@ function appendLayoutScripts(
82
86
  window.hnpbid.cmd.push(() => {
83
87
  window.hnpbid.setTargeting(
84
88
  "is_testing",
85
- currentEnv === "production" ? "no" : "yes"
89
+ currentEnv === "production" ? "no" : "yes",
86
90
  ); // Set to "no" for production
87
91
  window.hnpbid.setTargeting("is_home", "no"); // Set to "yes" on the homepage
88
92
  window.hnpbid.setTargeting("post_id", `${fullURL}`);
@@ -182,7 +186,7 @@ function trackEvent(
182
186
  eventType,
183
187
  elementName = null,
184
188
  elementContent = null,
185
- elementText = null
189
+ elementText = null,
186
190
  ) {
187
191
  // all of these variables are used regardless of if it's an embed
188
192
  const storySettings = getSettings();
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "sfc-utils",
3
- "version": "1.4.199",
3
+ "version": "1.4.201",
4
4
  "author": "ewagstaff <evanjwagstaff@gmail.com>",
5
5
  "dependencies": {
6
6
  "archieml": "^0.4.2",