Skip to content

Commit

Permalink
chore(deps): update dependency tsbb to v3
Browse files Browse the repository at this point in the history
  • Loading branch information
jaywcjlove committed Sep 30, 2021
1 parent 7658ca7 commit f285247
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 8 deletions.
10 changes: 3 additions & 7 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -6,11 +6,8 @@
"scripts": {
"prepare": "npm run build",
"start": "node lib/index.js",
"watch": "npm run watch:ts & npm run build:types -- --watch",
"watch:ts": "tsbb watch",
"build": "npm run build:ts && npm run build:types",
"build:ts": "tsbb build",
"build:types": "tsbb types",
"watch": "tsbb watch --disable-babel",
"build": "tsbb build --disable-babel",
"test": "tsbb test",
"coverage": "tsbb test --coverage"
},
Expand All @@ -37,7 +34,6 @@
"@babel/runtime": "7.11.2"
},
"devDependencies": {
"@types/jest": "26.0.10",
"tsbb": "1.7.6"
"tsbb": "3.3.7"
}
}
2 changes: 1 addition & 1 deletion src/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@ export type ExtType = '.png'
| '.ico'
| '.svg';

export default (file: string) => {
export default function image2uri(file: string) {
const image = fs.readFileSync(file)
const ext = path.extname(file) as ExtType;
const contentType = extTypeMap[ext] || 'image/jpeg'
Expand Down

0 comments on commit f285247

Please sign in to comment.