@socketsecurity/lib 3.3.8 → 3.3.9

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,13 @@ 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.9](https://github.com/SocketDev/socket-lib/releases/tag/v3.3.9) - 2025-11-14
9
+
10
+ ### Fixed
11
+
12
+ - **deps**: Add strip-ansi override to fix bundling compatibility
13
+ - Forces strip-ansi@7.1.2 for compatibility with ansi-regex@6.2.2
14
+
8
15
  ## [3.3.8](https://github.com/SocketDev/socket-lib/releases/tag/v3.3.8) - 2025-11-14
9
16
 
10
17
  ### Fixed
@@ -906,10 +906,6 @@ var require_cli_width = __commonJS({
906
906
  });
907
907
 
908
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
909
  function ansiRegex({ onlyFirst = false } = {}) {
914
910
  const ST = "(?:\\u0007|\\u001B\\u005C|\\u009C)";
915
911
  const osc = `(?:\\u001B\\][\\s\\S]*?${ST})`;
@@ -923,12 +919,23 @@ var init_ansi_regex = __esm({
923
919
  }
924
920
  });
925
921
 
926
- // node_modules/.pnpm/strip-ansi@6.0.1/node_modules/strip-ansi/index.js
927
- var require_strip_ansi = __commonJS({
928
- "node_modules/.pnpm/strip-ansi@6.0.1/node_modules/strip-ansi/index.js"(exports2, module2) {
929
- "use strict";
930
- var ansiRegex2 = (init_ansi_regex(), __toCommonJS(ansi_regex_exports));
931
- module2.exports = (string) => typeof string === "string" ? string.replace(ansiRegex2(), "") : string;
922
+ // node_modules/.pnpm/strip-ansi@7.1.2/node_modules/strip-ansi/index.js
923
+ var strip_ansi_exports = {};
924
+ __export(strip_ansi_exports, {
925
+ default: () => stripAnsi
926
+ });
927
+ function stripAnsi(string) {
928
+ if (typeof string !== "string") {
929
+ throw new TypeError(`Expected a \`string\`, got \`${typeof string}\``);
930
+ }
931
+ return string.replace(regex, "");
932
+ }
933
+ var regex;
934
+ var init_strip_ansi = __esm({
935
+ "node_modules/.pnpm/strip-ansi@7.1.2/node_modules/strip-ansi/index.js"() {
936
+ init_ansi_regex();
937
+ regex = ansiRegex();
938
+ __name(stripAnsi, "stripAnsi");
932
939
  }
933
940
  });
934
941
 
@@ -979,14 +986,14 @@ var require_emoji_regex = __commonJS({
979
986
  var require_string_width = __commonJS({
980
987
  "node_modules/.pnpm/string-width@4.2.3/node_modules/string-width/index.js"(exports2, module2) {
981
988
  "use strict";
982
- var stripAnsi = require_strip_ansi();
989
+ var stripAnsi2 = (init_strip_ansi(), __toCommonJS(strip_ansi_exports));
983
990
  var isFullwidthCodePoint = require_is_fullwidth_code_point();
984
991
  var emojiRegex = require_emoji_regex();
985
992
  var stringWidth = /* @__PURE__ */ __name((string) => {
986
993
  if (typeof string !== "string" || string.length === 0) {
987
994
  return 0;
988
995
  }
989
- string = stripAnsi(string);
996
+ string = stripAnsi2(string);
990
997
  if (string.length === 0) {
991
998
  return 0;
992
999
  }
@@ -2126,7 +2133,7 @@ var require_wrap_ansi = __commonJS({
2126
2133
  "node_modules/.pnpm/wrap-ansi@6.2.0/node_modules/wrap-ansi/index.js"(exports2, module2) {
2127
2134
  "use strict";
2128
2135
  var stringWidth = require_string_width();
2129
- var stripAnsi = require_strip_ansi();
2136
+ var stripAnsi2 = (init_strip_ansi(), __toCommonJS(strip_ansi_exports));
2130
2137
  var ansiStyles = require_ansi_styles();
2131
2138
  var ESCAPES = /* @__PURE__ */ new Set([
2132
2139
  "\x1B",
@@ -2138,7 +2145,7 @@ var require_wrap_ansi = __commonJS({
2138
2145
  var wrapWord = /* @__PURE__ */ __name((rows, word, columns) => {
2139
2146
  const characters = [...word];
2140
2147
  let isInsideEscape = false;
2141
- let visible = stringWidth(stripAnsi(rows[rows.length - 1]));
2148
+ let visible = stringWidth(stripAnsi2(rows[rows.length - 1]));
2142
2149
  for (const [index, character] of characters.entries()) {
2143
2150
  const characterLength = stringWidth(character);
2144
2151
  if (visible + characterLength <= columns) {
@@ -904,10 +904,6 @@ var require_cli_width = __commonJS({
904
904
  });
905
905
 
906
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
907
  function ansiRegex({ onlyFirst = false } = {}) {
912
908
  const ST = "(?:\\u0007|\\u001B\\u005C|\\u009C)";
913
909
  const osc = `(?:\\u001B\\][\\s\\S]*?${ST})`;
@@ -921,12 +917,23 @@ var init_ansi_regex = __esm({
921
917
  }
922
918
  });
923
919
 
924
- // node_modules/.pnpm/strip-ansi@6.0.1/node_modules/strip-ansi/index.js
925
- var require_strip_ansi = __commonJS({
926
- "node_modules/.pnpm/strip-ansi@6.0.1/node_modules/strip-ansi/index.js"(exports2, module2) {
927
- "use strict";
928
- var ansiRegex2 = (init_ansi_regex(), __toCommonJS(ansi_regex_exports));
929
- module2.exports = (string) => typeof string === "string" ? string.replace(ansiRegex2(), "") : string;
920
+ // node_modules/.pnpm/strip-ansi@7.1.2/node_modules/strip-ansi/index.js
921
+ var strip_ansi_exports = {};
922
+ __export(strip_ansi_exports, {
923
+ default: () => stripAnsi
924
+ });
925
+ function stripAnsi(string) {
926
+ if (typeof string !== "string") {
927
+ throw new TypeError(`Expected a \`string\`, got \`${typeof string}\``);
928
+ }
929
+ return string.replace(regex, "");
930
+ }
931
+ var regex;
932
+ var init_strip_ansi = __esm({
933
+ "node_modules/.pnpm/strip-ansi@7.1.2/node_modules/strip-ansi/index.js"() {
934
+ init_ansi_regex();
935
+ regex = ansiRegex();
936
+ __name(stripAnsi, "stripAnsi");
930
937
  }
931
938
  });
932
939
 
@@ -977,14 +984,14 @@ var require_emoji_regex = __commonJS({
977
984
  var require_string_width = __commonJS({
978
985
  "node_modules/.pnpm/string-width@4.2.3/node_modules/string-width/index.js"(exports2, module2) {
979
986
  "use strict";
980
- var stripAnsi = require_strip_ansi();
987
+ var stripAnsi2 = (init_strip_ansi(), __toCommonJS(strip_ansi_exports));
981
988
  var isFullwidthCodePoint = require_is_fullwidth_code_point();
982
989
  var emojiRegex = require_emoji_regex();
983
990
  var stringWidth = /* @__PURE__ */ __name((string) => {
984
991
  if (typeof string !== "string" || string.length === 0) {
985
992
  return 0;
986
993
  }
987
- string = stripAnsi(string);
994
+ string = stripAnsi2(string);
988
995
  if (string.length === 0) {
989
996
  return 0;
990
997
  }
@@ -2124,7 +2131,7 @@ var require_wrap_ansi = __commonJS({
2124
2131
  "node_modules/.pnpm/wrap-ansi@6.2.0/node_modules/wrap-ansi/index.js"(exports2, module2) {
2125
2132
  "use strict";
2126
2133
  var stringWidth = require_string_width();
2127
- var stripAnsi = require_strip_ansi();
2134
+ var stripAnsi2 = (init_strip_ansi(), __toCommonJS(strip_ansi_exports));
2128
2135
  var ansiStyles = require_ansi_styles();
2129
2136
  var ESCAPES = /* @__PURE__ */ new Set([
2130
2137
  "\x1B",
@@ -2136,7 +2143,7 @@ var require_wrap_ansi = __commonJS({
2136
2143
  var wrapWord = /* @__PURE__ */ __name((rows, word, columns) => {
2137
2144
  const characters = [...word];
2138
2145
  let isInsideEscape = false;
2139
- let visible = stringWidth(stripAnsi(rows[rows.length - 1]));
2146
+ let visible = stringWidth(stripAnsi2(rows[rows.length - 1]));
2140
2147
  for (const [index, character] of characters.entries()) {
2141
2148
  const characterLength = stringWidth(character);
2142
2149
  if (visible + characterLength <= columns) {
@@ -904,10 +904,6 @@ var require_cli_width = __commonJS({
904
904
  });
905
905
 
906
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
907
  function ansiRegex({ onlyFirst = false } = {}) {
912
908
  const ST = "(?:\\u0007|\\u001B\\u005C|\\u009C)";
913
909
  const osc = `(?:\\u001B\\][\\s\\S]*?${ST})`;
@@ -921,12 +917,23 @@ var init_ansi_regex = __esm({
921
917
  }
922
918
  });
923
919
 
924
- // node_modules/.pnpm/strip-ansi@6.0.1/node_modules/strip-ansi/index.js
925
- var require_strip_ansi = __commonJS({
926
- "node_modules/.pnpm/strip-ansi@6.0.1/node_modules/strip-ansi/index.js"(exports2, module2) {
927
- "use strict";
928
- var ansiRegex2 = (init_ansi_regex(), __toCommonJS(ansi_regex_exports));
929
- module2.exports = (string) => typeof string === "string" ? string.replace(ansiRegex2(), "") : string;
920
+ // node_modules/.pnpm/strip-ansi@7.1.2/node_modules/strip-ansi/index.js
921
+ var strip_ansi_exports = {};
922
+ __export(strip_ansi_exports, {
923
+ default: () => stripAnsi
924
+ });
925
+ function stripAnsi(string) {
926
+ if (typeof string !== "string") {
927
+ throw new TypeError(`Expected a \`string\`, got \`${typeof string}\``);
928
+ }
929
+ return string.replace(regex, "");
930
+ }
931
+ var regex;
932
+ var init_strip_ansi = __esm({
933
+ "node_modules/.pnpm/strip-ansi@7.1.2/node_modules/strip-ansi/index.js"() {
934
+ init_ansi_regex();
935
+ regex = ansiRegex();
936
+ __name(stripAnsi, "stripAnsi");
930
937
  }
931
938
  });
932
939
 
@@ -977,14 +984,14 @@ var require_emoji_regex = __commonJS({
977
984
  var require_string_width = __commonJS({
978
985
  "node_modules/.pnpm/string-width@4.2.3/node_modules/string-width/index.js"(exports2, module2) {
979
986
  "use strict";
980
- var stripAnsi = require_strip_ansi();
987
+ var stripAnsi2 = (init_strip_ansi(), __toCommonJS(strip_ansi_exports));
981
988
  var isFullwidthCodePoint = require_is_fullwidth_code_point();
982
989
  var emojiRegex = require_emoji_regex();
983
990
  var stringWidth = /* @__PURE__ */ __name((string) => {
984
991
  if (typeof string !== "string" || string.length === 0) {
985
992
  return 0;
986
993
  }
987
- string = stripAnsi(string);
994
+ string = stripAnsi2(string);
988
995
  if (string.length === 0) {
989
996
  return 0;
990
997
  }
@@ -2124,7 +2131,7 @@ var require_wrap_ansi = __commonJS({
2124
2131
  "node_modules/.pnpm/wrap-ansi@6.2.0/node_modules/wrap-ansi/index.js"(exports2, module2) {
2125
2132
  "use strict";
2126
2133
  var stringWidth = require_string_width();
2127
- var stripAnsi = require_strip_ansi();
2134
+ var stripAnsi2 = (init_strip_ansi(), __toCommonJS(strip_ansi_exports));
2128
2135
  var ansiStyles = require_ansi_styles();
2129
2136
  var ESCAPES = /* @__PURE__ */ new Set([
2130
2137
  "\x1B",
@@ -2136,7 +2143,7 @@ var require_wrap_ansi = __commonJS({
2136
2143
  var wrapWord = /* @__PURE__ */ __name((rows, word, columns) => {
2137
2144
  const characters = [...word];
2138
2145
  let isInsideEscape = false;
2139
- let visible = stringWidth(stripAnsi(rows[rows.length - 1]));
2146
+ let visible = stringWidth(stripAnsi2(rows[rows.length - 1]));
2140
2147
  for (const [index, character] of characters.entries()) {
2141
2148
  const characterLength = stringWidth(character);
2142
2149
  if (visible + characterLength <= columns) {
@@ -904,10 +904,6 @@ var require_cli_width = __commonJS({
904
904
  });
905
905
 
906
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
907
  function ansiRegex({ onlyFirst = false } = {}) {
912
908
  const ST = "(?:\\u0007|\\u001B\\u005C|\\u009C)";
913
909
  const osc = `(?:\\u001B\\][\\s\\S]*?${ST})`;
@@ -921,12 +917,23 @@ var init_ansi_regex = __esm({
921
917
  }
922
918
  });
923
919
 
924
- // node_modules/.pnpm/strip-ansi@6.0.1/node_modules/strip-ansi/index.js
925
- var require_strip_ansi = __commonJS({
926
- "node_modules/.pnpm/strip-ansi@6.0.1/node_modules/strip-ansi/index.js"(exports2, module2) {
927
- "use strict";
928
- var ansiRegex2 = (init_ansi_regex(), __toCommonJS(ansi_regex_exports));
929
- module2.exports = (string) => typeof string === "string" ? string.replace(ansiRegex2(), "") : string;
920
+ // node_modules/.pnpm/strip-ansi@7.1.2/node_modules/strip-ansi/index.js
921
+ var strip_ansi_exports = {};
922
+ __export(strip_ansi_exports, {
923
+ default: () => stripAnsi
924
+ });
925
+ function stripAnsi(string) {
926
+ if (typeof string !== "string") {
927
+ throw new TypeError(`Expected a \`string\`, got \`${typeof string}\``);
928
+ }
929
+ return string.replace(regex, "");
930
+ }
931
+ var regex;
932
+ var init_strip_ansi = __esm({
933
+ "node_modules/.pnpm/strip-ansi@7.1.2/node_modules/strip-ansi/index.js"() {
934
+ init_ansi_regex();
935
+ regex = ansiRegex();
936
+ __name(stripAnsi, "stripAnsi");
930
937
  }
931
938
  });
932
939
 
@@ -977,14 +984,14 @@ var require_emoji_regex = __commonJS({
977
984
  var require_string_width = __commonJS({
978
985
  "node_modules/.pnpm/string-width@4.2.3/node_modules/string-width/index.js"(exports2, module2) {
979
986
  "use strict";
980
- var stripAnsi = require_strip_ansi();
987
+ var stripAnsi2 = (init_strip_ansi(), __toCommonJS(strip_ansi_exports));
981
988
  var isFullwidthCodePoint = require_is_fullwidth_code_point();
982
989
  var emojiRegex = require_emoji_regex();
983
990
  var stringWidth = /* @__PURE__ */ __name((string) => {
984
991
  if (typeof string !== "string" || string.length === 0) {
985
992
  return 0;
986
993
  }
987
- string = stripAnsi(string);
994
+ string = stripAnsi2(string);
988
995
  if (string.length === 0) {
989
996
  return 0;
990
997
  }
@@ -2124,7 +2131,7 @@ var require_wrap_ansi = __commonJS({
2124
2131
  "node_modules/.pnpm/wrap-ansi@6.2.0/node_modules/wrap-ansi/index.js"(exports2, module2) {
2125
2132
  "use strict";
2126
2133
  var stringWidth = require_string_width();
2127
- var stripAnsi = require_strip_ansi();
2134
+ var stripAnsi2 = (init_strip_ansi(), __toCommonJS(strip_ansi_exports));
2128
2135
  var ansiStyles = require_ansi_styles();
2129
2136
  var ESCAPES = /* @__PURE__ */ new Set([
2130
2137
  "\x1B",
@@ -2136,7 +2143,7 @@ var require_wrap_ansi = __commonJS({
2136
2143
  var wrapWord = /* @__PURE__ */ __name((rows, word, columns) => {
2137
2144
  const characters = [...word];
2138
2145
  let isInsideEscape = false;
2139
- let visible = stringWidth(stripAnsi(rows[rows.length - 1]));
2146
+ let visible = stringWidth(stripAnsi2(rows[rows.length - 1]));
2140
2147
  for (const [index, character] of characters.entries()) {
2141
2148
  const characterLength = stringWidth(character);
2142
2149
  if (visible + characterLength <= columns) {
@@ -904,10 +904,6 @@ var require_cli_width = __commonJS({
904
904
  });
905
905
 
906
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
907
  function ansiRegex({ onlyFirst = false } = {}) {
912
908
  const ST = "(?:\\u0007|\\u001B\\u005C|\\u009C)";
913
909
  const osc = `(?:\\u001B\\][\\s\\S]*?${ST})`;
@@ -921,12 +917,23 @@ var init_ansi_regex = __esm({
921
917
  }
922
918
  });
923
919
 
924
- // node_modules/.pnpm/strip-ansi@6.0.1/node_modules/strip-ansi/index.js
925
- var require_strip_ansi = __commonJS({
926
- "node_modules/.pnpm/strip-ansi@6.0.1/node_modules/strip-ansi/index.js"(exports2, module2) {
927
- "use strict";
928
- var ansiRegex2 = (init_ansi_regex(), __toCommonJS(ansi_regex_exports));
929
- module2.exports = (string) => typeof string === "string" ? string.replace(ansiRegex2(), "") : string;
920
+ // node_modules/.pnpm/strip-ansi@7.1.2/node_modules/strip-ansi/index.js
921
+ var strip_ansi_exports = {};
922
+ __export(strip_ansi_exports, {
923
+ default: () => stripAnsi
924
+ });
925
+ function stripAnsi(string) {
926
+ if (typeof string !== "string") {
927
+ throw new TypeError(`Expected a \`string\`, got \`${typeof string}\``);
928
+ }
929
+ return string.replace(regex, "");
930
+ }
931
+ var regex;
932
+ var init_strip_ansi = __esm({
933
+ "node_modules/.pnpm/strip-ansi@7.1.2/node_modules/strip-ansi/index.js"() {
934
+ init_ansi_regex();
935
+ regex = ansiRegex();
936
+ __name(stripAnsi, "stripAnsi");
930
937
  }
931
938
  });
932
939
 
@@ -977,14 +984,14 @@ var require_emoji_regex = __commonJS({
977
984
  var require_string_width = __commonJS({
978
985
  "node_modules/.pnpm/string-width@4.2.3/node_modules/string-width/index.js"(exports2, module2) {
979
986
  "use strict";
980
- var stripAnsi = require_strip_ansi();
987
+ var stripAnsi2 = (init_strip_ansi(), __toCommonJS(strip_ansi_exports));
981
988
  var isFullwidthCodePoint = require_is_fullwidth_code_point();
982
989
  var emojiRegex = require_emoji_regex();
983
990
  var stringWidth = /* @__PURE__ */ __name((string) => {
984
991
  if (typeof string !== "string" || string.length === 0) {
985
992
  return 0;
986
993
  }
987
- string = stripAnsi(string);
994
+ string = stripAnsi2(string);
988
995
  if (string.length === 0) {
989
996
  return 0;
990
997
  }
@@ -2124,7 +2131,7 @@ var require_wrap_ansi = __commonJS({
2124
2131
  "node_modules/.pnpm/wrap-ansi@6.2.0/node_modules/wrap-ansi/index.js"(exports2, module2) {
2125
2132
  "use strict";
2126
2133
  var stringWidth = require_string_width();
2127
- var stripAnsi = require_strip_ansi();
2134
+ var stripAnsi2 = (init_strip_ansi(), __toCommonJS(strip_ansi_exports));
2128
2135
  var ansiStyles = require_ansi_styles();
2129
2136
  var ESCAPES = /* @__PURE__ */ new Set([
2130
2137
  "\x1B",
@@ -2136,7 +2143,7 @@ var require_wrap_ansi = __commonJS({
2136
2143
  var wrapWord = /* @__PURE__ */ __name((rows, word, columns) => {
2137
2144
  const characters = [...word];
2138
2145
  let isInsideEscape = false;
2139
- let visible = stringWidth(stripAnsi(rows[rows.length - 1]));
2146
+ let visible = stringWidth(stripAnsi2(rows[rows.length - 1]));
2140
2147
  for (const [index, character] of characters.entries()) {
2141
2148
  const characterLength = stringWidth(character);
2142
2149
  if (visible + characterLength <= columns) {
@@ -904,10 +904,6 @@ var require_cli_width = __commonJS({
904
904
  });
905
905
 
906
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
907
  function ansiRegex({ onlyFirst = false } = {}) {
912
908
  const ST = "(?:\\u0007|\\u001B\\u005C|\\u009C)";
913
909
  const osc = `(?:\\u001B\\][\\s\\S]*?${ST})`;
@@ -921,12 +917,23 @@ var init_ansi_regex = __esm({
921
917
  }
922
918
  });
923
919
 
924
- // node_modules/.pnpm/strip-ansi@6.0.1/node_modules/strip-ansi/index.js
925
- var require_strip_ansi = __commonJS({
926
- "node_modules/.pnpm/strip-ansi@6.0.1/node_modules/strip-ansi/index.js"(exports2, module2) {
927
- "use strict";
928
- var ansiRegex2 = (init_ansi_regex(), __toCommonJS(ansi_regex_exports));
929
- module2.exports = (string) => typeof string === "string" ? string.replace(ansiRegex2(), "") : string;
920
+ // node_modules/.pnpm/strip-ansi@7.1.2/node_modules/strip-ansi/index.js
921
+ var strip_ansi_exports = {};
922
+ __export(strip_ansi_exports, {
923
+ default: () => stripAnsi
924
+ });
925
+ function stripAnsi(string) {
926
+ if (typeof string !== "string") {
927
+ throw new TypeError(`Expected a \`string\`, got \`${typeof string}\``);
928
+ }
929
+ return string.replace(regex, "");
930
+ }
931
+ var regex;
932
+ var init_strip_ansi = __esm({
933
+ "node_modules/.pnpm/strip-ansi@7.1.2/node_modules/strip-ansi/index.js"() {
934
+ init_ansi_regex();
935
+ regex = ansiRegex();
936
+ __name(stripAnsi, "stripAnsi");
930
937
  }
931
938
  });
932
939
 
@@ -977,14 +984,14 @@ var require_emoji_regex = __commonJS({
977
984
  var require_string_width = __commonJS({
978
985
  "node_modules/.pnpm/string-width@4.2.3/node_modules/string-width/index.js"(exports2, module2) {
979
986
  "use strict";
980
- var stripAnsi = require_strip_ansi();
987
+ var stripAnsi2 = (init_strip_ansi(), __toCommonJS(strip_ansi_exports));
981
988
  var isFullwidthCodePoint = require_is_fullwidth_code_point();
982
989
  var emojiRegex = require_emoji_regex();
983
990
  var stringWidth = /* @__PURE__ */ __name((string) => {
984
991
  if (typeof string !== "string" || string.length === 0) {
985
992
  return 0;
986
993
  }
987
- string = stripAnsi(string);
994
+ string = stripAnsi2(string);
988
995
  if (string.length === 0) {
989
996
  return 0;
990
997
  }
@@ -2124,7 +2131,7 @@ var require_wrap_ansi = __commonJS({
2124
2131
  "node_modules/.pnpm/wrap-ansi@6.2.0/node_modules/wrap-ansi/index.js"(exports2, module2) {
2125
2132
  "use strict";
2126
2133
  var stringWidth = require_string_width();
2127
- var stripAnsi = require_strip_ansi();
2134
+ var stripAnsi2 = (init_strip_ansi(), __toCommonJS(strip_ansi_exports));
2128
2135
  var ansiStyles = require_ansi_styles();
2129
2136
  var ESCAPES = /* @__PURE__ */ new Set([
2130
2137
  "\x1B",
@@ -2136,7 +2143,7 @@ var require_wrap_ansi = __commonJS({
2136
2143
  var wrapWord = /* @__PURE__ */ __name((rows, word, columns) => {
2137
2144
  const characters = [...word];
2138
2145
  let isInsideEscape = false;
2139
- let visible = stringWidth(stripAnsi(rows[rows.length - 1]));
2146
+ let visible = stringWidth(stripAnsi2(rows[rows.length - 1]));
2140
2147
  for (const [index, character] of characters.entries()) {
2141
2148
  const characterLength = stringWidth(character);
2142
2149
  if (visible + characterLength <= columns) {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@socketsecurity/lib",
3
- "version": "3.3.8",
3
+ "version": "3.3.9",
4
4
  "packageManager": "pnpm@10.22.0",
5
5
  "license": "MIT",
6
6
  "description": "Core utilities and infrastructure for Socket.dev security tools",
@@ -749,6 +749,7 @@
749
749
  "@npmcli/run-script": "10.0.0",
750
750
  "semver": "7.7.2",
751
751
  "ansi-regex": "6.2.2",
752
+ "strip-ansi": "7.1.2",
752
753
  "lru-cache": "11.2.2"
753
754
  },
754
755
  "patchedDependencies": {