@felvin-community/csv-to-json
Advanced tools
Comparing version 1.79.0 to 1.80.0
@@ -7,8 +7,1 @@ /* @license | ||
*/ | ||
/*! | ||
* The buffer module from node.js, for the browser. | ||
* | ||
* @author Feross Aboukhadijeh <feross@feross.org> <http://feross.org> | ||
* @license MIT | ||
*/ |
{ | ||
"name": "@felvin-community/csv-to-json", | ||
"version": "1.79.0", | ||
"version": "1.80.0", | ||
"license": "MIT", | ||
@@ -17,4 +17,3 @@ "main": "./dist/index.cjs.js", | ||
"papaparse": "^5.3.1", | ||
"react-feather": "^2.0.9", | ||
"react-json-pretty": "^2.2.0" | ||
"react-feather": "^2.0.9" | ||
}, | ||
@@ -21,0 +20,0 @@ "devDependencies": { |
@@ -5,3 +5,2 @@ import { Breakpoints, matchTriggerQueries } from "@felvin-search/core"; | ||
import * as Icon from "react-feather"; | ||
import JSONPretty from "react-json-pretty"; | ||
import styled from "styled-components"; | ||
@@ -69,3 +68,3 @@ | ||
const JSONContainer = styled.div` | ||
const JSONContainer = styled.pre` | ||
overflow-x: scroll; | ||
@@ -106,3 +105,3 @@ outline: none; | ||
function Component() { | ||
const defaultData = "FirstName,LastName\nJohn,Doe" | ||
const defaultData = "FirstName,LastName\nJohn,Doe"; | ||
const [csvData, setCSVData] = useState(defaultData); | ||
@@ -143,3 +142,5 @@ const [copy, setCopy] = useState(false); | ||
<FormLabel htmlFor="json-pretty">Generated JSON</FormLabel> | ||
<JSONContainer as={JSONPretty} id="json-pretty" data={jsonData} /> | ||
<JSONContainer id="json-pretty"> | ||
{JSON.stringify(jsonData, null, 2)} | ||
</JSONContainer> | ||
</Column> | ||
@@ -146,0 +147,0 @@ </Container> |
Sorry, the diff of this file is too big to display
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
6
140
1
201387
- Removedreact-json-pretty@^2.2.0
- Removedreact-json-pretty@2.2.0(transitive)