From ec46759db2182efac8893b680f8d1125c1a10250 Mon Sep 17 00:00:00 2001 From: Assaf Arkin Date: Sun, 29 Apr 2018 13:37:26 -0700 Subject: [PATCH] Updated mime dependency --- package.json | 8 ++++---- src/dom/forms.js | 2 +- src/index.js | 2 +- 3 files changed, 6 insertions(+), 6 deletions(-) diff --git a/package.json b/package.json index 46f0ec169..f827c8186 100644 --- a/package.json +++ b/package.json @@ -42,21 +42,21 @@ "postpublish": "git push" }, "dependencies": { - "babel-runtime": "^6.26.0", - "bluebird": "^3.0", + "babel-runtime": "6.26.0", + "bluebird": "^3.5.1", "debug": "^3.1.0", "eventsource": "^1.0.5", "iconv-lite": "^0.4.21", "jsdom": "11.5.1", "lodash": "^4.17.10", - "mime": "^1.6.0", + "mime": "^2.3.1", "ms": "^2.1.1", "request": "^2.85.0", "tough-cookie": "^2.3.4", "ws": "^5.1.1" }, "devDependencies": { - "babel-cli": "6.23.0", + "babel-cli": "^6.23.0", "babel-eslint": "^8.2.3", "babel-plugin-transform-runtime": "^6.23.0", "babel-preset-env": "^1.6.1", diff --git a/src/dom/forms.js b/src/dom/forms.js index fe07724dc..3108a85e8 100644 --- a/src/dom/forms.js +++ b/src/dom/forms.js @@ -13,7 +13,7 @@ class File { constructor(filename) { this.filename = filename; - this.mime = Mime.lookup(filename); + this.mime = Mime.getType(filename); } read() { diff --git a/src/index.js b/src/index.js index d493d0a28..0cd7c4a92 100644 --- a/src/index.js +++ b/src/index.js @@ -896,7 +896,7 @@ class Browser extends EventEmitter { const stat = File.statSync(filename); const file = new (this.window.File)(); file.name = Path.basename(filename); - file.type = Mime.lookup(filename); + file.type = Mime.getType(filename); file.size = stat.size; Object.defineProperty(field, 'value', {value: filename});