Skip to content
This repository was archived by the owner on Oct 7, 2025. It is now read-only.

Commit 4339b25

Browse files
committed
chore: use lfs 4.14
1 parent c500f10 commit 4339b25

File tree

3 files changed

+9
-11
lines changed

3 files changed

+9
-11
lines changed

package-lock.json

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

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -152,7 +152,7 @@
152152
},
153153
"dependencies": {
154154
"convert-array-to-csv": "^2.0.0",
155-
"lightning-flow-scanner-core": "4.10.0",
155+
"lightning-flow-scanner-core": "4.14.0",
156156
"tabulator-tables": "6.3.0",
157157
"uuid": "^11.0.5",
158158
"xml2js": "^0.6.2"

src/libs/SaveFlow.ts

Lines changed: 4 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,3 @@
1-
const xml2js = require('xml2js');
21
import * as vscode from 'vscode';
32
import { Flow } from 'lightning-flow-scanner-core';
43

@@ -9,11 +8,10 @@ export class SaveFlow {
98
}
109

1110
private async writeFlow(flow: Flow, pathToWrite: vscode.Uri) {
12-
const xml = new xml2js.Builder({
13-
rootName: 'Flow',
14-
xmldec: { version: '1.0', encoding: 'UTF-8' },
15-
}).buildObject(flow.xmldata);
16-
await vscode.workspace.fs.writeFile(pathToWrite, Buffer.from(xml));
11+
await vscode.workspace.fs.writeFile(
12+
pathToWrite,
13+
Buffer.from(flow.toXMLString())
14+
);
1715
return true;
1816
}
1917
}

0 commit comments

Comments
 (0)