bajo-extra 2.2.0 → 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 +5 -0
- package/package.json +1 -1
- package/wiki/CHANGES.md +9 -1
package/index.js
CHANGED
|
@@ -283,6 +283,7 @@ async function factory (pkgName) {
|
|
|
283
283
|
for (const q in query) {
|
|
284
284
|
if (!isSet(query[q])) delete query[q]
|
|
285
285
|
}
|
|
286
|
+
opts.query = opts.query ?? {}
|
|
286
287
|
if (!isEmpty(query)) opts.query = query
|
|
287
288
|
delete opts.params
|
|
288
289
|
if (!has(extra, 'cacheBuster')) extra.cacheBuster = true
|
|
@@ -361,6 +362,10 @@ async function factory (pkgName) {
|
|
|
361
362
|
return /^[a-f0-9]{32}$/i.test(text)
|
|
362
363
|
}
|
|
363
364
|
|
|
365
|
+
isSha256 = (text) => {
|
|
366
|
+
return /^[a-f0-9]{64}$/i.test(text)
|
|
367
|
+
}
|
|
368
|
+
|
|
364
369
|
encrypt = async (text, { type = 'short', subType = 'qr' } = {}) => {
|
|
365
370
|
const { importPkg } = this.app.bajo
|
|
366
371
|
const { ShortCrypt } = await importPkg('bajoExtra:short-crypt')
|
package/package.json
CHANGED
package/wiki/CHANGES.md
CHANGED
|
@@ -1,5 +1,13 @@
|
|
|
1
1
|
# Changes
|
|
2
2
|
|
|
3
|
+
## 2026-04-25
|
|
4
|
+
|
|
5
|
+
- [2.3.0] Add ```isSha256()```
|
|
6
|
+
|
|
7
|
+
## 2026-01-16
|
|
8
|
+
|
|
9
|
+
- [2.2.1] Bug fix on ```fetchUrl()``` for url with query string
|
|
10
|
+
|
|
3
11
|
## 2025-12-28
|
|
4
12
|
|
|
5
|
-
- [2.
|
|
13
|
+
- [2.2.0] Ported to ```bajo@2.2.x``` specs
|