@metamask-previews/platform-api-docs 0.1.0-preview-a302de5c3 → 0.1.0-preview-e12b5ece6

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 (38) hide show
  1. package/CHANGELOG.md +5 -0
  2. package/dist/extraction.cjs +1 -27
  3. package/dist/extraction.cjs.map +1 -1
  4. package/dist/extraction.d.cts +0 -10
  5. package/dist/extraction.d.cts.map +1 -1
  6. package/dist/extraction.d.mts +0 -10
  7. package/dist/extraction.d.mts.map +1 -1
  8. package/dist/extraction.mjs +1 -26
  9. package/dist/extraction.mjs.map +1 -1
  10. package/dist/generate.cjs +102 -59
  11. package/dist/generate.cjs.map +1 -1
  12. package/dist/generate.d.cts.map +1 -1
  13. package/dist/generate.d.mts.map +1 -1
  14. package/dist/generate.mjs +103 -60
  15. package/dist/generate.mjs.map +1 -1
  16. package/dist/root-messenger-discovery.cjs +5 -26
  17. package/dist/root-messenger-discovery.cjs.map +1 -1
  18. package/dist/root-messenger-discovery.d.cts.map +1 -1
  19. package/dist/root-messenger-discovery.d.mts.map +1 -1
  20. package/dist/root-messenger-discovery.mjs +6 -27
  21. package/dist/root-messenger-discovery.mjs.map +1 -1
  22. package/dist/ts-project.cjs +33 -0
  23. package/dist/ts-project.cjs.map +1 -0
  24. package/dist/ts-project.d.cts +12 -0
  25. package/dist/ts-project.d.cts.map +1 -0
  26. package/dist/ts-project.d.mts +12 -0
  27. package/dist/ts-project.d.mts.map +1 -0
  28. package/dist/ts-project.mjs +29 -0
  29. package/dist/ts-project.mjs.map +1 -0
  30. package/package.json +2 -3
  31. package/dist/discovery.cjs +0 -53
  32. package/dist/discovery.cjs.map +0 -1
  33. package/dist/discovery.d.cts +0 -22
  34. package/dist/discovery.d.cts.map +0 -1
  35. package/dist/discovery.d.mts +0 -22
  36. package/dist/discovery.d.mts.map +0 -1
  37. package/dist/discovery.mjs +0 -48
  38. package/dist/discovery.mjs.map +0 -1
@@ -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,48 +0,0 @@
1
- import { glob } from "glob";
2
- /**
3
- * Find all non-test TypeScript source files in a directory.
4
- * Skips node_modules, dist, test directories, and declaration files.
5
- *
6
- * Results are sorted lexicographically so that downstream consumers
7
- * (extraction, deduplication, output ordering) behave deterministically
8
- * across filesystems.
9
- *
10
- * @param dir - The directory to search.
11
- * @returns A promise that resolves to a sorted array of absolute file paths.
12
- */
13
- export async function findTsFiles(dir) {
14
- const matches = await glob('**/*.ts', {
15
- cwd: dir,
16
- absolute: true,
17
- ignore: [
18
- '**/node_modules/**',
19
- '**/dist/**',
20
- '**/__tests__/**',
21
- '**/tests/**',
22
- '**/test/**',
23
- '**/__mocks__/**',
24
- '**/*.test.ts',
25
- '**/*.test-d.ts',
26
- '**/*.spec.ts',
27
- '**/*.d.ts',
28
- ],
29
- });
30
- return matches.sort();
31
- }
32
- /**
33
- * Find all `.d.cts` declaration files in a directory.
34
- * Skips nested node_modules subdirectories. See {@link findTsFiles} for the
35
- * note about sorting.
36
- *
37
- * @param dir - The directory to search.
38
- * @returns A promise that resolves to a sorted array of absolute file paths.
39
- */
40
- export async function findDtsFiles(dir) {
41
- const matches = await glob('**/*.d.cts', {
42
- cwd: dir,
43
- absolute: true,
44
- ignore: ['**/node_modules/**'],
45
- });
46
- return matches.sort();
47
- }
48
- //# sourceMappingURL=discovery.mjs.map
@@ -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"]}