@socketsecurity/cli-with-sentry 0.14.67 → 0.14.69

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 (96) hide show
  1. package/dist/blessed/lib/alias.js +521 -0
  2. package/dist/blessed/lib/blessed.js +34 -0
  3. package/dist/blessed/lib/colors.js +492 -0
  4. package/dist/blessed/lib/events.js +197 -0
  5. package/dist/blessed/lib/gpmclient.js +247 -0
  6. package/dist/blessed/lib/helpers.js +172 -0
  7. package/dist/blessed/lib/keys.js +514 -0
  8. package/dist/blessed/lib/program.js +4532 -0
  9. package/dist/blessed/lib/tput.js +3113 -0
  10. package/dist/blessed/lib/unicode.js +914 -0
  11. package/dist/blessed/lib/widget.js +62 -0
  12. package/dist/blessed/lib/widgets/ansiimage.js +175 -0
  13. package/dist/blessed/lib/widgets/bigtext.js +172 -0
  14. package/dist/blessed/lib/widgets/box.js +36 -0
  15. package/dist/blessed/lib/widgets/button.js +64 -0
  16. package/dist/blessed/lib/widgets/checkbox.js +97 -0
  17. package/dist/blessed/lib/widgets/element.js +2873 -0
  18. package/dist/blessed/lib/widgets/filemanager.js +225 -0
  19. package/dist/blessed/lib/widgets/form.js +303 -0
  20. package/dist/blessed/lib/widgets/image.js +73 -0
  21. package/dist/blessed/lib/widgets/input.js +36 -0
  22. package/dist/blessed/lib/widgets/layout.js +251 -0
  23. package/dist/blessed/lib/widgets/line.js +61 -0
  24. package/dist/blessed/lib/widgets/list.js +654 -0
  25. package/dist/blessed/lib/widgets/listbar.js +454 -0
  26. package/dist/blessed/lib/widgets/listtable.js +267 -0
  27. package/dist/blessed/lib/widgets/loading.js +90 -0
  28. package/dist/blessed/lib/widgets/log.js +84 -0
  29. package/dist/blessed/lib/widgets/message.js +147 -0
  30. package/dist/blessed/lib/widgets/node.js +316 -0
  31. package/dist/blessed/lib/widgets/overlayimage.js +796 -0
  32. package/dist/blessed/lib/widgets/progressbar.js +168 -0
  33. package/dist/blessed/lib/widgets/prompt.js +129 -0
  34. package/dist/blessed/lib/widgets/question.js +131 -0
  35. package/dist/blessed/lib/widgets/radiobutton.js +64 -0
  36. package/dist/blessed/lib/widgets/radioset.js +38 -0
  37. package/dist/blessed/lib/widgets/screen.js +2489 -0
  38. package/dist/blessed/lib/widgets/scrollablebox.js +417 -0
  39. package/dist/blessed/lib/widgets/scrollabletext.js +37 -0
  40. package/dist/blessed/lib/widgets/table.js +385 -0
  41. package/dist/blessed/lib/widgets/terminal.js +454 -0
  42. package/dist/blessed/lib/widgets/text.js +37 -0
  43. package/dist/blessed/lib/widgets/textarea.js +378 -0
  44. package/dist/blessed/lib/widgets/textbox.js +81 -0
  45. package/dist/blessed/lib/widgets/video.js +132 -0
  46. package/dist/blessed/usr/fonts/AUTHORS +1 -0
  47. package/dist/blessed/usr/fonts/LICENSE +94 -0
  48. package/dist/blessed/usr/fonts/README +340 -0
  49. package/dist/blessed/usr/fonts/ter-u14b.json +17826 -0
  50. package/dist/blessed/usr/fonts/ter-u14n.json +17826 -0
  51. package/dist/blessed/usr/linux +0 -0
  52. package/dist/blessed/usr/windows-ansi +0 -0
  53. package/dist/blessed/usr/xterm +0 -0
  54. package/dist/blessed/usr/xterm-256color +0 -0
  55. package/dist/blessed/usr/xterm.termcap +243 -0
  56. package/dist/blessed/usr/xterm.terminfo +1977 -0
  57. package/dist/blessed/vendor/tng.js +1878 -0
  58. package/dist/constants.d.ts +271 -207
  59. package/dist/constants.js +271 -227
  60. package/dist/constants.js.map +1 -1
  61. package/dist/instrument-with-sentry.d.ts +1 -1
  62. package/dist/instrument-with-sentry.js +27 -24
  63. package/dist/instrument-with-sentry.js.map +1 -1
  64. package/dist/module-sync/artifact.d.ts +60 -26
  65. package/dist/module-sync/cli.d.ts +1 -1
  66. package/dist/module-sync/cli.js +6803 -4726
  67. package/dist/module-sync/cli.js.map +1 -1
  68. package/dist/module-sync/cmd.d.ts +4 -4
  69. package/dist/module-sync/config.d.ts +42 -17
  70. package/dist/module-sync/edge.d.ts +73 -60
  71. package/dist/module-sync/errors.d.ts +26 -11
  72. package/dist/module-sync/index.d.ts +31 -20
  73. package/dist/module-sync/node.d.ts +118 -83
  74. package/dist/module-sync/override-set.d.ts +39 -33
  75. package/dist/module-sync/package-environment.d.ts +83 -52
  76. package/dist/module-sync/path-resolve.d.ts +14 -9
  77. package/dist/module-sync/sdk.d.ts +9 -5
  78. package/dist/module-sync/shadow-bin.d.ts +5 -2
  79. package/dist/module-sync/shadow-bin.js +82 -66
  80. package/dist/module-sync/shadow-bin.js.map +1 -1
  81. package/dist/module-sync/shadow-npm-inject.d.ts +1 -1
  82. package/dist/module-sync/shadow-npm-inject.js +1231 -986
  83. package/dist/module-sync/shadow-npm-inject.js.map +1 -1
  84. package/dist/module-sync/shadow-npm-paths.d.ts +28 -14
  85. package/dist/module-sync/shadow-npm-paths.js +300 -208
  86. package/dist/module-sync/shadow-npm-paths.js.map +1 -1
  87. package/dist/module-sync/socket-package-alert.d.ts +95 -39
  88. package/dist/module-sync/types.d.ts +75 -47
  89. package/dist/module-sync/vendor.js +15055 -0
  90. package/dist/module-sync/vendor.js.map +1 -0
  91. package/dist/require/cli.d.ts +1 -1
  92. package/dist/require/cli.js +6802 -4724
  93. package/dist/require/cli.js.map +1 -1
  94. package/dist/require/vendor.js +2 -9145
  95. package/package.json +48 -38
  96. package/dist/require/vendor.js.map +0 -1
@@ -0,0 +1,251 @@
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
@@ -0,0 +1,61 @@
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