@dodopayments/hono 0.1.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -0,0 +1,4 @@
1
+ import { type WebhookHandlerConfig } from "@dodopayments/core/webhook";
2
+ import { Context } from "hono";
3
+ export declare const Webhooks: ({ webhookKey, ...eventHandlers }: WebhookHandlerConfig) => (c: Context) => Promise<(Response & import("hono").TypedResponse<"Method not allowed. Use POST", 405, "text">) | (Response & import("hono").TypedResponse<string, 401, "text">) | (Response & import("hono").TypedResponse<"Error while verifying webhook", 500, "text">) | (Response & import("hono").TypedResponse<`Error parsing webhook payload: ${string}`, 400, "text">) | (Response & import("hono").TypedResponse<"", 200, "text">)>;
4
+ //# sourceMappingURL=webhooks.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"webhooks.d.ts","sourceRoot":"","sources":["../../src/webhooks/webhooks.ts"],"names":[],"mappings":"AAIA,OAAO,EACL,KAAK,oBAAoB,EAE1B,MAAM,4BAA4B,CAAC;AACpC,OAAO,EAAE,OAAO,EAAE,MAAM,MAAM,CAAC;AAG/B,eAAO,MAAM,QAAQ,GAAI,kCAGtB,oBAAoB,MAGP,GAAG,OAAO,iaA8CzB,CAAC"}
package/package.json ADDED
@@ -0,0 +1,57 @@
1
+ {
2
+ "name": "@dodopayments/hono",
3
+ "version": "0.1.1",
4
+ "publishConfig": {
5
+ "access": "public"
6
+ },
7
+ "scripts": {
8
+ "build": "rollup -c",
9
+ "dev": "rollup -c -w",
10
+ "format": "prettier --write .",
11
+ "check-format": "prettier --check .",
12
+ "check-types": "tsc --noEmit"
13
+ },
14
+ "exports": {
15
+ ".": {
16
+ "types": "./dist/index.d.ts",
17
+ "import": "./dist/index.js",
18
+ "require": "./dist/index.cjs"
19
+ }
20
+ },
21
+ "dependencies": {
22
+ "@dodopayments/core": "^0.1.7"
23
+ },
24
+ "keywords": [
25
+ "payments",
26
+ "hono",
27
+ "webhooks",
28
+ "checkout",
29
+ "api",
30
+ "typescript"
31
+ ],
32
+ "author": {
33
+ "name": "Dodo Payments",
34
+ "email": "support@dodopayments.com",
35
+ "url": "https://dodopayments.com"
36
+ },
37
+ "devDependencies": {
38
+ "@dodo/typescript-config": "*",
39
+ "rollup": "^4.0.0",
40
+ "@rollup/plugin-typescript": "^11.0.0",
41
+ "@rollup/plugin-node-resolve": "^15.0.0",
42
+ "@rollup/plugin-commonjs": "^25.0.0",
43
+ "rollup-plugin-dts": "^6.1.0",
44
+ "rimraf": "^5.0.0"
45
+ },
46
+ "peerDependencies": {
47
+ "hono": "^4.8.9",
48
+ "zod": "^3.25.73"
49
+ },
50
+ "type": "module",
51
+ "files": [
52
+ "dist",
53
+ "llm-prompt.txt"
54
+ ]
55
+ }
56
+
57
+