color-name-list 10.27.0 → 10.28.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 CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "color-name-list",
3
- "version": "10.27.0",
3
+ "version": "10.28.0",
4
4
  "description": "long list of color names",
5
5
  "main": "dist/colornames.json",
6
6
  "browser": "dist/colornames.umd.js",
package/scripts/build.js CHANGED
@@ -418,22 +418,27 @@ const svgTpl = fs.readFileSync(
418
418
 
419
419
  // generates an SVG image with the new color based on the diff ot the last commit to the current
420
420
  function diffSVG() {
421
- exec(`git diff HEAD ${baseFolder}${folderDist}${fileNameSrc}.csv`,
422
- function (err, stdout, stderr) {
423
- const diffTxt = stdout;
424
- if (!/(?<=^[\+])[^\+].*/gm.test(diffTxt)) return;
425
- const changes = diffTxt.match(/(?<=^[\+])[^\+].*/gm).filter(i => i);
426
- const svgTxtStr = changes.reduce((str, change, i) => {
427
- const changeParts = change.split(',');
428
- return `${str}<text x="40" y="${20 + (i + 1) * 70}" fill="${changeParts[1]}">${changeParts[0].replace(/&/g, '&amp;')}</text>`;
429
- }, '');
430
-
431
- fs.writeFileSync(
432
- path.normalize(`${baseFolder}changes.svg`),
433
- svgTpl.replace(/{height}/g, changes.length * 70 + 80)
434
- .replace(/{items}/g, svgTxtStr)
435
- );
436
- });
421
+ exec(
422
+ `git diff -U0 HEAD ${baseFolder}${folderDist}${fileNameSrc}.csv | tr -d '\\n'`,
423
+ function (err, stdout, stderr) {
424
+ const diffTxt = stdout;
425
+ if (!/(?<=^[\+])[^\+].*/gm.test(diffTxt)) return;
426
+ const changes = diffTxt.match(/(?<=^[\+])[^\+].*/gm).filter((i) => i);
427
+ const svgTxtStr = changes.reduce((str, change, i) => {
428
+ const changeParts = change.split(",");
429
+ return `${str}<text x="40" y="${20 + (i + 1) * 70}" fill="${
430
+ changeParts[1]
431
+ }">${changeParts[0].replace(/&/g, "&amp;")}</text>`;
432
+ }, "");
433
+
434
+ fs.writeFileSync(
435
+ path.normalize(`${baseFolder}changes.svg`),
436
+ svgTpl
437
+ .replace(/{height}/g, changes.length * 70 + 80)
438
+ .replace(/{items}/g, svgTxtStr)
439
+ );
440
+ }
441
+ );
437
442
  };
438
443
 
439
444
  diffSVG();
@@ -2345,6 +2345,7 @@ Berry Chocolate,#3f000f,
2345
2345
  Berry Conserve,#765269,
2346
2346
  Berry Cream,#9a8ca2,
2347
2347
  Berry Crush,#aa6772,
2348
+ Berry Curious,#9b1c5d,
2348
2349
  Berry Frappé,#b3a1c6,
2349
2350
  Berry Frost,#ebded7,
2350
2351
  Berry Good,#edc3c5,x
@@ -19615,6 +19616,7 @@ Peaceful Rain,#f1fbf1,
19615
19616
  Peaceful River,#47a0d2,
19616
19617
  Peach,#ffb07c,x
19617
19618
  Peach Amber,#fb9f93,
19619
+ Peach and Quiet,#ffccb6,x
19618
19620
  Peach Ash,#efc4bb,
19619
19621
  Peach Beach,#fdcfa1,x
19620
19622
  Peach Beauty,#e7c3ab,
@@ -24674,6 +24676,7 @@ Slate,#516572,
24674
24676
  Slate Black,#4b3d33,
24675
24677
  Slate Blue,#5b7c99,
24676
24678
  Slate Brown,#a0987c,
24679
+ Slate Expectations,#6e7f8d,
24677
24680
  Slate Green,#658d6d,
24678
24681
  Slate Grey,#59656d,
24679
24682
  Slate Mauve,#625c63,