@webqit/webflo 0.9.1 → 0.9.4
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.
|
|
15
|
+
"version": "0.9.4",
|
|
16
16
|
"license": "MIT",
|
|
17
17
|
"repository": {
|
|
18
18
|
"type": "git",
|
|
@@ -30,7 +30,7 @@
|
|
|
30
30
|
"postpublish": "git push && git push --tags"
|
|
31
31
|
},
|
|
32
32
|
"bin": {
|
|
33
|
-
"webflo": "src/
|
|
33
|
+
"webflo": "src/webflo.js",
|
|
34
34
|
"webflo-certbot-http-auth-hook": "src/services/certbot/http-auth-hook.js",
|
|
35
35
|
"webflo-certbot-http-cleanup-hook": "src/services/certbot/http-cleanup-hook.js"
|
|
36
36
|
},
|
|
@@ -103,10 +103,7 @@ export default class RuntimeClient {
|
|
|
103
103
|
} else if (viewportTop = Array.from(document.querySelectorAll('[data-viewport-top]')).pop()) {
|
|
104
104
|
viewportTop.focus();
|
|
105
105
|
} else {
|
|
106
|
-
document.documentElement.classList.add('scroll-reset');
|
|
107
106
|
document.body.scrollIntoView();
|
|
108
|
-
await new Promise(res => setTimeout(res, 600));
|
|
109
|
-
document.documentElement.classList.remove('scroll-reset');
|
|
110
107
|
}
|
|
111
108
|
}
|
|
112
109
|
|
|
@@ -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);
|