Socket
Socket
Sign inDemoInstall

global-input-react

Package Overview
Dependencies
39
Maintainers
1
Versions
185
Alerts
File Explorer

Advanced tools

Install Socket

Detect and block malicious and high-risk dependencies

Install

Comparing version 4.3.9 to 4.3.10

7

dist/index.js

@@ -34,3 +34,3 @@ "use strict";

const useGlobalInputApp = (config, canConnect = true) => {
const useGlobalInputApp = (config, canConnect = true, configId = "") => {
const [{

@@ -80,5 +80,6 @@ connectionCode,

globalInput.startConnect(configRef.current, notify);
}
}, [canConnect]); //You don't need to memoize the input parameter of this hook.
} // eslint-disable-next-line react-hooks/exhaustive-deps
}, [canConnect, configId]); //You don't need to memoize the input parameter of this hook.
const restart = (0, _react.useCallback)(config => {

@@ -85,0 +86,0 @@ if (!attached.current) {

import React from 'react';
import { InitData, FormField, FieldValue, Sender } from 'global-input-message';
export * from 'global-input-message';
export function useGlobalInputApp(config: ConfigData | (() => ConfigData), canConnect?: boolean): GlobalInputData;
export function useGlobalInputApp(config: ConfigData | (() => ConfigData), canConnect?: boolean, configId?: any): GlobalInputData;
export function getGlobalInputState(): GlobalInputState;

@@ -6,0 +6,0 @@

{
"name": "global-input-react",
"version": "4.3.9",
"version": "4.3.10",
"description": "global input react component",

@@ -5,0 +5,0 @@ "main": "./dist/index",

import * as globalInput from './globalinput';
import { useReducer, useRef, useEffect, useCallback } from "react";
export * from 'global-input-message';
export const useGlobalInputApp = (config, canConnect = true) => {
export const useGlobalInputApp = (config, canConnect = true, configId = "") => {
const [{

@@ -46,3 +46,4 @@ connectionCode,

}
}, [canConnect]); //You don't need to memoize the input parameter of this hook.
// eslint-disable-next-line react-hooks/exhaustive-deps
}, [canConnect, configId]); //You don't need to memoize the input parameter of this hook.

@@ -49,0 +50,0 @@ const restart = useCallback((config) => {

Sorry, the diff of this file is too big to display

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc