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
240
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.2 to 1.0.0-beta.3

LICENSE

18

dist/percy.js

@@ -30,4 +30,2 @@ "use strict";

var _package = _interopRequireDefault(require("../package.json"));
function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }

@@ -113,3 +111,3 @@

this.config = _config.default.load({
this.config = config === false ? _config.default.getDefaults(options) : _config.default.load({
path: config,

@@ -120,5 +118,5 @@ overrides: options

this.client = new _client.default({
clientInfo: [`${_package.default.name}/${_package.default.version}`].concat(clientInfo),
environmentInfo,
token
token,
clientInfo,
environmentInfo
});

@@ -248,3 +246,3 @@ } // Shortcut for controlling the global logger's log level.

}) {
var _widths, _minimumHeight, _percyCSS, _ref, _enableJavaScript;
var _widths, _widths2, _minimumHeight, _ref, _enableJavaScript;

@@ -257,4 +255,4 @@ // required assertions

widths = (_widths = widths) !== null && _widths !== void 0 ? _widths : this.config.snapshot.widths;
(0, _assert.default)(widths, 'Missing required argument: widths');
widths = ((_widths = widths) === null || _widths === void 0 ? void 0 : _widths.length) ? widths : this.config.snapshot.widths;
(0, _assert.default)((_widths2 = widths) === null || _widths2 === void 0 ? void 0 : _widths2.length, 'Missing required argument: widths');
(0, _assert.default)(widths.length <= 10, 'too many widths'); // normalize the URL

@@ -266,3 +264,3 @@

percyCSS = `${this.config.snapshot.percyCSS}\n${(_percyCSS = percyCSS) !== null && _percyCSS !== void 0 ? _percyCSS : ''}`.trim(); // combine snapshot request headers with instance request headers
percyCSS = [this.config.snapshot.percyCSS, percyCSS].filter(Boolean).join('\n'); // combine snapshot request headers with instance request headers

@@ -269,0 +267,0 @@ requestHeaders = { ...this.config.snapshot.requestHeaders,

@@ -16,13 +16,11 @@ "use strict";

var _revisions = require("puppeteer-core/lib/cjs/puppeteer/revisions");
function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }
const {
// The default Chromium revision is defined in puppeteer's package.json.
chromium_revision: DEFAULT_CHROMIUM_REVISION
} = require('puppeteer-core/package.json').puppeteer; // If the default Chromium revision is not yet downloaded, download it. Lazily
// Get the default revisions from within puppeteer
// If the default Chromium revision is not yet downloaded, download it. Lazily
// requires the progress package to print a progress bar during the download.
async function maybeInstallBrowser(path = process.env.PUPPETEER_EXECUTABLE_PATH) {
let revision = DEFAULT_CHROMIUM_REVISION;
let revision = _revisions.PUPPETEER_REVISIONS.chromium;
let local = false;

@@ -29,0 +27,0 @@

{
"name": "@percy/core",
"version": "1.0.0-beta.2",
"version": "1.0.0-beta.3",
"license": "MIT",
"main": "dist/index.js",
"types": "types/index.d.ts",
"license": "MIT",
"files": [

@@ -27,5 +27,5 @@ "dist",

"dependencies": {
"@percy/client": "^1.0.0-beta.2",
"@percy/dom": "^1.0.0-beta.2",
"@percy/logger": "^1.0.0-beta.2",
"@percy/client": "^1.0.0-beta.3",
"@percy/dom": "^1.0.0-beta.3",
"@percy/logger": "^1.0.0-beta.3",
"body-parser": "^1.19.0",

@@ -36,3 +36,3 @@ "cors": "^2.8.5",

"progress": "^2.0.3",
"puppeteer-core": "^4.0.0"
"puppeteer-core": "^5.2.1"
},

@@ -43,3 +43,3 @@ "devDependencies": {

},
"gitHead": "4a04251eb211d0213e04efd460c76c5834bf4914"
"gitHead": "4f66b0b984ef715774002b19bd6e767a9e50d01a"
}
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