@socketsecurity/cli-with-sentry 1.1.9 → 1.1.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 (258) hide show
  1. package/CHANGELOG.md +15 -0
  2. package/bin/cli.js +2 -1
  3. package/bin/npm-cli.js +2 -1
  4. package/bin/npx-cli.js +2 -1
  5. package/bin/pnpm-cli.js +29 -0
  6. package/bin/yarn-cli.js +29 -0
  7. package/dist/cli.js +760 -560
  8. package/dist/cli.js.map +1 -1
  9. package/dist/constants.js +31 -9
  10. package/dist/constants.js.map +1 -1
  11. package/dist/flags.js +16 -17
  12. package/dist/flags.js.map +1 -1
  13. package/dist/instrument-with-sentry.js +3 -3
  14. package/dist/instrument-with-sentry.js.map +1 -1
  15. package/dist/npm-cli.js +26 -0
  16. package/dist/npm-cli.js.map +1 -0
  17. package/dist/npx-cli.js +26 -0
  18. package/dist/npx-cli.js.map +1 -0
  19. package/dist/pnpm-cli.js +26 -0
  20. package/dist/pnpm-cli.js.map +1 -0
  21. package/dist/shadow-npm-inject.js +4 -4
  22. package/dist/shadow-npm-inject.js.map +1 -1
  23. package/dist/shadow-pnpm-bin.js +235 -0
  24. package/dist/shadow-pnpm-bin.js.map +1 -0
  25. package/dist/shadow-yarn-bin.js +200 -0
  26. package/dist/shadow-yarn-bin.js.map +1 -0
  27. package/dist/socket-completion.bash +0 -0
  28. package/dist/tsconfig.dts.tsbuildinfo +1 -1
  29. package/dist/types/commands/analytics/cmd-analytics.d.mts +2 -3
  30. package/dist/types/commands/analytics/cmd-analytics.d.mts.map +1 -1
  31. package/dist/types/commands/audit-log/cmd-audit-log.d.mts +2 -3
  32. package/dist/types/commands/audit-log/cmd-audit-log.d.mts.map +1 -1
  33. package/dist/types/commands/ci/cmd-ci.d.mts +2 -3
  34. package/dist/types/commands/ci/cmd-ci.d.mts.map +1 -1
  35. package/dist/types/commands/config/cmd-config-auto.d.mts +2 -3
  36. package/dist/types/commands/config/cmd-config-auto.d.mts.map +1 -1
  37. package/dist/types/commands/config/cmd-config-get.d.mts +2 -3
  38. package/dist/types/commands/config/cmd-config-get.d.mts.map +1 -1
  39. package/dist/types/commands/config/cmd-config-list.d.mts +2 -3
  40. package/dist/types/commands/config/cmd-config-list.d.mts.map +1 -1
  41. package/dist/types/commands/config/cmd-config-set.d.mts +2 -3
  42. package/dist/types/commands/config/cmd-config-set.d.mts.map +1 -1
  43. package/dist/types/commands/config/cmd-config-unset.d.mts +2 -3
  44. package/dist/types/commands/config/cmd-config-unset.d.mts.map +1 -1
  45. package/dist/types/commands/fix/cmd-fix.d.mts +2 -3
  46. package/dist/types/commands/fix/cmd-fix.d.mts.map +1 -1
  47. package/dist/types/commands/fix/env-helpers.d.mts +1 -1
  48. package/dist/types/commands/fix/env-helpers.d.mts.map +1 -1
  49. package/dist/types/commands/fix/git.d.mts +1 -1
  50. package/dist/types/commands/fix/git.d.mts.map +1 -1
  51. package/dist/types/commands/fix/pull-request.d.mts +1 -1
  52. package/dist/types/commands/fix/pull-request.d.mts.map +1 -1
  53. package/dist/types/commands/install/cmd-install-completion.d.mts +2 -3
  54. package/dist/types/commands/install/cmd-install-completion.d.mts.map +1 -1
  55. package/dist/types/commands/json/cmd-json.d.mts +2 -3
  56. package/dist/types/commands/json/cmd-json.d.mts.map +1 -1
  57. package/dist/types/commands/login/cmd-login.d.mts +2 -3
  58. package/dist/types/commands/login/cmd-login.d.mts.map +1 -1
  59. package/dist/types/commands/logout/cmd-logout.d.mts +2 -3
  60. package/dist/types/commands/logout/cmd-logout.d.mts.map +1 -1
  61. package/dist/types/commands/manifest/cmd-manifest-auto.d.mts +2 -3
  62. package/dist/types/commands/manifest/cmd-manifest-auto.d.mts.map +1 -1
  63. package/dist/types/commands/manifest/cmd-manifest-cdxgen.d.mts +2 -3
  64. package/dist/types/commands/manifest/cmd-manifest-cdxgen.d.mts.map +1 -1
  65. package/dist/types/commands/manifest/cmd-manifest-conda.d.mts +2 -3
  66. package/dist/types/commands/manifest/cmd-manifest-conda.d.mts.map +1 -1
  67. package/dist/types/commands/manifest/cmd-manifest-gradle.d.mts +2 -3
  68. package/dist/types/commands/manifest/cmd-manifest-gradle.d.mts.map +1 -1
  69. package/dist/types/commands/manifest/cmd-manifest-kotlin.d.mts +2 -3
  70. package/dist/types/commands/manifest/cmd-manifest-kotlin.d.mts.map +1 -1
  71. package/dist/types/commands/manifest/cmd-manifest-scala.d.mts +2 -3
  72. package/dist/types/commands/manifest/cmd-manifest-scala.d.mts.map +1 -1
  73. package/dist/types/commands/manifest/cmd-manifest-setup.d.mts +2 -3
  74. package/dist/types/commands/manifest/cmd-manifest-setup.d.mts.map +1 -1
  75. package/dist/types/commands/manifest/cmd-manifest.d.mts +2 -3
  76. package/dist/types/commands/manifest/cmd-manifest.d.mts.map +1 -1
  77. package/dist/types/commands/manifest/detect-manifest-actions.d.mts.map +1 -1
  78. package/dist/types/commands/manifest/generate_auto_manifest.d.mts.map +1 -1
  79. package/dist/types/commands/manifest/output-requirements.d.mts.map +1 -1
  80. package/dist/types/commands/manifest/run-cdxgen.d.mts.map +1 -1
  81. package/dist/types/commands/manifest/setup-manifest-config.d.mts.map +1 -1
  82. package/dist/types/commands/npm/cmd-npm.d.mts +2 -3
  83. package/dist/types/commands/npm/cmd-npm.d.mts.map +1 -1
  84. package/dist/types/commands/npx/cmd-npx.d.mts +2 -3
  85. package/dist/types/commands/npx/cmd-npx.d.mts.map +1 -1
  86. package/dist/types/commands/oops/cmd-oops.d.mts +2 -3
  87. package/dist/types/commands/oops/cmd-oops.d.mts.map +1 -1
  88. package/dist/types/commands/optimize/cmd-optimize.d.mts +2 -3
  89. package/dist/types/commands/optimize/cmd-optimize.d.mts.map +1 -1
  90. package/dist/types/commands/organization/cmd-organization-dependencies.d.mts +2 -3
  91. package/dist/types/commands/organization/cmd-organization-dependencies.d.mts.map +1 -1
  92. package/dist/types/commands/organization/cmd-organization-list.d.mts +2 -3
  93. package/dist/types/commands/organization/cmd-organization-list.d.mts.map +1 -1
  94. package/dist/types/commands/organization/cmd-organization-policy-license.d.mts +2 -3
  95. package/dist/types/commands/organization/cmd-organization-policy-license.d.mts.map +1 -1
  96. package/dist/types/commands/organization/cmd-organization-policy-security.d.mts +2 -3
  97. package/dist/types/commands/organization/cmd-organization-policy-security.d.mts.map +1 -1
  98. package/dist/types/commands/organization/cmd-organization-quota.d.mts +2 -3
  99. package/dist/types/commands/organization/cmd-organization-quota.d.mts.map +1 -1
  100. package/dist/types/commands/package/cmd-package-score.d.mts +2 -3
  101. package/dist/types/commands/package/cmd-package-score.d.mts.map +1 -1
  102. package/dist/types/commands/package/cmd-package-shallow.d.mts +2 -3
  103. package/dist/types/commands/package/cmd-package-shallow.d.mts.map +1 -1
  104. package/dist/types/commands/patch/cmd-patch.d.mts +2 -3
  105. package/dist/types/commands/patch/cmd-patch.d.mts.map +1 -1
  106. package/dist/types/commands/pnpm/cmd-pnpm.d.mts +10 -0
  107. package/dist/types/commands/pnpm/cmd-pnpm.d.mts.map +1 -0
  108. package/dist/types/commands/raw-npm/cmd-raw-npm.d.mts +2 -3
  109. package/dist/types/commands/raw-npm/cmd-raw-npm.d.mts.map +1 -1
  110. package/dist/types/commands/raw-npx/cmd-raw-npx.d.mts +2 -3
  111. package/dist/types/commands/raw-npx/cmd-raw-npx.d.mts.map +1 -1
  112. package/dist/types/commands/repository/cmd-repository-create.d.mts +2 -3
  113. package/dist/types/commands/repository/cmd-repository-create.d.mts.map +1 -1
  114. package/dist/types/commands/repository/cmd-repository-del.d.mts +2 -3
  115. package/dist/types/commands/repository/cmd-repository-del.d.mts.map +1 -1
  116. package/dist/types/commands/repository/cmd-repository-list.d.mts +2 -3
  117. package/dist/types/commands/repository/cmd-repository-list.d.mts.map +1 -1
  118. package/dist/types/commands/repository/cmd-repository-update.d.mts +2 -3
  119. package/dist/types/commands/repository/cmd-repository-update.d.mts.map +1 -1
  120. package/dist/types/commands/repository/cmd-repository-view.d.mts +2 -3
  121. package/dist/types/commands/repository/cmd-repository-view.d.mts.map +1 -1
  122. package/dist/types/commands/repository/handle-list-repos.d.mts +2 -1
  123. package/dist/types/commands/repository/handle-list-repos.d.mts.map +1 -1
  124. package/dist/types/commands/repository/output-list-repos.d.mts +2 -1
  125. package/dist/types/commands/repository/output-list-repos.d.mts.map +1 -1
  126. package/dist/types/commands/repository/types.d.mts +2 -0
  127. package/dist/types/commands/repository/types.d.mts.map +1 -0
  128. package/dist/types/commands/scan/cmd-scan-create.d.mts +2 -3
  129. package/dist/types/commands/scan/cmd-scan-create.d.mts.map +1 -1
  130. package/dist/types/commands/scan/cmd-scan-del.d.mts +2 -3
  131. package/dist/types/commands/scan/cmd-scan-del.d.mts.map +1 -1
  132. package/dist/types/commands/scan/cmd-scan-diff.d.mts +2 -3
  133. package/dist/types/commands/scan/cmd-scan-diff.d.mts.map +1 -1
  134. package/dist/types/commands/scan/cmd-scan-github.d.mts +2 -3
  135. package/dist/types/commands/scan/cmd-scan-github.d.mts.map +1 -1
  136. package/dist/types/commands/scan/cmd-scan-list.d.mts.map +1 -1
  137. package/dist/types/commands/scan/cmd-scan-metadata.d.mts.map +1 -1
  138. package/dist/types/commands/scan/cmd-scan-reach.d.mts +2 -3
  139. package/dist/types/commands/scan/cmd-scan-reach.d.mts.map +1 -1
  140. package/dist/types/commands/scan/cmd-scan-report.d.mts.map +1 -1
  141. package/dist/types/commands/scan/cmd-scan-setup.d.mts +2 -3
  142. package/dist/types/commands/scan/cmd-scan-setup.d.mts.map +1 -1
  143. package/dist/types/commands/scan/cmd-scan-view.d.mts.map +1 -1
  144. package/dist/types/commands/threat-feed/cmd-threat-feed.d.mts +2 -3
  145. package/dist/types/commands/threat-feed/cmd-threat-feed.d.mts.map +1 -1
  146. package/dist/types/commands/uninstall/cmd-uninstall-completion.d.mts +2 -3
  147. package/dist/types/commands/uninstall/cmd-uninstall-completion.d.mts.map +1 -1
  148. package/dist/types/commands/wrapper/cmd-wrapper.d.mts +2 -3
  149. package/dist/types/commands/wrapper/cmd-wrapper.d.mts.map +1 -1
  150. package/dist/types/commands/yarn/cmd-yarn.d.mts +10 -0
  151. package/dist/types/commands/yarn/cmd-yarn.d.mts.map +1 -0
  152. package/dist/types/commands.d.mts +31 -63
  153. package/dist/types/commands.d.mts.map +1 -1
  154. package/dist/types/constants.d.mts +15 -1
  155. package/dist/types/constants.d.mts.map +1 -1
  156. package/dist/types/flags.d.mts.map +1 -1
  157. package/dist/types/npm-cli.d.mts +3 -0
  158. package/dist/types/npm-cli.d.mts.map +1 -0
  159. package/dist/types/npx-cli.d.mts +3 -0
  160. package/dist/types/npx-cli.d.mts.map +1 -0
  161. package/dist/types/pnpm-cli.d.mts +3 -0
  162. package/dist/types/pnpm-cli.d.mts.map +1 -0
  163. package/dist/types/shadow/pnpm/bin.d.mts +10 -0
  164. package/dist/types/shadow/pnpm/bin.d.mts.map +1 -0
  165. package/dist/types/shadow/pnpm/link.d.mts +2 -0
  166. package/dist/types/shadow/pnpm/link.d.mts.map +1 -0
  167. package/dist/types/shadow/yarn/bin.d.mts +10 -0
  168. package/dist/types/shadow/yarn/bin.d.mts.map +1 -0
  169. package/dist/types/shadow/yarn/link.d.mts +2 -0
  170. package/dist/types/shadow/yarn/link.d.mts.map +1 -0
  171. package/dist/types/utils/alerts-map.d.mts.map +1 -1
  172. package/dist/types/utils/cmd.d.mts +25 -1
  173. package/dist/types/utils/cmd.d.mts.map +1 -1
  174. package/dist/types/utils/coana.d.mts.map +1 -1
  175. package/dist/types/utils/config.d.mts +1 -1
  176. package/dist/types/utils/config.d.mts.map +1 -1
  177. package/dist/types/utils/git.d.mts +4 -4
  178. package/dist/types/utils/git.d.mts.map +1 -1
  179. package/dist/types/utils/github.d.mts.map +1 -1
  180. package/dist/types/utils/lockfile.d.mts +1 -1
  181. package/dist/types/utils/lockfile.d.mts.map +1 -1
  182. package/dist/types/utils/meow-with-subcommands.d.mts +16 -1
  183. package/dist/types/utils/meow-with-subcommands.d.mts.map +1 -1
  184. package/dist/types/utils/npm-config.d.mts +1 -1
  185. package/dist/types/utils/npm-config.d.mts.map +1 -1
  186. package/dist/types/utils/npm-package-arg.d.mts +1 -1
  187. package/dist/types/utils/npm-package-arg.d.mts.map +1 -1
  188. package/dist/types/utils/output-formatting.d.mts.map +1 -1
  189. package/dist/types/utils/package-environment.d.mts.map +1 -1
  190. package/dist/types/utils/pnpm-paths.d.mts +5 -0
  191. package/dist/types/utils/pnpm-paths.d.mts.map +1 -0
  192. package/dist/types/utils/pnpm.d.mts +2 -2
  193. package/dist/types/utils/pnpm.d.mts.map +1 -1
  194. package/dist/types/utils/purl.d.mts +6 -6
  195. package/dist/types/utils/purl.d.mts.map +1 -1
  196. package/dist/types/utils/sdk.d.mts.map +1 -1
  197. package/dist/types/utils/semver.d.mts +2 -2
  198. package/dist/types/utils/semver.d.mts.map +1 -1
  199. package/dist/types/utils/socket-json.d.mts +3 -0
  200. package/dist/types/utils/socket-json.d.mts.map +1 -1
  201. package/dist/types/utils/strings.d.mts +2 -0
  202. package/dist/types/utils/strings.d.mts.map +1 -0
  203. package/dist/types/utils/yarn-paths.d.mts +5 -0
  204. package/dist/types/utils/yarn-paths.d.mts.map +1 -0
  205. package/dist/types/utils/yarn-version.d.mts +2 -0
  206. package/dist/types/utils/yarn-version.d.mts.map +1 -0
  207. package/dist/types/yarn-cli.d.mts +3 -0
  208. package/dist/types/yarn-cli.d.mts.map +1 -0
  209. package/dist/utils.js +404 -104
  210. package/dist/utils.js.map +1 -1
  211. package/dist/vendor.js +58633 -64690
  212. package/dist/yarn-cli.js +26 -0
  213. package/dist/yarn-cli.js.map +1 -0
  214. package/external/blessed/lib/tput.js +13 -13
  215. package/external/blessed/lib/widgets/ansiimage.js +1 -1
  216. package/external/blessed/lib/widgets/bigtext.js +1 -1
  217. package/external/blessed/lib/widgets/box.js +1 -1
  218. package/external/blessed/lib/widgets/button.js +1 -1
  219. package/external/blessed/lib/widgets/checkbox.js +1 -1
  220. package/external/blessed/lib/widgets/element.js +1 -1
  221. package/external/blessed/lib/widgets/filemanager.js +1 -1
  222. package/external/blessed/lib/widgets/form.js +1 -1
  223. package/external/blessed/lib/widgets/image.js +1 -1
  224. package/external/blessed/lib/widgets/input.js +1 -1
  225. package/external/blessed/lib/widgets/layout.js +1 -1
  226. package/external/blessed/lib/widgets/line.js +1 -1
  227. package/external/blessed/lib/widgets/list.js +1 -1
  228. package/external/blessed/lib/widgets/listbar.js +1 -1
  229. package/external/blessed/lib/widgets/listtable.js +1 -1
  230. package/external/blessed/lib/widgets/loading.js +1 -1
  231. package/external/blessed/lib/widgets/log.js +1 -1
  232. package/external/blessed/lib/widgets/message.js +1 -1
  233. package/external/blessed/lib/widgets/node.js +3 -2
  234. package/external/blessed/lib/widgets/overlayimage.js +1 -1
  235. package/external/blessed/lib/widgets/progressbar.js +1 -1
  236. package/external/blessed/lib/widgets/prompt.js +1 -1
  237. package/external/blessed/lib/widgets/question.js +1 -1
  238. package/external/blessed/lib/widgets/radiobutton.js +1 -1
  239. package/external/blessed/lib/widgets/radioset.js +1 -1
  240. package/external/blessed/lib/widgets/screen.js +8 -6
  241. package/external/blessed/lib/widgets/scrollablebox.js +1 -1
  242. package/external/blessed/lib/widgets/scrollabletext.js +1 -1
  243. package/external/blessed/lib/widgets/table.js +1 -1
  244. package/external/blessed/lib/widgets/terminal.js +1 -1
  245. package/external/blessed/lib/widgets/text.js +1 -1
  246. package/external/blessed/lib/widgets/textarea.js +1 -1
  247. package/external/blessed/lib/widgets/textbox.js +1 -1
  248. package/external/blessed/lib/widgets/video.js +1 -1
  249. package/external/blessed/vendor/tng.js +11 -4
  250. package/external/blessed-contrib/lib/widget/charts/bar.js +4 -4
  251. package/external/blessed-contrib/lib/widget/charts/line.js +4 -4
  252. package/logo-dark.png +0 -0
  253. package/logo-light.png +0 -0
  254. package/package.json +67 -94
  255. package/shadow-bin/npm +1 -1
  256. package/shadow-bin/npx +1 -1
  257. package/shadow-bin/pnpm +27 -0
  258. package/shadow-bin/yarn +27 -0
@@ -0,0 +1,26 @@
1
+ #!/usr/bin/env node
2
+ 'use strict';
3
+
4
+ var shadowYarnBin = require('./shadow-yarn-bin.js');
5
+
6
+ void (async () => {
7
+ process.exitCode = 1;
8
+ const {
9
+ spawnPromise
10
+ } = await shadowYarnBin(process.argv.slice(2), {
11
+ stdio: 'inherit'
12
+ });
13
+
14
+ // See https://nodejs.org/api/child_process.html#event-exit.
15
+ spawnPromise.process.on('exit', (code, signalName) => {
16
+ if (signalName) {
17
+ process.kill(process.pid, signalName);
18
+ } else if (typeof code === 'number') {
19
+ // eslint-disable-next-line n/no-process-exit
20
+ process.exit(code);
21
+ }
22
+ });
23
+ await spawnPromise;
24
+ })();
25
+ //# debugId=822e2131-e205-431a-9492-44b21b68841d
26
+ //# sourceMappingURL=yarn-cli.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"yarn-cli.js","sources":["../src/yarn-cli.mts"],"sourcesContent":["#!/usr/bin/env node\n\nimport shadowYarnBin from './shadow/yarn/bin.mts'\n\nvoid (async () => {\n process.exitCode = 1\n\n const { spawnPromise } = await shadowYarnBin(process.argv.slice(2), {\n stdio: 'inherit',\n })\n\n // See https://nodejs.org/api/child_process.html#event-exit.\n spawnPromise.process.on('exit', (code, signalName) => {\n if (signalName) {\n process.kill(process.pid, signalName)\n } else if (typeof code === 'number') {\n // eslint-disable-next-line n/no-process-exit\n process.exit(code)\n }\n })\n\n await spawnPromise\n})()\n"],"names":["spawnPromise","stdio","process"],"mappings":";;;;;AAIA;;;AAGUA;AAAa;AACnBC;AACF;;AAEA;;AAEE;;AAEA;AACE;AACAC;AACF;AACF;AAEA;AACF","debugId":"822e2131-e205-431a-9492-44b21b68841d"}
@@ -368,7 +368,7 @@ Tput.prototype.parseTerminfo = function(data, file) {
368
368
  o = 0;
369
369
  for (; i < l; i += 2) {
370
370
  v = Tput.numbers[o++];
371
- if (data[i + 1] === 0xFF && data[i] === 0xFF) {
371
+ if (data[i + 1] === 0o377 && data[i] === 0o377) {
372
372
  info.numbers[v] = -1;
373
373
  } else {
374
374
  info.numbers[v] = (data[i + 1] << 8) | data[i];
@@ -381,7 +381,7 @@ Tput.prototype.parseTerminfo = function(data, file) {
381
381
  o = 0;
382
382
  for (; i < l; i += 2) {
383
383
  v = Tput.strings[o++];
384
- if (data[i + 1] === 0xFF && data[i] === 0xFF) {
384
+ if (data[i + 1] === 0o377 && data[i] === 0o377) {
385
385
  info.strings[v] = -1;
386
386
  } else {
387
387
  info.strings[v] = (data[i + 1] << 8) | data[i];
@@ -535,7 +535,7 @@ Tput.prototype.parseExtended = function(data) {
535
535
  var _numbers = [];
536
536
  l = i + h.numCount * 2;
537
537
  for (; i < l; i += 2) {
538
- if (data[i + 1] === 0xFF && data[i] === 0xFF) {
538
+ if (data[i + 1] === 0o377 && data[i] === 0o377) {
539
539
  _numbers.push(-1);
540
540
  } else {
541
541
  _numbers.push((data[i + 1] << 8) | data[i]);
@@ -546,7 +546,7 @@ Tput.prototype.parseExtended = function(data) {
546
546
  var _strings = [];
547
547
  l = i + h.strCount * 2;
548
548
  for (; i < l; i += 2) {
549
- if (data[i + 1] === 0xFF && data[i] === 0xFF) {
549
+ if (data[i + 1] === 0o377 && data[i] === 0o377) {
550
550
  _strings.push(-1);
551
551
  } else {
552
552
  _strings.push((data[i + 1] << 8) | data[i]);
@@ -845,7 +845,7 @@ Tput.prototype._compile = function(info, key, str) {
845
845
  // '\e' -> ^[
846
846
  // '\n' -> \n
847
847
  // '\r' -> \r
848
- // '\0' -> \x80 (special case)
848
+ // '\0' -> \200 (special case)
849
849
  if (read(/^\\([eEnlrtbfs\^\\,:0]|.)/, true)) {
850
850
  switch (ch) {
851
851
  case 'e':
@@ -886,7 +886,7 @@ Tput.prototype._compile = function(info, key, str) {
886
886
  ch = ':';
887
887
  break;
888
888
  case '0':
889
- ch = '\x80';
889
+ ch = '\200';
890
890
  break;
891
891
  case 'a':
892
892
  ch = '\x07';
@@ -928,7 +928,7 @@ Tput.prototype._compile = function(info, key, str) {
928
928
  echo('sprintf("'+ cap[0].replace(':-', '-') + '", stack.pop())');
929
929
  } else if (cap[3] === 'c') {
930
930
  echo('(v = stack.pop(), isFinite(v) '
931
- + '? String.fromCharCode(v || 0200) : "")');
931
+ + '? String.fromCharCode(v || 0o200) : "")');
932
932
  } else {
933
933
  echo('stack.pop()');
934
934
  }
@@ -1903,7 +1903,7 @@ Tput.prototype._captoinfo = function(cap, s, parameterized) {
1903
1903
  // out += '\\r';
1904
1904
  // i++;
1905
1905
  // break;
1906
- // case '\x80':
1906
+ // case '\200':
1907
1907
  // out += '\\0';
1908
1908
  // i++;
1909
1909
  // break;
@@ -2096,10 +2096,10 @@ Tput.prototype.detectBrokenACS = function(info) {
2096
2096
  && process.env.TERMCAP
2097
2097
  && ~process.env.TERMCAP.indexOf('screen')
2098
2098
  && ~process.env.TERMCAP.indexOf('hhII00')) {
2099
- if (~info.strings.enter_alt_charset_mode.indexOf('\x0E')
2100
- || ~info.strings.enter_alt_charset_mode.indexOf('\x0F')
2101
- || ~info.strings.set_attributes.indexOf('\x0E')
2102
- || ~info.strings.set_attributes.indexOf('\x0F')) {
2099
+ if (~info.strings.enter_alt_charset_mode.indexOf('\016')
2100
+ || ~info.strings.enter_alt_charset_mode.indexOf('\017')
2101
+ || ~info.strings.set_attributes.indexOf('\016')
2102
+ || ~info.strings.set_attributes.indexOf('\017')) {
2103
2103
  return true;
2104
2104
  }
2105
2105
  }
@@ -2278,7 +2278,7 @@ function sprintf(src) {
2278
2278
  break;
2279
2279
  case 'c': // char
2280
2280
  param = isFinite(param)
2281
- ? String.fromCharCode(param || 0x80)
2281
+ ? String.fromCharCode(param || 0o200)
2282
2282
  : '';
2283
2283
  break;
2284
2284
  }
@@ -55,7 +55,7 @@ function ANSIImage(options) {
55
55
  });
56
56
  }
57
57
 
58
- Object.setPrototypeOf(ANSIImage.prototype, Box.prototype);
58
+ ANSIImage.prototype.__proto__ = Box.prototype;
59
59
 
60
60
  ANSIImage.prototype.type = 'ansiimage';
61
61
 
@@ -38,7 +38,7 @@ function BigText(options) {
38
38
  }
39
39
  }
40
40
 
41
- Object.setPrototypeOf(BigText.prototype, Box.prototype);
41
+ BigText.prototype.__proto__ = Box.prototype;
42
42
 
43
43
  BigText.prototype.type = 'bigtext';
44
44
 
@@ -25,7 +25,7 @@ function Box(options) {
25
25
  Element.call(this, options);
26
26
  }
27
27
 
28
- Object.setPrototypeOf(Box.prototype, Element.prototype);
28
+ Box.prototype.__proto__ = Element.prototype;
29
29
 
30
30
  Box.prototype.type = 'box';
31
31
 
@@ -45,7 +45,7 @@ function Button(options) {
45
45
  }
46
46
  }
47
47
 
48
- Object.setPrototypeOf(Button.prototype, Input.prototype);
48
+ Button.prototype.__proto__ = Input.prototype;
49
49
 
50
50
  Button.prototype.type = 'button';
51
51
 
@@ -58,7 +58,7 @@ function Checkbox(options) {
58
58
  });
59
59
  }
60
60
 
61
- Object.setPrototypeOf(Checkbox.prototype, Input.prototype);
61
+ Checkbox.prototype.__proto__ = Input.prototype;
62
62
 
63
63
  Checkbox.prototype.type = 'checkbox';
64
64
 
@@ -223,7 +223,7 @@ function Element(options) {
223
223
  }
224
224
  }
225
225
 
226
- Object.setPrototypeOf(Element.prototype, Node.prototype);
226
+ Element.prototype.__proto__ = Node.prototype;
227
227
 
228
228
  Element.prototype.type = 'element';
229
229
 
@@ -67,7 +67,7 @@ function FileManager(options) {
67
67
  });
68
68
  }
69
69
 
70
- Object.setPrototypeOf(FileManager.prototype, List.prototype);
70
+ FileManager.prototype.__proto__ = List.prototype;
71
71
 
72
72
  FileManager.prototype.type = 'file-manager';
73
73
 
@@ -67,7 +67,7 @@ function Form(options) {
67
67
  }
68
68
  }
69
69
 
70
- Object.setPrototypeOf(Form.prototype, Box.prototype);
70
+ Form.prototype.__proto__ = Box.prototype;
71
71
 
72
72
  Form.prototype.type = 'form';
73
73
 
@@ -52,7 +52,7 @@ function Image(options) {
52
52
  throw new Error('`type` must either be `ansi` or `overlay`.');
53
53
  }
54
54
 
55
- Object.setPrototypeOf(Image.prototype, Box.prototype);
55
+ Image.prototype.__proto__ = Box.prototype;
56
56
 
57
57
  Image.prototype.type = 'image';
58
58
 
@@ -25,7 +25,7 @@ function Input(options) {
25
25
  Box.call(this, options);
26
26
  }
27
27
 
28
- Object.setPrototypeOf(Input.prototype, Box.prototype);
28
+ Input.prototype.__proto__ = Box.prototype;
29
29
 
30
30
  Input.prototype.type = 'input';
31
31
 
@@ -40,7 +40,7 @@ function Layout(options) {
40
40
  }
41
41
  }
42
42
 
43
- Object.setPrototypeOf(Layout.prototype, Element.prototype);
43
+ Layout.prototype.__proto__ = Element.prototype;
44
44
 
45
45
  Layout.prototype.type = 'layout';
46
46
 
@@ -47,7 +47,7 @@ function Line(options) {
47
47
  this.style.border = this.style;
48
48
  }
49
49
 
50
- Object.setPrototypeOf(Line.prototype, Box.prototype);
50
+ Line.prototype.__proto__ = Box.prototype;
51
51
 
52
52
  Line.prototype.type = 'line';
53
53
 
@@ -223,7 +223,7 @@ function List(options) {
223
223
  });
224
224
  }
225
225
 
226
- Object.setPrototypeOf(List.prototype, Box.prototype);
226
+ List.prototype.__proto__ = Box.prototype;
227
227
 
228
228
  List.prototype.type = 'list';
229
229
 
@@ -105,7 +105,7 @@ function Listbar(options) {
105
105
  });
106
106
  }
107
107
 
108
- Object.setPrototypeOf(Listbar.prototype, Box.prototype);
108
+ Listbar.prototype.__proto__ = Box.prototype;
109
109
 
110
110
  Listbar.prototype.type = 'listbar';
111
111
 
@@ -77,7 +77,7 @@ function ListTable(options) {
77
77
  });
78
78
  }
79
79
 
80
- Object.setPrototypeOf(ListTable.prototype, List.prototype);
80
+ ListTable.prototype.__proto__ = List.prototype;
81
81
 
82
82
  ListTable.prototype.type = 'list-table';
83
83
 
@@ -38,7 +38,7 @@ function Loading(options) {
38
38
  });
39
39
  }
40
40
 
41
- Object.setPrototypeOf(Loading.prototype, Box.prototype);
41
+ Loading.prototype.__proto__ = Box.prototype;
42
42
 
43
43
  Loading.prototype.type = 'loading';
44
44
 
@@ -48,7 +48,7 @@ function Log(options) {
48
48
  });
49
49
  }
50
50
 
51
- Object.setPrototypeOf(Log.prototype, ScrollableText.prototype);
51
+ Log.prototype.__proto__ = ScrollableText.prototype;
52
52
 
53
53
  Log.prototype.type = 'log';
54
54
 
@@ -28,7 +28,7 @@ function Message(options) {
28
28
  Box.call(this, options);
29
29
  }
30
30
 
31
- Object.setPrototypeOf(Message.prototype, Box.prototype);
31
+ Message.prototype.__proto__ = Box.prototype;
32
32
 
33
33
  Message.prototype.type = 'message';
34
34
 
@@ -18,6 +18,8 @@ var EventEmitter = require('../events').EventEmitter;
18
18
 
19
19
  function Node(options) {
20
20
  var self = this;
21
+ var Screen = require('./screen');
22
+
21
23
  if (!(this instanceof Node)) {
22
24
  return new Node(options);
23
25
  }
@@ -30,7 +32,6 @@ function Node(options) {
30
32
  this.screen = this.screen || options.screen;
31
33
 
32
34
  if (!this.screen) {
33
- var Screen = require('./screen');
34
35
  if (this.type === 'screen') {
35
36
  this.screen = this;
36
37
  } else if (Screen.total === 1) {
@@ -78,7 +79,7 @@ function Node(options) {
78
79
 
79
80
  Node.uid = 0;
80
81
 
81
- Object.setPrototypeOf(Node.prototype, EventEmitter.prototype);
82
+ Node.prototype.__proto__ = EventEmitter.prototype;
82
83
 
83
84
  Node.prototype.type = 'node';
84
85
 
@@ -118,7 +118,7 @@ function OverlayImage(options) {
118
118
  }
119
119
  }
120
120
 
121
- Object.setPrototypeOf(OverlayImage.prototype, Box.prototype);
121
+ OverlayImage.prototype.__proto__ = Box.prototype;
122
122
 
123
123
  OverlayImage.prototype.type = 'overlayimage';
124
124
 
@@ -94,7 +94,7 @@ function ProgressBar(options) {
94
94
  }
95
95
  }
96
96
 
97
- Object.setPrototypeOf(ProgressBar.prototype, Input.prototype);
97
+ ProgressBar.prototype.__proto__ = Input.prototype;
98
98
 
99
99
  ProgressBar.prototype.type = 'progress-bar';
100
100
 
@@ -69,7 +69,7 @@ function Prompt(options) {
69
69
  });
70
70
  }
71
71
 
72
- Object.setPrototypeOf(Prompt.prototype, Box.prototype);
72
+ Prompt.prototype.__proto__ = Box.prototype;
73
73
 
74
74
  Prompt.prototype.type = 'prompt';
75
75
 
@@ -60,7 +60,7 @@ function Question(options) {
60
60
  });
61
61
  }
62
62
 
63
- Object.setPrototypeOf(Question.prototype, Box.prototype);
63
+ Question.prototype.__proto__ = Box.prototype;
64
64
 
65
65
  Question.prototype.type = 'question';
66
66
 
@@ -44,7 +44,7 @@ function RadioButton(options) {
44
44
  });
45
45
  }
46
46
 
47
- Object.setPrototypeOf(RadioButton.prototype, Checkbox.prototype);
47
+ RadioButton.prototype.__proto__ = Checkbox.prototype;
48
48
 
49
49
  RadioButton.prototype.type = 'radio-button';
50
50
 
@@ -27,7 +27,7 @@ function RadioSet(options) {
27
27
  Box.call(this, options);
28
28
  }
29
29
 
30
- Object.setPrototypeOf(RadioSet.prototype, Box.prototype);
30
+ RadioSet.prototype.__proto__ = Box.prototype;
31
31
 
32
32
  RadioSet.prototype.type = 'radio-set';
33
33
 
@@ -20,7 +20,12 @@ var colors = require('../colors')
20
20
 
21
21
  var nextTick = global.setImmediate || process.nextTick.bind(process);
22
22
 
23
+ var helpers = require('../helpers');
24
+
23
25
  var Node = require('./node');
26
+ var Log = require('./log');
27
+ var Element = require('./element');
28
+ var Box = require('./box');
24
29
 
25
30
  /**
26
31
  * Screen
@@ -28,6 +33,7 @@ var Node = require('./node');
28
33
 
29
34
  function Screen(options) {
30
35
  var self = this;
36
+
31
37
  if (!(this instanceof Node)) {
32
38
  return new Screen(options);
33
39
  }
@@ -237,7 +243,7 @@ Screen.bind = function(screen) {
237
243
  });
238
244
  };
239
245
 
240
- Object.setPrototypeOf(Screen.prototype, Node.prototype);
246
+ Screen.prototype.__proto__ = Node.prototype;
241
247
 
242
248
  Screen.prototype.type = 'screen';
243
249
 
@@ -330,7 +336,6 @@ Screen.prototype.leave = function() {
330
336
  Screen.prototype.postEnter = function() {
331
337
  var self = this;
332
338
  if (this.options.debug) {
333
- var Log = require('./log');
334
339
  this.debugLog = new Log({
335
340
  screen: this,
336
341
  parent: this,
@@ -376,7 +381,6 @@ Screen.prototype.postEnter = function() {
376
381
 
377
382
  if (this.options.warnings) {
378
383
  this.on('warning', function(text) {
379
- var Box = require('./box');
380
384
  var warning = new Box({
381
385
  screen: self,
382
386
  parent: self,
@@ -475,7 +479,6 @@ Screen.prototype._listenMouse = function(el) {
475
479
  if (self.lockKeys) return;
476
480
 
477
481
  if (self._needsClickableSort) {
478
- var helpers = require('../helpers');
479
482
  self.clickable = helpers.hsort(self.clickable);
480
483
  self._needsClickableSort = false;
481
484
  }
@@ -619,7 +622,7 @@ Screen.prototype._initHover = function() {
619
622
  if (this._hoverText) {
620
623
  return;
621
624
  }
622
- var Box = require('./box');
625
+
623
626
  this._hoverText = new Box({
624
627
  screen: this,
625
628
  left: 0,
@@ -2071,7 +2074,6 @@ Screen.prototype._cursorAttr = function(cursor, dattr) {
2071
2074
  attr |= 7 << 9;
2072
2075
  attr |= 8 << 18;
2073
2076
  } else if (typeof cursor.shape === 'object' && cursor.shape) {
2074
- var Element = require('./element');
2075
2077
  cattr = Element.prototype.sattr.call(cursor, cursor.shape);
2076
2078
 
2077
2079
  if (cursor.shape.bold || cursor.shape.underline
@@ -170,7 +170,7 @@ function ScrollableBox(options) {
170
170
  self._recalculateIndex();
171
171
  }
172
172
 
173
- Object.setPrototypeOf(ScrollableBox.prototype, Box.prototype);
173
+ ScrollableBox.prototype.__proto__ = Box.prototype;
174
174
 
175
175
  ScrollableBox.prototype.type = 'scrollable-box';
176
176
 
@@ -26,7 +26,7 @@ function ScrollableText(options) {
26
26
  ScrollableBox.call(this, options);
27
27
  }
28
28
 
29
- Object.setPrototypeOf(ScrollableText.prototype, ScrollableBox.prototype);
29
+ ScrollableText.prototype.__proto__ = ScrollableBox.prototype;
30
30
 
31
31
  ScrollableText.prototype.type = 'scrollable-text';
32
32
 
@@ -56,7 +56,7 @@ function Table(options) {
56
56
  });
57
57
  }
58
58
 
59
- Object.setPrototypeOf(Table.prototype, Box.prototype);
59
+ Table.prototype.__proto__ = Box.prototype;
60
60
 
61
61
  Table.prototype.type = 'table';
62
62
 
@@ -54,7 +54,7 @@ function Terminal(options) {
54
54
  this.bootstrap();
55
55
  }
56
56
 
57
- Object.setPrototypeOf(Terminal.prototype, Box.prototype);
57
+ Terminal.prototype.__proto__ = Box.prototype;
58
58
 
59
59
  Terminal.prototype.type = 'terminal';
60
60
 
@@ -26,7 +26,7 @@ function Text(options) {
26
26
  Element.call(this, options);
27
27
  }
28
28
 
29
- Object.setPrototypeOf(Text.prototype, Element.prototype);
29
+ Text.prototype.__proto__ = Element.prototype;
30
30
 
31
31
  Text.prototype.type = 'text';
32
32
 
@@ -67,7 +67,7 @@ function Textarea(options) {
67
67
  }
68
68
  }
69
69
 
70
- Object.setPrototypeOf(Textarea.prototype, Input.prototype);
70
+ Textarea.prototype.__proto__ = Input.prototype;
71
71
 
72
72
  Textarea.prototype.type = 'textarea';
73
73
 
@@ -32,7 +32,7 @@ function Textbox(options) {
32
32
  this.censor = options.censor;
33
33
  }
34
34
 
35
- Object.setPrototypeOf(Textbox.prototype, Textarea.prototype);
35
+ Textbox.prototype.__proto__ = Textarea.prototype;
36
36
 
37
37
  Textbox.prototype.type = 'textbox';
38
38
 
@@ -107,7 +107,7 @@ function Video(options) {
107
107
  });
108
108
  }
109
109
 
110
- Object.setPrototypeOf(Video.prototype, Box.prototype);
110
+ Video.prototype.__proto__ = Box.prototype;
111
111
 
112
112
  Video.prototype.type = 'video';
113
113
 
@@ -50,7 +50,11 @@ function PNG(file, options) {
50
50
  : path.extname(this.file).slice(1).toLowerCase() || 'png';
51
51
 
52
52
  if (this.format !== 'png') {
53
- return this.toPNG(buf);
53
+ try {
54
+ return this.toPNG(buf);
55
+ } catch (e) {
56
+ throw e;
57
+ }
54
58
  }
55
59
 
56
60
  chunks = this.parseRaw(buf);
@@ -66,6 +70,7 @@ PNG.prototype.parseRaw = function(buf) {
66
70
  var chunks = []
67
71
  , index = 0
68
72
  , i = 0
73
+ , buf
69
74
  , len
70
75
  , type
71
76
  , name
@@ -478,6 +483,7 @@ PNG.prototype.sampleInterlacedLines = function(raw) {
478
483
  , scanline
479
484
  , flat
480
485
  , offset
486
+ , k
481
487
  , end_offset
482
488
  , skip
483
489
  , j
@@ -588,9 +594,9 @@ PNG.prototype.createBitmap = function(pixels) {
588
594
  };
589
595
 
590
596
  PNG.prototype.createCellmap = function(bmp, options) {
591
- bmp = bmp || this.bmp
592
- options = options || this.options
593
- var cellmap = []
597
+ var bmp = bmp || this.bmp
598
+ , options = options || this.options
599
+ , cellmap = []
594
600
  , scale = options.scale || 0.20
595
601
  , height = bmp.length
596
602
  , width = bmp[0].length
@@ -601,6 +607,7 @@ PNG.prototype.createCellmap = function(bmp, options) {
601
607
  , y
602
608
  , xx
603
609
  , yy
610
+ , scale
604
611
  , xs
605
612
  , ys;
606
613
 
@@ -138,7 +138,7 @@ function requireDrawilleBlessedContrib() {
138
138
  result.push(' ');
139
139
  } else {
140
140
  result.push('\x1B[3' + this.colors[i] + 'm' + String.fromCharCode(0x2800 + this.content[i]) + '\x1B[39m');
141
- //result.push(String.fromCharCode(0x2800 + this.content[i]))
141
+ //result.push(String.fromCharCode(0x2800 + this.content[i]))
142
142
  }
143
143
  }
144
144
  result.push(delimiter);
@@ -7897,9 +7897,9 @@ function requireDrawilleCanvasBlessedContrib() {
7897
7897
  var mat2d = glMatrix.mat2d;
7898
7898
  var vec2 = glMatrix.vec2;
7899
7899
  function Context(width, height, canvasClass) {
7900
- canvasClass = canvasClass || Canvas;
7900
+ var canvasClass = canvasClass || Canvas;
7901
7901
  this._canvas = new canvasClass(width, height);
7902
- this.canvas = this._canvas; //compatability
7902
+ this.canvas = this._canvas; //compatability
7903
7903
  this._matrix = mat2d.create();
7904
7904
  this._stack = [];
7905
7905
  this._currentPath = [];
@@ -8094,7 +8094,7 @@ function requireDrawilleCanvasBlessedContrib() {
8094
8094
  } else {
8095
8095
  var colorCode = this.colors[i];
8096
8096
  result.push(colorCode + String.fromCharCode(0x2800 + this.content[i]) + '\x1B[39m');
8097
- //result.push(String.fromCharCode(0x2800 + this.content[i]))
8097
+ //result.push(String.fromCharCode(0x2800 + this.content[i]))
8098
8098
  }
8099
8099
  }
8100
8100
  result.push(delimiter);
@@ -138,7 +138,7 @@ function requireDrawilleBlessedContrib() {
138
138
  result.push(' ');
139
139
  } else {
140
140
  result.push('\x1B[3' + this.colors[i] + 'm' + String.fromCharCode(0x2800 + this.content[i]) + '\x1B[39m');
141
- //result.push(String.fromCharCode(0x2800 + this.content[i]))
141
+ //result.push(String.fromCharCode(0x2800 + this.content[i]))
142
142
  }
143
143
  }
144
144
  result.push(delimiter);
@@ -7897,9 +7897,9 @@ function requireDrawilleCanvasBlessedContrib() {
7897
7897
  var mat2d = glMatrix.mat2d;
7898
7898
  var vec2 = glMatrix.vec2;
7899
7899
  function Context(width, height, canvasClass) {
7900
- canvasClass = canvasClass || Canvas;
7900
+ var canvasClass = canvasClass || Canvas;
7901
7901
  this._canvas = new canvasClass(width, height);
7902
- this.canvas = this._canvas; //compatability
7902
+ this.canvas = this._canvas; //compatability
7903
7903
  this._matrix = mat2d.create();
7904
7904
  this._stack = [];
7905
7905
  this._currentPath = [];
@@ -8094,7 +8094,7 @@ function requireDrawilleCanvasBlessedContrib() {
8094
8094
  } else {
8095
8095
  var colorCode = this.colors[i];
8096
8096
  result.push(colorCode + String.fromCharCode(0x2800 + this.content[i]) + '\x1B[39m');
8097
- //result.push(String.fromCharCode(0x2800 + this.content[i]))
8097
+ //result.push(String.fromCharCode(0x2800 + this.content[i]))
8098
8098
  }
8099
8099
  }
8100
8100
  result.push(delimiter);
package/logo-dark.png ADDED
Binary file