Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

@wdio/reporter

Package Overview
Dependencies
Maintainers
0
Versions
251
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@wdio/reporter - npm Package Compare versions

Comparing version 9.0.0 to 9.0.4

32

build/index.js

@@ -157,2 +157,3 @@ // src/index.ts

// src/utils.ts
var FIRST_FUNCTION_REGEX = /function (\w+)/;
function sanitizeString(str) {

@@ -207,2 +208,21 @@ if (!str) {

}
function transformCommandScript(script) {
if (!script) {
return script;
}
let name = void 0;
if (typeof script === "string") {
name = FIRST_FUNCTION_REGEX.exec(script);
FIRST_FUNCTION_REGEX.exec("");
} else if (typeof script === "function") {
name = script.name;
script = script.toString();
} else {
return `<${typeof script}>`;
}
if (typeof name === "string" && name) {
return `<script fn ${name}(...)> [${Buffer.byteLength(script, "utf-8")} bytes]`;
}
return `<script> [${Buffer.byteLength(script, "utf-8")} bytes]`;
}

@@ -595,2 +615,8 @@ // src/stats/runnable.ts

}
if (payload.body?.script) {
payload.body = {
...payload.body,
script: transformCommandScript(payload.body.script)
};
}
currentTest.output.push(Object.assign(payload, { type: "command" }));

@@ -606,2 +632,8 @@ }

}
if (payload.body?.script) {
payload.body = {
...payload.body,
script: transformCommandScript(payload.body.script)
};
}
currentTest.output.push(Object.assign(payload, { type: "result" }));

@@ -608,0 +640,0 @@ }

@@ -44,2 +44,8 @@ import { COLORS } from './constants.js';

export declare function colorLines(name: keyof typeof COLORS, str: string): string;
/**
* Transforms WebDriver execute command scripts to avoid accumulating
* long scripts in the default TestStats.
* @param script WebDriver command script
*/
export declare function transformCommandScript(script?: string | Function): string | undefined;
//# sourceMappingURL=utils.d.ts.map

10

package.json
{
"name": "@wdio/reporter",
"version": "9.0.0",
"version": "9.0.4",
"description": "A WebdriverIO utility to help reporting all events",

@@ -13,3 +13,3 @@ "author": "Christian Bromann <mail@bromann.dev>",

"type": "git",
"url": "git://github.com/webdriverio/webdriverio.git",
"url": "git+https://github.com/webdriverio/webdriverio.git",
"directory": "packages/wdio-reporter"

@@ -42,4 +42,4 @@ },

"@types/node": "^20.1.0",
"@wdio/logger": "9.0.0",
"@wdio/types": "9.0.0",
"@wdio/logger": "9.0.4",
"@wdio/types": "9.0.4",
"diff": "^5.0.0",

@@ -55,3 +55,3 @@ "object-inspect": "^1.12.0"

},
"gitHead": "957693463371a4cb329395dcdbce8fb0c930ab93"
"gitHead": "1f3d6f781391548e8672e768e72b3d5c499a3aa7"
}

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc