fix: libsodium import error with sumo version (#195)

This commit is contained in:
Maiko Sinkyaet Tan 2023-06-20 04:24:53 +08:00 committed by GitHub
parent 4ef4e487b6
commit ea186f308b
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 3 additions and 3 deletions

View File

@ -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"
}
}

View File

@ -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'