triangle-utils 1.4.182 → 1.4.183

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.
@@ -18,7 +18,7 @@ function convert_postgres_input(input) {
18
18
  }
19
19
  else if (typeof input === "object") {
20
20
  if (input.wkt !== undefined) {
21
- return "ST_GEOMFROMTEXT('" + input.wkt + "')";
21
+ return "ST_GEOMFROMTEXT('" + input.wkt + "', 4326)";
22
22
  }
23
23
  }
24
24
  return "NULL";
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "triangle-utils",
3
- "version": "1.4.182",
3
+ "version": "1.4.183",
4
4
  "main": "dist/src/index.js",
5
5
  "types": "dist/src/index.d.ts",
6
6
  "directories": {
package/src/UtilsRDS.ts CHANGED
@@ -14,7 +14,7 @@ function convert_postgres_input(input : string | boolean | number | any[] | Reco
14
14
  return "ARRAY[" + input.map(a => convert_postgres_input(a)).join(", ") + "]"
15
15
  } else if (typeof input === "object") {
16
16
  if (input.wkt !== undefined) {
17
- return "ST_GEOMFROMTEXT('" + input.wkt + "')"
17
+ return "ST_GEOMFROMTEXT('" + input.wkt + "', 4326)"
18
18
  }
19
19
  }
20
20
  return "NULL"