New Case Study:See how Anthropic automated 95% of dependency reviews with Socket.Learn More
Socket
Sign inDemoInstall
Socket

multiple-cucumber-html-reporter

Package Overview
Dependencies
Maintainers
1
Versions
78
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

multiple-cucumber-html-reporter - npm Package Compare versions

Comparing version 3.0.0 to 3.0.1

6

lib/collect-jsons.js

@@ -7,6 +7,6 @@ 'use strict';

const path = require('path');
const moment = require('moment');
const { DateTime } = require('luxon');
/**
* Format input date to YYYY/MM/DD HH:mm:ss
* Formats input date to yyyy/MM/dd HH:mm:ss
*

@@ -17,3 +17,3 @@ * @param {Date} date

function formatToLocalIso(date) {
return moment(date).format('YYYY/MM/DD HH:mm:ss')
return DateTime.fromJSDate(date).toFormat('yyyy/MM/dd HH:mm:ss')
}

@@ -20,0 +20,0 @@

@@ -9,3 +9,3 @@ 'use strict';

const { v4: uuid } = require('uuid');
const moment = require('moment');
const { Duration } = require('luxon');
const collectJSONS = require('./collect-jsons');

@@ -675,11 +675,13 @@

/**
* Format the duration to HH:mm:ss.SSS
* Formats the duration to HH:mm:ss.SSS.
*
* @param {number} ns
* @param {number} duration a time duration usually in ns form; it can be
* possible to interpret the value as ms, see the option {durationInMS}.
*
* @return {string}
* @return {string} the duration formatted as a string
*/
function formatDuration(ns) {
// `moment.utc(#)` needs ms, we now use device by 1000000 to calculate ns to ms
return moment.utc(durationInMS ? ns : ns / 1000000).format('HH:mm:ss.SSS');
function formatDuration(duration) {
return Duration.fromMillis(
durationInMS ? duration : duration / 1000000
).toFormat('hh:mm:ss.SSS');
}

@@ -686,0 +688,0 @@ }

{
"name": "multiple-cucumber-html-reporter",
"version": "3.0.0",
"description": "Generate beautifull cucumberjs reports for multiple instances (browsers / devices)",
"version": "3.0.1",
"description": "Generate beautiful Cucumber.js reports for multiple instances (browsers / devices)",
"keywords": [

@@ -39,3 +39,3 @@ "cucumber",

"lodash": "^4.17.19",
"moment": "^2.24.0",
"luxon": "^3.0.4",
"open": "^8.4.0",

@@ -42,0 +42,0 @@ "uuid": "^9.0.0"

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