Skip to content

Commit

Permalink
Merge pull request #12 from gastonrobledo/master
Browse files Browse the repository at this point in the history
bump version, fix vulnerabilities and update readme
  • Loading branch information
gastonrobledo authored Jul 17, 2019
2 parents f30a995 + 8de909b commit 34f8fbb
Show file tree
Hide file tree
Showing 3 changed files with 7 additions and 7 deletions.
4 changes: 2 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ class HandlebarsStream extends Transform {
constructor(partials) {
super()
this.hbs = handlebars.create()
this.hbs = handlebars.create(this)
if (partials && partials.length) {
partials.forEach(p => this.hbs.registerPartial(p.name, p.content))
}
Expand All @@ -25,7 +25,7 @@ class HandlebarsStream extends Transform {
}
compile(content, data) {
this.result = this.hbs.compile(content)(data, { stream: this })
this.result = this.hbs.compile(content)(data)
return this
}
Expand Down
8 changes: 4 additions & 4 deletions package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "handlebars-stream-render",
"version": "1.1.5",
"version": "1.1.6",
"description": "Handlebars modification to work with stream outputs",
"keywords": [
"handlebars",
Expand Down

0 comments on commit 34f8fbb

Please sign in to comment.