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

react-diff-view

Package Overview
Dependencies
Maintainers
1
Versions
66
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

react-diff-view - npm Package Compare versions

Comparing version 1.6.1 to 1.6.2

2

package.json
{
"name": "react-diff-view",
"version": "1.6.1",
"version": "1.6.2",
"description": "A git diff component to consume the git unified diff output.",

@@ -5,0 +5,0 @@ "main": "index.js",

@@ -541,1 +541,5 @@ # react-diff-view

- Optimize performance of column selection.
### 1.6.2
- Fix an issue where click on hunk header can cause error because optimized selection doesn't handle clicks in non code cells.

@@ -12,7 +12,7 @@ import {PureComponent, Children, cloneElement} from 'react';

const findClosest = (target, className) => {
while (target && target.classList && !target.classList.contains(className)) {
while (target && target !== document && !target.classList.contains(className)) {
target = target.parentNode; // eslint-disable-line no-param-reassign
}
return target;
return target === document ? null : target;
};

@@ -19,0 +19,0 @@

Sorry, the diff of this file is too big to display

Sorry, the diff of this file is not supported yet

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