apoc
Advanced tools
Comparing version 2.1.5 to 2.1.6
@@ -14,7 +14,10 @@ /* globals global */ | ||
var temp = match.split('=') | ||
var varName = temp[0].split(' ')[1] | ||
var varValue = jscode(temp[1].trim()) | ||
var varName = temp[0].split(' ')[1].trim() | ||
var value = match.replace('=', '').replace('var ' + varName, '').trim() | ||
var varValue = jscode(value) | ||
parsed = parsed.replace(match, '') | ||
var re = RegExp('%' + varName + '%', 'gm') | ||
parsed = parsed.replace(re, varValue) | ||
}) | ||
@@ -28,4 +31,6 @@ } | ||
var temp = match.split('=') | ||
var varName = temp[0].split(' ')[1] | ||
var varValue = jscode(temp[1].trim()) | ||
var varName = temp[0].split(' ')[1].trim() | ||
var value = match.replace('=', '').replace('global ' + varName, '').trim() | ||
var varValue = jscode(value) | ||
global.APOC_GLOBAL_VARS[varName] = { | ||
@@ -36,2 +41,3 @@ match: match, | ||
} | ||
}) | ||
@@ -38,0 +44,0 @@ } |
{ | ||
"name": "apoc", | ||
"version": "2.1.5", | ||
"version": "2.1.6", | ||
"description": "Making Cypher queries dynamic and powerful", | ||
@@ -5,0 +5,0 @@ "main": "index.js", |
@@ -12,2 +12,3 @@ Apoc | ||
* Local variables in ACF files | ||
* Global variables | ||
@@ -14,0 +15,0 @@ Apoc is not a mapper (ORM, ODM, ONM, OxM) of any kind, nor does it provide any "friendly" or "improved" transaction methods on top of the Neo4j REST API. It is just a tool for enhancing your experience with Cypher. You will still need to write your Cypher queries, but Apoc will make them more powerful and much easier to use. |
38119
661
338