Socket
Socket
Sign inDemoInstall

@andrewscwei/mongodb-odm

Package Overview
Dependencies
Maintainers
1
Versions
83
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@andrewscwei/mongodb-odm - npm Package Compare versions

Comparing version 0.48.0 to 0.49.0

7

build/index.js

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

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