@eggjs/multipart 5.0.0-beta.32 → 5.0.0-beta.34

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/dist/index.d.ts CHANGED
@@ -1,3 +1,18 @@
1
- import './config/config.default.ts';
2
- import './app/extend/context.ts';
3
1
  import './types.ts';
2
+ import { type EggPluginFactory } from 'egg';
3
+ /**
4
+ * Multipart plugin
5
+ *
6
+ * @since 4.1.0
7
+ * Usage:
8
+ * ```ts
9
+ * // config/plugin.ts
10
+ * import multipartPlugin from '@eggjs/multipart';
11
+ *
12
+ * export default {
13
+ * ...multipartPlugin(),
14
+ * };
15
+ * ```
16
+ */
17
+ declare const _default: EggPluginFactory;
18
+ export default _default;
package/dist/index.js CHANGED
@@ -1,4 +1,23 @@
1
- import "./config/config.default.js";
2
- import "./app/extend/context.js";
3
1
  import "./types.js";
4
- //# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiaW5kZXguanMiLCJzb3VyY2VSb290IjoiIiwic291cmNlcyI6WyIuLi9zcmMvaW5kZXgudHMiXSwibmFtZXMiOltdLCJtYXBwaW5ncyI6IkFBQUEsT0FBTyw0QkFBNEIsQ0FBQztBQUNwQyxPQUFPLHlCQUF5QixDQUFDO0FBQ2pDLE9BQU8sWUFBWSxDQUFDIn0=
2
+ import { definePluginFactory } from 'egg';
3
+ /**
4
+ * Multipart plugin
5
+ *
6
+ * @since 4.1.0
7
+ * Usage:
8
+ * ```ts
9
+ * // config/plugin.ts
10
+ * import multipartPlugin from '@eggjs/multipart';
11
+ *
12
+ * export default {
13
+ * ...multipartPlugin(),
14
+ * };
15
+ * ```
16
+ */
17
+ export default definePluginFactory({
18
+ name: 'multipart',
19
+ enable: true,
20
+ path: import.meta.dirname,
21
+ optionalDependencies: ['schedule'],
22
+ });
23
+ //# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiaW5kZXguanMiLCJzb3VyY2VSb290IjoiIiwic291cmNlcyI6WyIuLi9zcmMvaW5kZXgudHMiXSwibmFtZXMiOltdLCJtYXBwaW5ncyI6IkFBQUEsT0FBTyxZQUFZLENBQUM7QUFFcEIsT0FBTyxFQUFFLG1CQUFtQixFQUF5QixNQUFNLEtBQUssQ0FBQztBQUVqRTs7Ozs7Ozs7Ozs7OztHQWFHO0FBQ0gsZUFBZSxtQkFBbUIsQ0FBQztJQUNqQyxJQUFJLEVBQUUsV0FBVztJQUNqQixNQUFNLEVBQUUsSUFBSTtJQUNaLElBQUksRUFBRSxNQUFNLENBQUMsSUFBSSxDQUFDLE9BQU87SUFDekIsb0JBQW9CLEVBQUUsQ0FBQyxVQUFVLENBQUM7Q0FDbkMsQ0FBcUIsQ0FBQyJ9
package/package.json CHANGED
@@ -1,13 +1,7 @@
1
1
  {
2
2
  "name": "@eggjs/multipart",
3
- "version": "5.0.0-beta.32",
4
- "description": "multipart plugin for egg",
5
- "eggPlugin": {
6
- "name": "multipart",
7
- "optionalDependencies": [
8
- "schedule"
9
- ]
10
- },
3
+ "version": "5.0.0-beta.34",
4
+ "description": "Multipart plugin for egg",
11
5
  "keywords": [
12
6
  "egg",
13
7
  "egg-plugin",
@@ -49,10 +43,10 @@
49
43
  "bytes": "^3.1.2",
50
44
  "co-busboy": "^2.0.1",
51
45
  "dayjs": "^1.11.13",
52
- "@eggjs/path-matching": "3.0.0-beta.32"
46
+ "@eggjs/path-matching": "3.0.0-beta.34"
53
47
  },
54
48
  "peerDependencies": {
55
- "egg": "4.1.0-beta.32"
49
+ "egg": "4.1.0-beta.34"
56
50
  },
57
51
  "devDependencies": {
58
52
  "@types/bytes": "^3.1.5",
@@ -60,14 +54,14 @@
60
54
  "formstream": "^1.5.1",
61
55
  "is-type-of": "^2.2.0",
62
56
  "stream-wormhole": "^2.0.1",
63
- "tsdown": "0.15.10",
57
+ "tsdown": "0.15.11",
64
58
  "typescript": "^5.9.3",
65
59
  "urllib": "^4.8.2",
66
- "vitest": "4.0.4",
67
- "@eggjs/mock": "7.0.0-beta.32",
68
- "@eggjs/schedule": "6.0.0-beta.32",
69
- "egg": "4.1.0-beta.32",
70
- "@eggjs/tsconfig": "3.1.0-beta.32"
60
+ "vitest": "4.0.5",
61
+ "@eggjs/mock": "7.0.0-beta.34",
62
+ "@eggjs/schedule": "6.0.0-beta.34",
63
+ "@eggjs/tsconfig": "3.1.0-beta.34",
64
+ "egg": "4.1.0-beta.34"
71
65
  },
72
66
  "files": [
73
67
  "dist"