Comparing version 0.2.9 to 0.2.10
@@ -5,2 +5,9 @@ # Changelog | ||
### [0.2.10](https://github.com/unjs/h3/compare/v0.2.9...v0.2.10) (2021-04-21) | ||
### Bug Fixes | ||
* fallback for setImmediate ([6cf61f6](https://github.com/unjs/h3/commit/6cf61f601d206a9d3cdcf368cb700ebd5c2e22de)) | ||
### [0.2.9](https://github.com/unjs/h3/compare/v0.2.8...v0.2.9) (2021-04-06) | ||
@@ -7,0 +14,0 @@ |
@@ -414,2 +414,3 @@ 'use strict'; | ||
const defer = typeof setImmediate !== "undefined" ? setImmediate : (fn) => fn(); | ||
function send(res, data, type) { | ||
@@ -420,3 +421,3 @@ if (type) { | ||
return new Promise((resolve) => { | ||
setImmediate(() => { | ||
defer(() => { | ||
res.end(data); | ||
@@ -423,0 +424,0 @@ resolve(void 0); |
{ | ||
"name": "h3", | ||
"version": "0.2.9", | ||
"version": "0.2.10", | ||
"description": "Tiny JavaScript Server", | ||
@@ -5,0 +5,0 @@ "repository": "unjs/h3", |
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
53659
1282