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.0.2 to 2.1.0

2

out/cleanurls.plugin.js

@@ -21,3 +21,3 @@ // Generated by CoffeeScript 1.3.3

docpad = this.docpad;
database = docpad.getDatabase();
database = docpad.getCollection('html');
docpad.log('debug', 'Applying clean urls');

@@ -24,0 +24,0 @@ database.on('add change', function(document) {

@@ -24,7 +24,9 @@ // Generated by CoffeeScript 1.3.3

return this.suite('cleanurls', function(suite, test) {
var baseUrl, outExpectedPath;
var baseUrl, filePath, fileUrl, outExpectedPath;
baseUrl = "http://localhost:" + tester.docpad.config.port;
outExpectedPath = tester.config.outExpectedPath;
fileUrl = "" + baseUrl + "/welcome";
filePath = "" + outExpectedPath + "/welcome.html";
return test('server should serve URLs without an extension', function(done) {
return request("" + baseUrl + "/welcome.html", function(err, response, actual) {
return request(fileUrl, function(err, response, actual) {
var actualStr;

@@ -35,3 +37,3 @@ if (err) {

actualStr = actual.toString();
return fsUtil.readFile("" + outExpectedPath + "/welcome.html", function(err, expected) {
return fsUtil.readFile(filePath, function(err, expected) {
var expectedStr;

@@ -42,3 +44,3 @@ if (err) {

expectedStr = expected.toString();
expect(actualStr, expectedStr);
expect(actualStr).to.equal(expectedStr);
return done();

@@ -45,0 +47,0 @@ });

{
"name": "docpad-plugin-cleanurls",
"version": "2.0.2",
"description": "Adds support for Clean Urls to DocPad",
"version": "2.1.0",
"description": "Adds support for clean urls to DocPad",
"homepage": "https://github.com/bevry/docpad-extras",

@@ -28,3 +28,3 @@ "keywords": [

"node": ">=0.4.0",
"docpad": "6.x"
"docpad": ">=6.1.1 <7.0.0"
},

@@ -31,0 +31,0 @@ "dependencies": {},

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