@socketsecurity/cli-with-sentry 0.14.93 → 0.14.95

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 +177 -157
  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 +159 -138
  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,251 +0,0 @@
1
- 'use strict'
2
-
3
- /**
4
- * layout.js - layout 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 Element = require('./element')
15
-
16
- /**
17
- * Layout
18
- */
19
-
20
- function Layout(options) {
21
- if (!(this instanceof Node)) {
22
- return new Layout(options)
23
- }
24
-
25
- options = options || {}
26
-
27
- if (
28
- (options.width == null && options.left == null && options.right == null) ||
29
- (options.height == null && options.top == null && options.bottom == null)
30
- ) {
31
- throw new Error('`Layout` must have a width and height!')
32
- }
33
-
34
- options.layout = options.layout || 'inline'
35
-
36
- Element.call(this, options)
37
-
38
- if (options.renderer) {
39
- this.renderer = options.renderer
40
- }
41
- }
42
-
43
- Object.setPrototypeOf(Layout.prototype, Element.prototype)
44
-
45
- Layout.prototype.type = 'layout'
46
-
47
- Layout.prototype.isRendered = function (el) {
48
- if (!el.lpos) {
49
- return false
50
- }
51
- return el.lpos.xl - el.lpos.xi > 0 && el.lpos.yl - el.lpos.yi > 0
52
- }
53
-
54
- Layout.prototype.getLast = function (i) {
55
- while (this.children[--i]) {
56
- const el = this.children[i]
57
- if (this.isRendered(el)) {
58
- return el
59
- }
60
- }
61
- }
62
-
63
- Layout.prototype.getLastCoords = function (i) {
64
- const last = this.getLast(i)
65
- if (last) {
66
- return last.lpos
67
- }
68
- }
69
-
70
- Layout.prototype._renderCoords = function () {
71
- const coords = this._getCoords(true)
72
- const children = this.children
73
- this.children = []
74
- this._render()
75
- this.children = children
76
- return coords
77
- }
78
-
79
- Layout.prototype.renderer = function (coords) {
80
- const self = this
81
-
82
- // The coordinates of the layout element
83
- const width = coords.xl - coords.xi,
84
- height = coords.yl - coords.yi,
85
- xi = coords.xi,
86
- yi = coords.yi
87
-
88
- // The current row offset in cells (which row are we on?)
89
- let rowOffset = 0
90
-
91
- // The index of the first child in the row
92
- let rowIndex = 0
93
- let lastRowIndex = 0
94
-
95
- // Figure out the highest width child
96
- if (this.options.layout === 'grid') {
97
- const highWidth = this.children.reduce(function (out, el) {
98
- out = Math.max(out, el.width)
99
- return out
100
- }, 0)
101
- }
102
-
103
- return function iterator(el, i) {
104
- // Make our children shrinkable. If they don't have a height, for
105
- // example, calculate it for them.
106
- el.shrink = true
107
-
108
- // Find the previous rendered child's coordinates
109
- const last = self.getLast(i)
110
-
111
- // If there is no previously rendered element, we are on the first child.
112
- if (!last) {
113
- el.position.left = 0
114
- el.position.top = 0
115
- } else {
116
- // Otherwise, figure out where to place this child. We'll start by
117
- // setting it's `left`/`x` coordinate to right after the previous
118
- // rendered element. This child will end up directly to the right of it.
119
- el.position.left = last.lpos.xl - xi
120
-
121
- // Make sure the position matches the highest width element
122
- if (self.options.layout === 'grid') {
123
- // Compensate with width:
124
- // el.position.width = el.width + (highWidth - el.width);
125
- // Compensate with position:
126
- el.position.left += highWidth - (last.lpos.xl - last.lpos.xi)
127
- }
128
-
129
- // If our child does not overlap the right side of the Layout, set it's
130
- // `top`/`y` to the current `rowOffset` (the coordinate for the current
131
- // row).
132
- if (el.position.left + el.width <= width) {
133
- el.position.top = rowOffset
134
- } else {
135
- // Otherwise we need to start a new row and calculate a new
136
- // `rowOffset` and `rowIndex` (the index of the child on the current
137
- // row).
138
- rowOffset += self.children.slice(rowIndex, i).reduce(function (
139
- out,
140
- el
141
- ) {
142
- if (!self.isRendered(el)) {
143
- return out
144
- }
145
- out = Math.max(out, el.lpos.yl - el.lpos.yi)
146
- return out
147
- }, 0)
148
- lastRowIndex = rowIndex
149
- rowIndex = i
150
- el.position.left = 0
151
- el.position.top = rowOffset
152
- }
153
- }
154
-
155
- // Make sure the elements on lower rows graviatate up as much as possible
156
- if (self.options.layout === 'inline') {
157
- let above = null
158
- let abovea = Infinity
159
- for (let j = lastRowIndex; j < rowIndex; j++) {
160
- const l = self.children[j]
161
- if (!self.isRendered(l)) {
162
- continue
163
- }
164
- const abs = Math.abs(el.position.left - (l.lpos.xi - xi))
165
- // if (abs < abovea && (l.lpos.xl - l.lpos.xi) <= el.width) {
166
- if (abs < abovea) {
167
- above = l
168
- abovea = abs
169
- }
170
- }
171
- if (above) {
172
- el.position.top = above.lpos.yl - yi
173
- }
174
- }
175
-
176
- // If our child overflows the Layout, do not render it!
177
- // Disable this feature for now.
178
- if (el.position.top + el.height > height) {
179
- // Returning false tells blessed to ignore this child.
180
- // return false;
181
- }
182
- }
183
- }
184
-
185
- Layout.prototype.render = function () {
186
- this._emit('prerender')
187
-
188
- const coords = this._renderCoords()
189
- if (!coords) {
190
- delete this.lpos
191
- return
192
- }
193
-
194
- if (coords.xl - coords.xi <= 0) {
195
- coords.xl = Math.max(coords.xl, coords.xi)
196
- return
197
- }
198
-
199
- if (coords.yl - coords.yi <= 0) {
200
- coords.yl = Math.max(coords.yl, coords.yi)
201
- return
202
- }
203
-
204
- this.lpos = coords
205
-
206
- if (this.border) {
207
- coords.xi++, coords.xl--, coords.yi++, coords.yl--
208
- }
209
- if (this.tpadding) {
210
- ;(coords.xi += this.padding.left), (coords.xl -= this.padding.right)
211
- ;(coords.yi += this.padding.top), (coords.yl -= this.padding.bottom)
212
- }
213
-
214
- const iterator = this.renderer(coords)
215
-
216
- if (this.border) {
217
- coords.xi--, coords.xl++, coords.yi--, coords.yl++
218
- }
219
- if (this.tpadding) {
220
- ;(coords.xi -= this.padding.left), (coords.xl += this.padding.right)
221
- ;(coords.yi -= this.padding.top), (coords.yl += this.padding.bottom)
222
- }
223
-
224
- this.children.forEach(function (el, i) {
225
- if (el.screen._ci !== -1) {
226
- el.index = el.screen._ci++
227
- }
228
- const rendered = iterator(el, i)
229
- if (rendered === false) {
230
- delete el.lpos
231
- return
232
- }
233
- // if (el.screen._rendering) {
234
- // el._rendering = true;
235
- // }
236
- el.render()
237
- // if (el.screen._rendering) {
238
- // el._rendering = false;
239
- // }
240
- })
241
-
242
- this._emit('render', [coords])
243
-
244
- return coords
245
- }
246
-
247
- /**
248
- * Expose
249
- */
250
-
251
- module.exports = Layout
@@ -1,61 +0,0 @@
1
- 'use strict'
2
-
3
- /**
4
- * line.js - line 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
- * Line
18
- */
19
-
20
- function Line(options) {
21
- if (!(this instanceof Node)) {
22
- return new Line(options)
23
- }
24
-
25
- options = options || {}
26
-
27
- const orientation = options.orientation || 'vertical'
28
- delete options.orientation
29
-
30
- if (orientation === 'vertical') {
31
- options.width = 1
32
- } else {
33
- options.height = 1
34
- }
35
-
36
- Box.call(this, options)
37
-
38
- this.ch =
39
- !options.type || options.type === 'line'
40
- ? orientation === 'horizontal'
41
- ? '─'
42
- : '│'
43
- : options.ch || ' '
44
-
45
- this.border = {
46
- type: 'bg',
47
- __proto__: this
48
- }
49
-
50
- this.style.border = this.style
51
- }
52
-
53
- Object.setPrototypeOf(Line.prototype, Box.prototype)
54
-
55
- Line.prototype.type = 'line'
56
-
57
- /**
58
- * Expose
59
- */
60
-
61
- module.exports = Line