New Case Study:See how Anthropic automated 95% of dependency reviews with Socket.Learn More
Socket
Sign inDemoInstall
Socket

grunt-pages

Package Overview
Dependencies
Maintainers
1
Versions
31
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

grunt-pages - npm Package Compare versions

Comparing version 0.5.0 to 0.6.0

2

package.json
{
"name": "grunt-pages",
"version": "0.5.0",
"version": "0.6.0",
"description": "Grunt task to create pages using markdown and templates",

@@ -5,0 +5,0 @@ "main": "Gruntfile.js",

@@ -341,2 +341,8 @@ # grunt-pages

**0.5.0** - Updated default post url regex to capture more cases thanks to [@justinhelmer](https://github.com/justinhelmer). Fixed bugs regarding normalizing the post dest and ignoring draft posts thanks to [@justinhelmer](https://github.com/justinhelmer).
**Breaking changes:**
- Post urls will potentially be altered because of the new regex. To update, you will have to provide redirects to altered post urls if you need to maintain them i.e. social media share buttons.
**0.4.1** - `.html` excluded from post url :variable replacement.

@@ -343,0 +349,0 @@

@@ -53,2 +53,3 @@ /*

// Get the content and metadata of unmodified posts so that they don't have to be parsed
// if they haven't been modified
var unmodifiedPosts = [];

@@ -94,5 +95,6 @@ var cacheFile = path.normalize(__dirname + '/../.' + this.target + '-post-cache.json');

}
var post = lib.parsePostData(postpath);
// Save source path for caching and error logging in getPostDest
// Save source path for caching as well as error logging in getPostDest
post.sourcePath = postpath;

@@ -182,2 +184,3 @@

// Check if the post was last modified when the cached version was last modifie
if (('' + fs.statSync(post.sourcePath).mtime) === ('' + new Date(post.lastModified))) {

@@ -234,3 +237,3 @@

// Remove the source path from the post as it is only used for error logging in getPostDest
// Remove the source path from the post as it is only used for caching and error logging in getPostDest
delete post.sourcePath;

@@ -241,6 +244,5 @@ });

lib.generatePosts(templateData);
var message = '';
if (grunt.option('bench')) {
message = '\nPosts'.blue + ' took ' + (new Date().getTime() - postStart) / 1000 + ' seconds.\n';
console.log(message);
console.log('\nPosts'.blue + ' took ' + (new Date().getTime() - postStart) / 1000 + ' seconds.\n');
}

@@ -262,5 +264,5 @@

}
if (grunt.option('bench')) {
message = '\nPages'.magenta + ' took ' + (new Date().getTime() - pageStart) / 1000 + ' seconds.\n';
console.log(message);
console.log('\nPages'.magenta + ' took ' + (new Date().getTime() - pageStart) / 1000 + ' seconds.\n');
}

@@ -275,4 +277,3 @@

if (grunt.option('bench')) {
message = 'Task'.yellow + ' took ' + (new Date().getTime() - start) / 1000 + ' seconds.';
console.log(message);
console.log('Task'.yellow + ' took ' + (new Date().getTime() - start) / 1000 + ' seconds.');
}

@@ -500,3 +501,3 @@ done();

id: page.id,
url: path.dirname(page.dest).slice(_this.data.dest.length) + '/'
url: path.dirname(page.dest).slice(_this.data.dest.length + 1) + '/'
};

@@ -503,0 +504,0 @@ });

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