-
Notifications
You must be signed in to change notification settings - Fork 133
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
fix(cookies): AMP-35904 dedup cookies (#390)
* fix(cookie): add constants for cookie prop indexes * fix(cookie): dedup cookie on load * fix(cookie): make getLastEventTime more resilient * fix(cookie): fix event time sort * fix(cookie): clarify cookie constant comment * fix(cookie): clean up getAll method * fix(cookie): add unit tests for cookie parsing and sorting * fix(cookie): return empty array from getAll on exception * fix(cookie): remove duplicate test * fix(cookie): refactor getLastEventTime and add warning logs for malformed cookie Co-authored-by: AJ Horst <AJ_Horst@intuit.com>
- Loading branch information
Showing
4 changed files
with
134 additions
and
16 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters