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
7
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.18 to 0.0.19

2

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

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

@@ -6,6 +6,21 @@ import axios from 'axios';

const cookies = getCookies();
const user = safeParse(cookies['mybricks-login-user'])
const userBasicInfo = safeParse(cookies['mybricks-login-user'])
type Namespace = 'system' | string
export const user = {
getUserInfo: () => {
return axios({
method: 'get',
url: `/api/user/queryBy?email=${userBasicInfo.email}`
}).then(({ data }) => {
if (data?.data) {
return data?.data?.[0]
} else {
throw new Error('获取用户信息失败失败')
}
})
}
}
export const setting = {

@@ -33,3 +48,3 @@ getSetting: (namespaces: Namespace[]) => {

namespace: namespace,
userId: user.email,
userId: userBasicInfo.email,
config,

@@ -36,0 +51,0 @@ }

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