color-name-list 12.1.0 → 12.2.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.
Files changed (38) hide show
  1. package/.vscode/tasks.json +10 -0
  2. package/README.md +2 -2
  3. package/dist/colornames.bestof.csv +17 -16
  4. package/dist/colornames.bestof.esm.js +1 -1
  5. package/dist/colornames.bestof.esm.mjs +1 -1
  6. package/dist/colornames.bestof.html +1 -1
  7. package/dist/colornames.bestof.json +1 -1
  8. package/dist/colornames.bestof.min.json +1 -1
  9. package/dist/colornames.bestof.scss +1 -1
  10. package/dist/colornames.bestof.umd.js +1 -1
  11. package/dist/colornames.bestof.xml +42 -38
  12. package/dist/colornames.bestof.yaml +34 -31
  13. package/dist/colornames.csv +27 -97
  14. package/dist/colornames.esm.js +1 -1
  15. package/dist/colornames.esm.mjs +1 -1
  16. package/dist/colornames.html +1 -1
  17. package/dist/colornames.json +1 -1
  18. package/dist/colornames.min.json +1 -1
  19. package/dist/colornames.scss +1 -1
  20. package/dist/colornames.short.csv +9 -15
  21. package/dist/colornames.short.esm.js +1 -1
  22. package/dist/colornames.short.esm.mjs +1 -1
  23. package/dist/colornames.short.html +1 -1
  24. package/dist/colornames.short.json +1 -1
  25. package/dist/colornames.short.min.json +1 -1
  26. package/dist/colornames.short.scss +1 -1
  27. package/dist/colornames.short.umd.js +1 -1
  28. package/dist/colornames.short.xml +16 -40
  29. package/dist/colornames.short.yaml +14 -32
  30. package/dist/colornames.umd.js +1 -1
  31. package/dist/colornames.xml +52 -332
  32. package/dist/colornames.yaml +41 -251
  33. package/dist/history.json +1 -1
  34. package/package.json +1 -1
  35. package/scripts/lib.js +24 -1
  36. package/src/colornames.csv +29 -99
  37. package/tests/duplicate-plurals-allowlist.json +7 -0
  38. package/tests/duplicates.test.js +2 -1
@@ -0,0 +1,7 @@
1
+ [
2
+ "Tropics",
3
+ "Blues",
4
+ "Greens",
5
+ "Nighthawks",
6
+ "Spearmints"
7
+ ]
@@ -3,6 +3,7 @@ import fs from 'fs';
3
3
  import path from 'path';
4
4
  import { findNearDuplicateNameConflicts } from '../scripts/lib.js';
5
5
  import allowlist from './duplicate-allowlist.json';
6
+ import pluralAllowlist from './duplicate-plurals-allowlist.json';
6
7
 
7
8
  describe('Duplicate-like color names', () => {
8
9
  it('should not contain names that only differ by spacing/punctuation/case/accents', () => {
@@ -22,7 +23,7 @@ describe('Duplicate-like color names', () => {
22
23
  return { name, lineNumber };
23
24
  }).filter(Boolean);
24
25
 
25
- const conflicts = findNearDuplicateNameConflicts(items, { allowlist });
26
+ const conflicts = findNearDuplicateNameConflicts(items, { allowlist, foldPlurals: true, pluralAllowlist });
26
27
 
27
28
  if (conflicts.length) {
28
29
  // Create a helpful error message with examples and hints.