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

express-thunder

Package Overview
Dependencies
Maintainers
1
Versions
6
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

express-thunder - npm Package Compare versions

Comparing version 1.1.0 to 1.1.1

4

example/app.js

@@ -33,4 +33,4 @@ /**

http.createServer( app ).listen( app.get( 'port' ), function (){
console.log( 'Express server listening on port ' + app.get( 'port' ));
http.createServer( app ).listen( app.get( 'port' ), '127.0.0.1', function (){
console.log( 'Express server listening on port ' + this.address().port );
});
# History
## 1.1.1 / 2013-12-18
- [bug fix] Use `/` to load partial from view root dir instead of current dir
## 1.1.0 / 2013-12-12

@@ -4,0 +10,0 @@

@@ -11,2 +11,4 @@ var utils = require( './utils' );

var DESIRED_EXT = '.html';
/**

@@ -105,11 +107,9 @@ * Express 3.x Layout & Partial support for thunder.

if( layout ){
var desired_ext = '.html';
// apply default layout if only "true" was set
if( layout === true ){
layout = path.sep + 'layout' + desired_ext;
layout = path.sep + 'layout' + DESIRED_EXT;
}
if( extname( layout ) !== desired_ext ){
layout += desired_ext;
if( extname( layout ) !== DESIRED_EXT ){
layout += DESIRED_EXT;
}

@@ -195,5 +195,4 @@

function lookup( root, partial, options ){
var desired_ext = '.html';
var ext = extname( partial ) || desired_ext;
var key = [ root, partial, ext ].join( '-' );
var ext = extname( partial ) || DESIRED_EXT;
var key = [ root, partial, ext ].join( '-' );

@@ -314,3 +313,6 @@ if( options.cache && cache[ key ]) return cache[ key ];

// ( FIXME : filename is set by thunder engine, other engines may need more help )
var root = dirname( options.filename );
var root = view[ 0 ] === path.sep
? options.settings.views
: dirname( options.filename );
var file = lookup( root, view, options );

@@ -317,0 +319,0 @@ var key = file + ':string';

{
"version" : "1.1.0",
"version" : "1.1.1",
"name" : "express-thunder",

@@ -4,0 +4,0 @@ "description" : "Express 3.x locals for layout, partial and blocks for thunder template engine.",

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