Socket
Socket
Sign inDemoInstall

merge-refs

Package Overview
Dependencies
Maintainers
1
Versions
9
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

merge-refs - npm Package Compare versions

Comparing version 1.1.0 to 1.1.1

2

dist/cjs/index.d.ts

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

import * as React from 'react';
import type * as React from 'react';
/**

@@ -3,0 +3,0 @@ * A function that merges React refs into one.

"use strict";
exports.__esModule = true;
Object.defineProperty(exports, "__esModule", { value: true });
/**

@@ -23,3 +23,3 @@ * A function that merges React refs into one.

var firstRef = filteredInputRefs[0];
return firstRef;
return firstRef || null;
}

@@ -37,2 +37,2 @@ return function mergedRefs(ref) {

}
exports["default"] = mergeRefs;
exports.default = mergeRefs;

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

import * as React from 'react';
import type * as React from 'react';
/**

@@ -3,0 +3,0 @@ * A function that merges React refs into one.

@@ -21,3 +21,3 @@ /**

var firstRef = filteredInputRefs[0];
return firstRef;
return firstRef || null;
}

@@ -24,0 +24,0 @@ return function mergedRefs(ref) {

{
"name": "merge-refs",
"version": "1.1.0",
"version": "1.1.1",
"description": "A function that merges React refs into one.",

@@ -19,3 +19,4 @@ "main": "dist/cjs/index.js",

"prettier": "prettier --check . --cache",
"test": "yarn lint && yarn prettier && yarn jest"
"test": "yarn lint && yarn tsc && yarn prettier && yarn jest",
"tsc": "tsc --noEmit"
},

@@ -22,0 +23,0 @@ "keywords": [

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

import * as React from 'react';
import type * as React from 'react';

@@ -23,3 +23,3 @@ /**

return firstRef;
return firstRef || null;
}

@@ -26,0 +26,0 @@

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