Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
add filename with relative path to syntax errors for modules and atta…
…chments. version bump.
- Loading branch information
Showing
4 changed files
with
16 additions
and
12 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,14 +1,14 @@ | ||
(function() { | ||
|
||
module.exports = { | ||
after: "attachments", | ||
run: function(root, path, settings, doc, callback) { | ||
var k; | ||
for (k in doc._attachments || {}) { | ||
if (/\.coffee$/.test(k)) delete doc._attachments[k]; | ||
if (/\.coffee$/.test(k)) { | ||
delete doc._attachments[k]; | ||
} | ||
} | ||
return callback(null, doc); | ||
} | ||
}; | ||
|
||
}).call(this); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters