@socketsecurity/lib 3.2.3 → 3.2.5

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 (316) hide show
  1. package/CHANGELOG.md +30 -0
  2. package/README.md +31 -35
  3. package/dist/abort.js +1 -1
  4. package/dist/agent.js +11 -11
  5. package/dist/ansi.js +1 -1
  6. package/dist/argv/flags.js +1 -1
  7. package/dist/argv/parse.js +1 -1
  8. package/dist/arrays.js +1 -1
  9. package/dist/bin.js +5 -5
  10. package/dist/cacache.js +1 -1
  11. package/dist/cache-with-ttl.js +1 -1
  12. package/dist/constants/agents.js +1 -1
  13. package/dist/constants/core.js +1 -1
  14. package/dist/constants/encoding.js +1 -1
  15. package/dist/constants/github.js +1 -1
  16. package/dist/constants/licenses.js +1 -1
  17. package/dist/constants/node.js +2 -13
  18. package/dist/constants/packages.js +10 -25
  19. package/dist/constants/paths.js +1 -1
  20. package/dist/constants/platform.js +1 -1
  21. package/dist/constants/process.js +3 -7
  22. package/dist/constants/socket.js +1 -1
  23. package/dist/constants/testing.js +1 -1
  24. package/dist/constants/time.js +1 -1
  25. package/dist/constants/typescript.js +1 -1
  26. package/dist/cover/code.js +1 -1
  27. package/dist/cover/formatters.js +1 -1
  28. package/dist/cover/type.js +1 -1
  29. package/dist/cover/types.js +1 -1
  30. package/dist/debug.js +4 -4
  31. package/dist/dlx-binary.js +5 -5
  32. package/dist/dlx-manifest.js +1 -1
  33. package/dist/dlx-package.js +1 -1
  34. package/dist/dlx.js +1 -1
  35. package/dist/effects/pulse-frames.js +4 -4
  36. package/dist/effects/text-shimmer.js +2 -2
  37. package/dist/effects/types.js +1 -1
  38. package/dist/effects/ultra.js +1 -1
  39. package/dist/env/ci.js +3 -3
  40. package/dist/env/debug.js +2 -2
  41. package/dist/env/github.js +2 -2
  42. package/dist/env/helpers.js +1 -1
  43. package/dist/env/home.js +2 -2
  44. package/dist/env/locale.js +2 -2
  45. package/dist/env/node-auth-token.js +2 -2
  46. package/dist/env/node-env.js +2 -2
  47. package/dist/env/npm.js +2 -2
  48. package/dist/env/package-manager.js +2 -2
  49. package/dist/env/path.js +2 -2
  50. package/dist/env/pre-commit.js +3 -3
  51. package/dist/env/rewire.js +1 -1
  52. package/dist/env/shell.js +2 -2
  53. package/dist/env/socket-cli-shadow.js +3 -3
  54. package/dist/env/socket-cli.js +3 -3
  55. package/dist/env/socket.js +3 -3
  56. package/dist/env/temp-dir.js +2 -2
  57. package/dist/env/term.js +2 -2
  58. package/dist/env/test.js +4 -4
  59. package/dist/env/windows.js +2 -2
  60. package/dist/env/xdg.js +2 -2
  61. package/dist/env.js +1 -1
  62. package/dist/external/@inquirer/confirm.js +16 -15
  63. package/dist/external/@inquirer/input.js +16 -15
  64. package/dist/external/@inquirer/password.js +17 -16
  65. package/dist/external/@inquirer/search.js +18 -17
  66. package/dist/external/@inquirer/select.js +19 -18
  67. package/dist/external/@npmcli/package-json/lib/read-package.js +7 -1
  68. package/dist/external/@npmcli/package-json/lib/sort.js +6 -1
  69. package/dist/external/@npmcli/package-json.js +18 -0
  70. package/dist/external/@npmcli/promise-spawn.js +2 -1
  71. package/dist/external/@socketregistry/is-unicode-supported.js +2 -1
  72. package/dist/external/@socketregistry/packageurl-js.js +3 -2
  73. package/dist/external/@socketregistry/yocto-spinner.js +5 -4
  74. package/dist/external/@yarnpkg/extensions.js +2 -1
  75. package/dist/external/cacache.js +10 -9
  76. package/dist/external/debug.js +2 -5
  77. package/dist/external/del.js +3 -2
  78. package/dist/external/fast-glob.js +3 -2
  79. package/dist/external/fast-sort.js +2 -1
  80. package/dist/external/get-east-asian-width.js +2 -1
  81. package/dist/external/libnpmexec.js +6 -0
  82. package/dist/external/libnpmpack.js +64 -63
  83. package/dist/external/make-fetch-happen.js +16 -15
  84. package/dist/external/normalize-package-data.js +3 -2
  85. package/dist/external/npm-package-arg.js +3 -2
  86. package/dist/external/pacote.js +36 -35
  87. package/dist/external/picomatch.js +2 -1
  88. package/dist/external/semver.js +2 -1
  89. package/dist/external/spdx-correct.js +2 -1
  90. package/dist/external/spdx-expression-parse.js +2 -1
  91. package/dist/external/streaming-iterables.js +2 -1
  92. package/dist/external/validate-npm-package-name.js +2 -1
  93. package/dist/external/which.js +2 -1
  94. package/dist/external/yargs-parser.js +2 -1
  95. package/dist/external/yoctocolors-cjs.js +2 -1
  96. package/dist/external/zod.js +10 -9
  97. package/dist/fs.js +3 -3
  98. package/dist/functions.js +1 -1
  99. package/dist/git.js +2 -2
  100. package/dist/github.js +3 -3
  101. package/dist/globs.js +3 -3
  102. package/dist/http-request.js +1 -1
  103. package/dist/ipc.js +1 -1
  104. package/dist/json.js +1 -1
  105. package/dist/lifecycle-script-names.d.ts +2 -0
  106. package/dist/lifecycle-script-names.js +40 -0
  107. package/dist/links/index.js +1 -1
  108. package/dist/logger.d.ts +29 -4
  109. package/dist/logger.js +34 -5
  110. package/dist/maintained-node-versions.js +1 -1
  111. package/dist/memoization.js +1 -1
  112. package/dist/objects.js +2 -2
  113. package/dist/package-default-node-range.d.ts +2 -0
  114. package/dist/package-default-node-range.js +27 -0
  115. package/dist/package-default-socket-categories.d.ts +2 -0
  116. package/dist/package-default-socket-categories.js +25 -0
  117. package/dist/package-extensions.d.ts +2 -0
  118. package/dist/package-extensions.js +66 -0
  119. package/dist/packages/editable.js +1 -1
  120. package/dist/packages/exports.js +2 -2
  121. package/dist/packages/isolation.js +3 -3
  122. package/dist/packages/licenses.js +3 -3
  123. package/dist/packages/manifest.js +4 -4
  124. package/dist/packages/normalize.js +2 -2
  125. package/dist/packages/operations.js +6 -6
  126. package/dist/packages/paths.js +1 -1
  127. package/dist/packages/provenance.js +2 -2
  128. package/dist/packages/specs.js +1 -1
  129. package/dist/packages/validation.js +1 -1
  130. package/dist/packages.js +1 -1
  131. package/dist/path.js +2 -2
  132. package/dist/paths/rewire.js +1 -1
  133. package/dist/paths.js +15 -15
  134. package/dist/performance.js +1 -1
  135. package/dist/process-lock.js +1 -1
  136. package/dist/promise-queue.js +1 -1
  137. package/dist/promises.js +3 -3
  138. package/dist/regexps.js +1 -1
  139. package/dist/sea.js +1 -1
  140. package/dist/shadow.js +1 -1
  141. package/dist/signal-exit.js +1 -1
  142. package/dist/sorts.js +1 -1
  143. package/dist/spawn.js +2 -2
  144. package/dist/spinner.js +3 -3
  145. package/dist/ssri.js +1 -1
  146. package/dist/stdio/clear.js +1 -1
  147. package/dist/stdio/divider.js +1 -1
  148. package/dist/stdio/footer.js +1 -1
  149. package/dist/stdio/header.js +1 -1
  150. package/dist/stdio/mask.js +1 -1
  151. package/dist/stdio/progress.js +1 -1
  152. package/dist/stdio/prompts.js +2 -2
  153. package/dist/stdio/stderr.js +1 -1
  154. package/dist/stdio/stdout.js +1 -1
  155. package/dist/streams.js +1 -1
  156. package/dist/strings.js +1 -1
  157. package/dist/suppress-warnings.js +1 -1
  158. package/dist/tables.js +1 -1
  159. package/dist/temporary-executor.js +2 -2
  160. package/dist/themes/context.js +1 -1
  161. package/dist/themes/index.js +1 -1
  162. package/dist/themes/themes.js +1 -1
  163. package/dist/themes/types.js +1 -1
  164. package/dist/themes/utils.js +1 -1
  165. package/dist/types.js +1 -1
  166. package/dist/url.js +1 -1
  167. package/dist/utils/get-ipc.js +1 -1
  168. package/dist/validation/json-parser.js +1 -1
  169. package/dist/validation/types.js +1 -1
  170. package/dist/versions.js +1 -1
  171. package/dist/words.js +1 -1
  172. package/dist/zod.js +1 -1
  173. package/package.json +18 -2
  174. package/dist/abort.js.map +0 -7
  175. package/dist/agent.js.map +0 -7
  176. package/dist/ansi.js.map +0 -7
  177. package/dist/argv/flags.js.map +0 -7
  178. package/dist/argv/parse.js.map +0 -7
  179. package/dist/arrays.js.map +0 -7
  180. package/dist/bin.js.map +0 -7
  181. package/dist/cacache.js.map +0 -7
  182. package/dist/cache-with-ttl.js.map +0 -7
  183. package/dist/constants/agents.js.map +0 -7
  184. package/dist/constants/core.js.map +0 -7
  185. package/dist/constants/encoding.js.map +0 -7
  186. package/dist/constants/github.js.map +0 -7
  187. package/dist/constants/licenses.js.map +0 -7
  188. package/dist/constants/node.js.map +0 -7
  189. package/dist/constants/packages.js.map +0 -7
  190. package/dist/constants/paths.js.map +0 -7
  191. package/dist/constants/platform.js.map +0 -7
  192. package/dist/constants/process.js.map +0 -7
  193. package/dist/constants/socket.js.map +0 -7
  194. package/dist/constants/testing.js.map +0 -7
  195. package/dist/constants/time.js.map +0 -7
  196. package/dist/constants/typescript.js.map +0 -7
  197. package/dist/cover/code.js.map +0 -7
  198. package/dist/cover/formatters.js.map +0 -7
  199. package/dist/cover/type.js.map +0 -7
  200. package/dist/cover/types.js.map +0 -7
  201. package/dist/debug.js.map +0 -7
  202. package/dist/dlx-binary.js.map +0 -7
  203. package/dist/dlx-manifest.js.map +0 -7
  204. package/dist/dlx-package.js.map +0 -7
  205. package/dist/dlx.js.map +0 -7
  206. package/dist/effects/pulse-frames.js.map +0 -7
  207. package/dist/effects/text-shimmer.js.map +0 -7
  208. package/dist/effects/types.js.map +0 -7
  209. package/dist/effects/ultra.js.map +0 -7
  210. package/dist/env/ci.js.map +0 -7
  211. package/dist/env/debug.js.map +0 -7
  212. package/dist/env/github.js.map +0 -7
  213. package/dist/env/helpers.js.map +0 -7
  214. package/dist/env/home.js.map +0 -7
  215. package/dist/env/locale.js.map +0 -7
  216. package/dist/env/node-auth-token.js.map +0 -7
  217. package/dist/env/node-env.js.map +0 -7
  218. package/dist/env/npm.js.map +0 -7
  219. package/dist/env/package-manager.js.map +0 -7
  220. package/dist/env/path.js.map +0 -7
  221. package/dist/env/pre-commit.js.map +0 -7
  222. package/dist/env/rewire.js.map +0 -7
  223. package/dist/env/shell.js.map +0 -7
  224. package/dist/env/socket-cli-shadow.js.map +0 -7
  225. package/dist/env/socket-cli.js.map +0 -7
  226. package/dist/env/socket.js.map +0 -7
  227. package/dist/env/temp-dir.js.map +0 -7
  228. package/dist/env/term.js.map +0 -7
  229. package/dist/env/test.js.map +0 -7
  230. package/dist/env/windows.js.map +0 -7
  231. package/dist/env/xdg.js.map +0 -7
  232. package/dist/env.js.map +0 -7
  233. package/dist/external/@npmcli/package-json/index.js +0 -1
  234. package/dist/external/@socketregistry/is-unicode-supported.d.ts +0 -2
  235. package/dist/external/@socketregistry/yocto-spinner.d.ts +0 -12
  236. package/dist/external/@yarnpkg/extensions.d.ts +0 -4
  237. package/dist/external/cacache.d.ts +0 -86
  238. package/dist/external/debug.d.ts +0 -22
  239. package/dist/external/del.d.ts +0 -1
  240. package/dist/external/fast-sort.d.ts +0 -3
  241. package/dist/external/get-east-asian-width.d.ts +0 -5
  242. package/dist/external/libnpmexec.d.ts +0 -33
  243. package/dist/external/libnpmpack.d.ts +0 -2
  244. package/dist/external/make-fetch-happen.d.ts +0 -15
  245. package/dist/external/pacote.d.ts +0 -14
  246. package/dist/external/semver.d.ts +0 -2
  247. package/dist/external/yargs-parser.d.ts +0 -2
  248. package/dist/external/yoctocolors-cjs.d.ts +0 -52
  249. package/dist/external/zod.d.ts +0 -1
  250. package/dist/fs.js.map +0 -7
  251. package/dist/functions.js.map +0 -7
  252. package/dist/git.js.map +0 -7
  253. package/dist/github.js.map +0 -7
  254. package/dist/globs.js.map +0 -7
  255. package/dist/http-request.js.map +0 -7
  256. package/dist/ipc.js.map +0 -7
  257. package/dist/json.js.map +0 -7
  258. package/dist/links/index.js.map +0 -7
  259. package/dist/logger.js.map +0 -7
  260. package/dist/maintained-node-versions.js.map +0 -7
  261. package/dist/memoization.js.map +0 -7
  262. package/dist/objects.js.map +0 -7
  263. package/dist/packages/editable.js.map +0 -7
  264. package/dist/packages/exports.js.map +0 -7
  265. package/dist/packages/isolation.js.map +0 -7
  266. package/dist/packages/licenses.js.map +0 -7
  267. package/dist/packages/manifest.js.map +0 -7
  268. package/dist/packages/normalize.js.map +0 -7
  269. package/dist/packages/operations.js.map +0 -7
  270. package/dist/packages/paths.js.map +0 -7
  271. package/dist/packages/provenance.js.map +0 -7
  272. package/dist/packages/specs.js.map +0 -7
  273. package/dist/packages/validation.js.map +0 -7
  274. package/dist/packages.js.map +0 -7
  275. package/dist/path.js.map +0 -7
  276. package/dist/paths/rewire.js.map +0 -7
  277. package/dist/paths.js.map +0 -7
  278. package/dist/performance.js.map +0 -7
  279. package/dist/process-lock.js.map +0 -7
  280. package/dist/promise-queue.js.map +0 -7
  281. package/dist/promises.js.map +0 -7
  282. package/dist/regexps.js.map +0 -7
  283. package/dist/sea.js.map +0 -7
  284. package/dist/shadow.js.map +0 -7
  285. package/dist/signal-exit.js.map +0 -7
  286. package/dist/sorts.js.map +0 -7
  287. package/dist/spawn.js.map +0 -7
  288. package/dist/spinner.js.map +0 -7
  289. package/dist/ssri.js.map +0 -7
  290. package/dist/stdio/clear.js.map +0 -7
  291. package/dist/stdio/divider.js.map +0 -7
  292. package/dist/stdio/footer.js.map +0 -7
  293. package/dist/stdio/header.js.map +0 -7
  294. package/dist/stdio/mask.js.map +0 -7
  295. package/dist/stdio/progress.js.map +0 -7
  296. package/dist/stdio/prompts.js.map +0 -7
  297. package/dist/stdio/stderr.js.map +0 -7
  298. package/dist/stdio/stdout.js.map +0 -7
  299. package/dist/streams.js.map +0 -7
  300. package/dist/strings.js.map +0 -7
  301. package/dist/suppress-warnings.js.map +0 -7
  302. package/dist/tables.js.map +0 -7
  303. package/dist/temporary-executor.js.map +0 -7
  304. package/dist/themes/context.js.map +0 -7
  305. package/dist/themes/index.js.map +0 -7
  306. package/dist/themes/themes.js.map +0 -7
  307. package/dist/themes/types.js.map +0 -7
  308. package/dist/themes/utils.js.map +0 -7
  309. package/dist/types.js.map +0 -7
  310. package/dist/url.js.map +0 -7
  311. package/dist/utils/get-ipc.js.map +0 -7
  312. package/dist/validation/json-parser.js.map +0 -7
  313. package/dist/validation/types.js.map +0 -7
  314. package/dist/versions.js.map +0 -7
  315. package/dist/words.js.map +0 -7
  316. package/dist/zod.js.map +0 -7
@@ -1,3 +1,4 @@
1
+ "use strict";
1
2
  /* Socket Lib - Built with esbuild */
2
3
  var __defProp = Object.defineProperty;
3
4
  var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
@@ -22,7 +23,7 @@ __export(provenance_exports, {
22
23
  getProvenanceDetails: () => getProvenanceDetails
23
24
  });
24
25
  module.exports = __toCommonJS(provenance_exports);
25
- var import_agents = require("#constants/agents");
26
+ var import_agents = require("../constants/agents");
26
27
  var import_abort = require("../abort");
27
28
  var import_url = require("../url");
28
29
  const ArrayIsArray = Array.isArray;
@@ -177,4 +178,3 @@ async function fetchPackageProvenance(pkgName, pkgVersion, options) {
177
178
  fetchPackageProvenance,
178
179
  getProvenanceDetails
179
180
  });
180
- //# sourceMappingURL=provenance.js.map
@@ -1,3 +1,4 @@
1
+ "use strict";
1
2
  /* Socket Lib - Built with esbuild */
2
3
  var __defProp = Object.defineProperty;
3
4
  var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
@@ -82,4 +83,3 @@ function isGitHubUrlSpec(spec, where) {
82
83
  isGitHubTgzSpec,
83
84
  isGitHubUrlSpec
84
85
  });
85
- //# sourceMappingURL=specs.js.map
@@ -1,3 +1,4 @@
1
+ "use strict";
1
2
  /* Socket Lib - Built with esbuild */
2
3
  var __defProp = Object.defineProperty;
3
4
  var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
@@ -50,4 +51,3 @@ function isValidPackageName(name) {
50
51
  isRegistryFetcherType,
51
52
  isValidPackageName
52
53
  });
53
- //# sourceMappingURL=validation.js.map
package/dist/packages.js CHANGED
@@ -1,3 +1,4 @@
1
+ "use strict";
1
2
  /* Socket Lib - Built with esbuild */
2
3
  var __defProp = Object.defineProperty;
3
4
  var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
@@ -128,4 +129,3 @@ var import_validation = require("./packages/validation");
128
129
  unescapeScope,
129
130
  visitLicenses
130
131
  });
131
- //# sourceMappingURL=packages.js.map
package/dist/path.js CHANGED
@@ -1,3 +1,4 @@
1
+ "use strict";
1
2
  /* Socket Lib - Built with esbuild */
2
3
  var __defProp = Object.defineProperty;
3
4
  var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
@@ -29,7 +30,7 @@ __export(path_exports, {
29
30
  trimLeadingDotSlash: () => trimLeadingDotSlash
30
31
  });
31
32
  module.exports = __toCommonJS(path_exports);
32
- var import_platform = require("#constants/platform");
33
+ var import_platform = require("./constants/platform");
33
34
  var import_strings = require("./strings");
34
35
  const CHAR_BACKWARD_SLASH = 92;
35
36
  const CHAR_COLON = 58;
@@ -445,4 +446,3 @@ function relativeResolve(from, to) {
445
446
  splitPath,
446
447
  trimLeadingDotSlash
447
448
  });
448
- //# sourceMappingURL=path.js.map
@@ -1,3 +1,4 @@
1
+ "use strict";
1
2
  /* Socket Lib - Built with esbuild */
2
3
  var __defProp = Object.defineProperty;
3
4
  var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
@@ -78,4 +79,3 @@ function setPath(key, value) {
78
79
  resetPaths,
79
80
  setPath
80
81
  });
81
- //# sourceMappingURL=rewire.js.map
package/dist/paths.js CHANGED
@@ -1,3 +1,4 @@
1
+ "use strict";
1
2
  /* Socket Lib - Built with esbuild */
2
3
  var __create = Object.create;
3
4
  var __defProp = Object.defineProperty;
@@ -46,9 +47,9 @@ __export(paths_exports, {
46
47
  module.exports = __toCommonJS(paths_exports);
47
48
  var os = __toESM(require("os"));
48
49
  var path = __toESM(require("path"));
49
- var import_home = require("#env/home");
50
- var import_socket = require("#env/socket");
51
- var import_windows = require("#env/windows");
50
+ var import_home = require("./env/home");
51
+ var import_socket = require("./env/socket");
52
+ var import_windows = require("./env/windows");
52
53
  var import_path = require("./path");
53
54
  var import_rewire = require("./paths/rewire");
54
55
  function getOsHomeDir() {
@@ -67,7 +68,7 @@ function getSocketUserDir() {
67
68
  path.join(
68
69
  getUserHomeDir(),
69
70
  /*@__INLINE__*/
70
- require("#constants/paths").DOT_SOCKET_DIR
71
+ require("./constants/paths").DOT_SOCKET_DIR
71
72
  )
72
73
  );
73
74
  }
@@ -78,7 +79,7 @@ function getSocketAppDir(appName) {
78
79
  path.join(
79
80
  getSocketUserDir(),
80
81
  `${/*@__INLINE__*/
81
- require("#constants/socket").SOCKET_APP_PREFIX}${appName}`
82
+ require("./constants/socket").SOCKET_APP_PREFIX}${appName}`
82
83
  )
83
84
  );
84
85
  }
@@ -94,7 +95,7 @@ function getSocketCacacheDir() {
94
95
  path.join(
95
96
  getSocketUserDir(),
96
97
  `${/*@__INLINE__*/
97
- require("#constants/socket").SOCKET_APP_PREFIX}cacache`
98
+ require("./constants/socket").SOCKET_APP_PREFIX}cacache`
98
99
  )
99
100
  );
100
101
  }
@@ -109,8 +110,8 @@ function getSocketDlxDir() {
109
110
  path.join(
110
111
  getSocketUserDir(),
111
112
  `${/*@__INLINE__*/
112
- require("#constants/socket").SOCKET_APP_PREFIX}${/*@__INLINE__*/
113
- require("#constants/socket").SOCKET_DLX_APP_NAME}`
113
+ require("./constants/socket").SOCKET_APP_PREFIX}${/*@__INLINE__*/
114
+ require("./constants/socket").SOCKET_DLX_APP_NAME}`
114
115
  )
115
116
  );
116
117
  }
@@ -119,7 +120,7 @@ function getSocketAppCacheDir(appName) {
119
120
  path.join(
120
121
  getSocketAppDir(appName),
121
122
  /*@__INLINE__*/
122
- require("#constants/paths").CACHE_DIR
123
+ require("./constants/paths").CACHE_DIR
123
124
  )
124
125
  );
125
126
  }
@@ -128,20 +129,20 @@ function getSocketAppCacheTtlDir(appName) {
128
129
  path.join(
129
130
  getSocketAppCacheDir(appName),
130
131
  /*@__INLINE__*/
131
- require("#constants/paths").CACHE_TTL_DIR
132
+ require("./constants/paths").CACHE_TTL_DIR
132
133
  )
133
134
  );
134
135
  }
135
136
  function getSocketCliDir() {
136
137
  return getSocketAppDir(
137
138
  /*@__INLINE__*/
138
- require("#constants/socket").SOCKET_CLI_APP_NAME
139
+ require("./constants/socket").SOCKET_CLI_APP_NAME
139
140
  );
140
141
  }
141
142
  function getSocketRegistryDir() {
142
143
  return getSocketAppDir(
143
144
  /*@__INLINE__*/
144
- require("#constants/socket").SOCKET_REGISTRY_APP_NAME
145
+ require("./constants/socket").SOCKET_REGISTRY_APP_NAME
145
146
  );
146
147
  }
147
148
  function getSocketRegistryGithubCacheDir() {
@@ -149,10 +150,10 @@ function getSocketRegistryGithubCacheDir() {
149
150
  path.join(
150
151
  getSocketAppCacheTtlDir(
151
152
  /*@__INLINE__*/
152
- require("#constants/socket").SOCKET_REGISTRY_APP_NAME
153
+ require("./constants/socket").SOCKET_REGISTRY_APP_NAME
153
154
  ),
154
155
  /*@__INLINE__*/
155
- require("#constants/github").CACHE_GITHUB_DIR
156
+ require("./constants/github").CACHE_GITHUB_DIR
156
157
  )
157
158
  );
158
159
  }
@@ -189,4 +190,3 @@ function invalidateCache() {
189
190
  getUserHomeDir,
190
191
  invalidateCache
191
192
  });
192
- //# sourceMappingURL=paths.js.map
@@ -1,3 +1,4 @@
1
+ "use strict";
1
2
  /* Socket Lib - Built with esbuild */
2
3
  var __defProp = Object.defineProperty;
3
4
  var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
@@ -216,4 +217,3 @@ function generatePerformanceReport() {
216
217
  printPerformanceSummary,
217
218
  trackMemory
218
219
  });
219
- //# sourceMappingURL=performance.js.map
@@ -1,3 +1,4 @@
1
+ "use strict";
1
2
  /* Socket Lib - Built with esbuild */
2
3
  var __defProp = Object.defineProperty;
3
4
  var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
@@ -290,4 +291,3 @@ const processLock = new ProcessLockManager();
290
291
  0 && (module.exports = {
291
292
  processLock
292
293
  });
293
- //# sourceMappingURL=process-lock.js.map
@@ -1,3 +1,4 @@
1
+ "use strict";
1
2
  /* Socket Lib - Built with esbuild */
2
3
  var __defProp = Object.defineProperty;
3
4
  var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
@@ -108,4 +109,3 @@ class PromiseQueue {
108
109
  0 && (module.exports = {
109
110
  PromiseQueue
110
111
  });
111
- //# sourceMappingURL=promise-queue.js.map
package/dist/promises.js CHANGED
@@ -1,3 +1,4 @@
1
+ "use strict";
1
2
  /* Socket Lib - Built with esbuild */
2
3
  var __defProp = Object.defineProperty;
3
4
  var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
@@ -28,8 +29,8 @@ __export(promises_exports, {
28
29
  resolveRetryOptions: () => resolveRetryOptions
29
30
  });
30
31
  module.exports = __toCommonJS(promises_exports);
31
- var import_core = require("#constants/core");
32
- var import_process = require("#constants/process");
32
+ var import_core = require("./constants/core");
33
+ var import_process = require("./constants/process");
33
34
  var import_arrays = require("./arrays");
34
35
  const abortSignal = (0, import_process.getAbortSignal)();
35
36
  let _timers;
@@ -269,4 +270,3 @@ async function pRetry(callbackFn, options) {
269
270
  pRetry,
270
271
  resolveRetryOptions
271
272
  });
272
- //# sourceMappingURL=promises.js.map
package/dist/regexps.js CHANGED
@@ -1,3 +1,4 @@
1
+ "use strict";
1
2
  /* Socket Lib - Built with esbuild */
2
3
  var __defProp = Object.defineProperty;
3
4
  var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
@@ -29,4 +30,3 @@ function escapeRegExp(str) {
29
30
  0 && (module.exports = {
30
31
  escapeRegExp
31
32
  });
32
- //# sourceMappingURL=regexps.js.map
package/dist/sea.js CHANGED
@@ -1,3 +1,4 @@
1
+ "use strict";
1
2
  /* Socket Lib - Built with esbuild */
2
3
  var __defProp = Object.defineProperty;
3
4
  var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
@@ -43,4 +44,3 @@ function isSeaBinary() {
43
44
  getSeaBinaryPath,
44
45
  isSeaBinary
45
46
  });
46
- //# sourceMappingURL=sea.js.map
package/dist/shadow.js CHANGED
@@ -1,3 +1,4 @@
1
+ "use strict";
1
2
  /* Socket Lib - Built with esbuild */
2
3
  var __defProp = Object.defineProperty;
3
4
  var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
@@ -57,4 +58,3 @@ function shouldSkipShadow(binPath, options) {
57
58
  0 && (module.exports = {
58
59
  shouldSkipShadow
59
60
  });
60
- //# sourceMappingURL=shadow.js.map
@@ -1,3 +1,4 @@
1
+ "use strict";
1
2
  /* Socket Lib - Built with esbuild */
2
3
  var __defProp = Object.defineProperty;
3
4
  var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
@@ -247,4 +248,3 @@ function unload() {
247
248
  signals,
248
249
  unload
249
250
  });
250
- //# sourceMappingURL=signal-exit.js.map
package/dist/sorts.js CHANGED
@@ -1,3 +1,4 @@
1
+ "use strict";
1
2
  /* Socket Lib - Built with esbuild */
2
3
  var __defProp = Object.defineProperty;
3
4
  var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
@@ -93,4 +94,3 @@ function compareSemver(a, b) {
93
94
  naturalCompare,
94
95
  naturalSorter
95
96
  });
96
- //# sourceMappingURL=sorts.js.map
package/dist/spawn.js CHANGED
@@ -1,3 +1,4 @@
1
+ "use strict";
1
2
  /* Socket Lib - Built with esbuild */
2
3
  var __defProp = Object.defineProperty;
3
4
  var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
@@ -24,7 +25,7 @@ __export(spawn_exports, {
24
25
  spawnSync: () => spawnSync
25
26
  });
26
27
  module.exports = __toCommonJS(spawn_exports);
27
- var import_process = require("#constants/process");
28
+ var import_process = require("./constants/process");
28
29
  var import_arrays = require("./arrays");
29
30
  var import_objects = require("./objects");
30
31
  var import_strings = require("./strings");
@@ -199,4 +200,3 @@ function spawnSync(cmd, args, options) {
199
200
  spawn,
200
201
  spawnSync
201
202
  });
202
- //# sourceMappingURL=spawn.js.map
package/dist/spinner.js CHANGED
@@ -1,3 +1,4 @@
1
+ "use strict";
1
2
  /* Socket Lib - Built with esbuild */
2
3
  var __create = Object.create;
3
4
  var __defProp = Object.defineProperty;
@@ -38,7 +39,7 @@ __export(spinner_exports, {
38
39
  withSpinnerSync: () => withSpinnerSync
39
40
  });
40
41
  module.exports = __toCommonJS(spinner_exports);
41
- var import_ci = require("#env/ci");
42
+ var import_ci = require("./env/ci");
42
43
  var import_debug = require("./debug");
43
44
  var import_pulse_frames = require("./effects/pulse-frames");
44
45
  var import_text_shimmer = require("./effects/text-shimmer");
@@ -196,7 +197,7 @@ function Spinner(options) {
196
197
  };
197
198
  }
198
199
  super({
199
- signal: require("#constants/process").getAbortSignal(),
200
+ signal: require("./constants/process").getAbortSignal(),
200
201
  ...opts,
201
202
  // Pass RGB color directly to yocto-spinner (it now supports RGB).
202
203
  color: spinnerColorRgb,
@@ -960,4 +961,3 @@ function withSpinnerSync(options) {
960
961
  withSpinnerRestore,
961
962
  withSpinnerSync
962
963
  });
963
- //# sourceMappingURL=spinner.js.map
package/dist/ssri.js CHANGED
@@ -1,3 +1,4 @@
1
+ "use strict";
1
2
  /* Socket Lib - Built with esbuild */
2
3
  var __defProp = Object.defineProperty;
3
4
  var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
@@ -70,4 +71,3 @@ function parseSsri(ssri) {
70
71
  parseSsri,
71
72
  ssriToHex
72
73
  });
73
- //# sourceMappingURL=ssri.js.map
@@ -1,3 +1,4 @@
1
+ "use strict";
1
2
  /* Socket Lib - Built with esbuild */
2
3
  var __defProp = Object.defineProperty;
3
4
  var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
@@ -81,4 +82,3 @@ function restoreCursor(stream = process.stdout) {
81
82
  saveCursor,
82
83
  showCursor
83
84
  });
84
- //# sourceMappingURL=clear.js.map
@@ -1,3 +1,4 @@
1
+ "use strict";
1
2
  /* Socket Lib - Built with esbuild */
2
3
  var __defProp = Object.defineProperty;
3
4
  var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
@@ -88,4 +89,3 @@ function printSectionBreak(options) {
88
89
  printThinDivider,
89
90
  sectionBreak
90
91
  });
91
- //# sourceMappingURL=divider.js.map
@@ -1,3 +1,4 @@
1
+ "use strict";
1
2
  /* Socket Lib - Built with esbuild */
2
3
  var __create = Object.create;
3
4
  var __defProp = Object.defineProperty;
@@ -93,4 +94,3 @@ function createSummaryFooter(stats, options) {
93
94
  createFooter,
94
95
  createSummaryFooter
95
96
  });
96
- //# sourceMappingURL=footer.js.map
@@ -1,3 +1,4 @@
1
+ "use strict";
1
2
  /* Socket Lib - Built with esbuild */
2
3
  var __create = Object.create;
3
4
  var __defProp = Object.defineProperty;
@@ -99,4 +100,3 @@ function printFooter(message) {
99
100
  printFooter,
100
101
  printHeader
101
102
  });
102
- //# sourceMappingURL=header.js.map
@@ -1,3 +1,4 @@
1
+ "use strict";
1
2
  /* Socket Lib - Built with esbuild */
2
3
  var __create = Object.create;
3
4
  var __defProp = Object.defineProperty;
@@ -206,4 +207,3 @@ async function runWithMask(command, args = [], options = {}) {
206
207
  createOutputMask,
207
208
  runWithMask
208
209
  });
209
- //# sourceMappingURL=mask.js.map
@@ -1,3 +1,4 @@
1
+ "use strict";
1
2
  /* Socket Lib - Built with esbuild */
2
3
  var __create = Object.create;
3
4
  var __defProp = Object.defineProperty;
@@ -208,4 +209,3 @@ function createProgressIndicator(current, total, label) {
208
209
  ProgressBar,
209
210
  createProgressIndicator
210
211
  });
211
- //# sourceMappingURL=progress.js.map
@@ -1,3 +1,4 @@
1
+ "use strict";
1
2
  /* Socket Lib - Built with esbuild */
2
3
  var __create = Object.create;
3
4
  var __defProp = Object.defineProperty;
@@ -39,7 +40,7 @@ __export(prompts_exports, {
39
40
  wrapPrompt: () => wrapPrompt
40
41
  });
41
42
  module.exports = __toCommonJS(prompts_exports);
42
- var import_process = require("#constants/process");
43
+ var import_process = require("../constants/process");
43
44
  var import_context = require("../themes/context");
44
45
  var import_themes = require("../themes/themes");
45
46
  var import_utils = require("../themes/utils");
@@ -169,4 +170,3 @@ function createSeparator(text) {
169
170
  select,
170
171
  wrapPrompt
171
172
  });
172
- //# sourceMappingURL=prompts.js.map
@@ -1,3 +1,4 @@
1
+ "use strict";
1
2
  /* Socket Lib - Built with esbuild */
2
3
  var __defProp = Object.defineProperty;
3
4
  var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
@@ -88,4 +89,3 @@ function writeStackTrace(error) {
88
89
  writeStackTrace,
89
90
  writeWarning
90
91
  });
91
- //# sourceMappingURL=stderr.js.map
@@ -1,3 +1,4 @@
1
+ "use strict";
1
2
  /* Socket Lib - Built with esbuild */
2
3
  var __defProp = Object.defineProperty;
3
4
  var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
@@ -102,4 +103,3 @@ function ensureCursorOnExit() {
102
103
  write,
103
104
  writeLine
104
105
  });
105
- //# sourceMappingURL=stdout.js.map
package/dist/streams.js CHANGED
@@ -1,3 +1,4 @@
1
+ "use strict";
1
2
  /* Socket Lib - Built with esbuild */
2
3
  var __defProp = Object.defineProperty;
3
4
  var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
@@ -77,4 +78,3 @@ function transform(iterable, func, options) {
77
78
  parallelMap,
78
79
  transform
79
80
  });
80
- //# sourceMappingURL=streams.js.map
package/dist/strings.js CHANGED
@@ -1,3 +1,4 @@
1
+ "use strict";
1
2
  /* Socket Lib - Built with esbuild */
2
3
  var __defProp = Object.defineProperty;
3
4
  var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
@@ -250,4 +251,3 @@ function centerText(text, width) {
250
251
  toKebabCase,
251
252
  trimNewlines
252
253
  });
253
- //# sourceMappingURL=strings.js.map
@@ -1,3 +1,4 @@
1
+ "use strict";
1
2
  /* Socket Lib - Built with esbuild */
2
3
  var __defProp = Object.defineProperty;
3
4
  var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
@@ -97,4 +98,3 @@ async function withSuppressedWarnings(warningType, callback) {
97
98
  suppressWarningType,
98
99
  withSuppressedWarnings
99
100
  });
100
- //# sourceMappingURL=suppress-warnings.js.map
package/dist/tables.js CHANGED
@@ -1,3 +1,4 @@
1
+ "use strict";
1
2
  /* Socket Lib - Built with esbuild */
2
3
  var __create = Object.create;
3
4
  var __defProp = Object.defineProperty;
@@ -127,4 +128,3 @@ function formatSimpleTable(data, columns) {
127
128
  formatSimpleTable,
128
129
  formatTable
129
130
  });
130
- //# sourceMappingURL=tables.js.map
@@ -1,3 +1,4 @@
1
+ "use strict";
1
2
  /* Socket Lib - Built with esbuild */
2
3
  var __defProp = Object.defineProperty;
3
4
  var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
@@ -21,7 +22,7 @@ __export(temporary_executor_exports, {
21
22
  isRunningInTemporaryExecutor: () => isRunningInTemporaryExecutor
22
23
  });
23
24
  module.exports = __toCommonJS(temporary_executor_exports);
24
- var import_platform = require("#constants/platform");
25
+ var import_platform = require("./constants/platform");
25
26
  var import_path = require("./path");
26
27
  function isRunningInTemporaryExecutor(cwd = process.cwd()) {
27
28
  const userAgent = process.env["npm_config_user_agent"];
@@ -52,4 +53,3 @@ function isRunningInTemporaryExecutor(cwd = process.cwd()) {
52
53
  0 && (module.exports = {
53
54
  isRunningInTemporaryExecutor
54
55
  });
55
- //# sourceMappingURL=temporary-executor.js.map
@@ -1,3 +1,4 @@
1
+ "use strict";
1
2
  /* Socket Lib - Built with esbuild */
2
3
  var __defProp = Object.defineProperty;
3
4
  var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
@@ -70,4 +71,3 @@ function emitThemeChange(theme) {
70
71
  withTheme,
71
72
  withThemeSync
72
73
  });
73
- //# sourceMappingURL=context.js.map
@@ -1,3 +1,4 @@
1
+ "use strict";
1
2
  /* Socket Lib - Built with esbuild */
2
3
  var __defProp = Object.defineProperty;
3
4
  var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
@@ -56,4 +57,3 @@ var import_utils = require("./utils");
56
57
  withTheme,
57
58
  withThemeSync
58
59
  });
59
- //# sourceMappingURL=index.js.map
@@ -1,3 +1,4 @@
1
+ "use strict";
1
2
  /* Socket Lib - Built with esbuild */
2
3
  var __defProp = Object.defineProperty;
3
4
  var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
@@ -203,4 +204,3 @@ const THEMES = {
203
204
  THEMES,
204
205
  ULTRA_THEME
205
206
  });
206
- //# sourceMappingURL=themes.js.map
@@ -1,3 +1,4 @@
1
+ "use strict";
1
2
  /* Socket Lib - Built with esbuild */
2
3
  var __defProp = Object.defineProperty;
3
4
  var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
@@ -14,4 +15,3 @@ var __copyProps = (to, from, except, desc) => {
14
15
  var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod);
15
16
  var types_exports = {};
16
17
  module.exports = __toCommonJS(types_exports);
17
- //# sourceMappingURL=types.js.map
@@ -1,3 +1,4 @@
1
+ "use strict";
1
2
  /* Socket Lib - Built with esbuild */
2
3
  var __defProp = Object.defineProperty;
3
4
  var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
@@ -115,4 +116,3 @@ function createTheme(config) {
115
116
  resolveColor,
116
117
  resolveShimmerColor
117
118
  });
118
- //# sourceMappingURL=utils.js.map
package/dist/types.js CHANGED
@@ -1,3 +1,4 @@
1
+ "use strict";
1
2
  /* Socket Lib - Built with esbuild */
2
3
  var __defProp = Object.defineProperty;
3
4
  var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
@@ -58,4 +59,3 @@ var PURL_Type = /* @__PURE__ */ ((PURL_Type2) => {
58
59
  0 && (module.exports = {
59
60
  PURL_Type
60
61
  });
61
- //# sourceMappingURL=types.js.map
package/dist/url.js CHANGED
@@ -1,3 +1,4 @@
1
+ "use strict";
1
2
  /* Socket Lib - Built with esbuild */
2
3
  var __defProp = Object.defineProperty;
3
4
  var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
@@ -141,4 +142,3 @@ function urlSearchParamAsNumber(params, key, options) {
141
142
  urlSearchParamsGetArray,
142
143
  urlSearchParamsGetBoolean
143
144
  });
144
- //# sourceMappingURL=url.js.map
@@ -1,3 +1,4 @@
1
+ "use strict";
1
2
  /* Socket Lib - Built with esbuild */
2
3
  var __defProp = Object.defineProperty;
3
4
  var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
@@ -57,4 +58,3 @@ var get_ipc_default = getIpc;
57
58
  0 && (module.exports = {
58
59
  getIpc
59
60
  });
60
- //# sourceMappingURL=get-ipc.js.map
@@ -1,3 +1,4 @@
1
+ "use strict";
1
2
  /* Socket Lib - Built with esbuild */
2
3
  var __defProp = Object.defineProperty;
3
4
  var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
@@ -126,4 +127,3 @@ function* streamNdjson(ndjson, schema, options) {
126
127
  streamNdjson,
127
128
  tryJsonParse
128
129
  });
129
- //# sourceMappingURL=json-parser.js.map
@@ -1,3 +1,4 @@
1
+ "use strict";
1
2
  /* Socket Lib - Built with esbuild */
2
3
  var __defProp = Object.defineProperty;
3
4
  var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
@@ -14,4 +15,3 @@ var __copyProps = (to, from, except, desc) => {
14
15
  var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod);
15
16
  var types_exports = {};
16
17
  module.exports = __toCommonJS(types_exports);
17
- //# sourceMappingURL=types.js.map
package/dist/versions.js CHANGED
@@ -1,3 +1,4 @@
1
+ "use strict";
1
2
  /* Socket Lib - Built with esbuild */
2
3
  var __defProp = Object.defineProperty;
3
4
  var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
@@ -153,4 +154,3 @@ function versionDiff(version1, version2) {
153
154
  sortVersionsDesc,
154
155
  versionDiff
155
156
  });
156
- //# sourceMappingURL=versions.js.map
package/dist/words.js CHANGED
@@ -1,3 +1,4 @@
1
+ "use strict";
1
2
  /* Socket Lib - Built with esbuild */
2
3
  var __defProp = Object.defineProperty;
3
4
  var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
@@ -49,4 +50,3 @@ function pluralize(word, options) {
49
50
  determineArticle,
50
51
  pluralize
51
52
  });
52
- //# sourceMappingURL=words.js.map
package/dist/zod.js CHANGED
@@ -1,3 +1,4 @@
1
+ "use strict";
1
2
  /* Socket Lib - Built with esbuild */
2
3
  var __defProp = Object.defineProperty;
3
4
  var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
@@ -26,4 +27,3 @@ var import_zod = require("./external/zod");
26
27
  0 && (module.exports = {
27
28
  z
28
29
  });
29
- //# sourceMappingURL=zod.js.map