@whatwg-node/server
Advanced tools
Comparing version 0.10.0-alpha-20241125130302-670fd9851060fb8e736194f703f4026f9566bf40 to 0.10.0-alpha-20241125130609-2d42652904068bfd5c22714b7277b8c77917aeba
@@ -78,8 +78,9 @@ "use strict"; | ||
} | ||
let url = new Proxy(EMPTY_OBJECT, { | ||
get(_target, prop, _receiver) { | ||
url = new fetchAPI.URL(request.url, 'http://localhost'); | ||
return Reflect.get(url, prop, url); | ||
}, | ||
}); | ||
let url = request['parsedUrl'] || | ||
new Proxy(EMPTY_OBJECT, { | ||
get(_target, prop, _receiver) { | ||
url = new fetchAPI.URL(request.url, 'http://localhost'); | ||
return Reflect.get(url, prop, url); | ||
}, | ||
}); | ||
const onRequestHooksIteration$ = (0, utils_js_1.iterateAsyncVoid)(onRequestHooks, (onRequestHook, stopEarly) => onRequestHook({ | ||
@@ -86,0 +87,0 @@ request, |
@@ -74,8 +74,9 @@ /* eslint-disable @typescript-eslint/ban-types */ | ||
} | ||
let url = new Proxy(EMPTY_OBJECT, { | ||
get(_target, prop, _receiver) { | ||
url = new fetchAPI.URL(request.url, 'http://localhost'); | ||
return Reflect.get(url, prop, url); | ||
}, | ||
}); | ||
let url = request['parsedUrl'] || | ||
new Proxy(EMPTY_OBJECT, { | ||
get(_target, prop, _receiver) { | ||
url = new fetchAPI.URL(request.url, 'http://localhost'); | ||
return Reflect.get(url, prop, url); | ||
}, | ||
}); | ||
const onRequestHooksIteration$ = iterateAsyncVoid(onRequestHooks, (onRequestHook, stopEarly) => onRequestHook({ | ||
@@ -82,0 +83,0 @@ request, |
{ | ||
"name": "@whatwg-node/server", | ||
"version": "0.10.0-alpha-20241125130302-670fd9851060fb8e736194f703f4026f9566bf40", | ||
"version": "0.10.0-alpha-20241125130609-2d42652904068bfd5c22714b7277b8c77917aeba", | ||
"description": "Fetch API compliant HTTP Server adapter", | ||
@@ -5,0 +5,0 @@ "sideEffects": false, |
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
153025
3266