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

@fountainhead/react-json-delta-inspector

Package Overview
Dependencies
Maintainers
1
Versions
3
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@fountainhead/react-json-delta-inspector

Visualize and explore changes to JSON objects generated by 'json-delta', using 'react-inspector'

  • 1.2.0
  • latest
  • Source
  • npm
  • Socket score

Version published
Weekly downloads
3
Maintainers
1
Weekly downloads
 
Created
Source

react-json-delta-inspector

Visualize and explore changes to JSON objects generated by json-delta, using react-inspector.

CircleCI

Installation

For NPM users:

npm install @fountainhead/react-json-delta-inspector

For Yarn users:

yarn add @fountainhead/react-json-delta-inspector

Usage

This package contains a <DeltaInspector/> component, which accepts the following props:

  • prev (any): The 'previous' state of some Object or Array
  • delta (Diff[]): The result of calling jsonDelta.diff against prev and another object.

You will notice that <DeltaInspector /> does not accept a next object or attempt to compute a diff between two objects itself; it is on you, as the user of this package, to provide the previous state and the delta yourself. Since computing a delta is potentially an expensive operation, you are far more suited to manage how and when to compute this delta yourself via jsonDelta.diff, rather than us try to optimise it for you.

FAQs

Package last updated on 28 Nov 2018

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts

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