@tramvai/tokens-cookie 1.89.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.
- package/README.md +3 -0
- package/lib/index.d.ts +20 -0
- package/lib/index.es.js +5 -0
- package/lib/index.js +9 -0
- package/package.json +27 -0
package/README.md
ADDED
package/lib/index.d.ts
ADDED
|
@@ -0,0 +1,20 @@
|
|
|
1
|
+
export interface CookieOptions {
|
|
2
|
+
expires?: number | Date | string;
|
|
3
|
+
domain?: string;
|
|
4
|
+
path?: string;
|
|
5
|
+
secure?: boolean;
|
|
6
|
+
httpOnly?: boolean;
|
|
7
|
+
sameSite?: boolean | 'lax' | 'strict' | 'none';
|
|
8
|
+
noSubdomains?: boolean;
|
|
9
|
+
}
|
|
10
|
+
export interface CookieSetOptions extends CookieOptions {
|
|
11
|
+
name: string;
|
|
12
|
+
value: string;
|
|
13
|
+
}
|
|
14
|
+
export interface CookieManager {
|
|
15
|
+
get(name: any): string;
|
|
16
|
+
all(): Record<string, string>;
|
|
17
|
+
set({ name, value, ...options }: CookieSetOptions): void;
|
|
18
|
+
remove(name: string, options?: CookieOptions): void;
|
|
19
|
+
}
|
|
20
|
+
export declare const COOKIE_MANAGER_TOKEN: CookieManager;
|
package/lib/index.es.js
ADDED
package/lib/index.js
ADDED
package/package.json
ADDED
|
@@ -0,0 +1,27 @@
|
|
|
1
|
+
{
|
|
2
|
+
"name": "@tramvai/tokens-cookie",
|
|
3
|
+
"version": "1.89.1",
|
|
4
|
+
"description": "",
|
|
5
|
+
"main": "lib/index.js",
|
|
6
|
+
"typings": "lib/index.d.ts",
|
|
7
|
+
"files": [
|
|
8
|
+
"lib"
|
|
9
|
+
],
|
|
10
|
+
"sideEffects": false,
|
|
11
|
+
"repository": {
|
|
12
|
+
"type": "git",
|
|
13
|
+
"url": "git@github.com:Tinkoff/tramvai.git"
|
|
14
|
+
},
|
|
15
|
+
"scripts": {
|
|
16
|
+
"build": "tramvai-build --for-publish",
|
|
17
|
+
"watch": "tsc -w",
|
|
18
|
+
"build-for-publish": "true"
|
|
19
|
+
},
|
|
20
|
+
"publishConfig": {
|
|
21
|
+
"registry": "https://registry.npmjs.org/"
|
|
22
|
+
},
|
|
23
|
+
"peerDependencies": {
|
|
24
|
+
"@tinkoff/dippy": "0.7.39"
|
|
25
|
+
},
|
|
26
|
+
"module": "lib/index.es.js"
|
|
27
|
+
}
|