From 457ac90a1eb1ce82e7447241b5b74564545f3bc1 Mon Sep 17 00:00:00 2001 From: Thodoris Greasidis Date: Fri, 15 Nov 2024 17:00:21 +0200 Subject: [PATCH] Update mime to v4 Update mime from 3.0.0 to 4.0.0 Change-type: patch --- package.json | 3 +-- src/util/index.ts | 2 +- 2 files changed, 2 insertions(+), 3 deletions(-) diff --git a/package.json b/package.json index e5b8adc0b..e8865ac03 100644 --- a/package.json +++ b/package.json @@ -69,7 +69,6 @@ "@types/chai-as-promised": "^7.1.4", "@types/lodash": "^4.14.195", "@types/memoizee": "^0.4.7", - "@types/mime": "^3.0.3", "@types/mocha": "^10.0.1", "@types/ndjson": "^2.0.0", "@types/sinon": "^10.0.6", @@ -133,7 +132,7 @@ "handlebars": "^4.7.7", "lodash": "^4.17.21", "memoizee": "^0.4.15", - "mime": "^3.0.0", + "mime": "^4.0.0", "ndjson": "^2.0.0", "p-throttle": "^4.1.1", "pinejs-client-core": "^6.15.0", diff --git a/src/util/index.ts b/src/util/index.ts index e4f9e6d33..bf6dd35e3 100644 --- a/src/util/index.ts +++ b/src/util/index.ts @@ -2,7 +2,7 @@ import * as errors from 'balena-errors'; import type * as Pine from '../../typings/pinejs-client-core'; import type { IfDefined } from '../../typings/utils'; import type { WebResourceFile } from 'balena-request'; -import * as mime from 'mime'; +import mime from 'mime'; export interface BalenaUtils { mergePineOptions: typeof mergePineOptions;