@whatwg-node/server 0.9.28 → 0.9.29
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/cjs/utils.js +1 -1
- package/esm/utils.js +1 -1
- package/package.json +1 -1
- package/typings/types.d.cts +1 -1
- package/typings/types.d.ts +1 -1
- package/typings/utils.d.cts +4 -4
- package/typings/utils.d.ts +4 -4
package/cjs/utils.js
CHANGED
|
@@ -164,7 +164,7 @@ function normalizeNodeRequest(nodeRequest, RequestCtor) {
|
|
|
164
164
|
if (!bunNodeCompatModeWarned) {
|
|
165
165
|
bunNodeCompatModeWarned = true;
|
|
166
166
|
console.warn(`You use Bun Node compatibility mode, which is not recommended!
|
|
167
|
-
It will affect your performance. Please check our Bun integration recipe, and avoid using '
|
|
167
|
+
It will affect your performance. Please check our Bun integration recipe, and avoid using 'http' for your server implementation.`);
|
|
168
168
|
}
|
|
169
169
|
return new RequestCtor(fullUrl, {
|
|
170
170
|
method: nodeRequest.method,
|
package/esm/utils.js
CHANGED
|
@@ -159,7 +159,7 @@ export function normalizeNodeRequest(nodeRequest, RequestCtor) {
|
|
|
159
159
|
if (!bunNodeCompatModeWarned) {
|
|
160
160
|
bunNodeCompatModeWarned = true;
|
|
161
161
|
console.warn(`You use Bun Node compatibility mode, which is not recommended!
|
|
162
|
-
It will affect your performance. Please check our Bun integration recipe, and avoid using '
|
|
162
|
+
It will affect your performance. Please check our Bun integration recipe, and avoid using 'http' for your server implementation.`);
|
|
163
163
|
}
|
|
164
164
|
return new RequestCtor(fullUrl, {
|
|
165
165
|
method: nodeRequest.method,
|
package/package.json
CHANGED
package/typings/types.d.cts
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
/// <reference types="node" />
|
|
2
2
|
/// <reference types="@whatwg-node/fetch" />
|
|
3
|
-
import type { RequestListener } from '
|
|
3
|
+
import type { RequestListener } from 'http';
|
|
4
4
|
import type { NodeRequest, NodeResponse } from './utils.cjs';
|
|
5
5
|
import { UWSHandler, UWSRequest, UWSResponse } from './uwebsockets.cjs';
|
|
6
6
|
export interface FetchEvent extends Event {
|
package/typings/types.d.ts
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
/// <reference types="node" />
|
|
2
2
|
/// <reference types="@whatwg-node/fetch" />
|
|
3
|
-
import type { RequestListener } from '
|
|
3
|
+
import type { RequestListener } from 'http';
|
|
4
4
|
import type { NodeRequest, NodeResponse } from './utils.js';
|
|
5
5
|
import { UWSHandler, UWSRequest, UWSResponse } from './uwebsockets.js';
|
|
6
6
|
export interface FetchEvent extends Event {
|
package/typings/utils.d.cts
CHANGED
|
@@ -2,10 +2,10 @@
|
|
|
2
2
|
/// <reference types="node" />
|
|
3
3
|
/// <reference types="node" />
|
|
4
4
|
/// <reference types="node" />
|
|
5
|
-
import type { IncomingMessage, ServerResponse } from '
|
|
6
|
-
import type { Http2ServerRequest, Http2ServerResponse } from '
|
|
7
|
-
import type { Socket } from '
|
|
8
|
-
import type { Readable } from '
|
|
5
|
+
import type { IncomingMessage, ServerResponse } from 'http';
|
|
6
|
+
import type { Http2ServerRequest, Http2ServerResponse } from 'http2';
|
|
7
|
+
import type { Socket } from 'net';
|
|
8
|
+
import type { Readable } from 'stream';
|
|
9
9
|
import type { FetchEvent } from './types.cjs';
|
|
10
10
|
export declare function isAsyncIterable(body: any): body is AsyncIterable<any>;
|
|
11
11
|
export interface NodeRequest {
|
package/typings/utils.d.ts
CHANGED
|
@@ -2,10 +2,10 @@
|
|
|
2
2
|
/// <reference types="node" />
|
|
3
3
|
/// <reference types="node" />
|
|
4
4
|
/// <reference types="node" />
|
|
5
|
-
import type { IncomingMessage, ServerResponse } from '
|
|
6
|
-
import type { Http2ServerRequest, Http2ServerResponse } from '
|
|
7
|
-
import type { Socket } from '
|
|
8
|
-
import type { Readable } from '
|
|
5
|
+
import type { IncomingMessage, ServerResponse } from 'http';
|
|
6
|
+
import type { Http2ServerRequest, Http2ServerResponse } from 'http2';
|
|
7
|
+
import type { Socket } from 'net';
|
|
8
|
+
import type { Readable } from 'stream';
|
|
9
9
|
import type { FetchEvent } from './types.js';
|
|
10
10
|
export declare function isAsyncIterable(body: any): body is AsyncIterable<any>;
|
|
11
11
|
export interface NodeRequest {
|