@modern-js/bff-core 1.2.1-beta.1 → 1.2.1-beta.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.
@@ -23,7 +23,7 @@ export function Api(...args) {
23
23
  }
24
24
 
25
25
  const validateHandlers = operators.filter(operator => operator.validate).map(operator => operator.validate);
26
- const pipeHandlers = operators.filter(operator => operator.pipe).map(operator => operator.pipe);
26
+ const pipeHandlers = operators.filter(operator => operator.execute).map(operator => operator.execute);
27
27
 
28
28
  async function runner(inputs) {
29
29
  const executeHelper = {
@@ -35,7 +35,7 @@ function Api(...args) {
35
35
  }
36
36
 
37
37
  const validateHandlers = operators.filter(operator => operator.validate).map(operator => operator.validate);
38
- const pipeHandlers = operators.filter(operator => operator.pipe).map(operator => operator.pipe);
38
+ const pipeHandlers = operators.filter(operator => operator.execute).map(operator => operator.execute);
39
39
 
40
40
  async function runner(inputs) {
41
41
  const executeHelper = {
@@ -45,7 +45,7 @@ export declare type Operator<Input> = {
45
45
  inputType?: Input;
46
46
  metadata?: (helper: MetadataHelper) => void;
47
47
  validate?: ExecuteFunc;
48
- pipe?: ExecuteFunc;
48
+ execute?: ExecuteFunc;
49
49
  };
50
50
  export declare type MaybeAsync<T> = Promise<T> | T;
51
51
  export declare type ApiRunner<Input extends object | void | unknown, Output extends MaybeAsync<any>> = (...args: Input extends void ? never : [input: Input]) => Output;
package/package.json CHANGED
@@ -11,7 +11,7 @@
11
11
  "modern",
12
12
  "modern.js"
13
13
  ],
14
- "version": "1.2.1-beta.1",
14
+ "version": "1.2.1-beta.2",
15
15
  "jsnext:source": "./src/index.ts",
16
16
  "types": "./dist/types/index.d.ts",
17
17
  "main": "./dist/js/node/index.js",