@rsql/parser
Advanced tools
Comparing version 1.3.2 to 1.3.3
@@ -436,3 +436,3 @@ import { | ||
var token = stack[stack.length - 1]; | ||
var value = isQuotedToken(token) ? token.value.slice(1, -1) : token.value; | ||
var value = resolveValueTokenValue(token); | ||
return { | ||
@@ -455,10 +455,9 @@ consumed: 1, | ||
consumed: closeParenthesisIndex - openParenthesisIndex + 1, | ||
produced: createValueNode( | ||
valueTokens.map(function (valueToken) { | ||
return isQuotedToken(valueToken) ? valueToken.value.slice(1, -1) : valueToken.value; | ||
}), | ||
true | ||
), | ||
produced: createValueNode(valueTokens.map(resolveValueTokenValue), true), | ||
}; | ||
}; | ||
var ESCAPE_SEQUENCE = /\\([\s\S])/g; | ||
var resolveValueTokenValue = function (valueToken) { | ||
return isQuotedToken(valueToken) ? valueToken.value.slice(1, -1).replace(ESCAPE_SEQUENCE, "$1") : valueToken.value; | ||
}; | ||
var comparisonExpressionProduction = function (stack) { | ||
@@ -465,0 +464,0 @@ var selector = stack[stack.length - 3]; |
@@ -425,3 +425,3 @@ "use strict"; | ||
var token = stack[stack.length - 1]; | ||
var value = isQuotedToken(token) ? token.value.slice(1, -1) : token.value; | ||
var value = resolveValueTokenValue(token); | ||
return { | ||
@@ -444,10 +444,9 @@ consumed: 1, | ||
consumed: closeParenthesisIndex - openParenthesisIndex + 1, | ||
produced: ast.createValueNode( | ||
valueTokens.map(function (valueToken) { | ||
return isQuotedToken(valueToken) ? valueToken.value.slice(1, -1) : valueToken.value; | ||
}), | ||
true | ||
), | ||
produced: ast.createValueNode(valueTokens.map(resolveValueTokenValue), true), | ||
}; | ||
}; | ||
var ESCAPE_SEQUENCE = /\\([\s\S])/g; | ||
var resolveValueTokenValue = function (valueToken) { | ||
return isQuotedToken(valueToken) ? valueToken.value.slice(1, -1).replace(ESCAPE_SEQUENCE, "$1") : valueToken.value; | ||
}; | ||
var comparisonExpressionProduction = function (stack) { | ||
@@ -454,0 +453,0 @@ var selector = stack[stack.length - 3]; |
@@ -687,3 +687,3 @@ (function (global, factory) { | ||
var token = stack[stack.length - 1]; | ||
var value = isQuotedToken(token) ? token.value.slice(1, -1) : token.value; | ||
var value = resolveValueTokenValue(token); | ||
return { | ||
@@ -706,10 +706,9 @@ consumed: 1, | ||
consumed: closeParenthesisIndex - openParenthesisIndex + 1, | ||
produced: createValueNode( | ||
valueTokens.map(function (valueToken) { | ||
return isQuotedToken(valueToken) ? valueToken.value.slice(1, -1) : valueToken.value; | ||
}), | ||
true | ||
), | ||
produced: createValueNode(valueTokens.map(resolveValueTokenValue), true), | ||
}; | ||
}; | ||
var ESCAPE_SEQUENCE = /\\([\s\S])/g; | ||
var resolveValueTokenValue = function (valueToken) { | ||
return isQuotedToken(valueToken) ? valueToken.value.slice(1, -1).replace(ESCAPE_SEQUENCE, "$1") : valueToken.value; | ||
}; | ||
var comparisonExpressionProduction = function (stack) { | ||
@@ -716,0 +715,0 @@ var selector = stack[stack.length - 3]; |
@@ -7,3 +7,3 @@ { | ||
"author": "Piotr Oleś <piotrek.oles@gmail.com>", | ||
"version": "1.3.2", | ||
"version": "1.3.3", | ||
"sideEffects": false, | ||
@@ -32,3 +32,3 @@ "main": "dist/index.js", | ||
"dependencies": { | ||
"@rsql/ast": "^1.3.2" | ||
"@rsql/ast": "^1.3.3" | ||
}, | ||
@@ -43,3 +43,3 @@ "jest": { | ||
}, | ||
"gitHead": "2ea21bba7fd6cf652e325082a27213b81a01b7a6" | ||
"gitHead": "5550730a233889118f843d6e433c486a1c0bae7d" | ||
} |
74994
2141
Updated@rsql/ast@^1.3.3