docpad-plugin-commentator
Advanced tools
Comparing version 2.0.5 to 2.0.6
@@ -165,3 +165,3 @@ // Generated by CoffeeScript 1.6.3 | ||
server.post(this.getConfig().postUrl, function(req, res, next) { | ||
var content, documentAttributes, key, meta, now, nowString, nowTime, outFile, outPath, safefs, val, _ref1; | ||
var content, documentAttributes, key, meta, now, nowString, nowTime, outFile, outPath, val, _ref1; | ||
now = new Date(); | ||
@@ -192,5 +192,5 @@ nowTime = now.getTime(); | ||
content = '---\r\n' + meta + '\r\n---\r\n' + documentAttributes.data; | ||
safefs = require('safefs'); | ||
safefs.writeFile(outFile, content, function(err2) { | ||
if (err2) { | ||
fs.writeFile(outFile, content, function(err) { | ||
if (err) { | ||
console.log(err); | ||
return next(err2); | ||
@@ -197,0 +197,0 @@ } |
{ | ||
"name": "docpad-plugin-commentator", | ||
"version": "2.0.5", | ||
"version": "2.0.6", | ||
"description": "Post commenting system for docpad. Uses ajax to post comments back to the server and save them as markdown. Allows nested comments - ie comments associated with other comments on the page and displayed directly underneath and indented.", | ||
@@ -5,0 +5,0 @@ "homepage": "", |
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
113132