@modern-js/bff-runtime 2.35.0 → 2.35.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/cjs/match.js +1 -4
- package/dist/esm/match.js +1 -2
- package/dist/esm-node/match.js +1 -4
- package/package.json +3 -3
package/dist/cjs/match.js
CHANGED
|
@@ -35,10 +35,7 @@ ${message}`;
|
|
|
35
35
|
return message;
|
|
36
36
|
};
|
|
37
37
|
const HANDLER_WITH_SCHEMA = "HANDLER_WITH_SCHEMA";
|
|
38
|
-
const isSchemaHandler = (input) =>
|
|
39
|
-
var _input;
|
|
40
|
-
return input && ((_input = input) === null || _input === void 0 ? void 0 : _input[HANDLER_WITH_SCHEMA]) === true;
|
|
41
|
-
};
|
|
38
|
+
const isSchemaHandler = (input) => input && (input === null || input === void 0 ? void 0 : input[HANDLER_WITH_SCHEMA]) === true;
|
|
42
39
|
const isHandler = (input) => input && typeof input === "function";
|
|
43
40
|
const baseMatch = (schema, handler) => {
|
|
44
41
|
const validateApiInput = createRequestSchemaValidator(schema.request);
|
package/dist/esm/match.js
CHANGED
|
@@ -13,8 +13,7 @@ var getErrorMessage = function(error) {
|
|
|
13
13
|
};
|
|
14
14
|
var HANDLER_WITH_SCHEMA = "HANDLER_WITH_SCHEMA";
|
|
15
15
|
export var isSchemaHandler = function(input) {
|
|
16
|
-
|
|
17
|
-
return input && ((_input = input) === null || _input === void 0 ? void 0 : _input[HANDLER_WITH_SCHEMA]) === true;
|
|
16
|
+
return input && (input === null || input === void 0 ? void 0 : input[HANDLER_WITH_SCHEMA]) === true;
|
|
18
17
|
};
|
|
19
18
|
export var isHandler = function(input) {
|
|
20
19
|
return input && typeof input === "function";
|
package/dist/esm-node/match.js
CHANGED
|
@@ -10,10 +10,7 @@ ${message}`;
|
|
|
10
10
|
return message;
|
|
11
11
|
};
|
|
12
12
|
const HANDLER_WITH_SCHEMA = "HANDLER_WITH_SCHEMA";
|
|
13
|
-
export const isSchemaHandler = (input) =>
|
|
14
|
-
var _input;
|
|
15
|
-
return input && ((_input = input) === null || _input === void 0 ? void 0 : _input[HANDLER_WITH_SCHEMA]) === true;
|
|
16
|
-
};
|
|
13
|
+
export const isSchemaHandler = (input) => input && (input === null || input === void 0 ? void 0 : input[HANDLER_WITH_SCHEMA]) === true;
|
|
17
14
|
export const isHandler = (input) => input && typeof input === "function";
|
|
18
15
|
export const baseMatch = (schema, handler) => {
|
|
19
16
|
const validateApiInput = createRequestSchemaValidator(schema.request);
|
package/package.json
CHANGED
|
@@ -15,7 +15,7 @@
|
|
|
15
15
|
"modern",
|
|
16
16
|
"modern.js"
|
|
17
17
|
],
|
|
18
|
-
"version": "2.35.
|
|
18
|
+
"version": "2.35.1",
|
|
19
19
|
"jsnext:source": "./src/index.ts",
|
|
20
20
|
"types": "./dist/types/index.d.ts",
|
|
21
21
|
"main": "./dist/cjs/index.js",
|
|
@@ -42,8 +42,8 @@
|
|
|
42
42
|
"jest": "^29",
|
|
43
43
|
"ts-jest": "^29.1.0",
|
|
44
44
|
"typescript": "^5",
|
|
45
|
-
"@scripts/build": "2.35.
|
|
46
|
-
"@scripts/jest-config": "2.35.
|
|
45
|
+
"@scripts/build": "2.35.1",
|
|
46
|
+
"@scripts/jest-config": "2.35.1"
|
|
47
47
|
},
|
|
48
48
|
"publishConfig": {
|
|
49
49
|
"registry": "https://registry.npmjs.org/",
|