color-name-list 10.26.1 → 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.26.1",
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
@@ -5900,6 +5901,7 @@ Clytemnestra,#e8e2e0,
5900
5901
  Co Pilot,#4978a9,
5901
5902
  CO₂,#cadfec,
5902
5903
  Coach Green,#003527,
5904
+ Coal Hard Truth,#3b3b3d,x
5903
5905
  Coal Mine,#54555d,
5904
5906
  Coal Miner,#777872,
5905
5907
  Coalmine,#220033,x
@@ -14599,6 +14601,7 @@ Lavender Violet,#767ba5,
14599
14601
  Lavender Vista,#e3d7e5,
14600
14602
  Lavender Wash,#aab0d4,
14601
14603
  Lavender Water,#d2c9df,
14604
+ Lavendless,#b86fc2,x
14602
14605
  Lavendula,#bca4cb,
14603
14606
  Lavish Gold,#a38154,
14604
14607
  Lavish Lavender,#c2aec3,
@@ -16519,6 +16522,7 @@ Mellow Apricot,#f8b878,x
16519
16522
  Mellow Blue,#d7e2dd,
16520
16523
  Mellow Buff,#d5af91,
16521
16524
  Mellow Coral,#e0897e,
16525
+ Mellow Drama,#ffc65f,x
16522
16526
  Mellow Flower,#f1dfe9,
16523
16527
  Mellow Glow,#ffcfad,
16524
16528
  Mellow Green,#d5d593,
@@ -19612,6 +19616,7 @@ Peaceful Rain,#f1fbf1,
19612
19616
  Peaceful River,#47a0d2,
19613
19617
  Peach,#ffb07c,x
19614
19618
  Peach Amber,#fb9f93,
19619
+ Peach and Quiet,#ffccb6,x
19615
19620
  Peach Ash,#efc4bb,
19616
19621
  Peach Beach,#fdcfa1,x
19617
19622
  Peach Beauty,#e7c3ab,
@@ -24671,6 +24676,7 @@ Slate,#516572,
24671
24676
  Slate Black,#4b3d33,
24672
24677
  Slate Blue,#5b7c99,
24673
24678
  Slate Brown,#a0987c,
24679
+ Slate Expectations,#6e7f8d,
24674
24680
  Slate Green,#658d6d,
24675
24681
  Slate Grey,#59656d,
24676
24682
  Slate Mauve,#625c63,