@whatwg-node/server
Advanced tools
Comparing version 0.9.63-alpha-20241212154840-0a0effe808a6614e0a3afd853126a38641485756 to 0.9.63-alpha-20241212160430-140b66f028923f44368e67598b6b66f47f690454
@@ -201,3 +201,3 @@ "use strict"; | ||
res.onAborted = function (cb) { | ||
ctrl.signal.addEventListener('abort', cb); | ||
ctrl.signal.addEventListener('abort', cb, { once: true }); | ||
}; | ||
@@ -204,0 +204,0 @@ const request = (0, uwebsockets_js_1.getRequestFromUWSRequest)({ |
@@ -440,3 +440,3 @@ "use strict"; | ||
deferred$.reject(abortSignal.reason); | ||
}); | ||
}, { once: true }); | ||
response$ | ||
@@ -443,0 +443,0 @@ .then(function fetchSuccessHandler(res) { |
@@ -48,3 +48,3 @@ "use strict"; | ||
stop(); | ||
}); | ||
}, { once: true }); | ||
let readableStream; | ||
@@ -216,3 +216,3 @@ getReadableStream = () => { | ||
} | ||
}); | ||
}, { once: true }); | ||
return fetchResponse.body | ||
@@ -219,0 +219,0 @@ .pipeTo(createWritableFromUWS(uwsResponse, fetchAPI), { |
@@ -197,3 +197,3 @@ import { AsyncDisposableStack, DisposableSymbols } from '@whatwg-node/disposablestack'; | ||
res.onAborted = function (cb) { | ||
ctrl.signal.addEventListener('abort', cb); | ||
ctrl.signal.addEventListener('abort', cb, { once: true }); | ||
}; | ||
@@ -200,0 +200,0 @@ const request = getRequestFromUWSRequest({ |
@@ -418,3 +418,3 @@ export function isAsyncIterable(body) { | ||
deferred$.reject(abortSignal.reason); | ||
}); | ||
}, { once: true }); | ||
response$ | ||
@@ -421,0 +421,0 @@ .then(function fetchSuccessHandler(res) { |
@@ -41,3 +41,3 @@ import { isPromise } from './utils.js'; | ||
stop(); | ||
}); | ||
}, { once: true }); | ||
let readableStream; | ||
@@ -209,3 +209,3 @@ getReadableStream = () => { | ||
} | ||
}); | ||
}, { once: true }); | ||
return fetchResponse.body | ||
@@ -212,0 +212,0 @@ .pipeTo(createWritableFromUWS(uwsResponse, fetchAPI), { |
{ | ||
"name": "@whatwg-node/server", | ||
"version": "0.9.63-alpha-20241212154840-0a0effe808a6614e0a3afd853126a38641485756", | ||
"version": "0.9.63-alpha-20241212160430-140b66f028923f44368e67598b6b66f47f690454", | ||
"description": "Fetch API compliant HTTP Server adapter", | ||
@@ -8,3 +8,3 @@ "sideEffects": false, | ||
"@whatwg-node/disposablestack": "^0.0.5", | ||
"@whatwg-node/fetch": "0.11.0-alpha-20241212154840-0a0effe808a6614e0a3afd853126a38641485756", | ||
"@whatwg-node/fetch": "0.11.0-alpha-20241212160430-140b66f028923f44368e67598b6b66f47f690454", | ||
"tslib": "^2.6.3" | ||
@@ -11,0 +11,0 @@ }, |
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
153635
+ Added@whatwg-node/fetch@0.11.0-alpha-20241212160430-140b66f028923f44368e67598b6b66f47f690454(transitive)
+ Added@whatwg-node/node-fetch@0.8.0-alpha-20241212160430-140b66f028923f44368e67598b6b66f47f690454(transitive)
- Removed@whatwg-node/fetch@0.11.0-alpha-20241212154840-0a0effe808a6614e0a3afd853126a38641485756(transitive)
- Removed@whatwg-node/node-fetch@0.8.0-alpha-20241212154840-0a0effe808a6614e0a3afd853126a38641485756(transitive)
Updated@whatwg-node/fetch@0.11.0-alpha-20241212160430-140b66f028923f44368e67598b6b66f47f690454