@percy/core
Advanced tools
Comparing version 1.0.0-beta.16 to 1.0.0-beta.17
@@ -9,5 +9,7 @@ "use strict"; | ||
var _fs = _interopRequireDefault(require("fs")); | ||
var _http = _interopRequireDefault(require("http")); | ||
var _fs = _interopRequireDefault(require("fs")); | ||
var _package = require("../package.json"); | ||
@@ -43,6 +45,7 @@ function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; } | ||
if ((_headers$ContentType = headers['Content-Type']) === null || _headers$ContentType === void 0 ? void 0 : _headers$ContentType.includes('json')) body = JSON.stringify(body); // add content length and cors headers | ||
if ((_headers$ContentType = headers['Content-Type']) === null || _headers$ContentType === void 0 ? void 0 : _headers$ContentType.includes('json')) body = JSON.stringify(body); // add additional headers | ||
headers['Content-Length'] = (_body$length = (_body = body) === null || _body === void 0 ? void 0 : _body.length) !== null && _body$length !== void 0 ? _body$length : 0; | ||
headers['Access-Control-Allow-Origin'] = '*'; | ||
headers['X-PercyCLI-Version'] = _package.version; | ||
return [status, headers, body]; | ||
@@ -49,0 +52,0 @@ } |
{ | ||
"name": "@percy/core", | ||
"version": "1.0.0-beta.16", | ||
"version": "1.0.0-beta.17", | ||
"license": "MIT", | ||
@@ -28,5 +28,5 @@ "main": "dist/index.js", | ||
"dependencies": { | ||
"@percy/client": "^1.0.0-beta.16", | ||
"@percy/dom": "^1.0.0-beta.16", | ||
"@percy/logger": "^1.0.0-beta.16", | ||
"@percy/client": "^1.0.0-beta.17", | ||
"@percy/dom": "^1.0.0-beta.17", | ||
"@percy/logger": "^1.0.0-beta.17", | ||
"node-fetch": "^2.6.1", | ||
@@ -40,3 +40,3 @@ "progress": "^2.0.3", | ||
}, | ||
"gitHead": "dbde7c70b16f930ff5e969c584260442854784f8" | ||
"gitHead": "6e787557fc27a2efab7940cc7785f5e41f6199c3" | ||
} |
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
56900
1205
Updated@percy/client@^1.0.0-beta.17
Updated@percy/dom@^1.0.0-beta.17
Updated@percy/logger@^1.0.0-beta.17