@factor/plugin-sitemap
Advanced tools
Comparing version 1.0.0-alpha.5 to 1.0.0-alpha.15
13
index.js
@@ -26,3 +26,7 @@ export default Factor => { | ||
async getPermalinks() { | ||
const results = await Factor.$db.run({ method: "find", conditions: {}, limit: 1000 }) | ||
const results = await Factor.$db.run({ | ||
method: "find", | ||
conditions: {}, | ||
limit: 1000 | ||
}) | ||
@@ -56,3 +60,2 @@ const urls = results.data | ||
// console.log("content routes", contentRoutes) | ||
return theRoutes.map(perm => `${Factor.$config.setting("url")}${perm}`) | ||
@@ -69,3 +72,7 @@ } | ||
const _p = | ||
parent && !_.path.startsWith("/") ? `${parent}/${_.path}` : parent && _.path == "/" ? parent : _.path | ||
parent && !_.path.startsWith("/") | ||
? `${parent}/${_.path}` | ||
: parent && _.path == "/" | ||
? parent | ||
: _.path | ||
@@ -72,0 +79,0 @@ out.push(_p) |
{ | ||
"name": "@factor/plugin-sitemap", | ||
"version": "1.0.0-alpha.5", | ||
"version": "1.0.0-alpha.15", | ||
"license": "GPL-2.0", | ||
@@ -16,3 +16,3 @@ "publishConfig": { | ||
}, | ||
"gitHead": "3537bf16da77a27d03c8a79cc61e09611c73ddfd" | ||
"gitHead": "e2c60fdf9e1f43f53615d1258dfd66203577a103" | ||
} |
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
21267
74