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.2 to 0.1.3

8

History.md
# History
## 0.1.3 / 2012-07-17
- [bug fix] Remove anonymous fn wrapper for generated browser templates
- [bug fix] Assign thunder to root
- Add browser examples
## 0.1.2 / 2012-07-09

@@ -4,0 +12,0 @@

5

lib/thunder.js

@@ -116,3 +116,6 @@ /*!

// normal usage
if( typeof exports === 'undefined' ) return root.thunder;
if( typeof exports === 'undefined' ){
root.thunder = thunder;
return;
}

@@ -119,0 +122,0 @@ /**

4

lib/utils.js

@@ -144,5 +144,3 @@ /*!

return use_requirejs == 'false' ? '\
;( function (){\n\
var __tpl_name__ = "__content__";\n\
})();\n\
var __tpl_name__ = "__content__";\n\
' : '\

@@ -149,0 +147,0 @@ define( function ( require, exports, module ){\n\

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

@@ -5,0 +5,0 @@ "bin" : {

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

*/
;(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={html_to_text:function(e){return e.replace(/\"/g,'\\"').replace(/\n/g,"\\n\\\n");},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){if(!b[e]){b[e]=this.compile(e,f);}return b[e];},render:function(e,g,f){var h=f&&f.cached===true?"cached":"compile";return this[h](e,f)(g);}};if(typeof define!=="undefined"){return define(function(f,e,g){g.exports=d;});}if(typeof exports==="undefined"){return a.thunder;}d.version=JSON.parse(require("fs").readFileSync(__dirname+"/../package.json","utf8")).version;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={html_to_text:function(e){return e.replace(/\"/g,'\\"').replace(/\n/g,"\\n\\\n");},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){if(!b[e]){b[e]=this.compile(e,f);}return b[e];},render:function(e,g,f){var h=f&&f.cached===true?"cached":"compile";return this[h](e,f)(g);}};if(typeof define!=="undefined"){return define(function(f,e,g){g.exports=d;});}if(typeof exports==="undefined"){a.thunder=d;return;}d.version=JSON.parse(require("fs").readFileSync(__dirname+"/../package.json","utf8")).version;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