New Case Study:See how Anthropic automated 95% of dependency reviews with Socket.Learn More
Socket
Sign inDemoInstall
Socket

pruno-http

Package Overview
Dependencies
Maintainers
1
Versions
10
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

pruno-http - npm Package Compare versions

Comparing version 1.0.2 to 2.0.0

19

index.js
"use strict";
var serverRunner = require('./utils/server-runner');
var path = require('path');
var supervisor = require('supervisor');
var livereload = require('tiny-lr')();

@@ -14,2 +15,3 @@ function HttpTask (params) {

return {
lrPort: 35729,
listen: 3000,

@@ -23,8 +25,13 @@ env: 'development',

return function() {
if (! params.file) {
params.file = path.join(__dirname, './utils/server.js');
}
var simpleServer = path.join(__dirname, './utils/server.js');
var server = params.file || simpleServer;
serverRunner.run(params);
return gulp.watch(params.dist + '/**/*', serverRunner.notify);
livereload.listen(params.lrPort);
gulp.watch([params.dist + '/**/*'], function(event) {
var fileName = path.relative(__dirname, event.path);
livereload.changed({body: { files: [fileName] }});
});
supervisor.run(['--harmony', '-i build/', '-e js', server]);
};

@@ -31,0 +38,0 @@ };

{
"name": "pruno-http",
"version": "1.0.2",
"version": "2.0.0",
"description": "A simple HTTP server for pruno. Especially useful for prototyping or building static sites.",

@@ -30,4 +30,5 @@ "main": "index.js",

"serve-static": "^1.8.1",
"supervisor": "^0.6.0",
"tiny-lr": "^0.1.5"
}
}
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