Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Improves packageId generation / validation #142

Merged
merged 2 commits into from
Apr 23, 2020

Conversation

andreban
Copy link
Member

  • generatePackageId returns an error string when a correct
    package cannot be generated from the input.
  • validatePackageId returns an error string if the input is
    invalid or null if there's no error.
  • validateNotEmpty introduced in core. notEmpty() in
    cli/inputHelpers() uses it.
  • TwaGenerator#validate() changed to return an error string if the
    packageId is invalid or null if if it is valid. It also validates
    the packageId

- generatePackageId returns an error string  when a correct
  package cannot be generated from the input.
- validatePackageId returns an error string if the input is
  invalid or null if there's no error.
- validateNotEmpty introduced in `core`. `notEmpty()` in
  `cli/inputHelpers()` uses it.
- TwaGenerator#validate() changed to return an error string if the
  packageId is invalid or null if if it is valid. It also validates
  the packageId
@andreban andreban added breaking enhancement New feature or request labels Apr 23, 2020
@andreban andreban merged commit a8f8a56 into GoogleChromeLabs:master Apr 23, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
breaking enhancement New feature or request
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants