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

unreach-util

Package Overview
Dependencies
Maintainers
2
Versions
27
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

unreach-util - npm Package Compare versions

Comparing version 0.11.1 to 0.11.2

2

package.json
{
"name": "unreach-util",
"version": "0.11.1",
"version": "0.11.2",
"description": "前端工具基础库",

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

@@ -7,8 +7,10 @@ import qs from 'querystring';

const getLoginUserId = cached(async () => {
const getLoginUserId = cached(async() => {
// 打点取用户id不管环境,直接取线上的
const data = await request({
url: 'https://member.unreach.io/api/account/query'
const { data } = await request({
scope: 'member',
url: '/account/query',
env: 'production'
});
return data && data.data && data.data.user && data.data.user.id;
return data && data.user && data.user.id;
});

@@ -15,0 +17,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