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

@darkroom.engineering/hamo

Package Overview
Dependencies
Maintainers
0
Versions
17
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@darkroom.engineering/hamo - npm Package Compare versions

Comparing version 1.0.0-dev.1 to 1.0.0-dev.2

23

dist/hamo.d.ts

@@ -113,2 +113,23 @@ import * as react from 'react';

export { type Rect, useLazyState, useMediaQuery, useObjectFit, useRect, useResizeObserver, useTimeout, useWindowSize };
/**
* @name useIntersectionObserver
* @description A React hook that oberves element visibility using IntersectionObserver.
* @param {HTMLElement} root (optional)
* @param {string} rootMargin (optional, default: `0px`)
* @param {number} threshold (optional, default: `0`)
* @param {boolean} once (optional, default: `false`)
* @param {boolean} lazy (optional, default: `false`)
* @param {function} callback (optional)
* @param {array} deps (optional)
* @returns {array} [setElement, entry]
*/
declare function useIntersectionObserver({ root, rootMargin, threshold, once, lazy, callback, }?: {
root?: HTMLElement | null;
rootMargin?: string;
threshold?: number;
once?: boolean;
lazy?: boolean;
callback?: (entry: IntersectionObserverEntry | undefined) => void;
}, deps?: never[]): readonly [react.Dispatch<react.SetStateAction<HTMLElement | null | undefined>>, IntersectionObserverEntry];
export { type Rect, useIntersectionObserver, useLazyState, useMediaQuery, useObjectFit, useRect, useResizeObserver, useTimeout, useWindowSize };

2

package.json
{
"name": "@darkroom.engineering/hamo",
"version": "1.0.0-dev.1",
"version": "1.0.0-dev.2",
"description": "hamo means hook, do the math.",

@@ -5,0 +5,0 @@ "type": "module",

@@ -5,3 +5,3 @@ [![HAMO](https://assets.darkroom.engineering/hamo/header.png)](https://github.com/darkroomengineering/hamo)

`hāmō` means hook in Latin, this package is a collection of custom React hooks.
`hāmō` means hook in Latin, this package is a collection of custom performance-oriented React hooks.

@@ -8,0 +8,0 @@ ## Installation

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