Comparing version 0.2.6 to 0.2.7
@@ -5,2 +5,4 @@ # Changelog | ||
### [0.2.7](https://github.com/unjs/h3/compare/v0.2.6...v0.2.7) (2021-03-27) | ||
### [0.2.6](https://github.com/unjs/h3/compare/v0.2.5...v0.2.6) (2021-03-27) | ||
@@ -7,0 +9,0 @@ |
@@ -418,3 +418,3 @@ 'use strict'; | ||
} | ||
res.end(data); | ||
setImmediate(() => res.end(data)); | ||
} | ||
@@ -429,4 +429,3 @@ function defaultContentType(res, type) { | ||
res.setHeader("Location", location); | ||
defaultContentType(res, MIMES.html); | ||
res.end(location); | ||
send(res, "Redirecting to " + location, MIMES.html); | ||
} | ||
@@ -557,3 +556,3 @@ function appendHeader(res, name, value) { | ||
if (res.writableEnded) { | ||
break; | ||
return; | ||
} | ||
@@ -563,3 +562,3 @@ const type = typeof val; | ||
send(res, val, MIMES.html); | ||
break; | ||
return; | ||
} else if (type === "object" && val !== void 0) { | ||
@@ -571,3 +570,3 @@ if (val.buffer) { | ||
} | ||
break; | ||
return; | ||
} | ||
@@ -574,0 +573,0 @@ } |
{ | ||
"name": "h3", | ||
"version": "0.2.6", | ||
"version": "0.2.7", | ||
"description": "Tiny JavaScript Server", | ||
@@ -19,5 +19,7 @@ "repository": "unjs/h3", | ||
"release": "yarn test && yarn build && standard-version && npm publish && git push --follow-tags", | ||
"profile": "0x -o -D .profile -P 'autocannon -c 100 -p 10 -d 40 http://localhost:$PORT' ./hello.js", | ||
"test": "yarn lint && jest" | ||
}, | ||
"devDependencies": { | ||
"0x": "latest", | ||
"@nuxtjs/eslint-config-typescript": "latest", | ||
@@ -29,2 +31,3 @@ "@types/cookie": "latest", | ||
"@types/supertest": "latest", | ||
"autocannon": "latest", | ||
"connect": "latest", | ||
@@ -31,0 +34,0 @@ "cookie": "latest", |
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
52646
23
1274