@modern-js/bff-runtime 2.58.0 → 2.58.2
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/types/match.d.ts
CHANGED
|
@@ -1,8 +1,8 @@
|
|
|
1
|
-
import { SchemaCtorInput } from 'farrow-schema';
|
|
2
|
-
import { MaybeAsync } from 'farrow-pipeline';
|
|
1
|
+
import { type SchemaCtorInput } from 'farrow-schema';
|
|
2
|
+
import type { MaybeAsync } from 'farrow-pipeline';
|
|
3
3
|
import type { TypeOfRouterRequestField } from './types';
|
|
4
|
-
import { RequestSchema, TypeOfRequestSchema, PureTypeOfRequestSchema } from './request';
|
|
5
|
-
import { HandleResult } from './response';
|
|
4
|
+
import type { RequestSchema, TypeOfRequestSchema, PureTypeOfRequestSchema } from './request';
|
|
5
|
+
import { type HandleResult } from './response';
|
|
6
6
|
export type NormalHandler = (...args: any[]) => any;
|
|
7
7
|
export type Handler<I, O> = (input: I) => MaybeAsync<O>;
|
|
8
8
|
export type Schema<Req extends RequestSchema, Res extends SchemaCtorInput> = {
|
package/dist/types/request.d.ts
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { TypeOfFieldDescriptor, TypeOfFieldDescriptors, FieldDescriptor, FieldDescriptors } from 'farrow-schema';
|
|
2
|
-
import { MarkReadOnlyDeep, RouterSchemaDescriptor } from './types';
|
|
1
|
+
import type { TypeOfFieldDescriptor, TypeOfFieldDescriptors, FieldDescriptor, FieldDescriptors } from 'farrow-schema';
|
|
2
|
+
import type { MarkReadOnlyDeep, RouterSchemaDescriptor } from './types';
|
|
3
3
|
export type RequestBaseSchema = {
|
|
4
4
|
params?: RouterSchemaDescriptor;
|
|
5
5
|
query?: RouterSchemaDescriptor;
|
package/dist/types/types.d.ts
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import * as Schema from 'farrow-schema';
|
|
1
|
+
import type * as Schema from 'farrow-schema';
|
|
2
2
|
type Path = string | RegExp | Array<string | RegExp>;
|
|
3
3
|
export type TypeOfRouterRequestField<T> = T extends string | string[] ? string : T extends Path ? string : T extends Schema.FieldDescriptor ? Schema.TypeOfFieldDescriptor<T> : T extends Schema.FieldDescriptors ? Schema.TypeOfFieldDescriptors<T> : never;
|
|
4
4
|
export type RouterSchemaDescriptor = Schema.FieldDescriptors | (new () => Schema.ObjectType) | (new () => Schema.StructType);
|
package/package.json
CHANGED
|
@@ -15,7 +15,7 @@
|
|
|
15
15
|
"modern",
|
|
16
16
|
"modern.js"
|
|
17
17
|
],
|
|
18
|
-
"version": "2.58.
|
|
18
|
+
"version": "2.58.2",
|
|
19
19
|
"jsnext:source": "./src/index.ts",
|
|
20
20
|
"types": "./dist/types/index.d.ts",
|
|
21
21
|
"main": "./dist/cjs/index.js",
|
|
@@ -31,10 +31,10 @@
|
|
|
31
31
|
}
|
|
32
32
|
},
|
|
33
33
|
"dependencies": {
|
|
34
|
+
"@swc/helpers": "0.5.3",
|
|
34
35
|
"farrow-api": "^1.10.8",
|
|
35
36
|
"farrow-pipeline": "^1.10.6",
|
|
36
|
-
"farrow-schema": "^1.10.8"
|
|
37
|
-
"@swc/helpers": "0.5.3"
|
|
37
|
+
"farrow-schema": "^1.10.8"
|
|
38
38
|
},
|
|
39
39
|
"devDependencies": {
|
|
40
40
|
"@types/jest": "^29",
|
|
@@ -42,8 +42,8 @@
|
|
|
42
42
|
"jest": "^29",
|
|
43
43
|
"ts-jest": "^29.1.0",
|
|
44
44
|
"typescript": "^5",
|
|
45
|
-
"@scripts/build": "2.58.
|
|
46
|
-
"@scripts/jest-config": "2.58.
|
|
45
|
+
"@scripts/build": "2.58.2",
|
|
46
|
+
"@scripts/jest-config": "2.58.2"
|
|
47
47
|
},
|
|
48
48
|
"publishConfig": {
|
|
49
49
|
"registry": "https://registry.npmjs.org/",
|