node-leek 1.0.7 → 1.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.
@@ -35,7 +35,7 @@ class DefaultApi {
35
35
  authentications = {
36
36
  'default': new models_1.VoidAuth(),
37
37
  'cookieAuth': new models_2.ApiKeyAuth('cookie', 'token'),
38
- 'phpsessid': new models_2.ApiKeyAuth('cookie', 'PHPSESSID'),
38
+ 'phpsessid': new models_2.ApiKeyAuth('cookie', '__Host-sess'),
39
39
  };
40
40
  interceptors = [];
41
41
  constructor(basePathOrUsername, password, basePath) {
@@ -19,10 +19,10 @@ function getCookieToken(header) {
19
19
  return value !== undefined ? value : "";
20
20
  }
21
21
  function getPhpsessidToken(header) {
22
- const cookie = getSetterOf(header ?? [], "PHPSESSID");
23
- if (!cookie.includes("PHPSESSID="))
22
+ const cookie = getSetterOf(header ?? [], "__Host-sess");
23
+ if (!cookie.includes("__Host-sess="))
24
24
  return "";
25
- const value = cookie.split(";")[0].split("PHPSESSID=")[1];
25
+ const value = cookie.split(";")[0].split("__Host-sess=")[1];
26
26
  return value !== undefined ? value : "";
27
27
  }
28
28
  class LeekWarsClient {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "node-leek",
3
- "version": "1.0.7",
3
+ "version": "1.0.8",
4
4
  "description": "A library for interacting with LeekWars API.",
5
5
  "main": "dist/app.js",
6
6
  "types": "dist/app.d.ts",