react-documents
Advanced tools
+3
-1
@@ -1543,3 +1543,3 @@ import { jsx, jsxs } from 'react/jsx-runtime'; | ||
| const DocumentViewer = inputProps => { | ||
| var _a, _b, _c; | ||
| var _a, _b, _c, _d, _e; | ||
@@ -1636,2 +1636,4 @@ const iframeRef = useRef(null); | ||
| data: state.url, | ||
| style: (_d = props.current) === null || _d === void 0 ? void 0 : _d.style, | ||
| className: (_e = props.current) === null || _e === void 0 ? void 0 : _e.className, | ||
| type: "application/pdf", | ||
@@ -1638,0 +1640,0 @@ width: "100%", |
+6
-4
@@ -89,7 +89,7 @@ (function (global, factory) { | ||
| var DocumentViewer = function DocumentViewer(inputProps) { | ||
| var _a, _b, _c; | ||
| var _a, _b, _c, _d, _e; | ||
| var iframeRef = react.useRef(null); | ||
| var _d = react.useState({ | ||
| var _f = react.useState({ | ||
| url: '', | ||
@@ -101,4 +101,4 @@ externalViewer: true, | ||
| }), | ||
| state = _d[0], | ||
| setState = _d[1]; | ||
| state = _f[0], | ||
| setState = _f[1]; | ||
@@ -205,2 +205,4 @@ var checkIFrameSubscription = react.useRef(); | ||
| data: state.url, | ||
| style: (_d = props.current) === null || _d === void 0 ? void 0 : _d.style, | ||
| className: (_e = props.current) === null || _e === void 0 ? void 0 : _e.className, | ||
| type: "application/pdf", | ||
@@ -207,0 +209,0 @@ width: "100%", |
+1
-1
| { | ||
| "name": "react-documents", | ||
| "version": "1.1.0", | ||
| "version": "1.1.1", | ||
| "license": "MIT", | ||
@@ -5,0 +5,0 @@ "description": "React document viewer.", |
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
Long strings
Supply chain riskContains long string literals, which may be a sign of obfuscated or packed code.
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
Long strings
Supply chain riskContains long string literals, which may be a sign of obfuscated or packed code.
Found 1 instance in 1 package
72316
0.49%1611
0.25%