@percy/core
Advanced tools
Comparing version 1.0.0-beta.17 to 1.0.0-beta.18
@@ -13,7 +13,10 @@ "use strict"; | ||
var _package = require("../package.json"); | ||
var _package = _interopRequireDefault(require("../package.json")); | ||
function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; } | ||
async function getReply(routes, request) { | ||
async function getReply({ | ||
version, | ||
routes | ||
}, request) { | ||
var _headers$ContentType, _body$length, _body; | ||
@@ -49,3 +52,3 @@ | ||
headers['Access-Control-Allow-Origin'] = '*'; | ||
headers['X-PercyCLI-Version'] = _package.version; | ||
headers['X-Percy-Core-Version'] = version; | ||
return [status, headers, body]; | ||
@@ -56,2 +59,4 @@ } | ||
let context = { | ||
version: _package.default.version, | ||
get listening() { | ||
@@ -73,3 +78,3 @@ return context.server.listening; | ||
let [status, headers, body] = await getReply(routes, request); | ||
let [status, headers, body] = await getReply(context, request); | ||
response.writeHead(status, headers).end(body); | ||
@@ -76,0 +81,0 @@ }); |
{ | ||
"name": "@percy/core", | ||
"version": "1.0.0-beta.17", | ||
"version": "1.0.0-beta.18", | ||
"license": "MIT", | ||
@@ -28,5 +28,5 @@ "main": "dist/index.js", | ||
"dependencies": { | ||
"@percy/client": "^1.0.0-beta.17", | ||
"@percy/dom": "^1.0.0-beta.17", | ||
"@percy/logger": "^1.0.0-beta.17", | ||
"@percy/client": "^1.0.0-beta.18", | ||
"@percy/dom": "^1.0.0-beta.18", | ||
"@percy/logger": "^1.0.0-beta.18", | ||
"node-fetch": "^2.6.1", | ||
@@ -40,3 +40,3 @@ "progress": "^2.0.3", | ||
}, | ||
"gitHead": "6e787557fc27a2efab7940cc7785f5e41f6199c3" | ||
"gitHead": "f0fdc9746f6325c0b02efc76d6475677072d5a06" | ||
} |
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
56975
1209
Updated@percy/client@^1.0.0-beta.18
Updated@percy/dom@^1.0.0-beta.18
Updated@percy/logger@^1.0.0-beta.18