@eventra_dev/eventra-cli 0.3.5 → 0.3.6

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.
@@ -12,9 +12,8 @@ const processFile_1 = require("../filesystem/processFile");
12
12
  const getVirtualFile_1 = require("../filesystem/getVirtualFile");
13
13
  async function getParsedFile(file, cache) {
14
14
  const existing = cache.get(file);
15
- if (existing) {
15
+ if (existing)
16
16
  return existing;
17
- }
18
17
  const raw = await promises_1.default.readFile(file, "utf8");
19
18
  const parsed = await (0, processFile_1.processFile)(file, raw);
20
19
  cache.set(file, parsed);
@@ -32,9 +31,8 @@ async function scanProject(config) {
32
31
  for (const file of files) {
33
32
  try {
34
33
  const raw = await promises_1.default.readFile(file, "utf8");
35
- if (raw.length > 2_000_000) {
34
+ if (raw.length > 2_000_000)
36
35
  continue;
37
- }
38
36
  const parsed = await (0, processFile_1.processFile)(file, raw);
39
37
  cache.set(file, parsed);
40
38
  toScan.add(file);
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@eventra_dev/eventra-cli",
3
- "version": "0.3.5",
3
+ "version": "0.3.6",
4
4
  "description": "Static analytics event extraction CLI powered by the TypeScript compiler API",
5
5
  "license": "MIT",
6
6
  "type": "commonjs",