@whatwg-node/server
Advanced tools
Comparing version 0.9.55-alpha-20241113153744-677b7cee4a8b32771faeb05388fe94aa2c86a4a3 to 0.9.55-alpha-20241114090114-40c4d0452f457fce9ab979f871ee009d0166b421
@@ -448,4 +448,17 @@ "use strict"; | ||
} | ||
originalCtx = {}; | ||
return { | ||
waitUntil(promise) { | ||
waitUntilPromises.push(promise.catch(err => console.error(err))); | ||
}, | ||
}; | ||
} | ||
if (Object.getPrototypeOf(originalCtx) === null || | ||
Object.getPrototypeOf(originalCtx).toString() === '[object Object]') { | ||
Object.defineProperty(originalCtx, 'waitUntil', { | ||
value(promise) { | ||
waitUntilPromises?.push(promise.catch(err => console.error(err))); | ||
}, | ||
}); | ||
return originalCtx; | ||
} | ||
const extraPropsByReceiver = new WeakMap(); | ||
@@ -452,0 +465,0 @@ const deletedPropsByReceiver = new WeakMap(); |
@@ -426,4 +426,17 @@ export function isAsyncIterable(body) { | ||
} | ||
originalCtx = {}; | ||
return { | ||
waitUntil(promise) { | ||
waitUntilPromises.push(promise.catch(err => console.error(err))); | ||
}, | ||
}; | ||
} | ||
if (Object.getPrototypeOf(originalCtx) === null || | ||
Object.getPrototypeOf(originalCtx).toString() === '[object Object]') { | ||
Object.defineProperty(originalCtx, 'waitUntil', { | ||
value(promise) { | ||
waitUntilPromises?.push(promise.catch(err => console.error(err))); | ||
}, | ||
}); | ||
return originalCtx; | ||
} | ||
const extraPropsByReceiver = new WeakMap(); | ||
@@ -430,0 +443,0 @@ const deletedPropsByReceiver = new WeakMap(); |
{ | ||
"name": "@whatwg-node/server", | ||
"version": "0.9.55-alpha-20241113153744-677b7cee4a8b32771faeb05388fe94aa2c86a4a3", | ||
"version": "0.9.55-alpha-20241114090114-40c4d0452f457fce9ab979f871ee009d0166b421", | ||
"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
155756
3342