@radix-ui/react-compose-refs
Advanced tools
Comparing version 0.0.1 to 0.0.2
@@ -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
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
Deprecated
MaintenanceThe maintainer of the package marked it as deprecated. This could indicate that a single version should not be used, or that the package is no longer maintained and any new vulnerabilities will not be fixed.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
9137
21
2
1
+ Added@babel/runtime-corejs3@7.26.0(transitive)
+ Addedcore-js-pure@3.39.0(transitive)
+ Addedregenerator-runtime@0.14.1(transitive)