@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.
- package/CHANGELOG.md +24 -1
- package/dist/constants/node.js +1 -1
- package/dist/constants/packages.js +4 -4
- package/dist/external/@inquirer/confirm.js +3199 -18
- package/dist/external/@inquirer/input.js +3223 -18
- package/dist/external/@inquirer/password.js +3331 -18
- package/dist/external/@inquirer/search.js +3328 -21
- package/dist/external/@inquirer/select.js +3445 -21
- package/dist/external/@npmcli/package-json/lib/read-package.js +149 -2
- package/dist/external/@npmcli/package-json/lib/sort.js +96 -1
- package/dist/external/@npmcli/package-json.js +16758 -13
- package/dist/external/@npmcli/promise-spawn.js +480 -1
- package/dist/external/@socketregistry/is-unicode-supported.js +42 -1
- package/dist/external/@socketregistry/packageurl-js.js +6493 -2
- package/dist/external/@socketregistry/yocto-spinner.js +460 -4
- package/dist/external/@yarnpkg/extensions.js +1025 -1
- package/dist/external/cacache.js +13016 -12
- package/dist/external/debug.js +27 -1
- package/dist/external/del.js +7088 -2
- package/dist/external/fast-glob.js +5721 -2
- package/dist/external/fast-sort.js +140 -1
- package/dist/external/get-east-asian-width.js +90 -1
- package/dist/external/libnpmexec.js +33 -1
- package/dist/external/libnpmpack.js +67595 -129
- package/dist/external/make-fetch-happen.js +22595 -21
- package/dist/external/normalize-package-data.js +4474 -2
- package/dist/external/npm-package-arg.js +4511 -2
- package/dist/external/pacote.js +50270 -57
- package/dist/external/picomatch.js +1520 -1
- package/dist/external/semver.js +1930 -1
- package/dist/external/spdx-correct.js +1380 -1
- package/dist/external/spdx-expression-parse.js +1043 -1
- package/dist/external/streaming-iterables.js +1056 -1
- package/dist/external/validate-npm-package-name.js +100 -1
- package/dist/external/which.js +258 -1
- package/dist/external/yargs-parser.js +1075 -1
- package/dist/external/yoctocolors-cjs.js +88 -1
- package/dist/external/zod.js +15207 -13
- package/dist/lifecycle-script-names.js +3 -4
- package/dist/maintained-node-versions.js +3 -4
- package/dist/package-default-node-range.js +4 -5
- package/dist/package-default-socket-categories.js +3 -4
- package/dist/package-extensions.js +3 -4
- package/dist/utils/get-ipc.js +3 -5
- 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
|
-
## [
|
|
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
|
|
package/dist/constants/node.js
CHANGED
|
@@ -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")
|
|
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")
|
|
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")
|
|
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")
|
|
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")
|
|
70
|
+
const scriptNamesSet = require("../lifecycle-script-names");
|
|
71
71
|
_lifecycleScriptNames = Array.from(scriptNamesSet);
|
|
72
72
|
}
|
|
73
73
|
return _lifecycleScriptNames;
|