react-stream-bloc
Advanced tools
+36
-3
| import * as react_jsx_runtime from 'react/jsx-runtime'; | ||
| import { ReactElementLike } from 'prop-types'; | ||
| import * as React from 'react'; | ||
| import { CookieAttributes } from 'js-cookie'; | ||
| import { Observable } from 'rxjs'; | ||
@@ -26,5 +25,39 @@ | ||
| interface AuthProps { | ||
| /** | ||
| * Define when the cookie will be removed. Value can be a Number | ||
| * which will be interpreted as days from time of creation or a | ||
| * Date instance. If omitted, the cookie becomes a session cookie. | ||
| */ | ||
| expires?: number | Date | undefined; | ||
| /** | ||
| * Define the path where the cookie is available. Defaults to '/' | ||
| */ | ||
| path?: string | undefined; | ||
| /** | ||
| * Define the domain where the cookie is available. Defaults to | ||
| * the domain of the page where the cookie was created. | ||
| */ | ||
| domain?: string | undefined; | ||
| /** | ||
| * A Boolean indicating if the cookie transmission requires a | ||
| * secure protocol (https). Defaults to false. | ||
| */ | ||
| secure?: boolean | undefined; | ||
| /** | ||
| * Asserts that a cookie must not be sent with cross-origin requests, | ||
| * providing some protection against cross-site request forgery | ||
| * attacks (CSRF) | ||
| */ | ||
| sameSite?: "strict" | "Strict" | "lax" | "Lax" | "none" | "None" | undefined; | ||
| /** | ||
| * An attribute which will be serialized, conformably to RFC 6265 | ||
| * section 5.2. | ||
| */ | ||
| [property: string]: any; | ||
| } | ||
| declare const auth: (key: string) => string | undefined; | ||
| declare const setAuth: (key: string, data: string, options?: CookieAttributes) => string | undefined; | ||
| declare const removeAuth: (key: string, options?: CookieAttributes) => boolean; | ||
| declare const setAuth: (key: string, data: string, options?: AuthProps) => string | undefined; | ||
| declare const removeAuth: (key: string, options?: AuthProps) => boolean; | ||
| declare const getStore: (key: string, session?: boolean) => any; | ||
@@ -31,0 +64,0 @@ declare const setStore: (key: string, data: any, session?: boolean) => boolean; |
+1
-1
| { | ||
| "name": "react-stream-bloc", | ||
| "version": "3.0.0", | ||
| "version": "3.0.1", | ||
| "private": false, | ||
@@ -5,0 +5,0 @@ "author": "Blencm", |
Deprecated
MaintenanceThe maintainer of the package marked it as deprecated. This could indicate that a single version should not be used, or that the package is no longer maintained and any new vulnerabilities will not be fixed.
19521
5.9%333
10.63%0
-100%