docpad-plugin-cleanurls
Advanced tools
Comparing version 2.5.0 to 2.5.1
# The MIT License | ||
Copyright © 2012+ [Bevry Pty Ltd](http://bevry.me) | ||
<br/>Copyright © 2011 [Benjamin Lupton](http://balupton.com) | ||
Copyright © 2012+ [Bevry Pty Ltd](http://bevry.me) <us@bevry.me> | ||
<br/>Copyright © 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 @@ |
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
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
11417
+ Addedtaskgroup@3.2.4(transitive)
- Removedambi@2.0.0(transitive)
- Removedeventemitter2@0.4.14(transitive)
- Removedtaskgroup@3.1.2(transitive)
Updatedtaskgroup@~3.2.0