run npm install to generate a package lock

This commit is contained in:
sashinexists
2024-12-07 13:18:31 +11:00
parent e7d08a91b5
commit 23437d228e
2501 changed files with 290663 additions and 0 deletions

View File

@@ -0,0 +1,18 @@
import { isPlainObject } from "@weborigami/async-tree";
// For comparison purposes, strip the `location` property added by the parser.
export function stripCodeLocations(parseResult) {
if (Array.isArray(parseResult)) {
return parseResult.map(stripCodeLocations);
} else if (isPlainObject(parseResult)) {
const result = {};
for (const key in parseResult) {
if (key !== "location") {
result[key] = stripCodeLocations(parseResult[key]);
}
}
return result;
} else {
return parseResult;
}
}