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

xpress-mongo

Package Overview
Dependencies
Maintainers
1
Versions
149
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

xpress-mongo - npm Package Compare versions

Comparing version 0.0.57 to 0.0.58

9

js/src/SchemaBuilder.js

@@ -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

10

package.json
{
"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

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