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

locomotive

Package Overview
Dependencies
Maintainers
1
Versions
17
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

locomotive - npm Package Compare versions

Comparing version 0.3.1 to 0.3.2

README.md

1

lib/locomotive/cli/create.js

@@ -136,2 +136,3 @@ /**

, ' this.use(express.bodyParser());'
, ' this.use(express.methodOverride());'
, ' this.use(this.router);'

@@ -138,0 +139,0 @@ , '}'

5

lib/locomotive/controller.js

@@ -308,2 +308,5 @@ /**

var self = this;
this.__defineGetter__('app', function() {
return self.__app;
});
this.__defineGetter__('req', function() {

@@ -373,3 +376,3 @@ return self.__req;

for (var key in this) {
if (this.hasOwnProperty(key) && (typeof this[key] == 'function')) {
if (this.hasOwnProperty(key) && (typeof this[key] == 'function') && key.charAt(0) !== '_') {
actions.push(key);

@@ -376,0 +379,0 @@ }

@@ -72,3 +72,3 @@ /**

if (req.headers && req.headers['host']) {
options.protocol = options.protocol || 'http';
options.protocol = options.protocol || req.protocol || 'http';
options.host = options.host || req.headers['host'];

@@ -75,0 +75,0 @@ }

@@ -242,4 +242,5 @@ /**

// to be used interchangably with Express.
utils.forward(this, app, [ 'get', 'set', 'enabled', 'disabled', 'enable', 'disable',
utils.forward(this, app, [ 'configure', 'get', 'set', 'enabled', 'disabled', 'enable', 'disable',
'use', 'engine', 'locals' ]);
this.express = app;
this.router = app.router;

@@ -349,3 +350,3 @@ this.mime = express.mime;

// Boot the application by configuriong the environment, invoking
// Boot the application by configuring the environment, invoking
// initializers, loading controllers, and drawing routes.

@@ -352,0 +353,0 @@ async.series([

{
"name": "locomotive",
"version": "0.3.1",
"version": "0.3.2",
"description": "Powerful MVC web framework for Node.js.",

@@ -5,0 +5,0 @@ "author": { "name": "Jared Hanson", "email": "jaredhanson@gmail.com", "url": "http://www.jaredhanson.net/" },

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