@edge-runtime/format
Advanced tools
Comparing version 1.1.0 to 2.0.0
@@ -102,3 +102,3 @@ "use strict"; | ||
if (hasCustomSymbol(firstArg, customInspectSymbol)) { | ||
return format(firstArg[customInspectSymbol]()); | ||
return format(firstArg[customInspectSymbol]({ format })); | ||
} else { | ||
@@ -118,3 +118,3 @@ return args.map((item) => inspect(item, { customInspectSymbol })).join(" "); | ||
if (hasCustomSymbol(arg, customInspectSymbol)) { | ||
return format(arg[customInspectSymbol]()); | ||
return format(arg[customInspectSymbol]({ format })); | ||
} else if (isDate(arg) || isError(arg) || kind(arg, "bigint")) { | ||
@@ -169,3 +169,3 @@ return format(arg); | ||
if (hasCustomSymbol(value, customInspectSymbol)) { | ||
return format(value[customInspectSymbol]()); | ||
return format(value[customInspectSymbol]({ format })); | ||
} | ||
@@ -275,3 +275,3 @@ const formattedPrimitive = formatPrimitive(value); | ||
} else if (hasCustomSymbol(value, ctx.customInspectSymbol)) { | ||
base = format(value[ctx.customInspectSymbol]()); | ||
base = format(value[ctx.customInspectSymbol]({ format })); | ||
if (keys.length === 0) { | ||
@@ -278,0 +278,0 @@ return base; |
@@ -5,3 +5,3 @@ { | ||
"homepage": "https://github.com/vercel/edge-runtime#readme", | ||
"version": "1.1.0", | ||
"version": "2.0.0", | ||
"main": "dist/index.js", | ||
@@ -18,2 +18,3 @@ "repository": { | ||
"edge", | ||
"edge-runtime", | ||
"format", | ||
@@ -24,3 +25,4 @@ "formatter", | ||
"runtime", | ||
"standard" | ||
"standard", | ||
"web" | ||
], | ||
@@ -30,2 +32,5 @@ "devDependencies": { | ||
}, | ||
"engines": { | ||
"node": ">=14" | ||
}, | ||
"files": [ | ||
@@ -40,9 +45,9 @@ "dist" | ||
"scripts": { | ||
"prebuild": "pnpm run clean:build", | ||
"build": "tsup", | ||
"clean": "pnpm run clean:node && pnpm run clean:build", | ||
"clean:build": "rm -rf dist", | ||
"clean:node": "rm -rf node_modules", | ||
"clean:build": "rm -rf dist", | ||
"prebuild": "pnpm run clean:build", | ||
"test": "TZ=UTC jest" | ||
} | ||
} |
Sorry, the diff of this file is not supported yet
50317