@sentry/cli
Advanced tools
Comparing version 1.29.1 to 1.30.0
# 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 @@ |
@@ -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
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
Environment variable access
Supply chain riskPackage accesses environment variables, which may be a sign of credential stuffing or data theft.
Found 1 instance in 1 package
9
38697
439