Comparing version 0.11.3 to 0.12.0
@@ -27,3 +27,3 @@ (function(f){if(typeof exports==="object"&&typeof module!=="undefined"){module.exports=f()}else if(typeof define==="function"&&define.amd){define([],f)}else{var g;if(typeof window!=="undefined"){g=window}else if(typeof global!=="undefined"){g=global}else if(typeof self!=="undefined"){g=self}else{g=this}g.vash = f()}})(function(){var define,module,exports;return (function e(t,n,r){function s(o,u){if(!n[o]){if(!t[o]){var a=typeof require=="function"&&require;if(!u&&a)return a(o,!0);if(i)return i(o,!0);var f=new Error("Cannot find module '"+o+"'");throw f.code="MODULE_NOT_FOUND",f}var l=n[o]={exports:{}};t[o][0].call(l.exports,function(e){var n=t[o][1][e];return s(n?n:e)},l,l.exports,e,t,n,r)}return n[o].exports}var i=typeof require=="function"&&require;for(var o=0;o<r.length;o++)s(r[o]);return s})({1:[function(require,module,exports){ | ||
"description": "Razor syntax for JS templating", | ||
"version": "0.11.3", | ||
"version": "0.12.0", | ||
"author": "Andrew Petersen <senofpeter@gmail.com>", | ||
@@ -30,0 +30,0 @@ "homepage": "https://github.com/kirbysayshi/vash", |
@@ -65,2 +65,3 @@ | ||
return '' | ||
+ (parentIsExpression(node) ? '(function () {' : '') | ||
+ dbgstart(node, opts) | ||
@@ -71,2 +72,3 @@ + tagOpen | ||
+ dbgend(node, opts) | ||
+ (parentIsExpression(node) ? '}())' : '') | ||
} | ||
@@ -178,2 +180,8 @@ | ||
function parentIsExpression(node) { | ||
return node.parent.type === 'VashExpression' | ||
|| node.parent.type === 'VashExplicitExpression' | ||
|| node.parent.type === 'VashIndexExpression'; | ||
} | ||
function dbgstart(node, opts) { | ||
@@ -307,2 +315,2 @@ return opts.debug | ||
module.exports = generate; | ||
module.exports = generate; |
@@ -741,2 +741,13 @@ | ||
if ( | ||
curr.type === tks.LT_SIGN | ||
&& next.type === tks.IDENTIFIER | ||
&& !node._waitingForEndQuote | ||
) { | ||
// Markup within expression | ||
valueNode = this.openNode(new MarkupNode(), node.values); | ||
updateLoc(valueNode, curr); | ||
return false; | ||
} | ||
var pnw = this.previousNonWhitespace; | ||
@@ -743,0 +754,0 @@ |
{ | ||
"name": "vash", | ||
"description": "Razor syntax for JS templating", | ||
"version": "0.11.3", | ||
"version": "0.12.0", | ||
"author": "Andrew Petersen <senofpeter@gmail.com>", | ||
@@ -6,0 +6,0 @@ "homepage": "https://github.com/kirbysayshi/vash", |
Sorry, the diff of this file is too big to display
Sorry, the diff of this file is too big to display
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
12178
446325
59
1184