@adobe/helix-admin-support 2.4.0 → 2.4.2
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 +2 -2
- package/src/fetch-ignore.js +2 -2
- package/src/fetch-index.js +2 -2
package/CHANGELOG.md
CHANGED
|
@@ -1,3 +1,17 @@
|
|
|
1
|
+
## [2.4.2](https://github.com/adobe/helix-admin-support/compare/v2.4.1...v2.4.2) (2024-03-02)
|
|
2
|
+
|
|
3
|
+
|
|
4
|
+
### Bug Fixes
|
|
5
|
+
|
|
6
|
+
* **deps:** update dependency @adobe/helix-shared-config to v10.3.12 ([982ac17](https://github.com/adobe/helix-admin-support/commit/982ac179ec1f80e39f8702007b43c5cc6f506ba9))
|
|
7
|
+
|
|
8
|
+
## [2.4.1](https://github.com/adobe/helix-admin-support/compare/v2.4.0...v2.4.1) (2024-03-01)
|
|
9
|
+
|
|
10
|
+
|
|
11
|
+
### Bug Fixes
|
|
12
|
+
|
|
13
|
+
* don't fail if context has no env ([#231](https://github.com/adobe/helix-admin-support/issues/231)) ([f24d81f](https://github.com/adobe/helix-admin-support/commit/f24d81f79628a1d7a145eda092d10459b76b6d24))
|
|
14
|
+
|
|
1
15
|
# [2.4.0](https://github.com/adobe/helix-admin-support/compare/v2.3.22...v2.4.0) (2024-02-29)
|
|
2
16
|
|
|
3
17
|
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@adobe/helix-admin-support",
|
|
3
|
-
"version": "2.4.
|
|
3
|
+
"version": "2.4.2",
|
|
4
4
|
"description": "Helix Admin Support Library",
|
|
5
5
|
"main": "src/index.js",
|
|
6
6
|
"type": "module",
|
|
@@ -35,7 +35,7 @@
|
|
|
35
35
|
},
|
|
36
36
|
"dependencies": {
|
|
37
37
|
"@adobe/fetch": "4.1.1",
|
|
38
|
-
"@adobe/helix-shared-config": "10.3.
|
|
38
|
+
"@adobe/helix-shared-config": "10.3.12",
|
|
39
39
|
"@adobe/helix-shared-utils": "3.0.1",
|
|
40
40
|
"@aws-sdk/client-s3": "3.521.0",
|
|
41
41
|
"@aws-sdk/client-sqs": "3.521.0",
|
package/src/fetch-fstab.js
CHANGED
|
@@ -50,7 +50,7 @@ async function handleResponse(log, response, key, type) {
|
|
|
50
50
|
* @returns {Promise<MountConfig>} the fstab
|
|
51
51
|
*/
|
|
52
52
|
export async function fetchFstab(ctx, opts, optional) {
|
|
53
|
-
const { log, attributes } = ctx;
|
|
53
|
+
const { log, attributes, env = {} } = ctx;
|
|
54
54
|
const loadFstab = async () => {
|
|
55
55
|
const { owner, repo } = opts;
|
|
56
56
|
if (!owner || !repo) {
|
|
@@ -71,7 +71,7 @@ export async function fetchFstab(ctx, opts, optional) {
|
|
|
71
71
|
headers.authorization = `token ${ctx.githubToken}`;
|
|
72
72
|
}
|
|
73
73
|
|
|
74
|
-
const { GH_RAW_URL = 'https://raw.githubusercontent.com' } =
|
|
74
|
+
const { GH_RAW_URL = 'https://raw.githubusercontent.com' } = env;
|
|
75
75
|
|
|
76
76
|
response = await fetch(`${GH_RAW_URL}/${key}`, {
|
|
77
77
|
cache: 'no-store',
|
package/src/fetch-ignore.js
CHANGED
|
@@ -49,7 +49,7 @@ async function handleResponse(log, response, key) {
|
|
|
49
49
|
* @returns {Promise<IgnoreConfig>} the IgnoreConfig
|
|
50
50
|
*/
|
|
51
51
|
export async function fetchIgnore(ctx, opts) {
|
|
52
|
-
const { attributes, log } = ctx;
|
|
52
|
+
const { attributes, log, env = {} } = ctx;
|
|
53
53
|
const {
|
|
54
54
|
owner, repo, ref, branch,
|
|
55
55
|
} = opts;
|
|
@@ -64,7 +64,7 @@ export async function fetchIgnore(ctx, opts) {
|
|
|
64
64
|
headers.authorization = `token ${ctx.githubToken}`;
|
|
65
65
|
}
|
|
66
66
|
|
|
67
|
-
const { GH_RAW_URL = 'https://raw.githubusercontent.com' } =
|
|
67
|
+
const { GH_RAW_URL = 'https://raw.githubusercontent.com' } = env;
|
|
68
68
|
|
|
69
69
|
const response = await fetch(`${GH_RAW_URL}/${key}`, {
|
|
70
70
|
cache: 'no-store',
|
package/src/fetch-index.js
CHANGED
|
@@ -55,7 +55,7 @@ async function handleResponse(log, response, key, type) {
|
|
|
55
55
|
* @returns {Promise<IndexConfig>} the index config
|
|
56
56
|
*/
|
|
57
57
|
export async function fetchIndex(ctx, opts, optional) {
|
|
58
|
-
const { attributes, log } = ctx;
|
|
58
|
+
const { attributes, log, env = {} } = ctx;
|
|
59
59
|
const {
|
|
60
60
|
owner, repo, ref, branch,
|
|
61
61
|
} = opts;
|
|
@@ -76,7 +76,7 @@ export async function fetchIndex(ctx, opts, optional) {
|
|
|
76
76
|
if (ctx.githubToken) {
|
|
77
77
|
headers.authorization = `token ${ctx.githubToken}`;
|
|
78
78
|
}
|
|
79
|
-
const { GH_RAW_URL = 'https://raw.githubusercontent.com' } =
|
|
79
|
+
const { GH_RAW_URL = 'https://raw.githubusercontent.com' } = env;
|
|
80
80
|
|
|
81
81
|
response = await fetch(`${GH_RAW_URL}/${key}`, {
|
|
82
82
|
cache: 'no-store',
|