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

express-view

Package Overview
Dependencies
Maintainers
3
Versions
6
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

express-view - npm Package Compare versions

Comparing version 0.0.1-rc2 to 0.0.1-rc3

.travis.yml

10

index.js

@@ -22,7 +22,2 @@ /*

if (!app.get('locator')) {
debug('Call `app.set("locator", locatorObj)` before extending the `express` app with `express-lang`');
throw new Error('Locator instance should be mounted');
}
// Brand.

@@ -36,2 +31,7 @@ Object.defineProperty(app, '@view', {

if (!app.get('locator')) {
debug('Call `app.set("locator", locatorObj)` before listening for traffic on the `express` app.');
throw new Error('Locator instance should be mounted');
}
options = options || {};

@@ -38,0 +38,0 @@ options.locator = app.get('locator');

@@ -134,3 +134,3 @@ /*

if (!template) {
throw new Error('Failed to lookup view "' + this.name + '"');
fn(new Error('Failed to lookup view "' + this.name + '"'));
}

@@ -137,0 +137,0 @@ if (layout) {

{
"name" : "express-view",
"description": "Express view class for synthetic views.",
"version" : "0.0.1-rc2",
"version" : "0.0.1-rc3",
"homepage" : "https://github.com/caridy/express-view",

@@ -16,2 +16,5 @@

},
"contributors": [
"alberto chan <imalberto@gmail.com>"
],

@@ -59,5 +62,5 @@ "main": "index",

"scripts": {
"test": "./node_modules/istanbul/lib/cli.js cover -- ./node_modules/.bin/_mocha tests/*.js --reporter spec",
"test": "./node_modules/istanbul/lib/cli.js cover -- ./node_modules/.bin/_mocha tests/units/*.js --reporter spec",
"lint": "node ./node_modules/.bin/jshint --config ./node_modules/yui-lint/jshint.json ./*.js ./lib/*.js"
}
}
Express View
============
[![Build Status](https://travis-ci.org/yahoo/express-view.png?branch=master)](https://travis-ci.org/yahoo/express-view)
`express-view` ships with a custom `express` view class implementation which allows to control `res.render()` calls. Normally, `express` along with some specific view engine can do the work of compiling and rendering templates on the server side, but `express-view` span that to support the use of compiled-to-javascript templates that were already provisioned in memory thru a filesystem abstraction component like `locator`.

@@ -62,1 +64,8 @@

[LICENSE file]: https://github.com/caridy/express-view/blob/master/LICENSE
Contribute
----------
See the [CONTRIBUTING.md file][] for more information.
[CONTRIBUTING.md file]: https://github.com/express-view/blob/master/CONTRIBUTING.md
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