rflib-plugin 0.19.9 → 0.19.11
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.
- package/oclif.lock +446 -478
- package/oclif.manifest.json +80 -80
- package/package.json +2 -2
package/oclif.manifest.json
CHANGED
|
@@ -547,12 +547,12 @@
|
|
|
547
547
|
"get:userpermissions:debug:rflib"
|
|
548
548
|
]
|
|
549
549
|
},
|
|
550
|
-
"rflib:logging:
|
|
550
|
+
"rflib:logging:aura:instrument": {
|
|
551
551
|
"aliases": [],
|
|
552
552
|
"args": {},
|
|
553
|
-
"description": "Analyzes
|
|
553
|
+
"description": "Analyzes Aura Component files and adds RFLIB logging statements for:\n- Method entry logging with parameter values in Controller, Helper, and Renderer files\n- Error logging in try-catch blocks\n- Error logging in Promise catch handlers\n- Adds rflibLoggerCmp component if not present\n- Replaces console.log and similar method invocations\n- Formats modified files using Prettier (optional)\n\nThe command processes:\n- Component (.cmp) files to add the logger component\n- Controller (.js) files for method instrumentation\n- Helper (.js) files for method instrumentation\n- Renderer (.js) files for method instrumentation",
|
|
554
554
|
"examples": [
|
|
555
|
-
"- Add logging
|
|
555
|
+
"- Add logging to all aura files:\n$ sf rflib logging aura instrument --sourcepath force-app\n\n- Preview changes:\n$ sf rflib logging aura instrument --sourcepath force-app --dryrun\n\n- Add logging and format code:\n$ sf rflib logging aura instrument --sourcepath force-app --prettier\n\n- Process specific component:\n$ sf rflib logging aura instrument --sourcepath force-app/main/default/aura/myComponent"
|
|
556
556
|
],
|
|
557
557
|
"flags": {
|
|
558
558
|
"json": {
|
|
@@ -572,17 +572,17 @@
|
|
|
572
572
|
},
|
|
573
573
|
"sourcepath": {
|
|
574
574
|
"char": "s",
|
|
575
|
-
"description": "Path to the source directory containing
|
|
575
|
+
"description": "Path to the source directory containing Aura components that should be instrumented with RFLIB logging statements. The command will:\n- Scan for 'aura' directories recursively\n- Process all Aura components found\n- Add <c:rflibLoggerCmp> to component files\n- Add logging statements to JavaScript files\n- Initialize logger in methods using component.find()",
|
|
576
576
|
"name": "sourcepath",
|
|
577
577
|
"required": true,
|
|
578
|
-
"summary": "Directory containing
|
|
578
|
+
"summary": "Directory containing Aura components to instrument with logging.",
|
|
579
579
|
"hasDynamicHelp": false,
|
|
580
580
|
"multiple": false,
|
|
581
581
|
"type": "option"
|
|
582
582
|
},
|
|
583
583
|
"dryrun": {
|
|
584
584
|
"char": "d",
|
|
585
|
-
"description": "When enabled, shows which files would be modified without making actual changes. Useful for reviewing the impact before applying changes.",
|
|
585
|
+
"description": "When enabled, shows which files would be modified without making actual changes. Useful for reviewing the impact before applying changes. Shows:\n- Files that would be modified\n- Number of processed files\n- Number of modified files\n- Number of formatted files",
|
|
586
586
|
"name": "dryrun",
|
|
587
587
|
"summary": "Preview changes without modifying files.",
|
|
588
588
|
"allowNo": false,
|
|
@@ -590,7 +590,7 @@
|
|
|
590
590
|
},
|
|
591
591
|
"prettier": {
|
|
592
592
|
"char": "p",
|
|
593
|
-
"description": "When enabled, formats the modified
|
|
593
|
+
"description": "When enabled, formats the modified JavaScript files using Prettier after adding logging statements. Maintains consistent code style with:\n- 120 character line width\n- 4 space indentation\n- Single quotes for strings\n- No tabs\n- No trailing commas",
|
|
594
594
|
"name": "prettier",
|
|
595
595
|
"summary": "Format modified files using Prettier.",
|
|
596
596
|
"allowNo": false,
|
|
@@ -603,15 +603,8 @@
|
|
|
603
603
|
"allowNo": false,
|
|
604
604
|
"type": "boolean"
|
|
605
605
|
},
|
|
606
|
-
"no-catch": {
|
|
607
|
-
"description": "When provided, the command will not add error log statements inside of `catch` blocks.",
|
|
608
|
-
"name": "no-catch",
|
|
609
|
-
"summary": "Exclude the instrumentation of catch blocks.",
|
|
610
|
-
"allowNo": false,
|
|
611
|
-
"type": "boolean"
|
|
612
|
-
},
|
|
613
606
|
"skip-instrumented": {
|
|
614
|
-
"description": "When provided, the command will not add log statements to any
|
|
607
|
+
"description": "When provided, the command will not add log statements to any Aura component that contains the `` component.",
|
|
615
608
|
"name": "skip-instrumented",
|
|
616
609
|
"summary": "Skips any files where a logger is already present.",
|
|
617
610
|
"allowNo": false,
|
|
@@ -627,7 +620,7 @@
|
|
|
627
620
|
},
|
|
628
621
|
"exclude": {
|
|
629
622
|
"char": "e",
|
|
630
|
-
"description": "Exclude specific files or directories that match the provided glob pattern. For example, use --exclude \"**/Generated_*.
|
|
623
|
+
"description": "Exclude specific files or directories that match the provided glob pattern. For example, use --exclude \"**/Generated_*.cmp\" to skip auto-generated components.",
|
|
631
624
|
"name": "exclude",
|
|
632
625
|
"summary": "Exclude files or directories from instrumentation based on a glob pattern.",
|
|
633
626
|
"hasDynamicHelp": false,
|
|
@@ -647,12 +640,12 @@
|
|
|
647
640
|
},
|
|
648
641
|
"hasDynamicHelp": false,
|
|
649
642
|
"hiddenAliases": [],
|
|
650
|
-
"id": "rflib:logging:
|
|
643
|
+
"id": "rflib:logging:aura:instrument",
|
|
651
644
|
"pluginAlias": "rflib-plugin",
|
|
652
645
|
"pluginName": "rflib-plugin",
|
|
653
646
|
"pluginType": "core",
|
|
654
647
|
"strict": true,
|
|
655
|
-
"summary": "Instrument
|
|
648
|
+
"summary": "Instrument Aura Components with RFLIB logging statements automatically.",
|
|
656
649
|
"enableJsonFlag": true,
|
|
657
650
|
"isESM": true,
|
|
658
651
|
"relativePath": [
|
|
@@ -660,43 +653,43 @@
|
|
|
660
653
|
"commands",
|
|
661
654
|
"rflib",
|
|
662
655
|
"logging",
|
|
663
|
-
"
|
|
656
|
+
"aura",
|
|
664
657
|
"instrument.js"
|
|
665
658
|
],
|
|
666
659
|
"aliasPermutations": [],
|
|
667
660
|
"permutations": [
|
|
668
|
-
"rflib:logging:
|
|
669
|
-
"logging:rflib:
|
|
670
|
-
"logging:
|
|
671
|
-
"logging:
|
|
672
|
-
"rflib:
|
|
673
|
-
"
|
|
674
|
-
"
|
|
675
|
-
"
|
|
676
|
-
"rflib:
|
|
677
|
-
"
|
|
678
|
-
"
|
|
679
|
-
"
|
|
680
|
-
"rflib:logging:instrument:
|
|
681
|
-
"logging:rflib:instrument:
|
|
682
|
-
"logging:instrument:rflib:
|
|
683
|
-
"logging:instrument:
|
|
684
|
-
"rflib:instrument:logging:
|
|
685
|
-
"instrument:rflib:logging:
|
|
686
|
-
"instrument:logging:rflib:
|
|
687
|
-
"instrument:logging:
|
|
688
|
-
"rflib:instrument:
|
|
689
|
-
"instrument:rflib:
|
|
690
|
-
"instrument:
|
|
691
|
-
"instrument:
|
|
661
|
+
"rflib:logging:aura:instrument",
|
|
662
|
+
"logging:rflib:aura:instrument",
|
|
663
|
+
"logging:aura:rflib:instrument",
|
|
664
|
+
"logging:aura:instrument:rflib",
|
|
665
|
+
"rflib:aura:logging:instrument",
|
|
666
|
+
"aura:rflib:logging:instrument",
|
|
667
|
+
"aura:logging:rflib:instrument",
|
|
668
|
+
"aura:logging:instrument:rflib",
|
|
669
|
+
"rflib:aura:instrument:logging",
|
|
670
|
+
"aura:rflib:instrument:logging",
|
|
671
|
+
"aura:instrument:rflib:logging",
|
|
672
|
+
"aura:instrument:logging:rflib",
|
|
673
|
+
"rflib:logging:instrument:aura",
|
|
674
|
+
"logging:rflib:instrument:aura",
|
|
675
|
+
"logging:instrument:rflib:aura",
|
|
676
|
+
"logging:instrument:aura:rflib",
|
|
677
|
+
"rflib:instrument:logging:aura",
|
|
678
|
+
"instrument:rflib:logging:aura",
|
|
679
|
+
"instrument:logging:rflib:aura",
|
|
680
|
+
"instrument:logging:aura:rflib",
|
|
681
|
+
"rflib:instrument:aura:logging",
|
|
682
|
+
"instrument:rflib:aura:logging",
|
|
683
|
+
"instrument:aura:rflib:logging",
|
|
684
|
+
"instrument:aura:logging:rflib"
|
|
692
685
|
]
|
|
693
686
|
},
|
|
694
|
-
"rflib:logging:
|
|
687
|
+
"rflib:logging:apex:instrument": {
|
|
695
688
|
"aliases": [],
|
|
696
689
|
"args": {},
|
|
697
|
-
"description": "Analyzes
|
|
690
|
+
"description": "Analyzes Apex classes and adds RFLIB logging statements for method entry and error handling. Adds class-level logger initialization if not already present. \nFor Apex Test classes, the `@TestSetup` method will be updated to include `rflib_TestUtil.prepareLoggerForUnitTests();` to avoid test failures caused by the logging framework.",
|
|
698
691
|
"examples": [
|
|
699
|
-
"- Add logging to all
|
|
692
|
+
"- Add logging statements to all Apex classes in a directory:\n\n$ sf rflib logging apex instrument --sourcepath force-app/main/default/classes\n\n- Preview changes without modifying files:\n\n$ sf rflib logging apex instrument --sourcepath force-app/main/default/classes --dryrun\n\n- Add logging statements and format code:\n\n$ sf rflib logging apex instrument --sourcepath force-app/main/default/classes --prettier"
|
|
700
693
|
],
|
|
701
694
|
"flags": {
|
|
702
695
|
"json": {
|
|
@@ -716,17 +709,17 @@
|
|
|
716
709
|
},
|
|
717
710
|
"sourcepath": {
|
|
718
711
|
"char": "s",
|
|
719
|
-
"description": "Path to the source directory containing
|
|
712
|
+
"description": "Path to the source directory containing Apex classes that should be instrumented with RFLIB logging statements. Test classes (ending with 'Test.cls') are automatically excluded.",
|
|
720
713
|
"name": "sourcepath",
|
|
721
714
|
"required": true,
|
|
722
|
-
"summary": "Directory containing
|
|
715
|
+
"summary": "Directory containing Apex classes to instrument with logging.",
|
|
723
716
|
"hasDynamicHelp": false,
|
|
724
717
|
"multiple": false,
|
|
725
718
|
"type": "option"
|
|
726
719
|
},
|
|
727
720
|
"dryrun": {
|
|
728
721
|
"char": "d",
|
|
729
|
-
"description": "When enabled, shows which files would be modified without making actual changes. Useful for reviewing the impact before applying changes.
|
|
722
|
+
"description": "When enabled, shows which files would be modified without making actual changes. Useful for reviewing the impact before applying changes.",
|
|
730
723
|
"name": "dryrun",
|
|
731
724
|
"summary": "Preview changes without modifying files.",
|
|
732
725
|
"allowNo": false,
|
|
@@ -734,7 +727,7 @@
|
|
|
734
727
|
},
|
|
735
728
|
"prettier": {
|
|
736
729
|
"char": "p",
|
|
737
|
-
"description": "When enabled, formats the modified
|
|
730
|
+
"description": "When enabled, formats the modified Apex files using prettier-plugin-apex after adding logging statements. Maintains consistent code style with:\n\n- 120 character line width\n- 4 space indentation\n- Single quotes for strings\n- No tabs",
|
|
738
731
|
"name": "prettier",
|
|
739
732
|
"summary": "Format modified files using Prettier.",
|
|
740
733
|
"allowNo": false,
|
|
@@ -747,8 +740,15 @@
|
|
|
747
740
|
"allowNo": false,
|
|
748
741
|
"type": "boolean"
|
|
749
742
|
},
|
|
743
|
+
"no-catch": {
|
|
744
|
+
"description": "When provided, the command will not add error log statements inside of `catch` blocks.",
|
|
745
|
+
"name": "no-catch",
|
|
746
|
+
"summary": "Exclude the instrumentation of catch blocks.",
|
|
747
|
+
"allowNo": false,
|
|
748
|
+
"type": "boolean"
|
|
749
|
+
},
|
|
750
750
|
"skip-instrumented": {
|
|
751
|
-
"description": "When provided, the command will not add log statements to any
|
|
751
|
+
"description": "When provided, the command will not add log statements to any Apex class that contains the `rflib_Logger` reference.",
|
|
752
752
|
"name": "skip-instrumented",
|
|
753
753
|
"summary": "Skips any files where a logger is already present.",
|
|
754
754
|
"allowNo": false,
|
|
@@ -764,7 +764,7 @@
|
|
|
764
764
|
},
|
|
765
765
|
"exclude": {
|
|
766
766
|
"char": "e",
|
|
767
|
-
"description": "Exclude specific files or directories that match the provided glob pattern. For example, use --exclude \"**/Generated_*.
|
|
767
|
+
"description": "Exclude specific files or directories that match the provided glob pattern. For example, use --exclude \"**/Generated_*.cls\" to skip auto-generated classes.",
|
|
768
768
|
"name": "exclude",
|
|
769
769
|
"summary": "Exclude files or directories from instrumentation based on a glob pattern.",
|
|
770
770
|
"hasDynamicHelp": false,
|
|
@@ -784,12 +784,12 @@
|
|
|
784
784
|
},
|
|
785
785
|
"hasDynamicHelp": false,
|
|
786
786
|
"hiddenAliases": [],
|
|
787
|
-
"id": "rflib:logging:
|
|
787
|
+
"id": "rflib:logging:apex:instrument",
|
|
788
788
|
"pluginAlias": "rflib-plugin",
|
|
789
789
|
"pluginName": "rflib-plugin",
|
|
790
790
|
"pluginType": "core",
|
|
791
791
|
"strict": true,
|
|
792
|
-
"summary": "Instrument
|
|
792
|
+
"summary": "Instrument Apex classes with RFLIB logging statements automatically.",
|
|
793
793
|
"enableJsonFlag": true,
|
|
794
794
|
"isESM": true,
|
|
795
795
|
"relativePath": [
|
|
@@ -797,35 +797,35 @@
|
|
|
797
797
|
"commands",
|
|
798
798
|
"rflib",
|
|
799
799
|
"logging",
|
|
800
|
-
"
|
|
800
|
+
"apex",
|
|
801
801
|
"instrument.js"
|
|
802
802
|
],
|
|
803
803
|
"aliasPermutations": [],
|
|
804
804
|
"permutations": [
|
|
805
|
-
"rflib:logging:
|
|
806
|
-
"logging:rflib:
|
|
807
|
-
"logging:
|
|
808
|
-
"logging:
|
|
809
|
-
"rflib:
|
|
810
|
-
"
|
|
811
|
-
"
|
|
812
|
-
"
|
|
813
|
-
"rflib:
|
|
814
|
-
"
|
|
815
|
-
"
|
|
816
|
-
"
|
|
817
|
-
"rflib:logging:instrument:
|
|
818
|
-
"logging:rflib:instrument:
|
|
819
|
-
"logging:instrument:rflib:
|
|
820
|
-
"logging:instrument:
|
|
821
|
-
"rflib:instrument:logging:
|
|
822
|
-
"instrument:rflib:logging:
|
|
823
|
-
"instrument:logging:rflib:
|
|
824
|
-
"instrument:logging:
|
|
825
|
-
"rflib:instrument:
|
|
826
|
-
"instrument:rflib:
|
|
827
|
-
"instrument:
|
|
828
|
-
"instrument:
|
|
805
|
+
"rflib:logging:apex:instrument",
|
|
806
|
+
"logging:rflib:apex:instrument",
|
|
807
|
+
"logging:apex:rflib:instrument",
|
|
808
|
+
"logging:apex:instrument:rflib",
|
|
809
|
+
"rflib:apex:logging:instrument",
|
|
810
|
+
"apex:rflib:logging:instrument",
|
|
811
|
+
"apex:logging:rflib:instrument",
|
|
812
|
+
"apex:logging:instrument:rflib",
|
|
813
|
+
"rflib:apex:instrument:logging",
|
|
814
|
+
"apex:rflib:instrument:logging",
|
|
815
|
+
"apex:instrument:rflib:logging",
|
|
816
|
+
"apex:instrument:logging:rflib",
|
|
817
|
+
"rflib:logging:instrument:apex",
|
|
818
|
+
"logging:rflib:instrument:apex",
|
|
819
|
+
"logging:instrument:rflib:apex",
|
|
820
|
+
"logging:instrument:apex:rflib",
|
|
821
|
+
"rflib:instrument:logging:apex",
|
|
822
|
+
"instrument:rflib:logging:apex",
|
|
823
|
+
"instrument:logging:rflib:apex",
|
|
824
|
+
"instrument:logging:apex:rflib",
|
|
825
|
+
"rflib:instrument:apex:logging",
|
|
826
|
+
"instrument:rflib:apex:logging",
|
|
827
|
+
"instrument:apex:rflib:logging",
|
|
828
|
+
"instrument:apex:logging:rflib"
|
|
829
829
|
]
|
|
830
830
|
},
|
|
831
831
|
"rflib:logging:flow:instrument": {
|
|
@@ -1090,5 +1090,5 @@
|
|
|
1090
1090
|
]
|
|
1091
1091
|
}
|
|
1092
1092
|
},
|
|
1093
|
-
"version": "0.19.
|
|
1093
|
+
"version": "0.19.11"
|
|
1094
1094
|
}
|
package/package.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "rflib-plugin",
|
|
3
3
|
"description": "Utility commands to help with the adoption of the RFLIB open-source library for Salesforce.",
|
|
4
|
-
"version": "0.19.
|
|
4
|
+
"version": "0.19.11",
|
|
5
5
|
"dependencies": {
|
|
6
6
|
"@oclif/core": "^4.10.5",
|
|
7
7
|
"@salesforce/core": "^8.31.2",
|
|
@@ -26,7 +26,7 @@
|
|
|
26
26
|
"eslint": "^8.57.1",
|
|
27
27
|
"eslint-plugin-sf-plugin": "^1.20.33",
|
|
28
28
|
"husky": "^9.1.7",
|
|
29
|
-
"oclif": "^4.23.
|
|
29
|
+
"oclif": "^4.23.16",
|
|
30
30
|
"source-map-support": "^0.5.21",
|
|
31
31
|
"ts-node": "^10.9.2",
|
|
32
32
|
"tsconfig-paths": "^4.2.0",
|