measure-fn 3.10.1 → 3.10.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/index.ts +2 -2
- package/package.json +1 -1
package/index.ts
CHANGED
|
@@ -299,7 +299,7 @@ const createMeasureImpl = (prefix?: string, counterRef?: { value: number }, scop
|
|
|
299
299
|
const effectiveMaxLen = localMaxLen ?? inheritedMaxLen;
|
|
300
300
|
|
|
301
301
|
const currentId = toAlpha(Number(parentIdChain.pop() ?? 0));
|
|
302
|
-
const fullIdChain: string[] = [...parentIdChain.map(String), currentId];
|
|
302
|
+
const fullIdChain: string[] = [...parentIdChain.map(v => String(v)), currentId];
|
|
303
303
|
const idStr = fullIdChain.join('-');
|
|
304
304
|
|
|
305
305
|
emit({
|
|
@@ -361,7 +361,7 @@ const createMeasureImpl = (prefix?: string, counterRef?: { value: number }, scop
|
|
|
361
361
|
const effectiveMaxLen = localMaxLen ?? inheritedMaxLen;
|
|
362
362
|
|
|
363
363
|
const currentId = toAlpha(Number(parentIdChain.pop() ?? 0));
|
|
364
|
-
const fullIdChain: string[] = [...parentIdChain.map(String), currentId];
|
|
364
|
+
const fullIdChain: string[] = [...parentIdChain.map(v => String(v)), currentId];
|
|
365
365
|
const idStr = fullIdChain.join('-');
|
|
366
366
|
|
|
367
367
|
if (hasNested) {
|
package/package.json
CHANGED