@lhci/viewer
Advanced tools
Comparing version 0.12.0 to 0.13.0
{ | ||
"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
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
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
1559550
7397
1240