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

docpad-plugin-cleanurls

Package Overview
Dependencies
Maintainers
1
Versions
32
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

docpad-plugin-cleanurls - npm Package Compare versions

Comparing version 2.5.0 to 2.5.1

4

LICENSE.md
# The MIT License
Copyright © 2012+ [Bevry Pty Ltd](http://bevry.me)
<br/>Copyright &copy; 2011 [Benjamin Lupton](http://balupton.com)
Copyright &copy; 2012+ [Bevry Pty Ltd](http://bevry.me) <us@bevry.me>
<br/>Copyright &copy; 2011 [Benjamin Lupton](http://balupton.com) <b@lupton.cc>

@@ -6,0 +6,0 @@ Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the 'Software'), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions:

@@ -47,7 +47,7 @@ // Generated by CoffeeScript 1.6.3

CleanUrlsPlugin.prototype.renderBefore = function(opts) {
var database, docpad;
var collection, docpad;
docpad = this.docpad;
database = docpad.getCollection('html');
collection = docpad.getCollection('html');
docpad.log('debug', 'Applying clean urls');
database.forEach(this.cleanUrlsForDocument);
collection.forEach(this.cleanUrlsForDocument);
docpad.log('debug', 'Applied clean urls');

@@ -58,7 +58,7 @@ return this;

CleanUrlsPlugin.prototype.writeAfter = function(opts, next) {
var TaskGroup, addWriteTask, config, database, docpad, docpadConfig, getCleanOutPathFromUrl, pathUtil, safefs, tasks;
var TaskGroup, addWriteTask, collection, config, docpad, docpadConfig, getCleanOutPathFromUrl, pathUtil, safefs, tasks;
config = this.config;
docpad = this.docpad;
docpadConfig = docpad.getConfig();
database = docpad.getCollection('html');
collection = docpad.getCollection('html');
TaskGroup = require('taskgroup').TaskGroup;

@@ -88,3 +88,3 @@ safefs = require('safefs');

};
database.forEach(function(document) {
collection.forEach(function(document) {
var encoding, primaryOutPath, primaryUrl, primaryUrlOutPath, redirectContent, redirectOutPath, redirectOutPaths, url, urls, _i, _j, _len, _len1, _results;

@@ -91,0 +91,0 @@ if (document.get('write') === false || document.get('ignore') === true || document.get('render') === false) {

{
"name": "docpad-plugin-cleanurls",
"version": "2.5.0",
"version": "2.5.1",
"description": "Adds support for clean urls to DocPad",

@@ -33,3 +33,3 @@ "homepage": "http://docpad.org/plugin/cleanurls",

"safefs": "~3.0.1",
"taskgroup": "~3.1.1"
"taskgroup": "~3.2.0"
},

@@ -39,4 +39,4 @@ "devDependencies": {

"docpad": ">=6.37 <7",
"chai": "~1.6.0",
"request": "~2.21.0"
"chai": "~1.7.1",
"request": "~2.27.0"
},

@@ -43,0 +43,0 @@ "main": "./out/cleanurls.plugin.js",

@@ -14,3 +14,3 @@ # Clean URLs Plugin for [DocPad](https://docpad.org)

```
npm install --save docpad-plugin-cleanurls
docpad install cleanurls
```

@@ -17,0 +17,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