Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(2)

Unified Diff: node_modules/vulcanize/node_modules/update-notifier/node_modules/string-length/node_modules/strip-ansi/cli.js

Issue 877193002: Upgrade vulcanize to 0.7.6. (Closed) Base URL: https://chromium.googlesource.com/infra/third_party/npm_modules.git@master
Patch Set: Created 5 years, 11 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
Index: node_modules/vulcanize/node_modules/update-notifier/node_modules/string-length/node_modules/strip-ansi/cli.js
diff --git a/node_modules/vulcanize/node_modules/update-notifier/node_modules/string-length/node_modules/strip-ansi/cli.js b/node_modules/vulcanize/node_modules/update-notifier/node_modules/string-length/node_modules/strip-ansi/cli.js
index 5b9546aabf8a2ecf266dc0e7476ed1133c222a7b..b83f63b907e2e0409c96bebf842339b528b771c4 100755
--- a/node_modules/vulcanize/node_modules/update-notifier/node_modules/string-length/node_modules/strip-ansi/cli.js
+++ b/node_modules/vulcanize/node_modules/update-notifier/node_modules/string-length/node_modules/strip-ansi/cli.js
@@ -34,12 +34,12 @@ if (argv.indexOf('--version') !== -1) {
return;
}
-if (process.stdin.isTTY) {
- if (!input) {
- help();
- return;
- }
+if (!input && process.stdin.isTTY) {
+ help();
+ return;
+}
+if (input) {
init(fs.readFileSync(input, 'utf8'));
} else {
process.stdin.setEncoding('utf8');

Powered by Google App Engine
This is Rietveld 408576698