@json-api/query-parser
Advanced tools
Comparing version 1.0.0 to 1.0.1
@@ -156,8 +156,8 @@ /* | ||
return { | ||
direction, | ||
...(fieldOrExp && fieldOrExp.type === 'RawFieldExpression' | ||
return Object.assign( | ||
{ direction }, | ||
(fieldOrExp && fieldOrExp.type === 'RawFieldExpression' | ||
? { expression: fieldOrExp } | ||
: { field: fieldOrExp.value }) | ||
}; | ||
); | ||
}, | ||
@@ -164,0 +164,0 @@ peg$c8 = peg$otherExpectation("field expression, atomic value, or comma-separated list"), |
{ | ||
"name": "@json-api/query-parser", | ||
"version": "1.0.0", | ||
"version": "1.0.1", | ||
"description": "A query parser for the ?filter and ?sort param syntax used by @json-api/server", | ||
@@ -5,0 +5,0 @@ "main": "build/src/index.js", |
60697