@sentry/cli 2.22.2 → 2.22.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/checksums.txt +9 -9
- package/js/helper.js +2 -9
- package/package.json +10 -11
- package/scripts/install.js +7 -17
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=496312273d95ea2bb85cfca442fd1636f2274dabd93ebc994817d235920ad9ca
|
|
2
|
+
sentry-cli-Darwin-universal=e27a32541fb11c37e20b8c83407786e80a3593d332101c5c31be9eb80589cf31
|
|
3
|
+
sentry-cli-Darwin-x86_64=95cbe9aab651d5b097da13c56b0cf30acabe68a8bd5ecc6bd6ec42e60b2a645a
|
|
4
|
+
sentry-cli-Linux-aarch64=ef5d6fcb95a14714bbf401b2685c296efb192b5761ad2dedff2af06fd732cc5d
|
|
5
|
+
sentry-cli-Linux-armv7=c34fde9660e8f7b7213e79882749555e4bc28675c5357153cba74dd30602da87
|
|
6
|
+
sentry-cli-Linux-i686=c621b6a63418d70a5d5bd8ead2b0df54b4eaa0b04efbd4099982304cec82aaf2
|
|
7
|
+
sentry-cli-Linux-x86_64=bcc68cd1de631cbeee481d42391c6646e5fc974293fd3c08fb9e6425077138c9
|
|
8
|
+
sentry-cli-Windows-i686.exe=6a78560f1189d44205cb5d5f39e8e15323175b83ea4e98964521e7b0c8bcbf71
|
|
9
|
+
sentry-cli-Windows-x86_64.exe=377a9978a25bbf80dca1cc8a186466ee1e50e2b3f476e21158be51f54de02242
|
package/js/helper.js
CHANGED
|
@@ -1,7 +1,6 @@
|
|
|
1
1
|
'use strict';
|
|
2
2
|
|
|
3
3
|
const os = require('os');
|
|
4
|
-
const path = require('path');
|
|
5
4
|
const childProcess = require('child_process');
|
|
6
5
|
|
|
7
6
|
const BINARY_DISTRIBUTIONS = [
|
|
@@ -80,14 +79,6 @@ function getBinaryPath() {
|
|
|
80
79
|
return process.env.SENTRY_BINARY_PATH;
|
|
81
80
|
}
|
|
82
81
|
|
|
83
|
-
if (!process.env.USE_SENTRY_BINARY_NPM_DISTRIBUTION) {
|
|
84
|
-
const parts = [];
|
|
85
|
-
parts.push(__dirname);
|
|
86
|
-
parts.push('..');
|
|
87
|
-
parts.push(`sentry-cli${process.platform === 'win32' ? '.exe' : ''}`);
|
|
88
|
-
return path.resolve(...parts);
|
|
89
|
-
}
|
|
90
|
-
|
|
91
82
|
const { packageName, subpath } = getDistributionForThisPlatform();
|
|
92
83
|
|
|
93
84
|
if (packageName === undefined) {
|
|
@@ -141,7 +132,9 @@ let binaryPath = getBinaryPath();
|
|
|
141
132
|
* Overrides the default binary path with a mock value, useful for testing.
|
|
142
133
|
*
|
|
143
134
|
* @param {string} mockPath The new path to the mock sentry-cli binary
|
|
135
|
+
* @deprecated This was used in tests internally and will be removed in the next major version.
|
|
144
136
|
*/
|
|
137
|
+
// TODO(v3): Remove this function
|
|
145
138
|
function mockBinaryPath(mockPath) {
|
|
146
139
|
binaryPath = mockPath;
|
|
147
140
|
}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@sentry/cli",
|
|
3
|
-
"version": "2.22.
|
|
3
|
+
"version": "2.22.3",
|
|
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/",
|
|
@@ -27,19 +27,18 @@
|
|
|
27
27
|
"eslint-config-prettier": "^8.5.0",
|
|
28
28
|
"jest": "^27.5.1",
|
|
29
29
|
"npm-run-all": "^4.1.5",
|
|
30
|
-
"prettier": "
|
|
30
|
+
"prettier": "2.8.8"
|
|
31
31
|
},
|
|
32
32
|
"optionalDependencies": {
|
|
33
|
-
"@sentry/cli-darwin": "2.22.
|
|
34
|
-
"@sentry/cli-linux-arm": "2.22.
|
|
35
|
-
"@sentry/cli-linux-arm64": "2.22.
|
|
36
|
-
"@sentry/cli-linux-i686": "2.22.
|
|
37
|
-
"@sentry/cli-linux-x64": "2.22.
|
|
38
|
-
"@sentry/cli-win32-i686": "2.22.
|
|
39
|
-
"@sentry/cli-win32-x64": "2.22.
|
|
33
|
+
"@sentry/cli-darwin": "2.22.3",
|
|
34
|
+
"@sentry/cli-linux-arm": "2.22.3",
|
|
35
|
+
"@sentry/cli-linux-arm64": "2.22.3",
|
|
36
|
+
"@sentry/cli-linux-i686": "2.22.3",
|
|
37
|
+
"@sentry/cli-linux-x64": "2.22.3",
|
|
38
|
+
"@sentry/cli-win32-i686": "2.22.3",
|
|
39
|
+
"@sentry/cli-win32-x64": "2.22.3"
|
|
40
40
|
},
|
|
41
41
|
"scripts": {
|
|
42
|
-
"install": "node ./scripts/install.js",
|
|
43
42
|
"fix": "npm-run-all fix:eslint fix:prettier",
|
|
44
43
|
"fix:eslint": "eslint --fix bin/* scripts/**/*.js js/**/*.js",
|
|
45
44
|
"fix:prettier": "prettier --write bin/* scripts/**/*.js js/**/*.js",
|
|
@@ -58,7 +57,7 @@
|
|
|
58
57
|
]
|
|
59
58
|
},
|
|
60
59
|
"volta": {
|
|
61
|
-
"node": "10.
|
|
60
|
+
"node": "20.10.0",
|
|
62
61
|
"yarn": "1.22.19"
|
|
63
62
|
}
|
|
64
63
|
}
|
package/scripts/install.js
CHANGED
|
@@ -2,8 +2,13 @@
|
|
|
2
2
|
|
|
3
3
|
'use strict';
|
|
4
4
|
|
|
5
|
+
// TODO(v3): Remove this file
|
|
6
|
+
|
|
7
|
+
console.log(
|
|
8
|
+
'DEPRECATION NOTICE: The Sentry CLI install script has been deprecated. The package now uses "optionalDependencies" instead to install architecture-compatible binaries distributed over npm.'
|
|
9
|
+
);
|
|
10
|
+
|
|
5
11
|
const fs = require('fs');
|
|
6
|
-
const http = require('http');
|
|
7
12
|
const os = require('os');
|
|
8
13
|
const path = require('path');
|
|
9
14
|
const crypto = require('crypto');
|
|
@@ -303,27 +308,12 @@ async function downloadBinary() {
|
|
|
303
308
|
async function checkVersion() {
|
|
304
309
|
const output = await helper.execute(['--version']);
|
|
305
310
|
const version = output.replace('sentry-cli ', '').trim();
|
|
306
|
-
const expected =
|
|
311
|
+
const expected = pkgInfo.version;
|
|
307
312
|
if (version !== expected) {
|
|
308
313
|
throw new Error(`Unexpected sentry-cli version "${version}", expected "${expected}"`);
|
|
309
314
|
}
|
|
310
315
|
}
|
|
311
316
|
|
|
312
|
-
if (process.env.SENTRYCLI_LOCAL_CDNURL) {
|
|
313
|
-
// For testing, mock the CDN by spawning a local server
|
|
314
|
-
const server = http.createServer((request, response) => {
|
|
315
|
-
const contents = fs.readFileSync(path.join(__dirname, '../js/__mocks__/sentry-cli'));
|
|
316
|
-
response.writeHead(200, {
|
|
317
|
-
'Content-Type': 'application/octet-stream',
|
|
318
|
-
'Content-Length': String(contents.byteLength),
|
|
319
|
-
});
|
|
320
|
-
response.end(contents);
|
|
321
|
-
});
|
|
322
|
-
|
|
323
|
-
server.listen(8999);
|
|
324
|
-
process.on('exit', () => server.close());
|
|
325
|
-
}
|
|
326
|
-
|
|
327
317
|
if (process.env.SENTRYCLI_SKIP_DOWNLOAD === '1') {
|
|
328
318
|
logger.log(`Skipping download because SENTRYCLI_SKIP_DOWNLOAD=1 detected.`);
|
|
329
319
|
process.exit(0);
|