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

@nightwatch/html-reporter-template

Package Overview
Dependencies
Maintainers
6
Versions
14
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@nightwatch/html-reporter-template - npm Package Compare versions

Comparing version 0.1.4 to 0.1.5

2

index.d.ts

@@ -1,1 +0,1 @@

export declare const writeNightwatchHTMLReport: (destFolder: string, jsonReportObject: string, product?: string) => void;
export declare const writeNightwatchHTMLReport: (destFolder: string, destFileName: string, jsonReportObject: string, product?: string) => void;

@@ -6,10 +6,10 @@ "use strict";

const path_1 = require("path");
const writeNightwatchHTMLReport = (destFolder, jsonReportObject, product = 'html') => {
const writeNightwatchHTMLReport = (destFolder, destFileName, jsonReportObject, product = 'html') => {
// Create Destination Folder
(0, fs_1.mkdirSync)(destFolder, { recursive: true });
const indexFile = (0, path_1.join)(__dirname, product, 'index.html');
const destinationReportFile = (0, path_1.join)(destFolder, 'index.html');
(0, fs_1.copyFileSync)(indexFile, destinationReportFile);
const reportFile = (0, path_1.join)(__dirname, product, 'index.html');
const destinationReportFile = (0, path_1.join)(destFolder, destFileName);
(0, fs_1.copyFileSync)(reportFile, destinationReportFile);
(0, fs_1.appendFileSync)(destinationReportFile, `<script>window.nightwatchReport = ${jsonReportObject}</script>`);
};
exports.writeNightwatchHTMLReport = writeNightwatchHTMLReport;
{
"name": "@nightwatch/html-reporter-template",
"description": "Nightwatch HTML reporter template",
"version": "0.1.4",
"version": "0.1.5",
"type": "commonjs",

@@ -9,2 +9,3 @@ "scripts": {

"dev:vrt": "VITE_PRODUCT=vrt vite",
"build": "npm run build:html && npm run build:vrt && tsc -p tsconfig.node.cjs.json",
"build:html": "tsc && VITE_PRODUCT=html vite build && tsc -p tsconfig.node.cjs.json",

@@ -56,3 +57,3 @@ "build:vrt": "tsc && VITE_PRODUCT=vrt vite build && tsc -p tsconfig.node.cjs.json",

"babel-plugin-styled-components": "^2.0.7",
"chromedriver": "^108.0.0",
"chromedriver": "^111.0.0",
"eslint": "^8.31.0",

@@ -65,3 +66,3 @@ "eslint-config-prettier": "^8.6.0",

"fuse.js": "^6.6.2",
"nightwatch": "^2.6.9",
"nightwatch": "^2.6.19",
"prettier": "^2.8.2",

@@ -83,3 +84,2 @@ "prism-react-renderer": "^1.3.5",

"files": [
"dist",
"index.js",

@@ -86,0 +86,0 @@ "index.d.ts",

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