Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

jade

Package Overview
Dependencies
Maintainers
2
Versions
131
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

jade - npm Package Compare versions

Comparing version 0.32.0 to 0.33.0

2

component.json

@@ -5,3 +5,3 @@ {

"description": "Jade template runtime",
"version": "0.32.0",
"version": "0.33.0",
"keywords": [

@@ -8,0 +8,0 @@ "template"

@@ -109,3 +109,3 @@ /*!

parser = parser.context();
runtime.rethrow(err, parser.filename, parser.lexer.lineno);
runtime.rethrow(err, parser.filename, parser.lexer.lineno, str);
}

@@ -133,3 +133,5 @@ }

*
* - `compileDebug` when `false` debugging code is stripped from the compiled template
* - `compileDebug` when `false` debugging code is stripped from the compiled
template, when it is explicitly `true`, the source code is included in
the compiled template for better accuracy.
* - `filename` used to improve errors when `compileDebug` is not `false`

@@ -158,3 +160,3 @@ *

, '} catch (err) {'
, ' jade.rethrow(err, jade.debug[0].filename, jade.debug[0].lineno);'
, ' jade.rethrow(err, jade.debug[0].filename, jade.debug[0].lineno' + (options.compileDebug === true ? ',' + JSON.stringify(str) : '') + ');'
, '}'

@@ -161,0 +163,0 @@ ].join('\n');

@@ -634,2 +634,3 @@ /*!

var seenAttrs = false;
// (attrs | class | id)*

@@ -645,2 +646,6 @@ out:

case 'attrs':
if (seenAttrs) {
console.warn('You should not have jade tags with multiple attributes.');
}
seenAttrs = true;
var tok = this.advance()

@@ -683,2 +688,9 @@ , obj = tok.attrs

break;
case 'newline':
case 'indent':
case 'outdent':
case 'eos':
break;
default:
throw new Error('Unexpected token `' + this.peek().type + '` expected `text`, `code`, `:`, `newline` or `eos`')
}

@@ -685,0 +697,0 @@

@@ -123,4 +123,10 @@

} else if ('class' == key) {
if (val = exports.escape(joinClasses(val))) {
buf.push(key + '="' + val + '"');
if (escaped && escaped[key]){
if (val = exports.escape(joinClasses(val))) {
buf.push(key + '="' + val + '"');
}
} else {
if (val = joinClasses(val)) {
buf.push(key + '="' + val + '"');
}
}

@@ -164,8 +170,14 @@ } else if (escaped && escaped[key]) {

exports.rethrow = function rethrow(err, filename, lineno){
if (!filename) throw err;
if (typeof window != 'undefined') throw err;
exports.rethrow = function rethrow(err, filename, lineno, str){
if (!(err instanceof Error)) throw err;
if ((typeof window != 'undefined' || !filename) && !str) {
err.message += ' on line ' + lineno;
throw err;
}
try {
str = str || require('fs').readFileSync(filename, 'utf8')
} catch (ex) {
rethrow(err, null, lineno)
}
var context = 3
, str = require('fs').readFileSync(filename, 'utf8')
, lines = str.split('\n')

@@ -172,0 +184,0 @@ , start = Math.max(lineno - context, 0)

{
"name": "jade",
"description": "Jade template engine",
"version": "0.32.0",
"version": "0.33.0",
"author": "TJ Holowaychuk <tj@vision-media.ca>",

@@ -40,3 +40,3 @@ "repository": "git://github.com/visionmedia/jade",

"test": "mocha -R spec",
"prepublish": "npm prune && linify transform bin",
"prepublish": "npm prune && linify transform bin && npm run build",
"build": "npm run compile",

@@ -43,0 +43,0 @@ "compile": "npm run compile-full && npm run compile-runtime",

@@ -125,4 +125,10 @@ (function(e){if("function"==typeof bootstrap)bootstrap("jade",e);else if("object"==typeof exports)module.exports=e();else if("function"==typeof define&&define.amd)define(e);else if("undefined"!=typeof ses){if(!ses.ok())return;ses.makeJade=e}else"undefined"!=typeof window?window.jade=e():global.jade=e()})(function(){var define,ses,bootstrap,module,exports;

} else if ('class' == key) {
if (val = exports.escape(joinClasses(val))) {
buf.push(key + '="' + val + '"');
if (escaped && escaped[key]){
if (val = exports.escape(joinClasses(val))) {
buf.push(key + '="' + val + '"');
}
} else {
if (val = joinClasses(val)) {
buf.push(key + '="' + val + '"');
}
}

@@ -166,8 +172,14 @@ } else if (escaped && escaped[key]) {

exports.rethrow = function rethrow(err, filename, lineno){
if (!filename) throw err;
if (typeof window != 'undefined') throw err;
exports.rethrow = function rethrow(err, filename, lineno, str){
if (!(err instanceof Error)) throw err;
if ((typeof window != 'undefined' || !filename) && !str) {
err.message += ' on line ' + lineno;
throw err;
}
try {
str = str || require('fs').readFileSync(filename, 'utf8')
} catch (ex) {
rethrow(err, null, lineno)
}
var context = 3
, str = require('fs').readFileSync(filename, 'utf8')
, lines = str.split('\n')

@@ -174,0 +186,0 @@ , start = Math.max(lineno - context, 0)

Sorry, the diff of this file is too big to display

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