@hyperframes/core 0.10.2 → 0.10.4

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.
@@ -26,7 +26,7 @@ export function buildElementLabel(el) {
26
26
  const tag = el.tagName.toLowerCase();
27
27
  const text = renderedTextOf(el, LABEL_SOURCE_CHARS).trim().replace(/\s+/g, " ");
28
28
  const trimLabel = (value, maxChars) => {
29
- const chars = Array.from(value);
29
+ const chars = Array.from(value.slice(0, 2 * (maxChars + 1)));
30
30
  if (chars.length <= maxChars)
31
31
  return value;
32
32
  const kept = chars.slice(0, maxChars - 1).join("");
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@hyperframes/core",
3
- "version": "0.10.2",
3
+ "version": "0.10.4",
4
4
  "description": "",
5
5
  "repository": {
6
6
  "type": "git",
@@ -525,9 +525,9 @@
525
525
  "linkedom": "^0.18.12",
526
526
  "postcss": "^8.5.8",
527
527
  "wawoff2": "^2.0.1",
528
- "@hyperframes/lint": "0.10.2",
529
- "@hyperframes/parsers": "0.10.2",
530
- "@hyperframes/studio-server": "0.10.2"
528
+ "@hyperframes/lint": "0.10.4",
529
+ "@hyperframes/studio-server": "0.10.4",
530
+ "@hyperframes/parsers": "0.10.4"
531
531
  },
532
532
  "devDependencies": {
533
533
  "@fontsource/archivo-black": "^5.2.8",