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

lookup-closest-locale

Package Overview
Dependencies
Maintainers
1
Versions
14
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

lookup-closest-locale - npm Package Compare versions

Comparing version 6.0.0 to 6.0.3

8

index.js

@@ -6,7 +6,7 @@ // @flow

if (typeof locale === 'string' && available[locale]) return locale
const locales = [].concat(locale || [])
for (let l = 0, ll = locales.length; l < ll; ++l) {
const current = locales[l].split('-')
var locales = [].concat(locale || [])
for (var l = 0, ll = locales.length; l < ll; ++l) {
var current = locales[l].split('-')
while (current.length) {
const candidate = current.join('-')
var candidate = current.join('-')
if (available[candidate]) return candidate

@@ -13,0 +13,0 @@ current.pop()

{
"name": "lookup-closest-locale",
"version": "6.0.0",
"version": "6.0.3",
"description": "Lookup the closest locale from among object keys",

@@ -5,0 +5,0 @@ "author": "Andy VanWagoner <andy@thetalecrafter.com> (https://thetalecrafter.com/)",

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