react-json-view-lite
Advanced tools
@@ -40,2 +40,5 @@ var React = require('react'); | ||
} | ||
function quoteStringValue(value, quoted) { | ||
return quoted ? `"${value}"` : value; | ||
} | ||
function ExpandableObject(_ref) { | ||
@@ -264,3 +267,3 @@ let { | ||
} else if (isString(value)) { | ||
stringValue = quoteString(value, !style.noQuotesForStringValues); | ||
stringValue = quoteStringValue(value, !style.noQuotesForStringValues); | ||
valueStyle = style.stringValue; | ||
@@ -267,0 +270,0 @@ } else if (isBoolean(value)) { |
@@ -40,2 +40,5 @@ import { useState, createElement, useRef, useEffect, useId } from 'react'; | ||
} | ||
function quoteStringValue(value, quoted) { | ||
return quoted ? `"${value}"` : value; | ||
} | ||
function ExpandableObject(_ref) { | ||
@@ -264,3 +267,3 @@ let { | ||
} else if (isString(value)) { | ||
stringValue = quoteString(value, !style.noQuotesForStringValues); | ||
stringValue = quoteStringValue(value, !style.noQuotesForStringValues); | ||
valueStyle = style.stringValue; | ||
@@ -267,0 +270,0 @@ } else if (isBoolean(value)) { |
{ | ||
"name": "react-json-view-lite", | ||
"version": "2.2.0", | ||
"version": "2.3.0", | ||
"description": "JSON viewer component for React focused on performance for large volume input while still providing few customiziation features", | ||
@@ -5,0 +5,0 @@ "homepage": "https://github.com/AnyRoad/react-json-view-lite", |
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
106371
1.04%973
0.62%