@sentry/cli 2.7.0 → 2.8.0

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/checksums.txt CHANGED
@@ -1,9 +1,9 @@
1
- sentry-cli-Darwin-arm64=d9ea5cbb53c3809558007f6b3af809b3ad186d4a2014929d63099633d44d9765
2
- sentry-cli-Darwin-universal=a757a3700bcb16c16485f15d0a187c12ac1edd40b4aa29f5cb955f9a4fa9ae96
3
- sentry-cli-Darwin-x86_64=d56d1a4e793d2cceb4cd9614794241a34332c3bc1a217972c019165c3d146e3d
4
- sentry-cli-Linux-aarch64=9908b947a7a2c393e8c115665d972fbe3eb67e540b1ee0b07fedce78e7a712cf
5
- sentry-cli-Linux-armv7=0f240f47f6b38a3b7c4025cd3d4e53c746e9b6a05f210ecd7d41bc09512e0b77
6
- sentry-cli-Linux-i686=dc08351e062a2d30309cb1f94173f79b2b7cf2e23d122adbfbdd71a1afb88d9c
7
- sentry-cli-Linux-x86_64=6a57a418b34c5ad71b5dddc73b8d63b5662b8a11713ac0d92377b64976507d82
8
- sentry-cli-Windows-i686.exe=f4877fca56d94c56784baca8140dd5e7552db1dae646c0b107be350b3b5f5209
9
- sentry-cli-Windows-x86_64.exe=76f3bf7c8edca9b660b82f53d5b94e9dc0505075d5cfb2ace09d807f9ed22bf0
1
+ sentry-cli-Darwin-arm64=772a45b9e9935f1105bdd3bd63f448bd78432fc4616c253cc6aa295f743c364c
2
+ sentry-cli-Darwin-universal=a2aadaf804fad99ac70f52a32bf1f0ff53327ed52c2a723fea04bbe9cbde3485
3
+ sentry-cli-Darwin-x86_64=eb4f04ad6c577fcf397a46c58e9d9a7073d777237f70a25af5c30c3f00060e55
4
+ sentry-cli-Linux-aarch64=652b0a6fb992fac95b80bcc6d2f59868750ac22eb2ff4156d3c8bd646c934c3b
5
+ sentry-cli-Linux-armv7=0c41f307f3f2a69270150b1b8fd41acbbcfbe8730610d3a7dd8bdd7aecac6613
6
+ sentry-cli-Linux-i686=b543cf7394a0516fa85d69a63a8f0a91a5aa3ccceb5d40355193f8491224b1bf
7
+ sentry-cli-Linux-x86_64=bbbd739afc0d8a6736ae45e5f6fcd6db87f7abf45de9fa76e5621834f2dfd15d
8
+ sentry-cli-Windows-i686.exe=760d313eddd0f1dd5b23301635dc7c4512b021d9dc01067eb7fa6b54e4789078
9
+ sentry-cli-Windows-x86_64.exe=a89a4ca913be1e5ff9ccb456b5bde221bb59128eb5ca2de0f6bcd09a119471ee
package/js/helper.js CHANGED
@@ -7,7 +7,7 @@ const childProcess = require('child_process');
7
7
  * @type {string}
8
8
  */
9
9
  let binaryPath = eval(
10
- "require('path').resolve(__dirname, require('os').platform() === 'win32' ? '..\\sentry-cli.exe' : '../sentry-cli')"
10
+ "require('path').resolve(__dirname, require('os').platform() === 'win32' ? '../sentry-cli.exe' : '../sentry-cli')"
11
11
  );
12
12
 
13
13
  /**
@@ -164,6 +164,9 @@ async function execute(args, live, silent, configFile, config = {}) {
164
164
  }
165
165
  if (config.customHeader) {
166
166
  env.CUSTOM_HEADER = config.customHeader;
167
+ } else if (config.headers) {
168
+ const headers = Object.entries(config.headers).flatMap(([key, value]) => ['--header', `${key}:${value}`]);
169
+ args = [...headers, ...args];
167
170
  }
168
171
  return new Promise((resolve, reject) => {
169
172
  if (live === true) {
package/js/index.d.ts CHANGED
@@ -47,6 +47,11 @@ declare module '@sentry/cli' {
47
47
  * This value will update `CUSTOM_HEADER` env variable.
48
48
  */
49
49
  customHeader?: string;
50
+ /**
51
+ * Headers added to every outgoing network request.
52
+ * This value does not set any env variable, and is overridden by `customHeader`.
53
+ */
54
+ headers?: Record<string, string>;
50
55
  }
51
56
 
52
57
  /**
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@sentry/cli",
3
- "version": "2.7.0",
3
+ "version": "2.8.0",
4
4
  "description": "A command line utility to work with Sentry. https://docs.sentry.io/hosted/learn/cli/",
5
5
  "repository": "git://github.com/getsentry/sentry-cli.git",
6
6
  "homepage": "https://docs.sentry.io/hosted/learn/cli/",