Skip to content

Commit

Permalink
⬆️ Switch mmmagic dependency
Browse files Browse the repository at this point in the history
  • Loading branch information
skerit committed Jan 13, 2024
1 parent 3774e19 commit bae8c6d
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 4 deletions.
4 changes: 2 additions & 2 deletions lib/class/conduit.js
Original file line number Diff line number Diff line change
Expand Up @@ -2861,7 +2861,7 @@ Alchemy.setMethod(function broadcast(type, data) {
*
* @author Jelle De Loecker <jelle@develry.be>
* @since 0.3.0
* @version 0.3.0
* @version 1.4.0
*/
function getMagic() {

Expand All @@ -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);
Expand Down
2 changes: 1 addition & 1 deletion lib/class/inode_file.js
Original file line number Diff line number Diff line change
@@ -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');

Expand Down
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -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",
Expand Down

0 comments on commit bae8c6d

Please sign in to comment.