brand-intent 0.20.1 → 0.20.2

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": "brand-intent",
3
- "version": "0.20.1",
3
+ "version": "0.20.2",
4
4
  "description": "An open file format specification for making brand intent machine-readable.",
5
5
  "author": "Christophe Stoll <christophe@stoll.studio>",
6
6
  "license": "MIT",
@@ -231,7 +231,9 @@ export function toneAnchorsFrom(
231
231
  if (!anchor) continue;
232
232
  for (const hex of Object.values(ladder)) {
233
233
  if (hex === anchor) continue;
234
- (out[hex] ??= []).includes(anchor) || out[hex].push(anchor);
234
+ const list: string[] = out[hex] ?? [];
235
+ if (!list.includes(anchor)) list.push(anchor);
236
+ out[hex] = list;
235
237
  }
236
238
  }
237
239
  return out;