monastery 1.38.0 → 1.38.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/changelog.md +7 -0
- package/docs/readme.md +1 -1
- package/package.json +1 -1
- package/plugins/images/index.js +1 -1
- package/test/plugin-images.js +2 -2
package/changelog.md
CHANGED
|
@@ -2,6 +2,13 @@
|
|
|
2
2
|
|
|
3
3
|
All notable changes to this project will be documented in this file. See [standard-version](https://github.com/conventional-changelog/standard-version) for commit guidelines.
|
|
4
4
|
|
|
5
|
+
### [1.38.1](https://github.com/boycce/monastery/compare/1.38.0...1.38.1) (2022-06-20)
|
|
6
|
+
|
|
7
|
+
|
|
8
|
+
### Bug Fixes
|
|
9
|
+
|
|
10
|
+
* changed ACL default ([cc92624](https://github.com/boycce/monastery/commit/cc926243728d0752940359fe4ae4a490f21b5750))
|
|
11
|
+
|
|
5
12
|
## [1.38.0](https://github.com/boycce/monastery/compare/1.37.3...1.38.0) (2022-06-17)
|
|
6
13
|
|
|
7
14
|
|
package/docs/readme.md
CHANGED
|
@@ -93,7 +93,7 @@ Coming soon...
|
|
|
93
93
|
- ~~Whitelisting a parent will remove any previously blacklisted children~~
|
|
94
94
|
- ~~Blacklist/project works the same across find/insert/update/validate~~
|
|
95
95
|
- Automatic embedded document ids/createdAt/updatedAt fields
|
|
96
|
-
- ~~
|
|
96
|
+
- ~~Ability to change ACL default on the manager~~
|
|
97
97
|
- ~~Public db.arrayWithSchema method~~
|
|
98
98
|
- Global after/before hooks
|
|
99
99
|
- docs: Make the implicit ID query conversion more apparent
|
package/package.json
CHANGED
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
"name": "monastery",
|
|
3
3
|
"description": "⛪ A straight forward MongoDB ODM built around Monk",
|
|
4
4
|
"author": "Ricky Boyce",
|
|
5
|
-
"version": "1.38.
|
|
5
|
+
"version": "1.38.1",
|
|
6
6
|
"license": "MIT",
|
|
7
7
|
"repository": "github:boycce/monastery",
|
|
8
8
|
"homepage": "https://boycce.github.io/monastery/",
|
package/plugins/images/index.js
CHANGED
|
@@ -25,7 +25,7 @@ let plugin = module.exports = {
|
|
|
25
25
|
}
|
|
26
26
|
|
|
27
27
|
// Settings
|
|
28
|
-
this.awsAcl = options.awsAcl || '
|
|
28
|
+
this.awsAcl = options.awsAcl || 'public-read' // default
|
|
29
29
|
this.awsBucket = options.awsBucket
|
|
30
30
|
this.awsAccessKeyId = options.awsAccessKeyId
|
|
31
31
|
this.awsSecretAccessKey = options.awsSecretAccessKey
|
package/test/plugin-images.js
CHANGED
|
@@ -642,7 +642,7 @@ module.exports = function(monastery, opendb) {
|
|
|
642
642
|
app.use(upload({ limits: { fileSize: 1000 * 480, files: 10 }}))
|
|
643
643
|
|
|
644
644
|
// Basic tests
|
|
645
|
-
expect(plugin.awsAcl).toEqual('
|
|
645
|
+
expect(plugin.awsAcl).toEqual('public-read')
|
|
646
646
|
expect(plugin.filesize).toEqual(undefined)
|
|
647
647
|
expect(plugin.formats).toEqual(['bmp', 'gif', 'jpg', 'jpeg', 'png', 'tiff'])
|
|
648
648
|
expect(plugin.getSignedUrl).toEqual(undefined)
|
|
@@ -690,7 +690,7 @@ module.exports = function(monastery, opendb) {
|
|
|
690
690
|
// S3 options
|
|
691
691
|
expect(response[1]).toEqual([
|
|
692
692
|
[{
|
|
693
|
-
ACL: '
|
|
693
|
+
ACL: 'public-read',
|
|
694
694
|
Body: expect.any(Object),
|
|
695
695
|
Bucket: 'fake',
|
|
696
696
|
Key: expect.stringMatching(/^full\/.*png$/),
|