diff --git a/packages/api-file-manager-s3/package.json b/packages/api-file-manager-s3/package.json index a509d819cc9..b317e50da74 100644 --- a/packages/api-file-manager-s3/package.json +++ b/packages/api-file-manager-s3/package.json @@ -22,7 +22,7 @@ "@webiny/utils": "0.0.0", "@webiny/validation": "0.0.0", "form-data": "^4.0.0", - "mime": "^4.0.4", + "mime": "^3.0.0", "node-fetch": "2.6.7", "object-hash": "^3.0.0", "p-map": "4.0.0", diff --git a/packages/api-file-manager-s3/src/utils/mimeTypes.ts b/packages/api-file-manager-s3/src/utils/mimeTypes.ts index fb7f0e2bb03..799de8c16bc 100644 --- a/packages/api-file-manager-s3/src/utils/mimeTypes.ts +++ b/packages/api-file-manager-s3/src/utils/mimeTypes.ts @@ -1,4 +1,6 @@ +// @ts-expect-error import vendorTypes from "mime/types/other"; +// @ts-expect-error import standardTypes from "mime/types/standard"; /** diff --git a/packages/app-file-manager/package.json b/packages/app-file-manager/package.json index 368a111f0cd..d9ffcdf051d 100644 --- a/packages/app-file-manager/package.json +++ b/packages/app-file-manager/package.json @@ -44,7 +44,7 @@ "graphql": "^15.7.2", "graphql-tag": "^2.12.6", "lodash": "^4.17.21", - "mime": "^4.0.4", + "mime": "^3.0.0", "minimatch": "^5.1.6", "mobx": "^6.9.0", "mobx-react-lite": "^3.4.3", diff --git a/packages/cli-plugin-deploy-pulumi/package.json b/packages/cli-plugin-deploy-pulumi/package.json index a2b2824e229..727e3fcfc09 100644 --- a/packages/cli-plugin-deploy-pulumi/package.json +++ b/packages/cli-plugin-deploy-pulumi/package.json @@ -29,7 +29,7 @@ "localtunnel": "2.0.2", "lodash": "^4.17.21", "log-update": "^4.0.0", - "mime": "^4.0.4", + "mime": "^3.0.0", "minimatch": "^5.1.6", "mqtt": "^5.10.3", "ncp": "2.0.0", diff --git a/packages/pulumi-aws/package.json b/packages/pulumi-aws/package.json index 0acd0418274..deeffa04b44 100644 --- a/packages/pulumi-aws/package.json +++ b/packages/pulumi-aws/package.json @@ -30,7 +30,7 @@ "@webiny/project-utils": "0.0.0", "chalk": "^4.1.0", "lodash": "^4.17.21", - "mime": "^4.0.4", + "mime": "^3.0.0", "rimraf": "^6.0.1", "ttypescript": "^1.5.12", "typescript": "4.9.5" diff --git a/yarn.lock b/yarn.lock index b27e9290861..bec3b2c705e 100644 --- a/yarn.lock +++ b/yarn.lock @@ -12257,7 +12257,7 @@ __metadata: "@webiny/utils": 0.0.0 "@webiny/validation": 0.0.0 form-data: ^4.0.0 - mime: ^4.0.4 + mime: ^3.0.0 node-fetch: 2.6.7 object-hash: ^3.0.0 p-map: 4.0.0 @@ -13846,7 +13846,7 @@ __metadata: graphql: ^15.7.2 graphql-tag: ^2.12.6 lodash: ^4.17.21 - mime: ^4.0.4 + mime: ^3.0.0 minimatch: ^5.1.6 mobx: ^6.9.0 mobx-react-lite: ^3.4.3 @@ -14771,7 +14771,7 @@ __metadata: localtunnel: 2.0.2 lodash: ^4.17.21 log-update: ^4.0.0 - mime: ^4.0.4 + mime: ^3.0.0 minimatch: ^5.1.6 mqtt: ^5.10.3 ncp: 2.0.0 @@ -15716,7 +15716,7 @@ __metadata: chalk: ^4.1.0 form-data: ^4.0.0 lodash: ^4.17.21 - mime: ^4.0.4 + mime: ^3.0.0 node-fetch: 2.6.7 rimraf: ^6.0.1 ttypescript: ^1.5.12 @@ -28904,7 +28904,7 @@ __metadata: languageName: node linkType: hard -"mime@npm:3.0.0": +"mime@npm:3.0.0, mime@npm:^3.0.0": version: 3.0.0 resolution: "mime@npm:3.0.0" bin: @@ -28913,15 +28913,6 @@ __metadata: languageName: node linkType: hard -"mime@npm:^4.0.4": - version: 4.0.4 - resolution: "mime@npm:4.0.4" - bin: - mime: bin/cli.js - checksum: 729904cd8b3913062017970ffa25c4303356f80dad33d472b47244e3baa35ab748ce005fb9a66ae854266fa73396ef219287bf6db311c8376ea3d9cfc5dda107 - languageName: node - linkType: hard - "mimic-fn@npm:^1.0.0": version: 1.2.0 resolution: "mimic-fn@npm:1.2.0"