-
-
Notifications
You must be signed in to change notification settings - Fork 167
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
__Major changes:__ -⚠️ `FSName` now sanitized and limited to 28 symbols, no white-spaces allowed -⚠️ `fileId` now sanitized and limited to 20 symbols, no white-spaces allowed -⚠️ File extension now sanitized and limited to 20 symbols, no white-spaces allowed - 📦 Decouple `fs-extra`, use native node.js `fs` module - 👨💻 Add missing `isData` helper via #795, by @harryadel __Changes:__ - 👷♂️ Fix: #827, thanks to @aertms - 👷♂️ Fix: #832, thanks to @polygonwood - 👷♂️ Fix: #813, thanks to @Prinzhorn - 👨💻 Fix: #834, thanks to @bladerunner2020 - 📔 Fix: #803, thanks to @bartenra - 🏗 Sanitize inputs (`FSName`, `fileId`, `extension`) to avoid command injection - 📔 Improved documentation, special thanks to @Prinzhorn and @make-github-pseudonymous-again - 📔 GridFS documentation fix: #818 - 👷♂️ Utilize `Meteor._debug` where possible instead of `console.log` __Other:__ - 🤝 Compatibility with `[email protected]`
- Loading branch information
1 parent
0199a2f
commit e3a347c
Showing
7 changed files
with
82 additions
and
65 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,51 +1,51 @@ | ||
[email protected].0 | ||
babel-compiler@7.6.0 | ||
[email protected].0 | ||
[email protected].1 | ||
babel-compiler@7.9.0 | ||
[email protected].1 | ||
[email protected] | ||
[email protected] | ||
[email protected] | ||
callback-hook@1.3.0 | ||
callback-hook@1.4.0 | ||
[email protected] | ||
[email protected] | ||
ddp-client@2.4.0 | ||
ddp-client@2.5.0 | ||
[email protected] | ||
ddp-server@2.3.2 | ||
ddp-server@2.5.0 | ||
[email protected] | ||
dynamic-import@0.6.0 | ||
ecmascript@0.15.0 | ||
ecmascript-runtime@0.7.0 | ||
ecmascript-runtime-client@0.11.0 | ||
ecmascript-runtime-server@0.10.0 | ||
[email protected].1 | ||
dynamic-import@0.7.2 | ||
ecmascript@0.16.2 | ||
ecmascript-runtime@0.8.0 | ||
ecmascript-runtime-client@0.12.1 | ||
ecmascript-runtime-server@0.11.0 | ||
[email protected].2 | ||
[email protected] | ||
[email protected] | ||
[email protected].0 | ||
[email protected].1 | ||
[email protected] | ||
local-test:ostrio:files@2.0.1 | ||
logging@1.2.0 | ||
meteor@1.9.3 | ||
minimongo@1.6.1 | ||
[email protected].5 | ||
modules@0.16.0 | ||
modules-runtime@0.12.0 | ||
mongo@1.10.1 | ||
[email protected].2 | ||
local-test:ostrio:files@2.1.0 | ||
logging@1.3.1 | ||
meteor@1.10.0 | ||
minimongo@1.8.0 | ||
[email protected].8 | ||
modules@0.18.0 | ||
modules-runtime@0.13.0 | ||
mongo@1.15.0 | ||
[email protected].3 | ||
[email protected] | ||
[email protected].7 | ||
npm-mongo@3.8.1 | ||
[email protected].8 | ||
npm-mongo@4.3.1 | ||
[email protected] | ||
ostrio:[email protected].0 | ||
ostrio:files@2.0.1 | ||
promise@0.11.2 | ||
ostrio:[email protected].2 | ||
ostrio:files@2.1.0 | ||
promise@0.12.0 | ||
[email protected] | ||
react-fast-refresh@0.1.0 | ||
react-fast-refresh@0.2.3 | ||
[email protected] | ||
[email protected] | ||
[email protected] | ||
[email protected].0 | ||
socket-stream-client@0.3.1 | ||
tinytest@1.1.0 | ||
[email protected].1 | ||
socket-stream-client@0.5.0 | ||
tinytest@1.2.1 | ||
[email protected] | ||
[email protected] | ||
webapp@1.10.0 | ||
webapp@1.13.1 | ||
[email protected] |
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,30 +1,29 @@ | ||
Package.describe({ | ||
name: 'ostrio:files', | ||
version: '2.0.1', | ||
version: '2.1.0', | ||
summary: 'Upload files to Meteor application, with 3rd party storage support: AWS:S3, GridFS and other', | ||
git: 'https://github.com/VeliovGroup/Meteor-Files', | ||
git: 'https://github.com/veliovgroup/Meteor-Files', | ||
documentation: 'README.md' | ||
}); | ||
|
||
Npm.depends({ | ||
'fs-extra': '9.1.0', | ||
eventemitter3: '4.0.7', | ||
'abort-controller': '3.0.0' | ||
}); | ||
|
||
Package.onUse(function(api) { | ||
Package.onUse((api) => { | ||
api.versionsFrom('1.9'); | ||
api.use('webapp', 'server'); | ||
api.use(['reactive-var', 'tracker', 'ddp-client'], 'client'); | ||
api.use(['mongo', 'check', 'random', 'ecmascript', 'fetch', 'ostrio:[email protected].0'], ['client', 'server']); | ||
api.use(['mongo', 'check', 'random', 'ecmascript', 'fetch', 'ostrio:[email protected].2'], ['client', 'server']); | ||
api.addAssets('worker.min.js', 'client'); | ||
api.mainModule('server.js', 'server'); | ||
api.mainModule('client.js', 'client'); | ||
api.export('FilesCollection'); | ||
}); | ||
|
||
Package.onTest(function(api) { | ||
Package.onTest((api) => { | ||
api.use('tinytest'); | ||
api.use(['ecmascript', 'ostrio:files'], ['client', 'server']); | ||
api.addFiles('tests/helpers.js', ['client', 'server']); | ||
}); | ||
|
||
Npm.depends({ | ||
eventemitter3: '4.0.7', | ||
'abort-controller': '3.0.0' | ||
}); |
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