Skip to content
This repository has been archived by the owner on Jan 6, 2022. It is now read-only.

Commit

Permalink
Drop nodejs 6 support (#18)
Browse files Browse the repository at this point in the history
* Drop nodejs 6 support
And update to coffeescript (no hyphen)
Also solve a security vulnerability related to handlebars

* drop object-assign
and fix require
  • Loading branch information
tomap committed Jun 13, 2019
1 parent fd3d62a commit d195969
Show file tree
Hide file tree
Showing 5 changed files with 1,953 additions and 1,541 deletions.
1 change: 0 additions & 1 deletion .travis.yml
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,6 @@ cache:
- node_modules

node_js:
- "6"
- "8"
- "10"
- "node"
Expand Down
5 changes: 2 additions & 3 deletions lib/renderer.js
Original file line number Diff line number Diff line change
@@ -1,10 +1,9 @@
'use strict';

var coffee = require('coffee-script');
var assign = require('object-assign');
var coffee = require('coffeescript');

function coffeeRenderer(data, options) {
return coffee.compile(data.text, assign({
return coffee.compile(data.text, Object.assign({
filename: data.path
}, this.config.coffee, options));
}
Expand Down

0 comments on commit d195969

Please sign in to comment.