@adobe/helix-config 5.4.5 → 5.4.6
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/eslint.config.js +32 -0
- package/package.json +5 -4
- package/src/config-view.js +16 -16
- package/.eslintrc.cjs +0 -16
package/CHANGELOG.md
CHANGED
|
@@ -1,3 +1,10 @@
|
|
|
1
|
+
## [5.4.6](https://github.com/adobe/helix-config/compare/v5.4.5...v5.4.6) (2025-06-10)
|
|
2
|
+
|
|
3
|
+
|
|
4
|
+
### Bug Fixes
|
|
5
|
+
|
|
6
|
+
* always include org user roles ([#287](https://github.com/adobe/helix-config/issues/287)) ([3c8f41c](https://github.com/adobe/helix-config/commit/3c8f41c7bf27f6388634d65376fc20ca90601550))
|
|
7
|
+
|
|
1
8
|
## [5.4.5](https://github.com/adobe/helix-config/compare/v5.4.4...v5.4.5) (2025-06-03)
|
|
2
9
|
|
|
3
10
|
|
package/eslint.config.js
ADDED
|
@@ -0,0 +1,32 @@
|
|
|
1
|
+
/*
|
|
2
|
+
* Copyright 2025 Adobe. All rights reserved.
|
|
3
|
+
* This file is licensed to you under the Apache License, Version 2.0 (the "License");
|
|
4
|
+
* you may not use this file except in compliance with the License. You may obtain a copy
|
|
5
|
+
* of the License at http://www.apache.org/licenses/LICENSE-2.0
|
|
6
|
+
*
|
|
7
|
+
* Unless required by applicable law or agreed to in writing, software distributed under
|
|
8
|
+
* the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR REPRESENTATIONS
|
|
9
|
+
* OF ANY KIND, either express or implied. See the License for the specific language
|
|
10
|
+
* governing permissions and limitations under the License.
|
|
11
|
+
*/
|
|
12
|
+
import { defineConfig, globalIgnores } from '@eslint/config-helpers';
|
|
13
|
+
import { recommended, source, test } from '@adobe/eslint-config-helix';
|
|
14
|
+
|
|
15
|
+
export default defineConfig([
|
|
16
|
+
globalIgnores([
|
|
17
|
+
'.vscode/*',
|
|
18
|
+
'coverage/*',
|
|
19
|
+
]),
|
|
20
|
+
{
|
|
21
|
+
rules: {
|
|
22
|
+
// see https://github.com/import-js/eslint-plugin-import/issues/1868
|
|
23
|
+
'import/no-unresolved': ['error', { ignore: ['@adobe/helix-shared-config/modifiers'] }]
|
|
24
|
+
},
|
|
25
|
+
plugins: {
|
|
26
|
+
import: recommended.plugins.import,
|
|
27
|
+
},
|
|
28
|
+
extends: [recommended],
|
|
29
|
+
},
|
|
30
|
+
source,
|
|
31
|
+
test,
|
|
32
|
+
]);
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@adobe/helix-config",
|
|
3
|
-
"version": "5.4.
|
|
3
|
+
"version": "5.4.6",
|
|
4
4
|
"description": "Helix Config",
|
|
5
5
|
"main": "src/index.js",
|
|
6
6
|
"types": "src/index.d.ts",
|
|
@@ -35,16 +35,17 @@
|
|
|
35
35
|
"reporter-options": "configFile=.mocha-multi.json"
|
|
36
36
|
},
|
|
37
37
|
"devDependencies": {
|
|
38
|
-
"@adobe/eslint-config-helix": "
|
|
38
|
+
"@adobe/eslint-config-helix": "3.0.3",
|
|
39
|
+
"@eslint/config-helpers": "0.2.2",
|
|
39
40
|
"@semantic-release/changelog": "6.0.3",
|
|
40
41
|
"@semantic-release/git": "10.0.1",
|
|
41
42
|
"@semantic-release/npm": "12.0.1",
|
|
42
43
|
"c8": "10.1.3",
|
|
43
|
-
"eslint": "
|
|
44
|
+
"eslint": "9.4.0",
|
|
44
45
|
"husky": "9.1.7",
|
|
45
46
|
"junit-report-builder": "5.1.1",
|
|
46
47
|
"lint-staged": "16.1.0",
|
|
47
|
-
"mocha": "11.
|
|
48
|
+
"mocha": "11.6.0",
|
|
48
49
|
"mocha-multi-reporters": "1.5.1",
|
|
49
50
|
"mocha-suppress-logs": "0.5.1",
|
|
50
51
|
"nock": "13.5.6",
|
package/src/config-view.js
CHANGED
|
@@ -497,23 +497,23 @@ export async function getConfigResponse(ctx, opts) {
|
|
|
497
497
|
}
|
|
498
498
|
|
|
499
499
|
const orgConfig = await loadOrgConfig(ctx, org);
|
|
500
|
-
|
|
501
|
-
|
|
502
|
-
|
|
503
|
-
|
|
504
|
-
|
|
505
|
-
|
|
506
|
-
|
|
507
|
-
|
|
508
|
-
|
|
509
|
-
|
|
510
|
-
|
|
511
|
-
}
|
|
512
|
-
prune(config.access);
|
|
513
|
-
if (!Object.keys(config.access).length) {
|
|
514
|
-
delete config.access;
|
|
515
|
-
}
|
|
500
|
+
|
|
501
|
+
// normalize access config
|
|
502
|
+
const { admin = {} } = config.access ?? {};
|
|
503
|
+
config.access = {
|
|
504
|
+
preview: await getAccessConfig(ctx, config, orgConfig, 'preview', rso),
|
|
505
|
+
live: await getAccessConfig(ctx, config, orgConfig, 'live', rso),
|
|
506
|
+
// access.require.repository ?
|
|
507
|
+
};
|
|
508
|
+
if (opts.scope === SCOPE_ADMIN || opts.scope === SCOPE_RAW) {
|
|
509
|
+
// eslint-disable-next-line max-len
|
|
510
|
+
config.access.admin = computeSiteAdminRoles(admin, orgConfig, config.groups);
|
|
516
511
|
}
|
|
512
|
+
prune(config.access);
|
|
513
|
+
if (!Object.keys(config.access).length) {
|
|
514
|
+
delete config.access;
|
|
515
|
+
}
|
|
516
|
+
|
|
517
517
|
if (opts.scope === SCOPE_ADMIN || opts.scope === SCOPE_RAW) {
|
|
518
518
|
const merged = { ...config.apiKeys, ...orgConfig?.apiKeys };
|
|
519
519
|
if (Object.keys(merged).length) {
|
package/.eslintrc.cjs
DELETED
|
@@ -1,16 +0,0 @@
|
|
|
1
|
-
/*
|
|
2
|
-
* Copyright 2021 Adobe. All rights reserved.
|
|
3
|
-
* This file is licensed to you under the Apache License, Version 2.0 (the "License");
|
|
4
|
-
* you may not use this file except in compliance with the License. You may obtain a copy
|
|
5
|
-
* of the License at http://www.apache.org/licenses/LICENSE-2.0
|
|
6
|
-
*
|
|
7
|
-
* Unless required by applicable law or agreed to in writing, software distributed under
|
|
8
|
-
* the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR REPRESENTATIONS
|
|
9
|
-
* OF ANY KIND, either express or implied. See the License for the specific language
|
|
10
|
-
* governing permissions and limitations under the License.
|
|
11
|
-
*/
|
|
12
|
-
|
|
13
|
-
module.exports = {
|
|
14
|
-
root: true,
|
|
15
|
-
extends: '@adobe/helix',
|
|
16
|
-
};
|