New Case Study:See how Anthropic automated 95% of dependency reviews with Socket.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.2 to 1.0.3

1

lib/app/value.js

@@ -88,3 +88,2 @@ var Immutable, React, assign, div, hsl, ref, reset, span, stringify;

fontFamily: reset.codeFonts,
maxWidth: '300px',
overflowX: 'hidden',

@@ -91,0 +90,0 @@ whiteSpace: 'nowrap',

13

lib/json-viewer.js

@@ -24,5 +24,11 @@ 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) {

@@ -92,3 +98,5 @@ var value;

WebkitFlex: 1,
height: this.props.height
height: this.props.height,
width: this.props.width,
overflowX: 'auto'
};

@@ -119,5 +127,6 @@ },

overflowX: 'hidden',
paddingRight: '2em'
paddingRight: '2em',
flexShrink: 0
};
}
});

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

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

@@ -43,0 +44,0 @@ path: this.state.path,

{
"name": "react-lite-json-viewer",
"version": "1.0.2",
"version": "1.0.3",
"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