Socket
Socket
Sign inDemoInstall

hexo-generator-feed

Package Overview
Dependencies
Maintainers
1
Versions
27
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

hexo-generator-feed - npm Package Compare versions

Comparing version 1.0.2 to 1.0.3

14

lib/generator.js

@@ -22,5 +22,19 @@ var ejs = require('ejs');

var url;
// Sorry for that, it is hexo URL handling way.
if (config.root === '/'){
url = config.url + config.root;
}
else
{
url = config.url + '/';
}
// And sorry for that too.
url = url.replace(/([^:])\/\//g, '$1/');
var xml = template({
config: config,
url: url,
posts: posts,

@@ -27,0 +41,0 @@ feed_url: config.root + feedConfig.path

3

package.json
{
"name": "hexo-generator-feed",
"version": "1.0.2",
"version": "1.0.3",
"description": "Feed generator plugin for Hexo",

@@ -31,2 +31,3 @@ "main": "index",

"chai": "^1.9.1",
"cheerio": "^0.19.0",
"coveralls": "^2.11.2",

@@ -33,0 +34,0 @@ "gulp": "^3.8.9",

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