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

carbon-framework

Package Overview
Dependencies
Maintainers
1
Versions
30
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

carbon-framework - npm Package Compare versions

Comparing version 0.1.6 to 0.1.7

42

lib/index.js

@@ -50,9 +50,39 @@ var async = require("async");

app.server = app.express.listen(_options.server.port, _options.server.hostname, function() {
_.each(_app, function(func) {
func();
if (process.argv.indexOf("cli") > -1)
{
var args = process.argv.slice(process.argv.indexOf("cli") + 1);
switch (args.length)
{
case 3:
var modules = args[0];
var controller = args[1];
var action = args[2];
modules = modules.split(":");
modules = _.map(modules, function(module) {
return "/modules/" + module;
});
controller = "/controllers/" + controller;
action += "Action";
var path = modules.join("") + controller;
var controller = require(process.cwd() + path);
controller()[action].cli();
break;
}
}
else
{
app.server = app.express.listen(_options.server.port, _options.server.hostname, function() {
_.each(_app, function(func) {
func();
});
callback();
});
callback();
});
}
}

@@ -59,0 +89,0 @@

2

package.json
{
"name": "carbon-framework",
"version": "0.1.6",
"version": "0.1.7",
"description": " Modular MVC framework for Node.js based on Zend Framework ",

@@ -5,0 +5,0 @@ "homepage": "http://www.carbonjs.com/",

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