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

benchpressjs

Package Overview
Dependencies
Maintainers
1
Versions
44
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

benchpressjs - npm Package Compare versions

Comparing version 1.0.0 to 1.0.1

2

build/benchpress.min.js

@@ -1,3 +0,3 @@

/*! benchpressjs by psychobunny, built on 2017-07-13 */
/*! benchpressjs by psychobunny, built on 2017-07-24 */
!function(e){"function"==typeof define&&define.amd&&define("benchpress",e)}(function(){function e(e){return o({},t.globals,e)}var n=function(){"use strict";function e(e){return null==e||Array.isArray(e)&&0===e.length?"":e}function n(e,n){for(var t="",r=Object.keys(e),c=r.length,u=0;u<c;u+=1)t+=n(r[u],u,c);return t}function t(e,n,t,r){if("function"!=typeof n[t])return"";try{return n[t].apply(e,r)||""}catch(e){return""}}return function(r,c,u){return u(r,c,e,n,t)}}(),t={};t.runtime=n,t.helpers={},t.registerHelper=function(e,n){t.helpers[e]=n};var r=(Object.freeze||function(e){return e})({"&":"&amp;","<":"&lt;",">":"&gt;",'"':"&quot;","'":"&#x27;","`":"&#x60;","=":"&#x3D;"}),c=function(e){return r[e]},u=/[&<>"'`=]/g;t.registerHelper("__escape",function(e){return null==e?"":e?e.toString().replace(u,c):String(e)}),t.cache={},t.globals={},t.setGlobal=function(e,n){t.globals[e]=n};var o=Object.assign||jQuery.extend;return t.flush=function(){t.cache={}},t.parse=function(r,c,u,o){function i(e){c&&(e=e.blocks&&e.blocks[c]),o(e?n(t.helpers,u,e):"")}if(o||"object"!=typeof c||"function"!=typeof u||(o=u,u=c,c=null),"function"!=typeof o)throw TypeError("Invalid Arguments: callback must be a function");r?(u=e(u||{}),t.cache[r]?i(t.cache[r]):t.loader(r,i)):o("")},t.registerLoader=function(e){t.loader=e},t});

@@ -78,10 +78,8 @@ 'use strict';

Benchpress.__express = function __express(filepath, data, next) {
const name = path.relative(data.settings.views, filepath).replace(/[\\/]/g, '/');
data = addGlobals(data);
data._locals = null;
if (Benchpress.cache[name]) {
if (Benchpress.cache[filepath]) {
try {
const template = Benchpress.cache[name];
const template = Benchpress.cache[filepath];
next(null, runtime(Benchpress.helpers, data, template));

@@ -102,3 +100,3 @@ } catch (e) {

try {
const template = Benchpress.cache[name] = Benchpress.evaluate(code);
const template = Benchpress.cache[filepath] = Benchpress.evaluate(code);

@@ -105,0 +103,0 @@ next(null, runtime(Benchpress.helpers, data, template));

@@ -78,10 +78,8 @@ 'use strict';

Benchpress.__express = function __express(filepath, data, next) {
const name = path.relative(data.settings.views, filepath).replace(/[\\/]/g, '/');
data = addGlobals(data);
data._locals = null;
if (Benchpress.cache[name]) {
if (Benchpress.cache[filepath]) {
try {
const template = Benchpress.cache[name];
const template = Benchpress.cache[filepath];
next(null, runtime(Benchpress.helpers, data, template));

@@ -102,3 +100,3 @@ } catch (e) {

try {
const template = Benchpress.cache[name] = Benchpress.evaluate(code);
const template = Benchpress.cache[filepath] = Benchpress.evaluate(code);

@@ -105,0 +103,0 @@ next(null, runtime(Benchpress.helpers, data, template));

{
"name": "benchpressjs",
"version": "1.0.0",
"version": "1.0.1",
"author": "psychobunny <psycho.bunny@hotmail.com>",
"contributors": [
"Peter Jaszkowiak <p.jaszkow@gmail.com>"
],
"description": "An ultralight and super fast templating framework",

@@ -9,0 +6,0 @@ "scripts": {

Sorry, the diff of this file is not supported yet

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