From 698cd11d67005e47f81c9558a91a4f53647722de Mon Sep 17 00:00:00 2001 From: David Guttman Date: Fri, 9 Apr 2021 15:38:12 -0700 Subject: [PATCH] fix: use mime@^1 to avoid mime.lookup issue `mime@2` removed `lookup()` which is used in `knox` `putFile()`. ``` Version 2 is a breaking change from 1.x as the semver implies. Specifically: lookup() renamed to getType() extension() renamed to getExtension() charset() and load() methods have been removed ``` --- package.json | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/package.json b/package.json index e61b0c8..17d4a33 100644 --- a/package.json +++ b/package.json @@ -21,7 +21,7 @@ }, "bugs": "https://github.com/LearnBoost/knox/issues", "dependencies": { - "mime": "*", + "mime": "^1", "xml2js": "^0.4.4", "debug": "^2.2.0", "stream-counter": "^1.0.0",