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

@lhci/viewer

Package Overview
Dependencies
Maintainers
4
Versions
31
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@lhci/viewer - npm Package Compare versions

Comparing version 0.12.0 to 0.13.0

dist/chunks/entry-IG5VPVQT.js

6

package.json
{
"name": "@lhci/viewer",
"version": "0.12.0",
"version": "0.13.0",
"license": "Apache-2.0",

@@ -23,3 +23,3 @@ "repository": {

"clsx": "^1.0.4",
"preact": "^10.0.1"
"preact": "^10.19.3"
},

@@ -29,3 +29,3 @@ "alias": {

},
"gitHead": "badea06e0df9aad6d0a26ae89c1f69f4da1fed6c"
"gitHead": "7cc4ba8369805dae04e396186ad552ccb10bd702"
}

@@ -88,4 +88,8 @@ /**

useEffect(() => {
if (baseReport) localStorage.setItem('lastBaseReport', JSON.stringify(baseReport));
if (compareReport) localStorage.setItem('lastCompareReport', JSON.stringify(compareReport));
try {
if (baseReport) localStorage.setItem('lastBaseReport', JSON.stringify(baseReport));
if (compareReport) localStorage.setItem('lastCompareReport', JSON.stringify(compareReport));
} catch (err) {
console.error(`Error saving to localStorage: ${err}`); // eslint-disable-line no-console
}
}, [baseReport, compareReport]);

@@ -92,0 +96,0 @@

@@ -94,3 +94,3 @@ /**

/** @param {ReportUploadBoxProps} props @param {import('preact/hooks').Ref<DragData>} dragTargetRef @param {(b: boolean) => void} setIsDragging @param {Event} e */
/** @param {ReportUploadBoxProps} props @param {import('preact/hooks').MutableRef<DragData>} dragTargetRef @param {(b: boolean) => void} setIsDragging @param {Event} e */
function handleDragEnter(props, dragTargetRef, setIsDragging, e) {

@@ -104,3 +104,3 @@ if (!(e.target instanceof HTMLElement)) return;

/** @param {ReportUploadBoxProps} props @param {import('preact/hooks').Ref<DragData>} dragTargetRef @param {(b: boolean) => void} setIsDragging @param {Event} e */
/** @param {ReportUploadBoxProps} props @param {import('preact/hooks').MutableRef<DragData>} dragTargetRef @param {(b: boolean) => void} setIsDragging @param {Event} e */
function handleDragLeave(props, dragTargetRef, setIsDragging, e) {

@@ -121,3 +121,3 @@ if (e.target !== dragTargetRef.current) return;

/** @param {Pick<ReportUploadBoxProps, 'addToast'|'setReport'>} props @param {import('preact/hooks').Ref<DragData>} dragTargetRef @param {(b: boolean) => void} setIsDragging @param {Event} e */
/** @param {Pick<ReportUploadBoxProps, 'addToast'|'setReport'>} props @param {import('preact/hooks').MutableRef<DragData>} dragTargetRef @param {(b: boolean) => void} setIsDragging @param {Event} e */
function handleDrop(props, dragTargetRef, setIsDragging, e) {

@@ -124,0 +124,0 @@ if (!dragTargetRef.current) return;

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