xpress-mongo
Advanced tools
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, | ||
}; |
"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, }; |
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
126685
3436