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

vision

Package Overview
Dependencies
Maintainers
1
Versions
29
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

vision - npm Package Compare versions

Comparing version 1.2.1 to 1.2.2

2

lib/index.js

@@ -286,2 +286,4 @@ // Load modules

context = context || {};
var engine = null;

@@ -288,0 +290,0 @@

2

package.json
{
"name": "vision",
"description": "Templates rendering support for hapi.js",
"version": "1.2.1",
"version": "1.2.2",
"repository": "git://github.com/hapijs/vision",

@@ -6,0 +6,0 @@ "main": "index",

@@ -666,2 +666,18 @@ // Load modules

it('renders without handler/global-context (with layout)', function (done) {
var testView = new Vision.Manager({
engines: { html: require('handlebars') },
path: __dirname + '/templates',
layout: true
});
testView.render('valid/test', null, null, function (err, rendered, config) {
expect(rendered).to.exist();
expect(rendered).to.contain('<div>\n <h1></h1>\n</div>\n');
done();
});
});
it('renders with a global context object', function (done) {

@@ -668,0 +684,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