ngx-dropzone-wrapper
Advanced tools
Comparing version 4.6.5 to 4.6.6
"use strict"; | ||
Object.defineProperty(exports, "__esModule", { value: true }); | ||
var Dropzone = require("dropzone"); | ||
var core_1 = require("@angular/core"); | ||
@@ -42,2 +43,3 @@ var core_2 = require("@angular/core"); | ||
this.DZ_QUEUECOMPLETE = new core_2.EventEmitter(); | ||
eval('Dropzone.autoDiscover = false'); | ||
} | ||
@@ -53,7 +55,7 @@ DropzoneDirective.prototype.ngOnInit = function () { | ||
if (this.runInsideAngular) { | ||
this.dropzone = new dropzone_interfaces_1.AngularDropzone(element, options); | ||
this.dropzone = new Dropzone(element, options); | ||
} | ||
else { | ||
this.zone.runOutsideAngular(function () { | ||
_this.dropzone = new dropzone_interfaces_1.AngularDropzone(element, options); | ||
_this.dropzone = new Dropzone(element, options); | ||
}); | ||
@@ -60,0 +62,0 @@ } |
@@ -1,6 +0,2 @@ | ||
import * as Dropzone from 'dropzone'; | ||
export declare const DropzoneEvents: string[]; | ||
export declare class AngularDropzone extends Dropzone { | ||
static autoDiscover: boolean; | ||
} | ||
export interface DropzoneConfigInterface { | ||
@@ -7,0 +3,0 @@ timeout?: number; |
"use strict"; | ||
var __extends = (this && this.__extends) || (function () { | ||
var extendStatics = Object.setPrototypeOf || | ||
({ __proto__: [] } instanceof Array && function (d, b) { d.__proto__ = b; }) || | ||
function (d, b) { for (var p in b) if (b.hasOwnProperty(p)) d[p] = b[p]; }; | ||
return function (d, b) { | ||
extendStatics(d, b); | ||
function __() { this.constructor = d; } | ||
d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __()); | ||
}; | ||
})(); | ||
Object.defineProperty(exports, "__esModule", { value: true }); | ||
var Dropzone = require("dropzone"); | ||
// http://www.dropzonejs.com/#event-list | ||
@@ -43,11 +32,2 @@ exports.DropzoneEvents = [ | ||
]; | ||
var AngularDropzone = (function (_super) { | ||
__extends(AngularDropzone, _super); | ||
function AngularDropzone() { | ||
return _super !== null && _super.apply(this, arguments) || this; | ||
} | ||
AngularDropzone.autoDiscover = false; | ||
return AngularDropzone; | ||
}(Dropzone)); | ||
exports.AngularDropzone = AngularDropzone; | ||
var DropzoneConfig = (function () { | ||
@@ -54,0 +34,0 @@ function DropzoneConfig(config) { |
@@ -1,1 +0,1 @@ | ||
[{"__symbolic":"module","version":3,"metadata":{"DropzoneEvents":["drop","dragstart","dragend","dragenter","dragover","dragleave","addedfile","removedfile","thumbnail","error","processing","uploadprogress","sending","success","complete","canceled","maxfilesreached","maxfilesexceeded","processingmultiple","sendingmultiple","successmultiple","completemultiple","canceledmultiple","totaluploadprogress","reset","queuecomplete"],"AngularDropzone":{"__symbolic":"class","extends":{"__symbolic":"reference","module":"dropzone"},"statics":{"autoDiscover":false}},"DropzoneConfigInterface":{"__symbolic":"interface"},"DropzoneConfig":{"__symbolic":"class","members":{"__ctor__":[{"__symbolic":"constructor","parameters":[{"__symbolic":"reference","name":"any"}]}],"assign":[{"__symbolic":"method"}]}}}},{"__symbolic":"module","version":1,"metadata":{"DropzoneEvents":["drop","dragstart","dragend","dragenter","dragover","dragleave","addedfile","removedfile","thumbnail","error","processing","uploadprogress","sending","success","complete","canceled","maxfilesreached","maxfilesexceeded","processingmultiple","sendingmultiple","successmultiple","completemultiple","canceledmultiple","totaluploadprogress","reset","queuecomplete"],"AngularDropzone":{"__symbolic":"class","extends":{"__symbolic":"reference","module":"dropzone"},"statics":{"autoDiscover":false}},"DropzoneConfigInterface":{"__symbolic":"interface"},"DropzoneConfig":{"__symbolic":"class","members":{"__ctor__":[{"__symbolic":"constructor","parameters":[{"__symbolic":"reference","name":"any"}]}],"assign":[{"__symbolic":"method"}]}}}}] | ||
[{"__symbolic":"module","version":3,"metadata":{"DropzoneEvents":["drop","dragstart","dragend","dragenter","dragover","dragleave","addedfile","removedfile","thumbnail","error","processing","uploadprogress","sending","success","complete","canceled","maxfilesreached","maxfilesexceeded","processingmultiple","sendingmultiple","successmultiple","completemultiple","canceledmultiple","totaluploadprogress","reset","queuecomplete"],"DropzoneConfigInterface":{"__symbolic":"interface"},"DropzoneConfig":{"__symbolic":"class","members":{"__ctor__":[{"__symbolic":"constructor","parameters":[{"__symbolic":"reference","name":"any"}]}],"assign":[{"__symbolic":"method"}]}}}},{"__symbolic":"module","version":1,"metadata":{"DropzoneEvents":["drop","dragstart","dragend","dragenter","dragover","dragleave","addedfile","removedfile","thumbnail","error","processing","uploadprogress","sending","success","complete","canceled","maxfilesreached","maxfilesexceeded","processingmultiple","sendingmultiple","successmultiple","completemultiple","canceledmultiple","totaluploadprogress","reset","queuecomplete"],"DropzoneConfigInterface":{"__symbolic":"interface"},"DropzoneConfig":{"__symbolic":"class","members":{"__ctor__":[{"__symbolic":"constructor","parameters":[{"__symbolic":"reference","name":"any"}]}],"assign":[{"__symbolic":"method"}]}}}}] |
@@ -6,3 +6,3 @@ { | ||
"license": "MIT", | ||
"version": "4.6.5", | ||
"version": "4.6.6", | ||
"main": "bundles/ngx-dropzone-wrapper.umd.js", | ||
@@ -9,0 +9,0 @@ "module": "./dist/index.js", |
Sorry, the diff of this file is too big to display
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is too big to display
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Uses eval
Supply chain riskPackage uses dynamic code execution (e.g., eval()), which is a dangerous practice. This can prevent the code from running in certain environments and increases the risk that the code may contain exploits or malicious behavior.
Found 1 instance in 1 package
501863
4032
3