noninteractive 0.3.20 → 0.3.21
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/bin/noninteractive.js +5 -2
- package/package.json +1 -1
package/bin/noninteractive.js
CHANGED
|
@@ -364,7 +364,7 @@ var init_daemon = __esm(() => {
|
|
|
364
364
|
var require_package = __commonJS((exports, module) => {
|
|
365
365
|
module.exports = {
|
|
366
366
|
name: "noninteractive",
|
|
367
|
-
version: "0.3.
|
|
367
|
+
version: "0.3.21",
|
|
368
368
|
type: "module",
|
|
369
369
|
bin: {
|
|
370
370
|
noninteractive: "./bin/noninteractive.js"
|
|
@@ -488,7 +488,10 @@ more examples:
|
|
|
488
488
|
npx noninteractive vercel # session "vercel"
|
|
489
489
|
npx noninteractive supabase init # session "supabase"
|
|
490
490
|
npx noninteractive start vercel login # explicit start for non-npx commands`;
|
|
491
|
-
var stripAnsi = (s) => s.replace(/\x1b\[[
|
|
491
|
+
var stripAnsi = (s) => s.replace(/\x1b\[[012]?K/g, `
|
|
492
|
+
`).replace(/\x1b\[[\x20-\x3f]*[\x40-\x7e]|\x1b\][^\x07\x1b]*(?:\x07|\x1b\\)|\x1b[()][A-Z0-9]|\x1b[\x20-\x2f]*[\x30-\x7e]|\x07/g, "").replace(/\r\n?/g, `
|
|
493
|
+
`).replace(/\n{3,}/g, `
|
|
494
|
+
|
|
492
495
|
`);
|
|
493
496
|
var seenUrls = new Set;
|
|
494
497
|
function openUrl(url) {
|