Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

yaserver

Package Overview
Dependencies
Maintainers
1
Versions
6
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

yaserver - npm Package Compare versions

Comparing version 0.3.0 to 0.4.0

29

out/index.js

@@ -41,20 +41,21 @@ "use strict";

return __awaiter(this, void 0, void 0, function* () {
const headers = {
'Content-Encoding': 'utf8'
};
const headers = {};
switch (extname) {
case '.html':
headers['Content-Type'] = 'text/html';
case '.css':
headers['Content-Type'] = 'text/css; charset=utf-8';
break;
case '.htm':
headers['Content-Type'] = 'text/html';
headers['Content-Type'] = 'text/html; charset=utf-8';
break;
case '.html':
headers['Content-Type'] = 'text/html; charset=utf-8';
break;
case '.js':
headers['Content-Type'] = 'text/javascript';
headers['Content-Type'] = 'text/javascript; charset=utf-8';
break;
case '.css':
headers['Content-Type'] = 'text/css';
case '.json':
headers['Content-Type'] = 'application/json; charset=utf-8';
break;
case '.ttf':
headers['Content-Type'] = 'font/ttf';
case '.png':
headers['Content-Type'] = 'image/png';
break;

@@ -64,2 +65,8 @@ case '.svg':

break;
case '.ttf':
headers['Content-Type'] = 'font/ttf';
break;
case '.txt':
headers['Content-Type'] = 'text/plain; charset=utf-8';
break;
case '.wasm':

@@ -66,0 +73,0 @@ headers['Content-Type'] = 'application/wasm';

{
"name": "yaserver",
"version": "0.3.0",
"version": "0.4.0",
"description": "Yet Another Server",

@@ -5,0 +5,0 @@ "main": "out/index.js",

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