@socketsecurity/cli-with-sentry 0.15.11 → 0.15.12

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 (402) hide show
  1. package/bin/cli.js +6 -6
  2. package/dist/.config/tsconfig.dts.tsbuildinfo +1 -1
  3. package/dist/cli.js +5731 -6607
  4. package/dist/cli.js.map +1 -1
  5. package/dist/constants.js +274 -305
  6. package/dist/constants.js.map +1 -1
  7. package/dist/instrument-with-sentry.js +28 -34
  8. package/dist/instrument-with-sentry.js.map +1 -1
  9. package/dist/shadow-bin.js +96 -123
  10. package/dist/shadow-bin.js.map +1 -1
  11. package/dist/shadow-inject.js +470 -580
  12. package/dist/shadow-inject.js.map +1 -1
  13. package/dist/socket-completion.bash +221 -0
  14. package/dist/types/cli.d.mts +2 -2
  15. package/dist/types/commands/analytics/cmd-analytics.d.mts +9 -15
  16. package/dist/types/commands/analytics/fetch-org-analytics.d.mts +4 -6
  17. package/dist/types/commands/analytics/fetch-repo-analytics.d.mts +4 -7
  18. package/dist/types/commands/analytics/handle-analytics.d.mts +9 -15
  19. package/dist/types/commands/analytics/handle-analytics.d.mts.map +1 -1
  20. package/dist/types/commands/analytics/output-analytics.d.mts +26 -46
  21. package/dist/types/commands/analytics/output-analytics.d.mts.map +1 -1
  22. package/dist/types/commands/audit-log/cmd-audit-log.d.mts +9 -15
  23. package/dist/types/commands/audit-log/fetch-audit-log.d.mts +10 -16
  24. package/dist/types/commands/audit-log/fetch-audit-log.d.mts.map +1 -1
  25. package/dist/types/commands/audit-log/handle-audit-log.d.mts +9 -15
  26. package/dist/types/commands/audit-log/handle-audit-log.d.mts.map +1 -1
  27. package/dist/types/commands/audit-log/output-audit-log.d.mts +22 -47
  28. package/dist/types/commands/audit-log/output-audit-log.d.mts.map +1 -1
  29. package/dist/types/commands/cdxgen/cmd-cdxgen.d.mts +9 -15
  30. package/dist/types/commands/cdxgen/cmd-cdxgen.d.mts.map +1 -1
  31. package/dist/types/commands/cdxgen/handle-cdxgen.d.mts +4 -0
  32. package/dist/types/commands/cdxgen/handle-cdxgen.d.mts.map +1 -0
  33. package/dist/types/commands/ci/cmd-ci.d.mts +9 -15
  34. package/dist/types/commands/ci/fetch-default-org-slug.d.mts +3 -3
  35. package/dist/types/commands/ci/handle-ci.d.mts +2 -2
  36. package/dist/types/commands/config/cmd-config-auto.d.mts +9 -15
  37. package/dist/types/commands/config/cmd-config-get.d.mts +9 -15
  38. package/dist/types/commands/config/cmd-config-list.d.mts +9 -15
  39. package/dist/types/commands/config/cmd-config-set.d.mts +9 -15
  40. package/dist/types/commands/config/cmd-config-unset.d.mts +9 -15
  41. package/dist/types/commands/config/cmd-config.d.mts +3 -3
  42. package/dist/types/commands/config/discover-config-value.d.mts +3 -5
  43. package/dist/types/commands/config/discover-config-value.d.mts.map +1 -1
  44. package/dist/types/commands/config/handle-config-auto.d.mts +7 -10
  45. package/dist/types/commands/config/handle-config-auto.d.mts.map +1 -1
  46. package/dist/types/commands/config/handle-config-get.d.mts +7 -10
  47. package/dist/types/commands/config/handle-config-get.d.mts.map +1 -1
  48. package/dist/types/commands/config/handle-config-set.d.mts +8 -12
  49. package/dist/types/commands/config/handle-config-set.d.mts.map +1 -1
  50. package/dist/types/commands/config/handle-config-unset.d.mts +7 -10
  51. package/dist/types/commands/config/handle-config-unset.d.mts.map +1 -1
  52. package/dist/types/commands/config/output-config-auto.d.mts +4 -8
  53. package/dist/types/commands/config/output-config-get.d.mts +4 -8
  54. package/dist/types/commands/config/output-config-list.d.mts +6 -9
  55. package/dist/types/commands/config/output-config-list.d.mts.map +1 -1
  56. package/dist/types/commands/config/output-config-set.d.mts +3 -6
  57. package/dist/types/commands/config/output-config-unset.d.mts +3 -6
  58. package/dist/types/commands/dependencies/cmd-dependencies.d.mts +9 -15
  59. package/dist/types/commands/dependencies/fetch-dependencies.d.mts +7 -10
  60. package/dist/types/commands/dependencies/fetch-dependencies.d.mts.map +1 -1
  61. package/dist/types/commands/dependencies/handle-dependencies.d.mts +7 -11
  62. package/dist/types/commands/dependencies/handle-dependencies.d.mts.map +1 -1
  63. package/dist/types/commands/dependencies/output-dependencies.d.mts +8 -15
  64. package/dist/types/commands/dependencies/output-dependencies.d.mts.map +1 -1
  65. package/dist/types/commands/diff-scan/cmd-diff-scan-get.d.mts +9 -15
  66. package/dist/types/commands/diff-scan/cmd-diff-scan.d.mts +3 -3
  67. package/dist/types/commands/diff-scan/fetch-diff-scan.d.mts +8 -12
  68. package/dist/types/commands/diff-scan/fetch-diff-scan.d.mts.map +1 -1
  69. package/dist/types/commands/diff-scan/handle-diff-scan.d.mts +10 -17
  70. package/dist/types/commands/diff-scan/handle-diff-scan.d.mts.map +1 -1
  71. package/dist/types/commands/diff-scan/output-diff-scan.d.mts +8 -15
  72. package/dist/types/commands/diff-scan/output-diff-scan.d.mts.map +1 -1
  73. package/dist/types/commands/fix/cmd-fix.d.mts +9 -15
  74. package/dist/types/commands/fix/git.d.mts +14 -49
  75. package/dist/types/commands/fix/npm-fix.d.mts +4 -16
  76. package/dist/types/commands/fix/npm-fix.d.mts.map +1 -1
  77. package/dist/types/commands/fix/open-pr.d.mts +20 -46
  78. package/dist/types/commands/fix/open-pr.d.mts.map +1 -1
  79. package/dist/types/commands/fix/pnpm-fix.d.mts +4 -16
  80. package/dist/types/commands/fix/pnpm-fix.d.mts.map +1 -1
  81. package/dist/types/commands/fix/run-fix.d.mts +3 -3
  82. package/dist/types/commands/fix/shared.d.mts +9 -15
  83. package/dist/types/commands/fix/types.d.mts +16 -16
  84. package/dist/types/commands/info/cmd-info.d.mts +9 -15
  85. package/dist/types/commands/info/fetch-package-info.d.mts +3 -7
  86. package/dist/types/commands/info/handle-package-info.d.mts +15 -22
  87. package/dist/types/commands/info/handle-package-info.d.mts.map +1 -1
  88. package/dist/types/commands/info/output-package-info.d.mts +10 -18
  89. package/dist/types/commands/info/output-package-info.d.mts.map +1 -1
  90. package/dist/types/commands/install/cmd-install-completion.d.mts +10 -0
  91. package/dist/types/commands/install/cmd-install-completion.d.mts.map +1 -0
  92. package/dist/types/commands/install/cmd-install.d.mts +3 -0
  93. package/dist/types/commands/install/cmd-install.d.mts.map +1 -0
  94. package/dist/types/commands/install/handle-install-completion.d.mts +2 -0
  95. package/dist/types/commands/install/handle-install-completion.d.mts.map +1 -0
  96. package/dist/types/commands/install/output-install-completion.d.mts +12 -0
  97. package/dist/types/commands/install/output-install-completion.d.mts.map +1 -0
  98. package/dist/types/commands/install/setup-tab-completion.d.mts +13 -0
  99. package/dist/types/commands/install/setup-tab-completion.d.mts.map +1 -0
  100. package/dist/types/commands/login/apply-login.d.mts +2 -7
  101. package/dist/types/commands/login/attempt-login.d.mts +2 -5
  102. package/dist/types/commands/login/attempt-login.d.mts.map +1 -1
  103. package/dist/types/commands/login/cmd-login.d.mts +9 -15
  104. package/dist/types/commands/logout/apply-logout.d.mts +2 -2
  105. package/dist/types/commands/logout/attempt-logout.d.mts +2 -2
  106. package/dist/types/commands/logout/cmd-logout.d.mts +9 -15
  107. package/dist/types/commands/manifest/cmd-manifest-auto.d.mts +9 -15
  108. package/dist/types/commands/manifest/cmd-manifest-cdxgen.d.mts +10 -0
  109. package/dist/types/commands/manifest/cmd-manifest-cdxgen.d.mts.map +1 -0
  110. package/dist/types/commands/manifest/cmd-manifest-conda.d.mts +9 -15
  111. package/dist/types/commands/manifest/cmd-manifest-gradle.d.mts +9 -15
  112. package/dist/types/commands/manifest/cmd-manifest-kotlin.d.mts +9 -15
  113. package/dist/types/commands/manifest/cmd-manifest-scala.d.mts +9 -15
  114. package/dist/types/commands/manifest/cmd-manifest.d.mts +9 -15
  115. package/dist/types/commands/manifest/cmd-manifest.d.mts.map +1 -1
  116. package/dist/types/commands/manifest/convert-conda-to-requirements.d.mts +7 -15
  117. package/dist/types/commands/manifest/convert_gradle_to_maven.d.mts +2 -8
  118. package/dist/types/commands/manifest/convert_sbt_to_maven.d.mts +2 -8
  119. package/dist/types/commands/manifest/handle-manifest-conda.d.mts +3 -9
  120. package/dist/types/commands/manifest/output-requirements.d.mts +6 -10
  121. package/dist/types/commands/{cdxgen → manifest}/run-cdxgen.d.mts +2 -2
  122. package/dist/types/commands/manifest/run-cdxgen.d.mts.map +1 -0
  123. package/dist/types/commands/npm/cmd-npm.d.mts +9 -15
  124. package/dist/types/commands/npx/cmd-npx.d.mts +9 -15
  125. package/dist/types/commands/oops/cmd-oops.d.mts +9 -15
  126. package/dist/types/commands/optimize/add-overrides.d.mts +18 -22
  127. package/dist/types/commands/optimize/apply-optimization.d.mts +2 -6
  128. package/dist/types/commands/optimize/cmd-optimize.d.mts +9 -15
  129. package/dist/types/commands/optimize/deps-includes-by-agent.d.mts +4 -7
  130. package/dist/types/commands/optimize/get-dependency-entries.d.mts +3 -5
  131. package/dist/types/commands/optimize/get-overrides-by-agent.d.mts +8 -11
  132. package/dist/types/commands/optimize/lockfile-includes-by-agent.d.mts +3 -10
  133. package/dist/types/commands/optimize/ls-by-agent.d.mts +6 -13
  134. package/dist/types/commands/optimize/shared.d.mts +2 -2
  135. package/dist/types/commands/optimize/types.d.mts +7 -7
  136. package/dist/types/commands/optimize/update-lockfile.d.mts +9 -12
  137. package/dist/types/commands/optimize/update-manifest-by-agent.d.mts +5 -11
  138. package/dist/types/commands/organization/cmd-organization-list.d.mts +9 -15
  139. package/dist/types/commands/organization/cmd-organization-policy-license.d.mts +9 -15
  140. package/dist/types/commands/organization/cmd-organization-policy-security.d.mts +9 -15
  141. package/dist/types/commands/organization/cmd-organization-policy.d.mts +3 -3
  142. package/dist/types/commands/organization/cmd-organization-quota.d.mts +9 -15
  143. package/dist/types/commands/organization/cmd-organization.d.mts +3 -3
  144. package/dist/types/commands/organization/fetch-license-policy.d.mts +4 -6
  145. package/dist/types/commands/organization/fetch-organization-list.d.mts +4 -6
  146. package/dist/types/commands/organization/fetch-quota.d.mts +4 -6
  147. package/dist/types/commands/organization/fetch-security-policy.d.mts +4 -6
  148. package/dist/types/commands/organization/handle-license-policy.d.mts +3 -6
  149. package/dist/types/commands/organization/handle-organization-list.d.mts +3 -5
  150. package/dist/types/commands/organization/handle-quota.d.mts +3 -3
  151. package/dist/types/commands/organization/handle-security-policy.d.mts +3 -6
  152. package/dist/types/commands/organization/output-license-policy.d.mts +4 -7
  153. package/dist/types/commands/organization/output-organization-list.d.mts +4 -7
  154. package/dist/types/commands/organization/output-quota.d.mts +4 -7
  155. package/dist/types/commands/organization/output-security-policy.d.mts +4 -7
  156. package/dist/types/commands/package/cmd-package-score.d.mts +9 -15
  157. package/dist/types/commands/package/cmd-package-shallow.d.mts +16 -22
  158. package/dist/types/commands/package/cmd-package.d.mts +3 -3
  159. package/dist/types/commands/package/fetch-purl-deep-score.d.mts +49 -51
  160. package/dist/types/commands/package/fetch-purls-shallow-score.d.mts +4 -6
  161. package/dist/types/commands/package/handle-purl-deep-score.d.mts +3 -6
  162. package/dist/types/commands/package/handle-purls-shallow-score.d.mts +6 -9
  163. package/dist/types/commands/package/handle-purls-shallow-score.d.mts.map +1 -1
  164. package/dist/types/commands/package/output-purl-score.d.mts +4 -8
  165. package/dist/types/commands/package/output-purls-shallow-score.d.mts +4 -8
  166. package/dist/types/commands/package/parse-package-specifiers.d.mts +5 -8
  167. package/dist/types/commands/raw-npm/cmd-raw-npm.d.mts +9 -15
  168. package/dist/types/commands/raw-npm/run-raw-npm.d.mts +2 -4
  169. package/dist/types/commands/raw-npx/cmd-raw-npx.d.mts +9 -15
  170. package/dist/types/commands/raw-npx/run-raw-npx.d.mts +2 -4
  171. package/dist/types/commands/report/cmd-report-create.d.mts +9 -15
  172. package/dist/types/commands/report/cmd-report-view.d.mts +9 -15
  173. package/dist/types/commands/report/cmd-report.d.mts +3 -3
  174. package/dist/types/commands/repos/cmd-repos-create.d.mts +9 -15
  175. package/dist/types/commands/repos/cmd-repos-del.d.mts +9 -15
  176. package/dist/types/commands/repos/cmd-repos-list.d.mts +9 -15
  177. package/dist/types/commands/repos/cmd-repos-update.d.mts +9 -15
  178. package/dist/types/commands/repos/cmd-repos-view.d.mts +9 -15
  179. package/dist/types/commands/repos/cmd-repos.d.mts +3 -3
  180. package/dist/types/commands/repos/fetch-create-repo.d.mts +11 -18
  181. package/dist/types/commands/repos/fetch-create-repo.d.mts.map +1 -1
  182. package/dist/types/commands/repos/fetch-delete-repo.d.mts +4 -7
  183. package/dist/types/commands/repos/fetch-list-repos.d.mts +10 -16
  184. package/dist/types/commands/repos/fetch-list-repos.d.mts.map +1 -1
  185. package/dist/types/commands/repos/fetch-update-repo.d.mts +11 -18
  186. package/dist/types/commands/repos/fetch-update-repo.d.mts.map +1 -1
  187. package/dist/types/commands/repos/fetch-view-repo.d.mts +4 -7
  188. package/dist/types/commands/repos/handle-create-repo.d.mts +10 -20
  189. package/dist/types/commands/repos/handle-create-repo.d.mts.map +1 -1
  190. package/dist/types/commands/repos/handle-delete-repo.d.mts +3 -7
  191. package/dist/types/commands/repos/handle-list-repos.d.mts +10 -17
  192. package/dist/types/commands/repos/handle-list-repos.d.mts.map +1 -1
  193. package/dist/types/commands/repos/handle-update-repo.d.mts +10 -20
  194. package/dist/types/commands/repos/handle-update-repo.d.mts.map +1 -1
  195. package/dist/types/commands/repos/handle-view-repo.d.mts +3 -7
  196. package/dist/types/commands/repos/output-create-repo.d.mts +4 -8
  197. package/dist/types/commands/repos/output-delete-repo.d.mts +4 -8
  198. package/dist/types/commands/repos/output-list-repos.d.mts +4 -7
  199. package/dist/types/commands/repos/output-update-repo.d.mts +4 -8
  200. package/dist/types/commands/repos/output-view-repo.d.mts +4 -7
  201. package/dist/types/commands/scan/cmd-scan-create.d.mts +9 -15
  202. package/dist/types/commands/scan/cmd-scan-del.d.mts +9 -15
  203. package/dist/types/commands/scan/cmd-scan-diff.d.mts +9 -15
  204. package/dist/types/commands/scan/cmd-scan-list.d.mts +3 -3
  205. package/dist/types/commands/scan/cmd-scan-metadata.d.mts +3 -3
  206. package/dist/types/commands/scan/cmd-scan-report.d.mts +3 -3
  207. package/dist/types/commands/scan/cmd-scan-view.d.mts +3 -3
  208. package/dist/types/commands/scan/cmd-scan.d.mts +3 -3
  209. package/dist/types/commands/scan/fetch-create-org-full-scan.d.mts +11 -26
  210. package/dist/types/commands/scan/fetch-create-org-full-scan.d.mts.map +1 -1
  211. package/dist/types/commands/scan/fetch-delete-org-full-scan.d.mts +4 -7
  212. package/dist/types/commands/scan/fetch-diff-scan.d.mts +8 -12
  213. package/dist/types/commands/scan/fetch-diff-scan.d.mts.map +1 -1
  214. package/dist/types/commands/scan/fetch-list-scans.d.mts +13 -22
  215. package/dist/types/commands/scan/fetch-list-scans.d.mts.map +1 -1
  216. package/dist/types/commands/scan/fetch-report-data.d.mts +8 -14
  217. package/dist/types/commands/scan/fetch-scan-metadata.d.mts +4 -7
  218. package/dist/types/commands/scan/fetch-scan.d.mts +4 -7
  219. package/dist/types/commands/scan/fetch-supported-scan-file-names.d.mts +4 -6
  220. package/dist/types/commands/scan/generate-report.d.mts +36 -50
  221. package/dist/types/commands/scan/generate-report.d.mts.map +1 -1
  222. package/dist/types/commands/scan/handle-create-new-scan.d.mts +20 -37
  223. package/dist/types/commands/scan/handle-create-new-scan.d.mts.map +1 -1
  224. package/dist/types/commands/scan/handle-delete-scan.d.mts +3 -7
  225. package/dist/types/commands/scan/handle-diff-scan.d.mts +10 -17
  226. package/dist/types/commands/scan/handle-diff-scan.d.mts.map +1 -1
  227. package/dist/types/commands/scan/handle-list-scans.d.mts +13 -23
  228. package/dist/types/commands/scan/handle-list-scans.d.mts.map +1 -1
  229. package/dist/types/commands/scan/handle-scan-metadata.d.mts +3 -7
  230. package/dist/types/commands/scan/handle-scan-report.d.mts +12 -21
  231. package/dist/types/commands/scan/handle-scan-report.d.mts.map +1 -1
  232. package/dist/types/commands/scan/handle-scan-view.d.mts +3 -8
  233. package/dist/types/commands/scan/output-create-new-scan.d.mts +4 -8
  234. package/dist/types/commands/scan/output-delete-scan.d.mts +4 -7
  235. package/dist/types/commands/scan/output-diff-scan.d.mts +8 -15
  236. package/dist/types/commands/scan/output-diff-scan.d.mts.map +1 -1
  237. package/dist/types/commands/scan/output-list-scans.d.mts +4 -7
  238. package/dist/types/commands/scan/output-scan-metadata.d.mts +4 -8
  239. package/dist/types/commands/scan/output-scan-report.d.mts +20 -38
  240. package/dist/types/commands/scan/output-scan-report.d.mts.map +1 -1
  241. package/dist/types/commands/scan/output-scan-view.d.mts +4 -10
  242. package/dist/types/commands/scan/stream-scan.d.mts +2 -6
  243. package/dist/types/commands/scan/suggest-org-slug.d.mts +2 -2
  244. package/dist/types/commands/scan/suggest-repo-slug.d.mts +4 -4
  245. package/dist/types/commands/scan/suggest_branch_slug.d.mts +2 -4
  246. package/dist/types/commands/scan/suggest_target.d.mts +2 -2
  247. package/dist/types/commands/threat-feed/cmd-threat-feed.d.mts +9 -15
  248. package/dist/types/commands/threat-feed/fetch-threat-feed.d.mts +10 -16
  249. package/dist/types/commands/threat-feed/fetch-threat-feed.d.mts.map +1 -1
  250. package/dist/types/commands/threat-feed/handle-threat-feed.d.mts +10 -17
  251. package/dist/types/commands/threat-feed/handle-threat-feed.d.mts.map +1 -1
  252. package/dist/types/commands/threat-feed/output-threat-feed.d.mts +4 -7
  253. package/dist/types/commands/threat-feed/types.d.mts +12 -12
  254. package/dist/types/commands/uninstall/cmd-uninstall-completion.d.mts +9 -0
  255. package/dist/types/commands/uninstall/cmd-uninstall-completion.d.mts.map +1 -0
  256. package/dist/types/commands/uninstall/cmd-uninstall.d.mts +3 -0
  257. package/dist/types/commands/uninstall/cmd-uninstall.d.mts.map +1 -0
  258. package/dist/types/commands/uninstall/handle-uninstall-completion.d.mts +2 -0
  259. package/dist/types/commands/uninstall/handle-uninstall-completion.d.mts.map +1 -0
  260. package/dist/types/commands/uninstall/output-uninstall-completion.d.mts +6 -0
  261. package/dist/types/commands/uninstall/output-uninstall-completion.d.mts.map +1 -0
  262. package/dist/types/commands/uninstall/teardown-tab-completion.d.mts +6 -0
  263. package/dist/types/commands/uninstall/teardown-tab-completion.d.mts.map +1 -0
  264. package/dist/types/commands/wrapper/add-socket-wrapper.d.mts +2 -2
  265. package/dist/types/commands/wrapper/check-socket-wrapper-setup.d.mts +2 -2
  266. package/dist/types/commands/wrapper/cmd-wrapper.d.mts +9 -15
  267. package/dist/types/commands/wrapper/postinstall-wrapper.d.mts +2 -2
  268. package/dist/types/commands/wrapper/postinstall-wrapper.d.mts.map +1 -1
  269. package/dist/types/commands/wrapper/remove-socket-wrapper.d.mts +2 -2
  270. package/dist/types/constants.d.mts +125 -135
  271. package/dist/types/constants.d.mts.map +1 -1
  272. package/dist/types/flags.d.mts +14 -17
  273. package/dist/types/flags.d.mts.map +1 -1
  274. package/dist/types/instrument-with-sentry.d.mts +2 -2
  275. package/dist/types/shadow/npm/arborist/index.d.mts +2 -2
  276. package/dist/types/shadow/npm/arborist/lib/arborist/index.d.mts +19 -24
  277. package/dist/types/shadow/npm/arborist/lib/arborist/types.d.mts +43 -71
  278. package/dist/types/shadow/npm/arborist/lib/dep-valid.d.mts +3 -8
  279. package/dist/types/shadow/npm/arborist/lib/edge.d.mts +58 -71
  280. package/dist/types/shadow/npm/arborist/lib/node.d.mts +55 -91
  281. package/dist/types/shadow/npm/arborist/lib/override-set.d.mts +26 -32
  282. package/dist/types/shadow/npm/arborist-helpers.d.mts +33 -66
  283. package/dist/types/shadow/npm/arborist-helpers.d.mts.map +1 -1
  284. package/dist/types/shadow/npm/bin.d.mts +2 -5
  285. package/dist/types/shadow/npm/inject.d.mts +2 -2
  286. package/dist/types/shadow/npm/install.d.mts +11 -16
  287. package/dist/types/shadow/npm/link.d.mts +2 -5
  288. package/dist/types/shadow/npm/paths.d.mts +7 -7
  289. package/dist/types/shadow/npm/proc-log/index.d.mts +3 -6
  290. package/dist/types/types.d.mts +15 -17
  291. package/dist/types/utils/agent.d.mts +11 -14
  292. package/dist/types/utils/alert/artifact.d.mts +32 -50
  293. package/dist/types/utils/alert/fix.d.mts +5 -5
  294. package/dist/types/utils/alert/severity.d.mts +12 -24
  295. package/dist/types/utils/alerts-map.d.mts +23 -36
  296. package/dist/types/utils/api.d.mts +11 -34
  297. package/dist/types/utils/check-input.d.mts +9 -12
  298. package/dist/types/utils/cmd.d.mts +4 -4
  299. package/dist/types/utils/color-or-markdown.d.mts +14 -23
  300. package/dist/types/utils/color-or-markdown.d.mts.map +1 -1
  301. package/dist/types/utils/completion.d.mts +11 -0
  302. package/dist/types/utils/completion.d.mts.map +1 -0
  303. package/dist/types/utils/config.d.mts +22 -31
  304. package/dist/types/utils/config.d.mts.map +1 -1
  305. package/dist/types/utils/determine-org-slug.d.mts +2 -7
  306. package/dist/types/utils/errors.d.mts +12 -21
  307. package/dist/types/utils/fail-msg-with-badge.d.mts +2 -5
  308. package/dist/types/utils/fs.d.mts +21 -52
  309. package/dist/types/utils/get-output-kind.d.mts +3 -6
  310. package/dist/types/utils/glob.d.mts +13 -24
  311. package/dist/types/utils/map-to-object.d.mts +4 -6
  312. package/dist/types/utils/markdown.d.mts +4 -15
  313. package/dist/types/utils/meow-with-subcommands.d.mts +34 -46
  314. package/dist/types/utils/meow-with-subcommands.d.mts.map +1 -1
  315. package/dist/types/utils/npm-paths.d.mts +7 -7
  316. package/dist/types/utils/npm-paths.d.mts.map +1 -1
  317. package/dist/types/utils/objects.d.mts +3 -8
  318. package/dist/types/utils/output-formatting.d.mts +14 -24
  319. package/dist/types/utils/package-environment.d.mts +51 -72
  320. package/dist/types/utils/package-environment.d.mts.map +1 -1
  321. package/dist/types/utils/path-resolve.d.mts +9 -14
  322. package/dist/types/utils/pnpm.d.mts +9 -7
  323. package/dist/types/utils/pnpm.d.mts.map +1 -1
  324. package/dist/types/utils/sdk.d.mts +8 -12
  325. package/dist/types/utils/semver.d.mts +5 -17
  326. package/dist/types/utils/serialize-result-json.d.mts +3 -3
  327. package/dist/types/utils/socket-package-alert.d.mts +62 -81
  328. package/dist/types/utils/socket-url.d.mts +9 -15
  329. package/dist/types/utils/spec.d.mts +4 -7
  330. package/dist/types/utils/spec.d.mts.map +1 -1
  331. package/dist/types/utils/strings.d.mts +2 -5
  332. package/dist/types/utils/translations.d.mts +592 -592
  333. package/dist/types/utils/walk-nested-map.d.mts +7 -10
  334. package/dist/utils.js +1531 -1833
  335. package/dist/utils.js.map +1 -1
  336. package/dist/vendor.js +38333 -51605
  337. package/dist/vendor.js.map +1 -1
  338. package/external/@socketsecurity/registry/external/@npmcli/package-json/index.js +5 -8
  339. package/external/@socketsecurity/registry/external/@npmcli/promise-spawn.js +2 -4
  340. package/external/@socketsecurity/registry/external/cacache.js +1 -2
  341. package/external/@socketsecurity/registry/external/libnpmpack.js +36 -76
  342. package/external/@socketsecurity/registry/external/make-fetch-happen.js +31 -67
  343. package/external/@socketsecurity/registry/external/pacote.js +36 -76
  344. package/external/@socketsecurity/registry/external/tinyglobby.js +3 -6
  345. package/external/@socketsecurity/registry/external/which.js +2 -4
  346. package/external/@socketsecurity/registry/lib/logger.d.ts +3 -1
  347. package/external/@socketsecurity/registry/lib/logger.js +149 -69
  348. package/external/@socketsecurity/registry/package.json +2 -2
  349. package/external/blessed/lib/alias.js +475 -468
  350. package/external/blessed/lib/blessed.js +12 -12
  351. package/external/blessed/lib/colors.js +234 -194
  352. package/external/blessed/lib/events.js +64 -70
  353. package/external/blessed/lib/gpmclient.js +117 -141
  354. package/external/blessed/lib/helpers.js +89 -94
  355. package/external/blessed/lib/keys.js +169 -342
  356. package/external/blessed/lib/program.js +2130 -2365
  357. package/external/blessed/lib/tput.js +1183 -1276
  358. package/external/blessed/lib/unicode.js +400 -522
  359. package/external/blessed/lib/widget.js +14 -14
  360. package/external/blessed/lib/widgets/ansiimage.js +90 -96
  361. package/external/blessed/lib/widgets/bigtext.js +91 -102
  362. package/external/blessed/lib/widgets/box.js +8 -8
  363. package/external/blessed/lib/widgets/button.js +23 -23
  364. package/external/blessed/lib/widgets/checkbox.js +50 -54
  365. package/external/blessed/lib/widgets/element.js +1415 -1716
  366. package/external/blessed/lib/widgets/filemanager.js +107 -118
  367. package/external/blessed/lib/widgets/form.js +144 -178
  368. package/external/blessed/lib/widgets/image.js +26 -36
  369. package/external/blessed/lib/widgets/input.js +8 -8
  370. package/external/blessed/lib/widgets/layout.js +103 -119
  371. package/external/blessed/lib/widgets/line.js +17 -20
  372. package/external/blessed/lib/widgets/list.js +349 -402
  373. package/external/blessed/lib/widgets/listbar.js +265 -306
  374. package/external/blessed/lib/widgets/listtable.js +133 -146
  375. package/external/blessed/lib/widgets/loading.js +31 -31
  376. package/external/blessed/lib/widgets/log.js +41 -40
  377. package/external/blessed/lib/widgets/message.js +64 -86
  378. package/external/blessed/lib/widgets/node.js +175 -207
  379. package/external/blessed/lib/widgets/overlayimage.js +360 -437
  380. package/external/blessed/lib/widgets/progressbar.js +79 -88
  381. package/external/blessed/lib/widgets/prompt.js +54 -61
  382. package/external/blessed/lib/widgets/question.js +48 -61
  383. package/external/blessed/lib/widgets/radiobutton.js +26 -27
  384. package/external/blessed/lib/widgets/radioset.js +8 -8
  385. package/external/blessed/lib/widgets/screen.js +1186 -1375
  386. package/external/blessed/lib/widgets/scrollablebox.js +202 -228
  387. package/external/blessed/lib/widgets/scrollabletext.js +9 -9
  388. package/external/blessed/lib/widgets/table.js +187 -216
  389. package/external/blessed/lib/widgets/terminal.js +258 -298
  390. package/external/blessed/lib/widgets/text.js +9 -9
  391. package/external/blessed/lib/widgets/textarea.js +188 -222
  392. package/external/blessed/lib/widgets/textbox.js +34 -36
  393. package/external/blessed/lib/widgets/video.js +55 -59
  394. package/external/blessed/usr/fonts/ter-u14b.json +1 -1
  395. package/external/blessed/usr/fonts/ter-u14n.json +1 -1
  396. package/external/blessed/vendor/tng.js +1016 -1144
  397. package/external/blessed-contrib/lib/layout/grid.js +345 -377
  398. package/external/blessed-contrib/lib/widget/charts/bar.js +6612 -7139
  399. package/external/blessed-contrib/lib/widget/charts/line.js +16224 -23941
  400. package/external/blessed-contrib/lib/widget/table.js +78 -96
  401. package/package.json +8 -8
  402. package/dist/types/commands/cdxgen/run-cdxgen.d.mts.map +0 -1
@@ -10,376 +10,347 @@
10
10
  * Modules
11
11
  */
12
12
 
13
- const Node = require('./node')
14
- const Box = require('./box')
13
+ var Node = require('./node');
14
+ var Box = require('./box');
15
15
 
16
16
  /**
17
17
  * Table
18
18
  */
19
19
 
20
20
  function Table(options) {
21
- const self = this
21
+ var self = this;
22
22
 
23
23
  if (!(this instanceof Node)) {
24
- return new Table(options)
24
+ return new Table(options);
25
25
  }
26
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'
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
34
 
35
35
  // Regular tables do not get custom height (this would
36
36
  // require extra padding). Maybe add in the future.
37
- delete options.height
37
+ delete options.height;
38
38
 
39
- Box.call(this, options)
39
+ Box.call(this, options);
40
40
 
41
- this.pad = options.pad != null ? options.pad : 2
41
+ this.pad = options.pad != null
42
+ ? options.pad
43
+ : 2;
42
44
 
43
- this.setData(options.rows || options.data)
45
+ this.setData(options.rows || options.data);
44
46
 
45
- this.on('attach', function () {
46
- self.setContent('')
47
- self.setData(self.rows)
48
- })
47
+ this.on('attach', function() {
48
+ self.setContent('');
49
+ self.setData(self.rows);
50
+ });
49
51
 
50
- this.on('resize', function () {
51
- self.setContent('')
52
- self.setData(self.rows)
53
- self.screen.render()
54
- })
52
+ this.on('resize', function() {
53
+ self.setContent('');
54
+ self.setData(self.rows);
55
+ self.screen.render();
56
+ });
55
57
  }
56
58
 
57
- Object.setPrototypeOf(Table.prototype, Box.prototype)
59
+ Object.setPrototypeOf(Table.prototype, Box.prototype);
58
60
 
59
- Table.prototype.type = 'table'
61
+ Table.prototype.type = 'table';
60
62
 
61
- Table.prototype._calculateMaxes = function () {
62
- const self = this
63
- let maxes = []
63
+ Table.prototype._calculateMaxes = function() {
64
+ var self = this;
65
+ var maxes = [];
64
66
 
65
- if (this.detached) {
66
- return
67
- }
67
+ if (this.detached) return;
68
68
 
69
- this.rows = this.rows || []
69
+ this.rows = this.rows || [];
70
70
 
71
- this.rows.forEach(function (row) {
72
- row.forEach(function (cell, i) {
73
- const clen = self.strWidth(cell)
71
+ this.rows.forEach(function(row) {
72
+ row.forEach(function(cell, i) {
73
+ var clen = self.strWidth(cell);
74
74
  if (!maxes[i] || maxes[i] < clen) {
75
- maxes[i] = clen
75
+ maxes[i] = clen;
76
76
  }
77
- })
78
- })
77
+ });
78
+ });
79
79
 
80
- let total = maxes.reduce(function (total, max) {
81
- return total + max
82
- }, 0)
83
- total += maxes.length + 1
80
+ var total = maxes.reduce(function(total, max) {
81
+ return total + max;
82
+ }, 0);
83
+ total += maxes.length + 1;
84
84
 
85
85
  // XXX There might be an issue with resizing where on the first resize event
86
86
  // width appears to be less than total if it's a percentage or left/right
87
87
  // combination.
88
88
  if (this.width < total) {
89
- delete this.position.width
89
+ delete this.position.width;
90
90
  }
91
91
 
92
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) {
93
+ var missing = this.width - total;
94
+ var w = missing / maxes.length | 0;
95
+ var wr = missing % maxes.length;
96
+ maxes = maxes.map(function(max, i) {
97
97
  if (i === maxes.length - 1) {
98
- return max + w + wr
98
+ return max + w + wr;
99
99
  }
100
- return max + w
101
- })
100
+ return max + w;
101
+ });
102
102
  } else {
103
- maxes = maxes.map(function (max) {
104
- return max + self.pad
105
- })
103
+ maxes = maxes.map(function(max) {
104
+ return max + self.pad;
105
+ });
106
106
  }
107
107
 
108
- return (this._maxes = maxes)
109
- }
108
+ return this._maxes = maxes;
109
+ };
110
110
 
111
- Table.prototype.setRows = Table.prototype.setData = function (rows) {
112
- let self = this,
113
- text = '',
114
- align = this.align
111
+ Table.prototype.setRows =
112
+ Table.prototype.setData = function(rows) {
113
+ var self = this
114
+ , text = ''
115
+ , align = this.align;
115
116
 
116
- this.rows = rows || []
117
+ this.rows = rows || [];
117
118
 
118
- this._calculateMaxes()
119
+ this._calculateMaxes();
119
120
 
120
- if (!this._maxes) {
121
- return
122
- }
121
+ if (!this._maxes) return;
123
122
 
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)
123
+ this.rows.forEach(function(row, i) {
124
+ var isFooter = i === self.rows.length - 1;
125
+ row.forEach(function(cell, i) {
126
+ var width = self._maxes[i];
127
+ var clen = self.strWidth(cell);
129
128
 
130
129
  if (i !== 0) {
131
- text += ' '
130
+ text += ' ';
132
131
  }
133
132
 
134
133
  while (clen < width) {
135
134
  if (align === 'center') {
136
- cell = ' ' + cell + ' '
137
- clen += 2
135
+ cell = ' ' + cell + ' ';
136
+ clen += 2;
138
137
  } else if (align === 'left') {
139
- cell = cell + ' '
140
- clen += 1
138
+ cell = cell + ' ';
139
+ clen += 1;
141
140
  } else if (align === 'right') {
142
- cell = ' ' + cell
143
- clen += 1
141
+ cell = ' ' + cell;
142
+ clen += 1;
144
143
  }
145
144
  }
146
145
 
147
146
  if (clen > width) {
148
147
  if (align === 'center') {
149
- cell = cell.substring(1)
150
- clen--
148
+ cell = cell.substring(1);
149
+ clen--;
151
150
  } else if (align === 'left') {
152
- cell = cell.slice(0, -1)
153
- clen--
151
+ cell = cell.slice(0, -1);
152
+ clen--;
154
153
  } else if (align === 'right') {
155
- cell = cell.substring(1)
156
- clen--
154
+ cell = cell.substring(1);
155
+ clen--;
157
156
  }
158
157
  }
159
158
 
160
- text += cell
161
- })
159
+ text += cell;
160
+ });
162
161
  if (!isFooter) {
163
- text += '\n\n'
162
+ text += '\n\n';
164
163
  }
165
- })
164
+ });
166
165
 
167
- delete this.align
168
- this.setContent(text)
169
- this.align = align
170
- }
166
+ delete this.align;
167
+ this.setContent(text);
168
+ this.align = align;
169
+ };
171
170
 
172
- Table.prototype.render = function () {
173
- const self = this
171
+ Table.prototype.render = function() {
172
+ var self = this;
174
173
 
175
- const coords = this._render()
176
- if (!coords) {
177
- return
178
- }
174
+ var coords = this._render();
175
+ if (!coords) return;
179
176
 
180
- this._calculateMaxes()
177
+ this._calculateMaxes();
181
178
 
182
- if (!this._maxes) {
183
- return coords
184
- }
179
+ if (!this._maxes) return coords;
185
180
 
186
- let lines = this.screen.lines,
187
- xi = coords.xi,
188
- yi = coords.yi,
189
- rx,
190
- ry,
191
- i
181
+ var lines = this.screen.lines
182
+ , xi = coords.xi
183
+ , yi = coords.yi
184
+ , rx
185
+ , ry
186
+ , i;
192
187
 
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)
188
+ var dattr = this.sattr(this.style)
189
+ , hattr = this.sattr(this.style.header)
190
+ , cattr = this.sattr(this.style.cell)
191
+ , battr = this.sattr(this.style.border);
197
192
 
198
- const width = coords.xl - coords.xi - this.iright,
199
- height = coords.yl - coords.yi - this.ibottom
193
+ var width = coords.xl - coords.xi - this.iright
194
+ , height = coords.yl - coords.yi - this.ibottom;
200
195
 
201
196
  // 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
- }
197
+ for (var y = this.itop; y < height; y++) {
198
+ if (!lines[yi + y]) break;
199
+ for (var x = this.ileft; x < width; x++) {
200
+ if (!lines[yi + y][xi + x]) break;
210
201
  // 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
- }
202
+ if (lines[yi + y][xi + x][0] !== dattr) continue;
214
203
  if (y === this.itop) {
215
- lines[yi + y][xi + x][0] = hattr
204
+ lines[yi + y][xi + x][0] = hattr;
216
205
  } else {
217
- lines[yi + y][xi + x][0] = cattr
206
+ lines[yi + y][xi + x][0] = cattr;
218
207
  }
219
- lines[yi + y].dirty = true
208
+ lines[yi + y].dirty = true;
220
209
  }
221
210
  }
222
211
 
223
- if (!this.border || this.options.noCellBorders) {
224
- return coords
225
- }
212
+ if (!this.border || this.options.noCellBorders) return coords;
226
213
 
227
214
  // Draw border with correct angles.
228
- ry = 0
215
+ ry = 0;
229
216
  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
217
+ if (!lines[yi + ry]) break;
218
+ rx = 0;
219
+ self._maxes.forEach(function(max, i) {
220
+ rx += max;
236
221
  if (i === 0) {
237
- if (!lines[yi + ry][xi + 0]) {
238
- return
239
- }
222
+ if (!lines[yi + ry][xi + 0]) return;
240
223
  // left side
241
224
  if (ry === 0) {
242
225
  // top
243
- lines[yi + ry][xi + 0][0] = battr
226
+ lines[yi + ry][xi + 0][0] = battr;
244
227
  // lines[yi + ry][xi + 0][1] = '\u250c'; // '┌'
245
228
  } else if (ry / 2 === self.rows.length) {
246
229
  // bottom
247
- lines[yi + ry][xi + 0][0] = battr
230
+ lines[yi + ry][xi + 0][0] = battr;
248
231
  // lines[yi + ry][xi + 0][1] = '\u2514'; // '└'
249
232
  } else {
250
233
  // middle
251
- lines[yi + ry][xi + 0][0] = battr
252
- lines[yi + ry][xi + 0][1] = '\u251c' // '├'
234
+ lines[yi + ry][xi + 0][0] = battr;
235
+ lines[yi + ry][xi + 0][1] = '\u251c'; // '├'
253
236
  // XXX If we alter iwidth and ileft for no borders - nothing should be written here
254
237
  if (!self.border.left) {
255
- lines[yi + ry][xi + 0][1] = '\u2500' // '─'
238
+ lines[yi + ry][xi + 0][1] = '\u2500'; // '─'
256
239
  }
257
240
  }
258
- lines[yi + ry].dirty = true
241
+ lines[yi + ry].dirty = true;
259
242
  } else if (i === self._maxes.length - 1) {
260
- if (!lines[yi + ry][xi + rx + 1]) {
261
- return
262
- }
243
+ if (!lines[yi + ry][xi + rx + 1]) return;
263
244
  // right side
264
245
  if (ry === 0) {
265
246
  // top
266
- rx++
267
- lines[yi + ry][xi + rx][0] = battr
247
+ rx++;
248
+ lines[yi + ry][xi + rx][0] = battr;
268
249
  // lines[yi + ry][xi + rx][1] = '\u2510'; // '┐'
269
250
  } else if (ry / 2 === self.rows.length) {
270
251
  // bottom
271
- rx++
272
- lines[yi + ry][xi + rx][0] = battr
252
+ rx++;
253
+ lines[yi + ry][xi + rx][0] = battr;
273
254
  // lines[yi + ry][xi + rx][1] = '\u2518'; // '┘'
274
255
  } else {
275
256
  // middle
276
- rx++
277
- lines[yi + ry][xi + rx][0] = battr
278
- lines[yi + ry][xi + rx][1] = '\u2524' // '┤'
257
+ rx++;
258
+ lines[yi + ry][xi + rx][0] = battr;
259
+ lines[yi + ry][xi + rx][1] = '\u2524'; // '┤'
279
260
  // XXX If we alter iwidth and iright for no borders - nothing should be written here
280
261
  if (!self.border.right) {
281
- lines[yi + ry][xi + rx][1] = '\u2500' // '─'
262
+ lines[yi + ry][xi + rx][1] = '\u2500'; // '─'
282
263
  }
283
264
  }
284
- lines[yi + ry].dirty = true
285
- return
286
- }
287
- if (!lines[yi + ry][xi + rx + 1]) {
288
- return
265
+ lines[yi + ry].dirty = true;
266
+ return;
289
267
  }
268
+ if (!lines[yi + ry][xi + rx + 1]) return;
290
269
  // center
291
270
  if (ry === 0) {
292
271
  // top
293
- rx++
294
- lines[yi + ry][xi + rx][0] = battr
295
- lines[yi + ry][xi + rx][1] = '\u252c' // '┬'
272
+ rx++;
273
+ lines[yi + ry][xi + rx][0] = battr;
274
+ lines[yi + ry][xi + rx][1] = '\u252c'; // '┬'
296
275
  // XXX If we alter iheight and itop for no borders - nothing should be written here
297
276
  if (!self.border.top) {
298
- lines[yi + ry][xi + rx][1] = '\u2502' // '│'
277
+ lines[yi + ry][xi + rx][1] = '\u2502'; // '│'
299
278
  }
300
279
  } else if (ry / 2 === self.rows.length) {
301
280
  // bottom
302
- rx++
303
- lines[yi + ry][xi + rx][0] = battr
304
- lines[yi + ry][xi + rx][1] = '\u2534' // '┴'
281
+ rx++;
282
+ lines[yi + ry][xi + rx][0] = battr;
283
+ lines[yi + ry][xi + rx][1] = '\u2534'; // '┴'
305
284
  // XXX If we alter iheight and ibottom for no borders - nothing should be written here
306
285
  if (!self.border.bottom) {
307
- lines[yi + ry][xi + rx][1] = '\u2502' // '│'
286
+ lines[yi + ry][xi + rx][1] = '\u2502'; // '│'
308
287
  }
309
288
  } else {
310
289
  // middle
311
290
  if (self.options.fillCellBorders) {
312
- const lbg = (ry <= 2 ? hattr : cattr) & 0x1ff
313
- rx++
314
- lines[yi + ry][xi + rx][0] = (battr & ~0x1ff) | lbg
291
+ var lbg = (ry <= 2 ? hattr : cattr) & 0x1ff;
292
+ rx++;
293
+ lines[yi + ry][xi + rx][0] = (battr & ~0x1ff) | lbg;
315
294
  } else {
316
- rx++
317
- lines[yi + ry][xi + rx][0] = battr
295
+ rx++;
296
+ lines[yi + ry][xi + rx][0] = battr;
318
297
  }
319
- lines[yi + ry][xi + rx][1] = '\u253c' // '┼'
298
+ lines[yi + ry][xi + rx][1] = '\u253c'; // '┼'
320
299
  // rx++;
321
300
  }
322
- lines[yi + ry].dirty = true
323
- })
324
- ry += 2
301
+ lines[yi + ry].dirty = true;
302
+ });
303
+ ry += 2;
325
304
  }
326
305
 
327
306
  // Draw internal borders.
328
307
  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
- }
308
+ if (!lines[yi + ry]) break;
309
+ rx = 0;
310
+ self._maxes.slice(0, -1).forEach(function(max) {
311
+ rx += max;
312
+ if (!lines[yi + ry][xi + rx + 1]) return;
338
313
  if (ry % 2 !== 0) {
339
314
  if (self.options.fillCellBorders) {
340
- const lbg = (ry <= 2 ? hattr : cattr) & 0x1ff
341
- rx++
342
- lines[yi + ry][xi + rx][0] = (battr & ~0x1ff) | lbg
315
+ var lbg = (ry <= 2 ? hattr : cattr) & 0x1ff;
316
+ rx++;
317
+ lines[yi + ry][xi + rx][0] = (battr & ~0x1ff) | lbg;
343
318
  } else {
344
- rx++
345
- lines[yi + ry][xi + rx][0] = battr
319
+ rx++;
320
+ lines[yi + ry][xi + rx][0] = battr;
346
321
  }
347
- lines[yi + ry][xi + rx][1] = '\u2502' // '│'
348
- lines[yi + ry].dirty = true
322
+ lines[yi + ry][xi + rx][1] = '\u2502'; // '│'
323
+ lines[yi + ry].dirty = true;
349
324
  } else {
350
- rx++
325
+ rx++;
351
326
  }
352
- })
353
- rx = 1
354
- self._maxes.forEach(function (max) {
327
+ });
328
+ rx = 1;
329
+ self._maxes.forEach(function(max) {
355
330
  while (max--) {
356
331
  if (ry % 2 === 0) {
357
- if (!lines[yi + ry]) {
358
- break
359
- }
360
- if (!lines[yi + ry][xi + rx + 1]) {
361
- break
362
- }
332
+ if (!lines[yi + ry]) break;
333
+ if (!lines[yi + ry][xi + rx + 1]) break;
363
334
  if (self.options.fillCellBorders) {
364
- const lbg = (ry <= 2 ? hattr : cattr) & 0x1ff
365
- lines[yi + ry][xi + rx][0] = (battr & ~0x1ff) | lbg
335
+ var lbg = (ry <= 2 ? hattr : cattr) & 0x1ff;
336
+ lines[yi + ry][xi + rx][0] = (battr & ~0x1ff) | lbg;
366
337
  } else {
367
- lines[yi + ry][xi + rx][0] = battr
338
+ lines[yi + ry][xi + rx][0] = battr;
368
339
  }
369
- lines[yi + ry][xi + rx][1] = '\u2500' // '─'
370
- lines[yi + ry].dirty = true
340
+ lines[yi + ry][xi + rx][1] = '\u2500'; // '─'
341
+ lines[yi + ry].dirty = true;
371
342
  }
372
- rx++
343
+ rx++;
373
344
  }
374
- rx++
375
- })
345
+ rx++;
346
+ });
376
347
  }
377
348
 
378
- return coords
379
- }
349
+ return coords;
350
+ };
380
351
 
381
352
  /**
382
353
  * Expose
383
354
  */
384
355
 
385
- module.exports = Table
356
+ module.exports = Table;