node-karin 0.12.0 → 0.12.2-5.pr.206.07c7722

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.
Files changed (244) hide show
  1. package/CHANGELOG.md +1029 -0
  2. package/LICENSE +21 -674
  3. package/README.md +15 -42
  4. package/default/comment/config.json +34 -0
  5. package/default/comment/friendDirect.json +10 -0
  6. package/default/comment/groupGuild.json +11 -0
  7. package/default/comment/server.json +17 -0
  8. package/default/config/config.yaml +78 -0
  9. package/default/config/friendDirect.yaml +31 -0
  10. package/default/config/groupGuild.yaml +70 -0
  11. package/default/config/pm2.yaml +21 -0
  12. package/default/config/redis.yaml +19 -0
  13. package/default/config/server.yaml +47 -0
  14. package/default/view/group.yaml +73 -0
  15. package/lib/index.d.ts +9651 -8
  16. package/lib/index.js +38 -8
  17. package/package.json +127 -124
  18. package/packages/module/art-template.cjs +11 -0
  19. package/packages/module/art-template.d.ts +1 -0
  20. package/packages/module/axios.cjs +22 -0
  21. package/packages/module/axios.d.ts +2 -0
  22. package/packages/module/chalk.cjs +22 -0
  23. package/packages/module/chalk.d.ts +2 -0
  24. package/packages/module/chokidar.cjs +22 -0
  25. package/packages/module/chokidar.d.ts +2 -0
  26. package/packages/module/commander.cjs +35 -0
  27. package/packages/module/commander.d.ts +3 -0
  28. package/packages/module/commander.js +3 -0
  29. package/packages/module/express.cjs +112 -0
  30. package/packages/module/express.d.ts +1 -0
  31. package/packages/module/express.js +1 -0
  32. package/packages/module/level.cjs +22 -0
  33. package/packages/module/level.d.ts +2 -0
  34. package/packages/module/lodash.cjs +11 -0
  35. package/packages/module/lodash.d.ts +1 -0
  36. package/packages/module/log4js.cjs +22 -0
  37. package/packages/module/log4js.d.ts +2 -0
  38. package/packages/module/moment.cjs +11 -0
  39. package/packages/module/moment.d.ts +1 -0
  40. package/packages/module/node-schedule.cjs +22 -0
  41. package/packages/module/node-schedule.d.ts +2 -0
  42. package/packages/module/redis.cjs +22 -0
  43. package/packages/module/redis.d.ts +2 -0
  44. package/packages/module/ws.cjs +28 -0
  45. package/packages/module/ws.d.ts +1 -0
  46. package/packages/module/ws.js +1 -0
  47. package/packages/module/yaml.cjs +22 -0
  48. package/packages/module/yaml.d.ts +2 -0
  49. package/config/defSet/App.yaml +0 -42
  50. package/config/defSet/config.yaml +0 -65
  51. package/config/defSet/group.yaml +0 -56
  52. package/config/defSet/pm2.yaml +0 -21
  53. package/config/defSet/redis.yaml +0 -18
  54. package/config/defSet/server.yaml +0 -42
  55. package/config/view/group.yaml +0 -92
  56. package/lib/adapter/index.d.ts +0 -2
  57. package/lib/adapter/index.js +0 -2
  58. package/lib/adapter/input/index.d.ts +0 -78
  59. package/lib/adapter/input/index.js +0 -205
  60. package/lib/adapter/onebot/11/convert.d.ts +0 -12
  61. package/lib/adapter/onebot/11/convert.js +0 -167
  62. package/lib/adapter/onebot/11/event.d.ts +0 -25
  63. package/lib/adapter/onebot/11/event.js +0 -442
  64. package/lib/adapter/onebot/11/index.d.ts +0 -508
  65. package/lib/adapter/onebot/11/index.js +0 -1047
  66. package/lib/cli/index.d.ts +0 -92
  67. package/lib/cli/index.js +0 -307
  68. package/lib/cli/init.d.ts +0 -2
  69. package/lib/cli/init.js +0 -22
  70. package/lib/cli/karin.d.ts +0 -2
  71. package/lib/cli/karin.js +0 -16
  72. package/lib/cli/pkg.d.ts +0 -4
  73. package/lib/cli/pkg.js +0 -14
  74. package/lib/cli/start.d.ts +0 -1
  75. package/lib/cli/start.js +0 -8
  76. package/lib/core/index.d.ts +0 -10
  77. package/lib/core/index.js +0 -10
  78. package/lib/core/init/config.d.ts +0 -43
  79. package/lib/core/init/config.js +0 -201
  80. package/lib/core/init/dir.d.ts +0 -4
  81. package/lib/core/init/dir.js +0 -7
  82. package/lib/core/init/init.d.ts +0 -1
  83. package/lib/core/init/init.js +0 -47
  84. package/lib/core/karin/karin.d.ts +0 -198
  85. package/lib/core/karin/karin.js +0 -226
  86. package/lib/core/listener/listener.d.ts +0 -145
  87. package/lib/core/listener/listener.js +0 -235
  88. package/lib/core/plugin/base.d.ts +0 -156
  89. package/lib/core/plugin/base.js +0 -131
  90. package/lib/core/plugin/loader.d.ts +0 -141
  91. package/lib/core/plugin/loader.js +0 -618
  92. package/lib/core/process/process.d.ts +0 -18
  93. package/lib/core/process/process.js +0 -96
  94. package/lib/core/server/server.d.ts +0 -25
  95. package/lib/core/server/server.js +0 -295
  96. package/lib/db/index.d.ts +0 -2
  97. package/lib/db/index.js +0 -2
  98. package/lib/db/level/level.d.ts +0 -19
  99. package/lib/db/level/level.js +0 -36
  100. package/lib/db/redis/redis.d.ts +0 -2
  101. package/lib/db/redis/redis.js +0 -135
  102. package/lib/db/redis/redis_level.d.ts +0 -112
  103. package/lib/db/redis/redis_level.js +0 -281
  104. package/lib/event/handler/base.d.ts +0 -42
  105. package/lib/event/handler/base.js +0 -200
  106. package/lib/event/handler/message.d.ts +0 -29
  107. package/lib/event/handler/message.js +0 -307
  108. package/lib/event/handler/notice.d.ts +0 -18
  109. package/lib/event/handler/notice.js +0 -214
  110. package/lib/event/handler/request.d.ts +0 -18
  111. package/lib/event/handler/request.js +0 -115
  112. package/lib/event/handler/review.d.ts +0 -55
  113. package/lib/event/handler/review.js +0 -386
  114. package/lib/event/index.d.ts +0 -5
  115. package/lib/event/index.js +0 -5
  116. package/lib/modules/art-template.d.ts +0 -1
  117. package/lib/modules/axios.d.ts +0 -2
  118. package/lib/modules/chalk.d.ts +0 -2
  119. package/lib/modules/chokidar.d.ts +0 -2
  120. package/lib/modules/commander.d.ts +0 -2
  121. package/lib/modules/commander.js +0 -2
  122. package/lib/modules/express.d.ts +0 -3
  123. package/lib/modules/express.js +0 -3
  124. package/lib/modules/level.d.ts +0 -2
  125. package/lib/modules/lodash.d.ts +0 -1
  126. package/lib/modules/log4js.d.ts +0 -2
  127. package/lib/modules/moment.d.ts +0 -1
  128. package/lib/modules/node-schedule.d.ts +0 -2
  129. package/lib/modules/redis.d.ts +0 -2
  130. package/lib/modules/ws.d.ts +0 -3
  131. package/lib/modules/ws.js +0 -3
  132. package/lib/modules/yaml.d.ts +0 -2
  133. package/lib/modules.d.ts +0 -15
  134. package/lib/modules.js +0 -15
  135. package/lib/render/app.d.ts +0 -56
  136. package/lib/render/app.js +0 -120
  137. package/lib/render/base.d.ts +0 -30
  138. package/lib/render/base.js +0 -69
  139. package/lib/render/client.d.ts +0 -41
  140. package/lib/render/client.js +0 -238
  141. package/lib/render/http.d.ts +0 -19
  142. package/lib/render/http.js +0 -50
  143. package/lib/render/index.d.ts +0 -6
  144. package/lib/render/index.js +0 -6
  145. package/lib/render/server.d.ts +0 -25
  146. package/lib/render/server.js +0 -101
  147. package/lib/render/wormhole.d.ts +0 -1
  148. package/lib/render/wormhole.js +0 -156
  149. package/lib/types/adapter/api.d.ts +0 -399
  150. package/lib/types/adapter/api.js +0 -1
  151. package/lib/types/adapter/base.d.ts +0 -560
  152. package/lib/types/adapter/base.js +0 -1
  153. package/lib/types/config/config.d.ts +0 -379
  154. package/lib/types/config/config.js +0 -1
  155. package/lib/types/element/element.d.ts +0 -565
  156. package/lib/types/element/element.js +0 -1
  157. package/lib/types/element/qqbot.d.ts +0 -123
  158. package/lib/types/element/qqbot.js +0 -1
  159. package/lib/types/event/contact.d.ts +0 -28
  160. package/lib/types/event/contact.js +0 -1
  161. package/lib/types/event/event.d.ts +0 -305
  162. package/lib/types/event/event.js +0 -1
  163. package/lib/types/event/index.d.ts +0 -12
  164. package/lib/types/event/index.js +0 -7
  165. package/lib/types/event/message.d.ts +0 -109
  166. package/lib/types/event/message.js +0 -74
  167. package/lib/types/event/notice.d.ts +0 -513
  168. package/lib/types/event/notice.js +0 -52
  169. package/lib/types/event/reply.d.ts +0 -50
  170. package/lib/types/event/reply.js +0 -1
  171. package/lib/types/event/request.d.ts +0 -126
  172. package/lib/types/event/request.js +0 -52
  173. package/lib/types/event/sender.d.ts +0 -44
  174. package/lib/types/event/sender.js +0 -1
  175. package/lib/types/index.d.ts +0 -13
  176. package/lib/types/index.js +0 -13
  177. package/lib/types/logger/logger.d.ts +0 -110
  178. package/lib/types/logger/logger.js +0 -1
  179. package/lib/types/onebot11/api.d.ts +0 -53
  180. package/lib/types/onebot11/api.js +0 -1
  181. package/lib/types/onebot11/event.d.ts +0 -619
  182. package/lib/types/onebot11/event.js +0 -2
  183. package/lib/types/onebot11/index.d.ts +0 -6
  184. package/lib/types/onebot11/index.js +0 -6
  185. package/lib/types/onebot11/params.d.ts +0 -609
  186. package/lib/types/onebot11/params.js +0 -1
  187. package/lib/types/onebot11/response.d.ts +0 -516
  188. package/lib/types/onebot11/response.js +0 -1
  189. package/lib/types/onebot11/segment.d.ts +0 -269
  190. package/lib/types/onebot11/segment.js +0 -1
  191. package/lib/types/onebot11/sender.d.ts +0 -59
  192. package/lib/types/onebot11/sender.js +0 -1
  193. package/lib/types/plugin/app.d.ts +0 -71
  194. package/lib/types/plugin/app.js +0 -1
  195. package/lib/types/plugin/plugin.d.ts +0 -473
  196. package/lib/types/plugin/plugin.js +0 -1
  197. package/lib/types/render/render.d.ts +0 -118
  198. package/lib/types/render/render.js +0 -1
  199. package/lib/types/type/global.d.ts +0 -25
  200. package/lib/types/type/global.js +0 -1
  201. package/lib/utils/common/common.d.ts +0 -236
  202. package/lib/utils/common/common.js +0 -708
  203. package/lib/utils/config/config.d.ts +0 -193
  204. package/lib/utils/config/config.js +0 -328
  205. package/lib/utils/config/updateVersion.d.ts +0 -33
  206. package/lib/utils/config/updateVersion.js +0 -145
  207. package/lib/utils/config/yamlEditor.d.ts +0 -101
  208. package/lib/utils/config/yamlEditor.js +0 -330
  209. package/lib/utils/core/handler.d.ts +0 -18
  210. package/lib/utils/core/handler.js +0 -46
  211. package/lib/utils/core/logger.d.ts +0 -3
  212. package/lib/utils/core/logger.js +0 -105
  213. package/lib/utils/core/segment.d.ts +0 -279
  214. package/lib/utils/core/segment.js +0 -451
  215. package/lib/utils/index.d.ts +0 -13
  216. package/lib/utils/index.js +0 -13
  217. package/lib/utils/tools/button.d.ts +0 -2
  218. package/lib/utils/tools/button.js +0 -27
  219. package/lib/utils/tools/exec.d.ts +0 -20
  220. package/lib/utils/tools/exec.js +0 -54
  221. package/lib/utils/tools/ffmpeg.d.ts +0 -12
  222. package/lib/utils/tools/ffmpeg.js +0 -25
  223. package/lib/utils/tools/restart.d.ts +0 -15
  224. package/lib/utils/tools/restart.js +0 -39
  225. package/lib/utils/tools/stop.d.ts +0 -7
  226. package/lib/utils/tools/stop.js +0 -13
  227. package/lib/utils/tools/update.d.ts +0 -67
  228. package/lib/utils/tools/update.js +0 -151
  229. /package/{config → default}/view/App.yaml +0 -0
  230. /package/{config → default}/view/config.yaml +0 -0
  231. /package/{config → default}/view/pm2.yaml +0 -0
  232. /package/{config → default}/view/redis.yaml +0 -0
  233. /package/{config → default}/view/server.yaml +0 -0
  234. /package/{lib/modules → packages/module}/art-template.js +0 -0
  235. /package/{lib/modules → packages/module}/axios.js +0 -0
  236. /package/{lib/modules → packages/module}/chalk.js +0 -0
  237. /package/{lib/modules → packages/module}/chokidar.js +0 -0
  238. /package/{lib/modules → packages/module}/level.js +0 -0
  239. /package/{lib/modules → packages/module}/lodash.js +0 -0
  240. /package/{lib/modules → packages/module}/log4js.js +0 -0
  241. /package/{lib/modules → packages/module}/moment.js +0 -0
  242. /package/{lib/modules → packages/module}/node-schedule.js +0 -0
  243. /package/{lib/modules → packages/module}/redis.js +0 -0
  244. /package/{lib/modules → packages/module}/yaml.js +0 -0
package/package.json CHANGED
@@ -1,8 +1,19 @@
1
1
  {
2
2
  "name": "node-karin",
3
- "version": "0.12.0",
3
+ "version": "0.12.25.pr.206.07c7722",
4
4
  "private": false,
5
- "description": "基于 Kritor 进行开发的nodejs机器人框架",
5
+ "description": "Lightweight, efficient, concise, and stable robot framework.",
6
+ "keywords": [
7
+ "node",
8
+ "nodejs",
9
+ "karin",
10
+ "bot",
11
+ "robot",
12
+ "icqq",
13
+ "onebot",
14
+ "kritor",
15
+ "node-karin"
16
+ ],
6
17
  "homepage": "https://github.com/KarinJS/Karin",
7
18
  "bugs": {
8
19
  "url": "https://github.com/KarinJS/Karin/issues"
@@ -11,119 +22,17 @@
11
22
  "type": "git",
12
23
  "url": "git+https://github.com/KarinJS/Karin.git"
13
24
  },
14
- "license": "GPL-3.0-only",
15
- "author": "Karin",
16
- "type": "module",
17
- "exports": {
18
- ".": {
19
- "import": "./lib/index.js",
20
- "require": "./lib/index.js",
21
- "types": "./lib/index.d.ts"
22
- },
23
- "./modules.js": {
24
- "import": "./lib/modules.js",
25
- "require": "./lib/modules.js",
26
- "types": "./lib/modules.d.ts"
27
- },
28
- "./art-template": {
29
- "import": "./lib/modules/art-template.js",
30
- "require": "./lib/modules/art-template.js",
31
- "types": "./lib/modules/art-template.d.ts"
32
- },
33
- "./axios": {
34
- "import": "./lib/modules/axios.js",
35
- "require": "./lib/modules/axios.js",
36
- "types": "./lib/modules/axios.d.ts"
37
- },
38
- "./chalk": {
39
- "import": "./lib/modules/chalk.js",
40
- "require": "./lib/modules/chalk.js",
41
- "types": "./lib/modules/chalk.d.ts"
42
- },
43
- "./chokidar": {
44
- "import": "./lib/modules/chokidar.js",
45
- "require": "./lib/modules/chokidar.js",
46
- "types": "./lib/modules/chokidar.d.ts"
47
- },
48
- "./commander": {
49
- "import": "./lib/modules/commander.js",
50
- "require": "./lib/modules/commander.js",
51
- "types": "./lib/modules/commander.d.ts"
52
- },
53
- "./express": {
54
- "import": "./lib/modules/express.js",
55
- "require": "./lib/modules/express.js",
56
- "types": "./lib/modules/express.d.ts"
57
- },
58
- "./grpc-js": {
59
- "import": "./lib/modules/grpc-js.js",
60
- "require": "./lib/modules/grpc-js.js",
61
- "types": "./lib/modules/grpc-js.d.ts"
62
- },
63
- "./kritor-proto": {
64
- "import": "./lib/modules/kritor-proto.js",
65
- "require": "./lib/modules/kritor-proto.js",
66
- "types": "./lib/modules/kritor-proto.d.ts"
67
- },
68
- "./level": {
69
- "import": "./lib/modules/level.js",
70
- "require": "./lib/modules/level.js",
71
- "types": "./lib/modules/level.d.ts"
72
- },
73
- "./lodash": {
74
- "import": "./lib/modules/lodash.js",
75
- "require": "./lib/modules/lodash.js",
76
- "types": "./lib/modules/lodash.d.ts"
77
- },
78
- "./log4js": {
79
- "import": "./lib/modules/log4js.js",
80
- "require": "./lib/modules/log4js.js",
81
- "types": "./lib/modules/log4js.d.ts"
82
- },
83
- "./moment": {
84
- "import": "./lib/modules/moment.js",
85
- "require": "./lib/modules/moment.js",
86
- "types": "./lib/modules/moment.d.ts"
87
- },
88
- "./node-schedule": {
89
- "import": "./lib/modules/node-schedule.js",
90
- "require": "./lib/modules/node-schedule.js",
91
- "types": "./lib/modules/node-schedule.d.ts"
92
- },
93
- "./proto-loader": {
94
- "import": "./lib/modules/proto-loader.js",
95
- "require": "./lib/modules/proto-loader.js",
96
- "types": "./lib/modules/proto-loader.d.ts"
97
- },
98
- "./redis": {
99
- "import": "./lib/modules/redis.js",
100
- "require": "./lib/modules/redis.js",
101
- "types": "./lib/modules/redis.d.ts"
102
- },
103
- "./ws": {
104
- "import": "./lib/modules/ws.js",
105
- "require": "./lib/modules/ws.js",
106
- "types": "./lib/modules/ws.d.ts"
107
- },
108
- "./yaml": {
109
- "import": "./lib/modules/yaml.js",
110
- "require": "./lib/modules/yaml.js",
111
- "types": "./lib/modules/yaml.d.ts"
112
- }
113
- },
25
+ "license": "MIT",
26
+ "author": "shijin",
114
27
  "main": "./lib/index.js",
115
28
  "types": "./lib/index.d.ts",
116
- "bin": {
117
- "init": "lib/cli/init.js",
118
- "karin": "lib/cli/karin.js"
119
- },
29
+ "type": "module",
120
30
  "files": [
121
31
  "/lib/**/*.js",
122
32
  "/lib/**/*.d.ts",
123
- "/config/defSet/*.yaml",
124
- "/config/view/*.yaml",
125
- "modules.js",
126
- "modules.d.ts",
33
+ "/default/**",
34
+ "/packages/module",
35
+ "CHANGELOG.md",
127
36
  "LICENSE",
128
37
  "package.json",
129
38
  "README.md"
@@ -132,29 +41,37 @@
132
41
  "plugins/**"
133
42
  ],
134
43
  "scripts": {
135
- ".": "node lib/cli/start.js .",
136
- "build": "tsc --project tsconfig.json && tsc-alias -p tsconfig.json && npm run fix:all",
137
- "build:npm": "tsc --project tsconfig.json && tsc-alias -p tsconfig.json",
138
- "dev": "node lib/cli/start.js dev",
139
- "fix": "eslint lib/**/*.js --fix",
140
- "fix:all": "eslint lib/**/*.js --fix && eslint lib/**/*.d.ts --fix",
44
+ ".": "tsx src/index.ts",
45
+ "alias": "tsc-alias -p tsconfig.json",
46
+ "app": "tsx src/index.ts",
47
+ "app:w": "tsx watch --include \"./src/**/*.ts\" index.ts",
48
+ "app:watch": "tsx watch --include \"./src/**/*.ts\" index.ts",
49
+ "build": "tsup --config tsup.config.ts",
50
+ "build:dev": "pnpm build:types && node packages/cli/build.mjs",
51
+ "build:module": "tsup --config tsup.modules.ts && node packages/cli/module.mjs",
52
+ "build:prod": "tsup --config tsup.config.ts && node packages/cli/build.prod.mjs",
53
+ "build:types": "tsup --config tsup.types.ts && node packages/cli/types.mjs",
54
+ "debug": "tsx src/index.ts --debug",
55
+ "debug:w": "tsx watch --include \"./src/**/*.ts\" --debug",
56
+ "debug:watch": "tsx watch --include \"./src/**/*.ts\" --debug",
57
+ "dev": "node --import tsx --trace-deprecation src/index.ts",
58
+ "pr": "node packages/cli/pr.mjs all",
141
59
  "pub": "npm publish --access public",
142
- "sort": "npx sort-package-json && sort-json tsconfig.json",
143
- "start": "node lib/cli/start.js start"
60
+ "pub-beta": "npm publish --tag beta",
61
+ "sort": "npx sort-package-json && sort-json tsconfig.json"
144
62
  },
145
63
  "dependencies": {
146
- "@types/express": "^4.17.21",
147
- "@types/lodash": "^4.17.7",
64
+ "@types/express": "^5.0.0",
65
+ "@types/lodash": "^4.17.10",
148
66
  "@types/node": "^22.5.0",
149
67
  "@types/node-schedule": "^2.1.7",
150
68
  "@types/ws": "^8.5.12",
151
69
  "art-template": "4.13.2",
152
- "axios": "1.7.5",
70
+ "axios": "1.7.9",
153
71
  "chalk": "5.3.0",
154
72
  "chokidar": "3.6.0",
155
73
  "commander": "^12.1.0",
156
- "express": "4.19.2",
157
- "jimp": "^0.22.12",
74
+ "express": "4.21.2",
158
75
  "level": "8.0.1",
159
76
  "lodash": "4.17.21",
160
77
  "log4js": "6.9.1",
@@ -170,5 +87,91 @@
170
87
  "publishConfig": {
171
88
  "access": "public",
172
89
  "registry": "https://registry.npmjs.org"
90
+ },
91
+ "exports": {
92
+ ".": {
93
+ "import": "./lib/index.js",
94
+ "types": "./lib/index.d.ts"
95
+ },
96
+ "./template": {
97
+ "import": "./packages/module/art-template.js",
98
+ "types": "./packages/module/art-template.d.ts",
99
+ "require": "./packages/module/art-template.cjs"
100
+ },
101
+ "./art-template": {
102
+ "import": "./packages/module/art-template.js",
103
+ "types": "./packages/module/art-template.d.ts",
104
+ "require": "./packages/module/art-template.cjs"
105
+ },
106
+ "./axios": {
107
+ "import": "./packages/module/axios.js",
108
+ "types": "./packages/module/axios.d.ts",
109
+ "require": "./packages/module/axios.cjs"
110
+ },
111
+ "./chalk": {
112
+ "import": "./packages/module/chalk.js",
113
+ "types": "./packages/module/chalk.d.ts",
114
+ "require": "./packages/module/chalk.cjs"
115
+ },
116
+ "./chokidar": {
117
+ "import": "./packages/module/chokidar.js",
118
+ "types": "./packages/module/chokidar.d.ts",
119
+ "require": "./packages/module/chokidar.cjs"
120
+ },
121
+ "./commander": {
122
+ "import": "./packages/module/commander.js",
123
+ "types": "./packages/module/commander.d.ts",
124
+ "require": "./packages/module/commander.cjs"
125
+ },
126
+ "./express": {
127
+ "import": "./packages/module/express.js",
128
+ "types": "./packages/module/express.d.ts",
129
+ "require": "./packages/module/express.cjs"
130
+ },
131
+ "./level": {
132
+ "import": "./packages/module/level.js",
133
+ "types": "./packages/module/level.d.ts",
134
+ "require": "./packages/module/level.cjs"
135
+ },
136
+ "./lodash": {
137
+ "import": "./packages/module/lodash.js",
138
+ "types": "./packages/module/lodash.d.ts",
139
+ "require": "./packages/module/lodash.cjs"
140
+ },
141
+ "./log4js": {
142
+ "import": "./packages/module/log4js.js",
143
+ "types": "./packages/module/log4js.d.ts",
144
+ "require": "./packages/module/log4js.cjs"
145
+ },
146
+ "./moment": {
147
+ "import": "./packages/module/moment.js",
148
+ "types": "./packages/module/moment.d.ts",
149
+ "require": "./packages/module/moment.cjs"
150
+ },
151
+ "./schedule": {
152
+ "import": "./packages/module/node-schedule.js",
153
+ "types": "./packages/module/node-schedule.d.ts",
154
+ "require": "./packages/module/node-schedule.cjs"
155
+ },
156
+ "./node-schedule": {
157
+ "import": "./packages/module/node-schedule.js",
158
+ "types": "./packages/module/node-schedule.d.ts",
159
+ "require": "./packages/module/node-schedule.cjs"
160
+ },
161
+ "./redis": {
162
+ "import": "./packages/module/redis.js",
163
+ "types": "./packages/module/redis.d.ts",
164
+ "require": "./packages/module/redis.cjs"
165
+ },
166
+ "./ws": {
167
+ "import": "./packages/module/ws.js",
168
+ "types": "./packages/module/ws.d.ts",
169
+ "require": "./packages/module/ws.cjs"
170
+ },
171
+ "./yaml": {
172
+ "import": "./packages/module/yaml.js",
173
+ "types": "./packages/module/yaml.d.ts",
174
+ "require": "./packages/module/yaml.cjs"
175
+ }
173
176
  }
174
- }
177
+ }
@@ -0,0 +1,11 @@
1
+ 'use strict';
2
+
3
+ var artTemplate = require('art-template');
4
+
5
+ function _interopDefault (e) { return e && e.__esModule ? e : { default: e }; }
6
+
7
+ var artTemplate__default = /*#__PURE__*/_interopDefault(artTemplate);
8
+
9
+
10
+
11
+ module.exports = artTemplate__default.default;
@@ -0,0 +1 @@
1
+ export { default } from 'art-template';
@@ -0,0 +1,22 @@
1
+ 'use strict';
2
+
3
+ Object.defineProperty(exports, '__esModule', { value: true });
4
+
5
+ var axios = require('axios');
6
+
7
+ function _interopDefault (e) { return e && e.__esModule ? e : { default: e }; }
8
+
9
+ var axios__default = /*#__PURE__*/_interopDefault(axios);
10
+
11
+
12
+
13
+ Object.defineProperty(exports, "default", {
14
+ enumerable: true,
15
+ get: function () { return axios__default.default; }
16
+ });
17
+ Object.keys(axios).forEach(function (k) {
18
+ if (k !== 'default' && !Object.prototype.hasOwnProperty.call(exports, k)) Object.defineProperty(exports, k, {
19
+ enumerable: true,
20
+ get: function () { return axios[k]; }
21
+ });
22
+ });
@@ -0,0 +1,2 @@
1
+ export * from 'axios';
2
+ export { default } from 'axios';
@@ -0,0 +1,22 @@
1
+ 'use strict';
2
+
3
+ Object.defineProperty(exports, '__esModule', { value: true });
4
+
5
+ var chalk = require('chalk');
6
+
7
+ function _interopDefault (e) { return e && e.__esModule ? e : { default: e }; }
8
+
9
+ var chalk__default = /*#__PURE__*/_interopDefault(chalk);
10
+
11
+
12
+
13
+ Object.defineProperty(exports, "default", {
14
+ enumerable: true,
15
+ get: function () { return chalk__default.default; }
16
+ });
17
+ Object.keys(chalk).forEach(function (k) {
18
+ if (k !== 'default' && !Object.prototype.hasOwnProperty.call(exports, k)) Object.defineProperty(exports, k, {
19
+ enumerable: true,
20
+ get: function () { return chalk[k]; }
21
+ });
22
+ });
@@ -0,0 +1,2 @@
1
+ export * from 'chalk';
2
+ export { default } from 'chalk';
@@ -0,0 +1,22 @@
1
+ 'use strict';
2
+
3
+ Object.defineProperty(exports, '__esModule', { value: true });
4
+
5
+ var chokidar = require('chokidar');
6
+
7
+ function _interopDefault (e) { return e && e.__esModule ? e : { default: e }; }
8
+
9
+ var chokidar__default = /*#__PURE__*/_interopDefault(chokidar);
10
+
11
+
12
+
13
+ Object.defineProperty(exports, "default", {
14
+ enumerable: true,
15
+ get: function () { return chokidar__default.default; }
16
+ });
17
+ Object.keys(chokidar).forEach(function (k) {
18
+ if (k !== 'default' && !Object.prototype.hasOwnProperty.call(exports, k)) Object.defineProperty(exports, k, {
19
+ enumerable: true,
20
+ get: function () { return chokidar[k]; }
21
+ });
22
+ });
@@ -0,0 +1,2 @@
1
+ export * from 'chokidar';
2
+ export { default } from 'chokidar';
@@ -0,0 +1,35 @@
1
+ 'use strict';
2
+
3
+ Object.defineProperty(exports, '__esModule', { value: true });
4
+
5
+ var commander = require('commander');
6
+
7
+ function _interopNamespace(e) {
8
+ if (e && e.__esModule) return e;
9
+ var n = Object.create(null);
10
+ if (e) {
11
+ Object.keys(e).forEach(function (k) {
12
+ if (k !== 'default') {
13
+ var d = Object.getOwnPropertyDescriptor(e, k);
14
+ Object.defineProperty(n, k, d.get ? d : {
15
+ enumerable: true,
16
+ get: function () { return e[k]; }
17
+ });
18
+ }
19
+ });
20
+ }
21
+ n.default = e;
22
+ return Object.freeze(n);
23
+ }
24
+
25
+ var commander__namespace = /*#__PURE__*/_interopNamespace(commander);
26
+
27
+
28
+
29
+ exports.default = commander__namespace;
30
+ Object.keys(commander).forEach(function (k) {
31
+ if (k !== 'default' && !Object.prototype.hasOwnProperty.call(exports, k)) Object.defineProperty(exports, k, {
32
+ enumerable: true,
33
+ get: function () { return commander[k]; }
34
+ });
35
+ });
@@ -0,0 +1,3 @@
1
+ export * from 'commander';
2
+
3
+ export { commander as default };
@@ -0,0 +1,3 @@
1
+ export * from 'commander';
2
+ import * as commander from 'commander';
3
+ export { commander as default };
@@ -0,0 +1,112 @@
1
+ 'use strict';
2
+
3
+ Object.defineProperty(exports, '__esModule', { value: true });
4
+
5
+ var express = require('express');
6
+
7
+ function _interopDefault (e) { return e && e.__esModule ? e : { default: e }; }
8
+
9
+ var express__default = /*#__PURE__*/_interopDefault(express);
10
+
11
+
12
+
13
+ Object.defineProperty(exports, "Application", {
14
+ enumerable: true,
15
+ get: function () { return express.Application; }
16
+ });
17
+ Object.defineProperty(exports, "CookieOptions", {
18
+ enumerable: true,
19
+ get: function () { return express.CookieOptions; }
20
+ });
21
+ Object.defineProperty(exports, "Errback", {
22
+ enumerable: true,
23
+ get: function () { return express.Errback; }
24
+ });
25
+ Object.defineProperty(exports, "ErrorRequestHandler", {
26
+ enumerable: true,
27
+ get: function () { return express.ErrorRequestHandler; }
28
+ });
29
+ Object.defineProperty(exports, "Express", {
30
+ enumerable: true,
31
+ get: function () { return express.Express; }
32
+ });
33
+ Object.defineProperty(exports, "Handler", {
34
+ enumerable: true,
35
+ get: function () { return express.Handler; }
36
+ });
37
+ Object.defineProperty(exports, "IRoute", {
38
+ enumerable: true,
39
+ get: function () { return express.IRoute; }
40
+ });
41
+ Object.defineProperty(exports, "IRouter", {
42
+ enumerable: true,
43
+ get: function () { return express.IRouter; }
44
+ });
45
+ Object.defineProperty(exports, "IRouterHandler", {
46
+ enumerable: true,
47
+ get: function () { return express.IRouterHandler; }
48
+ });
49
+ Object.defineProperty(exports, "IRouterMatcher", {
50
+ enumerable: true,
51
+ get: function () { return express.IRouterMatcher; }
52
+ });
53
+ Object.defineProperty(exports, "Locals", {
54
+ enumerable: true,
55
+ get: function () { return express.Locals; }
56
+ });
57
+ Object.defineProperty(exports, "MediaType", {
58
+ enumerable: true,
59
+ get: function () { return express.MediaType; }
60
+ });
61
+ Object.defineProperty(exports, "NextFunction", {
62
+ enumerable: true,
63
+ get: function () { return express.NextFunction; }
64
+ });
65
+ Object.defineProperty(exports, "Request", {
66
+ enumerable: true,
67
+ get: function () { return express.Request; }
68
+ });
69
+ Object.defineProperty(exports, "RequestHandler", {
70
+ enumerable: true,
71
+ get: function () { return express.RequestHandler; }
72
+ });
73
+ Object.defineProperty(exports, "RequestParamHandler", {
74
+ enumerable: true,
75
+ get: function () { return express.RequestParamHandler; }
76
+ });
77
+ Object.defineProperty(exports, "Response", {
78
+ enumerable: true,
79
+ get: function () { return express.Response; }
80
+ });
81
+ Object.defineProperty(exports, "Router", {
82
+ enumerable: true,
83
+ get: function () { return express.Router; }
84
+ });
85
+ Object.defineProperty(exports, "RouterOptions", {
86
+ enumerable: true,
87
+ get: function () { return express.RouterOptions; }
88
+ });
89
+ Object.defineProperty(exports, "Send", {
90
+ enumerable: true,
91
+ get: function () { return express.Send; }
92
+ });
93
+ Object.defineProperty(exports, "default", {
94
+ enumerable: true,
95
+ get: function () { return express__default.default; }
96
+ });
97
+ Object.defineProperty(exports, "json", {
98
+ enumerable: true,
99
+ get: function () { return express.json; }
100
+ });
101
+ Object.defineProperty(exports, "query", {
102
+ enumerable: true,
103
+ get: function () { return express.query; }
104
+ });
105
+ Object.defineProperty(exports, "raw", {
106
+ enumerable: true,
107
+ get: function () { return express.raw; }
108
+ });
109
+ Object.defineProperty(exports, "text", {
110
+ enumerable: true,
111
+ get: function () { return express.text; }
112
+ });
@@ -0,0 +1 @@
1
+ export { Application, CookieOptions, Errback, ErrorRequestHandler, Express, Handler, IRoute, IRouter, IRouterHandler, IRouterMatcher, Locals, MediaType, NextFunction, Request, RequestHandler, RequestParamHandler, Response, Router, RouterOptions, Send, default, json, query, raw, text } from 'express';
@@ -0,0 +1 @@
1
+ export { Application, CookieOptions, Errback, ErrorRequestHandler, Express, Handler, IRoute, IRouter, IRouterHandler, IRouterMatcher, Locals, MediaType, NextFunction, Request, RequestHandler, RequestParamHandler, Response, Router, RouterOptions, Send, default, json, query, raw, text } from 'express';
@@ -0,0 +1,22 @@
1
+ 'use strict';
2
+
3
+ Object.defineProperty(exports, '__esModule', { value: true });
4
+
5
+ var level = require('level');
6
+
7
+ function _interopDefault (e) { return e && e.__esModule ? e : { default: e }; }
8
+
9
+ var level__default = /*#__PURE__*/_interopDefault(level);
10
+
11
+
12
+
13
+ Object.defineProperty(exports, "default", {
14
+ enumerable: true,
15
+ get: function () { return level__default.default; }
16
+ });
17
+ Object.keys(level).forEach(function (k) {
18
+ if (k !== 'default' && !Object.prototype.hasOwnProperty.call(exports, k)) Object.defineProperty(exports, k, {
19
+ enumerable: true,
20
+ get: function () { return level[k]; }
21
+ });
22
+ });
@@ -0,0 +1,2 @@
1
+ export * from 'level';
2
+ export { default } from 'level';
@@ -0,0 +1,11 @@
1
+ 'use strict';
2
+
3
+ var lodash = require('lodash');
4
+
5
+ function _interopDefault (e) { return e && e.__esModule ? e : { default: e }; }
6
+
7
+ var lodash__default = /*#__PURE__*/_interopDefault(lodash);
8
+
9
+
10
+
11
+ module.exports = lodash__default.default;
@@ -0,0 +1 @@
1
+ export { default } from 'lodash';
@@ -0,0 +1,22 @@
1
+ 'use strict';
2
+
3
+ Object.defineProperty(exports, '__esModule', { value: true });
4
+
5
+ var log4js = require('log4js');
6
+
7
+ function _interopDefault (e) { return e && e.__esModule ? e : { default: e }; }
8
+
9
+ var log4js__default = /*#__PURE__*/_interopDefault(log4js);
10
+
11
+
12
+
13
+ Object.defineProperty(exports, "default", {
14
+ enumerable: true,
15
+ get: function () { return log4js__default.default; }
16
+ });
17
+ Object.keys(log4js).forEach(function (k) {
18
+ if (k !== 'default' && !Object.prototype.hasOwnProperty.call(exports, k)) Object.defineProperty(exports, k, {
19
+ enumerable: true,
20
+ get: function () { return log4js[k]; }
21
+ });
22
+ });
@@ -0,0 +1,2 @@
1
+ export * from 'log4js';
2
+ export { default } from 'log4js';
@@ -0,0 +1,11 @@
1
+ 'use strict';
2
+
3
+ var moment = require('moment');
4
+
5
+ function _interopDefault (e) { return e && e.__esModule ? e : { default: e }; }
6
+
7
+ var moment__default = /*#__PURE__*/_interopDefault(moment);
8
+
9
+
10
+
11
+ module.exports = moment__default.default;
@@ -0,0 +1 @@
1
+ export { default } from 'moment';
@@ -0,0 +1,22 @@
1
+ 'use strict';
2
+
3
+ Object.defineProperty(exports, '__esModule', { value: true });
4
+
5
+ var nodeSchedule = require('node-schedule');
6
+
7
+ function _interopDefault (e) { return e && e.__esModule ? e : { default: e }; }
8
+
9
+ var nodeSchedule__default = /*#__PURE__*/_interopDefault(nodeSchedule);
10
+
11
+
12
+
13
+ Object.defineProperty(exports, "default", {
14
+ enumerable: true,
15
+ get: function () { return nodeSchedule__default.default; }
16
+ });
17
+ Object.keys(nodeSchedule).forEach(function (k) {
18
+ if (k !== 'default' && !Object.prototype.hasOwnProperty.call(exports, k)) Object.defineProperty(exports, k, {
19
+ enumerable: true,
20
+ get: function () { return nodeSchedule[k]; }
21
+ });
22
+ });
@@ -0,0 +1,2 @@
1
+ export * from 'node-schedule';
2
+ export { default } from 'node-schedule';