@jayfong/x-server 2.45.3 → 2.46.0

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.
@@ -204,6 +204,18 @@ class ApiGenerator {
204
204
  };
205
205
  }
206
206
 
207
+ // Buffer
208
+ if (valueSymbolName === 'Buffer') {
209
+ return {
210
+ name: 'buffer',
211
+ desc: comment.description,
212
+ required: isRequired,
213
+ type: 'object',
214
+ enum: [],
215
+ children: []
216
+ };
217
+ }
218
+
207
219
  // 联合类型
208
220
  // 布尔、枚举也会用这表示
209
221
  const rawUnionTypes = type.isUnion() && type.types || [];
@@ -199,6 +199,18 @@ export class ApiGenerator {
199
199
  };
200
200
  }
201
201
 
202
+ // Buffer
203
+ if (valueSymbolName === 'Buffer') {
204
+ return {
205
+ name: 'buffer',
206
+ desc: comment.description,
207
+ required: isRequired,
208
+ type: 'object',
209
+ enum: [],
210
+ children: []
211
+ };
212
+ }
213
+
202
214
  // 联合类型
203
215
  // 布尔、枚举也会用这表示
204
216
  const rawUnionTypes = type.isUnion() && type.types || [];
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@jayfong/x-server",
3
- "version": "2.45.3",
3
+ "version": "2.46.0",
4
4
  "license": "ISC",
5
5
  "sideEffects": false,
6
6
  "main": "lib/_cjs/index.js",