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

@11ty/eleventy-dev-server

Package Overview
Dependencies
Maintainers
1
Versions
24
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@11ty/eleventy-dev-server - npm Package Compare versions

Comparing version 1.0.0-canary.3 to 1.0.0-canary.4

2

package.json
{
"name": "@11ty/eleventy-dev-server",
"version": "1.0.0-canary.3",
"version": "1.0.0-canary.4",
"description": "A minimal, modern, generic, hot-reloading local web server to help web developers.",

@@ -5,0 +5,0 @@ "main": "server.js",

@@ -25,2 +25,3 @@ const pkg = require("./package.json");

showVersion: false, // Whether or not to show the server version on the command line.
encoding: "utf-8", // Default file encoding

@@ -185,3 +186,3 @@ pathPrefix: "/", // May be overridden by Eleventy, adds a virtual base directory to your project

let contents = fs.readFileSync(filepath, {
encoding: "utf8",
encoding: this.options.encoding,
});

@@ -268,3 +269,3 @@ if(useCache) {

if (mimeType === "text/html") {
res.setHeader("Content-Type", mimeType);
res.setHeader("Content-Type", `text/html; charset=${this.options.encoding}`);
// the string is important here, wrapResponse expects strings internally for HTML content (for now)

@@ -271,0 +272,0 @@ return res.end(contents.toString());

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