@upstash/qstash 0.0.7 → 0.0.8

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/esm/consumer.js CHANGED
@@ -75,7 +75,7 @@ export class Consumer {
75
75
  }
76
76
  const bodyHash = await dntShim.crypto.subtle.digest("SHA-256", new TextEncoder().encode(req.body));
77
77
  if (p.body != base64.encode(bodyHash)) {
78
- throw new SignatureError("body hash does not match");
78
+ throw new SignatureError(`body hash does not match, want: ${p.body}, got: ${base64.encode(bodyHash)}`);
79
79
  }
80
80
  return true;
81
81
  }
package/package.json CHANGED
@@ -3,7 +3,7 @@
3
3
  "main": "./script/entrypoints/nextjs.js",
4
4
  "types": "./types/entrypoints/nextjs.d.ts",
5
5
  "name": "@upstash/qstash",
6
- "version": "v0.0.7",
6
+ "version": "v0.0.8",
7
7
  "description": "Official Deno/Typescript client for qStash",
8
8
  "repository": {
9
9
  "type": "git",
@@ -102,7 +102,7 @@ class Consumer {
102
102
  }
103
103
  const bodyHash = await dntShim.crypto.subtle.digest("SHA-256", new TextEncoder().encode(req.body));
104
104
  if (p.body != base64.encode(bodyHash)) {
105
- throw new SignatureError("body hash does not match");
105
+ throw new SignatureError(`body hash does not match, want: ${p.body}, got: ${base64.encode(bodyHash)}`);
106
106
  }
107
107
  return true;
108
108
  }