@socketsecurity/cli-with-sentry 1.1.9 → 1.1.13
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.
- package/CHANGELOG.md +49 -28
- package/bin/cli.js +2 -1
- package/bin/npm-cli.js +2 -1
- package/bin/npx-cli.js +2 -1
- package/bin/pnpm-cli.js +29 -0
- package/bin/yarn-cli.js +29 -0
- package/dist/cli.js +786 -566
- package/dist/cli.js.map +1 -1
- package/dist/constants.js +31 -9
- package/dist/constants.js.map +1 -1
- package/dist/flags.js +16 -17
- package/dist/flags.js.map +1 -1
- package/dist/instrument-with-sentry.js +3 -3
- package/dist/instrument-with-sentry.js.map +1 -1
- package/dist/npm-cli.js +26 -0
- package/dist/npm-cli.js.map +1 -0
- package/dist/npx-cli.js +26 -0
- package/dist/npx-cli.js.map +1 -0
- package/dist/pnpm-cli.js +26 -0
- package/dist/pnpm-cli.js.map +1 -0
- package/dist/shadow-npm-inject.js +4 -4
- package/dist/shadow-npm-inject.js.map +1 -1
- package/dist/shadow-pnpm-bin.js +235 -0
- package/dist/shadow-pnpm-bin.js.map +1 -0
- package/dist/shadow-yarn-bin.js +200 -0
- package/dist/shadow-yarn-bin.js.map +1 -0
- package/dist/socket-completion.bash +0 -0
- package/dist/tsconfig.dts.tsbuildinfo +1 -1
- package/dist/types/commands/analytics/cmd-analytics.d.mts +2 -3
- package/dist/types/commands/analytics/cmd-analytics.d.mts.map +1 -1
- package/dist/types/commands/audit-log/cmd-audit-log.d.mts +2 -3
- package/dist/types/commands/audit-log/cmd-audit-log.d.mts.map +1 -1
- package/dist/types/commands/ci/cmd-ci.d.mts +2 -3
- package/dist/types/commands/ci/cmd-ci.d.mts.map +1 -1
- package/dist/types/commands/config/cmd-config-auto.d.mts +2 -3
- package/dist/types/commands/config/cmd-config-auto.d.mts.map +1 -1
- package/dist/types/commands/config/cmd-config-get.d.mts +2 -3
- package/dist/types/commands/config/cmd-config-get.d.mts.map +1 -1
- package/dist/types/commands/config/cmd-config-list.d.mts +2 -3
- package/dist/types/commands/config/cmd-config-list.d.mts.map +1 -1
- package/dist/types/commands/config/cmd-config-set.d.mts +2 -3
- package/dist/types/commands/config/cmd-config-set.d.mts.map +1 -1
- package/dist/types/commands/config/cmd-config-unset.d.mts +2 -3
- package/dist/types/commands/config/cmd-config-unset.d.mts.map +1 -1
- package/dist/types/commands/fix/cmd-fix.d.mts +2 -3
- package/dist/types/commands/fix/cmd-fix.d.mts.map +1 -1
- package/dist/types/commands/fix/coana-fix.d.mts.map +1 -1
- package/dist/types/commands/fix/env-helpers.d.mts +1 -1
- package/dist/types/commands/fix/env-helpers.d.mts.map +1 -1
- package/dist/types/commands/fix/git.d.mts +1 -1
- package/dist/types/commands/fix/git.d.mts.map +1 -1
- package/dist/types/commands/fix/handle-fix.d.mts +3 -1
- package/dist/types/commands/fix/handle-fix.d.mts.map +1 -1
- package/dist/types/commands/fix/pull-request.d.mts +1 -1
- package/dist/types/commands/fix/pull-request.d.mts.map +1 -1
- package/dist/types/commands/fix/types.d.mts +2 -0
- package/dist/types/commands/fix/types.d.mts.map +1 -1
- package/dist/types/commands/install/cmd-install-completion.d.mts +2 -3
- package/dist/types/commands/install/cmd-install-completion.d.mts.map +1 -1
- package/dist/types/commands/json/cmd-json.d.mts +2 -3
- package/dist/types/commands/json/cmd-json.d.mts.map +1 -1
- package/dist/types/commands/login/cmd-login.d.mts +2 -3
- package/dist/types/commands/login/cmd-login.d.mts.map +1 -1
- package/dist/types/commands/logout/cmd-logout.d.mts +2 -3
- package/dist/types/commands/logout/cmd-logout.d.mts.map +1 -1
- package/dist/types/commands/manifest/cmd-manifest-auto.d.mts +2 -3
- package/dist/types/commands/manifest/cmd-manifest-auto.d.mts.map +1 -1
- package/dist/types/commands/manifest/cmd-manifest-cdxgen.d.mts +2 -3
- package/dist/types/commands/manifest/cmd-manifest-cdxgen.d.mts.map +1 -1
- package/dist/types/commands/manifest/cmd-manifest-conda.d.mts +2 -3
- package/dist/types/commands/manifest/cmd-manifest-conda.d.mts.map +1 -1
- package/dist/types/commands/manifest/cmd-manifest-gradle.d.mts +2 -3
- package/dist/types/commands/manifest/cmd-manifest-gradle.d.mts.map +1 -1
- package/dist/types/commands/manifest/cmd-manifest-kotlin.d.mts +2 -3
- package/dist/types/commands/manifest/cmd-manifest-kotlin.d.mts.map +1 -1
- package/dist/types/commands/manifest/cmd-manifest-scala.d.mts +2 -3
- package/dist/types/commands/manifest/cmd-manifest-scala.d.mts.map +1 -1
- package/dist/types/commands/manifest/cmd-manifest-setup.d.mts +2 -3
- package/dist/types/commands/manifest/cmd-manifest-setup.d.mts.map +1 -1
- package/dist/types/commands/manifest/cmd-manifest.d.mts +2 -3
- package/dist/types/commands/manifest/cmd-manifest.d.mts.map +1 -1
- package/dist/types/commands/manifest/detect-manifest-actions.d.mts.map +1 -1
- package/dist/types/commands/manifest/generate_auto_manifest.d.mts.map +1 -1
- package/dist/types/commands/manifest/output-requirements.d.mts.map +1 -1
- package/dist/types/commands/manifest/run-cdxgen.d.mts.map +1 -1
- package/dist/types/commands/manifest/setup-manifest-config.d.mts.map +1 -1
- package/dist/types/commands/npm/cmd-npm.d.mts +2 -3
- package/dist/types/commands/npm/cmd-npm.d.mts.map +1 -1
- package/dist/types/commands/npx/cmd-npx.d.mts +2 -3
- package/dist/types/commands/npx/cmd-npx.d.mts.map +1 -1
- package/dist/types/commands/oops/cmd-oops.d.mts +2 -3
- package/dist/types/commands/oops/cmd-oops.d.mts.map +1 -1
- package/dist/types/commands/optimize/cmd-optimize.d.mts +2 -3
- package/dist/types/commands/optimize/cmd-optimize.d.mts.map +1 -1
- package/dist/types/commands/organization/cmd-organization-dependencies.d.mts +2 -3
- package/dist/types/commands/organization/cmd-organization-dependencies.d.mts.map +1 -1
- package/dist/types/commands/organization/cmd-organization-list.d.mts +2 -3
- package/dist/types/commands/organization/cmd-organization-list.d.mts.map +1 -1
- package/dist/types/commands/organization/cmd-organization-policy-license.d.mts +2 -3
- package/dist/types/commands/organization/cmd-organization-policy-license.d.mts.map +1 -1
- package/dist/types/commands/organization/cmd-organization-policy-security.d.mts +2 -3
- package/dist/types/commands/organization/cmd-organization-policy-security.d.mts.map +1 -1
- package/dist/types/commands/organization/cmd-organization-quota.d.mts +2 -3
- package/dist/types/commands/organization/cmd-organization-quota.d.mts.map +1 -1
- package/dist/types/commands/package/cmd-package-score.d.mts +2 -3
- package/dist/types/commands/package/cmd-package-score.d.mts.map +1 -1
- package/dist/types/commands/package/cmd-package-shallow.d.mts +2 -3
- package/dist/types/commands/package/cmd-package-shallow.d.mts.map +1 -1
- package/dist/types/commands/patch/cmd-patch.d.mts +2 -3
- package/dist/types/commands/patch/cmd-patch.d.mts.map +1 -1
- package/dist/types/commands/pnpm/cmd-pnpm.d.mts +10 -0
- package/dist/types/commands/pnpm/cmd-pnpm.d.mts.map +1 -0
- package/dist/types/commands/raw-npm/cmd-raw-npm.d.mts +2 -3
- package/dist/types/commands/raw-npm/cmd-raw-npm.d.mts.map +1 -1
- package/dist/types/commands/raw-npx/cmd-raw-npx.d.mts +2 -3
- package/dist/types/commands/raw-npx/cmd-raw-npx.d.mts.map +1 -1
- package/dist/types/commands/repository/cmd-repository-create.d.mts +2 -3
- package/dist/types/commands/repository/cmd-repository-create.d.mts.map +1 -1
- package/dist/types/commands/repository/cmd-repository-del.d.mts +2 -3
- package/dist/types/commands/repository/cmd-repository-del.d.mts.map +1 -1
- package/dist/types/commands/repository/cmd-repository-list.d.mts +2 -3
- package/dist/types/commands/repository/cmd-repository-list.d.mts.map +1 -1
- package/dist/types/commands/repository/cmd-repository-update.d.mts +2 -3
- package/dist/types/commands/repository/cmd-repository-update.d.mts.map +1 -1
- package/dist/types/commands/repository/cmd-repository-view.d.mts +2 -3
- package/dist/types/commands/repository/cmd-repository-view.d.mts.map +1 -1
- package/dist/types/commands/repository/handle-list-repos.d.mts +2 -1
- package/dist/types/commands/repository/handle-list-repos.d.mts.map +1 -1
- package/dist/types/commands/repository/output-list-repos.d.mts +2 -1
- package/dist/types/commands/repository/output-list-repos.d.mts.map +1 -1
- package/dist/types/commands/repository/types.d.mts +2 -0
- package/dist/types/commands/repository/types.d.mts.map +1 -0
- package/dist/types/commands/scan/cmd-scan-create.d.mts +2 -3
- package/dist/types/commands/scan/cmd-scan-create.d.mts.map +1 -1
- package/dist/types/commands/scan/cmd-scan-del.d.mts +2 -3
- package/dist/types/commands/scan/cmd-scan-del.d.mts.map +1 -1
- package/dist/types/commands/scan/cmd-scan-diff.d.mts +2 -3
- package/dist/types/commands/scan/cmd-scan-diff.d.mts.map +1 -1
- package/dist/types/commands/scan/cmd-scan-github.d.mts +2 -3
- package/dist/types/commands/scan/cmd-scan-github.d.mts.map +1 -1
- package/dist/types/commands/scan/cmd-scan-list.d.mts.map +1 -1
- package/dist/types/commands/scan/cmd-scan-metadata.d.mts.map +1 -1
- package/dist/types/commands/scan/cmd-scan-reach.d.mts +2 -3
- package/dist/types/commands/scan/cmd-scan-reach.d.mts.map +1 -1
- package/dist/types/commands/scan/cmd-scan-report.d.mts.map +1 -1
- package/dist/types/commands/scan/cmd-scan-setup.d.mts +2 -3
- package/dist/types/commands/scan/cmd-scan-setup.d.mts.map +1 -1
- package/dist/types/commands/scan/cmd-scan-view.d.mts.map +1 -1
- package/dist/types/commands/scan/fetch-create-org-full-scan.d.mts +1 -1
- package/dist/types/commands/scan/fetch-create-org-full-scan.d.mts.map +1 -1
- package/dist/types/commands/threat-feed/cmd-threat-feed.d.mts +2 -3
- package/dist/types/commands/threat-feed/cmd-threat-feed.d.mts.map +1 -1
- package/dist/types/commands/uninstall/cmd-uninstall-completion.d.mts +2 -3
- package/dist/types/commands/uninstall/cmd-uninstall-completion.d.mts.map +1 -1
- package/dist/types/commands/wrapper/cmd-wrapper.d.mts +2 -3
- package/dist/types/commands/wrapper/cmd-wrapper.d.mts.map +1 -1
- package/dist/types/commands/yarn/cmd-yarn.d.mts +10 -0
- package/dist/types/commands/yarn/cmd-yarn.d.mts.map +1 -0
- package/dist/types/commands.d.mts +31 -63
- package/dist/types/commands.d.mts.map +1 -1
- package/dist/types/constants.d.mts +15 -1
- package/dist/types/constants.d.mts.map +1 -1
- package/dist/types/flags.d.mts.map +1 -1
- package/dist/types/npm-cli.d.mts +3 -0
- package/dist/types/npm-cli.d.mts.map +1 -0
- package/dist/types/npx-cli.d.mts +3 -0
- package/dist/types/npx-cli.d.mts.map +1 -0
- package/dist/types/pnpm-cli.d.mts +3 -0
- package/dist/types/pnpm-cli.d.mts.map +1 -0
- package/dist/types/shadow/npm/install.d.mts +1 -1
- package/dist/types/shadow/npm/install.d.mts.map +1 -1
- package/dist/types/shadow/pnpm/bin.d.mts +10 -0
- package/dist/types/shadow/pnpm/bin.d.mts.map +1 -0
- package/dist/types/shadow/pnpm/link.d.mts +2 -0
- package/dist/types/shadow/pnpm/link.d.mts.map +1 -0
- package/dist/types/shadow/yarn/bin.d.mts +10 -0
- package/dist/types/shadow/yarn/bin.d.mts.map +1 -0
- package/dist/types/shadow/yarn/link.d.mts +2 -0
- package/dist/types/shadow/yarn/link.d.mts.map +1 -0
- package/dist/types/utils/alerts-map.d.mts.map +1 -1
- package/dist/types/utils/cmd.d.mts +25 -1
- package/dist/types/utils/cmd.d.mts.map +1 -1
- package/dist/types/utils/coana.d.mts.map +1 -1
- package/dist/types/utils/config.d.mts +1 -1
- package/dist/types/utils/config.d.mts.map +1 -1
- package/dist/types/utils/git.d.mts +4 -4
- package/dist/types/utils/git.d.mts.map +1 -1
- package/dist/types/utils/github.d.mts.map +1 -1
- package/dist/types/utils/lockfile.d.mts +1 -1
- package/dist/types/utils/lockfile.d.mts.map +1 -1
- package/dist/types/utils/meow-with-subcommands.d.mts +16 -1
- package/dist/types/utils/meow-with-subcommands.d.mts.map +1 -1
- package/dist/types/utils/npm-config.d.mts +1 -1
- package/dist/types/utils/npm-config.d.mts.map +1 -1
- package/dist/types/utils/npm-package-arg.d.mts +1 -1
- package/dist/types/utils/npm-package-arg.d.mts.map +1 -1
- package/dist/types/utils/output-formatting.d.mts.map +1 -1
- package/dist/types/utils/package-environment.d.mts.map +1 -1
- package/dist/types/utils/pnpm-paths.d.mts +5 -0
- package/dist/types/utils/pnpm-paths.d.mts.map +1 -0
- package/dist/types/utils/pnpm.d.mts +2 -2
- package/dist/types/utils/pnpm.d.mts.map +1 -1
- package/dist/types/utils/purl.d.mts +6 -6
- package/dist/types/utils/purl.d.mts.map +1 -1
- package/dist/types/utils/sdk.d.mts.map +1 -1
- package/dist/types/utils/semver.d.mts +2 -2
- package/dist/types/utils/semver.d.mts.map +1 -1
- package/dist/types/utils/socket-json.d.mts +3 -0
- package/dist/types/utils/socket-json.d.mts.map +1 -1
- package/dist/types/utils/strings.d.mts +2 -0
- package/dist/types/utils/strings.d.mts.map +1 -0
- package/dist/types/utils/yarn-paths.d.mts +5 -0
- package/dist/types/utils/yarn-paths.d.mts.map +1 -0
- package/dist/types/utils/yarn-version.d.mts +2 -0
- package/dist/types/utils/yarn-version.d.mts.map +1 -0
- package/dist/types/yarn-cli.d.mts +3 -0
- package/dist/types/yarn-cli.d.mts.map +1 -0
- package/dist/utils.js +404 -104
- package/dist/utils.js.map +1 -1
- package/dist/vendor.js +58633 -64690
- package/dist/yarn-cli.js +26 -0
- package/dist/yarn-cli.js.map +1 -0
- package/external/blessed/lib/tput.js +13 -13
- package/external/blessed/lib/widgets/ansiimage.js +1 -1
- package/external/blessed/lib/widgets/bigtext.js +1 -1
- package/external/blessed/lib/widgets/box.js +1 -1
- package/external/blessed/lib/widgets/button.js +1 -1
- package/external/blessed/lib/widgets/checkbox.js +1 -1
- package/external/blessed/lib/widgets/element.js +1 -1
- package/external/blessed/lib/widgets/filemanager.js +1 -1
- package/external/blessed/lib/widgets/form.js +1 -1
- package/external/blessed/lib/widgets/image.js +1 -1
- package/external/blessed/lib/widgets/input.js +1 -1
- package/external/blessed/lib/widgets/layout.js +1 -1
- package/external/blessed/lib/widgets/line.js +1 -1
- package/external/blessed/lib/widgets/list.js +1 -1
- package/external/blessed/lib/widgets/listbar.js +1 -1
- package/external/blessed/lib/widgets/listtable.js +1 -1
- package/external/blessed/lib/widgets/loading.js +1 -1
- package/external/blessed/lib/widgets/log.js +1 -1
- package/external/blessed/lib/widgets/message.js +1 -1
- package/external/blessed/lib/widgets/node.js +3 -2
- package/external/blessed/lib/widgets/overlayimage.js +1 -1
- package/external/blessed/lib/widgets/progressbar.js +1 -1
- package/external/blessed/lib/widgets/prompt.js +1 -1
- package/external/blessed/lib/widgets/question.js +1 -1
- package/external/blessed/lib/widgets/radiobutton.js +1 -1
- package/external/blessed/lib/widgets/radioset.js +1 -1
- package/external/blessed/lib/widgets/screen.js +8 -6
- package/external/blessed/lib/widgets/scrollablebox.js +1 -1
- package/external/blessed/lib/widgets/scrollabletext.js +1 -1
- package/external/blessed/lib/widgets/table.js +1 -1
- package/external/blessed/lib/widgets/terminal.js +1 -1
- package/external/blessed/lib/widgets/text.js +1 -1
- package/external/blessed/lib/widgets/textarea.js +1 -1
- package/external/blessed/lib/widgets/textbox.js +1 -1
- package/external/blessed/lib/widgets/video.js +1 -1
- package/external/blessed/vendor/tng.js +11 -4
- package/external/blessed-contrib/lib/widget/charts/bar.js +4 -4
- package/external/blessed-contrib/lib/widget/charts/line.js +4 -4
- package/logo-dark.png +0 -0
- package/logo-light.png +0 -0
- package/package.json +67 -94
- package/shadow-bin/npm +1 -1
- package/shadow-bin/npx +1 -1
- package/shadow-bin/pnpm +27 -0
- package/shadow-bin/yarn +27 -0
package/dist/yarn-cli.js
ADDED
|
@@ -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] ===
|
|
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] ===
|
|
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] ===
|
|
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] ===
|
|
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' -> \
|
|
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 = '\
|
|
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 ||
|
|
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 '\
|
|
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('\
|
|
2100
|
-
|| ~info.strings.enter_alt_charset_mode.indexOf('\
|
|
2101
|
-
|| ~info.strings.set_attributes.indexOf('\
|
|
2102
|
-
|| ~info.strings.set_attributes.indexOf('\
|
|
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 ||
|
|
2281
|
+
? String.fromCharCode(param || 0o200)
|
|
2282
2282
|
: '';
|
|
2283
2283
|
break;
|
|
2284
2284
|
}
|
|
@@ -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
|
-
|
|
82
|
+
Node.prototype.__proto__ = EventEmitter.prototype;
|
|
82
83
|
|
|
83
84
|
Node.prototype.type = 'node';
|
|
84
85
|
|
|
@@ -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
|
-
|
|
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
|
-
|
|
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
|
-
|
|
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
|
-
|
|
29
|
+
ScrollableText.prototype.__proto__ = ScrollableBox.prototype;
|
|
30
30
|
|
|
31
31
|
ScrollableText.prototype.type = 'scrollable-text';
|
|
32
32
|
|
|
@@ -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
|
-
|
|
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
|
-
|
|
593
|
-
|
|
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
|