@socketsecurity/lib 5.3.0 → 5.4.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.
Files changed (48) hide show
  1. package/CHANGELOG.md +22 -0
  2. package/dist/cover/code.js +12 -4
  3. package/dist/dlx/cache.js +10 -2
  4. package/dist/dlx/manifest.js +45 -41
  5. package/dist/env/rewire.js +10 -2
  6. package/dist/external/@inquirer/checkbox.js +4 -2528
  7. package/dist/external/@inquirer/confirm.js +4 -2371
  8. package/dist/external/@inquirer/input.js +4 -2395
  9. package/dist/external/@inquirer/password.js +4 -2503
  10. package/dist/external/@inquirer/search.js +4 -2500
  11. package/dist/external/@inquirer/select.js +4 -2617
  12. package/dist/external/@npmcli/package-json.js +11 -7
  13. package/dist/external/debug.js +670 -15
  14. package/dist/external/del.js +4 -7139
  15. package/dist/external/external-pack.js +4795 -0
  16. package/dist/external/fast-glob.js +4 -5776
  17. package/dist/external/has-flag.js +6 -0
  18. package/dist/external/libnpmexec.js +2 -2
  19. package/dist/external/normalize-package-data.js +2 -2
  20. package/dist/external/npm-pack.js +1698 -3337
  21. package/dist/external/npm-package-arg.js +2 -2
  22. package/dist/external/pico-pack.js +7162 -0
  23. package/dist/external/picomatch.js +4 -1523
  24. package/dist/external/semver.js +2 -2
  25. package/dist/external/signal-exit.js +5 -0
  26. package/dist/external/spdx-correct.js +4 -1384
  27. package/dist/external/spdx-expression-parse.js +4 -1047
  28. package/dist/external/spdx-pack.js +1640 -0
  29. package/dist/external/supports-color.js +8 -0
  30. package/dist/external/validate-npm-package-name.js +4 -104
  31. package/dist/external/yoctocolors-cjs.js +5 -92
  32. package/dist/http-request.js +10 -2
  33. package/dist/ipc.js +53 -29
  34. package/dist/packages/isolation.js +45 -23
  35. package/dist/packages/licenses.js +10 -2
  36. package/dist/paths/socket.d.ts +2 -2
  37. package/dist/paths/socket.js +27 -21
  38. package/dist/process-lock.js +23 -14
  39. package/dist/releases/github.d.ts +67 -41
  40. package/dist/releases/github.js +142 -100
  41. package/dist/releases/socket-btm.d.ts +40 -33
  42. package/dist/releases/socket-btm.js +45 -5
  43. package/dist/spawn.js +10 -3
  44. package/dist/stdio/mask.d.ts +6 -21
  45. package/dist/stdio/mask.js +18 -14
  46. package/dist/themes/context.js +10 -2
  47. package/package.json +16 -3
  48. package/dist/external/npm-core.js +0 -6588
@@ -26,9 +26,17 @@ __export(context_exports, {
26
26
  withThemeSync: () => withThemeSync
27
27
  });
28
28
  module.exports = __toCommonJS(context_exports);
29
- var import_node_async_hooks = require("node:async_hooks");
30
29
  var import_themes = require("./themes");
31
- const themeStorage = new import_node_async_hooks.AsyncLocalStorage();
30
+ let _async_hooks;
31
+ // @__NO_SIDE_EFFECTS__
32
+ function getAsyncHooks() {
33
+ if (_async_hooks === void 0) {
34
+ _async_hooks = require("async_hooks");
35
+ }
36
+ return _async_hooks;
37
+ }
38
+ const { AsyncLocalStorage } = /* @__PURE__ */ getAsyncHooks();
39
+ const themeStorage = new AsyncLocalStorage();
32
40
  let fallbackTheme = import_themes.SOCKET_THEME;
33
41
  const listeners = /* @__PURE__ */ new Set();
34
42
  function setTheme(theme) {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@socketsecurity/lib",
3
- "version": "5.3.0",
3
+ "version": "5.4.1",
4
4
  "packageManager": "pnpm@10.27.0",
5
5
  "license": "MIT",
6
6
  "description": "Core utilities and infrastructure for Socket.dev security tools",
@@ -722,7 +722,7 @@
722
722
  "@socketregistry/is-unicode-supported": "1.0.5",
723
723
  "@socketregistry/packageurl-js": "1.3.5",
724
724
  "@socketregistry/yocto-spinner": "1.0.25",
725
- "@socketsecurity/lib-stable": "npm:@socketsecurity/lib@5.2.1",
725
+ "@socketsecurity/lib-stable": "npm:@socketsecurity/lib@5.4.0",
726
726
  "@types/node": "24.9.2",
727
727
  "@typescript/native-preview": "7.0.0-dev.20250920.1",
728
728
  "@vitest/coverage-v8": "4.0.3",
@@ -744,6 +744,7 @@
744
744
  "fast-sort": "3.4.1",
745
745
  "get-east-asian-width": "1.3.0",
746
746
  "globals": "16.4.0",
747
+ "has-flag": "5.0.1",
747
748
  "husky": "9.1.7",
748
749
  "libnpmexec": "^10.1.11",
749
750
  "libnpmpack": "9.0.9",
@@ -756,9 +757,11 @@
756
757
  "pacote": "21.0.1",
757
758
  "picomatch": "2.3.1",
758
759
  "semver": "7.7.2",
760
+ "signal-exit": "4.1.0",
759
761
  "spdx-correct": "3.2.0",
760
762
  "spdx-expression-parse": "4.0.0",
761
763
  "streaming-iterables": "8.0.1",
764
+ "supports-color": "10.0.0",
762
765
  "taze": "19.9.2",
763
766
  "trash": "10.0.0",
764
767
  "type-coverage": "2.29.7",
@@ -784,13 +787,23 @@
784
787
  "overrides": {
785
788
  "@npmcli/arborist": "9.1.6",
786
789
  "@npmcli/run-script": "10.0.0",
790
+ "@sigstore/core": "3.1.0",
787
791
  "@sigstore/sign": "4.1.0",
788
792
  "ansi-regex": "6.2.2",
793
+ "debug": "4.4.3",
794
+ "has-flag": "5.0.1",
795
+ "isexe": "3.1.1",
789
796
  "lru-cache": "11.2.2",
797
+ "picomatch": "4.0.3",
798
+ "proc-log": "6.1.0",
790
799
  "semver": "7.7.2",
800
+ "signal-exit": "4.1.0",
791
801
  "string-width": "8.1.0",
792
802
  "strip-ansi": "7.1.2",
793
- "wrap-ansi": "9.0.2"
803
+ "supports-color": "10.0.0",
804
+ "which": "5.0.0",
805
+ "wrap-ansi": "9.0.2",
806
+ "yoctocolors-cjs": "2.1.3"
794
807
  },
795
808
  "patchedDependencies": {
796
809
  "@npmcli/run-script@10.0.0": "patches/@npmcli__run-script@10.0.0.patch",