Comparing version 1.1.0 to 1.1.1
@@ -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
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
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
Major refactor
Supply chain riskPackage has recently undergone a major refactor. It may be unstable or indicate significant internal changes. Use caution when updating to versions that include significant changes.
Found 1 instance in 1 package
0
9908
9
173