hapi-mongo-models
Advanced tools
Comparing version 7.1.1 to 8.0.0
'use strict'; | ||
const Hoek = require('hoek'); | ||
const Hoek = require('@hapi/hoek'); | ||
const MongoModels = require('mongo-models'); | ||
@@ -34,3 +35,3 @@ | ||
.filter((model) => Boolean(model.indexes)) | ||
.map((model) => model.createIndexes.call(model, model.indexes)); | ||
.map((model) => model.createIndexes(model.indexes)); | ||
@@ -37,0 +38,0 @@ await Promise.all(indexJobs); |
{ | ||
"name": "hapi-mongo-models", | ||
"version": "7.1.1", | ||
"version": "8.0.0", | ||
"description": "A hapi plugin for mongo-models", | ||
@@ -32,17 +32,17 @@ "main": "index.js", | ||
"devDependencies": { | ||
"code": "5.x.x", | ||
"hapi": "17.x.x", | ||
"joi": "13.x.x", | ||
"lab": "15.x.x", | ||
"@hapi/code": "5.x.x", | ||
"@hapi/hapi": "18.x.x", | ||
"@hapi/joi": "15.x.x", | ||
"@hapi/lab": "19.x.x", | ||
"mongodb": "3.x.x", | ||
"mongo-models": "2.x.x", | ||
"proxyquire": "1.x.x" | ||
"mongo-models": "3.x.x", | ||
"proxyquire": "2.x.x" | ||
}, | ||
"peerDependencies": { | ||
"mongodb": "3.x.x", | ||
"mongo-models": "2.x.x" | ||
"mongo-models": "3.x.x" | ||
}, | ||
"dependencies": { | ||
"hoek": "5.x.x" | ||
"@hapi/hoek": "7.x.x" | ||
} | ||
} |
'use strict'; | ||
const Joi = require('joi'); | ||
const Joi = require('@hapi/joi'); | ||
const MongoModels = require('mongo-models'); | ||
@@ -4,0 +5,0 @@ |
'use strict'; | ||
const Joi = require('joi'); | ||
const Joi = require('@hapi/joi'); | ||
const MongoModels = require('mongo-models'); | ||
@@ -4,0 +5,0 @@ |
'use strict'; | ||
const Code = require('code'); | ||
const Hapi = require('hapi'); | ||
const Lab = require('lab'); | ||
const Code = require('@hapi/code'); | ||
const Hapi = require('@hapi/hapi'); | ||
const Lab = require('@hapi/lab'); | ||
const Path = require('path'); | ||
@@ -13,3 +14,3 @@ const Proxyquire = require('proxyquire'); | ||
connection: { | ||
uri: 'mongodb://localhost:27017/', | ||
uri: process.env.MONGODB_URI || 'mongodb://localhost:27017/', | ||
db: 'hapi-mongo-models-test' | ||
@@ -16,0 +17,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
Environment variable access
Supply chain riskPackage accesses environment variables, which may be a sign of credential stuffing or data theft.
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
10824
2
+ Added@hapi/hoek@7.x.x
+ Added@hapi/address@4.1.0(transitive)
+ Added@hapi/formula@2.0.0(transitive)
+ Added@hapi/hoek@7.2.19.3.0(transitive)
+ Added@hapi/joi@17.1.1(transitive)
+ Added@hapi/pinpoint@2.0.1(transitive)
+ Added@hapi/topo@5.1.0(transitive)
+ Addedmongo-models@3.0.4(transitive)
- Removedhoek@5.x.x
- Removedhoek@5.0.46.1.3(transitive)
- Removedisemail@3.2.0(transitive)
- Removedjoi@13.7.0(transitive)
- Removedmongo-models@2.0.3(transitive)
- Removedpunycode@2.3.1(transitive)
- Removedtopo@3.0.3(transitive)