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

@mayajs/mongo

Package Overview
Dependencies
Maintainers
1
Versions
13
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@mayajs/mongo - npm Package Compare versions

Comparing version 0.7.1 to 0.7.2

3

interfaces.d.ts
/// <reference types="mongoose-paginate" />
import { PaginateModel, ConnectionOptions, Schema, Mongoose, Document } from "mongoose";
import { PaginateModel, Schema, Mongoose, Document } from "mongoose";
export declare type AnyDocument = Document<any, any, any>;

@@ -18,3 +18,2 @@ export declare type ModelPaginate<T extends AnyDocument> = PaginateModel<T>;

connectionString: string;
options?: ConnectionOptions;
schemas?: SchemaObject[];

@@ -21,0 +20,0 @@ }

@@ -41,3 +41,3 @@ "use strict";

try {
const instance = yield db.connect(config.connectionString, config.options);
const instance = yield db.connect(config.connectionString);
this.databases[name] = instance;

@@ -54,5 +54,4 @@ console.log(`\x1b[32m[mayajs] ${name} is connected!\x1b[0m`);

const { name } = value, rest = __rest(value, ["name"]);
const options = Object.assign({ useNewUrlParser: true, useCreateIndex: true, useUnifiedTopology: true, useFindAndModify: true }, rest.options);
this.databases[name] = mongoose_1.default;
this.config[name] = Object.assign(Object.assign({}, rest), { options });
this.config[name] = rest;
}

@@ -59,0 +58,0 @@ database(name) {

{
"name": "@mayajs/mongo",
"version": "0.7.1",
"version": "0.7.2",
"description": "MayaJS Mongo decorators and modules",

@@ -5,0 +5,0 @@ "main": "index.js",

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