Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

vue-filepond

Package Overview
Dependencies
Maintainers
1
Versions
34
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

vue-filepond - npm Package Compare versions

Comparing version 2.1.0 to 2.1.1

4

dist/vue-filepond.esm.js
/*!
* vue-filepond v2.1.0
* vue-filepond v2.1.1
* A handy FilePond adapter component for Vue

@@ -178,3 +178,3 @@ *

// remove from instances
const index = instances.findIndex(this._pond);
const index = instances.indexOf(this._pond);
if (index >= 0) {

@@ -181,0 +181,0 @@ instances.splice(index, 1);

/*!
* vue-filepond v2.1.0
* vue-filepond v2.1.1
* A handy FilePond adapter component for Vue

@@ -172,3 +172,3 @@ *

// remove from instances
var index = instances.findIndex(this._pond);
var index = instances.indexOf(this._pond);
if (index >= 0) {

@@ -175,0 +175,0 @@ instances.splice(index, 1);

/*!
* vue-filepond v2.1.0
* vue-filepond v2.1.1
* A handy FilePond adapter component for Vue

@@ -10,2 +10,2 @@ *

*/
"use strict";Object.defineProperty(exports,"__esModule",{value:!0}),exports.setOptions=void 0;var _vue=require("vue"),_vue2=_interopRequireDefault(_vue),_filepond=require("filepond");function _interopRequireDefault(obj){return obj&&obj.__esModule?obj:{default:obj}}var filteredComponentMethods=["setOptions","on","off","onOnce","appendTo","insertAfter","insertBefore","isAttachedTo","replaceElement","restoreElement","destroy"],isSupported=(0,_filepond.supported)(),getNativeConstructorFromType=function(type){return{string:String,boolean:Boolean,array:Array,function:Function,int:Number,serverapi:Object}[type]},props={},events=[],watch={},instances=[],globalOptions={},setOptions=exports.setOptions=function(options){globalOptions=Object.assign(globalOptions,options),instances.forEach(function(instance){instance.setOptions(globalOptions)})};exports.default=function(){_filepond.registerPlugin.apply(void 0,arguments),events.length=0;var _loop=function(prop){if(/^on/.test(prop))return events.push(prop),"continue";props[prop]=[String,getNativeConstructorFromType(_filepond.OptionTypes[prop])],watch[prop]=function(value){this._pond[prop]=value}};for(var prop in _filepond.OptionTypes)_loop(prop);return _vue2.default.component("FilePond",{name:"FilePond",props:props,watch:watch,render:function(h){return h("div",{class:{"filepond--wrapper":!0}},[h("input",{attrs:{id:this.id,name:this.name,type:"file",class:this.className,required:this.required,multiple:this.allowMultiple,accept:this.acceptedFileTypes,capture:this.captureMethod}})])},mounted:function(){var _this=this;if(isSupported){this._element=this.$el.querySelector("input");var options=events.reduce(function(obj,value){return obj[value]=function(){for(var _len=arguments.length,args=Array(_len),_key=0;_key<_len;_key++)args[_key]=arguments[_key];_this.$emit.apply(_this,[value.substr(2)].concat(args))},obj},{}),attrs=Object.assign({},this.$attrs);this._pond=(0,_filepond.create)(this._element,Object.assign(globalOptions,options,attrs,this.$options.propsData)),Object.keys(this._pond).filter(function(key){return!filteredComponentMethods.includes(key)}).forEach(function(key){_this[key]=_this._pond[key]}),instances.push(this._pond)}},beforeDestroy:function(){if(this._pond){this._pond.destroy();var index=instances.findIndex(this._pond);0<=index&&instances.splice(index,1)}}})};
"use strict";Object.defineProperty(exports,"__esModule",{value:!0}),exports.setOptions=void 0;var _vue=require("vue"),_vue2=_interopRequireDefault(_vue),_filepond=require("filepond");function _interopRequireDefault(obj){return obj&&obj.__esModule?obj:{default:obj}}var filteredComponentMethods=["setOptions","on","off","onOnce","appendTo","insertAfter","insertBefore","isAttachedTo","replaceElement","restoreElement","destroy"],isSupported=(0,_filepond.supported)(),getNativeConstructorFromType=function(type){return{string:String,boolean:Boolean,array:Array,function:Function,int:Number,serverapi:Object}[type]},props={},events=[],watch={},instances=[],globalOptions={},setOptions=exports.setOptions=function(options){globalOptions=Object.assign(globalOptions,options),instances.forEach(function(instance){instance.setOptions(globalOptions)})};exports.default=function(){_filepond.registerPlugin.apply(void 0,arguments),events.length=0;var _loop=function(prop){if(/^on/.test(prop))return events.push(prop),"continue";props[prop]=[String,getNativeConstructorFromType(_filepond.OptionTypes[prop])],watch[prop]=function(value){this._pond[prop]=value}};for(var prop in _filepond.OptionTypes)_loop(prop);return _vue2.default.component("FilePond",{name:"FilePond",props:props,watch:watch,render:function(h){return h("div",{class:{"filepond--wrapper":!0}},[h("input",{attrs:{id:this.id,name:this.name,type:"file",class:this.className,required:this.required,multiple:this.allowMultiple,accept:this.acceptedFileTypes,capture:this.captureMethod}})])},mounted:function(){var _this=this;if(isSupported){this._element=this.$el.querySelector("input");var options=events.reduce(function(obj,value){return obj[value]=function(){for(var _len=arguments.length,args=Array(_len),_key=0;_key<_len;_key++)args[_key]=arguments[_key];_this.$emit.apply(_this,[value.substr(2)].concat(args))},obj},{}),attrs=Object.assign({},this.$attrs);this._pond=(0,_filepond.create)(this._element,Object.assign(globalOptions,options,attrs,this.$options.propsData)),Object.keys(this._pond).filter(function(key){return!filteredComponentMethods.includes(key)}).forEach(function(key){_this[key]=_this._pond[key]}),instances.push(this._pond)}},beforeDestroy:function(){if(this._pond){this._pond.destroy();var index=instances.indexOf(this._pond);0<=index&&instances.splice(index,1)}}})};

@@ -168,3 +168,3 @@ import Vue from 'vue';

// remove from instances
const index = instances.findIndex(this._pond);
const index = instances.indexOf(this._pond);
if (index >= 0) {

@@ -171,0 +171,0 @@ instances.splice(index, 1);

{
"name": "vue-filepond",
"version": "2.1.0",
"version": "2.1.1",
"description": "A handy FilePond adapter component for Vue",

@@ -37,3 +37,3 @@ "homepage": "https://pqina.nl/filepond",

"dependencies": {
"filepond": "^1.6.0"
"filepond": "^1.7.0"
},

@@ -40,0 +40,0 @@ "peerDependencies": {

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