Socket
Socket
Sign inDemoInstall

mustache

Package Overview
Dependencies
Maintainers
2
Versions
39
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

mustache - npm Package Compare versions

Comparing version 0.8.1 to 0.8.2

bower.json

30

mustache.js

@@ -22,9 +22,2 @@ /*!

var whiteRe = /\s*/;
var spaceRe = /\s+/;
var nonSpaceRe = /\S/;
var eqRe = /\s*=/;
var curlyRe = /\s*\}/;
var tagRe = /#|\^|\/|>|\{|&|=|!/;
// Workaround for https://issues.apache.org/jira/browse/COUCHDB-577

@@ -37,2 +30,3 @@ // See https://github.com/janl/mustache.js/issues/189

var nonSpaceRe = /\S/;
function isWhitespace(string) {

@@ -81,2 +75,8 @@ return !testRegExp(nonSpaceRe, string);

var whiteRe = /\s*/;
var spaceRe = /\s+/;
var equalsRe = /\s*=/;
var curlyRe = /\s*\}/;
var tagRe = /#|\^|\/|>|\{|&|=|!/;
/**

@@ -91,3 +91,3 @@ * Breaks up the given `template` string into a tree of tokens. If the `tags`

* did not contain a symbol (i.e. {{myValue}}) this element is "name". For
* all template text that appears outside a symbol this element is "text".
* all text that appears outside a symbol this element is "text".
*

@@ -98,8 +98,8 @@ * The second element of a token is its "value". For mustache tags this is

*
* The third and fourth elements of the token are the start and end indices
* in the original template of the token, respectively.
* The third and fourth elements of the token are the start and end indices,
* respectively, of the token in the original template.
*
* Tokens that are the root node of a subtree contain two more elements: an
* array of tokens in the subtree and the index in the original template at which
* the closing tag for that section begins.
* Tokens that are the root node of a subtree contain two more elements: 1) an
* array of tokens in the subtree and 2) the index in the original template at
* which the closing tag for that section begins.
*/

@@ -174,4 +174,4 @@ function parseTemplate(template, tags) {

if (type === '=') {
value = scanner.scanUntil(eqRe);
scanner.scan(eqRe);
value = scanner.scanUntil(equalsRe);
scanner.scan(equalsRe);
scanner.scanUntil(tagRes[1]);

@@ -178,0 +178,0 @@ } else if (type === '{') {

{
"name": "mustache",
"version": "0.8.1",
"version": "0.8.2",
"description": "Logic-less {{mustache}} templates with JavaScript",

@@ -5,0 +5,0 @@ "author": "mustache.js Authors <http://github.com/janl/mustache.js>",

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

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