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

@github/file-attachment-element

Package Overview
Dependencies
Maintainers
19
Versions
12
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@github/file-attachment-element - npm Package Compare versions

Comparing version

to
3.0.1

2

dist/file-attachment-element.js

@@ -89,3 +89,3 @@ import Attachment from './attachment';

for (const item of items) {
if (images.test(item.type)) {
if (item.kind === 'file' && images.test(item.type)) {
return item.getAsFile();

@@ -92,0 +92,0 @@ }

@@ -212,3 +212,3 @@ class Attachment {

for (const item of items) {
if (images.test(item.type)) {
if (item.kind === 'file' && images.test(item.type)) {
return item.getAsFile();

@@ -215,0 +215,0 @@ }

@@ -218,3 +218,3 @@ (function (global, factory) {

for (const item of items) {
if (images.test(item.type)) {
if (item.kind === 'file' && images.test(item.type)) {
return item.getAsFile();

@@ -221,0 +221,0 @@ }

{
"name": "@github/file-attachment-element",
"version": "3.0.0",
"version": "3.0.1",
"description": "Attach files via drag and drop or file input.",

@@ -5,0 +5,0 @@ "main": "dist/index.umd.js",