From 3b53e8d75f6a342889e7776a2f3e4ea3134a50ae Mon Sep 17 00:00:00 2001 From: V-MBatuhanYildiz Date: Fri, 26 Jul 2024 08:30:15 +0300 Subject: [PATCH] #2 issue2 dependabot[bot] commit --- .github/dependabot.yml | 2 +- package.json | 4 ++-- src/github.ts | 4 ++-- 3 files changed, 5 insertions(+), 5 deletions(-) diff --git a/.github/dependabot.yml b/.github/dependabot.yml index e5f396c..b9be52c 100644 --- a/.github/dependabot.yml +++ b/.github/dependabot.yml @@ -13,6 +13,6 @@ updates: - package-ecosystem: github-actions directory: "/" schedule: - interval: weekly + interval: daily commit-message: prefix: "chore(deps)" diff --git a/package.json b/package.json index 9883234..2b85eaf 100644 --- a/package.json +++ b/package.json @@ -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", diff --git a/src/github.ts b/src/github.ts index 3a71f90..c5f8ffc 100644 --- a/src/github.ts +++ b/src/github.ts @@ -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; @@ -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 (