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

react-use-file-upload

Package Overview
Dependencies
Maintainers
1
Versions
23
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

react-use-file-upload - npm Package Compare versions

Comparing version 0.3.2 to 0.3.3

2

dist/lib/useFileUpload.js

@@ -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;

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