@milkdown/exception
Advanced tools
Comparing version 7.3.5 to 7.3.6
{ | ||
"name": "@milkdown/exception", | ||
"type": "module", | ||
"version": "7.3.5", | ||
"version": "7.3.6", | ||
"license": "MIT", | ||
@@ -6,0 +6,0 @@ "repository": { |
@@ -34,4 +34,4 @@ /* Copyright 2021, Milkdown by Mirone. */ | ||
if ((x as { toJSON(): Record<string, unknown> }).toJSON) | ||
return stringify((x as { toJSON(): Record<string, unknown> }).toJSON()) | ||
if ((x as { toJSON: () => Record<string, unknown> }).toJSON) | ||
return stringify((x as { toJSON: () => Record<string, unknown> }).toJSON()) | ||
@@ -41,3 +41,3 @@ if ((x as { spec: string }).spec) | ||
return (x as { toString(): string }).toString() | ||
return (x as { toString: () => string }).toString() | ||
} | ||
@@ -44,0 +44,0 @@ return `${msg}, ${serialize(arg)}` |
Sorry, the diff of this file is not supported yet
22160