From a48e5ac3ec48520f434c2195227e37753b2831a8 Mon Sep 17 00:00:00 2001 From: Evan Morikawa Date: Mon, 9 Feb 2015 10:29:58 -0800 Subject: [PATCH] fix(packages): upgrade package versions to fix io.js bug --- apm/package.json | 2 +- package.json | 9 ++++----- src/flux/stores/file-download-store.coffee | 4 ++-- 3 files changed, 7 insertions(+), 8 deletions(-) diff --git a/apm/package.json b/apm/package.json index b90f3a05e..c070e36c3 100644 --- a/apm/package.json +++ b/apm/package.json @@ -6,6 +6,6 @@ "url": "https://github.com/atom/atom.git" }, "dependencies": { - "atom-package-manager": "0.134.0" + "atom-package-manager": "0.135.0" } } diff --git a/package.json b/package.json index 75f6d554c..f74483236 100644 --- a/package.json +++ b/package.json @@ -43,13 +43,13 @@ "less-cache": "0.21", "marked": "^0.3", "mixto": "^1", - "mkdirp": "0.3.5", + "mkdirp": "^0.5", "nslog": "^2.0.0", "oniguruma": "^4.0.0", "optimist": "0.4.0", - "pathwatcher": "^3.1.0", + "pathwatcher": "^4.0", "property-accessors": "^1", - "bluebird": "^2.6.4", + "bluebird": "^2.9", "random-words": "0.0.1", "react-atom-fork": "^0.11.5", "reactionary-atom-fork": "^1.0.0", @@ -65,11 +65,10 @@ "space-pen": "3.8.2", "stacktrace-parser": "0.1.1", "temp": "0.7.0", - "text-buffer": "^4.0.0", + "text-buffer": "^4.0", "theorist": "^1.0.2", "underscore-plus": "^1.6.6", "vm-compatibility-layer": "0.1.0", - "text-buffer": "^3.0.1", "theorist": "^1", "vm-compatibility-layer": "0.1.0", "react": "^0.12.2", diff --git a/src/flux/stores/file-download-store.coffee b/src/flux/stores/file-download-store.coffee index dba6ef3c5..873e0f2d5 100644 --- a/src/flux/stores/file-download-store.coffee +++ b/src/flux/stores/file-download-store.coffee @@ -3,6 +3,7 @@ fs = require 'fs' ipc = require 'ipc' path = require 'path' shell = require 'shell' +mkdirp = require 'mkdirp' Reflux = require 'reflux' _ = require 'underscore-plus' Actions = require '../actions' @@ -63,8 +64,7 @@ FileDownloadStore = Reflux.createStore @_downloads = [] @_downloadDirectory = "#{atom.getConfigDirPath()}/downloads" - fs.exists @_downloadDirectory, (exists) => - fs.mkdir(@_downloadDirectory) unless exists + mkdirp(@_downloadDirectory) ######### PUBLIC #######################################################