@socketsecurity/lib 3.3.0 → 3.3.1

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.1](https://github.com/SocketDev/socket-lib/releases/tag/v3.3.1) - 2025-11-11
9
+
10
+ ### Added
11
+
12
+ - Added `SOCKET_DOCS_CONTACT_URL` constant for documentation contact support page
13
+ - Added `checkbox` prompt support
14
+
8
15
  ## [3.3.0](https://github.com/SocketDev/socket-lib/releases/tag/v3.3.0) - 2025-11-07
9
16
 
10
17
  ### Added
package/README.md CHANGED
@@ -2,11 +2,12 @@
2
2
 
3
3
  [![Socket Badge](https://socket.dev/api/badge/npm/package/@socketsecurity/lib)](https://socket.dev/npm/package/@socketsecurity/lib)
4
4
  [![CI](https://github.com/SocketDev/socket-lib/actions/workflows/ci.yml/badge.svg)](https://github.com/SocketDev/socket-lib/actions/workflows/ci.yml)
5
- ![Coverage](https://img.shields.io/badge/coverage-83.02%25-brightgreen)
5
+ ![Coverage](https://img.shields.io/badge/coverage-83.06%25-brightgreen)
6
6
 
7
7
  [![Follow @SocketSecurity](https://img.shields.io/twitter/follow/SocketSecurity?style=social)](https://twitter.com/SocketSecurity)
8
+ [![Follow @socket.dev on Bluesky](https://img.shields.io/badge/Follow-@socket.dev-1DA1F2?style=social&logo=bluesky)](https://bsky.app/profile/socket.dev)
8
9
 
9
- Core library for Socket.dev tools.
10
+ Core library for [Socket.dev](https://socket.dev/) tools.
10
11
 
11
12
  ## Install
12
13
 
@@ -49,7 +49,7 @@ function getNodeMajorVersion() {
49
49
  let _maintainedNodeVersions;
50
50
  function getMaintainedNodeVersions() {
51
51
  if (_maintainedNodeVersions === void 0) {
52
- _maintainedNodeVersions = require("#lib/maintained-node-versions").default;
52
+ _maintainedNodeVersions = require("#lib/maintained-node-versions").maintainedNodeVersions;
53
53
  }
54
54
  return _maintainedNodeVersions;
55
55
  }
@@ -45,20 +45,20 @@ 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("#lib/package-default-node-range").default;
48
+ _packageDefaultNodeRange = require("#lib/package-default-node-range").packageDefaultNodeRange;
49
49
  }
50
50
  return _packageDefaultNodeRange;
51
51
  }
52
52
  function getPackageDefaultSocketCategories() {
53
53
  if (_packageDefaultSocketCategories === void 0) {
54
- _packageDefaultSocketCategories = require("#lib/package-default-socket-categories").default;
54
+ _packageDefaultSocketCategories = require("#lib/package-default-socket-categories").packageDefaultSocketCategories;
55
55
  }
56
56
  return _packageDefaultSocketCategories;
57
57
  }
58
58
  function getPackageExtensions() {
59
59
  if (_packageExtensions === void 0) {
60
- const exts = require("#lib/package-extensions").default;
61
- _packageExtensions = Object.entries(exts);
60
+ const { packageExtensions } = require("#lib/package-extensions");
61
+ _packageExtensions = Object.entries(packageExtensions);
62
62
  }
63
63
  return _packageExtensions;
64
64
  }
@@ -67,8 +67,8 @@ function getNpmLifecycleEvent() {
67
67
  }
68
68
  function getLifecycleScriptNames() {
69
69
  if (_lifecycleScriptNames === void 0) {
70
- const scriptNamesSet = require("#lib/lifecycle-script-names").default;
71
- _lifecycleScriptNames = Array.from(scriptNamesSet);
70
+ const { lifecycleScriptNames } = require("#lib/lifecycle-script-names");
71
+ _lifecycleScriptNames = Array.from(lifecycleScriptNames);
72
72
  }
73
73
  return _lifecycleScriptNames;
74
74
  }
@@ -14,6 +14,7 @@ export declare const SOCKET_API_TOKENS_URL = "https://socket.dev/dashboard/setti
14
14
  export declare const SOCKET_PRICING_URL = "https://socket.dev/pricing";
15
15
  export declare const SOCKET_STATUS_URL = "https://status.socket.dev";
16
16
  export declare const SOCKET_DOCS_URL = "https://docs.socket.dev";
17
+ export declare const SOCKET_DOCS_CONTACT_URL = "https://docs.socket.dev/docs/contact-support";
17
18
  // Socket.dev scopes.
18
19
  export declare const SOCKET_REGISTRY_SCOPE = "@socketregistry";
19
20
  export declare const SOCKET_SECURITY_SCOPE = "@socketsecurity";
@@ -29,6 +29,7 @@ __export(socket_exports, {
29
29
  SOCKET_CONTACT_URL: () => SOCKET_CONTACT_URL,
30
30
  SOCKET_DASHBOARD_URL: () => SOCKET_DASHBOARD_URL,
31
31
  SOCKET_DLX_APP_NAME: () => SOCKET_DLX_APP_NAME,
32
+ SOCKET_DOCS_CONTACT_URL: () => SOCKET_DOCS_CONTACT_URL,
32
33
  SOCKET_DOCS_URL: () => SOCKET_DOCS_URL,
33
34
  SOCKET_FIREWALL_APP_NAME: () => SOCKET_FIREWALL_APP_NAME,
34
35
  SOCKET_GITHUB_ORG: () => SOCKET_GITHUB_ORG,
@@ -57,6 +58,7 @@ const SOCKET_API_TOKENS_URL = "https://socket.dev/dashboard/settings/api-tokens"
57
58
  const SOCKET_PRICING_URL = "https://socket.dev/pricing";
58
59
  const SOCKET_STATUS_URL = "https://status.socket.dev";
59
60
  const SOCKET_DOCS_URL = "https://docs.socket.dev";
61
+ const SOCKET_DOCS_CONTACT_URL = "https://docs.socket.dev/docs/contact-support";
60
62
  const SOCKET_REGISTRY_SCOPE = "@socketregistry";
61
63
  const SOCKET_SECURITY_SCOPE = "@socketsecurity";
62
64
  const SOCKET_OVERRIDE_SCOPE = "@socketoverride";
@@ -85,6 +87,7 @@ const REGISTRY_SCOPE_DELIMITER = "__";
85
87
  SOCKET_CONTACT_URL,
86
88
  SOCKET_DASHBOARD_URL,
87
89
  SOCKET_DLX_APP_NAME,
90
+ SOCKET_DOCS_CONTACT_URL,
88
91
  SOCKET_DOCS_URL,
89
92
  SOCKET_FIREWALL_APP_NAME,
90
93
  SOCKET_GITHUB_ORG,