@flow-scanner/lightning-flow-scanner-core 6.1.0 → 6.1.1

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/README.md +11 -0
  2. package/package.json +1 -1
package/README.md CHANGED
@@ -250,6 +250,17 @@ parse("flows/*.xml")
250
250
  .then(scan)
251
251
  .then(exportSarif)
252
252
  .then((sarif) => save("results.sarif", sarif));
253
+
254
+ // Browser Usage (Tooling API)
255
+ const { Flow, scan } = window.lightningflowscanner;
256
+ const metadataRes = await conn.tooling.query(`SELECT Id, FullName, Metadata FROM Flow`);
257
+ const results = scan(
258
+ metadataRes.records.map((r) => ({
259
+ uri: `/services/data/v60.0/tooling/sobjects/Flow/${r.Id}`,
260
+ flow: new Flow(r.FullName, r.Metadata),
261
+ })),
262
+ optionsForScan
263
+ );
253
264
  ```
254
265
 
255
266
  ### Functions
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@flow-scanner/lightning-flow-scanner-core",
3
3
  "description": "A lightweight, purpose-built engine for parsing and analyzing Salesforce Flow metadata in Node.js or browser environments. Scan, validate, and optimize Flow automations for security risks, best practices, governor limits, and performance bottlenecks.",
4
- "version": "6.1.0",
4
+ "version": "6.1.1",
5
5
  "main": "index.js",
6
6
  "types": "index.d.ts",
7
7
  "engines": {