@percy/core
Advanced tools
Comparing version 1.0.0-beta.7 to 1.0.0-beta.8
@@ -197,3 +197,4 @@ "use strict"; | ||
return request => { | ||
let url = request.url(); // skip any logging and handling of data-urls | ||
let url = request.url(); | ||
onRequest(); // skip any logging and handling of data-urls | ||
@@ -210,4 +211,2 @@ if (url.startsWith('data:')) { | ||
onRequest(); | ||
try { | ||
@@ -214,0 +213,0 @@ if (url === rootUrl) { |
@@ -232,3 +232,3 @@ "use strict"; | ||
widths, | ||
minimumHeight, | ||
minHeight, | ||
percyCSS, | ||
@@ -240,3 +240,3 @@ requestHeaders, | ||
}) { | ||
var _widths, _widths2, _minimumHeight, _ref, _enableJavaScript; | ||
var _widths, _widths2, _minHeight, _ref, _enableJavaScript; | ||
@@ -255,3 +255,3 @@ // required assertions | ||
minimumHeight = (_minimumHeight = minimumHeight) !== null && _minimumHeight !== void 0 ? _minimumHeight : this.config.snapshot.minimumHeight; // combine snapshot Percy CSS with instance Percy CSS | ||
minHeight = (_minHeight = minHeight) !== null && _minHeight !== void 0 ? _minHeight : this.config.snapshot.minHeight; // combine snapshot Percy CSS with instance Percy CSS | ||
@@ -325,3 +325,3 @@ percyCSS = [this.config.snapshot.percyCSS, percyCSS].filter(Boolean).join('\n'); // combine snapshot request headers with instance request headers | ||
widths, | ||
minimumHeight, | ||
minHeight, | ||
enableJavaScript, | ||
@@ -328,0 +328,0 @@ clientInfo, |
@@ -67,3 +67,3 @@ "use strict"; | ||
}, req, res, next) => { | ||
res.status(500).send({ | ||
res.status(500).json({ | ||
success: false, | ||
@@ -70,0 +70,0 @@ error: message |
{ | ||
"name": "@percy/core", | ||
"version": "1.0.0-beta.7", | ||
"version": "1.0.0-beta.8", | ||
"license": "MIT", | ||
@@ -27,5 +27,5 @@ "main": "dist/index.js", | ||
"dependencies": { | ||
"@percy/client": "^1.0.0-beta.7", | ||
"@percy/dom": "^1.0.0-beta.7", | ||
"@percy/logger": "^1.0.0-beta.7", | ||
"@percy/client": "^1.0.0-beta.8", | ||
"@percy/dom": "^1.0.0-beta.8", | ||
"@percy/logger": "^1.0.0-beta.8", | ||
"body-parser": "^1.19.0", | ||
@@ -42,3 +42,3 @@ "cors": "^2.8.5", | ||
}, | ||
"gitHead": "5be796ec8f17958e93ada0b634899b945c9b0d60" | ||
"gitHead": "6015850e7c20c130d625fcb327b10d7513b35707" | ||
} |
@@ -68,3 +68,3 @@ # @percy/core | ||
widths: [500, 1280], // widths to discover resources | ||
minimumHeight: 1024, // minimum height used when screenshotting | ||
minHeight: 1024, // minimum height used when screenshotting | ||
percyCSS: '', // percy specific css to inject | ||
@@ -71,0 +71,0 @@ requestHeaders: {}, // asset request headers such as authorization |
@@ -9,3 +9,3 @@ // Minimum TypeScript Version: 3.8 | ||
widths?: number[]; | ||
minimumHeight?: number; | ||
minHeight?: number; | ||
percyCSS?: string; | ||
@@ -12,0 +12,0 @@ requestHeaders?: Pojo; |
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
53412
Updated@percy/client@^1.0.0-beta.8
Updated@percy/dom@^1.0.0-beta.8
Updated@percy/logger@^1.0.0-beta.8