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 2.4.8 to 2.4.9

16

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

@@ -24,2 +24,9 @@ "main": "cjs/index.js",

"license": "MIT",
"dependencies": {
"classnames": "^2.2.6",
"diff-match-patch": "^1.0.5",
"recompose": "^0.30.0",
"shallow-equal": "^1.2.1",
"warning": "^4.0.2"
},
"devDependencies": {

@@ -45,7 +52,5 @@ "@babel/core": "^7.11.5",

"babel-plugin-react-require": "^3.1.3",
"classnames": "^2.2.6",
"core-js": "^3.6.5",
"css-loader": "^4.2.2",
"cssnano": "^4.1.10",
"diff-match-patch": "^1.0.5",
"enzyme": "^3.11.0",

@@ -65,2 +70,3 @@ "enzyme-adapter-react-16": "^1.15.4",

"lodash": "^4.17.20",
"nanoid": "^3.1.25",
"postcss": "^7.0.32",

@@ -77,3 +83,2 @@ "postcss-cli": "^7.1.2",

"react-timeago": "^4.1.9",
"recompose": "^0.30.0",
"refractor": "^2.10.1",

@@ -89,6 +94,5 @@ "rollup": "^1.25.2",

"sha1": "^1.1.1",
"shallow-equal": "^1.2.1",
"style-loader": "^1.2.1",
"styled-components": "^5.3.1",
"unidiff": "^1.0.2",
"warning": "^4.0.2",
"webpack": "^4.44.1",

@@ -95,0 +99,0 @@ "webpack-cli": "^3.3.12",

@@ -268,3 +268,3 @@ # react-diff-view

The basic theme of `react-diff-view` is simply "picked" from github, with some additional colors for column diffs, the style is bundled with js using [style-loader](https://github.com/webpack-contrib/style-loader) by default, if you want to separate the style, you can build it from the `src` folder, [webpack's `resolve.aliases` configuration](https://webpack.js.org/configuration/resolve/#resolve-alias) can help to archive this.
The basic theme of `react-diff-view` is simply "picked" from github, with some additional colors for column diffs, the style is located at [`react-diff-view/style/index.css`](https://unpkg.com/browse/react-diff-view/style/index.css), you can simply import this file in your project.

@@ -415,2 +415,3 @@ ### CSS variables

- `{Object} refractor`: If `highlight` is set to `true`, we require the [refractor](https://github.com/wooorm/refractor) library to highlight code, you can simply pass the default export of `refractor` lib, or [create a custom build of it](https://github.com/wooorm/refractor#browser).
- Please note that it isn't compatible with refractor@4.x currently, use refractor@3.x instead
- `{string} oldSource`: When highlight is enabled, it can generate more accurate syntax result when the entire source code is provided. Only the old source code is required, new code will be automatically generated from the diff patch. This is **not** required, however lack of it can result incorrect highlight in cases like multiline comments or template strings.

@@ -417,0 +418,0 @@ - `{string} language`: When highlight is enabled, you **must** provide the language of your source code, your `refractor` object should also support the providing language, a list of language can be found [here](https://github.com/wooorm/refractor#syntaxes).

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