@socketsecurity/cli-with-sentry 0.14.137 → 0.14.138
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/dist/blessed/LICENSE +20 -0
- package/dist/blessed/lib/alias.js +519 -0
- package/dist/blessed/lib/blessed.js +32 -0
- package/dist/blessed/lib/colors.js +490 -0
- package/dist/blessed/lib/events.js +195 -0
- package/dist/blessed/lib/gpmclient.js +245 -0
- package/dist/blessed/lib/helpers.js +170 -0
- package/dist/blessed/lib/keys.js +512 -0
- package/dist/blessed/lib/program.js +4530 -0
- package/dist/blessed/lib/tput.js +3111 -0
- package/dist/blessed/lib/unicode.js +912 -0
- package/dist/blessed/lib/widget.js +60 -0
- package/dist/blessed/lib/widgets/ansiimage.js +173 -0
- package/dist/blessed/lib/widgets/bigtext.js +170 -0
- package/dist/blessed/lib/widgets/box.js +34 -0
- package/dist/blessed/lib/widgets/button.js +62 -0
- package/dist/blessed/lib/widgets/checkbox.js +95 -0
- package/dist/blessed/lib/widgets/element.js +2871 -0
- package/dist/blessed/lib/widgets/filemanager.js +223 -0
- package/dist/blessed/lib/widgets/form.js +301 -0
- package/dist/blessed/lib/widgets/image.js +71 -0
- package/dist/blessed/lib/widgets/input.js +34 -0
- package/dist/blessed/lib/widgets/layout.js +249 -0
- package/dist/blessed/lib/widgets/line.js +59 -0
- package/dist/blessed/lib/widgets/list.js +652 -0
- package/dist/blessed/lib/widgets/listbar.js +452 -0
- package/dist/blessed/lib/widgets/listtable.js +265 -0
- package/dist/blessed/lib/widgets/loading.js +88 -0
- package/dist/blessed/lib/widgets/log.js +82 -0
- package/dist/blessed/lib/widgets/message.js +145 -0
- package/dist/blessed/lib/widgets/node.js +314 -0
- package/dist/blessed/lib/widgets/overlayimage.js +794 -0
- package/dist/blessed/lib/widgets/progressbar.js +166 -0
- package/dist/blessed/lib/widgets/prompt.js +127 -0
- package/dist/blessed/lib/widgets/question.js +129 -0
- package/dist/blessed/lib/widgets/radiobutton.js +62 -0
- package/dist/blessed/lib/widgets/radioset.js +36 -0
- package/dist/blessed/lib/widgets/screen.js +2485 -0
- package/dist/blessed/lib/widgets/scrollablebox.js +415 -0
- package/dist/blessed/lib/widgets/scrollabletext.js +35 -0
- package/dist/blessed/lib/widgets/table.js +383 -0
- package/dist/blessed/lib/widgets/terminal.js +452 -0
- package/dist/blessed/lib/widgets/text.js +35 -0
- package/dist/blessed/lib/widgets/textarea.js +376 -0
- package/dist/blessed/lib/widgets/textbox.js +79 -0
- package/dist/blessed/lib/widgets/video.js +130 -0
- package/dist/blessed/usr/fonts/AUTHORS +1 -0
- package/dist/blessed/usr/fonts/LICENSE +94 -0
- package/dist/blessed/usr/fonts/README +340 -0
- package/dist/blessed/usr/fonts/ter-u14b.json +17826 -0
- package/dist/blessed/usr/fonts/ter-u14n.json +17826 -0
- package/dist/blessed/usr/linux +0 -0
- package/dist/blessed/usr/windows-ansi +0 -0
- package/dist/blessed/usr/xterm +0 -0
- package/dist/blessed/usr/xterm-256color +0 -0
- package/dist/blessed/usr/xterm.termcap +243 -0
- package/dist/blessed/usr/xterm.terminfo +1977 -0
- package/dist/blessed/vendor/tng.js +1876 -0
- package/dist/blessed-contrib/LICENSE.md +21 -0
- package/dist/blessed-contrib/lib/layout/carousel.js +82 -0
- package/dist/blessed-contrib/lib/layout/grid.js +46 -0
- package/dist/blessed-contrib/lib/server-utils.js +83 -0
- package/dist/blessed-contrib/lib/utils.js +73 -0
- package/dist/blessed-contrib/lib/widget/canvas.js +52 -0
- package/dist/blessed-contrib/lib/widget/charts/bar.js +99 -0
- package/dist/blessed-contrib/lib/widget/charts/line.js +311 -0
- package/dist/blessed-contrib/lib/widget/charts/stacked-bar.js +245 -0
- package/dist/blessed-contrib/lib/widget/donut.js +183 -0
- package/dist/blessed-contrib/lib/widget/gauge-list.js +111 -0
- package/dist/blessed-contrib/lib/widget/gauge.js +127 -0
- package/dist/blessed-contrib/lib/widget/lcd.js +497 -0
- package/dist/blessed-contrib/lib/widget/log.js +32 -0
- package/dist/blessed-contrib/lib/widget/map.js +97 -0
- package/dist/blessed-contrib/lib/widget/markdown.js +68 -0
- package/dist/blessed-contrib/lib/widget/picture.js +61 -0
- package/dist/blessed-contrib/lib/widget/sparkline.js +66 -0
- package/dist/blessed-contrib/lib/widget/table.js +141 -0
- package/dist/blessed-contrib/lib/widget/tree.js +179 -0
- package/dist/blessed-contrib/node_modules/ansi-regex/index.js +6 -0
- package/dist/blessed-contrib/node_modules/ansi-regex/license +21 -0
- package/dist/blessed-contrib/node_modules/ansi-regex/package.json +64 -0
- package/dist/blessed-contrib/node_modules/ansi-regex/readme.md +39 -0
- package/dist/blessed-contrib/node_modules/ansi-styles/index.js +67 -0
- package/dist/blessed-contrib/node_modules/ansi-styles/license +21 -0
- package/dist/blessed-contrib/node_modules/ansi-styles/package.json +50 -0
- package/dist/blessed-contrib/node_modules/ansi-styles/readme.md +86 -0
- package/dist/blessed-contrib/node_modules/chalk/index.js +118 -0
- package/dist/blessed-contrib/node_modules/chalk/license +21 -0
- package/dist/blessed-contrib/node_modules/chalk/package.json +70 -0
- package/dist/blessed-contrib/node_modules/chalk/readme.md +213 -0
- package/dist/blessed-contrib/node_modules/escape-string-regexp/index.js +13 -0
- package/dist/blessed-contrib/node_modules/escape-string-regexp/license +21 -0
- package/dist/blessed-contrib/node_modules/escape-string-regexp/package.json +41 -0
- package/dist/blessed-contrib/node_modules/escape-string-regexp/readme.md +27 -0
- package/dist/blessed-contrib/node_modules/strip-ansi/index.js +8 -0
- package/dist/blessed-contrib/node_modules/strip-ansi/license +21 -0
- package/dist/blessed-contrib/node_modules/strip-ansi/package.json +57 -0
- package/dist/blessed-contrib/node_modules/strip-ansi/readme.md +33 -0
- package/dist/blessed-contrib/node_modules/supports-color/index.js +52 -0
- package/dist/blessed-contrib/node_modules/supports-color/license +21 -0
- package/dist/blessed-contrib/node_modules/supports-color/package.json +49 -0
- package/dist/blessed-contrib/node_modules/supports-color/readme.md +36 -0
- package/dist/cli.js +9 -8
- package/dist/cli.js.map +1 -1
- package/dist/instrument-with-sentry.js +2 -2
- package/dist/instrument-with-sentry.js.map +1 -1
- package/dist/shadow-npm-inject.js +2 -2
- package/dist/shadow-npm-inject.js.map +1 -1
- package/package.json +4 -4
|
@@ -0,0 +1,57 @@
|
|
|
1
|
+
{
|
|
2
|
+
"name": "strip-ansi",
|
|
3
|
+
"version": "3.0.1",
|
|
4
|
+
"description": "Strip ANSI escape codes",
|
|
5
|
+
"license": "MIT",
|
|
6
|
+
"repository": "chalk/strip-ansi",
|
|
7
|
+
"author": {
|
|
8
|
+
"name": "Sindre Sorhus",
|
|
9
|
+
"email": "sindresorhus@gmail.com",
|
|
10
|
+
"url": "sindresorhus.com"
|
|
11
|
+
},
|
|
12
|
+
"maintainers": [
|
|
13
|
+
"Sindre Sorhus <sindresorhus@gmail.com> (sindresorhus.com)",
|
|
14
|
+
"Joshua Boy Nicolai Appelman <joshua@jbna.nl> (jbna.nl)",
|
|
15
|
+
"JD Ballard <i.am.qix@gmail.com> (github.com/qix-)"
|
|
16
|
+
],
|
|
17
|
+
"engines": {
|
|
18
|
+
"node": ">=0.10.0"
|
|
19
|
+
},
|
|
20
|
+
"scripts": {
|
|
21
|
+
"test": "xo && ava"
|
|
22
|
+
},
|
|
23
|
+
"files": [
|
|
24
|
+
"index.js"
|
|
25
|
+
],
|
|
26
|
+
"keywords": [
|
|
27
|
+
"strip",
|
|
28
|
+
"trim",
|
|
29
|
+
"remove",
|
|
30
|
+
"ansi",
|
|
31
|
+
"styles",
|
|
32
|
+
"color",
|
|
33
|
+
"colour",
|
|
34
|
+
"colors",
|
|
35
|
+
"terminal",
|
|
36
|
+
"console",
|
|
37
|
+
"string",
|
|
38
|
+
"tty",
|
|
39
|
+
"escape",
|
|
40
|
+
"formatting",
|
|
41
|
+
"rgb",
|
|
42
|
+
"256",
|
|
43
|
+
"shell",
|
|
44
|
+
"xterm",
|
|
45
|
+
"log",
|
|
46
|
+
"logging",
|
|
47
|
+
"command-line",
|
|
48
|
+
"text"
|
|
49
|
+
],
|
|
50
|
+
"dependencies": {
|
|
51
|
+
"ansi-regex": "^2.0.0"
|
|
52
|
+
},
|
|
53
|
+
"devDependencies": {
|
|
54
|
+
"ava": "*",
|
|
55
|
+
"xo": "*"
|
|
56
|
+
}
|
|
57
|
+
}
|
|
@@ -0,0 +1,33 @@
|
|
|
1
|
+
# strip-ansi [](https://travis-ci.org/chalk/strip-ansi)
|
|
2
|
+
|
|
3
|
+
> Strip [ANSI escape codes](http://en.wikipedia.org/wiki/ANSI_escape_code)
|
|
4
|
+
|
|
5
|
+
|
|
6
|
+
## Install
|
|
7
|
+
|
|
8
|
+
```
|
|
9
|
+
$ npm install --save strip-ansi
|
|
10
|
+
```
|
|
11
|
+
|
|
12
|
+
|
|
13
|
+
## Usage
|
|
14
|
+
|
|
15
|
+
```js
|
|
16
|
+
var stripAnsi = require('strip-ansi');
|
|
17
|
+
|
|
18
|
+
stripAnsi('\u001b[4mcake\u001b[0m');
|
|
19
|
+
//=> 'cake'
|
|
20
|
+
```
|
|
21
|
+
|
|
22
|
+
|
|
23
|
+
## Related
|
|
24
|
+
|
|
25
|
+
- [strip-ansi-cli](https://github.com/chalk/strip-ansi-cli) - CLI for this module
|
|
26
|
+
- [has-ansi](https://github.com/chalk/has-ansi) - Check if a string has ANSI escape codes
|
|
27
|
+
- [ansi-regex](https://github.com/chalk/ansi-regex) - Regular expression for matching ANSI escape codes
|
|
28
|
+
- [chalk](https://github.com/chalk/chalk) - Terminal string styling done right
|
|
29
|
+
|
|
30
|
+
|
|
31
|
+
## License
|
|
32
|
+
|
|
33
|
+
MIT © [Sindre Sorhus](http://sindresorhus.com)
|
|
@@ -0,0 +1,52 @@
|
|
|
1
|
+
|
|
2
|
+
'use strict'
|
|
3
|
+
;
|
|
4
|
+
var argv = process.argv;
|
|
5
|
+
|
|
6
|
+
var terminator = argv.indexOf('--');
|
|
7
|
+
var hasFlag = function (flag) {
|
|
8
|
+
flag = '--' + flag;
|
|
9
|
+
var pos = argv.indexOf(flag);
|
|
10
|
+
return pos !== -1 && (terminator !== -1 ? pos < terminator : true);
|
|
11
|
+
};
|
|
12
|
+
|
|
13
|
+
module.exports = (function () {
|
|
14
|
+
if ('FORCE_COLOR' in process.env) {
|
|
15
|
+
return true;
|
|
16
|
+
}
|
|
17
|
+
|
|
18
|
+
if (hasFlag('no-color') ||
|
|
19
|
+
hasFlag('no-colors') ||
|
|
20
|
+
hasFlag('color=false')) {
|
|
21
|
+
return false;
|
|
22
|
+
}
|
|
23
|
+
|
|
24
|
+
if (hasFlag('color') ||
|
|
25
|
+
hasFlag('colors') ||
|
|
26
|
+
hasFlag('color=true') ||
|
|
27
|
+
hasFlag('color=always')) {
|
|
28
|
+
return true;
|
|
29
|
+
}
|
|
30
|
+
|
|
31
|
+
if (process.stdout && !process.stdout.isTTY) {
|
|
32
|
+
return false;
|
|
33
|
+
}
|
|
34
|
+
|
|
35
|
+
if (process.platform === 'win32') {
|
|
36
|
+
return true;
|
|
37
|
+
}
|
|
38
|
+
|
|
39
|
+
if ('COLORTERM' in process.env) {
|
|
40
|
+
return true;
|
|
41
|
+
}
|
|
42
|
+
|
|
43
|
+
if (process.env.TERM === 'dumb') {
|
|
44
|
+
return false;
|
|
45
|
+
}
|
|
46
|
+
|
|
47
|
+
if (/^screen|^xterm|^vt100|color|ansi|cygwin|linux/i.test(process.env.TERM)) {
|
|
48
|
+
return true;
|
|
49
|
+
}
|
|
50
|
+
|
|
51
|
+
return false;
|
|
52
|
+
})();
|
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
The MIT License (MIT)
|
|
2
|
+
|
|
3
|
+
Copyright (c) Sindre Sorhus <sindresorhus@gmail.com> (sindresorhus.com)
|
|
4
|
+
|
|
5
|
+
Permission is hereby granted, free of charge, to any person obtaining a copy
|
|
6
|
+
of this software and associated documentation files (the "Software"), to deal
|
|
7
|
+
in the Software without restriction, including without limitation the rights
|
|
8
|
+
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
|
|
9
|
+
copies of the Software, and to permit persons to whom the Software is
|
|
10
|
+
furnished to do so, subject to the following conditions:
|
|
11
|
+
|
|
12
|
+
The above copyright notice and this permission notice shall be included in
|
|
13
|
+
all copies or substantial portions of the Software.
|
|
14
|
+
|
|
15
|
+
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
|
|
16
|
+
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
|
|
17
|
+
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
|
|
18
|
+
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
|
|
19
|
+
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
|
|
20
|
+
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
|
|
21
|
+
THE SOFTWARE.
|
|
@@ -0,0 +1,49 @@
|
|
|
1
|
+
{
|
|
2
|
+
"name": "supports-color",
|
|
3
|
+
"version": "2.0.0",
|
|
4
|
+
"description": "Detect whether a terminal supports color",
|
|
5
|
+
"license": "MIT",
|
|
6
|
+
"repository": "chalk/supports-color",
|
|
7
|
+
"author": {
|
|
8
|
+
"name": "Sindre Sorhus",
|
|
9
|
+
"email": "sindresorhus@gmail.com",
|
|
10
|
+
"url": "sindresorhus.com"
|
|
11
|
+
},
|
|
12
|
+
"maintainers": [
|
|
13
|
+
"Sindre Sorhus <sindresorhus@gmail.com> (sindresorhus.com)",
|
|
14
|
+
"Joshua Appelman <jappelman@xebia.com> (jbnicolai.com)"
|
|
15
|
+
],
|
|
16
|
+
"engines": {
|
|
17
|
+
"node": ">=0.8.0"
|
|
18
|
+
},
|
|
19
|
+
"scripts": {
|
|
20
|
+
"test": "mocha"
|
|
21
|
+
},
|
|
22
|
+
"files": [
|
|
23
|
+
"index.js"
|
|
24
|
+
],
|
|
25
|
+
"keywords": [
|
|
26
|
+
"color",
|
|
27
|
+
"colour",
|
|
28
|
+
"colors",
|
|
29
|
+
"terminal",
|
|
30
|
+
"console",
|
|
31
|
+
"cli",
|
|
32
|
+
"ansi",
|
|
33
|
+
"styles",
|
|
34
|
+
"tty",
|
|
35
|
+
"rgb",
|
|
36
|
+
"256",
|
|
37
|
+
"shell",
|
|
38
|
+
"xterm",
|
|
39
|
+
"command-line",
|
|
40
|
+
"support",
|
|
41
|
+
"supports",
|
|
42
|
+
"capability",
|
|
43
|
+
"detect"
|
|
44
|
+
],
|
|
45
|
+
"devDependencies": {
|
|
46
|
+
"mocha": "*",
|
|
47
|
+
"require-uncached": "^1.0.2"
|
|
48
|
+
}
|
|
49
|
+
}
|
|
@@ -0,0 +1,36 @@
|
|
|
1
|
+
# supports-color [](https://travis-ci.org/chalk/supports-color)
|
|
2
|
+
|
|
3
|
+
> Detect whether a terminal supports color
|
|
4
|
+
|
|
5
|
+
|
|
6
|
+
## Install
|
|
7
|
+
|
|
8
|
+
```
|
|
9
|
+
$ npm install --save supports-color
|
|
10
|
+
```
|
|
11
|
+
|
|
12
|
+
|
|
13
|
+
## Usage
|
|
14
|
+
|
|
15
|
+
```js
|
|
16
|
+
var supportsColor = require('supports-color');
|
|
17
|
+
|
|
18
|
+
if (supportsColor) {
|
|
19
|
+
console.log('Terminal supports color');
|
|
20
|
+
}
|
|
21
|
+
```
|
|
22
|
+
|
|
23
|
+
It obeys the `--color` and `--no-color` CLI flags.
|
|
24
|
+
|
|
25
|
+
For situations where using `--color` is not possible, add an environment variable `FORCE_COLOR` with any value to force color. Trumps `--no-color`.
|
|
26
|
+
|
|
27
|
+
|
|
28
|
+
## Related
|
|
29
|
+
|
|
30
|
+
- [supports-color-cli](https://github.com/chalk/supports-color-cli) - CLI for this module
|
|
31
|
+
- [chalk](https://github.com/chalk/chalk) - Terminal string styling done right
|
|
32
|
+
|
|
33
|
+
|
|
34
|
+
## License
|
|
35
|
+
|
|
36
|
+
MIT © [Sindre Sorhus](http://sindresorhus.com)
|
package/dist/cli.js
CHANGED
|
@@ -392,8 +392,8 @@ function displayAnalyticsScreen(data) {
|
|
|
392
392
|
const screen = new ScreenWidget({
|
|
393
393
|
...constants.blessedOptions
|
|
394
394
|
})
|
|
395
|
-
const
|
|
396
|
-
const grid = new
|
|
395
|
+
const GridLayout = require('blessed-contrib/lib/layout/grid')
|
|
396
|
+
const grid = new GridLayout({
|
|
397
397
|
rows: 5,
|
|
398
398
|
cols: 4,
|
|
399
399
|
screen
|
|
@@ -454,7 +454,8 @@ function displayAnalyticsScreen(data) {
|
|
|
454
454
|
[3, 2, 1, 2],
|
|
455
455
|
data['total_low_prevented']
|
|
456
456
|
)
|
|
457
|
-
const
|
|
457
|
+
const BarChart = require('blessed-contrib/lib/widget/charts/bar')
|
|
458
|
+
const bar = grid.set(4, 0, 1, 2, BarChart, {
|
|
458
459
|
label: 'Top 5 alert types',
|
|
459
460
|
barWidth: 10,
|
|
460
461
|
barSpacing: 17,
|
|
@@ -550,8 +551,8 @@ function formatDate(date) {
|
|
|
550
551
|
return `${Months[new Date(date).getMonth()]} ${new Date(date).getDate()}`
|
|
551
552
|
}
|
|
552
553
|
function renderLineCharts(grid, screen, title, coords, data) {
|
|
553
|
-
const
|
|
554
|
-
const line = grid.set(...coords,
|
|
554
|
+
const LineChart = require('blessed-contrib/lib/widget/charts/line')
|
|
555
|
+
const line = grid.set(...coords, LineChart, {
|
|
555
556
|
style: {
|
|
556
557
|
line: 'cyan',
|
|
557
558
|
text: 'cyan',
|
|
@@ -903,7 +904,7 @@ function emitBanner(name) {
|
|
|
903
904
|
logger.logger.error(getAsciiHeader(name))
|
|
904
905
|
}
|
|
905
906
|
function getAsciiHeader(command) {
|
|
906
|
-
const cliVersion = '0.14.
|
|
907
|
+
const cliVersion = '0.14.138:e895234:e2db0f82:pub' // The '@rollup/plugin-replace' will replace "process.env['INLINED_SOCKET_CLI_VERSION_HASH']".
|
|
907
908
|
const nodeVersion = process$1.version
|
|
908
909
|
const apiToken = shadowNpmInject.getDefaultToken()
|
|
909
910
|
const defaultOrg = shadowNpmInject.getConfigValue('defaultOrg')
|
|
@@ -12256,7 +12257,7 @@ void (async () => {
|
|
|
12256
12257
|
await vendor.updater({
|
|
12257
12258
|
name: SOCKET_CLI_BIN_NAME,
|
|
12258
12259
|
// The '@rollup/plugin-replace' will replace "process.env['INLINED_SOCKET_CLI_VERSION']".
|
|
12259
|
-
version: '0.14.
|
|
12260
|
+
version: '0.14.138',
|
|
12260
12261
|
ttl: 86_400_000 /* 24 hours in milliseconds */
|
|
12261
12262
|
})
|
|
12262
12263
|
try {
|
|
@@ -12324,5 +12325,5 @@ void (async () => {
|
|
|
12324
12325
|
await shadowNpmInject.captureException(e)
|
|
12325
12326
|
}
|
|
12326
12327
|
})()
|
|
12327
|
-
//# debugId=
|
|
12328
|
+
//# debugId=b1525ad8-f0a2-45bb-b4b1-f7356b730716
|
|
12328
12329
|
//# sourceMappingURL=cli.js.map
|