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

live-dev-server

Package Overview
Dependencies
Maintainers
1
Versions
28
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

live-dev-server - npm Package Compare versions

Comparing version 0.10.0 to 0.11.0

1

lib/config.js

@@ -21,2 +21,3 @@ const path = require('path')

before: function () {},
after: function () {},
workspace: defaultWorkspace,

@@ -23,0 +24,0 @@ root: defaultWorkspace,

10

lib/index.js

@@ -7,3 +7,2 @@ const http = require('http')

const parseUrl = require('parseurl')
const bodyParser = require('body-parser')
const send = require('send')

@@ -51,4 +50,2 @@ const WebSocket = require('ws')

app.use(bodyParser.urlencoded({ extended: false }))
// 处理自定义inject片段

@@ -59,3 +56,3 @@ assertFunc(options, 'inject', function () {

// 处理before钩子
// before
assertFunc(options, 'before', function () {

@@ -118,2 +115,7 @@ options.before(app)

// after
assertFunc(options, 'after', function () {
options.after(app)
})
wsIns.on('connection', function connection(ws) {

@@ -120,0 +122,0 @@ ws.on('message', function incoming(message) {

{
"name": "live-dev-server",
"version": "0.10.0",
"version": "0.11.0",
"description": "develop env, watch files change",

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

@@ -28,3 +28,3 @@ # live-dev-server

1. incoming option
2. `lds.config.js`
2. `lds.config.js` or `live.config.js`
3. default option

@@ -58,3 +58,3 @@

project dir create a configuration file: `lds.config.js`.such as:
project dir create a configuration file: `lds.config.js/live.config.js`.such as:

@@ -110,3 +110,3 @@ ```js

```
when config watcher, In the `inject` code, you will receive `wacher-[name]`, and `isDir` can be used to determine whether it is a folder.
when config watcher, In the `inject` code, you will receive `watcher-[name]`, and `isDir` can be used to determine whether it is a folder.

@@ -113,0 +113,0 @@ ```bash

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