This repository has been archived by the owner on May 8, 2018. It is now read-only.
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Fix nsp CLI crash in the no window (CI) envs
This Fixes the following crash: > nsp check ``` /var/lib/buildkite-agent/builds/ip-10-0-51-163-1/app/node_modules/nsp/node_modules/cli-table/lib/utils.js:11 return Array(times + 1).join(str); ^ RangeError: Invalid array length at exports.repeat (/var/lib/buildkite-agent/builds/ip-10-0-51-163-1/app/node_modules/nsp/node_modules/cli-table/lib/utils.js:11:10) at line (/var/lib/buildkite-agent/builds/ip-10-0-51-163-1/app/node_modules/nsp/node_modules/cli-table/lib/index.js:140:11) at lineTop (/var/lib/buildkite-agent/builds/ip-10-0-51-163-1/app/node_modules/nsp/node_modules/cli-table/lib/index.js:154:13) at Table.toString (/var/lib/buildkite-agent/builds/ip-10-0-51-163-1/app/node_modules/nsp/node_modules/cli-table/lib/index.js:252:5) at /var/lib/buildkite-agent/builds/ip-10-0-51-163-1/app/node_modules/nsp/lib/formatters/default.js:48:27 at Array.forEach (native) at Object.module.exports (/var/lib/buildkite-agent/builds/ip-10-0-51-163-1/app/node_modules/nsp/lib/formatters/default.js:33:6) at /var/lib/buildkite-agent/builds/ip-10-0-51-163-1/app/node_modules/nsp/lib/commands/check.js:25:23 at /var/lib/buildkite-agent/builds/ip-10-0-51-163-1/app/node_modules/nsp/lib/check.js:240:7 at /var/lib/buildkite-agent/builds/ip-10-0-51-163-1/app/node_modules/nsp/node_modules/wreck/lib/index.js:472:20 ```
- Loading branch information