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

thunder

Package Overview
Dependencies
Maintainers
1
Versions
17
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

thunder - npm Package Compare versions

Comparing version 0.1.11 to 0.1.12

7

History.md
# History
## 0.1.12 / 2013-12-18
- [refactoring] Do not trim all white space
- [update packages] watchr->2.4.7
## 0.1.11 / 2013-12-18

@@ -4,0 +11,0 @@

4

lib/thunder.js

@@ -33,3 +33,3 @@ /*!

version : '0.1.11',
version : '0.1.12',

@@ -42,3 +42,3 @@ settings : {

compiled_text : function ( input, options ){
input = input.replace( /\s*<!\[CDATA\[\s*|\s*\]\]>\s*|[\r\n\t]|(\/\*[\s\S]*?\*\/)/g, '' );
input = input.replace( /\s*<!\[CDATA\[\s*|\s*\]\]>\s*/g, '\n' );

@@ -45,0 +45,0 @@ var arr = ( options && options.compress === true

{
"name" : "thunder",
"version" : "0.1.11",
"version" : "0.1.12",
"description": "One of the fastest JavaScript template engine for Node.js and browsers.",

@@ -18,3 +18,3 @@ "bin" : {

"rmdir" : "1.0.3",
"watchr" : "2.4.6"
"watchr" : "2.4.7"
},

@@ -21,0 +21,0 @@ "repository" : {

@@ -1,2 +0,2 @@

/*
/*!
* thunder

@@ -9,2 +9,10 @@ * Copyright(c) 2012 dreamerslab <ben@dreamerslab.com>

*/
;(function(a){var b={};var c={rules:{"&":"&amp;","<":"&lt;",">":"&gt;",'"':"&quot;"},fn:function(e){return typeof(e)!="string"?e:e.replace(/[&<>"]/g,function(f){return c.rules[f];});}};var d={version:"0.1.7",compiled_text:function(f,h){var e=(h&&h.compress===true?f.replace(/\n\r\t|\s+/g," "):f.replace(/\n\r|\r/g,"\n")).split("<?").join("?>\x1b").split("?>");var m="";var l=0;var g=e.length;var k="";for(;l<g;l++){k=e[l];m+=k.charAt(0)!="\x1b"?"__t__+='"+k.replace(/\'|\\/g,"\\$&").replace(/\n/g,"\\n\\\n")+"'":(k.charAt(1)=="="?";__t__+="+k.substr(2)+";":(k.charAt(1)=="-"?";__t__+=e("+k.substr(2)+");":";"+k.substr(1)));}return('var __t__="";'+m+";return __t__;").replace(/__t__\+\=\'\'\;/g,"").replace(/var __t__\=\"\"\;__t__\+\=/g,"var __t__=");},compile:function(e,f){var i=this.compiled_text(e,f);var g;try{g=new Function("it","e",i);}catch(h){console.log("[thunder] Having trouble with creating a template function: \n"+i);throw h;}return function(j){return g(j,c.fn);};},cached:function(e,f,g){g=g||e;if(!b[g]){b[g]=this.compile(e,f);}return b[g];},render:function(e,g,f){var h=f&&f.cached===true?"cached":"compile";return this[h](e,f)(g);},clear:function(){b={};}};if(typeof define!=="undefined"){return define(function(f,e,g){g.exports=d;});}if(typeof exports==="undefined"){a.thunder=d;return;}module.exports=d;})(this);
(function(a){var b={};
var c={rules:{"&":"&amp;","<":"&lt;",">":"&gt;",'"':"&quot;"},fn:function(e){return typeof(e)!="string"?e:e.replace(/[&<>"]/g,function(f){return c.rules[f];
});}};var d={version:"0.1.12",settings:{open:"<?",close:"?>"},compiled_text:function(f,h){f=f.replace(/\s*<!\[CDATA\[\s*|\s*\]\]>\s*/g,"\n");var e=(h&&h.compress===true?f.replace(/\n\r\t|\s+/g," "):f.replace(/\n\r|\r/g,"\n")).split(d.settings.open).join(d.settings.close+"\x1b").split(d.settings.close);
var m="";var l=0;var g=e.length;var k="";for(;l<g;l++){k=e[l];m+=k.charAt(0)!="\x1b"?"_buf+='"+k.replace(/(\\|[\"\'])/g,"\\$1").replace(/\n/g,"\\n\\\n")+"'":(k.charAt(1)=="="?";_buf+="+k.substr(2).replace(/[\;\s]+$/,"")+";":(k.charAt(1)=="-"?";_buf+=e("+k.substr(2).replace(/[\;\s]+$/,"")+");":";"+k.substr(1).replace(/^\s+|\s+$/g,"").replace(/[\w\'\"\)\$]$/,"$&;")));
}return('var _buf="";'+m+";return _buf;").replace(/_buf\+\=\'\'\;/g,"").replace(/var _buf\=\"\"\;_buf\+\=/g,"var _buf=");},compile:function(e,f){var i=d.compiled_text(e,f);
var g;try{g=new Function("it","e",i);}catch(h){console.log("[thunder] Having trouble with creating a template function: \n"+i);throw h;}return function(j){return g(j,c.fn);
};},cached:function(e,f,g){g=g||e;if(!b[g]){b[g]=d.compile(e,f);}return b[g];},render:function(e,g,f){var h=f&&f.cached===true?"cached":"compile";return d[h](e,f)(g);
},clear:function(){b={};}};if(typeof define!=="undefined"){return define(function(f,e,g){g.exports=d;});}if(typeof exports==="undefined"){a.thunder=d;return;
}module.exports=d;})(this);
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