@socketsecurity/cli-with-sentry 0.14.94 → 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 +176 -156
  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 +158 -137
  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,385 +0,0 @@
1
- 'use strict'
2
-
3
- /**
4
- * table.js - table 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
- * Table
18
- */
19
-
20
- function Table(options) {
21
- const self = this
22
-
23
- if (!(this instanceof Node)) {
24
- return new Table(options)
25
- }
26
-
27
- options = options || {}
28
- options.shrink = true
29
- options.style = options.style || {}
30
- options.style.border = options.style.border || {}
31
- options.style.header = options.style.header || {}
32
- options.style.cell = options.style.cell || {}
33
- options.align = options.align || 'center'
34
-
35
- // Regular tables do not get custom height (this would
36
- // require extra padding). Maybe add in the future.
37
- delete options.height
38
-
39
- Box.call(this, options)
40
-
41
- this.pad = options.pad != null ? options.pad : 2
42
-
43
- this.setData(options.rows || options.data)
44
-
45
- this.on('attach', function () {
46
- self.setContent('')
47
- self.setData(self.rows)
48
- })
49
-
50
- this.on('resize', function () {
51
- self.setContent('')
52
- self.setData(self.rows)
53
- self.screen.render()
54
- })
55
- }
56
-
57
- Object.setPrototypeOf(Table.prototype, Box.prototype)
58
-
59
- Table.prototype.type = 'table'
60
-
61
- Table.prototype._calculateMaxes = function () {
62
- const self = this
63
- let maxes = []
64
-
65
- if (this.detached) {
66
- return
67
- }
68
-
69
- this.rows = this.rows || []
70
-
71
- this.rows.forEach(function (row) {
72
- row.forEach(function (cell, i) {
73
- const clen = self.strWidth(cell)
74
- if (!maxes[i] || maxes[i] < clen) {
75
- maxes[i] = clen
76
- }
77
- })
78
- })
79
-
80
- let total = maxes.reduce(function (total, max) {
81
- return total + max
82
- }, 0)
83
- total += maxes.length + 1
84
-
85
- // XXX There might be an issue with resizing where on the first resize event
86
- // width appears to be less than total if it's a percentage or left/right
87
- // combination.
88
- if (this.width < total) {
89
- delete this.position.width
90
- }
91
-
92
- if (this.position.width != null) {
93
- const missing = this.width - total
94
- const w = (missing / maxes.length) | 0
95
- const wr = missing % maxes.length
96
- maxes = maxes.map(function (max, i) {
97
- if (i === maxes.length - 1) {
98
- return max + w + wr
99
- }
100
- return max + w
101
- })
102
- } else {
103
- maxes = maxes.map(function (max) {
104
- return max + self.pad
105
- })
106
- }
107
-
108
- return (this._maxes = maxes)
109
- }
110
-
111
- Table.prototype.setRows = Table.prototype.setData = function (rows) {
112
- let self = this,
113
- text = '',
114
- align = this.align
115
-
116
- this.rows = rows || []
117
-
118
- this._calculateMaxes()
119
-
120
- if (!this._maxes) {
121
- return
122
- }
123
-
124
- this.rows.forEach(function (row, i) {
125
- const isFooter = i === self.rows.length - 1
126
- row.forEach(function (cell, i) {
127
- const width = self._maxes[i]
128
- let clen = self.strWidth(cell)
129
-
130
- if (i !== 0) {
131
- text += ' '
132
- }
133
-
134
- while (clen < width) {
135
- if (align === 'center') {
136
- cell = ' ' + cell + ' '
137
- clen += 2
138
- } else if (align === 'left') {
139
- cell = cell + ' '
140
- clen += 1
141
- } else if (align === 'right') {
142
- cell = ' ' + cell
143
- clen += 1
144
- }
145
- }
146
-
147
- if (clen > width) {
148
- if (align === 'center') {
149
- cell = cell.substring(1)
150
- clen--
151
- } else if (align === 'left') {
152
- cell = cell.slice(0, -1)
153
- clen--
154
- } else if (align === 'right') {
155
- cell = cell.substring(1)
156
- clen--
157
- }
158
- }
159
-
160
- text += cell
161
- })
162
- if (!isFooter) {
163
- text += '\n\n'
164
- }
165
- })
166
-
167
- delete this.align
168
- this.setContent(text)
169
- this.align = align
170
- }
171
-
172
- Table.prototype.render = function () {
173
- const self = this
174
-
175
- const coords = this._render()
176
- if (!coords) {
177
- return
178
- }
179
-
180
- this._calculateMaxes()
181
-
182
- if (!this._maxes) {
183
- return coords
184
- }
185
-
186
- let lines = this.screen.lines,
187
- xi = coords.xi,
188
- yi = coords.yi,
189
- rx,
190
- ry,
191
- i
192
-
193
- const dattr = this.sattr(this.style),
194
- hattr = this.sattr(this.style.header),
195
- cattr = this.sattr(this.style.cell),
196
- battr = this.sattr(this.style.border)
197
-
198
- const width = coords.xl - coords.xi - this.iright,
199
- height = coords.yl - coords.yi - this.ibottom
200
-
201
- // Apply attributes to header cells and cells.
202
- for (let y = this.itop; y < height; y++) {
203
- if (!lines[yi + y]) {
204
- break
205
- }
206
- for (let x = this.ileft; x < width; x++) {
207
- if (!lines[yi + y][xi + x]) {
208
- break
209
- }
210
- // Check to see if it's not the default attr. Allows for tags:
211
- if (lines[yi + y][xi + x][0] !== dattr) {
212
- continue
213
- }
214
- if (y === this.itop) {
215
- lines[yi + y][xi + x][0] = hattr
216
- } else {
217
- lines[yi + y][xi + x][0] = cattr
218
- }
219
- lines[yi + y].dirty = true
220
- }
221
- }
222
-
223
- if (!this.border || this.options.noCellBorders) {
224
- return coords
225
- }
226
-
227
- // Draw border with correct angles.
228
- ry = 0
229
- for (i = 0; i < self.rows.length + 1; i++) {
230
- if (!lines[yi + ry]) {
231
- break
232
- }
233
- rx = 0
234
- self._maxes.forEach(function (max, i) {
235
- rx += max
236
- if (i === 0) {
237
- if (!lines[yi + ry][xi + 0]) {
238
- return
239
- }
240
- // left side
241
- if (ry === 0) {
242
- // top
243
- lines[yi + ry][xi + 0][0] = battr
244
- // lines[yi + ry][xi + 0][1] = '\u250c'; // '┌'
245
- } else if (ry / 2 === self.rows.length) {
246
- // bottom
247
- lines[yi + ry][xi + 0][0] = battr
248
- // lines[yi + ry][xi + 0][1] = '\u2514'; // '└'
249
- } else {
250
- // middle
251
- lines[yi + ry][xi + 0][0] = battr
252
- lines[yi + ry][xi + 0][1] = '\u251c' // '├'
253
- // XXX If we alter iwidth and ileft for no borders - nothing should be written here
254
- if (!self.border.left) {
255
- lines[yi + ry][xi + 0][1] = '\u2500' // '─'
256
- }
257
- }
258
- lines[yi + ry].dirty = true
259
- } else if (i === self._maxes.length - 1) {
260
- if (!lines[yi + ry][xi + rx + 1]) {
261
- return
262
- }
263
- // right side
264
- if (ry === 0) {
265
- // top
266
- rx++
267
- lines[yi + ry][xi + rx][0] = battr
268
- // lines[yi + ry][xi + rx][1] = '\u2510'; // '┐'
269
- } else if (ry / 2 === self.rows.length) {
270
- // bottom
271
- rx++
272
- lines[yi + ry][xi + rx][0] = battr
273
- // lines[yi + ry][xi + rx][1] = '\u2518'; // '┘'
274
- } else {
275
- // middle
276
- rx++
277
- lines[yi + ry][xi + rx][0] = battr
278
- lines[yi + ry][xi + rx][1] = '\u2524' // '┤'
279
- // XXX If we alter iwidth and iright for no borders - nothing should be written here
280
- if (!self.border.right) {
281
- lines[yi + ry][xi + rx][1] = '\u2500' // '─'
282
- }
283
- }
284
- lines[yi + ry].dirty = true
285
- return
286
- }
287
- if (!lines[yi + ry][xi + rx + 1]) {
288
- return
289
- }
290
- // center
291
- if (ry === 0) {
292
- // top
293
- rx++
294
- lines[yi + ry][xi + rx][0] = battr
295
- lines[yi + ry][xi + rx][1] = '\u252c' // '┬'
296
- // XXX If we alter iheight and itop for no borders - nothing should be written here
297
- if (!self.border.top) {
298
- lines[yi + ry][xi + rx][1] = '\u2502' // '│'
299
- }
300
- } else if (ry / 2 === self.rows.length) {
301
- // bottom
302
- rx++
303
- lines[yi + ry][xi + rx][0] = battr
304
- lines[yi + ry][xi + rx][1] = '\u2534' // '┴'
305
- // XXX If we alter iheight and ibottom for no borders - nothing should be written here
306
- if (!self.border.bottom) {
307
- lines[yi + ry][xi + rx][1] = '\u2502' // '│'
308
- }
309
- } else {
310
- // middle
311
- if (self.options.fillCellBorders) {
312
- const lbg = (ry <= 2 ? hattr : cattr) & 0x1ff
313
- rx++
314
- lines[yi + ry][xi + rx][0] = (battr & ~0x1ff) | lbg
315
- } else {
316
- rx++
317
- lines[yi + ry][xi + rx][0] = battr
318
- }
319
- lines[yi + ry][xi + rx][1] = '\u253c' // '┼'
320
- // rx++;
321
- }
322
- lines[yi + ry].dirty = true
323
- })
324
- ry += 2
325
- }
326
-
327
- // Draw internal borders.
328
- for (ry = 1; ry < self.rows.length * 2; ry++) {
329
- if (!lines[yi + ry]) {
330
- break
331
- }
332
- rx = 0
333
- self._maxes.slice(0, -1).forEach(function (max) {
334
- rx += max
335
- if (!lines[yi + ry][xi + rx + 1]) {
336
- return
337
- }
338
- if (ry % 2 !== 0) {
339
- if (self.options.fillCellBorders) {
340
- const lbg = (ry <= 2 ? hattr : cattr) & 0x1ff
341
- rx++
342
- lines[yi + ry][xi + rx][0] = (battr & ~0x1ff) | lbg
343
- } else {
344
- rx++
345
- lines[yi + ry][xi + rx][0] = battr
346
- }
347
- lines[yi + ry][xi + rx][1] = '\u2502' // '│'
348
- lines[yi + ry].dirty = true
349
- } else {
350
- rx++
351
- }
352
- })
353
- rx = 1
354
- self._maxes.forEach(function (max) {
355
- while (max--) {
356
- if (ry % 2 === 0) {
357
- if (!lines[yi + ry]) {
358
- break
359
- }
360
- if (!lines[yi + ry][xi + rx + 1]) {
361
- break
362
- }
363
- if (self.options.fillCellBorders) {
364
- const lbg = (ry <= 2 ? hattr : cattr) & 0x1ff
365
- lines[yi + ry][xi + rx][0] = (battr & ~0x1ff) | lbg
366
- } else {
367
- lines[yi + ry][xi + rx][0] = battr
368
- }
369
- lines[yi + ry][xi + rx][1] = '\u2500' // '─'
370
- lines[yi + ry].dirty = true
371
- }
372
- rx++
373
- }
374
- rx++
375
- })
376
- }
377
-
378
- return coords
379
- }
380
-
381
- /**
382
- * Expose
383
- */
384
-
385
- module.exports = Table