You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Since typeof never resolves to 'null' linting fails in general and causes deployment issues on Cloudflare. Removing or commenting out line 251 fixes the issue. Happy to do a pull request if you wish.
switch (typeof value) {
case 'string':
if (isBigNumber) {
return value;
} else {
return quote(value);
}
case 'number':
// JSON numbers must be finite. Encode non-finite numbers as null.
return isFinite(value) ? String(value) : 'null';
case 'boolean':
//case 'null': not valid
case 'bigint':
// If the value is a boolean or null, convert it to a string. Note:
// typeof null does not produce 'null'. The case is included here in
// the remote chance that this gets fixed someday.
return String(value);
// If the type is 'object', we might be dealing with an object or an array or
// null.
case 'object':
The text was updated successfully, but these errors were encountered:
anywhichway
added a commit
to anywhichway/json-bigint
that referenced
this issue
Dec 27, 2024
Since typeof never resolves to 'null' linting fails in general and causes deployment issues on Cloudflare. Removing or commenting out line 251 fixes the issue. Happy to do a pull request if you wish.
The text was updated successfully, but these errors were encountered: