Skip to content

Commit

Permalink
Switching to bluebird promises
Browse files Browse the repository at this point in the history
  • Loading branch information
alexsomeoddpilot committed May 26, 2015
1 parent f781b49 commit 8d6a10b
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
4 changes: 2 additions & 2 deletions lib/consolidate.js
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@ var fs = require('fs')
, join = path.join
, resolve = path.resolve
, extname = path.extname
, q = require('q')
, Promise = require('bluebird')
, dirname = path.dirname;

var readCache = {};
Expand Down Expand Up @@ -136,7 +136,7 @@ function readPartials(path, options, fn) {
* promisify
*/
function promisify(fn, exec) {
return q.Promise(function (res, rej) {
return new Promise(function (res, rej) {
fn = fn || function (err, html) {
if (err) {
return rej(err);
Expand Down
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -55,6 +55,6 @@
"test": "mocha"
},
"dependencies": {
"q": "^1.4.1"
"bluebird": "^2.9.26"
}
}

0 comments on commit 8d6a10b

Please sign in to comment.