@socketsecurity/lib 3.2.6 → 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.
Files changed (45) hide show
  1. package/CHANGELOG.md +24 -1
  2. package/dist/constants/node.js +1 -1
  3. package/dist/constants/packages.js +4 -4
  4. package/dist/external/@inquirer/confirm.js +3199 -18
  5. package/dist/external/@inquirer/input.js +3223 -18
  6. package/dist/external/@inquirer/password.js +3331 -18
  7. package/dist/external/@inquirer/search.js +3328 -21
  8. package/dist/external/@inquirer/select.js +3445 -21
  9. package/dist/external/@npmcli/package-json/lib/read-package.js +149 -2
  10. package/dist/external/@npmcli/package-json/lib/sort.js +96 -1
  11. package/dist/external/@npmcli/package-json.js +16758 -13
  12. package/dist/external/@npmcli/promise-spawn.js +480 -1
  13. package/dist/external/@socketregistry/is-unicode-supported.js +42 -1
  14. package/dist/external/@socketregistry/packageurl-js.js +6493 -2
  15. package/dist/external/@socketregistry/yocto-spinner.js +460 -4
  16. package/dist/external/@yarnpkg/extensions.js +1025 -1
  17. package/dist/external/cacache.js +13016 -12
  18. package/dist/external/debug.js +27 -1
  19. package/dist/external/del.js +7088 -2
  20. package/dist/external/fast-glob.js +5721 -2
  21. package/dist/external/fast-sort.js +140 -1
  22. package/dist/external/get-east-asian-width.js +90 -1
  23. package/dist/external/libnpmexec.js +33 -1
  24. package/dist/external/libnpmpack.js +67595 -129
  25. package/dist/external/make-fetch-happen.js +22595 -21
  26. package/dist/external/normalize-package-data.js +4474 -2
  27. package/dist/external/npm-package-arg.js +4511 -2
  28. package/dist/external/pacote.js +50270 -57
  29. package/dist/external/picomatch.js +1520 -1
  30. package/dist/external/semver.js +1930 -1
  31. package/dist/external/spdx-correct.js +1380 -1
  32. package/dist/external/spdx-expression-parse.js +1043 -1
  33. package/dist/external/streaming-iterables.js +1056 -1
  34. package/dist/external/validate-npm-package-name.js +100 -1
  35. package/dist/external/which.js +258 -1
  36. package/dist/external/yargs-parser.js +1075 -1
  37. package/dist/external/yoctocolors-cjs.js +88 -1
  38. package/dist/external/zod.js +15207 -13
  39. package/dist/lifecycle-script-names.js +3 -4
  40. package/dist/maintained-node-versions.js +3 -4
  41. package/dist/package-default-node-range.js +4 -5
  42. package/dist/package-default-socket-categories.js +3 -4
  43. package/dist/package-extensions.js +3 -4
  44. package/dist/utils/get-ipc.js +3 -5
  45. package/package.json +1 -1
package/CHANGELOG.md CHANGED
@@ -5,7 +5,30 @@ 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
16
+
17
+ ## [3.2.7](https://github.com/SocketDev/socket-lib/releases/tag/v3.2.7) - 2025-11-05
18
+
19
+ ### Fixed
20
+
21
+ - **build-externals**: Disable minification to preserve exports
22
+ - External dependencies are no longer minified during bundling
23
+ - Prevents export name mangling that breaks CommonJS interop
24
+ - Fixes `semver.parse()` and `semver.major()` being undefined
25
+
26
+ - **build**: Fix CommonJS export interop for TypeScript default exports
27
+ - Modules with `export default` now work without requiring `.default` accessor
28
+
29
+ ### Changed
30
+
31
+ - **docs**: Moved packages README to correct location (`src/packages/README.md`)
9
32
 
10
33
  ## [3.2.6](https://github.com/SocketDev/socket-lib/releases/tag/v3.2.6) - 2025-11-05
11
34
 
@@ -49,7 +49,7 @@ function getNodeMajorVersion() {
49
49
  let _maintainedNodeVersions;
50
50
  function getMaintainedNodeVersions() {
51
51
  if (_maintainedNodeVersions === void 0) {
52
- _maintainedNodeVersions = require("../maintained-node-versions").default;
52
+ _maintainedNodeVersions = require("../maintained-node-versions");
53
53
  }
54
54
  return _maintainedNodeVersions;
55
55
  }
@@ -45,19 +45,19 @@ const LATEST = "latest";
45
45
  const PACKAGE_DEFAULT_VERSION = "1.0.0";
46
46
  function getPackageDefaultNodeRange() {
47
47
  if (_packageDefaultNodeRange === void 0) {
48
- _packageDefaultNodeRange = require("../package-default-node-range").default;
48
+ _packageDefaultNodeRange = require("../package-default-node-range");
49
49
  }
50
50
  return _packageDefaultNodeRange;
51
51
  }
52
52
  function getPackageDefaultSocketCategories() {
53
53
  if (_packageDefaultSocketCategories === void 0) {
54
- _packageDefaultSocketCategories = require("../package-default-socket-categories").default;
54
+ _packageDefaultSocketCategories = require("../package-default-socket-categories");
55
55
  }
56
56
  return _packageDefaultSocketCategories;
57
57
  }
58
58
  function getPackageExtensions() {
59
59
  if (_packageExtensions === void 0) {
60
- const exts = require("../package-extensions").default;
60
+ const exts = require("../package-extensions");
61
61
  _packageExtensions = Object.entries(exts);
62
62
  }
63
63
  return _packageExtensions;
@@ -67,7 +67,7 @@ function getNpmLifecycleEvent() {
67
67
  }
68
68
  function getLifecycleScriptNames() {
69
69
  if (_lifecycleScriptNames === void 0) {
70
- const scriptNamesSet = require("../lifecycle-script-names").default;
70
+ const scriptNamesSet = require("../lifecycle-script-names");
71
71
  _lifecycleScriptNames = Array.from(scriptNamesSet);
72
72
  }
73
73
  return _lifecycleScriptNames;