@graffy/pg 0.15.14-alpha.2 → 0.15.14-alpha.3

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.
Files changed (3) hide show
  1. package/index.cjs +1 -1
  2. package/index.mjs +1 -1
  3. package/package.json +2 -2
package/index.cjs CHANGED
@@ -295,7 +295,7 @@ function castValue(value, type, op) {
295
295
  if (!Array.isArray(value) || !value.length || Array.isArray(value[0]) && value.length !== 2) {
296
296
  throw Error("pg.castValue_bad_cube" + JSON.stringify(value));
297
297
  }
298
- return Array.isArray(value[0]) ? sql__default["default"]`cube(${vertexSql(value[0])}, ${vertexSql(value[1])})` : sql__default["default"]`cube(${vertexSql(value)})`;
298
+ return Array.isArray(value[0]) ? sql__default["default"]`${sqlOp} cube(${vertexSql(value[0])}, ${vertexSql(value[1])})` : sql__default["default"]`${sqlOp} cube(${vertexSql(value)})`;
299
299
  }
300
300
  return sql__default["default"]`${sqlOp} ${value}`;
301
301
  }
package/index.mjs CHANGED
@@ -287,7 +287,7 @@ function castValue(value, type, op) {
287
287
  if (!Array.isArray(value) || !value.length || Array.isArray(value[0]) && value.length !== 2) {
288
288
  throw Error("pg.castValue_bad_cube" + JSON.stringify(value));
289
289
  }
290
- return Array.isArray(value[0]) ? sql`cube(${vertexSql(value[0])}, ${vertexSql(value[1])})` : sql`cube(${vertexSql(value)})`;
290
+ return Array.isArray(value[0]) ? sql`${sqlOp} cube(${vertexSql(value[0])}, ${vertexSql(value[1])})` : sql`${sqlOp} cube(${vertexSql(value)})`;
291
291
  }
292
292
  return sql`${sqlOp} ${value}`;
293
293
  }
package/package.json CHANGED
@@ -2,7 +2,7 @@
2
2
  "name": "@graffy/pg",
3
3
  "description": "The standard Postgres module for Graffy. Each instance this module mounts a Postgres table as a Graffy subtree.",
4
4
  "author": "aravind (https://github.com/aravindet)",
5
- "version": "0.15.14-alpha.2",
5
+ "version": "0.15.14-alpha.3",
6
6
  "main": "./index.cjs",
7
7
  "exports": {
8
8
  "import": "./index.mjs",
@@ -16,7 +16,7 @@
16
16
  },
17
17
  "license": "Apache-2.0",
18
18
  "dependencies": {
19
- "@graffy/common": "0.15.14-alpha.2",
19
+ "@graffy/common": "0.15.14-alpha.3",
20
20
  "sql-template-tag": "^4.0.0",
21
21
  "debug": "^4.3.2"
22
22
  },