@jayfong/x-server 2.46.0 → 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.
@@ -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 解析器插件
@@ -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.46.0",
3
+ "version": "2.47.0",
4
4
  "license": "ISC",
5
5
  "sideEffects": false,
6
6
  "main": "lib/_cjs/index.js",