bajo-extra 2.2.1 → 2.3.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/index.js +4 -0
- package/package.json +1 -1
- package/wiki/CHANGES.md +4 -0
package/index.js
CHANGED
|
@@ -362,6 +362,10 @@ async function factory (pkgName) {
|
|
|
362
362
|
return /^[a-f0-9]{32}$/i.test(text)
|
|
363
363
|
}
|
|
364
364
|
|
|
365
|
+
isSha256 = (text) => {
|
|
366
|
+
return /^[a-f0-9]{64}$/i.test(text)
|
|
367
|
+
}
|
|
368
|
+
|
|
365
369
|
encrypt = async (text, { type = 'short', subType = 'qr' } = {}) => {
|
|
366
370
|
const { importPkg } = this.app.bajo
|
|
367
371
|
const { ShortCrypt } = await importPkg('bajoExtra:short-crypt')
|
package/package.json
CHANGED