@andrewscwei/mongodb-odm
Advanced tools
Comparing version 0.48.0 to 0.49.0
@@ -182,5 +182,6 @@ "use strict"; | ||
throw new Error('You must register models using the configureDb() function'); | ||
if (!is_1.default.nullOrUndefined(collections[modelOrCollectionName])) { | ||
return collections[modelOrCollectionName]; | ||
} | ||
// TODO: Indexes are lost somehow, comment this out temporarily. | ||
// if (!is.nullOrUndefined(collections[modelOrCollectionName])) { | ||
// return collections[modelOrCollectionName]; | ||
// } | ||
let ModelClass; | ||
@@ -187,0 +188,0 @@ for (const key in models) { |
{ | ||
"name": "@andrewscwei/mongodb-odm", | ||
"version": "0.48.0", | ||
"version": "0.49.0", | ||
"description": "ODM for MongoDB", | ||
@@ -10,3 +10,3 @@ "main": "build/index.js", | ||
"test:ts": "NODE_ENV=test DEBUG=mongodb-odm* mocha --require ts-node/register --timeout 10000 --reporter spec --full-trace --colors --recursive --bail --exit \"src/**/*.spec.ts\"", | ||
"test": "NODE_ENV=test DEBUG=mongodb-odm* mocha --require dotenv/config --timeout 10000 --reporter spec --full-trace --colors --recursive --bail --exit $([ -z \"$npm_config_path\" ] && echo build/**/*.spec.js || echo $npm_config_path)", | ||
"test": "NODE_ENV=test DEBUG=mongodb-odm* mocha --require dotenv/config --timeout 10000 --reporter spec --full-trace --colors --recursive --exit $([ -z \"$npm_config_path\" ] && echo build/**/*.spec.js || echo $npm_config_path)", | ||
"db": "docker run --name node-mongodb-odm-db -d --rm -p 27017:27017 -v ${PWD}/.data/db:/data/db mongo:4.0.4", | ||
@@ -13,0 +13,0 @@ "db:stop": "docker stop node-mongodb-odm-db", |
Sorry, the diff of this file is not supported yet
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
211022
3522