zumito-framework 1.2.8 → 1.2.9
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.
|
@@ -72,10 +72,10 @@ export declare class ZumitoFramework {
|
|
|
72
72
|
*/
|
|
73
73
|
models: Array<DatabaseModel>;
|
|
74
74
|
/**
|
|
75
|
-
* The
|
|
76
|
-
* @type {
|
|
75
|
+
* The zumito-db database schema instance.
|
|
76
|
+
* @type {zumitoDb.Schema}
|
|
77
77
|
* @private
|
|
78
|
-
* @see {@link https://www.npmjs.com/package/
|
|
78
|
+
* @see {@link https://www.npmjs.com/package/zumito-db}
|
|
79
79
|
*/
|
|
80
80
|
database: any;
|
|
81
81
|
/**
|
package/dist/ZumitoFramework.js
CHANGED
|
@@ -6,7 +6,7 @@ import { EventEmitter } from 'events';
|
|
|
6
6
|
import { StatusManager } from './services/StatusManager.js';
|
|
7
7
|
import { TranslationManager } from './services/TranslationManager.js';
|
|
8
8
|
import { betterLogging } from 'better-logging';
|
|
9
|
-
import
|
|
9
|
+
import zumitoDb from 'zumito-db';
|
|
10
10
|
import cookieParser from 'cookie-parser';
|
|
11
11
|
import cors from 'cors';
|
|
12
12
|
import express from 'express';
|
|
@@ -87,10 +87,10 @@ export class ZumitoFramework {
|
|
|
87
87
|
*/
|
|
88
88
|
models;
|
|
89
89
|
/**
|
|
90
|
-
* The
|
|
91
|
-
* @type {
|
|
90
|
+
* The zumito-db database schema instance.
|
|
91
|
+
* @type {zumitoDb.Schema}
|
|
92
92
|
* @private
|
|
93
|
-
* @see {@link https://www.npmjs.com/package/
|
|
93
|
+
* @see {@link https://www.npmjs.com/package/zumito-db}
|
|
94
94
|
*/
|
|
95
95
|
database;
|
|
96
96
|
/**
|
|
@@ -177,7 +177,7 @@ export class ZumitoFramework {
|
|
|
177
177
|
fs.mkdirSync(folder);
|
|
178
178
|
}
|
|
179
179
|
}
|
|
180
|
-
this.database = new
|
|
180
|
+
this.database = new zumitoDb.Schema(this.settings?.database?.type || 'tingodb', this.settings?.database || {});
|
|
181
181
|
await new Promise((resolve, reject) => {
|
|
182
182
|
this.database.on('connected', resolve);
|
|
183
183
|
this.database.on('error', reject);
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "zumito-framework",
|
|
3
|
-
"version": "1.2.
|
|
3
|
+
"version": "1.2.9",
|
|
4
4
|
"description": "Discord.js bot framework",
|
|
5
5
|
"main": "dist/index.js",
|
|
6
6
|
"types": "dist/index.d.ts",
|
|
@@ -24,7 +24,6 @@
|
|
|
24
24
|
"autocorrect": "^1.2.0",
|
|
25
25
|
"better-logging": "^5.0.0",
|
|
26
26
|
"boxen": "^7.0.0",
|
|
27
|
-
"canario": "^1.0.1",
|
|
28
27
|
"chalk": "^4.1.2",
|
|
29
28
|
"chokidar": "^3.5.3",
|
|
30
29
|
"cookie-parser": "^1.4.6",
|
|
@@ -34,7 +33,8 @@
|
|
|
34
33
|
"express": "^4.18.1",
|
|
35
34
|
"leven": "^4.0.0",
|
|
36
35
|
"mongoose": "^6.6.5",
|
|
37
|
-
"tingodb": "^0.6.1"
|
|
36
|
+
"tingodb": "^0.6.1",
|
|
37
|
+
"zumito-db": "^1.0.0"
|
|
38
38
|
},
|
|
39
39
|
"devDependencies": {
|
|
40
40
|
"@types/node": "^18.7.16",
|