Skip to content
This repository has been archived by the owner on Dec 16, 2023. It is now read-only.

Commit

Permalink
Updated mime dependency
Browse files Browse the repository at this point in the history
  • Loading branch information
assaf committed Apr 29, 2018
1 parent 837257a commit ec46759
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 6 deletions.
8 changes: 4 additions & 4 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -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",
Expand Down
2 changes: 1 addition & 1 deletion src/dom/forms.js
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ class File {

constructor(filename) {
this.filename = filename;
this.mime = Mime.lookup(filename);
this.mime = Mime.getType(filename);
}

read() {
Expand Down
2 changes: 1 addition & 1 deletion src/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -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});
Expand Down

0 comments on commit ec46759

Please sign in to comment.