@unchainedshop/ticketing 4.6.2 → 4.8.1

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.
@@ -154,10 +154,9 @@ const appleWalletHandler = async (req, res) => {
154
154
  const result = await fetch(url);
155
155
  const data = await result.arrayBuffer();
156
156
  const uint8View = new Uint8Array(data);
157
- res.writeHead(200, {
158
- 'Content-Type': 'application/vnd.apple.pkpass',
159
- 'Last-Modified': lastModifiedDate.toUTCString(),
160
- });
157
+ res.status(200);
158
+ res.setHeader('Content-Type', 'application/vnd.apple.pkpass');
159
+ res.setHeader('Last-Modified', lastModifiedDate.toUTCString());
161
160
  res.send(uint8View);
162
161
  return;
163
162
  }
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.6.2",
4
+ "version": "4.8.1",
5
5
  "main": "lib/index.js",
6
6
  "types": "lib/index.d.ts",
7
7
  "type": "module",