Socket
Socket
Sign inDemoInstall

mongoose-gridfs

Package Overview
Dependencies
Maintainers
1
Versions
70
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

mongoose-gridfs - npm Package Compare versions

Comparing version 1.2.6 to 1.2.7

10

CHANGELOG.md

@@ -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 @@

6

package.json
{
"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 @@

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc