@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 +9 -9
- package/js/helper.js +4 -1
- package/js/index.d.ts +5 -0
- package/package.json +1 -1
package/checksums.txt
CHANGED
|
@@ -1,9 +1,9 @@
|
|
|
1
|
-
sentry-cli-Darwin-arm64=
|
|
2
|
-
sentry-cli-Darwin-universal=
|
|
3
|
-
sentry-cli-Darwin-x86_64=
|
|
4
|
-
sentry-cli-Linux-aarch64=
|
|
5
|
-
sentry-cli-Linux-armv7=
|
|
6
|
-
sentry-cli-Linux-i686=
|
|
7
|
-
sentry-cli-Linux-x86_64=
|
|
8
|
-
sentry-cli-Windows-i686.exe=
|
|
9
|
-
sentry-cli-Windows-x86_64.exe=
|
|
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' ? '
|
|
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.
|
|
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/",
|