Socket
Socket
Sign inDemoInstall

@geniussoft/use-hooks

Package Overview
Dependencies
Maintainers
1
Versions
15
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@geniussoft/use-hooks - npm Package Compare versions

Comparing version 0.0.9 to 0.0.10

lib/useDebounce/index.d.ts

11

lib/useSessionStorage/index.js

@@ -7,4 +7,7 @@ "use strict";

try {
const item = window.sessionStorage.getItem(key);
return item ? JSON.parse(item) : initialValue;
if (window !== undefined) {
const item = window.sessionStorage.getItem(key);
return item ? JSON.parse(item) : initialValue;
}
return initialValue;
}

@@ -20,3 +23,5 @@ catch (error) {

setStoredValue(valueToStore);
window.sessionStorage.setItem(key, JSON.stringify(valueToStore));
if (window !== undefined) {
window.sessionStorage.setItem(key, JSON.stringify(valueToStore));
}
}

@@ -23,0 +28,0 @@ catch (error) {

{
"name": "@geniussoft/use-hooks",
"version": "0.0.9",
"version": "0.0.10",
"description": "Reusable React Hooks from useHooks.com and other online resources",

@@ -26,3 +26,3 @@ "keywords": [

"devDependencies": {
"@types/react": "^16.9.36",
"@types/react": "^16.9.42",
"@typescript-eslint/eslint-plugin": "^3.2.0",

@@ -37,3 +37,3 @@ "@typescript-eslint/parser": "^3.2.0",

"husky": "^4.2.5",
"lint-staged": "^10.2.10",
"lint-staged": "^10.2.11",
"prettier": "^2.0.5",

@@ -40,0 +40,0 @@ "react": "^16.13.1",

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