react-json-tree
Advanced tools
Comparing version 0.18.0 to 0.19.0
{ | ||
"name": "react-json-tree", | ||
"version": "0.18.0", | ||
"version": "0.19.0", | ||
"description": "React JSON Viewer Component, Extracted from redux-devtools", | ||
@@ -25,6 +25,5 @@ "keywords": [ | ||
], | ||
"main": "lib/cjs/index.js", | ||
"module": "lib/esm/index.js", | ||
"types": "lib/types/index.d.ts", | ||
"unpkg": "lib/umd/react-json-tree.umd.js", | ||
"main": "lib/index.js", | ||
"types": "lib/index.d.ts", | ||
"type": "module", | ||
"sideEffects": false, | ||
@@ -36,38 +35,22 @@ "repository": { | ||
"dependencies": { | ||
"@babel/runtime": "^7.20.6", | ||
"@types/lodash": "^4.14.191", | ||
"react-base16-styling": "^0.9.1" | ||
"@types/lodash": "^4.17.0", | ||
"react-base16-styling": "^0.10.0" | ||
}, | ||
"devDependencies": { | ||
"@babel/cli": "^7.19.3", | ||
"@babel/core": "^7.20.5", | ||
"@babel/eslint-parser": "^7.19.1", | ||
"@babel/plugin-transform-runtime": "^7.19.6", | ||
"@babel/preset-env": "^7.20.2", | ||
"@babel/preset-react": "^7.18.6", | ||
"@babel/preset-typescript": "^7.18.6", | ||
"@rollup/plugin-babel": "^6.0.3", | ||
"@rollup/plugin-commonjs": "^24.0.0", | ||
"@rollup/plugin-node-resolve": "^15.0.1", | ||
"@rollup/plugin-terser": "^0.2.1", | ||
"@types/jest": "^29.2.4", | ||
"@types/node": "^18.11.17", | ||
"@types/react": "^18.0.26", | ||
"@types/react-test-renderer": "^18.0.0", | ||
"@typescript-eslint/eslint-plugin": "^5.47.0", | ||
"@typescript-eslint/parser": "^5.47.0", | ||
"eslint": "^8.30.0", | ||
"eslint-config-prettier": "^8.5.0", | ||
"eslint-plugin-jest": "^27.1.7", | ||
"eslint-plugin-react": "^7.31.11", | ||
"@types/jest": "^29.5.12", | ||
"@types/react": "^18.2.72", | ||
"@types/react-test-renderer": "^18.0.7", | ||
"@typescript-eslint/eslint-plugin": "^7.4.0", | ||
"@typescript-eslint/parser": "^7.4.0", | ||
"eslint": "^8.57.0", | ||
"eslint-config-prettier": "^9.1.0", | ||
"eslint-plugin-jest": "^27.9.0", | ||
"eslint-plugin-react": "^7.34.1", | ||
"eslint-plugin-react-hooks": "^4.6.0", | ||
"jest": "^29.3.1", | ||
"jest": "^29.7.0", | ||
"react": "^18.2.0", | ||
"react-test-renderer": "^18.2.0", | ||
"rimraf": "^3.0.2", | ||
"rollup": "^3.7.5", | ||
"rollup-plugin-typescript2": "^0.34.1", | ||
"ts-jest": "^29.0.3", | ||
"tslib": "^2.4.1", | ||
"typescript": "~4.9.4" | ||
"rimraf": "^5.0.5", | ||
"ts-jest": "^29.1.2", | ||
"typescript": "~5.3.3" | ||
}, | ||
@@ -79,13 +62,9 @@ "peerDependencies": { | ||
"scripts": { | ||
"build": "pnpm run build:cjs && pnpm run build:esm && pnpm run build:types && pnpm run build:umd", | ||
"build:cjs": "babel src --extensions \".ts,.tsx\" --out-dir lib/cjs", | ||
"build:esm": "babel src --config-file ./babel.config.esm.json --extensions \".ts,.tsx\" --out-dir lib/esm", | ||
"build:types": "tsc --emitDeclarationOnly", | ||
"build:umd": "rollup -c", | ||
"build": "tsc", | ||
"clean": "rimraf lib", | ||
"test": "jest", | ||
"test": "node --experimental-vm-modules node_modules/jest/bin/jest.js", | ||
"lint": "eslint . --ext .ts,.tsx", | ||
"type-check": "tsc --noEmit", | ||
"prepublish": "pnpm run type-check && pnpm run lint && pnpm run test" | ||
"prepublish": "pnpm run lint && pnpm run test" | ||
} | ||
} |
@@ -29,3 +29,3 @@ # react-json-tree | ||
![](http://cl.ly/image/3f2C2k2t3D0o/screenshot%202015-08-26%20at%2010.24.12%20AM.png) | ||
![](https://i.ibb.co/0KSYRJg/example-result.png) | ||
@@ -32,0 +32,0 @@ Check out [examples](examples) directory for more details. |
@@ -9,3 +9,3 @@ import type { CurriedFunction1 } from 'lodash'; | ||
} from 'react-base16-styling'; | ||
import solarized from './themes/solarized'; | ||
import solarized from './themes/solarized.js'; | ||
@@ -12,0 +12,0 @@ const colorMap = (theme: Base16Theme) => ({ |
@@ -1,2 +0,2 @@ | ||
import type { SortObjectKeys } from './types'; | ||
import type { SortObjectKeys } from './types.js'; | ||
@@ -23,3 +23,3 @@ function getLength(type: string, collection: unknown) { | ||
from = 0, | ||
to = Infinity | ||
to = Infinity, | ||
): { entries: { key: string | number; value: unknown }[]; hasMore?: boolean } { | ||
@@ -105,3 +105,3 @@ let res; | ||
from = 0, | ||
to = Infinity | ||
to = Infinity, | ||
) { | ||
@@ -112,3 +112,3 @@ const getEntriesBound = getEntries.bind( | ||
collection, | ||
sortObjectKeys | ||
sortObjectKeys, | ||
); | ||
@@ -115,0 +115,0 @@ |
@@ -13,3 +13,3 @@ import React from 'react'; | ||
itemString: string, | ||
keyPath: KeyPath | ||
keyPath: KeyPath, | ||
) => React.ReactNode; | ||
@@ -21,3 +21,3 @@ | ||
expanded: boolean, | ||
expandable: boolean | ||
expandable: boolean, | ||
) => React.ReactNode; | ||
@@ -34,3 +34,3 @@ | ||
data: unknown, | ||
level: number | ||
level: number, | ||
) => boolean; | ||
@@ -37,0 +37,0 @@ |
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
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
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 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
4
16
1
1
Yes
63612
45
1624
+ Addedcolor@4.2.3(transitive)
+ Addedcolor-convert@2.0.1(transitive)
+ Addedcolor-name@1.1.4(transitive)
+ Addedlodash-es@4.17.21(transitive)
+ Addedreact-base16-styling@0.10.0(transitive)
- Removed@babel/runtime@^7.20.6
- Removed@babel/runtime@7.26.0(transitive)
- Removed@types/base16@1.0.5(transitive)
- Removedbase16@1.0.0(transitive)
- Removedcolor@3.2.1(transitive)
- Removedcolor-convert@1.9.3(transitive)
- Removedcolor-name@1.1.3(transitive)
- Removedlodash.curry@4.1.1(transitive)
- Removedreact-base16-styling@0.9.1(transitive)
- Removedregenerator-runtime@0.14.1(transitive)
Updated@types/lodash@^4.17.0
Updatedreact-base16-styling@^0.10.0