diff --git a/Commands/laravelConfig.js b/Commands/laravelConfig.js index a2e1bb8..0fdb72b 100644 --- a/Commands/laravelConfig.js +++ b/Commands/laravelConfig.js @@ -2,7 +2,6 @@ /* global app,appdir */ /* eslint global-require: 0 */ -var Promise = require('bluebird'); var shelljs = require('shelljs'); var utils = require('../lib/utilsCmd'); var fs = require('fs-promise'); diff --git a/lib/Mail.js b/lib/Mail.js index 6e6211b..4286ba5 100644 --- a/lib/Mail.js +++ b/lib/Mail.js @@ -2,7 +2,6 @@ /* global appdir,app */ // var console = app.logger(config('core.log.prefix') + ':mail'); -var Promise = require('bluebird'); var ect = require('ect'); var defaults = require('lodash/defaults'); var nodemailer = require('nodemailer'); diff --git a/lib/db-models/lib/Model-export.js b/lib/db-models/lib/Model-export.js index 72340dc..b021416 100644 --- a/lib/db-models/lib/Model-export.js +++ b/lib/db-models/lib/Model-export.js @@ -1,7 +1,6 @@ 'use strict'; /* global app */ /* eslint new-cap: 0*/ -var Promise = require('bluebird'); var console = app.logger(app.config('core.log.prefix') + ':model-export'); var _ = require('lodash'); _.mixin(require('lodash-inflection')); diff --git a/package-lock.json b/package-lock.json index d2da82d..4036078 100644 --- a/package-lock.json +++ b/package-lock.json @@ -1,6 +1,6 @@ { "name": "laravel-queue", - "version": "1.1.5", + "version": "1.1.7", "lockfileVersion": 1, "requires": true, "dependencies": { diff --git a/package.json b/package.json index c158a89..dd42612 100644 --- a/package.json +++ b/package.json @@ -30,7 +30,6 @@ "license": "MIT", "dependencies": { "bee-queue": "^0.3.0", - "bluebird": "~3.5.3", "colors": "~1.3.3", "debug-logger": "^0.4.1", "diff": "~3.5.0", diff --git a/test/Commands/testLaravelConfig.js b/test/Commands/testLaravelConfig.js index 8ac75ab..7036a2d 100644 --- a/test/Commands/testLaravelConfig.js +++ b/test/Commands/testLaravelConfig.js @@ -6,7 +6,6 @@ var rewire = require('rewire'); var each = require('lodash/each'); var intercept = require('intercept-stdout'); -var promise = require('bluebird'); var BddStdin = require('../utils/bdd-stdin'); var shell = require('../../lib/shell'); var fs = require('fs-promise'); @@ -41,10 +40,10 @@ module.exports = { process.argv = ['node', appdir + '/artisan', 'laravel:config']; var fsMock = { writeFile: function writeFile() { - return promise.reject(new Error('file not writable')); + return Promise.reject(new Error('file not writable')); }, mkdir: function mkdir() { - return promise.resolve(); + return Promise.resolve(); } }; laravelConfig.__set__({ @@ -91,7 +90,7 @@ module.exports = { var fsMock = clone(fs); fsMock.writeFile = function writeFile(file, content) { if ((/Config\/app\.js$/).test(file)) { - return promise.reject(new Error('file not writable')); + return Promise.reject(new Error('file not writable')); } return fs.writeFile(file, content); };