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.28 to 0.0.29

16

index.ts
import {MongoClient, MongoClientOptions} from "mongodb";
import {is, XMongoSchemaBuilder} from './src/XMongoSchemaBuilder';
import * as Projectors from './fn/projection';
import {omitIdAndPick, omitIdAnd, omitKeys, pickKeys} from './fn/projection';
import XMongoDataType = require('./src/XMongoDataType');

@@ -29,8 +29,18 @@ import XMongoClient = require('./src/XMongoClient');

export {
// Export is schemaBuilder
is,
// Export Client
Client,
Projectors,
// Export Model Class and Helpers
XMongoModel,
XMongoDataType,
XMongoSchemaBuilder
XMongoSchemaBuilder,
// Export Projectors for quicker requirement
omitKeys,
pickKeys,
omitIdAnd,
omitIdAndPick,
};

14

js/index.js
"use strict";
var __importStar = (this && this.__importStar) || function (mod) {
if (mod && mod.__esModule) return mod;
var result = {};
if (mod != null) for (var k in mod) if (Object.hasOwnProperty.call(mod, k)) result[k] = mod[k];
result["default"] = mod;
return result;
};
Object.defineProperty(exports, "__esModule", { value: true });

@@ -13,4 +6,7 @@ const mongodb_1 = require("mongodb");

exports.is = XMongoSchemaBuilder_1.is;
const Projectors = __importStar(require("./fn/projection"));
exports.Projectors = Projectors;
const projection_1 = require("./fn/projection");
exports.omitIdAndPick = projection_1.omitIdAndPick;
exports.omitIdAnd = projection_1.omitIdAnd;
exports.omitKeys = projection_1.omitKeys;
exports.pickKeys = projection_1.pickKeys;
const XMongoDataType = require("./src/XMongoDataType");

@@ -17,0 +13,0 @@ exports.XMongoDataType = XMongoDataType;

{
"name": "xpress-mongo",
"version": "0.0.28",
"version": "0.0.29",
"description": "Light Weight ODM for mongoDb",

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

import { MongoClient, MongoClientOptions } from "mongodb";
import { is, XMongoSchemaBuilder } from './src/XMongoSchemaBuilder';
import * as Projectors from './fn/projection';
import { omitIdAndPick, omitIdAnd, omitKeys, pickKeys } from './fn/projection';
import XMongoDataType = require('./src/XMongoDataType');

@@ -15,2 +15,2 @@ import XMongoClient = require('./src/XMongoClient');

declare function Client(url: string | MongoClient, options?: MongoClientOptions): XMongoClient;
export { is, Client, Projectors, XMongoModel, XMongoDataType, XMongoSchemaBuilder };
export { is, Client, XMongoModel, XMongoDataType, XMongoSchemaBuilder, omitKeys, pickKeys, omitIdAnd, omitIdAndPick, };
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