@sentry/cli 2.58.2 → 2.58.3
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/LICENSE +110 -27
- package/checksums.txt +7 -10
- package/js/helper.d.ts +123 -0
- package/js/helper.js +222 -243
- package/js/index.d.ts +59 -234
- package/js/index.js +53 -49
- package/js/logger.d.ts +6 -0
- package/js/logger.js +7 -10
- package/js/releases/index.d.ts +148 -0
- package/js/releases/index.js +230 -244
- package/js/releases/options/deploys.d.ts +2 -0
- package/js/releases/options/deploys.js +24 -24
- package/js/releases/options/uploadSourcemaps.d.ts +2 -0
- package/js/releases/options/uploadSourcemaps.js +57 -57
- package/js/types.d.ts +230 -0
- package/js/types.js +4 -0
- package/package.json +19 -16
package/LICENSE
CHANGED
|
@@ -1,27 +1,110 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
1
|
+
# Functional Source License, Version 1.1, MIT Future License
|
|
2
|
+
|
|
3
|
+
## Abbreviation
|
|
4
|
+
|
|
5
|
+
FSL-1.1-MIT
|
|
6
|
+
|
|
7
|
+
## Notice
|
|
8
|
+
|
|
9
|
+
Copyright 2008-2025 Functional Software, Inc. dba Sentry
|
|
10
|
+
|
|
11
|
+
## Terms and Conditions
|
|
12
|
+
|
|
13
|
+
### Licensor ("We")
|
|
14
|
+
|
|
15
|
+
The party offering the Software under these Terms and Conditions.
|
|
16
|
+
|
|
17
|
+
### The Software
|
|
18
|
+
|
|
19
|
+
The "Software" is each version of the software that we make available under
|
|
20
|
+
these Terms and Conditions, as indicated by our inclusion of these Terms and
|
|
21
|
+
Conditions with the Software.
|
|
22
|
+
|
|
23
|
+
### License Grant
|
|
24
|
+
|
|
25
|
+
Subject to your compliance with this License Grant and the Patents,
|
|
26
|
+
Redistribution and Trademark clauses below, we hereby grant you the right to
|
|
27
|
+
use, copy, modify, create derivative works, publicly perform, publicly display
|
|
28
|
+
and redistribute the Software for any Permitted Purpose identified below.
|
|
29
|
+
|
|
30
|
+
### Permitted Purpose
|
|
31
|
+
|
|
32
|
+
A Permitted Purpose is any purpose other than a Competing Use. A Competing Use
|
|
33
|
+
means making the Software available to others in a commercial product or
|
|
34
|
+
service that:
|
|
35
|
+
|
|
36
|
+
1. substitutes for the Software;
|
|
37
|
+
|
|
38
|
+
2. substitutes for any other product or service we offer using the Software
|
|
39
|
+
that exists as of the date we make the Software available; or
|
|
40
|
+
|
|
41
|
+
3. offers the same or substantially similar functionality as the Software.
|
|
42
|
+
|
|
43
|
+
Permitted Purposes specifically include using the Software:
|
|
44
|
+
|
|
45
|
+
1. for your internal use and access;
|
|
46
|
+
|
|
47
|
+
2. for non-commercial education;
|
|
48
|
+
|
|
49
|
+
3. for non-commercial research; and
|
|
50
|
+
|
|
51
|
+
4. in connection with professional services that you provide to a licensee
|
|
52
|
+
using the Software in accordance with these Terms and Conditions.
|
|
53
|
+
|
|
54
|
+
### Patents
|
|
55
|
+
|
|
56
|
+
To the extent your use for a Permitted Purpose would necessarily infringe our
|
|
57
|
+
patents, the license grant above includes a license under our patents. If you
|
|
58
|
+
make a claim against any party that the Software infringes or contributes to
|
|
59
|
+
the infringement of any patent, then your patent license to the Software ends
|
|
60
|
+
immediately.
|
|
61
|
+
|
|
62
|
+
### Redistribution
|
|
63
|
+
|
|
64
|
+
The Terms and Conditions apply to all copies, modifications and derivatives of
|
|
65
|
+
the Software.
|
|
66
|
+
|
|
67
|
+
If you redistribute any copies, modifications or derivatives of the Software,
|
|
68
|
+
you must include a copy of or a link to these Terms and Conditions and not
|
|
69
|
+
remove any copyright notices provided in or with the Software.
|
|
70
|
+
|
|
71
|
+
### Disclaimer
|
|
72
|
+
|
|
73
|
+
THE SOFTWARE IS PROVIDED "AS IS" AND WITHOUT WARRANTIES OF ANY KIND, EXPRESS OR
|
|
74
|
+
IMPLIED, INCLUDING WITHOUT LIMITATION WARRANTIES OF FITNESS FOR A PARTICULAR
|
|
75
|
+
PURPOSE, MERCHANTABILITY, TITLE OR NON-INFRINGEMENT.
|
|
76
|
+
|
|
77
|
+
IN NO EVENT WILL WE HAVE ANY LIABILITY TO YOU ARISING OUT OF OR RELATED TO THE
|
|
78
|
+
SOFTWARE, INCLUDING INDIRECT, SPECIAL, INCIDENTAL OR CONSEQUENTIAL DAMAGES,
|
|
79
|
+
EVEN IF WE HAVE BEEN INFORMED OF THEIR POSSIBILITY IN ADVANCE.
|
|
80
|
+
|
|
81
|
+
### Trademarks
|
|
82
|
+
|
|
83
|
+
Except for displaying the License Details and identifying us as the origin of
|
|
84
|
+
the Software, you have no right under these Terms and Conditions to use our
|
|
85
|
+
trademarks, trade names, service marks or product names.
|
|
86
|
+
|
|
87
|
+
## Grant of Future License
|
|
88
|
+
|
|
89
|
+
We hereby irrevocably grant you an additional license to use the Software under
|
|
90
|
+
the MIT license that is effective on the second anniversary of the date we make
|
|
91
|
+
the Software available. On or after that date, you may use the Software under
|
|
92
|
+
the MIT license, in which case the following will apply:
|
|
93
|
+
|
|
94
|
+
Permission is hereby granted, free of charge, to any person obtaining a copy of
|
|
95
|
+
this software and associated documentation files (the "Software"), to deal in
|
|
96
|
+
the Software without restriction, including without limitation the rights to
|
|
97
|
+
use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies
|
|
98
|
+
of the Software, and to permit persons to whom the Software is furnished to do
|
|
99
|
+
so, subject to the following conditions:
|
|
100
|
+
|
|
101
|
+
The above copyright notice and this permission notice shall be included in all
|
|
102
|
+
copies or substantial portions of the Software.
|
|
103
|
+
|
|
104
|
+
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
|
|
105
|
+
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
|
|
106
|
+
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
|
|
107
|
+
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
|
|
108
|
+
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
|
|
109
|
+
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
|
|
110
|
+
SOFTWARE.
|
package/checksums.txt
CHANGED
|
@@ -1,10 +1,7 @@
|
|
|
1
|
-
sentry-cli-
|
|
2
|
-
sentry-cli-
|
|
3
|
-
sentry-cli-
|
|
4
|
-
sentry-cli-Linux-
|
|
5
|
-
sentry-cli-
|
|
6
|
-
sentry-cli-
|
|
7
|
-
sentry-cli-
|
|
8
|
-
sentry-cli-Windows-aarch64.exe=a4a4dff5e176392510674b1afd73324bedf0ea66bdd8234654389429cda9b576
|
|
9
|
-
sentry-cli-Windows-i686.exe=29290444fd2b796fe14c5d058eafe883293257f9f650fe20080bd37214b2ffe5
|
|
10
|
-
sentry-cli-Windows-x86_64.exe=e89a23566d5e17a5fb2fe40e182e6e0a6cf07134330c7588d5b6025071bcae3f
|
|
1
|
+
sentry-cli-Linux-aarch64=30f95cf10ff96bdbbfdc1a25a7b65ee0a7f906f2c380c0cdde185d14d5535246
|
|
2
|
+
sentry-cli-Linux-armv7=ae2c0ecee950055b388817bdb6dd543730c36d6def8794252c00314c3f0a7e18
|
|
3
|
+
sentry-cli-Linux-i686=4a36158a3140a26e1e8fbbb72f80a836df3f49ebcb5787e05b360e0f9ee01b3c
|
|
4
|
+
sentry-cli-Linux-x86_64=645e64af49e68a285b66d7ddf440d06b76f8a5603797060f61c0c487ac7e2a89
|
|
5
|
+
sentry-cli-Windows-aarch64.exe=ae190527ff55ed70c028d033408f446fa99c87b9fabe0ea7b1a336851940b77a
|
|
6
|
+
sentry-cli-Windows-i686.exe=024a72a8ff6e076cd500c17086a7a146dfb59e9469936eb16b8a1ba31cf7394a
|
|
7
|
+
sentry-cli-Windows-x86_64.exe=e26c363d45c572c6ae133a913657f995d171f7179aa221371da81966b0d5d2ef
|
package/js/helper.d.ts
ADDED
|
@@ -0,0 +1,123 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* The javascript type of a command line option.
|
|
3
|
+
*/
|
|
4
|
+
export type OptionType = "array" | "string" | "boolean" | "inverted-boolean";
|
|
5
|
+
/**
|
|
6
|
+
* Schema definition of a command line option.
|
|
7
|
+
*/
|
|
8
|
+
export type OptionSchema = {
|
|
9
|
+
/**
|
|
10
|
+
* The flag of the command line option including dashes.
|
|
11
|
+
*/
|
|
12
|
+
param: string;
|
|
13
|
+
/**
|
|
14
|
+
* The value type of the command line option.
|
|
15
|
+
*/
|
|
16
|
+
type: OptionType;
|
|
17
|
+
/**
|
|
18
|
+
* The flag of the command line option including dashes (optional).
|
|
19
|
+
*/
|
|
20
|
+
invertedParam?: string;
|
|
21
|
+
};
|
|
22
|
+
/**
|
|
23
|
+
* Schema definition for a command.
|
|
24
|
+
*/
|
|
25
|
+
export type OptionsSchema = {
|
|
26
|
+
[x: string]: OptionSchema;
|
|
27
|
+
};
|
|
28
|
+
/**
|
|
29
|
+
* Runs `sentry-cli` with the given command line arguments.
|
|
30
|
+
*
|
|
31
|
+
* Use {@link prepareCommand} to specify the command and add arguments for command-
|
|
32
|
+
* specific options. For top-level options, use {@link serializeOptions} directly.
|
|
33
|
+
*
|
|
34
|
+
* The returned promise resolves with the standard output of the command invocation
|
|
35
|
+
* including all newlines. In order to parse this output, be sure to trim the output
|
|
36
|
+
* first.
|
|
37
|
+
*
|
|
38
|
+
* If the command failed to execute, the Promise rejects with the error returned by the
|
|
39
|
+
* CLI. This error includes a `code` property with the process exit status.
|
|
40
|
+
*
|
|
41
|
+
* @example
|
|
42
|
+
* const output = await execute(['--version']);
|
|
43
|
+
* expect(output.trim()).toBe('sentry-cli x.y.z');
|
|
44
|
+
*
|
|
45
|
+
* @param {string[]} args Command line arguments passed to `sentry-cli`.
|
|
46
|
+
* @param {boolean | 'rejectOnError'} live can be set to:
|
|
47
|
+
* - `true` to inherit stdio to display `sentry-cli` output directly.
|
|
48
|
+
* - `false` to not inherit stdio and return the output as a string.
|
|
49
|
+
* - `'rejectOnError'` to inherit stdio and reject the promise if the command
|
|
50
|
+
* exits with a non-zero exit code.
|
|
51
|
+
* @param {boolean} silent Disable stdout for silents build (CI/Webpack Stats, ...)
|
|
52
|
+
* @param {string} [configFile] Relative or absolute path to the configuration file.
|
|
53
|
+
* @param {import('./index').SentryCliOptions} [config] More configuration to pass to the CLI
|
|
54
|
+
* @returns {Promise<string>} A promise that resolves to the standard output.
|
|
55
|
+
*/
|
|
56
|
+
export function execute(args: string[], live: boolean | "rejectOnError", silent: boolean, configFile?: string, config?: import("./index").SentryCliOptions): Promise<string>;
|
|
57
|
+
/**
|
|
58
|
+
* Returns the absolute path to the `sentry-cli` binary.
|
|
59
|
+
* @returns {string}
|
|
60
|
+
*/
|
|
61
|
+
export function getPath(): string;
|
|
62
|
+
export function getProjectFlagsFromOptions({ projects }?: {
|
|
63
|
+
projects?: any[];
|
|
64
|
+
}): any;
|
|
65
|
+
/**
|
|
66
|
+
* Overrides the default binary path with a mock value, useful for testing.
|
|
67
|
+
*
|
|
68
|
+
* @param {string} mockPath The new path to the mock sentry-cli binary
|
|
69
|
+
* @deprecated This was used in tests internally and will be removed in the next major version.
|
|
70
|
+
*/
|
|
71
|
+
export function mockBinaryPath(mockPath: string): void;
|
|
72
|
+
/**
|
|
73
|
+
* Serializes the command and its options into an arguments array.
|
|
74
|
+
*
|
|
75
|
+
* @param {string[]} command The literal name of the command.
|
|
76
|
+
* @param {OptionsSchema} [schema] An options schema required by the command.
|
|
77
|
+
* @param {object} [options] An options object according to the schema.
|
|
78
|
+
* @returns {string[]} An arguments array that can be passed via command line.
|
|
79
|
+
*/
|
|
80
|
+
export function prepareCommand(command: string[], schema?: OptionsSchema, options?: object): string[];
|
|
81
|
+
/**
|
|
82
|
+
* The javascript type of a command line option.
|
|
83
|
+
* @typedef {'array'|'string'|'boolean'|'inverted-boolean'} OptionType
|
|
84
|
+
*/
|
|
85
|
+
/**
|
|
86
|
+
* Schema definition of a command line option.
|
|
87
|
+
* @typedef {object} OptionSchema
|
|
88
|
+
* @prop {string} param The flag of the command line option including dashes.
|
|
89
|
+
* @prop {OptionType} type The value type of the command line option.
|
|
90
|
+
* @prop {string} [invertedParam] The flag of the command line option including dashes (optional).
|
|
91
|
+
*/
|
|
92
|
+
/**
|
|
93
|
+
* Schema definition for a command.
|
|
94
|
+
* @typedef {Object.<string, OptionSchema>} OptionsSchema
|
|
95
|
+
*/
|
|
96
|
+
/**
|
|
97
|
+
* Serializes command line options into an arguments array.
|
|
98
|
+
*
|
|
99
|
+
* @param {OptionsSchema} schema An options schema required by the command.
|
|
100
|
+
* @param {object} options An options object according to the schema.
|
|
101
|
+
* @returns {string[]} An arguments array that can be passed via command line.
|
|
102
|
+
*/
|
|
103
|
+
export function serializeOptions(schema: OptionsSchema, options: object): string[];
|
|
104
|
+
export function getDistributionForThisPlatform(): {
|
|
105
|
+
packageName: string;
|
|
106
|
+
subpath: string;
|
|
107
|
+
};
|
|
108
|
+
/**
|
|
109
|
+
* Throws an error with a message stating that Sentry CLI doesn't support the current platform.
|
|
110
|
+
*
|
|
111
|
+
* @returns {never} nothing. It throws.
|
|
112
|
+
*/
|
|
113
|
+
export function throwUnsupportedPlatformError(): never;
|
|
114
|
+
/**
|
|
115
|
+
* This convoluted function resolves the path to the manually downloaded fallback
|
|
116
|
+
* `sentry-cli` binary in a way that can't be analysed by @vercel/nft.
|
|
117
|
+
*
|
|
118
|
+
* Without this, the binary can be detected as an asset and included by bundlers
|
|
119
|
+
* that use @vercel/nft.
|
|
120
|
+
*
|
|
121
|
+
* @returns {string} The path to the sentry-cli binary
|
|
122
|
+
*/
|
|
123
|
+
export function getFallbackBinaryPath(): string;
|