ultimate-express 1.4.0 → 1.4.1
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 +1 -1
- package/src/application.js +3 -1
- package/src/types.d.ts +2 -0
package/package.json
CHANGED
package/src/application.js
CHANGED
|
@@ -55,7 +55,9 @@ class Application extends Router {
|
|
|
55
55
|
if(typeof settings.threads !== 'number') {
|
|
56
56
|
settings.threads = cpuCount > 1 ? 1 : 0;
|
|
57
57
|
}
|
|
58
|
-
if(settings.
|
|
58
|
+
if(settings.uwsApp) {
|
|
59
|
+
this.uwsApp = settings.uwsApp;
|
|
60
|
+
} else if(settings.http3) {
|
|
59
61
|
if(!settings.uwsOptions.key_file_name || !settings.uwsOptions.cert_file_name) {
|
|
60
62
|
throw new Error('uwsOptions.key_file_name and uwsOptions.cert_file_name are required for HTTP/3');
|
|
61
63
|
}
|