@modern-js/bff-runtime 1.2.4 → 1.2.5-beta.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.
@@ -1,4 +1,5 @@
1
- export * from 'farrow-schema';
2
- export * from 'farrow-api';
3
- export * from 'farrow-pipeline';
4
- export { match, isHandler, isSchemaHandler } from "./match";
1
+ export * from 'farrow-schema'; // export * from 'farrow-api';
2
+ // export * from 'farrow-pipeline';
3
+
4
+ export { match, isHandler, isSchemaHandler } from "./match";
5
+ export * from '@modern-js/bff-core';
@@ -41,32 +41,18 @@ Object.keys(_farrowSchema).forEach(function (key) {
41
41
  });
42
42
  });
43
43
 
44
- var _farrowApi = require("farrow-api");
44
+ var _match = require("./match");
45
45
 
46
- Object.keys(_farrowApi).forEach(function (key) {
47
- if (key === "default" || key === "__esModule") return;
48
- if (Object.prototype.hasOwnProperty.call(_exportNames, key)) return;
49
- if (key in exports && exports[key] === _farrowApi[key]) return;
50
- Object.defineProperty(exports, key, {
51
- enumerable: true,
52
- get: function () {
53
- return _farrowApi[key];
54
- }
55
- });
56
- });
57
-
58
- var _farrowPipeline = require("farrow-pipeline");
46
+ var _bffCore = require("@modern-js/bff-core");
59
47
 
60
- Object.keys(_farrowPipeline).forEach(function (key) {
48
+ Object.keys(_bffCore).forEach(function (key) {
61
49
  if (key === "default" || key === "__esModule") return;
62
50
  if (Object.prototype.hasOwnProperty.call(_exportNames, key)) return;
63
- if (key in exports && exports[key] === _farrowPipeline[key]) return;
51
+ if (key in exports && exports[key] === _bffCore[key]) return;
64
52
  Object.defineProperty(exports, key, {
65
53
  enumerable: true,
66
54
  get: function () {
67
- return _farrowPipeline[key];
55
+ return _bffCore[key];
68
56
  }
69
57
  });
70
- });
71
-
72
- var _match = require("./match");
58
+ });
@@ -1,4 +1,5 @@
1
- export * from 'farrow-schema';
2
- export * from 'farrow-api';
3
- export * from 'farrow-pipeline';
4
- export { match, isHandler, isSchemaHandler } from "./match";
1
+ export * from 'farrow-schema'; // export * from 'farrow-api';
2
+ // export * from 'farrow-pipeline';
3
+
4
+ export { match, isHandler, isSchemaHandler } from "./match";
5
+ export * from '@modern-js/bff-core';
@@ -1,8 +1,7 @@
1
1
  export * from 'farrow-schema';
2
- export * from 'farrow-api';
3
- export * from 'farrow-pipeline';
4
2
  export { match, isHandler, isSchemaHandler } from './match';
5
3
  export type { Handler, SchemaHandler } from './match';
6
4
  export type { RequestSchema, TypeOfRequestSchema, InputType } from './request';
7
5
  export type { HandleResult, HandleSuccess, InputValidationError, OutputValidationError } from './response';
8
- export type { RequestOption } from './compatible';
6
+ export type { RequestOption } from './compatible';
7
+ export * from '@modern-js/bff-core';
package/package.json CHANGED
@@ -11,7 +11,7 @@
11
11
  "modern",
12
12
  "modern.js"
13
13
  ],
14
- "version": "1.2.4",
14
+ "version": "1.2.5-beta.0",
15
15
  "jsnext:source": "./src/index.ts",
16
16
  "types": "./dist/types/index.d.ts",
17
17
  "main": "./dist/js/node/index.js",
@@ -28,27 +28,29 @@
28
28
  }
29
29
  },
30
30
  "dependencies": {
31
- "@babel/runtime": "^7.18.0",
32
- "@modern-js/server-utils": "^1.2.10",
31
+ "@babel/runtime": "^7",
32
+ "@modern-js/bff-core": "^1.0.0",
33
+ "@modern-js/server-utils": "^1.2.6",
33
34
  "farrow-api": "^1.10.8",
34
35
  "farrow-http": "^1.10.8",
35
36
  "farrow-pipeline": "^1.10.6",
36
37
  "farrow-schema": "^1.10.8"
37
38
  },
38
39
  "devDependencies": {
40
+ "@scripts/build": "0.0.0",
41
+ "@scripts/jest-config": "0.0.0",
39
42
  "@types/jest": "^27",
40
43
  "@types/node": "^14",
41
44
  "@types/react": "^17",
42
45
  "@types/react-dom": "^17",
43
- "ts-jest": "^27.0.5",
44
- "typescript": "^4",
45
- "@scripts/build": "0.0.0",
46
46
  "jest": "^27",
47
- "@scripts/jest-config": "0.0.0"
47
+ "ts-jest": "^27.0.5",
48
+ "typescript": "^4"
48
49
  },
49
50
  "publishConfig": {
50
51
  "registry": "https://registry.npmjs.org/",
51
- "access": "public"
52
+ "access": "public",
53
+ "types": "./dist/types/index.d.ts"
52
54
  },
53
55
  "wireit": {
54
56
  "build": {