Socket
Socket
Sign inDemoInstall

reshow-hooks

Package Overview
Dependencies
Maintainers
1
Versions
69
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

reshow-hooks - npm Package Compare versions

Comparing version 0.17.28 to 0.17.29

9

build/cjs/src/useEnable.js

@@ -8,2 +8,4 @@ "use strict";

var _callFunc = _interopRequireDefault(require("call-func"));
// @ts-check
/**

@@ -13,3 +15,8 @@ * React useReducer

*/
/**
* @param {any} setTo
* @param {any} [initVal]
* @param {function} [onChange]
* @returns {reducer}
*/
var useEnable = function useEnable(setTo, initVal, onChange) {

@@ -16,0 +23,0 @@ var reducer = (0, _react.useReducer)(function () {

@@ -9,2 +9,8 @@ "use strict";

var _useEnable2 = _interopRequireDefault(require("./useEnable.js"));
// @ts-check
/**
* @param {function} [onChange]
* @returns {boolean}
*/
var useLoaded = function useLoaded(onChange) {

@@ -11,0 +17,0 @@ var _useEnable = (0, _useEnable2["default"])(_reshowConstant.T_TRUE, _reshowConstant.T_FALSE, onChange),

2

package.json
{
"version": "0.17.28",
"version": "0.17.29",
"name": "reshow-hooks",

@@ -4,0 +4,0 @@ "repository": {

@@ -6,2 +6,8 @@ export default useEnable;

*/
declare function useEnable(setTo: any, initVal: any, onChange: any): [any, import("react").DispatchWithoutAction];
/**
* @param {any} setTo
* @param {any} [initVal]
* @param {function} [onChange]
* @returns {reducer}
*/
declare function useEnable(setTo: any, initVal?: any, onChange?: Function): [any, import("react").DispatchWithoutAction];
export default useLoaded;
declare function useLoaded(onChange: any): any;
/**
* @param {function} [onChange]
* @returns {boolean}
*/
declare function useLoaded(onChange?: Function): boolean;

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