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

razorleaf

Package Overview
Dependencies
Maintainers
1
Versions
96
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

razorleaf - npm Package Compare versions

Comparing version 1.5.0 to 1.5.1

14

compiler.js

@@ -144,3 +144,3 @@ "use strict";

function compile(tree) {
function compile(tree, options) {
var context = {

@@ -156,10 +156,14 @@ content: new utilities.CodeContext(),

var compiled = new Function(
"__util, data",
var code =
context.scope.code +
"\n__output = '';\n" +
context.content.code +
"\nreturn __output;"
);
"\nreturn __output;";
if(options.debug) {
console.log(code);
}
var compiled = new Function("__util, data", code);
return function(data) {

@@ -166,0 +170,0 @@ return compiled(utilities, data);

{
"name": "razorleaf",
"version": "1.5.0",
"version": "1.5.1",
"main": "razorleaf.js",

@@ -17,5 +17,2 @@ "files": [

},
"devDependencies": {
"optimist": "~0.6.0"
},
"repository": {

@@ -22,0 +19,0 @@ "type": "git",

@@ -79,6 +79,7 @@ "use strict";

options = options || {};
tree = loadExtends(tree, [], options);
loadIncludes(tree, [], options);
return compiler.compile(tree);
return compiler.compile(tree, options);
}

@@ -85,0 +86,0 @@

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