@narrative.io/data-collaboration-sdk-ts 0.0.71 → 0.0.72

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -162,7 +162,7 @@ function updateFieldsArray(field, fieldsArray, filterExpression) {
162
162
  * @returns {string} - Returns a string representation of the unary filter expression.
163
163
  */
164
164
  function constructUnaryFilterExpression(filter) {
165
- return `${filter.field.field} ${filter.operator}`;
165
+ return `${expressionToString(filter.field.field)} ${filter.operator}`;
166
166
  }
167
167
  /**
168
168
  * Constructs a string representing a binary filter expression.
@@ -179,7 +179,7 @@ function constructBinaryFilterExpression(filter) {
179
179
  */
180
180
  function expressionToString(expr) {
181
181
  if (typeof expr === 'string') {
182
- return `${addParentheses(expr)}`;
182
+ return `${addParentheses(expr.replace('"value"', 'value').replace('"type"', 'type'))}`;
183
183
  }
184
184
  else if (typeof expr === 'number') {
185
185
  return expr.toString();
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@narrative.io/data-collaboration-sdk-ts",
3
- "version": "0.0.71",
3
+ "version": "0.0.72",
4
4
  "main": "build/index.js",
5
5
  "repository": "github:narrative-io/data-collaboration-sdk-ts",
6
6
  "source": "src/index.ts",