@forestadmin/datasource-mongoose 1.0.0-beta.14 → 1.0.0-beta.15
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.
- package/CHANGELOG.md +7 -0
- package/dist/index.d.ts +1 -1
- package/dist/index.js +2 -2
- package/package.json +1 -1
package/CHANGELOG.md
CHANGED
|
@@ -1,3 +1,10 @@
|
|
|
1
|
+
# @forestadmin/datasource-mongoose [1.0.0-beta.15](https://github.com/ForestAdmin/agent-nodejs/compare/@forestadmin/datasource-mongoose@1.0.0-beta.14...@forestadmin/datasource-mongoose@1.0.0-beta.15) (2022-08-24)
|
|
2
|
+
|
|
3
|
+
|
|
4
|
+
### Bug Fixes
|
|
5
|
+
|
|
6
|
+
* **mongoose:** options are not required when creating the connector ([#391](https://github.com/ForestAdmin/agent-nodejs/issues/391)) ([0cdd295](https://github.com/ForestAdmin/agent-nodejs/commit/0cdd295d8fce2f851622fd9537893c3b1b12a31e))
|
|
7
|
+
|
|
1
8
|
# @forestadmin/datasource-mongoose [1.0.0-beta.14](https://github.com/ForestAdmin/agent-nodejs/compare/@forestadmin/datasource-mongoose@1.0.0-beta.13...@forestadmin/datasource-mongoose@1.0.0-beta.14) (2022-08-23)
|
|
2
9
|
|
|
3
10
|
|
package/dist/index.d.ts
CHANGED
|
@@ -3,5 +3,5 @@ import { DataSourceFactory } from '@forestadmin/datasource-toolkit';
|
|
|
3
3
|
import { MongooseOptions } from './types';
|
|
4
4
|
export { default as MongooseCollection } from './collection';
|
|
5
5
|
export { default as MongooseDatasource } from './datasource';
|
|
6
|
-
export declare function createMongooseDataSource(connection: Connection, options
|
|
6
|
+
export declare function createMongooseDataSource(connection: Connection, options?: MongooseOptions): DataSourceFactory;
|
|
7
7
|
//# sourceMappingURL=index.d.ts.map
|
package/dist/index.js
CHANGED
|
@@ -9,8 +9,8 @@ var collection_1 = require("./collection");
|
|
|
9
9
|
Object.defineProperty(exports, "MongooseCollection", { enumerable: true, get: function () { return __importDefault(collection_1).default; } });
|
|
10
10
|
var datasource_2 = require("./datasource");
|
|
11
11
|
Object.defineProperty(exports, "MongooseDatasource", { enumerable: true, get: function () { return __importDefault(datasource_2).default; } });
|
|
12
|
-
function createMongooseDataSource(connection, options) {
|
|
12
|
+
function createMongooseDataSource(connection, options = {}) {
|
|
13
13
|
return async () => new datasource_1.default(connection, options);
|
|
14
14
|
}
|
|
15
15
|
exports.createMongooseDataSource = createMongooseDataSource;
|
|
16
|
-
//# sourceMappingURL=data:application/json;base64,
|
|
16
|
+
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiaW5kZXguanMiLCJzb3VyY2VSb290IjoiIiwic291cmNlcyI6WyIuLi9zcmMvaW5kZXgudHMiXSwibmFtZXMiOltdLCJtYXBwaW5ncyI6Ijs7Ozs7O0FBSUEsOERBQThDO0FBRTlDLDJDQUE2RDtBQUFwRCxpSUFBQSxPQUFPLE9BQXNCO0FBQ3RDLDJDQUE2RDtBQUFwRCxpSUFBQSxPQUFPLE9BQXNCO0FBRXRDLFNBQWdCLHdCQUF3QixDQUN0QyxVQUFzQixFQUN0QixVQUEyQixFQUFFO0lBRTdCLE9BQU8sS0FBSyxJQUFJLEVBQUUsQ0FBQyxJQUFJLG9CQUFrQixDQUFDLFVBQVUsRUFBRSxPQUFPLENBQUMsQ0FBQztBQUNqRSxDQUFDO0FBTEQsNERBS0MifQ==
|