beer-network 1.2.5 → 1.2.6

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.
Files changed (2) hide show
  1. package/api.js +6 -1
  2. package/package.json +1 -1
package/api.js CHANGED
@@ -294,7 +294,12 @@ export default class Fetch {
294
294
  return undefined;
295
295
  }
296
296
  if (this.isNextJS && this.nodeHeaders !== undefined) {
297
- return this.nodeHeaders.get('AccessToken') ?? this.nodeHeaders.get('Authorization') ?? '';
297
+ return this.nodeHeaders.get('x-access-token')
298
+ ?? this.nodeHeaders.get('access-token')
299
+ ?? this.nodeHeaders.get('authorization')
300
+ ?? this.nodeHeaders.get('AccessToken')
301
+ ?? this.nodeHeaders.get('Authorization')
302
+ ?? '';
298
303
  }
299
304
  try {
300
305
  const nextModule = await import('next/headers');
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "beer-network",
3
3
  "private": false,
4
- "version": "1.2.5",
4
+ "version": "1.2.6",
5
5
  "scripts": {
6
6
  "pub-w": "tsc && copy package.json .\\dist\\package.json && npm publish ./dist",
7
7
  "pub-m": "tsc && cp package.json ./dist/package.json && npm publish ./dist"