🚀 Socket Launch Week 🚀 Day 2: Introducing Repository Labels and Security Policies.Learn More

@lingui/detect-locale

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@lingui/detect-locale - npm Package Compare versions

Comparing version

to
3.10.1

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

export * from "./detect-locale.production.min"
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;
{
"name": "@lingui/detect-locale",
"version": "3.10.0",
"version": "3.10.1",
"description": "@Lingui package to help you find the correct browser/server locale",

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