Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

react-lite-json-viewer

Package Overview
Dependencies
Maintainers
4
Versions
6
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

react-lite-json-viewer - npm Package Compare versions

Comparing version 1.0.3 to 1.0.4

7

lib/json-viewer.js

@@ -24,11 +24,5 @@ var Immutable, React, T, Value, div, hsl, isSafari, reset;

height: T.number.isRequired,
width: T.number,
path: T.instanceOf(Immutable.List).isRequired,
onChange: T.func.isRequired
},
getDefaultProps: function() {
return {
width: 800
};
},
renderEntries: function(stage, index) {

@@ -99,3 +93,2 @@ var value;

height: this.props.height,
width: this.props.width,
overflowX: 'auto'

@@ -102,0 +95,0 @@ };

7

lib/page.js

@@ -33,3 +33,4 @@ var Immutable, JsonViewer, React, a, div, hsl, jianliao, link, ref, reset, span;

return div({
className: 'app-page'
className: 'app-page',
style: this.stylePage
}, div({

@@ -42,3 +43,2 @@ style: this.styleNote()

height: 500,
width: window.innerWidth - 200,
data: Immutable.fromJS(jianliao),

@@ -49,2 +49,5 @@ path: this.state.path,

},
stylePage: {
width: '100%'
},
styleNote: function() {

@@ -51,0 +54,0 @@ return {

{
"name": "react-lite-json-viewer",
"version": "1.0.3",
"version": "1.0.4",
"description": "Component for exploring store in JSON",

@@ -5,0 +5,0 @@ "main": "lib/json-viewer.js",

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc