New Case Study:See how Anthropic automated 95% of dependency reviews with Socket.Learn More
Socket
Sign inDemoInstall
Socket

bunshine

Package Overview
Dependencies
Maintainers
1
Versions
43
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

bunshine - npm Package Compare versions

Comparing version 0.11.0 to 0.11.1

4

package.json
{
"name": "bunshine",
"version": "0.11.0",
"version": "0.11.1",
"module": "server/server.ts",

@@ -19,3 +19,3 @@ "type": "module",

"@types/ms": "^0.7.34",
"bun-types": "^1.0.21",
"bun-types": "^1.0.22",
"eventsource": "^2.0.2",

@@ -22,0 +22,0 @@ "mitata": "^0.1.6",

@@ -1,7 +0,7 @@

<img alt="Bunshine Logo" src="https://github.com/kensnyder/bunshine/raw/main/assets/bunshine-logo.png?v=0.11.0" width="200" height="187" />
<img alt="Bunshine Logo" src="https://github.com/kensnyder/bunshine/raw/main/assets/bunshine-logo.png?v=0.11.1" width="200" height="187" />
[![NPM Link](https://img.shields.io/npm/v/bunshine?v=0.11.0)](https://npmjs.com/package/bunshine)
[![Dependencies](https://badgen.net/static/dependencies/3/green?v=0.11.0)](https://www.npmjs.com/package/bunshine?activeTab=dependencies)
![Test Coverage: 96%](https://badgen.net/static/test%20coverage/96%25/green?v=0.11.0)
[![ISC License](https://img.shields.io/npm/l/bunshine.svg?v=0.11.0)](https://opensource.org/licenses/ISC)
[![NPM Link](https://img.shields.io/npm/v/bunshine?v=0.11.1)](https://npmjs.com/package/bunshine)
[![Dependencies](https://badgen.net/static/dependencies/3/green?v=0.11.1)](https://www.npmjs.com/package/bunshine?activeTab=dependencies)
![Test Coverage: 96%](https://badgen.net/static/test%20coverage/96%25/green?v=0.11.1)
[![ISC License](https://img.shields.io/npm/l/bunshine.svg?v=0.11.1)](https://opensource.org/licenses/ISC)

@@ -8,0 +8,0 @@ # Bunshine

@@ -210,4 +210,12 @@ import { BunFile } from 'bun';

} else {
// Bun will automatically set content-type and length
response = new Response(file, { status: method === 'HEAD' ? 204 : 200 });
// Bun will automatically set content-type and content-length,
// but delays until the response is actually sent, but middleware might
// want to know the file details ahead of time
response = new Response(file, {
headers: {
'Content-Length': String(file.size),
'Content-Type': file.type || 'application/octet-stream',
},
status: method === 'HEAD' ? 204 : 200,
});
}

@@ -214,0 +222,0 @@ if (acceptRanges) {

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