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

mongot

Package Overview
Dependencies
Maintainers
1
Versions
43
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

mongot - npm Package Compare versions

Comparing version 1.4.6 to 1.4.7

2

package.json
{
"name": "mongot",
"version": "1.4.6",
"version": "1.4.7",
"description": "MongoT is a modern ODM library for MongoDb.",

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

@@ -29,2 +29,3 @@ import { SchemaMutate } from './metadata/mutation';

toJSON(): any;
clone(): this;
extract(): any;

@@ -31,0 +32,0 @@ static factory<T extends SchemaMetadata>(document?: Object): T;

@@ -244,2 +244,10 @@ "use strict";

}
clone() {
const cloned = this.toObject();
if (cloned._id) {
delete cloned._id;
}
const constructor = this.constructor;
return new constructor().__mutate(cloned);
}
extract() {

@@ -246,0 +254,0 @@ const properties = [];

Sorry, the diff of this file is not supported yet

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