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/dist/colornames.short.csv +1616 -1
- package/dist/colornames.short.esm.js +1 -1
- package/dist/colornames.short.esm.mjs +1 -1
- package/dist/colornames.short.html +1 -1
- package/dist/colornames.short.json +1 -1
- package/dist/colornames.short.min.json +1 -1
- package/dist/colornames.short.scss +1 -1
- package/dist/colornames.short.umd.js +1 -1
- package/dist/colornames.short.xml +7030 -570
- package/dist/colornames.short.yaml +4854 -9
- package/package.json +1 -1
- package/scripts/build.js +6 -6
package/package.json
CHANGED
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]
|