@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,454 +0,0 @@
1
- 'use strict'
2
-
3
- /**
4
- * terminal.js - term.js terminal 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 nextTick = global.setImmediate || process.nextTick.bind(process)
14
-
15
- const Node = require('./node')
16
- const Box = require('./box')
17
-
18
- /**
19
- * Terminal
20
- */
21
-
22
- function Terminal(options) {
23
- if (!(this instanceof Node)) {
24
- return new Terminal(options)
25
- }
26
-
27
- options = options || {}
28
- options.scrollable = false
29
-
30
- Box.call(this, options)
31
-
32
- // XXX Workaround for all motion
33
- if (this.screen.program.tmux && this.screen.program.tmuxVersion >= 2) {
34
- this.screen.program.enableMouse()
35
- }
36
-
37
- this.handler = options.handler
38
- this.shell = options.shell || process.env.SHELL || 'sh'
39
- this.args = options.args || []
40
-
41
- this.cursor = this.options.cursor
42
- this.cursorBlink = this.options.cursorBlink
43
- this.screenKeys = this.options.screenKeys
44
-
45
- this.style = this.style || {}
46
- this.style.bg = this.style.bg || 'default'
47
- this.style.fg = this.style.fg || 'default'
48
-
49
- this.termName =
50
- options.terminal || options.term || process.env.TERM || 'xterm'
51
-
52
- this.bootstrap()
53
- }
54
-
55
- Object.setPrototypeOf(Terminal.prototype, Box.prototype)
56
-
57
- Terminal.prototype.type = 'terminal'
58
-
59
- Terminal.prototype.bootstrap = function () {
60
- const self = this
61
-
62
- const element = {
63
- // window
64
- get document() {
65
- return element
66
- },
67
- navigator: { userAgent: 'node.js' },
68
-
69
- // document
70
- get defaultView() {
71
- return element
72
- },
73
- get documentElement() {
74
- return element
75
- },
76
- createElement: function () {
77
- return element
78
- },
79
-
80
- // element
81
- get ownerDocument() {
82
- return element
83
- },
84
- addEventListener: function () {},
85
- removeEventListener: function () {},
86
- getElementsByTagName: function () {
87
- return [element]
88
- },
89
- getElementById: function () {
90
- return element
91
- },
92
- parentNode: null,
93
- offsetParent: null,
94
- appendChild: function () {},
95
- removeChild: function () {},
96
- setAttribute: function () {},
97
- getAttribute: function () {},
98
- style: {},
99
- focus: function () {},
100
- blur: function () {},
101
- console: console
102
- }
103
-
104
- element.parentNode = element
105
- element.offsetParent = element
106
-
107
- this.term = require('term.js')({
108
- termName: this.termName,
109
- cols: this.width - this.iwidth,
110
- rows: this.height - this.iheight,
111
- context: element,
112
- document: element,
113
- body: element,
114
- parent: element,
115
- cursorBlink: this.cursorBlink,
116
- screenKeys: this.screenKeys
117
- })
118
-
119
- this.term.refresh = function () {
120
- self.screen.render()
121
- }
122
-
123
- this.term.keyDown = function () {}
124
- this.term.keyPress = function () {}
125
-
126
- this.term.open(element)
127
-
128
- // Emits key sequences in html-land.
129
- // Technically not necessary here.
130
- // In reality if we wanted to be neat, we would overwrite the keyDown and
131
- // keyPress methods with our own node.js-keys->terminal-keys methods, but
132
- // since all the keys are already coming in as escape sequences, we can just
133
- // send the input directly to the handler/socket (see below).
134
- // this.term.on('data', function(data) {
135
- // self.handler(data);
136
- // });
137
-
138
- // Incoming keys and mouse inputs.
139
- // NOTE: Cannot pass mouse events - coordinates will be off!
140
- this.screen.program.input.on(
141
- 'data',
142
- (this._onData = function (data) {
143
- if (self.screen.focused === self && !self._isMouse(data)) {
144
- self.handler(data)
145
- }
146
- })
147
- )
148
-
149
- this.onScreenEvent('mouse', function (data) {
150
- if (self.screen.focused !== self) {
151
- return
152
- }
153
-
154
- if (data.x < self.aleft + self.ileft) {
155
- return
156
- }
157
- if (data.y < self.atop + self.itop) {
158
- return
159
- }
160
- if (data.x > self.aleft - self.ileft + self.width) {
161
- return
162
- }
163
- if (data.y > self.atop - self.itop + self.height) {
164
- return
165
- }
166
-
167
- if (
168
- self.term.x10Mouse ||
169
- self.term.vt200Mouse ||
170
- self.term.normalMouse ||
171
- self.term.mouseEvents ||
172
- self.term.utfMouse ||
173
- self.term.sgrMouse ||
174
- self.term.urxvtMouse
175
- ) {
176
- } else {
177
- return
178
- }
179
-
180
- let b = data.raw[0],
181
- x = data.x - self.aleft,
182
- y = data.y - self.atop,
183
- s
184
-
185
- if (self.term.urxvtMouse) {
186
- if (self.screen.program.sgrMouse) {
187
- b += 32
188
- }
189
- s = '\x1b[' + b + ';' + (x + 32) + ';' + (y + 32) + 'M'
190
- } else if (self.term.sgrMouse) {
191
- if (!self.screen.program.sgrMouse) {
192
- b -= 32
193
- }
194
- s =
195
- '\x1b[<' +
196
- b +
197
- ';' +
198
- x +
199
- ';' +
200
- y +
201
- (data.action === 'mousedown' ? 'M' : 'm')
202
- } else {
203
- if (self.screen.program.sgrMouse) {
204
- b += 32
205
- }
206
- s =
207
- '\x1b[M' +
208
- String.fromCharCode(b) +
209
- String.fromCharCode(x + 32) +
210
- String.fromCharCode(y + 32)
211
- }
212
-
213
- self.handler(s)
214
- })
215
-
216
- this.on('focus', function () {
217
- self.term.focus()
218
- })
219
-
220
- this.on('blur', function () {
221
- self.term.blur()
222
- })
223
-
224
- this.term.on('title', function (title) {
225
- self.title = title
226
- self.emit('title', title)
227
- })
228
-
229
- this.term.on('passthrough', function (data) {
230
- self.screen.program.flush()
231
- self.screen.program._owrite(data)
232
- })
233
-
234
- this.on('resize', function () {
235
- nextTick(function () {
236
- self.term.resize(self.width - self.iwidth, self.height - self.iheight)
237
- })
238
- })
239
-
240
- this.once('render', function () {
241
- self.term.resize(self.width - self.iwidth, self.height - self.iheight)
242
- })
243
-
244
- this.on('destroy', function () {
245
- self.kill()
246
- self.screen.program.input.removeListener('data', self._onData)
247
- })
248
-
249
- if (this.handler) {
250
- return
251
- }
252
-
253
- this.pty = require('pty.js').fork(this.shell, this.args, {
254
- name: this.termName,
255
- cols: this.width - this.iwidth,
256
- rows: this.height - this.iheight,
257
- cwd: process.env.HOME,
258
- env: this.options.env || process.env
259
- })
260
-
261
- this.on('resize', function () {
262
- nextTick(function () {
263
- try {
264
- self.pty.resize(self.width - self.iwidth, self.height - self.iheight)
265
- } catch (e) {}
266
- })
267
- })
268
-
269
- this.handler = function (data) {
270
- self.pty.write(data)
271
- self.screen.render()
272
- }
273
-
274
- this.pty.on('data', function (data) {
275
- self.write(data)
276
- self.screen.render()
277
- })
278
-
279
- this.pty.on('exit', function (code) {
280
- self.emit('exit', code || null)
281
- })
282
-
283
- this.onScreenEvent('keypress', function () {
284
- self.screen.render()
285
- })
286
-
287
- this.screen._listenKeys(this)
288
- }
289
-
290
- Terminal.prototype.write = function (data) {
291
- return this.term.write(data)
292
- }
293
-
294
- Terminal.prototype.render = function () {
295
- const ret = this._render()
296
- if (!ret) {
297
- return
298
- }
299
-
300
- this.dattr = this.sattr(this.style)
301
-
302
- let xi = ret.xi + this.ileft,
303
- xl = ret.xl - this.iright,
304
- yi = ret.yi + this.itop,
305
- yl = ret.yl - this.ibottom,
306
- cursor
307
-
308
- const scrollback = this.term.lines.length - (yl - yi)
309
-
310
- for (let y = Math.max(yi, 0); y < yl; y++) {
311
- const line = this.screen.lines[y]
312
- if (!line || !this.term.lines[scrollback + y - yi]) {
313
- break
314
- }
315
-
316
- if (
317
- y === yi + this.term.y &&
318
- this.term.cursorState &&
319
- this.screen.focused === this &&
320
- (this.term.ydisp === this.term.ybase || this.term.selectMode) &&
321
- !this.term.cursorHidden
322
- ) {
323
- cursor = xi + this.term.x
324
- } else {
325
- cursor = -1
326
- }
327
-
328
- for (let x = Math.max(xi, 0); x < xl; x++) {
329
- if (!line[x] || !this.term.lines[scrollback + y - yi][x - xi]) {
330
- break
331
- }
332
-
333
- line[x][0] = this.term.lines[scrollback + y - yi][x - xi][0]
334
-
335
- if (x === cursor) {
336
- if (this.cursor === 'line') {
337
- line[x][0] = this.dattr
338
- line[x][1] = '\u2502'
339
- continue
340
- } else if (this.cursor === 'underline') {
341
- line[x][0] = this.dattr | (2 << 18)
342
- } else if (this.cursor === 'block' || !this.cursor) {
343
- line[x][0] = this.dattr | (8 << 18)
344
- }
345
- }
346
-
347
- line[x][1] = this.term.lines[scrollback + y - yi][x - xi][1]
348
-
349
- // default foreground = 257
350
- if (((line[x][0] >> 9) & 0x1ff) === 257) {
351
- line[x][0] &= ~(0x1ff << 9)
352
- line[x][0] |= ((this.dattr >> 9) & 0x1ff) << 9
353
- }
354
-
355
- // default background = 256
356
- if ((line[x][0] & 0x1ff) === 256) {
357
- line[x][0] &= ~0x1ff
358
- line[x][0] |= this.dattr & 0x1ff
359
- }
360
- }
361
-
362
- line.dirty = true
363
- }
364
-
365
- return ret
366
- }
367
-
368
- Terminal.prototype._isMouse = function (buf) {
369
- let s = buf
370
- if (Buffer.isBuffer(s)) {
371
- if (s[0] > 127 && s[1] === undefined) {
372
- s[0] -= 128
373
- s = '\x1b' + s.toString('utf-8')
374
- } else {
375
- s = s.toString('utf-8')
376
- }
377
- }
378
- return (
379
- (buf[0] === 0x1b && buf[1] === 0x5b && buf[2] === 0x4d) ||
380
- /^\x1b\[M([\x00\u0020-\uffff]{3})/.test(s) ||
381
- /^\x1b\[(\d+;\d+;\d+)M/.test(s) ||
382
- /^\x1b\[<(\d+;\d+;\d+)([mM])/.test(s) ||
383
- /^\x1b\[<(\d+;\d+;\d+;\d+)&w/.test(s) ||
384
- /^\x1b\[24([0135])~\[(\d+),(\d+)\]\r/.test(s) ||
385
- /^\x1b\[(O|I)/.test(s)
386
- )
387
- }
388
-
389
- Terminal.prototype.setScroll = Terminal.prototype.scrollTo = function (offset) {
390
- this.term.ydisp = offset
391
- return this.emit('scroll')
392
- }
393
-
394
- Terminal.prototype.getScroll = function () {
395
- return this.term.ydisp
396
- }
397
-
398
- Terminal.prototype.scroll = function (offset) {
399
- this.term.scrollDisp(offset)
400
- return this.emit('scroll')
401
- }
402
-
403
- Terminal.prototype.resetScroll = function () {
404
- this.term.ydisp = 0
405
- this.term.ybase = 0
406
- return this.emit('scroll')
407
- }
408
-
409
- Terminal.prototype.getScrollHeight = function () {
410
- return this.term.rows - 1
411
- }
412
-
413
- Terminal.prototype.getScrollPerc = function () {
414
- return (this.term.ydisp / this.term.ybase) * 100
415
- }
416
-
417
- Terminal.prototype.setScrollPerc = function (i) {
418
- return this.setScroll(((i / 100) * this.term.ybase) | 0)
419
- }
420
-
421
- Terminal.prototype.screenshot = function (xi, xl, yi, yl) {
422
- xi = 0 + (xi || 0)
423
- if (xl != null) {
424
- xl = 0 + (xl || 0)
425
- } else {
426
- xl = this.term.lines[0].length
427
- }
428
- yi = 0 + (yi || 0)
429
- if (yl != null) {
430
- yl = 0 + (yl || 0)
431
- } else {
432
- yl = this.term.lines.length
433
- }
434
- return this.screen.screenshot(xi, xl, yi, yl, this.term)
435
- }
436
-
437
- Terminal.prototype.kill = function () {
438
- if (this.pty) {
439
- this.pty.destroy()
440
- this.pty.kill()
441
- }
442
- this.term.refresh = function () {}
443
- this.term.write('\x1b[H\x1b[J')
444
- if (this.term._blink) {
445
- clearInterval(this.term._blink)
446
- }
447
- this.term.destroy()
448
- }
449
-
450
- /**
451
- * Expose
452
- */
453
-
454
- module.exports = Terminal
@@ -1,37 +0,0 @@
1
- 'use strict'
2
-
3
- /**
4
- * text.js - text 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
- * Text
18
- */
19
-
20
- function Text(options) {
21
- if (!(this instanceof Node)) {
22
- return new Text(options)
23
- }
24
- options = options || {}
25
- options.shrink = true
26
- Element.call(this, options)
27
- }
28
-
29
- Object.setPrototypeOf(Text.prototype, Element.prototype)
30
-
31
- Text.prototype.type = 'text'
32
-
33
- /**
34
- * Expose
35
- */
36
-
37
- module.exports = Text