🎩 You're Invited:Meet the Socket team at Black Hat in Las Vegas, August 3-6.RSVP
Sign In

react-stream-bloc

Package Overview
Dependencies
Maintainers
1
Versions
26
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

react-stream-bloc - npm Package Compare versions

Comparing version
3.0.0
to
3.0.1
+36
-3
lib/index.d.ts
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",