@asterflow/multipart 2.0.2 → 2.2.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.
@@ -34,7 +34,7 @@ ne(me, {
34
34
  module.exports = se(me);
35
35
  var G = require("@asterflow/plugin"), P = require("@asterflow/router"), J = require("fs/promises"), Q = require("os");
36
36
  // plugins/multipart/package.json
37
- var z = "2.0.2";
37
+ var z = "2.2.0";
38
38
  // plugins/multipart/src/controllers/multipartExtension.ts
39
39
  var x = require("@asterflow/router"), $ = !1;
40
40
  function B() {
package/dist/mjs/index.js CHANGED
@@ -4,7 +4,7 @@ import { getRouteExtensions as ne, Method as oe } from "@asterflow/router";
4
4
  import { unlink as se } from "fs/promises";
5
5
  import { tmpdir as ae } from "os";
6
6
  // plugins/multipart/package.json
7
- var _ = "2.0.2";
7
+ var _ = "2.2.0";
8
8
  // plugins/multipart/src/controllers/multipartExtension.ts
9
9
  import { Method as H, RouteMethodBuilder as j } from "@asterflow/router";
10
10
  var v = !1;
@@ -1,6 +1,7 @@
1
1
  import type {
2
2
  DefaultMethodProps,
3
3
  DefaultRouteMethodBuilderProps,
4
+ Method,
4
5
  MergeProps,
5
6
  MethodProps,
6
7
  RouteMethodBuilderProps
@@ -35,7 +36,7 @@ declare module '@asterflow/request' {
35
36
  }
36
37
 
37
38
  /**
38
- * Adds `.multipart(schema)` onto `Method` and `RouteMethodBuilder` via
39
+ * Adds `.multipart(schema)` onto `MethodClass` and `RouteMethodBuilder` via
39
40
  * declaration merging - the parameter list must match each class's real one
40
41
  * exactly (count, constraints, defaults). No `const` modifier here: Bun's
41
42
  * transpiler can't parse `const` type parameters inside a merged interface,
@@ -43,7 +44,7 @@ declare module '@asterflow/request' {
43
44
  * `controllers/multipartExtension.ts`.
44
45
  */
45
46
  declare module '@asterflow/router' {
46
- interface Method<
47
+ interface MethodClass<
47
48
  Props extends MethodProps = DefaultMethodProps
48
49
  > {
49
50
  multipart<Fields extends MultipartFields>(
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@asterflow/multipart",
3
- "version": "2.0.2",
3
+ "version": "2.2.0",
4
4
  "description": "Parses multipart/form-data requests before your handler runs, with optional per-route field rules checked at runtime and enforced in the handler's types.",
5
5
  "keywords": [
6
6
  "asterflow",
@@ -35,16 +35,16 @@
35
35
  "node": ">=20"
36
36
  },
37
37
  "dependencies": {
38
- "@asterflow/plugin": "^2.0.2",
39
- "@asterflow/request": "^2.0.2",
40
- "@asterflow/response": "^2.0.2",
41
- "@asterflow/router": "^2.0.2",
38
+ "@asterflow/plugin": "^2.2.0",
39
+ "@asterflow/request": "^2.2.0",
40
+ "@asterflow/response": "^2.2.0",
41
+ "@asterflow/router": "^2.2.0",
42
42
  "@asterflow/url-parser": "^4.1.1",
43
43
  "busboy": "^1.6.0"
44
44
  },
45
45
  "devDependencies": {
46
- "@asterflow/adapter": "^2.0.2",
46
+ "@asterflow/adapter": "^2.2.0",
47
47
  "@types/busboy": "^1.5.4",
48
- "asterflow": "^2.0.2"
48
+ "asterflow": "^2.2.0"
49
49
  }
50
50
  }