@socketsecurity/cli-with-sentry 0.14.94 → 0.14.96

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.
Files changed (84) hide show
  1. package/dist/constants.js +3 -3
  2. package/dist/constants.js.map +1 -1
  3. package/dist/instrument-with-sentry.js +2 -2
  4. package/dist/instrument-with-sentry.js.map +1 -1
  5. package/dist/module-sync/cli.js +178 -159
  6. package/dist/module-sync/cli.js.map +1 -1
  7. package/dist/module-sync/shadow-bin.js +3 -14
  8. package/dist/module-sync/shadow-bin.js.map +1 -1
  9. package/dist/module-sync/shadow-npm-inject.js +68 -59
  10. package/dist/module-sync/shadow-npm-inject.js.map +1 -1
  11. package/dist/module-sync/shadow-npm-paths.js +16 -29
  12. package/dist/module-sync/shadow-npm-paths.js.map +1 -1
  13. package/dist/module-sync/vendor.d.ts +0 -0
  14. package/dist/module-sync/vendor.js +85829 -12598
  15. package/dist/module-sync/vendor.js.map +1 -1
  16. package/dist/require/cli.js +160 -140
  17. package/dist/require/cli.js.map +1 -1
  18. package/dist/require/shadow-bin.d.ts +5 -0
  19. package/dist/require/shadow-bin.js +108 -1
  20. package/dist/require/shadow-bin.js.map +1 -0
  21. package/dist/require/shadow-npm-inject.d.ts +1 -0
  22. package/dist/require/shadow-npm-inject.js +2335 -1
  23. package/dist/require/shadow-npm-inject.js.map +1 -0
  24. package/dist/require/shadow-npm-paths.d.ts +29 -0
  25. package/dist/require/shadow-npm-paths.js +454 -1
  26. package/dist/require/shadow-npm-paths.js.map +1 -0
  27. package/package.json +29 -29
  28. package/dist/blessed/lib/alias.js +0 -521
  29. package/dist/blessed/lib/blessed.js +0 -34
  30. package/dist/blessed/lib/colors.js +0 -492
  31. package/dist/blessed/lib/events.js +0 -197
  32. package/dist/blessed/lib/gpmclient.js +0 -247
  33. package/dist/blessed/lib/helpers.js +0 -172
  34. package/dist/blessed/lib/keys.js +0 -514
  35. package/dist/blessed/lib/program.js +0 -4532
  36. package/dist/blessed/lib/tput.js +0 -3113
  37. package/dist/blessed/lib/unicode.js +0 -914
  38. package/dist/blessed/lib/widget.js +0 -62
  39. package/dist/blessed/lib/widgets/ansiimage.js +0 -175
  40. package/dist/blessed/lib/widgets/bigtext.js +0 -172
  41. package/dist/blessed/lib/widgets/box.js +0 -36
  42. package/dist/blessed/lib/widgets/button.js +0 -64
  43. package/dist/blessed/lib/widgets/checkbox.js +0 -97
  44. package/dist/blessed/lib/widgets/element.js +0 -2873
  45. package/dist/blessed/lib/widgets/filemanager.js +0 -225
  46. package/dist/blessed/lib/widgets/form.js +0 -303
  47. package/dist/blessed/lib/widgets/image.js +0 -73
  48. package/dist/blessed/lib/widgets/input.js +0 -36
  49. package/dist/blessed/lib/widgets/layout.js +0 -251
  50. package/dist/blessed/lib/widgets/line.js +0 -61
  51. package/dist/blessed/lib/widgets/list.js +0 -654
  52. package/dist/blessed/lib/widgets/listbar.js +0 -454
  53. package/dist/blessed/lib/widgets/listtable.js +0 -267
  54. package/dist/blessed/lib/widgets/loading.js +0 -90
  55. package/dist/blessed/lib/widgets/log.js +0 -84
  56. package/dist/blessed/lib/widgets/message.js +0 -147
  57. package/dist/blessed/lib/widgets/node.js +0 -315
  58. package/dist/blessed/lib/widgets/overlayimage.js +0 -796
  59. package/dist/blessed/lib/widgets/progressbar.js +0 -168
  60. package/dist/blessed/lib/widgets/prompt.js +0 -129
  61. package/dist/blessed/lib/widgets/question.js +0 -131
  62. package/dist/blessed/lib/widgets/radiobutton.js +0 -64
  63. package/dist/blessed/lib/widgets/radioset.js +0 -38
  64. package/dist/blessed/lib/widgets/screen.js +0 -2487
  65. package/dist/blessed/lib/widgets/scrollablebox.js +0 -417
  66. package/dist/blessed/lib/widgets/scrollabletext.js +0 -37
  67. package/dist/blessed/lib/widgets/table.js +0 -385
  68. package/dist/blessed/lib/widgets/terminal.js +0 -454
  69. package/dist/blessed/lib/widgets/text.js +0 -37
  70. package/dist/blessed/lib/widgets/textarea.js +0 -378
  71. package/dist/blessed/lib/widgets/textbox.js +0 -81
  72. package/dist/blessed/lib/widgets/video.js +0 -132
  73. package/dist/blessed/usr/fonts/AUTHORS +0 -1
  74. package/dist/blessed/usr/fonts/LICENSE +0 -94
  75. package/dist/blessed/usr/fonts/README +0 -340
  76. package/dist/blessed/usr/fonts/ter-u14b.json +0 -17826
  77. package/dist/blessed/usr/fonts/ter-u14n.json +0 -17826
  78. package/dist/blessed/usr/linux +0 -0
  79. package/dist/blessed/usr/windows-ansi +0 -0
  80. package/dist/blessed/usr/xterm +0 -0
  81. package/dist/blessed/usr/xterm-256color +0 -0
  82. package/dist/blessed/usr/xterm.termcap +0 -243
  83. package/dist/blessed/usr/xterm.terminfo +0 -1977
  84. package/dist/blessed/vendor/tng.js +0 -1878
@@ -1,168 +0,0 @@
1
- 'use strict'
2
-
3
- /**
4
- * progressbar.js - progress bar element for blessed
5
- * Copyright (c) 2013-2015, Christopher Jeffrey and contributors (MIT License).
6
- * https://github.com/chjj/blessed
7
- */
8
-
9
- /**
10
- * Modules
11
- */
12
-
13
- const Node = require('./node')
14
- const Input = require('./input')
15
-
16
- /**
17
- * ProgressBar
18
- */
19
-
20
- function ProgressBar(options) {
21
- const self = this
22
-
23
- if (!(this instanceof Node)) {
24
- return new ProgressBar(options)
25
- }
26
-
27
- options = options || {}
28
-
29
- Input.call(this, options)
30
-
31
- this.filled = options.filled || 0
32
- if (typeof this.filled === 'string') {
33
- this.filled = +this.filled.slice(0, -1)
34
- }
35
- this.value = this.filled
36
-
37
- this.pch = options.pch || ' '
38
-
39
- // XXX Workaround that predates the usage of `el.ch`.
40
- if (options.ch) {
41
- this.pch = options.ch
42
- this.ch = ' '
43
- }
44
- if (options.bch) {
45
- this.ch = options.bch
46
- }
47
-
48
- if (!this.style.bar) {
49
- this.style.bar = {}
50
- this.style.bar.fg = options.barFg
51
- this.style.bar.bg = options.barBg
52
- }
53
-
54
- this.orientation = options.orientation || 'horizontal'
55
-
56
- if (options.keys) {
57
- this.on('keypress', function (ch, key) {
58
- let back, forward
59
- if (self.orientation === 'horizontal') {
60
- back = ['left', 'h']
61
- forward = ['right', 'l']
62
- } else if (self.orientation === 'vertical') {
63
- back = ['down', 'j']
64
- forward = ['up', 'k']
65
- }
66
- if (key.name === back[0] || (options.vi && key.name === back[1])) {
67
- self.progress(-5)
68
- self.screen.render()
69
- return
70
- }
71
- if (key.name === forward[0] || (options.vi && key.name === forward[1])) {
72
- self.progress(5)
73
- self.screen.render()
74
- return
75
- }
76
- })
77
- }
78
-
79
- if (options.mouse) {
80
- this.on('click', function (data) {
81
- let x, y, m, p
82
- if (!self.lpos) {
83
- return
84
- }
85
- if (self.orientation === 'horizontal') {
86
- x = data.x - self.lpos.xi
87
- m = self.lpos.xl - self.lpos.xi - self.iwidth
88
- p = ((x / m) * 100) | 0
89
- } else if (self.orientation === 'vertical') {
90
- y = data.y - self.lpos.yi
91
- m = self.lpos.yl - self.lpos.yi - self.iheight
92
- p = ((y / m) * 100) | 0
93
- }
94
- self.setProgress(p)
95
- })
96
- }
97
- }
98
-
99
- Object.setPrototypeOf(ProgressBar.prototype, Input.prototype)
100
-
101
- ProgressBar.prototype.type = 'progress-bar'
102
-
103
- ProgressBar.prototype.render = function () {
104
- const ret = this._render()
105
- if (!ret) {
106
- return
107
- }
108
-
109
- let xi = ret.xi,
110
- xl = ret.xl,
111
- yi = ret.yi,
112
- yl = ret.yl,
113
- dattr
114
-
115
- if (this.border) {
116
- xi++, yi++, xl--, yl--
117
- }
118
-
119
- if (this.orientation === 'horizontal') {
120
- xl = (xi + (xl - xi) * (this.filled / 100)) | 0
121
- } else if (this.orientation === 'vertical') {
122
- yi = yi + (yl - yi - (((yl - yi) * (this.filled / 100)) | 0))
123
- }
124
-
125
- dattr = this.sattr(this.style.bar)
126
-
127
- this.screen.fillRegion(dattr, this.pch, xi, xl, yi, yl)
128
-
129
- if (this.content) {
130
- const line = this.screen.lines[yi]
131
- for (let i = 0; i < this.content.length; i++) {
132
- line[xi + i][1] = this.content[i]
133
- }
134
- line.dirty = true
135
- }
136
-
137
- return ret
138
- }
139
-
140
- ProgressBar.prototype.progress = function (filled) {
141
- this.filled += filled
142
- if (this.filled < 0) {
143
- this.filled = 0
144
- } else if (this.filled > 100) {
145
- this.filled = 100
146
- }
147
- if (this.filled === 100) {
148
- this.emit('complete')
149
- }
150
- this.value = this.filled
151
- }
152
-
153
- ProgressBar.prototype.setProgress = function (filled) {
154
- this.filled = 0
155
- this.progress(filled)
156
- }
157
-
158
- ProgressBar.prototype.reset = function () {
159
- this.emit('reset')
160
- this.filled = 0
161
- this.value = this.filled
162
- }
163
-
164
- /**
165
- * Expose
166
- */
167
-
168
- module.exports = ProgressBar
@@ -1,129 +0,0 @@
1
- 'use strict'
2
-
3
- /**
4
- * prompt.js - prompt element for blessed
5
- * Copyright (c) 2013-2015, Christopher Jeffrey and contributors (MIT License).
6
- * https://github.com/chjj/blessed
7
- */
8
-
9
- /**
10
- * Modules
11
- */
12
-
13
- const Node = require('./node')
14
- const Box = require('./box')
15
- const Button = require('./button')
16
- const Textbox = require('./textbox')
17
-
18
- /**
19
- * Prompt
20
- */
21
-
22
- function Prompt(options) {
23
- if (!(this instanceof Node)) {
24
- return new Prompt(options)
25
- }
26
-
27
- options = options || {}
28
-
29
- options.hidden = true
30
-
31
- Box.call(this, options)
32
-
33
- this._.input = new Textbox({
34
- parent: this,
35
- top: 3,
36
- height: 1,
37
- left: 2,
38
- right: 2,
39
- bg: 'black'
40
- })
41
-
42
- this._.okay = new Button({
43
- parent: this,
44
- top: 5,
45
- height: 1,
46
- left: 2,
47
- width: 6,
48
- content: 'Okay',
49
- align: 'center',
50
- bg: 'black',
51
- hoverBg: 'blue',
52
- autoFocus: false,
53
- mouse: true
54
- })
55
-
56
- this._.cancel = new Button({
57
- parent: this,
58
- top: 5,
59
- height: 1,
60
- shrink: true,
61
- left: 10,
62
- width: 8,
63
- content: 'Cancel',
64
- align: 'center',
65
- bg: 'black',
66
- hoverBg: 'blue',
67
- autoFocus: false,
68
- mouse: true
69
- })
70
- }
71
-
72
- Object.setPrototypeOf(Prompt.prototype, Box.prototype)
73
-
74
- Prompt.prototype.type = 'prompt'
75
-
76
- Prompt.prototype.input =
77
- Prompt.prototype.setInput =
78
- Prompt.prototype.readInput =
79
- function (text, value, callback) {
80
- const self = this
81
- let okay, cancel
82
-
83
- if (!callback) {
84
- callback = value
85
- value = ''
86
- }
87
-
88
- // Keep above:
89
- // var parent = this.parent;
90
- // this.detach();
91
- // parent.append(this);
92
-
93
- this.show()
94
- this.setContent(' ' + text)
95
-
96
- this._.input.value = value
97
-
98
- this.screen.saveFocus()
99
-
100
- this._.okay.on(
101
- 'press',
102
- (okay = function () {
103
- self._.input.submit()
104
- })
105
- )
106
-
107
- this._.cancel.on(
108
- 'press',
109
- (cancel = function () {
110
- self._.input.cancel()
111
- })
112
- )
113
-
114
- this._.input.readInput(function (err, data) {
115
- self.hide()
116
- self.screen.restoreFocus()
117
- self._.okay.removeListener('press', okay)
118
- self._.cancel.removeListener('press', cancel)
119
- return callback(err, data)
120
- })
121
-
122
- this.screen.render()
123
- }
124
-
125
- /**
126
- * Expose
127
- */
128
-
129
- module.exports = Prompt
@@ -1,131 +0,0 @@
1
- 'use strict'
2
-
3
- /**
4
- * question.js - question element for blessed
5
- * Copyright (c) 2013-2015, Christopher Jeffrey and contributors (MIT License).
6
- * https://github.com/chjj/blessed
7
- */
8
-
9
- /**
10
- * Modules
11
- */
12
-
13
- const Node = require('./node')
14
- const Box = require('./box')
15
- const Button = require('./button')
16
-
17
- /**
18
- * Question
19
- */
20
-
21
- function Question(options) {
22
- if (!(this instanceof Node)) {
23
- return new Question(options)
24
- }
25
-
26
- options = options || {}
27
- options.hidden = true
28
-
29
- Box.call(this, options)
30
-
31
- this._.okay = new Button({
32
- screen: this.screen,
33
- parent: this,
34
- top: 2,
35
- height: 1,
36
- left: 2,
37
- width: 6,
38
- content: 'Okay',
39
- align: 'center',
40
- bg: 'black',
41
- hoverBg: 'blue',
42
- autoFocus: false,
43
- mouse: true
44
- })
45
-
46
- this._.cancel = new Button({
47
- screen: this.screen,
48
- parent: this,
49
- top: 2,
50
- height: 1,
51
- shrink: true,
52
- left: 10,
53
- width: 8,
54
- content: 'Cancel',
55
- align: 'center',
56
- bg: 'black',
57
- hoverBg: 'blue',
58
- autoFocus: false,
59
- mouse: true
60
- })
61
- }
62
-
63
- Object.setPrototypeOf(Question.prototype, Box.prototype)
64
-
65
- Question.prototype.type = 'question'
66
-
67
- Question.prototype.ask = function (text, callback) {
68
- const self = this
69
- let press, okay, cancel
70
-
71
- // Keep above:
72
- // var parent = this.parent;
73
- // this.detach();
74
- // parent.append(this);
75
-
76
- this.show()
77
- this.setContent(' ' + text)
78
-
79
- this.onScreenEvent(
80
- 'keypress',
81
- (press = function (ch, key) {
82
- if (key.name === 'mouse') {
83
- return
84
- }
85
- if (
86
- key.name !== 'enter' &&
87
- key.name !== 'escape' &&
88
- key.name !== 'q' &&
89
- key.name !== 'y' &&
90
- key.name !== 'n'
91
- ) {
92
- return
93
- }
94
- done(null, key.name === 'enter' || key.name === 'y')
95
- })
96
- )
97
-
98
- this._.okay.on(
99
- 'press',
100
- (okay = function () {
101
- done(null, true)
102
- })
103
- )
104
-
105
- this._.cancel.on(
106
- 'press',
107
- (cancel = function () {
108
- done(null, false)
109
- })
110
- )
111
-
112
- this.screen.saveFocus()
113
- this.focus()
114
-
115
- function done(err, data) {
116
- self.hide()
117
- self.screen.restoreFocus()
118
- self.removeScreenEvent('keypress', press)
119
- self._.okay.removeListener('press', okay)
120
- self._.cancel.removeListener('press', cancel)
121
- return callback(err, data)
122
- }
123
-
124
- this.screen.render()
125
- }
126
-
127
- /**
128
- * Expose
129
- */
130
-
131
- module.exports = Question
@@ -1,64 +0,0 @@
1
- 'use strict'
2
-
3
- /**
4
- * radiobutton.js - radio button element for blessed
5
- * Copyright (c) 2013-2015, Christopher Jeffrey and contributors (MIT License).
6
- * https://github.com/chjj/blessed
7
- */
8
-
9
- /**
10
- * Modules
11
- */
12
-
13
- const Node = require('./node')
14
- const Checkbox = require('./checkbox')
15
-
16
- /**
17
- * RadioButton
18
- */
19
-
20
- function RadioButton(options) {
21
- const self = this
22
-
23
- if (!(this instanceof Node)) {
24
- return new RadioButton(options)
25
- }
26
-
27
- options = options || {}
28
-
29
- Checkbox.call(this, options)
30
-
31
- this.on('check', function () {
32
- let el = self
33
- while ((el = el.parent)) {
34
- if (el.type === 'radio-set' || el.type === 'form') {
35
- break
36
- }
37
- }
38
- el = el || self.parent
39
- el.forDescendants(function (el) {
40
- if (el.type !== 'radio-button' || el === self) {
41
- return
42
- }
43
- el.uncheck()
44
- })
45
- })
46
- }
47
-
48
- Object.setPrototypeOf(RadioButton.prototype, Checkbox.prototype)
49
-
50
- RadioButton.prototype.type = 'radio-button'
51
-
52
- RadioButton.prototype.render = function () {
53
- this.clearPos(true)
54
- this.setContent('(' + (this.checked ? '*' : ' ') + ') ' + this.text, true)
55
- return this._render()
56
- }
57
-
58
- RadioButton.prototype.toggle = RadioButton.prototype.check
59
-
60
- /**
61
- * Expose
62
- */
63
-
64
- module.exports = RadioButton
@@ -1,38 +0,0 @@
1
- 'use strict'
2
-
3
- /**
4
- * radioset.js - radio set element for blessed
5
- * Copyright (c) 2013-2015, Christopher Jeffrey and contributors (MIT License).
6
- * https://github.com/chjj/blessed
7
- */
8
-
9
- /**
10
- * Modules
11
- */
12
-
13
- const Node = require('./node')
14
- const Box = require('./box')
15
-
16
- /**
17
- * RadioSet
18
- */
19
-
20
- function RadioSet(options) {
21
- if (!(this instanceof Node)) {
22
- return new RadioSet(options)
23
- }
24
- options = options || {}
25
- // Possibly inherit parent's style.
26
- // options.style = this.parent.style;
27
- Box.call(this, options)
28
- }
29
-
30
- Object.setPrototypeOf(RadioSet.prototype, Box.prototype)
31
-
32
- RadioSet.prototype.type = 'radio-set'
33
-
34
- /**
35
- * Expose
36
- */
37
-
38
- module.exports = RadioSet