@kaynooo/cli-pkg 0.13.0 → 0.13.1

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.
Files changed (2) hide show
  1. package/dist/cli.js +18 -18
  2. package/package.json +2 -2
package/dist/cli.js CHANGED
@@ -78,8 +78,8 @@ var init_chunk_rxztfxgv = __esm(() => {
78
78
  z = new Map;
79
79
  });
80
80
 
81
- // ../../node_modules/.bun/@kaynooo+utils@3.0.0+4c7ddab9986847c5/node_modules/@kaynooo/utils/dist/index.js
82
- var init_dist = __esm(() => {
81
+ // ../../node_modules/.bun/@kaynooo+utils@3.0.0+4c7ddab9986847c5/node_modules/@kaynooo/utils/dist/text.js
82
+ var init_text = __esm(() => {
83
83
  init_chunk_rxztfxgv();
84
84
  });
85
85
 
@@ -125,7 +125,7 @@ function C(r, e = globalThis.process?.env ?? {}) {
125
125
  return false;
126
126
  return r?.isTTY === true;
127
127
  }
128
- function f2(r, e = []) {
128
+ function f(r, e = []) {
129
129
  let l = "", n = "";
130
130
  for (let t = 0, i = e.length;t < i; t++)
131
131
  l += `\x1B[${e[t][0]}m`, n = `\x1B[${e[t][1]}m${n}`;
@@ -135,7 +135,7 @@ function f2(r, e = []) {
135
135
  if (Array.isArray(a)) {
136
136
  let s = g.get(i);
137
137
  if (s === undefined)
138
- s = f2(r, [...e, a]), g.set(i, s);
138
+ s = f(r, [...e, a]), g.set(i, s);
139
139
  return s;
140
140
  }
141
141
  if (typeof a === "function")
@@ -144,17 +144,17 @@ function f2(r, e = []) {
144
144
  if (u === undefined) {
145
145
  if (g.size >= 64)
146
146
  g.clear();
147
- u = f2(r, [...e, a(...s)]), g.set(y, u);
147
+ u = f(r, [...e, a(...s)]), g.set(y, u);
148
148
  }
149
149
  return u;
150
150
  };
151
151
  throw Error(`Unknown style: ${String(i)}`);
152
152
  } });
153
153
  }
154
- function Fe2(r = {}) {
155
- return f2(r);
154
+ function Fe(r = {}) {
155
+ return f(r);
156
156
  }
157
- var G2, B2, h, o2;
157
+ var G2, B2, h, o;
158
158
  var init_chunk_x450vn3m = __esm(() => {
159
159
  G2 = /^[a-f0-9]+$/i;
160
160
  B2 = { reset: [0, 0], bold: [1, 22], dim: [2, 22], italic: [3, 23], underline: [4, 24], inverse: [7, 27], hidden: [8, 28], strikethrough: [9, 29], black: [30, 39], red: [31, 39], green: [32, 39], yellow: [33, 39], blue: [34, 39], magenta: [35, 39], cyan: [36, 39], white: [37, 39], gray: [90, 39], grey: [90, 39], blackBright: [90, 39], redBright: [91, 39], greenBright: [92, 39], yellowBright: [93, 39], blueBright: [94, 39], magentaBright: [95, 39], cyanBright: [96, 39], whiteBright: [97, 39], bgBlack: [40, 49], bgRed: [41, 49], bgGreen: [42, 49], bgYellow: [43, 49], bgBlue: [44, 49], bgMagenta: [45, 49], bgCyan: [46, 49], bgWhite: [47, 49], bgBlackBright: [100, 49], bgRedBright: [101, 49], bgGreenBright: [102, 49], bgYellowBright: [103, 49], bgBlueBright: [104, 49], bgMagentaBright: [105, 49], bgCyanBright: [106, 49], bgWhiteBright: [107, 49], rgb: (r, e, l, n = "fg") => [`${n === "fg" ? 38 : 48};2;${r};${e};${l}`, n === "fg" ? 39 : 49], hex: (r, e = "fg") => {
@@ -162,7 +162,7 @@ var init_chunk_x450vn3m = __esm(() => {
162
162
  return [`${e === "fg" ? 38 : 48};2;${l};${n};${c}`, e === "fg" ? 39 : 49];
163
163
  }, ansi256: (r, e = "fg") => [`${e === "fg" ? 38 : 48};5;${r}`, e === "fg" ? 39 : 49] };
164
164
  h = new Set(["", "1", "2", "3", "true"]);
165
- o2 = Fe2();
165
+ o = Fe();
166
166
  });
167
167
 
168
168
  // ../../node_modules/.bun/@kaynooo+utils@3.0.0+4c7ddab9986847c5/node_modules/@kaynooo/utils/dist/tools/colors.js
@@ -403,7 +403,7 @@ function takesControlCodes(stream, env = process6.env) {
403
403
  return stream.isTTY === true && env.NO_COLOR === undefined && env.NODE_DISABLE_COLORS === undefined && env.TERM !== "dumb" && outputMode(stream, env) === "terminal";
404
404
  }
405
405
  function paint(stream, env = process6.env) {
406
- return Fe2({ stream: { isTTY: takesControlCodes(stream, env) }, env });
406
+ return Fe({ stream: { isTTY: takesControlCodes(stream, env) }, env });
407
407
  }
408
408
  function marked(mark, text, stream, detail, env = process6.env) {
409
409
  const colors = paint(stream, env);
@@ -527,7 +527,7 @@ function printJson(value) {
527
527
  }
528
528
  var UNITS, LINE_BREAKS, ESCAPE;
529
529
  var init_format = __esm(() => {
530
- init_dist();
530
+ init_text();
531
531
  init_mode();
532
532
  init_style();
533
533
  UNITS = [["d", 86400], ["h", 3600], ["m", 60], ["s", 1]];
@@ -616,7 +616,7 @@ function closest(name, names) {
616
616
  return best !== undefined && best.far <= (name.length < 4 ? 1 : 2) ? best.known : undefined;
617
617
  }
618
618
  var ANSI;
619
- var init_text = __esm(() => {
619
+ var init_text2 = __esm(() => {
620
620
  ANSI = new RegExp(`${String.fromCharCode(27)}\\[[\\d;?]*[a-z]`, "gi");
621
621
  });
622
622
 
@@ -858,7 +858,7 @@ var DASHES, Exit, UsageError, HelpShown, completion, OUTPUT_OPTIONS, UNKNOWN_OPT
858
858
  var init_args = __esm(() => {
859
859
  init_format();
860
860
  init_help();
861
- init_text();
861
+ init_text2();
862
862
  init_help();
863
863
  init_input();
864
864
  DASHES = /^-+/;
@@ -1514,7 +1514,7 @@ var LEVEL_OPTIONS, TOP_OPTIONS, COMPLETE = "__complete", FILES = "__files__";
1514
1514
  var init_cli = __esm(() => {
1515
1515
  init_args();
1516
1516
  init_style();
1517
- init_text();
1517
+ init_text2();
1518
1518
  init_usage();
1519
1519
  LEVEL_OPTIONS = {
1520
1520
  ...OUTPUT_OPTIONS,
@@ -1577,7 +1577,7 @@ async function pool(items, limit, task) {
1577
1577
  var init_report = __esm(() => {
1578
1578
  init_cli();
1579
1579
  init_style();
1580
- init_text();
1580
+ init_text2();
1581
1581
  });
1582
1582
 
1583
1583
  // ../kit/src/secrets.ts
@@ -1654,7 +1654,7 @@ var init_src = __esm(() => {
1654
1654
  init_sessions();
1655
1655
  init_size();
1656
1656
  init_style();
1657
- init_text();
1657
+ init_text2();
1658
1658
  init_theme();
1659
1659
  init_tool();
1660
1660
  init_usage();
@@ -2487,7 +2487,7 @@ function analyze(input) {
2487
2487
  }
2488
2488
  var DEFAULT_MIN_AGE_DAYS = 14, DAY = 86400000, PUBLIC_HOST, INSTALL_SCRIPTS, GIT_PREFIX, VERSION_SEPARATOR;
2489
2489
  var init_analyze = __esm(() => {
2490
- init_dist();
2490
+ init_text();
2491
2491
  init_advisories();
2492
2492
  init_licenses();
2493
2493
  init_nearmiss();
@@ -3697,7 +3697,7 @@ var init_bump = __esm(() => {
3697
3697
  init_src();
3698
3698
  init_progress();
3699
3699
  init_prompt();
3700
- init_dist();
3700
+ init_text();
3701
3701
  init_config2();
3702
3702
  init_consumers();
3703
3703
  init_excluded();
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@kaynooo/cli-pkg",
3
3
  "type": "module",
4
- "version": "0.13.0",
4
+ "version": "0.13.1",
5
5
  "description": "pkg: check an npm package before it is added, for a guessed name, a version under two weeks old and install scripts.",
6
6
  "author": "Kaynooo <contact@kaynooo.fr>",
7
7
  "license": "MIT",
@@ -33,6 +33,6 @@
33
33
  "@kaynooo/utils": "3.0.0"
34
34
  },
35
35
  "devDependencies": {
36
- "@kaynooo/cli-kit": "0.36.0"
36
+ "@kaynooo/cli-kit": "0.36.1"
37
37
  }
38
38
  }