Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

@atomly/mongoose-sdk

Package Overview
Dependencies
Maintainers
2
Versions
12
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@atomly/mongoose-sdk - npm Package Compare versions

Comparing version 1.0.4-alpha.1 to 1.0.5-alpha.0

dist/DBSchema.d.ts

6

dist/DBCollection.d.ts
import { Document, Connection, Schema, Model } from 'mongoose';
export interface DBCollection<T extends Document> {
export interface DBCollection<T> {
/**

@@ -19,7 +19,7 @@ * The model name.

*/
model: Model<T>;
model: Model<T & Document>;
/**
* Sets up the DB model within the context of the connection.
*/
setupModel(connection: Connection): Model<T>;
setup(connection: Connection): Model<T & Document>;
}
import { Connection, ConnectionOptions } from 'mongoose';
export interface DBContext<T> {
import { DBCollection } from './DBCollection';
export interface DBContext<T extends Record<string, DBCollection<unknown>>> {
connection: Connection | null;

@@ -10,3 +11,3 @@ collections: T;

*/
setup(connection: Connection): Promise<void>;
setup(connection: Connection): void;
/**

@@ -13,0 +14,0 @@ * Opens the connection to the database.

export * from './DBCollection';
export * from './DBContext';
export * from './DefaultDBCollection';
export * from './DefaultDBContext';
export * from './DBSchema';
export * from './MongooseDBCollection';
export * from './MongooseDBContext';
export * from './MongooseDBSchema';

@@ -15,4 +15,6 @@ "use strict";

__exportStar(require("./DBContext"), exports);
__exportStar(require("./DefaultDBCollection"), exports);
__exportStar(require("./DefaultDBContext"), exports);
__exportStar(require("./DBSchema"), exports);
__exportStar(require("./MongooseDBCollection"), exports);
__exportStar(require("./MongooseDBContext"), exports);
__exportStar(require("./MongooseDBSchema"), exports);
//# sourceMappingURL=index.js.map
{
"name": "@atomly/mongoose-sdk",
"version": "1.0.4-alpha.1",
"version": "1.0.5-alpha.0",
"description": "> TODO: description",

@@ -26,3 +26,3 @@ "author": "Robert Molina <rmolinamir@gmail.com>",

"peerDependencies": {
"mongoose": "^5.9.15"
"mongoose": "^5.11.17"
},

@@ -33,3 +33,3 @@ "devDependencies": {

"@types/jest-dev-server": "^4.2.0",
"@types/mongoose": "^5.7.21",
"@types/mongoose": "^5.10.3",
"@types/uuid": "^7.0.0",

@@ -44,7 +44,7 @@ "@typescript-eslint/eslint-plugin": "^2.17.0",

"jest": "^25.1.0",
"mongoose": "^5.9.15",
"mongoose": "^5.11.17",
"ts-jest": "^25.2.0",
"typescript": "^3.9.3"
},
"gitHead": "a2229c903675ada292019fa601f82fce82ed541b"
"gitHead": "5ae198676b41a08c0be1a757a570683412770ad7"
}

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