Skip to content

Commit

Permalink
chore: use constructor shortcut
Browse files Browse the repository at this point in the history
  • Loading branch information
broofa committed Sep 14, 2023
1 parent 696042d commit 795ffa2
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 2 deletions.
2 changes: 2 additions & 0 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,8 @@
"exports": {
".": "./dist/src/index.js",
"./lite": "./dist/src/index_lite.js",
"./types/standard.js": "./dist/types/standard.js",
"./types/other.js": "./dist/types/other.js",
"./package.json": "./package.json"
},
"files": [
Expand Down
2 changes: 1 addition & 1 deletion src/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -4,4 +4,4 @@ import Mime from './Mime.js';

export { default as Mime } from './Mime.js';

export default new Mime().define(standardTypes).define(otherTypes)._freeze();
export default new Mime(standardTypes, otherTypes)._freeze();
2 changes: 1 addition & 1 deletion src/index_lite.ts
Original file line number Diff line number Diff line change
Expand Up @@ -3,4 +3,4 @@ import Mime from './Mime.js';

export { default as Mime } from './Mime.js';

export default new Mime().define(standardTypes)._freeze();
export default new Mime(standardTypes)._freeze();

0 comments on commit 795ffa2

Please sign in to comment.