react-diff-view
Advanced tools
Comparing version 2.4.8 to 2.4.9
{ | ||
"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). |
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
1345271
65
740
7
+ Addedclassnames@^2.2.6
+ Addeddiff-match-patch@^1.0.5
+ Addedrecompose@^0.30.0
+ Addedshallow-equal@^1.2.1
+ Addedwarning@^4.0.2
+ Added@babel/runtime@7.26.0(transitive)
+ Addedasap@2.0.6(transitive)
+ Addedchange-emitter@0.1.6(transitive)
+ Addedclassnames@2.5.1(transitive)
+ Addedcore-js@1.2.7(transitive)
+ Addeddiff-match-patch@1.0.5(transitive)
+ Addedencoding@0.1.13(transitive)
+ Addedfbjs@0.8.18(transitive)
+ Addedhoist-non-react-statics@2.5.5(transitive)
+ Addediconv-lite@0.6.3(transitive)
+ Addedis-stream@1.1.0(transitive)
+ Addedisomorphic-fetch@2.2.1(transitive)
+ Addednode-fetch@1.7.3(transitive)
+ Addedpromise@7.3.1(transitive)
+ Addedreact@16.14.0(transitive)
+ Addedreact-lifecycles-compat@3.0.4(transitive)
+ Addedrecompose@0.30.0(transitive)
+ Addedregenerator-runtime@0.14.1(transitive)
+ Addedsafer-buffer@2.1.2(transitive)
+ Addedsetimmediate@1.0.5(transitive)
+ Addedshallow-equal@1.2.1(transitive)
+ Addedsymbol-observable@1.2.0(transitive)
+ Addedua-parser-js@0.7.39(transitive)
+ Addedwarning@4.0.3(transitive)
+ Addedwhatwg-fetch@3.6.20(transitive)