(value: string, helpers?: FrameworkProcessFileContext['helpers'])
| 30 | } |
| 31 | |
| 32 | function shortHash(value: string, helpers?: FrameworkProcessFileContext['helpers']): string { |
| 33 | const fromHelper = helpers?.createHash?.(value); |
| 34 | const base = fromHelper || createHash('md5').update(value).digest('hex'); |
| 35 | return base.slice(0, 8); |
| 36 | } |
| 37 | |
| 38 | function normalizeDep(dep: string): string { |
| 39 | return dep.replace(PAT.QUERY_PATTERN, ''); |
no test coverage detected