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

@percy/playwright

Package Overview
Dependencies
Maintainers
1
Versions
11
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@percy/playwright - npm Package Compare versions

Comparing version 1.0.6-beta.1 to 1.0.6-beta.2

14

index.js

@@ -12,3 +12,3 @@ const utils = require('@percy/sdk-utils');

// Take a DOM snapshot and post it to the snapshot endpoint
async function percySnapshot(page, name, options) {
const percySnapshot = async function(page, name, options) {
if (!page) throw new Error('A Playwright `page` object is required.');

@@ -43,6 +43,6 @@ if (!name) throw new Error('The `name` argument is required.');

}
}
};
// Takes Playwright screenshot with Automate
async function percyScreenshot(page, name, options) {
const percyScreenshot = async function(page, name, options) {
if (!page) throw new Error('A Playwright `page` object is required.');

@@ -76,4 +76,8 @@ if (!name) throw new Error('The `name` argument is required.');

}
}
};
module.exports = { percySnapshot, percyScreenshot, CLIENT_INFO, ENV_INFO };
module.exports = percySnapshot;
module.exports.percySnapshot = percySnapshot;
module.exports.percyScreenshot = percyScreenshot;
module.exports.CLIENT_INFO = CLIENT_INFO;
module.exports.ENV_INFO = ENV_INFO;
{
"name": "@percy/playwright",
"description": "Playwright client library for visual testing with Percy",
"version": "1.0.6-beta.1",
"version": "1.0.6-beta.2",
"license": "MIT",

@@ -6,0 +6,0 @@ "author": "Perceptual Inc.",

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