@sentry/cli 1.73.0 → 1.73.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/CHANGELOG.md CHANGED
@@ -2,7 +2,12 @@
2
2
 
3
3
  "You know what they say. Fool me once, strike one, but fool me twice... strike three." — Michael Scott
4
4
 
5
- ## Unreleased
5
+ ## 1.73.1
6
+
7
+ ### Various fixes & improvements
8
+
9
+ - feat: Allow for using local binary through SENTRYCLI_USE_LOCAL env (#1129) by @kamilogorek
10
+ - ref: Dont panic on malformed xcodeproj directories (#1127) by @kamilogorek
6
11
 
7
12
  ## 1.73.0
8
13
 
package/checksums.txt CHANGED
@@ -1,9 +1,9 @@
1
- sentry-cli-Darwin-arm64=8a66ee7778d6e0fa1d26e89e69d9ede39b1a3d935c6dbbaeed07242e7608ad10
2
- sentry-cli-Darwin-universal=392fdfa1af128420a513de98e596b83c08e7242be4f3435e6f2b9665dec15811
3
- sentry-cli-Darwin-x86_64=7386d7c1e4e9e756f4f95eb6b2202945063961eb585dd2433ad8c268fe880988
4
- sentry-cli-Linux-aarch64=9ae2a36e491dfea3b6c113ec5084680867a361a58671e21eb163fa553a8dde15
5
- sentry-cli-Linux-armv7=5b3f36babcc10c232783ec76f48eac9a8ec2a77db7626604127799c2f445c73f
6
- sentry-cli-Linux-i686=90eaf2f259999becdf2d127489c71b2c33952b0c67f13215306abecbdf893ddd
7
- sentry-cli-Linux-x86_64=ad9b2a8caf3f05cfc51024a9d10650dbffaa005abd8f407801f318c4924d366d
8
- sentry-cli-Windows-i686.exe=e691047003f9e10a1e1a6d689010d076374952ab2cd08afb2252f9d9da5437d2
9
- sentry-cli-Windows-x86_64.exe=31b212913c1ffa0bfc1cf6823d0bcb699adf4bf0ef9f9c6e2218215aba9bc3ec
1
+ sentry-cli-Darwin-arm64=94134d4e93df23462698f09ff172b53abcff13ef929507670372c84b20f776b7
2
+ sentry-cli-Darwin-universal=041e3994de2d49c562792ae74d2a4f9be1fa145f267dcb1ec894cd83cb8ec2f6
3
+ sentry-cli-Darwin-x86_64=2b236ce84f866251013964ad4190ee6be8e8079d52d5b38d0efd13a468073f20
4
+ sentry-cli-Linux-aarch64=3dc9dacf69d55f4fe64e67dccbea647f50f884019e0d0eb58534f407bbde7fbd
5
+ sentry-cli-Linux-armv7=28bbd534ab4312e6a49b9792cf6f12c77fe5a280fa7bb7d71101af66ce3380b5
6
+ sentry-cli-Linux-i686=437eeed2799dabae95e3fda76ddff649604729068265b2c2d88afff1a3a64446
7
+ sentry-cli-Linux-x86_64=85ca7fce2267088766fdb6d00d6ff3ad45e43c234eab21a107e70292cee714c7
8
+ sentry-cli-Windows-i686.exe=e994d15f6d6300feaca1f178d4b980b44162e8d9fac7ef23fff9490fd033aa6a
9
+ sentry-cli-Windows-x86_64.exe=224a411aa268183576b56cd3978a4cd5e58bea4753f67bcfda51be5b46a5a58b
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@sentry/cli",
3
- "version": "1.73.0",
3
+ "version": "1.73.1",
4
4
  "description": "A command line utility to work with Sentry. https://docs.sentry.io/hosted/learn/cli/",
5
5
  "homepage": "https://docs.sentry.io/hosted/learn/cli/",
6
6
  "license": "BSD-3-Clause",
@@ -40,7 +40,8 @@
40
40
  "node-fetch": "^2.6.7",
41
41
  "npmlog": "^4.1.2",
42
42
  "progress": "^2.0.3",
43
- "proxy-from-env": "^1.1.0"
43
+ "proxy-from-env": "^1.1.0",
44
+ "which": "^2.0.2"
44
45
  },
45
46
  "devDependencies": {
46
47
  "eslint": "^6.8.0",
@@ -18,6 +18,7 @@ const Proxy = require('proxy-from-env');
18
18
  // NOTE: Can be dropped in favor of `fs.mkdirSync(path, { recursive: true })` once we stop supporting Node 8.x
19
19
  const mkdirp = require('mkdirp');
20
20
  const npmLog = require('npmlog');
21
+ const which = require('which');
21
22
 
22
23
  const helper = require('../js/helper');
23
24
  const pkgInfo = require('../package.json');
@@ -194,6 +195,20 @@ function downloadBinary() {
194
195
  const platform = os.platform();
195
196
  const outputPath = helper.getPath();
196
197
 
198
+ if (process.env.SENTRYCLI_USE_LOCAL === '1') {
199
+ try {
200
+ const binPath = which.sync('sentry-cli');
201
+ npmLog.info('sentry-cli', `Using local binary: ${binPath}`);
202
+ fs.copyFileSync(binPath, outputPath);
203
+ return Promise.resolve();
204
+ } catch (e) {
205
+ throw new Error(
206
+ 'Configured installation of local binary, but it was not found.' +
207
+ 'Make sure that `sentry-cli` executable is available in your $PATH or disable SENTRYCLI_USE_LOCAL env variable.'
208
+ );
209
+ }
210
+ }
211
+
197
212
  const downloadUrl = getDownloadUrl(platform, arch);
198
213
  if (!downloadUrl) {
199
214
  return Promise.reject(new Error(`Unsupported target ${platform}-${arch}`));