From ac29b24c2322de93ec96825dad5c72a6f8722d7e Mon Sep 17 00:00:00 2001 From: Brian Vanderbusch Date: Mon, 4 Jul 2016 19:28:06 -0500 Subject: [PATCH] polyfill Promise with bluebird fixes: Uncaught TypeError: Promise.defer is not a function - adds bluebird --- lib/ex.coffee | 1 + package.json | 11 ++++++----- 2 files changed, 7 insertions(+), 5 deletions(-) diff --git a/lib/ex.coffee b/lib/ex.coffee index c91beb7..6aa4539 100644 --- a/lib/ex.coffee +++ b/lib/ex.coffee @@ -3,6 +3,7 @@ CommandError = require './command-error' fs = require 'fs-plus' VimOption = require './vim-option' _ = require 'underscore-plus' +Promise = require 'bluebird' trySave = (func) -> deferred = Promise.defer() diff --git a/package.json b/package.json index 05fa7bc..016216c 100644 --- a/package.json +++ b/package.json @@ -1,7 +1,7 @@ { "name": "ex-mode", "main": "./lib/ex-mode", - "version": "0.10.0", + "version": "0.10.1", "description": "Ex for Atom's vim-mode", "activationCommands": { "atom-workspace": "ex-mode:open" @@ -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": {