Skip to content

refactor: update webhooks HOF to Webhooks class#34

Merged
karrui merged 8 commits intomasterfrom
feat/class-based-subpackages
Jun 11, 2020
Merged

refactor: update webhooks HOF to Webhooks class#34
karrui merged 8 commits intomasterfrom
feat/class-based-subpackages

Conversation

@karrui
Copy link
Contributor

@karrui karrui commented Jun 4, 2020

Part one of the refactor, meant to keep the PR size manageable.

Related to #31

The current chain is:
master -> webhooks (this)

@karrui karrui requested a review from liangyuanruo June 4, 2020 08:23
@karrui karrui changed the base branch from master to feat/add-built-types June 4, 2020 08:23
@karrui karrui force-pushed the feat/class-based-subpackages branch from fdfa627 to 3d4fcce Compare June 5, 2020 02:09
@karrui karrui force-pushed the feat/add-built-types branch from 18eccc8 to 495d8aa Compare June 5, 2020 02:09
@karrui karrui requested a review from mantariksh June 5, 2020 02:11
liangyuanruo
liangyuanruo previously approved these changes Jun 5, 2020
Copy link
Contributor

@liangyuanruo liangyuanruo left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM. I'm glad we got rid of the internal _functions.

Base automatically changed from feat/add-built-types to master June 5, 2020 06:08
@karrui karrui dismissed liangyuanruo’s stale review June 5, 2020 06:08

The base branch was changed.

@karrui karrui force-pushed the feat/class-based-subpackages branch from 3d4fcce to 92358d5 Compare June 8, 2020 04:01
@karrui karrui requested a review from liangyuanruo June 8, 2020 04:15
@karrui karrui requested a review from arshadali172 June 11, 2020 03:13
@karrui karrui merged commit 864d2f6 into master Jun 11, 2020
@karrui karrui deleted the feat/class-based-subpackages branch June 11, 2020 07:11
liangyuanruo pushed a commit that referenced this pull request Jan 27, 2021
* feat: add new errors.ts file containing MissingSecretKeyError

* feat: add util/webhooks.ts for helper methods used by Webhooks class

* feat: rewrite webhooks.ts functions as Webhooks class and use in init

* test(Webhooks): update tests to use new class based instantiation

* test: extract out commonly used functions across tests

* feat: add WebhookAuthenticateError class

* test: add tests for 100% coverage of Webhooks class

* refactor: move webhook signature malform check into util
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants