@jayfong/x-server 2.45.3 → 2.47.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 || [];
@@ -1,9 +1,10 @@
1
1
  "use strict";
2
2
 
3
- var _interopRequireDefault = require("@babel/runtime/helpers/interopRequireDefault").default;
3
+ var _interopRequireWildcard = require("@babel/runtime/helpers/interopRequireWildcard").default;
4
4
  exports.__esModule = true;
5
- exports.FileParserPlugin = void 0;
6
- var _multipart = _interopRequireDefault(require("@fastify/multipart"));
5
+ exports.MultipartFile = exports.FileParserPlugin = void 0;
6
+ var _multipart = _interopRequireWildcard(require("@fastify/multipart"));
7
+ exports.MultipartFile = _multipart.MultipartFile;
7
8
  var _vtils = require("vtils");
8
9
  /**
9
10
  * file 解析器插件
@@ -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 || [];
@@ -1,6 +1,7 @@
1
1
  import { FastifyMultipartOptions } from '@fastify/multipart';
2
- import { BasePlugin } from './base';
3
2
  import { FastifyInstance } from 'fastify';
3
+ import { BasePlugin } from './base';
4
+ export { MultipartFile } from '@fastify/multipart';
4
5
  export interface FileParserPluginOptions extends FastifyMultipartOptions {
5
6
  }
6
7
  /**
@@ -1,5 +1,6 @@
1
1
  import FastifyMultipart from '@fastify/multipart';
2
2
  import { bytes } from 'vtils';
3
+ export { MultipartFile } from '@fastify/multipart';
3
4
  /**
4
5
  * file 解析器插件
5
6
  *
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@jayfong/x-server",
3
- "version": "2.45.3",
3
+ "version": "2.47.0",
4
4
  "license": "ISC",
5
5
  "sideEffects": false,
6
6
  "main": "lib/_cjs/index.js",