mongoose-gridfs
Advanced tools
Comparing version 1.2.6 to 1.2.7
@@ -0,1 +1,11 @@ | ||
#### 1.2.7 (2019-09-18) | ||
##### Chores | ||
* **deps:** force latest version & audit fix ([d3fa6175](https://github.com/lykmapipo/mongoose-gridfs/commit/d3fa6175e5fbf270c7ed239307b1e915177c558d)) | ||
##### Documentation Changes | ||
* update usage docs ([548ef61c](https://github.com/lykmapipo/mongoose-gridfs/commit/548ef61ce6fad0bd2fd3524748cf8060903a8ab9)) | ||
#### 1.2.6 (2019-09-16) | ||
@@ -2,0 +12,0 @@ |
{ | ||
"name": "mongoose-gridfs", | ||
"version": "1.2.6", | ||
"version": "1.2.7", | ||
"description": "mongoose gridfs on top of gridfs-stream", | ||
@@ -36,3 +36,3 @@ "main": "index.js", | ||
"dependencies": { | ||
"@lykmapipo/mongoose-common": ">=0.25.12", | ||
"@lykmapipo/mongoose-common": ">=0.25.13", | ||
"lodash": ">=4.17.15", | ||
@@ -63,3 +63,3 @@ "stream-read": ">=1.1.2" | ||
"mongoose": ">=5.7.1", | ||
"mongoose-rest-actions": "^0.28.8", | ||
"mongoose-rest-actions": "^0.28.9", | ||
"multer": "^1.4.2", | ||
@@ -66,0 +66,0 @@ "on-finished": "^2.3.0", |
@@ -9,2 +9,3 @@ mongoose-gridfs | ||
*Note!: Only compatible with Mongoose >= 5.7.0* | ||
*Note!: Ensure mongoose connection before use* | ||
@@ -39,9 +40,9 @@ | ||
// read larger file | ||
const readStream = Attachment.readById(objectid); | ||
const readStream = Attachment.read({ _id }); | ||
// read smaller file | ||
Attachment.readById(objectid, (error, buffer) => { ... }); | ||
Attachment.read({ _id }, (error, buffer) => { ... }); | ||
// remove file and its content | ||
Attachment.unlink(objectid, (error) => { ... }); | ||
Attachment.unlink({ _id }, (error) => { ... }); | ||
``` | ||
@@ -48,0 +49,0 @@ |
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
68707
70