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

fenextjs-hook

Package Overview
Dependencies
Maintainers
1
Versions
266
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

fenextjs-hook - npm Package Compare versions

Comparing version 1.2.36 to 1.2.37

1

cjs/useRequest.d.ts

@@ -23,2 +23,3 @@ import { RequestProps, RequestResultDataProps, RequestResultTypeProps } from "fenextjs-interface/cjs/Request";

result: RequestResultDataProps<R, E, T> | undefined;
resultValue: R | undefined;
loader: boolean;

@@ -25,0 +26,0 @@ error: E | undefined;

@@ -19,2 +19,3 @@ "use strict";

const [result, setResult] = (0, react_1.useState)(undefined);
const [resultValue, setResultValue] = (0, react_1.useState)(undefined);
const [loader, setLoader] = (0, react_1.useState)(false);

@@ -26,2 +27,3 @@ const onRequest = (0, react_1.useCallback)(async () => {

const respond = await request(query);
setResultValue(respond.result);
setResult(respond);

@@ -41,2 +43,3 @@ }

result,
resultValue,
loader,

@@ -43,0 +46,0 @@ error,

@@ -23,2 +23,3 @@ import { RequestProps, RequestResultDataProps, RequestResultTypeProps } from "fenextjs-interface/cjs/Request";

result: RequestResultDataProps<R, E, T> | undefined;
resultValue: R | undefined;
loader: boolean;

@@ -25,0 +26,0 @@ error: E | undefined;

@@ -16,2 +16,3 @@ import { useCallback, useEffect, useState } from "react";

const [result, setResult] = useState(undefined);
const [resultValue, setResultValue] = useState(undefined);
const [loader, setLoader] = useState(false);

@@ -23,2 +24,3 @@ const onRequest = useCallback(async () => {

const respond = await request(query);
setResultValue(respond.result);
setResult(respond);

@@ -38,2 +40,3 @@ }

result,
resultValue,
loader,

@@ -40,0 +43,0 @@ error,

2

package.json
{
"name": "fenextjs-hook",
"version": "1.2.36",
"version": "1.2.37",
"description": "",

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

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