xpress-mongo
Advanced tools
Comparing version 0.0.57 to 0.0.58
@@ -26,2 +26,11 @@ "use strict"; | ||
/** | ||
* Accept any value passed through | ||
* @param def | ||
* @constructor | ||
*/ | ||
Any: (def) => { | ||
return new XMongoDataType('Any', def) | ||
.validator(() => true); | ||
}, | ||
/** | ||
* Array | ||
@@ -28,0 +37,0 @@ * @param def |
{ | ||
"name": "xpress-mongo", | ||
"version": "0.0.57", | ||
"version": "0.0.58", | ||
"description": "Light Weight ODM for mongoDb", | ||
@@ -28,8 +28,8 @@ "main": "js/index.js", | ||
"dependencies": { | ||
"@types/mongodb": "^3.5.32", | ||
"@types/node": "^14.14.6", | ||
"@types/mongodb": "^3.5.33", | ||
"@types/node": "^14.14.7", | ||
"@types/uuid": "^8.3.0", | ||
"axios": "^0.21.0", | ||
"deep-object-diff": "^1.1.0", | ||
"mongodb": "^3.6.2", | ||
"mongodb": "^3.6.3", | ||
"object-collection": "^1.0.30", | ||
@@ -39,3 +39,3 @@ "uuid": "^8.3.1" | ||
"devDependencies": { | ||
"@types/lodash": "^4.14.163", | ||
"@types/lodash": "^4.14.165", | ||
"chance": "^1.1.7", | ||
@@ -42,0 +42,0 @@ "typescript": "^4.0.5" |
@@ -39,2 +39,3 @@ import XMongoDataType = require("./XMongoDataType"); | ||
export type XMongoSchemaBuilder = { | ||
Any(def?: any | (() => any)): XMongoDataType | ||
Array(def?: () => Array<any>): XMongoDataType | ||
@@ -41,0 +42,0 @@ Boolean(def?: boolean | (() => boolean)): XMongoDataType |
@@ -25,3 +25,14 @@ import XMongoDataType = require("./XMongoDataType"); | ||
const is: XMongoSchemaBuilder = { | ||
/** | ||
* Accept any value passed through | ||
* @param def | ||
* @constructor | ||
*/ | ||
Any: (def: any): XMongoDataType => { | ||
return new XMongoDataType('Any', def) | ||
.validator(() => true) | ||
}, | ||
/** | ||
* Array | ||
@@ -28,0 +39,0 @@ * @param def |
@@ -33,2 +33,3 @@ import XMongoDataType = require("./XMongoDataType"); | ||
export declare type XMongoSchemaBuilder = { | ||
Any(def?: any | (() => any)): XMongoDataType; | ||
Array(def?: () => Array<any>): XMongoDataType; | ||
@@ -35,0 +36,0 @@ Boolean(def?: boolean | (() => boolean)): XMongoDataType; |
@@ -1,3 +0,2 @@ | ||
/// <reference types="lodash" /> | ||
declare const _default: import("lodash").LoDashStatic; | ||
declare const _default; | ||
/** | ||
@@ -4,0 +3,0 @@ * Get Lodash |
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
147316
4429
Updated@types/mongodb@^3.5.33
Updated@types/node@^14.14.7
Updatedmongodb@^3.6.3