Socket
Socket
Sign inDemoInstall

@percy/client

Package Overview
Dependencies
Maintainers
6
Versions
238
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@percy/client - npm Package Compare versions

Comparing version 1.27.3-beta.0 to 1.27.3

9

dist/client.js

@@ -45,2 +45,3 @@ import fs from 'fs';

environmentInfo,
config,
// versioned api url

@@ -51,2 +52,3 @@ apiUrl = PERCY_CLIENT_API_URL

token,
config: config || {},
apiUrl

@@ -80,4 +82,9 @@ });

// Checks for a Percy token and returns it.
// Priority order is
// 1. passed token to constructor
// 2. PERCY_TOKEN env var [ from env package ]
// 3. token from percy config
getToken(raiseIfMissing = true) {
let token = this.token || this.env.token;
var _this$config$percy;
let token = this.token || this.env.token || ((_this$config$percy = this.config.percy) === null || _this$config$percy === void 0 ? void 0 : _this$config$percy.token);
if (!token && raiseIfMissing) throw new Error('Missing Percy token');

@@ -84,0 +91,0 @@ return token;

10

package.json
{
"name": "@percy/client",
"version": "1.27.3-beta.0",
"version": "1.27.3",
"license": "MIT",

@@ -12,3 +12,3 @@ "repository": {

"access": "public",
"tag": "beta"
"tag": "latest"
},

@@ -36,6 +36,6 @@ "engines": {

"dependencies": {
"@percy/env": "1.27.3-beta.0",
"@percy/logger": "1.27.3-beta.0"
"@percy/env": "1.27.3",
"@percy/logger": "1.27.3"
},
"gitHead": "a9b7ebc7005ee50761373f49ce3454449f38f227"
"gitHead": "932d9ce6c17628786cd19091a218d83d2d1f51d9"
}
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