@adobe/helix-config-storage 2.3.0 → 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 +7 -7
- package/src/config-store.js +23 -12
package/CHANGELOG.md
CHANGED
|
@@ -1,3 +1,10 @@
|
|
|
1
|
+
# [2.4.0](https://github.com/adobe/helix-config-storage/compare/v2.3.0...v2.4.0) (2025-07-07)
|
|
2
|
+
|
|
3
|
+
|
|
4
|
+
### Features
|
|
5
|
+
|
|
6
|
+
* improve user creation during org creation ([11559e3](https://github.com/adobe/helix-config-storage/commit/11559e3cda9b186a0b810efb3c1b91bf1d5596e1))
|
|
7
|
+
|
|
1
8
|
# [2.3.0](https://github.com/adobe/helix-config-storage/compare/v2.2.13...v2.3.0) (2025-06-24)
|
|
2
9
|
|
|
3
10
|
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@adobe/helix-config-storage",
|
|
3
|
-
"version": "2.
|
|
3
|
+
"version": "2.4.0",
|
|
4
4
|
"description": "Helix Config Storage",
|
|
5
5
|
"main": "src/index.js",
|
|
6
6
|
"types": "src/index.d.ts",
|
|
@@ -36,11 +36,11 @@
|
|
|
36
36
|
"reporter-options": "configFile=.mocha-multi.json"
|
|
37
37
|
},
|
|
38
38
|
"devDependencies": {
|
|
39
|
-
"@adobe/eslint-config-helix": "3.0.
|
|
40
|
-
"@eslint/config-helpers": "0.
|
|
39
|
+
"@adobe/eslint-config-helix": "3.0.6",
|
|
40
|
+
"@eslint/config-helpers": "0.3.0",
|
|
41
41
|
"@semantic-release/changelog": "6.0.3",
|
|
42
42
|
"@semantic-release/git": "10.0.1",
|
|
43
|
-
"@semantic-release/npm": "12.0.
|
|
43
|
+
"@semantic-release/npm": "12.0.2",
|
|
44
44
|
"ajv-cli": "5.0.0",
|
|
45
45
|
"c8": "10.1.3",
|
|
46
46
|
"eslint": "9.4.0",
|
|
@@ -48,11 +48,11 @@
|
|
|
48
48
|
"json-schema-to-typescript": "15.0.4",
|
|
49
49
|
"junit-report-builder": "5.1.1",
|
|
50
50
|
"lint-staged": "16.1.2",
|
|
51
|
-
"mocha": "11.7.
|
|
51
|
+
"mocha": "11.7.1",
|
|
52
52
|
"mocha-multi-reporters": "1.5.1",
|
|
53
|
-
"mocha-suppress-logs": "0.
|
|
53
|
+
"mocha-suppress-logs": "0.6.0",
|
|
54
54
|
"nock": "13.5.6",
|
|
55
|
-
"semantic-release": "24.2.
|
|
55
|
+
"semantic-release": "24.2.6",
|
|
56
56
|
"xml2js": "0.6.2"
|
|
57
57
|
},
|
|
58
58
|
"lint-staged": {
|
package/src/config-store.js
CHANGED
|
@@ -533,8 +533,18 @@ export class ConfigStore {
|
|
|
533
533
|
throw new StatusCodeError(400, 'creating config with secrets not supported yet.');
|
|
534
534
|
}
|
|
535
535
|
if (this.type === 'org' && data.users) {
|
|
536
|
-
|
|
536
|
+
const users = [];
|
|
537
|
+
for (const userData of data.users) {
|
|
538
|
+
validateUniqueEmail(userData.email, users);
|
|
539
|
+
users.push(Object.assign(
|
|
540
|
+
Object.create(null),
|
|
541
|
+
createUser(),
|
|
542
|
+
userData,
|
|
543
|
+
));
|
|
544
|
+
}
|
|
545
|
+
data.users = users;
|
|
537
546
|
}
|
|
547
|
+
|
|
538
548
|
if (this.type !== 'org') {
|
|
539
549
|
updateContentSource(ctx, data.content);
|
|
540
550
|
updateCodeSource(ctx, data.code);
|
|
@@ -698,21 +708,22 @@ export class ConfigStore {
|
|
|
698
708
|
const users = [...old.users];
|
|
699
709
|
for (const userData of data) {
|
|
700
710
|
validateUniqueEmail(userData.email, users);
|
|
701
|
-
users.push(
|
|
702
|
-
|
|
703
|
-
|
|
704
|
-
|
|
711
|
+
users.push(Object.assign(
|
|
712
|
+
Object.create(null),
|
|
713
|
+
createUser(),
|
|
714
|
+
userData,
|
|
715
|
+
));
|
|
705
716
|
}
|
|
706
717
|
data = users;
|
|
707
718
|
} else {
|
|
708
|
-
|
|
709
|
-
|
|
710
|
-
|
|
711
|
-
|
|
712
|
-
|
|
719
|
+
data = Object.assign(
|
|
720
|
+
Object.create(null),
|
|
721
|
+
createUser(),
|
|
722
|
+
data,
|
|
723
|
+
);
|
|
713
724
|
validateUniqueEmail(data.email, old.users);
|
|
714
|
-
frag.name =
|
|
715
|
-
frag.relPath.push(
|
|
725
|
+
frag.name = data.id;
|
|
726
|
+
frag.relPath.push(data.id);
|
|
716
727
|
frag.type = 'user';
|
|
717
728
|
}
|
|
718
729
|
} else if (frag.type === 'user') {
|