triangle-utils 1.4.28 → 1.4.29

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.
@@ -22,7 +22,10 @@ export class UtilsBedrock {
22
22
  const response = JSON.parse(this.text_decoder.decode(output.body));
23
23
  return response.generation;
24
24
  }
25
- catch (e) {
25
+ catch (error) {
26
+ if (error instanceof Error) {
27
+ console.log(error.stack);
28
+ }
26
29
  console.log("Failed to get from Bedrock.");
27
30
  }
28
31
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "triangle-utils",
3
- "version": "1.4.28",
3
+ "version": "1.4.29",
4
4
  "main": "dist/src/index.js",
5
5
  "types": "dist/src/index.d.ts",
6
6
  "directories": {
@@ -25,7 +25,10 @@ export class UtilsBedrock {
25
25
  })
26
26
  const response = JSON.parse(this.text_decoder.decode(output.body))
27
27
  return response.generation
28
- } catch (e) {
28
+ } catch (error) {
29
+ if (error instanceof Error) {
30
+ console.log(error.stack)
31
+ }
29
32
  console.log("Failed to get from Bedrock.")
30
33
  }
31
34
  }