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 CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "ultimate-express",
3
- "version": "1.4.0",
3
+ "version": "1.4.1",
4
4
  "description": "The Ultimate Express. Fastest http server with full Express compatibility, based on uWebSockets.",
5
5
  "main": "src/index.js",
6
6
  "scripts": {
@@ -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.http3) {
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
  }
package/src/types.d.ts CHANGED
@@ -5,6 +5,8 @@ declare module "ultimate-express" {
5
5
  type Settings = {
6
6
  uwsOptions?: AppOptions;
7
7
  threads?: number;
8
+ http3?: boolean;
9
+ uwsApp?: any;
8
10
  };
9
11
 
10
12
  namespace express {