Comparing version 0.0.1 to 0.0.2
@@ -37,1 +37,2 @@ 'use strict'; | ||
module.exports = exec; | ||
console.log(exec(['$eqs', 1, '1'])); |
{ | ||
"name": "jsexp", | ||
"version": "0.0.1", | ||
"version": "0.0.2", | ||
"license": "MIT", | ||
@@ -5,0 +5,0 @@ "scripts": { |
@@ -29,3 +29,4 @@ 'use strict'; | ||
} else { | ||
value.push(replaceVariable(expression[i], context)); | ||
var replacedValue = replaceVariable(expression[i], context); | ||
value.push(typeof replacedValue === 'string' ? "'".concat(replacedValue, "'") : replacedValue); | ||
} | ||
@@ -53,1 +54,2 @@ } | ||
module.exports = stringify; | ||
console.log(stringify(['$eq', 1, '2'])); |
@@ -36,6 +36,6 @@ 'use strict'; | ||
if (context && rVariable.test(variable)) { | ||
return "'".concat(get(context, variable.substr(1)), "'"); | ||
return get(context, variable.substr(1)); | ||
} | ||
return "'".concat(variable, "'"); | ||
return variable; | ||
} | ||
@@ -42,0 +42,0 @@ |
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
31400
1019