New Case Study:See how Anthropic automated 95% of dependency reviews with Socket.Learn More
Socket
Sign inDemoInstall
Socket

@mybricks/sdk-for-app

Package Overview
Dependencies
Maintainers
8
Versions
292
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@mybricks/sdk-for-app - npm Package Compare versions

Comparing version 0.0.35 to 0.0.36

src/apis/fileSystem/getAll.ts

2

package.json
{
"name": "@mybricks/sdk-for-app",
"version": "0.0.35",
"version": "0.0.36",
"description": "SDK for application UI",

@@ -5,0 +5,0 @@ "main": "index.min.js",

@@ -10,2 +10,4 @@ import axios from 'axios';

export * as fileSystem from './apis/fileSystem';
export const user = {

@@ -85,1 +87,2 @@ getUserInfo: () => {

}

@@ -0,1 +1,3 @@

import { safeParse } from './parse'
export const getCookies = () => {

@@ -7,2 +9,14 @@ return document.cookie.split('; ').reduce((s, e) => {

}, {});
};
};
const cookies = getCookies();
const userBasicInfo = safeParse(cookies['mybricks-login-user'])
interface UserInfo {
email: string
id: string
}
export const getUserInfo = ():UserInfo => {
return userBasicInfo || {}
}
SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc