@socketsecurity/lib 3.2.7 → 3.2.8

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,7 +5,14 @@ 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
- ## [Unreleased]
8
+ ## [3.2.8](https://github.com/SocketDev/socket-lib/releases/tag/v3.2.8) - 2025-11-05
9
+
10
+ ### Fixed
11
+
12
+ - **build**: Fix CommonJS export script edge cases
13
+ - Fixed stray semicolons after comment placeholders in transformed modules
14
+ - Fixed incorrect transformation of `module.exports.default` to `module.module.exports`
15
+ - Ensures external dependencies and default exports work correctly
9
16
 
10
17
  ## [3.2.7](https://github.com/SocketDev/socket-lib/releases/tag/v3.2.7) - 2025-11-05
11
18
 
@@ -937,7 +937,7 @@ var require_is_fullwidth_code_point = __commonJS({
937
937
  return false;
938
938
  }, "isFullwidthCodePoint");
939
939
  module2.exports = isFullwidthCodePoint;
940
- module2.module.exports = isFullwidthCodePoint;
940
+ module2.exports.default = isFullwidthCodePoint;
941
941
  }
942
942
  });
943
943
 
@@ -984,7 +984,7 @@ var require_string_width = __commonJS({
984
984
  return width;
985
985
  }, "stringWidth");
986
986
  module2.exports = stringWidth;
987
- module2.module.exports = stringWidth;
987
+ module2.exports.default = stringWidth;
988
988
  }
989
989
  });
990
990
 
@@ -937,7 +937,7 @@ var require_is_fullwidth_code_point = __commonJS({
937
937
  return false;
938
938
  }, "isFullwidthCodePoint");
939
939
  module2.exports = isFullwidthCodePoint;
940
- module2.module.exports = isFullwidthCodePoint;
940
+ module2.exports.default = isFullwidthCodePoint;
941
941
  }
942
942
  });
943
943
 
@@ -984,7 +984,7 @@ var require_string_width = __commonJS({
984
984
  return width;
985
985
  }, "stringWidth");
986
986
  module2.exports = stringWidth;
987
- module2.module.exports = stringWidth;
987
+ module2.exports.default = stringWidth;
988
988
  }
989
989
  });
990
990
 
@@ -937,7 +937,7 @@ var require_is_fullwidth_code_point = __commonJS({
937
937
  return false;
938
938
  }, "isFullwidthCodePoint");
939
939
  module2.exports = isFullwidthCodePoint;
940
- module2.module.exports = isFullwidthCodePoint;
940
+ module2.exports.default = isFullwidthCodePoint;
941
941
  }
942
942
  });
943
943
 
@@ -984,7 +984,7 @@ var require_string_width = __commonJS({
984
984
  return width;
985
985
  }, "stringWidth");
986
986
  module2.exports = stringWidth;
987
- module2.module.exports = stringWidth;
987
+ module2.exports.default = stringWidth;
988
988
  }
989
989
  });
990
990
 
@@ -3150,7 +3150,7 @@ var require_ansi_escapes = __commonJS({
3150
3150
  "node_modules/.pnpm/ansi-escapes@4.3.2/node_modules/ansi-escapes/index.js"(exports2, module2) {
3151
3151
  "use strict";
3152
3152
  var ansiEscapes = module2.exports;
3153
- module2.module.exports = ansiEscapes;
3153
+ module2.exports.default = ansiEscapes;
3154
3154
  var ESC = "\x1B[";
3155
3155
  var OSC = "\x1B]";
3156
3156
  var BEL = "\x07";
@@ -937,7 +937,7 @@ var require_is_fullwidth_code_point = __commonJS({
937
937
  return false;
938
938
  }, "isFullwidthCodePoint");
939
939
  module2.exports = isFullwidthCodePoint;
940
- module2.module.exports = isFullwidthCodePoint;
940
+ module2.exports.default = isFullwidthCodePoint;
941
941
  }
942
942
  });
943
943
 
@@ -984,7 +984,7 @@ var require_string_width = __commonJS({
984
984
  return width;
985
985
  }, "stringWidth");
986
986
  module2.exports = stringWidth;
987
- module2.module.exports = stringWidth;
987
+ module2.exports.default = stringWidth;
988
988
  }
989
989
  });
990
990
 
@@ -937,7 +937,7 @@ var require_is_fullwidth_code_point = __commonJS({
937
937
  return false;
938
938
  }, "isFullwidthCodePoint");
939
939
  module2.exports = isFullwidthCodePoint;
940
- module2.module.exports = isFullwidthCodePoint;
940
+ module2.exports.default = isFullwidthCodePoint;
941
941
  }
942
942
  });
943
943
 
@@ -984,7 +984,7 @@ var require_string_width = __commonJS({
984
984
  return width;
985
985
  }, "stringWidth");
986
986
  module2.exports = stringWidth;
987
- module2.module.exports = stringWidth;
987
+ module2.exports.default = stringWidth;
988
988
  }
989
989
  });
990
990
 
@@ -3150,7 +3150,7 @@ var require_ansi_escapes = __commonJS({
3150
3150
  "node_modules/.pnpm/ansi-escapes@4.3.2/node_modules/ansi-escapes/index.js"(exports2, module2) {
3151
3151
  "use strict";
3152
3152
  var ansiEscapes = module2.exports;
3153
- module2.module.exports = ansiEscapes;
3153
+ module2.exports.default = ansiEscapes;
3154
3154
  var ESC = "\x1B[";
3155
3155
  var OSC = "\x1B]";
3156
3156
  var BEL = "\x07";
@@ -462,4 +462,4 @@ var require_yocto_spinner = __commonJS({
462
462
  // src/external/@socketregistry/yocto-spinner.js
463
463
  var YoctoSpinner = require_yocto_spinner();
464
464
  module.exports = YoctoSpinner;
465
- module.module.exports = YoctoSpinner;
465
+ module.exports.default = YoctoSpinner;
@@ -90,4 +90,4 @@ var require_yoctocolors_cjs = __commonJS({
90
90
  // src/external/yoctocolors-cjs.js
91
91
  var colors = require_yoctocolors_cjs();
92
92
  module.exports = colors;
93
- module.module.exports = colors;
93
+ module.exports.default = colors;
@@ -18,7 +18,7 @@ var __copyProps = (to, from, except, desc) => {
18
18
  };
19
19
  var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod);
20
20
  var lifecycle_script_names_exports = {};
21
- /* module.exports will be set at end of file */;
21
+ /* module.exports will be set at end of file */
22
22
  var lifecycle_script_names_default = new Set(
23
23
  [
24
24
  "dependencies",
@@ -18,7 +18,7 @@ var __copyProps = (to, from, except, desc) => {
18
18
  };
19
19
  var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod);
20
20
  var maintained_node_versions_exports = {};
21
- /* module.exports will be set at end of file */;
21
+ /* module.exports will be set at end of file */
22
22
  const ObjectFreeze = Object.freeze;
23
23
  const next = "25.0.0";
24
24
  const current = "22.20.0";
@@ -18,7 +18,7 @@ var __copyProps = (to, from, except, desc) => {
18
18
  };
19
19
  var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod);
20
20
  var package_default_node_range_exports = {};
21
- /* module.exports will be set at end of file */;
21
+ /* module.exports will be set at end of file */
22
22
  const maintainedNodeVersions = require("./maintained-node-versions");
23
23
  const semver = require("./external/semver");
24
24
  var package_default_node_range_default = `>=${semver.parse(maintainedNodeVersions.last).major}`;
@@ -18,7 +18,7 @@ var __copyProps = (to, from, except, desc) => {
18
18
  };
19
19
  var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod);
20
20
  var package_default_socket_categories_exports = {};
21
- /* module.exports will be set at end of file */;
21
+ /* module.exports will be set at end of file */
22
22
  var package_default_socket_categories_default = Object.freeze(["cleanup"]);
23
23
 
24
24
  module.exports = package_default_socket_categories_default;
@@ -18,7 +18,7 @@ var __copyProps = (to, from, except, desc) => {
18
18
  };
19
19
  var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod);
20
20
  var package_extensions_exports = {};
21
- /* module.exports will be set at end of file */;
21
+ /* module.exports will be set at end of file */
22
22
  const { freeze: ObjectFreeze } = Object;
23
23
  const yarnPkgExtensions = require("./external/@yarnpkg/extensions");
24
24
  var package_extensions_default = ObjectFreeze(
@@ -18,7 +18,7 @@ var __copyProps = (to, from, except, desc) => {
18
18
  };
19
19
  var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod);
20
20
  var get_ipc_exports = {};
21
- /* module.exports will be set at end of file */;
21
+ /* module.exports will be set at end of file */
22
22
  let _ipcObject;
23
23
  async function getIpc(key) {
24
24
  if (_ipcObject === void 0) {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@socketsecurity/lib",
3
- "version": "3.2.7",
3
+ "version": "3.2.8",
4
4
  "license": "MIT",
5
5
  "description": "Core utilities and infrastructure for Socket.dev security tools",
6
6
  "keywords": [