@hyrious/blivec
Advanced tools
Comparing version 0.3.5 to 0.3.6
@@ -334,3 +334,18 @@ #!/usr/bin/env node | ||
} | ||
} else { | ||
console.log(help); | ||
} | ||
} else { | ||
const id = Number.parseInt(arg1); | ||
const json = arg2 === "--json"; | ||
if (Number.isSafeInteger(id) && id > 0) { | ||
if (arg2 && !json) { | ||
await send(id, arg2); | ||
} else { | ||
const con = listen(id, { json }); | ||
sigint(con, { json }); | ||
} | ||
} else { | ||
console.log(help); | ||
} | ||
} |
{ | ||
"name": "@hyrious/blivec", | ||
"version": "0.3.5", | ||
"version": "0.3.6", | ||
"description": "bilibili live cli", | ||
@@ -5,0 +5,0 @@ "type": "module", |
@@ -360,3 +360,18 @@ #!/usr/bin/env node | ||
} | ||
} else { | ||
console.log(help); | ||
} | ||
} else { | ||
const id = Number.parseInt(arg1); | ||
const json = arg2 === "--json"; | ||
if (Number.isSafeInteger(id) && id > 0) { | ||
if (arg2 && !json) { | ||
await send(id, arg2); | ||
} else { | ||
const con = listen(id, { json }); | ||
sigint(con, { json }); | ||
} | ||
} else { | ||
console.log(help); | ||
} | ||
} |
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
47252
1350