@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 +1 -1
- package/package.json +1 -1
- package/script/consumer.js +1 -1
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(
|
|
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
package/script/consumer.js
CHANGED
|
@@ -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(
|
|
105
|
+
throw new SignatureError(`body hash does not match, want: ${p.body}, got: ${base64.encode(bodyHash)}`);
|
|
106
106
|
}
|
|
107
107
|
return true;
|
|
108
108
|
}
|