@whatwg-node/server
Advanced tools
Comparing version 0.1.2 to 0.2.0
@@ -46,3 +46,3 @@ /// <reference types="node" /> | ||
} | ||
export declare type ServerAdapter<TServerContext, TBaseObject> = TBaseObject & RequestListener & ServerAdapterObject<TServerContext>; | ||
export declare type ServerAdapter<TServerContext, TBaseObject> = TBaseObject & RequestListener & ServerAdapterObject<TServerContext>['fetch'] & ServerAdapterObject<TServerContext>; | ||
export declare function createServerAdapter<TServerContext = { | ||
@@ -49,0 +49,0 @@ req: NodeRequest; |
@@ -196,2 +196,7 @@ 'use strict'; | ||
function genericRequestHandler(input, ctx) { | ||
var _a; | ||
if ('process' in globalThis && ((_a = process.versions) === null || _a === void 0 ? void 0 : _a['bun']) != null) { | ||
// This is required for bun | ||
input.text(); | ||
} | ||
// If it is a Node request | ||
@@ -198,0 +203,0 @@ if (isReadable(input) && ctx != null && isServerResponse(ctx)) { |
{ | ||
"name": "@whatwg-node/server", | ||
"version": "0.1.2", | ||
"version": "0.2.0", | ||
"description": "Fetch API compliant HTTP Server adapter", | ||
@@ -10,3 +10,3 @@ "sideEffects": false, | ||
"dependencies": { | ||
"@whatwg-node/fetch": "^0.3.0", | ||
"@whatwg-node/fetch": "^0.4.0", | ||
"tslib": "^2.3.1" | ||
@@ -13,0 +13,0 @@ }, |
Sorry, the diff of this file is not supported yet
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
33288
563
+ Added@whatwg-node/fetch@0.4.7(transitive)
- Removed@whatwg-node/fetch@0.3.2(transitive)
- Removedevent-target-polyfill@0.0.3(transitive)
Updated@whatwg-node/fetch@^0.4.0