node-karin 1.3.7 → 1.3.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.
package/CHANGELOG.md CHANGED
@@ -1,5 +1,20 @@
1
1
  # 更新日志
2
2
 
3
+ ## [1.3.9](https://github.com/KarinJS/Karin/compare/core-v1.3.8...core-v1.3.9) (2025-02-14)
4
+
5
+
6
+ ### 🐛 Bug Fixes
7
+
8
+ * 鉴权失败打印auth ([a0a4df6](https://github.com/KarinJS/Karin/commit/a0a4df6d2300f7ee08326a309bfcb38ae674f30d))
9
+
10
+ ## [1.3.8](https://github.com/KarinJS/Karin/compare/core-v1.3.7...core-v1.3.8) (2025-02-14)
11
+
12
+
13
+ ### 🐛 Bug Fixes
14
+
15
+ * 修复Router导出 ([c4304de](https://github.com/KarinJS/Karin/commit/c4304de57f63bdd67252d379bc96deb2da3e8c7b))
16
+ * 怎么有适配器结构体都不传 ([cc42593](https://github.com/KarinJS/Karin/commit/cc425930d61897a292adadb63cb4b261c14941cd))
17
+
3
18
  ## [1.3.7](https://github.com/KarinJS/Karin/compare/core-v1.3.6...core-v1.3.7) (2025-02-14)
4
19
 
5
20
 
package/dist/index.js CHANGED
@@ -13631,7 +13631,7 @@ var init_event = __esm({
13631
13631
 
13632
13632
  // src/adapter/onebot/core/convert.ts
13633
13633
  import fs28 from "node:fs";
13634
- function AdapterConvertKarin(data) {
13634
+ function AdapterConvertKarin(data = []) {
13635
13635
  const elements = [];
13636
13636
  for (const i of data) {
13637
13637
  switch (i.type) {
@@ -16150,7 +16150,7 @@ var init_server2 = __esm({
16150
16150
  }
16151
16151
  const auth2 = this.request.headers["authorization"];
16152
16152
  if (auth2 !== `Bearer ${token}`) {
16153
- this.logger("error", `[oneBot11][\u9274\u6743\u5931\u8D25] address: ${this.adapter.address} token: ${token}`);
16153
+ this.logger("error", `[oneBot11][\u9274\u6743\u5931\u8D25] address: ${this.adapter.address} token: ${token} auth: ${auth2}`);
16154
16154
  this.socket.close();
16155
16155
  return false;
16156
16156
  }
@@ -10,6 +10,10 @@ var express__default = /*#__PURE__*/_interopDefault(express);
10
10
 
11
11
 
12
12
 
13
+ Object.defineProperty(exports, "Router", {
14
+ enumerable: true,
15
+ get: function () { return express.Router; }
16
+ });
13
17
  Object.defineProperty(exports, "default", {
14
18
  enumerable: true,
15
19
  get: function () { return express__default.default; }
@@ -1 +1 @@
1
- export { default, json, query, raw, text } from 'express';
1
+ export { Router, default, json, query, raw, text } from 'express';
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "node-karin",
3
- "version": "1.3.7",
3
+ "version": "1.3.9",
4
4
  "description": "Lightweight, efficient, concise, and stable robot framework.",
5
5
  "keywords": [
6
6
  "node",