rflib-plugin 0.17.2 → 0.17.4
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 +966 -537
- package/oclif.manifest.json +88 -88
- package/package.json +6 -6
package/oclif.manifest.json
CHANGED
|
@@ -281,12 +281,14 @@
|
|
|
281
281
|
"instrument:aura:logging:rflib"
|
|
282
282
|
]
|
|
283
283
|
},
|
|
284
|
-
"rflib:logging:
|
|
284
|
+
"rflib:logging:flow:instrument": {
|
|
285
285
|
"aliases": [],
|
|
286
286
|
"args": {},
|
|
287
|
-
"description": "
|
|
287
|
+
"description": "Automatically adds RFLIB logging statements to Salesforce Flows to provide enhanced tracking and debugging capabilities. Works with both standard Flows and Auto-Launched Flows. Instruments flow invocations and decision paths with logging actions. Also sets the CanvasMode to AUTO_LAYOUT_CANVAS for better flow visualization while preserving the original processType.",
|
|
288
288
|
"examples": [
|
|
289
|
-
"
|
|
289
|
+
"<%= config.bin %> <%= command.id %> --sourcepath force-app",
|
|
290
|
+
"<%= config.bin %> <%= command.id %> --sourcepath force-app --dryrun",
|
|
291
|
+
"<%= config.bin %> <%= command.id %> --sourcepath force-app --skip-instrumented"
|
|
290
292
|
],
|
|
291
293
|
"flags": {
|
|
292
294
|
"json": {
|
|
@@ -306,39 +308,24 @@
|
|
|
306
308
|
},
|
|
307
309
|
"sourcepath": {
|
|
308
310
|
"char": "s",
|
|
309
|
-
"description": "Path to the source directory containing
|
|
311
|
+
"description": "Path to the source directory containing Flow files that should be instrumented with RFLIB logging statements. Processes .flow-meta.xml files with processType=\"Flow\" or \"AutoLaunchedFlow\".",
|
|
310
312
|
"name": "sourcepath",
|
|
311
313
|
"required": true,
|
|
312
|
-
"summary": "Directory containing
|
|
314
|
+
"summary": "Directory containing Flow files to instrument with logging.",
|
|
313
315
|
"hasDynamicHelp": false,
|
|
314
316
|
"multiple": false,
|
|
315
317
|
"type": "option"
|
|
316
318
|
},
|
|
317
319
|
"dryrun": {
|
|
318
320
|
"char": "d",
|
|
319
|
-
"description": "When enabled, shows which files would be modified without making actual changes. Useful for reviewing the impact before applying changes.
|
|
321
|
+
"description": "When enabled, shows which files would be modified without making actual changes. Useful for reviewing the impact before applying changes.",
|
|
320
322
|
"name": "dryrun",
|
|
321
323
|
"summary": "Preview changes without modifying files.",
|
|
322
324
|
"allowNo": false,
|
|
323
325
|
"type": "boolean"
|
|
324
326
|
},
|
|
325
|
-
"prettier": {
|
|
326
|
-
"char": "p",
|
|
327
|
-
"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",
|
|
328
|
-
"name": "prettier",
|
|
329
|
-
"summary": "Format modified files using Prettier.",
|
|
330
|
-
"allowNo": false,
|
|
331
|
-
"type": "boolean"
|
|
332
|
-
},
|
|
333
|
-
"no-if": {
|
|
334
|
-
"description": "When provided, the command will not add log statements inside of `if` and `else` blocks.",
|
|
335
|
-
"name": "no-if",
|
|
336
|
-
"summary": "Exclude the instrumentation of if-else statements.",
|
|
337
|
-
"allowNo": false,
|
|
338
|
-
"type": "boolean"
|
|
339
|
-
},
|
|
340
327
|
"skip-instrumented": {
|
|
341
|
-
"description": "When provided, the command will not add log statements to any
|
|
328
|
+
"description": "When provided, the command will not add log statements to any Flows that already contain RFLIB logging actions.",
|
|
342
329
|
"name": "skip-instrumented",
|
|
343
330
|
"summary": "Skips any files where a logger is already present.",
|
|
344
331
|
"allowNo": false,
|
|
@@ -354,7 +341,7 @@
|
|
|
354
341
|
},
|
|
355
342
|
"exclude": {
|
|
356
343
|
"char": "e",
|
|
357
|
-
"description": "Exclude specific files or directories that match the provided glob pattern. For example, use --exclude \"**/
|
|
344
|
+
"description": "Exclude specific files or directories that match the provided glob pattern. For example, use --exclude \"**/Test_*.flow-meta.xml\" to skip certain flows.",
|
|
358
345
|
"name": "exclude",
|
|
359
346
|
"summary": "Exclude files or directories from instrumentation based on a glob pattern.",
|
|
360
347
|
"hasDynamicHelp": false,
|
|
@@ -374,12 +361,12 @@
|
|
|
374
361
|
},
|
|
375
362
|
"hasDynamicHelp": false,
|
|
376
363
|
"hiddenAliases": [],
|
|
377
|
-
"id": "rflib:logging:
|
|
364
|
+
"id": "rflib:logging:flow:instrument",
|
|
378
365
|
"pluginAlias": "rflib-plugin",
|
|
379
366
|
"pluginName": "rflib-plugin",
|
|
380
367
|
"pluginType": "core",
|
|
381
368
|
"strict": true,
|
|
382
|
-
"summary": "
|
|
369
|
+
"summary": "Adds RFLIB logging statements to Salesforce Flows.",
|
|
383
370
|
"enableJsonFlag": true,
|
|
384
371
|
"isESM": true,
|
|
385
372
|
"relativePath": [
|
|
@@ -387,45 +374,43 @@
|
|
|
387
374
|
"commands",
|
|
388
375
|
"rflib",
|
|
389
376
|
"logging",
|
|
390
|
-
"
|
|
377
|
+
"flow",
|
|
391
378
|
"instrument.js"
|
|
392
379
|
],
|
|
393
380
|
"aliasPermutations": [],
|
|
394
381
|
"permutations": [
|
|
395
|
-
"rflib:logging:
|
|
396
|
-
"logging:rflib:
|
|
397
|
-
"logging:
|
|
398
|
-
"logging:
|
|
399
|
-
"rflib:
|
|
400
|
-
"
|
|
401
|
-
"
|
|
402
|
-
"
|
|
403
|
-
"rflib:
|
|
404
|
-
"
|
|
405
|
-
"
|
|
406
|
-
"
|
|
407
|
-
"rflib:logging:instrument:
|
|
408
|
-
"logging:rflib:instrument:
|
|
409
|
-
"logging:instrument:rflib:
|
|
410
|
-
"logging:instrument:
|
|
411
|
-
"rflib:instrument:logging:
|
|
412
|
-
"instrument:rflib:logging:
|
|
413
|
-
"instrument:logging:rflib:
|
|
414
|
-
"instrument:logging:
|
|
415
|
-
"rflib:instrument:
|
|
416
|
-
"instrument:rflib:
|
|
417
|
-
"instrument:
|
|
418
|
-
"instrument:
|
|
382
|
+
"rflib:logging:flow:instrument",
|
|
383
|
+
"logging:rflib:flow:instrument",
|
|
384
|
+
"logging:flow:rflib:instrument",
|
|
385
|
+
"logging:flow:instrument:rflib",
|
|
386
|
+
"rflib:flow:logging:instrument",
|
|
387
|
+
"flow:rflib:logging:instrument",
|
|
388
|
+
"flow:logging:rflib:instrument",
|
|
389
|
+
"flow:logging:instrument:rflib",
|
|
390
|
+
"rflib:flow:instrument:logging",
|
|
391
|
+
"flow:rflib:instrument:logging",
|
|
392
|
+
"flow:instrument:rflib:logging",
|
|
393
|
+
"flow:instrument:logging:rflib",
|
|
394
|
+
"rflib:logging:instrument:flow",
|
|
395
|
+
"logging:rflib:instrument:flow",
|
|
396
|
+
"logging:instrument:rflib:flow",
|
|
397
|
+
"logging:instrument:flow:rflib",
|
|
398
|
+
"rflib:instrument:logging:flow",
|
|
399
|
+
"instrument:rflib:logging:flow",
|
|
400
|
+
"instrument:logging:rflib:flow",
|
|
401
|
+
"instrument:logging:flow:rflib",
|
|
402
|
+
"rflib:instrument:flow:logging",
|
|
403
|
+
"instrument:rflib:flow:logging",
|
|
404
|
+
"instrument:flow:rflib:logging",
|
|
405
|
+
"instrument:flow:logging:rflib"
|
|
419
406
|
]
|
|
420
407
|
},
|
|
421
|
-
"rflib:logging:
|
|
408
|
+
"rflib:logging:lwc:instrument": {
|
|
422
409
|
"aliases": [],
|
|
423
410
|
"args": {},
|
|
424
|
-
"description": "
|
|
411
|
+
"description": "Analyzes Lightning Web Component JavaScript files and adds RFLIB logging statements for:\n- Method entry logging with parameter values\n- Error logging in try-catch blocks\n- Error logging in Promise catch handlers\n- Condition logging in if/else blocks\n- Adds logger import if not present\n- Adds logger initialization if not present\n- Replaces console.log and similar method invocations\n- Formats modified files using Prettier (optional)",
|
|
425
412
|
"examples": [
|
|
426
|
-
"
|
|
427
|
-
"<%= config.bin %> <%= command.id %> --sourcepath force-app --dryrun",
|
|
428
|
-
"<%= config.bin %> <%= command.id %> --sourcepath force-app --skip-instrumented"
|
|
413
|
+
"- Add logging to all LWC files:\n$ sf rflib logging lwc instrument --sourcepath force-app/main/default/lwc\n\n- Preview changes:\n$ sf rflib logging lwc instrument --sourcepath force-app/main/default/lwc --dryrun\n\n- Add logging and format code:\n$ sf rflib logging lwc instrument --sourcepath force-app/main/default/lwc --prettier\n\n- Process specific component:\n$ sf rflib logging lwc instrument --sourcepath force-app/main/default/lwc/myComponent"
|
|
429
414
|
],
|
|
430
415
|
"flags": {
|
|
431
416
|
"json": {
|
|
@@ -445,24 +430,39 @@
|
|
|
445
430
|
},
|
|
446
431
|
"sourcepath": {
|
|
447
432
|
"char": "s",
|
|
448
|
-
"description": "Path to the source directory containing
|
|
433
|
+
"description": "Path to the source directory containing Lightning Web Component JavaScript files that should be instrumented with RFLIB logging statements. Aura component files are automatically excluded. The command will:\n- Process all .js files in the directory and subdirectories\n- Skip files in 'aura' directories\n- Add import statement: import { createLogger } from 'c/rflibLogger'\n- Add logger initialization: const logger = createLogger('ComponentName')",
|
|
449
434
|
"name": "sourcepath",
|
|
450
435
|
"required": true,
|
|
451
|
-
"summary": "Directory containing
|
|
436
|
+
"summary": "Directory containing LWC JavaScript files to instrument with logging.",
|
|
452
437
|
"hasDynamicHelp": false,
|
|
453
438
|
"multiple": false,
|
|
454
439
|
"type": "option"
|
|
455
440
|
},
|
|
456
441
|
"dryrun": {
|
|
457
442
|
"char": "d",
|
|
458
|
-
"description": "When enabled, shows which files would be modified without making actual changes. Useful for reviewing the impact before applying changes.",
|
|
443
|
+
"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",
|
|
459
444
|
"name": "dryrun",
|
|
460
445
|
"summary": "Preview changes without modifying files.",
|
|
461
446
|
"allowNo": false,
|
|
462
447
|
"type": "boolean"
|
|
463
448
|
},
|
|
449
|
+
"prettier": {
|
|
450
|
+
"char": "p",
|
|
451
|
+
"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",
|
|
452
|
+
"name": "prettier",
|
|
453
|
+
"summary": "Format modified files using Prettier.",
|
|
454
|
+
"allowNo": false,
|
|
455
|
+
"type": "boolean"
|
|
456
|
+
},
|
|
457
|
+
"no-if": {
|
|
458
|
+
"description": "When provided, the command will not add log statements inside of `if` and `else` blocks.",
|
|
459
|
+
"name": "no-if",
|
|
460
|
+
"summary": "Exclude the instrumentation of if-else statements.",
|
|
461
|
+
"allowNo": false,
|
|
462
|
+
"type": "boolean"
|
|
463
|
+
},
|
|
464
464
|
"skip-instrumented": {
|
|
465
|
-
"description": "When provided, the command will not add log statements to any
|
|
465
|
+
"description": "When provided, the command will not add log statements to any Apex class that contains the `rflib` import statement.",
|
|
466
466
|
"name": "skip-instrumented",
|
|
467
467
|
"summary": "Skips any files where a logger is already present.",
|
|
468
468
|
"allowNo": false,
|
|
@@ -478,7 +478,7 @@
|
|
|
478
478
|
},
|
|
479
479
|
"exclude": {
|
|
480
480
|
"char": "e",
|
|
481
|
-
"description": "Exclude specific files or directories that match the provided glob pattern. For example, use --exclude \"**/
|
|
481
|
+
"description": "Exclude specific files or directories that match the provided glob pattern. For example, use --exclude \"**/Generated_*.js\" to skip auto-generated components.",
|
|
482
482
|
"name": "exclude",
|
|
483
483
|
"summary": "Exclude files or directories from instrumentation based on a glob pattern.",
|
|
484
484
|
"hasDynamicHelp": false,
|
|
@@ -498,12 +498,12 @@
|
|
|
498
498
|
},
|
|
499
499
|
"hasDynamicHelp": false,
|
|
500
500
|
"hiddenAliases": [],
|
|
501
|
-
"id": "rflib:logging:
|
|
501
|
+
"id": "rflib:logging:lwc:instrument",
|
|
502
502
|
"pluginAlias": "rflib-plugin",
|
|
503
503
|
"pluginName": "rflib-plugin",
|
|
504
504
|
"pluginType": "core",
|
|
505
505
|
"strict": true,
|
|
506
|
-
"summary": "
|
|
506
|
+
"summary": "Instrument Lightning Web Components with RFLIB logging statements automatically.",
|
|
507
507
|
"enableJsonFlag": true,
|
|
508
508
|
"isESM": true,
|
|
509
509
|
"relativePath": [
|
|
@@ -511,37 +511,37 @@
|
|
|
511
511
|
"commands",
|
|
512
512
|
"rflib",
|
|
513
513
|
"logging",
|
|
514
|
-
"
|
|
514
|
+
"lwc",
|
|
515
515
|
"instrument.js"
|
|
516
516
|
],
|
|
517
517
|
"aliasPermutations": [],
|
|
518
518
|
"permutations": [
|
|
519
|
-
"rflib:logging:
|
|
520
|
-
"logging:rflib:
|
|
521
|
-
"logging:
|
|
522
|
-
"logging:
|
|
523
|
-
"rflib:
|
|
524
|
-
"
|
|
525
|
-
"
|
|
526
|
-
"
|
|
527
|
-
"rflib:
|
|
528
|
-
"
|
|
529
|
-
"
|
|
530
|
-
"
|
|
531
|
-
"rflib:logging:instrument:
|
|
532
|
-
"logging:rflib:instrument:
|
|
533
|
-
"logging:instrument:rflib:
|
|
534
|
-
"logging:instrument:
|
|
535
|
-
"rflib:instrument:logging:
|
|
536
|
-
"instrument:rflib:logging:
|
|
537
|
-
"instrument:logging:rflib:
|
|
538
|
-
"instrument:logging:
|
|
539
|
-
"rflib:instrument:
|
|
540
|
-
"instrument:rflib:
|
|
541
|
-
"instrument:
|
|
542
|
-
"instrument:
|
|
519
|
+
"rflib:logging:lwc:instrument",
|
|
520
|
+
"logging:rflib:lwc:instrument",
|
|
521
|
+
"logging:lwc:rflib:instrument",
|
|
522
|
+
"logging:lwc:instrument:rflib",
|
|
523
|
+
"rflib:lwc:logging:instrument",
|
|
524
|
+
"lwc:rflib:logging:instrument",
|
|
525
|
+
"lwc:logging:rflib:instrument",
|
|
526
|
+
"lwc:logging:instrument:rflib",
|
|
527
|
+
"rflib:lwc:instrument:logging",
|
|
528
|
+
"lwc:rflib:instrument:logging",
|
|
529
|
+
"lwc:instrument:rflib:logging",
|
|
530
|
+
"lwc:instrument:logging:rflib",
|
|
531
|
+
"rflib:logging:instrument:lwc",
|
|
532
|
+
"logging:rflib:instrument:lwc",
|
|
533
|
+
"logging:instrument:rflib:lwc",
|
|
534
|
+
"logging:instrument:lwc:rflib",
|
|
535
|
+
"rflib:instrument:logging:lwc",
|
|
536
|
+
"instrument:rflib:logging:lwc",
|
|
537
|
+
"instrument:logging:rflib:lwc",
|
|
538
|
+
"instrument:logging:lwc:rflib",
|
|
539
|
+
"rflib:instrument:lwc:logging",
|
|
540
|
+
"instrument:rflib:lwc:logging",
|
|
541
|
+
"instrument:lwc:rflib:logging",
|
|
542
|
+
"instrument:lwc:logging:rflib"
|
|
543
543
|
]
|
|
544
544
|
}
|
|
545
545
|
},
|
|
546
|
-
"version": "0.17.
|
|
546
|
+
"version": "0.17.4"
|
|
547
547
|
}
|
package/package.json
CHANGED
|
@@ -1,10 +1,10 @@
|
|
|
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.17.
|
|
4
|
+
"version": "0.17.4",
|
|
5
5
|
"dependencies": {
|
|
6
|
-
"@oclif/core": "^4.
|
|
7
|
-
"@salesforce/core": "^8.
|
|
6
|
+
"@oclif/core": "^4.9.0",
|
|
7
|
+
"@salesforce/core": "^8.27.0",
|
|
8
8
|
"@salesforce/sf-plugins-core": "^12.2.6",
|
|
9
9
|
"@types/xml2js": "^0.4.14",
|
|
10
10
|
"minimatch": "^10.2.4",
|
|
@@ -14,11 +14,11 @@
|
|
|
14
14
|
"xml2js": "^0.6.2"
|
|
15
15
|
},
|
|
16
16
|
"devDependencies": {
|
|
17
|
-
"@commitlint/cli": "^20.4.
|
|
17
|
+
"@commitlint/cli": "^20.4.4",
|
|
18
18
|
"@eslint/eslintrc": "^2.1.4",
|
|
19
19
|
"@eslint/js": "^8.57.1",
|
|
20
20
|
"@istanbuljs/nyc-config-typescript": "^1.0.2",
|
|
21
|
-
"@oclif/plugin-command-snapshot": "^5.3.
|
|
21
|
+
"@oclif/plugin-command-snapshot": "^5.3.12",
|
|
22
22
|
"@salesforce/cli-plugins-testkit": "^5.3.41",
|
|
23
23
|
"@salesforce/dev-scripts": "^11.0.4",
|
|
24
24
|
"@types/minimatch": "^5.1.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.22.
|
|
29
|
+
"oclif": "^4.22.87",
|
|
30
30
|
"source-map-support": "^0.5.21",
|
|
31
31
|
"ts-node": "^10.9.2",
|
|
32
32
|
"tsconfig-paths": "^4.2.0",
|