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

react-aptor

Package Overview
Dependencies
Maintainers
1
Versions
12
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

react-aptor - npm Package Compare versions

Comparing version 1.1.1 to 1.1.2

4

esm/useAptor.js

@@ -1,2 +0,2 @@

import { useEffect, useImperativeHandle, useState, useRef, useCallback, } from 'react';
import { useEffect, useImperativeHandle, useState, useRef, useMemo, } from 'react';
/**

@@ -19,3 +19,3 @@ * react aptor(api-connector) a hook which connect api to react itself

// eslint-disable-next-line react-hooks/exhaustive-deps
var api = useCallback(getAPI(instance, params), [instance]);
var api = useMemo(function () { return getAPI(instance, params); }, [instance]);
// eslint-disable-next-line react-hooks/exhaustive-deps

@@ -22,0 +22,0 @@ useImperativeHandle(ref, api, [api]);

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

// eslint-disable-next-line react-hooks/exhaustive-deps
var api = react_1.useCallback(getAPI(instance, params), [instance]);
var api = react_1.useMemo(function () { return getAPI(instance, params); }, [instance]);
// eslint-disable-next-line react-hooks/exhaustive-deps

@@ -24,0 +24,0 @@ react_1.useImperativeHandle(ref, api, [api]);

{
"name": "react-aptor",
"version": "1.1.1",
"version": "1.1.2",
"private": false,

@@ -5,0 +5,0 @@ "description": "React API connector",

@@ -8,3 +8,3 @@ import {

RefObject,
useCallback,
useMemo,
} from 'react';

@@ -49,3 +49,3 @@

// eslint-disable-next-line react-hooks/exhaustive-deps
const api = useCallback(getAPI(instance, params), [instance]);
const api = useMemo(() => getAPI(instance, params), [instance]);

@@ -52,0 +52,0 @@ // eslint-disable-next-line react-hooks/exhaustive-deps

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