@adobe/helix-admin-support 3.3.1 → 3.3.3
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/CHANGELOG.md +14 -0
- package/package.json +2 -2
- package/src/fetch-fstab.js +3 -21
package/CHANGELOG.md
CHANGED
|
@@ -1,3 +1,17 @@
|
|
|
1
|
+
## [3.3.3](https://github.com/adobe/helix-admin-support/compare/v3.3.2...v3.3.3) (2025-06-02)
|
|
2
|
+
|
|
3
|
+
|
|
4
|
+
### Bug Fixes
|
|
5
|
+
|
|
6
|
+
* **deps:** update external fixes ([#403](https://github.com/adobe/helix-admin-support/issues/403)) ([83aebf2](https://github.com/adobe/helix-admin-support/commit/83aebf2f13b2d99b91dcd1cd4acaed0523d29f0e))
|
|
7
|
+
|
|
8
|
+
## [3.3.2](https://github.com/adobe/helix-admin-support/compare/v3.3.1...v3.3.2) (2025-05-28)
|
|
9
|
+
|
|
10
|
+
|
|
11
|
+
### Bug Fixes
|
|
12
|
+
|
|
13
|
+
* revert fstab github-api fallback ([#401](https://github.com/adobe/helix-admin-support/issues/401)) ([3ec06f4](https://github.com/adobe/helix-admin-support/commit/3ec06f4454bfe2803ef52578129af0f844f0e4ea))
|
|
14
|
+
|
|
1
15
|
## [3.3.1](https://github.com/adobe/helix-admin-support/compare/v3.3.0...v3.3.1) (2025-05-28)
|
|
2
16
|
|
|
3
17
|
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@adobe/helix-admin-support",
|
|
3
|
-
"version": "3.3.
|
|
3
|
+
"version": "3.3.3",
|
|
4
4
|
"description": "Helix Admin Support Library",
|
|
5
5
|
"main": "src/index.js",
|
|
6
6
|
"type": "module",
|
|
@@ -55,7 +55,7 @@
|
|
|
55
55
|
"jsdoc-to-markdown": "9.1.1",
|
|
56
56
|
"json-schema-to-typescript": "15.0.4",
|
|
57
57
|
"junit-report-builder": "5.1.1",
|
|
58
|
-
"lint-staged": "16.
|
|
58
|
+
"lint-staged": "16.1.0",
|
|
59
59
|
"mocha": "11.5.0",
|
|
60
60
|
"mocha-multi-reporters": "1.5.1",
|
|
61
61
|
"mocha-suppress-logs": "0.5.1",
|
package/src/fetch-fstab.js
CHANGED
|
@@ -60,13 +60,13 @@ export async function fetchFstab(ctx, opts, optional) {
|
|
|
60
60
|
|
|
61
61
|
let key = `${owner}/${repo}/main/fstab.yaml`;
|
|
62
62
|
let response = await fetchS3(ctx, 'helix-code-bus', key);
|
|
63
|
-
|
|
63
|
+
const cfg = await handleResponse(log, response, key, 'code-bus');
|
|
64
64
|
if (cfg) {
|
|
65
65
|
return cfg;
|
|
66
66
|
}
|
|
67
67
|
|
|
68
68
|
// try loading from github for non helix-3 repos
|
|
69
|
-
|
|
69
|
+
const headers = {};
|
|
70
70
|
key = `${owner}/${repo}/main/fstab.yaml`;
|
|
71
71
|
if (ctx.githubToken) {
|
|
72
72
|
headers.authorization = `token ${ctx.githubToken}`;
|
|
@@ -78,25 +78,7 @@ export async function fetchFstab(ctx, opts, optional) {
|
|
|
78
78
|
cache: 'no-store',
|
|
79
79
|
headers,
|
|
80
80
|
});
|
|
81
|
-
|
|
82
|
-
if (cfg) {
|
|
83
|
-
return cfg;
|
|
84
|
-
}
|
|
85
|
-
|
|
86
|
-
// try loading it from github using the content api
|
|
87
|
-
const { GH_BASE_URL = 'https://api.github.com' } = env;
|
|
88
|
-
headers = {
|
|
89
|
-
'X-GitHub-Api-Version': '2022-11-28',
|
|
90
|
-
accept: 'application/vnd.github.raw+json',
|
|
91
|
-
};
|
|
92
|
-
if (ctx.githubToken) {
|
|
93
|
-
headers.authorization = `Bearer ${ctx.githubToken}`;
|
|
94
|
-
}
|
|
95
|
-
response = await fetch(`${GH_BASE_URL}/repos/${owner}/${repo}/contents/fstab.yaml`, {
|
|
96
|
-
cache: 'no-store',
|
|
97
|
-
headers,
|
|
98
|
-
});
|
|
99
|
-
return handleResponse(log, response, key, 'github', ctx.githubToken ? 'github-api (authed)' : 'github-api');
|
|
81
|
+
return handleResponse(log, response, key, 'github', ctx.githubToken ? 'github (authed)' : 'github');
|
|
100
82
|
};
|
|
101
83
|
|
|
102
84
|
if (!('mountConfig' in attributes)) {
|