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

@vorlefan/react-hooks

Package Overview
Dependencies
Maintainers
1
Versions
20
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@vorlefan/react-hooks - npm Package Compare versions

Comparing version 1.0.9 to 1.1.0

11

dist/index.es.js

@@ -683,2 +683,13 @@ import { useState, useMemo, useCallback, useEffect } from 'react';

var _useClient = useClient(),
inServer = _useClient.inServer;
if (inServer) return {
get: null,
set: function set(value) {
return false;
},
state: null
};
var _useState = useState(!!localStorage.getItem(key) ? JSON.parse(localStorage.getItem(key)) : JSON.stringify(value)),

@@ -685,0 +696,0 @@ _useState2 = _slicedToArray(_useState, 2),

@@ -687,2 +687,13 @@ 'use strict';

var _useClient = useClient(),
inServer = _useClient.inServer;
if (inServer) return {
get: null,
set: function set(value) {
return false;
},
state: null
};
var _useState = react.useState(!!localStorage.getItem(key) ? JSON.parse(localStorage.getItem(key)) : JSON.stringify(value)),

@@ -689,0 +700,0 @@ _useState2 = _slicedToArray(_useState, 2),

2

package.json
{
"name": "@vorlefan/react-hooks",
"version": "1.0.9",
"version": "1.1.0",
"description": "Useful react hooks for React & Next.js app",

@@ -5,0 +5,0 @@ "author": "DaxSoft",

Sorry, the diff of this file is not supported yet

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