@octokit/webhooks
Advanced tools
Comparing version 5.3.0 to 5.3.1
{ | ||
"name": "@octokit/webhooks", | ||
"version": "5.3.0", | ||
"version": "5.3.1", | ||
"publishConfig": { | ||
@@ -5,0 +5,0 @@ "access": "public" |
@@ -54,19 +54,22 @@ const fs = require('fs') | ||
} | ||
export class Webhooks { | ||
constructor (options: Options) | ||
} | ||
public on (event: 'error', callback: (event: Error) => void): void | ||
public on (event: '*' | string | string[], callback: (event: Webhooks.WebhookEvent<any>) => void): void | ||
public on (event: '*' | string | string[], callback: (event: Webhooks.WebhookEvent<any>) => Promise<void>): void | ||
${signatures.join('\n')} | ||
export class Webhooks { | ||
constructor (options: Options) | ||
public sign (data: any): string | ||
public verify (eventPayload: any, signature: string): boolean | ||
public verifyAndReceive (options: { id: string, name: string, payload: any, signature: string }): Promise<void> | ||
public receive (options: { id: string, name: string, payload: any }): Promise<void> | ||
public removeListener (event: string | string[], callback: (event: Webhooks.WebhookEvent<any>) => void): void | ||
public removeListener (event: string | string[], callback: (event: Webhooks.WebhookEvent<any>) => Promise<void>): void | ||
public middleware (request: http.ClientRequest, response: http.ServerResponse, next: (err?: any) => void): (request: http.IncomingMessage, response: http.ServerResponse) => void | ||
} | ||
public on (event: 'error', callback: (event: Error) => void): void | ||
public on (event: '*' | string | string[], callback: (event: Webhooks.WebhookEvent<any>) => void): void | ||
public on (event: '*' | string | string[], callback: (event: Webhooks.WebhookEvent<any>) => Promise<void>): void | ||
${signatures.join('\n')} | ||
public sign (data: any): string | ||
public verify (eventPayload: any, signature: string): boolean | ||
public verifyAndReceive (options: { id: string, name: string, payload: any, signature: string }): Promise<void> | ||
public receive (options: { id: string, name: string, payload: any }): Promise<void> | ||
public removeListener (event: string | string[], callback: (event: Webhooks.WebhookEvent<any>) => void): void | ||
public removeListener (event: string | string[], callback: (event: Webhooks.WebhookEvent<any>) => Promise<void>): void | ||
public middleware (request: http.ClientRequest, response: http.ServerResponse, next: (err?: any) => void): (request: http.IncomingMessage, response: http.ServerResponse) => void | ||
} | ||
export = Webhooks | ||
` | ||
@@ -73,0 +76,0 @@ |
Sorry, the diff of this file is too big to display
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
175665
5122