@hookflo/tern 1.0.2 → 1.0.4
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.
- package/dist/platforms/algorithms.js +11 -1
- package/package.json +4 -2
|
@@ -63,7 +63,13 @@ exports.platformAlgorithmConfigs = {
|
|
|
63
63
|
headerFormat: "raw",
|
|
64
64
|
timestampHeader: "webhook-timestamp",
|
|
65
65
|
timestampFormat: "unix",
|
|
66
|
-
payloadFormat: "
|
|
66
|
+
payloadFormat: "custom",
|
|
67
|
+
customConfig: {
|
|
68
|
+
signatureFormat: "v1={signature}",
|
|
69
|
+
payloadFormat: "{id}.{timestamp}.{body}",
|
|
70
|
+
encoding: "base64",
|
|
71
|
+
idHeader: "webhook-id",
|
|
72
|
+
},
|
|
67
73
|
},
|
|
68
74
|
description: "Dodo Payments webhooks use HMAC-SHA256",
|
|
69
75
|
},
|
|
@@ -128,6 +134,10 @@ exports.platformAlgorithmConfigs = {
|
|
|
128
134
|
headerName: "x-webhook-token",
|
|
129
135
|
headerFormat: "raw",
|
|
130
136
|
payloadFormat: "raw",
|
|
137
|
+
customConfig: {
|
|
138
|
+
type: "token-based",
|
|
139
|
+
idHeader: "x-webhook-id",
|
|
140
|
+
},
|
|
131
141
|
},
|
|
132
142
|
description: "Custom webhook configuration",
|
|
133
143
|
},
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@hookflo/tern",
|
|
3
|
-
"version": "1.0.
|
|
3
|
+
"version": "1.0.4",
|
|
4
4
|
"description": "A robust, scalable webhook verification framework supporting multiple platforms and signature algorithms",
|
|
5
5
|
"main": "dist/index.js",
|
|
6
6
|
"types": "dist/index.d.ts",
|
|
@@ -12,7 +12,9 @@
|
|
|
12
12
|
"lint:fix": "eslint 'src/**/*.ts' --fix",
|
|
13
13
|
"format": "prettier --write src/**/*.ts",
|
|
14
14
|
"prepare": "npm run build",
|
|
15
|
-
"
|
|
15
|
+
"release:patch": "npm run build && npm version patch && npm publish",
|
|
16
|
+
"release:minor": "npm run build && npm version minor && npm publish",
|
|
17
|
+
"release:major": "npm run build && npm version major && npm publish",
|
|
16
18
|
"clean": "rm -rf dist",
|
|
17
19
|
"prebuild": "npm run clean"
|
|
18
20
|
},
|