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

@os-team/i18next-tld-language-detector

Package Overview
Dependencies
Maintainers
1
Versions
20
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@os-team/i18next-tld-language-detector - npm Package Compare versions

Comparing version 1.1.0 to 1.1.1

4

dist/index.d.ts

@@ -0,1 +1,5 @@

export declare const tldLocaleMap: {
com: string;
ru: string;
};
export declare const detectLanguageByHost: (host: string) => string;

@@ -2,0 +6,0 @@ declare const tldLanguageDetector: {

6

dist/index.js
"use strict";
Object.defineProperty(exports, "__esModule", { value: true });
exports.detectLanguageByHost = void 0;
const tldLocaleMap = {
exports.detectLanguageByHost = exports.tldLocaleMap = void 0;
exports.tldLocaleMap = {
com: 'en',

@@ -10,3 +10,3 @@ ru: 'ru',

const tld = host.slice(host.lastIndexOf('.') + 1);
return tldLocaleMap[tld];
return exports.tldLocaleMap[tld];
};

@@ -13,0 +13,0 @@ exports.detectLanguageByHost = detectLanguageByHost;

{
"name": "@os-team/i18next-tld-language-detector",
"version": "1.1.0",
"version": "1.1.1",
"license": "MIT",

@@ -19,3 +19,3 @@ "repository": "git@gitlab.com:os-team/libs/utils.git",

},
"gitHead": "cb2a918fa5bc8c3391dd57c72c6dfd6b94f9d142"
"gitHead": "b9ce08aaa962a7a5a348e5d4ac3aeb49933dcd0f"
}

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

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