Comparing version 1.0.0 to 1.0.1
18
index.js
@@ -1,3 +0,3 @@ | ||
const localStorageUtil = { | ||
setItem: (key, value) => { | ||
const setItem = (key, value) => { | ||
try { | ||
@@ -8,4 +8,4 @@ localStorage.setItem(key, JSON.stringify(value)); | ||
} | ||
}, | ||
getItem: (key) => { | ||
} | ||
const getItem = (key) => { | ||
try { | ||
@@ -18,4 +18,4 @@ const item = localStorage.getItem(key); | ||
} | ||
}, | ||
removeItem: (key) => { | ||
} | ||
const removeItem = (key) => { | ||
try { | ||
@@ -26,4 +26,4 @@ localStorage.removeItem(key); | ||
} | ||
}, | ||
clear: () => { | ||
} | ||
const clear = () => { | ||
try { | ||
@@ -35,5 +35,3 @@ localStorage.clear(); | ||
} | ||
}; | ||
export default localStorageUtil; | ||
{ | ||
"name": "usehoks", | ||
"version": "1.0.0", | ||
"version": "1.0.1", | ||
"description": "The useHks package offers a collection of custom React hooks designed to simplify common tasks and improve developer productivity. These hooks provide shorthand functionality for managing local storage, cookies, user online/offline status, and more.", | ||
@@ -10,3 +10,6 @@ "main": "index.js", | ||
"author": "Monu Singh", | ||
"license": "ISC" | ||
"license": "ISC", | ||
"dependencies": { | ||
"usehoks": "^1.0.0" | ||
} | ||
} |
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
1384
1
30
+ Addedusehoks@^1.0.0