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 2.0.1 to 3.0.0

1

dist/attachment.d.ts

@@ -14,2 +14,3 @@ export default class Attachment {

isImage(): boolean;
isVideo(): boolean;
saving(percent: number): void;

@@ -16,0 +17,0 @@ saved(attributes?: {

@@ -35,2 +35,5 @@ export default class Attachment {

}
isVideo() {
return ['video/mp4', 'video/quicktime'].indexOf(this.file.type) > -1;
}
saving(percent) {

@@ -37,0 +40,0 @@ if (this.state !== 'pending' && this.state !== 'saving') {

1

dist/file-attachment-element.js

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

target.setAttribute('hover', '');
event.stopPropagation();
event.preventDefault();

@@ -66,0 +65,0 @@ }

@@ -35,2 +35,5 @@ class Attachment {

}
isVideo() {
return ['video/mp4', 'video/quicktime'].indexOf(this.file.type) > -1;
}
saving(percent) {

@@ -184,3 +187,2 @@ if (this.state !== 'pending' && this.state !== 'saving') {

target.setAttribute('hover', '');
event.stopPropagation();
event.preventDefault();

@@ -187,0 +189,0 @@ }

@@ -41,2 +41,5 @@ (function (global, factory) {

}
isVideo() {
return ['video/mp4', 'video/quicktime'].indexOf(this.file.type) > -1;
}
saving(percent) {

@@ -190,3 +193,2 @@ if (this.state !== 'pending' && this.state !== 'saving') {

target.setAttribute('hover', '');
event.stopPropagation();
event.preventDefault();

@@ -193,0 +195,0 @@ }

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

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

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