Skip to content

Commit

Permalink
chore: remove console.log
Browse files Browse the repository at this point in the history
  • Loading branch information
msp5382 committed Dec 30, 2023
1 parent a746c79 commit 6580cdd
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 10 deletions.
1 change: 0 additions & 1 deletion src/walk/4-create-context.ts
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,6 @@ import {
} from "./source-templates";

export const createContextFromGraph = (graph: DependencyGraph) => {
graph.print();
const properties = graph.topologicalSort().map((hash) => {
const resolved = graph.resolve(hash);
if (!resolved) {
Expand Down
15 changes: 6 additions & 9 deletions src/walk/utils.ts
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,6 @@ export const hashSymbol = (symbol: ts.Symbol) => {
.update(symbolName)
.digest("hex")
.substring(0, 8);
console.log("hash",symbolName, hash);
return hash;
};

Expand All @@ -28,12 +27,10 @@ export const hashNode = (node: ts.Node) => {
const typeString = globalTypeChecker.typeToString(type);

const hash = crypto
.createHash("md5")
.update(typeString)
.digest("hex")
.substring(0, 8);
console.log("hash",typeString, hash);

return hash;
.createHash("md5")
.update(typeString)
.digest("hex")
.substring(0, 8);

}
return hash;
};

0 comments on commit 6580cdd

Please sign in to comment.