https://github.com/robhogan/jsc-safe-url.git
jsc-safe-urlJavaScriptCore santizes source URLs in error stacks by stripping query strings and fragments. Ref: Webkit/Webkit#49109d.
This package contains utility functions required to implement the proposed React Native Community RFC0646. It exports two functons:
function toJscSafeUrl(urlToConvert: string): string;& to separate the original path from the orignal query string. Throws if the input cannot be parsed as a URL.
toJscSafeUrl('https://example.com/path?foo=bar#fragment')
// 'https://example.com/path;&foo=bar#fragment'
function normalizeUrl(urlToNormalize: string): string;& in the path component with ?. (Effectively the reverse of toJscSafeUrl.) Throws if the input cannot be parsed as a URL.
normalizeUrl('https://example.com/path;&foo=bar#fragment')
// 'https://example.com/path?foo=bar#fragment'