Skip to content

Commit

Permalink
Export createFromMapFiles SourceMapper utility
Browse files Browse the repository at this point in the history
  • Loading branch information
VladimirMilenko committed Mar 18, 2022
1 parent c528b97 commit 8a33d10
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion ts/src/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@ import * as timeProfiler from './time-profiler';
export {AllocationProfileNode, TimeProfileNode, ProfileNode} from './v8-types';

export {encode, encodeSync} from './profile-encoder';
export {SourceMapper} from './sourcemapper/sourcemapper';
export {SourceMapper, createFromMapFiles} from './sourcemapper/sourcemapper';

export const time = {
profile: timeProfiler.profile,
Expand Down
2 changes: 1 addition & 1 deletion ts/src/sourcemapper/sourcemapper.ts
Original file line number Diff line number Diff line change
Expand Up @@ -222,7 +222,7 @@ export class SourceMapper {
}
}

async function createFromMapFiles(mapFiles: string[]): Promise<SourceMapper> {
export async function createFromMapFiles(mapFiles: string[]): Promise<SourceMapper> {
const limit = pLimit(CONCURRENCY);
const mapper = new SourceMapper();
const promises: Array<Promise<void>> = mapFiles.map(mapPath =>
Expand Down

0 comments on commit 8a33d10

Please sign in to comment.