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

@os-design/use-font-size

Package Overview
Dependencies
Maintainers
0
Versions
29
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@os-design/use-font-size - npm Package Compare versions

Comparing version 1.0.24 to 1.0.25

dist/index.d.ts

19

package.json
{
"name": "@os-design/use-font-size",
"version": "1.0.24",
"version": "1.0.25",
"license": "UNLICENSED",
"repository": "git@gitlab.com:os-team/libs/os-design.git",
"main": "dist/cjs/index.js",
"module": "dist/esm/index.js",
"types": "dist/types/index.d.ts",
"type": "module",
"main": "./dist/index.js",
"types": "./dist/index.d.ts",
"files": [

@@ -23,5 +23,4 @@ "dist",

"clean": "rimraf dist",
"build:esm": "cross-env BABEL_ENV=esm babel src --root-mode upward --extensions .ts,.tsx --out-dir dist/esm --source-maps",
"build:cjs": "cross-env BABEL_ENV=cjs babel src --root-mode upward --extensions .ts,.tsx --out-dir dist/cjs --source-maps",
"build:types": "tsc --emitDeclarationOnly --declaration --declarationDir dist/types",
"build:esm": "cross-env BABEL_ENV=esm babel src --root-mode upward --extensions .ts,.tsx --out-dir dist",
"build:types": "tsc -p tsconfig.build.json --emitDeclarationOnly --declaration --declarationDir dist",
"build": "yarn clean && npm-run-all 'build:*'",

@@ -34,4 +33,4 @@ "ncu": "ncu -u"

"dependencies": {
"@os-design/use-browser-layout-effect": "^1.0.20",
"@os-design/use-event": "^1.0.22"
"@os-design/use-browser-layout-effect": "^1.0.21",
"@os-design/use-event": "^1.0.23"
},

@@ -41,3 +40,3 @@ "peerDependencies": {

},
"gitHead": "d0565d7592fff84723233b42ec230acbaa2103bb"
"gitHead": "86a83e87297a07afe132782ca2c95023b7139276"
}
import useBrowserLayoutEffect from '@os-design/use-browser-layout-effect';
import useEvent from '@os-design/use-event';
import { RefObject, useCallback, useState } from 'react';
import { type RefObject, useCallback, useState } from 'react';

@@ -5,0 +5,0 @@ const computeFontSize = (target: Element | RefObject<Element>) => {

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