Comparing version 0.7.2 to 0.7.3
@@ -0,0 +0,0 @@ "use strict"; |
@@ -0,0 +0,0 @@ const expression = require('../../dist/node'); |
@@ -0,0 +0,0 @@ module.exports = function(grunt) { |
@@ -0,0 +0,0 @@ /*jshint esversion: 6 */ |
@@ -12,6 +12,7 @@ const extend = require("extend"); | ||
if(!CACHE[key]) { | ||
let rkey = key.replace(/'/g,"\\'"); | ||
let rx = /^[a-zA-Z$_@]/; | ||
let fn = eval(`(function(){ | ||
let rx = /^[a-zA-Z$_]/; | ||
return '${key}'.startsWith('this.') || '${key}'=='this' || !rx.test('${key}')? | ||
return '${rkey}'.startsWith('this.') || '${rkey}'=='this' || !rx.test('${rkey}')? | ||
function() { | ||
@@ -18,0 +19,0 @@ let r = undefined; |
@@ -0,0 +0,0 @@ let expression = require('./expression'); |
{ | ||
"name": "jsexpr", | ||
"version": "0.7.2", | ||
"version": "0.7.3", | ||
"description": "String and JSON expression interpolator and evaluator. Interpolates or evaluates a string against a json object, or transforms an object into another based on a json template", | ||
@@ -5,0 +5,0 @@ "main": "dist/node/index.js", |
@@ -0,0 +0,0 @@ # jsexpr |
@@ -50,1 +50,4 @@ const expr = require('./index.js'); | ||
console.log(evxpr5(obj1)); | ||
let qexp = expr.expr("${a['b.c']}"); | ||
console.log(qexp({a:{b:{c:"hi"}}})); |
@@ -0,0 +0,0 @@ { |
@@ -0,0 +0,0 @@ { |
@@ -0,0 +0,0 @@ const |
@@ -0,0 +0,0 @@ const |
@@ -0,0 +0,0 @@ const |
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
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
971
73793