Skip to content

Commit 998f111

Browse files
committed
chore: bump core to latest
1 parent ef5eaf4 commit 998f111

File tree

4 files changed

+21
-41
lines changed

4 files changed

+21
-41
lines changed

package-lock.json

Lines changed: 8 additions & 27 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

package.json

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -4,13 +4,13 @@
44
"bugs": "https://github.com/Lightning-Flow-Scanner/lightning-flow-scanner-sfdx/issues",
55
"dependencies": {
66
"@oclif/core": "^4.2.10",
7-
"@salesforce/core": "^8.9.1",
7+
"@salesforce/core": "^8.10.0",
88
"@salesforce/sf-plugins-core": "^12.2.1",
99
"chalk": "^5.4.1",
1010
"cosmiconfig": "^9.0.0",
1111
"fs-extra": "^11.3.0",
1212
"glob": "^11.0.2",
13-
"lightning-flow-scanner-core": "4.28.0"
13+
"lightning-flow-scanner-core": "4.29.0"
1414
},
1515
"devDependencies": {
1616
"@oclif/plugin-help": "6.2.27",

src/commands/flow/scan.ts

Lines changed: 9 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -5,22 +5,21 @@ import { exec } from "child_process";
55

66
import { loadScannerOptions } from "../../libs/ScannerConfig.js";
77
import { FindFlows } from "../../libs/FindFlows.js";
8-
import { ScanResult } from "../../models/ScanResult.js";
8+
import { ScanResult as Output } from "../../models/ScanResult.js";
99

10-
import {
11-
ScanResult as ScanResults,
10+
import pkg, {
11+
ParsedFlow,
12+
ScanResult,
1213
RuleResult,
1314
ResultDetails,
14-
parse as parseFlows,
15-
scan as scanFlows,
16-
ParsedFlow,
1715
} from "lightning-flow-scanner-core";
16+
const { parse: parseFlows, scan: scanFlows } = pkg;
1817

1918
Messages.importMessagesDirectoryFromMetaUrl(import.meta.url);
2019

2120
const messages = Messages.loadMessages("lightning-flow-scanner", "command");
2221

23-
export default class Scan extends SfCommand<ScanResult> {
22+
export default class Scan extends SfCommand<Output> {
2423
public static description = messages.getMessage("commandDescription");
2524
public static examples: string[] = [
2625
"sf flow scan",
@@ -83,7 +82,7 @@ export default class Scan extends SfCommand<ScanResult> {
8382
}),
8483
};
8584

86-
public async run(): Promise<ScanResult> {
85+
public async run(): Promise<Output> {
8786
const { flags } = await this.parse(Scan);
8887
this.failOn = flags.failon || "error";
8988
this.spinner.start("Loading Lightning Flow Scanner");
@@ -101,7 +100,7 @@ export default class Scan extends SfCommand<ScanResult> {
101100
const parsedFlows: ParsedFlow[] = await parseFlows(flowFiles);
102101
this.debug(`parsed flows ${parsedFlows.length}`, ...parsedFlows);
103102

104-
const scanResults: ScanResults[] =
103+
const scanResults: ScanResult[] =
105104
this.userConfig && Object.keys(this.userConfig).length > 0
106105
? scanFlows(parsedFlows, this.userConfig)
107106
: scanFlows(parsedFlows);
@@ -161,7 +160,7 @@ export default class Scan extends SfCommand<ScanResult> {
161160
chalk.bold(
162161
chalk.italic(
163162
chalk.yellowBright(
164-
"Be a part of our mission to champion Flow Best Practices by starring us on GitHub:",
163+
"Be a part of our mission to champion Flow Best Practices by starring us on GitHub:",
165164
),
166165
),
167166
),

src/libs/CoreFixService.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2,8 +2,8 @@ import { IRulesConfig } from "lightning-flow-scanner-core/main/internals/interna
22
import { writeFileSync } from "node:fs";
33

44
import { FindFlows } from "./FindFlows.js";
5-
6-
import { scan, parse, fix as fixFlows } from "lightning-flow-scanner-core";
5+
import pkg from "lightning-flow-scanner-core";
6+
const { scan, parse, fix: fixFlows } = pkg;
77

88
import type { ScanResult as FlowScanResults } from "lightning-flow-scanner-core";
99

0 commit comments

Comments
 (0)