polyfill Promise with bluebird

This commit is contained in:
Brian Vanderbusch 2016-07-04 19:28:06 -05:00
parent 2a5fe2c382
commit b317f3f900
2 changed files with 7 additions and 5 deletions

View file

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

View file

@ -12,11 +12,12 @@
"atom": ">=0.200.0 <2.0.0"
},
"dependencies": {
"underscore-plus": "1.x",
"event-kit": "^0.7.2",
"space-pen": "^5.1.1",
"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": {
"vim-mode": {