Skip to content

Commit

Permalink
Fix removal of q-deep
Browse files Browse the repository at this point in the history
  • Loading branch information
nknapp committed Apr 9, 2017
1 parent 98df7d2 commit 68adcb4
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 4 deletions.
9 changes: 6 additions & 3 deletions handlebars/preprocessor.js
Original file line number Diff line number Diff line change
@@ -1,7 +1,6 @@
var qfs = require('m-io/fs')
var path = require('path')
// var Q = require('q')
var deep = require('q-deep')
var deep = require('deep-aplus')(Promise)
var debug = require('debug')('thought:preprocessor')

/**
Expand Down Expand Up @@ -32,5 +31,9 @@ module.exports = function (data) {
return null
})

return deep(data).tap(debug)
return deep(data)
.then((result) => {
debug('preprocessed', result)
return result
})
}
3 changes: 2 additions & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -43,9 +43,10 @@
"cheerio": "^0.22.0",
"commander": "^2.9.0",
"customize": "^2.0.1",
"customize-engine-handlebars": "^2.0.0-alpha.3",
"customize-engine-handlebars": "^2.0.0",
"customize-write-files": "^1.1.0",
"debug": "^2.6.3",
"deep-aplus": "^1.0.4",
"find-package": "^1.0.0",
"glob": "^7.1.1",
"handlebars": "^4.0.6",
Expand Down

0 comments on commit 68adcb4

Please sign in to comment.