New Case Study:See how Anthropic automated 95% of dependency reviews with Socket.Learn More
Socket
Sign inDemoInstall
Socket

hapi-mongo-models

Package Overview
Dependencies
Maintainers
1
Versions
35
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

hapi-mongo-models - npm Package Compare versions

Comparing version 4.1.0 to 4.2.0

10

package.json
{
"name": "hapi-mongo-models",
"version": "4.1.0",
"version": "4.2.0",
"description": "MongoDB object models for hapi applications",

@@ -34,6 +34,6 @@ "main": "index.js",

"code": "2.x.x",
"hapi": "11.x.x",
"lab": "8.x.x",
"hapi": "13.x.x",
"lab": "10.x.x",
"mongodb": "2.x.x",
"opn-cli": "1.x.x",
"opn-cli": "3.x.x",
"proxyquire": "1.x.x"

@@ -48,5 +48,5 @@ },

"hoek": "3.x.x",
"joi": "7.x.x",
"joi": "8.x.x",
"object-assign": "4.x.x"
}
}

@@ -63,3 +63,3 @@ # hapi-mongo-models

- [`findOne(filter, [options], callback)`](#findonefilter-options-callback)
- [`findOneAndUpdate(filter, [options], callback)`](#findoneandupdatefilter-options-callback)
- [`findOneAndUpdate(filter, update, [options], callback)`](#findoneandupdatefilter-options-callback)
- [`findOneAndDelete(filter, [options], callback)`](#findoneanddeletefilter-options-callback)

@@ -157,18 +157,21 @@ - [`insertOne(doc, [options], callback)`](#insertonedoc-options-callback)

{
"servers": [{
"connections": [{
"port": 8080
}],
"plugins": {
"hapi-mongo-models": {
"mongodb": {
"url": "mongodb://localhost:27017/hapi-mongo-models-test",
"options": {},
},
"autoIndex": false,
"models": {
"Customer": "./path/to/customer",
"Order": "./path/to/order"
"registrations": [{
"plugin": {
"register": "hapi-mongo-models",
"options": {
"mongodb": {
"url": "mongodb://localhost:27017/hapi-mongo-models-test",
"options": {},
},
"autoIndex": false,
"models": {
"Customer": "./path/to/customer",
"Order": "./path/to/order"
}
}
}
}
}]
}

@@ -590,3 +593,3 @@ ```

#### `findOneAndUpdate(filter, [options], callback)`
#### `findOneAndUpdate(filter, update, [options], callback)`

@@ -596,2 +599,3 @@ Finds one document matching a `filter`, updates it and returns it where:

- `filter` - a filter object used to select the document to update.
- `update` - an object containing the fields/values to be updated.
- `options` - an options object passed to MongoDB's native `findOneAndUpdate`

@@ -598,0 +602,0 @@ method. Defaults to `{ returnOriginal: false }`.

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