@travetto/web-http 7.0.4 → 7.0.5
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/README.md +1 -1
- package/package.json +4 -4
- package/src/config.ts +1 -1
- package/src/http.ts +3 -3
- package/src/node.ts +5 -5
- package/src/tls.ts +1 -1
- package/src/types.ts +1 -1
- package/support/cli.web_http.ts +1 -1
- package/support/test/dispatcher.ts +3 -3
package/README.md
CHANGED
|
@@ -158,7 +158,7 @@ import { Env, toConcrete } from '@travetto/runtime';
|
|
|
158
158
|
import { CliCommand } from '@travetto/cli';
|
|
159
159
|
import { DependencyRegistryIndex } from '@travetto/di';
|
|
160
160
|
import { Registry } from '@travetto/registry';
|
|
161
|
-
import { WebHttpServer, WebHttpConfig } from '@travetto/web-http';
|
|
161
|
+
import { type WebHttpServer, WebHttpConfig } from '@travetto/web-http';
|
|
162
162
|
|
|
163
163
|
import './config-override.ts';
|
|
164
164
|
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@travetto/web-http",
|
|
3
|
-
"version": "7.0.
|
|
3
|
+
"version": "7.0.5",
|
|
4
4
|
"type": "module",
|
|
5
5
|
"description": "Web HTTP Server Support",
|
|
6
6
|
"keywords": [
|
|
@@ -27,11 +27,11 @@
|
|
|
27
27
|
"directory": "module/web-http"
|
|
28
28
|
},
|
|
29
29
|
"dependencies": {
|
|
30
|
-
"@travetto/web": "^7.0.
|
|
30
|
+
"@travetto/web": "^7.0.5"
|
|
31
31
|
},
|
|
32
32
|
"peerDependencies": {
|
|
33
|
-
"@travetto/cli": "^7.0.
|
|
34
|
-
"@travetto/test": "^7.0.
|
|
33
|
+
"@travetto/cli": "^7.0.6",
|
|
34
|
+
"@travetto/test": "^7.0.5"
|
|
35
35
|
},
|
|
36
36
|
"peerDependenciesMeta": {
|
|
37
37
|
"@travetto/test": {
|
package/src/config.ts
CHANGED
|
@@ -3,7 +3,7 @@ import { Ignore, Secret } from '@travetto/schema';
|
|
|
3
3
|
import { AppError, Runtime, RuntimeResources } from '@travetto/runtime';
|
|
4
4
|
import { NetUtil } from '@travetto/web';
|
|
5
5
|
|
|
6
|
-
import { WebSecureKeyPair } from './types.ts';
|
|
6
|
+
import type { WebSecureKeyPair } from './types.ts';
|
|
7
7
|
import { WebTlsUtil } from './tls.ts';
|
|
8
8
|
|
|
9
9
|
/**
|
package/src/http.ts
CHANGED
|
@@ -1,14 +1,14 @@
|
|
|
1
|
-
import net from 'node:net';
|
|
1
|
+
import type net from 'node:net';
|
|
2
2
|
import http from 'node:http';
|
|
3
3
|
import http2 from 'node:http2';
|
|
4
4
|
import https from 'node:https';
|
|
5
5
|
import { pipeline } from 'node:stream/promises';
|
|
6
6
|
import { TLSSocket } from 'node:tls';
|
|
7
7
|
|
|
8
|
-
import { WebBodyUtil, WebCommonUtil, WebDispatcher, WebRequest, WebResponse } from '@travetto/web';
|
|
8
|
+
import { WebBodyUtil, WebCommonUtil, type WebDispatcher, WebRequest, WebResponse } from '@travetto/web';
|
|
9
9
|
import { BinaryUtil, castTo, ShutdownManager } from '@travetto/runtime';
|
|
10
10
|
|
|
11
|
-
import { WebSecureKeyPair, WebServerHandle } from './types.ts';
|
|
11
|
+
import type { WebSecureKeyPair, WebServerHandle } from './types.ts';
|
|
12
12
|
|
|
13
13
|
type HttpServer = http.Server | http2.Http2Server;
|
|
14
14
|
type HttpResponse = http.ServerResponse | http2.Http2ServerResponse;
|
package/src/node.ts
CHANGED
|
@@ -1,10 +1,10 @@
|
|
|
1
1
|
import { Inject, Injectable } from '@travetto/di';
|
|
2
|
-
import { StandardWebRouter } from '@travetto/web';
|
|
3
|
-
import { ConfigurationService } from '@travetto/config';
|
|
2
|
+
import type { StandardWebRouter } from '@travetto/web';
|
|
3
|
+
import type { ConfigurationService } from '@travetto/config';
|
|
4
4
|
|
|
5
|
-
import { WebHttpConfig } from './config';
|
|
6
|
-
import { WebHttpUtil } from './http';
|
|
7
|
-
import { WebHttpServer, WebServerHandle } from './types';
|
|
5
|
+
import type { WebHttpConfig } from './config.ts';
|
|
6
|
+
import { WebHttpUtil } from './http.ts';
|
|
7
|
+
import type { WebHttpServer, WebServerHandle } from './types.ts';
|
|
8
8
|
|
|
9
9
|
/**
|
|
10
10
|
* A node http server
|
package/src/tls.ts
CHANGED
package/src/types.ts
CHANGED
package/support/cli.web_http.ts
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { Runtime, toConcrete } from '@travetto/runtime';
|
|
2
2
|
import { DependencyRegistryIndex } from '@travetto/di';
|
|
3
|
-
import { CliCommand, CliCommandShape } from '@travetto/cli';
|
|
3
|
+
import { CliCommand, type CliCommandShape } from '@travetto/cli';
|
|
4
4
|
import { NetUtil } from '@travetto/web';
|
|
5
5
|
import { Registry } from '@travetto/registry';
|
|
6
6
|
|
|
@@ -1,13 +1,13 @@
|
|
|
1
|
-
import { Readable } from 'node:stream';
|
|
1
|
+
import type { Readable } from 'node:stream';
|
|
2
2
|
import { buffer } from 'node:stream/consumers';
|
|
3
3
|
|
|
4
4
|
import { Inject, Injectable } from '@travetto/di';
|
|
5
|
-
import { WebFilterContext, WebResponse, WebDispatcher, WebBodyUtil } from '@travetto/web';
|
|
5
|
+
import { type WebFilterContext, WebResponse, type WebDispatcher, WebBodyUtil } from '@travetto/web';
|
|
6
6
|
import { castTo } from '@travetto/runtime';
|
|
7
7
|
|
|
8
8
|
import { WebTestDispatchUtil } from '@travetto/web/support/test/dispatch-util.ts';
|
|
9
9
|
|
|
10
|
-
import { WebHttpConfig } from '../../src/config.ts';
|
|
10
|
+
import type { WebHttpConfig } from '../../src/config.ts';
|
|
11
11
|
|
|
12
12
|
const toBuffer = (src: Buffer | Readable) => Buffer.isBuffer(src) ? src : buffer(src);
|
|
13
13
|
|