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

@sentry/cli

Package Overview
Dependencies
Maintainers
9
Versions
231
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@sentry/cli - npm Package Compare versions

Comparing version 1.29.1 to 1.30.0

6

CHANGELOG.md
# Changelog
## sentry-cli 1.30.0
* Improve the upload for debug information files. It is now faster, allows to resume after network errors, and supports much larger files.
* Add commands to upload Breakpad and ELF (Linux) symbols. See our [documentation page](https://docs.sentry.io/learn/cli/dif/) for more information.
* Fix JavaScript tests on Windows
## sentry-cli 1.29.1

@@ -4,0 +10,0 @@

37

js/helper.js

@@ -11,3 +11,4 @@ 'use strict';

*/
const binaryPath =
// istanbul ignore next
let binaryPath =
os.platform() === 'win32'

@@ -18,25 +19,8 @@ ? path.resolve(__dirname, '..\\bin\\sentry-cli.exe')

/**
* Converts the given option into a command line args array.
* Overrides the default binary path with a mock value, useful for testing.
*
* The value can either be an array of values or a single value. The value(s) will be
* converted to string. If an array is given, the option name is repeated for each value.
*
* @example
* expect(transformOption('--foo', 'a'))
* .toEqual(['--foo', 'a'])
*
* @example
* expect(transformOption('--foo', ['a', 'b']))
* .toEqual(['--foo', 'a', '--foo', 'b']);
*
* @param {string} option The literal name of the option, including dashes.
* @param {any[]|any} values One or more values for this option.
* @returns {string[]} An arguments array that can be passed via command line.
* @param {string} mockPath The new path to the mock sentry-cli binary
*/
function transformOption(option, values) {
if (Array.isArray(values)) {
return values.reduce((acc, value) => acc.concat([option.param, String(value)]), []);
}
return [option.param, String(values)];
function mockBinaryPath(mockPath) {
binaryPath = mockPath;
}

@@ -83,3 +67,5 @@

return newOptions.concat(transformOption(schema[option], paramValue));
return newOptions.concat(
paramValue.reduce((acc, value) => acc.concat([paramName, String(value)]), [])
);
}

@@ -124,6 +110,2 @@

function getPath() {
if (process.env.NODE_ENV === 'test') {
return path.resolve(__dirname, '__mocks__/sentry-cli');
}
return binaryPath;

@@ -166,2 +148,3 @@ }

module.exports = {
mockBinaryPath,
serializeOptions,

@@ -168,0 +151,0 @@ prepareCommand,

{
"name": "@sentry/cli",
"version": "1.29.1",
"version": "1.30.0",
"description": "A command line utility to work with Sentry. https://docs.sentry.io/hosted/learn/cli/",

@@ -5,0 +5,0 @@ "scripts": {

Sorry, the diff of this file is not supported yet

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