bajo-extra 2.0.1 → 2.2.1

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.
Files changed (49) hide show
  1. package/.github/FUNDING.yml +0 -0
  2. package/.github/workflows/repo-lockdown.yml +0 -0
  3. package/.jsdoc.conf.json +0 -0
  4. package/LICENSE +0 -0
  5. package/README.md +0 -0
  6. package/docs/BajoExtra.html +0 -0
  7. package/docs/data/search.json +0 -0
  8. package/docs/fonts/Inconsolata-Regular.ttf +0 -0
  9. package/docs/fonts/OpenSans-Regular.ttf +0 -0
  10. package/docs/fonts/WorkSans-Bold.ttf +0 -0
  11. package/docs/global.html +0 -0
  12. package/docs/index.html +0 -0
  13. package/docs/index.js.html +0 -0
  14. package/docs/scripts/core.js +476 -477
  15. package/docs/scripts/core.min.js +0 -0
  16. package/docs/scripts/resize.js +36 -36
  17. package/docs/scripts/search.js +105 -105
  18. package/docs/scripts/search.min.js +0 -0
  19. package/docs/scripts/third-party/Apache-License-2.0.txt +0 -0
  20. package/docs/scripts/third-party/fuse.js +1 -1
  21. package/docs/scripts/third-party/hljs-line-num-original.js +282 -285
  22. package/docs/scripts/third-party/hljs-line-num.js +1 -1
  23. package/docs/scripts/third-party/hljs-original.js +1195 -1202
  24. package/docs/scripts/third-party/hljs.js +1 -1
  25. package/docs/scripts/third-party/popper.js +1 -1
  26. package/docs/scripts/third-party/tippy.js +1 -1
  27. package/docs/scripts/third-party/tocbot.js +508 -509
  28. package/docs/scripts/third-party/tocbot.min.js +0 -0
  29. package/docs/static/bitcoin.jpeg +0 -0
  30. package/docs/static/home.md +0 -0
  31. package/docs/static/logo-ecosystem.png +0 -0
  32. package/docs/static/logo.png +0 -0
  33. package/docs/styles/clean-jsdoc-theme-base.css +0 -0
  34. package/docs/styles/clean-jsdoc-theme-dark.css +0 -0
  35. package/docs/styles/clean-jsdoc-theme-light.css +0 -0
  36. package/docs/styles/clean-jsdoc-theme-scrollbar.css +0 -0
  37. package/docs/styles/clean-jsdoc-theme-without-scrollbar.min.css +0 -0
  38. package/docs/styles/clean-jsdoc-theme.min.css +0 -0
  39. package/extend/bajo/intl/en-US.json +0 -0
  40. package/extend/bajo/intl/id.json +0 -0
  41. package/extend/bajoCli/applet/download.js +0 -0
  42. package/extend/bajoCli/applet/hash.js +0 -0
  43. package/extend/bajoCli/applet.js +0 -0
  44. package/index.js +4 -4
  45. package/package.json +8 -7
  46. package/wiki/CHANGES.md +9 -0
  47. package/wiki/CONFIG.md +0 -0
  48. package/wiki/CONTRIBUTING.md +0 -0
  49. package/wiki/toc.json +0 -0
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
package/index.js CHANGED
@@ -119,9 +119,7 @@ async function factory (pkgName) {
119
119
  *
120
120
  * @class
121
121
  */
122
- class BajoExtra extends this.app.pluginClass.base {
123
- static alias = 'extra'
124
-
122
+ class BajoExtra extends this.app.baseClass.Base {
125
123
  constructor () {
126
124
  super(pkgName, me.app)
127
125
  this.config = {
@@ -184,7 +182,8 @@ async function factory (pkgName) {
184
182
  }
185
183
 
186
184
  download = async (url, opts = {}, extra = {}) => {
187
- const { getPluginDataDir, importPkg, generateId } = this.app.bajo
185
+ const { getPluginDataDir, importPkg } = this.app.bajo
186
+ const { generateId } = this.app.lib.aneka
188
187
  const { fetch } = await importPkg('bajoExtra:undici')
189
188
  const { fs } = this.app.lib
190
189
  const { isFunction, merge } = this.app.lib._
@@ -284,6 +283,7 @@ async function factory (pkgName) {
284
283
  for (const q in query) {
285
284
  if (!isSet(query[q])) delete query[q]
286
285
  }
286
+ opts.query = opts.query ?? {}
287
287
  if (!isEmpty(query)) opts.query = query
288
288
  delete opts.params
289
289
  if (!has(extra, 'cacheBuster')) extra.cacheBuster = true
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "bajo-extra",
3
- "version": "2.0.1",
3
+ "version": "2.2.1",
4
4
  "description": "Extra package for Bajo Framework",
5
5
  "main": "index.js",
6
6
  "scripts": {
@@ -9,7 +9,8 @@
9
9
  },
10
10
  "type": "module",
11
11
  "bajo": {
12
- "type": "plugin"
12
+ "type": "plugin",
13
+ "alias": "extra"
13
14
  },
14
15
  "repository": {
15
16
  "type": "git",
@@ -31,14 +32,14 @@
31
32
  "homepage": "https://github.com/ardhi/bajo-extra#readme",
32
33
  "dependencies": {
33
34
  "async": "^3.2.6",
34
- "bcrypt": "^5.1.1",
35
- "cheerio": "^1.1.0",
36
- "fast-jwt": "^5.0.2",
37
- "fast-xml-parser": "^4.5.1",
35
+ "bcrypt": "^6.0.0",
36
+ "cheerio": "^1.1.2",
37
+ "fast-jwt": "^6.1.0",
38
+ "fast-xml-parser": "^5.3.3",
38
39
  "numbro": "^2.5.0",
39
40
  "performant-array-to-tree": "^1.11.0",
40
41
  "short-crypt": "^4.0.0",
41
- "undici": "^7.2.1"
42
+ "undici": "^7.16.0"
42
43
  },
43
44
  "devDependencies": {
44
45
  "clean-jsdoc-theme": "^4.3.0",
@@ -0,0 +1,9 @@
1
+ # Changes
2
+
3
+ ## 2026-01-16
4
+
5
+ - [2.2.1] Bug fix on ```fetchUrl()``` for url with query string
6
+
7
+ ## 2025-12-28
8
+
9
+ - [2.2.0] Ported to ```bajo@2.2.x``` specs
package/wiki/CONFIG.md CHANGED
File without changes
File without changes
package/wiki/toc.json CHANGED
File without changes