testing sdk import

This commit is contained in:
balzack 2024-06-18 19:44:41 -07:00
parent ec9c139d8d
commit ad6c73089f
3 changed files with 12 additions and 0 deletions

View File

@ -23,6 +23,7 @@
"axios": "^0.27.2",
"base-64": "^1.0.0",
"crypto-js": "^4.1.1",
"databag-client-sdk": "^0.0.1",
"dompurify": "^3.0.1",
"jsencrypt": "^2.3.1",
"react": "^18.2.0",

View File

@ -12,6 +12,8 @@ import { UploadContext } from './UploadContext';
import { RingContext } from './RingContext';
import { createWebsocket } from 'api/fetchUtil';
import { foo } from 'databag-client-sdk';
export function useAppContext(websocket) {
const [state, setState] = useState({
status: null,
@ -169,6 +171,10 @@ export function useAppContext(websocket) {
cardContext.actions.setRevision(appRevision.card);
channelContext.actions.setRevision(appRevision.channel);
}
console.log("EVENT");
foo();
// eslint-disable-next-line
}, [appRevision]);

View File

@ -4192,6 +4192,11 @@ data-urls@^3.0.2:
whatwg-mimetype "^3.0.0"
whatwg-url "^11.0.0"
databag-client-sdk@^0.0.1:
version "0.0.1"
resolved "https://registry.yarnpkg.com/databag-client-sdk/-/databag-client-sdk-0.0.1.tgz#047099cf5c4607fb40a3df4f3896dc62ea342721"
integrity sha512-/LVSqxl2y9A70G3jzJgEqchISM2gBDWHBIOVhEnu1CVzZ/0KzI2LAT5YCHZzy520kmciIyQfUVAQ64Pk1g9TGQ==
dateformat@^2.0.0:
version "2.2.0"
resolved "https://registry.npmjs.org/dateformat/-/dateformat-2.2.0.tgz"