@vizamodo/aws-sts-core 0.4.16 → 0.4.17

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/sts/issue.js CHANGED
@@ -139,7 +139,8 @@ export async function issueAwsCredentials(input) {
139
139
  throw new InternalError("aws_unreachable");
140
140
  }
141
141
  if (!res.ok) {
142
- console.warn("[aws-rejected]", { status: res.status, region, profile });
142
+ const body = await res.text().catch(() => "<no-body>");
143
+ console.error("[aws-rejected]", { status: res.status, region, profile, body });
143
144
  throw new InternalError("aws_rejected");
144
145
  }
145
146
  const json = await res.json();
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@vizamodo/aws-sts-core",
3
- "version": "0.4.16",
3
+ "version": "0.4.17",
4
4
  "description": "Pure AWS STS + SigV4 (X509 Roles Anywhere) core logic",
5
5
  "type": "module",
6
6
  "main": "dist/index.js",