@fjall/components-infrastructure 39.0.6 → 39.0.7

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.
@@ -47,7 +47,16 @@ async function fetchWithRetry(path) {
47
47
  signal: AbortSignal.timeout(REQUEST_TIMEOUT_MS)
48
48
  });
49
49
  if (response.ok) {
50
- return await response.json();
50
+ const body = await response.text();
51
+ try {
52
+ return JSON.parse(body);
53
+ } catch {
54
+ // The body carries the parameter's value or the secret string, and
55
+ // V8's message quotes a window of it, so only its length is named.
56
+ throw new Error(
57
+ `Extension returned a body that is not valid JSON (${body.length} characters)`
58
+ );
59
+ }
51
60
  }
52
61
  // 4xx errors (e.g. secret not found) — don't retry
53
62
  if (response.status >= 400 && response.status < 500) {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@fjall/components-infrastructure",
3
- "version": "39.0.6",
3
+ "version": "39.0.7",
4
4
  "repository": {
5
5
  "type": "git",
6
6
  "url": "git+https://github.com/fjall-tech/fjall.git",
@@ -81,14 +81,11 @@
81
81
  },
82
82
  "dependencies": {
83
83
  "@aws-sdk/client-organizations": "^3.1098.0",
84
- "@fjall/generator": "^39.0.6",
85
- "@fjall/util": "^39.0.6",
84
+ "@fjall/generator": "^39.0.7",
85
+ "@fjall/util": "^39.0.7",
86
86
  "constructs": "^10.7.2",
87
87
  "zod": "^4.4.3"
88
88
  },
89
- "overrides": {
90
- "@smithy/core": "2.5.5"
91
- },
92
89
  "peerDependencies": {
93
90
  "aws-cdk": "^2.1134.0",
94
91
  "aws-cdk-lib": "^2.265.0",