@mirohq/design-system-use-local-storage
Advanced tools
Comparing version 0.3.1-use-press.0 to 0.3.1
@@ -16,3 +16,3 @@ 'use strict'; | ||
console.error( | ||
`[useLocalStorage] Error reading localStorage key \u201C${key}\u201D:`, | ||
"[useLocalStorage] Error reading localStorage key \u201C".concat(key, "\u201D:"), | ||
e | ||
@@ -28,3 +28,3 @@ ); | ||
console.error( | ||
`[useLocalStorage] Error setting localStorage key \u201C${key}\u201D:`, | ||
"[useLocalStorage] Error setting localStorage key \u201C".concat(key, "\u201D:"), | ||
e | ||
@@ -39,3 +39,3 @@ ); | ||
console.error( | ||
`[useLocalStorage] Error removing localStorage key \u201C${key}\u201D:`, | ||
"[useLocalStorage] Error removing localStorage key \u201C".concat(key, "\u201D:"), | ||
e | ||
@@ -47,3 +47,3 @@ ); | ||
const prefixedKey = react.useMemo( | ||
() => `${prefix != null ? prefix : KEY_PREFIX}_${key}`, | ||
() => "".concat(prefix != null ? prefix : KEY_PREFIX, "_").concat(key), | ||
[prefix, key] | ||
@@ -50,0 +50,0 @@ ); |
@@ -12,3 +12,3 @@ import { useEventListener } from '@mirohq/design-system-use-event-listener'; | ||
console.error( | ||
`[useLocalStorage] Error reading localStorage key \u201C${key}\u201D:`, | ||
"[useLocalStorage] Error reading localStorage key \u201C".concat(key, "\u201D:"), | ||
e | ||
@@ -24,3 +24,3 @@ ); | ||
console.error( | ||
`[useLocalStorage] Error setting localStorage key \u201C${key}\u201D:`, | ||
"[useLocalStorage] Error setting localStorage key \u201C".concat(key, "\u201D:"), | ||
e | ||
@@ -35,3 +35,3 @@ ); | ||
console.error( | ||
`[useLocalStorage] Error removing localStorage key \u201C${key}\u201D:`, | ||
"[useLocalStorage] Error removing localStorage key \u201C".concat(key, "\u201D:"), | ||
e | ||
@@ -43,3 +43,3 @@ ); | ||
const prefixedKey = useMemo( | ||
() => `${prefix != null ? prefix : KEY_PREFIX}_${key}`, | ||
() => "".concat(prefix != null ? prefix : KEY_PREFIX, "_").concat(key), | ||
[prefix, key] | ||
@@ -46,0 +46,0 @@ ); |
{ | ||
"name": "@mirohq/design-system-use-local-storage", | ||
"version": "0.3.1-use-press.0", | ||
"version": "0.3.1", | ||
"description": "", | ||
@@ -28,3 +28,3 @@ "author": "Miro", | ||
"dependencies": { | ||
"@mirohq/design-system-types": "^0.6.0-use-press.0", | ||
"@mirohq/design-system-types": "^0.6.0", | ||
"@mirohq/design-system-use-event-listener": "^0.3.0", | ||
@@ -31,0 +31,0 @@ "@mirohq/design-system-use-event": "^0.2.0" |
Sorry, the diff of this file is not supported yet
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
16412