@webqit/webflo 0.9.2 → 0.9.3

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/package.json CHANGED
@@ -12,7 +12,7 @@
12
12
  "vanila-javascript"
13
13
  ],
14
14
  "homepage": "https://webqit.io/tooling/webflo",
15
- "version": "0.9.2",
15
+ "version": "0.9.3",
16
16
  "license": "MIT",
17
17
  "repository": {
18
18
  "type": "git",
@@ -88,6 +88,9 @@ export default class Worker {
88
88
  Observer.set(this, 'location', {});
89
89
  Observer.set(this, 'network', {});
90
90
  // ---------------
91
+ Observer.observe(this.network, es => {
92
+ //console.log('//////////', ...es.map(e => `${e.name}: ${e.value}`))
93
+ });
91
94
  }
92
95
 
93
96
  /**
@@ -247,7 +247,7 @@ export default class Runtime {
247
247
  if (this.cx.app.title && this.cx.logger) {
248
248
  this.cx.logger.info(`> Server running (${this.cx.app.title || ''})`);
249
249
  }
250
- }
250
+ }
251
251
 
252
252
  /**
253
253
  * Performs a request.
@@ -303,7 +303,7 @@ export default class Runtime {
303
303
  if (this.cx.server.shared) {
304
304
  client = this.clients.get(url.hostname);
305
305
  }
306
- let response = await client.handle(httpEvent, (...args) => this.remoteFetch(...args));
306
+ let response = await client.handle(httpEvent, ( ...args ) => this.remoteFetch( ...args ));
307
307
  let finalResponse = await this.handleResponse(httpEvent, response, autoHeaders.filter(header => header.type === 'response'));
308
308
  // Logging
309
309
  if (this.cx.logger) {
@@ -335,7 +335,6 @@ export default class Runtime {
335
335
  });
336
336
  }
337
337
  } else {
338
- baseObject = e.detail.request;
339
338
  Sessions({
340
339
  duration: 0, // how long the session will stay valid in ms
341
340
  activeDuration: 0, // if expiresIn < activeDuration, the session will be extended by activeDuration milliseconds
@@ -348,6 +347,7 @@ export default class Runtime {
348
347
  callback(e);
349
348
  }
350
349
  });
350
+ baseObject = e.detail.request;
351
351
  }
352
352
  // Where theres no error, instance is available
353
353
  let instance = Object.getOwnPropertyDescriptor(baseObject, id);