Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

@percy/core

Package Overview
Dependencies
Maintainers
6
Versions
241
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@percy/core - npm Package Compare versions

Comparing version 1.0.0-beta.16 to 1.0.0-beta.17

7

dist/server.js

@@ -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"
}
SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc