Comparing version 1.4.0 to 1.4.1
{ | ||
"name": "mongot", | ||
"version": "1.4.0", | ||
"version": "1.4.1", | ||
"dependencies": { | ||
@@ -5,0 +5,0 @@ "@types/mongodb": { |
{ | ||
"name": "mongot", | ||
"version": "1.4.0", | ||
"version": "1.4.1", | ||
"description": "MongoT is a modern ODM library for MongoDb.", | ||
@@ -5,0 +5,0 @@ "main": "src/index.js", |
@@ -14,6 +14,7 @@ import * as MongoDb from 'mongodb'; | ||
export { Repository }; | ||
export { Connection }; | ||
export { Collection }; | ||
export * from './connection'; | ||
export * from './collection'; | ||
export * from './collection/helpers'; | ||
export * from './document'; | ||
export * from './schema'; | ||
export * from './cursor'; |
@@ -7,5 +7,2 @@ "use strict"; | ||
const connection_1 = require("./connection"); | ||
exports.Connection = connection_1.Connection; | ||
const collection_1 = require("./collection"); | ||
exports.Collection = collection_1.Collection; | ||
class Repository { | ||
@@ -19,6 +16,9 @@ constructor(uri, options) { | ||
destroy() { | ||
return this.state.then(connection => connection.disconnect(), error => error); | ||
return this.state.then((connection) => connection.disconnect(), error => error); | ||
} | ||
} | ||
exports.Repository = Repository; | ||
__export(require("./connection")); | ||
__export(require("./collection")); | ||
__export(require("./collection/helpers")); | ||
__export(require("./document")); | ||
@@ -25,0 +25,0 @@ __export(require("./schema")); |
Sorry, the diff of this file is not supported yet
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
144065
2227