@percy/config 1.31.2-beta.0 → 1.31.2-beta.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/README.md +2 -2
- package/dist/validate.js +1 -1
- package/package.json +3 -3
package/README.md
CHANGED
|
@@ -10,9 +10,9 @@ configuration files.
|
|
|
10
10
|
|
|
11
11
|
## Loading config files
|
|
12
12
|
|
|
13
|
-
The `.load()` method will load and validate a
|
|
13
|
+
The `.load()` method will load and validate a configuration file, optionally merging it with any
|
|
14
14
|
provided `overrides`. If no `path` is provided, will search for the first supported config found
|
|
15
|
-
from the current directory up to the home
|
|
15
|
+
from the current directory up to the home directory. Configuration files are cached and reused unless
|
|
16
16
|
`reload` is `true`.
|
|
17
17
|
|
|
18
18
|
```js
|
package/dist/validate.js
CHANGED
|
@@ -310,7 +310,7 @@ export function validate(data, key = '/config') {
|
|
|
310
310
|
if (!algorithmType) {
|
|
311
311
|
errors.set(pathStr, {
|
|
312
312
|
path: pathStr,
|
|
313
|
-
message: 'algorithmConfiguration needs
|
|
313
|
+
message: 'algorithmConfiguration needs algorithm to be passed'
|
|
314
314
|
});
|
|
315
315
|
}
|
|
316
316
|
const nonAlgoConfigTypes = ['layout'];
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@percy/config",
|
|
3
|
-
"version": "1.31.2-beta.
|
|
3
|
+
"version": "1.31.2-beta.1",
|
|
4
4
|
"license": "MIT",
|
|
5
5
|
"repository": {
|
|
6
6
|
"type": "git",
|
|
@@ -38,7 +38,7 @@
|
|
|
38
38
|
"test:types": "tsd"
|
|
39
39
|
},
|
|
40
40
|
"dependencies": {
|
|
41
|
-
"@percy/logger": "1.31.2-beta.
|
|
41
|
+
"@percy/logger": "1.31.2-beta.1",
|
|
42
42
|
"ajv": "^8.6.2",
|
|
43
43
|
"cosmiconfig": "^8.0.0",
|
|
44
44
|
"yaml": "^2.0.0"
|
|
@@ -46,5 +46,5 @@
|
|
|
46
46
|
"devDependencies": {
|
|
47
47
|
"json-schema-typed": "^7.0.3"
|
|
48
48
|
},
|
|
49
|
-
"gitHead": "
|
|
49
|
+
"gitHead": "c8ba03fdd3ab7543f741a68eb5c357e38b48129e"
|
|
50
50
|
}
|