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

@coolgk/mongo

Package Overview
Dependencies
Maintainers
1
Versions
16
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@coolgk/mongo - npm Package Compare versions

Comparing version 1.0.12 to 1.0.13

24

mongo.d.ts
/*!
* @package @coolgk/mongo
* @version 1.0.12
* @version 1.0.13
* @link https://coolgk.github.io/mongodb-orm.html

@@ -16,3 +16,3 @@ * @license MIT

export declare enum GeneratedField {
DATE_MODIFIED = "_dateModified",
DATE_MODIFIED = "_dateModified"
}

@@ -26,3 +26,3 @@ export declare enum DataType {

ENUM = "enum",
OBJECTID = "objectId",
OBJECTID = "objectId"
}

@@ -107,12 +107,12 @@ export interface IDataSchema {

attachObjectIdData(data: Cursor | IDocument[], joins: IJoin[]): Promise<Cursor | IDocument[]>;
private _attachDataToReferencePointer(data, joins, dataSchema, model?);
private _findObjectIdInData(data, dataSchema, fieldPathsInJoin, objectIdInData, referencePointer?);
private _getJoinQuery(model, query?, joins?);
private _findObjectIdFieldModel(fieldPath, model);
private _getJsonSchema(schema);
private _transform(data, dataSchema, insert?, referencePointer?);
private _setTransformedValue(newValue, referencePointer?);
private _getUpdateQuery(data, dataSchema, parent?, queries?);
private _setUpdateQuery(queries, parent, action, data);
private _attachDataToReferencePointer;
private _findObjectIdInData;
private _getJoinQuery;
private _findObjectIdFieldModel;
private _getJsonSchema;
private _transform;
private _setTransformedValue;
private _getUpdateQuery;
private _setUpdateQuery;
}
export default Mongo;
/*!
* @package @coolgk/mongo
* @version 1.0.12
* @version 1.0.13
* @link https://coolgk.github.io/mongodb-orm.html

@@ -5,0 +5,0 @@ * @license MIT

@@ -1,1 +0,1 @@

{"name":"@coolgk/mongo","version":"1.0.12","description":"A javascript / typescript MongoDB modelling library which enables joins in collections, simplifies CRUD operations for sub / nested documents and implements schema based data validation","main":"./mongo.js","types":"./mongo.d.ts","dependencies":{"@coolgk/array":"^2.0.4","mongodb":"^3.0.4"},"author":"Daniel Gong <daniel.k.gong@gmail.com>","license":"MIT","bugs":{"url":"https://github.com/coolgk/node-mongo/issues"},"homepage":"https://coolgk.github.io/mongodb-orm.html","keywords":["mongo","MongoDB","orm","odm","relational","data validation","join"]}
{"name":"@coolgk/mongo","version":"1.0.13","description":"A javascript / typescript MongoDB modelling library which enables joins in collections, simplifies CRUD operations for sub / nested documents and implements schema based data validation","main":"./mongo.js","types":"./mongo.d.ts","dependencies":{"@coolgk/array":"^2.0.4","mongodb":"^3.0.10"},"author":"Daniel Gong <daniel.k.gong@gmail.com>","license":"MIT","bugs":{"url":"https://github.com/coolgk/node-mongo/issues"},"homepage":"https://coolgk.github.io/mongodb-orm.html","keywords":["mongo","MongoDB","orm","odm","relational","data validation","join"]}
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