@farcaster/frame-node 0.0.2 → 0.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/webhook.js +1 -1
- package/package.json +2 -2
- package/src/webhook.ts +1 -1
package/dist/webhook.js
CHANGED
|
@@ -22,7 +22,7 @@ async function parseWebhookEvent(rawData, verifyAppKey) {
|
|
|
22
22
|
catch (error) {
|
|
23
23
|
throw new InvalidEventDataError("Error decoding and parsing payload", error instanceof Error ? error : undefined);
|
|
24
24
|
}
|
|
25
|
-
const event = frame_core_1.eventPayloadSchema.safeParse(
|
|
25
|
+
const event = frame_core_1.eventPayloadSchema.safeParse(payloadJson);
|
|
26
26
|
if (event.success === false) {
|
|
27
27
|
throw new InvalidEventDataError("Invalid event payload", event.error);
|
|
28
28
|
}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@farcaster/frame-node",
|
|
3
|
-
"version": "0.0.
|
|
3
|
+
"version": "0.0.4",
|
|
4
4
|
"main": "dist/index.js",
|
|
5
5
|
"module": "esm/index.js",
|
|
6
6
|
"scripts": {
|
|
@@ -26,7 +26,7 @@
|
|
|
26
26
|
"vitest": "^2.1.8"
|
|
27
27
|
},
|
|
28
28
|
"dependencies": {
|
|
29
|
-
"@farcaster/frame-core": "^0.0.
|
|
29
|
+
"@farcaster/frame-core": "^0.0.16",
|
|
30
30
|
"ox": "^0.4.0"
|
|
31
31
|
},
|
|
32
32
|
"publishConfig": {
|
package/src/webhook.ts
CHANGED
|
@@ -37,7 +37,7 @@ export async function parseWebhookEvent(
|
|
|
37
37
|
);
|
|
38
38
|
}
|
|
39
39
|
|
|
40
|
-
const event = eventPayloadSchema.safeParse(
|
|
40
|
+
const event = eventPayloadSchema.safeParse(payloadJson);
|
|
41
41
|
if (event.success === false) {
|
|
42
42
|
throw new InvalidEventDataError("Invalid event payload", event.error);
|
|
43
43
|
}
|