@polylith/builder 0.2.26 → 0.2.27

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 +11 -2
  2. package/package.json +1 -1
package/App.js CHANGED
@@ -129,11 +129,20 @@ export default class App {
129
129
  await router(express, appRouter, this);
130
130
  return true;
131
131
  } catch(e) {
132
- console.error(cc.set('fg_red;, error while building router'), this.modulePath);
133
- console.log(e);
132
+ console.error(cc.set('fg_red', 'error while building router'), this.modulePath);
133
+ console.error(e);
134
+ console.error(e.stack);
134
135
  }
135
136
  }
136
137
 
138
+ async getSocketIo() {
139
+ return this.socketIo;
140
+ }
141
+
142
+ async setSocketIo(io) {
143
+ this.socketIo = io;
144
+ }
145
+
137
146
  getIndexFile() {
138
147
  return path.posix.join(this.root, this.htmlTemplate.destination);
139
148
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@polylith/builder",
3
- "version": "0.2.26",
3
+ "version": "0.2.27",
4
4
  "description": "The polylith builder",
5
5
  "main": "index.js",
6
6
  "type": "module",