@unchainedshop/ticketing 4.8.11 → 4.8.13
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/lib/routes.js +2 -2
- package/package.json +9 -9
package/lib/routes.js
CHANGED
|
@@ -54,7 +54,7 @@ export async function googleWalletHandler(request, context) {
|
|
|
54
54
|
}
|
|
55
55
|
const url = new URL(request.url);
|
|
56
56
|
const hash = url.searchParams.get('hash');
|
|
57
|
-
const correctHash = await modules.warehousing.
|
|
57
|
+
const correctHash = await modules.warehousing.buildAccessKeyFromToken(token);
|
|
58
58
|
if (!hash || hash !== correctHash) {
|
|
59
59
|
return new Response(JSON.stringify({ error: 'Token hash invalid for current owner' }), {
|
|
60
60
|
status: 403,
|
|
@@ -96,7 +96,7 @@ export async function appleWalletHandler(request, context) {
|
|
|
96
96
|
});
|
|
97
97
|
}
|
|
98
98
|
const hash = url.searchParams.get('hash');
|
|
99
|
-
const correctHash = await modules.warehousing.
|
|
99
|
+
const correctHash = await modules.warehousing.buildAccessKeyFromToken(token);
|
|
100
100
|
if (!hash || hash !== correctHash) {
|
|
101
101
|
return new Response(JSON.stringify({ error: 'Token hash invalid for current owner' }), {
|
|
102
102
|
status: 403,
|
package/package.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@unchainedshop/ticketing",
|
|
3
3
|
"description": "Event ticketing extension for the Unchained Engine with PDF and wallet pass support",
|
|
4
|
-
"version": "4.8.
|
|
4
|
+
"version": "4.8.13",
|
|
5
5
|
"main": "lib/index.js",
|
|
6
6
|
"types": "lib/index.d.ts",
|
|
7
7
|
"type": "module",
|
|
@@ -34,14 +34,14 @@
|
|
|
34
34
|
},
|
|
35
35
|
"homepage": "https://github.com/unchainedshop/unchained#readme",
|
|
36
36
|
"dependencies": {
|
|
37
|
-
"@unchainedshop/api": "^4.
|
|
38
|
-
"@unchainedshop/core": "^4.
|
|
39
|
-
"@unchainedshop/core-files": "^4.
|
|
40
|
-
"@unchainedshop/core-warehousing": "^4.
|
|
41
|
-
"@unchainedshop/core-worker": "^4.
|
|
42
|
-
"@unchainedshop/events": "^4.
|
|
43
|
-
"@unchainedshop/logger": "^4.
|
|
44
|
-
"@unchainedshop/mongodb": "^4.
|
|
37
|
+
"@unchainedshop/api": "^4.8.12",
|
|
38
|
+
"@unchainedshop/core": "^4.8.12",
|
|
39
|
+
"@unchainedshop/core-files": "^4.8.12",
|
|
40
|
+
"@unchainedshop/core-warehousing": "^4.8.12",
|
|
41
|
+
"@unchainedshop/core-worker": "^4.8.12",
|
|
42
|
+
"@unchainedshop/events": "^4.8.12",
|
|
43
|
+
"@unchainedshop/logger": "^4.8.12",
|
|
44
|
+
"@unchainedshop/mongodb": "^4.8.12"
|
|
45
45
|
},
|
|
46
46
|
"peerDependencies": {
|
|
47
47
|
"@parse/node-apn": "^7.0.1",
|