@dev-blinq/cucumber_client 1.0.1565-dev → 1.0.1567-dev
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.
|
@@ -11,6 +11,8 @@ async function verify_the_opportunity_name_was_created(_name) {
|
|
|
11
11
|
}
|
|
12
12
|
*/
|
|
13
13
|
|
|
14
|
+
import strip from "strip-comments";
|
|
15
|
+
|
|
14
16
|
function generateSignature(page, functionName) {
|
|
15
17
|
let functionCode = null;
|
|
16
18
|
let method = null;
|
|
@@ -28,6 +30,7 @@ function generateSignature(page, functionName) {
|
|
|
28
30
|
method.node.body.parent.params.forEach((param) => {
|
|
29
31
|
parameters.push(param.name);
|
|
30
32
|
});
|
|
33
|
+
functionCode = strip(functionCode);
|
|
31
34
|
let lines = functionCode.split("\n");
|
|
32
35
|
// trim all lines
|
|
33
36
|
lines = lines.map((line) => line.trim());
|
|
@@ -86,12 +86,12 @@ async function BVTRecorderInit({ envName, projectDir, roomId, TOKEN, socket = nu
|
|
|
86
86
|
socket = socket || io(WS_URL);
|
|
87
87
|
socketLogger.init(socket, { context: "BVTRecorder", eventName: "BVTRecorder.log" });
|
|
88
88
|
socket.on("connect", () => {
|
|
89
|
-
socketLogger.info(
|
|
90
|
-
console.log(
|
|
89
|
+
socketLogger.info(`${roomId} Connected to BVTRecorder server`);
|
|
90
|
+
console.log(`${roomId} Connected to BVTRecorder server`);
|
|
91
91
|
});
|
|
92
92
|
socket.on("disconnect", () => {
|
|
93
|
-
socketLogger.info(
|
|
94
|
-
console.log(
|
|
93
|
+
socketLogger.info(`${roomId} Disconnected from server`);
|
|
94
|
+
console.log(`${roomId} Disconnected from server`);
|
|
95
95
|
});
|
|
96
96
|
socket.emit("joinRoom", { id: roomId, window: "cucumber_client/bvt_recorder" });
|
|
97
97
|
const recorder = new BVTRecorder({
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@dev-blinq/cucumber_client",
|
|
3
|
-
"version": "1.0.
|
|
3
|
+
"version": "1.0.1567-dev",
|
|
4
4
|
"description": " ",
|
|
5
5
|
"main": "bin/index.js",
|
|
6
6
|
"types": "bin/index.d.ts",
|
|
@@ -52,6 +52,7 @@
|
|
|
52
52
|
"prettier": "^3.2.5",
|
|
53
53
|
"prettier-plugin-gherkin": "^3.1.2",
|
|
54
54
|
"socket.io-client": "^4.7.5",
|
|
55
|
+
"strip-comments": "^2.0.1",
|
|
55
56
|
"tunnel": "^0.0.6",
|
|
56
57
|
"unzipper": "^0.12.3",
|
|
57
58
|
"win-ca": "^3.5.1",
|