@narrative.io/data-collaboration-sdk-ts 1.1.0 → 1.2.0

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.
@@ -144,7 +144,7 @@ export function compileOutput(n) {
144
144
  case "dataset_column_ref":
145
145
  return compileDatasetColumnRef(n.datasetId, n.column, n.as, false);
146
146
  case "lit":
147
- return compileLit(n.value, n.value_type, n.as);
147
+ return compileLit(n.value, n.value_type, n.as, false);
148
148
  case "raw_ref":
149
149
  return compileRawRef(n.nql, n.as);
150
150
  case "nql":
@@ -281,7 +281,7 @@ function compileLike(value, pattern, negated, as) {
281
281
  const op = !negated ? "LIKE" : "NOT LIKE";
282
282
  return aliased(`${compileExpression(value)} ${op} ${str(pattern)}`, as);
283
283
  }
284
- function compileLit(value, valueType, as) {
284
+ function compileLit(value, valueType, as, aliasParens) {
285
285
  let valueNql;
286
286
  if (value !== null) {
287
287
  switch (valueType.type) {
@@ -313,7 +313,7 @@ function compileLit(value, valueType, as) {
313
313
  else {
314
314
  valueNql = "NULL";
315
315
  }
316
- return aliased(valueNql, as);
316
+ return aliased(valueNql, as, aliasParens);
317
317
  }
318
318
  function compileNot(operand, as) {
319
319
  return aliased(`NOT ${compileExpression(operand)}`, as);
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@narrative.io/data-collaboration-sdk-ts",
3
- "version": "1.1.0",
3
+ "version": "1.2.0",
4
4
  "main": "build/index.js",
5
5
  "repository": "github:narrative-io/data-collaboration-sdk-ts",
6
6
  "source": "src/index.ts",