sumba 0.3.7 → 0.3.8

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.
@@ -0,0 +1,11 @@
1
+ async function afterInitBajoWebMpa () {
2
+ const { isSet } = this.bajo.helper
3
+ if (!isSet(this.bajoWeb.config.home)) {
4
+ this.bajoWeb.config.home = {
5
+ path: 'sumba:/home',
6
+ forward: true
7
+ }
8
+ }
9
+ }
10
+
11
+ export default afterInitBajoWebMpa
package/bajo/init.js CHANGED
@@ -1,11 +1,4 @@
1
1
  async function init () {
2
- /*
3
- const { eachPlugins } = this.bajo.helper
4
- const pattern = 'auto-detect.*'
5
- await eachPlugins(async function ({ file, plugin, alias }) {
6
- console.log(file, plugin, alias)
7
- }, pattern)
8
- */
9
2
  }
10
3
 
11
4
  export default init
@@ -1,7 +1,7 @@
1
1
  const signin = {
2
2
  method: ['GET', 'POST'],
3
3
  handler: async function (ctx, req, reply) {
4
- const { getConfig, importPkg } = this.bajo.helper
4
+ const { getConfig } = this.bajo.helper
5
5
  const { routePath } = this.bajoWeb.helper
6
6
  const { getUserFromUsernamePassword } = this.sumba.helper
7
7
  const { isEmpty, pick } = this.bajo.helper._
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "sumba",
3
- "version": "0.3.7",
3
+ "version": "0.3.8",
4
4
  "description": "Bajo Framework's Biz Suite",
5
5
  "main": "index.js",
6
6
  "scripts": {