Automattic / knox

S3 Lib
MIT License
1.74k stars 285 forks source link

fix: use mime@^1 to avoid mime.lookup issue #336

Open davidguttman opened 3 years ago

davidguttman commented 3 years ago

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