polyfill Promise with bluebird

fixes: Uncaught TypeError: Promise.defer is not a function - adds bluebird
This commit is contained in:
Brian Vanderbusch 2016-07-04 19:28:06 -05:00 committed by Ali Watters
parent dfa44b5fa2
commit ac29b24c23
2 changed files with 7 additions and 5 deletions

View file

@ -3,6 +3,7 @@ CommandError = require './command-error'
fs = require 'fs-plus' fs = require 'fs-plus'
VimOption = require './vim-option' VimOption = require './vim-option'
_ = require 'underscore-plus' _ = require 'underscore-plus'
Promise = require 'bluebird'
trySave = (func) -> trySave = (func) ->
deferred = Promise.defer() deferred = Promise.defer()

View file

@ -1,7 +1,7 @@
{ {
"name": "ex-mode", "name": "ex-mode",
"main": "./lib/ex-mode", "main": "./lib/ex-mode",
"version": "0.10.0", "version": "0.10.1",
"description": "Ex for Atom's vim-mode", "description": "Ex for Atom's vim-mode",
"activationCommands": { "activationCommands": {
"atom-workspace": "ex-mode:open" "atom-workspace": "ex-mode:open"
@ -12,11 +12,12 @@
"atom": ">=0.200.0 <2.0.0" "atom": ">=0.200.0 <2.0.0"
}, },
"dependencies": { "dependencies": {
"underscore-plus": "1.x",
"event-kit": "^0.7.2",
"space-pen": "^5.1.1",
"atom-space-pen-views": "^2.0.4", "atom-space-pen-views": "^2.0.4",
"fs-plus": "^2.2.8" "bluebird": "^3.4.1",
"event-kit": "^0.7.2",
"fs-plus": "^2.2.8",
"space-pen": "^5.1.1",
"underscore-plus": "1.x"
}, },
"consumedServices": { "consumedServices": {
"vim-mode": { "vim-mode": {