@adobe/helix-admin-support 1.1.8 → 1.1.11
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 +21 -0
- package/package.json +5 -5
- package/src/contentbus.js +6 -6
package/CHANGELOG.md
CHANGED
|
@@ -1,3 +1,24 @@
|
|
|
1
|
+
## [1.1.11](https://github.com/adobe/helix-admin-support/compare/v1.1.10...v1.1.11) (2022-04-30)
|
|
2
|
+
|
|
3
|
+
|
|
4
|
+
### Bug Fixes
|
|
5
|
+
|
|
6
|
+
* **deps:** update external fixes ([a4797ee](https://github.com/adobe/helix-admin-support/commit/a4797ee6125524e55ab375ffbd4bd8802f9fddbd))
|
|
7
|
+
|
|
8
|
+
## [1.1.10](https://github.com/adobe/helix-admin-support/compare/v1.1.9...v1.1.10) (2022-04-25)
|
|
9
|
+
|
|
10
|
+
|
|
11
|
+
### Bug Fixes
|
|
12
|
+
|
|
13
|
+
* **deps:** update external fixes ([#21](https://github.com/adobe/helix-admin-support/issues/21)) ([2b2c531](https://github.com/adobe/helix-admin-support/commit/2b2c5313ae10cdfca8bd4ac36f175a79bc264be4))
|
|
14
|
+
|
|
15
|
+
## [1.1.9](https://github.com/adobe/helix-admin-support/compare/v1.1.8...v1.1.9) (2022-04-19)
|
|
16
|
+
|
|
17
|
+
|
|
18
|
+
### Bug Fixes
|
|
19
|
+
|
|
20
|
+
* cache contentbusid in attributes ([#20](https://github.com/adobe/helix-admin-support/issues/20)) ([e39a8ea](https://github.com/adobe/helix-admin-support/commit/e39a8eabaceb77337d414a633942d3869b1f74dc))
|
|
21
|
+
|
|
1
22
|
## [1.1.8](https://github.com/adobe/helix-admin-support/compare/v1.1.7...v1.1.8) (2022-04-17)
|
|
2
23
|
|
|
3
24
|
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@adobe/helix-admin-support",
|
|
3
|
-
"version": "1.1.
|
|
3
|
+
"version": "1.1.11",
|
|
4
4
|
"description": "Helix Admin Support Library",
|
|
5
5
|
"main": "src/index.js",
|
|
6
6
|
"type": "module",
|
|
@@ -35,24 +35,24 @@
|
|
|
35
35
|
"@adobe/helix-fetch": "3.0.9",
|
|
36
36
|
"@adobe/helix-shared-config": "2.0.2",
|
|
37
37
|
"@adobe/helix-shared-utils": "2.0.8",
|
|
38
|
-
"@aws-sdk/client-s3": "3.
|
|
38
|
+
"@aws-sdk/client-s3": "3.81.0"
|
|
39
39
|
},
|
|
40
40
|
"devDependencies": {
|
|
41
41
|
"@adobe/eslint-config-helix": "1.3.2",
|
|
42
42
|
"@semantic-release/changelog": "6.0.1",
|
|
43
43
|
"@semantic-release/git": "10.0.1",
|
|
44
44
|
"@semantic-release/npm": "9.0.1",
|
|
45
|
-
"c8": "7.11.
|
|
45
|
+
"c8": "7.11.2",
|
|
46
46
|
"codecov": "3.8.3",
|
|
47
47
|
"commitizen": "4.2.4",
|
|
48
48
|
"cz-conventional-changelog": "3.3.0",
|
|
49
|
-
"eslint": "8.
|
|
49
|
+
"eslint": "8.14.0",
|
|
50
50
|
"eslint-plugin-header": "3.1.1",
|
|
51
51
|
"eslint-plugin-import": "2.26.0",
|
|
52
52
|
"husky": "7.0.4",
|
|
53
53
|
"jsdoc-to-markdown": "7.1.1",
|
|
54
54
|
"junit-report-builder": "3.0.0",
|
|
55
|
-
"lint-staged": "12.
|
|
55
|
+
"lint-staged": "12.4.1",
|
|
56
56
|
"mocha": "9.2.2",
|
|
57
57
|
"mocha-multi-reporters": "1.5.1",
|
|
58
58
|
"nock": "13.2.4",
|
package/src/contentbus.js
CHANGED
|
@@ -21,26 +21,26 @@ import { fetchFstab } from './fetch-fstab.js';
|
|
|
21
21
|
* @returns {Promise<string>} the content bus id
|
|
22
22
|
*/
|
|
23
23
|
export async function getContentBusId(ctx, opts, optional) {
|
|
24
|
-
if (ctx.contentBusId === undefined) {
|
|
24
|
+
if (ctx.attributes.contentBusId === undefined) {
|
|
25
25
|
const { path } = opts;
|
|
26
26
|
const fstab = await fetchFstab(ctx, opts, optional);
|
|
27
27
|
if (fstab === null) {
|
|
28
28
|
// this happens only when optional is `true` and there is no fstab.
|
|
29
|
-
ctx.contentBusId = null;
|
|
29
|
+
ctx.attributes.contentBusId = null;
|
|
30
30
|
} else {
|
|
31
31
|
const mp = fstab.match(path);
|
|
32
32
|
if (!mp) {
|
|
33
33
|
ctx.log.error(`path specified is not mounted in fstab.yaml: ${path}`);
|
|
34
|
-
ctx.contentBusId = null;
|
|
34
|
+
ctx.attributes.contentBusId = null;
|
|
35
35
|
return null;
|
|
36
36
|
}
|
|
37
37
|
const sha256 = crypto
|
|
38
38
|
.createHash('sha256')
|
|
39
39
|
.update(mp.url)
|
|
40
40
|
.digest('hex');
|
|
41
|
-
ctx.contentBusId = `${sha256.substring(0, 59)}`;
|
|
42
|
-
ctx.log.info(`computed contentBusId: ${ctx.contentBusId} for ${mp.url} of ${opts.repo}--${opts.owner}`);
|
|
41
|
+
ctx.attributes.contentBusId = `${sha256.substring(0, 59)}`;
|
|
42
|
+
ctx.log.info(`computed contentBusId: ${ctx.attributes.contentBusId} for ${mp.url} of ${opts.repo}--${opts.owner}`);
|
|
43
43
|
}
|
|
44
44
|
}
|
|
45
|
-
return ctx.contentBusId;
|
|
45
|
+
return ctx.attributes.contentBusId;
|
|
46
46
|
}
|