@whatwg-node/server
Advanced tools
Comparing version 0.4.0 to 0.4.1
29
index.js
@@ -269,19 +269,24 @@ 'use strict'; | ||
get: (_, prop) => { | ||
if (adapterObj[prop]) { | ||
if (adapterObj[prop].bind) { | ||
return adapterObj[prop].bind(adapterObj); | ||
const adapterProp = adapterObj[prop]; | ||
if (adapterProp) { | ||
if (adapterProp.bind) { | ||
return adapterProp.bind(adapterObj); | ||
} | ||
return adapterObj[prop]; | ||
return adapterProp; | ||
} | ||
if (genericRequestHandler[prop]) { | ||
if (genericRequestHandler[prop].bind) { | ||
return genericRequestHandler[prop].bind(genericRequestHandler); | ||
const genericRequestHandlerProp = genericRequestHandler[prop]; | ||
if (genericRequestHandlerProp) { | ||
if (genericRequestHandlerProp.bind) { | ||
return genericRequestHandlerProp.bind(genericRequestHandler); | ||
} | ||
return genericRequestHandler[prop]; | ||
return genericRequestHandlerProp; | ||
} | ||
if (prop in serverAdapterBaseObject) { | ||
if (serverAdapterBaseObject[prop].bind) { | ||
return serverAdapterBaseObject[prop].bind(serverAdapterBaseObject); | ||
if (serverAdapterBaseObject) { | ||
const serverAdapterBaseObjectProp = serverAdapterBaseObject[prop]; | ||
if (serverAdapterBaseObjectProp) { | ||
if (serverAdapterBaseObjectProp.bind) { | ||
return serverAdapterBaseObjectProp.bind(serverAdapterBaseObject); | ||
} | ||
return serverAdapterBaseObjectProp; | ||
} | ||
return serverAdapterBaseObject[prop]; | ||
} | ||
@@ -288,0 +293,0 @@ }, |
{ | ||
"name": "@whatwg-node/server", | ||
"version": "0.4.0", | ||
"version": "0.4.1", | ||
"description": "Fetch API compliant HTTP Server adapter", | ||
@@ -5,0 +5,0 @@ "sideEffects": false, |
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
37429
657