From 1aedb382d596f85bc90958f491d2c8b71c5b426c Mon Sep 17 00:00:00 2001 From: "dependabot[bot]" <49699333+dependabot[bot]@users.noreply.github.com> Date: Wed, 15 Jul 2026 10:54:16 +0000 Subject: [PATCH 1/2] chore(deps-dev): bump typescript from 6.0.3 to 7.0.2 Bumps [typescript](https://github.com/microsoft/TypeScript) from 6.0.3 to 7.0.2. - [Release notes](https://github.com/microsoft/TypeScript/releases) - [Commits](https://github.com/microsoft/TypeScript/commits) --- updated-dependencies: - dependency-name: typescript dependency-version: 7.0.2 dependency-type: direct:development update-type: version-update:semver-major ... Signed-off-by: dependabot[bot] --- package.json | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/package.json b/package.json index b2d5751..6a00c2a 100644 --- a/package.json +++ b/package.json @@ -46,7 +46,7 @@ "conventional-changelog-conventionalcommits": "^10.2.0", "semantic-release": "^25.0.3", "standard": "^17.1.2", - "typescript": "^6.0.2" + "typescript": "^7.0.2" }, "release": { "branches": [ From d339df6ab76f33cd67f056863b6cff3dca9093db Mon Sep 17 00:00:00 2001 From: Rod Vagg Date: Wed, 29 Jul 2026 17:54:54 +1000 Subject: [PATCH 2/2] chore: fixes for ts@7 --- types/github-webhook-handler.d.ts | 12 ++++++------ types/github-webhook-handler.d.ts.map | 2 +- 2 files changed, 7 insertions(+), 7 deletions(-) diff --git a/types/github-webhook-handler.d.ts b/types/github-webhook-handler.d.ts index 77e985c..90aa9bb 100644 --- a/types/github-webhook-handler.d.ts +++ b/types/github-webhook-handler.d.ts @@ -1,8 +1,8 @@ -export default create; +import { EventEmitter } from 'node:events'; export type CreateHandlerOptions = { path: string; secret: string; - events?: string | string[] | undefined; + events?: string | string[]; }; export type WebhookEvent = { /** @@ -20,11 +20,11 @@ export type WebhookEvent = { /** * - The request protocol */ - protocol?: string | undefined; + protocol?: string; /** * - The request host header */ - host?: string | undefined; + host?: string; /** * - The request URL */ @@ -39,9 +39,9 @@ export type WebhookEvent = { * @returns {EventEmitter & {(req: import('node:http').IncomingMessage, res: import('node:http').ServerResponse, callback: (err?: Error) => void): void, sign(data: string | Buffer): string, verify(signature: string, data: string | Buffer): boolean}} */ declare function create(initOptions: CreateHandlerOptions | CreateHandlerOptions[]): EventEmitter & { - (req: import("node:http").IncomingMessage, res: import("node:http").ServerResponse, callback: (err?: Error) => void): void; + (req: import('node:http').IncomingMessage, res: import('node:http').ServerResponse, callback: (err?: Error) => void): void; sign(data: string | Buffer): string; verify(signature: string, data: string | Buffer): boolean; }; -import { EventEmitter } from 'node:events'; +export default create; //# sourceMappingURL=github-webhook-handler.d.ts.map \ No newline at end of file diff --git a/types/github-webhook-handler.d.ts.map b/types/github-webhook-handler.d.ts.map index aece0e3..6a1d733 100644 --- a/types/github-webhook-handler.d.ts.map +++ b/types/github-webhook-handler.d.ts.map @@ -1 +1 @@ -{"version":3,"file":"github-webhook-handler.d.ts","sourceRoot":"","sources":["../github-webhook-handler.js"],"names":[],"mappings":";;UAMc,MAAM;YACN,MAAM;;;;;;;WAMN,MAAM;;;;QACN,MAAM;;;;aACN,GAAG;;;;;;;;;;;;SAGH,MAAM;;;;UACN,MAAM;;AAwCpB;;;GAGG;AACH,qCAHW,oBAAoB,GAAG,oBAAoB,EAAE,GAC3C,YAAY,GAAG;IAAC,CAAC,GAAG,EAAE,OAAO,WAAW,EAAE,eAAe,EAAE,GAAG,EAAE,OAAO,WAAW,EAAE,cAAc,EAAE,QAAQ,EAAE,CAAC,GAAG,CAAC,EAAE,KAAK,KAAK,IAAI,GAAG,IAAI,CAAC;IAAC,IAAI,CAAC,IAAI,EAAE,MAAM,GAAG,MAAM,GAAG,MAAM,CAAC;IAAC,MAAM,CAAC,SAAS,EAAE,MAAM,EAAE,IAAI,EAAE,MAAM,GAAG,MAAM,GAAG,OAAO,CAAA;CAAC,CA0IvP;6BAvM4B,aAAa"} \ No newline at end of file +{"version":3,"file":"github-webhook-handler.d.ts","sourceRoot":"","sources":["../github-webhook-handler.js"],"names":[],"mappings":"AAAA,OAAO,EAAE,YAAY,EAAE,MAAM,aAAa,CAAA;AAKvC,YAAkB,oBAAoB,GACtC;IAAmB,IAAI,EAAZ,MAAM,CACjB;IAAmB,MAAM,EAAd,MAAM,CACjB;IAA+B,MAAM,AAArC,CAAsC,EAA3B,MAAM,GAAG,MAAM,EAAE,CAAU;CAAA,CAAA;AAItC,YAAkB,YAAY,GAC9B;;;;IAAmB,KAAK,EAAb,MAAM,CACjB;;;;IAAmB,EAAE,EAAV,MAAM,CACjB;;;;IAAgB,OAAO,EAAZ,GAAG,CACd;;;;IAAoB,QAAQ,AAA5B,CACA,EADW,MAAM,CACjB;;;;IAAoB,IAAI,AAAxB,CACA,EADW,MAAM,CACjB;;;;IAAmB,GAAG,EAAX,MAAM,CACjB;;;;IAAmB,IAAI,EAAZ,MAAM,CACnB;CAAA,CAAA;AAuCD;;;GAGG;AACH,iBAAS,MAAM,CAAE,WAAW,EAHjB,oBAAoB,GAAG,oBAAoB,EAG1B,GAFf,YAAY,GAAG;IAAC,CAAC,GAAG,EAAE,OAAO,WAAW,EAAE,eAAe,EAAE,GAAG,EAAE,OAAO,WAAW,EAAE,cAAc,EAAE,QAAQ,EAAE,CAAC,GAAG,CAAC,EAAE,KAAK,KAAK,IAAI,GAAG,IAAI,CAAC;IAAC,IAAI,CAAC,IAAI,EAAE,MAAM,GAAG,MAAM,GAAG,MAAM,CAAC;IAAC,MAAM,CAAC,SAAS,EAAE,MAAM,EAAE,IAAI,EAAE,MAAM,GAAG,MAAM,GAAG,OAAO,CAAA;CAAC,CA0IvP;eAEc,MAAM"} \ No newline at end of file