(moduleId: string)
| 40 | constructor(private projectRoot: string | RegExp) {} |
| 41 | |
| 42 | trimProjectRootId(moduleId: string): string { |
| 43 | if (typeof this.projectRoot === "string" && moduleId.startsWith(this.projectRoot)) { |
| 44 | return moduleId.slice(this.projectRoot.length); |
| 45 | } |
| 46 | return moduleId.replace(this.projectRoot, ""); |
| 47 | } |
| 48 | |
| 49 | uniqueId(): ModuleUID { |
| 50 | return `${HASH_PLACEHOLDER}-${this.counter++}`; |
no outgoing calls
no test coverage detected