Socket
Socket
Sign inDemoInstall

koa-livereload

Package Overview
Dependencies
62
Maintainers
1
Versions
6
Alerts
File Explorer

Advanced tools

Install Socket

Detect and block malicious and high-risk dependencies

Install

Comparing version 0.1.0 to 0.1.1

6

index.js

@@ -13,3 +13,3 @@ var StreamInjecter = require('stream-injecter');

if (this.response.type.indexOf('html') < 0) return;
if (this.response.type && this.response.type.indexOf('html') < 0) return;

@@ -26,5 +26,5 @@ // Buffer

}
// stream
if (typeof this.body.pipe === 'function') {
if (this.body && typeof this.body.pipe === 'function') {
var injecter = new StreamInjecter({

@@ -31,0 +31,0 @@ matchRegExp : /(<\/body>)/,

{
"name": "koa-livereload",
"version": "0.1.0",
"version": "0.1.1",
"description": "Livereload script loader for Koa",

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

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc