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.17 to 1.0.0-beta.18

13

dist/server.js

@@ -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"
}
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