sfc-utils 1.3.36 → 1.3.39

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 (2) hide show
  1. package/package.json +1 -1
  2. package/settings.js +6 -2
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "sfc-utils",
3
- "version": "1.3.36",
3
+ "version": "1.3.39",
4
4
  "author": "ewagstaff <evanjwagstaff@gmail.com>",
5
5
  "dependencies": {
6
6
  "archieml": "^0.4.2",
package/settings.js CHANGED
@@ -31,8 +31,8 @@ let getSettings = function(){
31
31
  if (storySettings.Byline) {
32
32
  authorNames = storySettings.Byline.split(',')
33
33
  }
34
- if (storySettings.Byline_Links) {
35
- authorLinks = storySettings.Byline_Links.split(',')
34
+ if (storySettings.Byline_Link) {
35
+ authorLinks = storySettings.Byline_Link.split(',')
36
36
  }
37
37
  for (let i in authorNames){
38
38
  fullAuthors.push({
@@ -52,6 +52,10 @@ let getSettings = function(){
52
52
  // Evan: This hack has my approval
53
53
  }
54
54
  }
55
+ // Empty array is triggering truthy test, so let's nullify
56
+ if (fullAuthors.length === 0){
57
+ fullAuthors = null
58
+ }
55
59
  // Populate with sheet settings
56
60
  settings = {
57
61
  "PAYWALL_SETTING": storySettings.Paywall,