Skip to content

Commit 023373a

Browse files
committed
new build
1 parent 42a70b4 commit 023373a

File tree

5 files changed

+15
-15
lines changed

5 files changed

+15
-15
lines changed

dist/filepond-plugin-file-validate-size.esm.js

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
/*!
2-
* FilePondPluginFileValidateSize 2.2.6
2+
* FilePondPluginFileValidateSize 2.2.7
33
* Licensed under MIT, https://opensource.org/licenses/MIT/
44
* Please visit https://pqina.nl/filepond/ for details.
55
*/
@@ -17,12 +17,12 @@ const plugin = ({ addFilter, utils }) => {
1717
}
1818

1919
const sizeMax = query('GET_MAX_FILE_SIZE');
20-
if (sizeMax !== null && file.size >= sizeMax) {
20+
if (sizeMax !== null && file.size > sizeMax) {
2121
return false;
2222
}
2323

2424
const sizeMin = query('GET_MIN_FILE_SIZE');
25-
if (sizeMin !== null && file.size <= sizeMin) {
25+
if (sizeMin !== null && file.size < sizeMin) {
2626
return false;
2727
}
2828

@@ -49,7 +49,7 @@ const plugin = ({ addFilter, utils }) => {
4949

5050
// reject or resolve based on file size
5151
const sizeMax = query('GET_MAX_FILE_SIZE');
52-
if (sizeMax !== null && file.size >= sizeMax) {
52+
if (sizeMax !== null && file.size > sizeMax) {
5353
reject({
5454
status: {
5555
main: query('GET_LABEL_MAX_FILE_SIZE_EXCEEDED'),
@@ -68,7 +68,7 @@ const plugin = ({ addFilter, utils }) => {
6868

6969
// reject or resolve based on file size
7070
const sizeMin = query('GET_MIN_FILE_SIZE');
71-
if (sizeMin !== null && file.size <= sizeMin) {
71+
if (sizeMin !== null && file.size < sizeMin) {
7272
reject({
7373
status: {
7474
main: query('GET_LABEL_MIN_FILE_SIZE_EXCEEDED'),

dist/filepond-plugin-file-validate-size.esm.min.js

Lines changed: 2 additions & 2 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

dist/filepond-plugin-file-validate-size.js

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
/*!
2-
* FilePondPluginFileValidateSize 2.2.6
2+
* FilePondPluginFileValidateSize 2.2.7
33
* Licensed under MIT, https://opensource.org/licenses/MIT/
44
* Please visit https://pqina.nl/filepond/ for details.
55
*/
@@ -31,12 +31,12 @@
3131
}
3232

3333
var sizeMax = query('GET_MAX_FILE_SIZE');
34-
if (sizeMax !== null && file.size >= sizeMax) {
34+
if (sizeMax !== null && file.size > sizeMax) {
3535
return false;
3636
}
3737

3838
var sizeMin = query('GET_MIN_FILE_SIZE');
39-
if (sizeMin !== null && file.size <= sizeMin) {
39+
if (sizeMin !== null && file.size < sizeMin) {
4040
return false;
4141
}
4242

@@ -62,7 +62,7 @@
6262

6363
// reject or resolve based on file size
6464
var sizeMax = query('GET_MAX_FILE_SIZE');
65-
if (sizeMax !== null && file.size >= sizeMax) {
65+
if (sizeMax !== null && file.size > sizeMax) {
6666
reject({
6767
status: {
6868
main: query('GET_LABEL_MAX_FILE_SIZE_EXCEEDED'),
@@ -82,7 +82,7 @@
8282

8383
// reject or resolve based on file size
8484
var sizeMin = query('GET_MIN_FILE_SIZE');
85-
if (sizeMin !== null && file.size <= sizeMin) {
85+
if (sizeMin !== null && file.size < sizeMin) {
8686
reject({
8787
status: {
8888
main: query('GET_LABEL_MIN_FILE_SIZE_EXCEEDED'),

dist/filepond-plugin-file-validate-size.min.js

Lines changed: 2 additions & 2 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "filepond-plugin-file-validate-size",
3-
"version": "2.2.6",
3+
"version": "2.2.7",
44
"description": "File Size Validation Plugin for FilePond",
55
"license": "MIT",
66
"author": {

0 commit comments

Comments
 (0)