@adobe/helix-admin-support 2.3.22 → 2.4.0
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 +7 -0
- package/package.json +1 -1
- package/src/fetch-fstab.js +4 -1
- package/src/fetch-ignore.js +4 -1
- package/src/fetch-index.js +3 -1
package/CHANGELOG.md
CHANGED
|
@@ -1,3 +1,10 @@
|
|
|
1
|
+
# [2.4.0](https://github.com/adobe/helix-admin-support/compare/v2.3.22...v2.4.0) (2024-02-29)
|
|
2
|
+
|
|
3
|
+
|
|
4
|
+
### Features
|
|
5
|
+
|
|
6
|
+
* make github raw url configurable ([#230](https://github.com/adobe/helix-admin-support/issues/230)) ([b2963bc](https://github.com/adobe/helix-admin-support/commit/b2963bca15d21db86a3d1867058f37480ba41e5e))
|
|
7
|
+
|
|
1
8
|
## [2.3.22](https://github.com/adobe/helix-admin-support/compare/v2.3.21...v2.3.22) (2024-02-24)
|
|
2
9
|
|
|
3
10
|
|
package/package.json
CHANGED
package/src/fetch-fstab.js
CHANGED
|
@@ -70,7 +70,10 @@ export async function fetchFstab(ctx, opts, optional) {
|
|
|
70
70
|
if (ctx.githubToken) {
|
|
71
71
|
headers.authorization = `token ${ctx.githubToken}`;
|
|
72
72
|
}
|
|
73
|
-
|
|
73
|
+
|
|
74
|
+
const { GH_RAW_URL = 'https://raw.githubusercontent.com' } = ctx.env;
|
|
75
|
+
|
|
76
|
+
response = await fetch(`${GH_RAW_URL}/${key}`, {
|
|
74
77
|
cache: 'no-store',
|
|
75
78
|
headers,
|
|
76
79
|
});
|
package/src/fetch-ignore.js
CHANGED
|
@@ -63,7 +63,10 @@ export async function fetchIgnore(ctx, opts) {
|
|
|
63
63
|
if (ctx.githubToken) {
|
|
64
64
|
headers.authorization = `token ${ctx.githubToken}`;
|
|
65
65
|
}
|
|
66
|
-
|
|
66
|
+
|
|
67
|
+
const { GH_RAW_URL = 'https://raw.githubusercontent.com' } = ctx.env;
|
|
68
|
+
|
|
69
|
+
const response = await fetch(`${GH_RAW_URL}/${key}`, {
|
|
67
70
|
cache: 'no-store',
|
|
68
71
|
headers,
|
|
69
72
|
});
|
package/src/fetch-index.js
CHANGED
|
@@ -76,7 +76,9 @@ export async function fetchIndex(ctx, opts, optional) {
|
|
|
76
76
|
if (ctx.githubToken) {
|
|
77
77
|
headers.authorization = `token ${ctx.githubToken}`;
|
|
78
78
|
}
|
|
79
|
-
|
|
79
|
+
const { GH_RAW_URL = 'https://raw.githubusercontent.com' } = ctx.env;
|
|
80
|
+
|
|
81
|
+
response = await fetch(`${GH_RAW_URL}/${key}`, {
|
|
80
82
|
cache: 'no-store',
|
|
81
83
|
headers,
|
|
82
84
|
});
|