triangle-utils 1.4.153 → 1.4.154

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.
@@ -187,7 +187,7 @@ export class UtilsS3 {
187
187
  }
188
188
  const command = new GetObjectCommand({
189
189
  ...s3_input,
190
- ResponseContentDisposition: name !== undefined ? ("attachment; filename = \"" + name + "\"") : undefined
190
+ ResponseContentDisposition: name !== undefined ? ("filename = \"" + name + "\"") : undefined
191
191
  });
192
192
  const url = await getSignedUrl(this.s3, command);
193
193
  return url;
package/dist/src/f.js CHANGED
@@ -81,3 +81,5 @@ const utils = new TriangleUtils(config);
81
81
  // .then(user => console.log(user))
82
82
  // await utils.bedrock.cohere_invoke("cohere.embed-v4", "yyyyyuuuuuurrrrr")
83
83
  // .then(response => console.log(response))
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
+ .then(response => console.log(response));
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "triangle-utils",
3
- "version": "1.4.153",
3
+ "version": "1.4.154",
4
4
  "main": "dist/src/index.js",
5
5
  "types": "dist/src/index.d.ts",
6
6
  "directories": {
package/src/UtilsS3.ts CHANGED
@@ -208,7 +208,7 @@ export class UtilsS3 {
208
208
  }
209
209
  const command = new GetObjectCommand({
210
210
  ...s3_input,
211
- ResponseContentDisposition: name !== undefined ? ("attachment; filename = \"" + name + "\"") : undefined
211
+ ResponseContentDisposition: name !== undefined ? ("filename = \"" + name + "\"") : undefined
212
212
  })
213
213
  const url = await getSignedUrl(this.s3, command)
214
214
  return url
package/src/f.ts CHANGED
@@ -101,4 +101,7 @@ const utils = new TriangleUtils(config)
101
101
  // .then(user => console.log(user))
102
102
 
103
103
  // await utils.bedrock.cohere_invoke("cohere.embed-v4", "yyyyyuuuuuurrrrr")
104
- // .then(response => console.log(response))
104
+ // .then(response => console.log(response))
105
+
106
+ 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" })
107
+ .then(response => console.log(response))