-
+
+
-
- ${part.value.title}
-
+
+ ${part.value.title}
+
-
- ${part.channel_name}
-
-
- `);
+
+ ${part.signing_channel.name || "Anon"}
+
+
+ `);
} catch(err) {
console.error(err);
return; // TODO: Return nice error message
@@ -170,6 +171,10 @@ function generateContent(exampleNumber, displayTrendingContent) {
`);
displayTrendingContent(renderedContentCollection.join(""));
+ })
+ .catch(error => {
+ console.error(error);
+ return null;
});
});
}
@@ -199,8 +204,7 @@ function generateContent(exampleNumber, displayTrendingContent) {
if (
part &&
part.value &&
- part.value.thumbnail.url &&
- part.channel_name
+ part.value.thumbnail.url
) {
renderedContentCollection.push(`
@@ -217,7 +221,7 @@ function generateContent(exampleNumber, displayTrendingContent) {
- ${part.channel_name}
+ ${part.signing_channel.name || "Anon"}
`);
diff --git a/package.json b/package.json
index 796697e..f571c59 100755
--- a/package.json
+++ b/package.json
@@ -93,15 +93,15 @@
"private": true,
"scripts": {
"css": "sass --load-path=node_modules --update app/sass:app/dist --style compressed",
- "format": "eslint '**/*.js' --fix --ignore-pattern '/app/dist/'",
+ "format": "eslint . --fix --ignore-pattern '/app/dist/'",
"postinstall": "link-module-alias",
- "preinstall": "command -v link-module-alias; link-module-alias clean || true",
- "start": "npm i; npm run css; NODE_ENV=production node index.js",
+ "preinstall": "command -v link-module-alias;link-module-alias clean || true",
+ "start": "npm i;npm run css;NODE_ENV=production node index.js",
"test": "run-s test:*",
"test:dependencies": "updates --update ./ --exclude prismjs",
"test:lint": "standardx --verbose | snazzy",
"test:sass": "sass-lint --config ./node_modules/@inc/sasslint-config/config.json --verbose --no-exit",
- "watch": "npm run css; run-p watch:*",
+ "watch": "npm run css;run-p watch:*",
"watch:sass": "sass --load-path=node_modules --watch app/sass:app/dist --style compressed",
"watch:server": "NODE_ENV=development nodemon --ignore 'app/dist'"
},