react-use-file-upload
Advanced tools
Comparing version 0.3.2 to 0.3.3
@@ -66,3 +66,3 @@ "use strict"; | ||
const removeFile = react_1.useCallback((file) => { | ||
if (['number', 'string'].includes(typeof file)) { | ||
if (typeof file !== 'number' && typeof file !== 'string') { | ||
console.error('argument supplied to removeFile must be of type number or string.'); | ||
@@ -69,0 +69,0 @@ return; |
{ | ||
"name": "react-use-file-upload", | ||
"version": "0.3.2", | ||
"version": "0.3.3", | ||
"description": "A React Hook to make dealing with file uploading easier.", | ||
@@ -5,0 +5,0 @@ "main": "dist/index.js", |
@@ -72,3 +72,3 @@ import { useState, useCallback } from 'react'; | ||
const removeFile = useCallback((file: number | string): void => { | ||
if (['number', 'string'].includes(typeof file)) { | ||
if (typeof file !== 'number' && typeof file !== 'string') { | ||
console.error('argument supplied to removeFile must be of type number or string.'); | ||
@@ -75,0 +75,0 @@ return; |
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
12445