@koishijs/plugin-database-mongo 4.2.2 → 4.3.1
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.js +4 -0
- package/lib/index.js.map +1 -1
- package/package.json +3 -3
package/lib/index.js
CHANGED
|
@@ -17,6 +17,10 @@ var __copyProps = (to, from, except, desc) => {
|
|
|
17
17
|
return to;
|
|
18
18
|
};
|
|
19
19
|
var __toESM = (mod, isNodeMode, target) => (target = mod != null ? __create(__getProtoOf(mod)) : {}, __copyProps(
|
|
20
|
+
// If the importer is in node compatibility mode or this is not an ESM
|
|
21
|
+
// file that has been converted to a CommonJS file using a Babel-
|
|
22
|
+
// compatible transform (i.e. "__esModule" has not been set), then set
|
|
23
|
+
// "default" to the CommonJS "module.exports" for node compatibility.
|
|
20
24
|
isNodeMode || !mod || !mod.__esModule ? __defProp(target, "default", { value: mod, enumerable: true }) : target,
|
|
21
25
|
mod
|
|
22
26
|
));
|
package/lib/index.js.map
CHANGED
|
@@ -2,6 +2,6 @@
|
|
|
2
2
|
"version": 3,
|
|
3
3
|
"sources": ["../src/index.ts"],
|
|
4
4
|
"sourcesContent": ["import { defineDriver, Schema } from 'koishi'\nimport MongoDriver from '@minatojs/driver-mongo'\n\nexport default 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": "
|
|
5
|
+
"mappings": ";;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA,oBAAqC;AACrC,0BAAwB;AAExB,IAAO,kBAAQ,4BAAa,oBAAAA,SAAa,qBAAO,OAAO;AAAA,EACrD,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.
|
|
4
|
+
"version": "4.3.1",
|
|
5
5
|
"main": "lib/index.js",
|
|
6
6
|
"typings": "lib/index.d.ts",
|
|
7
7
|
"files": [
|
|
@@ -42,9 +42,9 @@
|
|
|
42
42
|
}
|
|
43
43
|
},
|
|
44
44
|
"peerDependencies": {
|
|
45
|
-
"koishi": "^4.11.
|
|
45
|
+
"koishi": "^4.11.6"
|
|
46
46
|
},
|
|
47
47
|
"dependencies": {
|
|
48
|
-
"@minatojs/driver-mongo": "^2.1
|
|
48
|
+
"@minatojs/driver-mongo": "^2.3.1"
|
|
49
49
|
}
|
|
50
50
|
}
|