Skip to content

Commit

Permalink
deps: handlebars@4.3.5
Browse files Browse the repository at this point in the history
  • Loading branch information
dougwilson committed Oct 8, 2019
1 parent 8ae35b8 commit d2c5b63
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 11 deletions.
3 changes: 2 additions & 1 deletion HISTORY.md
Original file line number Diff line number Diff line change
@@ -1,7 +1,8 @@
unreleased
==========

deps: handlebars@4.3.4
deps: handlebars@4.3.5
- Fix error object inheritance
- Fix work-around for `constructor` blocking

4.0.5 / 2019-09-27
Expand Down
11 changes: 2 additions & 9 deletions lib/hbs.js
Original file line number Diff line number Diff line change
Expand Up @@ -150,15 +150,8 @@ function middleware(filename, options, cb) {

function prependFilenameToError (filename, err) {
// prepend to the message
err.message = filename + ': ' + err.message

// restore error message on stack (https://github.com/wycats/handlebars.js/issues/1562)
if (typeof err.stack === 'string' && err.stack.indexOf(err.name + '\n') === 0 && err.stack.indexOf(err.message) === -1) {
Object.defineProperty(err, 'stack', {
configurable: true,
value: err.name + ': ' + err.message,
writable: true
})
if (typeof err.message === 'string') {
err.message = filename + ': ' + err.message
}

return err
Expand Down
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@
"repository": "pillarjs/hbs",
"main": "lib/hbs.js",
"dependencies": {
"handlebars": "4.3.4",
"handlebars": "4.3.5",
"walk": "2.3.14"
},
"devDependencies": {
Expand Down

0 comments on commit d2c5b63

Please sign in to comment.