lightning-flow-scanner-core
Advanced tools
Comparing version 4.12.1 to 4.12.2
@@ -0,1 +1,2 @@ | ||
// import p from "path-browserify"; | ||
function asyncGeneratorStep(gen, resolve, reject, _next, _throw, key, arg) { | ||
@@ -30,6 +31,7 @@ try { | ||
} | ||
import p from "path-browserify"; | ||
import { Flow } from "../models/Flow.js"; | ||
import fs from "fs"; | ||
import { readFile } from "node:fs/promises"; | ||
import { fileURLToPath } from "url"; | ||
import { convert } from "xmlbuilder2"; | ||
import { realpath } from "node:fs/promises"; | ||
import { ParsedFlow } from "../models/ParsedFlow.js"; | ||
@@ -44,5 +46,4 @@ export function ParseFlows(selectedUris) { | ||
try { | ||
console.log(`normalize uri ${uri}`); | ||
const normalizedURI = p.normalize(uri); | ||
const content = yield fs.readFileSync(normalizedURI); | ||
const resolvePath = yield realpath(uri); | ||
const content = yield readFile(fileURLToPath(`file:${resolvePath}`)); | ||
const xmlString = content.toString(); | ||
@@ -63,2 +64,2 @@ const flowObj = convert(xmlString, { | ||
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJzb3VyY2VzIjpbIi4uLy4uLy4uLy4uL3NyYy9tYWluL2xpYnMvUGFyc2VGbG93cy50cyJdLCJzb3VyY2VzQ29udGVudCI6WyJpbXBvcnQgcCBmcm9tIFwicGF0aC1icm93c2VyaWZ5XCI7XG5pbXBvcnQgeyBGbG93IH0gZnJvbSBcIi4uL21vZGVscy9GbG93XCI7XG5pbXBvcnQgZnMgZnJvbSBcImZzXCI7XG5pbXBvcnQgeyBjb252ZXJ0IH0gZnJvbSBcInhtbGJ1aWxkZXIyXCI7XG5pbXBvcnQgeyBQYXJzZWRGbG93IH0gZnJvbSBcIi4uL21vZGVscy9QYXJzZWRGbG93XCI7XG5cbmV4cG9ydCBhc3luYyBmdW5jdGlvbiBQYXJzZUZsb3dzKHNlbGVjdGVkVXJpczogc3RyaW5nW10pOiBQcm9taXNlPFBhcnNlZEZsb3dbXT4ge1xuICBjb25zdCBwYXJz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BQUEsVUFBMEJDLFlBQXNCO1FBQ3JELE1BQU1DLGVBQTZCLEVBQUU7UUFDckMsS0FBSyxNQUFNQyxPQUFPRixhQUFjO1lBQzlCLElBQUk7Z0JBQ0YsTUFBTUcsY0FBYyxNQUFNTixTQUFTSztnQkFDbkMsTUFBTUUsVUFBVSxNQUFNVixTQUFTQyxjQUFjLENBQUMsS0FBSyxFQUFFUSxhQUFhO2dCQUNsRSxNQUFNRSxZQUFZRCxRQUFRRSxRQUFRO2dCQUNsQyxNQUFNQyxVQUFVWCxRQUFRUyxXQUFXO29CQUFFRyxRQUFRO2dCQUFTO2dCQUN0REMsUUFBUUMsR0FBRyxDQUFDLENBQUMsUUFBUSxFQUFFQyxLQUFLQyxTQUFTLENBQUNMLFNBQVMsTUFBTSxJQUFJO2dCQUN6RE4sYUFBYVksSUFBSSxDQUFDLElBQUlmLFdBQVdJLEtBQUssSUFBSVQsS0FBS1MsS0FBS0s7WUFDdEQsRUFBRSxPQUFPTyxHQUFHO2dCQUNWYixhQUFhWSxJQUFJLENBQUMsSUFBSWYsV0FBV0ksS0FBS2EsV0FBV0Q7WUFDbkQ7UUFDRjtRQUNBLE9BQU9iO0lBQ1Q7V0Fmc0JGIn0= |
{ | ||
"name": "lightning-flow-scanner-core", | ||
"version": "4.12.1", | ||
"version": "4.12.2", | ||
"main": "index.js", | ||
@@ -5,0 +5,0 @@ "types": "index.d.ts", |
Major refactor
Supply chain riskPackage has recently undergone a major refactor. It may be unstable or indicate significant internal changes. Use caution when updating to versions that include significant changes.
Found 1 instance in 1 package
1140931
13968
2
1