measure-fn 3.8.0 → 3.8.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/README.md +1 -1
- package/index.ts +1 -1
- package/package.json +1 -1
package/README.md
CHANGED
|
@@ -237,7 +237,7 @@ import { configure } from 'measure-fn';
|
|
|
237
237
|
configure({
|
|
238
238
|
silent: true, // suppress all output
|
|
239
239
|
timestamps: true, // prepend [HH:MM:SS.mmm]
|
|
240
|
-
maxResultLength: 200, // truncate results (default:
|
|
240
|
+
maxResultLength: 200, // truncate results (default: 0 = unlimited)
|
|
241
241
|
dotEndLabel: false, // show full label on end lines (default: true = dots)
|
|
242
242
|
dotChar: '.', // character for dot fill (default: '·')
|
|
243
243
|
logger: (event) => { // custom event handler
|
package/index.ts
CHANGED
|
@@ -12,7 +12,7 @@ const toAlpha = (num: number): string => {
|
|
|
12
12
|
|
|
13
13
|
// ─── Safe Stringify ──────────────────────────────────────────────────
|
|
14
14
|
|
|
15
|
-
let maxResultLen =
|
|
15
|
+
let maxResultLen = 0;
|
|
16
16
|
|
|
17
17
|
export const safeStringify = (value: unknown, limit?: number): string => {
|
|
18
18
|
const cap = limit ?? maxResultLen;
|
package/package.json
CHANGED