You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Fix: Allow absolute URLs as paths, e.g. for load()
When using protobuf.js in a browser, it's useful to be able to load
proto files from other origins. But currently, path.normalize() mangles
URLs by removing the second slash after the scheme (e.g.
"https://example.com/" becomes "https:/example.com").
Fix that issue, and better integrate the existing UNC support, by
introducing a new path.absolutePrefix() function that checks for all the
various prefixes that indicate a path is absolute and returns the one it
finds (if any). By including both slashes in the return value for URLs,
we exclude them from the normalization logic.
0 commit comments