Skip to content
This repository was archived by the owner on Apr 11, 2024. It is now read-only.

Commit f57712c

Browse files
committed
changeset
lint remove extra type
1 parent d5bc28b commit f57712c

File tree

3 files changed

+6
-6
lines changed

3 files changed

+6
-6
lines changed

.changeset/grumpy-numbers-count.md

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
---
2+
"@shopify/shopify-api": patch
3+
---
4+
5+
Refactor HMAC validation to use a common function.

packages/shopify-api/lib/utils/types.ts

Lines changed: 0 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -3,11 +3,6 @@ export enum HmacValidationType {
33
Webhook = 'webhook',
44
}
55

6-
export enum ValidationType {
7-
Flow = 'flow',
8-
Webhook = 'webhook',
9-
}
10-
116
export const ValidationErrorReason = {
127
MissingBody: 'missing_body',
138
InvalidHmac: 'invalid_hmac',

packages/shopify-api/lib/webhooks/validate.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,4 @@
1+
import {logger} from '../logger';
12
import {validateHmacFromRequestFactory} from '../utils/hmac-validator';
23
import {HmacValidationType, ValidationErrorReason} from '../utils/types';
34
import {
@@ -18,7 +19,6 @@ import {
1819
WebhookValidationValid,
1920
} from './types';
2021
import {topicForStorage} from './registry';
21-
import { logger } from 'lib/logger';
2222

2323
const OPTIONAL_HANDLER_PROPERTIES = {
2424
subTopic: ShopifyHeader.SubTopic,

0 commit comments

Comments
 (0)