@marterrez/eval-expression
Advanced tools
Comparing version 0.0.1 to 0.0.2
@@ -29,3 +29,3 @@ "use strict"; | ||
eval(exp, params = {}) { | ||
if (!exp) return null; | ||
if (!exp || !exp.length || typeof exp !== 'string') return null; | ||
const ctx = { ...this.context, | ||
@@ -32,0 +32,0 @@ ...params |
{ | ||
"name": "@marterrez/eval-expression", | ||
"version": "0.0.1", | ||
"version": "0.0.2", | ||
"description": "Small lib that allows to eval a string containing javascript code. It allows you do inject helper functions when evaluating the expression", | ||
@@ -5,0 +5,0 @@ "main": "dist/index.js", |
@@ -17,3 +17,3 @@ import * as lodash from 'lodash' | ||
eval (exp, params = {}) { | ||
if (!exp) return null | ||
if (!exp || !exp.length || typeof exp !== 'string') return null | ||
@@ -20,0 +20,0 @@ const ctx = { |
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
4427