@socketsecurity/lib 3.3.5 → 3.3.7

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/CHANGELOG.md CHANGED
@@ -5,6 +5,23 @@ All notable changes to this project will be documented in this file.
5
5
  The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.1.0/),
6
6
  and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0.html).
7
7
 
8
+ ## [3.3.7](https://github.com/SocketDev/socket-lib/releases/tag/v3.3.7) - 2025-11-13
9
+
10
+ ### Changed
11
+
12
+ - **refactor**: Add explicit `.js` extensions to external require calls
13
+ - Improves module resolution clarity and compatibility with modern bundlers
14
+ - Updated 18 require calls across 10 source files
15
+
16
+ ## [3.3.6](https://github.com/SocketDev/socket-lib/releases/tag/v3.3.6) - 2025-11-13
17
+
18
+ ### Changed
19
+
20
+ - **deps**: Add pnpm overrides to consolidate package versions
21
+ - Force single versions: `@npmcli/arborist@9.1.6`, `@npmcli/run-script@10.0.0`, `semver@7.7.2`, `ansi-regex@6.2.2`, `lru-cache@11.2.2`
22
+ - Update patch from `@npmcli/run-script@9.1.0` to `@npmcli/run-script@10.0.0`
23
+ - Reduces duplicate dependencies and potential version conflicts
24
+
8
25
  ## [3.3.5](https://github.com/SocketDev/socket-lib/releases/tag/v3.3.5) - 2025-11-13
9
26
 
10
27
  ### Fixed
package/dist/bin.js CHANGED
@@ -59,7 +59,7 @@ let _which;
59
59
  // @__NO_SIDE_EFFECTS__
60
60
  function getWhich() {
61
61
  if (_which === void 0) {
62
- _which = require("./external/which");
62
+ _which = require("./external/which.js");
63
63
  }
64
64
  return _which;
65
65
  }
package/dist/cacache.js CHANGED
@@ -30,7 +30,7 @@ __export(cacache_exports, {
30
30
  module.exports = __toCommonJS(cacache_exports);
31
31
  var import_paths = require("./paths");
32
32
  function getCacache() {
33
- return require("./external/cacache");
33
+ return require("./external/cacache.js");
34
34
  }
35
35
  function patternToRegex(pattern) {
36
36
  const escaped = pattern.replaceAll(/[.+?^${}()|[\]\\]/g, "\\$&");
@@ -55,7 +55,7 @@ let _npmPackageArg;
55
55
  // @__NO_SIDE_EFFECTS__
56
56
  function getNpmPackageArg() {
57
57
  if (_npmPackageArg === void 0) {
58
- _npmPackageArg = require("./external/npm-package-arg");
58
+ _npmPackageArg = require("./external/npm-package-arg.js");
59
59
  }
60
60
  return _npmPackageArg;
61
61
  }
@@ -63,7 +63,7 @@ let _libnpmexec;
63
63
  // @__NO_SIDE_EFFECTS__
64
64
  function getLibnpmexec() {
65
65
  if (_libnpmexec === void 0) {
66
- _libnpmexec = require("./external/libnpmexec");
66
+ _libnpmexec = require("./external/libnpmexec.js");
67
67
  }
68
68
  return _libnpmexec;
69
69
  }
@@ -71,7 +71,7 @@ let _pacote;
71
71
  // @__NO_SIDE_EFFECTS__
72
72
  function getPacote() {
73
73
  if (_pacote === void 0) {
74
- _pacote = require("./external/pacote");
74
+ _pacote = require("./external/pacote.js");
75
75
  }
76
76
  return _pacote;
77
77
  }
@@ -79,7 +79,7 @@ let _arborist;
79
79
  // @__NO_SIDE_EFFECTS__
80
80
  function getArborist() {
81
81
  if (_arborist === void 0) {
82
- _arborist = require("./external/@npmcli/arborist");
82
+ _arborist = require("./external/@npmcli/arborist.js");
83
83
  }
84
84
  return _arborist;
85
85
  }
@@ -5,11 +5,29 @@
5
5
  */
6
6
  "use strict";
7
7
  var __defProp = Object.defineProperty;
8
+ var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
8
9
  var __getOwnPropNames = Object.getOwnPropertyNames;
10
+ var __hasOwnProp = Object.prototype.hasOwnProperty;
9
11
  var __name = (target, value) => __defProp(target, "name", { value, configurable: true });
12
+ var __esm = (fn, res) => function __init() {
13
+ return fn && (res = (0, fn[__getOwnPropNames(fn)[0]])(fn = 0)), res;
14
+ };
10
15
  var __commonJS = (cb, mod) => function __require() {
11
16
  return mod || (0, cb[__getOwnPropNames(cb)[0]])((mod = { exports: {} }).exports, mod), mod.exports;
12
17
  };
18
+ var __export = (target, all) => {
19
+ for (var name in all)
20
+ __defProp(target, name, { get: all[name], enumerable: true });
21
+ };
22
+ var __copyProps = (to, from, except, desc) => {
23
+ if (from && typeof from === "object" || typeof from === "function") {
24
+ for (let key of __getOwnPropNames(from))
25
+ if (!__hasOwnProp.call(to, key) && key !== except)
26
+ __defProp(to, key, { get: () => from[key], enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable });
27
+ }
28
+ return to;
29
+ };
30
+ var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod);
13
31
 
14
32
  // node_modules/.pnpm/@inquirer+core@10.3.1_@types+node@24.9.2/node_modules/@inquirer/core/dist/commonjs/lib/key.js
15
33
  var require_key = __commonJS({
@@ -887,17 +905,21 @@ var require_cli_width = __commonJS({
887
905
  }
888
906
  });
889
907
 
890
- // node_modules/.pnpm/ansi-regex@5.0.1/node_modules/ansi-regex/index.js
891
- var require_ansi_regex = __commonJS({
892
- "node_modules/.pnpm/ansi-regex@5.0.1/node_modules/ansi-regex/index.js"(exports2, module2) {
893
- "use strict";
894
- module2.exports = ({ onlyFirst = false } = {}) => {
895
- const pattern = [
896
- "[\\u001B\\u009B][[\\]()#;?]*(?:(?:(?:(?:;[-a-zA-Z\\d\\/#&.:=?%@~_]+)*|[a-zA-Z\\d]+(?:;[-a-zA-Z\\d\\/#&.:=?%@~_]*)*)?\\u0007)",
897
- "(?:(?:\\d{1,4}(?:;\\d{0,4})*)?[\\dA-PR-TZcf-ntqry=><~]))"
898
- ].join("|");
899
- return new RegExp(pattern, onlyFirst ? void 0 : "g");
900
- };
908
+ // node_modules/.pnpm/ansi-regex@6.2.2/node_modules/ansi-regex/index.js
909
+ var ansi_regex_exports = {};
910
+ __export(ansi_regex_exports, {
911
+ default: () => ansiRegex
912
+ });
913
+ function ansiRegex({ onlyFirst = false } = {}) {
914
+ const ST = "(?:\\u0007|\\u001B\\u005C|\\u009C)";
915
+ const osc = `(?:\\u001B\\][\\s\\S]*?${ST})`;
916
+ const csi = "[\\u001B\\u009B][[\\]()#;?]*(?:\\d{1,4}(?:[;:]\\d{0,4})*)?[\\dA-PR-TZcf-nq-uy=><~]";
917
+ const pattern = `${osc}|${csi}`;
918
+ return new RegExp(pattern, onlyFirst ? void 0 : "g");
919
+ }
920
+ var init_ansi_regex = __esm({
921
+ "node_modules/.pnpm/ansi-regex@6.2.2/node_modules/ansi-regex/index.js"() {
922
+ __name(ansiRegex, "ansiRegex");
901
923
  }
902
924
  });
903
925
 
@@ -905,8 +927,8 @@ var require_ansi_regex = __commonJS({
905
927
  var require_strip_ansi = __commonJS({
906
928
  "node_modules/.pnpm/strip-ansi@6.0.1/node_modules/strip-ansi/index.js"(exports2, module2) {
907
929
  "use strict";
908
- var ansiRegex = require_ansi_regex();
909
- module2.exports = (string) => typeof string === "string" ? string.replace(ansiRegex(), "") : string;
930
+ var ansiRegex2 = (init_ansi_regex(), __toCommonJS(ansi_regex_exports));
931
+ module2.exports = (string) => typeof string === "string" ? string.replace(ansiRegex2(), "") : string;
910
932
  }
911
933
  });
912
934
 
@@ -5,11 +5,29 @@
5
5
  */
6
6
  "use strict";
7
7
  var __defProp = Object.defineProperty;
8
+ var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
8
9
  var __getOwnPropNames = Object.getOwnPropertyNames;
10
+ var __hasOwnProp = Object.prototype.hasOwnProperty;
9
11
  var __name = (target, value) => __defProp(target, "name", { value, configurable: true });
12
+ var __esm = (fn, res) => function __init() {
13
+ return fn && (res = (0, fn[__getOwnPropNames(fn)[0]])(fn = 0)), res;
14
+ };
10
15
  var __commonJS = (cb, mod) => function __require() {
11
16
  return mod || (0, cb[__getOwnPropNames(cb)[0]])((mod = { exports: {} }).exports, mod), mod.exports;
12
17
  };
18
+ var __export = (target, all) => {
19
+ for (var name in all)
20
+ __defProp(target, name, { get: all[name], enumerable: true });
21
+ };
22
+ var __copyProps = (to, from, except, desc) => {
23
+ if (from && typeof from === "object" || typeof from === "function") {
24
+ for (let key of __getOwnPropNames(from))
25
+ if (!__hasOwnProp.call(to, key) && key !== except)
26
+ __defProp(to, key, { get: () => from[key], enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable });
27
+ }
28
+ return to;
29
+ };
30
+ var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod);
13
31
 
14
32
  // node_modules/.pnpm/@inquirer+core@10.3.0_@types+node@24.9.2/node_modules/@inquirer/core/dist/commonjs/lib/key.js
15
33
  var require_key = __commonJS({
@@ -885,17 +903,21 @@ var require_cli_width = __commonJS({
885
903
  }
886
904
  });
887
905
 
888
- // node_modules/.pnpm/ansi-regex@5.0.1/node_modules/ansi-regex/index.js
889
- var require_ansi_regex = __commonJS({
890
- "node_modules/.pnpm/ansi-regex@5.0.1/node_modules/ansi-regex/index.js"(exports2, module2) {
891
- "use strict";
892
- module2.exports = ({ onlyFirst = false } = {}) => {
893
- const pattern = [
894
- "[\\u001B\\u009B][[\\]()#;?]*(?:(?:(?:(?:;[-a-zA-Z\\d\\/#&.:=?%@~_]+)*|[a-zA-Z\\d]+(?:;[-a-zA-Z\\d\\/#&.:=?%@~_]*)*)?\\u0007)",
895
- "(?:(?:\\d{1,4}(?:;\\d{0,4})*)?[\\dA-PR-TZcf-ntqry=><~]))"
896
- ].join("|");
897
- return new RegExp(pattern, onlyFirst ? void 0 : "g");
898
- };
906
+ // node_modules/.pnpm/ansi-regex@6.2.2/node_modules/ansi-regex/index.js
907
+ var ansi_regex_exports = {};
908
+ __export(ansi_regex_exports, {
909
+ default: () => ansiRegex
910
+ });
911
+ function ansiRegex({ onlyFirst = false } = {}) {
912
+ const ST = "(?:\\u0007|\\u001B\\u005C|\\u009C)";
913
+ const osc = `(?:\\u001B\\][\\s\\S]*?${ST})`;
914
+ const csi = "[\\u001B\\u009B][[\\]()#;?]*(?:\\d{1,4}(?:[;:]\\d{0,4})*)?[\\dA-PR-TZcf-nq-uy=><~]";
915
+ const pattern = `${osc}|${csi}`;
916
+ return new RegExp(pattern, onlyFirst ? void 0 : "g");
917
+ }
918
+ var init_ansi_regex = __esm({
919
+ "node_modules/.pnpm/ansi-regex@6.2.2/node_modules/ansi-regex/index.js"() {
920
+ __name(ansiRegex, "ansiRegex");
899
921
  }
900
922
  });
901
923
 
@@ -903,8 +925,8 @@ var require_ansi_regex = __commonJS({
903
925
  var require_strip_ansi = __commonJS({
904
926
  "node_modules/.pnpm/strip-ansi@6.0.1/node_modules/strip-ansi/index.js"(exports2, module2) {
905
927
  "use strict";
906
- var ansiRegex = require_ansi_regex();
907
- module2.exports = (string) => typeof string === "string" ? string.replace(ansiRegex(), "") : string;
928
+ var ansiRegex2 = (init_ansi_regex(), __toCommonJS(ansi_regex_exports));
929
+ module2.exports = (string) => typeof string === "string" ? string.replace(ansiRegex2(), "") : string;
908
930
  }
909
931
  });
910
932
 
@@ -5,11 +5,29 @@
5
5
  */
6
6
  "use strict";
7
7
  var __defProp = Object.defineProperty;
8
+ var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
8
9
  var __getOwnPropNames = Object.getOwnPropertyNames;
10
+ var __hasOwnProp = Object.prototype.hasOwnProperty;
9
11
  var __name = (target, value) => __defProp(target, "name", { value, configurable: true });
12
+ var __esm = (fn, res) => function __init() {
13
+ return fn && (res = (0, fn[__getOwnPropNames(fn)[0]])(fn = 0)), res;
14
+ };
10
15
  var __commonJS = (cb, mod) => function __require() {
11
16
  return mod || (0, cb[__getOwnPropNames(cb)[0]])((mod = { exports: {} }).exports, mod), mod.exports;
12
17
  };
18
+ var __export = (target, all) => {
19
+ for (var name in all)
20
+ __defProp(target, name, { get: all[name], enumerable: true });
21
+ };
22
+ var __copyProps = (to, from, except, desc) => {
23
+ if (from && typeof from === "object" || typeof from === "function") {
24
+ for (let key of __getOwnPropNames(from))
25
+ if (!__hasOwnProp.call(to, key) && key !== except)
26
+ __defProp(to, key, { get: () => from[key], enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable });
27
+ }
28
+ return to;
29
+ };
30
+ var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod);
13
31
 
14
32
  // node_modules/.pnpm/@inquirer+core@10.3.0_@types+node@24.9.2/node_modules/@inquirer/core/dist/commonjs/lib/key.js
15
33
  var require_key = __commonJS({
@@ -885,17 +903,21 @@ var require_cli_width = __commonJS({
885
903
  }
886
904
  });
887
905
 
888
- // node_modules/.pnpm/ansi-regex@5.0.1/node_modules/ansi-regex/index.js
889
- var require_ansi_regex = __commonJS({
890
- "node_modules/.pnpm/ansi-regex@5.0.1/node_modules/ansi-regex/index.js"(exports2, module2) {
891
- "use strict";
892
- module2.exports = ({ onlyFirst = false } = {}) => {
893
- const pattern = [
894
- "[\\u001B\\u009B][[\\]()#;?]*(?:(?:(?:(?:;[-a-zA-Z\\d\\/#&.:=?%@~_]+)*|[a-zA-Z\\d]+(?:;[-a-zA-Z\\d\\/#&.:=?%@~_]*)*)?\\u0007)",
895
- "(?:(?:\\d{1,4}(?:;\\d{0,4})*)?[\\dA-PR-TZcf-ntqry=><~]))"
896
- ].join("|");
897
- return new RegExp(pattern, onlyFirst ? void 0 : "g");
898
- };
906
+ // node_modules/.pnpm/ansi-regex@6.2.2/node_modules/ansi-regex/index.js
907
+ var ansi_regex_exports = {};
908
+ __export(ansi_regex_exports, {
909
+ default: () => ansiRegex
910
+ });
911
+ function ansiRegex({ onlyFirst = false } = {}) {
912
+ const ST = "(?:\\u0007|\\u001B\\u005C|\\u009C)";
913
+ const osc = `(?:\\u001B\\][\\s\\S]*?${ST})`;
914
+ const csi = "[\\u001B\\u009B][[\\]()#;?]*(?:\\d{1,4}(?:[;:]\\d{0,4})*)?[\\dA-PR-TZcf-nq-uy=><~]";
915
+ const pattern = `${osc}|${csi}`;
916
+ return new RegExp(pattern, onlyFirst ? void 0 : "g");
917
+ }
918
+ var init_ansi_regex = __esm({
919
+ "node_modules/.pnpm/ansi-regex@6.2.2/node_modules/ansi-regex/index.js"() {
920
+ __name(ansiRegex, "ansiRegex");
899
921
  }
900
922
  });
901
923
 
@@ -903,8 +925,8 @@ var require_ansi_regex = __commonJS({
903
925
  var require_strip_ansi = __commonJS({
904
926
  "node_modules/.pnpm/strip-ansi@6.0.1/node_modules/strip-ansi/index.js"(exports2, module2) {
905
927
  "use strict";
906
- var ansiRegex = require_ansi_regex();
907
- module2.exports = (string) => typeof string === "string" ? string.replace(ansiRegex(), "") : string;
928
+ var ansiRegex2 = (init_ansi_regex(), __toCommonJS(ansi_regex_exports));
929
+ module2.exports = (string) => typeof string === "string" ? string.replace(ansiRegex2(), "") : string;
908
930
  }
909
931
  });
910
932
 
@@ -5,11 +5,29 @@
5
5
  */
6
6
  "use strict";
7
7
  var __defProp = Object.defineProperty;
8
+ var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
8
9
  var __getOwnPropNames = Object.getOwnPropertyNames;
10
+ var __hasOwnProp = Object.prototype.hasOwnProperty;
9
11
  var __name = (target, value) => __defProp(target, "name", { value, configurable: true });
12
+ var __esm = (fn, res) => function __init() {
13
+ return fn && (res = (0, fn[__getOwnPropNames(fn)[0]])(fn = 0)), res;
14
+ };
10
15
  var __commonJS = (cb, mod) => function __require() {
11
16
  return mod || (0, cb[__getOwnPropNames(cb)[0]])((mod = { exports: {} }).exports, mod), mod.exports;
12
17
  };
18
+ var __export = (target, all) => {
19
+ for (var name in all)
20
+ __defProp(target, name, { get: all[name], enumerable: true });
21
+ };
22
+ var __copyProps = (to, from, except, desc) => {
23
+ if (from && typeof from === "object" || typeof from === "function") {
24
+ for (let key of __getOwnPropNames(from))
25
+ if (!__hasOwnProp.call(to, key) && key !== except)
26
+ __defProp(to, key, { get: () => from[key], enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable });
27
+ }
28
+ return to;
29
+ };
30
+ var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod);
13
31
 
14
32
  // node_modules/.pnpm/@inquirer+core@10.3.0_@types+node@24.9.2/node_modules/@inquirer/core/dist/commonjs/lib/key.js
15
33
  var require_key = __commonJS({
@@ -885,17 +903,21 @@ var require_cli_width = __commonJS({
885
903
  }
886
904
  });
887
905
 
888
- // node_modules/.pnpm/ansi-regex@5.0.1/node_modules/ansi-regex/index.js
889
- var require_ansi_regex = __commonJS({
890
- "node_modules/.pnpm/ansi-regex@5.0.1/node_modules/ansi-regex/index.js"(exports2, module2) {
891
- "use strict";
892
- module2.exports = ({ onlyFirst = false } = {}) => {
893
- const pattern = [
894
- "[\\u001B\\u009B][[\\]()#;?]*(?:(?:(?:(?:;[-a-zA-Z\\d\\/#&.:=?%@~_]+)*|[a-zA-Z\\d]+(?:;[-a-zA-Z\\d\\/#&.:=?%@~_]*)*)?\\u0007)",
895
- "(?:(?:\\d{1,4}(?:;\\d{0,4})*)?[\\dA-PR-TZcf-ntqry=><~]))"
896
- ].join("|");
897
- return new RegExp(pattern, onlyFirst ? void 0 : "g");
898
- };
906
+ // node_modules/.pnpm/ansi-regex@6.2.2/node_modules/ansi-regex/index.js
907
+ var ansi_regex_exports = {};
908
+ __export(ansi_regex_exports, {
909
+ default: () => ansiRegex
910
+ });
911
+ function ansiRegex({ onlyFirst = false } = {}) {
912
+ const ST = "(?:\\u0007|\\u001B\\u005C|\\u009C)";
913
+ const osc = `(?:\\u001B\\][\\s\\S]*?${ST})`;
914
+ const csi = "[\\u001B\\u009B][[\\]()#;?]*(?:\\d{1,4}(?:[;:]\\d{0,4})*)?[\\dA-PR-TZcf-nq-uy=><~]";
915
+ const pattern = `${osc}|${csi}`;
916
+ return new RegExp(pattern, onlyFirst ? void 0 : "g");
917
+ }
918
+ var init_ansi_regex = __esm({
919
+ "node_modules/.pnpm/ansi-regex@6.2.2/node_modules/ansi-regex/index.js"() {
920
+ __name(ansiRegex, "ansiRegex");
899
921
  }
900
922
  });
901
923
 
@@ -903,8 +925,8 @@ var require_ansi_regex = __commonJS({
903
925
  var require_strip_ansi = __commonJS({
904
926
  "node_modules/.pnpm/strip-ansi@6.0.1/node_modules/strip-ansi/index.js"(exports2, module2) {
905
927
  "use strict";
906
- var ansiRegex = require_ansi_regex();
907
- module2.exports = (string) => typeof string === "string" ? string.replace(ansiRegex(), "") : string;
928
+ var ansiRegex2 = (init_ansi_regex(), __toCommonJS(ansi_regex_exports));
929
+ module2.exports = (string) => typeof string === "string" ? string.replace(ansiRegex2(), "") : string;
908
930
  }
909
931
  });
910
932
 
@@ -5,11 +5,29 @@
5
5
  */
6
6
  "use strict";
7
7
  var __defProp = Object.defineProperty;
8
+ var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
8
9
  var __getOwnPropNames = Object.getOwnPropertyNames;
10
+ var __hasOwnProp = Object.prototype.hasOwnProperty;
9
11
  var __name = (target, value) => __defProp(target, "name", { value, configurable: true });
12
+ var __esm = (fn, res) => function __init() {
13
+ return fn && (res = (0, fn[__getOwnPropNames(fn)[0]])(fn = 0)), res;
14
+ };
10
15
  var __commonJS = (cb, mod) => function __require() {
11
16
  return mod || (0, cb[__getOwnPropNames(cb)[0]])((mod = { exports: {} }).exports, mod), mod.exports;
12
17
  };
18
+ var __export = (target, all) => {
19
+ for (var name in all)
20
+ __defProp(target, name, { get: all[name], enumerable: true });
21
+ };
22
+ var __copyProps = (to, from, except, desc) => {
23
+ if (from && typeof from === "object" || typeof from === "function") {
24
+ for (let key of __getOwnPropNames(from))
25
+ if (!__hasOwnProp.call(to, key) && key !== except)
26
+ __defProp(to, key, { get: () => from[key], enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable });
27
+ }
28
+ return to;
29
+ };
30
+ var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod);
13
31
 
14
32
  // node_modules/.pnpm/@inquirer+core@10.3.0_@types+node@24.9.2/node_modules/@inquirer/core/dist/commonjs/lib/key.js
15
33
  var require_key = __commonJS({
@@ -885,17 +903,21 @@ var require_cli_width = __commonJS({
885
903
  }
886
904
  });
887
905
 
888
- // node_modules/.pnpm/ansi-regex@5.0.1/node_modules/ansi-regex/index.js
889
- var require_ansi_regex = __commonJS({
890
- "node_modules/.pnpm/ansi-regex@5.0.1/node_modules/ansi-regex/index.js"(exports2, module2) {
891
- "use strict";
892
- module2.exports = ({ onlyFirst = false } = {}) => {
893
- const pattern = [
894
- "[\\u001B\\u009B][[\\]()#;?]*(?:(?:(?:(?:;[-a-zA-Z\\d\\/#&.:=?%@~_]+)*|[a-zA-Z\\d]+(?:;[-a-zA-Z\\d\\/#&.:=?%@~_]*)*)?\\u0007)",
895
- "(?:(?:\\d{1,4}(?:;\\d{0,4})*)?[\\dA-PR-TZcf-ntqry=><~]))"
896
- ].join("|");
897
- return new RegExp(pattern, onlyFirst ? void 0 : "g");
898
- };
906
+ // node_modules/.pnpm/ansi-regex@6.2.2/node_modules/ansi-regex/index.js
907
+ var ansi_regex_exports = {};
908
+ __export(ansi_regex_exports, {
909
+ default: () => ansiRegex
910
+ });
911
+ function ansiRegex({ onlyFirst = false } = {}) {
912
+ const ST = "(?:\\u0007|\\u001B\\u005C|\\u009C)";
913
+ const osc = `(?:\\u001B\\][\\s\\S]*?${ST})`;
914
+ const csi = "[\\u001B\\u009B][[\\]()#;?]*(?:\\d{1,4}(?:[;:]\\d{0,4})*)?[\\dA-PR-TZcf-nq-uy=><~]";
915
+ const pattern = `${osc}|${csi}`;
916
+ return new RegExp(pattern, onlyFirst ? void 0 : "g");
917
+ }
918
+ var init_ansi_regex = __esm({
919
+ "node_modules/.pnpm/ansi-regex@6.2.2/node_modules/ansi-regex/index.js"() {
920
+ __name(ansiRegex, "ansiRegex");
899
921
  }
900
922
  });
901
923
 
@@ -903,8 +925,8 @@ var require_ansi_regex = __commonJS({
903
925
  var require_strip_ansi = __commonJS({
904
926
  "node_modules/.pnpm/strip-ansi@6.0.1/node_modules/strip-ansi/index.js"(exports2, module2) {
905
927
  "use strict";
906
- var ansiRegex = require_ansi_regex();
907
- module2.exports = (string) => typeof string === "string" ? string.replace(ansiRegex(), "") : string;
928
+ var ansiRegex2 = (init_ansi_regex(), __toCommonJS(ansi_regex_exports));
929
+ module2.exports = (string) => typeof string === "string" ? string.replace(ansiRegex2(), "") : string;
908
930
  }
909
931
  });
910
932
 
@@ -5,11 +5,29 @@
5
5
  */
6
6
  "use strict";
7
7
  var __defProp = Object.defineProperty;
8
+ var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
8
9
  var __getOwnPropNames = Object.getOwnPropertyNames;
10
+ var __hasOwnProp = Object.prototype.hasOwnProperty;
9
11
  var __name = (target, value) => __defProp(target, "name", { value, configurable: true });
12
+ var __esm = (fn, res) => function __init() {
13
+ return fn && (res = (0, fn[__getOwnPropNames(fn)[0]])(fn = 0)), res;
14
+ };
10
15
  var __commonJS = (cb, mod) => function __require() {
11
16
  return mod || (0, cb[__getOwnPropNames(cb)[0]])((mod = { exports: {} }).exports, mod), mod.exports;
12
17
  };
18
+ var __export = (target, all) => {
19
+ for (var name in all)
20
+ __defProp(target, name, { get: all[name], enumerable: true });
21
+ };
22
+ var __copyProps = (to, from, except, desc) => {
23
+ if (from && typeof from === "object" || typeof from === "function") {
24
+ for (let key of __getOwnPropNames(from))
25
+ if (!__hasOwnProp.call(to, key) && key !== except)
26
+ __defProp(to, key, { get: () => from[key], enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable });
27
+ }
28
+ return to;
29
+ };
30
+ var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod);
13
31
 
14
32
  // node_modules/.pnpm/@inquirer+core@10.3.0_@types+node@24.9.2/node_modules/@inquirer/core/dist/commonjs/lib/key.js
15
33
  var require_key = __commonJS({
@@ -885,17 +903,21 @@ var require_cli_width = __commonJS({
885
903
  }
886
904
  });
887
905
 
888
- // node_modules/.pnpm/ansi-regex@5.0.1/node_modules/ansi-regex/index.js
889
- var require_ansi_regex = __commonJS({
890
- "node_modules/.pnpm/ansi-regex@5.0.1/node_modules/ansi-regex/index.js"(exports2, module2) {
891
- "use strict";
892
- module2.exports = ({ onlyFirst = false } = {}) => {
893
- const pattern = [
894
- "[\\u001B\\u009B][[\\]()#;?]*(?:(?:(?:(?:;[-a-zA-Z\\d\\/#&.:=?%@~_]+)*|[a-zA-Z\\d]+(?:;[-a-zA-Z\\d\\/#&.:=?%@~_]*)*)?\\u0007)",
895
- "(?:(?:\\d{1,4}(?:;\\d{0,4})*)?[\\dA-PR-TZcf-ntqry=><~]))"
896
- ].join("|");
897
- return new RegExp(pattern, onlyFirst ? void 0 : "g");
898
- };
906
+ // node_modules/.pnpm/ansi-regex@6.2.2/node_modules/ansi-regex/index.js
907
+ var ansi_regex_exports = {};
908
+ __export(ansi_regex_exports, {
909
+ default: () => ansiRegex
910
+ });
911
+ function ansiRegex({ onlyFirst = false } = {}) {
912
+ const ST = "(?:\\u0007|\\u001B\\u005C|\\u009C)";
913
+ const osc = `(?:\\u001B\\][\\s\\S]*?${ST})`;
914
+ const csi = "[\\u001B\\u009B][[\\]()#;?]*(?:\\d{1,4}(?:[;:]\\d{0,4})*)?[\\dA-PR-TZcf-nq-uy=><~]";
915
+ const pattern = `${osc}|${csi}`;
916
+ return new RegExp(pattern, onlyFirst ? void 0 : "g");
917
+ }
918
+ var init_ansi_regex = __esm({
919
+ "node_modules/.pnpm/ansi-regex@6.2.2/node_modules/ansi-regex/index.js"() {
920
+ __name(ansiRegex, "ansiRegex");
899
921
  }
900
922
  });
901
923
 
@@ -903,8 +925,8 @@ var require_ansi_regex = __commonJS({
903
925
  var require_strip_ansi = __commonJS({
904
926
  "node_modules/.pnpm/strip-ansi@6.0.1/node_modules/strip-ansi/index.js"(exports2, module2) {
905
927
  "use strict";
906
- var ansiRegex = require_ansi_regex();
907
- module2.exports = (string) => typeof string === "string" ? string.replace(ansiRegex(), "") : string;
928
+ var ansiRegex2 = (init_ansi_regex(), __toCommonJS(ansi_regex_exports));
929
+ module2.exports = (string) => typeof string === "string" ? string.replace(ansiRegex2(), "") : string;
908
930
  }
909
931
  });
910
932