Skip to content

Commit ff307c2

Browse files
committed
make module silent by default
1 parent d18a0ed commit ff307c2

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed

src/api/instagram.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -43,7 +43,7 @@ export class Instagram<PostType> extends EventEmitter {
4343
});
4444
}
4545
if (options.silent === undefined) {
46-
options.silent = false;
46+
options.silent = true;
4747
}
4848
if (options.sleepTime === undefined) {
4949
options.sleepTime = 2;

src/cli.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -39,7 +39,7 @@ function getOptions(args, logger) {
3939
headless: !args["visible"],
4040
logger,
4141
plugins: [],
42-
silent: args["silent"],
42+
silent: args["quiet"],
4343
sleepTime: args["sleep"],
4444
strict: args["strict"],
4545
total: args["count"],
@@ -342,7 +342,7 @@ async function spawn(args) {
342342
let uploadUrl = args["upload"];
343343
if (uploadUrl && uploadUrl.includes("[uuid]")) {
344344
uploadUrl = uploadUrl.replace("[uuid]", uuid());
345-
if (!args["silent"]) {
345+
if (!args["quiet"]) {
346346
process.stdout.write(uploadUrl + "\n");
347347
}
348348
}

0 commit comments

Comments
 (0)