hexo-generator-better-sitemap
Advanced tools
Comparing version 1.0.0-rc.5 to 1.0.0
@@ -1,5 +0,4 @@ | ||
const Promise = require('bluebird'); | ||
const fs = Promise.promisifyAll(require('fs')); | ||
const fs = require('fs/promises'); | ||
const getPostUpdated = ({ updated }) => updated.toDate(); | ||
const getPostUpdated = ({ updated, date }) => updated?.toDate() ?? date?.toDate() ?? 0; | ||
@@ -14,3 +13,3 @@ const common = { | ||
getFileContent(filePath) { | ||
return fs.readFileAsync(filePath, { encoding: 'utf8' }); | ||
return fs.readFile(filePath, { encoding: 'utf-8' }); | ||
}, | ||
@@ -17,0 +16,0 @@ getIndexSitemapFilename({ sitemap, root }) { |
@@ -1,3 +0,1 @@ | ||
const Promise = require('bluebird'); | ||
const seoFriendlySitemap = function (locals) { | ||
@@ -4,0 +2,0 @@ const { config } = this; |
const path = require('path'); | ||
const Promise = require('bluebird'); | ||
const ejs = require('ejs'); | ||
const beautify = require('pretty-data').pd; | ||
const common = require('./common'); | ||
@@ -22,6 +20,2 @@ const url = require('url'); | ||
if (config.sitemap.beautify) { | ||
xml = beautify.xml(xml); | ||
} | ||
return { | ||
@@ -28,0 +22,0 @@ path: filename, |
{ | ||
"name": "hexo-generator-better-sitemap", | ||
"description": "SEO-friendly sitemap generator plugin for Hexo", | ||
"version": "1.0.0-rc.5", | ||
"version": "1.0.0", | ||
"author": { | ||
@@ -14,10 +14,8 @@ "name": "SukkaW", | ||
"dependencies": { | ||
"bluebird": "^3.7.1", | ||
"ejs": "^2.7.3", | ||
"ejs": "^3.1.6", | ||
"moment": "^2.24.0", | ||
"pretty-data": "^0.40.0", | ||
"url-join": "^4.0.1" | ||
}, | ||
"engines": { | ||
"node": ">=10" | ||
"node": ">=12" | ||
}, | ||
@@ -24,0 +22,0 @@ "files": [ |
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
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
Filesystem access
Supply chain riskAccesses the file system, and could potentially read sensitive data.
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
Native code
Supply chain riskContains native code (e.g., compiled binaries or shared libraries). Including native code can obscure malicious behavior.
Found 1 instance in 1 package
Filesystem access
Supply chain riskAccesses the file system, and could potentially read sensitive data.
Found 1 instance in 1 package
No v1
QualityPackage is not semver >=1. This means it is not stable and does not support ^ ranges.
Found 1 instance in 1 package
3
0
0
23417
22
257
+ Addedansi-styles@4.3.0(transitive)
+ Addedasync@3.2.6(transitive)
+ Addedbalanced-match@1.0.2(transitive)
+ Addedbrace-expansion@1.1.112.0.1(transitive)
+ Addedchalk@4.1.2(transitive)
+ Addedcolor-convert@2.0.1(transitive)
+ Addedcolor-name@1.1.4(transitive)
+ Addedconcat-map@0.0.1(transitive)
+ Addedejs@3.1.10(transitive)
+ Addedfilelist@1.0.4(transitive)
+ Addedhas-flag@4.0.0(transitive)
+ Addedjake@10.9.2(transitive)
+ Addedminimatch@3.1.25.1.6(transitive)
+ Addedsupports-color@7.2.0(transitive)
- Removedbluebird@^3.7.1
- Removedpretty-data@^0.40.0
- Removedbluebird@3.7.2(transitive)
- Removedejs@2.7.4(transitive)
- Removedpretty-data@0.40.0(transitive)
Updatedejs@^3.1.6