New Case Study:See how Anthropic automated 95% of dependency reviews with Socket.Learn More
Socket
Sign inDemoInstall
Socket

create-api-hooks

Package Overview
Dependencies
Maintainers
1
Versions
50
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

create-api-hooks - npm Package Compare versions

Comparing version 0.0.14 to 0.0.15

8

dist/index.es.js

@@ -64,10 +64,6 @@ import { useEffect, useState, useCallback, useRef } from 'react';

var outRequest = useCallback(function (p) {
if (p === undefined) {
if (JSON.stringify(preParams.current) === JSON.stringify(params))
return Promise.resolve(data);
p = params;
}
if (p === void 0) { p = params; }
isOutRequestRef.current = true;
return innerRequest(p);
}, [preParams, innerRequest, params]);
}, [innerRequest, params]);
return { request: outRequest, data: data, loading: loading, error: error };

@@ -74,0 +70,0 @@ };

@@ -68,10 +68,6 @@ 'use strict';

var outRequest = react.useCallback(function (p) {
if (p === undefined) {
if (JSON.stringify(preParams.current) === JSON.stringify(params))
return Promise.resolve(data);
p = params;
}
if (p === void 0) { p = params; }
isOutRequestRef.current = true;
return innerRequest(p);
}, [preParams, innerRequest, params]);
}, [innerRequest, params]);
return { request: outRequest, data: data, loading: loading, error: error };

@@ -78,0 +74,0 @@ };

{
"name": "create-api-hooks",
"version": "0.0.14",
"version": "0.0.15",
"description": "",

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

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