react-json-view-lite
Advanced tools
Comparing version
export declare const isBoolean: (data: any) => boolean; | ||
export declare const isNumber: (data: any) => boolean; | ||
export declare const isBigInt: (data: any) => boolean; | ||
export declare const isString: (data: any) => boolean; | ||
@@ -4,0 +5,0 @@ export declare const isArray: (data: any) => boolean; |
@@ -9,2 +9,5 @@ var React = require('react'); | ||
}; | ||
var isBigInt = function isBigInt(data) { | ||
return typeof data === 'bigint' || data instanceof BigInt; | ||
}; | ||
var isString = function isString(data) { | ||
@@ -180,2 +183,5 @@ return typeof data === 'string' || data instanceof String; | ||
valueStyle = style.numberValue; | ||
} else if (isBigInt(value)) { | ||
stringValue = value.toString() + "n"; | ||
valueStyle = style.numberValue; | ||
} else { | ||
@@ -182,0 +188,0 @@ stringValue = value.toString(); |
@@ -9,2 +9,5 @@ import { useState, createElement, useRef, useEffect } from 'react'; | ||
}; | ||
var isBigInt = function isBigInt(data) { | ||
return typeof data === 'bigint' || data instanceof BigInt; | ||
}; | ||
var isString = function isString(data) { | ||
@@ -180,2 +183,5 @@ return typeof data === 'string' || data instanceof String; | ||
valueStyle = style.numberValue; | ||
} else if (isBigInt(value)) { | ||
stringValue = value.toString() + "n"; | ||
valueStyle = style.numberValue; | ||
} else { | ||
@@ -182,0 +188,0 @@ stringValue = value.toString(); |
{ | ||
"name": "react-json-view-lite", | ||
"version": "0.9.6", | ||
"version": "0.9.7", | ||
"description": "JSON viewer component for React focused on performance for large volume input while still providing few customiziation features", | ||
@@ -5,0 +5,0 @@ "homepage": "http://anyroad.github.io/react-json-view-lite", |
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
71073
2.14%653
2.03%