react-json-tree
Advanced tools
Comparing version 0.15.2 to 0.16.0
{ | ||
"name": "react-json-tree", | ||
"version": "0.15.2", | ||
"version": "0.16.0", | ||
"description": "React JSON Viewer Component, Extracted from redux-devtools", | ||
@@ -22,8 +22,9 @@ "keywords": [ | ||
"files": [ | ||
"lib", | ||
"src", | ||
"umd" | ||
"dist", | ||
"src" | ||
], | ||
"main": "lib/index.js", | ||
"types": "lib/index.d.ts", | ||
"main": "dist/react-json-tree.cjs.js", | ||
"module": "dist/react-json-tree.esm.js", | ||
"types": "dist/index.d.ts", | ||
"unpkg": "dist/react-json-tree.umd.js", | ||
"repository": { | ||
@@ -34,8 +35,4 @@ "type": "git", | ||
"scripts": { | ||
"build": "yarn run build:types && yarn run build:js && yarn run build:umd && npm run build:umd:min", | ||
"build:types": "tsc --emitDeclarationOnly", | ||
"build:js": "babel src --out-dir lib --extensions \".ts,.tsx\" --source-maps inline", | ||
"build:umd": "rimraf ./umd && webpack --progress --config webpack.config.umd.ts", | ||
"build:umd:min": "webpack --env production --progress --config webpack.config.umd.ts", | ||
"clean": "rimraf lib umd", | ||
"build": "rollup -c", | ||
"clean": "rimraf umd", | ||
"test": "jest", | ||
@@ -48,14 +45,18 @@ "lint": "eslint . --ext .ts,.tsx", | ||
"dependencies": { | ||
"@babel/runtime": "^7.16.7", | ||
"@types/prop-types": "^15.7.4", | ||
"prop-types": "^15.8.0", | ||
"react-base16-styling": "^0.8.2" | ||
"react-base16-styling": "^0.9.0" | ||
}, | ||
"devDependencies": { | ||
"@babel/cli": "^7.16.7", | ||
"@babel/core": "^7.16.7", | ||
"@babel/eslint-parser": "^7.16.5", | ||
"@babel/plugin-transform-runtime": "^7.16.7", | ||
"@babel/preset-env": "^7.16.7", | ||
"@babel/preset-react": "^7.16.7", | ||
"@babel/preset-typescript": "^7.16.7", | ||
"@rollup/plugin-babel": "^5.3.0", | ||
"@rollup/plugin-commonjs": "^21.0.1", | ||
"@rollup/plugin-node-resolve": "^13.1.3", | ||
"@types/jest": "^27.4.0", | ||
"@types/node": "^16.11.17", | ||
"@types/react": "^17.0.38", | ||
@@ -65,3 +66,2 @@ "@types/react-test-renderer": "^17.0.1", | ||
"@typescript-eslint/parser": "^5.8.1", | ||
"babel-loader": "^8.2.3", | ||
"eslint": "^8.6.0", | ||
@@ -76,7 +76,8 @@ "eslint-config-prettier": "^8.3.0", | ||
"rimraf": "^3.0.2", | ||
"rollup": "^2.63.0", | ||
"rollup-plugin-terser": "^7.0.2", | ||
"rollup-plugin-typescript2": "^0.31.1", | ||
"ts-jest": "^27.1.2", | ||
"ts-node": "^10.4.0", | ||
"typescript": "~4.5.4", | ||
"webpack": "^5.65.0", | ||
"webpack-cli": "^4.9.1" | ||
"tslib": "^2.3.1", | ||
"typescript": "~4.5.4" | ||
}, | ||
@@ -87,3 +88,3 @@ "peerDependencies": { | ||
}, | ||
"gitHead": "88efc25786b0ff950646533e228f597716e79df9" | ||
"gitHead": "24e5e78e6943d69d352827345b1824a971b74f14" | ||
} |
@@ -10,3 +10,3 @@ # react-json-tree | ||
```jsx | ||
import JSONTree from 'react-json-tree'; | ||
import { JSONTree } from 'react-json-tree'; | ||
// If you're using Immutable.js: `npm i --save immutable` | ||
@@ -13,0 +13,0 @@ import { Map } from 'immutable'; |
Sorry, the diff of this file is not supported yet
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
Major refactor
Supply chain riskPackage has recently undergone a major refactor. It may be unstable or indicate significant internal changes. Use caution when updating to versions that include significant changes.
Found 1 instance in 1 package
Uses eval
Supply chain riskPackage uses dynamic code execution (e.g., eval()), which is a dangerous practice. This can prevent the code from running in certain environments and increases the risk that the code may contain exploits or malicious behavior.
Found 1 instance in 1 package
Environment variable access
Supply chain riskPackage accesses environment variables, which may be a sign of credential stuffing or data theft.
Found 1 instance in 1 package
Minified code
QualityThis package contains minified code. This may be harmless in some cases where minified code is included in packaged libraries, however packages on npm should not minify code.
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
Uses eval
Supply chain riskPackage uses dynamic code execution (e.g., eval()), which is a dangerous practice. This can prevent the code from running in certain environments and increases the risk that the code may contain exploits or malicious behavior.
Found 2 instances in 1 package
Long strings
Supply chain riskContains long string literals, which may be a sign of obfuscated or packed code.
Found 1 instance in 1 package
Minified code
QualityThis package contains minified code. This may be harmless in some cases where minified code is included in packaged libraries, however packages on npm should not minify code.
Found 1 instance in 1 package
10197
22
3
484020
6
29
35
+ Added@babel/runtime@^7.16.7
+ Added@babel/runtime@7.26.0(transitive)
+ Addedreact-base16-styling@0.9.1(transitive)
+ Addedregenerator-runtime@0.14.1(transitive)
- Removedreact-base16-styling@0.8.2(transitive)
Updatedreact-base16-styling@^0.9.0