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

react-json-tree

Package Overview
Dependencies
Maintainers
6
Versions
59
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

react-json-tree - npm Package Compare versions

Comparing version 0.18.0 to 0.19.0

lib/createStylingFromTheme.d.ts

65

package.json
{
"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

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