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

nodulejs

Package Overview
Dependencies
Maintainers
1
Versions
45
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

nodulejs - npm Package Compare versions

Comparing version 1.1.5 to 1.1.6

demo/altHomePage.jade

6

demo/demoApp.js

@@ -14,5 +14,5 @@ // simplistic example application for nodulejs

debug = function(msg) {
if (mergedConfig.debugToConsole) console.log('nodule demoApp: ' + msg);
};
debug = (appConfig.customDebug)
? appConfig.customDebug('demoApp')
: function(msg) { if (mergedConfig.debugToConsole) console.log('nodule demoApp: ' + msg); };
};

@@ -19,0 +19,0 @@

@@ -11,5 +11,5 @@ // basic page example (serving multiple routes)

// example of specifying a nodule property at request time
this.templateName = (req.path.indexOf('special') > -1) ? 'specialHomePage.jade' : 'homePage.jade';
this.templateName = (req.path.indexOf('special') > -1) ? 'altHomePage.jade' : 'homePage.jade';
}
};
};
{
"name": "nodulejs",
"version": "1.1.5",
"version": "1.1.6",
"description": "Utility for discovering and initializing node/express 'nodules'",

@@ -5,0 +5,0 @@ "main": "nodule.js",

@@ -38,3 +38,3 @@ var assert = require('assert');

.end(function(err, res){
assert(res.text.indexOf('<h1>SPECIAL HOME PAGE') > -1, 'res.text='+res.text);
assert(res.text.indexOf('<h1>ALTERNATE HOME PAGE') > -1, 'res.text='+res.text);
done();

@@ -41,0 +41,0 @@ });

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