Socket
Socket
Sign inDemoInstall

jade

Package Overview
Dependencies
Maintainers
1
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.28.0 to 0.28.1

96

lib/parser.js

@@ -250,4 +250,4 @@

parseText: function(){
var tok = this.expect('text')
, node = new nodes.Text(tok.val);
var tok = this.expect('text');
var node = new nodes.Text(tok.val);
node.line = this.line();

@@ -276,4 +276,4 @@ return node;

parseCase: function(){
var val = this.expect('case').val
, node = new nodes.Case(val);
var val = this.expect('case').val;
var node = new nodes.Case(val);
node.line = this.line();

@@ -307,6 +307,6 @@ node.block = this.block();

parseCode: function(){
var tok = this.expect('code')
, node = new nodes.Code(tok.val, tok.buffer, tok.escape)
, block
, i = 1;
var tok = this.expect('code');
var node = new nodes.Code(tok.val, tok.buffer, tok.escape);
var block;
var i = 1;
node.line = this.line();

@@ -327,4 +327,4 @@ while (this.lookahead(i) && 'newline' == this.lookahead(i).type) ++i;

parseComment: function(){
var tok = this.expect('comment')
, node;
var tok = this.expect('comment');
var node;

@@ -346,4 +346,4 @@ if ('indent' == this.peek().type) {

parseDoctype: function(){
var tok = this.expect('doctype')
, node = new nodes.Doctype(tok.val);
var tok = this.expect('doctype');
var node = new nodes.Doctype(tok.val);
node.line = this.line();

@@ -358,5 +358,5 @@ return node;

parseFilter: function(){
var block
, tok = this.expect('filter')
, attrs = this.accept('attrs');
var tok = this.expect('filter');
var attrs = this.accept('attrs');
var block;

@@ -377,4 +377,4 @@ this.lexer.pipeless = true;

parseEach: function(){
var tok = this.expect('each')
, node = new nodes.Each(tok.code, tok.val, tok.key);
var tok = this.expect('each');
var node = new nodes.Each(tok.code, tok.val, tok.key);
node.line = this.line();

@@ -394,7 +394,7 @@ node.block = this.block();

parseExtends: function(){
var path = require('path')
, fs = require('fs')
, dirname = path.dirname
, basename = path.basename
, join = path.join;
var path = require('path');
var fs = require('fs');
var dirname = path.dirname;
var basename = path.basename;
var join = path.join;

@@ -404,8 +404,8 @@ if (!this.filename)

var path = this.expect('extends').val.trim()
, dir = dirname(this.filename);
var path = this.expect('extends').val.trim();
var dir = dirname(this.filename);
var path = join(dir, path + '.jade')
, str = fs.readFileSync(path, 'utf8')
, parser = new Parser(str, path, this.options);
var path = join(dir, path + '.jade');
var str = fs.readFileSync(path, 'utf8');
var parser = new Parser(str, path, this.options);

@@ -425,5 +425,5 @@ parser.blocks = this.blocks;

parseBlock: function(){
var block = this.expect('block')
, mode = block.mode
, name = block.val.trim();
var block = this.expect('block');
var mode = block.mode;
var name = block.val.trim();

@@ -458,10 +458,10 @@ block = 'indent' == this.peek().type

parseInclude: function(){
var path = require('path')
, fs = require('fs')
, dirname = path.dirname
, basename = path.basename
, join = path.join;
var path = require('path');
var fs = require('fs');
var dirname = path.dirname;
var basename = path.basename;
var join = path.join;
var path = this.expect('include').val.trim()
, dir = dirname(this.filename);
var path = this.expect('include').val.trim();
var dir = dirname(this.filename);

@@ -482,3 +482,3 @@ if (!this.filename)

var filter = filters[ext];
if (filter) str = filter(str);
if (filter) str = filter(str, { filename: path }).replace(/\\n/g, '\n');
return new nodes.Literal(str);

@@ -510,6 +510,6 @@ }

parseCall: function(){
var tok = this.expect('call')
, name = tok.val
, args = tok.args
, mixin = new nodes.Mixin(name, args, new nodes.Block, true);
var tok = this.expect('call');
var name = tok.val;
var args = tok.args;
var mixin = new nodes.Mixin(name, args, new nodes.Block, true);

@@ -526,6 +526,6 @@ this.tag(mixin);

parseMixin: function(){
var tok = this.expect('mixin')
, name = tok.val
, args = tok.args
, mixin;
var tok = this.expect('mixin');
var name = tok.val;
var args = tok.args;
var mixin;

@@ -614,4 +614,4 @@ // definition

var tok = this.advance()
, tag = new nodes.Tag(tok.val);
var tok = this.advance();
var tag = new nodes.Tag(tok.val);

@@ -618,0 +618,0 @@ tag.selfClosing = tok.selfClosing;

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

@@ -6,0 +6,0 @@ "repository": "git://github.com/visionmedia/jade",

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