akashacms-blog-podcast
Advanced tools
Comparing version 0.7.1 to 0.7.2
16
index.js
@@ -41,3 +41,3 @@ /** | ||
config.addMahabhuta(module.exports.mahabhutaArray(options)); | ||
config.pluginData(pluginName).bloglist = []; | ||
options.bloglist = []; | ||
} | ||
@@ -54,3 +54,3 @@ | ||
isLegitLocalHref(config, href) { | ||
// console.log(`isLegitLocalHref ${util.inspect(config.pluginData(pluginName).bloglist)} === ${href}?`); | ||
// console.log(`isLegitLocalHref ${util.inspect(this.options.bloglist)} === ${href}?`); | ||
for (var blogkey in this.options.bloglist) { | ||
@@ -67,10 +67,2 @@ var blogcfg = this.options.bloglist[blogkey]; | ||
async onSiteRendered(config) { | ||
/* console.log(`blog-podcast onSiteRendered ${util.inspect(config.pluginData(pluginName).bloglist)}`); | ||
console.log(` Object.keys ${util.inspect(Object.keys(config.pluginData(pluginName).bloglist))}`); | ||
for (let key in config.pluginData(pluginName).bloglist) { | ||
console.log(`blog-podcast in ${key} hasOwnProperty ${config.pluginData(pluginName).bloglist.hasOwnProperty(key)}`); | ||
if (config.pluginData(pluginName).bloglist.hasOwnProperty(key)) { | ||
console.log(` OBJECT ${config.pluginData(pluginName).bloglist[key]}`); | ||
} | ||
} */ | ||
const tasks = []; | ||
@@ -155,3 +147,3 @@ for (var blogkey in this.options.bloglist) { | ||
ret.addMahafunc(new BlogNextPrevElement()); | ||
ret.addMahabhuta(new BlogNewsIndexElement()); | ||
ret.addMahafunc(new BlogNewsIndexElement()); | ||
return ret; | ||
@@ -258,3 +250,3 @@ }; | ||
var blogcfg = this.array.options.config.pluginData(pluginName).bloglist[blogtag]; | ||
var blogcfg = this.array.options.bloglist[blogtag]; | ||
if (!blogcfg) throw new Error('No blog configuration found for blogtag '+ blogtag); | ||
@@ -261,0 +253,0 @@ |
@@ -14,3 +14,3 @@ { | ||
}, | ||
"version": "0.7.1", | ||
"version": "0.7.2", | ||
"engines": { | ||
@@ -17,0 +17,0 @@ "node": ">=12.2" |
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
32209
339