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

type-mongodb

Package Overview
Dependencies
Maintainers
1
Versions
36
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

type-mongodb - npm Package Compare versions

Comparing version 2.0.0-beta.7 to 2.0.0-beta.8

4

lib/repository/Repository.d.ts

@@ -30,3 +30,3 @@ import { BulkWriteOptions, Collection, Db, DeleteOptions, DeleteResult, Filter, FindCursor, FindOneAndDeleteOptions, FindOneAndReplaceOptions, FindOneAndUpdateOptions, FindOptions, InsertManyResult, InsertOneOptions, InsertOneResult, ModifyResult, OptionalId, UpdateOptions, UpdateQuery, UpdateResult } from 'mongodb';

findOne(filter: Filter<T | any>, options?: WithInternalOptions<FindOptions>): Promise<T | null>;
findOneOrFail(filter: Filter<T | any>, options?: WithInternalOptions<FindOptions>): Promise<T | null>;
findOneOrFail(filter: Filter<T | any>, options?: WithInternalOptions<FindOptions>): Promise<T>;
create(props: PartialDeep<T>, options?: InsertOneOptions): Promise<T>;

@@ -49,3 +49,3 @@ create(props: PartialDeep<T>[], options?: BulkWriteOptions): Promise<T[]>;

findByIdAndDelete(id: any, options?: WithInternalOptions<FindOneAndDeleteOptions>): Promise<T | null>;
findByIdAndDeleteOrFail(id: any, options?: WithInternalOptions<FindOneAndDeleteOptions>): Promise<T | null>;
findByIdAndDeleteOrFail(id: any, options?: WithInternalOptions<FindOneAndDeleteOptions>): Promise<T>;
updateOne(filter: Filter<T | any>, update: UpdateQuery<T>, options?: WithInternalOptions<UpdateOptions>): Promise<UpdateResult>;

@@ -52,0 +52,0 @@ updateById(id: any, update: UpdateQuery<T>, options?: WithInternalOptions<UpdateOptions>): Promise<UpdateResult>;

{
"name": "type-mongodb",
"version": "2.0.0-beta.7",
"version": "2.0.0-beta.8",
"description": "A simple decorator based MongoDB ODM.",

@@ -5,0 +5,0 @@ "repository": "https://github.com/j/type-mongodb",

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