@koishijs/plugin-database-mongo 4.3.1 → 4.3.2
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/lib/index.d.ts +1 -1
- package/lib/index.js +1 -13
- package/lib/index.js.map +2 -2
- package/package.json +2 -2
package/lib/index.d.ts
CHANGED
package/lib/index.js
CHANGED
|
@@ -4,10 +4,6 @@ var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
|
|
|
4
4
|
var __getOwnPropNames = Object.getOwnPropertyNames;
|
|
5
5
|
var __getProtoOf = Object.getPrototypeOf;
|
|
6
6
|
var __hasOwnProp = Object.prototype.hasOwnProperty;
|
|
7
|
-
var __export = (target, all) => {
|
|
8
|
-
for (var name in all)
|
|
9
|
-
__defProp(target, name, { get: all[name], enumerable: true });
|
|
10
|
-
};
|
|
11
7
|
var __copyProps = (to, from, except, desc) => {
|
|
12
8
|
if (from && typeof from === "object" || typeof from === "function") {
|
|
13
9
|
for (let key of __getOwnPropNames(from))
|
|
@@ -24,17 +20,11 @@ var __toESM = (mod, isNodeMode, target) => (target = mod != null ? __create(__ge
|
|
|
24
20
|
isNodeMode || !mod || !mod.__esModule ? __defProp(target, "default", { value: mod, enumerable: true }) : target,
|
|
25
21
|
mod
|
|
26
22
|
));
|
|
27
|
-
var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod);
|
|
28
23
|
|
|
29
24
|
// koishi/plugins/database/mongo/src/index.ts
|
|
30
|
-
var src_exports = {};
|
|
31
|
-
__export(src_exports, {
|
|
32
|
-
default: () => src_default
|
|
33
|
-
});
|
|
34
|
-
module.exports = __toCommonJS(src_exports);
|
|
35
25
|
var import_koishi = require("koishi");
|
|
36
26
|
var import_driver_mongo = __toESM(require("@minatojs/driver-mongo"));
|
|
37
|
-
|
|
27
|
+
module.exports = (0, import_koishi.defineDriver)(import_driver_mongo.default, import_koishi.Schema.object({
|
|
38
28
|
protocol: import_koishi.Schema.string().description("要使用的协议名。").default("mongodb"),
|
|
39
29
|
host: import_koishi.Schema.string().description("要连接到的主机名。").default("localhost"),
|
|
40
30
|
port: import_koishi.Schema.natural().max(65535).description("要连接到的端口号。"),
|
|
@@ -42,6 +32,4 @@ var src_default = (0, import_koishi.defineDriver)(import_driver_mongo.default, i
|
|
|
42
32
|
password: import_koishi.Schema.string().description("要使用的密码。").role("secret"),
|
|
43
33
|
database: import_koishi.Schema.string().description("要访问的数据库名。").default("koishi")
|
|
44
34
|
}));
|
|
45
|
-
// Annotate the CommonJS export names for ESM import in node:
|
|
46
|
-
0 && (module.exports = {});
|
|
47
35
|
//# sourceMappingURL=index.js.map
|
package/lib/index.js.map
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"version": 3,
|
|
3
3
|
"sources": ["../src/index.ts"],
|
|
4
|
-
"sourcesContent": ["import { defineDriver, Schema } from 'koishi'\nimport MongoDriver from '@minatojs/driver-mongo'\n\nexport
|
|
5
|
-
"mappings": "
|
|
4
|
+
"sourcesContent": ["import { defineDriver, Schema } from 'koishi'\nimport MongoDriver from '@minatojs/driver-mongo'\n\nexport = defineDriver(MongoDriver, Schema.object({\n protocol: Schema.string().description('要使用的协议名。').default('mongodb'),\n host: Schema.string().description('要连接到的主机名。').default('localhost'),\n port: Schema.natural().max(65535).description('要连接到的端口号。'),\n username: Schema.string().description('要使用的用户名。'),\n password: Schema.string().description('要使用的密码。').role('secret'),\n database: Schema.string().description('要访问的数据库名。').default('koishi'),\n}))\n"],
|
|
5
|
+
"mappings": ";;;;;;;;;;;;;;;;;;;;;;;;AAAA,oBAAqC;AACrC,0BAAwB;AAExB,qBAAS,4BAAa,oBAAAA,SAAa,qBAAO,OAAO;AAAA,EAC/C,UAAU,qBAAO,OAAO,EAAE,YAAY,UAAU,EAAE,QAAQ,SAAS;AAAA,EACnE,MAAM,qBAAO,OAAO,EAAE,YAAY,WAAW,EAAE,QAAQ,WAAW;AAAA,EAClE,MAAM,qBAAO,QAAQ,EAAE,IAAI,KAAK,EAAE,YAAY,WAAW;AAAA,EACzD,UAAU,qBAAO,OAAO,EAAE,YAAY,UAAU;AAAA,EAChD,UAAU,qBAAO,OAAO,EAAE,YAAY,SAAS,EAAE,KAAK,QAAQ;AAAA,EAC9D,UAAU,qBAAO,OAAO,EAAE,YAAY,WAAW,EAAE,QAAQ,QAAQ;AACrE,CAAC,CAAC;",
|
|
6
6
|
"names": ["MongoDriver"]
|
|
7
7
|
}
|
package/package.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@koishijs/plugin-database-mongo",
|
|
3
3
|
"description": "MongoDB support for Koishi",
|
|
4
|
-
"version": "4.3.
|
|
4
|
+
"version": "4.3.2",
|
|
5
5
|
"main": "lib/index.js",
|
|
6
6
|
"typings": "lib/index.d.ts",
|
|
7
7
|
"files": [
|
|
@@ -45,6 +45,6 @@
|
|
|
45
45
|
"koishi": "^4.11.6"
|
|
46
46
|
},
|
|
47
47
|
"dependencies": {
|
|
48
|
-
"@minatojs/driver-mongo": "^2.3.
|
|
48
|
+
"@minatojs/driver-mongo": "^2.3.2"
|
|
49
49
|
}
|
|
50
50
|
}
|