@socketsecurity/lib 3.0.3 → 3.0.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 (41) hide show
  1. package/CHANGELOG.md +47 -1
  2. package/dist/dlx.js +1 -1
  3. package/dist/dlx.js.map +2 -2
  4. package/dist/effects/pulse-frames.d.ts +7 -0
  5. package/dist/effects/pulse-frames.js.map +2 -2
  6. package/dist/effects/text-shimmer.d.ts +1 -0
  7. package/dist/effects/text-shimmer.js +13 -1
  8. package/dist/effects/text-shimmer.js.map +2 -2
  9. package/dist/effects/types.d.ts +6 -0
  10. package/dist/effects/types.js.map +1 -1
  11. package/dist/external/@socketregistry/packageurl-js.js +12 -2
  12. package/dist/links/index.js +2 -1
  13. package/dist/links/index.js.map +2 -2
  14. package/dist/logger.js +41 -2
  15. package/dist/logger.js.map +2 -2
  16. package/dist/objects.js.map +2 -2
  17. package/dist/packages/isolation.js +2 -4
  18. package/dist/packages/isolation.js.map +3 -3
  19. package/dist/spinner.d.ts +6 -0
  20. package/dist/spinner.js +14 -2
  21. package/dist/spinner.js.map +2 -2
  22. package/dist/stdio/prompts.d.ts +51 -8
  23. package/dist/stdio/prompts.js +82 -0
  24. package/dist/stdio/prompts.js.map +3 -3
  25. package/dist/themes/context.js.map +2 -2
  26. package/dist/themes/index.d.ts +2 -2
  27. package/dist/themes/index.js +2 -2
  28. package/dist/themes/index.js.map +1 -1
  29. package/dist/themes/themes.d.ts +5 -5
  30. package/dist/themes/themes.js +22 -13
  31. package/dist/themes/themes.js.map +2 -2
  32. package/package.json +2 -18
  33. package/dist/index.d.ts +0 -14
  34. package/dist/index.js +0 -71
  35. package/dist/index.js.map +0 -7
  36. package/dist/prompts/index.d.ts +0 -115
  37. package/dist/prompts/index.js +0 -47
  38. package/dist/prompts/index.js.map +0 -7
  39. package/dist/prompts.d.ts +0 -27
  40. package/dist/prompts.js +0 -60
  41. package/dist/prompts.js.map +0 -7
package/dist/prompts.d.ts DELETED
@@ -1,27 +0,0 @@
1
- /**
2
- * @fileoverview Interactive prompt utilities for CLI applications.
3
- * Re-exports commonly used prompt functions from inquirer packages.
4
- */
5
- export { default as confirm } from '@inquirer/confirm';
6
- export { default as input } from '@inquirer/input';
7
- export { default as password } from '@inquirer/password';
8
- export { default as search } from '@inquirer/search';
9
- export { default as select } from '@inquirer/select';
10
- // Export types - Choice is a type interface, not a direct export
11
- export interface Choice<Value = unknown> {
12
- value: Value;
13
- name?: string;
14
- description?: string;
15
- short?: string;
16
- disabled?: boolean | string;
17
- }
18
- // Create a Separator type that matches the expected interface
19
- export interface Separator {
20
- type: 'separator';
21
- separator?: string;
22
- line?: string;
23
- }
24
- /**
25
- * Create a separator for select prompts.
26
- */
27
- export declare function createSeparator(text?: string): Separator;
package/dist/prompts.js DELETED
@@ -1,60 +0,0 @@
1
- /* Socket Lib - Built with esbuild */
2
- var __create = Object.create;
3
- var __defProp = Object.defineProperty;
4
- var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
5
- var __getOwnPropNames = Object.getOwnPropertyNames;
6
- var __getProtoOf = Object.getPrototypeOf;
7
- var __hasOwnProp = Object.prototype.hasOwnProperty;
8
- var __export = (target, all) => {
9
- for (var name in all)
10
- __defProp(target, name, { get: all[name], enumerable: true });
11
- };
12
- var __copyProps = (to, from, except, desc) => {
13
- if (from && typeof from === "object" || typeof from === "function") {
14
- for (let key of __getOwnPropNames(from))
15
- if (!__hasOwnProp.call(to, key) && key !== except)
16
- __defProp(to, key, { get: () => from[key], enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable });
17
- }
18
- return to;
19
- };
20
- var __toESM = (mod, isNodeMode, target) => (target = mod != null ? __create(__getProtoOf(mod)) : {}, __copyProps(
21
- // If the importer is in node compatibility mode or this is not an ESM
22
- // file that has been converted to a CommonJS file using a Babel-
23
- // compatible transform (i.e. "__esModule" has not been set), then set
24
- // "default" to the CommonJS "module.exports" for node compatibility.
25
- isNodeMode || !mod || !mod.__esModule ? __defProp(target, "default", { value: mod, enumerable: true }) : target,
26
- mod
27
- ));
28
- var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod);
29
- var prompts_exports = {};
30
- __export(prompts_exports, {
31
- confirm: () => import_confirm.default,
32
- createSeparator: () => createSeparator,
33
- input: () => import_input.default,
34
- password: () => import_password.default,
35
- search: () => import_search.default,
36
- select: () => import_select.default
37
- });
38
- module.exports = __toCommonJS(prompts_exports);
39
- var import_confirm = __toESM(require('./external/@inquirer/confirm'));
40
- var import_input = __toESM(require('./external/@inquirer/input'));
41
- var import_password = __toESM(require('./external/@inquirer/password'));
42
- var import_search = __toESM(require('./external/@inquirer/search'));
43
- var import_select = __toESM(require('./external/@inquirer/select'));
44
- function createSeparator(text) {
45
- return {
46
- type: "separator",
47
- separator: text || "\u2500\u2500\u2500\u2500\u2500\u2500\u2500",
48
- line: text || "\u2500\u2500\u2500\u2500\u2500\u2500\u2500"
49
- };
50
- }
51
- // Annotate the CommonJS export names for ESM import in node:
52
- 0 && (module.exports = {
53
- confirm,
54
- createSeparator,
55
- input,
56
- password,
57
- search,
58
- select
59
- });
60
- //# sourceMappingURL=prompts.js.map
@@ -1,7 +0,0 @@
1
- {
2
- "version": 3,
3
- "sources": ["../src/prompts.ts"],
4
- "sourcesContent": ["/**\n * @fileoverview Interactive prompt utilities for CLI applications.\n * Re-exports commonly used prompt functions from inquirer packages.\n */\n\nexport { default as confirm } from '@inquirer/confirm'\nexport { default as input } from '@inquirer/input'\nexport { default as password } from '@inquirer/password'\nexport { default as search } from '@inquirer/search'\nexport { default as select } from '@inquirer/select'\n\n// Export types - Choice is a type interface, not a direct export\nexport interface Choice<Value = unknown> {\n value: Value\n name?: string\n description?: string\n short?: string\n disabled?: boolean | string\n}\n\n// Create a Separator type that matches the expected interface\nexport interface Separator {\n type: 'separator'\n separator?: string\n line?: string\n}\n\n/**\n * Create a separator for select prompts.\n */\nexport function createSeparator(text?: string): Separator {\n return {\n type: 'separator',\n separator: text || '\u2500\u2500\u2500\u2500\u2500\u2500\u2500',\n line: text || '\u2500\u2500\u2500\u2500\u2500\u2500\u2500',\n }\n}\n"],
5
- "mappings": ";;;;;;;;;;;;;;;;;;;;;;;;;;;;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAKA,qBAAmC;AACnC,mBAAiC;AACjC,sBAAoC;AACpC,oBAAkC;AAClC,oBAAkC;AAqB3B,SAAS,gBAAgB,MAA0B;AACxD,SAAO;AAAA,IACL,MAAM;AAAA,IACN,WAAW,QAAQ;AAAA,IACnB,MAAM,QAAQ;AAAA,EAChB;AACF;",
6
- "names": []
7
- }