beer-network 1.2.7 → 1.2.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/api.js +2 -1
- package/package.json +3 -4
package/api.js
CHANGED
|
@@ -293,7 +293,8 @@ export default class Fetch {
|
|
|
293
293
|
return undefined;
|
|
294
294
|
}
|
|
295
295
|
if (this.isNextJS === true) {
|
|
296
|
-
|
|
296
|
+
// eslint-disable-next-line global-require
|
|
297
|
+
const nextModule = require('next/headers');
|
|
297
298
|
const nodeHeaders = await nextModule.headers();
|
|
298
299
|
return nodeHeaders.get('x-access-token')
|
|
299
300
|
?? nodeHeaders.get('access-token')
|
package/package.json
CHANGED
|
@@ -1,13 +1,11 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "beer-network",
|
|
3
3
|
"private": false,
|
|
4
|
-
"version": "1.2.
|
|
4
|
+
"version": "1.2.8",
|
|
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"
|
|
8
8
|
},
|
|
9
|
-
"dependencies": {
|
|
10
|
-
},
|
|
11
9
|
"peerDependencies": {
|
|
12
10
|
"next": "*"
|
|
13
11
|
},
|
|
@@ -17,8 +15,8 @@
|
|
|
17
15
|
}
|
|
18
16
|
},
|
|
19
17
|
"devDependencies": {
|
|
20
|
-
"next": "^16.1.3",
|
|
21
18
|
"@babel/eslint-parser": "^7.22.15",
|
|
19
|
+
"@types/node": "^25.0.10",
|
|
22
20
|
"@typescript-eslint/eslint-plugin": "^6.0.0",
|
|
23
21
|
"@typescript-eslint/parser": "^6.0.0",
|
|
24
22
|
"eslint": "^8.45.0",
|
|
@@ -28,6 +26,7 @@
|
|
|
28
26
|
"eslint-plugin-react": "^7.33.2",
|
|
29
27
|
"eslint-plugin-react-hooks": "^4.6.0",
|
|
30
28
|
"eslint-plugin-react-refresh": "^0.4.3",
|
|
29
|
+
"next": "^16.1.3",
|
|
31
30
|
"typescript": "^5.0.2"
|
|
32
31
|
}
|
|
33
32
|
}
|