mongo-collections
Advanced tools
Comparing version 1.0.0 to 1.0.1
@@ -1,4 +0,4 @@ | ||
import MongoDatabaseClient from './MongoDatabaseClient'; | ||
import { MongoDatabaseClient } from './MongoDatabaseClient'; | ||
import { Collection } from 'mongodb'; | ||
export default class DatabaseCollection { | ||
export declare class DatabaseCollection { | ||
private _client; | ||
@@ -5,0 +5,0 @@ readonly name: string; |
@@ -17,3 +17,3 @@ "use strict"; | ||
} | ||
exports.default = DatabaseCollection; | ||
exports.DatabaseCollection = DatabaseCollection; | ||
//# sourceMappingURL=DatabaseCollection.js.map |
import { Db, MongoClient } from 'mongodb'; | ||
export default class MongoDatabaseClient { | ||
export declare class MongoDatabaseClient { | ||
private static _instance; | ||
@@ -4,0 +4,0 @@ private readonly _endpoint; |
@@ -29,2 +29,3 @@ "use strict"; | ||
} | ||
// @ts-ignore | ||
connectIfNotConnected() { | ||
@@ -50,3 +51,3 @@ return tslib_1.__awaiter(this, void 0, void 0, function* () { | ||
} | ||
exports.default = MongoDatabaseClient; | ||
exports.MongoDatabaseClient = MongoDatabaseClient; | ||
//# sourceMappingURL=MongoDatabaseClient.js.map |
@@ -1,2 +0,2 @@ | ||
import MongoDatabaseClient from './MongoDatabaseClient'; | ||
import {MongoDatabaseClient} from './MongoDatabaseClient'; | ||
import {Collection} from 'mongodb'; | ||
@@ -3,0 +3,0 @@ |
{ | ||
"name": "mongo-collections", | ||
"version": "1.0.0", | ||
"version": "1.0.1", | ||
"author": "Uldis Jansons <uj@mobilly.lv>", | ||
@@ -5,0 +5,0 @@ "repository": { |
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
47708
200