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

component-serve

Package Overview
Dependencies
Maintainers
1
Versions
12
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

component-serve - npm Package Compare versions

Comparing version 0.4.0 to 0.5.0

.npmignore

6

builder.js

@@ -17,8 +17,8 @@ var Builder = require('component-builder');

res.locals.js = obj.require + obj.js;
res.locals.js = opts.noRequire ? obj.js : obj.require + obj.js;
res.locals.css = obj.css;
next();
});
}
};
};

@@ -6,11 +6,8 @@ var express = require('express');

module.exports = function(opts) {
if (!opts.out) opts.out = new Temp().path;
var router = express();
var rebuild = builder(opts);
opts.dev = 'dev' in opts ? opts.dev : true;
opts.out = new Temp().path;
router.use(express.static(opts.out));
var rebuild = builder(opts);
router.get('/build.js', rebuild, function(req, res) {

@@ -17,0 +14,0 @@ res.type('js');

{
"name": "component-serve",
"version": "0.4.0",
"version": "0.5.0",
"description": "Development server that builds your components on every request",

@@ -12,7 +12,7 @@ "author": "Michal Miskernik <michal@miskernik.sk>",

"dependencies": {
"component-builder": "~0.9.0",
"express": "~3.2.6",
"commander": "~1.1.1",
"temporary": "0.0.5"
"component-builder": "~0.9.2",
"express": "~3.4.0",
"commander": "~2.0.0",
"temporary": "0.0.6"
}
}

@@ -23,3 +23,4 @@ # component-serve

# Running on localhost:3000 and output at directory named `out`
$ component serve -o out
# Compiled files available on /out/build.js /out/build.css
$ component serve --out out

@@ -29,2 +30,5 @@ # Running on localhost:3000 and use component-styl builder plugin

$ component serve --use component-styl
# Running on localhost:3000 and compile build.js without require
$ component serve --no-require
```

@@ -31,0 +35,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