+4
-3
@@ -32,2 +32,3 @@ /** | ||
| } | ||
| this.options = options || {}; | ||
@@ -50,5 +51,5 @@ this.init(this.options); | ||
| // regex | ||
| opts.escape = utils.reEscape; | ||
| opts.evaluate = utils.reEvaluate; | ||
| opts.interpolate = utils.reInterpolate; | ||
| opts.escape = opts.escape || utils.reEscape; | ||
| opts.evaluate = opts.evaluate || utils.reEvaluate; | ||
| opts.interpolate = opts.interpolate || utils.reInterpolate; | ||
@@ -55,0 +56,0 @@ // register helpers |
+1
-1
| { | ||
| "name": "engine", | ||
| "description": "Template engine based on Lo-Dash template, but adds features like the ability to register helpers and more easily set data to be used as context in templates.", | ||
| "version": "0.1.7", | ||
| "version": "0.1.8", | ||
| "homepage": "https://github.com/jonschlinkert/engine", | ||
@@ -6,0 +6,0 @@ "author": "Jon Schlinkert (https://github.com/jonschlinkert)", |
Uses eval
Supply chain riskPackage uses dynamic code execution (e.g., eval()), which is a dangerous practice. This can prevent the code from running in certain environments and increases the risk that the code may contain exploits or malicious behavior.
Found 1 instance in 1 package
Uses eval
Supply chain riskPackage uses dynamic code execution (e.g., eval()), which is a dangerous practice. This can prevent the code from running in certain environments and increases the risk that the code may contain exploits or malicious behavior.
Found 1 instance in 1 package
20749
0.26%