Socket
Socket
Sign inDemoInstall

h3

Package Overview
Dependencies
Maintainers
1
Versions
98
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

h3 - npm Package Compare versions

Comparing version 0.2.6 to 0.2.7

2

CHANGELOG.md

@@ -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 @@

11

dist/index.js

@@ -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

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc