@@ -1,11 +1,12 @@
|
||||
import assert from 'node:assert'
|
||||
import { createHmac, timingSafeEqual } from 'node:crypto'
|
||||
import { EventEmitter } from 'node:events'
|
||||
import { InvalidSignatureError } from './error'
|
||||
import type { IncomingMessage, ServerResponse } from 'node:http'
|
||||
import type { BusinessEvents } from './event.enum'
|
||||
import type { ExtendedEventEmitter, GenericEvent } from './types'
|
||||
|
||||
import { InvalidSignatureError } from './error'
|
||||
|
||||
interface CreateHandlerOptions {
|
||||
secret: string
|
||||
// events?: 'all' | BusinessEvents[]
|
||||
|
||||
Reference in New Issue
Block a user