react-stream-bloc
Advanced tools
+4
-4
@@ -26,3 +26,3 @@ import * as react_jsx_runtime from 'react/jsx-runtime'; | ||
| declare const getAuth: (key: string) => any; | ||
| declare const auth: (key: string) => string | undefined; | ||
| declare const setAuth: (key: string, data: string, options?: CookieAttributes) => string | undefined; | ||
@@ -37,5 +37,5 @@ declare const removeAuth: (key: string, options?: CookieAttributes) => boolean; | ||
| bloc: B; | ||
| builder: (state: S) => React.ReactNode; | ||
| builder: (state: S) => React.JSX.Element; | ||
| } | ||
| declare const BlocBuilder: <B extends Bloc<S>, S>({ bloc, builder, }: BlocBuilderProps<B, S>) => React.ReactNode; | ||
| declare const BlocBuilder: <B extends Bloc<S>, S>({ bloc, builder, }: BlocBuilderProps<B, S>) => React.JSX.Element; | ||
@@ -81,2 +81,2 @@ declare enum ConnectionState { | ||
| export { Bloc, BlocBuilder, BlocProvider, StreamBuilder, clearStore, createContext, getAuth, getStore, removeAuth, removeStore, setAuth, setStore }; | ||
| export { Bloc, BlocBuilder, BlocProvider, StreamBuilder, auth, clearStore, createContext, getStore, removeAuth, removeStore, setAuth, setStore }; |
+3
-3
@@ -37,5 +37,5 @@ "use strict"; | ||
| StreamBuilder: () => StreamBuilder_default, | ||
| auth: () => auth, | ||
| clearStore: () => clearStore, | ||
| createContext: () => createContext2, | ||
| getAuth: () => getAuth, | ||
| getStore: () => getStore, | ||
@@ -90,3 +90,3 @@ removeAuth: () => removeAuth, | ||
| var import_js_cookie = __toESM(require("js-cookie")); | ||
| var getAuth = (key) => { | ||
| var auth = (key) => { | ||
| return import_js_cookie.default.get(key); | ||
@@ -215,5 +215,5 @@ }; | ||
| StreamBuilder, | ||
| auth, | ||
| clearStore, | ||
| createContext, | ||
| getAuth, | ||
| getStore, | ||
@@ -220,0 +220,0 @@ removeAuth, |
+4
-4
| { | ||
| "name": "react-stream-bloc", | ||
| "version": "2.0.9", | ||
| "version": "3.0.0", | ||
| "private": false, | ||
@@ -36,3 +36,2 @@ "author": "Blencm", | ||
| "dependencies": { | ||
| "@types/js-cookie": "^3.0.6", | ||
| "js-cookie": "^3.0.5", | ||
@@ -45,4 +44,5 @@ "react": "^18.2.0", | ||
| "devDependencies": { | ||
| "@types/react": "^18.2.31", | ||
| "@types/react-dom": "^18.2.14", | ||
| "@types/react": "^18.2.48", | ||
| "@types/react-dom": "^18.2.18", | ||
| "@types/js-cookie": "^3.0.6", | ||
| "cross-env": "^7.0.3", | ||
@@ -49,0 +49,0 @@ "enzyme": "^3.11.0", |
18433
0.01%6
-14.29%8
14.29%- Removed
- Removed