@koishijs/plugin-adapter-discord 3.5.3 → 3.5.5

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 CHANGED
@@ -1,3 +1,3 @@
1
- import DiscordBot from '@satorijs/adapter-discord';
1
+ import { DiscordBot } from '@satorijs/adapter-discord';
2
2
  export default DiscordBot;
3
3
  export * from '@satorijs/adapter-discord';
package/lib/index.js CHANGED
@@ -1,8 +1,6 @@
1
- var __create = Object.create;
2
1
  var __defProp = Object.defineProperty;
3
2
  var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
4
3
  var __getOwnPropNames = Object.getOwnPropertyNames;
5
- var __getProtoOf = Object.getPrototypeOf;
6
4
  var __hasOwnProp = Object.prototype.hasOwnProperty;
7
5
  var __export = (target, all) => {
8
6
  for (var name in all)
@@ -17,14 +15,6 @@ var __copyProps = (to, from, except, desc) => {
17
15
  return to;
18
16
  };
19
17
  var __reExport = (target, mod, secondTarget) => (__copyProps(target, mod, "default"), secondTarget && __copyProps(secondTarget, mod, "default"));
20
- var __toESM = (mod, isNodeMode, target) => (target = mod != null ? __create(__getProtoOf(mod)) : {}, __copyProps(
21
- // If the importer is in node compatibility mode or this is not an ESM
22
- // file that has been converted to a CommonJS file using a Babel-
23
- // compatible transform (i.e. "__esModule" has not been set), then set
24
- // "default" to the CommonJS "module.exports" for node compatibility.
25
- isNodeMode || !mod || !mod.__esModule ? __defProp(target, "default", { value: mod, enumerable: true }) : target,
26
- mod
27
- ));
28
18
  var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod);
29
19
 
30
20
  // koishi/plugins/adapter/discord/src/index.ts
@@ -33,9 +23,9 @@ __export(src_exports, {
33
23
  default: () => src_default
34
24
  });
35
25
  module.exports = __toCommonJS(src_exports);
36
- var import_adapter_discord = __toESM(require("@satorijs/adapter-discord"));
26
+ var import_adapter_discord = require("@satorijs/adapter-discord");
37
27
  __reExport(src_exports, require("@satorijs/adapter-discord"), module.exports);
38
- var src_default = import_adapter_discord.default;
28
+ var src_default = import_adapter_discord.DiscordBot;
39
29
  // Annotate the CommonJS export names for ESM import in node:
40
30
  0 && (module.exports = {});
41
31
  //# 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 DiscordBot from '@satorijs/adapter-discord'\n\nexport default DiscordBot\nexport * from '@satorijs/adapter-discord'\n"],
5
- "mappings": ";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA,6BAAuB;AAGvB,wBAAc,sCAHd;AAEA,IAAO,cAAQ,uBAAAA;",
6
- "names": ["DiscordBot"]
4
+ "sourcesContent": ["import { DiscordBot } from '@satorijs/adapter-discord'\n\nexport default DiscordBot\nexport * from '@satorijs/adapter-discord'\n"],
5
+ "mappings": ";;;;;;;;;;;;;;;;;;;;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA,6BAA2B;AAG3B,wBAAc,sCAHd;AAEA,IAAO,cAAQ;",
6
+ "names": []
7
7
  }
package/lib/index.mjs ADDED
@@ -0,0 +1,8 @@
1
+ // koishi/plugins/adapter/discord/src/index.ts
2
+ import { DiscordBot } from "@satorijs/adapter-discord";
3
+ export * from "@satorijs/adapter-discord";
4
+ var src_default = DiscordBot;
5
+ export {
6
+ src_default as default
7
+ };
8
+ //# sourceMappingURL=index.mjs.map
@@ -0,0 +1,7 @@
1
+ {
2
+ "version": 3,
3
+ "sources": ["../src/index.ts"],
4
+ "sourcesContent": ["import { DiscordBot } from '@satorijs/adapter-discord'\n\nexport default DiscordBot\nexport * from '@satorijs/adapter-discord'\n"],
5
+ "mappings": ";AAAA,SAAS,kBAAkB;AAG3B,cAAc;AADd,IAAO,cAAQ;",
6
+ "names": []
7
+ }
package/package.json CHANGED
@@ -1,8 +1,9 @@
1
1
  {
2
2
  "name": "@koishijs/plugin-adapter-discord",
3
3
  "description": "Discord Adapter for Koishi",
4
- "version": "3.5.3",
4
+ "version": "3.5.5",
5
5
  "main": "lib/index.js",
6
+ "module": "lib/index.mjs",
6
7
  "typings": "lib/index.d.ts",
7
8
  "files": [
8
9
  "lib"
@@ -40,6 +41,6 @@
40
41
  "koishi": "^4.11.7"
41
42
  },
42
43
  "dependencies": {
43
- "@satorijs/adapter-discord": "^3.5.3"
44
+ "@satorijs/adapter-discord": "^3.5.5"
44
45
  }
45
46
  }