filepond-plugin-file-rename
Advanced tools
Comparing version 1.1.1 to 1.1.2
/* | ||
* FilePondPluginFileRename 1.1.1 | ||
* FilePondPluginFileRename 1.1.2 | ||
* Licensed under MIT, https://opensource.org/licenses/MIT | ||
@@ -70,3 +70,3 @@ * Please visit https://pqina.nl/filepond for details. | ||
if (isBrowser && document) { | ||
if (isBrowser) { | ||
document.dispatchEvent( | ||
@@ -73,0 +73,0 @@ new CustomEvent('FilePond:pluginloaded', { detail: plugin$1 }) |
/* | ||
* FilePondPluginFileRename 1.1.1 | ||
* FilePondPluginFileRename 1.1.2 | ||
* Licensed under MIT, https://opensource.org/licenses/MIT | ||
@@ -8,2 +8,2 @@ * Please visit https://pqina.nl/filepond for details. | ||
/* eslint-disable */ | ||
var plugin$1=({addFilter:e,utils:n})=>{const{Type:i,renameFile:t,isFile:o,getExtensionFromFilename:l,getFilenameWithoutExtension:s}=n;return e("LOAD_FILE",(e,{query:n})=>new Promise((i,a)=>{const d=n("GET_ALLOW_FILE_RENAME"),u=n("GET_FILE_RENAME_FUNCTION");if(!o(e)||!d||!u)return void i(e);const m=u({name:e.name,basename:s(e.name),extension:`.${l(e.name)}`}),r=n=>{i(t(e,n))};"string"!=typeof m?m.then(r):r(m)})),{options:{allowFileRename:[!0,i.BOOLEAN],fileRenameFunction:[null,i.FUNCTION]}}};const isBrowser="undefined"!=typeof window&&void 0!==window.document;isBrowser&&document&&document.dispatchEvent(new CustomEvent("FilePond:pluginloaded",{detail:plugin$1}));export default plugin$1; | ||
var plugin$1=({addFilter:e,utils:n})=>{const{Type:i,renameFile:t,isFile:o,getExtensionFromFilename:l,getFilenameWithoutExtension:s}=n;return e("LOAD_FILE",(e,{query:n})=>new Promise((i,a)=>{const d=n("GET_ALLOW_FILE_RENAME"),r=n("GET_FILE_RENAME_FUNCTION");if(!o(e)||!d||!r)return void i(e);const u=r({name:e.name,basename:s(e.name),extension:`.${l(e.name)}`}),m=n=>{i(t(e,n))};"string"!=typeof u?u.then(m):m(u)})),{options:{allowFileRename:[!0,i.BOOLEAN],fileRenameFunction:[null,i.FUNCTION]}}};const isBrowser="undefined"!=typeof window&&void 0!==window.document;isBrowser&&document.dispatchEvent(new CustomEvent("FilePond:pluginloaded",{detail:plugin$1}));export default plugin$1; |
/* | ||
* FilePondPluginFileRename 1.1.1 | ||
* FilePondPluginFileRename 1.1.2 | ||
* Licensed under MIT, https://opensource.org/licenses/MIT | ||
@@ -80,3 +80,3 @@ * Please visit https://pqina.nl/filepond for details. | ||
if (isBrowser && document) { | ||
if (isBrowser) { | ||
document.dispatchEvent( | ||
@@ -83,0 +83,0 @@ new CustomEvent('FilePond:pluginloaded', { detail: plugin$1 }) |
/* | ||
* FilePondPluginFileRename 1.1.1 | ||
* FilePondPluginFileRename 1.1.2 | ||
* Licensed under MIT, https://opensource.org/licenses/MIT | ||
@@ -8,2 +8,2 @@ * Please visit https://pqina.nl/filepond for details. | ||
/* eslint-disable */ | ||
!function(e,n){"object"==typeof exports&&"undefined"!=typeof module?module.exports=n():"function"==typeof define&&define.amd?define(n):e.FilePondPluginFileRename=n()}(this,function(){"use strict";var e=function(e){var n=e.addFilter,i=e.utils,t=i.Type,l=i.renameFile,m=i.isFile,r=i.getExtensionFromFilename,f=i.getFilenameWithoutExtension;return n("LOAD_FILE",function(d,e){var a=e.query;return new Promise(function(n,e){var i=a("GET_ALLOW_FILE_RENAME"),t=a("GET_FILE_RENAME_FUNCTION");if(m(d)&&i&&t){var o=t({name:d.name,basename:f(d.name),extension:"."+r(d.name)}),u=function(e){n(l(d,e))};"string"!=typeof o?o.then(u):u(o)}else n(d)})}),{options:{allowFileRename:[!0,t.BOOLEAN],fileRenameFunction:[null,t.FUNCTION]}}};return"undefined"!=typeof window&&void 0!==window.document&&document&&document.dispatchEvent(new CustomEvent("FilePond:pluginloaded",{detail:e})),e}); | ||
!function(e,n){"object"==typeof exports&&"undefined"!=typeof module?module.exports=n():"function"==typeof define&&define.amd?define(n):e.FilePondPluginFileRename=n()}(this,function(){"use strict";var e=function(e){var n=e.addFilter,i=e.utils,t=i.Type,l=i.renameFile,r=i.isFile,f=i.getExtensionFromFilename,m=i.getFilenameWithoutExtension;return n("LOAD_FILE",function(a,e){var d=e.query;return new Promise(function(n,e){var i=d("GET_ALLOW_FILE_RENAME"),t=d("GET_FILE_RENAME_FUNCTION");if(r(a)&&i&&t){var o=t({name:a.name,basename:m(a.name),extension:"."+f(a.name)}),u=function(e){n(l(a,e))};"string"!=typeof o?o.then(u):u(o)}else n(a)})}),{options:{allowFileRename:[!0,t.BOOLEAN],fileRenameFunction:[null,t.FUNCTION]}}};return"undefined"!=typeof window&&void 0!==window.document&&document.dispatchEvent(new CustomEvent("FilePond:pluginloaded",{detail:e})),e}); |
{ | ||
"name": "filepond-plugin-file-rename", | ||
"version": "1.1.1", | ||
"version": "1.1.2", | ||
"description": "File Rename Plugin for FilePond", | ||
@@ -16,4 +16,4 @@ "homepage": "https://pqina.nl/filepond", | ||
"peerDependencies": { | ||
"filepond": ">=1.8.x <4.x" | ||
"filepond": ">=1.8.x <5.x" | ||
} | ||
} |
Sorry, the diff of this file is not supported yet
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
8274