Comparing version 2.2.1 to 2.2.2
import { isMap, isArray, isPlainObject, isSet } from './is.js'; | ||
import { includes } from './util.js'; | ||
const getNthKey = (value, n) => { | ||
if (n > value.size) | ||
throw new Error('index out of bounds'); | ||
const keys = value.keys(); | ||
@@ -5,0 +7,0 @@ while (n > 0) { |
@@ -133,3 +133,3 @@ import { isBigint, isDate, isInfinite, isMap, isNaNValue, isRegExp, isSet, isUndefined, isSymbol, isArray, isError, isTypedArray, isURL, } from './is.js'; | ||
if (!clazz) { | ||
throw new Error('Trying to deserialize unknown class - check https://github.com/blitz-js/superjson/issues/116#issuecomment-773996564'); | ||
throw new Error(`Trying to deserialize unknown class '${a[1]}' - check https://github.com/blitz-js/superjson/issues/116#issuecomment-773996564`); | ||
} | ||
@@ -136,0 +136,0 @@ return Object.assign(Object.create(clazz.prototype), v); |
{ | ||
"version": "2.2.1", | ||
"version": "2.2.2", | ||
"license": "MIT", | ||
@@ -4,0 +4,0 @@ "type": "module", |
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
89952
952