mongoplusplus 1.0.6 → 1.0.7

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (2) hide show
  1. package/index.d.ts +5 -5
  2. package/package.json +3 -2
package/index.d.ts CHANGED
@@ -1,4 +1,4 @@
1
- import * as mongoose from 'mongoose';
1
+ import mongoose = require('mongoose');
2
2
 
3
3
  /**
4
4
  * Mongoplus manages multiple mongoose connections and builds distributed models.
@@ -220,7 +220,7 @@ declare class MongoModel {
220
220
  */
221
221
  runLargeComputations(computationPairs: any[]): Promise<{ results: any[]; totalTime: number }>;
222
222
  }
223
-
224
- export default Mongoplus;
225
- export { MongoModel };
226
-
223
+ declare namespace Mongoplus {
224
+ export { MongoModel };
225
+ }
226
+ export = Mongoplus;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "mongoplusplus",
3
- "version": "1.0.6",
3
+ "version": "1.0.7",
4
4
  "description": "load balancing of read and write operations across multiple MongoDB servers ",
5
5
  "main": "mongoplus.js",
6
6
  "types": "index.d.ts",
@@ -55,7 +55,8 @@
55
55
  "exports": {
56
56
  ".": {
57
57
  "require": "./mongoplus.js",
58
- "default": "./mongoplus.js"
58
+ "default": "./mongoplus.js",
59
+ "types": "./index.d.ts"
59
60
  },
60
61
  "./package.json": "./package.json"
61
62
  }