New Case Study:See how Anthropic automated 95% of dependency reviews with Socket.Learn More
Socket
Sign inDemoInstall
Socket

ltl

Package Overview
Dependencies
Maintainers
1
Versions
22
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

ltl - npm Package Compare versions

Comparing version 0.1.8 to 0.1.9

33

ltl.js

@@ -62,3 +62,3 @@ /**

name = (settings.name ? '"' + settings.name + '"' : 'template');
e.message = 'Ltl failed to compile ' + name + '. ' + e.message;
e.message = '[Ltl] Failed to compile ' + name + '. ' + e.message;
throw e;

@@ -72,3 +72,3 @@ }

// Allow users to see what version of ltl they're using.
version: '0.1.8',
version: '0.1.9',

@@ -107,2 +107,5 @@ // Store all of the templates that have been compiled.

}
if (settings.enableDebug && !settings.space) {
settings.space = ' ';
}

@@ -418,7 +421,2 @@ // Don't allow context/output/parts vars to become user vars.

// In debug mode, make JS line numbers match Ltl line numbers.
if (settings.enableDebug && i) {
output += mode == 'html' ? "' +\n'" : '\n';
}
// If the line is all whitespace, ignore it.

@@ -432,7 +430,2 @@ if (!/\S/.test(line)) {

// In debug mode, make indentation match.
if (settings.enableDebug) {
output += line.substr(0, spaces);
}
// If this is our first time seeing leading spaces, that's our tab width.

@@ -503,3 +496,3 @@ if (spaces > 0 && !currentTabWidth) {

var id = '';
var className = '';
var classes = [];
var attributes = '';

@@ -517,10 +510,10 @@ var content = '';

end = rest.search(/([\.\(>:\s]|$)/);
id = rest.substring(1, end);
id = id || rest.substring(1, end);
rest = rest.substring(end);
}
// If it's a class, read up to the next thing, and save the className.
// If it's a class, read up to the next thing, and save the class.
else if (character == '.') {
end = rest.search(/([\(>:\s]|$)/);
className = rest.substring(1, end).replace(/\./g, ' ');
end = rest.search(/([#\(>:\s]|$)/);
classes.push(rest.substring(1, end).replace(/\./g, ' '));
rest = rest.substring(end);

@@ -614,2 +607,4 @@ }

else {
var className = classes.join(' ');
// Default to a <div> unless we're in a tagless block.

@@ -689,3 +684,3 @@ if (!tag) {

id = '';
className = '';
classes = [];
attributes = '';

@@ -729,3 +724,3 @@ content = '';

var name = (settings.name ? '"' + settings.name + '"' : 'template');
e.message = 'Ltl failed to compile ' + name + '. ' + e.message;
e.message = '[Ltl] Failed to compile ' + name + '. ' + e.message;
throw e;

@@ -732,0 +727,0 @@ }

@@ -14,3 +14,3 @@ {

],
"version": "0.1.8",
"version": "0.1.9",
"main": "ltl",

@@ -39,3 +39,3 @@ "homepage": "http://lighter.io/ltl",

"mocha": "1.20.1",
"istanbul": "0.2.10",
"istanbul": "0.2.11",
"coveralls": "2.10.0",

@@ -42,0 +42,0 @@ "dot": "1.0.2",

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