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

ljs-template

Package Overview
Dependencies
Maintainers
1
Versions
8
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

ljs-template - npm Package Compare versions

Comparing version 1.0.2 to 1.0.3

12

lib/ljs.js

@@ -165,7 +165,3 @@ 'use strict';

}
try {
fn = exports.compile(minify(template), options);
} catch(tmp) {
fn = exports.compile(template, options);
}
fn = exports.compile(template, options);
if (options.cache) {

@@ -177,8 +173,2 @@ exports.cache.set(path, fn);

function minify(content) {
var lineEnding = (content.indexOf('\r') != -1)?'\r':'' + (content.indexOf('\n') != -1)?'\n':'';
var regexp = "("+lineEnding+"){1,2}(("+lineEnding+")*)[ |\t]*({[%|#|/](?!=).*)";
return content.replace(new RegExp(regexp, 'g'), "$2$4");
}
/**

@@ -185,0 +175,0 @@ * Get the template function.

2

package.json
{
"name": "ljs-template",
"version": "1.0.2",
"version": "1.0.3",
"description": "Lighter Javascript Templates",

@@ -5,0 +5,0 @@ "main": "lib/ljs.js",

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