Socket
Socket
Sign inDemoInstall

html-reporter

Package Overview
Dependencies
Maintainers
6
Versions
309
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

html-reporter - npm Package Compare versions

Comparing version 1.0.0 to 1.1.0

10

CHANGELOG.md

@@ -5,2 +5,12 @@ # Change Log

<a name="1.1.0"></a>
# [1.1.0](https://github.com/gemini-testing/html-reporter/compare/v1.0.0...v1.1.0) (2017-12-04)
### Features
* make url in meta-info clickable ([076f817](https://github.com/gemini-testing/html-reporter/commit/076f817))
<a name="1.0.0"></a>

@@ -7,0 +17,0 @@ # [1.0.0](https://github.com/gemini-testing/html-reporter/compare/v0.5.0...v1.0.0) (2017-10-19)

15

lib/view-model.js

@@ -103,4 +103,5 @@ 'use strict';

const suiteUrl = browserConfig.getAbsoluteUrl(suite.url);
const metaInfo = {
url: suite.fullUrl,
url: mkLinkToUrl(suiteUrl, suite.fullUrl),
file: suite.file,

@@ -113,3 +114,3 @@ sessionId: result.sessionId || 'unknown session id'

name: browserId,
metaInfo: JSON.stringify(metaInfo, null, 4) || 'Meta info is not available'
metaInfo: stringifyMeta(metaInfo) || 'Meta info is not available'
}, props);

@@ -176,2 +177,6 @@

function mkLinkToUrl(url, text) {
return `<a data-suite-view-link="${url}" class="section__icon_view-local" target="_blank" href="${url}">${text}</a>`;
}
function wrapLinkByTag(text) {

@@ -182,1 +187,7 @@ return text.replace(/https?:\/\/[^\s]*/g, (url) => {

}
function stringifyMeta(obj) {
return _(obj)
.map((value, key) => `<div class="meta-info__item"><span class="meta-info__item-key">${key}</span>: ${value}</div>`)
.join('');
}

2

package.json
{
"name": "html-reporter",
"version": "1.0.0",
"version": "1.1.0",
"description": "Plugin for gemini which is intended to aggregate the results of tests running into html report",

@@ -5,0 +5,0 @@ "main": "index.js",

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is too big to display

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