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.
Files changed (2) hide show
  1. package/index.ts +2 -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
@@ -3,7 +3,7 @@
3
3
  "module": "index.ts",
4
4
  "main": "./index.ts",
5
5
  "types": "./index.ts",
6
- "version": "3.10.1",
6
+ "version": "3.10.2",
7
7
  "type": "module",
8
8
  "private": false,
9
9
  "description": "Zero-dependency function performance measurement with hierarchical logging",