@interware/content-generator 0.2.0 → 0.2.1

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.
@@ -3141,7 +3141,7 @@ const service = ({ strapi }) => {
3141
3141
  throw new Error(`Artículo con ID ${articleId} no encontrado.`);
3142
3142
  }
3143
3143
  const hashtags = article.keywords.map(
3144
- (k) => `#${k.trim().replace(/\s+/g, "").replace(/[^\w]/g, "")}`
3144
+ (keyword) => `#${keyword.name.trim().replace(/\s+/g, "").replace(/[^\w]/g, "")}`
3145
3145
  // limpia caracteres raros
3146
3146
  ).join(" ");
3147
3147
  const postBody = {
@@ -3251,7 +3251,7 @@ ${hashtags}`
3251
3251
  }
3252
3252
  const articleUrl = `https://interware.com.mx/blog/${article.slug}`;
3253
3253
  const hashtags = article.keywords.map(
3254
- (keyword) => `#${keyword.trim().replace(/\s+/g, "").replace(/[^\w]/g, "")}`
3254
+ (keyword) => `#${keyword.name.trim().replace(/\s+/g, "").replace(/[^\w]/g, "")}`
3255
3255
  // quita caracteres raros
3256
3256
  ).join(" ");
3257
3257
  const postBody = {
@@ -3140,7 +3140,7 @@ const service = ({ strapi }) => {
3140
3140
  throw new Error(`Artículo con ID ${articleId} no encontrado.`);
3141
3141
  }
3142
3142
  const hashtags = article.keywords.map(
3143
- (k) => `#${k.trim().replace(/\s+/g, "").replace(/[^\w]/g, "")}`
3143
+ (keyword) => `#${keyword.name.trim().replace(/\s+/g, "").replace(/[^\w]/g, "")}`
3144
3144
  // limpia caracteres raros
3145
3145
  ).join(" ");
3146
3146
  const postBody = {
@@ -3250,7 +3250,7 @@ ${hashtags}`
3250
3250
  }
3251
3251
  const articleUrl = `https://interware.com.mx/blog/${article.slug}`;
3252
3252
  const hashtags = article.keywords.map(
3253
- (keyword) => `#${keyword.trim().replace(/\s+/g, "").replace(/[^\w]/g, "")}`
3253
+ (keyword) => `#${keyword.name.trim().replace(/\s+/g, "").replace(/[^\w]/g, "")}`
3254
3254
  // quita caracteres raros
3255
3255
  ).join(" ");
3256
3256
  const postBody = {
package/package.json CHANGED
@@ -1,5 +1,5 @@
1
1
  {
2
- "version": "0.2.0",
2
+ "version": "0.2.1",
3
3
  "keywords": [],
4
4
  "type": "commonjs",
5
5
  "publishConfig": {