Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

hexo-generator-better-sitemap

Package Overview
Dependencies
Maintainers
1
Versions
20
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

hexo-generator-better-sitemap - npm Package Compare versions

Comparing version 1.0.0-rc.5 to 1.0.0

7

lib/common.js

@@ -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

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc