From bae8c6dfdbec575796a63ed1e459e6f4a830b44a Mon Sep 17 00:00:00 2001 From: Jelle De Loecker Date: Sat, 13 Jan 2024 15:49:05 +0100 Subject: [PATCH] =?UTF-8?q?=E2=AC=86=EF=B8=8F=20Switch=20mmmagic=20depende?= =?UTF-8?q?ncy?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- lib/class/conduit.js | 4 ++-- lib/class/inode_file.js | 2 +- package.json | 2 +- 3 files changed, 4 insertions(+), 4 deletions(-) diff --git a/lib/class/conduit.js b/lib/class/conduit.js index 1b3e2d08..e92e8ae8 100644 --- a/lib/class/conduit.js +++ b/lib/class/conduit.js @@ -2861,7 +2861,7 @@ Alchemy.setMethod(function broadcast(type, data) { * * @author Jelle De Loecker * @since 0.3.0 - * @version 0.3.0 + * @version 1.4.0 */ function getMagic() { @@ -2872,7 +2872,7 @@ function getMagic() { } // Get mmmagic module - mmmagic = alchemy.use('mmmagic') + mmmagic = alchemy.use('@picturae/mmmagic') if (mmmagic) { magic = new mmmagic.Magic(mmmagic.MAGIC_MIME_TYPE); diff --git a/lib/class/inode_file.js b/lib/class/inode_file.js index dc57da48..07c8e297 100644 --- a/lib/class/inode_file.js +++ b/lib/class/inode_file.js @@ -1,6 +1,6 @@ const HASH = Symbol('hash'), ALGORITHM = Symbol('algorithm'), - LIBMAGIC = alchemy.use('mmmagic'), + LIBMAGIC = alchemy.use('@picturae/mmmagic'), LIBMIME = alchemy.use('mime'), fs = alchemy.use('fs'); diff --git a/package.json b/package.json index 72a94f49..71ef68c8 100644 --- a/package.json +++ b/package.json @@ -27,7 +27,7 @@ "mime" : "~3.0.0", "minimist" : "~1.2.5", "mkdirp" : "~3.0.1", - "mmmagic" : "~0.5.3", + "@picturae/mmmagic": "0.5.3", "mongodb" : "~6.1.0", "ncp" : "~2.0.0", "postcss" : "~8.4.31",