@cparra/apexdocs 3.17.1-beta.3 → 3.17.1-beta.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.
@@ -1,7 +1,7 @@
1
1
  #!/usr/bin/env node
2
2
  'use strict';
3
3
 
4
- var logger$1 = require('../logger-Vr_GM9Dn.js');
4
+ var logger$1 = require('../logger-Da7tkdPf.js');
5
5
  var cosmiconfig = require('cosmiconfig');
6
6
  var yargs = require('yargs');
7
7
  var E = require('fp-ts/Either');
package/dist/index.js CHANGED
@@ -1,7 +1,7 @@
1
1
  #!/usr/bin/env node
2
2
  'use strict';
3
3
 
4
- var logger = require('./logger-Vr_GM9Dn.js');
4
+ var logger = require('./logger-Da7tkdPf.js');
5
5
  var E = require('fp-ts/Either');
6
6
  require('fp-ts/function');
7
7
  require('fp-ts/TaskEither');
@@ -1421,13 +1421,15 @@ var __async$5 = (__this, __arguments, generator) => {
1421
1421
  });
1422
1422
  };
1423
1423
  const noopReflectionDebugLogger = {
1424
+ onStart: () => {
1425
+ },
1424
1426
  onSuccess: () => {
1425
1427
  },
1426
1428
  onFailure: () => {
1427
1429
  }
1428
1430
  };
1429
1431
  const noopDebugLogger = noopReflectionDebugLogger;
1430
- function reflectAsync$1(rawSource) {
1432
+ function reflectAsync(rawSource) {
1431
1433
  return __async$5(this, null, function* () {
1432
1434
  return new Promise((resolve, reject) => {
1433
1435
  const result = apexReflection.reflect(rawSource);
@@ -1483,6 +1485,7 @@ function reflectApexSourceBestEffort(apexBundles, config, debugLogger = noopDebu
1483
1485
  return _function.pipe(
1484
1486
  apexBundles,
1485
1487
  A__namespace.traverse(Ap)((bundle) => {
1488
+ debugLogger.onStart(bundle.filePath);
1486
1489
  return _function.pipe(
1487
1490
  reflectBundle$2(bundle),
1488
1491
  TE__namespace.map((parsed) => {
@@ -1512,6 +1515,7 @@ function reflectApexSourceBestEffort(apexBundles, config, debugLogger = noopDebu
1512
1515
  try {
1513
1516
  const results = yield Promise.allSettled(
1514
1517
  apexBundles.map((bundle) => __async$5(null, null, function* () {
1518
+ debugLogger.onStart(bundle.filePath);
1515
1519
  return yield pool.run({ content: bundle.content });
1516
1520
  }))
1517
1521
  );
@@ -1563,7 +1567,7 @@ function reflectBundle$2(apexBundle) {
1563
1567
  }
1564
1568
  function reflectAsTask$1(apexBundle) {
1565
1569
  return TE__namespace.tryCatch(
1566
- () => reflectAsync$1(apexBundle.content),
1570
+ () => reflectAsync(apexBundle.content),
1567
1571
  (error) => new ReflectionErrors([new ReflectionError(apexBundle.filePath, error.message)])
1568
1572
  );
1569
1573
  }
@@ -3423,13 +3427,13 @@ function toParsedFile$1(filePath, triggerMirror) {
3423
3427
  }
3424
3428
  function reflectAsTask(triggerContent) {
3425
3429
  return TE__namespace.tryCatch(
3426
- () => reflectAsync(triggerContent.content),
3430
+ () => reflect(triggerContent.content),
3427
3431
  (error) => new ReflectionErrors([new ReflectionError(triggerContent.filePath, error.message)])
3428
3432
  );
3429
3433
  }
3430
- function reflectAsync(triggerContent) {
3434
+ function reflect(triggerContent) {
3431
3435
  return __async$4(this, null, function* () {
3432
- const reflectionResult = yield apexReflection.reflectTriggerAsync(triggerContent);
3436
+ const reflectionResult = apexReflection.reflectTrigger(triggerContent);
3433
3437
  if (reflectionResult.error) {
3434
3438
  throw reflectionResult.error;
3435
3439
  }
@@ -4789,6 +4793,9 @@ function createReflectionDebugLogger(logger) {
4789
4793
  return noopReflectionDebugLogger;
4790
4794
  }
4791
4795
  return {
4796
+ onStart: (filePath) => {
4797
+ logger.debug(`Parsing: ${filePath}...`);
4798
+ },
4792
4799
  onSuccess: (filePath) => {
4793
4800
  logger.debug(`Parsing: ${filePath} OK`);
4794
4801
  },
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@cparra/apexdocs",
3
- "version": "3.17.1-beta.3",
3
+ "version": "3.17.1-beta.5",
4
4
  "description": "Library with CLI capabilities to generate documentation for Salesforce Apex classes.",
5
5
  "engines": {
6
6
  "node": ">=18"
@@ -96,7 +96,7 @@
96
96
  ]
97
97
  },
98
98
  "dependencies": {
99
- "@cparra/apex-reflection": "2.22.0",
99
+ "@cparra/apex-reflection": "2.22.0-dev.20251224093546",
100
100
  "@salesforce/source-deploy-retrieve": "^12.20.1",
101
101
  "@types/js-yaml": "^4.0.9",
102
102
  "@types/yargs": "^17.0.32",