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

connect-livereload

Package Overview
Dependencies
Maintainers
1
Versions
20
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

connect-livereload - npm Package Compare versions

Comparing version 0.5.4 to 0.6.0

7

index.js

@@ -23,6 +23,9 @@ module.exports = function livereload(opt) {

var port = opt.port || 35729;
var plugins = opt.plugins || [];
function snippet(host) {
var src = opt.src || '//' + host + ':' + port + '/livereload.js?snipver=1';
return '<script src="' + src + '" async="" defer=""></script>';
return [src].concat(plugins).map(function(source) {
return '<script src="' + source + '" async="" defer=""></script>';
}).join('');
}

@@ -156,3 +159,3 @@

// Also, some implementations call "end" directly with all data.
res.inject(string);
res.inject(string, encoding);
runPatches = false;

@@ -159,0 +162,0 @@ // Check if our body is HTML, and if it does not already have the snippet.

{
"name": "connect-livereload",
"description": "connect middleware for adding the livereload script to the response",
"version": "0.5.4",
"version": "0.6.0",
"author": "Andi Neck <andi.neck@intesso.com>",

@@ -6,0 +6,0 @@ "contributors": [

@@ -98,2 +98,10 @@

disableCompression: false,
// Locations where livereload plugins are provided (not by connect-livereload).
// These plugins should handle being loaded before _or_ after the livereload
// script itself (the order is not guaranteed), like
// https://github.com/mixmaxhq/livereload-require-js-includes/blob/5a431793d6fdfcf93d66814ddc58338515a3254f/index.js#L40-L45
plugins: [
"http://localhost:3001/livereload-require-js-includes/index.js"
]
```

@@ -100,0 +108,0 @@

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