@metamask-previews/platform-api-docs 0.0.0-preview-b13d916 → 0.0.0-preview-4f4c98e

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 (73) hide show
  1. package/dist/cli.d.ts +3 -0
  2. package/dist/cli.d.ts.map +1 -0
  3. package/dist/{cli.mjs → cli.js} +10 -40
  4. package/dist/cli.js.map +1 -0
  5. package/dist/{discovery.d.cts → discovery.d.ts} +1 -1
  6. package/dist/discovery.d.ts.map +1 -0
  7. package/dist/{discovery.mjs → discovery.js} +2 -2
  8. package/dist/discovery.js.map +1 -0
  9. package/dist/{extraction.d.cts → extraction.d.ts} +4 -4
  10. package/dist/extraction.d.ts.map +1 -0
  11. package/dist/{extraction.mjs → extraction.js} +3 -3
  12. package/dist/extraction.js.map +1 -0
  13. package/dist/{generate.d.cts → generate.d.ts} +2 -2
  14. package/dist/generate.d.ts.map +1 -0
  15. package/dist/{generate.mjs → generate.js} +10 -10
  16. package/dist/generate.js.map +1 -0
  17. package/dist/{markdown.d.cts → markdown.d.ts} +2 -2
  18. package/dist/markdown.d.ts.map +1 -0
  19. package/dist/{markdown.mjs → markdown.js} +1 -1
  20. package/dist/markdown.js.map +1 -0
  21. package/dist/{root-messenger-discovery.d.cts → root-messenger-discovery.d.ts} +2 -2
  22. package/dist/root-messenger-discovery.d.ts.map +1 -0
  23. package/dist/{root-messenger-discovery.mjs → root-messenger-discovery.js} +4 -4
  24. package/dist/root-messenger-discovery.js.map +1 -0
  25. package/dist/{types.d.cts → types.d.ts} +1 -1
  26. package/dist/types.d.ts.map +1 -0
  27. package/dist/types.js +2 -0
  28. package/dist/types.js.map +1 -0
  29. package/package.json +12 -8
  30. package/dist/cli.cjs +0 -328
  31. package/dist/cli.cjs.map +0 -1
  32. package/dist/cli.d.cts +0 -3
  33. package/dist/cli.d.cts.map +0 -1
  34. package/dist/cli.d.mts +0 -3
  35. package/dist/cli.d.mts.map +0 -1
  36. package/dist/cli.mjs.map +0 -1
  37. package/dist/discovery.cjs +0 -53
  38. package/dist/discovery.cjs.map +0 -1
  39. package/dist/discovery.d.cts.map +0 -1
  40. package/dist/discovery.d.mts +0 -22
  41. package/dist/discovery.d.mts.map +0 -1
  42. package/dist/discovery.mjs.map +0 -1
  43. package/dist/extraction.cjs +0 -780
  44. package/dist/extraction.cjs.map +0 -1
  45. package/dist/extraction.d.cts.map +0 -1
  46. package/dist/extraction.d.mts +0 -83
  47. package/dist/extraction.d.mts.map +0 -1
  48. package/dist/extraction.mjs.map +0 -1
  49. package/dist/generate.cjs +0 -462
  50. package/dist/generate.cjs.map +0 -1
  51. package/dist/generate.d.cts.map +0 -1
  52. package/dist/generate.d.mts +0 -70
  53. package/dist/generate.d.mts.map +0 -1
  54. package/dist/generate.mjs.map +0 -1
  55. package/dist/markdown.cjs +0 -239
  56. package/dist/markdown.cjs.map +0 -1
  57. package/dist/markdown.d.cts.map +0 -1
  58. package/dist/markdown.d.mts +0 -52
  59. package/dist/markdown.d.mts.map +0 -1
  60. package/dist/markdown.mjs.map +0 -1
  61. package/dist/root-messenger-discovery.cjs +0 -380
  62. package/dist/root-messenger-discovery.cjs.map +0 -1
  63. package/dist/root-messenger-discovery.d.cts.map +0 -1
  64. package/dist/root-messenger-discovery.d.mts +0 -61
  65. package/dist/root-messenger-discovery.d.mts.map +0 -1
  66. package/dist/root-messenger-discovery.mjs.map +0 -1
  67. package/dist/types.cjs +0 -3
  68. package/dist/types.cjs.map +0 -1
  69. package/dist/types.d.cts.map +0 -1
  70. package/dist/types.d.mts +0 -47
  71. package/dist/types.d.mts.map +0 -1
  72. package/dist/types.mjs +0 -2
  73. package/dist/types.mjs.map +0 -1
@@ -1,53 +0,0 @@
1
- "use strict";
2
- Object.defineProperty(exports, "__esModule", { value: true });
3
- exports.findDtsFiles = exports.findTsFiles = void 0;
4
- const glob_1 = require("glob");
5
- /**
6
- * Find all non-test TypeScript source files in a directory.
7
- * Skips node_modules, dist, test directories, and declaration files.
8
- *
9
- * Results are sorted lexicographically so that downstream consumers
10
- * (extraction, deduplication, output ordering) behave deterministically
11
- * across filesystems.
12
- *
13
- * @param dir - The directory to search.
14
- * @returns A promise that resolves to a sorted array of absolute file paths.
15
- */
16
- async function findTsFiles(dir) {
17
- const matches = await (0, glob_1.glob)('**/*.ts', {
18
- cwd: dir,
19
- absolute: true,
20
- ignore: [
21
- '**/node_modules/**',
22
- '**/dist/**',
23
- '**/__tests__/**',
24
- '**/tests/**',
25
- '**/test/**',
26
- '**/__mocks__/**',
27
- '**/*.test.ts',
28
- '**/*.test-d.ts',
29
- '**/*.spec.ts',
30
- '**/*.d.ts',
31
- ],
32
- });
33
- return matches.sort();
34
- }
35
- exports.findTsFiles = findTsFiles;
36
- /**
37
- * Find all `.d.cts` declaration files in a directory.
38
- * Skips nested node_modules subdirectories. See {@link findTsFiles} for the
39
- * note about sorting.
40
- *
41
- * @param dir - The directory to search.
42
- * @returns A promise that resolves to a sorted array of absolute file paths.
43
- */
44
- async function findDtsFiles(dir) {
45
- const matches = await (0, glob_1.glob)('**/*.d.cts', {
46
- cwd: dir,
47
- absolute: true,
48
- ignore: ['**/node_modules/**'],
49
- });
50
- return matches.sort();
51
- }
52
- exports.findDtsFiles = findDtsFiles;
53
- //# sourceMappingURL=discovery.cjs.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"discovery.cjs","sourceRoot":"","sources":["../src/discovery.ts"],"names":[],"mappings":";;;AAAA,+BAA4B;AAE5B;;;;;;;;;;GAUG;AACI,KAAK,UAAU,WAAW,CAAC,GAAW;IAC3C,MAAM,OAAO,GAAG,MAAM,IAAA,WAAI,EAAC,SAAS,EAAE;QACpC,GAAG,EAAE,GAAG;QACR,QAAQ,EAAE,IAAI;QACd,MAAM,EAAE;YACN,oBAAoB;YACpB,YAAY;YACZ,iBAAiB;YACjB,aAAa;YACb,YAAY;YACZ,iBAAiB;YACjB,cAAc;YACd,gBAAgB;YAChB,cAAc;YACd,WAAW;SACZ;KACF,CAAC,CAAC;IACH,OAAO,OAAO,CAAC,IAAI,EAAE,CAAC;AACxB,CAAC;AAlBD,kCAkBC;AAED;;;;;;;GAOG;AACI,KAAK,UAAU,YAAY,CAAC,GAAW;IAC5C,MAAM,OAAO,GAAG,MAAM,IAAA,WAAI,EAAC,YAAY,EAAE;QACvC,GAAG,EAAE,GAAG;QACR,QAAQ,EAAE,IAAI;QACd,MAAM,EAAE,CAAC,oBAAoB,CAAC;KAC/B,CAAC,CAAC;IACH,OAAO,OAAO,CAAC,IAAI,EAAE,CAAC;AACxB,CAAC;AAPD,oCAOC","sourcesContent":["import { glob } from 'glob';\n\n/**\n * Find all non-test TypeScript source files in a directory.\n * Skips node_modules, dist, test directories, and declaration files.\n *\n * Results are sorted lexicographically so that downstream consumers\n * (extraction, deduplication, output ordering) behave deterministically\n * across filesystems.\n *\n * @param dir - The directory to search.\n * @returns A promise that resolves to a sorted array of absolute file paths.\n */\nexport async function findTsFiles(dir: string): Promise<string[]> {\n const matches = await glob('**/*.ts', {\n cwd: dir,\n absolute: true,\n ignore: [\n '**/node_modules/**',\n '**/dist/**',\n '**/__tests__/**',\n '**/tests/**',\n '**/test/**',\n '**/__mocks__/**',\n '**/*.test.ts',\n '**/*.test-d.ts',\n '**/*.spec.ts',\n '**/*.d.ts',\n ],\n });\n return matches.sort();\n}\n\n/**\n * Find all `.d.cts` declaration files in a directory.\n * Skips nested node_modules subdirectories. See {@link findTsFiles} for the\n * note about sorting.\n *\n * @param dir - The directory to search.\n * @returns A promise that resolves to a sorted array of absolute file paths.\n */\nexport async function findDtsFiles(dir: string): Promise<string[]> {\n const matches = await glob('**/*.d.cts', {\n cwd: dir,\n absolute: true,\n ignore: ['**/node_modules/**'],\n });\n return matches.sort();\n}\n"]}
@@ -1 +0,0 @@
1
- {"version":3,"file":"discovery.d.cts","sourceRoot":"","sources":["../src/discovery.ts"],"names":[],"mappings":"AAEA;;;;;;;;;;GAUG;AACH,wBAAsB,WAAW,CAAC,GAAG,EAAE,MAAM,GAAG,OAAO,CAAC,MAAM,EAAE,CAAC,CAkBhE;AAED;;;;;;;GAOG;AACH,wBAAsB,YAAY,CAAC,GAAG,EAAE,MAAM,GAAG,OAAO,CAAC,MAAM,EAAE,CAAC,CAOjE"}
@@ -1,22 +0,0 @@
1
- /**
2
- * Find all non-test TypeScript source files in a directory.
3
- * Skips node_modules, dist, test directories, and declaration files.
4
- *
5
- * Results are sorted lexicographically so that downstream consumers
6
- * (extraction, deduplication, output ordering) behave deterministically
7
- * across filesystems.
8
- *
9
- * @param dir - The directory to search.
10
- * @returns A promise that resolves to a sorted array of absolute file paths.
11
- */
12
- export declare function findTsFiles(dir: string): Promise<string[]>;
13
- /**
14
- * Find all `.d.cts` declaration files in a directory.
15
- * Skips nested node_modules subdirectories. See {@link findTsFiles} for the
16
- * note about sorting.
17
- *
18
- * @param dir - The directory to search.
19
- * @returns A promise that resolves to a sorted array of absolute file paths.
20
- */
21
- export declare function findDtsFiles(dir: string): Promise<string[]>;
22
- //# sourceMappingURL=discovery.d.mts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"discovery.d.mts","sourceRoot":"","sources":["../src/discovery.ts"],"names":[],"mappings":"AAEA;;;;;;;;;;GAUG;AACH,wBAAsB,WAAW,CAAC,GAAG,EAAE,MAAM,GAAG,OAAO,CAAC,MAAM,EAAE,CAAC,CAkBhE;AAED;;;;;;;GAOG;AACH,wBAAsB,YAAY,CAAC,GAAG,EAAE,MAAM,GAAG,OAAO,CAAC,MAAM,EAAE,CAAC,CAOjE"}
@@ -1 +0,0 @@
1
- {"version":3,"file":"discovery.mjs","sourceRoot":"","sources":["../src/discovery.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,IAAI,EAAE,aAAa;AAE5B;;;;;;;;;;GAUG;AACH,MAAM,CAAC,KAAK,UAAU,WAAW,CAAC,GAAW;IAC3C,MAAM,OAAO,GAAG,MAAM,IAAI,CAAC,SAAS,EAAE;QACpC,GAAG,EAAE,GAAG;QACR,QAAQ,EAAE,IAAI;QACd,MAAM,EAAE;YACN,oBAAoB;YACpB,YAAY;YACZ,iBAAiB;YACjB,aAAa;YACb,YAAY;YACZ,iBAAiB;YACjB,cAAc;YACd,gBAAgB;YAChB,cAAc;YACd,WAAW;SACZ;KACF,CAAC,CAAC;IACH,OAAO,OAAO,CAAC,IAAI,EAAE,CAAC;AACxB,CAAC;AAED;;;;;;;GAOG;AACH,MAAM,CAAC,KAAK,UAAU,YAAY,CAAC,GAAW;IAC5C,MAAM,OAAO,GAAG,MAAM,IAAI,CAAC,YAAY,EAAE;QACvC,GAAG,EAAE,GAAG;QACR,QAAQ,EAAE,IAAI;QACd,MAAM,EAAE,CAAC,oBAAoB,CAAC;KAC/B,CAAC,CAAC;IACH,OAAO,OAAO,CAAC,IAAI,EAAE,CAAC;AACxB,CAAC","sourcesContent":["import { glob } from 'glob';\n\n/**\n * Find all non-test TypeScript source files in a directory.\n * Skips node_modules, dist, test directories, and declaration files.\n *\n * Results are sorted lexicographically so that downstream consumers\n * (extraction, deduplication, output ordering) behave deterministically\n * across filesystems.\n *\n * @param dir - The directory to search.\n * @returns A promise that resolves to a sorted array of absolute file paths.\n */\nexport async function findTsFiles(dir: string): Promise<string[]> {\n const matches = await glob('**/*.ts', {\n cwd: dir,\n absolute: true,\n ignore: [\n '**/node_modules/**',\n '**/dist/**',\n '**/__tests__/**',\n '**/tests/**',\n '**/test/**',\n '**/__mocks__/**',\n '**/*.test.ts',\n '**/*.test-d.ts',\n '**/*.spec.ts',\n '**/*.d.ts',\n ],\n });\n return matches.sort();\n}\n\n/**\n * Find all `.d.cts` declaration files in a directory.\n * Skips nested node_modules subdirectories. See {@link findTsFiles} for the\n * note about sorting.\n *\n * @param dir - The directory to search.\n * @returns A promise that resolves to a sorted array of absolute file paths.\n */\nexport async function findDtsFiles(dir: string): Promise<string[]> {\n const matches = await glob('**/*.d.cts', {\n cwd: dir,\n absolute: true,\n ignore: ['**/node_modules/**'],\n });\n return matches.sort();\n}\n"]}