@adobe/aio-cli-lib-app-config 3.0.2-pre.2024-01-08.sha-754ff986 → 4.0.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/package.json +6 -7
- package/src/index.js +1 -0
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@adobe/aio-cli-lib-app-config",
|
|
3
|
-
"version": "
|
|
3
|
+
"version": "4.0.0",
|
|
4
4
|
"description": "node lib to provide a consistent interface to various config files that make up Adobe Developer App Builder applications and extensions",
|
|
5
5
|
"repository": "https://github.com/adobe/aio-cli-lib-app-config/",
|
|
6
6
|
"license": "Apache-2.0",
|
|
@@ -18,9 +18,9 @@
|
|
|
18
18
|
"generate-docs": "npm run typings && npm run jsdoc"
|
|
19
19
|
},
|
|
20
20
|
"dependencies": {
|
|
21
|
-
"@adobe/aio-lib-core-config": "
|
|
22
|
-
"@adobe/aio-lib-core-logging": "
|
|
23
|
-
"@adobe/aio-lib-env": "
|
|
21
|
+
"@adobe/aio-lib-core-config": "^5",
|
|
22
|
+
"@adobe/aio-lib-core-logging": "^3",
|
|
23
|
+
"@adobe/aio-lib-env": "^3",
|
|
24
24
|
"ajv": "^8.12.0",
|
|
25
25
|
"ajv-formats": "^2.1.1",
|
|
26
26
|
"fs-extra": "^9.0.1",
|
|
@@ -74,6 +74,5 @@
|
|
|
74
74
|
"setupFilesAfterEnv": [
|
|
75
75
|
"./test/jest.setup.js"
|
|
76
76
|
]
|
|
77
|
-
}
|
|
78
|
-
|
|
79
|
-
}
|
|
77
|
+
}
|
|
78
|
+
}
|
package/src/index.js
CHANGED
|
@@ -205,6 +205,7 @@ async function load (options = {}) {
|
|
|
205
205
|
* @param {object} options options
|
|
206
206
|
* @param {boolean} options.throws defaults to false, if true throws on validation error instead of returning the error
|
|
207
207
|
* @throws if not valid
|
|
208
|
+
* @returns {object} keys: valid (boolean), errors (array)
|
|
208
209
|
*/
|
|
209
210
|
async function validate (coalescedAppConfigObj, options = {}) {
|
|
210
211
|
const throws = options.throws === undefined ? false : options.throws
|