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

filepond-plugin-file-rename

Package Overview
Dependencies
Maintainers
1
Versions
11
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

filepond-plugin-file-rename - npm Package Compare versions

Comparing version 1.0.0 to 1.0.1

5

dist/filepond-plugin-file-rename.esm.js
/*
* FilePondPluginFileRename 1.0.0
* FilePondPluginFileRename 1.0.1
* Licensed under MIT, https://opensource.org/licenses/MIT

@@ -11,2 +11,3 @@ * Please visit https://pqina.nl/filepond for details.

renameFile,
isFile,
getExtensionFromFilename,

@@ -26,3 +27,3 @@ getFilenameWithoutExtension

const renameFunction = query('GET_FILE_RENAME_FUNCTION');
if (!allowFileRename || !renameFunction) {
if (!isFile(file) || !allowFileRename || !renameFunction) {
resolve(file);

@@ -29,0 +30,0 @@ return;

4

dist/filepond-plugin-file-rename.esm.min.js
/*
* FilePondPluginFileRename 1.0.0
* FilePondPluginFileRename 1.0.1
* Licensed under MIT, https://opensource.org/licenses/MIT
* Please visit https://pqina.nl/filepond for details.
*/
var plugin$1=({addFilter:e,utils:n})=>{const{Type:t,renameFile:i,getExtensionFromFilename:a,getFilenameWithoutExtension:o}=n;return e("LOAD_FILE",(e,{query:n})=>new Promise((t,l)=>{const m=n("GET_ALLOW_FILE_RENAME"),u=n("GET_FILE_RENAME_FUNCTION");t(m&&u?i(e,u({name:e.name,basename:o(e.name),extension:`.${a(e.name)}`})):e)})),{options:{allowFileRename:[!0,t.BOOLEAN],fileRenameFunction:[null,t.FUNCTION]}}};"undefined"!=typeof navigator&&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:a,getExtensionFromFilename:l,getFilenameWithoutExtension:o}=n;return e("LOAD_FILE",(e,{query:n})=>new Promise((i,m)=>{const u=n("GET_ALLOW_FILE_RENAME"),E=n("GET_FILE_RENAME_FUNCTION");i(a(e)&&u&&E?t(e,E({name:e.name,basename:o(e.name),extension:`.${l(e.name)}`})):e)})),{options:{allowFileRename:[!0,i.BOOLEAN],fileRenameFunction:[null,i.FUNCTION]}}};"undefined"!=typeof navigator&&document&&document.dispatchEvent(new CustomEvent("FilePond:pluginloaded",{detail:plugin$1}));export default plugin$1;
/*
* FilePondPluginFileRename 1.0.0
* FilePondPluginFileRename 1.0.1
* Licensed under MIT, https://opensource.org/licenses/MIT

@@ -22,2 +22,3 @@ * Please visit https://pqina.nl/filepond for details.

renameFile = utils.renameFile,
isFile = utils.isFile,
getExtensionFromFilename = utils.getExtensionFromFilename,

@@ -36,3 +37,3 @@ getFilenameWithoutExtension = utils.getFilenameWithoutExtension;

var renameFunction = query('GET_FILE_RENAME_FUNCTION');
if (!allowFileRename || !renameFunction) {
if (!isFile(file) || !allowFileRename || !renameFunction) {
resolve(file);

@@ -39,0 +40,0 @@ return;

/*
* FilePondPluginFileRename 1.0.0
* FilePondPluginFileRename 1.0.1
* Licensed under MIT, https://opensource.org/licenses/MIT
* Please visit https://pqina.nl/filepond for details.
*/
!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,t=e.utils,i=t.Type,o=t.renameFile,u=t.getExtensionFromFilename,a=t.getFilenameWithoutExtension;return n("LOAD_FILE",function(e,n){var t=n.query;return new Promise(function(n,i){var d=t("GET_ALLOW_FILE_RENAME"),r=t("GET_FILE_RENAME_FUNCTION");return d&&r?void n(o(e,r({name:e.name,basename:a(e.name),extension:"."+u(e.name)}))):void n(e)})}),{options:{allowFileRename:[!0,i.BOOLEAN],fileRenameFunction:[null,i.FUNCTION]}}};return"undefined"!=typeof navigator&&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,o=i.renameFile,u=i.isFile,a=i.getExtensionFromFilename,d=i.getFilenameWithoutExtension;return n("LOAD_FILE",function(e,n){var i=n.query;return new Promise(function(n,t){var l=i("GET_ALLOW_FILE_RENAME"),r=i("GET_FILE_RENAME_FUNCTION");return u(e)&&l&&r?void n(o(e,r({name:e.name,basename:d(e.name),extension:"."+a(e.name)}))):void n(e)})}),{options:{allowFileRename:[!0,t.BOOLEAN],fileRenameFunction:[null,t.FUNCTION]}}};return"undefined"!=typeof navigator&&document&&document.dispatchEvent(new CustomEvent("FilePond:pluginloaded",{detail:e})),e});
{
"name": "filepond-plugin-file-rename",
"version": "1.0.0",
"version": "1.0.1",
"description": "File Rename Plugin for FilePond",

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

"url": "https://pqina.nl"
},
"peerDependencies": {
"filepond": "^1.8.0"
}
}

@@ -1,5 +0,5 @@

# Image Transform plugin for FilePond
# File Rename plugin for FilePond
[![npm version](https://badge.fury.io/js/filepond-plugin-image-transform.svg)](https://badge.fury.io/js/filepond)
[![npm version](https://badge.fury.io/js/filepond-plugin-file-rename.svg)](https://badge.fury.io/js/filepond-plugin-file-rename)
https://pqina.nl/filepond
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