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

jqtpl

Package Overview
Dependencies
Maintainers
0
Versions
38
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

jqtpl - npm Package Compare versions

Comparing version 1.0.3 to 1.0.4

6

lib/jqtpl.express.js

@@ -44,3 +44,7 @@ var jqtpl = require('./jqtpl');

var name = options.filename || markup;
// express calls compile if the template have to be recompiled
// so we have to clean cache before compile
delete jqtpl.template[name];
// precompile the template and cache it using filename

@@ -47,0 +51,0 @@ jqtpl.template(name, markup);

2

package.json
{
"name": "jqtpl",
"description": "A port of jQuery's template engine",
"version": "1.0.3",
"version": "1.0.4",
"author": "Oleg Slobodskoi <oleg008@gmail.com>",

@@ -6,0 +6,0 @@ "contributors": [

@@ -121,1 +121,17 @@ var o = {

test("clean cache if template have to be recompiled", function() {
var je = require('../').express
var template = 'my template 1';
var render = je.compile(template, {filename: 'template.html'});
equal(render(), 'my template 1', 'template 1 rendered correctly');
// now template has been changed
template = 'my template 2';
render = je.compile(template, {filename: 'template.html'})
equal(render(), 'my template 2', 'template 2 rendered correctly after recompile');
});
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