color-name-list 10.25.0 → 10.25.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/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "color-name-list",
3
- "version": "10.25.0",
3
+ "version": "10.25.1",
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
@@ -127,8 +127,8 @@ const JSONExportStringShort = JSON.stringify(
127
127
  // make sure its only one word long
128
128
  (val) =>
129
129
  val[bestOfKey] &&
130
- val.name.split(" ").length === 1 &&
131
- val.name.length < maxShortNameLength
130
+ //val.name.split(" ").length === 1 &&
131
+ val.name.length < maxShortNameLength + 1
132
132
  )
133
133
  .map(
134
134
  // removes good name attributes
@@ -170,8 +170,8 @@ const miniJSONExportObjBestOf = colorsSrc.entires.reduce((obj, entry) => {
170
170
  const miniJSONExportObjShort = colorsSrc.entires.reduce((obj, entry) => {
171
171
  if (
172
172
  entry[bestOfKey] &&
173
- entry.name.split(" ").length === 1 &&
174
- entry.name.length < maxShortNameLength
173
+ //entry.name.split(" ").length === 1 &&
174
+ entry.name.length < maxShortNameLength + 1
175
175
  ) {
176
176
  obj[entry.hex.replace("#", "")] = entry.name;
177
177
  }
@@ -327,8 +327,8 @@ for (const outputFormat in outputFormats) {
327
327
  colorsSrc.entires.filter(
328
328
  (val) =>
329
329
  val[bestOfKey] &&
330
- val.name.split(" ").length === 1 &&
331
- val.name.length < maxShortNameLength
330
+ //val.name.split(" ").length === 1 &&
331
+ val.name.length < maxShortNameLength + 1
332
332
  ),
333
333
  csvKeys,
334
334
  outputFormats[outputFormat]