@modern-js/bff-runtime 2.0.0-beta.4 → 2.0.0-beta.6

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/CHANGELOG.md CHANGED
@@ -1,5 +1,11 @@
1
1
  # @modern-js/bff-runtime
2
2
 
3
+ ## 2.0.0-beta.6
4
+
5
+ ### Major Changes
6
+
7
+ - dda38c9c3e: chore: v2
8
+
3
9
  ## 2.0.0-beta.4
4
10
 
5
11
  ### Major Changes
@@ -0,0 +1,15 @@
1
+ var __defProp = Object.defineProperty;
2
+ var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
3
+ var __getOwnPropNames = Object.getOwnPropertyNames;
4
+ var __hasOwnProp = Object.prototype.hasOwnProperty;
5
+ var __copyProps = (to, from, except, desc) => {
6
+ if (from && typeof from === "object" || typeof from === "function") {
7
+ for (let key of __getOwnPropNames(from))
8
+ if (!__hasOwnProp.call(to, key) && key !== except)
9
+ __defProp(to, key, { get: () => from[key], enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable });
10
+ }
11
+ return to;
12
+ };
13
+ var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod);
14
+ var compatible_exports = {};
15
+ module.exports = __toCommonJS(compatible_exports);
@@ -16,12 +16,18 @@ var __copyProps = (to, from, except, desc) => {
16
16
  };
17
17
  var __reExport = (target, mod, secondTarget) => (__copyProps(target, mod, "default"), secondTarget && __copyProps(secondTarget, mod, "default"));
18
18
  var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod);
19
- var stdin_exports = {};
20
- __export(stdin_exports, {
19
+ var src_exports = {};
20
+ __export(src_exports, {
21
21
  isHandler: () => import_match.isHandler,
22
22
  isSchemaHandler: () => import_match.isSchemaHandler,
23
23
  match: () => import_match.match
24
24
  });
25
- module.exports = __toCommonJS(stdin_exports);
26
- __reExport(stdin_exports, require("farrow-schema"), module.exports);
25
+ module.exports = __toCommonJS(src_exports);
26
+ __reExport(src_exports, require("farrow-schema"), module.exports);
27
27
  var import_match = require("./match");
28
+ // Annotate the CommonJS export names for ESM import in node:
29
+ 0 && (module.exports = {
30
+ isHandler,
31
+ isSchemaHandler,
32
+ match
33
+ });
@@ -15,17 +15,6 @@ var __copyProps = (to, from, except, desc) => {
15
15
  return to;
16
16
  };
17
17
  var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod);
18
- var stdin_exports = {};
19
- __export(stdin_exports, {
20
- baseMatch: () => baseMatch,
21
- isHandler: () => isHandler,
22
- isSchemaHandler: () => isSchemaHandler,
23
- match: () => match
24
- });
25
- module.exports = __toCommonJS(stdin_exports);
26
- var import_farrow_schema = require("farrow-schema");
27
- var import_validator = require("farrow-schema/validator");
28
- var import_response = require("./response");
29
18
  var __async = (__this, __arguments, generator) => {
30
19
  return new Promise((resolve, reject) => {
31
20
  var fulfilled = (value) => {
@@ -46,6 +35,17 @@ var __async = (__this, __arguments, generator) => {
46
35
  step((generator = generator.apply(__this, __arguments)).next());
47
36
  });
48
37
  };
38
+ var match_exports = {};
39
+ __export(match_exports, {
40
+ baseMatch: () => baseMatch,
41
+ isHandler: () => isHandler,
42
+ isSchemaHandler: () => isSchemaHandler,
43
+ match: () => match
44
+ });
45
+ module.exports = __toCommonJS(match_exports);
46
+ var import_farrow_schema = require("farrow-schema");
47
+ var import_validator = require("farrow-schema/validator");
48
+ var import_response = require("./response");
49
49
  const getErrorMessage = (error) => {
50
50
  let { message } = error;
51
51
  if (Array.isArray(error.path) && error.path.length > 0) {
@@ -100,3 +100,10 @@ const createRequestSchemaValidator = (schema) => {
100
100
  const RequestStruct = (0, import_farrow_schema.Struct)(descriptors);
101
101
  return (0, import_validator.createSchemaValidator)((0, import_farrow_schema.NonStrict)(RequestStruct));
102
102
  };
103
+ // Annotate the CommonJS export names for ESM import in node:
104
+ 0 && (module.exports = {
105
+ baseMatch,
106
+ isHandler,
107
+ isSchemaHandler,
108
+ match
109
+ });
@@ -0,0 +1,15 @@
1
+ var __defProp = Object.defineProperty;
2
+ var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
3
+ var __getOwnPropNames = Object.getOwnPropertyNames;
4
+ var __hasOwnProp = Object.prototype.hasOwnProperty;
5
+ var __copyProps = (to, from, except, desc) => {
6
+ if (from && typeof from === "object" || typeof from === "function") {
7
+ for (let key of __getOwnPropNames(from))
8
+ if (!__hasOwnProp.call(to, key) && key !== except)
9
+ __defProp(to, key, { get: () => from[key], enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable });
10
+ }
11
+ return to;
12
+ };
13
+ var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod);
14
+ var request_exports = {};
15
+ module.exports = __toCommonJS(request_exports);
@@ -15,13 +15,13 @@ var __copyProps = (to, from, except, desc) => {
15
15
  return to;
16
16
  };
17
17
  var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod);
18
- var stdin_exports = {};
19
- __export(stdin_exports, {
18
+ var response_exports = {};
19
+ __export(response_exports, {
20
20
  HandleSuccess: () => HandleSuccess,
21
21
  InputValidationError: () => InputValidationError,
22
22
  OutputValidationError: () => OutputValidationError
23
23
  });
24
- module.exports = __toCommonJS(stdin_exports);
24
+ module.exports = __toCommonJS(response_exports);
25
25
  const HandleSuccess = (output) => ({
26
26
  type: "HandleSuccess",
27
27
  value: output
@@ -34,3 +34,9 @@ const OutputValidationError = (message) => ({
34
34
  type: "OutputValidationError",
35
35
  message
36
36
  });
37
+ // Annotate the CommonJS export names for ESM import in node:
38
+ 0 && (module.exports = {
39
+ HandleSuccess,
40
+ InputValidationError,
41
+ OutputValidationError
42
+ });
@@ -0,0 +1,15 @@
1
+ var __defProp = Object.defineProperty;
2
+ var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
3
+ var __getOwnPropNames = Object.getOwnPropertyNames;
4
+ var __hasOwnProp = Object.prototype.hasOwnProperty;
5
+ var __copyProps = (to, from, except, desc) => {
6
+ if (from && typeof from === "object" || typeof from === "function") {
7
+ for (let key of __getOwnPropNames(from))
8
+ if (!__hasOwnProp.call(to, key) && key !== except)
9
+ __defProp(to, key, { get: () => from[key], enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable });
10
+ }
11
+ return to;
12
+ };
13
+ var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod);
14
+ var types_exports = {};
15
+ module.exports = __toCommonJS(types_exports);
package/package.json CHANGED
@@ -11,7 +11,7 @@
11
11
  "modern",
12
12
  "modern.js"
13
13
  ],
14
- "version": "2.0.0-beta.4",
14
+ "version": "2.0.0-beta.6",
15
15
  "jsnext:source": "./src/index.ts",
16
16
  "types": "./dist/types/index.d.ts",
17
17
  "main": "./dist/js/node/index.js",
@@ -39,8 +39,8 @@
39
39
  "jest": "^27",
40
40
  "ts-jest": "^27.0.5",
41
41
  "typescript": "^4",
42
- "@scripts/build": "2.0.0-beta.4",
43
- "@scripts/jest-config": "2.0.0-beta.4"
42
+ "@scripts/build": "2.0.0-beta.6",
43
+ "@scripts/jest-config": "2.0.0-beta.6"
44
44
  },
45
45
  "publishConfig": {
46
46
  "registry": "https://registry.npmjs.org/",