@c4a/extract-ts 0.7.10-alpha.2 → 0.7.10

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 (2) hide show
  1. package/index.js +17 -0
  2. package/package.json +1 -1
package/index.js CHANGED
@@ -15538,6 +15538,23 @@ var uniqueRelations = (relations) => {
15538
15538
  });
15539
15539
  };
15540
15540
  var extractSymbols = async (entries, fs, options) => {
15541
+ const sourceFs = fs;
15542
+ const texts = new Map;
15543
+ fs = {
15544
+ exists: (path2) => sourceFs.exists(path2),
15545
+ readdir: (path2) => sourceFs.readdir(path2),
15546
+ readFile(path2) {
15547
+ let pending = texts.get(path2);
15548
+ if (!pending) {
15549
+ pending = sourceFs.readFile(path2);
15550
+ texts.set(path2, pending);
15551
+ }
15552
+ return pending;
15553
+ },
15554
+ async readJson(path2) {
15555
+ return JSON.parse(await this.readFile(path2));
15556
+ }
15557
+ };
15541
15558
  const resolver = await loadTsConfigPathResolver(fs);
15542
15559
  const exportedSymbols = [];
15543
15560
  const internalSymbols = [];
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@c4a/extract-ts",
3
- "version": "0.7.10-alpha.2",
3
+ "version": "0.7.10",
4
4
  "type": "module",
5
5
  "description": "TypeScript and JavaScript extraction plugin for the Context ExtractionResult v2 contract",
6
6
  "license": "MIT",