Skip to content

Commit d24b8c4

Browse files
committed
fix url string issue
1 parent 62f7255 commit d24b8c4

9 files changed

Lines changed: 16 additions & 12 deletions

File tree

CHANGELOG.md

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,9 @@
11
# Changelog
22

3+
## 4.30.6
4+
5+
- Fix issue where using a number as source for a local file would throw a `url.split` error.
6+
37
## 4.30.5
48

59
- Fix file field value assignment #905

dist/filepond.css

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
/*!
2-
* FilePond 4.30.5
2+
* FilePond 4.30.6
33
* Licensed under MIT, https://opensource.org/licenses/MIT/
44
* Please visit https://pqina.nl/filepond/ for details.
55
*/

dist/filepond.esm.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
/*!
2-
* FilePond 4.30.5
2+
* FilePond 4.30.6
33
* Licensed under MIT, https://opensource.org/licenses/MIT/
44
* Please visit https://pqina.nl/filepond/ for details.
55
*/
@@ -2181,7 +2181,7 @@ const isBase64DataURI = str =>
21812181
);
21822182

21832183
const getFilenameFromURL = url =>
2184-
url
2184+
`${url}`
21852185
.split('/')
21862186
.pop()
21872187
.split('?')

dist/filepond.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.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
/*!
2-
* FilePond 4.30.5
2+
* FilePond 4.30.6
33
* Licensed under MIT, https://opensource.org/licenses/MIT/
44
* Please visit https://pqina.nl/filepond/ for details.
55
*/
@@ -4166,7 +4166,7 @@
41664166
};
41674167

41684168
var getFilenameFromURL = function getFilenameFromURL(url) {
4169-
return url
4169+
return ('' + url)
41704170
.split('/')
41714171
.pop()
41724172
.split('?')

dist/filepond.min.css

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

dist/filepond.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",
3-
"version": "4.30.5",
3+
"version": "4.30.6",
44
"description": "FilePond, Where files go to stretch their bits.",
55
"license": "MIT",
66
"author": {

src/js/utils/getFilenameFromURL.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
export const getFilenameFromURL = url =>
2-
url
2+
`${url}`
33
.split('/')
44
.pop()
55
.split('?')

0 commit comments

Comments
 (0)