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.1 to 1.0.2

4

cli.js

@@ -58,3 +58,3 @@ const chokidar = require("chokidar");

input: ".",
domdiff: true,
domDiff: true,
}

@@ -70,3 +70,3 @@ }

logger: Logger,
domdiff: this.options.domdiff,
domDiff: this.options.domDiff,

@@ -73,0 +73,0 @@ // CLI watches all files in the folder by default

@@ -59,3 +59,3 @@ #!/usr/bin/env node

port: argv.port,
domdiff: argv.domdiff,
domDiff: argv.domdiff,
});

@@ -62,0 +62,0 @@

{
"name": "@11ty/eleventy-dev-server",
"version": "1.0.1",
"version": "1.0.2",
"description": "A minimal, modern, generic, hot-reloading local web server to help web developers.",

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

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

https: {}, // `key` and `cert`, required for http/2 and https
domdiff: true, // Use morphdom to apply DOM diffing delta updates to HTML
domDiff: true, // Use morphdom to apply DOM diffing delta updates to HTML
showVersion: false, // Whether or not to show the server version on the command line.

@@ -66,11 +66,11 @@ encoding: "utf-8", // Default file encoding

// better names for options https://github.com/11ty/eleventy-dev-server/issues/41
if(options.folder) {
if(options.folder !== undefined) {
this.options.injectedScriptsFolder = options.folder;
delete this.options.folder;
}
if(options.domdiff) {
if(options.domdiff !== undefined) {
this.options.domDiff = options.domdiff;
delete this.options.domdiff;
}
if(options.enabled) {
if(options.enabled !== undefined) {
this.options.liveReload = options.enabled;

@@ -526,2 +526,4 @@ delete this.options.enabled;

this.start = Date.now();
// Check for secure server requirements, otherwise use HTTP

@@ -583,3 +585,4 @@ let { key, cert } = this.options.https;

this.logger.info(`Server at ${hostsStr}${this._serverProtocol}//localhost:${port}${this.options.pathPrefix}${this.options.showVersion ? ` (v${pkg.version})` : ""}`);
let startBenchmark = ""; // this.start ? ` ready in ${Date.now() - this.start}ms` : "";
this.logger.info(`Server at ${hostsStr}${this._serverProtocol}//localhost:${port}${this.options.pathPrefix}${this.options.showVersion ? ` (v${pkg.version})` : ""}${startBenchmark}`);
});

@@ -765,2 +768,3 @@

});
console.log( build.templates );
}

@@ -767,0 +771,0 @@

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