@vizamodo/aws-sts-core 0.3.9 → 0.3.10

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.
@@ -13,10 +13,5 @@ export function hex(buf) {
13
13
  }
14
14
  export async function sha256Hex(input) {
15
15
  const hash = await crypto.subtle.digest("SHA-256", textEncoder.encode(input));
16
- const bytes = new Uint8Array(hash);
17
- const hexParts = new Array(32);
18
- for (let i = 0; i < 32; i++) {
19
- hexParts[i] = HEX_TABLE[bytes[i]];
20
- }
21
- return hexParts.join("");
16
+ return hex(hash);
22
17
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@vizamodo/aws-sts-core",
3
- "version": "0.3.9",
3
+ "version": "0.3.10",
4
4
  "description": "Pure AWS STS + SigV4 (X509 Roles Anywhere) core logic",
5
5
  "type": "module",
6
6
  "main": "dist/index.js",