triangle-utils 1.4.181 → 1.4.182

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.
@@ -52,7 +52,7 @@ function convert_postgres_output(output, field) {
52
52
  return JSON.parse(output[field.name]);
53
53
  }
54
54
  if (field.dataTypeID === 110963) {
55
- return { wkt: wkx.Geometry.parse(output[field.name]).toWkt() };
55
+ return { wkt: wkx.Geometry.parse(Buffer.from(output[field.name], "hex")).toWkt() };
56
56
  }
57
57
  return output[field.name];
58
58
  }
package/dist/src/f.js CHANGED
@@ -83,5 +83,5 @@ const utils = new TriangleUtils(config);
83
83
  // .then(response => console.log(response))
84
84
  // await utils.s3.get_download_url("s3://triangle-675045717295-us-east-1-an/tenant_documents/a3a9627f-a94d-4d47-a110-307a6f5563af/a146d789-da40-4e3c-a132-8b7110f3f7df.pdf", { name : "hye.pdf" })
85
85
  // .then(response => console.log(response))
86
- await utils.rds.exec("SELECT * FROM tenants")
86
+ await utils.rds.scan("states")
87
87
  .then(console.log);
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "triangle-utils",
3
- "version": "1.4.181",
3
+ "version": "1.4.182",
4
4
  "main": "dist/src/index.js",
5
5
  "types": "dist/src/index.d.ts",
6
6
  "directories": {
package/src/UtilsRDS.ts CHANGED
@@ -50,7 +50,7 @@ function convert_postgres_output(output : any, field : FieldDef) {
50
50
  return JSON.parse(output[field.name])
51
51
  }
52
52
  if (field.dataTypeID === 110963) {
53
- return { wkt : wkx.Geometry.parse(output[field.name]).toWkt() }
53
+ return { wkt : wkx.Geometry.parse(Buffer.from(output[field.name], "hex")).toWkt() }
54
54
  }
55
55
  return output[field.name]
56
56
  }
package/src/f.ts CHANGED
@@ -107,5 +107,5 @@ const utils = new TriangleUtils(config)
107
107
  // .then(response => console.log(response))
108
108
 
109
109
 
110
- await utils.rds.exec("SELECT * FROM tenants")
110
+ await utils.rds.scan("states")
111
111
  .then(console.log)