Skip to content

Commit

Permalink
Update deps. Fix linting issue
Browse files Browse the repository at this point in the history
  • Loading branch information
abramenal committed Oct 20, 2019
1 parent cf4d554 commit 54f7932
Show file tree
Hide file tree
Showing 3 changed files with 9 additions and 9 deletions.
2 changes: 1 addition & 1 deletion .lintstagedrc
@@ -1,3 +1,3 @@
{
"index.js": ["prettier --write", "npm run lint -- --fix", "git add"],
"*.js": ["prettier --write", "eslint --fix", "git add"],
}
14 changes: 7 additions & 7 deletions package.json
Expand Up @@ -8,7 +8,7 @@
},
"scripts": {
"build": "microbundle build -i index.js -f cjs",
"lint": "eslint index.js",
"lint": "eslint index.js src",
"test": "echo \"Error: no test specified\" && exit 1"
},
"repository": {
Expand All @@ -31,15 +31,15 @@
},
"homepage": "https://github.com/abramenal/cypress-file-upload#readme",
"devDependencies": {
"eslint": "^5.15.2",
"eslint-config-airbnb-base": "^13.1.0",
"eslint": "^6.5.0",
"eslint-config-airbnb-base": "^14.0.0",
"eslint-config-prettier": "^6.0.0",
"eslint-plugin-import": "^2.15.0",
"eslint-plugin-prettier": "^3.0.1",
"husky": "^1.3.1",
"lint-staged": "^8.1.5",
"eslint-plugin-prettier": "^3.0.0",
"husky": "^3.0.0",
"lint-staged": "^9.4.0",
"microbundle": "^0.11.0",
"prettier": "^1.16.1"
"prettier": "^1.16.0"
},
"peerDependencies": {
"cypress": "^3.0.0"
Expand Down
2 changes: 1 addition & 1 deletion src/helpers/getFileBlobAsync.js
Expand Up @@ -6,7 +6,7 @@ export default ({ fileContent, mimeType, encoding }) => {
[ENCODING.UTF8]: () => Promise.resolve(fileContent),
[ENCODING.UTF_8]: () => Promise.resolve(fileContent),
[ENCODING.BASE64]: () => Cypress.Blob.base64StringToBlob(fileContent, mimeType),
'default': () => Cypress.Blob.base64StringToBlob(fileContent, mimeType),
default: () => Cypress.Blob.base64StringToBlob(fileContent, mimeType),
};

return (encodingToAsyncGetterMap[encoding] || encodingToAsyncGetterMap.default)();
Expand Down

0 comments on commit 54f7932

Please sign in to comment.