@adobe/helix-shared-config 11.0.0 → 11.0.1
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/IndexConfig.js +5 -9
package/CHANGELOG.md
CHANGED
|
@@ -1,3 +1,10 @@
|
|
|
1
|
+
# [@adobe/helix-shared-config-v11.0.1](https://github.com/adobe/helix-shared/compare/@adobe/helix-shared-config-v11.0.0...@adobe/helix-shared-config-v11.0.1) (2024-09-26)
|
|
2
|
+
|
|
3
|
+
|
|
4
|
+
### Bug Fixes
|
|
5
|
+
|
|
6
|
+
* do not throw but provide errors ([#1002](https://github.com/adobe/helix-shared/issues/1002)) ([3cdd7ca](https://github.com/adobe/helix-shared/commit/3cdd7ca125dd30c69317494fe068b79dbcc980e0))
|
|
7
|
+
|
|
1
8
|
# [@adobe/helix-shared-config-v11.0.0](https://github.com/adobe/helix-shared/compare/@adobe/helix-shared-config-v10.6.9...@adobe/helix-shared-config-v11.0.0) (2024-09-25)
|
|
2
9
|
|
|
3
10
|
|
package/package.json
CHANGED
package/src/IndexConfig.js
CHANGED
|
@@ -195,15 +195,11 @@ export class IndexConfig extends SchemaDerivedConfig {
|
|
|
195
195
|
}
|
|
196
196
|
|
|
197
197
|
/**
|
|
198
|
-
*
|
|
198
|
+
* Return errors encountered in parsing.
|
|
199
|
+
*
|
|
200
|
+
* @returns {String[]} parsing errors
|
|
199
201
|
*/
|
|
200
|
-
|
|
201
|
-
|
|
202
|
-
|
|
203
|
-
if (this._document?.errors?.length) {
|
|
204
|
-
const detail = this._document.errors.map(({ message }) => (message)).join('\n');
|
|
205
|
-
throw new Error(`Invalid index configuration:
|
|
206
|
-
${detail}`);
|
|
207
|
-
}
|
|
202
|
+
getErrors() {
|
|
203
|
+
return this._document?.errors ?? [];
|
|
208
204
|
}
|
|
209
205
|
}
|