forgot to rename this
This commit is contained in:
parent
af5b5a0da3
commit
494ddb8f19
1 changed files with 2 additions and 2 deletions
|
@ -66,12 +66,12 @@ export function canonicalizeDescriptor<T>(descriptor: TypedPropertyDescriptor<T>
|
|||
return descriptor;
|
||||
}
|
||||
|
||||
export function canonicalizeReplacement(replacement: Pick<PatchReplacement, "match" | "replace">, plugin: string) {
|
||||
export function canonicalizeReplacement(replacement: Pick<PatchReplacement, "match" | "replace">, pluginPath: string) {
|
||||
const descriptors = Object.getOwnPropertyDescriptors(replacement);
|
||||
descriptors.match = canonicalizeDescriptor(descriptors.match, canonicalizeMatch);
|
||||
descriptors.replace = canonicalizeDescriptor(
|
||||
descriptors.replace,
|
||||
replace => canonicalizeReplace(replace, plugin),
|
||||
replace => canonicalizeReplace(replace, pluginPath),
|
||||
);
|
||||
Object.defineProperties(replacement, descriptors);
|
||||
}
|
||||
|
|
Loading…
Add table
Reference in a new issue