-
-
Notifications
You must be signed in to change notification settings - Fork 683
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
* feat: allow to use filename option without keepExtension * feat: can use uploadDir option and filename together * refactor: rename * feat: by default prevent directory traversal attacks filename takes ext part, if filename returns extension it will not be duplicated anymore * refactor: make octet stream less divergent feat: store newName * refactor: pass through, avoid renaming variable names * refactor: prefer Object.assign * feat: pass newName * feat: give createFileWriteStream more, including newName * docs: update * docs: update examples * fix: fix missing variables * feat: remove duplicate fix tests * lint: lint * refactor: rename mime into mimetype * refactor: explicit this.options.keepExtensions !== true * tests: reverse expectation order * tests: rename to xname to avoid confusion * refactor: inline old _uploadPath * refactor: rename newName into newFileName * refactor: rename filename into originalFilename * refactor: direcly filepath * fix: test * refactor: split hash into hashAlgorithm and hash * feat: this.lastModifiedDate = null remains * refactor: finalpath: filepath * fix: change order * refactor: better be explicit * feat: display more in toString * docs: update changelog * chore: update version * fix: revert, renamed too much * fix: _flush is more appropriate
- Loading branch information
1 parent
997e852
commit 748f1db
Showing
27 changed files
with
268 additions
and
240 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,6 +1,5 @@ | ||
/* eslint-disable no-plusplus */ | ||
|
||
|
||
const missingPlugin = 1000; | ||
const pluginFunction = 1001; | ||
const aborted = 1002; | ||
|
Oops, something went wrong.