New Case Study:See how Anthropic automated 95% of dependency reviews with Socket.Learn More
Socket
Sign inDemoInstall
Socket

@uploadthing/dropzone

Package Overview
Dependencies
Maintainers
1
Versions
91
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@uploadthing/dropzone - npm Package Compare versions

Comparing version 0.1.2-canary.558e67c to 0.1.2-canary.7464bd0

dist/chunk-O25AQE2B.mjs

3

dist/core.js

@@ -92,3 +92,2 @@ "use strict";

function isEventWithFiles(event) {
var _a;
if (!("dataTransfer" in event && event.dataTransfer !== null)) {

@@ -99,3 +98,3 @@ return !!event.target && "files" in event.target && !!event.target.files;

// eslint-disable-next-line @typescript-eslint/no-unsafe-member-access
(_a = event.dataTransfer) == null ? void 0 : _a.types,
event.dataTransfer?.types,
(type) => type === "Files" || type === "application/x-moz-file"

@@ -102,0 +101,0 @@ );

@@ -86,3 +86,2 @@ "use strict";

function isEventWithFiles(event) {
var _a;
if (!("dataTransfer" in event && event.dataTransfer !== null)) {

@@ -93,3 +92,3 @@ return !!event.target && "files" in event.target && !!event.target.files;

// eslint-disable-next-line @typescript-eslint/no-unsafe-member-access
(_a = event.dataTransfer) == null ? void 0 : _a.types,
event.dataTransfer?.types,
(type) => type === "Files" || type === "application/x-moz-file"

@@ -183,3 +182,3 @@ );

const { files } = inputRef.current;
if (!(files == null ? void 0 : files.length)) {
if (!files?.length) {
dispatch({ type: "closeDialog" });

@@ -198,4 +197,3 @@ }

const onDocumentDrop = (event) => {
var _a;
if ((_a = rootRef.current) == null ? void 0 : _a.contains(event.target))
if (rootRef.current?.contains(event.target))
return;

@@ -262,6 +260,3 @@ event.preventDefault();

const targets = dragTargetsRef.current.filter(
(target) => {
var _a;
return (_a = rootRef.current) == null ? void 0 : _a.contains(target);
}
(target) => rootRef.current?.contains(target)
);

@@ -331,4 +326,3 @@ const targetIdx = targets.indexOf(event.target);

(event) => {
var _a;
if (!((_a = rootRef.current) == null ? void 0 : _a.isEqualNode(event.target)))
if (!rootRef.current?.isEqualNode(event.target))
return;

@@ -335,0 +329,0 @@ if (isEnterOrSpace(event)) {

@@ -87,3 +87,2 @@ "use strict";

function isEventWithFiles(event) {
var _a;
if (!("dataTransfer" in event && event.dataTransfer !== null)) {

@@ -94,3 +93,3 @@ return !!event.target && "files" in event.target && !!event.target.files;

// eslint-disable-next-line @typescript-eslint/no-unsafe-member-access
(_a = event.dataTransfer) == null ? void 0 : _a.types,
event.dataTransfer?.types,
(type) => type === "Files" || type === "application/x-moz-file"

@@ -149,3 +148,3 @@ );

const { files } = input;
if (!(files == null ? void 0 : files.length)) {
if (!files?.length) {
setState("isFileDialogActive", false);

@@ -228,3 +227,3 @@ }

const root = rootRef();
const targets = dragTargets.filter((target) => root == null ? void 0 : root.contains(target));
const targets = dragTargets.filter((target) => root?.contains(target));
const targetIdx = targets.indexOf(event.target);

@@ -245,3 +244,2 @@ if (targetIdx !== -1) {

const setFiles = (files) => {
var _a;
const acceptedFiles = [];

@@ -261,3 +259,3 @@ files.forEach((file) => {

});
(_a = props.onDrop) == null ? void 0 : _a.call(props, acceptedFiles);
props.onDrop?.(acceptedFiles);
};

@@ -264,0 +262,0 @@ const onDrop = (event) => {

{
"name": "@uploadthing/dropzone",
"version": "0.1.2-canary.558e67c",
"version": "0.1.2-canary.7464bd0",
"license": "MIT",

@@ -45,7 +45,7 @@ "exports": {

"@uploadthing/tsup-config": "0.1.0",
"eslint": "^8.47.0",
"eslint": "^8.56.0",
"react": "18.2.0",
"solid-js": "^1.7.11",
"tsup": "6.7.0",
"typescript": "^5.1.6"
"typescript": "^5.3.3"
},

@@ -52,0 +52,0 @@ "eslintConfig": {

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

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