Skip to content

Commit 1615043

Browse files
committed
v1.0.0-rc.70
1 parent f018038 commit 1615043

2 files changed

Lines changed: 4 additions & 2 deletions

File tree

bundler/modules/util-format.cjs

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,9 @@
11
const { inspect: inspectOrig, isString, isNull, isObject } = require('util/') // dep
22

33
// Print errors without square brackets
4-
const inspect = (obj, opts) => (obj instanceof Error ? String(obj) : inspectOrig(obj, opts))
4+
const pad = (lines) => lines.split('\n').filter(Boolean).map(line => ` ${line}`).join('\n')
5+
const printError = (e) => e.stack.startsWith(`${e}\n`) ? e.stack : `${e}\n${pad(e.stack)}`.trimEnd()
6+
const inspect = (obj, opts) => (obj instanceof Error ? printError(obj) : inspectOrig(obj, opts))
57

68
// Patched impl from require('util'), added %i
79
const formatRegExp = /%[%dijs]/g

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "@exodus/test",
3-
"version": "1.0.0-rc.69",
3+
"version": "1.0.0-rc.70",
44
"author": "Exodus Movement, Inc.",
55
"description": "A test suite runner",
66
"homepage": "https://github.com/ExodusMovement/test",

0 commit comments

Comments
 (0)