#2 issue2 dependabot[bot] commit

This commit is contained in:
V-MBatuhanYildiz 2024-07-26 08:30:15 +03:00
parent ded9a6a738
commit 3b53e8d75f
3 changed files with 5 additions and 5 deletions

View file

@ -13,6 +13,6 @@ updates:
- package-ecosystem: github-actions
directory: "/"
schedule:
interval: weekly
interval: daily
commit-message:
prefix: "chore(deps)"

View file

@ -26,12 +26,12 @@
"@octokit/plugin-retry": "^7.1.1",
"@octokit/plugin-throttling": "^9.3.1",
"glob": "^11.0.0",
"mime": "^3.0.0"
"mime": "^4.0.4"
},
"devDependencies": {
"@types/glob": "^8.1.0",
"@types/jest": "^29.5.12",
"@types/mime": "^3.0.1",
"@types/mime": "^4.0.0",
"@types/node": "^20.14.11",
"@vercel/ncc": "^0.38.1",
"jest": "^29.3.1",

View file

@ -1,7 +1,7 @@
import { GitHub } from "@actions/github/lib/utils";
import { Config, isTag, releaseBody } from "./util";
import { statSync, readFileSync } from "fs";
import { getType } from "mime";
import { mime } from "mime";
import { basename } from "path";
type GitHub = InstanceType<typeof GitHub>;
@ -150,7 +150,7 @@ export const asset = (path: string): ReleaseAsset => {
};
export const mimeOrDefault = (path: string): string => {
return getType(path) || "application/octet-stream";
return mime.getType(path) || "application/octet-stream";
};
export const upload = async (