code-coverage
Advanced tools
Comparing version 0.0.1 to 0.0.2
17
index.js
const APP_LISTENING_PORT = '8087'; | ||
const JSON_MEDIA_TYPE = {'Content-Type':'application/json'}; | ||
const REPORTS_PATH = "./coverage_reports" | ||
const REPORTS_PATH = "reports" | ||
const HTTP_STATUS_CODE = { | ||
@@ -39,3 +39,3 @@ SUCCESS: { | ||
require('mailer_credentials.js'); | ||
const MailerCredentials = require('./mailer_credentials.js'); | ||
const express = require('express'); | ||
@@ -253,4 +253,4 @@ const request = require('request'); | ||
auth: { | ||
user: EMAIL_USER, | ||
pass: EMAIL_PASS | ||
user: MailerCredentials.EMAIL_USER, | ||
pass: MailerCredentials.EMAIL_PASS | ||
} | ||
@@ -293,10 +293,3 @@ }); | ||
try { | ||
console.log(req.connection.remoteAddress); | ||
var options = { | ||
host: "127.0.0.1", //req.header('x-forwarded-for') || req.connection.remoteAddress, | ||
port: 9222 //request.connection.remotePort, | ||
}; | ||
CDP((options, client) => { | ||
console.log(client); | ||
CDP((client) => { | ||
const {Network, Page, Profiler} = client; | ||
@@ -303,0 +296,0 @@ |
{ | ||
"name": "code-coverage", | ||
"version": "0.0.1", | ||
"version": "0.0.2", | ||
"description": "Find unused CSS and JS code. When you load or run a page, the app tells you how much code was used, versus how much was loaded. You can reduce the size of your pages by only shipping the code that you need", | ||
@@ -5,0 +5,0 @@ "main": "index.js", |
17469
358