@lynxwall/cucumber-tsflow 6.1.0 → 6.2.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.
- package/README.md +62 -21
- package/lib/behave.d.ts +1 -1
- package/lib/behave.js +27 -27
- package/lib/cli/argv-parser.d.ts +24 -24
- package/lib/cli/argv-parser.js +103 -103
- package/lib/cli/index.d.ts +21 -22
- package/lib/cli/index.js +95 -101
- package/lib/cli/load-configuration.d.ts +20 -20
- package/lib/cli/load-configuration.js +101 -93
- package/lib/cli/run.d.ts +1 -1
- package/lib/cli/run.js +49 -47
- package/lib/cucumber/binding-decorator.d.ts +10 -10
- package/lib/cucumber/binding-decorator.js +180 -180
- package/lib/cucumber/binding-registry.d.ts +82 -82
- package/lib/cucumber/binding-registry.js +215 -215
- package/lib/cucumber/hook-decorators.d.ts +46 -46
- package/lib/cucumber/hook-decorators.js +102 -102
- package/lib/cucumber/managed-scenario-context.d.ts +21 -21
- package/lib/cucumber/managed-scenario-context.js +95 -95
- package/lib/cucumber/message-collector.d.ts +81 -81
- package/lib/cucumber/message-collector.js +250 -250
- package/lib/cucumber/parallel/coordinator.d.ts +79 -79
- package/lib/cucumber/parallel/coordinator.js +246 -246
- package/lib/cucumber/parallel/run-worker.d.ts +1 -1
- package/lib/cucumber/parallel/run-worker.js +31 -31
- package/lib/cucumber/parallel/worker.d.ts +30 -30
- package/lib/cucumber/parallel/worker.js +103 -103
- package/lib/cucumber/run-cucumber.d.ts +14 -14
- package/lib/cucumber/run-cucumber.js +118 -118
- package/lib/cucumber/runtime.d.ts +25 -25
- package/lib/cucumber/runtime.js +39 -39
- package/lib/cucumber/step-definition-decorators.d.ts +24 -24
- package/lib/cucumber/step-definition-decorators.js +91 -91
- package/lib/cucumber/utils.d.ts +16 -16
- package/lib/cucumber/utils.js +77 -77
- package/lib/esnode.js +18 -18
- package/lib/esvue.d.ts +1 -1
- package/lib/esvue.js +40 -40
- package/lib/formatters/behave-json-formatter.d.ts +49 -49
- package/lib/formatters/behave-json-formatter.js +74 -74
- package/lib/formatters/tsflow-snippet-syntax.d.ts +9 -9
- package/lib/formatters/tsflow-snippet-syntax.js +89 -89
- package/lib/gherkin/configuration.d.ts +30 -30
- package/lib/gherkin/configuration.js +26 -26
- package/lib/gherkin/gherkin-feature.d.ts +28 -28
- package/lib/gherkin/gherkin-feature.js +353 -333
- package/lib/gherkin/gherkin-manager.d.ts +29 -29
- package/lib/gherkin/gherkin-manager.js +143 -139
- package/lib/gherkin/models.d.ts +46 -45
- package/lib/gherkin/models.js +2 -2
- package/lib/index.d.ts +4 -4
- package/lib/index.js +22 -22
- package/lib/snippet.d.ts +1 -1
- package/lib/snippet.js +27 -27
- package/lib/transpilers/esbuild-transpiler.d.ts +4 -4
- package/lib/transpilers/esbuild-transpiler.js +18 -18
- package/lib/transpilers/esbuild.d.ts +12 -12
- package/lib/transpilers/esbuild.js +54 -54
- package/lib/transpilers/vue-sfc/compiler.d.ts +7 -7
- package/lib/transpilers/vue-sfc/compiler.js +21 -21
- package/lib/transpilers/vue-sfc/index.d.ts +23 -23
- package/lib/transpilers/vue-sfc/index.js +46 -46
- package/lib/transpilers/vue-sfc/main.d.ts +8 -8
- package/lib/transpilers/vue-sfc/main.js +247 -247
- package/lib/transpilers/vue-sfc/script.d.ts +5 -5
- package/lib/transpilers/vue-sfc/script.js +41 -41
- package/lib/transpilers/vue-sfc/template.d.ts +8 -8
- package/lib/transpilers/vue-sfc/template.js +101 -101
- package/lib/transpilers/vue-sfc/types.d.ts +55 -55
- package/lib/transpilers/vue-sfc/types.js +2 -2
- package/lib/transpilers/vue-sfc/utils/descriptorCache.d.ts +13 -13
- package/lib/transpilers/vue-sfc/utils/descriptorCache.js +67 -67
- package/lib/transpilers/vue-sfc/utils/error.d.ts +3 -3
- package/lib/transpilers/vue-sfc/utils/error.js +22 -22
- package/lib/transpilers/vue-sfc/utils/query.d.ts +13 -13
- package/lib/transpilers/vue-sfc/utils/query.js +35 -35
- package/lib/tsnode.js +17 -17
- package/lib/tsvue.d.ts +1 -1
- package/lib/tsvue.js +39 -39
- package/lib/types/scenario-context.d.ts +16 -16
- package/lib/types/scenario-context.js +17 -17
- package/lib/types/scenario-info.d.ts +16 -16
- package/lib/types/scenario-info.js +22 -22
- package/lib/types/step-binding-flags.d.ts +53 -53
- package/lib/types/step-binding-flags.js +59 -59
- package/lib/types/step-binding.d.ts +50 -50
- package/lib/types/step-binding.js +17 -17
- package/lib/types/types.d.ts +21 -21
- package/lib/types/types.js +2 -2
- package/lib/utils/helpers.d.ts +6 -6
- package/lib/utils/helpers.js +17 -17
- package/lib/utils/logger.d.ts +3 -3
- package/lib/utils/logger.js +29 -29
- package/lib/utils/our-callsite.d.ts +27 -27
- package/lib/utils/our-callsite.js +72 -72
- package/lib/version.d.ts +1 -1
- package/lib/version.js +5 -5
- package/package.json +16 -16
|
@@ -1,50 +1,50 @@
|
|
|
1
|
-
import { Callsite } from '../utils/our-callsite';
|
|
2
|
-
import { StepBindingFlags } from './step-binding-flags';
|
|
3
|
-
/**
|
|
4
|
-
* Encapsulates data about a step binding.
|
|
5
|
-
*/
|
|
6
|
-
export interface StepBinding {
|
|
7
|
-
/**
|
|
8
|
-
* The step pattern.
|
|
9
|
-
*/
|
|
10
|
-
stepPattern: RegExp | string;
|
|
11
|
-
/**
|
|
12
|
-
* The step binding type.
|
|
13
|
-
*/
|
|
14
|
-
bindingType: StepBindingFlags;
|
|
15
|
-
/**
|
|
16
|
-
* The type that is associated with the current step binding.
|
|
17
|
-
*/
|
|
18
|
-
targetPrototype: any;
|
|
19
|
-
/**
|
|
20
|
-
* The function name that is associated with the current step binding.
|
|
21
|
-
*/
|
|
22
|
-
targetPropertyKey: string | symbol;
|
|
23
|
-
/**
|
|
24
|
-
* The count of arguments that have been specified on the [[StepBindingDescriptor.targetPropertyKey]].
|
|
25
|
-
*/
|
|
26
|
-
argsLength: number;
|
|
27
|
-
/**
|
|
28
|
-
* The optional tag(s) that are associated with the current step binding.
|
|
29
|
-
*/
|
|
30
|
-
tags?: string;
|
|
31
|
-
/**
|
|
32
|
-
* The optiomal timeout that is associated with the current step binding.
|
|
33
|
-
*/
|
|
34
|
-
timeout?: number;
|
|
35
|
-
/**
|
|
36
|
-
* The wrapper Option passing to cucumber
|
|
37
|
-
*/
|
|
38
|
-
wrapperOption?: any;
|
|
39
|
-
/**
|
|
40
|
-
* The callsite of the step binding.
|
|
41
|
-
*/
|
|
42
|
-
callsite: Callsite;
|
|
43
|
-
/**
|
|
44
|
-
* Key passed in with options in cucumber step bindings.
|
|
45
|
-
* This property is used to match tsflow step definitions
|
|
46
|
-
* with cucumber step definitions.
|
|
47
|
-
*/
|
|
48
|
-
cucumberKey: string;
|
|
49
|
-
}
|
|
50
|
-
export * from './step-binding-flags';
|
|
1
|
+
import { Callsite } from '../utils/our-callsite';
|
|
2
|
+
import { StepBindingFlags } from './step-binding-flags';
|
|
3
|
+
/**
|
|
4
|
+
* Encapsulates data about a step binding.
|
|
5
|
+
*/
|
|
6
|
+
export interface StepBinding {
|
|
7
|
+
/**
|
|
8
|
+
* The step pattern.
|
|
9
|
+
*/
|
|
10
|
+
stepPattern: RegExp | string;
|
|
11
|
+
/**
|
|
12
|
+
* The step binding type.
|
|
13
|
+
*/
|
|
14
|
+
bindingType: StepBindingFlags;
|
|
15
|
+
/**
|
|
16
|
+
* The type that is associated with the current step binding.
|
|
17
|
+
*/
|
|
18
|
+
targetPrototype: any;
|
|
19
|
+
/**
|
|
20
|
+
* The function name that is associated with the current step binding.
|
|
21
|
+
*/
|
|
22
|
+
targetPropertyKey: string | symbol;
|
|
23
|
+
/**
|
|
24
|
+
* The count of arguments that have been specified on the [[StepBindingDescriptor.targetPropertyKey]].
|
|
25
|
+
*/
|
|
26
|
+
argsLength: number;
|
|
27
|
+
/**
|
|
28
|
+
* The optional tag(s) that are associated with the current step binding.
|
|
29
|
+
*/
|
|
30
|
+
tags?: string;
|
|
31
|
+
/**
|
|
32
|
+
* The optiomal timeout that is associated with the current step binding.
|
|
33
|
+
*/
|
|
34
|
+
timeout?: number;
|
|
35
|
+
/**
|
|
36
|
+
* The wrapper Option passing to cucumber
|
|
37
|
+
*/
|
|
38
|
+
wrapperOption?: any;
|
|
39
|
+
/**
|
|
40
|
+
* The callsite of the step binding.
|
|
41
|
+
*/
|
|
42
|
+
callsite: Callsite;
|
|
43
|
+
/**
|
|
44
|
+
* Key passed in with options in cucumber step bindings.
|
|
45
|
+
* This property is used to match tsflow step definitions
|
|
46
|
+
* with cucumber step definitions.
|
|
47
|
+
*/
|
|
48
|
+
cucumberKey: string;
|
|
49
|
+
}
|
|
50
|
+
export * from './step-binding-flags';
|
|
@@ -1,18 +1,18 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
|
|
3
|
-
if (k2 === undefined) k2 = k;
|
|
4
|
-
var desc = Object.getOwnPropertyDescriptor(m, k);
|
|
5
|
-
if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
|
|
6
|
-
desc = { enumerable: true, get: function() { return m[k]; } };
|
|
7
|
-
}
|
|
8
|
-
Object.defineProperty(o, k2, desc);
|
|
9
|
-
}) : (function(o, m, k, k2) {
|
|
10
|
-
if (k2 === undefined) k2 = k;
|
|
11
|
-
o[k2] = m[k];
|
|
12
|
-
}));
|
|
13
|
-
var __exportStar = (this && this.__exportStar) || function(m, exports) {
|
|
14
|
-
for (var p in m) if (p !== "default" && !Object.prototype.hasOwnProperty.call(exports, p)) __createBinding(exports, m, p);
|
|
15
|
-
};
|
|
16
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
17
|
-
__exportStar(require("./step-binding-flags"), exports);
|
|
1
|
+
"use strict";
|
|
2
|
+
var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
|
|
3
|
+
if (k2 === undefined) k2 = k;
|
|
4
|
+
var desc = Object.getOwnPropertyDescriptor(m, k);
|
|
5
|
+
if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
|
|
6
|
+
desc = { enumerable: true, get: function() { return m[k]; } };
|
|
7
|
+
}
|
|
8
|
+
Object.defineProperty(o, k2, desc);
|
|
9
|
+
}) : (function(o, m, k, k2) {
|
|
10
|
+
if (k2 === undefined) k2 = k;
|
|
11
|
+
o[k2] = m[k];
|
|
12
|
+
}));
|
|
13
|
+
var __exportStar = (this && this.__exportStar) || function(m, exports) {
|
|
14
|
+
for (var p in m) if (p !== "default" && !Object.prototype.hasOwnProperty.call(exports, p)) __createBinding(exports, m, p);
|
|
15
|
+
};
|
|
16
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
17
|
+
__exportStar(require("./step-binding-flags"), exports);
|
|
18
18
|
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoic3RlcC1iaW5kaW5nLmpzIiwic291cmNlUm9vdCI6IiIsInNvdXJjZXMiOlsiLi4vLi4vc3JjL3R5cGVzL3N0ZXAtYmluZGluZy50cyJdLCJuYW1lcyI6W10sIm1hcHBpbmdzIjoiOzs7Ozs7Ozs7Ozs7Ozs7O0FBNERBLHVEQUFxQyJ9
|
package/lib/types/types.d.ts
CHANGED
|
@@ -1,21 +1,21 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* A string representation of a [[RegExp]] that defines a Cucumber step pattern.
|
|
3
|
-
*/
|
|
4
|
-
export type StepPattern = string;
|
|
5
|
-
/**
|
|
6
|
-
* A Cucumber tag name.
|
|
7
|
-
*/
|
|
8
|
-
export type TagName = string;
|
|
9
|
-
/**
|
|
10
|
-
* Represents a class that will be injected into a binding class to provide context
|
|
11
|
-
* during the execution of a Cucumber scenario.
|
|
12
|
-
*/
|
|
13
|
-
export interface ContextType {
|
|
14
|
-
/**
|
|
15
|
-
* A default constructor.
|
|
16
|
-
*/
|
|
17
|
-
new (): any;
|
|
18
|
-
}
|
|
19
|
-
export type TypeDecorator = <T>(target: {
|
|
20
|
-
new (...args: any[]): T;
|
|
21
|
-
}) => void;
|
|
1
|
+
/**
|
|
2
|
+
* A string representation of a [[RegExp]] that defines a Cucumber step pattern.
|
|
3
|
+
*/
|
|
4
|
+
export type StepPattern = string;
|
|
5
|
+
/**
|
|
6
|
+
* A Cucumber tag name.
|
|
7
|
+
*/
|
|
8
|
+
export type TagName = string;
|
|
9
|
+
/**
|
|
10
|
+
* Represents a class that will be injected into a binding class to provide context
|
|
11
|
+
* during the execution of a Cucumber scenario.
|
|
12
|
+
*/
|
|
13
|
+
export interface ContextType {
|
|
14
|
+
/**
|
|
15
|
+
* A default constructor.
|
|
16
|
+
*/
|
|
17
|
+
new (): any;
|
|
18
|
+
}
|
|
19
|
+
export type TypeDecorator = <T>(target: {
|
|
20
|
+
new (...args: any[]): T;
|
|
21
|
+
}) => void;
|
package/lib/types/types.js
CHANGED
|
@@ -1,3 +1,3 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
3
|
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoidHlwZXMuanMiLCJzb3VyY2VSb290IjoiIiwic291cmNlcyI6WyIuLi8uLi9zcmMvdHlwZXMvdHlwZXMudHMiXSwibmFtZXMiOltdLCJtYXBwaW5ncyI6IiJ9
|
package/lib/utils/helpers.d.ts
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* Tests the argument passed it to see if it's a string with data.
|
|
3
|
-
* @param text
|
|
4
|
-
* @returns true if it's a string with data
|
|
5
|
-
*/
|
|
6
|
-
export declare const hasStringValue: (text: any) => boolean;
|
|
1
|
+
/**
|
|
2
|
+
* Tests the argument passed it to see if it's a string with data.
|
|
3
|
+
* @param text
|
|
4
|
+
* @returns true if it's a string with data
|
|
5
|
+
*/
|
|
6
|
+
export declare const hasStringValue: (text: any) => boolean;
|
package/lib/utils/helpers.js
CHANGED
|
@@ -1,18 +1,18 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.hasStringValue = void 0;
|
|
4
|
-
const value_checker_1 = require("@cucumber/cucumber/lib/value_checker");
|
|
5
|
-
/**
|
|
6
|
-
* Tests the argument passed it to see if it's a string with data.
|
|
7
|
-
* @param text
|
|
8
|
-
* @returns true if it's a string with data
|
|
9
|
-
*/
|
|
10
|
-
const hasStringValue = (text) => {
|
|
11
|
-
const isString = (0, value_checker_1.doesHaveValue)(text) && (typeof text === 'string' || text instanceof String);
|
|
12
|
-
if (isString && text.length > 0) {
|
|
13
|
-
return true;
|
|
14
|
-
}
|
|
15
|
-
return false;
|
|
16
|
-
};
|
|
17
|
-
exports.hasStringValue = hasStringValue;
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.hasStringValue = void 0;
|
|
4
|
+
const value_checker_1 = require("@cucumber/cucumber/lib/value_checker");
|
|
5
|
+
/**
|
|
6
|
+
* Tests the argument passed it to see if it's a string with data.
|
|
7
|
+
* @param text
|
|
8
|
+
* @returns true if it's a string with data
|
|
9
|
+
*/
|
|
10
|
+
const hasStringValue = (text) => {
|
|
11
|
+
const isString = (0, value_checker_1.doesHaveValue)(text) && (typeof text === 'string' || text instanceof String);
|
|
12
|
+
if (isString && text.length > 0) {
|
|
13
|
+
return true;
|
|
14
|
+
}
|
|
15
|
+
return false;
|
|
16
|
+
};
|
|
17
|
+
exports.hasStringValue = hasStringValue;
|
|
18
18
|
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiaGVscGVycy5qcyIsInNvdXJjZVJvb3QiOiIiLCJzb3VyY2VzIjpbIi4uLy4uL3NyYy91dGlscy9oZWxwZXJzLnRzIl0sIm5hbWVzIjpbXSwibWFwcGluZ3MiOiI7OztBQUFBLHdFQUFxRTtBQUVyRTs7OztHQUlHO0FBQ0ksTUFBTSxjQUFjLEdBQUcsQ0FBQyxJQUFTLEVBQVcsRUFBRTtJQUNwRCxNQUFNLFFBQVEsR0FBRyxJQUFBLDZCQUFhLEVBQUMsSUFBSSxDQUFDLElBQUksQ0FBQyxPQUFPLElBQUksS0FBSyxRQUFRLElBQUksSUFBSSxZQUFZLE1BQU0sQ0FBQyxDQUFDO0lBQzdGLElBQUksUUFBUSxJQUFJLElBQUksQ0FBQyxNQUFNLEdBQUcsQ0FBQyxFQUFFO1FBQ2hDLE9BQU8sSUFBSSxDQUFDO0tBQ1o7SUFDRCxPQUFPLEtBQUssQ0FBQztBQUNkLENBQUMsQ0FBQztBQU5XLFFBQUEsY0FBYyxrQkFNekIifQ==
|
package/lib/utils/logger.d.ts
CHANGED
|
@@ -1,3 +1,3 @@
|
|
|
1
|
-
import * as log4js from 'log4js';
|
|
2
|
-
declare const logger: log4js.Logger;
|
|
3
|
-
export default logger;
|
|
1
|
+
import * as log4js from 'log4js';
|
|
2
|
+
declare const logger: log4js.Logger;
|
|
3
|
+
export default logger;
|
package/lib/utils/logger.js
CHANGED
|
@@ -1,30 +1,30 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
|
|
3
|
-
if (k2 === undefined) k2 = k;
|
|
4
|
-
var desc = Object.getOwnPropertyDescriptor(m, k);
|
|
5
|
-
if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
|
|
6
|
-
desc = { enumerable: true, get: function() { return m[k]; } };
|
|
7
|
-
}
|
|
8
|
-
Object.defineProperty(o, k2, desc);
|
|
9
|
-
}) : (function(o, m, k, k2) {
|
|
10
|
-
if (k2 === undefined) k2 = k;
|
|
11
|
-
o[k2] = m[k];
|
|
12
|
-
}));
|
|
13
|
-
var __setModuleDefault = (this && this.__setModuleDefault) || (Object.create ? (function(o, v) {
|
|
14
|
-
Object.defineProperty(o, "default", { enumerable: true, value: v });
|
|
15
|
-
}) : function(o, v) {
|
|
16
|
-
o["default"] = v;
|
|
17
|
-
});
|
|
18
|
-
var __importStar = (this && this.__importStar) || function (mod) {
|
|
19
|
-
if (mod && mod.__esModule) return mod;
|
|
20
|
-
var result = {};
|
|
21
|
-
if (mod != null) for (var k in mod) if (k !== "default" && Object.prototype.hasOwnProperty.call(mod, k)) __createBinding(result, mod, k);
|
|
22
|
-
__setModuleDefault(result, mod);
|
|
23
|
-
return result;
|
|
24
|
-
};
|
|
25
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
26
|
-
const log4js = __importStar(require("log4js"));
|
|
27
|
-
const logger = log4js.getLogger('cucumber-js.tsflow');
|
|
28
|
-
logger.level = 'debug'; // default level is OFF - which means no logs at all.
|
|
29
|
-
exports.default = logger;
|
|
1
|
+
"use strict";
|
|
2
|
+
var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
|
|
3
|
+
if (k2 === undefined) k2 = k;
|
|
4
|
+
var desc = Object.getOwnPropertyDescriptor(m, k);
|
|
5
|
+
if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
|
|
6
|
+
desc = { enumerable: true, get: function() { return m[k]; } };
|
|
7
|
+
}
|
|
8
|
+
Object.defineProperty(o, k2, desc);
|
|
9
|
+
}) : (function(o, m, k, k2) {
|
|
10
|
+
if (k2 === undefined) k2 = k;
|
|
11
|
+
o[k2] = m[k];
|
|
12
|
+
}));
|
|
13
|
+
var __setModuleDefault = (this && this.__setModuleDefault) || (Object.create ? (function(o, v) {
|
|
14
|
+
Object.defineProperty(o, "default", { enumerable: true, value: v });
|
|
15
|
+
}) : function(o, v) {
|
|
16
|
+
o["default"] = v;
|
|
17
|
+
});
|
|
18
|
+
var __importStar = (this && this.__importStar) || function (mod) {
|
|
19
|
+
if (mod && mod.__esModule) return mod;
|
|
20
|
+
var result = {};
|
|
21
|
+
if (mod != null) for (var k in mod) if (k !== "default" && Object.prototype.hasOwnProperty.call(mod, k)) __createBinding(result, mod, k);
|
|
22
|
+
__setModuleDefault(result, mod);
|
|
23
|
+
return result;
|
|
24
|
+
};
|
|
25
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
26
|
+
const log4js = __importStar(require("log4js"));
|
|
27
|
+
const logger = log4js.getLogger('cucumber-js.tsflow');
|
|
28
|
+
logger.level = 'debug'; // default level is OFF - which means no logs at all.
|
|
29
|
+
exports.default = logger;
|
|
30
30
|
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoibG9nZ2VyLmpzIiwic291cmNlUm9vdCI6IiIsInNvdXJjZXMiOlsiLi4vLi4vc3JjL3V0aWxzL2xvZ2dlci50cyJdLCJuYW1lcyI6W10sIm1hcHBpbmdzIjoiOzs7Ozs7Ozs7Ozs7Ozs7Ozs7Ozs7Ozs7O0FBQUEsK0NBQWlDO0FBQ2pDLE1BQU0sTUFBTSxHQUFHLE1BQU0sQ0FBQyxTQUFTLENBQUMsb0JBQW9CLENBQUMsQ0FBQztBQUV0RCxNQUFNLENBQUMsS0FBSyxHQUFHLE9BQU8sQ0FBQyxDQUFDLHFEQUFxRDtBQUU3RSxrQkFBZSxNQUFNLENBQUMifQ==
|
|
@@ -1,27 +1,27 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* Represents a callsite of where a step binding is being applied.
|
|
3
|
-
*/
|
|
4
|
-
export declare class Callsite {
|
|
5
|
-
filename: string;
|
|
6
|
-
lineNumber: number;
|
|
7
|
-
private static cwd;
|
|
8
|
-
/**
|
|
9
|
-
* Initializes a new [[Callsite]].
|
|
10
|
-
*
|
|
11
|
-
* @param filename The filename of the callsite.
|
|
12
|
-
* @param lineNumber The line number of the callsite.
|
|
13
|
-
*/
|
|
14
|
-
constructor(filename: string, lineNumber: number);
|
|
15
|
-
/**
|
|
16
|
-
* Returns a string representation of the callsite.
|
|
17
|
-
*
|
|
18
|
-
* @returns A string representing the callsite formatted with the filename and line
|
|
19
|
-
* number.
|
|
20
|
-
*/
|
|
21
|
-
toString(): string;
|
|
22
|
-
private static callsites;
|
|
23
|
-
/**
|
|
24
|
-
* Captures the current [[Callsite]] object.
|
|
25
|
-
*/
|
|
26
|
-
static capture(): Callsite;
|
|
27
|
-
}
|
|
1
|
+
/**
|
|
2
|
+
* Represents a callsite of where a step binding is being applied.
|
|
3
|
+
*/
|
|
4
|
+
export declare class Callsite {
|
|
5
|
+
filename: string;
|
|
6
|
+
lineNumber: number;
|
|
7
|
+
private static cwd;
|
|
8
|
+
/**
|
|
9
|
+
* Initializes a new [[Callsite]].
|
|
10
|
+
*
|
|
11
|
+
* @param filename The filename of the callsite.
|
|
12
|
+
* @param lineNumber The line number of the callsite.
|
|
13
|
+
*/
|
|
14
|
+
constructor(filename: string, lineNumber: number);
|
|
15
|
+
/**
|
|
16
|
+
* Returns a string representation of the callsite.
|
|
17
|
+
*
|
|
18
|
+
* @returns A string representing the callsite formatted with the filename and line
|
|
19
|
+
* number.
|
|
20
|
+
*/
|
|
21
|
+
toString(): string;
|
|
22
|
+
private static callsites;
|
|
23
|
+
/**
|
|
24
|
+
* Captures the current [[Callsite]] object.
|
|
25
|
+
*/
|
|
26
|
+
static capture(): Callsite;
|
|
27
|
+
}
|
|
@@ -1,73 +1,73 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
|
|
3
|
-
if (k2 === undefined) k2 = k;
|
|
4
|
-
var desc = Object.getOwnPropertyDescriptor(m, k);
|
|
5
|
-
if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
|
|
6
|
-
desc = { enumerable: true, get: function() { return m[k]; } };
|
|
7
|
-
}
|
|
8
|
-
Object.defineProperty(o, k2, desc);
|
|
9
|
-
}) : (function(o, m, k, k2) {
|
|
10
|
-
if (k2 === undefined) k2 = k;
|
|
11
|
-
o[k2] = m[k];
|
|
12
|
-
}));
|
|
13
|
-
var __setModuleDefault = (this && this.__setModuleDefault) || (Object.create ? (function(o, v) {
|
|
14
|
-
Object.defineProperty(o, "default", { enumerable: true, value: v });
|
|
15
|
-
}) : function(o, v) {
|
|
16
|
-
o["default"] = v;
|
|
17
|
-
});
|
|
18
|
-
var __importStar = (this && this.__importStar) || function (mod) {
|
|
19
|
-
if (mod && mod.__esModule) return mod;
|
|
20
|
-
var result = {};
|
|
21
|
-
if (mod != null) for (var k in mod) if (k !== "default" && Object.prototype.hasOwnProperty.call(mod, k)) __createBinding(result, mod, k);
|
|
22
|
-
__setModuleDefault(result, mod);
|
|
23
|
-
return result;
|
|
24
|
-
};
|
|
25
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
26
|
-
exports.Callsite = void 0;
|
|
27
|
-
const sourceMapSupport = __importStar(require("source-map-support"));
|
|
28
|
-
/**
|
|
29
|
-
* Represents a callsite of where a step binding is being applied.
|
|
30
|
-
*/
|
|
31
|
-
class Callsite {
|
|
32
|
-
filename;
|
|
33
|
-
lineNumber;
|
|
34
|
-
static cwd = process.cwd();
|
|
35
|
-
/**
|
|
36
|
-
* Initializes a new [[Callsite]].
|
|
37
|
-
*
|
|
38
|
-
* @param filename The filename of the callsite.
|
|
39
|
-
* @param lineNumber The line number of the callsite.
|
|
40
|
-
*/
|
|
41
|
-
constructor(filename, lineNumber) {
|
|
42
|
-
this.filename = filename;
|
|
43
|
-
this.lineNumber = lineNumber;
|
|
44
|
-
}
|
|
45
|
-
/**
|
|
46
|
-
* Returns a string representation of the callsite.
|
|
47
|
-
*
|
|
48
|
-
* @returns A string representing the callsite formatted with the filename and line
|
|
49
|
-
* number.
|
|
50
|
-
*/
|
|
51
|
-
toString() {
|
|
52
|
-
return `${this.filename}:${this.lineNumber}`;
|
|
53
|
-
}
|
|
54
|
-
static callsites() {
|
|
55
|
-
const _prepareStackTrace = Error.prepareStackTrace;
|
|
56
|
-
Error.prepareStackTrace = (_, stack) => stack;
|
|
57
|
-
const stack = new Error().stack?.slice(1) ?? ['', '', 'unknown'];
|
|
58
|
-
Error.prepareStackTrace = _prepareStackTrace;
|
|
59
|
-
return stack;
|
|
60
|
-
}
|
|
61
|
-
/**
|
|
62
|
-
* Captures the current [[Callsite]] object.
|
|
63
|
-
*/
|
|
64
|
-
static capture() {
|
|
65
|
-
const stack = Callsite.callsites()[2];
|
|
66
|
-
const tsStack = sourceMapSupport.wrapCallSite(stack);
|
|
67
|
-
const ourCallsite = new Callsite(tsStack.getFileName() || '', tsStack.getLineNumber() || -1);
|
|
68
|
-
ourCallsite.filename = ourCallsite.filename.replace(`${this.cwd}\\`, '');
|
|
69
|
-
return ourCallsite;
|
|
70
|
-
}
|
|
71
|
-
}
|
|
72
|
-
exports.Callsite = Callsite;
|
|
1
|
+
"use strict";
|
|
2
|
+
var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
|
|
3
|
+
if (k2 === undefined) k2 = k;
|
|
4
|
+
var desc = Object.getOwnPropertyDescriptor(m, k);
|
|
5
|
+
if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
|
|
6
|
+
desc = { enumerable: true, get: function() { return m[k]; } };
|
|
7
|
+
}
|
|
8
|
+
Object.defineProperty(o, k2, desc);
|
|
9
|
+
}) : (function(o, m, k, k2) {
|
|
10
|
+
if (k2 === undefined) k2 = k;
|
|
11
|
+
o[k2] = m[k];
|
|
12
|
+
}));
|
|
13
|
+
var __setModuleDefault = (this && this.__setModuleDefault) || (Object.create ? (function(o, v) {
|
|
14
|
+
Object.defineProperty(o, "default", { enumerable: true, value: v });
|
|
15
|
+
}) : function(o, v) {
|
|
16
|
+
o["default"] = v;
|
|
17
|
+
});
|
|
18
|
+
var __importStar = (this && this.__importStar) || function (mod) {
|
|
19
|
+
if (mod && mod.__esModule) return mod;
|
|
20
|
+
var result = {};
|
|
21
|
+
if (mod != null) for (var k in mod) if (k !== "default" && Object.prototype.hasOwnProperty.call(mod, k)) __createBinding(result, mod, k);
|
|
22
|
+
__setModuleDefault(result, mod);
|
|
23
|
+
return result;
|
|
24
|
+
};
|
|
25
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
26
|
+
exports.Callsite = void 0;
|
|
27
|
+
const sourceMapSupport = __importStar(require("source-map-support"));
|
|
28
|
+
/**
|
|
29
|
+
* Represents a callsite of where a step binding is being applied.
|
|
30
|
+
*/
|
|
31
|
+
class Callsite {
|
|
32
|
+
filename;
|
|
33
|
+
lineNumber;
|
|
34
|
+
static cwd = process.cwd();
|
|
35
|
+
/**
|
|
36
|
+
* Initializes a new [[Callsite]].
|
|
37
|
+
*
|
|
38
|
+
* @param filename The filename of the callsite.
|
|
39
|
+
* @param lineNumber The line number of the callsite.
|
|
40
|
+
*/
|
|
41
|
+
constructor(filename, lineNumber) {
|
|
42
|
+
this.filename = filename;
|
|
43
|
+
this.lineNumber = lineNumber;
|
|
44
|
+
}
|
|
45
|
+
/**
|
|
46
|
+
* Returns a string representation of the callsite.
|
|
47
|
+
*
|
|
48
|
+
* @returns A string representing the callsite formatted with the filename and line
|
|
49
|
+
* number.
|
|
50
|
+
*/
|
|
51
|
+
toString() {
|
|
52
|
+
return `${this.filename}:${this.lineNumber}`;
|
|
53
|
+
}
|
|
54
|
+
static callsites() {
|
|
55
|
+
const _prepareStackTrace = Error.prepareStackTrace;
|
|
56
|
+
Error.prepareStackTrace = (_, stack) => stack;
|
|
57
|
+
const stack = new Error().stack?.slice(1) ?? ['', '', 'unknown'];
|
|
58
|
+
Error.prepareStackTrace = _prepareStackTrace;
|
|
59
|
+
return stack;
|
|
60
|
+
}
|
|
61
|
+
/**
|
|
62
|
+
* Captures the current [[Callsite]] object.
|
|
63
|
+
*/
|
|
64
|
+
static capture() {
|
|
65
|
+
const stack = Callsite.callsites()[2];
|
|
66
|
+
const tsStack = sourceMapSupport.wrapCallSite(stack);
|
|
67
|
+
const ourCallsite = new Callsite(tsStack.getFileName() || '', tsStack.getLineNumber() || -1);
|
|
68
|
+
ourCallsite.filename = ourCallsite.filename.replace(`${this.cwd}\\`, '');
|
|
69
|
+
return ourCallsite;
|
|
70
|
+
}
|
|
71
|
+
}
|
|
72
|
+
exports.Callsite = Callsite;
|
|
73
73
|
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoib3VyLWNhbGxzaXRlLmpzIiwic291cmNlUm9vdCI6IiIsInNvdXJjZXMiOlsiLi4vLi4vc3JjL3V0aWxzL291ci1jYWxsc2l0ZS50cyJdLCJuYW1lcyI6W10sIm1hcHBpbmdzIjoiOzs7Ozs7Ozs7Ozs7Ozs7Ozs7Ozs7Ozs7OztBQUFBLHFFQUF1RDtBQUd2RDs7R0FFRztBQUNILE1BQWEsUUFBUTtJQVFEO0lBQXlCO0lBUHBDLE1BQU0sQ0FBQyxHQUFHLEdBQUcsT0FBTyxDQUFDLEdBQUcsRUFBRSxDQUFDO0lBQ25DOzs7OztPQUtHO0lBQ0gsWUFBbUIsUUFBZ0IsRUFBUyxVQUFrQjtRQUEzQyxhQUFRLEdBQVIsUUFBUSxDQUFRO1FBQVMsZUFBVSxHQUFWLFVBQVUsQ0FBUTtJQUFHLENBQUM7SUFFbEU7Ozs7O09BS0c7SUFDSSxRQUFRO1FBQ2QsT0FBTyxHQUFHLElBQUksQ0FBQyxRQUFRLElBQUksSUFBSSxDQUFDLFVBQVUsRUFBRSxDQUFDO0lBQzlDLENBQUM7SUFFTyxNQUFNLENBQUMsU0FBUztRQUN2QixNQUFNLGtCQUFrQixHQUFHLEtBQUssQ0FBQyxpQkFBaUIsQ0FBQztRQUNuRCxLQUFLLENBQUMsaUJBQWlCLEdBQUcsQ0FBQyxDQUFDLEVBQUUsS0FBSyxFQUFFLEVBQUUsQ0FBQyxLQUFLLENBQUM7UUFDOUMsTUFBTSxLQUFLLEdBQUcsSUFBSSxLQUFLLEVBQUUsQ0FBQyxLQUFLLEVBQUUsS0FBSyxDQUFDLENBQUMsQ0FBQyxJQUFJLENBQUMsRUFBRSxFQUFFLEVBQUUsRUFBRSxTQUFTLENBQUMsQ0FBQztRQUNqRSxLQUFLLENBQUMsaUJBQWlCLEdBQUcsa0JBQWtCLENBQUM7UUFDN0MsT0FBTyxLQUFLLENBQUM7SUFDZCxDQUFDO0lBQ0Q7O09BRUc7SUFDSSxNQUFNLENBQUMsT0FBTztRQUNwQixNQUFNLEtBQUssR0FBRyxRQUFRLENBQUMsU0FBUyxFQUFFLENBQUMsQ0FBQyxDQUF3QixDQUFDO1FBQzdELE1BQU0sT0FBTyxHQUFHLGdCQUFnQixDQUFDLFlBQVksQ0FBQyxLQUFLLENBQUMsQ0FBQztRQUNyRCxNQUFNLFdBQVcsR0FBRyxJQUFJLFFBQVEsQ0FBQyxPQUFPLENBQUMsV0FBVyxFQUFFLElBQUksRUFBRSxFQUFFLE9BQU8sQ0FBQyxhQUFhLEVBQUUsSUFBSSxDQUFDLENBQUMsQ0FBQyxDQUFDO1FBQzdGLFdBQVcsQ0FBQyxRQUFRLEdBQUcsV0FBVyxDQUFDLFFBQVEsQ0FBQyxPQUFPLENBQUMsR0FBRyxJQUFJLENBQUMsR0FBRyxJQUFJLEVBQUUsRUFBRSxDQUFDLENBQUM7UUFFekUsT0FBTyxXQUFXLENBQUM7SUFDcEIsQ0FBQzs7QUFyQ0YsNEJBc0NDIn0=
|
package/lib/version.d.ts
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
export declare const version = "6.
|
|
1
|
+
export declare const version = "6.2.0";
|
package/lib/version.js
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.version = void 0;
|
|
4
|
-
// Generated by genversion.
|
|
5
|
-
exports.version = '6.
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.version = void 0;
|
|
4
|
+
// Generated by genversion.
|
|
5
|
+
exports.version = '6.2.0';
|
|
6
6
|
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoidmVyc2lvbi5qcyIsInNvdXJjZVJvb3QiOiIiLCJzb3VyY2VzIjpbIi4uL3NyYy92ZXJzaW9uLnRzIl0sIm5hbWVzIjpbXSwibWFwcGluZ3MiOiI7OztBQUFBLDJCQUEyQjtBQUNkLFFBQUEsT0FBTyxHQUFHLE9BQU8sQ0FBQSJ9
|
package/package.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@lynxwall/cucumber-tsflow",
|
|
3
3
|
"description": "Provides 'specflow' like bindings for CucumberJS 9.1.0+ in TypeScript 4.0+.",
|
|
4
|
-
"version": "6.
|
|
4
|
+
"version": "6.2.0",
|
|
5
5
|
"author": "Lonnie Wall <lynxdev@lynxwall.com>",
|
|
6
6
|
"license": "MIT",
|
|
7
7
|
"main": "./lib/index",
|
|
@@ -23,36 +23,36 @@
|
|
|
23
23
|
"url": "https://github.com/lynxwall/cucumber-js-tsflow.git"
|
|
24
24
|
},
|
|
25
25
|
"dependencies": {
|
|
26
|
-
"@cucumber/cucumber": "~9.
|
|
26
|
+
"@cucumber/cucumber": "~9.6.0",
|
|
27
27
|
"@jeanbenitez/logical-expression-parser": "~1.0.0",
|
|
28
|
-
"@rollup/pluginutils": "~5.0.
|
|
29
|
-
"@types/node": "~18.15.
|
|
28
|
+
"@rollup/pluginutils": "~5.0.5",
|
|
29
|
+
"@types/node": "~18.15.13",
|
|
30
30
|
"chalk": "~4.1.2",
|
|
31
|
-
"esbuild": "~0.17.
|
|
32
|
-
"glob": "~9.3.
|
|
31
|
+
"esbuild": "~0.17.18",
|
|
32
|
+
"glob": "~9.3.5",
|
|
33
33
|
"hash-sum": "~2.0.0",
|
|
34
|
-
"jsdom": "~21.1.
|
|
34
|
+
"jsdom": "~21.1.2",
|
|
35
35
|
"jsdom-global": "~3.0.2",
|
|
36
36
|
"lodash.merge": "~4.6.2",
|
|
37
37
|
"log4js": "~6.9.1",
|
|
38
38
|
"require-extension-hooks": "~0.3.3",
|
|
39
|
-
"rollup": "~3.20.
|
|
39
|
+
"rollup": "~3.20.7",
|
|
40
40
|
"short-uuid": "~4.2.2",
|
|
41
41
|
"source-map-support": "~0.5.21",
|
|
42
42
|
"ts-node": "~10.9.1",
|
|
43
|
-
"tsconfig-paths": "~4.
|
|
44
|
-
"typescript": "~
|
|
43
|
+
"tsconfig-paths": "~4.2.0",
|
|
44
|
+
"typescript": "~5.2.2",
|
|
45
45
|
"underscore": "~1.13.6",
|
|
46
46
|
"verror": "~1.10.1"
|
|
47
47
|
},
|
|
48
48
|
"devDependencies": {
|
|
49
|
-
"@types/debug": "~4.1.
|
|
49
|
+
"@types/debug": "~4.1.10",
|
|
50
50
|
"@types/glob": "~8.1.0",
|
|
51
|
-
"@types/hash-sum": "~1.0.
|
|
52
|
-
"@types/lodash.merge": "~4.6.
|
|
53
|
-
"@types/source-map-support": "~0.5.
|
|
54
|
-
"@types/underscore": "~1.11.
|
|
55
|
-
"@types/verror": "~1.10.
|
|
51
|
+
"@types/hash-sum": "~1.0.1",
|
|
52
|
+
"@types/lodash.merge": "~4.6.8",
|
|
53
|
+
"@types/source-map-support": "~0.5.9",
|
|
54
|
+
"@types/underscore": "~1.11.12",
|
|
55
|
+
"@types/verror": "~1.10.8"
|
|
56
56
|
},
|
|
57
57
|
"bin": "./bin/cucumber-tsflow"
|
|
58
58
|
}
|