diff --git a/package.json b/package.json index 3d3b3588..692b8ae5 100644 --- a/package.json +++ b/package.json @@ -97,7 +97,7 @@ "@google-cloud/storage": "^7.19.0", "@koa/cors": "^4.0.0", "@koa/router": "^15.5.0", - "content-type": "^1.0.5", + "content-type": "^2.0.0", "convict": "^6.2.5", "dotenv": "^17.4.2", "helmet": "^8.1.0", diff --git a/src/middlewares/versioning.ts b/src/middlewares/versioning.ts index ace7a2a4..187efc9f 100644 --- a/src/middlewares/versioning.ts +++ b/src/middlewares/versioning.ts @@ -8,7 +8,7 @@ import { Context } from 'koa'; -import contentType from 'content-type'; +import * as contentType from 'content-type'; // This mime-type is a vendor mime-type (because this starts with `vnd.`). It // also uses the 'json' suffix to outline that the content, if any, is in JSON form. diff --git a/yarn.lock b/yarn.lock index 2cb7ba29..6fe47f50 100644 --- a/yarn.lock +++ b/yarn.lock @@ -2745,6 +2745,11 @@ content-type@^1.0.5: resolved "https://registry.yarnpkg.com/content-type/-/content-type-1.0.5.tgz#8b773162656d1d1086784c8f23a54ce6d73d7918" integrity sha512-nTjqfcBFEipKdXCv4YDQWCfmcLZKm81ldF0pAopTvyrFGVbcR6P/VAAd5G7N+0tTr8QqiU0tFadD6FK4NtJwOA== +content-type@^2.0.0: + version "2.0.0" + resolved "https://registry.yarnpkg.com/content-type/-/content-type-2.0.0.tgz#2fb3ede69dffa0af78ca7c4ce7589680638b56df" + integrity sha512-j/O/d7GcZCyNl7/hwZAb606rzqkyvaDctLmckbxLzHvFBzTJHuGEdodATcP3yIRoDrLHkIATJuvzbFlp/ki2cQ== + convert-source-map@^1.6.0: version "1.7.0" resolved "https://registry.yarnpkg.com/convert-source-map/-/convert-source-map-1.7.0.tgz#17a2cb882d7f77d3490585e2ce6c524424a3a442"