Comparing version 1.8.1 to 1.8.2
@@ -15,3 +15,2 @@ #!/usr/bin/env node | ||
, join = path.join | ||
, monocle = require('monocle')() | ||
, mkdirp = require('mkdirp') | ||
@@ -95,3 +94,5 @@ , jade = require('../'); | ||
options.name = program.name; | ||
if (typeof program.name === 'string') { | ||
options.name = program.name; | ||
} | ||
@@ -111,12 +112,17 @@ // --doctype | ||
if (options.watch) { | ||
// keep watching when error occured. | ||
process.on('uncaughtException', function(err) { | ||
console.error(err); | ||
}); | ||
files.forEach(renderFile); | ||
monocle.watchFiles({ | ||
files: files, | ||
listener: function(file) { | ||
renderFile(file.absolutePath); | ||
files.forEach(function(filename) { | ||
try { | ||
renderFile(filename); | ||
} catch (ex) { | ||
// keep watching when error occured. | ||
console.error(ex.stack || ex.message || ex); | ||
} | ||
fs.watchFile(filename, {persistent: true, interval: 200}, function (filename) { | ||
try { | ||
renderFile(filename); | ||
} catch (ex) { | ||
// keep watching when error occured. | ||
console.error(ex.stack || ex.message || ex); | ||
} | ||
}); | ||
}); | ||
@@ -140,2 +146,3 @@ } else { | ||
var buf = ''; | ||
options.filename = '-'; | ||
process.stdin.setEncoding('utf8'); | ||
@@ -142,0 +149,0 @@ process.stdin.on('data', function(chunk){ buf += chunk; }); |
@@ -5,3 +5,3 @@ { | ||
"description": "Jade template runtime", | ||
"version": "1.8.1", | ||
"version": "1.8.2", | ||
"keywords": [ | ||
@@ -8,0 +8,0 @@ "template" |
@@ -569,3 +569,3 @@ 'use strict'; | ||
if (code.buffer) { | ||
var val = code.val.trimLeft(); | ||
var val = code.val.trim(); | ||
val = 'null == (jade_interp = '+val+') ? "" : jade_interp'; | ||
@@ -572,0 +572,0 @@ if (code.escape) val = 'jade.escape(' + val + ')'; |
@@ -116,2 +116,7 @@ 'use strict'; | ||
runtime.rethrow(err, err.filename, err.line, parser.input); | ||
} else { | ||
if (err instanceof Error) { | ||
err.message += '\n\nPlease report this entire error and stack trace to https://github.com/jadejs/jade/issues'; | ||
} | ||
throw err; | ||
} | ||
@@ -118,0 +123,0 @@ } |
{ | ||
"name": "jade", | ||
"description": "A clean, whitespace-sensitive template language for writing HTML", | ||
"version": "1.8.1", | ||
"version": "1.8.2", | ||
"author": "TJ Holowaychuk <tj@vision-media.ca>", | ||
"maintainers": [ | ||
"forbeslindesay <forbes@lindesay.co.uk>", | ||
"bloodyowl <mlbli@me.com", | ||
"jbnicolai <joshua@jbna.nl>" | ||
"Forbes Lindesay <forbes@lindesay.co.uk>", | ||
"Matthias Le Brun <mlbli@me.com>", | ||
"Joshua Appelman <joshua@jbna.nl>", | ||
"Jonathan Ong <jonathanrichardong@gmail.com>", | ||
"Alex Kocharin <alex@kocharin.ru>", | ||
"Hemanth <hemanth.hm@gmail.com>", | ||
"Timothy Gu <timothygu99@gmail.com>" | ||
], | ||
@@ -14,3 +18,3 @@ "license": "MIT", | ||
"type": "git", | ||
"url": "git://github.com/tj/jade" | ||
"url": "git://github.com/jadejs/jade" | ||
}, | ||
@@ -26,3 +30,2 @@ "main": "lib", | ||
"mkdirp": "~0.5.0", | ||
"monocle": "1.1.51", | ||
"transformers": "2.1.0", | ||
@@ -29,0 +32,0 @@ "void-elements": "~1.0.0", |
@@ -6,3 +6,5 @@ # [![Jade - template engine ](http://i.imgur.com/5zf2aVt.png)](http://jade-lang.com/) | ||
Jade is a high performance template engine heavily influenced by [Haml](http://haml-lang.com) | ||
and implemented with JavaScript for [node](http://nodejs.org). For discussion join the [Google Group](http://groups.google.com/group/jadejs). | ||
and implemented with JavaScript for [node](http://nodejs.org) and browsers. For bug reports, | ||
feature requests and questions, [open an issue](https://github.com/jadejs/jade/issues/new). | ||
For discussion join the [chat room](https://gitter.im/jadejs/jade). | ||
@@ -14,2 +16,3 @@ You can test drive Jade online [here](http://naltatis.github.com/jade-syntax-docs). | ||
[![NPM version](https://img.shields.io/npm/v/jade.svg)](http://badge.fury.io/js/jade) | ||
[![Gitter](https://badges.gitter.im/Join Chat.svg)](https://gitter.im/jadejs/jade?utm_source=badge&utm_medium=badge&utm_campaign=pr-badge&utm_content=badge) | ||
@@ -16,0 +19,0 @@ ## Installation |
Sorry, the diff of this file is too big to display
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
365065
7
10265
152
- Removedmonocle@1.1.51
- Removedbalanced-match@1.0.2(transitive)
- Removedbrace-expansion@2.0.1(transitive)
- Removedminimatch@10.0.1(transitive)
- Removedmonocle@1.1.51(transitive)
- Removedreaddirp@0.2.5(transitive)