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

@applitools/test-server

Package Overview
Dependencies
Maintainers
34
Versions
47
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@applitools/test-server - npm Package Compare versions

Comparing version 1.1.22 to 1.1.23

13

dist/middlewares/cookies-middleware.js
module.exports = (req, res, next) => {
const { query, cookies, method } = req;
const path = req.url.includes('/images');
const requestingImage = req.url.includes(path) && method === 'GET';
if (!requestingImage && Object.keys(query).length) {
res.cookie(query.name, query.value, query);
if (req.query.checkCookie) {
if (req.cookies[req.query.checkCookie.name] !== req.query.checkCookie.value) {
return res.sendStatus(403);
}
}
if (requestingImage && !cookies['token']) {
return res.sendStatus(403);
if (req.query.writeCookie) {
res.cookie(req.query.writeCookie.name, req.query.writeCookie.value, req.query.writeCookie.options);
}
next();
};

@@ -12,2 +12,4 @@ 'use strict';

let { staticPath = resolve('./test/fixtures'), port = 0, allowCors, showLogs, middlewares, key, cert } = argv;
if (!argv.staticPath)
argv.staticPath = staticPath;
const app = express();

@@ -14,0 +16,0 @@ app.use(cookieParser());

{
"name": "@applitools/test-server",
"version": "1.1.22",
"version": "1.1.23",
"homepage": "https://github.com/applitools/eyes.sdk.javascript1#readme",

@@ -45,4 +45,4 @@ "bugs": {

"dependencies": {
"@applitools/logger": "1.1.42",
"@applitools/utils": "1.3.28",
"@applitools/logger": "1.1.44",
"@applitools/utils": "1.3.29",
"body-parser": "1.20.0",

@@ -76,8 +76,3 @@ "chalk": "3.0.0",

"node": ">=12.0.0"
},
"husky": {
"hooks": {
"pre-push": "yarn bongo lint"
}
}
}
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