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

@radix-ui/react-compose-refs

Package Overview
Dependencies
Maintainers
5
Versions
72
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@radix-ui/react-compose-refs - npm Package Compare versions

Comparing version 0.0.1 to 0.0.2

2

dist/index.js

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

var e,r,n=(e={},r=require("react"),Object.keys(r).forEach((function(n){"default"!==n&&"__esModule"!==n&&Object.defineProperty(e,n,{enumerable:!0,get:function(){return r[n]}})})),e);function t(e,r){"function"==typeof e?e(r):null!=e&&(e.current=r)}function o(){for(var e=arguments.length,r=new Array(e),n=0;n<e;n++)r[n]=arguments[n];return function(e){return r.forEach((function(r){return t(r,e)}))}}exports.composeRefs=o,exports.useComposedRefs=function(){for(var e=arguments.length,r=new Array(e),t=0;t<e;t++)r[t]=arguments[t];return n.useCallback(o.apply(void 0,r),r)};
function e(e,r,n){Object.defineProperty(e,r,{get:n,enumerable:!0})}var r,n=require("react").useCallback,t=(r=require("@babel/runtime-corejs3/core-js-stable/instance/for-each"))&&r.__esModule?r.default:r,o={};function u(e,r){"function"==typeof e?e(r):null!=e&&(e.current=r)}function c(){for(var e=arguments.length,r=new Array(e),n=0;n<e;n++)r[n]=arguments[n];return function(e){return t(r).call(r,(function(r){return u(r,e)}))}}function f(){for(var e=arguments.length,r=new Array(e),t=0;t<e;t++)r[t]=arguments[t];return n(c.apply(void 0,r),r)}exports.composeRefs=c,exports.useComposedRefs=f,e(o,"useComposedRefs",(function(){return f})),e(o,"composeRefs",(function(){return c}));
//# sourceMappingURL=index.js.map

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

import*as o from"react";export function composeRefs(...o){return e=>o.forEach((o=>function(o,e){"function"==typeof o?o(e):null!=o&&(o.current=e)}(o,e)))}export function useComposedRefs(...e){return o.useCallback(composeRefs(...e),e)}
function e(e,o,r){Object.defineProperty(e,o,{get:r,enumerable:!0})}import{useCallback as o}from"react";import r from"@babel/runtime-corejs3/core-js-stable/instance/for-each";var n={};function t(e,o){"function"==typeof e?e(o):null!=e&&(e.current=o)}export function composeRefs(){for(var e=arguments.length,o=new Array(e),n=0;n<e;n++)o[n]=arguments[n];return function(e){return r(o).call(o,(function(o){return t(o,e)}))}}export function useComposedRefs(){for(var e=arguments.length,r=new Array(e),n=0;n<e;n++)r[n]=arguments[n];return o(composeRefs.apply(void 0,r),r)}e(n,"useComposedRefs",(function(){return useComposedRefs})),e(n,"composeRefs",(function(){return composeRefs}));
//# sourceMappingURL=index.module.js.map
{
"name": "@radix-ui/react-compose-refs",
"version": "0.0.1",
"version": "0.0.2",
"license": "MIT",

@@ -16,3 +16,4 @@ "source": "src/index.ts",

"clean": "rm -rf dist",
"prepublish": "yarn clean"
"prepublish": "yarn clean",
"version": "yarn version"
},

@@ -29,3 +30,6 @@ "peerDependencies": {

"url": "https://github.com/radix-ui/primitives/issues"
},
"dependencies": {
"@babel/runtime-corejs3": "^7.13.10"
}
}

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