Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

@lingui/detect-locale

Package Overview
Dependencies
Maintainers
1
Versions
94
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@lingui/detect-locale - npm Package Compare versions

Comparing version 3.8.10 to 3.9.0

esm/detect-locale.development.js

34

esm/index.js

@@ -1,1 +0,33 @@

export * from './detect-locale.esm'
import {
detect as detectDev,
fromCookie as fromCookieDev,
fromHtmlTag as fromHtmlTagDev,
fromNavigator as fromNavigatorDev,
fromPath as fromPathDev,
fromStorage as fromStorageDev,
fromSubdomain as fromSubdomainDev,
fromUrl as fromUrlDev,
multipleDetect as multipleDetectDev,
} from "./detect-locale.development.js"
import {
detect as detectProd,
fromCookie as fromCookieProd,
fromHtmlTag as fromHtmlTagProd,
fromNavigator as fromNavigatorProd,
fromPath as fromPathProd,
fromStorage as fromStorageProd,
fromSubdomain as fromSubdomainProd,
fromUrl as fromUrlProd,
multipleDetect as multipleDetectProd,
} from "./detect-locale.production.min.js"
export const detect = process.env.NODE_ENV === "production" ? detectProd : detectDev;
export const fromCookie = process.env.NODE_ENV === "production" ? fromCookieProd : fromCookieDev;
export const fromHtmlTag = process.env.NODE_ENV === "production" ? fromHtmlTagProd : fromHtmlTagDev;
export const fromNavigator = process.env.NODE_ENV === "production" ? fromNavigatorProd : fromNavigatorDev;
export const fromPath = process.env.NODE_ENV === "production" ? fromPathProd : fromPathDev;
export const fromStorage = process.env.NODE_ENV === "production" ? fromStorageProd : fromStorageDev;
export const fromSubdomain = process.env.NODE_ENV === "production" ? fromSubdomainProd : fromSubdomainDev;
export const fromUrl = process.env.NODE_ENV === "production" ? fromUrlProd : fromUrlDev;
export const multipleDetect = process.env.NODE_ENV === "production" ? multipleDetectProd : multipleDetectDev;

2

package.json
{
"name": "@lingui/detect-locale",
"version": "3.8.10",
"version": "3.9.0",
"description": "@Lingui package to help you find the correct browser/server locale",

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

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