debugbear
Advanced tools
Comparing version 2.0.20 to 2.0.21
@@ -87,2 +87,5 @@ "use strict"; | ||
options = program.opts(); | ||
if (process.env.DEBUG) { | ||
console.log("Options: ", options); | ||
} | ||
baseUrl = undefined; | ||
@@ -92,2 +95,5 @@ _a.label = 1; | ||
_a.trys.push([1, 3, , 4]); | ||
if (options.fail && !options.waitForResult) { | ||
throw Error("--fail option requires --waitForResult option"); | ||
} | ||
return [4 /*yield*/, analyzePage(Object.assign({ | ||
@@ -94,0 +100,0 @@ url: urlValue, |
{ | ||
"name": "debugbear", | ||
"version": "2.0.20", | ||
"version": "2.0.21", | ||
"description": "Use DebugBear to test web performance as part of your Continuous Integration process.", | ||
@@ -5,0 +5,0 @@ "main": "dist/index.js", |
@@ -64,5 +64,13 @@ import * as commander from "commander"; | ||
if (process.env.DEBUG) { | ||
console.log("Options: ", options); | ||
} | ||
let baseUrl = undefined; | ||
try { | ||
if (options.fail && !options.waitForResult) { | ||
throw Error("--fail option requires --waitForResult option"); | ||
} | ||
await analyzePage( | ||
@@ -69,0 +77,0 @@ Object.assign( |
71354
1967
8