Socket
Socket
Sign inDemoInstall

@edge-runtime/format

Package Overview
Dependencies
0
Maintainers
1
Versions
33
Alerts
File Explorer

Advanced tools

Install Socket

Detect and block malicious and high-risk dependencies

Install

Comparing version 1.1.0 to 2.0.0

8

dist/index.js

@@ -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

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc