@autometa/executor 1.0.0-rc.1 → 1.0.0-rc.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.
- package/dist/index.cjs +15 -5
- package/dist/index.cjs.map +1 -1
- package/dist/index.d.ts +8 -4
- package/dist/index.js +15 -5
- package/dist/index.js.map +1 -1
- package/dist/runtime/step-data.d.ts +35 -21
- package/package.json +6 -6
|
@@ -1,6 +1,7 @@
|
|
|
1
|
-
import { type HeaderlessTable, type HeaderlessTableOptions, type HorizontalTable, type HorizontalTableOptions, type MatrixTable, type MatrixTableOptions, type TableShape, type VerticalTable, type VerticalTableOptions } from "@autometa/gherkin";
|
|
1
|
+
import { type HeaderlessTable, type HeaderlessTableOptions, type HorizontalTable, type HorizontalTableOptions, type MatrixKeys, type MatrixTable, type MatrixTableOptions, type TableKeysMap, type TableShape, type VerticalTable, type VerticalTableOptions } from "@autometa/gherkin";
|
|
2
2
|
import type { SourceRef, StepExpression, StepKeyword } from "@autometa/scopes";
|
|
3
3
|
export type RawTable = readonly (readonly string[])[];
|
|
4
|
+
type TableOptionsProvider<T> = T | (new () => T);
|
|
4
5
|
export interface DocstringInfo {
|
|
5
6
|
readonly content: string;
|
|
6
7
|
readonly mediaType?: string;
|
|
@@ -69,11 +70,14 @@ export declare function getDocstringMediaType(world: unknown): string | undefine
|
|
|
69
70
|
export declare function getDocstringInfo(world: unknown): DocstringInfo | undefined;
|
|
70
71
|
export declare function getRawTable(world: unknown): RawTable | undefined;
|
|
71
72
|
export declare function getStepRuntimeFromWorld(world: unknown): StepRuntimeHelpers | undefined;
|
|
72
|
-
export declare function getTable(world: unknown, shape: "headerless", options?: HeaderlessTableOptions): HeaderlessTable | undefined;
|
|
73
|
-
export declare function getTable(world: unknown, shape: "horizontal", options?: HorizontalTableOptions): HorizontalTable | undefined;
|
|
74
|
-
export declare function getTable(world: unknown, shape: "vertical", options?: VerticalTableOptions): VerticalTable | undefined;
|
|
75
|
-
export declare function getTable(world: unknown, shape: "matrix", options?: MatrixTableOptions): MatrixTable | undefined;
|
|
76
|
-
export declare function
|
|
73
|
+
export declare function getTable(world: unknown, shape: "headerless", options?: TableOptionsProvider<HeaderlessTableOptions>): HeaderlessTable | undefined;
|
|
74
|
+
export declare function getTable(world: unknown, shape: "horizontal", options?: TableOptionsProvider<HorizontalTableOptions>): HorizontalTable | undefined;
|
|
75
|
+
export declare function getTable(world: unknown, shape: "vertical", options?: TableOptionsProvider<VerticalTableOptions>): VerticalTable | undefined;
|
|
76
|
+
export declare function getTable(world: unknown, shape: "matrix", options?: TableOptionsProvider<MatrixTableOptions>): MatrixTable | undefined;
|
|
77
|
+
export declare function getTable<TKeys extends TableKeysMap>(world: unknown, shape: "horizontal", options?: TableOptionsProvider<HorizontalTableOptions<TKeys>>): HorizontalTable | undefined;
|
|
78
|
+
export declare function getTable<TKeys extends TableKeysMap>(world: unknown, shape: "vertical", options?: TableOptionsProvider<VerticalTableOptions<TKeys>>): VerticalTable | undefined;
|
|
79
|
+
export declare function getTable<TKeys extends MatrixKeys>(world: unknown, shape: "matrix", options?: TableOptionsProvider<MatrixTableOptions<TKeys>>): MatrixTable | undefined;
|
|
80
|
+
export declare function consumeTable(world: unknown, shape: TableShape, options?: TableOptionsProvider<HeaderlessTableOptions> | TableOptionsProvider<HorizontalTableOptions> | TableOptionsProvider<VerticalTableOptions> | TableOptionsProvider<MatrixTableOptions>): HeaderlessTable | HorizontalTable | VerticalTable | MatrixTable | undefined;
|
|
77
81
|
export declare function consumeDocstring(world: unknown): string | undefined;
|
|
78
82
|
export declare function configureStepDocstrings(config: Partial<DocstringTransformConfig>): void;
|
|
79
83
|
export declare function resetStepDocstringConfig(): void;
|
|
@@ -81,21 +85,30 @@ export interface StepRuntimeHelpers {
|
|
|
81
85
|
readonly hasTable: boolean;
|
|
82
86
|
readonly hasDocstring: boolean;
|
|
83
87
|
readonly currentStep: StepRuntimeMetadata | undefined;
|
|
84
|
-
getTable(shape: "headerless", options?: HeaderlessTableOptions): HeaderlessTable | undefined;
|
|
85
|
-
getTable(shape: "horizontal", options?: HorizontalTableOptions): HorizontalTable | undefined;
|
|
86
|
-
getTable(shape: "
|
|
87
|
-
getTable(shape: "
|
|
88
|
-
getTable(shape:
|
|
89
|
-
|
|
90
|
-
|
|
91
|
-
|
|
92
|
-
consumeTable(shape: "
|
|
93
|
-
consumeTable(shape:
|
|
94
|
-
|
|
95
|
-
|
|
96
|
-
|
|
97
|
-
|
|
98
|
-
|
|
88
|
+
getTable(shape: "headerless", options?: TableOptionsProvider<HeaderlessTableOptions>): HeaderlessTable | undefined;
|
|
89
|
+
getTable(shape: "horizontal", options?: TableOptionsProvider<HorizontalTableOptions>): HorizontalTable | undefined;
|
|
90
|
+
getTable<TKeys extends TableKeysMap>(shape: "horizontal", options?: TableOptionsProvider<HorizontalTableOptions<TKeys>>): HorizontalTable | undefined;
|
|
91
|
+
getTable(shape: "vertical", options?: TableOptionsProvider<VerticalTableOptions>): VerticalTable | undefined;
|
|
92
|
+
getTable<TKeys extends TableKeysMap>(shape: "vertical", options?: TableOptionsProvider<VerticalTableOptions<TKeys>>): VerticalTable | undefined;
|
|
93
|
+
getTable(shape: "matrix", options?: TableOptionsProvider<MatrixTableOptions>): MatrixTable | undefined;
|
|
94
|
+
getTable<TKeys extends MatrixKeys>(shape: "matrix", options?: TableOptionsProvider<MatrixTableOptions<TKeys>>): MatrixTable | undefined;
|
|
95
|
+
getTable(shape: TableShape, options?: TableOptionsProvider<HeaderlessTableOptions> | TableOptionsProvider<HorizontalTableOptions> | TableOptionsProvider<VerticalTableOptions> | TableOptionsProvider<MatrixTableOptions>): HeaderlessTable | HorizontalTable | VerticalTable | MatrixTable | undefined;
|
|
96
|
+
consumeTable(shape: "headerless", options?: TableOptionsProvider<HeaderlessTableOptions>): HeaderlessTable | undefined;
|
|
97
|
+
consumeTable(shape: "horizontal", options?: TableOptionsProvider<HorizontalTableOptions>): HorizontalTable | undefined;
|
|
98
|
+
consumeTable<TKeys extends TableKeysMap>(shape: "horizontal", options?: TableOptionsProvider<HorizontalTableOptions<TKeys>>): HorizontalTable | undefined;
|
|
99
|
+
consumeTable(shape: "vertical", options?: TableOptionsProvider<VerticalTableOptions>): VerticalTable | undefined;
|
|
100
|
+
consumeTable<TKeys extends TableKeysMap>(shape: "vertical", options?: TableOptionsProvider<VerticalTableOptions<TKeys>>): VerticalTable | undefined;
|
|
101
|
+
consumeTable(shape: "matrix", options?: TableOptionsProvider<MatrixTableOptions>): MatrixTable | undefined;
|
|
102
|
+
consumeTable<TKeys extends MatrixKeys>(shape: "matrix", options?: TableOptionsProvider<MatrixTableOptions<TKeys>>): MatrixTable | undefined;
|
|
103
|
+
consumeTable(shape: TableShape, options?: TableOptionsProvider<HeaderlessTableOptions> | TableOptionsProvider<HorizontalTableOptions> | TableOptionsProvider<VerticalTableOptions> | TableOptionsProvider<MatrixTableOptions>): HeaderlessTable | HorizontalTable | VerticalTable | MatrixTable | undefined;
|
|
104
|
+
requireTable(shape: "headerless", options?: TableOptionsProvider<HeaderlessTableOptions>): HeaderlessTable;
|
|
105
|
+
requireTable(shape: "horizontal", options?: TableOptionsProvider<HorizontalTableOptions>): HorizontalTable;
|
|
106
|
+
requireTable<TKeys extends TableKeysMap>(shape: "horizontal", options?: TableOptionsProvider<HorizontalTableOptions<TKeys>>): HorizontalTable;
|
|
107
|
+
requireTable(shape: "vertical", options?: TableOptionsProvider<VerticalTableOptions>): VerticalTable;
|
|
108
|
+
requireTable<TKeys extends TableKeysMap>(shape: "vertical", options?: TableOptionsProvider<VerticalTableOptions<TKeys>>): VerticalTable;
|
|
109
|
+
requireTable(shape: "matrix", options?: TableOptionsProvider<MatrixTableOptions>): MatrixTable;
|
|
110
|
+
requireTable<TKeys extends MatrixKeys>(shape: "matrix", options?: TableOptionsProvider<MatrixTableOptions<TKeys>>): MatrixTable;
|
|
111
|
+
requireTable(shape: TableShape, options?: TableOptionsProvider<HeaderlessTableOptions> | TableOptionsProvider<HorizontalTableOptions> | TableOptionsProvider<VerticalTableOptions> | TableOptionsProvider<MatrixTableOptions>): HeaderlessTable | HorizontalTable | VerticalTable | MatrixTable;
|
|
99
112
|
getRawTable(): RawTable | undefined;
|
|
100
113
|
getDocstring(): string | undefined;
|
|
101
114
|
getDocstringMediaType(): string | undefined;
|
|
@@ -110,3 +123,4 @@ export interface StepRuntimeHelpers {
|
|
|
110
123
|
getStepMetadata(): StepRuntimeMetadata | undefined;
|
|
111
124
|
}
|
|
112
125
|
export declare function createStepRuntime(world: unknown): StepRuntimeHelpers;
|
|
126
|
+
export {};
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@autometa/executor",
|
|
3
|
-
"version": "1.0.0-rc.
|
|
3
|
+
"version": "1.0.0-rc.2",
|
|
4
4
|
"description": "",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"main": "dist/index.cjs",
|
|
@@ -18,12 +18,12 @@
|
|
|
18
18
|
"dependencies": {
|
|
19
19
|
"@cucumber/cucumber-expressions": "^16.1.2",
|
|
20
20
|
"@cucumber/tag-expressions": "^5.0.1",
|
|
21
|
-
"@autometa/
|
|
22
|
-
"@autometa/
|
|
23
|
-
"@autometa/gherkin": "1.0.0-rc.
|
|
24
|
-
"@autometa/config": "1.0.0-rc.
|
|
21
|
+
"@autometa/events": "1.0.0-rc.2",
|
|
22
|
+
"@autometa/errors": "1.0.0-rc.2",
|
|
23
|
+
"@autometa/gherkin": "1.0.0-rc.2",
|
|
24
|
+
"@autometa/config": "1.0.0-rc.2",
|
|
25
25
|
"@autometa/scopes": "1.0.0-rc.1",
|
|
26
|
-
"@autometa/test-builder": "1.0.0-rc.
|
|
26
|
+
"@autometa/test-builder": "1.0.0-rc.2"
|
|
27
27
|
},
|
|
28
28
|
"license": "MIT",
|
|
29
29
|
"devDependencies": {
|