rflib-plugin 0.23.0 → 0.23.2

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/oclif.manifest.json +138 -138
  2. package/package.json +2 -2
@@ -1209,6 +1209,143 @@
1209
1209
  "whohas:userpermissions:debug:rflib"
1210
1210
  ]
1211
1211
  },
1212
+ "rflib:logging:aura:instrument": {
1213
+ "aliases": [],
1214
+ "args": {},
1215
+ "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",
1216
+ "examples": [
1217
+ "- 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"
1218
+ ],
1219
+ "flags": {
1220
+ "json": {
1221
+ "description": "Format output as json.",
1222
+ "helpGroup": "GLOBAL",
1223
+ "name": "json",
1224
+ "allowNo": false,
1225
+ "type": "boolean"
1226
+ },
1227
+ "flags-dir": {
1228
+ "helpGroup": "GLOBAL",
1229
+ "name": "flags-dir",
1230
+ "summary": "Import flag values from a directory.",
1231
+ "hasDynamicHelp": false,
1232
+ "multiple": false,
1233
+ "type": "option"
1234
+ },
1235
+ "sourcepath": {
1236
+ "char": "s",
1237
+ "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()",
1238
+ "name": "sourcepath",
1239
+ "required": true,
1240
+ "summary": "Directory containing Aura components to instrument with logging.",
1241
+ "hasDynamicHelp": false,
1242
+ "multiple": false,
1243
+ "type": "option"
1244
+ },
1245
+ "dryrun": {
1246
+ "char": "d",
1247
+ "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",
1248
+ "name": "dryrun",
1249
+ "summary": "Preview changes without modifying files.",
1250
+ "allowNo": false,
1251
+ "type": "boolean"
1252
+ },
1253
+ "prettier": {
1254
+ "char": "p",
1255
+ "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",
1256
+ "name": "prettier",
1257
+ "summary": "Format modified files using Prettier.",
1258
+ "allowNo": false,
1259
+ "type": "boolean"
1260
+ },
1261
+ "no-if": {
1262
+ "description": "When provided, the command will not add log statements inside of `if` and `else` blocks.",
1263
+ "name": "no-if",
1264
+ "summary": "Exclude the instrumentation of if-else statements.",
1265
+ "allowNo": false,
1266
+ "type": "boolean"
1267
+ },
1268
+ "skip-instrumented": {
1269
+ "description": "When provided, the command will not add log statements to any Aura component that contains the `` component.",
1270
+ "name": "skip-instrumented",
1271
+ "summary": "Skips any files where a logger is already present.",
1272
+ "allowNo": false,
1273
+ "type": "boolean"
1274
+ },
1275
+ "verbose": {
1276
+ "char": "v",
1277
+ "description": "When provided with --dryrun, prints the paths of the files that would be modified.",
1278
+ "name": "verbose",
1279
+ "summary": "Enable verbose output.",
1280
+ "allowNo": false,
1281
+ "type": "boolean"
1282
+ },
1283
+ "exclude": {
1284
+ "char": "e",
1285
+ "description": "Exclude specific files or directories that match the provided glob pattern. For example, use --exclude \"**/Generated_*.cmp\" to skip auto-generated components.",
1286
+ "name": "exclude",
1287
+ "summary": "Exclude files or directories from instrumentation based on a glob pattern.",
1288
+ "hasDynamicHelp": false,
1289
+ "multiple": false,
1290
+ "type": "option"
1291
+ },
1292
+ "concurrency": {
1293
+ "char": "c",
1294
+ "description": "Controls the maximum number of files to process at the same time. This is useful in very large codebases to prevent excessive memory usage or file descriptor exhaustion. Defaults to 10.",
1295
+ "name": "concurrency",
1296
+ "summary": "Limits the number of files processed concurrently.",
1297
+ "default": 10,
1298
+ "hasDynamicHelp": false,
1299
+ "multiple": false,
1300
+ "type": "option"
1301
+ }
1302
+ },
1303
+ "hasDynamicHelp": false,
1304
+ "hiddenAliases": [],
1305
+ "id": "rflib:logging:aura:instrument",
1306
+ "pluginAlias": "rflib-plugin",
1307
+ "pluginName": "rflib-plugin",
1308
+ "pluginType": "core",
1309
+ "strict": true,
1310
+ "summary": "Instrument Aura Components with RFLIB logging statements automatically.",
1311
+ "enableJsonFlag": true,
1312
+ "isESM": true,
1313
+ "relativePath": [
1314
+ "lib",
1315
+ "commands",
1316
+ "rflib",
1317
+ "logging",
1318
+ "aura",
1319
+ "instrument.js"
1320
+ ],
1321
+ "aliasPermutations": [],
1322
+ "permutations": [
1323
+ "rflib:logging:aura:instrument",
1324
+ "logging:rflib:aura:instrument",
1325
+ "logging:aura:rflib:instrument",
1326
+ "logging:aura:instrument:rflib",
1327
+ "rflib:aura:logging:instrument",
1328
+ "aura:rflib:logging:instrument",
1329
+ "aura:logging:rflib:instrument",
1330
+ "aura:logging:instrument:rflib",
1331
+ "rflib:aura:instrument:logging",
1332
+ "aura:rflib:instrument:logging",
1333
+ "aura:instrument:rflib:logging",
1334
+ "aura:instrument:logging:rflib",
1335
+ "rflib:logging:instrument:aura",
1336
+ "logging:rflib:instrument:aura",
1337
+ "logging:instrument:rflib:aura",
1338
+ "logging:instrument:aura:rflib",
1339
+ "rflib:instrument:logging:aura",
1340
+ "instrument:rflib:logging:aura",
1341
+ "instrument:logging:rflib:aura",
1342
+ "instrument:logging:aura:rflib",
1343
+ "rflib:instrument:aura:logging",
1344
+ "instrument:rflib:aura:logging",
1345
+ "instrument:aura:rflib:logging",
1346
+ "instrument:aura:logging:rflib"
1347
+ ]
1348
+ },
1212
1349
  "rflib:logging:apex:instrument": {
1213
1350
  "aliases": [],
1214
1351
  "args": {},
@@ -1496,143 +1633,6 @@
1496
1633
  "instrument:flow:logging:rflib"
1497
1634
  ]
1498
1635
  },
1499
- "rflib:logging:aura:instrument": {
1500
- "aliases": [],
1501
- "args": {},
1502
- "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",
1503
- "examples": [
1504
- "- 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"
1505
- ],
1506
- "flags": {
1507
- "json": {
1508
- "description": "Format output as json.",
1509
- "helpGroup": "GLOBAL",
1510
- "name": "json",
1511
- "allowNo": false,
1512
- "type": "boolean"
1513
- },
1514
- "flags-dir": {
1515
- "helpGroup": "GLOBAL",
1516
- "name": "flags-dir",
1517
- "summary": "Import flag values from a directory.",
1518
- "hasDynamicHelp": false,
1519
- "multiple": false,
1520
- "type": "option"
1521
- },
1522
- "sourcepath": {
1523
- "char": "s",
1524
- "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()",
1525
- "name": "sourcepath",
1526
- "required": true,
1527
- "summary": "Directory containing Aura components to instrument with logging.",
1528
- "hasDynamicHelp": false,
1529
- "multiple": false,
1530
- "type": "option"
1531
- },
1532
- "dryrun": {
1533
- "char": "d",
1534
- "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",
1535
- "name": "dryrun",
1536
- "summary": "Preview changes without modifying files.",
1537
- "allowNo": false,
1538
- "type": "boolean"
1539
- },
1540
- "prettier": {
1541
- "char": "p",
1542
- "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",
1543
- "name": "prettier",
1544
- "summary": "Format modified files using Prettier.",
1545
- "allowNo": false,
1546
- "type": "boolean"
1547
- },
1548
- "no-if": {
1549
- "description": "When provided, the command will not add log statements inside of `if` and `else` blocks.",
1550
- "name": "no-if",
1551
- "summary": "Exclude the instrumentation of if-else statements.",
1552
- "allowNo": false,
1553
- "type": "boolean"
1554
- },
1555
- "skip-instrumented": {
1556
- "description": "When provided, the command will not add log statements to any Aura component that contains the `` component.",
1557
- "name": "skip-instrumented",
1558
- "summary": "Skips any files where a logger is already present.",
1559
- "allowNo": false,
1560
- "type": "boolean"
1561
- },
1562
- "verbose": {
1563
- "char": "v",
1564
- "description": "When provided with --dryrun, prints the paths of the files that would be modified.",
1565
- "name": "verbose",
1566
- "summary": "Enable verbose output.",
1567
- "allowNo": false,
1568
- "type": "boolean"
1569
- },
1570
- "exclude": {
1571
- "char": "e",
1572
- "description": "Exclude specific files or directories that match the provided glob pattern. For example, use --exclude \"**/Generated_*.cmp\" to skip auto-generated components.",
1573
- "name": "exclude",
1574
- "summary": "Exclude files or directories from instrumentation based on a glob pattern.",
1575
- "hasDynamicHelp": false,
1576
- "multiple": false,
1577
- "type": "option"
1578
- },
1579
- "concurrency": {
1580
- "char": "c",
1581
- "description": "Controls the maximum number of files to process at the same time. This is useful in very large codebases to prevent excessive memory usage or file descriptor exhaustion. Defaults to 10.",
1582
- "name": "concurrency",
1583
- "summary": "Limits the number of files processed concurrently.",
1584
- "default": 10,
1585
- "hasDynamicHelp": false,
1586
- "multiple": false,
1587
- "type": "option"
1588
- }
1589
- },
1590
- "hasDynamicHelp": false,
1591
- "hiddenAliases": [],
1592
- "id": "rflib:logging:aura:instrument",
1593
- "pluginAlias": "rflib-plugin",
1594
- "pluginName": "rflib-plugin",
1595
- "pluginType": "core",
1596
- "strict": true,
1597
- "summary": "Instrument Aura Components with RFLIB logging statements automatically.",
1598
- "enableJsonFlag": true,
1599
- "isESM": true,
1600
- "relativePath": [
1601
- "lib",
1602
- "commands",
1603
- "rflib",
1604
- "logging",
1605
- "aura",
1606
- "instrument.js"
1607
- ],
1608
- "aliasPermutations": [],
1609
- "permutations": [
1610
- "rflib:logging:aura:instrument",
1611
- "logging:rflib:aura:instrument",
1612
- "logging:aura:rflib:instrument",
1613
- "logging:aura:instrument:rflib",
1614
- "rflib:aura:logging:instrument",
1615
- "aura:rflib:logging:instrument",
1616
- "aura:logging:rflib:instrument",
1617
- "aura:logging:instrument:rflib",
1618
- "rflib:aura:instrument:logging",
1619
- "aura:rflib:instrument:logging",
1620
- "aura:instrument:rflib:logging",
1621
- "aura:instrument:logging:rflib",
1622
- "rflib:logging:instrument:aura",
1623
- "logging:rflib:instrument:aura",
1624
- "logging:instrument:rflib:aura",
1625
- "logging:instrument:aura:rflib",
1626
- "rflib:instrument:logging:aura",
1627
- "instrument:rflib:logging:aura",
1628
- "instrument:logging:rflib:aura",
1629
- "instrument:logging:aura:rflib",
1630
- "rflib:instrument:aura:logging",
1631
- "instrument:rflib:aura:logging",
1632
- "instrument:aura:rflib:logging",
1633
- "instrument:aura:logging:rflib"
1634
- ]
1635
- },
1636
1636
  "rflib:logging:lwc:instrument": {
1637
1637
  "aliases": [],
1638
1638
  "args": {},
@@ -1771,5 +1771,5 @@
1771
1771
  ]
1772
1772
  }
1773
1773
  },
1774
- "version": "0.23.0"
1774
+ "version": "0.23.2"
1775
1775
  }
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.23.0",
4
+ "version": "0.23.2",
5
5
  "dependencies": {
6
6
  "@oclif/core": "^4.14.0",
7
7
  "@salesforce/core": "^8.32.6",
@@ -18,7 +18,7 @@
18
18
  "@eslint/js": "^10.0.0",
19
19
  "@istanbuljs/nyc-config-typescript": "^1.0.2",
20
20
  "@oclif/plugin-command-snapshot": "^5.4.0",
21
- "@salesforce/cli-plugins-testkit": "^5.3.66",
21
+ "@salesforce/cli-plugins-testkit": "^5.3.81",
22
22
  "@salesforce/dev-scripts": "^15.0.0",
23
23
  "@types/minimatch": "^5.1.2",
24
24
  "c8": "^10.1.3",