@edge-runtime/format
Advanced tools
Comparing version 1.1.0-beta.31 to 1.1.0-beta.32
@@ -1,2 +0,1 @@ | ||
"use strict"; | ||
var __defProp = Object.defineProperty; | ||
@@ -50,6 +49,3 @@ var __getOwnPropDesc = Object.getOwnPropertyDescriptor; | ||
var SymbolPrototypeToString = Symbol.prototype.toString; | ||
var TypedArrayPrototypeGetLength = GetOwnGetter( | ||
TypedArray.prototype, | ||
"length" | ||
); | ||
var TypedArrayPrototypeGetLength = GetOwnGetter(TypedArray.prototype, "length"); | ||
var typedArrayStrings = /* @__PURE__ */ new Set([ | ||
@@ -282,12 +278,3 @@ "[object BigInt64Array]", | ||
for (let i = 0; i < keys.length; i++) { | ||
output.push( | ||
formatProperty( | ||
ctx, | ||
value, | ||
recurseTimes, | ||
visibleKeys, | ||
keys[i], | ||
false | ||
) | ||
); | ||
output.push(formatProperty(ctx, value, recurseTimes, visibleKeys, keys[i], false)); | ||
} | ||
@@ -339,12 +326,3 @@ if (ctx.circular !== void 0) { | ||
if (Object.prototype.hasOwnProperty.call(value, String(index))) { | ||
output.push( | ||
formatProperty( | ||
ctx, | ||
value, | ||
recurseTimes, | ||
visibleKeys, | ||
String(index), | ||
true | ||
) | ||
); | ||
output.push(formatProperty(ctx, value, recurseTimes, visibleKeys, String(index), true)); | ||
} else { | ||
@@ -385,9 +363,3 @@ output.push(""); | ||
for (const { 0: k, 1: v } of value) { | ||
output.push( | ||
`${formatValue(ctx, k, recurseTimes)} => ${formatValue( | ||
ctx, | ||
v, | ||
recurseTimes | ||
)}` | ||
); | ||
output.push(`${formatValue(ctx, k, recurseTimes)} => ${formatValue(ctx, v, recurseTimes)}`); | ||
} | ||
@@ -457,5 +429,3 @@ return output; | ||
if (Array.isArray(input)) { | ||
input = input.map( | ||
(element) => JSON.parse(JSON.stringify(element, makeCircularReplacer())) | ||
); | ||
input = input.map((element) => JSON.parse(JSON.stringify(element, makeCircularReplacer()))); | ||
} | ||
@@ -462,0 +432,0 @@ return JSON.stringify(input, makeCircularReplacer()); |
@@ -5,3 +5,3 @@ { | ||
"homepage": "https://github.com/vercel/edge-runtime#readme", | ||
"version": "1.1.0-beta.31", | ||
"version": "1.1.0-beta.32", | ||
"main": "dist/index.js", | ||
@@ -31,2 +31,7 @@ "repository": { | ||
], | ||
"license": "MPLv2", | ||
"publishConfig": { | ||
"access": "public" | ||
}, | ||
"types": "dist/index.d.ts", | ||
"scripts": { | ||
@@ -39,9 +44,3 @@ "prebuild": "pnpm run clean:build", | ||
"test": "TZ=UTC jest" | ||
}, | ||
"license": "MPLv2", | ||
"publishConfig": { | ||
"access": "public" | ||
}, | ||
"types": "dist/index.d.ts", | ||
"gitHead": "68c4c0ba7d6a8800c5aa0df1675a22d0404066da" | ||
} | ||
} | ||
} |
Sorry, the diff of this file is not supported yet
49249
902