Skip to content

Commit

Permalink
[skip-ci] Published 1.8.4
Browse files Browse the repository at this point in the history
  • Loading branch information
gkr-bot committed Apr 15, 2023
1 parent 12367e2 commit df7a546
Show file tree
Hide file tree
Showing 2 changed files with 19 additions and 4 deletions.
21 changes: 18 additions & 3 deletions dist/blog-post-workflow.js
Original file line number Diff line number Diff line change
Expand Up @@ -9819,14 +9819,28 @@ ${tagToLookFor}END -->`
"(": "("
})[tag]
);
var categoriesToArray2 = (categories2) => {
const categoriesStr = [];
if (Array.isArray(categories2)) {
categories2.forEach((item2) => {
if (typeof item2 === "string") {
categoriesStr.push(item2);
} else if (typeof item2 === "object" && item2._) {
categoriesStr.push(item2._);
}
});
}
return categoriesStr;
};
module2.exports = {
updateAndParseCompoundParams: updateAndParseCompoundParams2,
commitReadme: commitReadme2,
truncateString: truncateString2,
buildReadme: buildReadme2,
exec: exec2,
getParameterisedTemplate: getParameterisedTemplate2,
escapeHTML: escapeHTML2
escapeHTML: escapeHTML2,
categoriesToArray: categoriesToArray2
};
}
});
Expand Down Expand Up @@ -9900,7 +9914,8 @@ var {
buildReadme,
exec,
getParameterisedTemplate,
escapeHTML
escapeHTML,
categoriesToArray
} = require_utils3();
var {
ignoreStackExchangeComments,
Expand Down Expand Up @@ -9987,7 +10002,7 @@ feedList.forEach((siteUrl) => {
Object.assign(customTags, { [tag]: item[tag] });
}
});
const categories = item.categories ? item.categories : [];
const categories = item.categories ? categoriesToArray(item.categories) : [];
let post = {
title: item.title.trim(),
url: item.link.trim(),
Expand Down
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "blog-post-workflow",
"version": "1.8.3",
"version": "1.8.4",
"description": "Allows you to show your latest blog posts on your github profile or project readme",
"main": "blog-post-workflow.js",
"scripts": {
Expand Down

0 comments on commit df7a546

Please sign in to comment.