Comparing version 4.1.0 to 4.1.1
@@ -49,6 +49,3 @@ 'use strict'; | ||
Fs.writeFileSync(Path.join(this._dirPath, name), contents); | ||
this._cache[name] = { | ||
name: name, | ||
contents: contents | ||
}; | ||
this._cache[name] = { name, contents }; | ||
}; | ||
@@ -55,0 +52,0 @@ |
@@ -37,3 +37,3 @@ 'use strict'; | ||
server.route({ method: 'GET', path: '/', handler: handler }); | ||
server.route({ method: 'GET', path: '/', handler }); | ||
server.start((err) => { | ||
@@ -40,0 +40,0 @@ |
@@ -39,3 +39,3 @@ 'use strict'; | ||
server.route({ method: 'GET', path: '/', handler: handler }); | ||
server.route({ method: 'GET', path: '/', handler }); | ||
server.start((err) => { | ||
@@ -42,0 +42,0 @@ |
@@ -38,3 +38,3 @@ 'use strict'; | ||
server.route({ method: 'GET', path: '/', handler: handler }); | ||
server.route({ method: 'GET', path: '/', handler }); | ||
server.start((err) => { | ||
@@ -41,0 +41,0 @@ |
@@ -38,3 +38,3 @@ 'use strict'; | ||
server.route({ method: 'GET', path: '/', handler: handler }); | ||
server.route({ method: 'GET', path: '/', handler }); | ||
server.start((err) => { | ||
@@ -41,0 +41,0 @@ |
@@ -0,0 +0,0 @@ 'use strict'; |
@@ -0,0 +0,0 @@ var React = require('react'); |
@@ -0,0 +0,0 @@ var React = require('react'); |
@@ -50,3 +50,3 @@ 'use strict'; | ||
server.route({ method: 'GET', path: '/', handler: handler }); | ||
server.route({ method: 'GET', path: '/', handler }); | ||
server.start((err) => { | ||
@@ -53,0 +53,0 @@ |
@@ -241,3 +241,3 @@ 'use strict'; | ||
let path = internals.path(engine.config.relativeTo, helpersPath); | ||
if (!Hoek.isAbsolutePath(path)) { | ||
if (!Path.isAbsolute(path)) { | ||
path = Path.join(process.cwd(), path); | ||
@@ -322,3 +322,3 @@ } | ||
template = template + (fileExtension ? '' : engine.suffix); | ||
template = template + (fileExtension ? '' : engine.suffix); | ||
@@ -418,3 +418,3 @@ // Engine is ready to render | ||
const isAbsolutePath = Hoek.isAbsolutePath(template); | ||
const isAbsolutePath = Path.isAbsolute(template); | ||
const isInsecurePath = template.match(/\.\.\//g); | ||
@@ -486,4 +486,6 @@ | ||
if (compiled.layout && context.hasOwnProperty(compiled.settings.layoutKeyword)) { | ||
return callback(Boom.badImplementation('settings.layoutKeyword conflict', { context: context, keyword: compiled.settings.layoutKeyword })); | ||
if (compiled.layout && | ||
context.hasOwnProperty(compiled.settings.layoutKeyword)) { | ||
return callback(Boom.badImplementation('settings.layoutKeyword conflict', { context, keyword: compiled.settings.layoutKeyword })); | ||
} | ||
@@ -523,3 +525,3 @@ | ||
if (path && | ||
Hoek.isAbsolutePath(path)) { | ||
Path.isAbsolute(path)) { | ||
@@ -571,9 +573,3 @@ return Path.join(path, file || ''); | ||
const source = { | ||
manager: this, | ||
template: template, | ||
context: context, | ||
options: options | ||
}; | ||
const source = { manager: this, template, context, options }; | ||
return request.generateResponse(source, { variety: 'view', marshal: internals.marshal, prepare: internals.prepare }); | ||
@@ -580,0 +576,0 @@ }; |
{ | ||
"name": "vision", | ||
"description": "Templates rendering plugin support for hapi.js", | ||
"version": "4.1.0", | ||
"version": "4.1.1", | ||
"repository": "git://github.com/hapijs/vision", | ||
@@ -17,6 +17,6 @@ "main": "lib/index.js", | ||
"dependencies": { | ||
"boom": "3.x.x", | ||
"hoek": "3.x.x", | ||
"boom": "4.x.x", | ||
"hoek": "4.x.x", | ||
"items": "2.x.x", | ||
"joi": "8.x.x" | ||
"joi": "10.x.x" | ||
}, | ||
@@ -26,9 +26,9 @@ "devDependencies": { | ||
"babel-plugin-transform-react-jsx": "6.x.x", | ||
"code": "2.x.x", | ||
"code": "4.x.x", | ||
"ejs": "2.x.x", | ||
"handlebars": "4.x.x", | ||
"hapi": "13.x.x", | ||
"hapi": "15.x.x", | ||
"hapi-react-views": "6.x.x", | ||
"jade": "1.x.x", | ||
"lab": "10.x.x", | ||
"pug": ">=2.0.0-beta6", | ||
"lab": "11.x.x", | ||
"marko": "3.x.x", | ||
@@ -35,0 +35,0 @@ "mustache": "2.x.x", |
@@ -9,3 +9,3 @@ 'use strict'; | ||
const Hoek = require('hoek'); | ||
const Jade = require('jade'); | ||
const Pug = require('pug'); | ||
const Lab = require('lab'); | ||
@@ -57,3 +57,3 @@ const Vision = require('..'); | ||
server.views({ | ||
engines: { jade: Jade }, | ||
engines: { pug: Pug }, | ||
path: __dirname + '/templates' | ||
@@ -566,3 +566,3 @@ }); | ||
server.route({ method: 'GET', path: '/', handler: handler }); | ||
server.route({ method: 'GET', path: '/', handler }); | ||
server.inject({ method: 'GET', url: '/' }, (response) => { | ||
@@ -622,3 +622,3 @@ | ||
server.route({ method: 'GET', path: '/', handler: handler }); | ||
server.route({ method: 'GET', path: '/', handler }); | ||
server.inject({ method: 'GET', url: '/' }, (response) => { | ||
@@ -649,3 +649,3 @@ | ||
server.route({ method: 'GET', path: '/', handler: handler }); | ||
server.route({ method: 'GET', path: '/', handler }); | ||
server.inject({ method: 'GET', url: '/' }, (response) => { | ||
@@ -652,0 +652,0 @@ |
throw new Error('Do not load me'); |
'use strict'; | ||
exports = module.exports = 'not a function'; |
@@ -0,0 +0,0 @@ 'use strict'; |
@@ -0,0 +0,0 @@ 'use strict'; |
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is too big to display
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
174298
3523
+ Addedboom@4.3.1(transitive)
+ Addedjoi@10.6.0(transitive)
- Removedboom@3.2.2(transitive)
- Removedhoek@3.0.4(transitive)
- Removedjoi@8.4.2(transitive)
- Removedmoment@2.30.1(transitive)
Updatedboom@4.x.x
Updatedhoek@4.x.x
Updatedjoi@10.x.x