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

@sweetui/sweet

Package Overview
Dependencies
Maintainers
3
Versions
31
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@sweetui/sweet - npm Package Compare versions

Comparing version

to
2.0.13-hotfix

2

package.json
{
"name": "@sweetui/sweet",
"version": "2.0.13-fix",
"version": "2.0.13-hotfix",
"description": "Sweet Core",

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

const browserLang =
window.navigator.language || window.navigator.browserLanguage;
window.navigator.language || window.navigator.browserLanguage,
browserLangReal = browserLang.match(/\S*(?=-)/) ? browserLang.match(/\S*(?=-)/)[0] : browserLang;
const language =
window.localStorage.getItem('userLang') ||
(browserLang.match(/\S*(?=-)/)[0] === 'zh' ? 'zh-CN' : 'en');
(browserLangReal === 'zh' ? 'zh-CN' : 'en');

@@ -7,0 +8,0 @@ export default {