Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.
export function pushUrlParams(params: Params) {
const query = stringifyUrlQuery(params);
history.pushState({}, '', `?${query}`);
}
function getLaunchEditorUrl(errorLocation: ErrorOverlay.ErrorLocation) {
return `${LAUNCH_EDITOR_ENDPOINT}?${stringifyUrlQuery({
filePath: errorLocation.fileName,
line: errorLocation.lineNumber || 1,
column: errorLocation.colNumber || 1
})}`;
}