@sentry/cli
Advanced tools
Comparing version 1.36.1 to 1.36.2
# Changelog | ||
## sentry-cli 1.36.2 | ||
* Download packages from Fastly's CDN when installing via NPM and Brew (#417) | ||
* Allow uploading executables and debug symbols in one go (#412) | ||
## sentry-cli 1.36.1 | ||
@@ -4,0 +9,0 @@ |
@@ -70,3 +70,3 @@ 'use strict'; | ||
if (paramType === 'boolean' || paramType === 'inverted-boolean') { | ||
if (paramType === 'boolean') { | ||
if (typeof paramValue !== 'boolean') { | ||
@@ -76,8 +76,10 @@ throw new Error(`${option} should be a bool`); | ||
if (paramType === 'boolean' && paramValue) { | ||
const invertedParamName = schema[option].invertedParam; | ||
if (paramValue && paramName !== undefined) { | ||
return newOptions.concat([paramName]); | ||
} | ||
if (paramType === 'inverted-boolean' && paramValue === false) { | ||
return newOptions.concat([paramName]); | ||
if (!paramValue && invertedParamName !== undefined) { | ||
return newOptions.concat([invertedParamName]); | ||
} | ||
@@ -84,0 +86,0 @@ |
@@ -104,3 +104,6 @@ 'use strict'; | ||
const args = ['releases', 'files', release, 'upload-sourcemaps', sourcemapPath]; | ||
return helper.execute(helper.prepareCommand(args, SOURCEMAPS_SCHEMA, options)); | ||
return helper.execute( | ||
helper.prepareCommand(args, SOURCEMAPS_SCHEMA, options), | ||
true | ||
); | ||
}); | ||
@@ -107,0 +110,0 @@ |
@@ -12,7 +12,8 @@ module.exports = { | ||
param: '--rewrite', | ||
invertedParam: '--no-rewrite', | ||
type: 'boolean', | ||
}, | ||
sourceMapReference: { | ||
param: '--no-sourcemap-reference', | ||
type: 'inverted-boolean', | ||
invertedParam: '--no-sourcemap-reference', | ||
type: 'boolean', | ||
}, | ||
@@ -19,0 +20,0 @@ stripPrefix: { |
{ | ||
"name": "@sentry/cli", | ||
"version": "1.36.1", | ||
"version": "1.36.2", | ||
"description": "A command line utility to work with Sentry. https://docs.sentry.io/hosted/learn/cli/", | ||
@@ -5,0 +5,0 @@ "scripts": { |
@@ -41,7 +41,4 @@ <p align="center"> | ||
By default, this package will download sentry-cli from | ||
[releases](https://github.com/getsentry/sentry-cli/releases). This should work | ||
fine for most people. If you are experiencing issues with downloading from | ||
GitHub, you may need to use a different download mirror. To use a custom CDN, | ||
set the npm config property `sentrycli_cdnurl`. The downloader will append | ||
By default, this package will download sentry-cli from the CDN managed by [Fastly](https://www.fastly.com/). | ||
To use a custom CDN, set the npm config property `sentrycli_cdnurl`. The downloader will append | ||
`"/<version>/sentry-cli-<dist>"`. | ||
@@ -48,0 +45,0 @@ |
@@ -22,3 +22,3 @@ #!/usr/bin/env node | ||
process.env.SENTRYCLI_CDNURL || | ||
'https://github.com/getsentry/sentry-cli/releases/download'; | ||
'https://downloads.sentry-cdn.com/sentry-cli'; | ||
@@ -119,3 +119,5 @@ function getDownloadUrl(platform, arch) { | ||
if (version !== expected) { | ||
throw new Error(`Unexpected sentry-cli version: ${version}`); | ||
throw new Error( | ||
`Unexpected sentry-cli version "${version}", expected "${expected}` | ||
); | ||
} | ||
@@ -122,0 +124,0 @@ }); |
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
42676
471
109