angular-cn/packages/common/upgrade
Alison Gale 39e8ceb2cd fix(upgrade): fix AngularJsUrlCodec to support Safari (#32959)
Safari throws an error when the new URL() constructor is called with an
undefined base. This change checks whether the base is undefined and
then calls the corresponding version of the URL constructor.

fix(upgrade): simplify solution by replacing undefined with ''

Co-Authored-By: Pete Bacon Darwin <pete@bacondarwin.com>

Simplify solution by replacing undefined with ''

Co-Authored-By: Pete Bacon Darwin <pete@bacondarwin.com>

fix(upgrade): Avoid passing an empty string as the base as well.

Browsers other than Safari may have issues with the empty string.

PR Close #32959
2019-10-02 10:00:47 -07:00
..
src fix(upgrade): fix AngularJsUrlCodec to support Safari (#32959) 2019-10-02 10:00:47 -07:00
test refactor(core): Migrate TestBed.get to TestBed.inject (#32382) 2019-09-09 19:10:54 -04:00
BUILD.bazel build(common): add upgrade package dependency common/upgrade (#30055) 2019-04-24 13:49:29 -07:00
index.ts feat(common): add @angular/common/upgrade package for $location-related APIs (#30055) 2019-04-24 13:49:29 -07:00
package.json refactor(common): rename LocationUpgradeService and remove angular/upgrade dependency (#30055) 2019-04-24 13:49:29 -07:00
public_api.ts feat(common): add @angular/common/upgrade package for $location-related APIs (#30055) 2019-04-24 13:49:29 -07:00