@modern-js/bff-core 3.1.0 → 3.1.1
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/esm/index.mjs +3 -4
- package/dist/esm/router/index.mjs +2 -2
- package/dist/esm/types.mjs +1 -1
- package/dist/esm/utils/index.mjs +1 -2
- package/dist/esm-node/index.mjs +3 -4
- package/dist/esm-node/router/index.mjs +2 -2
- package/dist/esm-node/types.mjs +1 -1
- package/dist/esm-node/utils/index.mjs +1 -2
- package/package.json +5 -5
- /package/{rstest.config.ts → rstest.config.mts} +0 -0
package/dist/esm/index.mjs
CHANGED
|
@@ -1,8 +1,7 @@
|
|
|
1
|
-
import { Api } from "./api.mjs";
|
|
2
|
-
import { HttpError, ValidationError } from "./errors/http.mjs";
|
|
3
|
-
import { HANDLER_WITH_META, INPUT_PARAMS_DECIDER, createStorage, getRelativeRuntimePath, isInputParamsDeciderHandler, isWithMetaHandler, registerPaths } from "./utils/index.mjs";
|
|
4
1
|
export * from "./router/index.mjs";
|
|
5
2
|
export * from "./types.mjs";
|
|
6
3
|
export * from "./client/index.mjs";
|
|
7
4
|
export * from "./operators/http.mjs";
|
|
8
|
-
export { Api
|
|
5
|
+
export { Api } from "./api.mjs";
|
|
6
|
+
export { HttpError, ValidationError } from "./errors/http.mjs";
|
|
7
|
+
export { HANDLER_WITH_META, INPUT_PARAMS_DECIDER, createStorage, getRelativeRuntimePath, isInputParamsDeciderHandler, isWithMetaHandler, registerPaths } from "./utils/index.mjs";
|
|
@@ -1,3 +1,5 @@
|
|
|
1
|
+
export * from "./types.mjs";
|
|
2
|
+
export * from "./constants.mjs";
|
|
1
3
|
import path from "path";
|
|
2
4
|
import { fs, logger } from "@modern-js/utils";
|
|
3
5
|
import "reflect-metadata";
|
|
@@ -5,8 +7,6 @@ import { HttpMethod, OperatorType, TriggerType, httpMethods } from "../types.mjs
|
|
|
5
7
|
import { INPUT_PARAMS_DECIDER, debug } from "../utils/index.mjs";
|
|
6
8
|
import { API_FILE_RULES, FRAMEWORK_MODE_LAMBDA_DIR } from "./constants.mjs";
|
|
7
9
|
import { getFiles, getPathFromFilename, requireHandlerModule, sortRoutes } from "./utils.mjs";
|
|
8
|
-
export * from "./types.mjs";
|
|
9
|
-
export * from "./constants.mjs";
|
|
10
10
|
class ApiRouter {
|
|
11
11
|
isExistLambda() {
|
|
12
12
|
return this.existLambdaDir;
|
package/dist/esm/types.mjs
CHANGED
|
@@ -36,4 +36,4 @@ var types_HttpMethod = /*#__PURE__*/ function(HttpMethod) {
|
|
|
36
36
|
return HttpMethod;
|
|
37
37
|
}({});
|
|
38
38
|
const httpMethods = Object.values(types_HttpMethod);
|
|
39
|
-
export { types_HttpMetadata as HttpMetadata, types_HttpMethod as HttpMethod, types_OperatorType as OperatorType, types_ResponseMetaType as ResponseMetaType, types_TriggerType as TriggerType
|
|
39
|
+
export { httpMethods, types_HttpMetadata as HttpMetadata, types_HttpMethod as HttpMethod, types_OperatorType as OperatorType, types_ResponseMetaType as ResponseMetaType, types_TriggerType as TriggerType };
|
package/dist/esm/utils/index.mjs
CHANGED
package/dist/esm-node/index.mjs
CHANGED
|
@@ -1,9 +1,8 @@
|
|
|
1
1
|
import "node:module";
|
|
2
|
-
import { Api } from "./api.mjs";
|
|
3
|
-
import { HttpError, ValidationError } from "./errors/http.mjs";
|
|
4
|
-
import { HANDLER_WITH_META, INPUT_PARAMS_DECIDER, createStorage, getRelativeRuntimePath, isInputParamsDeciderHandler, isWithMetaHandler, registerPaths } from "./utils/index.mjs";
|
|
5
2
|
export * from "./router/index.mjs";
|
|
6
3
|
export * from "./types.mjs";
|
|
7
4
|
export * from "./client/index.mjs";
|
|
8
5
|
export * from "./operators/http.mjs";
|
|
9
|
-
export { Api
|
|
6
|
+
export { Api } from "./api.mjs";
|
|
7
|
+
export { HttpError, ValidationError } from "./errors/http.mjs";
|
|
8
|
+
export { HANDLER_WITH_META, INPUT_PARAMS_DECIDER, createStorage, getRelativeRuntimePath, isInputParamsDeciderHandler, isWithMetaHandler, registerPaths } from "./utils/index.mjs";
|
|
@@ -1,4 +1,6 @@
|
|
|
1
1
|
import "node:module";
|
|
2
|
+
export * from "./types.mjs";
|
|
3
|
+
export * from "./constants.mjs";
|
|
2
4
|
import path from "path";
|
|
3
5
|
import { fs, logger } from "@modern-js/utils";
|
|
4
6
|
import "reflect-metadata";
|
|
@@ -6,8 +8,6 @@ import { HttpMethod, OperatorType, TriggerType, httpMethods } from "../types.mjs
|
|
|
6
8
|
import { INPUT_PARAMS_DECIDER, debug } from "../utils/index.mjs";
|
|
7
9
|
import { API_FILE_RULES, FRAMEWORK_MODE_LAMBDA_DIR } from "./constants.mjs";
|
|
8
10
|
import { getFiles, getPathFromFilename, requireHandlerModule, sortRoutes } from "./utils.mjs";
|
|
9
|
-
export * from "./types.mjs";
|
|
10
|
-
export * from "./constants.mjs";
|
|
11
11
|
class ApiRouter {
|
|
12
12
|
isExistLambda() {
|
|
13
13
|
return this.existLambdaDir;
|
package/dist/esm-node/types.mjs
CHANGED
|
@@ -37,4 +37,4 @@ var types_HttpMethod = /*#__PURE__*/ function(HttpMethod) {
|
|
|
37
37
|
return HttpMethod;
|
|
38
38
|
}({});
|
|
39
39
|
const httpMethods = Object.values(types_HttpMethod);
|
|
40
|
-
export { types_HttpMetadata as HttpMetadata, types_HttpMethod as HttpMethod, types_OperatorType as OperatorType, types_ResponseMetaType as ResponseMetaType, types_TriggerType as TriggerType
|
|
40
|
+
export { httpMethods, types_HttpMetadata as HttpMetadata, types_HttpMethod as HttpMethod, types_OperatorType as OperatorType, types_ResponseMetaType as ResponseMetaType, types_TriggerType as TriggerType };
|
package/package.json
CHANGED
|
@@ -15,7 +15,7 @@
|
|
|
15
15
|
"modern",
|
|
16
16
|
"modern.js"
|
|
17
17
|
],
|
|
18
|
-
"version": "3.1.
|
|
18
|
+
"version": "3.1.1",
|
|
19
19
|
"types": "./dist/types/index.d.ts",
|
|
20
20
|
"main": "./dist/cjs/index.js",
|
|
21
21
|
"exports": {
|
|
@@ -33,10 +33,10 @@
|
|
|
33
33
|
"koa-compose": "^4.1.0",
|
|
34
34
|
"reflect-metadata": "^0.2.2",
|
|
35
35
|
"type-fest": "2.19.0",
|
|
36
|
-
"@modern-js/utils": "3.1.
|
|
36
|
+
"@modern-js/utils": "3.1.1"
|
|
37
37
|
},
|
|
38
38
|
"devDependencies": {
|
|
39
|
-
"@rslib/core": "0.
|
|
39
|
+
"@rslib/core": "0.20.0",
|
|
40
40
|
"@types/koa-compose": "^3.2.9",
|
|
41
41
|
"@types/node": "^20",
|
|
42
42
|
"ts-node": "^10.9.2",
|
|
@@ -44,8 +44,8 @@
|
|
|
44
44
|
"typescript": "^5",
|
|
45
45
|
"zod": "^3.25.76",
|
|
46
46
|
"@modern-js/rslib": "2.68.10",
|
|
47
|
-
"@
|
|
48
|
-
"@
|
|
47
|
+
"@modern-js/types": "3.1.1",
|
|
48
|
+
"@scripts/rstest-config": "2.66.0"
|
|
49
49
|
},
|
|
50
50
|
"peerDependencies": {
|
|
51
51
|
"ts-node": "^10.9.2",
|
|
File without changes
|