@polylith/builder 0.2.16 → 0.2.18

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 (2) hide show
  1. package/App.js +2 -2
  2. package/package.json +1 -1
package/App.js CHANGED
@@ -117,13 +117,13 @@ export default class App {
117
117
  * @param {express.Router} appRouter
118
118
  * @returns {Promise}
119
119
  */
120
- async router(express, router) {
120
+ async router(express, appRouter) {
121
121
  if (!this.modulePath) return;
122
122
 
123
123
  try {
124
124
  let module = await import(this.modulePath)
125
125
  let router = module.default;
126
- await router(express, router, this);
126
+ await router(express, appRouter, this);
127
127
  return true;
128
128
  } catch(e) {
129
129
  console.error(cc.set('fg_red;, error while building router'), this.modulePath);
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@polylith/builder",
3
- "version": "0.2.16",
3
+ "version": "0.2.18",
4
4
  "description": "The polylith builder",
5
5
  "main": "index.js",
6
6
  "type": "module",