mirror of
https://github.com/SukkaW/Surge.git
synced 2026-01-28 17:41:54 +08:00
Refactor: new write strategy (#58)
This commit is contained in:
@@ -112,7 +112,7 @@ async function transform(parentSpan: Span, sourcePath: string, relativePath: str
|
||||
const res = await processFile(span, sourcePath);
|
||||
if (res === $skip) return;
|
||||
|
||||
const [title, descriptions, lines, sgmodulePathname] = res;
|
||||
const [title, descriptions, lines, sgmoduleName] = res;
|
||||
|
||||
let finalDescriptions: string[];
|
||||
if (descriptions.length) {
|
||||
@@ -134,7 +134,7 @@ async function transform(parentSpan: Span, sourcePath: string, relativePath: str
|
||||
return new RulesetOutput(span, id, type)
|
||||
.withTitle(title)
|
||||
.withDescription(finalDescriptions)
|
||||
.withMitmSgmodulePath(sgmodulePathname)
|
||||
.withMitmSgmodulePath(sgmoduleName)
|
||||
.addFromRuleset(lines)
|
||||
.write();
|
||||
});
|
||||
|
||||
Reference in New Issue
Block a user