@github/file-attachment-element
Advanced tools
Comparing version
@@ -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", |
New author
Supply chain riskA new npm collaborator published a version of the package for the first time. New collaborators are usually benign additions to a project, but do indicate a change to the security surface area of a package.
Found 1 instance in 1 package
31047
0.23%1
Infinity%