Skip to content

Commit c3ffbd7

Browse files
committed
chore: update mime import
Signed-off-by: Rui Chen <[email protected]>
1 parent 9172d9b commit c3ffbd7

File tree

2 files changed

+4
-4
lines changed

2 files changed

+4
-4
lines changed

dist/index.js

+2-2
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

src/github.ts

+2-2
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
import { GitHub } from "@actions/github/lib/utils";
22
import { Config, isTag, releaseBody } from "./util";
33
import { statSync, readFileSync } from "fs";
4-
import { getType } from "mime";
4+
import mime from "mime";
55
import { basename } from "path";
66

77
type GitHub = InstanceType<typeof GitHub>;
@@ -136,7 +136,7 @@ export const asset = (path: string): ReleaseAsset => {
136136
};
137137

138138
export const mimeOrDefault = (path: string): string => {
139-
return getType(path) || "application/octet-stream";
139+
return mime.getType(path) || "application/octet-stream";
140140
};
141141

142142
export const upload = async (

0 commit comments

Comments
 (0)