mirror of
https://github.com/koishijs/novelai-bot
synced 2025-01-07 07:06:54 +08:00
fix: libsodium import error with sumo version (#195)
This commit is contained in:
parent
4ef4e487b6
commit
ea186f308b
@ -69,7 +69,7 @@
|
||||
"@koishijs/plugin-help": "^2.2.2",
|
||||
"@koishijs/translator": "^1.0.0",
|
||||
"@koishijs/vitepress": "^1.6.5",
|
||||
"@types/libsodium-wrappers": "^0.7.10",
|
||||
"@types/libsodium-wrappers-sumo": "^0.7.5",
|
||||
"@types/node": "^17.0.45",
|
||||
"atsc": "^1.2.2",
|
||||
"koishi": "^4.12.2",
|
||||
@ -79,6 +79,6 @@
|
||||
},
|
||||
"dependencies": {
|
||||
"image-size": "^1.0.2",
|
||||
"libsodium-wrappers": "^0.7.11"
|
||||
"libsodium-wrappers-sumo": "^0.7.11"
|
||||
}
|
||||
}
|
||||
|
@ -2,7 +2,7 @@ import { arrayBufferToBase64, Context, Dict, pick, Quester } from 'koishi'
|
||||
import {
|
||||
crypto_generichash, crypto_pwhash,
|
||||
crypto_pwhash_ALG_ARGON2ID13, crypto_pwhash_SALTBYTES, ready,
|
||||
} from 'libsodium-wrappers'
|
||||
} from 'libsodium-wrappers-sumo'
|
||||
import imageSize from 'image-size'
|
||||
import { ImageData, Subscription } from './types'
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user