@haibun/core 1.45.0 → 1.45.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/package.json +1 -1
- package/build/lib/test/TestSteps.d.ts +0 -33
- package/build/lib/test/TestSteps.d.ts.map +0 -1
- package/build/lib/test/TestSteps.js +0 -32
- package/build/lib/test/TestSteps.js.map +0 -1
- package/build/steps/parse.d.ts +0 -25
- package/build/steps/parse.d.ts.map +0 -1
- package/build/steps/parse.js +0 -30
- package/build/steps/parse.js.map +0 -1
package/package.json
CHANGED
|
@@ -1,33 +0,0 @@
|
|
|
1
|
-
import { TNamed, AStepper } from '../defs.js';
|
|
2
|
-
declare const TestSteps: {
|
|
3
|
-
new (): {
|
|
4
|
-
steps: {
|
|
5
|
-
fails: {
|
|
6
|
-
gwta: string;
|
|
7
|
-
action: () => Promise<import("../defs.js").TNotOKActionResult>;
|
|
8
|
-
};
|
|
9
|
-
test: {
|
|
10
|
-
exact: string;
|
|
11
|
-
action: () => Promise<import("../defs.js").TOKActionResult>;
|
|
12
|
-
};
|
|
13
|
-
passes: {
|
|
14
|
-
exact: string;
|
|
15
|
-
action: () => Promise<import("../defs.js").TOKActionResult>;
|
|
16
|
-
};
|
|
17
|
-
named: {
|
|
18
|
-
match: RegExp;
|
|
19
|
-
action: ({ param }: TNamed) => Promise<import("../defs.js").TNotOKActionResult | import("../defs.js").TOKActionResult>;
|
|
20
|
-
};
|
|
21
|
-
throws: {
|
|
22
|
-
gwta: string;
|
|
23
|
-
action: () => never;
|
|
24
|
-
};
|
|
25
|
-
};
|
|
26
|
-
world?: import("../defs.js").TWorld;
|
|
27
|
-
cycles?: import("../defs.js").IStepperCycles;
|
|
28
|
-
setWorld(world: import("../defs.js").TWorld, steppers: AStepper[]): Promise<void>;
|
|
29
|
-
getWorld(): import("../defs.js").TWorld;
|
|
30
|
-
};
|
|
31
|
-
};
|
|
32
|
-
export default TestSteps;
|
|
33
|
-
//# sourceMappingURL=TestSteps.d.ts.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"TestSteps.d.ts","sourceRoot":"","sources":["../../../src/lib/test/TestSteps.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,MAAM,EAAE,QAAQ,EAAM,MAAM,YAAY,CAAC;AAGlD,QAAA,MAAM,SAAS;;;;;;;;;;;;;;;;;oCAgBc,MAAM;;;;;;;;;;;;CAWlC,CAAC;AAEF,eAAe,SAAS,CAAC"}
|
|
@@ -1,32 +0,0 @@
|
|
|
1
|
-
import { AStepper, OK } from '../defs.js';
|
|
2
|
-
import { actionNotOK } from '../util/index.js';
|
|
3
|
-
const TestSteps = class TestSteps extends AStepper {
|
|
4
|
-
steps = {
|
|
5
|
-
fails: {
|
|
6
|
-
gwta: 'fails',
|
|
7
|
-
action: async () => Promise.resolve(actionNotOK('test fail')),
|
|
8
|
-
},
|
|
9
|
-
test: {
|
|
10
|
-
exact: 'have a test',
|
|
11
|
-
action: async () => Promise.resolve(OK),
|
|
12
|
-
},
|
|
13
|
-
passes: {
|
|
14
|
-
exact: 'passes',
|
|
15
|
-
action: async () => Promise.resolve(OK),
|
|
16
|
-
},
|
|
17
|
-
named: {
|
|
18
|
-
match: /^parameter (?<param>.+) is accepted$/,
|
|
19
|
-
action: async ({ param }) => {
|
|
20
|
-
return Promise.resolve(param === 'x' ? OK : actionNotOK('test'));
|
|
21
|
-
},
|
|
22
|
-
},
|
|
23
|
-
throws: {
|
|
24
|
-
gwta: 'throw an exception',
|
|
25
|
-
action: () => {
|
|
26
|
-
throw Error(`<Thrown for test case>`);
|
|
27
|
-
},
|
|
28
|
-
},
|
|
29
|
-
};
|
|
30
|
-
};
|
|
31
|
-
export default TestSteps;
|
|
32
|
-
//# sourceMappingURL=TestSteps.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"TestSteps.js","sourceRoot":"","sources":["../../../src/lib/test/TestSteps.ts"],"names":[],"mappings":"AACA,OAAO,EAAU,QAAQ,EAAE,EAAE,EAAE,MAAM,YAAY,CAAC;AAClD,OAAO,EAAE,WAAW,EAAE,MAAM,kBAAkB,CAAC;AAE/C,MAAM,SAAS,GAAG,MAAM,SAAU,SAAQ,QAAQ;IACjD,KAAK,GAAG;QACP,KAAK,EAAE;YACN,IAAI,EAAE,OAAO;YACb,MAAM,EAAE,KAAK,IAAI,EAAE,CAAC,OAAO,CAAC,OAAO,CAAC,WAAW,CAAC,WAAW,CAAC,CAAC;SAC7D;QACD,IAAI,EAAE;YACL,KAAK,EAAE,aAAa;YACpB,MAAM,EAAE,KAAK,IAAI,EAAE,CAAC,OAAO,CAAC,OAAO,CAAC,EAAE,CAAC;SACvC;QACD,MAAM,EAAE;YACP,KAAK,EAAE,QAAQ;YACf,MAAM,EAAE,KAAK,IAAI,EAAE,CAAC,OAAO,CAAC,OAAO,CAAC,EAAE,CAAC;SACvC;QACD,KAAK,EAAE;YACN,KAAK,EAAE,sCAAsC;YAC7C,MAAM,EAAE,KAAK,EAAE,EAAE,KAAK,EAAU,EAAE,EAAE;gBACnC,OAAO,OAAO,CAAC,OAAO,CAAC,KAAK,KAAK,GAAG,CAAC,CAAC,CAAC,EAAE,CAAC,CAAC,CAAC,WAAW,CAAC,MAAM,CAAC,CAAC,CAAC;YAClE,CAAC;SACD;QACD,MAAM,EAAE;YACP,IAAI,EAAE,oBAAoB;YAC1B,MAAM,EAAE,GAAG,EAAE;gBACZ,MAAM,KAAK,CAAC,wBAAwB,CAAC,CAAC;YACvC,CAAC;SACD;KACD,CAAC;CACF,CAAC;AAEF,eAAe,SAAS,CAAC"}
|
package/build/steps/parse.d.ts
DELETED
|
@@ -1,25 +0,0 @@
|
|
|
1
|
-
import { AStepper } from '../lib/defs.js';
|
|
2
|
-
declare const Parse: {
|
|
3
|
-
new (): {
|
|
4
|
-
steps: {
|
|
5
|
-
must: {
|
|
6
|
-
match: RegExp;
|
|
7
|
-
action: () => Promise<import("../lib/defs.js").TNotOKActionResult>;
|
|
8
|
-
};
|
|
9
|
-
fulfills: {
|
|
10
|
-
gwta: string;
|
|
11
|
-
action: () => Promise<import("../lib/defs.js").TOKActionResult>;
|
|
12
|
-
};
|
|
13
|
-
conformance: {
|
|
14
|
-
gwta: string;
|
|
15
|
-
action: () => Promise<import("../lib/defs.js").TNotOKActionResult | import("../lib/defs.js").TOKActionResult>;
|
|
16
|
-
};
|
|
17
|
-
};
|
|
18
|
-
world?: import("../lib/defs.js").TWorld;
|
|
19
|
-
cycles?: import("../lib/defs.js").IStepperCycles;
|
|
20
|
-
setWorld(world: import("../lib/defs.js").TWorld, steppers: AStepper[]): Promise<void>;
|
|
21
|
-
getWorld(): import("../lib/defs.js").TWorld;
|
|
22
|
-
};
|
|
23
|
-
};
|
|
24
|
-
export default Parse;
|
|
25
|
-
//# sourceMappingURL=parse.d.ts.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"parse.d.ts","sourceRoot":"","sources":["../../src/steps/parse.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,QAAQ,EAAM,MAAM,gBAAgB,CAAC;AAE9C,QAAA,MAAM,KAAK;;;;;;;;;;;;;;;;;;;;;CAwBV,CAAC;AAEF,eAAe,KAAK,CAAC"}
|
package/build/steps/parse.js
DELETED
|
@@ -1,30 +0,0 @@
|
|
|
1
|
-
import { actionNotOK } from '../lib/util/index.js';
|
|
2
|
-
import { AStepper, OK } from '../lib/defs.js';
|
|
3
|
-
const Parse = class Parse extends AStepper {
|
|
4
|
-
steps = {
|
|
5
|
-
must: {
|
|
6
|
-
match: /(?!\n|. )\b([A-Z].*? must .*?\.)/,
|
|
7
|
-
action: async () => Promise.resolve(actionNotOK('not implemented')),
|
|
8
|
-
},
|
|
9
|
-
fulfills: {
|
|
10
|
-
gwta: 'fulfills: {what}',
|
|
11
|
-
action: async () => {
|
|
12
|
-
return Promise.resolve(OK);
|
|
13
|
-
},
|
|
14
|
-
},
|
|
15
|
-
conformance: {
|
|
16
|
-
gwta: `has annotated conformance doc from {where: string}`,
|
|
17
|
-
action: async () => {
|
|
18
|
-
try {
|
|
19
|
-
// await parseMatches({ where: undefined }, this.getWorld().options.base as string, [conformance]);
|
|
20
|
-
}
|
|
21
|
-
catch (e) {
|
|
22
|
-
return Promise.resolve(actionNotOK(e.message));
|
|
23
|
-
}
|
|
24
|
-
return Promise.resolve(OK);
|
|
25
|
-
},
|
|
26
|
-
},
|
|
27
|
-
};
|
|
28
|
-
};
|
|
29
|
-
export default Parse;
|
|
30
|
-
//# sourceMappingURL=parse.js.map
|
package/build/steps/parse.js.map
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"parse.js","sourceRoot":"","sources":["../../src/steps/parse.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,WAAW,EAAE,MAAM,sBAAsB,CAAC;AACnD,OAAO,EAAE,QAAQ,EAAE,EAAE,EAAE,MAAM,gBAAgB,CAAC;AAE9C,MAAM,KAAK,GAAG,MAAM,KAAM,SAAQ,QAAQ;IACzC,KAAK,GAAG;QACP,IAAI,EAAE;YACL,KAAK,EAAE,kCAAkC;YACzC,MAAM,EAAE,KAAK,IAAI,EAAE,CAAC,OAAO,CAAC,OAAO,CAAC,WAAW,CAAC,iBAAiB,CAAC,CAAC;SACnE;QACD,QAAQ,EAAE;YACT,IAAI,EAAE,kBAAkB;YACxB,MAAM,EAAE,KAAK,IAAI,EAAE;gBAClB,OAAO,OAAO,CAAC,OAAO,CAAC,EAAE,CAAC,CAAC;YAC5B,CAAC;SACD;QACD,WAAW,EAAE;YACZ,IAAI,EAAE,oDAAoD;YAC1D,MAAM,EAAE,KAAK,IAAI,EAAE;gBAClB,IAAI,CAAC;oBACJ,mGAAmG;gBACpG,CAAC;gBAAC,OAAO,CAAC,EAAE,CAAC;oBACZ,OAAO,OAAO,CAAC,OAAO,CAAC,WAAW,CAAC,CAAC,CAAC,OAAO,CAAC,CAAC,CAAC;gBAChD,CAAC;gBACD,OAAO,OAAO,CAAC,OAAO,CAAC,EAAE,CAAC,CAAC;YAC5B,CAAC;SACD;KACD,CAAC;CACF,CAAC;AAEF,eAAe,KAAK,CAAC"}
|