benchpressjs
Advanced tools
Comparing version 2.0.1 to 2.0.2
@@ -1,3 +0,3 @@ | ||
/*! benchpressjs by psychobunny, built on 2020-02-14 */ | ||
/*! benchpressjs by psychobunny, built on 2020-02-27 */ | ||
"function"==typeof define&&define.amd&&define("benchpress",function(){var t=function(){"use strict";function t(n){return n==null||Array.isArray(n)&&n.length===0?"":n}function o(n,r){if(!n||typeof n!=="object"){return""}var e="";var t=Object.keys(n);var o=t.length;for(var u=0;u<o;u+=1){var i=t[u];e+=r(i,u,o,n[i])}return e}function u(n,r,e,t){if(typeof r[e]!=="function"){return""}try{var o=r[e].apply(n,t);return o||""}catch(n){return""}}function n(n,r,e){return t(e(n,r,t,o,u)).toString()}if(typeof Promise.try!=="function"){Promise.try={try:function n(r){return new Promise(function(n){return n(r())})}}.try}return n}();"use strict";var o=typeof module==="object"&&module.exports?module.exports:{};o.runtime=t,o.helpers={},o.registerHelper=function n(r,e){o.helpers[r]=e};var e={"&":"&","<":"<",">":">",'"':""","'":"'","`":"`","=":"="},r=function n(r){return e[r]},u=/[&<>"'`=]/g;o.registerHelper("__escape",function(n){if(n==null){return""}if(!n){return String(n)}return n.toString().replace(u,r)}),o.cache={},o.globals={},o.setGlobal=function n(r,e){o.globals[r]=e};var i=Object.assign||jQuery.extend;function c(t){return new Promise(function(r,n){var e=o.loader(t,function(n){r(n)});if(e&&e.then){e.then(r,n)}})}function f(n,r,e){r=o.addGlobals(r||{});return Promise.try(function(){o.cache[n]=o.cache[n]||c(n);return o.cache[n]}).then(function(n){if(e){n=n.blocks&&n.blocks[e]}if(!n){return""}return t(o.helpers,r,n)})}function n(n,r,e,t){if(!t&&"object"==typeof r&&"function"==typeof e)t=e,e=r,r=null;if("function"!=typeof t)throw TypeError("Invalid Arguments: callback must be a function");if(!n)return void t("");f(n,e,r).then(function(n){return setTimeout(t,0,n)},function(n){return console.error(n)})}return o.addGlobals=function(n){return i({},o.globals,n)},o.flush=function(){o.cache={}},o.render=f,o.parse=function(n,r,e,t){t||"object"!=typeof r||"function"!=typeof e||(t=e,e=r,r=null);if("function"!=typeof t)throw TypeError("Invalid Arguments: callback must be a function");if(!n)return void t("");f(n,e,r).then(function(n){return setTimeout(t,0,n)},function(n){return console.error(n)})},o.registerLoader=function(n){o.loader=n},o}); |
{ | ||
"name": "benchpressjs", | ||
"version": "2.0.1", | ||
"version": "2.0.2", | ||
"author": "psychobunny <psycho.bunny@hotmail.com>", | ||
@@ -17,2 +17,3 @@ "description": "An ultralight and super fast templating framework", | ||
"main": "build/lib/benchpress", | ||
"browser": "build/benchpress", | ||
"keywords": [ | ||
@@ -19,0 +20,0 @@ "templates", |
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
48097404