@tramvai/module-cookie 3.37.1 → 3.37.7

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/README.md +4 -3
  2. package/package.json +6 -6
package/README.md CHANGED
@@ -8,7 +8,7 @@ Module is already provided with the `@tramvai/module-common` so no additional ac
8
8
 
9
9
  ## Explanation
10
10
 
11
- Implements interface `CookieManager` and adds provider `COOKIE_MANAGER` from the `@tinkoff/core`
11
+ Implements interface `CookieManager` and adds provider `COOKIE_MANAGER_TOKEN` from the `@tramvai/module-common`
12
12
 
13
13
  ### Features
14
14
 
@@ -21,7 +21,8 @@ Implements interface `CookieManager` and adds provider `COOKIE_MANAGER` from the
21
21
  ### Get cookie
22
22
 
23
23
  ```tsx
24
- import { COOKIE_MANAGER, Module, provide } from '@tramvai/core';
24
+ import { Module, provide } from '@tramvai/core';
25
+ import { COOKIE_MANAGER_TOKEN } from '@tramvai/module-common';
25
26
 
26
27
  @Module({
27
28
  providers: [
@@ -31,7 +32,7 @@ import { COOKIE_MANAGER, Module, provide } from '@tramvai/core';
31
32
  cookie.get('sid'); // > ads.api3
32
33
  },
33
34
  deps: {
34
- cookie: COOKIE_MANAGER,
35
+ cookie: COOKIE_MANAGER_TOKEN,
35
36
  },
36
37
  }),
37
38
  ],
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@tramvai/module-cookie",
3
- "version": "3.37.1",
3
+ "version": "3.37.7",
4
4
  "description": "",
5
5
  "browser": "lib/browser.js",
6
6
  "main": "lib/server.js",
@@ -19,15 +19,15 @@
19
19
  },
20
20
  "dependencies": {
21
21
  "@tinkoff/browser-cookies": "3.0.1",
22
- "@tramvai/tokens-cookie": "3.37.1",
23
- "@tramvai/module-client-hints": "3.37.1",
22
+ "@tramvai/tokens-cookie": "3.37.7",
23
+ "@tramvai/module-client-hints": "3.37.7",
24
24
  "cookie": "^0.5.0"
25
25
  },
26
26
  "peerDependencies": {
27
27
  "@tinkoff/utils": "^2.1.2",
28
- "@tramvai/core": "3.37.1",
29
- "@tramvai/state": "3.37.1",
30
- "@tramvai/tokens-common": "3.37.1",
28
+ "@tramvai/core": "3.37.7",
29
+ "@tramvai/state": "3.37.7",
30
+ "@tramvai/tokens-common": "3.37.7",
31
31
  "@tinkoff/dippy": "0.9.2",
32
32
  "tslib": "^2.4.0"
33
33
  },