triangle-utils 1.4.180 → 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.
- package/dist/src/UtilsRDS.js +1 -1
- package/dist/src/f.js +1 -1
- package/dist/src/index.js +1 -1
- package/package.json +1 -1
- package/src/UtilsRDS.ts +1 -1
- package/src/f.ts +1 -1
- package/src/index.ts +1 -1
package/dist/src/UtilsRDS.js
CHANGED
|
@@ -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.scan("
|
|
86
|
+
await utils.rds.scan("states")
|
|
87
87
|
.then(console.log);
|
package/dist/src/index.js
CHANGED
|
@@ -31,7 +31,7 @@ export class TriangleUtils extends UtilsMisc {
|
|
|
31
31
|
constructor(config) {
|
|
32
32
|
super(config);
|
|
33
33
|
this.dynamodb = new UtilsDynamoDB(config.region);
|
|
34
|
-
this.rds = new UtilsRDS(config.
|
|
34
|
+
this.rds = new UtilsRDS(config.rds_host, config.rds_username, config.rds_password);
|
|
35
35
|
this.s3 = new UtilsS3(config.region);
|
|
36
36
|
this.s3vectors = new UtilsS3Vectors(config.region);
|
|
37
37
|
this.bedrock = new UtilsBedrock(config.region);
|
package/package.json
CHANGED
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.scan("
|
|
110
|
+
await utils.rds.scan("states")
|
|
111
111
|
.then(console.log)
|
package/src/index.ts
CHANGED
|
@@ -37,7 +37,7 @@ export class TriangleUtils extends UtilsMisc {
|
|
|
37
37
|
constructor(config : GlobalConfig) {
|
|
38
38
|
super(config)
|
|
39
39
|
this.dynamodb = new UtilsDynamoDB(config.region)
|
|
40
|
-
this.rds = new UtilsRDS(config.
|
|
40
|
+
this.rds = new UtilsRDS(config.rds_host, config.rds_username, config.rds_password)
|
|
41
41
|
this.s3 = new UtilsS3(config.region)
|
|
42
42
|
this.s3vectors = new UtilsS3Vectors(config.region)
|
|
43
43
|
this.bedrock = new UtilsBedrock(config.region)
|