Socket
Socket
Sign inDemoInstall

@percy/cli-command

Package Overview
Dependencies
Maintainers
0
Versions
237
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@percy/cli-command - npm Package Compare versions

Comparing version 1.28.9-beta.0 to 1.28.9-beta.1

11

dist/command.js

@@ -61,4 +61,8 @@ import logger from '@percy/logger';

// Helper to throw an error with an exit code and optional reason message
function exit(exitCode, reason = '') {
function exit(exitCode, reason = '', shouldOverrideExitCode = true) {
let percyExitWithZeroOnError = process.env.PERCY_EXIT_WITH_ZERO_ON_ERROR === 'true';
exitCode = percyExitWithZeroOnError && shouldOverrideExitCode ? 0 : exitCode;
let err = reason instanceof Error ? reason : new Error(reason);
// Adding additional object so that it can be used in runner function below.
err.shouldOverrideExitCode = shouldOverrideExitCode;
throw Object.assign(err, {

@@ -176,3 +180,6 @@ exitCode

if (definition.exitOnError) {
process.exit(err.exitCode);
let shouldOverrideExitCode = err.shouldOverrideExitCode !== false;
let percyExitWithZeroOnError = process.env.PERCY_EXIT_WITH_ZERO_ON_ERROR === 'true';
let exitCode = percyExitWithZeroOnError && shouldOverrideExitCode ? 0 : err.exitCode;
process.exit(exitCode);
}

@@ -179,0 +186,0 @@

10

package.json
{
"name": "@percy/cli-command",
"version": "1.28.9-beta.0",
"version": "1.28.9-beta.1",
"license": "MIT",

@@ -39,7 +39,7 @@ "repository": {

"dependencies": {
"@percy/config": "1.28.9-beta.0",
"@percy/core": "1.28.9-beta.0",
"@percy/logger": "1.28.9-beta.0"
"@percy/config": "1.28.9-beta.1",
"@percy/core": "1.28.9-beta.1",
"@percy/logger": "1.28.9-beta.1"
},
"gitHead": "a1114f1e18518012f48756c9558a8e7895d2b3a9"
"gitHead": "bc0085f5c8ad4e86ac643618579d541c3bbcaf0b"
}
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