Skip to content
This repository was archived by the owner on Oct 27, 2020. It is now read-only.

Commit 4e0e3ae

Browse files
Jannik Zschiescheevilebottnawi
authored andcommitted
fix: wrong option descriptions
1 parent 3371562 commit 4e0e3ae

File tree

3 files changed

+86
-55
lines changed

3 files changed

+86
-55
lines changed

package-lock.json

Lines changed: 82 additions & 51 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

src/options.json

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -10,11 +10,11 @@
1010
"instanceof": "Function"
1111
},
1212
"cacheIdentifier": {
13-
"description": "Provide a cache directory where cache items should be stored (used for default read/write implementation).",
13+
"description": "Provide an invalidation identifier which is used to generate the hashes. You can use it for extra dependencies of loaders (used for default read/write implementation).",
1414
"type": "string"
1515
},
1616
"cacheDirectory": {
17-
"description": "Provide an invalidation identifier which is used to generate the hashes. You can use it for extra dependencies of loaders (used for default read/write implementation).",
17+
"description": "Provide a cache directory where cache items should be stored (used for default read/write implementation).",
1818
"type": "string"
1919
},
2020
"compare": {

test/__snapshots__/validate-options.test.js.snap

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -3,13 +3,13 @@
33
exports[`validate options error (pitch) 1`] = `
44
"Invalid options object. Cache Loader (Pitch) has been initialised using an options object that does not match the API schema.
55
- options.cacheIdentifier should be a string.
6-
-> Provide a cache directory where cache items should be stored (used for default read/write implementation)."
6+
-> Provide an invalidation identifier which is used to generate the hashes. You can use it for extra dependencies of loaders (used for default read/write implementation)."
77
`;
88

99
exports[`validate options error 1`] = `
1010
"Invalid options object. Cache Loader has been initialised using an options object that does not match the API schema.
1111
- options.cacheIdentifier should be a string.
12-
-> Provide a cache directory where cache items should be stored (used for default read/write implementation)."
12+
-> Provide an invalidation identifier which is used to generate the hashes. You can use it for extra dependencies of loaders (used for default read/write implementation)."
1313
`;
1414

1515
exports[`validate options unknown (pitch) 1`] = `

0 commit comments

Comments
 (0)